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