1 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
3 * cli/cli-decode.h (prefixname): Make const, move implementation
5 * cli/cli-decode.c (cmd_list_element::prefixname): New.
7 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
9 * ctfread.c (new_symbol): Set function address.
10 (read_func_kind_type): Remove incorrect type name setting.
11 Don't copy name returned from ctf_type_ame_raw throughout file.
13 2021-05-14 Tom Tromey <tom@tromey.com>
15 * rust-lang.c (rust_language::val_print_struct)
16 (rust_language::print_enum): Use common_val_print, not
19 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
21 * python/py-inferior.c (infpy_get_connection_num): New function.
22 (inferior_object_getset): Add a new element for 'connection_num'.
23 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
25 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
27 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
28 argument type, update and re-wrap, header comment.
29 (remote_target::commit_resumed): Convert any_process_wildcard and
30 may_global_wildcard_vcont from int to bool.
32 2021-05-14 Kent Cheung <kent.cheung@arm.com>
34 * cp-valprint.c (cp_print_value): Replaced duplicate code.
35 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
36 just before printing child values.
37 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
38 printing string representation.
39 * python/py-prettyprint.c (print_children): Check max_depth just
40 before printing child values.
41 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
42 printing string representation.
44 2021-05-14 Mike Frysinger <vapier@gentoo.org>
46 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
47 sim/callback.h & sim/sim.h.
49 2021-05-13 Mike Frysinger <vapier@gentoo.org>
51 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
54 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
56 * inf-child.h (inf_child_target) <follow_exec>: New.
57 * inf-child.c (inf_child_target::follow_exec): New.
59 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
61 * target.h (struct target_ops) <follow_exec>: Add ptid_t
63 (target_follow_exec): Likewise.
64 * target.c (target_follow_exec): Add ptid_t parameter.
65 * infrun.c (follow_exec): Adjust call to target_follow_exec,
66 don't push target nor create thread.
67 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
68 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
69 (thread_db_target::follow_exec): New.
70 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
71 (remote_target::follow_exec): Call
72 process_stratum_target::follow_exec.
73 * target-delegates.c: Re-generate.
75 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
77 * infrun.c (follow_exec): Call target_follow_fork when
78 follow-exec-mode is same.
79 * target.h (target_follow_fork): Improve doc.
81 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
83 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
85 * cli/cli-setshow.c (do_show_command): Adjust.
87 2021-05-13 Luis Machado <luis.machado@linaro.org>
89 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
90 include the last address in the range.
92 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
94 * python/python-internal.h (gdbpy_parse_command_name): Return
95 gdb::unique_xmalloc_ptr.
96 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
98 * python/py-param.c (parmpy_init): Adjust.
99 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
102 2021-05-12 George Barrett <bob@bob131.so>
104 * NEWS (Guile API): Note the addition of the new procedure.
105 * guile/scm-value.c (gdbscm_value_const_value): Add
106 implementation of value-const-value procedure.
107 (value_functions): Add value-const-value procedure.
109 2021-05-12 George Barrett <bob@bob131.so>
111 * NEWS (Guile API): Note the addition of new procedures.
112 * guile/scm-value.c (gdbscm_reference_value): Add helper function
113 for reference value creation.
114 (gdbscm_value_reference_value): Add implementation of
115 value-reference-value procedure.
116 (gdbscm_value_rvalue_reference_value): Add implementation of
117 value-rvalue-reference-value procedure.
118 (value_functions): Add value-reference-value procedure. Add
119 value-rvalue-reference-value procedure.
121 2021-05-12 George Barrett <bob@bob131.so>
123 * guile/scm-type.c (type_integer_constants): Add binding for
124 TYPE_CODE_RVALUE_REF.
125 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
126 dereferencing of rvalue references.
127 * NEWS (Guile API): Note improvements in rvalue reference support.
129 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
131 * btrace.c (handle_pt_insn_events): Ignore status update enable
134 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
136 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
139 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
141 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
143 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
146 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
149 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
151 * nat/linux-waitpid.c (status_to_str): Show signal name.
153 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
155 * python/py-breakpoint.c (pybp_debug): New static global.
156 (show_pybp_debug): New function.
157 (pybp_debug_printf): Define.
158 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
159 (gdbpy_breakpoint_created): Add some debugging.
160 (gdbpy_breakpoint_deleted): Likewise.
161 (gdbpy_breakpoint_modified): Likewise.
162 (_initialize_py_breakpoint): New function.
164 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
166 * python/py-unwind.c (pyuw_debug): Convert to bool.
167 (show_pyuw_debug): New function.
168 (pyuw_debug_printf): Define.
169 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
170 (pyuw_this_id): Convert to new debug print macros.
171 (pyuw_prev_register): Likewise.
172 (pyuw_sniffer): Likewise.
173 (pyuw_dealloc_cache): Likewise.
174 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
175 show function when registering.
177 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
179 * dummy-frame.c (fprint_dummy_frames): Convert use of
180 fprint_frame_id to use frame_id::to_string.
181 * frame.c (fprint_field): Delete.
182 (fprint_frame_id): Moved to...
183 (frame_id::to_string): ...this, rewritten to return a string.
184 (fprint_frame): Convert use of fprint_frame_id to use
186 (compute_frame_id): Likewise.
187 (frame_id_p): Likewise.
188 (frame_id_eq): Likewise.
189 (frame_id_inner): Likewise.
190 * frame.h (struct frame_id) <to_string>: New member function.
191 (fprint_frame_id): Delete declaration.
192 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
193 fprint_frame_id to use frame_id::to_string.
194 * python/py-frame.c (frame_object_to_frame_info): Likewise.
195 * python/py-unwind.c (unwind_infopy_str): Likewise.
196 (pyuw_this_id): Likewise.
198 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
200 * nat/linux-waitpid.c (status_to_str): Return std::string.
201 * nat/linux-waitpid.h (status_to_str): Likewise.
202 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
203 (linux_nat_target::attach): Adjust.
204 (linux_handle_extended_wait): Adjust.
206 (stop_wait_callback): Adjust.
207 (linux_nat_filter_event): Adjust.
208 (linux_nat_wait_1): Adjust.
209 * nat/linux-waitpid.c (status_to_str): Adjust.
210 * nat/linux-waitpid.h (status_to_str): Adjust.
212 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
214 * infrun.h (infrun_debug_printf): Add missing space.
216 2021-05-08 Pedro Alves <pedro@palves.net>
218 * linux-nat.c (linux_nat_target::supports_disable_randomization):
219 Remove references to HAVE_PERSONALITY.
220 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
221 (maybe_disable_address_space_randomization)
222 (~maybe_disable_address_space_randomizatio): Remove references to
224 * config.in, configure: Regenerate.
226 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
228 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
230 (source_script_with_search): Perform tilde expansion.
232 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
234 * target-descriptions.c (struct target_desc_info) <filename>:
236 (copy_inferior_target_desc_info): Adjust.
237 (target_desc_info_free): Adjust.
238 (target_find_description): Adjust.
239 (set_tdesc_filename_cmd): Adjust.
240 (show_tdesc_filename_cmd): Adjust.
241 (unset_tdesc_filename_cmd): Adjust.
242 (maint_print_c_tdesc_cmd): Adjust.
244 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
246 * target-descriptions.c (struct target_desc_info): Initialize
248 (get_tdesc_info): Use new.
249 (target_desc_info_free): Use delete.
251 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
253 * target-descriptions.c (struct target_desc_info) <fetched>:
255 (target_find_description): Adjust.
256 (target_clear_description): Adjust.
258 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
260 * target-descriptions.c (struct target_desc_info) <tdesc>:
262 (target_desc_fetched): Remove.
263 (current_target_desc): Remove.
264 (target_description_filename): Remove.
265 (target_find_description): Adjust.
266 (target_clear_description): Adjust.
267 (target_current_description): Adjust.
268 (set_tdesc_filename_cmd): Adjust.
269 (show_tdesc_filename_cmd): Adjust.
270 (unset_tdesc_filename_cmd): Adjust.
271 (maint_print_c_tdesc_cmd): Adjust.
272 (maint_print_xml_tdesc_cmd): Adjust.
274 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
276 * infcmd.c (notice_new_inferior): Change parameter type.
277 * inferior.h (notice_new_inferior): Change parameter type.
278 * remote.c (remote_notice_new_inferior): Change parameter type to
279 bool. Also update type of local variable to bool.
280 (remote_target::update_thread_list): Change type of local variable
282 (remote_target::process_stop_reply): Pass bool instead of int to
283 remote_notice_new_inferior.
285 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
287 * target.c (target_stack::unpush): Call target_ops::find_beneath
288 to get the target beneath `t`.
290 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
292 * target.c (target_close): Check in all inferiors that the
293 target is not pushed.
295 2021-05-07 Aaron Merey <amerey@redhat.com>
297 * debuginfod-support.c (debuginfod_init): Remove.
298 (get_debuginfod_client): New function.
300 2021-05-07 Tom Tromey <tom@tromey.com>
302 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
303 * utils.c (streq_hash): Remove.
304 * utils.h (streq_hash): Don't declare.
305 * completer.c (completion_tracker::discard_completions): Update
307 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
309 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
311 * Re-format all Python files using black.
313 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
315 * guile/guile-internal.h (gdbscm_safe_source_script): Change
316 function return type.
317 * guile/guile.c (gdbscm_source_script): Update to handle change in
318 gdbscm_safe_source_script.
319 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
320 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
323 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
325 * inferior.h (class inferior) <args>: Change type to
327 * inferior.c (inferior::~inferior): Don't free args.
328 * infcmd.c (get_inferior_args): Adjust.
329 (set_inferior_args): Adjust.
331 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
333 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
334 breakpoint locations when the breakpoint actually has a location.
336 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
338 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
339 * mi/mi-cmds.c: Change the binding of "-break-condition" to
340 mi_cmd_break_condition.
341 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
342 * breakpoint.h (set_breakpoint_condition): Declare a new
344 * breakpoint.c (set_breakpoint_condition): New overloaded function
345 extracted out from ...
346 (condition_command): ... this.
347 * NEWS: Mention the change.
349 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
351 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
352 '--force-condition' flag to force the condition in the
353 '-break-insert' and '-dprintf-insert' commands.
354 * NEWS: Mention the change.
356 2021-05-04 Tom de Vries <tdevries@suse.de>
359 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
362 2021-04-30 Tom Tromey <tom@tromey.com>
364 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
365 (add_signatured_type_cu_to_table): Remove.
366 (create_debug_type_hash_table): Assume dwo_file is non-null.
367 (create_debug_types_hash_table): Update comment.
368 (create_all_type_units): Remove.
369 (sort_tu_by_abbrev_offset): Update comment.
370 (build_type_psymtabs): Rename from build_type_psymtabs_1.
371 (build_type_psymtabs): Remove.
372 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
374 (read_comp_units_from_section): Add types_htab, section_kind
376 (create_all_comp_units): Read type units.
378 2021-04-30 Tom Tromey <tom@tromey.com>
380 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
381 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
382 <get_cu>: Now inline.
383 <all_type_units>: Remove.
384 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
385 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
386 (dwarf2_per_bfd::get_tu): Remove.
387 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
388 (create_signatured_type_table_from_index)
389 (create_signatured_type_table_from_debug_names)
390 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
391 (dwarf2_base_index_functions::expand_all_symtabs)
392 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
393 (dwarf2_base_index_functions::map_symbol_filenames)
394 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
395 (add_signatured_type_cu_to_table, create_all_type_units)
396 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
397 (create_all_comp_units): Update.
398 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
399 (write_debug_names): Update.
401 2021-04-30 Tom Tromey <tom@tromey.com>
403 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
404 allocate_signatured_type>: Change return type.
405 <all_comp_units, all_type_units>: Hold unique pointers.
406 (struct dwarf2_per_cu_data): Add constructor and initializers.
407 (struct signatured_type): Derive from dwarf2_per_cu_data.
408 * dwarf2/read.c (type_unit_group): Derive from
410 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
411 (dwarf2_per_bfd::get_tu)
412 (dwarf2_per_bfd::allocate_signatured_type)
413 (dwarf2_per_bfd::allocate_signatured_type)
414 (create_cu_from_index_list, create_cus_from_index_list)
415 (create_signatured_type_table_from_index)
416 (create_signatured_type_table_from_debug_names)
417 (create_addrmap_from_aranges)
418 (dwarf2_base_index_functions::find_last_source_symtab)
419 (dw_expand_symtabs_matching_file_matcher)
420 (dwarf2_gdb_index::expand_symtabs_matching)
421 (dwarf2_base_index_functions::map_symbol_filenames)
422 (create_cus_from_debug_names_list)
423 (dw2_debug_names_iterator::next)
424 (dwarf2_debug_names_index::expand_symtabs_matching)
425 (create_debug_type_hash_table, add_type_unit)
426 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
428 (allocate_type_unit_groups_table): Use delete.
429 (create_type_unit_group): Change return type. Use new.
430 (get_type_unit_group, build_type_psymtabs_1)
431 (build_type_psymtab_dependencies)
432 (process_skeletonless_type_unit, set_partial_user)
433 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
434 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
435 (read_signatured_type): Update.
436 (dwarf2_find_containing_comp_unit): Change type of
439 (dwarf2_per_bfd::allocate_per_cu)
440 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
442 (add_signatured_type_cu_to_table): Update.
443 * dwarf2/index-write.c (write_one_signatured_type)
444 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
445 (write_debug_names): Update.
447 2021-04-30 Tom Tromey <tromey@adacore.com>
449 * nat/windows-nat.h (get_image_name): Don't declare.
450 * nat/windows-nat.c (get_image_name): Now static.
452 2021-04-30 Tom Tromey <tromey@adacore.com>
454 * windows-nat.c (windows_nat::handle_load_dll): Update.
455 (windows_nat_target::get_windows_debug_event): Call
457 (windows_add_all_dlls, windows_add_dll): Move to
459 * nat/windows-nat.h (handle_load_dll): Change parameters.
460 (dll_loaded_event, windows_add_all_dlls): Declare.
461 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
463 (dll_loaded_event): New function.
465 2021-04-30 Tom Tromey <tromey@adacore.com>
467 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
468 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
470 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
471 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
473 2021-04-30 Tom Tromey <tromey@adacore.com>
475 * windows-nat.c: Move code to nat/windows-nat.[ch].
476 (_initialize_windows_nat): Call initialize_loadable.
477 * nat/windows-nat.h (AdjustTokenPrivileges)
478 (DebugActiveProcessStop, DebugBreakProcess)
479 (DebugSetProcessKillOnExit, EnumProcessModules)
480 (EnumProcessModulesEx, GetModuleInformation)
481 (GetModuleFileNameExA, GetModuleFileNameExW)
482 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
483 (GetCurrentConsoleFont, Wow64SuspendThread)
484 (Wow64GetThreadContext, Wow64SetThreadContext)
485 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
486 (AdjustTokenPrivileges_ftype)
487 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
488 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
489 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
490 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
491 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
492 (GetConsoleFontSize_ftype)
493 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
494 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
495 (Wow64GetThreadSelectorEntry_ftype): Likewise.
496 (initialize_loadable): Declare.
497 * nat/windows-nat.c (AdjustTokenPrivileges)
498 (DebugActiveProcessStop, DebugBreakProcess)
499 (DebugSetProcessKillOnExit, EnumProcessModules)
500 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
501 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
502 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
503 (Wow64GetThreadContext, Wow64SetThreadContext)
504 (Wow64GetThreadSelectorEntry): Define.
505 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
507 (initialize_loadable): Likewise, and rename.
509 2021-04-30 Tom Tromey <tromey@adacore.com>
511 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
512 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
513 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
514 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
515 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
516 (bad): New template functions.
517 (_initialize_loadable): Update.
519 2021-04-30 Tom Tromey <tromey@adacore.com>
521 * ada-lang.c (ada_index_type): Use ada_check_typedef.
523 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
525 * auto-load.h: Split namespace declaration.
527 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
529 * infrun.c (save_waitstatus): Move variables to inner scope.
531 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
533 * NEWS: Fix typo and stray full stop.
535 2021-04-28 Tom Tromey <tromey@adacore.com>
537 * ada-exp.y (primary): Use new type for null pointer.
538 * ada-lang.c (ada_type_match): Remove "may_deref"
539 parameter. Handle null pointer.
540 (ada_args_match): Update.
541 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
544 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
546 * NEWS: Mention new commands.
547 * python/python.c (python_ignore_environment): New static global.
548 (show_python_ignore_environment): New function.
549 (set_python_ignore_environment): New function.
550 (python_dont_write_bytecode): New static global.
551 (show_python_dont_write_bytecode): New function.
552 (set_python_dont_write_bytecode): New function.
553 (_initialize_python): Register new commands.
555 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
557 * extension-priv.h (struct extension_language_ops): Rename
558 'finish_initialization' to 'initialize'.
559 * extension.c (finish_ext_lang_initialization): Renamed to...
560 (ext_lang_initialization): ...this, update comment, and updated
561 the calls to reflect the change in struct extension_language_ops.
562 * extension.h (finish_ext_lang_initialization): Renamed to...
563 (ext_lang_initialization): ...this.
564 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
565 (gdbscm_initialize): ...this, update comment at definition.
566 (guile_extension_ops): Update.
567 * main.c (captured_main_1): Update call to
568 finish_ext_lang_initialization.
569 * python/python.c (gdbpy_finish_initialization): Rename to...
570 (gdbpy_initialize): ...this, update comment at definition, and
571 update call to do_finish_initialization.
572 (python_extension_ops): Update.
573 (do_finish_initialization): Rename to...
574 (do_initialize): ...this, and update comment.
576 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
578 * main.c (captured_main_1): Add a call to
579 finish_ext_lang_initialization.
580 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
582 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
584 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
585 (gdbscm_finish_initialization): Add code moved from
587 (_initialize_guile): Move code to gdbscm_finish_initialization.
588 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
589 _initialize_scm_arch.
590 (_initialize_scm_arch): New function.
591 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
592 into _initialize_scm_block.
593 (_initialize_scm_block): New function.
594 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
595 into _initialize_scm_frame.
596 (_initialize_scm_frame): New function.
597 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
598 into _initialize_scm_objfile.
599 (_initialize_scm_objfile): New function.
600 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
601 code into _initialize_scm_progspace.
602 (_initialize_scm_progspace): New function.
603 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
604 into _initialize_scm_symbol.
605 (_initialize_scm_symbol): New function.
606 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
607 into _initialize_scm_symtab.
608 (_initialize_scm_symtab): New function.
609 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
610 _initialize_scm_type.
611 (_initialize_scm_type): New function.
613 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
615 * python/py-arch.c (_initialize_py_arch): New function.
616 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
617 * python/py-block.c (_initialize_py_block): New function.
618 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
619 * python/py-inferior.c (_initialize_py_inferior): New function.
620 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
621 * python/py-objfile.c (_initialize_py_objfile): New function.
622 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
623 * python/py-progspace.c (_initialize_py_progspace): New function.
624 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
625 * python/py-registers.c (_initialize_py_registers): New function.
626 (gdbpy_initialize_registers): Move code to
627 _initialize_py_registers.
628 * python/py-symbol.c (_initialize_py_symbol): New function.
629 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
630 * python/py-symtab.c (_initialize_py_symtab): New function.
631 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
632 * python/py-type.c (_initialize_py_type): New function.
633 (gdbpy_initialize_types): Move code to _initialize_py_type.
634 * python/py-unwind.c (_initialize_py_unwind): New function.
635 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
636 * python/python.c (_initialize_python): Move call to
637 do_start_initialization to gdbpy_finish_initialization.
638 (gdbpy_finish_initialization): Add call to
639 do_start_initialization.
641 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
643 * extension.c (struct scoped_default_signal): New struct.
644 (scoped_default_sigint): New typedef.
645 (finish_ext_lang_initialization): Make use of
646 scoped_default_sigint.
648 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
650 * main.c (captured_main_1): Don't pass argument to gdb_init.
651 * top.c (gdb_init): Remove unused argument, and add header
653 * top.h (gdb_init): Remove argument.
655 2021-04-27 Luis Machado <luis.machado@linaro.org>
657 * psymtab.c (psymbol_functions::dump): Output newline.
659 * symmisc.c (dump_objfile): Likewise.
661 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
662 Simon Marchi <simon.marchi@polymtl.ca>
664 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
665 when attaching the 'auto_load_new_objfile' observer, so
666 other observers can specify it as a dependency.
667 * gdb/auto-load.h (struct token): Declare
668 'auto_load_new_objfile_observer_token' as token to be used
669 for the 'auto_load_new_objfile' observer.
670 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
671 'python_new_objfile' observer depend on 'auto_load_new_objfile'
672 observer, so it gets notified after the latter.
674 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
675 Simon Marchi <simon.marchi@polymtl.ca>
677 * unittests/observable-selftests.c (dependency_test_counters):
679 (observer_token0, observer_token1, observer_token2,
680 observer_token3, observer_token4, observer_token5): New.
681 (struct dependency_observer_data): New struct.
682 (observer_dependency_test_callback): New function.
683 (test_observers): New.
684 (run_dependency_test): New function.
685 (test_dependency): New.
686 (_initialize_observer_selftest): Register dependency test.
688 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
691 * cli/cli-dump.c (dump_binary_file): Check result of
694 2021-04-25 Sergei Trofimovich <siarheit@google.com>
696 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
697 by passing `process_stratum_target*` parameter.
699 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
702 * typeprint.h (struct type_print_options): Add print_in_hex
704 (struct print_offset_data): Add print_in_hex flag, add a
705 constructor accepting a type_print_options* argument.
706 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
707 default value for print_in_hex.
708 (print_offset_data::indentation): Allow more horizontal space.
709 (print_offset_data::print_offset_data): Add ctor.
710 (print_offset_data::maybe_print_hole, print_offset_data::update):
711 Handle the print_in_hex flag.
712 (whatis_exp): Handle 'x' and 'd' flags.
713 (print_offsets_and_sizes_in_hex): Declare.
714 (set_print_offsets_and_sizes_in_hex): Create.
715 (show_print_offsets_and_sizes_in_hex): Create.
716 (_initialize_typeprint): Update help message for the ptype
717 command, register the 'set print type hex' and 'show print type
719 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
720 (c_type_print_base): Construct the print_offset_data
721 object using the type_print_optons parameter.
722 * rust-lang.c (rust_language::print_type): Construct the
723 print_offset_data object using the type_print_optons parameter.
724 * NEWS: Mention the new flags of the ptype command.
726 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
728 * typeprint.h (struct type_print_options): Move before
731 2021-04-25 Joel Brobecker <brobecker@adacore.com>
735 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
737 * observable.c (observer_debug): Change to bool.
739 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
741 * dwarf2/read.c: Add 'unordered_set' include.
742 (dwarf2_base_index_functions::map_symbol_filenames): Replace
743 'visited' hash table with 'qfn_cache' unordered_set. Remove use
744 of per_Bfd->filenames_cache cache, and use function local
745 filenames_cache instead. Reindent.
746 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
748 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
750 * breakpoint.c (iterate_over_bp_locations): Change callback to
751 function view, remove data parameter.
752 * breakpoint.h (iterate_over_bp_locations): Likewise.
753 * record-full.c (record_full_sync_record_breakpoints): Remove
756 2021-04-22 Tom Tromey <tom@tromey.com>
758 * c-typeprint.c (c_type_print_base_struct_union): Use
759 print_spaces_filtered_with_print_options.
761 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
764 * python/py-type.c (typy_range): Check that bounds are constant
765 before accessing them as such.
766 * guile/scm-type.c (gdbscm_type_range): Likewise.
768 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
770 * Makefile.in (COMMON_SFILES): Remove continuations.c.
771 * inferior.c (inferior::add_continuation): New method, adapted
772 from 'add_inferior_continuation'.
773 (inferior::do_all_continuations): New method, adapted from
774 'do_all_inferior_continuations'.
775 (inferior::~inferior): Clear the list of continuations directly.
776 * inferior.h (class inferior) <continuations>: Rename into...
777 <m_continuations>: ...this and make private.
778 * continuations.c: Remove.
779 * continuations.h: Remove.
780 * event-top.c: Don't include "continuations.h".
782 Update the users below.
783 * inf-loop.c (inferior_event_handler)
784 * infcmd.c (attach_command)
785 (notice_new_inferior): Update.
787 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
789 * inferior.h (class inferior) <continuations>: Change the type
790 to be an std::list of std::function's.
791 Update the references and uses below.
792 * continuations.c (struct continuation): Delete.
793 (make_continuation): Delete.
794 (do_my_continuations_1): Delete.
795 (do_my_continuations): Delete.
796 (discard_my_continuations_1): Delete.
797 (discard_my_continuations): Delete.
798 (add_inferior_continuation): Update.
799 (do_all_inferior_continuations): Update.
800 (discard_all_inferior_continuations): Update.
801 * continuations.h (add_inferior_continuation): Update to take
802 an std::function as the parameter.
803 * infcmd.c (struct attach_command_continuation_args): Delete.
804 (attach_command_continuation): Delete.
805 (attach_command_continuation_free_args): Delete.
806 (attach_command): Update.
807 (notice_new_inferior): Update.
809 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
811 * continuations.h: Update the general comment.
812 * inferior.h (class inferior) <continuations>: Update the comment.
813 * interps.c: Do not include "continuations.h".
815 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
817 * continuations.h (do_all_inferior_continuations): Remove the 'err'
818 parameter. Update the references below.
819 * continuations.c (do_my_continuations_1)
820 (do_my_continuations)
821 (do_all_inferior_continuations): Update.
822 * inf-loop.c (inferior_event_handler): Update.
823 * infcmd.c (attach_command_continuation): Update.
825 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
827 * infcmd.c (attach_post_wait): Update the function comment.
829 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
831 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
832 Update the references below.
833 (struct attach_command_continuation_args)
834 (attach_command_continuation)
835 (attach_command_continuation_free_args)
837 (notice_new_inferior): Update to remove the reference to 'args'.
839 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
840 Tom de Vries <tdevries@suse.de>
843 * remote.c (remote_target_is_non_stop_p): New function.
844 * remote.h (remote_target_is_non_stop_p): Declare.
845 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
846 to check non-stopness using notif_state->remote rather current target.
848 2021-04-22 Tom Tromey <tom@tromey.com>
850 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
851 (struct typed_val_int) <val>: Now ULONGEST.
852 (rust_parser::parse_array_type): Remove negative check.
853 (rust_lex_int_test): Change 'value' to ULONGEST.
855 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
857 * arch-utils.c (default_addressable_memory_unit_size): Return a
858 value based on bfd's bits per byte.
860 2021-04-21 Tom Tromey <tom@tromey.com>
862 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
864 (struct dwarf2_per_cu_data): Rearrange.
865 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
867 (struct comp_unit_head): Rearrange.
868 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
870 2021-04-21 Tom de Vries <tdevries@suse.de>
873 * configure.ac: Remove --without-included-regex/--with-included-regex.
874 * config.in: Regenerate.
875 * configure: Regenerate.
876 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
878 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
880 * breakpoint.h (create_breakpoint): Add a new parameter,
882 * breakpoint.c (create_breakpoint): Use the 'force_condition'
883 argument when 'parse_extra' is false to check if the condition
884 is invalid at all of the breakpoint locations.
885 Update the users below.
891 (create_tracepoint_from_upload): Update.
892 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
893 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
894 * python/py-breakpoint.c (bppy_init): Update.
895 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
897 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
899 * breakpoint.c (print_one_breakpoint_location): Display "N" for
900 disabled-by-condition locations on MI-like output.
901 (breakpoint_1): Do not display the disabled-by-condition footnote
902 if the output is MI-like.
904 2021-04-21 Frederic Cambus <fred@statdns.com>
906 * syscalls/update-netbsd.sh: Fix script name display in usage, and
907 update year range in generated copyright notices.
909 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
911 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
914 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
916 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
918 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
920 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
921 (producer_is_icc): Replace use of std::regex with gdb's
924 2021-04-17 Tom Tromey <tom@tromey.com>
927 * dwarf2/read.c (class offset_view): New.
928 (struct symbol_table_slot): Remove.
929 (struct mapped_index) <symbol_table, constant_pool>: Change type.
930 <symbol_name_index, symbol_vec_index>: New methods.
931 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
933 (read_gdb_index_from_buffer): Update.
934 (struct dw2_symtab_iterator) <vec>: Change type.
935 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
936 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
937 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
938 <append_array, append_offset>: New methods.
939 (write_hash_table, add_address_entry, write_gdbindex_1)
940 (write_debug_names): Update.
941 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
943 2021-04-17 Tom Tromey <tom@tromey.com>
945 * dwarf2/index-write.c (write_psymtabs_to_index): Check
948 2021-04-17 Tom Tromey <tom@tromey.com>
950 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
951 from map_matching_symbols. Change parameters.
952 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
953 Rename from map_matching_symbols. Change parameters.
954 * dwarf2/read.c (struct dwarf2_gdb_index)
955 <expand_matching_symbols>: Rename from map_matching_symbols.
957 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
958 Rename from map_matching_symbols. Change parameters.
959 (dwarf2_gdb_index::expand_matching_symbols): Rename from
960 dw2_map_matching_symbols. Change parameters.
961 (dwarf2_gdb_index::expand_matching_symbols): Remove old
963 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
964 map_matching_symbols. Change parameters.
965 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
966 from map_matching_symbols. Change parameters.
967 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
968 map_matching_symbols. Change parameters.
969 * ada-lang.c (map_matching_symbols): New function.
970 (add_nonlocal_symbols): Update.
972 2021-04-17 Tom Tromey <tom@tromey.com>
974 * quick-symbol.h (struct quick_symbol_functions)
975 <expand_symtabs_with_fullname>: Remove.
976 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
978 * psympriv.h (struct psymbol_functions)
979 <expand_symtabs_with_fullname>: Remove.
980 * dwarf2/read.c (struct dwarf2_base_index_functions)
981 <expand_symtabs_with_fullname>: Remove.
982 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
984 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
986 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
989 2021-04-17 Tom Tromey <tom@tromey.com>
991 * symfile-debug.c (objfile::expand_symtabs_for_function):
993 * quick-symbol.h (struct quick_symbol_functions)
994 <expand_symtabs_for_function>: Remove.
995 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
997 * psympriv.h (struct psymbol_functions)
998 <expand_symtabs_for_function>: Remove.
999 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1001 * dwarf2/read.c (struct dwarf2_gdb_index)
1002 <expand_symtabs_for_function>: Remove.
1003 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1005 (find_slot_in_mapped_hash): Remove.
1006 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1007 (dw2_symtab_iter_init): Remove one overload.
1008 (dwarf2_gdb_index::expand_symtabs_for_function)
1009 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1011 2021-04-17 Tom Tromey <tom@tromey.com>
1013 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1015 * quick-symbol.h (struct quick_symbol_functions)
1016 <map_symtabs_matching_filename>: Remove.
1017 * psymtab.c (partial_map_expand_apply)
1018 (psymbol_functions::map_symtabs_matching_filename): Remove.
1019 * psympriv.h (struct psymbol_functions)
1020 <map_symtabs_matching_filename>: Remove.
1021 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1023 * dwarf2/read.c (struct dwarf2_base_index_functions)
1024 <map_symtabs_matching_filename>: Remove.
1025 (dw2_map_expand_apply)
1026 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1029 2021-04-17 Tom Tromey <tom@tromey.com>
1031 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1032 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1034 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1035 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1036 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1037 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1039 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1040 (dwarf2_gdb_index::lookup_symbol)
1041 (dwarf2_debug_names_index::lookup_symbol): Remove.
1043 2021-04-17 Tom Tromey <tom@tromey.com>
1045 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1046 * symmisc.c (maintenance_expand_symtabs): Update.
1047 * symfile.c (expand_symtabs_matching): Update.
1048 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1050 * quick-symbol.h (struct quick_symbol_functions)
1051 <expand_symtabs_matching>: Add 'domain' parameter.
1052 * psymtab.c (recursively_search_psymtabs)
1053 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1055 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1056 Add 'domain' parameter.
1057 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1059 * linespec.c (iterate_over_all_matching_symtabs): Update.
1060 * dwarf2/read.c (struct dwarf2_gdb_index)
1061 <expand_symtabs_matching>: Add 'domain' parameter.
1062 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1064 (dw2_expand_symtabs_matching)
1065 (dwarf2_gdb_index::expand_symtabs_matching)
1066 (dw2_debug_names_iterator)
1067 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1070 2021-04-17 Tom Tromey <tom@tromey.com>
1072 * symtab.c (global_symbol_searcher::expand_symtabs)
1073 (default_collect_symbol_completion_matches_break_on): Update.
1074 * symmisc.c (maintenance_expand_symtabs): Update.
1075 * symfile.h (expand_symtabs_matching): Add search_flags
1077 * symfile.c (expand_symtabs_matching): Add search_flags
1079 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1080 search_flags parameter.
1081 * quick-symbol.h (struct quick_symbol_functions)
1082 <expand_symtabs_matching>: Add search_flags parameter.
1083 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1084 * psymtab.c (recursively_search_psymtabs)
1085 (psymbol_functions::expand_symtabs_matching): Add search_flags
1087 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1088 Add search_flags parameter.
1089 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1090 search_flags parameter.
1091 * linespec.c (iterate_over_all_matching_symtabs): Update.
1092 * dwarf2/read.c (struct dwarf2_gdb_index)
1093 <expand_symtabs_matching>: Add search_flags parameter.
1094 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1095 search_flags parameter.
1096 (dw2_map_matching_symbols): Update.
1097 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1098 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1100 (dw2_debug_names_iterator): Change block_index to search flags.
1101 <m_block_index>: Likewise.
1102 (dw2_debug_names_iterator::next)
1103 (dwarf2_debug_names_index::lookup_symbol)
1104 (dwarf2_debug_names_index::expand_symtabs_for_function)
1105 (dwarf2_debug_names_index::map_matching_symbols)
1106 (dwarf2_debug_names_index::map_matching_symbols): Update.
1107 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1108 search_flags parameter.
1109 * ada-lang.c (ada_add_global_exceptions)
1110 (collect_symbol_completion_matches): Update.
1112 2021-04-17 Tom Tromey <tom@tromey.com>
1114 * symtab.c (default_collect_symbol_completion_matches_break_on):
1116 * symfile.h (expand_symtabs_matching): Return bool.
1117 * symfile.c (expand_symtabs_matching): Return bool.
1118 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1120 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1121 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1123 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1125 * psympriv.h (struct psymbol_functions)
1126 <expand_symtabs_matching>: Return bool.
1127 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1129 * dwarf2/read.c (struct dwarf2_gdb_index)
1130 <expand_symtabs_matching>: Return bool.
1131 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1133 (dw2_expand_symtabs_matching_symbol): Return bool.
1134 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1135 (dw2_expand_symtabs_matching)
1136 (dwarf2_gdb_index::expand_symtabs_matching)
1137 (dwarf2_debug_names_index::expand_symtabs_matching)
1138 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1140 2021-04-17 Tom Tromey <tom@tromey.com>
1142 * quick-symbol.h (enum block_search_flag_values): New.
1143 (block_search_flags): New enum flags type.
1145 2021-04-16 Tom Tromey <tom@tromey.com>
1147 * rust-parse.c: New file.
1148 * rust-exp.y: Remove.
1149 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1150 (SFILES): Remove rust-exp.y.
1151 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1153 2021-04-16 Luis Machado <luis.machado@linaro.org>
1155 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1157 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1159 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1160 use throughout file.
1162 2021-04-15 Tom Tromey <tromey@adacore.com>
1164 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1167 2021-04-15 Tom Tromey <tromey@adacore.com>
1169 * printcmd.c (print_variable_and_value): Use
1170 common_val_print_checked.
1172 2021-04-15 Tom Tromey <tromey@adacore.com>
1174 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1175 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1177 * p-exp.y (variable): Update.
1178 * m2-exp.y (variable): Update.
1179 * go-exp.y (variable): Update.
1180 * expprint.c (dump_for_expression): New overload.
1181 * expop.h (check_objfile): New overload.
1182 (check_constant): New overload.
1183 (class var_value_operation): Use block_symbol.
1184 <get_symbol>: Rewrite.
1185 * eval.c (var_value_operation::evaluate)
1186 (var_value_operation::evaluate_funcall)
1187 (var_value_operation::evaluate_for_address)
1188 (var_value_operation::evaluate_for_address)
1189 (var_value_operation::evaluate_with_coercion)
1190 (var_value_operation::evaluate_for_sizeof)
1191 (var_value_operation::evaluate_for_cast): Update.
1192 * d-exp.y (PrimaryExpression): Update.
1193 * c-exp.y (variable): Update.
1194 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1195 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1196 (ada_var_value_operation::evaluate)
1197 (ada_var_value_operation::resolve)
1198 (ada_funcall_operation::resolve): Update.
1199 * ada-exp.y (write_var_from_sym, write_object_renaming)
1200 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1201 (maybe_overload): Update.
1202 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1204 2021-04-15 Tom Tromey <tom@tromey.com>
1205 Andrew Burgess <andrew.burgess@embecosm.com>
1208 * main.c (captured_main_1): Call check_quiet_mode.
1209 * top.c (startup_quiet): New global.
1210 (check_quiet_mode): New function.
1211 (show_startup_quiet): New function.
1212 (init_main): Register new command.
1213 * top.h (check_quiet_mode): Declare.
1215 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1218 * NEWS: Mention new early init files and command line options.
1219 * config.in: Regenerate.
1220 * configure: Regenerate.
1221 * configure.ac: Define GDBEARLYINIT.
1222 * main.c (get_earlyinit_files): New function.
1223 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1224 CMDARG_EARLYINIT_COMMAND.
1225 (captured_main_1): Add support for new command line flags, and for
1226 processing startup files.
1227 (print_gdb_help): Include startup files in the output.
1229 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1231 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1232 (relocate_file_path_maybe_in_datadir): ...this.
1233 (class gdb_initfile_finder): New class.
1234 (get_init_files): Now uses gdb_initfile_finder.
1235 (print_gdb_help): Print 'None found' when there are no init files.
1237 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1239 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1240 corresponding child of the abstract DIE when iterating the
1241 children of the concrete DIE.
1243 2021-04-13 Tom de Vries <tdevries@suse.de>
1245 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1248 2021-04-13 Luis Machado <luis.machado@linaro.org>
1250 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1253 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1255 * rs6000-tdep.c: Add support for single-stepping of
1256 prefixed instructions.
1258 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1261 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1262 handle the addpcis/lnia instruction.
1264 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1266 * MAINTAINERS (Write After Approval): Add myself.
1268 2021-4-12 Carl Love <cel@us.ibm.com>
1270 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1271 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1274 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1276 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1277 * nat/windows-nat.h: Likewise.
1279 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1281 * windows-nat.c (windows_nat::handle_load_dll): Call
1282 windows_add_dll if get_image_name failed to glean the name of the
1283 DLL by using the lpImageName pointer.
1284 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1285 (windows_add_dll): Now does what windows_add_all_dlls did before,
1286 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1287 specifies the address where the DLL was loaded into the inferior,
1288 and looks for the single DLL loaded at that address.
1290 2021-04-09 Luis Machado <luis.machado@linaro.org>
1292 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1294 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1296 * darwin-nat.c (darwin_nat_target::resume): Remove status
1299 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1301 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1302 prologue end for Intel compilers.
1303 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1304 * producer.c (producer_is_icc_ge_19): New function.
1305 * producer.h (producer_is_icc_ge_19): New declaration.
1307 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1309 * producer.c: (producer_is_icc): Update for new version scheme.
1310 (producer_parsing_tests): Update names and expected results.
1311 * producer.h: (producer_is_icc): Update comment accordingly.
1313 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1315 * target.h (struct target_ops) <follow_fork>: Return void.
1316 (target_follow_fork): Likewise.
1317 * target.c (default_follow_fork): Likewise.
1318 (target_follow_fork): Likewise.
1319 * infrun.c (follow_fork_inferior): Adjust.
1320 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1321 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1322 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1323 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1324 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1325 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1326 * remote.c (class remote_target) <follow_fork>: Likewise.
1327 (remote_target::follow_fork): Likewise.
1328 * target-delegates.c: Re-generate.
1330 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1332 * ctfread.c (fetch_tid_type): New function, use throughout file.
1333 (read_forward_type): New function.
1334 (read_type_record): Call read_forward_type.
1336 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1338 * f-exp.h (class fortran_structop_operation): New class.
1339 * f-exp.y (exp): Create fortran_structop_operation instead of the
1340 generic structop_operation.
1341 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1342 expression as EVAL_NORMAL if the result type was dynamic so we can
1343 extract the actual array bounds.
1344 (fortran_structop_operation::evaluate): New function.
1346 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1348 * eval.c (evaluate_subexp_standard): Remove
1349 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1352 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1354 * valops.c (value_cast): Call value_deeply_equal before performing
1357 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1359 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1362 2021-04-07 Caroline Tice <cmtice@google.com>
1364 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1365 the search paths used resolve relative location of .dwo file.
1367 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1369 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1371 (dwarf2_section_info::get_file_name): Add an assert.
1372 (dwarf2_section_info::read_string): Display a minimal, sane error
1373 when the dwarf2_section_info is not associated with a bfd section.
1375 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1377 * top.c (staged_gdb_datadir): Update comment.
1378 (set_gdb_datadir): Copy the value of gdb_datadir back into
1380 (init_main): Initialise staged_gdb_datadir.
1382 2021-04-06 Tom de Vries <tdevries@suse.de>
1384 PR breakpoints/25884
1385 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1388 2021-04-06 Tom de Vries <tdevries@suse.de>
1391 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1394 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1396 * avr-tdep.c (avr_frame_unwind_cache): Use
1397 trad_frame_saved_reg::is_addr.
1399 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1401 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1404 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1406 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1407 objfile parameter for objfile_per_bfd_storage, adjust callers.
1408 (struct standard_psymtab) <standard_psymtab>: Likewise.
1409 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1410 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1411 * ctfread.c (struct ctf_psymtab): Likewise.
1412 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1413 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1414 (dwarf2_create_include_psymtab): Likewise.
1415 * objfiles.h (struct objfile_per_bfd_storage)
1416 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1417 <get_bfd>: New method.
1419 * objfiles.c (get_objfile_bfd_data): Adjust.
1421 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1423 * psymtab.c (partial_symtab::partial_symtab): Change
1424 last_objfile_name to be an std::string.
1425 * symfile.c (allocate_symtab): Likewise.
1427 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1429 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1431 (struct objfile) <intern>: Use
1432 objfile::objfile_per_bfd_storage::intern.
1434 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1436 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1437 with type::is_flag_enum.
1439 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1441 * gdbtypes.h (struct type) <is_flag_enum,
1442 set_is_flag_enum>: New methods.
1443 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1444 write call sites to use type::set_is_flag_enum.
1446 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1448 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1449 with type::is_declared_class.
1451 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1453 * gdbtypes.h (struct type) <is_declared_class,
1454 set_is_declared_class>: New methods.
1455 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1456 write call sites to use type::set_is_declared_class.
1458 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1460 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1461 to avoid deprecation warnings.
1463 2021-04-01 Martin Liska <mliska@suse.cz>
1465 * cp-name-parser.y: Use startswith instead of strncmp.
1466 * m2-exp.y: Likewise.
1467 * macroexp.c (substitute_args): Likewise.
1468 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1469 * rust-exp.y: Likewise.
1471 2021-03-31 Tom Tromey <tom@tromey.com>
1473 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1474 with dw2_map_matching_symbols.
1475 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1476 dw2_expand_symtabs_matching.
1478 2021-03-31 Tom Tromey <tromey@adacore.com>
1480 * dwarf2/stringify.h: Fix typo.
1482 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1485 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1486 with objfiles using READNOW.
1488 2021-03-29 Tom Tromey <tromey@adacore.com>
1490 * top.c (check_frame_language_change): Update.
1491 * language.c (language_info): Remove parameter.
1492 * language.h (language_info): Remove parameter.
1494 2021-03-29 Luis Machado <luis.machado@linaro.org>
1496 * compile/compile.c (get_args): Don't add empty argv entries.
1498 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1501 * procfs.c (procfs_target::attach): Define inf.
1503 (procfs_target::create_inferior): Likewise.
1505 2021-03-28 Tom Tromey <tom@tromey.com>
1507 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1508 (elf_symfile_read): Simplify.
1509 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1510 (make_lazy_dwarf_reader): New function.
1511 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1512 (dwarf2_initialize_objfile): Return void. Remove index_kind
1513 parameter. Push on 'qf' list.
1514 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1515 type. Remove 'index_kind' parameter.
1516 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1518 2021-03-27 Tom Tromey <tom@tromey.com>
1520 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1522 2021-03-27 Tom Tromey <tom@tromey.com>
1524 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1526 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1528 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1531 2021-03-26 Tom Tromey <tom@tromey.com>
1533 * symtab.c (struct output_source_filename_data): Add 'output'
1534 method and operator().
1535 (output_source_filename_data::output): Rename from
1536 output_source_filename.
1537 (output_partial_symbol_filename): Remove.
1538 (info_sources_command): Update.
1539 (struct add_partial_filename_data): Add operator().
1540 (add_partial_filename_data::operator()): Rename from
1541 maybe_add_partial_symtab_filename.
1542 (make_source_files_completion_list): Update.
1543 * symfile.c (quick_symbol_functions): Update.
1544 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1545 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1546 'need_fullname'. Remove 'data' parameter.
1547 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1548 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1549 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1550 Change type of 'fun' and 'need_fullname'. Remove 'data'
1552 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1553 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1554 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1556 (mi_cmd_file_list_exec_source_files): Update.
1558 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1560 2021-03-26 Tom Tromey <tom@tromey.com>
1562 * ada-lang.c (struct match_data): Add operator().
1563 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1564 (callback): Remove 'callback'.
1566 2021-03-26 Tom Tromey <tom@tromey.com>
1568 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1569 call make_ignore_params once.
1571 2021-03-26 Tom Tromey <tom@tromey.com>
1573 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1576 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1577 Pedro Alves <pedro@palves.net>
1579 * async-event.c: Include "infrun.h".
1580 (async_event_handler_marked): New.
1581 * async-event.h (async_event_handler_marked): Declare.
1582 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1583 inferior before calling target method. Don't commit-resumed if
1584 target_has_pending_events is true.
1585 * remote.c (remote_target::has_pending_events): New.
1586 * target-delegates.c: Regenerate.
1587 * target.c (target_has_pending_events): New.
1588 * target.h (target_ops::has_pending_events): New target method.
1589 (target_has_pending_events): New.
1591 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1592 Pedro Alves <pedro@palves.net>
1594 * infcmd.c (run_command_1, attach_command, detach_command)
1595 (interrupt_target_1): Use scoped_disable_commit_resumed.
1596 * infrun.c (do_target_resume): Remove
1597 target_commit_resume call.
1598 (commit_resume_all_targets): Remove.
1599 (maybe_set_commit_resumed_all_targets): New.
1600 (maybe_call_commit_resumed_all_targets): New.
1601 (enable_commit_resumed): New.
1602 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1603 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1604 (scoped_disable_commit_resumed::reset)
1605 (scoped_disable_commit_resumed::reset_and_commit)
1606 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1607 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1609 (proceed): Use scoped_disable_commit_resumed and
1610 maybe_call_commit_resumed_all_targets.
1611 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1612 * infrun.h (struct scoped_disable_commit_resumed): New.
1613 (maybe_call_commit_resumed_all_process_targets): New.
1614 (struct scoped_enable_commit_resumed): New.
1615 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1616 * process-stratum-target.h (class process_stratum_target):
1617 <commit_resumed_state>: New.
1618 * record-full.c (record_full_wait_1): Change commit_resumed_state
1619 around calling commit_resumed.
1620 * remote.c (class remote_target) <commit_resume>: Rename to...
1621 <commit_resumed>: ... this.
1622 (struct stop_reply): Move up.
1623 (remote_target::commit_resume): Rename to...
1624 (remote_target::commit_resumed): ... this. Check if there is any
1625 thread pending vCont resume.
1626 (remote_target::remote_stop_ns): Generate stop replies for resumed
1627 but pending vCont threads.
1628 (remote_target::wait_ns): Add gdb_assert.
1629 * target-delegates.c: Regenerate.
1630 * target.c (target_wait, target_resume): Assert that the current
1631 process_stratum target isn't in commit-resumed state.
1632 (defer_target_commit_resume): Remove.
1633 (target_commit_resume): Remove.
1634 (target_commit_resumed): New.
1635 (make_scoped_defer_target_commit_resume): Remove.
1636 (target_stop): Assert that the current process_stratum target
1637 isn't in commit-resumed state.
1638 * target.h (struct target_ops) <commit_resume>: Rename to ...
1639 <commit_resumed>: ... this.
1640 (target_commit_resume): Remove.
1641 (target_commit_resumed): New.
1642 (make_scoped_defer_target_commit_resume): Remove.
1643 * top.c (wait_sync_command_done): Use
1644 scoped_enable_commit_resumed.
1646 2021-03-26 Pedro Alves <pedro@palves.net>
1648 * target.c (target_always_non_stop_p): Also check whether the
1651 2021-03-26 Tom Tromey <tom@tromey.com>
1653 * dwarf2/read.c (dwarf2_read_debug_names)
1654 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1655 (dw2_debug_names_iterator::next, create_type_unit_group):
1658 2021-03-25 Pedro Alves <pedro@palves.net>
1660 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1661 around setting the breakpoint.
1663 2021-03-25 Pedro Alves <pedro@palves.net>
1666 (remote_target::check_pending_events_prevent_wildcard_vcont):
1667 Check whether the event's ptid is not null_ptid before looking up
1668 the corresponding inferior.
1670 2021-03-24 Changbin Du <changbin.du@gmail.com>
1672 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1675 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1677 * target.h (current_top_target): Remove, make callers use the
1678 current inferior instead.
1679 * target.c (current_top_target): Remove.
1681 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1683 * target.h (target_shortname): Change to function declaration.
1684 (target_longname): Likewise.
1685 (target_attach_no_wait): Likewise.
1686 (target_post_attach): Likewise.
1687 (target_prepare_to_store): Likewise.
1688 (target_supports_enable_disable_tracepoint): Likewise.
1689 (target_supports_string_tracing): Likewise.
1690 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1691 (target_supports_dumpcore): Likewise.
1692 (target_dumpcore): Likewise.
1693 (target_can_run_breakpoint_commands): Likewise.
1694 (target_files_info): Likewise.
1695 (target_post_startup_inferior): Likewise.
1696 (target_insert_fork_catchpoint): Likewise.
1697 (target_remove_fork_catchpoint): Likewise.
1698 (target_insert_vfork_catchpoint): Likewise.
1699 (target_remove_vfork_catchpoint): Likewise.
1700 (target_insert_exec_catchpoint): Likewise.
1701 (target_remove_exec_catchpoint): Likewise.
1702 (target_set_syscall_catchpoint): Likewise.
1703 (target_rcmd): Likewise.
1704 (target_can_lock_scheduler): Likewise.
1705 (target_can_async_p): Likewise.
1706 (target_is_async_p): Likewise.
1707 (target_execution_direction): Likewise.
1708 (target_extra_thread_info): Likewise.
1709 (target_pid_to_exec_file): Likewise.
1710 (target_thread_architecture): Likewise.
1711 (target_find_memory_regions): Likewise.
1712 (target_make_corefile_notes): Likewise.
1713 (target_get_bookmark): Likewise.
1714 (target_goto_bookmark): Likewise.
1715 (target_stopped_by_watchpoint): Likewise.
1716 (target_stopped_by_sw_breakpoint): Likewise.
1717 (target_supports_stopped_by_sw_breakpoint): Likewise.
1718 (target_stopped_by_hw_breakpoint): Likewise.
1719 (target_supports_stopped_by_hw_breakpoint): Likewise.
1720 (target_have_steppable_watchpoint): Likewise.
1721 (target_can_use_hardware_watchpoint): Likewise.
1722 (target_region_ok_for_hw_watchpoint): Likewise.
1723 (target_can_do_single_step): Likewise.
1724 (target_insert_watchpoint): Likewise.
1725 (target_remove_watchpoint): Likewise.
1726 (target_insert_hw_breakpoint): Likewise.
1727 (target_remove_hw_breakpoint): Likewise.
1728 (target_can_accel_watchpoint_condition): Likewise.
1729 (target_can_execute_reverse): Likewise.
1730 (target_get_ada_task_ptid): Likewise.
1731 (target_filesystem_is_local): Likewise.
1732 (target_trace_init): Likewise.
1733 (target_download_tracepoint): Likewise.
1734 (target_can_download_tracepoint): Likewise.
1735 (target_download_trace_state_variable): Likewise.
1736 (target_enable_tracepoint): Likewise.
1737 (target_disable_tracepoint): Likewise.
1738 (target_trace_start): Likewise.
1739 (target_trace_set_readonly_regions): Likewise.
1740 (target_get_trace_status): Likewise.
1741 (target_get_tracepoint_status): Likewise.
1742 (target_trace_stop): Likewise.
1743 (target_trace_find): Likewise.
1744 (target_get_trace_state_variable_value): Likewise.
1745 (target_save_trace_data): Likewise.
1746 (target_upload_tracepoints): Likewise.
1747 (target_upload_trace_state_variables): Likewise.
1748 (target_get_raw_trace_data): Likewise.
1749 (target_get_min_fast_tracepoint_insn_len): Likewise.
1750 (target_set_disconnected_tracing): Likewise.
1751 (target_set_circular_trace_buffer): Likewise.
1752 (target_set_trace_buffer_size): Likewise.
1753 (target_set_trace_notes): Likewise.
1754 (target_get_tib_address): Likewise.
1755 (target_set_permissions): Likewise.
1756 (target_static_tracepoint_marker_at): Likewise.
1757 (target_static_tracepoint_markers_by_strid): Likewise.
1758 (target_traceframe_info): Likewise.
1759 (target_use_agent): Likewise.
1760 (target_can_use_agent): Likewise.
1761 (target_augmented_libraries_svr4_read): Likewise.
1762 (target_log_command): Likewise.
1763 * target.c (target_shortname): New.
1764 (target_longname): New.
1765 (target_attach_no_wait): New.
1766 (target_post_attach): New.
1767 (target_prepare_to_store): New.
1768 (target_supports_enable_disable_tracepoint): New.
1769 (target_supports_string_tracing): New.
1770 (target_supports_evaluation_of_breakpoint_conditions): New.
1771 (target_supports_dumpcore): New.
1772 (target_dumpcore): New.
1773 (target_can_run_breakpoint_commands): New.
1774 (target_files_info): New.
1775 (target_post_startup_inferior): New.
1776 (target_insert_fork_catchpoint): New.
1777 (target_remove_fork_catchpoint): New.
1778 (target_insert_vfork_catchpoint): New.
1779 (target_remove_vfork_catchpoint): New.
1780 (target_insert_exec_catchpoint): New.
1781 (target_remove_exec_catchpoint): New.
1782 (target_set_syscall_catchpoint): New.
1784 (target_can_lock_scheduler): New.
1785 (target_can_async_p): New.
1786 (target_is_async_p): New.
1787 (target_execution_direction): New.
1788 (target_extra_thread_info): New.
1789 (target_pid_to_exec_file): New.
1790 (target_thread_architecture): New.
1791 (target_find_memory_regions): New.
1792 (target_make_corefile_notes): New.
1793 (target_get_bookmark): New.
1794 (target_goto_bookmark): New.
1795 (target_stopped_by_watchpoint): New.
1796 (target_stopped_by_sw_breakpoint): New.
1797 (target_supports_stopped_by_sw_breakpoint): New.
1798 (target_stopped_by_hw_breakpoint): New.
1799 (target_supports_stopped_by_hw_breakpoint): New.
1800 (target_have_steppable_watchpoint): New.
1801 (target_can_use_hardware_watchpoint): New.
1802 (target_region_ok_for_hw_watchpoint): New.
1803 (target_can_do_single_step): New.
1804 (target_insert_watchpoint): New.
1805 (target_remove_watchpoint): New.
1806 (target_insert_hw_breakpoint): New.
1807 (target_remove_hw_breakpoint): New.
1808 (target_can_accel_watchpoint_condition): New.
1809 (target_can_execute_reverse): New.
1810 (target_get_ada_task_ptid): New.
1811 (target_filesystem_is_local): New.
1812 (target_trace_init): New.
1813 (target_download_tracepoint): New.
1814 (target_can_download_tracepoint): New.
1815 (target_download_trace_state_variable): New.
1816 (target_enable_tracepoint): New.
1817 (target_disable_tracepoint): New.
1818 (target_trace_start): New.
1819 (target_trace_set_readonly_regions): New.
1820 (target_get_trace_status): New.
1821 (target_get_tracepoint_status): New.
1822 (target_trace_stop): New.
1823 (target_trace_find): New.
1824 (target_get_trace_state_variable_value): New.
1825 (target_save_trace_data): New.
1826 (target_upload_tracepoints): New.
1827 (target_upload_trace_state_variables): New.
1828 (target_get_raw_trace_data): New.
1829 (target_get_min_fast_tracepoint_insn_len): New.
1830 (target_set_disconnected_tracing): New.
1831 (target_set_circular_trace_buffer): New.
1832 (target_set_trace_buffer_size): New.
1833 (target_set_trace_notes): New.
1834 (target_get_tib_address): New.
1835 (target_set_permissions): New.
1836 (target_static_tracepoint_marker_at): New.
1837 (target_static_tracepoint_markers_by_strid): New.
1838 (target_traceframe_info): New.
1839 (target_use_agent): New.
1840 (target_can_use_agent): New.
1841 (target_augmented_libraries_svr4_read): New.
1842 (target_log_command): New.
1843 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1844 * infrun.c (set_schedlock_func): Adjust.
1845 * mi/mi-main.c (exec_reverse_continue): Adjust.
1846 * reverse.c (exec_reverse_once): Adjust.
1847 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1848 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1849 * remote-sim.c (gdbsim_target::detach): Adjust.
1850 (gdbsim_target::files_info): Adjust.
1852 2021-03-24 Tom Tromey <tom@tromey.com>
1854 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1855 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1856 (check_match, dw2_expand_symtabs_matching)
1857 (dwarf2_debug_names_index::map_matching_symbols)
1858 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1860 2021-03-24 Keith Seitz <keiths@redhat.com>
1862 * compile/compile-cplus-types.c
1863 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1866 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1868 * gdbarch.sh (gdbarch_data_registry): Make static.
1869 * gdbarch.c: Re-generate.
1871 2021-03-24 Luis Machado <luis.machado@linaro.org>
1873 * NEWS: Mention memory tagging changes.
1875 2021-03-24 Luis Machado <luis.machado@linaro.org>
1877 * printcmd.c (decode_format): Handle the 'm' modifier.
1878 (do_examine): Display allocation tags when required/supported.
1879 (should_validate_memtags): New function.
1880 (print_command_1): Display memory tag mismatches.
1881 * valprint.c (show_memory_tag_violations): New function.
1882 (value_print_option_defs): Add new option "memory-tag-violations".
1883 (user_print_options) <memory_tag_violations>: Initialize to 1.
1884 * valprint.h (struct format_data) <print_tags>: New field.
1885 (value_print_options) <memory_tag_violations>: New field.
1887 2021-03-24 Luis Machado <luis.machado@linaro.org>
1889 * printcmd.c: Include gdbsupport/rsp-low.h.
1890 (memory_tag_list): New static global.
1891 (process_print_command_args): Factored out of
1893 (print_command_1): Use process_print_command_args.
1894 (show_addr_not_tagged, show_memory_tagging_unsupported)
1895 (memory_tag_command, memory_tag_print_tag_command)
1896 (memory_tag_print_logical_tag_command)
1897 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1898 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1899 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1901 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1903 2021-03-24 Luis Machado <luis.machado@linaro.org>
1905 * aarch64-linux-tdep.c
1906 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1907 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1909 2021-03-24 Luis Machado <luis.machado@linaro.org>
1911 * aarch64-linux-tdep.c
1912 (aarch64_linux_report_signal_info): New function.
1913 (aarch64_linux_init_abi): Register
1914 aarch64_linux_report_signal_info as the report_signal_info hook.
1915 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1916 (SEGV_MTESERR): Define.
1918 2021-03-24 Luis Machado <luis.machado@linaro.org>
1920 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1921 (aarch64_linux_ltag_tests): New function.
1922 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1924 2021-03-24 Luis Machado <luis.machado@linaro.org>
1926 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1927 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1928 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1929 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1931 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1932 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1933 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1934 (aarch64_linux_get_ltag): New functions.
1935 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1936 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1937 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1938 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1940 2021-03-24 Luis Machado <luis.machado@linaro.org>
1942 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1944 (struct smaps_data): New struct.
1945 (decode_vmflags): Handle the 'mt' flag.
1946 (parse_smaps_data): New function, refactored from
1947 linux_find_memory_regions_full.
1948 (linux_address_in_memtag_page): New function.
1949 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1950 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1952 2021-03-24 Luis Machado <luis.machado@linaro.org>
1954 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1955 instead of char arrays.
1957 2021-03-24 Luis Machado <luis.machado@linaro.org>
1959 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1960 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1961 nat/aarch64-mte-linux-ptrace.h.
1962 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1963 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1965 <fetch_memtags>: New method override.
1966 <store_memtags>: New method override.
1967 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1968 (aarch64_linux_nat_target::fetch_memtags): New method.
1969 (aarch64_linux_nat_target::store_memtags): New method.
1970 * arch/aarch64-mte-linux.c: New file.
1971 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1972 (AARCH64_MTE_GRANULE_SIZE): Define.
1973 (aarch64_memtag_type): New enum.
1974 (aarch64_mte_get_tag_granules): New prototype.
1975 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1976 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1977 * nat/aarch64-mte-linux-ptrace.c: New file.
1978 * nat/aarch64-mte-linux-ptrace.h: New file.
1980 2021-03-24 Luis Machado <luis.machado@linaro.org>
1982 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1983 * nat/aarch64-mte-linux-ptrace.h: New file.
1985 2021-03-24 Luis Machado <luis.machado@linaro.org>
1987 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1988 (store_mteregs_to_thread): New function.
1989 (aarch64_linux_nat_target::fetch_registers): Update to call
1990 fetch_mteregs_from_thread.
1991 (aarch64_linux_nat_target::store_registers): Update to call
1992 store_mteregs_to_thread.
1993 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1994 (aarch64_cannot_store_register): Handle MTE registers.
1995 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1996 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1997 <has_mte>: New method.
1998 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2000 2021-03-24 Luis Machado <luis.machado@linaro.org>
2002 * aarch64-linux-nat.c
2003 (aarch64_linux_nat_target::read_description): Take MTE flag into
2005 Slight refactor to hwcap flag checking.
2006 * aarch64-linux-tdep.c
2007 (aarch64_linux_core_read_description): Likewise.
2008 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2010 (aarch64_read_description): Add mte_p parameter and update to use it.
2011 Update the documentation.
2012 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2013 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2014 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2015 (aarch64_create_target_description): Add mte_p parameter and update
2017 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2019 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2020 * features/aarch64-mte.c: New file, generated.
2021 * features/aarch64-mte.xml: New file.
2023 2021-03-24 Luis Machado <luis.machado@linaro.org>
2025 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2026 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2027 * aarch64-linux-tdep.c: Likewise
2028 * arch/aarch64-mte-linux.h: New file.
2030 2021-03-24 Luis Machado <luis.machado@linaro.org>
2032 * remote: Include gdbsupport/selftest.h.
2033 (test_memory_tagging_functions): New function.
2034 (_initialize_remote): Register test_memory_tagging_functions.
2036 2021-03-24 Luis Machado <luis.machado@linaro.org>
2038 * remote.c (PACKET_memory_tagging_feature): New enum.
2039 (remote_memory_tagging_p): New function.
2040 (remote_protocol_features): New "memory-tagging" entry.
2041 (remote_target::remote_query_supported): Handle memory tagging
2043 (remote_target::supports_memory_tagging): Implement.
2044 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2045 (create_store_memtags_request): New functions.
2046 (remote_target::fetch_memtags): Implement.
2047 (remote_target::store_memtags): Implement.
2048 (_initialize_remote): Add new "memory-tagging-feature"
2051 2021-03-24 Luis Machado <luis.machado@linaro.org>
2053 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2054 (default_memtag_matches_p, default_set_memtags)
2055 (default_get_memtag): New functions.
2056 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2057 (default_memtag_matches_p, default_set_memtags)
2058 (default_get_memtag): New prototypes.
2059 * gdbarch.c: Regenerate.
2060 * gdbarch.h: Regenerate.
2061 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2062 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2063 (enum memtag_type): New enum.
2065 2021-03-24 Luis Machado <luis.machado@linaro.org>
2067 * remote.c (remote_target) <supports_memory_tagging>: New method
2069 <fetch_memtags>: New method override.
2070 <store_memtags>: New method override.
2071 (remote_target::supports_memory_tagging): New method.
2072 (remote_target::fetch_memtags): New method.
2073 (remote_target::store_memtags): New method.
2074 * target-delegates.c: Regenerate.
2075 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2077 <fetch_memtags>: New virtual method.
2078 <store_memtags>: New virtual method.
2079 (target_supports_memory_tagging): Define.
2080 (target_fetch_memtags): Define.
2081 (target_store_memtags): Define.
2082 * target-debug.h (target_debug_print_size_t)
2083 (target_debug_print_const_gdb_byte_vector_r)
2084 (target_debug_print_gdb_byte_vector_r): New functions.
2086 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2088 * target.h (target_longname): Remove.
2090 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2092 * target.h (target_is_pushed): Remove, update callers to use
2093 inferior::target_is_pushed instead.
2094 * target.c (target_is_pushed): Remove.
2096 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2098 * target.h (push_target): Remove, update callers to use
2099 inferior::push_target.
2100 * target.c (push_target): Remove.
2101 * inferior.h (class inferior) <push_target>: New overload.
2103 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2105 * target.h (unpush_target): Remove, update all callers
2106 to use `inferior::unpush_target` instead.
2107 (struct target_unpusher) <operator()>: Just declare.
2108 * target.c (unpush_target): Remove.
2109 (target_unpusher::operator()): New.
2111 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2113 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2115 (process_full_comp_unit): Validate the top-level tag before
2116 processing the first DIE.
2117 (read_func_scope): Ensure we have a valid builder.
2119 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2121 * objc-lang.c (objc_demangle): Renamed to
2122 objc_language::demangle_symbol, and moved later in the file.
2123 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2125 (objc_language::demangle_symbol): Defined outside of class
2126 declaration. The definition is the old objc_demangle with NULL
2127 changed to nullptr, and if conditions relating to nullptr pointers
2128 or null character checks made explicit.
2129 * objc-lang.h (objc_demangle): Delete declaration.
2131 2021-03-22 Martin Liska <mliska@suse.cz>
2133 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2134 (_initialize_arm_tdep): Likewise.
2136 2021-03-20 Tom Tromey <tom@tromey.com>
2138 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2139 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2140 * psymtab.h (make_psymbol_functions): Don't declare.
2141 * psymtab.c (make_psymbol_functions): Remove.
2142 (maintenance_print_psymbols): Update.
2143 * psympriv.h (struct psymbol_functions): Add no-argument
2145 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2146 <partial_symtabs>: Remove.
2147 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2148 * elfread.c (read_partial_symbols): Update.
2149 (elf_symfile_read): Remove check for existing partial symbols.
2151 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2153 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2155 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2157 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2158 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2160 2021-03-20 Tom Tromey <tom@tromey.com>
2162 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2163 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2164 * symfile-debug.c (objfile::has_partial_symbols)
2165 (objfile::find_last_source_symtab)
2166 (objfile::forget_cached_source_info)
2167 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2168 (objfile::print_stats, objfile::dump)
2169 (objfile::expand_symtabs_for_function)
2170 (objfile::expand_all_symtabs)
2171 (objfile::expand_symtabs_with_fullname)
2172 (objfile::map_matching_symbols)
2173 (objfile::expand_symtabs_matching)
2174 (objfile::find_pc_sect_compunit_symtab)
2175 (objfile::map_symbol_filenames)
2176 (objfile::find_compunit_symtab_by_address)
2177 (objfile::lookup_global_symbol_language)
2178 (objfile::require_partial_symbols): Update.
2179 * psymtab.c (maintenance_print_psymbols)
2180 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2181 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2182 * objfiles.c (objfile_relocate1): Update.
2183 * elfread.c (elf_symfile_read): Update.
2185 2021-03-20 Tom Tromey <tom@tromey.com>
2187 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2189 2021-03-20 Tom Tromey <tom@tromey.com>
2191 * psymtab.c (psymbol_functions::count_psyms): Rename.
2192 (psymbol_functions::print_stats): Update.
2193 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2196 2021-03-20 Tom Tromey <tom@tromey.com>
2198 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2199 (psymbol_functions::find_pc_sect_psymtab): Rename.
2200 (psymbol_functions::find_pc_sect_compunit_symtab)
2201 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2202 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2204 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2206 2021-03-20 Tom Tromey <tom@tromey.com>
2208 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2209 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2210 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2212 (add_psymbol_to_bcache): Remove.
2213 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2214 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2216 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2217 <add_psymbol>: Likewise.
2218 (standard_psymtab, legacy_psymtab): Likewise.
2219 * mdebugread.c (parse_partial_symbols): Update.
2220 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2221 (handle_psymbol_enumerators): Update.
2222 (new_psymtab): Add partial_symtabs parameter.
2223 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2224 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2226 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2227 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2229 * dbxread.c (read_dbx_symtab): Update.
2230 (start_psymtab): Add partial_symtabs parameter.
2231 (dbx_end_psymtab): Update.
2232 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2233 (ctf_psymtab): Add partial_symtabs parameter.
2234 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2236 (scan_partial_symbols): Add partial_symtabs parameter.
2237 (scan_partial_symbols, elfctf_build_psymtabs)
2238 (ctf_psymtab_add_enums): Update.
2240 2021-03-20 Tom Tromey <tom@tromey.com>
2242 * symfile.c (read_symbols): Use objfile method.
2243 * symfile-debug.c (objfile::require_partial_symbols): New method.
2244 * psymtab.h (require_partial_symbols): Don't declare.
2245 * psymtab.c (require_partial_symbols): Use objfile method. Now
2247 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2248 (psymbol_functions::lookup_symbol)
2249 (psymbol_functions::lookup_global_symbol_language)
2250 (psymbol_functions::find_last_source_symtab)
2251 (psymbol_functions::forget_cached_source_info)
2252 (psymbol_functions::print_stats)
2253 (psymbol_functions::expand_symtabs_for_function)
2254 (psymbol_functions::expand_all_symtabs)
2255 (psymbol_functions::expand_symtabs_with_fullname)
2256 (psymbol_functions::map_symbol_filenames)
2257 (psymbol_functions::map_matching_symbols)
2258 (psymbol_functions::expand_symtabs_matching)
2259 (psymbol_functions::find_compunit_symtab_by_address)
2260 (maintenance_print_psymbols, maintenance_info_psymtabs)
2261 (maintenance_check_psymtabs): Update.
2262 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2265 2021-03-20 Tom Tromey <tom@tromey.com>
2267 * xcoffread.c (xcoff_sym_fns): Update.
2268 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2269 * symfile-debug.c (objfile::has_partial_symbols): Use
2270 can_lazily_read_symbols.
2271 (debug_sym_read_psymbols): Remove.
2272 (debug_sym_fns, install_symfile_debug_logging): Update.
2273 * quick-symbol.h (struct quick_symbol_functions)
2274 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2275 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2276 * mipsread.c (ecoff_sym_fns): Update.
2277 * machoread.c (macho_sym_fns): Update.
2278 * elfread.c (struct lazy_dwarf_reader): New.
2279 (elf_symfile_read): Update.
2280 (read_psyms): Now a method of lazy_dwarf_reader.
2281 (elf_sym_fns): Update.
2282 (elf_sym_fns_lazy_psyms): Remove.
2283 * dbxread.c (aout_sym_fns): Update.
2284 * coffread.c (coff_sym_fns): Update.
2286 2021-03-20 Tom Tromey <tom@tromey.com>
2288 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2289 (reread_symbols): Move reset_psymtabs call later.
2290 * objfiles.c (objfile::objfile): Don't initialize
2293 2021-03-20 Tom Tromey <tom@tromey.com>
2295 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2296 set_partial_symtabs.
2297 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2298 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2300 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2302 (psymbol_functions::find_pc_sect_compunit_symtab)
2303 (psymbol_functions::print_stats, psymbol_functions::dump)
2304 (psymbol_functions::has_symbols): Update.
2305 (make_psymbol_functions, dump_psymtab_addrmap): Add
2306 partial_symtabs parameter.
2307 (maintenance_print_psymbols): Update.
2308 (psymbol_functions::expand_symtabs_matching): Update.
2309 * psympriv.h (struct psymbol_functions): Add constructor.
2310 <m_partial_symtabs>: New member.
2311 <set_partial_symtabs>: New method.
2313 2021-03-20 Tom Tromey <tom@tromey.com>
2315 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2317 (process_psymtab_comp_unit_reader)
2318 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2319 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2320 Reference psymtabs via per_bfd.
2322 2021-03-20 Tom Tromey <tom@tromey.com>
2324 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2326 (add_address_entry): Remove objfile parameter.
2327 (add_address_entry_worker): Update.
2328 (write_address_map): Replace objfile parameter with per_bfd.
2329 (write_gdbindex, write_psymtabs_to_index): Update.
2331 2021-03-20 Tom Tromey <tom@tromey.com>
2333 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2334 print_bcache parameter.
2335 * symfile-debug.c (objfile::print_stats): Add print_bcache
2337 * quick-symbol.h (struct quick_symbol_functions)
2338 <print_stats>: Add print_bcache parameter.
2339 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2341 (print_objfile_statistics): Move psymtab code to psymtab.c.
2342 * psymtab.c (count_psyms): Move from symmisc.c.
2343 (psymbol_functions::print_stats): Print partial symbol and bcache
2344 statistics. Add print_bcache parameter.
2345 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2346 (struct objfile) <print_stats>: Add print_bcache parameter.
2347 * maint.c (maintenance_print_statistics): Update.
2349 2021-03-20 Tom Tromey <tom@tromey.com>
2351 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2353 * dwarf2/read.c (create_addrmap_from_index)
2354 (create_addrmap_from_aranges): Set per_bfd addrmap.
2355 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2356 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2358 (dwarf2_read_debug_names): Don't set partial_symtabs.
2359 (dwarf2_initialize_objfile): Likewise.
2361 2021-03-20 Tom Tromey <tom@tromey.com>
2363 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2366 2021-03-20 Tom Tromey <tom@tromey.com>
2368 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2369 (~psymtab_discarder, keep): Update.
2370 <m_objfile>: Remove.
2371 <m_partial_symtabs>: New member.
2372 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2374 2021-03-20 Tom Tromey <tom@tromey.com>
2376 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2377 (xcoff_end_psymtab): Update.
2378 (scan_xcoff_symtab): Add partial_symtabs parameter.
2379 (xcoff_initial_scan): Update.
2380 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2381 * mdebugread.c (mdebug_build_psymtabs): Update.
2382 (parse_partial_symbols): Add partial_symtabs parameter.
2383 * dbxread.c (dbx_symfile_read): Update.
2384 (read_dbx_symtab): Add partial_symtabs parameter.
2385 (read_dbx_symtab): Update.
2386 (dbx_end_psymtab): Add partial_symtabs parameter.
2388 2021-03-20 Tom Tromey <tom@tromey.com>
2390 * quick-symbol.h (struct quick_symbol_functions)
2391 <relocated>: New method.
2392 * psymtab.h (struct psymbol_functions) <relocated>: New
2394 <fill_psymbol_map>: Declare method.
2395 <m_psymbol_map>: New member.
2396 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2397 (psymbol_functions::find_compunit_symtab_by_address): Update.
2398 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2399 (struct objfile) <psymbol_map>: Remove.
2400 * objfiles.c (objfile_relocate1): Update.
2402 2021-03-20 Tom Tromey <tom@tromey.com>
2404 * psympriv.h (struct psymbol_functions): New.
2405 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2406 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2407 (objfile::lookup_global_symbol_language): Update.
2408 * quick-symbol.h (struct quick_symbol_functions): Convert function
2409 pointers to methods. Add virtual destructor.
2410 (quick_symbol_functions_up): New typedef.
2411 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2412 (dwarf2_debug_names_functions): Don't declare.
2413 (make_psymbol_functions): Declare.
2414 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2415 (psymbol_functions::find_pc_sect_compunit_symtab)
2416 (psymbol_functions::lookup_symbol)
2417 (psymbol_functions::lookup_global_symbol_language)
2418 (psymbol_functions::find_last_source_symtab)
2419 (psymbol_functions::forget_cached_source_info)
2420 (psymbol_functions::print_stats, psymbol_functions::dump)
2421 (psymbol_functions::expand_symtabs_for_function)
2422 (psymbol_functions::expand_all_symtabs)
2423 (psymbol_functions::expand_symtabs_with_fullname)
2424 (psymbol_functions::map_symbol_filenames)
2425 (psymbol_functions::map_matching_symbols)
2426 (psymbol_functions::expand_symtabs_matching)
2427 (psymbol_functions::has_symbols)
2428 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2429 (psym_functions): Remove.
2430 (make_psymbol_functions): New function.
2431 * objfiles.h (struct objfile) <qf>: Change type.
2432 * elfread.c (elf_symfile_read): Update.
2433 * dwarf2/read.c (struct dwarf2_base_index_functions)
2434 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2435 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2436 (dwarf2_base_index_functions::find_last_source_symtab)
2437 (dwarf2_base_index_functions::forget_cached_source_info)
2438 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2439 (dwarf2_gdb_index::lookup_symbol)
2440 (dwarf2_base_index_functions::print_stats)
2441 (dwarf2_gdb_index::dump)
2442 (dwarf2_gdb_index::expand_symtabs_for_function)
2443 (dwarf2_base_index_functions::expand_all_symtabs)
2444 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2446 (dwarf2_gdb_index::map_matching_symbols): New method.
2447 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2448 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2449 (dwarf2_base_index_functions::map_symbol_filenames)
2450 (dwarf2_base_index_functions::has_symbols): Rename.
2451 (dwarf2_gdb_index_functions): Remove.
2452 (dwarf2_debug_names_index::lookup_symbol)
2453 (dwarf2_debug_names_index::dump)
2454 (dwarf2_debug_names_index::expand_symtabs_for_function)
2455 (dwarf2_debug_names_index::map_matching_symbols)
2456 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2457 (dwarf2_debug_names_functions): Remove.
2458 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2461 2021-03-20 Tom Tromey <tom@tromey.com>
2463 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2465 * xcoffread.c (xcoff_sym_fns): Update.
2466 * symfile.h (struct sym_fns) <qf>: Remove.
2467 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2468 * symfile-debug.c (objfile::has_partial_symbols)
2469 (objfile::find_last_source_symtab)
2470 (objfile::forget_cached_source_info)
2471 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2472 (objfile::print_stats, objfile::dump)
2473 (objfile::expand_symtabs_for_function)
2474 (objfile::expand_all_symtabs)
2475 (objfile::expand_symtabs_with_fullname)
2476 (objfile::map_matching_symbols)
2477 (objfile::expand_symtabs_matching)
2478 (objfile::find_pc_sect_compunit_symtab)
2479 (objfile::map_symbol_filenames)
2480 (objfile::find_compunit_symtab_by_address)
2481 (objfile::lookup_global_symbol_language, debug_sym_fns)
2482 (install_symfile_debug_logging): Update.
2483 * objfiles.h (struct objfile) <qf>: New member.
2484 * mipsread.c (ecoff_sym_fns): Update.
2485 * machoread.c (macho_sym_fns): Update.
2486 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2488 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2489 * dbxread.c (aout_sym_fns): Update.
2490 * coffread.c (coff_sym_fns): Update.
2492 2021-03-20 Tom Tromey <tom@tromey.com>
2494 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2495 (expand_symtabs_file_matcher_ftype)
2496 (expand_symtabs_symbol_matcher_ftype)
2497 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2498 Move to quick-symbol.h.
2499 * quick-symbol.h: New file.
2501 2021-03-20 Tom Tromey <tom@tromey.com>
2503 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2504 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2505 (basic_lookup_transparent_type_quick)
2506 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2507 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2509 * symmisc.c (print_objfile_statistics, dump_objfile)
2510 (maintenance_expand_symtabs): Update.
2511 * symfile.c (symbol_file_add_with_addrs)
2512 (expand_symtabs_matching, map_symbol_filenames): Update.
2513 * symfile-debug.c (objfile::has_partial_symbols)
2514 (objfile::find_last_source_symtab)
2515 (objfile::forget_cached_source_info)
2516 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2517 (objfile::print_stats, objfile::dump)
2518 (objfile::expand_symtabs_for_function)
2519 (objfile::expand_all_symtabs)
2520 (objfile::expand_symtabs_with_fullname)
2521 (objfile::map_matching_symbols)
2522 (objfile::expand_symtabs_matching)
2523 (objfile::find_pc_sect_compunit_symtab)
2524 (objfile::map_symbol_filenames)
2525 (objfile::find_compunit_symtab_by_address)
2526 (objfile::lookup_global_symbol_language): New methods.
2527 (debug_sym_quick_functions): Remove.
2528 (debug_sym_fns, install_symfile_debug_logging): Update.
2529 * source.c (forget_cached_source_info_for_objfile)
2530 (select_source_symtab): Update.
2531 * objfiles.h (struct objfile): Add methods corresponding to
2532 quick_symbol_functions.
2533 * objfiles.c (objfile::has_partial_symbols): Move to
2535 * linespec.c (iterate_over_all_matching_symtabs): Update.
2536 * cp-support.c (add_symbol_overload_list_qualified): Update.
2537 * ada-lang.c (add_nonlocal_symbols): Update.
2539 2021-03-20 Tom Tromey <tom@tromey.com>
2541 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2542 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2544 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2545 * psymtab.c (psym_has_symbols): Return bool.
2546 * objfiles.c (objfile::has_partial_symbols): Return bool.
2547 * dwarf2/read.c (dw2_has_symbols): Return bool.
2549 2021-03-20 Tom Tromey <tom@tromey.com>
2551 * symfile.c (read_symbols): Update.
2552 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2553 (objfile_has_partial_symbols): Don't declare.
2554 * objfiles.c (objfile::has_partial_symbols): Rename from
2555 objfile_has_partial_symbols.
2556 (objfile_has_symbols, have_partial_symbols): Update.
2557 * elfread.c (elf_symfile_read): Update.
2558 * dwarf2/read.c (dwarf2_has_info): Update.
2559 * coffread.c (coff_symfile_read): Update.
2561 2021-03-20 Tom Tromey <tom@tromey.com>
2563 * coffread.c: Include dwarf2/public.h.
2564 * dwarf2/frame.c: Include dwarf2/public.h.
2565 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2566 * dwarf2/public.h: New file.
2567 * dwarf2/read.c: Include dwarf2/public.h.
2568 * elfread.c: Include dwarf2/public.h.
2569 * machoread.c: Include dwarf2/public.h.
2570 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2571 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2572 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2573 * xcoffread.c: Include dwarf2/public.h.
2575 2021-03-20 Tom Tromey <tom@tromey.com>
2577 * symfile.h (enum dwarf2_section_enum)
2578 (dwarf2_get_section_info): Move to dwarf2/read.h.
2579 * dwarf2/read.h (enum dwarf2_section_enum)
2580 (dwarf2_get_section_info): Move from symfile.h.
2582 2021-03-19 Pedro Alves <pedro@palves.net>
2584 * thread.c (any_thread_of_inferior): Check if there's a selected
2585 thread before calling inferior_thread().
2587 2021-03-18 Tom Tromey <tromey@adacore.com>
2589 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2591 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2592 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2594 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2596 * python/py-param.c (get_set_value): Update header comment.
2598 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2600 * infrun.c (check_multi_target_resumption): Remove argument to
2601 all_non_exited_inferiors.
2603 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2605 * windows-nat.c (windows_init_thread_list): Add message to
2608 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2610 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2611 well as PyLong_Check for Python 2.
2613 2021-03-15 Tom Tromey <tromey@adacore.com>
2616 * rust-exp.y (maker_map): Use gdb::hash_enum.
2617 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2619 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2621 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2624 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2626 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2627 parameter, adjust caller.
2629 2021-03-15 Tom Tromey <tromey@adacore.com>
2631 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2633 2021-03-15 Tom Tromey <tromey@adacore.com>
2635 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2636 ada_ensure_varsize_limit.
2638 2021-03-15 Tom Tromey <tromey@adacore.com>
2640 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2642 * ada-exp.y (maybe_overload): New function.
2643 (ada_wrap_overload): New function.
2644 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2645 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2646 (or_else_exp, xor_exp, primary): Update.
2648 2021-03-15 Tom Tromey <tromey@adacore.com>
2651 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2652 call for tagged type.
2654 2021-03-15 Tom Tromey <tromey@adacore.com>
2656 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2659 2021-03-15 Tom Tromey <tromey@adacore.com>
2661 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2663 (ada_assign_operation::evaluate): Update.
2664 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2667 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2669 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2671 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2673 * python/python.c (gdbpy_source_objfile_script): Use
2674 make_scoped_restore to restore gdbpy_current_objfile.
2675 (gdbpy_execute_objfile_script): Likewise.
2677 2021-03-14 Tom Tromey <tom@tromey.com>
2679 * dwarf2/read.c (read_attribute_value): Use cu_header
2682 2021-03-14 Tom Tromey <tom@tromey.com>
2684 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2685 (peek_die_abbrev): Use reader.abfd.
2687 2021-03-14 Tom Tromey <tom@tromey.com>
2689 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2692 2021-03-13 Tom Tromey <tom@tromey.com>
2694 * dwarf2/read.c (struct partial_die_info): Update.
2695 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2696 (load_partial_dies, partial_die_info::partial_die_info): Update.
2697 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2699 2021-03-13 Tom Tromey <tom@tromey.com>
2701 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2703 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2706 * cp-support.c: Use scoped_segv_handler_restore.
2707 * event-top.c (thread_local_segv_handler): Made static.
2708 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2710 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2712 * event-top.h (class scoped_segv_handler_restore): New class.
2713 (thread_local_segv_handler): Removed.
2715 2021-03-10 Tom Tromey <tromey@adacore.com>
2717 * parser-defs.h (parser_state): Change completion to bool.
2718 <parse_completion>: Likewise.
2719 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2720 (ada_resolve_variable, ada_resolve_function): Update.
2721 * ada-lang.c (ada_find_operator_symbol): Change
2722 parse_completion to bool.
2723 (ada_resolve_funcall, ada_resolve_variable)
2724 (ada_resolve_function): Likewise.
2726 2021-03-09 Tom Tromey <tromey@adacore.com>
2728 * eval.c (operation::evaluate_funcall): Use function formal
2729 parameter types when evaluating.
2731 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2733 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2734 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2735 and owner to m_owner.
2737 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2739 * f-exp.h (eval_op_f_loc): Declare.
2740 (expr::fortran_loc_operation): New typedef.
2741 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2743 (f77_keywords): Add LOC keyword.
2744 * f-lang.c (eval_op_f_loc): New function.
2745 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2747 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2749 * f-exp.h (eval_op_f_array_shape): Declare.
2750 (fortran_array_shape_operation): New type.
2751 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2753 (f77_keywords): Add "shape" keyword.
2754 * f-lang.c (fortran_array_shape): New function.
2755 (eval_op_f_array_shape): New function.
2756 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2758 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2760 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2762 (expr::fortran_array_size_1arg): New type.
2763 (expr::fortran_array_size_2arg): Likewise.
2764 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2765 UNOP_OR_BINOP_INTRINSIC.
2766 (f77_keywords): Add "size" keyword.
2767 * f-lang.c (fortran_array_size): New function.
2768 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2769 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2771 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2773 * f-exp.h (eval_op_f_rank): Declare.
2774 (expr::fortran_rank_operation): New typedef.
2775 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2777 (f77_keywords): Add "rank" keyword.
2778 * f-lang.c (eval_op_f_rank): New function.
2779 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2781 2021-03-08 Tom Tromey <tom@tromey.com>
2783 * printcmd.c (set_command): Remove null check.
2784 * value.c (init_if_undefined_command): Remove null check.
2786 2021-03-08 Tom Tromey <tom@tromey.com>
2788 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2790 * p-exp.y (variable): Update.
2791 * go-exp.y (variable): Update.
2792 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2793 Remove overload for objfile.
2794 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2796 (check_objfile): Likewise.
2797 (dump_for_expression): Likewise. Remove overload for objfile.
2798 (class var_msym_value_operation): Use bound_minimal_symbol.
2799 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2801 (var_msym_value_operation::evaluate_for_address)
2802 (var_msym_value_operation::evaluate_for_sizeof)
2803 (var_msym_value_operation::evaluate_for_cast): Update.
2804 * d-exp.y (PrimaryExpression): Update.
2805 * c-exp.y (variable): Update.
2806 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2807 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2809 * ada-exp.y (write_var_or_type): Update.
2811 2021-03-08 Tom Tromey <tom@tromey.com>
2813 * parser-defs.h (exp_uses_objfile): Return bool.
2814 * parse.c (exp_uses_objfile): Return bool.
2816 2021-03-08 Tom Tromey <tom@tromey.com>
2818 * value.h (eval_skip_value): Don't declare.
2819 * opencl-lang.c (eval_opencl_assign): Update.
2820 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2821 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2822 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2823 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2824 * expop.h (typeof_operation::evaluate)
2825 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2826 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2827 (cxx_cast_operation::evaluate): Update.
2828 * eval.c (eval_skip_value): Remove.
2829 (eval_op_scope, eval_op_var_entry_value)
2830 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2831 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2832 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2833 (eval_op_binary, eval_op_subscript, eval_op_equal)
2834 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2835 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2836 (eval_op_complement, eval_op_lognot, eval_op_ind)
2837 (eval_op_memval, eval_op_preinc, eval_op_predec)
2838 (eval_op_postinc, eval_op_postdec, eval_op_type)
2839 (eval_binop_assign_modify, eval_op_objc_msgcall)
2840 (eval_multi_subscript, logical_and_operation::evaluate)
2841 (logical_or_operation::evaluate, array_operation::evaluate)
2842 (operation::evaluate_for_cast)
2843 (var_msym_value_operation::evaluate_for_cast)
2844 (var_value_operation::evaluate_for_cast): Update.
2845 * c-lang.c (c_string_operation::evaluate): Update.
2846 * c-exp.h (objc_nsstring_operation::evaluate)
2847 (objc_selector_operation::evaluate): Update.
2848 * ada-lang.c (ada_assign_operation::evaluate)
2849 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2850 (ada_atr_size): Update.
2852 2021-03-08 Tom Tromey <tom@tromey.com>
2854 * eval.c: Merge "namespace" scopes.
2856 2021-03-08 Tom Tromey <tom@tromey.com>
2858 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2860 * parse.c (expr_builder::expr_builder, expr_builder::release):
2863 2021-03-08 Tom Tromey <tom@tromey.com>
2865 * parse.c (expression::expression, expression::~expression):
2867 * expression.h (struct expression): Inline constructor. Remove
2870 2021-03-08 Tom Tromey <tom@tromey.com>
2872 * std-operator.def (BINOP_END): Remove.
2873 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2874 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2875 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2876 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2877 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2880 2021-03-08 Tom Tromey <tom@tromey.com>
2882 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2884 2021-03-08 Tom Tromey <tom@tromey.com>
2886 * std-operator.def (OP_EXTENDED0): Remove.
2888 2021-03-08 Tom Tromey <tom@tromey.com>
2890 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2891 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2894 2021-03-08 Tom Tromey <tom@tromey.com>
2896 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2897 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2899 2021-03-08 Tom Tromey <tom@tromey.com>
2901 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2902 * ada-lang.c (ada_binop_minmax): Update.
2903 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2904 Use BINOP_MIN and BINOP_MAX.
2906 2021-03-08 Tom Tromey <tom@tromey.com>
2908 * value.h (evaluate_subexp_with_coercion): Don't declare.
2909 * parse.c (exp_descriptor_standard): Remove.
2910 (expr_builder::expr_builder, expr_builder::release): Update.
2911 (expression::expression): Remove size_t parameter.
2912 (expression::~expression): Simplify.
2913 (expression::resize): Remove.
2914 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2915 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2916 (write_exp_elt_longcst, write_exp_elt_floatcst)
2917 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2918 (write_exp_string_vector, write_exp_bitstring): Remove.
2919 * p-lang.h (class pascal_language) <opcode_print_table,
2920 op_print_tab>: Remove.
2921 * p-lang.c (pascal_language::op_print_tab): Remove.
2922 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2924 * objc-lang.c (objc_op_print_tab): Remove.
2925 (class objc_language) <opcode_print_table>: Remove.
2926 * m2-lang.h (class m2_language) <opcode_print_table,
2927 op_print_tab>: Remove.
2928 * m2-lang.c (m2_language::op_print_tab): Remove.
2929 * language.h (struct language_defn) <post_parser, expression_ops,
2930 opcode_print_table>: Remove.
2931 * language.c (language_defn::expression_ops)
2932 (auto_or_unknown_language::opcode_print_table): Remove.
2933 * go-lang.h (class go_language) <opcode_print_table,
2934 op_print_tab>: Remove.
2935 * go-lang.c (go_language::op_print_tab): Remove.
2936 * f-lang.h (class f_language) <opcode_print_table>: Remove
2937 <op_print_tab>: Remove.
2938 * f-lang.c (f_language::op_print_tab): Remove.
2939 * expression.h (union exp_element): Remove.
2940 (struct expression): Remove size_t parameter from constructor.
2942 <first_opcode>: Update.
2943 <nelts, elts>: Remove.
2944 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2945 (evaluate_subexp_standard, print_expression, op_string)
2946 (dump_raw_expression): Don't declare.
2947 * expprint.c (print_expression, print_subexp)
2948 (print_subexp_funcall, print_subexp_standard, op_string)
2949 (dump_raw_expression, dump_subexp, dump_subexp_body)
2950 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2951 (dump_prefix_expression): Update.
2952 * eval.c (evaluate_subexp): Remove.
2953 (evaluate_expression, evaluate_type): Update.
2954 (evaluate_subexpression_type): Remove.
2955 (fetch_subexp_value): Remove "pc" parameter. Update.
2956 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2957 (evaluate_subexp_standard, evaluate_subexp_for_address)
2958 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2959 (evaluate_subexp_for_cast): Remove.
2960 (parse_and_eval_type): Update.
2961 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2962 * d-lang.c (d_op_print_tab): Remove.
2963 (class d_language) <opcode_print_table>: Remove.
2964 * c-lang.h (c_op_print_tab): Don't declare.
2965 * c-lang.c (c_op_print_tab): Remove.
2966 (class c_language, class cplus_language, class asm_language, class
2967 minimal_language) <opcode_print_table>: Remove.
2968 * breakpoint.c (update_watchpoint, watchpoint_check)
2969 (watchpoint_exp_is_const, watch_command_1): Update.
2970 * ax-gdb.h (union exp_element): Don't declare.
2971 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2972 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2973 (gen_expr_binop_rest): Remove.
2974 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2975 * ada-lang.c (ada_op_print_tab): Remove.
2976 (class ada_language) <post_parser, opcode_print_table>: Remove.
2978 2021-03-08 Tom Tromey <tom@tromey.com>
2980 * go-lang.c (go_language::expression_ops): Don't declare.
2981 * go-lang.h (class go_language) <expression_ops>: Remove.
2982 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2984 (class opencl_language) <expression_ops>: Remove.
2985 * d-lang.c (class d_language) <expression_ops>: Remove.
2986 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2987 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2988 (class c_language, class cplus_language, class asm_language)
2989 (class minimal_language) <expression_ops>: Remove.
2991 2021-03-08 Tom Tromey <tom@tromey.com>
2993 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2994 (evaluate_subexp_type, assign_aggregate)
2995 (aggregate_assign_positional, aggregate_assign_from_choices)
2996 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2997 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2998 (ada_operator_check, ada_forward_operator_length)
2999 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3001 (post_parser): Update.
3002 (class ada_language) <expresssion_ops>: Remove.
3004 2021-03-08 Tom Tromey <tom@tromey.com>
3006 * m2-lang.h (class m2_language) <expresssion_ops,
3007 exp_descriptor_modula2>: Remove.
3008 * m2-lang.c (evaluate_subexp_modula2)
3009 (m2_language::exp_descriptor_modula2): Remove.
3011 2021-03-08 Tom Tromey <tom@tromey.com>
3013 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3014 <exp_descriptor_tab>: Remove.
3015 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3016 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3017 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3018 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3021 2021-03-08 Tom Tromey <tom@tromey.com>
3023 * rust-lang.h (class rust_language) <expression_ops,
3024 exp_descriptor_tab>: Remove.
3025 * rust-lang.c (rust_evaluate_funcall): Remove.
3026 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3028 (rust_evaluate_subexp): Remove.
3029 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3030 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3031 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3033 2021-03-08 Tom Tromey <tom@tromey.com>
3035 * ada-exp.y: Create operations.
3036 (empty_stoken): Remove.
3037 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3038 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3039 (components): New global.
3040 (push_component, choice_component, pop_component, pop_components):
3042 (associations): New global
3043 (push_association, pop_association, pop_associations): New
3045 (ada_parse): Update.
3046 (write_var_from_sym, write_int): Create operations.
3047 (write_exp_op_with_string): Remove.
3048 (write_object_renaming, write_selectors, write_ambiguous_var)
3049 (write_var_or_type, write_name_assoc): Create operations.
3050 * ada-lang.h (ada_index_type): Declare.
3051 * ada-lang.c (ada_index_type): No longer static.
3053 2021-03-08 Tom Tromey <tom@tromey.com>
3055 * f-exp.y: Create operations.
3056 (f_language::parser): Update.
3058 2021-03-08 Tom Tromey <tom@tromey.com>
3060 * m2-exp.y: Create operations.
3061 (m2_language::parser): Update.
3063 2021-03-08 Tom Tromey <tom@tromey.com>
3065 * p-exp.y: Create operations.
3066 (pascal_language::parser): Update.
3068 2021-03-08 Tom Tromey <tom@tromey.com>
3070 * d-exp.y: Create operations.
3073 2021-03-08 Tom Tromey <tom@tromey.com>
3075 * go-exp.y: Create operations.
3076 (go_language::parser): Update.
3078 2021-03-08 Tom Tromey <tom@tromey.com>
3080 * objc-lang.c (end_msglist): Create operations.
3081 * c-exp.y: Change parser to create operations.
3082 (write_destructor_name): Remove.
3085 2021-03-08 Tom Tromey <tom@tromey.com>
3087 * rust-exp.y: Create operations.
3088 (rust_parser::convert_params_to_expression): Change return type.
3089 (binop_maker_ftype): New typedef.
3090 (maker_map): New global.
3091 (rust_parser::convert_ast_to_expression): Change return type.
3092 (rust_language::parser): Update.
3093 (_initialize_rust_exp): Initialize maker_map.
3095 2021-03-08 Tom Tromey <tom@tromey.com>
3097 * stap-probe.c (binop_maker_ftype): New typedef.
3098 (stap_maker_map): New global.
3099 (stap_make_binop): New function.
3100 (stap_parse_register_operand): Return operation_up.
3101 (stap_parse_single_operand, stap_parse_argument_conditionally)
3102 (stap_parse_argument_1): Likewise.
3103 (stap_parse_argument): Create operations.
3104 (stap_probe::parse_arguments): Update.
3105 (_initialize_stap_probe): Initialize stap_maker_map.
3106 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3108 * i386-tdep.h (i386_stap_parse_special_token): Change return
3110 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3111 (i386_stap_parse_special_token_three_arg_disp)
3112 (i386_stap_parse_special_token): Change return type.
3113 * gdbarch.sh (stap_parse_special_token): Change return type.
3114 * gdbarch.c: Rebuild.
3115 * gdbarch.h: Rebuild.
3116 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3118 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3121 2021-03-08 Tom Tromey <tom@tromey.com>
3123 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3124 * gdbarch.h: Rebuild.
3125 * gdbarch.c: Rebuild.
3126 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3127 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3129 (amd64_dtrace_parse_probe_argument): Update.
3131 2021-03-08 Tom Tromey <tom@tromey.com>
3133 * parser-defs.h (struct parser_state) <push, push_new,
3134 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3135 wrap2>: New methods.
3136 <m_operations>: New member.
3137 * parse.c (parser_state::push_c_string)
3138 (parser_state::push_symbol, parser_state::push_dollar): New
3141 2021-03-08 Tom Tromey <tom@tromey.com>
3143 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3145 (struct parser_state) <mark_struct_expression>: New method.
3146 * parse.c (parser_state::mark_struct_expression): Update assert.
3147 (parser_state::mark_struct_expression): New method.
3148 (parser_state::mark_completion_tag): Update assert.
3149 (parse_expression_for_completion): Handle expout_last_op.
3151 2021-03-08 Tom Tromey <tom@tromey.com>
3153 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3155 * value.h (fetch_subexp_value): Add "op" parameter.
3156 * value.c (init_if_undefined_command): Update.
3157 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3158 * stap-probe.c (stap_probe::compile_to_ax): Update.
3159 * printcmd.c (set_command): Update.
3160 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3162 * parser-defs.h (struct expr_builder) <set_operation>: New
3164 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3165 * expression.h (struct expression) <first_opcode>: Update.
3167 * expprint.c (dump_raw_expression, dump_prefix_expression):
3169 * expop.h (class var_value_operation) <get_symbol>: New method.
3170 (class register_operation) <get_name>: New method.
3171 (class equal_operation): No longer a typedef, now a subclass.
3172 (class unop_memval_operation) <get_type>: New method.
3173 (class assign_operation) <get_lhs>: New method.
3174 (class unop_cast_operation) <get_type>: New method.
3175 * eval.c (evaluate_expression, evaluate_type)
3176 (evaluate_subexpression_type): Update.
3177 (fetch_subexp_value): Add "op" parameter.
3178 (parse_and_eval_type): Update.
3179 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3180 * breakpoint.c (update_watchpoint, watchpoint_check)
3181 (watchpoint_exp_is_const, watch_command_1): Update.
3182 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3185 2021-03-08 Tom Tromey <tom@tromey.com>
3187 * ada-lang.c (ada_value_binop): Do not use op_string.
3189 2021-03-08 Tom Tromey <tom@tromey.com>
3191 * expprint.c (dump_for_expression): New overload.
3192 * expop.h (check_objfile, dump_for_expression): Declare new
3194 * ada-lang.c (check_objfile): New overload.
3195 (assign_component, ada_aggregate_component::uses_objfile)
3196 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3197 (ada_aggregate_component::assign_aggregate)
3198 (ada_positional_component::uses_objfile)
3199 (ada_positional_component::dump, ada_positional_component::assign)
3200 (ada_discrete_range_association::uses_objfile)
3201 (ada_discrete_range_association::dump)
3202 (ada_discrete_range_association::assign)
3203 (ada_name_association::uses_objfile, ada_name_association::dump)
3204 (ada_name_association::assign)
3205 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3206 (ada_choices_component::assign)
3207 (ada_others_component::uses_objfile, ada_others_component::dump)
3208 (ada_others_component::assign, ada_assign_operation::evaluate):
3210 * ada-exp.h (ada_string_operation) <get_name>: New method.
3211 (class ada_assign_operation): New.
3212 (class ada_component): New.
3213 (ada_component_up): New typedef.
3214 (class ada_aggregate_operation, class ada_aggregate_component)
3215 (class ada_positional_component, class ada_others_component)
3216 (class ada_association): New.
3217 (ada_association_up): New typedef.
3218 (class ada_choices_component)
3219 (class ada_discrete_range_association)
3220 (class ada_name_association): New.
3222 2021-03-08 Tom Tromey <tom@tromey.com>
3224 * ada-lang.c (ada_var_value_operation::resolve)
3225 (ada_funcall_operation::resolve)
3226 (ada_ternop_slice_operation::resolve): New methods.
3227 * ada-exp.h (struct ada_resolvable): New.
3228 (class ada_var_value_operation): Derive from ada_resolvable.
3229 <get_block, resolve>: New methods.
3230 (class ada_funcall_operation): Derive from ada_resolvable.
3231 <resolve>: New method.
3232 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3233 <resolve>: New method.
3235 2021-03-08 Tom Tromey <tom@tromey.com>
3237 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3238 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3240 (class ada_funcall_operation): New.
3242 2021-03-08 Tom Tromey <tom@tromey.com>
3244 * ada-lang.c (ada_structop_operation::evaluate): New method.
3245 * ada-exp.h (class ada_structop_operation): New.
3247 2021-03-08 Tom Tromey <tom@tromey.com>
3249 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3250 * ada-exp.h (class ada_unop_ind_operation): New.
3252 2021-03-08 Tom Tromey <tom@tromey.com>
3254 * ada-lang.c (ada_binop_exp): No longer static.
3255 * ada-exp.h (ada_binop_exp_operation): New typedef.
3257 2021-03-08 Tom Tromey <tom@tromey.com>
3259 * ada-lang.c (ada_val_atr): No longer static.
3260 (ada_atr_val_operation::evaluate): New method.
3261 * ada-exp.h (class ada_atr_val_operation): New.
3263 2021-03-08 Tom Tromey <tom@tromey.com>
3265 * ada-lang.c (ada_pos_atr): No longer static.
3266 * ada-exp.h (ada_pos_operation): New typedef.
3268 2021-03-08 Tom Tromey <tom@tromey.com>
3270 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3272 (ada_evaluate_subexp): Use it.
3274 2021-03-08 Tom Tromey <tom@tromey.com>
3276 * ada-lang.c (ada_binop_minmax): No longer static.
3277 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3280 2021-03-08 Tom Tromey <tom@tromey.com>
3282 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3284 * ada-exp.h (class ada_var_msym_value_operation): New.
3286 2021-03-08 Tom Tromey <tom@tromey.com>
3288 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3289 (ada_var_value_operation::evaluate): New methods.
3290 * ada-exp.h (class ada_var_value_operation): New.
3292 2021-03-08 Tom Tromey <tom@tromey.com>
3294 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3295 * ada-exp.h (class ada_unop_atr_operation): New.
3297 2021-03-08 Tom Tromey <tom@tromey.com>
3299 * ada-lang.c (ada_binop_in_bounds): No longer static.
3300 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3302 2021-03-08 Tom Tromey <tom@tromey.com>
3304 * ada-lang.c (ada_ternop_slice): No longer static.
3305 * ada-exp.h (class ada_ternop_slice_operation): New.
3307 2021-03-08 Tom Tromey <tom@tromey.com>
3309 * ada-exp.h (ada_bitwise_operation): New template class.
3310 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3311 (ada_bitwise_xor_operation): New typedefs.
3313 2021-03-08 Tom Tromey <tom@tromey.com>
3315 * ada-lang.c (ada_equal_binop): No longer static.
3316 * ada-exp.h (class ada_binop_equal_operation): New.
3318 2021-03-08 Tom Tromey <tom@tromey.com>
3320 * ada-lang.c (ada_mult_binop): No longer static.
3321 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3322 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3324 2021-03-08 Tom Tromey <tom@tromey.com>
3326 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3327 * ada-exp.h (class ada_binop_addsub_operation): New.
3329 2021-03-08 Tom Tromey <tom@tromey.com>
3331 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3332 (ada_resolve_variable): Declare.
3333 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3334 (ada_resolve_variable): New functions.
3335 (resolve_subexp): Update.
3337 2021-03-08 Tom Tromey <tom@tromey.com>
3339 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3341 * c-exp.h (class opencl_ternop_cond_operation): New.
3343 2021-03-08 Tom Tromey <tom@tromey.com>
3345 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3347 * c-exp.h (class opencl_logical_binop_operation): New.
3349 2021-03-08 Tom Tromey <tom@tromey.com>
3351 * opencl-lang.c (opencl_structop_operation::evaluate): New
3353 * c-exp.h (class opencl_structop_operation): New.
3355 2021-03-08 Tom Tromey <tom@tromey.com>
3357 * opencl-lang.c (opencl_logical_not): No longer static. Change
3359 (evaluate_subexp_opencl): Update.
3360 * c-exp.h (opencl_notequal_operation): New typedef.
3362 2021-03-08 Tom Tromey <tom@tromey.com>
3364 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3365 static. Change parameters.
3366 (eval_opencl_assign): No longer static. Add "op" parameter.
3367 (evaluate_subexp_opencl): Update.
3368 * c-exp.h (opencl_binop_operation): New template class.
3369 (opencl_assign_operation, opencl_equal_operation)
3370 (opencl_notequal_operation, opencl_less_operation)
3371 (opencl_gtr_operation, opencl_geq_operation)
3372 (opencl_leq_operation): New typedefs.
3374 2021-03-08 Tom Tromey <tom@tromey.com>
3376 * opencl-lang.c (opencl_value_cast): No longer static.
3377 * c-exp.h (opencl_cast_type_operation): New typedef.
3379 2021-03-08 Tom Tromey <tom@tromey.com>
3381 * f-exp.h (eval_op_f_allocated): Declare.
3382 (fortran_allocated_operation): New typedef.
3383 * f-lang.c (eval_op_f_allocated): No longer static.
3385 2021-03-08 Tom Tromey <tom@tromey.com>
3387 * f-lang.c (eval_op_f_associated): New functions.
3388 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3391 2021-03-08 Tom Tromey <tom@tromey.com>
3393 * f-lang.c (fortran_bound_1arg::evaluate)
3394 (fortran_bound_2arg::evaluate): New methods.
3395 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3398 2021-03-08 Tom Tromey <tom@tromey.com>
3400 * expop.h (class unop_addr_operation) <get_expression>: New
3402 * f-lang.c (fortran_undetermined::value_subarray)
3403 (fortran_undetermined::evaluate): New methods.
3404 (fortran_prepare_argument): New overload.
3405 * f-exp.h (class fortran_range_operation)
3406 (class fortran_undetermined): New classes.
3408 2021-03-08 Tom Tromey <tom@tromey.com>
3410 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3411 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3414 2021-03-08 Tom Tromey <tom@tromey.com>
3416 * expression.h (class operation) <evaluate_funcall>: New methods.
3417 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3418 (class var_value_operation) <evaluate_funcall>: New method.
3419 (class structop_base_operation) <evaluate_funcall>: New method.
3420 (class var_msym_value_operation) <evaluate_funcall>: New method.
3421 (class structop_member_base): New class.
3422 (class structop_member_operation): Derive from
3423 structop_member_base.
3424 (class structop_mptr_operation): Derive from
3425 structop_member_base.
3426 (class funcall_operation): New class.
3427 * eval.c (operation::evaluate_funcall)
3428 (var_value_operation::evaluate_funcall)
3429 (scope_operation::evaluate_funcall)
3430 (structop_member_base::evaluate_funcall)
3431 (structop_base_operation::evaluate_funcall): New methods.
3433 2021-03-08 Tom Tromey <tom@tromey.com>
3435 * expop.h (class array_operation): New.
3436 * eval.c (array_operation::evaluate_struct_tuple)
3437 (array_operation::evaluate): New methods.
3439 2021-03-08 Tom Tromey <tom@tromey.com>
3441 * expop.h (class adl_func_operation): New.
3442 * eval.c (adl_func_operation::evaluate): New method.
3444 2021-03-08 Tom Tromey <tom@tromey.com>
3446 * ada-lang.c (ada_unop_in_range): No longer static.
3447 * ada-exp.h (class ada_unop_range_operation): New.
3449 2021-03-08 Tom Tromey <tom@tromey.com>
3451 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3453 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3454 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3456 2021-03-08 Tom Tromey <tom@tromey.com>
3458 * expop.h (class logical_and_operation)
3459 (class logical_or_operation): New.
3460 * eval.c (logical_and_operation::evaluate)
3461 (logical_or_operation::evaluate): New methods.
3462 * ax-gdb.c (logical_and_operation::do_generate_ax)
3463 (logical_or_operation::do_generate_ax): New methods.
3465 2021-03-08 Tom Tromey <tom@tromey.com>
3467 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3469 * m2-exp.h: New file.
3471 2021-03-08 Tom Tromey <tom@tromey.com>
3473 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3474 * rust-exp.h (class rust_aggregate_operation): New.
3476 2021-03-08 Tom Tromey <tom@tromey.com>
3478 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3480 * rust-exp.h (class rust_struct_anon): New.
3481 (class rust_structop): New.
3483 2021-03-08 Tom Tromey <tom@tromey.com>
3485 * rust-lang.c (rust_range): No longer static.
3486 * rust-exp.h (class rust_range_operation): New.
3488 2021-03-08 Tom Tromey <tom@tromey.com>
3490 * rust-lang.c (rust_subscript): No longer static.
3491 * rust-exp.h (class rust_subscript_operation): New.
3493 2021-03-08 Tom Tromey <tom@tromey.com>
3495 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3497 (rust_evaluate_subexp): Update.
3498 * rust-exp.h (class rust_unop_ind_operation): New.
3500 2021-03-08 Tom Tromey <tom@tromey.com>
3502 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3503 longer static. Add "opcode" parameter.
3504 (rust_evaluate_subexp): Update.
3505 * rust-exp.h: New file.
3507 2021-03-08 Tom Tromey <tom@tromey.com>
3509 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3510 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3511 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3512 (evaluate_subexp_f): Update.
3513 * f-exp.h: New file.
3515 2021-03-08 Tom Tromey <tom@tromey.com>
3517 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3518 * ada-exp.h (class ada_ternop_range_operation): New.
3520 2021-03-08 Tom Tromey <tom@tromey.com>
3522 * ada-lang.c (ada_qual_operation::evaluate): New method.
3523 * ada-exp.h (class ada_qual_operation): New.
3525 2021-03-08 Tom Tromey <tom@tromey.com>
3527 * ada-lang.c (ada_string_operation::evaluate): New method.
3528 * ada-exp.h (class ada_string_operation): New.
3530 2021-03-08 Tom Tromey <tom@tromey.com>
3532 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3533 * ada-exp.h: New file.
3535 2021-03-08 Tom Tromey <tom@tromey.com>
3537 * expop.h (class multi_subscript_operation): New.
3538 * eval.c (multi_subscript_operation::evaluate): New method.
3540 2021-03-08 Tom Tromey <tom@tromey.com>
3542 * eval.c (objc_msgcall_operation::evaluate): New method.
3543 * c-exp.h (class objc_msgcall_operation): New.
3545 2021-03-08 Tom Tromey <tom@tromey.com>
3547 * expop.h (class var_value_operation): New.
3548 * eval.c (var_value_operation::evaluate)
3549 (var_value_operation::evaluate_for_address)
3550 (var_value_operation::evaluate_with_coercion)
3551 (var_value_operation::evaluate_for_sizeof)
3552 (var_value_operation::evaluate_for_cast): New methods.
3553 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3555 2021-03-08 Tom Tromey <tom@tromey.com>
3557 * expop.h (cxx_cast_ftype): New typedef.
3558 (cxx_cast_operation): New template.
3559 (dynamic_cast_operation, reinterpret_cast_operation): New
3562 2021-03-08 Tom Tromey <tom@tromey.com>
3564 * expop.h (class unop_cast_type_operation): New.
3565 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3568 2021-03-08 Tom Tromey <tom@tromey.com>
3570 * expop.h (class unop_cast_operation): New.
3571 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3573 2021-03-08 Tom Tromey <tom@tromey.com>
3575 * expop.h (class assign_modify_operation): New.
3576 * eval.c (eval_binop_assign_modify): No longer static.
3577 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3579 2021-03-08 Tom Tromey <tom@tromey.com>
3581 * expop.h (class assign_operation): New.
3582 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3584 2021-03-08 Tom Tromey <tom@tromey.com>
3586 * expop.h (class type_instance_operation): New.
3587 * eval.c (type_instance_operation::evaluate): New method.
3589 2021-03-08 Tom Tromey <tom@tromey.com>
3591 * expop.h (class op_this_operation): New.
3592 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3594 2021-03-08 Tom Tromey <tom@tromey.com>
3596 * expop.h (class unop_memval_operation)
3597 (class unop_memval_type_operation): New.
3598 * eval.c (eval_op_memval): No longer static.
3599 (unop_memval_operation::evaluate_for_address)
3600 (unop_memval_type_operation::evaluate_for_address)
3601 (unop_memval_operation::evaluate_for_sizeof)
3602 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3603 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3604 (unop_memval_type_operation::do_generate_ax): New methods.
3606 2021-03-08 Tom Tromey <tom@tromey.com>
3608 * expop.h (class unop_alignof_operation): New.
3609 * eval.c (eval_op_alignof): No longer static.
3611 2021-03-08 Tom Tromey <tom@tromey.com>
3613 * expop.h (class unop_sizeof_operation): New.
3614 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3616 2021-03-08 Tom Tromey <tom@tromey.com>
3618 * expop.h (class unop_addr_operation): New.
3619 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3621 2021-03-08 Tom Tromey <tom@tromey.com>
3623 * expop.h (class typeid_operation): New.
3625 2021-03-08 Tom Tromey <tom@tromey.com>
3627 * expop.h (class decltype_operation): New.
3629 2021-03-08 Tom Tromey <tom@tromey.com>
3631 * expop.h (class typeof_operation): New.
3633 2021-03-08 Tom Tromey <tom@tromey.com>
3635 * expop.h (class type_operation): New.
3636 * eval.c (eval_op_type): No longer static.
3638 2021-03-08 Tom Tromey <tom@tromey.com>
3640 * expop.h (class unop_ind_base_operation)
3641 (class unop_ind_operation): New.
3642 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3643 (unop_ind_base_operation::evaluate_for_address)
3644 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3645 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3647 2021-03-08 Tom Tromey <tom@tromey.com>
3649 * expop.h (unop_incr_operation): New template.
3650 (preinc_operation, predec_operation, postinc_operation)
3651 (postdec_operation): New typedefs.
3652 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3653 (eval_op_postdec): No longer static.
3655 2021-03-08 Tom Tromey <tom@tromey.com>
3657 * expop.h (unary_ftype): New typedef.
3658 (unop_operation, usual_ax_binop_operation): New templates.
3659 (unary_plus_operation, unary_neg_operation)
3660 (unary_complement_operation, unary_logical_not_operation): New
3662 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3663 (eval_op_lognot): No longer static.
3664 * ax-gdb.c (gen_expr_unop): New function.
3666 2021-03-08 Tom Tromey <tom@tromey.com>
3668 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3670 2021-03-08 Tom Tromey <tom@tromey.com>
3672 * expop.h (class repeat_operation): New.
3673 * eval.c (eval_op_repeat): No longer static. Remove "op"
3675 (evaluate_subexp_standard): Update.
3676 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3678 2021-03-08 Tom Tromey <tom@tromey.com>
3680 * expop.h (class comparison_operation): New.
3681 (equal_operation, notequal_operation, less_operation)
3682 (gtr_operation, geq_operation, leq_operation): New typedefs.
3683 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3684 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3686 2021-03-08 Tom Tromey <tom@tromey.com>
3688 * expop.h (class subscript_operation): New.
3689 * eval.c (eval_op_subscript): No longer static.
3691 2021-03-08 Tom Tromey <tom@tromey.com>
3693 * expop.h (class binop_operation, class usual_ax_binop_operation):
3695 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3696 (div_operation, rem_operation, lsh_operation, rsh_operation)
3697 (bitwise_and_operation, bitwise_ior_operation)
3698 (bitwise_xor_operation): New typedefs.
3699 * eval.c (eval_op_binary): No longer static.
3701 2021-03-08 Tom Tromey <tom@tromey.com>
3703 * expop.h (class sub_operation): New.
3704 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3705 (evaluate_subexp_standard): Update.
3707 2021-03-08 Tom Tromey <tom@tromey.com>
3709 * expop.h (class add_operation): New.
3710 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3711 (evaluate_subexp_standard): Update.
3713 2021-03-08 Tom Tromey <tom@tromey.com>
3715 * expop.h (class concat_operation): New.
3716 * eval.c (eval_op_concat): No longer static. Remove "op"
3718 (evaluate_subexp_standard): Update.
3720 2021-03-08 Tom Tromey <tom@tromey.com>
3722 * expop.h (class structop_member_operation)
3723 (class structop_mptr_operation): New.
3724 * eval.c (eval_op_member): No longer static.
3726 2021-03-08 Tom Tromey <tom@tromey.com>
3728 * expop.h (class structop_ptr_operation): New.
3729 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3732 2021-03-08 Tom Tromey <tom@tromey.com>
3734 * expop.h (class structop_base_operation)
3735 (class structop_operation): New.
3736 * eval.c (eval_op_structop_struct): No longer static.
3738 2021-03-08 Tom Tromey <tom@tromey.com>
3740 * expop.h (class complex_operation): New.
3742 2021-03-08 Tom Tromey <tom@tromey.com>
3744 * eval.c (eval_op_objc_selector): No longer static.
3745 * c-exp.h (class objc_selector_operation): New.
3747 2021-03-08 Tom Tromey <tom@tromey.com>
3749 * eval.c: Include c-exp.h.
3750 * c-exp.h (class objc_nsstring_operation): New.
3752 2021-03-08 Tom Tromey <tom@tromey.com>
3754 * c-lang.c (c_string_operation::evaluate): New method.
3755 * c-exp.h: New file.
3757 2021-03-08 Tom Tromey <tom@tromey.com>
3759 * expop.h (class ternop_cond_operation): New.
3760 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3762 2021-03-08 Tom Tromey <tom@tromey.com>
3764 * expop.h (class ternop_slice_operation): New.
3765 * eval.c (eval_op_ternop): No longer static.
3767 2021-03-08 Tom Tromey <tom@tromey.com>
3769 * expop.h (class string_operation): New.
3770 * eval.c (eval_op_string): No longer static.
3772 2021-03-08 Tom Tromey <tom@tromey.com>
3774 * expop.h (class internalvar_operation): New.
3775 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3777 2021-03-08 Tom Tromey <tom@tromey.com>
3779 * expop.h (class bool_operation): New.
3781 2021-03-08 Tom Tromey <tom@tromey.com>
3783 * expop.h (class register_operation): New.
3784 * eval.c (eval_op_register): No longer static.
3785 * ax-gdb.c (register_operation::do_generate_ax): New method.
3787 2021-03-08 Tom Tromey <tom@tromey.com>
3789 * expop.h (class last_operation): New.
3791 2021-03-08 Tom Tromey <tom@tromey.com>
3793 * expop.h (class func_static_var_operation): New.
3794 * eval.c (eval_op_func_static_var): No longer static.
3796 2021-03-08 Tom Tromey <tom@tromey.com>
3798 * expop.h (class var_entry_value_operation): New.
3799 * eval.c (eval_op_var_entry_value): No longer static.
3801 2021-03-08 Tom Tromey <tom@tromey.com>
3803 * expression.h (class operation) <set_outermost>: New method.
3804 * expop.h (class var_msym_value_operation): New.
3805 * eval.c (eval_op_var_msym_value): No longer static.
3806 (var_msym_value_operation::evaluate_for_address)
3807 (var_msym_value_operation::evaluate_for_sizeof)
3808 (var_msym_value_operation::evaluate_for_cast): New methods.
3809 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3812 2021-03-08 Tom Tromey <tom@tromey.com>
3814 * expop.h (class long_const_operation): New.
3815 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3817 2021-03-08 Tom Tromey <tom@tromey.com>
3819 * expop.h (class scope_operation): New.
3820 * eval.c (eval_op_scope): No longer static.
3821 (scope_operation::evaluate_for_address): New method.
3822 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3824 2021-03-08 Tom Tromey <tom@tromey.com>
3826 * expprint.c (float_const_operation::dump): New method.
3827 * expop.h (float_data): New typedef.
3828 (class float_const_operation): New.
3830 2021-03-08 Tom Tromey <tom@tromey.com>
3832 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3833 * ax-gdb.c (gen_expr_binop): New function.
3834 (gen_expr_structop): Likewise.
3836 2021-03-08 Tom Tromey <tom@tromey.com>
3838 * expprint.c (expr::dump_for_expression): New functions.
3839 * expop.h (dump_for_expression): New overloads.
3840 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3843 2021-03-08 Tom Tromey <tom@tromey.com>
3845 * expression.h (expr::operation): New class.
3846 (expr::make_operation): New function.
3847 (expr::operation_up): New typedef.
3848 * expop.h: New file.
3849 * eval.c (operation::evaluate_for_cast)
3850 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3852 * ax-gdb.c (operation::generate_ax): New method.
3854 2021-03-08 Tom Tromey <tom@tromey.com>
3856 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3857 (gen_expr_binop_rest): New overload.
3859 2021-03-08 Tom Tromey <tom@tromey.com>
3861 * eval.c (eval_multi_subscript): New function.
3862 (evaluate_subexp_standard): Use it.
3864 2021-03-08 Tom Tromey <tom@tromey.com>
3866 * ada-lang.c (ada_binop_exp): New function.
3867 (ada_evaluate_subexp): Use it.
3869 2021-03-08 Tom Tromey <tom@tromey.com>
3871 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3873 (ada_evaluate_subexp): Use it.
3875 2021-03-08 Tom Tromey <tom@tromey.com>
3877 * ada-lang.c (ada_binop_minmax): New function.
3878 (ada_evaluate_subexp): Use it.
3880 2021-03-08 Tom Tromey <tom@tromey.com>
3882 * ada-lang.c (ada_unop_atr): New function.
3883 (ada_evaluate_subexp): Use it.
3885 2021-03-08 Tom Tromey <tom@tromey.com>
3887 * ada-lang.c (ada_binop_in_bounds): New function.
3888 (ada_evaluate_subexp): Use it.
3890 2021-03-08 Tom Tromey <tom@tromey.com>
3892 * ada-lang.c (ada_ternop_slice): New function.
3893 (ada_evaluate_subexp): Use it.
3895 2021-03-08 Tom Tromey <tom@tromey.com>
3897 * ada-lang.c (ada_equal_binop): New function.
3898 (ada_evaluate_subexp): Use it.
3900 2021-03-08 Tom Tromey <tom@tromey.com>
3902 * ada-lang.c (ada_mult_binop): New function.
3903 (ada_evaluate_subexp): Use it.
3905 2021-03-08 Tom Tromey <tom@tromey.com>
3907 * ada-lang.c (ada_abs): New function.
3908 (ada_evaluate_subexp): Use it.
3910 2021-03-08 Tom Tromey <tom@tromey.com>
3912 * ada-lang.c (ada_atr_size): New function.
3913 (ada_evaluate_subexp): Use it.
3915 2021-03-08 Tom Tromey <tom@tromey.com>
3917 * ada-lang.c (ada_atr_tag): New function.
3918 (ada_evaluate_subexp): Use it.
3920 2021-03-08 Tom Tromey <tom@tromey.com>
3922 * ada-lang.c (ada_unop_in_range): New function.
3923 (ada_evaluate_subexp): Use it.
3925 2021-03-08 Tom Tromey <tom@tromey.com>
3927 * ada-lang.c (ada_unop_neg): New function.
3928 (ada_evaluate_subexp): Use it.
3930 2021-03-08 Tom Tromey <tom@tromey.com>
3932 * ada-lang.c (eval_ternop_in_range): New function.
3933 (ada_evaluate_subexp): Use it.
3935 2021-03-08 Tom Tromey <tom@tromey.com>
3937 * opencl-lang.c (eval_opencl_assign): New function.
3938 (evaluate_subexp_opencl): Use it.
3940 2021-03-08 Tom Tromey <tom@tromey.com>
3942 * eval.c (eval_op_objc_msgcall): New function.
3943 (evaluate_subexp_standard): Use it.
3945 2021-03-08 Tom Tromey <tom@tromey.com>
3947 * eval.c (eval_binop_assign_modify): New function.
3948 (evaluate_subexp_standard): Use it.
3950 2021-03-08 Tom Tromey <tom@tromey.com>
3952 * m2-lang.c (eval_op_m2_subscript): New function.
3953 (evaluate_subexp_modula2): Use it.
3955 2021-03-08 Tom Tromey <tom@tromey.com>
3957 * m2-lang.c (eval_op_m2_high): New function.
3958 (evaluate_subexp_modula2): Use it.
3960 2021-03-08 Tom Tromey <tom@tromey.com>
3962 * eval.c (evaluate_subexp_for_address_base): New function.
3963 (evaluate_subexp_for_address): Use it.
3964 (evaluate_subexp_for_sizeof_base): New function.
3965 (evaluate_subexp_for_sizeof): Use it.
3967 2021-03-08 Tom Tromey <tom@tromey.com>
3969 * rust-lang.c (eval_op_rust_structop): New function.
3970 (rust_evaluate_subexp): Use it.
3972 2021-03-08 Tom Tromey <tom@tromey.com>
3974 * rust-lang.c (eval_op_rust_struct_anon): New function.
3975 (rust_evaluate_subexp): Use it.
3977 2021-03-08 Tom Tromey <tom@tromey.com>
3979 * rust-lang.c (eval_op_rust_array): New function.
3980 (rust_evaluate_subexp): Use it.
3982 2021-03-08 Tom Tromey <tom@tromey.com>
3984 * rust-lang.c (eval_op_rust_complement): New function.
3985 (rust_evaluate_subexp): Use it.
3987 2021-03-08 Tom Tromey <tom@tromey.com>
3989 * rust-lang.c (eval_op_rust_ind): New function.
3990 (rust_evaluate_subexp): Use it.
3992 2021-03-08 Tom Tromey <tom@tromey.com>
3994 * rust-lang.c (rust_subscript): Change parameters.
3995 (rust_evaluate_subexp): Update.
3997 2021-03-08 Tom Tromey <tom@tromey.com>
3999 * rust-lang.c (rust_range): Change parameters.
4000 (rust_evaluate_subexp): Update.
4002 2021-03-08 Tom Tromey <tom@tromey.com>
4004 * f-lang.c (eval_op_f_allocated): New function.
4005 (evaluate_subexp_f): Use it.
4007 2021-03-08 Tom Tromey <tom@tromey.com>
4009 * f-lang.c (fortran_require_array): New function.
4010 (evaluate_subexp_f): Use it.
4012 2021-03-08 Tom Tromey <tom@tromey.com>
4014 * f-lang.c (eval_op_f_kind): New function.
4015 (evaluate_subexp_f): Use it.
4017 2021-03-08 Tom Tromey <tom@tromey.com>
4019 * f-lang.c (eval_op_f_cmplx): New function.
4020 (evaluate_subexp_f): Use it.
4022 2021-03-08 Tom Tromey <tom@tromey.com>
4024 * f-lang.c (eval_op_f_modulo): New function.
4025 (evaluate_subexp_f): Use it.
4027 2021-03-08 Tom Tromey <tom@tromey.com>
4029 * f-lang.c (eval_op_f_floor): New function.
4030 (evaluate_subexp_f): Use it.
4032 2021-03-08 Tom Tromey <tom@tromey.com>
4034 * f-lang.c (eval_op_f_ceil): New function.
4035 (evaluate_subexp_f): Use it.
4037 2021-03-08 Tom Tromey <tom@tromey.com>
4039 * f-lang.c (eval_op_f_mod): New function.
4040 (evaluate_subexp_f): Use it.
4042 2021-03-08 Tom Tromey <tom@tromey.com>
4044 * f-lang.c (eval_op_f_abs): New function.
4045 (evaluate_subexp_f): Use it.
4047 2021-03-08 Tom Tromey <tom@tromey.com>
4049 * eval.c (eval_op_type): New function.
4050 (evaluate_subexp_standard): Use it.
4052 2021-03-08 Tom Tromey <tom@tromey.com>
4054 * eval.c (eval_op_postdec): New function.
4055 (evaluate_subexp_standard): Use it.
4057 2021-03-08 Tom Tromey <tom@tromey.com>
4059 * eval.c (eval_op_postinc): New function.
4060 (evaluate_subexp_standard): Use it.
4062 2021-03-08 Tom Tromey <tom@tromey.com>
4064 * eval.c (eval_op_predec): New file.
4065 (evaluate_subexp_standard): Use it.
4067 2021-03-08 Tom Tromey <tom@tromey.com>
4069 * eval.c (eval_op_preinc): New function.
4070 (evaluate_subexp_standard): Use it.
4072 2021-03-08 Tom Tromey <tom@tromey.com>
4074 * eval.c (eval_op_memval): New function.
4075 (evaluate_subexp_standard): Use it.
4077 2021-03-08 Tom Tromey <tom@tromey.com>
4079 * eval.c (eval_op_alignof): New function.
4080 (evaluate_subexp_standard): Use it.
4082 2021-03-08 Tom Tromey <tom@tromey.com>
4084 * eval.c (eval_op_ind): New function.
4085 (evaluate_subexp_standard): Use it.
4087 2021-03-08 Tom Tromey <tom@tromey.com>
4089 * eval.c (eval_op_lognot): New function.
4090 (evaluate_subexp_standard): Use it.
4092 2021-03-08 Tom Tromey <tom@tromey.com>
4094 * eval.c (eval_op_complement): New function.
4095 (evaluate_subexp_standard): Use it.
4097 2021-03-08 Tom Tromey <tom@tromey.com>
4099 * eval.c (eval_op_neg): New function.
4100 (evaluate_subexp_standard): Use it.
4102 2021-03-08 Tom Tromey <tom@tromey.com>
4104 * eval.c (eval_op_plus): New function.
4105 (evaluate_subexp_standard): Use it.
4107 2021-03-08 Tom Tromey <tom@tromey.com>
4109 * eval.c (eval_op_repeat): New function.
4110 (evaluate_subexp_standard): Use it.
4112 2021-03-08 Tom Tromey <tom@tromey.com>
4114 * eval.c (eval_op_leq): New function.
4115 (evaluate_subexp_standard): Use it.
4117 2021-03-08 Tom Tromey <tom@tromey.com>
4119 * eval.c (eval_op_geq): New function.
4120 (evaluate_subexp_standard): Use it.
4122 2021-03-08 Tom Tromey <tom@tromey.com>
4124 * eval.c (eval_op_gtr): New function.
4125 (evaluate_subexp_standard): Use it.
4127 2021-03-08 Tom Tromey <tom@tromey.com>
4129 * eval.c (eval_op_less): New function.
4130 (evaluate_subexp_standard): Use it.
4132 2021-03-08 Tom Tromey <tom@tromey.com>
4134 * eval.c (eval_op_notequal): New function.
4135 (evaluate_subexp_standard): Use it.
4137 2021-03-08 Tom Tromey <tom@tromey.com>
4139 * eval.c (eval_op_equal): New function.
4140 (evaluate_subexp_standard): Use it.
4142 2021-03-08 Tom Tromey <tom@tromey.com>
4144 * eval.c (eval_op_subscript): New function.
4145 (evaluate_subexp_standard): Use it.
4147 2021-03-08 Tom Tromey <tom@tromey.com>
4149 * eval.c (eval_op_binary): New function.
4150 (evaluate_subexp_standard): Use it.
4152 2021-03-08 Tom Tromey <tom@tromey.com>
4154 * eval.c (eval_op_sub): New function.
4155 (evaluate_subexp_standard): Use it.
4157 2021-03-08 Tom Tromey <tom@tromey.com>
4159 * eval.c (eval_op_add): New function.
4160 (evaluate_subexp_standard): Use it.
4162 2021-03-08 Tom Tromey <tom@tromey.com>
4164 * eval.c (eval_op_member): New function.
4165 (evaluate_subexp_standard): Use it.
4167 2021-03-08 Tom Tromey <tom@tromey.com>
4169 * eval.c (eval_op_structop_ptr): New function.
4170 (evaluate_subexp_standard): Use it.
4172 2021-03-08 Tom Tromey <tom@tromey.com>
4174 * eval.c (eval_op_structop_struct): New function.
4175 (evaluate_subexp_standard): Use it.
4177 2021-03-08 Tom Tromey <tom@tromey.com>
4179 * eval.c (eval_op_ternop): New function.
4180 (evaluate_subexp_standard): Use it.
4182 2021-03-08 Tom Tromey <tom@tromey.com>
4184 * eval.c (eval_op_concat): New function.
4185 (evaluate_subexp_standard): Use it.
4187 2021-03-08 Tom Tromey <tom@tromey.com>
4189 * eval.c (eval_op_objc_selector): New function.
4190 (evaluate_subexp_standard): Use it.
4192 2021-03-08 Tom Tromey <tom@tromey.com>
4194 * eval.c (eval_op_string): New function.
4195 (evaluate_subexp_standard): Use it.
4197 2021-03-08 Tom Tromey <tom@tromey.com>
4199 * eval.c (eval_op_register): New function.
4200 (evaluate_subexp_standard): Use it.
4202 2021-03-08 Tom Tromey <tom@tromey.com>
4204 * eval.c (eval_op_func_static_var): New function.
4205 (evaluate_subexp_standard): Use it.
4207 2021-03-08 Tom Tromey <tom@tromey.com>
4209 * eval.c (eval_op_var_msym_value): New function.
4210 (evaluate_subexp_standard): Use it.
4212 2021-03-08 Tom Tromey <tom@tromey.com>
4214 * eval.c (eval_op_var_entry_value): New function.
4215 (evaluate_subexp_standard): Use it.
4217 2021-03-08 Tom Tromey <tom@tromey.com>
4219 * eval.c (eval_op_scope): New function.
4220 (evaluate_subexp_standard): Use it.
4222 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4225 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4227 2021-03-06 Tom Tromey <tom@tromey.com>
4229 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4230 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4231 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4232 (locate_dwz_sections, dwz_search_other_debugdirs)
4233 (dwarf2_get_dwz_file): Move to dwz.c.
4234 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4236 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4237 (dwarf2_get_dwz_file): Move from read.c.
4239 2021-03-06 Tom Tromey <tom@tromey.com>
4241 * debuginfod-support.h: Include scoped_fd.h.
4243 2021-03-06 Tom Tromey <tom@tromey.com>
4245 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4246 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4247 (get_abbrev_section_for_cu, read_attribute_value)
4248 (get_debug_line_section): Update.
4249 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4251 2021-03-06 Tom Tromey <tom@tromey.com>
4253 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4255 * dwarf2/read.c (section_is_p): Remove.
4256 (dwarf2_per_bfd::locate_sections)
4257 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4258 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4259 (dwarf2_locate_common_dwp_sections)
4260 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4263 2021-03-06 Tom Tromey <tom@tromey.com>
4265 * xcoffread.c: Include sect-names.h.
4266 * symfile.h (struct dwarf2_section_names, struct
4267 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4268 * dwarf2/sect-names.h: New file, from symfile.h.
4269 * dwarf2/read.c: Include sect-names.h.
4271 2021-03-06 Tom Tromey <tom@tromey.com>
4273 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4274 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4275 (abbrev_table::read): Update.
4276 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4277 (struct abbrev_info): Reformat.
4278 <attrs>: Now an array.
4279 (struct abbrev_table) <alloc_abbrev>: Remove.
4281 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4283 * ctfread.c (ctf_psymtab_add_enums): New function.
4284 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4286 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4288 * ctfread.c (read_func_kind_type): Set up function arguments.
4290 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4291 Andrew Burgess <andrew.burgess@embecosm.com>
4293 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4295 (riscv_csrset): New static global.
4296 (riscv_update_csrmap): New function.
4297 (riscv_iterate_over_regset_sections): Process CSRs.
4299 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4301 * riscv-tdep.c (riscv_feature_name_csr): Define.
4302 (riscv_feature_name_cpu): Define.
4303 (riscv_feature_name_fpu): Define.
4304 (riscv_feature_name_virtual): Define.
4305 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4306 (riscv_freg_feature): Use riscv_feature_name_fpu.
4307 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4308 (riscv_csr_feature): Use riscv_feature_name_csr.
4309 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4311 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4312 Craig Blackmore <craig.blackmore@embecosm.com>
4314 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4315 (ALLDEPFILES): Add riscv-none-tdep.c.
4316 * configure: Regenerate.
4317 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4319 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4320 * elf-none-tdep.c: New file.
4321 * elf-none-tdep.h: New file.
4322 * riscv-none-tdep.c: New file.
4324 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4325 Andrew Burgess <andrew.burgess@embecosm.com>
4327 * corelow.c: Add 'xml-tdesc.h' include.
4328 (core_target::read_description): Load the target description from
4329 the core file when possible.
4330 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4332 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4333 (gcore_elf_make_tdesc_note): New function.
4334 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4335 * linux-tdep.c (linux_make_corefile_notes): Add target description
4338 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4340 * Makefile.in (SFILES): Add gcore-elf.c.
4341 (HFILES_NO_SRCDIR): Add gcore-elf.h
4342 * configure: Regenerate.
4343 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4345 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4346 (struct fbsd_collect_regset_section_cb_data): Delete.
4347 (fbsd_collect_regset_section_cb): Delete.
4348 (fbsd_collect_thread_registers): Delete.
4349 (struct fbsd_corefile_thread_data): Delete.
4350 (fbsd_corefile_thread): Delete.
4351 (fbsd_make_corefile_notes): Call
4352 gcore_elf_build_thread_register_notes instead of the now deleted
4354 * gcore-elf.c: New file, the content was moved here from
4355 linux-tdep.c, functions were renamed and given minor cleanup.
4356 * gcore-elf.h: New file.
4357 * gcore.c (gcore_find_signalled_thread): Moved here from
4358 linux-tdep.c and given a new name. Minor cleanups.
4359 * gcore.h (gcore_find_signalled_thread): Declare.
4360 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4361 (struct linux_collect_regset_section_cb_data): Delete.
4362 (linux_collect_regset_section_cb): Delete.
4363 (linux_collect_thread_registers): Delete.
4364 (linux_corefile_thread): Call
4365 gcore_elf_build_thread_register_notes.
4366 (find_signalled_thread): Delete.
4367 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4369 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4372 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4373 process_stratum_target parameter,
4374 sparc_store_inferior_registers): update callers.
4375 * sparc-nat.c (sparc_fetch_inferior_registers,
4376 sparc_store_inferior_registers): Add process_stratum_target
4377 parameter. Switch current thread before calling
4378 sparc_supply_gregset / sparc_collect_rwindow.
4379 (sparc_store_inferior_registers): Likewise.
4380 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4381 (sparc32obsd_collect_uthread): Likewise.
4382 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4384 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4385 sparc64obsd_supply_uthread): Add assertion.
4387 2021-03-04 Tom Tromey <tromey@adacore.com>
4389 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4390 (aux_add_nonlocal_symbols): Update.
4391 (ada_add_block_symbols): Change "found_sym" to bool.
4393 2021-03-03 Tom Tromey <tromey@adacore.com>
4395 * ada-lang.c (ada_resolve_function): Update comment.
4396 (is_nonfunction, add_symbols_from_enclosing_procs)
4397 (remove_extra_symbols): Likewise.
4398 (struct match_data): Add constructor, initializers.
4399 (add_nonlocal_symbols): Remove memset.
4400 (aux_add_nonlocal_symbols): Update comment.
4401 (ada_add_block_renamings, add_nonlocal_symbols)
4402 (ada_add_all_symbols): Likewise.
4403 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4405 2021-03-02 Tom Tromey <tromey@adacore.com>
4407 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4408 (cast_to_gnat_encoded_fixed_point_type): Remove.
4409 (ada_value_cast, ada_evaluate_subexp): Update.
4410 (gnat_encoded_fixed_point_type_info)
4411 (ada_is_gnat_encoded_fixed_point_type)
4412 (gnat_encoded_fixed_point_delta)
4413 (gnat_encoded_fixed_point_scaling_factor): Remove.
4414 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4415 (gnat_encoded_fixed_point_delta)
4416 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4417 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4418 (ada_print_type): Update.
4419 * ada-valprint.c (ada_value_print_num): Update.
4420 * dwarf2/read.c (ada_get_gnat_encoded_number)
4421 (ada_get_gnat_encoded_ratio): New functions.
4422 (finish_fixed_point_type): Use them. Add parameters.
4423 (GNAT_FIXED_POINT_SUFFIX): New define.
4424 (gnat_encoded_fixed_point_type_info): New function.
4425 (read_base_type): Handle gnat encodings.
4427 2021-03-02 Tom Tromey <tromey@adacore.com>
4429 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4430 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4432 (GROW_VECT): Remove.
4433 (grow_vect): Remove.
4435 2021-03-02 Tom Tromey <tromey@adacore.com>
4437 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4438 * ada-lang.c (resolve_subexp): Update.
4439 (ada_resolve_function): Accept a vector.
4440 (is_nonfunction, add_defn_to_vec)
4441 (add_symbols_from_enclosing_procs): Likewise.
4442 (num_defns_collected, defns_collected): Remove.
4443 (remove_extra_symbols): Return a vector.
4444 (remove_irrelevant_renamings): Return void.
4445 (ada_add_local_symbols): Accept a vector.
4446 (struct match_data) <obstackp>: Remove.
4447 <resultp>: New member.
4448 (aux_add_nonlocal_symbols): Update.
4449 (ada_add_block_renamings, add_nonlocal_symbols)
4450 (ada_add_all_symbols): Accept a vector.
4451 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4453 (ada_lookup_symbol): Update.
4454 (ada_add_block_symbols): Accept a vector.
4455 (get_var_value, iterate_over_symbols): Update.
4456 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4459 2021-03-02 Tom Tromey <tromey@adacore.com>
4461 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4463 2021-03-02 Tom Tromey <tromey@adacore.com>
4465 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4468 (ada_pspace_data): Remove destructor.
4469 <sym_cache>: Now a unique_ptr.
4470 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4471 (ada_get_symbol_cache): Use 'new'.
4472 (ada_clear_symbol_cache): Rewrite.
4474 2021-03-02 Tom Tromey <tromey@adacore.com>
4476 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4479 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4482 * source.c (add_path): Skip empty dirnames.
4484 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4486 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4487 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4489 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4492 * target.c (target_mourn_inferior): Only compare pids in
4493 target_mourn_inferior.
4495 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4498 * remote.c (remote_target::start_remote): Ensure the single
4499 thread, automatically added for remote targets without the
4500 concept of threading, is initially in set to the "resumed"
4502 * remote.c (remote_target::add_current_inferior_and_thread):
4503 Add return value - return the main thread.
4505 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4507 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4508 (mi_tsv_created): Likewise.
4509 (mi_tsv_deleted): Likewise.
4511 2021-02-25 Tom de Vries <tdevries@suse.de>
4514 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4515 section_kind for &dwo_file->sections.info.
4517 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4520 * f-lang.c (fortran_argument_convert): Delete declaration.
4521 (fortran_prepare_argument): New function.
4522 (evaluate_subexp_f): Move logic to new function
4523 fortran_prepare_argument.
4525 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4527 * f-exp.y (f77_keywords): Add 'associated'.
4528 * f-lang.c (fortran_associated): New function.
4529 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4530 (operator_length_f): Likewise.
4531 (print_unop_or_binop_subexp_f): New function.
4532 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4533 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4534 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4535 (operator_check_f): Likewise.
4536 * std-operator.def: Add FORTRAN_ASSOCIATED.
4538 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4540 * f-exp.y (fortran_operators): Add ".xor.".
4542 2021-02-24 Tom de Vries <tdevries@suse.de>
4545 * dwarf2/attribute.c (attribute::form_is_signed): New function
4547 * dwarf2/attribute.h (attribute::as_signed): ... here.
4548 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4549 (attribute::form_is_signed): Declare.
4550 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4551 for DW_AT_decl_file.
4553 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4555 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4556 order for <sys/ptrace.h> and <asm/ptrace.h>.
4558 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4560 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4563 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4565 * exec.c (set_section_command): Move variable declarations into
4566 the function body, and use std::string instead of a fixed size
4569 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4571 * exec.c (exec_target::get_section_table): Delete member function.
4572 (section_table_read_available_memory): Use current_top_target, not
4573 just the exec_ops target.
4574 * target-delegates.c: Regenerate.
4575 * target.c (default_get_section_table): New function.
4576 * target.h (target_ops::get_section_table): Change default
4577 behaviour to call default_get_section_table.
4578 (default_get_section_table): Declare.
4580 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4582 * exec.c (exec_target::close): Call new clear_target_sections
4584 (program_space::add_target_sections): Update name of member
4586 (program_space::add_target_sections): Update name of member
4588 (program_space::remove_target_sections): Likewise.
4589 (exec_one_fork): Use new target_sections member function.
4590 (exec_target::get_section_table): Likewise.
4591 (exec_target::files_info): Likewise.
4592 (set_section_command): Likewise.
4593 (exec_set_section_address): Likewise.
4594 (exec_target::has_memory): Use new target_sections member
4596 * progspace.h (program_space::clear_target_sections): New member
4598 (program_space::target_sections): Rename member variable to
4599 m_target_sections, replace with a new member function.
4600 (program_space::m_target_sections): New member variable.
4601 * solib-dsbt.c (scan_dyntag): Use new member function.
4602 * solib-svr4.c (scan_dyntag): Likewise.
4604 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4606 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4608 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4609 (section_table_read_available_memory): Make local const.
4610 (exec_target::xfer_partial): Make local const.
4611 (print_section_info): Make parameter const.
4612 * gdb/exec.h (print_section_info): Likewise.
4613 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4615 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4617 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4619 * gdb/s390-tdep.c (s390_load): Likewise.
4620 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4621 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4622 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4624 (target_debug_print_const_target_section_table_p): ...this.
4625 * gdb/target-delegates.c: Regenerate.
4626 * gdb/target.c (target_get_section_table): Make return type const.
4627 (target_section_by_addr): Likewise. Also make some locals const.
4628 (memory_xfer_partial_1): Make some locals const.
4629 * gdb/target.h (struct target_ops) <get_section_table>: Make
4631 (target_section_by_addr): Likewise.
4632 (target_get_section_table): Likewise.
4634 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4636 * NEWS: Mention new 'maint info target-sections' command.
4637 * maint.c (maintenance_info_target_sections): New function.
4638 (_initialize_maint_cmds): Register new command.
4640 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4642 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4643 (riscv_features_from_bfd): ...this. Change parameter type to
4644 'bfd*', and update as required.
4645 (riscv_find_default_target_description): Update call to
4646 riscv_features_from_bfd. Select a default xlen based on
4648 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4650 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4652 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4653 dynamic types in UNOP_IND.
4655 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4658 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4660 (~dwarf2_queue_guard): Clear queue.
4661 (queue_comp_unit): Assert that queue is
4663 (process_queue): Adjust.
4664 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4666 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4669 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4670 to decide whether or not to enqueue it for expansion.
4671 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4672 after calling maybe_queue_comp_unit.
4674 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4676 * linux-nat.c (linux_nat_filter_event): Return void.
4678 2021-02-22 Tom Tromey <tromey@adacore.com>
4680 * solib-svr4.c (enable_break): Update.
4681 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4683 (target_bfd_reopen): Change parameter type.
4684 * bfd-target.h (target_bfd_reopen): Change parameter type.
4686 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4688 * thread.c (add_thread_silent): Add assert.
4689 (find_thread_ptid): Add assert.
4691 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4694 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4695 (target_unpush_up): Likewise.
4696 * procfs.c (procfs_target::attach): Push target early. Use
4697 target_unpush_up to unpush target in case of error.
4698 * target.h (struct target_unpusher): Move here.
4699 (target_unpush_up): Likewise.
4701 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4703 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4704 (which in turn includes <gnulib/config.h>) before include
4707 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4710 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4711 (decode_j_type_insn): Likewise.
4712 (decode_cj_type_insn): Likewise.
4713 (decode_b_type_insn): Likewise.
4716 2021-02-18 Tom Tromey <tom@tromey.com>
4718 * expression.h (struct expression) <evaluate>: Declare method.
4719 * eval.c (evaluate_subexp): Simplify.
4720 (expression::evaluate): New method.
4721 (evaluate_expression, evaluate_type): Use expression::evaluate.
4723 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4725 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4727 (ada_lookup_name_info): Likewise.
4729 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4731 * aclocal.m4: Regenerate.
4733 2021-02-12 Tom de Vries <tdevries@suse.de>
4736 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4737 (lin_thread_signals): New static var.
4738 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4740 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4741 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4743 * linux-thread-db.c (check_thread_signals): Use
4744 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4746 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4748 * f-exp.y (f77_keywords): Add allocated.
4749 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4750 (operator_length_f): Likewise.
4751 (print_subexp_f): Likewise.
4752 (dump_subexp_body_f): Likewise.
4753 (operator_check_f): Likewise.
4754 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4756 2021-02-11 Tom de Vries <tdevries@suse.de>
4759 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4760 Return true for DW_FORM_strx.
4762 2021-02-11 Tom Tromey <tromey@adacore.com>
4765 * parse.c (write_exp_symbol_reference): Write sym.block.
4767 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4769 * NEWS: Mention changes to 'maint info sections'.
4770 * maint.c (match_substring): Return a bool, fix whitespace issue.
4771 (struct single_bfd_flag_info): New struct.
4772 (bfd_flag_info): New static global.
4773 (match_bfd_flags): Return a bool, use bfd_flag_info.
4774 (print_bfd_flags): Use bfd_flag_info.
4775 (maint_print_section_info): Delete trailing whitespace.
4776 (struct maint_info_sections_opts): New struct.
4777 (maint_info_sections_option_defs): New static global.
4778 (maint_info_sections_completer): New function.
4779 (maintenance_info_sections): Use option parsing mechanism.
4780 (_initialize_maint_cmds): Update command help text for 'maint info
4781 sections' and register a command completer.
4783 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4785 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4786 functionality merged into...
4787 (maint_print_all_sections): ...this new function.
4788 (maintenance_info_sections): Make use of maint_print_all_sections,
4789 allow all objects to be printed even where there's no executable.
4791 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4793 * breakpoint.c (resolve_sal_pc): Make use of
4794 bound_minimal_symbol::obj_section.
4795 * maint.c (maintenance_translate_address): Likewise.
4796 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4797 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4799 * printcmd.c (info_address_command): Make use of
4800 bound_minimal_symbol::obj_section.
4802 2021-02-11 Alan Modra <amodra@gmail.com>
4804 * arm-symbian-tdep.c: Delete.
4805 * NEWS: Mention arm-symbian removal.
4806 * Makefile.in: Remove arm-symbian-tdep entries.
4807 * configure.tgt: Remove arm*-*-symbianelf*.
4808 * doc/gdb.texinfo: Remove mention of SymbianOS.
4809 * osabi.c (gdb_osabi_names): Remove "Symbian".
4810 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4811 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4812 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4814 * testsuite/gdb.base/dup-sect.exp: Likewise.
4815 * testsuite/gdb.base/long_long.exp: Likewise.
4816 * testsuite/gdb.base/solib-weak.exp: Likewise.
4817 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4818 * testsuite/gdb.python/py-section-script.exp: Likewise.
4819 * testsuite/lib/dwarf.exp: Likewise.
4820 * testsuite/lib/gdb.exp: Likewise.
4822 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4824 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4825 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4826 (one_or_two_args): New pattern.
4827 (f77_keywords): Add lbound and ubound.
4828 * f-lang.c (fortran_bounds_all_dims): New function.
4829 (fortran_bounds_for_dimension): New function.
4830 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4831 (operator_length_f): Likewise.
4832 (print_subexp_f): Likewise.
4833 (dump_subexp_body_f): Likewise.
4834 (operator_check_f): Likewise.
4835 * std-operator.def (FORTRAN_LBOUND): Define.
4836 (FORTRAN_UBOUND): Define.
4838 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4840 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4841 and set_section_index member functions where appropriate.
4842 * coffread.c (coff_symtab_read): Likewise.
4843 (process_coff_symbol): Likewise.
4844 * ctfread.c (set_symbol_address): Likewise.
4845 * dwarf2/read.c (add_partial_symbol): Likewise.
4846 (var_decode_location): Likewise.
4847 * language.c: Likewise.
4848 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4849 (compact_minimal_symbols): Likewise.
4850 (minimal_symbol_upper_bound): Likewise.
4851 * objfiles.c (relocate_one_symbol): Likewise.
4852 * psympriv.h (partial_symbol::obj_section): Likewise.
4853 (partial_symbol::address): Likewise.
4854 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4855 * stabsread.c (scan_file_globals): Likewise.
4856 * symmisc.c (dump_msymbols): Likewise.
4857 * symtab.c (general_symbol_info::obj_section): Likewise.
4858 (fixup_section): Likewise.
4859 (get_msymbol_address): Likewise.
4860 * symtab.h (general_symbol_info::section): Rename to...
4861 (general_symbol_info::m_section): ...this.
4862 (general_symbol_info::set_section_index): New member function.
4863 (general_symbol_info::section_index): Likewise.
4864 (SYMBOL_SECTION): Delete.
4865 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4866 set_section_index member functions where appropriate.
4867 (MSYMBOL_SECTION): Delete.
4868 (symbol::symbol): Update to initialize 'm_section'.
4869 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4870 (process_xcoff_symbol): Likewise.
4872 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4874 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4875 MSYMBOL_OBJ_SECTION.
4876 * findvar.c (language_defn::read_var_value): Likewise.
4877 * infcmd.c (jump_command): Likewise.
4878 * linespec.c (minsym_found): Likewise.
4879 * maint.c (maintenance_translate_address): Likewise.
4880 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4881 (minimal_symbol_upper_bound): Likewise.
4882 * parse.c (find_minsym_type_and_address): Likewise.
4883 (operator_check_standard): Likewise.
4884 * printcmd.c (info_address_command): Likewise.
4885 * symmisc.c (dump_msymbols): Likewise.
4886 (print_symbol): Likewise.
4887 * symtab.c (general_symbol_info::obj_section): Define new
4889 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4890 (find_pc_sect_compunit_symtab): Likewise.
4891 (find_function_start_sal): Likewise.
4892 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4893 MSYMBOL_OBJ_SECTION.
4894 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4896 (SYMBOL_OBJ_SECTION): Delete.
4897 (MSYMBOL_OBJ_SECTION): Delete.
4899 2021-02-09 Tom Tromey <tom@tromey.com>
4901 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4903 2021-02-09 Tom de Vries <tdevries@suse.de>
4906 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4907 construct an array type. Add assert to ensure that element_type is
4910 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4912 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4913 (gcore_collect_regset_section_cb): Delete.
4914 (gcore_collect_thread_registers): Delete.
4915 (gcore_build_thread_register_notes): Delete.
4916 (gcore_find_signalled_thread): Delete.
4917 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4918 'gdbarch' and 'thread_info' declarations.
4919 (gcore_build_thread_register_notes): Delete declaration.
4920 (gcore_find_signalled_thread): Likewise.
4921 * fbsd-tdep.c: Remove 'gcore.h' include.
4922 (struct fbsd_collect_regset_section_cb_data): New struct.
4923 (fbsd_collect_regset_section_cb): New function.
4924 (fbsd_collect_thread_registers): New function.
4925 (struct fbsd_corefile_thread_data): New struct.
4926 (fbsd_corefile_thread): New function.
4927 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4928 * linux-tdep.c: Remove 'gcore.h' include.
4929 (struct linux_collect_regset_section_cb_data): New struct.
4930 (linux_collect_regset_section_cb): New function.
4931 (linux_collect_thread_registers): New function.
4932 (linux_corefile_thread): Call Linux specific code.
4933 (find_signalled_thread): New function.
4934 (linux_make_corefile_notes): Call find_signalled_thread.
4936 2021-02-09 Tom Tromey <tromey@adacore.com>
4938 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4940 * value.c (value_contents_copy_raw): Now static.
4941 * value.h (value_contents_copy_raw): Don't declare.
4943 2021-02-09 Tom Tromey <tromey@adacore.com>
4945 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4948 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4951 * arc-linux-tdep.c (handle_atomic_sequence): New.
4952 (arc_linux_software_single_step): Call handle_atomic_sequence().
4954 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4956 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4958 (REQUIRE_WINDOW): Call is_valid member function.
4959 (REQUIRE_WINDOW_FOR_SETTER): New define.
4960 (gdbpy_tui_is_valid): Call is_valid member function.
4961 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4962 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4964 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4965 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4968 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4970 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4971 for the title is not nullptr.
4973 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4975 * tui-layout.c (saved_tui_windows): Delete.
4976 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4977 call new get_windows member function instead.
4978 (tui_get_window_by_name): Check in tui_windows.
4979 (tui_layout_window::apply): Don't add to tui_windows.
4980 * tui-layout.h (tui_layout_base::get_windows): New member function.
4981 (tui_layout_window::get_windows): Likewise.
4982 (tui_layout_split::get_windows): Likewise.
4984 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4986 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4987 of the window objects.
4989 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4991 * python/python.c (gdbpy_print_stack): Reformat an error message.
4993 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4995 * tui/tui-interp.c (tui_command_line_handler): New function.
4996 (tui_interp::resume): Register tui_command_line_handler as the
4998 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5000 (tui_getc_1): Delete handling of '\n' and '\r'.
5001 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5003 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5005 * tui/tui-regs.c (tui_data_window::display_registers_from):
5006 Mark invisible register sub windows.
5007 (tui_data_window::check_register_values): Ignore invisible
5008 register sub windows.
5010 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5012 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5013 n_spaces with a negative value.
5015 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5017 * tui/tui-regs.c (tui_data_window::display_registers_from):
5018 Add refresh_window call.
5020 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5022 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5024 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5026 * symmisc.c (std_in, std_out, std_err): Remove.
5027 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5029 2021-02-05 Tom de Vries <tdevries@suse.de>
5031 PR breakpoints/27330
5032 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5033 glibc object file has debug info.
5035 2021-02-05 Tom de Vries <tdevries@suse.de>
5038 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5040 2021-02-05 Tom de Vries <tdevries@suse.de>
5042 PR breakpoints/27313
5043 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5046 2021-02-05 Tom Tromey <tom@tromey.com>
5048 * compile/compile-c-support.c (get_compile_context)
5049 (c_get_compile_context, cplus_get_compile_context): Change return
5051 * language.c (language_defn::get_compile_instance): New method.
5052 * language.h (language_defn::get_compile_instance): Change return
5053 type. No longer inline.
5054 * c-lang.c (c_language::get_compile_instance): Change return type.
5055 (cplus_language::get_compile_instance): Change return type.
5056 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5058 * compile/compile.c (compile_to_object): Update.
5060 2021-02-05 Tom Tromey <tom@tromey.com>
5062 * parser-defs.h (write_exp_symbol_reference): Declare.
5063 * parse.c (write_exp_symbol_reference): New function.
5064 * p-exp.y (variable): Use write_exp_symbol_reference.
5065 * m2-exp.y (variable): Use write_exp_symbol_reference.
5066 * f-exp.y (variable): Use write_exp_symbol_reference.
5067 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5068 * c-exp.y (variable): Use write_exp_symbol_reference.
5070 2021-02-05 Tom de Vries <tdevries@suse.de>
5073 * valarith.c (complex_binop): Throw an error if complex type can't
5076 2021-02-05 Tom de Vries <tdevries@suse.de>
5079 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5082 2021-02-05 Tom de Vries <tdevries@suse.de>
5084 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5086 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5088 * configure.tgt (riscv*-*-*): Set gdb_sim.
5090 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5092 * target.c (target_is_non_stop_p): Return bool.
5093 * target.h (target_is_non_stop_p): Return bool.
5095 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5097 * record-full.c (record_full_async_inferior_event_handler):
5098 Don't clear async event handler.
5099 (record_full_base_target::wait): Clear async event handler at
5102 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5104 * record-btrace.c (record_btrace_handle_async_inferior_event):
5105 Don't clear async event handler.
5106 (record_btrace_target::wait): Clear async event handler at
5109 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5111 * remote.c (remote_target::wait): Clear async event handler at
5112 beginning, mark if needed at the end.
5113 (remote_async_inferior_event_handler): Don't set or clear async
5116 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5118 * async-event.h (async_event_handler_func): Add documentation.
5119 * async-event.c (check_async_event_handlers): Don't clear
5120 async_event_handler ready flag.
5121 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5123 * record-btrace.c (record_btrace_handle_async_inferior_event):
5125 * record-full.c (record_full_async_inferior_event_handler):
5127 * remote-notif.c (remote_async_get_pending_events_handler):
5129 * remote.c (remote_async_inferior_event_handler): Likewise.
5131 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5133 * infrun.c (handle_inferior_event): Move stop_soon variable to
5136 2021-02-03 Pedro Alves <pedro@palves.net>
5138 * infcmd.c (detach_command): Hold strong reference to target, and
5139 if all-stop on entry, restart threads on exit.
5140 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5141 (restart_stepped_thread): ... this new function. Also handle
5143 (restart_after_all_stop_detach): New function.
5144 * infrun.h (restart_after_all_stop_detach): Declare.
5146 2021-02-03 Pedro Alves <pedro@palves.net>
5148 * infrun.c (struct step_over_info): Initialize fields.
5149 (prepare_for_detach): Handle ongoing in-line step over.
5151 2021-02-03 Pedro Alves <pedro@palves.net>
5153 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5155 * remote.c (remote_target::remote_detach_1): ... and here ...
5156 * target.c (target_detach): ... instead of here.
5157 * target.h (target_ops::detach): Add comment.
5159 2021-02-03 Pedro Alves <pedro@palves.net>
5161 * infrun.c (struct wait_one_event): Move higher up.
5162 (prepare_for_detach): Abort in-progress displaced steps instead of
5163 letting them complete.
5164 (handle_one): If the inferior is detaching, don't add the thread
5165 back to the global step-over chain.
5166 (restart_threads): Don't restart threads if detaching.
5167 (handle_signal_stop): Remove inferior::detaching reference.
5169 2021-02-03 Pedro Alves <pedro@palves.net>
5171 * infrun.c (prepare_for_detach): Don't release scoped_restore
5174 2021-02-03 Pedro Alves <pedro@palves.net>
5176 * infrun.c (handle_one): New function, factored out from ...
5177 (stop_all_threads): ... here.
5179 2021-02-03 Pedro Alves <pedro@palves.net>
5181 * remote.c (remote_notif_stop_ack): Don't error out on
5182 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5183 (remote_target::discard_pending_stop_replies): Don't delete
5184 in-flight notification; instead, clear its contents.
5186 2021-02-03 Pedro Alves <pedro@palves.net>
5188 * remote.c (extended_remote_target::attach): Set target async in
5189 the target-non-stop path too.
5191 2021-02-03 Pedro Alves <pedro@palves.net>
5194 * infrun.c (handle_signal_stop): Move main context_switch call
5195 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5197 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5199 * NEWS (Changed commands): Add entry for the behavior change of
5200 the inferior command.
5201 * inferior.c (inferior_command): When no argument is given to the
5202 inferior command, display info about the currently selected
5205 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5207 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5209 (read_attribute_reprocess): Adjust.
5211 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5213 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5214 <gnu_ranges_base>: ... this...
5215 <rnglists_base>: ... and this.
5216 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5217 <gnu_ranges_base>: ... this...
5218 <rnglists_base>: ... and this.
5219 (read_cutu_die_from_dwo): Adjust
5220 (dwarf2_get_pc_bounds): Adjust
5221 (dwarf2_record_block_ranges): Adjust.
5222 (read_full_die_1): Adjust
5223 (partial_die_info::read): Adjust.
5224 (read_rnglist_index): Adjust.
5226 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5229 * dwarf2/read.c (read_loclists_rnglists_header): Add
5230 header_offset parameter and use it.
5231 (read_loclist_index): Read header of the current contribution,
5232 not the one at the beginning of the section.
5233 (read_rnglist_index): Likewise.
5235 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5238 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5239 requires_reprocessing flag.
5240 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5242 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5243 and DW_FORM_loclistx.
5244 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5245 instead of set_address for DW_FORM_loclistx and
5248 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5250 * dwarf2/read.c (read_loclist_index): Remove bound check for
5252 (read_rnglist_index): Likewise.
5254 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5256 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5259 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5261 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5263 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5265 * dwarf2/read.c (read_loclist_index): Change complaints into
5268 2021-02-02 Tom de Vries <tdevries@suse.de>
5271 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5274 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5276 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5277 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5278 here from linux-tdep.c and given a new name. Minor cleanups.
5279 (gcore_collect_regset_section_cb): Likewise.
5280 (gcore_collect_thread_registers): Likewise.
5281 (gcore_build_thread_register_notes): Likewise.
5282 (gcore_find_signalled_thread): Likewise.
5283 * gcore.h (gcore_build_thread_register_notes): Declare.
5284 (gcore_find_signalled_thread): Declare.
5285 * fbsd-tdep.c: Add 'gcore.h' include.
5286 (struct fbsd_collect_regset_section_cb_data): Delete.
5287 (fbsd_collect_regset_section_cb): Delete.
5288 (fbsd_collect_thread_registers): Delete.
5289 (struct fbsd_corefile_thread_data): Delete.
5290 (fbsd_corefile_thread): Delete.
5291 (fbsd_make_corefile_notes): Call
5292 gcore_build_thread_register_notes instead of the now deleted
5294 * linux-tdep.c: Add 'gcore.h' include.
5295 (struct linux_collect_regset_section_cb_data): Delete.
5296 (linux_collect_regset_section_cb): Delete.
5297 (linux_collect_thread_registers): Delete.
5298 (linux_corefile_thread): Call
5299 gcore_build_thread_register_notes.
5300 (find_signalled_thread): Delete.
5301 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5303 2021-01-29 Tom de Vries <tdevries@suse.de>
5305 PR breakpoints/26063
5306 * infrun.c (process_event_stop_test): Reset
5307 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5310 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5312 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5313 assert. Extend the header comment.
5315 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5317 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5318 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5319 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5320 (tui_locator_win_info_ptr): Delete declaration.
5321 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5322 (tui_disasm_window::set_contents): Fetch state from tui_location
5324 (tui_get_begin_asm_address): Likewise.
5325 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5327 (get_locator_window): Delete.
5328 (initialize_known_windows): Treat locator window just like all the
5330 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5331 (tui_source_window::set_contents): Fetch state from tui_location
5333 (tui_source_window::showing_source_p): Likewise.
5334 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5336 (tui_locator_win_info_ptr): Delete.
5337 (tui_locator_window::make_status_line): Fetch state from
5338 tui_location global.
5339 (tui_locator_window::rerender): Remove check of 'handle',
5340 reindent function body.
5341 (tui_locator_window::set_locator_fullname): Delete.
5342 (tui_locator_window::set_locator_info): Delete.
5343 (tui_update_locator_fullname): Delete.
5344 (tui_show_frame_info): Likewise.
5345 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5346 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5347 tui/tui-location.h and renamed to
5348 tui_location_tracker::set_location.
5349 (tui_locator_window::set_locator_fullname): Moved to
5350 tui/tui-location.h and renamed to
5351 tui_location_tracker::set_fullname.
5352 (tui_locator_window::full_name): Delete.
5353 (tui_locator_window::proc_name): Delete.
5354 (tui_locator_window::line_no): Delete.
5355 (tui_locator_window::addr): Delete.
5356 (tui_locator_window::gdbarch): Delete.
5357 (tui_update_locator_fullname): Delete declaration.
5358 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5360 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5361 (tui_display_main): Call function on tui_location directly.
5362 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5363 * tui/tui-location.c: New file.
5364 * tui/tui-location.h: New file.
5366 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5368 * gdbtypes.h (get_type_arch): Rename to...
5369 (struct type) <arch>: ... this, update all users.
5371 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5373 * gdbtypes.h (struct type) <arch>: Rename to...
5374 <arch_owner>: ... this, update all users.
5375 <objfile>: Rename to...
5376 <objfile_owner>: ... this, update all users.
5378 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5380 * gdbcmd.h (execute_command_to_string): Update comment.
5381 * top.c (execute_command_to_string): Update header comment.
5383 2021-01-28 Tom de Vries <tdevries@suse.de>
5385 PR breakpoints/27205
5386 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5387 (create_longjmp_master_breakpoint_names): New function, factored out
5389 (create_longjmp_master_breakpoint): ... here. Only try to install
5390 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5391 breakpoint in libc.so failed.
5393 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5396 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5397 unique_ptr is released when the wrapped pointer is kept for later
5400 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5402 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5403 BLR and BR instructions.
5404 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5405 (enum aarch64_masks): New.
5407 2021-01-26 Tom Tromey <tromey@adacore.com>
5409 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5410 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5411 (windows_init_thread_list, windows_nat::handle_load_dll)
5412 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5413 (windows_nat_target::resume)
5414 (windows_nat_target::get_windows_debug_event)
5415 (windows_nat_target::interrupt, windows_xfer_memory)
5416 (windows_nat_target::close): Update.
5417 * nat/windows-nat.c (DEBUG_EVENTS): Use
5418 debug_prefixed_printf_cond.
5419 (matching_pending_stop, fetch_pending_stop)
5420 (continue_last_debug_event): Update.
5422 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5424 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5425 elfcore_write_file_note.
5427 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5429 * arc-tdep.c (arc_add_reggroups): New function.
5430 (arc_gdbarch_init): Call arc_add_reggroups.
5432 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5434 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5436 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5437 Simon Marchi <simon.marchi@polymtl.ca>
5438 Tom de Vries <tdevries@suse.de>
5440 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5443 2021-01-25 Tom Tromey <tromey@adacore.com>
5445 * dwarf2/read.c (get_mpz): New function.
5446 (get_dwarf2_rational_constant): Use it.
5448 2021-01-25 Tom Tromey <tromey@adacore.com>
5450 * ada-lang.c (resolve_subexp): Handle array context.
5452 2021-01-23 Tom Tromey <tom@tromey.com>
5455 * compile/compile-loc2c.c (note_register): New function.
5456 (pushf_register_address, pushf_register): Use it.
5458 2021-01-23 Tom Tromey <tom@tromey.com>
5460 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5461 Change type of "registers_used".
5462 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5463 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5464 (locexpr_generate_c_location, loclist_generate_c_location): Change
5465 type of "registers_used".
5466 * compile/compile.h (compile_dwarf_expr_to_c)
5467 (compile_dwarf_bounds_to_c): Update.
5468 * compile/compile-loc2c.c (pushf_register_address)
5469 (pushf_register, do_compile_dwarf_expr_to_c)
5470 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5471 of "registers_used".
5472 * compile/compile-c.h (generate_c_for_variable_locations):
5474 * compile/compile-c-symbols.c (generate_vla_size)
5475 (generate_c_for_for_one_variable): Change type of
5477 (generate_c_for_variable_locations): Return std::vector.
5478 * compile/compile-c-support.c (generate_register_struct): Change
5479 type of "registers_used".
5482 2021-01-23 Tom Tromey <tom@tromey.com>
5484 * compile/compile-internal.h (class compile_instance)
5485 <set_arguments>: Change return type.
5486 * compile/compile.c (compile_to_object): Remove call to reset.
5487 (compile_instance::set_arguments): Change return type.
5489 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5491 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5492 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5494 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5496 * Makefile.in (SELFTESTS_SRCS): Add
5497 unittests/gdb_tilde_expand-selftests.c.
5498 * unittests/gdb_tilde_expand-selftests.c: New file.
5500 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5503 * NEWS: Mention new command.
5504 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5505 (version_style): Define.
5506 (cli_style_option::cli_style_option): Add intensity parameter, and
5508 (_initialize_cli_style): Register version style set/show commands.
5509 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5510 (version_style): Declare.
5511 * top.c (print_gdb_version): Use version_stype, and styled_string
5512 to print the GDB version string.
5514 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5516 * utils.c (emit_style_escape): Only emit an escape sequence if the
5517 requested style is different than the current applied style.
5518 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5519 current applied_style.
5520 (fputs_styled): Remove is_default check.
5521 (fputs_styled_unfiltered): Likewise.
5522 (vfprintf_styled_no_gdbfmt): Likewise.
5524 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5526 * remote.h (remote_debug_printf): New.
5527 (remote_debug_printf_nofunc): New.
5528 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5529 * remote.c: Use above macros throughout file.
5531 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5533 * remote.h (remote_debug): Change to bool.
5534 * remote.c (remote_debug): Change to bool.
5535 (_initialize_remote): Adjust.
5537 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5539 * target.h (remote_debug): Move to...
5540 * remote.h (remote_debug): ... here.
5541 * top.c (remote_debug): Move to...
5542 * remote.c (remote_debug): ... here.
5543 * remote-sim.c: Include remote.h.
5545 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5547 * cli/cli-cmds.c (show_remote_debug): Remove.
5548 (show_remote_timeout): Remove.
5549 (_initialize_cli_cmds): Don't register commands.
5550 * remote.c (show_remote_debug): Move here.
5551 (show_remote_timeout): Move here.
5552 (_initialize_remote): Register commands.
5554 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5556 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5557 type::objfile method instead.
5559 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5561 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5562 use the type::is_objfile_owned method.
5564 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5566 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5567 (TYPE_OWNER): Remove.
5568 (TYPE_OBJFILE): Adjust.
5569 (struct main_type) <flag_objfile_owned>: Rename to...
5570 <m_flag_objfile_owned>: ... this.
5571 <owner>: Rename to...
5572 <m_owner>: ... this.
5573 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5575 (TYPE_ALLOC): Adjust.
5576 * gdbtypes.c (alloc_type): Adjust.
5577 (alloc_type_arch): Adjust.
5578 (alloc_type_copy): Adjust.
5579 (get_type_arch): Adjust.
5580 (smash_type): Adjust.
5581 (lookup_array_range_type): Adjust.
5582 (recursive_dump_type): Adjust.
5583 (copy_type_recursive): Adjust.
5584 * compile/compile-c-types.c (convert_func): Adjust.
5585 (convert_type_basic): Adjust.
5586 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5589 (language_arch_info::type_and_symbol::alloc_type_symbol):
5592 2021-01-21 Luis Machado <luis.machado@linaro.org>
5594 * coffread.c (enter_linenos): Passing string to complaint.
5595 * valops.c (value_assign): Make array view.
5597 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5599 * auto-load.h (debug_auto_load): Move here.
5600 (auto_load_debug_printf): New.
5601 * auto-load.c: Use auto_load_debug_printf.
5602 (debug_auto_load): Move to header.
5603 * linux-thread-db.c (try_thread_db_load): Use
5604 auto_load_debug_printf.
5605 * main.c (captured_main_1): Likewise.
5607 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5609 * f-valprint.c (f77_array_offset_tbl): Remove.
5611 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5613 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5615 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5617 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5620 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5623 * python/py-breakpoint.c (bppy_get_location): Handle
5624 bp_hardware_breakpoint.
5625 (bppy_init): Likewise.
5626 (gdbpy_breakpoint_created): Likewise.
5628 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5630 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5632 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5634 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5635 (_initialize_gdb_bfd): Adjust.
5637 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5640 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5642 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5644 * dwarf2/read.c (follow_die_offset): Add logging.
5645 (dwarf2_per_objfile::age_comp_units): Add logging.
5647 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5649 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5650 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5651 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5652 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5653 * arm-tdep.c (struct frame_unwind): Make static.
5654 * auto-load.c (auto_load_safe_path_vec): Make static.
5655 * csky-tdep.c (csky_stub_unwind): Make static.
5656 * gdbarch.c (gdbarch_data_registry): Make static.
5657 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5658 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5659 * i386-tdep.c (i386_frame_setup_skip_insns,
5660 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5662 * infrun.c (observer_mode): Make static.
5663 * linux-nat.c (sigchld_action): Make static.
5664 * linux-thread-db.c (thread_db_list): Make static.
5665 * maint-test-options.c (maintenance_test_options_list):
5666 * mep-tdep.c (mep_csr_registers): Make static.
5667 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5668 (stats): Make static.
5669 * nat/linux-osdata.c (struct osdata_type): Make static.
5670 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5671 * progspace.c (last_program_space_num): Make static.
5672 * python/py-param.c (struct parm_constant): Remove struct type
5674 (parm_constants): Make static.
5675 * python/py-record-btrace.c (btpy_list_methods): Make static.
5676 * python/py-record.c (recpy_gap_type): Make static.
5677 * record.c (record_goto_cmdlist): Make static.
5678 * regcache.c (regcache_descr_handle): Make static.
5679 * registry.h (DEFINE_REGISTRY): Make definition static.
5680 * symmisc.c (std_in, std_out, std_err): Make static.
5681 * top.c (previous_saved_command_line): Make static.
5682 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5684 * unittests/command-def-selftests.c (nr_duplicates,
5685 nr_invalid_prefixcmd, lists): Make static.
5686 * unittests/observable-selftests.c (test_notification): Make
5688 * unittests/optional/assignment/1.cc (counter): Make static.
5689 * unittests/optional/assignment/2.cc (counter): Make static.
5690 * unittests/optional/assignment/3.cc (counter): Make static.
5691 * unittests/optional/assignment/4.cc (counter): Make static.
5692 * unittests/optional/assignment/5.cc (counter): Make static.
5693 * unittests/optional/assignment/6.cc (counter): Make static.
5695 2021-01-20 Joel Sherrill <joel@rtems.org>
5698 * remote.c (struct remote_thread_info) <resume_state>: Rename
5700 <get_resume_state>: ... this.
5701 (remote_target::resume): Adjust.
5702 (remote_target::commit_resume): Adjust.
5703 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5705 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5706 Tom Tromey <tom@tromey.com>
5708 * stap-probe.c (stap_parse_single_operand): Handle '!'
5710 (stap_parse_argument_conditionally): Likewise.
5711 Skip spaces after processing open-parenthesis sub-expression.
5712 (stap_parse_argument_1): Skip spaces after call to
5713 stap_parse_argument_conditionally.
5714 Handle case when right-side expression is a parenthesized
5716 Skip spaces after call to stap_parse_argument_1.
5718 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5720 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5722 2021-01-19 Luis Machado <luis.machado@linaro.org>
5724 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5725 memory and save data.
5726 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5727 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5728 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5729 (trad_frame_value_bytes_p): Remove.
5730 (trad_frame_reset_saved_regs): Adjust documentation.
5731 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5732 constructor and reset the state of the registers.
5733 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5734 (trad_frame_value_bytes_p, trad_frame_set_value)
5735 (trad_frame_set_realreg, trad_frame_set_addr)
5736 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5737 (trad_frame_set_reg_realreg): Update to call member function.
5738 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5739 (trad_frame_get_prev_register): Likewise.
5741 * aarch64-tdep.c (aarch64_analyze_prologue)
5742 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5743 (aarch64_prologue_prev_register): Update to use member functions.
5744 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5745 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5746 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5747 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5748 (arm_make_epilogue_frame_cache): Likewise.
5749 * avr-tdep.c (avr_frame_unwind_cache)
5750 (avr_frame_prev_register): Likewise.
5751 * cris-tdep.c (cris_scan_prologue): Likewise.
5752 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5753 * frv-tdep.c (frv_analyze_prologue): Likewise.
5754 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5755 * lm32-tdep.c (lm32_frame_cache): Likewise.
5756 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5757 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5758 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5759 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5760 (reset_saved_regs): Adjust to set realreg.
5761 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5762 call member functions.
5763 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5764 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5765 (s390_backchain_frame_unwind_cache): Likewise.
5766 * score-tdep.c (score7_analyze_prologue)
5767 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5768 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5769 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5770 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5771 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5772 * tilegx-tdep.c (tilegx_analyze_prologue)
5773 (tilegx_frame_cache): Likewise.
5774 * v850-tdep.c (v850_frame_cache): Likewise.
5775 * vax-tdep.c (vax_frame_cache): Likewise.
5777 2021-01-19 Luis Machado <luis.machado@linaro.org>
5779 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5781 (put_frame_register_bytes): Likewise.
5782 Adjust documentation.
5783 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5784 (safe_frame_unwind_memory): Likewise.
5785 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5786 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5788 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5789 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5790 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5791 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5792 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5793 * dwarf2/loc.c (rw_pieced_value): Likewise.
5794 * hppa-tdep.c (hppa_frame_cache): Likewise.
5795 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5796 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5797 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5798 (i386_linux_rt_sigtramp_start): Likewise.
5799 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5800 * i386-tdep.c (i386_register_to_value): Likewise.
5801 * i387-tdep.c (i387_register_to_value): Likewise.
5802 * ia64-tdep.c (ia64_register_to_value): Likewise.
5803 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5804 (m32r_linux_rt_sigtramp_start): Likewise.
5805 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5806 * m68k-tdep.c (m68k_register_to_value): Likewise.
5807 * mips-tdep.c (mips_register_to_value)
5808 (mips_value_to_register): Likewise.
5809 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5810 (ppcfbsd_sigtramp_frame_cache): Likewise.
5811 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5812 (ppcobsd_sigtramp_frame_cache): Likewise.
5813 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5814 (rs6000_register_to_value): Likewise.
5815 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5816 * tramp-frame.c (tramp_frame_start): Likewise.
5817 * valops.c (value_assign): Likewise.
5819 2021-01-19 Luis Machado <luis.machado@linaro.org>
5821 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5823 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5824 instead of buffer and size.
5825 (trad_frame_set_reg_value_bytes): Likewise.
5826 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5827 (trad_frame_set_value_bytes): Likewise.
5829 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5831 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5833 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5835 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5836 (riscv_fbsd_gregset): Use riscv_supply_regset.
5837 (riscv_fbsd_fpregset): Likewise.
5838 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5839 (riscv_linux_fregset): Likewise.
5840 * riscv-tdep.c (riscv_supply_regset): Define new function.
5841 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5843 2021-01-18 Tom de Vries <tdevries@suse.de>
5846 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5848 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5851 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5853 * remote.c (class remote_target) <remote_hostio_send_command,
5854 remote_hostio_parse_result>: Constify parameter.
5855 (remote_hostio_parse_result): Likewise.
5856 (remote_target::remote_hostio_send_command): Adjust.
5857 (remote_target::remote_hostio_pread_vFile): Adjust.
5858 (remote_target::fileio_readlink): Adjust.
5859 (remote_target::fileio_fstat): Adjust.
5861 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5863 * remote.c (remote_target::start_remote): Move wait_status to
5866 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5868 * remote.c (class remote_target):
5869 <add_current_inferior_and_thread>: Constify parameter.
5870 (stop_reply_extract_thread): Likewise.
5871 (remote_target::get_current_thread): Likewise.
5872 (remote_target::add_current_inferior_and_thread): Likewise.
5874 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5876 * remote.c (class remote_target)
5877 <remote_unpack_thread_info_response,
5878 parse_threadlist_response>: Constify parameter and/or return
5879 value and or local variable.
5880 (stub_unpack_int): Likewise.
5881 (unpack_nibble): Likewise.
5882 (unpack_byte): Likewise.
5883 (unpack_int): Likewise.
5884 (unpack_string): Likewise.
5885 (unpack_threadid): Likewise.
5886 (remote_target::remote_unpack_thread_info_response): Likewise.
5887 (remote_target::parse_threadlist_response): Likewise.
5889 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5891 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5893 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5895 * MAINTAINERS (Write After Approval): Add myself.
5897 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5899 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5900 because is_trivially_default_constructible was first implemented with
5903 2021-01-14 Tom de Vries <tdevries@suse.de>
5905 PR breakpoints/27151
5906 * objfiles.h (in_plt_section): Handle .plt.sec.
5908 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5912 (remote_target::select_thread_for_ambiguous_stop_reply): New
5914 (remote_target::process_stop_reply): Call
5915 select_thread_for_ambiguous_stop_reply.
5917 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5919 * record-btrace.c (class record_btrace_target): Remove.
5920 (record_btrace_target::commit_resume): Remove.
5921 * record-full.c (class record_full_target): Remove.
5922 (record_full_target::commit_resume): Remove.
5924 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5926 * remote.c (enum class resume_state): New.
5927 (struct resumed_pending_vcont_info): New.
5928 (struct remote_thread_info) <resume_state, set_not_resumed,
5929 set_resumed_pending_vcont, resumed_pending_vcont_info,
5930 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5932 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5933 (remote_target::remote_add_thread): Adjust.
5934 (remote_target::process_initial_stop_replies): Adjust.
5935 (remote_target::resume): Adjust.
5936 (remote_target::commit_resume): Rely on state in
5937 remote_thread_info and not on tp->executing.
5938 (remote_target::process_stop_reply): Adjust.
5940 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5942 * arc-tdep.h (arc_debug_printf): New.
5943 * arc-tdep.c: Use arc_debug_printf.
5944 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5945 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5946 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5948 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5950 * arc-tdep.h (arc_debug): Change type to bool.
5951 * arc-tdep.c (arc_debug): Change type to bool.
5952 (arc_analyze_prologue): Adjust.
5953 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5954 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5956 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5958 * auto-load.c (auto_load_objfile_script_1): Use bool.
5959 (execute_script_contents): Use bool.
5961 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5963 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5965 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5967 * extension-priv.h (struct extension_language_script_ops)
5968 <auto_load_enabled>: Return bool.
5969 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5971 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5973 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5975 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5976 move comment to header.
5977 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5979 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5980 move comment to header.
5982 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5984 * auto-load.h (file_is_auto_load_safe): Change return type to
5985 bool, move comment here.
5986 * auto-load.c (file_is_auto_load_safe): Change return type and
5987 advice_printed to bool. Move comment to header.
5989 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5991 * jit.c (jit_debug_printf): New, use throughout file.
5993 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5995 * infrun.c (normal_stop): Fix indentation.
5997 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5999 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6001 * symfile.h: ... here.
6002 * symfile.c: Update doc.
6004 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6006 * target.h (baud_rate, serial_parity): Move declarations...
6007 * serial.h: ... here.
6008 * main.c: Include serial.h.
6009 * serial.c (baud_rate, serial_parity): Update doc.
6011 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6013 * top.c (pre_init_ui_hook): Remove.
6015 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6017 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6018 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6019 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6020 * features/aarch64-fpu.xml: Add bfloat16 type.
6022 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6024 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6026 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6028 * f-exp.y (dot_ops): Rename to...
6029 (fortran_operators): ...this. Add a header comment. Add symbol
6031 (yylex): Update to use fortran_operators not dot_ops. Remove
6032 special handling for '**', this is now included in
6035 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6037 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6038 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6039 * aarch64-tdep.c: Use aarch64_debug_printf.
6041 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6043 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6046 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6048 * jit.c (jit_debug): Change type to bool.
6049 (_initialize_jit): Adjust.
6051 2021-01-09 Tom Tromey <tom@tromey.com>
6054 * compile/compile.c (compile_to_object): Avoid crash when
6055 osabi_triplet_regexp returns NULL.
6057 2021-01-09 Tom Tromey <tom@tromey.com>
6059 * tracepoint.h (class collection_list) <append_exp>: Take a
6061 * tracepoint.c (collection_list::append_exp): Take a std::string.
6062 (encode_actions_1): Update.
6064 2021-01-08 Tom Tromey <tromey@adacore.com>
6066 * parse.c (parse_expression): Add void_context_p parameter. Use
6067 parse_exp_in_context.
6068 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6070 (print_command, call_command): Update.
6071 * expression.h (parse_expression): Add void_context_p parameter.
6073 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6075 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6076 for internalvar components that have a dynamic location.
6078 2021-01-08 Tom de Vries <tdevries@suse.de>
6081 * breakpoint.c (create_exception_master_breakpoint_probe)
6082 (create_exception_master_breakpoint_hook): Factor out
6084 (create_exception_master_breakpoint): ... here. Only try to install
6085 the master exception breakpoint in objfile.debug using the
6086 _Unwind_DebugHook method, if the install using probes in objfile
6089 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6091 * f-lang.c (fortran_value_subarray): Call value_from_component.
6093 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6095 * remote-sim.c: Include memory-map.h.
6096 (gdbsim_target): Define memory_map override.
6097 (gdbsim_target::memory_map): Define.
6099 2021-01-07 Tom Tromey <tromey@adacore.com>
6101 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6103 2021-01-07 Tom Tromey <tromey@adacore.com>
6105 * ada-lang.c (add_component_interval): Start loop using vector's
6108 2021-01-06 Tom Tromey <tromey@adacore.com>
6110 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6112 * valarith.c (fixed_point_binop): Handle multiplication
6113 and division specially.
6114 * valops.c (value_to_gdb_mpq): New function.
6115 (value_cast_to_fixed_point): Use it.
6117 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6119 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6120 Call wnoutrefresh instead of tui_win_info::refresh_window.
6122 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6124 * tui/tui-source.c (tui_source_window::show_line_number):
6125 Redraw second space after line number.
6127 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6130 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6131 Fix source pad size in prefresh.
6132 (tui_source_window_base::show_source_content): Grow source pad
6135 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6137 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6138 (bfin_frame_align): Use align_down.
6140 2021-01-04 Tom de Vries <tdevries@suse.de>
6142 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6143 terminators that do not terminate anything.
6145 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6147 * debug.c (debug_print_depth): New.
6148 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6149 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6150 * infrun.c (start_step_over): Use
6151 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6152 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6153 INFRUN_SCOPED_DEBUG_START_END.
6154 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6156 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6158 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6160 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6162 * utils.c (vfprintf_unfiltered): Print timestamp only when
6163 previous debug output ended with a newline.
6165 2021-01-04 Luis Machado <luis.machado@linaro.org>
6167 Update all users of trad_frame_saved_reg to use the new member
6170 Remote all struct keywords from declarations of trad_frame_saved_reg
6171 types, except on forward declarations.
6173 * aarch64-tdep.c: Update.
6174 * alpha-mdebug-tdep.c: Update.
6175 * alpha-tdep.c: Update.
6176 * arc-tdep.c: Update.
6177 * arm-tdep.c: Update.
6178 * avr-tdep.c: Update.
6179 * cris-tdep.c: Update.
6180 * csky-tdep.c: Update.
6181 * frv-tdep.c: Update.
6182 * hppa-linux-tdep.c: Update.
6183 * hppa-tdep.c: Update.
6184 * hppa-tdep.h: Update.
6185 * lm32-tdep.c: Update.
6186 * m32r-linux-tdep.c: Update.
6187 * m32r-tdep.c: Update.
6188 * m68hc11-tdep.c: Update.
6189 * mips-tdep.c: Update.
6190 * moxie-tdep.c: Update.
6191 * riscv-tdep.c: Update.
6192 * rs6000-tdep.c: Update.
6193 * s390-linux-tdep.c: Update.
6194 * s390-tdep.c: Update.
6195 * score-tdep.c: Update.
6196 * sparc-netbsd-tdep.c: Update.
6197 * sparc-sol2-tdep.c: Update.
6198 * sparc64-fbsd-tdep.c: Update.
6199 * sparc64-netbsd-tdep.c: Update.
6200 * sparc64-obsd-tdep.c: Update.
6201 * sparc64-sol2-tdep.c: Update.
6202 * tilegx-tdep.c: Update.
6203 * v850-tdep.c: Update.
6204 * vax-tdep.c: Update.
6206 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6207 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6209 * trad-frame.c: Update.
6210 Remove TF_REG_* enum.
6211 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6212 a trivially-constructible struct.
6213 (trad_frame_reset_saved_regs): Adjust to use member function.
6214 (trad_frame_value_p): Likewise.
6215 (trad_frame_addr_p): Likewise.
6216 (trad_frame_realreg_p): Likewise.
6217 (trad_frame_value_bytes_p): Likewise.
6218 (trad_frame_set_value): Likewise.
6219 (trad_frame_set_realreg): Likewise.
6220 (trad_frame_set_addr): Likewise.
6221 (trad_frame_set_unknown): Likewise.
6222 (trad_frame_set_value_bytes): Likewise.
6223 (trad_frame_get_prev_register): Likewise.
6224 * trad-frame.h: Update.
6225 (trad_frame_saved_reg_kind): New enum.
6226 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6227 <m_kind, m_reg>: New member fields.
6228 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6229 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6230 <is_addr, is_unknown, is_value_bytes>: New member functions.
6232 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6234 * target-float.c: Fix typos.
6236 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6238 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6240 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6242 * gdbarch.sh: Update copyright year range.
6244 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6246 Update copyright year range in copyright header of all GDB files.
6248 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6250 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6251 to the list of directories to update.
6253 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6255 * top.c (print_gdb_version): Update copyright year.
6257 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6259 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6261 For older changes see ChangeLog-2020.
6267 version-control: never