1 2021-05-14 Tom Tromey <tom@tromey.com>
3 * rust-lang.c (rust_language::val_print_struct)
4 (rust_language::print_enum): Use common_val_print, not
7 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9 * python/py-inferior.c (infpy_get_connection_num): New function.
10 (inferior_object_getset): Add a new element for 'connection_num'.
11 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
13 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
15 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
16 argument type, update and re-wrap, header comment.
17 (remote_target::commit_resumed): Convert any_process_wildcard and
18 may_global_wildcard_vcont from int to bool.
20 2021-05-14 Kent Cheung <kent.cheung@arm.com>
22 * cp-valprint.c (cp_print_value): Replaced duplicate code.
23 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
24 just before printing child values.
25 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
26 printing string representation.
27 * python/py-prettyprint.c (print_children): Check max_depth just
28 before printing child values.
29 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
30 printing string representation.
32 2021-05-14 Mike Frysinger <vapier@gentoo.org>
34 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
35 sim/callback.h & sim/sim.h.
37 2021-05-13 Mike Frysinger <vapier@gentoo.org>
39 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
42 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
44 * inf-child.h (inf_child_target) <follow_exec>: New.
45 * inf-child.c (inf_child_target::follow_exec): New.
47 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
49 * target.h (struct target_ops) <follow_exec>: Add ptid_t
51 (target_follow_exec): Likewise.
52 * target.c (target_follow_exec): Add ptid_t parameter.
53 * infrun.c (follow_exec): Adjust call to target_follow_exec,
54 don't push target nor create thread.
55 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
56 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
57 (thread_db_target::follow_exec): New.
58 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
59 (remote_target::follow_exec): Call
60 process_stratum_target::follow_exec.
61 * target-delegates.c: Re-generate.
63 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
65 * infrun.c (follow_exec): Call target_follow_fork when
66 follow-exec-mode is same.
67 * target.h (target_follow_fork): Improve doc.
69 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
71 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
73 * cli/cli-setshow.c (do_show_command): Adjust.
75 2021-05-13 Luis Machado <luis.machado@linaro.org>
77 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
78 include the last address in the range.
80 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
82 * python/python-internal.h (gdbpy_parse_command_name): Return
83 gdb::unique_xmalloc_ptr.
84 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
86 * python/py-param.c (parmpy_init): Adjust.
87 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
90 2021-05-12 George Barrett <bob@bob131.so>
92 * NEWS (Guile API): Note the addition of the new procedure.
93 * guile/scm-value.c (gdbscm_value_const_value): Add
94 implementation of value-const-value procedure.
95 (value_functions): Add value-const-value procedure.
97 2021-05-12 George Barrett <bob@bob131.so>
99 * NEWS (Guile API): Note the addition of new procedures.
100 * guile/scm-value.c (gdbscm_reference_value): Add helper function
101 for reference value creation.
102 (gdbscm_value_reference_value): Add implementation of
103 value-reference-value procedure.
104 (gdbscm_value_rvalue_reference_value): Add implementation of
105 value-rvalue-reference-value procedure.
106 (value_functions): Add value-reference-value procedure. Add
107 value-rvalue-reference-value procedure.
109 2021-05-12 George Barrett <bob@bob131.so>
111 * guile/scm-type.c (type_integer_constants): Add binding for
112 TYPE_CODE_RVALUE_REF.
113 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
114 dereferencing of rvalue references.
115 * NEWS (Guile API): Note improvements in rvalue reference support.
117 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
119 * btrace.c (handle_pt_insn_events): Ignore status update enable
122 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
124 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
127 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
129 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
131 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
134 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
137 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
139 * nat/linux-waitpid.c (status_to_str): Show signal name.
141 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
143 * python/py-breakpoint.c (pybp_debug): New static global.
144 (show_pybp_debug): New function.
145 (pybp_debug_printf): Define.
146 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
147 (gdbpy_breakpoint_created): Add some debugging.
148 (gdbpy_breakpoint_deleted): Likewise.
149 (gdbpy_breakpoint_modified): Likewise.
150 (_initialize_py_breakpoint): New function.
152 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
154 * python/py-unwind.c (pyuw_debug): Convert to bool.
155 (show_pyuw_debug): New function.
156 (pyuw_debug_printf): Define.
157 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
158 (pyuw_this_id): Convert to new debug print macros.
159 (pyuw_prev_register): Likewise.
160 (pyuw_sniffer): Likewise.
161 (pyuw_dealloc_cache): Likewise.
162 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
163 show function when registering.
165 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
167 * dummy-frame.c (fprint_dummy_frames): Convert use of
168 fprint_frame_id to use frame_id::to_string.
169 * frame.c (fprint_field): Delete.
170 (fprint_frame_id): Moved to...
171 (frame_id::to_string): ...this, rewritten to return a string.
172 (fprint_frame): Convert use of fprint_frame_id to use
174 (compute_frame_id): Likewise.
175 (frame_id_p): Likewise.
176 (frame_id_eq): Likewise.
177 (frame_id_inner): Likewise.
178 * frame.h (struct frame_id) <to_string>: New member function.
179 (fprint_frame_id): Delete declaration.
180 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
181 fprint_frame_id to use frame_id::to_string.
182 * python/py-frame.c (frame_object_to_frame_info): Likewise.
183 * python/py-unwind.c (unwind_infopy_str): Likewise.
184 (pyuw_this_id): Likewise.
186 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
188 * nat/linux-waitpid.c (status_to_str): Return std::string.
189 * nat/linux-waitpid.h (status_to_str): Likewise.
190 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
191 (linux_nat_target::attach): Adjust.
192 (linux_handle_extended_wait): Adjust.
194 (stop_wait_callback): Adjust.
195 (linux_nat_filter_event): Adjust.
196 (linux_nat_wait_1): Adjust.
197 * nat/linux-waitpid.c (status_to_str): Adjust.
198 * nat/linux-waitpid.h (status_to_str): Adjust.
200 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
202 * infrun.h (infrun_debug_printf): Add missing space.
204 2021-05-08 Pedro Alves <pedro@palves.net>
206 * linux-nat.c (linux_nat_target::supports_disable_randomization):
207 Remove references to HAVE_PERSONALITY.
208 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
209 (maybe_disable_address_space_randomization)
210 (~maybe_disable_address_space_randomizatio): Remove references to
212 * config.in, configure: Regenerate.
214 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
216 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
218 (source_script_with_search): Perform tilde expansion.
220 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
222 * target-descriptions.c (struct target_desc_info) <filename>:
224 (copy_inferior_target_desc_info): Adjust.
225 (target_desc_info_free): Adjust.
226 (target_find_description): Adjust.
227 (set_tdesc_filename_cmd): Adjust.
228 (show_tdesc_filename_cmd): Adjust.
229 (unset_tdesc_filename_cmd): Adjust.
230 (maint_print_c_tdesc_cmd): Adjust.
232 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
234 * target-descriptions.c (struct target_desc_info): Initialize
236 (get_tdesc_info): Use new.
237 (target_desc_info_free): Use delete.
239 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
241 * target-descriptions.c (struct target_desc_info) <fetched>:
243 (target_find_description): Adjust.
244 (target_clear_description): Adjust.
246 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
248 * target-descriptions.c (struct target_desc_info) <tdesc>:
250 (target_desc_fetched): Remove.
251 (current_target_desc): Remove.
252 (target_description_filename): Remove.
253 (target_find_description): Adjust.
254 (target_clear_description): Adjust.
255 (target_current_description): Adjust.
256 (set_tdesc_filename_cmd): Adjust.
257 (show_tdesc_filename_cmd): Adjust.
258 (unset_tdesc_filename_cmd): Adjust.
259 (maint_print_c_tdesc_cmd): Adjust.
260 (maint_print_xml_tdesc_cmd): Adjust.
262 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
264 * infcmd.c (notice_new_inferior): Change parameter type.
265 * inferior.h (notice_new_inferior): Change parameter type.
266 * remote.c (remote_notice_new_inferior): Change parameter type to
267 bool. Also update type of local variable to bool.
268 (remote_target::update_thread_list): Change type of local variable
270 (remote_target::process_stop_reply): Pass bool instead of int to
271 remote_notice_new_inferior.
273 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
275 * target.c (target_stack::unpush): Call target_ops::find_beneath
276 to get the target beneath `t`.
278 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
280 * target.c (target_close): Check in all inferiors that the
281 target is not pushed.
283 2021-05-07 Aaron Merey <amerey@redhat.com>
285 * debuginfod-support.c (debuginfod_init): Remove.
286 (get_debuginfod_client): New function.
288 2021-05-07 Tom Tromey <tom@tromey.com>
290 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
291 * utils.c (streq_hash): Remove.
292 * utils.h (streq_hash): Don't declare.
293 * completer.c (completion_tracker::discard_completions): Update
295 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
297 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
299 * Re-format all Python files using black.
301 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
303 * guile/guile-internal.h (gdbscm_safe_source_script): Change
304 function return type.
305 * guile/guile.c (gdbscm_source_script): Update to handle change in
306 gdbscm_safe_source_script.
307 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
308 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
311 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
313 * inferior.h (class inferior) <args>: Change type to
315 * inferior.c (inferior::~inferior): Don't free args.
316 * infcmd.c (get_inferior_args): Adjust.
317 (set_inferior_args): Adjust.
319 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
321 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
322 breakpoint locations when the breakpoint actually has a location.
324 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
326 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
327 * mi/mi-cmds.c: Change the binding of "-break-condition" to
328 mi_cmd_break_condition.
329 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
330 * breakpoint.h (set_breakpoint_condition): Declare a new
332 * breakpoint.c (set_breakpoint_condition): New overloaded function
333 extracted out from ...
334 (condition_command): ... this.
335 * NEWS: Mention the change.
337 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
339 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
340 '--force-condition' flag to force the condition in the
341 '-break-insert' and '-dprintf-insert' commands.
342 * NEWS: Mention the change.
344 2021-05-04 Tom de Vries <tdevries@suse.de>
347 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
350 2021-04-30 Tom Tromey <tom@tromey.com>
352 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
353 (add_signatured_type_cu_to_table): Remove.
354 (create_debug_type_hash_table): Assume dwo_file is non-null.
355 (create_debug_types_hash_table): Update comment.
356 (create_all_type_units): Remove.
357 (sort_tu_by_abbrev_offset): Update comment.
358 (build_type_psymtabs): Rename from build_type_psymtabs_1.
359 (build_type_psymtabs): Remove.
360 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
362 (read_comp_units_from_section): Add types_htab, section_kind
364 (create_all_comp_units): Read type units.
366 2021-04-30 Tom Tromey <tom@tromey.com>
368 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
369 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
370 <get_cu>: Now inline.
371 <all_type_units>: Remove.
372 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
373 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
374 (dwarf2_per_bfd::get_tu): Remove.
375 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
376 (create_signatured_type_table_from_index)
377 (create_signatured_type_table_from_debug_names)
378 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
379 (dwarf2_base_index_functions::expand_all_symtabs)
380 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
381 (dwarf2_base_index_functions::map_symbol_filenames)
382 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
383 (add_signatured_type_cu_to_table, create_all_type_units)
384 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
385 (create_all_comp_units): Update.
386 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
387 (write_debug_names): Update.
389 2021-04-30 Tom Tromey <tom@tromey.com>
391 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
392 allocate_signatured_type>: Change return type.
393 <all_comp_units, all_type_units>: Hold unique pointers.
394 (struct dwarf2_per_cu_data): Add constructor and initializers.
395 (struct signatured_type): Derive from dwarf2_per_cu_data.
396 * dwarf2/read.c (type_unit_group): Derive from
398 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
399 (dwarf2_per_bfd::get_tu)
400 (dwarf2_per_bfd::allocate_signatured_type)
401 (dwarf2_per_bfd::allocate_signatured_type)
402 (create_cu_from_index_list, create_cus_from_index_list)
403 (create_signatured_type_table_from_index)
404 (create_signatured_type_table_from_debug_names)
405 (create_addrmap_from_aranges)
406 (dwarf2_base_index_functions::find_last_source_symtab)
407 (dw_expand_symtabs_matching_file_matcher)
408 (dwarf2_gdb_index::expand_symtabs_matching)
409 (dwarf2_base_index_functions::map_symbol_filenames)
410 (create_cus_from_debug_names_list)
411 (dw2_debug_names_iterator::next)
412 (dwarf2_debug_names_index::expand_symtabs_matching)
413 (create_debug_type_hash_table, add_type_unit)
414 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
416 (allocate_type_unit_groups_table): Use delete.
417 (create_type_unit_group): Change return type. Use new.
418 (get_type_unit_group, build_type_psymtabs_1)
419 (build_type_psymtab_dependencies)
420 (process_skeletonless_type_unit, set_partial_user)
421 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
422 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
423 (read_signatured_type): Update.
424 (dwarf2_find_containing_comp_unit): Change type of
427 (dwarf2_per_bfd::allocate_per_cu)
428 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
430 (add_signatured_type_cu_to_table): Update.
431 * dwarf2/index-write.c (write_one_signatured_type)
432 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
433 (write_debug_names): Update.
435 2021-04-30 Tom Tromey <tromey@adacore.com>
437 * nat/windows-nat.h (get_image_name): Don't declare.
438 * nat/windows-nat.c (get_image_name): Now static.
440 2021-04-30 Tom Tromey <tromey@adacore.com>
442 * windows-nat.c (windows_nat::handle_load_dll): Update.
443 (windows_nat_target::get_windows_debug_event): Call
445 (windows_add_all_dlls, windows_add_dll): Move to
447 * nat/windows-nat.h (handle_load_dll): Change parameters.
448 (dll_loaded_event, windows_add_all_dlls): Declare.
449 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
451 (dll_loaded_event): New function.
453 2021-04-30 Tom Tromey <tromey@adacore.com>
455 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
456 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
458 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
459 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
461 2021-04-30 Tom Tromey <tromey@adacore.com>
463 * windows-nat.c: Move code to nat/windows-nat.[ch].
464 (_initialize_windows_nat): Call initialize_loadable.
465 * nat/windows-nat.h (AdjustTokenPrivileges)
466 (DebugActiveProcessStop, DebugBreakProcess)
467 (DebugSetProcessKillOnExit, EnumProcessModules)
468 (EnumProcessModulesEx, GetModuleInformation)
469 (GetModuleFileNameExA, GetModuleFileNameExW)
470 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
471 (GetCurrentConsoleFont, Wow64SuspendThread)
472 (Wow64GetThreadContext, Wow64SetThreadContext)
473 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
474 (AdjustTokenPrivileges_ftype)
475 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
476 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
477 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
478 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
479 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
480 (GetConsoleFontSize_ftype)
481 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
482 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
483 (Wow64GetThreadSelectorEntry_ftype): Likewise.
484 (initialize_loadable): Declare.
485 * nat/windows-nat.c (AdjustTokenPrivileges)
486 (DebugActiveProcessStop, DebugBreakProcess)
487 (DebugSetProcessKillOnExit, EnumProcessModules)
488 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
489 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
490 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
491 (Wow64GetThreadContext, Wow64SetThreadContext)
492 (Wow64GetThreadSelectorEntry): Define.
493 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
495 (initialize_loadable): Likewise, and rename.
497 2021-04-30 Tom Tromey <tromey@adacore.com>
499 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
500 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
501 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
502 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
503 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
504 (bad): New template functions.
505 (_initialize_loadable): Update.
507 2021-04-30 Tom Tromey <tromey@adacore.com>
509 * ada-lang.c (ada_index_type): Use ada_check_typedef.
511 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
513 * auto-load.h: Split namespace declaration.
515 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
517 * infrun.c (save_waitstatus): Move variables to inner scope.
519 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
521 * NEWS: Fix typo and stray full stop.
523 2021-04-28 Tom Tromey <tromey@adacore.com>
525 * ada-exp.y (primary): Use new type for null pointer.
526 * ada-lang.c (ada_type_match): Remove "may_deref"
527 parameter. Handle null pointer.
528 (ada_args_match): Update.
529 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
532 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
534 * NEWS: Mention new commands.
535 * python/python.c (python_ignore_environment): New static global.
536 (show_python_ignore_environment): New function.
537 (set_python_ignore_environment): New function.
538 (python_dont_write_bytecode): New static global.
539 (show_python_dont_write_bytecode): New function.
540 (set_python_dont_write_bytecode): New function.
541 (_initialize_python): Register new commands.
543 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
545 * extension-priv.h (struct extension_language_ops): Rename
546 'finish_initialization' to 'initialize'.
547 * extension.c (finish_ext_lang_initialization): Renamed to...
548 (ext_lang_initialization): ...this, update comment, and updated
549 the calls to reflect the change in struct extension_language_ops.
550 * extension.h (finish_ext_lang_initialization): Renamed to...
551 (ext_lang_initialization): ...this.
552 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
553 (gdbscm_initialize): ...this, update comment at definition.
554 (guile_extension_ops): Update.
555 * main.c (captured_main_1): Update call to
556 finish_ext_lang_initialization.
557 * python/python.c (gdbpy_finish_initialization): Rename to...
558 (gdbpy_initialize): ...this, update comment at definition, and
559 update call to do_finish_initialization.
560 (python_extension_ops): Update.
561 (do_finish_initialization): Rename to...
562 (do_initialize): ...this, and update comment.
564 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
566 * main.c (captured_main_1): Add a call to
567 finish_ext_lang_initialization.
568 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
570 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
572 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
573 (gdbscm_finish_initialization): Add code moved from
575 (_initialize_guile): Move code to gdbscm_finish_initialization.
576 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
577 _initialize_scm_arch.
578 (_initialize_scm_arch): New function.
579 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
580 into _initialize_scm_block.
581 (_initialize_scm_block): New function.
582 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
583 into _initialize_scm_frame.
584 (_initialize_scm_frame): New function.
585 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
586 into _initialize_scm_objfile.
587 (_initialize_scm_objfile): New function.
588 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
589 code into _initialize_scm_progspace.
590 (_initialize_scm_progspace): New function.
591 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
592 into _initialize_scm_symbol.
593 (_initialize_scm_symbol): New function.
594 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
595 into _initialize_scm_symtab.
596 (_initialize_scm_symtab): New function.
597 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
598 _initialize_scm_type.
599 (_initialize_scm_type): New function.
601 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
603 * python/py-arch.c (_initialize_py_arch): New function.
604 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
605 * python/py-block.c (_initialize_py_block): New function.
606 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
607 * python/py-inferior.c (_initialize_py_inferior): New function.
608 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
609 * python/py-objfile.c (_initialize_py_objfile): New function.
610 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
611 * python/py-progspace.c (_initialize_py_progspace): New function.
612 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
613 * python/py-registers.c (_initialize_py_registers): New function.
614 (gdbpy_initialize_registers): Move code to
615 _initialize_py_registers.
616 * python/py-symbol.c (_initialize_py_symbol): New function.
617 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
618 * python/py-symtab.c (_initialize_py_symtab): New function.
619 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
620 * python/py-type.c (_initialize_py_type): New function.
621 (gdbpy_initialize_types): Move code to _initialize_py_type.
622 * python/py-unwind.c (_initialize_py_unwind): New function.
623 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
624 * python/python.c (_initialize_python): Move call to
625 do_start_initialization to gdbpy_finish_initialization.
626 (gdbpy_finish_initialization): Add call to
627 do_start_initialization.
629 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
631 * extension.c (struct scoped_default_signal): New struct.
632 (scoped_default_sigint): New typedef.
633 (finish_ext_lang_initialization): Make use of
634 scoped_default_sigint.
636 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
638 * main.c (captured_main_1): Don't pass argument to gdb_init.
639 * top.c (gdb_init): Remove unused argument, and add header
641 * top.h (gdb_init): Remove argument.
643 2021-04-27 Luis Machado <luis.machado@linaro.org>
645 * psymtab.c (psymbol_functions::dump): Output newline.
647 * symmisc.c (dump_objfile): Likewise.
649 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
650 Simon Marchi <simon.marchi@polymtl.ca>
652 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
653 when attaching the 'auto_load_new_objfile' observer, so
654 other observers can specify it as a dependency.
655 * gdb/auto-load.h (struct token): Declare
656 'auto_load_new_objfile_observer_token' as token to be used
657 for the 'auto_load_new_objfile' observer.
658 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
659 'python_new_objfile' observer depend on 'auto_load_new_objfile'
660 observer, so it gets notified after the latter.
662 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
663 Simon Marchi <simon.marchi@polymtl.ca>
665 * unittests/observable-selftests.c (dependency_test_counters):
667 (observer_token0, observer_token1, observer_token2,
668 observer_token3, observer_token4, observer_token5): New.
669 (struct dependency_observer_data): New struct.
670 (observer_dependency_test_callback): New function.
671 (test_observers): New.
672 (run_dependency_test): New function.
673 (test_dependency): New.
674 (_initialize_observer_selftest): Register dependency test.
676 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
679 * cli/cli-dump.c (dump_binary_file): Check result of
682 2021-04-25 Sergei Trofimovich <siarheit@google.com>
684 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
685 by passing `process_stratum_target*` parameter.
687 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
690 * typeprint.h (struct type_print_options): Add print_in_hex
692 (struct print_offset_data): Add print_in_hex flag, add a
693 constructor accepting a type_print_options* argument.
694 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
695 default value for print_in_hex.
696 (print_offset_data::indentation): Allow more horizontal space.
697 (print_offset_data::print_offset_data): Add ctor.
698 (print_offset_data::maybe_print_hole, print_offset_data::update):
699 Handle the print_in_hex flag.
700 (whatis_exp): Handle 'x' and 'd' flags.
701 (print_offsets_and_sizes_in_hex): Declare.
702 (set_print_offsets_and_sizes_in_hex): Create.
703 (show_print_offsets_and_sizes_in_hex): Create.
704 (_initialize_typeprint): Update help message for the ptype
705 command, register the 'set print type hex' and 'show print type
707 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
708 (c_type_print_base): Construct the print_offset_data
709 object using the type_print_optons parameter.
710 * rust-lang.c (rust_language::print_type): Construct the
711 print_offset_data object using the type_print_optons parameter.
712 * NEWS: Mention the new flags of the ptype command.
714 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
716 * typeprint.h (struct type_print_options): Move before
719 2021-04-25 Joel Brobecker <brobecker@adacore.com>
723 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
725 * observable.c (observer_debug): Change to bool.
727 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
729 * dwarf2/read.c: Add 'unordered_set' include.
730 (dwarf2_base_index_functions::map_symbol_filenames): Replace
731 'visited' hash table with 'qfn_cache' unordered_set. Remove use
732 of per_Bfd->filenames_cache cache, and use function local
733 filenames_cache instead. Reindent.
734 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
736 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
738 * breakpoint.c (iterate_over_bp_locations): Change callback to
739 function view, remove data parameter.
740 * breakpoint.h (iterate_over_bp_locations): Likewise.
741 * record-full.c (record_full_sync_record_breakpoints): Remove
744 2021-04-22 Tom Tromey <tom@tromey.com>
746 * c-typeprint.c (c_type_print_base_struct_union): Use
747 print_spaces_filtered_with_print_options.
749 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
752 * python/py-type.c (typy_range): Check that bounds are constant
753 before accessing them as such.
754 * guile/scm-type.c (gdbscm_type_range): Likewise.
756 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
758 * Makefile.in (COMMON_SFILES): Remove continuations.c.
759 * inferior.c (inferior::add_continuation): New method, adapted
760 from 'add_inferior_continuation'.
761 (inferior::do_all_continuations): New method, adapted from
762 'do_all_inferior_continuations'.
763 (inferior::~inferior): Clear the list of continuations directly.
764 * inferior.h (class inferior) <continuations>: Rename into...
765 <m_continuations>: ...this and make private.
766 * continuations.c: Remove.
767 * continuations.h: Remove.
768 * event-top.c: Don't include "continuations.h".
770 Update the users below.
771 * inf-loop.c (inferior_event_handler)
772 * infcmd.c (attach_command)
773 (notice_new_inferior): Update.
775 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
777 * inferior.h (class inferior) <continuations>: Change the type
778 to be an std::list of std::function's.
779 Update the references and uses below.
780 * continuations.c (struct continuation): Delete.
781 (make_continuation): Delete.
782 (do_my_continuations_1): Delete.
783 (do_my_continuations): Delete.
784 (discard_my_continuations_1): Delete.
785 (discard_my_continuations): Delete.
786 (add_inferior_continuation): Update.
787 (do_all_inferior_continuations): Update.
788 (discard_all_inferior_continuations): Update.
789 * continuations.h (add_inferior_continuation): Update to take
790 an std::function as the parameter.
791 * infcmd.c (struct attach_command_continuation_args): Delete.
792 (attach_command_continuation): Delete.
793 (attach_command_continuation_free_args): Delete.
794 (attach_command): Update.
795 (notice_new_inferior): Update.
797 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
799 * continuations.h: Update the general comment.
800 * inferior.h (class inferior) <continuations>: Update the comment.
801 * interps.c: Do not include "continuations.h".
803 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
805 * continuations.h (do_all_inferior_continuations): Remove the 'err'
806 parameter. Update the references below.
807 * continuations.c (do_my_continuations_1)
808 (do_my_continuations)
809 (do_all_inferior_continuations): Update.
810 * inf-loop.c (inferior_event_handler): Update.
811 * infcmd.c (attach_command_continuation): Update.
813 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
815 * infcmd.c (attach_post_wait): Update the function comment.
817 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
819 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
820 Update the references below.
821 (struct attach_command_continuation_args)
822 (attach_command_continuation)
823 (attach_command_continuation_free_args)
825 (notice_new_inferior): Update to remove the reference to 'args'.
827 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
828 Tom de Vries <tdevries@suse.de>
831 * remote.c (remote_target_is_non_stop_p): New function.
832 * remote.h (remote_target_is_non_stop_p): Declare.
833 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
834 to check non-stopness using notif_state->remote rather current target.
836 2021-04-22 Tom Tromey <tom@tromey.com>
838 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
839 (struct typed_val_int) <val>: Now ULONGEST.
840 (rust_parser::parse_array_type): Remove negative check.
841 (rust_lex_int_test): Change 'value' to ULONGEST.
843 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
845 * arch-utils.c (default_addressable_memory_unit_size): Return a
846 value based on bfd's bits per byte.
848 2021-04-21 Tom Tromey <tom@tromey.com>
850 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
852 (struct dwarf2_per_cu_data): Rearrange.
853 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
855 (struct comp_unit_head): Rearrange.
856 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
858 2021-04-21 Tom de Vries <tdevries@suse.de>
861 * configure.ac: Remove --without-included-regex/--with-included-regex.
862 * config.in: Regenerate.
863 * configure: Regenerate.
864 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
866 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
868 * breakpoint.h (create_breakpoint): Add a new parameter,
870 * breakpoint.c (create_breakpoint): Use the 'force_condition'
871 argument when 'parse_extra' is false to check if the condition
872 is invalid at all of the breakpoint locations.
873 Update the users below.
879 (create_tracepoint_from_upload): Update.
880 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
881 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
882 * python/py-breakpoint.c (bppy_init): Update.
883 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
885 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
887 * breakpoint.c (print_one_breakpoint_location): Display "N" for
888 disabled-by-condition locations on MI-like output.
889 (breakpoint_1): Do not display the disabled-by-condition footnote
890 if the output is MI-like.
892 2021-04-21 Frederic Cambus <fred@statdns.com>
894 * syscalls/update-netbsd.sh: Fix script name display in usage, and
895 update year range in generated copyright notices.
897 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
899 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
902 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
904 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
906 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
908 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
909 (producer_is_icc): Replace use of std::regex with gdb's
912 2021-04-17 Tom Tromey <tom@tromey.com>
915 * dwarf2/read.c (class offset_view): New.
916 (struct symbol_table_slot): Remove.
917 (struct mapped_index) <symbol_table, constant_pool>: Change type.
918 <symbol_name_index, symbol_vec_index>: New methods.
919 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
921 (read_gdb_index_from_buffer): Update.
922 (struct dw2_symtab_iterator) <vec>: Change type.
923 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
924 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
925 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
926 <append_array, append_offset>: New methods.
927 (write_hash_table, add_address_entry, write_gdbindex_1)
928 (write_debug_names): Update.
929 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
931 2021-04-17 Tom Tromey <tom@tromey.com>
933 * dwarf2/index-write.c (write_psymtabs_to_index): Check
936 2021-04-17 Tom Tromey <tom@tromey.com>
938 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
939 from map_matching_symbols. Change parameters.
940 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
941 Rename from map_matching_symbols. Change parameters.
942 * dwarf2/read.c (struct dwarf2_gdb_index)
943 <expand_matching_symbols>: Rename from map_matching_symbols.
945 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
946 Rename from map_matching_symbols. Change parameters.
947 (dwarf2_gdb_index::expand_matching_symbols): Rename from
948 dw2_map_matching_symbols. Change parameters.
949 (dwarf2_gdb_index::expand_matching_symbols): Remove old
951 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
952 map_matching_symbols. Change parameters.
953 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
954 from map_matching_symbols. Change parameters.
955 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
956 map_matching_symbols. Change parameters.
957 * ada-lang.c (map_matching_symbols): New function.
958 (add_nonlocal_symbols): Update.
960 2021-04-17 Tom Tromey <tom@tromey.com>
962 * quick-symbol.h (struct quick_symbol_functions)
963 <expand_symtabs_with_fullname>: Remove.
964 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
966 * psympriv.h (struct psymbol_functions)
967 <expand_symtabs_with_fullname>: Remove.
968 * dwarf2/read.c (struct dwarf2_base_index_functions)
969 <expand_symtabs_with_fullname>: Remove.
970 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
972 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
974 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
977 2021-04-17 Tom Tromey <tom@tromey.com>
979 * symfile-debug.c (objfile::expand_symtabs_for_function):
981 * quick-symbol.h (struct quick_symbol_functions)
982 <expand_symtabs_for_function>: Remove.
983 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
985 * psympriv.h (struct psymbol_functions)
986 <expand_symtabs_for_function>: Remove.
987 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
989 * dwarf2/read.c (struct dwarf2_gdb_index)
990 <expand_symtabs_for_function>: Remove.
991 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
993 (find_slot_in_mapped_hash): Remove.
994 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
995 (dw2_symtab_iter_init): Remove one overload.
996 (dwarf2_gdb_index::expand_symtabs_for_function)
997 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
999 2021-04-17 Tom Tromey <tom@tromey.com>
1001 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1003 * quick-symbol.h (struct quick_symbol_functions)
1004 <map_symtabs_matching_filename>: Remove.
1005 * psymtab.c (partial_map_expand_apply)
1006 (psymbol_functions::map_symtabs_matching_filename): Remove.
1007 * psympriv.h (struct psymbol_functions)
1008 <map_symtabs_matching_filename>: Remove.
1009 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1011 * dwarf2/read.c (struct dwarf2_base_index_functions)
1012 <map_symtabs_matching_filename>: Remove.
1013 (dw2_map_expand_apply)
1014 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1017 2021-04-17 Tom Tromey <tom@tromey.com>
1019 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1020 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1022 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1023 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1024 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1025 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1027 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1028 (dwarf2_gdb_index::lookup_symbol)
1029 (dwarf2_debug_names_index::lookup_symbol): Remove.
1031 2021-04-17 Tom Tromey <tom@tromey.com>
1033 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1034 * symmisc.c (maintenance_expand_symtabs): Update.
1035 * symfile.c (expand_symtabs_matching): Update.
1036 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1038 * quick-symbol.h (struct quick_symbol_functions)
1039 <expand_symtabs_matching>: Add 'domain' parameter.
1040 * psymtab.c (recursively_search_psymtabs)
1041 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1043 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1044 Add 'domain' parameter.
1045 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1047 * linespec.c (iterate_over_all_matching_symtabs): Update.
1048 * dwarf2/read.c (struct dwarf2_gdb_index)
1049 <expand_symtabs_matching>: Add 'domain' parameter.
1050 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1052 (dw2_expand_symtabs_matching)
1053 (dwarf2_gdb_index::expand_symtabs_matching)
1054 (dw2_debug_names_iterator)
1055 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1058 2021-04-17 Tom Tromey <tom@tromey.com>
1060 * symtab.c (global_symbol_searcher::expand_symtabs)
1061 (default_collect_symbol_completion_matches_break_on): Update.
1062 * symmisc.c (maintenance_expand_symtabs): Update.
1063 * symfile.h (expand_symtabs_matching): Add search_flags
1065 * symfile.c (expand_symtabs_matching): Add search_flags
1067 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1068 search_flags parameter.
1069 * quick-symbol.h (struct quick_symbol_functions)
1070 <expand_symtabs_matching>: Add search_flags parameter.
1071 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1072 * psymtab.c (recursively_search_psymtabs)
1073 (psymbol_functions::expand_symtabs_matching): Add search_flags
1075 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1076 Add search_flags parameter.
1077 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1078 search_flags parameter.
1079 * linespec.c (iterate_over_all_matching_symtabs): Update.
1080 * dwarf2/read.c (struct dwarf2_gdb_index)
1081 <expand_symtabs_matching>: Add search_flags parameter.
1082 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1083 search_flags parameter.
1084 (dw2_map_matching_symbols): Update.
1085 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1086 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1088 (dw2_debug_names_iterator): Change block_index to search flags.
1089 <m_block_index>: Likewise.
1090 (dw2_debug_names_iterator::next)
1091 (dwarf2_debug_names_index::lookup_symbol)
1092 (dwarf2_debug_names_index::expand_symtabs_for_function)
1093 (dwarf2_debug_names_index::map_matching_symbols)
1094 (dwarf2_debug_names_index::map_matching_symbols): Update.
1095 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1096 search_flags parameter.
1097 * ada-lang.c (ada_add_global_exceptions)
1098 (collect_symbol_completion_matches): Update.
1100 2021-04-17 Tom Tromey <tom@tromey.com>
1102 * symtab.c (default_collect_symbol_completion_matches_break_on):
1104 * symfile.h (expand_symtabs_matching): Return bool.
1105 * symfile.c (expand_symtabs_matching): Return bool.
1106 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1108 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1109 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1111 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1113 * psympriv.h (struct psymbol_functions)
1114 <expand_symtabs_matching>: Return bool.
1115 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1117 * dwarf2/read.c (struct dwarf2_gdb_index)
1118 <expand_symtabs_matching>: Return bool.
1119 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1121 (dw2_expand_symtabs_matching_symbol): Return bool.
1122 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1123 (dw2_expand_symtabs_matching)
1124 (dwarf2_gdb_index::expand_symtabs_matching)
1125 (dwarf2_debug_names_index::expand_symtabs_matching)
1126 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1128 2021-04-17 Tom Tromey <tom@tromey.com>
1130 * quick-symbol.h (enum block_search_flag_values): New.
1131 (block_search_flags): New enum flags type.
1133 2021-04-16 Tom Tromey <tom@tromey.com>
1135 * rust-parse.c: New file.
1136 * rust-exp.y: Remove.
1137 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1138 (SFILES): Remove rust-exp.y.
1139 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1141 2021-04-16 Luis Machado <luis.machado@linaro.org>
1143 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1145 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1147 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1148 use throughout file.
1150 2021-04-15 Tom Tromey <tromey@adacore.com>
1152 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1155 2021-04-15 Tom Tromey <tromey@adacore.com>
1157 * printcmd.c (print_variable_and_value): Use
1158 common_val_print_checked.
1160 2021-04-15 Tom Tromey <tromey@adacore.com>
1162 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1163 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1165 * p-exp.y (variable): Update.
1166 * m2-exp.y (variable): Update.
1167 * go-exp.y (variable): Update.
1168 * expprint.c (dump_for_expression): New overload.
1169 * expop.h (check_objfile): New overload.
1170 (check_constant): New overload.
1171 (class var_value_operation): Use block_symbol.
1172 <get_symbol>: Rewrite.
1173 * eval.c (var_value_operation::evaluate)
1174 (var_value_operation::evaluate_funcall)
1175 (var_value_operation::evaluate_for_address)
1176 (var_value_operation::evaluate_for_address)
1177 (var_value_operation::evaluate_with_coercion)
1178 (var_value_operation::evaluate_for_sizeof)
1179 (var_value_operation::evaluate_for_cast): Update.
1180 * d-exp.y (PrimaryExpression): Update.
1181 * c-exp.y (variable): Update.
1182 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1183 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1184 (ada_var_value_operation::evaluate)
1185 (ada_var_value_operation::resolve)
1186 (ada_funcall_operation::resolve): Update.
1187 * ada-exp.y (write_var_from_sym, write_object_renaming)
1188 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1189 (maybe_overload): Update.
1190 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1192 2021-04-15 Tom Tromey <tom@tromey.com>
1193 Andrew Burgess <andrew.burgess@embecosm.com>
1196 * main.c (captured_main_1): Call check_quiet_mode.
1197 * top.c (startup_quiet): New global.
1198 (check_quiet_mode): New function.
1199 (show_startup_quiet): New function.
1200 (init_main): Register new command.
1201 * top.h (check_quiet_mode): Declare.
1203 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1206 * NEWS: Mention new early init files and command line options.
1207 * config.in: Regenerate.
1208 * configure: Regenerate.
1209 * configure.ac: Define GDBEARLYINIT.
1210 * main.c (get_earlyinit_files): New function.
1211 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1212 CMDARG_EARLYINIT_COMMAND.
1213 (captured_main_1): Add support for new command line flags, and for
1214 processing startup files.
1215 (print_gdb_help): Include startup files in the output.
1217 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1219 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1220 (relocate_file_path_maybe_in_datadir): ...this.
1221 (class gdb_initfile_finder): New class.
1222 (get_init_files): Now uses gdb_initfile_finder.
1223 (print_gdb_help): Print 'None found' when there are no init files.
1225 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1227 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1228 corresponding child of the abstract DIE when iterating the
1229 children of the concrete DIE.
1231 2021-04-13 Tom de Vries <tdevries@suse.de>
1233 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1236 2021-04-13 Luis Machado <luis.machado@linaro.org>
1238 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1241 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1243 * rs6000-tdep.c: Add support for single-stepping of
1244 prefixed instructions.
1246 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1249 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1250 handle the addpcis/lnia instruction.
1252 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1254 * MAINTAINERS (Write After Approval): Add myself.
1256 2021-4-12 Carl Love <cel@us.ibm.com>
1258 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1259 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1262 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1264 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1265 * nat/windows-nat.h: Likewise.
1267 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1269 * windows-nat.c (windows_nat::handle_load_dll): Call
1270 windows_add_dll if get_image_name failed to glean the name of the
1271 DLL by using the lpImageName pointer.
1272 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1273 (windows_add_dll): Now does what windows_add_all_dlls did before,
1274 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1275 specifies the address where the DLL was loaded into the inferior,
1276 and looks for the single DLL loaded at that address.
1278 2021-04-09 Luis Machado <luis.machado@linaro.org>
1280 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1282 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1284 * darwin-nat.c (darwin_nat_target::resume): Remove status
1287 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1289 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1290 prologue end for Intel compilers.
1291 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1292 * producer.c (producer_is_icc_ge_19): New function.
1293 * producer.h (producer_is_icc_ge_19): New declaration.
1295 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1297 * producer.c: (producer_is_icc): Update for new version scheme.
1298 (producer_parsing_tests): Update names and expected results.
1299 * producer.h: (producer_is_icc): Update comment accordingly.
1301 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1303 * target.h (struct target_ops) <follow_fork>: Return void.
1304 (target_follow_fork): Likewise.
1305 * target.c (default_follow_fork): Likewise.
1306 (target_follow_fork): Likewise.
1307 * infrun.c (follow_fork_inferior): Adjust.
1308 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1309 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1310 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1311 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1312 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1313 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1314 * remote.c (class remote_target) <follow_fork>: Likewise.
1315 (remote_target::follow_fork): Likewise.
1316 * target-delegates.c: Re-generate.
1318 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1320 * ctfread.c (fetch_tid_type): New function, use throughout file.
1321 (read_forward_type): New function.
1322 (read_type_record): Call read_forward_type.
1324 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1326 * f-exp.h (class fortran_structop_operation): New class.
1327 * f-exp.y (exp): Create fortran_structop_operation instead of the
1328 generic structop_operation.
1329 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1330 expression as EVAL_NORMAL if the result type was dynamic so we can
1331 extract the actual array bounds.
1332 (fortran_structop_operation::evaluate): New function.
1334 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1336 * eval.c (evaluate_subexp_standard): Remove
1337 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1340 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1342 * valops.c (value_cast): Call value_deeply_equal before performing
1345 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1347 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1350 2021-04-07 Caroline Tice <cmtice@google.com>
1352 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1353 the search paths used resolve relative location of .dwo file.
1355 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1357 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1359 (dwarf2_section_info::get_file_name): Add an assert.
1360 (dwarf2_section_info::read_string): Display a minimal, sane error
1361 when the dwarf2_section_info is not associated with a bfd section.
1363 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1365 * top.c (staged_gdb_datadir): Update comment.
1366 (set_gdb_datadir): Copy the value of gdb_datadir back into
1368 (init_main): Initialise staged_gdb_datadir.
1370 2021-04-06 Tom de Vries <tdevries@suse.de>
1372 PR breakpoints/25884
1373 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1376 2021-04-06 Tom de Vries <tdevries@suse.de>
1379 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1382 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1384 * avr-tdep.c (avr_frame_unwind_cache): Use
1385 trad_frame_saved_reg::is_addr.
1387 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1389 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1392 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1394 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1395 objfile parameter for objfile_per_bfd_storage, adjust callers.
1396 (struct standard_psymtab) <standard_psymtab>: Likewise.
1397 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1398 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1399 * ctfread.c (struct ctf_psymtab): Likewise.
1400 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1401 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1402 (dwarf2_create_include_psymtab): Likewise.
1403 * objfiles.h (struct objfile_per_bfd_storage)
1404 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1405 <get_bfd>: New method.
1407 * objfiles.c (get_objfile_bfd_data): Adjust.
1409 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1411 * psymtab.c (partial_symtab::partial_symtab): Change
1412 last_objfile_name to be an std::string.
1413 * symfile.c (allocate_symtab): Likewise.
1415 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1417 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1419 (struct objfile) <intern>: Use
1420 objfile::objfile_per_bfd_storage::intern.
1422 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1424 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1425 with type::is_flag_enum.
1427 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1429 * gdbtypes.h (struct type) <is_flag_enum,
1430 set_is_flag_enum>: New methods.
1431 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1432 write call sites to use type::set_is_flag_enum.
1434 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1436 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1437 with type::is_declared_class.
1439 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1441 * gdbtypes.h (struct type) <is_declared_class,
1442 set_is_declared_class>: New methods.
1443 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1444 write call sites to use type::set_is_declared_class.
1446 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1448 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1449 to avoid deprecation warnings.
1451 2021-04-01 Martin Liska <mliska@suse.cz>
1453 * cp-name-parser.y: Use startswith instead of strncmp.
1454 * m2-exp.y: Likewise.
1455 * macroexp.c (substitute_args): Likewise.
1456 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1457 * rust-exp.y: Likewise.
1459 2021-03-31 Tom Tromey <tom@tromey.com>
1461 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1462 with dw2_map_matching_symbols.
1463 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1464 dw2_expand_symtabs_matching.
1466 2021-03-31 Tom Tromey <tromey@adacore.com>
1468 * dwarf2/stringify.h: Fix typo.
1470 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1473 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1474 with objfiles using READNOW.
1476 2021-03-29 Tom Tromey <tromey@adacore.com>
1478 * top.c (check_frame_language_change): Update.
1479 * language.c (language_info): Remove parameter.
1480 * language.h (language_info): Remove parameter.
1482 2021-03-29 Luis Machado <luis.machado@linaro.org>
1484 * compile/compile.c (get_args): Don't add empty argv entries.
1486 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1489 * procfs.c (procfs_target::attach): Define inf.
1491 (procfs_target::create_inferior): Likewise.
1493 2021-03-28 Tom Tromey <tom@tromey.com>
1495 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1496 (elf_symfile_read): Simplify.
1497 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1498 (make_lazy_dwarf_reader): New function.
1499 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1500 (dwarf2_initialize_objfile): Return void. Remove index_kind
1501 parameter. Push on 'qf' list.
1502 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1503 type. Remove 'index_kind' parameter.
1504 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1506 2021-03-27 Tom Tromey <tom@tromey.com>
1508 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1510 2021-03-27 Tom Tromey <tom@tromey.com>
1512 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1514 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1516 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1519 2021-03-26 Tom Tromey <tom@tromey.com>
1521 * symtab.c (struct output_source_filename_data): Add 'output'
1522 method and operator().
1523 (output_source_filename_data::output): Rename from
1524 output_source_filename.
1525 (output_partial_symbol_filename): Remove.
1526 (info_sources_command): Update.
1527 (struct add_partial_filename_data): Add operator().
1528 (add_partial_filename_data::operator()): Rename from
1529 maybe_add_partial_symtab_filename.
1530 (make_source_files_completion_list): Update.
1531 * symfile.c (quick_symbol_functions): Update.
1532 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1533 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1534 'need_fullname'. Remove 'data' parameter.
1535 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1536 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1537 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1538 Change type of 'fun' and 'need_fullname'. Remove 'data'
1540 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1541 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1542 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1544 (mi_cmd_file_list_exec_source_files): Update.
1546 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1548 2021-03-26 Tom Tromey <tom@tromey.com>
1550 * ada-lang.c (struct match_data): Add operator().
1551 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1552 (callback): Remove 'callback'.
1554 2021-03-26 Tom Tromey <tom@tromey.com>
1556 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1557 call make_ignore_params once.
1559 2021-03-26 Tom Tromey <tom@tromey.com>
1561 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1564 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1565 Pedro Alves <pedro@palves.net>
1567 * async-event.c: Include "infrun.h".
1568 (async_event_handler_marked): New.
1569 * async-event.h (async_event_handler_marked): Declare.
1570 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1571 inferior before calling target method. Don't commit-resumed if
1572 target_has_pending_events is true.
1573 * remote.c (remote_target::has_pending_events): New.
1574 * target-delegates.c: Regenerate.
1575 * target.c (target_has_pending_events): New.
1576 * target.h (target_ops::has_pending_events): New target method.
1577 (target_has_pending_events): New.
1579 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1580 Pedro Alves <pedro@palves.net>
1582 * infcmd.c (run_command_1, attach_command, detach_command)
1583 (interrupt_target_1): Use scoped_disable_commit_resumed.
1584 * infrun.c (do_target_resume): Remove
1585 target_commit_resume call.
1586 (commit_resume_all_targets): Remove.
1587 (maybe_set_commit_resumed_all_targets): New.
1588 (maybe_call_commit_resumed_all_targets): New.
1589 (enable_commit_resumed): New.
1590 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1591 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1592 (scoped_disable_commit_resumed::reset)
1593 (scoped_disable_commit_resumed::reset_and_commit)
1594 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1595 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1597 (proceed): Use scoped_disable_commit_resumed and
1598 maybe_call_commit_resumed_all_targets.
1599 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1600 * infrun.h (struct scoped_disable_commit_resumed): New.
1601 (maybe_call_commit_resumed_all_process_targets): New.
1602 (struct scoped_enable_commit_resumed): New.
1603 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1604 * process-stratum-target.h (class process_stratum_target):
1605 <commit_resumed_state>: New.
1606 * record-full.c (record_full_wait_1): Change commit_resumed_state
1607 around calling commit_resumed.
1608 * remote.c (class remote_target) <commit_resume>: Rename to...
1609 <commit_resumed>: ... this.
1610 (struct stop_reply): Move up.
1611 (remote_target::commit_resume): Rename to...
1612 (remote_target::commit_resumed): ... this. Check if there is any
1613 thread pending vCont resume.
1614 (remote_target::remote_stop_ns): Generate stop replies for resumed
1615 but pending vCont threads.
1616 (remote_target::wait_ns): Add gdb_assert.
1617 * target-delegates.c: Regenerate.
1618 * target.c (target_wait, target_resume): Assert that the current
1619 process_stratum target isn't in commit-resumed state.
1620 (defer_target_commit_resume): Remove.
1621 (target_commit_resume): Remove.
1622 (target_commit_resumed): New.
1623 (make_scoped_defer_target_commit_resume): Remove.
1624 (target_stop): Assert that the current process_stratum target
1625 isn't in commit-resumed state.
1626 * target.h (struct target_ops) <commit_resume>: Rename to ...
1627 <commit_resumed>: ... this.
1628 (target_commit_resume): Remove.
1629 (target_commit_resumed): New.
1630 (make_scoped_defer_target_commit_resume): Remove.
1631 * top.c (wait_sync_command_done): Use
1632 scoped_enable_commit_resumed.
1634 2021-03-26 Pedro Alves <pedro@palves.net>
1636 * target.c (target_always_non_stop_p): Also check whether the
1639 2021-03-26 Tom Tromey <tom@tromey.com>
1641 * dwarf2/read.c (dwarf2_read_debug_names)
1642 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1643 (dw2_debug_names_iterator::next, create_type_unit_group):
1646 2021-03-25 Pedro Alves <pedro@palves.net>
1648 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1649 around setting the breakpoint.
1651 2021-03-25 Pedro Alves <pedro@palves.net>
1654 (remote_target::check_pending_events_prevent_wildcard_vcont):
1655 Check whether the event's ptid is not null_ptid before looking up
1656 the corresponding inferior.
1658 2021-03-24 Changbin Du <changbin.du@gmail.com>
1660 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1663 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1665 * target.h (current_top_target): Remove, make callers use the
1666 current inferior instead.
1667 * target.c (current_top_target): Remove.
1669 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1671 * target.h (target_shortname): Change to function declaration.
1672 (target_longname): Likewise.
1673 (target_attach_no_wait): Likewise.
1674 (target_post_attach): Likewise.
1675 (target_prepare_to_store): Likewise.
1676 (target_supports_enable_disable_tracepoint): Likewise.
1677 (target_supports_string_tracing): Likewise.
1678 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1679 (target_supports_dumpcore): Likewise.
1680 (target_dumpcore): Likewise.
1681 (target_can_run_breakpoint_commands): Likewise.
1682 (target_files_info): Likewise.
1683 (target_post_startup_inferior): Likewise.
1684 (target_insert_fork_catchpoint): Likewise.
1685 (target_remove_fork_catchpoint): Likewise.
1686 (target_insert_vfork_catchpoint): Likewise.
1687 (target_remove_vfork_catchpoint): Likewise.
1688 (target_insert_exec_catchpoint): Likewise.
1689 (target_remove_exec_catchpoint): Likewise.
1690 (target_set_syscall_catchpoint): Likewise.
1691 (target_rcmd): Likewise.
1692 (target_can_lock_scheduler): Likewise.
1693 (target_can_async_p): Likewise.
1694 (target_is_async_p): Likewise.
1695 (target_execution_direction): Likewise.
1696 (target_extra_thread_info): Likewise.
1697 (target_pid_to_exec_file): Likewise.
1698 (target_thread_architecture): Likewise.
1699 (target_find_memory_regions): Likewise.
1700 (target_make_corefile_notes): Likewise.
1701 (target_get_bookmark): Likewise.
1702 (target_goto_bookmark): Likewise.
1703 (target_stopped_by_watchpoint): Likewise.
1704 (target_stopped_by_sw_breakpoint): Likewise.
1705 (target_supports_stopped_by_sw_breakpoint): Likewise.
1706 (target_stopped_by_hw_breakpoint): Likewise.
1707 (target_supports_stopped_by_hw_breakpoint): Likewise.
1708 (target_have_steppable_watchpoint): Likewise.
1709 (target_can_use_hardware_watchpoint): Likewise.
1710 (target_region_ok_for_hw_watchpoint): Likewise.
1711 (target_can_do_single_step): Likewise.
1712 (target_insert_watchpoint): Likewise.
1713 (target_remove_watchpoint): Likewise.
1714 (target_insert_hw_breakpoint): Likewise.
1715 (target_remove_hw_breakpoint): Likewise.
1716 (target_can_accel_watchpoint_condition): Likewise.
1717 (target_can_execute_reverse): Likewise.
1718 (target_get_ada_task_ptid): Likewise.
1719 (target_filesystem_is_local): Likewise.
1720 (target_trace_init): Likewise.
1721 (target_download_tracepoint): Likewise.
1722 (target_can_download_tracepoint): Likewise.
1723 (target_download_trace_state_variable): Likewise.
1724 (target_enable_tracepoint): Likewise.
1725 (target_disable_tracepoint): Likewise.
1726 (target_trace_start): Likewise.
1727 (target_trace_set_readonly_regions): Likewise.
1728 (target_get_trace_status): Likewise.
1729 (target_get_tracepoint_status): Likewise.
1730 (target_trace_stop): Likewise.
1731 (target_trace_find): Likewise.
1732 (target_get_trace_state_variable_value): Likewise.
1733 (target_save_trace_data): Likewise.
1734 (target_upload_tracepoints): Likewise.
1735 (target_upload_trace_state_variables): Likewise.
1736 (target_get_raw_trace_data): Likewise.
1737 (target_get_min_fast_tracepoint_insn_len): Likewise.
1738 (target_set_disconnected_tracing): Likewise.
1739 (target_set_circular_trace_buffer): Likewise.
1740 (target_set_trace_buffer_size): Likewise.
1741 (target_set_trace_notes): Likewise.
1742 (target_get_tib_address): Likewise.
1743 (target_set_permissions): Likewise.
1744 (target_static_tracepoint_marker_at): Likewise.
1745 (target_static_tracepoint_markers_by_strid): Likewise.
1746 (target_traceframe_info): Likewise.
1747 (target_use_agent): Likewise.
1748 (target_can_use_agent): Likewise.
1749 (target_augmented_libraries_svr4_read): Likewise.
1750 (target_log_command): Likewise.
1751 * target.c (target_shortname): New.
1752 (target_longname): New.
1753 (target_attach_no_wait): New.
1754 (target_post_attach): New.
1755 (target_prepare_to_store): New.
1756 (target_supports_enable_disable_tracepoint): New.
1757 (target_supports_string_tracing): New.
1758 (target_supports_evaluation_of_breakpoint_conditions): New.
1759 (target_supports_dumpcore): New.
1760 (target_dumpcore): New.
1761 (target_can_run_breakpoint_commands): New.
1762 (target_files_info): New.
1763 (target_post_startup_inferior): New.
1764 (target_insert_fork_catchpoint): New.
1765 (target_remove_fork_catchpoint): New.
1766 (target_insert_vfork_catchpoint): New.
1767 (target_remove_vfork_catchpoint): New.
1768 (target_insert_exec_catchpoint): New.
1769 (target_remove_exec_catchpoint): New.
1770 (target_set_syscall_catchpoint): New.
1772 (target_can_lock_scheduler): New.
1773 (target_can_async_p): New.
1774 (target_is_async_p): New.
1775 (target_execution_direction): New.
1776 (target_extra_thread_info): New.
1777 (target_pid_to_exec_file): New.
1778 (target_thread_architecture): New.
1779 (target_find_memory_regions): New.
1780 (target_make_corefile_notes): New.
1781 (target_get_bookmark): New.
1782 (target_goto_bookmark): New.
1783 (target_stopped_by_watchpoint): New.
1784 (target_stopped_by_sw_breakpoint): New.
1785 (target_supports_stopped_by_sw_breakpoint): New.
1786 (target_stopped_by_hw_breakpoint): New.
1787 (target_supports_stopped_by_hw_breakpoint): New.
1788 (target_have_steppable_watchpoint): New.
1789 (target_can_use_hardware_watchpoint): New.
1790 (target_region_ok_for_hw_watchpoint): New.
1791 (target_can_do_single_step): New.
1792 (target_insert_watchpoint): New.
1793 (target_remove_watchpoint): New.
1794 (target_insert_hw_breakpoint): New.
1795 (target_remove_hw_breakpoint): New.
1796 (target_can_accel_watchpoint_condition): New.
1797 (target_can_execute_reverse): New.
1798 (target_get_ada_task_ptid): New.
1799 (target_filesystem_is_local): New.
1800 (target_trace_init): New.
1801 (target_download_tracepoint): New.
1802 (target_can_download_tracepoint): New.
1803 (target_download_trace_state_variable): New.
1804 (target_enable_tracepoint): New.
1805 (target_disable_tracepoint): New.
1806 (target_trace_start): New.
1807 (target_trace_set_readonly_regions): New.
1808 (target_get_trace_status): New.
1809 (target_get_tracepoint_status): New.
1810 (target_trace_stop): New.
1811 (target_trace_find): New.
1812 (target_get_trace_state_variable_value): New.
1813 (target_save_trace_data): New.
1814 (target_upload_tracepoints): New.
1815 (target_upload_trace_state_variables): New.
1816 (target_get_raw_trace_data): New.
1817 (target_get_min_fast_tracepoint_insn_len): New.
1818 (target_set_disconnected_tracing): New.
1819 (target_set_circular_trace_buffer): New.
1820 (target_set_trace_buffer_size): New.
1821 (target_set_trace_notes): New.
1822 (target_get_tib_address): New.
1823 (target_set_permissions): New.
1824 (target_static_tracepoint_marker_at): New.
1825 (target_static_tracepoint_markers_by_strid): New.
1826 (target_traceframe_info): New.
1827 (target_use_agent): New.
1828 (target_can_use_agent): New.
1829 (target_augmented_libraries_svr4_read): New.
1830 (target_log_command): New.
1831 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1832 * infrun.c (set_schedlock_func): Adjust.
1833 * mi/mi-main.c (exec_reverse_continue): Adjust.
1834 * reverse.c (exec_reverse_once): Adjust.
1835 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1836 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1837 * remote-sim.c (gdbsim_target::detach): Adjust.
1838 (gdbsim_target::files_info): Adjust.
1840 2021-03-24 Tom Tromey <tom@tromey.com>
1842 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1843 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1844 (check_match, dw2_expand_symtabs_matching)
1845 (dwarf2_debug_names_index::map_matching_symbols)
1846 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1848 2021-03-24 Keith Seitz <keiths@redhat.com>
1850 * compile/compile-cplus-types.c
1851 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1854 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1856 * gdbarch.sh (gdbarch_data_registry): Make static.
1857 * gdbarch.c: Re-generate.
1859 2021-03-24 Luis Machado <luis.machado@linaro.org>
1861 * NEWS: Mention memory tagging changes.
1863 2021-03-24 Luis Machado <luis.machado@linaro.org>
1865 * printcmd.c (decode_format): Handle the 'm' modifier.
1866 (do_examine): Display allocation tags when required/supported.
1867 (should_validate_memtags): New function.
1868 (print_command_1): Display memory tag mismatches.
1869 * valprint.c (show_memory_tag_violations): New function.
1870 (value_print_option_defs): Add new option "memory-tag-violations".
1871 (user_print_options) <memory_tag_violations>: Initialize to 1.
1872 * valprint.h (struct format_data) <print_tags>: New field.
1873 (value_print_options) <memory_tag_violations>: New field.
1875 2021-03-24 Luis Machado <luis.machado@linaro.org>
1877 * printcmd.c: Include gdbsupport/rsp-low.h.
1878 (memory_tag_list): New static global.
1879 (process_print_command_args): Factored out of
1881 (print_command_1): Use process_print_command_args.
1882 (show_addr_not_tagged, show_memory_tagging_unsupported)
1883 (memory_tag_command, memory_tag_print_tag_command)
1884 (memory_tag_print_logical_tag_command)
1885 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1886 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1887 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1889 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1891 2021-03-24 Luis Machado <luis.machado@linaro.org>
1893 * aarch64-linux-tdep.c
1894 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1895 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1897 2021-03-24 Luis Machado <luis.machado@linaro.org>
1899 * aarch64-linux-tdep.c
1900 (aarch64_linux_report_signal_info): New function.
1901 (aarch64_linux_init_abi): Register
1902 aarch64_linux_report_signal_info as the report_signal_info hook.
1903 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1904 (SEGV_MTESERR): Define.
1906 2021-03-24 Luis Machado <luis.machado@linaro.org>
1908 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1909 (aarch64_linux_ltag_tests): New function.
1910 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1912 2021-03-24 Luis Machado <luis.machado@linaro.org>
1914 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1915 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1916 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1917 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1919 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1920 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1921 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1922 (aarch64_linux_get_ltag): New functions.
1923 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1924 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1925 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1926 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1928 2021-03-24 Luis Machado <luis.machado@linaro.org>
1930 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1932 (struct smaps_data): New struct.
1933 (decode_vmflags): Handle the 'mt' flag.
1934 (parse_smaps_data): New function, refactored from
1935 linux_find_memory_regions_full.
1936 (linux_address_in_memtag_page): New function.
1937 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1938 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1940 2021-03-24 Luis Machado <luis.machado@linaro.org>
1942 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1943 instead of char arrays.
1945 2021-03-24 Luis Machado <luis.machado@linaro.org>
1947 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1948 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1949 nat/aarch64-mte-linux-ptrace.h.
1950 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1951 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1953 <fetch_memtags>: New method override.
1954 <store_memtags>: New method override.
1955 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1956 (aarch64_linux_nat_target::fetch_memtags): New method.
1957 (aarch64_linux_nat_target::store_memtags): New method.
1958 * arch/aarch64-mte-linux.c: New file.
1959 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1960 (AARCH64_MTE_GRANULE_SIZE): Define.
1961 (aarch64_memtag_type): New enum.
1962 (aarch64_mte_get_tag_granules): New prototype.
1963 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1964 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1965 * nat/aarch64-mte-linux-ptrace.c: New file.
1966 * nat/aarch64-mte-linux-ptrace.h: New file.
1968 2021-03-24 Luis Machado <luis.machado@linaro.org>
1970 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1971 * nat/aarch64-mte-linux-ptrace.h: New file.
1973 2021-03-24 Luis Machado <luis.machado@linaro.org>
1975 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1976 (store_mteregs_to_thread): New function.
1977 (aarch64_linux_nat_target::fetch_registers): Update to call
1978 fetch_mteregs_from_thread.
1979 (aarch64_linux_nat_target::store_registers): Update to call
1980 store_mteregs_to_thread.
1981 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1982 (aarch64_cannot_store_register): Handle MTE registers.
1983 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1984 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1985 <has_mte>: New method.
1986 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1988 2021-03-24 Luis Machado <luis.machado@linaro.org>
1990 * aarch64-linux-nat.c
1991 (aarch64_linux_nat_target::read_description): Take MTE flag into
1993 Slight refactor to hwcap flag checking.
1994 * aarch64-linux-tdep.c
1995 (aarch64_linux_core_read_description): Likewise.
1996 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1998 (aarch64_read_description): Add mte_p parameter and update to use it.
1999 Update the documentation.
2000 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2001 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2002 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2003 (aarch64_create_target_description): Add mte_p parameter and update
2005 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2007 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2008 * features/aarch64-mte.c: New file, generated.
2009 * features/aarch64-mte.xml: New file.
2011 2021-03-24 Luis Machado <luis.machado@linaro.org>
2013 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2014 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2015 * aarch64-linux-tdep.c: Likewise
2016 * arch/aarch64-mte-linux.h: New file.
2018 2021-03-24 Luis Machado <luis.machado@linaro.org>
2020 * remote: Include gdbsupport/selftest.h.
2021 (test_memory_tagging_functions): New function.
2022 (_initialize_remote): Register test_memory_tagging_functions.
2024 2021-03-24 Luis Machado <luis.machado@linaro.org>
2026 * remote.c (PACKET_memory_tagging_feature): New enum.
2027 (remote_memory_tagging_p): New function.
2028 (remote_protocol_features): New "memory-tagging" entry.
2029 (remote_target::remote_query_supported): Handle memory tagging
2031 (remote_target::supports_memory_tagging): Implement.
2032 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2033 (create_store_memtags_request): New functions.
2034 (remote_target::fetch_memtags): Implement.
2035 (remote_target::store_memtags): Implement.
2036 (_initialize_remote): Add new "memory-tagging-feature"
2039 2021-03-24 Luis Machado <luis.machado@linaro.org>
2041 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2042 (default_memtag_matches_p, default_set_memtags)
2043 (default_get_memtag): New functions.
2044 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2045 (default_memtag_matches_p, default_set_memtags)
2046 (default_get_memtag): New prototypes.
2047 * gdbarch.c: Regenerate.
2048 * gdbarch.h: Regenerate.
2049 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2050 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2051 (enum memtag_type): New enum.
2053 2021-03-24 Luis Machado <luis.machado@linaro.org>
2055 * remote.c (remote_target) <supports_memory_tagging>: New method
2057 <fetch_memtags>: New method override.
2058 <store_memtags>: New method override.
2059 (remote_target::supports_memory_tagging): New method.
2060 (remote_target::fetch_memtags): New method.
2061 (remote_target::store_memtags): New method.
2062 * target-delegates.c: Regenerate.
2063 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2065 <fetch_memtags>: New virtual method.
2066 <store_memtags>: New virtual method.
2067 (target_supports_memory_tagging): Define.
2068 (target_fetch_memtags): Define.
2069 (target_store_memtags): Define.
2070 * target-debug.h (target_debug_print_size_t)
2071 (target_debug_print_const_gdb_byte_vector_r)
2072 (target_debug_print_gdb_byte_vector_r): New functions.
2074 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2076 * target.h (target_longname): Remove.
2078 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2080 * target.h (target_is_pushed): Remove, update callers to use
2081 inferior::target_is_pushed instead.
2082 * target.c (target_is_pushed): Remove.
2084 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2086 * target.h (push_target): Remove, update callers to use
2087 inferior::push_target.
2088 * target.c (push_target): Remove.
2089 * inferior.h (class inferior) <push_target>: New overload.
2091 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2093 * target.h (unpush_target): Remove, update all callers
2094 to use `inferior::unpush_target` instead.
2095 (struct target_unpusher) <operator()>: Just declare.
2096 * target.c (unpush_target): Remove.
2097 (target_unpusher::operator()): New.
2099 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2101 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2103 (process_full_comp_unit): Validate the top-level tag before
2104 processing the first DIE.
2105 (read_func_scope): Ensure we have a valid builder.
2107 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2109 * objc-lang.c (objc_demangle): Renamed to
2110 objc_language::demangle_symbol, and moved later in the file.
2111 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2113 (objc_language::demangle_symbol): Defined outside of class
2114 declaration. The definition is the old objc_demangle with NULL
2115 changed to nullptr, and if conditions relating to nullptr pointers
2116 or null character checks made explicit.
2117 * objc-lang.h (objc_demangle): Delete declaration.
2119 2021-03-22 Martin Liska <mliska@suse.cz>
2121 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2122 (_initialize_arm_tdep): Likewise.
2124 2021-03-20 Tom Tromey <tom@tromey.com>
2126 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2127 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2128 * psymtab.h (make_psymbol_functions): Don't declare.
2129 * psymtab.c (make_psymbol_functions): Remove.
2130 (maintenance_print_psymbols): Update.
2131 * psympriv.h (struct psymbol_functions): Add no-argument
2133 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2134 <partial_symtabs>: Remove.
2135 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2136 * elfread.c (read_partial_symbols): Update.
2137 (elf_symfile_read): Remove check for existing partial symbols.
2139 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2141 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2143 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2145 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2146 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2148 2021-03-20 Tom Tromey <tom@tromey.com>
2150 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2151 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2152 * symfile-debug.c (objfile::has_partial_symbols)
2153 (objfile::find_last_source_symtab)
2154 (objfile::forget_cached_source_info)
2155 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2156 (objfile::print_stats, objfile::dump)
2157 (objfile::expand_symtabs_for_function)
2158 (objfile::expand_all_symtabs)
2159 (objfile::expand_symtabs_with_fullname)
2160 (objfile::map_matching_symbols)
2161 (objfile::expand_symtabs_matching)
2162 (objfile::find_pc_sect_compunit_symtab)
2163 (objfile::map_symbol_filenames)
2164 (objfile::find_compunit_symtab_by_address)
2165 (objfile::lookup_global_symbol_language)
2166 (objfile::require_partial_symbols): Update.
2167 * psymtab.c (maintenance_print_psymbols)
2168 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2169 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2170 * objfiles.c (objfile_relocate1): Update.
2171 * elfread.c (elf_symfile_read): Update.
2173 2021-03-20 Tom Tromey <tom@tromey.com>
2175 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2177 2021-03-20 Tom Tromey <tom@tromey.com>
2179 * psymtab.c (psymbol_functions::count_psyms): Rename.
2180 (psymbol_functions::print_stats): Update.
2181 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2184 2021-03-20 Tom Tromey <tom@tromey.com>
2186 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2187 (psymbol_functions::find_pc_sect_psymtab): Rename.
2188 (psymbol_functions::find_pc_sect_compunit_symtab)
2189 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2190 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2192 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2194 2021-03-20 Tom Tromey <tom@tromey.com>
2196 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2197 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2198 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2200 (add_psymbol_to_bcache): Remove.
2201 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2202 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2204 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2205 <add_psymbol>: Likewise.
2206 (standard_psymtab, legacy_psymtab): Likewise.
2207 * mdebugread.c (parse_partial_symbols): Update.
2208 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2209 (handle_psymbol_enumerators): Update.
2210 (new_psymtab): Add partial_symtabs parameter.
2211 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2212 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2214 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2215 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2217 * dbxread.c (read_dbx_symtab): Update.
2218 (start_psymtab): Add partial_symtabs parameter.
2219 (dbx_end_psymtab): Update.
2220 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2221 (ctf_psymtab): Add partial_symtabs parameter.
2222 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2224 (scan_partial_symbols): Add partial_symtabs parameter.
2225 (scan_partial_symbols, elfctf_build_psymtabs)
2226 (ctf_psymtab_add_enums): Update.
2228 2021-03-20 Tom Tromey <tom@tromey.com>
2230 * symfile.c (read_symbols): Use objfile method.
2231 * symfile-debug.c (objfile::require_partial_symbols): New method.
2232 * psymtab.h (require_partial_symbols): Don't declare.
2233 * psymtab.c (require_partial_symbols): Use objfile method. Now
2235 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2236 (psymbol_functions::lookup_symbol)
2237 (psymbol_functions::lookup_global_symbol_language)
2238 (psymbol_functions::find_last_source_symtab)
2239 (psymbol_functions::forget_cached_source_info)
2240 (psymbol_functions::print_stats)
2241 (psymbol_functions::expand_symtabs_for_function)
2242 (psymbol_functions::expand_all_symtabs)
2243 (psymbol_functions::expand_symtabs_with_fullname)
2244 (psymbol_functions::map_symbol_filenames)
2245 (psymbol_functions::map_matching_symbols)
2246 (psymbol_functions::expand_symtabs_matching)
2247 (psymbol_functions::find_compunit_symtab_by_address)
2248 (maintenance_print_psymbols, maintenance_info_psymtabs)
2249 (maintenance_check_psymtabs): Update.
2250 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2253 2021-03-20 Tom Tromey <tom@tromey.com>
2255 * xcoffread.c (xcoff_sym_fns): Update.
2256 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2257 * symfile-debug.c (objfile::has_partial_symbols): Use
2258 can_lazily_read_symbols.
2259 (debug_sym_read_psymbols): Remove.
2260 (debug_sym_fns, install_symfile_debug_logging): Update.
2261 * quick-symbol.h (struct quick_symbol_functions)
2262 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2263 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2264 * mipsread.c (ecoff_sym_fns): Update.
2265 * machoread.c (macho_sym_fns): Update.
2266 * elfread.c (struct lazy_dwarf_reader): New.
2267 (elf_symfile_read): Update.
2268 (read_psyms): Now a method of lazy_dwarf_reader.
2269 (elf_sym_fns): Update.
2270 (elf_sym_fns_lazy_psyms): Remove.
2271 * dbxread.c (aout_sym_fns): Update.
2272 * coffread.c (coff_sym_fns): Update.
2274 2021-03-20 Tom Tromey <tom@tromey.com>
2276 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2277 (reread_symbols): Move reset_psymtabs call later.
2278 * objfiles.c (objfile::objfile): Don't initialize
2281 2021-03-20 Tom Tromey <tom@tromey.com>
2283 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2284 set_partial_symtabs.
2285 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2286 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2288 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2290 (psymbol_functions::find_pc_sect_compunit_symtab)
2291 (psymbol_functions::print_stats, psymbol_functions::dump)
2292 (psymbol_functions::has_symbols): Update.
2293 (make_psymbol_functions, dump_psymtab_addrmap): Add
2294 partial_symtabs parameter.
2295 (maintenance_print_psymbols): Update.
2296 (psymbol_functions::expand_symtabs_matching): Update.
2297 * psympriv.h (struct psymbol_functions): Add constructor.
2298 <m_partial_symtabs>: New member.
2299 <set_partial_symtabs>: New method.
2301 2021-03-20 Tom Tromey <tom@tromey.com>
2303 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2305 (process_psymtab_comp_unit_reader)
2306 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2307 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2308 Reference psymtabs via per_bfd.
2310 2021-03-20 Tom Tromey <tom@tromey.com>
2312 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2314 (add_address_entry): Remove objfile parameter.
2315 (add_address_entry_worker): Update.
2316 (write_address_map): Replace objfile parameter with per_bfd.
2317 (write_gdbindex, write_psymtabs_to_index): Update.
2319 2021-03-20 Tom Tromey <tom@tromey.com>
2321 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2322 print_bcache parameter.
2323 * symfile-debug.c (objfile::print_stats): Add print_bcache
2325 * quick-symbol.h (struct quick_symbol_functions)
2326 <print_stats>: Add print_bcache parameter.
2327 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2329 (print_objfile_statistics): Move psymtab code to psymtab.c.
2330 * psymtab.c (count_psyms): Move from symmisc.c.
2331 (psymbol_functions::print_stats): Print partial symbol and bcache
2332 statistics. Add print_bcache parameter.
2333 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2334 (struct objfile) <print_stats>: Add print_bcache parameter.
2335 * maint.c (maintenance_print_statistics): Update.
2337 2021-03-20 Tom Tromey <tom@tromey.com>
2339 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2341 * dwarf2/read.c (create_addrmap_from_index)
2342 (create_addrmap_from_aranges): Set per_bfd addrmap.
2343 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2344 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2346 (dwarf2_read_debug_names): Don't set partial_symtabs.
2347 (dwarf2_initialize_objfile): Likewise.
2349 2021-03-20 Tom Tromey <tom@tromey.com>
2351 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2354 2021-03-20 Tom Tromey <tom@tromey.com>
2356 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2357 (~psymtab_discarder, keep): Update.
2358 <m_objfile>: Remove.
2359 <m_partial_symtabs>: New member.
2360 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2362 2021-03-20 Tom Tromey <tom@tromey.com>
2364 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2365 (xcoff_end_psymtab): Update.
2366 (scan_xcoff_symtab): Add partial_symtabs parameter.
2367 (xcoff_initial_scan): Update.
2368 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2369 * mdebugread.c (mdebug_build_psymtabs): Update.
2370 (parse_partial_symbols): Add partial_symtabs parameter.
2371 * dbxread.c (dbx_symfile_read): Update.
2372 (read_dbx_symtab): Add partial_symtabs parameter.
2373 (read_dbx_symtab): Update.
2374 (dbx_end_psymtab): Add partial_symtabs parameter.
2376 2021-03-20 Tom Tromey <tom@tromey.com>
2378 * quick-symbol.h (struct quick_symbol_functions)
2379 <relocated>: New method.
2380 * psymtab.h (struct psymbol_functions) <relocated>: New
2382 <fill_psymbol_map>: Declare method.
2383 <m_psymbol_map>: New member.
2384 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2385 (psymbol_functions::find_compunit_symtab_by_address): Update.
2386 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2387 (struct objfile) <psymbol_map>: Remove.
2388 * objfiles.c (objfile_relocate1): Update.
2390 2021-03-20 Tom Tromey <tom@tromey.com>
2392 * psympriv.h (struct psymbol_functions): New.
2393 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2394 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2395 (objfile::lookup_global_symbol_language): Update.
2396 * quick-symbol.h (struct quick_symbol_functions): Convert function
2397 pointers to methods. Add virtual destructor.
2398 (quick_symbol_functions_up): New typedef.
2399 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2400 (dwarf2_debug_names_functions): Don't declare.
2401 (make_psymbol_functions): Declare.
2402 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2403 (psymbol_functions::find_pc_sect_compunit_symtab)
2404 (psymbol_functions::lookup_symbol)
2405 (psymbol_functions::lookup_global_symbol_language)
2406 (psymbol_functions::find_last_source_symtab)
2407 (psymbol_functions::forget_cached_source_info)
2408 (psymbol_functions::print_stats, psymbol_functions::dump)
2409 (psymbol_functions::expand_symtabs_for_function)
2410 (psymbol_functions::expand_all_symtabs)
2411 (psymbol_functions::expand_symtabs_with_fullname)
2412 (psymbol_functions::map_symbol_filenames)
2413 (psymbol_functions::map_matching_symbols)
2414 (psymbol_functions::expand_symtabs_matching)
2415 (psymbol_functions::has_symbols)
2416 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2417 (psym_functions): Remove.
2418 (make_psymbol_functions): New function.
2419 * objfiles.h (struct objfile) <qf>: Change type.
2420 * elfread.c (elf_symfile_read): Update.
2421 * dwarf2/read.c (struct dwarf2_base_index_functions)
2422 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2423 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2424 (dwarf2_base_index_functions::find_last_source_symtab)
2425 (dwarf2_base_index_functions::forget_cached_source_info)
2426 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2427 (dwarf2_gdb_index::lookup_symbol)
2428 (dwarf2_base_index_functions::print_stats)
2429 (dwarf2_gdb_index::dump)
2430 (dwarf2_gdb_index::expand_symtabs_for_function)
2431 (dwarf2_base_index_functions::expand_all_symtabs)
2432 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2434 (dwarf2_gdb_index::map_matching_symbols): New method.
2435 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2436 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2437 (dwarf2_base_index_functions::map_symbol_filenames)
2438 (dwarf2_base_index_functions::has_symbols): Rename.
2439 (dwarf2_gdb_index_functions): Remove.
2440 (dwarf2_debug_names_index::lookup_symbol)
2441 (dwarf2_debug_names_index::dump)
2442 (dwarf2_debug_names_index::expand_symtabs_for_function)
2443 (dwarf2_debug_names_index::map_matching_symbols)
2444 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2445 (dwarf2_debug_names_functions): Remove.
2446 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2449 2021-03-20 Tom Tromey <tom@tromey.com>
2451 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2453 * xcoffread.c (xcoff_sym_fns): Update.
2454 * symfile.h (struct sym_fns) <qf>: Remove.
2455 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2456 * symfile-debug.c (objfile::has_partial_symbols)
2457 (objfile::find_last_source_symtab)
2458 (objfile::forget_cached_source_info)
2459 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2460 (objfile::print_stats, objfile::dump)
2461 (objfile::expand_symtabs_for_function)
2462 (objfile::expand_all_symtabs)
2463 (objfile::expand_symtabs_with_fullname)
2464 (objfile::map_matching_symbols)
2465 (objfile::expand_symtabs_matching)
2466 (objfile::find_pc_sect_compunit_symtab)
2467 (objfile::map_symbol_filenames)
2468 (objfile::find_compunit_symtab_by_address)
2469 (objfile::lookup_global_symbol_language, debug_sym_fns)
2470 (install_symfile_debug_logging): Update.
2471 * objfiles.h (struct objfile) <qf>: New member.
2472 * mipsread.c (ecoff_sym_fns): Update.
2473 * machoread.c (macho_sym_fns): Update.
2474 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2476 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2477 * dbxread.c (aout_sym_fns): Update.
2478 * coffread.c (coff_sym_fns): Update.
2480 2021-03-20 Tom Tromey <tom@tromey.com>
2482 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2483 (expand_symtabs_file_matcher_ftype)
2484 (expand_symtabs_symbol_matcher_ftype)
2485 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2486 Move to quick-symbol.h.
2487 * quick-symbol.h: New file.
2489 2021-03-20 Tom Tromey <tom@tromey.com>
2491 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2492 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2493 (basic_lookup_transparent_type_quick)
2494 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2495 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2497 * symmisc.c (print_objfile_statistics, dump_objfile)
2498 (maintenance_expand_symtabs): Update.
2499 * symfile.c (symbol_file_add_with_addrs)
2500 (expand_symtabs_matching, map_symbol_filenames): Update.
2501 * symfile-debug.c (objfile::has_partial_symbols)
2502 (objfile::find_last_source_symtab)
2503 (objfile::forget_cached_source_info)
2504 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2505 (objfile::print_stats, objfile::dump)
2506 (objfile::expand_symtabs_for_function)
2507 (objfile::expand_all_symtabs)
2508 (objfile::expand_symtabs_with_fullname)
2509 (objfile::map_matching_symbols)
2510 (objfile::expand_symtabs_matching)
2511 (objfile::find_pc_sect_compunit_symtab)
2512 (objfile::map_symbol_filenames)
2513 (objfile::find_compunit_symtab_by_address)
2514 (objfile::lookup_global_symbol_language): New methods.
2515 (debug_sym_quick_functions): Remove.
2516 (debug_sym_fns, install_symfile_debug_logging): Update.
2517 * source.c (forget_cached_source_info_for_objfile)
2518 (select_source_symtab): Update.
2519 * objfiles.h (struct objfile): Add methods corresponding to
2520 quick_symbol_functions.
2521 * objfiles.c (objfile::has_partial_symbols): Move to
2523 * linespec.c (iterate_over_all_matching_symtabs): Update.
2524 * cp-support.c (add_symbol_overload_list_qualified): Update.
2525 * ada-lang.c (add_nonlocal_symbols): Update.
2527 2021-03-20 Tom Tromey <tom@tromey.com>
2529 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2530 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2532 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2533 * psymtab.c (psym_has_symbols): Return bool.
2534 * objfiles.c (objfile::has_partial_symbols): Return bool.
2535 * dwarf2/read.c (dw2_has_symbols): Return bool.
2537 2021-03-20 Tom Tromey <tom@tromey.com>
2539 * symfile.c (read_symbols): Update.
2540 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2541 (objfile_has_partial_symbols): Don't declare.
2542 * objfiles.c (objfile::has_partial_symbols): Rename from
2543 objfile_has_partial_symbols.
2544 (objfile_has_symbols, have_partial_symbols): Update.
2545 * elfread.c (elf_symfile_read): Update.
2546 * dwarf2/read.c (dwarf2_has_info): Update.
2547 * coffread.c (coff_symfile_read): Update.
2549 2021-03-20 Tom Tromey <tom@tromey.com>
2551 * coffread.c: Include dwarf2/public.h.
2552 * dwarf2/frame.c: Include dwarf2/public.h.
2553 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2554 * dwarf2/public.h: New file.
2555 * dwarf2/read.c: Include dwarf2/public.h.
2556 * elfread.c: Include dwarf2/public.h.
2557 * machoread.c: Include dwarf2/public.h.
2558 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2559 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2560 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2561 * xcoffread.c: Include dwarf2/public.h.
2563 2021-03-20 Tom Tromey <tom@tromey.com>
2565 * symfile.h (enum dwarf2_section_enum)
2566 (dwarf2_get_section_info): Move to dwarf2/read.h.
2567 * dwarf2/read.h (enum dwarf2_section_enum)
2568 (dwarf2_get_section_info): Move from symfile.h.
2570 2021-03-19 Pedro Alves <pedro@palves.net>
2572 * thread.c (any_thread_of_inferior): Check if there's a selected
2573 thread before calling inferior_thread().
2575 2021-03-18 Tom Tromey <tromey@adacore.com>
2577 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2579 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2580 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2582 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2584 * python/py-param.c (get_set_value): Update header comment.
2586 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2588 * infrun.c (check_multi_target_resumption): Remove argument to
2589 all_non_exited_inferiors.
2591 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2593 * windows-nat.c (windows_init_thread_list): Add message to
2596 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2598 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2599 well as PyLong_Check for Python 2.
2601 2021-03-15 Tom Tromey <tromey@adacore.com>
2604 * rust-exp.y (maker_map): Use gdb::hash_enum.
2605 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2607 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2609 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2612 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2614 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2615 parameter, adjust caller.
2617 2021-03-15 Tom Tromey <tromey@adacore.com>
2619 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2621 2021-03-15 Tom Tromey <tromey@adacore.com>
2623 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2624 ada_ensure_varsize_limit.
2626 2021-03-15 Tom Tromey <tromey@adacore.com>
2628 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2630 * ada-exp.y (maybe_overload): New function.
2631 (ada_wrap_overload): New function.
2632 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2633 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2634 (or_else_exp, xor_exp, primary): Update.
2636 2021-03-15 Tom Tromey <tromey@adacore.com>
2639 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2640 call for tagged type.
2642 2021-03-15 Tom Tromey <tromey@adacore.com>
2644 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2647 2021-03-15 Tom Tromey <tromey@adacore.com>
2649 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2651 (ada_assign_operation::evaluate): Update.
2652 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2655 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2657 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2659 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2661 * python/python.c (gdbpy_source_objfile_script): Use
2662 make_scoped_restore to restore gdbpy_current_objfile.
2663 (gdbpy_execute_objfile_script): Likewise.
2665 2021-03-14 Tom Tromey <tom@tromey.com>
2667 * dwarf2/read.c (read_attribute_value): Use cu_header
2670 2021-03-14 Tom Tromey <tom@tromey.com>
2672 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2673 (peek_die_abbrev): Use reader.abfd.
2675 2021-03-14 Tom Tromey <tom@tromey.com>
2677 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2680 2021-03-13 Tom Tromey <tom@tromey.com>
2682 * dwarf2/read.c (struct partial_die_info): Update.
2683 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2684 (load_partial_dies, partial_die_info::partial_die_info): Update.
2685 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2687 2021-03-13 Tom Tromey <tom@tromey.com>
2689 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2691 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2694 * cp-support.c: Use scoped_segv_handler_restore.
2695 * event-top.c (thread_local_segv_handler): Made static.
2696 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2698 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2700 * event-top.h (class scoped_segv_handler_restore): New class.
2701 (thread_local_segv_handler): Removed.
2703 2021-03-10 Tom Tromey <tromey@adacore.com>
2705 * parser-defs.h (parser_state): Change completion to bool.
2706 <parse_completion>: Likewise.
2707 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2708 (ada_resolve_variable, ada_resolve_function): Update.
2709 * ada-lang.c (ada_find_operator_symbol): Change
2710 parse_completion to bool.
2711 (ada_resolve_funcall, ada_resolve_variable)
2712 (ada_resolve_function): Likewise.
2714 2021-03-09 Tom Tromey <tromey@adacore.com>
2716 * eval.c (operation::evaluate_funcall): Use function formal
2717 parameter types when evaluating.
2719 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2721 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2722 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2723 and owner to m_owner.
2725 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2727 * f-exp.h (eval_op_f_loc): Declare.
2728 (expr::fortran_loc_operation): New typedef.
2729 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2731 (f77_keywords): Add LOC keyword.
2732 * f-lang.c (eval_op_f_loc): New function.
2733 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2735 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2737 * f-exp.h (eval_op_f_array_shape): Declare.
2738 (fortran_array_shape_operation): New type.
2739 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2741 (f77_keywords): Add "shape" keyword.
2742 * f-lang.c (fortran_array_shape): New function.
2743 (eval_op_f_array_shape): New function.
2744 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2746 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2748 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2750 (expr::fortran_array_size_1arg): New type.
2751 (expr::fortran_array_size_2arg): Likewise.
2752 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2753 UNOP_OR_BINOP_INTRINSIC.
2754 (f77_keywords): Add "size" keyword.
2755 * f-lang.c (fortran_array_size): New function.
2756 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2757 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2759 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2761 * f-exp.h (eval_op_f_rank): Declare.
2762 (expr::fortran_rank_operation): New typedef.
2763 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2765 (f77_keywords): Add "rank" keyword.
2766 * f-lang.c (eval_op_f_rank): New function.
2767 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2769 2021-03-08 Tom Tromey <tom@tromey.com>
2771 * printcmd.c (set_command): Remove null check.
2772 * value.c (init_if_undefined_command): Remove null check.
2774 2021-03-08 Tom Tromey <tom@tromey.com>
2776 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2778 * p-exp.y (variable): Update.
2779 * go-exp.y (variable): Update.
2780 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2781 Remove overload for objfile.
2782 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2784 (check_objfile): Likewise.
2785 (dump_for_expression): Likewise. Remove overload for objfile.
2786 (class var_msym_value_operation): Use bound_minimal_symbol.
2787 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2789 (var_msym_value_operation::evaluate_for_address)
2790 (var_msym_value_operation::evaluate_for_sizeof)
2791 (var_msym_value_operation::evaluate_for_cast): Update.
2792 * d-exp.y (PrimaryExpression): Update.
2793 * c-exp.y (variable): Update.
2794 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2795 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2797 * ada-exp.y (write_var_or_type): Update.
2799 2021-03-08 Tom Tromey <tom@tromey.com>
2801 * parser-defs.h (exp_uses_objfile): Return bool.
2802 * parse.c (exp_uses_objfile): Return bool.
2804 2021-03-08 Tom Tromey <tom@tromey.com>
2806 * value.h (eval_skip_value): Don't declare.
2807 * opencl-lang.c (eval_opencl_assign): Update.
2808 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2809 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2810 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2811 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2812 * expop.h (typeof_operation::evaluate)
2813 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2814 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2815 (cxx_cast_operation::evaluate): Update.
2816 * eval.c (eval_skip_value): Remove.
2817 (eval_op_scope, eval_op_var_entry_value)
2818 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2819 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2820 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2821 (eval_op_binary, eval_op_subscript, eval_op_equal)
2822 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2823 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2824 (eval_op_complement, eval_op_lognot, eval_op_ind)
2825 (eval_op_memval, eval_op_preinc, eval_op_predec)
2826 (eval_op_postinc, eval_op_postdec, eval_op_type)
2827 (eval_binop_assign_modify, eval_op_objc_msgcall)
2828 (eval_multi_subscript, logical_and_operation::evaluate)
2829 (logical_or_operation::evaluate, array_operation::evaluate)
2830 (operation::evaluate_for_cast)
2831 (var_msym_value_operation::evaluate_for_cast)
2832 (var_value_operation::evaluate_for_cast): Update.
2833 * c-lang.c (c_string_operation::evaluate): Update.
2834 * c-exp.h (objc_nsstring_operation::evaluate)
2835 (objc_selector_operation::evaluate): Update.
2836 * ada-lang.c (ada_assign_operation::evaluate)
2837 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2838 (ada_atr_size): Update.
2840 2021-03-08 Tom Tromey <tom@tromey.com>
2842 * eval.c: Merge "namespace" scopes.
2844 2021-03-08 Tom Tromey <tom@tromey.com>
2846 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2848 * parse.c (expr_builder::expr_builder, expr_builder::release):
2851 2021-03-08 Tom Tromey <tom@tromey.com>
2853 * parse.c (expression::expression, expression::~expression):
2855 * expression.h (struct expression): Inline constructor. Remove
2858 2021-03-08 Tom Tromey <tom@tromey.com>
2860 * std-operator.def (BINOP_END): Remove.
2861 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2862 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2863 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2864 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2865 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2868 2021-03-08 Tom Tromey <tom@tromey.com>
2870 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2872 2021-03-08 Tom Tromey <tom@tromey.com>
2874 * std-operator.def (OP_EXTENDED0): Remove.
2876 2021-03-08 Tom Tromey <tom@tromey.com>
2878 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2879 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2882 2021-03-08 Tom Tromey <tom@tromey.com>
2884 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2885 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2887 2021-03-08 Tom Tromey <tom@tromey.com>
2889 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2890 * ada-lang.c (ada_binop_minmax): Update.
2891 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2892 Use BINOP_MIN and BINOP_MAX.
2894 2021-03-08 Tom Tromey <tom@tromey.com>
2896 * value.h (evaluate_subexp_with_coercion): Don't declare.
2897 * parse.c (exp_descriptor_standard): Remove.
2898 (expr_builder::expr_builder, expr_builder::release): Update.
2899 (expression::expression): Remove size_t parameter.
2900 (expression::~expression): Simplify.
2901 (expression::resize): Remove.
2902 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2903 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2904 (write_exp_elt_longcst, write_exp_elt_floatcst)
2905 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2906 (write_exp_string_vector, write_exp_bitstring): Remove.
2907 * p-lang.h (class pascal_language) <opcode_print_table,
2908 op_print_tab>: Remove.
2909 * p-lang.c (pascal_language::op_print_tab): Remove.
2910 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2912 * objc-lang.c (objc_op_print_tab): Remove.
2913 (class objc_language) <opcode_print_table>: Remove.
2914 * m2-lang.h (class m2_language) <opcode_print_table,
2915 op_print_tab>: Remove.
2916 * m2-lang.c (m2_language::op_print_tab): Remove.
2917 * language.h (struct language_defn) <post_parser, expression_ops,
2918 opcode_print_table>: Remove.
2919 * language.c (language_defn::expression_ops)
2920 (auto_or_unknown_language::opcode_print_table): Remove.
2921 * go-lang.h (class go_language) <opcode_print_table,
2922 op_print_tab>: Remove.
2923 * go-lang.c (go_language::op_print_tab): Remove.
2924 * f-lang.h (class f_language) <opcode_print_table>: Remove
2925 <op_print_tab>: Remove.
2926 * f-lang.c (f_language::op_print_tab): Remove.
2927 * expression.h (union exp_element): Remove.
2928 (struct expression): Remove size_t parameter from constructor.
2930 <first_opcode>: Update.
2931 <nelts, elts>: Remove.
2932 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2933 (evaluate_subexp_standard, print_expression, op_string)
2934 (dump_raw_expression): Don't declare.
2935 * expprint.c (print_expression, print_subexp)
2936 (print_subexp_funcall, print_subexp_standard, op_string)
2937 (dump_raw_expression, dump_subexp, dump_subexp_body)
2938 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2939 (dump_prefix_expression): Update.
2940 * eval.c (evaluate_subexp): Remove.
2941 (evaluate_expression, evaluate_type): Update.
2942 (evaluate_subexpression_type): Remove.
2943 (fetch_subexp_value): Remove "pc" parameter. Update.
2944 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2945 (evaluate_subexp_standard, evaluate_subexp_for_address)
2946 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2947 (evaluate_subexp_for_cast): Remove.
2948 (parse_and_eval_type): Update.
2949 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2950 * d-lang.c (d_op_print_tab): Remove.
2951 (class d_language) <opcode_print_table>: Remove.
2952 * c-lang.h (c_op_print_tab): Don't declare.
2953 * c-lang.c (c_op_print_tab): Remove.
2954 (class c_language, class cplus_language, class asm_language, class
2955 minimal_language) <opcode_print_table>: Remove.
2956 * breakpoint.c (update_watchpoint, watchpoint_check)
2957 (watchpoint_exp_is_const, watch_command_1): Update.
2958 * ax-gdb.h (union exp_element): Don't declare.
2959 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2960 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2961 (gen_expr_binop_rest): Remove.
2962 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2963 * ada-lang.c (ada_op_print_tab): Remove.
2964 (class ada_language) <post_parser, opcode_print_table>: Remove.
2966 2021-03-08 Tom Tromey <tom@tromey.com>
2968 * go-lang.c (go_language::expression_ops): Don't declare.
2969 * go-lang.h (class go_language) <expression_ops>: Remove.
2970 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2972 (class opencl_language) <expression_ops>: Remove.
2973 * d-lang.c (class d_language) <expression_ops>: Remove.
2974 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2975 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2976 (class c_language, class cplus_language, class asm_language)
2977 (class minimal_language) <expression_ops>: Remove.
2979 2021-03-08 Tom Tromey <tom@tromey.com>
2981 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2982 (evaluate_subexp_type, assign_aggregate)
2983 (aggregate_assign_positional, aggregate_assign_from_choices)
2984 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2985 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2986 (ada_operator_check, ada_forward_operator_length)
2987 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2989 (post_parser): Update.
2990 (class ada_language) <expresssion_ops>: Remove.
2992 2021-03-08 Tom Tromey <tom@tromey.com>
2994 * m2-lang.h (class m2_language) <expresssion_ops,
2995 exp_descriptor_modula2>: Remove.
2996 * m2-lang.c (evaluate_subexp_modula2)
2997 (m2_language::exp_descriptor_modula2): Remove.
2999 2021-03-08 Tom Tromey <tom@tromey.com>
3001 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3002 <exp_descriptor_tab>: Remove.
3003 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3004 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3005 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3006 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3009 2021-03-08 Tom Tromey <tom@tromey.com>
3011 * rust-lang.h (class rust_language) <expression_ops,
3012 exp_descriptor_tab>: Remove.
3013 * rust-lang.c (rust_evaluate_funcall): Remove.
3014 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3016 (rust_evaluate_subexp): Remove.
3017 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3018 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3019 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3021 2021-03-08 Tom Tromey <tom@tromey.com>
3023 * ada-exp.y: Create operations.
3024 (empty_stoken): Remove.
3025 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3026 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3027 (components): New global.
3028 (push_component, choice_component, pop_component, pop_components):
3030 (associations): New global
3031 (push_association, pop_association, pop_associations): New
3033 (ada_parse): Update.
3034 (write_var_from_sym, write_int): Create operations.
3035 (write_exp_op_with_string): Remove.
3036 (write_object_renaming, write_selectors, write_ambiguous_var)
3037 (write_var_or_type, write_name_assoc): Create operations.
3038 * ada-lang.h (ada_index_type): Declare.
3039 * ada-lang.c (ada_index_type): No longer static.
3041 2021-03-08 Tom Tromey <tom@tromey.com>
3043 * f-exp.y: Create operations.
3044 (f_language::parser): Update.
3046 2021-03-08 Tom Tromey <tom@tromey.com>
3048 * m2-exp.y: Create operations.
3049 (m2_language::parser): Update.
3051 2021-03-08 Tom Tromey <tom@tromey.com>
3053 * p-exp.y: Create operations.
3054 (pascal_language::parser): Update.
3056 2021-03-08 Tom Tromey <tom@tromey.com>
3058 * d-exp.y: Create operations.
3061 2021-03-08 Tom Tromey <tom@tromey.com>
3063 * go-exp.y: Create operations.
3064 (go_language::parser): Update.
3066 2021-03-08 Tom Tromey <tom@tromey.com>
3068 * objc-lang.c (end_msglist): Create operations.
3069 * c-exp.y: Change parser to create operations.
3070 (write_destructor_name): Remove.
3073 2021-03-08 Tom Tromey <tom@tromey.com>
3075 * rust-exp.y: Create operations.
3076 (rust_parser::convert_params_to_expression): Change return type.
3077 (binop_maker_ftype): New typedef.
3078 (maker_map): New global.
3079 (rust_parser::convert_ast_to_expression): Change return type.
3080 (rust_language::parser): Update.
3081 (_initialize_rust_exp): Initialize maker_map.
3083 2021-03-08 Tom Tromey <tom@tromey.com>
3085 * stap-probe.c (binop_maker_ftype): New typedef.
3086 (stap_maker_map): New global.
3087 (stap_make_binop): New function.
3088 (stap_parse_register_operand): Return operation_up.
3089 (stap_parse_single_operand, stap_parse_argument_conditionally)
3090 (stap_parse_argument_1): Likewise.
3091 (stap_parse_argument): Create operations.
3092 (stap_probe::parse_arguments): Update.
3093 (_initialize_stap_probe): Initialize stap_maker_map.
3094 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3096 * i386-tdep.h (i386_stap_parse_special_token): Change return
3098 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3099 (i386_stap_parse_special_token_three_arg_disp)
3100 (i386_stap_parse_special_token): Change return type.
3101 * gdbarch.sh (stap_parse_special_token): Change return type.
3102 * gdbarch.c: Rebuild.
3103 * gdbarch.h: Rebuild.
3104 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3106 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3109 2021-03-08 Tom Tromey <tom@tromey.com>
3111 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3112 * gdbarch.h: Rebuild.
3113 * gdbarch.c: Rebuild.
3114 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3115 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3117 (amd64_dtrace_parse_probe_argument): Update.
3119 2021-03-08 Tom Tromey <tom@tromey.com>
3121 * parser-defs.h (struct parser_state) <push, push_new,
3122 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3123 wrap2>: New methods.
3124 <m_operations>: New member.
3125 * parse.c (parser_state::push_c_string)
3126 (parser_state::push_symbol, parser_state::push_dollar): New
3129 2021-03-08 Tom Tromey <tom@tromey.com>
3131 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3133 (struct parser_state) <mark_struct_expression>: New method.
3134 * parse.c (parser_state::mark_struct_expression): Update assert.
3135 (parser_state::mark_struct_expression): New method.
3136 (parser_state::mark_completion_tag): Update assert.
3137 (parse_expression_for_completion): Handle expout_last_op.
3139 2021-03-08 Tom Tromey <tom@tromey.com>
3141 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3143 * value.h (fetch_subexp_value): Add "op" parameter.
3144 * value.c (init_if_undefined_command): Update.
3145 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3146 * stap-probe.c (stap_probe::compile_to_ax): Update.
3147 * printcmd.c (set_command): Update.
3148 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3150 * parser-defs.h (struct expr_builder) <set_operation>: New
3152 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3153 * expression.h (struct expression) <first_opcode>: Update.
3155 * expprint.c (dump_raw_expression, dump_prefix_expression):
3157 * expop.h (class var_value_operation) <get_symbol>: New method.
3158 (class register_operation) <get_name>: New method.
3159 (class equal_operation): No longer a typedef, now a subclass.
3160 (class unop_memval_operation) <get_type>: New method.
3161 (class assign_operation) <get_lhs>: New method.
3162 (class unop_cast_operation) <get_type>: New method.
3163 * eval.c (evaluate_expression, evaluate_type)
3164 (evaluate_subexpression_type): Update.
3165 (fetch_subexp_value): Add "op" parameter.
3166 (parse_and_eval_type): Update.
3167 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3168 * breakpoint.c (update_watchpoint, watchpoint_check)
3169 (watchpoint_exp_is_const, watch_command_1): Update.
3170 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3173 2021-03-08 Tom Tromey <tom@tromey.com>
3175 * ada-lang.c (ada_value_binop): Do not use op_string.
3177 2021-03-08 Tom Tromey <tom@tromey.com>
3179 * expprint.c (dump_for_expression): New overload.
3180 * expop.h (check_objfile, dump_for_expression): Declare new
3182 * ada-lang.c (check_objfile): New overload.
3183 (assign_component, ada_aggregate_component::uses_objfile)
3184 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3185 (ada_aggregate_component::assign_aggregate)
3186 (ada_positional_component::uses_objfile)
3187 (ada_positional_component::dump, ada_positional_component::assign)
3188 (ada_discrete_range_association::uses_objfile)
3189 (ada_discrete_range_association::dump)
3190 (ada_discrete_range_association::assign)
3191 (ada_name_association::uses_objfile, ada_name_association::dump)
3192 (ada_name_association::assign)
3193 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3194 (ada_choices_component::assign)
3195 (ada_others_component::uses_objfile, ada_others_component::dump)
3196 (ada_others_component::assign, ada_assign_operation::evaluate):
3198 * ada-exp.h (ada_string_operation) <get_name>: New method.
3199 (class ada_assign_operation): New.
3200 (class ada_component): New.
3201 (ada_component_up): New typedef.
3202 (class ada_aggregate_operation, class ada_aggregate_component)
3203 (class ada_positional_component, class ada_others_component)
3204 (class ada_association): New.
3205 (ada_association_up): New typedef.
3206 (class ada_choices_component)
3207 (class ada_discrete_range_association)
3208 (class ada_name_association): New.
3210 2021-03-08 Tom Tromey <tom@tromey.com>
3212 * ada-lang.c (ada_var_value_operation::resolve)
3213 (ada_funcall_operation::resolve)
3214 (ada_ternop_slice_operation::resolve): New methods.
3215 * ada-exp.h (struct ada_resolvable): New.
3216 (class ada_var_value_operation): Derive from ada_resolvable.
3217 <get_block, resolve>: New methods.
3218 (class ada_funcall_operation): Derive from ada_resolvable.
3219 <resolve>: New method.
3220 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3221 <resolve>: New method.
3223 2021-03-08 Tom Tromey <tom@tromey.com>
3225 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3226 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3228 (class ada_funcall_operation): New.
3230 2021-03-08 Tom Tromey <tom@tromey.com>
3232 * ada-lang.c (ada_structop_operation::evaluate): New method.
3233 * ada-exp.h (class ada_structop_operation): New.
3235 2021-03-08 Tom Tromey <tom@tromey.com>
3237 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3238 * ada-exp.h (class ada_unop_ind_operation): New.
3240 2021-03-08 Tom Tromey <tom@tromey.com>
3242 * ada-lang.c (ada_binop_exp): No longer static.
3243 * ada-exp.h (ada_binop_exp_operation): New typedef.
3245 2021-03-08 Tom Tromey <tom@tromey.com>
3247 * ada-lang.c (ada_val_atr): No longer static.
3248 (ada_atr_val_operation::evaluate): New method.
3249 * ada-exp.h (class ada_atr_val_operation): New.
3251 2021-03-08 Tom Tromey <tom@tromey.com>
3253 * ada-lang.c (ada_pos_atr): No longer static.
3254 * ada-exp.h (ada_pos_operation): New typedef.
3256 2021-03-08 Tom Tromey <tom@tromey.com>
3258 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3260 (ada_evaluate_subexp): Use it.
3262 2021-03-08 Tom Tromey <tom@tromey.com>
3264 * ada-lang.c (ada_binop_minmax): No longer static.
3265 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3268 2021-03-08 Tom Tromey <tom@tromey.com>
3270 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3272 * ada-exp.h (class ada_var_msym_value_operation): New.
3274 2021-03-08 Tom Tromey <tom@tromey.com>
3276 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3277 (ada_var_value_operation::evaluate): New methods.
3278 * ada-exp.h (class ada_var_value_operation): New.
3280 2021-03-08 Tom Tromey <tom@tromey.com>
3282 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3283 * ada-exp.h (class ada_unop_atr_operation): New.
3285 2021-03-08 Tom Tromey <tom@tromey.com>
3287 * ada-lang.c (ada_binop_in_bounds): No longer static.
3288 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3290 2021-03-08 Tom Tromey <tom@tromey.com>
3292 * ada-lang.c (ada_ternop_slice): No longer static.
3293 * ada-exp.h (class ada_ternop_slice_operation): New.
3295 2021-03-08 Tom Tromey <tom@tromey.com>
3297 * ada-exp.h (ada_bitwise_operation): New template class.
3298 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3299 (ada_bitwise_xor_operation): New typedefs.
3301 2021-03-08 Tom Tromey <tom@tromey.com>
3303 * ada-lang.c (ada_equal_binop): No longer static.
3304 * ada-exp.h (class ada_binop_equal_operation): New.
3306 2021-03-08 Tom Tromey <tom@tromey.com>
3308 * ada-lang.c (ada_mult_binop): No longer static.
3309 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3310 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3312 2021-03-08 Tom Tromey <tom@tromey.com>
3314 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3315 * ada-exp.h (class ada_binop_addsub_operation): New.
3317 2021-03-08 Tom Tromey <tom@tromey.com>
3319 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3320 (ada_resolve_variable): Declare.
3321 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3322 (ada_resolve_variable): New functions.
3323 (resolve_subexp): Update.
3325 2021-03-08 Tom Tromey <tom@tromey.com>
3327 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3329 * c-exp.h (class opencl_ternop_cond_operation): New.
3331 2021-03-08 Tom Tromey <tom@tromey.com>
3333 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3335 * c-exp.h (class opencl_logical_binop_operation): New.
3337 2021-03-08 Tom Tromey <tom@tromey.com>
3339 * opencl-lang.c (opencl_structop_operation::evaluate): New
3341 * c-exp.h (class opencl_structop_operation): New.
3343 2021-03-08 Tom Tromey <tom@tromey.com>
3345 * opencl-lang.c (opencl_logical_not): No longer static. Change
3347 (evaluate_subexp_opencl): Update.
3348 * c-exp.h (opencl_notequal_operation): New typedef.
3350 2021-03-08 Tom Tromey <tom@tromey.com>
3352 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3353 static. Change parameters.
3354 (eval_opencl_assign): No longer static. Add "op" parameter.
3355 (evaluate_subexp_opencl): Update.
3356 * c-exp.h (opencl_binop_operation): New template class.
3357 (opencl_assign_operation, opencl_equal_operation)
3358 (opencl_notequal_operation, opencl_less_operation)
3359 (opencl_gtr_operation, opencl_geq_operation)
3360 (opencl_leq_operation): New typedefs.
3362 2021-03-08 Tom Tromey <tom@tromey.com>
3364 * opencl-lang.c (opencl_value_cast): No longer static.
3365 * c-exp.h (opencl_cast_type_operation): New typedef.
3367 2021-03-08 Tom Tromey <tom@tromey.com>
3369 * f-exp.h (eval_op_f_allocated): Declare.
3370 (fortran_allocated_operation): New typedef.
3371 * f-lang.c (eval_op_f_allocated): No longer static.
3373 2021-03-08 Tom Tromey <tom@tromey.com>
3375 * f-lang.c (eval_op_f_associated): New functions.
3376 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3379 2021-03-08 Tom Tromey <tom@tromey.com>
3381 * f-lang.c (fortran_bound_1arg::evaluate)
3382 (fortran_bound_2arg::evaluate): New methods.
3383 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3386 2021-03-08 Tom Tromey <tom@tromey.com>
3388 * expop.h (class unop_addr_operation) <get_expression>: New
3390 * f-lang.c (fortran_undetermined::value_subarray)
3391 (fortran_undetermined::evaluate): New methods.
3392 (fortran_prepare_argument): New overload.
3393 * f-exp.h (class fortran_range_operation)
3394 (class fortran_undetermined): New classes.
3396 2021-03-08 Tom Tromey <tom@tromey.com>
3398 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3399 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3402 2021-03-08 Tom Tromey <tom@tromey.com>
3404 * expression.h (class operation) <evaluate_funcall>: New methods.
3405 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3406 (class var_value_operation) <evaluate_funcall>: New method.
3407 (class structop_base_operation) <evaluate_funcall>: New method.
3408 (class var_msym_value_operation) <evaluate_funcall>: New method.
3409 (class structop_member_base): New class.
3410 (class structop_member_operation): Derive from
3411 structop_member_base.
3412 (class structop_mptr_operation): Derive from
3413 structop_member_base.
3414 (class funcall_operation): New class.
3415 * eval.c (operation::evaluate_funcall)
3416 (var_value_operation::evaluate_funcall)
3417 (scope_operation::evaluate_funcall)
3418 (structop_member_base::evaluate_funcall)
3419 (structop_base_operation::evaluate_funcall): New methods.
3421 2021-03-08 Tom Tromey <tom@tromey.com>
3423 * expop.h (class array_operation): New.
3424 * eval.c (array_operation::evaluate_struct_tuple)
3425 (array_operation::evaluate): New methods.
3427 2021-03-08 Tom Tromey <tom@tromey.com>
3429 * expop.h (class adl_func_operation): New.
3430 * eval.c (adl_func_operation::evaluate): New method.
3432 2021-03-08 Tom Tromey <tom@tromey.com>
3434 * ada-lang.c (ada_unop_in_range): No longer static.
3435 * ada-exp.h (class ada_unop_range_operation): New.
3437 2021-03-08 Tom Tromey <tom@tromey.com>
3439 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3441 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3442 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3444 2021-03-08 Tom Tromey <tom@tromey.com>
3446 * expop.h (class logical_and_operation)
3447 (class logical_or_operation): New.
3448 * eval.c (logical_and_operation::evaluate)
3449 (logical_or_operation::evaluate): New methods.
3450 * ax-gdb.c (logical_and_operation::do_generate_ax)
3451 (logical_or_operation::do_generate_ax): New methods.
3453 2021-03-08 Tom Tromey <tom@tromey.com>
3455 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3457 * m2-exp.h: New file.
3459 2021-03-08 Tom Tromey <tom@tromey.com>
3461 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3462 * rust-exp.h (class rust_aggregate_operation): New.
3464 2021-03-08 Tom Tromey <tom@tromey.com>
3466 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3468 * rust-exp.h (class rust_struct_anon): New.
3469 (class rust_structop): New.
3471 2021-03-08 Tom Tromey <tom@tromey.com>
3473 * rust-lang.c (rust_range): No longer static.
3474 * rust-exp.h (class rust_range_operation): New.
3476 2021-03-08 Tom Tromey <tom@tromey.com>
3478 * rust-lang.c (rust_subscript): No longer static.
3479 * rust-exp.h (class rust_subscript_operation): New.
3481 2021-03-08 Tom Tromey <tom@tromey.com>
3483 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3485 (rust_evaluate_subexp): Update.
3486 * rust-exp.h (class rust_unop_ind_operation): New.
3488 2021-03-08 Tom Tromey <tom@tromey.com>
3490 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3491 longer static. Add "opcode" parameter.
3492 (rust_evaluate_subexp): Update.
3493 * rust-exp.h: New file.
3495 2021-03-08 Tom Tromey <tom@tromey.com>
3497 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3498 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3499 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3500 (evaluate_subexp_f): Update.
3501 * f-exp.h: New file.
3503 2021-03-08 Tom Tromey <tom@tromey.com>
3505 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3506 * ada-exp.h (class ada_ternop_range_operation): New.
3508 2021-03-08 Tom Tromey <tom@tromey.com>
3510 * ada-lang.c (ada_qual_operation::evaluate): New method.
3511 * ada-exp.h (class ada_qual_operation): New.
3513 2021-03-08 Tom Tromey <tom@tromey.com>
3515 * ada-lang.c (ada_string_operation::evaluate): New method.
3516 * ada-exp.h (class ada_string_operation): New.
3518 2021-03-08 Tom Tromey <tom@tromey.com>
3520 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3521 * ada-exp.h: New file.
3523 2021-03-08 Tom Tromey <tom@tromey.com>
3525 * expop.h (class multi_subscript_operation): New.
3526 * eval.c (multi_subscript_operation::evaluate): New method.
3528 2021-03-08 Tom Tromey <tom@tromey.com>
3530 * eval.c (objc_msgcall_operation::evaluate): New method.
3531 * c-exp.h (class objc_msgcall_operation): New.
3533 2021-03-08 Tom Tromey <tom@tromey.com>
3535 * expop.h (class var_value_operation): New.
3536 * eval.c (var_value_operation::evaluate)
3537 (var_value_operation::evaluate_for_address)
3538 (var_value_operation::evaluate_with_coercion)
3539 (var_value_operation::evaluate_for_sizeof)
3540 (var_value_operation::evaluate_for_cast): New methods.
3541 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3543 2021-03-08 Tom Tromey <tom@tromey.com>
3545 * expop.h (cxx_cast_ftype): New typedef.
3546 (cxx_cast_operation): New template.
3547 (dynamic_cast_operation, reinterpret_cast_operation): New
3550 2021-03-08 Tom Tromey <tom@tromey.com>
3552 * expop.h (class unop_cast_type_operation): New.
3553 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3556 2021-03-08 Tom Tromey <tom@tromey.com>
3558 * expop.h (class unop_cast_operation): New.
3559 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3561 2021-03-08 Tom Tromey <tom@tromey.com>
3563 * expop.h (class assign_modify_operation): New.
3564 * eval.c (eval_binop_assign_modify): No longer static.
3565 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3567 2021-03-08 Tom Tromey <tom@tromey.com>
3569 * expop.h (class assign_operation): New.
3570 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3572 2021-03-08 Tom Tromey <tom@tromey.com>
3574 * expop.h (class type_instance_operation): New.
3575 * eval.c (type_instance_operation::evaluate): New method.
3577 2021-03-08 Tom Tromey <tom@tromey.com>
3579 * expop.h (class op_this_operation): New.
3580 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3582 2021-03-08 Tom Tromey <tom@tromey.com>
3584 * expop.h (class unop_memval_operation)
3585 (class unop_memval_type_operation): New.
3586 * eval.c (eval_op_memval): No longer static.
3587 (unop_memval_operation::evaluate_for_address)
3588 (unop_memval_type_operation::evaluate_for_address)
3589 (unop_memval_operation::evaluate_for_sizeof)
3590 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3591 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3592 (unop_memval_type_operation::do_generate_ax): New methods.
3594 2021-03-08 Tom Tromey <tom@tromey.com>
3596 * expop.h (class unop_alignof_operation): New.
3597 * eval.c (eval_op_alignof): No longer static.
3599 2021-03-08 Tom Tromey <tom@tromey.com>
3601 * expop.h (class unop_sizeof_operation): New.
3602 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3604 2021-03-08 Tom Tromey <tom@tromey.com>
3606 * expop.h (class unop_addr_operation): New.
3607 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3609 2021-03-08 Tom Tromey <tom@tromey.com>
3611 * expop.h (class typeid_operation): New.
3613 2021-03-08 Tom Tromey <tom@tromey.com>
3615 * expop.h (class decltype_operation): New.
3617 2021-03-08 Tom Tromey <tom@tromey.com>
3619 * expop.h (class typeof_operation): New.
3621 2021-03-08 Tom Tromey <tom@tromey.com>
3623 * expop.h (class type_operation): New.
3624 * eval.c (eval_op_type): No longer static.
3626 2021-03-08 Tom Tromey <tom@tromey.com>
3628 * expop.h (class unop_ind_base_operation)
3629 (class unop_ind_operation): New.
3630 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3631 (unop_ind_base_operation::evaluate_for_address)
3632 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3633 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3635 2021-03-08 Tom Tromey <tom@tromey.com>
3637 * expop.h (unop_incr_operation): New template.
3638 (preinc_operation, predec_operation, postinc_operation)
3639 (postdec_operation): New typedefs.
3640 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3641 (eval_op_postdec): No longer static.
3643 2021-03-08 Tom Tromey <tom@tromey.com>
3645 * expop.h (unary_ftype): New typedef.
3646 (unop_operation, usual_ax_binop_operation): New templates.
3647 (unary_plus_operation, unary_neg_operation)
3648 (unary_complement_operation, unary_logical_not_operation): New
3650 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3651 (eval_op_lognot): No longer static.
3652 * ax-gdb.c (gen_expr_unop): New function.
3654 2021-03-08 Tom Tromey <tom@tromey.com>
3656 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3658 2021-03-08 Tom Tromey <tom@tromey.com>
3660 * expop.h (class repeat_operation): New.
3661 * eval.c (eval_op_repeat): No longer static. Remove "op"
3663 (evaluate_subexp_standard): Update.
3664 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3666 2021-03-08 Tom Tromey <tom@tromey.com>
3668 * expop.h (class comparison_operation): New.
3669 (equal_operation, notequal_operation, less_operation)
3670 (gtr_operation, geq_operation, leq_operation): New typedefs.
3671 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3672 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3674 2021-03-08 Tom Tromey <tom@tromey.com>
3676 * expop.h (class subscript_operation): New.
3677 * eval.c (eval_op_subscript): No longer static.
3679 2021-03-08 Tom Tromey <tom@tromey.com>
3681 * expop.h (class binop_operation, class usual_ax_binop_operation):
3683 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3684 (div_operation, rem_operation, lsh_operation, rsh_operation)
3685 (bitwise_and_operation, bitwise_ior_operation)
3686 (bitwise_xor_operation): New typedefs.
3687 * eval.c (eval_op_binary): No longer static.
3689 2021-03-08 Tom Tromey <tom@tromey.com>
3691 * expop.h (class sub_operation): New.
3692 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3693 (evaluate_subexp_standard): Update.
3695 2021-03-08 Tom Tromey <tom@tromey.com>
3697 * expop.h (class add_operation): New.
3698 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3699 (evaluate_subexp_standard): Update.
3701 2021-03-08 Tom Tromey <tom@tromey.com>
3703 * expop.h (class concat_operation): New.
3704 * eval.c (eval_op_concat): No longer static. Remove "op"
3706 (evaluate_subexp_standard): Update.
3708 2021-03-08 Tom Tromey <tom@tromey.com>
3710 * expop.h (class structop_member_operation)
3711 (class structop_mptr_operation): New.
3712 * eval.c (eval_op_member): No longer static.
3714 2021-03-08 Tom Tromey <tom@tromey.com>
3716 * expop.h (class structop_ptr_operation): New.
3717 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3720 2021-03-08 Tom Tromey <tom@tromey.com>
3722 * expop.h (class structop_base_operation)
3723 (class structop_operation): New.
3724 * eval.c (eval_op_structop_struct): No longer static.
3726 2021-03-08 Tom Tromey <tom@tromey.com>
3728 * expop.h (class complex_operation): New.
3730 2021-03-08 Tom Tromey <tom@tromey.com>
3732 * eval.c (eval_op_objc_selector): No longer static.
3733 * c-exp.h (class objc_selector_operation): New.
3735 2021-03-08 Tom Tromey <tom@tromey.com>
3737 * eval.c: Include c-exp.h.
3738 * c-exp.h (class objc_nsstring_operation): New.
3740 2021-03-08 Tom Tromey <tom@tromey.com>
3742 * c-lang.c (c_string_operation::evaluate): New method.
3743 * c-exp.h: New file.
3745 2021-03-08 Tom Tromey <tom@tromey.com>
3747 * expop.h (class ternop_cond_operation): New.
3748 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3750 2021-03-08 Tom Tromey <tom@tromey.com>
3752 * expop.h (class ternop_slice_operation): New.
3753 * eval.c (eval_op_ternop): No longer static.
3755 2021-03-08 Tom Tromey <tom@tromey.com>
3757 * expop.h (class string_operation): New.
3758 * eval.c (eval_op_string): No longer static.
3760 2021-03-08 Tom Tromey <tom@tromey.com>
3762 * expop.h (class internalvar_operation): New.
3763 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3765 2021-03-08 Tom Tromey <tom@tromey.com>
3767 * expop.h (class bool_operation): New.
3769 2021-03-08 Tom Tromey <tom@tromey.com>
3771 * expop.h (class register_operation): New.
3772 * eval.c (eval_op_register): No longer static.
3773 * ax-gdb.c (register_operation::do_generate_ax): New method.
3775 2021-03-08 Tom Tromey <tom@tromey.com>
3777 * expop.h (class last_operation): New.
3779 2021-03-08 Tom Tromey <tom@tromey.com>
3781 * expop.h (class func_static_var_operation): New.
3782 * eval.c (eval_op_func_static_var): No longer static.
3784 2021-03-08 Tom Tromey <tom@tromey.com>
3786 * expop.h (class var_entry_value_operation): New.
3787 * eval.c (eval_op_var_entry_value): No longer static.
3789 2021-03-08 Tom Tromey <tom@tromey.com>
3791 * expression.h (class operation) <set_outermost>: New method.
3792 * expop.h (class var_msym_value_operation): New.
3793 * eval.c (eval_op_var_msym_value): No longer static.
3794 (var_msym_value_operation::evaluate_for_address)
3795 (var_msym_value_operation::evaluate_for_sizeof)
3796 (var_msym_value_operation::evaluate_for_cast): New methods.
3797 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3800 2021-03-08 Tom Tromey <tom@tromey.com>
3802 * expop.h (class long_const_operation): New.
3803 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3805 2021-03-08 Tom Tromey <tom@tromey.com>
3807 * expop.h (class scope_operation): New.
3808 * eval.c (eval_op_scope): No longer static.
3809 (scope_operation::evaluate_for_address): New method.
3810 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3812 2021-03-08 Tom Tromey <tom@tromey.com>
3814 * expprint.c (float_const_operation::dump): New method.
3815 * expop.h (float_data): New typedef.
3816 (class float_const_operation): New.
3818 2021-03-08 Tom Tromey <tom@tromey.com>
3820 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3821 * ax-gdb.c (gen_expr_binop): New function.
3822 (gen_expr_structop): Likewise.
3824 2021-03-08 Tom Tromey <tom@tromey.com>
3826 * expprint.c (expr::dump_for_expression): New functions.
3827 * expop.h (dump_for_expression): New overloads.
3828 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3831 2021-03-08 Tom Tromey <tom@tromey.com>
3833 * expression.h (expr::operation): New class.
3834 (expr::make_operation): New function.
3835 (expr::operation_up): New typedef.
3836 * expop.h: New file.
3837 * eval.c (operation::evaluate_for_cast)
3838 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3840 * ax-gdb.c (operation::generate_ax): New method.
3842 2021-03-08 Tom Tromey <tom@tromey.com>
3844 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3845 (gen_expr_binop_rest): New overload.
3847 2021-03-08 Tom Tromey <tom@tromey.com>
3849 * eval.c (eval_multi_subscript): New function.
3850 (evaluate_subexp_standard): Use it.
3852 2021-03-08 Tom Tromey <tom@tromey.com>
3854 * ada-lang.c (ada_binop_exp): New function.
3855 (ada_evaluate_subexp): Use it.
3857 2021-03-08 Tom Tromey <tom@tromey.com>
3859 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3861 (ada_evaluate_subexp): Use it.
3863 2021-03-08 Tom Tromey <tom@tromey.com>
3865 * ada-lang.c (ada_binop_minmax): New function.
3866 (ada_evaluate_subexp): Use it.
3868 2021-03-08 Tom Tromey <tom@tromey.com>
3870 * ada-lang.c (ada_unop_atr): New function.
3871 (ada_evaluate_subexp): Use it.
3873 2021-03-08 Tom Tromey <tom@tromey.com>
3875 * ada-lang.c (ada_binop_in_bounds): New function.
3876 (ada_evaluate_subexp): Use it.
3878 2021-03-08 Tom Tromey <tom@tromey.com>
3880 * ada-lang.c (ada_ternop_slice): New function.
3881 (ada_evaluate_subexp): Use it.
3883 2021-03-08 Tom Tromey <tom@tromey.com>
3885 * ada-lang.c (ada_equal_binop): New function.
3886 (ada_evaluate_subexp): Use it.
3888 2021-03-08 Tom Tromey <tom@tromey.com>
3890 * ada-lang.c (ada_mult_binop): New function.
3891 (ada_evaluate_subexp): Use it.
3893 2021-03-08 Tom Tromey <tom@tromey.com>
3895 * ada-lang.c (ada_abs): New function.
3896 (ada_evaluate_subexp): Use it.
3898 2021-03-08 Tom Tromey <tom@tromey.com>
3900 * ada-lang.c (ada_atr_size): New function.
3901 (ada_evaluate_subexp): Use it.
3903 2021-03-08 Tom Tromey <tom@tromey.com>
3905 * ada-lang.c (ada_atr_tag): New function.
3906 (ada_evaluate_subexp): Use it.
3908 2021-03-08 Tom Tromey <tom@tromey.com>
3910 * ada-lang.c (ada_unop_in_range): New function.
3911 (ada_evaluate_subexp): Use it.
3913 2021-03-08 Tom Tromey <tom@tromey.com>
3915 * ada-lang.c (ada_unop_neg): New function.
3916 (ada_evaluate_subexp): Use it.
3918 2021-03-08 Tom Tromey <tom@tromey.com>
3920 * ada-lang.c (eval_ternop_in_range): New function.
3921 (ada_evaluate_subexp): Use it.
3923 2021-03-08 Tom Tromey <tom@tromey.com>
3925 * opencl-lang.c (eval_opencl_assign): New function.
3926 (evaluate_subexp_opencl): Use it.
3928 2021-03-08 Tom Tromey <tom@tromey.com>
3930 * eval.c (eval_op_objc_msgcall): New function.
3931 (evaluate_subexp_standard): Use it.
3933 2021-03-08 Tom Tromey <tom@tromey.com>
3935 * eval.c (eval_binop_assign_modify): New function.
3936 (evaluate_subexp_standard): Use it.
3938 2021-03-08 Tom Tromey <tom@tromey.com>
3940 * m2-lang.c (eval_op_m2_subscript): New function.
3941 (evaluate_subexp_modula2): Use it.
3943 2021-03-08 Tom Tromey <tom@tromey.com>
3945 * m2-lang.c (eval_op_m2_high): New function.
3946 (evaluate_subexp_modula2): Use it.
3948 2021-03-08 Tom Tromey <tom@tromey.com>
3950 * eval.c (evaluate_subexp_for_address_base): New function.
3951 (evaluate_subexp_for_address): Use it.
3952 (evaluate_subexp_for_sizeof_base): New function.
3953 (evaluate_subexp_for_sizeof): Use it.
3955 2021-03-08 Tom Tromey <tom@tromey.com>
3957 * rust-lang.c (eval_op_rust_structop): New function.
3958 (rust_evaluate_subexp): Use it.
3960 2021-03-08 Tom Tromey <tom@tromey.com>
3962 * rust-lang.c (eval_op_rust_struct_anon): New function.
3963 (rust_evaluate_subexp): Use it.
3965 2021-03-08 Tom Tromey <tom@tromey.com>
3967 * rust-lang.c (eval_op_rust_array): New function.
3968 (rust_evaluate_subexp): Use it.
3970 2021-03-08 Tom Tromey <tom@tromey.com>
3972 * rust-lang.c (eval_op_rust_complement): New function.
3973 (rust_evaluate_subexp): Use it.
3975 2021-03-08 Tom Tromey <tom@tromey.com>
3977 * rust-lang.c (eval_op_rust_ind): New function.
3978 (rust_evaluate_subexp): Use it.
3980 2021-03-08 Tom Tromey <tom@tromey.com>
3982 * rust-lang.c (rust_subscript): Change parameters.
3983 (rust_evaluate_subexp): Update.
3985 2021-03-08 Tom Tromey <tom@tromey.com>
3987 * rust-lang.c (rust_range): Change parameters.
3988 (rust_evaluate_subexp): Update.
3990 2021-03-08 Tom Tromey <tom@tromey.com>
3992 * f-lang.c (eval_op_f_allocated): New function.
3993 (evaluate_subexp_f): Use it.
3995 2021-03-08 Tom Tromey <tom@tromey.com>
3997 * f-lang.c (fortran_require_array): New function.
3998 (evaluate_subexp_f): Use it.
4000 2021-03-08 Tom Tromey <tom@tromey.com>
4002 * f-lang.c (eval_op_f_kind): New function.
4003 (evaluate_subexp_f): Use it.
4005 2021-03-08 Tom Tromey <tom@tromey.com>
4007 * f-lang.c (eval_op_f_cmplx): New function.
4008 (evaluate_subexp_f): Use it.
4010 2021-03-08 Tom Tromey <tom@tromey.com>
4012 * f-lang.c (eval_op_f_modulo): New function.
4013 (evaluate_subexp_f): Use it.
4015 2021-03-08 Tom Tromey <tom@tromey.com>
4017 * f-lang.c (eval_op_f_floor): New function.
4018 (evaluate_subexp_f): Use it.
4020 2021-03-08 Tom Tromey <tom@tromey.com>
4022 * f-lang.c (eval_op_f_ceil): New function.
4023 (evaluate_subexp_f): Use it.
4025 2021-03-08 Tom Tromey <tom@tromey.com>
4027 * f-lang.c (eval_op_f_mod): New function.
4028 (evaluate_subexp_f): Use it.
4030 2021-03-08 Tom Tromey <tom@tromey.com>
4032 * f-lang.c (eval_op_f_abs): New function.
4033 (evaluate_subexp_f): Use it.
4035 2021-03-08 Tom Tromey <tom@tromey.com>
4037 * eval.c (eval_op_type): New function.
4038 (evaluate_subexp_standard): Use it.
4040 2021-03-08 Tom Tromey <tom@tromey.com>
4042 * eval.c (eval_op_postdec): New function.
4043 (evaluate_subexp_standard): Use it.
4045 2021-03-08 Tom Tromey <tom@tromey.com>
4047 * eval.c (eval_op_postinc): New function.
4048 (evaluate_subexp_standard): Use it.
4050 2021-03-08 Tom Tromey <tom@tromey.com>
4052 * eval.c (eval_op_predec): New file.
4053 (evaluate_subexp_standard): Use it.
4055 2021-03-08 Tom Tromey <tom@tromey.com>
4057 * eval.c (eval_op_preinc): New function.
4058 (evaluate_subexp_standard): Use it.
4060 2021-03-08 Tom Tromey <tom@tromey.com>
4062 * eval.c (eval_op_memval): New function.
4063 (evaluate_subexp_standard): Use it.
4065 2021-03-08 Tom Tromey <tom@tromey.com>
4067 * eval.c (eval_op_alignof): New function.
4068 (evaluate_subexp_standard): Use it.
4070 2021-03-08 Tom Tromey <tom@tromey.com>
4072 * eval.c (eval_op_ind): New function.
4073 (evaluate_subexp_standard): Use it.
4075 2021-03-08 Tom Tromey <tom@tromey.com>
4077 * eval.c (eval_op_lognot): New function.
4078 (evaluate_subexp_standard): Use it.
4080 2021-03-08 Tom Tromey <tom@tromey.com>
4082 * eval.c (eval_op_complement): New function.
4083 (evaluate_subexp_standard): Use it.
4085 2021-03-08 Tom Tromey <tom@tromey.com>
4087 * eval.c (eval_op_neg): New function.
4088 (evaluate_subexp_standard): Use it.
4090 2021-03-08 Tom Tromey <tom@tromey.com>
4092 * eval.c (eval_op_plus): New function.
4093 (evaluate_subexp_standard): Use it.
4095 2021-03-08 Tom Tromey <tom@tromey.com>
4097 * eval.c (eval_op_repeat): New function.
4098 (evaluate_subexp_standard): Use it.
4100 2021-03-08 Tom Tromey <tom@tromey.com>
4102 * eval.c (eval_op_leq): New function.
4103 (evaluate_subexp_standard): Use it.
4105 2021-03-08 Tom Tromey <tom@tromey.com>
4107 * eval.c (eval_op_geq): New function.
4108 (evaluate_subexp_standard): Use it.
4110 2021-03-08 Tom Tromey <tom@tromey.com>
4112 * eval.c (eval_op_gtr): New function.
4113 (evaluate_subexp_standard): Use it.
4115 2021-03-08 Tom Tromey <tom@tromey.com>
4117 * eval.c (eval_op_less): New function.
4118 (evaluate_subexp_standard): Use it.
4120 2021-03-08 Tom Tromey <tom@tromey.com>
4122 * eval.c (eval_op_notequal): New function.
4123 (evaluate_subexp_standard): Use it.
4125 2021-03-08 Tom Tromey <tom@tromey.com>
4127 * eval.c (eval_op_equal): New function.
4128 (evaluate_subexp_standard): Use it.
4130 2021-03-08 Tom Tromey <tom@tromey.com>
4132 * eval.c (eval_op_subscript): New function.
4133 (evaluate_subexp_standard): Use it.
4135 2021-03-08 Tom Tromey <tom@tromey.com>
4137 * eval.c (eval_op_binary): New function.
4138 (evaluate_subexp_standard): Use it.
4140 2021-03-08 Tom Tromey <tom@tromey.com>
4142 * eval.c (eval_op_sub): New function.
4143 (evaluate_subexp_standard): Use it.
4145 2021-03-08 Tom Tromey <tom@tromey.com>
4147 * eval.c (eval_op_add): New function.
4148 (evaluate_subexp_standard): Use it.
4150 2021-03-08 Tom Tromey <tom@tromey.com>
4152 * eval.c (eval_op_member): New function.
4153 (evaluate_subexp_standard): Use it.
4155 2021-03-08 Tom Tromey <tom@tromey.com>
4157 * eval.c (eval_op_structop_ptr): New function.
4158 (evaluate_subexp_standard): Use it.
4160 2021-03-08 Tom Tromey <tom@tromey.com>
4162 * eval.c (eval_op_structop_struct): New function.
4163 (evaluate_subexp_standard): Use it.
4165 2021-03-08 Tom Tromey <tom@tromey.com>
4167 * eval.c (eval_op_ternop): New function.
4168 (evaluate_subexp_standard): Use it.
4170 2021-03-08 Tom Tromey <tom@tromey.com>
4172 * eval.c (eval_op_concat): New function.
4173 (evaluate_subexp_standard): Use it.
4175 2021-03-08 Tom Tromey <tom@tromey.com>
4177 * eval.c (eval_op_objc_selector): New function.
4178 (evaluate_subexp_standard): Use it.
4180 2021-03-08 Tom Tromey <tom@tromey.com>
4182 * eval.c (eval_op_string): New function.
4183 (evaluate_subexp_standard): Use it.
4185 2021-03-08 Tom Tromey <tom@tromey.com>
4187 * eval.c (eval_op_register): New function.
4188 (evaluate_subexp_standard): Use it.
4190 2021-03-08 Tom Tromey <tom@tromey.com>
4192 * eval.c (eval_op_func_static_var): New function.
4193 (evaluate_subexp_standard): Use it.
4195 2021-03-08 Tom Tromey <tom@tromey.com>
4197 * eval.c (eval_op_var_msym_value): New function.
4198 (evaluate_subexp_standard): Use it.
4200 2021-03-08 Tom Tromey <tom@tromey.com>
4202 * eval.c (eval_op_var_entry_value): New function.
4203 (evaluate_subexp_standard): Use it.
4205 2021-03-08 Tom Tromey <tom@tromey.com>
4207 * eval.c (eval_op_scope): New function.
4208 (evaluate_subexp_standard): Use it.
4210 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4213 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4215 2021-03-06 Tom Tromey <tom@tromey.com>
4217 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4218 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4219 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4220 (locate_dwz_sections, dwz_search_other_debugdirs)
4221 (dwarf2_get_dwz_file): Move to dwz.c.
4222 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4224 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4225 (dwarf2_get_dwz_file): Move from read.c.
4227 2021-03-06 Tom Tromey <tom@tromey.com>
4229 * debuginfod-support.h: Include scoped_fd.h.
4231 2021-03-06 Tom Tromey <tom@tromey.com>
4233 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4234 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4235 (get_abbrev_section_for_cu, read_attribute_value)
4236 (get_debug_line_section): Update.
4237 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4239 2021-03-06 Tom Tromey <tom@tromey.com>
4241 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4243 * dwarf2/read.c (section_is_p): Remove.
4244 (dwarf2_per_bfd::locate_sections)
4245 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4246 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4247 (dwarf2_locate_common_dwp_sections)
4248 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4251 2021-03-06 Tom Tromey <tom@tromey.com>
4253 * xcoffread.c: Include sect-names.h.
4254 * symfile.h (struct dwarf2_section_names, struct
4255 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4256 * dwarf2/sect-names.h: New file, from symfile.h.
4257 * dwarf2/read.c: Include sect-names.h.
4259 2021-03-06 Tom Tromey <tom@tromey.com>
4261 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4262 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4263 (abbrev_table::read): Update.
4264 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4265 (struct abbrev_info): Reformat.
4266 <attrs>: Now an array.
4267 (struct abbrev_table) <alloc_abbrev>: Remove.
4269 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4271 * ctfread.c (ctf_psymtab_add_enums): New function.
4272 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4274 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4276 * ctfread.c (read_func_kind_type): Set up function arguments.
4278 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4279 Andrew Burgess <andrew.burgess@embecosm.com>
4281 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4283 (riscv_csrset): New static global.
4284 (riscv_update_csrmap): New function.
4285 (riscv_iterate_over_regset_sections): Process CSRs.
4287 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4289 * riscv-tdep.c (riscv_feature_name_csr): Define.
4290 (riscv_feature_name_cpu): Define.
4291 (riscv_feature_name_fpu): Define.
4292 (riscv_feature_name_virtual): Define.
4293 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4294 (riscv_freg_feature): Use riscv_feature_name_fpu.
4295 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4296 (riscv_csr_feature): Use riscv_feature_name_csr.
4297 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4299 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4300 Craig Blackmore <craig.blackmore@embecosm.com>
4302 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4303 (ALLDEPFILES): Add riscv-none-tdep.c.
4304 * configure: Regenerate.
4305 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4307 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4308 * elf-none-tdep.c: New file.
4309 * elf-none-tdep.h: New file.
4310 * riscv-none-tdep.c: New file.
4312 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4313 Andrew Burgess <andrew.burgess@embecosm.com>
4315 * corelow.c: Add 'xml-tdesc.h' include.
4316 (core_target::read_description): Load the target description from
4317 the core file when possible.
4318 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4320 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4321 (gcore_elf_make_tdesc_note): New function.
4322 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4323 * linux-tdep.c (linux_make_corefile_notes): Add target description
4326 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4328 * Makefile.in (SFILES): Add gcore-elf.c.
4329 (HFILES_NO_SRCDIR): Add gcore-elf.h
4330 * configure: Regenerate.
4331 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4333 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4334 (struct fbsd_collect_regset_section_cb_data): Delete.
4335 (fbsd_collect_regset_section_cb): Delete.
4336 (fbsd_collect_thread_registers): Delete.
4337 (struct fbsd_corefile_thread_data): Delete.
4338 (fbsd_corefile_thread): Delete.
4339 (fbsd_make_corefile_notes): Call
4340 gcore_elf_build_thread_register_notes instead of the now deleted
4342 * gcore-elf.c: New file, the content was moved here from
4343 linux-tdep.c, functions were renamed and given minor cleanup.
4344 * gcore-elf.h: New file.
4345 * gcore.c (gcore_find_signalled_thread): Moved here from
4346 linux-tdep.c and given a new name. Minor cleanups.
4347 * gcore.h (gcore_find_signalled_thread): Declare.
4348 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4349 (struct linux_collect_regset_section_cb_data): Delete.
4350 (linux_collect_regset_section_cb): Delete.
4351 (linux_collect_thread_registers): Delete.
4352 (linux_corefile_thread): Call
4353 gcore_elf_build_thread_register_notes.
4354 (find_signalled_thread): Delete.
4355 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4357 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4360 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4361 process_stratum_target parameter,
4362 sparc_store_inferior_registers): update callers.
4363 * sparc-nat.c (sparc_fetch_inferior_registers,
4364 sparc_store_inferior_registers): Add process_stratum_target
4365 parameter. Switch current thread before calling
4366 sparc_supply_gregset / sparc_collect_rwindow.
4367 (sparc_store_inferior_registers): Likewise.
4368 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4369 (sparc32obsd_collect_uthread): Likewise.
4370 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4372 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4373 sparc64obsd_supply_uthread): Add assertion.
4375 2021-03-04 Tom Tromey <tromey@adacore.com>
4377 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4378 (aux_add_nonlocal_symbols): Update.
4379 (ada_add_block_symbols): Change "found_sym" to bool.
4381 2021-03-03 Tom Tromey <tromey@adacore.com>
4383 * ada-lang.c (ada_resolve_function): Update comment.
4384 (is_nonfunction, add_symbols_from_enclosing_procs)
4385 (remove_extra_symbols): Likewise.
4386 (struct match_data): Add constructor, initializers.
4387 (add_nonlocal_symbols): Remove memset.
4388 (aux_add_nonlocal_symbols): Update comment.
4389 (ada_add_block_renamings, add_nonlocal_symbols)
4390 (ada_add_all_symbols): Likewise.
4391 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4393 2021-03-02 Tom Tromey <tromey@adacore.com>
4395 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4396 (cast_to_gnat_encoded_fixed_point_type): Remove.
4397 (ada_value_cast, ada_evaluate_subexp): Update.
4398 (gnat_encoded_fixed_point_type_info)
4399 (ada_is_gnat_encoded_fixed_point_type)
4400 (gnat_encoded_fixed_point_delta)
4401 (gnat_encoded_fixed_point_scaling_factor): Remove.
4402 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4403 (gnat_encoded_fixed_point_delta)
4404 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4405 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4406 (ada_print_type): Update.
4407 * ada-valprint.c (ada_value_print_num): Update.
4408 * dwarf2/read.c (ada_get_gnat_encoded_number)
4409 (ada_get_gnat_encoded_ratio): New functions.
4410 (finish_fixed_point_type): Use them. Add parameters.
4411 (GNAT_FIXED_POINT_SUFFIX): New define.
4412 (gnat_encoded_fixed_point_type_info): New function.
4413 (read_base_type): Handle gnat encodings.
4415 2021-03-02 Tom Tromey <tromey@adacore.com>
4417 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4418 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4420 (GROW_VECT): Remove.
4421 (grow_vect): Remove.
4423 2021-03-02 Tom Tromey <tromey@adacore.com>
4425 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4426 * ada-lang.c (resolve_subexp): Update.
4427 (ada_resolve_function): Accept a vector.
4428 (is_nonfunction, add_defn_to_vec)
4429 (add_symbols_from_enclosing_procs): Likewise.
4430 (num_defns_collected, defns_collected): Remove.
4431 (remove_extra_symbols): Return a vector.
4432 (remove_irrelevant_renamings): Return void.
4433 (ada_add_local_symbols): Accept a vector.
4434 (struct match_data) <obstackp>: Remove.
4435 <resultp>: New member.
4436 (aux_add_nonlocal_symbols): Update.
4437 (ada_add_block_renamings, add_nonlocal_symbols)
4438 (ada_add_all_symbols): Accept a vector.
4439 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4441 (ada_lookup_symbol): Update.
4442 (ada_add_block_symbols): Accept a vector.
4443 (get_var_value, iterate_over_symbols): Update.
4444 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4447 2021-03-02 Tom Tromey <tromey@adacore.com>
4449 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4451 2021-03-02 Tom Tromey <tromey@adacore.com>
4453 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4456 (ada_pspace_data): Remove destructor.
4457 <sym_cache>: Now a unique_ptr.
4458 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4459 (ada_get_symbol_cache): Use 'new'.
4460 (ada_clear_symbol_cache): Rewrite.
4462 2021-03-02 Tom Tromey <tromey@adacore.com>
4464 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4467 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4470 * source.c (add_path): Skip empty dirnames.
4472 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4474 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4475 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4477 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4480 * target.c (target_mourn_inferior): Only compare pids in
4481 target_mourn_inferior.
4483 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4486 * remote.c (remote_target::start_remote): Ensure the single
4487 thread, automatically added for remote targets without the
4488 concept of threading, is initially in set to the "resumed"
4490 * remote.c (remote_target::add_current_inferior_and_thread):
4491 Add return value - return the main thread.
4493 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4495 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4496 (mi_tsv_created): Likewise.
4497 (mi_tsv_deleted): Likewise.
4499 2021-02-25 Tom de Vries <tdevries@suse.de>
4502 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4503 section_kind for &dwo_file->sections.info.
4505 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4508 * f-lang.c (fortran_argument_convert): Delete declaration.
4509 (fortran_prepare_argument): New function.
4510 (evaluate_subexp_f): Move logic to new function
4511 fortran_prepare_argument.
4513 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4515 * f-exp.y (f77_keywords): Add 'associated'.
4516 * f-lang.c (fortran_associated): New function.
4517 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4518 (operator_length_f): Likewise.
4519 (print_unop_or_binop_subexp_f): New function.
4520 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4521 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4522 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4523 (operator_check_f): Likewise.
4524 * std-operator.def: Add FORTRAN_ASSOCIATED.
4526 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4528 * f-exp.y (fortran_operators): Add ".xor.".
4530 2021-02-24 Tom de Vries <tdevries@suse.de>
4533 * dwarf2/attribute.c (attribute::form_is_signed): New function
4535 * dwarf2/attribute.h (attribute::as_signed): ... here.
4536 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4537 (attribute::form_is_signed): Declare.
4538 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4539 for DW_AT_decl_file.
4541 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4543 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4544 order for <sys/ptrace.h> and <asm/ptrace.h>.
4546 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4548 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4551 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4553 * exec.c (set_section_command): Move variable declarations into
4554 the function body, and use std::string instead of a fixed size
4557 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4559 * exec.c (exec_target::get_section_table): Delete member function.
4560 (section_table_read_available_memory): Use current_top_target, not
4561 just the exec_ops target.
4562 * target-delegates.c: Regenerate.
4563 * target.c (default_get_section_table): New function.
4564 * target.h (target_ops::get_section_table): Change default
4565 behaviour to call default_get_section_table.
4566 (default_get_section_table): Declare.
4568 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4570 * exec.c (exec_target::close): Call new clear_target_sections
4572 (program_space::add_target_sections): Update name of member
4574 (program_space::add_target_sections): Update name of member
4576 (program_space::remove_target_sections): Likewise.
4577 (exec_one_fork): Use new target_sections member function.
4578 (exec_target::get_section_table): Likewise.
4579 (exec_target::files_info): Likewise.
4580 (set_section_command): Likewise.
4581 (exec_set_section_address): Likewise.
4582 (exec_target::has_memory): Use new target_sections member
4584 * progspace.h (program_space::clear_target_sections): New member
4586 (program_space::target_sections): Rename member variable to
4587 m_target_sections, replace with a new member function.
4588 (program_space::m_target_sections): New member variable.
4589 * solib-dsbt.c (scan_dyntag): Use new member function.
4590 * solib-svr4.c (scan_dyntag): Likewise.
4592 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4594 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4596 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4597 (section_table_read_available_memory): Make local const.
4598 (exec_target::xfer_partial): Make local const.
4599 (print_section_info): Make parameter const.
4600 * gdb/exec.h (print_section_info): Likewise.
4601 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4603 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4605 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4607 * gdb/s390-tdep.c (s390_load): Likewise.
4608 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4609 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4610 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4612 (target_debug_print_const_target_section_table_p): ...this.
4613 * gdb/target-delegates.c: Regenerate.
4614 * gdb/target.c (target_get_section_table): Make return type const.
4615 (target_section_by_addr): Likewise. Also make some locals const.
4616 (memory_xfer_partial_1): Make some locals const.
4617 * gdb/target.h (struct target_ops) <get_section_table>: Make
4619 (target_section_by_addr): Likewise.
4620 (target_get_section_table): Likewise.
4622 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4624 * NEWS: Mention new 'maint info target-sections' command.
4625 * maint.c (maintenance_info_target_sections): New function.
4626 (_initialize_maint_cmds): Register new command.
4628 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4630 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4631 (riscv_features_from_bfd): ...this. Change parameter type to
4632 'bfd*', and update as required.
4633 (riscv_find_default_target_description): Update call to
4634 riscv_features_from_bfd. Select a default xlen based on
4636 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4638 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4640 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4641 dynamic types in UNOP_IND.
4643 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4646 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4648 (~dwarf2_queue_guard): Clear queue.
4649 (queue_comp_unit): Assert that queue is
4651 (process_queue): Adjust.
4652 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4654 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4657 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4658 to decide whether or not to enqueue it for expansion.
4659 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4660 after calling maybe_queue_comp_unit.
4662 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4664 * linux-nat.c (linux_nat_filter_event): Return void.
4666 2021-02-22 Tom Tromey <tromey@adacore.com>
4668 * solib-svr4.c (enable_break): Update.
4669 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4671 (target_bfd_reopen): Change parameter type.
4672 * bfd-target.h (target_bfd_reopen): Change parameter type.
4674 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4676 * thread.c (add_thread_silent): Add assert.
4677 (find_thread_ptid): Add assert.
4679 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4682 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4683 (target_unpush_up): Likewise.
4684 * procfs.c (procfs_target::attach): Push target early. Use
4685 target_unpush_up to unpush target in case of error.
4686 * target.h (struct target_unpusher): Move here.
4687 (target_unpush_up): Likewise.
4689 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4691 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4692 (which in turn includes <gnulib/config.h>) before include
4695 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4698 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4699 (decode_j_type_insn): Likewise.
4700 (decode_cj_type_insn): Likewise.
4701 (decode_b_type_insn): Likewise.
4704 2021-02-18 Tom Tromey <tom@tromey.com>
4706 * expression.h (struct expression) <evaluate>: Declare method.
4707 * eval.c (evaluate_subexp): Simplify.
4708 (expression::evaluate): New method.
4709 (evaluate_expression, evaluate_type): Use expression::evaluate.
4711 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4713 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4715 (ada_lookup_name_info): Likewise.
4717 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4719 * aclocal.m4: Regenerate.
4721 2021-02-12 Tom de Vries <tdevries@suse.de>
4724 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4725 (lin_thread_signals): New static var.
4726 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4728 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4729 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4731 * linux-thread-db.c (check_thread_signals): Use
4732 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4734 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4736 * f-exp.y (f77_keywords): Add allocated.
4737 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4738 (operator_length_f): Likewise.
4739 (print_subexp_f): Likewise.
4740 (dump_subexp_body_f): Likewise.
4741 (operator_check_f): Likewise.
4742 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4744 2021-02-11 Tom de Vries <tdevries@suse.de>
4747 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4748 Return true for DW_FORM_strx.
4750 2021-02-11 Tom Tromey <tromey@adacore.com>
4753 * parse.c (write_exp_symbol_reference): Write sym.block.
4755 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4757 * NEWS: Mention changes to 'maint info sections'.
4758 * maint.c (match_substring): Return a bool, fix whitespace issue.
4759 (struct single_bfd_flag_info): New struct.
4760 (bfd_flag_info): New static global.
4761 (match_bfd_flags): Return a bool, use bfd_flag_info.
4762 (print_bfd_flags): Use bfd_flag_info.
4763 (maint_print_section_info): Delete trailing whitespace.
4764 (struct maint_info_sections_opts): New struct.
4765 (maint_info_sections_option_defs): New static global.
4766 (maint_info_sections_completer): New function.
4767 (maintenance_info_sections): Use option parsing mechanism.
4768 (_initialize_maint_cmds): Update command help text for 'maint info
4769 sections' and register a command completer.
4771 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4773 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4774 functionality merged into...
4775 (maint_print_all_sections): ...this new function.
4776 (maintenance_info_sections): Make use of maint_print_all_sections,
4777 allow all objects to be printed even where there's no executable.
4779 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4781 * breakpoint.c (resolve_sal_pc): Make use of
4782 bound_minimal_symbol::obj_section.
4783 * maint.c (maintenance_translate_address): Likewise.
4784 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4785 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4787 * printcmd.c (info_address_command): Make use of
4788 bound_minimal_symbol::obj_section.
4790 2021-02-11 Alan Modra <amodra@gmail.com>
4792 * arm-symbian-tdep.c: Delete.
4793 * NEWS: Mention arm-symbian removal.
4794 * Makefile.in: Remove arm-symbian-tdep entries.
4795 * configure.tgt: Remove arm*-*-symbianelf*.
4796 * doc/gdb.texinfo: Remove mention of SymbianOS.
4797 * osabi.c (gdb_osabi_names): Remove "Symbian".
4798 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4799 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4800 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4802 * testsuite/gdb.base/dup-sect.exp: Likewise.
4803 * testsuite/gdb.base/long_long.exp: Likewise.
4804 * testsuite/gdb.base/solib-weak.exp: Likewise.
4805 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4806 * testsuite/gdb.python/py-section-script.exp: Likewise.
4807 * testsuite/lib/dwarf.exp: Likewise.
4808 * testsuite/lib/gdb.exp: Likewise.
4810 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4812 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4813 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4814 (one_or_two_args): New pattern.
4815 (f77_keywords): Add lbound and ubound.
4816 * f-lang.c (fortran_bounds_all_dims): New function.
4817 (fortran_bounds_for_dimension): New function.
4818 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4819 (operator_length_f): Likewise.
4820 (print_subexp_f): Likewise.
4821 (dump_subexp_body_f): Likewise.
4822 (operator_check_f): Likewise.
4823 * std-operator.def (FORTRAN_LBOUND): Define.
4824 (FORTRAN_UBOUND): Define.
4826 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4828 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4829 and set_section_index member functions where appropriate.
4830 * coffread.c (coff_symtab_read): Likewise.
4831 (process_coff_symbol): Likewise.
4832 * ctfread.c (set_symbol_address): Likewise.
4833 * dwarf2/read.c (add_partial_symbol): Likewise.
4834 (var_decode_location): Likewise.
4835 * language.c: Likewise.
4836 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4837 (compact_minimal_symbols): Likewise.
4838 (minimal_symbol_upper_bound): Likewise.
4839 * objfiles.c (relocate_one_symbol): Likewise.
4840 * psympriv.h (partial_symbol::obj_section): Likewise.
4841 (partial_symbol::address): Likewise.
4842 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4843 * stabsread.c (scan_file_globals): Likewise.
4844 * symmisc.c (dump_msymbols): Likewise.
4845 * symtab.c (general_symbol_info::obj_section): Likewise.
4846 (fixup_section): Likewise.
4847 (get_msymbol_address): Likewise.
4848 * symtab.h (general_symbol_info::section): Rename to...
4849 (general_symbol_info::m_section): ...this.
4850 (general_symbol_info::set_section_index): New member function.
4851 (general_symbol_info::section_index): Likewise.
4852 (SYMBOL_SECTION): Delete.
4853 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4854 set_section_index member functions where appropriate.
4855 (MSYMBOL_SECTION): Delete.
4856 (symbol::symbol): Update to initialize 'm_section'.
4857 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4858 (process_xcoff_symbol): Likewise.
4860 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4862 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4863 MSYMBOL_OBJ_SECTION.
4864 * findvar.c (language_defn::read_var_value): Likewise.
4865 * infcmd.c (jump_command): Likewise.
4866 * linespec.c (minsym_found): Likewise.
4867 * maint.c (maintenance_translate_address): Likewise.
4868 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4869 (minimal_symbol_upper_bound): Likewise.
4870 * parse.c (find_minsym_type_and_address): Likewise.
4871 (operator_check_standard): Likewise.
4872 * printcmd.c (info_address_command): Likewise.
4873 * symmisc.c (dump_msymbols): Likewise.
4874 (print_symbol): Likewise.
4875 * symtab.c (general_symbol_info::obj_section): Define new
4877 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4878 (find_pc_sect_compunit_symtab): Likewise.
4879 (find_function_start_sal): Likewise.
4880 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4881 MSYMBOL_OBJ_SECTION.
4882 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4884 (SYMBOL_OBJ_SECTION): Delete.
4885 (MSYMBOL_OBJ_SECTION): Delete.
4887 2021-02-09 Tom Tromey <tom@tromey.com>
4889 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4891 2021-02-09 Tom de Vries <tdevries@suse.de>
4894 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4895 construct an array type. Add assert to ensure that element_type is
4898 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4900 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4901 (gcore_collect_regset_section_cb): Delete.
4902 (gcore_collect_thread_registers): Delete.
4903 (gcore_build_thread_register_notes): Delete.
4904 (gcore_find_signalled_thread): Delete.
4905 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4906 'gdbarch' and 'thread_info' declarations.
4907 (gcore_build_thread_register_notes): Delete declaration.
4908 (gcore_find_signalled_thread): Likewise.
4909 * fbsd-tdep.c: Remove 'gcore.h' include.
4910 (struct fbsd_collect_regset_section_cb_data): New struct.
4911 (fbsd_collect_regset_section_cb): New function.
4912 (fbsd_collect_thread_registers): New function.
4913 (struct fbsd_corefile_thread_data): New struct.
4914 (fbsd_corefile_thread): New function.
4915 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4916 * linux-tdep.c: Remove 'gcore.h' include.
4917 (struct linux_collect_regset_section_cb_data): New struct.
4918 (linux_collect_regset_section_cb): New function.
4919 (linux_collect_thread_registers): New function.
4920 (linux_corefile_thread): Call Linux specific code.
4921 (find_signalled_thread): New function.
4922 (linux_make_corefile_notes): Call find_signalled_thread.
4924 2021-02-09 Tom Tromey <tromey@adacore.com>
4926 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4928 * value.c (value_contents_copy_raw): Now static.
4929 * value.h (value_contents_copy_raw): Don't declare.
4931 2021-02-09 Tom Tromey <tromey@adacore.com>
4933 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4936 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4939 * arc-linux-tdep.c (handle_atomic_sequence): New.
4940 (arc_linux_software_single_step): Call handle_atomic_sequence().
4942 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4944 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4946 (REQUIRE_WINDOW): Call is_valid member function.
4947 (REQUIRE_WINDOW_FOR_SETTER): New define.
4948 (gdbpy_tui_is_valid): Call is_valid member function.
4949 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4950 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4952 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4953 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4956 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4958 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4959 for the title is not nullptr.
4961 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4963 * tui-layout.c (saved_tui_windows): Delete.
4964 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4965 call new get_windows member function instead.
4966 (tui_get_window_by_name): Check in tui_windows.
4967 (tui_layout_window::apply): Don't add to tui_windows.
4968 * tui-layout.h (tui_layout_base::get_windows): New member function.
4969 (tui_layout_window::get_windows): Likewise.
4970 (tui_layout_split::get_windows): Likewise.
4972 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4974 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4975 of the window objects.
4977 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4979 * python/python.c (gdbpy_print_stack): Reformat an error message.
4981 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4983 * tui/tui-interp.c (tui_command_line_handler): New function.
4984 (tui_interp::resume): Register tui_command_line_handler as the
4986 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4988 (tui_getc_1): Delete handling of '\n' and '\r'.
4989 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4991 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4993 * tui/tui-regs.c (tui_data_window::display_registers_from):
4994 Mark invisible register sub windows.
4995 (tui_data_window::check_register_values): Ignore invisible
4996 register sub windows.
4998 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5000 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5001 n_spaces with a negative value.
5003 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5005 * tui/tui-regs.c (tui_data_window::display_registers_from):
5006 Add refresh_window call.
5008 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5010 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5012 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5014 * symmisc.c (std_in, std_out, std_err): Remove.
5015 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5017 2021-02-05 Tom de Vries <tdevries@suse.de>
5019 PR breakpoints/27330
5020 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5021 glibc object file has debug info.
5023 2021-02-05 Tom de Vries <tdevries@suse.de>
5026 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5028 2021-02-05 Tom de Vries <tdevries@suse.de>
5030 PR breakpoints/27313
5031 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5034 2021-02-05 Tom Tromey <tom@tromey.com>
5036 * compile/compile-c-support.c (get_compile_context)
5037 (c_get_compile_context, cplus_get_compile_context): Change return
5039 * language.c (language_defn::get_compile_instance): New method.
5040 * language.h (language_defn::get_compile_instance): Change return
5041 type. No longer inline.
5042 * c-lang.c (c_language::get_compile_instance): Change return type.
5043 (cplus_language::get_compile_instance): Change return type.
5044 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5046 * compile/compile.c (compile_to_object): Update.
5048 2021-02-05 Tom Tromey <tom@tromey.com>
5050 * parser-defs.h (write_exp_symbol_reference): Declare.
5051 * parse.c (write_exp_symbol_reference): New function.
5052 * p-exp.y (variable): Use write_exp_symbol_reference.
5053 * m2-exp.y (variable): Use write_exp_symbol_reference.
5054 * f-exp.y (variable): Use write_exp_symbol_reference.
5055 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5056 * c-exp.y (variable): Use write_exp_symbol_reference.
5058 2021-02-05 Tom de Vries <tdevries@suse.de>
5061 * valarith.c (complex_binop): Throw an error if complex type can't
5064 2021-02-05 Tom de Vries <tdevries@suse.de>
5067 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5070 2021-02-05 Tom de Vries <tdevries@suse.de>
5072 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5074 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5076 * configure.tgt (riscv*-*-*): Set gdb_sim.
5078 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5080 * target.c (target_is_non_stop_p): Return bool.
5081 * target.h (target_is_non_stop_p): Return bool.
5083 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5085 * record-full.c (record_full_async_inferior_event_handler):
5086 Don't clear async event handler.
5087 (record_full_base_target::wait): Clear async event handler at
5090 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5092 * record-btrace.c (record_btrace_handle_async_inferior_event):
5093 Don't clear async event handler.
5094 (record_btrace_target::wait): Clear async event handler at
5097 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5099 * remote.c (remote_target::wait): Clear async event handler at
5100 beginning, mark if needed at the end.
5101 (remote_async_inferior_event_handler): Don't set or clear async
5104 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5106 * async-event.h (async_event_handler_func): Add documentation.
5107 * async-event.c (check_async_event_handlers): Don't clear
5108 async_event_handler ready flag.
5109 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5111 * record-btrace.c (record_btrace_handle_async_inferior_event):
5113 * record-full.c (record_full_async_inferior_event_handler):
5115 * remote-notif.c (remote_async_get_pending_events_handler):
5117 * remote.c (remote_async_inferior_event_handler): Likewise.
5119 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5121 * infrun.c (handle_inferior_event): Move stop_soon variable to
5124 2021-02-03 Pedro Alves <pedro@palves.net>
5126 * infcmd.c (detach_command): Hold strong reference to target, and
5127 if all-stop on entry, restart threads on exit.
5128 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5129 (restart_stepped_thread): ... this new function. Also handle
5131 (restart_after_all_stop_detach): New function.
5132 * infrun.h (restart_after_all_stop_detach): Declare.
5134 2021-02-03 Pedro Alves <pedro@palves.net>
5136 * infrun.c (struct step_over_info): Initialize fields.
5137 (prepare_for_detach): Handle ongoing in-line step over.
5139 2021-02-03 Pedro Alves <pedro@palves.net>
5141 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5143 * remote.c (remote_target::remote_detach_1): ... and here ...
5144 * target.c (target_detach): ... instead of here.
5145 * target.h (target_ops::detach): Add comment.
5147 2021-02-03 Pedro Alves <pedro@palves.net>
5149 * infrun.c (struct wait_one_event): Move higher up.
5150 (prepare_for_detach): Abort in-progress displaced steps instead of
5151 letting them complete.
5152 (handle_one): If the inferior is detaching, don't add the thread
5153 back to the global step-over chain.
5154 (restart_threads): Don't restart threads if detaching.
5155 (handle_signal_stop): Remove inferior::detaching reference.
5157 2021-02-03 Pedro Alves <pedro@palves.net>
5159 * infrun.c (prepare_for_detach): Don't release scoped_restore
5162 2021-02-03 Pedro Alves <pedro@palves.net>
5164 * infrun.c (handle_one): New function, factored out from ...
5165 (stop_all_threads): ... here.
5167 2021-02-03 Pedro Alves <pedro@palves.net>
5169 * remote.c (remote_notif_stop_ack): Don't error out on
5170 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5171 (remote_target::discard_pending_stop_replies): Don't delete
5172 in-flight notification; instead, clear its contents.
5174 2021-02-03 Pedro Alves <pedro@palves.net>
5176 * remote.c (extended_remote_target::attach): Set target async in
5177 the target-non-stop path too.
5179 2021-02-03 Pedro Alves <pedro@palves.net>
5182 * infrun.c (handle_signal_stop): Move main context_switch call
5183 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5185 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5187 * NEWS (Changed commands): Add entry for the behavior change of
5188 the inferior command.
5189 * inferior.c (inferior_command): When no argument is given to the
5190 inferior command, display info about the currently selected
5193 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5195 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5197 (read_attribute_reprocess): Adjust.
5199 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5201 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5202 <gnu_ranges_base>: ... this...
5203 <rnglists_base>: ... and this.
5204 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5205 <gnu_ranges_base>: ... this...
5206 <rnglists_base>: ... and this.
5207 (read_cutu_die_from_dwo): Adjust
5208 (dwarf2_get_pc_bounds): Adjust
5209 (dwarf2_record_block_ranges): Adjust.
5210 (read_full_die_1): Adjust
5211 (partial_die_info::read): Adjust.
5212 (read_rnglist_index): Adjust.
5214 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5217 * dwarf2/read.c (read_loclists_rnglists_header): Add
5218 header_offset parameter and use it.
5219 (read_loclist_index): Read header of the current contribution,
5220 not the one at the beginning of the section.
5221 (read_rnglist_index): Likewise.
5223 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5226 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5227 requires_reprocessing flag.
5228 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5230 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5231 and DW_FORM_loclistx.
5232 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5233 instead of set_address for DW_FORM_loclistx and
5236 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5238 * dwarf2/read.c (read_loclist_index): Remove bound check for
5240 (read_rnglist_index): Likewise.
5242 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5244 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5247 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5249 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5251 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5253 * dwarf2/read.c (read_loclist_index): Change complaints into
5256 2021-02-02 Tom de Vries <tdevries@suse.de>
5259 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5262 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5264 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5265 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5266 here from linux-tdep.c and given a new name. Minor cleanups.
5267 (gcore_collect_regset_section_cb): Likewise.
5268 (gcore_collect_thread_registers): Likewise.
5269 (gcore_build_thread_register_notes): Likewise.
5270 (gcore_find_signalled_thread): Likewise.
5271 * gcore.h (gcore_build_thread_register_notes): Declare.
5272 (gcore_find_signalled_thread): Declare.
5273 * fbsd-tdep.c: Add 'gcore.h' include.
5274 (struct fbsd_collect_regset_section_cb_data): Delete.
5275 (fbsd_collect_regset_section_cb): Delete.
5276 (fbsd_collect_thread_registers): Delete.
5277 (struct fbsd_corefile_thread_data): Delete.
5278 (fbsd_corefile_thread): Delete.
5279 (fbsd_make_corefile_notes): Call
5280 gcore_build_thread_register_notes instead of the now deleted
5282 * linux-tdep.c: Add 'gcore.h' include.
5283 (struct linux_collect_regset_section_cb_data): Delete.
5284 (linux_collect_regset_section_cb): Delete.
5285 (linux_collect_thread_registers): Delete.
5286 (linux_corefile_thread): Call
5287 gcore_build_thread_register_notes.
5288 (find_signalled_thread): Delete.
5289 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5291 2021-01-29 Tom de Vries <tdevries@suse.de>
5293 PR breakpoints/26063
5294 * infrun.c (process_event_stop_test): Reset
5295 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5298 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5300 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5301 assert. Extend the header comment.
5303 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5305 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5306 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5307 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5308 (tui_locator_win_info_ptr): Delete declaration.
5309 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5310 (tui_disasm_window::set_contents): Fetch state from tui_location
5312 (tui_get_begin_asm_address): Likewise.
5313 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5315 (get_locator_window): Delete.
5316 (initialize_known_windows): Treat locator window just like all the
5318 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5319 (tui_source_window::set_contents): Fetch state from tui_location
5321 (tui_source_window::showing_source_p): Likewise.
5322 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5324 (tui_locator_win_info_ptr): Delete.
5325 (tui_locator_window::make_status_line): Fetch state from
5326 tui_location global.
5327 (tui_locator_window::rerender): Remove check of 'handle',
5328 reindent function body.
5329 (tui_locator_window::set_locator_fullname): Delete.
5330 (tui_locator_window::set_locator_info): Delete.
5331 (tui_update_locator_fullname): Delete.
5332 (tui_show_frame_info): Likewise.
5333 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5334 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5335 tui/tui-location.h and renamed to
5336 tui_location_tracker::set_location.
5337 (tui_locator_window::set_locator_fullname): Moved to
5338 tui/tui-location.h and renamed to
5339 tui_location_tracker::set_fullname.
5340 (tui_locator_window::full_name): Delete.
5341 (tui_locator_window::proc_name): Delete.
5342 (tui_locator_window::line_no): Delete.
5343 (tui_locator_window::addr): Delete.
5344 (tui_locator_window::gdbarch): Delete.
5345 (tui_update_locator_fullname): Delete declaration.
5346 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5348 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5349 (tui_display_main): Call function on tui_location directly.
5350 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5351 * tui/tui-location.c: New file.
5352 * tui/tui-location.h: New file.
5354 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5356 * gdbtypes.h (get_type_arch): Rename to...
5357 (struct type) <arch>: ... this, update all users.
5359 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5361 * gdbtypes.h (struct type) <arch>: Rename to...
5362 <arch_owner>: ... this, update all users.
5363 <objfile>: Rename to...
5364 <objfile_owner>: ... this, update all users.
5366 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5368 * gdbcmd.h (execute_command_to_string): Update comment.
5369 * top.c (execute_command_to_string): Update header comment.
5371 2021-01-28 Tom de Vries <tdevries@suse.de>
5373 PR breakpoints/27205
5374 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5375 (create_longjmp_master_breakpoint_names): New function, factored out
5377 (create_longjmp_master_breakpoint): ... here. Only try to install
5378 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5379 breakpoint in libc.so failed.
5381 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5384 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5385 unique_ptr is released when the wrapped pointer is kept for later
5388 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5390 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5391 BLR and BR instructions.
5392 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5393 (enum aarch64_masks): New.
5395 2021-01-26 Tom Tromey <tromey@adacore.com>
5397 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5398 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5399 (windows_init_thread_list, windows_nat::handle_load_dll)
5400 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5401 (windows_nat_target::resume)
5402 (windows_nat_target::get_windows_debug_event)
5403 (windows_nat_target::interrupt, windows_xfer_memory)
5404 (windows_nat_target::close): Update.
5405 * nat/windows-nat.c (DEBUG_EVENTS): Use
5406 debug_prefixed_printf_cond.
5407 (matching_pending_stop, fetch_pending_stop)
5408 (continue_last_debug_event): Update.
5410 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5412 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5413 elfcore_write_file_note.
5415 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5417 * arc-tdep.c (arc_add_reggroups): New function.
5418 (arc_gdbarch_init): Call arc_add_reggroups.
5420 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5422 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5424 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5425 Simon Marchi <simon.marchi@polymtl.ca>
5426 Tom de Vries <tdevries@suse.de>
5428 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5431 2021-01-25 Tom Tromey <tromey@adacore.com>
5433 * dwarf2/read.c (get_mpz): New function.
5434 (get_dwarf2_rational_constant): Use it.
5436 2021-01-25 Tom Tromey <tromey@adacore.com>
5438 * ada-lang.c (resolve_subexp): Handle array context.
5440 2021-01-23 Tom Tromey <tom@tromey.com>
5443 * compile/compile-loc2c.c (note_register): New function.
5444 (pushf_register_address, pushf_register): Use it.
5446 2021-01-23 Tom Tromey <tom@tromey.com>
5448 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5449 Change type of "registers_used".
5450 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5451 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5452 (locexpr_generate_c_location, loclist_generate_c_location): Change
5453 type of "registers_used".
5454 * compile/compile.h (compile_dwarf_expr_to_c)
5455 (compile_dwarf_bounds_to_c): Update.
5456 * compile/compile-loc2c.c (pushf_register_address)
5457 (pushf_register, do_compile_dwarf_expr_to_c)
5458 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5459 of "registers_used".
5460 * compile/compile-c.h (generate_c_for_variable_locations):
5462 * compile/compile-c-symbols.c (generate_vla_size)
5463 (generate_c_for_for_one_variable): Change type of
5465 (generate_c_for_variable_locations): Return std::vector.
5466 * compile/compile-c-support.c (generate_register_struct): Change
5467 type of "registers_used".
5470 2021-01-23 Tom Tromey <tom@tromey.com>
5472 * compile/compile-internal.h (class compile_instance)
5473 <set_arguments>: Change return type.
5474 * compile/compile.c (compile_to_object): Remove call to reset.
5475 (compile_instance::set_arguments): Change return type.
5477 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5479 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5480 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5482 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5484 * Makefile.in (SELFTESTS_SRCS): Add
5485 unittests/gdb_tilde_expand-selftests.c.
5486 * unittests/gdb_tilde_expand-selftests.c: New file.
5488 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5491 * NEWS: Mention new command.
5492 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5493 (version_style): Define.
5494 (cli_style_option::cli_style_option): Add intensity parameter, and
5496 (_initialize_cli_style): Register version style set/show commands.
5497 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5498 (version_style): Declare.
5499 * top.c (print_gdb_version): Use version_stype, and styled_string
5500 to print the GDB version string.
5502 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5504 * utils.c (emit_style_escape): Only emit an escape sequence if the
5505 requested style is different than the current applied style.
5506 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5507 current applied_style.
5508 (fputs_styled): Remove is_default check.
5509 (fputs_styled_unfiltered): Likewise.
5510 (vfprintf_styled_no_gdbfmt): Likewise.
5512 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5514 * remote.h (remote_debug_printf): New.
5515 (remote_debug_printf_nofunc): New.
5516 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5517 * remote.c: Use above macros throughout file.
5519 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5521 * remote.h (remote_debug): Change to bool.
5522 * remote.c (remote_debug): Change to bool.
5523 (_initialize_remote): Adjust.
5525 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5527 * target.h (remote_debug): Move to...
5528 * remote.h (remote_debug): ... here.
5529 * top.c (remote_debug): Move to...
5530 * remote.c (remote_debug): ... here.
5531 * remote-sim.c: Include remote.h.
5533 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5535 * cli/cli-cmds.c (show_remote_debug): Remove.
5536 (show_remote_timeout): Remove.
5537 (_initialize_cli_cmds): Don't register commands.
5538 * remote.c (show_remote_debug): Move here.
5539 (show_remote_timeout): Move here.
5540 (_initialize_remote): Register commands.
5542 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5544 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5545 type::objfile method instead.
5547 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5549 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5550 use the type::is_objfile_owned method.
5552 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5554 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5555 (TYPE_OWNER): Remove.
5556 (TYPE_OBJFILE): Adjust.
5557 (struct main_type) <flag_objfile_owned>: Rename to...
5558 <m_flag_objfile_owned>: ... this.
5559 <owner>: Rename to...
5560 <m_owner>: ... this.
5561 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5563 (TYPE_ALLOC): Adjust.
5564 * gdbtypes.c (alloc_type): Adjust.
5565 (alloc_type_arch): Adjust.
5566 (alloc_type_copy): Adjust.
5567 (get_type_arch): Adjust.
5568 (smash_type): Adjust.
5569 (lookup_array_range_type): Adjust.
5570 (recursive_dump_type): Adjust.
5571 (copy_type_recursive): Adjust.
5572 * compile/compile-c-types.c (convert_func): Adjust.
5573 (convert_type_basic): Adjust.
5574 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5577 (language_arch_info::type_and_symbol::alloc_type_symbol):
5580 2021-01-21 Luis Machado <luis.machado@linaro.org>
5582 * coffread.c (enter_linenos): Passing string to complaint.
5583 * valops.c (value_assign): Make array view.
5585 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5587 * auto-load.h (debug_auto_load): Move here.
5588 (auto_load_debug_printf): New.
5589 * auto-load.c: Use auto_load_debug_printf.
5590 (debug_auto_load): Move to header.
5591 * linux-thread-db.c (try_thread_db_load): Use
5592 auto_load_debug_printf.
5593 * main.c (captured_main_1): Likewise.
5595 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5597 * f-valprint.c (f77_array_offset_tbl): Remove.
5599 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5601 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5603 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5605 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5608 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5611 * python/py-breakpoint.c (bppy_get_location): Handle
5612 bp_hardware_breakpoint.
5613 (bppy_init): Likewise.
5614 (gdbpy_breakpoint_created): Likewise.
5616 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5618 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5620 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5622 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5623 (_initialize_gdb_bfd): Adjust.
5625 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5628 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5630 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5632 * dwarf2/read.c (follow_die_offset): Add logging.
5633 (dwarf2_per_objfile::age_comp_units): Add logging.
5635 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5637 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5638 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5639 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5640 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5641 * arm-tdep.c (struct frame_unwind): Make static.
5642 * auto-load.c (auto_load_safe_path_vec): Make static.
5643 * csky-tdep.c (csky_stub_unwind): Make static.
5644 * gdbarch.c (gdbarch_data_registry): Make static.
5645 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5646 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5647 * i386-tdep.c (i386_frame_setup_skip_insns,
5648 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5650 * infrun.c (observer_mode): Make static.
5651 * linux-nat.c (sigchld_action): Make static.
5652 * linux-thread-db.c (thread_db_list): Make static.
5653 * maint-test-options.c (maintenance_test_options_list):
5654 * mep-tdep.c (mep_csr_registers): Make static.
5655 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5656 (stats): Make static.
5657 * nat/linux-osdata.c (struct osdata_type): Make static.
5658 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5659 * progspace.c (last_program_space_num): Make static.
5660 * python/py-param.c (struct parm_constant): Remove struct type
5662 (parm_constants): Make static.
5663 * python/py-record-btrace.c (btpy_list_methods): Make static.
5664 * python/py-record.c (recpy_gap_type): Make static.
5665 * record.c (record_goto_cmdlist): Make static.
5666 * regcache.c (regcache_descr_handle): Make static.
5667 * registry.h (DEFINE_REGISTRY): Make definition static.
5668 * symmisc.c (std_in, std_out, std_err): Make static.
5669 * top.c (previous_saved_command_line): Make static.
5670 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5672 * unittests/command-def-selftests.c (nr_duplicates,
5673 nr_invalid_prefixcmd, lists): Make static.
5674 * unittests/observable-selftests.c (test_notification): Make
5676 * unittests/optional/assignment/1.cc (counter): Make static.
5677 * unittests/optional/assignment/2.cc (counter): Make static.
5678 * unittests/optional/assignment/3.cc (counter): Make static.
5679 * unittests/optional/assignment/4.cc (counter): Make static.
5680 * unittests/optional/assignment/5.cc (counter): Make static.
5681 * unittests/optional/assignment/6.cc (counter): Make static.
5683 2021-01-20 Joel Sherrill <joel@rtems.org>
5686 * remote.c (struct remote_thread_info) <resume_state>: Rename
5688 <get_resume_state>: ... this.
5689 (remote_target::resume): Adjust.
5690 (remote_target::commit_resume): Adjust.
5691 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5693 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5694 Tom Tromey <tom@tromey.com>
5696 * stap-probe.c (stap_parse_single_operand): Handle '!'
5698 (stap_parse_argument_conditionally): Likewise.
5699 Skip spaces after processing open-parenthesis sub-expression.
5700 (stap_parse_argument_1): Skip spaces after call to
5701 stap_parse_argument_conditionally.
5702 Handle case when right-side expression is a parenthesized
5704 Skip spaces after call to stap_parse_argument_1.
5706 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5708 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5710 2021-01-19 Luis Machado <luis.machado@linaro.org>
5712 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5713 memory and save data.
5714 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5715 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5716 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5717 (trad_frame_value_bytes_p): Remove.
5718 (trad_frame_reset_saved_regs): Adjust documentation.
5719 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5720 constructor and reset the state of the registers.
5721 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5722 (trad_frame_value_bytes_p, trad_frame_set_value)
5723 (trad_frame_set_realreg, trad_frame_set_addr)
5724 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5725 (trad_frame_set_reg_realreg): Update to call member function.
5726 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5727 (trad_frame_get_prev_register): Likewise.
5729 * aarch64-tdep.c (aarch64_analyze_prologue)
5730 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5731 (aarch64_prologue_prev_register): Update to use member functions.
5732 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5733 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5734 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5735 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5736 (arm_make_epilogue_frame_cache): Likewise.
5737 * avr-tdep.c (avr_frame_unwind_cache)
5738 (avr_frame_prev_register): Likewise.
5739 * cris-tdep.c (cris_scan_prologue): Likewise.
5740 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5741 * frv-tdep.c (frv_analyze_prologue): Likewise.
5742 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5743 * lm32-tdep.c (lm32_frame_cache): Likewise.
5744 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5745 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5746 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5747 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5748 (reset_saved_regs): Adjust to set realreg.
5749 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5750 call member functions.
5751 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5752 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5753 (s390_backchain_frame_unwind_cache): Likewise.
5754 * score-tdep.c (score7_analyze_prologue)
5755 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5756 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5757 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5758 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5759 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5760 * tilegx-tdep.c (tilegx_analyze_prologue)
5761 (tilegx_frame_cache): Likewise.
5762 * v850-tdep.c (v850_frame_cache): Likewise.
5763 * vax-tdep.c (vax_frame_cache): Likewise.
5765 2021-01-19 Luis Machado <luis.machado@linaro.org>
5767 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5769 (put_frame_register_bytes): Likewise.
5770 Adjust documentation.
5771 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5772 (safe_frame_unwind_memory): Likewise.
5773 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5774 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5776 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5777 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5778 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5779 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5780 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5781 * dwarf2/loc.c (rw_pieced_value): Likewise.
5782 * hppa-tdep.c (hppa_frame_cache): Likewise.
5783 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5784 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5785 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5786 (i386_linux_rt_sigtramp_start): Likewise.
5787 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5788 * i386-tdep.c (i386_register_to_value): Likewise.
5789 * i387-tdep.c (i387_register_to_value): Likewise.
5790 * ia64-tdep.c (ia64_register_to_value): Likewise.
5791 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5792 (m32r_linux_rt_sigtramp_start): Likewise.
5793 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5794 * m68k-tdep.c (m68k_register_to_value): Likewise.
5795 * mips-tdep.c (mips_register_to_value)
5796 (mips_value_to_register): Likewise.
5797 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5798 (ppcfbsd_sigtramp_frame_cache): Likewise.
5799 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5800 (ppcobsd_sigtramp_frame_cache): Likewise.
5801 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5802 (rs6000_register_to_value): Likewise.
5803 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5804 * tramp-frame.c (tramp_frame_start): Likewise.
5805 * valops.c (value_assign): Likewise.
5807 2021-01-19 Luis Machado <luis.machado@linaro.org>
5809 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5811 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5812 instead of buffer and size.
5813 (trad_frame_set_reg_value_bytes): Likewise.
5814 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5815 (trad_frame_set_value_bytes): Likewise.
5817 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5819 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5821 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5823 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5824 (riscv_fbsd_gregset): Use riscv_supply_regset.
5825 (riscv_fbsd_fpregset): Likewise.
5826 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5827 (riscv_linux_fregset): Likewise.
5828 * riscv-tdep.c (riscv_supply_regset): Define new function.
5829 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5831 2021-01-18 Tom de Vries <tdevries@suse.de>
5834 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5836 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5839 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5841 * remote.c (class remote_target) <remote_hostio_send_command,
5842 remote_hostio_parse_result>: Constify parameter.
5843 (remote_hostio_parse_result): Likewise.
5844 (remote_target::remote_hostio_send_command): Adjust.
5845 (remote_target::remote_hostio_pread_vFile): Adjust.
5846 (remote_target::fileio_readlink): Adjust.
5847 (remote_target::fileio_fstat): Adjust.
5849 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5851 * remote.c (remote_target::start_remote): Move wait_status to
5854 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5856 * remote.c (class remote_target):
5857 <add_current_inferior_and_thread>: Constify parameter.
5858 (stop_reply_extract_thread): Likewise.
5859 (remote_target::get_current_thread): Likewise.
5860 (remote_target::add_current_inferior_and_thread): Likewise.
5862 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5864 * remote.c (class remote_target)
5865 <remote_unpack_thread_info_response,
5866 parse_threadlist_response>: Constify parameter and/or return
5867 value and or local variable.
5868 (stub_unpack_int): Likewise.
5869 (unpack_nibble): Likewise.
5870 (unpack_byte): Likewise.
5871 (unpack_int): Likewise.
5872 (unpack_string): Likewise.
5873 (unpack_threadid): Likewise.
5874 (remote_target::remote_unpack_thread_info_response): Likewise.
5875 (remote_target::parse_threadlist_response): Likewise.
5877 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5879 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5881 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5883 * MAINTAINERS (Write After Approval): Add myself.
5885 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5887 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5888 because is_trivially_default_constructible was first implemented with
5891 2021-01-14 Tom de Vries <tdevries@suse.de>
5893 PR breakpoints/27151
5894 * objfiles.h (in_plt_section): Handle .plt.sec.
5896 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5900 (remote_target::select_thread_for_ambiguous_stop_reply): New
5902 (remote_target::process_stop_reply): Call
5903 select_thread_for_ambiguous_stop_reply.
5905 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5907 * record-btrace.c (class record_btrace_target): Remove.
5908 (record_btrace_target::commit_resume): Remove.
5909 * record-full.c (class record_full_target): Remove.
5910 (record_full_target::commit_resume): Remove.
5912 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5914 * remote.c (enum class resume_state): New.
5915 (struct resumed_pending_vcont_info): New.
5916 (struct remote_thread_info) <resume_state, set_not_resumed,
5917 set_resumed_pending_vcont, resumed_pending_vcont_info,
5918 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5920 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5921 (remote_target::remote_add_thread): Adjust.
5922 (remote_target::process_initial_stop_replies): Adjust.
5923 (remote_target::resume): Adjust.
5924 (remote_target::commit_resume): Rely on state in
5925 remote_thread_info and not on tp->executing.
5926 (remote_target::process_stop_reply): Adjust.
5928 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5930 * arc-tdep.h (arc_debug_printf): New.
5931 * arc-tdep.c: Use arc_debug_printf.
5932 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5933 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5934 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5936 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5938 * arc-tdep.h (arc_debug): Change type to bool.
5939 * arc-tdep.c (arc_debug): Change type to bool.
5940 (arc_analyze_prologue): Adjust.
5941 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5942 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5944 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5946 * auto-load.c (auto_load_objfile_script_1): Use bool.
5947 (execute_script_contents): Use bool.
5949 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5951 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5953 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5955 * extension-priv.h (struct extension_language_script_ops)
5956 <auto_load_enabled>: Return bool.
5957 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5959 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5961 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5963 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5964 move comment to header.
5965 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5967 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5968 move comment to header.
5970 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5972 * auto-load.h (file_is_auto_load_safe): Change return type to
5973 bool, move comment here.
5974 * auto-load.c (file_is_auto_load_safe): Change return type and
5975 advice_printed to bool. Move comment to header.
5977 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5979 * jit.c (jit_debug_printf): New, use throughout file.
5981 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5983 * infrun.c (normal_stop): Fix indentation.
5985 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5987 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5989 * symfile.h: ... here.
5990 * symfile.c: Update doc.
5992 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5994 * target.h (baud_rate, serial_parity): Move declarations...
5995 * serial.h: ... here.
5996 * main.c: Include serial.h.
5997 * serial.c (baud_rate, serial_parity): Update doc.
5999 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6001 * top.c (pre_init_ui_hook): Remove.
6003 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6005 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6006 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6007 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6008 * features/aarch64-fpu.xml: Add bfloat16 type.
6010 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6012 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6014 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6016 * f-exp.y (dot_ops): Rename to...
6017 (fortran_operators): ...this. Add a header comment. Add symbol
6019 (yylex): Update to use fortran_operators not dot_ops. Remove
6020 special handling for '**', this is now included in
6023 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6025 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6026 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6027 * aarch64-tdep.c: Use aarch64_debug_printf.
6029 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6031 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6034 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6036 * jit.c (jit_debug): Change type to bool.
6037 (_initialize_jit): Adjust.
6039 2021-01-09 Tom Tromey <tom@tromey.com>
6042 * compile/compile.c (compile_to_object): Avoid crash when
6043 osabi_triplet_regexp returns NULL.
6045 2021-01-09 Tom Tromey <tom@tromey.com>
6047 * tracepoint.h (class collection_list) <append_exp>: Take a
6049 * tracepoint.c (collection_list::append_exp): Take a std::string.
6050 (encode_actions_1): Update.
6052 2021-01-08 Tom Tromey <tromey@adacore.com>
6054 * parse.c (parse_expression): Add void_context_p parameter. Use
6055 parse_exp_in_context.
6056 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6058 (print_command, call_command): Update.
6059 * expression.h (parse_expression): Add void_context_p parameter.
6061 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6063 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6064 for internalvar components that have a dynamic location.
6066 2021-01-08 Tom de Vries <tdevries@suse.de>
6069 * breakpoint.c (create_exception_master_breakpoint_probe)
6070 (create_exception_master_breakpoint_hook): Factor out
6072 (create_exception_master_breakpoint): ... here. Only try to install
6073 the master exception breakpoint in objfile.debug using the
6074 _Unwind_DebugHook method, if the install using probes in objfile
6077 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6079 * f-lang.c (fortran_value_subarray): Call value_from_component.
6081 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6083 * remote-sim.c: Include memory-map.h.
6084 (gdbsim_target): Define memory_map override.
6085 (gdbsim_target::memory_map): Define.
6087 2021-01-07 Tom Tromey <tromey@adacore.com>
6089 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6091 2021-01-07 Tom Tromey <tromey@adacore.com>
6093 * ada-lang.c (add_component_interval): Start loop using vector's
6096 2021-01-06 Tom Tromey <tromey@adacore.com>
6098 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6100 * valarith.c (fixed_point_binop): Handle multiplication
6101 and division specially.
6102 * valops.c (value_to_gdb_mpq): New function.
6103 (value_cast_to_fixed_point): Use it.
6105 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6107 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6108 Call wnoutrefresh instead of tui_win_info::refresh_window.
6110 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6112 * tui/tui-source.c (tui_source_window::show_line_number):
6113 Redraw second space after line number.
6115 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6118 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6119 Fix source pad size in prefresh.
6120 (tui_source_window_base::show_source_content): Grow source pad
6123 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6125 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6126 (bfin_frame_align): Use align_down.
6128 2021-01-04 Tom de Vries <tdevries@suse.de>
6130 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6131 terminators that do not terminate anything.
6133 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6135 * debug.c (debug_print_depth): New.
6136 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6137 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6138 * infrun.c (start_step_over): Use
6139 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6140 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6141 INFRUN_SCOPED_DEBUG_START_END.
6142 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6144 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6146 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6148 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6150 * utils.c (vfprintf_unfiltered): Print timestamp only when
6151 previous debug output ended with a newline.
6153 2021-01-04 Luis Machado <luis.machado@linaro.org>
6155 Update all users of trad_frame_saved_reg to use the new member
6158 Remote all struct keywords from declarations of trad_frame_saved_reg
6159 types, except on forward declarations.
6161 * aarch64-tdep.c: Update.
6162 * alpha-mdebug-tdep.c: Update.
6163 * alpha-tdep.c: Update.
6164 * arc-tdep.c: Update.
6165 * arm-tdep.c: Update.
6166 * avr-tdep.c: Update.
6167 * cris-tdep.c: Update.
6168 * csky-tdep.c: Update.
6169 * frv-tdep.c: Update.
6170 * hppa-linux-tdep.c: Update.
6171 * hppa-tdep.c: Update.
6172 * hppa-tdep.h: Update.
6173 * lm32-tdep.c: Update.
6174 * m32r-linux-tdep.c: Update.
6175 * m32r-tdep.c: Update.
6176 * m68hc11-tdep.c: Update.
6177 * mips-tdep.c: Update.
6178 * moxie-tdep.c: Update.
6179 * riscv-tdep.c: Update.
6180 * rs6000-tdep.c: Update.
6181 * s390-linux-tdep.c: Update.
6182 * s390-tdep.c: Update.
6183 * score-tdep.c: Update.
6184 * sparc-netbsd-tdep.c: Update.
6185 * sparc-sol2-tdep.c: Update.
6186 * sparc64-fbsd-tdep.c: Update.
6187 * sparc64-netbsd-tdep.c: Update.
6188 * sparc64-obsd-tdep.c: Update.
6189 * sparc64-sol2-tdep.c: Update.
6190 * tilegx-tdep.c: Update.
6191 * v850-tdep.c: Update.
6192 * vax-tdep.c: Update.
6194 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6195 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6197 * trad-frame.c: Update.
6198 Remove TF_REG_* enum.
6199 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6200 a trivially-constructible struct.
6201 (trad_frame_reset_saved_regs): Adjust to use member function.
6202 (trad_frame_value_p): Likewise.
6203 (trad_frame_addr_p): Likewise.
6204 (trad_frame_realreg_p): Likewise.
6205 (trad_frame_value_bytes_p): Likewise.
6206 (trad_frame_set_value): Likewise.
6207 (trad_frame_set_realreg): Likewise.
6208 (trad_frame_set_addr): Likewise.
6209 (trad_frame_set_unknown): Likewise.
6210 (trad_frame_set_value_bytes): Likewise.
6211 (trad_frame_get_prev_register): Likewise.
6212 * trad-frame.h: Update.
6213 (trad_frame_saved_reg_kind): New enum.
6214 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6215 <m_kind, m_reg>: New member fields.
6216 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6217 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6218 <is_addr, is_unknown, is_value_bytes>: New member functions.
6220 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6222 * target-float.c: Fix typos.
6224 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6226 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6228 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6230 * gdbarch.sh: Update copyright year range.
6232 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6234 Update copyright year range in copyright header of all GDB files.
6236 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6238 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6239 to the list of directories to update.
6241 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6243 * top.c (print_gdb_version): Update copyright year.
6245 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6247 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6249 For older changes see ChangeLog-2020.
6255 version-control: never