1 2021-05-17 Tom Tromey <tom@tromey.com>
3 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
4 (sort_tu_by_abbrev_offset): Remove.
5 (build_type_psymtabs): Update.
7 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
9 * py-project.toml: New.
10 * gdb-gdb.py.in: Re-format.
12 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
14 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
16 * command.h (cmd_func_p): Remove.
17 * cli/cli-decode.c (cmd_func_p): Remove.
19 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
21 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
23 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
25 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
27 <alias_target>: ... this.
28 (add_alias_cmd): Rename old to target.
29 (add_info_alias): Rename old_name to target_name.
30 (add_com_alias): Likewise.
32 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
34 * Rename "prefixlist" parameters to "subcommands" throughout.
35 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
36 <subcommands>: ... this.
37 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
38 (lookup_cmd_with_subcommands): ... this.
40 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
42 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
44 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
46 * cli/cli-decode.h (prefixname): Make const, move implementation
48 * cli/cli-decode.c (cmd_list_element::prefixname): New.
50 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
52 * ctfread.c (new_symbol): Set function address.
53 (read_func_kind_type): Remove incorrect type name setting.
54 Don't copy name returned from ctf_type_ame_raw throughout file.
56 2021-05-14 Tom Tromey <tom@tromey.com>
58 * rust-lang.c (rust_language::val_print_struct)
59 (rust_language::print_enum): Use common_val_print, not
62 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
64 * python/py-inferior.c (infpy_get_connection_num): New function.
65 (inferior_object_getset): Add a new element for 'connection_num'.
66 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
68 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
70 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
71 argument type, update and re-wrap, header comment.
72 (remote_target::commit_resumed): Convert any_process_wildcard and
73 may_global_wildcard_vcont from int to bool.
75 2021-05-14 Kent Cheung <kent.cheung@arm.com>
77 * cp-valprint.c (cp_print_value): Replaced duplicate code.
78 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
79 just before printing child values.
80 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
81 printing string representation.
82 * python/py-prettyprint.c (print_children): Check max_depth just
83 before printing child values.
84 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
85 printing string representation.
87 2021-05-14 Mike Frysinger <vapier@gentoo.org>
89 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
90 sim/callback.h & sim/sim.h.
92 2021-05-13 Mike Frysinger <vapier@gentoo.org>
94 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
97 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
99 * inf-child.h (inf_child_target) <follow_exec>: New.
100 * inf-child.c (inf_child_target::follow_exec): New.
102 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
104 * target.h (struct target_ops) <follow_exec>: Add ptid_t
106 (target_follow_exec): Likewise.
107 * target.c (target_follow_exec): Add ptid_t parameter.
108 * infrun.c (follow_exec): Adjust call to target_follow_exec,
109 don't push target nor create thread.
110 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
111 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
112 (thread_db_target::follow_exec): New.
113 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
114 (remote_target::follow_exec): Call
115 process_stratum_target::follow_exec.
116 * target-delegates.c: Re-generate.
118 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
120 * infrun.c (follow_exec): Call target_follow_fork when
121 follow-exec-mode is same.
122 * target.h (target_follow_fork): Improve doc.
124 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
126 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
128 * cli/cli-setshow.c (do_show_command): Adjust.
130 2021-05-13 Luis Machado <luis.machado@linaro.org>
132 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
133 include the last address in the range.
135 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
137 * python/python-internal.h (gdbpy_parse_command_name): Return
138 gdb::unique_xmalloc_ptr.
139 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
140 (cmdpy_init): Adjust.
141 * python/py-param.c (parmpy_init): Adjust.
142 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
145 2021-05-12 George Barrett <bob@bob131.so>
147 * NEWS (Guile API): Note the addition of the new procedure.
148 * guile/scm-value.c (gdbscm_value_const_value): Add
149 implementation of value-const-value procedure.
150 (value_functions): Add value-const-value procedure.
152 2021-05-12 George Barrett <bob@bob131.so>
154 * NEWS (Guile API): Note the addition of new procedures.
155 * guile/scm-value.c (gdbscm_reference_value): Add helper function
156 for reference value creation.
157 (gdbscm_value_reference_value): Add implementation of
158 value-reference-value procedure.
159 (gdbscm_value_rvalue_reference_value): Add implementation of
160 value-rvalue-reference-value procedure.
161 (value_functions): Add value-reference-value procedure. Add
162 value-rvalue-reference-value procedure.
164 2021-05-12 George Barrett <bob@bob131.so>
166 * guile/scm-type.c (type_integer_constants): Add binding for
167 TYPE_CODE_RVALUE_REF.
168 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
169 dereferencing of rvalue references.
170 * NEWS (Guile API): Note improvements in rvalue reference support.
172 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
174 * btrace.c (handle_pt_insn_events): Ignore status update enable
177 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
179 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
182 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
184 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
186 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
189 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
192 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
194 * nat/linux-waitpid.c (status_to_str): Show signal name.
196 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
198 * python/py-breakpoint.c (pybp_debug): New static global.
199 (show_pybp_debug): New function.
200 (pybp_debug_printf): Define.
201 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
202 (gdbpy_breakpoint_created): Add some debugging.
203 (gdbpy_breakpoint_deleted): Likewise.
204 (gdbpy_breakpoint_modified): Likewise.
205 (_initialize_py_breakpoint): New function.
207 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
209 * python/py-unwind.c (pyuw_debug): Convert to bool.
210 (show_pyuw_debug): New function.
211 (pyuw_debug_printf): Define.
212 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
213 (pyuw_this_id): Convert to new debug print macros.
214 (pyuw_prev_register): Likewise.
215 (pyuw_sniffer): Likewise.
216 (pyuw_dealloc_cache): Likewise.
217 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
218 show function when registering.
220 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
222 * dummy-frame.c (fprint_dummy_frames): Convert use of
223 fprint_frame_id to use frame_id::to_string.
224 * frame.c (fprint_field): Delete.
225 (fprint_frame_id): Moved to...
226 (frame_id::to_string): ...this, rewritten to return a string.
227 (fprint_frame): Convert use of fprint_frame_id to use
229 (compute_frame_id): Likewise.
230 (frame_id_p): Likewise.
231 (frame_id_eq): Likewise.
232 (frame_id_inner): Likewise.
233 * frame.h (struct frame_id) <to_string>: New member function.
234 (fprint_frame_id): Delete declaration.
235 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
236 fprint_frame_id to use frame_id::to_string.
237 * python/py-frame.c (frame_object_to_frame_info): Likewise.
238 * python/py-unwind.c (unwind_infopy_str): Likewise.
239 (pyuw_this_id): Likewise.
241 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
243 * nat/linux-waitpid.c (status_to_str): Return std::string.
244 * nat/linux-waitpid.h (status_to_str): Likewise.
245 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
246 (linux_nat_target::attach): Adjust.
247 (linux_handle_extended_wait): Adjust.
249 (stop_wait_callback): Adjust.
250 (linux_nat_filter_event): Adjust.
251 (linux_nat_wait_1): Adjust.
252 * nat/linux-waitpid.c (status_to_str): Adjust.
253 * nat/linux-waitpid.h (status_to_str): Adjust.
255 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
257 * infrun.h (infrun_debug_printf): Add missing space.
259 2021-05-08 Pedro Alves <pedro@palves.net>
261 * linux-nat.c (linux_nat_target::supports_disable_randomization):
262 Remove references to HAVE_PERSONALITY.
263 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
264 (maybe_disable_address_space_randomization)
265 (~maybe_disable_address_space_randomizatio): Remove references to
267 * config.in, configure: Regenerate.
269 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
271 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
273 (source_script_with_search): Perform tilde expansion.
275 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
277 * target-descriptions.c (struct target_desc_info) <filename>:
279 (copy_inferior_target_desc_info): Adjust.
280 (target_desc_info_free): Adjust.
281 (target_find_description): Adjust.
282 (set_tdesc_filename_cmd): Adjust.
283 (show_tdesc_filename_cmd): Adjust.
284 (unset_tdesc_filename_cmd): Adjust.
285 (maint_print_c_tdesc_cmd): Adjust.
287 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
289 * target-descriptions.c (struct target_desc_info): Initialize
291 (get_tdesc_info): Use new.
292 (target_desc_info_free): Use delete.
294 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
296 * target-descriptions.c (struct target_desc_info) <fetched>:
298 (target_find_description): Adjust.
299 (target_clear_description): Adjust.
301 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
303 * target-descriptions.c (struct target_desc_info) <tdesc>:
305 (target_desc_fetched): Remove.
306 (current_target_desc): Remove.
307 (target_description_filename): Remove.
308 (target_find_description): Adjust.
309 (target_clear_description): Adjust.
310 (target_current_description): Adjust.
311 (set_tdesc_filename_cmd): Adjust.
312 (show_tdesc_filename_cmd): Adjust.
313 (unset_tdesc_filename_cmd): Adjust.
314 (maint_print_c_tdesc_cmd): Adjust.
315 (maint_print_xml_tdesc_cmd): Adjust.
317 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
319 * infcmd.c (notice_new_inferior): Change parameter type.
320 * inferior.h (notice_new_inferior): Change parameter type.
321 * remote.c (remote_notice_new_inferior): Change parameter type to
322 bool. Also update type of local variable to bool.
323 (remote_target::update_thread_list): Change type of local variable
325 (remote_target::process_stop_reply): Pass bool instead of int to
326 remote_notice_new_inferior.
328 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
330 * target.c (target_stack::unpush): Call target_ops::find_beneath
331 to get the target beneath `t`.
333 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
335 * target.c (target_close): Check in all inferiors that the
336 target is not pushed.
338 2021-05-07 Aaron Merey <amerey@redhat.com>
340 * debuginfod-support.c (debuginfod_init): Remove.
341 (get_debuginfod_client): New function.
343 2021-05-07 Tom Tromey <tom@tromey.com>
345 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
346 * utils.c (streq_hash): Remove.
347 * utils.h (streq_hash): Don't declare.
348 * completer.c (completion_tracker::discard_completions): Update
350 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
352 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
354 * Re-format all Python files using black.
356 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
358 * guile/guile-internal.h (gdbscm_safe_source_script): Change
359 function return type.
360 * guile/guile.c (gdbscm_source_script): Update to handle change in
361 gdbscm_safe_source_script.
362 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
363 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
366 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
368 * inferior.h (class inferior) <args>: Change type to
370 * inferior.c (inferior::~inferior): Don't free args.
371 * infcmd.c (get_inferior_args): Adjust.
372 (set_inferior_args): Adjust.
374 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
376 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
377 breakpoint locations when the breakpoint actually has a location.
379 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
381 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
382 * mi/mi-cmds.c: Change the binding of "-break-condition" to
383 mi_cmd_break_condition.
384 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
385 * breakpoint.h (set_breakpoint_condition): Declare a new
387 * breakpoint.c (set_breakpoint_condition): New overloaded function
388 extracted out from ...
389 (condition_command): ... this.
390 * NEWS: Mention the change.
392 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
394 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
395 '--force-condition' flag to force the condition in the
396 '-break-insert' and '-dprintf-insert' commands.
397 * NEWS: Mention the change.
399 2021-05-04 Tom de Vries <tdevries@suse.de>
402 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
405 2021-04-30 Tom Tromey <tom@tromey.com>
407 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
408 (add_signatured_type_cu_to_table): Remove.
409 (create_debug_type_hash_table): Assume dwo_file is non-null.
410 (create_debug_types_hash_table): Update comment.
411 (create_all_type_units): Remove.
412 (sort_tu_by_abbrev_offset): Update comment.
413 (build_type_psymtabs): Rename from build_type_psymtabs_1.
414 (build_type_psymtabs): Remove.
415 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
417 (read_comp_units_from_section): Add types_htab, section_kind
419 (create_all_comp_units): Read type units.
421 2021-04-30 Tom Tromey <tom@tromey.com>
423 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
424 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
425 <get_cu>: Now inline.
426 <all_type_units>: Remove.
427 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
428 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
429 (dwarf2_per_bfd::get_tu): Remove.
430 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
431 (create_signatured_type_table_from_index)
432 (create_signatured_type_table_from_debug_names)
433 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
434 (dwarf2_base_index_functions::expand_all_symtabs)
435 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
436 (dwarf2_base_index_functions::map_symbol_filenames)
437 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
438 (add_signatured_type_cu_to_table, create_all_type_units)
439 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
440 (create_all_comp_units): Update.
441 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
442 (write_debug_names): Update.
444 2021-04-30 Tom Tromey <tom@tromey.com>
446 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
447 allocate_signatured_type>: Change return type.
448 <all_comp_units, all_type_units>: Hold unique pointers.
449 (struct dwarf2_per_cu_data): Add constructor and initializers.
450 (struct signatured_type): Derive from dwarf2_per_cu_data.
451 * dwarf2/read.c (type_unit_group): Derive from
453 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
454 (dwarf2_per_bfd::get_tu)
455 (dwarf2_per_bfd::allocate_signatured_type)
456 (dwarf2_per_bfd::allocate_signatured_type)
457 (create_cu_from_index_list, create_cus_from_index_list)
458 (create_signatured_type_table_from_index)
459 (create_signatured_type_table_from_debug_names)
460 (create_addrmap_from_aranges)
461 (dwarf2_base_index_functions::find_last_source_symtab)
462 (dw_expand_symtabs_matching_file_matcher)
463 (dwarf2_gdb_index::expand_symtabs_matching)
464 (dwarf2_base_index_functions::map_symbol_filenames)
465 (create_cus_from_debug_names_list)
466 (dw2_debug_names_iterator::next)
467 (dwarf2_debug_names_index::expand_symtabs_matching)
468 (create_debug_type_hash_table, add_type_unit)
469 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
471 (allocate_type_unit_groups_table): Use delete.
472 (create_type_unit_group): Change return type. Use new.
473 (get_type_unit_group, build_type_psymtabs_1)
474 (build_type_psymtab_dependencies)
475 (process_skeletonless_type_unit, set_partial_user)
476 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
477 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
478 (read_signatured_type): Update.
479 (dwarf2_find_containing_comp_unit): Change type of
482 (dwarf2_per_bfd::allocate_per_cu)
483 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
485 (add_signatured_type_cu_to_table): Update.
486 * dwarf2/index-write.c (write_one_signatured_type)
487 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
488 (write_debug_names): Update.
490 2021-04-30 Tom Tromey <tromey@adacore.com>
492 * nat/windows-nat.h (get_image_name): Don't declare.
493 * nat/windows-nat.c (get_image_name): Now static.
495 2021-04-30 Tom Tromey <tromey@adacore.com>
497 * windows-nat.c (windows_nat::handle_load_dll): Update.
498 (windows_nat_target::get_windows_debug_event): Call
500 (windows_add_all_dlls, windows_add_dll): Move to
502 * nat/windows-nat.h (handle_load_dll): Change parameters.
503 (dll_loaded_event, windows_add_all_dlls): Declare.
504 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
506 (dll_loaded_event): New function.
508 2021-04-30 Tom Tromey <tromey@adacore.com>
510 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
511 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
513 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
514 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
516 2021-04-30 Tom Tromey <tromey@adacore.com>
518 * windows-nat.c: Move code to nat/windows-nat.[ch].
519 (_initialize_windows_nat): Call initialize_loadable.
520 * nat/windows-nat.h (AdjustTokenPrivileges)
521 (DebugActiveProcessStop, DebugBreakProcess)
522 (DebugSetProcessKillOnExit, EnumProcessModules)
523 (EnumProcessModulesEx, GetModuleInformation)
524 (GetModuleFileNameExA, GetModuleFileNameExW)
525 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
526 (GetCurrentConsoleFont, Wow64SuspendThread)
527 (Wow64GetThreadContext, Wow64SetThreadContext)
528 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
529 (AdjustTokenPrivileges_ftype)
530 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
531 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
532 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
533 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
534 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
535 (GetConsoleFontSize_ftype)
536 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
537 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
538 (Wow64GetThreadSelectorEntry_ftype): Likewise.
539 (initialize_loadable): Declare.
540 * nat/windows-nat.c (AdjustTokenPrivileges)
541 (DebugActiveProcessStop, DebugBreakProcess)
542 (DebugSetProcessKillOnExit, EnumProcessModules)
543 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
544 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
545 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
546 (Wow64GetThreadContext, Wow64SetThreadContext)
547 (Wow64GetThreadSelectorEntry): Define.
548 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
550 (initialize_loadable): Likewise, and rename.
552 2021-04-30 Tom Tromey <tromey@adacore.com>
554 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
555 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
556 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
557 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
558 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
559 (bad): New template functions.
560 (_initialize_loadable): Update.
562 2021-04-30 Tom Tromey <tromey@adacore.com>
564 * ada-lang.c (ada_index_type): Use ada_check_typedef.
566 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
568 * auto-load.h: Split namespace declaration.
570 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
572 * infrun.c (save_waitstatus): Move variables to inner scope.
574 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
576 * NEWS: Fix typo and stray full stop.
578 2021-04-28 Tom Tromey <tromey@adacore.com>
580 * ada-exp.y (primary): Use new type for null pointer.
581 * ada-lang.c (ada_type_match): Remove "may_deref"
582 parameter. Handle null pointer.
583 (ada_args_match): Update.
584 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
587 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
589 * NEWS: Mention new commands.
590 * python/python.c (python_ignore_environment): New static global.
591 (show_python_ignore_environment): New function.
592 (set_python_ignore_environment): New function.
593 (python_dont_write_bytecode): New static global.
594 (show_python_dont_write_bytecode): New function.
595 (set_python_dont_write_bytecode): New function.
596 (_initialize_python): Register new commands.
598 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
600 * extension-priv.h (struct extension_language_ops): Rename
601 'finish_initialization' to 'initialize'.
602 * extension.c (finish_ext_lang_initialization): Renamed to...
603 (ext_lang_initialization): ...this, update comment, and updated
604 the calls to reflect the change in struct extension_language_ops.
605 * extension.h (finish_ext_lang_initialization): Renamed to...
606 (ext_lang_initialization): ...this.
607 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
608 (gdbscm_initialize): ...this, update comment at definition.
609 (guile_extension_ops): Update.
610 * main.c (captured_main_1): Update call to
611 finish_ext_lang_initialization.
612 * python/python.c (gdbpy_finish_initialization): Rename to...
613 (gdbpy_initialize): ...this, update comment at definition, and
614 update call to do_finish_initialization.
615 (python_extension_ops): Update.
616 (do_finish_initialization): Rename to...
617 (do_initialize): ...this, and update comment.
619 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
621 * main.c (captured_main_1): Add a call to
622 finish_ext_lang_initialization.
623 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
625 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
627 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
628 (gdbscm_finish_initialization): Add code moved from
630 (_initialize_guile): Move code to gdbscm_finish_initialization.
631 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
632 _initialize_scm_arch.
633 (_initialize_scm_arch): New function.
634 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
635 into _initialize_scm_block.
636 (_initialize_scm_block): New function.
637 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
638 into _initialize_scm_frame.
639 (_initialize_scm_frame): New function.
640 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
641 into _initialize_scm_objfile.
642 (_initialize_scm_objfile): New function.
643 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
644 code into _initialize_scm_progspace.
645 (_initialize_scm_progspace): New function.
646 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
647 into _initialize_scm_symbol.
648 (_initialize_scm_symbol): New function.
649 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
650 into _initialize_scm_symtab.
651 (_initialize_scm_symtab): New function.
652 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
653 _initialize_scm_type.
654 (_initialize_scm_type): New function.
656 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
658 * python/py-arch.c (_initialize_py_arch): New function.
659 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
660 * python/py-block.c (_initialize_py_block): New function.
661 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
662 * python/py-inferior.c (_initialize_py_inferior): New function.
663 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
664 * python/py-objfile.c (_initialize_py_objfile): New function.
665 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
666 * python/py-progspace.c (_initialize_py_progspace): New function.
667 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
668 * python/py-registers.c (_initialize_py_registers): New function.
669 (gdbpy_initialize_registers): Move code to
670 _initialize_py_registers.
671 * python/py-symbol.c (_initialize_py_symbol): New function.
672 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
673 * python/py-symtab.c (_initialize_py_symtab): New function.
674 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
675 * python/py-type.c (_initialize_py_type): New function.
676 (gdbpy_initialize_types): Move code to _initialize_py_type.
677 * python/py-unwind.c (_initialize_py_unwind): New function.
678 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
679 * python/python.c (_initialize_python): Move call to
680 do_start_initialization to gdbpy_finish_initialization.
681 (gdbpy_finish_initialization): Add call to
682 do_start_initialization.
684 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
686 * extension.c (struct scoped_default_signal): New struct.
687 (scoped_default_sigint): New typedef.
688 (finish_ext_lang_initialization): Make use of
689 scoped_default_sigint.
691 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
693 * main.c (captured_main_1): Don't pass argument to gdb_init.
694 * top.c (gdb_init): Remove unused argument, and add header
696 * top.h (gdb_init): Remove argument.
698 2021-04-27 Luis Machado <luis.machado@linaro.org>
700 * psymtab.c (psymbol_functions::dump): Output newline.
702 * symmisc.c (dump_objfile): Likewise.
704 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
705 Simon Marchi <simon.marchi@polymtl.ca>
707 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
708 when attaching the 'auto_load_new_objfile' observer, so
709 other observers can specify it as a dependency.
710 * gdb/auto-load.h (struct token): Declare
711 'auto_load_new_objfile_observer_token' as token to be used
712 for the 'auto_load_new_objfile' observer.
713 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
714 'python_new_objfile' observer depend on 'auto_load_new_objfile'
715 observer, so it gets notified after the latter.
717 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
718 Simon Marchi <simon.marchi@polymtl.ca>
720 * unittests/observable-selftests.c (dependency_test_counters):
722 (observer_token0, observer_token1, observer_token2,
723 observer_token3, observer_token4, observer_token5): New.
724 (struct dependency_observer_data): New struct.
725 (observer_dependency_test_callback): New function.
726 (test_observers): New.
727 (run_dependency_test): New function.
728 (test_dependency): New.
729 (_initialize_observer_selftest): Register dependency test.
731 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
734 * cli/cli-dump.c (dump_binary_file): Check result of
737 2021-04-25 Sergei Trofimovich <siarheit@google.com>
739 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
740 by passing `process_stratum_target*` parameter.
742 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
745 * typeprint.h (struct type_print_options): Add print_in_hex
747 (struct print_offset_data): Add print_in_hex flag, add a
748 constructor accepting a type_print_options* argument.
749 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
750 default value for print_in_hex.
751 (print_offset_data::indentation): Allow more horizontal space.
752 (print_offset_data::print_offset_data): Add ctor.
753 (print_offset_data::maybe_print_hole, print_offset_data::update):
754 Handle the print_in_hex flag.
755 (whatis_exp): Handle 'x' and 'd' flags.
756 (print_offsets_and_sizes_in_hex): Declare.
757 (set_print_offsets_and_sizes_in_hex): Create.
758 (show_print_offsets_and_sizes_in_hex): Create.
759 (_initialize_typeprint): Update help message for the ptype
760 command, register the 'set print type hex' and 'show print type
762 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
763 (c_type_print_base): Construct the print_offset_data
764 object using the type_print_optons parameter.
765 * rust-lang.c (rust_language::print_type): Construct the
766 print_offset_data object using the type_print_optons parameter.
767 * NEWS: Mention the new flags of the ptype command.
769 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
771 * typeprint.h (struct type_print_options): Move before
774 2021-04-25 Joel Brobecker <brobecker@adacore.com>
778 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
780 * observable.c (observer_debug): Change to bool.
782 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
784 * dwarf2/read.c: Add 'unordered_set' include.
785 (dwarf2_base_index_functions::map_symbol_filenames): Replace
786 'visited' hash table with 'qfn_cache' unordered_set. Remove use
787 of per_Bfd->filenames_cache cache, and use function local
788 filenames_cache instead. Reindent.
789 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
791 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
793 * breakpoint.c (iterate_over_bp_locations): Change callback to
794 function view, remove data parameter.
795 * breakpoint.h (iterate_over_bp_locations): Likewise.
796 * record-full.c (record_full_sync_record_breakpoints): Remove
799 2021-04-22 Tom Tromey <tom@tromey.com>
801 * c-typeprint.c (c_type_print_base_struct_union): Use
802 print_spaces_filtered_with_print_options.
804 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
807 * python/py-type.c (typy_range): Check that bounds are constant
808 before accessing them as such.
809 * guile/scm-type.c (gdbscm_type_range): Likewise.
811 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
813 * Makefile.in (COMMON_SFILES): Remove continuations.c.
814 * inferior.c (inferior::add_continuation): New method, adapted
815 from 'add_inferior_continuation'.
816 (inferior::do_all_continuations): New method, adapted from
817 'do_all_inferior_continuations'.
818 (inferior::~inferior): Clear the list of continuations directly.
819 * inferior.h (class inferior) <continuations>: Rename into...
820 <m_continuations>: ...this and make private.
821 * continuations.c: Remove.
822 * continuations.h: Remove.
823 * event-top.c: Don't include "continuations.h".
825 Update the users below.
826 * inf-loop.c (inferior_event_handler)
827 * infcmd.c (attach_command)
828 (notice_new_inferior): Update.
830 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
832 * inferior.h (class inferior) <continuations>: Change the type
833 to be an std::list of std::function's.
834 Update the references and uses below.
835 * continuations.c (struct continuation): Delete.
836 (make_continuation): Delete.
837 (do_my_continuations_1): Delete.
838 (do_my_continuations): Delete.
839 (discard_my_continuations_1): Delete.
840 (discard_my_continuations): Delete.
841 (add_inferior_continuation): Update.
842 (do_all_inferior_continuations): Update.
843 (discard_all_inferior_continuations): Update.
844 * continuations.h (add_inferior_continuation): Update to take
845 an std::function as the parameter.
846 * infcmd.c (struct attach_command_continuation_args): Delete.
847 (attach_command_continuation): Delete.
848 (attach_command_continuation_free_args): Delete.
849 (attach_command): Update.
850 (notice_new_inferior): Update.
852 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
854 * continuations.h: Update the general comment.
855 * inferior.h (class inferior) <continuations>: Update the comment.
856 * interps.c: Do not include "continuations.h".
858 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
860 * continuations.h (do_all_inferior_continuations): Remove the 'err'
861 parameter. Update the references below.
862 * continuations.c (do_my_continuations_1)
863 (do_my_continuations)
864 (do_all_inferior_continuations): Update.
865 * inf-loop.c (inferior_event_handler): Update.
866 * infcmd.c (attach_command_continuation): Update.
868 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
870 * infcmd.c (attach_post_wait): Update the function comment.
872 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
874 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
875 Update the references below.
876 (struct attach_command_continuation_args)
877 (attach_command_continuation)
878 (attach_command_continuation_free_args)
880 (notice_new_inferior): Update to remove the reference to 'args'.
882 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
883 Tom de Vries <tdevries@suse.de>
886 * remote.c (remote_target_is_non_stop_p): New function.
887 * remote.h (remote_target_is_non_stop_p): Declare.
888 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
889 to check non-stopness using notif_state->remote rather current target.
891 2021-04-22 Tom Tromey <tom@tromey.com>
893 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
894 (struct typed_val_int) <val>: Now ULONGEST.
895 (rust_parser::parse_array_type): Remove negative check.
896 (rust_lex_int_test): Change 'value' to ULONGEST.
898 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
900 * arch-utils.c (default_addressable_memory_unit_size): Return a
901 value based on bfd's bits per byte.
903 2021-04-21 Tom Tromey <tom@tromey.com>
905 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
907 (struct dwarf2_per_cu_data): Rearrange.
908 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
910 (struct comp_unit_head): Rearrange.
911 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
913 2021-04-21 Tom de Vries <tdevries@suse.de>
916 * configure.ac: Remove --without-included-regex/--with-included-regex.
917 * config.in: Regenerate.
918 * configure: Regenerate.
919 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
921 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
923 * breakpoint.h (create_breakpoint): Add a new parameter,
925 * breakpoint.c (create_breakpoint): Use the 'force_condition'
926 argument when 'parse_extra' is false to check if the condition
927 is invalid at all of the breakpoint locations.
928 Update the users below.
934 (create_tracepoint_from_upload): Update.
935 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
936 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
937 * python/py-breakpoint.c (bppy_init): Update.
938 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
940 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942 * breakpoint.c (print_one_breakpoint_location): Display "N" for
943 disabled-by-condition locations on MI-like output.
944 (breakpoint_1): Do not display the disabled-by-condition footnote
945 if the output is MI-like.
947 2021-04-21 Frederic Cambus <fred@statdns.com>
949 * syscalls/update-netbsd.sh: Fix script name display in usage, and
950 update year range in generated copyright notices.
952 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
954 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
957 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
959 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
961 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
963 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
964 (producer_is_icc): Replace use of std::regex with gdb's
967 2021-04-17 Tom Tromey <tom@tromey.com>
970 * dwarf2/read.c (class offset_view): New.
971 (struct symbol_table_slot): Remove.
972 (struct mapped_index) <symbol_table, constant_pool>: Change type.
973 <symbol_name_index, symbol_vec_index>: New methods.
974 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
976 (read_gdb_index_from_buffer): Update.
977 (struct dw2_symtab_iterator) <vec>: Change type.
978 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
979 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
980 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
981 <append_array, append_offset>: New methods.
982 (write_hash_table, add_address_entry, write_gdbindex_1)
983 (write_debug_names): Update.
984 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
986 2021-04-17 Tom Tromey <tom@tromey.com>
988 * dwarf2/index-write.c (write_psymtabs_to_index): Check
991 2021-04-17 Tom Tromey <tom@tromey.com>
993 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
994 from map_matching_symbols. Change parameters.
995 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
996 Rename from map_matching_symbols. Change parameters.
997 * dwarf2/read.c (struct dwarf2_gdb_index)
998 <expand_matching_symbols>: Rename from map_matching_symbols.
1000 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1001 Rename from map_matching_symbols. Change parameters.
1002 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1003 dw2_map_matching_symbols. Change parameters.
1004 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1006 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1007 map_matching_symbols. Change parameters.
1008 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1009 from map_matching_symbols. Change parameters.
1010 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1011 map_matching_symbols. Change parameters.
1012 * ada-lang.c (map_matching_symbols): New function.
1013 (add_nonlocal_symbols): Update.
1015 2021-04-17 Tom Tromey <tom@tromey.com>
1017 * quick-symbol.h (struct quick_symbol_functions)
1018 <expand_symtabs_with_fullname>: Remove.
1019 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1021 * psympriv.h (struct psymbol_functions)
1022 <expand_symtabs_with_fullname>: Remove.
1023 * dwarf2/read.c (struct dwarf2_base_index_functions)
1024 <expand_symtabs_with_fullname>: Remove.
1025 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1027 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1029 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1032 2021-04-17 Tom Tromey <tom@tromey.com>
1034 * symfile-debug.c (objfile::expand_symtabs_for_function):
1036 * quick-symbol.h (struct quick_symbol_functions)
1037 <expand_symtabs_for_function>: Remove.
1038 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1040 * psympriv.h (struct psymbol_functions)
1041 <expand_symtabs_for_function>: Remove.
1042 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1044 * dwarf2/read.c (struct dwarf2_gdb_index)
1045 <expand_symtabs_for_function>: Remove.
1046 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1048 (find_slot_in_mapped_hash): Remove.
1049 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1050 (dw2_symtab_iter_init): Remove one overload.
1051 (dwarf2_gdb_index::expand_symtabs_for_function)
1052 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1054 2021-04-17 Tom Tromey <tom@tromey.com>
1056 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1058 * quick-symbol.h (struct quick_symbol_functions)
1059 <map_symtabs_matching_filename>: Remove.
1060 * psymtab.c (partial_map_expand_apply)
1061 (psymbol_functions::map_symtabs_matching_filename): Remove.
1062 * psympriv.h (struct psymbol_functions)
1063 <map_symtabs_matching_filename>: Remove.
1064 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1066 * dwarf2/read.c (struct dwarf2_base_index_functions)
1067 <map_symtabs_matching_filename>: Remove.
1068 (dw2_map_expand_apply)
1069 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1072 2021-04-17 Tom Tromey <tom@tromey.com>
1074 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1075 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1077 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1078 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1079 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1080 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1082 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1083 (dwarf2_gdb_index::lookup_symbol)
1084 (dwarf2_debug_names_index::lookup_symbol): Remove.
1086 2021-04-17 Tom Tromey <tom@tromey.com>
1088 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1089 * symmisc.c (maintenance_expand_symtabs): Update.
1090 * symfile.c (expand_symtabs_matching): Update.
1091 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1093 * quick-symbol.h (struct quick_symbol_functions)
1094 <expand_symtabs_matching>: Add 'domain' parameter.
1095 * psymtab.c (recursively_search_psymtabs)
1096 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1098 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1099 Add 'domain' parameter.
1100 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1102 * linespec.c (iterate_over_all_matching_symtabs): Update.
1103 * dwarf2/read.c (struct dwarf2_gdb_index)
1104 <expand_symtabs_matching>: Add 'domain' parameter.
1105 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1107 (dw2_expand_symtabs_matching)
1108 (dwarf2_gdb_index::expand_symtabs_matching)
1109 (dw2_debug_names_iterator)
1110 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1113 2021-04-17 Tom Tromey <tom@tromey.com>
1115 * symtab.c (global_symbol_searcher::expand_symtabs)
1116 (default_collect_symbol_completion_matches_break_on): Update.
1117 * symmisc.c (maintenance_expand_symtabs): Update.
1118 * symfile.h (expand_symtabs_matching): Add search_flags
1120 * symfile.c (expand_symtabs_matching): Add search_flags
1122 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1123 search_flags parameter.
1124 * quick-symbol.h (struct quick_symbol_functions)
1125 <expand_symtabs_matching>: Add search_flags parameter.
1126 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1127 * psymtab.c (recursively_search_psymtabs)
1128 (psymbol_functions::expand_symtabs_matching): Add search_flags
1130 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1131 Add search_flags parameter.
1132 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1133 search_flags parameter.
1134 * linespec.c (iterate_over_all_matching_symtabs): Update.
1135 * dwarf2/read.c (struct dwarf2_gdb_index)
1136 <expand_symtabs_matching>: Add search_flags parameter.
1137 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1138 search_flags parameter.
1139 (dw2_map_matching_symbols): Update.
1140 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1141 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1143 (dw2_debug_names_iterator): Change block_index to search flags.
1144 <m_block_index>: Likewise.
1145 (dw2_debug_names_iterator::next)
1146 (dwarf2_debug_names_index::lookup_symbol)
1147 (dwarf2_debug_names_index::expand_symtabs_for_function)
1148 (dwarf2_debug_names_index::map_matching_symbols)
1149 (dwarf2_debug_names_index::map_matching_symbols): Update.
1150 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1151 search_flags parameter.
1152 * ada-lang.c (ada_add_global_exceptions)
1153 (collect_symbol_completion_matches): Update.
1155 2021-04-17 Tom Tromey <tom@tromey.com>
1157 * symtab.c (default_collect_symbol_completion_matches_break_on):
1159 * symfile.h (expand_symtabs_matching): Return bool.
1160 * symfile.c (expand_symtabs_matching): Return bool.
1161 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1163 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1164 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1166 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1168 * psympriv.h (struct psymbol_functions)
1169 <expand_symtabs_matching>: Return bool.
1170 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1172 * dwarf2/read.c (struct dwarf2_gdb_index)
1173 <expand_symtabs_matching>: Return bool.
1174 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1176 (dw2_expand_symtabs_matching_symbol): Return bool.
1177 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1178 (dw2_expand_symtabs_matching)
1179 (dwarf2_gdb_index::expand_symtabs_matching)
1180 (dwarf2_debug_names_index::expand_symtabs_matching)
1181 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1183 2021-04-17 Tom Tromey <tom@tromey.com>
1185 * quick-symbol.h (enum block_search_flag_values): New.
1186 (block_search_flags): New enum flags type.
1188 2021-04-16 Tom Tromey <tom@tromey.com>
1190 * rust-parse.c: New file.
1191 * rust-exp.y: Remove.
1192 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1193 (SFILES): Remove rust-exp.y.
1194 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1196 2021-04-16 Luis Machado <luis.machado@linaro.org>
1198 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1200 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1202 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1203 use throughout file.
1205 2021-04-15 Tom Tromey <tromey@adacore.com>
1207 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1210 2021-04-15 Tom Tromey <tromey@adacore.com>
1212 * printcmd.c (print_variable_and_value): Use
1213 common_val_print_checked.
1215 2021-04-15 Tom Tromey <tromey@adacore.com>
1217 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1218 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1220 * p-exp.y (variable): Update.
1221 * m2-exp.y (variable): Update.
1222 * go-exp.y (variable): Update.
1223 * expprint.c (dump_for_expression): New overload.
1224 * expop.h (check_objfile): New overload.
1225 (check_constant): New overload.
1226 (class var_value_operation): Use block_symbol.
1227 <get_symbol>: Rewrite.
1228 * eval.c (var_value_operation::evaluate)
1229 (var_value_operation::evaluate_funcall)
1230 (var_value_operation::evaluate_for_address)
1231 (var_value_operation::evaluate_for_address)
1232 (var_value_operation::evaluate_with_coercion)
1233 (var_value_operation::evaluate_for_sizeof)
1234 (var_value_operation::evaluate_for_cast): Update.
1235 * d-exp.y (PrimaryExpression): Update.
1236 * c-exp.y (variable): Update.
1237 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1238 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1239 (ada_var_value_operation::evaluate)
1240 (ada_var_value_operation::resolve)
1241 (ada_funcall_operation::resolve): Update.
1242 * ada-exp.y (write_var_from_sym, write_object_renaming)
1243 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1244 (maybe_overload): Update.
1245 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1247 2021-04-15 Tom Tromey <tom@tromey.com>
1248 Andrew Burgess <andrew.burgess@embecosm.com>
1251 * main.c (captured_main_1): Call check_quiet_mode.
1252 * top.c (startup_quiet): New global.
1253 (check_quiet_mode): New function.
1254 (show_startup_quiet): New function.
1255 (init_main): Register new command.
1256 * top.h (check_quiet_mode): Declare.
1258 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1261 * NEWS: Mention new early init files and command line options.
1262 * config.in: Regenerate.
1263 * configure: Regenerate.
1264 * configure.ac: Define GDBEARLYINIT.
1265 * main.c (get_earlyinit_files): New function.
1266 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1267 CMDARG_EARLYINIT_COMMAND.
1268 (captured_main_1): Add support for new command line flags, and for
1269 processing startup files.
1270 (print_gdb_help): Include startup files in the output.
1272 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1274 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1275 (relocate_file_path_maybe_in_datadir): ...this.
1276 (class gdb_initfile_finder): New class.
1277 (get_init_files): Now uses gdb_initfile_finder.
1278 (print_gdb_help): Print 'None found' when there are no init files.
1280 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1282 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1283 corresponding child of the abstract DIE when iterating the
1284 children of the concrete DIE.
1286 2021-04-13 Tom de Vries <tdevries@suse.de>
1288 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1291 2021-04-13 Luis Machado <luis.machado@linaro.org>
1293 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1296 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1298 * rs6000-tdep.c: Add support for single-stepping of
1299 prefixed instructions.
1301 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1304 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1305 handle the addpcis/lnia instruction.
1307 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1309 * MAINTAINERS (Write After Approval): Add myself.
1311 2021-4-12 Carl Love <cel@us.ibm.com>
1313 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1314 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1317 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1319 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1320 * nat/windows-nat.h: Likewise.
1322 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1324 * windows-nat.c (windows_nat::handle_load_dll): Call
1325 windows_add_dll if get_image_name failed to glean the name of the
1326 DLL by using the lpImageName pointer.
1327 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1328 (windows_add_dll): Now does what windows_add_all_dlls did before,
1329 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1330 specifies the address where the DLL was loaded into the inferior,
1331 and looks for the single DLL loaded at that address.
1333 2021-04-09 Luis Machado <luis.machado@linaro.org>
1335 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1337 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1339 * darwin-nat.c (darwin_nat_target::resume): Remove status
1342 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1344 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1345 prologue end for Intel compilers.
1346 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1347 * producer.c (producer_is_icc_ge_19): New function.
1348 * producer.h (producer_is_icc_ge_19): New declaration.
1350 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1352 * producer.c: (producer_is_icc): Update for new version scheme.
1353 (producer_parsing_tests): Update names and expected results.
1354 * producer.h: (producer_is_icc): Update comment accordingly.
1356 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1358 * target.h (struct target_ops) <follow_fork>: Return void.
1359 (target_follow_fork): Likewise.
1360 * target.c (default_follow_fork): Likewise.
1361 (target_follow_fork): Likewise.
1362 * infrun.c (follow_fork_inferior): Adjust.
1363 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1364 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1365 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1366 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1367 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1368 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1369 * remote.c (class remote_target) <follow_fork>: Likewise.
1370 (remote_target::follow_fork): Likewise.
1371 * target-delegates.c: Re-generate.
1373 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1375 * ctfread.c (fetch_tid_type): New function, use throughout file.
1376 (read_forward_type): New function.
1377 (read_type_record): Call read_forward_type.
1379 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1381 * f-exp.h (class fortran_structop_operation): New class.
1382 * f-exp.y (exp): Create fortran_structop_operation instead of the
1383 generic structop_operation.
1384 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1385 expression as EVAL_NORMAL if the result type was dynamic so we can
1386 extract the actual array bounds.
1387 (fortran_structop_operation::evaluate): New function.
1389 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1391 * eval.c (evaluate_subexp_standard): Remove
1392 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1395 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1397 * valops.c (value_cast): Call value_deeply_equal before performing
1400 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1402 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1405 2021-04-07 Caroline Tice <cmtice@google.com>
1407 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1408 the search paths used resolve relative location of .dwo file.
1410 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1412 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1414 (dwarf2_section_info::get_file_name): Add an assert.
1415 (dwarf2_section_info::read_string): Display a minimal, sane error
1416 when the dwarf2_section_info is not associated with a bfd section.
1418 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1420 * top.c (staged_gdb_datadir): Update comment.
1421 (set_gdb_datadir): Copy the value of gdb_datadir back into
1423 (init_main): Initialise staged_gdb_datadir.
1425 2021-04-06 Tom de Vries <tdevries@suse.de>
1427 PR breakpoints/25884
1428 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1431 2021-04-06 Tom de Vries <tdevries@suse.de>
1434 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1437 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1439 * avr-tdep.c (avr_frame_unwind_cache): Use
1440 trad_frame_saved_reg::is_addr.
1442 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1444 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1447 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1449 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1450 objfile parameter for objfile_per_bfd_storage, adjust callers.
1451 (struct standard_psymtab) <standard_psymtab>: Likewise.
1452 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1453 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1454 * ctfread.c (struct ctf_psymtab): Likewise.
1455 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1456 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1457 (dwarf2_create_include_psymtab): Likewise.
1458 * objfiles.h (struct objfile_per_bfd_storage)
1459 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1460 <get_bfd>: New method.
1462 * objfiles.c (get_objfile_bfd_data): Adjust.
1464 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1466 * psymtab.c (partial_symtab::partial_symtab): Change
1467 last_objfile_name to be an std::string.
1468 * symfile.c (allocate_symtab): Likewise.
1470 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1472 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1474 (struct objfile) <intern>: Use
1475 objfile::objfile_per_bfd_storage::intern.
1477 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1479 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1480 with type::is_flag_enum.
1482 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1484 * gdbtypes.h (struct type) <is_flag_enum,
1485 set_is_flag_enum>: New methods.
1486 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1487 write call sites to use type::set_is_flag_enum.
1489 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1491 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1492 with type::is_declared_class.
1494 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1496 * gdbtypes.h (struct type) <is_declared_class,
1497 set_is_declared_class>: New methods.
1498 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1499 write call sites to use type::set_is_declared_class.
1501 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1503 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1504 to avoid deprecation warnings.
1506 2021-04-01 Martin Liska <mliska@suse.cz>
1508 * cp-name-parser.y: Use startswith instead of strncmp.
1509 * m2-exp.y: Likewise.
1510 * macroexp.c (substitute_args): Likewise.
1511 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1512 * rust-exp.y: Likewise.
1514 2021-03-31 Tom Tromey <tom@tromey.com>
1516 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1517 with dw2_map_matching_symbols.
1518 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1519 dw2_expand_symtabs_matching.
1521 2021-03-31 Tom Tromey <tromey@adacore.com>
1523 * dwarf2/stringify.h: Fix typo.
1525 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1528 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1529 with objfiles using READNOW.
1531 2021-03-29 Tom Tromey <tromey@adacore.com>
1533 * top.c (check_frame_language_change): Update.
1534 * language.c (language_info): Remove parameter.
1535 * language.h (language_info): Remove parameter.
1537 2021-03-29 Luis Machado <luis.machado@linaro.org>
1539 * compile/compile.c (get_args): Don't add empty argv entries.
1541 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1544 * procfs.c (procfs_target::attach): Define inf.
1546 (procfs_target::create_inferior): Likewise.
1548 2021-03-28 Tom Tromey <tom@tromey.com>
1550 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1551 (elf_symfile_read): Simplify.
1552 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1553 (make_lazy_dwarf_reader): New function.
1554 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1555 (dwarf2_initialize_objfile): Return void. Remove index_kind
1556 parameter. Push on 'qf' list.
1557 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1558 type. Remove 'index_kind' parameter.
1559 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1561 2021-03-27 Tom Tromey <tom@tromey.com>
1563 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1565 2021-03-27 Tom Tromey <tom@tromey.com>
1567 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1569 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1571 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1574 2021-03-26 Tom Tromey <tom@tromey.com>
1576 * symtab.c (struct output_source_filename_data): Add 'output'
1577 method and operator().
1578 (output_source_filename_data::output): Rename from
1579 output_source_filename.
1580 (output_partial_symbol_filename): Remove.
1581 (info_sources_command): Update.
1582 (struct add_partial_filename_data): Add operator().
1583 (add_partial_filename_data::operator()): Rename from
1584 maybe_add_partial_symtab_filename.
1585 (make_source_files_completion_list): Update.
1586 * symfile.c (quick_symbol_functions): Update.
1587 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1588 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1589 'need_fullname'. Remove 'data' parameter.
1590 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1591 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1592 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1593 Change type of 'fun' and 'need_fullname'. Remove 'data'
1595 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1596 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1597 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1599 (mi_cmd_file_list_exec_source_files): Update.
1601 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1603 2021-03-26 Tom Tromey <tom@tromey.com>
1605 * ada-lang.c (struct match_data): Add operator().
1606 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1607 (callback): Remove 'callback'.
1609 2021-03-26 Tom Tromey <tom@tromey.com>
1611 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1612 call make_ignore_params once.
1614 2021-03-26 Tom Tromey <tom@tromey.com>
1616 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1619 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1620 Pedro Alves <pedro@palves.net>
1622 * async-event.c: Include "infrun.h".
1623 (async_event_handler_marked): New.
1624 * async-event.h (async_event_handler_marked): Declare.
1625 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1626 inferior before calling target method. Don't commit-resumed if
1627 target_has_pending_events is true.
1628 * remote.c (remote_target::has_pending_events): New.
1629 * target-delegates.c: Regenerate.
1630 * target.c (target_has_pending_events): New.
1631 * target.h (target_ops::has_pending_events): New target method.
1632 (target_has_pending_events): New.
1634 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1635 Pedro Alves <pedro@palves.net>
1637 * infcmd.c (run_command_1, attach_command, detach_command)
1638 (interrupt_target_1): Use scoped_disable_commit_resumed.
1639 * infrun.c (do_target_resume): Remove
1640 target_commit_resume call.
1641 (commit_resume_all_targets): Remove.
1642 (maybe_set_commit_resumed_all_targets): New.
1643 (maybe_call_commit_resumed_all_targets): New.
1644 (enable_commit_resumed): New.
1645 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1646 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1647 (scoped_disable_commit_resumed::reset)
1648 (scoped_disable_commit_resumed::reset_and_commit)
1649 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1650 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1652 (proceed): Use scoped_disable_commit_resumed and
1653 maybe_call_commit_resumed_all_targets.
1654 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1655 * infrun.h (struct scoped_disable_commit_resumed): New.
1656 (maybe_call_commit_resumed_all_process_targets): New.
1657 (struct scoped_enable_commit_resumed): New.
1658 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1659 * process-stratum-target.h (class process_stratum_target):
1660 <commit_resumed_state>: New.
1661 * record-full.c (record_full_wait_1): Change commit_resumed_state
1662 around calling commit_resumed.
1663 * remote.c (class remote_target) <commit_resume>: Rename to...
1664 <commit_resumed>: ... this.
1665 (struct stop_reply): Move up.
1666 (remote_target::commit_resume): Rename to...
1667 (remote_target::commit_resumed): ... this. Check if there is any
1668 thread pending vCont resume.
1669 (remote_target::remote_stop_ns): Generate stop replies for resumed
1670 but pending vCont threads.
1671 (remote_target::wait_ns): Add gdb_assert.
1672 * target-delegates.c: Regenerate.
1673 * target.c (target_wait, target_resume): Assert that the current
1674 process_stratum target isn't in commit-resumed state.
1675 (defer_target_commit_resume): Remove.
1676 (target_commit_resume): Remove.
1677 (target_commit_resumed): New.
1678 (make_scoped_defer_target_commit_resume): Remove.
1679 (target_stop): Assert that the current process_stratum target
1680 isn't in commit-resumed state.
1681 * target.h (struct target_ops) <commit_resume>: Rename to ...
1682 <commit_resumed>: ... this.
1683 (target_commit_resume): Remove.
1684 (target_commit_resumed): New.
1685 (make_scoped_defer_target_commit_resume): Remove.
1686 * top.c (wait_sync_command_done): Use
1687 scoped_enable_commit_resumed.
1689 2021-03-26 Pedro Alves <pedro@palves.net>
1691 * target.c (target_always_non_stop_p): Also check whether the
1694 2021-03-26 Tom Tromey <tom@tromey.com>
1696 * dwarf2/read.c (dwarf2_read_debug_names)
1697 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1698 (dw2_debug_names_iterator::next, create_type_unit_group):
1701 2021-03-25 Pedro Alves <pedro@palves.net>
1703 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1704 around setting the breakpoint.
1706 2021-03-25 Pedro Alves <pedro@palves.net>
1709 (remote_target::check_pending_events_prevent_wildcard_vcont):
1710 Check whether the event's ptid is not null_ptid before looking up
1711 the corresponding inferior.
1713 2021-03-24 Changbin Du <changbin.du@gmail.com>
1715 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1718 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1720 * target.h (current_top_target): Remove, make callers use the
1721 current inferior instead.
1722 * target.c (current_top_target): Remove.
1724 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1726 * target.h (target_shortname): Change to function declaration.
1727 (target_longname): Likewise.
1728 (target_attach_no_wait): Likewise.
1729 (target_post_attach): Likewise.
1730 (target_prepare_to_store): Likewise.
1731 (target_supports_enable_disable_tracepoint): Likewise.
1732 (target_supports_string_tracing): Likewise.
1733 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1734 (target_supports_dumpcore): Likewise.
1735 (target_dumpcore): Likewise.
1736 (target_can_run_breakpoint_commands): Likewise.
1737 (target_files_info): Likewise.
1738 (target_post_startup_inferior): Likewise.
1739 (target_insert_fork_catchpoint): Likewise.
1740 (target_remove_fork_catchpoint): Likewise.
1741 (target_insert_vfork_catchpoint): Likewise.
1742 (target_remove_vfork_catchpoint): Likewise.
1743 (target_insert_exec_catchpoint): Likewise.
1744 (target_remove_exec_catchpoint): Likewise.
1745 (target_set_syscall_catchpoint): Likewise.
1746 (target_rcmd): Likewise.
1747 (target_can_lock_scheduler): Likewise.
1748 (target_can_async_p): Likewise.
1749 (target_is_async_p): Likewise.
1750 (target_execution_direction): Likewise.
1751 (target_extra_thread_info): Likewise.
1752 (target_pid_to_exec_file): Likewise.
1753 (target_thread_architecture): Likewise.
1754 (target_find_memory_regions): Likewise.
1755 (target_make_corefile_notes): Likewise.
1756 (target_get_bookmark): Likewise.
1757 (target_goto_bookmark): Likewise.
1758 (target_stopped_by_watchpoint): Likewise.
1759 (target_stopped_by_sw_breakpoint): Likewise.
1760 (target_supports_stopped_by_sw_breakpoint): Likewise.
1761 (target_stopped_by_hw_breakpoint): Likewise.
1762 (target_supports_stopped_by_hw_breakpoint): Likewise.
1763 (target_have_steppable_watchpoint): Likewise.
1764 (target_can_use_hardware_watchpoint): Likewise.
1765 (target_region_ok_for_hw_watchpoint): Likewise.
1766 (target_can_do_single_step): Likewise.
1767 (target_insert_watchpoint): Likewise.
1768 (target_remove_watchpoint): Likewise.
1769 (target_insert_hw_breakpoint): Likewise.
1770 (target_remove_hw_breakpoint): Likewise.
1771 (target_can_accel_watchpoint_condition): Likewise.
1772 (target_can_execute_reverse): Likewise.
1773 (target_get_ada_task_ptid): Likewise.
1774 (target_filesystem_is_local): Likewise.
1775 (target_trace_init): Likewise.
1776 (target_download_tracepoint): Likewise.
1777 (target_can_download_tracepoint): Likewise.
1778 (target_download_trace_state_variable): Likewise.
1779 (target_enable_tracepoint): Likewise.
1780 (target_disable_tracepoint): Likewise.
1781 (target_trace_start): Likewise.
1782 (target_trace_set_readonly_regions): Likewise.
1783 (target_get_trace_status): Likewise.
1784 (target_get_tracepoint_status): Likewise.
1785 (target_trace_stop): Likewise.
1786 (target_trace_find): Likewise.
1787 (target_get_trace_state_variable_value): Likewise.
1788 (target_save_trace_data): Likewise.
1789 (target_upload_tracepoints): Likewise.
1790 (target_upload_trace_state_variables): Likewise.
1791 (target_get_raw_trace_data): Likewise.
1792 (target_get_min_fast_tracepoint_insn_len): Likewise.
1793 (target_set_disconnected_tracing): Likewise.
1794 (target_set_circular_trace_buffer): Likewise.
1795 (target_set_trace_buffer_size): Likewise.
1796 (target_set_trace_notes): Likewise.
1797 (target_get_tib_address): Likewise.
1798 (target_set_permissions): Likewise.
1799 (target_static_tracepoint_marker_at): Likewise.
1800 (target_static_tracepoint_markers_by_strid): Likewise.
1801 (target_traceframe_info): Likewise.
1802 (target_use_agent): Likewise.
1803 (target_can_use_agent): Likewise.
1804 (target_augmented_libraries_svr4_read): Likewise.
1805 (target_log_command): Likewise.
1806 * target.c (target_shortname): New.
1807 (target_longname): New.
1808 (target_attach_no_wait): New.
1809 (target_post_attach): New.
1810 (target_prepare_to_store): New.
1811 (target_supports_enable_disable_tracepoint): New.
1812 (target_supports_string_tracing): New.
1813 (target_supports_evaluation_of_breakpoint_conditions): New.
1814 (target_supports_dumpcore): New.
1815 (target_dumpcore): New.
1816 (target_can_run_breakpoint_commands): New.
1817 (target_files_info): New.
1818 (target_post_startup_inferior): New.
1819 (target_insert_fork_catchpoint): New.
1820 (target_remove_fork_catchpoint): New.
1821 (target_insert_vfork_catchpoint): New.
1822 (target_remove_vfork_catchpoint): New.
1823 (target_insert_exec_catchpoint): New.
1824 (target_remove_exec_catchpoint): New.
1825 (target_set_syscall_catchpoint): New.
1827 (target_can_lock_scheduler): New.
1828 (target_can_async_p): New.
1829 (target_is_async_p): New.
1830 (target_execution_direction): New.
1831 (target_extra_thread_info): New.
1832 (target_pid_to_exec_file): New.
1833 (target_thread_architecture): New.
1834 (target_find_memory_regions): New.
1835 (target_make_corefile_notes): New.
1836 (target_get_bookmark): New.
1837 (target_goto_bookmark): New.
1838 (target_stopped_by_watchpoint): New.
1839 (target_stopped_by_sw_breakpoint): New.
1840 (target_supports_stopped_by_sw_breakpoint): New.
1841 (target_stopped_by_hw_breakpoint): New.
1842 (target_supports_stopped_by_hw_breakpoint): New.
1843 (target_have_steppable_watchpoint): New.
1844 (target_can_use_hardware_watchpoint): New.
1845 (target_region_ok_for_hw_watchpoint): New.
1846 (target_can_do_single_step): New.
1847 (target_insert_watchpoint): New.
1848 (target_remove_watchpoint): New.
1849 (target_insert_hw_breakpoint): New.
1850 (target_remove_hw_breakpoint): New.
1851 (target_can_accel_watchpoint_condition): New.
1852 (target_can_execute_reverse): New.
1853 (target_get_ada_task_ptid): New.
1854 (target_filesystem_is_local): New.
1855 (target_trace_init): New.
1856 (target_download_tracepoint): New.
1857 (target_can_download_tracepoint): New.
1858 (target_download_trace_state_variable): New.
1859 (target_enable_tracepoint): New.
1860 (target_disable_tracepoint): New.
1861 (target_trace_start): New.
1862 (target_trace_set_readonly_regions): New.
1863 (target_get_trace_status): New.
1864 (target_get_tracepoint_status): New.
1865 (target_trace_stop): New.
1866 (target_trace_find): New.
1867 (target_get_trace_state_variable_value): New.
1868 (target_save_trace_data): New.
1869 (target_upload_tracepoints): New.
1870 (target_upload_trace_state_variables): New.
1871 (target_get_raw_trace_data): New.
1872 (target_get_min_fast_tracepoint_insn_len): New.
1873 (target_set_disconnected_tracing): New.
1874 (target_set_circular_trace_buffer): New.
1875 (target_set_trace_buffer_size): New.
1876 (target_set_trace_notes): New.
1877 (target_get_tib_address): New.
1878 (target_set_permissions): New.
1879 (target_static_tracepoint_marker_at): New.
1880 (target_static_tracepoint_markers_by_strid): New.
1881 (target_traceframe_info): New.
1882 (target_use_agent): New.
1883 (target_can_use_agent): New.
1884 (target_augmented_libraries_svr4_read): New.
1885 (target_log_command): New.
1886 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1887 * infrun.c (set_schedlock_func): Adjust.
1888 * mi/mi-main.c (exec_reverse_continue): Adjust.
1889 * reverse.c (exec_reverse_once): Adjust.
1890 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1891 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1892 * remote-sim.c (gdbsim_target::detach): Adjust.
1893 (gdbsim_target::files_info): Adjust.
1895 2021-03-24 Tom Tromey <tom@tromey.com>
1897 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1898 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1899 (check_match, dw2_expand_symtabs_matching)
1900 (dwarf2_debug_names_index::map_matching_symbols)
1901 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1903 2021-03-24 Keith Seitz <keiths@redhat.com>
1905 * compile/compile-cplus-types.c
1906 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1909 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1911 * gdbarch.sh (gdbarch_data_registry): Make static.
1912 * gdbarch.c: Re-generate.
1914 2021-03-24 Luis Machado <luis.machado@linaro.org>
1916 * NEWS: Mention memory tagging changes.
1918 2021-03-24 Luis Machado <luis.machado@linaro.org>
1920 * printcmd.c (decode_format): Handle the 'm' modifier.
1921 (do_examine): Display allocation tags when required/supported.
1922 (should_validate_memtags): New function.
1923 (print_command_1): Display memory tag mismatches.
1924 * valprint.c (show_memory_tag_violations): New function.
1925 (value_print_option_defs): Add new option "memory-tag-violations".
1926 (user_print_options) <memory_tag_violations>: Initialize to 1.
1927 * valprint.h (struct format_data) <print_tags>: New field.
1928 (value_print_options) <memory_tag_violations>: New field.
1930 2021-03-24 Luis Machado <luis.machado@linaro.org>
1932 * printcmd.c: Include gdbsupport/rsp-low.h.
1933 (memory_tag_list): New static global.
1934 (process_print_command_args): Factored out of
1936 (print_command_1): Use process_print_command_args.
1937 (show_addr_not_tagged, show_memory_tagging_unsupported)
1938 (memory_tag_command, memory_tag_print_tag_command)
1939 (memory_tag_print_logical_tag_command)
1940 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1941 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1942 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1944 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1946 2021-03-24 Luis Machado <luis.machado@linaro.org>
1948 * aarch64-linux-tdep.c
1949 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1950 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1952 2021-03-24 Luis Machado <luis.machado@linaro.org>
1954 * aarch64-linux-tdep.c
1955 (aarch64_linux_report_signal_info): New function.
1956 (aarch64_linux_init_abi): Register
1957 aarch64_linux_report_signal_info as the report_signal_info hook.
1958 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1959 (SEGV_MTESERR): Define.
1961 2021-03-24 Luis Machado <luis.machado@linaro.org>
1963 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1964 (aarch64_linux_ltag_tests): New function.
1965 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1967 2021-03-24 Luis Machado <luis.machado@linaro.org>
1969 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1970 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1971 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1972 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1974 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1975 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1976 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1977 (aarch64_linux_get_ltag): New functions.
1978 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1979 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1980 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1981 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1983 2021-03-24 Luis Machado <luis.machado@linaro.org>
1985 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1987 (struct smaps_data): New struct.
1988 (decode_vmflags): Handle the 'mt' flag.
1989 (parse_smaps_data): New function, refactored from
1990 linux_find_memory_regions_full.
1991 (linux_address_in_memtag_page): New function.
1992 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1993 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1995 2021-03-24 Luis Machado <luis.machado@linaro.org>
1997 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1998 instead of char arrays.
2000 2021-03-24 Luis Machado <luis.machado@linaro.org>
2002 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2003 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2004 nat/aarch64-mte-linux-ptrace.h.
2005 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2006 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2008 <fetch_memtags>: New method override.
2009 <store_memtags>: New method override.
2010 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2011 (aarch64_linux_nat_target::fetch_memtags): New method.
2012 (aarch64_linux_nat_target::store_memtags): New method.
2013 * arch/aarch64-mte-linux.c: New file.
2014 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2015 (AARCH64_MTE_GRANULE_SIZE): Define.
2016 (aarch64_memtag_type): New enum.
2017 (aarch64_mte_get_tag_granules): New prototype.
2018 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2019 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2020 * nat/aarch64-mte-linux-ptrace.c: New file.
2021 * nat/aarch64-mte-linux-ptrace.h: New file.
2023 2021-03-24 Luis Machado <luis.machado@linaro.org>
2025 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2026 * nat/aarch64-mte-linux-ptrace.h: New file.
2028 2021-03-24 Luis Machado <luis.machado@linaro.org>
2030 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2031 (store_mteregs_to_thread): New function.
2032 (aarch64_linux_nat_target::fetch_registers): Update to call
2033 fetch_mteregs_from_thread.
2034 (aarch64_linux_nat_target::store_registers): Update to call
2035 store_mteregs_to_thread.
2036 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2037 (aarch64_cannot_store_register): Handle MTE registers.
2038 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2039 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2040 <has_mte>: New method.
2041 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2043 2021-03-24 Luis Machado <luis.machado@linaro.org>
2045 * aarch64-linux-nat.c
2046 (aarch64_linux_nat_target::read_description): Take MTE flag into
2048 Slight refactor to hwcap flag checking.
2049 * aarch64-linux-tdep.c
2050 (aarch64_linux_core_read_description): Likewise.
2051 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2053 (aarch64_read_description): Add mte_p parameter and update to use it.
2054 Update the documentation.
2055 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2056 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2057 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2058 (aarch64_create_target_description): Add mte_p parameter and update
2060 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2062 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2063 * features/aarch64-mte.c: New file, generated.
2064 * features/aarch64-mte.xml: New file.
2066 2021-03-24 Luis Machado <luis.machado@linaro.org>
2068 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2069 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2070 * aarch64-linux-tdep.c: Likewise
2071 * arch/aarch64-mte-linux.h: New file.
2073 2021-03-24 Luis Machado <luis.machado@linaro.org>
2075 * remote: Include gdbsupport/selftest.h.
2076 (test_memory_tagging_functions): New function.
2077 (_initialize_remote): Register test_memory_tagging_functions.
2079 2021-03-24 Luis Machado <luis.machado@linaro.org>
2081 * remote.c (PACKET_memory_tagging_feature): New enum.
2082 (remote_memory_tagging_p): New function.
2083 (remote_protocol_features): New "memory-tagging" entry.
2084 (remote_target::remote_query_supported): Handle memory tagging
2086 (remote_target::supports_memory_tagging): Implement.
2087 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2088 (create_store_memtags_request): New functions.
2089 (remote_target::fetch_memtags): Implement.
2090 (remote_target::store_memtags): Implement.
2091 (_initialize_remote): Add new "memory-tagging-feature"
2094 2021-03-24 Luis Machado <luis.machado@linaro.org>
2096 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2097 (default_memtag_matches_p, default_set_memtags)
2098 (default_get_memtag): New functions.
2099 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2100 (default_memtag_matches_p, default_set_memtags)
2101 (default_get_memtag): New prototypes.
2102 * gdbarch.c: Regenerate.
2103 * gdbarch.h: Regenerate.
2104 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2105 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2106 (enum memtag_type): New enum.
2108 2021-03-24 Luis Machado <luis.machado@linaro.org>
2110 * remote.c (remote_target) <supports_memory_tagging>: New method
2112 <fetch_memtags>: New method override.
2113 <store_memtags>: New method override.
2114 (remote_target::supports_memory_tagging): New method.
2115 (remote_target::fetch_memtags): New method.
2116 (remote_target::store_memtags): New method.
2117 * target-delegates.c: Regenerate.
2118 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2120 <fetch_memtags>: New virtual method.
2121 <store_memtags>: New virtual method.
2122 (target_supports_memory_tagging): Define.
2123 (target_fetch_memtags): Define.
2124 (target_store_memtags): Define.
2125 * target-debug.h (target_debug_print_size_t)
2126 (target_debug_print_const_gdb_byte_vector_r)
2127 (target_debug_print_gdb_byte_vector_r): New functions.
2129 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2131 * target.h (target_longname): Remove.
2133 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2135 * target.h (target_is_pushed): Remove, update callers to use
2136 inferior::target_is_pushed instead.
2137 * target.c (target_is_pushed): Remove.
2139 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2141 * target.h (push_target): Remove, update callers to use
2142 inferior::push_target.
2143 * target.c (push_target): Remove.
2144 * inferior.h (class inferior) <push_target>: New overload.
2146 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2148 * target.h (unpush_target): Remove, update all callers
2149 to use `inferior::unpush_target` instead.
2150 (struct target_unpusher) <operator()>: Just declare.
2151 * target.c (unpush_target): Remove.
2152 (target_unpusher::operator()): New.
2154 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2156 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2158 (process_full_comp_unit): Validate the top-level tag before
2159 processing the first DIE.
2160 (read_func_scope): Ensure we have a valid builder.
2162 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2164 * objc-lang.c (objc_demangle): Renamed to
2165 objc_language::demangle_symbol, and moved later in the file.
2166 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2168 (objc_language::demangle_symbol): Defined outside of class
2169 declaration. The definition is the old objc_demangle with NULL
2170 changed to nullptr, and if conditions relating to nullptr pointers
2171 or null character checks made explicit.
2172 * objc-lang.h (objc_demangle): Delete declaration.
2174 2021-03-22 Martin Liska <mliska@suse.cz>
2176 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2177 (_initialize_arm_tdep): Likewise.
2179 2021-03-20 Tom Tromey <tom@tromey.com>
2181 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2182 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2183 * psymtab.h (make_psymbol_functions): Don't declare.
2184 * psymtab.c (make_psymbol_functions): Remove.
2185 (maintenance_print_psymbols): Update.
2186 * psympriv.h (struct psymbol_functions): Add no-argument
2188 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2189 <partial_symtabs>: Remove.
2190 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2191 * elfread.c (read_partial_symbols): Update.
2192 (elf_symfile_read): Remove check for existing partial symbols.
2194 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2196 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2198 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2200 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2201 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2203 2021-03-20 Tom Tromey <tom@tromey.com>
2205 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2206 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2207 * symfile-debug.c (objfile::has_partial_symbols)
2208 (objfile::find_last_source_symtab)
2209 (objfile::forget_cached_source_info)
2210 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2211 (objfile::print_stats, objfile::dump)
2212 (objfile::expand_symtabs_for_function)
2213 (objfile::expand_all_symtabs)
2214 (objfile::expand_symtabs_with_fullname)
2215 (objfile::map_matching_symbols)
2216 (objfile::expand_symtabs_matching)
2217 (objfile::find_pc_sect_compunit_symtab)
2218 (objfile::map_symbol_filenames)
2219 (objfile::find_compunit_symtab_by_address)
2220 (objfile::lookup_global_symbol_language)
2221 (objfile::require_partial_symbols): Update.
2222 * psymtab.c (maintenance_print_psymbols)
2223 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2224 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2225 * objfiles.c (objfile_relocate1): Update.
2226 * elfread.c (elf_symfile_read): Update.
2228 2021-03-20 Tom Tromey <tom@tromey.com>
2230 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2232 2021-03-20 Tom Tromey <tom@tromey.com>
2234 * psymtab.c (psymbol_functions::count_psyms): Rename.
2235 (psymbol_functions::print_stats): Update.
2236 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2239 2021-03-20 Tom Tromey <tom@tromey.com>
2241 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2242 (psymbol_functions::find_pc_sect_psymtab): Rename.
2243 (psymbol_functions::find_pc_sect_compunit_symtab)
2244 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2245 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2247 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2249 2021-03-20 Tom Tromey <tom@tromey.com>
2251 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2252 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2253 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2255 (add_psymbol_to_bcache): Remove.
2256 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2257 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2259 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2260 <add_psymbol>: Likewise.
2261 (standard_psymtab, legacy_psymtab): Likewise.
2262 * mdebugread.c (parse_partial_symbols): Update.
2263 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2264 (handle_psymbol_enumerators): Update.
2265 (new_psymtab): Add partial_symtabs parameter.
2266 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2267 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2269 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2270 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2272 * dbxread.c (read_dbx_symtab): Update.
2273 (start_psymtab): Add partial_symtabs parameter.
2274 (dbx_end_psymtab): Update.
2275 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2276 (ctf_psymtab): Add partial_symtabs parameter.
2277 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2279 (scan_partial_symbols): Add partial_symtabs parameter.
2280 (scan_partial_symbols, elfctf_build_psymtabs)
2281 (ctf_psymtab_add_enums): Update.
2283 2021-03-20 Tom Tromey <tom@tromey.com>
2285 * symfile.c (read_symbols): Use objfile method.
2286 * symfile-debug.c (objfile::require_partial_symbols): New method.
2287 * psymtab.h (require_partial_symbols): Don't declare.
2288 * psymtab.c (require_partial_symbols): Use objfile method. Now
2290 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2291 (psymbol_functions::lookup_symbol)
2292 (psymbol_functions::lookup_global_symbol_language)
2293 (psymbol_functions::find_last_source_symtab)
2294 (psymbol_functions::forget_cached_source_info)
2295 (psymbol_functions::print_stats)
2296 (psymbol_functions::expand_symtabs_for_function)
2297 (psymbol_functions::expand_all_symtabs)
2298 (psymbol_functions::expand_symtabs_with_fullname)
2299 (psymbol_functions::map_symbol_filenames)
2300 (psymbol_functions::map_matching_symbols)
2301 (psymbol_functions::expand_symtabs_matching)
2302 (psymbol_functions::find_compunit_symtab_by_address)
2303 (maintenance_print_psymbols, maintenance_info_psymtabs)
2304 (maintenance_check_psymtabs): Update.
2305 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2308 2021-03-20 Tom Tromey <tom@tromey.com>
2310 * xcoffread.c (xcoff_sym_fns): Update.
2311 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2312 * symfile-debug.c (objfile::has_partial_symbols): Use
2313 can_lazily_read_symbols.
2314 (debug_sym_read_psymbols): Remove.
2315 (debug_sym_fns, install_symfile_debug_logging): Update.
2316 * quick-symbol.h (struct quick_symbol_functions)
2317 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2318 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2319 * mipsread.c (ecoff_sym_fns): Update.
2320 * machoread.c (macho_sym_fns): Update.
2321 * elfread.c (struct lazy_dwarf_reader): New.
2322 (elf_symfile_read): Update.
2323 (read_psyms): Now a method of lazy_dwarf_reader.
2324 (elf_sym_fns): Update.
2325 (elf_sym_fns_lazy_psyms): Remove.
2326 * dbxread.c (aout_sym_fns): Update.
2327 * coffread.c (coff_sym_fns): Update.
2329 2021-03-20 Tom Tromey <tom@tromey.com>
2331 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2332 (reread_symbols): Move reset_psymtabs call later.
2333 * objfiles.c (objfile::objfile): Don't initialize
2336 2021-03-20 Tom Tromey <tom@tromey.com>
2338 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2339 set_partial_symtabs.
2340 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2341 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2343 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2345 (psymbol_functions::find_pc_sect_compunit_symtab)
2346 (psymbol_functions::print_stats, psymbol_functions::dump)
2347 (psymbol_functions::has_symbols): Update.
2348 (make_psymbol_functions, dump_psymtab_addrmap): Add
2349 partial_symtabs parameter.
2350 (maintenance_print_psymbols): Update.
2351 (psymbol_functions::expand_symtabs_matching): Update.
2352 * psympriv.h (struct psymbol_functions): Add constructor.
2353 <m_partial_symtabs>: New member.
2354 <set_partial_symtabs>: New method.
2356 2021-03-20 Tom Tromey <tom@tromey.com>
2358 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2360 (process_psymtab_comp_unit_reader)
2361 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2362 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2363 Reference psymtabs via per_bfd.
2365 2021-03-20 Tom Tromey <tom@tromey.com>
2367 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2369 (add_address_entry): Remove objfile parameter.
2370 (add_address_entry_worker): Update.
2371 (write_address_map): Replace objfile parameter with per_bfd.
2372 (write_gdbindex, write_psymtabs_to_index): Update.
2374 2021-03-20 Tom Tromey <tom@tromey.com>
2376 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2377 print_bcache parameter.
2378 * symfile-debug.c (objfile::print_stats): Add print_bcache
2380 * quick-symbol.h (struct quick_symbol_functions)
2381 <print_stats>: Add print_bcache parameter.
2382 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2384 (print_objfile_statistics): Move psymtab code to psymtab.c.
2385 * psymtab.c (count_psyms): Move from symmisc.c.
2386 (psymbol_functions::print_stats): Print partial symbol and bcache
2387 statistics. Add print_bcache parameter.
2388 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2389 (struct objfile) <print_stats>: Add print_bcache parameter.
2390 * maint.c (maintenance_print_statistics): Update.
2392 2021-03-20 Tom Tromey <tom@tromey.com>
2394 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2396 * dwarf2/read.c (create_addrmap_from_index)
2397 (create_addrmap_from_aranges): Set per_bfd addrmap.
2398 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2399 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2401 (dwarf2_read_debug_names): Don't set partial_symtabs.
2402 (dwarf2_initialize_objfile): Likewise.
2404 2021-03-20 Tom Tromey <tom@tromey.com>
2406 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2409 2021-03-20 Tom Tromey <tom@tromey.com>
2411 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2412 (~psymtab_discarder, keep): Update.
2413 <m_objfile>: Remove.
2414 <m_partial_symtabs>: New member.
2415 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2417 2021-03-20 Tom Tromey <tom@tromey.com>
2419 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2420 (xcoff_end_psymtab): Update.
2421 (scan_xcoff_symtab): Add partial_symtabs parameter.
2422 (xcoff_initial_scan): Update.
2423 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2424 * mdebugread.c (mdebug_build_psymtabs): Update.
2425 (parse_partial_symbols): Add partial_symtabs parameter.
2426 * dbxread.c (dbx_symfile_read): Update.
2427 (read_dbx_symtab): Add partial_symtabs parameter.
2428 (read_dbx_symtab): Update.
2429 (dbx_end_psymtab): Add partial_symtabs parameter.
2431 2021-03-20 Tom Tromey <tom@tromey.com>
2433 * quick-symbol.h (struct quick_symbol_functions)
2434 <relocated>: New method.
2435 * psymtab.h (struct psymbol_functions) <relocated>: New
2437 <fill_psymbol_map>: Declare method.
2438 <m_psymbol_map>: New member.
2439 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2440 (psymbol_functions::find_compunit_symtab_by_address): Update.
2441 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2442 (struct objfile) <psymbol_map>: Remove.
2443 * objfiles.c (objfile_relocate1): Update.
2445 2021-03-20 Tom Tromey <tom@tromey.com>
2447 * psympriv.h (struct psymbol_functions): New.
2448 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2449 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2450 (objfile::lookup_global_symbol_language): Update.
2451 * quick-symbol.h (struct quick_symbol_functions): Convert function
2452 pointers to methods. Add virtual destructor.
2453 (quick_symbol_functions_up): New typedef.
2454 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2455 (dwarf2_debug_names_functions): Don't declare.
2456 (make_psymbol_functions): Declare.
2457 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2458 (psymbol_functions::find_pc_sect_compunit_symtab)
2459 (psymbol_functions::lookup_symbol)
2460 (psymbol_functions::lookup_global_symbol_language)
2461 (psymbol_functions::find_last_source_symtab)
2462 (psymbol_functions::forget_cached_source_info)
2463 (psymbol_functions::print_stats, psymbol_functions::dump)
2464 (psymbol_functions::expand_symtabs_for_function)
2465 (psymbol_functions::expand_all_symtabs)
2466 (psymbol_functions::expand_symtabs_with_fullname)
2467 (psymbol_functions::map_symbol_filenames)
2468 (psymbol_functions::map_matching_symbols)
2469 (psymbol_functions::expand_symtabs_matching)
2470 (psymbol_functions::has_symbols)
2471 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2472 (psym_functions): Remove.
2473 (make_psymbol_functions): New function.
2474 * objfiles.h (struct objfile) <qf>: Change type.
2475 * elfread.c (elf_symfile_read): Update.
2476 * dwarf2/read.c (struct dwarf2_base_index_functions)
2477 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2478 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2479 (dwarf2_base_index_functions::find_last_source_symtab)
2480 (dwarf2_base_index_functions::forget_cached_source_info)
2481 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2482 (dwarf2_gdb_index::lookup_symbol)
2483 (dwarf2_base_index_functions::print_stats)
2484 (dwarf2_gdb_index::dump)
2485 (dwarf2_gdb_index::expand_symtabs_for_function)
2486 (dwarf2_base_index_functions::expand_all_symtabs)
2487 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2489 (dwarf2_gdb_index::map_matching_symbols): New method.
2490 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2491 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2492 (dwarf2_base_index_functions::map_symbol_filenames)
2493 (dwarf2_base_index_functions::has_symbols): Rename.
2494 (dwarf2_gdb_index_functions): Remove.
2495 (dwarf2_debug_names_index::lookup_symbol)
2496 (dwarf2_debug_names_index::dump)
2497 (dwarf2_debug_names_index::expand_symtabs_for_function)
2498 (dwarf2_debug_names_index::map_matching_symbols)
2499 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2500 (dwarf2_debug_names_functions): Remove.
2501 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2504 2021-03-20 Tom Tromey <tom@tromey.com>
2506 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2508 * xcoffread.c (xcoff_sym_fns): Update.
2509 * symfile.h (struct sym_fns) <qf>: Remove.
2510 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2511 * symfile-debug.c (objfile::has_partial_symbols)
2512 (objfile::find_last_source_symtab)
2513 (objfile::forget_cached_source_info)
2514 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2515 (objfile::print_stats, objfile::dump)
2516 (objfile::expand_symtabs_for_function)
2517 (objfile::expand_all_symtabs)
2518 (objfile::expand_symtabs_with_fullname)
2519 (objfile::map_matching_symbols)
2520 (objfile::expand_symtabs_matching)
2521 (objfile::find_pc_sect_compunit_symtab)
2522 (objfile::map_symbol_filenames)
2523 (objfile::find_compunit_symtab_by_address)
2524 (objfile::lookup_global_symbol_language, debug_sym_fns)
2525 (install_symfile_debug_logging): Update.
2526 * objfiles.h (struct objfile) <qf>: New member.
2527 * mipsread.c (ecoff_sym_fns): Update.
2528 * machoread.c (macho_sym_fns): Update.
2529 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2531 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2532 * dbxread.c (aout_sym_fns): Update.
2533 * coffread.c (coff_sym_fns): Update.
2535 2021-03-20 Tom Tromey <tom@tromey.com>
2537 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2538 (expand_symtabs_file_matcher_ftype)
2539 (expand_symtabs_symbol_matcher_ftype)
2540 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2541 Move to quick-symbol.h.
2542 * quick-symbol.h: New file.
2544 2021-03-20 Tom Tromey <tom@tromey.com>
2546 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2547 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2548 (basic_lookup_transparent_type_quick)
2549 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2550 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2552 * symmisc.c (print_objfile_statistics, dump_objfile)
2553 (maintenance_expand_symtabs): Update.
2554 * symfile.c (symbol_file_add_with_addrs)
2555 (expand_symtabs_matching, map_symbol_filenames): Update.
2556 * symfile-debug.c (objfile::has_partial_symbols)
2557 (objfile::find_last_source_symtab)
2558 (objfile::forget_cached_source_info)
2559 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2560 (objfile::print_stats, objfile::dump)
2561 (objfile::expand_symtabs_for_function)
2562 (objfile::expand_all_symtabs)
2563 (objfile::expand_symtabs_with_fullname)
2564 (objfile::map_matching_symbols)
2565 (objfile::expand_symtabs_matching)
2566 (objfile::find_pc_sect_compunit_symtab)
2567 (objfile::map_symbol_filenames)
2568 (objfile::find_compunit_symtab_by_address)
2569 (objfile::lookup_global_symbol_language): New methods.
2570 (debug_sym_quick_functions): Remove.
2571 (debug_sym_fns, install_symfile_debug_logging): Update.
2572 * source.c (forget_cached_source_info_for_objfile)
2573 (select_source_symtab): Update.
2574 * objfiles.h (struct objfile): Add methods corresponding to
2575 quick_symbol_functions.
2576 * objfiles.c (objfile::has_partial_symbols): Move to
2578 * linespec.c (iterate_over_all_matching_symtabs): Update.
2579 * cp-support.c (add_symbol_overload_list_qualified): Update.
2580 * ada-lang.c (add_nonlocal_symbols): Update.
2582 2021-03-20 Tom Tromey <tom@tromey.com>
2584 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2585 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2587 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2588 * psymtab.c (psym_has_symbols): Return bool.
2589 * objfiles.c (objfile::has_partial_symbols): Return bool.
2590 * dwarf2/read.c (dw2_has_symbols): Return bool.
2592 2021-03-20 Tom Tromey <tom@tromey.com>
2594 * symfile.c (read_symbols): Update.
2595 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2596 (objfile_has_partial_symbols): Don't declare.
2597 * objfiles.c (objfile::has_partial_symbols): Rename from
2598 objfile_has_partial_symbols.
2599 (objfile_has_symbols, have_partial_symbols): Update.
2600 * elfread.c (elf_symfile_read): Update.
2601 * dwarf2/read.c (dwarf2_has_info): Update.
2602 * coffread.c (coff_symfile_read): Update.
2604 2021-03-20 Tom Tromey <tom@tromey.com>
2606 * coffread.c: Include dwarf2/public.h.
2607 * dwarf2/frame.c: Include dwarf2/public.h.
2608 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2609 * dwarf2/public.h: New file.
2610 * dwarf2/read.c: Include dwarf2/public.h.
2611 * elfread.c: Include dwarf2/public.h.
2612 * machoread.c: Include dwarf2/public.h.
2613 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2614 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2615 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2616 * xcoffread.c: Include dwarf2/public.h.
2618 2021-03-20 Tom Tromey <tom@tromey.com>
2620 * symfile.h (enum dwarf2_section_enum)
2621 (dwarf2_get_section_info): Move to dwarf2/read.h.
2622 * dwarf2/read.h (enum dwarf2_section_enum)
2623 (dwarf2_get_section_info): Move from symfile.h.
2625 2021-03-19 Pedro Alves <pedro@palves.net>
2627 * thread.c (any_thread_of_inferior): Check if there's a selected
2628 thread before calling inferior_thread().
2630 2021-03-18 Tom Tromey <tromey@adacore.com>
2632 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2634 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2635 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2637 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2639 * python/py-param.c (get_set_value): Update header comment.
2641 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2643 * infrun.c (check_multi_target_resumption): Remove argument to
2644 all_non_exited_inferiors.
2646 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2648 * windows-nat.c (windows_init_thread_list): Add message to
2651 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2653 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2654 well as PyLong_Check for Python 2.
2656 2021-03-15 Tom Tromey <tromey@adacore.com>
2659 * rust-exp.y (maker_map): Use gdb::hash_enum.
2660 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2662 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2664 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2667 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2669 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2670 parameter, adjust caller.
2672 2021-03-15 Tom Tromey <tromey@adacore.com>
2674 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2676 2021-03-15 Tom Tromey <tromey@adacore.com>
2678 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2679 ada_ensure_varsize_limit.
2681 2021-03-15 Tom Tromey <tromey@adacore.com>
2683 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2685 * ada-exp.y (maybe_overload): New function.
2686 (ada_wrap_overload): New function.
2687 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2688 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2689 (or_else_exp, xor_exp, primary): Update.
2691 2021-03-15 Tom Tromey <tromey@adacore.com>
2694 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2695 call for tagged type.
2697 2021-03-15 Tom Tromey <tromey@adacore.com>
2699 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2702 2021-03-15 Tom Tromey <tromey@adacore.com>
2704 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2706 (ada_assign_operation::evaluate): Update.
2707 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2710 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2712 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2714 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2716 * python/python.c (gdbpy_source_objfile_script): Use
2717 make_scoped_restore to restore gdbpy_current_objfile.
2718 (gdbpy_execute_objfile_script): Likewise.
2720 2021-03-14 Tom Tromey <tom@tromey.com>
2722 * dwarf2/read.c (read_attribute_value): Use cu_header
2725 2021-03-14 Tom Tromey <tom@tromey.com>
2727 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2728 (peek_die_abbrev): Use reader.abfd.
2730 2021-03-14 Tom Tromey <tom@tromey.com>
2732 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2735 2021-03-13 Tom Tromey <tom@tromey.com>
2737 * dwarf2/read.c (struct partial_die_info): Update.
2738 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2739 (load_partial_dies, partial_die_info::partial_die_info): Update.
2740 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2742 2021-03-13 Tom Tromey <tom@tromey.com>
2744 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2746 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2749 * cp-support.c: Use scoped_segv_handler_restore.
2750 * event-top.c (thread_local_segv_handler): Made static.
2751 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2753 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2755 * event-top.h (class scoped_segv_handler_restore): New class.
2756 (thread_local_segv_handler): Removed.
2758 2021-03-10 Tom Tromey <tromey@adacore.com>
2760 * parser-defs.h (parser_state): Change completion to bool.
2761 <parse_completion>: Likewise.
2762 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2763 (ada_resolve_variable, ada_resolve_function): Update.
2764 * ada-lang.c (ada_find_operator_symbol): Change
2765 parse_completion to bool.
2766 (ada_resolve_funcall, ada_resolve_variable)
2767 (ada_resolve_function): Likewise.
2769 2021-03-09 Tom Tromey <tromey@adacore.com>
2771 * eval.c (operation::evaluate_funcall): Use function formal
2772 parameter types when evaluating.
2774 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2776 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2777 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2778 and owner to m_owner.
2780 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2782 * f-exp.h (eval_op_f_loc): Declare.
2783 (expr::fortran_loc_operation): New typedef.
2784 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2786 (f77_keywords): Add LOC keyword.
2787 * f-lang.c (eval_op_f_loc): New function.
2788 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2790 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2792 * f-exp.h (eval_op_f_array_shape): Declare.
2793 (fortran_array_shape_operation): New type.
2794 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2796 (f77_keywords): Add "shape" keyword.
2797 * f-lang.c (fortran_array_shape): New function.
2798 (eval_op_f_array_shape): New function.
2799 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2801 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2803 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2805 (expr::fortran_array_size_1arg): New type.
2806 (expr::fortran_array_size_2arg): Likewise.
2807 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2808 UNOP_OR_BINOP_INTRINSIC.
2809 (f77_keywords): Add "size" keyword.
2810 * f-lang.c (fortran_array_size): New function.
2811 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2812 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2814 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2816 * f-exp.h (eval_op_f_rank): Declare.
2817 (expr::fortran_rank_operation): New typedef.
2818 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2820 (f77_keywords): Add "rank" keyword.
2821 * f-lang.c (eval_op_f_rank): New function.
2822 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2824 2021-03-08 Tom Tromey <tom@tromey.com>
2826 * printcmd.c (set_command): Remove null check.
2827 * value.c (init_if_undefined_command): Remove null check.
2829 2021-03-08 Tom Tromey <tom@tromey.com>
2831 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2833 * p-exp.y (variable): Update.
2834 * go-exp.y (variable): Update.
2835 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2836 Remove overload for objfile.
2837 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2839 (check_objfile): Likewise.
2840 (dump_for_expression): Likewise. Remove overload for objfile.
2841 (class var_msym_value_operation): Use bound_minimal_symbol.
2842 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2844 (var_msym_value_operation::evaluate_for_address)
2845 (var_msym_value_operation::evaluate_for_sizeof)
2846 (var_msym_value_operation::evaluate_for_cast): Update.
2847 * d-exp.y (PrimaryExpression): Update.
2848 * c-exp.y (variable): Update.
2849 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2850 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2852 * ada-exp.y (write_var_or_type): Update.
2854 2021-03-08 Tom Tromey <tom@tromey.com>
2856 * parser-defs.h (exp_uses_objfile): Return bool.
2857 * parse.c (exp_uses_objfile): Return bool.
2859 2021-03-08 Tom Tromey <tom@tromey.com>
2861 * value.h (eval_skip_value): Don't declare.
2862 * opencl-lang.c (eval_opencl_assign): Update.
2863 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2864 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2865 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2866 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2867 * expop.h (typeof_operation::evaluate)
2868 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2869 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2870 (cxx_cast_operation::evaluate): Update.
2871 * eval.c (eval_skip_value): Remove.
2872 (eval_op_scope, eval_op_var_entry_value)
2873 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2874 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2875 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2876 (eval_op_binary, eval_op_subscript, eval_op_equal)
2877 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2878 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2879 (eval_op_complement, eval_op_lognot, eval_op_ind)
2880 (eval_op_memval, eval_op_preinc, eval_op_predec)
2881 (eval_op_postinc, eval_op_postdec, eval_op_type)
2882 (eval_binop_assign_modify, eval_op_objc_msgcall)
2883 (eval_multi_subscript, logical_and_operation::evaluate)
2884 (logical_or_operation::evaluate, array_operation::evaluate)
2885 (operation::evaluate_for_cast)
2886 (var_msym_value_operation::evaluate_for_cast)
2887 (var_value_operation::evaluate_for_cast): Update.
2888 * c-lang.c (c_string_operation::evaluate): Update.
2889 * c-exp.h (objc_nsstring_operation::evaluate)
2890 (objc_selector_operation::evaluate): Update.
2891 * ada-lang.c (ada_assign_operation::evaluate)
2892 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2893 (ada_atr_size): Update.
2895 2021-03-08 Tom Tromey <tom@tromey.com>
2897 * eval.c: Merge "namespace" scopes.
2899 2021-03-08 Tom Tromey <tom@tromey.com>
2901 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2903 * parse.c (expr_builder::expr_builder, expr_builder::release):
2906 2021-03-08 Tom Tromey <tom@tromey.com>
2908 * parse.c (expression::expression, expression::~expression):
2910 * expression.h (struct expression): Inline constructor. Remove
2913 2021-03-08 Tom Tromey <tom@tromey.com>
2915 * std-operator.def (BINOP_END): Remove.
2916 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2917 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2918 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2919 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2920 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2923 2021-03-08 Tom Tromey <tom@tromey.com>
2925 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2927 2021-03-08 Tom Tromey <tom@tromey.com>
2929 * std-operator.def (OP_EXTENDED0): Remove.
2931 2021-03-08 Tom Tromey <tom@tromey.com>
2933 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2934 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2937 2021-03-08 Tom Tromey <tom@tromey.com>
2939 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2940 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2942 2021-03-08 Tom Tromey <tom@tromey.com>
2944 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2945 * ada-lang.c (ada_binop_minmax): Update.
2946 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2947 Use BINOP_MIN and BINOP_MAX.
2949 2021-03-08 Tom Tromey <tom@tromey.com>
2951 * value.h (evaluate_subexp_with_coercion): Don't declare.
2952 * parse.c (exp_descriptor_standard): Remove.
2953 (expr_builder::expr_builder, expr_builder::release): Update.
2954 (expression::expression): Remove size_t parameter.
2955 (expression::~expression): Simplify.
2956 (expression::resize): Remove.
2957 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2958 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2959 (write_exp_elt_longcst, write_exp_elt_floatcst)
2960 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2961 (write_exp_string_vector, write_exp_bitstring): Remove.
2962 * p-lang.h (class pascal_language) <opcode_print_table,
2963 op_print_tab>: Remove.
2964 * p-lang.c (pascal_language::op_print_tab): Remove.
2965 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2967 * objc-lang.c (objc_op_print_tab): Remove.
2968 (class objc_language) <opcode_print_table>: Remove.
2969 * m2-lang.h (class m2_language) <opcode_print_table,
2970 op_print_tab>: Remove.
2971 * m2-lang.c (m2_language::op_print_tab): Remove.
2972 * language.h (struct language_defn) <post_parser, expression_ops,
2973 opcode_print_table>: Remove.
2974 * language.c (language_defn::expression_ops)
2975 (auto_or_unknown_language::opcode_print_table): Remove.
2976 * go-lang.h (class go_language) <opcode_print_table,
2977 op_print_tab>: Remove.
2978 * go-lang.c (go_language::op_print_tab): Remove.
2979 * f-lang.h (class f_language) <opcode_print_table>: Remove
2980 <op_print_tab>: Remove.
2981 * f-lang.c (f_language::op_print_tab): Remove.
2982 * expression.h (union exp_element): Remove.
2983 (struct expression): Remove size_t parameter from constructor.
2985 <first_opcode>: Update.
2986 <nelts, elts>: Remove.
2987 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2988 (evaluate_subexp_standard, print_expression, op_string)
2989 (dump_raw_expression): Don't declare.
2990 * expprint.c (print_expression, print_subexp)
2991 (print_subexp_funcall, print_subexp_standard, op_string)
2992 (dump_raw_expression, dump_subexp, dump_subexp_body)
2993 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2994 (dump_prefix_expression): Update.
2995 * eval.c (evaluate_subexp): Remove.
2996 (evaluate_expression, evaluate_type): Update.
2997 (evaluate_subexpression_type): Remove.
2998 (fetch_subexp_value): Remove "pc" parameter. Update.
2999 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3000 (evaluate_subexp_standard, evaluate_subexp_for_address)
3001 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3002 (evaluate_subexp_for_cast): Remove.
3003 (parse_and_eval_type): Update.
3004 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3005 * d-lang.c (d_op_print_tab): Remove.
3006 (class d_language) <opcode_print_table>: Remove.
3007 * c-lang.h (c_op_print_tab): Don't declare.
3008 * c-lang.c (c_op_print_tab): Remove.
3009 (class c_language, class cplus_language, class asm_language, class
3010 minimal_language) <opcode_print_table>: Remove.
3011 * breakpoint.c (update_watchpoint, watchpoint_check)
3012 (watchpoint_exp_is_const, watch_command_1): Update.
3013 * ax-gdb.h (union exp_element): Don't declare.
3014 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3015 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3016 (gen_expr_binop_rest): Remove.
3017 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3018 * ada-lang.c (ada_op_print_tab): Remove.
3019 (class ada_language) <post_parser, opcode_print_table>: Remove.
3021 2021-03-08 Tom Tromey <tom@tromey.com>
3023 * go-lang.c (go_language::expression_ops): Don't declare.
3024 * go-lang.h (class go_language) <expression_ops>: Remove.
3025 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3027 (class opencl_language) <expression_ops>: Remove.
3028 * d-lang.c (class d_language) <expression_ops>: Remove.
3029 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3030 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3031 (class c_language, class cplus_language, class asm_language)
3032 (class minimal_language) <expression_ops>: Remove.
3034 2021-03-08 Tom Tromey <tom@tromey.com>
3036 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3037 (evaluate_subexp_type, assign_aggregate)
3038 (aggregate_assign_positional, aggregate_assign_from_choices)
3039 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3040 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3041 (ada_operator_check, ada_forward_operator_length)
3042 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3044 (post_parser): Update.
3045 (class ada_language) <expresssion_ops>: Remove.
3047 2021-03-08 Tom Tromey <tom@tromey.com>
3049 * m2-lang.h (class m2_language) <expresssion_ops,
3050 exp_descriptor_modula2>: Remove.
3051 * m2-lang.c (evaluate_subexp_modula2)
3052 (m2_language::exp_descriptor_modula2): Remove.
3054 2021-03-08 Tom Tromey <tom@tromey.com>
3056 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3057 <exp_descriptor_tab>: Remove.
3058 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3059 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3060 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3061 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3064 2021-03-08 Tom Tromey <tom@tromey.com>
3066 * rust-lang.h (class rust_language) <expression_ops,
3067 exp_descriptor_tab>: Remove.
3068 * rust-lang.c (rust_evaluate_funcall): Remove.
3069 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3071 (rust_evaluate_subexp): Remove.
3072 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3073 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3074 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3076 2021-03-08 Tom Tromey <tom@tromey.com>
3078 * ada-exp.y: Create operations.
3079 (empty_stoken): Remove.
3080 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3081 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3082 (components): New global.
3083 (push_component, choice_component, pop_component, pop_components):
3085 (associations): New global
3086 (push_association, pop_association, pop_associations): New
3088 (ada_parse): Update.
3089 (write_var_from_sym, write_int): Create operations.
3090 (write_exp_op_with_string): Remove.
3091 (write_object_renaming, write_selectors, write_ambiguous_var)
3092 (write_var_or_type, write_name_assoc): Create operations.
3093 * ada-lang.h (ada_index_type): Declare.
3094 * ada-lang.c (ada_index_type): No longer static.
3096 2021-03-08 Tom Tromey <tom@tromey.com>
3098 * f-exp.y: Create operations.
3099 (f_language::parser): Update.
3101 2021-03-08 Tom Tromey <tom@tromey.com>
3103 * m2-exp.y: Create operations.
3104 (m2_language::parser): Update.
3106 2021-03-08 Tom Tromey <tom@tromey.com>
3108 * p-exp.y: Create operations.
3109 (pascal_language::parser): Update.
3111 2021-03-08 Tom Tromey <tom@tromey.com>
3113 * d-exp.y: Create operations.
3116 2021-03-08 Tom Tromey <tom@tromey.com>
3118 * go-exp.y: Create operations.
3119 (go_language::parser): Update.
3121 2021-03-08 Tom Tromey <tom@tromey.com>
3123 * objc-lang.c (end_msglist): Create operations.
3124 * c-exp.y: Change parser to create operations.
3125 (write_destructor_name): Remove.
3128 2021-03-08 Tom Tromey <tom@tromey.com>
3130 * rust-exp.y: Create operations.
3131 (rust_parser::convert_params_to_expression): Change return type.
3132 (binop_maker_ftype): New typedef.
3133 (maker_map): New global.
3134 (rust_parser::convert_ast_to_expression): Change return type.
3135 (rust_language::parser): Update.
3136 (_initialize_rust_exp): Initialize maker_map.
3138 2021-03-08 Tom Tromey <tom@tromey.com>
3140 * stap-probe.c (binop_maker_ftype): New typedef.
3141 (stap_maker_map): New global.
3142 (stap_make_binop): New function.
3143 (stap_parse_register_operand): Return operation_up.
3144 (stap_parse_single_operand, stap_parse_argument_conditionally)
3145 (stap_parse_argument_1): Likewise.
3146 (stap_parse_argument): Create operations.
3147 (stap_probe::parse_arguments): Update.
3148 (_initialize_stap_probe): Initialize stap_maker_map.
3149 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3151 * i386-tdep.h (i386_stap_parse_special_token): Change return
3153 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3154 (i386_stap_parse_special_token_three_arg_disp)
3155 (i386_stap_parse_special_token): Change return type.
3156 * gdbarch.sh (stap_parse_special_token): Change return type.
3157 * gdbarch.c: Rebuild.
3158 * gdbarch.h: Rebuild.
3159 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3161 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3164 2021-03-08 Tom Tromey <tom@tromey.com>
3166 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3167 * gdbarch.h: Rebuild.
3168 * gdbarch.c: Rebuild.
3169 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3170 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3172 (amd64_dtrace_parse_probe_argument): Update.
3174 2021-03-08 Tom Tromey <tom@tromey.com>
3176 * parser-defs.h (struct parser_state) <push, push_new,
3177 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3178 wrap2>: New methods.
3179 <m_operations>: New member.
3180 * parse.c (parser_state::push_c_string)
3181 (parser_state::push_symbol, parser_state::push_dollar): New
3184 2021-03-08 Tom Tromey <tom@tromey.com>
3186 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3188 (struct parser_state) <mark_struct_expression>: New method.
3189 * parse.c (parser_state::mark_struct_expression): Update assert.
3190 (parser_state::mark_struct_expression): New method.
3191 (parser_state::mark_completion_tag): Update assert.
3192 (parse_expression_for_completion): Handle expout_last_op.
3194 2021-03-08 Tom Tromey <tom@tromey.com>
3196 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3198 * value.h (fetch_subexp_value): Add "op" parameter.
3199 * value.c (init_if_undefined_command): Update.
3200 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3201 * stap-probe.c (stap_probe::compile_to_ax): Update.
3202 * printcmd.c (set_command): Update.
3203 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3205 * parser-defs.h (struct expr_builder) <set_operation>: New
3207 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3208 * expression.h (struct expression) <first_opcode>: Update.
3210 * expprint.c (dump_raw_expression, dump_prefix_expression):
3212 * expop.h (class var_value_operation) <get_symbol>: New method.
3213 (class register_operation) <get_name>: New method.
3214 (class equal_operation): No longer a typedef, now a subclass.
3215 (class unop_memval_operation) <get_type>: New method.
3216 (class assign_operation) <get_lhs>: New method.
3217 (class unop_cast_operation) <get_type>: New method.
3218 * eval.c (evaluate_expression, evaluate_type)
3219 (evaluate_subexpression_type): Update.
3220 (fetch_subexp_value): Add "op" parameter.
3221 (parse_and_eval_type): Update.
3222 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3223 * breakpoint.c (update_watchpoint, watchpoint_check)
3224 (watchpoint_exp_is_const, watch_command_1): Update.
3225 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3228 2021-03-08 Tom Tromey <tom@tromey.com>
3230 * ada-lang.c (ada_value_binop): Do not use op_string.
3232 2021-03-08 Tom Tromey <tom@tromey.com>
3234 * expprint.c (dump_for_expression): New overload.
3235 * expop.h (check_objfile, dump_for_expression): Declare new
3237 * ada-lang.c (check_objfile): New overload.
3238 (assign_component, ada_aggregate_component::uses_objfile)
3239 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3240 (ada_aggregate_component::assign_aggregate)
3241 (ada_positional_component::uses_objfile)
3242 (ada_positional_component::dump, ada_positional_component::assign)
3243 (ada_discrete_range_association::uses_objfile)
3244 (ada_discrete_range_association::dump)
3245 (ada_discrete_range_association::assign)
3246 (ada_name_association::uses_objfile, ada_name_association::dump)
3247 (ada_name_association::assign)
3248 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3249 (ada_choices_component::assign)
3250 (ada_others_component::uses_objfile, ada_others_component::dump)
3251 (ada_others_component::assign, ada_assign_operation::evaluate):
3253 * ada-exp.h (ada_string_operation) <get_name>: New method.
3254 (class ada_assign_operation): New.
3255 (class ada_component): New.
3256 (ada_component_up): New typedef.
3257 (class ada_aggregate_operation, class ada_aggregate_component)
3258 (class ada_positional_component, class ada_others_component)
3259 (class ada_association): New.
3260 (ada_association_up): New typedef.
3261 (class ada_choices_component)
3262 (class ada_discrete_range_association)
3263 (class ada_name_association): New.
3265 2021-03-08 Tom Tromey <tom@tromey.com>
3267 * ada-lang.c (ada_var_value_operation::resolve)
3268 (ada_funcall_operation::resolve)
3269 (ada_ternop_slice_operation::resolve): New methods.
3270 * ada-exp.h (struct ada_resolvable): New.
3271 (class ada_var_value_operation): Derive from ada_resolvable.
3272 <get_block, resolve>: New methods.
3273 (class ada_funcall_operation): Derive from ada_resolvable.
3274 <resolve>: New method.
3275 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3276 <resolve>: New method.
3278 2021-03-08 Tom Tromey <tom@tromey.com>
3280 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3281 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3283 (class ada_funcall_operation): New.
3285 2021-03-08 Tom Tromey <tom@tromey.com>
3287 * ada-lang.c (ada_structop_operation::evaluate): New method.
3288 * ada-exp.h (class ada_structop_operation): New.
3290 2021-03-08 Tom Tromey <tom@tromey.com>
3292 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3293 * ada-exp.h (class ada_unop_ind_operation): New.
3295 2021-03-08 Tom Tromey <tom@tromey.com>
3297 * ada-lang.c (ada_binop_exp): No longer static.
3298 * ada-exp.h (ada_binop_exp_operation): New typedef.
3300 2021-03-08 Tom Tromey <tom@tromey.com>
3302 * ada-lang.c (ada_val_atr): No longer static.
3303 (ada_atr_val_operation::evaluate): New method.
3304 * ada-exp.h (class ada_atr_val_operation): New.
3306 2021-03-08 Tom Tromey <tom@tromey.com>
3308 * ada-lang.c (ada_pos_atr): No longer static.
3309 * ada-exp.h (ada_pos_operation): New typedef.
3311 2021-03-08 Tom Tromey <tom@tromey.com>
3313 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3315 (ada_evaluate_subexp): Use it.
3317 2021-03-08 Tom Tromey <tom@tromey.com>
3319 * ada-lang.c (ada_binop_minmax): No longer static.
3320 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3323 2021-03-08 Tom Tromey <tom@tromey.com>
3325 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3327 * ada-exp.h (class ada_var_msym_value_operation): New.
3329 2021-03-08 Tom Tromey <tom@tromey.com>
3331 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3332 (ada_var_value_operation::evaluate): New methods.
3333 * ada-exp.h (class ada_var_value_operation): New.
3335 2021-03-08 Tom Tromey <tom@tromey.com>
3337 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3338 * ada-exp.h (class ada_unop_atr_operation): New.
3340 2021-03-08 Tom Tromey <tom@tromey.com>
3342 * ada-lang.c (ada_binop_in_bounds): No longer static.
3343 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3345 2021-03-08 Tom Tromey <tom@tromey.com>
3347 * ada-lang.c (ada_ternop_slice): No longer static.
3348 * ada-exp.h (class ada_ternop_slice_operation): New.
3350 2021-03-08 Tom Tromey <tom@tromey.com>
3352 * ada-exp.h (ada_bitwise_operation): New template class.
3353 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3354 (ada_bitwise_xor_operation): New typedefs.
3356 2021-03-08 Tom Tromey <tom@tromey.com>
3358 * ada-lang.c (ada_equal_binop): No longer static.
3359 * ada-exp.h (class ada_binop_equal_operation): New.
3361 2021-03-08 Tom Tromey <tom@tromey.com>
3363 * ada-lang.c (ada_mult_binop): No longer static.
3364 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3365 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3367 2021-03-08 Tom Tromey <tom@tromey.com>
3369 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3370 * ada-exp.h (class ada_binop_addsub_operation): New.
3372 2021-03-08 Tom Tromey <tom@tromey.com>
3374 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3375 (ada_resolve_variable): Declare.
3376 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3377 (ada_resolve_variable): New functions.
3378 (resolve_subexp): Update.
3380 2021-03-08 Tom Tromey <tom@tromey.com>
3382 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3384 * c-exp.h (class opencl_ternop_cond_operation): New.
3386 2021-03-08 Tom Tromey <tom@tromey.com>
3388 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3390 * c-exp.h (class opencl_logical_binop_operation): New.
3392 2021-03-08 Tom Tromey <tom@tromey.com>
3394 * opencl-lang.c (opencl_structop_operation::evaluate): New
3396 * c-exp.h (class opencl_structop_operation): New.
3398 2021-03-08 Tom Tromey <tom@tromey.com>
3400 * opencl-lang.c (opencl_logical_not): No longer static. Change
3402 (evaluate_subexp_opencl): Update.
3403 * c-exp.h (opencl_notequal_operation): New typedef.
3405 2021-03-08 Tom Tromey <tom@tromey.com>
3407 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3408 static. Change parameters.
3409 (eval_opencl_assign): No longer static. Add "op" parameter.
3410 (evaluate_subexp_opencl): Update.
3411 * c-exp.h (opencl_binop_operation): New template class.
3412 (opencl_assign_operation, opencl_equal_operation)
3413 (opencl_notequal_operation, opencl_less_operation)
3414 (opencl_gtr_operation, opencl_geq_operation)
3415 (opencl_leq_operation): New typedefs.
3417 2021-03-08 Tom Tromey <tom@tromey.com>
3419 * opencl-lang.c (opencl_value_cast): No longer static.
3420 * c-exp.h (opencl_cast_type_operation): New typedef.
3422 2021-03-08 Tom Tromey <tom@tromey.com>
3424 * f-exp.h (eval_op_f_allocated): Declare.
3425 (fortran_allocated_operation): New typedef.
3426 * f-lang.c (eval_op_f_allocated): No longer static.
3428 2021-03-08 Tom Tromey <tom@tromey.com>
3430 * f-lang.c (eval_op_f_associated): New functions.
3431 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3434 2021-03-08 Tom Tromey <tom@tromey.com>
3436 * f-lang.c (fortran_bound_1arg::evaluate)
3437 (fortran_bound_2arg::evaluate): New methods.
3438 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3441 2021-03-08 Tom Tromey <tom@tromey.com>
3443 * expop.h (class unop_addr_operation) <get_expression>: New
3445 * f-lang.c (fortran_undetermined::value_subarray)
3446 (fortran_undetermined::evaluate): New methods.
3447 (fortran_prepare_argument): New overload.
3448 * f-exp.h (class fortran_range_operation)
3449 (class fortran_undetermined): New classes.
3451 2021-03-08 Tom Tromey <tom@tromey.com>
3453 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3454 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3457 2021-03-08 Tom Tromey <tom@tromey.com>
3459 * expression.h (class operation) <evaluate_funcall>: New methods.
3460 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3461 (class var_value_operation) <evaluate_funcall>: New method.
3462 (class structop_base_operation) <evaluate_funcall>: New method.
3463 (class var_msym_value_operation) <evaluate_funcall>: New method.
3464 (class structop_member_base): New class.
3465 (class structop_member_operation): Derive from
3466 structop_member_base.
3467 (class structop_mptr_operation): Derive from
3468 structop_member_base.
3469 (class funcall_operation): New class.
3470 * eval.c (operation::evaluate_funcall)
3471 (var_value_operation::evaluate_funcall)
3472 (scope_operation::evaluate_funcall)
3473 (structop_member_base::evaluate_funcall)
3474 (structop_base_operation::evaluate_funcall): New methods.
3476 2021-03-08 Tom Tromey <tom@tromey.com>
3478 * expop.h (class array_operation): New.
3479 * eval.c (array_operation::evaluate_struct_tuple)
3480 (array_operation::evaluate): New methods.
3482 2021-03-08 Tom Tromey <tom@tromey.com>
3484 * expop.h (class adl_func_operation): New.
3485 * eval.c (adl_func_operation::evaluate): New method.
3487 2021-03-08 Tom Tromey <tom@tromey.com>
3489 * ada-lang.c (ada_unop_in_range): No longer static.
3490 * ada-exp.h (class ada_unop_range_operation): New.
3492 2021-03-08 Tom Tromey <tom@tromey.com>
3494 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3496 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3497 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3499 2021-03-08 Tom Tromey <tom@tromey.com>
3501 * expop.h (class logical_and_operation)
3502 (class logical_or_operation): New.
3503 * eval.c (logical_and_operation::evaluate)
3504 (logical_or_operation::evaluate): New methods.
3505 * ax-gdb.c (logical_and_operation::do_generate_ax)
3506 (logical_or_operation::do_generate_ax): New methods.
3508 2021-03-08 Tom Tromey <tom@tromey.com>
3510 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3512 * m2-exp.h: New file.
3514 2021-03-08 Tom Tromey <tom@tromey.com>
3516 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3517 * rust-exp.h (class rust_aggregate_operation): New.
3519 2021-03-08 Tom Tromey <tom@tromey.com>
3521 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3523 * rust-exp.h (class rust_struct_anon): New.
3524 (class rust_structop): New.
3526 2021-03-08 Tom Tromey <tom@tromey.com>
3528 * rust-lang.c (rust_range): No longer static.
3529 * rust-exp.h (class rust_range_operation): New.
3531 2021-03-08 Tom Tromey <tom@tromey.com>
3533 * rust-lang.c (rust_subscript): No longer static.
3534 * rust-exp.h (class rust_subscript_operation): New.
3536 2021-03-08 Tom Tromey <tom@tromey.com>
3538 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3540 (rust_evaluate_subexp): Update.
3541 * rust-exp.h (class rust_unop_ind_operation): New.
3543 2021-03-08 Tom Tromey <tom@tromey.com>
3545 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3546 longer static. Add "opcode" parameter.
3547 (rust_evaluate_subexp): Update.
3548 * rust-exp.h: New file.
3550 2021-03-08 Tom Tromey <tom@tromey.com>
3552 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3553 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3554 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3555 (evaluate_subexp_f): Update.
3556 * f-exp.h: New file.
3558 2021-03-08 Tom Tromey <tom@tromey.com>
3560 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3561 * ada-exp.h (class ada_ternop_range_operation): New.
3563 2021-03-08 Tom Tromey <tom@tromey.com>
3565 * ada-lang.c (ada_qual_operation::evaluate): New method.
3566 * ada-exp.h (class ada_qual_operation): New.
3568 2021-03-08 Tom Tromey <tom@tromey.com>
3570 * ada-lang.c (ada_string_operation::evaluate): New method.
3571 * ada-exp.h (class ada_string_operation): New.
3573 2021-03-08 Tom Tromey <tom@tromey.com>
3575 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3576 * ada-exp.h: New file.
3578 2021-03-08 Tom Tromey <tom@tromey.com>
3580 * expop.h (class multi_subscript_operation): New.
3581 * eval.c (multi_subscript_operation::evaluate): New method.
3583 2021-03-08 Tom Tromey <tom@tromey.com>
3585 * eval.c (objc_msgcall_operation::evaluate): New method.
3586 * c-exp.h (class objc_msgcall_operation): New.
3588 2021-03-08 Tom Tromey <tom@tromey.com>
3590 * expop.h (class var_value_operation): New.
3591 * eval.c (var_value_operation::evaluate)
3592 (var_value_operation::evaluate_for_address)
3593 (var_value_operation::evaluate_with_coercion)
3594 (var_value_operation::evaluate_for_sizeof)
3595 (var_value_operation::evaluate_for_cast): New methods.
3596 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3598 2021-03-08 Tom Tromey <tom@tromey.com>
3600 * expop.h (cxx_cast_ftype): New typedef.
3601 (cxx_cast_operation): New template.
3602 (dynamic_cast_operation, reinterpret_cast_operation): New
3605 2021-03-08 Tom Tromey <tom@tromey.com>
3607 * expop.h (class unop_cast_type_operation): New.
3608 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3611 2021-03-08 Tom Tromey <tom@tromey.com>
3613 * expop.h (class unop_cast_operation): New.
3614 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3616 2021-03-08 Tom Tromey <tom@tromey.com>
3618 * expop.h (class assign_modify_operation): New.
3619 * eval.c (eval_binop_assign_modify): No longer static.
3620 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3622 2021-03-08 Tom Tromey <tom@tromey.com>
3624 * expop.h (class assign_operation): New.
3625 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3627 2021-03-08 Tom Tromey <tom@tromey.com>
3629 * expop.h (class type_instance_operation): New.
3630 * eval.c (type_instance_operation::evaluate): New method.
3632 2021-03-08 Tom Tromey <tom@tromey.com>
3634 * expop.h (class op_this_operation): New.
3635 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3637 2021-03-08 Tom Tromey <tom@tromey.com>
3639 * expop.h (class unop_memval_operation)
3640 (class unop_memval_type_operation): New.
3641 * eval.c (eval_op_memval): No longer static.
3642 (unop_memval_operation::evaluate_for_address)
3643 (unop_memval_type_operation::evaluate_for_address)
3644 (unop_memval_operation::evaluate_for_sizeof)
3645 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3646 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3647 (unop_memval_type_operation::do_generate_ax): New methods.
3649 2021-03-08 Tom Tromey <tom@tromey.com>
3651 * expop.h (class unop_alignof_operation): New.
3652 * eval.c (eval_op_alignof): No longer static.
3654 2021-03-08 Tom Tromey <tom@tromey.com>
3656 * expop.h (class unop_sizeof_operation): New.
3657 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3659 2021-03-08 Tom Tromey <tom@tromey.com>
3661 * expop.h (class unop_addr_operation): New.
3662 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3664 2021-03-08 Tom Tromey <tom@tromey.com>
3666 * expop.h (class typeid_operation): New.
3668 2021-03-08 Tom Tromey <tom@tromey.com>
3670 * expop.h (class decltype_operation): New.
3672 2021-03-08 Tom Tromey <tom@tromey.com>
3674 * expop.h (class typeof_operation): New.
3676 2021-03-08 Tom Tromey <tom@tromey.com>
3678 * expop.h (class type_operation): New.
3679 * eval.c (eval_op_type): No longer static.
3681 2021-03-08 Tom Tromey <tom@tromey.com>
3683 * expop.h (class unop_ind_base_operation)
3684 (class unop_ind_operation): New.
3685 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3686 (unop_ind_base_operation::evaluate_for_address)
3687 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3688 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3690 2021-03-08 Tom Tromey <tom@tromey.com>
3692 * expop.h (unop_incr_operation): New template.
3693 (preinc_operation, predec_operation, postinc_operation)
3694 (postdec_operation): New typedefs.
3695 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3696 (eval_op_postdec): No longer static.
3698 2021-03-08 Tom Tromey <tom@tromey.com>
3700 * expop.h (unary_ftype): New typedef.
3701 (unop_operation, usual_ax_binop_operation): New templates.
3702 (unary_plus_operation, unary_neg_operation)
3703 (unary_complement_operation, unary_logical_not_operation): New
3705 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3706 (eval_op_lognot): No longer static.
3707 * ax-gdb.c (gen_expr_unop): New function.
3709 2021-03-08 Tom Tromey <tom@tromey.com>
3711 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3713 2021-03-08 Tom Tromey <tom@tromey.com>
3715 * expop.h (class repeat_operation): New.
3716 * eval.c (eval_op_repeat): No longer static. Remove "op"
3718 (evaluate_subexp_standard): Update.
3719 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3721 2021-03-08 Tom Tromey <tom@tromey.com>
3723 * expop.h (class comparison_operation): New.
3724 (equal_operation, notequal_operation, less_operation)
3725 (gtr_operation, geq_operation, leq_operation): New typedefs.
3726 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3727 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3729 2021-03-08 Tom Tromey <tom@tromey.com>
3731 * expop.h (class subscript_operation): New.
3732 * eval.c (eval_op_subscript): No longer static.
3734 2021-03-08 Tom Tromey <tom@tromey.com>
3736 * expop.h (class binop_operation, class usual_ax_binop_operation):
3738 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3739 (div_operation, rem_operation, lsh_operation, rsh_operation)
3740 (bitwise_and_operation, bitwise_ior_operation)
3741 (bitwise_xor_operation): New typedefs.
3742 * eval.c (eval_op_binary): No longer static.
3744 2021-03-08 Tom Tromey <tom@tromey.com>
3746 * expop.h (class sub_operation): New.
3747 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3748 (evaluate_subexp_standard): Update.
3750 2021-03-08 Tom Tromey <tom@tromey.com>
3752 * expop.h (class add_operation): New.
3753 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3754 (evaluate_subexp_standard): Update.
3756 2021-03-08 Tom Tromey <tom@tromey.com>
3758 * expop.h (class concat_operation): New.
3759 * eval.c (eval_op_concat): No longer static. Remove "op"
3761 (evaluate_subexp_standard): Update.
3763 2021-03-08 Tom Tromey <tom@tromey.com>
3765 * expop.h (class structop_member_operation)
3766 (class structop_mptr_operation): New.
3767 * eval.c (eval_op_member): No longer static.
3769 2021-03-08 Tom Tromey <tom@tromey.com>
3771 * expop.h (class structop_ptr_operation): New.
3772 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3775 2021-03-08 Tom Tromey <tom@tromey.com>
3777 * expop.h (class structop_base_operation)
3778 (class structop_operation): New.
3779 * eval.c (eval_op_structop_struct): No longer static.
3781 2021-03-08 Tom Tromey <tom@tromey.com>
3783 * expop.h (class complex_operation): New.
3785 2021-03-08 Tom Tromey <tom@tromey.com>
3787 * eval.c (eval_op_objc_selector): No longer static.
3788 * c-exp.h (class objc_selector_operation): New.
3790 2021-03-08 Tom Tromey <tom@tromey.com>
3792 * eval.c: Include c-exp.h.
3793 * c-exp.h (class objc_nsstring_operation): New.
3795 2021-03-08 Tom Tromey <tom@tromey.com>
3797 * c-lang.c (c_string_operation::evaluate): New method.
3798 * c-exp.h: New file.
3800 2021-03-08 Tom Tromey <tom@tromey.com>
3802 * expop.h (class ternop_cond_operation): New.
3803 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3805 2021-03-08 Tom Tromey <tom@tromey.com>
3807 * expop.h (class ternop_slice_operation): New.
3808 * eval.c (eval_op_ternop): No longer static.
3810 2021-03-08 Tom Tromey <tom@tromey.com>
3812 * expop.h (class string_operation): New.
3813 * eval.c (eval_op_string): No longer static.
3815 2021-03-08 Tom Tromey <tom@tromey.com>
3817 * expop.h (class internalvar_operation): New.
3818 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3820 2021-03-08 Tom Tromey <tom@tromey.com>
3822 * expop.h (class bool_operation): New.
3824 2021-03-08 Tom Tromey <tom@tromey.com>
3826 * expop.h (class register_operation): New.
3827 * eval.c (eval_op_register): No longer static.
3828 * ax-gdb.c (register_operation::do_generate_ax): New method.
3830 2021-03-08 Tom Tromey <tom@tromey.com>
3832 * expop.h (class last_operation): New.
3834 2021-03-08 Tom Tromey <tom@tromey.com>
3836 * expop.h (class func_static_var_operation): New.
3837 * eval.c (eval_op_func_static_var): No longer static.
3839 2021-03-08 Tom Tromey <tom@tromey.com>
3841 * expop.h (class var_entry_value_operation): New.
3842 * eval.c (eval_op_var_entry_value): No longer static.
3844 2021-03-08 Tom Tromey <tom@tromey.com>
3846 * expression.h (class operation) <set_outermost>: New method.
3847 * expop.h (class var_msym_value_operation): New.
3848 * eval.c (eval_op_var_msym_value): No longer static.
3849 (var_msym_value_operation::evaluate_for_address)
3850 (var_msym_value_operation::evaluate_for_sizeof)
3851 (var_msym_value_operation::evaluate_for_cast): New methods.
3852 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3855 2021-03-08 Tom Tromey <tom@tromey.com>
3857 * expop.h (class long_const_operation): New.
3858 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3860 2021-03-08 Tom Tromey <tom@tromey.com>
3862 * expop.h (class scope_operation): New.
3863 * eval.c (eval_op_scope): No longer static.
3864 (scope_operation::evaluate_for_address): New method.
3865 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3867 2021-03-08 Tom Tromey <tom@tromey.com>
3869 * expprint.c (float_const_operation::dump): New method.
3870 * expop.h (float_data): New typedef.
3871 (class float_const_operation): New.
3873 2021-03-08 Tom Tromey <tom@tromey.com>
3875 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3876 * ax-gdb.c (gen_expr_binop): New function.
3877 (gen_expr_structop): Likewise.
3879 2021-03-08 Tom Tromey <tom@tromey.com>
3881 * expprint.c (expr::dump_for_expression): New functions.
3882 * expop.h (dump_for_expression): New overloads.
3883 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3886 2021-03-08 Tom Tromey <tom@tromey.com>
3888 * expression.h (expr::operation): New class.
3889 (expr::make_operation): New function.
3890 (expr::operation_up): New typedef.
3891 * expop.h: New file.
3892 * eval.c (operation::evaluate_for_cast)
3893 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3895 * ax-gdb.c (operation::generate_ax): New method.
3897 2021-03-08 Tom Tromey <tom@tromey.com>
3899 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3900 (gen_expr_binop_rest): New overload.
3902 2021-03-08 Tom Tromey <tom@tromey.com>
3904 * eval.c (eval_multi_subscript): New function.
3905 (evaluate_subexp_standard): Use it.
3907 2021-03-08 Tom Tromey <tom@tromey.com>
3909 * ada-lang.c (ada_binop_exp): New function.
3910 (ada_evaluate_subexp): Use it.
3912 2021-03-08 Tom Tromey <tom@tromey.com>
3914 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3916 (ada_evaluate_subexp): Use it.
3918 2021-03-08 Tom Tromey <tom@tromey.com>
3920 * ada-lang.c (ada_binop_minmax): New function.
3921 (ada_evaluate_subexp): Use it.
3923 2021-03-08 Tom Tromey <tom@tromey.com>
3925 * ada-lang.c (ada_unop_atr): New function.
3926 (ada_evaluate_subexp): Use it.
3928 2021-03-08 Tom Tromey <tom@tromey.com>
3930 * ada-lang.c (ada_binop_in_bounds): New function.
3931 (ada_evaluate_subexp): Use it.
3933 2021-03-08 Tom Tromey <tom@tromey.com>
3935 * ada-lang.c (ada_ternop_slice): New function.
3936 (ada_evaluate_subexp): Use it.
3938 2021-03-08 Tom Tromey <tom@tromey.com>
3940 * ada-lang.c (ada_equal_binop): New function.
3941 (ada_evaluate_subexp): Use it.
3943 2021-03-08 Tom Tromey <tom@tromey.com>
3945 * ada-lang.c (ada_mult_binop): New function.
3946 (ada_evaluate_subexp): Use it.
3948 2021-03-08 Tom Tromey <tom@tromey.com>
3950 * ada-lang.c (ada_abs): New function.
3951 (ada_evaluate_subexp): Use it.
3953 2021-03-08 Tom Tromey <tom@tromey.com>
3955 * ada-lang.c (ada_atr_size): New function.
3956 (ada_evaluate_subexp): Use it.
3958 2021-03-08 Tom Tromey <tom@tromey.com>
3960 * ada-lang.c (ada_atr_tag): New function.
3961 (ada_evaluate_subexp): Use it.
3963 2021-03-08 Tom Tromey <tom@tromey.com>
3965 * ada-lang.c (ada_unop_in_range): New function.
3966 (ada_evaluate_subexp): Use it.
3968 2021-03-08 Tom Tromey <tom@tromey.com>
3970 * ada-lang.c (ada_unop_neg): New function.
3971 (ada_evaluate_subexp): Use it.
3973 2021-03-08 Tom Tromey <tom@tromey.com>
3975 * ada-lang.c (eval_ternop_in_range): New function.
3976 (ada_evaluate_subexp): Use it.
3978 2021-03-08 Tom Tromey <tom@tromey.com>
3980 * opencl-lang.c (eval_opencl_assign): New function.
3981 (evaluate_subexp_opencl): Use it.
3983 2021-03-08 Tom Tromey <tom@tromey.com>
3985 * eval.c (eval_op_objc_msgcall): New function.
3986 (evaluate_subexp_standard): Use it.
3988 2021-03-08 Tom Tromey <tom@tromey.com>
3990 * eval.c (eval_binop_assign_modify): New function.
3991 (evaluate_subexp_standard): Use it.
3993 2021-03-08 Tom Tromey <tom@tromey.com>
3995 * m2-lang.c (eval_op_m2_subscript): New function.
3996 (evaluate_subexp_modula2): Use it.
3998 2021-03-08 Tom Tromey <tom@tromey.com>
4000 * m2-lang.c (eval_op_m2_high): New function.
4001 (evaluate_subexp_modula2): Use it.
4003 2021-03-08 Tom Tromey <tom@tromey.com>
4005 * eval.c (evaluate_subexp_for_address_base): New function.
4006 (evaluate_subexp_for_address): Use it.
4007 (evaluate_subexp_for_sizeof_base): New function.
4008 (evaluate_subexp_for_sizeof): Use it.
4010 2021-03-08 Tom Tromey <tom@tromey.com>
4012 * rust-lang.c (eval_op_rust_structop): New function.
4013 (rust_evaluate_subexp): Use it.
4015 2021-03-08 Tom Tromey <tom@tromey.com>
4017 * rust-lang.c (eval_op_rust_struct_anon): New function.
4018 (rust_evaluate_subexp): Use it.
4020 2021-03-08 Tom Tromey <tom@tromey.com>
4022 * rust-lang.c (eval_op_rust_array): New function.
4023 (rust_evaluate_subexp): Use it.
4025 2021-03-08 Tom Tromey <tom@tromey.com>
4027 * rust-lang.c (eval_op_rust_complement): New function.
4028 (rust_evaluate_subexp): Use it.
4030 2021-03-08 Tom Tromey <tom@tromey.com>
4032 * rust-lang.c (eval_op_rust_ind): New function.
4033 (rust_evaluate_subexp): Use it.
4035 2021-03-08 Tom Tromey <tom@tromey.com>
4037 * rust-lang.c (rust_subscript): Change parameters.
4038 (rust_evaluate_subexp): Update.
4040 2021-03-08 Tom Tromey <tom@tromey.com>
4042 * rust-lang.c (rust_range): Change parameters.
4043 (rust_evaluate_subexp): Update.
4045 2021-03-08 Tom Tromey <tom@tromey.com>
4047 * f-lang.c (eval_op_f_allocated): New function.
4048 (evaluate_subexp_f): Use it.
4050 2021-03-08 Tom Tromey <tom@tromey.com>
4052 * f-lang.c (fortran_require_array): New function.
4053 (evaluate_subexp_f): Use it.
4055 2021-03-08 Tom Tromey <tom@tromey.com>
4057 * f-lang.c (eval_op_f_kind): New function.
4058 (evaluate_subexp_f): Use it.
4060 2021-03-08 Tom Tromey <tom@tromey.com>
4062 * f-lang.c (eval_op_f_cmplx): New function.
4063 (evaluate_subexp_f): Use it.
4065 2021-03-08 Tom Tromey <tom@tromey.com>
4067 * f-lang.c (eval_op_f_modulo): New function.
4068 (evaluate_subexp_f): Use it.
4070 2021-03-08 Tom Tromey <tom@tromey.com>
4072 * f-lang.c (eval_op_f_floor): New function.
4073 (evaluate_subexp_f): Use it.
4075 2021-03-08 Tom Tromey <tom@tromey.com>
4077 * f-lang.c (eval_op_f_ceil): New function.
4078 (evaluate_subexp_f): Use it.
4080 2021-03-08 Tom Tromey <tom@tromey.com>
4082 * f-lang.c (eval_op_f_mod): New function.
4083 (evaluate_subexp_f): Use it.
4085 2021-03-08 Tom Tromey <tom@tromey.com>
4087 * f-lang.c (eval_op_f_abs): New function.
4088 (evaluate_subexp_f): Use it.
4090 2021-03-08 Tom Tromey <tom@tromey.com>
4092 * eval.c (eval_op_type): New function.
4093 (evaluate_subexp_standard): Use it.
4095 2021-03-08 Tom Tromey <tom@tromey.com>
4097 * eval.c (eval_op_postdec): New function.
4098 (evaluate_subexp_standard): Use it.
4100 2021-03-08 Tom Tromey <tom@tromey.com>
4102 * eval.c (eval_op_postinc): New function.
4103 (evaluate_subexp_standard): Use it.
4105 2021-03-08 Tom Tromey <tom@tromey.com>
4107 * eval.c (eval_op_predec): New file.
4108 (evaluate_subexp_standard): Use it.
4110 2021-03-08 Tom Tromey <tom@tromey.com>
4112 * eval.c (eval_op_preinc): New function.
4113 (evaluate_subexp_standard): Use it.
4115 2021-03-08 Tom Tromey <tom@tromey.com>
4117 * eval.c (eval_op_memval): New function.
4118 (evaluate_subexp_standard): Use it.
4120 2021-03-08 Tom Tromey <tom@tromey.com>
4122 * eval.c (eval_op_alignof): New function.
4123 (evaluate_subexp_standard): Use it.
4125 2021-03-08 Tom Tromey <tom@tromey.com>
4127 * eval.c (eval_op_ind): New function.
4128 (evaluate_subexp_standard): Use it.
4130 2021-03-08 Tom Tromey <tom@tromey.com>
4132 * eval.c (eval_op_lognot): New function.
4133 (evaluate_subexp_standard): Use it.
4135 2021-03-08 Tom Tromey <tom@tromey.com>
4137 * eval.c (eval_op_complement): New function.
4138 (evaluate_subexp_standard): Use it.
4140 2021-03-08 Tom Tromey <tom@tromey.com>
4142 * eval.c (eval_op_neg): New function.
4143 (evaluate_subexp_standard): Use it.
4145 2021-03-08 Tom Tromey <tom@tromey.com>
4147 * eval.c (eval_op_plus): New function.
4148 (evaluate_subexp_standard): Use it.
4150 2021-03-08 Tom Tromey <tom@tromey.com>
4152 * eval.c (eval_op_repeat): New function.
4153 (evaluate_subexp_standard): Use it.
4155 2021-03-08 Tom Tromey <tom@tromey.com>
4157 * eval.c (eval_op_leq): New function.
4158 (evaluate_subexp_standard): Use it.
4160 2021-03-08 Tom Tromey <tom@tromey.com>
4162 * eval.c (eval_op_geq): New function.
4163 (evaluate_subexp_standard): Use it.
4165 2021-03-08 Tom Tromey <tom@tromey.com>
4167 * eval.c (eval_op_gtr): New function.
4168 (evaluate_subexp_standard): Use it.
4170 2021-03-08 Tom Tromey <tom@tromey.com>
4172 * eval.c (eval_op_less): New function.
4173 (evaluate_subexp_standard): Use it.
4175 2021-03-08 Tom Tromey <tom@tromey.com>
4177 * eval.c (eval_op_notequal): New function.
4178 (evaluate_subexp_standard): Use it.
4180 2021-03-08 Tom Tromey <tom@tromey.com>
4182 * eval.c (eval_op_equal): New function.
4183 (evaluate_subexp_standard): Use it.
4185 2021-03-08 Tom Tromey <tom@tromey.com>
4187 * eval.c (eval_op_subscript): New function.
4188 (evaluate_subexp_standard): Use it.
4190 2021-03-08 Tom Tromey <tom@tromey.com>
4192 * eval.c (eval_op_binary): New function.
4193 (evaluate_subexp_standard): Use it.
4195 2021-03-08 Tom Tromey <tom@tromey.com>
4197 * eval.c (eval_op_sub): New function.
4198 (evaluate_subexp_standard): Use it.
4200 2021-03-08 Tom Tromey <tom@tromey.com>
4202 * eval.c (eval_op_add): New function.
4203 (evaluate_subexp_standard): Use it.
4205 2021-03-08 Tom Tromey <tom@tromey.com>
4207 * eval.c (eval_op_member): New function.
4208 (evaluate_subexp_standard): Use it.
4210 2021-03-08 Tom Tromey <tom@tromey.com>
4212 * eval.c (eval_op_structop_ptr): New function.
4213 (evaluate_subexp_standard): Use it.
4215 2021-03-08 Tom Tromey <tom@tromey.com>
4217 * eval.c (eval_op_structop_struct): New function.
4218 (evaluate_subexp_standard): Use it.
4220 2021-03-08 Tom Tromey <tom@tromey.com>
4222 * eval.c (eval_op_ternop): New function.
4223 (evaluate_subexp_standard): Use it.
4225 2021-03-08 Tom Tromey <tom@tromey.com>
4227 * eval.c (eval_op_concat): New function.
4228 (evaluate_subexp_standard): Use it.
4230 2021-03-08 Tom Tromey <tom@tromey.com>
4232 * eval.c (eval_op_objc_selector): New function.
4233 (evaluate_subexp_standard): Use it.
4235 2021-03-08 Tom Tromey <tom@tromey.com>
4237 * eval.c (eval_op_string): New function.
4238 (evaluate_subexp_standard): Use it.
4240 2021-03-08 Tom Tromey <tom@tromey.com>
4242 * eval.c (eval_op_register): New function.
4243 (evaluate_subexp_standard): Use it.
4245 2021-03-08 Tom Tromey <tom@tromey.com>
4247 * eval.c (eval_op_func_static_var): New function.
4248 (evaluate_subexp_standard): Use it.
4250 2021-03-08 Tom Tromey <tom@tromey.com>
4252 * eval.c (eval_op_var_msym_value): New function.
4253 (evaluate_subexp_standard): Use it.
4255 2021-03-08 Tom Tromey <tom@tromey.com>
4257 * eval.c (eval_op_var_entry_value): New function.
4258 (evaluate_subexp_standard): Use it.
4260 2021-03-08 Tom Tromey <tom@tromey.com>
4262 * eval.c (eval_op_scope): New function.
4263 (evaluate_subexp_standard): Use it.
4265 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4268 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4270 2021-03-06 Tom Tromey <tom@tromey.com>
4272 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4273 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4274 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4275 (locate_dwz_sections, dwz_search_other_debugdirs)
4276 (dwarf2_get_dwz_file): Move to dwz.c.
4277 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4279 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4280 (dwarf2_get_dwz_file): Move from read.c.
4282 2021-03-06 Tom Tromey <tom@tromey.com>
4284 * debuginfod-support.h: Include scoped_fd.h.
4286 2021-03-06 Tom Tromey <tom@tromey.com>
4288 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4289 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4290 (get_abbrev_section_for_cu, read_attribute_value)
4291 (get_debug_line_section): Update.
4292 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4294 2021-03-06 Tom Tromey <tom@tromey.com>
4296 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4298 * dwarf2/read.c (section_is_p): Remove.
4299 (dwarf2_per_bfd::locate_sections)
4300 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4301 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4302 (dwarf2_locate_common_dwp_sections)
4303 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4306 2021-03-06 Tom Tromey <tom@tromey.com>
4308 * xcoffread.c: Include sect-names.h.
4309 * symfile.h (struct dwarf2_section_names, struct
4310 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4311 * dwarf2/sect-names.h: New file, from symfile.h.
4312 * dwarf2/read.c: Include sect-names.h.
4314 2021-03-06 Tom Tromey <tom@tromey.com>
4316 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4317 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4318 (abbrev_table::read): Update.
4319 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4320 (struct abbrev_info): Reformat.
4321 <attrs>: Now an array.
4322 (struct abbrev_table) <alloc_abbrev>: Remove.
4324 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4326 * ctfread.c (ctf_psymtab_add_enums): New function.
4327 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4329 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4331 * ctfread.c (read_func_kind_type): Set up function arguments.
4333 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4334 Andrew Burgess <andrew.burgess@embecosm.com>
4336 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4338 (riscv_csrset): New static global.
4339 (riscv_update_csrmap): New function.
4340 (riscv_iterate_over_regset_sections): Process CSRs.
4342 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4344 * riscv-tdep.c (riscv_feature_name_csr): Define.
4345 (riscv_feature_name_cpu): Define.
4346 (riscv_feature_name_fpu): Define.
4347 (riscv_feature_name_virtual): Define.
4348 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4349 (riscv_freg_feature): Use riscv_feature_name_fpu.
4350 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4351 (riscv_csr_feature): Use riscv_feature_name_csr.
4352 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4354 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4355 Craig Blackmore <craig.blackmore@embecosm.com>
4357 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4358 (ALLDEPFILES): Add riscv-none-tdep.c.
4359 * configure: Regenerate.
4360 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4362 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4363 * elf-none-tdep.c: New file.
4364 * elf-none-tdep.h: New file.
4365 * riscv-none-tdep.c: New file.
4367 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4368 Andrew Burgess <andrew.burgess@embecosm.com>
4370 * corelow.c: Add 'xml-tdesc.h' include.
4371 (core_target::read_description): Load the target description from
4372 the core file when possible.
4373 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4375 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4376 (gcore_elf_make_tdesc_note): New function.
4377 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4378 * linux-tdep.c (linux_make_corefile_notes): Add target description
4381 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4383 * Makefile.in (SFILES): Add gcore-elf.c.
4384 (HFILES_NO_SRCDIR): Add gcore-elf.h
4385 * configure: Regenerate.
4386 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4388 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4389 (struct fbsd_collect_regset_section_cb_data): Delete.
4390 (fbsd_collect_regset_section_cb): Delete.
4391 (fbsd_collect_thread_registers): Delete.
4392 (struct fbsd_corefile_thread_data): Delete.
4393 (fbsd_corefile_thread): Delete.
4394 (fbsd_make_corefile_notes): Call
4395 gcore_elf_build_thread_register_notes instead of the now deleted
4397 * gcore-elf.c: New file, the content was moved here from
4398 linux-tdep.c, functions were renamed and given minor cleanup.
4399 * gcore-elf.h: New file.
4400 * gcore.c (gcore_find_signalled_thread): Moved here from
4401 linux-tdep.c and given a new name. Minor cleanups.
4402 * gcore.h (gcore_find_signalled_thread): Declare.
4403 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4404 (struct linux_collect_regset_section_cb_data): Delete.
4405 (linux_collect_regset_section_cb): Delete.
4406 (linux_collect_thread_registers): Delete.
4407 (linux_corefile_thread): Call
4408 gcore_elf_build_thread_register_notes.
4409 (find_signalled_thread): Delete.
4410 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4412 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4415 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4416 process_stratum_target parameter,
4417 sparc_store_inferior_registers): update callers.
4418 * sparc-nat.c (sparc_fetch_inferior_registers,
4419 sparc_store_inferior_registers): Add process_stratum_target
4420 parameter. Switch current thread before calling
4421 sparc_supply_gregset / sparc_collect_rwindow.
4422 (sparc_store_inferior_registers): Likewise.
4423 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4424 (sparc32obsd_collect_uthread): Likewise.
4425 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4427 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4428 sparc64obsd_supply_uthread): Add assertion.
4430 2021-03-04 Tom Tromey <tromey@adacore.com>
4432 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4433 (aux_add_nonlocal_symbols): Update.
4434 (ada_add_block_symbols): Change "found_sym" to bool.
4436 2021-03-03 Tom Tromey <tromey@adacore.com>
4438 * ada-lang.c (ada_resolve_function): Update comment.
4439 (is_nonfunction, add_symbols_from_enclosing_procs)
4440 (remove_extra_symbols): Likewise.
4441 (struct match_data): Add constructor, initializers.
4442 (add_nonlocal_symbols): Remove memset.
4443 (aux_add_nonlocal_symbols): Update comment.
4444 (ada_add_block_renamings, add_nonlocal_symbols)
4445 (ada_add_all_symbols): Likewise.
4446 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4448 2021-03-02 Tom Tromey <tromey@adacore.com>
4450 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4451 (cast_to_gnat_encoded_fixed_point_type): Remove.
4452 (ada_value_cast, ada_evaluate_subexp): Update.
4453 (gnat_encoded_fixed_point_type_info)
4454 (ada_is_gnat_encoded_fixed_point_type)
4455 (gnat_encoded_fixed_point_delta)
4456 (gnat_encoded_fixed_point_scaling_factor): Remove.
4457 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4458 (gnat_encoded_fixed_point_delta)
4459 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4460 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4461 (ada_print_type): Update.
4462 * ada-valprint.c (ada_value_print_num): Update.
4463 * dwarf2/read.c (ada_get_gnat_encoded_number)
4464 (ada_get_gnat_encoded_ratio): New functions.
4465 (finish_fixed_point_type): Use them. Add parameters.
4466 (GNAT_FIXED_POINT_SUFFIX): New define.
4467 (gnat_encoded_fixed_point_type_info): New function.
4468 (read_base_type): Handle gnat encodings.
4470 2021-03-02 Tom Tromey <tromey@adacore.com>
4472 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4473 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4475 (GROW_VECT): Remove.
4476 (grow_vect): Remove.
4478 2021-03-02 Tom Tromey <tromey@adacore.com>
4480 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4481 * ada-lang.c (resolve_subexp): Update.
4482 (ada_resolve_function): Accept a vector.
4483 (is_nonfunction, add_defn_to_vec)
4484 (add_symbols_from_enclosing_procs): Likewise.
4485 (num_defns_collected, defns_collected): Remove.
4486 (remove_extra_symbols): Return a vector.
4487 (remove_irrelevant_renamings): Return void.
4488 (ada_add_local_symbols): Accept a vector.
4489 (struct match_data) <obstackp>: Remove.
4490 <resultp>: New member.
4491 (aux_add_nonlocal_symbols): Update.
4492 (ada_add_block_renamings, add_nonlocal_symbols)
4493 (ada_add_all_symbols): Accept a vector.
4494 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4496 (ada_lookup_symbol): Update.
4497 (ada_add_block_symbols): Accept a vector.
4498 (get_var_value, iterate_over_symbols): Update.
4499 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4502 2021-03-02 Tom Tromey <tromey@adacore.com>
4504 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4506 2021-03-02 Tom Tromey <tromey@adacore.com>
4508 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4511 (ada_pspace_data): Remove destructor.
4512 <sym_cache>: Now a unique_ptr.
4513 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4514 (ada_get_symbol_cache): Use 'new'.
4515 (ada_clear_symbol_cache): Rewrite.
4517 2021-03-02 Tom Tromey <tromey@adacore.com>
4519 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4522 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4525 * source.c (add_path): Skip empty dirnames.
4527 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4529 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4530 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4532 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4535 * target.c (target_mourn_inferior): Only compare pids in
4536 target_mourn_inferior.
4538 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4541 * remote.c (remote_target::start_remote): Ensure the single
4542 thread, automatically added for remote targets without the
4543 concept of threading, is initially in set to the "resumed"
4545 * remote.c (remote_target::add_current_inferior_and_thread):
4546 Add return value - return the main thread.
4548 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4550 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4551 (mi_tsv_created): Likewise.
4552 (mi_tsv_deleted): Likewise.
4554 2021-02-25 Tom de Vries <tdevries@suse.de>
4557 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4558 section_kind for &dwo_file->sections.info.
4560 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4563 * f-lang.c (fortran_argument_convert): Delete declaration.
4564 (fortran_prepare_argument): New function.
4565 (evaluate_subexp_f): Move logic to new function
4566 fortran_prepare_argument.
4568 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4570 * f-exp.y (f77_keywords): Add 'associated'.
4571 * f-lang.c (fortran_associated): New function.
4572 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4573 (operator_length_f): Likewise.
4574 (print_unop_or_binop_subexp_f): New function.
4575 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4576 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4577 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4578 (operator_check_f): Likewise.
4579 * std-operator.def: Add FORTRAN_ASSOCIATED.
4581 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4583 * f-exp.y (fortran_operators): Add ".xor.".
4585 2021-02-24 Tom de Vries <tdevries@suse.de>
4588 * dwarf2/attribute.c (attribute::form_is_signed): New function
4590 * dwarf2/attribute.h (attribute::as_signed): ... here.
4591 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4592 (attribute::form_is_signed): Declare.
4593 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4594 for DW_AT_decl_file.
4596 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4598 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4599 order for <sys/ptrace.h> and <asm/ptrace.h>.
4601 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4603 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4606 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4608 * exec.c (set_section_command): Move variable declarations into
4609 the function body, and use std::string instead of a fixed size
4612 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4614 * exec.c (exec_target::get_section_table): Delete member function.
4615 (section_table_read_available_memory): Use current_top_target, not
4616 just the exec_ops target.
4617 * target-delegates.c: Regenerate.
4618 * target.c (default_get_section_table): New function.
4619 * target.h (target_ops::get_section_table): Change default
4620 behaviour to call default_get_section_table.
4621 (default_get_section_table): Declare.
4623 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4625 * exec.c (exec_target::close): Call new clear_target_sections
4627 (program_space::add_target_sections): Update name of member
4629 (program_space::add_target_sections): Update name of member
4631 (program_space::remove_target_sections): Likewise.
4632 (exec_one_fork): Use new target_sections member function.
4633 (exec_target::get_section_table): Likewise.
4634 (exec_target::files_info): Likewise.
4635 (set_section_command): Likewise.
4636 (exec_set_section_address): Likewise.
4637 (exec_target::has_memory): Use new target_sections member
4639 * progspace.h (program_space::clear_target_sections): New member
4641 (program_space::target_sections): Rename member variable to
4642 m_target_sections, replace with a new member function.
4643 (program_space::m_target_sections): New member variable.
4644 * solib-dsbt.c (scan_dyntag): Use new member function.
4645 * solib-svr4.c (scan_dyntag): Likewise.
4647 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4649 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4651 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4652 (section_table_read_available_memory): Make local const.
4653 (exec_target::xfer_partial): Make local const.
4654 (print_section_info): Make parameter const.
4655 * gdb/exec.h (print_section_info): Likewise.
4656 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4658 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4660 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4662 * gdb/s390-tdep.c (s390_load): Likewise.
4663 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4664 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4665 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4667 (target_debug_print_const_target_section_table_p): ...this.
4668 * gdb/target-delegates.c: Regenerate.
4669 * gdb/target.c (target_get_section_table): Make return type const.
4670 (target_section_by_addr): Likewise. Also make some locals const.
4671 (memory_xfer_partial_1): Make some locals const.
4672 * gdb/target.h (struct target_ops) <get_section_table>: Make
4674 (target_section_by_addr): Likewise.
4675 (target_get_section_table): Likewise.
4677 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4679 * NEWS: Mention new 'maint info target-sections' command.
4680 * maint.c (maintenance_info_target_sections): New function.
4681 (_initialize_maint_cmds): Register new command.
4683 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4685 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4686 (riscv_features_from_bfd): ...this. Change parameter type to
4687 'bfd*', and update as required.
4688 (riscv_find_default_target_description): Update call to
4689 riscv_features_from_bfd. Select a default xlen based on
4691 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4693 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4695 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4696 dynamic types in UNOP_IND.
4698 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4701 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4703 (~dwarf2_queue_guard): Clear queue.
4704 (queue_comp_unit): Assert that queue is
4706 (process_queue): Adjust.
4707 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4709 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4712 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4713 to decide whether or not to enqueue it for expansion.
4714 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4715 after calling maybe_queue_comp_unit.
4717 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4719 * linux-nat.c (linux_nat_filter_event): Return void.
4721 2021-02-22 Tom Tromey <tromey@adacore.com>
4723 * solib-svr4.c (enable_break): Update.
4724 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4726 (target_bfd_reopen): Change parameter type.
4727 * bfd-target.h (target_bfd_reopen): Change parameter type.
4729 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4731 * thread.c (add_thread_silent): Add assert.
4732 (find_thread_ptid): Add assert.
4734 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4737 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4738 (target_unpush_up): Likewise.
4739 * procfs.c (procfs_target::attach): Push target early. Use
4740 target_unpush_up to unpush target in case of error.
4741 * target.h (struct target_unpusher): Move here.
4742 (target_unpush_up): Likewise.
4744 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4746 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4747 (which in turn includes <gnulib/config.h>) before include
4750 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4753 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4754 (decode_j_type_insn): Likewise.
4755 (decode_cj_type_insn): Likewise.
4756 (decode_b_type_insn): Likewise.
4759 2021-02-18 Tom Tromey <tom@tromey.com>
4761 * expression.h (struct expression) <evaluate>: Declare method.
4762 * eval.c (evaluate_subexp): Simplify.
4763 (expression::evaluate): New method.
4764 (evaluate_expression, evaluate_type): Use expression::evaluate.
4766 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4768 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4770 (ada_lookup_name_info): Likewise.
4772 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4774 * aclocal.m4: Regenerate.
4776 2021-02-12 Tom de Vries <tdevries@suse.de>
4779 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4780 (lin_thread_signals): New static var.
4781 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4783 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4784 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4786 * linux-thread-db.c (check_thread_signals): Use
4787 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4789 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4791 * f-exp.y (f77_keywords): Add allocated.
4792 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4793 (operator_length_f): Likewise.
4794 (print_subexp_f): Likewise.
4795 (dump_subexp_body_f): Likewise.
4796 (operator_check_f): Likewise.
4797 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4799 2021-02-11 Tom de Vries <tdevries@suse.de>
4802 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4803 Return true for DW_FORM_strx.
4805 2021-02-11 Tom Tromey <tromey@adacore.com>
4808 * parse.c (write_exp_symbol_reference): Write sym.block.
4810 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4812 * NEWS: Mention changes to 'maint info sections'.
4813 * maint.c (match_substring): Return a bool, fix whitespace issue.
4814 (struct single_bfd_flag_info): New struct.
4815 (bfd_flag_info): New static global.
4816 (match_bfd_flags): Return a bool, use bfd_flag_info.
4817 (print_bfd_flags): Use bfd_flag_info.
4818 (maint_print_section_info): Delete trailing whitespace.
4819 (struct maint_info_sections_opts): New struct.
4820 (maint_info_sections_option_defs): New static global.
4821 (maint_info_sections_completer): New function.
4822 (maintenance_info_sections): Use option parsing mechanism.
4823 (_initialize_maint_cmds): Update command help text for 'maint info
4824 sections' and register a command completer.
4826 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4828 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4829 functionality merged into...
4830 (maint_print_all_sections): ...this new function.
4831 (maintenance_info_sections): Make use of maint_print_all_sections,
4832 allow all objects to be printed even where there's no executable.
4834 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4836 * breakpoint.c (resolve_sal_pc): Make use of
4837 bound_minimal_symbol::obj_section.
4838 * maint.c (maintenance_translate_address): Likewise.
4839 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4840 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4842 * printcmd.c (info_address_command): Make use of
4843 bound_minimal_symbol::obj_section.
4845 2021-02-11 Alan Modra <amodra@gmail.com>
4847 * arm-symbian-tdep.c: Delete.
4848 * NEWS: Mention arm-symbian removal.
4849 * Makefile.in: Remove arm-symbian-tdep entries.
4850 * configure.tgt: Remove arm*-*-symbianelf*.
4851 * doc/gdb.texinfo: Remove mention of SymbianOS.
4852 * osabi.c (gdb_osabi_names): Remove "Symbian".
4853 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4854 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4855 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4857 * testsuite/gdb.base/dup-sect.exp: Likewise.
4858 * testsuite/gdb.base/long_long.exp: Likewise.
4859 * testsuite/gdb.base/solib-weak.exp: Likewise.
4860 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4861 * testsuite/gdb.python/py-section-script.exp: Likewise.
4862 * testsuite/lib/dwarf.exp: Likewise.
4863 * testsuite/lib/gdb.exp: Likewise.
4865 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4867 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4868 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4869 (one_or_two_args): New pattern.
4870 (f77_keywords): Add lbound and ubound.
4871 * f-lang.c (fortran_bounds_all_dims): New function.
4872 (fortran_bounds_for_dimension): New function.
4873 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4874 (operator_length_f): Likewise.
4875 (print_subexp_f): Likewise.
4876 (dump_subexp_body_f): Likewise.
4877 (operator_check_f): Likewise.
4878 * std-operator.def (FORTRAN_LBOUND): Define.
4879 (FORTRAN_UBOUND): Define.
4881 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4883 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4884 and set_section_index member functions where appropriate.
4885 * coffread.c (coff_symtab_read): Likewise.
4886 (process_coff_symbol): Likewise.
4887 * ctfread.c (set_symbol_address): Likewise.
4888 * dwarf2/read.c (add_partial_symbol): Likewise.
4889 (var_decode_location): Likewise.
4890 * language.c: Likewise.
4891 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4892 (compact_minimal_symbols): Likewise.
4893 (minimal_symbol_upper_bound): Likewise.
4894 * objfiles.c (relocate_one_symbol): Likewise.
4895 * psympriv.h (partial_symbol::obj_section): Likewise.
4896 (partial_symbol::address): Likewise.
4897 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4898 * stabsread.c (scan_file_globals): Likewise.
4899 * symmisc.c (dump_msymbols): Likewise.
4900 * symtab.c (general_symbol_info::obj_section): Likewise.
4901 (fixup_section): Likewise.
4902 (get_msymbol_address): Likewise.
4903 * symtab.h (general_symbol_info::section): Rename to...
4904 (general_symbol_info::m_section): ...this.
4905 (general_symbol_info::set_section_index): New member function.
4906 (general_symbol_info::section_index): Likewise.
4907 (SYMBOL_SECTION): Delete.
4908 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4909 set_section_index member functions where appropriate.
4910 (MSYMBOL_SECTION): Delete.
4911 (symbol::symbol): Update to initialize 'm_section'.
4912 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4913 (process_xcoff_symbol): Likewise.
4915 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4917 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4918 MSYMBOL_OBJ_SECTION.
4919 * findvar.c (language_defn::read_var_value): Likewise.
4920 * infcmd.c (jump_command): Likewise.
4921 * linespec.c (minsym_found): Likewise.
4922 * maint.c (maintenance_translate_address): Likewise.
4923 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4924 (minimal_symbol_upper_bound): Likewise.
4925 * parse.c (find_minsym_type_and_address): Likewise.
4926 (operator_check_standard): Likewise.
4927 * printcmd.c (info_address_command): Likewise.
4928 * symmisc.c (dump_msymbols): Likewise.
4929 (print_symbol): Likewise.
4930 * symtab.c (general_symbol_info::obj_section): Define new
4932 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4933 (find_pc_sect_compunit_symtab): Likewise.
4934 (find_function_start_sal): Likewise.
4935 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4936 MSYMBOL_OBJ_SECTION.
4937 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4939 (SYMBOL_OBJ_SECTION): Delete.
4940 (MSYMBOL_OBJ_SECTION): Delete.
4942 2021-02-09 Tom Tromey <tom@tromey.com>
4944 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4946 2021-02-09 Tom de Vries <tdevries@suse.de>
4949 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4950 construct an array type. Add assert to ensure that element_type is
4953 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4955 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4956 (gcore_collect_regset_section_cb): Delete.
4957 (gcore_collect_thread_registers): Delete.
4958 (gcore_build_thread_register_notes): Delete.
4959 (gcore_find_signalled_thread): Delete.
4960 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4961 'gdbarch' and 'thread_info' declarations.
4962 (gcore_build_thread_register_notes): Delete declaration.
4963 (gcore_find_signalled_thread): Likewise.
4964 * fbsd-tdep.c: Remove 'gcore.h' include.
4965 (struct fbsd_collect_regset_section_cb_data): New struct.
4966 (fbsd_collect_regset_section_cb): New function.
4967 (fbsd_collect_thread_registers): New function.
4968 (struct fbsd_corefile_thread_data): New struct.
4969 (fbsd_corefile_thread): New function.
4970 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4971 * linux-tdep.c: Remove 'gcore.h' include.
4972 (struct linux_collect_regset_section_cb_data): New struct.
4973 (linux_collect_regset_section_cb): New function.
4974 (linux_collect_thread_registers): New function.
4975 (linux_corefile_thread): Call Linux specific code.
4976 (find_signalled_thread): New function.
4977 (linux_make_corefile_notes): Call find_signalled_thread.
4979 2021-02-09 Tom Tromey <tromey@adacore.com>
4981 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4983 * value.c (value_contents_copy_raw): Now static.
4984 * value.h (value_contents_copy_raw): Don't declare.
4986 2021-02-09 Tom Tromey <tromey@adacore.com>
4988 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4991 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4994 * arc-linux-tdep.c (handle_atomic_sequence): New.
4995 (arc_linux_software_single_step): Call handle_atomic_sequence().
4997 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4999 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5001 (REQUIRE_WINDOW): Call is_valid member function.
5002 (REQUIRE_WINDOW_FOR_SETTER): New define.
5003 (gdbpy_tui_is_valid): Call is_valid member function.
5004 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5005 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5007 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5008 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5011 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5013 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5014 for the title is not nullptr.
5016 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5018 * tui-layout.c (saved_tui_windows): Delete.
5019 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5020 call new get_windows member function instead.
5021 (tui_get_window_by_name): Check in tui_windows.
5022 (tui_layout_window::apply): Don't add to tui_windows.
5023 * tui-layout.h (tui_layout_base::get_windows): New member function.
5024 (tui_layout_window::get_windows): Likewise.
5025 (tui_layout_split::get_windows): Likewise.
5027 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5029 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5030 of the window objects.
5032 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5034 * python/python.c (gdbpy_print_stack): Reformat an error message.
5036 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5038 * tui/tui-interp.c (tui_command_line_handler): New function.
5039 (tui_interp::resume): Register tui_command_line_handler as the
5041 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5043 (tui_getc_1): Delete handling of '\n' and '\r'.
5044 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5046 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5048 * tui/tui-regs.c (tui_data_window::display_registers_from):
5049 Mark invisible register sub windows.
5050 (tui_data_window::check_register_values): Ignore invisible
5051 register sub windows.
5053 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5055 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5056 n_spaces with a negative value.
5058 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5060 * tui/tui-regs.c (tui_data_window::display_registers_from):
5061 Add refresh_window call.
5063 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5065 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5067 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5069 * symmisc.c (std_in, std_out, std_err): Remove.
5070 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5072 2021-02-05 Tom de Vries <tdevries@suse.de>
5074 PR breakpoints/27330
5075 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5076 glibc object file has debug info.
5078 2021-02-05 Tom de Vries <tdevries@suse.de>
5081 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5083 2021-02-05 Tom de Vries <tdevries@suse.de>
5085 PR breakpoints/27313
5086 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5089 2021-02-05 Tom Tromey <tom@tromey.com>
5091 * compile/compile-c-support.c (get_compile_context)
5092 (c_get_compile_context, cplus_get_compile_context): Change return
5094 * language.c (language_defn::get_compile_instance): New method.
5095 * language.h (language_defn::get_compile_instance): Change return
5096 type. No longer inline.
5097 * c-lang.c (c_language::get_compile_instance): Change return type.
5098 (cplus_language::get_compile_instance): Change return type.
5099 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5101 * compile/compile.c (compile_to_object): Update.
5103 2021-02-05 Tom Tromey <tom@tromey.com>
5105 * parser-defs.h (write_exp_symbol_reference): Declare.
5106 * parse.c (write_exp_symbol_reference): New function.
5107 * p-exp.y (variable): Use write_exp_symbol_reference.
5108 * m2-exp.y (variable): Use write_exp_symbol_reference.
5109 * f-exp.y (variable): Use write_exp_symbol_reference.
5110 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5111 * c-exp.y (variable): Use write_exp_symbol_reference.
5113 2021-02-05 Tom de Vries <tdevries@suse.de>
5116 * valarith.c (complex_binop): Throw an error if complex type can't
5119 2021-02-05 Tom de Vries <tdevries@suse.de>
5122 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5125 2021-02-05 Tom de Vries <tdevries@suse.de>
5127 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5129 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5131 * configure.tgt (riscv*-*-*): Set gdb_sim.
5133 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5135 * target.c (target_is_non_stop_p): Return bool.
5136 * target.h (target_is_non_stop_p): Return bool.
5138 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5140 * record-full.c (record_full_async_inferior_event_handler):
5141 Don't clear async event handler.
5142 (record_full_base_target::wait): Clear async event handler at
5145 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5147 * record-btrace.c (record_btrace_handle_async_inferior_event):
5148 Don't clear async event handler.
5149 (record_btrace_target::wait): Clear async event handler at
5152 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5154 * remote.c (remote_target::wait): Clear async event handler at
5155 beginning, mark if needed at the end.
5156 (remote_async_inferior_event_handler): Don't set or clear async
5159 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5161 * async-event.h (async_event_handler_func): Add documentation.
5162 * async-event.c (check_async_event_handlers): Don't clear
5163 async_event_handler ready flag.
5164 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5166 * record-btrace.c (record_btrace_handle_async_inferior_event):
5168 * record-full.c (record_full_async_inferior_event_handler):
5170 * remote-notif.c (remote_async_get_pending_events_handler):
5172 * remote.c (remote_async_inferior_event_handler): Likewise.
5174 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5176 * infrun.c (handle_inferior_event): Move stop_soon variable to
5179 2021-02-03 Pedro Alves <pedro@palves.net>
5181 * infcmd.c (detach_command): Hold strong reference to target, and
5182 if all-stop on entry, restart threads on exit.
5183 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5184 (restart_stepped_thread): ... this new function. Also handle
5186 (restart_after_all_stop_detach): New function.
5187 * infrun.h (restart_after_all_stop_detach): Declare.
5189 2021-02-03 Pedro Alves <pedro@palves.net>
5191 * infrun.c (struct step_over_info): Initialize fields.
5192 (prepare_for_detach): Handle ongoing in-line step over.
5194 2021-02-03 Pedro Alves <pedro@palves.net>
5196 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5198 * remote.c (remote_target::remote_detach_1): ... and here ...
5199 * target.c (target_detach): ... instead of here.
5200 * target.h (target_ops::detach): Add comment.
5202 2021-02-03 Pedro Alves <pedro@palves.net>
5204 * infrun.c (struct wait_one_event): Move higher up.
5205 (prepare_for_detach): Abort in-progress displaced steps instead of
5206 letting them complete.
5207 (handle_one): If the inferior is detaching, don't add the thread
5208 back to the global step-over chain.
5209 (restart_threads): Don't restart threads if detaching.
5210 (handle_signal_stop): Remove inferior::detaching reference.
5212 2021-02-03 Pedro Alves <pedro@palves.net>
5214 * infrun.c (prepare_for_detach): Don't release scoped_restore
5217 2021-02-03 Pedro Alves <pedro@palves.net>
5219 * infrun.c (handle_one): New function, factored out from ...
5220 (stop_all_threads): ... here.
5222 2021-02-03 Pedro Alves <pedro@palves.net>
5224 * remote.c (remote_notif_stop_ack): Don't error out on
5225 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5226 (remote_target::discard_pending_stop_replies): Don't delete
5227 in-flight notification; instead, clear its contents.
5229 2021-02-03 Pedro Alves <pedro@palves.net>
5231 * remote.c (extended_remote_target::attach): Set target async in
5232 the target-non-stop path too.
5234 2021-02-03 Pedro Alves <pedro@palves.net>
5237 * infrun.c (handle_signal_stop): Move main context_switch call
5238 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5240 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5242 * NEWS (Changed commands): Add entry for the behavior change of
5243 the inferior command.
5244 * inferior.c (inferior_command): When no argument is given to the
5245 inferior command, display info about the currently selected
5248 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5250 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5252 (read_attribute_reprocess): Adjust.
5254 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5256 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5257 <gnu_ranges_base>: ... this...
5258 <rnglists_base>: ... and this.
5259 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5260 <gnu_ranges_base>: ... this...
5261 <rnglists_base>: ... and this.
5262 (read_cutu_die_from_dwo): Adjust
5263 (dwarf2_get_pc_bounds): Adjust
5264 (dwarf2_record_block_ranges): Adjust.
5265 (read_full_die_1): Adjust
5266 (partial_die_info::read): Adjust.
5267 (read_rnglist_index): Adjust.
5269 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5272 * dwarf2/read.c (read_loclists_rnglists_header): Add
5273 header_offset parameter and use it.
5274 (read_loclist_index): Read header of the current contribution,
5275 not the one at the beginning of the section.
5276 (read_rnglist_index): Likewise.
5278 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5281 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5282 requires_reprocessing flag.
5283 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5285 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5286 and DW_FORM_loclistx.
5287 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5288 instead of set_address for DW_FORM_loclistx and
5291 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5293 * dwarf2/read.c (read_loclist_index): Remove bound check for
5295 (read_rnglist_index): Likewise.
5297 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5299 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5302 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5304 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5306 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5308 * dwarf2/read.c (read_loclist_index): Change complaints into
5311 2021-02-02 Tom de Vries <tdevries@suse.de>
5314 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5317 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5319 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5320 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5321 here from linux-tdep.c and given a new name. Minor cleanups.
5322 (gcore_collect_regset_section_cb): Likewise.
5323 (gcore_collect_thread_registers): Likewise.
5324 (gcore_build_thread_register_notes): Likewise.
5325 (gcore_find_signalled_thread): Likewise.
5326 * gcore.h (gcore_build_thread_register_notes): Declare.
5327 (gcore_find_signalled_thread): Declare.
5328 * fbsd-tdep.c: Add 'gcore.h' include.
5329 (struct fbsd_collect_regset_section_cb_data): Delete.
5330 (fbsd_collect_regset_section_cb): Delete.
5331 (fbsd_collect_thread_registers): Delete.
5332 (struct fbsd_corefile_thread_data): Delete.
5333 (fbsd_corefile_thread): Delete.
5334 (fbsd_make_corefile_notes): Call
5335 gcore_build_thread_register_notes instead of the now deleted
5337 * linux-tdep.c: Add 'gcore.h' include.
5338 (struct linux_collect_regset_section_cb_data): Delete.
5339 (linux_collect_regset_section_cb): Delete.
5340 (linux_collect_thread_registers): Delete.
5341 (linux_corefile_thread): Call
5342 gcore_build_thread_register_notes.
5343 (find_signalled_thread): Delete.
5344 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5346 2021-01-29 Tom de Vries <tdevries@suse.de>
5348 PR breakpoints/26063
5349 * infrun.c (process_event_stop_test): Reset
5350 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5353 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5355 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5356 assert. Extend the header comment.
5358 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5360 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5361 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5362 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5363 (tui_locator_win_info_ptr): Delete declaration.
5364 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5365 (tui_disasm_window::set_contents): Fetch state from tui_location
5367 (tui_get_begin_asm_address): Likewise.
5368 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5370 (get_locator_window): Delete.
5371 (initialize_known_windows): Treat locator window just like all the
5373 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5374 (tui_source_window::set_contents): Fetch state from tui_location
5376 (tui_source_window::showing_source_p): Likewise.
5377 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5379 (tui_locator_win_info_ptr): Delete.
5380 (tui_locator_window::make_status_line): Fetch state from
5381 tui_location global.
5382 (tui_locator_window::rerender): Remove check of 'handle',
5383 reindent function body.
5384 (tui_locator_window::set_locator_fullname): Delete.
5385 (tui_locator_window::set_locator_info): Delete.
5386 (tui_update_locator_fullname): Delete.
5387 (tui_show_frame_info): Likewise.
5388 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5389 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5390 tui/tui-location.h and renamed to
5391 tui_location_tracker::set_location.
5392 (tui_locator_window::set_locator_fullname): Moved to
5393 tui/tui-location.h and renamed to
5394 tui_location_tracker::set_fullname.
5395 (tui_locator_window::full_name): Delete.
5396 (tui_locator_window::proc_name): Delete.
5397 (tui_locator_window::line_no): Delete.
5398 (tui_locator_window::addr): Delete.
5399 (tui_locator_window::gdbarch): Delete.
5400 (tui_update_locator_fullname): Delete declaration.
5401 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5403 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5404 (tui_display_main): Call function on tui_location directly.
5405 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5406 * tui/tui-location.c: New file.
5407 * tui/tui-location.h: New file.
5409 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5411 * gdbtypes.h (get_type_arch): Rename to...
5412 (struct type) <arch>: ... this, update all users.
5414 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5416 * gdbtypes.h (struct type) <arch>: Rename to...
5417 <arch_owner>: ... this, update all users.
5418 <objfile>: Rename to...
5419 <objfile_owner>: ... this, update all users.
5421 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5423 * gdbcmd.h (execute_command_to_string): Update comment.
5424 * top.c (execute_command_to_string): Update header comment.
5426 2021-01-28 Tom de Vries <tdevries@suse.de>
5428 PR breakpoints/27205
5429 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5430 (create_longjmp_master_breakpoint_names): New function, factored out
5432 (create_longjmp_master_breakpoint): ... here. Only try to install
5433 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5434 breakpoint in libc.so failed.
5436 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5439 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5440 unique_ptr is released when the wrapped pointer is kept for later
5443 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5445 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5446 BLR and BR instructions.
5447 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5448 (enum aarch64_masks): New.
5450 2021-01-26 Tom Tromey <tromey@adacore.com>
5452 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5453 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5454 (windows_init_thread_list, windows_nat::handle_load_dll)
5455 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5456 (windows_nat_target::resume)
5457 (windows_nat_target::get_windows_debug_event)
5458 (windows_nat_target::interrupt, windows_xfer_memory)
5459 (windows_nat_target::close): Update.
5460 * nat/windows-nat.c (DEBUG_EVENTS): Use
5461 debug_prefixed_printf_cond.
5462 (matching_pending_stop, fetch_pending_stop)
5463 (continue_last_debug_event): Update.
5465 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5467 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5468 elfcore_write_file_note.
5470 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5472 * arc-tdep.c (arc_add_reggroups): New function.
5473 (arc_gdbarch_init): Call arc_add_reggroups.
5475 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5477 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5479 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5480 Simon Marchi <simon.marchi@polymtl.ca>
5481 Tom de Vries <tdevries@suse.de>
5483 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5486 2021-01-25 Tom Tromey <tromey@adacore.com>
5488 * dwarf2/read.c (get_mpz): New function.
5489 (get_dwarf2_rational_constant): Use it.
5491 2021-01-25 Tom Tromey <tromey@adacore.com>
5493 * ada-lang.c (resolve_subexp): Handle array context.
5495 2021-01-23 Tom Tromey <tom@tromey.com>
5498 * compile/compile-loc2c.c (note_register): New function.
5499 (pushf_register_address, pushf_register): Use it.
5501 2021-01-23 Tom Tromey <tom@tromey.com>
5503 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5504 Change type of "registers_used".
5505 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5506 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5507 (locexpr_generate_c_location, loclist_generate_c_location): Change
5508 type of "registers_used".
5509 * compile/compile.h (compile_dwarf_expr_to_c)
5510 (compile_dwarf_bounds_to_c): Update.
5511 * compile/compile-loc2c.c (pushf_register_address)
5512 (pushf_register, do_compile_dwarf_expr_to_c)
5513 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5514 of "registers_used".
5515 * compile/compile-c.h (generate_c_for_variable_locations):
5517 * compile/compile-c-symbols.c (generate_vla_size)
5518 (generate_c_for_for_one_variable): Change type of
5520 (generate_c_for_variable_locations): Return std::vector.
5521 * compile/compile-c-support.c (generate_register_struct): Change
5522 type of "registers_used".
5525 2021-01-23 Tom Tromey <tom@tromey.com>
5527 * compile/compile-internal.h (class compile_instance)
5528 <set_arguments>: Change return type.
5529 * compile/compile.c (compile_to_object): Remove call to reset.
5530 (compile_instance::set_arguments): Change return type.
5532 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5534 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5535 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5537 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5539 * Makefile.in (SELFTESTS_SRCS): Add
5540 unittests/gdb_tilde_expand-selftests.c.
5541 * unittests/gdb_tilde_expand-selftests.c: New file.
5543 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5546 * NEWS: Mention new command.
5547 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5548 (version_style): Define.
5549 (cli_style_option::cli_style_option): Add intensity parameter, and
5551 (_initialize_cli_style): Register version style set/show commands.
5552 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5553 (version_style): Declare.
5554 * top.c (print_gdb_version): Use version_stype, and styled_string
5555 to print the GDB version string.
5557 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5559 * utils.c (emit_style_escape): Only emit an escape sequence if the
5560 requested style is different than the current applied style.
5561 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5562 current applied_style.
5563 (fputs_styled): Remove is_default check.
5564 (fputs_styled_unfiltered): Likewise.
5565 (vfprintf_styled_no_gdbfmt): Likewise.
5567 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5569 * remote.h (remote_debug_printf): New.
5570 (remote_debug_printf_nofunc): New.
5571 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5572 * remote.c: Use above macros throughout file.
5574 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5576 * remote.h (remote_debug): Change to bool.
5577 * remote.c (remote_debug): Change to bool.
5578 (_initialize_remote): Adjust.
5580 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5582 * target.h (remote_debug): Move to...
5583 * remote.h (remote_debug): ... here.
5584 * top.c (remote_debug): Move to...
5585 * remote.c (remote_debug): ... here.
5586 * remote-sim.c: Include remote.h.
5588 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5590 * cli/cli-cmds.c (show_remote_debug): Remove.
5591 (show_remote_timeout): Remove.
5592 (_initialize_cli_cmds): Don't register commands.
5593 * remote.c (show_remote_debug): Move here.
5594 (show_remote_timeout): Move here.
5595 (_initialize_remote): Register commands.
5597 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5599 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5600 type::objfile method instead.
5602 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5604 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5605 use the type::is_objfile_owned method.
5607 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5609 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5610 (TYPE_OWNER): Remove.
5611 (TYPE_OBJFILE): Adjust.
5612 (struct main_type) <flag_objfile_owned>: Rename to...
5613 <m_flag_objfile_owned>: ... this.
5614 <owner>: Rename to...
5615 <m_owner>: ... this.
5616 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5618 (TYPE_ALLOC): Adjust.
5619 * gdbtypes.c (alloc_type): Adjust.
5620 (alloc_type_arch): Adjust.
5621 (alloc_type_copy): Adjust.
5622 (get_type_arch): Adjust.
5623 (smash_type): Adjust.
5624 (lookup_array_range_type): Adjust.
5625 (recursive_dump_type): Adjust.
5626 (copy_type_recursive): Adjust.
5627 * compile/compile-c-types.c (convert_func): Adjust.
5628 (convert_type_basic): Adjust.
5629 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5632 (language_arch_info::type_and_symbol::alloc_type_symbol):
5635 2021-01-21 Luis Machado <luis.machado@linaro.org>
5637 * coffread.c (enter_linenos): Passing string to complaint.
5638 * valops.c (value_assign): Make array view.
5640 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5642 * auto-load.h (debug_auto_load): Move here.
5643 (auto_load_debug_printf): New.
5644 * auto-load.c: Use auto_load_debug_printf.
5645 (debug_auto_load): Move to header.
5646 * linux-thread-db.c (try_thread_db_load): Use
5647 auto_load_debug_printf.
5648 * main.c (captured_main_1): Likewise.
5650 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5652 * f-valprint.c (f77_array_offset_tbl): Remove.
5654 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5656 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5658 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5660 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5663 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5666 * python/py-breakpoint.c (bppy_get_location): Handle
5667 bp_hardware_breakpoint.
5668 (bppy_init): Likewise.
5669 (gdbpy_breakpoint_created): Likewise.
5671 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5673 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5675 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5677 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5678 (_initialize_gdb_bfd): Adjust.
5680 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5683 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5685 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5687 * dwarf2/read.c (follow_die_offset): Add logging.
5688 (dwarf2_per_objfile::age_comp_units): Add logging.
5690 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5692 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5693 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5694 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5695 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5696 * arm-tdep.c (struct frame_unwind): Make static.
5697 * auto-load.c (auto_load_safe_path_vec): Make static.
5698 * csky-tdep.c (csky_stub_unwind): Make static.
5699 * gdbarch.c (gdbarch_data_registry): Make static.
5700 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5701 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5702 * i386-tdep.c (i386_frame_setup_skip_insns,
5703 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5705 * infrun.c (observer_mode): Make static.
5706 * linux-nat.c (sigchld_action): Make static.
5707 * linux-thread-db.c (thread_db_list): Make static.
5708 * maint-test-options.c (maintenance_test_options_list):
5709 * mep-tdep.c (mep_csr_registers): Make static.
5710 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5711 (stats): Make static.
5712 * nat/linux-osdata.c (struct osdata_type): Make static.
5713 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5714 * progspace.c (last_program_space_num): Make static.
5715 * python/py-param.c (struct parm_constant): Remove struct type
5717 (parm_constants): Make static.
5718 * python/py-record-btrace.c (btpy_list_methods): Make static.
5719 * python/py-record.c (recpy_gap_type): Make static.
5720 * record.c (record_goto_cmdlist): Make static.
5721 * regcache.c (regcache_descr_handle): Make static.
5722 * registry.h (DEFINE_REGISTRY): Make definition static.
5723 * symmisc.c (std_in, std_out, std_err): Make static.
5724 * top.c (previous_saved_command_line): Make static.
5725 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5727 * unittests/command-def-selftests.c (nr_duplicates,
5728 nr_invalid_prefixcmd, lists): Make static.
5729 * unittests/observable-selftests.c (test_notification): Make
5731 * unittests/optional/assignment/1.cc (counter): Make static.
5732 * unittests/optional/assignment/2.cc (counter): Make static.
5733 * unittests/optional/assignment/3.cc (counter): Make static.
5734 * unittests/optional/assignment/4.cc (counter): Make static.
5735 * unittests/optional/assignment/5.cc (counter): Make static.
5736 * unittests/optional/assignment/6.cc (counter): Make static.
5738 2021-01-20 Joel Sherrill <joel@rtems.org>
5741 * remote.c (struct remote_thread_info) <resume_state>: Rename
5743 <get_resume_state>: ... this.
5744 (remote_target::resume): Adjust.
5745 (remote_target::commit_resume): Adjust.
5746 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5748 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5749 Tom Tromey <tom@tromey.com>
5751 * stap-probe.c (stap_parse_single_operand): Handle '!'
5753 (stap_parse_argument_conditionally): Likewise.
5754 Skip spaces after processing open-parenthesis sub-expression.
5755 (stap_parse_argument_1): Skip spaces after call to
5756 stap_parse_argument_conditionally.
5757 Handle case when right-side expression is a parenthesized
5759 Skip spaces after call to stap_parse_argument_1.
5761 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5763 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5765 2021-01-19 Luis Machado <luis.machado@linaro.org>
5767 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5768 memory and save data.
5769 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5770 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5771 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5772 (trad_frame_value_bytes_p): Remove.
5773 (trad_frame_reset_saved_regs): Adjust documentation.
5774 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5775 constructor and reset the state of the registers.
5776 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5777 (trad_frame_value_bytes_p, trad_frame_set_value)
5778 (trad_frame_set_realreg, trad_frame_set_addr)
5779 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5780 (trad_frame_set_reg_realreg): Update to call member function.
5781 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5782 (trad_frame_get_prev_register): Likewise.
5784 * aarch64-tdep.c (aarch64_analyze_prologue)
5785 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5786 (aarch64_prologue_prev_register): Update to use member functions.
5787 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5788 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5789 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5790 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5791 (arm_make_epilogue_frame_cache): Likewise.
5792 * avr-tdep.c (avr_frame_unwind_cache)
5793 (avr_frame_prev_register): Likewise.
5794 * cris-tdep.c (cris_scan_prologue): Likewise.
5795 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5796 * frv-tdep.c (frv_analyze_prologue): Likewise.
5797 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5798 * lm32-tdep.c (lm32_frame_cache): Likewise.
5799 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5800 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5801 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5802 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5803 (reset_saved_regs): Adjust to set realreg.
5804 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5805 call member functions.
5806 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5807 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5808 (s390_backchain_frame_unwind_cache): Likewise.
5809 * score-tdep.c (score7_analyze_prologue)
5810 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5811 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5812 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5813 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5814 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5815 * tilegx-tdep.c (tilegx_analyze_prologue)
5816 (tilegx_frame_cache): Likewise.
5817 * v850-tdep.c (v850_frame_cache): Likewise.
5818 * vax-tdep.c (vax_frame_cache): Likewise.
5820 2021-01-19 Luis Machado <luis.machado@linaro.org>
5822 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5824 (put_frame_register_bytes): Likewise.
5825 Adjust documentation.
5826 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5827 (safe_frame_unwind_memory): Likewise.
5828 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5829 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5831 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5832 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5833 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5834 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5835 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5836 * dwarf2/loc.c (rw_pieced_value): Likewise.
5837 * hppa-tdep.c (hppa_frame_cache): Likewise.
5838 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5839 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5840 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5841 (i386_linux_rt_sigtramp_start): Likewise.
5842 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5843 * i386-tdep.c (i386_register_to_value): Likewise.
5844 * i387-tdep.c (i387_register_to_value): Likewise.
5845 * ia64-tdep.c (ia64_register_to_value): Likewise.
5846 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5847 (m32r_linux_rt_sigtramp_start): Likewise.
5848 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5849 * m68k-tdep.c (m68k_register_to_value): Likewise.
5850 * mips-tdep.c (mips_register_to_value)
5851 (mips_value_to_register): Likewise.
5852 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5853 (ppcfbsd_sigtramp_frame_cache): Likewise.
5854 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5855 (ppcobsd_sigtramp_frame_cache): Likewise.
5856 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5857 (rs6000_register_to_value): Likewise.
5858 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5859 * tramp-frame.c (tramp_frame_start): Likewise.
5860 * valops.c (value_assign): Likewise.
5862 2021-01-19 Luis Machado <luis.machado@linaro.org>
5864 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5866 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5867 instead of buffer and size.
5868 (trad_frame_set_reg_value_bytes): Likewise.
5869 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5870 (trad_frame_set_value_bytes): Likewise.
5872 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5874 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5876 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5878 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5879 (riscv_fbsd_gregset): Use riscv_supply_regset.
5880 (riscv_fbsd_fpregset): Likewise.
5881 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5882 (riscv_linux_fregset): Likewise.
5883 * riscv-tdep.c (riscv_supply_regset): Define new function.
5884 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5886 2021-01-18 Tom de Vries <tdevries@suse.de>
5889 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5891 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5894 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5896 * remote.c (class remote_target) <remote_hostio_send_command,
5897 remote_hostio_parse_result>: Constify parameter.
5898 (remote_hostio_parse_result): Likewise.
5899 (remote_target::remote_hostio_send_command): Adjust.
5900 (remote_target::remote_hostio_pread_vFile): Adjust.
5901 (remote_target::fileio_readlink): Adjust.
5902 (remote_target::fileio_fstat): Adjust.
5904 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5906 * remote.c (remote_target::start_remote): Move wait_status to
5909 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5911 * remote.c (class remote_target):
5912 <add_current_inferior_and_thread>: Constify parameter.
5913 (stop_reply_extract_thread): Likewise.
5914 (remote_target::get_current_thread): Likewise.
5915 (remote_target::add_current_inferior_and_thread): Likewise.
5917 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5919 * remote.c (class remote_target)
5920 <remote_unpack_thread_info_response,
5921 parse_threadlist_response>: Constify parameter and/or return
5922 value and or local variable.
5923 (stub_unpack_int): Likewise.
5924 (unpack_nibble): Likewise.
5925 (unpack_byte): Likewise.
5926 (unpack_int): Likewise.
5927 (unpack_string): Likewise.
5928 (unpack_threadid): Likewise.
5929 (remote_target::remote_unpack_thread_info_response): Likewise.
5930 (remote_target::parse_threadlist_response): Likewise.
5932 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5934 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5936 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5938 * MAINTAINERS (Write After Approval): Add myself.
5940 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5942 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5943 because is_trivially_default_constructible was first implemented with
5946 2021-01-14 Tom de Vries <tdevries@suse.de>
5948 PR breakpoints/27151
5949 * objfiles.h (in_plt_section): Handle .plt.sec.
5951 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5955 (remote_target::select_thread_for_ambiguous_stop_reply): New
5957 (remote_target::process_stop_reply): Call
5958 select_thread_for_ambiguous_stop_reply.
5960 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5962 * record-btrace.c (class record_btrace_target): Remove.
5963 (record_btrace_target::commit_resume): Remove.
5964 * record-full.c (class record_full_target): Remove.
5965 (record_full_target::commit_resume): Remove.
5967 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5969 * remote.c (enum class resume_state): New.
5970 (struct resumed_pending_vcont_info): New.
5971 (struct remote_thread_info) <resume_state, set_not_resumed,
5972 set_resumed_pending_vcont, resumed_pending_vcont_info,
5973 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5975 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5976 (remote_target::remote_add_thread): Adjust.
5977 (remote_target::process_initial_stop_replies): Adjust.
5978 (remote_target::resume): Adjust.
5979 (remote_target::commit_resume): Rely on state in
5980 remote_thread_info and not on tp->executing.
5981 (remote_target::process_stop_reply): Adjust.
5983 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5985 * arc-tdep.h (arc_debug_printf): New.
5986 * arc-tdep.c: Use arc_debug_printf.
5987 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5988 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5989 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5991 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5993 * arc-tdep.h (arc_debug): Change type to bool.
5994 * arc-tdep.c (arc_debug): Change type to bool.
5995 (arc_analyze_prologue): Adjust.
5996 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5997 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5999 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6001 * auto-load.c (auto_load_objfile_script_1): Use bool.
6002 (execute_script_contents): Use bool.
6004 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6006 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6008 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6010 * extension-priv.h (struct extension_language_script_ops)
6011 <auto_load_enabled>: Return bool.
6012 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6014 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6016 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6018 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6019 move comment to header.
6020 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6022 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6023 move comment to header.
6025 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6027 * auto-load.h (file_is_auto_load_safe): Change return type to
6028 bool, move comment here.
6029 * auto-load.c (file_is_auto_load_safe): Change return type and
6030 advice_printed to bool. Move comment to header.
6032 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6034 * jit.c (jit_debug_printf): New, use throughout file.
6036 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6038 * infrun.c (normal_stop): Fix indentation.
6040 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6042 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6044 * symfile.h: ... here.
6045 * symfile.c: Update doc.
6047 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6049 * target.h (baud_rate, serial_parity): Move declarations...
6050 * serial.h: ... here.
6051 * main.c: Include serial.h.
6052 * serial.c (baud_rate, serial_parity): Update doc.
6054 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6056 * top.c (pre_init_ui_hook): Remove.
6058 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6060 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6061 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6062 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6063 * features/aarch64-fpu.xml: Add bfloat16 type.
6065 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6067 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6069 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6071 * f-exp.y (dot_ops): Rename to...
6072 (fortran_operators): ...this. Add a header comment. Add symbol
6074 (yylex): Update to use fortran_operators not dot_ops. Remove
6075 special handling for '**', this is now included in
6078 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6080 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6081 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6082 * aarch64-tdep.c: Use aarch64_debug_printf.
6084 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6086 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6089 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6091 * jit.c (jit_debug): Change type to bool.
6092 (_initialize_jit): Adjust.
6094 2021-01-09 Tom Tromey <tom@tromey.com>
6097 * compile/compile.c (compile_to_object): Avoid crash when
6098 osabi_triplet_regexp returns NULL.
6100 2021-01-09 Tom Tromey <tom@tromey.com>
6102 * tracepoint.h (class collection_list) <append_exp>: Take a
6104 * tracepoint.c (collection_list::append_exp): Take a std::string.
6105 (encode_actions_1): Update.
6107 2021-01-08 Tom Tromey <tromey@adacore.com>
6109 * parse.c (parse_expression): Add void_context_p parameter. Use
6110 parse_exp_in_context.
6111 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6113 (print_command, call_command): Update.
6114 * expression.h (parse_expression): Add void_context_p parameter.
6116 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6118 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6119 for internalvar components that have a dynamic location.
6121 2021-01-08 Tom de Vries <tdevries@suse.de>
6124 * breakpoint.c (create_exception_master_breakpoint_probe)
6125 (create_exception_master_breakpoint_hook): Factor out
6127 (create_exception_master_breakpoint): ... here. Only try to install
6128 the master exception breakpoint in objfile.debug using the
6129 _Unwind_DebugHook method, if the install using probes in objfile
6132 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6134 * f-lang.c (fortran_value_subarray): Call value_from_component.
6136 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6138 * remote-sim.c: Include memory-map.h.
6139 (gdbsim_target): Define memory_map override.
6140 (gdbsim_target::memory_map): Define.
6142 2021-01-07 Tom Tromey <tromey@adacore.com>
6144 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6146 2021-01-07 Tom Tromey <tromey@adacore.com>
6148 * ada-lang.c (add_component_interval): Start loop using vector's
6151 2021-01-06 Tom Tromey <tromey@adacore.com>
6153 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6155 * valarith.c (fixed_point_binop): Handle multiplication
6156 and division specially.
6157 * valops.c (value_to_gdb_mpq): New function.
6158 (value_cast_to_fixed_point): Use it.
6160 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6162 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6163 Call wnoutrefresh instead of tui_win_info::refresh_window.
6165 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6167 * tui/tui-source.c (tui_source_window::show_line_number):
6168 Redraw second space after line number.
6170 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6173 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6174 Fix source pad size in prefresh.
6175 (tui_source_window_base::show_source_content): Grow source pad
6178 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6180 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6181 (bfin_frame_align): Use align_down.
6183 2021-01-04 Tom de Vries <tdevries@suse.de>
6185 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6186 terminators that do not terminate anything.
6188 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6190 * debug.c (debug_print_depth): New.
6191 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6192 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6193 * infrun.c (start_step_over): Use
6194 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6195 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6196 INFRUN_SCOPED_DEBUG_START_END.
6197 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6199 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6201 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6203 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6205 * utils.c (vfprintf_unfiltered): Print timestamp only when
6206 previous debug output ended with a newline.
6208 2021-01-04 Luis Machado <luis.machado@linaro.org>
6210 Update all users of trad_frame_saved_reg to use the new member
6213 Remote all struct keywords from declarations of trad_frame_saved_reg
6214 types, except on forward declarations.
6216 * aarch64-tdep.c: Update.
6217 * alpha-mdebug-tdep.c: Update.
6218 * alpha-tdep.c: Update.
6219 * arc-tdep.c: Update.
6220 * arm-tdep.c: Update.
6221 * avr-tdep.c: Update.
6222 * cris-tdep.c: Update.
6223 * csky-tdep.c: Update.
6224 * frv-tdep.c: Update.
6225 * hppa-linux-tdep.c: Update.
6226 * hppa-tdep.c: Update.
6227 * hppa-tdep.h: Update.
6228 * lm32-tdep.c: Update.
6229 * m32r-linux-tdep.c: Update.
6230 * m32r-tdep.c: Update.
6231 * m68hc11-tdep.c: Update.
6232 * mips-tdep.c: Update.
6233 * moxie-tdep.c: Update.
6234 * riscv-tdep.c: Update.
6235 * rs6000-tdep.c: Update.
6236 * s390-linux-tdep.c: Update.
6237 * s390-tdep.c: Update.
6238 * score-tdep.c: Update.
6239 * sparc-netbsd-tdep.c: Update.
6240 * sparc-sol2-tdep.c: Update.
6241 * sparc64-fbsd-tdep.c: Update.
6242 * sparc64-netbsd-tdep.c: Update.
6243 * sparc64-obsd-tdep.c: Update.
6244 * sparc64-sol2-tdep.c: Update.
6245 * tilegx-tdep.c: Update.
6246 * v850-tdep.c: Update.
6247 * vax-tdep.c: Update.
6249 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6250 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6252 * trad-frame.c: Update.
6253 Remove TF_REG_* enum.
6254 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6255 a trivially-constructible struct.
6256 (trad_frame_reset_saved_regs): Adjust to use member function.
6257 (trad_frame_value_p): Likewise.
6258 (trad_frame_addr_p): Likewise.
6259 (trad_frame_realreg_p): Likewise.
6260 (trad_frame_value_bytes_p): Likewise.
6261 (trad_frame_set_value): Likewise.
6262 (trad_frame_set_realreg): Likewise.
6263 (trad_frame_set_addr): Likewise.
6264 (trad_frame_set_unknown): Likewise.
6265 (trad_frame_set_value_bytes): Likewise.
6266 (trad_frame_get_prev_register): Likewise.
6267 * trad-frame.h: Update.
6268 (trad_frame_saved_reg_kind): New enum.
6269 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6270 <m_kind, m_reg>: New member fields.
6271 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6272 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6273 <is_addr, is_unknown, is_value_bytes>: New member functions.
6275 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6277 * target-float.c: Fix typos.
6279 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6281 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6283 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6285 * gdbarch.sh: Update copyright year range.
6287 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6289 Update copyright year range in copyright header of all GDB files.
6291 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6293 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6294 to the list of directories to update.
6296 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6298 * top.c (print_gdb_version): Update copyright year.
6300 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6302 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6304 For older changes see ChangeLog-2020.
6310 version-control: never