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