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