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