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