gdb: add cmd_list_element::is_alias
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1be99b11
SM
12021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
4
99858724
SM
52021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
8 to...
9 <alias_target>: ... this.
10 (add_alias_cmd): Rename old to target.
11 (add_info_alias): Rename old_name to target_name.
12 (add_com_alias): Likewise.
13
14b42fc4
SM
142021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
15
16 * Rename "prefixlist" parameters to "subcommands" throughout.
17 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
18 <subcommands>: ... this.
19 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
20 (lookup_cmd_with_subcommands): ... this.
21
ecd0a6b3
SM
222021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
25
413b49c2
SM
262021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * cli/cli-decode.h (prefixname): Make const, move implementation
29 to cli/cli-decode.c.
30 * cli/cli-decode.c (cmd_list_element::prefixname): New.
31
ea11a98d
WP
322021-05-16 Weimin Pan <weimin.pan@oracle.com>
33
34 * ctfread.c (new_symbol): Set function address.
35 (read_func_kind_type): Remove incorrect type name setting.
36 Don't copy name returned from ctf_type_ame_raw throughout file.
37
887e7158
TT
382021-05-14 Tom Tromey <tom@tromey.com>
39
40 * rust-lang.c (rust_language::val_print_struct)
41 (rust_language::print_enum): Use common_val_print, not
42 value_print_inner.
43
55789354
TBA
442021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
45
46 * python/py-inferior.c (infpy_get_connection_num): New function.
47 (inferior_object_getset): Add a new element for 'connection_num'.
48 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
49
2f63ec5c
AB
502021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
51
52 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
53 argument type, update and re-wrap, header comment.
54 (remote_target::commit_resumed): Convert any_process_wildcard and
55 may_global_wildcard_vcont from int to bool.
56
ecf25064
KC
572021-05-14 Kent Cheung <kent.cheung@arm.com>
58
59 * cp-valprint.c (cp_print_value): Replaced duplicate code.
60 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
61 just before printing child values.
62 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
63 printing string representation.
64 * python/py-prettyprint.c (print_children): Check max_depth just
65 before printing child values.
66 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
67 printing string representation.
68
df68e12b
MF
692021-05-14 Mike Frysinger <vapier@gentoo.org>
70
71 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
72 sim/callback.h & sim/sim.h.
73
183aaaf7
MF
742021-05-13 Mike Frysinger <vapier@gentoo.org>
75
76 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
77 sim-regno.h include.
78
737358ba
SM
792021-05-13 Simon Marchi <simon.marchi@efficios.com>
80
81 * inf-child.h (inf_child_target) <follow_exec>: New.
82 * inf-child.c (inf_child_target::follow_exec): New.
83
294c36eb
SM
842021-05-13 Simon Marchi <simon.marchi@efficios.com>
85
86 * target.h (struct target_ops) <follow_exec>: Add ptid_t
87 parameter.
88 (target_follow_exec): Likewise.
89 * target.c (target_follow_exec): Add ptid_t parameter.
90 * infrun.c (follow_exec): Adjust call to target_follow_exec,
91 don't push target nor create thread.
92 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
93 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
94 (thread_db_target::follow_exec): New.
95 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
96 (remote_target::follow_exec): Call
97 process_stratum_target::follow_exec.
98 * target-delegates.c: Re-generate.
99
2af87c85
SM
1002021-05-13 Simon Marchi <simon.marchi@efficios.com>
101
102 * infrun.c (follow_exec): Call target_follow_fork when
103 follow-exec-mode is same.
104 * target.h (target_follow_fork): Improve doc.
105
0b2256f7
SM
1062021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
109 Remove.
110 * cli/cli-setshow.c (do_show_command): Adjust.
111
0746f49b
LM
1122021-05-13 Luis Machado <luis.machado@linaro.org>
113
114 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
115 include the last address in the range.
116
4b8cb9dd
SM
1172021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
118
119 * python/python-internal.h (gdbpy_parse_command_name): Return
120 gdb::unique_xmalloc_ptr.
121 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
122 (cmdpy_init): Adjust.
123 * python/py-param.c (parmpy_init): Adjust.
124 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
125 when done.
126
ee35ce82
GB
1272021-05-12 George Barrett <bob@bob131.so>
128
129 * NEWS (Guile API): Note the addition of the new procedure.
130 * guile/scm-value.c (gdbscm_value_const_value): Add
131 implementation of value-const-value procedure.
132 (value_functions): Add value-const-value procedure.
133
9d4fc61d
GB
1342021-05-12 George Barrett <bob@bob131.so>
135
136 * NEWS (Guile API): Note the addition of new procedures.
137 * guile/scm-value.c (gdbscm_reference_value): Add helper function
138 for reference value creation.
139 (gdbscm_value_reference_value): Add implementation of
140 value-reference-value procedure.
141 (gdbscm_value_rvalue_reference_value): Add implementation of
142 value-rvalue-reference-value procedure.
143 (value_functions): Add value-reference-value procedure. Add
144 value-rvalue-reference-value procedure.
145
97cef6b7
GB
1462021-05-12 George Barrett <bob@bob131.so>
147
148 * guile/scm-type.c (type_integer_constants): Add binding for
149 TYPE_CODE_RVALUE_REF.
150 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
151 dereferencing of rvalue references.
152 * NEWS (Guile API): Note improvements in rvalue reference support.
153
d51344c9
MM
1542021-05-12 Markus Metzger <markus.t.metzger@intel.com>
155
156 * btrace.c (handle_pt_insn_events): Ignore status update enable
157 events.
158
f2a883a8
SM
1592021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
160
161 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
162 indentation.
163
64f30eb0
SM
1642021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
165
166 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
167
db1f6cd6
LS
1682021-05-10 Lancelot Six <lsix@lancelotsix.com>
169
170 PR gdb/27614
171 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
172 argument.
173
31aceaef
SM
1742021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * nat/linux-waitpid.c (status_to_str): Show signal name.
177
75140e3b
AB
1782021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 * python/py-breakpoint.c (pybp_debug): New static global.
181 (show_pybp_debug): New function.
182 (pybp_debug_printf): Define.
183 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
184 (gdbpy_breakpoint_created): Add some debugging.
185 (gdbpy_breakpoint_deleted): Likewise.
186 (gdbpy_breakpoint_modified): Likewise.
187 (_initialize_py_breakpoint): New function.
188
1ef40c13
AB
1892021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
190
191 * python/py-unwind.c (pyuw_debug): Convert to bool.
192 (show_pyuw_debug): New function.
193 (pyuw_debug_printf): Define.
194 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
195 (pyuw_this_id): Convert to new debug print macros.
196 (pyuw_prev_register): Likewise.
197 (pyuw_sniffer): Likewise.
198 (pyuw_dealloc_cache): Likewise.
199 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
200 show function when registering.
201
927c4e35
AB
2022021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 * dummy-frame.c (fprint_dummy_frames): Convert use of
205 fprint_frame_id to use frame_id::to_string.
206 * frame.c (fprint_field): Delete.
207 (fprint_frame_id): Moved to...
208 (frame_id::to_string): ...this, rewritten to return a string.
209 (fprint_frame): Convert use of fprint_frame_id to use
210 frame_id::to_string.
211 (compute_frame_id): Likewise.
212 (frame_id_p): Likewise.
213 (frame_id_eq): Likewise.
214 (frame_id_inner): Likewise.
215 * frame.h (struct frame_id) <to_string>: New member function.
216 (fprint_frame_id): Delete declaration.
217 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
218 fprint_frame_id to use frame_id::to_string.
219 * python/py-frame.c (frame_object_to_frame_info): Likewise.
220 * python/py-unwind.c (unwind_infopy_str): Likewise.
221 (pyuw_this_id): Likewise.
222
8d06918f
SM
2232021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * nat/linux-waitpid.c (status_to_str): Return std::string.
226 * nat/linux-waitpid.h (status_to_str): Likewise.
227 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
228 (linux_nat_target::attach): Adjust.
229 (linux_handle_extended_wait): Adjust.
230 (wait_lwp): Adjust.
231 (stop_wait_callback): Adjust.
232 (linux_nat_filter_event): Adjust.
233 (linux_nat_wait_1): Adjust.
234 * nat/linux-waitpid.c (status_to_str): Adjust.
235 * nat/linux-waitpid.h (status_to_str): Adjust.
236
550e9289
SM
2372021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * infrun.h (infrun_debug_printf): Add missing space.
240
4655f850
PA
2412021-05-08 Pedro Alves <pedro@palves.net>
242
243 * linux-nat.c (linux_nat_target::supports_disable_randomization):
244 Remove references to HAVE_PERSONALITY.
245 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
246 (maybe_disable_address_space_randomization)
247 (~maybe_disable_address_space_randomizatio): Remove references to
248 HAVE_PERSONALITY.
249 * config.in, configure: Regenerate.
250
1845e254
AB
2512021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
254 include.
255 (source_script_with_search): Perform tilde expansion.
256
91e3c425
SM
2572021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * target-descriptions.c (struct target_desc_info) <filename>:
260 Make std::string.
261 (copy_inferior_target_desc_info): Adjust.
262 (target_desc_info_free): Adjust.
263 (target_find_description): Adjust.
264 (set_tdesc_filename_cmd): Adjust.
265 (show_tdesc_filename_cmd): Adjust.
266 (unset_tdesc_filename_cmd): Adjust.
267 (maint_print_c_tdesc_cmd): Adjust.
268
0b2f7ade
SM
2692021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
270
271 * target-descriptions.c (struct target_desc_info): Initialize
272 fields.
273 (get_tdesc_info): Use new.
274 (target_desc_info_free): Use delete.
275
820c4490
SM
2762021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * target-descriptions.c (struct target_desc_info) <fetched>:
279 bool.
280 (target_find_description): Adjust.
281 (target_clear_description): Adjust.
282
c2962e6a
SM
2832021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * target-descriptions.c (struct target_desc_info) <tdesc>:
286 Adjust doc.
287 (target_desc_fetched): Remove.
288 (current_target_desc): Remove.
289 (target_description_filename): Remove.
290 (target_find_description): Adjust.
291 (target_clear_description): Adjust.
292 (target_current_description): Adjust.
293 (set_tdesc_filename_cmd): Adjust.
294 (show_tdesc_filename_cmd): Adjust.
295 (unset_tdesc_filename_cmd): Adjust.
296 (maint_print_c_tdesc_cmd): Adjust.
297 (maint_print_xml_tdesc_cmd): Adjust.
298
8a82de58
AB
2992021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
300
301 * infcmd.c (notice_new_inferior): Change parameter type.
302 * inferior.h (notice_new_inferior): Change parameter type.
303 * remote.c (remote_notice_new_inferior): Change parameter type to
304 bool. Also update type of local variable to bool.
305 (remote_target::update_thread_list): Change type of local variable
306 to bool.
307 (remote_target::process_stop_reply): Pass bool instead of int to
308 remote_notice_new_inferior.
309
bedc4734
SM
3102021-05-07 Simon Marchi <simon.marchi@efficios.com>
311
312 * target.c (target_stack::unpush): Call target_ops::find_beneath
313 to get the target beneath `t`.
314
27f0a431
SM
3152021-05-07 Simon Marchi <simon.marchi@efficios.com>
316
317 * target.c (target_close): Check in all inferiors that the
318 target is not pushed.
319
1d1669e4
AM
3202021-05-07 Aaron Merey <amerey@redhat.com>
321
322 * debuginfod-support.c (debuginfod_init): Remove.
323 (get_debuginfod_client): New function.
324
2698f5ea
TT
3252021-05-07 Tom Tromey <tom@tromey.com>
326
327 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
328 * utils.c (streq_hash): Remove.
329 * utils.h (streq_hash): Don't declare.
330 * completer.c (completion_tracker::discard_completions): Update
331 comment.
332 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
333
13123da8
SM
3342021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
335
336 * Re-format all Python files using black.
337
9589edb8
AB
3382021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
339
340 * guile/guile-internal.h (gdbscm_safe_source_script): Change
341 function return type.
342 * guile/guile.c (gdbscm_source_script): Update to handle change in
343 gdbscm_safe_source_script.
344 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
345 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
346 type.
347
ec66d6ea
SM
3482021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
349
350 * inferior.h (class inferior) <args>: Change type to
351 unique_xmalloc_ptr.
352 * inferior.c (inferior::~inferior): Don't free args.
353 * infcmd.c (get_inferior_args): Adjust.
354 (set_inferior_args): Adjust.
355
0618ecf6
AB
3562021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
359 breakpoint locations when the breakpoint actually has a location.
360
79aabb73
TBA
3612021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
362
363 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
364 * mi/mi-cmds.c: Change the binding of "-break-condition" to
365 mi_cmd_break_condition.
366 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
367 * breakpoint.h (set_breakpoint_condition): Declare a new
368 overload.
369 * breakpoint.c (set_breakpoint_condition): New overloaded function
370 extracted out from ...
371 (condition_command): ... this.
372 * NEWS: Mention the change.
373
10e578d7
TBA
3742021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
375
376 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
377 '--force-condition' flag to force the condition in the
378 '-break-insert' and '-dprintf-insert' commands.
379 * NEWS: Mention the change.
380
225bda24
TV
3812021-05-04 Tom de Vries <tdevries@suse.de>
382
383 PR guile/27806
384 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
385 memory functions.
386
b8efb248
TT
3872021-04-30 Tom Tromey <tom@tromey.com>
388
389 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
390 (add_signatured_type_cu_to_table): Remove.
391 (create_debug_type_hash_table): Assume dwo_file is non-null.
392 (create_debug_types_hash_table): Update comment.
393 (create_all_type_units): Remove.
394 (sort_tu_by_abbrev_offset): Update comment.
395 (build_type_psymtabs): Rename from build_type_psymtabs_1.
396 (build_type_psymtabs): Remove.
397 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
398 Update.
399 (read_comp_units_from_section): Add types_htab, section_kind
400 parameters.
401 (create_all_comp_units): Read type units.
402
91eea9cc
TT
4032021-04-30 Tom Tromey <tom@tromey.com>
404
405 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
406 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
407 <get_cu>: Now inline.
408 <all_type_units>: Remove.
409 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
410 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
411 (dwarf2_per_bfd::get_tu): Remove.
412 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
413 (create_signatured_type_table_from_index)
414 (create_signatured_type_table_from_debug_names)
415 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
416 (dwarf2_base_index_functions::expand_all_symtabs)
417 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
418 (dwarf2_base_index_functions::map_symbol_filenames)
419 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
420 (add_signatured_type_cu_to_table, create_all_type_units)
421 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
422 (create_all_comp_units): Update.
423 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
424 (write_debug_names): Update.
425
0d305d5c
TT
4262021-04-30 Tom Tromey <tom@tromey.com>
427
428 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
429 allocate_signatured_type>: Change return type.
430 <all_comp_units, all_type_units>: Hold unique pointers.
431 (struct dwarf2_per_cu_data): Add constructor and initializers.
432 (struct signatured_type): Derive from dwarf2_per_cu_data.
433 * dwarf2/read.c (type_unit_group): Derive from
434 dwarf2_per_cu_data.
435 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
436 (dwarf2_per_bfd::get_tu)
437 (dwarf2_per_bfd::allocate_signatured_type)
438 (dwarf2_per_bfd::allocate_signatured_type)
439 (create_cu_from_index_list, create_cus_from_index_list)
440 (create_signatured_type_table_from_index)
441 (create_signatured_type_table_from_debug_names)
442 (create_addrmap_from_aranges)
443 (dwarf2_base_index_functions::find_last_source_symtab)
444 (dw_expand_symtabs_matching_file_matcher)
445 (dwarf2_gdb_index::expand_symtabs_matching)
446 (dwarf2_base_index_functions::map_symbol_filenames)
447 (create_cus_from_debug_names_list)
448 (dw2_debug_names_iterator::next)
449 (dwarf2_debug_names_index::expand_symtabs_matching)
450 (create_debug_type_hash_table, add_type_unit)
451 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
452 Update.
453 (allocate_type_unit_groups_table): Use delete.
454 (create_type_unit_group): Change return type. Use new.
455 (get_type_unit_group, build_type_psymtabs_1)
456 (build_type_psymtab_dependencies)
457 (process_skeletonless_type_unit, set_partial_user)
458 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
459 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
460 (read_signatured_type): Update.
461 (dwarf2_find_containing_comp_unit): Change type of
462 'all_comp_units'.
463 (run_test): Update.
464 (dwarf2_per_bfd::allocate_per_cu)
465 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
466 Use new.
467 (add_signatured_type_cu_to_table): Update.
468 * dwarf2/index-write.c (write_one_signatured_type)
469 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
470 (write_debug_names): Update.
471
1bee48c7
TT
4722021-04-30 Tom Tromey <tromey@adacore.com>
473
474 * nat/windows-nat.h (get_image_name): Don't declare.
475 * nat/windows-nat.c (get_image_name): Now static.
476
e228ef97
TT
4772021-04-30 Tom Tromey <tromey@adacore.com>
478
479 * windows-nat.c (windows_nat::handle_load_dll): Update.
480 (windows_nat_target::get_windows_debug_event): Call
481 dll_loaded_event.
482 (windows_add_all_dlls, windows_add_dll): Move to
483 nat/windows-nat.c.
484 * nat/windows-nat.h (handle_load_dll): Change parameters.
485 (dll_loaded_event, windows_add_all_dlls): Declare.
486 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
487 from windows-nat.c.
488 (dll_loaded_event): New function.
489
de071872
TT
4902021-04-30 Tom Tromey <tromey@adacore.com>
491
492 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
493 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
494 Declare.
495 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
496 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
497
9e439f00
TT
4982021-04-30 Tom Tromey <tromey@adacore.com>
499
500 * windows-nat.c: Move code to nat/windows-nat.[ch].
501 (_initialize_windows_nat): Call initialize_loadable.
502 * nat/windows-nat.h (AdjustTokenPrivileges)
503 (DebugActiveProcessStop, DebugBreakProcess)
504 (DebugSetProcessKillOnExit, EnumProcessModules)
505 (EnumProcessModulesEx, GetModuleInformation)
506 (GetModuleFileNameExA, GetModuleFileNameExW)
507 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
508 (GetCurrentConsoleFont, Wow64SuspendThread)
509 (Wow64GetThreadContext, Wow64SetThreadContext)
510 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
511 (AdjustTokenPrivileges_ftype)
512 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
513 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
514 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
515 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
516 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
517 (GetConsoleFontSize_ftype)
518 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
519 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
520 (Wow64GetThreadSelectorEntry_ftype): Likewise.
521 (initialize_loadable): Declare.
522 * nat/windows-nat.c (AdjustTokenPrivileges)
523 (DebugActiveProcessStop, DebugBreakProcess)
524 (DebugSetProcessKillOnExit, EnumProcessModules)
525 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
526 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
527 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
528 (Wow64GetThreadContext, Wow64SetThreadContext)
529 (Wow64GetThreadSelectorEntry): Define.
530 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
531 from windows-nat.c.
532 (initialize_loadable): Likewise, and rename.
533
1053c638
TT
5342021-04-30 Tom Tromey <tromey@adacore.com>
535
536 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
537 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
538 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
539 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
540 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
541 (bad): New template functions.
542 (_initialize_loadable): Update.
543
2869ac4b
TT
5442021-04-30 Tom Tromey <tromey@adacore.com>
545
546 * ada-lang.c (ada_index_type): Use ada_check_typedef.
547
e197dfae
SM
5482021-04-29 Simon Marchi <simon.marchi@efficios.com>
549
550 * auto-load.h: Split namespace declaration.
551
89ba430c
SM
5522021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
553
554 * infrun.c (save_waitstatus): Move variables to inner scope.
555
8eb82ba1
AB
5562021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * NEWS: Fix typo and stray full stop.
559
db2534b7
TT
5602021-04-28 Tom Tromey <tromey@adacore.com>
561
562 * ada-exp.y (primary): Use new type for null pointer.
563 * ada-lang.c (ada_type_match): Remove "may_deref"
564 parameter. Handle null pointer.
565 (ada_args_match): Update.
566 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
567 Handle null pointer.
568
edeaceda
AB
5692021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * NEWS: Mention new commands.
572 * python/python.c (python_ignore_environment): New static global.
573 (show_python_ignore_environment): New function.
574 (set_python_ignore_environment): New function.
575 (python_dont_write_bytecode): New static global.
576 (show_python_dont_write_bytecode): New function.
577 (set_python_dont_write_bytecode): New function.
578 (_initialize_python): Register new commands.
579
041ca48e
AB
5802021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
581
582 * extension-priv.h (struct extension_language_ops): Rename
583 'finish_initialization' to 'initialize'.
584 * extension.c (finish_ext_lang_initialization): Renamed to...
585 (ext_lang_initialization): ...this, update comment, and updated
586 the calls to reflect the change in struct extension_language_ops.
587 * extension.h (finish_ext_lang_initialization): Renamed to...
588 (ext_lang_initialization): ...this.
589 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
590 (gdbscm_initialize): ...this, update comment at definition.
591 (guile_extension_ops): Update.
592 * main.c (captured_main_1): Update call to
593 finish_ext_lang_initialization.
594 * python/python.c (gdbpy_finish_initialization): Rename to...
595 (gdbpy_initialize): ...this, update comment at definition, and
596 update call to do_finish_initialization.
597 (python_extension_ops): Update.
598 (do_finish_initialization): Rename to...
599 (do_initialize): ...this, and update comment.
600
1178f01a
AB
6012021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * main.c (captured_main_1): Add a call to
604 finish_ext_lang_initialization.
605 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
606
880ae75a
AB
6072021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
610 (gdbscm_finish_initialization): Add code moved from
611 _initialize_guile.
612 (_initialize_guile): Move code to gdbscm_finish_initialization.
613 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
614 _initialize_scm_arch.
615 (_initialize_scm_arch): New function.
616 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
617 into _initialize_scm_block.
618 (_initialize_scm_block): New function.
619 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
620 into _initialize_scm_frame.
621 (_initialize_scm_frame): New function.
622 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
623 into _initialize_scm_objfile.
624 (_initialize_scm_objfile): New function.
625 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
626 code into _initialize_scm_progspace.
627 (_initialize_scm_progspace): New function.
628 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
629 into _initialize_scm_symbol.
630 (_initialize_scm_symbol): New function.
631 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
632 into _initialize_scm_symtab.
633 (_initialize_scm_symtab): New function.
634 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
635 _initialize_scm_type.
636 (_initialize_scm_type): New function.
637
8e3685bf
AB
6382021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 * python/py-arch.c (_initialize_py_arch): New function.
641 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
642 * python/py-block.c (_initialize_py_block): New function.
643 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
644 * python/py-inferior.c (_initialize_py_inferior): New function.
645 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
646 * python/py-objfile.c (_initialize_py_objfile): New function.
647 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
648 * python/py-progspace.c (_initialize_py_progspace): New function.
649 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
650 * python/py-registers.c (_initialize_py_registers): New function.
651 (gdbpy_initialize_registers): Move code to
652 _initialize_py_registers.
653 * python/py-symbol.c (_initialize_py_symbol): New function.
654 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
655 * python/py-symtab.c (_initialize_py_symtab): New function.
656 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
657 * python/py-type.c (_initialize_py_type): New function.
658 (gdbpy_initialize_types): Move code to _initialize_py_type.
659 * python/py-unwind.c (_initialize_py_unwind): New function.
660 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
661 * python/python.c (_initialize_python): Move call to
662 do_start_initialization to gdbpy_finish_initialization.
663 (gdbpy_finish_initialization): Add call to
664 do_start_initialization.
665
913832e9
AB
6662021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
667
668 * extension.c (struct scoped_default_signal): New struct.
669 (scoped_default_sigint): New typedef.
670 (finish_ext_lang_initialization): Make use of
671 scoped_default_sigint.
672
a3b5ef3e
AB
6732021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
674
675 * main.c (captured_main_1): Don't pass argument to gdb_init.
676 * top.c (gdb_init): Remove unused argument, and add header
677 comment.
678 * top.h (gdb_init): Remove argument.
679
b9f90c72
LM
6802021-04-27 Luis Machado <luis.machado@linaro.org>
681
682 * psymtab.c (psymbol_functions::dump): Output newline.
683 Remove wrap.
684 * symmisc.c (dump_objfile): Likewise.
685
2c473def
MW
6862021-04-27 Michael Weghorn <m.weghorn@posteo.de>
687 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
690 when attaching the 'auto_load_new_objfile' observer, so
691 other observers can specify it as a dependency.
692 * gdb/auto-load.h (struct token): Declare
693 'auto_load_new_objfile_observer_token' as token to be used
694 for the 'auto_load_new_objfile' observer.
695 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
696 'python_new_objfile' observer depend on 'auto_load_new_objfile'
697 observer, so it gets notified after the latter.
698
9a6e099f
MW
6992021-04-27 Michael Weghorn <m.weghorn@posteo.de>
700 Simon Marchi <simon.marchi@polymtl.ca>
701
702 * unittests/observable-selftests.c (dependency_test_counters):
703 New.
704 (observer_token0, observer_token1, observer_token2,
705 observer_token3, observer_token4, observer_token5): New.
706 (struct dependency_observer_data): New struct.
707 (observer_dependency_test_callback): New function.
708 (test_observers): New.
709 (run_dependency_test): New function.
710 (test_dependency): New.
711 (_initialize_observer_selftest): Register dependency test.
712
bea3329b
SM
7132021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
714
715 PR gdb/27773
716 * cli/cli-dump.c (dump_binary_file): Check result of
717 gdb_fopen_cloexec.
718
c290cb01
ST
7192021-04-25 Sergei Trofimovich <siarheit@google.com>
720
721 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
722 by passing `process_stratum_target*` parameter.
723
fbb46296
LS
7242021-04-25 Lancelot Six <lsix@lancelotsix.com>
725
726 PR gdb/22640
727 * typeprint.h (struct type_print_options): Add print_in_hex
728 flag.
729 (struct print_offset_data): Add print_in_hex flag, add a
730 constructor accepting a type_print_options* argument.
731 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
732 default value for print_in_hex.
733 (print_offset_data::indentation): Allow more horizontal space.
734 (print_offset_data::print_offset_data): Add ctor.
735 (print_offset_data::maybe_print_hole, print_offset_data::update):
736 Handle the print_in_hex flag.
737 (whatis_exp): Handle 'x' and 'd' flags.
738 (print_offsets_and_sizes_in_hex): Declare.
739 (set_print_offsets_and_sizes_in_hex): Create.
740 (show_print_offsets_and_sizes_in_hex): Create.
741 (_initialize_typeprint): Update help message for the ptype
742 command, register the 'set print type hex' and 'show print type
743 hex' commands.
744 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
745 (c_type_print_base): Construct the print_offset_data
746 object using the type_print_optons parameter.
747 * rust-lang.c (rust_language::print_type): Construct the
748 print_offset_data object using the type_print_optons parameter.
749 * NEWS: Mention the new flags of the ptype command.
750
18bbba46
LS
7512021-04-25 Lancelot Six <lsix@lancelotsix.com>
752
753 * typeprint.h (struct type_print_options): Move before
754 print_offset_data.
755
77393c9b
JB
7562021-04-25 Joel Brobecker <brobecker@adacore.com>
757
758 GDB 10.2 released.
759
98c897e3
SM
7602021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
761
762 * observable.c (observer_debug): Change to bool.
763
9fc29955
AB
7642021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
765
766 * dwarf2/read.c: Add 'unordered_set' include.
767 (dwarf2_base_index_functions::map_symbol_filenames): Replace
768 'visited' hash table with 'qfn_cache' unordered_set. Remove use
769 of per_Bfd->filenames_cache cache, and use function local
770 filenames_cache instead. Reindent.
771 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
772
0406545d
SM
7732021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
774
775 * breakpoint.c (iterate_over_bp_locations): Change callback to
776 function view, remove data parameter.
777 * breakpoint.h (iterate_over_bp_locations): Likewise.
778 * record-full.c (record_full_sync_record_breakpoints): Remove
779 data parameter.
780
432ce4cf
TT
7812021-04-22 Tom Tromey <tom@tromey.com>
782
783 * c-typeprint.c (c_type_print_base_struct_union): Use
784 print_spaces_filtered_with_print_options.
785
e25d6d93
SM
7862021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
787
788 PR gdb/27757
789 * python/py-type.c (typy_range): Check that bounds are constant
790 before accessing them as such.
791 * guile/scm-type.c (gdbscm_type_range): Likewise.
792
4efeb0d3
TBA
7932021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
794
795 * Makefile.in (COMMON_SFILES): Remove continuations.c.
796 * inferior.c (inferior::add_continuation): New method, adapted
797 from 'add_inferior_continuation'.
798 (inferior::do_all_continuations): New method, adapted from
799 'do_all_inferior_continuations'.
800 (inferior::~inferior): Clear the list of continuations directly.
801 * inferior.h (class inferior) <continuations>: Rename into...
802 <m_continuations>: ...this and make private.
803 * continuations.c: Remove.
804 * continuations.h: Remove.
805 * event-top.c: Don't include "continuations.h".
806
807 Update the users below.
808 * inf-loop.c (inferior_event_handler)
809 * infcmd.c (attach_command)
810 (notice_new_inferior): Update.
811
c4c493de
TBA
8122021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
813
814 * inferior.h (class inferior) <continuations>: Change the type
815 to be an std::list of std::function's.
816 Update the references and uses below.
817 * continuations.c (struct continuation): Delete.
818 (make_continuation): Delete.
819 (do_my_continuations_1): Delete.
820 (do_my_continuations): Delete.
821 (discard_my_continuations_1): Delete.
822 (discard_my_continuations): Delete.
823 (add_inferior_continuation): Update.
824 (do_all_inferior_continuations): Update.
825 (discard_all_inferior_continuations): Update.
826 * continuations.h (add_inferior_continuation): Update to take
827 an std::function as the parameter.
828 * infcmd.c (struct attach_command_continuation_args): Delete.
829 (attach_command_continuation): Delete.
830 (attach_command_continuation_free_args): Delete.
831 (attach_command): Update.
832 (notice_new_inferior): Update.
833
1194676e
TBA
8342021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
835
836 * continuations.h: Update the general comment.
837 * inferior.h (class inferior) <continuations>: Update the comment.
838 * interps.c: Do not include "continuations.h".
839
35682f0a
TBA
8402021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
841
842 * continuations.h (do_all_inferior_continuations): Remove the 'err'
843 parameter. Update the references below.
844 * continuations.c (do_my_continuations_1)
845 (do_my_continuations)
846 (do_all_inferior_continuations): Update.
847 * inf-loop.c (inferior_event_handler): Update.
848 * infcmd.c (attach_command_continuation): Update.
849
6fee5eee
TBA
8502021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
851
852 * infcmd.c (attach_post_wait): Update the function comment.
853
27d0790a
TBA
8542021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
855
856 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
857 Update the references below.
858 (struct attach_command_continuation_args)
859 (attach_command_continuation)
860 (attach_command_continuation_free_args)
861 (attach_command)
862 (notice_new_inferior): Update to remove the reference to 'args'.
863
c39ebbf4
TV
8642021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
865 Tom de Vries <tdevries@suse.de>
866
867 PR remote/27710
868 * remote.c (remote_target_is_non_stop_p): New function.
869 * remote.h (remote_target_is_non_stop_p): Declare.
870 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
871 to check non-stopness using notif_state->remote rather current target.
872
22f80c0f
TT
8732021-04-22 Tom Tromey <tom@tromey.com>
874
875 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
876 (struct typed_val_int) <val>: Now ULONGEST.
877 (rust_parser::parse_array_type): Remove negative check.
878 (rust_lex_int_test): Change 'value' to ULONGEST.
879
05f3c0f0
AB
8802021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
881
882 * arch-utils.c (default_addressable_memory_unit_size): Return a
883 value based on bfd's bits per byte.
884
7e7a35fb
TT
8852021-04-21 Tom Tromey <tom@tromey.com>
886
887 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
888 unsigned char.
889 (struct dwarf2_per_cu_data): Rearrange.
890 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
891 unsigned char.
892 (struct comp_unit_head): Rearrange.
893 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
894
ff507520
TV
8952021-04-21 Tom de Vries <tdevries@suse.de>
896
897 PR build/27681
898 * configure.ac: Remove --without-included-regex/--with-included-regex.
899 * config.in: Regenerate.
900 * configure: Regenerate.
901 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
902
10a636cc
TBA
9032021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
904
905 * breakpoint.h (create_breakpoint): Add a new parameter,
906 'force_condition'.
907 * breakpoint.c (create_breakpoint): Use the 'force_condition'
908 argument when 'parse_extra' is false to check if the condition
909 is invalid at all of the breakpoint locations.
910 Update the users below.
911 (break_command_1)
912 (dprintf_command)
913 (trace_command)
914 (ftrace_command)
915 (strace_command)
916 (create_tracepoint_from_upload): Update.
917 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
918 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
919 * python/py-breakpoint.c (bppy_init): Update.
920 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
921
85c88e2a
TBA
9222021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
923
924 * breakpoint.c (print_one_breakpoint_location): Display "N" for
925 disabled-by-condition locations on MI-like output.
926 (breakpoint_1): Do not display the disabled-by-condition footnote
927 if the output is MI-like.
928
fd34472c
FC
9292021-04-21 Frederic Cambus <fred@statdns.com>
930
931 * syscalls/update-netbsd.sh: Fix script name display in usage, and
932 update year range in generated copyright notices.
933
184dcd81
FW
9342021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
935
936 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
937 qualifier_seq_noopt.
938
525174e8
FW
9392021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
940
941 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
942
f5dc2ee3
AB
9432021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
944
945 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
946 (producer_is_icc): Replace use of std::regex with gdb's
947 compiled_regex.
948
42c2c694
TT
9492021-04-17 Tom Tromey <tom@tromey.com>
950
951 PR gdb/23743:
952 * dwarf2/read.c (class offset_view): New.
953 (struct symbol_table_slot): Remove.
954 (struct mapped_index) <symbol_table, constant_pool>: Change type.
955 <symbol_name_index, symbol_vec_index>: New methods.
956 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
957 Rewrite.
958 (read_gdb_index_from_buffer): Update.
959 (struct dw2_symtab_iterator) <vec>: Change type.
960 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
961 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
962 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
963 <append_array, append_offset>: New methods.
964 (write_hash_table, add_address_entry, write_gdbindex_1)
965 (write_debug_names): Update.
966 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
967
da314dd3
TT
9682021-04-17 Tom Tromey <tom@tromey.com>
969
970 * dwarf2/index-write.c (write_psymtabs_to_index): Check
971 partial_symtabs.
972
0b7b2c2a
TT
9732021-04-17 Tom Tromey <tom@tromey.com>
974
975 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
976 from map_matching_symbols. Change parameters.
977 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
978 Rename from map_matching_symbols. Change parameters.
979 * dwarf2/read.c (struct dwarf2_gdb_index)
980 <expand_matching_symbols>: Rename from map_matching_symbols.
981 Change parameters.
982 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
983 Rename from map_matching_symbols. Change parameters.
984 (dwarf2_gdb_index::expand_matching_symbols): Rename from
985 dw2_map_matching_symbols. Change parameters.
986 (dwarf2_gdb_index::expand_matching_symbols): Remove old
987 implementation.
988 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
989 map_matching_symbols. Change parameters.
990 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
991 from map_matching_symbols. Change parameters.
992 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
993 map_matching_symbols. Change parameters.
994 * ada-lang.c (map_matching_symbols): New function.
995 (add_nonlocal_symbols): Update.
996
90160b57
TT
9972021-04-17 Tom Tromey <tom@tromey.com>
998
999 * quick-symbol.h (struct quick_symbol_functions)
1000 <expand_symtabs_with_fullname>: Remove.
1001 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1002 Remove.
1003 * psympriv.h (struct psymbol_functions)
1004 <expand_symtabs_with_fullname>: Remove.
1005 * dwarf2/read.c (struct dwarf2_base_index_functions)
1006 <expand_symtabs_with_fullname>: Remove.
1007 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1008 Remove.
1009 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1010 Update comment.
1011 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1012 Rewrite.
1013
7089bd88
TT
10142021-04-17 Tom Tromey <tom@tromey.com>
1015
1016 * symfile-debug.c (objfile::expand_symtabs_for_function):
1017 Rewrite.
1018 * quick-symbol.h (struct quick_symbol_functions)
1019 <expand_symtabs_for_function>: Remove.
1020 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1021 Remove.
1022 * psympriv.h (struct psymbol_functions)
1023 <expand_symtabs_for_function>: Remove.
1024 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1025 Update comment.
1026 * dwarf2/read.c (struct dwarf2_gdb_index)
1027 <expand_symtabs_for_function>: Remove.
1028 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1029 Remove.
1030 (find_slot_in_mapped_hash): Remove.
1031 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1032 (dw2_symtab_iter_init): Remove one overload.
1033 (dwarf2_gdb_index::expand_symtabs_for_function)
1034 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1035
536a40f3
TT
10362021-04-17 Tom Tromey <tom@tromey.com>
1037
1038 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1039 Rewrite.
1040 * quick-symbol.h (struct quick_symbol_functions)
1041 <map_symtabs_matching_filename>: Remove.
1042 * psymtab.c (partial_map_expand_apply)
1043 (psymbol_functions::map_symtabs_matching_filename): Remove.
1044 * psympriv.h (struct psymbol_functions)
1045 <map_symtabs_matching_filename>: Remove.
1046 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1047 Update comment.
1048 * dwarf2/read.c (struct dwarf2_base_index_functions)
1049 <map_symtabs_matching_filename>: Remove.
1050 (dw2_map_expand_apply)
1051 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1052 Remove.
1053
84d865e3
TT
10542021-04-17 Tom Tromey <tom@tromey.com>
1055
1056 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1057 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1058 Remove.
1059 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1060 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1061 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1062 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1063 Remove.
1064 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1065 (dwarf2_gdb_index::lookup_symbol)
1066 (dwarf2_debug_names_index::lookup_symbol): Remove.
1067
3bfa51a7
TT
10682021-04-17 Tom Tromey <tom@tromey.com>
1069
1070 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1071 * symmisc.c (maintenance_expand_symtabs): Update.
1072 * symfile.c (expand_symtabs_matching): Update.
1073 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1074 parameter.
1075 * quick-symbol.h (struct quick_symbol_functions)
1076 <expand_symtabs_matching>: Add 'domain' parameter.
1077 * psymtab.c (recursively_search_psymtabs)
1078 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1079 parameter.
1080 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1081 Add 'domain' parameter.
1082 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1083 'domain' parameter.
1084 * linespec.c (iterate_over_all_matching_symtabs): Update.
1085 * dwarf2/read.c (struct dwarf2_gdb_index)
1086 <expand_symtabs_matching>: Add 'domain' parameter.
1087 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1088 'domain' parameter.
1089 (dw2_expand_symtabs_matching)
1090 (dwarf2_gdb_index::expand_symtabs_matching)
1091 (dw2_debug_names_iterator)
1092 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1093 parameter.
1094
03a8ea51
TT
10952021-04-17 Tom Tromey <tom@tromey.com>
1096
1097 * symtab.c (global_symbol_searcher::expand_symtabs)
1098 (default_collect_symbol_completion_matches_break_on): Update.
1099 * symmisc.c (maintenance_expand_symtabs): Update.
1100 * symfile.h (expand_symtabs_matching): Add search_flags
1101 parameter.
1102 * symfile.c (expand_symtabs_matching): Add search_flags
1103 parameter.
1104 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1105 search_flags parameter.
1106 * quick-symbol.h (struct quick_symbol_functions)
1107 <expand_symtabs_matching>: Add search_flags parameter.
1108 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1109 * psymtab.c (recursively_search_psymtabs)
1110 (psymbol_functions::expand_symtabs_matching): Add search_flags
1111 parameter.
1112 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1113 Add search_flags parameter.
1114 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1115 search_flags parameter.
1116 * linespec.c (iterate_over_all_matching_symtabs): Update.
1117 * dwarf2/read.c (struct dwarf2_gdb_index)
1118 <expand_symtabs_matching>: Add search_flags parameter.
1119 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1120 search_flags parameter.
1121 (dw2_map_matching_symbols): Update.
1122 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1123 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1124 parameter.
1125 (dw2_debug_names_iterator): Change block_index to search flags.
1126 <m_block_index>: Likewise.
1127 (dw2_debug_names_iterator::next)
1128 (dwarf2_debug_names_index::lookup_symbol)
1129 (dwarf2_debug_names_index::expand_symtabs_for_function)
1130 (dwarf2_debug_names_index::map_matching_symbols)
1131 (dwarf2_debug_names_index::map_matching_symbols): Update.
1132 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1133 search_flags parameter.
1134 * ada-lang.c (ada_add_global_exceptions)
1135 (collect_symbol_completion_matches): Update.
1136
df35e626
TT
11372021-04-17 Tom Tromey <tom@tromey.com>
1138
1139 * symtab.c (default_collect_symbol_completion_matches_break_on):
1140 Update.
1141 * symfile.h (expand_symtabs_matching): Return bool.
1142 * symfile.c (expand_symtabs_matching): Return bool.
1143 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1144 bool.
1145 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1146 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1147 bool.
1148 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1149 bool.
1150 * psympriv.h (struct psymbol_functions)
1151 <expand_symtabs_matching>: Return bool.
1152 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1153 bool.
1154 * dwarf2/read.c (struct dwarf2_gdb_index)
1155 <expand_symtabs_matching>: Return bool.
1156 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1157 Return bool.
1158 (dw2_expand_symtabs_matching_symbol): Return bool.
1159 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1160 (dw2_expand_symtabs_matching)
1161 (dwarf2_gdb_index::expand_symtabs_matching)
1162 (dwarf2_debug_names_index::expand_symtabs_matching)
1163 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1164
e357e990
TT
11652021-04-17 Tom Tromey <tom@tromey.com>
1166
1167 * quick-symbol.h (enum block_search_flag_values): New.
1168 (block_search_flags): New enum flags type.
1169
3cbc7ac3
TT
11702021-04-16 Tom Tromey <tom@tromey.com>
1171
1172 * rust-parse.c: New file.
1173 * rust-exp.y: Remove.
1174 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1175 (SFILES): Remove rust-exp.y.
1176 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1177
1b6b755e
LM
11782021-04-16 Luis Machado <luis.machado@linaro.org>
1179
1180 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1181
c45ecc9d
JB
11822021-04-15 John Baldwin <jhb@FreeBSD.org>
1183
1184 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1185 use throughout file.
1186
a15a276b
TT
11872021-04-15 Tom Tromey <tromey@adacore.com>
1188
1189 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1190 arrays.
1191
644a2e75
TT
11922021-04-15 Tom Tromey <tromey@adacore.com>
1193
1194 * printcmd.c (print_variable_and_value): Use
1195 common_val_print_checked.
1196
9e5e03df
TT
11972021-04-15 Tom Tromey <tromey@adacore.com>
1198
1199 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1200 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1201 Update.
1202 * p-exp.y (variable): Update.
1203 * m2-exp.y (variable): Update.
1204 * go-exp.y (variable): Update.
1205 * expprint.c (dump_for_expression): New overload.
1206 * expop.h (check_objfile): New overload.
1207 (check_constant): New overload.
1208 (class var_value_operation): Use block_symbol.
1209 <get_symbol>: Rewrite.
1210 * eval.c (var_value_operation::evaluate)
1211 (var_value_operation::evaluate_funcall)
1212 (var_value_operation::evaluate_for_address)
1213 (var_value_operation::evaluate_for_address)
1214 (var_value_operation::evaluate_with_coercion)
1215 (var_value_operation::evaluate_for_sizeof)
1216 (var_value_operation::evaluate_for_cast): Update.
1217 * d-exp.y (PrimaryExpression): Update.
1218 * c-exp.y (variable): Update.
1219 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1220 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1221 (ada_var_value_operation::evaluate)
1222 (ada_var_value_operation::resolve)
1223 (ada_funcall_operation::resolve): Update.
1224 * ada-exp.y (write_var_from_sym, write_object_renaming)
1225 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1226 (maybe_overload): Update.
1227 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1228
5809fbf2
TT
12292021-04-15 Tom Tromey <tom@tromey.com>
1230 Andrew Burgess <andrew.burgess@embecosm.com>
1231
1232 * NEWS: Add entry.
1233 * main.c (captured_main_1): Call check_quiet_mode.
1234 * top.c (startup_quiet): New global.
1235 (check_quiet_mode): New function.
1236 (show_startup_quiet): New function.
1237 (init_main): Register new command.
1238 * top.h (check_quiet_mode): Declare.
1239
92e4e97a
AB
12402021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 PR cli/25956
1243 * NEWS: Mention new early init files and command line options.
1244 * config.in: Regenerate.
1245 * configure: Regenerate.
1246 * configure.ac: Define GDBEARLYINIT.
1247 * main.c (get_earlyinit_files): New function.
1248 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1249 CMDARG_EARLYINIT_COMMAND.
1250 (captured_main_1): Add support for new command line flags, and for
1251 processing startup files.
1252 (print_gdb_help): Include startup files in the output.
1253
54b4dcc5
AB
12542021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1255
1256 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1257 (relocate_file_path_maybe_in_datadir): ...this.
1258 (class gdb_initfile_finder): New class.
1259 (get_init_files): Now uses gdb_initfile_finder.
1260 (print_gdb_help): Print 'None found' when there are no init files.
1261
34dc0f95
TBA
12622021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1263
1264 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1265 corresponding child of the abstract DIE when iterating the
1266 children of the concrete DIE.
1267
329534fd
TV
12682021-04-13 Tom de Vries <tdevries@suse.de>
1269
1270 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1271 type to regoff_t *.
1272
d9d2ef05
LM
12732021-04-13 Luis Machado <luis.machado@linaro.org>
1274
1275 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1276 hex values.
1277
c8a37944
WS
12782021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1279
1280 * rs6000-tdep.c: Add support for single-stepping of
1281 prefixed instructions.
1282
b722acca
WS
12832021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1284
e3d528d7
WS
1285 PR gdb/27525
1286 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1287 handle the addpcis/lnia instruction.
1288
12892021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1290
b722acca
WS
1291 * MAINTAINERS (Write After Approval): Add myself.
1292
6ba4cb84
CL
12932021-4-12 Carl Love <cel@us.ibm.com>
1294
1295 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1296 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1297 float128.
1298
d4717483
SM
12992021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1302 * nat/windows-nat.h: Likewise.
1303
b3885679
EZ
13042021-04-10 Eli Zaretskii <eliz@gnu.org>
1305
1306 * windows-nat.c (windows_nat::handle_load_dll): Call
1307 windows_add_dll if get_image_name failed to glean the name of the
1308 DLL by using the lpImageName pointer.
1309 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1310 (windows_add_dll): Now does what windows_add_all_dlls did before,
1311 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1312 specifies the address where the DLL was loaded into the inferior,
1313 and looks for the single DLL loaded at that address.
1314
1ef6a596
LM
13152021-04-09 Luis Machado <luis.machado@linaro.org>
1316
1317 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1318
83a559f7
DQ
13192021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1320
1321 * darwin-nat.c (darwin_nat_target::resume): Remove status
1322 variable.
1323
16e311ab
FW
13242021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1325
1326 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1327 prologue end for Intel compilers.
1328 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1329 * producer.c (producer_is_icc_ge_19): New function.
1330 * producer.h (producer_is_icc_ge_19): New declaration.
1331
fbb3bcfc
FW
13322021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1333
1334 * producer.c: (producer_is_icc): Update for new version scheme.
1335 (producer_parsing_tests): Update names and expected results.
1336 * producer.h: (producer_is_icc): Update comment accordingly.
1337
e97007b6
SM
13382021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1339
1340 * target.h (struct target_ops) <follow_fork>: Return void.
1341 (target_follow_fork): Likewise.
1342 * target.c (default_follow_fork): Likewise.
1343 (target_follow_fork): Likewise.
1344 * infrun.c (follow_fork_inferior): Adjust.
1345 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1346 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1347 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1348 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1349 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1350 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1351 * remote.c (class remote_target) <follow_fork>: Likewise.
1352 (remote_target::follow_fork): Likewise.
1353 * target-delegates.c: Re-generate.
1354
dc2b480f
WP
13552021-04-07 Weimin Pan <weimin.pan@oracle.com>
1356
1357 * ctfread.c (fetch_tid_type): New function, use throughout file.
1358 (read_forward_type): New function.
1359 (read_type_record): Call read_forward_type.
1360
0a703a4c
AB
13612021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1362
1363 * f-exp.h (class fortran_structop_operation): New class.
1364 * f-exp.y (exp): Create fortran_structop_operation instead of the
1365 generic structop_operation.
1366 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1367 expression as EVAL_NORMAL if the result type was dynamic so we can
1368 extract the actual array bounds.
1369 (fortran_structop_operation::evaluate): New function.
1370
13712021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * eval.c (evaluate_subexp_standard): Remove
1374 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1375 STRUCTOP_PTR.
1376
30ab3586
AB
13772021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1378
1379 * valops.c (value_cast): Call value_deeply_equal before performing
1380 any cast.
1381
5e18990f
AB
13822021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1383
1384 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1385 the function.
1386
56d467f4
CT
13872021-04-07 Caroline Tice <cmtice@google.com>
1388
1389 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1390 the search paths used resolve relative location of .dwo file.
1391
1fd999d9
AB
13922021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1395 assert.
1396 (dwarf2_section_info::get_file_name): Add an assert.
1397 (dwarf2_section_info::read_string): Display a minimal, sane error
1398 when the dwarf2_section_info is not associated with a bfd section.
1399
79c02443
AB
14002021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * top.c (staged_gdb_datadir): Update comment.
1403 (set_gdb_datadir): Copy the value of gdb_datadir back into
1404 staged_datadir.
1405 (init_main): Initialise staged_gdb_datadir.
1406
340d00fb
TV
14072021-04-06 Tom de Vries <tdevries@suse.de>
1408
1409 PR breakpoints/25884
1410 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1411 stepping range.
1412
d811a7cf
TV
14132021-04-06 Tom de Vries <tdevries@suse.de>
1414
1415 PR tui/27680
1416 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1417 to style.parse.
1418
306b445a
SM
14192021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 * avr-tdep.c (avr_frame_unwind_cache): Use
1422 trad_frame_saved_reg::is_addr.
1423
9161c89a
SM
14242021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1425
1426 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1427 adjust callers.
1428
0072c873
SM
14292021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1432 objfile parameter for objfile_per_bfd_storage, adjust callers.
1433 (struct standard_psymtab) <standard_psymtab>: Likewise.
1434 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1435 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1436 * ctfread.c (struct ctf_psymtab): Likewise.
1437 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1438 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1439 (dwarf2_create_include_psymtab): Likewise.
1440 * objfiles.h (struct objfile_per_bfd_storage)
1441 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1442 <get_bfd>: New method.
1443 <m_bfd>: New field.
1444 * objfiles.c (get_objfile_bfd_data): Adjust.
1445
9984dd99
SM
14462021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * psymtab.c (partial_symtab::partial_symtab): Change
1449 last_objfile_name to be an std::string.
1450 * symfile.c (allocate_symtab): Likewise.
1451
4a4f97c1
SM
14522021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1455 methods.
1456 (struct objfile) <intern>: Use
1457 objfile::objfile_per_bfd_storage::intern.
1458
0672875f
SM
14592021-04-01 Simon Marchi <simon.marchi@efficios.com>
1460
1461 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1462 with type::is_flag_enum.
1463
9902b327
SM
14642021-04-01 Simon Marchi <simon.marchi@efficios.com>
1465
1466 * gdbtypes.h (struct type) <is_flag_enum,
1467 set_is_flag_enum>: New methods.
1468 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1469 write call sites to use type::set_is_flag_enum.
1470
3bc440a2
SM
14712021-04-01 Simon Marchi <simon.marchi@efficios.com>
1472
1473 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1474 with type::is_declared_class.
1475
aa70e35c
SM
14762021-04-01 Simon Marchi <simon.marchi@efficios.com>
1477
1478 * gdbtypes.h (struct type) <is_declared_class,
1479 set_is_declared_class>: New methods.
1480 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1481 write call sites to use type::set_is_declared_class.
1482
bfb9f5dc
BS
14832021-02-28 Boris Staletic <boris.staletic@gmail.com>
1484
1485 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1486 to avoid deprecation warnings.
1487
733f5eea
ML
14882021-04-01 Martin Liska <mliska@suse.cz>
1489
1490 * cp-name-parser.y: Use startswith instead of strncmp.
1491 * m2-exp.y: Likewise.
1492 * macroexp.c (substitute_args): Likewise.
1493 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1494 * rust-exp.y: Likewise.
1495
af82f89d
TT
14962021-03-31 Tom Tromey <tom@tromey.com>
1497
1498 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1499 with dw2_map_matching_symbols.
1500 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1501 dw2_expand_symtabs_matching.
1502
3570682a
TT
15032021-03-31 Tom Tromey <tromey@adacore.com>
1504
1505 * dwarf2/stringify.h: Fix typo.
1506
8a91fbdf
SM
15072021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 PR gdb/27541
1510 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1511 with objfiles using READNOW.
1512
9f67fc59
TT
15132021-03-29 Tom Tromey <tromey@adacore.com>
1514
1515 * top.c (check_frame_language_change): Update.
1516 * language.c (language_info): Remove parameter.
1517 * language.h (language_info): Remove parameter.
1518
9b8ffbf4
LM
15192021-03-29 Luis Machado <luis.machado@linaro.org>
1520
1521 * compile/compile.c (get_args): Don't add empty argv entries.
1522
25b48839
RO
15232021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1524
1525 gdb:
1526 * procfs.c (procfs_target::attach): Define inf.
1527 Use it.
1528 (procfs_target::create_inferior): Likewise.
1529
edc02ceb
TT
15302021-03-28 Tom Tromey <tom@tromey.com>
1531
1532 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1533 (elf_symfile_read): Simplify.
1534 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1535 (make_lazy_dwarf_reader): New function.
1536 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1537 (dwarf2_initialize_objfile): Return void. Remove index_kind
1538 parameter. Push on 'qf' list.
1539 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1540 type. Remove 'index_kind' parameter.
1541 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1542
6e23d91a
TT
15432021-03-27 Tom Tromey <tom@tromey.com>
1544
1545 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1546
594b8948
TT
15472021-03-27 Tom Tromey <tom@tromey.com>
1548
1549 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1550
efe1ecd8
LS
15512021-03-26 Lancelot Six <lsix@lancelotsix.com>
1552
1553 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1554 rid of 'local'.
1555
f4655dee
TT
15562021-03-26 Tom Tromey <tom@tromey.com>
1557
1558 * symtab.c (struct output_source_filename_data): Add 'output'
1559 method and operator().
1560 (output_source_filename_data::output): Rename from
1561 output_source_filename.
1562 (output_partial_symbol_filename): Remove.
1563 (info_sources_command): Update.
1564 (struct add_partial_filename_data): Add operator().
1565 (add_partial_filename_data::operator()): Rename from
1566 maybe_add_partial_symtab_filename.
1567 (make_source_files_completion_list): Update.
1568 * symfile.c (quick_symbol_functions): Update.
1569 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1570 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1571 'need_fullname'. Remove 'data' parameter.
1572 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1573 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1574 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1575 Change type of 'fun' and 'need_fullname'. Remove 'data'
1576 parameter.
1577 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1578 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1579 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1580 parameter.
1581 (mi_cmd_file_list_exec_source_files): Update.
1582 * dwarf2/read.c
1583 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1584
2315bb2d
TT
15852021-03-26 Tom Tromey <tom@tromey.com>
1586
1587 * ada-lang.c (struct match_data): Add operator().
1588 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1589 (callback): Remove 'callback'.
1590
e2cd5ca4
TT
15912021-03-26 Tom Tromey <tom@tromey.com>
1592
1593 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1594 call make_ignore_params once.
1595
cd43f63e
TT
15962021-03-26 Tom Tromey <tom@tromey.com>
1597
1598 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1599 "user" check.
1600
b4b1a226
SM
16012021-03-26 Simon Marchi <simon.marchi@efficios.com>
1602 Pedro Alves <pedro@palves.net>
1603
1604 * async-event.c: Include "infrun.h".
1605 (async_event_handler_marked): New.
1606 * async-event.h (async_event_handler_marked): Declare.
1607 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1608 inferior before calling target method. Don't commit-resumed if
1609 target_has_pending_events is true.
1610 * remote.c (remote_target::has_pending_events): New.
1611 * target-delegates.c: Regenerate.
1612 * target.c (target_has_pending_events): New.
1613 * target.h (target_ops::has_pending_events): New target method.
1614 (target_has_pending_events): New.
1615
1192f124
SM
16162021-03-26 Simon Marchi <simon.marchi@efficios.com>
1617 Pedro Alves <pedro@palves.net>
1618
1619 * infcmd.c (run_command_1, attach_command, detach_command)
1620 (interrupt_target_1): Use scoped_disable_commit_resumed.
1621 * infrun.c (do_target_resume): Remove
1622 target_commit_resume call.
1623 (commit_resume_all_targets): Remove.
1624 (maybe_set_commit_resumed_all_targets): New.
1625 (maybe_call_commit_resumed_all_targets): New.
1626 (enable_commit_resumed): New.
1627 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1628 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1629 (scoped_disable_commit_resumed::reset)
1630 (scoped_disable_commit_resumed::reset_and_commit)
1631 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1632 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1633 New.
1634 (proceed): Use scoped_disable_commit_resumed and
1635 maybe_call_commit_resumed_all_targets.
1636 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1637 * infrun.h (struct scoped_disable_commit_resumed): New.
1638 (maybe_call_commit_resumed_all_process_targets): New.
1639 (struct scoped_enable_commit_resumed): New.
1640 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1641 * process-stratum-target.h (class process_stratum_target):
1642 <commit_resumed_state>: New.
1643 * record-full.c (record_full_wait_1): Change commit_resumed_state
1644 around calling commit_resumed.
1645 * remote.c (class remote_target) <commit_resume>: Rename to...
1646 <commit_resumed>: ... this.
1647 (struct stop_reply): Move up.
1648 (remote_target::commit_resume): Rename to...
1649 (remote_target::commit_resumed): ... this. Check if there is any
1650 thread pending vCont resume.
1651 (remote_target::remote_stop_ns): Generate stop replies for resumed
1652 but pending vCont threads.
1653 (remote_target::wait_ns): Add gdb_assert.
1654 * target-delegates.c: Regenerate.
1655 * target.c (target_wait, target_resume): Assert that the current
1656 process_stratum target isn't in commit-resumed state.
1657 (defer_target_commit_resume): Remove.
1658 (target_commit_resume): Remove.
1659 (target_commit_resumed): New.
1660 (make_scoped_defer_target_commit_resume): Remove.
1661 (target_stop): Assert that the current process_stratum target
1662 isn't in commit-resumed state.
1663 * target.h (struct target_ops) <commit_resume>: Rename to ...
1664 <commit_resumed>: ... this.
1665 (target_commit_resume): Remove.
1666 (target_commit_resumed): New.
1667 (make_scoped_defer_target_commit_resume): Remove.
1668 * top.c (wait_sync_command_done): Use
1669 scoped_enable_commit_resumed.
1670
e5b9b39f
PA
16712021-03-26 Pedro Alves <pedro@palves.net>
1672
1673 * target.c (target_always_non_stop_p): Also check whether the
1674 target can async.
1675
bab287cd
TT
16762021-03-26 Tom Tromey <tom@tromey.com>
1677
1678 * dwarf2/read.c (dwarf2_read_debug_names)
1679 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1680 (dw2_debug_names_iterator::next, create_type_unit_group):
1681 Simplify.
1682
eff4f69d
PA
16832021-03-25 Pedro Alves <pedro@palves.net>
1684
1685 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1686 around setting the breakpoint.
1687
323fd5b9
PA
16882021-03-25 Pedro Alves <pedro@palves.net>
1689
1690 * remote.c
1691 (remote_target::check_pending_events_prevent_wildcard_vcont):
1692 Check whether the event's ptid is not null_ptid before looking up
1693 the corresponding inferior.
1694
d3cbca38
CD
16952021-03-24 Changbin Du <changbin.du@gmail.com>
1696
1697 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1698 read_code.
1699
328d42d8
SM
17002021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1701
1702 * target.h (current_top_target): Remove, make callers use the
1703 current inferior instead.
1704 * target.c (current_top_target): Remove.
1705
d777bf0d
SM
17062021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1707
1708 * target.h (target_shortname): Change to function declaration.
1709 (target_longname): Likewise.
1710 (target_attach_no_wait): Likewise.
1711 (target_post_attach): Likewise.
1712 (target_prepare_to_store): Likewise.
1713 (target_supports_enable_disable_tracepoint): Likewise.
1714 (target_supports_string_tracing): Likewise.
1715 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1716 (target_supports_dumpcore): Likewise.
1717 (target_dumpcore): Likewise.
1718 (target_can_run_breakpoint_commands): Likewise.
1719 (target_files_info): Likewise.
1720 (target_post_startup_inferior): Likewise.
1721 (target_insert_fork_catchpoint): Likewise.
1722 (target_remove_fork_catchpoint): Likewise.
1723 (target_insert_vfork_catchpoint): Likewise.
1724 (target_remove_vfork_catchpoint): Likewise.
1725 (target_insert_exec_catchpoint): Likewise.
1726 (target_remove_exec_catchpoint): Likewise.
1727 (target_set_syscall_catchpoint): Likewise.
1728 (target_rcmd): Likewise.
1729 (target_can_lock_scheduler): Likewise.
1730 (target_can_async_p): Likewise.
1731 (target_is_async_p): Likewise.
1732 (target_execution_direction): Likewise.
1733 (target_extra_thread_info): Likewise.
1734 (target_pid_to_exec_file): Likewise.
1735 (target_thread_architecture): Likewise.
1736 (target_find_memory_regions): Likewise.
1737 (target_make_corefile_notes): Likewise.
1738 (target_get_bookmark): Likewise.
1739 (target_goto_bookmark): Likewise.
1740 (target_stopped_by_watchpoint): Likewise.
1741 (target_stopped_by_sw_breakpoint): Likewise.
1742 (target_supports_stopped_by_sw_breakpoint): Likewise.
1743 (target_stopped_by_hw_breakpoint): Likewise.
1744 (target_supports_stopped_by_hw_breakpoint): Likewise.
1745 (target_have_steppable_watchpoint): Likewise.
1746 (target_can_use_hardware_watchpoint): Likewise.
1747 (target_region_ok_for_hw_watchpoint): Likewise.
1748 (target_can_do_single_step): Likewise.
1749 (target_insert_watchpoint): Likewise.
1750 (target_remove_watchpoint): Likewise.
1751 (target_insert_hw_breakpoint): Likewise.
1752 (target_remove_hw_breakpoint): Likewise.
1753 (target_can_accel_watchpoint_condition): Likewise.
1754 (target_can_execute_reverse): Likewise.
1755 (target_get_ada_task_ptid): Likewise.
1756 (target_filesystem_is_local): Likewise.
1757 (target_trace_init): Likewise.
1758 (target_download_tracepoint): Likewise.
1759 (target_can_download_tracepoint): Likewise.
1760 (target_download_trace_state_variable): Likewise.
1761 (target_enable_tracepoint): Likewise.
1762 (target_disable_tracepoint): Likewise.
1763 (target_trace_start): Likewise.
1764 (target_trace_set_readonly_regions): Likewise.
1765 (target_get_trace_status): Likewise.
1766 (target_get_tracepoint_status): Likewise.
1767 (target_trace_stop): Likewise.
1768 (target_trace_find): Likewise.
1769 (target_get_trace_state_variable_value): Likewise.
1770 (target_save_trace_data): Likewise.
1771 (target_upload_tracepoints): Likewise.
1772 (target_upload_trace_state_variables): Likewise.
1773 (target_get_raw_trace_data): Likewise.
1774 (target_get_min_fast_tracepoint_insn_len): Likewise.
1775 (target_set_disconnected_tracing): Likewise.
1776 (target_set_circular_trace_buffer): Likewise.
1777 (target_set_trace_buffer_size): Likewise.
1778 (target_set_trace_notes): Likewise.
1779 (target_get_tib_address): Likewise.
1780 (target_set_permissions): Likewise.
1781 (target_static_tracepoint_marker_at): Likewise.
1782 (target_static_tracepoint_markers_by_strid): Likewise.
1783 (target_traceframe_info): Likewise.
1784 (target_use_agent): Likewise.
1785 (target_can_use_agent): Likewise.
1786 (target_augmented_libraries_svr4_read): Likewise.
1787 (target_log_command): Likewise.
1788 * target.c (target_shortname): New.
1789 (target_longname): New.
1790 (target_attach_no_wait): New.
1791 (target_post_attach): New.
1792 (target_prepare_to_store): New.
1793 (target_supports_enable_disable_tracepoint): New.
1794 (target_supports_string_tracing): New.
1795 (target_supports_evaluation_of_breakpoint_conditions): New.
1796 (target_supports_dumpcore): New.
1797 (target_dumpcore): New.
1798 (target_can_run_breakpoint_commands): New.
1799 (target_files_info): New.
1800 (target_post_startup_inferior): New.
1801 (target_insert_fork_catchpoint): New.
1802 (target_remove_fork_catchpoint): New.
1803 (target_insert_vfork_catchpoint): New.
1804 (target_remove_vfork_catchpoint): New.
1805 (target_insert_exec_catchpoint): New.
1806 (target_remove_exec_catchpoint): New.
1807 (target_set_syscall_catchpoint): New.
1808 (target_rcmd): New.
1809 (target_can_lock_scheduler): New.
1810 (target_can_async_p): New.
1811 (target_is_async_p): New.
1812 (target_execution_direction): New.
1813 (target_extra_thread_info): New.
1814 (target_pid_to_exec_file): New.
1815 (target_thread_architecture): New.
1816 (target_find_memory_regions): New.
1817 (target_make_corefile_notes): New.
1818 (target_get_bookmark): New.
1819 (target_goto_bookmark): New.
1820 (target_stopped_by_watchpoint): New.
1821 (target_stopped_by_sw_breakpoint): New.
1822 (target_supports_stopped_by_sw_breakpoint): New.
1823 (target_stopped_by_hw_breakpoint): New.
1824 (target_supports_stopped_by_hw_breakpoint): New.
1825 (target_have_steppable_watchpoint): New.
1826 (target_can_use_hardware_watchpoint): New.
1827 (target_region_ok_for_hw_watchpoint): New.
1828 (target_can_do_single_step): New.
1829 (target_insert_watchpoint): New.
1830 (target_remove_watchpoint): New.
1831 (target_insert_hw_breakpoint): New.
1832 (target_remove_hw_breakpoint): New.
1833 (target_can_accel_watchpoint_condition): New.
1834 (target_can_execute_reverse): New.
1835 (target_get_ada_task_ptid): New.
1836 (target_filesystem_is_local): New.
1837 (target_trace_init): New.
1838 (target_download_tracepoint): New.
1839 (target_can_download_tracepoint): New.
1840 (target_download_trace_state_variable): New.
1841 (target_enable_tracepoint): New.
1842 (target_disable_tracepoint): New.
1843 (target_trace_start): New.
1844 (target_trace_set_readonly_regions): New.
1845 (target_get_trace_status): New.
1846 (target_get_tracepoint_status): New.
1847 (target_trace_stop): New.
1848 (target_trace_find): New.
1849 (target_get_trace_state_variable_value): New.
1850 (target_save_trace_data): New.
1851 (target_upload_tracepoints): New.
1852 (target_upload_trace_state_variables): New.
1853 (target_get_raw_trace_data): New.
1854 (target_get_min_fast_tracepoint_insn_len): New.
1855 (target_set_disconnected_tracing): New.
1856 (target_set_circular_trace_buffer): New.
1857 (target_set_trace_buffer_size): New.
1858 (target_set_trace_notes): New.
1859 (target_get_tib_address): New.
1860 (target_set_permissions): New.
1861 (target_static_tracepoint_marker_at): New.
1862 (target_static_tracepoint_markers_by_strid): New.
1863 (target_traceframe_info): New.
1864 (target_use_agent): New.
1865 (target_can_use_agent): New.
1866 (target_augmented_libraries_svr4_read): New.
1867 (target_log_command): New.
1868 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1869 * infrun.c (set_schedlock_func): Adjust.
1870 * mi/mi-main.c (exec_reverse_continue): Adjust.
1871 * reverse.c (exec_reverse_once): Adjust.
1872 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1873 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1874 * remote-sim.c (gdbsim_target::detach): Adjust.
1875 (gdbsim_target::files_info): Adjust.
1876
b64f703b
TT
18772021-03-24 Tom Tromey <tom@tromey.com>
1878
1879 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1880 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1881 (check_match, dw2_expand_symtabs_matching)
1882 (dwarf2_debug_names_index::map_matching_symbols)
1883 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1884
68f115f8
KS
18852021-03-24 Keith Seitz <keiths@redhat.com>
1886
1887 * compile/compile-cplus-types.c
1888 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1889 thinko.
1890
41c0087b
SM
18912021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1892
1893 * gdbarch.sh (gdbarch_data_registry): Make static.
1894 * gdbarch.c: Re-generate.
1895
ce192338
LM
18962021-03-24 Luis Machado <luis.machado@linaro.org>
1897
1898 * NEWS: Mention memory tagging changes.
1899
bef382e6
LM
19002021-03-24 Luis Machado <luis.machado@linaro.org>
1901
1902 * printcmd.c (decode_format): Handle the 'm' modifier.
1903 (do_examine): Display allocation tags when required/supported.
1904 (should_validate_memtags): New function.
1905 (print_command_1): Display memory tag mismatches.
1906 * valprint.c (show_memory_tag_violations): New function.
1907 (value_print_option_defs): Add new option "memory-tag-violations".
1908 (user_print_options) <memory_tag_violations>: Initialize to 1.
1909 * valprint.h (struct format_data) <print_tags>: New field.
1910 (value_print_options) <memory_tag_violations>: New field.
1911
48136e00
LM
19122021-03-24 Luis Machado <luis.machado@linaro.org>
1913
1914 * printcmd.c: Include gdbsupport/rsp-low.h.
1915 (memory_tag_list): New static global.
1916 (process_print_command_args): Factored out of
1917 print_command_1.
1918 (print_command_1): Use process_print_command_args.
1919 (show_addr_not_tagged, show_memory_tagging_unsupported)
1920 (memory_tag_command, memory_tag_print_tag_command)
1921 (memory_tag_print_logical_tag_command)
1922 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1923 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1924 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1925 functions.
1926 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1927
ffcc2a15
LM
19282021-03-24 Luis Machado <luis.machado@linaro.org>
1929
1930 * aarch64-linux-tdep.c
1931 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1932 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1933
cf44c9fa
LM
19342021-03-24 Luis Machado <luis.machado@linaro.org>
1935
1936 * aarch64-linux-tdep.c
1937 (aarch64_linux_report_signal_info): New function.
1938 (aarch64_linux_init_abi): Register
1939 aarch64_linux_report_signal_info as the report_signal_info hook.
1940 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1941 (SEGV_MTESERR): Define.
1942
b4a7d4fc
LM
19432021-03-24 Luis Machado <luis.machado@linaro.org>
1944
1945 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1946 (aarch64_linux_ltag_tests): New function.
1947 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1948
c7782e50
LM
19492021-03-24 Luis Machado <luis.machado@linaro.org>
1950
1951 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1952 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1953 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1954 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1955 functions.
1956 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1957 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1958 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1959 (aarch64_linux_get_ltag): New functions.
1960 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1961 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1962 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1963 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1964
1e735120
LM
19652021-03-24 Luis Machado <luis.machado@linaro.org>
1966
1967 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1968 bit.
1969 (struct smaps_data): New struct.
1970 (decode_vmflags): Handle the 'mt' flag.
1971 (parse_smaps_data): New function, refactored from
1972 linux_find_memory_regions_full.
1973 (linux_address_in_memtag_page): New function.
1974 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1975 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1976
93e447c6
LM
19772021-03-24 Luis Machado <luis.machado@linaro.org>
1978
1979 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1980 instead of char arrays.
1981
4601818e
LM
19822021-03-24 Luis Machado <luis.machado@linaro.org>
1983
1984 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1985 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1986 nat/aarch64-mte-linux-ptrace.h.
1987 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1988 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1989 override.
1990 <fetch_memtags>: New method override.
1991 <store_memtags>: New method override.
1992 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1993 (aarch64_linux_nat_target::fetch_memtags): New method.
1994 (aarch64_linux_nat_target::store_memtags): New method.
1995 * arch/aarch64-mte-linux.c: New file.
1996 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1997 (AARCH64_MTE_GRANULE_SIZE): Define.
1998 (aarch64_memtag_type): New enum.
1999 (aarch64_mte_get_tag_granules): New prototype.
2000 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2001 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2002 * nat/aarch64-mte-linux-ptrace.c: New file.
2003 * nat/aarch64-mte-linux-ptrace.h: New file.
2004
3f3bd8b8
LM
20052021-03-24 Luis Machado <luis.machado@linaro.org>
2006
2007 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2008 * nat/aarch64-mte-linux-ptrace.h: New file.
2009
5e984dbf
LM
20102021-03-24 Luis Machado <luis.machado@linaro.org>
2011
2012 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2013 (store_mteregs_to_thread): New function.
2014 (aarch64_linux_nat_target::fetch_registers): Update to call
2015 fetch_mteregs_from_thread.
2016 (aarch64_linux_nat_target::store_registers): Update to call
2017 store_mteregs_to_thread.
2018 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2019 (aarch64_cannot_store_register): Handle MTE registers.
2020 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2021 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2022 <has_mte>: New method.
2023 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2024
c1bd443b
LM
20252021-03-24 Luis Machado <luis.machado@linaro.org>
2026
2027 * aarch64-linux-nat.c
2028 (aarch64_linux_nat_target::read_description): Take MTE flag into
2029 account.
2030 Slight refactor to hwcap flag checking.
2031 * aarch64-linux-tdep.c
2032 (aarch64_linux_core_read_description): Likewise.
2033 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2034 MTE.
2035 (aarch64_read_description): Add mte_p parameter and update to use it.
2036 Update the documentation.
2037 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2038 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2039 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2040 (aarch64_create_target_description): Add mte_p parameter and update
2041 the code to use it.
2042 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2043 parameter.
2044 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2045 * features/aarch64-mte.c: New file, generated.
2046 * features/aarch64-mte.xml: New file.
2047
04245125
LM
20482021-03-24 Luis Machado <luis.machado@linaro.org>
2049
2050 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2051 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2052 * aarch64-linux-tdep.c: Likewise
2053 * arch/aarch64-mte-linux.h: New file.
2054
754487e2
LM
20552021-03-24 Luis Machado <luis.machado@linaro.org>
2056
2057 * remote: Include gdbsupport/selftest.h.
2058 (test_memory_tagging_functions): New function.
2059 (_initialize_remote): Register test_memory_tagging_functions.
2060
2c2e7f87
LM
20612021-03-24 Luis Machado <luis.machado@linaro.org>
2062
2063 * remote.c (PACKET_memory_tagging_feature): New enum.
2064 (remote_memory_tagging_p): New function.
2065 (remote_protocol_features): New "memory-tagging" entry.
2066 (remote_target::remote_query_supported): Handle memory tagging
2067 support.
2068 (remote_target::supports_memory_tagging): Implement.
2069 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2070 (create_store_memtags_request): New functions.
2071 (remote_target::fetch_memtags): Implement.
2072 (remote_target::store_memtags): Implement.
2073 (_initialize_remote): Add new "memory-tagging-feature"
2074 config command.
2075
c193949e
LM
20762021-03-24 Luis Machado <luis.machado@linaro.org>
2077
2078 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2079 (default_memtag_matches_p, default_set_memtags)
2080 (default_get_memtag): New functions.
2081 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2082 (default_memtag_matches_p, default_set_memtags)
2083 (default_get_memtag): New prototypes.
2084 * gdbarch.c: Regenerate.
2085 * gdbarch.h: Regenerate.
2086 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2087 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2088 (enum memtag_type): New enum.
2089
dbe692af
LM
20902021-03-24 Luis Machado <luis.machado@linaro.org>
2091
2092 * remote.c (remote_target) <supports_memory_tagging>: New method
2093 override.
2094 <fetch_memtags>: New method override.
2095 <store_memtags>: New method override.
2096 (remote_target::supports_memory_tagging): New method.
2097 (remote_target::fetch_memtags): New method.
2098 (remote_target::store_memtags): New method.
2099 * target-delegates.c: Regenerate.
2100 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2101 method.
2102 <fetch_memtags>: New virtual method.
2103 <store_memtags>: New virtual method.
2104 (target_supports_memory_tagging): Define.
2105 (target_fetch_memtags): Define.
2106 (target_store_memtags): Define.
2107 * target-debug.h (target_debug_print_size_t)
2108 (target_debug_print_const_gdb_byte_vector_r)
2109 (target_debug_print_gdb_byte_vector_r): New functions.
2110
66848ebc
SM
21112021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2112
2113 * target.h (target_longname): Remove.
2114
c8fbd44a
SM
21152021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2116
2117 * target.h (target_is_pushed): Remove, update callers to use
2118 inferior::target_is_pushed instead.
2119 * target.c (target_is_pushed): Remove.
2120
02980c56
SM
21212021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2122
2123 * target.h (push_target): Remove, update callers to use
2124 inferior::push_target.
2125 * target.c (push_target): Remove.
2126 * inferior.h (class inferior) <push_target>: New overload.
2127
fadf6add
SM
21282021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2129
2130 * target.h (unpush_target): Remove, update all callers
2131 to use `inferior::unpush_target` instead.
2132 (struct target_unpusher) <operator()>: Just declare.
2133 * target.c (unpush_target): Remove.
2134 (target_unpusher::operator()): New.
2135
702cf3f5
AB
21362021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2139 error.
2140 (process_full_comp_unit): Validate the top-level tag before
2141 processing the first DIE.
2142 (read_func_scope): Ensure we have a valid builder.
2143
46fec642
AB
21442021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * objc-lang.c (objc_demangle): Renamed to
2147 objc_language::demangle_symbol, and moved later in the file.
2148 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2149 member function.
2150 (objc_language::demangle_symbol): Defined outside of class
2151 declaration. The definition is the old objc_demangle with NULL
2152 changed to nullptr, and if conditions relating to nullptr pointers
2153 or null character checks made explicit.
2154 * objc-lang.h (objc_demangle): Delete declaration.
2155
08dedd66
ML
21562021-03-22 Martin Liska <mliska@suse.cz>
2157
2158 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2159 (_initialize_arm_tdep): Likewise.
2160
eb36a3eb
TT
21612021-03-20 Tom Tromey <tom@tromey.com>
2162
2163 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2164 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2165 * psymtab.h (make_psymbol_functions): Don't declare.
2166 * psymtab.c (make_psymbol_functions): Remove.
2167 (maintenance_print_psymbols): Update.
2168 * psympriv.h (struct psymbol_functions): Add no-argument
2169 constructor.
2170 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2171 <partial_symtabs>: Remove.
2172 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2173 * elfread.c (read_partial_symbols): Update.
2174 (elf_symfile_read): Remove check for existing partial symbols.
2175 Don't clear "qf".
2176 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2177 partial symbols.
2178 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2179 partial symtabs.
2180 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2181 parameter.
2182 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2183 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2184
e1114590
TT
21852021-03-20 Tom Tromey <tom@tromey.com>
2186
2187 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2188 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2189 * symfile-debug.c (objfile::has_partial_symbols)
2190 (objfile::find_last_source_symtab)
2191 (objfile::forget_cached_source_info)
2192 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2193 (objfile::print_stats, objfile::dump)
2194 (objfile::expand_symtabs_for_function)
2195 (objfile::expand_all_symtabs)
2196 (objfile::expand_symtabs_with_fullname)
2197 (objfile::map_matching_symbols)
2198 (objfile::expand_symtabs_matching)
2199 (objfile::find_pc_sect_compunit_symtab)
2200 (objfile::map_symbol_filenames)
2201 (objfile::find_compunit_symtab_by_address)
2202 (objfile::lookup_global_symbol_language)
2203 (objfile::require_partial_symbols): Update.
2204 * psymtab.c (maintenance_print_psymbols)
2205 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2206 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2207 * objfiles.c (objfile_relocate1): Update.
2208 * elfread.c (elf_symfile_read): Update.
2209
de909f0b
TT
22102021-03-20 Tom Tromey <tom@tromey.com>
2211
2212 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2213
caf8c1e5
TT
22142021-03-20 Tom Tromey <tom@tromey.com>
2215
2216 * psymtab.c (psymbol_functions::count_psyms): Rename.
2217 (psymbol_functions::print_stats): Update.
2218 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2219 method.
2220
3aa31ce7
TT
22212021-03-20 Tom Tromey <tom@tromey.com>
2222
2223 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2224 (psymbol_functions::find_pc_sect_psymtab): Rename.
2225 (psymbol_functions::find_pc_sect_compunit_symtab)
2226 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2227 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2228 Declare new method.
2229 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2230
7b249e47
TT
22312021-03-20 Tom Tromey <tom@tromey.com>
2232
2233 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2234 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2235 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2236 parameter.
2237 (add_psymbol_to_bcache): Remove.
2238 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2239 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2240 Likewise.
2241 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2242 <add_psymbol>: Likewise.
2243 (standard_psymtab, legacy_psymtab): Likewise.
2244 * mdebugread.c (parse_partial_symbols): Update.
2245 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2246 (handle_psymbol_enumerators): Update.
2247 (new_psymtab): Add partial_symtabs parameter.
2248 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2249 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2250 parameter.
2251 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2252 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2253 Update.
2254 * dbxread.c (read_dbx_symtab): Update.
2255 (start_psymtab): Add partial_symtabs parameter.
2256 (dbx_end_psymtab): Update.
2257 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2258 (ctf_psymtab): Add partial_symtabs parameter.
2259 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2260 Update.
2261 (scan_partial_symbols): Add partial_symtabs parameter.
2262 (scan_partial_symbols, elfctf_build_psymtabs)
2263 (ctf_psymtab_add_enums): Update.
2264
d1eef86d
TT
22652021-03-20 Tom Tromey <tom@tromey.com>
2266
2267 * symfile.c (read_symbols): Use objfile method.
2268 * symfile-debug.c (objfile::require_partial_symbols): New method.
2269 * psymtab.h (require_partial_symbols): Don't declare.
2270 * psymtab.c (require_partial_symbols): Use objfile method. Now
2271 static.
2272 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2273 (psymbol_functions::lookup_symbol)
2274 (psymbol_functions::lookup_global_symbol_language)
2275 (psymbol_functions::find_last_source_symtab)
2276 (psymbol_functions::forget_cached_source_info)
2277 (psymbol_functions::print_stats)
2278 (psymbol_functions::expand_symtabs_for_function)
2279 (psymbol_functions::expand_all_symtabs)
2280 (psymbol_functions::expand_symtabs_with_fullname)
2281 (psymbol_functions::map_symbol_filenames)
2282 (psymbol_functions::map_matching_symbols)
2283 (psymbol_functions::expand_symtabs_matching)
2284 (psymbol_functions::find_compunit_symtab_by_address)
2285 (maintenance_print_psymbols, maintenance_info_psymtabs)
2286 (maintenance_check_psymtabs): Update.
2287 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2288 new method.
2289
eb00e468
TT
22902021-03-20 Tom Tromey <tom@tromey.com>
2291
2292 * xcoffread.c (xcoff_sym_fns): Update.
2293 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2294 * symfile-debug.c (objfile::has_partial_symbols): Use
2295 can_lazily_read_symbols.
2296 (debug_sym_read_psymbols): Remove.
2297 (debug_sym_fns, install_symfile_debug_logging): Update.
2298 * quick-symbol.h (struct quick_symbol_functions)
2299 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2300 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2301 * mipsread.c (ecoff_sym_fns): Update.
2302 * machoread.c (macho_sym_fns): Update.
2303 * elfread.c (struct lazy_dwarf_reader): New.
2304 (elf_symfile_read): Update.
2305 (read_psyms): Now a method of lazy_dwarf_reader.
2306 (elf_sym_fns): Update.
2307 (elf_sym_fns_lazy_psyms): Remove.
2308 * dbxread.c (aout_sym_fns): Update.
2309 * coffread.c (coff_sym_fns): Update.
2310
b29b98cf
TT
23112021-03-20 Tom Tromey <tom@tromey.com>
2312
2313 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2314 (reread_symbols): Move reset_psymtabs call later.
2315 * objfiles.c (objfile::objfile): Don't initialize
2316 partial_symtabs.
2317
17d66340
TT
23182021-03-20 Tom Tromey <tom@tromey.com>
2319
2320 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2321 set_partial_symtabs.
2322 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2323 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2324 parameter.
2325 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2326 parameter.
2327 (psymbol_functions::find_pc_sect_compunit_symtab)
2328 (psymbol_functions::print_stats, psymbol_functions::dump)
2329 (psymbol_functions::has_symbols): Update.
2330 (make_psymbol_functions, dump_psymtab_addrmap): Add
2331 partial_symtabs parameter.
2332 (maintenance_print_psymbols): Update.
2333 (psymbol_functions::expand_symtabs_matching): Update.
2334 * psympriv.h (struct psymbol_functions): Add constructor.
2335 <m_partial_symtabs>: New member.
2336 <set_partial_symtabs>: New method.
2337
84685904
TT
23382021-03-20 Tom Tromey <tom@tromey.com>
2339
2340 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2341 parameter.
2342 (process_psymtab_comp_unit_reader)
2343 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2344 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2345 Reference psymtabs via per_bfd.
2346
79cc99f6
TT
23472021-03-20 Tom Tromey <tom@tromey.com>
2348
2349 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2350 Remove.
2351 (add_address_entry): Remove objfile parameter.
2352 (add_address_entry_worker): Update.
2353 (write_address_map): Replace objfile parameter with per_bfd.
2354 (write_gdbindex, write_psymtabs_to_index): Update.
2355
4829711b
TT
23562021-03-20 Tom Tromey <tom@tromey.com>
2357
2358 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2359 print_bcache parameter.
2360 * symfile-debug.c (objfile::print_stats): Add print_bcache
2361 parameter.
2362 * quick-symbol.h (struct quick_symbol_functions)
2363 <print_stats>: Add print_bcache parameter.
2364 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2365 code to psymtab.c.
2366 (print_objfile_statistics): Move psymtab code to psymtab.c.
2367 * psymtab.c (count_psyms): Move from symmisc.c.
2368 (psymbol_functions::print_stats): Print partial symbol and bcache
2369 statistics. Add print_bcache parameter.
2370 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2371 (struct objfile) <print_stats>: Add print_bcache parameter.
2372 * maint.c (maintenance_print_statistics): Update.
2373
efd7398e
TT
23742021-03-20 Tom Tromey <tom@tromey.com>
2375
2376 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2377 member.
2378 * dwarf2/read.c (create_addrmap_from_index)
2379 (create_addrmap_from_aranges): Set per_bfd addrmap.
2380 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2381 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2382 per_bfd addrmap.
2383 (dwarf2_read_debug_names): Don't set partial_symtabs.
2384 (dwarf2_initialize_objfile): Likewise.
2385
51962708
TT
23862021-03-20 Tom Tromey <tom@tromey.com>
2387
2388 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2389 earlier.
2390
484b1090
TT
23912021-03-20 Tom Tromey <tom@tromey.com>
2392
2393 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2394 (~psymtab_discarder, keep): Update.
2395 <m_objfile>: Remove.
2396 <m_partial_symtabs>: New member.
2397 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2398
7e9c0476
TT
23992021-03-20 Tom Tromey <tom@tromey.com>
2400
2401 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2402 (xcoff_end_psymtab): Update.
2403 (scan_xcoff_symtab): Add partial_symtabs parameter.
2404 (xcoff_initial_scan): Update.
2405 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2406 * mdebugread.c (mdebug_build_psymtabs): Update.
2407 (parse_partial_symbols): Add partial_symtabs parameter.
2408 * dbxread.c (dbx_symfile_read): Update.
2409 (read_dbx_symtab): Add partial_symtabs parameter.
2410 (read_dbx_symtab): Update.
2411 (dbx_end_psymtab): Add partial_symtabs parameter.
2412
75336a5a
TT
24132021-03-20 Tom Tromey <tom@tromey.com>
2414
2415 * quick-symbol.h (struct quick_symbol_functions)
2416 <relocated>: New method.
2417 * psymtab.h (struct psymbol_functions) <relocated>: New
2418 method.
2419 <fill_psymbol_map>: Declare method.
2420 <m_psymbol_map>: New member.
2421 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2422 (psymbol_functions::find_compunit_symtab_by_address): Update.
2423 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2424 (struct objfile) <psymbol_map>: Remove.
2425 * objfiles.c (objfile_relocate1): Update.
2426
39298a5d
TT
24272021-03-20 Tom Tromey <tom@tromey.com>
2428
2429 * psympriv.h (struct psymbol_functions): New.
2430 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2431 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2432 (objfile::lookup_global_symbol_language): Update.
2433 * quick-symbol.h (struct quick_symbol_functions): Convert function
2434 pointers to methods. Add virtual destructor.
2435 (quick_symbol_functions_up): New typedef.
2436 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2437 (dwarf2_debug_names_functions): Don't declare.
2438 (make_psymbol_functions): Declare.
2439 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2440 (psymbol_functions::find_pc_sect_compunit_symtab)
2441 (psymbol_functions::lookup_symbol)
2442 (psymbol_functions::lookup_global_symbol_language)
2443 (psymbol_functions::find_last_source_symtab)
2444 (psymbol_functions::forget_cached_source_info)
2445 (psymbol_functions::print_stats, psymbol_functions::dump)
2446 (psymbol_functions::expand_symtabs_for_function)
2447 (psymbol_functions::expand_all_symtabs)
2448 (psymbol_functions::expand_symtabs_with_fullname)
2449 (psymbol_functions::map_symbol_filenames)
2450 (psymbol_functions::map_matching_symbols)
2451 (psymbol_functions::expand_symtabs_matching)
2452 (psymbol_functions::has_symbols)
2453 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2454 (psym_functions): Remove.
2455 (make_psymbol_functions): New function.
2456 * objfiles.h (struct objfile) <qf>: Change type.
2457 * elfread.c (elf_symfile_read): Update.
2458 * dwarf2/read.c (struct dwarf2_base_index_functions)
2459 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2460 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2461 (dwarf2_base_index_functions::find_last_source_symtab)
2462 (dwarf2_base_index_functions::forget_cached_source_info)
2463 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2464 (dwarf2_gdb_index::lookup_symbol)
2465 (dwarf2_base_index_functions::print_stats)
2466 (dwarf2_gdb_index::dump)
2467 (dwarf2_gdb_index::expand_symtabs_for_function)
2468 (dwarf2_base_index_functions::expand_all_symtabs)
2469 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2470 Rename.
2471 (dwarf2_gdb_index::map_matching_symbols): New method.
2472 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2473 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2474 (dwarf2_base_index_functions::map_symbol_filenames)
2475 (dwarf2_base_index_functions::has_symbols): Rename.
2476 (dwarf2_gdb_index_functions): Remove.
2477 (dwarf2_debug_names_index::lookup_symbol)
2478 (dwarf2_debug_names_index::dump)
2479 (dwarf2_debug_names_index::expand_symtabs_for_function)
2480 (dwarf2_debug_names_index::map_matching_symbols)
2481 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2482 (dwarf2_debug_names_functions): Remove.
2483 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2484 Declare.
2485
5c3f1e5b
TT
24862021-03-20 Tom Tromey <tom@tromey.com>
2487
2488 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2489 null.
2490 * xcoffread.c (xcoff_sym_fns): Update.
2491 * symfile.h (struct sym_fns) <qf>: Remove.
2492 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2493 * symfile-debug.c (objfile::has_partial_symbols)
2494 (objfile::find_last_source_symtab)
2495 (objfile::forget_cached_source_info)
2496 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2497 (objfile::print_stats, objfile::dump)
2498 (objfile::expand_symtabs_for_function)
2499 (objfile::expand_all_symtabs)
2500 (objfile::expand_symtabs_with_fullname)
2501 (objfile::map_matching_symbols)
2502 (objfile::expand_symtabs_matching)
2503 (objfile::find_pc_sect_compunit_symtab)
2504 (objfile::map_symbol_filenames)
2505 (objfile::find_compunit_symtab_by_address)
2506 (objfile::lookup_global_symbol_language, debug_sym_fns)
2507 (install_symfile_debug_logging): Update.
2508 * objfiles.h (struct objfile) <qf>: New member.
2509 * mipsread.c (ecoff_sym_fns): Update.
2510 * machoread.c (macho_sym_fns): Update.
2511 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2512 Don't declare.
2513 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2514 * dbxread.c (aout_sym_fns): Update.
2515 * coffread.c (coff_sym_fns): Update.
2516
9b99dcc8
TT
25172021-03-20 Tom Tromey <tom@tromey.com>
2518
2519 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2520 (expand_symtabs_file_matcher_ftype)
2521 (expand_symtabs_symbol_matcher_ftype)
2522 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2523 Move to quick-symbol.h.
2524 * quick-symbol.h: New file.
2525
4d080b46
TT
25262021-03-20 Tom Tromey <tom@tromey.com>
2527
2528 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2529 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2530 (basic_lookup_transparent_type_quick)
2531 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2532 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2533 Update.
2534 * symmisc.c (print_objfile_statistics, dump_objfile)
2535 (maintenance_expand_symtabs): Update.
2536 * symfile.c (symbol_file_add_with_addrs)
2537 (expand_symtabs_matching, map_symbol_filenames): Update.
2538 * symfile-debug.c (objfile::has_partial_symbols)
2539 (objfile::find_last_source_symtab)
2540 (objfile::forget_cached_source_info)
2541 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2542 (objfile::print_stats, objfile::dump)
2543 (objfile::expand_symtabs_for_function)
2544 (objfile::expand_all_symtabs)
2545 (objfile::expand_symtabs_with_fullname)
2546 (objfile::map_matching_symbols)
2547 (objfile::expand_symtabs_matching)
2548 (objfile::find_pc_sect_compunit_symtab)
2549 (objfile::map_symbol_filenames)
2550 (objfile::find_compunit_symtab_by_address)
2551 (objfile::lookup_global_symbol_language): New methods.
2552 (debug_sym_quick_functions): Remove.
2553 (debug_sym_fns, install_symfile_debug_logging): Update.
2554 * source.c (forget_cached_source_info_for_objfile)
2555 (select_source_symtab): Update.
2556 * objfiles.h (struct objfile): Add methods corresponding to
2557 quick_symbol_functions.
2558 * objfiles.c (objfile::has_partial_symbols): Move to
2559 symfile-debug.c.
2560 * linespec.c (iterate_over_all_matching_symtabs): Update.
2561 * cp-support.c (add_symbol_overload_list_qualified): Update.
2562 * ada-lang.c (add_nonlocal_symbols): Update.
2563
fae2120b
TT
25642021-03-20 Tom Tromey <tom@tromey.com>
2565
2566 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2567 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2568 bool.
2569 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2570 * psymtab.c (psym_has_symbols): Return bool.
2571 * objfiles.c (objfile::has_partial_symbols): Return bool.
2572 * dwarf2/read.c (dw2_has_symbols): Return bool.
2573
a8ad4f3c
TT
25742021-03-20 Tom Tromey <tom@tromey.com>
2575
2576 * symfile.c (read_symbols): Update.
2577 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2578 (objfile_has_partial_symbols): Don't declare.
2579 * objfiles.c (objfile::has_partial_symbols): Rename from
2580 objfile_has_partial_symbols.
2581 (objfile_has_symbols, have_partial_symbols): Update.
2582 * elfread.c (elf_symfile_read): Update.
2583 * dwarf2/read.c (dwarf2_has_info): Update.
2584 * coffread.c (coff_symfile_read): Update.
2585
70182375
TT
25862021-03-20 Tom Tromey <tom@tromey.com>
2587
2588 * coffread.c: Include dwarf2/public.h.
2589 * dwarf2/frame.c: Include dwarf2/public.h.
2590 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2591 * dwarf2/public.h: New file.
2592 * dwarf2/read.c: Include dwarf2/public.h.
2593 * elfread.c: Include dwarf2/public.h.
2594 * machoread.c: Include dwarf2/public.h.
2595 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2596 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2597 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2598 * xcoffread.c: Include dwarf2/public.h.
2599
18038e63
TT
26002021-03-20 Tom Tromey <tom@tromey.com>
2601
2602 * symfile.h (enum dwarf2_section_enum)
2603 (dwarf2_get_section_info): Move to dwarf2/read.h.
2604 * dwarf2/read.h (enum dwarf2_section_enum)
2605 (dwarf2_get_section_info): Move from symfile.h.
2606
219f56b4
PA
26072021-03-19 Pedro Alves <pedro@palves.net>
2608
2609 * thread.c (any_thread_of_inferior): Check if there's a selected
2610 thread before calling inferior_thread().
2611
15310fd4
TT
26122021-03-18 Tom Tromey <tromey@adacore.com>
2613
2614 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2615 get_DW_UT_name.
2616 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2617 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2618
763b8efd
AB
26192021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 * python/py-param.c (get_set_value): Update header comment.
2622
f058c521
SM
26232021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2624
2625 * infrun.c (check_multi_target_resumption): Remove argument to
2626 all_non_exited_inferiors.
2627
383228bc
CB
26282021-03-16 Christian Biesinger <cbiesinger@google.com>
2629
2630 * windows-nat.c (windows_init_thread_list): Add message to
2631 debug log.
2632
7807d76a
AB
26332021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2636 well as PyLong_Check for Python 2.
2637
675da9a5
TT
26382021-03-15 Tom Tromey <tromey@adacore.com>
2639
2640 PR build/27579:
2641 * rust-exp.y (maker_map): Use gdb::hash_enum.
2642 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2643
4800761a
SM
26442021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2645
2646 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2647 end of debug print.
2648
eb5dd737
SM
26492021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2650
2651 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2652 parameter, adjust caller.
2653
6813ceb0
TT
26542021-03-15 Tom Tromey <tromey@adacore.com>
2655
2656 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2657
3b5c4de0
TT
26582021-03-15 Tom Tromey <tromey@adacore.com>
2659
2660 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2661 ada_ensure_varsize_limit.
2662
c04da66c
TT
26632021-03-15 Tom Tromey <tromey@adacore.com>
2664
2665 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2666 fixed-point.
2667 * ada-exp.y (maybe_overload): New function.
2668 (ada_wrap_overload): New function.
2669 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2670 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2671 (or_else_exp, xor_exp, primary): Update.
2672
9863c3b5
TT
26732021-03-15 Tom Tromey <tromey@adacore.com>
2674
2675 PR ada/27545:
2676 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2677 call for tagged type.
2678
1ac74522
TT
26792021-03-15 Tom Tromey <tromey@adacore.com>
2680
2681 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2682 assignment.
2683
207582c0
TT
26842021-03-15 Tom Tromey <tromey@adacore.com>
2685
2686 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2687 container.
2688 (ada_assign_operation::evaluate): Update.
2689 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2690 Change return type.
2691
8d624a9d
FW
26922021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2693
2694 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2695
ba6a0ef3
AB
26962021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * python/python.c (gdbpy_source_objfile_script): Use
2699 make_scoped_restore to restore gdbpy_current_objfile.
2700 (gdbpy_execute_objfile_script): Likewise.
2701
7c290a04
TT
27022021-03-14 Tom Tromey <tom@tromey.com>
2703
2704 * dwarf2/read.c (read_attribute_value): Use cu_header
2705 consistently.
2706
0280fdcc
TT
27072021-03-14 Tom Tromey <tom@tromey.com>
2708
2709 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2710 (peek_die_abbrev): Use reader.abfd.
2711
a9f172c6
TT
27122021-03-14 Tom Tromey <tom@tromey.com>
2713
2714 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2715 m_header_read_in.
2716
7c32eebb
TT
27172021-03-13 Tom Tromey <tom@tromey.com>
2718
2719 * dwarf2/read.c (struct partial_die_info): Update.
2720 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2721 (load_partial_dies, partial_die_info::partial_die_info): Update.
2722 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2723
27012aba
TT
27242021-03-13 Tom Tromey <tom@tromey.com>
2725
2726 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2727
fece451c
CB
27282021-03-12 Christian Biesinger <cbiesinger@google.com>
2729
2730 PR threads/27239
2731 * cp-support.c: Use scoped_segv_handler_restore.
2732 * event-top.c (thread_local_segv_handler): Made static.
2733 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2734 New function.
2735 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2736 function.
2737 * event-top.h (class scoped_segv_handler_restore): New class.
2738 (thread_local_segv_handler): Removed.
2739
7056f312
TT
27402021-03-10 Tom Tromey <tromey@adacore.com>
2741
2742 * parser-defs.h (parser_state): Change completion to bool.
2743 <parse_completion>: Likewise.
2744 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2745 (ada_resolve_variable, ada_resolve_function): Update.
2746 * ada-lang.c (ada_find_operator_symbol): Change
2747 parse_completion to bool.
2748 (ada_resolve_funcall, ada_resolve_variable)
2749 (ada_resolve_function): Likewise.
2750
ccdc02ed
TT
27512021-03-09 Tom Tromey <tromey@adacore.com>
2752
2753 * eval.c (operation::evaluate_funcall): Use function formal
2754 parameter types when evaluating.
2755
fbb1aace
AB
27562021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2757
2758 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2759 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2760 and owner to m_owner.
2761
611aa09d
FW
27622021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2763
2764 * f-exp.h (eval_op_f_loc): Declare.
2765 (expr::fortran_loc_operation): New typedef.
2766 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2767 UNOP_INTRINSIC.
2768 (f77_keywords): Add LOC keyword.
2769 * f-lang.c (eval_op_f_loc): New function.
2770 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2771
eef32f59
AB
27722021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2773
2774 * f-exp.h (eval_op_f_array_shape): Declare.
2775 (fortran_array_shape_operation): New type.
2776 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2777 UNOP_INTRINSIC.
2778 (f77_keywords): Add "shape" keyword.
2779 * f-lang.c (fortran_array_shape): New function.
2780 (eval_op_f_array_shape): New function.
2781 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2782
7ba155b3
AB
27832021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2784
2785 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2786 of this function.
2787 (expr::fortran_array_size_1arg): New type.
2788 (expr::fortran_array_size_2arg): Likewise.
2789 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2790 UNOP_OR_BINOP_INTRINSIC.
2791 (f77_keywords): Add "size" keyword.
2792 * f-lang.c (fortran_array_size): New function.
2793 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2794 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2795
e14816a8
AB
27962021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2797
2798 * f-exp.h (eval_op_f_rank): Declare.
2799 (expr::fortran_rank_operation): New typedef.
2800 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2801 UNOP_INTRINSIC.
2802 (f77_keywords): Add "rank" keyword.
2803 * f-lang.c (eval_op_f_rank): New function.
2804 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2805
3dd93bf8
TT
28062021-03-08 Tom Tromey <tom@tromey.com>
2807
2808 * printcmd.c (set_command): Remove null check.
2809 * value.c (init_if_undefined_command): Remove null check.
2810
9c79936b
TT
28112021-03-08 Tom Tromey <tom@tromey.com>
2812
2813 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2814 Update.
2815 * p-exp.y (variable): Update.
2816 * go-exp.y (variable): Update.
2817 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2818 Remove overload for objfile.
2819 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2820 parameter.
2821 (check_objfile): Likewise.
2822 (dump_for_expression): Likewise. Remove overload for objfile.
2823 (class var_msym_value_operation): Use bound_minimal_symbol.
2824 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2825 parameter.
2826 (var_msym_value_operation::evaluate_for_address)
2827 (var_msym_value_operation::evaluate_for_sizeof)
2828 (var_msym_value_operation::evaluate_for_cast): Update.
2829 * d-exp.y (PrimaryExpression): Update.
2830 * c-exp.y (variable): Update.
2831 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2832 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2833 Update.
2834 * ada-exp.y (write_var_or_type): Update.
2835
40d07d07
TT
28362021-03-08 Tom Tromey <tom@tromey.com>
2837
2838 * parser-defs.h (exp_uses_objfile): Return bool.
2839 * parse.c (exp_uses_objfile): Return bool.
2840
0b2b0b82
TT
28412021-03-08 Tom Tromey <tom@tromey.com>
2842
2843 * value.h (eval_skip_value): Don't declare.
2844 * opencl-lang.c (eval_opencl_assign): Update.
2845 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2846 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2847 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2848 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2849 * expop.h (typeof_operation::evaluate)
2850 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2851 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2852 (cxx_cast_operation::evaluate): Update.
2853 * eval.c (eval_skip_value): Remove.
2854 (eval_op_scope, eval_op_var_entry_value)
2855 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2856 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2857 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2858 (eval_op_binary, eval_op_subscript, eval_op_equal)
2859 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2860 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2861 (eval_op_complement, eval_op_lognot, eval_op_ind)
2862 (eval_op_memval, eval_op_preinc, eval_op_predec)
2863 (eval_op_postinc, eval_op_postdec, eval_op_type)
2864 (eval_binop_assign_modify, eval_op_objc_msgcall)
2865 (eval_multi_subscript, logical_and_operation::evaluate)
2866 (logical_or_operation::evaluate, array_operation::evaluate)
2867 (operation::evaluate_for_cast)
2868 (var_msym_value_operation::evaluate_for_cast)
2869 (var_value_operation::evaluate_for_cast): Update.
2870 * c-lang.c (c_string_operation::evaluate): Update.
2871 * c-exp.h (objc_nsstring_operation::evaluate)
2872 (objc_selector_operation::evaluate): Update.
2873 * ada-lang.c (ada_assign_operation::evaluate)
2874 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2875 (ada_atr_size): Update.
2876
96db551d
TT
28772021-03-08 Tom Tromey <tom@tromey.com>
2878
2879 * eval.c: Merge "namespace" scopes.
2880
ce284361
TT
28812021-03-08 Tom Tromey <tom@tromey.com>
2882
2883 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2884 <release>: Inline.
2885 * parse.c (expr_builder::expr_builder, expr_builder::release):
2886 Remove.
2887
b9d06571
TT
28882021-03-08 Tom Tromey <tom@tromey.com>
2889
2890 * parse.c (expression::expression, expression::~expression):
2891 Remove.
2892 * expression.h (struct expression): Inline constructor. Remove
2893 destructor.
2894
79ab486e
TT
28952021-03-08 Tom Tromey <tom@tromey.com>
2896
2897 * std-operator.def (BINOP_END): Remove.
2898 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2899 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2900 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2901 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2902 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2903 BINOP_END.
2904
48fa6f23
TT
29052021-03-08 Tom Tromey <tom@tromey.com>
2906
2907 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2908
43f542e3
TT
29092021-03-08 Tom Tromey <tom@tromey.com>
2910
2911 * std-operator.def (OP_EXTENDED0): Remove.
2912
5d9ba982
TT
29132021-03-08 Tom Tromey <tom@tromey.com>
2914
2915 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2916 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2917 Remove.
2918
d357570d
TT
29192021-03-08 Tom Tromey <tom@tromey.com>
2920
2921 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2922 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2923
0922dc84
TT
29242021-03-08 Tom Tromey <tom@tromey.com>
2925
2926 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2927 * ada-lang.c (ada_binop_minmax): Update.
2928 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2929 Use BINOP_MIN and BINOP_MAX.
2930
1eaebe02
TT
29312021-03-08 Tom Tromey <tom@tromey.com>
2932
2933 * value.h (evaluate_subexp_with_coercion): Don't declare.
2934 * parse.c (exp_descriptor_standard): Remove.
2935 (expr_builder::expr_builder, expr_builder::release): Update.
2936 (expression::expression): Remove size_t parameter.
2937 (expression::~expression): Simplify.
2938 (expression::resize): Remove.
2939 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2940 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2941 (write_exp_elt_longcst, write_exp_elt_floatcst)
2942 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2943 (write_exp_string_vector, write_exp_bitstring): Remove.
2944 * p-lang.h (class pascal_language) <opcode_print_table,
2945 op_print_tab>: Remove.
2946 * p-lang.c (pascal_language::op_print_tab): Remove.
2947 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2948 Remove.
2949 * objc-lang.c (objc_op_print_tab): Remove.
2950 (class objc_language) <opcode_print_table>: Remove.
2951 * m2-lang.h (class m2_language) <opcode_print_table,
2952 op_print_tab>: Remove.
2953 * m2-lang.c (m2_language::op_print_tab): Remove.
2954 * language.h (struct language_defn) <post_parser, expression_ops,
2955 opcode_print_table>: Remove.
2956 * language.c (language_defn::expression_ops)
2957 (auto_or_unknown_language::opcode_print_table): Remove.
2958 * go-lang.h (class go_language) <opcode_print_table,
2959 op_print_tab>: Remove.
2960 * go-lang.c (go_language::op_print_tab): Remove.
2961 * f-lang.h (class f_language) <opcode_print_table>: Remove
2962 <op_print_tab>: Remove.
2963 * f-lang.c (f_language::op_print_tab): Remove.
2964 * expression.h (union exp_element): Remove.
2965 (struct expression): Remove size_t parameter from constructor.
2966 <resize>: Remove.
2967 <first_opcode>: Update.
2968 <nelts, elts>: Remove.
2969 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2970 (evaluate_subexp_standard, print_expression, op_string)
2971 (dump_raw_expression): Don't declare.
2972 * expprint.c (print_expression, print_subexp)
2973 (print_subexp_funcall, print_subexp_standard, op_string)
2974 (dump_raw_expression, dump_subexp, dump_subexp_body)
2975 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2976 (dump_prefix_expression): Update.
2977 * eval.c (evaluate_subexp): Remove.
2978 (evaluate_expression, evaluate_type): Update.
2979 (evaluate_subexpression_type): Remove.
2980 (fetch_subexp_value): Remove "pc" parameter. Update.
2981 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2982 (evaluate_subexp_standard, evaluate_subexp_for_address)
2983 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2984 (evaluate_subexp_for_cast): Remove.
2985 (parse_and_eval_type): Update.
2986 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2987 * d-lang.c (d_op_print_tab): Remove.
2988 (class d_language) <opcode_print_table>: Remove.
2989 * c-lang.h (c_op_print_tab): Don't declare.
2990 * c-lang.c (c_op_print_tab): Remove.
2991 (class c_language, class cplus_language, class asm_language, class
2992 minimal_language) <opcode_print_table>: Remove.
2993 * breakpoint.c (update_watchpoint, watchpoint_check)
2994 (watchpoint_exp_is_const, watch_command_1): Update.
2995 * ax-gdb.h (union exp_element): Don't declare.
2996 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2997 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2998 (gen_expr_binop_rest): Remove.
2999 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3000 * ada-lang.c (ada_op_print_tab): Remove.
3001 (class ada_language) <post_parser, opcode_print_table>: Remove.
3002
f2a98603
TT
30032021-03-08 Tom Tromey <tom@tromey.com>
3004
3005 * go-lang.c (go_language::expression_ops): Don't declare.
3006 * go-lang.h (class go_language) <expression_ops>: Remove.
3007 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3008 Remove.
3009 (class opencl_language) <expression_ops>: Remove.
3010 * d-lang.c (class d_language) <expression_ops>: Remove.
3011 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3012 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3013 (class c_language, class cplus_language, class asm_language)
3014 (class minimal_language) <expression_ops>: Remove.
3015
d3c54a1c
TT
30162021-03-08 Tom Tromey <tom@tromey.com>
3017
3018 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3019 (evaluate_subexp_type, assign_aggregate)
3020 (aggregate_assign_positional, aggregate_assign_from_choices)
3021 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3022 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3023 (ada_operator_check, ada_forward_operator_length)
3024 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3025 Remove.
3026 (post_parser): Update.
3027 (class ada_language) <expresssion_ops>: Remove.
3028
5871f0a3
TT
30292021-03-08 Tom Tromey <tom@tromey.com>
3030
3031 * m2-lang.h (class m2_language) <expresssion_ops,
3032 exp_descriptor_modula2>: Remove.
3033 * m2-lang.c (evaluate_subexp_modula2)
3034 (m2_language::exp_descriptor_modula2): Remove.
3035
a99be8c1
TT
30362021-03-08 Tom Tromey <tom@tromey.com>
3037
3038 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3039 <exp_descriptor_tab>: Remove.
3040 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3041 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3042 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3043 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3044 Remove.
3045
aa1da9ed
TT
30462021-03-08 Tom Tromey <tom@tromey.com>
3047
3048 * rust-lang.h (class rust_language) <expression_ops,
3049 exp_descriptor_tab>: Remove.
3050 * rust-lang.c (rust_evaluate_funcall): Remove.
3051 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3052 EVAL_SKIP.
3053 (rust_evaluate_subexp): Remove.
3054 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3055 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3056 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3057
08a057e6
TT
30582021-03-08 Tom Tromey <tom@tromey.com>
3059
3060 * ada-exp.y: Create operations.
3061 (empty_stoken): Remove.
3062 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3063 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3064 (components): New global.
3065 (push_component, choice_component, pop_component, pop_components):
3066 New functions.
3067 (associations): New global
3068 (push_association, pop_association, pop_associations): New
3069 functions.
3070 (ada_parse): Update.
3071 (write_var_from_sym, write_int): Create operations.
3072 (write_exp_op_with_string): Remove.
3073 (write_object_renaming, write_selectors, write_ambiguous_var)
3074 (write_var_or_type, write_name_assoc): Create operations.
3075 * ada-lang.h (ada_index_type): Declare.
3076 * ada-lang.c (ada_index_type): No longer static.
3077
d308ba78
TT
30782021-03-08 Tom Tromey <tom@tromey.com>
3079
3080 * f-exp.y: Create operations.
3081 (f_language::parser): Update.
3082
f1b8ceef
TT
30832021-03-08 Tom Tromey <tom@tromey.com>
3084
3085 * m2-exp.y: Create operations.
3086 (m2_language::parser): Update.
3087
3163898e
TT
30882021-03-08 Tom Tromey <tom@tromey.com>
3089
3090 * p-exp.y: Create operations.
3091 (pascal_language::parser): Update.
3092
9412fdcc
TT
30932021-03-08 Tom Tromey <tom@tromey.com>
3094
3095 * d-exp.y: Create operations.
3096 (d_parse): Update.
3097
bb4e0574
TT
30982021-03-08 Tom Tromey <tom@tromey.com>
3099
3100 * go-exp.y: Create operations.
3101 (go_language::parser): Update.
3102
d182f279
TT
31032021-03-08 Tom Tromey <tom@tromey.com>
3104
3105 * objc-lang.c (end_msglist): Create operations.
3106 * c-exp.y: Change parser to create operations.
3107 (write_destructor_name): Remove.
3108 (c_parse): Update.
3109
c1299a23
TT
31102021-03-08 Tom Tromey <tom@tromey.com>
3111
3112 * rust-exp.y: Create operations.
3113 (rust_parser::convert_params_to_expression): Change return type.
3114 (binop_maker_ftype): New typedef.
3115 (maker_map): New global.
3116 (rust_parser::convert_ast_to_expression): Change return type.
3117 (rust_language::parser): Update.
3118 (_initialize_rust_exp): Initialize maker_map.
3119
4c5e7a93
TT
31202021-03-08 Tom Tromey <tom@tromey.com>
3121
3122 * stap-probe.c (binop_maker_ftype): New typedef.
3123 (stap_maker_map): New global.
3124 (stap_make_binop): New function.
3125 (stap_parse_register_operand): Return operation_up.
3126 (stap_parse_single_operand, stap_parse_argument_conditionally)
3127 (stap_parse_argument_1): Likewise.
3128 (stap_parse_argument): Create operations.
3129 (stap_probe::parse_arguments): Update.
3130 (_initialize_stap_probe): Initialize stap_maker_map.
3131 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3132 type.
3133 * i386-tdep.h (i386_stap_parse_special_token): Change return
3134 type.
3135 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3136 (i386_stap_parse_special_token_three_arg_disp)
3137 (i386_stap_parse_special_token): Change return type.
3138 * gdbarch.sh (stap_parse_special_token): Change return type.
3139 * gdbarch.c: Rebuild.
3140 * gdbarch.h: Rebuild.
3141 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3142 type.
3143 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3144 return type.
3145
482ddd69
TT
31462021-03-08 Tom Tromey <tom@tromey.com>
3147
3148 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3149 * gdbarch.h: Rebuild.
3150 * gdbarch.c: Rebuild.
3151 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3152 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3153 return type.
3154 (amd64_dtrace_parse_probe_argument): Update.
3155
8227d9e2
TT
31562021-03-08 Tom Tromey <tom@tromey.com>
3157
3158 * parser-defs.h (struct parser_state) <push, push_new,
3159 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3160 wrap2>: New methods.
3161 <m_operations>: New member.
3162 * parse.c (parser_state::push_c_string)
3163 (parser_state::push_symbol, parser_state::push_dollar): New
3164 methods.
3165
4933522d
TT
31662021-03-08 Tom Tromey <tom@tromey.com>
3167
3168 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3169 New member.
3170 (struct parser_state) <mark_struct_expression>: New method.
3171 * parse.c (parser_state::mark_struct_expression): Update assert.
3172 (parser_state::mark_struct_expression): New method.
3173 (parser_state::mark_completion_tag): Update assert.
3174 (parse_expression_for_completion): Handle expout_last_op.
3175
413403fc
TT
31762021-03-08 Tom Tromey <tom@tromey.com>
3177
3178 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3179 now in superclass.
3180 * value.h (fetch_subexp_value): Add "op" parameter.
3181 * value.c (init_if_undefined_command): Update.
3182 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3183 * stap-probe.c (stap_probe::compile_to_ax): Update.
3184 * printcmd.c (set_command): Update.
3185 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3186 Update.
3187 * parser-defs.h (struct expr_builder) <set_operation>: New
3188 method.
3189 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3190 * expression.h (struct expression) <first_opcode>: Update.
3191 <op>: New member.
3192 * expprint.c (dump_raw_expression, dump_prefix_expression):
3193 Update.
3194 * expop.h (class var_value_operation) <get_symbol>: New method.
3195 (class register_operation) <get_name>: New method.
3196 (class equal_operation): No longer a typedef, now a subclass.
3197 (class unop_memval_operation) <get_type>: New method.
3198 (class assign_operation) <get_lhs>: New method.
3199 (class unop_cast_operation) <get_type>: New method.
3200 * eval.c (evaluate_expression, evaluate_type)
3201 (evaluate_subexpression_type): Update.
3202 (fetch_subexp_value): Add "op" parameter.
3203 (parse_and_eval_type): Update.
3204 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3205 * breakpoint.c (update_watchpoint, watchpoint_check)
3206 (watchpoint_exp_is_const, watch_command_1): Update.
3207 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3208 Update.
3209
b0f9164c
TT
32102021-03-08 Tom Tromey <tom@tromey.com>
3211
3212 * ada-lang.c (ada_value_binop): Do not use op_string.
3213
a88c4354
TT
32142021-03-08 Tom Tromey <tom@tromey.com>
3215
3216 * expprint.c (dump_for_expression): New overload.
3217 * expop.h (check_objfile, dump_for_expression): Declare new
3218 overloads.
3219 * ada-lang.c (check_objfile): New overload.
3220 (assign_component, ada_aggregate_component::uses_objfile)
3221 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3222 (ada_aggregate_component::assign_aggregate)
3223 (ada_positional_component::uses_objfile)
3224 (ada_positional_component::dump, ada_positional_component::assign)
3225 (ada_discrete_range_association::uses_objfile)
3226 (ada_discrete_range_association::dump)
3227 (ada_discrete_range_association::assign)
3228 (ada_name_association::uses_objfile, ada_name_association::dump)
3229 (ada_name_association::assign)
3230 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3231 (ada_choices_component::assign)
3232 (ada_others_component::uses_objfile, ada_others_component::dump)
3233 (ada_others_component::assign, ada_assign_operation::evaluate):
3234 New methods.
3235 * ada-exp.h (ada_string_operation) <get_name>: New method.
3236 (class ada_assign_operation): New.
3237 (class ada_component): New.
3238 (ada_component_up): New typedef.
3239 (class ada_aggregate_operation, class ada_aggregate_component)
3240 (class ada_positional_component, class ada_others_component)
3241 (class ada_association): New.
3242 (ada_association_up): New typedef.
3243 (class ada_choices_component)
3244 (class ada_discrete_range_association)
3245 (class ada_name_association): New.
3246
d8a4ed8a
TT
32472021-03-08 Tom Tromey <tom@tromey.com>
3248
3249 * ada-lang.c (ada_var_value_operation::resolve)
3250 (ada_funcall_operation::resolve)
3251 (ada_ternop_slice_operation::resolve): New methods.
3252 * ada-exp.h (struct ada_resolvable): New.
3253 (class ada_var_value_operation): Derive from ada_resolvable.
3254 <get_block, resolve>: New methods.
3255 (class ada_funcall_operation): Derive from ada_resolvable.
3256 <resolve>: New method.
3257 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3258 <resolve>: New method.
3259
efe3af2f
TT
32602021-03-08 Tom Tromey <tom@tromey.com>
3261
3262 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3263 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3264 method.
3265 (class ada_funcall_operation): New.
3266
ebc06ad8
TT
32672021-03-08 Tom Tromey <tom@tromey.com>
3268
3269 * ada-lang.c (ada_structop_operation::evaluate): New method.
3270 * ada-exp.h (class ada_structop_operation): New.
3271
e8c33fa1
TT
32722021-03-08 Tom Tromey <tom@tromey.com>
3273
3274 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3275 * ada-exp.h (class ada_unop_ind_operation): New.
3276
065ec826
TT
32772021-03-08 Tom Tromey <tom@tromey.com>
3278
3279 * ada-lang.c (ada_binop_exp): No longer static.
3280 * ada-exp.h (ada_binop_exp_operation): New typedef.
3281
9e99f48f
TT
32822021-03-08 Tom Tromey <tom@tromey.com>
3283
3284 * ada-lang.c (ada_val_atr): No longer static.
3285 (ada_atr_val_operation::evaluate): New method.
3286 * ada-exp.h (class ada_atr_val_operation): New.
3287
7631cf6c
TT
32882021-03-08 Tom Tromey <tom@tromey.com>
3289
3290 * ada-lang.c (ada_pos_atr): No longer static.
3291 * ada-exp.h (ada_pos_operation): New typedef.
3292
7992accc
TT
32932021-03-08 Tom Tromey <tom@tromey.com>
3294
3295 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3296 parameters.
3297 (ada_evaluate_subexp): Use it.
3298
6ad3b8bf
TT
32992021-03-08 Tom Tromey <tom@tromey.com>
3300
3301 * ada-lang.c (ada_binop_minmax): No longer static.
3302 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3303 New typedefs.
3304
3f4a0053
TT
33052021-03-08 Tom Tromey <tom@tromey.com>
3306
3307 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3308 New method.
3309 * ada-exp.h (class ada_var_msym_value_operation): New.
3310
99a3b1e7
TT
33112021-03-08 Tom Tromey <tom@tromey.com>
3312
3313 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3314 (ada_var_value_operation::evaluate): New methods.
3315 * ada-exp.h (class ada_var_value_operation): New.
3316
60fa02ca
TT
33172021-03-08 Tom Tromey <tom@tromey.com>
3318
3319 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3320 * ada-exp.h (class ada_unop_atr_operation): New.
3321
82c3886e
TT
33222021-03-08 Tom Tromey <tom@tromey.com>
3323
3324 * ada-lang.c (ada_binop_in_bounds): No longer static.
3325 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3326
1b1ebfab
TT
33272021-03-08 Tom Tromey <tom@tromey.com>
3328
3329 * ada-lang.c (ada_ternop_slice): No longer static.
3330 * ada-exp.h (class ada_ternop_slice_operation): New.
3331
039e4b76
TT
33322021-03-08 Tom Tromey <tom@tromey.com>
3333
3334 * ada-exp.h (ada_bitwise_operation): New template class.
3335 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3336 (ada_bitwise_xor_operation): New typedefs.
3337
6e8fb7b7
TT
33382021-03-08 Tom Tromey <tom@tromey.com>
3339
3340 * ada-lang.c (ada_equal_binop): No longer static.
3341 * ada-exp.h (class ada_binop_equal_operation): New.
3342
d9e7db06
TT
33432021-03-08 Tom Tromey <tom@tromey.com>
3344
3345 * ada-lang.c (ada_mult_binop): No longer static.
3346 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3347 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3348
73796c73
TT
33492021-03-08 Tom Tromey <tom@tromey.com>
3350
3351 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3352 * ada-exp.h (class ada_binop_addsub_operation): New.
3353
cd9a3148
TT
33542021-03-08 Tom Tromey <tom@tromey.com>
3355
3356 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3357 (ada_resolve_variable): Declare.
3358 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3359 (ada_resolve_variable): New functions.
3360 (resolve_subexp): Update.
3361
cf12b17f
TT
33622021-03-08 Tom Tromey <tom@tromey.com>
3363
3364 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3365 method.
3366 * c-exp.h (class opencl_ternop_cond_operation): New.
3367
944fd3b8
TT
33682021-03-08 Tom Tromey <tom@tromey.com>
3369
3370 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3371 method.
3372 * c-exp.h (class opencl_logical_binop_operation): New.
3373
33b79214
TT
33742021-03-08 Tom Tromey <tom@tromey.com>
3375
3376 * opencl-lang.c (opencl_structop_operation::evaluate): New
3377 method.
3378 * c-exp.h (class opencl_structop_operation): New.
3379
2492ba36
TT
33802021-03-08 Tom Tromey <tom@tromey.com>
3381
3382 * opencl-lang.c (opencl_logical_not): No longer static. Change
3383 parameters.
3384 (evaluate_subexp_opencl): Update.
3385 * c-exp.h (opencl_notequal_operation): New typedef.
3386
a88c3c8d
TT
33872021-03-08 Tom Tromey <tom@tromey.com>
3388
3389 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3390 static. Change parameters.
3391 (eval_opencl_assign): No longer static. Add "op" parameter.
3392 (evaluate_subexp_opencl): Update.
3393 * c-exp.h (opencl_binop_operation): New template class.
3394 (opencl_assign_operation, opencl_equal_operation)
3395 (opencl_notequal_operation, opencl_less_operation)
3396 (opencl_gtr_operation, opencl_geq_operation)
3397 (opencl_leq_operation): New typedefs.
3398
e9677704
TT
33992021-03-08 Tom Tromey <tom@tromey.com>
3400
3401 * opencl-lang.c (opencl_value_cast): No longer static.
3402 * c-exp.h (opencl_cast_type_operation): New typedef.
3403
f403a4e4
TT
34042021-03-08 Tom Tromey <tom@tromey.com>
3405
3406 * f-exp.h (eval_op_f_allocated): Declare.
3407 (fortran_allocated_operation): New typedef.
3408 * f-lang.c (eval_op_f_allocated): No longer static.
3409
eb4c9271
TT
34102021-03-08 Tom Tromey <tom@tromey.com>
3411
3412 * f-lang.c (eval_op_f_associated): New functions.
3413 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3414 typedefs.
3415
58a76c72
TT
34162021-03-08 Tom Tromey <tom@tromey.com>
3417
3418 * f-lang.c (fortran_bound_1arg::evaluate)
3419 (fortran_bound_2arg::evaluate): New methods.
3420 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3421 New.
3422
2f98abe1
TT
34232021-03-08 Tom Tromey <tom@tromey.com>
3424
3425 * expop.h (class unop_addr_operation) <get_expression>: New
3426 method.
3427 * f-lang.c (fortran_undetermined::value_subarray)
3428 (fortran_undetermined::evaluate): New methods.
3429 (fortran_prepare_argument): New overload.
3430 * f-exp.h (class fortran_range_operation)
3431 (class fortran_undetermined): New classes.
3432
638fd74a
TT
34332021-03-08 Tom Tromey <tom@tromey.com>
3434
3435 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3436 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3437 method.
3438
a00b7254
TT
34392021-03-08 Tom Tromey <tom@tromey.com>
3440
3441 * expression.h (class operation) <evaluate_funcall>: New methods.
3442 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3443 (class var_value_operation) <evaluate_funcall>: New method.
3444 (class structop_base_operation) <evaluate_funcall>: New method.
3445 (class var_msym_value_operation) <evaluate_funcall>: New method.
3446 (class structop_member_base): New class.
3447 (class structop_member_operation): Derive from
3448 structop_member_base.
3449 (class structop_mptr_operation): Derive from
3450 structop_member_base.
3451 (class funcall_operation): New class.
3452 * eval.c (operation::evaluate_funcall)
3453 (var_value_operation::evaluate_funcall)
3454 (scope_operation::evaluate_funcall)
3455 (structop_member_base::evaluate_funcall)
3456 (structop_base_operation::evaluate_funcall): New methods.
3457
1c02eb30
TT
34582021-03-08 Tom Tromey <tom@tromey.com>
3459
3460 * expop.h (class array_operation): New.
3461 * eval.c (array_operation::evaluate_struct_tuple)
3462 (array_operation::evaluate): New methods.
3463
e4479080
TT
34642021-03-08 Tom Tromey <tom@tromey.com>
3465
3466 * expop.h (class adl_func_operation): New.
3467 * eval.c (adl_func_operation::evaluate): New method.
3468
95d49dfb
TT
34692021-03-08 Tom Tromey <tom@tromey.com>
3470
3471 * ada-lang.c (ada_unop_in_range): No longer static.
3472 * ada-exp.h (class ada_unop_range_operation): New.
3473
7c15d377
TT
34742021-03-08 Tom Tromey <tom@tromey.com>
3475
3476 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3477 No longer static.
3478 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3479 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3480
5019124b
TT
34812021-03-08 Tom Tromey <tom@tromey.com>
3482
3483 * expop.h (class logical_and_operation)
3484 (class logical_or_operation): New.
3485 * eval.c (logical_and_operation::evaluate)
3486 (logical_or_operation::evaluate): New methods.
3487 * ax-gdb.c (logical_and_operation::do_generate_ax)
3488 (logical_or_operation::do_generate_ax): New methods.
3489
2bc9b40c
TT
34902021-03-08 Tom Tromey <tom@tromey.com>
3491
3492 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3493 static.
3494 * m2-exp.h: New file.
3495
5947d337
TT
34962021-03-08 Tom Tromey <tom@tromey.com>
3497
3498 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3499 * rust-exp.h (class rust_aggregate_operation): New.
3500
e4407a20
TT
35012021-03-08 Tom Tromey <tom@tromey.com>
3502
3503 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3504 No longer static.
3505 * rust-exp.h (class rust_struct_anon): New.
3506 (class rust_structop): New.
3507
9db6b6dd
TT
35082021-03-08 Tom Tromey <tom@tromey.com>
3509
3510 * rust-lang.c (rust_range): No longer static.
3511 * rust-exp.h (class rust_range_operation): New.
3512
6ce1ad67
TT
35132021-03-08 Tom Tromey <tom@tromey.com>
3514
3515 * rust-lang.c (rust_subscript): No longer static.
3516 * rust-exp.h (class rust_subscript_operation): New.
3517
11dd3dce
TT
35182021-03-08 Tom Tromey <tom@tromey.com>
3519
3520 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3521 parameter.
3522 (rust_evaluate_subexp): Update.
3523 * rust-exp.h (class rust_unop_ind_operation): New.
3524
6fab4359
TT
35252021-03-08 Tom Tromey <tom@tromey.com>
3526
3527 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3528 longer static. Add "opcode" parameter.
3529 (rust_evaluate_subexp): Update.
3530 * rust-exp.h: New file.
3531
9dcd3e29
TT
35322021-03-08 Tom Tromey <tom@tromey.com>
3533
3534 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3535 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3536 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3537 (evaluate_subexp_f): Update.
3538 * f-exp.h: New file.
3539
fc715eb2
TT
35402021-03-08 Tom Tromey <tom@tromey.com>
3541
3542 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3543 * ada-exp.h (class ada_ternop_range_operation): New.
3544
cc6bd32e
TT
35452021-03-08 Tom Tromey <tom@tromey.com>
3546
3547 * ada-lang.c (ada_qual_operation::evaluate): New method.
3548 * ada-exp.h (class ada_qual_operation): New.
3549
42fecb61
TT
35502021-03-08 Tom Tromey <tom@tromey.com>
3551
3552 * ada-lang.c (ada_string_operation::evaluate): New method.
3553 * ada-exp.h (class ada_string_operation): New.
3554
03070ee9
TT
35552021-03-08 Tom Tromey <tom@tromey.com>
3556
3557 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3558 * ada-exp.h: New file.
3559
821e72d7
TT
35602021-03-08 Tom Tromey <tom@tromey.com>
3561
3562 * expop.h (class multi_subscript_operation): New.
3563 * eval.c (multi_subscript_operation::evaluate): New method.
3564
085734dd
TT
35652021-03-08 Tom Tromey <tom@tromey.com>
3566
3567 * eval.c (objc_msgcall_operation::evaluate): New method.
3568 * c-exp.h (class objc_msgcall_operation): New.
3569
e82a5afc
TT
35702021-03-08 Tom Tromey <tom@tromey.com>
3571
3572 * expop.h (class var_value_operation): New.
3573 * eval.c (var_value_operation::evaluate)
3574 (var_value_operation::evaluate_for_address)
3575 (var_value_operation::evaluate_with_coercion)
3576 (var_value_operation::evaluate_for_sizeof)
3577 (var_value_operation::evaluate_for_cast): New methods.
3578 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3579
d9ad79d8
TT
35802021-03-08 Tom Tromey <tom@tromey.com>
3581
3582 * expop.h (cxx_cast_ftype): New typedef.
3583 (cxx_cast_operation): New template.
3584 (dynamic_cast_operation, reinterpret_cast_operation): New
3585 typedefs.
3586
292382f4
TT
35872021-03-08 Tom Tromey <tom@tromey.com>
3588
3589 * expop.h (class unop_cast_type_operation): New.
3590 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3591 method.
3592
165a813a
TT
35932021-03-08 Tom Tromey <tom@tromey.com>
3594
3595 * expop.h (class unop_cast_operation): New.
3596 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3597
e5946e16
TT
35982021-03-08 Tom Tromey <tom@tromey.com>
3599
3600 * expop.h (class assign_modify_operation): New.
3601 * eval.c (eval_binop_assign_modify): No longer static.
3602 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3603
40786782
TT
36042021-03-08 Tom Tromey <tom@tromey.com>
3605
3606 * expop.h (class assign_operation): New.
3607 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3608
44b675c8
TT
36092021-03-08 Tom Tromey <tom@tromey.com>
3610
3611 * expop.h (class type_instance_operation): New.
3612 * eval.c (type_instance_operation::evaluate): New method.
3613
f6b42326
TT
36142021-03-08 Tom Tromey <tom@tromey.com>
3615
3616 * expop.h (class op_this_operation): New.
3617 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3618
cbc18219
TT
36192021-03-08 Tom Tromey <tom@tromey.com>
3620
3621 * expop.h (class unop_memval_operation)
3622 (class unop_memval_type_operation): New.
3623 * eval.c (eval_op_memval): No longer static.
3624 (unop_memval_operation::evaluate_for_address)
3625 (unop_memval_type_operation::evaluate_for_address)
3626 (unop_memval_operation::evaluate_for_sizeof)
3627 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3628 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3629 (unop_memval_type_operation::do_generate_ax): New methods.
3630
ae4bb61e
TT
36312021-03-08 Tom Tromey <tom@tromey.com>
3632
3633 * expop.h (class unop_alignof_operation): New.
3634 * eval.c (eval_op_alignof): No longer static.
3635
85d23bda
TT
36362021-03-08 Tom Tromey <tom@tromey.com>
3637
3638 * expop.h (class unop_sizeof_operation): New.
3639 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3640
14aff815
TT
36412021-03-08 Tom Tromey <tom@tromey.com>
3642
3643 * expop.h (class unop_addr_operation): New.
3644 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3645
929f3aa7
TT
36462021-03-08 Tom Tromey <tom@tromey.com>
3647
3648 * expop.h (class typeid_operation): New.
3649
0af8829e
TT
36502021-03-08 Tom Tromey <tom@tromey.com>
3651
3652 * expop.h (class decltype_operation): New.
3653
4efc574c
TT
36542021-03-08 Tom Tromey <tom@tromey.com>
3655
3656 * expop.h (class typeof_operation): New.
3657
5b5f5140
TT
36582021-03-08 Tom Tromey <tom@tromey.com>
3659
3660 * expop.h (class type_operation): New.
3661 * eval.c (eval_op_type): No longer static.
3662
876469ff
TT
36632021-03-08 Tom Tromey <tom@tromey.com>
3664
3665 * expop.h (class unop_ind_base_operation)
3666 (class unop_ind_operation): New.
3667 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3668 (unop_ind_base_operation::evaluate_for_address)
3669 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3670 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3671
6d89e296
TT
36722021-03-08 Tom Tromey <tom@tromey.com>
3673
3674 * expop.h (unop_incr_operation): New template.
3675 (preinc_operation, predec_operation, postinc_operation)
3676 (postdec_operation): New typedefs.
3677 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3678 (eval_op_postdec): No longer static.
3679
9307d17b
TT
36802021-03-08 Tom Tromey <tom@tromey.com>
3681
3682 * expop.h (unary_ftype): New typedef.
3683 (unop_operation, usual_ax_binop_operation): New templates.
3684 (unary_plus_operation, unary_neg_operation)
3685 (unary_complement_operation, unary_logical_not_operation): New
3686 typedefs.
3687 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3688 (eval_op_lognot): No longer static.
3689 * ax-gdb.c (gen_expr_unop): New function.
3690
ae64ba58
TT
36912021-03-08 Tom Tromey <tom@tromey.com>
3692
3693 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3694
d4eff4c1
TT
36952021-03-08 Tom Tromey <tom@tromey.com>
3696
3697 * expop.h (class repeat_operation): New.
3698 * eval.c (eval_op_repeat): No longer static. Remove "op"
3699 parameter.
3700 (evaluate_subexp_standard): Update.
3701 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3702
46916f2b
TT
37032021-03-08 Tom Tromey <tom@tromey.com>
3704
3705 * expop.h (class comparison_operation): New.
3706 (equal_operation, notequal_operation, less_operation)
3707 (gtr_operation, geq_operation, leq_operation): New typedefs.
3708 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3709 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3710
224d6424
TT
37112021-03-08 Tom Tromey <tom@tromey.com>
3712
3713 * expop.h (class subscript_operation): New.
3714 * eval.c (eval_op_subscript): No longer static.
3715
373907ff
TT
37162021-03-08 Tom Tromey <tom@tromey.com>
3717
3718 * expop.h (class binop_operation, class usual_ax_binop_operation):
3719 New.
3720 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3721 (div_operation, rem_operation, lsh_operation, rsh_operation)
3722 (bitwise_and_operation, bitwise_ior_operation)
3723 (bitwise_xor_operation): New typedefs.
3724 * eval.c (eval_op_binary): No longer static.
3725
5133d78b
TT
37262021-03-08 Tom Tromey <tom@tromey.com>
3727
3728 * expop.h (class sub_operation): New.
3729 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3730 (evaluate_subexp_standard): Update.
3731
a94323b6
TT
37322021-03-08 Tom Tromey <tom@tromey.com>
3733
3734 * expop.h (class add_operation): New.
3735 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3736 (evaluate_subexp_standard): Update.
3737
e51e26a0
TT
37382021-03-08 Tom Tromey <tom@tromey.com>
3739
3740 * expop.h (class concat_operation): New.
3741 * eval.c (eval_op_concat): No longer static. Remove "op"
3742 parameter.
3743 (evaluate_subexp_standard): Update.
3744
07f724a8
TT
37452021-03-08 Tom Tromey <tom@tromey.com>
3746
3747 * expop.h (class structop_member_operation)
3748 (class structop_mptr_operation): New.
3749 * eval.c (eval_op_member): No longer static.
3750
ab0609be
TT
37512021-03-08 Tom Tromey <tom@tromey.com>
3752
3753 * expop.h (class structop_ptr_operation): New.
3754 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3755 parameter.
3756
808b22cf
TT
37572021-03-08 Tom Tromey <tom@tromey.com>
3758
3759 * expop.h (class structop_base_operation)
3760 (class structop_operation): New.
3761 * eval.c (eval_op_structop_struct): No longer static.
3762
8cfd3e95
TT
37632021-03-08 Tom Tromey <tom@tromey.com>
3764
3765 * expop.h (class complex_operation): New.
3766
09db3700
TT
37672021-03-08 Tom Tromey <tom@tromey.com>
3768
3769 * eval.c (eval_op_objc_selector): No longer static.
3770 * c-exp.h (class objc_selector_operation): New.
3771
06dc61b9
TT
37722021-03-08 Tom Tromey <tom@tromey.com>
3773
3774 * eval.c: Include c-exp.h.
3775 * c-exp.h (class objc_nsstring_operation): New.
3776
72d0a711
TT
37772021-03-08 Tom Tromey <tom@tromey.com>
3778
3779 * c-lang.c (c_string_operation::evaluate): New method.
3780 * c-exp.h: New file.
3781
9186293f
TT
37822021-03-08 Tom Tromey <tom@tromey.com>
3783
3784 * expop.h (class ternop_cond_operation): New.
3785 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3786
1594e0bb
TT
37872021-03-08 Tom Tromey <tom@tromey.com>
3788
3789 * expop.h (class ternop_slice_operation): New.
3790 * eval.c (eval_op_ternop): No longer static.
3791
b50db09f
TT
37922021-03-08 Tom Tromey <tom@tromey.com>
3793
3794 * expop.h (class string_operation): New.
3795 * eval.c (eval_op_string): No longer static.
3796
e6e01e16
TT
37972021-03-08 Tom Tromey <tom@tromey.com>
3798
3799 * expop.h (class internalvar_operation): New.
3800 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3801
e6985c5e
TT
38022021-03-08 Tom Tromey <tom@tromey.com>
3803
3804 * expop.h (class bool_operation): New.
3805
55bdbff8
TT
38062021-03-08 Tom Tromey <tom@tromey.com>
3807
3808 * expop.h (class register_operation): New.
3809 * eval.c (eval_op_register): No longer static.
3810 * ax-gdb.c (register_operation::do_generate_ax): New method.
3811
247d935b
TT
38122021-03-08 Tom Tromey <tom@tromey.com>
3813
3814 * expop.h (class last_operation): New.
3815
17679395
TT
38162021-03-08 Tom Tromey <tom@tromey.com>
3817
3818 * expop.h (class func_static_var_operation): New.
3819 * eval.c (eval_op_func_static_var): No longer static.
3820
b5cc3923
TT
38212021-03-08 Tom Tromey <tom@tromey.com>
3822
3823 * expop.h (class var_entry_value_operation): New.
3824 * eval.c (eval_op_var_entry_value): No longer static.
3825
0c8effa3
TT
38262021-03-08 Tom Tromey <tom@tromey.com>
3827
3828 * expression.h (class operation) <set_outermost>: New method.
3829 * expop.h (class var_msym_value_operation): New.
3830 * eval.c (eval_op_var_msym_value): No longer static.
3831 (var_msym_value_operation::evaluate_for_address)
3832 (var_msym_value_operation::evaluate_for_sizeof)
3833 (var_msym_value_operation::evaluate_for_cast): New methods.
3834 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3835 method.
3836
d336c29e
TT
38372021-03-08 Tom Tromey <tom@tromey.com>
3838
3839 * expop.h (class long_const_operation): New.
3840 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3841
d5ab122c
TT
38422021-03-08 Tom Tromey <tom@tromey.com>
3843
3844 * expop.h (class scope_operation): New.
3845 * eval.c (eval_op_scope): No longer static.
3846 (scope_operation::evaluate_for_address): New method.
3847 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3848
cae26a0c
TT
38492021-03-08 Tom Tromey <tom@tromey.com>
3850
3851 * expprint.c (float_const_operation::dump): New method.
3852 * expop.h (float_data): New typedef.
3853 (class float_const_operation): New.
3854
75f9892d
TT
38552021-03-08 Tom Tromey <tom@tromey.com>
3856
3857 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3858 * ax-gdb.c (gen_expr_binop): New function.
3859 (gen_expr_structop): Likewise.
3860
de401988
TT
38612021-03-08 Tom Tromey <tom@tromey.com>
3862
3863 * expprint.c (expr::dump_for_expression): New functions.
3864 * expop.h (dump_for_expression): New overloads.
3865 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3866 Update.
3867
e2803273
TT
38682021-03-08 Tom Tromey <tom@tromey.com>
3869
3870 * expression.h (expr::operation): New class.
3871 (expr::make_operation): New function.
3872 (expr::operation_up): New typedef.
3873 * expop.h: New file.
3874 * eval.c (operation::evaluate_for_cast)
3875 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3876 New methods.
3877 * ax-gdb.c (operation::generate_ax): New method.
3878
e18c58f2
TT
38792021-03-08 Tom Tromey <tom@tromey.com>
3880
3881 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3882 (gen_expr_binop_rest): New overload.
3883
c0d7ed8c
TT
38842021-03-08 Tom Tromey <tom@tromey.com>
3885
3886 * eval.c (eval_multi_subscript): New function.
3887 (evaluate_subexp_standard): Use it.
3888
dd5fd283
TT
38892021-03-08 Tom Tromey <tom@tromey.com>
3890
3891 * ada-lang.c (ada_binop_exp): New function.
3892 (ada_evaluate_subexp): Use it.
3893
3848abd6
TT
38942021-03-08 Tom Tromey <tom@tromey.com>
3895
3896 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3897 parameters.
3898 (ada_evaluate_subexp): Use it.
3899
38dc70cf
TT
39002021-03-08 Tom Tromey <tom@tromey.com>
3901
3902 * ada-lang.c (ada_binop_minmax): New function.
3903 (ada_evaluate_subexp): Use it.
3904
b84564fc
TT
39052021-03-08 Tom Tromey <tom@tromey.com>
3906
3907 * ada-lang.c (ada_unop_atr): New function.
3908 (ada_evaluate_subexp): Use it.
3909
b467efaa
TT
39102021-03-08 Tom Tromey <tom@tromey.com>
3911
3912 * ada-lang.c (ada_binop_in_bounds): New function.
3913 (ada_evaluate_subexp): Use it.
3914
5ce19db8
TT
39152021-03-08 Tom Tromey <tom@tromey.com>
3916
3917 * ada-lang.c (ada_ternop_slice): New function.
3918 (ada_evaluate_subexp): Use it.
3919
214b13ac
TT
39202021-03-08 Tom Tromey <tom@tromey.com>
3921
3922 * ada-lang.c (ada_equal_binop): New function.
3923 (ada_evaluate_subexp): Use it.
3924
faa1dfd7
TT
39252021-03-08 Tom Tromey <tom@tromey.com>
3926
3927 * ada-lang.c (ada_mult_binop): New function.
3928 (ada_evaluate_subexp): Use it.
3929
d05e24e6
TT
39302021-03-08 Tom Tromey <tom@tromey.com>
3931
3932 * ada-lang.c (ada_abs): New function.
3933 (ada_evaluate_subexp): Use it.
3934
68c75735
TT
39352021-03-08 Tom Tromey <tom@tromey.com>
3936
3937 * ada-lang.c (ada_atr_size): New function.
3938 (ada_evaluate_subexp): Use it.
3939
020dbabe
TT
39402021-03-08 Tom Tromey <tom@tromey.com>
3941
3942 * ada-lang.c (ada_atr_tag): New function.
3943 (ada_evaluate_subexp): Use it.
3944
7efc87ff
TT
39452021-03-08 Tom Tromey <tom@tromey.com>
3946
3947 * ada-lang.c (ada_unop_in_range): New function.
3948 (ada_evaluate_subexp): Use it.
3949
82390ab8
TT
39502021-03-08 Tom Tromey <tom@tromey.com>
3951
3952 * ada-lang.c (ada_unop_neg): New function.
3953 (ada_evaluate_subexp): Use it.
3954
62d4bd94
TT
39552021-03-08 Tom Tromey <tom@tromey.com>
3956
3957 * ada-lang.c (eval_ternop_in_range): New function.
3958 (ada_evaluate_subexp): Use it.
3959
3634f669
TT
39602021-03-08 Tom Tromey <tom@tromey.com>
3961
3962 * opencl-lang.c (eval_opencl_assign): New function.
3963 (evaluate_subexp_opencl): Use it.
3964
5e80600e
TT
39652021-03-08 Tom Tromey <tom@tromey.com>
3966
3967 * eval.c (eval_op_objc_msgcall): New function.
3968 (evaluate_subexp_standard): Use it.
3969
fb5ba2ab
TT
39702021-03-08 Tom Tromey <tom@tromey.com>
3971
3972 * eval.c (eval_binop_assign_modify): New function.
3973 (evaluate_subexp_standard): Use it.
3974
a49881f7
TT
39752021-03-08 Tom Tromey <tom@tromey.com>
3976
3977 * m2-lang.c (eval_op_m2_subscript): New function.
3978 (evaluate_subexp_modula2): Use it.
3979
41bdced5
TT
39802021-03-08 Tom Tromey <tom@tromey.com>
3981
3982 * m2-lang.c (eval_op_m2_high): New function.
3983 (evaluate_subexp_modula2): Use it.
3984
13ea014a
TT
39852021-03-08 Tom Tromey <tom@tromey.com>
3986
3987 * eval.c (evaluate_subexp_for_address_base): New function.
3988 (evaluate_subexp_for_address): Use it.
3989 (evaluate_subexp_for_sizeof_base): New function.
3990 (evaluate_subexp_for_sizeof): Use it.
3991
1fa41fc7
TT
39922021-03-08 Tom Tromey <tom@tromey.com>
3993
3994 * rust-lang.c (eval_op_rust_structop): New function.
3995 (rust_evaluate_subexp): Use it.
3996
575cae23
TT
39972021-03-08 Tom Tromey <tom@tromey.com>
3998
3999 * rust-lang.c (eval_op_rust_struct_anon): New function.
4000 (rust_evaluate_subexp): Use it.
4001
05104233
TT
40022021-03-08 Tom Tromey <tom@tromey.com>
4003
4004 * rust-lang.c (eval_op_rust_array): New function.
4005 (rust_evaluate_subexp): Use it.
4006
6fa9831f
TT
40072021-03-08 Tom Tromey <tom@tromey.com>
4008
4009 * rust-lang.c (eval_op_rust_complement): New function.
4010 (rust_evaluate_subexp): Use it.
4011
d123f9e4
TT
40122021-03-08 Tom Tromey <tom@tromey.com>
4013
4014 * rust-lang.c (eval_op_rust_ind): New function.
4015 (rust_evaluate_subexp): Use it.
4016
984af2cb
TT
40172021-03-08 Tom Tromey <tom@tromey.com>
4018
4019 * rust-lang.c (rust_subscript): Change parameters.
4020 (rust_evaluate_subexp): Update.
4021
d148f803
TT
40222021-03-08 Tom Tromey <tom@tromey.com>
4023
4024 * rust-lang.c (rust_range): Change parameters.
4025 (rust_evaluate_subexp): Update.
4026
9cbd1c20
TT
40272021-03-08 Tom Tromey <tom@tromey.com>
4028
4029 * f-lang.c (eval_op_f_allocated): New function.
4030 (evaluate_subexp_f): Use it.
4031
3c18c49c
TT
40322021-03-08 Tom Tromey <tom@tromey.com>
4033
4034 * f-lang.c (fortran_require_array): New function.
4035 (evaluate_subexp_f): Use it.
4036
216f6fcb
TT
40372021-03-08 Tom Tromey <tom@tromey.com>
4038
4039 * f-lang.c (eval_op_f_kind): New function.
4040 (evaluate_subexp_f): Use it.
4041
00f2db6f
TT
40422021-03-08 Tom Tromey <tom@tromey.com>
4043
4044 * f-lang.c (eval_op_f_cmplx): New function.
4045 (evaluate_subexp_f): Use it.
4046
93b2b5fa
TT
40472021-03-08 Tom Tromey <tom@tromey.com>
4048
4049 * f-lang.c (eval_op_f_modulo): New function.
4050 (evaluate_subexp_f): Use it.
4051
9f1a1f3c
TT
40522021-03-08 Tom Tromey <tom@tromey.com>
4053
4054 * f-lang.c (eval_op_f_floor): New function.
4055 (evaluate_subexp_f): Use it.
4056
3dc41f3c
TT
40572021-03-08 Tom Tromey <tom@tromey.com>
4058
4059 * f-lang.c (eval_op_f_ceil): New function.
4060 (evaluate_subexp_f): Use it.
4061
e08109f2
TT
40622021-03-08 Tom Tromey <tom@tromey.com>
4063
4064 * f-lang.c (eval_op_f_mod): New function.
4065 (evaluate_subexp_f): Use it.
4066
cc05c68e
TT
40672021-03-08 Tom Tromey <tom@tromey.com>
4068
4069 * f-lang.c (eval_op_f_abs): New function.
4070 (evaluate_subexp_f): Use it.
4071
aec95807
TT
40722021-03-08 Tom Tromey <tom@tromey.com>
4073
4074 * eval.c (eval_op_type): New function.
4075 (evaluate_subexp_standard): Use it.
4076
a220ead5
TT
40772021-03-08 Tom Tromey <tom@tromey.com>
4078
4079 * eval.c (eval_op_postdec): New function.
4080 (evaluate_subexp_standard): Use it.
4081
abffe116
TT
40822021-03-08 Tom Tromey <tom@tromey.com>
4083
4084 * eval.c (eval_op_postinc): New function.
4085 (evaluate_subexp_standard): Use it.
4086
9e1361b7
TT
40872021-03-08 Tom Tromey <tom@tromey.com>
4088
4089 * eval.c (eval_op_predec): New file.
4090 (evaluate_subexp_standard): Use it.
4091
00f50884
TT
40922021-03-08 Tom Tromey <tom@tromey.com>
4093
4094 * eval.c (eval_op_preinc): New function.
4095 (evaluate_subexp_standard): Use it.
4096
3aef2a07
TT
40972021-03-08 Tom Tromey <tom@tromey.com>
4098
4099 * eval.c (eval_op_memval): New function.
4100 (evaluate_subexp_standard): Use it.
4101
acee9468
TT
41022021-03-08 Tom Tromey <tom@tromey.com>
4103
4104 * eval.c (eval_op_alignof): New function.
4105 (evaluate_subexp_standard): Use it.
4106
786f70ee
TT
41072021-03-08 Tom Tromey <tom@tromey.com>
4108
4109 * eval.c (eval_op_ind): New function.
4110 (evaluate_subexp_standard): Use it.
4111
24338fb9
TT
41122021-03-08 Tom Tromey <tom@tromey.com>
4113
4114 * eval.c (eval_op_lognot): New function.
4115 (evaluate_subexp_standard): Use it.
4116
1f09ec81
TT
41172021-03-08 Tom Tromey <tom@tromey.com>
4118
4119 * eval.c (eval_op_complement): New function.
4120 (evaluate_subexp_standard): Use it.
4121
606d105f
TT
41222021-03-08 Tom Tromey <tom@tromey.com>
4123
4124 * eval.c (eval_op_neg): New function.
4125 (evaluate_subexp_standard): Use it.
4126
39f288be
TT
41272021-03-08 Tom Tromey <tom@tromey.com>
4128
4129 * eval.c (eval_op_plus): New function.
4130 (evaluate_subexp_standard): Use it.
4131
eed70b1c
TT
41322021-03-08 Tom Tromey <tom@tromey.com>
4133
4134 * eval.c (eval_op_repeat): New function.
4135 (evaluate_subexp_standard): Use it.
4136
60cdd487
TT
41372021-03-08 Tom Tromey <tom@tromey.com>
4138
4139 * eval.c (eval_op_leq): New function.
4140 (evaluate_subexp_standard): Use it.
4141
96e3efd9
TT
41422021-03-08 Tom Tromey <tom@tromey.com>
4143
4144 * eval.c (eval_op_geq): New function.
4145 (evaluate_subexp_standard): Use it.
4146
1f78d732
TT
41472021-03-08 Tom Tromey <tom@tromey.com>
4148
4149 * eval.c (eval_op_gtr): New function.
4150 (evaluate_subexp_standard): Use it.
4151
6cad1349
TT
41522021-03-08 Tom Tromey <tom@tromey.com>
4153
4154 * eval.c (eval_op_less): New function.
4155 (evaluate_subexp_standard): Use it.
4156
1fcb3559
TT
41572021-03-08 Tom Tromey <tom@tromey.com>
4158
4159 * eval.c (eval_op_notequal): New function.
4160 (evaluate_subexp_standard): Use it.
4161
0cc96de8
TT
41622021-03-08 Tom Tromey <tom@tromey.com>
4163
4164 * eval.c (eval_op_equal): New function.
4165 (evaluate_subexp_standard): Use it.
4166
288d26bc
TT
41672021-03-08 Tom Tromey <tom@tromey.com>
4168
4169 * eval.c (eval_op_subscript): New function.
4170 (evaluate_subexp_standard): Use it.
4171
7cdcdd02
TT
41722021-03-08 Tom Tromey <tom@tromey.com>
4173
4174 * eval.c (eval_op_binary): New function.
4175 (evaluate_subexp_standard): Use it.
4176
d9790e22
TT
41772021-03-08 Tom Tromey <tom@tromey.com>
4178
4179 * eval.c (eval_op_sub): New function.
4180 (evaluate_subexp_standard): Use it.
4181
aedaf9ac
TT
41822021-03-08 Tom Tromey <tom@tromey.com>
4183
4184 * eval.c (eval_op_add): New function.
4185 (evaluate_subexp_standard): Use it.
4186
b7a96ed2
TT
41872021-03-08 Tom Tromey <tom@tromey.com>
4188
4189 * eval.c (eval_op_member): New function.
4190 (evaluate_subexp_standard): Use it.
4191
fb461aa3
TT
41922021-03-08 Tom Tromey <tom@tromey.com>
4193
4194 * eval.c (eval_op_structop_ptr): New function.
4195 (evaluate_subexp_standard): Use it.
4196
3e96c4fc
TT
41972021-03-08 Tom Tromey <tom@tromey.com>
4198
4199 * eval.c (eval_op_structop_struct): New function.
4200 (evaluate_subexp_standard): Use it.
4201
f960a617
TT
42022021-03-08 Tom Tromey <tom@tromey.com>
4203
4204 * eval.c (eval_op_ternop): New function.
4205 (evaluate_subexp_standard): Use it.
4206
5c2f201e
TT
42072021-03-08 Tom Tromey <tom@tromey.com>
4208
4209 * eval.c (eval_op_concat): New function.
4210 (evaluate_subexp_standard): Use it.
4211
f871bae1
TT
42122021-03-08 Tom Tromey <tom@tromey.com>
4213
4214 * eval.c (eval_op_objc_selector): New function.
4215 (evaluate_subexp_standard): Use it.
4216
14a1c64a
TT
42172021-03-08 Tom Tromey <tom@tromey.com>
4218
4219 * eval.c (eval_op_string): New function.
4220 (evaluate_subexp_standard): Use it.
4221
ffff730b
TT
42222021-03-08 Tom Tromey <tom@tromey.com>
4223
4224 * eval.c (eval_op_register): New function.
4225 (evaluate_subexp_standard): Use it.
4226
9b1d8af6
TT
42272021-03-08 Tom Tromey <tom@tromey.com>
4228
4229 * eval.c (eval_op_func_static_var): New function.
4230 (evaluate_subexp_standard): Use it.
4231
c0df9289
TT
42322021-03-08 Tom Tromey <tom@tromey.com>
4233
4234 * eval.c (eval_op_var_msym_value): New function.
4235 (evaluate_subexp_standard): Use it.
4236
50b98adc
TT
42372021-03-08 Tom Tromey <tom@tromey.com>
4238
4239 * eval.c (eval_op_var_entry_value): New function.
4240 (evaluate_subexp_standard): Use it.
4241
ea2d29f7
TT
42422021-03-08 Tom Tromey <tom@tromey.com>
4243
4244 * eval.c (eval_op_scope): New function.
4245 (evaluate_subexp_standard): Use it.
4246
01573d73
TT
42472021-03-06 Chernov Sergey <klen_s@mail.ru>
4248
4249 PR gdb/27528:
4250 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4251
9938d15a
TT
42522021-03-06 Tom Tromey <tom@tromey.com>
4253
4254 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4255 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4256 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4257 (locate_dwz_sections, dwz_search_other_debugdirs)
4258 (dwarf2_get_dwz_file): Move to dwz.c.
4259 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4260 read.h.
4261 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4262 (dwarf2_get_dwz_file): Move from read.c.
4263
18035655
TT
42642021-03-06 Tom Tromey <tom@tromey.com>
4265
4266 * debuginfod-support.h: Include scoped_fd.h.
4267
a7308ce0
TT
42682021-03-06 Tom Tromey <tom@tromey.com>
4269
4270 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4271 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4272 (get_abbrev_section_for_cu, read_attribute_value)
4273 (get_debug_line_section): Update.
4274 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4275
fbedd546
TT
42762021-03-06 Tom Tromey <tom@tromey.com>
4277
4278 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4279 method.
4280 * dwarf2/read.c (section_is_p): Remove.
4281 (dwarf2_per_bfd::locate_sections)
4282 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4283 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4284 (dwarf2_locate_common_dwp_sections)
4285 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4286 Update.
4287
c2a62a3d
TT
42882021-03-06 Tom Tromey <tom@tromey.com>
4289
4290 * xcoffread.c: Include sect-names.h.
4291 * symfile.h (struct dwarf2_section_names, struct
4292 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4293 * dwarf2/sect-names.h: New file, from symfile.h.
4294 * dwarf2/read.c: Include sect-names.h.
4295
4444f407
TT
42962021-03-06 Tom Tromey <tom@tromey.com>
4297
4298 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4299 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4300 (abbrev_table::read): Update.
4301 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4302 (struct abbrev_info): Reformat.
4303 <attrs>: Now an array.
4304 (struct abbrev_table) <alloc_abbrev>: Remove.
4305
dd99cf0c
WP
43062021-03-06 Weimin Pan <weimin.pan@oracle.com>
4307
4308 * ctfread.c (ctf_psymtab_add_enums): New function.
4309 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4310
844be3f2
WP
43112021-03-06 Weimin Pan <weimin.pan@oracle.com>
4312
4313 * ctfread.c (read_func_kind_type): Set up function arguments.
4314
b2668f28
AB
43152021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4316 Andrew Burgess <andrew.burgess@embecosm.com>
4317
4318 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4319 includes.
4320 (riscv_csrset): New static global.
4321 (riscv_update_csrmap): New function.
4322 (riscv_iterate_over_regset_sections): Process CSRs.
4323
d782d24b
AB
43242021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4325
4326 * riscv-tdep.c (riscv_feature_name_csr): Define.
4327 (riscv_feature_name_cpu): Define.
4328 (riscv_feature_name_fpu): Define.
4329 (riscv_feature_name_virtual): Define.
4330 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4331 (riscv_freg_feature): Use riscv_feature_name_fpu.
4332 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4333 (riscv_csr_feature): Use riscv_feature_name_csr.
4334 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4335
fb8f3fc0
AB
43362021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4337 Craig Blackmore <craig.blackmore@embecosm.com>
4338
4339 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4340 (ALLDEPFILES): Add riscv-none-tdep.c.
4341 * configure: Regenerate.
4342 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4343 support.
4344 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4345 * elf-none-tdep.c: New file.
4346 * elf-none-tdep.h: New file.
4347 * riscv-none-tdep.c: New file.
4348
95ce627a
AB
43492021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4350 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * corelow.c: Add 'xml-tdesc.h' include.
4353 (core_target::read_description): Load the target description from
4354 the core file when possible.
4355 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4356 note.
4357 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4358 (gcore_elf_make_tdesc_note): New function.
4359 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4360 * linux-tdep.c (linux_make_corefile_notes): Add target description
4361 note.
4362
f3a5df7b
AB
43632021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4364
4365 * Makefile.in (SFILES): Add gcore-elf.c.
4366 (HFILES_NO_SRCDIR): Add gcore-elf.h
4367 * configure: Regenerate.
4368 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4369 support.
4370 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4371 (struct fbsd_collect_regset_section_cb_data): Delete.
4372 (fbsd_collect_regset_section_cb): Delete.
4373 (fbsd_collect_thread_registers): Delete.
4374 (struct fbsd_corefile_thread_data): Delete.
4375 (fbsd_corefile_thread): Delete.
4376 (fbsd_make_corefile_notes): Call
4377 gcore_elf_build_thread_register_notes instead of the now deleted
4378 FreeBSD code.
4379 * gcore-elf.c: New file, the content was moved here from
4380 linux-tdep.c, functions were renamed and given minor cleanup.
4381 * gcore-elf.h: New file.
4382 * gcore.c (gcore_find_signalled_thread): Moved here from
4383 linux-tdep.c and given a new name. Minor cleanups.
4384 * gcore.h (gcore_find_signalled_thread): Declare.
4385 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4386 (struct linux_collect_regset_section_cb_data): Delete.
4387 (linux_collect_regset_section_cb): Delete.
4388 (linux_collect_thread_registers): Delete.
4389 (linux_corefile_thread): Call
4390 gcore_elf_build_thread_register_notes.
4391 (find_signalled_thread): Delete.
4392 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4393
d1e93af6
SM
43942021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4395
4396 PR gdb/27147
4397 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4398 process_stratum_target parameter,
4399 sparc_store_inferior_registers): update callers.
4400 * sparc-nat.c (sparc_fetch_inferior_registers,
4401 sparc_store_inferior_registers): Add process_stratum_target
4402 parameter. Switch current thread before calling
4403 sparc_supply_gregset / sparc_collect_rwindow.
4404 (sparc_store_inferior_registers): Likewise.
4405 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4406 (sparc32obsd_collect_uthread): Likewise.
4407 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4408 Add assertion.
4409 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4410 sparc64obsd_supply_uthread): Add assertion.
4411
1178743e
TT
44122021-03-04 Tom Tromey <tromey@adacore.com>
4413
4414 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4415 (aux_add_nonlocal_symbols): Update.
4416 (ada_add_block_symbols): Change "found_sym" to bool.
4417
1bfa81ac
TT
44182021-03-03 Tom Tromey <tromey@adacore.com>
4419
4420 * ada-lang.c (ada_resolve_function): Update comment.
4421 (is_nonfunction, add_symbols_from_enclosing_procs)
4422 (remove_extra_symbols): Likewise.
4423 (struct match_data): Add constructor, initializers.
4424 (add_nonlocal_symbols): Remove memset.
4425 (aux_add_nonlocal_symbols): Update comment.
4426 (ada_add_block_renamings, add_nonlocal_symbols)
4427 (ada_add_all_symbols): Likewise.
4428 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4429
bbcdf9ab
TT
44302021-03-02 Tom Tromey <tromey@adacore.com>
4431
4432 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4433 (cast_to_gnat_encoded_fixed_point_type): Remove.
4434 (ada_value_cast, ada_evaluate_subexp): Update.
4435 (gnat_encoded_fixed_point_type_info)
4436 (ada_is_gnat_encoded_fixed_point_type)
4437 (gnat_encoded_fixed_point_delta)
4438 (gnat_encoded_fixed_point_scaling_factor): Remove.
4439 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4440 (gnat_encoded_fixed_point_delta)
4441 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4442 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4443 (ada_print_type): Update.
4444 * ada-valprint.c (ada_value_print_num): Update.
4445 * dwarf2/read.c (ada_get_gnat_encoded_number)
4446 (ada_get_gnat_encoded_ratio): New functions.
4447 (finish_fixed_point_type): Use them. Add parameters.
4448 (GNAT_FIXED_POINT_SUFFIX): New define.
4449 (gnat_encoded_fixed_point_type_info): New function.
4450 (read_base_type): Handle gnat encodings.
4451
5f9febe0
TT
44522021-03-02 Tom Tromey <tromey@adacore.com>
4453
4454 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4455 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4456 std::string.
4457 (GROW_VECT): Remove.
4458 (grow_vect): Remove.
4459
d1183b06
TT
44602021-03-02 Tom Tromey <tromey@adacore.com>
4461
4462 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4463 * ada-lang.c (resolve_subexp): Update.
4464 (ada_resolve_function): Accept a vector.
4465 (is_nonfunction, add_defn_to_vec)
4466 (add_symbols_from_enclosing_procs): Likewise.
4467 (num_defns_collected, defns_collected): Remove.
4468 (remove_extra_symbols): Return a vector.
4469 (remove_irrelevant_renamings): Return void.
4470 (ada_add_local_symbols): Accept a vector.
4471 (struct match_data) <obstackp>: Remove.
4472 <resultp>: New member.
4473 (aux_add_nonlocal_symbols): Update.
4474 (ada_add_block_renamings, add_nonlocal_symbols)
4475 (ada_add_all_symbols): Accept a vector.
4476 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4477 vector.
4478 (ada_lookup_symbol): Update.
4479 (ada_add_block_symbols): Accept a vector.
4480 (get_var_value, iterate_over_symbols): Update.
4481 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4482 Update.
4483
886d459f
TT
44842021-03-02 Tom Tromey <tromey@adacore.com>
4485
4486 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4487
bdcccc56
TT
44882021-03-02 Tom Tromey <tromey@adacore.com>
4489
4490 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4491 auto_obstack.
4492 <root>: Initialize.
4493 (ada_pspace_data): Remove destructor.
4494 <sym_cache>: Now a unique_ptr.
4495 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4496 (ada_get_symbol_cache): Use 'new'.
4497 (ada_clear_symbol_cache): Rewrite.
4498
1228719f
TT
44992021-03-02 Tom Tromey <tromey@adacore.com>
4500
4501 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4502 is null.
4503
bb3a4efe
LS
45042021-02-27 Lancelot Six <lsix@lancelotsix.com>
4505
4506 PR gdb/27393
4507 * source.c (add_path): Skip empty dirnames.
4508
26b43ca6 45092021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4510
4511 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4512 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4513
dffdd8b5
SM
45142021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4515
4516 PR gdb/26861
4517 * target.c (target_mourn_inferior): Only compare pids in
4518 target_mourn_inferior.
4519
64d38fdd
JM
45202021-02-25 Jan Matyas <jmatyas@codasip.com>
4521
4522 PR gdb/26819
4523 * remote.c (remote_target::start_remote): Ensure the single
4524 thread, automatically added for remote targets without the
4525 concept of threading, is initially in set to the "resumed"
4526 state.
4527 * remote.c (remote_target::add_current_inferior_and_thread):
4528 Add return value - return the main thread.
4529
2450ad54
JV
45302021-02-25 Jan Vrany <jan.vrany@labware.com>
4531
4532 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4533 (mi_tsv_created): Likewise.
4534 (mi_tsv_deleted): Likewise.
4535
30c80d88
TV
45362021-02-25 Tom de Vries <tdevries@suse.de>
4537
4538 PR symtab/27354
4539 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4540 section_kind for &dwo_file->sections.info.
4541
68337b8b
AB
45422021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 PR fortran/26155
4545 * f-lang.c (fortran_argument_convert): Delete declaration.
4546 (fortran_prepare_argument): New function.
4547 (evaluate_subexp_f): Move logic to new function
4548 fortran_prepare_argument.
4549
faeb9f13
AB
45502021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4551
4552 * f-exp.y (f77_keywords): Add 'associated'.
4553 * f-lang.c (fortran_associated): New function.
4554 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4555 (operator_length_f): Likewise.
4556 (print_unop_or_binop_subexp_f): New function.
4557 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4558 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4559 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4560 (operator_check_f): Likewise.
4561 * std-operator.def: Add FORTRAN_ASSOCIATED.
4562
170f4b23
AB
45632021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * f-exp.y (fortran_operators): Add ".xor.".
4566
aa659cfa
TV
45672021-02-24 Tom de Vries <tdevries@suse.de>
4568
4569 PR symtab/27336
4570 * dwarf2/attribute.c (attribute::form_is_signed): New function
4571 factored out of ...
4572 * dwarf2/attribute.h (attribute::as_signed): ... here.
4573 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4574 (attribute::form_is_signed): Declare.
4575 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4576 for DW_AT_decl_file.
4577
268c77c1
KB
45782021-02-24 Kevin Buettner <kevinb@redhat.com>
4579
4580 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4581 order for <sys/ptrace.h> and <asm/ptrace.h>.
4582
665af52e
KB
45832021-02-24 Kevin Buettner <kevinb@redhat.com>
4584
4585 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4586 <sys/ptrace.h>.
4587
dd80d750
AB
45882021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4589
4590 * exec.c (set_section_command): Move variable declarations into
4591 the function body, and use std::string instead of a fixed size
4592 buffer.
4593
336aa7b7
AB
45942021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4595
4596 * exec.c (exec_target::get_section_table): Delete member function.
4597 (section_table_read_available_memory): Use current_top_target, not
4598 just the exec_ops target.
4599 * target-delegates.c: Regenerate.
4600 * target.c (default_get_section_table): New function.
4601 * target.h (target_ops::get_section_table): Change default
4602 behaviour to call default_get_section_table.
4603 (default_get_section_table): Declare.
4604
02f7d26b
AB
46052021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4606
4607 * exec.c (exec_target::close): Call new clear_target_sections
4608 function.
4609 (program_space::add_target_sections): Update name of member
4610 variable.
4611 (program_space::add_target_sections): Update name of member
4612 variable.
4613 (program_space::remove_target_sections): Likewise.
4614 (exec_one_fork): Use new target_sections member function.
4615 (exec_target::get_section_table): Likewise.
4616 (exec_target::files_info): Likewise.
4617 (set_section_command): Likewise.
4618 (exec_set_section_address): Likewise.
4619 (exec_target::has_memory): Use new target_sections member
4620 function.
4621 * progspace.h (program_space::clear_target_sections): New member
4622 function.
4623 (program_space::target_sections): Rename member variable to
4624 m_target_sections, replace with a new member function.
4625 (program_space::m_target_sections): New member variable.
4626 * solib-dsbt.c (scan_dyntag): Use new member function.
4627 * solib-svr4.c (scan_dyntag): Likewise.
4628
19cf757a
AB
46292021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4630
4631 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4632 return type const.
4633 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4634 (section_table_read_available_memory): Make local const.
4635 (exec_target::xfer_partial): Make local const.
4636 (print_section_info): Make parameter const.
4637 * gdb/exec.h (print_section_info): Likewise.
4638 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4639 const.
4640 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4641 Likewise.
4642 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4643 Likewise.
4644 * gdb/s390-tdep.c (s390_load): Likewise.
4645 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4646 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4647 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4648 Rename to...
4649 (target_debug_print_const_target_section_table_p): ...this.
4650 * gdb/target-delegates.c: Regenerate.
4651 * gdb/target.c (target_get_section_table): Make return type const.
4652 (target_section_by_addr): Likewise. Also make some locals const.
4653 (memory_xfer_partial_1): Make some locals const.
4654 * gdb/target.h (struct target_ops) <get_section_table>: Make
4655 return type const.
4656 (target_section_by_addr): Likewise.
4657 (target_get_section_table): Likewise.
4658
02a79309
AB
46592021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4660
4661 * NEWS: Mention new 'maint info target-sections' command.
4662 * maint.c (maintenance_info_target_sections): New function.
4663 (_initialize_maint_cmds): Register new command.
4664
895b7b4e
AB
46652021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4668 (riscv_features_from_bfd): ...this. Change parameter type to
4669 'bfd*', and update as required.
4670 (riscv_find_default_target_description): Update call to
4671 riscv_features_from_bfd. Select a default xlen based on
4672 info.bfd_arch_info.
4673 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4674
bc3c0632
AB
46752021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4676
4677 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4678 dynamic types in UNOP_IND.
4679
08ac5771
SM
46802021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4681
4682 PR gdb/26828
4683 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4684 Instantiate queue.
4685 (~dwarf2_queue_guard): Clear queue.
4686 (queue_comp_unit): Assert that queue is
4687 instantiated.
4688 (process_queue): Adjust.
4689 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4690
616c069a
SM
46912021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4692
4693 PR gdb/26828
4694 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4695 to decide whether or not to enqueue it for expansion.
4696 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4697 after calling maybe_queue_comp_unit.
4698
897608ed
SM
46992021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4700
4701 * linux-nat.c (linux_nat_filter_event): Return void.
4702
15908a11
TT
47032021-02-22 Tom Tromey <tromey@adacore.com>
4704
4705 * solib-svr4.c (enable_break): Update.
4706 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4707 type.
4708 (target_bfd_reopen): Change parameter type.
4709 * bfd-target.h (target_bfd_reopen): Change parameter type.
4710
f53fc427
SM
47112021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4712
4713 * thread.c (add_thread_silent): Add assert.
4714 (find_thread_ptid): Add assert.
4715
de146e19
SM
47162021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4717
4718 PR gdb/27435
4719 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4720 (target_unpush_up): Likewise.
4721 * procfs.c (procfs_target::attach): Push target early. Use
4722 target_unpush_up to unpush target in case of error.
4723 * target.h (struct target_unpusher): Move here.
4724 (target_unpush_up): Likewise.
4725
8488c357
KB
47262021-02-19 Kevin Buettner <kevinb@redhat.com>
4727
4728 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4729 (which in turn includes <gnulib/config.h>) before include
4730 of <signal.h>.
4731
5a9f5403
NC
47322021-02-19 Nelson Chu <nelson.chu@sifive.com>
4733
4734 PR 27158
4735 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4736 (decode_j_type_insn): Likewise.
4737 (decode_cj_type_insn): Likewise.
4738 (decode_b_type_insn): Likewise.
4739 (decode): Likewise.
4740
26f53cd3
TT
47412021-02-18 Tom Tromey <tom@tromey.com>
4742
4743 * expression.h (struct expression) <evaluate>: Declare method.
4744 * eval.c (evaluate_subexp): Simplify.
4745 (expression::evaluate): New method.
4746 (evaluate_expression, evaluate_type): Use expression::evaluate.
4747
6a780b67
KB
47482021-02-17 Kevin Buettner <kevinb@redhat.com>
4749
4750 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4751 to accessing it.
4752 (ada_lookup_name_info): Likewise.
4753
adeab0c5
MF
47542021-02-13 Mike Frysinger <vapier@gentoo.org>
4755
4756 * aclocal.m4: Regenerate.
4757
089436f7
TV
47582021-02-12 Tom de Vries <tdevries@suse.de>
4759
4760 PR threads/26228
4761 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4762 (lin_thread_signals): New static var.
4763 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4764 New function.
4765 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4766 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4767 Declare.
4768 * linux-thread-db.c (check_thread_signals): Use
4769 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4770
96df3e28
AB
47712021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4772
4773 * f-exp.y (f77_keywords): Add allocated.
4774 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4775 (operator_length_f): Likewise.
4776 (print_subexp_f): Likewise.
4777 (dump_subexp_body_f): Likewise.
4778 (operator_check_f): Likewise.
4779 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4780
05f68f52
TV
47812021-02-11 Tom de Vries <tdevries@suse.de>
4782
4783 PR symtab/27353
4784 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4785 Return true for DW_FORM_strx.
4786
b260f8d6
TT
47872021-02-11 Tom Tromey <tromey@adacore.com>
4788
4789 PR gdb/27383:
4790 * parse.c (write_exp_symbol_reference): Write sym.block.
4791
bf3386f0
AB
47922021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4793
4794 * NEWS: Mention changes to 'maint info sections'.
4795 * maint.c (match_substring): Return a bool, fix whitespace issue.
4796 (struct single_bfd_flag_info): New struct.
4797 (bfd_flag_info): New static global.
4798 (match_bfd_flags): Return a bool, use bfd_flag_info.
4799 (print_bfd_flags): Use bfd_flag_info.
4800 (maint_print_section_info): Delete trailing whitespace.
4801 (struct maint_info_sections_opts): New struct.
4802 (maint_info_sections_option_defs): New static global.
4803 (maint_info_sections_completer): New function.
4804 (maintenance_info_sections): Use option parsing mechanism.
4805 (_initialize_maint_cmds): Update command help text for 'maint info
4806 sections' and register a command completer.
4807
4790db14
AB
48082021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4809
4810 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4811 functionality merged into...
4812 (maint_print_all_sections): ...this new function.
4813 (maintenance_info_sections): Make use of maint_print_all_sections,
4814 allow all objects to be printed even where there's no executable.
4815
1db66e34
AB
48162021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4817
4818 * breakpoint.c (resolve_sal_pc): Make use of
4819 bound_minimal_symbol::obj_section.
4820 * maint.c (maintenance_translate_address): Likewise.
4821 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4822 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4823 member function.
4824 * printcmd.c (info_address_command): Make use of
4825 bound_minimal_symbol::obj_section.
4826
18b8df43
AM
48272021-02-11 Alan Modra <amodra@gmail.com>
4828
4829 * arm-symbian-tdep.c: Delete.
4830 * NEWS: Mention arm-symbian removal.
4831 * Makefile.in: Remove arm-symbian-tdep entries.
4832 * configure.tgt: Remove arm*-*-symbianelf*.
4833 * doc/gdb.texinfo: Remove mention of SymbianOS.
4834 * osabi.c (gdb_osabi_names): Remove "Symbian".
4835 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4836 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4837 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4838 handling.
4839 * testsuite/gdb.base/dup-sect.exp: Likewise.
4840 * testsuite/gdb.base/long_long.exp: Likewise.
4841 * testsuite/gdb.base/solib-weak.exp: Likewise.
4842 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4843 * testsuite/gdb.python/py-section-script.exp: Likewise.
4844 * testsuite/lib/dwarf.exp: Likewise.
4845 * testsuite/lib/gdb.exp: Likewise.
4846
e92c8eb8
AB
48472021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4848
4849 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4850 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4851 (one_or_two_args): New pattern.
4852 (f77_keywords): Add lbound and ubound.
4853 * f-lang.c (fortran_bounds_all_dims): New function.
4854 (fortran_bounds_for_dimension): New function.
4855 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4856 (operator_length_f): Likewise.
4857 (print_subexp_f): Likewise.
4858 (dump_subexp_body_f): Likewise.
4859 (operator_check_f): Likewise.
4860 * std-operator.def (FORTRAN_LBOUND): Define.
4861 (FORTRAN_UBOUND): Define.
4862
a52d653e
AB
48632021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4864
4865 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4866 and set_section_index member functions where appropriate.
4867 * coffread.c (coff_symtab_read): Likewise.
4868 (process_coff_symbol): Likewise.
4869 * ctfread.c (set_symbol_address): Likewise.
4870 * dwarf2/read.c (add_partial_symbol): Likewise.
4871 (var_decode_location): Likewise.
4872 * language.c: Likewise.
4873 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4874 (compact_minimal_symbols): Likewise.
4875 (minimal_symbol_upper_bound): Likewise.
4876 * objfiles.c (relocate_one_symbol): Likewise.
4877 * psympriv.h (partial_symbol::obj_section): Likewise.
4878 (partial_symbol::address): Likewise.
4879 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4880 * stabsread.c (scan_file_globals): Likewise.
4881 * symmisc.c (dump_msymbols): Likewise.
4882 * symtab.c (general_symbol_info::obj_section): Likewise.
4883 (fixup_section): Likewise.
4884 (get_msymbol_address): Likewise.
4885 * symtab.h (general_symbol_info::section): Rename to...
4886 (general_symbol_info::m_section): ...this.
4887 (general_symbol_info::set_section_index): New member function.
4888 (general_symbol_info::section_index): Likewise.
4889 (SYMBOL_SECTION): Delete.
4890 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4891 set_section_index member functions where appropriate.
4892 (MSYMBOL_SECTION): Delete.
4893 (symbol::symbol): Update to initialize 'm_section'.
4894 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4895 (process_xcoff_symbol): Likewise.
4896
ebbc3a7d
AB
48972021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4898
4899 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4900 MSYMBOL_OBJ_SECTION.
4901 * findvar.c (language_defn::read_var_value): Likewise.
4902 * infcmd.c (jump_command): Likewise.
4903 * linespec.c (minsym_found): Likewise.
4904 * maint.c (maintenance_translate_address): Likewise.
4905 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4906 (minimal_symbol_upper_bound): Likewise.
4907 * parse.c (find_minsym_type_and_address): Likewise.
4908 (operator_check_standard): Likewise.
4909 * printcmd.c (info_address_command): Likewise.
4910 * symmisc.c (dump_msymbols): Likewise.
4911 (print_symbol): Likewise.
4912 * symtab.c (general_symbol_info::obj_section): Define new
4913 function.
4914 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4915 (find_pc_sect_compunit_symtab): Likewise.
4916 (find_function_start_sal): Likewise.
4917 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4918 MSYMBOL_OBJ_SECTION.
4919 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4920 function.
4921 (SYMBOL_OBJ_SECTION): Delete.
4922 (MSYMBOL_OBJ_SECTION): Delete.
4923
9bb305b3
TT
49242021-02-09 Tom Tromey <tom@tromey.com>
4925
4926 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4927
cf2b2075
TV
49282021-02-09 Tom de Vries <tdevries@suse.de>
4929
4930 PR symtab/27341
4931 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4932 construct an array type. Add assert to ensure that element_type is
4933 not being modified.
4934
03642b71
AB
49352021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4938 (gcore_collect_regset_section_cb): Delete.
4939 (gcore_collect_thread_registers): Delete.
4940 (gcore_build_thread_register_notes): Delete.
4941 (gcore_find_signalled_thread): Delete.
4942 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4943 'gdbarch' and 'thread_info' declarations.
4944 (gcore_build_thread_register_notes): Delete declaration.
4945 (gcore_find_signalled_thread): Likewise.
4946 * fbsd-tdep.c: Remove 'gcore.h' include.
4947 (struct fbsd_collect_regset_section_cb_data): New struct.
4948 (fbsd_collect_regset_section_cb): New function.
4949 (fbsd_collect_thread_registers): New function.
4950 (struct fbsd_corefile_thread_data): New struct.
4951 (fbsd_corefile_thread): New function.
4952 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4953 * linux-tdep.c: Remove 'gcore.h' include.
4954 (struct linux_collect_regset_section_cb_data): New struct.
4955 (linux_collect_regset_section_cb): New function.
4956 (linux_collect_thread_registers): New function.
4957 (linux_corefile_thread): Call Linux specific code.
4958 (find_signalled_thread): New function.
4959 (linux_make_corefile_notes): Call find_signalled_thread.
4960
f73e424f
TT
49612021-02-09 Tom Tromey <tromey@adacore.com>
4962
4963 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4964 not_lval value.
4965 * value.c (value_contents_copy_raw): Now static.
4966 * value.h (value_contents_copy_raw): Don't declare.
4967
a4f0544b
TT
49682021-02-09 Tom Tromey <tromey@adacore.com>
4969
4970 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4971 fields.
4972
9b3e4b5d
SV
49732021-02-08 Shahab Vahedi <shahab@synopsys.com>
4974
4975 PR tdep/27369
4976 * arc-linux-tdep.c (handle_atomic_sequence): New.
4977 (arc_linux_software_single_step): Call handle_atomic_sequence().
4978
29db1eb3
AB
49792021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4980
4981 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4982 function.
4983 (REQUIRE_WINDOW): Call is_valid member function.
4984 (REQUIRE_WINDOW_FOR_SETTER): New define.
4985 (gdbpy_tui_is_valid): Call is_valid member function.
4986 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4987 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4988 tui_active too.
4989 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4990 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4991 the function.
4992
e0c23e11
AB
49932021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4994
4995 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4996 for the title is not nullptr.
4997
1cf23996
AB
49982021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * tui-layout.c (saved_tui_windows): Delete.
5001 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5002 call new get_windows member function instead.
5003 (tui_get_window_by_name): Check in tui_windows.
5004 (tui_layout_window::apply): Don't add to tui_windows.
5005 * tui-layout.h (tui_layout_base::get_windows): New member function.
5006 (tui_layout_window::get_windows): Likewise.
5007 (tui_layout_split::get_windows): Likewise.
5008
a53a2657
AB
50092021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5010
5011 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5012 of the window objects.
5013
2708dbbd
AB
50142021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5015
5016 * python/python.c (gdbpy_print_stack): Reformat an error message.
5017
cd074e04
AB
50182021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5019
5020 * tui/tui-interp.c (tui_command_line_handler): New function.
5021 (tui_interp::resume): Register tui_command_line_handler as the
5022 input_handler.
5023 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5024 function.
5025 (tui_getc_1): Delete handling of '\n' and '\r'.
5026 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5027
4cf28e91
HD
50282021-02-07 Hannes Domani <ssbssa@yahoo.de>
5029
5030 * tui/tui-regs.c (tui_data_window::display_registers_from):
5031 Mark invisible register sub windows.
5032 (tui_data_window::check_register_values): Ignore invisible
5033 register sub windows.
5034
3537bc23
HD
50352021-02-07 Hannes Domani <ssbssa@yahoo.de>
5036
5037 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5038 n_spaces with a negative value.
5039
5fc2d6aa
HD
50402021-02-07 Hannes Domani <ssbssa@yahoo.de>
5041
5042 * tui/tui-regs.c (tui_data_window::display_registers_from):
5043 Add refresh_window call.
5044
83962f83
HD
50452021-02-07 Hannes Domani <ssbssa@yahoo.de>
5046
5047 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5048
0110ec82
SM
50492021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5050
5051 * symmisc.c (std_in, std_out, std_err): Remove.
5052 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5053
7c6944ab
TV
50542021-02-05 Tom de Vries <tdevries@suse.de>
5055
5056 PR breakpoints/27330
5057 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5058 glibc object file has debug info.
5059
e77b0004
TV
50602021-02-05 Tom de Vries <tdevries@suse.de>
5061
5062 PR symtab/27333
5063 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5064
0e857c82
TV
50652021-02-05 Tom de Vries <tdevries@suse.de>
5066
5067 PR breakpoints/27313
5068 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5069 syscall numbers.
5070
bdfea17e
TT
50712021-02-05 Tom Tromey <tom@tromey.com>
5072
5073 * compile/compile-c-support.c (get_compile_context)
5074 (c_get_compile_context, cplus_get_compile_context): Change return
5075 type.
5076 * language.c (language_defn::get_compile_instance): New method.
5077 * language.h (language_defn::get_compile_instance): Change return
5078 type. No longer inline.
5079 * c-lang.c (c_language::get_compile_instance): Change return type.
5080 (cplus_language::get_compile_instance): Change return type.
5081 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5082 Change return type.
5083 * compile/compile.c (compile_to_object): Update.
5084
1b30f421
TT
50852021-02-05 Tom Tromey <tom@tromey.com>
5086
5087 * parser-defs.h (write_exp_symbol_reference): Declare.
5088 * parse.c (write_exp_symbol_reference): New function.
5089 * p-exp.y (variable): Use write_exp_symbol_reference.
5090 * m2-exp.y (variable): Use write_exp_symbol_reference.
5091 * f-exp.y (variable): Use write_exp_symbol_reference.
5092 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5093 * c-exp.y (variable): Use write_exp_symbol_reference.
5094
ae710496
TV
50952021-02-05 Tom de Vries <tdevries@suse.de>
5096
5097 PR exp/27265
5098 * valarith.c (complex_binop): Throw an error if complex type can't
5099 be created.
5100
d3b54e63
TV
51012021-02-05 Tom de Vries <tdevries@suse.de>
5102
5103 PR symtab/27307
5104 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5105 return.
5106
fc9a13fb
TV
51072021-02-05 Tom de Vries <tdevries@suse.de>
5108
5109 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5110
04b4939b
MF
51112021-02-04 Mike Frysinger <vapier@gentoo.org>
5112
5113 * configure.tgt (riscv*-*-*): Set gdb_sim.
5114
6ff267e1
SM
51152021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5116
5117 * target.c (target_is_non_stop_p): Return bool.
5118 * target.h (target_is_non_stop_p): Return bool.
5119
fdbc5215
SM
51202021-02-04 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * record-full.c (record_full_async_inferior_event_handler):
5123 Don't clear async event handler.
5124 (record_full_base_target::wait): Clear async event handler at
5125 beginning.
5126
85d3ad8e
SM
51272021-02-04 Simon Marchi <simon.marchi@efficios.com>
5128
5129 * record-btrace.c (record_btrace_handle_async_inferior_event):
5130 Don't clear async event handler.
5131 (record_btrace_target::wait): Clear async event handler at
5132 beginning.
5133
baa8575b
SM
51342021-02-04 Simon Marchi <simon.marchi@efficios.com>
5135
5136 * remote.c (remote_target::wait): Clear async event handler at
5137 beginning, mark if needed at the end.
5138 (remote_async_inferior_event_handler): Don't set or clear async
5139 event handler.
5140
6b36ddeb
SM
51412021-02-04 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * async-event.h (async_event_handler_func): Add documentation.
5144 * async-event.c (check_async_event_handlers): Don't clear
5145 async_event_handler ready flag.
5146 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5147 flag.
5148 * record-btrace.c (record_btrace_handle_async_inferior_event):
5149 Likewise.
5150 * record-full.c (record_full_async_inferior_event_handler):
5151 Likewise.
5152 * remote-notif.c (remote_async_get_pending_events_handler):
5153 Likewise.
5154 * remote.c (remote_async_inferior_event_handler): Likewise.
5155
72d383bb
SM
51562021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5157
5158 * infrun.c (handle_inferior_event): Move stop_soon variable to
5159 inner scope.
5160
408f6686
PA
51612021-02-03 Pedro Alves <pedro@palves.net>
5162
5163 * infcmd.c (detach_command): Hold strong reference to target, and
5164 if all-stop on entry, restart threads on exit.
5165 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5166 (restart_stepped_thread): ... this new function. Also handle
5167 trap_expected.
5168 (restart_after_all_stop_detach): New function.
5169 * infrun.h (restart_after_all_stop_detach): Declare.
5170
ac7d717c
PA
51712021-02-03 Pedro Alves <pedro@palves.net>
5172
5173 * infrun.c (struct step_over_info): Initialize fields.
5174 (prepare_for_detach): Handle ongoing in-line step over.
5175
e87f0fe8
PA
51762021-02-03 Pedro Alves <pedro@palves.net>
5177
5178 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5179 here...
5180 * remote.c (remote_target::remote_detach_1): ... and here ...
5181 * target.c (target_detach): ... instead of here.
5182 * target.h (target_ops::detach): Add comment.
5183
8ff53139
PA
51842021-02-03 Pedro Alves <pedro@palves.net>
5185
5186 * infrun.c (struct wait_one_event): Move higher up.
5187 (prepare_for_detach): Abort in-progress displaced steps instead of
5188 letting them complete.
5189 (handle_one): If the inferior is detaching, don't add the thread
5190 back to the global step-over chain.
5191 (restart_threads): Don't restart threads if detaching.
5192 (handle_signal_stop): Remove inferior::detaching reference.
5193
91475068
PA
51942021-02-03 Pedro Alves <pedro@palves.net>
5195
5196 * infrun.c (prepare_for_detach): Don't release scoped_restore
5197 before returning.
5198
d758e62c
PA
51992021-02-03 Pedro Alves <pedro@palves.net>
5200
5201 * infrun.c (handle_one): New function, factored out from ...
5202 (stop_all_threads): ... here.
5203
b0083dd7
PA
52042021-02-03 Pedro Alves <pedro@palves.net>
5205
5206 * remote.c (remote_notif_stop_ack): Don't error out on
5207 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5208 (remote_target::discard_pending_stop_replies): Don't delete
5209 in-flight notification; instead, clear its contents.
5210
621cc310
PA
52112021-02-03 Pedro Alves <pedro@palves.net>
5212
5213 * remote.c (extended_remote_target::attach): Set target async in
5214 the target-non-stop path too.
5215
2ab76a18
PA
52162021-02-03 Pedro Alves <pedro@palves.net>
5217
5218 PR gdb/27055
5219 * infrun.c (handle_signal_stop): Move main context_switch call
5220 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5221
2e3773ff
LS
52222021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5223
5224 * NEWS (Changed commands): Add entry for the behavior change of
5225 the inferior command.
5226 * inferior.c (inferior_command): When no argument is given to the
5227 inferior command, display info about the currently selected
5228 inferior.
5229
e57933dc
SM
52302021-02-02 Simon Marchi <simon.marchi@efficios.com>
5231
5232 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5233 a sect_offset.
5234 (read_attribute_reprocess): Adjust.
5235
2b0c7f41
SM
52362021-02-02 Simon Marchi <simon.marchi@efficios.com>
5237
5238 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5239 <gnu_ranges_base>: ... this...
5240 <rnglists_base>: ... and this.
5241 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5242 <gnu_ranges_base>: ... this...
5243 <rnglists_base>: ... and this.
5244 (read_cutu_die_from_dwo): Adjust
5245 (dwarf2_get_pc_bounds): Adjust
5246 (dwarf2_record_block_ranges): Adjust.
5247 (read_full_die_1): Adjust
5248 (partial_die_info::read): Adjust.
5249 (read_rnglist_index): Adjust.
5250
a1c40103
SM
52512021-02-02 Simon Marchi <simon.marchi@efficios.com>
5252
5253 PR gdb/26813
5254 * dwarf2/read.c (read_loclists_rnglists_header): Add
5255 header_offset parameter and use it.
5256 (read_loclist_index): Read header of the current contribution,
5257 not the one at the beginning of the section.
5258 (read_rnglist_index): Likewise.
5259
b1829e1b
SM
52602021-02-02 Simon Marchi <simon.marchi@efficios.com>
5261
5262 PR gdb/26813
5263 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5264 requires_reprocessing flag.
5265 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5266 DW_FORM_loclistx.
5267 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5268 and DW_FORM_loclistx.
5269 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5270 instead of set_address for DW_FORM_loclistx and
5271 DW_FORM_rnglistx.
5272
0c800c6e
SM
52732021-02-02 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * dwarf2/read.c (read_loclist_index): Remove bound check for
5276 start of offset.
5277 (read_rnglist_index): Likewise.
5278
05787bad
SM
52792021-02-02 Simon Marchi <simon.marchi@efficios.com>
5280
5281 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5282 of the offset.
5283
5e4d9bbc
SM
52842021-02-02 Simon Marchi <simon.marchi@efficios.com>
5285
5286 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5287
a0c1eeba
SM
52882021-02-02 Simon Marchi <simon.marchi@efficios.com>
5289
5290 * dwarf2/read.c (read_loclist_index): Change complaints into
5291 errors.
5292
2bd3e4b8
TV
52932021-02-02 Tom de Vries <tdevries@suse.de>
5294
5295 PR symtab/24620
5296 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5297 psymtab == nullptr.
5298
82a1fd3a
AB
52992021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5300
5301 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5302 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5303 here from linux-tdep.c and given a new name. Minor cleanups.
5304 (gcore_collect_regset_section_cb): Likewise.
5305 (gcore_collect_thread_registers): Likewise.
5306 (gcore_build_thread_register_notes): Likewise.
5307 (gcore_find_signalled_thread): Likewise.
5308 * gcore.h (gcore_build_thread_register_notes): Declare.
5309 (gcore_find_signalled_thread): Declare.
5310 * fbsd-tdep.c: Add 'gcore.h' include.
5311 (struct fbsd_collect_regset_section_cb_data): Delete.
5312 (fbsd_collect_regset_section_cb): Delete.
5313 (fbsd_collect_thread_registers): Delete.
5314 (struct fbsd_corefile_thread_data): Delete.
5315 (fbsd_corefile_thread): Delete.
5316 (fbsd_make_corefile_notes): Call
5317 gcore_build_thread_register_notes instead of the now deleted
5318 FreeBSD code.
5319 * linux-tdep.c: Add 'gcore.h' include.
5320 (struct linux_collect_regset_section_cb_data): Delete.
5321 (linux_collect_regset_section_cb): Delete.
5322 (linux_collect_thread_registers): Delete.
5323 (linux_corefile_thread): Call
5324 gcore_build_thread_register_notes.
5325 (find_signalled_thread): Delete.
5326 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5327
ebde6f2d
TV
53282021-01-29 Tom de Vries <tdevries@suse.de>
5329
5330 PR breakpoints/26063
5331 * infrun.c (process_event_stop_test): Reset
5332 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5333 changed.
5334
0f93c3a2
AB
53352021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5336
5337 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5338 assert. Extend the header comment.
5339
f237f998
AB
53402021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5341
5342 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5343 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5344 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5345 (tui_locator_win_info_ptr): Delete declaration.
5346 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5347 (tui_disasm_window::set_contents): Fetch state from tui_location
5348 global.
5349 (tui_get_begin_asm_address): Likewise.
5350 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5351 for locator window.
5352 (get_locator_window): Delete.
5353 (initialize_known_windows): Treat locator window just like all the
5354 rest.
5355 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5356 (tui_source_window::set_contents): Fetch state from tui_location
5357 global.
5358 (tui_source_window::showing_source_p): Likewise.
5359 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5360 (_locator): Delete.
5361 (tui_locator_win_info_ptr): Delete.
5362 (tui_locator_window::make_status_line): Fetch state from
5363 tui_location global.
5364 (tui_locator_window::rerender): Remove check of 'handle',
5365 reindent function body.
5366 (tui_locator_window::set_locator_fullname): Delete.
5367 (tui_locator_window::set_locator_info): Delete.
5368 (tui_update_locator_fullname): Delete.
5369 (tui_show_frame_info): Likewise.
5370 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5371 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5372 tui/tui-location.h and renamed to
5373 tui_location_tracker::set_location.
5374 (tui_locator_window::set_locator_fullname): Moved to
5375 tui/tui-location.h and renamed to
5376 tui_location_tracker::set_fullname.
5377 (tui_locator_window::full_name): Delete.
5378 (tui_locator_window::proc_name): Delete.
5379 (tui_locator_window::line_no): Delete.
5380 (tui_locator_window::addr): Delete.
5381 (tui_locator_window::gdbarch): Delete.
5382 (tui_update_locator_fullname): Delete declaration.
5383 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5384 for locator window.
5385 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5386 (tui_display_main): Call function on tui_location directly.
5387 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5388 * tui/tui-location.c: New file.
5389 * tui/tui-location.h: New file.
5390
8ee511af
SM
53912021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5392
5393 * gdbtypes.h (get_type_arch): Rename to...
5394 (struct type) <arch>: ... this, update all users.
5395
6ac37371
SM
53962021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5397
5398 * gdbtypes.h (struct type) <arch>: Rename to...
5399 <arch_owner>: ... this, update all users.
5400 <objfile>: Rename to...
5401 <objfile_owner>: ... this, update all users.
5402
24cf6389
AB
54032021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5404
5405 * gdbcmd.h (execute_command_to_string): Update comment.
5406 * top.c (execute_command_to_string): Update header comment.
5407
2a7f6487
TV
54082021-01-28 Tom de Vries <tdevries@suse.de>
5409
5410 PR breakpoints/27205
5411 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5412 (create_longjmp_master_breakpoint_names): New function, factored out
5413 of ...
5414 (create_longjmp_master_breakpoint): ... here. Only try to install
5415 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5416 breakpoint in libc.so failed.
5417
59b59f08
LS
54182021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5419
5420 PR gdb/27133
5421 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5422 unique_ptr is released when the wrapped pointer is kept for later
5423 use.
5424
807f647c
MM
54252021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5426
5427 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5428 BLR and BR instructions.
5429 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5430 (enum aarch64_masks): New.
5431
4ef367bf
TT
54322021-01-26 Tom Tromey <tromey@adacore.com>
5433
5434 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5435 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5436 (windows_init_thread_list, windows_nat::handle_load_dll)
5437 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5438 (windows_nat_target::resume)
5439 (windows_nat_target::get_windows_debug_event)
5440 (windows_nat_target::interrupt, windows_xfer_memory)
5441 (windows_nat_target::close): Update.
5442 * nat/windows-nat.c (DEBUG_EVENTS): Use
5443 debug_prefixed_printf_cond.
5444 (matching_pending_stop, fetch_pending_stop)
5445 (continue_last_debug_event): Update.
5446
4cb1265b
MS
54472020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5448
5449 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5450 elfcore_write_file_note.
5451
d0cc52bd
SV
54522021-01-26 Shahab Vahedi <shahab@synopsys.com>
5453
5454 * arc-tdep.c (arc_add_reggroups): New function.
5455 (arc_gdbarch_init): Call arc_add_reggroups.
5456
ac3571d9 54572021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5458
5459 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5460
9f6c202e
TV
54612021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5462 Simon Marchi <simon.marchi@polymtl.ca>
5463 Tom de Vries <tdevries@suse.de>
5464
5465 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5466 DW_AT_ranges.
5467
a625a8c9
TT
54682021-01-25 Tom Tromey <tromey@adacore.com>
5469
5470 * dwarf2/read.c (get_mpz): New function.
5471 (get_dwarf2_rational_constant): Use it.
5472
19184910
TT
54732021-01-25 Tom Tromey <tromey@adacore.com>
5474
5475 * ada-lang.c (resolve_subexp): Handle array context.
5476
b10bae18
TT
54772021-01-23 Tom Tromey <tom@tromey.com>
5478
5479 PR compile/25575
5480 * compile/compile-loc2c.c (note_register): New function.
5481 (pushf_register_address, pushf_register): Use it.
5482
3637a558
TT
54832021-01-23 Tom Tromey <tom@tromey.com>
5484
5485 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5486 Change type of "registers_used".
5487 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5488 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5489 (locexpr_generate_c_location, loclist_generate_c_location): Change
5490 type of "registers_used".
5491 * compile/compile.h (compile_dwarf_expr_to_c)
5492 (compile_dwarf_bounds_to_c): Update.
5493 * compile/compile-loc2c.c (pushf_register_address)
5494 (pushf_register, do_compile_dwarf_expr_to_c)
5495 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5496 of "registers_used".
5497 * compile/compile-c.h (generate_c_for_variable_locations):
5498 Update.
5499 * compile/compile-c-symbols.c (generate_vla_size)
5500 (generate_c_for_for_one_variable): Change type of
5501 "registers_used".
5502 (generate_c_for_variable_locations): Return std::vector.
5503 * compile/compile-c-support.c (generate_register_struct): Change
5504 type of "registers_used".
5505 (compute): Update.
5506
9f7f6cb8
TT
55072021-01-23 Tom Tromey <tom@tromey.com>
5508
5509 * compile/compile-internal.h (class compile_instance)
5510 <set_arguments>: Change return type.
5511 * compile/compile.c (compile_to_object): Remove call to reset.
5512 (compile_instance::set_arguments): Change return type.
5513
dd5ca05f
SM
55142021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5515
5516 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5517 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5518
d3ee35db
LS
55192021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5520
5521 * Makefile.in (SELFTESTS_SRCS): Add
5522 unittests/gdb_tilde_expand-selftests.c.
5523 * unittests/gdb_tilde_expand-selftests.c: New file.
5524
9d2d8a16
AB
55252021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 PR cli/25956
5528 * NEWS: Mention new command.
5529 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5530 (version_style): Define.
5531 (cli_style_option::cli_style_option): Add intensity parameter, and
5532 use as appropriate.
5533 (_initialize_cli_style): Register version style set/show commands.
5534 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5535 (version_style): Declare.
5536 * top.c (print_gdb_version): Use version_stype, and styled_string
5537 to print the GDB version string.
5538
e7b43072
AB
55392021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5540
5541 * utils.c (emit_style_escape): Only emit an escape sequence if the
5542 requested style is different than the current applied style.
5543 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5544 current applied_style.
5545 (fputs_styled): Remove is_default check.
5546 (fputs_styled_unfiltered): Likewise.
5547 (vfprintf_styled_no_gdbfmt): Likewise.
5548
2189c312
SM
55492021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5550
5551 * remote.h (remote_debug_printf): New.
5552 (remote_debug_printf_nofunc): New.
5553 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5554 * remote.c: Use above macros throughout file.
5555
02349803
SM
55562021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5557
5558 * remote.h (remote_debug): Change to bool.
5559 * remote.c (remote_debug): Change to bool.
5560 (_initialize_remote): Adjust.
5561
cda09ec9
SM
55622021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * target.h (remote_debug): Move to...
5565 * remote.h (remote_debug): ... here.
5566 * top.c (remote_debug): Move to...
5567 * remote.c (remote_debug): ... here.
5568 * remote-sim.c: Include remote.h.
5569
baf2b57f
SM
55702021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5571
5572 * cli/cli-cmds.c (show_remote_debug): Remove.
5573 (show_remote_timeout): Remove.
5574 (_initialize_cli_cmds): Don't register commands.
5575 * remote.c (show_remote_debug): Move here.
5576 (show_remote_timeout): Move here.
5577 (_initialize_remote): Register commands.
5578
344e9841
SM
55792021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5580
5581 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5582 type::objfile method instead.
5583
30625020
SM
55842021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5585
5586 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5587 use the type::is_objfile_owned method.
5588
5b7d941b
SM
55892021-01-22 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5592 (TYPE_OWNER): Remove.
5593 (TYPE_OBJFILE): Adjust.
5594 (struct main_type) <flag_objfile_owned>: Rename to...
5595 <m_flag_objfile_owned>: ... this.
5596 <owner>: Rename to...
5597 <m_owner>: ... this.
5598 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5599 methods.
5600 (TYPE_ALLOC): Adjust.
5601 * gdbtypes.c (alloc_type): Adjust.
5602 (alloc_type_arch): Adjust.
5603 (alloc_type_copy): Adjust.
5604 (get_type_arch): Adjust.
5605 (smash_type): Adjust.
5606 (lookup_array_range_type): Adjust.
5607 (recursive_dump_type): Adjust.
5608 (copy_type_recursive): Adjust.
5609 * compile/compile-c-types.c (convert_func): Adjust.
5610 (convert_type_basic): Adjust.
5611 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5612 Adjust.
5613 * language.c
5614 (language_arch_info::type_and_symbol::alloc_type_symbol):
5615 Adjust.
5616
d5d24e12
LM
56172021-01-21 Luis Machado <luis.machado@linaro.org>
5618
5619 * coffread.c (enter_linenos): Passing string to complaint.
5620 * valops.c (value_assign): Make array view.
5621
a59902a7
SM
56222021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5623
5624 * auto-load.h (debug_auto_load): Move here.
5625 (auto_load_debug_printf): New.
5626 * auto-load.c: Use auto_load_debug_printf.
5627 (debug_auto_load): Move to header.
5628 * linux-thread-db.c (try_thread_db_load): Use
5629 auto_load_debug_printf.
5630 * main.c (captured_main_1): Likewise.
5631
d3abc0ce
SM
56322021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5633
5634 * f-valprint.c (f77_array_offset_tbl): Remove.
5635
1e15fcac
SM
56362021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5637
5638 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5639
439706e6
SM
56402021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5641
5642 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5643 of gdb_select.
5644
325d39e4
HD
56452021-01-21 Hannes Domani <ssbssa@yahoo.de>
5646
5647 PR python/19151
5648 * python/py-breakpoint.c (bppy_get_location): Handle
5649 bp_hardware_breakpoint.
5650 (bppy_init): Likewise.
5651 (gdbpy_breakpoint_created): Likewise.
5652
7cb6d92a
SM
56532021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5654
5655 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5656
d4dd4fca
SM
56572021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5658
5659 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5660 (_initialize_gdb_bfd): Adjust.
5661
de53369b
SM
56622021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5663
5664 PR gdb/26828
5665 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5666
17e593e9
SM
56672021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5668
5669 * dwarf2/read.c (follow_die_offset): Add logging.
5670 (dwarf2_per_objfile::age_comp_units): Add logging.
5671
6bd434d6
SM
56722021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5673
5674 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5675 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5676 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5677 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5678 * arm-tdep.c (struct frame_unwind): Make static.
5679 * auto-load.c (auto_load_safe_path_vec): Make static.
5680 * csky-tdep.c (csky_stub_unwind): Make static.
5681 * gdbarch.c (gdbarch_data_registry): Make static.
5682 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5683 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5684 * i386-tdep.c (i386_frame_setup_skip_insns,
5685 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5686 Make static.
5687 * infrun.c (observer_mode): Make static.
5688 * linux-nat.c (sigchld_action): Make static.
5689 * linux-thread-db.c (thread_db_list): Make static.
5690 * maint-test-options.c (maintenance_test_options_list):
5691 * mep-tdep.c (mep_csr_registers): Make static.
5692 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5693 (stats): Make static.
5694 * nat/linux-osdata.c (struct osdata_type): Make static.
5695 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5696 * progspace.c (last_program_space_num): Make static.
5697 * python/py-param.c (struct parm_constant): Remove struct type
5698 name.
5699 (parm_constants): Make static.
5700 * python/py-record-btrace.c (btpy_list_methods): Make static.
5701 * python/py-record.c (recpy_gap_type): Make static.
5702 * record.c (record_goto_cmdlist): Make static.
5703 * regcache.c (regcache_descr_handle): Make static.
5704 * registry.h (DEFINE_REGISTRY): Make definition static.
5705 * symmisc.c (std_in, std_out, std_err): Make static.
5706 * top.c (previous_saved_command_line): Make static.
5707 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5708 static.
5709 * unittests/command-def-selftests.c (nr_duplicates,
5710 nr_invalid_prefixcmd, lists): Make static.
5711 * unittests/observable-selftests.c (test_notification): Make
5712 static.
5713 * unittests/optional/assignment/1.cc (counter): Make static.
5714 * unittests/optional/assignment/2.cc (counter): Make static.
5715 * unittests/optional/assignment/3.cc (counter): Make static.
5716 * unittests/optional/assignment/4.cc (counter): Make static.
5717 * unittests/optional/assignment/5.cc (counter): Make static.
5718 * unittests/optional/assignment/6.cc (counter): Make static.
5719
a6c11cbb
JS
57202021-01-20 Joel Sherrill <joel@rtems.org>
5721
5722 PR gdb/27219
5723 * remote.c (struct remote_thread_info) <resume_state>: Rename
5724 to...
5725 <get_resume_state>: ... this.
5726 (remote_target::resume): Adjust.
5727 (remote_target::commit_resume): Adjust.
5728 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5729
6f52fdf4
SDJ
57302021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5731 Tom Tromey <tom@tromey.com>
5732
5733 * stap-probe.c (stap_parse_single_operand): Handle '!'
5734 operator.
5735 (stap_parse_argument_conditionally): Likewise.
5736 Skip spaces after processing open-parenthesis sub-expression.
5737 (stap_parse_argument_1): Skip spaces after call to
5738 stap_parse_argument_conditionally.
5739 Handle case when right-side expression is a parenthesized
5740 sub-expression.
5741 Skip spaces after call to stap_parse_argument_1.
5742
1c3b85ad
LS
57432021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5744
5745 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5746
a9a87d35
LM
57472021-01-19 Luis Machado <luis.machado@linaro.org>
5748
5749 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5750 memory and save data.
5751 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5752 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5753 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5754 (trad_frame_value_bytes_p): Remove.
5755 (trad_frame_reset_saved_regs): Adjust documentation.
5756 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5757 constructor and reset the state of the registers.
5758 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5759 (trad_frame_value_bytes_p, trad_frame_set_value)
5760 (trad_frame_set_realreg, trad_frame_set_addr)
5761 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5762 (trad_frame_set_reg_realreg): Update to call member function.
5763 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5764 (trad_frame_get_prev_register): Likewise.
5765
5766 * aarch64-tdep.c (aarch64_analyze_prologue)
5767 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5768 (aarch64_prologue_prev_register): Update to use member functions.
5769 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5770 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5771 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5772 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5773 (arm_make_epilogue_frame_cache): Likewise.
5774 * avr-tdep.c (avr_frame_unwind_cache)
5775 (avr_frame_prev_register): Likewise.
5776 * cris-tdep.c (cris_scan_prologue): Likewise.
5777 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5778 * frv-tdep.c (frv_analyze_prologue): Likewise.
5779 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5780 * lm32-tdep.c (lm32_frame_cache): Likewise.
5781 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5782 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5783 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5784 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5785 (reset_saved_regs): Adjust to set realreg.
5786 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5787 call member functions.
5788 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5789 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5790 (s390_backchain_frame_unwind_cache): Likewise.
5791 * score-tdep.c (score7_analyze_prologue)
5792 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5793 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5794 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5795 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5796 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5797 * tilegx-tdep.c (tilegx_analyze_prologue)
5798 (tilegx_frame_cache): Likewise.
5799 * v850-tdep.c (v850_frame_cache): Likewise.
5800 * vax-tdep.c (vax_frame_cache): Likewise.
5801
bdec2917
LM
58022021-01-19 Luis Machado <luis.machado@linaro.org>
5803
5804 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5805 of buffer + length.
5806 (put_frame_register_bytes): Likewise.
5807 Adjust documentation.
5808 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5809 (safe_frame_unwind_memory): Likewise.
5810 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5811 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5812 gdb::array_view.
5813 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5814 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5815 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5816 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5817 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5818 * dwarf2/loc.c (rw_pieced_value): Likewise.
5819 * hppa-tdep.c (hppa_frame_cache): Likewise.
5820 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5821 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5822 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5823 (i386_linux_rt_sigtramp_start): Likewise.
5824 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5825 * i386-tdep.c (i386_register_to_value): Likewise.
5826 * i387-tdep.c (i387_register_to_value): Likewise.
5827 * ia64-tdep.c (ia64_register_to_value): Likewise.
5828 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5829 (m32r_linux_rt_sigtramp_start): Likewise.
5830 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5831 * m68k-tdep.c (m68k_register_to_value): Likewise.
5832 * mips-tdep.c (mips_register_to_value)
5833 (mips_value_to_register): Likewise.
5834 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5835 (ppcfbsd_sigtramp_frame_cache): Likewise.
5836 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5837 (ppcobsd_sigtramp_frame_cache): Likewise.
5838 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5839 (rs6000_register_to_value): Likewise.
5840 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5841 * tramp-frame.c (tramp_frame_start): Likewise.
5842 * valops.c (value_assign): Likewise.
5843
ccbe4c82
LM
58442021-01-19 Luis Machado <luis.machado@linaro.org>
5845
5846 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5847 array_view.
5848 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5849 instead of buffer and size.
5850 (trad_frame_set_reg_value_bytes): Likewise.
5851 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5852 (trad_frame_set_value_bytes): Likewise.
5853
0e7620dc
MF
58542021-01-18 Mike Frysinger <vapier@gentoo.org>
5855
5856 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5857
6a9ad81c
AB
58582021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5859
5860 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5861 (riscv_fbsd_gregset): Use riscv_supply_regset.
5862 (riscv_fbsd_fpregset): Likewise.
5863 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5864 (riscv_linux_fregset): Likewise.
5865 * riscv-tdep.c (riscv_supply_regset): Define new function.
5866 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5867
d3d7d1ba
TV
58682021-01-18 Tom de Vries <tdevries@suse.de>
5869
5870 PR tdep/27172
5871 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5872 New macro.
5873 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5874 for SEGV_BNDERR.
5875
aa2838cc
SM
58762021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5877
5878 * remote.c (class remote_target) <remote_hostio_send_command,
5879 remote_hostio_parse_result>: Constify parameter.
5880 (remote_hostio_parse_result): Likewise.
5881 (remote_target::remote_hostio_send_command): Adjust.
5882 (remote_target::remote_hostio_pread_vFile): Adjust.
5883 (remote_target::fileio_readlink): Adjust.
5884 (remote_target::fileio_fstat): Adjust.
5885
b5c8f22d
SM
58862021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5887
5888 * remote.c (remote_target::start_remote): Move wait_status to
5889 narrower scope.
5890
e3b2741b
SM
58912021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5892
5893 * remote.c (class remote_target):
5894 <add_current_inferior_and_thread>: Constify parameter.
5895 (stop_reply_extract_thread): Likewise.
5896 (remote_target::get_current_thread): Likewise.
5897 (remote_target::add_current_inferior_and_thread): Likewise.
5898
cecb1912
SM
58992021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5900
5901 * remote.c (class remote_target)
5902 <remote_unpack_thread_info_response,
5903 parse_threadlist_response>: Constify parameter and/or return
5904 value and or local variable.
5905 (stub_unpack_int): Likewise.
5906 (unpack_nibble): Likewise.
5907 (unpack_byte): Likewise.
5908 (unpack_int): Likewise.
5909 (unpack_string): Likewise.
5910 (unpack_threadid): Likewise.
5911 (remote_target::remote_unpack_thread_info_response): Likewise.
5912 (remote_target::parse_threadlist_response): Likewise.
5913
5a11fff0
AB
59142021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5915
5916 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5917
17e89137
LS
59182021-01-14 Lancelot Six <lsix@lancelotsix.com>
5919
5920 * MAINTAINERS (Write After Approval): Add myself.
5921
58eadc4b
BE
59222021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5923
5924 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5925 because is_trivially_default_constructible was first implemented with
5926 gcc-5.
5927
5fae2a2c
TV
59282021-01-14 Tom de Vries <tdevries@suse.de>
5929
5930 PR breakpoints/27151
5931 * objfiles.h (in_plt_section): Handle .plt.sec.
5932
8f66807b
AB
59332021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5934
5935 PR gdb/26819
5936 * remote.c
5937 (remote_target::select_thread_for_ambiguous_stop_reply): New
5938 member function.
5939 (remote_target::process_stop_reply): Call
5940 select_thread_for_ambiguous_stop_reply.
5941
bd497355
SM
59422021-01-13 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * record-btrace.c (class record_btrace_target): Remove.
5945 (record_btrace_target::commit_resume): Remove.
5946 * record-full.c (class record_full_target): Remove.
5947 (record_full_target::commit_resume): Remove.
5948
c9d22089
SM
59492021-01-13 Simon Marchi <simon.marchi@efficios.com>
5950
5951 * remote.c (enum class resume_state): New.
5952 (struct resumed_pending_vcont_info): New.
5953 (struct remote_thread_info) <resume_state, set_not_resumed,
5954 set_resumed_pending_vcont, resumed_pending_vcont_info,
5955 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5956 New.
5957 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5958 (remote_target::remote_add_thread): Adjust.
5959 (remote_target::process_initial_stop_replies): Adjust.
5960 (remote_target::resume): Adjust.
5961 (remote_target::commit_resume): Rely on state in
5962 remote_thread_info and not on tp->executing.
5963 (remote_target::process_stop_reply): Adjust.
5964
d8d1feb4
SM
59652021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5966
5967 * arc-tdep.h (arc_debug_printf): New.
5968 * arc-tdep.c: Use arc_debug_printf.
5969 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5970 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5971 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5972
fb0f5031
SM
59732021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5974
5975 * arc-tdep.h (arc_debug): Change type to bool.
5976 * arc-tdep.c (arc_debug): Change type to bool.
5977 (arc_analyze_prologue): Adjust.
5978 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5979 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5980
5bf7e91b
SM
59812021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * auto-load.c (auto_load_objfile_script_1): Use bool.
5984 (execute_script_contents): Use bool.
5985
db972fce
SM
59862021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5989 comment here.
5990 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5991 comment to header.
5992 * extension-priv.h (struct extension_language_script_ops)
5993 <auto_load_enabled>: Return bool.
5994 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5995 comment here.
5996 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5997 comment to header.
5998 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5999 move comment here.
6000 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6001 move comment to header.
6002 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6003 move comment here.
6004 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6005 move comment to header.
6006
5e12f48f
SM
60072021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6008
6009 * auto-load.h (file_is_auto_load_safe): Change return type to
6010 bool, move comment here.
6011 * auto-load.c (file_is_auto_load_safe): Change return type and
6012 advice_printed to bool. Move comment to header.
6013
54ca9002
SM
60142021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6015
6016 * jit.c (jit_debug_printf): New, use throughout file.
6017
24a7f1b5
SM
60182021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * infrun.c (normal_stop): Fix indentation.
6021
fe7a351a
SM
60222021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6023
6024 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6025 declarations to ...
6026 * symfile.h: ... here.
6027 * symfile.c: Update doc.
6028
16e9019e
SM
60292021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6030
6031 * target.h (baud_rate, serial_parity): Move declarations...
6032 * serial.h: ... here.
6033 * main.c: Include serial.h.
6034 * serial.c (baud_rate, serial_parity): Update doc.
6035
b2f2ae0d
SM
60362021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6037
6038 * top.c (pre_init_ui_hook): Remove.
6039
5291fe3c
SP
60402021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6041
6042 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6043 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6044 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6045 * features/aarch64-fpu.xml: Add bfloat16 type.
6046
ce38f5ed
AB
60472021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6050
7c654b71
AB
60512021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6052
6053 * f-exp.y (dot_ops): Rename to...
6054 (fortran_operators): ...this. Add a header comment. Add symbol
6055 based operators.
6056 (yylex): Update to use fortran_operators not dot_ops. Remove
6057 special handling for '**', this is now included in
6058 fortran_operators.
6059
c6185dce
SM
60602021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6061
6062 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6063 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6064 * aarch64-tdep.c: Use aarch64_debug_printf.
6065
eef401dc
SM
60662021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6067
6068 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6069 file.
6070
062eaacb
SM
60712021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6072
6073 * jit.c (jit_debug): Change type to bool.
6074 (_initialize_jit): Adjust.
6075
54585eee
TT
60762021-01-09 Tom Tromey <tom@tromey.com>
6077
6078 PR compile/23672
6079 * compile/compile.c (compile_to_object): Avoid crash when
6080 osabi_triplet_regexp returns NULL.
6081
bc167b6b
TT
60822021-01-09 Tom Tromey <tom@tromey.com>
6083
6084 * tracepoint.h (class collection_list) <append_exp>: Take a
6085 std::string.
6086 * tracepoint.c (collection_list::append_exp): Take a std::string.
6087 (encode_actions_1): Update.
6088
8fc48b79
TT
60892021-01-08 Tom Tromey <tromey@adacore.com>
6090
6091 * parse.c (parse_expression): Add void_context_p parameter. Use
6092 parse_exp_in_context.
6093 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6094 parse_expression.
6095 (print_command, call_command): Update.
6096 * expression.h (parse_expression): Add void_context_p parameter.
6097
3c8c6de2
AB
60982021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6099
6100 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6101 for internalvar components that have a dynamic location.
6102
1940319c
TV
61032021-01-08 Tom de Vries <tdevries@suse.de>
6104
6105 PR gdb/26881
6106 * breakpoint.c (create_exception_master_breakpoint_probe)
6107 (create_exception_master_breakpoint_hook): Factor out
6108 of ...
6109 (create_exception_master_breakpoint): ... here. Only try to install
6110 the master exception breakpoint in objfile.debug using the
6111 _Unwind_DebugHook method, if the install using probes in objfile
6112 failed.
6113
e3436813
AB
61142021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6115
6116 * f-lang.c (fortran_value_subarray): Call value_from_component.
6117
e904f56d
MF
61182021-01-07 Mike Frysinger <vapier@gentoo.org>
6119
6120 * remote-sim.c: Include memory-map.h.
6121 (gdbsim_target): Define memory_map override.
6122 (gdbsim_target::memory_map): Define.
6123
959d6a67
TT
61242021-01-07 Tom Tromey <tromey@adacore.com>
6125
6126 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6127
d4813f10
TT
61282021-01-07 Tom Tromey <tromey@adacore.com>
6129
6130 * ada-lang.c (add_component_interval): Start loop using vector's
6131 updated size.
6132
b49180ac
TT
61332021-01-06 Tom Tromey <tromey@adacore.com>
6134
6135 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6136 Do not cast result.
6137 * valarith.c (fixed_point_binop): Handle multiplication
6138 and division specially.
6139 * valops.c (value_to_gdb_mpq): New function.
6140 (value_cast_to_fixed_point): Use it.
6141
55195361
HD
61422021-01-05 Hannes Domani <ssbssa@yahoo.de>
6143
6144 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6145 Call wnoutrefresh instead of tui_win_info::refresh_window.
6146
1b6d4bb2
HD
61472021-01-05 Hannes Domani <ssbssa@yahoo.de>
6148
6149 * tui/tui-source.c (tui_source_window::show_line_number):
6150 Redraw second space after line number.
6151
b5ff370e
HD
61522021-01-05 Hannes Domani <ssbssa@yahoo.de>
6153
6154 PR tui/26927
6155 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6156 Fix source pad size in prefresh.
6157 (tui_source_window_base::show_source_content): Grow source pad
6158 if necessary.
6159
c68ea49f
MF
61602021-01-04 Mike Frysinger <vapier@gentoo.org>
6161
6162 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6163 (bfin_frame_align): Use align_down.
6164
e4ad960a
TV
61652021-01-04 Tom de Vries <tdevries@suse.de>
6166
6167 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6168 terminators that do not terminate anything.
6169
3ec3145c
SM
61702021-01-04 Simon Marchi <simon.marchi@efficios.com>
6171
6172 * debug.c (debug_print_depth): New.
6173 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6174 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6175 * infrun.c (start_step_over): Use
6176 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6177 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6178 INFRUN_SCOPED_DEBUG_START_END.
6179 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6180
e71daf80
SM
61812021-01-04 Simon Marchi <simon.marchi@efficios.com>
6182
6183 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6184
335709bc
SM
61852021-01-04 Simon Marchi <simon.marchi@efficios.com>
6186
6187 * utils.c (vfprintf_unfiltered): Print timestamp only when
6188 previous debug output ended with a newline.
6189
098caef4
LM
61902021-01-04 Luis Machado <luis.machado@linaro.org>
6191
6192 Update all users of trad_frame_saved_reg to use the new member
6193 functions.
6194
6195 Remote all struct keywords from declarations of trad_frame_saved_reg
6196 types, except on forward declarations.
6197
6198 * aarch64-tdep.c: Update.
6199 * alpha-mdebug-tdep.c: Update.
6200 * alpha-tdep.c: Update.
6201 * arc-tdep.c: Update.
6202 * arm-tdep.c: Update.
6203 * avr-tdep.c: Update.
6204 * cris-tdep.c: Update.
6205 * csky-tdep.c: Update.
6206 * frv-tdep.c: Update.
6207 * hppa-linux-tdep.c: Update.
6208 * hppa-tdep.c: Update.
6209 * hppa-tdep.h: Update.
6210 * lm32-tdep.c: Update.
6211 * m32r-linux-tdep.c: Update.
6212 * m32r-tdep.c: Update.
6213 * m68hc11-tdep.c: Update.
6214 * mips-tdep.c: Update.
6215 * moxie-tdep.c: Update.
6216 * riscv-tdep.c: Update.
6217 * rs6000-tdep.c: Update.
6218 * s390-linux-tdep.c: Update.
6219 * s390-tdep.c: Update.
6220 * score-tdep.c: Update.
6221 * sparc-netbsd-tdep.c: Update.
6222 * sparc-sol2-tdep.c: Update.
6223 * sparc64-fbsd-tdep.c: Update.
6224 * sparc64-netbsd-tdep.c: Update.
6225 * sparc64-obsd-tdep.c: Update.
6226 * sparc64-sol2-tdep.c: Update.
6227 * tilegx-tdep.c: Update.
6228 * v850-tdep.c: Update.
6229 * vax-tdep.c: Update.
6230
6231 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6232 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6233
6234 * trad-frame.c: Update.
6235 Remove TF_REG_* enum.
6236 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6237 a trivially-constructible struct.
6238 (trad_frame_reset_saved_regs): Adjust to use member function.
6239 (trad_frame_value_p): Likewise.
6240 (trad_frame_addr_p): Likewise.
6241 (trad_frame_realreg_p): Likewise.
6242 (trad_frame_value_bytes_p): Likewise.
6243 (trad_frame_set_value): Likewise.
6244 (trad_frame_set_realreg): Likewise.
6245 (trad_frame_set_addr): Likewise.
6246 (trad_frame_set_unknown): Likewise.
6247 (trad_frame_set_value_bytes): Likewise.
6248 (trad_frame_get_prev_register): Likewise.
6249 * trad-frame.h: Update.
6250 (trad_frame_saved_reg_kind): New enum.
6251 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6252 <m_kind, m_reg>: New member fields.
6253 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6254 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6255 <is_addr, is_unknown, is_value_bytes>: New member functions.
6256
9898e882
SM
62572021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6258
6259 * target-float.c: Fix typos.
6260
b66b4e65
HD
62612021-01-02 Hannes Domani <ssbssa@yahoo.de>
6262
6263 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6264
b5b5650a
JB
62652021-01-01 Joel Brobecker <brobecker@adacore.com>
6266
6267 * gdbarch.sh: Update copyright year range.
6268
3666a048
JB
62692021-01-01 Joel Brobecker <brobecker@adacore.com>
6270
6271 Update copyright year range in copyright header of all GDB files.
6272
ff7e39b6
JB
62732021-01-01 Joel Brobecker <brobecker@adacore.com>
6274
6275 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6276 to the list of directories to update.
6277
2b47c078
JB
62782021-01-01 Joel Brobecker <brobecker@adacore.com>
6279
6280 * top.c (print_gdb_version): Update copyright year.
6281
9e5e03df 62822021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6283
476923f1 6284 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6285
476923f1 6286For older changes see ChangeLog-2020.
c906108c
SS
6287\f
6288Local Variables:
6289mode: change-log
6290left-margin: 8
6291fill-column: 74
6292version-control: never
57da7796 6293coding: utf-8
c906108c 6294End:
This page took 3.569926 seconds and 4 git commands to generate.