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