1 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
3 * py-project.toml: New.
4 * gdb-gdb.py.in: Re-format.
6 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
8 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
10 * command.h (cmd_func_p): Remove.
11 * cli/cli-decode.c (cmd_func_p): Remove.
13 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
15 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
17 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
19 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
21 <alias_target>: ... this.
22 (add_alias_cmd): Rename old to target.
23 (add_info_alias): Rename old_name to target_name.
24 (add_com_alias): Likewise.
26 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
28 * Rename "prefixlist" parameters to "subcommands" throughout.
29 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
30 <subcommands>: ... this.
31 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
32 (lookup_cmd_with_subcommands): ... this.
34 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
36 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
38 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
40 * cli/cli-decode.h (prefixname): Make const, move implementation
42 * cli/cli-decode.c (cmd_list_element::prefixname): New.
44 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
46 * ctfread.c (new_symbol): Set function address.
47 (read_func_kind_type): Remove incorrect type name setting.
48 Don't copy name returned from ctf_type_ame_raw throughout file.
50 2021-05-14 Tom Tromey <tom@tromey.com>
52 * rust-lang.c (rust_language::val_print_struct)
53 (rust_language::print_enum): Use common_val_print, not
56 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
58 * python/py-inferior.c (infpy_get_connection_num): New function.
59 (inferior_object_getset): Add a new element for 'connection_num'.
60 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
62 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
64 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
65 argument type, update and re-wrap, header comment.
66 (remote_target::commit_resumed): Convert any_process_wildcard and
67 may_global_wildcard_vcont from int to bool.
69 2021-05-14 Kent Cheung <kent.cheung@arm.com>
71 * cp-valprint.c (cp_print_value): Replaced duplicate code.
72 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
73 just before printing child values.
74 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
75 printing string representation.
76 * python/py-prettyprint.c (print_children): Check max_depth just
77 before printing child values.
78 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
79 printing string representation.
81 2021-05-14 Mike Frysinger <vapier@gentoo.org>
83 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
84 sim/callback.h & sim/sim.h.
86 2021-05-13 Mike Frysinger <vapier@gentoo.org>
88 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
91 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
93 * inf-child.h (inf_child_target) <follow_exec>: New.
94 * inf-child.c (inf_child_target::follow_exec): New.
96 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
98 * target.h (struct target_ops) <follow_exec>: Add ptid_t
100 (target_follow_exec): Likewise.
101 * target.c (target_follow_exec): Add ptid_t parameter.
102 * infrun.c (follow_exec): Adjust call to target_follow_exec,
103 don't push target nor create thread.
104 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
105 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
106 (thread_db_target::follow_exec): New.
107 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
108 (remote_target::follow_exec): Call
109 process_stratum_target::follow_exec.
110 * target-delegates.c: Re-generate.
112 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
114 * infrun.c (follow_exec): Call target_follow_fork when
115 follow-exec-mode is same.
116 * target.h (target_follow_fork): Improve doc.
118 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
120 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
122 * cli/cli-setshow.c (do_show_command): Adjust.
124 2021-05-13 Luis Machado <luis.machado@linaro.org>
126 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
127 include the last address in the range.
129 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
131 * python/python-internal.h (gdbpy_parse_command_name): Return
132 gdb::unique_xmalloc_ptr.
133 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
134 (cmdpy_init): Adjust.
135 * python/py-param.c (parmpy_init): Adjust.
136 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
139 2021-05-12 George Barrett <bob@bob131.so>
141 * NEWS (Guile API): Note the addition of the new procedure.
142 * guile/scm-value.c (gdbscm_value_const_value): Add
143 implementation of value-const-value procedure.
144 (value_functions): Add value-const-value procedure.
146 2021-05-12 George Barrett <bob@bob131.so>
148 * NEWS (Guile API): Note the addition of new procedures.
149 * guile/scm-value.c (gdbscm_reference_value): Add helper function
150 for reference value creation.
151 (gdbscm_value_reference_value): Add implementation of
152 value-reference-value procedure.
153 (gdbscm_value_rvalue_reference_value): Add implementation of
154 value-rvalue-reference-value procedure.
155 (value_functions): Add value-reference-value procedure. Add
156 value-rvalue-reference-value procedure.
158 2021-05-12 George Barrett <bob@bob131.so>
160 * guile/scm-type.c (type_integer_constants): Add binding for
161 TYPE_CODE_RVALUE_REF.
162 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
163 dereferencing of rvalue references.
164 * NEWS (Guile API): Note improvements in rvalue reference support.
166 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
168 * btrace.c (handle_pt_insn_events): Ignore status update enable
171 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
173 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
176 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
178 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
180 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
183 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
186 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
188 * nat/linux-waitpid.c (status_to_str): Show signal name.
190 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
192 * python/py-breakpoint.c (pybp_debug): New static global.
193 (show_pybp_debug): New function.
194 (pybp_debug_printf): Define.
195 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
196 (gdbpy_breakpoint_created): Add some debugging.
197 (gdbpy_breakpoint_deleted): Likewise.
198 (gdbpy_breakpoint_modified): Likewise.
199 (_initialize_py_breakpoint): New function.
201 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
203 * python/py-unwind.c (pyuw_debug): Convert to bool.
204 (show_pyuw_debug): New function.
205 (pyuw_debug_printf): Define.
206 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
207 (pyuw_this_id): Convert to new debug print macros.
208 (pyuw_prev_register): Likewise.
209 (pyuw_sniffer): Likewise.
210 (pyuw_dealloc_cache): Likewise.
211 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
212 show function when registering.
214 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
216 * dummy-frame.c (fprint_dummy_frames): Convert use of
217 fprint_frame_id to use frame_id::to_string.
218 * frame.c (fprint_field): Delete.
219 (fprint_frame_id): Moved to...
220 (frame_id::to_string): ...this, rewritten to return a string.
221 (fprint_frame): Convert use of fprint_frame_id to use
223 (compute_frame_id): Likewise.
224 (frame_id_p): Likewise.
225 (frame_id_eq): Likewise.
226 (frame_id_inner): Likewise.
227 * frame.h (struct frame_id) <to_string>: New member function.
228 (fprint_frame_id): Delete declaration.
229 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
230 fprint_frame_id to use frame_id::to_string.
231 * python/py-frame.c (frame_object_to_frame_info): Likewise.
232 * python/py-unwind.c (unwind_infopy_str): Likewise.
233 (pyuw_this_id): Likewise.
235 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
237 * nat/linux-waitpid.c (status_to_str): Return std::string.
238 * nat/linux-waitpid.h (status_to_str): Likewise.
239 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
240 (linux_nat_target::attach): Adjust.
241 (linux_handle_extended_wait): Adjust.
243 (stop_wait_callback): Adjust.
244 (linux_nat_filter_event): Adjust.
245 (linux_nat_wait_1): Adjust.
246 * nat/linux-waitpid.c (status_to_str): Adjust.
247 * nat/linux-waitpid.h (status_to_str): Adjust.
249 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
251 * infrun.h (infrun_debug_printf): Add missing space.
253 2021-05-08 Pedro Alves <pedro@palves.net>
255 * linux-nat.c (linux_nat_target::supports_disable_randomization):
256 Remove references to HAVE_PERSONALITY.
257 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
258 (maybe_disable_address_space_randomization)
259 (~maybe_disable_address_space_randomizatio): Remove references to
261 * config.in, configure: Regenerate.
263 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
265 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
267 (source_script_with_search): Perform tilde expansion.
269 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
271 * target-descriptions.c (struct target_desc_info) <filename>:
273 (copy_inferior_target_desc_info): Adjust.
274 (target_desc_info_free): Adjust.
275 (target_find_description): Adjust.
276 (set_tdesc_filename_cmd): Adjust.
277 (show_tdesc_filename_cmd): Adjust.
278 (unset_tdesc_filename_cmd): Adjust.
279 (maint_print_c_tdesc_cmd): Adjust.
281 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
283 * target-descriptions.c (struct target_desc_info): Initialize
285 (get_tdesc_info): Use new.
286 (target_desc_info_free): Use delete.
288 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
290 * target-descriptions.c (struct target_desc_info) <fetched>:
292 (target_find_description): Adjust.
293 (target_clear_description): Adjust.
295 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
297 * target-descriptions.c (struct target_desc_info) <tdesc>:
299 (target_desc_fetched): Remove.
300 (current_target_desc): Remove.
301 (target_description_filename): Remove.
302 (target_find_description): Adjust.
303 (target_clear_description): Adjust.
304 (target_current_description): Adjust.
305 (set_tdesc_filename_cmd): Adjust.
306 (show_tdesc_filename_cmd): Adjust.
307 (unset_tdesc_filename_cmd): Adjust.
308 (maint_print_c_tdesc_cmd): Adjust.
309 (maint_print_xml_tdesc_cmd): Adjust.
311 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
313 * infcmd.c (notice_new_inferior): Change parameter type.
314 * inferior.h (notice_new_inferior): Change parameter type.
315 * remote.c (remote_notice_new_inferior): Change parameter type to
316 bool. Also update type of local variable to bool.
317 (remote_target::update_thread_list): Change type of local variable
319 (remote_target::process_stop_reply): Pass bool instead of int to
320 remote_notice_new_inferior.
322 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
324 * target.c (target_stack::unpush): Call target_ops::find_beneath
325 to get the target beneath `t`.
327 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
329 * target.c (target_close): Check in all inferiors that the
330 target is not pushed.
332 2021-05-07 Aaron Merey <amerey@redhat.com>
334 * debuginfod-support.c (debuginfod_init): Remove.
335 (get_debuginfod_client): New function.
337 2021-05-07 Tom Tromey <tom@tromey.com>
339 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
340 * utils.c (streq_hash): Remove.
341 * utils.h (streq_hash): Don't declare.
342 * completer.c (completion_tracker::discard_completions): Update
344 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
346 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
348 * Re-format all Python files using black.
350 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
352 * guile/guile-internal.h (gdbscm_safe_source_script): Change
353 function return type.
354 * guile/guile.c (gdbscm_source_script): Update to handle change in
355 gdbscm_safe_source_script.
356 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
357 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
360 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
362 * inferior.h (class inferior) <args>: Change type to
364 * inferior.c (inferior::~inferior): Don't free args.
365 * infcmd.c (get_inferior_args): Adjust.
366 (set_inferior_args): Adjust.
368 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
370 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
371 breakpoint locations when the breakpoint actually has a location.
373 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
375 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
376 * mi/mi-cmds.c: Change the binding of "-break-condition" to
377 mi_cmd_break_condition.
378 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
379 * breakpoint.h (set_breakpoint_condition): Declare a new
381 * breakpoint.c (set_breakpoint_condition): New overloaded function
382 extracted out from ...
383 (condition_command): ... this.
384 * NEWS: Mention the change.
386 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
388 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
389 '--force-condition' flag to force the condition in the
390 '-break-insert' and '-dprintf-insert' commands.
391 * NEWS: Mention the change.
393 2021-05-04 Tom de Vries <tdevries@suse.de>
396 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
399 2021-04-30 Tom Tromey <tom@tromey.com>
401 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
402 (add_signatured_type_cu_to_table): Remove.
403 (create_debug_type_hash_table): Assume dwo_file is non-null.
404 (create_debug_types_hash_table): Update comment.
405 (create_all_type_units): Remove.
406 (sort_tu_by_abbrev_offset): Update comment.
407 (build_type_psymtabs): Rename from build_type_psymtabs_1.
408 (build_type_psymtabs): Remove.
409 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
411 (read_comp_units_from_section): Add types_htab, section_kind
413 (create_all_comp_units): Read type units.
415 2021-04-30 Tom Tromey <tom@tromey.com>
417 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
418 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
419 <get_cu>: Now inline.
420 <all_type_units>: Remove.
421 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
422 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
423 (dwarf2_per_bfd::get_tu): Remove.
424 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
425 (create_signatured_type_table_from_index)
426 (create_signatured_type_table_from_debug_names)
427 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
428 (dwarf2_base_index_functions::expand_all_symtabs)
429 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
430 (dwarf2_base_index_functions::map_symbol_filenames)
431 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
432 (add_signatured_type_cu_to_table, create_all_type_units)
433 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
434 (create_all_comp_units): Update.
435 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
436 (write_debug_names): Update.
438 2021-04-30 Tom Tromey <tom@tromey.com>
440 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
441 allocate_signatured_type>: Change return type.
442 <all_comp_units, all_type_units>: Hold unique pointers.
443 (struct dwarf2_per_cu_data): Add constructor and initializers.
444 (struct signatured_type): Derive from dwarf2_per_cu_data.
445 * dwarf2/read.c (type_unit_group): Derive from
447 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
448 (dwarf2_per_bfd::get_tu)
449 (dwarf2_per_bfd::allocate_signatured_type)
450 (dwarf2_per_bfd::allocate_signatured_type)
451 (create_cu_from_index_list, create_cus_from_index_list)
452 (create_signatured_type_table_from_index)
453 (create_signatured_type_table_from_debug_names)
454 (create_addrmap_from_aranges)
455 (dwarf2_base_index_functions::find_last_source_symtab)
456 (dw_expand_symtabs_matching_file_matcher)
457 (dwarf2_gdb_index::expand_symtabs_matching)
458 (dwarf2_base_index_functions::map_symbol_filenames)
459 (create_cus_from_debug_names_list)
460 (dw2_debug_names_iterator::next)
461 (dwarf2_debug_names_index::expand_symtabs_matching)
462 (create_debug_type_hash_table, add_type_unit)
463 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
465 (allocate_type_unit_groups_table): Use delete.
466 (create_type_unit_group): Change return type. Use new.
467 (get_type_unit_group, build_type_psymtabs_1)
468 (build_type_psymtab_dependencies)
469 (process_skeletonless_type_unit, set_partial_user)
470 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
471 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
472 (read_signatured_type): Update.
473 (dwarf2_find_containing_comp_unit): Change type of
476 (dwarf2_per_bfd::allocate_per_cu)
477 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
479 (add_signatured_type_cu_to_table): Update.
480 * dwarf2/index-write.c (write_one_signatured_type)
481 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
482 (write_debug_names): Update.
484 2021-04-30 Tom Tromey <tromey@adacore.com>
486 * nat/windows-nat.h (get_image_name): Don't declare.
487 * nat/windows-nat.c (get_image_name): Now static.
489 2021-04-30 Tom Tromey <tromey@adacore.com>
491 * windows-nat.c (windows_nat::handle_load_dll): Update.
492 (windows_nat_target::get_windows_debug_event): Call
494 (windows_add_all_dlls, windows_add_dll): Move to
496 * nat/windows-nat.h (handle_load_dll): Change parameters.
497 (dll_loaded_event, windows_add_all_dlls): Declare.
498 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
500 (dll_loaded_event): New function.
502 2021-04-30 Tom Tromey <tromey@adacore.com>
504 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
505 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
507 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
508 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
510 2021-04-30 Tom Tromey <tromey@adacore.com>
512 * windows-nat.c: Move code to nat/windows-nat.[ch].
513 (_initialize_windows_nat): Call initialize_loadable.
514 * nat/windows-nat.h (AdjustTokenPrivileges)
515 (DebugActiveProcessStop, DebugBreakProcess)
516 (DebugSetProcessKillOnExit, EnumProcessModules)
517 (EnumProcessModulesEx, GetModuleInformation)
518 (GetModuleFileNameExA, GetModuleFileNameExW)
519 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
520 (GetCurrentConsoleFont, Wow64SuspendThread)
521 (Wow64GetThreadContext, Wow64SetThreadContext)
522 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
523 (AdjustTokenPrivileges_ftype)
524 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
525 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
526 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
527 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
528 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
529 (GetConsoleFontSize_ftype)
530 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
531 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
532 (Wow64GetThreadSelectorEntry_ftype): Likewise.
533 (initialize_loadable): Declare.
534 * nat/windows-nat.c (AdjustTokenPrivileges)
535 (DebugActiveProcessStop, DebugBreakProcess)
536 (DebugSetProcessKillOnExit, EnumProcessModules)
537 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
538 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
539 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
540 (Wow64GetThreadContext, Wow64SetThreadContext)
541 (Wow64GetThreadSelectorEntry): Define.
542 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
544 (initialize_loadable): Likewise, and rename.
546 2021-04-30 Tom Tromey <tromey@adacore.com>
548 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
549 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
550 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
551 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
552 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
553 (bad): New template functions.
554 (_initialize_loadable): Update.
556 2021-04-30 Tom Tromey <tromey@adacore.com>
558 * ada-lang.c (ada_index_type): Use ada_check_typedef.
560 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
562 * auto-load.h: Split namespace declaration.
564 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
566 * infrun.c (save_waitstatus): Move variables to inner scope.
568 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
570 * NEWS: Fix typo and stray full stop.
572 2021-04-28 Tom Tromey <tromey@adacore.com>
574 * ada-exp.y (primary): Use new type for null pointer.
575 * ada-lang.c (ada_type_match): Remove "may_deref"
576 parameter. Handle null pointer.
577 (ada_args_match): Update.
578 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
581 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
583 * NEWS: Mention new commands.
584 * python/python.c (python_ignore_environment): New static global.
585 (show_python_ignore_environment): New function.
586 (set_python_ignore_environment): New function.
587 (python_dont_write_bytecode): New static global.
588 (show_python_dont_write_bytecode): New function.
589 (set_python_dont_write_bytecode): New function.
590 (_initialize_python): Register new commands.
592 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
594 * extension-priv.h (struct extension_language_ops): Rename
595 'finish_initialization' to 'initialize'.
596 * extension.c (finish_ext_lang_initialization): Renamed to...
597 (ext_lang_initialization): ...this, update comment, and updated
598 the calls to reflect the change in struct extension_language_ops.
599 * extension.h (finish_ext_lang_initialization): Renamed to...
600 (ext_lang_initialization): ...this.
601 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
602 (gdbscm_initialize): ...this, update comment at definition.
603 (guile_extension_ops): Update.
604 * main.c (captured_main_1): Update call to
605 finish_ext_lang_initialization.
606 * python/python.c (gdbpy_finish_initialization): Rename to...
607 (gdbpy_initialize): ...this, update comment at definition, and
608 update call to do_finish_initialization.
609 (python_extension_ops): Update.
610 (do_finish_initialization): Rename to...
611 (do_initialize): ...this, and update comment.
613 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
615 * main.c (captured_main_1): Add a call to
616 finish_ext_lang_initialization.
617 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
619 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
621 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
622 (gdbscm_finish_initialization): Add code moved from
624 (_initialize_guile): Move code to gdbscm_finish_initialization.
625 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
626 _initialize_scm_arch.
627 (_initialize_scm_arch): New function.
628 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
629 into _initialize_scm_block.
630 (_initialize_scm_block): New function.
631 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
632 into _initialize_scm_frame.
633 (_initialize_scm_frame): New function.
634 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
635 into _initialize_scm_objfile.
636 (_initialize_scm_objfile): New function.
637 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
638 code into _initialize_scm_progspace.
639 (_initialize_scm_progspace): New function.
640 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
641 into _initialize_scm_symbol.
642 (_initialize_scm_symbol): New function.
643 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
644 into _initialize_scm_symtab.
645 (_initialize_scm_symtab): New function.
646 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
647 _initialize_scm_type.
648 (_initialize_scm_type): New function.
650 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
652 * python/py-arch.c (_initialize_py_arch): New function.
653 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
654 * python/py-block.c (_initialize_py_block): New function.
655 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
656 * python/py-inferior.c (_initialize_py_inferior): New function.
657 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
658 * python/py-objfile.c (_initialize_py_objfile): New function.
659 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
660 * python/py-progspace.c (_initialize_py_progspace): New function.
661 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
662 * python/py-registers.c (_initialize_py_registers): New function.
663 (gdbpy_initialize_registers): Move code to
664 _initialize_py_registers.
665 * python/py-symbol.c (_initialize_py_symbol): New function.
666 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
667 * python/py-symtab.c (_initialize_py_symtab): New function.
668 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
669 * python/py-type.c (_initialize_py_type): New function.
670 (gdbpy_initialize_types): Move code to _initialize_py_type.
671 * python/py-unwind.c (_initialize_py_unwind): New function.
672 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
673 * python/python.c (_initialize_python): Move call to
674 do_start_initialization to gdbpy_finish_initialization.
675 (gdbpy_finish_initialization): Add call to
676 do_start_initialization.
678 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
680 * extension.c (struct scoped_default_signal): New struct.
681 (scoped_default_sigint): New typedef.
682 (finish_ext_lang_initialization): Make use of
683 scoped_default_sigint.
685 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
687 * main.c (captured_main_1): Don't pass argument to gdb_init.
688 * top.c (gdb_init): Remove unused argument, and add header
690 * top.h (gdb_init): Remove argument.
692 2021-04-27 Luis Machado <luis.machado@linaro.org>
694 * psymtab.c (psymbol_functions::dump): Output newline.
696 * symmisc.c (dump_objfile): Likewise.
698 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
699 Simon Marchi <simon.marchi@polymtl.ca>
701 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
702 when attaching the 'auto_load_new_objfile' observer, so
703 other observers can specify it as a dependency.
704 * gdb/auto-load.h (struct token): Declare
705 'auto_load_new_objfile_observer_token' as token to be used
706 for the 'auto_load_new_objfile' observer.
707 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
708 'python_new_objfile' observer depend on 'auto_load_new_objfile'
709 observer, so it gets notified after the latter.
711 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
712 Simon Marchi <simon.marchi@polymtl.ca>
714 * unittests/observable-selftests.c (dependency_test_counters):
716 (observer_token0, observer_token1, observer_token2,
717 observer_token3, observer_token4, observer_token5): New.
718 (struct dependency_observer_data): New struct.
719 (observer_dependency_test_callback): New function.
720 (test_observers): New.
721 (run_dependency_test): New function.
722 (test_dependency): New.
723 (_initialize_observer_selftest): Register dependency test.
725 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
728 * cli/cli-dump.c (dump_binary_file): Check result of
731 2021-04-25 Sergei Trofimovich <siarheit@google.com>
733 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
734 by passing `process_stratum_target*` parameter.
736 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
739 * typeprint.h (struct type_print_options): Add print_in_hex
741 (struct print_offset_data): Add print_in_hex flag, add a
742 constructor accepting a type_print_options* argument.
743 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
744 default value for print_in_hex.
745 (print_offset_data::indentation): Allow more horizontal space.
746 (print_offset_data::print_offset_data): Add ctor.
747 (print_offset_data::maybe_print_hole, print_offset_data::update):
748 Handle the print_in_hex flag.
749 (whatis_exp): Handle 'x' and 'd' flags.
750 (print_offsets_and_sizes_in_hex): Declare.
751 (set_print_offsets_and_sizes_in_hex): Create.
752 (show_print_offsets_and_sizes_in_hex): Create.
753 (_initialize_typeprint): Update help message for the ptype
754 command, register the 'set print type hex' and 'show print type
756 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
757 (c_type_print_base): Construct the print_offset_data
758 object using the type_print_optons parameter.
759 * rust-lang.c (rust_language::print_type): Construct the
760 print_offset_data object using the type_print_optons parameter.
761 * NEWS: Mention the new flags of the ptype command.
763 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
765 * typeprint.h (struct type_print_options): Move before
768 2021-04-25 Joel Brobecker <brobecker@adacore.com>
772 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
774 * observable.c (observer_debug): Change to bool.
776 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
778 * dwarf2/read.c: Add 'unordered_set' include.
779 (dwarf2_base_index_functions::map_symbol_filenames): Replace
780 'visited' hash table with 'qfn_cache' unordered_set. Remove use
781 of per_Bfd->filenames_cache cache, and use function local
782 filenames_cache instead. Reindent.
783 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
785 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
787 * breakpoint.c (iterate_over_bp_locations): Change callback to
788 function view, remove data parameter.
789 * breakpoint.h (iterate_over_bp_locations): Likewise.
790 * record-full.c (record_full_sync_record_breakpoints): Remove
793 2021-04-22 Tom Tromey <tom@tromey.com>
795 * c-typeprint.c (c_type_print_base_struct_union): Use
796 print_spaces_filtered_with_print_options.
798 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
801 * python/py-type.c (typy_range): Check that bounds are constant
802 before accessing them as such.
803 * guile/scm-type.c (gdbscm_type_range): Likewise.
805 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
807 * Makefile.in (COMMON_SFILES): Remove continuations.c.
808 * inferior.c (inferior::add_continuation): New method, adapted
809 from 'add_inferior_continuation'.
810 (inferior::do_all_continuations): New method, adapted from
811 'do_all_inferior_continuations'.
812 (inferior::~inferior): Clear the list of continuations directly.
813 * inferior.h (class inferior) <continuations>: Rename into...
814 <m_continuations>: ...this and make private.
815 * continuations.c: Remove.
816 * continuations.h: Remove.
817 * event-top.c: Don't include "continuations.h".
819 Update the users below.
820 * inf-loop.c (inferior_event_handler)
821 * infcmd.c (attach_command)
822 (notice_new_inferior): Update.
824 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
826 * inferior.h (class inferior) <continuations>: Change the type
827 to be an std::list of std::function's.
828 Update the references and uses below.
829 * continuations.c (struct continuation): Delete.
830 (make_continuation): Delete.
831 (do_my_continuations_1): Delete.
832 (do_my_continuations): Delete.
833 (discard_my_continuations_1): Delete.
834 (discard_my_continuations): Delete.
835 (add_inferior_continuation): Update.
836 (do_all_inferior_continuations): Update.
837 (discard_all_inferior_continuations): Update.
838 * continuations.h (add_inferior_continuation): Update to take
839 an std::function as the parameter.
840 * infcmd.c (struct attach_command_continuation_args): Delete.
841 (attach_command_continuation): Delete.
842 (attach_command_continuation_free_args): Delete.
843 (attach_command): Update.
844 (notice_new_inferior): Update.
846 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
848 * continuations.h: Update the general comment.
849 * inferior.h (class inferior) <continuations>: Update the comment.
850 * interps.c: Do not include "continuations.h".
852 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
854 * continuations.h (do_all_inferior_continuations): Remove the 'err'
855 parameter. Update the references below.
856 * continuations.c (do_my_continuations_1)
857 (do_my_continuations)
858 (do_all_inferior_continuations): Update.
859 * inf-loop.c (inferior_event_handler): Update.
860 * infcmd.c (attach_command_continuation): Update.
862 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
864 * infcmd.c (attach_post_wait): Update the function comment.
866 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
868 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
869 Update the references below.
870 (struct attach_command_continuation_args)
871 (attach_command_continuation)
872 (attach_command_continuation_free_args)
874 (notice_new_inferior): Update to remove the reference to 'args'.
876 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
877 Tom de Vries <tdevries@suse.de>
880 * remote.c (remote_target_is_non_stop_p): New function.
881 * remote.h (remote_target_is_non_stop_p): Declare.
882 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
883 to check non-stopness using notif_state->remote rather current target.
885 2021-04-22 Tom Tromey <tom@tromey.com>
887 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
888 (struct typed_val_int) <val>: Now ULONGEST.
889 (rust_parser::parse_array_type): Remove negative check.
890 (rust_lex_int_test): Change 'value' to ULONGEST.
892 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
894 * arch-utils.c (default_addressable_memory_unit_size): Return a
895 value based on bfd's bits per byte.
897 2021-04-21 Tom Tromey <tom@tromey.com>
899 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
901 (struct dwarf2_per_cu_data): Rearrange.
902 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
904 (struct comp_unit_head): Rearrange.
905 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
907 2021-04-21 Tom de Vries <tdevries@suse.de>
910 * configure.ac: Remove --without-included-regex/--with-included-regex.
911 * config.in: Regenerate.
912 * configure: Regenerate.
913 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
915 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
917 * breakpoint.h (create_breakpoint): Add a new parameter,
919 * breakpoint.c (create_breakpoint): Use the 'force_condition'
920 argument when 'parse_extra' is false to check if the condition
921 is invalid at all of the breakpoint locations.
922 Update the users below.
928 (create_tracepoint_from_upload): Update.
929 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
930 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
931 * python/py-breakpoint.c (bppy_init): Update.
932 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
934 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
936 * breakpoint.c (print_one_breakpoint_location): Display "N" for
937 disabled-by-condition locations on MI-like output.
938 (breakpoint_1): Do not display the disabled-by-condition footnote
939 if the output is MI-like.
941 2021-04-21 Frederic Cambus <fred@statdns.com>
943 * syscalls/update-netbsd.sh: Fix script name display in usage, and
944 update year range in generated copyright notices.
946 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
948 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
951 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
953 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
955 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
957 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
958 (producer_is_icc): Replace use of std::regex with gdb's
961 2021-04-17 Tom Tromey <tom@tromey.com>
964 * dwarf2/read.c (class offset_view): New.
965 (struct symbol_table_slot): Remove.
966 (struct mapped_index) <symbol_table, constant_pool>: Change type.
967 <symbol_name_index, symbol_vec_index>: New methods.
968 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
970 (read_gdb_index_from_buffer): Update.
971 (struct dw2_symtab_iterator) <vec>: Change type.
972 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
973 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
974 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
975 <append_array, append_offset>: New methods.
976 (write_hash_table, add_address_entry, write_gdbindex_1)
977 (write_debug_names): Update.
978 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
980 2021-04-17 Tom Tromey <tom@tromey.com>
982 * dwarf2/index-write.c (write_psymtabs_to_index): Check
985 2021-04-17 Tom Tromey <tom@tromey.com>
987 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
988 from map_matching_symbols. Change parameters.
989 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
990 Rename from map_matching_symbols. Change parameters.
991 * dwarf2/read.c (struct dwarf2_gdb_index)
992 <expand_matching_symbols>: Rename from map_matching_symbols.
994 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
995 Rename from map_matching_symbols. Change parameters.
996 (dwarf2_gdb_index::expand_matching_symbols): Rename from
997 dw2_map_matching_symbols. Change parameters.
998 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1000 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1001 map_matching_symbols. Change parameters.
1002 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1003 from map_matching_symbols. Change parameters.
1004 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1005 map_matching_symbols. Change parameters.
1006 * ada-lang.c (map_matching_symbols): New function.
1007 (add_nonlocal_symbols): Update.
1009 2021-04-17 Tom Tromey <tom@tromey.com>
1011 * quick-symbol.h (struct quick_symbol_functions)
1012 <expand_symtabs_with_fullname>: Remove.
1013 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1015 * psympriv.h (struct psymbol_functions)
1016 <expand_symtabs_with_fullname>: Remove.
1017 * dwarf2/read.c (struct dwarf2_base_index_functions)
1018 <expand_symtabs_with_fullname>: Remove.
1019 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1021 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1023 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1026 2021-04-17 Tom Tromey <tom@tromey.com>
1028 * symfile-debug.c (objfile::expand_symtabs_for_function):
1030 * quick-symbol.h (struct quick_symbol_functions)
1031 <expand_symtabs_for_function>: Remove.
1032 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1034 * psympriv.h (struct psymbol_functions)
1035 <expand_symtabs_for_function>: Remove.
1036 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1038 * dwarf2/read.c (struct dwarf2_gdb_index)
1039 <expand_symtabs_for_function>: Remove.
1040 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1042 (find_slot_in_mapped_hash): Remove.
1043 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1044 (dw2_symtab_iter_init): Remove one overload.
1045 (dwarf2_gdb_index::expand_symtabs_for_function)
1046 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1048 2021-04-17 Tom Tromey <tom@tromey.com>
1050 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1052 * quick-symbol.h (struct quick_symbol_functions)
1053 <map_symtabs_matching_filename>: Remove.
1054 * psymtab.c (partial_map_expand_apply)
1055 (psymbol_functions::map_symtabs_matching_filename): Remove.
1056 * psympriv.h (struct psymbol_functions)
1057 <map_symtabs_matching_filename>: Remove.
1058 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1060 * dwarf2/read.c (struct dwarf2_base_index_functions)
1061 <map_symtabs_matching_filename>: Remove.
1062 (dw2_map_expand_apply)
1063 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1066 2021-04-17 Tom Tromey <tom@tromey.com>
1068 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1069 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1071 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1072 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1073 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1074 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1076 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1077 (dwarf2_gdb_index::lookup_symbol)
1078 (dwarf2_debug_names_index::lookup_symbol): Remove.
1080 2021-04-17 Tom Tromey <tom@tromey.com>
1082 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1083 * symmisc.c (maintenance_expand_symtabs): Update.
1084 * symfile.c (expand_symtabs_matching): Update.
1085 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1087 * quick-symbol.h (struct quick_symbol_functions)
1088 <expand_symtabs_matching>: Add 'domain' parameter.
1089 * psymtab.c (recursively_search_psymtabs)
1090 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1092 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1093 Add 'domain' parameter.
1094 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1096 * linespec.c (iterate_over_all_matching_symtabs): Update.
1097 * dwarf2/read.c (struct dwarf2_gdb_index)
1098 <expand_symtabs_matching>: Add 'domain' parameter.
1099 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1101 (dw2_expand_symtabs_matching)
1102 (dwarf2_gdb_index::expand_symtabs_matching)
1103 (dw2_debug_names_iterator)
1104 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1107 2021-04-17 Tom Tromey <tom@tromey.com>
1109 * symtab.c (global_symbol_searcher::expand_symtabs)
1110 (default_collect_symbol_completion_matches_break_on): Update.
1111 * symmisc.c (maintenance_expand_symtabs): Update.
1112 * symfile.h (expand_symtabs_matching): Add search_flags
1114 * symfile.c (expand_symtabs_matching): Add search_flags
1116 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1117 search_flags parameter.
1118 * quick-symbol.h (struct quick_symbol_functions)
1119 <expand_symtabs_matching>: Add search_flags parameter.
1120 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1121 * psymtab.c (recursively_search_psymtabs)
1122 (psymbol_functions::expand_symtabs_matching): Add search_flags
1124 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1125 Add search_flags parameter.
1126 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1127 search_flags parameter.
1128 * linespec.c (iterate_over_all_matching_symtabs): Update.
1129 * dwarf2/read.c (struct dwarf2_gdb_index)
1130 <expand_symtabs_matching>: Add search_flags parameter.
1131 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1132 search_flags parameter.
1133 (dw2_map_matching_symbols): Update.
1134 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1135 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1137 (dw2_debug_names_iterator): Change block_index to search flags.
1138 <m_block_index>: Likewise.
1139 (dw2_debug_names_iterator::next)
1140 (dwarf2_debug_names_index::lookup_symbol)
1141 (dwarf2_debug_names_index::expand_symtabs_for_function)
1142 (dwarf2_debug_names_index::map_matching_symbols)
1143 (dwarf2_debug_names_index::map_matching_symbols): Update.
1144 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1145 search_flags parameter.
1146 * ada-lang.c (ada_add_global_exceptions)
1147 (collect_symbol_completion_matches): Update.
1149 2021-04-17 Tom Tromey <tom@tromey.com>
1151 * symtab.c (default_collect_symbol_completion_matches_break_on):
1153 * symfile.h (expand_symtabs_matching): Return bool.
1154 * symfile.c (expand_symtabs_matching): Return bool.
1155 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1157 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1158 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1160 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1162 * psympriv.h (struct psymbol_functions)
1163 <expand_symtabs_matching>: Return bool.
1164 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1166 * dwarf2/read.c (struct dwarf2_gdb_index)
1167 <expand_symtabs_matching>: Return bool.
1168 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1170 (dw2_expand_symtabs_matching_symbol): Return bool.
1171 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1172 (dw2_expand_symtabs_matching)
1173 (dwarf2_gdb_index::expand_symtabs_matching)
1174 (dwarf2_debug_names_index::expand_symtabs_matching)
1175 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1177 2021-04-17 Tom Tromey <tom@tromey.com>
1179 * quick-symbol.h (enum block_search_flag_values): New.
1180 (block_search_flags): New enum flags type.
1182 2021-04-16 Tom Tromey <tom@tromey.com>
1184 * rust-parse.c: New file.
1185 * rust-exp.y: Remove.
1186 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1187 (SFILES): Remove rust-exp.y.
1188 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1190 2021-04-16 Luis Machado <luis.machado@linaro.org>
1192 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1194 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1196 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1197 use throughout file.
1199 2021-04-15 Tom Tromey <tromey@adacore.com>
1201 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1204 2021-04-15 Tom Tromey <tromey@adacore.com>
1206 * printcmd.c (print_variable_and_value): Use
1207 common_val_print_checked.
1209 2021-04-15 Tom Tromey <tromey@adacore.com>
1211 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1212 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1214 * p-exp.y (variable): Update.
1215 * m2-exp.y (variable): Update.
1216 * go-exp.y (variable): Update.
1217 * expprint.c (dump_for_expression): New overload.
1218 * expop.h (check_objfile): New overload.
1219 (check_constant): New overload.
1220 (class var_value_operation): Use block_symbol.
1221 <get_symbol>: Rewrite.
1222 * eval.c (var_value_operation::evaluate)
1223 (var_value_operation::evaluate_funcall)
1224 (var_value_operation::evaluate_for_address)
1225 (var_value_operation::evaluate_for_address)
1226 (var_value_operation::evaluate_with_coercion)
1227 (var_value_operation::evaluate_for_sizeof)
1228 (var_value_operation::evaluate_for_cast): Update.
1229 * d-exp.y (PrimaryExpression): Update.
1230 * c-exp.y (variable): Update.
1231 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1232 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1233 (ada_var_value_operation::evaluate)
1234 (ada_var_value_operation::resolve)
1235 (ada_funcall_operation::resolve): Update.
1236 * ada-exp.y (write_var_from_sym, write_object_renaming)
1237 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1238 (maybe_overload): Update.
1239 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1241 2021-04-15 Tom Tromey <tom@tromey.com>
1242 Andrew Burgess <andrew.burgess@embecosm.com>
1245 * main.c (captured_main_1): Call check_quiet_mode.
1246 * top.c (startup_quiet): New global.
1247 (check_quiet_mode): New function.
1248 (show_startup_quiet): New function.
1249 (init_main): Register new command.
1250 * top.h (check_quiet_mode): Declare.
1252 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1255 * NEWS: Mention new early init files and command line options.
1256 * config.in: Regenerate.
1257 * configure: Regenerate.
1258 * configure.ac: Define GDBEARLYINIT.
1259 * main.c (get_earlyinit_files): New function.
1260 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1261 CMDARG_EARLYINIT_COMMAND.
1262 (captured_main_1): Add support for new command line flags, and for
1263 processing startup files.
1264 (print_gdb_help): Include startup files in the output.
1266 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1268 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1269 (relocate_file_path_maybe_in_datadir): ...this.
1270 (class gdb_initfile_finder): New class.
1271 (get_init_files): Now uses gdb_initfile_finder.
1272 (print_gdb_help): Print 'None found' when there are no init files.
1274 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1276 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1277 corresponding child of the abstract DIE when iterating the
1278 children of the concrete DIE.
1280 2021-04-13 Tom de Vries <tdevries@suse.de>
1282 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1285 2021-04-13 Luis Machado <luis.machado@linaro.org>
1287 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1290 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1292 * rs6000-tdep.c: Add support for single-stepping of
1293 prefixed instructions.
1295 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1298 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1299 handle the addpcis/lnia instruction.
1301 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1303 * MAINTAINERS (Write After Approval): Add myself.
1305 2021-4-12 Carl Love <cel@us.ibm.com>
1307 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1308 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1311 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1313 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1314 * nat/windows-nat.h: Likewise.
1316 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1318 * windows-nat.c (windows_nat::handle_load_dll): Call
1319 windows_add_dll if get_image_name failed to glean the name of the
1320 DLL by using the lpImageName pointer.
1321 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1322 (windows_add_dll): Now does what windows_add_all_dlls did before,
1323 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1324 specifies the address where the DLL was loaded into the inferior,
1325 and looks for the single DLL loaded at that address.
1327 2021-04-09 Luis Machado <luis.machado@linaro.org>
1329 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1331 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1333 * darwin-nat.c (darwin_nat_target::resume): Remove status
1336 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1338 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1339 prologue end for Intel compilers.
1340 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1341 * producer.c (producer_is_icc_ge_19): New function.
1342 * producer.h (producer_is_icc_ge_19): New declaration.
1344 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1346 * producer.c: (producer_is_icc): Update for new version scheme.
1347 (producer_parsing_tests): Update names and expected results.
1348 * producer.h: (producer_is_icc): Update comment accordingly.
1350 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1352 * target.h (struct target_ops) <follow_fork>: Return void.
1353 (target_follow_fork): Likewise.
1354 * target.c (default_follow_fork): Likewise.
1355 (target_follow_fork): Likewise.
1356 * infrun.c (follow_fork_inferior): Adjust.
1357 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1358 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1359 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1360 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1361 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1362 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1363 * remote.c (class remote_target) <follow_fork>: Likewise.
1364 (remote_target::follow_fork): Likewise.
1365 * target-delegates.c: Re-generate.
1367 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1369 * ctfread.c (fetch_tid_type): New function, use throughout file.
1370 (read_forward_type): New function.
1371 (read_type_record): Call read_forward_type.
1373 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1375 * f-exp.h (class fortran_structop_operation): New class.
1376 * f-exp.y (exp): Create fortran_structop_operation instead of the
1377 generic structop_operation.
1378 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1379 expression as EVAL_NORMAL if the result type was dynamic so we can
1380 extract the actual array bounds.
1381 (fortran_structop_operation::evaluate): New function.
1383 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1385 * eval.c (evaluate_subexp_standard): Remove
1386 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1389 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1391 * valops.c (value_cast): Call value_deeply_equal before performing
1394 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1396 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1399 2021-04-07 Caroline Tice <cmtice@google.com>
1401 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1402 the search paths used resolve relative location of .dwo file.
1404 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1406 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1408 (dwarf2_section_info::get_file_name): Add an assert.
1409 (dwarf2_section_info::read_string): Display a minimal, sane error
1410 when the dwarf2_section_info is not associated with a bfd section.
1412 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1414 * top.c (staged_gdb_datadir): Update comment.
1415 (set_gdb_datadir): Copy the value of gdb_datadir back into
1417 (init_main): Initialise staged_gdb_datadir.
1419 2021-04-06 Tom de Vries <tdevries@suse.de>
1421 PR breakpoints/25884
1422 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1425 2021-04-06 Tom de Vries <tdevries@suse.de>
1428 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1431 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1433 * avr-tdep.c (avr_frame_unwind_cache): Use
1434 trad_frame_saved_reg::is_addr.
1436 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1438 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1441 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1443 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1444 objfile parameter for objfile_per_bfd_storage, adjust callers.
1445 (struct standard_psymtab) <standard_psymtab>: Likewise.
1446 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1447 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1448 * ctfread.c (struct ctf_psymtab): Likewise.
1449 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1450 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1451 (dwarf2_create_include_psymtab): Likewise.
1452 * objfiles.h (struct objfile_per_bfd_storage)
1453 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1454 <get_bfd>: New method.
1456 * objfiles.c (get_objfile_bfd_data): Adjust.
1458 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1460 * psymtab.c (partial_symtab::partial_symtab): Change
1461 last_objfile_name to be an std::string.
1462 * symfile.c (allocate_symtab): Likewise.
1464 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1466 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1468 (struct objfile) <intern>: Use
1469 objfile::objfile_per_bfd_storage::intern.
1471 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1473 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1474 with type::is_flag_enum.
1476 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1478 * gdbtypes.h (struct type) <is_flag_enum,
1479 set_is_flag_enum>: New methods.
1480 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1481 write call sites to use type::set_is_flag_enum.
1483 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1485 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1486 with type::is_declared_class.
1488 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1490 * gdbtypes.h (struct type) <is_declared_class,
1491 set_is_declared_class>: New methods.
1492 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1493 write call sites to use type::set_is_declared_class.
1495 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1497 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1498 to avoid deprecation warnings.
1500 2021-04-01 Martin Liska <mliska@suse.cz>
1502 * cp-name-parser.y: Use startswith instead of strncmp.
1503 * m2-exp.y: Likewise.
1504 * macroexp.c (substitute_args): Likewise.
1505 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1506 * rust-exp.y: Likewise.
1508 2021-03-31 Tom Tromey <tom@tromey.com>
1510 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1511 with dw2_map_matching_symbols.
1512 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1513 dw2_expand_symtabs_matching.
1515 2021-03-31 Tom Tromey <tromey@adacore.com>
1517 * dwarf2/stringify.h: Fix typo.
1519 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1522 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1523 with objfiles using READNOW.
1525 2021-03-29 Tom Tromey <tromey@adacore.com>
1527 * top.c (check_frame_language_change): Update.
1528 * language.c (language_info): Remove parameter.
1529 * language.h (language_info): Remove parameter.
1531 2021-03-29 Luis Machado <luis.machado@linaro.org>
1533 * compile/compile.c (get_args): Don't add empty argv entries.
1535 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1538 * procfs.c (procfs_target::attach): Define inf.
1540 (procfs_target::create_inferior): Likewise.
1542 2021-03-28 Tom Tromey <tom@tromey.com>
1544 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1545 (elf_symfile_read): Simplify.
1546 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1547 (make_lazy_dwarf_reader): New function.
1548 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1549 (dwarf2_initialize_objfile): Return void. Remove index_kind
1550 parameter. Push on 'qf' list.
1551 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1552 type. Remove 'index_kind' parameter.
1553 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1555 2021-03-27 Tom Tromey <tom@tromey.com>
1557 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1559 2021-03-27 Tom Tromey <tom@tromey.com>
1561 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1563 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1565 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1568 2021-03-26 Tom Tromey <tom@tromey.com>
1570 * symtab.c (struct output_source_filename_data): Add 'output'
1571 method and operator().
1572 (output_source_filename_data::output): Rename from
1573 output_source_filename.
1574 (output_partial_symbol_filename): Remove.
1575 (info_sources_command): Update.
1576 (struct add_partial_filename_data): Add operator().
1577 (add_partial_filename_data::operator()): Rename from
1578 maybe_add_partial_symtab_filename.
1579 (make_source_files_completion_list): Update.
1580 * symfile.c (quick_symbol_functions): Update.
1581 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1582 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1583 'need_fullname'. Remove 'data' parameter.
1584 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1585 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1586 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1587 Change type of 'fun' and 'need_fullname'. Remove 'data'
1589 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1590 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1591 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1593 (mi_cmd_file_list_exec_source_files): Update.
1595 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1597 2021-03-26 Tom Tromey <tom@tromey.com>
1599 * ada-lang.c (struct match_data): Add operator().
1600 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1601 (callback): Remove 'callback'.
1603 2021-03-26 Tom Tromey <tom@tromey.com>
1605 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1606 call make_ignore_params once.
1608 2021-03-26 Tom Tromey <tom@tromey.com>
1610 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1613 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1614 Pedro Alves <pedro@palves.net>
1616 * async-event.c: Include "infrun.h".
1617 (async_event_handler_marked): New.
1618 * async-event.h (async_event_handler_marked): Declare.
1619 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1620 inferior before calling target method. Don't commit-resumed if
1621 target_has_pending_events is true.
1622 * remote.c (remote_target::has_pending_events): New.
1623 * target-delegates.c: Regenerate.
1624 * target.c (target_has_pending_events): New.
1625 * target.h (target_ops::has_pending_events): New target method.
1626 (target_has_pending_events): New.
1628 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1629 Pedro Alves <pedro@palves.net>
1631 * infcmd.c (run_command_1, attach_command, detach_command)
1632 (interrupt_target_1): Use scoped_disable_commit_resumed.
1633 * infrun.c (do_target_resume): Remove
1634 target_commit_resume call.
1635 (commit_resume_all_targets): Remove.
1636 (maybe_set_commit_resumed_all_targets): New.
1637 (maybe_call_commit_resumed_all_targets): New.
1638 (enable_commit_resumed): New.
1639 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1640 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1641 (scoped_disable_commit_resumed::reset)
1642 (scoped_disable_commit_resumed::reset_and_commit)
1643 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1644 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1646 (proceed): Use scoped_disable_commit_resumed and
1647 maybe_call_commit_resumed_all_targets.
1648 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1649 * infrun.h (struct scoped_disable_commit_resumed): New.
1650 (maybe_call_commit_resumed_all_process_targets): New.
1651 (struct scoped_enable_commit_resumed): New.
1652 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1653 * process-stratum-target.h (class process_stratum_target):
1654 <commit_resumed_state>: New.
1655 * record-full.c (record_full_wait_1): Change commit_resumed_state
1656 around calling commit_resumed.
1657 * remote.c (class remote_target) <commit_resume>: Rename to...
1658 <commit_resumed>: ... this.
1659 (struct stop_reply): Move up.
1660 (remote_target::commit_resume): Rename to...
1661 (remote_target::commit_resumed): ... this. Check if there is any
1662 thread pending vCont resume.
1663 (remote_target::remote_stop_ns): Generate stop replies for resumed
1664 but pending vCont threads.
1665 (remote_target::wait_ns): Add gdb_assert.
1666 * target-delegates.c: Regenerate.
1667 * target.c (target_wait, target_resume): Assert that the current
1668 process_stratum target isn't in commit-resumed state.
1669 (defer_target_commit_resume): Remove.
1670 (target_commit_resume): Remove.
1671 (target_commit_resumed): New.
1672 (make_scoped_defer_target_commit_resume): Remove.
1673 (target_stop): Assert that the current process_stratum target
1674 isn't in commit-resumed state.
1675 * target.h (struct target_ops) <commit_resume>: Rename to ...
1676 <commit_resumed>: ... this.
1677 (target_commit_resume): Remove.
1678 (target_commit_resumed): New.
1679 (make_scoped_defer_target_commit_resume): Remove.
1680 * top.c (wait_sync_command_done): Use
1681 scoped_enable_commit_resumed.
1683 2021-03-26 Pedro Alves <pedro@palves.net>
1685 * target.c (target_always_non_stop_p): Also check whether the
1688 2021-03-26 Tom Tromey <tom@tromey.com>
1690 * dwarf2/read.c (dwarf2_read_debug_names)
1691 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1692 (dw2_debug_names_iterator::next, create_type_unit_group):
1695 2021-03-25 Pedro Alves <pedro@palves.net>
1697 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1698 around setting the breakpoint.
1700 2021-03-25 Pedro Alves <pedro@palves.net>
1703 (remote_target::check_pending_events_prevent_wildcard_vcont):
1704 Check whether the event's ptid is not null_ptid before looking up
1705 the corresponding inferior.
1707 2021-03-24 Changbin Du <changbin.du@gmail.com>
1709 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1712 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1714 * target.h (current_top_target): Remove, make callers use the
1715 current inferior instead.
1716 * target.c (current_top_target): Remove.
1718 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1720 * target.h (target_shortname): Change to function declaration.
1721 (target_longname): Likewise.
1722 (target_attach_no_wait): Likewise.
1723 (target_post_attach): Likewise.
1724 (target_prepare_to_store): Likewise.
1725 (target_supports_enable_disable_tracepoint): Likewise.
1726 (target_supports_string_tracing): Likewise.
1727 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1728 (target_supports_dumpcore): Likewise.
1729 (target_dumpcore): Likewise.
1730 (target_can_run_breakpoint_commands): Likewise.
1731 (target_files_info): Likewise.
1732 (target_post_startup_inferior): Likewise.
1733 (target_insert_fork_catchpoint): Likewise.
1734 (target_remove_fork_catchpoint): Likewise.
1735 (target_insert_vfork_catchpoint): Likewise.
1736 (target_remove_vfork_catchpoint): Likewise.
1737 (target_insert_exec_catchpoint): Likewise.
1738 (target_remove_exec_catchpoint): Likewise.
1739 (target_set_syscall_catchpoint): Likewise.
1740 (target_rcmd): Likewise.
1741 (target_can_lock_scheduler): Likewise.
1742 (target_can_async_p): Likewise.
1743 (target_is_async_p): Likewise.
1744 (target_execution_direction): Likewise.
1745 (target_extra_thread_info): Likewise.
1746 (target_pid_to_exec_file): Likewise.
1747 (target_thread_architecture): Likewise.
1748 (target_find_memory_regions): Likewise.
1749 (target_make_corefile_notes): Likewise.
1750 (target_get_bookmark): Likewise.
1751 (target_goto_bookmark): Likewise.
1752 (target_stopped_by_watchpoint): Likewise.
1753 (target_stopped_by_sw_breakpoint): Likewise.
1754 (target_supports_stopped_by_sw_breakpoint): Likewise.
1755 (target_stopped_by_hw_breakpoint): Likewise.
1756 (target_supports_stopped_by_hw_breakpoint): Likewise.
1757 (target_have_steppable_watchpoint): Likewise.
1758 (target_can_use_hardware_watchpoint): Likewise.
1759 (target_region_ok_for_hw_watchpoint): Likewise.
1760 (target_can_do_single_step): Likewise.
1761 (target_insert_watchpoint): Likewise.
1762 (target_remove_watchpoint): Likewise.
1763 (target_insert_hw_breakpoint): Likewise.
1764 (target_remove_hw_breakpoint): Likewise.
1765 (target_can_accel_watchpoint_condition): Likewise.
1766 (target_can_execute_reverse): Likewise.
1767 (target_get_ada_task_ptid): Likewise.
1768 (target_filesystem_is_local): Likewise.
1769 (target_trace_init): Likewise.
1770 (target_download_tracepoint): Likewise.
1771 (target_can_download_tracepoint): Likewise.
1772 (target_download_trace_state_variable): Likewise.
1773 (target_enable_tracepoint): Likewise.
1774 (target_disable_tracepoint): Likewise.
1775 (target_trace_start): Likewise.
1776 (target_trace_set_readonly_regions): Likewise.
1777 (target_get_trace_status): Likewise.
1778 (target_get_tracepoint_status): Likewise.
1779 (target_trace_stop): Likewise.
1780 (target_trace_find): Likewise.
1781 (target_get_trace_state_variable_value): Likewise.
1782 (target_save_trace_data): Likewise.
1783 (target_upload_tracepoints): Likewise.
1784 (target_upload_trace_state_variables): Likewise.
1785 (target_get_raw_trace_data): Likewise.
1786 (target_get_min_fast_tracepoint_insn_len): Likewise.
1787 (target_set_disconnected_tracing): Likewise.
1788 (target_set_circular_trace_buffer): Likewise.
1789 (target_set_trace_buffer_size): Likewise.
1790 (target_set_trace_notes): Likewise.
1791 (target_get_tib_address): Likewise.
1792 (target_set_permissions): Likewise.
1793 (target_static_tracepoint_marker_at): Likewise.
1794 (target_static_tracepoint_markers_by_strid): Likewise.
1795 (target_traceframe_info): Likewise.
1796 (target_use_agent): Likewise.
1797 (target_can_use_agent): Likewise.
1798 (target_augmented_libraries_svr4_read): Likewise.
1799 (target_log_command): Likewise.
1800 * target.c (target_shortname): New.
1801 (target_longname): New.
1802 (target_attach_no_wait): New.
1803 (target_post_attach): New.
1804 (target_prepare_to_store): New.
1805 (target_supports_enable_disable_tracepoint): New.
1806 (target_supports_string_tracing): New.
1807 (target_supports_evaluation_of_breakpoint_conditions): New.
1808 (target_supports_dumpcore): New.
1809 (target_dumpcore): New.
1810 (target_can_run_breakpoint_commands): New.
1811 (target_files_info): New.
1812 (target_post_startup_inferior): New.
1813 (target_insert_fork_catchpoint): New.
1814 (target_remove_fork_catchpoint): New.
1815 (target_insert_vfork_catchpoint): New.
1816 (target_remove_vfork_catchpoint): New.
1817 (target_insert_exec_catchpoint): New.
1818 (target_remove_exec_catchpoint): New.
1819 (target_set_syscall_catchpoint): New.
1821 (target_can_lock_scheduler): New.
1822 (target_can_async_p): New.
1823 (target_is_async_p): New.
1824 (target_execution_direction): New.
1825 (target_extra_thread_info): New.
1826 (target_pid_to_exec_file): New.
1827 (target_thread_architecture): New.
1828 (target_find_memory_regions): New.
1829 (target_make_corefile_notes): New.
1830 (target_get_bookmark): New.
1831 (target_goto_bookmark): New.
1832 (target_stopped_by_watchpoint): New.
1833 (target_stopped_by_sw_breakpoint): New.
1834 (target_supports_stopped_by_sw_breakpoint): New.
1835 (target_stopped_by_hw_breakpoint): New.
1836 (target_supports_stopped_by_hw_breakpoint): New.
1837 (target_have_steppable_watchpoint): New.
1838 (target_can_use_hardware_watchpoint): New.
1839 (target_region_ok_for_hw_watchpoint): New.
1840 (target_can_do_single_step): New.
1841 (target_insert_watchpoint): New.
1842 (target_remove_watchpoint): New.
1843 (target_insert_hw_breakpoint): New.
1844 (target_remove_hw_breakpoint): New.
1845 (target_can_accel_watchpoint_condition): New.
1846 (target_can_execute_reverse): New.
1847 (target_get_ada_task_ptid): New.
1848 (target_filesystem_is_local): New.
1849 (target_trace_init): New.
1850 (target_download_tracepoint): New.
1851 (target_can_download_tracepoint): New.
1852 (target_download_trace_state_variable): New.
1853 (target_enable_tracepoint): New.
1854 (target_disable_tracepoint): New.
1855 (target_trace_start): New.
1856 (target_trace_set_readonly_regions): New.
1857 (target_get_trace_status): New.
1858 (target_get_tracepoint_status): New.
1859 (target_trace_stop): New.
1860 (target_trace_find): New.
1861 (target_get_trace_state_variable_value): New.
1862 (target_save_trace_data): New.
1863 (target_upload_tracepoints): New.
1864 (target_upload_trace_state_variables): New.
1865 (target_get_raw_trace_data): New.
1866 (target_get_min_fast_tracepoint_insn_len): New.
1867 (target_set_disconnected_tracing): New.
1868 (target_set_circular_trace_buffer): New.
1869 (target_set_trace_buffer_size): New.
1870 (target_set_trace_notes): New.
1871 (target_get_tib_address): New.
1872 (target_set_permissions): New.
1873 (target_static_tracepoint_marker_at): New.
1874 (target_static_tracepoint_markers_by_strid): New.
1875 (target_traceframe_info): New.
1876 (target_use_agent): New.
1877 (target_can_use_agent): New.
1878 (target_augmented_libraries_svr4_read): New.
1879 (target_log_command): New.
1880 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1881 * infrun.c (set_schedlock_func): Adjust.
1882 * mi/mi-main.c (exec_reverse_continue): Adjust.
1883 * reverse.c (exec_reverse_once): Adjust.
1884 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1885 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1886 * remote-sim.c (gdbsim_target::detach): Adjust.
1887 (gdbsim_target::files_info): Adjust.
1889 2021-03-24 Tom Tromey <tom@tromey.com>
1891 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1892 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1893 (check_match, dw2_expand_symtabs_matching)
1894 (dwarf2_debug_names_index::map_matching_symbols)
1895 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1897 2021-03-24 Keith Seitz <keiths@redhat.com>
1899 * compile/compile-cplus-types.c
1900 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1903 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1905 * gdbarch.sh (gdbarch_data_registry): Make static.
1906 * gdbarch.c: Re-generate.
1908 2021-03-24 Luis Machado <luis.machado@linaro.org>
1910 * NEWS: Mention memory tagging changes.
1912 2021-03-24 Luis Machado <luis.machado@linaro.org>
1914 * printcmd.c (decode_format): Handle the 'm' modifier.
1915 (do_examine): Display allocation tags when required/supported.
1916 (should_validate_memtags): New function.
1917 (print_command_1): Display memory tag mismatches.
1918 * valprint.c (show_memory_tag_violations): New function.
1919 (value_print_option_defs): Add new option "memory-tag-violations".
1920 (user_print_options) <memory_tag_violations>: Initialize to 1.
1921 * valprint.h (struct format_data) <print_tags>: New field.
1922 (value_print_options) <memory_tag_violations>: New field.
1924 2021-03-24 Luis Machado <luis.machado@linaro.org>
1926 * printcmd.c: Include gdbsupport/rsp-low.h.
1927 (memory_tag_list): New static global.
1928 (process_print_command_args): Factored out of
1930 (print_command_1): Use process_print_command_args.
1931 (show_addr_not_tagged, show_memory_tagging_unsupported)
1932 (memory_tag_command, memory_tag_print_tag_command)
1933 (memory_tag_print_logical_tag_command)
1934 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1935 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1936 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1938 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1940 2021-03-24 Luis Machado <luis.machado@linaro.org>
1942 * aarch64-linux-tdep.c
1943 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1944 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1946 2021-03-24 Luis Machado <luis.machado@linaro.org>
1948 * aarch64-linux-tdep.c
1949 (aarch64_linux_report_signal_info): New function.
1950 (aarch64_linux_init_abi): Register
1951 aarch64_linux_report_signal_info as the report_signal_info hook.
1952 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1953 (SEGV_MTESERR): Define.
1955 2021-03-24 Luis Machado <luis.machado@linaro.org>
1957 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1958 (aarch64_linux_ltag_tests): New function.
1959 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1961 2021-03-24 Luis Machado <luis.machado@linaro.org>
1963 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1964 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1965 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1966 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1968 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1969 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1970 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1971 (aarch64_linux_get_ltag): New functions.
1972 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1973 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1974 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1975 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1977 2021-03-24 Luis Machado <luis.machado@linaro.org>
1979 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1981 (struct smaps_data): New struct.
1982 (decode_vmflags): Handle the 'mt' flag.
1983 (parse_smaps_data): New function, refactored from
1984 linux_find_memory_regions_full.
1985 (linux_address_in_memtag_page): New function.
1986 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1987 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1989 2021-03-24 Luis Machado <luis.machado@linaro.org>
1991 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1992 instead of char arrays.
1994 2021-03-24 Luis Machado <luis.machado@linaro.org>
1996 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1997 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1998 nat/aarch64-mte-linux-ptrace.h.
1999 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2000 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2002 <fetch_memtags>: New method override.
2003 <store_memtags>: New method override.
2004 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2005 (aarch64_linux_nat_target::fetch_memtags): New method.
2006 (aarch64_linux_nat_target::store_memtags): New method.
2007 * arch/aarch64-mte-linux.c: New file.
2008 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2009 (AARCH64_MTE_GRANULE_SIZE): Define.
2010 (aarch64_memtag_type): New enum.
2011 (aarch64_mte_get_tag_granules): New prototype.
2012 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2013 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2014 * nat/aarch64-mte-linux-ptrace.c: New file.
2015 * nat/aarch64-mte-linux-ptrace.h: New file.
2017 2021-03-24 Luis Machado <luis.machado@linaro.org>
2019 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2020 * nat/aarch64-mte-linux-ptrace.h: New file.
2022 2021-03-24 Luis Machado <luis.machado@linaro.org>
2024 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2025 (store_mteregs_to_thread): New function.
2026 (aarch64_linux_nat_target::fetch_registers): Update to call
2027 fetch_mteregs_from_thread.
2028 (aarch64_linux_nat_target::store_registers): Update to call
2029 store_mteregs_to_thread.
2030 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2031 (aarch64_cannot_store_register): Handle MTE registers.
2032 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2033 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2034 <has_mte>: New method.
2035 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2037 2021-03-24 Luis Machado <luis.machado@linaro.org>
2039 * aarch64-linux-nat.c
2040 (aarch64_linux_nat_target::read_description): Take MTE flag into
2042 Slight refactor to hwcap flag checking.
2043 * aarch64-linux-tdep.c
2044 (aarch64_linux_core_read_description): Likewise.
2045 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2047 (aarch64_read_description): Add mte_p parameter and update to use it.
2048 Update the documentation.
2049 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2050 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2051 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2052 (aarch64_create_target_description): Add mte_p parameter and update
2054 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2056 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2057 * features/aarch64-mte.c: New file, generated.
2058 * features/aarch64-mte.xml: New file.
2060 2021-03-24 Luis Machado <luis.machado@linaro.org>
2062 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2063 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2064 * aarch64-linux-tdep.c: Likewise
2065 * arch/aarch64-mte-linux.h: New file.
2067 2021-03-24 Luis Machado <luis.machado@linaro.org>
2069 * remote: Include gdbsupport/selftest.h.
2070 (test_memory_tagging_functions): New function.
2071 (_initialize_remote): Register test_memory_tagging_functions.
2073 2021-03-24 Luis Machado <luis.machado@linaro.org>
2075 * remote.c (PACKET_memory_tagging_feature): New enum.
2076 (remote_memory_tagging_p): New function.
2077 (remote_protocol_features): New "memory-tagging" entry.
2078 (remote_target::remote_query_supported): Handle memory tagging
2080 (remote_target::supports_memory_tagging): Implement.
2081 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2082 (create_store_memtags_request): New functions.
2083 (remote_target::fetch_memtags): Implement.
2084 (remote_target::store_memtags): Implement.
2085 (_initialize_remote): Add new "memory-tagging-feature"
2088 2021-03-24 Luis Machado <luis.machado@linaro.org>
2090 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2091 (default_memtag_matches_p, default_set_memtags)
2092 (default_get_memtag): New functions.
2093 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2094 (default_memtag_matches_p, default_set_memtags)
2095 (default_get_memtag): New prototypes.
2096 * gdbarch.c: Regenerate.
2097 * gdbarch.h: Regenerate.
2098 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2099 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2100 (enum memtag_type): New enum.
2102 2021-03-24 Luis Machado <luis.machado@linaro.org>
2104 * remote.c (remote_target) <supports_memory_tagging>: New method
2106 <fetch_memtags>: New method override.
2107 <store_memtags>: New method override.
2108 (remote_target::supports_memory_tagging): New method.
2109 (remote_target::fetch_memtags): New method.
2110 (remote_target::store_memtags): New method.
2111 * target-delegates.c: Regenerate.
2112 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2114 <fetch_memtags>: New virtual method.
2115 <store_memtags>: New virtual method.
2116 (target_supports_memory_tagging): Define.
2117 (target_fetch_memtags): Define.
2118 (target_store_memtags): Define.
2119 * target-debug.h (target_debug_print_size_t)
2120 (target_debug_print_const_gdb_byte_vector_r)
2121 (target_debug_print_gdb_byte_vector_r): New functions.
2123 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2125 * target.h (target_longname): Remove.
2127 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2129 * target.h (target_is_pushed): Remove, update callers to use
2130 inferior::target_is_pushed instead.
2131 * target.c (target_is_pushed): Remove.
2133 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2135 * target.h (push_target): Remove, update callers to use
2136 inferior::push_target.
2137 * target.c (push_target): Remove.
2138 * inferior.h (class inferior) <push_target>: New overload.
2140 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2142 * target.h (unpush_target): Remove, update all callers
2143 to use `inferior::unpush_target` instead.
2144 (struct target_unpusher) <operator()>: Just declare.
2145 * target.c (unpush_target): Remove.
2146 (target_unpusher::operator()): New.
2148 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2150 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2152 (process_full_comp_unit): Validate the top-level tag before
2153 processing the first DIE.
2154 (read_func_scope): Ensure we have a valid builder.
2156 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2158 * objc-lang.c (objc_demangle): Renamed to
2159 objc_language::demangle_symbol, and moved later in the file.
2160 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2162 (objc_language::demangle_symbol): Defined outside of class
2163 declaration. The definition is the old objc_demangle with NULL
2164 changed to nullptr, and if conditions relating to nullptr pointers
2165 or null character checks made explicit.
2166 * objc-lang.h (objc_demangle): Delete declaration.
2168 2021-03-22 Martin Liska <mliska@suse.cz>
2170 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2171 (_initialize_arm_tdep): Likewise.
2173 2021-03-20 Tom Tromey <tom@tromey.com>
2175 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2176 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2177 * psymtab.h (make_psymbol_functions): Don't declare.
2178 * psymtab.c (make_psymbol_functions): Remove.
2179 (maintenance_print_psymbols): Update.
2180 * psympriv.h (struct psymbol_functions): Add no-argument
2182 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2183 <partial_symtabs>: Remove.
2184 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2185 * elfread.c (read_partial_symbols): Update.
2186 (elf_symfile_read): Remove check for existing partial symbols.
2188 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2190 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2192 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2194 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2195 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2197 2021-03-20 Tom Tromey <tom@tromey.com>
2199 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2200 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2201 * symfile-debug.c (objfile::has_partial_symbols)
2202 (objfile::find_last_source_symtab)
2203 (objfile::forget_cached_source_info)
2204 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2205 (objfile::print_stats, objfile::dump)
2206 (objfile::expand_symtabs_for_function)
2207 (objfile::expand_all_symtabs)
2208 (objfile::expand_symtabs_with_fullname)
2209 (objfile::map_matching_symbols)
2210 (objfile::expand_symtabs_matching)
2211 (objfile::find_pc_sect_compunit_symtab)
2212 (objfile::map_symbol_filenames)
2213 (objfile::find_compunit_symtab_by_address)
2214 (objfile::lookup_global_symbol_language)
2215 (objfile::require_partial_symbols): Update.
2216 * psymtab.c (maintenance_print_psymbols)
2217 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2218 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2219 * objfiles.c (objfile_relocate1): Update.
2220 * elfread.c (elf_symfile_read): Update.
2222 2021-03-20 Tom Tromey <tom@tromey.com>
2224 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2226 2021-03-20 Tom Tromey <tom@tromey.com>
2228 * psymtab.c (psymbol_functions::count_psyms): Rename.
2229 (psymbol_functions::print_stats): Update.
2230 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2233 2021-03-20 Tom Tromey <tom@tromey.com>
2235 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2236 (psymbol_functions::find_pc_sect_psymtab): Rename.
2237 (psymbol_functions::find_pc_sect_compunit_symtab)
2238 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2239 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2241 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2243 2021-03-20 Tom Tromey <tom@tromey.com>
2245 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2246 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2247 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2249 (add_psymbol_to_bcache): Remove.
2250 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2251 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2253 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2254 <add_psymbol>: Likewise.
2255 (standard_psymtab, legacy_psymtab): Likewise.
2256 * mdebugread.c (parse_partial_symbols): Update.
2257 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2258 (handle_psymbol_enumerators): Update.
2259 (new_psymtab): Add partial_symtabs parameter.
2260 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2261 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2263 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2264 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2266 * dbxread.c (read_dbx_symtab): Update.
2267 (start_psymtab): Add partial_symtabs parameter.
2268 (dbx_end_psymtab): Update.
2269 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2270 (ctf_psymtab): Add partial_symtabs parameter.
2271 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2273 (scan_partial_symbols): Add partial_symtabs parameter.
2274 (scan_partial_symbols, elfctf_build_psymtabs)
2275 (ctf_psymtab_add_enums): Update.
2277 2021-03-20 Tom Tromey <tom@tromey.com>
2279 * symfile.c (read_symbols): Use objfile method.
2280 * symfile-debug.c (objfile::require_partial_symbols): New method.
2281 * psymtab.h (require_partial_symbols): Don't declare.
2282 * psymtab.c (require_partial_symbols): Use objfile method. Now
2284 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2285 (psymbol_functions::lookup_symbol)
2286 (psymbol_functions::lookup_global_symbol_language)
2287 (psymbol_functions::find_last_source_symtab)
2288 (psymbol_functions::forget_cached_source_info)
2289 (psymbol_functions::print_stats)
2290 (psymbol_functions::expand_symtabs_for_function)
2291 (psymbol_functions::expand_all_symtabs)
2292 (psymbol_functions::expand_symtabs_with_fullname)
2293 (psymbol_functions::map_symbol_filenames)
2294 (psymbol_functions::map_matching_symbols)
2295 (psymbol_functions::expand_symtabs_matching)
2296 (psymbol_functions::find_compunit_symtab_by_address)
2297 (maintenance_print_psymbols, maintenance_info_psymtabs)
2298 (maintenance_check_psymtabs): Update.
2299 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2302 2021-03-20 Tom Tromey <tom@tromey.com>
2304 * xcoffread.c (xcoff_sym_fns): Update.
2305 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2306 * symfile-debug.c (objfile::has_partial_symbols): Use
2307 can_lazily_read_symbols.
2308 (debug_sym_read_psymbols): Remove.
2309 (debug_sym_fns, install_symfile_debug_logging): Update.
2310 * quick-symbol.h (struct quick_symbol_functions)
2311 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2312 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2313 * mipsread.c (ecoff_sym_fns): Update.
2314 * machoread.c (macho_sym_fns): Update.
2315 * elfread.c (struct lazy_dwarf_reader): New.
2316 (elf_symfile_read): Update.
2317 (read_psyms): Now a method of lazy_dwarf_reader.
2318 (elf_sym_fns): Update.
2319 (elf_sym_fns_lazy_psyms): Remove.
2320 * dbxread.c (aout_sym_fns): Update.
2321 * coffread.c (coff_sym_fns): Update.
2323 2021-03-20 Tom Tromey <tom@tromey.com>
2325 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2326 (reread_symbols): Move reset_psymtabs call later.
2327 * objfiles.c (objfile::objfile): Don't initialize
2330 2021-03-20 Tom Tromey <tom@tromey.com>
2332 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2333 set_partial_symtabs.
2334 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2335 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2337 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2339 (psymbol_functions::find_pc_sect_compunit_symtab)
2340 (psymbol_functions::print_stats, psymbol_functions::dump)
2341 (psymbol_functions::has_symbols): Update.
2342 (make_psymbol_functions, dump_psymtab_addrmap): Add
2343 partial_symtabs parameter.
2344 (maintenance_print_psymbols): Update.
2345 (psymbol_functions::expand_symtabs_matching): Update.
2346 * psympriv.h (struct psymbol_functions): Add constructor.
2347 <m_partial_symtabs>: New member.
2348 <set_partial_symtabs>: New method.
2350 2021-03-20 Tom Tromey <tom@tromey.com>
2352 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2354 (process_psymtab_comp_unit_reader)
2355 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2356 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2357 Reference psymtabs via per_bfd.
2359 2021-03-20 Tom Tromey <tom@tromey.com>
2361 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2363 (add_address_entry): Remove objfile parameter.
2364 (add_address_entry_worker): Update.
2365 (write_address_map): Replace objfile parameter with per_bfd.
2366 (write_gdbindex, write_psymtabs_to_index): Update.
2368 2021-03-20 Tom Tromey <tom@tromey.com>
2370 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2371 print_bcache parameter.
2372 * symfile-debug.c (objfile::print_stats): Add print_bcache
2374 * quick-symbol.h (struct quick_symbol_functions)
2375 <print_stats>: Add print_bcache parameter.
2376 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2378 (print_objfile_statistics): Move psymtab code to psymtab.c.
2379 * psymtab.c (count_psyms): Move from symmisc.c.
2380 (psymbol_functions::print_stats): Print partial symbol and bcache
2381 statistics. Add print_bcache parameter.
2382 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2383 (struct objfile) <print_stats>: Add print_bcache parameter.
2384 * maint.c (maintenance_print_statistics): Update.
2386 2021-03-20 Tom Tromey <tom@tromey.com>
2388 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2390 * dwarf2/read.c (create_addrmap_from_index)
2391 (create_addrmap_from_aranges): Set per_bfd addrmap.
2392 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2393 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2395 (dwarf2_read_debug_names): Don't set partial_symtabs.
2396 (dwarf2_initialize_objfile): Likewise.
2398 2021-03-20 Tom Tromey <tom@tromey.com>
2400 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2403 2021-03-20 Tom Tromey <tom@tromey.com>
2405 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2406 (~psymtab_discarder, keep): Update.
2407 <m_objfile>: Remove.
2408 <m_partial_symtabs>: New member.
2409 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2411 2021-03-20 Tom Tromey <tom@tromey.com>
2413 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2414 (xcoff_end_psymtab): Update.
2415 (scan_xcoff_symtab): Add partial_symtabs parameter.
2416 (xcoff_initial_scan): Update.
2417 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2418 * mdebugread.c (mdebug_build_psymtabs): Update.
2419 (parse_partial_symbols): Add partial_symtabs parameter.
2420 * dbxread.c (dbx_symfile_read): Update.
2421 (read_dbx_symtab): Add partial_symtabs parameter.
2422 (read_dbx_symtab): Update.
2423 (dbx_end_psymtab): Add partial_symtabs parameter.
2425 2021-03-20 Tom Tromey <tom@tromey.com>
2427 * quick-symbol.h (struct quick_symbol_functions)
2428 <relocated>: New method.
2429 * psymtab.h (struct psymbol_functions) <relocated>: New
2431 <fill_psymbol_map>: Declare method.
2432 <m_psymbol_map>: New member.
2433 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2434 (psymbol_functions::find_compunit_symtab_by_address): Update.
2435 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2436 (struct objfile) <psymbol_map>: Remove.
2437 * objfiles.c (objfile_relocate1): Update.
2439 2021-03-20 Tom Tromey <tom@tromey.com>
2441 * psympriv.h (struct psymbol_functions): New.
2442 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2443 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2444 (objfile::lookup_global_symbol_language): Update.
2445 * quick-symbol.h (struct quick_symbol_functions): Convert function
2446 pointers to methods. Add virtual destructor.
2447 (quick_symbol_functions_up): New typedef.
2448 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2449 (dwarf2_debug_names_functions): Don't declare.
2450 (make_psymbol_functions): Declare.
2451 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2452 (psymbol_functions::find_pc_sect_compunit_symtab)
2453 (psymbol_functions::lookup_symbol)
2454 (psymbol_functions::lookup_global_symbol_language)
2455 (psymbol_functions::find_last_source_symtab)
2456 (psymbol_functions::forget_cached_source_info)
2457 (psymbol_functions::print_stats, psymbol_functions::dump)
2458 (psymbol_functions::expand_symtabs_for_function)
2459 (psymbol_functions::expand_all_symtabs)
2460 (psymbol_functions::expand_symtabs_with_fullname)
2461 (psymbol_functions::map_symbol_filenames)
2462 (psymbol_functions::map_matching_symbols)
2463 (psymbol_functions::expand_symtabs_matching)
2464 (psymbol_functions::has_symbols)
2465 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2466 (psym_functions): Remove.
2467 (make_psymbol_functions): New function.
2468 * objfiles.h (struct objfile) <qf>: Change type.
2469 * elfread.c (elf_symfile_read): Update.
2470 * dwarf2/read.c (struct dwarf2_base_index_functions)
2471 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2472 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2473 (dwarf2_base_index_functions::find_last_source_symtab)
2474 (dwarf2_base_index_functions::forget_cached_source_info)
2475 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2476 (dwarf2_gdb_index::lookup_symbol)
2477 (dwarf2_base_index_functions::print_stats)
2478 (dwarf2_gdb_index::dump)
2479 (dwarf2_gdb_index::expand_symtabs_for_function)
2480 (dwarf2_base_index_functions::expand_all_symtabs)
2481 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2483 (dwarf2_gdb_index::map_matching_symbols): New method.
2484 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2485 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2486 (dwarf2_base_index_functions::map_symbol_filenames)
2487 (dwarf2_base_index_functions::has_symbols): Rename.
2488 (dwarf2_gdb_index_functions): Remove.
2489 (dwarf2_debug_names_index::lookup_symbol)
2490 (dwarf2_debug_names_index::dump)
2491 (dwarf2_debug_names_index::expand_symtabs_for_function)
2492 (dwarf2_debug_names_index::map_matching_symbols)
2493 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2494 (dwarf2_debug_names_functions): Remove.
2495 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2498 2021-03-20 Tom Tromey <tom@tromey.com>
2500 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2502 * xcoffread.c (xcoff_sym_fns): Update.
2503 * symfile.h (struct sym_fns) <qf>: Remove.
2504 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2505 * symfile-debug.c (objfile::has_partial_symbols)
2506 (objfile::find_last_source_symtab)
2507 (objfile::forget_cached_source_info)
2508 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2509 (objfile::print_stats, objfile::dump)
2510 (objfile::expand_symtabs_for_function)
2511 (objfile::expand_all_symtabs)
2512 (objfile::expand_symtabs_with_fullname)
2513 (objfile::map_matching_symbols)
2514 (objfile::expand_symtabs_matching)
2515 (objfile::find_pc_sect_compunit_symtab)
2516 (objfile::map_symbol_filenames)
2517 (objfile::find_compunit_symtab_by_address)
2518 (objfile::lookup_global_symbol_language, debug_sym_fns)
2519 (install_symfile_debug_logging): Update.
2520 * objfiles.h (struct objfile) <qf>: New member.
2521 * mipsread.c (ecoff_sym_fns): Update.
2522 * machoread.c (macho_sym_fns): Update.
2523 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2525 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2526 * dbxread.c (aout_sym_fns): Update.
2527 * coffread.c (coff_sym_fns): Update.
2529 2021-03-20 Tom Tromey <tom@tromey.com>
2531 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2532 (expand_symtabs_file_matcher_ftype)
2533 (expand_symtabs_symbol_matcher_ftype)
2534 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2535 Move to quick-symbol.h.
2536 * quick-symbol.h: New file.
2538 2021-03-20 Tom Tromey <tom@tromey.com>
2540 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2541 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2542 (basic_lookup_transparent_type_quick)
2543 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2544 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2546 * symmisc.c (print_objfile_statistics, dump_objfile)
2547 (maintenance_expand_symtabs): Update.
2548 * symfile.c (symbol_file_add_with_addrs)
2549 (expand_symtabs_matching, map_symbol_filenames): Update.
2550 * symfile-debug.c (objfile::has_partial_symbols)
2551 (objfile::find_last_source_symtab)
2552 (objfile::forget_cached_source_info)
2553 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2554 (objfile::print_stats, objfile::dump)
2555 (objfile::expand_symtabs_for_function)
2556 (objfile::expand_all_symtabs)
2557 (objfile::expand_symtabs_with_fullname)
2558 (objfile::map_matching_symbols)
2559 (objfile::expand_symtabs_matching)
2560 (objfile::find_pc_sect_compunit_symtab)
2561 (objfile::map_symbol_filenames)
2562 (objfile::find_compunit_symtab_by_address)
2563 (objfile::lookup_global_symbol_language): New methods.
2564 (debug_sym_quick_functions): Remove.
2565 (debug_sym_fns, install_symfile_debug_logging): Update.
2566 * source.c (forget_cached_source_info_for_objfile)
2567 (select_source_symtab): Update.
2568 * objfiles.h (struct objfile): Add methods corresponding to
2569 quick_symbol_functions.
2570 * objfiles.c (objfile::has_partial_symbols): Move to
2572 * linespec.c (iterate_over_all_matching_symtabs): Update.
2573 * cp-support.c (add_symbol_overload_list_qualified): Update.
2574 * ada-lang.c (add_nonlocal_symbols): Update.
2576 2021-03-20 Tom Tromey <tom@tromey.com>
2578 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2579 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2581 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2582 * psymtab.c (psym_has_symbols): Return bool.
2583 * objfiles.c (objfile::has_partial_symbols): Return bool.
2584 * dwarf2/read.c (dw2_has_symbols): Return bool.
2586 2021-03-20 Tom Tromey <tom@tromey.com>
2588 * symfile.c (read_symbols): Update.
2589 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2590 (objfile_has_partial_symbols): Don't declare.
2591 * objfiles.c (objfile::has_partial_symbols): Rename from
2592 objfile_has_partial_symbols.
2593 (objfile_has_symbols, have_partial_symbols): Update.
2594 * elfread.c (elf_symfile_read): Update.
2595 * dwarf2/read.c (dwarf2_has_info): Update.
2596 * coffread.c (coff_symfile_read): Update.
2598 2021-03-20 Tom Tromey <tom@tromey.com>
2600 * coffread.c: Include dwarf2/public.h.
2601 * dwarf2/frame.c: Include dwarf2/public.h.
2602 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2603 * dwarf2/public.h: New file.
2604 * dwarf2/read.c: Include dwarf2/public.h.
2605 * elfread.c: Include dwarf2/public.h.
2606 * machoread.c: Include dwarf2/public.h.
2607 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2608 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2609 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2610 * xcoffread.c: Include dwarf2/public.h.
2612 2021-03-20 Tom Tromey <tom@tromey.com>
2614 * symfile.h (enum dwarf2_section_enum)
2615 (dwarf2_get_section_info): Move to dwarf2/read.h.
2616 * dwarf2/read.h (enum dwarf2_section_enum)
2617 (dwarf2_get_section_info): Move from symfile.h.
2619 2021-03-19 Pedro Alves <pedro@palves.net>
2621 * thread.c (any_thread_of_inferior): Check if there's a selected
2622 thread before calling inferior_thread().
2624 2021-03-18 Tom Tromey <tromey@adacore.com>
2626 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2628 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2629 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2631 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2633 * python/py-param.c (get_set_value): Update header comment.
2635 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2637 * infrun.c (check_multi_target_resumption): Remove argument to
2638 all_non_exited_inferiors.
2640 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2642 * windows-nat.c (windows_init_thread_list): Add message to
2645 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2647 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2648 well as PyLong_Check for Python 2.
2650 2021-03-15 Tom Tromey <tromey@adacore.com>
2653 * rust-exp.y (maker_map): Use gdb::hash_enum.
2654 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2656 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2658 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2661 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2663 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2664 parameter, adjust caller.
2666 2021-03-15 Tom Tromey <tromey@adacore.com>
2668 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2670 2021-03-15 Tom Tromey <tromey@adacore.com>
2672 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2673 ada_ensure_varsize_limit.
2675 2021-03-15 Tom Tromey <tromey@adacore.com>
2677 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2679 * ada-exp.y (maybe_overload): New function.
2680 (ada_wrap_overload): New function.
2681 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2682 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2683 (or_else_exp, xor_exp, primary): Update.
2685 2021-03-15 Tom Tromey <tromey@adacore.com>
2688 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2689 call for tagged type.
2691 2021-03-15 Tom Tromey <tromey@adacore.com>
2693 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2696 2021-03-15 Tom Tromey <tromey@adacore.com>
2698 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2700 (ada_assign_operation::evaluate): Update.
2701 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2704 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2706 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2708 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2710 * python/python.c (gdbpy_source_objfile_script): Use
2711 make_scoped_restore to restore gdbpy_current_objfile.
2712 (gdbpy_execute_objfile_script): Likewise.
2714 2021-03-14 Tom Tromey <tom@tromey.com>
2716 * dwarf2/read.c (read_attribute_value): Use cu_header
2719 2021-03-14 Tom Tromey <tom@tromey.com>
2721 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2722 (peek_die_abbrev): Use reader.abfd.
2724 2021-03-14 Tom Tromey <tom@tromey.com>
2726 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2729 2021-03-13 Tom Tromey <tom@tromey.com>
2731 * dwarf2/read.c (struct partial_die_info): Update.
2732 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2733 (load_partial_dies, partial_die_info::partial_die_info): Update.
2734 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2736 2021-03-13 Tom Tromey <tom@tromey.com>
2738 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2740 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2743 * cp-support.c: Use scoped_segv_handler_restore.
2744 * event-top.c (thread_local_segv_handler): Made static.
2745 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2747 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2749 * event-top.h (class scoped_segv_handler_restore): New class.
2750 (thread_local_segv_handler): Removed.
2752 2021-03-10 Tom Tromey <tromey@adacore.com>
2754 * parser-defs.h (parser_state): Change completion to bool.
2755 <parse_completion>: Likewise.
2756 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2757 (ada_resolve_variable, ada_resolve_function): Update.
2758 * ada-lang.c (ada_find_operator_symbol): Change
2759 parse_completion to bool.
2760 (ada_resolve_funcall, ada_resolve_variable)
2761 (ada_resolve_function): Likewise.
2763 2021-03-09 Tom Tromey <tromey@adacore.com>
2765 * eval.c (operation::evaluate_funcall): Use function formal
2766 parameter types when evaluating.
2768 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2770 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2771 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2772 and owner to m_owner.
2774 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2776 * f-exp.h (eval_op_f_loc): Declare.
2777 (expr::fortran_loc_operation): New typedef.
2778 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2780 (f77_keywords): Add LOC keyword.
2781 * f-lang.c (eval_op_f_loc): New function.
2782 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2784 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2786 * f-exp.h (eval_op_f_array_shape): Declare.
2787 (fortran_array_shape_operation): New type.
2788 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2790 (f77_keywords): Add "shape" keyword.
2791 * f-lang.c (fortran_array_shape): New function.
2792 (eval_op_f_array_shape): New function.
2793 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2795 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2797 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2799 (expr::fortran_array_size_1arg): New type.
2800 (expr::fortran_array_size_2arg): Likewise.
2801 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2802 UNOP_OR_BINOP_INTRINSIC.
2803 (f77_keywords): Add "size" keyword.
2804 * f-lang.c (fortran_array_size): New function.
2805 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2806 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2808 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2810 * f-exp.h (eval_op_f_rank): Declare.
2811 (expr::fortran_rank_operation): New typedef.
2812 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2814 (f77_keywords): Add "rank" keyword.
2815 * f-lang.c (eval_op_f_rank): New function.
2816 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2818 2021-03-08 Tom Tromey <tom@tromey.com>
2820 * printcmd.c (set_command): Remove null check.
2821 * value.c (init_if_undefined_command): Remove null check.
2823 2021-03-08 Tom Tromey <tom@tromey.com>
2825 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2827 * p-exp.y (variable): Update.
2828 * go-exp.y (variable): Update.
2829 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2830 Remove overload for objfile.
2831 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2833 (check_objfile): Likewise.
2834 (dump_for_expression): Likewise. Remove overload for objfile.
2835 (class var_msym_value_operation): Use bound_minimal_symbol.
2836 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2838 (var_msym_value_operation::evaluate_for_address)
2839 (var_msym_value_operation::evaluate_for_sizeof)
2840 (var_msym_value_operation::evaluate_for_cast): Update.
2841 * d-exp.y (PrimaryExpression): Update.
2842 * c-exp.y (variable): Update.
2843 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2844 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2846 * ada-exp.y (write_var_or_type): Update.
2848 2021-03-08 Tom Tromey <tom@tromey.com>
2850 * parser-defs.h (exp_uses_objfile): Return bool.
2851 * parse.c (exp_uses_objfile): Return bool.
2853 2021-03-08 Tom Tromey <tom@tromey.com>
2855 * value.h (eval_skip_value): Don't declare.
2856 * opencl-lang.c (eval_opencl_assign): Update.
2857 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2858 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2859 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2860 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2861 * expop.h (typeof_operation::evaluate)
2862 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2863 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2864 (cxx_cast_operation::evaluate): Update.
2865 * eval.c (eval_skip_value): Remove.
2866 (eval_op_scope, eval_op_var_entry_value)
2867 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2868 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2869 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2870 (eval_op_binary, eval_op_subscript, eval_op_equal)
2871 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2872 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2873 (eval_op_complement, eval_op_lognot, eval_op_ind)
2874 (eval_op_memval, eval_op_preinc, eval_op_predec)
2875 (eval_op_postinc, eval_op_postdec, eval_op_type)
2876 (eval_binop_assign_modify, eval_op_objc_msgcall)
2877 (eval_multi_subscript, logical_and_operation::evaluate)
2878 (logical_or_operation::evaluate, array_operation::evaluate)
2879 (operation::evaluate_for_cast)
2880 (var_msym_value_operation::evaluate_for_cast)
2881 (var_value_operation::evaluate_for_cast): Update.
2882 * c-lang.c (c_string_operation::evaluate): Update.
2883 * c-exp.h (objc_nsstring_operation::evaluate)
2884 (objc_selector_operation::evaluate): Update.
2885 * ada-lang.c (ada_assign_operation::evaluate)
2886 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2887 (ada_atr_size): Update.
2889 2021-03-08 Tom Tromey <tom@tromey.com>
2891 * eval.c: Merge "namespace" scopes.
2893 2021-03-08 Tom Tromey <tom@tromey.com>
2895 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2897 * parse.c (expr_builder::expr_builder, expr_builder::release):
2900 2021-03-08 Tom Tromey <tom@tromey.com>
2902 * parse.c (expression::expression, expression::~expression):
2904 * expression.h (struct expression): Inline constructor. Remove
2907 2021-03-08 Tom Tromey <tom@tromey.com>
2909 * std-operator.def (BINOP_END): Remove.
2910 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2911 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2912 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2913 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2914 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2917 2021-03-08 Tom Tromey <tom@tromey.com>
2919 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2921 2021-03-08 Tom Tromey <tom@tromey.com>
2923 * std-operator.def (OP_EXTENDED0): Remove.
2925 2021-03-08 Tom Tromey <tom@tromey.com>
2927 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2928 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2931 2021-03-08 Tom Tromey <tom@tromey.com>
2933 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2934 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2936 2021-03-08 Tom Tromey <tom@tromey.com>
2938 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2939 * ada-lang.c (ada_binop_minmax): Update.
2940 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2941 Use BINOP_MIN and BINOP_MAX.
2943 2021-03-08 Tom Tromey <tom@tromey.com>
2945 * value.h (evaluate_subexp_with_coercion): Don't declare.
2946 * parse.c (exp_descriptor_standard): Remove.
2947 (expr_builder::expr_builder, expr_builder::release): Update.
2948 (expression::expression): Remove size_t parameter.
2949 (expression::~expression): Simplify.
2950 (expression::resize): Remove.
2951 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2952 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2953 (write_exp_elt_longcst, write_exp_elt_floatcst)
2954 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2955 (write_exp_string_vector, write_exp_bitstring): Remove.
2956 * p-lang.h (class pascal_language) <opcode_print_table,
2957 op_print_tab>: Remove.
2958 * p-lang.c (pascal_language::op_print_tab): Remove.
2959 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2961 * objc-lang.c (objc_op_print_tab): Remove.
2962 (class objc_language) <opcode_print_table>: Remove.
2963 * m2-lang.h (class m2_language) <opcode_print_table,
2964 op_print_tab>: Remove.
2965 * m2-lang.c (m2_language::op_print_tab): Remove.
2966 * language.h (struct language_defn) <post_parser, expression_ops,
2967 opcode_print_table>: Remove.
2968 * language.c (language_defn::expression_ops)
2969 (auto_or_unknown_language::opcode_print_table): Remove.
2970 * go-lang.h (class go_language) <opcode_print_table,
2971 op_print_tab>: Remove.
2972 * go-lang.c (go_language::op_print_tab): Remove.
2973 * f-lang.h (class f_language) <opcode_print_table>: Remove
2974 <op_print_tab>: Remove.
2975 * f-lang.c (f_language::op_print_tab): Remove.
2976 * expression.h (union exp_element): Remove.
2977 (struct expression): Remove size_t parameter from constructor.
2979 <first_opcode>: Update.
2980 <nelts, elts>: Remove.
2981 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2982 (evaluate_subexp_standard, print_expression, op_string)
2983 (dump_raw_expression): Don't declare.
2984 * expprint.c (print_expression, print_subexp)
2985 (print_subexp_funcall, print_subexp_standard, op_string)
2986 (dump_raw_expression, dump_subexp, dump_subexp_body)
2987 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2988 (dump_prefix_expression): Update.
2989 * eval.c (evaluate_subexp): Remove.
2990 (evaluate_expression, evaluate_type): Update.
2991 (evaluate_subexpression_type): Remove.
2992 (fetch_subexp_value): Remove "pc" parameter. Update.
2993 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2994 (evaluate_subexp_standard, evaluate_subexp_for_address)
2995 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2996 (evaluate_subexp_for_cast): Remove.
2997 (parse_and_eval_type): Update.
2998 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2999 * d-lang.c (d_op_print_tab): Remove.
3000 (class d_language) <opcode_print_table>: Remove.
3001 * c-lang.h (c_op_print_tab): Don't declare.
3002 * c-lang.c (c_op_print_tab): Remove.
3003 (class c_language, class cplus_language, class asm_language, class
3004 minimal_language) <opcode_print_table>: Remove.
3005 * breakpoint.c (update_watchpoint, watchpoint_check)
3006 (watchpoint_exp_is_const, watch_command_1): Update.
3007 * ax-gdb.h (union exp_element): Don't declare.
3008 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3009 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3010 (gen_expr_binop_rest): Remove.
3011 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3012 * ada-lang.c (ada_op_print_tab): Remove.
3013 (class ada_language) <post_parser, opcode_print_table>: Remove.
3015 2021-03-08 Tom Tromey <tom@tromey.com>
3017 * go-lang.c (go_language::expression_ops): Don't declare.
3018 * go-lang.h (class go_language) <expression_ops>: Remove.
3019 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3021 (class opencl_language) <expression_ops>: Remove.
3022 * d-lang.c (class d_language) <expression_ops>: Remove.
3023 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3024 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3025 (class c_language, class cplus_language, class asm_language)
3026 (class minimal_language) <expression_ops>: Remove.
3028 2021-03-08 Tom Tromey <tom@tromey.com>
3030 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3031 (evaluate_subexp_type, assign_aggregate)
3032 (aggregate_assign_positional, aggregate_assign_from_choices)
3033 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3034 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3035 (ada_operator_check, ada_forward_operator_length)
3036 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3038 (post_parser): Update.
3039 (class ada_language) <expresssion_ops>: Remove.
3041 2021-03-08 Tom Tromey <tom@tromey.com>
3043 * m2-lang.h (class m2_language) <expresssion_ops,
3044 exp_descriptor_modula2>: Remove.
3045 * m2-lang.c (evaluate_subexp_modula2)
3046 (m2_language::exp_descriptor_modula2): Remove.
3048 2021-03-08 Tom Tromey <tom@tromey.com>
3050 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3051 <exp_descriptor_tab>: Remove.
3052 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3053 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3054 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3055 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3058 2021-03-08 Tom Tromey <tom@tromey.com>
3060 * rust-lang.h (class rust_language) <expression_ops,
3061 exp_descriptor_tab>: Remove.
3062 * rust-lang.c (rust_evaluate_funcall): Remove.
3063 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3065 (rust_evaluate_subexp): Remove.
3066 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3067 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3068 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3070 2021-03-08 Tom Tromey <tom@tromey.com>
3072 * ada-exp.y: Create operations.
3073 (empty_stoken): Remove.
3074 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3075 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3076 (components): New global.
3077 (push_component, choice_component, pop_component, pop_components):
3079 (associations): New global
3080 (push_association, pop_association, pop_associations): New
3082 (ada_parse): Update.
3083 (write_var_from_sym, write_int): Create operations.
3084 (write_exp_op_with_string): Remove.
3085 (write_object_renaming, write_selectors, write_ambiguous_var)
3086 (write_var_or_type, write_name_assoc): Create operations.
3087 * ada-lang.h (ada_index_type): Declare.
3088 * ada-lang.c (ada_index_type): No longer static.
3090 2021-03-08 Tom Tromey <tom@tromey.com>
3092 * f-exp.y: Create operations.
3093 (f_language::parser): Update.
3095 2021-03-08 Tom Tromey <tom@tromey.com>
3097 * m2-exp.y: Create operations.
3098 (m2_language::parser): Update.
3100 2021-03-08 Tom Tromey <tom@tromey.com>
3102 * p-exp.y: Create operations.
3103 (pascal_language::parser): Update.
3105 2021-03-08 Tom Tromey <tom@tromey.com>
3107 * d-exp.y: Create operations.
3110 2021-03-08 Tom Tromey <tom@tromey.com>
3112 * go-exp.y: Create operations.
3113 (go_language::parser): Update.
3115 2021-03-08 Tom Tromey <tom@tromey.com>
3117 * objc-lang.c (end_msglist): Create operations.
3118 * c-exp.y: Change parser to create operations.
3119 (write_destructor_name): Remove.
3122 2021-03-08 Tom Tromey <tom@tromey.com>
3124 * rust-exp.y: Create operations.
3125 (rust_parser::convert_params_to_expression): Change return type.
3126 (binop_maker_ftype): New typedef.
3127 (maker_map): New global.
3128 (rust_parser::convert_ast_to_expression): Change return type.
3129 (rust_language::parser): Update.
3130 (_initialize_rust_exp): Initialize maker_map.
3132 2021-03-08 Tom Tromey <tom@tromey.com>
3134 * stap-probe.c (binop_maker_ftype): New typedef.
3135 (stap_maker_map): New global.
3136 (stap_make_binop): New function.
3137 (stap_parse_register_operand): Return operation_up.
3138 (stap_parse_single_operand, stap_parse_argument_conditionally)
3139 (stap_parse_argument_1): Likewise.
3140 (stap_parse_argument): Create operations.
3141 (stap_probe::parse_arguments): Update.
3142 (_initialize_stap_probe): Initialize stap_maker_map.
3143 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3145 * i386-tdep.h (i386_stap_parse_special_token): Change return
3147 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3148 (i386_stap_parse_special_token_three_arg_disp)
3149 (i386_stap_parse_special_token): Change return type.
3150 * gdbarch.sh (stap_parse_special_token): Change return type.
3151 * gdbarch.c: Rebuild.
3152 * gdbarch.h: Rebuild.
3153 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3155 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3158 2021-03-08 Tom Tromey <tom@tromey.com>
3160 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3161 * gdbarch.h: Rebuild.
3162 * gdbarch.c: Rebuild.
3163 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3164 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3166 (amd64_dtrace_parse_probe_argument): Update.
3168 2021-03-08 Tom Tromey <tom@tromey.com>
3170 * parser-defs.h (struct parser_state) <push, push_new,
3171 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3172 wrap2>: New methods.
3173 <m_operations>: New member.
3174 * parse.c (parser_state::push_c_string)
3175 (parser_state::push_symbol, parser_state::push_dollar): New
3178 2021-03-08 Tom Tromey <tom@tromey.com>
3180 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3182 (struct parser_state) <mark_struct_expression>: New method.
3183 * parse.c (parser_state::mark_struct_expression): Update assert.
3184 (parser_state::mark_struct_expression): New method.
3185 (parser_state::mark_completion_tag): Update assert.
3186 (parse_expression_for_completion): Handle expout_last_op.
3188 2021-03-08 Tom Tromey <tom@tromey.com>
3190 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3192 * value.h (fetch_subexp_value): Add "op" parameter.
3193 * value.c (init_if_undefined_command): Update.
3194 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3195 * stap-probe.c (stap_probe::compile_to_ax): Update.
3196 * printcmd.c (set_command): Update.
3197 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3199 * parser-defs.h (struct expr_builder) <set_operation>: New
3201 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3202 * expression.h (struct expression) <first_opcode>: Update.
3204 * expprint.c (dump_raw_expression, dump_prefix_expression):
3206 * expop.h (class var_value_operation) <get_symbol>: New method.
3207 (class register_operation) <get_name>: New method.
3208 (class equal_operation): No longer a typedef, now a subclass.
3209 (class unop_memval_operation) <get_type>: New method.
3210 (class assign_operation) <get_lhs>: New method.
3211 (class unop_cast_operation) <get_type>: New method.
3212 * eval.c (evaluate_expression, evaluate_type)
3213 (evaluate_subexpression_type): Update.
3214 (fetch_subexp_value): Add "op" parameter.
3215 (parse_and_eval_type): Update.
3216 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3217 * breakpoint.c (update_watchpoint, watchpoint_check)
3218 (watchpoint_exp_is_const, watch_command_1): Update.
3219 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3222 2021-03-08 Tom Tromey <tom@tromey.com>
3224 * ada-lang.c (ada_value_binop): Do not use op_string.
3226 2021-03-08 Tom Tromey <tom@tromey.com>
3228 * expprint.c (dump_for_expression): New overload.
3229 * expop.h (check_objfile, dump_for_expression): Declare new
3231 * ada-lang.c (check_objfile): New overload.
3232 (assign_component, ada_aggregate_component::uses_objfile)
3233 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3234 (ada_aggregate_component::assign_aggregate)
3235 (ada_positional_component::uses_objfile)
3236 (ada_positional_component::dump, ada_positional_component::assign)
3237 (ada_discrete_range_association::uses_objfile)
3238 (ada_discrete_range_association::dump)
3239 (ada_discrete_range_association::assign)
3240 (ada_name_association::uses_objfile, ada_name_association::dump)
3241 (ada_name_association::assign)
3242 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3243 (ada_choices_component::assign)
3244 (ada_others_component::uses_objfile, ada_others_component::dump)
3245 (ada_others_component::assign, ada_assign_operation::evaluate):
3247 * ada-exp.h (ada_string_operation) <get_name>: New method.
3248 (class ada_assign_operation): New.
3249 (class ada_component): New.
3250 (ada_component_up): New typedef.
3251 (class ada_aggregate_operation, class ada_aggregate_component)
3252 (class ada_positional_component, class ada_others_component)
3253 (class ada_association): New.
3254 (ada_association_up): New typedef.
3255 (class ada_choices_component)
3256 (class ada_discrete_range_association)
3257 (class ada_name_association): New.
3259 2021-03-08 Tom Tromey <tom@tromey.com>
3261 * ada-lang.c (ada_var_value_operation::resolve)
3262 (ada_funcall_operation::resolve)
3263 (ada_ternop_slice_operation::resolve): New methods.
3264 * ada-exp.h (struct ada_resolvable): New.
3265 (class ada_var_value_operation): Derive from ada_resolvable.
3266 <get_block, resolve>: New methods.
3267 (class ada_funcall_operation): Derive from ada_resolvable.
3268 <resolve>: New method.
3269 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3270 <resolve>: New method.
3272 2021-03-08 Tom Tromey <tom@tromey.com>
3274 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3275 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3277 (class ada_funcall_operation): New.
3279 2021-03-08 Tom Tromey <tom@tromey.com>
3281 * ada-lang.c (ada_structop_operation::evaluate): New method.
3282 * ada-exp.h (class ada_structop_operation): New.
3284 2021-03-08 Tom Tromey <tom@tromey.com>
3286 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3287 * ada-exp.h (class ada_unop_ind_operation): New.
3289 2021-03-08 Tom Tromey <tom@tromey.com>
3291 * ada-lang.c (ada_binop_exp): No longer static.
3292 * ada-exp.h (ada_binop_exp_operation): New typedef.
3294 2021-03-08 Tom Tromey <tom@tromey.com>
3296 * ada-lang.c (ada_val_atr): No longer static.
3297 (ada_atr_val_operation::evaluate): New method.
3298 * ada-exp.h (class ada_atr_val_operation): New.
3300 2021-03-08 Tom Tromey <tom@tromey.com>
3302 * ada-lang.c (ada_pos_atr): No longer static.
3303 * ada-exp.h (ada_pos_operation): New typedef.
3305 2021-03-08 Tom Tromey <tom@tromey.com>
3307 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3309 (ada_evaluate_subexp): Use it.
3311 2021-03-08 Tom Tromey <tom@tromey.com>
3313 * ada-lang.c (ada_binop_minmax): No longer static.
3314 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3317 2021-03-08 Tom Tromey <tom@tromey.com>
3319 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3321 * ada-exp.h (class ada_var_msym_value_operation): New.
3323 2021-03-08 Tom Tromey <tom@tromey.com>
3325 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3326 (ada_var_value_operation::evaluate): New methods.
3327 * ada-exp.h (class ada_var_value_operation): New.
3329 2021-03-08 Tom Tromey <tom@tromey.com>
3331 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3332 * ada-exp.h (class ada_unop_atr_operation): New.
3334 2021-03-08 Tom Tromey <tom@tromey.com>
3336 * ada-lang.c (ada_binop_in_bounds): No longer static.
3337 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3339 2021-03-08 Tom Tromey <tom@tromey.com>
3341 * ada-lang.c (ada_ternop_slice): No longer static.
3342 * ada-exp.h (class ada_ternop_slice_operation): New.
3344 2021-03-08 Tom Tromey <tom@tromey.com>
3346 * ada-exp.h (ada_bitwise_operation): New template class.
3347 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3348 (ada_bitwise_xor_operation): New typedefs.
3350 2021-03-08 Tom Tromey <tom@tromey.com>
3352 * ada-lang.c (ada_equal_binop): No longer static.
3353 * ada-exp.h (class ada_binop_equal_operation): New.
3355 2021-03-08 Tom Tromey <tom@tromey.com>
3357 * ada-lang.c (ada_mult_binop): No longer static.
3358 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3359 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3361 2021-03-08 Tom Tromey <tom@tromey.com>
3363 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3364 * ada-exp.h (class ada_binop_addsub_operation): New.
3366 2021-03-08 Tom Tromey <tom@tromey.com>
3368 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3369 (ada_resolve_variable): Declare.
3370 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3371 (ada_resolve_variable): New functions.
3372 (resolve_subexp): Update.
3374 2021-03-08 Tom Tromey <tom@tromey.com>
3376 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3378 * c-exp.h (class opencl_ternop_cond_operation): New.
3380 2021-03-08 Tom Tromey <tom@tromey.com>
3382 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3384 * c-exp.h (class opencl_logical_binop_operation): New.
3386 2021-03-08 Tom Tromey <tom@tromey.com>
3388 * opencl-lang.c (opencl_structop_operation::evaluate): New
3390 * c-exp.h (class opencl_structop_operation): New.
3392 2021-03-08 Tom Tromey <tom@tromey.com>
3394 * opencl-lang.c (opencl_logical_not): No longer static. Change
3396 (evaluate_subexp_opencl): Update.
3397 * c-exp.h (opencl_notequal_operation): New typedef.
3399 2021-03-08 Tom Tromey <tom@tromey.com>
3401 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3402 static. Change parameters.
3403 (eval_opencl_assign): No longer static. Add "op" parameter.
3404 (evaluate_subexp_opencl): Update.
3405 * c-exp.h (opencl_binop_operation): New template class.
3406 (opencl_assign_operation, opencl_equal_operation)
3407 (opencl_notequal_operation, opencl_less_operation)
3408 (opencl_gtr_operation, opencl_geq_operation)
3409 (opencl_leq_operation): New typedefs.
3411 2021-03-08 Tom Tromey <tom@tromey.com>
3413 * opencl-lang.c (opencl_value_cast): No longer static.
3414 * c-exp.h (opencl_cast_type_operation): New typedef.
3416 2021-03-08 Tom Tromey <tom@tromey.com>
3418 * f-exp.h (eval_op_f_allocated): Declare.
3419 (fortran_allocated_operation): New typedef.
3420 * f-lang.c (eval_op_f_allocated): No longer static.
3422 2021-03-08 Tom Tromey <tom@tromey.com>
3424 * f-lang.c (eval_op_f_associated): New functions.
3425 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3428 2021-03-08 Tom Tromey <tom@tromey.com>
3430 * f-lang.c (fortran_bound_1arg::evaluate)
3431 (fortran_bound_2arg::evaluate): New methods.
3432 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3435 2021-03-08 Tom Tromey <tom@tromey.com>
3437 * expop.h (class unop_addr_operation) <get_expression>: New
3439 * f-lang.c (fortran_undetermined::value_subarray)
3440 (fortran_undetermined::evaluate): New methods.
3441 (fortran_prepare_argument): New overload.
3442 * f-exp.h (class fortran_range_operation)
3443 (class fortran_undetermined): New classes.
3445 2021-03-08 Tom Tromey <tom@tromey.com>
3447 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3448 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3451 2021-03-08 Tom Tromey <tom@tromey.com>
3453 * expression.h (class operation) <evaluate_funcall>: New methods.
3454 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3455 (class var_value_operation) <evaluate_funcall>: New method.
3456 (class structop_base_operation) <evaluate_funcall>: New method.
3457 (class var_msym_value_operation) <evaluate_funcall>: New method.
3458 (class structop_member_base): New class.
3459 (class structop_member_operation): Derive from
3460 structop_member_base.
3461 (class structop_mptr_operation): Derive from
3462 structop_member_base.
3463 (class funcall_operation): New class.
3464 * eval.c (operation::evaluate_funcall)
3465 (var_value_operation::evaluate_funcall)
3466 (scope_operation::evaluate_funcall)
3467 (structop_member_base::evaluate_funcall)
3468 (structop_base_operation::evaluate_funcall): New methods.
3470 2021-03-08 Tom Tromey <tom@tromey.com>
3472 * expop.h (class array_operation): New.
3473 * eval.c (array_operation::evaluate_struct_tuple)
3474 (array_operation::evaluate): New methods.
3476 2021-03-08 Tom Tromey <tom@tromey.com>
3478 * expop.h (class adl_func_operation): New.
3479 * eval.c (adl_func_operation::evaluate): New method.
3481 2021-03-08 Tom Tromey <tom@tromey.com>
3483 * ada-lang.c (ada_unop_in_range): No longer static.
3484 * ada-exp.h (class ada_unop_range_operation): New.
3486 2021-03-08 Tom Tromey <tom@tromey.com>
3488 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3490 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3491 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3493 2021-03-08 Tom Tromey <tom@tromey.com>
3495 * expop.h (class logical_and_operation)
3496 (class logical_or_operation): New.
3497 * eval.c (logical_and_operation::evaluate)
3498 (logical_or_operation::evaluate): New methods.
3499 * ax-gdb.c (logical_and_operation::do_generate_ax)
3500 (logical_or_operation::do_generate_ax): New methods.
3502 2021-03-08 Tom Tromey <tom@tromey.com>
3504 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3506 * m2-exp.h: New file.
3508 2021-03-08 Tom Tromey <tom@tromey.com>
3510 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3511 * rust-exp.h (class rust_aggregate_operation): New.
3513 2021-03-08 Tom Tromey <tom@tromey.com>
3515 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3517 * rust-exp.h (class rust_struct_anon): New.
3518 (class rust_structop): New.
3520 2021-03-08 Tom Tromey <tom@tromey.com>
3522 * rust-lang.c (rust_range): No longer static.
3523 * rust-exp.h (class rust_range_operation): New.
3525 2021-03-08 Tom Tromey <tom@tromey.com>
3527 * rust-lang.c (rust_subscript): No longer static.
3528 * rust-exp.h (class rust_subscript_operation): New.
3530 2021-03-08 Tom Tromey <tom@tromey.com>
3532 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3534 (rust_evaluate_subexp): Update.
3535 * rust-exp.h (class rust_unop_ind_operation): New.
3537 2021-03-08 Tom Tromey <tom@tromey.com>
3539 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3540 longer static. Add "opcode" parameter.
3541 (rust_evaluate_subexp): Update.
3542 * rust-exp.h: New file.
3544 2021-03-08 Tom Tromey <tom@tromey.com>
3546 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3547 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3548 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3549 (evaluate_subexp_f): Update.
3550 * f-exp.h: New file.
3552 2021-03-08 Tom Tromey <tom@tromey.com>
3554 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3555 * ada-exp.h (class ada_ternop_range_operation): New.
3557 2021-03-08 Tom Tromey <tom@tromey.com>
3559 * ada-lang.c (ada_qual_operation::evaluate): New method.
3560 * ada-exp.h (class ada_qual_operation): New.
3562 2021-03-08 Tom Tromey <tom@tromey.com>
3564 * ada-lang.c (ada_string_operation::evaluate): New method.
3565 * ada-exp.h (class ada_string_operation): New.
3567 2021-03-08 Tom Tromey <tom@tromey.com>
3569 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3570 * ada-exp.h: New file.
3572 2021-03-08 Tom Tromey <tom@tromey.com>
3574 * expop.h (class multi_subscript_operation): New.
3575 * eval.c (multi_subscript_operation::evaluate): New method.
3577 2021-03-08 Tom Tromey <tom@tromey.com>
3579 * eval.c (objc_msgcall_operation::evaluate): New method.
3580 * c-exp.h (class objc_msgcall_operation): New.
3582 2021-03-08 Tom Tromey <tom@tromey.com>
3584 * expop.h (class var_value_operation): New.
3585 * eval.c (var_value_operation::evaluate)
3586 (var_value_operation::evaluate_for_address)
3587 (var_value_operation::evaluate_with_coercion)
3588 (var_value_operation::evaluate_for_sizeof)
3589 (var_value_operation::evaluate_for_cast): New methods.
3590 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3592 2021-03-08 Tom Tromey <tom@tromey.com>
3594 * expop.h (cxx_cast_ftype): New typedef.
3595 (cxx_cast_operation): New template.
3596 (dynamic_cast_operation, reinterpret_cast_operation): New
3599 2021-03-08 Tom Tromey <tom@tromey.com>
3601 * expop.h (class unop_cast_type_operation): New.
3602 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3605 2021-03-08 Tom Tromey <tom@tromey.com>
3607 * expop.h (class unop_cast_operation): New.
3608 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3610 2021-03-08 Tom Tromey <tom@tromey.com>
3612 * expop.h (class assign_modify_operation): New.
3613 * eval.c (eval_binop_assign_modify): No longer static.
3614 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3616 2021-03-08 Tom Tromey <tom@tromey.com>
3618 * expop.h (class assign_operation): New.
3619 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3621 2021-03-08 Tom Tromey <tom@tromey.com>
3623 * expop.h (class type_instance_operation): New.
3624 * eval.c (type_instance_operation::evaluate): New method.
3626 2021-03-08 Tom Tromey <tom@tromey.com>
3628 * expop.h (class op_this_operation): New.
3629 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3631 2021-03-08 Tom Tromey <tom@tromey.com>
3633 * expop.h (class unop_memval_operation)
3634 (class unop_memval_type_operation): New.
3635 * eval.c (eval_op_memval): No longer static.
3636 (unop_memval_operation::evaluate_for_address)
3637 (unop_memval_type_operation::evaluate_for_address)
3638 (unop_memval_operation::evaluate_for_sizeof)
3639 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3640 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3641 (unop_memval_type_operation::do_generate_ax): New methods.
3643 2021-03-08 Tom Tromey <tom@tromey.com>
3645 * expop.h (class unop_alignof_operation): New.
3646 * eval.c (eval_op_alignof): No longer static.
3648 2021-03-08 Tom Tromey <tom@tromey.com>
3650 * expop.h (class unop_sizeof_operation): New.
3651 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3653 2021-03-08 Tom Tromey <tom@tromey.com>
3655 * expop.h (class unop_addr_operation): New.
3656 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3658 2021-03-08 Tom Tromey <tom@tromey.com>
3660 * expop.h (class typeid_operation): New.
3662 2021-03-08 Tom Tromey <tom@tromey.com>
3664 * expop.h (class decltype_operation): New.
3666 2021-03-08 Tom Tromey <tom@tromey.com>
3668 * expop.h (class typeof_operation): New.
3670 2021-03-08 Tom Tromey <tom@tromey.com>
3672 * expop.h (class type_operation): New.
3673 * eval.c (eval_op_type): No longer static.
3675 2021-03-08 Tom Tromey <tom@tromey.com>
3677 * expop.h (class unop_ind_base_operation)
3678 (class unop_ind_operation): New.
3679 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3680 (unop_ind_base_operation::evaluate_for_address)
3681 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3682 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3684 2021-03-08 Tom Tromey <tom@tromey.com>
3686 * expop.h (unop_incr_operation): New template.
3687 (preinc_operation, predec_operation, postinc_operation)
3688 (postdec_operation): New typedefs.
3689 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3690 (eval_op_postdec): No longer static.
3692 2021-03-08 Tom Tromey <tom@tromey.com>
3694 * expop.h (unary_ftype): New typedef.
3695 (unop_operation, usual_ax_binop_operation): New templates.
3696 (unary_plus_operation, unary_neg_operation)
3697 (unary_complement_operation, unary_logical_not_operation): New
3699 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3700 (eval_op_lognot): No longer static.
3701 * ax-gdb.c (gen_expr_unop): New function.
3703 2021-03-08 Tom Tromey <tom@tromey.com>
3705 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3707 2021-03-08 Tom Tromey <tom@tromey.com>
3709 * expop.h (class repeat_operation): New.
3710 * eval.c (eval_op_repeat): No longer static. Remove "op"
3712 (evaluate_subexp_standard): Update.
3713 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3715 2021-03-08 Tom Tromey <tom@tromey.com>
3717 * expop.h (class comparison_operation): New.
3718 (equal_operation, notequal_operation, less_operation)
3719 (gtr_operation, geq_operation, leq_operation): New typedefs.
3720 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3721 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3723 2021-03-08 Tom Tromey <tom@tromey.com>
3725 * expop.h (class subscript_operation): New.
3726 * eval.c (eval_op_subscript): No longer static.
3728 2021-03-08 Tom Tromey <tom@tromey.com>
3730 * expop.h (class binop_operation, class usual_ax_binop_operation):
3732 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3733 (div_operation, rem_operation, lsh_operation, rsh_operation)
3734 (bitwise_and_operation, bitwise_ior_operation)
3735 (bitwise_xor_operation): New typedefs.
3736 * eval.c (eval_op_binary): No longer static.
3738 2021-03-08 Tom Tromey <tom@tromey.com>
3740 * expop.h (class sub_operation): New.
3741 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3742 (evaluate_subexp_standard): Update.
3744 2021-03-08 Tom Tromey <tom@tromey.com>
3746 * expop.h (class add_operation): New.
3747 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3748 (evaluate_subexp_standard): Update.
3750 2021-03-08 Tom Tromey <tom@tromey.com>
3752 * expop.h (class concat_operation): New.
3753 * eval.c (eval_op_concat): No longer static. Remove "op"
3755 (evaluate_subexp_standard): Update.
3757 2021-03-08 Tom Tromey <tom@tromey.com>
3759 * expop.h (class structop_member_operation)
3760 (class structop_mptr_operation): New.
3761 * eval.c (eval_op_member): No longer static.
3763 2021-03-08 Tom Tromey <tom@tromey.com>
3765 * expop.h (class structop_ptr_operation): New.
3766 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3769 2021-03-08 Tom Tromey <tom@tromey.com>
3771 * expop.h (class structop_base_operation)
3772 (class structop_operation): New.
3773 * eval.c (eval_op_structop_struct): No longer static.
3775 2021-03-08 Tom Tromey <tom@tromey.com>
3777 * expop.h (class complex_operation): New.
3779 2021-03-08 Tom Tromey <tom@tromey.com>
3781 * eval.c (eval_op_objc_selector): No longer static.
3782 * c-exp.h (class objc_selector_operation): New.
3784 2021-03-08 Tom Tromey <tom@tromey.com>
3786 * eval.c: Include c-exp.h.
3787 * c-exp.h (class objc_nsstring_operation): New.
3789 2021-03-08 Tom Tromey <tom@tromey.com>
3791 * c-lang.c (c_string_operation::evaluate): New method.
3792 * c-exp.h: New file.
3794 2021-03-08 Tom Tromey <tom@tromey.com>
3796 * expop.h (class ternop_cond_operation): New.
3797 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3799 2021-03-08 Tom Tromey <tom@tromey.com>
3801 * expop.h (class ternop_slice_operation): New.
3802 * eval.c (eval_op_ternop): No longer static.
3804 2021-03-08 Tom Tromey <tom@tromey.com>
3806 * expop.h (class string_operation): New.
3807 * eval.c (eval_op_string): No longer static.
3809 2021-03-08 Tom Tromey <tom@tromey.com>
3811 * expop.h (class internalvar_operation): New.
3812 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3814 2021-03-08 Tom Tromey <tom@tromey.com>
3816 * expop.h (class bool_operation): New.
3818 2021-03-08 Tom Tromey <tom@tromey.com>
3820 * expop.h (class register_operation): New.
3821 * eval.c (eval_op_register): No longer static.
3822 * ax-gdb.c (register_operation::do_generate_ax): New method.
3824 2021-03-08 Tom Tromey <tom@tromey.com>
3826 * expop.h (class last_operation): New.
3828 2021-03-08 Tom Tromey <tom@tromey.com>
3830 * expop.h (class func_static_var_operation): New.
3831 * eval.c (eval_op_func_static_var): No longer static.
3833 2021-03-08 Tom Tromey <tom@tromey.com>
3835 * expop.h (class var_entry_value_operation): New.
3836 * eval.c (eval_op_var_entry_value): No longer static.
3838 2021-03-08 Tom Tromey <tom@tromey.com>
3840 * expression.h (class operation) <set_outermost>: New method.
3841 * expop.h (class var_msym_value_operation): New.
3842 * eval.c (eval_op_var_msym_value): No longer static.
3843 (var_msym_value_operation::evaluate_for_address)
3844 (var_msym_value_operation::evaluate_for_sizeof)
3845 (var_msym_value_operation::evaluate_for_cast): New methods.
3846 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3849 2021-03-08 Tom Tromey <tom@tromey.com>
3851 * expop.h (class long_const_operation): New.
3852 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3854 2021-03-08 Tom Tromey <tom@tromey.com>
3856 * expop.h (class scope_operation): New.
3857 * eval.c (eval_op_scope): No longer static.
3858 (scope_operation::evaluate_for_address): New method.
3859 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3861 2021-03-08 Tom Tromey <tom@tromey.com>
3863 * expprint.c (float_const_operation::dump): New method.
3864 * expop.h (float_data): New typedef.
3865 (class float_const_operation): New.
3867 2021-03-08 Tom Tromey <tom@tromey.com>
3869 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3870 * ax-gdb.c (gen_expr_binop): New function.
3871 (gen_expr_structop): Likewise.
3873 2021-03-08 Tom Tromey <tom@tromey.com>
3875 * expprint.c (expr::dump_for_expression): New functions.
3876 * expop.h (dump_for_expression): New overloads.
3877 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3880 2021-03-08 Tom Tromey <tom@tromey.com>
3882 * expression.h (expr::operation): New class.
3883 (expr::make_operation): New function.
3884 (expr::operation_up): New typedef.
3885 * expop.h: New file.
3886 * eval.c (operation::evaluate_for_cast)
3887 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3889 * ax-gdb.c (operation::generate_ax): New method.
3891 2021-03-08 Tom Tromey <tom@tromey.com>
3893 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3894 (gen_expr_binop_rest): New overload.
3896 2021-03-08 Tom Tromey <tom@tromey.com>
3898 * eval.c (eval_multi_subscript): New function.
3899 (evaluate_subexp_standard): Use it.
3901 2021-03-08 Tom Tromey <tom@tromey.com>
3903 * ada-lang.c (ada_binop_exp): New function.
3904 (ada_evaluate_subexp): Use it.
3906 2021-03-08 Tom Tromey <tom@tromey.com>
3908 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3910 (ada_evaluate_subexp): Use it.
3912 2021-03-08 Tom Tromey <tom@tromey.com>
3914 * ada-lang.c (ada_binop_minmax): New function.
3915 (ada_evaluate_subexp): Use it.
3917 2021-03-08 Tom Tromey <tom@tromey.com>
3919 * ada-lang.c (ada_unop_atr): New function.
3920 (ada_evaluate_subexp): Use it.
3922 2021-03-08 Tom Tromey <tom@tromey.com>
3924 * ada-lang.c (ada_binop_in_bounds): New function.
3925 (ada_evaluate_subexp): Use it.
3927 2021-03-08 Tom Tromey <tom@tromey.com>
3929 * ada-lang.c (ada_ternop_slice): New function.
3930 (ada_evaluate_subexp): Use it.
3932 2021-03-08 Tom Tromey <tom@tromey.com>
3934 * ada-lang.c (ada_equal_binop): New function.
3935 (ada_evaluate_subexp): Use it.
3937 2021-03-08 Tom Tromey <tom@tromey.com>
3939 * ada-lang.c (ada_mult_binop): New function.
3940 (ada_evaluate_subexp): Use it.
3942 2021-03-08 Tom Tromey <tom@tromey.com>
3944 * ada-lang.c (ada_abs): New function.
3945 (ada_evaluate_subexp): Use it.
3947 2021-03-08 Tom Tromey <tom@tromey.com>
3949 * ada-lang.c (ada_atr_size): New function.
3950 (ada_evaluate_subexp): Use it.
3952 2021-03-08 Tom Tromey <tom@tromey.com>
3954 * ada-lang.c (ada_atr_tag): New function.
3955 (ada_evaluate_subexp): Use it.
3957 2021-03-08 Tom Tromey <tom@tromey.com>
3959 * ada-lang.c (ada_unop_in_range): New function.
3960 (ada_evaluate_subexp): Use it.
3962 2021-03-08 Tom Tromey <tom@tromey.com>
3964 * ada-lang.c (ada_unop_neg): New function.
3965 (ada_evaluate_subexp): Use it.
3967 2021-03-08 Tom Tromey <tom@tromey.com>
3969 * ada-lang.c (eval_ternop_in_range): New function.
3970 (ada_evaluate_subexp): Use it.
3972 2021-03-08 Tom Tromey <tom@tromey.com>
3974 * opencl-lang.c (eval_opencl_assign): New function.
3975 (evaluate_subexp_opencl): Use it.
3977 2021-03-08 Tom Tromey <tom@tromey.com>
3979 * eval.c (eval_op_objc_msgcall): New function.
3980 (evaluate_subexp_standard): Use it.
3982 2021-03-08 Tom Tromey <tom@tromey.com>
3984 * eval.c (eval_binop_assign_modify): New function.
3985 (evaluate_subexp_standard): Use it.
3987 2021-03-08 Tom Tromey <tom@tromey.com>
3989 * m2-lang.c (eval_op_m2_subscript): New function.
3990 (evaluate_subexp_modula2): Use it.
3992 2021-03-08 Tom Tromey <tom@tromey.com>
3994 * m2-lang.c (eval_op_m2_high): New function.
3995 (evaluate_subexp_modula2): Use it.
3997 2021-03-08 Tom Tromey <tom@tromey.com>
3999 * eval.c (evaluate_subexp_for_address_base): New function.
4000 (evaluate_subexp_for_address): Use it.
4001 (evaluate_subexp_for_sizeof_base): New function.
4002 (evaluate_subexp_for_sizeof): Use it.
4004 2021-03-08 Tom Tromey <tom@tromey.com>
4006 * rust-lang.c (eval_op_rust_structop): New function.
4007 (rust_evaluate_subexp): Use it.
4009 2021-03-08 Tom Tromey <tom@tromey.com>
4011 * rust-lang.c (eval_op_rust_struct_anon): New function.
4012 (rust_evaluate_subexp): Use it.
4014 2021-03-08 Tom Tromey <tom@tromey.com>
4016 * rust-lang.c (eval_op_rust_array): New function.
4017 (rust_evaluate_subexp): Use it.
4019 2021-03-08 Tom Tromey <tom@tromey.com>
4021 * rust-lang.c (eval_op_rust_complement): New function.
4022 (rust_evaluate_subexp): Use it.
4024 2021-03-08 Tom Tromey <tom@tromey.com>
4026 * rust-lang.c (eval_op_rust_ind): New function.
4027 (rust_evaluate_subexp): Use it.
4029 2021-03-08 Tom Tromey <tom@tromey.com>
4031 * rust-lang.c (rust_subscript): Change parameters.
4032 (rust_evaluate_subexp): Update.
4034 2021-03-08 Tom Tromey <tom@tromey.com>
4036 * rust-lang.c (rust_range): Change parameters.
4037 (rust_evaluate_subexp): Update.
4039 2021-03-08 Tom Tromey <tom@tromey.com>
4041 * f-lang.c (eval_op_f_allocated): New function.
4042 (evaluate_subexp_f): Use it.
4044 2021-03-08 Tom Tromey <tom@tromey.com>
4046 * f-lang.c (fortran_require_array): New function.
4047 (evaluate_subexp_f): Use it.
4049 2021-03-08 Tom Tromey <tom@tromey.com>
4051 * f-lang.c (eval_op_f_kind): New function.
4052 (evaluate_subexp_f): Use it.
4054 2021-03-08 Tom Tromey <tom@tromey.com>
4056 * f-lang.c (eval_op_f_cmplx): New function.
4057 (evaluate_subexp_f): Use it.
4059 2021-03-08 Tom Tromey <tom@tromey.com>
4061 * f-lang.c (eval_op_f_modulo): New function.
4062 (evaluate_subexp_f): Use it.
4064 2021-03-08 Tom Tromey <tom@tromey.com>
4066 * f-lang.c (eval_op_f_floor): New function.
4067 (evaluate_subexp_f): Use it.
4069 2021-03-08 Tom Tromey <tom@tromey.com>
4071 * f-lang.c (eval_op_f_ceil): New function.
4072 (evaluate_subexp_f): Use it.
4074 2021-03-08 Tom Tromey <tom@tromey.com>
4076 * f-lang.c (eval_op_f_mod): New function.
4077 (evaluate_subexp_f): Use it.
4079 2021-03-08 Tom Tromey <tom@tromey.com>
4081 * f-lang.c (eval_op_f_abs): New function.
4082 (evaluate_subexp_f): Use it.
4084 2021-03-08 Tom Tromey <tom@tromey.com>
4086 * eval.c (eval_op_type): New function.
4087 (evaluate_subexp_standard): Use it.
4089 2021-03-08 Tom Tromey <tom@tromey.com>
4091 * eval.c (eval_op_postdec): New function.
4092 (evaluate_subexp_standard): Use it.
4094 2021-03-08 Tom Tromey <tom@tromey.com>
4096 * eval.c (eval_op_postinc): New function.
4097 (evaluate_subexp_standard): Use it.
4099 2021-03-08 Tom Tromey <tom@tromey.com>
4101 * eval.c (eval_op_predec): New file.
4102 (evaluate_subexp_standard): Use it.
4104 2021-03-08 Tom Tromey <tom@tromey.com>
4106 * eval.c (eval_op_preinc): New function.
4107 (evaluate_subexp_standard): Use it.
4109 2021-03-08 Tom Tromey <tom@tromey.com>
4111 * eval.c (eval_op_memval): New function.
4112 (evaluate_subexp_standard): Use it.
4114 2021-03-08 Tom Tromey <tom@tromey.com>
4116 * eval.c (eval_op_alignof): New function.
4117 (evaluate_subexp_standard): Use it.
4119 2021-03-08 Tom Tromey <tom@tromey.com>
4121 * eval.c (eval_op_ind): New function.
4122 (evaluate_subexp_standard): Use it.
4124 2021-03-08 Tom Tromey <tom@tromey.com>
4126 * eval.c (eval_op_lognot): New function.
4127 (evaluate_subexp_standard): Use it.
4129 2021-03-08 Tom Tromey <tom@tromey.com>
4131 * eval.c (eval_op_complement): New function.
4132 (evaluate_subexp_standard): Use it.
4134 2021-03-08 Tom Tromey <tom@tromey.com>
4136 * eval.c (eval_op_neg): New function.
4137 (evaluate_subexp_standard): Use it.
4139 2021-03-08 Tom Tromey <tom@tromey.com>
4141 * eval.c (eval_op_plus): New function.
4142 (evaluate_subexp_standard): Use it.
4144 2021-03-08 Tom Tromey <tom@tromey.com>
4146 * eval.c (eval_op_repeat): New function.
4147 (evaluate_subexp_standard): Use it.
4149 2021-03-08 Tom Tromey <tom@tromey.com>
4151 * eval.c (eval_op_leq): New function.
4152 (evaluate_subexp_standard): Use it.
4154 2021-03-08 Tom Tromey <tom@tromey.com>
4156 * eval.c (eval_op_geq): New function.
4157 (evaluate_subexp_standard): Use it.
4159 2021-03-08 Tom Tromey <tom@tromey.com>
4161 * eval.c (eval_op_gtr): New function.
4162 (evaluate_subexp_standard): Use it.
4164 2021-03-08 Tom Tromey <tom@tromey.com>
4166 * eval.c (eval_op_less): New function.
4167 (evaluate_subexp_standard): Use it.
4169 2021-03-08 Tom Tromey <tom@tromey.com>
4171 * eval.c (eval_op_notequal): New function.
4172 (evaluate_subexp_standard): Use it.
4174 2021-03-08 Tom Tromey <tom@tromey.com>
4176 * eval.c (eval_op_equal): New function.
4177 (evaluate_subexp_standard): Use it.
4179 2021-03-08 Tom Tromey <tom@tromey.com>
4181 * eval.c (eval_op_subscript): New function.
4182 (evaluate_subexp_standard): Use it.
4184 2021-03-08 Tom Tromey <tom@tromey.com>
4186 * eval.c (eval_op_binary): New function.
4187 (evaluate_subexp_standard): Use it.
4189 2021-03-08 Tom Tromey <tom@tromey.com>
4191 * eval.c (eval_op_sub): New function.
4192 (evaluate_subexp_standard): Use it.
4194 2021-03-08 Tom Tromey <tom@tromey.com>
4196 * eval.c (eval_op_add): New function.
4197 (evaluate_subexp_standard): Use it.
4199 2021-03-08 Tom Tromey <tom@tromey.com>
4201 * eval.c (eval_op_member): New function.
4202 (evaluate_subexp_standard): Use it.
4204 2021-03-08 Tom Tromey <tom@tromey.com>
4206 * eval.c (eval_op_structop_ptr): New function.
4207 (evaluate_subexp_standard): Use it.
4209 2021-03-08 Tom Tromey <tom@tromey.com>
4211 * eval.c (eval_op_structop_struct): New function.
4212 (evaluate_subexp_standard): Use it.
4214 2021-03-08 Tom Tromey <tom@tromey.com>
4216 * eval.c (eval_op_ternop): New function.
4217 (evaluate_subexp_standard): Use it.
4219 2021-03-08 Tom Tromey <tom@tromey.com>
4221 * eval.c (eval_op_concat): New function.
4222 (evaluate_subexp_standard): Use it.
4224 2021-03-08 Tom Tromey <tom@tromey.com>
4226 * eval.c (eval_op_objc_selector): New function.
4227 (evaluate_subexp_standard): Use it.
4229 2021-03-08 Tom Tromey <tom@tromey.com>
4231 * eval.c (eval_op_string): New function.
4232 (evaluate_subexp_standard): Use it.
4234 2021-03-08 Tom Tromey <tom@tromey.com>
4236 * eval.c (eval_op_register): New function.
4237 (evaluate_subexp_standard): Use it.
4239 2021-03-08 Tom Tromey <tom@tromey.com>
4241 * eval.c (eval_op_func_static_var): New function.
4242 (evaluate_subexp_standard): Use it.
4244 2021-03-08 Tom Tromey <tom@tromey.com>
4246 * eval.c (eval_op_var_msym_value): New function.
4247 (evaluate_subexp_standard): Use it.
4249 2021-03-08 Tom Tromey <tom@tromey.com>
4251 * eval.c (eval_op_var_entry_value): New function.
4252 (evaluate_subexp_standard): Use it.
4254 2021-03-08 Tom Tromey <tom@tromey.com>
4256 * eval.c (eval_op_scope): New function.
4257 (evaluate_subexp_standard): Use it.
4259 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4262 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4264 2021-03-06 Tom Tromey <tom@tromey.com>
4266 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4267 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4268 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4269 (locate_dwz_sections, dwz_search_other_debugdirs)
4270 (dwarf2_get_dwz_file): Move to dwz.c.
4271 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4273 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4274 (dwarf2_get_dwz_file): Move from read.c.
4276 2021-03-06 Tom Tromey <tom@tromey.com>
4278 * debuginfod-support.h: Include scoped_fd.h.
4280 2021-03-06 Tom Tromey <tom@tromey.com>
4282 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4283 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4284 (get_abbrev_section_for_cu, read_attribute_value)
4285 (get_debug_line_section): Update.
4286 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4288 2021-03-06 Tom Tromey <tom@tromey.com>
4290 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4292 * dwarf2/read.c (section_is_p): Remove.
4293 (dwarf2_per_bfd::locate_sections)
4294 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4295 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4296 (dwarf2_locate_common_dwp_sections)
4297 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4300 2021-03-06 Tom Tromey <tom@tromey.com>
4302 * xcoffread.c: Include sect-names.h.
4303 * symfile.h (struct dwarf2_section_names, struct
4304 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4305 * dwarf2/sect-names.h: New file, from symfile.h.
4306 * dwarf2/read.c: Include sect-names.h.
4308 2021-03-06 Tom Tromey <tom@tromey.com>
4310 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4311 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4312 (abbrev_table::read): Update.
4313 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4314 (struct abbrev_info): Reformat.
4315 <attrs>: Now an array.
4316 (struct abbrev_table) <alloc_abbrev>: Remove.
4318 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4320 * ctfread.c (ctf_psymtab_add_enums): New function.
4321 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4323 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4325 * ctfread.c (read_func_kind_type): Set up function arguments.
4327 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4328 Andrew Burgess <andrew.burgess@embecosm.com>
4330 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4332 (riscv_csrset): New static global.
4333 (riscv_update_csrmap): New function.
4334 (riscv_iterate_over_regset_sections): Process CSRs.
4336 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4338 * riscv-tdep.c (riscv_feature_name_csr): Define.
4339 (riscv_feature_name_cpu): Define.
4340 (riscv_feature_name_fpu): Define.
4341 (riscv_feature_name_virtual): Define.
4342 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4343 (riscv_freg_feature): Use riscv_feature_name_fpu.
4344 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4345 (riscv_csr_feature): Use riscv_feature_name_csr.
4346 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4348 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4349 Craig Blackmore <craig.blackmore@embecosm.com>
4351 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4352 (ALLDEPFILES): Add riscv-none-tdep.c.
4353 * configure: Regenerate.
4354 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4356 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4357 * elf-none-tdep.c: New file.
4358 * elf-none-tdep.h: New file.
4359 * riscv-none-tdep.c: New file.
4361 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4362 Andrew Burgess <andrew.burgess@embecosm.com>
4364 * corelow.c: Add 'xml-tdesc.h' include.
4365 (core_target::read_description): Load the target description from
4366 the core file when possible.
4367 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4369 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4370 (gcore_elf_make_tdesc_note): New function.
4371 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4372 * linux-tdep.c (linux_make_corefile_notes): Add target description
4375 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4377 * Makefile.in (SFILES): Add gcore-elf.c.
4378 (HFILES_NO_SRCDIR): Add gcore-elf.h
4379 * configure: Regenerate.
4380 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4382 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4383 (struct fbsd_collect_regset_section_cb_data): Delete.
4384 (fbsd_collect_regset_section_cb): Delete.
4385 (fbsd_collect_thread_registers): Delete.
4386 (struct fbsd_corefile_thread_data): Delete.
4387 (fbsd_corefile_thread): Delete.
4388 (fbsd_make_corefile_notes): Call
4389 gcore_elf_build_thread_register_notes instead of the now deleted
4391 * gcore-elf.c: New file, the content was moved here from
4392 linux-tdep.c, functions were renamed and given minor cleanup.
4393 * gcore-elf.h: New file.
4394 * gcore.c (gcore_find_signalled_thread): Moved here from
4395 linux-tdep.c and given a new name. Minor cleanups.
4396 * gcore.h (gcore_find_signalled_thread): Declare.
4397 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4398 (struct linux_collect_regset_section_cb_data): Delete.
4399 (linux_collect_regset_section_cb): Delete.
4400 (linux_collect_thread_registers): Delete.
4401 (linux_corefile_thread): Call
4402 gcore_elf_build_thread_register_notes.
4403 (find_signalled_thread): Delete.
4404 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4406 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4409 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4410 process_stratum_target parameter,
4411 sparc_store_inferior_registers): update callers.
4412 * sparc-nat.c (sparc_fetch_inferior_registers,
4413 sparc_store_inferior_registers): Add process_stratum_target
4414 parameter. Switch current thread before calling
4415 sparc_supply_gregset / sparc_collect_rwindow.
4416 (sparc_store_inferior_registers): Likewise.
4417 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4418 (sparc32obsd_collect_uthread): Likewise.
4419 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4421 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4422 sparc64obsd_supply_uthread): Add assertion.
4424 2021-03-04 Tom Tromey <tromey@adacore.com>
4426 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4427 (aux_add_nonlocal_symbols): Update.
4428 (ada_add_block_symbols): Change "found_sym" to bool.
4430 2021-03-03 Tom Tromey <tromey@adacore.com>
4432 * ada-lang.c (ada_resolve_function): Update comment.
4433 (is_nonfunction, add_symbols_from_enclosing_procs)
4434 (remove_extra_symbols): Likewise.
4435 (struct match_data): Add constructor, initializers.
4436 (add_nonlocal_symbols): Remove memset.
4437 (aux_add_nonlocal_symbols): Update comment.
4438 (ada_add_block_renamings, add_nonlocal_symbols)
4439 (ada_add_all_symbols): Likewise.
4440 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4442 2021-03-02 Tom Tromey <tromey@adacore.com>
4444 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4445 (cast_to_gnat_encoded_fixed_point_type): Remove.
4446 (ada_value_cast, ada_evaluate_subexp): Update.
4447 (gnat_encoded_fixed_point_type_info)
4448 (ada_is_gnat_encoded_fixed_point_type)
4449 (gnat_encoded_fixed_point_delta)
4450 (gnat_encoded_fixed_point_scaling_factor): Remove.
4451 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4452 (gnat_encoded_fixed_point_delta)
4453 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4454 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4455 (ada_print_type): Update.
4456 * ada-valprint.c (ada_value_print_num): Update.
4457 * dwarf2/read.c (ada_get_gnat_encoded_number)
4458 (ada_get_gnat_encoded_ratio): New functions.
4459 (finish_fixed_point_type): Use them. Add parameters.
4460 (GNAT_FIXED_POINT_SUFFIX): New define.
4461 (gnat_encoded_fixed_point_type_info): New function.
4462 (read_base_type): Handle gnat encodings.
4464 2021-03-02 Tom Tromey <tromey@adacore.com>
4466 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4467 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4469 (GROW_VECT): Remove.
4470 (grow_vect): Remove.
4472 2021-03-02 Tom Tromey <tromey@adacore.com>
4474 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4475 * ada-lang.c (resolve_subexp): Update.
4476 (ada_resolve_function): Accept a vector.
4477 (is_nonfunction, add_defn_to_vec)
4478 (add_symbols_from_enclosing_procs): Likewise.
4479 (num_defns_collected, defns_collected): Remove.
4480 (remove_extra_symbols): Return a vector.
4481 (remove_irrelevant_renamings): Return void.
4482 (ada_add_local_symbols): Accept a vector.
4483 (struct match_data) <obstackp>: Remove.
4484 <resultp>: New member.
4485 (aux_add_nonlocal_symbols): Update.
4486 (ada_add_block_renamings, add_nonlocal_symbols)
4487 (ada_add_all_symbols): Accept a vector.
4488 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4490 (ada_lookup_symbol): Update.
4491 (ada_add_block_symbols): Accept a vector.
4492 (get_var_value, iterate_over_symbols): Update.
4493 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4496 2021-03-02 Tom Tromey <tromey@adacore.com>
4498 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4500 2021-03-02 Tom Tromey <tromey@adacore.com>
4502 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4505 (ada_pspace_data): Remove destructor.
4506 <sym_cache>: Now a unique_ptr.
4507 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4508 (ada_get_symbol_cache): Use 'new'.
4509 (ada_clear_symbol_cache): Rewrite.
4511 2021-03-02 Tom Tromey <tromey@adacore.com>
4513 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4516 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4519 * source.c (add_path): Skip empty dirnames.
4521 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4523 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4524 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4526 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4529 * target.c (target_mourn_inferior): Only compare pids in
4530 target_mourn_inferior.
4532 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4535 * remote.c (remote_target::start_remote): Ensure the single
4536 thread, automatically added for remote targets without the
4537 concept of threading, is initially in set to the "resumed"
4539 * remote.c (remote_target::add_current_inferior_and_thread):
4540 Add return value - return the main thread.
4542 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4544 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4545 (mi_tsv_created): Likewise.
4546 (mi_tsv_deleted): Likewise.
4548 2021-02-25 Tom de Vries <tdevries@suse.de>
4551 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4552 section_kind for &dwo_file->sections.info.
4554 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4557 * f-lang.c (fortran_argument_convert): Delete declaration.
4558 (fortran_prepare_argument): New function.
4559 (evaluate_subexp_f): Move logic to new function
4560 fortran_prepare_argument.
4562 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4564 * f-exp.y (f77_keywords): Add 'associated'.
4565 * f-lang.c (fortran_associated): New function.
4566 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4567 (operator_length_f): Likewise.
4568 (print_unop_or_binop_subexp_f): New function.
4569 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4570 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4571 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4572 (operator_check_f): Likewise.
4573 * std-operator.def: Add FORTRAN_ASSOCIATED.
4575 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4577 * f-exp.y (fortran_operators): Add ".xor.".
4579 2021-02-24 Tom de Vries <tdevries@suse.de>
4582 * dwarf2/attribute.c (attribute::form_is_signed): New function
4584 * dwarf2/attribute.h (attribute::as_signed): ... here.
4585 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4586 (attribute::form_is_signed): Declare.
4587 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4588 for DW_AT_decl_file.
4590 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4592 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4593 order for <sys/ptrace.h> and <asm/ptrace.h>.
4595 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4597 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4600 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4602 * exec.c (set_section_command): Move variable declarations into
4603 the function body, and use std::string instead of a fixed size
4606 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4608 * exec.c (exec_target::get_section_table): Delete member function.
4609 (section_table_read_available_memory): Use current_top_target, not
4610 just the exec_ops target.
4611 * target-delegates.c: Regenerate.
4612 * target.c (default_get_section_table): New function.
4613 * target.h (target_ops::get_section_table): Change default
4614 behaviour to call default_get_section_table.
4615 (default_get_section_table): Declare.
4617 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4619 * exec.c (exec_target::close): Call new clear_target_sections
4621 (program_space::add_target_sections): Update name of member
4623 (program_space::add_target_sections): Update name of member
4625 (program_space::remove_target_sections): Likewise.
4626 (exec_one_fork): Use new target_sections member function.
4627 (exec_target::get_section_table): Likewise.
4628 (exec_target::files_info): Likewise.
4629 (set_section_command): Likewise.
4630 (exec_set_section_address): Likewise.
4631 (exec_target::has_memory): Use new target_sections member
4633 * progspace.h (program_space::clear_target_sections): New member
4635 (program_space::target_sections): Rename member variable to
4636 m_target_sections, replace with a new member function.
4637 (program_space::m_target_sections): New member variable.
4638 * solib-dsbt.c (scan_dyntag): Use new member function.
4639 * solib-svr4.c (scan_dyntag): Likewise.
4641 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4643 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4645 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4646 (section_table_read_available_memory): Make local const.
4647 (exec_target::xfer_partial): Make local const.
4648 (print_section_info): Make parameter const.
4649 * gdb/exec.h (print_section_info): Likewise.
4650 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4652 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4654 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4656 * gdb/s390-tdep.c (s390_load): Likewise.
4657 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4658 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4659 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4661 (target_debug_print_const_target_section_table_p): ...this.
4662 * gdb/target-delegates.c: Regenerate.
4663 * gdb/target.c (target_get_section_table): Make return type const.
4664 (target_section_by_addr): Likewise. Also make some locals const.
4665 (memory_xfer_partial_1): Make some locals const.
4666 * gdb/target.h (struct target_ops) <get_section_table>: Make
4668 (target_section_by_addr): Likewise.
4669 (target_get_section_table): Likewise.
4671 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4673 * NEWS: Mention new 'maint info target-sections' command.
4674 * maint.c (maintenance_info_target_sections): New function.
4675 (_initialize_maint_cmds): Register new command.
4677 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4679 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4680 (riscv_features_from_bfd): ...this. Change parameter type to
4681 'bfd*', and update as required.
4682 (riscv_find_default_target_description): Update call to
4683 riscv_features_from_bfd. Select a default xlen based on
4685 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4687 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4689 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4690 dynamic types in UNOP_IND.
4692 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4695 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4697 (~dwarf2_queue_guard): Clear queue.
4698 (queue_comp_unit): Assert that queue is
4700 (process_queue): Adjust.
4701 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4703 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4706 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4707 to decide whether or not to enqueue it for expansion.
4708 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4709 after calling maybe_queue_comp_unit.
4711 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4713 * linux-nat.c (linux_nat_filter_event): Return void.
4715 2021-02-22 Tom Tromey <tromey@adacore.com>
4717 * solib-svr4.c (enable_break): Update.
4718 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4720 (target_bfd_reopen): Change parameter type.
4721 * bfd-target.h (target_bfd_reopen): Change parameter type.
4723 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4725 * thread.c (add_thread_silent): Add assert.
4726 (find_thread_ptid): Add assert.
4728 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4731 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4732 (target_unpush_up): Likewise.
4733 * procfs.c (procfs_target::attach): Push target early. Use
4734 target_unpush_up to unpush target in case of error.
4735 * target.h (struct target_unpusher): Move here.
4736 (target_unpush_up): Likewise.
4738 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4740 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4741 (which in turn includes <gnulib/config.h>) before include
4744 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4747 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4748 (decode_j_type_insn): Likewise.
4749 (decode_cj_type_insn): Likewise.
4750 (decode_b_type_insn): Likewise.
4753 2021-02-18 Tom Tromey <tom@tromey.com>
4755 * expression.h (struct expression) <evaluate>: Declare method.
4756 * eval.c (evaluate_subexp): Simplify.
4757 (expression::evaluate): New method.
4758 (evaluate_expression, evaluate_type): Use expression::evaluate.
4760 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4762 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4764 (ada_lookup_name_info): Likewise.
4766 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4768 * aclocal.m4: Regenerate.
4770 2021-02-12 Tom de Vries <tdevries@suse.de>
4773 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4774 (lin_thread_signals): New static var.
4775 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4777 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4778 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4780 * linux-thread-db.c (check_thread_signals): Use
4781 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4783 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4785 * f-exp.y (f77_keywords): Add allocated.
4786 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4787 (operator_length_f): Likewise.
4788 (print_subexp_f): Likewise.
4789 (dump_subexp_body_f): Likewise.
4790 (operator_check_f): Likewise.
4791 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4793 2021-02-11 Tom de Vries <tdevries@suse.de>
4796 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4797 Return true for DW_FORM_strx.
4799 2021-02-11 Tom Tromey <tromey@adacore.com>
4802 * parse.c (write_exp_symbol_reference): Write sym.block.
4804 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4806 * NEWS: Mention changes to 'maint info sections'.
4807 * maint.c (match_substring): Return a bool, fix whitespace issue.
4808 (struct single_bfd_flag_info): New struct.
4809 (bfd_flag_info): New static global.
4810 (match_bfd_flags): Return a bool, use bfd_flag_info.
4811 (print_bfd_flags): Use bfd_flag_info.
4812 (maint_print_section_info): Delete trailing whitespace.
4813 (struct maint_info_sections_opts): New struct.
4814 (maint_info_sections_option_defs): New static global.
4815 (maint_info_sections_completer): New function.
4816 (maintenance_info_sections): Use option parsing mechanism.
4817 (_initialize_maint_cmds): Update command help text for 'maint info
4818 sections' and register a command completer.
4820 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4822 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4823 functionality merged into...
4824 (maint_print_all_sections): ...this new function.
4825 (maintenance_info_sections): Make use of maint_print_all_sections,
4826 allow all objects to be printed even where there's no executable.
4828 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4830 * breakpoint.c (resolve_sal_pc): Make use of
4831 bound_minimal_symbol::obj_section.
4832 * maint.c (maintenance_translate_address): Likewise.
4833 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4834 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4836 * printcmd.c (info_address_command): Make use of
4837 bound_minimal_symbol::obj_section.
4839 2021-02-11 Alan Modra <amodra@gmail.com>
4841 * arm-symbian-tdep.c: Delete.
4842 * NEWS: Mention arm-symbian removal.
4843 * Makefile.in: Remove arm-symbian-tdep entries.
4844 * configure.tgt: Remove arm*-*-symbianelf*.
4845 * doc/gdb.texinfo: Remove mention of SymbianOS.
4846 * osabi.c (gdb_osabi_names): Remove "Symbian".
4847 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4848 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4849 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4851 * testsuite/gdb.base/dup-sect.exp: Likewise.
4852 * testsuite/gdb.base/long_long.exp: Likewise.
4853 * testsuite/gdb.base/solib-weak.exp: Likewise.
4854 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4855 * testsuite/gdb.python/py-section-script.exp: Likewise.
4856 * testsuite/lib/dwarf.exp: Likewise.
4857 * testsuite/lib/gdb.exp: Likewise.
4859 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4861 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4862 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4863 (one_or_two_args): New pattern.
4864 (f77_keywords): Add lbound and ubound.
4865 * f-lang.c (fortran_bounds_all_dims): New function.
4866 (fortran_bounds_for_dimension): New function.
4867 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4868 (operator_length_f): Likewise.
4869 (print_subexp_f): Likewise.
4870 (dump_subexp_body_f): Likewise.
4871 (operator_check_f): Likewise.
4872 * std-operator.def (FORTRAN_LBOUND): Define.
4873 (FORTRAN_UBOUND): Define.
4875 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4877 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4878 and set_section_index member functions where appropriate.
4879 * coffread.c (coff_symtab_read): Likewise.
4880 (process_coff_symbol): Likewise.
4881 * ctfread.c (set_symbol_address): Likewise.
4882 * dwarf2/read.c (add_partial_symbol): Likewise.
4883 (var_decode_location): Likewise.
4884 * language.c: Likewise.
4885 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4886 (compact_minimal_symbols): Likewise.
4887 (minimal_symbol_upper_bound): Likewise.
4888 * objfiles.c (relocate_one_symbol): Likewise.
4889 * psympriv.h (partial_symbol::obj_section): Likewise.
4890 (partial_symbol::address): Likewise.
4891 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4892 * stabsread.c (scan_file_globals): Likewise.
4893 * symmisc.c (dump_msymbols): Likewise.
4894 * symtab.c (general_symbol_info::obj_section): Likewise.
4895 (fixup_section): Likewise.
4896 (get_msymbol_address): Likewise.
4897 * symtab.h (general_symbol_info::section): Rename to...
4898 (general_symbol_info::m_section): ...this.
4899 (general_symbol_info::set_section_index): New member function.
4900 (general_symbol_info::section_index): Likewise.
4901 (SYMBOL_SECTION): Delete.
4902 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4903 set_section_index member functions where appropriate.
4904 (MSYMBOL_SECTION): Delete.
4905 (symbol::symbol): Update to initialize 'm_section'.
4906 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4907 (process_xcoff_symbol): Likewise.
4909 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4911 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4912 MSYMBOL_OBJ_SECTION.
4913 * findvar.c (language_defn::read_var_value): Likewise.
4914 * infcmd.c (jump_command): Likewise.
4915 * linespec.c (minsym_found): Likewise.
4916 * maint.c (maintenance_translate_address): Likewise.
4917 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4918 (minimal_symbol_upper_bound): Likewise.
4919 * parse.c (find_minsym_type_and_address): Likewise.
4920 (operator_check_standard): Likewise.
4921 * printcmd.c (info_address_command): Likewise.
4922 * symmisc.c (dump_msymbols): Likewise.
4923 (print_symbol): Likewise.
4924 * symtab.c (general_symbol_info::obj_section): Define new
4926 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4927 (find_pc_sect_compunit_symtab): Likewise.
4928 (find_function_start_sal): Likewise.
4929 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4930 MSYMBOL_OBJ_SECTION.
4931 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4933 (SYMBOL_OBJ_SECTION): Delete.
4934 (MSYMBOL_OBJ_SECTION): Delete.
4936 2021-02-09 Tom Tromey <tom@tromey.com>
4938 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4940 2021-02-09 Tom de Vries <tdevries@suse.de>
4943 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4944 construct an array type. Add assert to ensure that element_type is
4947 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4949 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4950 (gcore_collect_regset_section_cb): Delete.
4951 (gcore_collect_thread_registers): Delete.
4952 (gcore_build_thread_register_notes): Delete.
4953 (gcore_find_signalled_thread): Delete.
4954 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4955 'gdbarch' and 'thread_info' declarations.
4956 (gcore_build_thread_register_notes): Delete declaration.
4957 (gcore_find_signalled_thread): Likewise.
4958 * fbsd-tdep.c: Remove 'gcore.h' include.
4959 (struct fbsd_collect_regset_section_cb_data): New struct.
4960 (fbsd_collect_regset_section_cb): New function.
4961 (fbsd_collect_thread_registers): New function.
4962 (struct fbsd_corefile_thread_data): New struct.
4963 (fbsd_corefile_thread): New function.
4964 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4965 * linux-tdep.c: Remove 'gcore.h' include.
4966 (struct linux_collect_regset_section_cb_data): New struct.
4967 (linux_collect_regset_section_cb): New function.
4968 (linux_collect_thread_registers): New function.
4969 (linux_corefile_thread): Call Linux specific code.
4970 (find_signalled_thread): New function.
4971 (linux_make_corefile_notes): Call find_signalled_thread.
4973 2021-02-09 Tom Tromey <tromey@adacore.com>
4975 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4977 * value.c (value_contents_copy_raw): Now static.
4978 * value.h (value_contents_copy_raw): Don't declare.
4980 2021-02-09 Tom Tromey <tromey@adacore.com>
4982 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4985 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4988 * arc-linux-tdep.c (handle_atomic_sequence): New.
4989 (arc_linux_software_single_step): Call handle_atomic_sequence().
4991 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4993 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4995 (REQUIRE_WINDOW): Call is_valid member function.
4996 (REQUIRE_WINDOW_FOR_SETTER): New define.
4997 (gdbpy_tui_is_valid): Call is_valid member function.
4998 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4999 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5001 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5002 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5005 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5007 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5008 for the title is not nullptr.
5010 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5012 * tui-layout.c (saved_tui_windows): Delete.
5013 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5014 call new get_windows member function instead.
5015 (tui_get_window_by_name): Check in tui_windows.
5016 (tui_layout_window::apply): Don't add to tui_windows.
5017 * tui-layout.h (tui_layout_base::get_windows): New member function.
5018 (tui_layout_window::get_windows): Likewise.
5019 (tui_layout_split::get_windows): Likewise.
5021 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5023 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5024 of the window objects.
5026 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5028 * python/python.c (gdbpy_print_stack): Reformat an error message.
5030 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5032 * tui/tui-interp.c (tui_command_line_handler): New function.
5033 (tui_interp::resume): Register tui_command_line_handler as the
5035 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5037 (tui_getc_1): Delete handling of '\n' and '\r'.
5038 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5040 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5042 * tui/tui-regs.c (tui_data_window::display_registers_from):
5043 Mark invisible register sub windows.
5044 (tui_data_window::check_register_values): Ignore invisible
5045 register sub windows.
5047 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5049 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5050 n_spaces with a negative value.
5052 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5054 * tui/tui-regs.c (tui_data_window::display_registers_from):
5055 Add refresh_window call.
5057 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5059 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5061 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5063 * symmisc.c (std_in, std_out, std_err): Remove.
5064 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5066 2021-02-05 Tom de Vries <tdevries@suse.de>
5068 PR breakpoints/27330
5069 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5070 glibc object file has debug info.
5072 2021-02-05 Tom de Vries <tdevries@suse.de>
5075 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5077 2021-02-05 Tom de Vries <tdevries@suse.de>
5079 PR breakpoints/27313
5080 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5083 2021-02-05 Tom Tromey <tom@tromey.com>
5085 * compile/compile-c-support.c (get_compile_context)
5086 (c_get_compile_context, cplus_get_compile_context): Change return
5088 * language.c (language_defn::get_compile_instance): New method.
5089 * language.h (language_defn::get_compile_instance): Change return
5090 type. No longer inline.
5091 * c-lang.c (c_language::get_compile_instance): Change return type.
5092 (cplus_language::get_compile_instance): Change return type.
5093 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5095 * compile/compile.c (compile_to_object): Update.
5097 2021-02-05 Tom Tromey <tom@tromey.com>
5099 * parser-defs.h (write_exp_symbol_reference): Declare.
5100 * parse.c (write_exp_symbol_reference): New function.
5101 * p-exp.y (variable): Use write_exp_symbol_reference.
5102 * m2-exp.y (variable): Use write_exp_symbol_reference.
5103 * f-exp.y (variable): Use write_exp_symbol_reference.
5104 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5105 * c-exp.y (variable): Use write_exp_symbol_reference.
5107 2021-02-05 Tom de Vries <tdevries@suse.de>
5110 * valarith.c (complex_binop): Throw an error if complex type can't
5113 2021-02-05 Tom de Vries <tdevries@suse.de>
5116 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5119 2021-02-05 Tom de Vries <tdevries@suse.de>
5121 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5123 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5125 * configure.tgt (riscv*-*-*): Set gdb_sim.
5127 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5129 * target.c (target_is_non_stop_p): Return bool.
5130 * target.h (target_is_non_stop_p): Return bool.
5132 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5134 * record-full.c (record_full_async_inferior_event_handler):
5135 Don't clear async event handler.
5136 (record_full_base_target::wait): Clear async event handler at
5139 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5141 * record-btrace.c (record_btrace_handle_async_inferior_event):
5142 Don't clear async event handler.
5143 (record_btrace_target::wait): Clear async event handler at
5146 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5148 * remote.c (remote_target::wait): Clear async event handler at
5149 beginning, mark if needed at the end.
5150 (remote_async_inferior_event_handler): Don't set or clear async
5153 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5155 * async-event.h (async_event_handler_func): Add documentation.
5156 * async-event.c (check_async_event_handlers): Don't clear
5157 async_event_handler ready flag.
5158 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5160 * record-btrace.c (record_btrace_handle_async_inferior_event):
5162 * record-full.c (record_full_async_inferior_event_handler):
5164 * remote-notif.c (remote_async_get_pending_events_handler):
5166 * remote.c (remote_async_inferior_event_handler): Likewise.
5168 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5170 * infrun.c (handle_inferior_event): Move stop_soon variable to
5173 2021-02-03 Pedro Alves <pedro@palves.net>
5175 * infcmd.c (detach_command): Hold strong reference to target, and
5176 if all-stop on entry, restart threads on exit.
5177 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5178 (restart_stepped_thread): ... this new function. Also handle
5180 (restart_after_all_stop_detach): New function.
5181 * infrun.h (restart_after_all_stop_detach): Declare.
5183 2021-02-03 Pedro Alves <pedro@palves.net>
5185 * infrun.c (struct step_over_info): Initialize fields.
5186 (prepare_for_detach): Handle ongoing in-line step over.
5188 2021-02-03 Pedro Alves <pedro@palves.net>
5190 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5192 * remote.c (remote_target::remote_detach_1): ... and here ...
5193 * target.c (target_detach): ... instead of here.
5194 * target.h (target_ops::detach): Add comment.
5196 2021-02-03 Pedro Alves <pedro@palves.net>
5198 * infrun.c (struct wait_one_event): Move higher up.
5199 (prepare_for_detach): Abort in-progress displaced steps instead of
5200 letting them complete.
5201 (handle_one): If the inferior is detaching, don't add the thread
5202 back to the global step-over chain.
5203 (restart_threads): Don't restart threads if detaching.
5204 (handle_signal_stop): Remove inferior::detaching reference.
5206 2021-02-03 Pedro Alves <pedro@palves.net>
5208 * infrun.c (prepare_for_detach): Don't release scoped_restore
5211 2021-02-03 Pedro Alves <pedro@palves.net>
5213 * infrun.c (handle_one): New function, factored out from ...
5214 (stop_all_threads): ... here.
5216 2021-02-03 Pedro Alves <pedro@palves.net>
5218 * remote.c (remote_notif_stop_ack): Don't error out on
5219 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5220 (remote_target::discard_pending_stop_replies): Don't delete
5221 in-flight notification; instead, clear its contents.
5223 2021-02-03 Pedro Alves <pedro@palves.net>
5225 * remote.c (extended_remote_target::attach): Set target async in
5226 the target-non-stop path too.
5228 2021-02-03 Pedro Alves <pedro@palves.net>
5231 * infrun.c (handle_signal_stop): Move main context_switch call
5232 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5234 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5236 * NEWS (Changed commands): Add entry for the behavior change of
5237 the inferior command.
5238 * inferior.c (inferior_command): When no argument is given to the
5239 inferior command, display info about the currently selected
5242 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5244 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5246 (read_attribute_reprocess): Adjust.
5248 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5250 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5251 <gnu_ranges_base>: ... this...
5252 <rnglists_base>: ... and this.
5253 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5254 <gnu_ranges_base>: ... this...
5255 <rnglists_base>: ... and this.
5256 (read_cutu_die_from_dwo): Adjust
5257 (dwarf2_get_pc_bounds): Adjust
5258 (dwarf2_record_block_ranges): Adjust.
5259 (read_full_die_1): Adjust
5260 (partial_die_info::read): Adjust.
5261 (read_rnglist_index): Adjust.
5263 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5266 * dwarf2/read.c (read_loclists_rnglists_header): Add
5267 header_offset parameter and use it.
5268 (read_loclist_index): Read header of the current contribution,
5269 not the one at the beginning of the section.
5270 (read_rnglist_index): Likewise.
5272 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5275 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5276 requires_reprocessing flag.
5277 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5279 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5280 and DW_FORM_loclistx.
5281 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5282 instead of set_address for DW_FORM_loclistx and
5285 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5287 * dwarf2/read.c (read_loclist_index): Remove bound check for
5289 (read_rnglist_index): Likewise.
5291 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5293 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5296 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5298 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5300 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5302 * dwarf2/read.c (read_loclist_index): Change complaints into
5305 2021-02-02 Tom de Vries <tdevries@suse.de>
5308 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5311 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5313 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5314 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5315 here from linux-tdep.c and given a new name. Minor cleanups.
5316 (gcore_collect_regset_section_cb): Likewise.
5317 (gcore_collect_thread_registers): Likewise.
5318 (gcore_build_thread_register_notes): Likewise.
5319 (gcore_find_signalled_thread): Likewise.
5320 * gcore.h (gcore_build_thread_register_notes): Declare.
5321 (gcore_find_signalled_thread): Declare.
5322 * fbsd-tdep.c: Add 'gcore.h' include.
5323 (struct fbsd_collect_regset_section_cb_data): Delete.
5324 (fbsd_collect_regset_section_cb): Delete.
5325 (fbsd_collect_thread_registers): Delete.
5326 (struct fbsd_corefile_thread_data): Delete.
5327 (fbsd_corefile_thread): Delete.
5328 (fbsd_make_corefile_notes): Call
5329 gcore_build_thread_register_notes instead of the now deleted
5331 * linux-tdep.c: Add 'gcore.h' include.
5332 (struct linux_collect_regset_section_cb_data): Delete.
5333 (linux_collect_regset_section_cb): Delete.
5334 (linux_collect_thread_registers): Delete.
5335 (linux_corefile_thread): Call
5336 gcore_build_thread_register_notes.
5337 (find_signalled_thread): Delete.
5338 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5340 2021-01-29 Tom de Vries <tdevries@suse.de>
5342 PR breakpoints/26063
5343 * infrun.c (process_event_stop_test): Reset
5344 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5347 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5349 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5350 assert. Extend the header comment.
5352 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5354 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5355 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5356 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5357 (tui_locator_win_info_ptr): Delete declaration.
5358 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5359 (tui_disasm_window::set_contents): Fetch state from tui_location
5361 (tui_get_begin_asm_address): Likewise.
5362 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5364 (get_locator_window): Delete.
5365 (initialize_known_windows): Treat locator window just like all the
5367 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5368 (tui_source_window::set_contents): Fetch state from tui_location
5370 (tui_source_window::showing_source_p): Likewise.
5371 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5373 (tui_locator_win_info_ptr): Delete.
5374 (tui_locator_window::make_status_line): Fetch state from
5375 tui_location global.
5376 (tui_locator_window::rerender): Remove check of 'handle',
5377 reindent function body.
5378 (tui_locator_window::set_locator_fullname): Delete.
5379 (tui_locator_window::set_locator_info): Delete.
5380 (tui_update_locator_fullname): Delete.
5381 (tui_show_frame_info): Likewise.
5382 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5383 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5384 tui/tui-location.h and renamed to
5385 tui_location_tracker::set_location.
5386 (tui_locator_window::set_locator_fullname): Moved to
5387 tui/tui-location.h and renamed to
5388 tui_location_tracker::set_fullname.
5389 (tui_locator_window::full_name): Delete.
5390 (tui_locator_window::proc_name): Delete.
5391 (tui_locator_window::line_no): Delete.
5392 (tui_locator_window::addr): Delete.
5393 (tui_locator_window::gdbarch): Delete.
5394 (tui_update_locator_fullname): Delete declaration.
5395 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5397 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5398 (tui_display_main): Call function on tui_location directly.
5399 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5400 * tui/tui-location.c: New file.
5401 * tui/tui-location.h: New file.
5403 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5405 * gdbtypes.h (get_type_arch): Rename to...
5406 (struct type) <arch>: ... this, update all users.
5408 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5410 * gdbtypes.h (struct type) <arch>: Rename to...
5411 <arch_owner>: ... this, update all users.
5412 <objfile>: Rename to...
5413 <objfile_owner>: ... this, update all users.
5415 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5417 * gdbcmd.h (execute_command_to_string): Update comment.
5418 * top.c (execute_command_to_string): Update header comment.
5420 2021-01-28 Tom de Vries <tdevries@suse.de>
5422 PR breakpoints/27205
5423 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5424 (create_longjmp_master_breakpoint_names): New function, factored out
5426 (create_longjmp_master_breakpoint): ... here. Only try to install
5427 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5428 breakpoint in libc.so failed.
5430 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5433 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5434 unique_ptr is released when the wrapped pointer is kept for later
5437 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5439 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5440 BLR and BR instructions.
5441 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5442 (enum aarch64_masks): New.
5444 2021-01-26 Tom Tromey <tromey@adacore.com>
5446 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5447 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5448 (windows_init_thread_list, windows_nat::handle_load_dll)
5449 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5450 (windows_nat_target::resume)
5451 (windows_nat_target::get_windows_debug_event)
5452 (windows_nat_target::interrupt, windows_xfer_memory)
5453 (windows_nat_target::close): Update.
5454 * nat/windows-nat.c (DEBUG_EVENTS): Use
5455 debug_prefixed_printf_cond.
5456 (matching_pending_stop, fetch_pending_stop)
5457 (continue_last_debug_event): Update.
5459 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5461 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5462 elfcore_write_file_note.
5464 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5466 * arc-tdep.c (arc_add_reggroups): New function.
5467 (arc_gdbarch_init): Call arc_add_reggroups.
5469 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5471 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5473 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5474 Simon Marchi <simon.marchi@polymtl.ca>
5475 Tom de Vries <tdevries@suse.de>
5477 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5480 2021-01-25 Tom Tromey <tromey@adacore.com>
5482 * dwarf2/read.c (get_mpz): New function.
5483 (get_dwarf2_rational_constant): Use it.
5485 2021-01-25 Tom Tromey <tromey@adacore.com>
5487 * ada-lang.c (resolve_subexp): Handle array context.
5489 2021-01-23 Tom Tromey <tom@tromey.com>
5492 * compile/compile-loc2c.c (note_register): New function.
5493 (pushf_register_address, pushf_register): Use it.
5495 2021-01-23 Tom Tromey <tom@tromey.com>
5497 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5498 Change type of "registers_used".
5499 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5500 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5501 (locexpr_generate_c_location, loclist_generate_c_location): Change
5502 type of "registers_used".
5503 * compile/compile.h (compile_dwarf_expr_to_c)
5504 (compile_dwarf_bounds_to_c): Update.
5505 * compile/compile-loc2c.c (pushf_register_address)
5506 (pushf_register, do_compile_dwarf_expr_to_c)
5507 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5508 of "registers_used".
5509 * compile/compile-c.h (generate_c_for_variable_locations):
5511 * compile/compile-c-symbols.c (generate_vla_size)
5512 (generate_c_for_for_one_variable): Change type of
5514 (generate_c_for_variable_locations): Return std::vector.
5515 * compile/compile-c-support.c (generate_register_struct): Change
5516 type of "registers_used".
5519 2021-01-23 Tom Tromey <tom@tromey.com>
5521 * compile/compile-internal.h (class compile_instance)
5522 <set_arguments>: Change return type.
5523 * compile/compile.c (compile_to_object): Remove call to reset.
5524 (compile_instance::set_arguments): Change return type.
5526 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5528 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5529 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5531 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5533 * Makefile.in (SELFTESTS_SRCS): Add
5534 unittests/gdb_tilde_expand-selftests.c.
5535 * unittests/gdb_tilde_expand-selftests.c: New file.
5537 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5540 * NEWS: Mention new command.
5541 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5542 (version_style): Define.
5543 (cli_style_option::cli_style_option): Add intensity parameter, and
5545 (_initialize_cli_style): Register version style set/show commands.
5546 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5547 (version_style): Declare.
5548 * top.c (print_gdb_version): Use version_stype, and styled_string
5549 to print the GDB version string.
5551 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5553 * utils.c (emit_style_escape): Only emit an escape sequence if the
5554 requested style is different than the current applied style.
5555 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5556 current applied_style.
5557 (fputs_styled): Remove is_default check.
5558 (fputs_styled_unfiltered): Likewise.
5559 (vfprintf_styled_no_gdbfmt): Likewise.
5561 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5563 * remote.h (remote_debug_printf): New.
5564 (remote_debug_printf_nofunc): New.
5565 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5566 * remote.c: Use above macros throughout file.
5568 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5570 * remote.h (remote_debug): Change to bool.
5571 * remote.c (remote_debug): Change to bool.
5572 (_initialize_remote): Adjust.
5574 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5576 * target.h (remote_debug): Move to...
5577 * remote.h (remote_debug): ... here.
5578 * top.c (remote_debug): Move to...
5579 * remote.c (remote_debug): ... here.
5580 * remote-sim.c: Include remote.h.
5582 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5584 * cli/cli-cmds.c (show_remote_debug): Remove.
5585 (show_remote_timeout): Remove.
5586 (_initialize_cli_cmds): Don't register commands.
5587 * remote.c (show_remote_debug): Move here.
5588 (show_remote_timeout): Move here.
5589 (_initialize_remote): Register commands.
5591 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5593 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5594 type::objfile method instead.
5596 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5598 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5599 use the type::is_objfile_owned method.
5601 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5603 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5604 (TYPE_OWNER): Remove.
5605 (TYPE_OBJFILE): Adjust.
5606 (struct main_type) <flag_objfile_owned>: Rename to...
5607 <m_flag_objfile_owned>: ... this.
5608 <owner>: Rename to...
5609 <m_owner>: ... this.
5610 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5612 (TYPE_ALLOC): Adjust.
5613 * gdbtypes.c (alloc_type): Adjust.
5614 (alloc_type_arch): Adjust.
5615 (alloc_type_copy): Adjust.
5616 (get_type_arch): Adjust.
5617 (smash_type): Adjust.
5618 (lookup_array_range_type): Adjust.
5619 (recursive_dump_type): Adjust.
5620 (copy_type_recursive): Adjust.
5621 * compile/compile-c-types.c (convert_func): Adjust.
5622 (convert_type_basic): Adjust.
5623 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5626 (language_arch_info::type_and_symbol::alloc_type_symbol):
5629 2021-01-21 Luis Machado <luis.machado@linaro.org>
5631 * coffread.c (enter_linenos): Passing string to complaint.
5632 * valops.c (value_assign): Make array view.
5634 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5636 * auto-load.h (debug_auto_load): Move here.
5637 (auto_load_debug_printf): New.
5638 * auto-load.c: Use auto_load_debug_printf.
5639 (debug_auto_load): Move to header.
5640 * linux-thread-db.c (try_thread_db_load): Use
5641 auto_load_debug_printf.
5642 * main.c (captured_main_1): Likewise.
5644 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5646 * f-valprint.c (f77_array_offset_tbl): Remove.
5648 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5650 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5652 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5654 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5657 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5660 * python/py-breakpoint.c (bppy_get_location): Handle
5661 bp_hardware_breakpoint.
5662 (bppy_init): Likewise.
5663 (gdbpy_breakpoint_created): Likewise.
5665 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5667 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5669 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5671 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5672 (_initialize_gdb_bfd): Adjust.
5674 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5677 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5679 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5681 * dwarf2/read.c (follow_die_offset): Add logging.
5682 (dwarf2_per_objfile::age_comp_units): Add logging.
5684 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5686 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5687 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5688 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5689 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5690 * arm-tdep.c (struct frame_unwind): Make static.
5691 * auto-load.c (auto_load_safe_path_vec): Make static.
5692 * csky-tdep.c (csky_stub_unwind): Make static.
5693 * gdbarch.c (gdbarch_data_registry): Make static.
5694 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5695 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5696 * i386-tdep.c (i386_frame_setup_skip_insns,
5697 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5699 * infrun.c (observer_mode): Make static.
5700 * linux-nat.c (sigchld_action): Make static.
5701 * linux-thread-db.c (thread_db_list): Make static.
5702 * maint-test-options.c (maintenance_test_options_list):
5703 * mep-tdep.c (mep_csr_registers): Make static.
5704 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5705 (stats): Make static.
5706 * nat/linux-osdata.c (struct osdata_type): Make static.
5707 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5708 * progspace.c (last_program_space_num): Make static.
5709 * python/py-param.c (struct parm_constant): Remove struct type
5711 (parm_constants): Make static.
5712 * python/py-record-btrace.c (btpy_list_methods): Make static.
5713 * python/py-record.c (recpy_gap_type): Make static.
5714 * record.c (record_goto_cmdlist): Make static.
5715 * regcache.c (regcache_descr_handle): Make static.
5716 * registry.h (DEFINE_REGISTRY): Make definition static.
5717 * symmisc.c (std_in, std_out, std_err): Make static.
5718 * top.c (previous_saved_command_line): Make static.
5719 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5721 * unittests/command-def-selftests.c (nr_duplicates,
5722 nr_invalid_prefixcmd, lists): Make static.
5723 * unittests/observable-selftests.c (test_notification): Make
5725 * unittests/optional/assignment/1.cc (counter): Make static.
5726 * unittests/optional/assignment/2.cc (counter): Make static.
5727 * unittests/optional/assignment/3.cc (counter): Make static.
5728 * unittests/optional/assignment/4.cc (counter): Make static.
5729 * unittests/optional/assignment/5.cc (counter): Make static.
5730 * unittests/optional/assignment/6.cc (counter): Make static.
5732 2021-01-20 Joel Sherrill <joel@rtems.org>
5735 * remote.c (struct remote_thread_info) <resume_state>: Rename
5737 <get_resume_state>: ... this.
5738 (remote_target::resume): Adjust.
5739 (remote_target::commit_resume): Adjust.
5740 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5742 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5743 Tom Tromey <tom@tromey.com>
5745 * stap-probe.c (stap_parse_single_operand): Handle '!'
5747 (stap_parse_argument_conditionally): Likewise.
5748 Skip spaces after processing open-parenthesis sub-expression.
5749 (stap_parse_argument_1): Skip spaces after call to
5750 stap_parse_argument_conditionally.
5751 Handle case when right-side expression is a parenthesized
5753 Skip spaces after call to stap_parse_argument_1.
5755 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5757 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5759 2021-01-19 Luis Machado <luis.machado@linaro.org>
5761 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5762 memory and save data.
5763 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5764 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5765 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5766 (trad_frame_value_bytes_p): Remove.
5767 (trad_frame_reset_saved_regs): Adjust documentation.
5768 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5769 constructor and reset the state of the registers.
5770 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5771 (trad_frame_value_bytes_p, trad_frame_set_value)
5772 (trad_frame_set_realreg, trad_frame_set_addr)
5773 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5774 (trad_frame_set_reg_realreg): Update to call member function.
5775 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5776 (trad_frame_get_prev_register): Likewise.
5778 * aarch64-tdep.c (aarch64_analyze_prologue)
5779 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5780 (aarch64_prologue_prev_register): Update to use member functions.
5781 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5782 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5783 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5784 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5785 (arm_make_epilogue_frame_cache): Likewise.
5786 * avr-tdep.c (avr_frame_unwind_cache)
5787 (avr_frame_prev_register): Likewise.
5788 * cris-tdep.c (cris_scan_prologue): Likewise.
5789 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5790 * frv-tdep.c (frv_analyze_prologue): Likewise.
5791 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5792 * lm32-tdep.c (lm32_frame_cache): Likewise.
5793 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5794 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5795 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5796 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5797 (reset_saved_regs): Adjust to set realreg.
5798 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5799 call member functions.
5800 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5801 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5802 (s390_backchain_frame_unwind_cache): Likewise.
5803 * score-tdep.c (score7_analyze_prologue)
5804 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5805 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5806 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5807 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5808 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5809 * tilegx-tdep.c (tilegx_analyze_prologue)
5810 (tilegx_frame_cache): Likewise.
5811 * v850-tdep.c (v850_frame_cache): Likewise.
5812 * vax-tdep.c (vax_frame_cache): Likewise.
5814 2021-01-19 Luis Machado <luis.machado@linaro.org>
5816 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5818 (put_frame_register_bytes): Likewise.
5819 Adjust documentation.
5820 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5821 (safe_frame_unwind_memory): Likewise.
5822 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5823 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5825 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5826 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5827 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5828 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5829 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5830 * dwarf2/loc.c (rw_pieced_value): Likewise.
5831 * hppa-tdep.c (hppa_frame_cache): Likewise.
5832 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5833 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5834 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5835 (i386_linux_rt_sigtramp_start): Likewise.
5836 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5837 * i386-tdep.c (i386_register_to_value): Likewise.
5838 * i387-tdep.c (i387_register_to_value): Likewise.
5839 * ia64-tdep.c (ia64_register_to_value): Likewise.
5840 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5841 (m32r_linux_rt_sigtramp_start): Likewise.
5842 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5843 * m68k-tdep.c (m68k_register_to_value): Likewise.
5844 * mips-tdep.c (mips_register_to_value)
5845 (mips_value_to_register): Likewise.
5846 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5847 (ppcfbsd_sigtramp_frame_cache): Likewise.
5848 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5849 (ppcobsd_sigtramp_frame_cache): Likewise.
5850 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5851 (rs6000_register_to_value): Likewise.
5852 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5853 * tramp-frame.c (tramp_frame_start): Likewise.
5854 * valops.c (value_assign): Likewise.
5856 2021-01-19 Luis Machado <luis.machado@linaro.org>
5858 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5860 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5861 instead of buffer and size.
5862 (trad_frame_set_reg_value_bytes): Likewise.
5863 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5864 (trad_frame_set_value_bytes): Likewise.
5866 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5868 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5870 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5872 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5873 (riscv_fbsd_gregset): Use riscv_supply_regset.
5874 (riscv_fbsd_fpregset): Likewise.
5875 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5876 (riscv_linux_fregset): Likewise.
5877 * riscv-tdep.c (riscv_supply_regset): Define new function.
5878 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5880 2021-01-18 Tom de Vries <tdevries@suse.de>
5883 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5885 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5888 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5890 * remote.c (class remote_target) <remote_hostio_send_command,
5891 remote_hostio_parse_result>: Constify parameter.
5892 (remote_hostio_parse_result): Likewise.
5893 (remote_target::remote_hostio_send_command): Adjust.
5894 (remote_target::remote_hostio_pread_vFile): Adjust.
5895 (remote_target::fileio_readlink): Adjust.
5896 (remote_target::fileio_fstat): Adjust.
5898 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5900 * remote.c (remote_target::start_remote): Move wait_status to
5903 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5905 * remote.c (class remote_target):
5906 <add_current_inferior_and_thread>: Constify parameter.
5907 (stop_reply_extract_thread): Likewise.
5908 (remote_target::get_current_thread): Likewise.
5909 (remote_target::add_current_inferior_and_thread): Likewise.
5911 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5913 * remote.c (class remote_target)
5914 <remote_unpack_thread_info_response,
5915 parse_threadlist_response>: Constify parameter and/or return
5916 value and or local variable.
5917 (stub_unpack_int): Likewise.
5918 (unpack_nibble): Likewise.
5919 (unpack_byte): Likewise.
5920 (unpack_int): Likewise.
5921 (unpack_string): Likewise.
5922 (unpack_threadid): Likewise.
5923 (remote_target::remote_unpack_thread_info_response): Likewise.
5924 (remote_target::parse_threadlist_response): Likewise.
5926 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5928 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5930 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5932 * MAINTAINERS (Write After Approval): Add myself.
5934 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5936 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5937 because is_trivially_default_constructible was first implemented with
5940 2021-01-14 Tom de Vries <tdevries@suse.de>
5942 PR breakpoints/27151
5943 * objfiles.h (in_plt_section): Handle .plt.sec.
5945 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5949 (remote_target::select_thread_for_ambiguous_stop_reply): New
5951 (remote_target::process_stop_reply): Call
5952 select_thread_for_ambiguous_stop_reply.
5954 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5956 * record-btrace.c (class record_btrace_target): Remove.
5957 (record_btrace_target::commit_resume): Remove.
5958 * record-full.c (class record_full_target): Remove.
5959 (record_full_target::commit_resume): Remove.
5961 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5963 * remote.c (enum class resume_state): New.
5964 (struct resumed_pending_vcont_info): New.
5965 (struct remote_thread_info) <resume_state, set_not_resumed,
5966 set_resumed_pending_vcont, resumed_pending_vcont_info,
5967 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5969 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5970 (remote_target::remote_add_thread): Adjust.
5971 (remote_target::process_initial_stop_replies): Adjust.
5972 (remote_target::resume): Adjust.
5973 (remote_target::commit_resume): Rely on state in
5974 remote_thread_info and not on tp->executing.
5975 (remote_target::process_stop_reply): Adjust.
5977 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5979 * arc-tdep.h (arc_debug_printf): New.
5980 * arc-tdep.c: Use arc_debug_printf.
5981 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5982 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5983 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5985 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5987 * arc-tdep.h (arc_debug): Change type to bool.
5988 * arc-tdep.c (arc_debug): Change type to bool.
5989 (arc_analyze_prologue): Adjust.
5990 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5991 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5993 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5995 * auto-load.c (auto_load_objfile_script_1): Use bool.
5996 (execute_script_contents): Use bool.
5998 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6000 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6002 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6004 * extension-priv.h (struct extension_language_script_ops)
6005 <auto_load_enabled>: Return bool.
6006 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6008 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6010 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6012 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6013 move comment to header.
6014 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6016 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6017 move comment to header.
6019 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6021 * auto-load.h (file_is_auto_load_safe): Change return type to
6022 bool, move comment here.
6023 * auto-load.c (file_is_auto_load_safe): Change return type and
6024 advice_printed to bool. Move comment to header.
6026 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6028 * jit.c (jit_debug_printf): New, use throughout file.
6030 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6032 * infrun.c (normal_stop): Fix indentation.
6034 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6036 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6038 * symfile.h: ... here.
6039 * symfile.c: Update doc.
6041 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6043 * target.h (baud_rate, serial_parity): Move declarations...
6044 * serial.h: ... here.
6045 * main.c: Include serial.h.
6046 * serial.c (baud_rate, serial_parity): Update doc.
6048 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6050 * top.c (pre_init_ui_hook): Remove.
6052 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6054 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6055 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6056 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6057 * features/aarch64-fpu.xml: Add bfloat16 type.
6059 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6061 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6063 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6065 * f-exp.y (dot_ops): Rename to...
6066 (fortran_operators): ...this. Add a header comment. Add symbol
6068 (yylex): Update to use fortran_operators not dot_ops. Remove
6069 special handling for '**', this is now included in
6072 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6074 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6075 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6076 * aarch64-tdep.c: Use aarch64_debug_printf.
6078 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6080 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6083 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6085 * jit.c (jit_debug): Change type to bool.
6086 (_initialize_jit): Adjust.
6088 2021-01-09 Tom Tromey <tom@tromey.com>
6091 * compile/compile.c (compile_to_object): Avoid crash when
6092 osabi_triplet_regexp returns NULL.
6094 2021-01-09 Tom Tromey <tom@tromey.com>
6096 * tracepoint.h (class collection_list) <append_exp>: Take a
6098 * tracepoint.c (collection_list::append_exp): Take a std::string.
6099 (encode_actions_1): Update.
6101 2021-01-08 Tom Tromey <tromey@adacore.com>
6103 * parse.c (parse_expression): Add void_context_p parameter. Use
6104 parse_exp_in_context.
6105 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6107 (print_command, call_command): Update.
6108 * expression.h (parse_expression): Add void_context_p parameter.
6110 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6112 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6113 for internalvar components that have a dynamic location.
6115 2021-01-08 Tom de Vries <tdevries@suse.de>
6118 * breakpoint.c (create_exception_master_breakpoint_probe)
6119 (create_exception_master_breakpoint_hook): Factor out
6121 (create_exception_master_breakpoint): ... here. Only try to install
6122 the master exception breakpoint in objfile.debug using the
6123 _Unwind_DebugHook method, if the install using probes in objfile
6126 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6128 * f-lang.c (fortran_value_subarray): Call value_from_component.
6130 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6132 * remote-sim.c: Include memory-map.h.
6133 (gdbsim_target): Define memory_map override.
6134 (gdbsim_target::memory_map): Define.
6136 2021-01-07 Tom Tromey <tromey@adacore.com>
6138 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6140 2021-01-07 Tom Tromey <tromey@adacore.com>
6142 * ada-lang.c (add_component_interval): Start loop using vector's
6145 2021-01-06 Tom Tromey <tromey@adacore.com>
6147 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6149 * valarith.c (fixed_point_binop): Handle multiplication
6150 and division specially.
6151 * valops.c (value_to_gdb_mpq): New function.
6152 (value_cast_to_fixed_point): Use it.
6154 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6156 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6157 Call wnoutrefresh instead of tui_win_info::refresh_window.
6159 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6161 * tui/tui-source.c (tui_source_window::show_line_number):
6162 Redraw second space after line number.
6164 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6167 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6168 Fix source pad size in prefresh.
6169 (tui_source_window_base::show_source_content): Grow source pad
6172 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6174 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6175 (bfin_frame_align): Use align_down.
6177 2021-01-04 Tom de Vries <tdevries@suse.de>
6179 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6180 terminators that do not terminate anything.
6182 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6184 * debug.c (debug_print_depth): New.
6185 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6186 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6187 * infrun.c (start_step_over): Use
6188 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6189 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6190 INFRUN_SCOPED_DEBUG_START_END.
6191 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6193 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6195 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6197 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6199 * utils.c (vfprintf_unfiltered): Print timestamp only when
6200 previous debug output ended with a newline.
6202 2021-01-04 Luis Machado <luis.machado@linaro.org>
6204 Update all users of trad_frame_saved_reg to use the new member
6207 Remote all struct keywords from declarations of trad_frame_saved_reg
6208 types, except on forward declarations.
6210 * aarch64-tdep.c: Update.
6211 * alpha-mdebug-tdep.c: Update.
6212 * alpha-tdep.c: Update.
6213 * arc-tdep.c: Update.
6214 * arm-tdep.c: Update.
6215 * avr-tdep.c: Update.
6216 * cris-tdep.c: Update.
6217 * csky-tdep.c: Update.
6218 * frv-tdep.c: Update.
6219 * hppa-linux-tdep.c: Update.
6220 * hppa-tdep.c: Update.
6221 * hppa-tdep.h: Update.
6222 * lm32-tdep.c: Update.
6223 * m32r-linux-tdep.c: Update.
6224 * m32r-tdep.c: Update.
6225 * m68hc11-tdep.c: Update.
6226 * mips-tdep.c: Update.
6227 * moxie-tdep.c: Update.
6228 * riscv-tdep.c: Update.
6229 * rs6000-tdep.c: Update.
6230 * s390-linux-tdep.c: Update.
6231 * s390-tdep.c: Update.
6232 * score-tdep.c: Update.
6233 * sparc-netbsd-tdep.c: Update.
6234 * sparc-sol2-tdep.c: Update.
6235 * sparc64-fbsd-tdep.c: Update.
6236 * sparc64-netbsd-tdep.c: Update.
6237 * sparc64-obsd-tdep.c: Update.
6238 * sparc64-sol2-tdep.c: Update.
6239 * tilegx-tdep.c: Update.
6240 * v850-tdep.c: Update.
6241 * vax-tdep.c: Update.
6243 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6244 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6246 * trad-frame.c: Update.
6247 Remove TF_REG_* enum.
6248 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6249 a trivially-constructible struct.
6250 (trad_frame_reset_saved_regs): Adjust to use member function.
6251 (trad_frame_value_p): Likewise.
6252 (trad_frame_addr_p): Likewise.
6253 (trad_frame_realreg_p): Likewise.
6254 (trad_frame_value_bytes_p): Likewise.
6255 (trad_frame_set_value): Likewise.
6256 (trad_frame_set_realreg): Likewise.
6257 (trad_frame_set_addr): Likewise.
6258 (trad_frame_set_unknown): Likewise.
6259 (trad_frame_set_value_bytes): Likewise.
6260 (trad_frame_get_prev_register): Likewise.
6261 * trad-frame.h: Update.
6262 (trad_frame_saved_reg_kind): New enum.
6263 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6264 <m_kind, m_reg>: New member fields.
6265 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6266 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6267 <is_addr, is_unknown, is_value_bytes>: New member functions.
6269 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6271 * target-float.c: Fix typos.
6273 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6275 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6277 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6279 * gdbarch.sh: Update copyright year range.
6281 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6283 Update copyright year range in copyright header of all GDB files.
6285 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6287 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6288 to the list of directories to update.
6290 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6292 * top.c (print_gdb_version): Update copyright year.
6294 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6296 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6298 For older changes see ChangeLog-2020.
6304 version-control: never