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