]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Clean up my ChangeLog entry
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5433e20e
JB
12021-05-19 John Baldwin <jhb@FreeBSD.org>
2
3 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
4
a5523cc3
AH
52021-05-18 Alexandra Hájková <ahajkova@redhat.com>
6
7 * inflow.c (new_tty): Do not leak tty.
8
cd53fa40
TT
92021-05-17 Tom Tromey <tom@tromey.com>
10
11 * dwarf2/read.h: Update include.
12 * dwarf2/read.c: Update include.
13 * dwarf2/line-header.c: Update include.
14 * dwarf2/cu.h: Update include.
15 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
16 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
17 * Makefile.in (COMMON_SFILES): Update.
18
347212b8
TT
192021-05-17 Tom Tromey <tom@tromey.com>
20
21 * dwarf2/read.c (maybe_queue_comp_unit)
22 (dwarf2_per_objfile::age_comp_units): Update.
23 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
24 dwarf2_cu methods.
25 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
26 add_dependence>: New methods.
27 <m_dependencies>: Add "m_" prefix. Now private.
28 <m_mark>: Add "m_" prefix.
29 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
30 (dwarf2_mark_helper): New function.
31 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
32
839118f9
TT
332021-05-17 Tom Tromey <tom@tromey.com>
34
35 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
36 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
37 (dwarf2_cu::dwarf2_cu): Move to cu.c.
38 * dwarf2/cu.c: New file.
39 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
40
8ae78a44
TT
412021-05-17 Tom Tromey <tom@tromey.com>
42
43 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
44 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
45 Move to cu.h.
46 * dwarf2/cu.h: New file.
47
c1c0a7e1
AB
482021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
49
50 * .dir-locals.el: Set sentence-end-double-space for all modes, and
51 set brace-list-open to 0 for C and C++ modes.
52
9e541c79
TT
532021-05-17 Tom Tromey <tromey@adacore.com>
54
55 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
56 if frame is null.
57
59173216
TT
582021-05-17 Tom Tromey <tromey@adacore.com>
59
60 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
61 (group_from_gid): Subtract one from strncpy length.
62
baea2f9d
TT
632021-05-17 Tom Tromey <tromey@adacore.com>
64
65 * source.c (add_path): Check 'p' before using 'p[-1]'.
66
473ab964
TT
672021-05-17 Tom Tromey <tromey@adacore.com>
68
69 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
70 (dwarf2_per_cu_data_up): New typedef.
71 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
72 <all_comp_units>: Use dwarf2_per_cu_data_up.
73 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
74 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
75 (create_cu_from_index_list): Likewise.
76 (create_signatured_type_table_from_index)
77 (create_cus_from_debug_names_list, add_type_unit)
78 (read_comp_units_from_section): Update.
79 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
80 (run_test): Update.
81
16e0020b
TT
822021-05-17 Tom Tromey <tom@tromey.com>
83
84 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
85 (sort_tu_by_abbrev_offset): Remove.
86 (build_type_psymtabs): Update.
87
91e159e9
SM
882021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
89
90 * py-project.toml: New.
91 * gdb-gdb.py.in: Re-format.
92
034dce7a
SM
932021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
94
95 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
96 New, use it.
97 * command.h (cmd_func_p): Remove.
98 * cli/cli-decode.c (cmd_func_p): Remove.
99
1be99b11
SM
1002021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
103
99858724
SM
1042021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
107 to...
108 <alias_target>: ... this.
109 (add_alias_cmd): Rename old to target.
110 (add_info_alias): Rename old_name to target_name.
111 (add_com_alias): Likewise.
112
14b42fc4
SM
1132021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
114
115 * Rename "prefixlist" parameters to "subcommands" throughout.
116 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
117 <subcommands>: ... this.
118 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
119 (lookup_cmd_with_subcommands): ... this.
120
ecd0a6b3
SM
1212021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
124
413b49c2
SM
1252021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
126
127 * cli/cli-decode.h (prefixname): Make const, move implementation
128 to cli/cli-decode.c.
129 * cli/cli-decode.c (cmd_list_element::prefixname): New.
130
ea11a98d
WP
1312021-05-16 Weimin Pan <weimin.pan@oracle.com>
132
133 * ctfread.c (new_symbol): Set function address.
134 (read_func_kind_type): Remove incorrect type name setting.
135 Don't copy name returned from ctf_type_ame_raw throughout file.
136
887e7158
TT
1372021-05-14 Tom Tromey <tom@tromey.com>
138
139 * rust-lang.c (rust_language::val_print_struct)
140 (rust_language::print_enum): Use common_val_print, not
141 value_print_inner.
142
55789354
TBA
1432021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
144
145 * python/py-inferior.c (infpy_get_connection_num): New function.
146 (inferior_object_getset): Add a new element for 'connection_num'.
147 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
148
2f63ec5c
AB
1492021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
150
151 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
152 argument type, update and re-wrap, header comment.
153 (remote_target::commit_resumed): Convert any_process_wildcard and
154 may_global_wildcard_vcont from int to bool.
155
ecf25064
KC
1562021-05-14 Kent Cheung <kent.cheung@arm.com>
157
158 * cp-valprint.c (cp_print_value): Replaced duplicate code.
159 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
160 just before printing child values.
161 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
162 printing string representation.
163 * python/py-prettyprint.c (print_children): Check max_depth just
164 before printing child values.
165 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
166 printing string representation.
167
df68e12b
MF
1682021-05-14 Mike Frysinger <vapier@gentoo.org>
169
170 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
171 sim/callback.h & sim/sim.h.
172
183aaaf7
MF
1732021-05-13 Mike Frysinger <vapier@gentoo.org>
174
175 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
176 sim-regno.h include.
177
737358ba
SM
1782021-05-13 Simon Marchi <simon.marchi@efficios.com>
179
180 * inf-child.h (inf_child_target) <follow_exec>: New.
181 * inf-child.c (inf_child_target::follow_exec): New.
182
294c36eb
SM
1832021-05-13 Simon Marchi <simon.marchi@efficios.com>
184
185 * target.h (struct target_ops) <follow_exec>: Add ptid_t
186 parameter.
187 (target_follow_exec): Likewise.
188 * target.c (target_follow_exec): Add ptid_t parameter.
189 * infrun.c (follow_exec): Adjust call to target_follow_exec,
190 don't push target nor create thread.
191 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
192 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
193 (thread_db_target::follow_exec): New.
194 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
195 (remote_target::follow_exec): Call
196 process_stratum_target::follow_exec.
197 * target-delegates.c: Re-generate.
198
2af87c85
SM
1992021-05-13 Simon Marchi <simon.marchi@efficios.com>
200
201 * infrun.c (follow_exec): Call target_follow_fork when
202 follow-exec-mode is same.
203 * target.h (target_follow_fork): Improve doc.
204
0b2256f7
SM
2052021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
206
207 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
208 Remove.
209 * cli/cli-setshow.c (do_show_command): Adjust.
210
0746f49b
LM
2112021-05-13 Luis Machado <luis.machado@linaro.org>
212
213 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
214 include the last address in the range.
215
4b8cb9dd
SM
2162021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * python/python-internal.h (gdbpy_parse_command_name): Return
219 gdb::unique_xmalloc_ptr.
220 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
221 (cmdpy_init): Adjust.
222 * python/py-param.c (parmpy_init): Adjust.
223 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
224 when done.
225
ee35ce82
GB
2262021-05-12 George Barrett <bob@bob131.so>
227
228 * NEWS (Guile API): Note the addition of the new procedure.
229 * guile/scm-value.c (gdbscm_value_const_value): Add
230 implementation of value-const-value procedure.
231 (value_functions): Add value-const-value procedure.
232
9d4fc61d
GB
2332021-05-12 George Barrett <bob@bob131.so>
234
235 * NEWS (Guile API): Note the addition of new procedures.
236 * guile/scm-value.c (gdbscm_reference_value): Add helper function
237 for reference value creation.
238 (gdbscm_value_reference_value): Add implementation of
239 value-reference-value procedure.
240 (gdbscm_value_rvalue_reference_value): Add implementation of
241 value-rvalue-reference-value procedure.
242 (value_functions): Add value-reference-value procedure. Add
243 value-rvalue-reference-value procedure.
244
97cef6b7
GB
2452021-05-12 George Barrett <bob@bob131.so>
246
247 * guile/scm-type.c (type_integer_constants): Add binding for
248 TYPE_CODE_RVALUE_REF.
249 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
250 dereferencing of rvalue references.
251 * NEWS (Guile API): Note improvements in rvalue reference support.
252
d51344c9
MM
2532021-05-12 Markus Metzger <markus.t.metzger@intel.com>
254
255 * btrace.c (handle_pt_insn_events): Ignore status update enable
256 events.
257
f2a883a8
SM
2582021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
261 indentation.
262
64f30eb0
SM
2632021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
264
265 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
266
db1f6cd6
LS
2672021-05-10 Lancelot Six <lsix@lancelotsix.com>
268
269 PR gdb/27614
270 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
271 argument.
272
31aceaef
SM
2732021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * nat/linux-waitpid.c (status_to_str): Show signal name.
276
75140e3b
AB
2772021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * python/py-breakpoint.c (pybp_debug): New static global.
280 (show_pybp_debug): New function.
281 (pybp_debug_printf): Define.
282 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
283 (gdbpy_breakpoint_created): Add some debugging.
284 (gdbpy_breakpoint_deleted): Likewise.
285 (gdbpy_breakpoint_modified): Likewise.
286 (_initialize_py_breakpoint): New function.
287
1ef40c13
AB
2882021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * python/py-unwind.c (pyuw_debug): Convert to bool.
291 (show_pyuw_debug): New function.
292 (pyuw_debug_printf): Define.
293 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
294 (pyuw_this_id): Convert to new debug print macros.
295 (pyuw_prev_register): Likewise.
296 (pyuw_sniffer): Likewise.
297 (pyuw_dealloc_cache): Likewise.
298 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
299 show function when registering.
300
927c4e35
AB
3012021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
302
303 * dummy-frame.c (fprint_dummy_frames): Convert use of
304 fprint_frame_id to use frame_id::to_string.
305 * frame.c (fprint_field): Delete.
306 (fprint_frame_id): Moved to...
307 (frame_id::to_string): ...this, rewritten to return a string.
308 (fprint_frame): Convert use of fprint_frame_id to use
309 frame_id::to_string.
310 (compute_frame_id): Likewise.
311 (frame_id_p): Likewise.
312 (frame_id_eq): Likewise.
313 (frame_id_inner): Likewise.
314 * frame.h (struct frame_id) <to_string>: New member function.
315 (fprint_frame_id): Delete declaration.
316 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
317 fprint_frame_id to use frame_id::to_string.
318 * python/py-frame.c (frame_object_to_frame_info): Likewise.
319 * python/py-unwind.c (unwind_infopy_str): Likewise.
320 (pyuw_this_id): Likewise.
321
8d06918f
SM
3222021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * nat/linux-waitpid.c (status_to_str): Return std::string.
325 * nat/linux-waitpid.h (status_to_str): Likewise.
326 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
327 (linux_nat_target::attach): Adjust.
328 (linux_handle_extended_wait): Adjust.
329 (wait_lwp): Adjust.
330 (stop_wait_callback): Adjust.
331 (linux_nat_filter_event): Adjust.
332 (linux_nat_wait_1): Adjust.
333 * nat/linux-waitpid.c (status_to_str): Adjust.
334 * nat/linux-waitpid.h (status_to_str): Adjust.
335
550e9289
SM
3362021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * infrun.h (infrun_debug_printf): Add missing space.
339
4655f850
PA
3402021-05-08 Pedro Alves <pedro@palves.net>
341
342 * linux-nat.c (linux_nat_target::supports_disable_randomization):
343 Remove references to HAVE_PERSONALITY.
344 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
345 (maybe_disable_address_space_randomization)
346 (~maybe_disable_address_space_randomizatio): Remove references to
347 HAVE_PERSONALITY.
348 * config.in, configure: Regenerate.
349
1845e254
AB
3502021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
351
352 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
353 include.
354 (source_script_with_search): Perform tilde expansion.
355
91e3c425
SM
3562021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
357
358 * target-descriptions.c (struct target_desc_info) <filename>:
359 Make std::string.
360 (copy_inferior_target_desc_info): Adjust.
361 (target_desc_info_free): Adjust.
362 (target_find_description): Adjust.
363 (set_tdesc_filename_cmd): Adjust.
364 (show_tdesc_filename_cmd): Adjust.
365 (unset_tdesc_filename_cmd): Adjust.
366 (maint_print_c_tdesc_cmd): Adjust.
367
0b2f7ade
SM
3682021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * target-descriptions.c (struct target_desc_info): Initialize
371 fields.
372 (get_tdesc_info): Use new.
373 (target_desc_info_free): Use delete.
374
820c4490
SM
3752021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
376
377 * target-descriptions.c (struct target_desc_info) <fetched>:
378 bool.
379 (target_find_description): Adjust.
380 (target_clear_description): Adjust.
381
c2962e6a
SM
3822021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
383
384 * target-descriptions.c (struct target_desc_info) <tdesc>:
385 Adjust doc.
386 (target_desc_fetched): Remove.
387 (current_target_desc): Remove.
388 (target_description_filename): Remove.
389 (target_find_description): Adjust.
390 (target_clear_description): Adjust.
391 (target_current_description): Adjust.
392 (set_tdesc_filename_cmd): Adjust.
393 (show_tdesc_filename_cmd): Adjust.
394 (unset_tdesc_filename_cmd): Adjust.
395 (maint_print_c_tdesc_cmd): Adjust.
396 (maint_print_xml_tdesc_cmd): Adjust.
397
8a82de58
AB
3982021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * infcmd.c (notice_new_inferior): Change parameter type.
401 * inferior.h (notice_new_inferior): Change parameter type.
402 * remote.c (remote_notice_new_inferior): Change parameter type to
403 bool. Also update type of local variable to bool.
404 (remote_target::update_thread_list): Change type of local variable
405 to bool.
406 (remote_target::process_stop_reply): Pass bool instead of int to
407 remote_notice_new_inferior.
408
bedc4734
SM
4092021-05-07 Simon Marchi <simon.marchi@efficios.com>
410
411 * target.c (target_stack::unpush): Call target_ops::find_beneath
412 to get the target beneath `t`.
413
27f0a431
SM
4142021-05-07 Simon Marchi <simon.marchi@efficios.com>
415
416 * target.c (target_close): Check in all inferiors that the
417 target is not pushed.
418
1d1669e4
AM
4192021-05-07 Aaron Merey <amerey@redhat.com>
420
421 * debuginfod-support.c (debuginfod_init): Remove.
422 (get_debuginfod_client): New function.
423
2698f5ea
TT
4242021-05-07 Tom Tromey <tom@tromey.com>
425
426 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
427 * utils.c (streq_hash): Remove.
428 * utils.h (streq_hash): Don't declare.
429 * completer.c (completion_tracker::discard_completions): Update
430 comment.
431 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
432
13123da8
SM
4332021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
434
435 * Re-format all Python files using black.
436
9589edb8
AB
4372021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * guile/guile-internal.h (gdbscm_safe_source_script): Change
440 function return type.
441 * guile/guile.c (gdbscm_source_script): Update to handle change in
442 gdbscm_safe_source_script.
443 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
444 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
445 type.
446
ec66d6ea
SM
4472021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
448
449 * inferior.h (class inferior) <args>: Change type to
450 unique_xmalloc_ptr.
451 * inferior.c (inferior::~inferior): Don't free args.
452 * infcmd.c (get_inferior_args): Adjust.
453 (set_inferior_args): Adjust.
454
0618ecf6
AB
4552021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
458 breakpoint locations when the breakpoint actually has a location.
459
79aabb73
TBA
4602021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
461
462 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
463 * mi/mi-cmds.c: Change the binding of "-break-condition" to
464 mi_cmd_break_condition.
465 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
466 * breakpoint.h (set_breakpoint_condition): Declare a new
467 overload.
468 * breakpoint.c (set_breakpoint_condition): New overloaded function
469 extracted out from ...
470 (condition_command): ... this.
471 * NEWS: Mention the change.
472
10e578d7
TBA
4732021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
474
475 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
476 '--force-condition' flag to force the condition in the
477 '-break-insert' and '-dprintf-insert' commands.
478 * NEWS: Mention the change.
479
225bda24
TV
4802021-05-04 Tom de Vries <tdevries@suse.de>
481
482 PR guile/27806
483 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
484 memory functions.
485
b8efb248
TT
4862021-04-30 Tom Tromey <tom@tromey.com>
487
488 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
489 (add_signatured_type_cu_to_table): Remove.
490 (create_debug_type_hash_table): Assume dwo_file is non-null.
491 (create_debug_types_hash_table): Update comment.
492 (create_all_type_units): Remove.
493 (sort_tu_by_abbrev_offset): Update comment.
494 (build_type_psymtabs): Rename from build_type_psymtabs_1.
495 (build_type_psymtabs): Remove.
496 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
497 Update.
498 (read_comp_units_from_section): Add types_htab, section_kind
499 parameters.
500 (create_all_comp_units): Read type units.
501
91eea9cc
TT
5022021-04-30 Tom Tromey <tom@tromey.com>
503
504 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
505 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
506 <get_cu>: Now inline.
507 <all_type_units>: Remove.
508 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
509 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
510 (dwarf2_per_bfd::get_tu): Remove.
511 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
512 (create_signatured_type_table_from_index)
513 (create_signatured_type_table_from_debug_names)
514 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
515 (dwarf2_base_index_functions::expand_all_symtabs)
516 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
517 (dwarf2_base_index_functions::map_symbol_filenames)
518 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
519 (add_signatured_type_cu_to_table, create_all_type_units)
520 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
521 (create_all_comp_units): Update.
522 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
523 (write_debug_names): Update.
524
0d305d5c
TT
5252021-04-30 Tom Tromey <tom@tromey.com>
526
527 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
528 allocate_signatured_type>: Change return type.
529 <all_comp_units, all_type_units>: Hold unique pointers.
530 (struct dwarf2_per_cu_data): Add constructor and initializers.
531 (struct signatured_type): Derive from dwarf2_per_cu_data.
532 * dwarf2/read.c (type_unit_group): Derive from
533 dwarf2_per_cu_data.
534 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
535 (dwarf2_per_bfd::get_tu)
536 (dwarf2_per_bfd::allocate_signatured_type)
537 (dwarf2_per_bfd::allocate_signatured_type)
538 (create_cu_from_index_list, create_cus_from_index_list)
539 (create_signatured_type_table_from_index)
540 (create_signatured_type_table_from_debug_names)
541 (create_addrmap_from_aranges)
542 (dwarf2_base_index_functions::find_last_source_symtab)
543 (dw_expand_symtabs_matching_file_matcher)
544 (dwarf2_gdb_index::expand_symtabs_matching)
545 (dwarf2_base_index_functions::map_symbol_filenames)
546 (create_cus_from_debug_names_list)
547 (dw2_debug_names_iterator::next)
548 (dwarf2_debug_names_index::expand_symtabs_matching)
549 (create_debug_type_hash_table, add_type_unit)
550 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
551 Update.
552 (allocate_type_unit_groups_table): Use delete.
553 (create_type_unit_group): Change return type. Use new.
554 (get_type_unit_group, build_type_psymtabs_1)
555 (build_type_psymtab_dependencies)
556 (process_skeletonless_type_unit, set_partial_user)
557 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
558 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
559 (read_signatured_type): Update.
560 (dwarf2_find_containing_comp_unit): Change type of
561 'all_comp_units'.
562 (run_test): Update.
563 (dwarf2_per_bfd::allocate_per_cu)
564 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
565 Use new.
566 (add_signatured_type_cu_to_table): Update.
567 * dwarf2/index-write.c (write_one_signatured_type)
568 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
569 (write_debug_names): Update.
570
1bee48c7
TT
5712021-04-30 Tom Tromey <tromey@adacore.com>
572
573 * nat/windows-nat.h (get_image_name): Don't declare.
574 * nat/windows-nat.c (get_image_name): Now static.
575
e228ef97
TT
5762021-04-30 Tom Tromey <tromey@adacore.com>
577
578 * windows-nat.c (windows_nat::handle_load_dll): Update.
579 (windows_nat_target::get_windows_debug_event): Call
580 dll_loaded_event.
581 (windows_add_all_dlls, windows_add_dll): Move to
582 nat/windows-nat.c.
583 * nat/windows-nat.h (handle_load_dll): Change parameters.
584 (dll_loaded_event, windows_add_all_dlls): Declare.
585 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
586 from windows-nat.c.
587 (dll_loaded_event): New function.
588
de071872
TT
5892021-04-30 Tom Tromey <tromey@adacore.com>
590
591 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
592 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
593 Declare.
594 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
595 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
596
9e439f00
TT
5972021-04-30 Tom Tromey <tromey@adacore.com>
598
599 * windows-nat.c: Move code to nat/windows-nat.[ch].
600 (_initialize_windows_nat): Call initialize_loadable.
601 * nat/windows-nat.h (AdjustTokenPrivileges)
602 (DebugActiveProcessStop, DebugBreakProcess)
603 (DebugSetProcessKillOnExit, EnumProcessModules)
604 (EnumProcessModulesEx, GetModuleInformation)
605 (GetModuleFileNameExA, GetModuleFileNameExW)
606 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
607 (GetCurrentConsoleFont, Wow64SuspendThread)
608 (Wow64GetThreadContext, Wow64SetThreadContext)
609 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
610 (AdjustTokenPrivileges_ftype)
611 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
612 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
613 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
614 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
615 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
616 (GetConsoleFontSize_ftype)
617 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
618 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
619 (Wow64GetThreadSelectorEntry_ftype): Likewise.
620 (initialize_loadable): Declare.
621 * nat/windows-nat.c (AdjustTokenPrivileges)
622 (DebugActiveProcessStop, DebugBreakProcess)
623 (DebugSetProcessKillOnExit, EnumProcessModules)
624 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
625 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
626 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
627 (Wow64GetThreadContext, Wow64SetThreadContext)
628 (Wow64GetThreadSelectorEntry): Define.
629 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
630 from windows-nat.c.
631 (initialize_loadable): Likewise, and rename.
632
1053c638
TT
6332021-04-30 Tom Tromey <tromey@adacore.com>
634
635 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
636 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
637 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
638 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
639 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
640 (bad): New template functions.
641 (_initialize_loadable): Update.
642
2869ac4b
TT
6432021-04-30 Tom Tromey <tromey@adacore.com>
644
645 * ada-lang.c (ada_index_type): Use ada_check_typedef.
646
e197dfae
SM
6472021-04-29 Simon Marchi <simon.marchi@efficios.com>
648
649 * auto-load.h: Split namespace declaration.
650
89ba430c
SM
6512021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
652
653 * infrun.c (save_waitstatus): Move variables to inner scope.
654
8eb82ba1
AB
6552021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
656
657 * NEWS: Fix typo and stray full stop.
658
db2534b7
TT
6592021-04-28 Tom Tromey <tromey@adacore.com>
660
661 * ada-exp.y (primary): Use new type for null pointer.
662 * ada-lang.c (ada_type_match): Remove "may_deref"
663 parameter. Handle null pointer.
664 (ada_args_match): Update.
665 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
666 Handle null pointer.
667
edeaceda
AB
6682021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * NEWS: Mention new commands.
671 * python/python.c (python_ignore_environment): New static global.
672 (show_python_ignore_environment): New function.
673 (set_python_ignore_environment): New function.
674 (python_dont_write_bytecode): New static global.
675 (show_python_dont_write_bytecode): New function.
676 (set_python_dont_write_bytecode): New function.
677 (_initialize_python): Register new commands.
678
041ca48e
AB
6792021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 * extension-priv.h (struct extension_language_ops): Rename
682 'finish_initialization' to 'initialize'.
683 * extension.c (finish_ext_lang_initialization): Renamed to...
684 (ext_lang_initialization): ...this, update comment, and updated
685 the calls to reflect the change in struct extension_language_ops.
686 * extension.h (finish_ext_lang_initialization): Renamed to...
687 (ext_lang_initialization): ...this.
688 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
689 (gdbscm_initialize): ...this, update comment at definition.
690 (guile_extension_ops): Update.
691 * main.c (captured_main_1): Update call to
692 finish_ext_lang_initialization.
693 * python/python.c (gdbpy_finish_initialization): Rename to...
694 (gdbpy_initialize): ...this, update comment at definition, and
695 update call to do_finish_initialization.
696 (python_extension_ops): Update.
697 (do_finish_initialization): Rename to...
698 (do_initialize): ...this, and update comment.
699
1178f01a
AB
7002021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
701
702 * main.c (captured_main_1): Add a call to
703 finish_ext_lang_initialization.
704 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
705
880ae75a
AB
7062021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
709 (gdbscm_finish_initialization): Add code moved from
710 _initialize_guile.
711 (_initialize_guile): Move code to gdbscm_finish_initialization.
712 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
713 _initialize_scm_arch.
714 (_initialize_scm_arch): New function.
715 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
716 into _initialize_scm_block.
717 (_initialize_scm_block): New function.
718 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
719 into _initialize_scm_frame.
720 (_initialize_scm_frame): New function.
721 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
722 into _initialize_scm_objfile.
723 (_initialize_scm_objfile): New function.
724 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
725 code into _initialize_scm_progspace.
726 (_initialize_scm_progspace): New function.
727 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
728 into _initialize_scm_symbol.
729 (_initialize_scm_symbol): New function.
730 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
731 into _initialize_scm_symtab.
732 (_initialize_scm_symtab): New function.
733 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
734 _initialize_scm_type.
735 (_initialize_scm_type): New function.
736
8e3685bf
AB
7372021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
738
739 * python/py-arch.c (_initialize_py_arch): New function.
740 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
741 * python/py-block.c (_initialize_py_block): New function.
742 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
743 * python/py-inferior.c (_initialize_py_inferior): New function.
744 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
745 * python/py-objfile.c (_initialize_py_objfile): New function.
746 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
747 * python/py-progspace.c (_initialize_py_progspace): New function.
748 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
749 * python/py-registers.c (_initialize_py_registers): New function.
750 (gdbpy_initialize_registers): Move code to
751 _initialize_py_registers.
752 * python/py-symbol.c (_initialize_py_symbol): New function.
753 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
754 * python/py-symtab.c (_initialize_py_symtab): New function.
755 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
756 * python/py-type.c (_initialize_py_type): New function.
757 (gdbpy_initialize_types): Move code to _initialize_py_type.
758 * python/py-unwind.c (_initialize_py_unwind): New function.
759 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
760 * python/python.c (_initialize_python): Move call to
761 do_start_initialization to gdbpy_finish_initialization.
762 (gdbpy_finish_initialization): Add call to
763 do_start_initialization.
764
913832e9
AB
7652021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * extension.c (struct scoped_default_signal): New struct.
768 (scoped_default_sigint): New typedef.
769 (finish_ext_lang_initialization): Make use of
770 scoped_default_sigint.
771
a3b5ef3e
AB
7722021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
773
774 * main.c (captured_main_1): Don't pass argument to gdb_init.
775 * top.c (gdb_init): Remove unused argument, and add header
776 comment.
777 * top.h (gdb_init): Remove argument.
778
b9f90c72
LM
7792021-04-27 Luis Machado <luis.machado@linaro.org>
780
781 * psymtab.c (psymbol_functions::dump): Output newline.
782 Remove wrap.
783 * symmisc.c (dump_objfile): Likewise.
784
2c473def
MW
7852021-04-27 Michael Weghorn <m.weghorn@posteo.de>
786 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
789 when attaching the 'auto_load_new_objfile' observer, so
790 other observers can specify it as a dependency.
791 * gdb/auto-load.h (struct token): Declare
792 'auto_load_new_objfile_observer_token' as token to be used
793 for the 'auto_load_new_objfile' observer.
794 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
795 'python_new_objfile' observer depend on 'auto_load_new_objfile'
796 observer, so it gets notified after the latter.
797
9a6e099f
MW
7982021-04-27 Michael Weghorn <m.weghorn@posteo.de>
799 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * unittests/observable-selftests.c (dependency_test_counters):
802 New.
803 (observer_token0, observer_token1, observer_token2,
804 observer_token3, observer_token4, observer_token5): New.
805 (struct dependency_observer_data): New struct.
806 (observer_dependency_test_callback): New function.
807 (test_observers): New.
808 (run_dependency_test): New function.
809 (test_dependency): New.
810 (_initialize_observer_selftest): Register dependency test.
811
bea3329b
SM
8122021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
813
814 PR gdb/27773
815 * cli/cli-dump.c (dump_binary_file): Check result of
816 gdb_fopen_cloexec.
817
c290cb01
ST
8182021-04-25 Sergei Trofimovich <siarheit@google.com>
819
820 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
821 by passing `process_stratum_target*` parameter.
822
fbb46296
LS
8232021-04-25 Lancelot Six <lsix@lancelotsix.com>
824
825 PR gdb/22640
826 * typeprint.h (struct type_print_options): Add print_in_hex
827 flag.
828 (struct print_offset_data): Add print_in_hex flag, add a
829 constructor accepting a type_print_options* argument.
830 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
831 default value for print_in_hex.
832 (print_offset_data::indentation): Allow more horizontal space.
833 (print_offset_data::print_offset_data): Add ctor.
834 (print_offset_data::maybe_print_hole, print_offset_data::update):
835 Handle the print_in_hex flag.
836 (whatis_exp): Handle 'x' and 'd' flags.
837 (print_offsets_and_sizes_in_hex): Declare.
838 (set_print_offsets_and_sizes_in_hex): Create.
839 (show_print_offsets_and_sizes_in_hex): Create.
840 (_initialize_typeprint): Update help message for the ptype
841 command, register the 'set print type hex' and 'show print type
842 hex' commands.
843 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
844 (c_type_print_base): Construct the print_offset_data
845 object using the type_print_optons parameter.
846 * rust-lang.c (rust_language::print_type): Construct the
847 print_offset_data object using the type_print_optons parameter.
848 * NEWS: Mention the new flags of the ptype command.
849
18bbba46
LS
8502021-04-25 Lancelot Six <lsix@lancelotsix.com>
851
852 * typeprint.h (struct type_print_options): Move before
853 print_offset_data.
854
77393c9b
JB
8552021-04-25 Joel Brobecker <brobecker@adacore.com>
856
857 GDB 10.2 released.
858
98c897e3
SM
8592021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * observable.c (observer_debug): Change to bool.
862
9fc29955
AB
8632021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
864
865 * dwarf2/read.c: Add 'unordered_set' include.
866 (dwarf2_base_index_functions::map_symbol_filenames): Replace
867 'visited' hash table with 'qfn_cache' unordered_set. Remove use
868 of per_Bfd->filenames_cache cache, and use function local
869 filenames_cache instead. Reindent.
870 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
871
0406545d
SM
8722021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
873
874 * breakpoint.c (iterate_over_bp_locations): Change callback to
875 function view, remove data parameter.
876 * breakpoint.h (iterate_over_bp_locations): Likewise.
877 * record-full.c (record_full_sync_record_breakpoints): Remove
878 data parameter.
879
432ce4cf
TT
8802021-04-22 Tom Tromey <tom@tromey.com>
881
882 * c-typeprint.c (c_type_print_base_struct_union): Use
883 print_spaces_filtered_with_print_options.
884
e25d6d93
SM
8852021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
886
887 PR gdb/27757
888 * python/py-type.c (typy_range): Check that bounds are constant
889 before accessing them as such.
890 * guile/scm-type.c (gdbscm_type_range): Likewise.
891
4efeb0d3
TBA
8922021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
893
894 * Makefile.in (COMMON_SFILES): Remove continuations.c.
895 * inferior.c (inferior::add_continuation): New method, adapted
896 from 'add_inferior_continuation'.
897 (inferior::do_all_continuations): New method, adapted from
898 'do_all_inferior_continuations'.
899 (inferior::~inferior): Clear the list of continuations directly.
900 * inferior.h (class inferior) <continuations>: Rename into...
901 <m_continuations>: ...this and make private.
902 * continuations.c: Remove.
903 * continuations.h: Remove.
904 * event-top.c: Don't include "continuations.h".
905
906 Update the users below.
907 * inf-loop.c (inferior_event_handler)
908 * infcmd.c (attach_command)
909 (notice_new_inferior): Update.
910
c4c493de
TBA
9112021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
912
913 * inferior.h (class inferior) <continuations>: Change the type
914 to be an std::list of std::function's.
915 Update the references and uses below.
916 * continuations.c (struct continuation): Delete.
917 (make_continuation): Delete.
918 (do_my_continuations_1): Delete.
919 (do_my_continuations): Delete.
920 (discard_my_continuations_1): Delete.
921 (discard_my_continuations): Delete.
922 (add_inferior_continuation): Update.
923 (do_all_inferior_continuations): Update.
924 (discard_all_inferior_continuations): Update.
925 * continuations.h (add_inferior_continuation): Update to take
926 an std::function as the parameter.
927 * infcmd.c (struct attach_command_continuation_args): Delete.
928 (attach_command_continuation): Delete.
929 (attach_command_continuation_free_args): Delete.
930 (attach_command): Update.
931 (notice_new_inferior): Update.
932
1194676e
TBA
9332021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
934
935 * continuations.h: Update the general comment.
936 * inferior.h (class inferior) <continuations>: Update the comment.
937 * interps.c: Do not include "continuations.h".
938
35682f0a
TBA
9392021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
940
941 * continuations.h (do_all_inferior_continuations): Remove the 'err'
942 parameter. Update the references below.
943 * continuations.c (do_my_continuations_1)
944 (do_my_continuations)
945 (do_all_inferior_continuations): Update.
946 * inf-loop.c (inferior_event_handler): Update.
947 * infcmd.c (attach_command_continuation): Update.
948
6fee5eee
TBA
9492021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
950
951 * infcmd.c (attach_post_wait): Update the function comment.
952
27d0790a
TBA
9532021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
954
955 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
956 Update the references below.
957 (struct attach_command_continuation_args)
958 (attach_command_continuation)
959 (attach_command_continuation_free_args)
960 (attach_command)
961 (notice_new_inferior): Update to remove the reference to 'args'.
962
c39ebbf4
TV
9632021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
964 Tom de Vries <tdevries@suse.de>
965
966 PR remote/27710
967 * remote.c (remote_target_is_non_stop_p): New function.
968 * remote.h (remote_target_is_non_stop_p): Declare.
969 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
970 to check non-stopness using notif_state->remote rather current target.
971
22f80c0f
TT
9722021-04-22 Tom Tromey <tom@tromey.com>
973
974 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
975 (struct typed_val_int) <val>: Now ULONGEST.
976 (rust_parser::parse_array_type): Remove negative check.
977 (rust_lex_int_test): Change 'value' to ULONGEST.
978
05f3c0f0
AB
9792021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * arch-utils.c (default_addressable_memory_unit_size): Return a
982 value based on bfd's bits per byte.
983
7e7a35fb
TT
9842021-04-21 Tom Tromey <tom@tromey.com>
985
986 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
987 unsigned char.
988 (struct dwarf2_per_cu_data): Rearrange.
989 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
990 unsigned char.
991 (struct comp_unit_head): Rearrange.
992 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
993
ff507520
TV
9942021-04-21 Tom de Vries <tdevries@suse.de>
995
996 PR build/27681
997 * configure.ac: Remove --without-included-regex/--with-included-regex.
998 * config.in: Regenerate.
999 * configure: Regenerate.
1000 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1001
10a636cc
TBA
10022021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1003
1004 * breakpoint.h (create_breakpoint): Add a new parameter,
1005 'force_condition'.
1006 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1007 argument when 'parse_extra' is false to check if the condition
1008 is invalid at all of the breakpoint locations.
1009 Update the users below.
1010 (break_command_1)
1011 (dprintf_command)
1012 (trace_command)
1013 (ftrace_command)
1014 (strace_command)
1015 (create_tracepoint_from_upload): Update.
1016 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1017 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1018 * python/py-breakpoint.c (bppy_init): Update.
1019 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1020
85c88e2a
TBA
10212021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1022
1023 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1024 disabled-by-condition locations on MI-like output.
1025 (breakpoint_1): Do not display the disabled-by-condition footnote
1026 if the output is MI-like.
1027
fd34472c
FC
10282021-04-21 Frederic Cambus <fred@statdns.com>
1029
1030 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1031 update year range in generated copyright notices.
1032
184dcd81
FW
10332021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1034
1035 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1036 qualifier_seq_noopt.
1037
525174e8
FW
10382021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1039
1040 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1041
f5dc2ee3
AB
10422021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1045 (producer_is_icc): Replace use of std::regex with gdb's
1046 compiled_regex.
1047
42c2c694
TT
10482021-04-17 Tom Tromey <tom@tromey.com>
1049
1050 PR gdb/23743:
1051 * dwarf2/read.c (class offset_view): New.
1052 (struct symbol_table_slot): Remove.
1053 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1054 <symbol_name_index, symbol_vec_index>: New methods.
1055 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1056 Rewrite.
1057 (read_gdb_index_from_buffer): Update.
1058 (struct dw2_symtab_iterator) <vec>: Change type.
1059 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1060 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1061 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1062 <append_array, append_offset>: New methods.
1063 (write_hash_table, add_address_entry, write_gdbindex_1)
1064 (write_debug_names): Update.
1065 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1066
da314dd3
TT
10672021-04-17 Tom Tromey <tom@tromey.com>
1068
1069 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1070 partial_symtabs.
1071
0b7b2c2a
TT
10722021-04-17 Tom Tromey <tom@tromey.com>
1073
1074 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1075 from map_matching_symbols. Change parameters.
1076 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1077 Rename from map_matching_symbols. Change parameters.
1078 * dwarf2/read.c (struct dwarf2_gdb_index)
1079 <expand_matching_symbols>: Rename from map_matching_symbols.
1080 Change parameters.
1081 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1082 Rename from map_matching_symbols. Change parameters.
1083 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1084 dw2_map_matching_symbols. Change parameters.
1085 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1086 implementation.
1087 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1088 map_matching_symbols. Change parameters.
1089 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1090 from map_matching_symbols. Change parameters.
1091 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1092 map_matching_symbols. Change parameters.
1093 * ada-lang.c (map_matching_symbols): New function.
1094 (add_nonlocal_symbols): Update.
1095
90160b57
TT
10962021-04-17 Tom Tromey <tom@tromey.com>
1097
1098 * quick-symbol.h (struct quick_symbol_functions)
1099 <expand_symtabs_with_fullname>: Remove.
1100 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1101 Remove.
1102 * psympriv.h (struct psymbol_functions)
1103 <expand_symtabs_with_fullname>: Remove.
1104 * dwarf2/read.c (struct dwarf2_base_index_functions)
1105 <expand_symtabs_with_fullname>: Remove.
1106 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1107 Remove.
1108 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1109 Update comment.
1110 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1111 Rewrite.
1112
7089bd88
TT
11132021-04-17 Tom Tromey <tom@tromey.com>
1114
1115 * symfile-debug.c (objfile::expand_symtabs_for_function):
1116 Rewrite.
1117 * quick-symbol.h (struct quick_symbol_functions)
1118 <expand_symtabs_for_function>: Remove.
1119 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1120 Remove.
1121 * psympriv.h (struct psymbol_functions)
1122 <expand_symtabs_for_function>: Remove.
1123 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1124 Update comment.
1125 * dwarf2/read.c (struct dwarf2_gdb_index)
1126 <expand_symtabs_for_function>: Remove.
1127 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1128 Remove.
1129 (find_slot_in_mapped_hash): Remove.
1130 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1131 (dw2_symtab_iter_init): Remove one overload.
1132 (dwarf2_gdb_index::expand_symtabs_for_function)
1133 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1134
536a40f3
TT
11352021-04-17 Tom Tromey <tom@tromey.com>
1136
1137 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1138 Rewrite.
1139 * quick-symbol.h (struct quick_symbol_functions)
1140 <map_symtabs_matching_filename>: Remove.
1141 * psymtab.c (partial_map_expand_apply)
1142 (psymbol_functions::map_symtabs_matching_filename): Remove.
1143 * psympriv.h (struct psymbol_functions)
1144 <map_symtabs_matching_filename>: Remove.
1145 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1146 Update comment.
1147 * dwarf2/read.c (struct dwarf2_base_index_functions)
1148 <map_symtabs_matching_filename>: Remove.
1149 (dw2_map_expand_apply)
1150 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1151 Remove.
1152
84d865e3
TT
11532021-04-17 Tom Tromey <tom@tromey.com>
1154
1155 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1156 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1157 Remove.
1158 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1159 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1160 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1161 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1162 Remove.
1163 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1164 (dwarf2_gdb_index::lookup_symbol)
1165 (dwarf2_debug_names_index::lookup_symbol): Remove.
1166
3bfa51a7
TT
11672021-04-17 Tom Tromey <tom@tromey.com>
1168
1169 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1170 * symmisc.c (maintenance_expand_symtabs): Update.
1171 * symfile.c (expand_symtabs_matching): Update.
1172 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1173 parameter.
1174 * quick-symbol.h (struct quick_symbol_functions)
1175 <expand_symtabs_matching>: Add 'domain' parameter.
1176 * psymtab.c (recursively_search_psymtabs)
1177 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1178 parameter.
1179 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1180 Add 'domain' parameter.
1181 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1182 'domain' parameter.
1183 * linespec.c (iterate_over_all_matching_symtabs): Update.
1184 * dwarf2/read.c (struct dwarf2_gdb_index)
1185 <expand_symtabs_matching>: Add 'domain' parameter.
1186 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1187 'domain' parameter.
1188 (dw2_expand_symtabs_matching)
1189 (dwarf2_gdb_index::expand_symtabs_matching)
1190 (dw2_debug_names_iterator)
1191 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1192 parameter.
1193
03a8ea51
TT
11942021-04-17 Tom Tromey <tom@tromey.com>
1195
1196 * symtab.c (global_symbol_searcher::expand_symtabs)
1197 (default_collect_symbol_completion_matches_break_on): Update.
1198 * symmisc.c (maintenance_expand_symtabs): Update.
1199 * symfile.h (expand_symtabs_matching): Add search_flags
1200 parameter.
1201 * symfile.c (expand_symtabs_matching): Add search_flags
1202 parameter.
1203 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1204 search_flags parameter.
1205 * quick-symbol.h (struct quick_symbol_functions)
1206 <expand_symtabs_matching>: Add search_flags parameter.
1207 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1208 * psymtab.c (recursively_search_psymtabs)
1209 (psymbol_functions::expand_symtabs_matching): Add search_flags
1210 parameter.
1211 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1212 Add search_flags parameter.
1213 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1214 search_flags parameter.
1215 * linespec.c (iterate_over_all_matching_symtabs): Update.
1216 * dwarf2/read.c (struct dwarf2_gdb_index)
1217 <expand_symtabs_matching>: Add search_flags parameter.
1218 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1219 search_flags parameter.
1220 (dw2_map_matching_symbols): Update.
1221 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1222 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1223 parameter.
1224 (dw2_debug_names_iterator): Change block_index to search flags.
1225 <m_block_index>: Likewise.
1226 (dw2_debug_names_iterator::next)
1227 (dwarf2_debug_names_index::lookup_symbol)
1228 (dwarf2_debug_names_index::expand_symtabs_for_function)
1229 (dwarf2_debug_names_index::map_matching_symbols)
1230 (dwarf2_debug_names_index::map_matching_symbols): Update.
1231 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1232 search_flags parameter.
1233 * ada-lang.c (ada_add_global_exceptions)
1234 (collect_symbol_completion_matches): Update.
1235
df35e626
TT
12362021-04-17 Tom Tromey <tom@tromey.com>
1237
1238 * symtab.c (default_collect_symbol_completion_matches_break_on):
1239 Update.
1240 * symfile.h (expand_symtabs_matching): Return bool.
1241 * symfile.c (expand_symtabs_matching): Return bool.
1242 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1243 bool.
1244 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1245 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1246 bool.
1247 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1248 bool.
1249 * psympriv.h (struct psymbol_functions)
1250 <expand_symtabs_matching>: Return bool.
1251 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1252 bool.
1253 * dwarf2/read.c (struct dwarf2_gdb_index)
1254 <expand_symtabs_matching>: Return bool.
1255 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1256 Return bool.
1257 (dw2_expand_symtabs_matching_symbol): Return bool.
1258 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1259 (dw2_expand_symtabs_matching)
1260 (dwarf2_gdb_index::expand_symtabs_matching)
1261 (dwarf2_debug_names_index::expand_symtabs_matching)
1262 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1263
e357e990
TT
12642021-04-17 Tom Tromey <tom@tromey.com>
1265
1266 * quick-symbol.h (enum block_search_flag_values): New.
1267 (block_search_flags): New enum flags type.
1268
3cbc7ac3
TT
12692021-04-16 Tom Tromey <tom@tromey.com>
1270
1271 * rust-parse.c: New file.
1272 * rust-exp.y: Remove.
1273 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1274 (SFILES): Remove rust-exp.y.
1275 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1276
1b6b755e
LM
12772021-04-16 Luis Machado <luis.machado@linaro.org>
1278
1279 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1280
c45ecc9d
JB
12812021-04-15 John Baldwin <jhb@FreeBSD.org>
1282
1283 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1284 use throughout file.
1285
a15a276b
TT
12862021-04-15 Tom Tromey <tromey@adacore.com>
1287
1288 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1289 arrays.
1290
644a2e75
TT
12912021-04-15 Tom Tromey <tromey@adacore.com>
1292
1293 * printcmd.c (print_variable_and_value): Use
1294 common_val_print_checked.
1295
9e5e03df
TT
12962021-04-15 Tom Tromey <tromey@adacore.com>
1297
1298 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1299 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1300 Update.
1301 * p-exp.y (variable): Update.
1302 * m2-exp.y (variable): Update.
1303 * go-exp.y (variable): Update.
1304 * expprint.c (dump_for_expression): New overload.
1305 * expop.h (check_objfile): New overload.
1306 (check_constant): New overload.
1307 (class var_value_operation): Use block_symbol.
1308 <get_symbol>: Rewrite.
1309 * eval.c (var_value_operation::evaluate)
1310 (var_value_operation::evaluate_funcall)
1311 (var_value_operation::evaluate_for_address)
1312 (var_value_operation::evaluate_for_address)
1313 (var_value_operation::evaluate_with_coercion)
1314 (var_value_operation::evaluate_for_sizeof)
1315 (var_value_operation::evaluate_for_cast): Update.
1316 * d-exp.y (PrimaryExpression): Update.
1317 * c-exp.y (variable): Update.
1318 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1319 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1320 (ada_var_value_operation::evaluate)
1321 (ada_var_value_operation::resolve)
1322 (ada_funcall_operation::resolve): Update.
1323 * ada-exp.y (write_var_from_sym, write_object_renaming)
1324 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1325 (maybe_overload): Update.
1326 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1327
5809fbf2
TT
13282021-04-15 Tom Tromey <tom@tromey.com>
1329 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * NEWS: Add entry.
1332 * main.c (captured_main_1): Call check_quiet_mode.
1333 * top.c (startup_quiet): New global.
1334 (check_quiet_mode): New function.
1335 (show_startup_quiet): New function.
1336 (init_main): Register new command.
1337 * top.h (check_quiet_mode): Declare.
1338
92e4e97a
AB
13392021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 PR cli/25956
1342 * NEWS: Mention new early init files and command line options.
1343 * config.in: Regenerate.
1344 * configure: Regenerate.
1345 * configure.ac: Define GDBEARLYINIT.
1346 * main.c (get_earlyinit_files): New function.
1347 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1348 CMDARG_EARLYINIT_COMMAND.
1349 (captured_main_1): Add support for new command line flags, and for
1350 processing startup files.
1351 (print_gdb_help): Include startup files in the output.
1352
54b4dcc5
AB
13532021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1356 (relocate_file_path_maybe_in_datadir): ...this.
1357 (class gdb_initfile_finder): New class.
1358 (get_init_files): Now uses gdb_initfile_finder.
1359 (print_gdb_help): Print 'None found' when there are no init files.
1360
34dc0f95
TBA
13612021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1362
1363 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1364 corresponding child of the abstract DIE when iterating the
1365 children of the concrete DIE.
1366
329534fd
TV
13672021-04-13 Tom de Vries <tdevries@suse.de>
1368
1369 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1370 type to regoff_t *.
1371
d9d2ef05
LM
13722021-04-13 Luis Machado <luis.machado@linaro.org>
1373
1374 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1375 hex values.
1376
c8a37944
WS
13772021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1378
1379 * rs6000-tdep.c: Add support for single-stepping of
1380 prefixed instructions.
1381
b722acca
WS
13822021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1383
e3d528d7
WS
1384 PR gdb/27525
1385 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1386 handle the addpcis/lnia instruction.
1387
13882021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1389
b722acca
WS
1390 * MAINTAINERS (Write After Approval): Add myself.
1391
6ba4cb84
CL
13922021-4-12 Carl Love <cel@us.ibm.com>
1393
1394 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1395 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1396 float128.
1397
d4717483
SM
13982021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1399
1400 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1401 * nat/windows-nat.h: Likewise.
1402
b3885679
EZ
14032021-04-10 Eli Zaretskii <eliz@gnu.org>
1404
1405 * windows-nat.c (windows_nat::handle_load_dll): Call
1406 windows_add_dll if get_image_name failed to glean the name of the
1407 DLL by using the lpImageName pointer.
1408 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1409 (windows_add_dll): Now does what windows_add_all_dlls did before,
1410 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1411 specifies the address where the DLL was loaded into the inferior,
1412 and looks for the single DLL loaded at that address.
1413
1ef6a596
LM
14142021-04-09 Luis Machado <luis.machado@linaro.org>
1415
1416 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1417
83a559f7
DQ
14182021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1419
1420 * darwin-nat.c (darwin_nat_target::resume): Remove status
1421 variable.
1422
16e311ab
FW
14232021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1424
1425 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1426 prologue end for Intel compilers.
1427 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1428 * producer.c (producer_is_icc_ge_19): New function.
1429 * producer.h (producer_is_icc_ge_19): New declaration.
1430
fbb3bcfc
FW
14312021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1432
1433 * producer.c: (producer_is_icc): Update for new version scheme.
1434 (producer_parsing_tests): Update names and expected results.
1435 * producer.h: (producer_is_icc): Update comment accordingly.
1436
e97007b6
SM
14372021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1438
1439 * target.h (struct target_ops) <follow_fork>: Return void.
1440 (target_follow_fork): Likewise.
1441 * target.c (default_follow_fork): Likewise.
1442 (target_follow_fork): Likewise.
1443 * infrun.c (follow_fork_inferior): Adjust.
1444 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1445 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1446 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1447 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1448 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1449 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1450 * remote.c (class remote_target) <follow_fork>: Likewise.
1451 (remote_target::follow_fork): Likewise.
1452 * target-delegates.c: Re-generate.
1453
dc2b480f
WP
14542021-04-07 Weimin Pan <weimin.pan@oracle.com>
1455
1456 * ctfread.c (fetch_tid_type): New function, use throughout file.
1457 (read_forward_type): New function.
1458 (read_type_record): Call read_forward_type.
1459
0a703a4c
AB
14602021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1461
1462 * f-exp.h (class fortran_structop_operation): New class.
1463 * f-exp.y (exp): Create fortran_structop_operation instead of the
1464 generic structop_operation.
1465 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1466 expression as EVAL_NORMAL if the result type was dynamic so we can
1467 extract the actual array bounds.
1468 (fortran_structop_operation::evaluate): New function.
1469
14702021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1471
1472 * eval.c (evaluate_subexp_standard): Remove
1473 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1474 STRUCTOP_PTR.
1475
30ab3586
AB
14762021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * valops.c (value_cast): Call value_deeply_equal before performing
1479 any cast.
1480
5e18990f
AB
14812021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1484 the function.
1485
56d467f4
CT
14862021-04-07 Caroline Tice <cmtice@google.com>
1487
1488 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1489 the search paths used resolve relative location of .dwo file.
1490
1fd999d9
AB
14912021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1494 assert.
1495 (dwarf2_section_info::get_file_name): Add an assert.
1496 (dwarf2_section_info::read_string): Display a minimal, sane error
1497 when the dwarf2_section_info is not associated with a bfd section.
1498
79c02443
AB
14992021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1500
1501 * top.c (staged_gdb_datadir): Update comment.
1502 (set_gdb_datadir): Copy the value of gdb_datadir back into
1503 staged_datadir.
1504 (init_main): Initialise staged_gdb_datadir.
1505
340d00fb
TV
15062021-04-06 Tom de Vries <tdevries@suse.de>
1507
1508 PR breakpoints/25884
1509 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1510 stepping range.
1511
d811a7cf
TV
15122021-04-06 Tom de Vries <tdevries@suse.de>
1513
1514 PR tui/27680
1515 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1516 to style.parse.
1517
306b445a
SM
15182021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * avr-tdep.c (avr_frame_unwind_cache): Use
1521 trad_frame_saved_reg::is_addr.
1522
9161c89a
SM
15232021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1524
1525 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1526 adjust callers.
1527
0072c873
SM
15282021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1531 objfile parameter for objfile_per_bfd_storage, adjust callers.
1532 (struct standard_psymtab) <standard_psymtab>: Likewise.
1533 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1534 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1535 * ctfread.c (struct ctf_psymtab): Likewise.
1536 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1537 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1538 (dwarf2_create_include_psymtab): Likewise.
1539 * objfiles.h (struct objfile_per_bfd_storage)
1540 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1541 <get_bfd>: New method.
1542 <m_bfd>: New field.
1543 * objfiles.c (get_objfile_bfd_data): Adjust.
1544
9984dd99
SM
15452021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1546
1547 * psymtab.c (partial_symtab::partial_symtab): Change
1548 last_objfile_name to be an std::string.
1549 * symfile.c (allocate_symtab): Likewise.
1550
4a4f97c1
SM
15512021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1552
1553 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1554 methods.
1555 (struct objfile) <intern>: Use
1556 objfile::objfile_per_bfd_storage::intern.
1557
0672875f
SM
15582021-04-01 Simon Marchi <simon.marchi@efficios.com>
1559
1560 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1561 with type::is_flag_enum.
1562
9902b327
SM
15632021-04-01 Simon Marchi <simon.marchi@efficios.com>
1564
1565 * gdbtypes.h (struct type) <is_flag_enum,
1566 set_is_flag_enum>: New methods.
1567 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1568 write call sites to use type::set_is_flag_enum.
1569
3bc440a2
SM
15702021-04-01 Simon Marchi <simon.marchi@efficios.com>
1571
1572 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1573 with type::is_declared_class.
1574
aa70e35c
SM
15752021-04-01 Simon Marchi <simon.marchi@efficios.com>
1576
1577 * gdbtypes.h (struct type) <is_declared_class,
1578 set_is_declared_class>: New methods.
1579 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1580 write call sites to use type::set_is_declared_class.
1581
bfb9f5dc
BS
15822021-02-28 Boris Staletic <boris.staletic@gmail.com>
1583
1584 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1585 to avoid deprecation warnings.
1586
733f5eea
ML
15872021-04-01 Martin Liska <mliska@suse.cz>
1588
1589 * cp-name-parser.y: Use startswith instead of strncmp.
1590 * m2-exp.y: Likewise.
1591 * macroexp.c (substitute_args): Likewise.
1592 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1593 * rust-exp.y: Likewise.
1594
af82f89d
TT
15952021-03-31 Tom Tromey <tom@tromey.com>
1596
1597 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1598 with dw2_map_matching_symbols.
1599 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1600 dw2_expand_symtabs_matching.
1601
3570682a
TT
16022021-03-31 Tom Tromey <tromey@adacore.com>
1603
1604 * dwarf2/stringify.h: Fix typo.
1605
8a91fbdf
SM
16062021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1607
1608 PR gdb/27541
1609 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1610 with objfiles using READNOW.
1611
9f67fc59
TT
16122021-03-29 Tom Tromey <tromey@adacore.com>
1613
1614 * top.c (check_frame_language_change): Update.
1615 * language.c (language_info): Remove parameter.
1616 * language.h (language_info): Remove parameter.
1617
9b8ffbf4
LM
16182021-03-29 Luis Machado <luis.machado@linaro.org>
1619
1620 * compile/compile.c (get_args): Don't add empty argv entries.
1621
25b48839
RO
16222021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1623
1624 gdb:
1625 * procfs.c (procfs_target::attach): Define inf.
1626 Use it.
1627 (procfs_target::create_inferior): Likewise.
1628
edc02ceb
TT
16292021-03-28 Tom Tromey <tom@tromey.com>
1630
1631 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1632 (elf_symfile_read): Simplify.
1633 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1634 (make_lazy_dwarf_reader): New function.
1635 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1636 (dwarf2_initialize_objfile): Return void. Remove index_kind
1637 parameter. Push on 'qf' list.
1638 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1639 type. Remove 'index_kind' parameter.
1640 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1641
6e23d91a
TT
16422021-03-27 Tom Tromey <tom@tromey.com>
1643
1644 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1645
594b8948
TT
16462021-03-27 Tom Tromey <tom@tromey.com>
1647
1648 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1649
efe1ecd8
LS
16502021-03-26 Lancelot Six <lsix@lancelotsix.com>
1651
1652 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1653 rid of 'local'.
1654
f4655dee
TT
16552021-03-26 Tom Tromey <tom@tromey.com>
1656
1657 * symtab.c (struct output_source_filename_data): Add 'output'
1658 method and operator().
1659 (output_source_filename_data::output): Rename from
1660 output_source_filename.
1661 (output_partial_symbol_filename): Remove.
1662 (info_sources_command): Update.
1663 (struct add_partial_filename_data): Add operator().
1664 (add_partial_filename_data::operator()): Rename from
1665 maybe_add_partial_symtab_filename.
1666 (make_source_files_completion_list): Update.
1667 * symfile.c (quick_symbol_functions): Update.
1668 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1669 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1670 'need_fullname'. Remove 'data' parameter.
1671 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1672 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1673 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1674 Change type of 'fun' and 'need_fullname'. Remove 'data'
1675 parameter.
1676 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1677 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1678 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1679 parameter.
1680 (mi_cmd_file_list_exec_source_files): Update.
1681 * dwarf2/read.c
1682 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1683
2315bb2d
TT
16842021-03-26 Tom Tromey <tom@tromey.com>
1685
1686 * ada-lang.c (struct match_data): Add operator().
1687 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1688 (callback): Remove 'callback'.
1689
e2cd5ca4
TT
16902021-03-26 Tom Tromey <tom@tromey.com>
1691
1692 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1693 call make_ignore_params once.
1694
cd43f63e
TT
16952021-03-26 Tom Tromey <tom@tromey.com>
1696
1697 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1698 "user" check.
1699
b4b1a226
SM
17002021-03-26 Simon Marchi <simon.marchi@efficios.com>
1701 Pedro Alves <pedro@palves.net>
1702
1703 * async-event.c: Include "infrun.h".
1704 (async_event_handler_marked): New.
1705 * async-event.h (async_event_handler_marked): Declare.
1706 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1707 inferior before calling target method. Don't commit-resumed if
1708 target_has_pending_events is true.
1709 * remote.c (remote_target::has_pending_events): New.
1710 * target-delegates.c: Regenerate.
1711 * target.c (target_has_pending_events): New.
1712 * target.h (target_ops::has_pending_events): New target method.
1713 (target_has_pending_events): New.
1714
1192f124
SM
17152021-03-26 Simon Marchi <simon.marchi@efficios.com>
1716 Pedro Alves <pedro@palves.net>
1717
1718 * infcmd.c (run_command_1, attach_command, detach_command)
1719 (interrupt_target_1): Use scoped_disable_commit_resumed.
1720 * infrun.c (do_target_resume): Remove
1721 target_commit_resume call.
1722 (commit_resume_all_targets): Remove.
1723 (maybe_set_commit_resumed_all_targets): New.
1724 (maybe_call_commit_resumed_all_targets): New.
1725 (enable_commit_resumed): New.
1726 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1727 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1728 (scoped_disable_commit_resumed::reset)
1729 (scoped_disable_commit_resumed::reset_and_commit)
1730 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1731 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1732 New.
1733 (proceed): Use scoped_disable_commit_resumed and
1734 maybe_call_commit_resumed_all_targets.
1735 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1736 * infrun.h (struct scoped_disable_commit_resumed): New.
1737 (maybe_call_commit_resumed_all_process_targets): New.
1738 (struct scoped_enable_commit_resumed): New.
1739 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1740 * process-stratum-target.h (class process_stratum_target):
1741 <commit_resumed_state>: New.
1742 * record-full.c (record_full_wait_1): Change commit_resumed_state
1743 around calling commit_resumed.
1744 * remote.c (class remote_target) <commit_resume>: Rename to...
1745 <commit_resumed>: ... this.
1746 (struct stop_reply): Move up.
1747 (remote_target::commit_resume): Rename to...
1748 (remote_target::commit_resumed): ... this. Check if there is any
1749 thread pending vCont resume.
1750 (remote_target::remote_stop_ns): Generate stop replies for resumed
1751 but pending vCont threads.
1752 (remote_target::wait_ns): Add gdb_assert.
1753 * target-delegates.c: Regenerate.
1754 * target.c (target_wait, target_resume): Assert that the current
1755 process_stratum target isn't in commit-resumed state.
1756 (defer_target_commit_resume): Remove.
1757 (target_commit_resume): Remove.
1758 (target_commit_resumed): New.
1759 (make_scoped_defer_target_commit_resume): Remove.
1760 (target_stop): Assert that the current process_stratum target
1761 isn't in commit-resumed state.
1762 * target.h (struct target_ops) <commit_resume>: Rename to ...
1763 <commit_resumed>: ... this.
1764 (target_commit_resume): Remove.
1765 (target_commit_resumed): New.
1766 (make_scoped_defer_target_commit_resume): Remove.
1767 * top.c (wait_sync_command_done): Use
1768 scoped_enable_commit_resumed.
1769
e5b9b39f
PA
17702021-03-26 Pedro Alves <pedro@palves.net>
1771
1772 * target.c (target_always_non_stop_p): Also check whether the
1773 target can async.
1774
bab287cd
TT
17752021-03-26 Tom Tromey <tom@tromey.com>
1776
1777 * dwarf2/read.c (dwarf2_read_debug_names)
1778 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1779 (dw2_debug_names_iterator::next, create_type_unit_group):
1780 Simplify.
1781
eff4f69d
PA
17822021-03-25 Pedro Alves <pedro@palves.net>
1783
1784 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1785 around setting the breakpoint.
1786
323fd5b9
PA
17872021-03-25 Pedro Alves <pedro@palves.net>
1788
1789 * remote.c
1790 (remote_target::check_pending_events_prevent_wildcard_vcont):
1791 Check whether the event's ptid is not null_ptid before looking up
1792 the corresponding inferior.
1793
d3cbca38
CD
17942021-03-24 Changbin Du <changbin.du@gmail.com>
1795
1796 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1797 read_code.
1798
328d42d8
SM
17992021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1800
1801 * target.h (current_top_target): Remove, make callers use the
1802 current inferior instead.
1803 * target.c (current_top_target): Remove.
1804
d777bf0d
SM
18052021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1806
1807 * target.h (target_shortname): Change to function declaration.
1808 (target_longname): Likewise.
1809 (target_attach_no_wait): Likewise.
1810 (target_post_attach): Likewise.
1811 (target_prepare_to_store): Likewise.
1812 (target_supports_enable_disable_tracepoint): Likewise.
1813 (target_supports_string_tracing): Likewise.
1814 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1815 (target_supports_dumpcore): Likewise.
1816 (target_dumpcore): Likewise.
1817 (target_can_run_breakpoint_commands): Likewise.
1818 (target_files_info): Likewise.
1819 (target_post_startup_inferior): Likewise.
1820 (target_insert_fork_catchpoint): Likewise.
1821 (target_remove_fork_catchpoint): Likewise.
1822 (target_insert_vfork_catchpoint): Likewise.
1823 (target_remove_vfork_catchpoint): Likewise.
1824 (target_insert_exec_catchpoint): Likewise.
1825 (target_remove_exec_catchpoint): Likewise.
1826 (target_set_syscall_catchpoint): Likewise.
1827 (target_rcmd): Likewise.
1828 (target_can_lock_scheduler): Likewise.
1829 (target_can_async_p): Likewise.
1830 (target_is_async_p): Likewise.
1831 (target_execution_direction): Likewise.
1832 (target_extra_thread_info): Likewise.
1833 (target_pid_to_exec_file): Likewise.
1834 (target_thread_architecture): Likewise.
1835 (target_find_memory_regions): Likewise.
1836 (target_make_corefile_notes): Likewise.
1837 (target_get_bookmark): Likewise.
1838 (target_goto_bookmark): Likewise.
1839 (target_stopped_by_watchpoint): Likewise.
1840 (target_stopped_by_sw_breakpoint): Likewise.
1841 (target_supports_stopped_by_sw_breakpoint): Likewise.
1842 (target_stopped_by_hw_breakpoint): Likewise.
1843 (target_supports_stopped_by_hw_breakpoint): Likewise.
1844 (target_have_steppable_watchpoint): Likewise.
1845 (target_can_use_hardware_watchpoint): Likewise.
1846 (target_region_ok_for_hw_watchpoint): Likewise.
1847 (target_can_do_single_step): Likewise.
1848 (target_insert_watchpoint): Likewise.
1849 (target_remove_watchpoint): Likewise.
1850 (target_insert_hw_breakpoint): Likewise.
1851 (target_remove_hw_breakpoint): Likewise.
1852 (target_can_accel_watchpoint_condition): Likewise.
1853 (target_can_execute_reverse): Likewise.
1854 (target_get_ada_task_ptid): Likewise.
1855 (target_filesystem_is_local): Likewise.
1856 (target_trace_init): Likewise.
1857 (target_download_tracepoint): Likewise.
1858 (target_can_download_tracepoint): Likewise.
1859 (target_download_trace_state_variable): Likewise.
1860 (target_enable_tracepoint): Likewise.
1861 (target_disable_tracepoint): Likewise.
1862 (target_trace_start): Likewise.
1863 (target_trace_set_readonly_regions): Likewise.
1864 (target_get_trace_status): Likewise.
1865 (target_get_tracepoint_status): Likewise.
1866 (target_trace_stop): Likewise.
1867 (target_trace_find): Likewise.
1868 (target_get_trace_state_variable_value): Likewise.
1869 (target_save_trace_data): Likewise.
1870 (target_upload_tracepoints): Likewise.
1871 (target_upload_trace_state_variables): Likewise.
1872 (target_get_raw_trace_data): Likewise.
1873 (target_get_min_fast_tracepoint_insn_len): Likewise.
1874 (target_set_disconnected_tracing): Likewise.
1875 (target_set_circular_trace_buffer): Likewise.
1876 (target_set_trace_buffer_size): Likewise.
1877 (target_set_trace_notes): Likewise.
1878 (target_get_tib_address): Likewise.
1879 (target_set_permissions): Likewise.
1880 (target_static_tracepoint_marker_at): Likewise.
1881 (target_static_tracepoint_markers_by_strid): Likewise.
1882 (target_traceframe_info): Likewise.
1883 (target_use_agent): Likewise.
1884 (target_can_use_agent): Likewise.
1885 (target_augmented_libraries_svr4_read): Likewise.
1886 (target_log_command): Likewise.
1887 * target.c (target_shortname): New.
1888 (target_longname): New.
1889 (target_attach_no_wait): New.
1890 (target_post_attach): New.
1891 (target_prepare_to_store): New.
1892 (target_supports_enable_disable_tracepoint): New.
1893 (target_supports_string_tracing): New.
1894 (target_supports_evaluation_of_breakpoint_conditions): New.
1895 (target_supports_dumpcore): New.
1896 (target_dumpcore): New.
1897 (target_can_run_breakpoint_commands): New.
1898 (target_files_info): New.
1899 (target_post_startup_inferior): New.
1900 (target_insert_fork_catchpoint): New.
1901 (target_remove_fork_catchpoint): New.
1902 (target_insert_vfork_catchpoint): New.
1903 (target_remove_vfork_catchpoint): New.
1904 (target_insert_exec_catchpoint): New.
1905 (target_remove_exec_catchpoint): New.
1906 (target_set_syscall_catchpoint): New.
1907 (target_rcmd): New.
1908 (target_can_lock_scheduler): New.
1909 (target_can_async_p): New.
1910 (target_is_async_p): New.
1911 (target_execution_direction): New.
1912 (target_extra_thread_info): New.
1913 (target_pid_to_exec_file): New.
1914 (target_thread_architecture): New.
1915 (target_find_memory_regions): New.
1916 (target_make_corefile_notes): New.
1917 (target_get_bookmark): New.
1918 (target_goto_bookmark): New.
1919 (target_stopped_by_watchpoint): New.
1920 (target_stopped_by_sw_breakpoint): New.
1921 (target_supports_stopped_by_sw_breakpoint): New.
1922 (target_stopped_by_hw_breakpoint): New.
1923 (target_supports_stopped_by_hw_breakpoint): New.
1924 (target_have_steppable_watchpoint): New.
1925 (target_can_use_hardware_watchpoint): New.
1926 (target_region_ok_for_hw_watchpoint): New.
1927 (target_can_do_single_step): New.
1928 (target_insert_watchpoint): New.
1929 (target_remove_watchpoint): New.
1930 (target_insert_hw_breakpoint): New.
1931 (target_remove_hw_breakpoint): New.
1932 (target_can_accel_watchpoint_condition): New.
1933 (target_can_execute_reverse): New.
1934 (target_get_ada_task_ptid): New.
1935 (target_filesystem_is_local): New.
1936 (target_trace_init): New.
1937 (target_download_tracepoint): New.
1938 (target_can_download_tracepoint): New.
1939 (target_download_trace_state_variable): New.
1940 (target_enable_tracepoint): New.
1941 (target_disable_tracepoint): New.
1942 (target_trace_start): New.
1943 (target_trace_set_readonly_regions): New.
1944 (target_get_trace_status): New.
1945 (target_get_tracepoint_status): New.
1946 (target_trace_stop): New.
1947 (target_trace_find): New.
1948 (target_get_trace_state_variable_value): New.
1949 (target_save_trace_data): New.
1950 (target_upload_tracepoints): New.
1951 (target_upload_trace_state_variables): New.
1952 (target_get_raw_trace_data): New.
1953 (target_get_min_fast_tracepoint_insn_len): New.
1954 (target_set_disconnected_tracing): New.
1955 (target_set_circular_trace_buffer): New.
1956 (target_set_trace_buffer_size): New.
1957 (target_set_trace_notes): New.
1958 (target_get_tib_address): New.
1959 (target_set_permissions): New.
1960 (target_static_tracepoint_marker_at): New.
1961 (target_static_tracepoint_markers_by_strid): New.
1962 (target_traceframe_info): New.
1963 (target_use_agent): New.
1964 (target_can_use_agent): New.
1965 (target_augmented_libraries_svr4_read): New.
1966 (target_log_command): New.
1967 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1968 * infrun.c (set_schedlock_func): Adjust.
1969 * mi/mi-main.c (exec_reverse_continue): Adjust.
1970 * reverse.c (exec_reverse_once): Adjust.
1971 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1972 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1973 * remote-sim.c (gdbsim_target::detach): Adjust.
1974 (gdbsim_target::files_info): Adjust.
1975
b64f703b
TT
19762021-03-24 Tom Tromey <tom@tromey.com>
1977
1978 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1979 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1980 (check_match, dw2_expand_symtabs_matching)
1981 (dwarf2_debug_names_index::map_matching_symbols)
1982 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1983
68f115f8
KS
19842021-03-24 Keith Seitz <keiths@redhat.com>
1985
1986 * compile/compile-cplus-types.c
1987 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1988 thinko.
1989
41c0087b
SM
19902021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1991
1992 * gdbarch.sh (gdbarch_data_registry): Make static.
1993 * gdbarch.c: Re-generate.
1994
ce192338
LM
19952021-03-24 Luis Machado <luis.machado@linaro.org>
1996
1997 * NEWS: Mention memory tagging changes.
1998
bef382e6
LM
19992021-03-24 Luis Machado <luis.machado@linaro.org>
2000
2001 * printcmd.c (decode_format): Handle the 'm' modifier.
2002 (do_examine): Display allocation tags when required/supported.
2003 (should_validate_memtags): New function.
2004 (print_command_1): Display memory tag mismatches.
2005 * valprint.c (show_memory_tag_violations): New function.
2006 (value_print_option_defs): Add new option "memory-tag-violations".
2007 (user_print_options) <memory_tag_violations>: Initialize to 1.
2008 * valprint.h (struct format_data) <print_tags>: New field.
2009 (value_print_options) <memory_tag_violations>: New field.
2010
48136e00
LM
20112021-03-24 Luis Machado <luis.machado@linaro.org>
2012
2013 * printcmd.c: Include gdbsupport/rsp-low.h.
2014 (memory_tag_list): New static global.
2015 (process_print_command_args): Factored out of
2016 print_command_1.
2017 (print_command_1): Use process_print_command_args.
2018 (show_addr_not_tagged, show_memory_tagging_unsupported)
2019 (memory_tag_command, memory_tag_print_tag_command)
2020 (memory_tag_print_logical_tag_command)
2021 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2022 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2023 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2024 functions.
2025 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2026
ffcc2a15
LM
20272021-03-24 Luis Machado <luis.machado@linaro.org>
2028
2029 * aarch64-linux-tdep.c
2030 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2031 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2032
cf44c9fa
LM
20332021-03-24 Luis Machado <luis.machado@linaro.org>
2034
2035 * aarch64-linux-tdep.c
2036 (aarch64_linux_report_signal_info): New function.
2037 (aarch64_linux_init_abi): Register
2038 aarch64_linux_report_signal_info as the report_signal_info hook.
2039 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2040 (SEGV_MTESERR): Define.
2041
b4a7d4fc
LM
20422021-03-24 Luis Machado <luis.machado@linaro.org>
2043
2044 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2045 (aarch64_linux_ltag_tests): New function.
2046 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2047
c7782e50
LM
20482021-03-24 Luis Machado <luis.machado@linaro.org>
2049
2050 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2051 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2052 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2053 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2054 functions.
2055 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2056 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2057 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2058 (aarch64_linux_get_ltag): New functions.
2059 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2060 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2061 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2062 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2063
1e735120
LM
20642021-03-24 Luis Machado <luis.machado@linaro.org>
2065
2066 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2067 bit.
2068 (struct smaps_data): New struct.
2069 (decode_vmflags): Handle the 'mt' flag.
2070 (parse_smaps_data): New function, refactored from
2071 linux_find_memory_regions_full.
2072 (linux_address_in_memtag_page): New function.
2073 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2074 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2075
93e447c6
LM
20762021-03-24 Luis Machado <luis.machado@linaro.org>
2077
2078 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2079 instead of char arrays.
2080
4601818e
LM
20812021-03-24 Luis Machado <luis.machado@linaro.org>
2082
2083 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2084 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2085 nat/aarch64-mte-linux-ptrace.h.
2086 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2087 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2088 override.
2089 <fetch_memtags>: New method override.
2090 <store_memtags>: New method override.
2091 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2092 (aarch64_linux_nat_target::fetch_memtags): New method.
2093 (aarch64_linux_nat_target::store_memtags): New method.
2094 * arch/aarch64-mte-linux.c: New file.
2095 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2096 (AARCH64_MTE_GRANULE_SIZE): Define.
2097 (aarch64_memtag_type): New enum.
2098 (aarch64_mte_get_tag_granules): New prototype.
2099 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2100 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2101 * nat/aarch64-mte-linux-ptrace.c: New file.
2102 * nat/aarch64-mte-linux-ptrace.h: New file.
2103
3f3bd8b8
LM
21042021-03-24 Luis Machado <luis.machado@linaro.org>
2105
2106 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2107 * nat/aarch64-mte-linux-ptrace.h: New file.
2108
5e984dbf
LM
21092021-03-24 Luis Machado <luis.machado@linaro.org>
2110
2111 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2112 (store_mteregs_to_thread): New function.
2113 (aarch64_linux_nat_target::fetch_registers): Update to call
2114 fetch_mteregs_from_thread.
2115 (aarch64_linux_nat_target::store_registers): Update to call
2116 store_mteregs_to_thread.
2117 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2118 (aarch64_cannot_store_register): Handle MTE registers.
2119 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2120 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2121 <has_mte>: New method.
2122 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2123
c1bd443b
LM
21242021-03-24 Luis Machado <luis.machado@linaro.org>
2125
2126 * aarch64-linux-nat.c
2127 (aarch64_linux_nat_target::read_description): Take MTE flag into
2128 account.
2129 Slight refactor to hwcap flag checking.
2130 * aarch64-linux-tdep.c
2131 (aarch64_linux_core_read_description): Likewise.
2132 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2133 MTE.
2134 (aarch64_read_description): Add mte_p parameter and update to use it.
2135 Update the documentation.
2136 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2137 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2138 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2139 (aarch64_create_target_description): Add mte_p parameter and update
2140 the code to use it.
2141 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2142 parameter.
2143 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2144 * features/aarch64-mte.c: New file, generated.
2145 * features/aarch64-mte.xml: New file.
2146
04245125
LM
21472021-03-24 Luis Machado <luis.machado@linaro.org>
2148
2149 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2150 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2151 * aarch64-linux-tdep.c: Likewise
2152 * arch/aarch64-mte-linux.h: New file.
2153
754487e2
LM
21542021-03-24 Luis Machado <luis.machado@linaro.org>
2155
2156 * remote: Include gdbsupport/selftest.h.
2157 (test_memory_tagging_functions): New function.
2158 (_initialize_remote): Register test_memory_tagging_functions.
2159
2c2e7f87
LM
21602021-03-24 Luis Machado <luis.machado@linaro.org>
2161
2162 * remote.c (PACKET_memory_tagging_feature): New enum.
2163 (remote_memory_tagging_p): New function.
2164 (remote_protocol_features): New "memory-tagging" entry.
2165 (remote_target::remote_query_supported): Handle memory tagging
2166 support.
2167 (remote_target::supports_memory_tagging): Implement.
2168 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2169 (create_store_memtags_request): New functions.
2170 (remote_target::fetch_memtags): Implement.
2171 (remote_target::store_memtags): Implement.
2172 (_initialize_remote): Add new "memory-tagging-feature"
2173 config command.
2174
c193949e
LM
21752021-03-24 Luis Machado <luis.machado@linaro.org>
2176
2177 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2178 (default_memtag_matches_p, default_set_memtags)
2179 (default_get_memtag): New functions.
2180 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2181 (default_memtag_matches_p, default_set_memtags)
2182 (default_get_memtag): New prototypes.
2183 * gdbarch.c: Regenerate.
2184 * gdbarch.h: Regenerate.
2185 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2186 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2187 (enum memtag_type): New enum.
2188
dbe692af
LM
21892021-03-24 Luis Machado <luis.machado@linaro.org>
2190
2191 * remote.c (remote_target) <supports_memory_tagging>: New method
2192 override.
2193 <fetch_memtags>: New method override.
2194 <store_memtags>: New method override.
2195 (remote_target::supports_memory_tagging): New method.
2196 (remote_target::fetch_memtags): New method.
2197 (remote_target::store_memtags): New method.
2198 * target-delegates.c: Regenerate.
2199 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2200 method.
2201 <fetch_memtags>: New virtual method.
2202 <store_memtags>: New virtual method.
2203 (target_supports_memory_tagging): Define.
2204 (target_fetch_memtags): Define.
2205 (target_store_memtags): Define.
2206 * target-debug.h (target_debug_print_size_t)
2207 (target_debug_print_const_gdb_byte_vector_r)
2208 (target_debug_print_gdb_byte_vector_r): New functions.
2209
66848ebc
SM
22102021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2211
2212 * target.h (target_longname): Remove.
2213
c8fbd44a
SM
22142021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2215
2216 * target.h (target_is_pushed): Remove, update callers to use
2217 inferior::target_is_pushed instead.
2218 * target.c (target_is_pushed): Remove.
2219
02980c56
SM
22202021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2221
2222 * target.h (push_target): Remove, update callers to use
2223 inferior::push_target.
2224 * target.c (push_target): Remove.
2225 * inferior.h (class inferior) <push_target>: New overload.
2226
fadf6add
SM
22272021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2228
2229 * target.h (unpush_target): Remove, update all callers
2230 to use `inferior::unpush_target` instead.
2231 (struct target_unpusher) <operator()>: Just declare.
2232 * target.c (unpush_target): Remove.
2233 (target_unpusher::operator()): New.
2234
702cf3f5
AB
22352021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2236
2237 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2238 error.
2239 (process_full_comp_unit): Validate the top-level tag before
2240 processing the first DIE.
2241 (read_func_scope): Ensure we have a valid builder.
2242
46fec642
AB
22432021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * objc-lang.c (objc_demangle): Renamed to
2246 objc_language::demangle_symbol, and moved later in the file.
2247 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2248 member function.
2249 (objc_language::demangle_symbol): Defined outside of class
2250 declaration. The definition is the old objc_demangle with NULL
2251 changed to nullptr, and if conditions relating to nullptr pointers
2252 or null character checks made explicit.
2253 * objc-lang.h (objc_demangle): Delete declaration.
2254
08dedd66
ML
22552021-03-22 Martin Liska <mliska@suse.cz>
2256
2257 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2258 (_initialize_arm_tdep): Likewise.
2259
eb36a3eb
TT
22602021-03-20 Tom Tromey <tom@tromey.com>
2261
2262 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2263 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2264 * psymtab.h (make_psymbol_functions): Don't declare.
2265 * psymtab.c (make_psymbol_functions): Remove.
2266 (maintenance_print_psymbols): Update.
2267 * psympriv.h (struct psymbol_functions): Add no-argument
2268 constructor.
2269 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2270 <partial_symtabs>: Remove.
2271 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2272 * elfread.c (read_partial_symbols): Update.
2273 (elf_symfile_read): Remove check for existing partial symbols.
2274 Don't clear "qf".
2275 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2276 partial symbols.
2277 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2278 partial symtabs.
2279 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2280 parameter.
2281 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2282 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2283
e1114590
TT
22842021-03-20 Tom Tromey <tom@tromey.com>
2285
2286 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2287 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2288 * symfile-debug.c (objfile::has_partial_symbols)
2289 (objfile::find_last_source_symtab)
2290 (objfile::forget_cached_source_info)
2291 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2292 (objfile::print_stats, objfile::dump)
2293 (objfile::expand_symtabs_for_function)
2294 (objfile::expand_all_symtabs)
2295 (objfile::expand_symtabs_with_fullname)
2296 (objfile::map_matching_symbols)
2297 (objfile::expand_symtabs_matching)
2298 (objfile::find_pc_sect_compunit_symtab)
2299 (objfile::map_symbol_filenames)
2300 (objfile::find_compunit_symtab_by_address)
2301 (objfile::lookup_global_symbol_language)
2302 (objfile::require_partial_symbols): Update.
2303 * psymtab.c (maintenance_print_psymbols)
2304 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2305 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2306 * objfiles.c (objfile_relocate1): Update.
2307 * elfread.c (elf_symfile_read): Update.
2308
de909f0b
TT
23092021-03-20 Tom Tromey <tom@tromey.com>
2310
2311 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2312
caf8c1e5
TT
23132021-03-20 Tom Tromey <tom@tromey.com>
2314
2315 * psymtab.c (psymbol_functions::count_psyms): Rename.
2316 (psymbol_functions::print_stats): Update.
2317 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2318 method.
2319
3aa31ce7
TT
23202021-03-20 Tom Tromey <tom@tromey.com>
2321
2322 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2323 (psymbol_functions::find_pc_sect_psymtab): Rename.
2324 (psymbol_functions::find_pc_sect_compunit_symtab)
2325 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2326 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2327 Declare new method.
2328 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2329
7b249e47
TT
23302021-03-20 Tom Tromey <tom@tromey.com>
2331
2332 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2333 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2334 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2335 parameter.
2336 (add_psymbol_to_bcache): Remove.
2337 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2338 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2339 Likewise.
2340 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2341 <add_psymbol>: Likewise.
2342 (standard_psymtab, legacy_psymtab): Likewise.
2343 * mdebugread.c (parse_partial_symbols): Update.
2344 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2345 (handle_psymbol_enumerators): Update.
2346 (new_psymtab): Add partial_symtabs parameter.
2347 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2348 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2349 parameter.
2350 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2351 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2352 Update.
2353 * dbxread.c (read_dbx_symtab): Update.
2354 (start_psymtab): Add partial_symtabs parameter.
2355 (dbx_end_psymtab): Update.
2356 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2357 (ctf_psymtab): Add partial_symtabs parameter.
2358 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2359 Update.
2360 (scan_partial_symbols): Add partial_symtabs parameter.
2361 (scan_partial_symbols, elfctf_build_psymtabs)
2362 (ctf_psymtab_add_enums): Update.
2363
d1eef86d
TT
23642021-03-20 Tom Tromey <tom@tromey.com>
2365
2366 * symfile.c (read_symbols): Use objfile method.
2367 * symfile-debug.c (objfile::require_partial_symbols): New method.
2368 * psymtab.h (require_partial_symbols): Don't declare.
2369 * psymtab.c (require_partial_symbols): Use objfile method. Now
2370 static.
2371 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2372 (psymbol_functions::lookup_symbol)
2373 (psymbol_functions::lookup_global_symbol_language)
2374 (psymbol_functions::find_last_source_symtab)
2375 (psymbol_functions::forget_cached_source_info)
2376 (psymbol_functions::print_stats)
2377 (psymbol_functions::expand_symtabs_for_function)
2378 (psymbol_functions::expand_all_symtabs)
2379 (psymbol_functions::expand_symtabs_with_fullname)
2380 (psymbol_functions::map_symbol_filenames)
2381 (psymbol_functions::map_matching_symbols)
2382 (psymbol_functions::expand_symtabs_matching)
2383 (psymbol_functions::find_compunit_symtab_by_address)
2384 (maintenance_print_psymbols, maintenance_info_psymtabs)
2385 (maintenance_check_psymtabs): Update.
2386 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2387 new method.
2388
eb00e468
TT
23892021-03-20 Tom Tromey <tom@tromey.com>
2390
2391 * xcoffread.c (xcoff_sym_fns): Update.
2392 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2393 * symfile-debug.c (objfile::has_partial_symbols): Use
2394 can_lazily_read_symbols.
2395 (debug_sym_read_psymbols): Remove.
2396 (debug_sym_fns, install_symfile_debug_logging): Update.
2397 * quick-symbol.h (struct quick_symbol_functions)
2398 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2399 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2400 * mipsread.c (ecoff_sym_fns): Update.
2401 * machoread.c (macho_sym_fns): Update.
2402 * elfread.c (struct lazy_dwarf_reader): New.
2403 (elf_symfile_read): Update.
2404 (read_psyms): Now a method of lazy_dwarf_reader.
2405 (elf_sym_fns): Update.
2406 (elf_sym_fns_lazy_psyms): Remove.
2407 * dbxread.c (aout_sym_fns): Update.
2408 * coffread.c (coff_sym_fns): Update.
2409
b29b98cf
TT
24102021-03-20 Tom Tromey <tom@tromey.com>
2411
2412 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2413 (reread_symbols): Move reset_psymtabs call later.
2414 * objfiles.c (objfile::objfile): Don't initialize
2415 partial_symtabs.
2416
17d66340
TT
24172021-03-20 Tom Tromey <tom@tromey.com>
2418
2419 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2420 set_partial_symtabs.
2421 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2422 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2423 parameter.
2424 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2425 parameter.
2426 (psymbol_functions::find_pc_sect_compunit_symtab)
2427 (psymbol_functions::print_stats, psymbol_functions::dump)
2428 (psymbol_functions::has_symbols): Update.
2429 (make_psymbol_functions, dump_psymtab_addrmap): Add
2430 partial_symtabs parameter.
2431 (maintenance_print_psymbols): Update.
2432 (psymbol_functions::expand_symtabs_matching): Update.
2433 * psympriv.h (struct psymbol_functions): Add constructor.
2434 <m_partial_symtabs>: New member.
2435 <set_partial_symtabs>: New method.
2436
84685904
TT
24372021-03-20 Tom Tromey <tom@tromey.com>
2438
2439 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2440 parameter.
2441 (process_psymtab_comp_unit_reader)
2442 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2443 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2444 Reference psymtabs via per_bfd.
2445
79cc99f6
TT
24462021-03-20 Tom Tromey <tom@tromey.com>
2447
2448 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2449 Remove.
2450 (add_address_entry): Remove objfile parameter.
2451 (add_address_entry_worker): Update.
2452 (write_address_map): Replace objfile parameter with per_bfd.
2453 (write_gdbindex, write_psymtabs_to_index): Update.
2454
4829711b
TT
24552021-03-20 Tom Tromey <tom@tromey.com>
2456
2457 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2458 print_bcache parameter.
2459 * symfile-debug.c (objfile::print_stats): Add print_bcache
2460 parameter.
2461 * quick-symbol.h (struct quick_symbol_functions)
2462 <print_stats>: Add print_bcache parameter.
2463 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2464 code to psymtab.c.
2465 (print_objfile_statistics): Move psymtab code to psymtab.c.
2466 * psymtab.c (count_psyms): Move from symmisc.c.
2467 (psymbol_functions::print_stats): Print partial symbol and bcache
2468 statistics. Add print_bcache parameter.
2469 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2470 (struct objfile) <print_stats>: Add print_bcache parameter.
2471 * maint.c (maintenance_print_statistics): Update.
2472
efd7398e
TT
24732021-03-20 Tom Tromey <tom@tromey.com>
2474
2475 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2476 member.
2477 * dwarf2/read.c (create_addrmap_from_index)
2478 (create_addrmap_from_aranges): Set per_bfd addrmap.
2479 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2480 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2481 per_bfd addrmap.
2482 (dwarf2_read_debug_names): Don't set partial_symtabs.
2483 (dwarf2_initialize_objfile): Likewise.
2484
51962708
TT
24852021-03-20 Tom Tromey <tom@tromey.com>
2486
2487 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2488 earlier.
2489
484b1090
TT
24902021-03-20 Tom Tromey <tom@tromey.com>
2491
2492 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2493 (~psymtab_discarder, keep): Update.
2494 <m_objfile>: Remove.
2495 <m_partial_symtabs>: New member.
2496 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2497
7e9c0476
TT
24982021-03-20 Tom Tromey <tom@tromey.com>
2499
2500 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2501 (xcoff_end_psymtab): Update.
2502 (scan_xcoff_symtab): Add partial_symtabs parameter.
2503 (xcoff_initial_scan): Update.
2504 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2505 * mdebugread.c (mdebug_build_psymtabs): Update.
2506 (parse_partial_symbols): Add partial_symtabs parameter.
2507 * dbxread.c (dbx_symfile_read): Update.
2508 (read_dbx_symtab): Add partial_symtabs parameter.
2509 (read_dbx_symtab): Update.
2510 (dbx_end_psymtab): Add partial_symtabs parameter.
2511
75336a5a
TT
25122021-03-20 Tom Tromey <tom@tromey.com>
2513
2514 * quick-symbol.h (struct quick_symbol_functions)
2515 <relocated>: New method.
2516 * psymtab.h (struct psymbol_functions) <relocated>: New
2517 method.
2518 <fill_psymbol_map>: Declare method.
2519 <m_psymbol_map>: New member.
2520 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2521 (psymbol_functions::find_compunit_symtab_by_address): Update.
2522 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2523 (struct objfile) <psymbol_map>: Remove.
2524 * objfiles.c (objfile_relocate1): Update.
2525
39298a5d
TT
25262021-03-20 Tom Tromey <tom@tromey.com>
2527
2528 * psympriv.h (struct psymbol_functions): New.
2529 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2530 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2531 (objfile::lookup_global_symbol_language): Update.
2532 * quick-symbol.h (struct quick_symbol_functions): Convert function
2533 pointers to methods. Add virtual destructor.
2534 (quick_symbol_functions_up): New typedef.
2535 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2536 (dwarf2_debug_names_functions): Don't declare.
2537 (make_psymbol_functions): Declare.
2538 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2539 (psymbol_functions::find_pc_sect_compunit_symtab)
2540 (psymbol_functions::lookup_symbol)
2541 (psymbol_functions::lookup_global_symbol_language)
2542 (psymbol_functions::find_last_source_symtab)
2543 (psymbol_functions::forget_cached_source_info)
2544 (psymbol_functions::print_stats, psymbol_functions::dump)
2545 (psymbol_functions::expand_symtabs_for_function)
2546 (psymbol_functions::expand_all_symtabs)
2547 (psymbol_functions::expand_symtabs_with_fullname)
2548 (psymbol_functions::map_symbol_filenames)
2549 (psymbol_functions::map_matching_symbols)
2550 (psymbol_functions::expand_symtabs_matching)
2551 (psymbol_functions::has_symbols)
2552 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2553 (psym_functions): Remove.
2554 (make_psymbol_functions): New function.
2555 * objfiles.h (struct objfile) <qf>: Change type.
2556 * elfread.c (elf_symfile_read): Update.
2557 * dwarf2/read.c (struct dwarf2_base_index_functions)
2558 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2559 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2560 (dwarf2_base_index_functions::find_last_source_symtab)
2561 (dwarf2_base_index_functions::forget_cached_source_info)
2562 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2563 (dwarf2_gdb_index::lookup_symbol)
2564 (dwarf2_base_index_functions::print_stats)
2565 (dwarf2_gdb_index::dump)
2566 (dwarf2_gdb_index::expand_symtabs_for_function)
2567 (dwarf2_base_index_functions::expand_all_symtabs)
2568 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2569 Rename.
2570 (dwarf2_gdb_index::map_matching_symbols): New method.
2571 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2572 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2573 (dwarf2_base_index_functions::map_symbol_filenames)
2574 (dwarf2_base_index_functions::has_symbols): Rename.
2575 (dwarf2_gdb_index_functions): Remove.
2576 (dwarf2_debug_names_index::lookup_symbol)
2577 (dwarf2_debug_names_index::dump)
2578 (dwarf2_debug_names_index::expand_symtabs_for_function)
2579 (dwarf2_debug_names_index::map_matching_symbols)
2580 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2581 (dwarf2_debug_names_functions): Remove.
2582 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2583 Declare.
2584
5c3f1e5b
TT
25852021-03-20 Tom Tromey <tom@tromey.com>
2586
2587 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2588 null.
2589 * xcoffread.c (xcoff_sym_fns): Update.
2590 * symfile.h (struct sym_fns) <qf>: Remove.
2591 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2592 * symfile-debug.c (objfile::has_partial_symbols)
2593 (objfile::find_last_source_symtab)
2594 (objfile::forget_cached_source_info)
2595 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2596 (objfile::print_stats, objfile::dump)
2597 (objfile::expand_symtabs_for_function)
2598 (objfile::expand_all_symtabs)
2599 (objfile::expand_symtabs_with_fullname)
2600 (objfile::map_matching_symbols)
2601 (objfile::expand_symtabs_matching)
2602 (objfile::find_pc_sect_compunit_symtab)
2603 (objfile::map_symbol_filenames)
2604 (objfile::find_compunit_symtab_by_address)
2605 (objfile::lookup_global_symbol_language, debug_sym_fns)
2606 (install_symfile_debug_logging): Update.
2607 * objfiles.h (struct objfile) <qf>: New member.
2608 * mipsread.c (ecoff_sym_fns): Update.
2609 * machoread.c (macho_sym_fns): Update.
2610 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2611 Don't declare.
2612 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2613 * dbxread.c (aout_sym_fns): Update.
2614 * coffread.c (coff_sym_fns): Update.
2615
9b99dcc8
TT
26162021-03-20 Tom Tromey <tom@tromey.com>
2617
2618 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2619 (expand_symtabs_file_matcher_ftype)
2620 (expand_symtabs_symbol_matcher_ftype)
2621 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2622 Move to quick-symbol.h.
2623 * quick-symbol.h: New file.
2624
4d080b46
TT
26252021-03-20 Tom Tromey <tom@tromey.com>
2626
2627 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2628 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2629 (basic_lookup_transparent_type_quick)
2630 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2631 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2632 Update.
2633 * symmisc.c (print_objfile_statistics, dump_objfile)
2634 (maintenance_expand_symtabs): Update.
2635 * symfile.c (symbol_file_add_with_addrs)
2636 (expand_symtabs_matching, map_symbol_filenames): Update.
2637 * symfile-debug.c (objfile::has_partial_symbols)
2638 (objfile::find_last_source_symtab)
2639 (objfile::forget_cached_source_info)
2640 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2641 (objfile::print_stats, objfile::dump)
2642 (objfile::expand_symtabs_for_function)
2643 (objfile::expand_all_symtabs)
2644 (objfile::expand_symtabs_with_fullname)
2645 (objfile::map_matching_symbols)
2646 (objfile::expand_symtabs_matching)
2647 (objfile::find_pc_sect_compunit_symtab)
2648 (objfile::map_symbol_filenames)
2649 (objfile::find_compunit_symtab_by_address)
2650 (objfile::lookup_global_symbol_language): New methods.
2651 (debug_sym_quick_functions): Remove.
2652 (debug_sym_fns, install_symfile_debug_logging): Update.
2653 * source.c (forget_cached_source_info_for_objfile)
2654 (select_source_symtab): Update.
2655 * objfiles.h (struct objfile): Add methods corresponding to
2656 quick_symbol_functions.
2657 * objfiles.c (objfile::has_partial_symbols): Move to
2658 symfile-debug.c.
2659 * linespec.c (iterate_over_all_matching_symtabs): Update.
2660 * cp-support.c (add_symbol_overload_list_qualified): Update.
2661 * ada-lang.c (add_nonlocal_symbols): Update.
2662
fae2120b
TT
26632021-03-20 Tom Tromey <tom@tromey.com>
2664
2665 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2666 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2667 bool.
2668 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2669 * psymtab.c (psym_has_symbols): Return bool.
2670 * objfiles.c (objfile::has_partial_symbols): Return bool.
2671 * dwarf2/read.c (dw2_has_symbols): Return bool.
2672
a8ad4f3c
TT
26732021-03-20 Tom Tromey <tom@tromey.com>
2674
2675 * symfile.c (read_symbols): Update.
2676 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2677 (objfile_has_partial_symbols): Don't declare.
2678 * objfiles.c (objfile::has_partial_symbols): Rename from
2679 objfile_has_partial_symbols.
2680 (objfile_has_symbols, have_partial_symbols): Update.
2681 * elfread.c (elf_symfile_read): Update.
2682 * dwarf2/read.c (dwarf2_has_info): Update.
2683 * coffread.c (coff_symfile_read): Update.
2684
70182375
TT
26852021-03-20 Tom Tromey <tom@tromey.com>
2686
2687 * coffread.c: Include dwarf2/public.h.
2688 * dwarf2/frame.c: Include dwarf2/public.h.
2689 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2690 * dwarf2/public.h: New file.
2691 * dwarf2/read.c: Include dwarf2/public.h.
2692 * elfread.c: Include dwarf2/public.h.
2693 * machoread.c: Include dwarf2/public.h.
2694 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2695 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2696 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2697 * xcoffread.c: Include dwarf2/public.h.
2698
18038e63
TT
26992021-03-20 Tom Tromey <tom@tromey.com>
2700
2701 * symfile.h (enum dwarf2_section_enum)
2702 (dwarf2_get_section_info): Move to dwarf2/read.h.
2703 * dwarf2/read.h (enum dwarf2_section_enum)
2704 (dwarf2_get_section_info): Move from symfile.h.
2705
219f56b4
PA
27062021-03-19 Pedro Alves <pedro@palves.net>
2707
2708 * thread.c (any_thread_of_inferior): Check if there's a selected
2709 thread before calling inferior_thread().
2710
15310fd4
TT
27112021-03-18 Tom Tromey <tromey@adacore.com>
2712
2713 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2714 get_DW_UT_name.
2715 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2716 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2717
763b8efd
AB
27182021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * python/py-param.c (get_set_value): Update header comment.
2721
f058c521
SM
27222021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2723
2724 * infrun.c (check_multi_target_resumption): Remove argument to
2725 all_non_exited_inferiors.
2726
383228bc
CB
27272021-03-16 Christian Biesinger <cbiesinger@google.com>
2728
2729 * windows-nat.c (windows_init_thread_list): Add message to
2730 debug log.
2731
7807d76a
AB
27322021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2733
2734 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2735 well as PyLong_Check for Python 2.
2736
675da9a5
TT
27372021-03-15 Tom Tromey <tromey@adacore.com>
2738
2739 PR build/27579:
2740 * rust-exp.y (maker_map): Use gdb::hash_enum.
2741 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2742
4800761a
SM
27432021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2744
2745 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2746 end of debug print.
2747
eb5dd737
SM
27482021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2749
2750 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2751 parameter, adjust caller.
2752
6813ceb0
TT
27532021-03-15 Tom Tromey <tromey@adacore.com>
2754
2755 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2756
3b5c4de0
TT
27572021-03-15 Tom Tromey <tromey@adacore.com>
2758
2759 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2760 ada_ensure_varsize_limit.
2761
c04da66c
TT
27622021-03-15 Tom Tromey <tromey@adacore.com>
2763
2764 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2765 fixed-point.
2766 * ada-exp.y (maybe_overload): New function.
2767 (ada_wrap_overload): New function.
2768 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2769 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2770 (or_else_exp, xor_exp, primary): Update.
2771
9863c3b5
TT
27722021-03-15 Tom Tromey <tromey@adacore.com>
2773
2774 PR ada/27545:
2775 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2776 call for tagged type.
2777
1ac74522
TT
27782021-03-15 Tom Tromey <tromey@adacore.com>
2779
2780 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2781 assignment.
2782
207582c0
TT
27832021-03-15 Tom Tromey <tromey@adacore.com>
2784
2785 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2786 container.
2787 (ada_assign_operation::evaluate): Update.
2788 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2789 Change return type.
2790
8d624a9d
FW
27912021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2792
2793 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2794
ba6a0ef3
AB
27952021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * python/python.c (gdbpy_source_objfile_script): Use
2798 make_scoped_restore to restore gdbpy_current_objfile.
2799 (gdbpy_execute_objfile_script): Likewise.
2800
7c290a04
TT
28012021-03-14 Tom Tromey <tom@tromey.com>
2802
2803 * dwarf2/read.c (read_attribute_value): Use cu_header
2804 consistently.
2805
0280fdcc
TT
28062021-03-14 Tom Tromey <tom@tromey.com>
2807
2808 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2809 (peek_die_abbrev): Use reader.abfd.
2810
a9f172c6
TT
28112021-03-14 Tom Tromey <tom@tromey.com>
2812
2813 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2814 m_header_read_in.
2815
7c32eebb
TT
28162021-03-13 Tom Tromey <tom@tromey.com>
2817
2818 * dwarf2/read.c (struct partial_die_info): Update.
2819 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2820 (load_partial_dies, partial_die_info::partial_die_info): Update.
2821 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2822
27012aba
TT
28232021-03-13 Tom Tromey <tom@tromey.com>
2824
2825 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2826
fece451c
CB
28272021-03-12 Christian Biesinger <cbiesinger@google.com>
2828
2829 PR threads/27239
2830 * cp-support.c: Use scoped_segv_handler_restore.
2831 * event-top.c (thread_local_segv_handler): Made static.
2832 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2833 New function.
2834 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2835 function.
2836 * event-top.h (class scoped_segv_handler_restore): New class.
2837 (thread_local_segv_handler): Removed.
2838
7056f312
TT
28392021-03-10 Tom Tromey <tromey@adacore.com>
2840
2841 * parser-defs.h (parser_state): Change completion to bool.
2842 <parse_completion>: Likewise.
2843 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2844 (ada_resolve_variable, ada_resolve_function): Update.
2845 * ada-lang.c (ada_find_operator_symbol): Change
2846 parse_completion to bool.
2847 (ada_resolve_funcall, ada_resolve_variable)
2848 (ada_resolve_function): Likewise.
2849
ccdc02ed
TT
28502021-03-09 Tom Tromey <tromey@adacore.com>
2851
2852 * eval.c (operation::evaluate_funcall): Use function formal
2853 parameter types when evaluating.
2854
fbb1aace
AB
28552021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2856
2857 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2858 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2859 and owner to m_owner.
2860
611aa09d
FW
28612021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2862
2863 * f-exp.h (eval_op_f_loc): Declare.
2864 (expr::fortran_loc_operation): New typedef.
2865 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2866 UNOP_INTRINSIC.
2867 (f77_keywords): Add LOC keyword.
2868 * f-lang.c (eval_op_f_loc): New function.
2869 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2870
eef32f59
AB
28712021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * f-exp.h (eval_op_f_array_shape): Declare.
2874 (fortran_array_shape_operation): New type.
2875 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2876 UNOP_INTRINSIC.
2877 (f77_keywords): Add "shape" keyword.
2878 * f-lang.c (fortran_array_shape): New function.
2879 (eval_op_f_array_shape): New function.
2880 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2881
7ba155b3
AB
28822021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2883
2884 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2885 of this function.
2886 (expr::fortran_array_size_1arg): New type.
2887 (expr::fortran_array_size_2arg): Likewise.
2888 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2889 UNOP_OR_BINOP_INTRINSIC.
2890 (f77_keywords): Add "size" keyword.
2891 * f-lang.c (fortran_array_size): New function.
2892 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2893 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2894
e14816a8
AB
28952021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2896
2897 * f-exp.h (eval_op_f_rank): Declare.
2898 (expr::fortran_rank_operation): New typedef.
2899 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2900 UNOP_INTRINSIC.
2901 (f77_keywords): Add "rank" keyword.
2902 * f-lang.c (eval_op_f_rank): New function.
2903 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2904
3dd93bf8
TT
29052021-03-08 Tom Tromey <tom@tromey.com>
2906
2907 * printcmd.c (set_command): Remove null check.
2908 * value.c (init_if_undefined_command): Remove null check.
2909
9c79936b
TT
29102021-03-08 Tom Tromey <tom@tromey.com>
2911
2912 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2913 Update.
2914 * p-exp.y (variable): Update.
2915 * go-exp.y (variable): Update.
2916 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2917 Remove overload for objfile.
2918 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2919 parameter.
2920 (check_objfile): Likewise.
2921 (dump_for_expression): Likewise. Remove overload for objfile.
2922 (class var_msym_value_operation): Use bound_minimal_symbol.
2923 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2924 parameter.
2925 (var_msym_value_operation::evaluate_for_address)
2926 (var_msym_value_operation::evaluate_for_sizeof)
2927 (var_msym_value_operation::evaluate_for_cast): Update.
2928 * d-exp.y (PrimaryExpression): Update.
2929 * c-exp.y (variable): Update.
2930 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2931 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2932 Update.
2933 * ada-exp.y (write_var_or_type): Update.
2934
40d07d07
TT
29352021-03-08 Tom Tromey <tom@tromey.com>
2936
2937 * parser-defs.h (exp_uses_objfile): Return bool.
2938 * parse.c (exp_uses_objfile): Return bool.
2939
0b2b0b82
TT
29402021-03-08 Tom Tromey <tom@tromey.com>
2941
2942 * value.h (eval_skip_value): Don't declare.
2943 * opencl-lang.c (eval_opencl_assign): Update.
2944 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2945 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2946 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2947 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2948 * expop.h (typeof_operation::evaluate)
2949 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2950 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2951 (cxx_cast_operation::evaluate): Update.
2952 * eval.c (eval_skip_value): Remove.
2953 (eval_op_scope, eval_op_var_entry_value)
2954 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2955 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2956 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2957 (eval_op_binary, eval_op_subscript, eval_op_equal)
2958 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2959 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2960 (eval_op_complement, eval_op_lognot, eval_op_ind)
2961 (eval_op_memval, eval_op_preinc, eval_op_predec)
2962 (eval_op_postinc, eval_op_postdec, eval_op_type)
2963 (eval_binop_assign_modify, eval_op_objc_msgcall)
2964 (eval_multi_subscript, logical_and_operation::evaluate)
2965 (logical_or_operation::evaluate, array_operation::evaluate)
2966 (operation::evaluate_for_cast)
2967 (var_msym_value_operation::evaluate_for_cast)
2968 (var_value_operation::evaluate_for_cast): Update.
2969 * c-lang.c (c_string_operation::evaluate): Update.
2970 * c-exp.h (objc_nsstring_operation::evaluate)
2971 (objc_selector_operation::evaluate): Update.
2972 * ada-lang.c (ada_assign_operation::evaluate)
2973 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2974 (ada_atr_size): Update.
2975
96db551d
TT
29762021-03-08 Tom Tromey <tom@tromey.com>
2977
2978 * eval.c: Merge "namespace" scopes.
2979
ce284361
TT
29802021-03-08 Tom Tromey <tom@tromey.com>
2981
2982 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2983 <release>: Inline.
2984 * parse.c (expr_builder::expr_builder, expr_builder::release):
2985 Remove.
2986
b9d06571
TT
29872021-03-08 Tom Tromey <tom@tromey.com>
2988
2989 * parse.c (expression::expression, expression::~expression):
2990 Remove.
2991 * expression.h (struct expression): Inline constructor. Remove
2992 destructor.
2993
79ab486e
TT
29942021-03-08 Tom Tromey <tom@tromey.com>
2995
2996 * std-operator.def (BINOP_END): Remove.
2997 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2998 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2999 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3000 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3001 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3002 BINOP_END.
3003
48fa6f23
TT
30042021-03-08 Tom Tromey <tom@tromey.com>
3005
3006 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3007
43f542e3
TT
30082021-03-08 Tom Tromey <tom@tromey.com>
3009
3010 * std-operator.def (OP_EXTENDED0): Remove.
3011
5d9ba982
TT
30122021-03-08 Tom Tromey <tom@tromey.com>
3013
3014 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3015 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3016 Remove.
3017
d357570d
TT
30182021-03-08 Tom Tromey <tom@tromey.com>
3019
3020 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3021 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3022
0922dc84
TT
30232021-03-08 Tom Tromey <tom@tromey.com>
3024
3025 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3026 * ada-lang.c (ada_binop_minmax): Update.
3027 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3028 Use BINOP_MIN and BINOP_MAX.
3029
1eaebe02
TT
30302021-03-08 Tom Tromey <tom@tromey.com>
3031
3032 * value.h (evaluate_subexp_with_coercion): Don't declare.
3033 * parse.c (exp_descriptor_standard): Remove.
3034 (expr_builder::expr_builder, expr_builder::release): Update.
3035 (expression::expression): Remove size_t parameter.
3036 (expression::~expression): Simplify.
3037 (expression::resize): Remove.
3038 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3039 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3040 (write_exp_elt_longcst, write_exp_elt_floatcst)
3041 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3042 (write_exp_string_vector, write_exp_bitstring): Remove.
3043 * p-lang.h (class pascal_language) <opcode_print_table,
3044 op_print_tab>: Remove.
3045 * p-lang.c (pascal_language::op_print_tab): Remove.
3046 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3047 Remove.
3048 * objc-lang.c (objc_op_print_tab): Remove.
3049 (class objc_language) <opcode_print_table>: Remove.
3050 * m2-lang.h (class m2_language) <opcode_print_table,
3051 op_print_tab>: Remove.
3052 * m2-lang.c (m2_language::op_print_tab): Remove.
3053 * language.h (struct language_defn) <post_parser, expression_ops,
3054 opcode_print_table>: Remove.
3055 * language.c (language_defn::expression_ops)
3056 (auto_or_unknown_language::opcode_print_table): Remove.
3057 * go-lang.h (class go_language) <opcode_print_table,
3058 op_print_tab>: Remove.
3059 * go-lang.c (go_language::op_print_tab): Remove.
3060 * f-lang.h (class f_language) <opcode_print_table>: Remove
3061 <op_print_tab>: Remove.
3062 * f-lang.c (f_language::op_print_tab): Remove.
3063 * expression.h (union exp_element): Remove.
3064 (struct expression): Remove size_t parameter from constructor.
3065 <resize>: Remove.
3066 <first_opcode>: Update.
3067 <nelts, elts>: Remove.
3068 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3069 (evaluate_subexp_standard, print_expression, op_string)
3070 (dump_raw_expression): Don't declare.
3071 * expprint.c (print_expression, print_subexp)
3072 (print_subexp_funcall, print_subexp_standard, op_string)
3073 (dump_raw_expression, dump_subexp, dump_subexp_body)
3074 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3075 (dump_prefix_expression): Update.
3076 * eval.c (evaluate_subexp): Remove.
3077 (evaluate_expression, evaluate_type): Update.
3078 (evaluate_subexpression_type): Remove.
3079 (fetch_subexp_value): Remove "pc" parameter. Update.
3080 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3081 (evaluate_subexp_standard, evaluate_subexp_for_address)
3082 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3083 (evaluate_subexp_for_cast): Remove.
3084 (parse_and_eval_type): Update.
3085 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3086 * d-lang.c (d_op_print_tab): Remove.
3087 (class d_language) <opcode_print_table>: Remove.
3088 * c-lang.h (c_op_print_tab): Don't declare.
3089 * c-lang.c (c_op_print_tab): Remove.
3090 (class c_language, class cplus_language, class asm_language, class
3091 minimal_language) <opcode_print_table>: Remove.
3092 * breakpoint.c (update_watchpoint, watchpoint_check)
3093 (watchpoint_exp_is_const, watch_command_1): Update.
3094 * ax-gdb.h (union exp_element): Don't declare.
3095 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3096 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3097 (gen_expr_binop_rest): Remove.
3098 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3099 * ada-lang.c (ada_op_print_tab): Remove.
3100 (class ada_language) <post_parser, opcode_print_table>: Remove.
3101
f2a98603
TT
31022021-03-08 Tom Tromey <tom@tromey.com>
3103
3104 * go-lang.c (go_language::expression_ops): Don't declare.
3105 * go-lang.h (class go_language) <expression_ops>: Remove.
3106 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3107 Remove.
3108 (class opencl_language) <expression_ops>: Remove.
3109 * d-lang.c (class d_language) <expression_ops>: Remove.
3110 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3111 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3112 (class c_language, class cplus_language, class asm_language)
3113 (class minimal_language) <expression_ops>: Remove.
3114
d3c54a1c
TT
31152021-03-08 Tom Tromey <tom@tromey.com>
3116
3117 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3118 (evaluate_subexp_type, assign_aggregate)
3119 (aggregate_assign_positional, aggregate_assign_from_choices)
3120 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3121 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3122 (ada_operator_check, ada_forward_operator_length)
3123 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3124 Remove.
3125 (post_parser): Update.
3126 (class ada_language) <expresssion_ops>: Remove.
3127
5871f0a3
TT
31282021-03-08 Tom Tromey <tom@tromey.com>
3129
3130 * m2-lang.h (class m2_language) <expresssion_ops,
3131 exp_descriptor_modula2>: Remove.
3132 * m2-lang.c (evaluate_subexp_modula2)
3133 (m2_language::exp_descriptor_modula2): Remove.
3134
a99be8c1
TT
31352021-03-08 Tom Tromey <tom@tromey.com>
3136
3137 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3138 <exp_descriptor_tab>: Remove.
3139 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3140 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3141 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3142 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3143 Remove.
3144
aa1da9ed
TT
31452021-03-08 Tom Tromey <tom@tromey.com>
3146
3147 * rust-lang.h (class rust_language) <expression_ops,
3148 exp_descriptor_tab>: Remove.
3149 * rust-lang.c (rust_evaluate_funcall): Remove.
3150 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3151 EVAL_SKIP.
3152 (rust_evaluate_subexp): Remove.
3153 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3154 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3155 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3156
08a057e6
TT
31572021-03-08 Tom Tromey <tom@tromey.com>
3158
3159 * ada-exp.y: Create operations.
3160 (empty_stoken): Remove.
3161 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3162 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3163 (components): New global.
3164 (push_component, choice_component, pop_component, pop_components):
3165 New functions.
3166 (associations): New global
3167 (push_association, pop_association, pop_associations): New
3168 functions.
3169 (ada_parse): Update.
3170 (write_var_from_sym, write_int): Create operations.
3171 (write_exp_op_with_string): Remove.
3172 (write_object_renaming, write_selectors, write_ambiguous_var)
3173 (write_var_or_type, write_name_assoc): Create operations.
3174 * ada-lang.h (ada_index_type): Declare.
3175 * ada-lang.c (ada_index_type): No longer static.
3176
d308ba78
TT
31772021-03-08 Tom Tromey <tom@tromey.com>
3178
3179 * f-exp.y: Create operations.
3180 (f_language::parser): Update.
3181
f1b8ceef
TT
31822021-03-08 Tom Tromey <tom@tromey.com>
3183
3184 * m2-exp.y: Create operations.
3185 (m2_language::parser): Update.
3186
3163898e
TT
31872021-03-08 Tom Tromey <tom@tromey.com>
3188
3189 * p-exp.y: Create operations.
3190 (pascal_language::parser): Update.
3191
9412fdcc
TT
31922021-03-08 Tom Tromey <tom@tromey.com>
3193
3194 * d-exp.y: Create operations.
3195 (d_parse): Update.
3196
bb4e0574
TT
31972021-03-08 Tom Tromey <tom@tromey.com>
3198
3199 * go-exp.y: Create operations.
3200 (go_language::parser): Update.
3201
d182f279
TT
32022021-03-08 Tom Tromey <tom@tromey.com>
3203
3204 * objc-lang.c (end_msglist): Create operations.
3205 * c-exp.y: Change parser to create operations.
3206 (write_destructor_name): Remove.
3207 (c_parse): Update.
3208
c1299a23
TT
32092021-03-08 Tom Tromey <tom@tromey.com>
3210
3211 * rust-exp.y: Create operations.
3212 (rust_parser::convert_params_to_expression): Change return type.
3213 (binop_maker_ftype): New typedef.
3214 (maker_map): New global.
3215 (rust_parser::convert_ast_to_expression): Change return type.
3216 (rust_language::parser): Update.
3217 (_initialize_rust_exp): Initialize maker_map.
3218
4c5e7a93
TT
32192021-03-08 Tom Tromey <tom@tromey.com>
3220
3221 * stap-probe.c (binop_maker_ftype): New typedef.
3222 (stap_maker_map): New global.
3223 (stap_make_binop): New function.
3224 (stap_parse_register_operand): Return operation_up.
3225 (stap_parse_single_operand, stap_parse_argument_conditionally)
3226 (stap_parse_argument_1): Likewise.
3227 (stap_parse_argument): Create operations.
3228 (stap_probe::parse_arguments): Update.
3229 (_initialize_stap_probe): Initialize stap_maker_map.
3230 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3231 type.
3232 * i386-tdep.h (i386_stap_parse_special_token): Change return
3233 type.
3234 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3235 (i386_stap_parse_special_token_three_arg_disp)
3236 (i386_stap_parse_special_token): Change return type.
3237 * gdbarch.sh (stap_parse_special_token): Change return type.
3238 * gdbarch.c: Rebuild.
3239 * gdbarch.h: Rebuild.
3240 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3241 type.
3242 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3243 return type.
3244
482ddd69
TT
32452021-03-08 Tom Tromey <tom@tromey.com>
3246
3247 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3248 * gdbarch.h: Rebuild.
3249 * gdbarch.c: Rebuild.
3250 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3251 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3252 return type.
3253 (amd64_dtrace_parse_probe_argument): Update.
3254
8227d9e2
TT
32552021-03-08 Tom Tromey <tom@tromey.com>
3256
3257 * parser-defs.h (struct parser_state) <push, push_new,
3258 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3259 wrap2>: New methods.
3260 <m_operations>: New member.
3261 * parse.c (parser_state::push_c_string)
3262 (parser_state::push_symbol, parser_state::push_dollar): New
3263 methods.
3264
4933522d
TT
32652021-03-08 Tom Tromey <tom@tromey.com>
3266
3267 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3268 New member.
3269 (struct parser_state) <mark_struct_expression>: New method.
3270 * parse.c (parser_state::mark_struct_expression): Update assert.
3271 (parser_state::mark_struct_expression): New method.
3272 (parser_state::mark_completion_tag): Update assert.
3273 (parse_expression_for_completion): Handle expout_last_op.
3274
413403fc
TT
32752021-03-08 Tom Tromey <tom@tromey.com>
3276
3277 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3278 now in superclass.
3279 * value.h (fetch_subexp_value): Add "op" parameter.
3280 * value.c (init_if_undefined_command): Update.
3281 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3282 * stap-probe.c (stap_probe::compile_to_ax): Update.
3283 * printcmd.c (set_command): Update.
3284 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3285 Update.
3286 * parser-defs.h (struct expr_builder) <set_operation>: New
3287 method.
3288 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3289 * expression.h (struct expression) <first_opcode>: Update.
3290 <op>: New member.
3291 * expprint.c (dump_raw_expression, dump_prefix_expression):
3292 Update.
3293 * expop.h (class var_value_operation) <get_symbol>: New method.
3294 (class register_operation) <get_name>: New method.
3295 (class equal_operation): No longer a typedef, now a subclass.
3296 (class unop_memval_operation) <get_type>: New method.
3297 (class assign_operation) <get_lhs>: New method.
3298 (class unop_cast_operation) <get_type>: New method.
3299 * eval.c (evaluate_expression, evaluate_type)
3300 (evaluate_subexpression_type): Update.
3301 (fetch_subexp_value): Add "op" parameter.
3302 (parse_and_eval_type): Update.
3303 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3304 * breakpoint.c (update_watchpoint, watchpoint_check)
3305 (watchpoint_exp_is_const, watch_command_1): Update.
3306 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3307 Update.
3308
b0f9164c
TT
33092021-03-08 Tom Tromey <tom@tromey.com>
3310
3311 * ada-lang.c (ada_value_binop): Do not use op_string.
3312
a88c4354
TT
33132021-03-08 Tom Tromey <tom@tromey.com>
3314
3315 * expprint.c (dump_for_expression): New overload.
3316 * expop.h (check_objfile, dump_for_expression): Declare new
3317 overloads.
3318 * ada-lang.c (check_objfile): New overload.
3319 (assign_component, ada_aggregate_component::uses_objfile)
3320 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3321 (ada_aggregate_component::assign_aggregate)
3322 (ada_positional_component::uses_objfile)
3323 (ada_positional_component::dump, ada_positional_component::assign)
3324 (ada_discrete_range_association::uses_objfile)
3325 (ada_discrete_range_association::dump)
3326 (ada_discrete_range_association::assign)
3327 (ada_name_association::uses_objfile, ada_name_association::dump)
3328 (ada_name_association::assign)
3329 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3330 (ada_choices_component::assign)
3331 (ada_others_component::uses_objfile, ada_others_component::dump)
3332 (ada_others_component::assign, ada_assign_operation::evaluate):
3333 New methods.
3334 * ada-exp.h (ada_string_operation) <get_name>: New method.
3335 (class ada_assign_operation): New.
3336 (class ada_component): New.
3337 (ada_component_up): New typedef.
3338 (class ada_aggregate_operation, class ada_aggregate_component)
3339 (class ada_positional_component, class ada_others_component)
3340 (class ada_association): New.
3341 (ada_association_up): New typedef.
3342 (class ada_choices_component)
3343 (class ada_discrete_range_association)
3344 (class ada_name_association): New.
3345
d8a4ed8a
TT
33462021-03-08 Tom Tromey <tom@tromey.com>
3347
3348 * ada-lang.c (ada_var_value_operation::resolve)
3349 (ada_funcall_operation::resolve)
3350 (ada_ternop_slice_operation::resolve): New methods.
3351 * ada-exp.h (struct ada_resolvable): New.
3352 (class ada_var_value_operation): Derive from ada_resolvable.
3353 <get_block, resolve>: New methods.
3354 (class ada_funcall_operation): Derive from ada_resolvable.
3355 <resolve>: New method.
3356 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3357 <resolve>: New method.
3358
efe3af2f
TT
33592021-03-08 Tom Tromey <tom@tromey.com>
3360
3361 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3362 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3363 method.
3364 (class ada_funcall_operation): New.
3365
ebc06ad8
TT
33662021-03-08 Tom Tromey <tom@tromey.com>
3367
3368 * ada-lang.c (ada_structop_operation::evaluate): New method.
3369 * ada-exp.h (class ada_structop_operation): New.
3370
e8c33fa1
TT
33712021-03-08 Tom Tromey <tom@tromey.com>
3372
3373 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3374 * ada-exp.h (class ada_unop_ind_operation): New.
3375
065ec826
TT
33762021-03-08 Tom Tromey <tom@tromey.com>
3377
3378 * ada-lang.c (ada_binop_exp): No longer static.
3379 * ada-exp.h (ada_binop_exp_operation): New typedef.
3380
9e99f48f
TT
33812021-03-08 Tom Tromey <tom@tromey.com>
3382
3383 * ada-lang.c (ada_val_atr): No longer static.
3384 (ada_atr_val_operation::evaluate): New method.
3385 * ada-exp.h (class ada_atr_val_operation): New.
3386
7631cf6c
TT
33872021-03-08 Tom Tromey <tom@tromey.com>
3388
3389 * ada-lang.c (ada_pos_atr): No longer static.
3390 * ada-exp.h (ada_pos_operation): New typedef.
3391
7992accc
TT
33922021-03-08 Tom Tromey <tom@tromey.com>
3393
3394 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3395 parameters.
3396 (ada_evaluate_subexp): Use it.
3397
6ad3b8bf
TT
33982021-03-08 Tom Tromey <tom@tromey.com>
3399
3400 * ada-lang.c (ada_binop_minmax): No longer static.
3401 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3402 New typedefs.
3403
3f4a0053
TT
34042021-03-08 Tom Tromey <tom@tromey.com>
3405
3406 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3407 New method.
3408 * ada-exp.h (class ada_var_msym_value_operation): New.
3409
99a3b1e7
TT
34102021-03-08 Tom Tromey <tom@tromey.com>
3411
3412 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3413 (ada_var_value_operation::evaluate): New methods.
3414 * ada-exp.h (class ada_var_value_operation): New.
3415
60fa02ca
TT
34162021-03-08 Tom Tromey <tom@tromey.com>
3417
3418 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3419 * ada-exp.h (class ada_unop_atr_operation): New.
3420
82c3886e
TT
34212021-03-08 Tom Tromey <tom@tromey.com>
3422
3423 * ada-lang.c (ada_binop_in_bounds): No longer static.
3424 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3425
1b1ebfab
TT
34262021-03-08 Tom Tromey <tom@tromey.com>
3427
3428 * ada-lang.c (ada_ternop_slice): No longer static.
3429 * ada-exp.h (class ada_ternop_slice_operation): New.
3430
039e4b76
TT
34312021-03-08 Tom Tromey <tom@tromey.com>
3432
3433 * ada-exp.h (ada_bitwise_operation): New template class.
3434 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3435 (ada_bitwise_xor_operation): New typedefs.
3436
6e8fb7b7
TT
34372021-03-08 Tom Tromey <tom@tromey.com>
3438
3439 * ada-lang.c (ada_equal_binop): No longer static.
3440 * ada-exp.h (class ada_binop_equal_operation): New.
3441
d9e7db06
TT
34422021-03-08 Tom Tromey <tom@tromey.com>
3443
3444 * ada-lang.c (ada_mult_binop): No longer static.
3445 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3446 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3447
73796c73
TT
34482021-03-08 Tom Tromey <tom@tromey.com>
3449
3450 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3451 * ada-exp.h (class ada_binop_addsub_operation): New.
3452
cd9a3148
TT
34532021-03-08 Tom Tromey <tom@tromey.com>
3454
3455 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3456 (ada_resolve_variable): Declare.
3457 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3458 (ada_resolve_variable): New functions.
3459 (resolve_subexp): Update.
3460
cf12b17f
TT
34612021-03-08 Tom Tromey <tom@tromey.com>
3462
3463 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3464 method.
3465 * c-exp.h (class opencl_ternop_cond_operation): New.
3466
944fd3b8
TT
34672021-03-08 Tom Tromey <tom@tromey.com>
3468
3469 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3470 method.
3471 * c-exp.h (class opencl_logical_binop_operation): New.
3472
33b79214
TT
34732021-03-08 Tom Tromey <tom@tromey.com>
3474
3475 * opencl-lang.c (opencl_structop_operation::evaluate): New
3476 method.
3477 * c-exp.h (class opencl_structop_operation): New.
3478
2492ba36
TT
34792021-03-08 Tom Tromey <tom@tromey.com>
3480
3481 * opencl-lang.c (opencl_logical_not): No longer static. Change
3482 parameters.
3483 (evaluate_subexp_opencl): Update.
3484 * c-exp.h (opencl_notequal_operation): New typedef.
3485
a88c3c8d
TT
34862021-03-08 Tom Tromey <tom@tromey.com>
3487
3488 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3489 static. Change parameters.
3490 (eval_opencl_assign): No longer static. Add "op" parameter.
3491 (evaluate_subexp_opencl): Update.
3492 * c-exp.h (opencl_binop_operation): New template class.
3493 (opencl_assign_operation, opencl_equal_operation)
3494 (opencl_notequal_operation, opencl_less_operation)
3495 (opencl_gtr_operation, opencl_geq_operation)
3496 (opencl_leq_operation): New typedefs.
3497
e9677704
TT
34982021-03-08 Tom Tromey <tom@tromey.com>
3499
3500 * opencl-lang.c (opencl_value_cast): No longer static.
3501 * c-exp.h (opencl_cast_type_operation): New typedef.
3502
f403a4e4
TT
35032021-03-08 Tom Tromey <tom@tromey.com>
3504
3505 * f-exp.h (eval_op_f_allocated): Declare.
3506 (fortran_allocated_operation): New typedef.
3507 * f-lang.c (eval_op_f_allocated): No longer static.
3508
eb4c9271
TT
35092021-03-08 Tom Tromey <tom@tromey.com>
3510
3511 * f-lang.c (eval_op_f_associated): New functions.
3512 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3513 typedefs.
3514
58a76c72
TT
35152021-03-08 Tom Tromey <tom@tromey.com>
3516
3517 * f-lang.c (fortran_bound_1arg::evaluate)
3518 (fortran_bound_2arg::evaluate): New methods.
3519 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3520 New.
3521
2f98abe1
TT
35222021-03-08 Tom Tromey <tom@tromey.com>
3523
3524 * expop.h (class unop_addr_operation) <get_expression>: New
3525 method.
3526 * f-lang.c (fortran_undetermined::value_subarray)
3527 (fortran_undetermined::evaluate): New methods.
3528 (fortran_prepare_argument): New overload.
3529 * f-exp.h (class fortran_range_operation)
3530 (class fortran_undetermined): New classes.
3531
638fd74a
TT
35322021-03-08 Tom Tromey <tom@tromey.com>
3533
3534 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3535 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3536 method.
3537
a00b7254
TT
35382021-03-08 Tom Tromey <tom@tromey.com>
3539
3540 * expression.h (class operation) <evaluate_funcall>: New methods.
3541 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3542 (class var_value_operation) <evaluate_funcall>: New method.
3543 (class structop_base_operation) <evaluate_funcall>: New method.
3544 (class var_msym_value_operation) <evaluate_funcall>: New method.
3545 (class structop_member_base): New class.
3546 (class structop_member_operation): Derive from
3547 structop_member_base.
3548 (class structop_mptr_operation): Derive from
3549 structop_member_base.
3550 (class funcall_operation): New class.
3551 * eval.c (operation::evaluate_funcall)
3552 (var_value_operation::evaluate_funcall)
3553 (scope_operation::evaluate_funcall)
3554 (structop_member_base::evaluate_funcall)
3555 (structop_base_operation::evaluate_funcall): New methods.
3556
1c02eb30
TT
35572021-03-08 Tom Tromey <tom@tromey.com>
3558
3559 * expop.h (class array_operation): New.
3560 * eval.c (array_operation::evaluate_struct_tuple)
3561 (array_operation::evaluate): New methods.
3562
e4479080
TT
35632021-03-08 Tom Tromey <tom@tromey.com>
3564
3565 * expop.h (class adl_func_operation): New.
3566 * eval.c (adl_func_operation::evaluate): New method.
3567
95d49dfb
TT
35682021-03-08 Tom Tromey <tom@tromey.com>
3569
3570 * ada-lang.c (ada_unop_in_range): No longer static.
3571 * ada-exp.h (class ada_unop_range_operation): New.
3572
7c15d377
TT
35732021-03-08 Tom Tromey <tom@tromey.com>
3574
3575 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3576 No longer static.
3577 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3578 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3579
5019124b
TT
35802021-03-08 Tom Tromey <tom@tromey.com>
3581
3582 * expop.h (class logical_and_operation)
3583 (class logical_or_operation): New.
3584 * eval.c (logical_and_operation::evaluate)
3585 (logical_or_operation::evaluate): New methods.
3586 * ax-gdb.c (logical_and_operation::do_generate_ax)
3587 (logical_or_operation::do_generate_ax): New methods.
3588
2bc9b40c
TT
35892021-03-08 Tom Tromey <tom@tromey.com>
3590
3591 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3592 static.
3593 * m2-exp.h: New file.
3594
5947d337
TT
35952021-03-08 Tom Tromey <tom@tromey.com>
3596
3597 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3598 * rust-exp.h (class rust_aggregate_operation): New.
3599
e4407a20
TT
36002021-03-08 Tom Tromey <tom@tromey.com>
3601
3602 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3603 No longer static.
3604 * rust-exp.h (class rust_struct_anon): New.
3605 (class rust_structop): New.
3606
9db6b6dd
TT
36072021-03-08 Tom Tromey <tom@tromey.com>
3608
3609 * rust-lang.c (rust_range): No longer static.
3610 * rust-exp.h (class rust_range_operation): New.
3611
6ce1ad67
TT
36122021-03-08 Tom Tromey <tom@tromey.com>
3613
3614 * rust-lang.c (rust_subscript): No longer static.
3615 * rust-exp.h (class rust_subscript_operation): New.
3616
11dd3dce
TT
36172021-03-08 Tom Tromey <tom@tromey.com>
3618
3619 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3620 parameter.
3621 (rust_evaluate_subexp): Update.
3622 * rust-exp.h (class rust_unop_ind_operation): New.
3623
6fab4359
TT
36242021-03-08 Tom Tromey <tom@tromey.com>
3625
3626 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3627 longer static. Add "opcode" parameter.
3628 (rust_evaluate_subexp): Update.
3629 * rust-exp.h: New file.
3630
9dcd3e29
TT
36312021-03-08 Tom Tromey <tom@tromey.com>
3632
3633 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3634 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3635 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3636 (evaluate_subexp_f): Update.
3637 * f-exp.h: New file.
3638
fc715eb2
TT
36392021-03-08 Tom Tromey <tom@tromey.com>
3640
3641 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3642 * ada-exp.h (class ada_ternop_range_operation): New.
3643
cc6bd32e
TT
36442021-03-08 Tom Tromey <tom@tromey.com>
3645
3646 * ada-lang.c (ada_qual_operation::evaluate): New method.
3647 * ada-exp.h (class ada_qual_operation): New.
3648
42fecb61
TT
36492021-03-08 Tom Tromey <tom@tromey.com>
3650
3651 * ada-lang.c (ada_string_operation::evaluate): New method.
3652 * ada-exp.h (class ada_string_operation): New.
3653
03070ee9
TT
36542021-03-08 Tom Tromey <tom@tromey.com>
3655
3656 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3657 * ada-exp.h: New file.
3658
821e72d7
TT
36592021-03-08 Tom Tromey <tom@tromey.com>
3660
3661 * expop.h (class multi_subscript_operation): New.
3662 * eval.c (multi_subscript_operation::evaluate): New method.
3663
085734dd
TT
36642021-03-08 Tom Tromey <tom@tromey.com>
3665
3666 * eval.c (objc_msgcall_operation::evaluate): New method.
3667 * c-exp.h (class objc_msgcall_operation): New.
3668
e82a5afc
TT
36692021-03-08 Tom Tromey <tom@tromey.com>
3670
3671 * expop.h (class var_value_operation): New.
3672 * eval.c (var_value_operation::evaluate)
3673 (var_value_operation::evaluate_for_address)
3674 (var_value_operation::evaluate_with_coercion)
3675 (var_value_operation::evaluate_for_sizeof)
3676 (var_value_operation::evaluate_for_cast): New methods.
3677 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3678
d9ad79d8
TT
36792021-03-08 Tom Tromey <tom@tromey.com>
3680
3681 * expop.h (cxx_cast_ftype): New typedef.
3682 (cxx_cast_operation): New template.
3683 (dynamic_cast_operation, reinterpret_cast_operation): New
3684 typedefs.
3685
292382f4
TT
36862021-03-08 Tom Tromey <tom@tromey.com>
3687
3688 * expop.h (class unop_cast_type_operation): New.
3689 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3690 method.
3691
165a813a
TT
36922021-03-08 Tom Tromey <tom@tromey.com>
3693
3694 * expop.h (class unop_cast_operation): New.
3695 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3696
e5946e16
TT
36972021-03-08 Tom Tromey <tom@tromey.com>
3698
3699 * expop.h (class assign_modify_operation): New.
3700 * eval.c (eval_binop_assign_modify): No longer static.
3701 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3702
40786782
TT
37032021-03-08 Tom Tromey <tom@tromey.com>
3704
3705 * expop.h (class assign_operation): New.
3706 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3707
44b675c8
TT
37082021-03-08 Tom Tromey <tom@tromey.com>
3709
3710 * expop.h (class type_instance_operation): New.
3711 * eval.c (type_instance_operation::evaluate): New method.
3712
f6b42326
TT
37132021-03-08 Tom Tromey <tom@tromey.com>
3714
3715 * expop.h (class op_this_operation): New.
3716 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3717
cbc18219
TT
37182021-03-08 Tom Tromey <tom@tromey.com>
3719
3720 * expop.h (class unop_memval_operation)
3721 (class unop_memval_type_operation): New.
3722 * eval.c (eval_op_memval): No longer static.
3723 (unop_memval_operation::evaluate_for_address)
3724 (unop_memval_type_operation::evaluate_for_address)
3725 (unop_memval_operation::evaluate_for_sizeof)
3726 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3727 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3728 (unop_memval_type_operation::do_generate_ax): New methods.
3729
ae4bb61e
TT
37302021-03-08 Tom Tromey <tom@tromey.com>
3731
3732 * expop.h (class unop_alignof_operation): New.
3733 * eval.c (eval_op_alignof): No longer static.
3734
85d23bda
TT
37352021-03-08 Tom Tromey <tom@tromey.com>
3736
3737 * expop.h (class unop_sizeof_operation): New.
3738 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3739
14aff815
TT
37402021-03-08 Tom Tromey <tom@tromey.com>
3741
3742 * expop.h (class unop_addr_operation): New.
3743 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3744
929f3aa7
TT
37452021-03-08 Tom Tromey <tom@tromey.com>
3746
3747 * expop.h (class typeid_operation): New.
3748
0af8829e
TT
37492021-03-08 Tom Tromey <tom@tromey.com>
3750
3751 * expop.h (class decltype_operation): New.
3752
4efc574c
TT
37532021-03-08 Tom Tromey <tom@tromey.com>
3754
3755 * expop.h (class typeof_operation): New.
3756
5b5f5140
TT
37572021-03-08 Tom Tromey <tom@tromey.com>
3758
3759 * expop.h (class type_operation): New.
3760 * eval.c (eval_op_type): No longer static.
3761
876469ff
TT
37622021-03-08 Tom Tromey <tom@tromey.com>
3763
3764 * expop.h (class unop_ind_base_operation)
3765 (class unop_ind_operation): New.
3766 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3767 (unop_ind_base_operation::evaluate_for_address)
3768 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3769 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3770
6d89e296
TT
37712021-03-08 Tom Tromey <tom@tromey.com>
3772
3773 * expop.h (unop_incr_operation): New template.
3774 (preinc_operation, predec_operation, postinc_operation)
3775 (postdec_operation): New typedefs.
3776 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3777 (eval_op_postdec): No longer static.
3778
9307d17b
TT
37792021-03-08 Tom Tromey <tom@tromey.com>
3780
3781 * expop.h (unary_ftype): New typedef.
3782 (unop_operation, usual_ax_binop_operation): New templates.
3783 (unary_plus_operation, unary_neg_operation)
3784 (unary_complement_operation, unary_logical_not_operation): New
3785 typedefs.
3786 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3787 (eval_op_lognot): No longer static.
3788 * ax-gdb.c (gen_expr_unop): New function.
3789
ae64ba58
TT
37902021-03-08 Tom Tromey <tom@tromey.com>
3791
3792 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3793
d4eff4c1
TT
37942021-03-08 Tom Tromey <tom@tromey.com>
3795
3796 * expop.h (class repeat_operation): New.
3797 * eval.c (eval_op_repeat): No longer static. Remove "op"
3798 parameter.
3799 (evaluate_subexp_standard): Update.
3800 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3801
46916f2b
TT
38022021-03-08 Tom Tromey <tom@tromey.com>
3803
3804 * expop.h (class comparison_operation): New.
3805 (equal_operation, notequal_operation, less_operation)
3806 (gtr_operation, geq_operation, leq_operation): New typedefs.
3807 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3808 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3809
224d6424
TT
38102021-03-08 Tom Tromey <tom@tromey.com>
3811
3812 * expop.h (class subscript_operation): New.
3813 * eval.c (eval_op_subscript): No longer static.
3814
373907ff
TT
38152021-03-08 Tom Tromey <tom@tromey.com>
3816
3817 * expop.h (class binop_operation, class usual_ax_binop_operation):
3818 New.
3819 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3820 (div_operation, rem_operation, lsh_operation, rsh_operation)
3821 (bitwise_and_operation, bitwise_ior_operation)
3822 (bitwise_xor_operation): New typedefs.
3823 * eval.c (eval_op_binary): No longer static.
3824
5133d78b
TT
38252021-03-08 Tom Tromey <tom@tromey.com>
3826
3827 * expop.h (class sub_operation): New.
3828 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3829 (evaluate_subexp_standard): Update.
3830
a94323b6
TT
38312021-03-08 Tom Tromey <tom@tromey.com>
3832
3833 * expop.h (class add_operation): New.
3834 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3835 (evaluate_subexp_standard): Update.
3836
e51e26a0
TT
38372021-03-08 Tom Tromey <tom@tromey.com>
3838
3839 * expop.h (class concat_operation): New.
3840 * eval.c (eval_op_concat): No longer static. Remove "op"
3841 parameter.
3842 (evaluate_subexp_standard): Update.
3843
07f724a8
TT
38442021-03-08 Tom Tromey <tom@tromey.com>
3845
3846 * expop.h (class structop_member_operation)
3847 (class structop_mptr_operation): New.
3848 * eval.c (eval_op_member): No longer static.
3849
ab0609be
TT
38502021-03-08 Tom Tromey <tom@tromey.com>
3851
3852 * expop.h (class structop_ptr_operation): New.
3853 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3854 parameter.
3855
808b22cf
TT
38562021-03-08 Tom Tromey <tom@tromey.com>
3857
3858 * expop.h (class structop_base_operation)
3859 (class structop_operation): New.
3860 * eval.c (eval_op_structop_struct): No longer static.
3861
8cfd3e95
TT
38622021-03-08 Tom Tromey <tom@tromey.com>
3863
3864 * expop.h (class complex_operation): New.
3865
09db3700
TT
38662021-03-08 Tom Tromey <tom@tromey.com>
3867
3868 * eval.c (eval_op_objc_selector): No longer static.
3869 * c-exp.h (class objc_selector_operation): New.
3870
06dc61b9
TT
38712021-03-08 Tom Tromey <tom@tromey.com>
3872
3873 * eval.c: Include c-exp.h.
3874 * c-exp.h (class objc_nsstring_operation): New.
3875
72d0a711
TT
38762021-03-08 Tom Tromey <tom@tromey.com>
3877
3878 * c-lang.c (c_string_operation::evaluate): New method.
3879 * c-exp.h: New file.
3880
9186293f
TT
38812021-03-08 Tom Tromey <tom@tromey.com>
3882
3883 * expop.h (class ternop_cond_operation): New.
3884 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3885
1594e0bb
TT
38862021-03-08 Tom Tromey <tom@tromey.com>
3887
3888 * expop.h (class ternop_slice_operation): New.
3889 * eval.c (eval_op_ternop): No longer static.
3890
b50db09f
TT
38912021-03-08 Tom Tromey <tom@tromey.com>
3892
3893 * expop.h (class string_operation): New.
3894 * eval.c (eval_op_string): No longer static.
3895
e6e01e16
TT
38962021-03-08 Tom Tromey <tom@tromey.com>
3897
3898 * expop.h (class internalvar_operation): New.
3899 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3900
e6985c5e
TT
39012021-03-08 Tom Tromey <tom@tromey.com>
3902
3903 * expop.h (class bool_operation): New.
3904
55bdbff8
TT
39052021-03-08 Tom Tromey <tom@tromey.com>
3906
3907 * expop.h (class register_operation): New.
3908 * eval.c (eval_op_register): No longer static.
3909 * ax-gdb.c (register_operation::do_generate_ax): New method.
3910
247d935b
TT
39112021-03-08 Tom Tromey <tom@tromey.com>
3912
3913 * expop.h (class last_operation): New.
3914
17679395
TT
39152021-03-08 Tom Tromey <tom@tromey.com>
3916
3917 * expop.h (class func_static_var_operation): New.
3918 * eval.c (eval_op_func_static_var): No longer static.
3919
b5cc3923
TT
39202021-03-08 Tom Tromey <tom@tromey.com>
3921
3922 * expop.h (class var_entry_value_operation): New.
3923 * eval.c (eval_op_var_entry_value): No longer static.
3924
0c8effa3
TT
39252021-03-08 Tom Tromey <tom@tromey.com>
3926
3927 * expression.h (class operation) <set_outermost>: New method.
3928 * expop.h (class var_msym_value_operation): New.
3929 * eval.c (eval_op_var_msym_value): No longer static.
3930 (var_msym_value_operation::evaluate_for_address)
3931 (var_msym_value_operation::evaluate_for_sizeof)
3932 (var_msym_value_operation::evaluate_for_cast): New methods.
3933 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3934 method.
3935
d336c29e
TT
39362021-03-08 Tom Tromey <tom@tromey.com>
3937
3938 * expop.h (class long_const_operation): New.
3939 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3940
d5ab122c
TT
39412021-03-08 Tom Tromey <tom@tromey.com>
3942
3943 * expop.h (class scope_operation): New.
3944 * eval.c (eval_op_scope): No longer static.
3945 (scope_operation::evaluate_for_address): New method.
3946 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3947
cae26a0c
TT
39482021-03-08 Tom Tromey <tom@tromey.com>
3949
3950 * expprint.c (float_const_operation::dump): New method.
3951 * expop.h (float_data): New typedef.
3952 (class float_const_operation): New.
3953
75f9892d
TT
39542021-03-08 Tom Tromey <tom@tromey.com>
3955
3956 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3957 * ax-gdb.c (gen_expr_binop): New function.
3958 (gen_expr_structop): Likewise.
3959
de401988
TT
39602021-03-08 Tom Tromey <tom@tromey.com>
3961
3962 * expprint.c (expr::dump_for_expression): New functions.
3963 * expop.h (dump_for_expression): New overloads.
3964 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3965 Update.
3966
e2803273
TT
39672021-03-08 Tom Tromey <tom@tromey.com>
3968
3969 * expression.h (expr::operation): New class.
3970 (expr::make_operation): New function.
3971 (expr::operation_up): New typedef.
3972 * expop.h: New file.
3973 * eval.c (operation::evaluate_for_cast)
3974 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3975 New methods.
3976 * ax-gdb.c (operation::generate_ax): New method.
3977
e18c58f2
TT
39782021-03-08 Tom Tromey <tom@tromey.com>
3979
3980 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3981 (gen_expr_binop_rest): New overload.
3982
c0d7ed8c
TT
39832021-03-08 Tom Tromey <tom@tromey.com>
3984
3985 * eval.c (eval_multi_subscript): New function.
3986 (evaluate_subexp_standard): Use it.
3987
dd5fd283
TT
39882021-03-08 Tom Tromey <tom@tromey.com>
3989
3990 * ada-lang.c (ada_binop_exp): New function.
3991 (ada_evaluate_subexp): Use it.
3992
3848abd6
TT
39932021-03-08 Tom Tromey <tom@tromey.com>
3994
3995 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3996 parameters.
3997 (ada_evaluate_subexp): Use it.
3998
38dc70cf
TT
39992021-03-08 Tom Tromey <tom@tromey.com>
4000
4001 * ada-lang.c (ada_binop_minmax): New function.
4002 (ada_evaluate_subexp): Use it.
4003
b84564fc
TT
40042021-03-08 Tom Tromey <tom@tromey.com>
4005
4006 * ada-lang.c (ada_unop_atr): New function.
4007 (ada_evaluate_subexp): Use it.
4008
b467efaa
TT
40092021-03-08 Tom Tromey <tom@tromey.com>
4010
4011 * ada-lang.c (ada_binop_in_bounds): New function.
4012 (ada_evaluate_subexp): Use it.
4013
5ce19db8
TT
40142021-03-08 Tom Tromey <tom@tromey.com>
4015
4016 * ada-lang.c (ada_ternop_slice): New function.
4017 (ada_evaluate_subexp): Use it.
4018
214b13ac
TT
40192021-03-08 Tom Tromey <tom@tromey.com>
4020
4021 * ada-lang.c (ada_equal_binop): New function.
4022 (ada_evaluate_subexp): Use it.
4023
faa1dfd7
TT
40242021-03-08 Tom Tromey <tom@tromey.com>
4025
4026 * ada-lang.c (ada_mult_binop): New function.
4027 (ada_evaluate_subexp): Use it.
4028
d05e24e6
TT
40292021-03-08 Tom Tromey <tom@tromey.com>
4030
4031 * ada-lang.c (ada_abs): New function.
4032 (ada_evaluate_subexp): Use it.
4033
68c75735
TT
40342021-03-08 Tom Tromey <tom@tromey.com>
4035
4036 * ada-lang.c (ada_atr_size): New function.
4037 (ada_evaluate_subexp): Use it.
4038
020dbabe
TT
40392021-03-08 Tom Tromey <tom@tromey.com>
4040
4041 * ada-lang.c (ada_atr_tag): New function.
4042 (ada_evaluate_subexp): Use it.
4043
7efc87ff
TT
40442021-03-08 Tom Tromey <tom@tromey.com>
4045
4046 * ada-lang.c (ada_unop_in_range): New function.
4047 (ada_evaluate_subexp): Use it.
4048
82390ab8
TT
40492021-03-08 Tom Tromey <tom@tromey.com>
4050
4051 * ada-lang.c (ada_unop_neg): New function.
4052 (ada_evaluate_subexp): Use it.
4053
62d4bd94
TT
40542021-03-08 Tom Tromey <tom@tromey.com>
4055
4056 * ada-lang.c (eval_ternop_in_range): New function.
4057 (ada_evaluate_subexp): Use it.
4058
3634f669
TT
40592021-03-08 Tom Tromey <tom@tromey.com>
4060
4061 * opencl-lang.c (eval_opencl_assign): New function.
4062 (evaluate_subexp_opencl): Use it.
4063
5e80600e
TT
40642021-03-08 Tom Tromey <tom@tromey.com>
4065
4066 * eval.c (eval_op_objc_msgcall): New function.
4067 (evaluate_subexp_standard): Use it.
4068
fb5ba2ab
TT
40692021-03-08 Tom Tromey <tom@tromey.com>
4070
4071 * eval.c (eval_binop_assign_modify): New function.
4072 (evaluate_subexp_standard): Use it.
4073
a49881f7
TT
40742021-03-08 Tom Tromey <tom@tromey.com>
4075
4076 * m2-lang.c (eval_op_m2_subscript): New function.
4077 (evaluate_subexp_modula2): Use it.
4078
41bdced5
TT
40792021-03-08 Tom Tromey <tom@tromey.com>
4080
4081 * m2-lang.c (eval_op_m2_high): New function.
4082 (evaluate_subexp_modula2): Use it.
4083
13ea014a
TT
40842021-03-08 Tom Tromey <tom@tromey.com>
4085
4086 * eval.c (evaluate_subexp_for_address_base): New function.
4087 (evaluate_subexp_for_address): Use it.
4088 (evaluate_subexp_for_sizeof_base): New function.
4089 (evaluate_subexp_for_sizeof): Use it.
4090
1fa41fc7
TT
40912021-03-08 Tom Tromey <tom@tromey.com>
4092
4093 * rust-lang.c (eval_op_rust_structop): New function.
4094 (rust_evaluate_subexp): Use it.
4095
575cae23
TT
40962021-03-08 Tom Tromey <tom@tromey.com>
4097
4098 * rust-lang.c (eval_op_rust_struct_anon): New function.
4099 (rust_evaluate_subexp): Use it.
4100
05104233
TT
41012021-03-08 Tom Tromey <tom@tromey.com>
4102
4103 * rust-lang.c (eval_op_rust_array): New function.
4104 (rust_evaluate_subexp): Use it.
4105
6fa9831f
TT
41062021-03-08 Tom Tromey <tom@tromey.com>
4107
4108 * rust-lang.c (eval_op_rust_complement): New function.
4109 (rust_evaluate_subexp): Use it.
4110
d123f9e4
TT
41112021-03-08 Tom Tromey <tom@tromey.com>
4112
4113 * rust-lang.c (eval_op_rust_ind): New function.
4114 (rust_evaluate_subexp): Use it.
4115
984af2cb
TT
41162021-03-08 Tom Tromey <tom@tromey.com>
4117
4118 * rust-lang.c (rust_subscript): Change parameters.
4119 (rust_evaluate_subexp): Update.
4120
d148f803
TT
41212021-03-08 Tom Tromey <tom@tromey.com>
4122
4123 * rust-lang.c (rust_range): Change parameters.
4124 (rust_evaluate_subexp): Update.
4125
9cbd1c20
TT
41262021-03-08 Tom Tromey <tom@tromey.com>
4127
4128 * f-lang.c (eval_op_f_allocated): New function.
4129 (evaluate_subexp_f): Use it.
4130
3c18c49c
TT
41312021-03-08 Tom Tromey <tom@tromey.com>
4132
4133 * f-lang.c (fortran_require_array): New function.
4134 (evaluate_subexp_f): Use it.
4135
216f6fcb
TT
41362021-03-08 Tom Tromey <tom@tromey.com>
4137
4138 * f-lang.c (eval_op_f_kind): New function.
4139 (evaluate_subexp_f): Use it.
4140
00f2db6f
TT
41412021-03-08 Tom Tromey <tom@tromey.com>
4142
4143 * f-lang.c (eval_op_f_cmplx): New function.
4144 (evaluate_subexp_f): Use it.
4145
93b2b5fa
TT
41462021-03-08 Tom Tromey <tom@tromey.com>
4147
4148 * f-lang.c (eval_op_f_modulo): New function.
4149 (evaluate_subexp_f): Use it.
4150
9f1a1f3c
TT
41512021-03-08 Tom Tromey <tom@tromey.com>
4152
4153 * f-lang.c (eval_op_f_floor): New function.
4154 (evaluate_subexp_f): Use it.
4155
3dc41f3c
TT
41562021-03-08 Tom Tromey <tom@tromey.com>
4157
4158 * f-lang.c (eval_op_f_ceil): New function.
4159 (evaluate_subexp_f): Use it.
4160
e08109f2
TT
41612021-03-08 Tom Tromey <tom@tromey.com>
4162
4163 * f-lang.c (eval_op_f_mod): New function.
4164 (evaluate_subexp_f): Use it.
4165
cc05c68e
TT
41662021-03-08 Tom Tromey <tom@tromey.com>
4167
4168 * f-lang.c (eval_op_f_abs): New function.
4169 (evaluate_subexp_f): Use it.
4170
aec95807
TT
41712021-03-08 Tom Tromey <tom@tromey.com>
4172
4173 * eval.c (eval_op_type): New function.
4174 (evaluate_subexp_standard): Use it.
4175
a220ead5
TT
41762021-03-08 Tom Tromey <tom@tromey.com>
4177
4178 * eval.c (eval_op_postdec): New function.
4179 (evaluate_subexp_standard): Use it.
4180
abffe116
TT
41812021-03-08 Tom Tromey <tom@tromey.com>
4182
4183 * eval.c (eval_op_postinc): New function.
4184 (evaluate_subexp_standard): Use it.
4185
9e1361b7
TT
41862021-03-08 Tom Tromey <tom@tromey.com>
4187
4188 * eval.c (eval_op_predec): New file.
4189 (evaluate_subexp_standard): Use it.
4190
00f50884
TT
41912021-03-08 Tom Tromey <tom@tromey.com>
4192
4193 * eval.c (eval_op_preinc): New function.
4194 (evaluate_subexp_standard): Use it.
4195
3aef2a07
TT
41962021-03-08 Tom Tromey <tom@tromey.com>
4197
4198 * eval.c (eval_op_memval): New function.
4199 (evaluate_subexp_standard): Use it.
4200
acee9468
TT
42012021-03-08 Tom Tromey <tom@tromey.com>
4202
4203 * eval.c (eval_op_alignof): New function.
4204 (evaluate_subexp_standard): Use it.
4205
786f70ee
TT
42062021-03-08 Tom Tromey <tom@tromey.com>
4207
4208 * eval.c (eval_op_ind): New function.
4209 (evaluate_subexp_standard): Use it.
4210
24338fb9
TT
42112021-03-08 Tom Tromey <tom@tromey.com>
4212
4213 * eval.c (eval_op_lognot): New function.
4214 (evaluate_subexp_standard): Use it.
4215
1f09ec81
TT
42162021-03-08 Tom Tromey <tom@tromey.com>
4217
4218 * eval.c (eval_op_complement): New function.
4219 (evaluate_subexp_standard): Use it.
4220
606d105f
TT
42212021-03-08 Tom Tromey <tom@tromey.com>
4222
4223 * eval.c (eval_op_neg): New function.
4224 (evaluate_subexp_standard): Use it.
4225
39f288be
TT
42262021-03-08 Tom Tromey <tom@tromey.com>
4227
4228 * eval.c (eval_op_plus): New function.
4229 (evaluate_subexp_standard): Use it.
4230
eed70b1c
TT
42312021-03-08 Tom Tromey <tom@tromey.com>
4232
4233 * eval.c (eval_op_repeat): New function.
4234 (evaluate_subexp_standard): Use it.
4235
60cdd487
TT
42362021-03-08 Tom Tromey <tom@tromey.com>
4237
4238 * eval.c (eval_op_leq): New function.
4239 (evaluate_subexp_standard): Use it.
4240
96e3efd9
TT
42412021-03-08 Tom Tromey <tom@tromey.com>
4242
4243 * eval.c (eval_op_geq): New function.
4244 (evaluate_subexp_standard): Use it.
4245
1f78d732
TT
42462021-03-08 Tom Tromey <tom@tromey.com>
4247
4248 * eval.c (eval_op_gtr): New function.
4249 (evaluate_subexp_standard): Use it.
4250
6cad1349
TT
42512021-03-08 Tom Tromey <tom@tromey.com>
4252
4253 * eval.c (eval_op_less): New function.
4254 (evaluate_subexp_standard): Use it.
4255
1fcb3559
TT
42562021-03-08 Tom Tromey <tom@tromey.com>
4257
4258 * eval.c (eval_op_notequal): New function.
4259 (evaluate_subexp_standard): Use it.
4260
0cc96de8
TT
42612021-03-08 Tom Tromey <tom@tromey.com>
4262
4263 * eval.c (eval_op_equal): New function.
4264 (evaluate_subexp_standard): Use it.
4265
288d26bc
TT
42662021-03-08 Tom Tromey <tom@tromey.com>
4267
4268 * eval.c (eval_op_subscript): New function.
4269 (evaluate_subexp_standard): Use it.
4270
7cdcdd02
TT
42712021-03-08 Tom Tromey <tom@tromey.com>
4272
4273 * eval.c (eval_op_binary): New function.
4274 (evaluate_subexp_standard): Use it.
4275
d9790e22
TT
42762021-03-08 Tom Tromey <tom@tromey.com>
4277
4278 * eval.c (eval_op_sub): New function.
4279 (evaluate_subexp_standard): Use it.
4280
aedaf9ac
TT
42812021-03-08 Tom Tromey <tom@tromey.com>
4282
4283 * eval.c (eval_op_add): New function.
4284 (evaluate_subexp_standard): Use it.
4285
b7a96ed2
TT
42862021-03-08 Tom Tromey <tom@tromey.com>
4287
4288 * eval.c (eval_op_member): New function.
4289 (evaluate_subexp_standard): Use it.
4290
fb461aa3
TT
42912021-03-08 Tom Tromey <tom@tromey.com>
4292
4293 * eval.c (eval_op_structop_ptr): New function.
4294 (evaluate_subexp_standard): Use it.
4295
3e96c4fc
TT
42962021-03-08 Tom Tromey <tom@tromey.com>
4297
4298 * eval.c (eval_op_structop_struct): New function.
4299 (evaluate_subexp_standard): Use it.
4300
f960a617
TT
43012021-03-08 Tom Tromey <tom@tromey.com>
4302
4303 * eval.c (eval_op_ternop): New function.
4304 (evaluate_subexp_standard): Use it.
4305
5c2f201e
TT
43062021-03-08 Tom Tromey <tom@tromey.com>
4307
4308 * eval.c (eval_op_concat): New function.
4309 (evaluate_subexp_standard): Use it.
4310
f871bae1
TT
43112021-03-08 Tom Tromey <tom@tromey.com>
4312
4313 * eval.c (eval_op_objc_selector): New function.
4314 (evaluate_subexp_standard): Use it.
4315
14a1c64a
TT
43162021-03-08 Tom Tromey <tom@tromey.com>
4317
4318 * eval.c (eval_op_string): New function.
4319 (evaluate_subexp_standard): Use it.
4320
ffff730b
TT
43212021-03-08 Tom Tromey <tom@tromey.com>
4322
4323 * eval.c (eval_op_register): New function.
4324 (evaluate_subexp_standard): Use it.
4325
9b1d8af6
TT
43262021-03-08 Tom Tromey <tom@tromey.com>
4327
4328 * eval.c (eval_op_func_static_var): New function.
4329 (evaluate_subexp_standard): Use it.
4330
c0df9289
TT
43312021-03-08 Tom Tromey <tom@tromey.com>
4332
4333 * eval.c (eval_op_var_msym_value): New function.
4334 (evaluate_subexp_standard): Use it.
4335
50b98adc
TT
43362021-03-08 Tom Tromey <tom@tromey.com>
4337
4338 * eval.c (eval_op_var_entry_value): New function.
4339 (evaluate_subexp_standard): Use it.
4340
ea2d29f7
TT
43412021-03-08 Tom Tromey <tom@tromey.com>
4342
4343 * eval.c (eval_op_scope): New function.
4344 (evaluate_subexp_standard): Use it.
4345
01573d73
TT
43462021-03-06 Chernov Sergey <klen_s@mail.ru>
4347
4348 PR gdb/27528:
4349 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4350
9938d15a
TT
43512021-03-06 Tom Tromey <tom@tromey.com>
4352
4353 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4354 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4355 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4356 (locate_dwz_sections, dwz_search_other_debugdirs)
4357 (dwarf2_get_dwz_file): Move to dwz.c.
4358 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4359 read.h.
4360 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4361 (dwarf2_get_dwz_file): Move from read.c.
4362
18035655
TT
43632021-03-06 Tom Tromey <tom@tromey.com>
4364
4365 * debuginfod-support.h: Include scoped_fd.h.
4366
a7308ce0
TT
43672021-03-06 Tom Tromey <tom@tromey.com>
4368
4369 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4370 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4371 (get_abbrev_section_for_cu, read_attribute_value)
4372 (get_debug_line_section): Update.
4373 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4374
fbedd546
TT
43752021-03-06 Tom Tromey <tom@tromey.com>
4376
4377 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4378 method.
4379 * dwarf2/read.c (section_is_p): Remove.
4380 (dwarf2_per_bfd::locate_sections)
4381 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4382 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4383 (dwarf2_locate_common_dwp_sections)
4384 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4385 Update.
4386
c2a62a3d
TT
43872021-03-06 Tom Tromey <tom@tromey.com>
4388
4389 * xcoffread.c: Include sect-names.h.
4390 * symfile.h (struct dwarf2_section_names, struct
4391 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4392 * dwarf2/sect-names.h: New file, from symfile.h.
4393 * dwarf2/read.c: Include sect-names.h.
4394
4444f407
TT
43952021-03-06 Tom Tromey <tom@tromey.com>
4396
4397 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4398 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4399 (abbrev_table::read): Update.
4400 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4401 (struct abbrev_info): Reformat.
4402 <attrs>: Now an array.
4403 (struct abbrev_table) <alloc_abbrev>: Remove.
4404
dd99cf0c
WP
44052021-03-06 Weimin Pan <weimin.pan@oracle.com>
4406
4407 * ctfread.c (ctf_psymtab_add_enums): New function.
4408 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4409
844be3f2
WP
44102021-03-06 Weimin Pan <weimin.pan@oracle.com>
4411
4412 * ctfread.c (read_func_kind_type): Set up function arguments.
4413
b2668f28
AB
44142021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4415 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4418 includes.
4419 (riscv_csrset): New static global.
4420 (riscv_update_csrmap): New function.
4421 (riscv_iterate_over_regset_sections): Process CSRs.
4422
d782d24b
AB
44232021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * riscv-tdep.c (riscv_feature_name_csr): Define.
4426 (riscv_feature_name_cpu): Define.
4427 (riscv_feature_name_fpu): Define.
4428 (riscv_feature_name_virtual): Define.
4429 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4430 (riscv_freg_feature): Use riscv_feature_name_fpu.
4431 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4432 (riscv_csr_feature): Use riscv_feature_name_csr.
4433 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4434
fb8f3fc0
AB
44352021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4436 Craig Blackmore <craig.blackmore@embecosm.com>
4437
4438 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4439 (ALLDEPFILES): Add riscv-none-tdep.c.
4440 * configure: Regenerate.
4441 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4442 support.
4443 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4444 * elf-none-tdep.c: New file.
4445 * elf-none-tdep.h: New file.
4446 * riscv-none-tdep.c: New file.
4447
95ce627a
AB
44482021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4449 Andrew Burgess <andrew.burgess@embecosm.com>
4450
4451 * corelow.c: Add 'xml-tdesc.h' include.
4452 (core_target::read_description): Load the target description from
4453 the core file when possible.
4454 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4455 note.
4456 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4457 (gcore_elf_make_tdesc_note): New function.
4458 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4459 * linux-tdep.c (linux_make_corefile_notes): Add target description
4460 note.
4461
f3a5df7b
AB
44622021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4463
4464 * Makefile.in (SFILES): Add gcore-elf.c.
4465 (HFILES_NO_SRCDIR): Add gcore-elf.h
4466 * configure: Regenerate.
4467 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4468 support.
4469 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4470 (struct fbsd_collect_regset_section_cb_data): Delete.
4471 (fbsd_collect_regset_section_cb): Delete.
4472 (fbsd_collect_thread_registers): Delete.
4473 (struct fbsd_corefile_thread_data): Delete.
4474 (fbsd_corefile_thread): Delete.
4475 (fbsd_make_corefile_notes): Call
4476 gcore_elf_build_thread_register_notes instead of the now deleted
4477 FreeBSD code.
4478 * gcore-elf.c: New file, the content was moved here from
4479 linux-tdep.c, functions were renamed and given minor cleanup.
4480 * gcore-elf.h: New file.
4481 * gcore.c (gcore_find_signalled_thread): Moved here from
4482 linux-tdep.c and given a new name. Minor cleanups.
4483 * gcore.h (gcore_find_signalled_thread): Declare.
4484 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4485 (struct linux_collect_regset_section_cb_data): Delete.
4486 (linux_collect_regset_section_cb): Delete.
4487 (linux_collect_thread_registers): Delete.
4488 (linux_corefile_thread): Call
4489 gcore_elf_build_thread_register_notes.
4490 (find_signalled_thread): Delete.
4491 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4492
d1e93af6
SM
44932021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4494
4495 PR gdb/27147
4496 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4497 process_stratum_target parameter,
4498 sparc_store_inferior_registers): update callers.
4499 * sparc-nat.c (sparc_fetch_inferior_registers,
4500 sparc_store_inferior_registers): Add process_stratum_target
4501 parameter. Switch current thread before calling
4502 sparc_supply_gregset / sparc_collect_rwindow.
4503 (sparc_store_inferior_registers): Likewise.
4504 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4505 (sparc32obsd_collect_uthread): Likewise.
4506 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4507 Add assertion.
4508 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4509 sparc64obsd_supply_uthread): Add assertion.
4510
1178743e
TT
45112021-03-04 Tom Tromey <tromey@adacore.com>
4512
4513 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4514 (aux_add_nonlocal_symbols): Update.
4515 (ada_add_block_symbols): Change "found_sym" to bool.
4516
1bfa81ac
TT
45172021-03-03 Tom Tromey <tromey@adacore.com>
4518
4519 * ada-lang.c (ada_resolve_function): Update comment.
4520 (is_nonfunction, add_symbols_from_enclosing_procs)
4521 (remove_extra_symbols): Likewise.
4522 (struct match_data): Add constructor, initializers.
4523 (add_nonlocal_symbols): Remove memset.
4524 (aux_add_nonlocal_symbols): Update comment.
4525 (ada_add_block_renamings, add_nonlocal_symbols)
4526 (ada_add_all_symbols): Likewise.
4527 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4528
bbcdf9ab
TT
45292021-03-02 Tom Tromey <tromey@adacore.com>
4530
4531 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4532 (cast_to_gnat_encoded_fixed_point_type): Remove.
4533 (ada_value_cast, ada_evaluate_subexp): Update.
4534 (gnat_encoded_fixed_point_type_info)
4535 (ada_is_gnat_encoded_fixed_point_type)
4536 (gnat_encoded_fixed_point_delta)
4537 (gnat_encoded_fixed_point_scaling_factor): Remove.
4538 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4539 (gnat_encoded_fixed_point_delta)
4540 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4541 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4542 (ada_print_type): Update.
4543 * ada-valprint.c (ada_value_print_num): Update.
4544 * dwarf2/read.c (ada_get_gnat_encoded_number)
4545 (ada_get_gnat_encoded_ratio): New functions.
4546 (finish_fixed_point_type): Use them. Add parameters.
4547 (GNAT_FIXED_POINT_SUFFIX): New define.
4548 (gnat_encoded_fixed_point_type_info): New function.
4549 (read_base_type): Handle gnat encodings.
4550
5f9febe0
TT
45512021-03-02 Tom Tromey <tromey@adacore.com>
4552
4553 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4554 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4555 std::string.
4556 (GROW_VECT): Remove.
4557 (grow_vect): Remove.
4558
d1183b06
TT
45592021-03-02 Tom Tromey <tromey@adacore.com>
4560
4561 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4562 * ada-lang.c (resolve_subexp): Update.
4563 (ada_resolve_function): Accept a vector.
4564 (is_nonfunction, add_defn_to_vec)
4565 (add_symbols_from_enclosing_procs): Likewise.
4566 (num_defns_collected, defns_collected): Remove.
4567 (remove_extra_symbols): Return a vector.
4568 (remove_irrelevant_renamings): Return void.
4569 (ada_add_local_symbols): Accept a vector.
4570 (struct match_data) <obstackp>: Remove.
4571 <resultp>: New member.
4572 (aux_add_nonlocal_symbols): Update.
4573 (ada_add_block_renamings, add_nonlocal_symbols)
4574 (ada_add_all_symbols): Accept a vector.
4575 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4576 vector.
4577 (ada_lookup_symbol): Update.
4578 (ada_add_block_symbols): Accept a vector.
4579 (get_var_value, iterate_over_symbols): Update.
4580 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4581 Update.
4582
886d459f
TT
45832021-03-02 Tom Tromey <tromey@adacore.com>
4584
4585 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4586
bdcccc56
TT
45872021-03-02 Tom Tromey <tromey@adacore.com>
4588
4589 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4590 auto_obstack.
4591 <root>: Initialize.
4592 (ada_pspace_data): Remove destructor.
4593 <sym_cache>: Now a unique_ptr.
4594 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4595 (ada_get_symbol_cache): Use 'new'.
4596 (ada_clear_symbol_cache): Rewrite.
4597
1228719f
TT
45982021-03-02 Tom Tromey <tromey@adacore.com>
4599
4600 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4601 is null.
4602
bb3a4efe
LS
46032021-02-27 Lancelot Six <lsix@lancelotsix.com>
4604
4605 PR gdb/27393
4606 * source.c (add_path): Skip empty dirnames.
4607
26b43ca6 46082021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4609
4610 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4611 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4612
dffdd8b5
SM
46132021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4614
4615 PR gdb/26861
4616 * target.c (target_mourn_inferior): Only compare pids in
4617 target_mourn_inferior.
4618
64d38fdd
JM
46192021-02-25 Jan Matyas <jmatyas@codasip.com>
4620
4621 PR gdb/26819
4622 * remote.c (remote_target::start_remote): Ensure the single
4623 thread, automatically added for remote targets without the
4624 concept of threading, is initially in set to the "resumed"
4625 state.
4626 * remote.c (remote_target::add_current_inferior_and_thread):
4627 Add return value - return the main thread.
4628
2450ad54
JV
46292021-02-25 Jan Vrany <jan.vrany@labware.com>
4630
4631 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4632 (mi_tsv_created): Likewise.
4633 (mi_tsv_deleted): Likewise.
4634
30c80d88
TV
46352021-02-25 Tom de Vries <tdevries@suse.de>
4636
4637 PR symtab/27354
4638 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4639 section_kind for &dwo_file->sections.info.
4640
68337b8b
AB
46412021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4642
4643 PR fortran/26155
4644 * f-lang.c (fortran_argument_convert): Delete declaration.
4645 (fortran_prepare_argument): New function.
4646 (evaluate_subexp_f): Move logic to new function
4647 fortran_prepare_argument.
4648
faeb9f13
AB
46492021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4650
4651 * f-exp.y (f77_keywords): Add 'associated'.
4652 * f-lang.c (fortran_associated): New function.
4653 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4654 (operator_length_f): Likewise.
4655 (print_unop_or_binop_subexp_f): New function.
4656 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4657 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4658 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4659 (operator_check_f): Likewise.
4660 * std-operator.def: Add FORTRAN_ASSOCIATED.
4661
170f4b23
AB
46622021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * f-exp.y (fortran_operators): Add ".xor.".
4665
aa659cfa
TV
46662021-02-24 Tom de Vries <tdevries@suse.de>
4667
4668 PR symtab/27336
4669 * dwarf2/attribute.c (attribute::form_is_signed): New function
4670 factored out of ...
4671 * dwarf2/attribute.h (attribute::as_signed): ... here.
4672 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4673 (attribute::form_is_signed): Declare.
4674 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4675 for DW_AT_decl_file.
4676
268c77c1
KB
46772021-02-24 Kevin Buettner <kevinb@redhat.com>
4678
4679 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4680 order for <sys/ptrace.h> and <asm/ptrace.h>.
4681
665af52e
KB
46822021-02-24 Kevin Buettner <kevinb@redhat.com>
4683
4684 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4685 <sys/ptrace.h>.
4686
dd80d750
AB
46872021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4688
4689 * exec.c (set_section_command): Move variable declarations into
4690 the function body, and use std::string instead of a fixed size
4691 buffer.
4692
336aa7b7
AB
46932021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4694
4695 * exec.c (exec_target::get_section_table): Delete member function.
4696 (section_table_read_available_memory): Use current_top_target, not
4697 just the exec_ops target.
4698 * target-delegates.c: Regenerate.
4699 * target.c (default_get_section_table): New function.
4700 * target.h (target_ops::get_section_table): Change default
4701 behaviour to call default_get_section_table.
4702 (default_get_section_table): Declare.
4703
02f7d26b
AB
47042021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4705
4706 * exec.c (exec_target::close): Call new clear_target_sections
4707 function.
4708 (program_space::add_target_sections): Update name of member
4709 variable.
4710 (program_space::add_target_sections): Update name of member
4711 variable.
4712 (program_space::remove_target_sections): Likewise.
4713 (exec_one_fork): Use new target_sections member function.
4714 (exec_target::get_section_table): Likewise.
4715 (exec_target::files_info): Likewise.
4716 (set_section_command): Likewise.
4717 (exec_set_section_address): Likewise.
4718 (exec_target::has_memory): Use new target_sections member
4719 function.
4720 * progspace.h (program_space::clear_target_sections): New member
4721 function.
4722 (program_space::target_sections): Rename member variable to
4723 m_target_sections, replace with a new member function.
4724 (program_space::m_target_sections): New member variable.
4725 * solib-dsbt.c (scan_dyntag): Use new member function.
4726 * solib-svr4.c (scan_dyntag): Likewise.
4727
19cf757a
AB
47282021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4729
4730 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4731 return type const.
4732 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4733 (section_table_read_available_memory): Make local const.
4734 (exec_target::xfer_partial): Make local const.
4735 (print_section_info): Make parameter const.
4736 * gdb/exec.h (print_section_info): Likewise.
4737 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4738 const.
4739 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4740 Likewise.
4741 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4742 Likewise.
4743 * gdb/s390-tdep.c (s390_load): Likewise.
4744 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4745 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4746 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4747 Rename to...
4748 (target_debug_print_const_target_section_table_p): ...this.
4749 * gdb/target-delegates.c: Regenerate.
4750 * gdb/target.c (target_get_section_table): Make return type const.
4751 (target_section_by_addr): Likewise. Also make some locals const.
4752 (memory_xfer_partial_1): Make some locals const.
4753 * gdb/target.h (struct target_ops) <get_section_table>: Make
4754 return type const.
4755 (target_section_by_addr): Likewise.
4756 (target_get_section_table): Likewise.
4757
02a79309
AB
47582021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4759
4760 * NEWS: Mention new 'maint info target-sections' command.
4761 * maint.c (maintenance_info_target_sections): New function.
4762 (_initialize_maint_cmds): Register new command.
4763
895b7b4e
AB
47642021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4765
4766 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4767 (riscv_features_from_bfd): ...this. Change parameter type to
4768 'bfd*', and update as required.
4769 (riscv_find_default_target_description): Update call to
4770 riscv_features_from_bfd. Select a default xlen based on
4771 info.bfd_arch_info.
4772 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4773
bc3c0632
AB
47742021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4775
4776 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4777 dynamic types in UNOP_IND.
4778
08ac5771
SM
47792021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4780
4781 PR gdb/26828
4782 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4783 Instantiate queue.
4784 (~dwarf2_queue_guard): Clear queue.
4785 (queue_comp_unit): Assert that queue is
4786 instantiated.
4787 (process_queue): Adjust.
4788 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4789
616c069a
SM
47902021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4791
4792 PR gdb/26828
4793 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4794 to decide whether or not to enqueue it for expansion.
4795 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4796 after calling maybe_queue_comp_unit.
4797
897608ed
SM
47982021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4799
4800 * linux-nat.c (linux_nat_filter_event): Return void.
4801
15908a11
TT
48022021-02-22 Tom Tromey <tromey@adacore.com>
4803
4804 * solib-svr4.c (enable_break): Update.
4805 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4806 type.
4807 (target_bfd_reopen): Change parameter type.
4808 * bfd-target.h (target_bfd_reopen): Change parameter type.
4809
f53fc427
SM
48102021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 * thread.c (add_thread_silent): Add assert.
4813 (find_thread_ptid): Add assert.
4814
de146e19
SM
48152021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4816
4817 PR gdb/27435
4818 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4819 (target_unpush_up): Likewise.
4820 * procfs.c (procfs_target::attach): Push target early. Use
4821 target_unpush_up to unpush target in case of error.
4822 * target.h (struct target_unpusher): Move here.
4823 (target_unpush_up): Likewise.
4824
8488c357
KB
48252021-02-19 Kevin Buettner <kevinb@redhat.com>
4826
4827 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4828 (which in turn includes <gnulib/config.h>) before include
4829 of <signal.h>.
4830
5a9f5403
NC
48312021-02-19 Nelson Chu <nelson.chu@sifive.com>
4832
4833 PR 27158
4834 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4835 (decode_j_type_insn): Likewise.
4836 (decode_cj_type_insn): Likewise.
4837 (decode_b_type_insn): Likewise.
4838 (decode): Likewise.
4839
26f53cd3
TT
48402021-02-18 Tom Tromey <tom@tromey.com>
4841
4842 * expression.h (struct expression) <evaluate>: Declare method.
4843 * eval.c (evaluate_subexp): Simplify.
4844 (expression::evaluate): New method.
4845 (evaluate_expression, evaluate_type): Use expression::evaluate.
4846
6a780b67
KB
48472021-02-17 Kevin Buettner <kevinb@redhat.com>
4848
4849 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4850 to accessing it.
4851 (ada_lookup_name_info): Likewise.
4852
adeab0c5
MF
48532021-02-13 Mike Frysinger <vapier@gentoo.org>
4854
4855 * aclocal.m4: Regenerate.
4856
089436f7
TV
48572021-02-12 Tom de Vries <tdevries@suse.de>
4858
4859 PR threads/26228
4860 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4861 (lin_thread_signals): New static var.
4862 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4863 New function.
4864 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4865 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4866 Declare.
4867 * linux-thread-db.c (check_thread_signals): Use
4868 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4869
96df3e28
AB
48702021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4871
4872 * f-exp.y (f77_keywords): Add allocated.
4873 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4874 (operator_length_f): Likewise.
4875 (print_subexp_f): Likewise.
4876 (dump_subexp_body_f): Likewise.
4877 (operator_check_f): Likewise.
4878 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4879
05f68f52
TV
48802021-02-11 Tom de Vries <tdevries@suse.de>
4881
4882 PR symtab/27353
4883 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4884 Return true for DW_FORM_strx.
4885
b260f8d6
TT
48862021-02-11 Tom Tromey <tromey@adacore.com>
4887
4888 PR gdb/27383:
4889 * parse.c (write_exp_symbol_reference): Write sym.block.
4890
bf3386f0
AB
48912021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4892
4893 * NEWS: Mention changes to 'maint info sections'.
4894 * maint.c (match_substring): Return a bool, fix whitespace issue.
4895 (struct single_bfd_flag_info): New struct.
4896 (bfd_flag_info): New static global.
4897 (match_bfd_flags): Return a bool, use bfd_flag_info.
4898 (print_bfd_flags): Use bfd_flag_info.
4899 (maint_print_section_info): Delete trailing whitespace.
4900 (struct maint_info_sections_opts): New struct.
4901 (maint_info_sections_option_defs): New static global.
4902 (maint_info_sections_completer): New function.
4903 (maintenance_info_sections): Use option parsing mechanism.
4904 (_initialize_maint_cmds): Update command help text for 'maint info
4905 sections' and register a command completer.
4906
4790db14
AB
49072021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4908
4909 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4910 functionality merged into...
4911 (maint_print_all_sections): ...this new function.
4912 (maintenance_info_sections): Make use of maint_print_all_sections,
4913 allow all objects to be printed even where there's no executable.
4914
1db66e34
AB
49152021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4916
4917 * breakpoint.c (resolve_sal_pc): Make use of
4918 bound_minimal_symbol::obj_section.
4919 * maint.c (maintenance_translate_address): Likewise.
4920 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4921 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4922 member function.
4923 * printcmd.c (info_address_command): Make use of
4924 bound_minimal_symbol::obj_section.
4925
18b8df43
AM
49262021-02-11 Alan Modra <amodra@gmail.com>
4927
4928 * arm-symbian-tdep.c: Delete.
4929 * NEWS: Mention arm-symbian removal.
4930 * Makefile.in: Remove arm-symbian-tdep entries.
4931 * configure.tgt: Remove arm*-*-symbianelf*.
4932 * doc/gdb.texinfo: Remove mention of SymbianOS.
4933 * osabi.c (gdb_osabi_names): Remove "Symbian".
4934 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4935 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4936 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4937 handling.
4938 * testsuite/gdb.base/dup-sect.exp: Likewise.
4939 * testsuite/gdb.base/long_long.exp: Likewise.
4940 * testsuite/gdb.base/solib-weak.exp: Likewise.
4941 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4942 * testsuite/gdb.python/py-section-script.exp: Likewise.
4943 * testsuite/lib/dwarf.exp: Likewise.
4944 * testsuite/lib/gdb.exp: Likewise.
4945
e92c8eb8
AB
49462021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4947
4948 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4949 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4950 (one_or_two_args): New pattern.
4951 (f77_keywords): Add lbound and ubound.
4952 * f-lang.c (fortran_bounds_all_dims): New function.
4953 (fortran_bounds_for_dimension): New function.
4954 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4955 (operator_length_f): Likewise.
4956 (print_subexp_f): Likewise.
4957 (dump_subexp_body_f): Likewise.
4958 (operator_check_f): Likewise.
4959 * std-operator.def (FORTRAN_LBOUND): Define.
4960 (FORTRAN_UBOUND): Define.
4961
a52d653e
AB
49622021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4963
4964 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4965 and set_section_index member functions where appropriate.
4966 * coffread.c (coff_symtab_read): Likewise.
4967 (process_coff_symbol): Likewise.
4968 * ctfread.c (set_symbol_address): Likewise.
4969 * dwarf2/read.c (add_partial_symbol): Likewise.
4970 (var_decode_location): Likewise.
4971 * language.c: Likewise.
4972 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4973 (compact_minimal_symbols): Likewise.
4974 (minimal_symbol_upper_bound): Likewise.
4975 * objfiles.c (relocate_one_symbol): Likewise.
4976 * psympriv.h (partial_symbol::obj_section): Likewise.
4977 (partial_symbol::address): Likewise.
4978 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4979 * stabsread.c (scan_file_globals): Likewise.
4980 * symmisc.c (dump_msymbols): Likewise.
4981 * symtab.c (general_symbol_info::obj_section): Likewise.
4982 (fixup_section): Likewise.
4983 (get_msymbol_address): Likewise.
4984 * symtab.h (general_symbol_info::section): Rename to...
4985 (general_symbol_info::m_section): ...this.
4986 (general_symbol_info::set_section_index): New member function.
4987 (general_symbol_info::section_index): Likewise.
4988 (SYMBOL_SECTION): Delete.
4989 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4990 set_section_index member functions where appropriate.
4991 (MSYMBOL_SECTION): Delete.
4992 (symbol::symbol): Update to initialize 'm_section'.
4993 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4994 (process_xcoff_symbol): Likewise.
4995
ebbc3a7d
AB
49962021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4997
4998 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4999 MSYMBOL_OBJ_SECTION.
5000 * findvar.c (language_defn::read_var_value): Likewise.
5001 * infcmd.c (jump_command): Likewise.
5002 * linespec.c (minsym_found): Likewise.
5003 * maint.c (maintenance_translate_address): Likewise.
5004 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5005 (minimal_symbol_upper_bound): Likewise.
5006 * parse.c (find_minsym_type_and_address): Likewise.
5007 (operator_check_standard): Likewise.
5008 * printcmd.c (info_address_command): Likewise.
5009 * symmisc.c (dump_msymbols): Likewise.
5010 (print_symbol): Likewise.
5011 * symtab.c (general_symbol_info::obj_section): Define new
5012 function.
5013 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5014 (find_pc_sect_compunit_symtab): Likewise.
5015 (find_function_start_sal): Likewise.
5016 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5017 MSYMBOL_OBJ_SECTION.
5018 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5019 function.
5020 (SYMBOL_OBJ_SECTION): Delete.
5021 (MSYMBOL_OBJ_SECTION): Delete.
5022
9bb305b3
TT
50232021-02-09 Tom Tromey <tom@tromey.com>
5024
5025 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5026
cf2b2075
TV
50272021-02-09 Tom de Vries <tdevries@suse.de>
5028
5029 PR symtab/27341
5030 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5031 construct an array type. Add assert to ensure that element_type is
5032 not being modified.
5033
03642b71
AB
50342021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5035
5036 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5037 (gcore_collect_regset_section_cb): Delete.
5038 (gcore_collect_thread_registers): Delete.
5039 (gcore_build_thread_register_notes): Delete.
5040 (gcore_find_signalled_thread): Delete.
5041 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5042 'gdbarch' and 'thread_info' declarations.
5043 (gcore_build_thread_register_notes): Delete declaration.
5044 (gcore_find_signalled_thread): Likewise.
5045 * fbsd-tdep.c: Remove 'gcore.h' include.
5046 (struct fbsd_collect_regset_section_cb_data): New struct.
5047 (fbsd_collect_regset_section_cb): New function.
5048 (fbsd_collect_thread_registers): New function.
5049 (struct fbsd_corefile_thread_data): New struct.
5050 (fbsd_corefile_thread): New function.
5051 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5052 * linux-tdep.c: Remove 'gcore.h' include.
5053 (struct linux_collect_regset_section_cb_data): New struct.
5054 (linux_collect_regset_section_cb): New function.
5055 (linux_collect_thread_registers): New function.
5056 (linux_corefile_thread): Call Linux specific code.
5057 (find_signalled_thread): New function.
5058 (linux_make_corefile_notes): Call find_signalled_thread.
5059
f73e424f
TT
50602021-02-09 Tom Tromey <tromey@adacore.com>
5061
5062 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5063 not_lval value.
5064 * value.c (value_contents_copy_raw): Now static.
5065 * value.h (value_contents_copy_raw): Don't declare.
5066
a4f0544b
TT
50672021-02-09 Tom Tromey <tromey@adacore.com>
5068
5069 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5070 fields.
5071
9b3e4b5d
SV
50722021-02-08 Shahab Vahedi <shahab@synopsys.com>
5073
5074 PR tdep/27369
5075 * arc-linux-tdep.c (handle_atomic_sequence): New.
5076 (arc_linux_software_single_step): Call handle_atomic_sequence().
5077
29db1eb3
AB
50782021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5079
5080 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5081 function.
5082 (REQUIRE_WINDOW): Call is_valid member function.
5083 (REQUIRE_WINDOW_FOR_SETTER): New define.
5084 (gdbpy_tui_is_valid): Call is_valid member function.
5085 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5086 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5087 tui_active too.
5088 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5089 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5090 the function.
5091
e0c23e11
AB
50922021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5095 for the title is not nullptr.
5096
1cf23996
AB
50972021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * tui-layout.c (saved_tui_windows): Delete.
5100 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5101 call new get_windows member function instead.
5102 (tui_get_window_by_name): Check in tui_windows.
5103 (tui_layout_window::apply): Don't add to tui_windows.
5104 * tui-layout.h (tui_layout_base::get_windows): New member function.
5105 (tui_layout_window::get_windows): Likewise.
5106 (tui_layout_split::get_windows): Likewise.
5107
a53a2657
AB
51082021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5109
5110 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5111 of the window objects.
5112
2708dbbd
AB
51132021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * python/python.c (gdbpy_print_stack): Reformat an error message.
5116
cd074e04
AB
51172021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5118
5119 * tui/tui-interp.c (tui_command_line_handler): New function.
5120 (tui_interp::resume): Register tui_command_line_handler as the
5121 input_handler.
5122 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5123 function.
5124 (tui_getc_1): Delete handling of '\n' and '\r'.
5125 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5126
4cf28e91
HD
51272021-02-07 Hannes Domani <ssbssa@yahoo.de>
5128
5129 * tui/tui-regs.c (tui_data_window::display_registers_from):
5130 Mark invisible register sub windows.
5131 (tui_data_window::check_register_values): Ignore invisible
5132 register sub windows.
5133
3537bc23
HD
51342021-02-07 Hannes Domani <ssbssa@yahoo.de>
5135
5136 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5137 n_spaces with a negative value.
5138
5fc2d6aa
HD
51392021-02-07 Hannes Domani <ssbssa@yahoo.de>
5140
5141 * tui/tui-regs.c (tui_data_window::display_registers_from):
5142 Add refresh_window call.
5143
83962f83
HD
51442021-02-07 Hannes Domani <ssbssa@yahoo.de>
5145
5146 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5147
0110ec82
SM
51482021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5149
5150 * symmisc.c (std_in, std_out, std_err): Remove.
5151 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5152
7c6944ab
TV
51532021-02-05 Tom de Vries <tdevries@suse.de>
5154
5155 PR breakpoints/27330
5156 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5157 glibc object file has debug info.
5158
e77b0004
TV
51592021-02-05 Tom de Vries <tdevries@suse.de>
5160
5161 PR symtab/27333
5162 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5163
0e857c82
TV
51642021-02-05 Tom de Vries <tdevries@suse.de>
5165
5166 PR breakpoints/27313
5167 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5168 syscall numbers.
5169
bdfea17e
TT
51702021-02-05 Tom Tromey <tom@tromey.com>
5171
5172 * compile/compile-c-support.c (get_compile_context)
5173 (c_get_compile_context, cplus_get_compile_context): Change return
5174 type.
5175 * language.c (language_defn::get_compile_instance): New method.
5176 * language.h (language_defn::get_compile_instance): Change return
5177 type. No longer inline.
5178 * c-lang.c (c_language::get_compile_instance): Change return type.
5179 (cplus_language::get_compile_instance): Change return type.
5180 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5181 Change return type.
5182 * compile/compile.c (compile_to_object): Update.
5183
1b30f421
TT
51842021-02-05 Tom Tromey <tom@tromey.com>
5185
5186 * parser-defs.h (write_exp_symbol_reference): Declare.
5187 * parse.c (write_exp_symbol_reference): New function.
5188 * p-exp.y (variable): Use write_exp_symbol_reference.
5189 * m2-exp.y (variable): Use write_exp_symbol_reference.
5190 * f-exp.y (variable): Use write_exp_symbol_reference.
5191 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5192 * c-exp.y (variable): Use write_exp_symbol_reference.
5193
ae710496
TV
51942021-02-05 Tom de Vries <tdevries@suse.de>
5195
5196 PR exp/27265
5197 * valarith.c (complex_binop): Throw an error if complex type can't
5198 be created.
5199
d3b54e63
TV
52002021-02-05 Tom de Vries <tdevries@suse.de>
5201
5202 PR symtab/27307
5203 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5204 return.
5205
fc9a13fb
TV
52062021-02-05 Tom de Vries <tdevries@suse.de>
5207
5208 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5209
04b4939b
MF
52102021-02-04 Mike Frysinger <vapier@gentoo.org>
5211
5212 * configure.tgt (riscv*-*-*): Set gdb_sim.
5213
6ff267e1
SM
52142021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5215
5216 * target.c (target_is_non_stop_p): Return bool.
5217 * target.h (target_is_non_stop_p): Return bool.
5218
fdbc5215
SM
52192021-02-04 Simon Marchi <simon.marchi@efficios.com>
5220
5221 * record-full.c (record_full_async_inferior_event_handler):
5222 Don't clear async event handler.
5223 (record_full_base_target::wait): Clear async event handler at
5224 beginning.
5225
85d3ad8e
SM
52262021-02-04 Simon Marchi <simon.marchi@efficios.com>
5227
5228 * record-btrace.c (record_btrace_handle_async_inferior_event):
5229 Don't clear async event handler.
5230 (record_btrace_target::wait): Clear async event handler at
5231 beginning.
5232
baa8575b
SM
52332021-02-04 Simon Marchi <simon.marchi@efficios.com>
5234
5235 * remote.c (remote_target::wait): Clear async event handler at
5236 beginning, mark if needed at the end.
5237 (remote_async_inferior_event_handler): Don't set or clear async
5238 event handler.
5239
6b36ddeb
SM
52402021-02-04 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * async-event.h (async_event_handler_func): Add documentation.
5243 * async-event.c (check_async_event_handlers): Don't clear
5244 async_event_handler ready flag.
5245 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5246 flag.
5247 * record-btrace.c (record_btrace_handle_async_inferior_event):
5248 Likewise.
5249 * record-full.c (record_full_async_inferior_event_handler):
5250 Likewise.
5251 * remote-notif.c (remote_async_get_pending_events_handler):
5252 Likewise.
5253 * remote.c (remote_async_inferior_event_handler): Likewise.
5254
72d383bb
SM
52552021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5256
5257 * infrun.c (handle_inferior_event): Move stop_soon variable to
5258 inner scope.
5259
408f6686
PA
52602021-02-03 Pedro Alves <pedro@palves.net>
5261
5262 * infcmd.c (detach_command): Hold strong reference to target, and
5263 if all-stop on entry, restart threads on exit.
5264 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5265 (restart_stepped_thread): ... this new function. Also handle
5266 trap_expected.
5267 (restart_after_all_stop_detach): New function.
5268 * infrun.h (restart_after_all_stop_detach): Declare.
5269
ac7d717c
PA
52702021-02-03 Pedro Alves <pedro@palves.net>
5271
5272 * infrun.c (struct step_over_info): Initialize fields.
5273 (prepare_for_detach): Handle ongoing in-line step over.
5274
e87f0fe8
PA
52752021-02-03 Pedro Alves <pedro@palves.net>
5276
5277 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5278 here...
5279 * remote.c (remote_target::remote_detach_1): ... and here ...
5280 * target.c (target_detach): ... instead of here.
5281 * target.h (target_ops::detach): Add comment.
5282
8ff53139
PA
52832021-02-03 Pedro Alves <pedro@palves.net>
5284
5285 * infrun.c (struct wait_one_event): Move higher up.
5286 (prepare_for_detach): Abort in-progress displaced steps instead of
5287 letting them complete.
5288 (handle_one): If the inferior is detaching, don't add the thread
5289 back to the global step-over chain.
5290 (restart_threads): Don't restart threads if detaching.
5291 (handle_signal_stop): Remove inferior::detaching reference.
5292
91475068
PA
52932021-02-03 Pedro Alves <pedro@palves.net>
5294
5295 * infrun.c (prepare_for_detach): Don't release scoped_restore
5296 before returning.
5297
d758e62c
PA
52982021-02-03 Pedro Alves <pedro@palves.net>
5299
5300 * infrun.c (handle_one): New function, factored out from ...
5301 (stop_all_threads): ... here.
5302
b0083dd7
PA
53032021-02-03 Pedro Alves <pedro@palves.net>
5304
5305 * remote.c (remote_notif_stop_ack): Don't error out on
5306 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5307 (remote_target::discard_pending_stop_replies): Don't delete
5308 in-flight notification; instead, clear its contents.
5309
621cc310
PA
53102021-02-03 Pedro Alves <pedro@palves.net>
5311
5312 * remote.c (extended_remote_target::attach): Set target async in
5313 the target-non-stop path too.
5314
2ab76a18
PA
53152021-02-03 Pedro Alves <pedro@palves.net>
5316
5317 PR gdb/27055
5318 * infrun.c (handle_signal_stop): Move main context_switch call
5319 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5320
2e3773ff
LS
53212021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5322
5323 * NEWS (Changed commands): Add entry for the behavior change of
5324 the inferior command.
5325 * inferior.c (inferior_command): When no argument is given to the
5326 inferior command, display info about the currently selected
5327 inferior.
5328
e57933dc
SM
53292021-02-02 Simon Marchi <simon.marchi@efficios.com>
5330
5331 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5332 a sect_offset.
5333 (read_attribute_reprocess): Adjust.
5334
2b0c7f41
SM
53352021-02-02 Simon Marchi <simon.marchi@efficios.com>
5336
5337 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5338 <gnu_ranges_base>: ... this...
5339 <rnglists_base>: ... and this.
5340 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5341 <gnu_ranges_base>: ... this...
5342 <rnglists_base>: ... and this.
5343 (read_cutu_die_from_dwo): Adjust
5344 (dwarf2_get_pc_bounds): Adjust
5345 (dwarf2_record_block_ranges): Adjust.
5346 (read_full_die_1): Adjust
5347 (partial_die_info::read): Adjust.
5348 (read_rnglist_index): Adjust.
5349
a1c40103
SM
53502021-02-02 Simon Marchi <simon.marchi@efficios.com>
5351
5352 PR gdb/26813
5353 * dwarf2/read.c (read_loclists_rnglists_header): Add
5354 header_offset parameter and use it.
5355 (read_loclist_index): Read header of the current contribution,
5356 not the one at the beginning of the section.
5357 (read_rnglist_index): Likewise.
5358
b1829e1b
SM
53592021-02-02 Simon Marchi <simon.marchi@efficios.com>
5360
5361 PR gdb/26813
5362 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5363 requires_reprocessing flag.
5364 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5365 DW_FORM_loclistx.
5366 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5367 and DW_FORM_loclistx.
5368 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5369 instead of set_address for DW_FORM_loclistx and
5370 DW_FORM_rnglistx.
5371
0c800c6e
SM
53722021-02-02 Simon Marchi <simon.marchi@efficios.com>
5373
5374 * dwarf2/read.c (read_loclist_index): Remove bound check for
5375 start of offset.
5376 (read_rnglist_index): Likewise.
5377
05787bad
SM
53782021-02-02 Simon Marchi <simon.marchi@efficios.com>
5379
5380 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5381 of the offset.
5382
5e4d9bbc
SM
53832021-02-02 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5386
a0c1eeba
SM
53872021-02-02 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * dwarf2/read.c (read_loclist_index): Change complaints into
5390 errors.
5391
2bd3e4b8
TV
53922021-02-02 Tom de Vries <tdevries@suse.de>
5393
5394 PR symtab/24620
5395 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5396 psymtab == nullptr.
5397
82a1fd3a
AB
53982021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5399
5400 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5401 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5402 here from linux-tdep.c and given a new name. Minor cleanups.
5403 (gcore_collect_regset_section_cb): Likewise.
5404 (gcore_collect_thread_registers): Likewise.
5405 (gcore_build_thread_register_notes): Likewise.
5406 (gcore_find_signalled_thread): Likewise.
5407 * gcore.h (gcore_build_thread_register_notes): Declare.
5408 (gcore_find_signalled_thread): Declare.
5409 * fbsd-tdep.c: Add 'gcore.h' include.
5410 (struct fbsd_collect_regset_section_cb_data): Delete.
5411 (fbsd_collect_regset_section_cb): Delete.
5412 (fbsd_collect_thread_registers): Delete.
5413 (struct fbsd_corefile_thread_data): Delete.
5414 (fbsd_corefile_thread): Delete.
5415 (fbsd_make_corefile_notes): Call
5416 gcore_build_thread_register_notes instead of the now deleted
5417 FreeBSD code.
5418 * linux-tdep.c: Add 'gcore.h' include.
5419 (struct linux_collect_regset_section_cb_data): Delete.
5420 (linux_collect_regset_section_cb): Delete.
5421 (linux_collect_thread_registers): Delete.
5422 (linux_corefile_thread): Call
5423 gcore_build_thread_register_notes.
5424 (find_signalled_thread): Delete.
5425 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5426
ebde6f2d
TV
54272021-01-29 Tom de Vries <tdevries@suse.de>
5428
5429 PR breakpoints/26063
5430 * infrun.c (process_event_stop_test): Reset
5431 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5432 changed.
5433
0f93c3a2
AB
54342021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5435
5436 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5437 assert. Extend the header comment.
5438
f237f998
AB
54392021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5440
5441 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5442 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5443 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5444 (tui_locator_win_info_ptr): Delete declaration.
5445 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5446 (tui_disasm_window::set_contents): Fetch state from tui_location
5447 global.
5448 (tui_get_begin_asm_address): Likewise.
5449 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5450 for locator window.
5451 (get_locator_window): Delete.
5452 (initialize_known_windows): Treat locator window just like all the
5453 rest.
5454 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5455 (tui_source_window::set_contents): Fetch state from tui_location
5456 global.
5457 (tui_source_window::showing_source_p): Likewise.
5458 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5459 (_locator): Delete.
5460 (tui_locator_win_info_ptr): Delete.
5461 (tui_locator_window::make_status_line): Fetch state from
5462 tui_location global.
5463 (tui_locator_window::rerender): Remove check of 'handle',
5464 reindent function body.
5465 (tui_locator_window::set_locator_fullname): Delete.
5466 (tui_locator_window::set_locator_info): Delete.
5467 (tui_update_locator_fullname): Delete.
5468 (tui_show_frame_info): Likewise.
5469 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5470 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5471 tui/tui-location.h and renamed to
5472 tui_location_tracker::set_location.
5473 (tui_locator_window::set_locator_fullname): Moved to
5474 tui/tui-location.h and renamed to
5475 tui_location_tracker::set_fullname.
5476 (tui_locator_window::full_name): Delete.
5477 (tui_locator_window::proc_name): Delete.
5478 (tui_locator_window::line_no): Delete.
5479 (tui_locator_window::addr): Delete.
5480 (tui_locator_window::gdbarch): Delete.
5481 (tui_update_locator_fullname): Delete declaration.
5482 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5483 for locator window.
5484 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5485 (tui_display_main): Call function on tui_location directly.
5486 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5487 * tui/tui-location.c: New file.
5488 * tui/tui-location.h: New file.
5489
8ee511af
SM
54902021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5491
5492 * gdbtypes.h (get_type_arch): Rename to...
5493 (struct type) <arch>: ... this, update all users.
5494
6ac37371
SM
54952021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5496
5497 * gdbtypes.h (struct type) <arch>: Rename to...
5498 <arch_owner>: ... this, update all users.
5499 <objfile>: Rename to...
5500 <objfile_owner>: ... this, update all users.
5501
24cf6389
AB
55022021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * gdbcmd.h (execute_command_to_string): Update comment.
5505 * top.c (execute_command_to_string): Update header comment.
5506
2a7f6487
TV
55072021-01-28 Tom de Vries <tdevries@suse.de>
5508
5509 PR breakpoints/27205
5510 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5511 (create_longjmp_master_breakpoint_names): New function, factored out
5512 of ...
5513 (create_longjmp_master_breakpoint): ... here. Only try to install
5514 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5515 breakpoint in libc.so failed.
5516
59b59f08
LS
55172021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5518
5519 PR gdb/27133
5520 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5521 unique_ptr is released when the wrapped pointer is kept for later
5522 use.
5523
807f647c
MM
55242021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5525
5526 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5527 BLR and BR instructions.
5528 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5529 (enum aarch64_masks): New.
5530
4ef367bf
TT
55312021-01-26 Tom Tromey <tromey@adacore.com>
5532
5533 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5534 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5535 (windows_init_thread_list, windows_nat::handle_load_dll)
5536 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5537 (windows_nat_target::resume)
5538 (windows_nat_target::get_windows_debug_event)
5539 (windows_nat_target::interrupt, windows_xfer_memory)
5540 (windows_nat_target::close): Update.
5541 * nat/windows-nat.c (DEBUG_EVENTS): Use
5542 debug_prefixed_printf_cond.
5543 (matching_pending_stop, fetch_pending_stop)
5544 (continue_last_debug_event): Update.
5545
4cb1265b
MS
55462020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5547
5548 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5549 elfcore_write_file_note.
5550
d0cc52bd
SV
55512021-01-26 Shahab Vahedi <shahab@synopsys.com>
5552
5553 * arc-tdep.c (arc_add_reggroups): New function.
5554 (arc_gdbarch_init): Call arc_add_reggroups.
5555
ac3571d9 55562021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5557
5558 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5559
9f6c202e
TV
55602021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5561 Simon Marchi <simon.marchi@polymtl.ca>
5562 Tom de Vries <tdevries@suse.de>
5563
5564 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5565 DW_AT_ranges.
5566
a625a8c9
TT
55672021-01-25 Tom Tromey <tromey@adacore.com>
5568
5569 * dwarf2/read.c (get_mpz): New function.
5570 (get_dwarf2_rational_constant): Use it.
5571
19184910
TT
55722021-01-25 Tom Tromey <tromey@adacore.com>
5573
5574 * ada-lang.c (resolve_subexp): Handle array context.
5575
b10bae18
TT
55762021-01-23 Tom Tromey <tom@tromey.com>
5577
5578 PR compile/25575
5579 * compile/compile-loc2c.c (note_register): New function.
5580 (pushf_register_address, pushf_register): Use it.
5581
3637a558
TT
55822021-01-23 Tom Tromey <tom@tromey.com>
5583
5584 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5585 Change type of "registers_used".
5586 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5587 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5588 (locexpr_generate_c_location, loclist_generate_c_location): Change
5589 type of "registers_used".
5590 * compile/compile.h (compile_dwarf_expr_to_c)
5591 (compile_dwarf_bounds_to_c): Update.
5592 * compile/compile-loc2c.c (pushf_register_address)
5593 (pushf_register, do_compile_dwarf_expr_to_c)
5594 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5595 of "registers_used".
5596 * compile/compile-c.h (generate_c_for_variable_locations):
5597 Update.
5598 * compile/compile-c-symbols.c (generate_vla_size)
5599 (generate_c_for_for_one_variable): Change type of
5600 "registers_used".
5601 (generate_c_for_variable_locations): Return std::vector.
5602 * compile/compile-c-support.c (generate_register_struct): Change
5603 type of "registers_used".
5604 (compute): Update.
5605
9f7f6cb8
TT
56062021-01-23 Tom Tromey <tom@tromey.com>
5607
5608 * compile/compile-internal.h (class compile_instance)
5609 <set_arguments>: Change return type.
5610 * compile/compile.c (compile_to_object): Remove call to reset.
5611 (compile_instance::set_arguments): Change return type.
5612
dd5ca05f
SM
56132021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5614
5615 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5616 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5617
d3ee35db
LS
56182021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5619
5620 * Makefile.in (SELFTESTS_SRCS): Add
5621 unittests/gdb_tilde_expand-selftests.c.
5622 * unittests/gdb_tilde_expand-selftests.c: New file.
5623
9d2d8a16
AB
56242021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5625
5626 PR cli/25956
5627 * NEWS: Mention new command.
5628 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5629 (version_style): Define.
5630 (cli_style_option::cli_style_option): Add intensity parameter, and
5631 use as appropriate.
5632 (_initialize_cli_style): Register version style set/show commands.
5633 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5634 (version_style): Declare.
5635 * top.c (print_gdb_version): Use version_stype, and styled_string
5636 to print the GDB version string.
5637
e7b43072
AB
56382021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5639
5640 * utils.c (emit_style_escape): Only emit an escape sequence if the
5641 requested style is different than the current applied style.
5642 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5643 current applied_style.
5644 (fputs_styled): Remove is_default check.
5645 (fputs_styled_unfiltered): Likewise.
5646 (vfprintf_styled_no_gdbfmt): Likewise.
5647
2189c312
SM
56482021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5649
5650 * remote.h (remote_debug_printf): New.
5651 (remote_debug_printf_nofunc): New.
5652 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5653 * remote.c: Use above macros throughout file.
5654
02349803
SM
56552021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5656
5657 * remote.h (remote_debug): Change to bool.
5658 * remote.c (remote_debug): Change to bool.
5659 (_initialize_remote): Adjust.
5660
cda09ec9
SM
56612021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5662
5663 * target.h (remote_debug): Move to...
5664 * remote.h (remote_debug): ... here.
5665 * top.c (remote_debug): Move to...
5666 * remote.c (remote_debug): ... here.
5667 * remote-sim.c: Include remote.h.
5668
baf2b57f
SM
56692021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5670
5671 * cli/cli-cmds.c (show_remote_debug): Remove.
5672 (show_remote_timeout): Remove.
5673 (_initialize_cli_cmds): Don't register commands.
5674 * remote.c (show_remote_debug): Move here.
5675 (show_remote_timeout): Move here.
5676 (_initialize_remote): Register commands.
5677
344e9841
SM
56782021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5679
5680 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5681 type::objfile method instead.
5682
30625020
SM
56832021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5684
5685 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5686 use the type::is_objfile_owned method.
5687
5b7d941b
SM
56882021-01-22 Simon Marchi <simon.marchi@efficios.com>
5689
5690 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5691 (TYPE_OWNER): Remove.
5692 (TYPE_OBJFILE): Adjust.
5693 (struct main_type) <flag_objfile_owned>: Rename to...
5694 <m_flag_objfile_owned>: ... this.
5695 <owner>: Rename to...
5696 <m_owner>: ... this.
5697 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5698 methods.
5699 (TYPE_ALLOC): Adjust.
5700 * gdbtypes.c (alloc_type): Adjust.
5701 (alloc_type_arch): Adjust.
5702 (alloc_type_copy): Adjust.
5703 (get_type_arch): Adjust.
5704 (smash_type): Adjust.
5705 (lookup_array_range_type): Adjust.
5706 (recursive_dump_type): Adjust.
5707 (copy_type_recursive): Adjust.
5708 * compile/compile-c-types.c (convert_func): Adjust.
5709 (convert_type_basic): Adjust.
5710 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5711 Adjust.
5712 * language.c
5713 (language_arch_info::type_and_symbol::alloc_type_symbol):
5714 Adjust.
5715
d5d24e12
LM
57162021-01-21 Luis Machado <luis.machado@linaro.org>
5717
5718 * coffread.c (enter_linenos): Passing string to complaint.
5719 * valops.c (value_assign): Make array view.
5720
a59902a7
SM
57212021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5722
5723 * auto-load.h (debug_auto_load): Move here.
5724 (auto_load_debug_printf): New.
5725 * auto-load.c: Use auto_load_debug_printf.
5726 (debug_auto_load): Move to header.
5727 * linux-thread-db.c (try_thread_db_load): Use
5728 auto_load_debug_printf.
5729 * main.c (captured_main_1): Likewise.
5730
d3abc0ce
SM
57312021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5732
5733 * f-valprint.c (f77_array_offset_tbl): Remove.
5734
1e15fcac
SM
57352021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5736
5737 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5738
439706e6
SM
57392021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5740
5741 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5742 of gdb_select.
5743
325d39e4
HD
57442021-01-21 Hannes Domani <ssbssa@yahoo.de>
5745
5746 PR python/19151
5747 * python/py-breakpoint.c (bppy_get_location): Handle
5748 bp_hardware_breakpoint.
5749 (bppy_init): Likewise.
5750 (gdbpy_breakpoint_created): Likewise.
5751
7cb6d92a
SM
57522021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5753
5754 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5755
d4dd4fca
SM
57562021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5757
5758 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5759 (_initialize_gdb_bfd): Adjust.
5760
de53369b
SM
57612021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5762
5763 PR gdb/26828
5764 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5765
17e593e9
SM
57662021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5767
5768 * dwarf2/read.c (follow_die_offset): Add logging.
5769 (dwarf2_per_objfile::age_comp_units): Add logging.
5770
6bd434d6
SM
57712021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5772
5773 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5774 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5775 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5776 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5777 * arm-tdep.c (struct frame_unwind): Make static.
5778 * auto-load.c (auto_load_safe_path_vec): Make static.
5779 * csky-tdep.c (csky_stub_unwind): Make static.
5780 * gdbarch.c (gdbarch_data_registry): Make static.
5781 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5782 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5783 * i386-tdep.c (i386_frame_setup_skip_insns,
5784 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5785 Make static.
5786 * infrun.c (observer_mode): Make static.
5787 * linux-nat.c (sigchld_action): Make static.
5788 * linux-thread-db.c (thread_db_list): Make static.
5789 * maint-test-options.c (maintenance_test_options_list):
5790 * mep-tdep.c (mep_csr_registers): Make static.
5791 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5792 (stats): Make static.
5793 * nat/linux-osdata.c (struct osdata_type): Make static.
5794 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5795 * progspace.c (last_program_space_num): Make static.
5796 * python/py-param.c (struct parm_constant): Remove struct type
5797 name.
5798 (parm_constants): Make static.
5799 * python/py-record-btrace.c (btpy_list_methods): Make static.
5800 * python/py-record.c (recpy_gap_type): Make static.
5801 * record.c (record_goto_cmdlist): Make static.
5802 * regcache.c (regcache_descr_handle): Make static.
5803 * registry.h (DEFINE_REGISTRY): Make definition static.
5804 * symmisc.c (std_in, std_out, std_err): Make static.
5805 * top.c (previous_saved_command_line): Make static.
5806 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5807 static.
5808 * unittests/command-def-selftests.c (nr_duplicates,
5809 nr_invalid_prefixcmd, lists): Make static.
5810 * unittests/observable-selftests.c (test_notification): Make
5811 static.
5812 * unittests/optional/assignment/1.cc (counter): Make static.
5813 * unittests/optional/assignment/2.cc (counter): Make static.
5814 * unittests/optional/assignment/3.cc (counter): Make static.
5815 * unittests/optional/assignment/4.cc (counter): Make static.
5816 * unittests/optional/assignment/5.cc (counter): Make static.
5817 * unittests/optional/assignment/6.cc (counter): Make static.
5818
a6c11cbb
JS
58192021-01-20 Joel Sherrill <joel@rtems.org>
5820
5821 PR gdb/27219
5822 * remote.c (struct remote_thread_info) <resume_state>: Rename
5823 to...
5824 <get_resume_state>: ... this.
5825 (remote_target::resume): Adjust.
5826 (remote_target::commit_resume): Adjust.
5827 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5828
6f52fdf4
SDJ
58292021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5830 Tom Tromey <tom@tromey.com>
5831
5832 * stap-probe.c (stap_parse_single_operand): Handle '!'
5833 operator.
5834 (stap_parse_argument_conditionally): Likewise.
5835 Skip spaces after processing open-parenthesis sub-expression.
5836 (stap_parse_argument_1): Skip spaces after call to
5837 stap_parse_argument_conditionally.
5838 Handle case when right-side expression is a parenthesized
5839 sub-expression.
5840 Skip spaces after call to stap_parse_argument_1.
5841
1c3b85ad
LS
58422021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5843
5844 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5845
a9a87d35
LM
58462021-01-19 Luis Machado <luis.machado@linaro.org>
5847
5848 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5849 memory and save data.
5850 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5851 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5852 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5853 (trad_frame_value_bytes_p): Remove.
5854 (trad_frame_reset_saved_regs): Adjust documentation.
5855 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5856 constructor and reset the state of the registers.
5857 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5858 (trad_frame_value_bytes_p, trad_frame_set_value)
5859 (trad_frame_set_realreg, trad_frame_set_addr)
5860 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5861 (trad_frame_set_reg_realreg): Update to call member function.
5862 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5863 (trad_frame_get_prev_register): Likewise.
5864
5865 * aarch64-tdep.c (aarch64_analyze_prologue)
5866 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5867 (aarch64_prologue_prev_register): Update to use member functions.
5868 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5869 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5870 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5871 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5872 (arm_make_epilogue_frame_cache): Likewise.
5873 * avr-tdep.c (avr_frame_unwind_cache)
5874 (avr_frame_prev_register): Likewise.
5875 * cris-tdep.c (cris_scan_prologue): Likewise.
5876 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5877 * frv-tdep.c (frv_analyze_prologue): Likewise.
5878 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5879 * lm32-tdep.c (lm32_frame_cache): Likewise.
5880 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5881 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5882 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5883 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5884 (reset_saved_regs): Adjust to set realreg.
5885 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5886 call member functions.
5887 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5888 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5889 (s390_backchain_frame_unwind_cache): Likewise.
5890 * score-tdep.c (score7_analyze_prologue)
5891 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5892 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5893 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5894 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5895 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5896 * tilegx-tdep.c (tilegx_analyze_prologue)
5897 (tilegx_frame_cache): Likewise.
5898 * v850-tdep.c (v850_frame_cache): Likewise.
5899 * vax-tdep.c (vax_frame_cache): Likewise.
5900
bdec2917
LM
59012021-01-19 Luis Machado <luis.machado@linaro.org>
5902
5903 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5904 of buffer + length.
5905 (put_frame_register_bytes): Likewise.
5906 Adjust documentation.
5907 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5908 (safe_frame_unwind_memory): Likewise.
5909 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5910 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5911 gdb::array_view.
5912 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5913 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5914 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5915 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5916 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5917 * dwarf2/loc.c (rw_pieced_value): Likewise.
5918 * hppa-tdep.c (hppa_frame_cache): Likewise.
5919 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5920 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5921 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5922 (i386_linux_rt_sigtramp_start): Likewise.
5923 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5924 * i386-tdep.c (i386_register_to_value): Likewise.
5925 * i387-tdep.c (i387_register_to_value): Likewise.
5926 * ia64-tdep.c (ia64_register_to_value): Likewise.
5927 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5928 (m32r_linux_rt_sigtramp_start): Likewise.
5929 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5930 * m68k-tdep.c (m68k_register_to_value): Likewise.
5931 * mips-tdep.c (mips_register_to_value)
5932 (mips_value_to_register): Likewise.
5933 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5934 (ppcfbsd_sigtramp_frame_cache): Likewise.
5935 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5936 (ppcobsd_sigtramp_frame_cache): Likewise.
5937 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5938 (rs6000_register_to_value): Likewise.
5939 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5940 * tramp-frame.c (tramp_frame_start): Likewise.
5941 * valops.c (value_assign): Likewise.
5942
ccbe4c82
LM
59432021-01-19 Luis Machado <luis.machado@linaro.org>
5944
5945 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5946 array_view.
5947 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5948 instead of buffer and size.
5949 (trad_frame_set_reg_value_bytes): Likewise.
5950 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5951 (trad_frame_set_value_bytes): Likewise.
5952
0e7620dc
MF
59532021-01-18 Mike Frysinger <vapier@gentoo.org>
5954
5955 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5956
6a9ad81c
AB
59572021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5958
5959 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5960 (riscv_fbsd_gregset): Use riscv_supply_regset.
5961 (riscv_fbsd_fpregset): Likewise.
5962 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5963 (riscv_linux_fregset): Likewise.
5964 * riscv-tdep.c (riscv_supply_regset): Define new function.
5965 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5966
d3d7d1ba
TV
59672021-01-18 Tom de Vries <tdevries@suse.de>
5968
5969 PR tdep/27172
5970 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5971 New macro.
5972 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5973 for SEGV_BNDERR.
5974
aa2838cc
SM
59752021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5976
5977 * remote.c (class remote_target) <remote_hostio_send_command,
5978 remote_hostio_parse_result>: Constify parameter.
5979 (remote_hostio_parse_result): Likewise.
5980 (remote_target::remote_hostio_send_command): Adjust.
5981 (remote_target::remote_hostio_pread_vFile): Adjust.
5982 (remote_target::fileio_readlink): Adjust.
5983 (remote_target::fileio_fstat): Adjust.
5984
b5c8f22d
SM
59852021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * remote.c (remote_target::start_remote): Move wait_status to
5988 narrower scope.
5989
e3b2741b
SM
59902021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5991
5992 * remote.c (class remote_target):
5993 <add_current_inferior_and_thread>: Constify parameter.
5994 (stop_reply_extract_thread): Likewise.
5995 (remote_target::get_current_thread): Likewise.
5996 (remote_target::add_current_inferior_and_thread): Likewise.
5997
cecb1912
SM
59982021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5999
6000 * remote.c (class remote_target)
6001 <remote_unpack_thread_info_response,
6002 parse_threadlist_response>: Constify parameter and/or return
6003 value and or local variable.
6004 (stub_unpack_int): Likewise.
6005 (unpack_nibble): Likewise.
6006 (unpack_byte): Likewise.
6007 (unpack_int): Likewise.
6008 (unpack_string): Likewise.
6009 (unpack_threadid): Likewise.
6010 (remote_target::remote_unpack_thread_info_response): Likewise.
6011 (remote_target::parse_threadlist_response): Likewise.
6012
5a11fff0
AB
60132021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6014
6015 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6016
17e89137
LS
60172021-01-14 Lancelot Six <lsix@lancelotsix.com>
6018
6019 * MAINTAINERS (Write After Approval): Add myself.
6020
58eadc4b
BE
60212021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6022
6023 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6024 because is_trivially_default_constructible was first implemented with
6025 gcc-5.
6026
5fae2a2c
TV
60272021-01-14 Tom de Vries <tdevries@suse.de>
6028
6029 PR breakpoints/27151
6030 * objfiles.h (in_plt_section): Handle .plt.sec.
6031
8f66807b
AB
60322021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 PR gdb/26819
6035 * remote.c
6036 (remote_target::select_thread_for_ambiguous_stop_reply): New
6037 member function.
6038 (remote_target::process_stop_reply): Call
6039 select_thread_for_ambiguous_stop_reply.
6040
bd497355
SM
60412021-01-13 Simon Marchi <simon.marchi@efficios.com>
6042
6043 * record-btrace.c (class record_btrace_target): Remove.
6044 (record_btrace_target::commit_resume): Remove.
6045 * record-full.c (class record_full_target): Remove.
6046 (record_full_target::commit_resume): Remove.
6047
c9d22089
SM
60482021-01-13 Simon Marchi <simon.marchi@efficios.com>
6049
6050 * remote.c (enum class resume_state): New.
6051 (struct resumed_pending_vcont_info): New.
6052 (struct remote_thread_info) <resume_state, set_not_resumed,
6053 set_resumed_pending_vcont, resumed_pending_vcont_info,
6054 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6055 New.
6056 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6057 (remote_target::remote_add_thread): Adjust.
6058 (remote_target::process_initial_stop_replies): Adjust.
6059 (remote_target::resume): Adjust.
6060 (remote_target::commit_resume): Rely on state in
6061 remote_thread_info and not on tp->executing.
6062 (remote_target::process_stop_reply): Adjust.
6063
d8d1feb4
SM
60642021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6065
6066 * arc-tdep.h (arc_debug_printf): New.
6067 * arc-tdep.c: Use arc_debug_printf.
6068 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6069 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6070 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6071
fb0f5031
SM
60722021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6073
6074 * arc-tdep.h (arc_debug): Change type to bool.
6075 * arc-tdep.c (arc_debug): Change type to bool.
6076 (arc_analyze_prologue): Adjust.
6077 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6078 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6079
5bf7e91b
SM
60802021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6081
6082 * auto-load.c (auto_load_objfile_script_1): Use bool.
6083 (execute_script_contents): Use bool.
6084
db972fce
SM
60852021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6086
6087 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6088 comment here.
6089 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6090 comment to header.
6091 * extension-priv.h (struct extension_language_script_ops)
6092 <auto_load_enabled>: Return bool.
6093 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6094 comment here.
6095 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6096 comment to header.
6097 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6098 move comment here.
6099 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6100 move comment to header.
6101 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6102 move comment here.
6103 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6104 move comment to header.
6105
5e12f48f
SM
61062021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6107
6108 * auto-load.h (file_is_auto_load_safe): Change return type to
6109 bool, move comment here.
6110 * auto-load.c (file_is_auto_load_safe): Change return type and
6111 advice_printed to bool. Move comment to header.
6112
54ca9002
SM
61132021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6114
6115 * jit.c (jit_debug_printf): New, use throughout file.
6116
24a7f1b5
SM
61172021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6118
6119 * infrun.c (normal_stop): Fix indentation.
6120
fe7a351a
SM
61212021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6122
6123 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6124 declarations to ...
6125 * symfile.h: ... here.
6126 * symfile.c: Update doc.
6127
16e9019e
SM
61282021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6129
6130 * target.h (baud_rate, serial_parity): Move declarations...
6131 * serial.h: ... here.
6132 * main.c: Include serial.h.
6133 * serial.c (baud_rate, serial_parity): Update doc.
6134
b2f2ae0d
SM
61352021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6136
6137 * top.c (pre_init_ui_hook): Remove.
6138
5291fe3c
SP
61392021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6140
6141 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6142 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6143 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6144 * features/aarch64-fpu.xml: Add bfloat16 type.
6145
ce38f5ed
AB
61462021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6147
6148 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6149
7c654b71
AB
61502021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6151
6152 * f-exp.y (dot_ops): Rename to...
6153 (fortran_operators): ...this. Add a header comment. Add symbol
6154 based operators.
6155 (yylex): Update to use fortran_operators not dot_ops. Remove
6156 special handling for '**', this is now included in
6157 fortran_operators.
6158
c6185dce
SM
61592021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6160
6161 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6162 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6163 * aarch64-tdep.c: Use aarch64_debug_printf.
6164
eef401dc
SM
61652021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6168 file.
6169
062eaacb
SM
61702021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * jit.c (jit_debug): Change type to bool.
6173 (_initialize_jit): Adjust.
6174
54585eee
TT
61752021-01-09 Tom Tromey <tom@tromey.com>
6176
6177 PR compile/23672
6178 * compile/compile.c (compile_to_object): Avoid crash when
6179 osabi_triplet_regexp returns NULL.
6180
bc167b6b
TT
61812021-01-09 Tom Tromey <tom@tromey.com>
6182
6183 * tracepoint.h (class collection_list) <append_exp>: Take a
6184 std::string.
6185 * tracepoint.c (collection_list::append_exp): Take a std::string.
6186 (encode_actions_1): Update.
6187
8fc48b79
TT
61882021-01-08 Tom Tromey <tromey@adacore.com>
6189
6190 * parse.c (parse_expression): Add void_context_p parameter. Use
6191 parse_exp_in_context.
6192 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6193 parse_expression.
6194 (print_command, call_command): Update.
6195 * expression.h (parse_expression): Add void_context_p parameter.
6196
3c8c6de2
AB
61972021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6198
6199 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6200 for internalvar components that have a dynamic location.
6201
1940319c
TV
62022021-01-08 Tom de Vries <tdevries@suse.de>
6203
6204 PR gdb/26881
6205 * breakpoint.c (create_exception_master_breakpoint_probe)
6206 (create_exception_master_breakpoint_hook): Factor out
6207 of ...
6208 (create_exception_master_breakpoint): ... here. Only try to install
6209 the master exception breakpoint in objfile.debug using the
6210 _Unwind_DebugHook method, if the install using probes in objfile
6211 failed.
6212
e3436813
AB
62132021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6214
6215 * f-lang.c (fortran_value_subarray): Call value_from_component.
6216
e904f56d
MF
62172021-01-07 Mike Frysinger <vapier@gentoo.org>
6218
6219 * remote-sim.c: Include memory-map.h.
6220 (gdbsim_target): Define memory_map override.
6221 (gdbsim_target::memory_map): Define.
6222
959d6a67
TT
62232021-01-07 Tom Tromey <tromey@adacore.com>
6224
6225 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6226
d4813f10
TT
62272021-01-07 Tom Tromey <tromey@adacore.com>
6228
6229 * ada-lang.c (add_component_interval): Start loop using vector's
6230 updated size.
6231
b49180ac
TT
62322021-01-06 Tom Tromey <tromey@adacore.com>
6233
6234 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6235 Do not cast result.
6236 * valarith.c (fixed_point_binop): Handle multiplication
6237 and division specially.
6238 * valops.c (value_to_gdb_mpq): New function.
6239 (value_cast_to_fixed_point): Use it.
6240
55195361
HD
62412021-01-05 Hannes Domani <ssbssa@yahoo.de>
6242
6243 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6244 Call wnoutrefresh instead of tui_win_info::refresh_window.
6245
1b6d4bb2
HD
62462021-01-05 Hannes Domani <ssbssa@yahoo.de>
6247
6248 * tui/tui-source.c (tui_source_window::show_line_number):
6249 Redraw second space after line number.
6250
b5ff370e
HD
62512021-01-05 Hannes Domani <ssbssa@yahoo.de>
6252
6253 PR tui/26927
6254 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6255 Fix source pad size in prefresh.
6256 (tui_source_window_base::show_source_content): Grow source pad
6257 if necessary.
6258
c68ea49f
MF
62592021-01-04 Mike Frysinger <vapier@gentoo.org>
6260
6261 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6262 (bfin_frame_align): Use align_down.
6263
e4ad960a
TV
62642021-01-04 Tom de Vries <tdevries@suse.de>
6265
6266 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6267 terminators that do not terminate anything.
6268
3ec3145c
SM
62692021-01-04 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * debug.c (debug_print_depth): New.
6272 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6273 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6274 * infrun.c (start_step_over): Use
6275 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6276 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6277 INFRUN_SCOPED_DEBUG_START_END.
6278 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6279
e71daf80
SM
62802021-01-04 Simon Marchi <simon.marchi@efficios.com>
6281
6282 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6283
335709bc
SM
62842021-01-04 Simon Marchi <simon.marchi@efficios.com>
6285
6286 * utils.c (vfprintf_unfiltered): Print timestamp only when
6287 previous debug output ended with a newline.
6288
098caef4
LM
62892021-01-04 Luis Machado <luis.machado@linaro.org>
6290
6291 Update all users of trad_frame_saved_reg to use the new member
6292 functions.
6293
6294 Remote all struct keywords from declarations of trad_frame_saved_reg
6295 types, except on forward declarations.
6296
6297 * aarch64-tdep.c: Update.
6298 * alpha-mdebug-tdep.c: Update.
6299 * alpha-tdep.c: Update.
6300 * arc-tdep.c: Update.
6301 * arm-tdep.c: Update.
6302 * avr-tdep.c: Update.
6303 * cris-tdep.c: Update.
6304 * csky-tdep.c: Update.
6305 * frv-tdep.c: Update.
6306 * hppa-linux-tdep.c: Update.
6307 * hppa-tdep.c: Update.
6308 * hppa-tdep.h: Update.
6309 * lm32-tdep.c: Update.
6310 * m32r-linux-tdep.c: Update.
6311 * m32r-tdep.c: Update.
6312 * m68hc11-tdep.c: Update.
6313 * mips-tdep.c: Update.
6314 * moxie-tdep.c: Update.
6315 * riscv-tdep.c: Update.
6316 * rs6000-tdep.c: Update.
6317 * s390-linux-tdep.c: Update.
6318 * s390-tdep.c: Update.
6319 * score-tdep.c: Update.
6320 * sparc-netbsd-tdep.c: Update.
6321 * sparc-sol2-tdep.c: Update.
6322 * sparc64-fbsd-tdep.c: Update.
6323 * sparc64-netbsd-tdep.c: Update.
6324 * sparc64-obsd-tdep.c: Update.
6325 * sparc64-sol2-tdep.c: Update.
6326 * tilegx-tdep.c: Update.
6327 * v850-tdep.c: Update.
6328 * vax-tdep.c: Update.
6329
6330 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6331 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6332
6333 * trad-frame.c: Update.
6334 Remove TF_REG_* enum.
6335 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6336 a trivially-constructible struct.
6337 (trad_frame_reset_saved_regs): Adjust to use member function.
6338 (trad_frame_value_p): Likewise.
6339 (trad_frame_addr_p): Likewise.
6340 (trad_frame_realreg_p): Likewise.
6341 (trad_frame_value_bytes_p): Likewise.
6342 (trad_frame_set_value): Likewise.
6343 (trad_frame_set_realreg): Likewise.
6344 (trad_frame_set_addr): Likewise.
6345 (trad_frame_set_unknown): Likewise.
6346 (trad_frame_set_value_bytes): Likewise.
6347 (trad_frame_get_prev_register): Likewise.
6348 * trad-frame.h: Update.
6349 (trad_frame_saved_reg_kind): New enum.
6350 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6351 <m_kind, m_reg>: New member fields.
6352 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6353 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6354 <is_addr, is_unknown, is_value_bytes>: New member functions.
6355
9898e882
SM
63562021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6357
6358 * target-float.c: Fix typos.
6359
b66b4e65
HD
63602021-01-02 Hannes Domani <ssbssa@yahoo.de>
6361
6362 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6363
b5b5650a
JB
63642021-01-01 Joel Brobecker <brobecker@adacore.com>
6365
6366 * gdbarch.sh: Update copyright year range.
6367
3666a048
JB
63682021-01-01 Joel Brobecker <brobecker@adacore.com>
6369
6370 Update copyright year range in copyright header of all GDB files.
6371
ff7e39b6
JB
63722021-01-01 Joel Brobecker <brobecker@adacore.com>
6373
6374 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6375 to the list of directories to update.
6376
2b47c078
JB
63772021-01-01 Joel Brobecker <brobecker@adacore.com>
6378
6379 * top.c (print_gdb_version): Update copyright year.
6380
9e5e03df 63812021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6382
476923f1 6383 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6384
476923f1 6385For older changes see ChangeLog-2020.
c906108c
SS
6386\f
6387Local Variables:
6388mode: change-log
6389left-margin: 8
6390fill-column: 74
6391version-control: never
57da7796 6392coding: utf-8
c906108c 6393End: