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