Fix buffer underflow in add_path
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
baea2f9d
TT
12021-05-17 Tom Tromey <tromey@adacore.com>
2
3 * source.c (add_path): Check 'p' before using 'p[-1]'.
4
473ab964
TT
52021-05-17 Tom Tromey <tromey@adacore.com>
6
7 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
8 (dwarf2_per_cu_data_up): New typedef.
9 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
10 <all_comp_units>: Use dwarf2_per_cu_data_up.
11 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
12 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
13 (create_cu_from_index_list): Likewise.
14 (create_signatured_type_table_from_index)
15 (create_cus_from_debug_names_list, add_type_unit)
16 (read_comp_units_from_section): Update.
17 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
18 (run_test): Update.
19
16e0020b
TT
202021-05-17 Tom Tromey <tom@tromey.com>
21
22 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
23 (sort_tu_by_abbrev_offset): Remove.
24 (build_type_psymtabs): Update.
25
91e159e9
SM
262021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * py-project.toml: New.
29 * gdb-gdb.py.in: Re-format.
30
034dce7a
SM
312021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
32
33 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
34 New, use it.
35 * command.h (cmd_func_p): Remove.
36 * cli/cli-decode.c (cmd_func_p): Remove.
37
1be99b11
SM
382021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
41
99858724
SM
422021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
45 to...
46 <alias_target>: ... this.
47 (add_alias_cmd): Rename old to target.
48 (add_info_alias): Rename old_name to target_name.
49 (add_com_alias): Likewise.
50
14b42fc4
SM
512021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * Rename "prefixlist" parameters to "subcommands" throughout.
54 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
55 <subcommands>: ... this.
56 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
57 (lookup_cmd_with_subcommands): ... this.
58
ecd0a6b3
SM
592021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
62
413b49c2
SM
632021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
64
65 * cli/cli-decode.h (prefixname): Make const, move implementation
66 to cli/cli-decode.c.
67 * cli/cli-decode.c (cmd_list_element::prefixname): New.
68
ea11a98d
WP
692021-05-16 Weimin Pan <weimin.pan@oracle.com>
70
71 * ctfread.c (new_symbol): Set function address.
72 (read_func_kind_type): Remove incorrect type name setting.
73 Don't copy name returned from ctf_type_ame_raw throughout file.
74
887e7158
TT
752021-05-14 Tom Tromey <tom@tromey.com>
76
77 * rust-lang.c (rust_language::val_print_struct)
78 (rust_language::print_enum): Use common_val_print, not
79 value_print_inner.
80
55789354
TBA
812021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
82
83 * python/py-inferior.c (infpy_get_connection_num): New function.
84 (inferior_object_getset): Add a new element for 'connection_num'.
85 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
86
2f63ec5c
AB
872021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
88
89 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
90 argument type, update and re-wrap, header comment.
91 (remote_target::commit_resumed): Convert any_process_wildcard and
92 may_global_wildcard_vcont from int to bool.
93
ecf25064
KC
942021-05-14 Kent Cheung <kent.cheung@arm.com>
95
96 * cp-valprint.c (cp_print_value): Replaced duplicate code.
97 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
98 just before printing child values.
99 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
100 printing string representation.
101 * python/py-prettyprint.c (print_children): Check max_depth just
102 before printing child values.
103 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
104 printing string representation.
105
df68e12b
MF
1062021-05-14 Mike Frysinger <vapier@gentoo.org>
107
108 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
109 sim/callback.h & sim/sim.h.
110
183aaaf7
MF
1112021-05-13 Mike Frysinger <vapier@gentoo.org>
112
113 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
114 sim-regno.h include.
115
737358ba
SM
1162021-05-13 Simon Marchi <simon.marchi@efficios.com>
117
118 * inf-child.h (inf_child_target) <follow_exec>: New.
119 * inf-child.c (inf_child_target::follow_exec): New.
120
294c36eb
SM
1212021-05-13 Simon Marchi <simon.marchi@efficios.com>
122
123 * target.h (struct target_ops) <follow_exec>: Add ptid_t
124 parameter.
125 (target_follow_exec): Likewise.
126 * target.c (target_follow_exec): Add ptid_t parameter.
127 * infrun.c (follow_exec): Adjust call to target_follow_exec,
128 don't push target nor create thread.
129 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
130 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
131 (thread_db_target::follow_exec): New.
132 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
133 (remote_target::follow_exec): Call
134 process_stratum_target::follow_exec.
135 * target-delegates.c: Re-generate.
136
2af87c85
SM
1372021-05-13 Simon Marchi <simon.marchi@efficios.com>
138
139 * infrun.c (follow_exec): Call target_follow_fork when
140 follow-exec-mode is same.
141 * target.h (target_follow_fork): Improve doc.
142
0b2256f7
SM
1432021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
146 Remove.
147 * cli/cli-setshow.c (do_show_command): Adjust.
148
0746f49b
LM
1492021-05-13 Luis Machado <luis.machado@linaro.org>
150
151 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
152 include the last address in the range.
153
4b8cb9dd
SM
1542021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
155
156 * python/python-internal.h (gdbpy_parse_command_name): Return
157 gdb::unique_xmalloc_ptr.
158 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
159 (cmdpy_init): Adjust.
160 * python/py-param.c (parmpy_init): Adjust.
161 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
162 when done.
163
ee35ce82
GB
1642021-05-12 George Barrett <bob@bob131.so>
165
166 * NEWS (Guile API): Note the addition of the new procedure.
167 * guile/scm-value.c (gdbscm_value_const_value): Add
168 implementation of value-const-value procedure.
169 (value_functions): Add value-const-value procedure.
170
9d4fc61d
GB
1712021-05-12 George Barrett <bob@bob131.so>
172
173 * NEWS (Guile API): Note the addition of new procedures.
174 * guile/scm-value.c (gdbscm_reference_value): Add helper function
175 for reference value creation.
176 (gdbscm_value_reference_value): Add implementation of
177 value-reference-value procedure.
178 (gdbscm_value_rvalue_reference_value): Add implementation of
179 value-rvalue-reference-value procedure.
180 (value_functions): Add value-reference-value procedure. Add
181 value-rvalue-reference-value procedure.
182
97cef6b7
GB
1832021-05-12 George Barrett <bob@bob131.so>
184
185 * guile/scm-type.c (type_integer_constants): Add binding for
186 TYPE_CODE_RVALUE_REF.
187 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
188 dereferencing of rvalue references.
189 * NEWS (Guile API): Note improvements in rvalue reference support.
190
d51344c9
MM
1912021-05-12 Markus Metzger <markus.t.metzger@intel.com>
192
193 * btrace.c (handle_pt_insn_events): Ignore status update enable
194 events.
195
f2a883a8
SM
1962021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
197
198 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
199 indentation.
200
64f30eb0
SM
2012021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
204
db1f6cd6
LS
2052021-05-10 Lancelot Six <lsix@lancelotsix.com>
206
207 PR gdb/27614
208 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
209 argument.
210
31aceaef
SM
2112021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
212
213 * nat/linux-waitpid.c (status_to_str): Show signal name.
214
75140e3b
AB
2152021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * python/py-breakpoint.c (pybp_debug): New static global.
218 (show_pybp_debug): New function.
219 (pybp_debug_printf): Define.
220 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
221 (gdbpy_breakpoint_created): Add some debugging.
222 (gdbpy_breakpoint_deleted): Likewise.
223 (gdbpy_breakpoint_modified): Likewise.
224 (_initialize_py_breakpoint): New function.
225
1ef40c13
AB
2262021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
227
228 * python/py-unwind.c (pyuw_debug): Convert to bool.
229 (show_pyuw_debug): New function.
230 (pyuw_debug_printf): Define.
231 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
232 (pyuw_this_id): Convert to new debug print macros.
233 (pyuw_prev_register): Likewise.
234 (pyuw_sniffer): Likewise.
235 (pyuw_dealloc_cache): Likewise.
236 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
237 show function when registering.
238
927c4e35
AB
2392021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * dummy-frame.c (fprint_dummy_frames): Convert use of
242 fprint_frame_id to use frame_id::to_string.
243 * frame.c (fprint_field): Delete.
244 (fprint_frame_id): Moved to...
245 (frame_id::to_string): ...this, rewritten to return a string.
246 (fprint_frame): Convert use of fprint_frame_id to use
247 frame_id::to_string.
248 (compute_frame_id): Likewise.
249 (frame_id_p): Likewise.
250 (frame_id_eq): Likewise.
251 (frame_id_inner): Likewise.
252 * frame.h (struct frame_id) <to_string>: New member function.
253 (fprint_frame_id): Delete declaration.
254 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
255 fprint_frame_id to use frame_id::to_string.
256 * python/py-frame.c (frame_object_to_frame_info): Likewise.
257 * python/py-unwind.c (unwind_infopy_str): Likewise.
258 (pyuw_this_id): Likewise.
259
8d06918f
SM
2602021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * nat/linux-waitpid.c (status_to_str): Return std::string.
263 * nat/linux-waitpid.h (status_to_str): Likewise.
264 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
265 (linux_nat_target::attach): Adjust.
266 (linux_handle_extended_wait): Adjust.
267 (wait_lwp): Adjust.
268 (stop_wait_callback): Adjust.
269 (linux_nat_filter_event): Adjust.
270 (linux_nat_wait_1): Adjust.
271 * nat/linux-waitpid.c (status_to_str): Adjust.
272 * nat/linux-waitpid.h (status_to_str): Adjust.
273
550e9289
SM
2742021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * infrun.h (infrun_debug_printf): Add missing space.
277
4655f850
PA
2782021-05-08 Pedro Alves <pedro@palves.net>
279
280 * linux-nat.c (linux_nat_target::supports_disable_randomization):
281 Remove references to HAVE_PERSONALITY.
282 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
283 (maybe_disable_address_space_randomization)
284 (~maybe_disable_address_space_randomizatio): Remove references to
285 HAVE_PERSONALITY.
286 * config.in, configure: Regenerate.
287
1845e254
AB
2882021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
291 include.
292 (source_script_with_search): Perform tilde expansion.
293
91e3c425
SM
2942021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * target-descriptions.c (struct target_desc_info) <filename>:
297 Make std::string.
298 (copy_inferior_target_desc_info): Adjust.
299 (target_desc_info_free): Adjust.
300 (target_find_description): Adjust.
301 (set_tdesc_filename_cmd): Adjust.
302 (show_tdesc_filename_cmd): Adjust.
303 (unset_tdesc_filename_cmd): Adjust.
304 (maint_print_c_tdesc_cmd): Adjust.
305
0b2f7ade
SM
3062021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
307
308 * target-descriptions.c (struct target_desc_info): Initialize
309 fields.
310 (get_tdesc_info): Use new.
311 (target_desc_info_free): Use delete.
312
820c4490
SM
3132021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * target-descriptions.c (struct target_desc_info) <fetched>:
316 bool.
317 (target_find_description): Adjust.
318 (target_clear_description): Adjust.
319
c2962e6a
SM
3202021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * target-descriptions.c (struct target_desc_info) <tdesc>:
323 Adjust doc.
324 (target_desc_fetched): Remove.
325 (current_target_desc): Remove.
326 (target_description_filename): Remove.
327 (target_find_description): Adjust.
328 (target_clear_description): Adjust.
329 (target_current_description): Adjust.
330 (set_tdesc_filename_cmd): Adjust.
331 (show_tdesc_filename_cmd): Adjust.
332 (unset_tdesc_filename_cmd): Adjust.
333 (maint_print_c_tdesc_cmd): Adjust.
334 (maint_print_xml_tdesc_cmd): Adjust.
335
8a82de58
AB
3362021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
337
338 * infcmd.c (notice_new_inferior): Change parameter type.
339 * inferior.h (notice_new_inferior): Change parameter type.
340 * remote.c (remote_notice_new_inferior): Change parameter type to
341 bool. Also update type of local variable to bool.
342 (remote_target::update_thread_list): Change type of local variable
343 to bool.
344 (remote_target::process_stop_reply): Pass bool instead of int to
345 remote_notice_new_inferior.
346
bedc4734
SM
3472021-05-07 Simon Marchi <simon.marchi@efficios.com>
348
349 * target.c (target_stack::unpush): Call target_ops::find_beneath
350 to get the target beneath `t`.
351
27f0a431
SM
3522021-05-07 Simon Marchi <simon.marchi@efficios.com>
353
354 * target.c (target_close): Check in all inferiors that the
355 target is not pushed.
356
1d1669e4
AM
3572021-05-07 Aaron Merey <amerey@redhat.com>
358
359 * debuginfod-support.c (debuginfod_init): Remove.
360 (get_debuginfod_client): New function.
361
2698f5ea
TT
3622021-05-07 Tom Tromey <tom@tromey.com>
363
364 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
365 * utils.c (streq_hash): Remove.
366 * utils.h (streq_hash): Don't declare.
367 * completer.c (completion_tracker::discard_completions): Update
368 comment.
369 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
370
13123da8
SM
3712021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
372
373 * Re-format all Python files using black.
374
9589edb8
AB
3752021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
376
377 * guile/guile-internal.h (gdbscm_safe_source_script): Change
378 function return type.
379 * guile/guile.c (gdbscm_source_script): Update to handle change in
380 gdbscm_safe_source_script.
381 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
382 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
383 type.
384
ec66d6ea
SM
3852021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
386
387 * inferior.h (class inferior) <args>: Change type to
388 unique_xmalloc_ptr.
389 * inferior.c (inferior::~inferior): Don't free args.
390 * infcmd.c (get_inferior_args): Adjust.
391 (set_inferior_args): Adjust.
392
0618ecf6
AB
3932021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
394
395 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
396 breakpoint locations when the breakpoint actually has a location.
397
79aabb73
TBA
3982021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
399
400 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
401 * mi/mi-cmds.c: Change the binding of "-break-condition" to
402 mi_cmd_break_condition.
403 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
404 * breakpoint.h (set_breakpoint_condition): Declare a new
405 overload.
406 * breakpoint.c (set_breakpoint_condition): New overloaded function
407 extracted out from ...
408 (condition_command): ... this.
409 * NEWS: Mention the change.
410
10e578d7
TBA
4112021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
412
413 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
414 '--force-condition' flag to force the condition in the
415 '-break-insert' and '-dprintf-insert' commands.
416 * NEWS: Mention the change.
417
225bda24
TV
4182021-05-04 Tom de Vries <tdevries@suse.de>
419
420 PR guile/27806
421 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
422 memory functions.
423
b8efb248
TT
4242021-04-30 Tom Tromey <tom@tromey.com>
425
426 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
427 (add_signatured_type_cu_to_table): Remove.
428 (create_debug_type_hash_table): Assume dwo_file is non-null.
429 (create_debug_types_hash_table): Update comment.
430 (create_all_type_units): Remove.
431 (sort_tu_by_abbrev_offset): Update comment.
432 (build_type_psymtabs): Rename from build_type_psymtabs_1.
433 (build_type_psymtabs): Remove.
434 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
435 Update.
436 (read_comp_units_from_section): Add types_htab, section_kind
437 parameters.
438 (create_all_comp_units): Read type units.
439
91eea9cc
TT
4402021-04-30 Tom Tromey <tom@tromey.com>
441
442 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
443 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
444 <get_cu>: Now inline.
445 <all_type_units>: Remove.
446 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
447 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
448 (dwarf2_per_bfd::get_tu): Remove.
449 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
450 (create_signatured_type_table_from_index)
451 (create_signatured_type_table_from_debug_names)
452 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
453 (dwarf2_base_index_functions::expand_all_symtabs)
454 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
455 (dwarf2_base_index_functions::map_symbol_filenames)
456 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
457 (add_signatured_type_cu_to_table, create_all_type_units)
458 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
459 (create_all_comp_units): Update.
460 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
461 (write_debug_names): Update.
462
0d305d5c
TT
4632021-04-30 Tom Tromey <tom@tromey.com>
464
465 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
466 allocate_signatured_type>: Change return type.
467 <all_comp_units, all_type_units>: Hold unique pointers.
468 (struct dwarf2_per_cu_data): Add constructor and initializers.
469 (struct signatured_type): Derive from dwarf2_per_cu_data.
470 * dwarf2/read.c (type_unit_group): Derive from
471 dwarf2_per_cu_data.
472 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
473 (dwarf2_per_bfd::get_tu)
474 (dwarf2_per_bfd::allocate_signatured_type)
475 (dwarf2_per_bfd::allocate_signatured_type)
476 (create_cu_from_index_list, create_cus_from_index_list)
477 (create_signatured_type_table_from_index)
478 (create_signatured_type_table_from_debug_names)
479 (create_addrmap_from_aranges)
480 (dwarf2_base_index_functions::find_last_source_symtab)
481 (dw_expand_symtabs_matching_file_matcher)
482 (dwarf2_gdb_index::expand_symtabs_matching)
483 (dwarf2_base_index_functions::map_symbol_filenames)
484 (create_cus_from_debug_names_list)
485 (dw2_debug_names_iterator::next)
486 (dwarf2_debug_names_index::expand_symtabs_matching)
487 (create_debug_type_hash_table, add_type_unit)
488 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
489 Update.
490 (allocate_type_unit_groups_table): Use delete.
491 (create_type_unit_group): Change return type. Use new.
492 (get_type_unit_group, build_type_psymtabs_1)
493 (build_type_psymtab_dependencies)
494 (process_skeletonless_type_unit, set_partial_user)
495 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
496 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
497 (read_signatured_type): Update.
498 (dwarf2_find_containing_comp_unit): Change type of
499 'all_comp_units'.
500 (run_test): Update.
501 (dwarf2_per_bfd::allocate_per_cu)
502 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
503 Use new.
504 (add_signatured_type_cu_to_table): Update.
505 * dwarf2/index-write.c (write_one_signatured_type)
506 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
507 (write_debug_names): Update.
508
1bee48c7
TT
5092021-04-30 Tom Tromey <tromey@adacore.com>
510
511 * nat/windows-nat.h (get_image_name): Don't declare.
512 * nat/windows-nat.c (get_image_name): Now static.
513
e228ef97
TT
5142021-04-30 Tom Tromey <tromey@adacore.com>
515
516 * windows-nat.c (windows_nat::handle_load_dll): Update.
517 (windows_nat_target::get_windows_debug_event): Call
518 dll_loaded_event.
519 (windows_add_all_dlls, windows_add_dll): Move to
520 nat/windows-nat.c.
521 * nat/windows-nat.h (handle_load_dll): Change parameters.
522 (dll_loaded_event, windows_add_all_dlls): Declare.
523 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
524 from windows-nat.c.
525 (dll_loaded_event): New function.
526
de071872
TT
5272021-04-30 Tom Tromey <tromey@adacore.com>
528
529 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
530 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
531 Declare.
532 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
533 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
534
9e439f00
TT
5352021-04-30 Tom Tromey <tromey@adacore.com>
536
537 * windows-nat.c: Move code to nat/windows-nat.[ch].
538 (_initialize_windows_nat): Call initialize_loadable.
539 * nat/windows-nat.h (AdjustTokenPrivileges)
540 (DebugActiveProcessStop, DebugBreakProcess)
541 (DebugSetProcessKillOnExit, EnumProcessModules)
542 (EnumProcessModulesEx, GetModuleInformation)
543 (GetModuleFileNameExA, GetModuleFileNameExW)
544 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
545 (GetCurrentConsoleFont, Wow64SuspendThread)
546 (Wow64GetThreadContext, Wow64SetThreadContext)
547 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
548 (AdjustTokenPrivileges_ftype)
549 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
550 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
551 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
552 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
553 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
554 (GetConsoleFontSize_ftype)
555 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
556 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
557 (Wow64GetThreadSelectorEntry_ftype): Likewise.
558 (initialize_loadable): Declare.
559 * nat/windows-nat.c (AdjustTokenPrivileges)
560 (DebugActiveProcessStop, DebugBreakProcess)
561 (DebugSetProcessKillOnExit, EnumProcessModules)
562 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
563 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
564 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
565 (Wow64GetThreadContext, Wow64SetThreadContext)
566 (Wow64GetThreadSelectorEntry): Define.
567 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
568 from windows-nat.c.
569 (initialize_loadable): Likewise, and rename.
570
1053c638
TT
5712021-04-30 Tom Tromey <tromey@adacore.com>
572
573 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
574 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
575 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
576 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
577 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
578 (bad): New template functions.
579 (_initialize_loadable): Update.
580
2869ac4b
TT
5812021-04-30 Tom Tromey <tromey@adacore.com>
582
583 * ada-lang.c (ada_index_type): Use ada_check_typedef.
584
e197dfae
SM
5852021-04-29 Simon Marchi <simon.marchi@efficios.com>
586
587 * auto-load.h: Split namespace declaration.
588
89ba430c
SM
5892021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
590
591 * infrun.c (save_waitstatus): Move variables to inner scope.
592
8eb82ba1
AB
5932021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * NEWS: Fix typo and stray full stop.
596
db2534b7
TT
5972021-04-28 Tom Tromey <tromey@adacore.com>
598
599 * ada-exp.y (primary): Use new type for null pointer.
600 * ada-lang.c (ada_type_match): Remove "may_deref"
601 parameter. Handle null pointer.
602 (ada_args_match): Update.
603 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
604 Handle null pointer.
605
edeaceda
AB
6062021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * NEWS: Mention new commands.
609 * python/python.c (python_ignore_environment): New static global.
610 (show_python_ignore_environment): New function.
611 (set_python_ignore_environment): New function.
612 (python_dont_write_bytecode): New static global.
613 (show_python_dont_write_bytecode): New function.
614 (set_python_dont_write_bytecode): New function.
615 (_initialize_python): Register new commands.
616
041ca48e
AB
6172021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
618
619 * extension-priv.h (struct extension_language_ops): Rename
620 'finish_initialization' to 'initialize'.
621 * extension.c (finish_ext_lang_initialization): Renamed to...
622 (ext_lang_initialization): ...this, update comment, and updated
623 the calls to reflect the change in struct extension_language_ops.
624 * extension.h (finish_ext_lang_initialization): Renamed to...
625 (ext_lang_initialization): ...this.
626 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
627 (gdbscm_initialize): ...this, update comment at definition.
628 (guile_extension_ops): Update.
629 * main.c (captured_main_1): Update call to
630 finish_ext_lang_initialization.
631 * python/python.c (gdbpy_finish_initialization): Rename to...
632 (gdbpy_initialize): ...this, update comment at definition, and
633 update call to do_finish_initialization.
634 (python_extension_ops): Update.
635 (do_finish_initialization): Rename to...
636 (do_initialize): ...this, and update comment.
637
1178f01a
AB
6382021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 * main.c (captured_main_1): Add a call to
641 finish_ext_lang_initialization.
642 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
643
880ae75a
AB
6442021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
645
646 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
647 (gdbscm_finish_initialization): Add code moved from
648 _initialize_guile.
649 (_initialize_guile): Move code to gdbscm_finish_initialization.
650 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
651 _initialize_scm_arch.
652 (_initialize_scm_arch): New function.
653 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
654 into _initialize_scm_block.
655 (_initialize_scm_block): New function.
656 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
657 into _initialize_scm_frame.
658 (_initialize_scm_frame): New function.
659 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
660 into _initialize_scm_objfile.
661 (_initialize_scm_objfile): New function.
662 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
663 code into _initialize_scm_progspace.
664 (_initialize_scm_progspace): New function.
665 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
666 into _initialize_scm_symbol.
667 (_initialize_scm_symbol): New function.
668 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
669 into _initialize_scm_symtab.
670 (_initialize_scm_symtab): New function.
671 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
672 _initialize_scm_type.
673 (_initialize_scm_type): New function.
674
8e3685bf
AB
6752021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * python/py-arch.c (_initialize_py_arch): New function.
678 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
679 * python/py-block.c (_initialize_py_block): New function.
680 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
681 * python/py-inferior.c (_initialize_py_inferior): New function.
682 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
683 * python/py-objfile.c (_initialize_py_objfile): New function.
684 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
685 * python/py-progspace.c (_initialize_py_progspace): New function.
686 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
687 * python/py-registers.c (_initialize_py_registers): New function.
688 (gdbpy_initialize_registers): Move code to
689 _initialize_py_registers.
690 * python/py-symbol.c (_initialize_py_symbol): New function.
691 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
692 * python/py-symtab.c (_initialize_py_symtab): New function.
693 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
694 * python/py-type.c (_initialize_py_type): New function.
695 (gdbpy_initialize_types): Move code to _initialize_py_type.
696 * python/py-unwind.c (_initialize_py_unwind): New function.
697 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
698 * python/python.c (_initialize_python): Move call to
699 do_start_initialization to gdbpy_finish_initialization.
700 (gdbpy_finish_initialization): Add call to
701 do_start_initialization.
702
913832e9
AB
7032021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * extension.c (struct scoped_default_signal): New struct.
706 (scoped_default_sigint): New typedef.
707 (finish_ext_lang_initialization): Make use of
708 scoped_default_sigint.
709
a3b5ef3e
AB
7102021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * main.c (captured_main_1): Don't pass argument to gdb_init.
713 * top.c (gdb_init): Remove unused argument, and add header
714 comment.
715 * top.h (gdb_init): Remove argument.
716
b9f90c72
LM
7172021-04-27 Luis Machado <luis.machado@linaro.org>
718
719 * psymtab.c (psymbol_functions::dump): Output newline.
720 Remove wrap.
721 * symmisc.c (dump_objfile): Likewise.
722
2c473def
MW
7232021-04-27 Michael Weghorn <m.weghorn@posteo.de>
724 Simon Marchi <simon.marchi@polymtl.ca>
725
726 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
727 when attaching the 'auto_load_new_objfile' observer, so
728 other observers can specify it as a dependency.
729 * gdb/auto-load.h (struct token): Declare
730 'auto_load_new_objfile_observer_token' as token to be used
731 for the 'auto_load_new_objfile' observer.
732 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
733 'python_new_objfile' observer depend on 'auto_load_new_objfile'
734 observer, so it gets notified after the latter.
735
9a6e099f
MW
7362021-04-27 Michael Weghorn <m.weghorn@posteo.de>
737 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * unittests/observable-selftests.c (dependency_test_counters):
740 New.
741 (observer_token0, observer_token1, observer_token2,
742 observer_token3, observer_token4, observer_token5): New.
743 (struct dependency_observer_data): New struct.
744 (observer_dependency_test_callback): New function.
745 (test_observers): New.
746 (run_dependency_test): New function.
747 (test_dependency): New.
748 (_initialize_observer_selftest): Register dependency test.
749
bea3329b
SM
7502021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
751
752 PR gdb/27773
753 * cli/cli-dump.c (dump_binary_file): Check result of
754 gdb_fopen_cloexec.
755
c290cb01
ST
7562021-04-25 Sergei Trofimovich <siarheit@google.com>
757
758 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
759 by passing `process_stratum_target*` parameter.
760
fbb46296
LS
7612021-04-25 Lancelot Six <lsix@lancelotsix.com>
762
763 PR gdb/22640
764 * typeprint.h (struct type_print_options): Add print_in_hex
765 flag.
766 (struct print_offset_data): Add print_in_hex flag, add a
767 constructor accepting a type_print_options* argument.
768 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
769 default value for print_in_hex.
770 (print_offset_data::indentation): Allow more horizontal space.
771 (print_offset_data::print_offset_data): Add ctor.
772 (print_offset_data::maybe_print_hole, print_offset_data::update):
773 Handle the print_in_hex flag.
774 (whatis_exp): Handle 'x' and 'd' flags.
775 (print_offsets_and_sizes_in_hex): Declare.
776 (set_print_offsets_and_sizes_in_hex): Create.
777 (show_print_offsets_and_sizes_in_hex): Create.
778 (_initialize_typeprint): Update help message for the ptype
779 command, register the 'set print type hex' and 'show print type
780 hex' commands.
781 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
782 (c_type_print_base): Construct the print_offset_data
783 object using the type_print_optons parameter.
784 * rust-lang.c (rust_language::print_type): Construct the
785 print_offset_data object using the type_print_optons parameter.
786 * NEWS: Mention the new flags of the ptype command.
787
18bbba46
LS
7882021-04-25 Lancelot Six <lsix@lancelotsix.com>
789
790 * typeprint.h (struct type_print_options): Move before
791 print_offset_data.
792
77393c9b
JB
7932021-04-25 Joel Brobecker <brobecker@adacore.com>
794
795 GDB 10.2 released.
796
98c897e3
SM
7972021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
798
799 * observable.c (observer_debug): Change to bool.
800
9fc29955
AB
8012021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * dwarf2/read.c: Add 'unordered_set' include.
804 (dwarf2_base_index_functions::map_symbol_filenames): Replace
805 'visited' hash table with 'qfn_cache' unordered_set. Remove use
806 of per_Bfd->filenames_cache cache, and use function local
807 filenames_cache instead. Reindent.
808 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
809
0406545d
SM
8102021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
811
812 * breakpoint.c (iterate_over_bp_locations): Change callback to
813 function view, remove data parameter.
814 * breakpoint.h (iterate_over_bp_locations): Likewise.
815 * record-full.c (record_full_sync_record_breakpoints): Remove
816 data parameter.
817
432ce4cf
TT
8182021-04-22 Tom Tromey <tom@tromey.com>
819
820 * c-typeprint.c (c_type_print_base_struct_union): Use
821 print_spaces_filtered_with_print_options.
822
e25d6d93
SM
8232021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
824
825 PR gdb/27757
826 * python/py-type.c (typy_range): Check that bounds are constant
827 before accessing them as such.
828 * guile/scm-type.c (gdbscm_type_range): Likewise.
829
4efeb0d3
TBA
8302021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
831
832 * Makefile.in (COMMON_SFILES): Remove continuations.c.
833 * inferior.c (inferior::add_continuation): New method, adapted
834 from 'add_inferior_continuation'.
835 (inferior::do_all_continuations): New method, adapted from
836 'do_all_inferior_continuations'.
837 (inferior::~inferior): Clear the list of continuations directly.
838 * inferior.h (class inferior) <continuations>: Rename into...
839 <m_continuations>: ...this and make private.
840 * continuations.c: Remove.
841 * continuations.h: Remove.
842 * event-top.c: Don't include "continuations.h".
843
844 Update the users below.
845 * inf-loop.c (inferior_event_handler)
846 * infcmd.c (attach_command)
847 (notice_new_inferior): Update.
848
c4c493de
TBA
8492021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
850
851 * inferior.h (class inferior) <continuations>: Change the type
852 to be an std::list of std::function's.
853 Update the references and uses below.
854 * continuations.c (struct continuation): Delete.
855 (make_continuation): Delete.
856 (do_my_continuations_1): Delete.
857 (do_my_continuations): Delete.
858 (discard_my_continuations_1): Delete.
859 (discard_my_continuations): Delete.
860 (add_inferior_continuation): Update.
861 (do_all_inferior_continuations): Update.
862 (discard_all_inferior_continuations): Update.
863 * continuations.h (add_inferior_continuation): Update to take
864 an std::function as the parameter.
865 * infcmd.c (struct attach_command_continuation_args): Delete.
866 (attach_command_continuation): Delete.
867 (attach_command_continuation_free_args): Delete.
868 (attach_command): Update.
869 (notice_new_inferior): Update.
870
1194676e
TBA
8712021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
872
873 * continuations.h: Update the general comment.
874 * inferior.h (class inferior) <continuations>: Update the comment.
875 * interps.c: Do not include "continuations.h".
876
35682f0a
TBA
8772021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
878
879 * continuations.h (do_all_inferior_continuations): Remove the 'err'
880 parameter. Update the references below.
881 * continuations.c (do_my_continuations_1)
882 (do_my_continuations)
883 (do_all_inferior_continuations): Update.
884 * inf-loop.c (inferior_event_handler): Update.
885 * infcmd.c (attach_command_continuation): Update.
886
6fee5eee
TBA
8872021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
888
889 * infcmd.c (attach_post_wait): Update the function comment.
890
27d0790a
TBA
8912021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
892
893 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
894 Update the references below.
895 (struct attach_command_continuation_args)
896 (attach_command_continuation)
897 (attach_command_continuation_free_args)
898 (attach_command)
899 (notice_new_inferior): Update to remove the reference to 'args'.
900
c39ebbf4
TV
9012021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
902 Tom de Vries <tdevries@suse.de>
903
904 PR remote/27710
905 * remote.c (remote_target_is_non_stop_p): New function.
906 * remote.h (remote_target_is_non_stop_p): Declare.
907 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
908 to check non-stopness using notif_state->remote rather current target.
909
22f80c0f
TT
9102021-04-22 Tom Tromey <tom@tromey.com>
911
912 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
913 (struct typed_val_int) <val>: Now ULONGEST.
914 (rust_parser::parse_array_type): Remove negative check.
915 (rust_lex_int_test): Change 'value' to ULONGEST.
916
05f3c0f0
AB
9172021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
918
919 * arch-utils.c (default_addressable_memory_unit_size): Return a
920 value based on bfd's bits per byte.
921
7e7a35fb
TT
9222021-04-21 Tom Tromey <tom@tromey.com>
923
924 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
925 unsigned char.
926 (struct dwarf2_per_cu_data): Rearrange.
927 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
928 unsigned char.
929 (struct comp_unit_head): Rearrange.
930 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
931
ff507520
TV
9322021-04-21 Tom de Vries <tdevries@suse.de>
933
934 PR build/27681
935 * configure.ac: Remove --without-included-regex/--with-included-regex.
936 * config.in: Regenerate.
937 * configure: Regenerate.
938 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
939
10a636cc
TBA
9402021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
941
942 * breakpoint.h (create_breakpoint): Add a new parameter,
943 'force_condition'.
944 * breakpoint.c (create_breakpoint): Use the 'force_condition'
945 argument when 'parse_extra' is false to check if the condition
946 is invalid at all of the breakpoint locations.
947 Update the users below.
948 (break_command_1)
949 (dprintf_command)
950 (trace_command)
951 (ftrace_command)
952 (strace_command)
953 (create_tracepoint_from_upload): Update.
954 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
955 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
956 * python/py-breakpoint.c (bppy_init): Update.
957 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
958
85c88e2a
TBA
9592021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
960
961 * breakpoint.c (print_one_breakpoint_location): Display "N" for
962 disabled-by-condition locations on MI-like output.
963 (breakpoint_1): Do not display the disabled-by-condition footnote
964 if the output is MI-like.
965
fd34472c
FC
9662021-04-21 Frederic Cambus <fred@statdns.com>
967
968 * syscalls/update-netbsd.sh: Fix script name display in usage, and
969 update year range in generated copyright notices.
970
184dcd81
FW
9712021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
972
973 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
974 qualifier_seq_noopt.
975
525174e8
FW
9762021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
977
978 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
979
f5dc2ee3
AB
9802021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
983 (producer_is_icc): Replace use of std::regex with gdb's
984 compiled_regex.
985
42c2c694
TT
9862021-04-17 Tom Tromey <tom@tromey.com>
987
988 PR gdb/23743:
989 * dwarf2/read.c (class offset_view): New.
990 (struct symbol_table_slot): Remove.
991 (struct mapped_index) <symbol_table, constant_pool>: Change type.
992 <symbol_name_index, symbol_vec_index>: New methods.
993 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
994 Rewrite.
995 (read_gdb_index_from_buffer): Update.
996 (struct dw2_symtab_iterator) <vec>: Change type.
997 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
998 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
999 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1000 <append_array, append_offset>: New methods.
1001 (write_hash_table, add_address_entry, write_gdbindex_1)
1002 (write_debug_names): Update.
1003 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1004
da314dd3
TT
10052021-04-17 Tom Tromey <tom@tromey.com>
1006
1007 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1008 partial_symtabs.
1009
0b7b2c2a
TT
10102021-04-17 Tom Tromey <tom@tromey.com>
1011
1012 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1013 from map_matching_symbols. Change parameters.
1014 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1015 Rename from map_matching_symbols. Change parameters.
1016 * dwarf2/read.c (struct dwarf2_gdb_index)
1017 <expand_matching_symbols>: Rename from map_matching_symbols.
1018 Change parameters.
1019 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1020 Rename from map_matching_symbols. Change parameters.
1021 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1022 dw2_map_matching_symbols. Change parameters.
1023 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1024 implementation.
1025 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1026 map_matching_symbols. Change parameters.
1027 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1028 from map_matching_symbols. Change parameters.
1029 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1030 map_matching_symbols. Change parameters.
1031 * ada-lang.c (map_matching_symbols): New function.
1032 (add_nonlocal_symbols): Update.
1033
90160b57
TT
10342021-04-17 Tom Tromey <tom@tromey.com>
1035
1036 * quick-symbol.h (struct quick_symbol_functions)
1037 <expand_symtabs_with_fullname>: Remove.
1038 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1039 Remove.
1040 * psympriv.h (struct psymbol_functions)
1041 <expand_symtabs_with_fullname>: Remove.
1042 * dwarf2/read.c (struct dwarf2_base_index_functions)
1043 <expand_symtabs_with_fullname>: Remove.
1044 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1045 Remove.
1046 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1047 Update comment.
1048 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1049 Rewrite.
1050
7089bd88
TT
10512021-04-17 Tom Tromey <tom@tromey.com>
1052
1053 * symfile-debug.c (objfile::expand_symtabs_for_function):
1054 Rewrite.
1055 * quick-symbol.h (struct quick_symbol_functions)
1056 <expand_symtabs_for_function>: Remove.
1057 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1058 Remove.
1059 * psympriv.h (struct psymbol_functions)
1060 <expand_symtabs_for_function>: Remove.
1061 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1062 Update comment.
1063 * dwarf2/read.c (struct dwarf2_gdb_index)
1064 <expand_symtabs_for_function>: Remove.
1065 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1066 Remove.
1067 (find_slot_in_mapped_hash): Remove.
1068 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1069 (dw2_symtab_iter_init): Remove one overload.
1070 (dwarf2_gdb_index::expand_symtabs_for_function)
1071 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1072
536a40f3
TT
10732021-04-17 Tom Tromey <tom@tromey.com>
1074
1075 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1076 Rewrite.
1077 * quick-symbol.h (struct quick_symbol_functions)
1078 <map_symtabs_matching_filename>: Remove.
1079 * psymtab.c (partial_map_expand_apply)
1080 (psymbol_functions::map_symtabs_matching_filename): Remove.
1081 * psympriv.h (struct psymbol_functions)
1082 <map_symtabs_matching_filename>: Remove.
1083 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1084 Update comment.
1085 * dwarf2/read.c (struct dwarf2_base_index_functions)
1086 <map_symtabs_matching_filename>: Remove.
1087 (dw2_map_expand_apply)
1088 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1089 Remove.
1090
84d865e3
TT
10912021-04-17 Tom Tromey <tom@tromey.com>
1092
1093 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1094 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1095 Remove.
1096 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1097 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1098 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1099 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1100 Remove.
1101 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1102 (dwarf2_gdb_index::lookup_symbol)
1103 (dwarf2_debug_names_index::lookup_symbol): Remove.
1104
3bfa51a7
TT
11052021-04-17 Tom Tromey <tom@tromey.com>
1106
1107 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1108 * symmisc.c (maintenance_expand_symtabs): Update.
1109 * symfile.c (expand_symtabs_matching): Update.
1110 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1111 parameter.
1112 * quick-symbol.h (struct quick_symbol_functions)
1113 <expand_symtabs_matching>: Add 'domain' parameter.
1114 * psymtab.c (recursively_search_psymtabs)
1115 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1116 parameter.
1117 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1118 Add 'domain' parameter.
1119 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1120 'domain' parameter.
1121 * linespec.c (iterate_over_all_matching_symtabs): Update.
1122 * dwarf2/read.c (struct dwarf2_gdb_index)
1123 <expand_symtabs_matching>: Add 'domain' parameter.
1124 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1125 'domain' parameter.
1126 (dw2_expand_symtabs_matching)
1127 (dwarf2_gdb_index::expand_symtabs_matching)
1128 (dw2_debug_names_iterator)
1129 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1130 parameter.
1131
03a8ea51
TT
11322021-04-17 Tom Tromey <tom@tromey.com>
1133
1134 * symtab.c (global_symbol_searcher::expand_symtabs)
1135 (default_collect_symbol_completion_matches_break_on): Update.
1136 * symmisc.c (maintenance_expand_symtabs): Update.
1137 * symfile.h (expand_symtabs_matching): Add search_flags
1138 parameter.
1139 * symfile.c (expand_symtabs_matching): Add search_flags
1140 parameter.
1141 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1142 search_flags parameter.
1143 * quick-symbol.h (struct quick_symbol_functions)
1144 <expand_symtabs_matching>: Add search_flags parameter.
1145 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1146 * psymtab.c (recursively_search_psymtabs)
1147 (psymbol_functions::expand_symtabs_matching): Add search_flags
1148 parameter.
1149 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1150 Add search_flags parameter.
1151 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1152 search_flags parameter.
1153 * linespec.c (iterate_over_all_matching_symtabs): Update.
1154 * dwarf2/read.c (struct dwarf2_gdb_index)
1155 <expand_symtabs_matching>: Add search_flags parameter.
1156 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1157 search_flags parameter.
1158 (dw2_map_matching_symbols): Update.
1159 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1160 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1161 parameter.
1162 (dw2_debug_names_iterator): Change block_index to search flags.
1163 <m_block_index>: Likewise.
1164 (dw2_debug_names_iterator::next)
1165 (dwarf2_debug_names_index::lookup_symbol)
1166 (dwarf2_debug_names_index::expand_symtabs_for_function)
1167 (dwarf2_debug_names_index::map_matching_symbols)
1168 (dwarf2_debug_names_index::map_matching_symbols): Update.
1169 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1170 search_flags parameter.
1171 * ada-lang.c (ada_add_global_exceptions)
1172 (collect_symbol_completion_matches): Update.
1173
df35e626
TT
11742021-04-17 Tom Tromey <tom@tromey.com>
1175
1176 * symtab.c (default_collect_symbol_completion_matches_break_on):
1177 Update.
1178 * symfile.h (expand_symtabs_matching): Return bool.
1179 * symfile.c (expand_symtabs_matching): Return bool.
1180 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1181 bool.
1182 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1183 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1184 bool.
1185 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1186 bool.
1187 * psympriv.h (struct psymbol_functions)
1188 <expand_symtabs_matching>: Return bool.
1189 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1190 bool.
1191 * dwarf2/read.c (struct dwarf2_gdb_index)
1192 <expand_symtabs_matching>: Return bool.
1193 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1194 Return bool.
1195 (dw2_expand_symtabs_matching_symbol): Return bool.
1196 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1197 (dw2_expand_symtabs_matching)
1198 (dwarf2_gdb_index::expand_symtabs_matching)
1199 (dwarf2_debug_names_index::expand_symtabs_matching)
1200 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1201
e357e990
TT
12022021-04-17 Tom Tromey <tom@tromey.com>
1203
1204 * quick-symbol.h (enum block_search_flag_values): New.
1205 (block_search_flags): New enum flags type.
1206
3cbc7ac3
TT
12072021-04-16 Tom Tromey <tom@tromey.com>
1208
1209 * rust-parse.c: New file.
1210 * rust-exp.y: Remove.
1211 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1212 (SFILES): Remove rust-exp.y.
1213 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1214
1b6b755e
LM
12152021-04-16 Luis Machado <luis.machado@linaro.org>
1216
1217 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1218
c45ecc9d
JB
12192021-04-15 John Baldwin <jhb@FreeBSD.org>
1220
1221 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1222 use throughout file.
1223
a15a276b
TT
12242021-04-15 Tom Tromey <tromey@adacore.com>
1225
1226 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1227 arrays.
1228
644a2e75
TT
12292021-04-15 Tom Tromey <tromey@adacore.com>
1230
1231 * printcmd.c (print_variable_and_value): Use
1232 common_val_print_checked.
1233
9e5e03df
TT
12342021-04-15 Tom Tromey <tromey@adacore.com>
1235
1236 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1237 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1238 Update.
1239 * p-exp.y (variable): Update.
1240 * m2-exp.y (variable): Update.
1241 * go-exp.y (variable): Update.
1242 * expprint.c (dump_for_expression): New overload.
1243 * expop.h (check_objfile): New overload.
1244 (check_constant): New overload.
1245 (class var_value_operation): Use block_symbol.
1246 <get_symbol>: Rewrite.
1247 * eval.c (var_value_operation::evaluate)
1248 (var_value_operation::evaluate_funcall)
1249 (var_value_operation::evaluate_for_address)
1250 (var_value_operation::evaluate_for_address)
1251 (var_value_operation::evaluate_with_coercion)
1252 (var_value_operation::evaluate_for_sizeof)
1253 (var_value_operation::evaluate_for_cast): Update.
1254 * d-exp.y (PrimaryExpression): Update.
1255 * c-exp.y (variable): Update.
1256 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1257 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1258 (ada_var_value_operation::evaluate)
1259 (ada_var_value_operation::resolve)
1260 (ada_funcall_operation::resolve): Update.
1261 * ada-exp.y (write_var_from_sym, write_object_renaming)
1262 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1263 (maybe_overload): Update.
1264 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1265
5809fbf2
TT
12662021-04-15 Tom Tromey <tom@tromey.com>
1267 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * NEWS: Add entry.
1270 * main.c (captured_main_1): Call check_quiet_mode.
1271 * top.c (startup_quiet): New global.
1272 (check_quiet_mode): New function.
1273 (show_startup_quiet): New function.
1274 (init_main): Register new command.
1275 * top.h (check_quiet_mode): Declare.
1276
92e4e97a
AB
12772021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1278
1279 PR cli/25956
1280 * NEWS: Mention new early init files and command line options.
1281 * config.in: Regenerate.
1282 * configure: Regenerate.
1283 * configure.ac: Define GDBEARLYINIT.
1284 * main.c (get_earlyinit_files): New function.
1285 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1286 CMDARG_EARLYINIT_COMMAND.
1287 (captured_main_1): Add support for new command line flags, and for
1288 processing startup files.
1289 (print_gdb_help): Include startup files in the output.
1290
54b4dcc5
AB
12912021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1292
1293 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1294 (relocate_file_path_maybe_in_datadir): ...this.
1295 (class gdb_initfile_finder): New class.
1296 (get_init_files): Now uses gdb_initfile_finder.
1297 (print_gdb_help): Print 'None found' when there are no init files.
1298
34dc0f95
TBA
12992021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1300
1301 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1302 corresponding child of the abstract DIE when iterating the
1303 children of the concrete DIE.
1304
329534fd
TV
13052021-04-13 Tom de Vries <tdevries@suse.de>
1306
1307 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1308 type to regoff_t *.
1309
d9d2ef05
LM
13102021-04-13 Luis Machado <luis.machado@linaro.org>
1311
1312 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1313 hex values.
1314
c8a37944
WS
13152021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1316
1317 * rs6000-tdep.c: Add support for single-stepping of
1318 prefixed instructions.
1319
b722acca
WS
13202021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1321
e3d528d7
WS
1322 PR gdb/27525
1323 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1324 handle the addpcis/lnia instruction.
1325
13262021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1327
b722acca
WS
1328 * MAINTAINERS (Write After Approval): Add myself.
1329
6ba4cb84
CL
13302021-4-12 Carl Love <cel@us.ibm.com>
1331
1332 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1333 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1334 float128.
1335
d4717483
SM
13362021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1339 * nat/windows-nat.h: Likewise.
1340
b3885679
EZ
13412021-04-10 Eli Zaretskii <eliz@gnu.org>
1342
1343 * windows-nat.c (windows_nat::handle_load_dll): Call
1344 windows_add_dll if get_image_name failed to glean the name of the
1345 DLL by using the lpImageName pointer.
1346 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1347 (windows_add_dll): Now does what windows_add_all_dlls did before,
1348 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1349 specifies the address where the DLL was loaded into the inferior,
1350 and looks for the single DLL loaded at that address.
1351
1ef6a596
LM
13522021-04-09 Luis Machado <luis.machado@linaro.org>
1353
1354 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1355
83a559f7
DQ
13562021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1357
1358 * darwin-nat.c (darwin_nat_target::resume): Remove status
1359 variable.
1360
16e311ab
FW
13612021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1362
1363 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1364 prologue end for Intel compilers.
1365 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1366 * producer.c (producer_is_icc_ge_19): New function.
1367 * producer.h (producer_is_icc_ge_19): New declaration.
1368
fbb3bcfc
FW
13692021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1370
1371 * producer.c: (producer_is_icc): Update for new version scheme.
1372 (producer_parsing_tests): Update names and expected results.
1373 * producer.h: (producer_is_icc): Update comment accordingly.
1374
e97007b6
SM
13752021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1376
1377 * target.h (struct target_ops) <follow_fork>: Return void.
1378 (target_follow_fork): Likewise.
1379 * target.c (default_follow_fork): Likewise.
1380 (target_follow_fork): Likewise.
1381 * infrun.c (follow_fork_inferior): Adjust.
1382 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1383 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1384 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1385 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1386 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1387 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1388 * remote.c (class remote_target) <follow_fork>: Likewise.
1389 (remote_target::follow_fork): Likewise.
1390 * target-delegates.c: Re-generate.
1391
dc2b480f
WP
13922021-04-07 Weimin Pan <weimin.pan@oracle.com>
1393
1394 * ctfread.c (fetch_tid_type): New function, use throughout file.
1395 (read_forward_type): New function.
1396 (read_type_record): Call read_forward_type.
1397
0a703a4c
AB
13982021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * f-exp.h (class fortran_structop_operation): New class.
1401 * f-exp.y (exp): Create fortran_structop_operation instead of the
1402 generic structop_operation.
1403 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1404 expression as EVAL_NORMAL if the result type was dynamic so we can
1405 extract the actual array bounds.
1406 (fortran_structop_operation::evaluate): New function.
1407
14082021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * eval.c (evaluate_subexp_standard): Remove
1411 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1412 STRUCTOP_PTR.
1413
30ab3586
AB
14142021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1415
1416 * valops.c (value_cast): Call value_deeply_equal before performing
1417 any cast.
1418
5e18990f
AB
14192021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1422 the function.
1423
56d467f4
CT
14242021-04-07 Caroline Tice <cmtice@google.com>
1425
1426 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1427 the search paths used resolve relative location of .dwo file.
1428
1fd999d9
AB
14292021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1432 assert.
1433 (dwarf2_section_info::get_file_name): Add an assert.
1434 (dwarf2_section_info::read_string): Display a minimal, sane error
1435 when the dwarf2_section_info is not associated with a bfd section.
1436
79c02443
AB
14372021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * top.c (staged_gdb_datadir): Update comment.
1440 (set_gdb_datadir): Copy the value of gdb_datadir back into
1441 staged_datadir.
1442 (init_main): Initialise staged_gdb_datadir.
1443
340d00fb
TV
14442021-04-06 Tom de Vries <tdevries@suse.de>
1445
1446 PR breakpoints/25884
1447 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1448 stepping range.
1449
d811a7cf
TV
14502021-04-06 Tom de Vries <tdevries@suse.de>
1451
1452 PR tui/27680
1453 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1454 to style.parse.
1455
306b445a
SM
14562021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1457
1458 * avr-tdep.c (avr_frame_unwind_cache): Use
1459 trad_frame_saved_reg::is_addr.
1460
9161c89a
SM
14612021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1462
1463 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1464 adjust callers.
1465
0072c873
SM
14662021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1467
1468 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1469 objfile parameter for objfile_per_bfd_storage, adjust callers.
1470 (struct standard_psymtab) <standard_psymtab>: Likewise.
1471 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1472 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1473 * ctfread.c (struct ctf_psymtab): Likewise.
1474 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1475 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1476 (dwarf2_create_include_psymtab): Likewise.
1477 * objfiles.h (struct objfile_per_bfd_storage)
1478 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1479 <get_bfd>: New method.
1480 <m_bfd>: New field.
1481 * objfiles.c (get_objfile_bfd_data): Adjust.
1482
9984dd99
SM
14832021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1484
1485 * psymtab.c (partial_symtab::partial_symtab): Change
1486 last_objfile_name to be an std::string.
1487 * symfile.c (allocate_symtab): Likewise.
1488
4a4f97c1
SM
14892021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1490
1491 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1492 methods.
1493 (struct objfile) <intern>: Use
1494 objfile::objfile_per_bfd_storage::intern.
1495
0672875f
SM
14962021-04-01 Simon Marchi <simon.marchi@efficios.com>
1497
1498 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1499 with type::is_flag_enum.
1500
9902b327
SM
15012021-04-01 Simon Marchi <simon.marchi@efficios.com>
1502
1503 * gdbtypes.h (struct type) <is_flag_enum,
1504 set_is_flag_enum>: New methods.
1505 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1506 write call sites to use type::set_is_flag_enum.
1507
3bc440a2
SM
15082021-04-01 Simon Marchi <simon.marchi@efficios.com>
1509
1510 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1511 with type::is_declared_class.
1512
aa70e35c
SM
15132021-04-01 Simon Marchi <simon.marchi@efficios.com>
1514
1515 * gdbtypes.h (struct type) <is_declared_class,
1516 set_is_declared_class>: New methods.
1517 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1518 write call sites to use type::set_is_declared_class.
1519
bfb9f5dc
BS
15202021-02-28 Boris Staletic <boris.staletic@gmail.com>
1521
1522 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1523 to avoid deprecation warnings.
1524
733f5eea
ML
15252021-04-01 Martin Liska <mliska@suse.cz>
1526
1527 * cp-name-parser.y: Use startswith instead of strncmp.
1528 * m2-exp.y: Likewise.
1529 * macroexp.c (substitute_args): Likewise.
1530 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1531 * rust-exp.y: Likewise.
1532
af82f89d
TT
15332021-03-31 Tom Tromey <tom@tromey.com>
1534
1535 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1536 with dw2_map_matching_symbols.
1537 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1538 dw2_expand_symtabs_matching.
1539
3570682a
TT
15402021-03-31 Tom Tromey <tromey@adacore.com>
1541
1542 * dwarf2/stringify.h: Fix typo.
1543
8a91fbdf
SM
15442021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1545
1546 PR gdb/27541
1547 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1548 with objfiles using READNOW.
1549
9f67fc59
TT
15502021-03-29 Tom Tromey <tromey@adacore.com>
1551
1552 * top.c (check_frame_language_change): Update.
1553 * language.c (language_info): Remove parameter.
1554 * language.h (language_info): Remove parameter.
1555
9b8ffbf4
LM
15562021-03-29 Luis Machado <luis.machado@linaro.org>
1557
1558 * compile/compile.c (get_args): Don't add empty argv entries.
1559
25b48839
RO
15602021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1561
1562 gdb:
1563 * procfs.c (procfs_target::attach): Define inf.
1564 Use it.
1565 (procfs_target::create_inferior): Likewise.
1566
edc02ceb
TT
15672021-03-28 Tom Tromey <tom@tromey.com>
1568
1569 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1570 (elf_symfile_read): Simplify.
1571 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1572 (make_lazy_dwarf_reader): New function.
1573 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1574 (dwarf2_initialize_objfile): Return void. Remove index_kind
1575 parameter. Push on 'qf' list.
1576 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1577 type. Remove 'index_kind' parameter.
1578 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1579
6e23d91a
TT
15802021-03-27 Tom Tromey <tom@tromey.com>
1581
1582 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1583
594b8948
TT
15842021-03-27 Tom Tromey <tom@tromey.com>
1585
1586 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1587
efe1ecd8
LS
15882021-03-26 Lancelot Six <lsix@lancelotsix.com>
1589
1590 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1591 rid of 'local'.
1592
f4655dee
TT
15932021-03-26 Tom Tromey <tom@tromey.com>
1594
1595 * symtab.c (struct output_source_filename_data): Add 'output'
1596 method and operator().
1597 (output_source_filename_data::output): Rename from
1598 output_source_filename.
1599 (output_partial_symbol_filename): Remove.
1600 (info_sources_command): Update.
1601 (struct add_partial_filename_data): Add operator().
1602 (add_partial_filename_data::operator()): Rename from
1603 maybe_add_partial_symtab_filename.
1604 (make_source_files_completion_list): Update.
1605 * symfile.c (quick_symbol_functions): Update.
1606 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1607 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1608 'need_fullname'. Remove 'data' parameter.
1609 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1610 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1611 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1612 Change type of 'fun' and 'need_fullname'. Remove 'data'
1613 parameter.
1614 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1615 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1616 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1617 parameter.
1618 (mi_cmd_file_list_exec_source_files): Update.
1619 * dwarf2/read.c
1620 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1621
2315bb2d
TT
16222021-03-26 Tom Tromey <tom@tromey.com>
1623
1624 * ada-lang.c (struct match_data): Add operator().
1625 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1626 (callback): Remove 'callback'.
1627
e2cd5ca4
TT
16282021-03-26 Tom Tromey <tom@tromey.com>
1629
1630 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1631 call make_ignore_params once.
1632
cd43f63e
TT
16332021-03-26 Tom Tromey <tom@tromey.com>
1634
1635 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1636 "user" check.
1637
b4b1a226
SM
16382021-03-26 Simon Marchi <simon.marchi@efficios.com>
1639 Pedro Alves <pedro@palves.net>
1640
1641 * async-event.c: Include "infrun.h".
1642 (async_event_handler_marked): New.
1643 * async-event.h (async_event_handler_marked): Declare.
1644 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1645 inferior before calling target method. Don't commit-resumed if
1646 target_has_pending_events is true.
1647 * remote.c (remote_target::has_pending_events): New.
1648 * target-delegates.c: Regenerate.
1649 * target.c (target_has_pending_events): New.
1650 * target.h (target_ops::has_pending_events): New target method.
1651 (target_has_pending_events): New.
1652
1192f124
SM
16532021-03-26 Simon Marchi <simon.marchi@efficios.com>
1654 Pedro Alves <pedro@palves.net>
1655
1656 * infcmd.c (run_command_1, attach_command, detach_command)
1657 (interrupt_target_1): Use scoped_disable_commit_resumed.
1658 * infrun.c (do_target_resume): Remove
1659 target_commit_resume call.
1660 (commit_resume_all_targets): Remove.
1661 (maybe_set_commit_resumed_all_targets): New.
1662 (maybe_call_commit_resumed_all_targets): New.
1663 (enable_commit_resumed): New.
1664 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1665 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1666 (scoped_disable_commit_resumed::reset)
1667 (scoped_disable_commit_resumed::reset_and_commit)
1668 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1669 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1670 New.
1671 (proceed): Use scoped_disable_commit_resumed and
1672 maybe_call_commit_resumed_all_targets.
1673 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1674 * infrun.h (struct scoped_disable_commit_resumed): New.
1675 (maybe_call_commit_resumed_all_process_targets): New.
1676 (struct scoped_enable_commit_resumed): New.
1677 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1678 * process-stratum-target.h (class process_stratum_target):
1679 <commit_resumed_state>: New.
1680 * record-full.c (record_full_wait_1): Change commit_resumed_state
1681 around calling commit_resumed.
1682 * remote.c (class remote_target) <commit_resume>: Rename to...
1683 <commit_resumed>: ... this.
1684 (struct stop_reply): Move up.
1685 (remote_target::commit_resume): Rename to...
1686 (remote_target::commit_resumed): ... this. Check if there is any
1687 thread pending vCont resume.
1688 (remote_target::remote_stop_ns): Generate stop replies for resumed
1689 but pending vCont threads.
1690 (remote_target::wait_ns): Add gdb_assert.
1691 * target-delegates.c: Regenerate.
1692 * target.c (target_wait, target_resume): Assert that the current
1693 process_stratum target isn't in commit-resumed state.
1694 (defer_target_commit_resume): Remove.
1695 (target_commit_resume): Remove.
1696 (target_commit_resumed): New.
1697 (make_scoped_defer_target_commit_resume): Remove.
1698 (target_stop): Assert that the current process_stratum target
1699 isn't in commit-resumed state.
1700 * target.h (struct target_ops) <commit_resume>: Rename to ...
1701 <commit_resumed>: ... this.
1702 (target_commit_resume): Remove.
1703 (target_commit_resumed): New.
1704 (make_scoped_defer_target_commit_resume): Remove.
1705 * top.c (wait_sync_command_done): Use
1706 scoped_enable_commit_resumed.
1707
e5b9b39f
PA
17082021-03-26 Pedro Alves <pedro@palves.net>
1709
1710 * target.c (target_always_non_stop_p): Also check whether the
1711 target can async.
1712
bab287cd
TT
17132021-03-26 Tom Tromey <tom@tromey.com>
1714
1715 * dwarf2/read.c (dwarf2_read_debug_names)
1716 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1717 (dw2_debug_names_iterator::next, create_type_unit_group):
1718 Simplify.
1719
eff4f69d
PA
17202021-03-25 Pedro Alves <pedro@palves.net>
1721
1722 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1723 around setting the breakpoint.
1724
323fd5b9
PA
17252021-03-25 Pedro Alves <pedro@palves.net>
1726
1727 * remote.c
1728 (remote_target::check_pending_events_prevent_wildcard_vcont):
1729 Check whether the event's ptid is not null_ptid before looking up
1730 the corresponding inferior.
1731
d3cbca38
CD
17322021-03-24 Changbin Du <changbin.du@gmail.com>
1733
1734 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1735 read_code.
1736
328d42d8
SM
17372021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1738
1739 * target.h (current_top_target): Remove, make callers use the
1740 current inferior instead.
1741 * target.c (current_top_target): Remove.
1742
d777bf0d
SM
17432021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1744
1745 * target.h (target_shortname): Change to function declaration.
1746 (target_longname): Likewise.
1747 (target_attach_no_wait): Likewise.
1748 (target_post_attach): Likewise.
1749 (target_prepare_to_store): Likewise.
1750 (target_supports_enable_disable_tracepoint): Likewise.
1751 (target_supports_string_tracing): Likewise.
1752 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1753 (target_supports_dumpcore): Likewise.
1754 (target_dumpcore): Likewise.
1755 (target_can_run_breakpoint_commands): Likewise.
1756 (target_files_info): Likewise.
1757 (target_post_startup_inferior): Likewise.
1758 (target_insert_fork_catchpoint): Likewise.
1759 (target_remove_fork_catchpoint): Likewise.
1760 (target_insert_vfork_catchpoint): Likewise.
1761 (target_remove_vfork_catchpoint): Likewise.
1762 (target_insert_exec_catchpoint): Likewise.
1763 (target_remove_exec_catchpoint): Likewise.
1764 (target_set_syscall_catchpoint): Likewise.
1765 (target_rcmd): Likewise.
1766 (target_can_lock_scheduler): Likewise.
1767 (target_can_async_p): Likewise.
1768 (target_is_async_p): Likewise.
1769 (target_execution_direction): Likewise.
1770 (target_extra_thread_info): Likewise.
1771 (target_pid_to_exec_file): Likewise.
1772 (target_thread_architecture): Likewise.
1773 (target_find_memory_regions): Likewise.
1774 (target_make_corefile_notes): Likewise.
1775 (target_get_bookmark): Likewise.
1776 (target_goto_bookmark): Likewise.
1777 (target_stopped_by_watchpoint): Likewise.
1778 (target_stopped_by_sw_breakpoint): Likewise.
1779 (target_supports_stopped_by_sw_breakpoint): Likewise.
1780 (target_stopped_by_hw_breakpoint): Likewise.
1781 (target_supports_stopped_by_hw_breakpoint): Likewise.
1782 (target_have_steppable_watchpoint): Likewise.
1783 (target_can_use_hardware_watchpoint): Likewise.
1784 (target_region_ok_for_hw_watchpoint): Likewise.
1785 (target_can_do_single_step): Likewise.
1786 (target_insert_watchpoint): Likewise.
1787 (target_remove_watchpoint): Likewise.
1788 (target_insert_hw_breakpoint): Likewise.
1789 (target_remove_hw_breakpoint): Likewise.
1790 (target_can_accel_watchpoint_condition): Likewise.
1791 (target_can_execute_reverse): Likewise.
1792 (target_get_ada_task_ptid): Likewise.
1793 (target_filesystem_is_local): Likewise.
1794 (target_trace_init): Likewise.
1795 (target_download_tracepoint): Likewise.
1796 (target_can_download_tracepoint): Likewise.
1797 (target_download_trace_state_variable): Likewise.
1798 (target_enable_tracepoint): Likewise.
1799 (target_disable_tracepoint): Likewise.
1800 (target_trace_start): Likewise.
1801 (target_trace_set_readonly_regions): Likewise.
1802 (target_get_trace_status): Likewise.
1803 (target_get_tracepoint_status): Likewise.
1804 (target_trace_stop): Likewise.
1805 (target_trace_find): Likewise.
1806 (target_get_trace_state_variable_value): Likewise.
1807 (target_save_trace_data): Likewise.
1808 (target_upload_tracepoints): Likewise.
1809 (target_upload_trace_state_variables): Likewise.
1810 (target_get_raw_trace_data): Likewise.
1811 (target_get_min_fast_tracepoint_insn_len): Likewise.
1812 (target_set_disconnected_tracing): Likewise.
1813 (target_set_circular_trace_buffer): Likewise.
1814 (target_set_trace_buffer_size): Likewise.
1815 (target_set_trace_notes): Likewise.
1816 (target_get_tib_address): Likewise.
1817 (target_set_permissions): Likewise.
1818 (target_static_tracepoint_marker_at): Likewise.
1819 (target_static_tracepoint_markers_by_strid): Likewise.
1820 (target_traceframe_info): Likewise.
1821 (target_use_agent): Likewise.
1822 (target_can_use_agent): Likewise.
1823 (target_augmented_libraries_svr4_read): Likewise.
1824 (target_log_command): Likewise.
1825 * target.c (target_shortname): New.
1826 (target_longname): New.
1827 (target_attach_no_wait): New.
1828 (target_post_attach): New.
1829 (target_prepare_to_store): New.
1830 (target_supports_enable_disable_tracepoint): New.
1831 (target_supports_string_tracing): New.
1832 (target_supports_evaluation_of_breakpoint_conditions): New.
1833 (target_supports_dumpcore): New.
1834 (target_dumpcore): New.
1835 (target_can_run_breakpoint_commands): New.
1836 (target_files_info): New.
1837 (target_post_startup_inferior): New.
1838 (target_insert_fork_catchpoint): New.
1839 (target_remove_fork_catchpoint): New.
1840 (target_insert_vfork_catchpoint): New.
1841 (target_remove_vfork_catchpoint): New.
1842 (target_insert_exec_catchpoint): New.
1843 (target_remove_exec_catchpoint): New.
1844 (target_set_syscall_catchpoint): New.
1845 (target_rcmd): New.
1846 (target_can_lock_scheduler): New.
1847 (target_can_async_p): New.
1848 (target_is_async_p): New.
1849 (target_execution_direction): New.
1850 (target_extra_thread_info): New.
1851 (target_pid_to_exec_file): New.
1852 (target_thread_architecture): New.
1853 (target_find_memory_regions): New.
1854 (target_make_corefile_notes): New.
1855 (target_get_bookmark): New.
1856 (target_goto_bookmark): New.
1857 (target_stopped_by_watchpoint): New.
1858 (target_stopped_by_sw_breakpoint): New.
1859 (target_supports_stopped_by_sw_breakpoint): New.
1860 (target_stopped_by_hw_breakpoint): New.
1861 (target_supports_stopped_by_hw_breakpoint): New.
1862 (target_have_steppable_watchpoint): New.
1863 (target_can_use_hardware_watchpoint): New.
1864 (target_region_ok_for_hw_watchpoint): New.
1865 (target_can_do_single_step): New.
1866 (target_insert_watchpoint): New.
1867 (target_remove_watchpoint): New.
1868 (target_insert_hw_breakpoint): New.
1869 (target_remove_hw_breakpoint): New.
1870 (target_can_accel_watchpoint_condition): New.
1871 (target_can_execute_reverse): New.
1872 (target_get_ada_task_ptid): New.
1873 (target_filesystem_is_local): New.
1874 (target_trace_init): New.
1875 (target_download_tracepoint): New.
1876 (target_can_download_tracepoint): New.
1877 (target_download_trace_state_variable): New.
1878 (target_enable_tracepoint): New.
1879 (target_disable_tracepoint): New.
1880 (target_trace_start): New.
1881 (target_trace_set_readonly_regions): New.
1882 (target_get_trace_status): New.
1883 (target_get_tracepoint_status): New.
1884 (target_trace_stop): New.
1885 (target_trace_find): New.
1886 (target_get_trace_state_variable_value): New.
1887 (target_save_trace_data): New.
1888 (target_upload_tracepoints): New.
1889 (target_upload_trace_state_variables): New.
1890 (target_get_raw_trace_data): New.
1891 (target_get_min_fast_tracepoint_insn_len): New.
1892 (target_set_disconnected_tracing): New.
1893 (target_set_circular_trace_buffer): New.
1894 (target_set_trace_buffer_size): New.
1895 (target_set_trace_notes): New.
1896 (target_get_tib_address): New.
1897 (target_set_permissions): New.
1898 (target_static_tracepoint_marker_at): New.
1899 (target_static_tracepoint_markers_by_strid): New.
1900 (target_traceframe_info): New.
1901 (target_use_agent): New.
1902 (target_can_use_agent): New.
1903 (target_augmented_libraries_svr4_read): New.
1904 (target_log_command): New.
1905 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1906 * infrun.c (set_schedlock_func): Adjust.
1907 * mi/mi-main.c (exec_reverse_continue): Adjust.
1908 * reverse.c (exec_reverse_once): Adjust.
1909 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1910 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1911 * remote-sim.c (gdbsim_target::detach): Adjust.
1912 (gdbsim_target::files_info): Adjust.
1913
b64f703b
TT
19142021-03-24 Tom Tromey <tom@tromey.com>
1915
1916 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1917 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1918 (check_match, dw2_expand_symtabs_matching)
1919 (dwarf2_debug_names_index::map_matching_symbols)
1920 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1921
68f115f8
KS
19222021-03-24 Keith Seitz <keiths@redhat.com>
1923
1924 * compile/compile-cplus-types.c
1925 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1926 thinko.
1927
41c0087b
SM
19282021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1929
1930 * gdbarch.sh (gdbarch_data_registry): Make static.
1931 * gdbarch.c: Re-generate.
1932
ce192338
LM
19332021-03-24 Luis Machado <luis.machado@linaro.org>
1934
1935 * NEWS: Mention memory tagging changes.
1936
bef382e6
LM
19372021-03-24 Luis Machado <luis.machado@linaro.org>
1938
1939 * printcmd.c (decode_format): Handle the 'm' modifier.
1940 (do_examine): Display allocation tags when required/supported.
1941 (should_validate_memtags): New function.
1942 (print_command_1): Display memory tag mismatches.
1943 * valprint.c (show_memory_tag_violations): New function.
1944 (value_print_option_defs): Add new option "memory-tag-violations".
1945 (user_print_options) <memory_tag_violations>: Initialize to 1.
1946 * valprint.h (struct format_data) <print_tags>: New field.
1947 (value_print_options) <memory_tag_violations>: New field.
1948
48136e00
LM
19492021-03-24 Luis Machado <luis.machado@linaro.org>
1950
1951 * printcmd.c: Include gdbsupport/rsp-low.h.
1952 (memory_tag_list): New static global.
1953 (process_print_command_args): Factored out of
1954 print_command_1.
1955 (print_command_1): Use process_print_command_args.
1956 (show_addr_not_tagged, show_memory_tagging_unsupported)
1957 (memory_tag_command, memory_tag_print_tag_command)
1958 (memory_tag_print_logical_tag_command)
1959 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1960 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1961 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1962 functions.
1963 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1964
ffcc2a15
LM
19652021-03-24 Luis Machado <luis.machado@linaro.org>
1966
1967 * aarch64-linux-tdep.c
1968 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1969 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1970
cf44c9fa
LM
19712021-03-24 Luis Machado <luis.machado@linaro.org>
1972
1973 * aarch64-linux-tdep.c
1974 (aarch64_linux_report_signal_info): New function.
1975 (aarch64_linux_init_abi): Register
1976 aarch64_linux_report_signal_info as the report_signal_info hook.
1977 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1978 (SEGV_MTESERR): Define.
1979
b4a7d4fc
LM
19802021-03-24 Luis Machado <luis.machado@linaro.org>
1981
1982 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1983 (aarch64_linux_ltag_tests): New function.
1984 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1985
c7782e50
LM
19862021-03-24 Luis Machado <luis.machado@linaro.org>
1987
1988 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1989 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1990 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1991 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1992 functions.
1993 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1994 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1995 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1996 (aarch64_linux_get_ltag): New functions.
1997 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1998 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1999 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2000 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2001
1e735120
LM
20022021-03-24 Luis Machado <luis.machado@linaro.org>
2003
2004 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2005 bit.
2006 (struct smaps_data): New struct.
2007 (decode_vmflags): Handle the 'mt' flag.
2008 (parse_smaps_data): New function, refactored from
2009 linux_find_memory_regions_full.
2010 (linux_address_in_memtag_page): New function.
2011 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2012 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2013
93e447c6
LM
20142021-03-24 Luis Machado <luis.machado@linaro.org>
2015
2016 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2017 instead of char arrays.
2018
4601818e
LM
20192021-03-24 Luis Machado <luis.machado@linaro.org>
2020
2021 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2022 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2023 nat/aarch64-mte-linux-ptrace.h.
2024 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2025 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2026 override.
2027 <fetch_memtags>: New method override.
2028 <store_memtags>: New method override.
2029 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2030 (aarch64_linux_nat_target::fetch_memtags): New method.
2031 (aarch64_linux_nat_target::store_memtags): New method.
2032 * arch/aarch64-mte-linux.c: New file.
2033 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2034 (AARCH64_MTE_GRANULE_SIZE): Define.
2035 (aarch64_memtag_type): New enum.
2036 (aarch64_mte_get_tag_granules): New prototype.
2037 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2038 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2039 * nat/aarch64-mte-linux-ptrace.c: New file.
2040 * nat/aarch64-mte-linux-ptrace.h: New file.
2041
3f3bd8b8
LM
20422021-03-24 Luis Machado <luis.machado@linaro.org>
2043
2044 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2045 * nat/aarch64-mte-linux-ptrace.h: New file.
2046
5e984dbf
LM
20472021-03-24 Luis Machado <luis.machado@linaro.org>
2048
2049 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2050 (store_mteregs_to_thread): New function.
2051 (aarch64_linux_nat_target::fetch_registers): Update to call
2052 fetch_mteregs_from_thread.
2053 (aarch64_linux_nat_target::store_registers): Update to call
2054 store_mteregs_to_thread.
2055 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2056 (aarch64_cannot_store_register): Handle MTE registers.
2057 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2058 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2059 <has_mte>: New method.
2060 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2061
c1bd443b
LM
20622021-03-24 Luis Machado <luis.machado@linaro.org>
2063
2064 * aarch64-linux-nat.c
2065 (aarch64_linux_nat_target::read_description): Take MTE flag into
2066 account.
2067 Slight refactor to hwcap flag checking.
2068 * aarch64-linux-tdep.c
2069 (aarch64_linux_core_read_description): Likewise.
2070 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2071 MTE.
2072 (aarch64_read_description): Add mte_p parameter and update to use it.
2073 Update the documentation.
2074 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2075 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2076 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2077 (aarch64_create_target_description): Add mte_p parameter and update
2078 the code to use it.
2079 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2080 parameter.
2081 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2082 * features/aarch64-mte.c: New file, generated.
2083 * features/aarch64-mte.xml: New file.
2084
04245125
LM
20852021-03-24 Luis Machado <luis.machado@linaro.org>
2086
2087 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2088 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2089 * aarch64-linux-tdep.c: Likewise
2090 * arch/aarch64-mte-linux.h: New file.
2091
754487e2
LM
20922021-03-24 Luis Machado <luis.machado@linaro.org>
2093
2094 * remote: Include gdbsupport/selftest.h.
2095 (test_memory_tagging_functions): New function.
2096 (_initialize_remote): Register test_memory_tagging_functions.
2097
2c2e7f87
LM
20982021-03-24 Luis Machado <luis.machado@linaro.org>
2099
2100 * remote.c (PACKET_memory_tagging_feature): New enum.
2101 (remote_memory_tagging_p): New function.
2102 (remote_protocol_features): New "memory-tagging" entry.
2103 (remote_target::remote_query_supported): Handle memory tagging
2104 support.
2105 (remote_target::supports_memory_tagging): Implement.
2106 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2107 (create_store_memtags_request): New functions.
2108 (remote_target::fetch_memtags): Implement.
2109 (remote_target::store_memtags): Implement.
2110 (_initialize_remote): Add new "memory-tagging-feature"
2111 config command.
2112
c193949e
LM
21132021-03-24 Luis Machado <luis.machado@linaro.org>
2114
2115 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2116 (default_memtag_matches_p, default_set_memtags)
2117 (default_get_memtag): New functions.
2118 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2119 (default_memtag_matches_p, default_set_memtags)
2120 (default_get_memtag): New prototypes.
2121 * gdbarch.c: Regenerate.
2122 * gdbarch.h: Regenerate.
2123 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2124 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2125 (enum memtag_type): New enum.
2126
dbe692af
LM
21272021-03-24 Luis Machado <luis.machado@linaro.org>
2128
2129 * remote.c (remote_target) <supports_memory_tagging>: New method
2130 override.
2131 <fetch_memtags>: New method override.
2132 <store_memtags>: New method override.
2133 (remote_target::supports_memory_tagging): New method.
2134 (remote_target::fetch_memtags): New method.
2135 (remote_target::store_memtags): New method.
2136 * target-delegates.c: Regenerate.
2137 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2138 method.
2139 <fetch_memtags>: New virtual method.
2140 <store_memtags>: New virtual method.
2141 (target_supports_memory_tagging): Define.
2142 (target_fetch_memtags): Define.
2143 (target_store_memtags): Define.
2144 * target-debug.h (target_debug_print_size_t)
2145 (target_debug_print_const_gdb_byte_vector_r)
2146 (target_debug_print_gdb_byte_vector_r): New functions.
2147
66848ebc
SM
21482021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2149
2150 * target.h (target_longname): Remove.
2151
c8fbd44a
SM
21522021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2153
2154 * target.h (target_is_pushed): Remove, update callers to use
2155 inferior::target_is_pushed instead.
2156 * target.c (target_is_pushed): Remove.
2157
02980c56
SM
21582021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2159
2160 * target.h (push_target): Remove, update callers to use
2161 inferior::push_target.
2162 * target.c (push_target): Remove.
2163 * inferior.h (class inferior) <push_target>: New overload.
2164
fadf6add
SM
21652021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2166
2167 * target.h (unpush_target): Remove, update all callers
2168 to use `inferior::unpush_target` instead.
2169 (struct target_unpusher) <operator()>: Just declare.
2170 * target.c (unpush_target): Remove.
2171 (target_unpusher::operator()): New.
2172
702cf3f5
AB
21732021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2176 error.
2177 (process_full_comp_unit): Validate the top-level tag before
2178 processing the first DIE.
2179 (read_func_scope): Ensure we have a valid builder.
2180
46fec642
AB
21812021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2182
2183 * objc-lang.c (objc_demangle): Renamed to
2184 objc_language::demangle_symbol, and moved later in the file.
2185 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2186 member function.
2187 (objc_language::demangle_symbol): Defined outside of class
2188 declaration. The definition is the old objc_demangle with NULL
2189 changed to nullptr, and if conditions relating to nullptr pointers
2190 or null character checks made explicit.
2191 * objc-lang.h (objc_demangle): Delete declaration.
2192
08dedd66
ML
21932021-03-22 Martin Liska <mliska@suse.cz>
2194
2195 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2196 (_initialize_arm_tdep): Likewise.
2197
eb36a3eb
TT
21982021-03-20 Tom Tromey <tom@tromey.com>
2199
2200 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2201 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2202 * psymtab.h (make_psymbol_functions): Don't declare.
2203 * psymtab.c (make_psymbol_functions): Remove.
2204 (maintenance_print_psymbols): Update.
2205 * psympriv.h (struct psymbol_functions): Add no-argument
2206 constructor.
2207 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2208 <partial_symtabs>: Remove.
2209 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2210 * elfread.c (read_partial_symbols): Update.
2211 (elf_symfile_read): Remove check for existing partial symbols.
2212 Don't clear "qf".
2213 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2214 partial symbols.
2215 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2216 partial symtabs.
2217 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2218 parameter.
2219 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2220 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2221
e1114590
TT
22222021-03-20 Tom Tromey <tom@tromey.com>
2223
2224 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2225 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2226 * symfile-debug.c (objfile::has_partial_symbols)
2227 (objfile::find_last_source_symtab)
2228 (objfile::forget_cached_source_info)
2229 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2230 (objfile::print_stats, objfile::dump)
2231 (objfile::expand_symtabs_for_function)
2232 (objfile::expand_all_symtabs)
2233 (objfile::expand_symtabs_with_fullname)
2234 (objfile::map_matching_symbols)
2235 (objfile::expand_symtabs_matching)
2236 (objfile::find_pc_sect_compunit_symtab)
2237 (objfile::map_symbol_filenames)
2238 (objfile::find_compunit_symtab_by_address)
2239 (objfile::lookup_global_symbol_language)
2240 (objfile::require_partial_symbols): Update.
2241 * psymtab.c (maintenance_print_psymbols)
2242 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2243 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2244 * objfiles.c (objfile_relocate1): Update.
2245 * elfread.c (elf_symfile_read): Update.
2246
de909f0b
TT
22472021-03-20 Tom Tromey <tom@tromey.com>
2248
2249 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2250
caf8c1e5
TT
22512021-03-20 Tom Tromey <tom@tromey.com>
2252
2253 * psymtab.c (psymbol_functions::count_psyms): Rename.
2254 (psymbol_functions::print_stats): Update.
2255 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2256 method.
2257
3aa31ce7
TT
22582021-03-20 Tom Tromey <tom@tromey.com>
2259
2260 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2261 (psymbol_functions::find_pc_sect_psymtab): Rename.
2262 (psymbol_functions::find_pc_sect_compunit_symtab)
2263 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2264 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2265 Declare new method.
2266 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2267
7b249e47
TT
22682021-03-20 Tom Tromey <tom@tromey.com>
2269
2270 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2271 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2272 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2273 parameter.
2274 (add_psymbol_to_bcache): Remove.
2275 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2276 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2277 Likewise.
2278 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2279 <add_psymbol>: Likewise.
2280 (standard_psymtab, legacy_psymtab): Likewise.
2281 * mdebugread.c (parse_partial_symbols): Update.
2282 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2283 (handle_psymbol_enumerators): Update.
2284 (new_psymtab): Add partial_symtabs parameter.
2285 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2286 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2287 parameter.
2288 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2289 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2290 Update.
2291 * dbxread.c (read_dbx_symtab): Update.
2292 (start_psymtab): Add partial_symtabs parameter.
2293 (dbx_end_psymtab): Update.
2294 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2295 (ctf_psymtab): Add partial_symtabs parameter.
2296 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2297 Update.
2298 (scan_partial_symbols): Add partial_symtabs parameter.
2299 (scan_partial_symbols, elfctf_build_psymtabs)
2300 (ctf_psymtab_add_enums): Update.
2301
d1eef86d
TT
23022021-03-20 Tom Tromey <tom@tromey.com>
2303
2304 * symfile.c (read_symbols): Use objfile method.
2305 * symfile-debug.c (objfile::require_partial_symbols): New method.
2306 * psymtab.h (require_partial_symbols): Don't declare.
2307 * psymtab.c (require_partial_symbols): Use objfile method. Now
2308 static.
2309 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2310 (psymbol_functions::lookup_symbol)
2311 (psymbol_functions::lookup_global_symbol_language)
2312 (psymbol_functions::find_last_source_symtab)
2313 (psymbol_functions::forget_cached_source_info)
2314 (psymbol_functions::print_stats)
2315 (psymbol_functions::expand_symtabs_for_function)
2316 (psymbol_functions::expand_all_symtabs)
2317 (psymbol_functions::expand_symtabs_with_fullname)
2318 (psymbol_functions::map_symbol_filenames)
2319 (psymbol_functions::map_matching_symbols)
2320 (psymbol_functions::expand_symtabs_matching)
2321 (psymbol_functions::find_compunit_symtab_by_address)
2322 (maintenance_print_psymbols, maintenance_info_psymtabs)
2323 (maintenance_check_psymtabs): Update.
2324 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2325 new method.
2326
eb00e468
TT
23272021-03-20 Tom Tromey <tom@tromey.com>
2328
2329 * xcoffread.c (xcoff_sym_fns): Update.
2330 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2331 * symfile-debug.c (objfile::has_partial_symbols): Use
2332 can_lazily_read_symbols.
2333 (debug_sym_read_psymbols): Remove.
2334 (debug_sym_fns, install_symfile_debug_logging): Update.
2335 * quick-symbol.h (struct quick_symbol_functions)
2336 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2337 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2338 * mipsread.c (ecoff_sym_fns): Update.
2339 * machoread.c (macho_sym_fns): Update.
2340 * elfread.c (struct lazy_dwarf_reader): New.
2341 (elf_symfile_read): Update.
2342 (read_psyms): Now a method of lazy_dwarf_reader.
2343 (elf_sym_fns): Update.
2344 (elf_sym_fns_lazy_psyms): Remove.
2345 * dbxread.c (aout_sym_fns): Update.
2346 * coffread.c (coff_sym_fns): Update.
2347
b29b98cf
TT
23482021-03-20 Tom Tromey <tom@tromey.com>
2349
2350 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2351 (reread_symbols): Move reset_psymtabs call later.
2352 * objfiles.c (objfile::objfile): Don't initialize
2353 partial_symtabs.
2354
17d66340
TT
23552021-03-20 Tom Tromey <tom@tromey.com>
2356
2357 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2358 set_partial_symtabs.
2359 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2360 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2361 parameter.
2362 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2363 parameter.
2364 (psymbol_functions::find_pc_sect_compunit_symtab)
2365 (psymbol_functions::print_stats, psymbol_functions::dump)
2366 (psymbol_functions::has_symbols): Update.
2367 (make_psymbol_functions, dump_psymtab_addrmap): Add
2368 partial_symtabs parameter.
2369 (maintenance_print_psymbols): Update.
2370 (psymbol_functions::expand_symtabs_matching): Update.
2371 * psympriv.h (struct psymbol_functions): Add constructor.
2372 <m_partial_symtabs>: New member.
2373 <set_partial_symtabs>: New method.
2374
84685904
TT
23752021-03-20 Tom Tromey <tom@tromey.com>
2376
2377 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2378 parameter.
2379 (process_psymtab_comp_unit_reader)
2380 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2381 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2382 Reference psymtabs via per_bfd.
2383
79cc99f6
TT
23842021-03-20 Tom Tromey <tom@tromey.com>
2385
2386 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2387 Remove.
2388 (add_address_entry): Remove objfile parameter.
2389 (add_address_entry_worker): Update.
2390 (write_address_map): Replace objfile parameter with per_bfd.
2391 (write_gdbindex, write_psymtabs_to_index): Update.
2392
4829711b
TT
23932021-03-20 Tom Tromey <tom@tromey.com>
2394
2395 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2396 print_bcache parameter.
2397 * symfile-debug.c (objfile::print_stats): Add print_bcache
2398 parameter.
2399 * quick-symbol.h (struct quick_symbol_functions)
2400 <print_stats>: Add print_bcache parameter.
2401 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2402 code to psymtab.c.
2403 (print_objfile_statistics): Move psymtab code to psymtab.c.
2404 * psymtab.c (count_psyms): Move from symmisc.c.
2405 (psymbol_functions::print_stats): Print partial symbol and bcache
2406 statistics. Add print_bcache parameter.
2407 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2408 (struct objfile) <print_stats>: Add print_bcache parameter.
2409 * maint.c (maintenance_print_statistics): Update.
2410
efd7398e
TT
24112021-03-20 Tom Tromey <tom@tromey.com>
2412
2413 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2414 member.
2415 * dwarf2/read.c (create_addrmap_from_index)
2416 (create_addrmap_from_aranges): Set per_bfd addrmap.
2417 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2418 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2419 per_bfd addrmap.
2420 (dwarf2_read_debug_names): Don't set partial_symtabs.
2421 (dwarf2_initialize_objfile): Likewise.
2422
51962708
TT
24232021-03-20 Tom Tromey <tom@tromey.com>
2424
2425 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2426 earlier.
2427
484b1090
TT
24282021-03-20 Tom Tromey <tom@tromey.com>
2429
2430 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2431 (~psymtab_discarder, keep): Update.
2432 <m_objfile>: Remove.
2433 <m_partial_symtabs>: New member.
2434 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2435
7e9c0476
TT
24362021-03-20 Tom Tromey <tom@tromey.com>
2437
2438 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2439 (xcoff_end_psymtab): Update.
2440 (scan_xcoff_symtab): Add partial_symtabs parameter.
2441 (xcoff_initial_scan): Update.
2442 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2443 * mdebugread.c (mdebug_build_psymtabs): Update.
2444 (parse_partial_symbols): Add partial_symtabs parameter.
2445 * dbxread.c (dbx_symfile_read): Update.
2446 (read_dbx_symtab): Add partial_symtabs parameter.
2447 (read_dbx_symtab): Update.
2448 (dbx_end_psymtab): Add partial_symtabs parameter.
2449
75336a5a
TT
24502021-03-20 Tom Tromey <tom@tromey.com>
2451
2452 * quick-symbol.h (struct quick_symbol_functions)
2453 <relocated>: New method.
2454 * psymtab.h (struct psymbol_functions) <relocated>: New
2455 method.
2456 <fill_psymbol_map>: Declare method.
2457 <m_psymbol_map>: New member.
2458 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2459 (psymbol_functions::find_compunit_symtab_by_address): Update.
2460 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2461 (struct objfile) <psymbol_map>: Remove.
2462 * objfiles.c (objfile_relocate1): Update.
2463
39298a5d
TT
24642021-03-20 Tom Tromey <tom@tromey.com>
2465
2466 * psympriv.h (struct psymbol_functions): New.
2467 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2468 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2469 (objfile::lookup_global_symbol_language): Update.
2470 * quick-symbol.h (struct quick_symbol_functions): Convert function
2471 pointers to methods. Add virtual destructor.
2472 (quick_symbol_functions_up): New typedef.
2473 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2474 (dwarf2_debug_names_functions): Don't declare.
2475 (make_psymbol_functions): Declare.
2476 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2477 (psymbol_functions::find_pc_sect_compunit_symtab)
2478 (psymbol_functions::lookup_symbol)
2479 (psymbol_functions::lookup_global_symbol_language)
2480 (psymbol_functions::find_last_source_symtab)
2481 (psymbol_functions::forget_cached_source_info)
2482 (psymbol_functions::print_stats, psymbol_functions::dump)
2483 (psymbol_functions::expand_symtabs_for_function)
2484 (psymbol_functions::expand_all_symtabs)
2485 (psymbol_functions::expand_symtabs_with_fullname)
2486 (psymbol_functions::map_symbol_filenames)
2487 (psymbol_functions::map_matching_symbols)
2488 (psymbol_functions::expand_symtabs_matching)
2489 (psymbol_functions::has_symbols)
2490 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2491 (psym_functions): Remove.
2492 (make_psymbol_functions): New function.
2493 * objfiles.h (struct objfile) <qf>: Change type.
2494 * elfread.c (elf_symfile_read): Update.
2495 * dwarf2/read.c (struct dwarf2_base_index_functions)
2496 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2497 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2498 (dwarf2_base_index_functions::find_last_source_symtab)
2499 (dwarf2_base_index_functions::forget_cached_source_info)
2500 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2501 (dwarf2_gdb_index::lookup_symbol)
2502 (dwarf2_base_index_functions::print_stats)
2503 (dwarf2_gdb_index::dump)
2504 (dwarf2_gdb_index::expand_symtabs_for_function)
2505 (dwarf2_base_index_functions::expand_all_symtabs)
2506 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2507 Rename.
2508 (dwarf2_gdb_index::map_matching_symbols): New method.
2509 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2510 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2511 (dwarf2_base_index_functions::map_symbol_filenames)
2512 (dwarf2_base_index_functions::has_symbols): Rename.
2513 (dwarf2_gdb_index_functions): Remove.
2514 (dwarf2_debug_names_index::lookup_symbol)
2515 (dwarf2_debug_names_index::dump)
2516 (dwarf2_debug_names_index::expand_symtabs_for_function)
2517 (dwarf2_debug_names_index::map_matching_symbols)
2518 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2519 (dwarf2_debug_names_functions): Remove.
2520 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2521 Declare.
2522
5c3f1e5b
TT
25232021-03-20 Tom Tromey <tom@tromey.com>
2524
2525 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2526 null.
2527 * xcoffread.c (xcoff_sym_fns): Update.
2528 * symfile.h (struct sym_fns) <qf>: Remove.
2529 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2530 * symfile-debug.c (objfile::has_partial_symbols)
2531 (objfile::find_last_source_symtab)
2532 (objfile::forget_cached_source_info)
2533 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2534 (objfile::print_stats, objfile::dump)
2535 (objfile::expand_symtabs_for_function)
2536 (objfile::expand_all_symtabs)
2537 (objfile::expand_symtabs_with_fullname)
2538 (objfile::map_matching_symbols)
2539 (objfile::expand_symtabs_matching)
2540 (objfile::find_pc_sect_compunit_symtab)
2541 (objfile::map_symbol_filenames)
2542 (objfile::find_compunit_symtab_by_address)
2543 (objfile::lookup_global_symbol_language, debug_sym_fns)
2544 (install_symfile_debug_logging): Update.
2545 * objfiles.h (struct objfile) <qf>: New member.
2546 * mipsread.c (ecoff_sym_fns): Update.
2547 * machoread.c (macho_sym_fns): Update.
2548 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2549 Don't declare.
2550 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2551 * dbxread.c (aout_sym_fns): Update.
2552 * coffread.c (coff_sym_fns): Update.
2553
9b99dcc8
TT
25542021-03-20 Tom Tromey <tom@tromey.com>
2555
2556 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2557 (expand_symtabs_file_matcher_ftype)
2558 (expand_symtabs_symbol_matcher_ftype)
2559 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2560 Move to quick-symbol.h.
2561 * quick-symbol.h: New file.
2562
4d080b46
TT
25632021-03-20 Tom Tromey <tom@tromey.com>
2564
2565 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2566 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2567 (basic_lookup_transparent_type_quick)
2568 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2569 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2570 Update.
2571 * symmisc.c (print_objfile_statistics, dump_objfile)
2572 (maintenance_expand_symtabs): Update.
2573 * symfile.c (symbol_file_add_with_addrs)
2574 (expand_symtabs_matching, map_symbol_filenames): Update.
2575 * symfile-debug.c (objfile::has_partial_symbols)
2576 (objfile::find_last_source_symtab)
2577 (objfile::forget_cached_source_info)
2578 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2579 (objfile::print_stats, objfile::dump)
2580 (objfile::expand_symtabs_for_function)
2581 (objfile::expand_all_symtabs)
2582 (objfile::expand_symtabs_with_fullname)
2583 (objfile::map_matching_symbols)
2584 (objfile::expand_symtabs_matching)
2585 (objfile::find_pc_sect_compunit_symtab)
2586 (objfile::map_symbol_filenames)
2587 (objfile::find_compunit_symtab_by_address)
2588 (objfile::lookup_global_symbol_language): New methods.
2589 (debug_sym_quick_functions): Remove.
2590 (debug_sym_fns, install_symfile_debug_logging): Update.
2591 * source.c (forget_cached_source_info_for_objfile)
2592 (select_source_symtab): Update.
2593 * objfiles.h (struct objfile): Add methods corresponding to
2594 quick_symbol_functions.
2595 * objfiles.c (objfile::has_partial_symbols): Move to
2596 symfile-debug.c.
2597 * linespec.c (iterate_over_all_matching_symtabs): Update.
2598 * cp-support.c (add_symbol_overload_list_qualified): Update.
2599 * ada-lang.c (add_nonlocal_symbols): Update.
2600
fae2120b
TT
26012021-03-20 Tom Tromey <tom@tromey.com>
2602
2603 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2604 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2605 bool.
2606 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2607 * psymtab.c (psym_has_symbols): Return bool.
2608 * objfiles.c (objfile::has_partial_symbols): Return bool.
2609 * dwarf2/read.c (dw2_has_symbols): Return bool.
2610
a8ad4f3c
TT
26112021-03-20 Tom Tromey <tom@tromey.com>
2612
2613 * symfile.c (read_symbols): Update.
2614 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2615 (objfile_has_partial_symbols): Don't declare.
2616 * objfiles.c (objfile::has_partial_symbols): Rename from
2617 objfile_has_partial_symbols.
2618 (objfile_has_symbols, have_partial_symbols): Update.
2619 * elfread.c (elf_symfile_read): Update.
2620 * dwarf2/read.c (dwarf2_has_info): Update.
2621 * coffread.c (coff_symfile_read): Update.
2622
70182375
TT
26232021-03-20 Tom Tromey <tom@tromey.com>
2624
2625 * coffread.c: Include dwarf2/public.h.
2626 * dwarf2/frame.c: Include dwarf2/public.h.
2627 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2628 * dwarf2/public.h: New file.
2629 * dwarf2/read.c: Include dwarf2/public.h.
2630 * elfread.c: Include dwarf2/public.h.
2631 * machoread.c: Include dwarf2/public.h.
2632 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2633 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2634 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2635 * xcoffread.c: Include dwarf2/public.h.
2636
18038e63
TT
26372021-03-20 Tom Tromey <tom@tromey.com>
2638
2639 * symfile.h (enum dwarf2_section_enum)
2640 (dwarf2_get_section_info): Move to dwarf2/read.h.
2641 * dwarf2/read.h (enum dwarf2_section_enum)
2642 (dwarf2_get_section_info): Move from symfile.h.
2643
219f56b4
PA
26442021-03-19 Pedro Alves <pedro@palves.net>
2645
2646 * thread.c (any_thread_of_inferior): Check if there's a selected
2647 thread before calling inferior_thread().
2648
15310fd4
TT
26492021-03-18 Tom Tromey <tromey@adacore.com>
2650
2651 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2652 get_DW_UT_name.
2653 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2654 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2655
763b8efd
AB
26562021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2657
2658 * python/py-param.c (get_set_value): Update header comment.
2659
f058c521
SM
26602021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2661
2662 * infrun.c (check_multi_target_resumption): Remove argument to
2663 all_non_exited_inferiors.
2664
383228bc
CB
26652021-03-16 Christian Biesinger <cbiesinger@google.com>
2666
2667 * windows-nat.c (windows_init_thread_list): Add message to
2668 debug log.
2669
7807d76a
AB
26702021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2673 well as PyLong_Check for Python 2.
2674
675da9a5
TT
26752021-03-15 Tom Tromey <tromey@adacore.com>
2676
2677 PR build/27579:
2678 * rust-exp.y (maker_map): Use gdb::hash_enum.
2679 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2680
4800761a
SM
26812021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2684 end of debug print.
2685
eb5dd737
SM
26862021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2689 parameter, adjust caller.
2690
6813ceb0
TT
26912021-03-15 Tom Tromey <tromey@adacore.com>
2692
2693 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2694
3b5c4de0
TT
26952021-03-15 Tom Tromey <tromey@adacore.com>
2696
2697 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2698 ada_ensure_varsize_limit.
2699
c04da66c
TT
27002021-03-15 Tom Tromey <tromey@adacore.com>
2701
2702 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2703 fixed-point.
2704 * ada-exp.y (maybe_overload): New function.
2705 (ada_wrap_overload): New function.
2706 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2707 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2708 (or_else_exp, xor_exp, primary): Update.
2709
9863c3b5
TT
27102021-03-15 Tom Tromey <tromey@adacore.com>
2711
2712 PR ada/27545:
2713 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2714 call for tagged type.
2715
1ac74522
TT
27162021-03-15 Tom Tromey <tromey@adacore.com>
2717
2718 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2719 assignment.
2720
207582c0
TT
27212021-03-15 Tom Tromey <tromey@adacore.com>
2722
2723 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2724 container.
2725 (ada_assign_operation::evaluate): Update.
2726 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2727 Change return type.
2728
8d624a9d
FW
27292021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2730
2731 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2732
ba6a0ef3
AB
27332021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * python/python.c (gdbpy_source_objfile_script): Use
2736 make_scoped_restore to restore gdbpy_current_objfile.
2737 (gdbpy_execute_objfile_script): Likewise.
2738
7c290a04
TT
27392021-03-14 Tom Tromey <tom@tromey.com>
2740
2741 * dwarf2/read.c (read_attribute_value): Use cu_header
2742 consistently.
2743
0280fdcc
TT
27442021-03-14 Tom Tromey <tom@tromey.com>
2745
2746 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2747 (peek_die_abbrev): Use reader.abfd.
2748
a9f172c6
TT
27492021-03-14 Tom Tromey <tom@tromey.com>
2750
2751 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2752 m_header_read_in.
2753
7c32eebb
TT
27542021-03-13 Tom Tromey <tom@tromey.com>
2755
2756 * dwarf2/read.c (struct partial_die_info): Update.
2757 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2758 (load_partial_dies, partial_die_info::partial_die_info): Update.
2759 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2760
27012aba
TT
27612021-03-13 Tom Tromey <tom@tromey.com>
2762
2763 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2764
fece451c
CB
27652021-03-12 Christian Biesinger <cbiesinger@google.com>
2766
2767 PR threads/27239
2768 * cp-support.c: Use scoped_segv_handler_restore.
2769 * event-top.c (thread_local_segv_handler): Made static.
2770 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2771 New function.
2772 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2773 function.
2774 * event-top.h (class scoped_segv_handler_restore): New class.
2775 (thread_local_segv_handler): Removed.
2776
7056f312
TT
27772021-03-10 Tom Tromey <tromey@adacore.com>
2778
2779 * parser-defs.h (parser_state): Change completion to bool.
2780 <parse_completion>: Likewise.
2781 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2782 (ada_resolve_variable, ada_resolve_function): Update.
2783 * ada-lang.c (ada_find_operator_symbol): Change
2784 parse_completion to bool.
2785 (ada_resolve_funcall, ada_resolve_variable)
2786 (ada_resolve_function): Likewise.
2787
ccdc02ed
TT
27882021-03-09 Tom Tromey <tromey@adacore.com>
2789
2790 * eval.c (operation::evaluate_funcall): Use function formal
2791 parameter types when evaluating.
2792
fbb1aace
AB
27932021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2794
2795 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2796 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2797 and owner to m_owner.
2798
611aa09d
FW
27992021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2800
2801 * f-exp.h (eval_op_f_loc): Declare.
2802 (expr::fortran_loc_operation): New typedef.
2803 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2804 UNOP_INTRINSIC.
2805 (f77_keywords): Add LOC keyword.
2806 * f-lang.c (eval_op_f_loc): New function.
2807 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2808
eef32f59
AB
28092021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2810
2811 * f-exp.h (eval_op_f_array_shape): Declare.
2812 (fortran_array_shape_operation): New type.
2813 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2814 UNOP_INTRINSIC.
2815 (f77_keywords): Add "shape" keyword.
2816 * f-lang.c (fortran_array_shape): New function.
2817 (eval_op_f_array_shape): New function.
2818 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2819
7ba155b3
AB
28202021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2821
2822 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2823 of this function.
2824 (expr::fortran_array_size_1arg): New type.
2825 (expr::fortran_array_size_2arg): Likewise.
2826 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2827 UNOP_OR_BINOP_INTRINSIC.
2828 (f77_keywords): Add "size" keyword.
2829 * f-lang.c (fortran_array_size): New function.
2830 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2831 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2832
e14816a8
AB
28332021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2834
2835 * f-exp.h (eval_op_f_rank): Declare.
2836 (expr::fortran_rank_operation): New typedef.
2837 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2838 UNOP_INTRINSIC.
2839 (f77_keywords): Add "rank" keyword.
2840 * f-lang.c (eval_op_f_rank): New function.
2841 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2842
3dd93bf8
TT
28432021-03-08 Tom Tromey <tom@tromey.com>
2844
2845 * printcmd.c (set_command): Remove null check.
2846 * value.c (init_if_undefined_command): Remove null check.
2847
9c79936b
TT
28482021-03-08 Tom Tromey <tom@tromey.com>
2849
2850 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2851 Update.
2852 * p-exp.y (variable): Update.
2853 * go-exp.y (variable): Update.
2854 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2855 Remove overload for objfile.
2856 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2857 parameter.
2858 (check_objfile): Likewise.
2859 (dump_for_expression): Likewise. Remove overload for objfile.
2860 (class var_msym_value_operation): Use bound_minimal_symbol.
2861 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2862 parameter.
2863 (var_msym_value_operation::evaluate_for_address)
2864 (var_msym_value_operation::evaluate_for_sizeof)
2865 (var_msym_value_operation::evaluate_for_cast): Update.
2866 * d-exp.y (PrimaryExpression): Update.
2867 * c-exp.y (variable): Update.
2868 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2869 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2870 Update.
2871 * ada-exp.y (write_var_or_type): Update.
2872
40d07d07
TT
28732021-03-08 Tom Tromey <tom@tromey.com>
2874
2875 * parser-defs.h (exp_uses_objfile): Return bool.
2876 * parse.c (exp_uses_objfile): Return bool.
2877
0b2b0b82
TT
28782021-03-08 Tom Tromey <tom@tromey.com>
2879
2880 * value.h (eval_skip_value): Don't declare.
2881 * opencl-lang.c (eval_opencl_assign): Update.
2882 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2883 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2884 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2885 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2886 * expop.h (typeof_operation::evaluate)
2887 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2888 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2889 (cxx_cast_operation::evaluate): Update.
2890 * eval.c (eval_skip_value): Remove.
2891 (eval_op_scope, eval_op_var_entry_value)
2892 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2893 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2894 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2895 (eval_op_binary, eval_op_subscript, eval_op_equal)
2896 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2897 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2898 (eval_op_complement, eval_op_lognot, eval_op_ind)
2899 (eval_op_memval, eval_op_preinc, eval_op_predec)
2900 (eval_op_postinc, eval_op_postdec, eval_op_type)
2901 (eval_binop_assign_modify, eval_op_objc_msgcall)
2902 (eval_multi_subscript, logical_and_operation::evaluate)
2903 (logical_or_operation::evaluate, array_operation::evaluate)
2904 (operation::evaluate_for_cast)
2905 (var_msym_value_operation::evaluate_for_cast)
2906 (var_value_operation::evaluate_for_cast): Update.
2907 * c-lang.c (c_string_operation::evaluate): Update.
2908 * c-exp.h (objc_nsstring_operation::evaluate)
2909 (objc_selector_operation::evaluate): Update.
2910 * ada-lang.c (ada_assign_operation::evaluate)
2911 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2912 (ada_atr_size): Update.
2913
96db551d
TT
29142021-03-08 Tom Tromey <tom@tromey.com>
2915
2916 * eval.c: Merge "namespace" scopes.
2917
ce284361
TT
29182021-03-08 Tom Tromey <tom@tromey.com>
2919
2920 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2921 <release>: Inline.
2922 * parse.c (expr_builder::expr_builder, expr_builder::release):
2923 Remove.
2924
b9d06571
TT
29252021-03-08 Tom Tromey <tom@tromey.com>
2926
2927 * parse.c (expression::expression, expression::~expression):
2928 Remove.
2929 * expression.h (struct expression): Inline constructor. Remove
2930 destructor.
2931
79ab486e
TT
29322021-03-08 Tom Tromey <tom@tromey.com>
2933
2934 * std-operator.def (BINOP_END): Remove.
2935 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2936 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2937 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2938 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2939 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2940 BINOP_END.
2941
48fa6f23
TT
29422021-03-08 Tom Tromey <tom@tromey.com>
2943
2944 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2945
43f542e3
TT
29462021-03-08 Tom Tromey <tom@tromey.com>
2947
2948 * std-operator.def (OP_EXTENDED0): Remove.
2949
5d9ba982
TT
29502021-03-08 Tom Tromey <tom@tromey.com>
2951
2952 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2953 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2954 Remove.
2955
d357570d
TT
29562021-03-08 Tom Tromey <tom@tromey.com>
2957
2958 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2959 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2960
0922dc84
TT
29612021-03-08 Tom Tromey <tom@tromey.com>
2962
2963 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2964 * ada-lang.c (ada_binop_minmax): Update.
2965 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2966 Use BINOP_MIN and BINOP_MAX.
2967
1eaebe02
TT
29682021-03-08 Tom Tromey <tom@tromey.com>
2969
2970 * value.h (evaluate_subexp_with_coercion): Don't declare.
2971 * parse.c (exp_descriptor_standard): Remove.
2972 (expr_builder::expr_builder, expr_builder::release): Update.
2973 (expression::expression): Remove size_t parameter.
2974 (expression::~expression): Simplify.
2975 (expression::resize): Remove.
2976 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2977 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2978 (write_exp_elt_longcst, write_exp_elt_floatcst)
2979 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2980 (write_exp_string_vector, write_exp_bitstring): Remove.
2981 * p-lang.h (class pascal_language) <opcode_print_table,
2982 op_print_tab>: Remove.
2983 * p-lang.c (pascal_language::op_print_tab): Remove.
2984 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2985 Remove.
2986 * objc-lang.c (objc_op_print_tab): Remove.
2987 (class objc_language) <opcode_print_table>: Remove.
2988 * m2-lang.h (class m2_language) <opcode_print_table,
2989 op_print_tab>: Remove.
2990 * m2-lang.c (m2_language::op_print_tab): Remove.
2991 * language.h (struct language_defn) <post_parser, expression_ops,
2992 opcode_print_table>: Remove.
2993 * language.c (language_defn::expression_ops)
2994 (auto_or_unknown_language::opcode_print_table): Remove.
2995 * go-lang.h (class go_language) <opcode_print_table,
2996 op_print_tab>: Remove.
2997 * go-lang.c (go_language::op_print_tab): Remove.
2998 * f-lang.h (class f_language) <opcode_print_table>: Remove
2999 <op_print_tab>: Remove.
3000 * f-lang.c (f_language::op_print_tab): Remove.
3001 * expression.h (union exp_element): Remove.
3002 (struct expression): Remove size_t parameter from constructor.
3003 <resize>: Remove.
3004 <first_opcode>: Update.
3005 <nelts, elts>: Remove.
3006 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3007 (evaluate_subexp_standard, print_expression, op_string)
3008 (dump_raw_expression): Don't declare.
3009 * expprint.c (print_expression, print_subexp)
3010 (print_subexp_funcall, print_subexp_standard, op_string)
3011 (dump_raw_expression, dump_subexp, dump_subexp_body)
3012 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3013 (dump_prefix_expression): Update.
3014 * eval.c (evaluate_subexp): Remove.
3015 (evaluate_expression, evaluate_type): Update.
3016 (evaluate_subexpression_type): Remove.
3017 (fetch_subexp_value): Remove "pc" parameter. Update.
3018 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3019 (evaluate_subexp_standard, evaluate_subexp_for_address)
3020 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3021 (evaluate_subexp_for_cast): Remove.
3022 (parse_and_eval_type): Update.
3023 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3024 * d-lang.c (d_op_print_tab): Remove.
3025 (class d_language) <opcode_print_table>: Remove.
3026 * c-lang.h (c_op_print_tab): Don't declare.
3027 * c-lang.c (c_op_print_tab): Remove.
3028 (class c_language, class cplus_language, class asm_language, class
3029 minimal_language) <opcode_print_table>: Remove.
3030 * breakpoint.c (update_watchpoint, watchpoint_check)
3031 (watchpoint_exp_is_const, watch_command_1): Update.
3032 * ax-gdb.h (union exp_element): Don't declare.
3033 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3034 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3035 (gen_expr_binop_rest): Remove.
3036 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3037 * ada-lang.c (ada_op_print_tab): Remove.
3038 (class ada_language) <post_parser, opcode_print_table>: Remove.
3039
f2a98603
TT
30402021-03-08 Tom Tromey <tom@tromey.com>
3041
3042 * go-lang.c (go_language::expression_ops): Don't declare.
3043 * go-lang.h (class go_language) <expression_ops>: Remove.
3044 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3045 Remove.
3046 (class opencl_language) <expression_ops>: Remove.
3047 * d-lang.c (class d_language) <expression_ops>: Remove.
3048 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3049 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3050 (class c_language, class cplus_language, class asm_language)
3051 (class minimal_language) <expression_ops>: Remove.
3052
d3c54a1c
TT
30532021-03-08 Tom Tromey <tom@tromey.com>
3054
3055 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3056 (evaluate_subexp_type, assign_aggregate)
3057 (aggregate_assign_positional, aggregate_assign_from_choices)
3058 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3059 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3060 (ada_operator_check, ada_forward_operator_length)
3061 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3062 Remove.
3063 (post_parser): Update.
3064 (class ada_language) <expresssion_ops>: Remove.
3065
5871f0a3
TT
30662021-03-08 Tom Tromey <tom@tromey.com>
3067
3068 * m2-lang.h (class m2_language) <expresssion_ops,
3069 exp_descriptor_modula2>: Remove.
3070 * m2-lang.c (evaluate_subexp_modula2)
3071 (m2_language::exp_descriptor_modula2): Remove.
3072
a99be8c1
TT
30732021-03-08 Tom Tromey <tom@tromey.com>
3074
3075 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3076 <exp_descriptor_tab>: Remove.
3077 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3078 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3079 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3080 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3081 Remove.
3082
aa1da9ed
TT
30832021-03-08 Tom Tromey <tom@tromey.com>
3084
3085 * rust-lang.h (class rust_language) <expression_ops,
3086 exp_descriptor_tab>: Remove.
3087 * rust-lang.c (rust_evaluate_funcall): Remove.
3088 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3089 EVAL_SKIP.
3090 (rust_evaluate_subexp): Remove.
3091 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3092 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3093 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3094
08a057e6
TT
30952021-03-08 Tom Tromey <tom@tromey.com>
3096
3097 * ada-exp.y: Create operations.
3098 (empty_stoken): Remove.
3099 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3100 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3101 (components): New global.
3102 (push_component, choice_component, pop_component, pop_components):
3103 New functions.
3104 (associations): New global
3105 (push_association, pop_association, pop_associations): New
3106 functions.
3107 (ada_parse): Update.
3108 (write_var_from_sym, write_int): Create operations.
3109 (write_exp_op_with_string): Remove.
3110 (write_object_renaming, write_selectors, write_ambiguous_var)
3111 (write_var_or_type, write_name_assoc): Create operations.
3112 * ada-lang.h (ada_index_type): Declare.
3113 * ada-lang.c (ada_index_type): No longer static.
3114
d308ba78
TT
31152021-03-08 Tom Tromey <tom@tromey.com>
3116
3117 * f-exp.y: Create operations.
3118 (f_language::parser): Update.
3119
f1b8ceef
TT
31202021-03-08 Tom Tromey <tom@tromey.com>
3121
3122 * m2-exp.y: Create operations.
3123 (m2_language::parser): Update.
3124
3163898e
TT
31252021-03-08 Tom Tromey <tom@tromey.com>
3126
3127 * p-exp.y: Create operations.
3128 (pascal_language::parser): Update.
3129
9412fdcc
TT
31302021-03-08 Tom Tromey <tom@tromey.com>
3131
3132 * d-exp.y: Create operations.
3133 (d_parse): Update.
3134
bb4e0574
TT
31352021-03-08 Tom Tromey <tom@tromey.com>
3136
3137 * go-exp.y: Create operations.
3138 (go_language::parser): Update.
3139
d182f279
TT
31402021-03-08 Tom Tromey <tom@tromey.com>
3141
3142 * objc-lang.c (end_msglist): Create operations.
3143 * c-exp.y: Change parser to create operations.
3144 (write_destructor_name): Remove.
3145 (c_parse): Update.
3146
c1299a23
TT
31472021-03-08 Tom Tromey <tom@tromey.com>
3148
3149 * rust-exp.y: Create operations.
3150 (rust_parser::convert_params_to_expression): Change return type.
3151 (binop_maker_ftype): New typedef.
3152 (maker_map): New global.
3153 (rust_parser::convert_ast_to_expression): Change return type.
3154 (rust_language::parser): Update.
3155 (_initialize_rust_exp): Initialize maker_map.
3156
4c5e7a93
TT
31572021-03-08 Tom Tromey <tom@tromey.com>
3158
3159 * stap-probe.c (binop_maker_ftype): New typedef.
3160 (stap_maker_map): New global.
3161 (stap_make_binop): New function.
3162 (stap_parse_register_operand): Return operation_up.
3163 (stap_parse_single_operand, stap_parse_argument_conditionally)
3164 (stap_parse_argument_1): Likewise.
3165 (stap_parse_argument): Create operations.
3166 (stap_probe::parse_arguments): Update.
3167 (_initialize_stap_probe): Initialize stap_maker_map.
3168 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3169 type.
3170 * i386-tdep.h (i386_stap_parse_special_token): Change return
3171 type.
3172 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3173 (i386_stap_parse_special_token_three_arg_disp)
3174 (i386_stap_parse_special_token): Change return type.
3175 * gdbarch.sh (stap_parse_special_token): Change return type.
3176 * gdbarch.c: Rebuild.
3177 * gdbarch.h: Rebuild.
3178 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3179 type.
3180 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3181 return type.
3182
482ddd69
TT
31832021-03-08 Tom Tromey <tom@tromey.com>
3184
3185 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3186 * gdbarch.h: Rebuild.
3187 * gdbarch.c: Rebuild.
3188 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3189 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3190 return type.
3191 (amd64_dtrace_parse_probe_argument): Update.
3192
8227d9e2
TT
31932021-03-08 Tom Tromey <tom@tromey.com>
3194
3195 * parser-defs.h (struct parser_state) <push, push_new,
3196 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3197 wrap2>: New methods.
3198 <m_operations>: New member.
3199 * parse.c (parser_state::push_c_string)
3200 (parser_state::push_symbol, parser_state::push_dollar): New
3201 methods.
3202
4933522d
TT
32032021-03-08 Tom Tromey <tom@tromey.com>
3204
3205 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3206 New member.
3207 (struct parser_state) <mark_struct_expression>: New method.
3208 * parse.c (parser_state::mark_struct_expression): Update assert.
3209 (parser_state::mark_struct_expression): New method.
3210 (parser_state::mark_completion_tag): Update assert.
3211 (parse_expression_for_completion): Handle expout_last_op.
3212
413403fc
TT
32132021-03-08 Tom Tromey <tom@tromey.com>
3214
3215 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3216 now in superclass.
3217 * value.h (fetch_subexp_value): Add "op" parameter.
3218 * value.c (init_if_undefined_command): Update.
3219 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3220 * stap-probe.c (stap_probe::compile_to_ax): Update.
3221 * printcmd.c (set_command): Update.
3222 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3223 Update.
3224 * parser-defs.h (struct expr_builder) <set_operation>: New
3225 method.
3226 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3227 * expression.h (struct expression) <first_opcode>: Update.
3228 <op>: New member.
3229 * expprint.c (dump_raw_expression, dump_prefix_expression):
3230 Update.
3231 * expop.h (class var_value_operation) <get_symbol>: New method.
3232 (class register_operation) <get_name>: New method.
3233 (class equal_operation): No longer a typedef, now a subclass.
3234 (class unop_memval_operation) <get_type>: New method.
3235 (class assign_operation) <get_lhs>: New method.
3236 (class unop_cast_operation) <get_type>: New method.
3237 * eval.c (evaluate_expression, evaluate_type)
3238 (evaluate_subexpression_type): Update.
3239 (fetch_subexp_value): Add "op" parameter.
3240 (parse_and_eval_type): Update.
3241 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3242 * breakpoint.c (update_watchpoint, watchpoint_check)
3243 (watchpoint_exp_is_const, watch_command_1): Update.
3244 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3245 Update.
3246
b0f9164c
TT
32472021-03-08 Tom Tromey <tom@tromey.com>
3248
3249 * ada-lang.c (ada_value_binop): Do not use op_string.
3250
a88c4354
TT
32512021-03-08 Tom Tromey <tom@tromey.com>
3252
3253 * expprint.c (dump_for_expression): New overload.
3254 * expop.h (check_objfile, dump_for_expression): Declare new
3255 overloads.
3256 * ada-lang.c (check_objfile): New overload.
3257 (assign_component, ada_aggregate_component::uses_objfile)
3258 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3259 (ada_aggregate_component::assign_aggregate)
3260 (ada_positional_component::uses_objfile)
3261 (ada_positional_component::dump, ada_positional_component::assign)
3262 (ada_discrete_range_association::uses_objfile)
3263 (ada_discrete_range_association::dump)
3264 (ada_discrete_range_association::assign)
3265 (ada_name_association::uses_objfile, ada_name_association::dump)
3266 (ada_name_association::assign)
3267 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3268 (ada_choices_component::assign)
3269 (ada_others_component::uses_objfile, ada_others_component::dump)
3270 (ada_others_component::assign, ada_assign_operation::evaluate):
3271 New methods.
3272 * ada-exp.h (ada_string_operation) <get_name>: New method.
3273 (class ada_assign_operation): New.
3274 (class ada_component): New.
3275 (ada_component_up): New typedef.
3276 (class ada_aggregate_operation, class ada_aggregate_component)
3277 (class ada_positional_component, class ada_others_component)
3278 (class ada_association): New.
3279 (ada_association_up): New typedef.
3280 (class ada_choices_component)
3281 (class ada_discrete_range_association)
3282 (class ada_name_association): New.
3283
d8a4ed8a
TT
32842021-03-08 Tom Tromey <tom@tromey.com>
3285
3286 * ada-lang.c (ada_var_value_operation::resolve)
3287 (ada_funcall_operation::resolve)
3288 (ada_ternop_slice_operation::resolve): New methods.
3289 * ada-exp.h (struct ada_resolvable): New.
3290 (class ada_var_value_operation): Derive from ada_resolvable.
3291 <get_block, resolve>: New methods.
3292 (class ada_funcall_operation): Derive from ada_resolvable.
3293 <resolve>: New method.
3294 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3295 <resolve>: New method.
3296
efe3af2f
TT
32972021-03-08 Tom Tromey <tom@tromey.com>
3298
3299 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3300 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3301 method.
3302 (class ada_funcall_operation): New.
3303
ebc06ad8
TT
33042021-03-08 Tom Tromey <tom@tromey.com>
3305
3306 * ada-lang.c (ada_structop_operation::evaluate): New method.
3307 * ada-exp.h (class ada_structop_operation): New.
3308
e8c33fa1
TT
33092021-03-08 Tom Tromey <tom@tromey.com>
3310
3311 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3312 * ada-exp.h (class ada_unop_ind_operation): New.
3313
065ec826
TT
33142021-03-08 Tom Tromey <tom@tromey.com>
3315
3316 * ada-lang.c (ada_binop_exp): No longer static.
3317 * ada-exp.h (ada_binop_exp_operation): New typedef.
3318
9e99f48f
TT
33192021-03-08 Tom Tromey <tom@tromey.com>
3320
3321 * ada-lang.c (ada_val_atr): No longer static.
3322 (ada_atr_val_operation::evaluate): New method.
3323 * ada-exp.h (class ada_atr_val_operation): New.
3324
7631cf6c
TT
33252021-03-08 Tom Tromey <tom@tromey.com>
3326
3327 * ada-lang.c (ada_pos_atr): No longer static.
3328 * ada-exp.h (ada_pos_operation): New typedef.
3329
7992accc
TT
33302021-03-08 Tom Tromey <tom@tromey.com>
3331
3332 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3333 parameters.
3334 (ada_evaluate_subexp): Use it.
3335
6ad3b8bf
TT
33362021-03-08 Tom Tromey <tom@tromey.com>
3337
3338 * ada-lang.c (ada_binop_minmax): No longer static.
3339 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3340 New typedefs.
3341
3f4a0053
TT
33422021-03-08 Tom Tromey <tom@tromey.com>
3343
3344 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3345 New method.
3346 * ada-exp.h (class ada_var_msym_value_operation): New.
3347
99a3b1e7
TT
33482021-03-08 Tom Tromey <tom@tromey.com>
3349
3350 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3351 (ada_var_value_operation::evaluate): New methods.
3352 * ada-exp.h (class ada_var_value_operation): New.
3353
60fa02ca
TT
33542021-03-08 Tom Tromey <tom@tromey.com>
3355
3356 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3357 * ada-exp.h (class ada_unop_atr_operation): New.
3358
82c3886e
TT
33592021-03-08 Tom Tromey <tom@tromey.com>
3360
3361 * ada-lang.c (ada_binop_in_bounds): No longer static.
3362 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3363
1b1ebfab
TT
33642021-03-08 Tom Tromey <tom@tromey.com>
3365
3366 * ada-lang.c (ada_ternop_slice): No longer static.
3367 * ada-exp.h (class ada_ternop_slice_operation): New.
3368
039e4b76
TT
33692021-03-08 Tom Tromey <tom@tromey.com>
3370
3371 * ada-exp.h (ada_bitwise_operation): New template class.
3372 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3373 (ada_bitwise_xor_operation): New typedefs.
3374
6e8fb7b7
TT
33752021-03-08 Tom Tromey <tom@tromey.com>
3376
3377 * ada-lang.c (ada_equal_binop): No longer static.
3378 * ada-exp.h (class ada_binop_equal_operation): New.
3379
d9e7db06
TT
33802021-03-08 Tom Tromey <tom@tromey.com>
3381
3382 * ada-lang.c (ada_mult_binop): No longer static.
3383 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3384 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3385
73796c73
TT
33862021-03-08 Tom Tromey <tom@tromey.com>
3387
3388 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3389 * ada-exp.h (class ada_binop_addsub_operation): New.
3390
cd9a3148
TT
33912021-03-08 Tom Tromey <tom@tromey.com>
3392
3393 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3394 (ada_resolve_variable): Declare.
3395 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3396 (ada_resolve_variable): New functions.
3397 (resolve_subexp): Update.
3398
cf12b17f
TT
33992021-03-08 Tom Tromey <tom@tromey.com>
3400
3401 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3402 method.
3403 * c-exp.h (class opencl_ternop_cond_operation): New.
3404
944fd3b8
TT
34052021-03-08 Tom Tromey <tom@tromey.com>
3406
3407 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3408 method.
3409 * c-exp.h (class opencl_logical_binop_operation): New.
3410
33b79214
TT
34112021-03-08 Tom Tromey <tom@tromey.com>
3412
3413 * opencl-lang.c (opencl_structop_operation::evaluate): New
3414 method.
3415 * c-exp.h (class opencl_structop_operation): New.
3416
2492ba36
TT
34172021-03-08 Tom Tromey <tom@tromey.com>
3418
3419 * opencl-lang.c (opencl_logical_not): No longer static. Change
3420 parameters.
3421 (evaluate_subexp_opencl): Update.
3422 * c-exp.h (opencl_notequal_operation): New typedef.
3423
a88c3c8d
TT
34242021-03-08 Tom Tromey <tom@tromey.com>
3425
3426 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3427 static. Change parameters.
3428 (eval_opencl_assign): No longer static. Add "op" parameter.
3429 (evaluate_subexp_opencl): Update.
3430 * c-exp.h (opencl_binop_operation): New template class.
3431 (opencl_assign_operation, opencl_equal_operation)
3432 (opencl_notequal_operation, opencl_less_operation)
3433 (opencl_gtr_operation, opencl_geq_operation)
3434 (opencl_leq_operation): New typedefs.
3435
e9677704
TT
34362021-03-08 Tom Tromey <tom@tromey.com>
3437
3438 * opencl-lang.c (opencl_value_cast): No longer static.
3439 * c-exp.h (opencl_cast_type_operation): New typedef.
3440
f403a4e4
TT
34412021-03-08 Tom Tromey <tom@tromey.com>
3442
3443 * f-exp.h (eval_op_f_allocated): Declare.
3444 (fortran_allocated_operation): New typedef.
3445 * f-lang.c (eval_op_f_allocated): No longer static.
3446
eb4c9271
TT
34472021-03-08 Tom Tromey <tom@tromey.com>
3448
3449 * f-lang.c (eval_op_f_associated): New functions.
3450 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3451 typedefs.
3452
58a76c72
TT
34532021-03-08 Tom Tromey <tom@tromey.com>
3454
3455 * f-lang.c (fortran_bound_1arg::evaluate)
3456 (fortran_bound_2arg::evaluate): New methods.
3457 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3458 New.
3459
2f98abe1
TT
34602021-03-08 Tom Tromey <tom@tromey.com>
3461
3462 * expop.h (class unop_addr_operation) <get_expression>: New
3463 method.
3464 * f-lang.c (fortran_undetermined::value_subarray)
3465 (fortran_undetermined::evaluate): New methods.
3466 (fortran_prepare_argument): New overload.
3467 * f-exp.h (class fortran_range_operation)
3468 (class fortran_undetermined): New classes.
3469
638fd74a
TT
34702021-03-08 Tom Tromey <tom@tromey.com>
3471
3472 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3473 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3474 method.
3475
a00b7254
TT
34762021-03-08 Tom Tromey <tom@tromey.com>
3477
3478 * expression.h (class operation) <evaluate_funcall>: New methods.
3479 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3480 (class var_value_operation) <evaluate_funcall>: New method.
3481 (class structop_base_operation) <evaluate_funcall>: New method.
3482 (class var_msym_value_operation) <evaluate_funcall>: New method.
3483 (class structop_member_base): New class.
3484 (class structop_member_operation): Derive from
3485 structop_member_base.
3486 (class structop_mptr_operation): Derive from
3487 structop_member_base.
3488 (class funcall_operation): New class.
3489 * eval.c (operation::evaluate_funcall)
3490 (var_value_operation::evaluate_funcall)
3491 (scope_operation::evaluate_funcall)
3492 (structop_member_base::evaluate_funcall)
3493 (structop_base_operation::evaluate_funcall): New methods.
3494
1c02eb30
TT
34952021-03-08 Tom Tromey <tom@tromey.com>
3496
3497 * expop.h (class array_operation): New.
3498 * eval.c (array_operation::evaluate_struct_tuple)
3499 (array_operation::evaluate): New methods.
3500
e4479080
TT
35012021-03-08 Tom Tromey <tom@tromey.com>
3502
3503 * expop.h (class adl_func_operation): New.
3504 * eval.c (adl_func_operation::evaluate): New method.
3505
95d49dfb
TT
35062021-03-08 Tom Tromey <tom@tromey.com>
3507
3508 * ada-lang.c (ada_unop_in_range): No longer static.
3509 * ada-exp.h (class ada_unop_range_operation): New.
3510
7c15d377
TT
35112021-03-08 Tom Tromey <tom@tromey.com>
3512
3513 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3514 No longer static.
3515 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3516 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3517
5019124b
TT
35182021-03-08 Tom Tromey <tom@tromey.com>
3519
3520 * expop.h (class logical_and_operation)
3521 (class logical_or_operation): New.
3522 * eval.c (logical_and_operation::evaluate)
3523 (logical_or_operation::evaluate): New methods.
3524 * ax-gdb.c (logical_and_operation::do_generate_ax)
3525 (logical_or_operation::do_generate_ax): New methods.
3526
2bc9b40c
TT
35272021-03-08 Tom Tromey <tom@tromey.com>
3528
3529 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3530 static.
3531 * m2-exp.h: New file.
3532
5947d337
TT
35332021-03-08 Tom Tromey <tom@tromey.com>
3534
3535 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3536 * rust-exp.h (class rust_aggregate_operation): New.
3537
e4407a20
TT
35382021-03-08 Tom Tromey <tom@tromey.com>
3539
3540 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3541 No longer static.
3542 * rust-exp.h (class rust_struct_anon): New.
3543 (class rust_structop): New.
3544
9db6b6dd
TT
35452021-03-08 Tom Tromey <tom@tromey.com>
3546
3547 * rust-lang.c (rust_range): No longer static.
3548 * rust-exp.h (class rust_range_operation): New.
3549
6ce1ad67
TT
35502021-03-08 Tom Tromey <tom@tromey.com>
3551
3552 * rust-lang.c (rust_subscript): No longer static.
3553 * rust-exp.h (class rust_subscript_operation): New.
3554
11dd3dce
TT
35552021-03-08 Tom Tromey <tom@tromey.com>
3556
3557 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3558 parameter.
3559 (rust_evaluate_subexp): Update.
3560 * rust-exp.h (class rust_unop_ind_operation): New.
3561
6fab4359
TT
35622021-03-08 Tom Tromey <tom@tromey.com>
3563
3564 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3565 longer static. Add "opcode" parameter.
3566 (rust_evaluate_subexp): Update.
3567 * rust-exp.h: New file.
3568
9dcd3e29
TT
35692021-03-08 Tom Tromey <tom@tromey.com>
3570
3571 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3572 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3573 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3574 (evaluate_subexp_f): Update.
3575 * f-exp.h: New file.
3576
fc715eb2
TT
35772021-03-08 Tom Tromey <tom@tromey.com>
3578
3579 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3580 * ada-exp.h (class ada_ternop_range_operation): New.
3581
cc6bd32e
TT
35822021-03-08 Tom Tromey <tom@tromey.com>
3583
3584 * ada-lang.c (ada_qual_operation::evaluate): New method.
3585 * ada-exp.h (class ada_qual_operation): New.
3586
42fecb61
TT
35872021-03-08 Tom Tromey <tom@tromey.com>
3588
3589 * ada-lang.c (ada_string_operation::evaluate): New method.
3590 * ada-exp.h (class ada_string_operation): New.
3591
03070ee9
TT
35922021-03-08 Tom Tromey <tom@tromey.com>
3593
3594 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3595 * ada-exp.h: New file.
3596
821e72d7
TT
35972021-03-08 Tom Tromey <tom@tromey.com>
3598
3599 * expop.h (class multi_subscript_operation): New.
3600 * eval.c (multi_subscript_operation::evaluate): New method.
3601
085734dd
TT
36022021-03-08 Tom Tromey <tom@tromey.com>
3603
3604 * eval.c (objc_msgcall_operation::evaluate): New method.
3605 * c-exp.h (class objc_msgcall_operation): New.
3606
e82a5afc
TT
36072021-03-08 Tom Tromey <tom@tromey.com>
3608
3609 * expop.h (class var_value_operation): New.
3610 * eval.c (var_value_operation::evaluate)
3611 (var_value_operation::evaluate_for_address)
3612 (var_value_operation::evaluate_with_coercion)
3613 (var_value_operation::evaluate_for_sizeof)
3614 (var_value_operation::evaluate_for_cast): New methods.
3615 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3616
d9ad79d8
TT
36172021-03-08 Tom Tromey <tom@tromey.com>
3618
3619 * expop.h (cxx_cast_ftype): New typedef.
3620 (cxx_cast_operation): New template.
3621 (dynamic_cast_operation, reinterpret_cast_operation): New
3622 typedefs.
3623
292382f4
TT
36242021-03-08 Tom Tromey <tom@tromey.com>
3625
3626 * expop.h (class unop_cast_type_operation): New.
3627 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3628 method.
3629
165a813a
TT
36302021-03-08 Tom Tromey <tom@tromey.com>
3631
3632 * expop.h (class unop_cast_operation): New.
3633 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3634
e5946e16
TT
36352021-03-08 Tom Tromey <tom@tromey.com>
3636
3637 * expop.h (class assign_modify_operation): New.
3638 * eval.c (eval_binop_assign_modify): No longer static.
3639 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3640
40786782
TT
36412021-03-08 Tom Tromey <tom@tromey.com>
3642
3643 * expop.h (class assign_operation): New.
3644 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3645
44b675c8
TT
36462021-03-08 Tom Tromey <tom@tromey.com>
3647
3648 * expop.h (class type_instance_operation): New.
3649 * eval.c (type_instance_operation::evaluate): New method.
3650
f6b42326
TT
36512021-03-08 Tom Tromey <tom@tromey.com>
3652
3653 * expop.h (class op_this_operation): New.
3654 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3655
cbc18219
TT
36562021-03-08 Tom Tromey <tom@tromey.com>
3657
3658 * expop.h (class unop_memval_operation)
3659 (class unop_memval_type_operation): New.
3660 * eval.c (eval_op_memval): No longer static.
3661 (unop_memval_operation::evaluate_for_address)
3662 (unop_memval_type_operation::evaluate_for_address)
3663 (unop_memval_operation::evaluate_for_sizeof)
3664 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3665 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3666 (unop_memval_type_operation::do_generate_ax): New methods.
3667
ae4bb61e
TT
36682021-03-08 Tom Tromey <tom@tromey.com>
3669
3670 * expop.h (class unop_alignof_operation): New.
3671 * eval.c (eval_op_alignof): No longer static.
3672
85d23bda
TT
36732021-03-08 Tom Tromey <tom@tromey.com>
3674
3675 * expop.h (class unop_sizeof_operation): New.
3676 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3677
14aff815
TT
36782021-03-08 Tom Tromey <tom@tromey.com>
3679
3680 * expop.h (class unop_addr_operation): New.
3681 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3682
929f3aa7
TT
36832021-03-08 Tom Tromey <tom@tromey.com>
3684
3685 * expop.h (class typeid_operation): New.
3686
0af8829e
TT
36872021-03-08 Tom Tromey <tom@tromey.com>
3688
3689 * expop.h (class decltype_operation): New.
3690
4efc574c
TT
36912021-03-08 Tom Tromey <tom@tromey.com>
3692
3693 * expop.h (class typeof_operation): New.
3694
5b5f5140
TT
36952021-03-08 Tom Tromey <tom@tromey.com>
3696
3697 * expop.h (class type_operation): New.
3698 * eval.c (eval_op_type): No longer static.
3699
876469ff
TT
37002021-03-08 Tom Tromey <tom@tromey.com>
3701
3702 * expop.h (class unop_ind_base_operation)
3703 (class unop_ind_operation): New.
3704 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3705 (unop_ind_base_operation::evaluate_for_address)
3706 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3707 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3708
6d89e296
TT
37092021-03-08 Tom Tromey <tom@tromey.com>
3710
3711 * expop.h (unop_incr_operation): New template.
3712 (preinc_operation, predec_operation, postinc_operation)
3713 (postdec_operation): New typedefs.
3714 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3715 (eval_op_postdec): No longer static.
3716
9307d17b
TT
37172021-03-08 Tom Tromey <tom@tromey.com>
3718
3719 * expop.h (unary_ftype): New typedef.
3720 (unop_operation, usual_ax_binop_operation): New templates.
3721 (unary_plus_operation, unary_neg_operation)
3722 (unary_complement_operation, unary_logical_not_operation): New
3723 typedefs.
3724 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3725 (eval_op_lognot): No longer static.
3726 * ax-gdb.c (gen_expr_unop): New function.
3727
ae64ba58
TT
37282021-03-08 Tom Tromey <tom@tromey.com>
3729
3730 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3731
d4eff4c1
TT
37322021-03-08 Tom Tromey <tom@tromey.com>
3733
3734 * expop.h (class repeat_operation): New.
3735 * eval.c (eval_op_repeat): No longer static. Remove "op"
3736 parameter.
3737 (evaluate_subexp_standard): Update.
3738 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3739
46916f2b
TT
37402021-03-08 Tom Tromey <tom@tromey.com>
3741
3742 * expop.h (class comparison_operation): New.
3743 (equal_operation, notequal_operation, less_operation)
3744 (gtr_operation, geq_operation, leq_operation): New typedefs.
3745 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3746 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3747
224d6424
TT
37482021-03-08 Tom Tromey <tom@tromey.com>
3749
3750 * expop.h (class subscript_operation): New.
3751 * eval.c (eval_op_subscript): No longer static.
3752
373907ff
TT
37532021-03-08 Tom Tromey <tom@tromey.com>
3754
3755 * expop.h (class binop_operation, class usual_ax_binop_operation):
3756 New.
3757 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3758 (div_operation, rem_operation, lsh_operation, rsh_operation)
3759 (bitwise_and_operation, bitwise_ior_operation)
3760 (bitwise_xor_operation): New typedefs.
3761 * eval.c (eval_op_binary): No longer static.
3762
5133d78b
TT
37632021-03-08 Tom Tromey <tom@tromey.com>
3764
3765 * expop.h (class sub_operation): New.
3766 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3767 (evaluate_subexp_standard): Update.
3768
a94323b6
TT
37692021-03-08 Tom Tromey <tom@tromey.com>
3770
3771 * expop.h (class add_operation): New.
3772 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3773 (evaluate_subexp_standard): Update.
3774
e51e26a0
TT
37752021-03-08 Tom Tromey <tom@tromey.com>
3776
3777 * expop.h (class concat_operation): New.
3778 * eval.c (eval_op_concat): No longer static. Remove "op"
3779 parameter.
3780 (evaluate_subexp_standard): Update.
3781
07f724a8
TT
37822021-03-08 Tom Tromey <tom@tromey.com>
3783
3784 * expop.h (class structop_member_operation)
3785 (class structop_mptr_operation): New.
3786 * eval.c (eval_op_member): No longer static.
3787
ab0609be
TT
37882021-03-08 Tom Tromey <tom@tromey.com>
3789
3790 * expop.h (class structop_ptr_operation): New.
3791 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3792 parameter.
3793
808b22cf
TT
37942021-03-08 Tom Tromey <tom@tromey.com>
3795
3796 * expop.h (class structop_base_operation)
3797 (class structop_operation): New.
3798 * eval.c (eval_op_structop_struct): No longer static.
3799
8cfd3e95
TT
38002021-03-08 Tom Tromey <tom@tromey.com>
3801
3802 * expop.h (class complex_operation): New.
3803
09db3700
TT
38042021-03-08 Tom Tromey <tom@tromey.com>
3805
3806 * eval.c (eval_op_objc_selector): No longer static.
3807 * c-exp.h (class objc_selector_operation): New.
3808
06dc61b9
TT
38092021-03-08 Tom Tromey <tom@tromey.com>
3810
3811 * eval.c: Include c-exp.h.
3812 * c-exp.h (class objc_nsstring_operation): New.
3813
72d0a711
TT
38142021-03-08 Tom Tromey <tom@tromey.com>
3815
3816 * c-lang.c (c_string_operation::evaluate): New method.
3817 * c-exp.h: New file.
3818
9186293f
TT
38192021-03-08 Tom Tromey <tom@tromey.com>
3820
3821 * expop.h (class ternop_cond_operation): New.
3822 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3823
1594e0bb
TT
38242021-03-08 Tom Tromey <tom@tromey.com>
3825
3826 * expop.h (class ternop_slice_operation): New.
3827 * eval.c (eval_op_ternop): No longer static.
3828
b50db09f
TT
38292021-03-08 Tom Tromey <tom@tromey.com>
3830
3831 * expop.h (class string_operation): New.
3832 * eval.c (eval_op_string): No longer static.
3833
e6e01e16
TT
38342021-03-08 Tom Tromey <tom@tromey.com>
3835
3836 * expop.h (class internalvar_operation): New.
3837 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3838
e6985c5e
TT
38392021-03-08 Tom Tromey <tom@tromey.com>
3840
3841 * expop.h (class bool_operation): New.
3842
55bdbff8
TT
38432021-03-08 Tom Tromey <tom@tromey.com>
3844
3845 * expop.h (class register_operation): New.
3846 * eval.c (eval_op_register): No longer static.
3847 * ax-gdb.c (register_operation::do_generate_ax): New method.
3848
247d935b
TT
38492021-03-08 Tom Tromey <tom@tromey.com>
3850
3851 * expop.h (class last_operation): New.
3852
17679395
TT
38532021-03-08 Tom Tromey <tom@tromey.com>
3854
3855 * expop.h (class func_static_var_operation): New.
3856 * eval.c (eval_op_func_static_var): No longer static.
3857
b5cc3923
TT
38582021-03-08 Tom Tromey <tom@tromey.com>
3859
3860 * expop.h (class var_entry_value_operation): New.
3861 * eval.c (eval_op_var_entry_value): No longer static.
3862
0c8effa3
TT
38632021-03-08 Tom Tromey <tom@tromey.com>
3864
3865 * expression.h (class operation) <set_outermost>: New method.
3866 * expop.h (class var_msym_value_operation): New.
3867 * eval.c (eval_op_var_msym_value): No longer static.
3868 (var_msym_value_operation::evaluate_for_address)
3869 (var_msym_value_operation::evaluate_for_sizeof)
3870 (var_msym_value_operation::evaluate_for_cast): New methods.
3871 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3872 method.
3873
d336c29e
TT
38742021-03-08 Tom Tromey <tom@tromey.com>
3875
3876 * expop.h (class long_const_operation): New.
3877 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3878
d5ab122c
TT
38792021-03-08 Tom Tromey <tom@tromey.com>
3880
3881 * expop.h (class scope_operation): New.
3882 * eval.c (eval_op_scope): No longer static.
3883 (scope_operation::evaluate_for_address): New method.
3884 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3885
cae26a0c
TT
38862021-03-08 Tom Tromey <tom@tromey.com>
3887
3888 * expprint.c (float_const_operation::dump): New method.
3889 * expop.h (float_data): New typedef.
3890 (class float_const_operation): New.
3891
75f9892d
TT
38922021-03-08 Tom Tromey <tom@tromey.com>
3893
3894 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3895 * ax-gdb.c (gen_expr_binop): New function.
3896 (gen_expr_structop): Likewise.
3897
de401988
TT
38982021-03-08 Tom Tromey <tom@tromey.com>
3899
3900 * expprint.c (expr::dump_for_expression): New functions.
3901 * expop.h (dump_for_expression): New overloads.
3902 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3903 Update.
3904
e2803273
TT
39052021-03-08 Tom Tromey <tom@tromey.com>
3906
3907 * expression.h (expr::operation): New class.
3908 (expr::make_operation): New function.
3909 (expr::operation_up): New typedef.
3910 * expop.h: New file.
3911 * eval.c (operation::evaluate_for_cast)
3912 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3913 New methods.
3914 * ax-gdb.c (operation::generate_ax): New method.
3915
e18c58f2
TT
39162021-03-08 Tom Tromey <tom@tromey.com>
3917
3918 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3919 (gen_expr_binop_rest): New overload.
3920
c0d7ed8c
TT
39212021-03-08 Tom Tromey <tom@tromey.com>
3922
3923 * eval.c (eval_multi_subscript): New function.
3924 (evaluate_subexp_standard): Use it.
3925
dd5fd283
TT
39262021-03-08 Tom Tromey <tom@tromey.com>
3927
3928 * ada-lang.c (ada_binop_exp): New function.
3929 (ada_evaluate_subexp): Use it.
3930
3848abd6
TT
39312021-03-08 Tom Tromey <tom@tromey.com>
3932
3933 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3934 parameters.
3935 (ada_evaluate_subexp): Use it.
3936
38dc70cf
TT
39372021-03-08 Tom Tromey <tom@tromey.com>
3938
3939 * ada-lang.c (ada_binop_minmax): New function.
3940 (ada_evaluate_subexp): Use it.
3941
b84564fc
TT
39422021-03-08 Tom Tromey <tom@tromey.com>
3943
3944 * ada-lang.c (ada_unop_atr): New function.
3945 (ada_evaluate_subexp): Use it.
3946
b467efaa
TT
39472021-03-08 Tom Tromey <tom@tromey.com>
3948
3949 * ada-lang.c (ada_binop_in_bounds): New function.
3950 (ada_evaluate_subexp): Use it.
3951
5ce19db8
TT
39522021-03-08 Tom Tromey <tom@tromey.com>
3953
3954 * ada-lang.c (ada_ternop_slice): New function.
3955 (ada_evaluate_subexp): Use it.
3956
214b13ac
TT
39572021-03-08 Tom Tromey <tom@tromey.com>
3958
3959 * ada-lang.c (ada_equal_binop): New function.
3960 (ada_evaluate_subexp): Use it.
3961
faa1dfd7
TT
39622021-03-08 Tom Tromey <tom@tromey.com>
3963
3964 * ada-lang.c (ada_mult_binop): New function.
3965 (ada_evaluate_subexp): Use it.
3966
d05e24e6
TT
39672021-03-08 Tom Tromey <tom@tromey.com>
3968
3969 * ada-lang.c (ada_abs): New function.
3970 (ada_evaluate_subexp): Use it.
3971
68c75735
TT
39722021-03-08 Tom Tromey <tom@tromey.com>
3973
3974 * ada-lang.c (ada_atr_size): New function.
3975 (ada_evaluate_subexp): Use it.
3976
020dbabe
TT
39772021-03-08 Tom Tromey <tom@tromey.com>
3978
3979 * ada-lang.c (ada_atr_tag): New function.
3980 (ada_evaluate_subexp): Use it.
3981
7efc87ff
TT
39822021-03-08 Tom Tromey <tom@tromey.com>
3983
3984 * ada-lang.c (ada_unop_in_range): New function.
3985 (ada_evaluate_subexp): Use it.
3986
82390ab8
TT
39872021-03-08 Tom Tromey <tom@tromey.com>
3988
3989 * ada-lang.c (ada_unop_neg): New function.
3990 (ada_evaluate_subexp): Use it.
3991
62d4bd94
TT
39922021-03-08 Tom Tromey <tom@tromey.com>
3993
3994 * ada-lang.c (eval_ternop_in_range): New function.
3995 (ada_evaluate_subexp): Use it.
3996
3634f669
TT
39972021-03-08 Tom Tromey <tom@tromey.com>
3998
3999 * opencl-lang.c (eval_opencl_assign): New function.
4000 (evaluate_subexp_opencl): Use it.
4001
5e80600e
TT
40022021-03-08 Tom Tromey <tom@tromey.com>
4003
4004 * eval.c (eval_op_objc_msgcall): New function.
4005 (evaluate_subexp_standard): Use it.
4006
fb5ba2ab
TT
40072021-03-08 Tom Tromey <tom@tromey.com>
4008
4009 * eval.c (eval_binop_assign_modify): New function.
4010 (evaluate_subexp_standard): Use it.
4011
a49881f7
TT
40122021-03-08 Tom Tromey <tom@tromey.com>
4013
4014 * m2-lang.c (eval_op_m2_subscript): New function.
4015 (evaluate_subexp_modula2): Use it.
4016
41bdced5
TT
40172021-03-08 Tom Tromey <tom@tromey.com>
4018
4019 * m2-lang.c (eval_op_m2_high): New function.
4020 (evaluate_subexp_modula2): Use it.
4021
13ea014a
TT
40222021-03-08 Tom Tromey <tom@tromey.com>
4023
4024 * eval.c (evaluate_subexp_for_address_base): New function.
4025 (evaluate_subexp_for_address): Use it.
4026 (evaluate_subexp_for_sizeof_base): New function.
4027 (evaluate_subexp_for_sizeof): Use it.
4028
1fa41fc7
TT
40292021-03-08 Tom Tromey <tom@tromey.com>
4030
4031 * rust-lang.c (eval_op_rust_structop): New function.
4032 (rust_evaluate_subexp): Use it.
4033
575cae23
TT
40342021-03-08 Tom Tromey <tom@tromey.com>
4035
4036 * rust-lang.c (eval_op_rust_struct_anon): New function.
4037 (rust_evaluate_subexp): Use it.
4038
05104233
TT
40392021-03-08 Tom Tromey <tom@tromey.com>
4040
4041 * rust-lang.c (eval_op_rust_array): New function.
4042 (rust_evaluate_subexp): Use it.
4043
6fa9831f
TT
40442021-03-08 Tom Tromey <tom@tromey.com>
4045
4046 * rust-lang.c (eval_op_rust_complement): New function.
4047 (rust_evaluate_subexp): Use it.
4048
d123f9e4
TT
40492021-03-08 Tom Tromey <tom@tromey.com>
4050
4051 * rust-lang.c (eval_op_rust_ind): New function.
4052 (rust_evaluate_subexp): Use it.
4053
984af2cb
TT
40542021-03-08 Tom Tromey <tom@tromey.com>
4055
4056 * rust-lang.c (rust_subscript): Change parameters.
4057 (rust_evaluate_subexp): Update.
4058
d148f803
TT
40592021-03-08 Tom Tromey <tom@tromey.com>
4060
4061 * rust-lang.c (rust_range): Change parameters.
4062 (rust_evaluate_subexp): Update.
4063
9cbd1c20
TT
40642021-03-08 Tom Tromey <tom@tromey.com>
4065
4066 * f-lang.c (eval_op_f_allocated): New function.
4067 (evaluate_subexp_f): Use it.
4068
3c18c49c
TT
40692021-03-08 Tom Tromey <tom@tromey.com>
4070
4071 * f-lang.c (fortran_require_array): New function.
4072 (evaluate_subexp_f): Use it.
4073
216f6fcb
TT
40742021-03-08 Tom Tromey <tom@tromey.com>
4075
4076 * f-lang.c (eval_op_f_kind): New function.
4077 (evaluate_subexp_f): Use it.
4078
00f2db6f
TT
40792021-03-08 Tom Tromey <tom@tromey.com>
4080
4081 * f-lang.c (eval_op_f_cmplx): New function.
4082 (evaluate_subexp_f): Use it.
4083
93b2b5fa
TT
40842021-03-08 Tom Tromey <tom@tromey.com>
4085
4086 * f-lang.c (eval_op_f_modulo): New function.
4087 (evaluate_subexp_f): Use it.
4088
9f1a1f3c
TT
40892021-03-08 Tom Tromey <tom@tromey.com>
4090
4091 * f-lang.c (eval_op_f_floor): New function.
4092 (evaluate_subexp_f): Use it.
4093
3dc41f3c
TT
40942021-03-08 Tom Tromey <tom@tromey.com>
4095
4096 * f-lang.c (eval_op_f_ceil): New function.
4097 (evaluate_subexp_f): Use it.
4098
e08109f2
TT
40992021-03-08 Tom Tromey <tom@tromey.com>
4100
4101 * f-lang.c (eval_op_f_mod): New function.
4102 (evaluate_subexp_f): Use it.
4103
cc05c68e
TT
41042021-03-08 Tom Tromey <tom@tromey.com>
4105
4106 * f-lang.c (eval_op_f_abs): New function.
4107 (evaluate_subexp_f): Use it.
4108
aec95807
TT
41092021-03-08 Tom Tromey <tom@tromey.com>
4110
4111 * eval.c (eval_op_type): New function.
4112 (evaluate_subexp_standard): Use it.
4113
a220ead5
TT
41142021-03-08 Tom Tromey <tom@tromey.com>
4115
4116 * eval.c (eval_op_postdec): New function.
4117 (evaluate_subexp_standard): Use it.
4118
abffe116
TT
41192021-03-08 Tom Tromey <tom@tromey.com>
4120
4121 * eval.c (eval_op_postinc): New function.
4122 (evaluate_subexp_standard): Use it.
4123
9e1361b7
TT
41242021-03-08 Tom Tromey <tom@tromey.com>
4125
4126 * eval.c (eval_op_predec): New file.
4127 (evaluate_subexp_standard): Use it.
4128
00f50884
TT
41292021-03-08 Tom Tromey <tom@tromey.com>
4130
4131 * eval.c (eval_op_preinc): New function.
4132 (evaluate_subexp_standard): Use it.
4133
3aef2a07
TT
41342021-03-08 Tom Tromey <tom@tromey.com>
4135
4136 * eval.c (eval_op_memval): New function.
4137 (evaluate_subexp_standard): Use it.
4138
acee9468
TT
41392021-03-08 Tom Tromey <tom@tromey.com>
4140
4141 * eval.c (eval_op_alignof): New function.
4142 (evaluate_subexp_standard): Use it.
4143
786f70ee
TT
41442021-03-08 Tom Tromey <tom@tromey.com>
4145
4146 * eval.c (eval_op_ind): New function.
4147 (evaluate_subexp_standard): Use it.
4148
24338fb9
TT
41492021-03-08 Tom Tromey <tom@tromey.com>
4150
4151 * eval.c (eval_op_lognot): New function.
4152 (evaluate_subexp_standard): Use it.
4153
1f09ec81
TT
41542021-03-08 Tom Tromey <tom@tromey.com>
4155
4156 * eval.c (eval_op_complement): New function.
4157 (evaluate_subexp_standard): Use it.
4158
606d105f
TT
41592021-03-08 Tom Tromey <tom@tromey.com>
4160
4161 * eval.c (eval_op_neg): New function.
4162 (evaluate_subexp_standard): Use it.
4163
39f288be
TT
41642021-03-08 Tom Tromey <tom@tromey.com>
4165
4166 * eval.c (eval_op_plus): New function.
4167 (evaluate_subexp_standard): Use it.
4168
eed70b1c
TT
41692021-03-08 Tom Tromey <tom@tromey.com>
4170
4171 * eval.c (eval_op_repeat): New function.
4172 (evaluate_subexp_standard): Use it.
4173
60cdd487
TT
41742021-03-08 Tom Tromey <tom@tromey.com>
4175
4176 * eval.c (eval_op_leq): New function.
4177 (evaluate_subexp_standard): Use it.
4178
96e3efd9
TT
41792021-03-08 Tom Tromey <tom@tromey.com>
4180
4181 * eval.c (eval_op_geq): New function.
4182 (evaluate_subexp_standard): Use it.
4183
1f78d732
TT
41842021-03-08 Tom Tromey <tom@tromey.com>
4185
4186 * eval.c (eval_op_gtr): New function.
4187 (evaluate_subexp_standard): Use it.
4188
6cad1349
TT
41892021-03-08 Tom Tromey <tom@tromey.com>
4190
4191 * eval.c (eval_op_less): New function.
4192 (evaluate_subexp_standard): Use it.
4193
1fcb3559
TT
41942021-03-08 Tom Tromey <tom@tromey.com>
4195
4196 * eval.c (eval_op_notequal): New function.
4197 (evaluate_subexp_standard): Use it.
4198
0cc96de8
TT
41992021-03-08 Tom Tromey <tom@tromey.com>
4200
4201 * eval.c (eval_op_equal): New function.
4202 (evaluate_subexp_standard): Use it.
4203
288d26bc
TT
42042021-03-08 Tom Tromey <tom@tromey.com>
4205
4206 * eval.c (eval_op_subscript): New function.
4207 (evaluate_subexp_standard): Use it.
4208
7cdcdd02
TT
42092021-03-08 Tom Tromey <tom@tromey.com>
4210
4211 * eval.c (eval_op_binary): New function.
4212 (evaluate_subexp_standard): Use it.
4213
d9790e22
TT
42142021-03-08 Tom Tromey <tom@tromey.com>
4215
4216 * eval.c (eval_op_sub): New function.
4217 (evaluate_subexp_standard): Use it.
4218
aedaf9ac
TT
42192021-03-08 Tom Tromey <tom@tromey.com>
4220
4221 * eval.c (eval_op_add): New function.
4222 (evaluate_subexp_standard): Use it.
4223
b7a96ed2
TT
42242021-03-08 Tom Tromey <tom@tromey.com>
4225
4226 * eval.c (eval_op_member): New function.
4227 (evaluate_subexp_standard): Use it.
4228
fb461aa3
TT
42292021-03-08 Tom Tromey <tom@tromey.com>
4230
4231 * eval.c (eval_op_structop_ptr): New function.
4232 (evaluate_subexp_standard): Use it.
4233
3e96c4fc
TT
42342021-03-08 Tom Tromey <tom@tromey.com>
4235
4236 * eval.c (eval_op_structop_struct): New function.
4237 (evaluate_subexp_standard): Use it.
4238
f960a617
TT
42392021-03-08 Tom Tromey <tom@tromey.com>
4240
4241 * eval.c (eval_op_ternop): New function.
4242 (evaluate_subexp_standard): Use it.
4243
5c2f201e
TT
42442021-03-08 Tom Tromey <tom@tromey.com>
4245
4246 * eval.c (eval_op_concat): New function.
4247 (evaluate_subexp_standard): Use it.
4248
f871bae1
TT
42492021-03-08 Tom Tromey <tom@tromey.com>
4250
4251 * eval.c (eval_op_objc_selector): New function.
4252 (evaluate_subexp_standard): Use it.
4253
14a1c64a
TT
42542021-03-08 Tom Tromey <tom@tromey.com>
4255
4256 * eval.c (eval_op_string): New function.
4257 (evaluate_subexp_standard): Use it.
4258
ffff730b
TT
42592021-03-08 Tom Tromey <tom@tromey.com>
4260
4261 * eval.c (eval_op_register): New function.
4262 (evaluate_subexp_standard): Use it.
4263
9b1d8af6
TT
42642021-03-08 Tom Tromey <tom@tromey.com>
4265
4266 * eval.c (eval_op_func_static_var): New function.
4267 (evaluate_subexp_standard): Use it.
4268
c0df9289
TT
42692021-03-08 Tom Tromey <tom@tromey.com>
4270
4271 * eval.c (eval_op_var_msym_value): New function.
4272 (evaluate_subexp_standard): Use it.
4273
50b98adc
TT
42742021-03-08 Tom Tromey <tom@tromey.com>
4275
4276 * eval.c (eval_op_var_entry_value): New function.
4277 (evaluate_subexp_standard): Use it.
4278
ea2d29f7
TT
42792021-03-08 Tom Tromey <tom@tromey.com>
4280
4281 * eval.c (eval_op_scope): New function.
4282 (evaluate_subexp_standard): Use it.
4283
01573d73
TT
42842021-03-06 Chernov Sergey <klen_s@mail.ru>
4285
4286 PR gdb/27528:
4287 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4288
9938d15a
TT
42892021-03-06 Tom Tromey <tom@tromey.com>
4290
4291 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4292 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4293 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4294 (locate_dwz_sections, dwz_search_other_debugdirs)
4295 (dwarf2_get_dwz_file): Move to dwz.c.
4296 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4297 read.h.
4298 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4299 (dwarf2_get_dwz_file): Move from read.c.
4300
18035655
TT
43012021-03-06 Tom Tromey <tom@tromey.com>
4302
4303 * debuginfod-support.h: Include scoped_fd.h.
4304
a7308ce0
TT
43052021-03-06 Tom Tromey <tom@tromey.com>
4306
4307 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4308 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4309 (get_abbrev_section_for_cu, read_attribute_value)
4310 (get_debug_line_section): Update.
4311 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4312
fbedd546
TT
43132021-03-06 Tom Tromey <tom@tromey.com>
4314
4315 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4316 method.
4317 * dwarf2/read.c (section_is_p): Remove.
4318 (dwarf2_per_bfd::locate_sections)
4319 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4320 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4321 (dwarf2_locate_common_dwp_sections)
4322 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4323 Update.
4324
c2a62a3d
TT
43252021-03-06 Tom Tromey <tom@tromey.com>
4326
4327 * xcoffread.c: Include sect-names.h.
4328 * symfile.h (struct dwarf2_section_names, struct
4329 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4330 * dwarf2/sect-names.h: New file, from symfile.h.
4331 * dwarf2/read.c: Include sect-names.h.
4332
4444f407
TT
43332021-03-06 Tom Tromey <tom@tromey.com>
4334
4335 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4336 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4337 (abbrev_table::read): Update.
4338 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4339 (struct abbrev_info): Reformat.
4340 <attrs>: Now an array.
4341 (struct abbrev_table) <alloc_abbrev>: Remove.
4342
dd99cf0c
WP
43432021-03-06 Weimin Pan <weimin.pan@oracle.com>
4344
4345 * ctfread.c (ctf_psymtab_add_enums): New function.
4346 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4347
844be3f2
WP
43482021-03-06 Weimin Pan <weimin.pan@oracle.com>
4349
4350 * ctfread.c (read_func_kind_type): Set up function arguments.
4351
b2668f28
AB
43522021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4353 Andrew Burgess <andrew.burgess@embecosm.com>
4354
4355 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4356 includes.
4357 (riscv_csrset): New static global.
4358 (riscv_update_csrmap): New function.
4359 (riscv_iterate_over_regset_sections): Process CSRs.
4360
d782d24b
AB
43612021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4362
4363 * riscv-tdep.c (riscv_feature_name_csr): Define.
4364 (riscv_feature_name_cpu): Define.
4365 (riscv_feature_name_fpu): Define.
4366 (riscv_feature_name_virtual): Define.
4367 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4368 (riscv_freg_feature): Use riscv_feature_name_fpu.
4369 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4370 (riscv_csr_feature): Use riscv_feature_name_csr.
4371 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4372
fb8f3fc0
AB
43732021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4374 Craig Blackmore <craig.blackmore@embecosm.com>
4375
4376 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4377 (ALLDEPFILES): Add riscv-none-tdep.c.
4378 * configure: Regenerate.
4379 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4380 support.
4381 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4382 * elf-none-tdep.c: New file.
4383 * elf-none-tdep.h: New file.
4384 * riscv-none-tdep.c: New file.
4385
95ce627a
AB
43862021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4387 Andrew Burgess <andrew.burgess@embecosm.com>
4388
4389 * corelow.c: Add 'xml-tdesc.h' include.
4390 (core_target::read_description): Load the target description from
4391 the core file when possible.
4392 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4393 note.
4394 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4395 (gcore_elf_make_tdesc_note): New function.
4396 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4397 * linux-tdep.c (linux_make_corefile_notes): Add target description
4398 note.
4399
f3a5df7b
AB
44002021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4401
4402 * Makefile.in (SFILES): Add gcore-elf.c.
4403 (HFILES_NO_SRCDIR): Add gcore-elf.h
4404 * configure: Regenerate.
4405 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4406 support.
4407 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4408 (struct fbsd_collect_regset_section_cb_data): Delete.
4409 (fbsd_collect_regset_section_cb): Delete.
4410 (fbsd_collect_thread_registers): Delete.
4411 (struct fbsd_corefile_thread_data): Delete.
4412 (fbsd_corefile_thread): Delete.
4413 (fbsd_make_corefile_notes): Call
4414 gcore_elf_build_thread_register_notes instead of the now deleted
4415 FreeBSD code.
4416 * gcore-elf.c: New file, the content was moved here from
4417 linux-tdep.c, functions were renamed and given minor cleanup.
4418 * gcore-elf.h: New file.
4419 * gcore.c (gcore_find_signalled_thread): Moved here from
4420 linux-tdep.c and given a new name. Minor cleanups.
4421 * gcore.h (gcore_find_signalled_thread): Declare.
4422 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4423 (struct linux_collect_regset_section_cb_data): Delete.
4424 (linux_collect_regset_section_cb): Delete.
4425 (linux_collect_thread_registers): Delete.
4426 (linux_corefile_thread): Call
4427 gcore_elf_build_thread_register_notes.
4428 (find_signalled_thread): Delete.
4429 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4430
d1e93af6
SM
44312021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4432
4433 PR gdb/27147
4434 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4435 process_stratum_target parameter,
4436 sparc_store_inferior_registers): update callers.
4437 * sparc-nat.c (sparc_fetch_inferior_registers,
4438 sparc_store_inferior_registers): Add process_stratum_target
4439 parameter. Switch current thread before calling
4440 sparc_supply_gregset / sparc_collect_rwindow.
4441 (sparc_store_inferior_registers): Likewise.
4442 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4443 (sparc32obsd_collect_uthread): Likewise.
4444 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4445 Add assertion.
4446 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4447 sparc64obsd_supply_uthread): Add assertion.
4448
1178743e
TT
44492021-03-04 Tom Tromey <tromey@adacore.com>
4450
4451 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4452 (aux_add_nonlocal_symbols): Update.
4453 (ada_add_block_symbols): Change "found_sym" to bool.
4454
1bfa81ac
TT
44552021-03-03 Tom Tromey <tromey@adacore.com>
4456
4457 * ada-lang.c (ada_resolve_function): Update comment.
4458 (is_nonfunction, add_symbols_from_enclosing_procs)
4459 (remove_extra_symbols): Likewise.
4460 (struct match_data): Add constructor, initializers.
4461 (add_nonlocal_symbols): Remove memset.
4462 (aux_add_nonlocal_symbols): Update comment.
4463 (ada_add_block_renamings, add_nonlocal_symbols)
4464 (ada_add_all_symbols): Likewise.
4465 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4466
bbcdf9ab
TT
44672021-03-02 Tom Tromey <tromey@adacore.com>
4468
4469 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4470 (cast_to_gnat_encoded_fixed_point_type): Remove.
4471 (ada_value_cast, ada_evaluate_subexp): Update.
4472 (gnat_encoded_fixed_point_type_info)
4473 (ada_is_gnat_encoded_fixed_point_type)
4474 (gnat_encoded_fixed_point_delta)
4475 (gnat_encoded_fixed_point_scaling_factor): Remove.
4476 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4477 (gnat_encoded_fixed_point_delta)
4478 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4479 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4480 (ada_print_type): Update.
4481 * ada-valprint.c (ada_value_print_num): Update.
4482 * dwarf2/read.c (ada_get_gnat_encoded_number)
4483 (ada_get_gnat_encoded_ratio): New functions.
4484 (finish_fixed_point_type): Use them. Add parameters.
4485 (GNAT_FIXED_POINT_SUFFIX): New define.
4486 (gnat_encoded_fixed_point_type_info): New function.
4487 (read_base_type): Handle gnat encodings.
4488
5f9febe0
TT
44892021-03-02 Tom Tromey <tromey@adacore.com>
4490
4491 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4492 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4493 std::string.
4494 (GROW_VECT): Remove.
4495 (grow_vect): Remove.
4496
d1183b06
TT
44972021-03-02 Tom Tromey <tromey@adacore.com>
4498
4499 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4500 * ada-lang.c (resolve_subexp): Update.
4501 (ada_resolve_function): Accept a vector.
4502 (is_nonfunction, add_defn_to_vec)
4503 (add_symbols_from_enclosing_procs): Likewise.
4504 (num_defns_collected, defns_collected): Remove.
4505 (remove_extra_symbols): Return a vector.
4506 (remove_irrelevant_renamings): Return void.
4507 (ada_add_local_symbols): Accept a vector.
4508 (struct match_data) <obstackp>: Remove.
4509 <resultp>: New member.
4510 (aux_add_nonlocal_symbols): Update.
4511 (ada_add_block_renamings, add_nonlocal_symbols)
4512 (ada_add_all_symbols): Accept a vector.
4513 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4514 vector.
4515 (ada_lookup_symbol): Update.
4516 (ada_add_block_symbols): Accept a vector.
4517 (get_var_value, iterate_over_symbols): Update.
4518 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4519 Update.
4520
886d459f
TT
45212021-03-02 Tom Tromey <tromey@adacore.com>
4522
4523 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4524
bdcccc56
TT
45252021-03-02 Tom Tromey <tromey@adacore.com>
4526
4527 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4528 auto_obstack.
4529 <root>: Initialize.
4530 (ada_pspace_data): Remove destructor.
4531 <sym_cache>: Now a unique_ptr.
4532 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4533 (ada_get_symbol_cache): Use 'new'.
4534 (ada_clear_symbol_cache): Rewrite.
4535
1228719f
TT
45362021-03-02 Tom Tromey <tromey@adacore.com>
4537
4538 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4539 is null.
4540
bb3a4efe
LS
45412021-02-27 Lancelot Six <lsix@lancelotsix.com>
4542
4543 PR gdb/27393
4544 * source.c (add_path): Skip empty dirnames.
4545
26b43ca6 45462021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4547
4548 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4549 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4550
dffdd8b5
SM
45512021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4552
4553 PR gdb/26861
4554 * target.c (target_mourn_inferior): Only compare pids in
4555 target_mourn_inferior.
4556
64d38fdd
JM
45572021-02-25 Jan Matyas <jmatyas@codasip.com>
4558
4559 PR gdb/26819
4560 * remote.c (remote_target::start_remote): Ensure the single
4561 thread, automatically added for remote targets without the
4562 concept of threading, is initially in set to the "resumed"
4563 state.
4564 * remote.c (remote_target::add_current_inferior_and_thread):
4565 Add return value - return the main thread.
4566
2450ad54
JV
45672021-02-25 Jan Vrany <jan.vrany@labware.com>
4568
4569 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4570 (mi_tsv_created): Likewise.
4571 (mi_tsv_deleted): Likewise.
4572
30c80d88
TV
45732021-02-25 Tom de Vries <tdevries@suse.de>
4574
4575 PR symtab/27354
4576 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4577 section_kind for &dwo_file->sections.info.
4578
68337b8b
AB
45792021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4580
4581 PR fortran/26155
4582 * f-lang.c (fortran_argument_convert): Delete declaration.
4583 (fortran_prepare_argument): New function.
4584 (evaluate_subexp_f): Move logic to new function
4585 fortran_prepare_argument.
4586
faeb9f13
AB
45872021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4588
4589 * f-exp.y (f77_keywords): Add 'associated'.
4590 * f-lang.c (fortran_associated): New function.
4591 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4592 (operator_length_f): Likewise.
4593 (print_unop_or_binop_subexp_f): New function.
4594 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4595 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4596 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4597 (operator_check_f): Likewise.
4598 * std-operator.def: Add FORTRAN_ASSOCIATED.
4599
170f4b23
AB
46002021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4601
4602 * f-exp.y (fortran_operators): Add ".xor.".
4603
aa659cfa
TV
46042021-02-24 Tom de Vries <tdevries@suse.de>
4605
4606 PR symtab/27336
4607 * dwarf2/attribute.c (attribute::form_is_signed): New function
4608 factored out of ...
4609 * dwarf2/attribute.h (attribute::as_signed): ... here.
4610 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4611 (attribute::form_is_signed): Declare.
4612 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4613 for DW_AT_decl_file.
4614
268c77c1
KB
46152021-02-24 Kevin Buettner <kevinb@redhat.com>
4616
4617 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4618 order for <sys/ptrace.h> and <asm/ptrace.h>.
4619
665af52e
KB
46202021-02-24 Kevin Buettner <kevinb@redhat.com>
4621
4622 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4623 <sys/ptrace.h>.
4624
dd80d750
AB
46252021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4626
4627 * exec.c (set_section_command): Move variable declarations into
4628 the function body, and use std::string instead of a fixed size
4629 buffer.
4630
336aa7b7
AB
46312021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4632
4633 * exec.c (exec_target::get_section_table): Delete member function.
4634 (section_table_read_available_memory): Use current_top_target, not
4635 just the exec_ops target.
4636 * target-delegates.c: Regenerate.
4637 * target.c (default_get_section_table): New function.
4638 * target.h (target_ops::get_section_table): Change default
4639 behaviour to call default_get_section_table.
4640 (default_get_section_table): Declare.
4641
02f7d26b
AB
46422021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4643
4644 * exec.c (exec_target::close): Call new clear_target_sections
4645 function.
4646 (program_space::add_target_sections): Update name of member
4647 variable.
4648 (program_space::add_target_sections): Update name of member
4649 variable.
4650 (program_space::remove_target_sections): Likewise.
4651 (exec_one_fork): Use new target_sections member function.
4652 (exec_target::get_section_table): Likewise.
4653 (exec_target::files_info): Likewise.
4654 (set_section_command): Likewise.
4655 (exec_set_section_address): Likewise.
4656 (exec_target::has_memory): Use new target_sections member
4657 function.
4658 * progspace.h (program_space::clear_target_sections): New member
4659 function.
4660 (program_space::target_sections): Rename member variable to
4661 m_target_sections, replace with a new member function.
4662 (program_space::m_target_sections): New member variable.
4663 * solib-dsbt.c (scan_dyntag): Use new member function.
4664 * solib-svr4.c (scan_dyntag): Likewise.
4665
19cf757a
AB
46662021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4667
4668 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4669 return type const.
4670 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4671 (section_table_read_available_memory): Make local const.
4672 (exec_target::xfer_partial): Make local const.
4673 (print_section_info): Make parameter const.
4674 * gdb/exec.h (print_section_info): Likewise.
4675 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4676 const.
4677 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4678 Likewise.
4679 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4680 Likewise.
4681 * gdb/s390-tdep.c (s390_load): Likewise.
4682 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4683 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4684 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4685 Rename to...
4686 (target_debug_print_const_target_section_table_p): ...this.
4687 * gdb/target-delegates.c: Regenerate.
4688 * gdb/target.c (target_get_section_table): Make return type const.
4689 (target_section_by_addr): Likewise. Also make some locals const.
4690 (memory_xfer_partial_1): Make some locals const.
4691 * gdb/target.h (struct target_ops) <get_section_table>: Make
4692 return type const.
4693 (target_section_by_addr): Likewise.
4694 (target_get_section_table): Likewise.
4695
02a79309
AB
46962021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4697
4698 * NEWS: Mention new 'maint info target-sections' command.
4699 * maint.c (maintenance_info_target_sections): New function.
4700 (_initialize_maint_cmds): Register new command.
4701
895b7b4e
AB
47022021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4705 (riscv_features_from_bfd): ...this. Change parameter type to
4706 'bfd*', and update as required.
4707 (riscv_find_default_target_description): Update call to
4708 riscv_features_from_bfd. Select a default xlen based on
4709 info.bfd_arch_info.
4710 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4711
bc3c0632
AB
47122021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4713
4714 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4715 dynamic types in UNOP_IND.
4716
08ac5771
SM
47172021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4718
4719 PR gdb/26828
4720 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4721 Instantiate queue.
4722 (~dwarf2_queue_guard): Clear queue.
4723 (queue_comp_unit): Assert that queue is
4724 instantiated.
4725 (process_queue): Adjust.
4726 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4727
616c069a
SM
47282021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4729
4730 PR gdb/26828
4731 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4732 to decide whether or not to enqueue it for expansion.
4733 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4734 after calling maybe_queue_comp_unit.
4735
897608ed
SM
47362021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4737
4738 * linux-nat.c (linux_nat_filter_event): Return void.
4739
15908a11
TT
47402021-02-22 Tom Tromey <tromey@adacore.com>
4741
4742 * solib-svr4.c (enable_break): Update.
4743 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4744 type.
4745 (target_bfd_reopen): Change parameter type.
4746 * bfd-target.h (target_bfd_reopen): Change parameter type.
4747
f53fc427
SM
47482021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4749
4750 * thread.c (add_thread_silent): Add assert.
4751 (find_thread_ptid): Add assert.
4752
de146e19
SM
47532021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4754
4755 PR gdb/27435
4756 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4757 (target_unpush_up): Likewise.
4758 * procfs.c (procfs_target::attach): Push target early. Use
4759 target_unpush_up to unpush target in case of error.
4760 * target.h (struct target_unpusher): Move here.
4761 (target_unpush_up): Likewise.
4762
8488c357
KB
47632021-02-19 Kevin Buettner <kevinb@redhat.com>
4764
4765 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4766 (which in turn includes <gnulib/config.h>) before include
4767 of <signal.h>.
4768
5a9f5403
NC
47692021-02-19 Nelson Chu <nelson.chu@sifive.com>
4770
4771 PR 27158
4772 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4773 (decode_j_type_insn): Likewise.
4774 (decode_cj_type_insn): Likewise.
4775 (decode_b_type_insn): Likewise.
4776 (decode): Likewise.
4777
26f53cd3
TT
47782021-02-18 Tom Tromey <tom@tromey.com>
4779
4780 * expression.h (struct expression) <evaluate>: Declare method.
4781 * eval.c (evaluate_subexp): Simplify.
4782 (expression::evaluate): New method.
4783 (evaluate_expression, evaluate_type): Use expression::evaluate.
4784
6a780b67
KB
47852021-02-17 Kevin Buettner <kevinb@redhat.com>
4786
4787 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4788 to accessing it.
4789 (ada_lookup_name_info): Likewise.
4790
adeab0c5
MF
47912021-02-13 Mike Frysinger <vapier@gentoo.org>
4792
4793 * aclocal.m4: Regenerate.
4794
089436f7
TV
47952021-02-12 Tom de Vries <tdevries@suse.de>
4796
4797 PR threads/26228
4798 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4799 (lin_thread_signals): New static var.
4800 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4801 New function.
4802 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4803 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4804 Declare.
4805 * linux-thread-db.c (check_thread_signals): Use
4806 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4807
96df3e28
AB
48082021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4809
4810 * f-exp.y (f77_keywords): Add allocated.
4811 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4812 (operator_length_f): Likewise.
4813 (print_subexp_f): Likewise.
4814 (dump_subexp_body_f): Likewise.
4815 (operator_check_f): Likewise.
4816 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4817
05f68f52
TV
48182021-02-11 Tom de Vries <tdevries@suse.de>
4819
4820 PR symtab/27353
4821 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4822 Return true for DW_FORM_strx.
4823
b260f8d6
TT
48242021-02-11 Tom Tromey <tromey@adacore.com>
4825
4826 PR gdb/27383:
4827 * parse.c (write_exp_symbol_reference): Write sym.block.
4828
bf3386f0
AB
48292021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4830
4831 * NEWS: Mention changes to 'maint info sections'.
4832 * maint.c (match_substring): Return a bool, fix whitespace issue.
4833 (struct single_bfd_flag_info): New struct.
4834 (bfd_flag_info): New static global.
4835 (match_bfd_flags): Return a bool, use bfd_flag_info.
4836 (print_bfd_flags): Use bfd_flag_info.
4837 (maint_print_section_info): Delete trailing whitespace.
4838 (struct maint_info_sections_opts): New struct.
4839 (maint_info_sections_option_defs): New static global.
4840 (maint_info_sections_completer): New function.
4841 (maintenance_info_sections): Use option parsing mechanism.
4842 (_initialize_maint_cmds): Update command help text for 'maint info
4843 sections' and register a command completer.
4844
4790db14
AB
48452021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4846
4847 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4848 functionality merged into...
4849 (maint_print_all_sections): ...this new function.
4850 (maintenance_info_sections): Make use of maint_print_all_sections,
4851 allow all objects to be printed even where there's no executable.
4852
1db66e34
AB
48532021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4854
4855 * breakpoint.c (resolve_sal_pc): Make use of
4856 bound_minimal_symbol::obj_section.
4857 * maint.c (maintenance_translate_address): Likewise.
4858 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4859 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4860 member function.
4861 * printcmd.c (info_address_command): Make use of
4862 bound_minimal_symbol::obj_section.
4863
18b8df43
AM
48642021-02-11 Alan Modra <amodra@gmail.com>
4865
4866 * arm-symbian-tdep.c: Delete.
4867 * NEWS: Mention arm-symbian removal.
4868 * Makefile.in: Remove arm-symbian-tdep entries.
4869 * configure.tgt: Remove arm*-*-symbianelf*.
4870 * doc/gdb.texinfo: Remove mention of SymbianOS.
4871 * osabi.c (gdb_osabi_names): Remove "Symbian".
4872 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4873 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4874 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4875 handling.
4876 * testsuite/gdb.base/dup-sect.exp: Likewise.
4877 * testsuite/gdb.base/long_long.exp: Likewise.
4878 * testsuite/gdb.base/solib-weak.exp: Likewise.
4879 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4880 * testsuite/gdb.python/py-section-script.exp: Likewise.
4881 * testsuite/lib/dwarf.exp: Likewise.
4882 * testsuite/lib/gdb.exp: Likewise.
4883
e92c8eb8
AB
48842021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4887 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4888 (one_or_two_args): New pattern.
4889 (f77_keywords): Add lbound and ubound.
4890 * f-lang.c (fortran_bounds_all_dims): New function.
4891 (fortran_bounds_for_dimension): New function.
4892 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4893 (operator_length_f): Likewise.
4894 (print_subexp_f): Likewise.
4895 (dump_subexp_body_f): Likewise.
4896 (operator_check_f): Likewise.
4897 * std-operator.def (FORTRAN_LBOUND): Define.
4898 (FORTRAN_UBOUND): Define.
4899
a52d653e
AB
49002021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4901
4902 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4903 and set_section_index member functions where appropriate.
4904 * coffread.c (coff_symtab_read): Likewise.
4905 (process_coff_symbol): Likewise.
4906 * ctfread.c (set_symbol_address): Likewise.
4907 * dwarf2/read.c (add_partial_symbol): Likewise.
4908 (var_decode_location): Likewise.
4909 * language.c: Likewise.
4910 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4911 (compact_minimal_symbols): Likewise.
4912 (minimal_symbol_upper_bound): Likewise.
4913 * objfiles.c (relocate_one_symbol): Likewise.
4914 * psympriv.h (partial_symbol::obj_section): Likewise.
4915 (partial_symbol::address): Likewise.
4916 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4917 * stabsread.c (scan_file_globals): Likewise.
4918 * symmisc.c (dump_msymbols): Likewise.
4919 * symtab.c (general_symbol_info::obj_section): Likewise.
4920 (fixup_section): Likewise.
4921 (get_msymbol_address): Likewise.
4922 * symtab.h (general_symbol_info::section): Rename to...
4923 (general_symbol_info::m_section): ...this.
4924 (general_symbol_info::set_section_index): New member function.
4925 (general_symbol_info::section_index): Likewise.
4926 (SYMBOL_SECTION): Delete.
4927 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4928 set_section_index member functions where appropriate.
4929 (MSYMBOL_SECTION): Delete.
4930 (symbol::symbol): Update to initialize 'm_section'.
4931 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4932 (process_xcoff_symbol): Likewise.
4933
ebbc3a7d
AB
49342021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4935
4936 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4937 MSYMBOL_OBJ_SECTION.
4938 * findvar.c (language_defn::read_var_value): Likewise.
4939 * infcmd.c (jump_command): Likewise.
4940 * linespec.c (minsym_found): Likewise.
4941 * maint.c (maintenance_translate_address): Likewise.
4942 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4943 (minimal_symbol_upper_bound): Likewise.
4944 * parse.c (find_minsym_type_and_address): Likewise.
4945 (operator_check_standard): Likewise.
4946 * printcmd.c (info_address_command): Likewise.
4947 * symmisc.c (dump_msymbols): Likewise.
4948 (print_symbol): Likewise.
4949 * symtab.c (general_symbol_info::obj_section): Define new
4950 function.
4951 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4952 (find_pc_sect_compunit_symtab): Likewise.
4953 (find_function_start_sal): Likewise.
4954 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4955 MSYMBOL_OBJ_SECTION.
4956 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4957 function.
4958 (SYMBOL_OBJ_SECTION): Delete.
4959 (MSYMBOL_OBJ_SECTION): Delete.
4960
9bb305b3
TT
49612021-02-09 Tom Tromey <tom@tromey.com>
4962
4963 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4964
cf2b2075
TV
49652021-02-09 Tom de Vries <tdevries@suse.de>
4966
4967 PR symtab/27341
4968 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4969 construct an array type. Add assert to ensure that element_type is
4970 not being modified.
4971
03642b71
AB
49722021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4973
4974 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4975 (gcore_collect_regset_section_cb): Delete.
4976 (gcore_collect_thread_registers): Delete.
4977 (gcore_build_thread_register_notes): Delete.
4978 (gcore_find_signalled_thread): Delete.
4979 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4980 'gdbarch' and 'thread_info' declarations.
4981 (gcore_build_thread_register_notes): Delete declaration.
4982 (gcore_find_signalled_thread): Likewise.
4983 * fbsd-tdep.c: Remove 'gcore.h' include.
4984 (struct fbsd_collect_regset_section_cb_data): New struct.
4985 (fbsd_collect_regset_section_cb): New function.
4986 (fbsd_collect_thread_registers): New function.
4987 (struct fbsd_corefile_thread_data): New struct.
4988 (fbsd_corefile_thread): New function.
4989 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4990 * linux-tdep.c: Remove 'gcore.h' include.
4991 (struct linux_collect_regset_section_cb_data): New struct.
4992 (linux_collect_regset_section_cb): New function.
4993 (linux_collect_thread_registers): New function.
4994 (linux_corefile_thread): Call Linux specific code.
4995 (find_signalled_thread): New function.
4996 (linux_make_corefile_notes): Call find_signalled_thread.
4997
f73e424f
TT
49982021-02-09 Tom Tromey <tromey@adacore.com>
4999
5000 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5001 not_lval value.
5002 * value.c (value_contents_copy_raw): Now static.
5003 * value.h (value_contents_copy_raw): Don't declare.
5004
a4f0544b
TT
50052021-02-09 Tom Tromey <tromey@adacore.com>
5006
5007 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5008 fields.
5009
9b3e4b5d
SV
50102021-02-08 Shahab Vahedi <shahab@synopsys.com>
5011
5012 PR tdep/27369
5013 * arc-linux-tdep.c (handle_atomic_sequence): New.
5014 (arc_linux_software_single_step): Call handle_atomic_sequence().
5015
29db1eb3
AB
50162021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5017
5018 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5019 function.
5020 (REQUIRE_WINDOW): Call is_valid member function.
5021 (REQUIRE_WINDOW_FOR_SETTER): New define.
5022 (gdbpy_tui_is_valid): Call is_valid member function.
5023 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5024 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5025 tui_active too.
5026 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5027 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5028 the function.
5029
e0c23e11
AB
50302021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5033 for the title is not nullptr.
5034
1cf23996
AB
50352021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5036
5037 * tui-layout.c (saved_tui_windows): Delete.
5038 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5039 call new get_windows member function instead.
5040 (tui_get_window_by_name): Check in tui_windows.
5041 (tui_layout_window::apply): Don't add to tui_windows.
5042 * tui-layout.h (tui_layout_base::get_windows): New member function.
5043 (tui_layout_window::get_windows): Likewise.
5044 (tui_layout_split::get_windows): Likewise.
5045
a53a2657
AB
50462021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5047
5048 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5049 of the window objects.
5050
2708dbbd
AB
50512021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5052
5053 * python/python.c (gdbpy_print_stack): Reformat an error message.
5054
cd074e04
AB
50552021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 * tui/tui-interp.c (tui_command_line_handler): New function.
5058 (tui_interp::resume): Register tui_command_line_handler as the
5059 input_handler.
5060 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5061 function.
5062 (tui_getc_1): Delete handling of '\n' and '\r'.
5063 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5064
4cf28e91
HD
50652021-02-07 Hannes Domani <ssbssa@yahoo.de>
5066
5067 * tui/tui-regs.c (tui_data_window::display_registers_from):
5068 Mark invisible register sub windows.
5069 (tui_data_window::check_register_values): Ignore invisible
5070 register sub windows.
5071
3537bc23
HD
50722021-02-07 Hannes Domani <ssbssa@yahoo.de>
5073
5074 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5075 n_spaces with a negative value.
5076
5fc2d6aa
HD
50772021-02-07 Hannes Domani <ssbssa@yahoo.de>
5078
5079 * tui/tui-regs.c (tui_data_window::display_registers_from):
5080 Add refresh_window call.
5081
83962f83
HD
50822021-02-07 Hannes Domani <ssbssa@yahoo.de>
5083
5084 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5085
0110ec82
SM
50862021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5087
5088 * symmisc.c (std_in, std_out, std_err): Remove.
5089 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5090
7c6944ab
TV
50912021-02-05 Tom de Vries <tdevries@suse.de>
5092
5093 PR breakpoints/27330
5094 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5095 glibc object file has debug info.
5096
e77b0004
TV
50972021-02-05 Tom de Vries <tdevries@suse.de>
5098
5099 PR symtab/27333
5100 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5101
0e857c82
TV
51022021-02-05 Tom de Vries <tdevries@suse.de>
5103
5104 PR breakpoints/27313
5105 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5106 syscall numbers.
5107
bdfea17e
TT
51082021-02-05 Tom Tromey <tom@tromey.com>
5109
5110 * compile/compile-c-support.c (get_compile_context)
5111 (c_get_compile_context, cplus_get_compile_context): Change return
5112 type.
5113 * language.c (language_defn::get_compile_instance): New method.
5114 * language.h (language_defn::get_compile_instance): Change return
5115 type. No longer inline.
5116 * c-lang.c (c_language::get_compile_instance): Change return type.
5117 (cplus_language::get_compile_instance): Change return type.
5118 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5119 Change return type.
5120 * compile/compile.c (compile_to_object): Update.
5121
1b30f421
TT
51222021-02-05 Tom Tromey <tom@tromey.com>
5123
5124 * parser-defs.h (write_exp_symbol_reference): Declare.
5125 * parse.c (write_exp_symbol_reference): New function.
5126 * p-exp.y (variable): Use write_exp_symbol_reference.
5127 * m2-exp.y (variable): Use write_exp_symbol_reference.
5128 * f-exp.y (variable): Use write_exp_symbol_reference.
5129 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5130 * c-exp.y (variable): Use write_exp_symbol_reference.
5131
ae710496
TV
51322021-02-05 Tom de Vries <tdevries@suse.de>
5133
5134 PR exp/27265
5135 * valarith.c (complex_binop): Throw an error if complex type can't
5136 be created.
5137
d3b54e63
TV
51382021-02-05 Tom de Vries <tdevries@suse.de>
5139
5140 PR symtab/27307
5141 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5142 return.
5143
fc9a13fb
TV
51442021-02-05 Tom de Vries <tdevries@suse.de>
5145
5146 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5147
04b4939b
MF
51482021-02-04 Mike Frysinger <vapier@gentoo.org>
5149
5150 * configure.tgt (riscv*-*-*): Set gdb_sim.
5151
6ff267e1
SM
51522021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5153
5154 * target.c (target_is_non_stop_p): Return bool.
5155 * target.h (target_is_non_stop_p): Return bool.
5156
fdbc5215
SM
51572021-02-04 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * record-full.c (record_full_async_inferior_event_handler):
5160 Don't clear async event handler.
5161 (record_full_base_target::wait): Clear async event handler at
5162 beginning.
5163
85d3ad8e
SM
51642021-02-04 Simon Marchi <simon.marchi@efficios.com>
5165
5166 * record-btrace.c (record_btrace_handle_async_inferior_event):
5167 Don't clear async event handler.
5168 (record_btrace_target::wait): Clear async event handler at
5169 beginning.
5170
baa8575b
SM
51712021-02-04 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * remote.c (remote_target::wait): Clear async event handler at
5174 beginning, mark if needed at the end.
5175 (remote_async_inferior_event_handler): Don't set or clear async
5176 event handler.
5177
6b36ddeb
SM
51782021-02-04 Simon Marchi <simon.marchi@efficios.com>
5179
5180 * async-event.h (async_event_handler_func): Add documentation.
5181 * async-event.c (check_async_event_handlers): Don't clear
5182 async_event_handler ready flag.
5183 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5184 flag.
5185 * record-btrace.c (record_btrace_handle_async_inferior_event):
5186 Likewise.
5187 * record-full.c (record_full_async_inferior_event_handler):
5188 Likewise.
5189 * remote-notif.c (remote_async_get_pending_events_handler):
5190 Likewise.
5191 * remote.c (remote_async_inferior_event_handler): Likewise.
5192
72d383bb
SM
51932021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5194
5195 * infrun.c (handle_inferior_event): Move stop_soon variable to
5196 inner scope.
5197
408f6686
PA
51982021-02-03 Pedro Alves <pedro@palves.net>
5199
5200 * infcmd.c (detach_command): Hold strong reference to target, and
5201 if all-stop on entry, restart threads on exit.
5202 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5203 (restart_stepped_thread): ... this new function. Also handle
5204 trap_expected.
5205 (restart_after_all_stop_detach): New function.
5206 * infrun.h (restart_after_all_stop_detach): Declare.
5207
ac7d717c
PA
52082021-02-03 Pedro Alves <pedro@palves.net>
5209
5210 * infrun.c (struct step_over_info): Initialize fields.
5211 (prepare_for_detach): Handle ongoing in-line step over.
5212
e87f0fe8
PA
52132021-02-03 Pedro Alves <pedro@palves.net>
5214
5215 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5216 here...
5217 * remote.c (remote_target::remote_detach_1): ... and here ...
5218 * target.c (target_detach): ... instead of here.
5219 * target.h (target_ops::detach): Add comment.
5220
8ff53139
PA
52212021-02-03 Pedro Alves <pedro@palves.net>
5222
5223 * infrun.c (struct wait_one_event): Move higher up.
5224 (prepare_for_detach): Abort in-progress displaced steps instead of
5225 letting them complete.
5226 (handle_one): If the inferior is detaching, don't add the thread
5227 back to the global step-over chain.
5228 (restart_threads): Don't restart threads if detaching.
5229 (handle_signal_stop): Remove inferior::detaching reference.
5230
91475068
PA
52312021-02-03 Pedro Alves <pedro@palves.net>
5232
5233 * infrun.c (prepare_for_detach): Don't release scoped_restore
5234 before returning.
5235
d758e62c
PA
52362021-02-03 Pedro Alves <pedro@palves.net>
5237
5238 * infrun.c (handle_one): New function, factored out from ...
5239 (stop_all_threads): ... here.
5240
b0083dd7
PA
52412021-02-03 Pedro Alves <pedro@palves.net>
5242
5243 * remote.c (remote_notif_stop_ack): Don't error out on
5244 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5245 (remote_target::discard_pending_stop_replies): Don't delete
5246 in-flight notification; instead, clear its contents.
5247
621cc310
PA
52482021-02-03 Pedro Alves <pedro@palves.net>
5249
5250 * remote.c (extended_remote_target::attach): Set target async in
5251 the target-non-stop path too.
5252
2ab76a18
PA
52532021-02-03 Pedro Alves <pedro@palves.net>
5254
5255 PR gdb/27055
5256 * infrun.c (handle_signal_stop): Move main context_switch call
5257 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5258
2e3773ff
LS
52592021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5260
5261 * NEWS (Changed commands): Add entry for the behavior change of
5262 the inferior command.
5263 * inferior.c (inferior_command): When no argument is given to the
5264 inferior command, display info about the currently selected
5265 inferior.
5266
e57933dc
SM
52672021-02-02 Simon Marchi <simon.marchi@efficios.com>
5268
5269 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5270 a sect_offset.
5271 (read_attribute_reprocess): Adjust.
5272
2b0c7f41
SM
52732021-02-02 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5276 <gnu_ranges_base>: ... this...
5277 <rnglists_base>: ... and this.
5278 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5279 <gnu_ranges_base>: ... this...
5280 <rnglists_base>: ... and this.
5281 (read_cutu_die_from_dwo): Adjust
5282 (dwarf2_get_pc_bounds): Adjust
5283 (dwarf2_record_block_ranges): Adjust.
5284 (read_full_die_1): Adjust
5285 (partial_die_info::read): Adjust.
5286 (read_rnglist_index): Adjust.
5287
a1c40103
SM
52882021-02-02 Simon Marchi <simon.marchi@efficios.com>
5289
5290 PR gdb/26813
5291 * dwarf2/read.c (read_loclists_rnglists_header): Add
5292 header_offset parameter and use it.
5293 (read_loclist_index): Read header of the current contribution,
5294 not the one at the beginning of the section.
5295 (read_rnglist_index): Likewise.
5296
b1829e1b
SM
52972021-02-02 Simon Marchi <simon.marchi@efficios.com>
5298
5299 PR gdb/26813
5300 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5301 requires_reprocessing flag.
5302 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5303 DW_FORM_loclistx.
5304 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5305 and DW_FORM_loclistx.
5306 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5307 instead of set_address for DW_FORM_loclistx and
5308 DW_FORM_rnglistx.
5309
0c800c6e
SM
53102021-02-02 Simon Marchi <simon.marchi@efficios.com>
5311
5312 * dwarf2/read.c (read_loclist_index): Remove bound check for
5313 start of offset.
5314 (read_rnglist_index): Likewise.
5315
05787bad
SM
53162021-02-02 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5319 of the offset.
5320
5e4d9bbc
SM
53212021-02-02 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5324
a0c1eeba
SM
53252021-02-02 Simon Marchi <simon.marchi@efficios.com>
5326
5327 * dwarf2/read.c (read_loclist_index): Change complaints into
5328 errors.
5329
2bd3e4b8
TV
53302021-02-02 Tom de Vries <tdevries@suse.de>
5331
5332 PR symtab/24620
5333 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5334 psymtab == nullptr.
5335
82a1fd3a
AB
53362021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5337
5338 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5339 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5340 here from linux-tdep.c and given a new name. Minor cleanups.
5341 (gcore_collect_regset_section_cb): Likewise.
5342 (gcore_collect_thread_registers): Likewise.
5343 (gcore_build_thread_register_notes): Likewise.
5344 (gcore_find_signalled_thread): Likewise.
5345 * gcore.h (gcore_build_thread_register_notes): Declare.
5346 (gcore_find_signalled_thread): Declare.
5347 * fbsd-tdep.c: Add 'gcore.h' include.
5348 (struct fbsd_collect_regset_section_cb_data): Delete.
5349 (fbsd_collect_regset_section_cb): Delete.
5350 (fbsd_collect_thread_registers): Delete.
5351 (struct fbsd_corefile_thread_data): Delete.
5352 (fbsd_corefile_thread): Delete.
5353 (fbsd_make_corefile_notes): Call
5354 gcore_build_thread_register_notes instead of the now deleted
5355 FreeBSD code.
5356 * linux-tdep.c: Add 'gcore.h' include.
5357 (struct linux_collect_regset_section_cb_data): Delete.
5358 (linux_collect_regset_section_cb): Delete.
5359 (linux_collect_thread_registers): Delete.
5360 (linux_corefile_thread): Call
5361 gcore_build_thread_register_notes.
5362 (find_signalled_thread): Delete.
5363 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5364
ebde6f2d
TV
53652021-01-29 Tom de Vries <tdevries@suse.de>
5366
5367 PR breakpoints/26063
5368 * infrun.c (process_event_stop_test): Reset
5369 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5370 changed.
5371
0f93c3a2
AB
53722021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5373
5374 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5375 assert. Extend the header comment.
5376
f237f998
AB
53772021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5378
5379 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5380 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5381 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5382 (tui_locator_win_info_ptr): Delete declaration.
5383 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5384 (tui_disasm_window::set_contents): Fetch state from tui_location
5385 global.
5386 (tui_get_begin_asm_address): Likewise.
5387 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5388 for locator window.
5389 (get_locator_window): Delete.
5390 (initialize_known_windows): Treat locator window just like all the
5391 rest.
5392 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5393 (tui_source_window::set_contents): Fetch state from tui_location
5394 global.
5395 (tui_source_window::showing_source_p): Likewise.
5396 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5397 (_locator): Delete.
5398 (tui_locator_win_info_ptr): Delete.
5399 (tui_locator_window::make_status_line): Fetch state from
5400 tui_location global.
5401 (tui_locator_window::rerender): Remove check of 'handle',
5402 reindent function body.
5403 (tui_locator_window::set_locator_fullname): Delete.
5404 (tui_locator_window::set_locator_info): Delete.
5405 (tui_update_locator_fullname): Delete.
5406 (tui_show_frame_info): Likewise.
5407 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5408 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5409 tui/tui-location.h and renamed to
5410 tui_location_tracker::set_location.
5411 (tui_locator_window::set_locator_fullname): Moved to
5412 tui/tui-location.h and renamed to
5413 tui_location_tracker::set_fullname.
5414 (tui_locator_window::full_name): Delete.
5415 (tui_locator_window::proc_name): Delete.
5416 (tui_locator_window::line_no): Delete.
5417 (tui_locator_window::addr): Delete.
5418 (tui_locator_window::gdbarch): Delete.
5419 (tui_update_locator_fullname): Delete declaration.
5420 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5421 for locator window.
5422 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5423 (tui_display_main): Call function on tui_location directly.
5424 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5425 * tui/tui-location.c: New file.
5426 * tui/tui-location.h: New file.
5427
8ee511af
SM
54282021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5429
5430 * gdbtypes.h (get_type_arch): Rename to...
5431 (struct type) <arch>: ... this, update all users.
5432
6ac37371
SM
54332021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5434
5435 * gdbtypes.h (struct type) <arch>: Rename to...
5436 <arch_owner>: ... this, update all users.
5437 <objfile>: Rename to...
5438 <objfile_owner>: ... this, update all users.
5439
24cf6389
AB
54402021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5441
5442 * gdbcmd.h (execute_command_to_string): Update comment.
5443 * top.c (execute_command_to_string): Update header comment.
5444
2a7f6487
TV
54452021-01-28 Tom de Vries <tdevries@suse.de>
5446
5447 PR breakpoints/27205
5448 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5449 (create_longjmp_master_breakpoint_names): New function, factored out
5450 of ...
5451 (create_longjmp_master_breakpoint): ... here. Only try to install
5452 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5453 breakpoint in libc.so failed.
5454
59b59f08
LS
54552021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5456
5457 PR gdb/27133
5458 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5459 unique_ptr is released when the wrapped pointer is kept for later
5460 use.
5461
807f647c
MM
54622021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5463
5464 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5465 BLR and BR instructions.
5466 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5467 (enum aarch64_masks): New.
5468
4ef367bf
TT
54692021-01-26 Tom Tromey <tromey@adacore.com>
5470
5471 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5472 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5473 (windows_init_thread_list, windows_nat::handle_load_dll)
5474 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5475 (windows_nat_target::resume)
5476 (windows_nat_target::get_windows_debug_event)
5477 (windows_nat_target::interrupt, windows_xfer_memory)
5478 (windows_nat_target::close): Update.
5479 * nat/windows-nat.c (DEBUG_EVENTS): Use
5480 debug_prefixed_printf_cond.
5481 (matching_pending_stop, fetch_pending_stop)
5482 (continue_last_debug_event): Update.
5483
4cb1265b
MS
54842020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5485
5486 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5487 elfcore_write_file_note.
5488
d0cc52bd
SV
54892021-01-26 Shahab Vahedi <shahab@synopsys.com>
5490
5491 * arc-tdep.c (arc_add_reggroups): New function.
5492 (arc_gdbarch_init): Call arc_add_reggroups.
5493
ac3571d9 54942021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5495
5496 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5497
9f6c202e
TV
54982021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5499 Simon Marchi <simon.marchi@polymtl.ca>
5500 Tom de Vries <tdevries@suse.de>
5501
5502 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5503 DW_AT_ranges.
5504
a625a8c9
TT
55052021-01-25 Tom Tromey <tromey@adacore.com>
5506
5507 * dwarf2/read.c (get_mpz): New function.
5508 (get_dwarf2_rational_constant): Use it.
5509
19184910
TT
55102021-01-25 Tom Tromey <tromey@adacore.com>
5511
5512 * ada-lang.c (resolve_subexp): Handle array context.
5513
b10bae18
TT
55142021-01-23 Tom Tromey <tom@tromey.com>
5515
5516 PR compile/25575
5517 * compile/compile-loc2c.c (note_register): New function.
5518 (pushf_register_address, pushf_register): Use it.
5519
3637a558
TT
55202021-01-23 Tom Tromey <tom@tromey.com>
5521
5522 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5523 Change type of "registers_used".
5524 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5525 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5526 (locexpr_generate_c_location, loclist_generate_c_location): Change
5527 type of "registers_used".
5528 * compile/compile.h (compile_dwarf_expr_to_c)
5529 (compile_dwarf_bounds_to_c): Update.
5530 * compile/compile-loc2c.c (pushf_register_address)
5531 (pushf_register, do_compile_dwarf_expr_to_c)
5532 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5533 of "registers_used".
5534 * compile/compile-c.h (generate_c_for_variable_locations):
5535 Update.
5536 * compile/compile-c-symbols.c (generate_vla_size)
5537 (generate_c_for_for_one_variable): Change type of
5538 "registers_used".
5539 (generate_c_for_variable_locations): Return std::vector.
5540 * compile/compile-c-support.c (generate_register_struct): Change
5541 type of "registers_used".
5542 (compute): Update.
5543
9f7f6cb8
TT
55442021-01-23 Tom Tromey <tom@tromey.com>
5545
5546 * compile/compile-internal.h (class compile_instance)
5547 <set_arguments>: Change return type.
5548 * compile/compile.c (compile_to_object): Remove call to reset.
5549 (compile_instance::set_arguments): Change return type.
5550
dd5ca05f
SM
55512021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5552
5553 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5554 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5555
d3ee35db
LS
55562021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5557
5558 * Makefile.in (SELFTESTS_SRCS): Add
5559 unittests/gdb_tilde_expand-selftests.c.
5560 * unittests/gdb_tilde_expand-selftests.c: New file.
5561
9d2d8a16
AB
55622021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5563
5564 PR cli/25956
5565 * NEWS: Mention new command.
5566 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5567 (version_style): Define.
5568 (cli_style_option::cli_style_option): Add intensity parameter, and
5569 use as appropriate.
5570 (_initialize_cli_style): Register version style set/show commands.
5571 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5572 (version_style): Declare.
5573 * top.c (print_gdb_version): Use version_stype, and styled_string
5574 to print the GDB version string.
5575
e7b43072
AB
55762021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5577
5578 * utils.c (emit_style_escape): Only emit an escape sequence if the
5579 requested style is different than the current applied style.
5580 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5581 current applied_style.
5582 (fputs_styled): Remove is_default check.
5583 (fputs_styled_unfiltered): Likewise.
5584 (vfprintf_styled_no_gdbfmt): Likewise.
5585
2189c312
SM
55862021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5587
5588 * remote.h (remote_debug_printf): New.
5589 (remote_debug_printf_nofunc): New.
5590 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5591 * remote.c: Use above macros throughout file.
5592
02349803
SM
55932021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5594
5595 * remote.h (remote_debug): Change to bool.
5596 * remote.c (remote_debug): Change to bool.
5597 (_initialize_remote): Adjust.
5598
cda09ec9
SM
55992021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5600
5601 * target.h (remote_debug): Move to...
5602 * remote.h (remote_debug): ... here.
5603 * top.c (remote_debug): Move to...
5604 * remote.c (remote_debug): ... here.
5605 * remote-sim.c: Include remote.h.
5606
baf2b57f
SM
56072021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5608
5609 * cli/cli-cmds.c (show_remote_debug): Remove.
5610 (show_remote_timeout): Remove.
5611 (_initialize_cli_cmds): Don't register commands.
5612 * remote.c (show_remote_debug): Move here.
5613 (show_remote_timeout): Move here.
5614 (_initialize_remote): Register commands.
5615
344e9841
SM
56162021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5619 type::objfile method instead.
5620
30625020
SM
56212021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5622
5623 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5624 use the type::is_objfile_owned method.
5625
5b7d941b
SM
56262021-01-22 Simon Marchi <simon.marchi@efficios.com>
5627
5628 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5629 (TYPE_OWNER): Remove.
5630 (TYPE_OBJFILE): Adjust.
5631 (struct main_type) <flag_objfile_owned>: Rename to...
5632 <m_flag_objfile_owned>: ... this.
5633 <owner>: Rename to...
5634 <m_owner>: ... this.
5635 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5636 methods.
5637 (TYPE_ALLOC): Adjust.
5638 * gdbtypes.c (alloc_type): Adjust.
5639 (alloc_type_arch): Adjust.
5640 (alloc_type_copy): Adjust.
5641 (get_type_arch): Adjust.
5642 (smash_type): Adjust.
5643 (lookup_array_range_type): Adjust.
5644 (recursive_dump_type): Adjust.
5645 (copy_type_recursive): Adjust.
5646 * compile/compile-c-types.c (convert_func): Adjust.
5647 (convert_type_basic): Adjust.
5648 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5649 Adjust.
5650 * language.c
5651 (language_arch_info::type_and_symbol::alloc_type_symbol):
5652 Adjust.
5653
d5d24e12
LM
56542021-01-21 Luis Machado <luis.machado@linaro.org>
5655
5656 * coffread.c (enter_linenos): Passing string to complaint.
5657 * valops.c (value_assign): Make array view.
5658
a59902a7
SM
56592021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5660
5661 * auto-load.h (debug_auto_load): Move here.
5662 (auto_load_debug_printf): New.
5663 * auto-load.c: Use auto_load_debug_printf.
5664 (debug_auto_load): Move to header.
5665 * linux-thread-db.c (try_thread_db_load): Use
5666 auto_load_debug_printf.
5667 * main.c (captured_main_1): Likewise.
5668
d3abc0ce
SM
56692021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5670
5671 * f-valprint.c (f77_array_offset_tbl): Remove.
5672
1e15fcac
SM
56732021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5674
5675 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5676
439706e6
SM
56772021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5678
5679 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5680 of gdb_select.
5681
325d39e4
HD
56822021-01-21 Hannes Domani <ssbssa@yahoo.de>
5683
5684 PR python/19151
5685 * python/py-breakpoint.c (bppy_get_location): Handle
5686 bp_hardware_breakpoint.
5687 (bppy_init): Likewise.
5688 (gdbpy_breakpoint_created): Likewise.
5689
7cb6d92a
SM
56902021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5691
5692 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5693
d4dd4fca
SM
56942021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5695
5696 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5697 (_initialize_gdb_bfd): Adjust.
5698
de53369b
SM
56992021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5700
5701 PR gdb/26828
5702 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5703
17e593e9
SM
57042021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5705
5706 * dwarf2/read.c (follow_die_offset): Add logging.
5707 (dwarf2_per_objfile::age_comp_units): Add logging.
5708
6bd434d6
SM
57092021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5710
5711 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5712 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5713 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5714 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5715 * arm-tdep.c (struct frame_unwind): Make static.
5716 * auto-load.c (auto_load_safe_path_vec): Make static.
5717 * csky-tdep.c (csky_stub_unwind): Make static.
5718 * gdbarch.c (gdbarch_data_registry): Make static.
5719 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5720 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5721 * i386-tdep.c (i386_frame_setup_skip_insns,
5722 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5723 Make static.
5724 * infrun.c (observer_mode): Make static.
5725 * linux-nat.c (sigchld_action): Make static.
5726 * linux-thread-db.c (thread_db_list): Make static.
5727 * maint-test-options.c (maintenance_test_options_list):
5728 * mep-tdep.c (mep_csr_registers): Make static.
5729 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5730 (stats): Make static.
5731 * nat/linux-osdata.c (struct osdata_type): Make static.
5732 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5733 * progspace.c (last_program_space_num): Make static.
5734 * python/py-param.c (struct parm_constant): Remove struct type
5735 name.
5736 (parm_constants): Make static.
5737 * python/py-record-btrace.c (btpy_list_methods): Make static.
5738 * python/py-record.c (recpy_gap_type): Make static.
5739 * record.c (record_goto_cmdlist): Make static.
5740 * regcache.c (regcache_descr_handle): Make static.
5741 * registry.h (DEFINE_REGISTRY): Make definition static.
5742 * symmisc.c (std_in, std_out, std_err): Make static.
5743 * top.c (previous_saved_command_line): Make static.
5744 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5745 static.
5746 * unittests/command-def-selftests.c (nr_duplicates,
5747 nr_invalid_prefixcmd, lists): Make static.
5748 * unittests/observable-selftests.c (test_notification): Make
5749 static.
5750 * unittests/optional/assignment/1.cc (counter): Make static.
5751 * unittests/optional/assignment/2.cc (counter): Make static.
5752 * unittests/optional/assignment/3.cc (counter): Make static.
5753 * unittests/optional/assignment/4.cc (counter): Make static.
5754 * unittests/optional/assignment/5.cc (counter): Make static.
5755 * unittests/optional/assignment/6.cc (counter): Make static.
5756
a6c11cbb
JS
57572021-01-20 Joel Sherrill <joel@rtems.org>
5758
5759 PR gdb/27219
5760 * remote.c (struct remote_thread_info) <resume_state>: Rename
5761 to...
5762 <get_resume_state>: ... this.
5763 (remote_target::resume): Adjust.
5764 (remote_target::commit_resume): Adjust.
5765 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5766
6f52fdf4
SDJ
57672021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5768 Tom Tromey <tom@tromey.com>
5769
5770 * stap-probe.c (stap_parse_single_operand): Handle '!'
5771 operator.
5772 (stap_parse_argument_conditionally): Likewise.
5773 Skip spaces after processing open-parenthesis sub-expression.
5774 (stap_parse_argument_1): Skip spaces after call to
5775 stap_parse_argument_conditionally.
5776 Handle case when right-side expression is a parenthesized
5777 sub-expression.
5778 Skip spaces after call to stap_parse_argument_1.
5779
1c3b85ad
LS
57802021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5781
5782 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5783
a9a87d35
LM
57842021-01-19 Luis Machado <luis.machado@linaro.org>
5785
5786 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5787 memory and save data.
5788 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5789 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5790 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5791 (trad_frame_value_bytes_p): Remove.
5792 (trad_frame_reset_saved_regs): Adjust documentation.
5793 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5794 constructor and reset the state of the registers.
5795 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5796 (trad_frame_value_bytes_p, trad_frame_set_value)
5797 (trad_frame_set_realreg, trad_frame_set_addr)
5798 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5799 (trad_frame_set_reg_realreg): Update to call member function.
5800 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5801 (trad_frame_get_prev_register): Likewise.
5802
5803 * aarch64-tdep.c (aarch64_analyze_prologue)
5804 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5805 (aarch64_prologue_prev_register): Update to use member functions.
5806 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5807 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5808 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5809 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5810 (arm_make_epilogue_frame_cache): Likewise.
5811 * avr-tdep.c (avr_frame_unwind_cache)
5812 (avr_frame_prev_register): Likewise.
5813 * cris-tdep.c (cris_scan_prologue): Likewise.
5814 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5815 * frv-tdep.c (frv_analyze_prologue): Likewise.
5816 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5817 * lm32-tdep.c (lm32_frame_cache): Likewise.
5818 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5819 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5820 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5821 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5822 (reset_saved_regs): Adjust to set realreg.
5823 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5824 call member functions.
5825 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5826 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5827 (s390_backchain_frame_unwind_cache): Likewise.
5828 * score-tdep.c (score7_analyze_prologue)
5829 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5830 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5831 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5832 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5833 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5834 * tilegx-tdep.c (tilegx_analyze_prologue)
5835 (tilegx_frame_cache): Likewise.
5836 * v850-tdep.c (v850_frame_cache): Likewise.
5837 * vax-tdep.c (vax_frame_cache): Likewise.
5838
bdec2917
LM
58392021-01-19 Luis Machado <luis.machado@linaro.org>
5840
5841 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5842 of buffer + length.
5843 (put_frame_register_bytes): Likewise.
5844 Adjust documentation.
5845 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5846 (safe_frame_unwind_memory): Likewise.
5847 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5848 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5849 gdb::array_view.
5850 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5851 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5852 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5853 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5854 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5855 * dwarf2/loc.c (rw_pieced_value): Likewise.
5856 * hppa-tdep.c (hppa_frame_cache): Likewise.
5857 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5858 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5859 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5860 (i386_linux_rt_sigtramp_start): Likewise.
5861 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5862 * i386-tdep.c (i386_register_to_value): Likewise.
5863 * i387-tdep.c (i387_register_to_value): Likewise.
5864 * ia64-tdep.c (ia64_register_to_value): Likewise.
5865 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5866 (m32r_linux_rt_sigtramp_start): Likewise.
5867 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5868 * m68k-tdep.c (m68k_register_to_value): Likewise.
5869 * mips-tdep.c (mips_register_to_value)
5870 (mips_value_to_register): Likewise.
5871 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5872 (ppcfbsd_sigtramp_frame_cache): Likewise.
5873 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5874 (ppcobsd_sigtramp_frame_cache): Likewise.
5875 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5876 (rs6000_register_to_value): Likewise.
5877 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5878 * tramp-frame.c (tramp_frame_start): Likewise.
5879 * valops.c (value_assign): Likewise.
5880
ccbe4c82
LM
58812021-01-19 Luis Machado <luis.machado@linaro.org>
5882
5883 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5884 array_view.
5885 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5886 instead of buffer and size.
5887 (trad_frame_set_reg_value_bytes): Likewise.
5888 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5889 (trad_frame_set_value_bytes): Likewise.
5890
0e7620dc
MF
58912021-01-18 Mike Frysinger <vapier@gentoo.org>
5892
5893 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5894
6a9ad81c
AB
58952021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5896
5897 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5898 (riscv_fbsd_gregset): Use riscv_supply_regset.
5899 (riscv_fbsd_fpregset): Likewise.
5900 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5901 (riscv_linux_fregset): Likewise.
5902 * riscv-tdep.c (riscv_supply_regset): Define new function.
5903 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5904
d3d7d1ba
TV
59052021-01-18 Tom de Vries <tdevries@suse.de>
5906
5907 PR tdep/27172
5908 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5909 New macro.
5910 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5911 for SEGV_BNDERR.
5912
aa2838cc
SM
59132021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5914
5915 * remote.c (class remote_target) <remote_hostio_send_command,
5916 remote_hostio_parse_result>: Constify parameter.
5917 (remote_hostio_parse_result): Likewise.
5918 (remote_target::remote_hostio_send_command): Adjust.
5919 (remote_target::remote_hostio_pread_vFile): Adjust.
5920 (remote_target::fileio_readlink): Adjust.
5921 (remote_target::fileio_fstat): Adjust.
5922
b5c8f22d
SM
59232021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5924
5925 * remote.c (remote_target::start_remote): Move wait_status to
5926 narrower scope.
5927
e3b2741b
SM
59282021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5929
5930 * remote.c (class remote_target):
5931 <add_current_inferior_and_thread>: Constify parameter.
5932 (stop_reply_extract_thread): Likewise.
5933 (remote_target::get_current_thread): Likewise.
5934 (remote_target::add_current_inferior_and_thread): Likewise.
5935
cecb1912
SM
59362021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * remote.c (class remote_target)
5939 <remote_unpack_thread_info_response,
5940 parse_threadlist_response>: Constify parameter and/or return
5941 value and or local variable.
5942 (stub_unpack_int): Likewise.
5943 (unpack_nibble): Likewise.
5944 (unpack_byte): Likewise.
5945 (unpack_int): Likewise.
5946 (unpack_string): Likewise.
5947 (unpack_threadid): Likewise.
5948 (remote_target::remote_unpack_thread_info_response): Likewise.
5949 (remote_target::parse_threadlist_response): Likewise.
5950
5a11fff0
AB
59512021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5952
5953 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5954
17e89137
LS
59552021-01-14 Lancelot Six <lsix@lancelotsix.com>
5956
5957 * MAINTAINERS (Write After Approval): Add myself.
5958
58eadc4b
BE
59592021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5960
5961 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5962 because is_trivially_default_constructible was first implemented with
5963 gcc-5.
5964
5fae2a2c
TV
59652021-01-14 Tom de Vries <tdevries@suse.de>
5966
5967 PR breakpoints/27151
5968 * objfiles.h (in_plt_section): Handle .plt.sec.
5969
8f66807b
AB
59702021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5971
5972 PR gdb/26819
5973 * remote.c
5974 (remote_target::select_thread_for_ambiguous_stop_reply): New
5975 member function.
5976 (remote_target::process_stop_reply): Call
5977 select_thread_for_ambiguous_stop_reply.
5978
bd497355
SM
59792021-01-13 Simon Marchi <simon.marchi@efficios.com>
5980
5981 * record-btrace.c (class record_btrace_target): Remove.
5982 (record_btrace_target::commit_resume): Remove.
5983 * record-full.c (class record_full_target): Remove.
5984 (record_full_target::commit_resume): Remove.
5985
c9d22089
SM
59862021-01-13 Simon Marchi <simon.marchi@efficios.com>
5987
5988 * remote.c (enum class resume_state): New.
5989 (struct resumed_pending_vcont_info): New.
5990 (struct remote_thread_info) <resume_state, set_not_resumed,
5991 set_resumed_pending_vcont, resumed_pending_vcont_info,
5992 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5993 New.
5994 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5995 (remote_target::remote_add_thread): Adjust.
5996 (remote_target::process_initial_stop_replies): Adjust.
5997 (remote_target::resume): Adjust.
5998 (remote_target::commit_resume): Rely on state in
5999 remote_thread_info and not on tp->executing.
6000 (remote_target::process_stop_reply): Adjust.
6001
d8d1feb4
SM
60022021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * arc-tdep.h (arc_debug_printf): New.
6005 * arc-tdep.c: Use arc_debug_printf.
6006 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6007 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6008 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6009
fb0f5031
SM
60102021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6011
6012 * arc-tdep.h (arc_debug): Change type to bool.
6013 * arc-tdep.c (arc_debug): Change type to bool.
6014 (arc_analyze_prologue): Adjust.
6015 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6016 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6017
5bf7e91b
SM
60182021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * auto-load.c (auto_load_objfile_script_1): Use bool.
6021 (execute_script_contents): Use bool.
6022
db972fce
SM
60232021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6024
6025 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6026 comment here.
6027 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6028 comment to header.
6029 * extension-priv.h (struct extension_language_script_ops)
6030 <auto_load_enabled>: Return bool.
6031 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6032 comment here.
6033 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6034 comment to header.
6035 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6036 move comment here.
6037 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6038 move comment to header.
6039 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6040 move comment here.
6041 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6042 move comment to header.
6043
5e12f48f
SM
60442021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6045
6046 * auto-load.h (file_is_auto_load_safe): Change return type to
6047 bool, move comment here.
6048 * auto-load.c (file_is_auto_load_safe): Change return type and
6049 advice_printed to bool. Move comment to header.
6050
54ca9002
SM
60512021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6052
6053 * jit.c (jit_debug_printf): New, use throughout file.
6054
24a7f1b5
SM
60552021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * infrun.c (normal_stop): Fix indentation.
6058
fe7a351a
SM
60592021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6060
6061 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6062 declarations to ...
6063 * symfile.h: ... here.
6064 * symfile.c: Update doc.
6065
16e9019e
SM
60662021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6067
6068 * target.h (baud_rate, serial_parity): Move declarations...
6069 * serial.h: ... here.
6070 * main.c: Include serial.h.
6071 * serial.c (baud_rate, serial_parity): Update doc.
6072
b2f2ae0d
SM
60732021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6074
6075 * top.c (pre_init_ui_hook): Remove.
6076
5291fe3c
SP
60772021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6078
6079 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6080 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6081 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6082 * features/aarch64-fpu.xml: Add bfloat16 type.
6083
ce38f5ed
AB
60842021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6085
6086 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6087
7c654b71
AB
60882021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6089
6090 * f-exp.y (dot_ops): Rename to...
6091 (fortran_operators): ...this. Add a header comment. Add symbol
6092 based operators.
6093 (yylex): Update to use fortran_operators not dot_ops. Remove
6094 special handling for '**', this is now included in
6095 fortran_operators.
6096
c6185dce
SM
60972021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6098
6099 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6100 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6101 * aarch64-tdep.c: Use aarch64_debug_printf.
6102
eef401dc
SM
61032021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6104
6105 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6106 file.
6107
062eaacb
SM
61082021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6109
6110 * jit.c (jit_debug): Change type to bool.
6111 (_initialize_jit): Adjust.
6112
54585eee
TT
61132021-01-09 Tom Tromey <tom@tromey.com>
6114
6115 PR compile/23672
6116 * compile/compile.c (compile_to_object): Avoid crash when
6117 osabi_triplet_regexp returns NULL.
6118
bc167b6b
TT
61192021-01-09 Tom Tromey <tom@tromey.com>
6120
6121 * tracepoint.h (class collection_list) <append_exp>: Take a
6122 std::string.
6123 * tracepoint.c (collection_list::append_exp): Take a std::string.
6124 (encode_actions_1): Update.
6125
8fc48b79
TT
61262021-01-08 Tom Tromey <tromey@adacore.com>
6127
6128 * parse.c (parse_expression): Add void_context_p parameter. Use
6129 parse_exp_in_context.
6130 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6131 parse_expression.
6132 (print_command, call_command): Update.
6133 * expression.h (parse_expression): Add void_context_p parameter.
6134
3c8c6de2
AB
61352021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6136
6137 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6138 for internalvar components that have a dynamic location.
6139
1940319c
TV
61402021-01-08 Tom de Vries <tdevries@suse.de>
6141
6142 PR gdb/26881
6143 * breakpoint.c (create_exception_master_breakpoint_probe)
6144 (create_exception_master_breakpoint_hook): Factor out
6145 of ...
6146 (create_exception_master_breakpoint): ... here. Only try to install
6147 the master exception breakpoint in objfile.debug using the
6148 _Unwind_DebugHook method, if the install using probes in objfile
6149 failed.
6150
e3436813
AB
61512021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6152
6153 * f-lang.c (fortran_value_subarray): Call value_from_component.
6154
e904f56d
MF
61552021-01-07 Mike Frysinger <vapier@gentoo.org>
6156
6157 * remote-sim.c: Include memory-map.h.
6158 (gdbsim_target): Define memory_map override.
6159 (gdbsim_target::memory_map): Define.
6160
959d6a67
TT
61612021-01-07 Tom Tromey <tromey@adacore.com>
6162
6163 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6164
d4813f10
TT
61652021-01-07 Tom Tromey <tromey@adacore.com>
6166
6167 * ada-lang.c (add_component_interval): Start loop using vector's
6168 updated size.
6169
b49180ac
TT
61702021-01-06 Tom Tromey <tromey@adacore.com>
6171
6172 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6173 Do not cast result.
6174 * valarith.c (fixed_point_binop): Handle multiplication
6175 and division specially.
6176 * valops.c (value_to_gdb_mpq): New function.
6177 (value_cast_to_fixed_point): Use it.
6178
55195361
HD
61792021-01-05 Hannes Domani <ssbssa@yahoo.de>
6180
6181 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6182 Call wnoutrefresh instead of tui_win_info::refresh_window.
6183
1b6d4bb2
HD
61842021-01-05 Hannes Domani <ssbssa@yahoo.de>
6185
6186 * tui/tui-source.c (tui_source_window::show_line_number):
6187 Redraw second space after line number.
6188
b5ff370e
HD
61892021-01-05 Hannes Domani <ssbssa@yahoo.de>
6190
6191 PR tui/26927
6192 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6193 Fix source pad size in prefresh.
6194 (tui_source_window_base::show_source_content): Grow source pad
6195 if necessary.
6196
c68ea49f
MF
61972021-01-04 Mike Frysinger <vapier@gentoo.org>
6198
6199 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6200 (bfin_frame_align): Use align_down.
6201
e4ad960a
TV
62022021-01-04 Tom de Vries <tdevries@suse.de>
6203
6204 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6205 terminators that do not terminate anything.
6206
3ec3145c
SM
62072021-01-04 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * debug.c (debug_print_depth): New.
6210 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6211 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6212 * infrun.c (start_step_over): Use
6213 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6214 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6215 INFRUN_SCOPED_DEBUG_START_END.
6216 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6217
e71daf80
SM
62182021-01-04 Simon Marchi <simon.marchi@efficios.com>
6219
6220 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6221
335709bc
SM
62222021-01-04 Simon Marchi <simon.marchi@efficios.com>
6223
6224 * utils.c (vfprintf_unfiltered): Print timestamp only when
6225 previous debug output ended with a newline.
6226
098caef4
LM
62272021-01-04 Luis Machado <luis.machado@linaro.org>
6228
6229 Update all users of trad_frame_saved_reg to use the new member
6230 functions.
6231
6232 Remote all struct keywords from declarations of trad_frame_saved_reg
6233 types, except on forward declarations.
6234
6235 * aarch64-tdep.c: Update.
6236 * alpha-mdebug-tdep.c: Update.
6237 * alpha-tdep.c: Update.
6238 * arc-tdep.c: Update.
6239 * arm-tdep.c: Update.
6240 * avr-tdep.c: Update.
6241 * cris-tdep.c: Update.
6242 * csky-tdep.c: Update.
6243 * frv-tdep.c: Update.
6244 * hppa-linux-tdep.c: Update.
6245 * hppa-tdep.c: Update.
6246 * hppa-tdep.h: Update.
6247 * lm32-tdep.c: Update.
6248 * m32r-linux-tdep.c: Update.
6249 * m32r-tdep.c: Update.
6250 * m68hc11-tdep.c: Update.
6251 * mips-tdep.c: Update.
6252 * moxie-tdep.c: Update.
6253 * riscv-tdep.c: Update.
6254 * rs6000-tdep.c: Update.
6255 * s390-linux-tdep.c: Update.
6256 * s390-tdep.c: Update.
6257 * score-tdep.c: Update.
6258 * sparc-netbsd-tdep.c: Update.
6259 * sparc-sol2-tdep.c: Update.
6260 * sparc64-fbsd-tdep.c: Update.
6261 * sparc64-netbsd-tdep.c: Update.
6262 * sparc64-obsd-tdep.c: Update.
6263 * sparc64-sol2-tdep.c: Update.
6264 * tilegx-tdep.c: Update.
6265 * v850-tdep.c: Update.
6266 * vax-tdep.c: Update.
6267
6268 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6269 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6270
6271 * trad-frame.c: Update.
6272 Remove TF_REG_* enum.
6273 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6274 a trivially-constructible struct.
6275 (trad_frame_reset_saved_regs): Adjust to use member function.
6276 (trad_frame_value_p): Likewise.
6277 (trad_frame_addr_p): Likewise.
6278 (trad_frame_realreg_p): Likewise.
6279 (trad_frame_value_bytes_p): Likewise.
6280 (trad_frame_set_value): Likewise.
6281 (trad_frame_set_realreg): Likewise.
6282 (trad_frame_set_addr): Likewise.
6283 (trad_frame_set_unknown): Likewise.
6284 (trad_frame_set_value_bytes): Likewise.
6285 (trad_frame_get_prev_register): Likewise.
6286 * trad-frame.h: Update.
6287 (trad_frame_saved_reg_kind): New enum.
6288 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6289 <m_kind, m_reg>: New member fields.
6290 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6291 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6292 <is_addr, is_unknown, is_value_bytes>: New member functions.
6293
9898e882
SM
62942021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6295
6296 * target-float.c: Fix typos.
6297
b66b4e65
HD
62982021-01-02 Hannes Domani <ssbssa@yahoo.de>
6299
6300 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6301
b5b5650a
JB
63022021-01-01 Joel Brobecker <brobecker@adacore.com>
6303
6304 * gdbarch.sh: Update copyright year range.
6305
3666a048
JB
63062021-01-01 Joel Brobecker <brobecker@adacore.com>
6307
6308 Update copyright year range in copyright header of all GDB files.
6309
ff7e39b6
JB
63102021-01-01 Joel Brobecker <brobecker@adacore.com>
6311
6312 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6313 to the list of directories to update.
6314
2b47c078
JB
63152021-01-01 Joel Brobecker <brobecker@adacore.com>
6316
6317 * top.c (print_gdb_version): Update copyright year.
6318
9e5e03df 63192021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6320
476923f1 6321 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6322
476923f1 6323For older changes see ChangeLog-2020.
c906108c
SS
6324\f
6325Local Variables:
6326mode: change-log
6327left-margin: 8
6328fill-column: 74
6329version-control: never
57da7796 6330coding: utf-8
c906108c 6331End:
This page took 2.720024 seconds and 4 git commands to generate.