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