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