Change dwarf2_cu marking to use methods
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
347212b8
TT
12021-05-17 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (maybe_queue_comp_unit)
4 (dwarf2_per_objfile::age_comp_units): Update.
5 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
6 dwarf2_cu methods.
7 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
8 add_dependence>: New methods.
9 <m_dependencies>: Add "m_" prefix. Now private.
10 <m_mark>: Add "m_" prefix.
11 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
12 (dwarf2_mark_helper): New function.
13 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
14
839118f9
TT
152021-05-17 Tom Tromey <tom@tromey.com>
16
17 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
18 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
19 (dwarf2_cu::dwarf2_cu): Move to cu.c.
20 * dwarf2/cu.c: New file.
21 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
22
8ae78a44
TT
232021-05-17 Tom Tromey <tom@tromey.com>
24
25 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
26 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
27 Move to cu.h.
28 * dwarf2/cu.h: New file.
29
c1c0a7e1
AB
302021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * .dir-locals.el: Set sentence-end-double-space for all modes, and
33 set brace-list-open to 0 for C and C++ modes.
34
9e541c79
TT
352021-05-17 Tom Tromey <tromey@adacore.com>
36
37 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
38 if frame is null.
39
59173216
TT
402021-05-17 Tom Tromey <tromey@adacore.com>
41
42 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
43 (group_from_gid): Subtract one from strncpy length.
44
baea2f9d
TT
452021-05-17 Tom Tromey <tromey@adacore.com>
46
47 * source.c (add_path): Check 'p' before using 'p[-1]'.
48
473ab964
TT
492021-05-17 Tom Tromey <tromey@adacore.com>
50
51 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
52 (dwarf2_per_cu_data_up): New typedef.
53 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
54 <all_comp_units>: Use dwarf2_per_cu_data_up.
55 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
56 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
57 (create_cu_from_index_list): Likewise.
58 (create_signatured_type_table_from_index)
59 (create_cus_from_debug_names_list, add_type_unit)
60 (read_comp_units_from_section): Update.
61 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
62 (run_test): Update.
63
16e0020b
TT
642021-05-17 Tom Tromey <tom@tromey.com>
65
66 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
67 (sort_tu_by_abbrev_offset): Remove.
68 (build_type_psymtabs): Update.
69
91e159e9
SM
702021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * py-project.toml: New.
73 * gdb-gdb.py.in: Re-format.
74
034dce7a
SM
752021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
78 New, use it.
79 * command.h (cmd_func_p): Remove.
80 * cli/cli-decode.c (cmd_func_p): Remove.
81
1be99b11
SM
822021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
83
84 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
85
99858724
SM
862021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
89 to...
90 <alias_target>: ... this.
91 (add_alias_cmd): Rename old to target.
92 (add_info_alias): Rename old_name to target_name.
93 (add_com_alias): Likewise.
94
14b42fc4
SM
952021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * Rename "prefixlist" parameters to "subcommands" throughout.
98 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
99 <subcommands>: ... this.
100 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
101 (lookup_cmd_with_subcommands): ... this.
102
ecd0a6b3
SM
1032021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
106
413b49c2
SM
1072021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * cli/cli-decode.h (prefixname): Make const, move implementation
110 to cli/cli-decode.c.
111 * cli/cli-decode.c (cmd_list_element::prefixname): New.
112
ea11a98d
WP
1132021-05-16 Weimin Pan <weimin.pan@oracle.com>
114
115 * ctfread.c (new_symbol): Set function address.
116 (read_func_kind_type): Remove incorrect type name setting.
117 Don't copy name returned from ctf_type_ame_raw throughout file.
118
887e7158
TT
1192021-05-14 Tom Tromey <tom@tromey.com>
120
121 * rust-lang.c (rust_language::val_print_struct)
122 (rust_language::print_enum): Use common_val_print, not
123 value_print_inner.
124
55789354
TBA
1252021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
126
127 * python/py-inferior.c (infpy_get_connection_num): New function.
128 (inferior_object_getset): Add a new element for 'connection_num'.
129 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
130
2f63ec5c
AB
1312021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
132
133 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
134 argument type, update and re-wrap, header comment.
135 (remote_target::commit_resumed): Convert any_process_wildcard and
136 may_global_wildcard_vcont from int to bool.
137
ecf25064
KC
1382021-05-14 Kent Cheung <kent.cheung@arm.com>
139
140 * cp-valprint.c (cp_print_value): Replaced duplicate code.
141 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
142 just before printing child values.
143 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
144 printing string representation.
145 * python/py-prettyprint.c (print_children): Check max_depth just
146 before printing child values.
147 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
148 printing string representation.
149
df68e12b
MF
1502021-05-14 Mike Frysinger <vapier@gentoo.org>
151
152 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
153 sim/callback.h & sim/sim.h.
154
183aaaf7
MF
1552021-05-13 Mike Frysinger <vapier@gentoo.org>
156
157 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
158 sim-regno.h include.
159
737358ba
SM
1602021-05-13 Simon Marchi <simon.marchi@efficios.com>
161
162 * inf-child.h (inf_child_target) <follow_exec>: New.
163 * inf-child.c (inf_child_target::follow_exec): New.
164
294c36eb
SM
1652021-05-13 Simon Marchi <simon.marchi@efficios.com>
166
167 * target.h (struct target_ops) <follow_exec>: Add ptid_t
168 parameter.
169 (target_follow_exec): Likewise.
170 * target.c (target_follow_exec): Add ptid_t parameter.
171 * infrun.c (follow_exec): Adjust call to target_follow_exec,
172 don't push target nor create thread.
173 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
174 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
175 (thread_db_target::follow_exec): New.
176 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
177 (remote_target::follow_exec): Call
178 process_stratum_target::follow_exec.
179 * target-delegates.c: Re-generate.
180
2af87c85
SM
1812021-05-13 Simon Marchi <simon.marchi@efficios.com>
182
183 * infrun.c (follow_exec): Call target_follow_fork when
184 follow-exec-mode is same.
185 * target.h (target_follow_fork): Improve doc.
186
0b2256f7
SM
1872021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
190 Remove.
191 * cli/cli-setshow.c (do_show_command): Adjust.
192
0746f49b
LM
1932021-05-13 Luis Machado <luis.machado@linaro.org>
194
195 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
196 include the last address in the range.
197
4b8cb9dd
SM
1982021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
199
200 * python/python-internal.h (gdbpy_parse_command_name): Return
201 gdb::unique_xmalloc_ptr.
202 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
203 (cmdpy_init): Adjust.
204 * python/py-param.c (parmpy_init): Adjust.
205 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
206 when done.
207
ee35ce82
GB
2082021-05-12 George Barrett <bob@bob131.so>
209
210 * NEWS (Guile API): Note the addition of the new procedure.
211 * guile/scm-value.c (gdbscm_value_const_value): Add
212 implementation of value-const-value procedure.
213 (value_functions): Add value-const-value procedure.
214
9d4fc61d
GB
2152021-05-12 George Barrett <bob@bob131.so>
216
217 * NEWS (Guile API): Note the addition of new procedures.
218 * guile/scm-value.c (gdbscm_reference_value): Add helper function
219 for reference value creation.
220 (gdbscm_value_reference_value): Add implementation of
221 value-reference-value procedure.
222 (gdbscm_value_rvalue_reference_value): Add implementation of
223 value-rvalue-reference-value procedure.
224 (value_functions): Add value-reference-value procedure. Add
225 value-rvalue-reference-value procedure.
226
97cef6b7
GB
2272021-05-12 George Barrett <bob@bob131.so>
228
229 * guile/scm-type.c (type_integer_constants): Add binding for
230 TYPE_CODE_RVALUE_REF.
231 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
232 dereferencing of rvalue references.
233 * NEWS (Guile API): Note improvements in rvalue reference support.
234
d51344c9
MM
2352021-05-12 Markus Metzger <markus.t.metzger@intel.com>
236
237 * btrace.c (handle_pt_insn_events): Ignore status update enable
238 events.
239
f2a883a8
SM
2402021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
243 indentation.
244
64f30eb0
SM
2452021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
246
247 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
248
db1f6cd6
LS
2492021-05-10 Lancelot Six <lsix@lancelotsix.com>
250
251 PR gdb/27614
252 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
253 argument.
254
31aceaef
SM
2552021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
256
257 * nat/linux-waitpid.c (status_to_str): Show signal name.
258
75140e3b
AB
2592021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
260
261 * python/py-breakpoint.c (pybp_debug): New static global.
262 (show_pybp_debug): New function.
263 (pybp_debug_printf): Define.
264 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
265 (gdbpy_breakpoint_created): Add some debugging.
266 (gdbpy_breakpoint_deleted): Likewise.
267 (gdbpy_breakpoint_modified): Likewise.
268 (_initialize_py_breakpoint): New function.
269
1ef40c13
AB
2702021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * python/py-unwind.c (pyuw_debug): Convert to bool.
273 (show_pyuw_debug): New function.
274 (pyuw_debug_printf): Define.
275 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
276 (pyuw_this_id): Convert to new debug print macros.
277 (pyuw_prev_register): Likewise.
278 (pyuw_sniffer): Likewise.
279 (pyuw_dealloc_cache): Likewise.
280 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
281 show function when registering.
282
927c4e35
AB
2832021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
284
285 * dummy-frame.c (fprint_dummy_frames): Convert use of
286 fprint_frame_id to use frame_id::to_string.
287 * frame.c (fprint_field): Delete.
288 (fprint_frame_id): Moved to...
289 (frame_id::to_string): ...this, rewritten to return a string.
290 (fprint_frame): Convert use of fprint_frame_id to use
291 frame_id::to_string.
292 (compute_frame_id): Likewise.
293 (frame_id_p): Likewise.
294 (frame_id_eq): Likewise.
295 (frame_id_inner): Likewise.
296 * frame.h (struct frame_id) <to_string>: New member function.
297 (fprint_frame_id): Delete declaration.
298 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
299 fprint_frame_id to use frame_id::to_string.
300 * python/py-frame.c (frame_object_to_frame_info): Likewise.
301 * python/py-unwind.c (unwind_infopy_str): Likewise.
302 (pyuw_this_id): Likewise.
303
8d06918f
SM
3042021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
305
306 * nat/linux-waitpid.c (status_to_str): Return std::string.
307 * nat/linux-waitpid.h (status_to_str): Likewise.
308 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
309 (linux_nat_target::attach): Adjust.
310 (linux_handle_extended_wait): Adjust.
311 (wait_lwp): Adjust.
312 (stop_wait_callback): Adjust.
313 (linux_nat_filter_event): Adjust.
314 (linux_nat_wait_1): Adjust.
315 * nat/linux-waitpid.c (status_to_str): Adjust.
316 * nat/linux-waitpid.h (status_to_str): Adjust.
317
550e9289
SM
3182021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
319
320 * infrun.h (infrun_debug_printf): Add missing space.
321
4655f850
PA
3222021-05-08 Pedro Alves <pedro@palves.net>
323
324 * linux-nat.c (linux_nat_target::supports_disable_randomization):
325 Remove references to HAVE_PERSONALITY.
326 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
327 (maybe_disable_address_space_randomization)
328 (~maybe_disable_address_space_randomizatio): Remove references to
329 HAVE_PERSONALITY.
330 * config.in, configure: Regenerate.
331
1845e254
AB
3322021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
335 include.
336 (source_script_with_search): Perform tilde expansion.
337
91e3c425
SM
3382021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
339
340 * target-descriptions.c (struct target_desc_info) <filename>:
341 Make std::string.
342 (copy_inferior_target_desc_info): Adjust.
343 (target_desc_info_free): Adjust.
344 (target_find_description): Adjust.
345 (set_tdesc_filename_cmd): Adjust.
346 (show_tdesc_filename_cmd): Adjust.
347 (unset_tdesc_filename_cmd): Adjust.
348 (maint_print_c_tdesc_cmd): Adjust.
349
0b2f7ade
SM
3502021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * target-descriptions.c (struct target_desc_info): Initialize
353 fields.
354 (get_tdesc_info): Use new.
355 (target_desc_info_free): Use delete.
356
820c4490
SM
3572021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
358
359 * target-descriptions.c (struct target_desc_info) <fetched>:
360 bool.
361 (target_find_description): Adjust.
362 (target_clear_description): Adjust.
363
c2962e6a
SM
3642021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * target-descriptions.c (struct target_desc_info) <tdesc>:
367 Adjust doc.
368 (target_desc_fetched): Remove.
369 (current_target_desc): Remove.
370 (target_description_filename): Remove.
371 (target_find_description): Adjust.
372 (target_clear_description): Adjust.
373 (target_current_description): Adjust.
374 (set_tdesc_filename_cmd): Adjust.
375 (show_tdesc_filename_cmd): Adjust.
376 (unset_tdesc_filename_cmd): Adjust.
377 (maint_print_c_tdesc_cmd): Adjust.
378 (maint_print_xml_tdesc_cmd): Adjust.
379
8a82de58
AB
3802021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * infcmd.c (notice_new_inferior): Change parameter type.
383 * inferior.h (notice_new_inferior): Change parameter type.
384 * remote.c (remote_notice_new_inferior): Change parameter type to
385 bool. Also update type of local variable to bool.
386 (remote_target::update_thread_list): Change type of local variable
387 to bool.
388 (remote_target::process_stop_reply): Pass bool instead of int to
389 remote_notice_new_inferior.
390
bedc4734
SM
3912021-05-07 Simon Marchi <simon.marchi@efficios.com>
392
393 * target.c (target_stack::unpush): Call target_ops::find_beneath
394 to get the target beneath `t`.
395
27f0a431
SM
3962021-05-07 Simon Marchi <simon.marchi@efficios.com>
397
398 * target.c (target_close): Check in all inferiors that the
399 target is not pushed.
400
1d1669e4
AM
4012021-05-07 Aaron Merey <amerey@redhat.com>
402
403 * debuginfod-support.c (debuginfod_init): Remove.
404 (get_debuginfod_client): New function.
405
2698f5ea
TT
4062021-05-07 Tom Tromey <tom@tromey.com>
407
408 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
409 * utils.c (streq_hash): Remove.
410 * utils.h (streq_hash): Don't declare.
411 * completer.c (completion_tracker::discard_completions): Update
412 comment.
413 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
414
13123da8
SM
4152021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * Re-format all Python files using black.
418
9589edb8
AB
4192021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * guile/guile-internal.h (gdbscm_safe_source_script): Change
422 function return type.
423 * guile/guile.c (gdbscm_source_script): Update to handle change in
424 gdbscm_safe_source_script.
425 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
426 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
427 type.
428
ec66d6ea
SM
4292021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * inferior.h (class inferior) <args>: Change type to
432 unique_xmalloc_ptr.
433 * inferior.c (inferior::~inferior): Don't free args.
434 * infcmd.c (get_inferior_args): Adjust.
435 (set_inferior_args): Adjust.
436
0618ecf6
AB
4372021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
440 breakpoint locations when the breakpoint actually has a location.
441
79aabb73
TBA
4422021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
443
444 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
445 * mi/mi-cmds.c: Change the binding of "-break-condition" to
446 mi_cmd_break_condition.
447 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
448 * breakpoint.h (set_breakpoint_condition): Declare a new
449 overload.
450 * breakpoint.c (set_breakpoint_condition): New overloaded function
451 extracted out from ...
452 (condition_command): ... this.
453 * NEWS: Mention the change.
454
10e578d7
TBA
4552021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
456
457 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
458 '--force-condition' flag to force the condition in the
459 '-break-insert' and '-dprintf-insert' commands.
460 * NEWS: Mention the change.
461
225bda24
TV
4622021-05-04 Tom de Vries <tdevries@suse.de>
463
464 PR guile/27806
465 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
466 memory functions.
467
b8efb248
TT
4682021-04-30 Tom Tromey <tom@tromey.com>
469
470 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
471 (add_signatured_type_cu_to_table): Remove.
472 (create_debug_type_hash_table): Assume dwo_file is non-null.
473 (create_debug_types_hash_table): Update comment.
474 (create_all_type_units): Remove.
475 (sort_tu_by_abbrev_offset): Update comment.
476 (build_type_psymtabs): Rename from build_type_psymtabs_1.
477 (build_type_psymtabs): Remove.
478 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
479 Update.
480 (read_comp_units_from_section): Add types_htab, section_kind
481 parameters.
482 (create_all_comp_units): Read type units.
483
91eea9cc
TT
4842021-04-30 Tom Tromey <tom@tromey.com>
485
486 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
487 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
488 <get_cu>: Now inline.
489 <all_type_units>: Remove.
490 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
491 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
492 (dwarf2_per_bfd::get_tu): Remove.
493 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
494 (create_signatured_type_table_from_index)
495 (create_signatured_type_table_from_debug_names)
496 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
497 (dwarf2_base_index_functions::expand_all_symtabs)
498 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
499 (dwarf2_base_index_functions::map_symbol_filenames)
500 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
501 (add_signatured_type_cu_to_table, create_all_type_units)
502 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
503 (create_all_comp_units): Update.
504 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
505 (write_debug_names): Update.
506
0d305d5c
TT
5072021-04-30 Tom Tromey <tom@tromey.com>
508
509 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
510 allocate_signatured_type>: Change return type.
511 <all_comp_units, all_type_units>: Hold unique pointers.
512 (struct dwarf2_per_cu_data): Add constructor and initializers.
513 (struct signatured_type): Derive from dwarf2_per_cu_data.
514 * dwarf2/read.c (type_unit_group): Derive from
515 dwarf2_per_cu_data.
516 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
517 (dwarf2_per_bfd::get_tu)
518 (dwarf2_per_bfd::allocate_signatured_type)
519 (dwarf2_per_bfd::allocate_signatured_type)
520 (create_cu_from_index_list, create_cus_from_index_list)
521 (create_signatured_type_table_from_index)
522 (create_signatured_type_table_from_debug_names)
523 (create_addrmap_from_aranges)
524 (dwarf2_base_index_functions::find_last_source_symtab)
525 (dw_expand_symtabs_matching_file_matcher)
526 (dwarf2_gdb_index::expand_symtabs_matching)
527 (dwarf2_base_index_functions::map_symbol_filenames)
528 (create_cus_from_debug_names_list)
529 (dw2_debug_names_iterator::next)
530 (dwarf2_debug_names_index::expand_symtabs_matching)
531 (create_debug_type_hash_table, add_type_unit)
532 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
533 Update.
534 (allocate_type_unit_groups_table): Use delete.
535 (create_type_unit_group): Change return type. Use new.
536 (get_type_unit_group, build_type_psymtabs_1)
537 (build_type_psymtab_dependencies)
538 (process_skeletonless_type_unit, set_partial_user)
539 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
540 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
541 (read_signatured_type): Update.
542 (dwarf2_find_containing_comp_unit): Change type of
543 'all_comp_units'.
544 (run_test): Update.
545 (dwarf2_per_bfd::allocate_per_cu)
546 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
547 Use new.
548 (add_signatured_type_cu_to_table): Update.
549 * dwarf2/index-write.c (write_one_signatured_type)
550 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
551 (write_debug_names): Update.
552
1bee48c7
TT
5532021-04-30 Tom Tromey <tromey@adacore.com>
554
555 * nat/windows-nat.h (get_image_name): Don't declare.
556 * nat/windows-nat.c (get_image_name): Now static.
557
e228ef97
TT
5582021-04-30 Tom Tromey <tromey@adacore.com>
559
560 * windows-nat.c (windows_nat::handle_load_dll): Update.
561 (windows_nat_target::get_windows_debug_event): Call
562 dll_loaded_event.
563 (windows_add_all_dlls, windows_add_dll): Move to
564 nat/windows-nat.c.
565 * nat/windows-nat.h (handle_load_dll): Change parameters.
566 (dll_loaded_event, windows_add_all_dlls): Declare.
567 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
568 from windows-nat.c.
569 (dll_loaded_event): New function.
570
de071872
TT
5712021-04-30 Tom Tromey <tromey@adacore.com>
572
573 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
574 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
575 Declare.
576 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
577 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
578
9e439f00
TT
5792021-04-30 Tom Tromey <tromey@adacore.com>
580
581 * windows-nat.c: Move code to nat/windows-nat.[ch].
582 (_initialize_windows_nat): Call initialize_loadable.
583 * nat/windows-nat.h (AdjustTokenPrivileges)
584 (DebugActiveProcessStop, DebugBreakProcess)
585 (DebugSetProcessKillOnExit, EnumProcessModules)
586 (EnumProcessModulesEx, GetModuleInformation)
587 (GetModuleFileNameExA, GetModuleFileNameExW)
588 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
589 (GetCurrentConsoleFont, Wow64SuspendThread)
590 (Wow64GetThreadContext, Wow64SetThreadContext)
591 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
592 (AdjustTokenPrivileges_ftype)
593 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
594 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
595 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
596 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
597 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
598 (GetConsoleFontSize_ftype)
599 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
600 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
601 (Wow64GetThreadSelectorEntry_ftype): Likewise.
602 (initialize_loadable): Declare.
603 * nat/windows-nat.c (AdjustTokenPrivileges)
604 (DebugActiveProcessStop, DebugBreakProcess)
605 (DebugSetProcessKillOnExit, EnumProcessModules)
606 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
607 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
608 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
609 (Wow64GetThreadContext, Wow64SetThreadContext)
610 (Wow64GetThreadSelectorEntry): Define.
611 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
612 from windows-nat.c.
613 (initialize_loadable): Likewise, and rename.
614
1053c638
TT
6152021-04-30 Tom Tromey <tromey@adacore.com>
616
617 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
618 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
619 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
620 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
621 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
622 (bad): New template functions.
623 (_initialize_loadable): Update.
624
2869ac4b
TT
6252021-04-30 Tom Tromey <tromey@adacore.com>
626
627 * ada-lang.c (ada_index_type): Use ada_check_typedef.
628
e197dfae
SM
6292021-04-29 Simon Marchi <simon.marchi@efficios.com>
630
631 * auto-load.h: Split namespace declaration.
632
89ba430c
SM
6332021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * infrun.c (save_waitstatus): Move variables to inner scope.
636
8eb82ba1
AB
6372021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * NEWS: Fix typo and stray full stop.
640
db2534b7
TT
6412021-04-28 Tom Tromey <tromey@adacore.com>
642
643 * ada-exp.y (primary): Use new type for null pointer.
644 * ada-lang.c (ada_type_match): Remove "may_deref"
645 parameter. Handle null pointer.
646 (ada_args_match): Update.
647 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
648 Handle null pointer.
649
edeaceda
AB
6502021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * NEWS: Mention new commands.
653 * python/python.c (python_ignore_environment): New static global.
654 (show_python_ignore_environment): New function.
655 (set_python_ignore_environment): New function.
656 (python_dont_write_bytecode): New static global.
657 (show_python_dont_write_bytecode): New function.
658 (set_python_dont_write_bytecode): New function.
659 (_initialize_python): Register new commands.
660
041ca48e
AB
6612021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 * extension-priv.h (struct extension_language_ops): Rename
664 'finish_initialization' to 'initialize'.
665 * extension.c (finish_ext_lang_initialization): Renamed to...
666 (ext_lang_initialization): ...this, update comment, and updated
667 the calls to reflect the change in struct extension_language_ops.
668 * extension.h (finish_ext_lang_initialization): Renamed to...
669 (ext_lang_initialization): ...this.
670 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
671 (gdbscm_initialize): ...this, update comment at definition.
672 (guile_extension_ops): Update.
673 * main.c (captured_main_1): Update call to
674 finish_ext_lang_initialization.
675 * python/python.c (gdbpy_finish_initialization): Rename to...
676 (gdbpy_initialize): ...this, update comment at definition, and
677 update call to do_finish_initialization.
678 (python_extension_ops): Update.
679 (do_finish_initialization): Rename to...
680 (do_initialize): ...this, and update comment.
681
1178f01a
AB
6822021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
683
684 * main.c (captured_main_1): Add a call to
685 finish_ext_lang_initialization.
686 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
687
880ae75a
AB
6882021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
689
690 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
691 (gdbscm_finish_initialization): Add code moved from
692 _initialize_guile.
693 (_initialize_guile): Move code to gdbscm_finish_initialization.
694 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
695 _initialize_scm_arch.
696 (_initialize_scm_arch): New function.
697 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
698 into _initialize_scm_block.
699 (_initialize_scm_block): New function.
700 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
701 into _initialize_scm_frame.
702 (_initialize_scm_frame): New function.
703 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
704 into _initialize_scm_objfile.
705 (_initialize_scm_objfile): New function.
706 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
707 code into _initialize_scm_progspace.
708 (_initialize_scm_progspace): New function.
709 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
710 into _initialize_scm_symbol.
711 (_initialize_scm_symbol): New function.
712 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
713 into _initialize_scm_symtab.
714 (_initialize_scm_symtab): New function.
715 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
716 _initialize_scm_type.
717 (_initialize_scm_type): New function.
718
8e3685bf
AB
7192021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * python/py-arch.c (_initialize_py_arch): New function.
722 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
723 * python/py-block.c (_initialize_py_block): New function.
724 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
725 * python/py-inferior.c (_initialize_py_inferior): New function.
726 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
727 * python/py-objfile.c (_initialize_py_objfile): New function.
728 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
729 * python/py-progspace.c (_initialize_py_progspace): New function.
730 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
731 * python/py-registers.c (_initialize_py_registers): New function.
732 (gdbpy_initialize_registers): Move code to
733 _initialize_py_registers.
734 * python/py-symbol.c (_initialize_py_symbol): New function.
735 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
736 * python/py-symtab.c (_initialize_py_symtab): New function.
737 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
738 * python/py-type.c (_initialize_py_type): New function.
739 (gdbpy_initialize_types): Move code to _initialize_py_type.
740 * python/py-unwind.c (_initialize_py_unwind): New function.
741 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
742 * python/python.c (_initialize_python): Move call to
743 do_start_initialization to gdbpy_finish_initialization.
744 (gdbpy_finish_initialization): Add call to
745 do_start_initialization.
746
913832e9
AB
7472021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
748
749 * extension.c (struct scoped_default_signal): New struct.
750 (scoped_default_sigint): New typedef.
751 (finish_ext_lang_initialization): Make use of
752 scoped_default_sigint.
753
a3b5ef3e
AB
7542021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * main.c (captured_main_1): Don't pass argument to gdb_init.
757 * top.c (gdb_init): Remove unused argument, and add header
758 comment.
759 * top.h (gdb_init): Remove argument.
760
b9f90c72
LM
7612021-04-27 Luis Machado <luis.machado@linaro.org>
762
763 * psymtab.c (psymbol_functions::dump): Output newline.
764 Remove wrap.
765 * symmisc.c (dump_objfile): Likewise.
766
2c473def
MW
7672021-04-27 Michael Weghorn <m.weghorn@posteo.de>
768 Simon Marchi <simon.marchi@polymtl.ca>
769
770 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
771 when attaching the 'auto_load_new_objfile' observer, so
772 other observers can specify it as a dependency.
773 * gdb/auto-load.h (struct token): Declare
774 'auto_load_new_objfile_observer_token' as token to be used
775 for the 'auto_load_new_objfile' observer.
776 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
777 'python_new_objfile' observer depend on 'auto_load_new_objfile'
778 observer, so it gets notified after the latter.
779
9a6e099f
MW
7802021-04-27 Michael Weghorn <m.weghorn@posteo.de>
781 Simon Marchi <simon.marchi@polymtl.ca>
782
783 * unittests/observable-selftests.c (dependency_test_counters):
784 New.
785 (observer_token0, observer_token1, observer_token2,
786 observer_token3, observer_token4, observer_token5): New.
787 (struct dependency_observer_data): New struct.
788 (observer_dependency_test_callback): New function.
789 (test_observers): New.
790 (run_dependency_test): New function.
791 (test_dependency): New.
792 (_initialize_observer_selftest): Register dependency test.
793
bea3329b
SM
7942021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
795
796 PR gdb/27773
797 * cli/cli-dump.c (dump_binary_file): Check result of
798 gdb_fopen_cloexec.
799
c290cb01
ST
8002021-04-25 Sergei Trofimovich <siarheit@google.com>
801
802 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
803 by passing `process_stratum_target*` parameter.
804
fbb46296
LS
8052021-04-25 Lancelot Six <lsix@lancelotsix.com>
806
807 PR gdb/22640
808 * typeprint.h (struct type_print_options): Add print_in_hex
809 flag.
810 (struct print_offset_data): Add print_in_hex flag, add a
811 constructor accepting a type_print_options* argument.
812 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
813 default value for print_in_hex.
814 (print_offset_data::indentation): Allow more horizontal space.
815 (print_offset_data::print_offset_data): Add ctor.
816 (print_offset_data::maybe_print_hole, print_offset_data::update):
817 Handle the print_in_hex flag.
818 (whatis_exp): Handle 'x' and 'd' flags.
819 (print_offsets_and_sizes_in_hex): Declare.
820 (set_print_offsets_and_sizes_in_hex): Create.
821 (show_print_offsets_and_sizes_in_hex): Create.
822 (_initialize_typeprint): Update help message for the ptype
823 command, register the 'set print type hex' and 'show print type
824 hex' commands.
825 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
826 (c_type_print_base): Construct the print_offset_data
827 object using the type_print_optons parameter.
828 * rust-lang.c (rust_language::print_type): Construct the
829 print_offset_data object using the type_print_optons parameter.
830 * NEWS: Mention the new flags of the ptype command.
831
18bbba46
LS
8322021-04-25 Lancelot Six <lsix@lancelotsix.com>
833
834 * typeprint.h (struct type_print_options): Move before
835 print_offset_data.
836
77393c9b
JB
8372021-04-25 Joel Brobecker <brobecker@adacore.com>
838
839 GDB 10.2 released.
840
98c897e3
SM
8412021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
842
843 * observable.c (observer_debug): Change to bool.
844
9fc29955
AB
8452021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * dwarf2/read.c: Add 'unordered_set' include.
848 (dwarf2_base_index_functions::map_symbol_filenames): Replace
849 'visited' hash table with 'qfn_cache' unordered_set. Remove use
850 of per_Bfd->filenames_cache cache, and use function local
851 filenames_cache instead. Reindent.
852 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
853
0406545d
SM
8542021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
855
856 * breakpoint.c (iterate_over_bp_locations): Change callback to
857 function view, remove data parameter.
858 * breakpoint.h (iterate_over_bp_locations): Likewise.
859 * record-full.c (record_full_sync_record_breakpoints): Remove
860 data parameter.
861
432ce4cf
TT
8622021-04-22 Tom Tromey <tom@tromey.com>
863
864 * c-typeprint.c (c_type_print_base_struct_union): Use
865 print_spaces_filtered_with_print_options.
866
e25d6d93
SM
8672021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
868
869 PR gdb/27757
870 * python/py-type.c (typy_range): Check that bounds are constant
871 before accessing them as such.
872 * guile/scm-type.c (gdbscm_type_range): Likewise.
873
4efeb0d3
TBA
8742021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
875
876 * Makefile.in (COMMON_SFILES): Remove continuations.c.
877 * inferior.c (inferior::add_continuation): New method, adapted
878 from 'add_inferior_continuation'.
879 (inferior::do_all_continuations): New method, adapted from
880 'do_all_inferior_continuations'.
881 (inferior::~inferior): Clear the list of continuations directly.
882 * inferior.h (class inferior) <continuations>: Rename into...
883 <m_continuations>: ...this and make private.
884 * continuations.c: Remove.
885 * continuations.h: Remove.
886 * event-top.c: Don't include "continuations.h".
887
888 Update the users below.
889 * inf-loop.c (inferior_event_handler)
890 * infcmd.c (attach_command)
891 (notice_new_inferior): Update.
892
c4c493de
TBA
8932021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
894
895 * inferior.h (class inferior) <continuations>: Change the type
896 to be an std::list of std::function's.
897 Update the references and uses below.
898 * continuations.c (struct continuation): Delete.
899 (make_continuation): Delete.
900 (do_my_continuations_1): Delete.
901 (do_my_continuations): Delete.
902 (discard_my_continuations_1): Delete.
903 (discard_my_continuations): Delete.
904 (add_inferior_continuation): Update.
905 (do_all_inferior_continuations): Update.
906 (discard_all_inferior_continuations): Update.
907 * continuations.h (add_inferior_continuation): Update to take
908 an std::function as the parameter.
909 * infcmd.c (struct attach_command_continuation_args): Delete.
910 (attach_command_continuation): Delete.
911 (attach_command_continuation_free_args): Delete.
912 (attach_command): Update.
913 (notice_new_inferior): Update.
914
1194676e
TBA
9152021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
916
917 * continuations.h: Update the general comment.
918 * inferior.h (class inferior) <continuations>: Update the comment.
919 * interps.c: Do not include "continuations.h".
920
35682f0a
TBA
9212021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
922
923 * continuations.h (do_all_inferior_continuations): Remove the 'err'
924 parameter. Update the references below.
925 * continuations.c (do_my_continuations_1)
926 (do_my_continuations)
927 (do_all_inferior_continuations): Update.
928 * inf-loop.c (inferior_event_handler): Update.
929 * infcmd.c (attach_command_continuation): Update.
930
6fee5eee
TBA
9312021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932
933 * infcmd.c (attach_post_wait): Update the function comment.
934
27d0790a
TBA
9352021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
936
937 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
938 Update the references below.
939 (struct attach_command_continuation_args)
940 (attach_command_continuation)
941 (attach_command_continuation_free_args)
942 (attach_command)
943 (notice_new_inferior): Update to remove the reference to 'args'.
944
c39ebbf4
TV
9452021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
946 Tom de Vries <tdevries@suse.de>
947
948 PR remote/27710
949 * remote.c (remote_target_is_non_stop_p): New function.
950 * remote.h (remote_target_is_non_stop_p): Declare.
951 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
952 to check non-stopness using notif_state->remote rather current target.
953
22f80c0f
TT
9542021-04-22 Tom Tromey <tom@tromey.com>
955
956 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
957 (struct typed_val_int) <val>: Now ULONGEST.
958 (rust_parser::parse_array_type): Remove negative check.
959 (rust_lex_int_test): Change 'value' to ULONGEST.
960
05f3c0f0
AB
9612021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
962
963 * arch-utils.c (default_addressable_memory_unit_size): Return a
964 value based on bfd's bits per byte.
965
7e7a35fb
TT
9662021-04-21 Tom Tromey <tom@tromey.com>
967
968 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
969 unsigned char.
970 (struct dwarf2_per_cu_data): Rearrange.
971 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
972 unsigned char.
973 (struct comp_unit_head): Rearrange.
974 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
975
ff507520
TV
9762021-04-21 Tom de Vries <tdevries@suse.de>
977
978 PR build/27681
979 * configure.ac: Remove --without-included-regex/--with-included-regex.
980 * config.in: Regenerate.
981 * configure: Regenerate.
982 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
983
10a636cc
TBA
9842021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
985
986 * breakpoint.h (create_breakpoint): Add a new parameter,
987 'force_condition'.
988 * breakpoint.c (create_breakpoint): Use the 'force_condition'
989 argument when 'parse_extra' is false to check if the condition
990 is invalid at all of the breakpoint locations.
991 Update the users below.
992 (break_command_1)
993 (dprintf_command)
994 (trace_command)
995 (ftrace_command)
996 (strace_command)
997 (create_tracepoint_from_upload): Update.
998 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
999 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1000 * python/py-breakpoint.c (bppy_init): Update.
1001 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1002
85c88e2a
TBA
10032021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1004
1005 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1006 disabled-by-condition locations on MI-like output.
1007 (breakpoint_1): Do not display the disabled-by-condition footnote
1008 if the output is MI-like.
1009
fd34472c
FC
10102021-04-21 Frederic Cambus <fred@statdns.com>
1011
1012 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1013 update year range in generated copyright notices.
1014
184dcd81
FW
10152021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1016
1017 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1018 qualifier_seq_noopt.
1019
525174e8
FW
10202021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1021
1022 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1023
f5dc2ee3
AB
10242021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1025
1026 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1027 (producer_is_icc): Replace use of std::regex with gdb's
1028 compiled_regex.
1029
42c2c694
TT
10302021-04-17 Tom Tromey <tom@tromey.com>
1031
1032 PR gdb/23743:
1033 * dwarf2/read.c (class offset_view): New.
1034 (struct symbol_table_slot): Remove.
1035 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1036 <symbol_name_index, symbol_vec_index>: New methods.
1037 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1038 Rewrite.
1039 (read_gdb_index_from_buffer): Update.
1040 (struct dw2_symtab_iterator) <vec>: Change type.
1041 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1042 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1043 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1044 <append_array, append_offset>: New methods.
1045 (write_hash_table, add_address_entry, write_gdbindex_1)
1046 (write_debug_names): Update.
1047 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1048
da314dd3
TT
10492021-04-17 Tom Tromey <tom@tromey.com>
1050
1051 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1052 partial_symtabs.
1053
0b7b2c2a
TT
10542021-04-17 Tom Tromey <tom@tromey.com>
1055
1056 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1057 from map_matching_symbols. Change parameters.
1058 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1059 Rename from map_matching_symbols. Change parameters.
1060 * dwarf2/read.c (struct dwarf2_gdb_index)
1061 <expand_matching_symbols>: Rename from map_matching_symbols.
1062 Change parameters.
1063 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1064 Rename from map_matching_symbols. Change parameters.
1065 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1066 dw2_map_matching_symbols. Change parameters.
1067 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1068 implementation.
1069 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1070 map_matching_symbols. Change parameters.
1071 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1072 from map_matching_symbols. Change parameters.
1073 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1074 map_matching_symbols. Change parameters.
1075 * ada-lang.c (map_matching_symbols): New function.
1076 (add_nonlocal_symbols): Update.
1077
90160b57
TT
10782021-04-17 Tom Tromey <tom@tromey.com>
1079
1080 * quick-symbol.h (struct quick_symbol_functions)
1081 <expand_symtabs_with_fullname>: Remove.
1082 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1083 Remove.
1084 * psympriv.h (struct psymbol_functions)
1085 <expand_symtabs_with_fullname>: Remove.
1086 * dwarf2/read.c (struct dwarf2_base_index_functions)
1087 <expand_symtabs_with_fullname>: Remove.
1088 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1089 Remove.
1090 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1091 Update comment.
1092 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1093 Rewrite.
1094
7089bd88
TT
10952021-04-17 Tom Tromey <tom@tromey.com>
1096
1097 * symfile-debug.c (objfile::expand_symtabs_for_function):
1098 Rewrite.
1099 * quick-symbol.h (struct quick_symbol_functions)
1100 <expand_symtabs_for_function>: Remove.
1101 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1102 Remove.
1103 * psympriv.h (struct psymbol_functions)
1104 <expand_symtabs_for_function>: Remove.
1105 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1106 Update comment.
1107 * dwarf2/read.c (struct dwarf2_gdb_index)
1108 <expand_symtabs_for_function>: Remove.
1109 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1110 Remove.
1111 (find_slot_in_mapped_hash): Remove.
1112 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1113 (dw2_symtab_iter_init): Remove one overload.
1114 (dwarf2_gdb_index::expand_symtabs_for_function)
1115 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1116
536a40f3
TT
11172021-04-17 Tom Tromey <tom@tromey.com>
1118
1119 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1120 Rewrite.
1121 * quick-symbol.h (struct quick_symbol_functions)
1122 <map_symtabs_matching_filename>: Remove.
1123 * psymtab.c (partial_map_expand_apply)
1124 (psymbol_functions::map_symtabs_matching_filename): Remove.
1125 * psympriv.h (struct psymbol_functions)
1126 <map_symtabs_matching_filename>: Remove.
1127 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1128 Update comment.
1129 * dwarf2/read.c (struct dwarf2_base_index_functions)
1130 <map_symtabs_matching_filename>: Remove.
1131 (dw2_map_expand_apply)
1132 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1133 Remove.
1134
84d865e3
TT
11352021-04-17 Tom Tromey <tom@tromey.com>
1136
1137 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1138 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1139 Remove.
1140 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1141 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1142 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1143 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1144 Remove.
1145 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1146 (dwarf2_gdb_index::lookup_symbol)
1147 (dwarf2_debug_names_index::lookup_symbol): Remove.
1148
3bfa51a7
TT
11492021-04-17 Tom Tromey <tom@tromey.com>
1150
1151 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1152 * symmisc.c (maintenance_expand_symtabs): Update.
1153 * symfile.c (expand_symtabs_matching): Update.
1154 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1155 parameter.
1156 * quick-symbol.h (struct quick_symbol_functions)
1157 <expand_symtabs_matching>: Add 'domain' parameter.
1158 * psymtab.c (recursively_search_psymtabs)
1159 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1160 parameter.
1161 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1162 Add 'domain' parameter.
1163 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1164 'domain' parameter.
1165 * linespec.c (iterate_over_all_matching_symtabs): Update.
1166 * dwarf2/read.c (struct dwarf2_gdb_index)
1167 <expand_symtabs_matching>: Add 'domain' parameter.
1168 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1169 'domain' parameter.
1170 (dw2_expand_symtabs_matching)
1171 (dwarf2_gdb_index::expand_symtabs_matching)
1172 (dw2_debug_names_iterator)
1173 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1174 parameter.
1175
03a8ea51
TT
11762021-04-17 Tom Tromey <tom@tromey.com>
1177
1178 * symtab.c (global_symbol_searcher::expand_symtabs)
1179 (default_collect_symbol_completion_matches_break_on): Update.
1180 * symmisc.c (maintenance_expand_symtabs): Update.
1181 * symfile.h (expand_symtabs_matching): Add search_flags
1182 parameter.
1183 * symfile.c (expand_symtabs_matching): Add search_flags
1184 parameter.
1185 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1186 search_flags parameter.
1187 * quick-symbol.h (struct quick_symbol_functions)
1188 <expand_symtabs_matching>: Add search_flags parameter.
1189 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1190 * psymtab.c (recursively_search_psymtabs)
1191 (psymbol_functions::expand_symtabs_matching): Add search_flags
1192 parameter.
1193 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1194 Add search_flags parameter.
1195 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1196 search_flags parameter.
1197 * linespec.c (iterate_over_all_matching_symtabs): Update.
1198 * dwarf2/read.c (struct dwarf2_gdb_index)
1199 <expand_symtabs_matching>: Add search_flags parameter.
1200 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1201 search_flags parameter.
1202 (dw2_map_matching_symbols): Update.
1203 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1204 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1205 parameter.
1206 (dw2_debug_names_iterator): Change block_index to search flags.
1207 <m_block_index>: Likewise.
1208 (dw2_debug_names_iterator::next)
1209 (dwarf2_debug_names_index::lookup_symbol)
1210 (dwarf2_debug_names_index::expand_symtabs_for_function)
1211 (dwarf2_debug_names_index::map_matching_symbols)
1212 (dwarf2_debug_names_index::map_matching_symbols): Update.
1213 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1214 search_flags parameter.
1215 * ada-lang.c (ada_add_global_exceptions)
1216 (collect_symbol_completion_matches): Update.
1217
df35e626
TT
12182021-04-17 Tom Tromey <tom@tromey.com>
1219
1220 * symtab.c (default_collect_symbol_completion_matches_break_on):
1221 Update.
1222 * symfile.h (expand_symtabs_matching): Return bool.
1223 * symfile.c (expand_symtabs_matching): Return bool.
1224 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1225 bool.
1226 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1227 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1228 bool.
1229 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1230 bool.
1231 * psympriv.h (struct psymbol_functions)
1232 <expand_symtabs_matching>: Return bool.
1233 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1234 bool.
1235 * dwarf2/read.c (struct dwarf2_gdb_index)
1236 <expand_symtabs_matching>: Return bool.
1237 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1238 Return bool.
1239 (dw2_expand_symtabs_matching_symbol): Return bool.
1240 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1241 (dw2_expand_symtabs_matching)
1242 (dwarf2_gdb_index::expand_symtabs_matching)
1243 (dwarf2_debug_names_index::expand_symtabs_matching)
1244 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1245
e357e990
TT
12462021-04-17 Tom Tromey <tom@tromey.com>
1247
1248 * quick-symbol.h (enum block_search_flag_values): New.
1249 (block_search_flags): New enum flags type.
1250
3cbc7ac3
TT
12512021-04-16 Tom Tromey <tom@tromey.com>
1252
1253 * rust-parse.c: New file.
1254 * rust-exp.y: Remove.
1255 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1256 (SFILES): Remove rust-exp.y.
1257 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1258
1b6b755e
LM
12592021-04-16 Luis Machado <luis.machado@linaro.org>
1260
1261 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1262
c45ecc9d
JB
12632021-04-15 John Baldwin <jhb@FreeBSD.org>
1264
1265 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1266 use throughout file.
1267
a15a276b
TT
12682021-04-15 Tom Tromey <tromey@adacore.com>
1269
1270 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1271 arrays.
1272
644a2e75
TT
12732021-04-15 Tom Tromey <tromey@adacore.com>
1274
1275 * printcmd.c (print_variable_and_value): Use
1276 common_val_print_checked.
1277
9e5e03df
TT
12782021-04-15 Tom Tromey <tromey@adacore.com>
1279
1280 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1281 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1282 Update.
1283 * p-exp.y (variable): Update.
1284 * m2-exp.y (variable): Update.
1285 * go-exp.y (variable): Update.
1286 * expprint.c (dump_for_expression): New overload.
1287 * expop.h (check_objfile): New overload.
1288 (check_constant): New overload.
1289 (class var_value_operation): Use block_symbol.
1290 <get_symbol>: Rewrite.
1291 * eval.c (var_value_operation::evaluate)
1292 (var_value_operation::evaluate_funcall)
1293 (var_value_operation::evaluate_for_address)
1294 (var_value_operation::evaluate_for_address)
1295 (var_value_operation::evaluate_with_coercion)
1296 (var_value_operation::evaluate_for_sizeof)
1297 (var_value_operation::evaluate_for_cast): Update.
1298 * d-exp.y (PrimaryExpression): Update.
1299 * c-exp.y (variable): Update.
1300 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1301 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1302 (ada_var_value_operation::evaluate)
1303 (ada_var_value_operation::resolve)
1304 (ada_funcall_operation::resolve): Update.
1305 * ada-exp.y (write_var_from_sym, write_object_renaming)
1306 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1307 (maybe_overload): Update.
1308 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1309
5809fbf2
TT
13102021-04-15 Tom Tromey <tom@tromey.com>
1311 Andrew Burgess <andrew.burgess@embecosm.com>
1312
1313 * NEWS: Add entry.
1314 * main.c (captured_main_1): Call check_quiet_mode.
1315 * top.c (startup_quiet): New global.
1316 (check_quiet_mode): New function.
1317 (show_startup_quiet): New function.
1318 (init_main): Register new command.
1319 * top.h (check_quiet_mode): Declare.
1320
92e4e97a
AB
13212021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 PR cli/25956
1324 * NEWS: Mention new early init files and command line options.
1325 * config.in: Regenerate.
1326 * configure: Regenerate.
1327 * configure.ac: Define GDBEARLYINIT.
1328 * main.c (get_earlyinit_files): New function.
1329 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1330 CMDARG_EARLYINIT_COMMAND.
1331 (captured_main_1): Add support for new command line flags, and for
1332 processing startup files.
1333 (print_gdb_help): Include startup files in the output.
1334
54b4dcc5
AB
13352021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1336
1337 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1338 (relocate_file_path_maybe_in_datadir): ...this.
1339 (class gdb_initfile_finder): New class.
1340 (get_init_files): Now uses gdb_initfile_finder.
1341 (print_gdb_help): Print 'None found' when there are no init files.
1342
34dc0f95
TBA
13432021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1344
1345 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1346 corresponding child of the abstract DIE when iterating the
1347 children of the concrete DIE.
1348
329534fd
TV
13492021-04-13 Tom de Vries <tdevries@suse.de>
1350
1351 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1352 type to regoff_t *.
1353
d9d2ef05
LM
13542021-04-13 Luis Machado <luis.machado@linaro.org>
1355
1356 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1357 hex values.
1358
c8a37944
WS
13592021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1360
1361 * rs6000-tdep.c: Add support for single-stepping of
1362 prefixed instructions.
1363
b722acca
WS
13642021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1365
e3d528d7
WS
1366 PR gdb/27525
1367 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1368 handle the addpcis/lnia instruction.
1369
13702021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1371
b722acca
WS
1372 * MAINTAINERS (Write After Approval): Add myself.
1373
6ba4cb84
CL
13742021-4-12 Carl Love <cel@us.ibm.com>
1375
1376 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1377 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1378 float128.
1379
d4717483
SM
13802021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1381
1382 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1383 * nat/windows-nat.h: Likewise.
1384
b3885679
EZ
13852021-04-10 Eli Zaretskii <eliz@gnu.org>
1386
1387 * windows-nat.c (windows_nat::handle_load_dll): Call
1388 windows_add_dll if get_image_name failed to glean the name of the
1389 DLL by using the lpImageName pointer.
1390 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1391 (windows_add_dll): Now does what windows_add_all_dlls did before,
1392 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1393 specifies the address where the DLL was loaded into the inferior,
1394 and looks for the single DLL loaded at that address.
1395
1ef6a596
LM
13962021-04-09 Luis Machado <luis.machado@linaro.org>
1397
1398 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1399
83a559f7
DQ
14002021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1401
1402 * darwin-nat.c (darwin_nat_target::resume): Remove status
1403 variable.
1404
16e311ab
FW
14052021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1406
1407 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1408 prologue end for Intel compilers.
1409 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1410 * producer.c (producer_is_icc_ge_19): New function.
1411 * producer.h (producer_is_icc_ge_19): New declaration.
1412
fbb3bcfc
FW
14132021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1414
1415 * producer.c: (producer_is_icc): Update for new version scheme.
1416 (producer_parsing_tests): Update names and expected results.
1417 * producer.h: (producer_is_icc): Update comment accordingly.
1418
e97007b6
SM
14192021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 * target.h (struct target_ops) <follow_fork>: Return void.
1422 (target_follow_fork): Likewise.
1423 * target.c (default_follow_fork): Likewise.
1424 (target_follow_fork): Likewise.
1425 * infrun.c (follow_fork_inferior): Adjust.
1426 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1427 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1428 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1429 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1430 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1431 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1432 * remote.c (class remote_target) <follow_fork>: Likewise.
1433 (remote_target::follow_fork): Likewise.
1434 * target-delegates.c: Re-generate.
1435
dc2b480f
WP
14362021-04-07 Weimin Pan <weimin.pan@oracle.com>
1437
1438 * ctfread.c (fetch_tid_type): New function, use throughout file.
1439 (read_forward_type): New function.
1440 (read_type_record): Call read_forward_type.
1441
0a703a4c
AB
14422021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * f-exp.h (class fortran_structop_operation): New class.
1445 * f-exp.y (exp): Create fortran_structop_operation instead of the
1446 generic structop_operation.
1447 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1448 expression as EVAL_NORMAL if the result type was dynamic so we can
1449 extract the actual array bounds.
1450 (fortran_structop_operation::evaluate): New function.
1451
14522021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1453
1454 * eval.c (evaluate_subexp_standard): Remove
1455 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1456 STRUCTOP_PTR.
1457
30ab3586
AB
14582021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1459
1460 * valops.c (value_cast): Call value_deeply_equal before performing
1461 any cast.
1462
5e18990f
AB
14632021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1464
1465 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1466 the function.
1467
56d467f4
CT
14682021-04-07 Caroline Tice <cmtice@google.com>
1469
1470 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1471 the search paths used resolve relative location of .dwo file.
1472
1fd999d9
AB
14732021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1474
1475 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1476 assert.
1477 (dwarf2_section_info::get_file_name): Add an assert.
1478 (dwarf2_section_info::read_string): Display a minimal, sane error
1479 when the dwarf2_section_info is not associated with a bfd section.
1480
79c02443
AB
14812021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * top.c (staged_gdb_datadir): Update comment.
1484 (set_gdb_datadir): Copy the value of gdb_datadir back into
1485 staged_datadir.
1486 (init_main): Initialise staged_gdb_datadir.
1487
340d00fb
TV
14882021-04-06 Tom de Vries <tdevries@suse.de>
1489
1490 PR breakpoints/25884
1491 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1492 stepping range.
1493
d811a7cf
TV
14942021-04-06 Tom de Vries <tdevries@suse.de>
1495
1496 PR tui/27680
1497 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1498 to style.parse.
1499
306b445a
SM
15002021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1501
1502 * avr-tdep.c (avr_frame_unwind_cache): Use
1503 trad_frame_saved_reg::is_addr.
1504
9161c89a
SM
15052021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1506
1507 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1508 adjust callers.
1509
0072c873
SM
15102021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1511
1512 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1513 objfile parameter for objfile_per_bfd_storage, adjust callers.
1514 (struct standard_psymtab) <standard_psymtab>: Likewise.
1515 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1516 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1517 * ctfread.c (struct ctf_psymtab): Likewise.
1518 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1519 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1520 (dwarf2_create_include_psymtab): Likewise.
1521 * objfiles.h (struct objfile_per_bfd_storage)
1522 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1523 <get_bfd>: New method.
1524 <m_bfd>: New field.
1525 * objfiles.c (get_objfile_bfd_data): Adjust.
1526
9984dd99
SM
15272021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1528
1529 * psymtab.c (partial_symtab::partial_symtab): Change
1530 last_objfile_name to be an std::string.
1531 * symfile.c (allocate_symtab): Likewise.
1532
4a4f97c1
SM
15332021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1536 methods.
1537 (struct objfile) <intern>: Use
1538 objfile::objfile_per_bfd_storage::intern.
1539
0672875f
SM
15402021-04-01 Simon Marchi <simon.marchi@efficios.com>
1541
1542 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1543 with type::is_flag_enum.
1544
9902b327
SM
15452021-04-01 Simon Marchi <simon.marchi@efficios.com>
1546
1547 * gdbtypes.h (struct type) <is_flag_enum,
1548 set_is_flag_enum>: New methods.
1549 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1550 write call sites to use type::set_is_flag_enum.
1551
3bc440a2
SM
15522021-04-01 Simon Marchi <simon.marchi@efficios.com>
1553
1554 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1555 with type::is_declared_class.
1556
aa70e35c
SM
15572021-04-01 Simon Marchi <simon.marchi@efficios.com>
1558
1559 * gdbtypes.h (struct type) <is_declared_class,
1560 set_is_declared_class>: New methods.
1561 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1562 write call sites to use type::set_is_declared_class.
1563
bfb9f5dc
BS
15642021-02-28 Boris Staletic <boris.staletic@gmail.com>
1565
1566 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1567 to avoid deprecation warnings.
1568
733f5eea
ML
15692021-04-01 Martin Liska <mliska@suse.cz>
1570
1571 * cp-name-parser.y: Use startswith instead of strncmp.
1572 * m2-exp.y: Likewise.
1573 * macroexp.c (substitute_args): Likewise.
1574 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1575 * rust-exp.y: Likewise.
1576
af82f89d
TT
15772021-03-31 Tom Tromey <tom@tromey.com>
1578
1579 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1580 with dw2_map_matching_symbols.
1581 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1582 dw2_expand_symtabs_matching.
1583
3570682a
TT
15842021-03-31 Tom Tromey <tromey@adacore.com>
1585
1586 * dwarf2/stringify.h: Fix typo.
1587
8a91fbdf
SM
15882021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1589
1590 PR gdb/27541
1591 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1592 with objfiles using READNOW.
1593
9f67fc59
TT
15942021-03-29 Tom Tromey <tromey@adacore.com>
1595
1596 * top.c (check_frame_language_change): Update.
1597 * language.c (language_info): Remove parameter.
1598 * language.h (language_info): Remove parameter.
1599
9b8ffbf4
LM
16002021-03-29 Luis Machado <luis.machado@linaro.org>
1601
1602 * compile/compile.c (get_args): Don't add empty argv entries.
1603
25b48839
RO
16042021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1605
1606 gdb:
1607 * procfs.c (procfs_target::attach): Define inf.
1608 Use it.
1609 (procfs_target::create_inferior): Likewise.
1610
edc02ceb
TT
16112021-03-28 Tom Tromey <tom@tromey.com>
1612
1613 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1614 (elf_symfile_read): Simplify.
1615 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1616 (make_lazy_dwarf_reader): New function.
1617 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1618 (dwarf2_initialize_objfile): Return void. Remove index_kind
1619 parameter. Push on 'qf' list.
1620 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1621 type. Remove 'index_kind' parameter.
1622 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1623
6e23d91a
TT
16242021-03-27 Tom Tromey <tom@tromey.com>
1625
1626 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1627
594b8948
TT
16282021-03-27 Tom Tromey <tom@tromey.com>
1629
1630 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1631
efe1ecd8
LS
16322021-03-26 Lancelot Six <lsix@lancelotsix.com>
1633
1634 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1635 rid of 'local'.
1636
f4655dee
TT
16372021-03-26 Tom Tromey <tom@tromey.com>
1638
1639 * symtab.c (struct output_source_filename_data): Add 'output'
1640 method and operator().
1641 (output_source_filename_data::output): Rename from
1642 output_source_filename.
1643 (output_partial_symbol_filename): Remove.
1644 (info_sources_command): Update.
1645 (struct add_partial_filename_data): Add operator().
1646 (add_partial_filename_data::operator()): Rename from
1647 maybe_add_partial_symtab_filename.
1648 (make_source_files_completion_list): Update.
1649 * symfile.c (quick_symbol_functions): Update.
1650 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1651 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1652 'need_fullname'. Remove 'data' parameter.
1653 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1654 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1655 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1656 Change type of 'fun' and 'need_fullname'. Remove 'data'
1657 parameter.
1658 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1659 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1660 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1661 parameter.
1662 (mi_cmd_file_list_exec_source_files): Update.
1663 * dwarf2/read.c
1664 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1665
2315bb2d
TT
16662021-03-26 Tom Tromey <tom@tromey.com>
1667
1668 * ada-lang.c (struct match_data): Add operator().
1669 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1670 (callback): Remove 'callback'.
1671
e2cd5ca4
TT
16722021-03-26 Tom Tromey <tom@tromey.com>
1673
1674 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1675 call make_ignore_params once.
1676
cd43f63e
TT
16772021-03-26 Tom Tromey <tom@tromey.com>
1678
1679 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1680 "user" check.
1681
b4b1a226
SM
16822021-03-26 Simon Marchi <simon.marchi@efficios.com>
1683 Pedro Alves <pedro@palves.net>
1684
1685 * async-event.c: Include "infrun.h".
1686 (async_event_handler_marked): New.
1687 * async-event.h (async_event_handler_marked): Declare.
1688 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1689 inferior before calling target method. Don't commit-resumed if
1690 target_has_pending_events is true.
1691 * remote.c (remote_target::has_pending_events): New.
1692 * target-delegates.c: Regenerate.
1693 * target.c (target_has_pending_events): New.
1694 * target.h (target_ops::has_pending_events): New target method.
1695 (target_has_pending_events): New.
1696
1192f124
SM
16972021-03-26 Simon Marchi <simon.marchi@efficios.com>
1698 Pedro Alves <pedro@palves.net>
1699
1700 * infcmd.c (run_command_1, attach_command, detach_command)
1701 (interrupt_target_1): Use scoped_disable_commit_resumed.
1702 * infrun.c (do_target_resume): Remove
1703 target_commit_resume call.
1704 (commit_resume_all_targets): Remove.
1705 (maybe_set_commit_resumed_all_targets): New.
1706 (maybe_call_commit_resumed_all_targets): New.
1707 (enable_commit_resumed): New.
1708 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1709 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1710 (scoped_disable_commit_resumed::reset)
1711 (scoped_disable_commit_resumed::reset_and_commit)
1712 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1713 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1714 New.
1715 (proceed): Use scoped_disable_commit_resumed and
1716 maybe_call_commit_resumed_all_targets.
1717 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1718 * infrun.h (struct scoped_disable_commit_resumed): New.
1719 (maybe_call_commit_resumed_all_process_targets): New.
1720 (struct scoped_enable_commit_resumed): New.
1721 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1722 * process-stratum-target.h (class process_stratum_target):
1723 <commit_resumed_state>: New.
1724 * record-full.c (record_full_wait_1): Change commit_resumed_state
1725 around calling commit_resumed.
1726 * remote.c (class remote_target) <commit_resume>: Rename to...
1727 <commit_resumed>: ... this.
1728 (struct stop_reply): Move up.
1729 (remote_target::commit_resume): Rename to...
1730 (remote_target::commit_resumed): ... this. Check if there is any
1731 thread pending vCont resume.
1732 (remote_target::remote_stop_ns): Generate stop replies for resumed
1733 but pending vCont threads.
1734 (remote_target::wait_ns): Add gdb_assert.
1735 * target-delegates.c: Regenerate.
1736 * target.c (target_wait, target_resume): Assert that the current
1737 process_stratum target isn't in commit-resumed state.
1738 (defer_target_commit_resume): Remove.
1739 (target_commit_resume): Remove.
1740 (target_commit_resumed): New.
1741 (make_scoped_defer_target_commit_resume): Remove.
1742 (target_stop): Assert that the current process_stratum target
1743 isn't in commit-resumed state.
1744 * target.h (struct target_ops) <commit_resume>: Rename to ...
1745 <commit_resumed>: ... this.
1746 (target_commit_resume): Remove.
1747 (target_commit_resumed): New.
1748 (make_scoped_defer_target_commit_resume): Remove.
1749 * top.c (wait_sync_command_done): Use
1750 scoped_enable_commit_resumed.
1751
e5b9b39f
PA
17522021-03-26 Pedro Alves <pedro@palves.net>
1753
1754 * target.c (target_always_non_stop_p): Also check whether the
1755 target can async.
1756
bab287cd
TT
17572021-03-26 Tom Tromey <tom@tromey.com>
1758
1759 * dwarf2/read.c (dwarf2_read_debug_names)
1760 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1761 (dw2_debug_names_iterator::next, create_type_unit_group):
1762 Simplify.
1763
eff4f69d
PA
17642021-03-25 Pedro Alves <pedro@palves.net>
1765
1766 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1767 around setting the breakpoint.
1768
323fd5b9
PA
17692021-03-25 Pedro Alves <pedro@palves.net>
1770
1771 * remote.c
1772 (remote_target::check_pending_events_prevent_wildcard_vcont):
1773 Check whether the event's ptid is not null_ptid before looking up
1774 the corresponding inferior.
1775
d3cbca38
CD
17762021-03-24 Changbin Du <changbin.du@gmail.com>
1777
1778 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1779 read_code.
1780
328d42d8
SM
17812021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1782
1783 * target.h (current_top_target): Remove, make callers use the
1784 current inferior instead.
1785 * target.c (current_top_target): Remove.
1786
d777bf0d
SM
17872021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1788
1789 * target.h (target_shortname): Change to function declaration.
1790 (target_longname): Likewise.
1791 (target_attach_no_wait): Likewise.
1792 (target_post_attach): Likewise.
1793 (target_prepare_to_store): Likewise.
1794 (target_supports_enable_disable_tracepoint): Likewise.
1795 (target_supports_string_tracing): Likewise.
1796 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1797 (target_supports_dumpcore): Likewise.
1798 (target_dumpcore): Likewise.
1799 (target_can_run_breakpoint_commands): Likewise.
1800 (target_files_info): Likewise.
1801 (target_post_startup_inferior): Likewise.
1802 (target_insert_fork_catchpoint): Likewise.
1803 (target_remove_fork_catchpoint): Likewise.
1804 (target_insert_vfork_catchpoint): Likewise.
1805 (target_remove_vfork_catchpoint): Likewise.
1806 (target_insert_exec_catchpoint): Likewise.
1807 (target_remove_exec_catchpoint): Likewise.
1808 (target_set_syscall_catchpoint): Likewise.
1809 (target_rcmd): Likewise.
1810 (target_can_lock_scheduler): Likewise.
1811 (target_can_async_p): Likewise.
1812 (target_is_async_p): Likewise.
1813 (target_execution_direction): Likewise.
1814 (target_extra_thread_info): Likewise.
1815 (target_pid_to_exec_file): Likewise.
1816 (target_thread_architecture): Likewise.
1817 (target_find_memory_regions): Likewise.
1818 (target_make_corefile_notes): Likewise.
1819 (target_get_bookmark): Likewise.
1820 (target_goto_bookmark): Likewise.
1821 (target_stopped_by_watchpoint): Likewise.
1822 (target_stopped_by_sw_breakpoint): Likewise.
1823 (target_supports_stopped_by_sw_breakpoint): Likewise.
1824 (target_stopped_by_hw_breakpoint): Likewise.
1825 (target_supports_stopped_by_hw_breakpoint): Likewise.
1826 (target_have_steppable_watchpoint): Likewise.
1827 (target_can_use_hardware_watchpoint): Likewise.
1828 (target_region_ok_for_hw_watchpoint): Likewise.
1829 (target_can_do_single_step): Likewise.
1830 (target_insert_watchpoint): Likewise.
1831 (target_remove_watchpoint): Likewise.
1832 (target_insert_hw_breakpoint): Likewise.
1833 (target_remove_hw_breakpoint): Likewise.
1834 (target_can_accel_watchpoint_condition): Likewise.
1835 (target_can_execute_reverse): Likewise.
1836 (target_get_ada_task_ptid): Likewise.
1837 (target_filesystem_is_local): Likewise.
1838 (target_trace_init): Likewise.
1839 (target_download_tracepoint): Likewise.
1840 (target_can_download_tracepoint): Likewise.
1841 (target_download_trace_state_variable): Likewise.
1842 (target_enable_tracepoint): Likewise.
1843 (target_disable_tracepoint): Likewise.
1844 (target_trace_start): Likewise.
1845 (target_trace_set_readonly_regions): Likewise.
1846 (target_get_trace_status): Likewise.
1847 (target_get_tracepoint_status): Likewise.
1848 (target_trace_stop): Likewise.
1849 (target_trace_find): Likewise.
1850 (target_get_trace_state_variable_value): Likewise.
1851 (target_save_trace_data): Likewise.
1852 (target_upload_tracepoints): Likewise.
1853 (target_upload_trace_state_variables): Likewise.
1854 (target_get_raw_trace_data): Likewise.
1855 (target_get_min_fast_tracepoint_insn_len): Likewise.
1856 (target_set_disconnected_tracing): Likewise.
1857 (target_set_circular_trace_buffer): Likewise.
1858 (target_set_trace_buffer_size): Likewise.
1859 (target_set_trace_notes): Likewise.
1860 (target_get_tib_address): Likewise.
1861 (target_set_permissions): Likewise.
1862 (target_static_tracepoint_marker_at): Likewise.
1863 (target_static_tracepoint_markers_by_strid): Likewise.
1864 (target_traceframe_info): Likewise.
1865 (target_use_agent): Likewise.
1866 (target_can_use_agent): Likewise.
1867 (target_augmented_libraries_svr4_read): Likewise.
1868 (target_log_command): Likewise.
1869 * target.c (target_shortname): New.
1870 (target_longname): New.
1871 (target_attach_no_wait): New.
1872 (target_post_attach): New.
1873 (target_prepare_to_store): New.
1874 (target_supports_enable_disable_tracepoint): New.
1875 (target_supports_string_tracing): New.
1876 (target_supports_evaluation_of_breakpoint_conditions): New.
1877 (target_supports_dumpcore): New.
1878 (target_dumpcore): New.
1879 (target_can_run_breakpoint_commands): New.
1880 (target_files_info): New.
1881 (target_post_startup_inferior): New.
1882 (target_insert_fork_catchpoint): New.
1883 (target_remove_fork_catchpoint): New.
1884 (target_insert_vfork_catchpoint): New.
1885 (target_remove_vfork_catchpoint): New.
1886 (target_insert_exec_catchpoint): New.
1887 (target_remove_exec_catchpoint): New.
1888 (target_set_syscall_catchpoint): New.
1889 (target_rcmd): New.
1890 (target_can_lock_scheduler): New.
1891 (target_can_async_p): New.
1892 (target_is_async_p): New.
1893 (target_execution_direction): New.
1894 (target_extra_thread_info): New.
1895 (target_pid_to_exec_file): New.
1896 (target_thread_architecture): New.
1897 (target_find_memory_regions): New.
1898 (target_make_corefile_notes): New.
1899 (target_get_bookmark): New.
1900 (target_goto_bookmark): New.
1901 (target_stopped_by_watchpoint): New.
1902 (target_stopped_by_sw_breakpoint): New.
1903 (target_supports_stopped_by_sw_breakpoint): New.
1904 (target_stopped_by_hw_breakpoint): New.
1905 (target_supports_stopped_by_hw_breakpoint): New.
1906 (target_have_steppable_watchpoint): New.
1907 (target_can_use_hardware_watchpoint): New.
1908 (target_region_ok_for_hw_watchpoint): New.
1909 (target_can_do_single_step): New.
1910 (target_insert_watchpoint): New.
1911 (target_remove_watchpoint): New.
1912 (target_insert_hw_breakpoint): New.
1913 (target_remove_hw_breakpoint): New.
1914 (target_can_accel_watchpoint_condition): New.
1915 (target_can_execute_reverse): New.
1916 (target_get_ada_task_ptid): New.
1917 (target_filesystem_is_local): New.
1918 (target_trace_init): New.
1919 (target_download_tracepoint): New.
1920 (target_can_download_tracepoint): New.
1921 (target_download_trace_state_variable): New.
1922 (target_enable_tracepoint): New.
1923 (target_disable_tracepoint): New.
1924 (target_trace_start): New.
1925 (target_trace_set_readonly_regions): New.
1926 (target_get_trace_status): New.
1927 (target_get_tracepoint_status): New.
1928 (target_trace_stop): New.
1929 (target_trace_find): New.
1930 (target_get_trace_state_variable_value): New.
1931 (target_save_trace_data): New.
1932 (target_upload_tracepoints): New.
1933 (target_upload_trace_state_variables): New.
1934 (target_get_raw_trace_data): New.
1935 (target_get_min_fast_tracepoint_insn_len): New.
1936 (target_set_disconnected_tracing): New.
1937 (target_set_circular_trace_buffer): New.
1938 (target_set_trace_buffer_size): New.
1939 (target_set_trace_notes): New.
1940 (target_get_tib_address): New.
1941 (target_set_permissions): New.
1942 (target_static_tracepoint_marker_at): New.
1943 (target_static_tracepoint_markers_by_strid): New.
1944 (target_traceframe_info): New.
1945 (target_use_agent): New.
1946 (target_can_use_agent): New.
1947 (target_augmented_libraries_svr4_read): New.
1948 (target_log_command): New.
1949 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1950 * infrun.c (set_schedlock_func): Adjust.
1951 * mi/mi-main.c (exec_reverse_continue): Adjust.
1952 * reverse.c (exec_reverse_once): Adjust.
1953 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1954 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1955 * remote-sim.c (gdbsim_target::detach): Adjust.
1956 (gdbsim_target::files_info): Adjust.
1957
b64f703b
TT
19582021-03-24 Tom Tromey <tom@tromey.com>
1959
1960 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1961 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1962 (check_match, dw2_expand_symtabs_matching)
1963 (dwarf2_debug_names_index::map_matching_symbols)
1964 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1965
68f115f8
KS
19662021-03-24 Keith Seitz <keiths@redhat.com>
1967
1968 * compile/compile-cplus-types.c
1969 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1970 thinko.
1971
41c0087b
SM
19722021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1973
1974 * gdbarch.sh (gdbarch_data_registry): Make static.
1975 * gdbarch.c: Re-generate.
1976
ce192338
LM
19772021-03-24 Luis Machado <luis.machado@linaro.org>
1978
1979 * NEWS: Mention memory tagging changes.
1980
bef382e6
LM
19812021-03-24 Luis Machado <luis.machado@linaro.org>
1982
1983 * printcmd.c (decode_format): Handle the 'm' modifier.
1984 (do_examine): Display allocation tags when required/supported.
1985 (should_validate_memtags): New function.
1986 (print_command_1): Display memory tag mismatches.
1987 * valprint.c (show_memory_tag_violations): New function.
1988 (value_print_option_defs): Add new option "memory-tag-violations".
1989 (user_print_options) <memory_tag_violations>: Initialize to 1.
1990 * valprint.h (struct format_data) <print_tags>: New field.
1991 (value_print_options) <memory_tag_violations>: New field.
1992
48136e00
LM
19932021-03-24 Luis Machado <luis.machado@linaro.org>
1994
1995 * printcmd.c: Include gdbsupport/rsp-low.h.
1996 (memory_tag_list): New static global.
1997 (process_print_command_args): Factored out of
1998 print_command_1.
1999 (print_command_1): Use process_print_command_args.
2000 (show_addr_not_tagged, show_memory_tagging_unsupported)
2001 (memory_tag_command, memory_tag_print_tag_command)
2002 (memory_tag_print_logical_tag_command)
2003 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2004 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2005 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2006 functions.
2007 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2008
ffcc2a15
LM
20092021-03-24 Luis Machado <luis.machado@linaro.org>
2010
2011 * aarch64-linux-tdep.c
2012 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2013 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2014
cf44c9fa
LM
20152021-03-24 Luis Machado <luis.machado@linaro.org>
2016
2017 * aarch64-linux-tdep.c
2018 (aarch64_linux_report_signal_info): New function.
2019 (aarch64_linux_init_abi): Register
2020 aarch64_linux_report_signal_info as the report_signal_info hook.
2021 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2022 (SEGV_MTESERR): Define.
2023
b4a7d4fc
LM
20242021-03-24 Luis Machado <luis.machado@linaro.org>
2025
2026 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2027 (aarch64_linux_ltag_tests): New function.
2028 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2029
c7782e50
LM
20302021-03-24 Luis Machado <luis.machado@linaro.org>
2031
2032 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2033 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2034 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2035 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2036 functions.
2037 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2038 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2039 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2040 (aarch64_linux_get_ltag): New functions.
2041 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2042 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2043 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2044 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2045
1e735120
LM
20462021-03-24 Luis Machado <luis.machado@linaro.org>
2047
2048 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2049 bit.
2050 (struct smaps_data): New struct.
2051 (decode_vmflags): Handle the 'mt' flag.
2052 (parse_smaps_data): New function, refactored from
2053 linux_find_memory_regions_full.
2054 (linux_address_in_memtag_page): New function.
2055 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2056 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2057
93e447c6
LM
20582021-03-24 Luis Machado <luis.machado@linaro.org>
2059
2060 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2061 instead of char arrays.
2062
4601818e
LM
20632021-03-24 Luis Machado <luis.machado@linaro.org>
2064
2065 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2066 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2067 nat/aarch64-mte-linux-ptrace.h.
2068 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2069 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2070 override.
2071 <fetch_memtags>: New method override.
2072 <store_memtags>: New method override.
2073 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2074 (aarch64_linux_nat_target::fetch_memtags): New method.
2075 (aarch64_linux_nat_target::store_memtags): New method.
2076 * arch/aarch64-mte-linux.c: New file.
2077 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2078 (AARCH64_MTE_GRANULE_SIZE): Define.
2079 (aarch64_memtag_type): New enum.
2080 (aarch64_mte_get_tag_granules): New prototype.
2081 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2082 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2083 * nat/aarch64-mte-linux-ptrace.c: New file.
2084 * nat/aarch64-mte-linux-ptrace.h: New file.
2085
3f3bd8b8
LM
20862021-03-24 Luis Machado <luis.machado@linaro.org>
2087
2088 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2089 * nat/aarch64-mte-linux-ptrace.h: New file.
2090
5e984dbf
LM
20912021-03-24 Luis Machado <luis.machado@linaro.org>
2092
2093 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2094 (store_mteregs_to_thread): New function.
2095 (aarch64_linux_nat_target::fetch_registers): Update to call
2096 fetch_mteregs_from_thread.
2097 (aarch64_linux_nat_target::store_registers): Update to call
2098 store_mteregs_to_thread.
2099 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2100 (aarch64_cannot_store_register): Handle MTE registers.
2101 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2102 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2103 <has_mte>: New method.
2104 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2105
c1bd443b
LM
21062021-03-24 Luis Machado <luis.machado@linaro.org>
2107
2108 * aarch64-linux-nat.c
2109 (aarch64_linux_nat_target::read_description): Take MTE flag into
2110 account.
2111 Slight refactor to hwcap flag checking.
2112 * aarch64-linux-tdep.c
2113 (aarch64_linux_core_read_description): Likewise.
2114 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2115 MTE.
2116 (aarch64_read_description): Add mte_p parameter and update to use it.
2117 Update the documentation.
2118 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2119 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2120 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2121 (aarch64_create_target_description): Add mte_p parameter and update
2122 the code to use it.
2123 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2124 parameter.
2125 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2126 * features/aarch64-mte.c: New file, generated.
2127 * features/aarch64-mte.xml: New file.
2128
04245125
LM
21292021-03-24 Luis Machado <luis.machado@linaro.org>
2130
2131 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2132 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2133 * aarch64-linux-tdep.c: Likewise
2134 * arch/aarch64-mte-linux.h: New file.
2135
754487e2
LM
21362021-03-24 Luis Machado <luis.machado@linaro.org>
2137
2138 * remote: Include gdbsupport/selftest.h.
2139 (test_memory_tagging_functions): New function.
2140 (_initialize_remote): Register test_memory_tagging_functions.
2141
2c2e7f87
LM
21422021-03-24 Luis Machado <luis.machado@linaro.org>
2143
2144 * remote.c (PACKET_memory_tagging_feature): New enum.
2145 (remote_memory_tagging_p): New function.
2146 (remote_protocol_features): New "memory-tagging" entry.
2147 (remote_target::remote_query_supported): Handle memory tagging
2148 support.
2149 (remote_target::supports_memory_tagging): Implement.
2150 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2151 (create_store_memtags_request): New functions.
2152 (remote_target::fetch_memtags): Implement.
2153 (remote_target::store_memtags): Implement.
2154 (_initialize_remote): Add new "memory-tagging-feature"
2155 config command.
2156
c193949e
LM
21572021-03-24 Luis Machado <luis.machado@linaro.org>
2158
2159 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2160 (default_memtag_matches_p, default_set_memtags)
2161 (default_get_memtag): New functions.
2162 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2163 (default_memtag_matches_p, default_set_memtags)
2164 (default_get_memtag): New prototypes.
2165 * gdbarch.c: Regenerate.
2166 * gdbarch.h: Regenerate.
2167 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2168 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2169 (enum memtag_type): New enum.
2170
dbe692af
LM
21712021-03-24 Luis Machado <luis.machado@linaro.org>
2172
2173 * remote.c (remote_target) <supports_memory_tagging>: New method
2174 override.
2175 <fetch_memtags>: New method override.
2176 <store_memtags>: New method override.
2177 (remote_target::supports_memory_tagging): New method.
2178 (remote_target::fetch_memtags): New method.
2179 (remote_target::store_memtags): New method.
2180 * target-delegates.c: Regenerate.
2181 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2182 method.
2183 <fetch_memtags>: New virtual method.
2184 <store_memtags>: New virtual method.
2185 (target_supports_memory_tagging): Define.
2186 (target_fetch_memtags): Define.
2187 (target_store_memtags): Define.
2188 * target-debug.h (target_debug_print_size_t)
2189 (target_debug_print_const_gdb_byte_vector_r)
2190 (target_debug_print_gdb_byte_vector_r): New functions.
2191
66848ebc
SM
21922021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2193
2194 * target.h (target_longname): Remove.
2195
c8fbd44a
SM
21962021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2197
2198 * target.h (target_is_pushed): Remove, update callers to use
2199 inferior::target_is_pushed instead.
2200 * target.c (target_is_pushed): Remove.
2201
02980c56
SM
22022021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * target.h (push_target): Remove, update callers to use
2205 inferior::push_target.
2206 * target.c (push_target): Remove.
2207 * inferior.h (class inferior) <push_target>: New overload.
2208
fadf6add
SM
22092021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2210
2211 * target.h (unpush_target): Remove, update all callers
2212 to use `inferior::unpush_target` instead.
2213 (struct target_unpusher) <operator()>: Just declare.
2214 * target.c (unpush_target): Remove.
2215 (target_unpusher::operator()): New.
2216
702cf3f5
AB
22172021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2220 error.
2221 (process_full_comp_unit): Validate the top-level tag before
2222 processing the first DIE.
2223 (read_func_scope): Ensure we have a valid builder.
2224
46fec642
AB
22252021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2226
2227 * objc-lang.c (objc_demangle): Renamed to
2228 objc_language::demangle_symbol, and moved later in the file.
2229 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2230 member function.
2231 (objc_language::demangle_symbol): Defined outside of class
2232 declaration. The definition is the old objc_demangle with NULL
2233 changed to nullptr, and if conditions relating to nullptr pointers
2234 or null character checks made explicit.
2235 * objc-lang.h (objc_demangle): Delete declaration.
2236
08dedd66
ML
22372021-03-22 Martin Liska <mliska@suse.cz>
2238
2239 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2240 (_initialize_arm_tdep): Likewise.
2241
eb36a3eb
TT
22422021-03-20 Tom Tromey <tom@tromey.com>
2243
2244 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2245 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2246 * psymtab.h (make_psymbol_functions): Don't declare.
2247 * psymtab.c (make_psymbol_functions): Remove.
2248 (maintenance_print_psymbols): Update.
2249 * psympriv.h (struct psymbol_functions): Add no-argument
2250 constructor.
2251 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2252 <partial_symtabs>: Remove.
2253 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2254 * elfread.c (read_partial_symbols): Update.
2255 (elf_symfile_read): Remove check for existing partial symbols.
2256 Don't clear "qf".
2257 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2258 partial symbols.
2259 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2260 partial symtabs.
2261 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2262 parameter.
2263 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2264 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2265
e1114590
TT
22662021-03-20 Tom Tromey <tom@tromey.com>
2267
2268 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2269 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2270 * symfile-debug.c (objfile::has_partial_symbols)
2271 (objfile::find_last_source_symtab)
2272 (objfile::forget_cached_source_info)
2273 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2274 (objfile::print_stats, objfile::dump)
2275 (objfile::expand_symtabs_for_function)
2276 (objfile::expand_all_symtabs)
2277 (objfile::expand_symtabs_with_fullname)
2278 (objfile::map_matching_symbols)
2279 (objfile::expand_symtabs_matching)
2280 (objfile::find_pc_sect_compunit_symtab)
2281 (objfile::map_symbol_filenames)
2282 (objfile::find_compunit_symtab_by_address)
2283 (objfile::lookup_global_symbol_language)
2284 (objfile::require_partial_symbols): Update.
2285 * psymtab.c (maintenance_print_psymbols)
2286 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2287 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2288 * objfiles.c (objfile_relocate1): Update.
2289 * elfread.c (elf_symfile_read): Update.
2290
de909f0b
TT
22912021-03-20 Tom Tromey <tom@tromey.com>
2292
2293 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2294
caf8c1e5
TT
22952021-03-20 Tom Tromey <tom@tromey.com>
2296
2297 * psymtab.c (psymbol_functions::count_psyms): Rename.
2298 (psymbol_functions::print_stats): Update.
2299 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2300 method.
2301
3aa31ce7
TT
23022021-03-20 Tom Tromey <tom@tromey.com>
2303
2304 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2305 (psymbol_functions::find_pc_sect_psymtab): Rename.
2306 (psymbol_functions::find_pc_sect_compunit_symtab)
2307 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2308 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2309 Declare new method.
2310 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2311
7b249e47
TT
23122021-03-20 Tom Tromey <tom@tromey.com>
2313
2314 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2315 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2316 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2317 parameter.
2318 (add_psymbol_to_bcache): Remove.
2319 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2320 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2321 Likewise.
2322 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2323 <add_psymbol>: Likewise.
2324 (standard_psymtab, legacy_psymtab): Likewise.
2325 * mdebugread.c (parse_partial_symbols): Update.
2326 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2327 (handle_psymbol_enumerators): Update.
2328 (new_psymtab): Add partial_symtabs parameter.
2329 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2330 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2331 parameter.
2332 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2333 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2334 Update.
2335 * dbxread.c (read_dbx_symtab): Update.
2336 (start_psymtab): Add partial_symtabs parameter.
2337 (dbx_end_psymtab): Update.
2338 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2339 (ctf_psymtab): Add partial_symtabs parameter.
2340 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2341 Update.
2342 (scan_partial_symbols): Add partial_symtabs parameter.
2343 (scan_partial_symbols, elfctf_build_psymtabs)
2344 (ctf_psymtab_add_enums): Update.
2345
d1eef86d
TT
23462021-03-20 Tom Tromey <tom@tromey.com>
2347
2348 * symfile.c (read_symbols): Use objfile method.
2349 * symfile-debug.c (objfile::require_partial_symbols): New method.
2350 * psymtab.h (require_partial_symbols): Don't declare.
2351 * psymtab.c (require_partial_symbols): Use objfile method. Now
2352 static.
2353 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2354 (psymbol_functions::lookup_symbol)
2355 (psymbol_functions::lookup_global_symbol_language)
2356 (psymbol_functions::find_last_source_symtab)
2357 (psymbol_functions::forget_cached_source_info)
2358 (psymbol_functions::print_stats)
2359 (psymbol_functions::expand_symtabs_for_function)
2360 (psymbol_functions::expand_all_symtabs)
2361 (psymbol_functions::expand_symtabs_with_fullname)
2362 (psymbol_functions::map_symbol_filenames)
2363 (psymbol_functions::map_matching_symbols)
2364 (psymbol_functions::expand_symtabs_matching)
2365 (psymbol_functions::find_compunit_symtab_by_address)
2366 (maintenance_print_psymbols, maintenance_info_psymtabs)
2367 (maintenance_check_psymtabs): Update.
2368 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2369 new method.
2370
eb00e468
TT
23712021-03-20 Tom Tromey <tom@tromey.com>
2372
2373 * xcoffread.c (xcoff_sym_fns): Update.
2374 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2375 * symfile-debug.c (objfile::has_partial_symbols): Use
2376 can_lazily_read_symbols.
2377 (debug_sym_read_psymbols): Remove.
2378 (debug_sym_fns, install_symfile_debug_logging): Update.
2379 * quick-symbol.h (struct quick_symbol_functions)
2380 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2381 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2382 * mipsread.c (ecoff_sym_fns): Update.
2383 * machoread.c (macho_sym_fns): Update.
2384 * elfread.c (struct lazy_dwarf_reader): New.
2385 (elf_symfile_read): Update.
2386 (read_psyms): Now a method of lazy_dwarf_reader.
2387 (elf_sym_fns): Update.
2388 (elf_sym_fns_lazy_psyms): Remove.
2389 * dbxread.c (aout_sym_fns): Update.
2390 * coffread.c (coff_sym_fns): Update.
2391
b29b98cf
TT
23922021-03-20 Tom Tromey <tom@tromey.com>
2393
2394 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2395 (reread_symbols): Move reset_psymtabs call later.
2396 * objfiles.c (objfile::objfile): Don't initialize
2397 partial_symtabs.
2398
17d66340
TT
23992021-03-20 Tom Tromey <tom@tromey.com>
2400
2401 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2402 set_partial_symtabs.
2403 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2404 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2405 parameter.
2406 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2407 parameter.
2408 (psymbol_functions::find_pc_sect_compunit_symtab)
2409 (psymbol_functions::print_stats, psymbol_functions::dump)
2410 (psymbol_functions::has_symbols): Update.
2411 (make_psymbol_functions, dump_psymtab_addrmap): Add
2412 partial_symtabs parameter.
2413 (maintenance_print_psymbols): Update.
2414 (psymbol_functions::expand_symtabs_matching): Update.
2415 * psympriv.h (struct psymbol_functions): Add constructor.
2416 <m_partial_symtabs>: New member.
2417 <set_partial_symtabs>: New method.
2418
84685904
TT
24192021-03-20 Tom Tromey <tom@tromey.com>
2420
2421 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2422 parameter.
2423 (process_psymtab_comp_unit_reader)
2424 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2425 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2426 Reference psymtabs via per_bfd.
2427
79cc99f6
TT
24282021-03-20 Tom Tromey <tom@tromey.com>
2429
2430 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2431 Remove.
2432 (add_address_entry): Remove objfile parameter.
2433 (add_address_entry_worker): Update.
2434 (write_address_map): Replace objfile parameter with per_bfd.
2435 (write_gdbindex, write_psymtabs_to_index): Update.
2436
4829711b
TT
24372021-03-20 Tom Tromey <tom@tromey.com>
2438
2439 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2440 print_bcache parameter.
2441 * symfile-debug.c (objfile::print_stats): Add print_bcache
2442 parameter.
2443 * quick-symbol.h (struct quick_symbol_functions)
2444 <print_stats>: Add print_bcache parameter.
2445 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2446 code to psymtab.c.
2447 (print_objfile_statistics): Move psymtab code to psymtab.c.
2448 * psymtab.c (count_psyms): Move from symmisc.c.
2449 (psymbol_functions::print_stats): Print partial symbol and bcache
2450 statistics. Add print_bcache parameter.
2451 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2452 (struct objfile) <print_stats>: Add print_bcache parameter.
2453 * maint.c (maintenance_print_statistics): Update.
2454
efd7398e
TT
24552021-03-20 Tom Tromey <tom@tromey.com>
2456
2457 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2458 member.
2459 * dwarf2/read.c (create_addrmap_from_index)
2460 (create_addrmap_from_aranges): Set per_bfd addrmap.
2461 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2462 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2463 per_bfd addrmap.
2464 (dwarf2_read_debug_names): Don't set partial_symtabs.
2465 (dwarf2_initialize_objfile): Likewise.
2466
51962708
TT
24672021-03-20 Tom Tromey <tom@tromey.com>
2468
2469 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2470 earlier.
2471
484b1090
TT
24722021-03-20 Tom Tromey <tom@tromey.com>
2473
2474 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2475 (~psymtab_discarder, keep): Update.
2476 <m_objfile>: Remove.
2477 <m_partial_symtabs>: New member.
2478 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2479
7e9c0476
TT
24802021-03-20 Tom Tromey <tom@tromey.com>
2481
2482 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2483 (xcoff_end_psymtab): Update.
2484 (scan_xcoff_symtab): Add partial_symtabs parameter.
2485 (xcoff_initial_scan): Update.
2486 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2487 * mdebugread.c (mdebug_build_psymtabs): Update.
2488 (parse_partial_symbols): Add partial_symtabs parameter.
2489 * dbxread.c (dbx_symfile_read): Update.
2490 (read_dbx_symtab): Add partial_symtabs parameter.
2491 (read_dbx_symtab): Update.
2492 (dbx_end_psymtab): Add partial_symtabs parameter.
2493
75336a5a
TT
24942021-03-20 Tom Tromey <tom@tromey.com>
2495
2496 * quick-symbol.h (struct quick_symbol_functions)
2497 <relocated>: New method.
2498 * psymtab.h (struct psymbol_functions) <relocated>: New
2499 method.
2500 <fill_psymbol_map>: Declare method.
2501 <m_psymbol_map>: New member.
2502 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2503 (psymbol_functions::find_compunit_symtab_by_address): Update.
2504 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2505 (struct objfile) <psymbol_map>: Remove.
2506 * objfiles.c (objfile_relocate1): Update.
2507
39298a5d
TT
25082021-03-20 Tom Tromey <tom@tromey.com>
2509
2510 * psympriv.h (struct psymbol_functions): New.
2511 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2512 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2513 (objfile::lookup_global_symbol_language): Update.
2514 * quick-symbol.h (struct quick_symbol_functions): Convert function
2515 pointers to methods. Add virtual destructor.
2516 (quick_symbol_functions_up): New typedef.
2517 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2518 (dwarf2_debug_names_functions): Don't declare.
2519 (make_psymbol_functions): Declare.
2520 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2521 (psymbol_functions::find_pc_sect_compunit_symtab)
2522 (psymbol_functions::lookup_symbol)
2523 (psymbol_functions::lookup_global_symbol_language)
2524 (psymbol_functions::find_last_source_symtab)
2525 (psymbol_functions::forget_cached_source_info)
2526 (psymbol_functions::print_stats, psymbol_functions::dump)
2527 (psymbol_functions::expand_symtabs_for_function)
2528 (psymbol_functions::expand_all_symtabs)
2529 (psymbol_functions::expand_symtabs_with_fullname)
2530 (psymbol_functions::map_symbol_filenames)
2531 (psymbol_functions::map_matching_symbols)
2532 (psymbol_functions::expand_symtabs_matching)
2533 (psymbol_functions::has_symbols)
2534 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2535 (psym_functions): Remove.
2536 (make_psymbol_functions): New function.
2537 * objfiles.h (struct objfile) <qf>: Change type.
2538 * elfread.c (elf_symfile_read): Update.
2539 * dwarf2/read.c (struct dwarf2_base_index_functions)
2540 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2541 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2542 (dwarf2_base_index_functions::find_last_source_symtab)
2543 (dwarf2_base_index_functions::forget_cached_source_info)
2544 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2545 (dwarf2_gdb_index::lookup_symbol)
2546 (dwarf2_base_index_functions::print_stats)
2547 (dwarf2_gdb_index::dump)
2548 (dwarf2_gdb_index::expand_symtabs_for_function)
2549 (dwarf2_base_index_functions::expand_all_symtabs)
2550 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2551 Rename.
2552 (dwarf2_gdb_index::map_matching_symbols): New method.
2553 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2554 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2555 (dwarf2_base_index_functions::map_symbol_filenames)
2556 (dwarf2_base_index_functions::has_symbols): Rename.
2557 (dwarf2_gdb_index_functions): Remove.
2558 (dwarf2_debug_names_index::lookup_symbol)
2559 (dwarf2_debug_names_index::dump)
2560 (dwarf2_debug_names_index::expand_symtabs_for_function)
2561 (dwarf2_debug_names_index::map_matching_symbols)
2562 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2563 (dwarf2_debug_names_functions): Remove.
2564 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2565 Declare.
2566
5c3f1e5b
TT
25672021-03-20 Tom Tromey <tom@tromey.com>
2568
2569 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2570 null.
2571 * xcoffread.c (xcoff_sym_fns): Update.
2572 * symfile.h (struct sym_fns) <qf>: Remove.
2573 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2574 * symfile-debug.c (objfile::has_partial_symbols)
2575 (objfile::find_last_source_symtab)
2576 (objfile::forget_cached_source_info)
2577 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2578 (objfile::print_stats, objfile::dump)
2579 (objfile::expand_symtabs_for_function)
2580 (objfile::expand_all_symtabs)
2581 (objfile::expand_symtabs_with_fullname)
2582 (objfile::map_matching_symbols)
2583 (objfile::expand_symtabs_matching)
2584 (objfile::find_pc_sect_compunit_symtab)
2585 (objfile::map_symbol_filenames)
2586 (objfile::find_compunit_symtab_by_address)
2587 (objfile::lookup_global_symbol_language, debug_sym_fns)
2588 (install_symfile_debug_logging): Update.
2589 * objfiles.h (struct objfile) <qf>: New member.
2590 * mipsread.c (ecoff_sym_fns): Update.
2591 * machoread.c (macho_sym_fns): Update.
2592 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2593 Don't declare.
2594 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2595 * dbxread.c (aout_sym_fns): Update.
2596 * coffread.c (coff_sym_fns): Update.
2597
9b99dcc8
TT
25982021-03-20 Tom Tromey <tom@tromey.com>
2599
2600 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2601 (expand_symtabs_file_matcher_ftype)
2602 (expand_symtabs_symbol_matcher_ftype)
2603 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2604 Move to quick-symbol.h.
2605 * quick-symbol.h: New file.
2606
4d080b46
TT
26072021-03-20 Tom Tromey <tom@tromey.com>
2608
2609 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2610 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2611 (basic_lookup_transparent_type_quick)
2612 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2613 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2614 Update.
2615 * symmisc.c (print_objfile_statistics, dump_objfile)
2616 (maintenance_expand_symtabs): Update.
2617 * symfile.c (symbol_file_add_with_addrs)
2618 (expand_symtabs_matching, map_symbol_filenames): Update.
2619 * symfile-debug.c (objfile::has_partial_symbols)
2620 (objfile::find_last_source_symtab)
2621 (objfile::forget_cached_source_info)
2622 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2623 (objfile::print_stats, objfile::dump)
2624 (objfile::expand_symtabs_for_function)
2625 (objfile::expand_all_symtabs)
2626 (objfile::expand_symtabs_with_fullname)
2627 (objfile::map_matching_symbols)
2628 (objfile::expand_symtabs_matching)
2629 (objfile::find_pc_sect_compunit_symtab)
2630 (objfile::map_symbol_filenames)
2631 (objfile::find_compunit_symtab_by_address)
2632 (objfile::lookup_global_symbol_language): New methods.
2633 (debug_sym_quick_functions): Remove.
2634 (debug_sym_fns, install_symfile_debug_logging): Update.
2635 * source.c (forget_cached_source_info_for_objfile)
2636 (select_source_symtab): Update.
2637 * objfiles.h (struct objfile): Add methods corresponding to
2638 quick_symbol_functions.
2639 * objfiles.c (objfile::has_partial_symbols): Move to
2640 symfile-debug.c.
2641 * linespec.c (iterate_over_all_matching_symtabs): Update.
2642 * cp-support.c (add_symbol_overload_list_qualified): Update.
2643 * ada-lang.c (add_nonlocal_symbols): Update.
2644
fae2120b
TT
26452021-03-20 Tom Tromey <tom@tromey.com>
2646
2647 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2648 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2649 bool.
2650 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2651 * psymtab.c (psym_has_symbols): Return bool.
2652 * objfiles.c (objfile::has_partial_symbols): Return bool.
2653 * dwarf2/read.c (dw2_has_symbols): Return bool.
2654
a8ad4f3c
TT
26552021-03-20 Tom Tromey <tom@tromey.com>
2656
2657 * symfile.c (read_symbols): Update.
2658 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2659 (objfile_has_partial_symbols): Don't declare.
2660 * objfiles.c (objfile::has_partial_symbols): Rename from
2661 objfile_has_partial_symbols.
2662 (objfile_has_symbols, have_partial_symbols): Update.
2663 * elfread.c (elf_symfile_read): Update.
2664 * dwarf2/read.c (dwarf2_has_info): Update.
2665 * coffread.c (coff_symfile_read): Update.
2666
70182375
TT
26672021-03-20 Tom Tromey <tom@tromey.com>
2668
2669 * coffread.c: Include dwarf2/public.h.
2670 * dwarf2/frame.c: Include dwarf2/public.h.
2671 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2672 * dwarf2/public.h: New file.
2673 * dwarf2/read.c: Include dwarf2/public.h.
2674 * elfread.c: Include dwarf2/public.h.
2675 * machoread.c: Include dwarf2/public.h.
2676 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2677 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2678 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2679 * xcoffread.c: Include dwarf2/public.h.
2680
18038e63
TT
26812021-03-20 Tom Tromey <tom@tromey.com>
2682
2683 * symfile.h (enum dwarf2_section_enum)
2684 (dwarf2_get_section_info): Move to dwarf2/read.h.
2685 * dwarf2/read.h (enum dwarf2_section_enum)
2686 (dwarf2_get_section_info): Move from symfile.h.
2687
219f56b4
PA
26882021-03-19 Pedro Alves <pedro@palves.net>
2689
2690 * thread.c (any_thread_of_inferior): Check if there's a selected
2691 thread before calling inferior_thread().
2692
15310fd4
TT
26932021-03-18 Tom Tromey <tromey@adacore.com>
2694
2695 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2696 get_DW_UT_name.
2697 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2698 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2699
763b8efd
AB
27002021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2701
2702 * python/py-param.c (get_set_value): Update header comment.
2703
f058c521
SM
27042021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2705
2706 * infrun.c (check_multi_target_resumption): Remove argument to
2707 all_non_exited_inferiors.
2708
383228bc
CB
27092021-03-16 Christian Biesinger <cbiesinger@google.com>
2710
2711 * windows-nat.c (windows_init_thread_list): Add message to
2712 debug log.
2713
7807d76a
AB
27142021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2715
2716 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2717 well as PyLong_Check for Python 2.
2718
675da9a5
TT
27192021-03-15 Tom Tromey <tromey@adacore.com>
2720
2721 PR build/27579:
2722 * rust-exp.y (maker_map): Use gdb::hash_enum.
2723 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2724
4800761a
SM
27252021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2726
2727 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2728 end of debug print.
2729
eb5dd737
SM
27302021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2733 parameter, adjust caller.
2734
6813ceb0
TT
27352021-03-15 Tom Tromey <tromey@adacore.com>
2736
2737 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2738
3b5c4de0
TT
27392021-03-15 Tom Tromey <tromey@adacore.com>
2740
2741 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2742 ada_ensure_varsize_limit.
2743
c04da66c
TT
27442021-03-15 Tom Tromey <tromey@adacore.com>
2745
2746 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2747 fixed-point.
2748 * ada-exp.y (maybe_overload): New function.
2749 (ada_wrap_overload): New function.
2750 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2751 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2752 (or_else_exp, xor_exp, primary): Update.
2753
9863c3b5
TT
27542021-03-15 Tom Tromey <tromey@adacore.com>
2755
2756 PR ada/27545:
2757 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2758 call for tagged type.
2759
1ac74522
TT
27602021-03-15 Tom Tromey <tromey@adacore.com>
2761
2762 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2763 assignment.
2764
207582c0
TT
27652021-03-15 Tom Tromey <tromey@adacore.com>
2766
2767 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2768 container.
2769 (ada_assign_operation::evaluate): Update.
2770 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2771 Change return type.
2772
8d624a9d
FW
27732021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2774
2775 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2776
ba6a0ef3
AB
27772021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * python/python.c (gdbpy_source_objfile_script): Use
2780 make_scoped_restore to restore gdbpy_current_objfile.
2781 (gdbpy_execute_objfile_script): Likewise.
2782
7c290a04
TT
27832021-03-14 Tom Tromey <tom@tromey.com>
2784
2785 * dwarf2/read.c (read_attribute_value): Use cu_header
2786 consistently.
2787
0280fdcc
TT
27882021-03-14 Tom Tromey <tom@tromey.com>
2789
2790 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2791 (peek_die_abbrev): Use reader.abfd.
2792
a9f172c6
TT
27932021-03-14 Tom Tromey <tom@tromey.com>
2794
2795 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2796 m_header_read_in.
2797
7c32eebb
TT
27982021-03-13 Tom Tromey <tom@tromey.com>
2799
2800 * dwarf2/read.c (struct partial_die_info): Update.
2801 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2802 (load_partial_dies, partial_die_info::partial_die_info): Update.
2803 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2804
27012aba
TT
28052021-03-13 Tom Tromey <tom@tromey.com>
2806
2807 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2808
fece451c
CB
28092021-03-12 Christian Biesinger <cbiesinger@google.com>
2810
2811 PR threads/27239
2812 * cp-support.c: Use scoped_segv_handler_restore.
2813 * event-top.c (thread_local_segv_handler): Made static.
2814 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2815 New function.
2816 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2817 function.
2818 * event-top.h (class scoped_segv_handler_restore): New class.
2819 (thread_local_segv_handler): Removed.
2820
7056f312
TT
28212021-03-10 Tom Tromey <tromey@adacore.com>
2822
2823 * parser-defs.h (parser_state): Change completion to bool.
2824 <parse_completion>: Likewise.
2825 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2826 (ada_resolve_variable, ada_resolve_function): Update.
2827 * ada-lang.c (ada_find_operator_symbol): Change
2828 parse_completion to bool.
2829 (ada_resolve_funcall, ada_resolve_variable)
2830 (ada_resolve_function): Likewise.
2831
ccdc02ed
TT
28322021-03-09 Tom Tromey <tromey@adacore.com>
2833
2834 * eval.c (operation::evaluate_funcall): Use function formal
2835 parameter types when evaluating.
2836
fbb1aace
AB
28372021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2840 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2841 and owner to m_owner.
2842
611aa09d
FW
28432021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2844
2845 * f-exp.h (eval_op_f_loc): Declare.
2846 (expr::fortran_loc_operation): New typedef.
2847 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2848 UNOP_INTRINSIC.
2849 (f77_keywords): Add LOC keyword.
2850 * f-lang.c (eval_op_f_loc): New function.
2851 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2852
eef32f59
AB
28532021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2854
2855 * f-exp.h (eval_op_f_array_shape): Declare.
2856 (fortran_array_shape_operation): New type.
2857 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2858 UNOP_INTRINSIC.
2859 (f77_keywords): Add "shape" keyword.
2860 * f-lang.c (fortran_array_shape): New function.
2861 (eval_op_f_array_shape): New function.
2862 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2863
7ba155b3
AB
28642021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2867 of this function.
2868 (expr::fortran_array_size_1arg): New type.
2869 (expr::fortran_array_size_2arg): Likewise.
2870 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2871 UNOP_OR_BINOP_INTRINSIC.
2872 (f77_keywords): Add "size" keyword.
2873 * f-lang.c (fortran_array_size): New function.
2874 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2875 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2876
e14816a8
AB
28772021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * f-exp.h (eval_op_f_rank): Declare.
2880 (expr::fortran_rank_operation): New typedef.
2881 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2882 UNOP_INTRINSIC.
2883 (f77_keywords): Add "rank" keyword.
2884 * f-lang.c (eval_op_f_rank): New function.
2885 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2886
3dd93bf8
TT
28872021-03-08 Tom Tromey <tom@tromey.com>
2888
2889 * printcmd.c (set_command): Remove null check.
2890 * value.c (init_if_undefined_command): Remove null check.
2891
9c79936b
TT
28922021-03-08 Tom Tromey <tom@tromey.com>
2893
2894 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2895 Update.
2896 * p-exp.y (variable): Update.
2897 * go-exp.y (variable): Update.
2898 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2899 Remove overload for objfile.
2900 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2901 parameter.
2902 (check_objfile): Likewise.
2903 (dump_for_expression): Likewise. Remove overload for objfile.
2904 (class var_msym_value_operation): Use bound_minimal_symbol.
2905 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2906 parameter.
2907 (var_msym_value_operation::evaluate_for_address)
2908 (var_msym_value_operation::evaluate_for_sizeof)
2909 (var_msym_value_operation::evaluate_for_cast): Update.
2910 * d-exp.y (PrimaryExpression): Update.
2911 * c-exp.y (variable): Update.
2912 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2913 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2914 Update.
2915 * ada-exp.y (write_var_or_type): Update.
2916
40d07d07
TT
29172021-03-08 Tom Tromey <tom@tromey.com>
2918
2919 * parser-defs.h (exp_uses_objfile): Return bool.
2920 * parse.c (exp_uses_objfile): Return bool.
2921
0b2b0b82
TT
29222021-03-08 Tom Tromey <tom@tromey.com>
2923
2924 * value.h (eval_skip_value): Don't declare.
2925 * opencl-lang.c (eval_opencl_assign): Update.
2926 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2927 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2928 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2929 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2930 * expop.h (typeof_operation::evaluate)
2931 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2932 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2933 (cxx_cast_operation::evaluate): Update.
2934 * eval.c (eval_skip_value): Remove.
2935 (eval_op_scope, eval_op_var_entry_value)
2936 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2937 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2938 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2939 (eval_op_binary, eval_op_subscript, eval_op_equal)
2940 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2941 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2942 (eval_op_complement, eval_op_lognot, eval_op_ind)
2943 (eval_op_memval, eval_op_preinc, eval_op_predec)
2944 (eval_op_postinc, eval_op_postdec, eval_op_type)
2945 (eval_binop_assign_modify, eval_op_objc_msgcall)
2946 (eval_multi_subscript, logical_and_operation::evaluate)
2947 (logical_or_operation::evaluate, array_operation::evaluate)
2948 (operation::evaluate_for_cast)
2949 (var_msym_value_operation::evaluate_for_cast)
2950 (var_value_operation::evaluate_for_cast): Update.
2951 * c-lang.c (c_string_operation::evaluate): Update.
2952 * c-exp.h (objc_nsstring_operation::evaluate)
2953 (objc_selector_operation::evaluate): Update.
2954 * ada-lang.c (ada_assign_operation::evaluate)
2955 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2956 (ada_atr_size): Update.
2957
96db551d
TT
29582021-03-08 Tom Tromey <tom@tromey.com>
2959
2960 * eval.c: Merge "namespace" scopes.
2961
ce284361
TT
29622021-03-08 Tom Tromey <tom@tromey.com>
2963
2964 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2965 <release>: Inline.
2966 * parse.c (expr_builder::expr_builder, expr_builder::release):
2967 Remove.
2968
b9d06571
TT
29692021-03-08 Tom Tromey <tom@tromey.com>
2970
2971 * parse.c (expression::expression, expression::~expression):
2972 Remove.
2973 * expression.h (struct expression): Inline constructor. Remove
2974 destructor.
2975
79ab486e
TT
29762021-03-08 Tom Tromey <tom@tromey.com>
2977
2978 * std-operator.def (BINOP_END): Remove.
2979 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2980 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2981 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2982 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2983 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2984 BINOP_END.
2985
48fa6f23
TT
29862021-03-08 Tom Tromey <tom@tromey.com>
2987
2988 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2989
43f542e3
TT
29902021-03-08 Tom Tromey <tom@tromey.com>
2991
2992 * std-operator.def (OP_EXTENDED0): Remove.
2993
5d9ba982
TT
29942021-03-08 Tom Tromey <tom@tromey.com>
2995
2996 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2997 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2998 Remove.
2999
d357570d
TT
30002021-03-08 Tom Tromey <tom@tromey.com>
3001
3002 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3003 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3004
0922dc84
TT
30052021-03-08 Tom Tromey <tom@tromey.com>
3006
3007 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3008 * ada-lang.c (ada_binop_minmax): Update.
3009 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3010 Use BINOP_MIN and BINOP_MAX.
3011
1eaebe02
TT
30122021-03-08 Tom Tromey <tom@tromey.com>
3013
3014 * value.h (evaluate_subexp_with_coercion): Don't declare.
3015 * parse.c (exp_descriptor_standard): Remove.
3016 (expr_builder::expr_builder, expr_builder::release): Update.
3017 (expression::expression): Remove size_t parameter.
3018 (expression::~expression): Simplify.
3019 (expression::resize): Remove.
3020 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3021 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3022 (write_exp_elt_longcst, write_exp_elt_floatcst)
3023 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3024 (write_exp_string_vector, write_exp_bitstring): Remove.
3025 * p-lang.h (class pascal_language) <opcode_print_table,
3026 op_print_tab>: Remove.
3027 * p-lang.c (pascal_language::op_print_tab): Remove.
3028 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3029 Remove.
3030 * objc-lang.c (objc_op_print_tab): Remove.
3031 (class objc_language) <opcode_print_table>: Remove.
3032 * m2-lang.h (class m2_language) <opcode_print_table,
3033 op_print_tab>: Remove.
3034 * m2-lang.c (m2_language::op_print_tab): Remove.
3035 * language.h (struct language_defn) <post_parser, expression_ops,
3036 opcode_print_table>: Remove.
3037 * language.c (language_defn::expression_ops)
3038 (auto_or_unknown_language::opcode_print_table): Remove.
3039 * go-lang.h (class go_language) <opcode_print_table,
3040 op_print_tab>: Remove.
3041 * go-lang.c (go_language::op_print_tab): Remove.
3042 * f-lang.h (class f_language) <opcode_print_table>: Remove
3043 <op_print_tab>: Remove.
3044 * f-lang.c (f_language::op_print_tab): Remove.
3045 * expression.h (union exp_element): Remove.
3046 (struct expression): Remove size_t parameter from constructor.
3047 <resize>: Remove.
3048 <first_opcode>: Update.
3049 <nelts, elts>: Remove.
3050 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3051 (evaluate_subexp_standard, print_expression, op_string)
3052 (dump_raw_expression): Don't declare.
3053 * expprint.c (print_expression, print_subexp)
3054 (print_subexp_funcall, print_subexp_standard, op_string)
3055 (dump_raw_expression, dump_subexp, dump_subexp_body)
3056 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3057 (dump_prefix_expression): Update.
3058 * eval.c (evaluate_subexp): Remove.
3059 (evaluate_expression, evaluate_type): Update.
3060 (evaluate_subexpression_type): Remove.
3061 (fetch_subexp_value): Remove "pc" parameter. Update.
3062 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3063 (evaluate_subexp_standard, evaluate_subexp_for_address)
3064 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3065 (evaluate_subexp_for_cast): Remove.
3066 (parse_and_eval_type): Update.
3067 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3068 * d-lang.c (d_op_print_tab): Remove.
3069 (class d_language) <opcode_print_table>: Remove.
3070 * c-lang.h (c_op_print_tab): Don't declare.
3071 * c-lang.c (c_op_print_tab): Remove.
3072 (class c_language, class cplus_language, class asm_language, class
3073 minimal_language) <opcode_print_table>: Remove.
3074 * breakpoint.c (update_watchpoint, watchpoint_check)
3075 (watchpoint_exp_is_const, watch_command_1): Update.
3076 * ax-gdb.h (union exp_element): Don't declare.
3077 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3078 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3079 (gen_expr_binop_rest): Remove.
3080 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3081 * ada-lang.c (ada_op_print_tab): Remove.
3082 (class ada_language) <post_parser, opcode_print_table>: Remove.
3083
f2a98603
TT
30842021-03-08 Tom Tromey <tom@tromey.com>
3085
3086 * go-lang.c (go_language::expression_ops): Don't declare.
3087 * go-lang.h (class go_language) <expression_ops>: Remove.
3088 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3089 Remove.
3090 (class opencl_language) <expression_ops>: Remove.
3091 * d-lang.c (class d_language) <expression_ops>: Remove.
3092 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3093 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3094 (class c_language, class cplus_language, class asm_language)
3095 (class minimal_language) <expression_ops>: Remove.
3096
d3c54a1c
TT
30972021-03-08 Tom Tromey <tom@tromey.com>
3098
3099 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3100 (evaluate_subexp_type, assign_aggregate)
3101 (aggregate_assign_positional, aggregate_assign_from_choices)
3102 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3103 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3104 (ada_operator_check, ada_forward_operator_length)
3105 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3106 Remove.
3107 (post_parser): Update.
3108 (class ada_language) <expresssion_ops>: Remove.
3109
5871f0a3
TT
31102021-03-08 Tom Tromey <tom@tromey.com>
3111
3112 * m2-lang.h (class m2_language) <expresssion_ops,
3113 exp_descriptor_modula2>: Remove.
3114 * m2-lang.c (evaluate_subexp_modula2)
3115 (m2_language::exp_descriptor_modula2): Remove.
3116
a99be8c1
TT
31172021-03-08 Tom Tromey <tom@tromey.com>
3118
3119 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3120 <exp_descriptor_tab>: Remove.
3121 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3122 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3123 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3124 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3125 Remove.
3126
aa1da9ed
TT
31272021-03-08 Tom Tromey <tom@tromey.com>
3128
3129 * rust-lang.h (class rust_language) <expression_ops,
3130 exp_descriptor_tab>: Remove.
3131 * rust-lang.c (rust_evaluate_funcall): Remove.
3132 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3133 EVAL_SKIP.
3134 (rust_evaluate_subexp): Remove.
3135 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3136 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3137 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3138
08a057e6
TT
31392021-03-08 Tom Tromey <tom@tromey.com>
3140
3141 * ada-exp.y: Create operations.
3142 (empty_stoken): Remove.
3143 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3144 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3145 (components): New global.
3146 (push_component, choice_component, pop_component, pop_components):
3147 New functions.
3148 (associations): New global
3149 (push_association, pop_association, pop_associations): New
3150 functions.
3151 (ada_parse): Update.
3152 (write_var_from_sym, write_int): Create operations.
3153 (write_exp_op_with_string): Remove.
3154 (write_object_renaming, write_selectors, write_ambiguous_var)
3155 (write_var_or_type, write_name_assoc): Create operations.
3156 * ada-lang.h (ada_index_type): Declare.
3157 * ada-lang.c (ada_index_type): No longer static.
3158
d308ba78
TT
31592021-03-08 Tom Tromey <tom@tromey.com>
3160
3161 * f-exp.y: Create operations.
3162 (f_language::parser): Update.
3163
f1b8ceef
TT
31642021-03-08 Tom Tromey <tom@tromey.com>
3165
3166 * m2-exp.y: Create operations.
3167 (m2_language::parser): Update.
3168
3163898e
TT
31692021-03-08 Tom Tromey <tom@tromey.com>
3170
3171 * p-exp.y: Create operations.
3172 (pascal_language::parser): Update.
3173
9412fdcc
TT
31742021-03-08 Tom Tromey <tom@tromey.com>
3175
3176 * d-exp.y: Create operations.
3177 (d_parse): Update.
3178
bb4e0574
TT
31792021-03-08 Tom Tromey <tom@tromey.com>
3180
3181 * go-exp.y: Create operations.
3182 (go_language::parser): Update.
3183
d182f279
TT
31842021-03-08 Tom Tromey <tom@tromey.com>
3185
3186 * objc-lang.c (end_msglist): Create operations.
3187 * c-exp.y: Change parser to create operations.
3188 (write_destructor_name): Remove.
3189 (c_parse): Update.
3190
c1299a23
TT
31912021-03-08 Tom Tromey <tom@tromey.com>
3192
3193 * rust-exp.y: Create operations.
3194 (rust_parser::convert_params_to_expression): Change return type.
3195 (binop_maker_ftype): New typedef.
3196 (maker_map): New global.
3197 (rust_parser::convert_ast_to_expression): Change return type.
3198 (rust_language::parser): Update.
3199 (_initialize_rust_exp): Initialize maker_map.
3200
4c5e7a93
TT
32012021-03-08 Tom Tromey <tom@tromey.com>
3202
3203 * stap-probe.c (binop_maker_ftype): New typedef.
3204 (stap_maker_map): New global.
3205 (stap_make_binop): New function.
3206 (stap_parse_register_operand): Return operation_up.
3207 (stap_parse_single_operand, stap_parse_argument_conditionally)
3208 (stap_parse_argument_1): Likewise.
3209 (stap_parse_argument): Create operations.
3210 (stap_probe::parse_arguments): Update.
3211 (_initialize_stap_probe): Initialize stap_maker_map.
3212 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3213 type.
3214 * i386-tdep.h (i386_stap_parse_special_token): Change return
3215 type.
3216 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3217 (i386_stap_parse_special_token_three_arg_disp)
3218 (i386_stap_parse_special_token): Change return type.
3219 * gdbarch.sh (stap_parse_special_token): Change return type.
3220 * gdbarch.c: Rebuild.
3221 * gdbarch.h: Rebuild.
3222 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3223 type.
3224 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3225 return type.
3226
482ddd69
TT
32272021-03-08 Tom Tromey <tom@tromey.com>
3228
3229 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3230 * gdbarch.h: Rebuild.
3231 * gdbarch.c: Rebuild.
3232 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3233 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3234 return type.
3235 (amd64_dtrace_parse_probe_argument): Update.
3236
8227d9e2
TT
32372021-03-08 Tom Tromey <tom@tromey.com>
3238
3239 * parser-defs.h (struct parser_state) <push, push_new,
3240 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3241 wrap2>: New methods.
3242 <m_operations>: New member.
3243 * parse.c (parser_state::push_c_string)
3244 (parser_state::push_symbol, parser_state::push_dollar): New
3245 methods.
3246
4933522d
TT
32472021-03-08 Tom Tromey <tom@tromey.com>
3248
3249 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3250 New member.
3251 (struct parser_state) <mark_struct_expression>: New method.
3252 * parse.c (parser_state::mark_struct_expression): Update assert.
3253 (parser_state::mark_struct_expression): New method.
3254 (parser_state::mark_completion_tag): Update assert.
3255 (parse_expression_for_completion): Handle expout_last_op.
3256
413403fc
TT
32572021-03-08 Tom Tromey <tom@tromey.com>
3258
3259 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3260 now in superclass.
3261 * value.h (fetch_subexp_value): Add "op" parameter.
3262 * value.c (init_if_undefined_command): Update.
3263 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3264 * stap-probe.c (stap_probe::compile_to_ax): Update.
3265 * printcmd.c (set_command): Update.
3266 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3267 Update.
3268 * parser-defs.h (struct expr_builder) <set_operation>: New
3269 method.
3270 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3271 * expression.h (struct expression) <first_opcode>: Update.
3272 <op>: New member.
3273 * expprint.c (dump_raw_expression, dump_prefix_expression):
3274 Update.
3275 * expop.h (class var_value_operation) <get_symbol>: New method.
3276 (class register_operation) <get_name>: New method.
3277 (class equal_operation): No longer a typedef, now a subclass.
3278 (class unop_memval_operation) <get_type>: New method.
3279 (class assign_operation) <get_lhs>: New method.
3280 (class unop_cast_operation) <get_type>: New method.
3281 * eval.c (evaluate_expression, evaluate_type)
3282 (evaluate_subexpression_type): Update.
3283 (fetch_subexp_value): Add "op" parameter.
3284 (parse_and_eval_type): Update.
3285 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3286 * breakpoint.c (update_watchpoint, watchpoint_check)
3287 (watchpoint_exp_is_const, watch_command_1): Update.
3288 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3289 Update.
3290
b0f9164c
TT
32912021-03-08 Tom Tromey <tom@tromey.com>
3292
3293 * ada-lang.c (ada_value_binop): Do not use op_string.
3294
a88c4354
TT
32952021-03-08 Tom Tromey <tom@tromey.com>
3296
3297 * expprint.c (dump_for_expression): New overload.
3298 * expop.h (check_objfile, dump_for_expression): Declare new
3299 overloads.
3300 * ada-lang.c (check_objfile): New overload.
3301 (assign_component, ada_aggregate_component::uses_objfile)
3302 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3303 (ada_aggregate_component::assign_aggregate)
3304 (ada_positional_component::uses_objfile)
3305 (ada_positional_component::dump, ada_positional_component::assign)
3306 (ada_discrete_range_association::uses_objfile)
3307 (ada_discrete_range_association::dump)
3308 (ada_discrete_range_association::assign)
3309 (ada_name_association::uses_objfile, ada_name_association::dump)
3310 (ada_name_association::assign)
3311 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3312 (ada_choices_component::assign)
3313 (ada_others_component::uses_objfile, ada_others_component::dump)
3314 (ada_others_component::assign, ada_assign_operation::evaluate):
3315 New methods.
3316 * ada-exp.h (ada_string_operation) <get_name>: New method.
3317 (class ada_assign_operation): New.
3318 (class ada_component): New.
3319 (ada_component_up): New typedef.
3320 (class ada_aggregate_operation, class ada_aggregate_component)
3321 (class ada_positional_component, class ada_others_component)
3322 (class ada_association): New.
3323 (ada_association_up): New typedef.
3324 (class ada_choices_component)
3325 (class ada_discrete_range_association)
3326 (class ada_name_association): New.
3327
d8a4ed8a
TT
33282021-03-08 Tom Tromey <tom@tromey.com>
3329
3330 * ada-lang.c (ada_var_value_operation::resolve)
3331 (ada_funcall_operation::resolve)
3332 (ada_ternop_slice_operation::resolve): New methods.
3333 * ada-exp.h (struct ada_resolvable): New.
3334 (class ada_var_value_operation): Derive from ada_resolvable.
3335 <get_block, resolve>: New methods.
3336 (class ada_funcall_operation): Derive from ada_resolvable.
3337 <resolve>: New method.
3338 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3339 <resolve>: New method.
3340
efe3af2f
TT
33412021-03-08 Tom Tromey <tom@tromey.com>
3342
3343 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3344 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3345 method.
3346 (class ada_funcall_operation): New.
3347
ebc06ad8
TT
33482021-03-08 Tom Tromey <tom@tromey.com>
3349
3350 * ada-lang.c (ada_structop_operation::evaluate): New method.
3351 * ada-exp.h (class ada_structop_operation): New.
3352
e8c33fa1
TT
33532021-03-08 Tom Tromey <tom@tromey.com>
3354
3355 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3356 * ada-exp.h (class ada_unop_ind_operation): New.
3357
065ec826
TT
33582021-03-08 Tom Tromey <tom@tromey.com>
3359
3360 * ada-lang.c (ada_binop_exp): No longer static.
3361 * ada-exp.h (ada_binop_exp_operation): New typedef.
3362
9e99f48f
TT
33632021-03-08 Tom Tromey <tom@tromey.com>
3364
3365 * ada-lang.c (ada_val_atr): No longer static.
3366 (ada_atr_val_operation::evaluate): New method.
3367 * ada-exp.h (class ada_atr_val_operation): New.
3368
7631cf6c
TT
33692021-03-08 Tom Tromey <tom@tromey.com>
3370
3371 * ada-lang.c (ada_pos_atr): No longer static.
3372 * ada-exp.h (ada_pos_operation): New typedef.
3373
7992accc
TT
33742021-03-08 Tom Tromey <tom@tromey.com>
3375
3376 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3377 parameters.
3378 (ada_evaluate_subexp): Use it.
3379
6ad3b8bf
TT
33802021-03-08 Tom Tromey <tom@tromey.com>
3381
3382 * ada-lang.c (ada_binop_minmax): No longer static.
3383 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3384 New typedefs.
3385
3f4a0053
TT
33862021-03-08 Tom Tromey <tom@tromey.com>
3387
3388 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3389 New method.
3390 * ada-exp.h (class ada_var_msym_value_operation): New.
3391
99a3b1e7
TT
33922021-03-08 Tom Tromey <tom@tromey.com>
3393
3394 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3395 (ada_var_value_operation::evaluate): New methods.
3396 * ada-exp.h (class ada_var_value_operation): New.
3397
60fa02ca
TT
33982021-03-08 Tom Tromey <tom@tromey.com>
3399
3400 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3401 * ada-exp.h (class ada_unop_atr_operation): New.
3402
82c3886e
TT
34032021-03-08 Tom Tromey <tom@tromey.com>
3404
3405 * ada-lang.c (ada_binop_in_bounds): No longer static.
3406 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3407
1b1ebfab
TT
34082021-03-08 Tom Tromey <tom@tromey.com>
3409
3410 * ada-lang.c (ada_ternop_slice): No longer static.
3411 * ada-exp.h (class ada_ternop_slice_operation): New.
3412
039e4b76
TT
34132021-03-08 Tom Tromey <tom@tromey.com>
3414
3415 * ada-exp.h (ada_bitwise_operation): New template class.
3416 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3417 (ada_bitwise_xor_operation): New typedefs.
3418
6e8fb7b7
TT
34192021-03-08 Tom Tromey <tom@tromey.com>
3420
3421 * ada-lang.c (ada_equal_binop): No longer static.
3422 * ada-exp.h (class ada_binop_equal_operation): New.
3423
d9e7db06
TT
34242021-03-08 Tom Tromey <tom@tromey.com>
3425
3426 * ada-lang.c (ada_mult_binop): No longer static.
3427 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3428 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3429
73796c73
TT
34302021-03-08 Tom Tromey <tom@tromey.com>
3431
3432 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3433 * ada-exp.h (class ada_binop_addsub_operation): New.
3434
cd9a3148
TT
34352021-03-08 Tom Tromey <tom@tromey.com>
3436
3437 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3438 (ada_resolve_variable): Declare.
3439 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3440 (ada_resolve_variable): New functions.
3441 (resolve_subexp): Update.
3442
cf12b17f
TT
34432021-03-08 Tom Tromey <tom@tromey.com>
3444
3445 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3446 method.
3447 * c-exp.h (class opencl_ternop_cond_operation): New.
3448
944fd3b8
TT
34492021-03-08 Tom Tromey <tom@tromey.com>
3450
3451 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3452 method.
3453 * c-exp.h (class opencl_logical_binop_operation): New.
3454
33b79214
TT
34552021-03-08 Tom Tromey <tom@tromey.com>
3456
3457 * opencl-lang.c (opencl_structop_operation::evaluate): New
3458 method.
3459 * c-exp.h (class opencl_structop_operation): New.
3460
2492ba36
TT
34612021-03-08 Tom Tromey <tom@tromey.com>
3462
3463 * opencl-lang.c (opencl_logical_not): No longer static. Change
3464 parameters.
3465 (evaluate_subexp_opencl): Update.
3466 * c-exp.h (opencl_notequal_operation): New typedef.
3467
a88c3c8d
TT
34682021-03-08 Tom Tromey <tom@tromey.com>
3469
3470 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3471 static. Change parameters.
3472 (eval_opencl_assign): No longer static. Add "op" parameter.
3473 (evaluate_subexp_opencl): Update.
3474 * c-exp.h (opencl_binop_operation): New template class.
3475 (opencl_assign_operation, opencl_equal_operation)
3476 (opencl_notequal_operation, opencl_less_operation)
3477 (opencl_gtr_operation, opencl_geq_operation)
3478 (opencl_leq_operation): New typedefs.
3479
e9677704
TT
34802021-03-08 Tom Tromey <tom@tromey.com>
3481
3482 * opencl-lang.c (opencl_value_cast): No longer static.
3483 * c-exp.h (opencl_cast_type_operation): New typedef.
3484
f403a4e4
TT
34852021-03-08 Tom Tromey <tom@tromey.com>
3486
3487 * f-exp.h (eval_op_f_allocated): Declare.
3488 (fortran_allocated_operation): New typedef.
3489 * f-lang.c (eval_op_f_allocated): No longer static.
3490
eb4c9271
TT
34912021-03-08 Tom Tromey <tom@tromey.com>
3492
3493 * f-lang.c (eval_op_f_associated): New functions.
3494 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3495 typedefs.
3496
58a76c72
TT
34972021-03-08 Tom Tromey <tom@tromey.com>
3498
3499 * f-lang.c (fortran_bound_1arg::evaluate)
3500 (fortran_bound_2arg::evaluate): New methods.
3501 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3502 New.
3503
2f98abe1
TT
35042021-03-08 Tom Tromey <tom@tromey.com>
3505
3506 * expop.h (class unop_addr_operation) <get_expression>: New
3507 method.
3508 * f-lang.c (fortran_undetermined::value_subarray)
3509 (fortran_undetermined::evaluate): New methods.
3510 (fortran_prepare_argument): New overload.
3511 * f-exp.h (class fortran_range_operation)
3512 (class fortran_undetermined): New classes.
3513
638fd74a
TT
35142021-03-08 Tom Tromey <tom@tromey.com>
3515
3516 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3517 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3518 method.
3519
a00b7254
TT
35202021-03-08 Tom Tromey <tom@tromey.com>
3521
3522 * expression.h (class operation) <evaluate_funcall>: New methods.
3523 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3524 (class var_value_operation) <evaluate_funcall>: New method.
3525 (class structop_base_operation) <evaluate_funcall>: New method.
3526 (class var_msym_value_operation) <evaluate_funcall>: New method.
3527 (class structop_member_base): New class.
3528 (class structop_member_operation): Derive from
3529 structop_member_base.
3530 (class structop_mptr_operation): Derive from
3531 structop_member_base.
3532 (class funcall_operation): New class.
3533 * eval.c (operation::evaluate_funcall)
3534 (var_value_operation::evaluate_funcall)
3535 (scope_operation::evaluate_funcall)
3536 (structop_member_base::evaluate_funcall)
3537 (structop_base_operation::evaluate_funcall): New methods.
3538
1c02eb30
TT
35392021-03-08 Tom Tromey <tom@tromey.com>
3540
3541 * expop.h (class array_operation): New.
3542 * eval.c (array_operation::evaluate_struct_tuple)
3543 (array_operation::evaluate): New methods.
3544
e4479080
TT
35452021-03-08 Tom Tromey <tom@tromey.com>
3546
3547 * expop.h (class adl_func_operation): New.
3548 * eval.c (adl_func_operation::evaluate): New method.
3549
95d49dfb
TT
35502021-03-08 Tom Tromey <tom@tromey.com>
3551
3552 * ada-lang.c (ada_unop_in_range): No longer static.
3553 * ada-exp.h (class ada_unop_range_operation): New.
3554
7c15d377
TT
35552021-03-08 Tom Tromey <tom@tromey.com>
3556
3557 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3558 No longer static.
3559 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3560 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3561
5019124b
TT
35622021-03-08 Tom Tromey <tom@tromey.com>
3563
3564 * expop.h (class logical_and_operation)
3565 (class logical_or_operation): New.
3566 * eval.c (logical_and_operation::evaluate)
3567 (logical_or_operation::evaluate): New methods.
3568 * ax-gdb.c (logical_and_operation::do_generate_ax)
3569 (logical_or_operation::do_generate_ax): New methods.
3570
2bc9b40c
TT
35712021-03-08 Tom Tromey <tom@tromey.com>
3572
3573 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3574 static.
3575 * m2-exp.h: New file.
3576
5947d337
TT
35772021-03-08 Tom Tromey <tom@tromey.com>
3578
3579 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3580 * rust-exp.h (class rust_aggregate_operation): New.
3581
e4407a20
TT
35822021-03-08 Tom Tromey <tom@tromey.com>
3583
3584 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3585 No longer static.
3586 * rust-exp.h (class rust_struct_anon): New.
3587 (class rust_structop): New.
3588
9db6b6dd
TT
35892021-03-08 Tom Tromey <tom@tromey.com>
3590
3591 * rust-lang.c (rust_range): No longer static.
3592 * rust-exp.h (class rust_range_operation): New.
3593
6ce1ad67
TT
35942021-03-08 Tom Tromey <tom@tromey.com>
3595
3596 * rust-lang.c (rust_subscript): No longer static.
3597 * rust-exp.h (class rust_subscript_operation): New.
3598
11dd3dce
TT
35992021-03-08 Tom Tromey <tom@tromey.com>
3600
3601 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3602 parameter.
3603 (rust_evaluate_subexp): Update.
3604 * rust-exp.h (class rust_unop_ind_operation): New.
3605
6fab4359
TT
36062021-03-08 Tom Tromey <tom@tromey.com>
3607
3608 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3609 longer static. Add "opcode" parameter.
3610 (rust_evaluate_subexp): Update.
3611 * rust-exp.h: New file.
3612
9dcd3e29
TT
36132021-03-08 Tom Tromey <tom@tromey.com>
3614
3615 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3616 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3617 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3618 (evaluate_subexp_f): Update.
3619 * f-exp.h: New file.
3620
fc715eb2
TT
36212021-03-08 Tom Tromey <tom@tromey.com>
3622
3623 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3624 * ada-exp.h (class ada_ternop_range_operation): New.
3625
cc6bd32e
TT
36262021-03-08 Tom Tromey <tom@tromey.com>
3627
3628 * ada-lang.c (ada_qual_operation::evaluate): New method.
3629 * ada-exp.h (class ada_qual_operation): New.
3630
42fecb61
TT
36312021-03-08 Tom Tromey <tom@tromey.com>
3632
3633 * ada-lang.c (ada_string_operation::evaluate): New method.
3634 * ada-exp.h (class ada_string_operation): New.
3635
03070ee9
TT
36362021-03-08 Tom Tromey <tom@tromey.com>
3637
3638 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3639 * ada-exp.h: New file.
3640
821e72d7
TT
36412021-03-08 Tom Tromey <tom@tromey.com>
3642
3643 * expop.h (class multi_subscript_operation): New.
3644 * eval.c (multi_subscript_operation::evaluate): New method.
3645
085734dd
TT
36462021-03-08 Tom Tromey <tom@tromey.com>
3647
3648 * eval.c (objc_msgcall_operation::evaluate): New method.
3649 * c-exp.h (class objc_msgcall_operation): New.
3650
e82a5afc
TT
36512021-03-08 Tom Tromey <tom@tromey.com>
3652
3653 * expop.h (class var_value_operation): New.
3654 * eval.c (var_value_operation::evaluate)
3655 (var_value_operation::evaluate_for_address)
3656 (var_value_operation::evaluate_with_coercion)
3657 (var_value_operation::evaluate_for_sizeof)
3658 (var_value_operation::evaluate_for_cast): New methods.
3659 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3660
d9ad79d8
TT
36612021-03-08 Tom Tromey <tom@tromey.com>
3662
3663 * expop.h (cxx_cast_ftype): New typedef.
3664 (cxx_cast_operation): New template.
3665 (dynamic_cast_operation, reinterpret_cast_operation): New
3666 typedefs.
3667
292382f4
TT
36682021-03-08 Tom Tromey <tom@tromey.com>
3669
3670 * expop.h (class unop_cast_type_operation): New.
3671 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3672 method.
3673
165a813a
TT
36742021-03-08 Tom Tromey <tom@tromey.com>
3675
3676 * expop.h (class unop_cast_operation): New.
3677 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3678
e5946e16
TT
36792021-03-08 Tom Tromey <tom@tromey.com>
3680
3681 * expop.h (class assign_modify_operation): New.
3682 * eval.c (eval_binop_assign_modify): No longer static.
3683 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3684
40786782
TT
36852021-03-08 Tom Tromey <tom@tromey.com>
3686
3687 * expop.h (class assign_operation): New.
3688 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3689
44b675c8
TT
36902021-03-08 Tom Tromey <tom@tromey.com>
3691
3692 * expop.h (class type_instance_operation): New.
3693 * eval.c (type_instance_operation::evaluate): New method.
3694
f6b42326
TT
36952021-03-08 Tom Tromey <tom@tromey.com>
3696
3697 * expop.h (class op_this_operation): New.
3698 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3699
cbc18219
TT
37002021-03-08 Tom Tromey <tom@tromey.com>
3701
3702 * expop.h (class unop_memval_operation)
3703 (class unop_memval_type_operation): New.
3704 * eval.c (eval_op_memval): No longer static.
3705 (unop_memval_operation::evaluate_for_address)
3706 (unop_memval_type_operation::evaluate_for_address)
3707 (unop_memval_operation::evaluate_for_sizeof)
3708 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3709 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3710 (unop_memval_type_operation::do_generate_ax): New methods.
3711
ae4bb61e
TT
37122021-03-08 Tom Tromey <tom@tromey.com>
3713
3714 * expop.h (class unop_alignof_operation): New.
3715 * eval.c (eval_op_alignof): No longer static.
3716
85d23bda
TT
37172021-03-08 Tom Tromey <tom@tromey.com>
3718
3719 * expop.h (class unop_sizeof_operation): New.
3720 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3721
14aff815
TT
37222021-03-08 Tom Tromey <tom@tromey.com>
3723
3724 * expop.h (class unop_addr_operation): New.
3725 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3726
929f3aa7
TT
37272021-03-08 Tom Tromey <tom@tromey.com>
3728
3729 * expop.h (class typeid_operation): New.
3730
0af8829e
TT
37312021-03-08 Tom Tromey <tom@tromey.com>
3732
3733 * expop.h (class decltype_operation): New.
3734
4efc574c
TT
37352021-03-08 Tom Tromey <tom@tromey.com>
3736
3737 * expop.h (class typeof_operation): New.
3738
5b5f5140
TT
37392021-03-08 Tom Tromey <tom@tromey.com>
3740
3741 * expop.h (class type_operation): New.
3742 * eval.c (eval_op_type): No longer static.
3743
876469ff
TT
37442021-03-08 Tom Tromey <tom@tromey.com>
3745
3746 * expop.h (class unop_ind_base_operation)
3747 (class unop_ind_operation): New.
3748 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3749 (unop_ind_base_operation::evaluate_for_address)
3750 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3751 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3752
6d89e296
TT
37532021-03-08 Tom Tromey <tom@tromey.com>
3754
3755 * expop.h (unop_incr_operation): New template.
3756 (preinc_operation, predec_operation, postinc_operation)
3757 (postdec_operation): New typedefs.
3758 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3759 (eval_op_postdec): No longer static.
3760
9307d17b
TT
37612021-03-08 Tom Tromey <tom@tromey.com>
3762
3763 * expop.h (unary_ftype): New typedef.
3764 (unop_operation, usual_ax_binop_operation): New templates.
3765 (unary_plus_operation, unary_neg_operation)
3766 (unary_complement_operation, unary_logical_not_operation): New
3767 typedefs.
3768 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3769 (eval_op_lognot): No longer static.
3770 * ax-gdb.c (gen_expr_unop): New function.
3771
ae64ba58
TT
37722021-03-08 Tom Tromey <tom@tromey.com>
3773
3774 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3775
d4eff4c1
TT
37762021-03-08 Tom Tromey <tom@tromey.com>
3777
3778 * expop.h (class repeat_operation): New.
3779 * eval.c (eval_op_repeat): No longer static. Remove "op"
3780 parameter.
3781 (evaluate_subexp_standard): Update.
3782 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3783
46916f2b
TT
37842021-03-08 Tom Tromey <tom@tromey.com>
3785
3786 * expop.h (class comparison_operation): New.
3787 (equal_operation, notequal_operation, less_operation)
3788 (gtr_operation, geq_operation, leq_operation): New typedefs.
3789 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3790 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3791
224d6424
TT
37922021-03-08 Tom Tromey <tom@tromey.com>
3793
3794 * expop.h (class subscript_operation): New.
3795 * eval.c (eval_op_subscript): No longer static.
3796
373907ff
TT
37972021-03-08 Tom Tromey <tom@tromey.com>
3798
3799 * expop.h (class binop_operation, class usual_ax_binop_operation):
3800 New.
3801 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3802 (div_operation, rem_operation, lsh_operation, rsh_operation)
3803 (bitwise_and_operation, bitwise_ior_operation)
3804 (bitwise_xor_operation): New typedefs.
3805 * eval.c (eval_op_binary): No longer static.
3806
5133d78b
TT
38072021-03-08 Tom Tromey <tom@tromey.com>
3808
3809 * expop.h (class sub_operation): New.
3810 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3811 (evaluate_subexp_standard): Update.
3812
a94323b6
TT
38132021-03-08 Tom Tromey <tom@tromey.com>
3814
3815 * expop.h (class add_operation): New.
3816 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3817 (evaluate_subexp_standard): Update.
3818
e51e26a0
TT
38192021-03-08 Tom Tromey <tom@tromey.com>
3820
3821 * expop.h (class concat_operation): New.
3822 * eval.c (eval_op_concat): No longer static. Remove "op"
3823 parameter.
3824 (evaluate_subexp_standard): Update.
3825
07f724a8
TT
38262021-03-08 Tom Tromey <tom@tromey.com>
3827
3828 * expop.h (class structop_member_operation)
3829 (class structop_mptr_operation): New.
3830 * eval.c (eval_op_member): No longer static.
3831
ab0609be
TT
38322021-03-08 Tom Tromey <tom@tromey.com>
3833
3834 * expop.h (class structop_ptr_operation): New.
3835 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3836 parameter.
3837
808b22cf
TT
38382021-03-08 Tom Tromey <tom@tromey.com>
3839
3840 * expop.h (class structop_base_operation)
3841 (class structop_operation): New.
3842 * eval.c (eval_op_structop_struct): No longer static.
3843
8cfd3e95
TT
38442021-03-08 Tom Tromey <tom@tromey.com>
3845
3846 * expop.h (class complex_operation): New.
3847
09db3700
TT
38482021-03-08 Tom Tromey <tom@tromey.com>
3849
3850 * eval.c (eval_op_objc_selector): No longer static.
3851 * c-exp.h (class objc_selector_operation): New.
3852
06dc61b9
TT
38532021-03-08 Tom Tromey <tom@tromey.com>
3854
3855 * eval.c: Include c-exp.h.
3856 * c-exp.h (class objc_nsstring_operation): New.
3857
72d0a711
TT
38582021-03-08 Tom Tromey <tom@tromey.com>
3859
3860 * c-lang.c (c_string_operation::evaluate): New method.
3861 * c-exp.h: New file.
3862
9186293f
TT
38632021-03-08 Tom Tromey <tom@tromey.com>
3864
3865 * expop.h (class ternop_cond_operation): New.
3866 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3867
1594e0bb
TT
38682021-03-08 Tom Tromey <tom@tromey.com>
3869
3870 * expop.h (class ternop_slice_operation): New.
3871 * eval.c (eval_op_ternop): No longer static.
3872
b50db09f
TT
38732021-03-08 Tom Tromey <tom@tromey.com>
3874
3875 * expop.h (class string_operation): New.
3876 * eval.c (eval_op_string): No longer static.
3877
e6e01e16
TT
38782021-03-08 Tom Tromey <tom@tromey.com>
3879
3880 * expop.h (class internalvar_operation): New.
3881 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3882
e6985c5e
TT
38832021-03-08 Tom Tromey <tom@tromey.com>
3884
3885 * expop.h (class bool_operation): New.
3886
55bdbff8
TT
38872021-03-08 Tom Tromey <tom@tromey.com>
3888
3889 * expop.h (class register_operation): New.
3890 * eval.c (eval_op_register): No longer static.
3891 * ax-gdb.c (register_operation::do_generate_ax): New method.
3892
247d935b
TT
38932021-03-08 Tom Tromey <tom@tromey.com>
3894
3895 * expop.h (class last_operation): New.
3896
17679395
TT
38972021-03-08 Tom Tromey <tom@tromey.com>
3898
3899 * expop.h (class func_static_var_operation): New.
3900 * eval.c (eval_op_func_static_var): No longer static.
3901
b5cc3923
TT
39022021-03-08 Tom Tromey <tom@tromey.com>
3903
3904 * expop.h (class var_entry_value_operation): New.
3905 * eval.c (eval_op_var_entry_value): No longer static.
3906
0c8effa3
TT
39072021-03-08 Tom Tromey <tom@tromey.com>
3908
3909 * expression.h (class operation) <set_outermost>: New method.
3910 * expop.h (class var_msym_value_operation): New.
3911 * eval.c (eval_op_var_msym_value): No longer static.
3912 (var_msym_value_operation::evaluate_for_address)
3913 (var_msym_value_operation::evaluate_for_sizeof)
3914 (var_msym_value_operation::evaluate_for_cast): New methods.
3915 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3916 method.
3917
d336c29e
TT
39182021-03-08 Tom Tromey <tom@tromey.com>
3919
3920 * expop.h (class long_const_operation): New.
3921 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3922
d5ab122c
TT
39232021-03-08 Tom Tromey <tom@tromey.com>
3924
3925 * expop.h (class scope_operation): New.
3926 * eval.c (eval_op_scope): No longer static.
3927 (scope_operation::evaluate_for_address): New method.
3928 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3929
cae26a0c
TT
39302021-03-08 Tom Tromey <tom@tromey.com>
3931
3932 * expprint.c (float_const_operation::dump): New method.
3933 * expop.h (float_data): New typedef.
3934 (class float_const_operation): New.
3935
75f9892d
TT
39362021-03-08 Tom Tromey <tom@tromey.com>
3937
3938 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3939 * ax-gdb.c (gen_expr_binop): New function.
3940 (gen_expr_structop): Likewise.
3941
de401988
TT
39422021-03-08 Tom Tromey <tom@tromey.com>
3943
3944 * expprint.c (expr::dump_for_expression): New functions.
3945 * expop.h (dump_for_expression): New overloads.
3946 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3947 Update.
3948
e2803273
TT
39492021-03-08 Tom Tromey <tom@tromey.com>
3950
3951 * expression.h (expr::operation): New class.
3952 (expr::make_operation): New function.
3953 (expr::operation_up): New typedef.
3954 * expop.h: New file.
3955 * eval.c (operation::evaluate_for_cast)
3956 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3957 New methods.
3958 * ax-gdb.c (operation::generate_ax): New method.
3959
e18c58f2
TT
39602021-03-08 Tom Tromey <tom@tromey.com>
3961
3962 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3963 (gen_expr_binop_rest): New overload.
3964
c0d7ed8c
TT
39652021-03-08 Tom Tromey <tom@tromey.com>
3966
3967 * eval.c (eval_multi_subscript): New function.
3968 (evaluate_subexp_standard): Use it.
3969
dd5fd283
TT
39702021-03-08 Tom Tromey <tom@tromey.com>
3971
3972 * ada-lang.c (ada_binop_exp): New function.
3973 (ada_evaluate_subexp): Use it.
3974
3848abd6
TT
39752021-03-08 Tom Tromey <tom@tromey.com>
3976
3977 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3978 parameters.
3979 (ada_evaluate_subexp): Use it.
3980
38dc70cf
TT
39812021-03-08 Tom Tromey <tom@tromey.com>
3982
3983 * ada-lang.c (ada_binop_minmax): New function.
3984 (ada_evaluate_subexp): Use it.
3985
b84564fc
TT
39862021-03-08 Tom Tromey <tom@tromey.com>
3987
3988 * ada-lang.c (ada_unop_atr): New function.
3989 (ada_evaluate_subexp): Use it.
3990
b467efaa
TT
39912021-03-08 Tom Tromey <tom@tromey.com>
3992
3993 * ada-lang.c (ada_binop_in_bounds): New function.
3994 (ada_evaluate_subexp): Use it.
3995
5ce19db8
TT
39962021-03-08 Tom Tromey <tom@tromey.com>
3997
3998 * ada-lang.c (ada_ternop_slice): New function.
3999 (ada_evaluate_subexp): Use it.
4000
214b13ac
TT
40012021-03-08 Tom Tromey <tom@tromey.com>
4002
4003 * ada-lang.c (ada_equal_binop): New function.
4004 (ada_evaluate_subexp): Use it.
4005
faa1dfd7
TT
40062021-03-08 Tom Tromey <tom@tromey.com>
4007
4008 * ada-lang.c (ada_mult_binop): New function.
4009 (ada_evaluate_subexp): Use it.
4010
d05e24e6
TT
40112021-03-08 Tom Tromey <tom@tromey.com>
4012
4013 * ada-lang.c (ada_abs): New function.
4014 (ada_evaluate_subexp): Use it.
4015
68c75735
TT
40162021-03-08 Tom Tromey <tom@tromey.com>
4017
4018 * ada-lang.c (ada_atr_size): New function.
4019 (ada_evaluate_subexp): Use it.
4020
020dbabe
TT
40212021-03-08 Tom Tromey <tom@tromey.com>
4022
4023 * ada-lang.c (ada_atr_tag): New function.
4024 (ada_evaluate_subexp): Use it.
4025
7efc87ff
TT
40262021-03-08 Tom Tromey <tom@tromey.com>
4027
4028 * ada-lang.c (ada_unop_in_range): New function.
4029 (ada_evaluate_subexp): Use it.
4030
82390ab8
TT
40312021-03-08 Tom Tromey <tom@tromey.com>
4032
4033 * ada-lang.c (ada_unop_neg): New function.
4034 (ada_evaluate_subexp): Use it.
4035
62d4bd94
TT
40362021-03-08 Tom Tromey <tom@tromey.com>
4037
4038 * ada-lang.c (eval_ternop_in_range): New function.
4039 (ada_evaluate_subexp): Use it.
4040
3634f669
TT
40412021-03-08 Tom Tromey <tom@tromey.com>
4042
4043 * opencl-lang.c (eval_opencl_assign): New function.
4044 (evaluate_subexp_opencl): Use it.
4045
5e80600e
TT
40462021-03-08 Tom Tromey <tom@tromey.com>
4047
4048 * eval.c (eval_op_objc_msgcall): New function.
4049 (evaluate_subexp_standard): Use it.
4050
fb5ba2ab
TT
40512021-03-08 Tom Tromey <tom@tromey.com>
4052
4053 * eval.c (eval_binop_assign_modify): New function.
4054 (evaluate_subexp_standard): Use it.
4055
a49881f7
TT
40562021-03-08 Tom Tromey <tom@tromey.com>
4057
4058 * m2-lang.c (eval_op_m2_subscript): New function.
4059 (evaluate_subexp_modula2): Use it.
4060
41bdced5
TT
40612021-03-08 Tom Tromey <tom@tromey.com>
4062
4063 * m2-lang.c (eval_op_m2_high): New function.
4064 (evaluate_subexp_modula2): Use it.
4065
13ea014a
TT
40662021-03-08 Tom Tromey <tom@tromey.com>
4067
4068 * eval.c (evaluate_subexp_for_address_base): New function.
4069 (evaluate_subexp_for_address): Use it.
4070 (evaluate_subexp_for_sizeof_base): New function.
4071 (evaluate_subexp_for_sizeof): Use it.
4072
1fa41fc7
TT
40732021-03-08 Tom Tromey <tom@tromey.com>
4074
4075 * rust-lang.c (eval_op_rust_structop): New function.
4076 (rust_evaluate_subexp): Use it.
4077
575cae23
TT
40782021-03-08 Tom Tromey <tom@tromey.com>
4079
4080 * rust-lang.c (eval_op_rust_struct_anon): New function.
4081 (rust_evaluate_subexp): Use it.
4082
05104233
TT
40832021-03-08 Tom Tromey <tom@tromey.com>
4084
4085 * rust-lang.c (eval_op_rust_array): New function.
4086 (rust_evaluate_subexp): Use it.
4087
6fa9831f
TT
40882021-03-08 Tom Tromey <tom@tromey.com>
4089
4090 * rust-lang.c (eval_op_rust_complement): New function.
4091 (rust_evaluate_subexp): Use it.
4092
d123f9e4
TT
40932021-03-08 Tom Tromey <tom@tromey.com>
4094
4095 * rust-lang.c (eval_op_rust_ind): New function.
4096 (rust_evaluate_subexp): Use it.
4097
984af2cb
TT
40982021-03-08 Tom Tromey <tom@tromey.com>
4099
4100 * rust-lang.c (rust_subscript): Change parameters.
4101 (rust_evaluate_subexp): Update.
4102
d148f803
TT
41032021-03-08 Tom Tromey <tom@tromey.com>
4104
4105 * rust-lang.c (rust_range): Change parameters.
4106 (rust_evaluate_subexp): Update.
4107
9cbd1c20
TT
41082021-03-08 Tom Tromey <tom@tromey.com>
4109
4110 * f-lang.c (eval_op_f_allocated): New function.
4111 (evaluate_subexp_f): Use it.
4112
3c18c49c
TT
41132021-03-08 Tom Tromey <tom@tromey.com>
4114
4115 * f-lang.c (fortran_require_array): New function.
4116 (evaluate_subexp_f): Use it.
4117
216f6fcb
TT
41182021-03-08 Tom Tromey <tom@tromey.com>
4119
4120 * f-lang.c (eval_op_f_kind): New function.
4121 (evaluate_subexp_f): Use it.
4122
00f2db6f
TT
41232021-03-08 Tom Tromey <tom@tromey.com>
4124
4125 * f-lang.c (eval_op_f_cmplx): New function.
4126 (evaluate_subexp_f): Use it.
4127
93b2b5fa
TT
41282021-03-08 Tom Tromey <tom@tromey.com>
4129
4130 * f-lang.c (eval_op_f_modulo): New function.
4131 (evaluate_subexp_f): Use it.
4132
9f1a1f3c
TT
41332021-03-08 Tom Tromey <tom@tromey.com>
4134
4135 * f-lang.c (eval_op_f_floor): New function.
4136 (evaluate_subexp_f): Use it.
4137
3dc41f3c
TT
41382021-03-08 Tom Tromey <tom@tromey.com>
4139
4140 * f-lang.c (eval_op_f_ceil): New function.
4141 (evaluate_subexp_f): Use it.
4142
e08109f2
TT
41432021-03-08 Tom Tromey <tom@tromey.com>
4144
4145 * f-lang.c (eval_op_f_mod): New function.
4146 (evaluate_subexp_f): Use it.
4147
cc05c68e
TT
41482021-03-08 Tom Tromey <tom@tromey.com>
4149
4150 * f-lang.c (eval_op_f_abs): New function.
4151 (evaluate_subexp_f): Use it.
4152
aec95807
TT
41532021-03-08 Tom Tromey <tom@tromey.com>
4154
4155 * eval.c (eval_op_type): New function.
4156 (evaluate_subexp_standard): Use it.
4157
a220ead5
TT
41582021-03-08 Tom Tromey <tom@tromey.com>
4159
4160 * eval.c (eval_op_postdec): New function.
4161 (evaluate_subexp_standard): Use it.
4162
abffe116
TT
41632021-03-08 Tom Tromey <tom@tromey.com>
4164
4165 * eval.c (eval_op_postinc): New function.
4166 (evaluate_subexp_standard): Use it.
4167
9e1361b7
TT
41682021-03-08 Tom Tromey <tom@tromey.com>
4169
4170 * eval.c (eval_op_predec): New file.
4171 (evaluate_subexp_standard): Use it.
4172
00f50884
TT
41732021-03-08 Tom Tromey <tom@tromey.com>
4174
4175 * eval.c (eval_op_preinc): New function.
4176 (evaluate_subexp_standard): Use it.
4177
3aef2a07
TT
41782021-03-08 Tom Tromey <tom@tromey.com>
4179
4180 * eval.c (eval_op_memval): New function.
4181 (evaluate_subexp_standard): Use it.
4182
acee9468
TT
41832021-03-08 Tom Tromey <tom@tromey.com>
4184
4185 * eval.c (eval_op_alignof): New function.
4186 (evaluate_subexp_standard): Use it.
4187
786f70ee
TT
41882021-03-08 Tom Tromey <tom@tromey.com>
4189
4190 * eval.c (eval_op_ind): New function.
4191 (evaluate_subexp_standard): Use it.
4192
24338fb9
TT
41932021-03-08 Tom Tromey <tom@tromey.com>
4194
4195 * eval.c (eval_op_lognot): New function.
4196 (evaluate_subexp_standard): Use it.
4197
1f09ec81
TT
41982021-03-08 Tom Tromey <tom@tromey.com>
4199
4200 * eval.c (eval_op_complement): New function.
4201 (evaluate_subexp_standard): Use it.
4202
606d105f
TT
42032021-03-08 Tom Tromey <tom@tromey.com>
4204
4205 * eval.c (eval_op_neg): New function.
4206 (evaluate_subexp_standard): Use it.
4207
39f288be
TT
42082021-03-08 Tom Tromey <tom@tromey.com>
4209
4210 * eval.c (eval_op_plus): New function.
4211 (evaluate_subexp_standard): Use it.
4212
eed70b1c
TT
42132021-03-08 Tom Tromey <tom@tromey.com>
4214
4215 * eval.c (eval_op_repeat): New function.
4216 (evaluate_subexp_standard): Use it.
4217
60cdd487
TT
42182021-03-08 Tom Tromey <tom@tromey.com>
4219
4220 * eval.c (eval_op_leq): New function.
4221 (evaluate_subexp_standard): Use it.
4222
96e3efd9
TT
42232021-03-08 Tom Tromey <tom@tromey.com>
4224
4225 * eval.c (eval_op_geq): New function.
4226 (evaluate_subexp_standard): Use it.
4227
1f78d732
TT
42282021-03-08 Tom Tromey <tom@tromey.com>
4229
4230 * eval.c (eval_op_gtr): New function.
4231 (evaluate_subexp_standard): Use it.
4232
6cad1349
TT
42332021-03-08 Tom Tromey <tom@tromey.com>
4234
4235 * eval.c (eval_op_less): New function.
4236 (evaluate_subexp_standard): Use it.
4237
1fcb3559
TT
42382021-03-08 Tom Tromey <tom@tromey.com>
4239
4240 * eval.c (eval_op_notequal): New function.
4241 (evaluate_subexp_standard): Use it.
4242
0cc96de8
TT
42432021-03-08 Tom Tromey <tom@tromey.com>
4244
4245 * eval.c (eval_op_equal): New function.
4246 (evaluate_subexp_standard): Use it.
4247
288d26bc
TT
42482021-03-08 Tom Tromey <tom@tromey.com>
4249
4250 * eval.c (eval_op_subscript): New function.
4251 (evaluate_subexp_standard): Use it.
4252
7cdcdd02
TT
42532021-03-08 Tom Tromey <tom@tromey.com>
4254
4255 * eval.c (eval_op_binary): New function.
4256 (evaluate_subexp_standard): Use it.
4257
d9790e22
TT
42582021-03-08 Tom Tromey <tom@tromey.com>
4259
4260 * eval.c (eval_op_sub): New function.
4261 (evaluate_subexp_standard): Use it.
4262
aedaf9ac
TT
42632021-03-08 Tom Tromey <tom@tromey.com>
4264
4265 * eval.c (eval_op_add): New function.
4266 (evaluate_subexp_standard): Use it.
4267
b7a96ed2
TT
42682021-03-08 Tom Tromey <tom@tromey.com>
4269
4270 * eval.c (eval_op_member): New function.
4271 (evaluate_subexp_standard): Use it.
4272
fb461aa3
TT
42732021-03-08 Tom Tromey <tom@tromey.com>
4274
4275 * eval.c (eval_op_structop_ptr): New function.
4276 (evaluate_subexp_standard): Use it.
4277
3e96c4fc
TT
42782021-03-08 Tom Tromey <tom@tromey.com>
4279
4280 * eval.c (eval_op_structop_struct): New function.
4281 (evaluate_subexp_standard): Use it.
4282
f960a617
TT
42832021-03-08 Tom Tromey <tom@tromey.com>
4284
4285 * eval.c (eval_op_ternop): New function.
4286 (evaluate_subexp_standard): Use it.
4287
5c2f201e
TT
42882021-03-08 Tom Tromey <tom@tromey.com>
4289
4290 * eval.c (eval_op_concat): New function.
4291 (evaluate_subexp_standard): Use it.
4292
f871bae1
TT
42932021-03-08 Tom Tromey <tom@tromey.com>
4294
4295 * eval.c (eval_op_objc_selector): New function.
4296 (evaluate_subexp_standard): Use it.
4297
14a1c64a
TT
42982021-03-08 Tom Tromey <tom@tromey.com>
4299
4300 * eval.c (eval_op_string): New function.
4301 (evaluate_subexp_standard): Use it.
4302
ffff730b
TT
43032021-03-08 Tom Tromey <tom@tromey.com>
4304
4305 * eval.c (eval_op_register): New function.
4306 (evaluate_subexp_standard): Use it.
4307
9b1d8af6
TT
43082021-03-08 Tom Tromey <tom@tromey.com>
4309
4310 * eval.c (eval_op_func_static_var): New function.
4311 (evaluate_subexp_standard): Use it.
4312
c0df9289
TT
43132021-03-08 Tom Tromey <tom@tromey.com>
4314
4315 * eval.c (eval_op_var_msym_value): New function.
4316 (evaluate_subexp_standard): Use it.
4317
50b98adc
TT
43182021-03-08 Tom Tromey <tom@tromey.com>
4319
4320 * eval.c (eval_op_var_entry_value): New function.
4321 (evaluate_subexp_standard): Use it.
4322
ea2d29f7
TT
43232021-03-08 Tom Tromey <tom@tromey.com>
4324
4325 * eval.c (eval_op_scope): New function.
4326 (evaluate_subexp_standard): Use it.
4327
01573d73
TT
43282021-03-06 Chernov Sergey <klen_s@mail.ru>
4329
4330 PR gdb/27528:
4331 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4332
9938d15a
TT
43332021-03-06 Tom Tromey <tom@tromey.com>
4334
4335 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4336 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4337 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4338 (locate_dwz_sections, dwz_search_other_debugdirs)
4339 (dwarf2_get_dwz_file): Move to dwz.c.
4340 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4341 read.h.
4342 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4343 (dwarf2_get_dwz_file): Move from read.c.
4344
18035655
TT
43452021-03-06 Tom Tromey <tom@tromey.com>
4346
4347 * debuginfod-support.h: Include scoped_fd.h.
4348
a7308ce0
TT
43492021-03-06 Tom Tromey <tom@tromey.com>
4350
4351 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4352 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4353 (get_abbrev_section_for_cu, read_attribute_value)
4354 (get_debug_line_section): Update.
4355 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4356
fbedd546
TT
43572021-03-06 Tom Tromey <tom@tromey.com>
4358
4359 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4360 method.
4361 * dwarf2/read.c (section_is_p): Remove.
4362 (dwarf2_per_bfd::locate_sections)
4363 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4364 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4365 (dwarf2_locate_common_dwp_sections)
4366 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4367 Update.
4368
c2a62a3d
TT
43692021-03-06 Tom Tromey <tom@tromey.com>
4370
4371 * xcoffread.c: Include sect-names.h.
4372 * symfile.h (struct dwarf2_section_names, struct
4373 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4374 * dwarf2/sect-names.h: New file, from symfile.h.
4375 * dwarf2/read.c: Include sect-names.h.
4376
4444f407
TT
43772021-03-06 Tom Tromey <tom@tromey.com>
4378
4379 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4380 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4381 (abbrev_table::read): Update.
4382 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4383 (struct abbrev_info): Reformat.
4384 <attrs>: Now an array.
4385 (struct abbrev_table) <alloc_abbrev>: Remove.
4386
dd99cf0c
WP
43872021-03-06 Weimin Pan <weimin.pan@oracle.com>
4388
4389 * ctfread.c (ctf_psymtab_add_enums): New function.
4390 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4391
844be3f2
WP
43922021-03-06 Weimin Pan <weimin.pan@oracle.com>
4393
4394 * ctfread.c (read_func_kind_type): Set up function arguments.
4395
b2668f28
AB
43962021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4397 Andrew Burgess <andrew.burgess@embecosm.com>
4398
4399 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4400 includes.
4401 (riscv_csrset): New static global.
4402 (riscv_update_csrmap): New function.
4403 (riscv_iterate_over_regset_sections): Process CSRs.
4404
d782d24b
AB
44052021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4406
4407 * riscv-tdep.c (riscv_feature_name_csr): Define.
4408 (riscv_feature_name_cpu): Define.
4409 (riscv_feature_name_fpu): Define.
4410 (riscv_feature_name_virtual): Define.
4411 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4412 (riscv_freg_feature): Use riscv_feature_name_fpu.
4413 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4414 (riscv_csr_feature): Use riscv_feature_name_csr.
4415 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4416
fb8f3fc0
AB
44172021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4418 Craig Blackmore <craig.blackmore@embecosm.com>
4419
4420 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4421 (ALLDEPFILES): Add riscv-none-tdep.c.
4422 * configure: Regenerate.
4423 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4424 support.
4425 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4426 * elf-none-tdep.c: New file.
4427 * elf-none-tdep.h: New file.
4428 * riscv-none-tdep.c: New file.
4429
95ce627a
AB
44302021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4431 Andrew Burgess <andrew.burgess@embecosm.com>
4432
4433 * corelow.c: Add 'xml-tdesc.h' include.
4434 (core_target::read_description): Load the target description from
4435 the core file when possible.
4436 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4437 note.
4438 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4439 (gcore_elf_make_tdesc_note): New function.
4440 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4441 * linux-tdep.c (linux_make_corefile_notes): Add target description
4442 note.
4443
f3a5df7b
AB
44442021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4445
4446 * Makefile.in (SFILES): Add gcore-elf.c.
4447 (HFILES_NO_SRCDIR): Add gcore-elf.h
4448 * configure: Regenerate.
4449 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4450 support.
4451 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4452 (struct fbsd_collect_regset_section_cb_data): Delete.
4453 (fbsd_collect_regset_section_cb): Delete.
4454 (fbsd_collect_thread_registers): Delete.
4455 (struct fbsd_corefile_thread_data): Delete.
4456 (fbsd_corefile_thread): Delete.
4457 (fbsd_make_corefile_notes): Call
4458 gcore_elf_build_thread_register_notes instead of the now deleted
4459 FreeBSD code.
4460 * gcore-elf.c: New file, the content was moved here from
4461 linux-tdep.c, functions were renamed and given minor cleanup.
4462 * gcore-elf.h: New file.
4463 * gcore.c (gcore_find_signalled_thread): Moved here from
4464 linux-tdep.c and given a new name. Minor cleanups.
4465 * gcore.h (gcore_find_signalled_thread): Declare.
4466 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4467 (struct linux_collect_regset_section_cb_data): Delete.
4468 (linux_collect_regset_section_cb): Delete.
4469 (linux_collect_thread_registers): Delete.
4470 (linux_corefile_thread): Call
4471 gcore_elf_build_thread_register_notes.
4472 (find_signalled_thread): Delete.
4473 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4474
d1e93af6
SM
44752021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4476
4477 PR gdb/27147
4478 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4479 process_stratum_target parameter,
4480 sparc_store_inferior_registers): update callers.
4481 * sparc-nat.c (sparc_fetch_inferior_registers,
4482 sparc_store_inferior_registers): Add process_stratum_target
4483 parameter. Switch current thread before calling
4484 sparc_supply_gregset / sparc_collect_rwindow.
4485 (sparc_store_inferior_registers): Likewise.
4486 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4487 (sparc32obsd_collect_uthread): Likewise.
4488 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4489 Add assertion.
4490 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4491 sparc64obsd_supply_uthread): Add assertion.
4492
1178743e
TT
44932021-03-04 Tom Tromey <tromey@adacore.com>
4494
4495 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4496 (aux_add_nonlocal_symbols): Update.
4497 (ada_add_block_symbols): Change "found_sym" to bool.
4498
1bfa81ac
TT
44992021-03-03 Tom Tromey <tromey@adacore.com>
4500
4501 * ada-lang.c (ada_resolve_function): Update comment.
4502 (is_nonfunction, add_symbols_from_enclosing_procs)
4503 (remove_extra_symbols): Likewise.
4504 (struct match_data): Add constructor, initializers.
4505 (add_nonlocal_symbols): Remove memset.
4506 (aux_add_nonlocal_symbols): Update comment.
4507 (ada_add_block_renamings, add_nonlocal_symbols)
4508 (ada_add_all_symbols): Likewise.
4509 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4510
bbcdf9ab
TT
45112021-03-02 Tom Tromey <tromey@adacore.com>
4512
4513 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4514 (cast_to_gnat_encoded_fixed_point_type): Remove.
4515 (ada_value_cast, ada_evaluate_subexp): Update.
4516 (gnat_encoded_fixed_point_type_info)
4517 (ada_is_gnat_encoded_fixed_point_type)
4518 (gnat_encoded_fixed_point_delta)
4519 (gnat_encoded_fixed_point_scaling_factor): Remove.
4520 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4521 (gnat_encoded_fixed_point_delta)
4522 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4523 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4524 (ada_print_type): Update.
4525 * ada-valprint.c (ada_value_print_num): Update.
4526 * dwarf2/read.c (ada_get_gnat_encoded_number)
4527 (ada_get_gnat_encoded_ratio): New functions.
4528 (finish_fixed_point_type): Use them. Add parameters.
4529 (GNAT_FIXED_POINT_SUFFIX): New define.
4530 (gnat_encoded_fixed_point_type_info): New function.
4531 (read_base_type): Handle gnat encodings.
4532
5f9febe0
TT
45332021-03-02 Tom Tromey <tromey@adacore.com>
4534
4535 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4536 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4537 std::string.
4538 (GROW_VECT): Remove.
4539 (grow_vect): Remove.
4540
d1183b06
TT
45412021-03-02 Tom Tromey <tromey@adacore.com>
4542
4543 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4544 * ada-lang.c (resolve_subexp): Update.
4545 (ada_resolve_function): Accept a vector.
4546 (is_nonfunction, add_defn_to_vec)
4547 (add_symbols_from_enclosing_procs): Likewise.
4548 (num_defns_collected, defns_collected): Remove.
4549 (remove_extra_symbols): Return a vector.
4550 (remove_irrelevant_renamings): Return void.
4551 (ada_add_local_symbols): Accept a vector.
4552 (struct match_data) <obstackp>: Remove.
4553 <resultp>: New member.
4554 (aux_add_nonlocal_symbols): Update.
4555 (ada_add_block_renamings, add_nonlocal_symbols)
4556 (ada_add_all_symbols): Accept a vector.
4557 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4558 vector.
4559 (ada_lookup_symbol): Update.
4560 (ada_add_block_symbols): Accept a vector.
4561 (get_var_value, iterate_over_symbols): Update.
4562 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4563 Update.
4564
886d459f
TT
45652021-03-02 Tom Tromey <tromey@adacore.com>
4566
4567 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4568
bdcccc56
TT
45692021-03-02 Tom Tromey <tromey@adacore.com>
4570
4571 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4572 auto_obstack.
4573 <root>: Initialize.
4574 (ada_pspace_data): Remove destructor.
4575 <sym_cache>: Now a unique_ptr.
4576 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4577 (ada_get_symbol_cache): Use 'new'.
4578 (ada_clear_symbol_cache): Rewrite.
4579
1228719f
TT
45802021-03-02 Tom Tromey <tromey@adacore.com>
4581
4582 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4583 is null.
4584
bb3a4efe
LS
45852021-02-27 Lancelot Six <lsix@lancelotsix.com>
4586
4587 PR gdb/27393
4588 * source.c (add_path): Skip empty dirnames.
4589
26b43ca6 45902021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4591
4592 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4593 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4594
dffdd8b5
SM
45952021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4596
4597 PR gdb/26861
4598 * target.c (target_mourn_inferior): Only compare pids in
4599 target_mourn_inferior.
4600
64d38fdd
JM
46012021-02-25 Jan Matyas <jmatyas@codasip.com>
4602
4603 PR gdb/26819
4604 * remote.c (remote_target::start_remote): Ensure the single
4605 thread, automatically added for remote targets without the
4606 concept of threading, is initially in set to the "resumed"
4607 state.
4608 * remote.c (remote_target::add_current_inferior_and_thread):
4609 Add return value - return the main thread.
4610
2450ad54
JV
46112021-02-25 Jan Vrany <jan.vrany@labware.com>
4612
4613 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4614 (mi_tsv_created): Likewise.
4615 (mi_tsv_deleted): Likewise.
4616
30c80d88
TV
46172021-02-25 Tom de Vries <tdevries@suse.de>
4618
4619 PR symtab/27354
4620 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4621 section_kind for &dwo_file->sections.info.
4622
68337b8b
AB
46232021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 PR fortran/26155
4626 * f-lang.c (fortran_argument_convert): Delete declaration.
4627 (fortran_prepare_argument): New function.
4628 (evaluate_subexp_f): Move logic to new function
4629 fortran_prepare_argument.
4630
faeb9f13
AB
46312021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4632
4633 * f-exp.y (f77_keywords): Add 'associated'.
4634 * f-lang.c (fortran_associated): New function.
4635 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4636 (operator_length_f): Likewise.
4637 (print_unop_or_binop_subexp_f): New function.
4638 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4639 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4640 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4641 (operator_check_f): Likewise.
4642 * std-operator.def: Add FORTRAN_ASSOCIATED.
4643
170f4b23
AB
46442021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4645
4646 * f-exp.y (fortran_operators): Add ".xor.".
4647
aa659cfa
TV
46482021-02-24 Tom de Vries <tdevries@suse.de>
4649
4650 PR symtab/27336
4651 * dwarf2/attribute.c (attribute::form_is_signed): New function
4652 factored out of ...
4653 * dwarf2/attribute.h (attribute::as_signed): ... here.
4654 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4655 (attribute::form_is_signed): Declare.
4656 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4657 for DW_AT_decl_file.
4658
268c77c1
KB
46592021-02-24 Kevin Buettner <kevinb@redhat.com>
4660
4661 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4662 order for <sys/ptrace.h> and <asm/ptrace.h>.
4663
665af52e
KB
46642021-02-24 Kevin Buettner <kevinb@redhat.com>
4665
4666 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4667 <sys/ptrace.h>.
4668
dd80d750
AB
46692021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4670
4671 * exec.c (set_section_command): Move variable declarations into
4672 the function body, and use std::string instead of a fixed size
4673 buffer.
4674
336aa7b7
AB
46752021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4676
4677 * exec.c (exec_target::get_section_table): Delete member function.
4678 (section_table_read_available_memory): Use current_top_target, not
4679 just the exec_ops target.
4680 * target-delegates.c: Regenerate.
4681 * target.c (default_get_section_table): New function.
4682 * target.h (target_ops::get_section_table): Change default
4683 behaviour to call default_get_section_table.
4684 (default_get_section_table): Declare.
4685
02f7d26b
AB
46862021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4687
4688 * exec.c (exec_target::close): Call new clear_target_sections
4689 function.
4690 (program_space::add_target_sections): Update name of member
4691 variable.
4692 (program_space::add_target_sections): Update name of member
4693 variable.
4694 (program_space::remove_target_sections): Likewise.
4695 (exec_one_fork): Use new target_sections member function.
4696 (exec_target::get_section_table): Likewise.
4697 (exec_target::files_info): Likewise.
4698 (set_section_command): Likewise.
4699 (exec_set_section_address): Likewise.
4700 (exec_target::has_memory): Use new target_sections member
4701 function.
4702 * progspace.h (program_space::clear_target_sections): New member
4703 function.
4704 (program_space::target_sections): Rename member variable to
4705 m_target_sections, replace with a new member function.
4706 (program_space::m_target_sections): New member variable.
4707 * solib-dsbt.c (scan_dyntag): Use new member function.
4708 * solib-svr4.c (scan_dyntag): Likewise.
4709
19cf757a
AB
47102021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4713 return type const.
4714 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4715 (section_table_read_available_memory): Make local const.
4716 (exec_target::xfer_partial): Make local const.
4717 (print_section_info): Make parameter const.
4718 * gdb/exec.h (print_section_info): Likewise.
4719 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4720 const.
4721 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4722 Likewise.
4723 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4724 Likewise.
4725 * gdb/s390-tdep.c (s390_load): Likewise.
4726 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4727 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4728 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4729 Rename to...
4730 (target_debug_print_const_target_section_table_p): ...this.
4731 * gdb/target-delegates.c: Regenerate.
4732 * gdb/target.c (target_get_section_table): Make return type const.
4733 (target_section_by_addr): Likewise. Also make some locals const.
4734 (memory_xfer_partial_1): Make some locals const.
4735 * gdb/target.h (struct target_ops) <get_section_table>: Make
4736 return type const.
4737 (target_section_by_addr): Likewise.
4738 (target_get_section_table): Likewise.
4739
02a79309
AB
47402021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4741
4742 * NEWS: Mention new 'maint info target-sections' command.
4743 * maint.c (maintenance_info_target_sections): New function.
4744 (_initialize_maint_cmds): Register new command.
4745
895b7b4e
AB
47462021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4747
4748 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4749 (riscv_features_from_bfd): ...this. Change parameter type to
4750 'bfd*', and update as required.
4751 (riscv_find_default_target_description): Update call to
4752 riscv_features_from_bfd. Select a default xlen based on
4753 info.bfd_arch_info.
4754 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4755
bc3c0632
AB
47562021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4757
4758 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4759 dynamic types in UNOP_IND.
4760
08ac5771
SM
47612021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 PR gdb/26828
4764 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4765 Instantiate queue.
4766 (~dwarf2_queue_guard): Clear queue.
4767 (queue_comp_unit): Assert that queue is
4768 instantiated.
4769 (process_queue): Adjust.
4770 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4771
616c069a
SM
47722021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4773
4774 PR gdb/26828
4775 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4776 to decide whether or not to enqueue it for expansion.
4777 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4778 after calling maybe_queue_comp_unit.
4779
897608ed
SM
47802021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * linux-nat.c (linux_nat_filter_event): Return void.
4783
15908a11
TT
47842021-02-22 Tom Tromey <tromey@adacore.com>
4785
4786 * solib-svr4.c (enable_break): Update.
4787 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4788 type.
4789 (target_bfd_reopen): Change parameter type.
4790 * bfd-target.h (target_bfd_reopen): Change parameter type.
4791
f53fc427
SM
47922021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4793
4794 * thread.c (add_thread_silent): Add assert.
4795 (find_thread_ptid): Add assert.
4796
de146e19
SM
47972021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4798
4799 PR gdb/27435
4800 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4801 (target_unpush_up): Likewise.
4802 * procfs.c (procfs_target::attach): Push target early. Use
4803 target_unpush_up to unpush target in case of error.
4804 * target.h (struct target_unpusher): Move here.
4805 (target_unpush_up): Likewise.
4806
8488c357
KB
48072021-02-19 Kevin Buettner <kevinb@redhat.com>
4808
4809 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4810 (which in turn includes <gnulib/config.h>) before include
4811 of <signal.h>.
4812
5a9f5403
NC
48132021-02-19 Nelson Chu <nelson.chu@sifive.com>
4814
4815 PR 27158
4816 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4817 (decode_j_type_insn): Likewise.
4818 (decode_cj_type_insn): Likewise.
4819 (decode_b_type_insn): Likewise.
4820 (decode): Likewise.
4821
26f53cd3
TT
48222021-02-18 Tom Tromey <tom@tromey.com>
4823
4824 * expression.h (struct expression) <evaluate>: Declare method.
4825 * eval.c (evaluate_subexp): Simplify.
4826 (expression::evaluate): New method.
4827 (evaluate_expression, evaluate_type): Use expression::evaluate.
4828
6a780b67
KB
48292021-02-17 Kevin Buettner <kevinb@redhat.com>
4830
4831 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4832 to accessing it.
4833 (ada_lookup_name_info): Likewise.
4834
adeab0c5
MF
48352021-02-13 Mike Frysinger <vapier@gentoo.org>
4836
4837 * aclocal.m4: Regenerate.
4838
089436f7
TV
48392021-02-12 Tom de Vries <tdevries@suse.de>
4840
4841 PR threads/26228
4842 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4843 (lin_thread_signals): New static var.
4844 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4845 New function.
4846 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4847 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4848 Declare.
4849 * linux-thread-db.c (check_thread_signals): Use
4850 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4851
96df3e28
AB
48522021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4853
4854 * f-exp.y (f77_keywords): Add allocated.
4855 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4856 (operator_length_f): Likewise.
4857 (print_subexp_f): Likewise.
4858 (dump_subexp_body_f): Likewise.
4859 (operator_check_f): Likewise.
4860 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4861
05f68f52
TV
48622021-02-11 Tom de Vries <tdevries@suse.de>
4863
4864 PR symtab/27353
4865 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4866 Return true for DW_FORM_strx.
4867
b260f8d6
TT
48682021-02-11 Tom Tromey <tromey@adacore.com>
4869
4870 PR gdb/27383:
4871 * parse.c (write_exp_symbol_reference): Write sym.block.
4872
bf3386f0
AB
48732021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * NEWS: Mention changes to 'maint info sections'.
4876 * maint.c (match_substring): Return a bool, fix whitespace issue.
4877 (struct single_bfd_flag_info): New struct.
4878 (bfd_flag_info): New static global.
4879 (match_bfd_flags): Return a bool, use bfd_flag_info.
4880 (print_bfd_flags): Use bfd_flag_info.
4881 (maint_print_section_info): Delete trailing whitespace.
4882 (struct maint_info_sections_opts): New struct.
4883 (maint_info_sections_option_defs): New static global.
4884 (maint_info_sections_completer): New function.
4885 (maintenance_info_sections): Use option parsing mechanism.
4886 (_initialize_maint_cmds): Update command help text for 'maint info
4887 sections' and register a command completer.
4888
4790db14
AB
48892021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4890
4891 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4892 functionality merged into...
4893 (maint_print_all_sections): ...this new function.
4894 (maintenance_info_sections): Make use of maint_print_all_sections,
4895 allow all objects to be printed even where there's no executable.
4896
1db66e34
AB
48972021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4898
4899 * breakpoint.c (resolve_sal_pc): Make use of
4900 bound_minimal_symbol::obj_section.
4901 * maint.c (maintenance_translate_address): Likewise.
4902 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4903 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4904 member function.
4905 * printcmd.c (info_address_command): Make use of
4906 bound_minimal_symbol::obj_section.
4907
18b8df43
AM
49082021-02-11 Alan Modra <amodra@gmail.com>
4909
4910 * arm-symbian-tdep.c: Delete.
4911 * NEWS: Mention arm-symbian removal.
4912 * Makefile.in: Remove arm-symbian-tdep entries.
4913 * configure.tgt: Remove arm*-*-symbianelf*.
4914 * doc/gdb.texinfo: Remove mention of SymbianOS.
4915 * osabi.c (gdb_osabi_names): Remove "Symbian".
4916 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4917 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4918 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4919 handling.
4920 * testsuite/gdb.base/dup-sect.exp: Likewise.
4921 * testsuite/gdb.base/long_long.exp: Likewise.
4922 * testsuite/gdb.base/solib-weak.exp: Likewise.
4923 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4924 * testsuite/gdb.python/py-section-script.exp: Likewise.
4925 * testsuite/lib/dwarf.exp: Likewise.
4926 * testsuite/lib/gdb.exp: Likewise.
4927
e92c8eb8
AB
49282021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4929
4930 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4931 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4932 (one_or_two_args): New pattern.
4933 (f77_keywords): Add lbound and ubound.
4934 * f-lang.c (fortran_bounds_all_dims): New function.
4935 (fortran_bounds_for_dimension): New function.
4936 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4937 (operator_length_f): Likewise.
4938 (print_subexp_f): Likewise.
4939 (dump_subexp_body_f): Likewise.
4940 (operator_check_f): Likewise.
4941 * std-operator.def (FORTRAN_LBOUND): Define.
4942 (FORTRAN_UBOUND): Define.
4943
a52d653e
AB
49442021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4945
4946 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4947 and set_section_index member functions where appropriate.
4948 * coffread.c (coff_symtab_read): Likewise.
4949 (process_coff_symbol): Likewise.
4950 * ctfread.c (set_symbol_address): Likewise.
4951 * dwarf2/read.c (add_partial_symbol): Likewise.
4952 (var_decode_location): Likewise.
4953 * language.c: Likewise.
4954 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4955 (compact_minimal_symbols): Likewise.
4956 (minimal_symbol_upper_bound): Likewise.
4957 * objfiles.c (relocate_one_symbol): Likewise.
4958 * psympriv.h (partial_symbol::obj_section): Likewise.
4959 (partial_symbol::address): Likewise.
4960 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4961 * stabsread.c (scan_file_globals): Likewise.
4962 * symmisc.c (dump_msymbols): Likewise.
4963 * symtab.c (general_symbol_info::obj_section): Likewise.
4964 (fixup_section): Likewise.
4965 (get_msymbol_address): Likewise.
4966 * symtab.h (general_symbol_info::section): Rename to...
4967 (general_symbol_info::m_section): ...this.
4968 (general_symbol_info::set_section_index): New member function.
4969 (general_symbol_info::section_index): Likewise.
4970 (SYMBOL_SECTION): Delete.
4971 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4972 set_section_index member functions where appropriate.
4973 (MSYMBOL_SECTION): Delete.
4974 (symbol::symbol): Update to initialize 'm_section'.
4975 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4976 (process_xcoff_symbol): Likewise.
4977
ebbc3a7d
AB
49782021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4979
4980 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4981 MSYMBOL_OBJ_SECTION.
4982 * findvar.c (language_defn::read_var_value): Likewise.
4983 * infcmd.c (jump_command): Likewise.
4984 * linespec.c (minsym_found): Likewise.
4985 * maint.c (maintenance_translate_address): Likewise.
4986 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4987 (minimal_symbol_upper_bound): Likewise.
4988 * parse.c (find_minsym_type_and_address): Likewise.
4989 (operator_check_standard): Likewise.
4990 * printcmd.c (info_address_command): Likewise.
4991 * symmisc.c (dump_msymbols): Likewise.
4992 (print_symbol): Likewise.
4993 * symtab.c (general_symbol_info::obj_section): Define new
4994 function.
4995 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4996 (find_pc_sect_compunit_symtab): Likewise.
4997 (find_function_start_sal): Likewise.
4998 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4999 MSYMBOL_OBJ_SECTION.
5000 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5001 function.
5002 (SYMBOL_OBJ_SECTION): Delete.
5003 (MSYMBOL_OBJ_SECTION): Delete.
5004
9bb305b3
TT
50052021-02-09 Tom Tromey <tom@tromey.com>
5006
5007 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5008
cf2b2075
TV
50092021-02-09 Tom de Vries <tdevries@suse.de>
5010
5011 PR symtab/27341
5012 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5013 construct an array type. Add assert to ensure that element_type is
5014 not being modified.
5015
03642b71
AB
50162021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5017
5018 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5019 (gcore_collect_regset_section_cb): Delete.
5020 (gcore_collect_thread_registers): Delete.
5021 (gcore_build_thread_register_notes): Delete.
5022 (gcore_find_signalled_thread): Delete.
5023 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5024 'gdbarch' and 'thread_info' declarations.
5025 (gcore_build_thread_register_notes): Delete declaration.
5026 (gcore_find_signalled_thread): Likewise.
5027 * fbsd-tdep.c: Remove 'gcore.h' include.
5028 (struct fbsd_collect_regset_section_cb_data): New struct.
5029 (fbsd_collect_regset_section_cb): New function.
5030 (fbsd_collect_thread_registers): New function.
5031 (struct fbsd_corefile_thread_data): New struct.
5032 (fbsd_corefile_thread): New function.
5033 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5034 * linux-tdep.c: Remove 'gcore.h' include.
5035 (struct linux_collect_regset_section_cb_data): New struct.
5036 (linux_collect_regset_section_cb): New function.
5037 (linux_collect_thread_registers): New function.
5038 (linux_corefile_thread): Call Linux specific code.
5039 (find_signalled_thread): New function.
5040 (linux_make_corefile_notes): Call find_signalled_thread.
5041
f73e424f
TT
50422021-02-09 Tom Tromey <tromey@adacore.com>
5043
5044 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5045 not_lval value.
5046 * value.c (value_contents_copy_raw): Now static.
5047 * value.h (value_contents_copy_raw): Don't declare.
5048
a4f0544b
TT
50492021-02-09 Tom Tromey <tromey@adacore.com>
5050
5051 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5052 fields.
5053
9b3e4b5d
SV
50542021-02-08 Shahab Vahedi <shahab@synopsys.com>
5055
5056 PR tdep/27369
5057 * arc-linux-tdep.c (handle_atomic_sequence): New.
5058 (arc_linux_software_single_step): Call handle_atomic_sequence().
5059
29db1eb3
AB
50602021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5063 function.
5064 (REQUIRE_WINDOW): Call is_valid member function.
5065 (REQUIRE_WINDOW_FOR_SETTER): New define.
5066 (gdbpy_tui_is_valid): Call is_valid member function.
5067 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5068 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5069 tui_active too.
5070 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5071 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5072 the function.
5073
e0c23e11
AB
50742021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5075
5076 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5077 for the title is not nullptr.
5078
1cf23996
AB
50792021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5080
5081 * tui-layout.c (saved_tui_windows): Delete.
5082 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5083 call new get_windows member function instead.
5084 (tui_get_window_by_name): Check in tui_windows.
5085 (tui_layout_window::apply): Don't add to tui_windows.
5086 * tui-layout.h (tui_layout_base::get_windows): New member function.
5087 (tui_layout_window::get_windows): Likewise.
5088 (tui_layout_split::get_windows): Likewise.
5089
a53a2657
AB
50902021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5091
5092 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5093 of the window objects.
5094
2708dbbd
AB
50952021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * python/python.c (gdbpy_print_stack): Reformat an error message.
5098
cd074e04
AB
50992021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5100
5101 * tui/tui-interp.c (tui_command_line_handler): New function.
5102 (tui_interp::resume): Register tui_command_line_handler as the
5103 input_handler.
5104 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5105 function.
5106 (tui_getc_1): Delete handling of '\n' and '\r'.
5107 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5108
4cf28e91
HD
51092021-02-07 Hannes Domani <ssbssa@yahoo.de>
5110
5111 * tui/tui-regs.c (tui_data_window::display_registers_from):
5112 Mark invisible register sub windows.
5113 (tui_data_window::check_register_values): Ignore invisible
5114 register sub windows.
5115
3537bc23
HD
51162021-02-07 Hannes Domani <ssbssa@yahoo.de>
5117
5118 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5119 n_spaces with a negative value.
5120
5fc2d6aa
HD
51212021-02-07 Hannes Domani <ssbssa@yahoo.de>
5122
5123 * tui/tui-regs.c (tui_data_window::display_registers_from):
5124 Add refresh_window call.
5125
83962f83
HD
51262021-02-07 Hannes Domani <ssbssa@yahoo.de>
5127
5128 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5129
0110ec82
SM
51302021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5131
5132 * symmisc.c (std_in, std_out, std_err): Remove.
5133 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5134
7c6944ab
TV
51352021-02-05 Tom de Vries <tdevries@suse.de>
5136
5137 PR breakpoints/27330
5138 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5139 glibc object file has debug info.
5140
e77b0004
TV
51412021-02-05 Tom de Vries <tdevries@suse.de>
5142
5143 PR symtab/27333
5144 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5145
0e857c82
TV
51462021-02-05 Tom de Vries <tdevries@suse.de>
5147
5148 PR breakpoints/27313
5149 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5150 syscall numbers.
5151
bdfea17e
TT
51522021-02-05 Tom Tromey <tom@tromey.com>
5153
5154 * compile/compile-c-support.c (get_compile_context)
5155 (c_get_compile_context, cplus_get_compile_context): Change return
5156 type.
5157 * language.c (language_defn::get_compile_instance): New method.
5158 * language.h (language_defn::get_compile_instance): Change return
5159 type. No longer inline.
5160 * c-lang.c (c_language::get_compile_instance): Change return type.
5161 (cplus_language::get_compile_instance): Change return type.
5162 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5163 Change return type.
5164 * compile/compile.c (compile_to_object): Update.
5165
1b30f421
TT
51662021-02-05 Tom Tromey <tom@tromey.com>
5167
5168 * parser-defs.h (write_exp_symbol_reference): Declare.
5169 * parse.c (write_exp_symbol_reference): New function.
5170 * p-exp.y (variable): Use write_exp_symbol_reference.
5171 * m2-exp.y (variable): Use write_exp_symbol_reference.
5172 * f-exp.y (variable): Use write_exp_symbol_reference.
5173 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5174 * c-exp.y (variable): Use write_exp_symbol_reference.
5175
ae710496
TV
51762021-02-05 Tom de Vries <tdevries@suse.de>
5177
5178 PR exp/27265
5179 * valarith.c (complex_binop): Throw an error if complex type can't
5180 be created.
5181
d3b54e63
TV
51822021-02-05 Tom de Vries <tdevries@suse.de>
5183
5184 PR symtab/27307
5185 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5186 return.
5187
fc9a13fb
TV
51882021-02-05 Tom de Vries <tdevries@suse.de>
5189
5190 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5191
04b4939b
MF
51922021-02-04 Mike Frysinger <vapier@gentoo.org>
5193
5194 * configure.tgt (riscv*-*-*): Set gdb_sim.
5195
6ff267e1
SM
51962021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5197
5198 * target.c (target_is_non_stop_p): Return bool.
5199 * target.h (target_is_non_stop_p): Return bool.
5200
fdbc5215
SM
52012021-02-04 Simon Marchi <simon.marchi@efficios.com>
5202
5203 * record-full.c (record_full_async_inferior_event_handler):
5204 Don't clear async event handler.
5205 (record_full_base_target::wait): Clear async event handler at
5206 beginning.
5207
85d3ad8e
SM
52082021-02-04 Simon Marchi <simon.marchi@efficios.com>
5209
5210 * record-btrace.c (record_btrace_handle_async_inferior_event):
5211 Don't clear async event handler.
5212 (record_btrace_target::wait): Clear async event handler at
5213 beginning.
5214
baa8575b
SM
52152021-02-04 Simon Marchi <simon.marchi@efficios.com>
5216
5217 * remote.c (remote_target::wait): Clear async event handler at
5218 beginning, mark if needed at the end.
5219 (remote_async_inferior_event_handler): Don't set or clear async
5220 event handler.
5221
6b36ddeb
SM
52222021-02-04 Simon Marchi <simon.marchi@efficios.com>
5223
5224 * async-event.h (async_event_handler_func): Add documentation.
5225 * async-event.c (check_async_event_handlers): Don't clear
5226 async_event_handler ready flag.
5227 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5228 flag.
5229 * record-btrace.c (record_btrace_handle_async_inferior_event):
5230 Likewise.
5231 * record-full.c (record_full_async_inferior_event_handler):
5232 Likewise.
5233 * remote-notif.c (remote_async_get_pending_events_handler):
5234 Likewise.
5235 * remote.c (remote_async_inferior_event_handler): Likewise.
5236
72d383bb
SM
52372021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5238
5239 * infrun.c (handle_inferior_event): Move stop_soon variable to
5240 inner scope.
5241
408f6686
PA
52422021-02-03 Pedro Alves <pedro@palves.net>
5243
5244 * infcmd.c (detach_command): Hold strong reference to target, and
5245 if all-stop on entry, restart threads on exit.
5246 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5247 (restart_stepped_thread): ... this new function. Also handle
5248 trap_expected.
5249 (restart_after_all_stop_detach): New function.
5250 * infrun.h (restart_after_all_stop_detach): Declare.
5251
ac7d717c
PA
52522021-02-03 Pedro Alves <pedro@palves.net>
5253
5254 * infrun.c (struct step_over_info): Initialize fields.
5255 (prepare_for_detach): Handle ongoing in-line step over.
5256
e87f0fe8
PA
52572021-02-03 Pedro Alves <pedro@palves.net>
5258
5259 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5260 here...
5261 * remote.c (remote_target::remote_detach_1): ... and here ...
5262 * target.c (target_detach): ... instead of here.
5263 * target.h (target_ops::detach): Add comment.
5264
8ff53139
PA
52652021-02-03 Pedro Alves <pedro@palves.net>
5266
5267 * infrun.c (struct wait_one_event): Move higher up.
5268 (prepare_for_detach): Abort in-progress displaced steps instead of
5269 letting them complete.
5270 (handle_one): If the inferior is detaching, don't add the thread
5271 back to the global step-over chain.
5272 (restart_threads): Don't restart threads if detaching.
5273 (handle_signal_stop): Remove inferior::detaching reference.
5274
91475068
PA
52752021-02-03 Pedro Alves <pedro@palves.net>
5276
5277 * infrun.c (prepare_for_detach): Don't release scoped_restore
5278 before returning.
5279
d758e62c
PA
52802021-02-03 Pedro Alves <pedro@palves.net>
5281
5282 * infrun.c (handle_one): New function, factored out from ...
5283 (stop_all_threads): ... here.
5284
b0083dd7
PA
52852021-02-03 Pedro Alves <pedro@palves.net>
5286
5287 * remote.c (remote_notif_stop_ack): Don't error out on
5288 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5289 (remote_target::discard_pending_stop_replies): Don't delete
5290 in-flight notification; instead, clear its contents.
5291
621cc310
PA
52922021-02-03 Pedro Alves <pedro@palves.net>
5293
5294 * remote.c (extended_remote_target::attach): Set target async in
5295 the target-non-stop path too.
5296
2ab76a18
PA
52972021-02-03 Pedro Alves <pedro@palves.net>
5298
5299 PR gdb/27055
5300 * infrun.c (handle_signal_stop): Move main context_switch call
5301 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5302
2e3773ff
LS
53032021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5304
5305 * NEWS (Changed commands): Add entry for the behavior change of
5306 the inferior command.
5307 * inferior.c (inferior_command): When no argument is given to the
5308 inferior command, display info about the currently selected
5309 inferior.
5310
e57933dc
SM
53112021-02-02 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5314 a sect_offset.
5315 (read_attribute_reprocess): Adjust.
5316
2b0c7f41
SM
53172021-02-02 Simon Marchi <simon.marchi@efficios.com>
5318
5319 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5320 <gnu_ranges_base>: ... this...
5321 <rnglists_base>: ... and this.
5322 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5323 <gnu_ranges_base>: ... this...
5324 <rnglists_base>: ... and this.
5325 (read_cutu_die_from_dwo): Adjust
5326 (dwarf2_get_pc_bounds): Adjust
5327 (dwarf2_record_block_ranges): Adjust.
5328 (read_full_die_1): Adjust
5329 (partial_die_info::read): Adjust.
5330 (read_rnglist_index): Adjust.
5331
a1c40103
SM
53322021-02-02 Simon Marchi <simon.marchi@efficios.com>
5333
5334 PR gdb/26813
5335 * dwarf2/read.c (read_loclists_rnglists_header): Add
5336 header_offset parameter and use it.
5337 (read_loclist_index): Read header of the current contribution,
5338 not the one at the beginning of the section.
5339 (read_rnglist_index): Likewise.
5340
b1829e1b
SM
53412021-02-02 Simon Marchi <simon.marchi@efficios.com>
5342
5343 PR gdb/26813
5344 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5345 requires_reprocessing flag.
5346 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5347 DW_FORM_loclistx.
5348 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5349 and DW_FORM_loclistx.
5350 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5351 instead of set_address for DW_FORM_loclistx and
5352 DW_FORM_rnglistx.
5353
0c800c6e
SM
53542021-02-02 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * dwarf2/read.c (read_loclist_index): Remove bound check for
5357 start of offset.
5358 (read_rnglist_index): Likewise.
5359
05787bad
SM
53602021-02-02 Simon Marchi <simon.marchi@efficios.com>
5361
5362 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5363 of the offset.
5364
5e4d9bbc
SM
53652021-02-02 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5368
a0c1eeba
SM
53692021-02-02 Simon Marchi <simon.marchi@efficios.com>
5370
5371 * dwarf2/read.c (read_loclist_index): Change complaints into
5372 errors.
5373
2bd3e4b8
TV
53742021-02-02 Tom de Vries <tdevries@suse.de>
5375
5376 PR symtab/24620
5377 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5378 psymtab == nullptr.
5379
82a1fd3a
AB
53802021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5381
5382 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5383 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5384 here from linux-tdep.c and given a new name. Minor cleanups.
5385 (gcore_collect_regset_section_cb): Likewise.
5386 (gcore_collect_thread_registers): Likewise.
5387 (gcore_build_thread_register_notes): Likewise.
5388 (gcore_find_signalled_thread): Likewise.
5389 * gcore.h (gcore_build_thread_register_notes): Declare.
5390 (gcore_find_signalled_thread): Declare.
5391 * fbsd-tdep.c: Add 'gcore.h' include.
5392 (struct fbsd_collect_regset_section_cb_data): Delete.
5393 (fbsd_collect_regset_section_cb): Delete.
5394 (fbsd_collect_thread_registers): Delete.
5395 (struct fbsd_corefile_thread_data): Delete.
5396 (fbsd_corefile_thread): Delete.
5397 (fbsd_make_corefile_notes): Call
5398 gcore_build_thread_register_notes instead of the now deleted
5399 FreeBSD code.
5400 * linux-tdep.c: Add 'gcore.h' include.
5401 (struct linux_collect_regset_section_cb_data): Delete.
5402 (linux_collect_regset_section_cb): Delete.
5403 (linux_collect_thread_registers): Delete.
5404 (linux_corefile_thread): Call
5405 gcore_build_thread_register_notes.
5406 (find_signalled_thread): Delete.
5407 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5408
ebde6f2d
TV
54092021-01-29 Tom de Vries <tdevries@suse.de>
5410
5411 PR breakpoints/26063
5412 * infrun.c (process_event_stop_test): Reset
5413 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5414 changed.
5415
0f93c3a2
AB
54162021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5417
5418 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5419 assert. Extend the header comment.
5420
f237f998
AB
54212021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5422
5423 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5424 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5425 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5426 (tui_locator_win_info_ptr): Delete declaration.
5427 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5428 (tui_disasm_window::set_contents): Fetch state from tui_location
5429 global.
5430 (tui_get_begin_asm_address): Likewise.
5431 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5432 for locator window.
5433 (get_locator_window): Delete.
5434 (initialize_known_windows): Treat locator window just like all the
5435 rest.
5436 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5437 (tui_source_window::set_contents): Fetch state from tui_location
5438 global.
5439 (tui_source_window::showing_source_p): Likewise.
5440 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5441 (_locator): Delete.
5442 (tui_locator_win_info_ptr): Delete.
5443 (tui_locator_window::make_status_line): Fetch state from
5444 tui_location global.
5445 (tui_locator_window::rerender): Remove check of 'handle',
5446 reindent function body.
5447 (tui_locator_window::set_locator_fullname): Delete.
5448 (tui_locator_window::set_locator_info): Delete.
5449 (tui_update_locator_fullname): Delete.
5450 (tui_show_frame_info): Likewise.
5451 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5452 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5453 tui/tui-location.h and renamed to
5454 tui_location_tracker::set_location.
5455 (tui_locator_window::set_locator_fullname): Moved to
5456 tui/tui-location.h and renamed to
5457 tui_location_tracker::set_fullname.
5458 (tui_locator_window::full_name): Delete.
5459 (tui_locator_window::proc_name): Delete.
5460 (tui_locator_window::line_no): Delete.
5461 (tui_locator_window::addr): Delete.
5462 (tui_locator_window::gdbarch): Delete.
5463 (tui_update_locator_fullname): Delete declaration.
5464 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5465 for locator window.
5466 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5467 (tui_display_main): Call function on tui_location directly.
5468 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5469 * tui/tui-location.c: New file.
5470 * tui/tui-location.h: New file.
5471
8ee511af
SM
54722021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5473
5474 * gdbtypes.h (get_type_arch): Rename to...
5475 (struct type) <arch>: ... this, update all users.
5476
6ac37371
SM
54772021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5478
5479 * gdbtypes.h (struct type) <arch>: Rename to...
5480 <arch_owner>: ... this, update all users.
5481 <objfile>: Rename to...
5482 <objfile_owner>: ... this, update all users.
5483
24cf6389
AB
54842021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5485
5486 * gdbcmd.h (execute_command_to_string): Update comment.
5487 * top.c (execute_command_to_string): Update header comment.
5488
2a7f6487
TV
54892021-01-28 Tom de Vries <tdevries@suse.de>
5490
5491 PR breakpoints/27205
5492 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5493 (create_longjmp_master_breakpoint_names): New function, factored out
5494 of ...
5495 (create_longjmp_master_breakpoint): ... here. Only try to install
5496 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5497 breakpoint in libc.so failed.
5498
59b59f08
LS
54992021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5500
5501 PR gdb/27133
5502 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5503 unique_ptr is released when the wrapped pointer is kept for later
5504 use.
5505
807f647c
MM
55062021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5507
5508 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5509 BLR and BR instructions.
5510 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5511 (enum aarch64_masks): New.
5512
4ef367bf
TT
55132021-01-26 Tom Tromey <tromey@adacore.com>
5514
5515 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5516 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5517 (windows_init_thread_list, windows_nat::handle_load_dll)
5518 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5519 (windows_nat_target::resume)
5520 (windows_nat_target::get_windows_debug_event)
5521 (windows_nat_target::interrupt, windows_xfer_memory)
5522 (windows_nat_target::close): Update.
5523 * nat/windows-nat.c (DEBUG_EVENTS): Use
5524 debug_prefixed_printf_cond.
5525 (matching_pending_stop, fetch_pending_stop)
5526 (continue_last_debug_event): Update.
5527
4cb1265b
MS
55282020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5529
5530 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5531 elfcore_write_file_note.
5532
d0cc52bd
SV
55332021-01-26 Shahab Vahedi <shahab@synopsys.com>
5534
5535 * arc-tdep.c (arc_add_reggroups): New function.
5536 (arc_gdbarch_init): Call arc_add_reggroups.
5537
ac3571d9 55382021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5539
5540 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5541
9f6c202e
TV
55422021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5543 Simon Marchi <simon.marchi@polymtl.ca>
5544 Tom de Vries <tdevries@suse.de>
5545
5546 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5547 DW_AT_ranges.
5548
a625a8c9
TT
55492021-01-25 Tom Tromey <tromey@adacore.com>
5550
5551 * dwarf2/read.c (get_mpz): New function.
5552 (get_dwarf2_rational_constant): Use it.
5553
19184910
TT
55542021-01-25 Tom Tromey <tromey@adacore.com>
5555
5556 * ada-lang.c (resolve_subexp): Handle array context.
5557
b10bae18
TT
55582021-01-23 Tom Tromey <tom@tromey.com>
5559
5560 PR compile/25575
5561 * compile/compile-loc2c.c (note_register): New function.
5562 (pushf_register_address, pushf_register): Use it.
5563
3637a558
TT
55642021-01-23 Tom Tromey <tom@tromey.com>
5565
5566 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5567 Change type of "registers_used".
5568 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5569 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5570 (locexpr_generate_c_location, loclist_generate_c_location): Change
5571 type of "registers_used".
5572 * compile/compile.h (compile_dwarf_expr_to_c)
5573 (compile_dwarf_bounds_to_c): Update.
5574 * compile/compile-loc2c.c (pushf_register_address)
5575 (pushf_register, do_compile_dwarf_expr_to_c)
5576 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5577 of "registers_used".
5578 * compile/compile-c.h (generate_c_for_variable_locations):
5579 Update.
5580 * compile/compile-c-symbols.c (generate_vla_size)
5581 (generate_c_for_for_one_variable): Change type of
5582 "registers_used".
5583 (generate_c_for_variable_locations): Return std::vector.
5584 * compile/compile-c-support.c (generate_register_struct): Change
5585 type of "registers_used".
5586 (compute): Update.
5587
9f7f6cb8
TT
55882021-01-23 Tom Tromey <tom@tromey.com>
5589
5590 * compile/compile-internal.h (class compile_instance)
5591 <set_arguments>: Change return type.
5592 * compile/compile.c (compile_to_object): Remove call to reset.
5593 (compile_instance::set_arguments): Change return type.
5594
dd5ca05f
SM
55952021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5596
5597 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5598 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5599
d3ee35db
LS
56002021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5601
5602 * Makefile.in (SELFTESTS_SRCS): Add
5603 unittests/gdb_tilde_expand-selftests.c.
5604 * unittests/gdb_tilde_expand-selftests.c: New file.
5605
9d2d8a16
AB
56062021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5607
5608 PR cli/25956
5609 * NEWS: Mention new command.
5610 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5611 (version_style): Define.
5612 (cli_style_option::cli_style_option): Add intensity parameter, and
5613 use as appropriate.
5614 (_initialize_cli_style): Register version style set/show commands.
5615 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5616 (version_style): Declare.
5617 * top.c (print_gdb_version): Use version_stype, and styled_string
5618 to print the GDB version string.
5619
e7b43072
AB
56202021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5621
5622 * utils.c (emit_style_escape): Only emit an escape sequence if the
5623 requested style is different than the current applied style.
5624 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5625 current applied_style.
5626 (fputs_styled): Remove is_default check.
5627 (fputs_styled_unfiltered): Likewise.
5628 (vfprintf_styled_no_gdbfmt): Likewise.
5629
2189c312
SM
56302021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5631
5632 * remote.h (remote_debug_printf): New.
5633 (remote_debug_printf_nofunc): New.
5634 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5635 * remote.c: Use above macros throughout file.
5636
02349803
SM
56372021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5638
5639 * remote.h (remote_debug): Change to bool.
5640 * remote.c (remote_debug): Change to bool.
5641 (_initialize_remote): Adjust.
5642
cda09ec9
SM
56432021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5644
5645 * target.h (remote_debug): Move to...
5646 * remote.h (remote_debug): ... here.
5647 * top.c (remote_debug): Move to...
5648 * remote.c (remote_debug): ... here.
5649 * remote-sim.c: Include remote.h.
5650
baf2b57f
SM
56512021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5652
5653 * cli/cli-cmds.c (show_remote_debug): Remove.
5654 (show_remote_timeout): Remove.
5655 (_initialize_cli_cmds): Don't register commands.
5656 * remote.c (show_remote_debug): Move here.
5657 (show_remote_timeout): Move here.
5658 (_initialize_remote): Register commands.
5659
344e9841
SM
56602021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5661
5662 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5663 type::objfile method instead.
5664
30625020
SM
56652021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5666
5667 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5668 use the type::is_objfile_owned method.
5669
5b7d941b
SM
56702021-01-22 Simon Marchi <simon.marchi@efficios.com>
5671
5672 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5673 (TYPE_OWNER): Remove.
5674 (TYPE_OBJFILE): Adjust.
5675 (struct main_type) <flag_objfile_owned>: Rename to...
5676 <m_flag_objfile_owned>: ... this.
5677 <owner>: Rename to...
5678 <m_owner>: ... this.
5679 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5680 methods.
5681 (TYPE_ALLOC): Adjust.
5682 * gdbtypes.c (alloc_type): Adjust.
5683 (alloc_type_arch): Adjust.
5684 (alloc_type_copy): Adjust.
5685 (get_type_arch): Adjust.
5686 (smash_type): Adjust.
5687 (lookup_array_range_type): Adjust.
5688 (recursive_dump_type): Adjust.
5689 (copy_type_recursive): Adjust.
5690 * compile/compile-c-types.c (convert_func): Adjust.
5691 (convert_type_basic): Adjust.
5692 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5693 Adjust.
5694 * language.c
5695 (language_arch_info::type_and_symbol::alloc_type_symbol):
5696 Adjust.
5697
d5d24e12
LM
56982021-01-21 Luis Machado <luis.machado@linaro.org>
5699
5700 * coffread.c (enter_linenos): Passing string to complaint.
5701 * valops.c (value_assign): Make array view.
5702
a59902a7
SM
57032021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5704
5705 * auto-load.h (debug_auto_load): Move here.
5706 (auto_load_debug_printf): New.
5707 * auto-load.c: Use auto_load_debug_printf.
5708 (debug_auto_load): Move to header.
5709 * linux-thread-db.c (try_thread_db_load): Use
5710 auto_load_debug_printf.
5711 * main.c (captured_main_1): Likewise.
5712
d3abc0ce
SM
57132021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5714
5715 * f-valprint.c (f77_array_offset_tbl): Remove.
5716
1e15fcac
SM
57172021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5718
5719 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5720
439706e6
SM
57212021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5722
5723 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5724 of gdb_select.
5725
325d39e4
HD
57262021-01-21 Hannes Domani <ssbssa@yahoo.de>
5727
5728 PR python/19151
5729 * python/py-breakpoint.c (bppy_get_location): Handle
5730 bp_hardware_breakpoint.
5731 (bppy_init): Likewise.
5732 (gdbpy_breakpoint_created): Likewise.
5733
7cb6d92a
SM
57342021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5735
5736 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5737
d4dd4fca
SM
57382021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5739
5740 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5741 (_initialize_gdb_bfd): Adjust.
5742
de53369b
SM
57432021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5744
5745 PR gdb/26828
5746 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5747
17e593e9
SM
57482021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5749
5750 * dwarf2/read.c (follow_die_offset): Add logging.
5751 (dwarf2_per_objfile::age_comp_units): Add logging.
5752
6bd434d6
SM
57532021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5754
5755 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5756 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5757 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5758 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5759 * arm-tdep.c (struct frame_unwind): Make static.
5760 * auto-load.c (auto_load_safe_path_vec): Make static.
5761 * csky-tdep.c (csky_stub_unwind): Make static.
5762 * gdbarch.c (gdbarch_data_registry): Make static.
5763 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5764 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5765 * i386-tdep.c (i386_frame_setup_skip_insns,
5766 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5767 Make static.
5768 * infrun.c (observer_mode): Make static.
5769 * linux-nat.c (sigchld_action): Make static.
5770 * linux-thread-db.c (thread_db_list): Make static.
5771 * maint-test-options.c (maintenance_test_options_list):
5772 * mep-tdep.c (mep_csr_registers): Make static.
5773 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5774 (stats): Make static.
5775 * nat/linux-osdata.c (struct osdata_type): Make static.
5776 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5777 * progspace.c (last_program_space_num): Make static.
5778 * python/py-param.c (struct parm_constant): Remove struct type
5779 name.
5780 (parm_constants): Make static.
5781 * python/py-record-btrace.c (btpy_list_methods): Make static.
5782 * python/py-record.c (recpy_gap_type): Make static.
5783 * record.c (record_goto_cmdlist): Make static.
5784 * regcache.c (regcache_descr_handle): Make static.
5785 * registry.h (DEFINE_REGISTRY): Make definition static.
5786 * symmisc.c (std_in, std_out, std_err): Make static.
5787 * top.c (previous_saved_command_line): Make static.
5788 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5789 static.
5790 * unittests/command-def-selftests.c (nr_duplicates,
5791 nr_invalid_prefixcmd, lists): Make static.
5792 * unittests/observable-selftests.c (test_notification): Make
5793 static.
5794 * unittests/optional/assignment/1.cc (counter): Make static.
5795 * unittests/optional/assignment/2.cc (counter): Make static.
5796 * unittests/optional/assignment/3.cc (counter): Make static.
5797 * unittests/optional/assignment/4.cc (counter): Make static.
5798 * unittests/optional/assignment/5.cc (counter): Make static.
5799 * unittests/optional/assignment/6.cc (counter): Make static.
5800
a6c11cbb
JS
58012021-01-20 Joel Sherrill <joel@rtems.org>
5802
5803 PR gdb/27219
5804 * remote.c (struct remote_thread_info) <resume_state>: Rename
5805 to...
5806 <get_resume_state>: ... this.
5807 (remote_target::resume): Adjust.
5808 (remote_target::commit_resume): Adjust.
5809 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5810
6f52fdf4
SDJ
58112021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5812 Tom Tromey <tom@tromey.com>
5813
5814 * stap-probe.c (stap_parse_single_operand): Handle '!'
5815 operator.
5816 (stap_parse_argument_conditionally): Likewise.
5817 Skip spaces after processing open-parenthesis sub-expression.
5818 (stap_parse_argument_1): Skip spaces after call to
5819 stap_parse_argument_conditionally.
5820 Handle case when right-side expression is a parenthesized
5821 sub-expression.
5822 Skip spaces after call to stap_parse_argument_1.
5823
1c3b85ad
LS
58242021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5825
5826 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5827
a9a87d35
LM
58282021-01-19 Luis Machado <luis.machado@linaro.org>
5829
5830 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5831 memory and save data.
5832 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5833 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5834 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5835 (trad_frame_value_bytes_p): Remove.
5836 (trad_frame_reset_saved_regs): Adjust documentation.
5837 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5838 constructor and reset the state of the registers.
5839 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5840 (trad_frame_value_bytes_p, trad_frame_set_value)
5841 (trad_frame_set_realreg, trad_frame_set_addr)
5842 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5843 (trad_frame_set_reg_realreg): Update to call member function.
5844 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5845 (trad_frame_get_prev_register): Likewise.
5846
5847 * aarch64-tdep.c (aarch64_analyze_prologue)
5848 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5849 (aarch64_prologue_prev_register): Update to use member functions.
5850 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5851 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5852 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5853 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5854 (arm_make_epilogue_frame_cache): Likewise.
5855 * avr-tdep.c (avr_frame_unwind_cache)
5856 (avr_frame_prev_register): Likewise.
5857 * cris-tdep.c (cris_scan_prologue): Likewise.
5858 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5859 * frv-tdep.c (frv_analyze_prologue): Likewise.
5860 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5861 * lm32-tdep.c (lm32_frame_cache): Likewise.
5862 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5863 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5864 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5865 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5866 (reset_saved_regs): Adjust to set realreg.
5867 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5868 call member functions.
5869 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5870 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5871 (s390_backchain_frame_unwind_cache): Likewise.
5872 * score-tdep.c (score7_analyze_prologue)
5873 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5874 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5875 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5876 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5877 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5878 * tilegx-tdep.c (tilegx_analyze_prologue)
5879 (tilegx_frame_cache): Likewise.
5880 * v850-tdep.c (v850_frame_cache): Likewise.
5881 * vax-tdep.c (vax_frame_cache): Likewise.
5882
bdec2917
LM
58832021-01-19 Luis Machado <luis.machado@linaro.org>
5884
5885 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5886 of buffer + length.
5887 (put_frame_register_bytes): Likewise.
5888 Adjust documentation.
5889 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5890 (safe_frame_unwind_memory): Likewise.
5891 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5892 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5893 gdb::array_view.
5894 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5895 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5896 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5897 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5898 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5899 * dwarf2/loc.c (rw_pieced_value): Likewise.
5900 * hppa-tdep.c (hppa_frame_cache): Likewise.
5901 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5902 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5903 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5904 (i386_linux_rt_sigtramp_start): Likewise.
5905 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5906 * i386-tdep.c (i386_register_to_value): Likewise.
5907 * i387-tdep.c (i387_register_to_value): Likewise.
5908 * ia64-tdep.c (ia64_register_to_value): Likewise.
5909 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5910 (m32r_linux_rt_sigtramp_start): Likewise.
5911 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5912 * m68k-tdep.c (m68k_register_to_value): Likewise.
5913 * mips-tdep.c (mips_register_to_value)
5914 (mips_value_to_register): Likewise.
5915 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5916 (ppcfbsd_sigtramp_frame_cache): Likewise.
5917 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5918 (ppcobsd_sigtramp_frame_cache): Likewise.
5919 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5920 (rs6000_register_to_value): Likewise.
5921 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5922 * tramp-frame.c (tramp_frame_start): Likewise.
5923 * valops.c (value_assign): Likewise.
5924
ccbe4c82
LM
59252021-01-19 Luis Machado <luis.machado@linaro.org>
5926
5927 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5928 array_view.
5929 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5930 instead of buffer and size.
5931 (trad_frame_set_reg_value_bytes): Likewise.
5932 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5933 (trad_frame_set_value_bytes): Likewise.
5934
0e7620dc
MF
59352021-01-18 Mike Frysinger <vapier@gentoo.org>
5936
5937 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5938
6a9ad81c
AB
59392021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5940
5941 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5942 (riscv_fbsd_gregset): Use riscv_supply_regset.
5943 (riscv_fbsd_fpregset): Likewise.
5944 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5945 (riscv_linux_fregset): Likewise.
5946 * riscv-tdep.c (riscv_supply_regset): Define new function.
5947 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5948
d3d7d1ba
TV
59492021-01-18 Tom de Vries <tdevries@suse.de>
5950
5951 PR tdep/27172
5952 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5953 New macro.
5954 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5955 for SEGV_BNDERR.
5956
aa2838cc
SM
59572021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5958
5959 * remote.c (class remote_target) <remote_hostio_send_command,
5960 remote_hostio_parse_result>: Constify parameter.
5961 (remote_hostio_parse_result): Likewise.
5962 (remote_target::remote_hostio_send_command): Adjust.
5963 (remote_target::remote_hostio_pread_vFile): Adjust.
5964 (remote_target::fileio_readlink): Adjust.
5965 (remote_target::fileio_fstat): Adjust.
5966
b5c8f22d
SM
59672021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5968
5969 * remote.c (remote_target::start_remote): Move wait_status to
5970 narrower scope.
5971
e3b2741b
SM
59722021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * remote.c (class remote_target):
5975 <add_current_inferior_and_thread>: Constify parameter.
5976 (stop_reply_extract_thread): Likewise.
5977 (remote_target::get_current_thread): Likewise.
5978 (remote_target::add_current_inferior_and_thread): Likewise.
5979
cecb1912
SM
59802021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5981
5982 * remote.c (class remote_target)
5983 <remote_unpack_thread_info_response,
5984 parse_threadlist_response>: Constify parameter and/or return
5985 value and or local variable.
5986 (stub_unpack_int): Likewise.
5987 (unpack_nibble): Likewise.
5988 (unpack_byte): Likewise.
5989 (unpack_int): Likewise.
5990 (unpack_string): Likewise.
5991 (unpack_threadid): Likewise.
5992 (remote_target::remote_unpack_thread_info_response): Likewise.
5993 (remote_target::parse_threadlist_response): Likewise.
5994
5a11fff0
AB
59952021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5996
5997 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5998
17e89137
LS
59992021-01-14 Lancelot Six <lsix@lancelotsix.com>
6000
6001 * MAINTAINERS (Write After Approval): Add myself.
6002
58eadc4b
BE
60032021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6004
6005 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6006 because is_trivially_default_constructible was first implemented with
6007 gcc-5.
6008
5fae2a2c
TV
60092021-01-14 Tom de Vries <tdevries@suse.de>
6010
6011 PR breakpoints/27151
6012 * objfiles.h (in_plt_section): Handle .plt.sec.
6013
8f66807b
AB
60142021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6015
6016 PR gdb/26819
6017 * remote.c
6018 (remote_target::select_thread_for_ambiguous_stop_reply): New
6019 member function.
6020 (remote_target::process_stop_reply): Call
6021 select_thread_for_ambiguous_stop_reply.
6022
bd497355
SM
60232021-01-13 Simon Marchi <simon.marchi@efficios.com>
6024
6025 * record-btrace.c (class record_btrace_target): Remove.
6026 (record_btrace_target::commit_resume): Remove.
6027 * record-full.c (class record_full_target): Remove.
6028 (record_full_target::commit_resume): Remove.
6029
c9d22089
SM
60302021-01-13 Simon Marchi <simon.marchi@efficios.com>
6031
6032 * remote.c (enum class resume_state): New.
6033 (struct resumed_pending_vcont_info): New.
6034 (struct remote_thread_info) <resume_state, set_not_resumed,
6035 set_resumed_pending_vcont, resumed_pending_vcont_info,
6036 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6037 New.
6038 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6039 (remote_target::remote_add_thread): Adjust.
6040 (remote_target::process_initial_stop_replies): Adjust.
6041 (remote_target::resume): Adjust.
6042 (remote_target::commit_resume): Rely on state in
6043 remote_thread_info and not on tp->executing.
6044 (remote_target::process_stop_reply): Adjust.
6045
d8d1feb4
SM
60462021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6047
6048 * arc-tdep.h (arc_debug_printf): New.
6049 * arc-tdep.c: Use arc_debug_printf.
6050 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6051 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6052 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6053
fb0f5031
SM
60542021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6055
6056 * arc-tdep.h (arc_debug): Change type to bool.
6057 * arc-tdep.c (arc_debug): Change type to bool.
6058 (arc_analyze_prologue): Adjust.
6059 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6060 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6061
5bf7e91b
SM
60622021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6063
6064 * auto-load.c (auto_load_objfile_script_1): Use bool.
6065 (execute_script_contents): Use bool.
6066
db972fce
SM
60672021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6068
6069 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6070 comment here.
6071 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6072 comment to header.
6073 * extension-priv.h (struct extension_language_script_ops)
6074 <auto_load_enabled>: Return bool.
6075 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6076 comment here.
6077 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6078 comment to header.
6079 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6080 move comment here.
6081 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6082 move comment to header.
6083 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6084 move comment here.
6085 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6086 move comment to header.
6087
5e12f48f
SM
60882021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6089
6090 * auto-load.h (file_is_auto_load_safe): Change return type to
6091 bool, move comment here.
6092 * auto-load.c (file_is_auto_load_safe): Change return type and
6093 advice_printed to bool. Move comment to header.
6094
54ca9002
SM
60952021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6096
6097 * jit.c (jit_debug_printf): New, use throughout file.
6098
24a7f1b5
SM
60992021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6100
6101 * infrun.c (normal_stop): Fix indentation.
6102
fe7a351a
SM
61032021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6104
6105 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6106 declarations to ...
6107 * symfile.h: ... here.
6108 * symfile.c: Update doc.
6109
16e9019e
SM
61102021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6111
6112 * target.h (baud_rate, serial_parity): Move declarations...
6113 * serial.h: ... here.
6114 * main.c: Include serial.h.
6115 * serial.c (baud_rate, serial_parity): Update doc.
6116
b2f2ae0d
SM
61172021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6118
6119 * top.c (pre_init_ui_hook): Remove.
6120
5291fe3c
SP
61212021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6122
6123 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6124 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6125 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6126 * features/aarch64-fpu.xml: Add bfloat16 type.
6127
ce38f5ed
AB
61282021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6131
7c654b71
AB
61322021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * f-exp.y (dot_ops): Rename to...
6135 (fortran_operators): ...this. Add a header comment. Add symbol
6136 based operators.
6137 (yylex): Update to use fortran_operators not dot_ops. Remove
6138 special handling for '**', this is now included in
6139 fortran_operators.
6140
c6185dce
SM
61412021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6144 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6145 * aarch64-tdep.c: Use aarch64_debug_printf.
6146
eef401dc
SM
61472021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6148
6149 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6150 file.
6151
062eaacb
SM
61522021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6153
6154 * jit.c (jit_debug): Change type to bool.
6155 (_initialize_jit): Adjust.
6156
54585eee
TT
61572021-01-09 Tom Tromey <tom@tromey.com>
6158
6159 PR compile/23672
6160 * compile/compile.c (compile_to_object): Avoid crash when
6161 osabi_triplet_regexp returns NULL.
6162
bc167b6b
TT
61632021-01-09 Tom Tromey <tom@tromey.com>
6164
6165 * tracepoint.h (class collection_list) <append_exp>: Take a
6166 std::string.
6167 * tracepoint.c (collection_list::append_exp): Take a std::string.
6168 (encode_actions_1): Update.
6169
8fc48b79
TT
61702021-01-08 Tom Tromey <tromey@adacore.com>
6171
6172 * parse.c (parse_expression): Add void_context_p parameter. Use
6173 parse_exp_in_context.
6174 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6175 parse_expression.
6176 (print_command, call_command): Update.
6177 * expression.h (parse_expression): Add void_context_p parameter.
6178
3c8c6de2
AB
61792021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6180
6181 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6182 for internalvar components that have a dynamic location.
6183
1940319c
TV
61842021-01-08 Tom de Vries <tdevries@suse.de>
6185
6186 PR gdb/26881
6187 * breakpoint.c (create_exception_master_breakpoint_probe)
6188 (create_exception_master_breakpoint_hook): Factor out
6189 of ...
6190 (create_exception_master_breakpoint): ... here. Only try to install
6191 the master exception breakpoint in objfile.debug using the
6192 _Unwind_DebugHook method, if the install using probes in objfile
6193 failed.
6194
e3436813
AB
61952021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * f-lang.c (fortran_value_subarray): Call value_from_component.
6198
e904f56d
MF
61992021-01-07 Mike Frysinger <vapier@gentoo.org>
6200
6201 * remote-sim.c: Include memory-map.h.
6202 (gdbsim_target): Define memory_map override.
6203 (gdbsim_target::memory_map): Define.
6204
959d6a67
TT
62052021-01-07 Tom Tromey <tromey@adacore.com>
6206
6207 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6208
d4813f10
TT
62092021-01-07 Tom Tromey <tromey@adacore.com>
6210
6211 * ada-lang.c (add_component_interval): Start loop using vector's
6212 updated size.
6213
b49180ac
TT
62142021-01-06 Tom Tromey <tromey@adacore.com>
6215
6216 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6217 Do not cast result.
6218 * valarith.c (fixed_point_binop): Handle multiplication
6219 and division specially.
6220 * valops.c (value_to_gdb_mpq): New function.
6221 (value_cast_to_fixed_point): Use it.
6222
55195361
HD
62232021-01-05 Hannes Domani <ssbssa@yahoo.de>
6224
6225 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6226 Call wnoutrefresh instead of tui_win_info::refresh_window.
6227
1b6d4bb2
HD
62282021-01-05 Hannes Domani <ssbssa@yahoo.de>
6229
6230 * tui/tui-source.c (tui_source_window::show_line_number):
6231 Redraw second space after line number.
6232
b5ff370e
HD
62332021-01-05 Hannes Domani <ssbssa@yahoo.de>
6234
6235 PR tui/26927
6236 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6237 Fix source pad size in prefresh.
6238 (tui_source_window_base::show_source_content): Grow source pad
6239 if necessary.
6240
c68ea49f
MF
62412021-01-04 Mike Frysinger <vapier@gentoo.org>
6242
6243 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6244 (bfin_frame_align): Use align_down.
6245
e4ad960a
TV
62462021-01-04 Tom de Vries <tdevries@suse.de>
6247
6248 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6249 terminators that do not terminate anything.
6250
3ec3145c
SM
62512021-01-04 Simon Marchi <simon.marchi@efficios.com>
6252
6253 * debug.c (debug_print_depth): New.
6254 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6255 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6256 * infrun.c (start_step_over): Use
6257 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6258 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6259 INFRUN_SCOPED_DEBUG_START_END.
6260 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6261
e71daf80
SM
62622021-01-04 Simon Marchi <simon.marchi@efficios.com>
6263
6264 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6265
335709bc
SM
62662021-01-04 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * utils.c (vfprintf_unfiltered): Print timestamp only when
6269 previous debug output ended with a newline.
6270
098caef4
LM
62712021-01-04 Luis Machado <luis.machado@linaro.org>
6272
6273 Update all users of trad_frame_saved_reg to use the new member
6274 functions.
6275
6276 Remote all struct keywords from declarations of trad_frame_saved_reg
6277 types, except on forward declarations.
6278
6279 * aarch64-tdep.c: Update.
6280 * alpha-mdebug-tdep.c: Update.
6281 * alpha-tdep.c: Update.
6282 * arc-tdep.c: Update.
6283 * arm-tdep.c: Update.
6284 * avr-tdep.c: Update.
6285 * cris-tdep.c: Update.
6286 * csky-tdep.c: Update.
6287 * frv-tdep.c: Update.
6288 * hppa-linux-tdep.c: Update.
6289 * hppa-tdep.c: Update.
6290 * hppa-tdep.h: Update.
6291 * lm32-tdep.c: Update.
6292 * m32r-linux-tdep.c: Update.
6293 * m32r-tdep.c: Update.
6294 * m68hc11-tdep.c: Update.
6295 * mips-tdep.c: Update.
6296 * moxie-tdep.c: Update.
6297 * riscv-tdep.c: Update.
6298 * rs6000-tdep.c: Update.
6299 * s390-linux-tdep.c: Update.
6300 * s390-tdep.c: Update.
6301 * score-tdep.c: Update.
6302 * sparc-netbsd-tdep.c: Update.
6303 * sparc-sol2-tdep.c: Update.
6304 * sparc64-fbsd-tdep.c: Update.
6305 * sparc64-netbsd-tdep.c: Update.
6306 * sparc64-obsd-tdep.c: Update.
6307 * sparc64-sol2-tdep.c: Update.
6308 * tilegx-tdep.c: Update.
6309 * v850-tdep.c: Update.
6310 * vax-tdep.c: Update.
6311
6312 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6313 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6314
6315 * trad-frame.c: Update.
6316 Remove TF_REG_* enum.
6317 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6318 a trivially-constructible struct.
6319 (trad_frame_reset_saved_regs): Adjust to use member function.
6320 (trad_frame_value_p): Likewise.
6321 (trad_frame_addr_p): Likewise.
6322 (trad_frame_realreg_p): Likewise.
6323 (trad_frame_value_bytes_p): Likewise.
6324 (trad_frame_set_value): Likewise.
6325 (trad_frame_set_realreg): Likewise.
6326 (trad_frame_set_addr): Likewise.
6327 (trad_frame_set_unknown): Likewise.
6328 (trad_frame_set_value_bytes): Likewise.
6329 (trad_frame_get_prev_register): Likewise.
6330 * trad-frame.h: Update.
6331 (trad_frame_saved_reg_kind): New enum.
6332 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6333 <m_kind, m_reg>: New member fields.
6334 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6335 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6336 <is_addr, is_unknown, is_value_bytes>: New member functions.
6337
9898e882
SM
63382021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6339
6340 * target-float.c: Fix typos.
6341
b66b4e65
HD
63422021-01-02 Hannes Domani <ssbssa@yahoo.de>
6343
6344 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6345
b5b5650a
JB
63462021-01-01 Joel Brobecker <brobecker@adacore.com>
6347
6348 * gdbarch.sh: Update copyright year range.
6349
3666a048
JB
63502021-01-01 Joel Brobecker <brobecker@adacore.com>
6351
6352 Update copyright year range in copyright header of all GDB files.
6353
ff7e39b6
JB
63542021-01-01 Joel Brobecker <brobecker@adacore.com>
6355
6356 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6357 to the list of directories to update.
6358
2b47c078
JB
63592021-01-01 Joel Brobecker <brobecker@adacore.com>
6360
6361 * top.c (print_gdb_version): Update copyright year.
6362
9e5e03df 63632021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6364
476923f1 6365 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6366
476923f1 6367For older changes see ChangeLog-2020.
c906108c
SS
6368\f
6369Local Variables:
6370mode: change-log
6371left-margin: 8
6372fill-column: 74
6373version-control: never
57da7796 6374coding: utf-8
c906108c 6375End:
This page took 2.795198 seconds and 4 git commands to generate.