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