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