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