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