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