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