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