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