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