12021-09-13  Joel Brobecker  <brobecker@adacore.com>
2
3	* version.in: Set GDB version number to 11.1.
4
52021-09-08  Tom Tromey  <tom@tromey.com>
6
7	* dwarf2/read.h (dwarf2_per_objfile::resize_symtabs): Remove.
8	* dwarf2/read.c (all_comp_units_iterator, all_comp_units_range):
9	New classes.
10	(dwarf2_per_objfile::symtab_set_p)
11	(dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
12	Adjust to resizeable vectors.
13	(dwarf2_gdb_index::expand_symtabs_matching)
14	(dwarf2_base_index_functions::map_symbol_filenames)
15	(dwarf2_debug_names_index::expand_symtabs_matching): Use
16	all_comp_units_range.
17	(dwarf2_initialize_objfile, dwarf2_build_psymtabs)
18	(add_type_unit): Don't call resize_symtabs.
19
202021-09-07  John Baldwin  <jhb@FreeBSD.org>
21
22	* fbsd-nat.c (fbsd_nat_target::info_proc): Use plongest and
23	pulongest instead of %j.
24
252021-08-30  Tom de Vries  <tdevries@suse.de>
26
27	PR cli/28290
28	* gdb/corelow.c (core_target_open): Skip call to gdb_abspath in the
29	empty-string case.
30
312021-08-23  Tom de Vries  <tdevries@suse.de>
32
33	PR gdb/26880
34	* gdb/exec.c (exec_file_attach): Use %s instead of %ps in call to
35	error function.
36
372021-08-06  Simon Marchi  <simon.marchi@polymtl.ca>
38	    Tom de Vries  <tdevries@suse.de>
39
40	PR symtab/28004
41	* dwarf2/read.c (dwarf2_rnglists_process, dwarf2_ranges_process):
42	Fix zero address complaint.
43
442021-08-02  Tom Tromey  <tromey@adacore.com>
45
46	PR varobj/28131
47	* varobj.c (~varobj): Delete 'dynamic' before 'root'.
48
492021-08-02  Shahab Vahedi  <shahab@synopsys.com>
50
51	PR gdb/28104
52	* gdbtypes.c (gdbtypes_post_init): Use
53	"arch_boolean_type (..., unsigned=1, ...) to construct
54	"boolean".
55	cp-valprint.c (test_print_flags): New.
56	(_initialize_cp_valprint): Run the "test_print_flags" unit-test.
57
582021-07-28  Tom de Vries  <tdevries@suse.de>
59
60	* dwarf2/read.c (attr_to_dynamic_prop): Handle DW_FORM_data16.
61
622021-07-27  Tom de Vries  <tdevries@suse.de>
63
64	PR testsuite/26904
65	* gdb/testsuite/gdb.ada/big_packed_array.exp: Add xfail.
66
672021-07-27  Tom de Vries  <tdevries@suse.de>
68
69	PR testsuite/26903
70	* gdb/testsuite/gdb.ada/array_of_variant.exp: Add xfails.
71
722021-07-26  Frederic Cambus  <fred@statdns.com>
73
74	* syscalls/netbsd.xml: Regenerate.
75
762021-07-26  Shahab Vahedi  <shahab@synopsys.com>
77	    Simon Marchi  <simon.marchi@efficios.com>
78
79	PR gdb/28103
80	* valprint.c (val_print_type_code_flags): Merely shift the VAL
81	to the right to get rid of the lower bits.
82	(test_print_flags): New.
83	(_initialize_valprint): Invoke the "test_print_flags" as a unit-test.
84
852021-07-26  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
86
87	PR gdb/28076
88	* mi/mi-cmd-break.c (mi_cmd_break_condition): Handle the case
89	of having no condition argument.
90
912021-07-20  Luis Machado  <luis.machado@linaro.org>
92	    Pedro Alves  <pedro@palves.net>
93
94	PR gdb/28110
95	* gdbarch.sh: Updated documentation for gdbarch_tagged_address_p.
96	* gdbarch.h: Regenerate.
97	* printcmd.c (should_validate_memtags): Reorder comparisons and only
98	validate tags for pointer and reference types.  Skip validation of
99	optimized out or unavailable values.
100	(print_command_1): Guard call memory tagging validation code with
101	a try/catch block.
102
1032021-07-19  Tom Tromey  <tromey@adacore.com>
104
105	PR gdb/28093
106	* language.c (auto_or_unknown_language::parser): Call error.
107
1082021-07-17  Sergey Belyashov  <Sergey.Belyashov@gmail.com>
109
110	* Makefile.in (ALL_TARGET_OBS): Add z80-tdep.c.
111	* NEWS: Mention z80 support.
112	* configure.tgt: Handle z80*.
113	* features/Makefile (XMLTOC): Add z80.xml.
114	* features/z80-cpu.xml: New.
115	* features/z80.c: Generate.
116	* features/z80.xml: New.
117	* z80-tdep.c: New file.
118	* z80-tdep.h: New file.
119
1202021-07-13  Lancelot Six  <lsix@lancelotsix.com>
121
122	* make-init-c: Use /bin/sh as shebang.
123
1242021-07-13  Pedro Alves  <pedro@palves.net>
125
126	PR gdb/28080
127	* gdb_bfd.c (gdb_bfd_close_warning): New.
128	(gdb_bfd_iovec_fileio_close): Wrap target_fileio_close in
129	try/catch and print warning on exception.
130	(gdb_bfd_close_or_warn): Use gdb_bfd_close_warning.
131
1322021-07-13  Pedro Alves  <pedro@palves.net>
133
134	PR gdb/28080
135	* remote.c (remote_unpush_target): Invalidate file I/O target
136	handles.
137	* target.c (fileio_handles_invalidate_target): Make extern.
138	* target.h (fileio_handles_invalidate_target): Declare.
139
1402021-07-13  Simon Marchi  <simon.marchi@polymtl.ca>
141
142	* mi/mi-main.c (mi_cmd_exec_interrupt): Use
143	scoped_disable_commit_resumed in the --thread-group case.
144
1452021-07-13  John Ericson  <git@JohnEricson.me>
146
147	* sparc-tdep.h: Fix comment.
148	* netbsd-tdep.c (nbsd_info_proc_mappings_header): Fix comment.
149	(nbsd_init_abi): Fix comment.
150	* configure.tgt (*-*-netbsd* | *-*-knetbsd*-gnu): Fix netbsd
151	file name.
152	(alpha*-*-openbsd*): Likewise.
153	(sparc-*-openbsd*): Likewise.
154	(sparc64-*-openbsd*): Likewise.
155
1562021-07-11  Tom Tromey  <tom@tromey.com>
157
158	Committed by Joel Brobecker  <brobecker@adacore.com>:
159	* gdb/symtab.c (info_sources_filter::matches): Add default
160	case hander in switch statement.
161
1622021-07-08  Simon Marchi  <simon.marchi@polymtl.ca>
163
164	* s390-linux-tdep.c (s390_linux_init_abi_any): Pass 1 (number
165	of displaced stepping buffers to linux_init_abi.
166	* s390-tdep.c (s390_gdbarch_init): Don't set the Linux-specific
167	displaced-stepping gdbarch callbacks.
168
1692021-07-08  Simon Marchi  <simon.marchi@polymtl.ca>
170
171	* Makefile.in (SUBDIRS): Remove testsuite.
172
1732021-07-06  Simon Marchi  <simon.marchi@polymtl.ca>
174
175	* configure.ac: Remove things that were moved from
176	testsuite/configure.ac.
177	* configure: Re-generate.
178
1792021-07-05  Simon Marchi  <simon.marchi@polymtl.ca>
180
181	* config.in, configure: Re-generate.
182
1832021-07-04  Simon Marchi  <simon.marchi@polymtl.ca>
184
185	* solib-darwin.c (darwin_solib_create_inferior_hook): Return
186	early if no execution.
187
1882021-07-03  Joel Brobecker  <brobecker@adacore.com>
189
190	* version.in: Set GDB version number to 11.0.90.DATE-git.
191
1922021-07-03  Joel Brobecker  <brobecker@adacore.com>
193
194	GDB 11.0.90 released.
195
1962021-07-03  Joel Brobecker  <brobecker@adacore.com>
197
198	* version.in: Set GDB version number to 11.0.90.
199
2002021-07-03  Joel Brobecker  <brobecker@adacore.com>
201
202	* NEWS: Replace "Changes since GDB 10" by "Changes in GDB 11".
203
2042021-07-03  Joel Brobecker  <brobecker@adacore.com>
205
206	GDB 11 branch created (4b51505e33441c6165e7789fa2b6d21930242927):
207	* version.in: Bump version to 11.0.90.DATE-git.
208
2092021-07-02  Tom Tromey  <tromey@adacore.com>
210
211	* ada-exp.y (chop_selector, chop_separator, write_selectors)
212	(write_ambiguous_var, get_symbol_field_type): Use const.
213
2142021-07-02  Pedro Alves  <pedro@palves.net>
215	    Hannes Domani  <ssbssa@yahoo.de>
216
217	* NEWS: Add new "TUI Improvements" section and mention mouse
218	support and that unrecognized special keys are now passed to
219	GDB.  Mention Python Window.click in the Python improvements
220	section.
221
2222021-07-01  Pedro Alves  <pedro@palves.net>
223
224	PR mi/15729
225	PR gdb/13463
226	* linux-nat.c (linux_nat_target::detach): Close the
227	/proc/<pid>/mem file if it was open for this process.
228	(linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: Close the
229	/proc/<pid>/mem file if it was open for this process.
230	(linux_nat_target::mourn_inferior): Close the /proc/<pid>/mem file
231	if it was open for this process.
232	(linux_nat_target::xfer_partial): Adjust.  Do not fall back to
233	inf_ptrace_target::xfer_partial for memory accesses.
234	(last_proc_mem_file): New.
235	(maybe_close_proc_mem_file): New.
236	(linux_proc_xfer_memory_partial_pid): New, with bits factored out
237	from linux_proc_xfer_partial.
238	(linux_proc_xfer_partial): Delete.
239	(linux_proc_xfer_memory_partial): New.
240
2412021-06-29  Simon Marchi  <simon.marchi@polymtl.ca>
242
243	* frame.h (FRAME_SCOPED_DEBUG_ENTER_EXIT): New.
244	* frame.c (compute_frame_id, get_prev_frame_always_1,
245	get_prev_frame): Use FRAME_SCOPED_DEBUG_ENTER_EXIT.
246	* frame-unwind.c (frame_unwind_find_by_frame): Likewise.
247	(frame_unwind_register_value): Likewise.
248
2492021-06-29  Simon Marchi  <simon.marchi@polymtl.ca>
250
251	* frame-unwind.h (struct frame_unwind) <name>: New.  Update
252	instances everywhere to include this field.
253	* frame-unwind.c (frame_unwind_try_unwinder,
254	frame_unwind_find_by_frame): Add debug messages.
255
2562021-06-29  Simon Marchi  <simon.marchi@polymtl.ca>
257
258	* frame.h (frame_debug_printf): New.
259	* frame.c: Use frame_debug_printf throughout when printing frame
260	debug messages.
261	* amd64-windows-tdep.c: Likewise.
262	* value.c: Likewise.
263
2642021-06-29  Simon Marchi  <simon.marchi@polymtl.ca>
265
266	* frame.h (frame_debug): Change type to bool.
267	* frame.c (frame_debug): Change type to bool.
268	(_initialize_frame): Adjust.
269
2702021-06-29  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
271
272	* gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
273
2742021-06-28  Simon Marchi  <simon.marchi@polymtl.ca>
275
276	PR gdb/28017
277	* machoread.c (macho_symfile_offsets): Use
278	gdb_bfd_count_sections to allocate objfile::section_offsets.
279
2802021-06-28  Simon Marchi  <simon.marchi@polymtl.ca>
281
282	* objfiles.h (struct obj_section): Move down.
283	<offset, set_offset, addr, endaddr>: New.
284	(obj_section_offset, obj_section_addr, obj_section_endaddr),
285	replace all users to use obj_section methods.
286	(struct objfile) <section_offset, set_section_offset>: New.
287
2882021-06-28  Simon Marchi  <simon.marchi@polymtl.ca>
289
290	* objfiles.h (struct obj_section): Move down.
291	<offset, set_offset, addr, endaddr>: New.
292	(obj_section_offset, obj_section_addr, obj_section_endaddr),
293	replace all users to use obj_section methods.
294	(struct objfile) <section_offset, set_section_offset>: New.
295
2962021-06-28  Simon Marchi  <simon.marchi@polymtl.ca>
297
298	* .flake8: New.
299
3002021-06-28  Luis Machado  <luis.machado@linaro.org>
301
302	* aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
303	byte.
304	(aarch64_linux_set_memtags): Likewise.
305	(aarch64_linux_get_memtag): Likewise.
306	(aarch64_linux_report_signal_info): Likewise.
307
3082021-06-28  Luis Machado  <luis.machado@linaro.org>
309
310	* aarch64-linux-tdep.c
311	(aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
312
3132021-06-28  Luis Machado  <luis.machado@linaro.org>
314
315	* aarch64-linux-tdep.c
316	(aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
317	size.
318	* aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
319	8 and update comments.
320
3212021-06-28  Simon Marchi  <simon.marchi@polymtl.ca>
322
323	* gdbarch.sh (struct gdbarch_info): Initialize fields, add
324	constructor.
325	* gdbarch.h: Re-generate.
326	* arch-utils.h (gdbarch_info_init): Remove, delete all usages.
327	* arch-utils.c (gdbarch_info_init): Remove.
328
3292021-06-28  Simon Marchi  <simon.marchi@polymtl.ca>
330
331	* gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
332	(gdbarch_find_by_info): Remove print.
333	* gdbarch.c, gdbarch.h: Re-generate.
334
3352021-06-28  Andrew Burgess  <andrew.burgess@embecosm.com>
336
337	* remote.c (remote_target::start_remote): Set 'starting_up' using
338	boolean values instead of integers.
339
3402021-06-25  Simon Marchi  <simon.marchi@polymtl.ca>
341
342	* guile/scm-param.c (struct param_smob) <set_command,
343	show_command>: Remove.
344	<commands>: New.
345	(pascm_is_valid): Adjust.
346	(add_setshow_generic): Use return values of add_setshow
347	functions, return a set_show_commands.
348	(gdbscm_register_parameter_x): Adjust.
349
3502021-06-25  Simon Marchi  <simon.marchi@polymtl.ca>
351
352	* command.h (add_setshow_enum_cmd): Remove context parameter.
353	* cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
354	set context.
355	* cli/cli-style.c (cli_style_option::add_setshow_commands): Set
356	context here.
357
3582021-06-25  Simon Marchi  <simon.marchi@polymtl.ca>
359
360	* cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
361	assert.
362
3632021-06-25  Simon Marchi  <simon.marchi@polymtl.ca>
364
365	* cli/cli-decode.h (struct cmd_list_element) <set_context,
366	context>: New.
367	<context>: Rename to...
368	<m_context>: ... this.
369	* cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
370	* command.h (set_cmd_context, get_cmd_context): Remove, use
371	cmd_list_element::set_context and cmd_list_element::context
372	everywhere instead.
373
3742021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
375
376	* NEWS: Mention changes to 'info sources'.
377	* symtab.c (info_sources_filter::print): Delete.
378	(struct output_source_filename_data) <print_header>: Delete
379	declaration.  <printed_filename_p>: New member function.
380	(output_source_filename_data::print_header): Delete.
381	(info_sources_worker): Update group-by-objfile style output to
382	make it CLI suitable, simplify non-group-by-objfile now this is
383	only used from the MI.
384	(info_sources_command): Make group-by-objfile be the default for
385	CLI info sources command.
386	* symtab.h (struct info_sources_filter) <print>: Delete.
387
3882021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
389
390	* NEWS: Mention additions to -file-list-exec-source-files.
391	* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
392	--group-by-objfile option.
393	* symtab.c (isrc_flag_option_def): Rename to...
394	(isrc_match_flag_option_def): ...this.
395	(info_sources_option_defs): Rename to...
396	(info_sources_match_option_defs): ...this, and update to rename of
397	isrc_flag_option_def.
398	(struct filename_grouping_opts): New struct.
399	(isrc_grouping_flag_option_def): New type.
400	(info_sources_grouping_option_defs): New static global.
401	(make_info_sources_options_def_group): Update to return two option
402	groups.
403	(info_sources_command_completer): Update for changes to
404	make_info_sources_options_def_group.
405	(info_sources_worker): Add extra parameter, use this to display
406	alternative output format.
407	(info_sources_command): Pass extra parameter to
408	info_sources_worker.
409	(_initialize_symtab): Update for changes to
410	make_info_sources_options_def_group.
411	* symtab.h (info_sources_worker): Add extra parameter.
412
4132021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
414
415	* NEWS: Mention additions to -file-list-exec-source-files.
416	* mi/mi-cmd-file.c (print_partial_file_name): Delete.
417	(mi_cmd_file_list_exec_source_files): Rewrite to handle command
418	options, and make use of info_sources_worker.
419	* symtab.c (struct info_sources_filter): Moved to symtab.h.
420	(info_sources_filter::print): Take uiout argument, produce output
421	through uiout.
422	(struct output_source_filename_data)
423	<output_source_filename_data>: Take uiout argument, store into
424	m_uiout.  <output>: Rewrite comment, add additional arguments to
425	declaration.  <operator()>: Send more arguments to
426	output. <m_uiout>: New member variable.
427	(output_source_filename_data::output): Take extra arguments,
428	produce output through m_uiout, and structure for MI.
429	(output_source_filename_data::print_header): Produce output
430	through m_uiout.
431	(info_sources_worker): New function, the implementation is taken
432	from info_sources_command, but modified so produce output through
433	a ui_out.
434	(info_sources_command): The second half of this function has gone
435	to become info_sources_worker.
436	* symtab.h (struct info_sources_filter): Moved from symtab.c, add
437	extra parameter to print member function.
438	(info_sources_worker): Declare.
439
4402021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
441
442	* symtab.c (struct info_sources_filter): New.
443	(info_sources_filter::info_sources_filter): New function.
444	(info_sources_filter::matches): New function.
445	(info_sources_filter::print): New function.
446	(struct filename_partial_match_opts): Moved to later in the file
447	and update the comment.
448	(struct output_source_filename_data)
449	<output_source_filename_data>: New constructor.  <regexp>: Delete,
450	this is now in info_sources_filter.  <c_regexp>: Delete, this is
451	now in info_sources_filter.  <reset_output>: New member function.
452	<filename_seen_cache>: Rename to m_filename_seen_cache, change
453	from being a pointer, to being an actual object.  <first>: Rename
454	to m_first.  <print_header>: New member function. <partial_match>:
455	Delete.
456	(output_source_filename_data::output): Update now
457	m_filename_seen_cache is no longer a pointer, and for other member
458	variable name changes. Add a header comment.
459	(print_info_sources_header): Renamed to...
460	(output_source_filename_data::print_header): ...this.  Update now
461	it's a member function and to take account of member variable
462	renaming.
463	(info_sources_command): Add a header comment, delete stack local
464	filename_seen_cache, initialization of output_source_filename_data
465	is now done by the constructor.  Call print_header member function
466	instead of print_info_sources_header, call reset_output member
467	function instead of manually performing the reset.
468
4692021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
470
471	* dwarf2/read.c (struct dwarf2_base_index_functions)
472	<has_unexpanded_symtabs>: Declare.
473	(dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
474	function.
475	* objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
476	* psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
477	Declare.
478	* psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
479	new function.
480	* quick-symbol.h (struct quick_symbol_functions)
481	<has_unexpanded_symtabs>: Declare.
482	* symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
483	function.
484
4852021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
486
487	* infcall.c (call_function_by_hand_dummy): Add missing 'else' when
488	setting prototyped flag.
489
4902021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
491
492	* ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
493	an empty gdb::optional when calling value_struct_elt.
494	(desc_data): Likewise.
495	(desc_one_bound): Likewise.
496	* eval.c (structop_base_operation::evaluate_funcall): Pass
497	gdb::array_view, not a gdb::array_view* to value_struct_elt.
498	(eval_op_structop_struct): Use '{}' instead of NULL to indicate
499	an empty gdb::optional when calling value_struct_elt.
500	(eval_op_structop_ptr): Likewise.
501	* f-lang.c (fortran_structop_operation::evaluate): Likewise.
502	* guile/scm-value.c (gdbscm_value_field): Likewise.
503	* m2-lang.c (eval_op_m2_high): Likewise.
504	(eval_op_m2_subscript): Likewise.
505	* opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
506	* python/py-value.c (valpy_getitem): Likewise.
507	* rust-lang.c (rust_val_print_str): Likewise.
508	(rust_range): Likewise.
509	(rust_subscript): Likewise.
510	(eval_op_rust_structop): Likewise.
511	(rust_aggregate_operation::evaluate): Likewise.
512	* valarith.c (value_user_defined_op): Likewise.
513	* valops.c (search_struct_method): Change parameter type, update
514	function body accordingly, and update header comment.
515	(value_struct_elt): Change parameter type, update function body
516	accordingly.
517	* value.h (value_struct_elt): Update declaration.
518
5192021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
520
521	PR gdb/27994
522	* eval.c (structop_base_operation::evaluate_funcall): Pass
523	array_view instead of array to value_struct_elt.
524	* valarith.c (value_user_defined_op): Likewise.
525	* valops.c (typecmp): Change parameter type from array pointer to
526	array_view.  Update header comment, and update body accordingly.
527	(search_struct_method): Likewise.
528	(value_struct_elt): Likewise.
529	* value.h (value_struct_elt): Update declaration.
530
5312021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
532
533	PR gdb/27994
534	* eval.c (structop_base_operation::evaluate_funcall): Add a
535	nullptr to the end of the args array, which should not be included
536	in the argument array_view.  Pass all the arguments through to
537	value_struct_elt.
538	* valops.c (search_struct_method): Update header comment.
539	(value_struct_elt): Likewise.
540
5412021-06-25  Tom Tromey  <tom@tromey.com>
542
543	* dwarf2/read.c (create_addrmap_from_aranges): Change padding
544	logic.
545
5462021-06-25  Tom Tromey  <tom@tromey.com>
547
548	* dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
549	(scan_partial_symbols, partial_die_parent_scope)
550	(add_partial_symbol, add_partial_subprogram)
551	(compute_delayed_physnames, rust_union_quirks)
552	(process_full_comp_unit, process_full_type_unit)
553	(process_imported_unit_die, process_die, dw2_linkage_name)
554	(dwarf2_compute_name, dwarf2_physname, read_import_statement)
555	(read_file_scope, queue_and_load_dwo_tu, read_func_scope)
556	(read_variable, dwarf2_get_subprogram_pc_bounds)
557	(dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
558	(dwarf2_attach_fn_fields_to_type)
559	(quirk_ada_thick_pointer_struct, read_structure_type)
560	(handle_struct_member_die, process_structure_scope)
561	(read_array_type, read_array_order, prototyped_function_p)
562	(read_subroutine_type, dwarf2_init_complex_target_type)
563	(read_base_type, read_subrange_type, read_unspecified_type)
564	(load_partial_dies, partial_die_info::fixup, set_cu_language)
565	(new_symbol, need_gnat_info, determine_prefix, typename_concat)
566	(dwarf2_canonicalize_name, follow_die_offset)
567	(prepare_one_comp_unit): Update.
568	* dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
569
5702021-06-25  Tom Tromey  <tom@tromey.com>
571
572	* dwarf2/read.c (read_file_scope): Don't call set_cu_language.
573	(dwarf_lang_to_enum_language): Rename from set_cu_language.  Don't
574	set language_defn.  Handle DW_LANG_OpenCL.
575	(prepare_one_comp_unit): Check producer and set language_defn.
576
5772021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
578
579	* NEWS: Mention Python BP_CATCHPOINT feature.
580	* python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
581	(bppy_init): Likewise.
582	(gdbpy_breakpoint_created): Likewise.
583
5842021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
585
586	* guile/scm-breakpoint.c (bpscm_type_to_string): Handle
587	bp_catchpoint.
588	(bpscm_want_scm_wrapper_p): Likewise.
589	(gdbscm_make_breakpoint): Likewise.
590	(breakpoint_integer_constants): Likewise.
591
5922021-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
593
594	* guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
595	for invalid breakpoint numbers, and unsupported breakpoint
596	numbers.
597
5982021-06-25  Tom Tromey  <tom@tromey.com>
599
600	* dwarf2/index-write.c (struct addrmap_index_data): Add
601	initializers.
602	<operator()>: Declare.
603	(addrmap_index_data::operator()): Rename from
604	add_address_entry_worker.  Remove 'datap' parameter.
605	(write_address_map): Update.
606	* psymtab.c (struct dump_psymtab_addrmap_data): Remove
607	(dump_psymtab_addrmap_1): Remove 'data' parameter, add other
608	parameters.
609	(dump_psymtab_addrmap): Update.
610	* addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
611	parameter.
612	(addrmap_foreach, addrmap_fixed_foreach): Likewise.
613	(struct mutable_foreach_data): Remove.
614	(addrmap_mutable_foreach_worker): Update.
615	(addrmap_mutable_foreach): Remove 'data' parameter.
616	* addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
617	(addrmap_foreach): Remove 'data' parameter.
618
6192021-06-25  Tom Tromey  <tromey@adacore.com>
620
621	* python/py-type.c (typy_get_name): Decode an Ada type name.
622
6232021-06-25  Tom Tromey  <tromey@adacore.com>
624
625	* ada-lang.c (ada_decode): Add wrap parameter.
626	* ada-lang.h (ada_decode): Add wrap parameter.
627
6282021-06-25  Luis Machado  <luis.machado@linaro.org>
629
630	* corelow.c (core_target::core_target) Update to read target
631	description.
632
6332021-06-22  Simon Marchi  <simon.marchi@polymtl.ca>
634
635	* python/lib/gdb/__init__.py: Format.
636
6372021-06-22  Simon Marchi  <simon.marchi@polymtl.ca>
638
639	* infrun.c (do_target_wait): Remove wait_ptid parameter.
640	(fetch_inferior_event): Adjust.
641
6422021-06-22  Simon Marchi  <simon.marchi@polymtl.ca>
643
644	* python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
645	with name of chosen unwinder.
646	* python/py-unwind.c (pyuw_sniffer): Print name of chosen
647	unwinder in debug message.
648
6492021-06-22  Andreas Schwab  <schwab@suse.de>
650
651	PR symtab/27999
652	* dwarf2/loc.c (decode_debug_loclists_addresses): Support
653	DW_LLE_start_end.
654
6552021-06-22  Andrew Burgess  <andrew.burgess@embecosm.com>
656
657	* breakpoint.c (insert_bp_location): If we catch a
658	TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
659	been deleted.
660
6612021-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
662
663	* NEWS: Mention new target feature name.
664	* arch/riscv.c (riscv_create_target_description): GDB doesn't
665	currently create target descriptions containing vector registers.
666	* arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
667	variable.
668	<operator==>: Also compare vlen.
669	<hash>: Also include vlen.
670	* riscv-tdep.c (riscv_feature_name_vector): New static global.
671	(struct riscv_vector_feature): New struct.
672	(riscv_vector_feature): New static global.
673	(riscv_register_reggroup_p): Ensure vector registers are part of
674	the 'all' group, and part of the 'vector' group.
675	(riscv_dwarf_reg_to_regnum): Handle vector registers.
676	(riscv_gdbarch_init): Check vector register feature.
677	* riscv-tdep.h: Add vector registers to GDB's internal register
678	numbers, and to the DWARF register numbers.
679
6802021-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
681
682	* NEWS: Mention the two new methods.
683	* python/py-frame.c (frapy_level): New function.
684	(frame_object_methods): Register 'level' method.
685	* python/py-unwind.c (pending_framepy_level): New function.
686	(pending_frame_object_methods): Register 'level' method.
687
6882021-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
689
690	* python/py-inferior.c (infpy_get_connection_num): Call
691	gdb_py_object_from_longest instead of PyLong_FromLong directly.
692
6932021-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
694
695	* python/py-unwind.c (unwind_infopy_add_saved_register): Handle
696	saving user registers.
697
6982021-06-19  Mike Frysinger  <vapier@gentoo.org>
699
700	* acinclude.m4: Delete most m4_include's of ../config files.
701	* configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
702	* aclocal.m4: Regenerate.
703	* configure: Regenerate.
704
7052021-06-17  Pedro Alves  <pedro@palves.net>
706
707	* scoped_ignore_signal.h (scoped_ignore_signal): Add
708	ConsumePending template parameter.
709	(scoped_ignore_signal::~scoped_ignore_signal): Skip calling
710	sigtimedwait if ConsumePending is false.
711	(scoped_ignore_sigpipe): Initialize with ConsumePending=true.
712	* scoped_ignore_sigttou.h (scoped_ignore_sigttou)
713	<m_ignore_signal>: Initialize with ConsumePending=false.
714
7152021-06-17  Pedro Alves  <pedro@palves.net>
716
717	* Makefile.in (SELFTESTS_SRCS): Add
718	unittests/scoped_ignore_signal-selftests.c.
719	* unittests/scoped_ignore_signal-selftests.c: New.
720
7212021-06-17  Pedro Alves  <pedro@palves.net>
722
723	* gdbsupport/scoped_ignore_signal.h: New.
724	* compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
725	instead of <signal.h>.  Don't include <unistd.h>.
726	(scoped_ignore_sigpipe): Remove.
727	* gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
728	instead of <signal.h>.  Don't include <unistd.h>.
729	(lazy_init): New.
730	(scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
731	and lazy_init.
732
7332021-06-17  Pedro Alves  <pedro@palves.net>
734
735	* Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
736	* inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
737	* inflow.h: Delete, moved to gdbsupport/ under a different name.
738	* ser-unix.c: Don't include "inflow.h".  Include
739	"gdbsupport/scoped_ignore_sigttou.h".
740
7412021-06-17  Pedro Alves  <pedro@palves.net>
742
743	* tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
744	...
745	(tui_dispatch_ctrl_char): ... this.  Move CTRL-L handling to
746	tui_getc_1.
747	(cur_seq, start_sequence): New.
748	(tui_getc_1): Pass key escape sequences for curses control keys to
749	readline.  Handle mouse and ctrl-l here.
750	(tui_resize_all): Disable/reenable the keypad if the command
751	window has the focus too.
752	* tui/tui-win.c (tui_set_focus_command): Don't change keypad
753	setting.
754	* tui/tui.c (tui_rl_other_window): Don't change keypad setting.
755
7562021-06-16  Simon Marchi  <simon.marchi@polymtl.ca>
757
758	* silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
759
7602021-06-16  Tom de Vries  <tdevries@suse.de>
761
762	PR symtab/26327
763	* dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
764	(dwarf2_cu::get_builder): Declare and move ...
765	* dwarf2/cu.c (dwarf2_cu::get_builder): ... here.  Use sym_cu instead
766	of ancestor.  Assert return value is non-null.
767	* dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
768	(follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
769	(dwarf2_per_objfile): Add sym_cu field.
770
7712021-06-15  Alan Modra  <amodra@gmail.com>
772
773	* testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
774
7752021-06-14  Mike Frysinger  <vapier@gentoo.org>
776
777	* Makefile.in (GNULIB_BUILDDIR): Rename to ...
778	(GNULIB_PARENT_DIR): ... this.  Remove "gnulib" from value.
779
7802021-06-14  John Baldwin  <jhb@FreeBSD.org>
781
782	* configure.ac: Check for <sys/procctl.h>.
783	* config.in, configure: Regenerate.
784	* fbsd-nat.c: Include <sys/procctl.h> if present.
785	[PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
786	(fbsd_nat_target::create_inferior)
787	(fbsd_nat_target::supports_disable_randomization): New.
788	* fbsd-nat.h (fbsd_nat_target::create_inferior)
789	(fbsd_nat_target::supports_disable_randomization): New.
790
7912021-06-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
792
793	* compile/compile.c: Include missing header signal.h.
794
7952021-06-12  John Baldwin  <jhb@FreeBSD.org>
796
797	* remote.c (remote_new_objfile): Fix indentation.
798
7992021-06-11  Kevin Buettner  <kevinb@redhat.com>
800
801	* solib.c (libpthread_name_p): Match "libc" in addition
802	to "libpthread".
803	* linux-thread-db.c (libpthread_objfile_p): New function.
804	(libpthread_name_p): Adjust preexisting callers to use
805	libpthread_objfile_p().
806
8072021-06-11  Simon Marchi  <simon.marchi@polymtl.ca>
808
809	* dwarf2/loc.h (struct call_site_stuff): Remove.
810
8112021-06-11  Tom Tromey  <tom@tromey.com>
812
813	PR rust/23427
814	* rust-parse.c (rust_parser::lex_identifier): Handle raw
815	identifiers.
816	(rust_lex_tests): Add raw identifier tests.
817
8182021-06-08  Lancelot Six  <lsix@lancelotsix.com>
819
820	* python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
821	instead of '== None'.
822	(FrameVars): Use 'is not None' instead of '!= None'.
823	* python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
824	Use 'is None' instead of '== None' and 'is not None' instead of '!=
825	None'.
826
8272021-06-08  Simon Marchi  <simon.marchi@polymtl.ca>
828
829	* inferior.h (class inferior) <in_initial_library_scan>: New.
830	* infcmd.c (post_create_inferior): Set in_initial_library_scan.
831	* infrun.c (follow_fork_inferior): Likewise.
832	* linux-thread-db.c (try_thread_db_load): Catch exception thrown
833	by try_thread_db_load_1
834	(thread_db_load): Return early if in_initial_library_scan is
835	set.
836	* remote.c (remote_new_objfile): Return early if
837	in_initial_library_scan is set.
838
8392021-06-07  Pedro Alves  <pedro@palves.net>
840
841	* dwarf2/read.c (struct partial_die_info): Add defaulted copy
842	ctor.
843	* symtab.h (struct symbol): Add defaulted copy assignment
844	operator.
845
8462021-06-07  Pedro Alves  <pedro@palves.net>
847
848	* completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
849	(RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
850	(gdb_rl_find_completion_word): Remove write-only 'found_quote'
851	local.
852
8532021-06-07  Pedro Alves  <pedro@palves.net>
854
855	* nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
856	(nat_sigval_t): ... this and remove typedef of same name.
857	(struct nat_siginfo): Rename to ...
858	(nat_siginfo_t): ... this and remove typedef of same name.
859	(struct compat_sigval): Rename to ...
860	(compat_sigval_t): ... this and remove typedef of same name.
861	(struct compat_siginfo): Rename to ...
862	(compat_siginfo_t): ... this and remove typedef of same name.
863	(struct compat_x32_siginfo): Rename to ...
864	(compat_x32_siginfo_t): ... this and remove typedef of same name.
865	(amd64_linux_siginfo_fixup_common): Adjust.
866
8672021-06-07  Pedro Alves  <pedro@palves.net>
868
869	* nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
870	__attribute__ __aligned__ from the typedef to the struct.
871
8722021-06-07  Andrew Burgess  <andrew.burgess@embecosm.com>
873
874	PR gdb/27847
875	* amd64-tdep.c (amd64_has_unaligned_fields): Move call to
876	type_align, and spot case where the alignment is unknown.
877
8782021-06-07  Carl Love  <cel@us.ibm.com>
879
880	* ppc-tdep.h (ppc_insn_prefix_dform): Declare.
881	* ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
882	(ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
883	ppc64_pcrel_linkage2_target): New functions.
884	(ppc64_standard_linkage9, ppc64_standard_linkage10,
885	ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
886	instruction patterns.
887	(ppc64_standard_linkage9, ppc64_standard_linkage10,
888	ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
889	in define MAX expression.
890	(ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
891	ppc64_standard_linkage10, ppc64_standard_linkage11,
892	ppc64_standard_linkage12.
893	* (ppc_insn_prefix_dform): New function.
894
8952021-06-07  Simon Marchi  <simon.marchi@polymtl.ca>
896
897	PR gdb/27899
898	* sparc-nat.c (sparc_fetch_inferior_registers): Set
899	inferior_ptid instead of using switch_to_thread.
900	(sparc_store_inferior_registers): Likewise.
901
9022021-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
903
904	* compile/compile.c (scoped_ignore_sigpipe): New helper class.
905	(compile_to_object): Ignore SIGPIPE before calling the plugin.
906
9072021-06-05  Tom Tromey  <tom@tromey.com>
908
909	* data-directory/Makefile.in (Makefile): Use correct directory
910	name.
911
9122021-06-05  Tom Tromey  <tom@tromey.com>
913
914	* data-directory/Makefile.in (Makefile): Rewrite.
915
9162021-06-05  Tom Tromey  <tromey@adacore.com>
917
918	* configure: Rebuild.
919	* configure.ac: Add ACX_NONCANONICAL_TARGET.
920
9212021-06-05  Shahab Vahedi  <shahab@synopsys.com>
922
923	* NEWS: Document 'set disassembler-options' support for the ARC
924	target.
925	* arc-tdep.c (arc_gdbarch_init): Set
926	'gdbarch_valid_disassembler_options'.
927
9282021-06-04  Tom Tromey  <tromey@adacore.com>
929
930	* dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
931	parameter.
932	* dwarf2/loc.c (dwarf2_evaluate_property) <case
933	PROP_VARIABLE_NAME>: New case.
934	(compute_var_value): New function.
935	(sect_variable_value): Use compute_var_value.
936	* dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
937	(var_decl_name): New function.
938	(dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
939	* gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
940	constant.
941	(union dynamic_prop_data) <variable_name>: New member.
942	(struct dynamic_prop) <variable_name, set_variable_name>: New
943	methods.
944
9452021-06-04  Andrew Burgess  <andrew.burgess@embecosm.com>
946
947	* remote.c (remote_target)
948	<select_thread_for_ambiguous_stop_reply>: Add additional debug
949	output.
950
9512021-06-04  Hannes Domani  <ssbssa@yahoo.de>
952
953	* python/py-tui.c (class tui_py_window): Add click function.
954	(tui_py_window::click): Likewise.
955
9562021-06-04  Hannes Domani  <ssbssa@yahoo.de>
957
958	* ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
959	* tui/tui-data.h (struct tui_win_info): Add click function.
960	* tui/tui-io.c (tui_prep_terminal): Enable mouse events.
961	(tui_deprep_terminal): Disable mouse events.
962	(tui_dispatch_ctrl_char): Handle KEY_MOUSE.
963	* tui/tui.c (tui_disable): Disable mouse events.
964
9652021-06-03  Magne Hov  <mhov@undo.io>
966
967	PR python/27841
968	* eval.c (expression::evaluate): Check inferior_ptid.
969
9702021-06-03  Pedro Alves  <pedro@palves.net>
971
972	* MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
973	affiliation.
974	(Global Maintainers): Update my address.
975	(Write After Approval): Remove stale entry.
976
9772021-06-03  John Baldwin  <jhb@FreeBSD.org>
978
979	* fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
980	(FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
981	(FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
982	(FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
983	(FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
984	(FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
985	(FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
986	(FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
987	(FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
988	(FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
989	(FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
990	(FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
991	(FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
992	(FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
993	(FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
994	(fbsd_report_signal_info): New.
995	(fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
996	report_signal_info method.
997
9982021-06-03  Magne Hov  <mhov@undo.io>
999
1000	* MAINTAINERS (Write After Approval): Add Magne Hov.
1001
10022021-06-03  Hannes Domani  <ssbssa@yahoo.de>
1003
1004	* python/py-symbol.c (gdbpy_initialize_symbols): Restore
1005	gdb.SYMBOL_LABEL_DOMAIN constant.
1006
10072021-06-01  John Baldwin  <jhb@FreeBSD.org>
1008
1009	* infrun.c (handle_inferior_event): Only call
1010	gdbarch_displaced_step_restore_all_in_ptid if
1011	gdbarch_supports_displaced_stepping is true.
1012
10132021-06-01  Tom Tromey  <tromey@adacore.com>
1014
1015	* Makefile.in (all-data-directory): Remove.
1016	(data-directory/Makefile): Remove.
1017
10182021-06-01  Tom Tromey  <tromey@adacore.com>
1019
1020	* configure: Rebuild.
1021	* configure.ac: Use AS_HELP_STRING for enable-shared.  Fix typo.
1022
10232021-06-01  Tom Tromey  <tromey@adacore.com>
1024
1025	* silent-rules.mk (ECHO_CC): New variable.
1026
10272021-06-01  Tom Tromey  <tromey@adacore.com>
1028
1029	* Makefile.in (SUBDIRS): Add testsuite.
1030	(all): Don't exclude testsuite.
1031
10322021-06-01  Tom Tromey  <tromey@adacore.com>
1033
1034	* configure.ac: Copy some code from testsuite/configure.ac.
1035	(enable_libctf): Subst this, not ENABLE_LIBCTF.
1036	* configure: Rebuild.
1037
10382021-06-01  Tom de Vries  <tdevries@suse.de>
1039
1040	PR symtab/26096
1041	* minsyms.c (msymbol_is_cold_clone): New function.
1042	(msymbol_is_function): Use msymbol_is_cold_clone.
1043
10442021-06-01  Fredrik Hederstierna  <fredrik@hederstierna.com>
1045	    Andrew Burgess  <andrew.burgess@embecosm.com>
1046
1047	PR gdb/14383
1048	* Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
1049	(ALLDEPFILES): Add arm-none-tdep.c
1050	* arm-none-tdep.c: New file.
1051	* configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
1052
10532021-06-01  Andrew Burgess  <andrew.burgess@embecosm.com>
1054	    Richard Bunt  <richard.bunt@arm.com>
1055
1056	* breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
1057	check for why the backtrace stopped.
1058
10592021-05-31  Simon Marchi  <simon.marchi@polymtl.ca>
1060
1061	* dwarf2/read.h (struct structured_type) <signatured_type>: New.
1062	Update all callers.
1063	(struct dwarf2_per_bfd) <allocate_signatured_type>: Add
1064	signature parameter, update all callers.
1065	* dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
1066	signature parameter.
1067
10682021-05-31  Simon Marchi  <simon.marchi@polymtl.ca>
1069
1070	* dwarf2/read.h (signatured_type_up): New, use where possible.
1071
10722021-05-31  Simon Marchi  <simon.marchi@polymtl.ca>
1073
1074	* dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
1075
10762021-05-30  Tom Tromey  <tom@tromey.com>
1077
1078	* dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
1079	is_debug_types.
1080	(create_signatured_type_table_from_index)
1081	(create_signatured_type_table_from_debug_names, add_type_unit)
1082	(read_comp_units_from_section): Update.
1083
10842021-05-30  Tom Tromey  <tom@tromey.com>
1085
1086	* dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
1087	m_num_psymtabs>: Remove.
1088	(resize_symtabs): Update.
1089	* dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
1090	(dwarf2_per_bfd::allocate_signatured_type): Update.
1091
10922021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1093
1094	* Fix tab after space indentation issues throughout.
1095
10962021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1097
1098	* Fix some indentation mistakes throughout.
1099
11002021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1101
1102	* breakpoint.h (iterate_over_bp_locations): Remove.  Update
1103	users to use all_bp_locations.
1104	(all_bp_locations): New.
1105	* breakpoint.c (all_bp_locations): Make non-static.
1106	(iterate_over_bp_locations): Remove.
1107
11082021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1109
1110	* breakpoint.h (iterate_over_breakpoints): Remove.  Update
1111	callers to use all_breakpoints or all_breakpoints_safe.
1112	(breakpoint_range, all_breakpoints, breakpoint_safe_range,
1113	all_breakpoints_safe): Move here.
1114	* breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
1115	non-static.
1116	(iterate_over_breakpoints): Remove.
1117	* python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1118	Return void.
1119	* python/py-breakpoint.c (build_bp_list): Add comment, reverse
1120	return value logic.
1121	* guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
1122
11232021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1124
1125	* breakpoint.c (get_first_locp_gte_addr): Remove.
1126	(ALL_BP_LOCATIONS_AT_ADDR): Remove.  Replace all uses with
1127	all_bp_locations_at_addr.
1128	(struct bp_locations_at_addr_range): New.
1129	(all_bp_locations_at_addr): New.
1130	(bp_locations_compare_addrs): New.
1131
11322021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1133
1134	* breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
1135	all_bp_locations.
1136	(all_bp_locations): New.
1137
11382021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1139
1140	* breakpoint.c (bp_locations): Change to std::vector, update all
1141	users.
1142	(bp_locations_count): Remove.
1143	(update_global_location_list): Change to work with indices
1144	rather than bp_location**.
1145
11462021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1147
1148	* breakpoint.h (bp_locations_range): New.
1149	(struct breakpoint) <locations>: New.  Use where possible.
1150
11512021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1152
1153	* breakpoint.h (all_tracepoints): Remove.
1154	(breakpoint_iterator): Move here.
1155	(struct tracepoint_filter): New.
1156	(tracepoint_iterator): New.
1157	(tracepoint_range): New.
1158	(all_tracepoints): New.
1159	* breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
1160	all_tracepoints.
1161	(breakpoint_iterator): Move to header.
1162	(all_tracepoints): New.
1163	* tracepoint.c (start_tracing): Adjust.
1164
11652021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1166
1167	* breakpoint.c (breakpoint_safe_range): New.
1168	(all_breakpoints_safe): New.  Use instead of
1169	ALL_BREAKPOINTS_SAFE where possible.
1170
11712021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1172
1173	* breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
1174	all_breakpoints.
1175	(breakpoint_iterator): New.
1176	(breakpoint_range): New.
1177	(all_breakpoints): New.
1178
11792021-05-27  Hannes Domani  <ssbssa@yahoo.de>
1180
1181	* python/py-tui.c (tui_py_window::output): Add full_window
1182	argument.
1183	(gdbpy_tui_write): Parse "full_window" argument.
1184
11852021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1186
1187	* make-init-c: Add option to reverse function calls.
1188
11892021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1190
1191	* Makefile.in (INIT_FILES_FILTER_OUT): New.
1192	(INIT_FILES): Use INIT_FILES_FILTER_OUT.
1193	(stamp-init): Use make-init-c.
1194	* bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
1195	* silent-rules.mk (ECHO_INIT_C): Change.
1196	* make-init-c: New file.
1197
11982021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1199
1200	* command.h (add_alias_cmd): Accept target as
1201	cmd_list_element.  Update callers.
1202
12032021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1204
1205	* command.h (add_info_alias): Accept target as
1206	cmd_list_element.  Update callers.
1207
12082021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1209
1210	* command.h (add_com_alias): Accept target as
1211	cmd_list_element.  Update callers.
1212
12132021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1214
1215	* python/py-param.c (add_setshow_generic): Use return values of
1216	add_setshow functions.
1217
12182021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1219
1220	* mi/mi-main.c (_initialize_mi_main):
1221	* python/py-auto-load.c (gdbpy_initialize_auto_load):
1222	* remote.c (_initialize_remote):
1223
12242021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
1225
1226	* command.h (set_show_commands): New.
1227	(add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
1228	add_setshow_boolean_cmd, add_setshow_filename_cmd,
1229	add_setshow_string_cmd, add_setshow_string_noescape_cmd,
1230	add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
1231	add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
1232	add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1233	Return set_show_commands.  Adjust callers.
1234	* cli/cli-decode.c (add_setshow_cmd_full): Return
1235	set_show_commands, remove result parameters, adjust callers.
1236
12372021-05-27  Tom de Vries  <tdevries@suse.de>
1238
1239	PR symtab/27919
1240	* dwarf2/read.c (process_psymtab_comp_unit):
1241
12422021-05-27  Tom de Vries  <tdevries@suse.de>
1243
1244	* dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
1245	error.
1246
12472021-05-27  Tom de Vries  <tdevries@suse.de>
1248
1249	PR symtab/27898
1250	* dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
1251	* dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
1252	* dwarf2/read.c (load_partial_dies, find_partial_die): Update.
1253	* dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
1254	load_all_dies init.
1255	(dwarf2_per_cu_data): Remove load_all_dies field.
1256
12572021-05-26  Simon Marchi  <simon.marchi@efficios.com>
1258
1259	* regcache.c (reg_buffer::reg_buffer): Default-initialize
1260	m_registers array.
1261
12622021-05-26  Tom Tromey  <tom@tromey.com>
1263
1264	* dwarf2/read.c (allocate_type_unit_groups_table)
1265	(handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
1266	htab_delete_entry.
1267	(free_line_header_voidp): Remove.
1268	* completer.c
1269	(completion_tracker::completion_hash_entry::deleter): Remove.
1270	(completion_tracker::discard_completions): Use htab_delete_entry.
1271	* utils.h (htab_delete_entry): New template function.
1272
12732021-05-24  Hannes Domani  <ssbssa@yahoo.de>
1274
1275	* python/py-tui.c (tui_py_window::refresh_window):
1276	Avoid flickering.
1277
12782021-05-23  Tom de Vries  <tdevries@suse.de>
1279
1280	PR tdep/27822
1281	* target.h (struct target_ops): Mention target_thread_architecture in
1282	read_description comment.
1283	* x86-linux-nat.c (x86_linux_nat_target::read_description): Use
1284	pid to determine if process is 64-bit or 32-bit.
1285	* aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1286	Same.
1287	* ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
1288        * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
1289	* s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
1290	* arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
1291	Likewise, use pid to determine if kernel supports reading VFP
1292	registers.
1293
12942021-05-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1295
1296	* main.c (enum cmdarg_kind): Fix option type comments for
1297	CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
1298
12992021-05-21  Tom de Vries  <tdevries@suse.de>
1300
1301	PR testsuite/25047
1302	* contrib/cc-with-tweaks.sh: Handle -l.
1303
13042021-05-21  Tom de Vries  <tdevries@suse.de>
1305
1306	PR breakpoint/27889
1307	* jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1308	objects.  Call get_jiter_objfile_data with the_objfile.
1309
13102021-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
1311
1312	* linespec.c (linespec_p): Remove.  Replace all uses with
1313	"linespec *".
1314
13152021-05-20  Alexandra Hájková  <ahajkova@redhat.com>
1316	    Pedro Alves  <pedro@palves.net>
1317
1318	* cli/cli-script.h (command_line_up): New unique_ptr typedef.
1319	* cli/cli-script.c (multi_line_command_p): Use unique_ptr
1320	command_line_up instead of struct command_line.
1321	(build_command_line): Likewise.
1322	(get_command_line): Update the cmd function call parameter.
1323	(process_next_line):  Use unique_ptr command_line_up instead
1324	of struct command_line.
1325	(recurse_read_control_structure): Change the the type of
1326	next to command_line_up.
1327	(read_command_lines_1): Change type of `next' to be
1328	command_line_up and update all references of `next'
1329	accordingly.
1330
13312021-05-20  Alexandra Hájková  <ahajkova@redhat.com>
1332
1333	* MAINTAINERS (Write After Approval): Add myself.
1334
13352021-05-19  John Baldwin  <jhb@FreeBSD.org>
1336
1337	* dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1338
13392021-05-18  Alexandra Hájková  <ahajkova@redhat.com>
1340
1341	* inflow.c (new_tty): Do not leak tty.
1342
13432021-05-17  Tom Tromey  <tom@tromey.com>
1344
1345	* dwarf2/read.h: Update include.
1346	* dwarf2/read.c: Update include.
1347	* dwarf2/line-header.c: Update include.
1348	* dwarf2/cu.h: Update include.
1349	* dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1350	* dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1351	* Makefile.in (COMMON_SFILES): Update.
1352
13532021-05-17  Tom Tromey  <tom@tromey.com>
1354
1355	* dwarf2/read.c (maybe_queue_comp_unit)
1356	(dwarf2_per_objfile::age_comp_units): Update.
1357	(dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1358	dwarf2_cu methods.
1359	* dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1360	add_dependence>: New methods.
1361	<m_dependencies>: Add "m_" prefix.  Now private.
1362	<m_mark>: Add "m_" prefix.
1363	* dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1364	(dwarf2_mark_helper): New function.
1365	(dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1366
13672021-05-17  Tom Tromey  <tom@tromey.com>
1368
1369	* dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1370	(dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1371	(dwarf2_cu::dwarf2_cu): Move to cu.c.
1372	* dwarf2/cu.c: New file.
1373	* Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1374
13752021-05-17  Tom Tromey  <tom@tromey.com>
1376
1377	* Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1378	* dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1379	Move to cu.h.
1380	* dwarf2/cu.h: New file.
1381
13822021-05-17  Andrew Burgess  <andrew.burgess@embecosm.com>
1383
1384	* .dir-locals.el: Set sentence-end-double-space for all modes, and
1385	set brace-list-open to 0 for C and C++ modes.
1386
13872021-05-17  Tom Tromey  <tromey@adacore.com>
1388
1389	* dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1390	if frame is null.
1391
13922021-05-17  Tom Tromey  <tromey@adacore.com>
1393
1394	* nat/linux-osdata.c (user_from_uid, time_from_time_t)
1395	(group_from_gid): Subtract one from strncpy length.
1396
13972021-05-17  Tom Tromey  <tromey@adacore.com>
1398
1399	* source.c (add_path): Check 'p' before using 'p[-1]'.
1400
14012021-05-17  Tom Tromey  <tromey@adacore.com>
1402
1403	* dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1404	(dwarf2_per_cu_data_up): New typedef.
1405	(struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1406	<all_comp_units>: Use dwarf2_per_cu_data_up.
1407	* dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1408	(dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1409	(create_cu_from_index_list): Likewise.
1410	(create_signatured_type_table_from_index)
1411	(create_cus_from_debug_names_list, add_type_unit)
1412	(read_comp_units_from_section): Update.
1413	(dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1414	(run_test): Update.
1415
14162021-05-17  Tom Tromey  <tom@tromey.com>
1417
1418	* dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1419	(sort_tu_by_abbrev_offset): Remove.
1420	(build_type_psymtabs): Update.
1421
14222021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
1423
1424	* py-project.toml: New.
1425	* gdb-gdb.py.in: Re-format.
1426
14272021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
1428
1429	* cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1430	New, use it.
1431	* command.h (cmd_func_p): Remove.
1432	* cli/cli-decode.c (cmd_func_p): Remove.
1433
14342021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
1435
1436	* cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1437
14382021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
1439
1440	* cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1441	to...
1442	<alias_target>: ... this.
1443	(add_alias_cmd): Rename old to target.
1444	(add_info_alias): Rename old_name to target_name.
1445	(add_com_alias): Likewise.
1446
14472021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
1448
1449	* Rename "prefixlist" parameters to "subcommands" throughout.
1450	* cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1451	<subcommands>: ... this.
1452	* cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1453	(lookup_cmd_with_subcommands): ... this.
1454
14552021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
1456
1457	* cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1458
14592021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
1460
1461	* cli/cli-decode.h (prefixname): Make const, move implementation
1462	to cli/cli-decode.c.
1463	* cli/cli-decode.c (cmd_list_element::prefixname): New.
1464
14652021-05-16  Weimin Pan  <weimin.pan@oracle.com>
1466
1467	* ctfread.c (new_symbol): Set function address.
1468	(read_func_kind_type): Remove incorrect type name setting.
1469	Don't copy name returned from ctf_type_ame_raw throughout file.
1470
14712021-05-14  Tom Tromey  <tom@tromey.com>
1472
1473	* rust-lang.c (rust_language::val_print_struct)
1474	(rust_language::print_enum): Use common_val_print, not
1475	value_print_inner.
1476
14772021-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1478
1479	* python/py-inferior.c (infpy_get_connection_num): New function.
1480	(inferior_object_getset): Add a new element for 'connection_num'.
1481	* NEWS: Mention the 'connection_num' attribute of Inferior objects.
1482
14832021-05-14  Andrew Burgess  <andrew.burgess@embecosm.com>
1484
1485	* remote.c (check_pending_events_prevent_wildcard_vcont): Change
1486	argument type, update and re-wrap, header comment.
1487	(remote_target::commit_resumed): Convert any_process_wildcard and
1488	may_global_wildcard_vcont from int to bool.
1489
14902021-05-14  Kent Cheung  <kent.cheung@arm.com>
1491
1492	* cp-valprint.c (cp_print_value): Replaced duplicate code.
1493	* guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1494	just before printing child values.
1495	(gdbscm_apply_val_pretty_printer): Don't check max_depth before
1496	printing string representation.
1497	* python/py-prettyprint.c (print_children): Check max_depth just
1498	before printing child values.
1499	(gdbpy_apply_val_pretty_printer): Don't check max_depth before
1500	printing string representation.
1501
15022021-05-14  Mike Frysinger  <vapier@gentoo.org>
1503
1504	* remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1505	sim/callback.h & sim/sim.h.
1506
15072021-05-13  Mike Frysinger  <vapier@gentoo.org>
1508
1509	* lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1510	sim-regno.h include.
1511
15122021-05-13  Simon Marchi  <simon.marchi@efficios.com>
1513
1514	* inf-child.h (inf_child_target) <follow_exec>: New.
1515	* inf-child.c (inf_child_target::follow_exec): New.
1516
15172021-05-13  Simon Marchi  <simon.marchi@efficios.com>
1518
1519	* target.h (struct target_ops) <follow_exec>: Add ptid_t
1520	parameter.
1521	(target_follow_exec): Likewise.
1522	* target.c (target_follow_exec): Add ptid_t parameter.
1523	* infrun.c (follow_exec): Adjust call to target_follow_exec,
1524	don't push target nor create thread.
1525	* linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1526	(thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1527	(thread_db_target::follow_exec): New.
1528	* remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1529	(remote_target::follow_exec): Call
1530	process_stratum_target::follow_exec.
1531	* target-delegates.c: Re-generate.
1532
15332021-05-13  Simon Marchi  <simon.marchi@efficios.com>
1534
1535	* infrun.c (follow_exec): Call target_follow_fork when
1536	follow-exec-mode is same.
1537	* target.h (target_follow_fork): Improve doc.
1538
15392021-05-13  Simon Marchi  <simon.marchi@polymtl.ca>
1540
1541	* cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1542	Remove.
1543	* cli/cli-setshow.c (do_show_command): Adjust.
1544
15452021-05-13  Luis Machado  <luis.machado@linaro.org>
1546
1547	* arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1548	include the last address in the range.
1549
15502021-05-12  Simon Marchi  <simon.marchi@polymtl.ca>
1551
1552	* python/python-internal.h (gdbpy_parse_command_name): Return
1553	gdb::unique_xmalloc_ptr.
1554	* python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1555	(cmdpy_init): Adjust.
1556	* python/py-param.c (parmpy_init): Adjust.
1557	(add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1558	when done.
1559
15602021-05-12  George Barrett  <bob@bob131.so>
1561
1562	* NEWS (Guile API): Note the addition of the new procedure.
1563	* guile/scm-value.c (gdbscm_value_const_value): Add
1564	implementation of value-const-value procedure.
1565	(value_functions): Add value-const-value procedure.
1566
15672021-05-12  George Barrett  <bob@bob131.so>
1568
1569	* NEWS (Guile API): Note the addition of new procedures.
1570	* guile/scm-value.c (gdbscm_reference_value): Add helper function
1571	for reference value creation.
1572	(gdbscm_value_reference_value): Add implementation of
1573	value-reference-value procedure.
1574	(gdbscm_value_rvalue_reference_value): Add implementation of
1575	value-rvalue-reference-value procedure.
1576	(value_functions): Add value-reference-value procedure.  Add
1577	value-rvalue-reference-value procedure.
1578
15792021-05-12  George Barrett  <bob@bob131.so>
1580
1581	* guile/scm-type.c (type_integer_constants): Add binding for
1582	TYPE_CODE_RVALUE_REF.
1583	* guile/scm-value.c (gdbscm_value_referenced_value): Handle
1584	dereferencing of rvalue references.
1585	* NEWS (Guile API): Note improvements in rvalue reference support.
1586
15872021-05-12  Markus Metzger  <markus.t.metzger@intel.com>
1588
1589	* btrace.c (handle_pt_insn_events): Ignore status update enable
1590	events.
1591
15922021-05-11  Simon Marchi  <simon.marchi@polymtl.ca>
1593
1594	* arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1595	indentation.
1596
15972021-05-11  Simon Marchi  <simon.marchi@polymtl.ca>
1598
1599	* cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1600
16012021-05-10  Lancelot Six  <lsix@lancelotsix.com>
1602
1603	PR gdb/27614
1604	* contrib/gdb-add-index.sh: Fix when called with a symlink as an
1605	argument.
1606
16072021-05-10  Simon Marchi  <simon.marchi@polymtl.ca>
1608
1609	* nat/linux-waitpid.c (status_to_str): Show signal name.
1610
16112021-05-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1612
1613	* python/py-breakpoint.c (pybp_debug): New static global.
1614	(show_pybp_debug): New function.
1615	(pybp_debug_printf): Define.
1616	(PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1617	(gdbpy_breakpoint_created): Add some debugging.
1618	(gdbpy_breakpoint_deleted): Likewise.
1619	(gdbpy_breakpoint_modified): Likewise.
1620	(_initialize_py_breakpoint): New function.
1621
16222021-05-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1623
1624	* python/py-unwind.c (pyuw_debug): Convert to bool.
1625	(show_pyuw_debug): New function.
1626	(pyuw_debug_printf): Define.
1627	(PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1628	(pyuw_this_id): Convert to new debug print macros.
1629	(pyuw_prev_register): Likewise.
1630	(pyuw_sniffer): Likewise.
1631	(pyuw_dealloc_cache): Likewise.
1632	(_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1633	show function when registering.
1634
16352021-05-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1636
1637	* dummy-frame.c (fprint_dummy_frames): Convert use of
1638	fprint_frame_id to use frame_id::to_string.
1639	* frame.c (fprint_field): Delete.
1640	(fprint_frame_id): Moved to...
1641	(frame_id::to_string): ...this, rewritten to return a string.
1642	(fprint_frame): Convert use of fprint_frame_id to use
1643	frame_id::to_string.
1644	(compute_frame_id): Likewise.
1645	(frame_id_p): Likewise.
1646	(frame_id_eq): Likewise.
1647	(frame_id_inner): Likewise.
1648	* frame.h (struct frame_id) <to_string>: New member function.
1649	(fprint_frame_id): Delete declaration.
1650	* guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1651	fprint_frame_id to use frame_id::to_string.
1652	* python/py-frame.c (frame_object_to_frame_info): Likewise.
1653	* python/py-unwind.c (unwind_infopy_str): Likewise.
1654	(pyuw_this_id): Likewise.
1655
16562021-05-08  Simon Marchi  <simon.marchi@polymtl.ca>
1657
1658	* nat/linux-waitpid.c (status_to_str): Return std::string.
1659	* nat/linux-waitpid.h (status_to_str): Likewise.
1660	* linux-nat.c (linux_nat_post_attach_wait): Adjust.
1661	(linux_nat_target::attach): Adjust.
1662	(linux_handle_extended_wait): Adjust.
1663	(wait_lwp): Adjust.
1664	(stop_wait_callback): Adjust.
1665	(linux_nat_filter_event): Adjust.
1666	(linux_nat_wait_1): Adjust.
1667	* nat/linux-waitpid.c (status_to_str): Adjust.
1668	* nat/linux-waitpid.h (status_to_str): Adjust.
1669
16702021-05-08  Simon Marchi  <simon.marchi@polymtl.ca>
1671
1672	* infrun.h (infrun_debug_printf): Add missing space.
1673
16742021-05-08  Pedro Alves  <pedro@palves.net>
1675
1676	* linux-nat.c (linux_nat_target::supports_disable_randomization):
1677	Remove references to HAVE_PERSONALITY.
1678	* nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1679	(maybe_disable_address_space_randomization)
1680	(~maybe_disable_address_space_randomizatio): Remove references to
1681	HAVE_PERSONALITY.
1682	* config.in, configure: Regenerate.
1683
16842021-05-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1685
1686	* cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1687	include.
1688	(source_script_with_search): Perform tilde expansion.
1689
16902021-05-07  Simon Marchi  <simon.marchi@polymtl.ca>
1691
1692	* target-descriptions.c (struct target_desc_info) <filename>:
1693	Make std::string.
1694	(copy_inferior_target_desc_info): Adjust.
1695	(target_desc_info_free): Adjust.
1696	(target_find_description): Adjust.
1697	(set_tdesc_filename_cmd): Adjust.
1698	(show_tdesc_filename_cmd): Adjust.
1699	(unset_tdesc_filename_cmd): Adjust.
1700	(maint_print_c_tdesc_cmd): Adjust.
1701
17022021-05-07  Simon Marchi  <simon.marchi@polymtl.ca>
1703
1704	* target-descriptions.c (struct target_desc_info): Initialize
1705	fields.
1706	(get_tdesc_info): Use new.
1707	(target_desc_info_free): Use delete.
1708
17092021-05-07  Simon Marchi  <simon.marchi@polymtl.ca>
1710
1711	* target-descriptions.c (struct target_desc_info) <fetched>:
1712	bool.
1713	(target_find_description): Adjust.
1714	(target_clear_description): Adjust.
1715
17162021-05-07  Simon Marchi  <simon.marchi@polymtl.ca>
1717
1718	* target-descriptions.c (struct target_desc_info) <tdesc>:
1719	Adjust doc.
1720	(target_desc_fetched): Remove.
1721	(current_target_desc): Remove.
1722	(target_description_filename): Remove.
1723	(target_find_description): Adjust.
1724	(target_clear_description): Adjust.
1725	(target_current_description): Adjust.
1726	(set_tdesc_filename_cmd): Adjust.
1727	(show_tdesc_filename_cmd): Adjust.
1728	(unset_tdesc_filename_cmd): Adjust.
1729	(maint_print_c_tdesc_cmd): Adjust.
1730	(maint_print_xml_tdesc_cmd): Adjust.
1731
17322021-05-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1733
1734	* infcmd.c (notice_new_inferior): Change parameter type.
1735	* inferior.h (notice_new_inferior): Change parameter type.
1736	* remote.c (remote_notice_new_inferior): Change parameter type to
1737	bool.  Also update type of local variable to bool.
1738	(remote_target::update_thread_list): Change type of local variable
1739	to bool.
1740	(remote_target::process_stop_reply): Pass bool instead of int to
1741	remote_notice_new_inferior.
1742
17432021-05-07  Simon Marchi  <simon.marchi@efficios.com>
1744
1745	* target.c (target_stack::unpush): Call target_ops::find_beneath
1746	to get the target beneath `t`.
1747
17482021-05-07  Simon Marchi  <simon.marchi@efficios.com>
1749
1750	* target.c (target_close): Check in all inferiors that the
1751	target is not pushed.
1752
17532021-05-07  Aaron Merey  <amerey@redhat.com>
1754
1755	* debuginfod-support.c (debuginfod_init): Remove.
1756	(get_debuginfod_client): New function.
1757
17582021-05-07  Tom Tromey  <tom@tromey.com>
1759
1760	* breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1761	* utils.c (streq_hash): Remove.
1762	* utils.h (streq_hash): Don't declare.
1763	* completer.c (completion_tracker::discard_completions): Update
1764	comment.
1765	* ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1766
17672021-05-07  Simon Marchi  <simon.marchi@polymtl.ca>
1768
1769	* Re-format all Python files using black.
1770
17712021-05-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1772
1773	* guile/guile-internal.h (gdbscm_safe_source_script): Change
1774	function return type.
1775	* guile/guile.c (gdbscm_source_script): Update to handle change in
1776	gdbscm_safe_source_script.
1777	* guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1778	* guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1779	type.
1780
17812021-05-06  Simon Marchi  <simon.marchi@polymtl.ca>
1782
1783	* inferior.h (class inferior) <args>: Change type to
1784	unique_xmalloc_ptr.
1785	* inferior.c (inferior::~inferior): Don't free args.
1786	* infcmd.c (get_inferior_args): Adjust.
1787	(set_inferior_args): Adjust.
1788
17892021-05-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1790
1791	* guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1792	breakpoint locations when the breakpoint actually has a location.
1793
17942021-05-06  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1795
1796	* mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1797	* mi/mi-cmds.c: Change the binding of "-break-condition" to
1798	mi_cmd_break_condition.
1799	* mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1800	* breakpoint.h (set_breakpoint_condition): Declare a new
1801	overload.
1802	* breakpoint.c (set_breakpoint_condition): New overloaded function
1803	extracted out from ...
1804	(condition_command): ... this.
1805	* NEWS: Mention the change.
1806
18072021-05-06  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1808
1809	* mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1810	'--force-condition' flag to force the condition in the
1811	'-break-insert' and '-dprintf-insert' commands.
1812	* NEWS: Mention the change.
1813
18142021-05-04  Tom de Vries  <tdevries@suse.de>
1815
1816	PR guile/27806
1817	* guile/guile.c	(gdbscm_initialize): Don't let guile change libgmp
1818	memory functions.
1819
18202021-04-30  Tom Tromey  <tom@tromey.com>
1821
1822	* dwarf2/read.c (dwarf2_initialize_objfile): Update.
1823	(add_signatured_type_cu_to_table): Remove.
1824	(create_debug_type_hash_table): Assume dwo_file is non-null.
1825	(create_debug_types_hash_table): Update comment.
1826	(create_all_type_units): Remove.
1827	(sort_tu_by_abbrev_offset): Update comment.
1828	(build_type_psymtabs): Rename from build_type_psymtabs_1.
1829	(build_type_psymtabs): Remove.
1830	(process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1831	Update.
1832	(read_comp_units_from_section): Add types_htab, section_kind
1833	parameters.
1834	(create_all_comp_units): Read type units.
1835
18362021-04-30  Tom Tromey  <tom@tromey.com>
1837
1838	* dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1839	(struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1840	<get_cu>: Now inline.
1841	<all_type_units>: Remove.
1842	* dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1843	(dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1844	(dwarf2_per_bfd::get_tu): Remove.
1845	(dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1846	(create_signatured_type_table_from_index)
1847	(create_signatured_type_table_from_debug_names)
1848	(dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1849	(dwarf2_base_index_functions::expand_all_symtabs)
1850	(dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1851	(dwarf2_base_index_functions::map_symbol_filenames)
1852	(dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1853	(add_signatured_type_cu_to_table, create_all_type_units)
1854	(add_type_unit, build_type_psymtabs_1, print_tu_stats)
1855	(create_all_comp_units): Update.
1856	* dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1857	(write_debug_names): Update.
1858
18592021-04-30  Tom Tromey  <tom@tromey.com>
1860
1861	* dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1862	allocate_signatured_type>: Change return type.
1863	<all_comp_units, all_type_units>: Hold unique pointers.
1864	(struct dwarf2_per_cu_data): Add constructor and initializers.
1865	(struct signatured_type): Derive from dwarf2_per_cu_data.
1866	* dwarf2/read.c (type_unit_group): Derive from
1867	dwarf2_per_cu_data.
1868	(dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1869	(dwarf2_per_bfd::get_tu)
1870	(dwarf2_per_bfd::allocate_signatured_type)
1871	(dwarf2_per_bfd::allocate_signatured_type)
1872	(create_cu_from_index_list, create_cus_from_index_list)
1873	(create_signatured_type_table_from_index)
1874	(create_signatured_type_table_from_debug_names)
1875	(create_addrmap_from_aranges)
1876	(dwarf2_base_index_functions::find_last_source_symtab)
1877	(dw_expand_symtabs_matching_file_matcher)
1878	(dwarf2_gdb_index::expand_symtabs_matching)
1879	(dwarf2_base_index_functions::map_symbol_filenames)
1880	(create_cus_from_debug_names_list)
1881	(dw2_debug_names_iterator::next)
1882	(dwarf2_debug_names_index::expand_symtabs_matching)
1883	(create_debug_type_hash_table, add_type_unit)
1884	(fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1885	Update.
1886	(allocate_type_unit_groups_table): Use delete.
1887	(create_type_unit_group): Change return type.  Use new.
1888	(get_type_unit_group, build_type_psymtabs_1)
1889	(build_type_psymtab_dependencies)
1890	(process_skeletonless_type_unit, set_partial_user)
1891	(dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1892	(create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1893	(read_signatured_type): Update.
1894	(dwarf2_find_containing_comp_unit): Change type of
1895	'all_comp_units'.
1896	(run_test): Update.
1897	(dwarf2_per_bfd::allocate_per_cu)
1898	(dwarf2_per_bfd::allocate_signatured_type): Change return type.
1899	Use new.
1900	(add_signatured_type_cu_to_table): Update.
1901	* dwarf2/index-write.c (write_one_signatured_type)
1902	(check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1903	(write_debug_names): Update.
1904
19052021-04-30  Tom Tromey  <tromey@adacore.com>
1906
1907	* nat/windows-nat.h (get_image_name): Don't declare.
1908	* nat/windows-nat.c (get_image_name): Now static.
1909
19102021-04-30  Tom Tromey  <tromey@adacore.com>
1911
1912	* windows-nat.c (windows_nat::handle_load_dll): Update.
1913	(windows_nat_target::get_windows_debug_event): Call
1914	dll_loaded_event.
1915	(windows_add_all_dlls, windows_add_dll): Move to
1916	nat/windows-nat.c.
1917	* nat/windows-nat.h (handle_load_dll): Change parameters.
1918	(dll_loaded_event, windows_add_all_dlls): Declare.
1919	* nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1920	from windows-nat.c.
1921	(dll_loaded_event): New function.
1922
19232021-04-30  Tom Tromey  <tromey@adacore.com>
1924
1925	* nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1926	(GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1927	Declare.
1928	* nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1929	(initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1930
19312021-04-30  Tom Tromey  <tromey@adacore.com>
1932
1933	* windows-nat.c: Move code to nat/windows-nat.[ch].
1934	(_initialize_windows_nat): Call initialize_loadable.
1935	* nat/windows-nat.h (AdjustTokenPrivileges)
1936	(DebugActiveProcessStop, DebugBreakProcess)
1937	(DebugSetProcessKillOnExit, EnumProcessModules)
1938	(EnumProcessModulesEx, GetModuleInformation)
1939	(GetModuleFileNameExA, GetModuleFileNameExW)
1940	(LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1941	(GetCurrentConsoleFont, Wow64SuspendThread)
1942	(Wow64GetThreadContext, Wow64SetThreadContext)
1943	(Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1944	(AdjustTokenPrivileges_ftype)
1945	(DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1946	(DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1947	(EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1948	(GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1949	(LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1950	(GetConsoleFontSize_ftype)
1951	(GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1952	(Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1953	(Wow64GetThreadSelectorEntry_ftype): Likewise.
1954	(initialize_loadable): Declare.
1955	* nat/windows-nat.c (AdjustTokenPrivileges)
1956	(DebugActiveProcessStop, DebugBreakProcess)
1957	(DebugSetProcessKillOnExit, EnumProcessModules)
1958	(EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1959	(GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1960	(GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1961	(Wow64GetThreadContext, Wow64SetThreadContext)
1962	(Wow64GetThreadSelectorEntry): Define.
1963	(bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1964	from windows-nat.c.
1965	(initialize_loadable): Likewise, and rename.
1966
19672021-04-30  Tom Tromey  <tromey@adacore.com>
1968
1969	* windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1970	(bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1971	(bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1972	(bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1973	(bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1974	(bad): New template functions.
1975	(_initialize_loadable): Update.
1976
19772021-04-30  Tom Tromey  <tromey@adacore.com>
1978
1979	* ada-lang.c (ada_index_type): Use ada_check_typedef.
1980
19812021-04-29  Simon Marchi  <simon.marchi@efficios.com>
1982
1983	* auto-load.h: Split namespace declaration.
1984
19852021-04-29  Simon Marchi  <simon.marchi@polymtl.ca>
1986
1987	* infrun.c (save_waitstatus): Move variables to inner scope.
1988
19892021-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
1990
1991	* NEWS: Fix typo and stray full stop.
1992
19932021-04-28  Tom Tromey  <tromey@adacore.com>
1994
1995	* ada-exp.y (primary): Use new type for null pointer.
1996	* ada-lang.c (ada_type_match): Remove "may_deref"
1997	parameter.  Handle null pointer.
1998	(ada_args_match): Update.
1999	* ada-valprint.c (ada_value_print_ptr, ada_value_print):
2000	Handle null pointer.
2001
20022021-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2003
2004	* NEWS: Mention new commands.
2005	* python/python.c (python_ignore_environment): New static global.
2006	(show_python_ignore_environment): New function.
2007	(set_python_ignore_environment): New function.
2008	(python_dont_write_bytecode): New static global.
2009	(show_python_dont_write_bytecode): New function.
2010	(set_python_dont_write_bytecode): New function.
2011	(_initialize_python): Register new commands.
2012
20132021-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2014
2015	* extension-priv.h (struct extension_language_ops): Rename
2016	'finish_initialization' to 'initialize'.
2017	* extension.c (finish_ext_lang_initialization): Renamed to...
2018	(ext_lang_initialization): ...this, update comment, and updated
2019	the calls to reflect the change in struct extension_language_ops.
2020	* extension.h (finish_ext_lang_initialization): Renamed to...
2021	(ext_lang_initialization): ...this.
2022	* guile/guile.c (gdbscm_finish_initialization): Renamed to...
2023	(gdbscm_initialize): ...this, update comment at definition.
2024	(guile_extension_ops): Update.
2025	* main.c (captured_main_1): Update call to
2026	finish_ext_lang_initialization.
2027	* python/python.c (gdbpy_finish_initialization): Rename to...
2028	(gdbpy_initialize): ...this, update comment at definition, and
2029	update call to do_finish_initialization.
2030	(python_extension_ops): Update.
2031	(do_finish_initialization): Rename to...
2032	(do_initialize): ...this, and update comment.
2033
20342021-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2035
2036	* main.c (captured_main_1): Add a call to
2037	finish_ext_lang_initialization.
2038	* top.c (gdb_init): Remove call to finish_ext_lang_initialization.
2039
20402021-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2041
2042	* guile/guile.c (gdbscm_set_backtrace): Add declaration.
2043	(gdbscm_finish_initialization): Add code moved from
2044	_initialize_guile.
2045	(_initialize_guile): Move code to gdbscm_finish_initialization.
2046	* guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
2047	_initialize_scm_arch.
2048	(_initialize_scm_arch): New function.
2049	* guile/scm-block.c (gdbscm_initialize_blocks): Move some code
2050	into _initialize_scm_block.
2051	(_initialize_scm_block): New function.
2052	* guile/scm-frame.c (gdbscm_initialize_frames): Move some code
2053	into _initialize_scm_frame.
2054	(_initialize_scm_frame): New function.
2055	* guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
2056	into _initialize_scm_objfile.
2057	(_initialize_scm_objfile): New function.
2058	* guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
2059	code into _initialize_scm_progspace.
2060	(_initialize_scm_progspace): New function.
2061	* guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
2062	into _initialize_scm_symbol.
2063	(_initialize_scm_symbol): New function.
2064	* guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
2065	into _initialize_scm_symtab.
2066	(_initialize_scm_symtab): New function.
2067	* guile/scm-type.c (gdbscm_initialize_types): Move some code into
2068	_initialize_scm_type.
2069	(_initialize_scm_type): New function.
2070
20712021-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2072
2073	* python/py-arch.c (_initialize_py_arch): New function.
2074	(gdbpy_initialize_arch): Move code to _initialize_py_arch.
2075	* python/py-block.c (_initialize_py_block): New function.
2076	(gdbpy_initialize_blocks): Move code to _initialize_py_block.
2077	* python/py-inferior.c (_initialize_py_inferior): New function.
2078	(gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
2079	* python/py-objfile.c (_initialize_py_objfile): New function.
2080	(gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
2081	* python/py-progspace.c (_initialize_py_progspace): New function.
2082	(gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
2083	* python/py-registers.c (_initialize_py_registers): New function.
2084	(gdbpy_initialize_registers): Move code to
2085	_initialize_py_registers.
2086	* python/py-symbol.c (_initialize_py_symbol): New function.
2087	(gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
2088	* python/py-symtab.c (_initialize_py_symtab): New function.
2089	(gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
2090	* python/py-type.c (_initialize_py_type): New function.
2091	(gdbpy_initialize_types): Move code to _initialize_py_type.
2092	* python/py-unwind.c (_initialize_py_unwind): New function.
2093	(gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
2094	* python/python.c (_initialize_python): Move call to
2095	do_start_initialization to gdbpy_finish_initialization.
2096	(gdbpy_finish_initialization): Add call to
2097	do_start_initialization.
2098
20992021-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2100
2101	* extension.c (struct scoped_default_signal): New struct.
2102	(scoped_default_sigint): New typedef.
2103	(finish_ext_lang_initialization): Make use of
2104	scoped_default_sigint.
2105
21062021-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2107
2108	* main.c (captured_main_1): Don't pass argument to gdb_init.
2109	* top.c (gdb_init): Remove unused argument, and add header
2110	comment.
2111	* top.h (gdb_init): Remove argument.
2112
21132021-04-27  Luis Machado  <luis.machado@linaro.org>
2114
2115	* psymtab.c (psymbol_functions::dump): Output newline.
2116	Remove wrap.
2117	* symmisc.c (dump_objfile): Likewise.
2118
21192021-04-27  Michael Weghorn  <m.weghorn@posteo.de>
2120	    Simon Marchi  <simon.marchi@polymtl.ca>
2121
2122	* gdb/auto-load.c (_initialize_auto_load): 'Specify token
2123	when attaching the 'auto_load_new_objfile' observer, so
2124	other observers can specify it as a dependency.
2125	* gdb/auto-load.h (struct token): Declare
2126	'auto_load_new_objfile_observer_token' as token to be used
2127	for the 'auto_load_new_objfile' observer.
2128	* gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
2129	'python_new_objfile' observer depend on 'auto_load_new_objfile'
2130	observer, so it gets notified after the latter.
2131
21322021-04-27  Michael Weghorn  <m.weghorn@posteo.de>
2133	    Simon Marchi  <simon.marchi@polymtl.ca>
2134
2135	* unittests/observable-selftests.c (dependency_test_counters):
2136	New.
2137	(observer_token0, observer_token1, observer_token2,
2138	observer_token3, observer_token4, observer_token5): New.
2139	(struct dependency_observer_data): New struct.
2140	(observer_dependency_test_callback): New function.
2141	(test_observers): New.
2142	(run_dependency_test): New function.
2143	(test_dependency): New.
2144	(_initialize_observer_selftest): Register dependency test.
2145
21462021-04-26  Simon Marchi  <simon.marchi@polymtl.ca>
2147
2148	PR gdb/27773
2149	* cli/cli-dump.c (dump_binary_file): Check result of
2150	gdb_fopen_cloexec.
2151
21522021-04-25  Sergei Trofimovich  <siarheit@google.com>
2153
2154	* sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
2155	by passing `process_stratum_target*` parameter.
2156
21572021-04-25  Lancelot Six  <lsix@lancelotsix.com>
2158
2159	PR gdb/22640
2160	* typeprint.h (struct type_print_options): Add print_in_hex
2161	flag.
2162	(struct print_offset_data): Add print_in_hex flag, add a
2163	constructor accepting a type_print_options* argument.
2164	* typeprint.c (type_print_raw_options, default_ptype_flags): Set
2165	default value for print_in_hex.
2166	(print_offset_data::indentation): Allow more horizontal space.
2167	(print_offset_data::print_offset_data): Add ctor.
2168	(print_offset_data::maybe_print_hole, print_offset_data::update):
2169	Handle the print_in_hex flag.
2170	(whatis_exp): Handle 'x' and 'd' flags.
2171	(print_offsets_and_sizes_in_hex): Declare.
2172	(set_print_offsets_and_sizes_in_hex): Create.
2173	(show_print_offsets_and_sizes_in_hex): Create.
2174	(_initialize_typeprint): Update help message for the ptype
2175	command, register the 'set print type hex' and 'show print type
2176	hex' commands.
2177	* c-typeprint.c (c_print_type, c_type_print_base_struct_union)
2178	(c_type_print_base): Construct the print_offset_data
2179	object using the type_print_optons parameter.
2180	* rust-lang.c (rust_language::print_type): Construct the
2181	print_offset_data object using the type_print_optons parameter.
2182	* NEWS: Mention the new flags of the ptype command.
2183
21842021-04-25  Lancelot Six  <lsix@lancelotsix.com>
2185
2186	* typeprint.h (struct type_print_options): Move before
2187	print_offset_data.
2188
21892021-04-25  Joel Brobecker  <brobecker@adacore.com>
2190
2191	GDB 10.2 released.
2192
21932021-04-23  Simon Marchi  <simon.marchi@polymtl.ca>
2194
2195	* observable.c (observer_debug): Change to bool.
2196
21972021-04-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2198
2199	* dwarf2/read.c: Add 'unordered_set' include.
2200	(dwarf2_base_index_functions::map_symbol_filenames): Replace
2201	'visited' hash table with 'qfn_cache' unordered_set.  Remove use
2202	of per_Bfd->filenames_cache cache, and use function local
2203	filenames_cache instead.  Reindent.
2204	* dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
2205
22062021-04-22  Simon Marchi  <simon.marchi@polymtl.ca>
2207
2208	* breakpoint.c (iterate_over_bp_locations): Change callback to
2209	function view, remove data parameter.
2210	* breakpoint.h (iterate_over_bp_locations): Likewise.
2211	* record-full.c (record_full_sync_record_breakpoints): Remove
2212	data parameter.
2213
22142021-04-22  Tom Tromey  <tom@tromey.com>
2215
2216	* c-typeprint.c (c_type_print_base_struct_union): Use
2217	print_spaces_filtered_with_print_options.
2218
22192021-04-22  Simon Marchi  <simon.marchi@polymtl.ca>
2220
2221	PR gdb/27757
2222	* python/py-type.c (typy_range): Check that bounds are constant
2223	before accessing them as such.
2224	* guile/scm-type.c (gdbscm_type_range): Likewise.
2225
22262021-04-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2227
2228	* Makefile.in (COMMON_SFILES): Remove continuations.c.
2229	* inferior.c (inferior::add_continuation): New method, adapted
2230	from 'add_inferior_continuation'.
2231	(inferior::do_all_continuations): New method, adapted from
2232	'do_all_inferior_continuations'.
2233	(inferior::~inferior): Clear the list of continuations directly.
2234	* inferior.h (class inferior) <continuations>: Rename into...
2235	<m_continuations>: ...this and make private.
2236	* continuations.c: Remove.
2237	* continuations.h: Remove.
2238	* event-top.c: Don't include "continuations.h".
2239
2240	Update the users below.
2241	* inf-loop.c (inferior_event_handler)
2242	* infcmd.c (attach_command)
2243	(notice_new_inferior): Update.
2244
22452021-04-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2246
2247	* inferior.h (class inferior) <continuations>: Change the type
2248	to be an std::list of std::function's.
2249	Update the references and uses below.
2250	* continuations.c (struct continuation): Delete.
2251	(make_continuation): Delete.
2252	(do_my_continuations_1): Delete.
2253	(do_my_continuations): Delete.
2254	(discard_my_continuations_1): Delete.
2255	(discard_my_continuations): Delete.
2256	(add_inferior_continuation): Update.
2257	(do_all_inferior_continuations): Update.
2258	(discard_all_inferior_continuations): Update.
2259	* continuations.h (add_inferior_continuation): Update to take
2260	an std::function as the parameter.
2261	* infcmd.c (struct attach_command_continuation_args): Delete.
2262	(attach_command_continuation): Delete.
2263	(attach_command_continuation_free_args): Delete.
2264	(attach_command): Update.
2265	(notice_new_inferior): Update.
2266
22672021-04-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2268
2269	* continuations.h: Update the general comment.
2270	* inferior.h (class inferior) <continuations>: Update the comment.
2271	* interps.c: Do not include "continuations.h".
2272
22732021-04-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2274
2275	* continuations.h (do_all_inferior_continuations): Remove the 'err'
2276	parameter.  Update the references below.
2277	* continuations.c (do_my_continuations_1)
2278	(do_my_continuations)
2279	(do_all_inferior_continuations): Update.
2280	* inf-loop.c (inferior_event_handler): Update.
2281	* infcmd.c (attach_command_continuation): Update.
2282
22832021-04-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2284
2285	* infcmd.c (attach_post_wait): Update the function comment.
2286
22872021-04-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2288
2289	* infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
2290	Update the references below.
2291	(struct attach_command_continuation_args)
2292	(attach_command_continuation)
2293	(attach_command_continuation_free_args)
2294	(attach_command)
2295	(notice_new_inferior): Update to remove the reference to 'args'.
2296
22972021-04-22  Simon Marchi  <simon.marchi@polymtl.ca>
2298	    Tom de Vries  <tdevries@suse.de>
2299
2300	PR remote/27710
2301	* remote.c (remote_target_is_non_stop_p): New function.
2302	* remote.h (remote_target_is_non_stop_p): Declare.
2303	* remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2304	to check non-stopness using notif_state->remote rather current target.
2305
23062021-04-22  Tom Tromey  <tom@tromey.com>
2307
2308	* rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2309	(struct typed_val_int) <val>: Now ULONGEST.
2310	(rust_parser::parse_array_type): Remove negative check.
2311	(rust_lex_int_test): Change 'value' to ULONGEST.
2312
23132021-04-22  Andrew Burgess  <andrew.burgess@embecosm.com>
2314
2315	* arch-utils.c (default_addressable_memory_unit_size): Return a
2316	value based on bfd's bits per byte.
2317
23182021-04-21  Tom Tromey  <tom@tromey.com>
2319
2320	* dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2321	unsigned char.
2322	(struct dwarf2_per_cu_data): Rearrange.
2323	* dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2324	unsigned char.
2325	(struct comp_unit_head): Rearrange.
2326	* dwarf2/comp-unit.c (read_comp_unit_head): Update.
2327
23282021-04-21  Tom de Vries  <tdevries@suse.de>
2329
2330	PR build/27681
2331	* configure.ac: Remove --without-included-regex/--with-included-regex.
2332	* config.in: Regenerate.
2333	* configure: Regenerate.
2334	* gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2335
23362021-04-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2337
2338	* breakpoint.h (create_breakpoint): Add a new parameter,
2339	'force_condition'.
2340	* breakpoint.c (create_breakpoint): Use the 'force_condition'
2341	argument when 'parse_extra' is false to check if the condition
2342	is invalid at all of the breakpoint locations.
2343	Update the users below.
2344	(break_command_1)
2345	(dprintf_command)
2346	(trace_command)
2347	(ftrace_command)
2348	(strace_command)
2349	(create_tracepoint_from_upload): Update.
2350	* guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2351	* mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2352	* python/py-breakpoint.c (bppy_init): Update.
2353	* python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2354
23552021-04-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2356
2357	* breakpoint.c (print_one_breakpoint_location): Display "N" for
2358	disabled-by-condition locations on MI-like output.
2359	(breakpoint_1): Do not display the disabled-by-condition footnote
2360	if the output is MI-like.
2361
23622021-04-21  Frederic Cambus  <fred@statdns.com>
2363
2364	* syscalls/update-netbsd.sh: Fix script name display in usage, and
2365	update year range in generated copyright notices.
2366
23672021-04-20  Felix Willgerodt  <felix.willgerodt@intel.com>
2368
2369	* c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2370	qualifier_seq_noopt.
2371
23722021-04-20  Felix Willgerodt  <felix.willgerodt@intel.com>
2373
2374	* c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2375
23762021-04-19  Andrew Burgess  <andrew.burgess@embecosm.com>
2377
2378	* producer.c: Replace 'regex' include with 'gdb_regex.h'.
2379	(producer_is_icc): Replace use of std::regex with gdb's
2380	compiled_regex.
2381
23822021-04-17  Tom Tromey  <tom@tromey.com>
2383
2384	PR gdb/23743:
2385	* dwarf2/read.c (class offset_view): New.
2386	(struct symbol_table_slot): Remove.
2387	(struct mapped_index) <symbol_table, constant_pool>: Change type.
2388	<symbol_name_index, symbol_vec_index>: New methods.
2389	<symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2390	Rewrite.
2391	(read_gdb_index_from_buffer): Update.
2392	(struct dw2_symtab_iterator) <vec>: Change type.
2393	(dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2394	(dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2395	* dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2396	<append_array, append_offset>: New methods.
2397	(write_hash_table, add_address_entry, write_gdbindex_1)
2398	(write_debug_names): Update.
2399	* dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2400
24012021-04-17  Tom Tromey  <tom@tromey.com>
2402
2403	* dwarf2/index-write.c (write_psymtabs_to_index): Check
2404	partial_symtabs.
2405
24062021-04-17  Tom Tromey  <tom@tromey.com>
2407
2408	* psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2409	from map_matching_symbols.  Change parameters.
2410	* psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2411	Rename from map_matching_symbols.  Change parameters.
2412	* dwarf2/read.c (struct dwarf2_gdb_index)
2413	<expand_matching_symbols>: Rename from map_matching_symbols.
2414	Change parameters.
2415	(struct dwarf2_debug_names_index) <expand_matching_symbols>:
2416	Rename from map_matching_symbols.  Change parameters.
2417	(dwarf2_gdb_index::expand_matching_symbols): Rename from
2418	dw2_map_matching_symbols.  Change parameters.
2419	(dwarf2_gdb_index::expand_matching_symbols): Remove old
2420	implementation.
2421	(dwarf2_debug_names_index::expand_matching_symbols): Rename from
2422	map_matching_symbols.  Change parameters.
2423	* objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2424	from map_matching_symbols.  Change parameters.
2425	* symfile-debug.c (objfile::expand_matching_symbols): Rename from
2426	map_matching_symbols.  Change parameters.
2427	* ada-lang.c (map_matching_symbols): New function.
2428	(add_nonlocal_symbols): Update.
2429
24302021-04-17  Tom Tromey  <tom@tromey.com>
2431
2432	* quick-symbol.h (struct quick_symbol_functions)
2433	<expand_symtabs_with_fullname>: Remove.
2434	* psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2435	Remove.
2436	* psympriv.h (struct psymbol_functions)
2437	<expand_symtabs_with_fullname>: Remove.
2438	* dwarf2/read.c (struct dwarf2_base_index_functions)
2439	<expand_symtabs_with_fullname>: Remove.
2440	(dwarf2_base_index_functions::expand_symtabs_with_fullname):
2441	Remove.
2442	* objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2443	Update comment.
2444	* symfile-debug.c (objfile::expand_symtabs_with_fullname):
2445	Rewrite.
2446
24472021-04-17  Tom Tromey  <tom@tromey.com>
2448
2449	* symfile-debug.c (objfile::expand_symtabs_for_function):
2450	Rewrite.
2451	* quick-symbol.h (struct quick_symbol_functions)
2452	<expand_symtabs_for_function>: Remove.
2453	* psymtab.c (psymbol_functions::expand_symtabs_for_function):
2454	Remove.
2455	* psympriv.h (struct psymbol_functions)
2456	<expand_symtabs_for_function>: Remove.
2457	* objfiles.h (struct objfile) <expand_symtabs_for_function>:
2458	Update comment.
2459	* dwarf2/read.c (struct dwarf2_gdb_index)
2460	<expand_symtabs_for_function>: Remove.
2461	(struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2462	Remove.
2463	(find_slot_in_mapped_hash): Remove.
2464	(dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2465	(dw2_symtab_iter_init): Remove one overload.
2466	(dwarf2_gdb_index::expand_symtabs_for_function)
2467	(dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2468
24692021-04-17  Tom Tromey  <tom@tromey.com>
2470
2471	* symfile-debug.c (objfile::map_symtabs_matching_filename):
2472	Rewrite.
2473	* quick-symbol.h (struct quick_symbol_functions)
2474	<map_symtabs_matching_filename>: Remove.
2475	* psymtab.c (partial_map_expand_apply)
2476	(psymbol_functions::map_symtabs_matching_filename): Remove.
2477	* psympriv.h (struct psymbol_functions)
2478	<map_symtabs_matching_filename>: Remove.
2479	* objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2480	Update comment.
2481	* dwarf2/read.c (struct dwarf2_base_index_functions)
2482	<map_symtabs_matching_filename>: Remove.
2483	(dw2_map_expand_apply)
2484	(dwarf2_base_index_functions::map_symtabs_matching_filename):
2485	Remove.
2486
24872021-04-17  Tom Tromey  <tom@tromey.com>
2488
2489	* symfile-debug.c (objfile::lookup_symbol): Rewrite.
2490	* quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2491	Remove.
2492	* psymtab.c (psymbol_functions::lookup_symbol): Remove.
2493	* psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2494	* objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2495	* dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2496	Remove.
2497	(struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2498	(dwarf2_gdb_index::lookup_symbol)
2499	(dwarf2_debug_names_index::lookup_symbol): Remove.
2500
25012021-04-17  Tom Tromey  <tom@tromey.com>
2502
2503	* symtab.c (global_symbol_searcher::expand_symtabs): Update.
2504	* symmisc.c (maintenance_expand_symtabs): Update.
2505	* symfile.c (expand_symtabs_matching): Update.
2506	* symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2507	parameter.
2508	* quick-symbol.h (struct quick_symbol_functions)
2509	<expand_symtabs_matching>: Add 'domain' parameter.
2510	* psymtab.c (recursively_search_psymtabs)
2511	(psymbol_functions::expand_symtabs_matching): Add 'domain'
2512	parameter.
2513	* psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2514	Add 'domain' parameter.
2515	* objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2516	'domain' parameter.
2517	* linespec.c (iterate_over_all_matching_symtabs): Update.
2518	* dwarf2/read.c (struct dwarf2_gdb_index)
2519	<expand_symtabs_matching>: Add 'domain' parameter.
2520	(struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2521	'domain' parameter.
2522	(dw2_expand_symtabs_matching)
2523	(dwarf2_gdb_index::expand_symtabs_matching)
2524	(dw2_debug_names_iterator)
2525	(dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2526	parameter.
2527
25282021-04-17  Tom Tromey  <tom@tromey.com>
2529
2530	* symtab.c (global_symbol_searcher::expand_symtabs)
2531	(default_collect_symbol_completion_matches_break_on): Update.
2532	* symmisc.c (maintenance_expand_symtabs): Update.
2533	* symfile.h (expand_symtabs_matching): Add search_flags
2534	parameter.
2535	* symfile.c (expand_symtabs_matching): Add search_flags
2536	parameter.
2537	* symfile-debug.c (objfile::expand_symtabs_matching): Add
2538	search_flags parameter.
2539	* quick-symbol.h (struct quick_symbol_functions)
2540	<expand_symtabs_matching>: Add search_flags parameter.
2541	* python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2542	* psymtab.c (recursively_search_psymtabs)
2543	(psymbol_functions::expand_symtabs_matching): Add search_flags
2544	parameter.
2545	* psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2546	Add search_flags parameter.
2547	* objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2548	search_flags parameter.
2549	* linespec.c (iterate_over_all_matching_symtabs): Update.
2550	* dwarf2/read.c (struct dwarf2_gdb_index)
2551	<expand_symtabs_matching>: Add search_flags parameter.
2552	(struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2553	search_flags parameter.
2554	(dw2_map_matching_symbols): Update.
2555	(dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2556	(dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2557	parameter.
2558	(dw2_debug_names_iterator): Change block_index to search flags.
2559	<m_block_index>: Likewise.
2560	(dw2_debug_names_iterator::next)
2561	(dwarf2_debug_names_index::lookup_symbol)
2562	(dwarf2_debug_names_index::expand_symtabs_for_function)
2563	(dwarf2_debug_names_index::map_matching_symbols)
2564	(dwarf2_debug_names_index::map_matching_symbols): Update.
2565	(dwarf2_debug_names_index::expand_symtabs_matching): Add
2566	search_flags parameter.
2567	* ada-lang.c (ada_add_global_exceptions)
2568	(collect_symbol_completion_matches): Update.
2569
25702021-04-17  Tom Tromey  <tom@tromey.com>
2571
2572	* symtab.c (default_collect_symbol_completion_matches_break_on):
2573	Update.
2574	* symfile.h (expand_symtabs_matching): Return bool.
2575	* symfile.c (expand_symtabs_matching): Return bool.
2576	* symfile-debug.c (objfile::expand_symtabs_matching): Return
2577	bool.
2578	* quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2579	(struct quick_symbol_functions) <expand_symtabs_matching>: Return
2580	bool.
2581	* psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2582	bool.
2583	* psympriv.h (struct psymbol_functions)
2584	<expand_symtabs_matching>: Return bool.
2585	* objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2586	bool.
2587	* dwarf2/read.c (struct dwarf2_gdb_index)
2588	<expand_symtabs_matching>: Return bool.
2589	(struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2590	Return bool.
2591	(dw2_expand_symtabs_matching_symbol): Return bool.
2592	(dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2593	(dw2_expand_symtabs_matching)
2594	(dwarf2_gdb_index::expand_symtabs_matching)
2595	(dwarf2_debug_names_index::expand_symtabs_matching)
2596	(dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2597
25982021-04-17  Tom Tromey  <tom@tromey.com>
2599
2600	* quick-symbol.h (enum block_search_flag_values): New.
2601	(block_search_flags): New enum flags type.
2602
26032021-04-16  Tom Tromey  <tom@tromey.com>
2604
2605	* rust-parse.c: New file.
2606	* rust-exp.y: Remove.
2607	* Makefile.in (COMMON_SFILES): Add rust-parse.c.
2608	(SFILES): Remove rust-exp.y.
2609	(YYFILES, local-maintainer-clean): Remove rust-exp.c.
2610
26112021-04-16  Luis Machado  <luis.machado@linaro.org>
2612
2613	* arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2614
26152021-04-15  John Baldwin  <jhb@FreeBSD.org>
2616
2617	* fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2618	use throughout file.
2619
26202021-04-15  Tom Tromey  <tromey@adacore.com>
2621
2622	* ada-valprint.c (ada_value_print_array): Handle optimized-out
2623	arrays.
2624
26252021-04-15  Tom Tromey  <tromey@adacore.com>
2626
2627	* printcmd.c (print_variable_and_value): Use
2628	common_val_print_checked.
2629
26302021-04-15  Tom Tromey  <tromey@adacore.com>
2631
2632	* rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2633	* parse.c (parser_state::push_symbol, parser_state::push_dollar):
2634	Update.
2635	* p-exp.y (variable): Update.
2636	* m2-exp.y (variable): Update.
2637	* go-exp.y (variable): Update.
2638	* expprint.c (dump_for_expression): New overload.
2639	* expop.h (check_objfile): New overload.
2640	(check_constant): New overload.
2641	(class var_value_operation): Use block_symbol.
2642	<get_symbol>: Rewrite.
2643	* eval.c (var_value_operation::evaluate)
2644	(var_value_operation::evaluate_funcall)
2645	(var_value_operation::evaluate_for_address)
2646	(var_value_operation::evaluate_for_address)
2647	(var_value_operation::evaluate_with_coercion)
2648	(var_value_operation::evaluate_for_sizeof)
2649	(var_value_operation::evaluate_for_cast): Update.
2650	* d-exp.y (PrimaryExpression): Update.
2651	* c-exp.y (variable): Update.
2652	* ax-gdb.c (var_value_operation::do_generate_ax): Update.
2653	* ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2654	(ada_var_value_operation::evaluate)
2655	(ada_var_value_operation::resolve)
2656	(ada_funcall_operation::resolve): Update.
2657	* ada-exp.y (write_var_from_sym, write_object_renaming)
2658	(write_ambiguous_var, write_var_or_type, write_name_assoc)
2659	(maybe_overload): Update.
2660	* ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2661
26622021-04-15  Tom Tromey  <tom@tromey.com>
2663	    Andrew Burgess  <andrew.burgess@embecosm.com>
2664
2665	* NEWS: Add entry.
2666	* main.c (captured_main_1): Call check_quiet_mode.
2667	* top.c (startup_quiet): New global.
2668	(check_quiet_mode): New function.
2669	(show_startup_quiet): New function.
2670	(init_main): Register new command.
2671	* top.h (check_quiet_mode): Declare.
2672
26732021-04-15  Andrew Burgess  <andrew.burgess@embecosm.com>
2674
2675	PR cli/25956
2676	* NEWS: Mention new early init files and command line options.
2677	* config.in: Regenerate.
2678	* configure: Regenerate.
2679	* configure.ac: Define GDBEARLYINIT.
2680	* main.c (get_earlyinit_files): New function.
2681	(enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2682	CMDARG_EARLYINIT_COMMAND.
2683	(captured_main_1): Add support for new command line flags, and for
2684	processing startup files.
2685	(print_gdb_help): Include startup files in the output.
2686
26872021-04-15  Andrew Burgess  <andrew.burgess@embecosm.com>
2688
2689	* main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2690	(relocate_file_path_maybe_in_datadir): ...this.
2691	(class gdb_initfile_finder): New class.
2692	(get_init_files): Now uses gdb_initfile_finder.
2693	(print_gdb_help): Print 'None found' when there are no init files.
2694
26952021-04-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2696
2697	* dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2698	corresponding child of the abstract DIE when iterating the
2699	children of the concrete DIE.
2700
27012021-04-13  Tom de Vries  <tdevries@suse.de>
2702
2703	* ui-style.c (read_semi_number, extended_color): Change idx parameter
2704	type to regoff_t *.
2705
27062021-04-13  Luis Machado  <luis.machado@linaro.org>
2707
2708	* rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2709	hex values.
2710
27112021-04-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2712
2713	* rs6000-tdep.c:  Add support for single-stepping of
2714	prefixed instructions.
2715
27162021-04-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
2717
2718	PR gdb/27525
2719	* gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2720	handle the addpcis/lnia instruction.
2721
27222021-04-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
2723
2724	* MAINTAINERS (Write After Approval): Add myself.
2725
27262021-4-12  Carl Love  <cel@us.ibm.com>
2727
2728	* rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2729	(rs6000_builtin_type_vec128): Add append_composite_type_field for
2730	float128.
2731
27322021-04-12  Simon Marchi  <simon.marchi@polymtl.ca>
2733
2734	* nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2735	* nat/windows-nat.h: Likewise.
2736
27372021-04-10  Eli Zaretskii  <eliz@gnu.org>
2738
2739	* windows-nat.c (windows_nat::handle_load_dll): Call
2740	windows_add_dll if get_image_name failed to glean the name of the
2741	DLL by using the lpImageName pointer.
2742	(windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2743	(windows_add_dll): Now does what windows_add_all_dlls did before,
2744	but also accepts an argument LOAD_ADDR, which, if non-NULL,
2745	specifies the address where the DLL was loaded into the inferior,
2746	and looks for the single DLL loaded at that address.
2747
27482021-04-09  Luis Machado  <luis.machado@linaro.org>
2749
2750	* nat/aarch64-mte-linux-ptrace.c: Update include file order.
2751
27522021-04-08  Dominique Quatravaux  <dominique.quatravaux@epfl.ch>
2753
2754	* darwin-nat.c (darwin_nat_target::resume): Remove status
2755	variable.
2756
27572021-04-08  Felix Willgerodt  <felix.willgerodt@intel.com>
2758
2759	* i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2760	prologue end for Intel compilers.
2761	* amd64-tdep.c (amd64_skip_prologue): Likewise.
2762	* producer.c (producer_is_icc_ge_19): New function.
2763	* producer.h (producer_is_icc_ge_19): New declaration.
2764
27652021-04-08  Felix Willgerodt  <felix.willgerodt@intel.com>
2766
2767	* producer.c: (producer_is_icc): Update for new version scheme.
2768	(producer_parsing_tests): Update names and expected results.
2769	* producer.h: (producer_is_icc): Update comment accordingly.
2770
27712021-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
2772
2773	* target.h (struct target_ops) <follow_fork>: Return void.
2774	(target_follow_fork): Likewise.
2775	* target.c (default_follow_fork): Likewise.
2776	(target_follow_fork): Likewise.
2777	* infrun.c (follow_fork_inferior): Adjust.
2778	* fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2779	* fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2780	* linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2781	* linux-nat.c (linux_nat_target::follow_fork): Return void.
2782	* obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2783	* obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2784	* remote.c (class remote_target) <follow_fork>: Likewise.
2785	(remote_target::follow_fork): Likewise.
2786	* target-delegates.c: Re-generate.
2787
27882021-04-07  Weimin Pan  <weimin.pan@oracle.com>
2789
2790	* ctfread.c (fetch_tid_type): New function, use throughout file.
2791	(read_forward_type): New function.
2792	(read_type_record): Call read_forward_type.
2793
27942021-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2795
2796	* f-exp.h (class fortran_structop_operation): New class.
2797	* f-exp.y (exp): Create fortran_structop_operation instead of the
2798	generic structop_operation.
2799	* f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2800	expression as EVAL_NORMAL if the result type was dynamic so we can
2801	extract the actual array bounds.
2802	(fortran_structop_operation::evaluate): New function.
2803
28042021-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2805
2806	* eval.c (evaluate_subexp_standard): Remove
2807	EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2808	STRUCTOP_PTR.
2809
28102021-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2811
2812	* valops.c (value_cast): Call value_deeply_equal before performing
2813	any cast.
2814
28152021-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2816
2817	* gdbtypes.c (types_equal): Move pointer equality check earlier in
2818	the function.
2819
28202021-04-07  Caroline Tice  <cmtice@google.com>
2821
2822	* dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2823	the search paths used resolve relative location of .dwo file.
2824
28252021-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2826
2827	* dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2828	assert.
2829	(dwarf2_section_info::get_file_name): Add an assert.
2830	(dwarf2_section_info::read_string): Display a minimal, sane error
2831	when the dwarf2_section_info is not associated with a bfd section.
2832
28332021-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2834
2835	* top.c (staged_gdb_datadir): Update comment.
2836	(set_gdb_datadir): Copy the value of gdb_datadir back into
2837	staged_datadir.
2838	(init_main): Initialise staged_gdb_datadir.
2839
28402021-04-06  Tom de Vries  <tdevries@suse.de>
2841
2842	PR breakpoints/25884
2843	* infcmd.c (prepare_one_step): Using inline frame info to narrow
2844	stepping range.
2845
28462021-04-06  Tom de Vries  <tdevries@suse.de>
2847
2848	PR tui/27680
2849	* tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2850	to style.parse.
2851
28522021-04-04  Simon Marchi  <simon.marchi@polymtl.ca>
2853
2854	* avr-tdep.c (avr_frame_unwind_cache): Use
2855	trad_frame_saved_reg::is_addr.
2856
28572021-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
2858
2859	* objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2860	adjust callers.
2861
28622021-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
2863
2864	* psympriv.h (struct partial_symtab) <partial_symtab>: Change
2865	objfile parameter for objfile_per_bfd_storage, adjust callers.
2866	(struct standard_psymtab) <standard_psymtab>: Likewise.
2867	(struct legacy_psymtab) <legacy_psymtab>: Likewise.
2868	* psymtab.c (partial_symtab::partial_symtab): Likewise.
2869	* ctfread.c (struct ctf_psymtab): Likewise.
2870	* dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2871	* dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2872	(dwarf2_create_include_psymtab): Likewise.
2873	* objfiles.h (struct objfile_per_bfd_storage)
2874	<objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2875	<get_bfd>: New method.
2876	<m_bfd>: New field.
2877	* objfiles.c (get_objfile_bfd_data): Adjust.
2878
28792021-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
2880
2881	* psymtab.c (partial_symtab::partial_symtab): Change
2882	last_objfile_name to be an std::string.
2883	* symfile.c (allocate_symtab): Likewise.
2884
28852021-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
2886
2887	* objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2888	methods.
2889	(struct objfile) <intern>: Use
2890	objfile::objfile_per_bfd_storage::intern.
2891
28922021-04-01  Simon Marchi  <simon.marchi@efficios.com>
2893
2894	* gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2895	with type::is_flag_enum.
2896
28972021-04-01  Simon Marchi  <simon.marchi@efficios.com>
2898
2899	* gdbtypes.h (struct type) <is_flag_enum,
2900	set_is_flag_enum>: New methods.
2901	(TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2902	write call sites to use type::set_is_flag_enum.
2903
29042021-04-01  Simon Marchi  <simon.marchi@efficios.com>
2905
2906	* gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2907	with type::is_declared_class.
2908
29092021-04-01  Simon Marchi  <simon.marchi@efficios.com>
2910
2911	* gdbtypes.h (struct type) <is_declared_class,
2912	set_is_declared_class>: New methods.
2913	(TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2914	write call sites to use type::set_is_declared_class.
2915
29162021-02-28  Boris Staletic  <boris.staletic@gmail.com>
2917
2918	* gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2919	to avoid deprecation warnings.
2920
29212021-04-01  Martin Liska  <mliska@suse.cz>
2922
2923	* cp-name-parser.y: Use startswith instead of strncmp.
2924	* m2-exp.y: Likewise.
2925	* macroexp.c (substitute_args): Likewise.
2926	* mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2927	* rust-exp.y: Likewise.
2928
29292021-03-31  Tom Tromey  <tom@tromey.com>
2930
2931	* dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2932	with dw2_map_matching_symbols.
2933	(dwarf2_gdb_index::expand_symtabs_matching): Merge with
2934	dw2_expand_symtabs_matching.
2935
29362021-03-31  Tom Tromey  <tromey@adacore.com>
2937
2938	* dwarf2/stringify.h: Fix typo.
2939
29402021-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
2941
2942	PR gdb/27541
2943	* dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2944	with objfiles using READNOW.
2945
29462021-03-29  Tom Tromey  <tromey@adacore.com>
2947
2948	* top.c (check_frame_language_change): Update.
2949	* language.c (language_info): Remove parameter.
2950	* language.h (language_info): Remove parameter.
2951
29522021-03-29  Luis Machado  <luis.machado@linaro.org>
2953
2954	* compile/compile.c (get_args): Don't add empty argv entries.
2955
29562021-03-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2957
2958	gdb:
2959	* procfs.c (procfs_target::attach): Define inf.
2960	Use it.
2961	(procfs_target::create_inferior): Likewise.
2962
29632021-03-28  Tom Tromey  <tom@tromey.com>
2964
2965	* elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2966	(elf_symfile_read): Simplify.
2967	* dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2968	(make_lazy_dwarf_reader): New function.
2969	(make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2970	(dwarf2_initialize_objfile): Return void.  Remove index_kind
2971	parameter.  Push on 'qf' list.
2972	* dwarf2/public.h (dwarf2_initialize_objfile): Change return
2973	type.  Remove 'index_kind' parameter.
2974	(make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2975
29762021-03-27  Tom Tromey  <tom@tromey.com>
2977
2978	* elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2979
29802021-03-27  Tom Tromey  <tom@tromey.com>
2981
2982	* elfread.c (elf_symfile_read): Don't clear 'qf'.
2983
29842021-03-26  Lancelot Six  <lsix@lancelotsix.com>
2985
2986	* contrib/gdb-add-index.sh: Avoid variable shadowing and get
2987	rid of 'local'.
2988
29892021-03-26  Tom Tromey  <tom@tromey.com>
2990
2991	* symtab.c (struct output_source_filename_data): Add 'output'
2992	method and operator().
2993	(output_source_filename_data::output): Rename from
2994	output_source_filename.
2995	(output_partial_symbol_filename): Remove.
2996	(info_sources_command): Update.
2997	(struct add_partial_filename_data): Add operator().
2998	(add_partial_filename_data::operator()): Rename from
2999	maybe_add_partial_symtab_filename.
3000	(make_source_files_completion_list): Update.
3001	* symfile.c (quick_symbol_functions): Update.
3002	* symfile-debug.c (objfile::map_symbol_filenames): Update.
3003	* quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
3004	'need_fullname'.  Remove 'data' parameter.
3005	(struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
3006	* psymtab.c (psymbol_functions::map_symbol_filenames): Update.
3007	* psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
3008	Change type of 'fun' and 'need_fullname'.  Remove 'data'
3009	parameter.
3010	* objfiles.h (struct objfile) <map_symbol_filenames>: Change type
3011	of 'fun' and 'need_fullname'.  Remove 'data' parameter.
3012	* mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
3013	parameter.
3014	(mi_cmd_file_list_exec_source_files): Update.
3015	* dwarf2/read.c
3016	(dwarf2_base_index_functions::map_symbol_filenames): Update.
3017
30182021-03-26  Tom Tromey  <tom@tromey.com>
3019
3020	* ada-lang.c (struct match_data): Add operator().
3021	(match_data::operator()): Rename from aux_add_nonlocal_symbols.
3022	(callback): Remove 'callback'.
3023
30242021-03-26  Tom Tromey  <tom@tromey.com>
3025
3026	* psymtab.c (psymbol_functions::expand_symtabs_matching): Only
3027	call make_ignore_params once.
3028
30292021-03-26  Tom Tromey  <tom@tromey.com>
3030
3031	* psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
3032	"user" check.
3033
30342021-03-26  Simon Marchi  <simon.marchi@efficios.com>
3035	    Pedro Alves  <pedro@palves.net>
3036
3037	* async-event.c: Include "infrun.h".
3038	(async_event_handler_marked): New.
3039	* async-event.h (async_event_handler_marked): Declare.
3040	* infrun.c (maybe_set_commit_resumed_all_targets): Switch to
3041	inferior before calling target method.  Don't commit-resumed if
3042	target_has_pending_events is true.
3043	* remote.c (remote_target::has_pending_events): New.
3044	* target-delegates.c: Regenerate.
3045	* target.c (target_has_pending_events): New.
3046	* target.h (target_ops::has_pending_events): New target method.
3047	(target_has_pending_events): New.
3048
30492021-03-26  Simon Marchi  <simon.marchi@efficios.com>
3050	    Pedro Alves  <pedro@palves.net>
3051
3052	* infcmd.c (run_command_1, attach_command, detach_command)
3053	(interrupt_target_1): Use scoped_disable_commit_resumed.
3054	* infrun.c (do_target_resume): Remove
3055	target_commit_resume call.
3056	(commit_resume_all_targets): Remove.
3057	(maybe_set_commit_resumed_all_targets): New.
3058	(maybe_call_commit_resumed_all_targets): New.
3059	(enable_commit_resumed): New.
3060	(scoped_disable_commit_resumed::scoped_disable_commit_resumed)
3061	(scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
3062	(scoped_disable_commit_resumed::reset)
3063	(scoped_disable_commit_resumed::reset_and_commit)
3064	(scoped_enable_commit_resumed::scoped_enable_commit_resumed)
3065	(scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
3066	New.
3067	(proceed): Use scoped_disable_commit_resumed and
3068	maybe_call_commit_resumed_all_targets.
3069	(fetch_inferior_event): Use scoped_disable_commit_resumed.
3070	* infrun.h (struct scoped_disable_commit_resumed): New.
3071	(maybe_call_commit_resumed_all_process_targets): New.
3072	(struct scoped_enable_commit_resumed): New.
3073	* mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
3074	* process-stratum-target.h (class process_stratum_target):
3075	<commit_resumed_state>: New.
3076	* record-full.c (record_full_wait_1): Change commit_resumed_state
3077	around calling commit_resumed.
3078	* remote.c (class remote_target) <commit_resume>: Rename to...
3079	<commit_resumed>: ... this.
3080	(struct stop_reply): Move up.
3081	(remote_target::commit_resume): Rename to...
3082	(remote_target::commit_resumed): ... this.  Check if there is any
3083	thread pending vCont resume.
3084	(remote_target::remote_stop_ns): Generate stop replies for resumed
3085	but pending vCont threads.
3086	(remote_target::wait_ns): Add gdb_assert.
3087	* target-delegates.c: Regenerate.
3088	* target.c (target_wait, target_resume): Assert that the current
3089	process_stratum target isn't in commit-resumed state.
3090	(defer_target_commit_resume): Remove.
3091	(target_commit_resume): Remove.
3092	(target_commit_resumed): New.
3093	(make_scoped_defer_target_commit_resume): Remove.
3094	(target_stop): Assert that the current process_stratum target
3095	isn't in commit-resumed state.
3096	* target.h (struct target_ops) <commit_resume>: Rename to ...
3097	 <commit_resumed>: ... this.
3098	(target_commit_resume): Remove.
3099	(target_commit_resumed): New.
3100	(make_scoped_defer_target_commit_resume): Remove.
3101	* top.c (wait_sync_command_done): Use
3102	scoped_enable_commit_resumed.
3103
31042021-03-26  Pedro Alves  <pedro@palves.net>
3105
3106	* target.c (target_always_non_stop_p): Also check whether the
3107	target can async.
3108
31092021-03-26  Tom Tromey  <tom@tromey.com>
3110
3111	* dwarf2/read.c (dwarf2_read_debug_names)
3112	(dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
3113	(dw2_debug_names_iterator::next, create_type_unit_group):
3114	Simplify.
3115
31162021-03-25  Pedro Alves  <pedro@palves.net>
3117
3118	* gdb.server/bkpt-other-inferior.exp: Only enable remote output
3119	around setting the breakpoint.
3120
31212021-03-25  Pedro Alves  <pedro@palves.net>
3122
3123	* remote.c
3124	(remote_target::check_pending_events_prevent_wildcard_vcont):
3125	Check whether the event's ptid is not null_ptid before looking up
3126	the corresponding inferior.
3127
31282021-03-24  Changbin Du  <changbin.du@gmail.com>
3129
3130	* riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
3131	read_code.
3132
31332021-03-24  Simon Marchi  <simon.marchi@polymtl.ca>
3134
3135	* target.h (current_top_target): Remove, make callers use the
3136	current inferior instead.
3137	* target.c (current_top_target): Remove.
3138
31392021-03-24  Simon Marchi  <simon.marchi@polymtl.ca>
3140
3141	* target.h (target_shortname): Change to function declaration.
3142	(target_longname): Likewise.
3143	(target_attach_no_wait): Likewise.
3144	(target_post_attach): Likewise.
3145	(target_prepare_to_store): Likewise.
3146	(target_supports_enable_disable_tracepoint): Likewise.
3147	(target_supports_string_tracing): Likewise.
3148	(target_supports_evaluation_of_breakpoint_conditions): Likewise.
3149	(target_supports_dumpcore): Likewise.
3150	(target_dumpcore): Likewise.
3151	(target_can_run_breakpoint_commands): Likewise.
3152	(target_files_info): Likewise.
3153	(target_post_startup_inferior): Likewise.
3154	(target_insert_fork_catchpoint): Likewise.
3155	(target_remove_fork_catchpoint): Likewise.
3156	(target_insert_vfork_catchpoint): Likewise.
3157	(target_remove_vfork_catchpoint): Likewise.
3158	(target_insert_exec_catchpoint): Likewise.
3159	(target_remove_exec_catchpoint): Likewise.
3160	(target_set_syscall_catchpoint): Likewise.
3161	(target_rcmd): Likewise.
3162	(target_can_lock_scheduler): Likewise.
3163	(target_can_async_p): Likewise.
3164	(target_is_async_p): Likewise.
3165	(target_execution_direction): Likewise.
3166	(target_extra_thread_info): Likewise.
3167	(target_pid_to_exec_file): Likewise.
3168	(target_thread_architecture): Likewise.
3169	(target_find_memory_regions): Likewise.
3170	(target_make_corefile_notes): Likewise.
3171	(target_get_bookmark): Likewise.
3172	(target_goto_bookmark): Likewise.
3173	(target_stopped_by_watchpoint): Likewise.
3174	(target_stopped_by_sw_breakpoint): Likewise.
3175	(target_supports_stopped_by_sw_breakpoint): Likewise.
3176	(target_stopped_by_hw_breakpoint): Likewise.
3177	(target_supports_stopped_by_hw_breakpoint): Likewise.
3178	(target_have_steppable_watchpoint): Likewise.
3179	(target_can_use_hardware_watchpoint): Likewise.
3180	(target_region_ok_for_hw_watchpoint): Likewise.
3181	(target_can_do_single_step): Likewise.
3182	(target_insert_watchpoint): Likewise.
3183	(target_remove_watchpoint): Likewise.
3184	(target_insert_hw_breakpoint): Likewise.
3185	(target_remove_hw_breakpoint): Likewise.
3186	(target_can_accel_watchpoint_condition): Likewise.
3187	(target_can_execute_reverse): Likewise.
3188	(target_get_ada_task_ptid): Likewise.
3189	(target_filesystem_is_local): Likewise.
3190	(target_trace_init): Likewise.
3191	(target_download_tracepoint): Likewise.
3192	(target_can_download_tracepoint): Likewise.
3193	(target_download_trace_state_variable): Likewise.
3194	(target_enable_tracepoint): Likewise.
3195	(target_disable_tracepoint): Likewise.
3196	(target_trace_start): Likewise.
3197	(target_trace_set_readonly_regions): Likewise.
3198	(target_get_trace_status): Likewise.
3199	(target_get_tracepoint_status): Likewise.
3200	(target_trace_stop): Likewise.
3201	(target_trace_find): Likewise.
3202	(target_get_trace_state_variable_value): Likewise.
3203	(target_save_trace_data): Likewise.
3204	(target_upload_tracepoints): Likewise.
3205	(target_upload_trace_state_variables): Likewise.
3206	(target_get_raw_trace_data): Likewise.
3207	(target_get_min_fast_tracepoint_insn_len): Likewise.
3208	(target_set_disconnected_tracing): Likewise.
3209	(target_set_circular_trace_buffer): Likewise.
3210	(target_set_trace_buffer_size): Likewise.
3211	(target_set_trace_notes): Likewise.
3212	(target_get_tib_address): Likewise.
3213	(target_set_permissions): Likewise.
3214	(target_static_tracepoint_marker_at): Likewise.
3215	(target_static_tracepoint_markers_by_strid): Likewise.
3216	(target_traceframe_info): Likewise.
3217	(target_use_agent): Likewise.
3218	(target_can_use_agent): Likewise.
3219	(target_augmented_libraries_svr4_read): Likewise.
3220	(target_log_command): Likewise.
3221	* target.c (target_shortname): New.
3222	(target_longname): New.
3223	(target_attach_no_wait): New.
3224	(target_post_attach): New.
3225	(target_prepare_to_store): New.
3226	(target_supports_enable_disable_tracepoint): New.
3227	(target_supports_string_tracing): New.
3228	(target_supports_evaluation_of_breakpoint_conditions): New.
3229	(target_supports_dumpcore): New.
3230	(target_dumpcore): New.
3231	(target_can_run_breakpoint_commands): New.
3232	(target_files_info): New.
3233	(target_post_startup_inferior): New.
3234	(target_insert_fork_catchpoint): New.
3235	(target_remove_fork_catchpoint): New.
3236	(target_insert_vfork_catchpoint): New.
3237	(target_remove_vfork_catchpoint): New.
3238	(target_insert_exec_catchpoint): New.
3239	(target_remove_exec_catchpoint): New.
3240	(target_set_syscall_catchpoint): New.
3241	(target_rcmd): New.
3242	(target_can_lock_scheduler): New.
3243	(target_can_async_p): New.
3244	(target_is_async_p): New.
3245	(target_execution_direction): New.
3246	(target_extra_thread_info): New.
3247	(target_pid_to_exec_file): New.
3248	(target_thread_architecture): New.
3249	(target_find_memory_regions): New.
3250	(target_make_corefile_notes): New.
3251	(target_get_bookmark): New.
3252	(target_goto_bookmark): New.
3253	(target_stopped_by_watchpoint): New.
3254	(target_stopped_by_sw_breakpoint): New.
3255	(target_supports_stopped_by_sw_breakpoint): New.
3256	(target_stopped_by_hw_breakpoint): New.
3257	(target_supports_stopped_by_hw_breakpoint): New.
3258	(target_have_steppable_watchpoint): New.
3259	(target_can_use_hardware_watchpoint): New.
3260	(target_region_ok_for_hw_watchpoint): New.
3261	(target_can_do_single_step): New.
3262	(target_insert_watchpoint): New.
3263	(target_remove_watchpoint): New.
3264	(target_insert_hw_breakpoint): New.
3265	(target_remove_hw_breakpoint): New.
3266	(target_can_accel_watchpoint_condition): New.
3267	(target_can_execute_reverse): New.
3268	(target_get_ada_task_ptid): New.
3269	(target_filesystem_is_local): New.
3270	(target_trace_init): New.
3271	(target_download_tracepoint): New.
3272	(target_can_download_tracepoint): New.
3273	(target_download_trace_state_variable): New.
3274	(target_enable_tracepoint): New.
3275	(target_disable_tracepoint): New.
3276	(target_trace_start): New.
3277	(target_trace_set_readonly_regions): New.
3278	(target_get_trace_status): New.
3279	(target_get_tracepoint_status): New.
3280	(target_trace_stop): New.
3281	(target_trace_find): New.
3282	(target_get_trace_state_variable_value): New.
3283	(target_save_trace_data): New.
3284	(target_upload_tracepoints): New.
3285	(target_upload_trace_state_variables): New.
3286	(target_get_raw_trace_data): New.
3287	(target_get_min_fast_tracepoint_insn_len): New.
3288	(target_set_disconnected_tracing): New.
3289	(target_set_circular_trace_buffer): New.
3290	(target_set_trace_buffer_size): New.
3291	(target_set_trace_notes): New.
3292	(target_get_tib_address): New.
3293	(target_set_permissions): New.
3294	(target_static_tracepoint_marker_at): New.
3295	(target_static_tracepoint_markers_by_strid): New.
3296	(target_traceframe_info): New.
3297	(target_use_agent): New.
3298	(target_can_use_agent): New.
3299	(target_augmented_libraries_svr4_read): New.
3300	(target_log_command): New.
3301	* bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3302	* infrun.c (set_schedlock_func): Adjust.
3303	* mi/mi-main.c (exec_reverse_continue): Adjust.
3304	* reverse.c (exec_reverse_once): Adjust.
3305	* sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3306	* tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3307	* remote-sim.c (gdbsim_target::detach): Adjust.
3308	(gdbsim_target::files_info): Adjust.
3309
33102021-03-24  Tom Tromey  <tom@tromey.com>
3311
3312	* dwarf2/read.c (dw2_map_matching_symbols): Update.
3313	(dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3314	(check_match, dw2_expand_symtabs_matching)
3315	(dwarf2_debug_names_index::map_matching_symbols)
3316	(dwarf2_debug_names_index::expand_symtabs_matching): Update.
3317
33182021-03-24  Keith Seitz  <keiths@redhat.com>
3319
3320	* compile/compile-cplus-types.c
3321	(compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3322	thinko.
3323
33242021-03-24  Simon Marchi  <simon.marchi@polymtl.ca>
3325
3326	* gdbarch.sh (gdbarch_data_registry): Make static.
3327	* gdbarch.c: Re-generate.
3328
33292021-03-24  Luis Machado  <luis.machado@linaro.org>
3330
3331	* NEWS: Mention memory tagging changes.
3332
33332021-03-24  Luis Machado  <luis.machado@linaro.org>
3334
3335	* printcmd.c (decode_format): Handle the 'm' modifier.
3336	(do_examine): Display allocation tags when required/supported.
3337	(should_validate_memtags): New function.
3338	(print_command_1): Display memory tag mismatches.
3339	* valprint.c (show_memory_tag_violations): New function.
3340	(value_print_option_defs): Add new option "memory-tag-violations".
3341	(user_print_options) <memory_tag_violations>: Initialize to 1.
3342	* valprint.h (struct format_data) <print_tags>: New field.
3343	(value_print_options) <memory_tag_violations>: New field.
3344
33452021-03-24  Luis Machado  <luis.machado@linaro.org>
3346
3347	* printcmd.c: Include gdbsupport/rsp-low.h.
3348	(memory_tag_list): New static global.
3349	(process_print_command_args): Factored out of
3350	print_command_1.
3351	(print_command_1): Use process_print_command_args.
3352	(show_addr_not_tagged, show_memory_tagging_unsupported)
3353	(memory_tag_command, memory_tag_print_tag_command)
3354	(memory_tag_print_logical_tag_command)
3355	(memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3356	(memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3357	(memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3358	functions.
3359	(_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3360
33612021-03-24  Luis Machado  <luis.machado@linaro.org>
3362
3363	* aarch64-linux-tdep.c
3364	(aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3365	* aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3366
33672021-03-24  Luis Machado  <luis.machado@linaro.org>
3368
3369	* aarch64-linux-tdep.c
3370	(aarch64_linux_report_signal_info): New function.
3371	(aarch64_linux_init_abi): Register
3372	aarch64_linux_report_signal_info as the report_signal_info hook.
3373	* arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3374	(SEGV_MTESERR): Define.
3375
33762021-03-24  Luis Machado  <luis.machado@linaro.org>
3377
3378	* aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3379	(aarch64_linux_ltag_tests): New function.
3380	(_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3381
33822021-03-24  Luis Machado  <luis.machado@linaro.org>
3383
3384	* aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3385	(aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3386	(aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3387	(aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3388	functions.
3389	(aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3390	* arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3391	(aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3392	(aarch64_linux_get_ltag): New functions.
3393	* arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3394	(AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3395	(aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3396	(aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3397
33982021-03-24  Luis Machado  <luis.machado@linaro.org>
3399
3400	* linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3401	bit.
3402	(struct smaps_data): New struct.
3403	(decode_vmflags): Handle the 'mt' flag.
3404	(parse_smaps_data): New function, refactored from
3405	linux_find_memory_regions_full.
3406	(linux_address_in_memtag_page): New function.
3407	(linux_find_memory_regions_full): Refactor into parse_smaps_data.
3408	* linux-tdep.h (linux_address_in_memtag_page): New prototype.
3409
34102021-03-24  Luis Machado  <luis.machado@linaro.org>
3411
3412	* linux-tdep.c (linux_find_memory_regions_full): Use std::string
3413	instead of char arrays.
3414
34152021-03-24  Luis Machado  <luis.machado@linaro.org>
3416
3417	* Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3418	(HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3419	nat/aarch64-mte-linux-ptrace.h.
3420	* aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3421	(aarch64_linux_nat_target) <supports_memory_tagging>: New method
3422	override.
3423	<fetch_memtags>: New method override.
3424	<store_memtags>: New method override.
3425	(aarch64_linux_nat_target::supports_memory_tagging): New method.
3426	(aarch64_linux_nat_target::fetch_memtags): New method.
3427	(aarch64_linux_nat_target::store_memtags): New method.
3428	* arch/aarch64-mte-linux.c: New file.
3429	* arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3430	(AARCH64_MTE_GRANULE_SIZE): Define.
3431	(aarch64_memtag_type): New enum.
3432	(aarch64_mte_get_tag_granules): New prototype.
3433	* configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3434	* configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3435	* nat/aarch64-mte-linux-ptrace.c: New file.
3436	* nat/aarch64-mte-linux-ptrace.h: New file.
3437
34382021-03-24  Luis Machado  <luis.machado@linaro.org>
3439
3440	* Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3441	* nat/aarch64-mte-linux-ptrace.h: New file.
3442
34432021-03-24  Luis Machado  <luis.machado@linaro.org>
3444
3445	* aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3446	(store_mteregs_to_thread): New function.
3447	(aarch64_linux_nat_target::fetch_registers): Update to call
3448	fetch_mteregs_from_thread.
3449	(aarch64_linux_nat_target::store_registers): Update to call
3450	store_mteregs_to_thread.
3451	* aarch64-tdep.c (aarch64_mte_register_names): New struct.
3452	(aarch64_cannot_store_register): Handle MTE registers.
3453	(aarch64_gdbarch_init): Initialize and setup MTE registers.
3454	* aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3455	<has_mte>: New method.
3456	* arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3457
34582021-03-24  Luis Machado  <luis.machado@linaro.org>
3459
3460	* aarch64-linux-nat.c
3461	(aarch64_linux_nat_target::read_description): Take MTE flag into
3462	account.
3463	Slight refactor to hwcap flag checking.
3464	* aarch64-linux-tdep.c
3465	(aarch64_linux_core_read_description): Likewise.
3466	* aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3467	MTE.
3468	(aarch64_read_description): Add mte_p parameter and update to use it.
3469	Update the documentation.
3470	(aarch64_gdbarch_init): Update call to aarch64_read_description.
3471	* aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3472	* arch/aarch64.c: Include ../features/aarch64-mte.c.
3473	(aarch64_create_target_description): Add mte_p parameter and update
3474	the code to use it.
3475	* arch/aarch64.h (aarch64_create_target_description): Add mte_p
3476	parameter.
3477	* features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3478	* features/aarch64-mte.c: New file, generated.
3479	* features/aarch64-mte.xml: New file.
3480
34812021-03-24  Luis Machado  <luis.machado@linaro.org>
3482
3483	* Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3484	* aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3485	* aarch64-linux-tdep.c: Likewise
3486	* arch/aarch64-mte-linux.h: New file.
3487
34882021-03-24  Luis Machado  <luis.machado@linaro.org>
3489
3490	* remote: Include gdbsupport/selftest.h.
3491	(test_memory_tagging_functions): New function.
3492	(_initialize_remote): Register test_memory_tagging_functions.
3493
34942021-03-24  Luis Machado  <luis.machado@linaro.org>
3495
3496	* remote.c (PACKET_memory_tagging_feature): New enum.
3497	(remote_memory_tagging_p): New function.
3498	(remote_protocol_features): New "memory-tagging" entry.
3499	(remote_target::remote_query_supported): Handle memory tagging
3500	support.
3501	(remote_target::supports_memory_tagging): Implement.
3502	(create_fetch_memtags_request, parse_fetch_memtags_reply)
3503	(create_store_memtags_request): New functions.
3504	(remote_target::fetch_memtags): Implement.
3505	(remote_target::store_memtags): Implement.
3506	(_initialize_remote): Add new "memory-tagging-feature"
3507	config command.
3508
35092021-03-24  Luis Machado  <luis.machado@linaro.org>
3510
3511	* arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3512	(default_memtag_matches_p, default_set_memtags)
3513	(default_get_memtag): New functions.
3514	* arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3515	(default_memtag_matches_p, default_set_memtags)
3516	(default_get_memtag): New prototypes.
3517	* gdbarch.c: Regenerate.
3518	* gdbarch.h: Regenerate.
3519	* gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3520	(set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3521	(enum memtag_type): New enum.
3522
35232021-03-24  Luis Machado  <luis.machado@linaro.org>
3524
3525	* remote.c (remote_target) <supports_memory_tagging>: New method
3526	override.
3527	<fetch_memtags>: New method override.
3528	<store_memtags>: New method override.
3529	(remote_target::supports_memory_tagging): New method.
3530	(remote_target::fetch_memtags): New method.
3531	(remote_target::store_memtags): New method.
3532	* target-delegates.c: Regenerate.
3533	* target.h (struct target_ops) <supports_memory_tagging>: New virtual
3534	method.
3535	<fetch_memtags>: New virtual method.
3536	<store_memtags>: New virtual method.
3537	(target_supports_memory_tagging): Define.
3538	(target_fetch_memtags): Define.
3539	(target_store_memtags): Define.
3540	* target-debug.h (target_debug_print_size_t)
3541	(target_debug_print_const_gdb_byte_vector_r)
3542	(target_debug_print_gdb_byte_vector_r): New functions.
3543
35442021-03-23  Simon Marchi  <simon.marchi@polymtl.ca>
3545
3546	* target.h (target_longname): Remove.
3547
35482021-03-23  Simon Marchi  <simon.marchi@polymtl.ca>
3549
3550	* target.h (target_is_pushed): Remove, update callers to use
3551	inferior::target_is_pushed instead.
3552	* target.c (target_is_pushed): Remove.
3553
35542021-03-23  Simon Marchi  <simon.marchi@polymtl.ca>
3555
3556	* target.h (push_target): Remove, update callers to use
3557	inferior::push_target.
3558	* target.c (push_target): Remove.
3559	* inferior.h (class inferior) <push_target>: New overload.
3560
35612021-03-23  Simon Marchi  <simon.marchi@polymtl.ca>
3562
3563	* target.h (unpush_target): Remove, update all callers
3564	to use `inferior::unpush_target` instead.
3565	(struct target_unpusher) <operator()>: Just declare.
3566	* target.c (unpush_target): Remove.
3567	(target_unpusher::operator()): New.
3568
35692021-03-22  Andrew Burgess  <andrew.burgess@embecosm.com>
3570
3571	* dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3572	error.
3573	(process_full_comp_unit): Validate the top-level tag before
3574	processing the first DIE.
3575	(read_func_scope): Ensure we have a valid builder.
3576
35772021-03-22  Andrew Burgess  <andrew.burgess@embecosm.com>
3578
3579	* objc-lang.c (objc_demangle): Renamed to
3580	objc_language::demangle_symbol, and moved later in the file.
3581	(objc_language::sniff_from_mangled_name): Call demangle_symbol
3582	member function.
3583	(objc_language::demangle_symbol): Defined outside of class
3584	declaration.  The definition is the old objc_demangle with NULL
3585	changed to nullptr, and if conditions relating to nullptr pointers
3586	or null character checks made explicit.
3587	* objc-lang.h (objc_demangle): Delete declaration.
3588
35892021-03-22  Martin Liska  <mliska@suse.cz>
3590
3591	* arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3592	(_initialize_arm_tdep): Likewise.
3593
35942021-03-20  Tom Tromey  <tom@tromey.com>
3595
3596	* xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3597	* symfile.c (syms_from_objfile_1, reread_symbols): Update.
3598	* psymtab.h (make_psymbol_functions): Don't declare.
3599	* psymtab.c (make_psymbol_functions): Remove.
3600	(maintenance_print_psymbols): Update.
3601	* psympriv.h (struct psymbol_functions): Add no-argument
3602	constructor.
3603	* objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3604	<partial_symtabs>: Remove.
3605	* mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3606	* elfread.c (read_partial_symbols): Update.
3607	(elf_symfile_read): Remove check for existing partial symbols.
3608	Don't clear "qf".
3609	* dwarf2/read.c (dwarf2_has_info): Remove check for existing
3610	partial symbols.
3611	(dwarf2_build_psymtabs): Add psymbol_functions parameter.  Create
3612	partial symtabs.
3613	* dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3614	parameter.
3615	* dbxread.c (dbx_symfile_read): Create partial symtabs.
3616	* ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3617
36182021-03-20  Tom Tromey  <tom@tromey.com>
3619
3620	* dwarf2/read.c (dwarf2_build_psymtabs): Update.
3621	* symfile.c (syms_from_objfile_1, reread_symbols): Update.
3622	* symfile-debug.c (objfile::has_partial_symbols)
3623	(objfile::find_last_source_symtab)
3624	(objfile::forget_cached_source_info)
3625	(objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3626	(objfile::print_stats, objfile::dump)
3627	(objfile::expand_symtabs_for_function)
3628	(objfile::expand_all_symtabs)
3629	(objfile::expand_symtabs_with_fullname)
3630	(objfile::map_matching_symbols)
3631	(objfile::expand_symtabs_matching)
3632	(objfile::find_pc_sect_compunit_symtab)
3633	(objfile::map_symbol_filenames)
3634	(objfile::find_compunit_symtab_by_address)
3635	(objfile::lookup_global_symbol_language)
3636	(objfile::require_partial_symbols): Update.
3637	* psymtab.c (maintenance_print_psymbols)
3638	(maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3639	* objfiles.h (struct objfile) <qf>: Now a forward_list.
3640	* objfiles.c (objfile_relocate1): Update.
3641	* elfread.c (elf_symfile_read): Update.
3642
36432021-03-20  Tom Tromey  <tom@tromey.com>
3644
3645	* objfiles.h (struct objfile) <psymtabs>: Remove method.
3646
36472021-03-20  Tom Tromey  <tom@tromey.com>
3648
3649	* psymtab.c (psymbol_functions::count_psyms): Rename.
3650	(psymbol_functions::print_stats): Update.
3651	* psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3652	method.
3653
36542021-03-20  Tom Tromey  <tom@tromey.com>
3655
3656	* psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3657	(psymbol_functions::find_pc_sect_psymtab): Rename.
3658	(psymbol_functions::find_pc_sect_compunit_symtab)
3659	(maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3660	* psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3661	Declare new method.
3662	<get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3663
36642021-03-20  Tom Tromey  <tom@tromey.com>
3665
3666	* xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3667	(xcoff_end_psymtab, scan_xcoff_symtab): Update.
3668	* psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3669	parameter.
3670	(add_psymbol_to_bcache): Remove.
3671	(partial_symtab::add_psymbol): Add partial_symtabs parameter.
3672	(partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3673	Likewise.
3674	* psympriv.h (partial_symtab): Add partial_symtabs parameter.
3675	<add_psymbol>: Likewise.
3676	(standard_psymtab, legacy_psymtab): Likewise.
3677	* mdebugread.c (parse_partial_symbols): Update.
3678	(handle_psymbol_enumerators): Add partial_symtabs parameter.
3679	(handle_psymbol_enumerators): Update.
3680	(new_psymtab): Add partial_symtabs parameter.
3681	* dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3682	* dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3683	parameter.
3684	(dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3685	(create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3686	Update.
3687	* dbxread.c (read_dbx_symtab): Update.
3688	(start_psymtab): Add partial_symtabs parameter.
3689	(dbx_end_psymtab): Update.
3690	* ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3691	(ctf_psymtab): Add partial_symtabs parameter.
3692	(create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3693	Update.
3694	(scan_partial_symbols): Add partial_symtabs parameter.
3695	(scan_partial_symbols, elfctf_build_psymtabs)
3696	(ctf_psymtab_add_enums): Update.
3697
36982021-03-20  Tom Tromey  <tom@tromey.com>
3699
3700	* symfile.c (read_symbols): Use objfile method.
3701	* symfile-debug.c (objfile::require_partial_symbols): New method.
3702	* psymtab.h (require_partial_symbols): Don't declare.
3703	* psymtab.c (require_partial_symbols): Use objfile method.  Now
3704	static.
3705	(psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3706	(psymbol_functions::lookup_symbol)
3707	(psymbol_functions::lookup_global_symbol_language)
3708	(psymbol_functions::find_last_source_symtab)
3709	(psymbol_functions::forget_cached_source_info)
3710	(psymbol_functions::print_stats)
3711	(psymbol_functions::expand_symtabs_for_function)
3712	(psymbol_functions::expand_all_symtabs)
3713	(psymbol_functions::expand_symtabs_with_fullname)
3714	(psymbol_functions::map_symbol_filenames)
3715	(psymbol_functions::map_matching_symbols)
3716	(psymbol_functions::expand_symtabs_matching)
3717	(psymbol_functions::find_compunit_symtab_by_address)
3718	(maintenance_print_psymbols, maintenance_info_psymtabs)
3719	(maintenance_check_psymtabs): Update.
3720	* objfiles.h (struct objfile) <require_partial_symbols>: Declare
3721	new method.
3722
37232021-03-20  Tom Tromey  <tom@tromey.com>
3724
3725	* xcoffread.c (xcoff_sym_fns): Update.
3726	* symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3727	* symfile-debug.c (objfile::has_partial_symbols): Use
3728	can_lazily_read_symbols.
3729	(debug_sym_read_psymbols): Remove.
3730	(debug_sym_fns, install_symfile_debug_logging): Update.
3731	* quick-symbol.h (struct quick_symbol_functions)
3732	<can_lazily_read_symbols, read_partial_symbols>: New methods.
3733	* psymtab.c (require_partial_symbols): Use new 'qf' methods.
3734	* mipsread.c (ecoff_sym_fns): Update.
3735	* machoread.c (macho_sym_fns): Update.
3736	* elfread.c (struct lazy_dwarf_reader): New.
3737	(elf_symfile_read): Update.
3738	(read_psyms): Now a method of lazy_dwarf_reader.
3739	(elf_sym_fns): Update.
3740	(elf_sym_fns_lazy_psyms): Remove.
3741	* dbxread.c (aout_sym_fns): Update.
3742	* coffread.c (coff_sym_fns): Update.
3743
37442021-03-20  Tom Tromey  <tom@tromey.com>
3745
3746	* symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3747	(reread_symbols): Move reset_psymtabs call later.
3748	* objfiles.c (objfile::objfile): Don't initialize
3749	partial_symtabs.
3750
37512021-03-20  Tom Tromey  <tom@tromey.com>
3752
3753	* dwarf2/read.c (dwarf2_build_psymtabs): Call
3754	set_partial_symtabs.
3755	* symfile.c (syms_from_objfile_1, reread_symbols): Update.
3756	* psymtab.h (make_psymbol_functions): Add partial_symtabs
3757	parameter.
3758	* psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3759	parameter.
3760	(psymbol_functions::find_pc_sect_compunit_symtab)
3761	(psymbol_functions::print_stats, psymbol_functions::dump)
3762	(psymbol_functions::has_symbols): Update.
3763	(make_psymbol_functions, dump_psymtab_addrmap): Add
3764	partial_symtabs parameter.
3765	(maintenance_print_psymbols): Update.
3766	(psymbol_functions::expand_symtabs_matching): Update.
3767	* psympriv.h (struct psymbol_functions): Add constructor.
3768	<m_partial_symtabs>: New member.
3769	<set_partial_symtabs>: New method.
3770
37712021-03-20  Tom Tromey  <tom@tromey.com>
3772
3773	* dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3774	parameter.
3775	(process_psymtab_comp_unit_reader)
3776	(build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3777	(add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3778	Reference psymtabs via per_bfd.
3779
37802021-03-20  Tom Tromey  <tom@tromey.com>
3781
3782	* dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3783	Remove.
3784	(add_address_entry): Remove objfile parameter.
3785	(add_address_entry_worker): Update.
3786	(write_address_map): Replace objfile parameter with per_bfd.
3787	(write_gdbindex, write_psymtabs_to_index): Update.
3788
37892021-03-20  Tom Tromey  <tom@tromey.com>
3790
3791	* dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3792	print_bcache parameter.
3793	* symfile-debug.c (objfile::print_stats): Add print_bcache
3794	parameter.
3795	* quick-symbol.h (struct quick_symbol_functions)
3796	<print_stats>: Add print_bcache parameter.
3797	* symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3798	code to psymtab.c.
3799	(print_objfile_statistics): Move psymtab code to psymtab.c.
3800	* psymtab.c (count_psyms): Move from symmisc.c.
3801	(psymbol_functions::print_stats): Print partial symbol and bcache
3802	statistics.  Add print_bcache parameter.
3803	* objfiles.h (print_symbol_bcache_statistics): Don't declare.
3804	(struct objfile) <print_stats>: Add print_bcache parameter.
3805	* maint.c (maintenance_print_statistics): Update.
3806
38072021-03-20  Tom Tromey  <tom@tromey.com>
3808
3809	* dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3810	member.
3811	* dwarf2/read.c (create_addrmap_from_index)
3812	(create_addrmap_from_aranges): Set per_bfd addrmap.
3813	(dwarf2_read_gdb_index): Don't set partial_symtabs.
3814	(dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3815	per_bfd addrmap.
3816	(dwarf2_read_debug_names): Don't set partial_symtabs.
3817	(dwarf2_initialize_objfile): Likewise.
3818
38192021-03-20  Tom Tromey  <tom@tromey.com>
3820
3821	* dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3822	earlier.
3823
38242021-03-20  Tom Tromey  <tom@tromey.com>
3825
3826	* psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3827	(~psymtab_discarder, keep): Update.
3828	<m_objfile>: Remove.
3829	<m_partial_symtabs>: New member.
3830	* dwarf2/read.c (dwarf2_build_psymtabs): Update.
3831
38322021-03-20  Tom Tromey  <tom@tromey.com>
3833
3834	* xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3835	(xcoff_end_psymtab): Update.
3836	(scan_xcoff_symtab): Add partial_symtabs parameter.
3837	(xcoff_initial_scan): Update.
3838	* stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3839	* mdebugread.c (mdebug_build_psymtabs): Update.
3840	(parse_partial_symbols): Add partial_symtabs parameter.
3841	* dbxread.c (dbx_symfile_read): Update.
3842	(read_dbx_symtab): Add partial_symtabs parameter.
3843	(read_dbx_symtab): Update.
3844	(dbx_end_psymtab): Add partial_symtabs parameter.
3845
38462021-03-20  Tom Tromey  <tom@tromey.com>
3847
3848	* quick-symbol.h (struct quick_symbol_functions)
3849	<relocated>: New method.
3850	* psymtab.h (struct psymbol_functions) <relocated>: New
3851	method.
3852	<fill_psymbol_map>: Declare method.
3853	<m_psymbol_map>: New member.
3854	* psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3855	(psymbol_functions::find_compunit_symtab_by_address): Update.
3856	* objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3857	(struct objfile) <psymbol_map>: Remove.
3858	* objfiles.c (objfile_relocate1): Update.
3859
38602021-03-20  Tom Tromey  <tom@tromey.com>
3861
3862	* psympriv.h (struct psymbol_functions): New.
3863	* symfile.c (syms_from_objfile_1, reread_symbols): Update.
3864	* symfile-debug.c (objfile::find_compunit_symtab_by_address)
3865	(objfile::lookup_global_symbol_language): Update.
3866	* quick-symbol.h (struct quick_symbol_functions): Convert function
3867	pointers to methods.  Add virtual destructor.
3868	(quick_symbol_functions_up): New typedef.
3869	* psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3870	(dwarf2_debug_names_functions): Don't declare.
3871	(make_psymbol_functions): Declare.
3872	* psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3873	(psymbol_functions::find_pc_sect_compunit_symtab)
3874	(psymbol_functions::lookup_symbol)
3875	(psymbol_functions::lookup_global_symbol_language)
3876	(psymbol_functions::find_last_source_symtab)
3877	(psymbol_functions::forget_cached_source_info)
3878	(psymbol_functions::print_stats, psymbol_functions::dump)
3879	(psymbol_functions::expand_symtabs_for_function)
3880	(psymbol_functions::expand_all_symtabs)
3881	(psymbol_functions::expand_symtabs_with_fullname)
3882	(psymbol_functions::map_symbol_filenames)
3883	(psymbol_functions::map_matching_symbols)
3884	(psymbol_functions::expand_symtabs_matching)
3885	(psymbol_functions::has_symbols)
3886	(psymbol_functions::find_compunit_symtab_by_address): Rename.
3887	(psym_functions): Remove.
3888	(make_psymbol_functions): New function.
3889	* objfiles.h (struct objfile) <qf>: Change type.
3890	* elfread.c (elf_symfile_read): Update.
3891	* dwarf2/read.c (struct dwarf2_base_index_functions)
3892	(struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3893	(make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3894	(dwarf2_base_index_functions::find_last_source_symtab)
3895	(dwarf2_base_index_functions::forget_cached_source_info)
3896	(dwarf2_base_index_functions::map_symtabs_matching_filename)
3897	(dwarf2_gdb_index::lookup_symbol)
3898	(dwarf2_base_index_functions::print_stats)
3899	(dwarf2_gdb_index::dump)
3900	(dwarf2_gdb_index::expand_symtabs_for_function)
3901	(dwarf2_base_index_functions::expand_all_symtabs)
3902	(dwarf2_base_index_functions::expand_symtabs_with_fullname):
3903	Rename.
3904	(dwarf2_gdb_index::map_matching_symbols): New method.
3905	(dwarf2_gdb_index::expand_symtabs_matching): New method.
3906	(dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3907	(dwarf2_base_index_functions::map_symbol_filenames)
3908	(dwarf2_base_index_functions::has_symbols): Rename.
3909	(dwarf2_gdb_index_functions): Remove.
3910	(dwarf2_debug_names_index::lookup_symbol)
3911	(dwarf2_debug_names_index::dump)
3912	(dwarf2_debug_names_index::expand_symtabs_for_function)
3913	(dwarf2_debug_names_index::map_matching_symbols)
3914	(dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3915	(dwarf2_debug_names_functions): Remove.
3916	* dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3917	Declare.
3918
39192021-03-20  Tom Tromey  <tom@tromey.com>
3920
3921	* psymtab.c (require_partial_symbols): Check that 'sf' is not
3922	null.
3923	* xcoffread.c (xcoff_sym_fns): Update.
3924	* symfile.h (struct sym_fns) <qf>: Remove.
3925	* symfile.c (syms_from_objfile_1, reread_symbols): Update.
3926	* symfile-debug.c (objfile::has_partial_symbols)
3927	(objfile::find_last_source_symtab)
3928	(objfile::forget_cached_source_info)
3929	(objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3930	(objfile::print_stats, objfile::dump)
3931	(objfile::expand_symtabs_for_function)
3932	(objfile::expand_all_symtabs)
3933	(objfile::expand_symtabs_with_fullname)
3934	(objfile::map_matching_symbols)
3935	(objfile::expand_symtabs_matching)
3936	(objfile::find_pc_sect_compunit_symtab)
3937	(objfile::map_symbol_filenames)
3938	(objfile::find_compunit_symtab_by_address)
3939	(objfile::lookup_global_symbol_language, debug_sym_fns)
3940	(install_symfile_debug_logging): Update.
3941	* objfiles.h (struct objfile) <qf>: New member.
3942	* mipsread.c (ecoff_sym_fns): Update.
3943	* machoread.c (macho_sym_fns): Update.
3944	* elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3945	Don't declare.
3946	(elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3947	* dbxread.c (aout_sym_fns): Update.
3948	* coffread.c (coff_sym_fns): Update.
3949
39502021-03-20  Tom Tromey  <tom@tromey.com>
3951
3952	* symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3953	(expand_symtabs_file_matcher_ftype)
3954	(expand_symtabs_symbol_matcher_ftype)
3955	(expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3956	Move to quick-symbol.h.
3957	* quick-symbol.h: New file.
3958
39592021-03-20  Tom Tromey  <tom@tromey.com>
3960
3961	* symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3962	(lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3963	(basic_lookup_transparent_type_quick)
3964	(find_pc_sect_compunit_symtab, find_symbol_at_address)
3965	(find_line_symtab, global_symbol_searcher::expand_symtabs):
3966	Update.
3967	* symmisc.c (print_objfile_statistics, dump_objfile)
3968	(maintenance_expand_symtabs): Update.
3969	* symfile.c (symbol_file_add_with_addrs)
3970	(expand_symtabs_matching, map_symbol_filenames): Update.
3971	* symfile-debug.c (objfile::has_partial_symbols)
3972	(objfile::find_last_source_symtab)
3973	(objfile::forget_cached_source_info)
3974	(objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3975	(objfile::print_stats, objfile::dump)
3976	(objfile::expand_symtabs_for_function)
3977	(objfile::expand_all_symtabs)
3978	(objfile::expand_symtabs_with_fullname)
3979	(objfile::map_matching_symbols)
3980	(objfile::expand_symtabs_matching)
3981	(objfile::find_pc_sect_compunit_symtab)
3982	(objfile::map_symbol_filenames)
3983	(objfile::find_compunit_symtab_by_address)
3984	(objfile::lookup_global_symbol_language): New methods.
3985	(debug_sym_quick_functions): Remove.
3986	(debug_sym_fns, install_symfile_debug_logging): Update.
3987	* source.c (forget_cached_source_info_for_objfile)
3988	(select_source_symtab): Update.
3989	* objfiles.h (struct objfile): Add methods corresponding to
3990	quick_symbol_functions.
3991	* objfiles.c (objfile::has_partial_symbols): Move to
3992	symfile-debug.c.
3993	* linespec.c (iterate_over_all_matching_symtabs): Update.
3994	* cp-support.c (add_symbol_overload_list_qualified): Update.
3995	* ada-lang.c (add_nonlocal_symbols): Update.
3996
39972021-03-20  Tom Tromey  <tom@tromey.com>
3998
3999	* objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
4000	* symfile.h (struct quick_symbol_functions) <has_symbols>: Return
4001	bool.
4002	* symfile-debug.c (debug_qf_has_symbols): Return bool.
4003	* psymtab.c (psym_has_symbols): Return bool.
4004	* objfiles.c (objfile::has_partial_symbols): Return bool.
4005	* dwarf2/read.c (dw2_has_symbols): Return bool.
4006
40072021-03-20  Tom Tromey  <tom@tromey.com>
4008
4009	* symfile.c (read_symbols): Update.
4010	* objfiles.h (struct objfile) <has_partial_symbols>: New method.
4011	(objfile_has_partial_symbols): Don't declare.
4012	* objfiles.c (objfile::has_partial_symbols): Rename from
4013	objfile_has_partial_symbols.
4014	(objfile_has_symbols, have_partial_symbols): Update.
4015	* elfread.c (elf_symfile_read): Update.
4016	* dwarf2/read.c (dwarf2_has_info): Update.
4017	* coffread.c (coff_symfile_read): Update.
4018
40192021-03-20  Tom Tromey  <tom@tromey.com>
4020
4021	* coffread.c: Include dwarf2/public.h.
4022	* dwarf2/frame.c: Include dwarf2/public.h.
4023	* dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
4024	* dwarf2/public.h: New file.
4025	* dwarf2/read.c: Include dwarf2/public.h.
4026	* elfread.c: Include dwarf2/public.h.
4027	* machoread.c: Include dwarf2/public.h.
4028	* symfile.h (dwarf2_has_info, enum dw_index_kind)
4029	(dwarf2_initialize_objfile, dwarf2_build_psymtabs)
4030	(dwarf2_build_frame_info): Move to dwarf2/public.h.
4031	* xcoffread.c: Include dwarf2/public.h.
4032
40332021-03-20  Tom Tromey  <tom@tromey.com>
4034
4035	* symfile.h (enum dwarf2_section_enum)
4036	(dwarf2_get_section_info): Move to dwarf2/read.h.
4037	* dwarf2/read.h (enum dwarf2_section_enum)
4038	(dwarf2_get_section_info): Move from symfile.h.
4039
40402021-03-19  Pedro Alves  <pedro@palves.net>
4041
4042	* thread.c (any_thread_of_inferior): Check if there's a selected
4043	thread before calling inferior_thread().
4044
40452021-03-18  Tom Tromey  <tromey@adacore.com>
4046
4047	* dwarf2/stringify.c (dwarf_unit_type_name): New function.  Use
4048	get_DW_UT_name.
4049	* dwarf2/stringify.h (dwarf_unit_type_name): Declare.
4050	* dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
4051
40522021-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4053
4054	* python/py-param.c (get_set_value): Update header comment.
4055
40562021-03-17  Simon Marchi  <simon.marchi@polymtl.ca>
4057
4058	* infrun.c (check_multi_target_resumption): Remove argument to
4059	all_non_exited_inferiors.
4060
40612021-03-16  Christian Biesinger  <cbiesinger@google.com>
4062
4063	* windows-nat.c (windows_init_thread_list): Add message to
4064	debug log.
4065
40662021-03-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4067
4068	* python/py-framefilter.c (py_print_frame): Use PyInt_Check as
4069	well as PyLong_Check for Python 2.
4070
40712021-03-15  Tom Tromey  <tromey@adacore.com>
4072
4073	PR build/27579:
4074	* rust-exp.y (maker_map): Use gdb::hash_enum.
4075	* stap-probe.c (stap_maker_map): Use gdb::hash_enum.
4076
40772021-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
4078
4079	* dwarf2/read.c (create_debug_type_hash_table): Remove colon at
4080	end of debug print.
4081
40822021-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
4083
4084	* dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
4085	parameter, adjust caller.
4086
40872021-03-15  Tom Tromey  <tromey@adacore.com>
4088
4089	* ada-exp.y (simple_exp): Always push a result for unary '+'.
4090
40912021-03-15  Tom Tromey  <tromey@adacore.com>
4092
4093	* ada-lang.c (ada_unop_ind_operation::evaluate): Call
4094	ada_ensure_varsize_limit.
4095
40962021-03-15  Tom Tromey  <tromey@adacore.com>
4097
4098	* ada-lang.c (numeric_type_p, integer_type_p): Return true for
4099	fixed-point.
4100	* ada-exp.y (maybe_overload): New function.
4101	(ada_wrap_overload): New function.
4102	(ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
4103	(exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
4104	(or_else_exp, xor_exp, primary): Update.
4105
41062021-03-15  Tom Tromey  <tromey@adacore.com>
4107
4108	PR ada/27545:
4109	* ada-lang.c (ada_var_value_operation::evaluate): Use recursive
4110	call for tagged type.
4111
41122021-03-15  Tom Tromey  <tromey@adacore.com>
4113
4114	* ada-exp.y (exp1): Handle resolution of the right hand side of an
4115	assignment.
4116
41172021-03-15  Tom Tromey  <tromey@adacore.com>
4118
4119	* ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
4120	container.
4121	(ada_assign_operation::evaluate): Update.
4122	* ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
4123	Change return type.
4124
41252021-03-15  Felix Willgerodt  <felix.willgerodt@intel.com>
4126
4127	* i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
4128
41292021-03-15  Andrew Burgess  <andrew.burgess@embecosm.com>
4130
4131	* python/python.c (gdbpy_source_objfile_script): Use
4132	make_scoped_restore to restore gdbpy_current_objfile.
4133	(gdbpy_execute_objfile_script): Likewise.
4134
41352021-03-14  Tom Tromey  <tom@tromey.com>
4136
4137	* dwarf2/read.c (read_attribute_value): Use cu_header
4138	consistently.
4139
41402021-03-14  Tom Tromey  <tom@tromey.com>
4141
4142	* dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
4143	(peek_die_abbrev): Use reader.abfd.
4144
41452021-03-14  Tom Tromey  <tom@tromey.com>
4146
4147	* dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
4148	m_header_read_in.
4149
41502021-03-13  Tom Tromey  <tom@tromey.com>
4151
4152	* dwarf2/read.c (struct partial_die_info): Update.
4153	(peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
4154	(load_partial_dies, partial_die_info::partial_die_info): Update.
4155	* dwarf2/abbrev.h (lookup_abbrev): Constify.
4156
41572021-03-13  Tom Tromey  <tom@tromey.com>
4158
4159	* dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
4160
41612021-03-12  Christian Biesinger  <cbiesinger@google.com>
4162
4163	PR threads/27239
4164	* cp-support.c: Use scoped_segv_handler_restore.
4165	* event-top.c (thread_local_segv_handler): Made static.
4166	(scoped_segv_handler_restore::scoped_segv_handler_restore):
4167	New function.
4168	(scoped_segv_handler_restore::~scoped_segv_handler_restore): New
4169	function.
4170	* event-top.h (class scoped_segv_handler_restore): New class.
4171	(thread_local_segv_handler): Removed.
4172
41732021-03-10  Tom Tromey  <tromey@adacore.com>
4174
4175	* parser-defs.h (parser_state): Change completion to bool.
4176	<parse_completion>: Likewise.
4177	* ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4178	(ada_resolve_variable, ada_resolve_function): Update.
4179	* ada-lang.c (ada_find_operator_symbol): Change
4180	parse_completion to bool.
4181	(ada_resolve_funcall, ada_resolve_variable)
4182	(ada_resolve_function): Likewise.
4183
41842021-03-09  Tom Tromey  <tromey@adacore.com>
4185
4186	* eval.c (operation::evaluate_funcall): Use function formal
4187	parameter types when evaluating.
4188
41892021-03-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4190
4191	* gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
4192	Updated fields names flag_objfile_owned to m_flag_objfile_owned,
4193	and owner to m_owner.
4194
41952021-03-09  Felix Willgerodt  <felix.willgerodt@intel.com>
4196
4197        * f-exp.h (eval_op_f_loc): Declare.
4198        (expr::fortran_loc_operation): New typedef.
4199        * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
4200        UNOP_INTRINSIC.
4201        (f77_keywords): Add LOC keyword.
4202        * f-lang.c (eval_op_f_loc): New function.
4203        * std-operator.def (UNOP_FORTRAN_LOC): New operator.
4204
42052021-03-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4206
4207	* f-exp.h (eval_op_f_array_shape): Declare.
4208	(fortran_array_shape_operation): New type.
4209	* f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
4210	UNOP_INTRINSIC.
4211	(f77_keywords): Add "shape" keyword.
4212	* f-lang.c (fortran_array_shape): New function.
4213	(eval_op_f_array_shape): New function.
4214	* std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
4215
42162021-03-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4217
4218	* f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
4219	of this function.
4220	(expr::fortran_array_size_1arg): New type.
4221	(expr::fortran_array_size_2arg): Likewise.
4222	* f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
4223	UNOP_OR_BINOP_INTRINSIC.
4224	(f77_keywords): Add "size" keyword.
4225	* f-lang.c (fortran_array_size): New function.
4226	(eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
4227	* std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
4228
42292021-03-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4230
4231	* f-exp.h (eval_op_f_rank): Declare.
4232	(expr::fortran_rank_operation): New typedef.
4233	* f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
4234	UNOP_INTRINSIC.
4235	(f77_keywords): Add "rank" keyword.
4236	* f-lang.c (eval_op_f_rank): New function.
4237	* std-operator.def (UNOP_FORTRAN_RANK): New operator.
4238
42392021-03-08  Tom Tromey  <tom@tromey.com>
4240
4241	* printcmd.c (set_command): Remove null check.
4242	* value.c (init_if_undefined_command): Remove null check.
4243
42442021-03-08  Tom Tromey  <tom@tromey.com>
4245
4246	* parse.c (parser_state::push_symbol, parser_state::push_dollar):
4247	Update.
4248	* p-exp.y (variable): Update.
4249	* go-exp.y (variable): Update.
4250	* expprint.c (dump_for_expression): Use bound_minimal_symbol.
4251	Remove overload for objfile.
4252	* expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
4253	parameter.
4254	(check_objfile): Likewise.
4255	(dump_for_expression): Likewise.  Remove overload for objfile.
4256	(class var_msym_value_operation): Use bound_minimal_symbol.
4257	* eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
4258	parameter.
4259	(var_msym_value_operation::evaluate_for_address)
4260	(var_msym_value_operation::evaluate_for_sizeof)
4261	(var_msym_value_operation::evaluate_for_cast): Update.
4262	* d-exp.y (PrimaryExpression): Update.
4263	* c-exp.y (variable): Update.
4264	* ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
4265	* ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4266	Update.
4267	* ada-exp.y (write_var_or_type): Update.
4268
42692021-03-08  Tom Tromey  <tom@tromey.com>
4270
4271	* parser-defs.h (exp_uses_objfile): Return bool.
4272	* parse.c (exp_uses_objfile): Return bool.
4273
42742021-03-08  Tom Tromey  <tom@tromey.com>
4275
4276	* value.h (eval_skip_value): Don't declare.
4277	* opencl-lang.c (eval_opencl_assign): Update.
4278	* m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
4279	* f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4280	(eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
4281	* expression.h (enum noside) <EVAL_SKIP>: Remove.
4282	* expop.h (typeof_operation::evaluate)
4283	(decltype_operation::evaluate, unop_addr_operation::evaluate)
4284	(unop_sizeof_operation::evaluate, assign_operation::evaluate)
4285	(cxx_cast_operation::evaluate): Update.
4286	* eval.c (eval_skip_value): Remove.
4287	(eval_op_scope, eval_op_var_entry_value)
4288	(eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
4289	(eval_op_concat, eval_op_ternop, eval_op_structop_struct)
4290	(eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
4291	(eval_op_binary, eval_op_subscript, eval_op_equal)
4292	(eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
4293	(eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
4294	(eval_op_complement, eval_op_lognot, eval_op_ind)
4295	(eval_op_memval, eval_op_preinc, eval_op_predec)
4296	(eval_op_postinc, eval_op_postdec, eval_op_type)
4297	(eval_binop_assign_modify, eval_op_objc_msgcall)
4298	(eval_multi_subscript, logical_and_operation::evaluate)
4299	(logical_or_operation::evaluate, array_operation::evaluate)
4300	(operation::evaluate_for_cast)
4301	(var_msym_value_operation::evaluate_for_cast)
4302	(var_value_operation::evaluate_for_cast): Update.
4303	* c-lang.c (c_string_operation::evaluate): Update.
4304	* c-exp.h (objc_nsstring_operation::evaluate)
4305	(objc_selector_operation::evaluate): Update.
4306	* ada-lang.c (ada_assign_operation::evaluate)
4307	(eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4308	(ada_atr_size): Update.
4309
43102021-03-08  Tom Tromey  <tom@tromey.com>
4311
4312	* eval.c: Merge "namespace" scopes.
4313
43142021-03-08  Tom Tromey  <tom@tromey.com>
4315
4316	* parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4317	<release>: Inline.
4318	* parse.c (expr_builder::expr_builder, expr_builder::release):
4319	Remove.
4320
43212021-03-08  Tom Tromey  <tom@tromey.com>
4322
4323	* parse.c (expression::expression, expression::~expression):
4324	Remove.
4325	* expression.h (struct expression): Inline constructor.  Remove
4326	destructor.
4327
43282021-03-08  Tom Tromey  <tom@tromey.com>
4329
4330	* std-operator.def (BINOP_END): Remove.
4331	* p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4332	* go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4333	* f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4334	* d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4335	* c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4336	BINOP_END.
4337
43382021-03-08  Tom Tromey  <tom@tromey.com>
4339
4340	* expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4341
43422021-03-08  Tom Tromey  <tom@tromey.com>
4343
4344	* std-operator.def (OP_EXTENDED0): Remove.
4345
43462021-03-08  Tom Tromey  <tom@tromey.com>
4347
4348	* std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4349	(OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4350	Remove.
4351
43522021-03-08  Tom Tromey  <tom@tromey.com>
4353
4354	* std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4355	(UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4356
43572021-03-08  Tom Tromey  <tom@tromey.com>
4358
4359	* std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4360	* ada-lang.c (ada_binop_minmax): Update.
4361	* ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4362	Use BINOP_MIN and BINOP_MAX.
4363
43642021-03-08  Tom Tromey  <tom@tromey.com>
4365
4366	* value.h (evaluate_subexp_with_coercion): Don't declare.
4367	* parse.c (exp_descriptor_standard): Remove.
4368	(expr_builder::expr_builder, expr_builder::release): Update.
4369	(expression::expression): Remove size_t parameter.
4370	(expression::~expression): Simplify.
4371	(expression::resize): Remove.
4372	(write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4373	(write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4374	(write_exp_elt_longcst, write_exp_elt_floatcst)
4375	(write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4376	(write_exp_string_vector, write_exp_bitstring): Remove.
4377	* p-lang.h (class pascal_language) <opcode_print_table,
4378	op_print_tab>: Remove.
4379	* p-lang.c (pascal_language::op_print_tab): Remove.
4380	* opencl-lang.c (class opencl_language) <opcode_print_table>:
4381	Remove.
4382	* objc-lang.c (objc_op_print_tab): Remove.
4383	(class objc_language) <opcode_print_table>: Remove.
4384	* m2-lang.h (class m2_language) <opcode_print_table,
4385	op_print_tab>: Remove.
4386	* m2-lang.c (m2_language::op_print_tab): Remove.
4387	* language.h (struct language_defn) <post_parser, expression_ops,
4388	opcode_print_table>: Remove.
4389	* language.c (language_defn::expression_ops)
4390	(auto_or_unknown_language::opcode_print_table): Remove.
4391	* go-lang.h (class go_language) <opcode_print_table,
4392	op_print_tab>: Remove.
4393	* go-lang.c (go_language::op_print_tab): Remove.
4394	* f-lang.h (class f_language) <opcode_print_table>: Remove
4395	<op_print_tab>: Remove.
4396	* f-lang.c (f_language::op_print_tab): Remove.
4397	* expression.h (union exp_element): Remove.
4398	(struct expression): Remove size_t parameter from constructor.
4399	<resize>: Remove.
4400	<first_opcode>: Update.
4401	<nelts, elts>: Remove.
4402	(EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4403	(evaluate_subexp_standard, print_expression, op_string)
4404	(dump_raw_expression): Don't declare.
4405	* expprint.c (print_expression, print_subexp)
4406	(print_subexp_funcall, print_subexp_standard, op_string)
4407	(dump_raw_expression, dump_subexp, dump_subexp_body)
4408	(dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4409	(dump_prefix_expression): Update.
4410	* eval.c (evaluate_subexp): Remove.
4411	(evaluate_expression, evaluate_type): Update.
4412	(evaluate_subexpression_type): Remove.
4413	(fetch_subexp_value): Remove "pc" parameter.  Update.
4414	(extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4415	(evaluate_subexp_standard, evaluate_subexp_for_address)
4416	(evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4417	(evaluate_subexp_for_cast): Remove.
4418	(parse_and_eval_type): Update.
4419	* dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4420	* d-lang.c (d_op_print_tab): Remove.
4421	(class d_language) <opcode_print_table>: Remove.
4422	* c-lang.h (c_op_print_tab): Don't declare.
4423	* c-lang.c (c_op_print_tab): Remove.
4424	(class c_language, class cplus_language, class asm_language, class
4425	minimal_language) <opcode_print_table>: Remove.
4426	* breakpoint.c (update_watchpoint, watchpoint_check)
4427	(watchpoint_exp_is_const, watch_command_1): Update.
4428	* ax-gdb.h (union exp_element): Don't declare.
4429	* ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4430	(gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4431	(gen_expr_binop_rest): Remove.
4432	(gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4433	* ada-lang.c (ada_op_print_tab): Remove.
4434	(class ada_language) <post_parser, opcode_print_table>: Remove.
4435
44362021-03-08  Tom Tromey  <tom@tromey.com>
4437
4438	* go-lang.c (go_language::expression_ops): Don't declare.
4439	* go-lang.h (class go_language) <expression_ops>: Remove.
4440	* opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4441	Remove.
4442	(class opencl_language) <expression_ops>: Remove.
4443	* d-lang.c (class d_language) <expression_ops>: Remove.
4444	* c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4445	* c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4446	(class c_language, class cplus_language, class asm_language)
4447	(class minimal_language) <expression_ops>: Remove.
4448
44492021-03-08  Tom Tromey  <tom@tromey.com>
4450
4451	* ada-lang.c (resolve_subexp, replace_operator_with_call)
4452	(evaluate_subexp_type, assign_aggregate)
4453	(aggregate_assign_positional, aggregate_assign_from_choices)
4454	(aggregate_assign_others, ada_evaluate_subexp_for_cast)
4455	(ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4456	(ada_operator_check, ada_forward_operator_length)
4457	(ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4458	Remove.
4459	(post_parser): Update.
4460	(class ada_language) <expresssion_ops>: Remove.
4461
44622021-03-08  Tom Tromey  <tom@tromey.com>
4463
4464	* m2-lang.h (class m2_language) <expresssion_ops,
4465	exp_descriptor_modula2>: Remove.
4466	* m2-lang.c (evaluate_subexp_modula2)
4467	(m2_language::exp_descriptor_modula2): Remove.
4468
44692021-03-08  Tom Tromey  <tom@tromey.com>
4470
4471	* f-lang.h (class f_language) <expresssion_ops>: Remove.
4472	<exp_descriptor_tab>: Remove.
4473	* f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4474	(operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4475	(print_subexp_f, dump_subexp_body_f, operator_check_f)
4476	(f_language::exp_descriptor_tab, fortran_prepare_argument):
4477	Remove.
4478
44792021-03-08  Tom Tromey  <tom@tromey.com>
4480
4481	* rust-lang.h (class rust_language) <expression_ops,
4482	exp_descriptor_tab>: Remove.
4483	* rust-lang.c (rust_evaluate_funcall): Remove.
4484	(rust_range, rust_subscript, eval_op_rust_complement): Don't use
4485	EVAL_SKIP.
4486	(rust_evaluate_subexp): Remove.
4487	(rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4488	(rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4489	(rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4490
44912021-03-08  Tom Tromey  <tom@tromey.com>
4492
4493	* ada-exp.y: Create operations.
4494	(empty_stoken): Remove.
4495	(ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4496	(ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4497	(components): New global.
4498	(push_component, choice_component, pop_component, pop_components):
4499	New functions.
4500	(associations): New global
4501	(push_association, pop_association, pop_associations): New
4502	functions.
4503	(ada_parse): Update.
4504	(write_var_from_sym, write_int): Create operations.
4505	(write_exp_op_with_string): Remove.
4506	(write_object_renaming, write_selectors, write_ambiguous_var)
4507	(write_var_or_type, write_name_assoc): Create operations.
4508	* ada-lang.h (ada_index_type): Declare.
4509	* ada-lang.c (ada_index_type): No longer static.
4510
45112021-03-08  Tom Tromey  <tom@tromey.com>
4512
4513	* f-exp.y: Create operations.
4514	(f_language::parser): Update.
4515
45162021-03-08  Tom Tromey  <tom@tromey.com>
4517
4518	* m2-exp.y: Create operations.
4519	(m2_language::parser): Update.
4520
45212021-03-08  Tom Tromey  <tom@tromey.com>
4522
4523	* p-exp.y: Create operations.
4524	(pascal_language::parser): Update.
4525
45262021-03-08  Tom Tromey  <tom@tromey.com>
4527
4528	* d-exp.y: Create operations.
4529	(d_parse): Update.
4530
45312021-03-08  Tom Tromey  <tom@tromey.com>
4532
4533	* go-exp.y: Create operations.
4534	(go_language::parser): Update.
4535
45362021-03-08  Tom Tromey  <tom@tromey.com>
4537
4538	* objc-lang.c (end_msglist): Create operations.
4539	* c-exp.y: Change parser to create operations.
4540	(write_destructor_name): Remove.
4541	(c_parse): Update.
4542
45432021-03-08  Tom Tromey  <tom@tromey.com>
4544
4545	* rust-exp.y: Create operations.
4546	(rust_parser::convert_params_to_expression): Change return type.
4547	(binop_maker_ftype): New typedef.
4548	(maker_map): New global.
4549	(rust_parser::convert_ast_to_expression): Change return type.
4550	(rust_language::parser): Update.
4551	(_initialize_rust_exp): Initialize maker_map.
4552
45532021-03-08  Tom Tromey  <tom@tromey.com>
4554
4555	* stap-probe.c (binop_maker_ftype): New typedef.
4556	(stap_maker_map): New global.
4557	(stap_make_binop): New function.
4558	(stap_parse_register_operand): Return operation_up.
4559	(stap_parse_single_operand, stap_parse_argument_conditionally)
4560	(stap_parse_argument_1): Likewise.
4561	(stap_parse_argument): Create operations.
4562	(stap_probe::parse_arguments): Update.
4563	(_initialize_stap_probe): Initialize stap_maker_map.
4564	* ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4565	type.
4566	* i386-tdep.h (i386_stap_parse_special_token): Change return
4567	type.
4568	* i386-tdep.c (i386_stap_parse_special_token_triplet)
4569	(i386_stap_parse_special_token_three_arg_disp)
4570	(i386_stap_parse_special_token): Change return type.
4571	* gdbarch.sh (stap_parse_special_token): Change return type.
4572	* gdbarch.c: Rebuild.
4573	* gdbarch.h: Rebuild.
4574	* arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4575	type.
4576	* aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4577	return type.
4578
45792021-03-08  Tom Tromey  <tom@tromey.com>
4580
4581	* gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4582	* gdbarch.h: Rebuild.
4583	* gdbarch.c: Rebuild.
4584	* dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4585	* amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4586	return type.
4587	(amd64_dtrace_parse_probe_argument): Update.
4588
45892021-03-08  Tom Tromey  <tom@tromey.com>
4590
4591	* parser-defs.h (struct parser_state) <push, push_new,
4592	push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4593	wrap2>: New methods.
4594	<m_operations>: New member.
4595	* parse.c (parser_state::push_c_string)
4596	(parser_state::push_symbol, parser_state::push_dollar): New
4597	methods.
4598
45992021-03-08  Tom Tromey  <tom@tromey.com>
4600
4601	* parser-defs.h (struct expr_completion_state) <expout_last_op>:
4602	New member.
4603	(struct parser_state) <mark_struct_expression>: New method.
4604	* parse.c (parser_state::mark_struct_expression): Update assert.
4605	(parser_state::mark_struct_expression): New method.
4606	(parser_state::mark_completion_tag): Update assert.
4607	(parse_expression_for_completion): Handle expout_last_op.
4608
46092021-03-08  Tom Tromey  <tom@tromey.com>
4610
4611	* ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4612	now in superclass.
4613	* value.h (fetch_subexp_value): Add "op" parameter.
4614	* value.c (init_if_undefined_command): Update.
4615	* tracepoint.c (validate_actionline, encode_actions_1): Update.
4616	* stap-probe.c (stap_probe::compile_to_ax): Update.
4617	* printcmd.c (set_command): Update.
4618	* ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4619	Update.
4620	* parser-defs.h (struct expr_builder) <set_operation>: New
4621	method.
4622	* parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4623	* expression.h (struct expression) <first_opcode>: Update.
4624	<op>: New member.
4625	* expprint.c (dump_raw_expression, dump_prefix_expression):
4626	Update.
4627	* expop.h (class var_value_operation) <get_symbol>: New method.
4628	(class register_operation) <get_name>: New method.
4629	(class equal_operation): No longer a typedef, now a subclass.
4630	(class unop_memval_operation) <get_type>: New method.
4631	(class assign_operation) <get_lhs>: New method.
4632	(class unop_cast_operation) <get_type>: New method.
4633	* eval.c (evaluate_expression, evaluate_type)
4634	(evaluate_subexpression_type): Update.
4635	(fetch_subexp_value): Add "op" parameter.
4636	(parse_and_eval_type): Update.
4637	* dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4638	* breakpoint.c (update_watchpoint, watchpoint_check)
4639	(watchpoint_exp_is_const, watch_command_1): Update.
4640	* ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4641	Update.
4642
46432021-03-08  Tom Tromey  <tom@tromey.com>
4644
4645	* ada-lang.c (ada_value_binop): Do not use op_string.
4646
46472021-03-08  Tom Tromey  <tom@tromey.com>
4648
4649	* expprint.c (dump_for_expression): New overload.
4650	* expop.h (check_objfile, dump_for_expression): Declare new
4651	overloads.
4652	* ada-lang.c (check_objfile): New overload.
4653	(assign_component, ada_aggregate_component::uses_objfile)
4654	(ada_aggregate_component::dump, ada_aggregate_component::assign)
4655	(ada_aggregate_component::assign_aggregate)
4656	(ada_positional_component::uses_objfile)
4657	(ada_positional_component::dump, ada_positional_component::assign)
4658	(ada_discrete_range_association::uses_objfile)
4659	(ada_discrete_range_association::dump)
4660	(ada_discrete_range_association::assign)
4661	(ada_name_association::uses_objfile, ada_name_association::dump)
4662	(ada_name_association::assign)
4663	(ada_choices_component::uses_objfile, ada_choices_component::dump)
4664	(ada_choices_component::assign)
4665	(ada_others_component::uses_objfile, ada_others_component::dump)
4666	(ada_others_component::assign, ada_assign_operation::evaluate):
4667	New methods.
4668	* ada-exp.h (ada_string_operation) <get_name>: New method.
4669	(class ada_assign_operation): New.
4670	(class ada_component): New.
4671	(ada_component_up): New typedef.
4672	(class ada_aggregate_operation, class ada_aggregate_component)
4673	(class ada_positional_component, class ada_others_component)
4674	(class ada_association): New.
4675	(ada_association_up): New typedef.
4676	(class ada_choices_component)
4677	(class ada_discrete_range_association)
4678	(class ada_name_association): New.
4679
46802021-03-08  Tom Tromey  <tom@tromey.com>
4681
4682	* ada-lang.c (ada_var_value_operation::resolve)
4683	(ada_funcall_operation::resolve)
4684	(ada_ternop_slice_operation::resolve): New methods.
4685	* ada-exp.h (struct ada_resolvable): New.
4686	(class ada_var_value_operation): Derive from ada_resolvable.
4687	<get_block, resolve>: New methods.
4688	(class ada_funcall_operation): Derive from ada_resolvable.
4689	<resolve>: New method.
4690	(class ada_ternop_slice_operation): Derive from ada_resolvable.
4691	<resolve>: New method.
4692
46932021-03-08  Tom Tromey  <tom@tromey.com>
4694
4695	* ada-lang.c (ada_funcall_operation::evaluate): New method.
4696	* ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4697	method.
4698	(class ada_funcall_operation): New.
4699
47002021-03-08  Tom Tromey  <tom@tromey.com>
4701
4702	* ada-lang.c (ada_structop_operation::evaluate): New method.
4703	* ada-exp.h (class ada_structop_operation): New.
4704
47052021-03-08  Tom Tromey  <tom@tromey.com>
4706
4707	* ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4708	* ada-exp.h (class ada_unop_ind_operation): New.
4709
47102021-03-08  Tom Tromey  <tom@tromey.com>
4711
4712	* ada-lang.c (ada_binop_exp): No longer static.
4713	* ada-exp.h (ada_binop_exp_operation): New typedef.
4714
47152021-03-08  Tom Tromey  <tom@tromey.com>
4716
4717	* ada-lang.c (ada_val_atr): No longer static.
4718	(ada_atr_val_operation::evaluate): New method.
4719	* ada-exp.h (class ada_atr_val_operation): New.
4720
47212021-03-08  Tom Tromey  <tom@tromey.com>
4722
4723	* ada-lang.c (ada_pos_atr): No longer static.
4724	* ada-exp.h (ada_pos_operation): New typedef.
4725
47262021-03-08  Tom Tromey  <tom@tromey.com>
4727
4728	* ada-lang.c (ada_pos_atr): Rename from value_pos_atr.  Change
4729	parameters.
4730	(ada_evaluate_subexp): Use it.
4731
47322021-03-08  Tom Tromey  <tom@tromey.com>
4733
4734	* ada-lang.c (ada_binop_minmax): No longer static.
4735	* ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4736	New typedefs.
4737
47382021-03-08  Tom Tromey  <tom@tromey.com>
4739
4740	* ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4741	New method.
4742	* ada-exp.h (class ada_var_msym_value_operation): New.
4743
47442021-03-08  Tom Tromey  <tom@tromey.com>
4745
4746	* ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4747	(ada_var_value_operation::evaluate): New methods.
4748	* ada-exp.h (class ada_var_value_operation): New.
4749
47502021-03-08  Tom Tromey  <tom@tromey.com>
4751
4752	* ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4753	* ada-exp.h (class ada_unop_atr_operation): New.
4754
47552021-03-08  Tom Tromey  <tom@tromey.com>
4756
4757	* ada-lang.c (ada_binop_in_bounds): No longer static.
4758	* ada-exp.h (class ada_binop_in_bounds_operation): New.
4759
47602021-03-08  Tom Tromey  <tom@tromey.com>
4761
4762	* ada-lang.c (ada_ternop_slice): No longer static.
4763	* ada-exp.h (class ada_ternop_slice_operation): New.
4764
47652021-03-08  Tom Tromey  <tom@tromey.com>
4766
4767	* ada-exp.h (ada_bitwise_operation): New template class.
4768	(ada_bitwise_and_operation, ada_bitwise_ior_operation)
4769	(ada_bitwise_xor_operation): New typedefs.
4770
47712021-03-08  Tom Tromey  <tom@tromey.com>
4772
4773	* ada-lang.c (ada_equal_binop): No longer static.
4774	* ada-exp.h (class ada_binop_equal_operation): New.
4775
47762021-03-08  Tom Tromey  <tom@tromey.com>
4777
4778	* ada-lang.c (ada_mult_binop): No longer static.
4779	* ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4780	(ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4781
47822021-03-08  Tom Tromey  <tom@tromey.com>
4783
4784	* ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4785	* ada-exp.h (class ada_binop_addsub_operation): New.
4786
47872021-03-08  Tom Tromey  <tom@tromey.com>
4788
4789	* ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4790	(ada_resolve_variable): Declare.
4791	* ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4792	(ada_resolve_variable): New functions.
4793	(resolve_subexp): Update.
4794
47952021-03-08  Tom Tromey  <tom@tromey.com>
4796
4797	* opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4798	method.
4799	* c-exp.h (class opencl_ternop_cond_operation): New.
4800
48012021-03-08  Tom Tromey  <tom@tromey.com>
4802
4803	* opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4804	method.
4805	* c-exp.h (class opencl_logical_binop_operation): New.
4806
48072021-03-08  Tom Tromey  <tom@tromey.com>
4808
4809	* opencl-lang.c (opencl_structop_operation::evaluate): New
4810	method.
4811	* c-exp.h (class opencl_structop_operation): New.
4812
48132021-03-08  Tom Tromey  <tom@tromey.com>
4814
4815	* opencl-lang.c (opencl_logical_not): No longer static.  Change
4816	parameters.
4817	(evaluate_subexp_opencl): Update.
4818	* c-exp.h (opencl_notequal_operation): New typedef.
4819
48202021-03-08  Tom Tromey  <tom@tromey.com>
4821
4822	* opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4823	static.  Change parameters.
4824	(eval_opencl_assign): No longer static.  Add "op" parameter.
4825	(evaluate_subexp_opencl): Update.
4826	* c-exp.h (opencl_binop_operation): New template class.
4827	(opencl_assign_operation, opencl_equal_operation)
4828	(opencl_notequal_operation, opencl_less_operation)
4829	(opencl_gtr_operation, opencl_geq_operation)
4830	(opencl_leq_operation): New typedefs.
4831
48322021-03-08  Tom Tromey  <tom@tromey.com>
4833
4834	* opencl-lang.c (opencl_value_cast): No longer static.
4835	* c-exp.h (opencl_cast_type_operation): New typedef.
4836
48372021-03-08  Tom Tromey  <tom@tromey.com>
4838
4839	* f-exp.h (eval_op_f_allocated): Declare.
4840	(fortran_allocated_operation): New typedef.
4841	* f-lang.c (eval_op_f_allocated): No longer static.
4842
48432021-03-08  Tom Tromey  <tom@tromey.com>
4844
4845	* f-lang.c (eval_op_f_associated): New functions.
4846	* f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4847	typedefs.
4848
48492021-03-08  Tom Tromey  <tom@tromey.com>
4850
4851	* f-lang.c (fortran_bound_1arg::evaluate)
4852	(fortran_bound_2arg::evaluate): New methods.
4853	* f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4854	New.
4855
48562021-03-08  Tom Tromey  <tom@tromey.com>
4857
4858	* expop.h (class unop_addr_operation) <get_expression>: New
4859	method.
4860	* f-lang.c (fortran_undetermined::value_subarray)
4861	(fortran_undetermined::evaluate): New methods.
4862	(fortran_prepare_argument): New overload.
4863	* f-exp.h (class fortran_range_operation)
4864	(class fortran_undetermined): New classes.
4865
48662021-03-08  Tom Tromey  <tom@tromey.com>
4867
4868	* rust-lang.c (rust_structop::evaluate_funcall): New method.
4869	* rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4870	method.
4871
48722021-03-08  Tom Tromey  <tom@tromey.com>
4873
4874	* expression.h (class operation) <evaluate_funcall>: New methods.
4875	* expop.h (class scope_operation) <evaluate_funcall>: New method.
4876	(class var_value_operation) <evaluate_funcall>: New method.
4877	(class structop_base_operation) <evaluate_funcall>: New method.
4878	(class var_msym_value_operation) <evaluate_funcall>: New method.
4879	(class structop_member_base): New class.
4880	(class structop_member_operation): Derive from
4881	structop_member_base.
4882	(class structop_mptr_operation): Derive from
4883	structop_member_base.
4884	(class funcall_operation): New class.
4885	* eval.c (operation::evaluate_funcall)
4886	(var_value_operation::evaluate_funcall)
4887	(scope_operation::evaluate_funcall)
4888	(structop_member_base::evaluate_funcall)
4889	(structop_base_operation::evaluate_funcall): New methods.
4890
48912021-03-08  Tom Tromey  <tom@tromey.com>
4892
4893	* expop.h (class array_operation): New.
4894	* eval.c (array_operation::evaluate_struct_tuple)
4895	(array_operation::evaluate): New methods.
4896
48972021-03-08  Tom Tromey  <tom@tromey.com>
4898
4899	* expop.h (class adl_func_operation): New.
4900	* eval.c (adl_func_operation::evaluate): New method.
4901
49022021-03-08  Tom Tromey  <tom@tromey.com>
4903
4904	* ada-lang.c (ada_unop_in_range): No longer static.
4905	* ada-exp.h (class ada_unop_range_operation): New.
4906
49072021-03-08  Tom Tromey  <tom@tromey.com>
4908
4909	* ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4910	No longer static.
4911	* ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4912	(ada_atr_size_operation, ada_abs_operation): New typedefs.
4913
49142021-03-08  Tom Tromey  <tom@tromey.com>
4915
4916	* expop.h (class logical_and_operation)
4917	(class logical_or_operation): New.
4918	* eval.c (logical_and_operation::evaluate)
4919	(logical_or_operation::evaluate): New methods.
4920	* ax-gdb.c (logical_and_operation::do_generate_ax)
4921	(logical_or_operation::do_generate_ax): New methods.
4922
49232021-03-08  Tom Tromey  <tom@tromey.com>
4924
4925	* m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4926	static.
4927	* m2-exp.h: New file.
4928
49292021-03-08  Tom Tromey  <tom@tromey.com>
4930
4931	* rust-lang.c (rust_aggregate_operation::evaluate): New method.
4932	* rust-exp.h (class rust_aggregate_operation): New.
4933
49342021-03-08  Tom Tromey  <tom@tromey.com>
4935
4936	* rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4937	No longer static.
4938	* rust-exp.h (class rust_struct_anon): New.
4939	(class rust_structop): New.
4940
49412021-03-08  Tom Tromey  <tom@tromey.com>
4942
4943	* rust-lang.c (rust_range): No longer static.
4944	* rust-exp.h (class rust_range_operation): New.
4945
49462021-03-08  Tom Tromey  <tom@tromey.com>
4947
4948	* rust-lang.c (rust_subscript): No longer static.
4949	* rust-exp.h (class rust_subscript_operation): New.
4950
49512021-03-08  Tom Tromey  <tom@tromey.com>
4952
4953	* rust-lang.c (eval_op_rust_ind): No longer static.  Add "opcode"
4954	parameter.
4955	(rust_evaluate_subexp): Update.
4956	* rust-exp.h (class rust_unop_ind_operation): New.
4957
49582021-03-08  Tom Tromey  <tom@tromey.com>
4959
4960	* rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4961	longer static.  Add "opcode" parameter.
4962	(rust_evaluate_subexp): Update.
4963	* rust-exp.h: New file.
4964
49652021-03-08  Tom Tromey  <tom@tromey.com>
4966
4967	* f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4968	(eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4969	(eval_op_f_kind): No longer static.  Add "opcode" parameter.
4970	(evaluate_subexp_f): Update.
4971	* f-exp.h: New file.
4972
49732021-03-08  Tom Tromey  <tom@tromey.com>
4974
4975	* ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4976	* ada-exp.h (class ada_ternop_range_operation): New.
4977
49782021-03-08  Tom Tromey  <tom@tromey.com>
4979
4980	* ada-lang.c (ada_qual_operation::evaluate): New method.
4981	* ada-exp.h (class ada_qual_operation): New.
4982
49832021-03-08  Tom Tromey  <tom@tromey.com>
4984
4985	* ada-lang.c (ada_string_operation::evaluate): New method.
4986	* ada-exp.h (class ada_string_operation): New.
4987
49882021-03-08  Tom Tromey  <tom@tromey.com>
4989
4990	* ada-lang.c (ada_wrapped_operation::evaluate): New method.
4991	* ada-exp.h: New file.
4992
49932021-03-08  Tom Tromey  <tom@tromey.com>
4994
4995	* expop.h (class multi_subscript_operation): New.
4996	* eval.c (multi_subscript_operation::evaluate): New method.
4997
49982021-03-08  Tom Tromey  <tom@tromey.com>
4999
5000	* eval.c (objc_msgcall_operation::evaluate): New method.
5001	* c-exp.h (class objc_msgcall_operation): New.
5002
50032021-03-08  Tom Tromey  <tom@tromey.com>
5004
5005	* expop.h (class var_value_operation): New.
5006	* eval.c (var_value_operation::evaluate)
5007	(var_value_operation::evaluate_for_address)
5008	(var_value_operation::evaluate_with_coercion)
5009	(var_value_operation::evaluate_for_sizeof)
5010	(var_value_operation::evaluate_for_cast): New methods.
5011	* ax-gdb.c (var_value_operation::do_generate_ax): New method.
5012
50132021-03-08  Tom Tromey  <tom@tromey.com>
5014
5015	* expop.h (cxx_cast_ftype): New typedef.
5016	(cxx_cast_operation): New template.
5017	(dynamic_cast_operation, reinterpret_cast_operation): New
5018	typedefs.
5019
50202021-03-08  Tom Tromey  <tom@tromey.com>
5021
5022	* expop.h (class unop_cast_type_operation): New.
5023	* ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
5024	method.
5025
50262021-03-08  Tom Tromey  <tom@tromey.com>
5027
5028	* expop.h (class unop_cast_operation): New.
5029	* ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
5030
50312021-03-08  Tom Tromey  <tom@tromey.com>
5032
5033	* expop.h (class assign_modify_operation): New.
5034	* eval.c (eval_binop_assign_modify): No longer static.
5035	* ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
5036
50372021-03-08  Tom Tromey  <tom@tromey.com>
5038
5039	* expop.h (class assign_operation): New.
5040	* ax-gdb.c (assign_operation::do_generate_ax): New method.
5041
50422021-03-08  Tom Tromey  <tom@tromey.com>
5043
5044	* expop.h (class type_instance_operation): New.
5045	* eval.c (type_instance_operation::evaluate): New method.
5046
50472021-03-08  Tom Tromey  <tom@tromey.com>
5048
5049	* expop.h (class op_this_operation): New.
5050	* ax-gdb.c (op_this_operation::do_generate_ax): New method.
5051
50522021-03-08  Tom Tromey  <tom@tromey.com>
5053
5054	* expop.h (class unop_memval_operation)
5055	(class unop_memval_type_operation): New.
5056	* eval.c (eval_op_memval): No longer static.
5057	(unop_memval_operation::evaluate_for_address)
5058	(unop_memval_type_operation::evaluate_for_address)
5059	(unop_memval_operation::evaluate_for_sizeof)
5060	(unop_memval_type_operation::evaluate_for_sizeof): New methods.
5061	* ax-gdb.c (unop_memval_operation::do_generate_ax)
5062	(unop_memval_type_operation::do_generate_ax): New methods.
5063
50642021-03-08  Tom Tromey  <tom@tromey.com>
5065
5066	* expop.h (class unop_alignof_operation): New.
5067	* eval.c (eval_op_alignof): No longer static.
5068
50692021-03-08  Tom Tromey  <tom@tromey.com>
5070
5071	* expop.h (class unop_sizeof_operation): New.
5072	* ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
5073
50742021-03-08  Tom Tromey  <tom@tromey.com>
5075
5076	* expop.h (class unop_addr_operation): New.
5077	* ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
5078
50792021-03-08  Tom Tromey  <tom@tromey.com>
5080
5081	* expop.h (class typeid_operation): New.
5082
50832021-03-08  Tom Tromey  <tom@tromey.com>
5084
5085	* expop.h (class decltype_operation): New.
5086
50872021-03-08  Tom Tromey  <tom@tromey.com>
5088
5089	* expop.h (class typeof_operation): New.
5090
50912021-03-08  Tom Tromey  <tom@tromey.com>
5092
5093	* expop.h (class type_operation): New.
5094	* eval.c (eval_op_type): No longer static.
5095
50962021-03-08  Tom Tromey  <tom@tromey.com>
5097
5098	* expop.h (class unop_ind_base_operation)
5099	(class unop_ind_operation): New.
5100	* eval.c (eval_op_ind): No longer static.  Remove "op" parameter.
5101	(unop_ind_base_operation::evaluate_for_address)
5102	(unop_ind_base_operation::evaluate_for_sizeof): New method.
5103	* ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
5104
51052021-03-08  Tom Tromey  <tom@tromey.com>
5106
5107	* expop.h (unop_incr_operation): New template.
5108	(preinc_operation, predec_operation, postinc_operation)
5109	(postdec_operation): New typedefs.
5110	* eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
5111	(eval_op_postdec): No longer static.
5112
51132021-03-08  Tom Tromey  <tom@tromey.com>
5114
5115	* expop.h (unary_ftype): New typedef.
5116	(unop_operation, usual_ax_binop_operation): New templates.
5117	(unary_plus_operation, unary_neg_operation)
5118	(unary_complement_operation, unary_logical_not_operation): New
5119	typedefs.
5120	* eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
5121	(eval_op_lognot): No longer static.
5122	* ax-gdb.c (gen_expr_unop): New function.
5123
51242021-03-08  Tom Tromey  <tom@tromey.com>
5125
5126	* ax-gdb.c (comma_operation::do_generate_ax): New method.
5127
51282021-03-08  Tom Tromey  <tom@tromey.com>
5129
5130	* expop.h (class repeat_operation): New.
5131	* eval.c (eval_op_repeat): No longer static.  Remove "op"
5132	parameter.
5133	(evaluate_subexp_standard): Update.
5134	* ax-gdb.c (repeat_operation::do_generate_ax): New method.
5135
51362021-03-08  Tom Tromey  <tom@tromey.com>
5137
5138	* expop.h (class comparison_operation): New.
5139	(equal_operation, notequal_operation, less_operation)
5140	(gtr_operation, geq_operation, leq_operation): New typedefs.
5141	* eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
5142	(eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
5143
51442021-03-08  Tom Tromey  <tom@tromey.com>
5145
5146	* expop.h (class subscript_operation): New.
5147	* eval.c (eval_op_subscript): No longer static.
5148
51492021-03-08  Tom Tromey  <tom@tromey.com>
5150
5151	* expop.h (class binop_operation, class usual_ax_binop_operation):
5152	New.
5153	(exp_operation, intdiv_operation, mod_operation, mul_operation)
5154	(div_operation, rem_operation, lsh_operation, rsh_operation)
5155	(bitwise_and_operation, bitwise_ior_operation)
5156	(bitwise_xor_operation): New typedefs.
5157	* eval.c (eval_op_binary): No longer static.
5158
51592021-03-08  Tom Tromey  <tom@tromey.com>
5160
5161	* expop.h (class sub_operation): New.
5162	* eval.c (eval_op_sub): No longer static.  Remove "op" parameter.
5163	(evaluate_subexp_standard): Update.
5164
51652021-03-08  Tom Tromey  <tom@tromey.com>
5166
5167	* expop.h (class add_operation): New.
5168	* eval.c (eval_op_add): No longer static.  Remove "op" parameter.
5169	(evaluate_subexp_standard): Update.
5170
51712021-03-08  Tom Tromey  <tom@tromey.com>
5172
5173	* expop.h (class concat_operation): New.
5174	* eval.c (eval_op_concat): No longer static.  Remove "op"
5175	parameter.
5176	(evaluate_subexp_standard): Update.
5177
51782021-03-08  Tom Tromey  <tom@tromey.com>
5179
5180	* expop.h (class structop_member_operation)
5181	(class structop_mptr_operation): New.
5182	* eval.c (eval_op_member): No longer static.
5183
51842021-03-08  Tom Tromey  <tom@tromey.com>
5185
5186	* expop.h (class structop_ptr_operation): New.
5187	* eval.c (eval_op_structop_ptr): No longer static.  Remove "op"
5188	parameter.
5189
51902021-03-08  Tom Tromey  <tom@tromey.com>
5191
5192	* expop.h (class structop_base_operation)
5193	(class structop_operation): New.
5194	* eval.c (eval_op_structop_struct): No longer static.
5195
51962021-03-08  Tom Tromey  <tom@tromey.com>
5197
5198	* expop.h (class complex_operation): New.
5199
52002021-03-08  Tom Tromey  <tom@tromey.com>
5201
5202	* eval.c (eval_op_objc_selector): No longer static.
5203	* c-exp.h (class objc_selector_operation): New.
5204
52052021-03-08  Tom Tromey  <tom@tromey.com>
5206
5207	* eval.c: Include c-exp.h.
5208	* c-exp.h (class objc_nsstring_operation): New.
5209
52102021-03-08  Tom Tromey  <tom@tromey.com>
5211
5212	* c-lang.c (c_string_operation::evaluate): New method.
5213	* c-exp.h: New file.
5214
52152021-03-08  Tom Tromey  <tom@tromey.com>
5216
5217	* expop.h (class ternop_cond_operation): New.
5218	* ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
5219
52202021-03-08  Tom Tromey  <tom@tromey.com>
5221
5222	* expop.h (class ternop_slice_operation): New.
5223	* eval.c (eval_op_ternop): No longer static.
5224
52252021-03-08  Tom Tromey  <tom@tromey.com>
5226
5227	* expop.h (class string_operation): New.
5228	* eval.c (eval_op_string): No longer static.
5229
52302021-03-08  Tom Tromey  <tom@tromey.com>
5231
5232	* expop.h (class internalvar_operation): New.
5233	* ax-gdb.c (internalvar_operation::do_generate_ax): New method.
5234
52352021-03-08  Tom Tromey  <tom@tromey.com>
5236
5237	* expop.h (class bool_operation): New.
5238
52392021-03-08  Tom Tromey  <tom@tromey.com>
5240
5241	* expop.h (class register_operation): New.
5242	* eval.c (eval_op_register): No longer static.
5243	* ax-gdb.c (register_operation::do_generate_ax): New method.
5244
52452021-03-08  Tom Tromey  <tom@tromey.com>
5246
5247	* expop.h (class last_operation): New.
5248
52492021-03-08  Tom Tromey  <tom@tromey.com>
5250
5251	* expop.h (class func_static_var_operation): New.
5252	* eval.c (eval_op_func_static_var): No longer static.
5253
52542021-03-08  Tom Tromey  <tom@tromey.com>
5255
5256	* expop.h (class var_entry_value_operation): New.
5257	* eval.c (eval_op_var_entry_value): No longer static.
5258
52592021-03-08  Tom Tromey  <tom@tromey.com>
5260
5261	* expression.h (class operation) <set_outermost>: New method.
5262	* expop.h (class var_msym_value_operation): New.
5263	* eval.c (eval_op_var_msym_value): No longer static.
5264	(var_msym_value_operation::evaluate_for_address)
5265	(var_msym_value_operation::evaluate_for_sizeof)
5266	(var_msym_value_operation::evaluate_for_cast): New methods.
5267	* ax-gdb.c (var_msym_value_operation::do_generate_ax): New
5268	method.
5269
52702021-03-08  Tom Tromey  <tom@tromey.com>
5271
5272	* expop.h (class long_const_operation): New.
5273	* ax-gdb.c (long_const_operation::do_generate_ax): New method.
5274
52752021-03-08  Tom Tromey  <tom@tromey.com>
5276
5277	* expop.h (class scope_operation): New.
5278	* eval.c (eval_op_scope): No longer static.
5279	(scope_operation::evaluate_for_address): New method.
5280	* ax-gdb.c (scope_operation::do_generate_ax): New method.
5281
52822021-03-08  Tom Tromey  <tom@tromey.com>
5283
5284	* expprint.c (float_const_operation::dump): New method.
5285	* expop.h (float_data): New typedef.
5286	(class float_const_operation): New.
5287
52882021-03-08  Tom Tromey  <tom@tromey.com>
5289
5290	* expop.h (gen_expr_binop, gen_expr_structop): Declare.
5291	* ax-gdb.c (gen_expr_binop): New function.
5292	(gen_expr_structop): Likewise.
5293
52942021-03-08  Tom Tromey  <tom@tromey.com>
5295
5296	* expprint.c (expr::dump_for_expression): New functions.
5297	* expop.h (dump_for_expression): New overloads.
5298	(tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5299	Update.
5300
53012021-03-08  Tom Tromey  <tom@tromey.com>
5302
5303	* expression.h (expr::operation): New class.
5304	(expr::make_operation): New function.
5305	(expr::operation_up): New typedef.
5306	* expop.h: New file.
5307	* eval.c (operation::evaluate_for_cast)
5308	(operation::evaluate_for_address, operation::evaluate_for_sizeof):
5309	New methods.
5310	* ax-gdb.c (operation::generate_ax): New method.
5311
53122021-03-08  Tom Tromey  <tom@tromey.com>
5313
5314	* ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5315	(gen_expr_binop_rest): New overload.
5316
53172021-03-08  Tom Tromey  <tom@tromey.com>
5318
5319	* eval.c (eval_multi_subscript): New function.
5320	(evaluate_subexp_standard): Use it.
5321
53222021-03-08  Tom Tromey  <tom@tromey.com>
5323
5324	* ada-lang.c (ada_binop_exp): New function.
5325	(ada_evaluate_subexp): Use it.
5326
53272021-03-08  Tom Tromey  <tom@tromey.com>
5328
5329	* ada-lang.c (ada_val_atr): Rename from value_val_atr.  Change
5330	parameters.
5331	(ada_evaluate_subexp): Use it.
5332
53332021-03-08  Tom Tromey  <tom@tromey.com>
5334
5335	* ada-lang.c (ada_binop_minmax): New function.
5336	(ada_evaluate_subexp): Use it.
5337
53382021-03-08  Tom Tromey  <tom@tromey.com>
5339
5340	* ada-lang.c (ada_unop_atr): New function.
5341	(ada_evaluate_subexp): Use it.
5342
53432021-03-08  Tom Tromey  <tom@tromey.com>
5344
5345	* ada-lang.c (ada_binop_in_bounds): New function.
5346	(ada_evaluate_subexp): Use it.
5347
53482021-03-08  Tom Tromey  <tom@tromey.com>
5349
5350	* ada-lang.c (ada_ternop_slice): New function.
5351	(ada_evaluate_subexp): Use it.
5352
53532021-03-08  Tom Tromey  <tom@tromey.com>
5354
5355	* ada-lang.c (ada_equal_binop): New function.
5356	(ada_evaluate_subexp): Use it.
5357
53582021-03-08  Tom Tromey  <tom@tromey.com>
5359
5360	* ada-lang.c (ada_mult_binop): New function.
5361	(ada_evaluate_subexp): Use it.
5362
53632021-03-08  Tom Tromey  <tom@tromey.com>
5364
5365	* ada-lang.c (ada_abs): New function.
5366	(ada_evaluate_subexp): Use it.
5367
53682021-03-08  Tom Tromey  <tom@tromey.com>
5369
5370	* ada-lang.c (ada_atr_size): New function.
5371	(ada_evaluate_subexp): Use it.
5372
53732021-03-08  Tom Tromey  <tom@tromey.com>
5374
5375	* ada-lang.c (ada_atr_tag): New function.
5376	(ada_evaluate_subexp): Use it.
5377
53782021-03-08  Tom Tromey  <tom@tromey.com>
5379
5380	* ada-lang.c (ada_unop_in_range): New function.
5381	(ada_evaluate_subexp): Use it.
5382
53832021-03-08  Tom Tromey  <tom@tromey.com>
5384
5385	* ada-lang.c (ada_unop_neg): New function.
5386	(ada_evaluate_subexp): Use it.
5387
53882021-03-08  Tom Tromey  <tom@tromey.com>
5389
5390	* ada-lang.c (eval_ternop_in_range): New function.
5391	(ada_evaluate_subexp): Use it.
5392
53932021-03-08  Tom Tromey  <tom@tromey.com>
5394
5395	* opencl-lang.c (eval_opencl_assign): New function.
5396	(evaluate_subexp_opencl): Use it.
5397
53982021-03-08  Tom Tromey  <tom@tromey.com>
5399
5400	* eval.c (eval_op_objc_msgcall): New function.
5401	(evaluate_subexp_standard): Use it.
5402
54032021-03-08  Tom Tromey  <tom@tromey.com>
5404
5405	* eval.c (eval_binop_assign_modify): New function.
5406	(evaluate_subexp_standard): Use it.
5407
54082021-03-08  Tom Tromey  <tom@tromey.com>
5409
5410	* m2-lang.c (eval_op_m2_subscript): New function.
5411	(evaluate_subexp_modula2): Use it.
5412
54132021-03-08  Tom Tromey  <tom@tromey.com>
5414
5415	* m2-lang.c (eval_op_m2_high): New function.
5416	(evaluate_subexp_modula2): Use it.
5417
54182021-03-08  Tom Tromey  <tom@tromey.com>
5419
5420	* eval.c (evaluate_subexp_for_address_base): New function.
5421	(evaluate_subexp_for_address): Use it.
5422	(evaluate_subexp_for_sizeof_base): New function.
5423	(evaluate_subexp_for_sizeof): Use it.
5424
54252021-03-08  Tom Tromey  <tom@tromey.com>
5426
5427	* rust-lang.c (eval_op_rust_structop): New function.
5428	(rust_evaluate_subexp): Use it.
5429
54302021-03-08  Tom Tromey  <tom@tromey.com>
5431
5432	* rust-lang.c (eval_op_rust_struct_anon): New function.
5433	(rust_evaluate_subexp): Use it.
5434
54352021-03-08  Tom Tromey  <tom@tromey.com>
5436
5437	* rust-lang.c (eval_op_rust_array): New function.
5438	(rust_evaluate_subexp): Use it.
5439
54402021-03-08  Tom Tromey  <tom@tromey.com>
5441
5442	* rust-lang.c (eval_op_rust_complement): New function.
5443	(rust_evaluate_subexp): Use it.
5444
54452021-03-08  Tom Tromey  <tom@tromey.com>
5446
5447	* rust-lang.c (eval_op_rust_ind): New function.
5448	(rust_evaluate_subexp): Use it.
5449
54502021-03-08  Tom Tromey  <tom@tromey.com>
5451
5452	* rust-lang.c (rust_subscript): Change parameters.
5453	(rust_evaluate_subexp): Update.
5454
54552021-03-08  Tom Tromey  <tom@tromey.com>
5456
5457	* rust-lang.c (rust_range): Change parameters.
5458	(rust_evaluate_subexp): Update.
5459
54602021-03-08  Tom Tromey  <tom@tromey.com>
5461
5462	* f-lang.c (eval_op_f_allocated): New function.
5463	(evaluate_subexp_f): Use it.
5464
54652021-03-08  Tom Tromey  <tom@tromey.com>
5466
5467	* f-lang.c (fortran_require_array): New function.
5468	(evaluate_subexp_f): Use it.
5469
54702021-03-08  Tom Tromey  <tom@tromey.com>
5471
5472	* f-lang.c (eval_op_f_kind): New function.
5473	(evaluate_subexp_f): Use it.
5474
54752021-03-08  Tom Tromey  <tom@tromey.com>
5476
5477	* f-lang.c (eval_op_f_cmplx): New function.
5478	(evaluate_subexp_f): Use it.
5479
54802021-03-08  Tom Tromey  <tom@tromey.com>
5481
5482	* f-lang.c (eval_op_f_modulo): New function.
5483	(evaluate_subexp_f): Use it.
5484
54852021-03-08  Tom Tromey  <tom@tromey.com>
5486
5487	* f-lang.c (eval_op_f_floor): New function.
5488	(evaluate_subexp_f): Use it.
5489
54902021-03-08  Tom Tromey  <tom@tromey.com>
5491
5492	* f-lang.c (eval_op_f_ceil): New function.
5493	(evaluate_subexp_f): Use it.
5494
54952021-03-08  Tom Tromey  <tom@tromey.com>
5496
5497	* f-lang.c (eval_op_f_mod): New function.
5498	(evaluate_subexp_f): Use it.
5499
55002021-03-08  Tom Tromey  <tom@tromey.com>
5501
5502	* f-lang.c (eval_op_f_abs): New function.
5503	(evaluate_subexp_f): Use it.
5504
55052021-03-08  Tom Tromey  <tom@tromey.com>
5506
5507	* eval.c (eval_op_type): New function.
5508	(evaluate_subexp_standard): Use it.
5509
55102021-03-08  Tom Tromey  <tom@tromey.com>
5511
5512	* eval.c (eval_op_postdec): New function.
5513	(evaluate_subexp_standard): Use it.
5514
55152021-03-08  Tom Tromey  <tom@tromey.com>
5516
5517	* eval.c (eval_op_postinc): New function.
5518	(evaluate_subexp_standard): Use it.
5519
55202021-03-08  Tom Tromey  <tom@tromey.com>
5521
5522	* eval.c (eval_op_predec): New file.
5523	(evaluate_subexp_standard): Use it.
5524
55252021-03-08  Tom Tromey  <tom@tromey.com>
5526
5527	* eval.c (eval_op_preinc): New function.
5528	(evaluate_subexp_standard): Use it.
5529
55302021-03-08  Tom Tromey  <tom@tromey.com>
5531
5532	* eval.c (eval_op_memval): New function.
5533	(evaluate_subexp_standard): Use it.
5534
55352021-03-08  Tom Tromey  <tom@tromey.com>
5536
5537	* eval.c (eval_op_alignof): New function.
5538	(evaluate_subexp_standard): Use it.
5539
55402021-03-08  Tom Tromey  <tom@tromey.com>
5541
5542	* eval.c (eval_op_ind): New function.
5543	(evaluate_subexp_standard): Use it.
5544
55452021-03-08  Tom Tromey  <tom@tromey.com>
5546
5547	* eval.c (eval_op_lognot): New function.
5548	(evaluate_subexp_standard): Use it.
5549
55502021-03-08  Tom Tromey  <tom@tromey.com>
5551
5552	* eval.c (eval_op_complement): New function.
5553	(evaluate_subexp_standard): Use it.
5554
55552021-03-08  Tom Tromey  <tom@tromey.com>
5556
5557	* eval.c (eval_op_neg): New function.
5558	(evaluate_subexp_standard): Use it.
5559
55602021-03-08  Tom Tromey  <tom@tromey.com>
5561
5562	* eval.c (eval_op_plus): New function.
5563	(evaluate_subexp_standard): Use it.
5564
55652021-03-08  Tom Tromey  <tom@tromey.com>
5566
5567	* eval.c (eval_op_repeat): New function.
5568	(evaluate_subexp_standard): Use it.
5569
55702021-03-08  Tom Tromey  <tom@tromey.com>
5571
5572	* eval.c (eval_op_leq): New function.
5573	(evaluate_subexp_standard): Use it.
5574
55752021-03-08  Tom Tromey  <tom@tromey.com>
5576
5577	* eval.c (eval_op_geq): New function.
5578	(evaluate_subexp_standard): Use it.
5579
55802021-03-08  Tom Tromey  <tom@tromey.com>
5581
5582	* eval.c (eval_op_gtr): New function.
5583	(evaluate_subexp_standard): Use it.
5584
55852021-03-08  Tom Tromey  <tom@tromey.com>
5586
5587	* eval.c (eval_op_less): New function.
5588	(evaluate_subexp_standard): Use it.
5589
55902021-03-08  Tom Tromey  <tom@tromey.com>
5591
5592	* eval.c (eval_op_notequal): New function.
5593	(evaluate_subexp_standard): Use it.
5594
55952021-03-08  Tom Tromey  <tom@tromey.com>
5596
5597	* eval.c (eval_op_equal): New function.
5598	(evaluate_subexp_standard): Use it.
5599
56002021-03-08  Tom Tromey  <tom@tromey.com>
5601
5602	* eval.c (eval_op_subscript): New function.
5603	(evaluate_subexp_standard): Use it.
5604
56052021-03-08  Tom Tromey  <tom@tromey.com>
5606
5607	* eval.c (eval_op_binary): New function.
5608	(evaluate_subexp_standard): Use it.
5609
56102021-03-08  Tom Tromey  <tom@tromey.com>
5611
5612	* eval.c (eval_op_sub): New function.
5613	(evaluate_subexp_standard): Use it.
5614
56152021-03-08  Tom Tromey  <tom@tromey.com>
5616
5617	* eval.c (eval_op_add): New function.
5618	(evaluate_subexp_standard): Use it.
5619
56202021-03-08  Tom Tromey  <tom@tromey.com>
5621
5622	* eval.c (eval_op_member): New function.
5623	(evaluate_subexp_standard): Use it.
5624
56252021-03-08  Tom Tromey  <tom@tromey.com>
5626
5627	* eval.c (eval_op_structop_ptr): New function.
5628	(evaluate_subexp_standard): Use it.
5629
56302021-03-08  Tom Tromey  <tom@tromey.com>
5631
5632	* eval.c (eval_op_structop_struct): New function.
5633	(evaluate_subexp_standard): Use it.
5634
56352021-03-08  Tom Tromey  <tom@tromey.com>
5636
5637	* eval.c (eval_op_ternop): New function.
5638	(evaluate_subexp_standard): Use it.
5639
56402021-03-08  Tom Tromey  <tom@tromey.com>
5641
5642	* eval.c (eval_op_concat): New function.
5643	(evaluate_subexp_standard): Use it.
5644
56452021-03-08  Tom Tromey  <tom@tromey.com>
5646
5647	* eval.c (eval_op_objc_selector): New function.
5648	(evaluate_subexp_standard): Use it.
5649
56502021-03-08  Tom Tromey  <tom@tromey.com>
5651
5652	* eval.c (eval_op_string): New function.
5653	(evaluate_subexp_standard): Use it.
5654
56552021-03-08  Tom Tromey  <tom@tromey.com>
5656
5657	* eval.c (eval_op_register): New function.
5658	(evaluate_subexp_standard): Use it.
5659
56602021-03-08  Tom Tromey  <tom@tromey.com>
5661
5662	* eval.c (eval_op_func_static_var): New function.
5663	(evaluate_subexp_standard): Use it.
5664
56652021-03-08  Tom Tromey  <tom@tromey.com>
5666
5667	* eval.c (eval_op_var_msym_value): New function.
5668	(evaluate_subexp_standard): Use it.
5669
56702021-03-08  Tom Tromey  <tom@tromey.com>
5671
5672	* eval.c (eval_op_var_entry_value): New function.
5673	(evaluate_subexp_standard): Use it.
5674
56752021-03-08  Tom Tromey  <tom@tromey.com>
5676
5677	* eval.c (eval_op_scope): New function.
5678	(evaluate_subexp_standard): Use it.
5679
56802021-03-06  Chernov Sergey  <klen_s@mail.ru>
5681
5682	PR gdb/27528:
5683	* ada-lang.c (ada_fold_name): Use gdb::to_string.
5684
56852021-03-06  Tom Tromey  <tom@tromey.com>
5686
5687	* dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5688	* dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5689	* dwarf2/read.c (dwarf2_elf_names): No longer static.
5690	(locate_dwz_sections, dwz_search_other_debugdirs)
5691	(dwarf2_get_dwz_file): Move to dwz.c.
5692	* dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5693	read.h.
5694	* dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5695	(dwarf2_get_dwz_file): Move from read.c.
5696
56972021-03-06  Tom Tromey  <tom@tromey.com>
5698
5699	* debuginfod-support.h: Include scoped_fd.h.
5700
57012021-03-06  Tom Tromey  <tom@tromey.com>
5702
5703	* dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5704	* dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5705	(get_abbrev_section_for_cu, read_attribute_value)
5706	(get_debug_line_section): Update.
5707	* dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5708
57092021-03-06  Tom Tromey  <tom@tromey.com>
5710
5711	* dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5712	method.
5713	* dwarf2/read.c (section_is_p): Remove.
5714	(dwarf2_per_bfd::locate_sections)
5715	(dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5716	(locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5717	(dwarf2_locate_common_dwp_sections)
5718	(dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5719	Update.
5720
57212021-03-06  Tom Tromey  <tom@tromey.com>
5722
5723	* xcoffread.c: Include sect-names.h.
5724	* symfile.h (struct dwarf2_section_names, struct
5725	dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5726	* dwarf2/sect-names.h: New file, from symfile.h.
5727	* dwarf2/read.c: Include sect-names.h.
5728
57292021-03-06  Tom Tromey  <tom@tromey.com>
5730
5731	* dwarf2/read.c (read_attribute): Make 'abbrev' const.
5732	* dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5733	(abbrev_table::read): Update.
5734	* dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5735	(struct abbrev_info): Reformat.
5736	<attrs>: Now an array.
5737	(struct abbrev_table) <alloc_abbrev>: Remove.
5738
57392021-03-06  Weimin Pan  <weimin.pan@oracle.com>
5740
5741	* ctfread.c (ctf_psymtab_add_enums): New function.
5742	(ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5743
57442021-03-06  Weimin Pan  <weimin.pan@oracle.com>
5745
5746	* ctfread.c (read_func_kind_type): Set up function arguments.
5747
57482021-03-05  Craig Blackmore  <craig.blackmore@embecosm.com>
5749	    Andrew Burgess  <andrew.burgess@embecosm.com>
5750
5751	* riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5752	includes.
5753	(riscv_csrset): New static global.
5754	(riscv_update_csrmap): New function.
5755	(riscv_iterate_over_regset_sections): Process CSRs.
5756
57572021-03-05  Andrew Burgess  <andrew.burgess@embecosm.com>
5758
5759	* riscv-tdep.c (riscv_feature_name_csr): Define.
5760	(riscv_feature_name_cpu): Define.
5761	(riscv_feature_name_fpu): Define.
5762	(riscv_feature_name_virtual): Define.
5763	(riscv_xreg_feature): Use riscv_feature_name_cpu.
5764	(riscv_freg_feature): Use riscv_feature_name_fpu.
5765	(riscv_virtual_feature): Use riscv_feature_name_virtual.
5766	(riscv_csr_feature): Use riscv_feature_name_csr.
5767	* riscv-tdep.h (riscv_feature_name_csr): Declare.
5768
57692021-03-05  Andrew Burgess  <andrew.burgess@embecosm.com>
5770	    Craig Blackmore  <craig.blackmore@embecosm.com>
5771
5772	* Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5773	(ALLDEPFILES): Add riscv-none-tdep.c.
5774	* configure: Regenerate.
5775	* configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5776	support.
5777	* configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5778	* elf-none-tdep.c: New file.
5779	* elf-none-tdep.h: New file.
5780	* riscv-none-tdep.c: New file.
5781
57822021-03-05  Craig Blackmore  <craig.blackmore@embecosm.com>
5783	    Andrew Burgess  <andrew.burgess@embecosm.com>
5784
5785	* corelow.c: Add 'xml-tdesc.h' include.
5786	(core_target::read_description): Load the target description from
5787	the core file when possible.
5788	* fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5789	note.
5790	* gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5791	(gcore_elf_make_tdesc_note): New function.
5792	* gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5793	* linux-tdep.c (linux_make_corefile_notes): Add target description
5794	note.
5795
57962021-03-05  Andrew Burgess  <andrew.burgess@embecosm.com>
5797
5798	* Makefile.in (SFILES): Add gcore-elf.c.
5799	(HFILES_NO_SRCDIR): Add gcore-elf.h
5800	* configure: Regenerate.
5801	* configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5802	support.
5803	* fbsd-tdep.c: Add 'gcore-elf.h' include.
5804	(struct fbsd_collect_regset_section_cb_data): Delete.
5805	(fbsd_collect_regset_section_cb): Delete.
5806	(fbsd_collect_thread_registers): Delete.
5807	(struct fbsd_corefile_thread_data): Delete.
5808	(fbsd_corefile_thread): Delete.
5809	(fbsd_make_corefile_notes): Call
5810	gcore_elf_build_thread_register_notes instead of the now deleted
5811	FreeBSD code.
5812	* gcore-elf.c: New file, the content was moved here from
5813	linux-tdep.c, functions were renamed and given minor cleanup.
5814	* gcore-elf.h: New file.
5815	* gcore.c (gcore_find_signalled_thread): Moved here from
5816	linux-tdep.c and given a new name.  Minor cleanups.
5817	* gcore.h (gcore_find_signalled_thread): Declare.
5818	* linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5819	(struct linux_collect_regset_section_cb_data): Delete.
5820	(linux_collect_regset_section_cb): Delete.
5821	(linux_collect_thread_registers): Delete.
5822	(linux_corefile_thread): Call
5823	gcore_elf_build_thread_register_notes.
5824	(find_signalled_thread): Delete.
5825	(linux_make_corefile_notes): Call gcore_find_signalled_thread.
5826
58272021-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
5828
5829	PR gdb/27147
5830	* sparc-nat.h (sparc_fetch_inferior_registers): Add
5831	process_stratum_target parameter,
5832	sparc_store_inferior_registers): update callers.
5833	* sparc-nat.c (sparc_fetch_inferior_registers,
5834	sparc_store_inferior_registers): Add process_stratum_target
5835	parameter.  Switch current thread before calling
5836	sparc_supply_gregset / sparc_collect_rwindow.
5837	(sparc_store_inferior_registers): Likewise.
5838	* sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5839	(sparc32obsd_collect_uthread): Likewise.
5840	* sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5841	Add assertion.
5842	* sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5843	sparc64obsd_supply_uthread): Add assertion.
5844
58452021-03-04  Tom Tromey  <tromey@adacore.com>
5846
5847	* ada-lang.c (struct match_data) <found_sym>: Now bool.
5848	(aux_add_nonlocal_symbols): Update.
5849	(ada_add_block_symbols): Change "found_sym" to bool.
5850
58512021-03-03  Tom Tromey  <tromey@adacore.com>
5852
5853	* ada-lang.c (ada_resolve_function): Update comment.
5854	(is_nonfunction, add_symbols_from_enclosing_procs)
5855	(remove_extra_symbols): Likewise.
5856	(struct match_data): Add constructor, initializers.
5857	(add_nonlocal_symbols): Remove memset.
5858	(aux_add_nonlocal_symbols): Update comment.
5859	(ada_add_block_renamings, add_nonlocal_symbols)
5860	(ada_add_all_symbols): Likewise.
5861	* ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5862
58632021-03-02  Tom Tromey  <tromey@adacore.com>
5864
5865	* ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5866	(cast_to_gnat_encoded_fixed_point_type): Remove.
5867	(ada_value_cast, ada_evaluate_subexp): Update.
5868	(gnat_encoded_fixed_point_type_info)
5869	(ada_is_gnat_encoded_fixed_point_type)
5870	(gnat_encoded_fixed_point_delta)
5871	(gnat_encoded_fixed_point_scaling_factor): Remove.
5872	* ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5873	(gnat_encoded_fixed_point_delta)
5874	(gnat_encoded_fixed_point_scaling_factor): Don't declare.
5875	* ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5876	(ada_print_type): Update.
5877	* ada-valprint.c (ada_value_print_num): Update.
5878	* dwarf2/read.c (ada_get_gnat_encoded_number)
5879	(ada_get_gnat_encoded_ratio): New functions.
5880	(finish_fixed_point_type): Use them.  Add parameters.
5881	(GNAT_FIXED_POINT_SUFFIX): New define.
5882	(gnat_encoded_fixed_point_type_info): New function.
5883	(read_base_type): Handle gnat encodings.
5884
58852021-03-02  Tom Tromey  <tromey@adacore.com>
5886
5887	* ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5888	(ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5889	std::string.
5890	(GROW_VECT): Remove.
5891	(grow_vect): Remove.
5892
58932021-03-02  Tom Tromey  <tromey@adacore.com>
5894
5895	* ada-lang.h (ada_lookup_symbol_list): Return a vector.
5896	* ada-lang.c (resolve_subexp): Update.
5897	(ada_resolve_function): Accept a vector.
5898	(is_nonfunction, add_defn_to_vec)
5899	(add_symbols_from_enclosing_procs): Likewise.
5900	(num_defns_collected, defns_collected): Remove.
5901	(remove_extra_symbols): Return a vector.
5902	(remove_irrelevant_renamings): Return void.
5903	(ada_add_local_symbols): Accept a vector.
5904	(struct match_data) <obstackp>: Remove.
5905	<resultp>: New member.
5906	(aux_add_nonlocal_symbols): Update.
5907	(ada_add_block_renamings, add_nonlocal_symbols)
5908	(ada_add_all_symbols): Accept a vector.
5909	(ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5910	vector.
5911	(ada_lookup_symbol): Update.
5912	(ada_add_block_symbols): Accept a vector.
5913	(get_var_value, iterate_over_symbols): Update.
5914	* ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5915	Update.
5916
59172021-03-02  Tom Tromey  <tromey@adacore.com>
5918
5919	* ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5920
59212021-03-02  Tom Tromey  <tromey@adacore.com>
5922
5923	* ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5924	auto_obstack.
5925	<root>: Initialize.
5926	(ada_pspace_data): Remove destructor.
5927	<sym_cache>: Now a unique_ptr.
5928	(ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5929	(ada_get_symbol_cache): Use 'new'.
5930	(ada_clear_symbol_cache): Rewrite.
5931
59322021-03-02  Tom Tromey  <tromey@adacore.com>
5933
5934	* ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5935	is null.
5936
59372021-02-27  Lancelot Six  <lsix@lancelotsix.com>
5938
5939	PR gdb/27393
5940	* source.c (add_path): Skip empty dirnames.
5941
59422021-02-25  Kevin Buettner  <kevinb@redhat.com>
5943
5944	* nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5945	include order for <sys/ptrace.h> and <asm/ptrace.h>.
5946
59472021-02-25  Simon Marchi  <simon.marchi@polymtl.ca>
5948
5949	PR gdb/26861
5950	* target.c (target_mourn_inferior): Only compare pids in
5951	target_mourn_inferior.
5952
59532021-02-25  Jan Matyas  <jmatyas@codasip.com>
5954
5955	PR gdb/26819
5956	* remote.c (remote_target::start_remote): Ensure the single
5957	thread, automatically added for remote targets without the
5958	concept of threading, is initially in set to the "resumed"
5959	state.
5960	* remote.c (remote_target::add_current_inferior_and_thread):
5961	Add return value - return the main thread.
5962
59632021-02-25  Jan Vrany  <jan.vrany@labware.com>
5964
5965	* gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5966	(mi_tsv_created): Likewise.
5967	(mi_tsv_deleted): Likewise.
5968
59692021-02-25  Tom de Vries  <tdevries@suse.de>
5970
5971	PR symtab/27354
5972	* dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5973	section_kind for &dwo_file->sections.info.
5974
59752021-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
5976
5977	PR fortran/26155
5978	* f-lang.c (fortran_argument_convert): Delete declaration.
5979	(fortran_prepare_argument): New function.
5980	(evaluate_subexp_f): Move logic to new function
5981	fortran_prepare_argument.
5982
59832021-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
5984
5985	* f-exp.y (f77_keywords): Add 'associated'.
5986	* f-lang.c (fortran_associated): New function.
5987	(evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5988	(operator_length_f): Likewise.
5989	(print_unop_or_binop_subexp_f): New function.
5990	(print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5991	FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5992	(dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5993	(operator_check_f): Likewise.
5994	* std-operator.def: Add FORTRAN_ASSOCIATED.
5995
59962021-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
5997
5998	* f-exp.y (fortran_operators): Add ".xor.".
5999
60002021-02-24  Tom de Vries  <tdevries@suse.de>
6001
6002	PR symtab/27336
6003	* dwarf2/attribute.c (attribute::form_is_signed): New function
6004	factored out of ...
6005	* dwarf2/attribute.h (attribute::as_signed): ... here.
6006	(attribute::is_nonnegative, attribute::as_nonnegative): New function.
6007	(attribute::form_is_signed): Declare.
6008	* dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
6009	for DW_AT_decl_file.
6010
60112021-02-24  Kevin Buettner  <kevinb@redhat.com>
6012
6013	* nat/aarch64-linux-hw-point.c: Add comment regarding include
6014	order for <sys/ptrace.h> and <asm/ptrace.h>.
6015
60162021-02-24  Kevin Buettner  <kevinb@redhat.com>
6017
6018	* nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
6019	<sys/ptrace.h>.
6020
60212021-02-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6022
6023	* exec.c (set_section_command): Move variable declarations into
6024	the function body, and use std::string instead of a fixed size
6025	buffer.
6026
60272021-02-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6028
6029	* exec.c (exec_target::get_section_table): Delete member function.
6030	(section_table_read_available_memory): Use current_top_target, not
6031	just the exec_ops target.
6032	* target-delegates.c: Regenerate.
6033	* target.c (default_get_section_table): New function.
6034	* target.h (target_ops::get_section_table): Change default
6035	behaviour to call default_get_section_table.
6036	(default_get_section_table): Declare.
6037
60382021-02-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6039
6040	* exec.c (exec_target::close): Call new clear_target_sections
6041	function.
6042	(program_space::add_target_sections): Update name of member
6043	variable.
6044	(program_space::add_target_sections): Update name of member
6045	variable.
6046	(program_space::remove_target_sections): Likewise.
6047	(exec_one_fork): Use new target_sections member function.
6048	(exec_target::get_section_table): Likewise.
6049	(exec_target::files_info): Likewise.
6050	(set_section_command): Likewise.
6051	(exec_set_section_address): Likewise.
6052	(exec_target::has_memory): Use new target_sections member
6053	function.
6054	* progspace.h (program_space::clear_target_sections): New member
6055	function.
6056	(program_space::target_sections): Rename member variable to
6057	m_target_sections, replace with a new member function.
6058	(program_space::m_target_sections): New member variable.
6059	* solib-dsbt.c (scan_dyntag): Use new member function.
6060	* solib-svr4.c (scan_dyntag): Likewise.
6061
60622021-02-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6063
6064	* gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
6065	return type const.
6066	* gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
6067	(section_table_read_available_memory): Make local const.
6068	(exec_target::xfer_partial): Make local const.
6069	(print_section_info): Make parameter const.
6070	* gdb/exec.h (print_section_info): Likewise.
6071	* gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
6072	const.
6073	* gdb/record-btrace.c (record_btrace_target::xfer_partial):
6074	Likewise.
6075	* gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
6076	Likewise.
6077	* gdb/s390-tdep.c (s390_load): Likewise.
6078	* gdb/solib-dsbt.c (scan_dyntag): Likewise.
6079	* gdb/solib-svr4.c (scan_dyntag): Likewise.
6080	* gdb/target-debug.h (target_debug_print_target_section_table_p):
6081	Rename to...
6082	(target_debug_print_const_target_section_table_p): ...this.
6083	* gdb/target-delegates.c: Regenerate.
6084	* gdb/target.c (target_get_section_table): Make return type const.
6085	(target_section_by_addr): Likewise.  Also make some locals const.
6086	(memory_xfer_partial_1): Make some locals const.
6087	* gdb/target.h (struct target_ops) <get_section_table>: Make
6088	return type const.
6089	(target_section_by_addr): Likewise.
6090	(target_get_section_table): Likewise.
6091
60922021-02-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6093
6094	* NEWS: Mention new 'maint info target-sections' command.
6095	* maint.c (maintenance_info_target_sections): New function.
6096	(_initialize_maint_cmds): Register new command.
6097
60982021-02-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6099
6100	* riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
6101	(riscv_features_from_bfd): ...this.  Change parameter type to
6102	'bfd*', and update as required.
6103	(riscv_find_default_target_description): Update call to
6104	riscv_features_from_bfd.  Select a default xlen based on
6105	info.bfd_arch_info.
6106	(riscv_gdbarch_init): Update call to riscv_features_from_bfd.
6107
61082021-02-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6109
6110	* eval.c (evaluate_subexp_standard): Call value_ind for points to
6111	dynamic types in UNOP_IND.
6112
61132021-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
6114
6115	PR gdb/26828
6116	* dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
6117	Instantiate queue.
6118	(~dwarf2_queue_guard): Clear queue.
6119	(queue_comp_unit): Assert that queue is
6120	instantiated.
6121	(process_queue): Adjust.
6122	* dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
6123
61242021-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
6125
6126	PR gdb/26828
6127	* dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
6128	to decide whether or not to enqueue it for expansion.
6129	(follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
6130	after calling maybe_queue_comp_unit.
6131
61322021-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
6133
6134	* linux-nat.c (linux_nat_filter_event): Return void.
6135
61362021-02-22  Tom Tromey  <tromey@adacore.com>
6137
6138	* solib-svr4.c (enable_break): Update.
6139	* bfd-target.c (class target_bfd) <target_bfd>: Change parameter
6140	type.
6141	(target_bfd_reopen): Change parameter type.
6142	* bfd-target.h (target_bfd_reopen): Change parameter type.
6143
61442021-02-22  Simon Marchi  <simon.marchi@polymtl.ca>
6145
6146	* thread.c (add_thread_silent): Add assert.
6147	(find_thread_ptid): Add assert.
6148
61492021-02-22  Simon Marchi  <simon.marchi@polymtl.ca>
6150
6151	PR gdb/27435
6152	* inf-ptrace.c (struct target_unpusher): Move to target.h.
6153	(target_unpush_up): Likewise.
6154	* procfs.c (procfs_target::attach): Push target early.  Use
6155	target_unpush_up to unpush target in case of error.
6156	* target.h (struct target_unpusher): Move here.
6157	(target_unpush_up): Likewise.
6158
61592021-02-19  Kevin Buettner  <kevinb@redhat.com>
6160
6161	* nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
6162	(which in turn includes <gnulib/config.h>) before include
6163	of <signal.h>.
6164
61652021-02-19  Nelson Chu  <nelson.chu@sifive.com>
6166
6167	PR 27158
6168	* riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
6169	(decode_j_type_insn): Likewise.
6170	(decode_cj_type_insn): Likewise.
6171	(decode_b_type_insn): Likewise.
6172	(decode): Likewise.
6173
61742021-02-18  Tom Tromey  <tom@tromey.com>
6175
6176	* expression.h (struct expression) <evaluate>: Declare method.
6177	* eval.c (evaluate_subexp): Simplify.
6178	(expression::evaluate): New method.
6179	(evaluate_expression, evaluate_type): Use expression::evaluate.
6180
61812021-02-17  Kevin Buettner  <kevinb@redhat.com>
6182
6183	* ada-lang.c (ada_fold_name): Check for non-empty string prior
6184	to accessing it.
6185	(ada_lookup_name_info): Likewise.
6186
61872021-02-13  Mike Frysinger  <vapier@gentoo.org>
6188
6189	* aclocal.m4: Regenerate.
6190
61912021-02-12  Tom de Vries  <tdevries@suse.de>
6192
6193	PR threads/26228
6194	* linux-nat.c (lin_thread_get_thread_signals): Remove.
6195	(lin_thread_signals): New static var.
6196	(lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6197	New function.
6198	* linux-nat.h (lin_thread_get_thread_signals): Remove.
6199	(lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6200	Declare.
6201	* linux-thread-db.c (check_thread_signals): Use
6202	lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
6203
62042021-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
6205
6206	* f-exp.y (f77_keywords): Add allocated.
6207	* f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
6208	(operator_length_f): Likewise.
6209	(print_subexp_f): Likewise.
6210	(dump_subexp_body_f): Likewise.
6211	(operator_check_f): Likewise.
6212	* std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
6213
62142021-02-11  Tom de Vries  <tdevries@suse.de>
6215
6216	PR symtab/27353
6217	* dwarf2/attribute.c (attribute::form_requires_reprocessing):
6218	Return true for DW_FORM_strx.
6219
62202021-02-11  Tom Tromey  <tromey@adacore.com>
6221
6222	PR gdb/27383:
6223	* parse.c (write_exp_symbol_reference): Write sym.block.
6224
62252021-02-11  Andrew Burgess  <andrew.burgess@embecosm.com>
6226
6227	* NEWS: Mention changes to 'maint info sections'.
6228	* maint.c (match_substring): Return a bool, fix whitespace issue.
6229	(struct single_bfd_flag_info): New struct.
6230	(bfd_flag_info): New static global.
6231	(match_bfd_flags): Return a bool, use bfd_flag_info.
6232	(print_bfd_flags): Use bfd_flag_info.
6233	(maint_print_section_info): Delete trailing whitespace.
6234	(struct maint_info_sections_opts): New struct.
6235	(maint_info_sections_option_defs): New static global.
6236	(maint_info_sections_completer): New function.
6237	(maintenance_info_sections): Use option parsing mechanism.
6238	(_initialize_maint_cmds): Update command help text for 'maint info
6239	sections' and register a command completer.
6240
62412021-02-11  Andrew Burgess  <andrew.burgess@embecosm.com>
6242
6243	* maint.c (print_bfd_section_info_maybe_relocated): Delete,
6244	functionality merged into...
6245	(maint_print_all_sections): ...this new function.
6246	(maintenance_info_sections): Make use of maint_print_all_sections,
6247	allow all objects to be printed even where there's no executable.
6248
62492021-02-11  Andrew Burgess  <andrew.burgess@embecosm.com>
6250
6251	* breakpoint.c (resolve_sal_pc): Make use of
6252	bound_minimal_symbol::obj_section.
6253	* maint.c (maintenance_translate_address): Likewise.
6254	* minsyms.c (minimal_symbol_upper_bound): Likewise.
6255	* minsyms.h (struct bound_minimal_symbol) <obj_section>: New
6256	member function.
6257	* printcmd.c (info_address_command): Make use of
6258	bound_minimal_symbol::obj_section.
6259
62602021-02-11  Alan Modra  <amodra@gmail.com>
6261
6262	* arm-symbian-tdep.c: Delete.
6263	* NEWS: Mention arm-symbian removal.
6264	* Makefile.in: Remove arm-symbian-tdep entries.
6265	* configure.tgt: Remove arm*-*-symbianelf*.
6266	* doc/gdb.texinfo: Remove mention of SymbianOS.
6267	* osabi.c (gdb_osabi_names): Remove "Symbian".
6268	* osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
6269	* testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
6270	* testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
6271	handling.
6272	* testsuite/gdb.base/dup-sect.exp: Likewise.
6273	* testsuite/gdb.base/long_long.exp: Likewise.
6274	* testsuite/gdb.base/solib-weak.exp: Likewise.
6275	* testsuite/gdb.guile/scm-section-script.exp: Likewise.
6276	* testsuite/gdb.python/py-section-script.exp: Likewise.
6277	* testsuite/lib/dwarf.exp: Likewise.
6278	* testsuite/lib/gdb.exp: Likewise.
6279
62802021-02-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6281
6282	* f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
6283	(exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
6284	(one_or_two_args): New pattern.
6285	(f77_keywords): Add lbound and ubound.
6286	* f-lang.c (fortran_bounds_all_dims): New function.
6287	(fortran_bounds_for_dimension): New function.
6288	(evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
6289	(operator_length_f): Likewise.
6290	(print_subexp_f): Likewise.
6291	(dump_subexp_body_f): Likewise.
6292	(operator_check_f): Likewise.
6293	* std-operator.def (FORTRAN_LBOUND): Define.
6294	(FORTRAN_UBOUND): Define.
6295
62962021-02-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6297
6298	* coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6299	and set_section_index member functions where appropriate.
6300	* coffread.c (coff_symtab_read): Likewise.
6301	(process_coff_symbol): Likewise.
6302	* ctfread.c (set_symbol_address): Likewise.
6303	* dwarf2/read.c (add_partial_symbol): Likewise.
6304	(var_decode_location): Likewise.
6305	* language.c: Likewise.
6306	* minsyms.c (minimal_symbol_reader::record_full): Likewise.
6307	(compact_minimal_symbols): Likewise.
6308	(minimal_symbol_upper_bound): Likewise.
6309	* objfiles.c (relocate_one_symbol): Likewise.
6310	* psympriv.h (partial_symbol::obj_section): Likewise.
6311	(partial_symbol::address): Likewise.
6312	* psymtab.c (partial_symtab::add_psymbol): Likewise.
6313	* stabsread.c (scan_file_globals): Likewise.
6314	* symmisc.c (dump_msymbols): Likewise.
6315	* symtab.c (general_symbol_info::obj_section): Likewise.
6316	(fixup_section): Likewise.
6317	(get_msymbol_address): Likewise.
6318	* symtab.h (general_symbol_info::section): Rename to...
6319	(general_symbol_info::m_section): ...this.
6320	(general_symbol_info::set_section_index): New member function.
6321	(general_symbol_info::section_index): Likewise.
6322	(SYMBOL_SECTION): Delete.
6323	(MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6324	set_section_index member functions where appropriate.
6325	(MSYMBOL_SECTION): Delete.
6326	(symbol::symbol): Update to initialize 'm_section'.
6327	* xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6328	(process_xcoff_symbol): Likewise.
6329
63302021-02-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6331
6332	* breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6333	MSYMBOL_OBJ_SECTION.
6334	* findvar.c (language_defn::read_var_value): Likewise.
6335	* infcmd.c (jump_command): Likewise.
6336	* linespec.c (minsym_found): Likewise.
6337	* maint.c (maintenance_translate_address): Likewise.
6338	* minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6339	(minimal_symbol_upper_bound): Likewise.
6340	* parse.c (find_minsym_type_and_address): Likewise.
6341	(operator_check_standard): Likewise.
6342	* printcmd.c (info_address_command): Likewise.
6343	* symmisc.c (dump_msymbols): Likewise.
6344	(print_symbol): Likewise.
6345	* symtab.c (general_symbol_info::obj_section): Define new
6346	function.
6347	(fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6348	(find_pc_sect_compunit_symtab): Likewise.
6349	(find_function_start_sal): Likewise.
6350	(skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6351	MSYMBOL_OBJ_SECTION.
6352	* symtab.h (struct general_symbol_info) <obj_section>: Declare new
6353	function.
6354	(SYMBOL_OBJ_SECTION): Delete.
6355	(MSYMBOL_OBJ_SECTION): Delete.
6356
63572021-02-09  Tom Tromey  <tom@tromey.com>
6358
6359	* stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6360
63612021-02-09  Tom de Vries  <tdevries@suse.de>
6362
6363	PR symtab/27341
6364	* dwarf2/read.c (read_array_type): Return NULL when not being able to
6365	construct an array type.  Add assert to ensure that element_type is
6366	not being modified.
6367
63682021-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6369
6370	* gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6371	(gcore_collect_regset_section_cb): Delete.
6372	(gcore_collect_thread_registers): Delete.
6373	(gcore_build_thread_register_notes): Delete.
6374	(gcore_find_signalled_thread): Delete.
6375	* gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6376	'gdbarch' and 'thread_info' declarations.
6377	(gcore_build_thread_register_notes): Delete declaration.
6378	(gcore_find_signalled_thread): Likewise.
6379	* fbsd-tdep.c: Remove 'gcore.h' include.
6380	(struct fbsd_collect_regset_section_cb_data): New struct.
6381	(fbsd_collect_regset_section_cb): New function.
6382	(fbsd_collect_thread_registers): New function.
6383	(struct fbsd_corefile_thread_data): New struct.
6384	(fbsd_corefile_thread): New function.
6385	(fbsd_make_corefile_notes): Call FreeBSD specific code.
6386	* linux-tdep.c: Remove 'gcore.h' include.
6387	(struct linux_collect_regset_section_cb_data): New struct.
6388	(linux_collect_regset_section_cb): New function.
6389	(linux_collect_thread_registers): New function.
6390	(linux_corefile_thread): Call Linux specific code.
6391	(find_signalled_thread): New function.
6392	(linux_make_corefile_notes): Call find_signalled_thread.
6393
63942021-02-09  Tom Tromey  <tromey@adacore.com>
6395
6396	* ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6397	not_lval value.
6398	* value.c (value_contents_copy_raw): Now static.
6399	* value.h (value_contents_copy_raw): Don't declare.
6400
64012021-02-09  Tom Tromey  <tromey@adacore.com>
6402
6403	* gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6404	fields.
6405
64062021-02-08  Shahab Vahedi  <shahab@synopsys.com>
6407
6408	PR tdep/27369
6409	* arc-linux-tdep.c (handle_atomic_sequence): New.
6410	(arc_linux_software_single_step): Call handle_atomic_sequence().
6411
64122021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
6413
6414	* python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6415	function.
6416	(REQUIRE_WINDOW): Call is_valid member function.
6417	(REQUIRE_WINDOW_FOR_SETTER): New define.
6418	(gdbpy_tui_is_valid): Call is_valid member function.
6419	(gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6420	* tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6421	tui_active too.
6422	* tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6423	* tui/tui.c (tui_enable): Move setting of tui_active earlier in
6424	the function.
6425
64262021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
6427
6428	* python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6429	for the title is not nullptr.
6430
64312021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
6432
6433	* tui-layout.c (saved_tui_windows): Delete.
6434	(tui_apply_current_layout): Don't make use of saved_tui_windows,
6435	call new get_windows member function instead.
6436	(tui_get_window_by_name): Check in tui_windows.
6437	(tui_layout_window::apply): Don't add to tui_windows.
6438	* tui-layout.h (tui_layout_base::get_windows): New member function.
6439	(tui_layout_window::get_windows): Likewise.
6440	(tui_layout_split::get_windows): Likewise.
6441
64422021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
6443
6444	* tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6445	of the window objects.
6446
64472021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
6448
6449	* python/python.c (gdbpy_print_stack): Reformat an error message.
6450
64512021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
6452
6453	* tui/tui-interp.c (tui_command_line_handler): New function.
6454	(tui_interp::resume): Register tui_command_line_handler as the
6455	input_handler.
6456	* tui/tui-io.c (tui_inject_newline_into_command_window): New
6457	function.
6458	(tui_getc_1): Delete handling of '\n' and '\r'.
6459	* tui-io.h (tui_inject_newline_into_command_window): Declare.
6460
64612021-02-07  Hannes Domani  <ssbssa@yahoo.de>
6462
6463	* tui/tui-regs.c (tui_data_window::display_registers_from):
6464	Mark invisible register sub windows.
6465	(tui_data_window::check_register_values): Ignore invisible
6466	register sub windows.
6467
64682021-02-07  Hannes Domani  <ssbssa@yahoo.de>
6469
6470	* tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6471	n_spaces with a negative value.
6472
64732021-02-07  Hannes Domani  <ssbssa@yahoo.de>
6474
6475	* tui/tui-regs.c (tui_data_window::display_registers_from):
6476	Add refresh_window call.
6477
64782021-02-07  Hannes Domani  <ssbssa@yahoo.de>
6479
6480	* python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6481
64822021-02-05  Simon Marchi  <simon.marchi@polymtl.ca>
6483
6484	* symmisc.c (std_in, std_out, std_err): Remove.
6485	(_initialize_symmisc): Don't set std_in, std_out and std_err.
6486
64872021-02-05  Tom de Vries  <tdevries@suse.de>
6488
6489	PR breakpoints/27330
6490	* breakpoint.c (create_exception_master_breakpoint): Handle case that
6491	glibc object file has debug info.
6492
64932021-02-05  Tom de Vries  <tdevries@suse.de>
6494
6495	PR symtab/27333
6496	* dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6497
64982021-02-05  Tom de Vries  <tdevries@suse.de>
6499
6500	PR breakpoints/27313
6501	* break-catch-syscall.c (catch_syscall_split_args): Reject negative
6502	syscall numbers.
6503
65042021-02-05  Tom Tromey  <tom@tromey.com>
6505
6506	* compile/compile-c-support.c (get_compile_context)
6507	(c_get_compile_context, cplus_get_compile_context): Change return
6508	type.
6509	* language.c (language_defn::get_compile_instance): New method.
6510	* language.h (language_defn::get_compile_instance): Change return
6511	type.  No longer inline.
6512	* c-lang.c (c_language::get_compile_instance): Change return type.
6513	(cplus_language::get_compile_instance): Change return type.
6514	* c-lang.h (c_get_compile_context, cplus_get_compile_context):
6515	Change return type.
6516	* compile/compile.c (compile_to_object): Update.
6517
65182021-02-05  Tom Tromey  <tom@tromey.com>
6519
6520	* parser-defs.h (write_exp_symbol_reference): Declare.
6521	* parse.c (write_exp_symbol_reference): New function.
6522	* p-exp.y (variable): Use write_exp_symbol_reference.
6523	* m2-exp.y (variable): Use write_exp_symbol_reference.
6524	* f-exp.y (variable): Use write_exp_symbol_reference.
6525	* d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6526	* c-exp.y (variable): Use write_exp_symbol_reference.
6527
65282021-02-05  Tom de Vries  <tdevries@suse.de>
6529
6530	PR exp/27265
6531	* valarith.c (complex_binop): Throw an error if complex type can't
6532	be created.
6533
65342021-02-05  Tom de Vries  <tdevries@suse.de>
6535
6536	PR symtab/27307
6537	* dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6538	return.
6539
65402021-02-05  Tom de Vries  <tdevries@suse.de>
6541
6542	* dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6543
65442021-02-04  Mike Frysinger  <vapier@gentoo.org>
6545
6546	* configure.tgt (riscv*-*-*): Set gdb_sim.
6547
65482021-02-04  Simon Marchi  <simon.marchi@polymtl.ca>
6549
6550	* target.c (target_is_non_stop_p): Return bool.
6551	* target.h (target_is_non_stop_p): Return bool.
6552
65532021-02-04  Simon Marchi  <simon.marchi@efficios.com>
6554
6555	* record-full.c (record_full_async_inferior_event_handler):
6556	Don't clear async event handler.
6557	(record_full_base_target::wait): Clear async event handler at
6558	beginning.
6559
65602021-02-04  Simon Marchi  <simon.marchi@efficios.com>
6561
6562	* record-btrace.c (record_btrace_handle_async_inferior_event):
6563	Don't clear async event handler.
6564	(record_btrace_target::wait): Clear async event handler at
6565	beginning.
6566
65672021-02-04  Simon Marchi  <simon.marchi@efficios.com>
6568
6569	* remote.c (remote_target::wait): Clear async event handler at
6570	beginning, mark if needed at the end.
6571	(remote_async_inferior_event_handler): Don't set or clear async
6572	event handler.
6573
65742021-02-04  Simon Marchi  <simon.marchi@efficios.com>
6575
6576	* async-event.h (async_event_handler_func):  Add documentation.
6577	* async-event.c (check_async_event_handlers): Don't clear
6578	async_event_handler ready flag.
6579	* infrun.c (infrun_async_inferior_event_handler): Clear ready
6580	flag.
6581	* record-btrace.c (record_btrace_handle_async_inferior_event):
6582	Likewise.
6583	* record-full.c (record_full_async_inferior_event_handler):
6584	Likewise.
6585	* remote-notif.c (remote_async_get_pending_events_handler):
6586	Likewise.
6587	* remote.c (remote_async_inferior_event_handler): Likewise.
6588
65892021-02-03  Simon Marchi  <simon.marchi@polymtl.ca>
6590
6591	* infrun.c (handle_inferior_event): Move stop_soon variable to
6592	inner scope.
6593
65942021-02-03  Pedro Alves  <pedro@palves.net>
6595
6596	* infcmd.c (detach_command): Hold strong reference to target, and
6597	if all-stop on entry, restart threads on exit.
6598	* infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6599	(restart_stepped_thread): ... this new function.  Also handle
6600	trap_expected.
6601	(restart_after_all_stop_detach): New function.
6602	* infrun.h (restart_after_all_stop_detach): Declare.
6603
66042021-02-03  Pedro Alves  <pedro@palves.net>
6605
6606	* infrun.c (struct step_over_info): Initialize fields.
6607	(prepare_for_detach): Handle ongoing in-line step over.
6608
66092021-02-03  Pedro Alves  <pedro@palves.net>
6610
6611	* linux-nat.c (linux_nat_target::detach): Remove breakpoints
6612	here...
6613	* remote.c (remote_target::remote_detach_1): ... and here ...
6614	* target.c (target_detach): ... instead of here.
6615	* target.h (target_ops::detach): Add comment.
6616
66172021-02-03  Pedro Alves  <pedro@palves.net>
6618
6619	* infrun.c (struct wait_one_event): Move higher up.
6620	(prepare_for_detach): Abort in-progress displaced steps instead of
6621	letting them complete.
6622	(handle_one): If the inferior is detaching, don't add the thread
6623	back to the global step-over chain.
6624	(restart_threads): Don't restart threads if detaching.
6625	(handle_signal_stop): Remove inferior::detaching reference.
6626
66272021-02-03  Pedro Alves  <pedro@palves.net>
6628
6629	* infrun.c (prepare_for_detach): Don't release scoped_restore
6630	before returning.
6631
66322021-02-03  Pedro Alves  <pedro@palves.net>
6633
6634	* infrun.c (handle_one): New function, factored out from ...
6635	(stop_all_threads): ... here.
6636
66372021-02-03  Pedro Alves  <pedro@palves.net>
6638
6639	* remote.c (remote_notif_stop_ack): Don't error out on
6640	TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6641	(remote_target::discard_pending_stop_replies): Don't delete
6642	in-flight notification; instead, clear its contents.
6643
66442021-02-03  Pedro Alves  <pedro@palves.net>
6645
6646	* remote.c (extended_remote_target::attach): Set target async in
6647	the target-non-stop path too.
6648
66492021-02-03  Pedro Alves  <pedro@palves.net>
6650
6651	PR gdb/27055
6652	* infrun.c (handle_signal_stop): Move main context_switch call
6653	earlier, before STOP_QUIETLY_NO_SIGSTOP.
6654
66552021-02-02  Lancelot SIX  <lsix@lancelotsix.com>
6656
6657	* NEWS (Changed commands): Add entry for the behavior change of
6658	the inferior command.
6659	* inferior.c (inferior_command): When no argument is given to the
6660	inferior command, display info about the currently selected
6661	inferior.
6662
66632021-02-02  Simon Marchi  <simon.marchi@efficios.com>
6664
6665	* dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6666	a sect_offset.
6667	(read_attribute_reprocess): Adjust.
6668
66692021-02-02  Simon Marchi  <simon.marchi@efficios.com>
6670
6671	* dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6672	<gnu_ranges_base>: ... this...
6673	<rnglists_base>: ... and this.
6674	* dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6675	<gnu_ranges_base>: ... this...
6676	<rnglists_base>: ... and this.
6677	(read_cutu_die_from_dwo): Adjust
6678	(dwarf2_get_pc_bounds): Adjust
6679	(dwarf2_record_block_ranges): Adjust.
6680	(read_full_die_1): Adjust
6681	(partial_die_info::read): Adjust.
6682	(read_rnglist_index): Adjust.
6683
66842021-02-02  Simon Marchi  <simon.marchi@efficios.com>
6685
6686	PR gdb/26813
6687	* dwarf2/read.c (read_loclists_rnglists_header): Add
6688	header_offset parameter and use it.
6689	(read_loclist_index): Read header of the current contribution,
6690	not the one at the beginning of the section.
6691	(read_rnglist_index): Likewise.
6692
66932021-02-02  Simon Marchi  <simon.marchi@efficios.com>
6694
6695	PR gdb/26813
6696	* dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6697	requires_reprocessing flag.
6698	* dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6699	DW_FORM_loclistx.
6700	(attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6701	and DW_FORM_loclistx.
6702	* dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6703	instead of set_address for DW_FORM_loclistx and
6704	DW_FORM_rnglistx.
6705
67062021-02-02  Simon Marchi  <simon.marchi@efficios.com>
6707
6708	* dwarf2/read.c (read_loclist_index): Remove bound check for
6709	start of offset.
6710	(read_rnglist_index): Likewise.
6711
67122021-02-02  Simon Marchi  <simon.marchi@efficios.com>
6713
6714	* dwarf2/read.c (read_loclist_index): Add bound check for the end
6715	of the offset.
6716
67172021-02-02  Simon Marchi  <simon.marchi@efficios.com>
6718
6719	* dwarf2/read.c (read_rnglist_index): Fix bound check.
6720
67212021-02-02  Simon Marchi  <simon.marchi@efficios.com>
6722
6723	* dwarf2/read.c (read_loclist_index): Change complaints into
6724	errors.
6725
67262021-02-02  Tom de Vries  <tdevries@suse.de>
6727
6728	PR symtab/24620
6729	* dwarf2/index-write.c (write_one_signatured_type): Skip if
6730	psymtab == nullptr.
6731
67322021-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
6733
6734	* Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6735	* gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6736	here from linux-tdep.c and given a new name.  Minor cleanups.
6737	(gcore_collect_regset_section_cb): Likewise.
6738	(gcore_collect_thread_registers): Likewise.
6739	(gcore_build_thread_register_notes): Likewise.
6740	(gcore_find_signalled_thread): Likewise.
6741	* gcore.h (gcore_build_thread_register_notes): Declare.
6742	(gcore_find_signalled_thread): Declare.
6743	* fbsd-tdep.c: Add 'gcore.h' include.
6744	(struct fbsd_collect_regset_section_cb_data): Delete.
6745	(fbsd_collect_regset_section_cb): Delete.
6746	(fbsd_collect_thread_registers): Delete.
6747	(struct fbsd_corefile_thread_data): Delete.
6748	(fbsd_corefile_thread): Delete.
6749	(fbsd_make_corefile_notes): Call
6750	gcore_build_thread_register_notes instead of the now deleted
6751	FreeBSD code.
6752	* linux-tdep.c: Add 'gcore.h' include.
6753	(struct linux_collect_regset_section_cb_data): Delete.
6754	(linux_collect_regset_section_cb): Delete.
6755	(linux_collect_thread_registers): Delete.
6756	(linux_corefile_thread): Call
6757	gcore_build_thread_register_notes.
6758	(find_signalled_thread): Delete.
6759	(linux_make_corefile_notes): Call gcore_find_signalled_thread.
6760
67612021-01-29  Tom de Vries  <tdevries@suse.de>
6762
6763	PR breakpoints/26063
6764	* infrun.c (process_event_stop_test): Reset
6765	ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6766	changed.
6767
67682021-01-28  Andrew Burgess  <andrew.burgess@embecosm.com>
6769
6770	* thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6771	assert.  Extend the header comment.
6772
67732021-01-28  Andrew Burgess  <andrew.burgess@embecosm.com>
6774
6775	* Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6776	(HFILES_NO_SRCDIR): Add tui/tui-location.h.
6777	* tui/tui-data.h (TUI_STATUS_WIN): Define.
6778	(tui_locator_win_info_ptr): Delete declaration.
6779	* tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6780	(tui_disasm_window::set_contents): Fetch state from tui_location
6781	global.
6782	(tui_get_begin_asm_address): Likewise.
6783	* tui/tui-layout.c (tui_apply_current_layout): Remove special case
6784	for locator window.
6785	(get_locator_window): Delete.
6786	(initialize_known_windows): Treat locator window just like all the
6787	rest.
6788	* tui/tui-source.c: Add 'tui/tui-location.h' include.
6789	(tui_source_window::set_contents): Fetch state from tui_location
6790	global.
6791	(tui_source_window::showing_source_p): Likewise.
6792	* tui/tui-stack.c: Add 'tui/tui-location.h' include.
6793	(_locator): Delete.
6794	(tui_locator_win_info_ptr): Delete.
6795	(tui_locator_window::make_status_line): Fetch state from
6796	tui_location global.
6797	(tui_locator_window::rerender): Remove check of 'handle',
6798	reindent function body.
6799	(tui_locator_window::set_locator_fullname): Delete.
6800	(tui_locator_window::set_locator_info): Delete.
6801	(tui_update_locator_fullname): Delete.
6802	(tui_show_frame_info): Likewise.
6803	(tui_show_locator_content): Access window through TUI_STATUS_WIN.
6804	* tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6805	tui/tui-location.h and renamed to
6806	tui_location_tracker::set_location.
6807	(tui_locator_window::set_locator_fullname): Moved to
6808	tui/tui-location.h and renamed to
6809	tui_location_tracker::set_fullname.
6810	(tui_locator_window::full_name): Delete.
6811	(tui_locator_window::proc_name): Delete.
6812	(tui_locator_window::line_no): Delete.
6813	(tui_locator_window::addr): Delete.
6814	(tui_locator_window::gdbarch): Delete.
6815	(tui_update_locator_fullname): Delete declaration.
6816	* tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6817	for locator window.
6818	* tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6819	(tui_display_main): Call function on tui_location directly.
6820	* tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6821	* tui/tui-location.c: New file.
6822	* tui/tui-location.h: New file.
6823
68242021-01-28  Simon Marchi  <simon.marchi@polymtl.ca>
6825
6826	* gdbtypes.h (get_type_arch): Rename to...
6827	(struct type) <arch>: ... this, update all users.
6828
68292021-01-28  Simon Marchi  <simon.marchi@polymtl.ca>
6830
6831	* gdbtypes.h (struct type) <arch>: Rename to...
6832	<arch_owner>: ... this, update all users.
6833	<objfile>: Rename to...
6834	<objfile_owner>: ... this, update all users.
6835
68362021-01-28  Andrew Burgess  <andrew.burgess@embecosm.com>
6837
6838	* gdbcmd.h (execute_command_to_string): Update comment.
6839	* top.c (execute_command_to_string): Update header comment.
6840
68412021-01-28  Tom de Vries  <tdevries@suse.de>
6842
6843	PR breakpoints/27205
6844	* breakpoint.c (create_longjmp_master_breakpoint_probe)
6845	(create_longjmp_master_breakpoint_names): New function, factored out
6846	of ...
6847	(create_longjmp_master_breakpoint): ... here.  Only try to install
6848	longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6849	breakpoint in libc.so failed.
6850
68512021-01-27  Lancelot SIX  <lsix@lancelotsix.com>
6852
6853	PR gdb/27133
6854	* cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6855	unique_ptr is released when the wrapped pointer is kept for later
6856	use.
6857
68582021-01-27  Matthew Malcomson  <matthew.malcomson@arm.com>
6859
6860	* aarch64-tdep.c (aarch64_displaced_step_others): Account for
6861	BLR and BR instructions.
6862	* arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6863	(enum aarch64_masks): New.
6864
68652021-01-26  Tom Tromey  <tromey@adacore.com>
6866
6867	* windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6868	(DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6869	(windows_init_thread_list, windows_nat::handle_load_dll)
6870	(windows_nat::handle_unload_dll, windows_nat_target::resume)
6871	(windows_nat_target::resume)
6872	(windows_nat_target::get_windows_debug_event)
6873	(windows_nat_target::interrupt, windows_xfer_memory)
6874	(windows_nat_target::close): Update.
6875	* nat/windows-nat.c (DEBUG_EVENTS): Use
6876	debug_prefixed_printf_cond.
6877	(matching_pending_stop, fetch_pending_stop)
6878	(continue_last_debug_event): Update.
6879
68802020-12-17  Mihails Strasuns  <mihails.strasuns@intel.com>
6881
6882	* linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6883	elfcore_write_file_note.
6884
68852021-01-26  Shahab Vahedi  <shahab@synopsys.com>
6886
6887	* arc-tdep.c (arc_add_reggroups): New function.
6888	(arc_gdbarch_init): Call arc_add_reggroups.
6889
68902021-01-26  Anton Kolesov  <anton.kolesov@synopsys.com>
6891
6892	* arc-tdep.c (arc_skip_prologue): Log "pc" address.
6893
68942021-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6895	    Simon Marchi  <simon.marchi@polymtl.ca>
6896	    Tom de Vries  <tdevries@suse.de>
6897
6898	* dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6899	DW_AT_ranges.
6900
69012021-01-25  Tom Tromey  <tromey@adacore.com>
6902
6903	* dwarf2/read.c (get_mpz): New function.
6904	(get_dwarf2_rational_constant): Use it.
6905
69062021-01-25  Tom Tromey  <tromey@adacore.com>
6907
6908	* ada-lang.c (resolve_subexp): Handle array context.
6909
69102021-01-23  Tom Tromey  <tom@tromey.com>
6911
6912	PR compile/25575
6913	* compile/compile-loc2c.c (note_register): New function.
6914	(pushf_register_address, pushf_register): Use it.
6915
69162021-01-23  Tom Tromey  <tom@tromey.com>
6917
6918	* symtab.h (struct symbol_computed_ops) <generate_c_location>:
6919	Change type of "registers_used".
6920	* dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6921	* dwarf2/loc.c (dwarf2_compile_property_to_c)
6922	(locexpr_generate_c_location, loclist_generate_c_location): Change
6923	type of "registers_used".
6924	* compile/compile.h (compile_dwarf_expr_to_c)
6925	(compile_dwarf_bounds_to_c): Update.
6926	* compile/compile-loc2c.c (pushf_register_address)
6927	(pushf_register, do_compile_dwarf_expr_to_c)
6928	(compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6929	of "registers_used".
6930	* compile/compile-c.h (generate_c_for_variable_locations):
6931	Update.
6932	* compile/compile-c-symbols.c (generate_vla_size)
6933	(generate_c_for_for_one_variable): Change type of
6934	"registers_used".
6935	(generate_c_for_variable_locations): Return std::vector.
6936	* compile/compile-c-support.c (generate_register_struct): Change
6937	type of "registers_used".
6938	(compute): Update.
6939
69402021-01-23  Tom Tromey  <tom@tromey.com>
6941
6942	* compile/compile-internal.h (class compile_instance)
6943	<set_arguments>: Change return type.
6944	* compile/compile.c (compile_to_object): Remove call to reset.
6945	(compile_instance::set_arguments): Change return type.
6946
69472021-01-23  Simon Marchi  <simon.marchi@polymtl.ca>
6948
6949	* gdbtypes.c (copy_type_recursive): Use get_type_arch.
6950	* gdbtypes.h (struct type) <set_owner>: Add asserts.
6951
69522021-01-23  Lancelot SIX  <lsix@lancelotsix.com>
6953
6954	* Makefile.in (SELFTESTS_SRCS): Add
6955	unittests/gdb_tilde_expand-selftests.c.
6956	* unittests/gdb_tilde_expand-selftests.c: New file.
6957
69582021-01-22  Andrew Burgess  <andrew.burgess@embecosm.com>
6959
6960	PR cli/25956
6961	* NEWS: Mention new command.
6962	* cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6963	(version_style): Define.
6964	(cli_style_option::cli_style_option): Add intensity parameter, and
6965	use as appropriate.
6966	(_initialize_cli_style): Register version style set/show commands.
6967	* cli/cli-style.h (cli_style_option): Add intensity parameter.
6968	(version_style): Declare.
6969	* top.c (print_gdb_version): Use version_stype, and styled_string
6970	to print the GDB version string.
6971
69722021-01-22  Andrew Burgess  <andrew.burgess@embecosm.com>
6973
6974	* utils.c (emit_style_escape): Only emit an escape sequence if the
6975	requested style is different than the current applied style.
6976	(fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6977	current applied_style.
6978	(fputs_styled): Remove is_default check.
6979	(fputs_styled_unfiltered): Likewise.
6980	(vfprintf_styled_no_gdbfmt): Likewise.
6981
69822021-01-22  Simon Marchi  <simon.marchi@polymtl.ca>
6983
6984	* remote.h (remote_debug_printf): New.
6985	(remote_debug_printf_nofunc): New.
6986	(REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6987	* remote.c: Use above macros throughout file.
6988
69892021-01-22  Simon Marchi  <simon.marchi@polymtl.ca>
6990
6991	* remote.h (remote_debug): Change to bool.
6992	* remote.c (remote_debug): Change to bool.
6993	(_initialize_remote): Adjust.
6994
69952021-01-22  Simon Marchi  <simon.marchi@polymtl.ca>
6996
6997	* target.h (remote_debug): Move to...
6998	* remote.h (remote_debug): ... here.
6999	* top.c (remote_debug): Move to...
7000	* remote.c (remote_debug): ... here.
7001	* remote-sim.c: Include remote.h.
7002
70032021-01-22  Simon Marchi  <simon.marchi@polymtl.ca>
7004
7005	* cli/cli-cmds.c (show_remote_debug): Remove.
7006	(show_remote_timeout): Remove.
7007	(_initialize_cli_cmds): Don't register commands.
7008	* remote.c (show_remote_debug): Move here.
7009	(show_remote_timeout): Move here.
7010	(_initialize_remote): Register commands.
7011
70122021-01-22  Simon Marchi  <simon.marchi@polymtl.ca>
7013
7014	* gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
7015	type::objfile method instead.
7016
70172021-01-22  Simon Marchi  <simon.marchi@polymtl.ca>
7018
7019	* gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
7020	use the type::is_objfile_owned method.
7021
70222021-01-22  Simon Marchi  <simon.marchi@efficios.com>
7023
7024	* gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
7025	(TYPE_OWNER): Remove.
7026	(TYPE_OBJFILE): Adjust.
7027	(struct main_type) <flag_objfile_owned>: Rename to...
7028	<m_flag_objfile_owned>: ... this.
7029	<owner>: Rename to...
7030	<m_owner>: ... this.
7031	(struct type) <is_objfile_owned, set_owner, objfile, arch>: New
7032	methods.
7033	(TYPE_ALLOC): Adjust.
7034	* gdbtypes.c (alloc_type): Adjust.
7035	(alloc_type_arch): Adjust.
7036	(alloc_type_copy): Adjust.
7037	(get_type_arch): Adjust.
7038	(smash_type): Adjust.
7039	(lookup_array_range_type): Adjust.
7040	(recursive_dump_type): Adjust.
7041	(copy_type_recursive): Adjust.
7042	* compile/compile-c-types.c (convert_func): Adjust.
7043	(convert_type_basic): Adjust.
7044	* compile/compile-cplus-types.c (compile_cplus_convert_func):
7045	Adjust.
7046	* language.c
7047	(language_arch_info::type_and_symbol::alloc_type_symbol):
7048	Adjust.
7049
70502021-01-21  Luis Machado  <luis.machado@linaro.org>
7051
7052	* coffread.c (enter_linenos): Passing string to complaint.
7053	* valops.c (value_assign): Make array view.
7054
70552021-01-21  Simon Marchi  <simon.marchi@polymtl.ca>
7056
7057	* auto-load.h (debug_auto_load): Move here.
7058	(auto_load_debug_printf): New.
7059	* auto-load.c: Use auto_load_debug_printf.
7060	(debug_auto_load): Move to header.
7061	* linux-thread-db.c (try_thread_db_load): Use
7062	auto_load_debug_printf.
7063	* main.c (captured_main_1): Likewise.
7064
70652021-01-21  Simon Marchi  <simon.marchi@polymtl.ca>
7066
7067	* f-valprint.c (f77_array_offset_tbl): Remove.
7068
70692021-01-21  Simon Marchi  <simon.marchi@polymtl.ca>
7070
7071	* gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
7072
70732021-01-21  Simon Marchi  <simon.marchi@polymtl.ca>
7074
7075	* ser-tcp.c (wait_for_connect): Use interruptible_select instead
7076	of gdb_select.
7077
70782021-01-21  Hannes Domani  <ssbssa@yahoo.de>
7079
7080	PR python/19151
7081	* python/py-breakpoint.c (bppy_get_location): Handle
7082	bp_hardware_breakpoint.
7083	(bppy_init): Likewise.
7084	(gdbpy_breakpoint_created): Likewise.
7085
70862021-01-21  Simon Marchi  <simon.marchi@polymtl.ca>
7087
7088	* arm-tdep.c (arm_debug_printf): Add and use throughout file.
7089
70902021-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
7091
7092	* gdb_bfd.c (debug_bfd_cache): Change type to bool.
7093	(_initialize_gdb_bfd): Adjust.
7094
70952021-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
7096
7097	PR gdb/26828
7098	* dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
7099
71002021-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
7101
7102	* dwarf2/read.c (follow_die_offset): Add logging.
7103	(dwarf2_per_objfile::age_comp_units): Add logging.
7104
71052021-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
7106
7107	* aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
7108	* aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
7109	aarch64_stub_unwind, aarch64_normal_base, ): Make static.
7110	* arm-linux-tdep.c (arm_prologue_unwind): Make static.
7111	* arm-tdep.c (struct frame_unwind): Make static.
7112	* auto-load.c (auto_load_safe_path_vec): Make static.
7113	* csky-tdep.c (csky_stub_unwind): Make static.
7114	* gdbarch.c (gdbarch_data_registry): Make static.
7115	* gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
7116	* i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
7117	* i386-tdep.c (i386_frame_setup_skip_insns,
7118	i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
7119	Make static.
7120	* infrun.c (observer_mode): Make static.
7121	* linux-nat.c (sigchld_action): Make static.
7122	* linux-thread-db.c (thread_db_list): Make static.
7123	* maint-test-options.c (maintenance_test_options_list):
7124	* mep-tdep.c (mep_csr_registers): Make static.
7125	* mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
7126	(stats): Make static.
7127	* nat/linux-osdata.c (struct osdata_type): Make static.
7128	* ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
7129	* progspace.c (last_program_space_num): Make static.
7130	* python/py-param.c (struct parm_constant): Remove struct type
7131	name.
7132	(parm_constants): Make static.
7133	* python/py-record-btrace.c (btpy_list_methods): Make static.
7134	* python/py-record.c (recpy_gap_type): Make static.
7135	* record.c (record_goto_cmdlist): Make static.
7136	* regcache.c (regcache_descr_handle): Make static.
7137	* registry.h (DEFINE_REGISTRY): Make definition static.
7138	* symmisc.c (std_in, std_out, std_err): Make static.
7139	* top.c (previous_saved_command_line): Make static.
7140	* tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
7141	static.
7142	* unittests/command-def-selftests.c (nr_duplicates,
7143	nr_invalid_prefixcmd, lists): Make static.
7144	* unittests/observable-selftests.c (test_notification): Make
7145	static.
7146	* unittests/optional/assignment/1.cc (counter): Make static.
7147	* unittests/optional/assignment/2.cc (counter): Make static.
7148	* unittests/optional/assignment/3.cc (counter): Make static.
7149	* unittests/optional/assignment/4.cc (counter): Make static.
7150	* unittests/optional/assignment/5.cc (counter): Make static.
7151	* unittests/optional/assignment/6.cc (counter): Make static.
7152
71532021-01-20  Joel Sherrill  <joel@rtems.org>
7154
7155	PR gdb/27219
7156	* remote.c (struct remote_thread_info) <resume_state>: Rename
7157	to...
7158	<get_resume_state>: ... this.
7159	(remote_target::resume): Adjust.
7160	(remote_target::commit_resume): Adjust.
7161	(remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
7162
71632021-01-20  Sergio Durigan Junior  <sergiodj@sergiodj.net>
7164	    Tom Tromey <tom@tromey.com>
7165
7166	* stap-probe.c (stap_parse_single_operand): Handle '!'
7167	operator.
7168	(stap_parse_argument_conditionally): Likewise.
7169	Skip spaces after processing open-parenthesis sub-expression.
7170	(stap_parse_argument_1): Skip spaces after call to
7171	stap_parse_argument_conditionally.
7172	Handle case when right-side expression is a parenthesized
7173	sub-expression.
7174	Skip spaces after call to stap_parse_argument_1.
7175
71762021-01-19  Lancelot SIX  <lsix@lancelotsix.com>
7177
7178	* top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
7179
71802021-01-19  Luis Machado  <luis.machado@linaro.org>
7181
7182	* trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
7183	memory and save data.
7184	(trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
7185	(trad_frame_set_unknown, trad_frame_set_value_bytes)
7186	(trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7187	(trad_frame_value_bytes_p): Remove.
7188	(trad_frame_reset_saved_regs): Adjust documentation.
7189	* trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
7190	constructor and reset the state of the registers.
7191	(trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7192	(trad_frame_value_bytes_p, trad_frame_set_value)
7193	(trad_frame_set_realreg, trad_frame_set_addr)
7194	(trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
7195	(trad_frame_set_reg_realreg): Update to call member function.
7196	(trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
7197	(trad_frame_get_prev_register): Likewise.
7198
7199	* aarch64-tdep.c (aarch64_analyze_prologue)
7200	(aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
7201	(aarch64_prologue_prev_register): Update to use member functions.
7202	* alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
7203	* alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
7204	* arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
7205	* arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
7206	(arm_make_epilogue_frame_cache): Likewise.
7207	* avr-tdep.c (avr_frame_unwind_cache)
7208	(avr_frame_prev_register): Likewise.
7209	* cris-tdep.c (cris_scan_prologue): Likewise.
7210	* csky-tdep.c (csky_frame_unwind_cache): Likewise.
7211	* frv-tdep.c (frv_analyze_prologue): Likewise.
7212	* hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
7213	* lm32-tdep.c (lm32_frame_cache): Likewise.
7214	* m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
7215	* m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
7216	* mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
7217	(mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
7218	(reset_saved_regs): Adjust to set realreg.
7219	* riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
7220	call member functions.
7221	* rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
7222	* s390-tdep.c (s390_prologue_frame_unwind_cache)
7223	(s390_backchain_frame_unwind_cache): Likewise.
7224	* score-tdep.c (score7_analyze_prologue)
7225	(score3_analyze_prologue, score_make_prologue_cache): Likewise.
7226	* sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
7227	* sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
7228	* sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
7229	* sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
7230	* tilegx-tdep.c (tilegx_analyze_prologue)
7231	(tilegx_frame_cache): Likewise.
7232	* v850-tdep.c (v850_frame_cache): Likewise.
7233	* vax-tdep.c (vax_frame_cache): Likewise.
7234
72352021-01-19  Luis Machado  <luis.machado@linaro.org>
7236
7237	* frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
7238	of buffer + length.
7239	(put_frame_register_bytes): Likewise.
7240	Adjust documentation.
7241	(get_frame_memory): Pass a gdb::array_view instead of buffer + length.
7242	(safe_frame_unwind_memory): Likewise.
7243	* frame.c (get_frame_register_bytes, put_frame_register_bytes)
7244	(get_frame_memory, safe_frame_unwind_memory): Adjust to use
7245	gdb::array_view.
7246	* amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
7247	* amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
7248	* amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
7249	* arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
7250	* cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
7251	* dwarf2/loc.c (rw_pieced_value): Likewise.
7252	* hppa-tdep.c (hppa_frame_cache): Likewise.
7253	* i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
7254	* i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
7255	* i386-linux-tdep.c (i386_linux_sigtramp_start)
7256	(i386_linux_rt_sigtramp_start): Likewise.
7257	* i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
7258	* i386-tdep.c (i386_register_to_value): Likewise.
7259	* i387-tdep.c (i387_register_to_value): Likewise.
7260	* ia64-tdep.c (ia64_register_to_value): Likewise.
7261	* m32r-linux-tdep.c (m32r_linux_sigtramp_start)
7262	(m32r_linux_rt_sigtramp_start): Likewise.
7263	* m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
7264	* m68k-tdep.c (m68k_register_to_value): Likewise.
7265	* mips-tdep.c (mips_register_to_value)
7266	(mips_value_to_register): Likewise.
7267	* ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
7268	(ppcfbsd_sigtramp_frame_cache): Likewise.
7269	* ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
7270	(ppcobsd_sigtramp_frame_cache): Likewise.
7271	* rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
7272	(rs6000_register_to_value): Likewise.
7273	* tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7274	* tramp-frame.c (tramp_frame_start): Likewise.
7275	* valops.c (value_assign): Likewise.
7276
72772021-01-19  Luis Machado  <luis.machado@linaro.org>
7278
7279	* aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
7280	array_view.
7281	* trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
7282	instead of buffer and size.
7283	(trad_frame_set_reg_value_bytes): Likewise.
7284	* trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
7285	(trad_frame_set_value_bytes): Likewise.
7286
72872021-01-18  Mike Frysinger  <vapier@gentoo.org>
7288
7289	* copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
7290
72912021-01-18  Andrew Burgess  <andrew.burgess@embecosm.com>
7292
7293	* riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
7294	(riscv_fbsd_gregset): Use riscv_supply_regset.
7295	(riscv_fbsd_fpregset): Likewise.
7296	* riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
7297	(riscv_linux_fregset): Likewise.
7298	* riscv-tdep.c (riscv_supply_regset): Define new function.
7299	* riscv-tdep.h (riscv_supply_regset): Declare new function.
7300
73012021-01-18  Tom de Vries  <tdevries@suse.de>
7302
7303	PR tdep/27172
7304	* nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7305	New macro.
7306	(compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7307	for SEGV_BNDERR.
7308
73092021-01-18  Simon Marchi  <simon.marchi@polymtl.ca>
7310
7311	* remote.c (class remote_target) <remote_hostio_send_command,
7312	remote_hostio_parse_result>: Constify parameter.
7313	(remote_hostio_parse_result): Likewise.
7314	(remote_target::remote_hostio_send_command): Adjust.
7315	(remote_target::remote_hostio_pread_vFile): Adjust.
7316	(remote_target::fileio_readlink): Adjust.
7317	(remote_target::fileio_fstat): Adjust.
7318
73192021-01-18  Simon Marchi  <simon.marchi@polymtl.ca>
7320
7321	* remote.c (remote_target::start_remote): Move wait_status to
7322	narrower scope.
7323
73242021-01-18  Simon Marchi  <simon.marchi@polymtl.ca>
7325
7326	* remote.c (class remote_target):
7327	<add_current_inferior_and_thread>: Constify parameter.
7328	(stop_reply_extract_thread): Likewise.
7329	(remote_target::get_current_thread): Likewise.
7330	(remote_target::add_current_inferior_and_thread): Likewise.
7331
73322021-01-18  Simon Marchi  <simon.marchi@polymtl.ca>
7333
7334	* remote.c (class remote_target)
7335	<remote_unpack_thread_info_response,
7336	parse_threadlist_response>: Constify parameter and/or return
7337	value and or local variable.
7338	(stub_unpack_int): Likewise.
7339	(unpack_nibble): Likewise.
7340	(unpack_byte): Likewise.
7341	(unpack_int): Likewise.
7342	(unpack_string): Likewise.
7343	(unpack_threadid): Likewise.
7344	(remote_target::remote_unpack_thread_info_response): Likewise.
7345	(remote_target::parse_threadlist_response): Likewise.
7346
73472021-01-15  Andrew Burgess  <andrew.burgess@embecosm.com>
7348
7349	* tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7350
73512021-01-14  Lancelot Six  <lsix@lancelotsix.com>
7352
7353	* MAINTAINERS (Write After Approval): Add myself.
7354
73552021-01-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7356
7357	* trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7358	because is_trivially_default_constructible was first implemented with
7359	gcc-5.
7360
73612021-01-14  Tom de Vries  <tdevries@suse.de>
7362
7363	PR breakpoints/27151
7364	* objfiles.h (in_plt_section): Handle .plt.sec.
7365
73662021-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7367
7368	PR gdb/26819
7369	* remote.c
7370	(remote_target::select_thread_for_ambiguous_stop_reply): New
7371	member function.
7372	(remote_target::process_stop_reply): Call
7373	select_thread_for_ambiguous_stop_reply.
7374
73752021-01-13  Simon Marchi  <simon.marchi@efficios.com>
7376
7377	* record-btrace.c (class record_btrace_target): Remove.
7378	(record_btrace_target::commit_resume): Remove.
7379	* record-full.c (class record_full_target): Remove.
7380	(record_full_target::commit_resume): Remove.
7381
73822021-01-13  Simon Marchi  <simon.marchi@efficios.com>
7383
7384	* remote.c (enum class resume_state): New.
7385	(struct resumed_pending_vcont_info): New.
7386	(struct remote_thread_info) <resume_state, set_not_resumed,
7387	set_resumed_pending_vcont, resumed_pending_vcont_info,
7388	set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7389	New.
7390	<last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7391	(remote_target::remote_add_thread): Adjust.
7392	(remote_target::process_initial_stop_replies): Adjust.
7393	(remote_target::resume): Adjust.
7394	(remote_target::commit_resume): Rely on state in
7395	remote_thread_info and not on tp->executing.
7396	(remote_target::process_stop_reply): Adjust.
7397
73982021-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
7399
7400	* arc-tdep.h (arc_debug_printf): New.
7401	* arc-tdep.c: Use arc_debug_printf.
7402	* arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7403	* arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7404	* arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7405
74062021-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
7407
7408	* arc-tdep.h (arc_debug): Change type to bool.
7409	* arc-tdep.c (arc_debug): Change type to bool.
7410	(arc_analyze_prologue): Adjust.
7411	(_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7412	* arc-linux-nat.c (ps_get_thread_area): Adjust.
7413
74142021-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
7415
7416	* auto-load.c (auto_load_objfile_script_1): Use bool.
7417	(execute_script_contents): Use bool.
7418
74192021-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
7420
7421	* auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7422	comment here.
7423	* auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7424	comment to header.
7425	* extension-priv.h (struct extension_language_script_ops)
7426	<auto_load_enabled>: Return bool.
7427	* extension.h (ext_lang_auto_load_enabled): Return bool, move
7428	comment here.
7429	* extension.c (ext_lang_auto_load_enabled): Return bool, move
7430	comment to header.
7431	* guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7432	move comment here.
7433	* guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7434	move comment to header.
7435	* python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7436	move comment here.
7437	* python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7438	move comment to header.
7439
74402021-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
7441
7442	* auto-load.h (file_is_auto_load_safe): Change return type to
7443	bool, move comment here.
7444	* auto-load.c (file_is_auto_load_safe): Change return type and
7445	advice_printed to bool.  Move comment to  header.
7446
74472021-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
7448
7449	* jit.c (jit_debug_printf): New, use throughout file.
7450
74512021-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
7452
7453	* infrun.c (normal_stop): Fix indentation.
7454
74552021-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
7456
7457	* top.h (readnow_symbol_files, readnever_symbol_files): Move
7458	declarations to ...
7459	* symfile.h: ... here.
7460	* symfile.c: Update doc.
7461
74622021-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
7463
7464	* target.h (baud_rate, serial_parity): Move declarations...
7465	* serial.h: ... here.
7466	* main.c: Include serial.h.
7467	* serial.c (baud_rate, serial_parity): Update doc.
7468
74692021-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
7470
7471	* top.c (pre_init_ui_hook): Remove.
7472
74732021-01-12  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
7474
7475	* aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7476	(aarch64_vnv_type): Add "bf" type in h field of v registers.
7477	* features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7478	* features/aarch64-fpu.xml: Add bfloat16 type.
7479
74802021-01-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7481
7482	* expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7483
74842021-01-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7485
7486	* f-exp.y (dot_ops): Rename to...
7487	(fortran_operators): ...this.  Add a header comment.  Add symbol
7488	based operators.
7489	(yylex): Update to use fortran_operators not dot_ops.  Remove
7490	special handling for '**', this is now included in
7491	fortran_operators.
7492
74932021-01-11  Simon Marchi  <simon.marchi@polymtl.ca>
7494
7495	* arch/aarch64-insn.h (aarch64_debug_printf): New.
7496	* arch/aarch64-insn.c: Use aarch64_debug_printf.
7497	* aarch64-tdep.c: Use aarch64_debug_printf.
7498
74992021-01-11  Simon Marchi  <simon.marchi@polymtl.ca>
7500
7501	* solib-aix.c (solib_aix_debug_printf): New, use throughout
7502	file.
7503
75042021-01-11  Simon Marchi  <simon.marchi@polymtl.ca>
7505
7506	* jit.c (jit_debug): Change type to bool.
7507	(_initialize_jit): Adjust.
7508
75092021-01-09  Tom Tromey  <tom@tromey.com>
7510
7511	PR compile/23672
7512	* compile/compile.c (compile_to_object): Avoid crash when
7513	osabi_triplet_regexp returns NULL.
7514
75152021-01-09  Tom Tromey  <tom@tromey.com>
7516
7517	* tracepoint.h (class collection_list) <append_exp>: Take a
7518	std::string.
7519	* tracepoint.c (collection_list::append_exp): Take a std::string.
7520	(encode_actions_1): Update.
7521
75222021-01-08  Tom Tromey  <tromey@adacore.com>
7523
7524	* parse.c (parse_expression): Add void_context_p parameter.  Use
7525	parse_exp_in_context.
7526	* printcmd.c (print_command_1): Change voidprint to bool.  Pass to
7527	parse_expression.
7528	(print_command, call_command): Update.
7529	* expression.h (parse_expression): Add void_context_p parameter.
7530
75312021-01-08  Andrew Burgess  <andrew.burgess@embecosm.com>
7532
7533	* value.c (set_value_component_location): Adjust the VALUE_LVAL
7534	for internalvar components that have a dynamic location.
7535
75362021-01-08  Tom de Vries  <tdevries@suse.de>
7537
7538	PR gdb/26881
7539	* breakpoint.c (create_exception_master_breakpoint_probe)
7540	(create_exception_master_breakpoint_hook): Factor out
7541	of ...
7542	(create_exception_master_breakpoint): ... here.  Only try to install
7543	the master exception breakpoint in objfile.debug using the
7544	_Unwind_DebugHook method, if the install using probes in objfile
7545	failed.
7546
75472021-01-08  Andrew Burgess  <andrew.burgess@embecosm.com>
7548
7549	* f-lang.c (fortran_value_subarray): Call value_from_component.
7550
75512021-01-07  Mike Frysinger  <vapier@gentoo.org>
7552
7553	* remote-sim.c: Include memory-map.h.
7554	(gdbsim_target): Define memory_map override.
7555	(gdbsim_target::memory_map): Define.
7556
75572021-01-07  Tom Tromey  <tromey@adacore.com>
7558
7559	* ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7560
75612021-01-07  Tom Tromey  <tromey@adacore.com>
7562
7563	* ada-lang.c (add_component_interval): Start loop using vector's
7564	updated size.
7565
75662021-01-06  Tom Tromey  <tromey@adacore.com>
7567
7568	* ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7569	Do not cast result.
7570	* valarith.c (fixed_point_binop): Handle multiplication
7571	and division specially.
7572	* valops.c (value_to_gdb_mpq): New function.
7573	(value_cast_to_fixed_point): Use it.
7574
75752021-01-05  Hannes Domani  <ssbssa@yahoo.de>
7576
7577	* tui/tui-winsource.c (tui_source_window_base::refresh_window):
7578	Call wnoutrefresh instead of tui_win_info::refresh_window.
7579
75802021-01-05  Hannes Domani  <ssbssa@yahoo.de>
7581
7582	* tui/tui-source.c (tui_source_window::show_line_number):
7583	Redraw second space after line number.
7584
75852021-01-05  Hannes Domani  <ssbssa@yahoo.de>
7586
7587	PR tui/26927
7588	* tui/tui-winsource.c (tui_source_window_base::refresh_window):
7589	Fix source pad size in prefresh.
7590	(tui_source_window_base::show_source_content): Grow source pad
7591	if necessary.
7592
75932021-01-04  Mike Frysinger  <vapier@gentoo.org>
7594
7595	* bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7596	(bfin_frame_align): Use align_down.
7597
75982021-01-04  Tom de Vries  <tdevries@suse.de>
7599
7600	* buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7601	terminators that do not terminate anything.
7602
76032021-01-04  Simon Marchi  <simon.marchi@efficios.com>
7604
7605	* debug.c (debug_print_depth): New.
7606	* infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7607	(INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7608	* infrun.c (start_step_over): Use
7609	INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7610	(proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7611	INFRUN_SCOPED_DEBUG_START_END.
7612	(fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7613
76142021-01-04  Simon Marchi  <simon.marchi@efficios.com>
7615
7616	* infrun.c (print_target_wait_results): Use infrun_debug_printf.
7617
76182021-01-04  Simon Marchi  <simon.marchi@efficios.com>
7619
7620	* utils.c (vfprintf_unfiltered): Print timestamp only when
7621	previous debug output ended with a newline.
7622
76232021-01-04  Luis Machado  <luis.machado@linaro.org>
7624
7625	Update all users of trad_frame_saved_reg to use the new member
7626	functions.
7627
7628	Remote all struct keywords from declarations of trad_frame_saved_reg
7629	types, except on forward declarations.
7630
7631	* aarch64-tdep.c: Update.
7632	* alpha-mdebug-tdep.c: Update.
7633	* alpha-tdep.c: Update.
7634	* arc-tdep.c: Update.
7635	* arm-tdep.c: Update.
7636	* avr-tdep.c: Update.
7637	* cris-tdep.c: Update.
7638	* csky-tdep.c: Update.
7639	* frv-tdep.c: Update.
7640	* hppa-linux-tdep.c: Update.
7641	* hppa-tdep.c: Update.
7642	* hppa-tdep.h: Update.
7643	* lm32-tdep.c: Update.
7644	* m32r-linux-tdep.c: Update.
7645	* m32r-tdep.c: Update.
7646	* m68hc11-tdep.c: Update.
7647	* mips-tdep.c: Update.
7648	* moxie-tdep.c: Update.
7649	* riscv-tdep.c: Update.
7650	* rs6000-tdep.c: Update.
7651	* s390-linux-tdep.c: Update.
7652	* s390-tdep.c: Update.
7653	* score-tdep.c: Update.
7654	* sparc-netbsd-tdep.c: Update.
7655	* sparc-sol2-tdep.c: Update.
7656	* sparc64-fbsd-tdep.c: Update.
7657	* sparc64-netbsd-tdep.c: Update.
7658	* sparc64-obsd-tdep.c: Update.
7659	* sparc64-sol2-tdep.c: Update.
7660	* tilegx-tdep.c: Update.
7661	* v850-tdep.c: Update.
7662	* vax-tdep.c: Update.
7663
7664	* frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7665	* frame-unwind.h (frame_unwind_got_bytes): Likewise.
7666
7667	* trad-frame.c: Update.
7668	Remove TF_REG_* enum.
7669	(trad_frame_alloc_saved_regs): Add a static assertion to check for
7670	a trivially-constructible struct.
7671	(trad_frame_reset_saved_regs): Adjust to use member function.
7672	(trad_frame_value_p): Likewise.
7673	(trad_frame_addr_p): Likewise.
7674	(trad_frame_realreg_p): Likewise.
7675	(trad_frame_value_bytes_p): Likewise.
7676	(trad_frame_set_value): Likewise.
7677	(trad_frame_set_realreg): Likewise.
7678	(trad_frame_set_addr): Likewise.
7679	(trad_frame_set_unknown): Likewise.
7680	(trad_frame_set_value_bytes): Likewise.
7681	(trad_frame_get_prev_register): Likewise.
7682	* trad-frame.h: Update.
7683	(trad_frame_saved_reg_kind): New enum.
7684	(struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7685	<m_kind, m_reg>: New member fields.
7686	<set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7687	<kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7688	<is_addr, is_unknown, is_value_bytes>: New member functions.
7689
76902021-01-02  Simon Marchi  <simon.marchi@polymtl.ca>
7691
7692	* target-float.c: Fix typos.
7693
76942021-01-02  Hannes Domani  <ssbssa@yahoo.de>
7695
7696	* gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7697
76982021-01-01  Joel Brobecker  <brobecker@adacore.com>
7699
7700	* gdbarch.sh: Update copyright year range.
7701
77022021-01-01  Joel Brobecker  <brobecker@adacore.com>
7703
7704	Update copyright year range in copyright header of all GDB files.
7705
77062021-01-01  Joel Brobecker  <brobecker@adacore.com>
7707
7708	* copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7709	to the list of directories to update.
7710
77112021-01-01  Joel Brobecker  <brobecker@adacore.com>
7712
7713	* top.c (print_gdb_version): Update copyright year.
7714
77152021-01-01, 21  Joel Brobecker  <brobecker@adacore.com>
7716
7717	* config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
7718
7719For older changes see ChangeLog-2020.
7720
7721Local Variables:
7722mode: change-log
7723left-margin: 8
7724fill-column: 74
7725version-control: never
7726coding: utf-8
7727End:
7728