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