]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Sanitize the address before working with allocation tags
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a52d0b9d
LM
12021-06-28 Luis Machado <luis.machado@linaro.org>
2
3 * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
4 byte.
5 (aarch64_linux_set_memtags): Likewise.
6 (aarch64_linux_get_memtag): Likewise.
7 (aarch64_linux_report_signal_info): Likewise.
8
e660f4e9
LM
92021-06-28 Luis Machado <luis.machado@linaro.org>
10
11 * aarch64-linux-tdep.c
12 (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
13
0a3b55a6
LM
142021-06-28 Luis Machado <luis.machado@linaro.org>
15
16 * aarch64-linux-tdep.c
17 (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
18 size.
19 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
20 8 and update comments.
21
b447dd03
SM
222021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * gdbarch.sh (struct gdbarch_info): Initialize fields, add
25 constructor.
26 * gdbarch.h: Re-generate.
27 * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
28 * arch-utils.c (gdbarch_info_init): Remove.
29
c87c999c
SM
302021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
33 (gdbarch_find_by_info): Remove print.
34 * gdbarch.c, gdbarch.h: Re-generate.
35
4d60b897
AB
362021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
37
38 * remote.c (remote_target::start_remote): Set 'starting_up' using
39 boolean values instead of integers.
40
6a72dbb6
SM
412021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * guile/scm-param.c (struct param_smob) <set_command,
44 show_command>: Remove.
45 <commands>: New.
46 (pascm_is_valid): Adjust.
47 (add_setshow_generic): Use return values of add_setshow
48 functions, return a set_show_commands.
49 (gdbscm_register_parameter_x): Adjust.
50
4c0ba02a
SM
512021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * command.h (add_setshow_enum_cmd): Remove context parameter.
54 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
55 set context.
56 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
57 context here.
58
d6ff04a3
SM
592021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
62 assert.
63
0f8e2034
SM
642021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * cli/cli-decode.h (struct cmd_list_element) <set_context,
67 context>: New.
68 <context>: Rename to...
69 <m_context>: ... this.
70 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
71 * command.h (set_cmd_context, get_cmd_context): Remove, use
72 cmd_list_element::set_context and cmd_list_element::context
73 everywhere instead.
74
bd742128
AB
752021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
76
77 * NEWS: Mention changes to 'info sources'.
78 * symtab.c (info_sources_filter::print): Delete.
79 (struct output_source_filename_data) <print_header>: Delete
80 declaration. <printed_filename_p>: New member function.
81 (output_source_filename_data::print_header): Delete.
82 (info_sources_worker): Update group-by-objfile style output to
83 make it CLI suitable, simplify non-group-by-objfile now this is
84 only used from the MI.
85 (info_sources_command): Make group-by-objfile be the default for
86 CLI info sources command.
87 * symtab.h (struct info_sources_filter) <print>: Delete.
88
1fb1ce02
AB
892021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
90
91 * NEWS: Mention additions to -file-list-exec-source-files.
92 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
93 --group-by-objfile option.
94 * symtab.c (isrc_flag_option_def): Rename to...
95 (isrc_match_flag_option_def): ...this.
96 (info_sources_option_defs): Rename to...
97 (info_sources_match_option_defs): ...this, and update to rename of
98 isrc_flag_option_def.
99 (struct filename_grouping_opts): New struct.
100 (isrc_grouping_flag_option_def): New type.
101 (info_sources_grouping_option_defs): New static global.
102 (make_info_sources_options_def_group): Update to return two option
103 groups.
104 (info_sources_command_completer): Update for changes to
105 make_info_sources_options_def_group.
106 (info_sources_worker): Add extra parameter, use this to display
107 alternative output format.
108 (info_sources_command): Pass extra parameter to
109 info_sources_worker.
110 (_initialize_symtab): Update for changes to
111 make_info_sources_options_def_group.
112 * symtab.h (info_sources_worker): Add extra parameter.
113
0e350a05
AB
1142021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * NEWS: Mention additions to -file-list-exec-source-files.
117 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
118 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
119 options, and make use of info_sources_worker.
120 * symtab.c (struct info_sources_filter): Moved to symtab.h.
121 (info_sources_filter::print): Take uiout argument, produce output
122 through uiout.
123 (struct output_source_filename_data)
124 <output_source_filename_data>: Take uiout argument, store into
125 m_uiout. <output>: Rewrite comment, add additional arguments to
126 declaration. <operator()>: Send more arguments to
127 output. <m_uiout>: New member variable.
128 (output_source_filename_data::output): Take extra arguments,
129 produce output through m_uiout, and structure for MI.
130 (output_source_filename_data::print_header): Produce output
131 through m_uiout.
132 (info_sources_worker): New function, the implementation is taken
133 from info_sources_command, but modified so produce output through
134 a ui_out.
135 (info_sources_command): The second half of this function has gone
136 to become info_sources_worker.
137 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
138 extra parameter to print member function.
139 (info_sources_worker): Declare.
140
4a0788e0
AB
1412021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 * symtab.c (struct info_sources_filter): New.
144 (info_sources_filter::info_sources_filter): New function.
145 (info_sources_filter::matches): New function.
146 (info_sources_filter::print): New function.
147 (struct filename_partial_match_opts): Moved to later in the file
148 and update the comment.
149 (struct output_source_filename_data)
150 <output_source_filename_data>: New constructor. <regexp>: Delete,
151 this is now in info_sources_filter. <c_regexp>: Delete, this is
152 now in info_sources_filter. <reset_output>: New member function.
153 <filename_seen_cache>: Rename to m_filename_seen_cache, change
154 from being a pointer, to being an actual object. <first>: Rename
155 to m_first. <print_header>: New member function. <partial_match>:
156 Delete.
157 (output_source_filename_data::output): Update now
158 m_filename_seen_cache is no longer a pointer, and for other member
159 variable name changes. Add a header comment.
160 (print_info_sources_header): Renamed to...
161 (output_source_filename_data::print_header): ...this. Update now
162 it's a member function and to take account of member variable
163 renaming.
164 (info_sources_command): Add a header comment, delete stack local
165 filename_seen_cache, initialization of output_source_filename_data
166 is now done by the constructor. Call print_header member function
167 instead of print_info_sources_header, call reset_output member
168 function instead of manually performing the reset.
169
fc4d5ebf
AB
1702021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
171
172 * dwarf2/read.c (struct dwarf2_base_index_functions)
173 <has_unexpanded_symtabs>: Declare.
174 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
175 function.
176 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
177 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
178 Declare.
179 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
180 new function.
181 * quick-symbol.h (struct quick_symbol_functions)
182 <has_unexpanded_symtabs>: Declare.
183 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
184 function.
185
d038ce48
AB
1862021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
187
188 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
189 setting prototyped flag.
190
158cc4fe
AB
1912021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
192
193 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
194 an empty gdb::optional when calling value_struct_elt.
195 (desc_data): Likewise.
196 (desc_one_bound): Likewise.
197 * eval.c (structop_base_operation::evaluate_funcall): Pass
198 gdb::array_view, not a gdb::array_view* to value_struct_elt.
199 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
200 an empty gdb::optional when calling value_struct_elt.
201 (eval_op_structop_ptr): Likewise.
202 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
203 * guile/scm-value.c (gdbscm_value_field): Likewise.
204 * m2-lang.c (eval_op_m2_high): Likewise.
205 (eval_op_m2_subscript): Likewise.
206 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
207 * python/py-value.c (valpy_getitem): Likewise.
208 * rust-lang.c (rust_val_print_str): Likewise.
209 (rust_range): Likewise.
210 (rust_subscript): Likewise.
211 (eval_op_rust_structop): Likewise.
212 (rust_aggregate_operation::evaluate): Likewise.
213 * valarith.c (value_user_defined_op): Likewise.
214 * valops.c (search_struct_method): Change parameter type, update
215 function body accordingly, and update header comment.
216 (value_struct_elt): Change parameter type, update function body
217 accordingly.
218 * value.h (value_struct_elt): Update declaration.
219
13221aec
AB
2202021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 PR gdb/27994
223 * eval.c (structop_base_operation::evaluate_funcall): Pass
224 array_view instead of array to value_struct_elt.
225 * valarith.c (value_user_defined_op): Likewise.
226 * valops.c (typecmp): Change parameter type from array pointer to
227 array_view. Update header comment, and update body accordingly.
228 (search_struct_method): Likewise.
229 (value_struct_elt): Likewise.
230 * value.h (value_struct_elt): Update declaration.
231
79bd4d34
AB
2322021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 PR gdb/27994
235 * eval.c (structop_base_operation::evaluate_funcall): Add a
236 nullptr to the end of the args array, which should not be included
237 in the argument array_view. Pass all the arguments through to
238 value_struct_elt.
239 * valops.c (search_struct_method): Update header comment.
240 (value_struct_elt): Likewise.
241
3da4c644
TT
2422021-06-25 Tom Tromey <tom@tromey.com>
243
244 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
245 logic.
246
3e9f1ca1
TT
2472021-06-25 Tom Tromey <tom@tromey.com>
248
249 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
250 (scan_partial_symbols, partial_die_parent_scope)
251 (add_partial_symbol, add_partial_subprogram)
252 (compute_delayed_physnames, rust_union_quirks)
253 (process_full_comp_unit, process_full_type_unit)
254 (process_imported_unit_die, process_die, dw2_linkage_name)
255 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
256 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
257 (read_variable, dwarf2_get_subprogram_pc_bounds)
258 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
259 (dwarf2_attach_fn_fields_to_type)
260 (quirk_ada_thick_pointer_struct, read_structure_type)
261 (handle_struct_member_die, process_structure_scope)
262 (read_array_type, read_array_order, prototyped_function_p)
263 (read_subroutine_type, dwarf2_init_complex_target_type)
264 (read_base_type, read_subrange_type, read_unspecified_type)
265 (load_partial_dies, partial_die_info::fixup, set_cu_language)
266 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
267 (dwarf2_canonicalize_name, follow_die_offset)
268 (prepare_one_comp_unit): Update.
269 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
270
bf1dcdb3
TT
2712021-06-25 Tom Tromey <tom@tromey.com>
272
273 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
274 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
275 set language_defn. Handle DW_LANG_OpenCL.
276 (prepare_one_comp_unit): Check producer and set language_defn.
277
6b95f5ad
AB
2782021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
279
280 * NEWS: Mention Python BP_CATCHPOINT feature.
281 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
282 (bppy_init): Likewise.
283 (gdbpy_breakpoint_created): Likewise.
284
08080f97
AB
2852021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
286
287 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
288 bp_catchpoint.
289 (bpscm_want_scm_wrapper_p): Likewise.
290 (gdbscm_make_breakpoint): Likewise.
291 (breakpoint_integer_constants): Likewise.
292
81b327aa
AB
2932021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
294
295 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
296 for invalid breakpoint numbers, and unsupported breakpoint
297 numbers.
298
50a6759f
TT
2992021-06-25 Tom Tromey <tom@tromey.com>
300
301 * dwarf2/index-write.c (struct addrmap_index_data): Add
302 initializers.
303 <operator()>: Declare.
304 (addrmap_index_data::operator()): Rename from
305 add_address_entry_worker. Remove 'datap' parameter.
306 (write_address_map): Update.
307 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
308 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
309 parameters.
310 (dump_psymtab_addrmap): Update.
311 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
312 parameter.
313 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
314 (struct mutable_foreach_data): Remove.
315 (addrmap_mutable_foreach_worker): Update.
316 (addrmap_mutable_foreach): Remove 'data' parameter.
317 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
318 (addrmap_foreach): Remove 'data' parameter.
319
67470e9d
TT
3202021-06-25 Tom Tromey <tromey@adacore.com>
321
322 * python/py-type.c (typy_get_name): Decode an Ada type name.
323
8a3df5ac
TT
3242021-06-25 Tom Tromey <tromey@adacore.com>
325
326 * ada-lang.c (ada_decode): Add wrap parameter.
327 * ada-lang.h (ada_decode): Add wrap parameter.
328
134df964
LM
3292021-06-25 Luis Machado <luis.machado@linaro.org>
330
331 * corelow.c (core_target::core_target) Update to read target
332 description.
333
224506e9
SM
3342021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
335
336 * python/lib/gdb/__init__.py: Format.
337
ac0d67ed
SM
3382021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
339
340 * infrun.c (do_target_wait): Remove wait_ptid parameter.
341 (fetch_inferior_event): Adjust.
342
4e317a76
SM
3432021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
344
345 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
346 with name of chosen unwinder.
347 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
348 unwinder in debug message.
349
80d1206d
AS
3502021-06-22 Andreas Schwab <schwab@suse.de>
351
352 PR symtab/27999
353 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
354 DW_LLE_start_end.
355
80dc83fd
AB
3562021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * breakpoint.c (insert_bp_location): If we catch a
359 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
360 been deleted.
361
96f842cb
AB
3622021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
363
364 * NEWS: Mention new target feature name.
365 * arch/riscv.c (riscv_create_target_description): GDB doesn't
366 currently create target descriptions containing vector registers.
367 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
368 variable.
369 <operator==>: Also compare vlen.
370 <hash>: Also include vlen.
371 * riscv-tdep.c (riscv_feature_name_vector): New static global.
372 (struct riscv_vector_feature): New struct.
373 (riscv_vector_feature): New static global.
374 (riscv_register_reggroup_p): Ensure vector registers are part of
375 the 'all' group, and part of the 'vector' group.
376 (riscv_dwarf_reg_to_regnum): Handle vector registers.
377 (riscv_gdbarch_init): Check vector register feature.
378 * riscv-tdep.h: Add vector registers to GDB's internal register
379 numbers, and to the DWARF register numbers.
380
d52b8007
AB
3812021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
382
383 * NEWS: Mention the two new methods.
384 * python/py-frame.c (frapy_level): New function.
385 (frame_object_methods): Register 'level' method.
386 * python/py-unwind.c (pending_framepy_level): New function.
387 (pending_frame_object_methods): Register 'level' method.
388
8b9c48b2
AB
3892021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * python/py-inferior.c (infpy_get_connection_num): Call
392 gdb_py_object_from_longest instead of PyLong_FromLong directly.
393
61e2dde2
AB
3942021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
395
396 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
397 saving user registers.
398
7e3941ac
MF
3992021-06-19 Mike Frysinger <vapier@gentoo.org>
400
401 * acinclude.m4: Delete most m4_include's of ../config files.
402 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
403 * aclocal.m4: Regenerate.
404 * configure: Regenerate.
405
336b30e5
PA
4062021-06-17 Pedro Alves <pedro@palves.net>
407
408 * scoped_ignore_signal.h (scoped_ignore_signal): Add
409 ConsumePending template parameter.
410 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
411 sigtimedwait if ConsumePending is false.
412 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
413 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
414 <m_ignore_signal>: Initialize with ConsumePending=false.
415
2af6d46f
PA
4162021-06-17 Pedro Alves <pedro@palves.net>
417
418 * Makefile.in (SELFTESTS_SRCS): Add
419 unittests/scoped_ignore_signal-selftests.c.
420 * unittests/scoped_ignore_signal-selftests.c: New.
421
6a7f1c20
PA
4222021-06-17 Pedro Alves <pedro@palves.net>
423
424 * gdbsupport/scoped_ignore_signal.h: New.
425 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
426 instead of <signal.h>. Don't include <unistd.h>.
427 (scoped_ignore_sigpipe): Remove.
428 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
429 instead of <signal.h>. Don't include <unistd.h>.
430 (lazy_init): New.
431 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
432 and lazy_init.
433
965febe5
PA
4342021-06-17 Pedro Alves <pedro@palves.net>
435
436 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
437 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
438 * inflow.h: Delete, moved to gdbsupport/ under a different name.
439 * ser-unix.c: Don't include "inflow.h". Include
440 "gdbsupport/scoped_ignore_sigttou.h".
441
82a5082e
PA
4422021-06-17 Pedro Alves <pedro@palves.net>
443
444 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
445 ...
446 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
447 tui_getc_1.
448 (cur_seq, start_sequence): New.
449 (tui_getc_1): Pass key escape sequences for curses control keys to
450 readline. Handle mouse and ctrl-l here.
451 (tui_resize_all): Disable/reenable the keypad if the command
452 window has the focus too.
453 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
454 setting.
455 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
456
7daf500d
SM
4572021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
460
8457e5ec
TV
4612021-06-16 Tom de Vries <tdevries@suse.de>
462
463 PR symtab/26327
464 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
465 (dwarf2_cu::get_builder): Declare and move ...
466 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
467 of ancestor. Assert return value is non-null.
468 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
469 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
470 (dwarf2_per_objfile): Add sym_cu field.
471
93df3340
AM
4722021-06-15 Alan Modra <amodra@gmail.com>
473
474 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
475
483ab96a
MF
4762021-06-14 Mike Frysinger <vapier@gentoo.org>
477
478 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
479 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
480
09db4332
JB
4812021-06-14 John Baldwin <jhb@FreeBSD.org>
482
483 * configure.ac: Check for <sys/procctl.h>.
484 * config.in, configure: Regenerate.
485 * fbsd-nat.c: Include <sys/procctl.h> if present.
486 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
487 (fbsd_nat_target::create_inferior)
488 (fbsd_nat_target::supports_disable_randomization): New.
489 * fbsd-nat.h (fbsd_nat_target::create_inferior)
490 (fbsd_nat_target::supports_disable_randomization): New.
491
739025e8
BE
4922021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
493
494 * compile/compile.c: Include missing header signal.h.
495
d424629d
JB
4962021-06-12 John Baldwin <jhb@FreeBSD.org>
497
498 * remote.c (remote_new_objfile): Fix indentation.
499
e2b9ea4b
KB
5002021-06-11 Kevin Buettner <kevinb@redhat.com>
501
502 * solib.c (libpthread_name_p): Match "libc" in addition
503 to "libpthread".
504 * linux-thread-db.c (libpthread_objfile_p): New function.
505 (libpthread_name_p): Adjust preexisting callers to use
506 libpthread_objfile_p().
507
873793ae
SM
5082021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * dwarf2/loc.h (struct call_site_stuff): Remove.
511
48ec4c05
TT
5122021-06-11 Tom Tromey <tom@tromey.com>
513
514 PR rust/23427
515 * rust-parse.c (rust_parser::lex_identifier): Handle raw
516 identifiers.
517 (rust_lex_tests): Add raw identifier tests.
518
f9e59d06
LS
5192021-06-08 Lancelot Six <lsix@lancelotsix.com>
520
521 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
522 instead of '== None'.
523 (FrameVars): Use 'is not None' instead of '!= None'.
524 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
525 Use 'is None' instead of '== None' and 'is not None' instead of '!=
526 None'.
527
122373f7
SM
5282021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
529
530 * inferior.h (class inferior) <in_initial_library_scan>: New.
531 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
532 * infrun.c (follow_fork_inferior): Likewise.
533 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
534 by try_thread_db_load_1
535 (thread_db_load): Return early if in_initial_library_scan is
536 set.
537 * remote.c (remote_new_objfile): Return early if
538 in_initial_library_scan is set.
539
1b453aed
PA
5402021-06-07 Pedro Alves <pedro@palves.net>
541
542 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
543 ctor.
544 * symtab.h (struct symbol): Add defaulted copy assignment
545 operator.
546
fa6ec8ef
PA
5472021-06-07 Pedro Alves <pedro@palves.net>
548
549 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
550 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
551 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
552 local.
553
c57eb1a2
PA
5542021-06-07 Pedro Alves <pedro@palves.net>
555
556 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
557 (nat_sigval_t): ... this and remove typedef of same name.
558 (struct nat_siginfo): Rename to ...
559 (nat_siginfo_t): ... this and remove typedef of same name.
560 (struct compat_sigval): Rename to ...
561 (compat_sigval_t): ... this and remove typedef of same name.
562 (struct compat_siginfo): Rename to ...
563 (compat_siginfo_t): ... this and remove typedef of same name.
564 (struct compat_x32_siginfo): Rename to ...
565 (compat_x32_siginfo_t): ... this and remove typedef of same name.
566 (amd64_linux_siginfo_fixup_common): Adjust.
567
d8ca8e9f
PA
5682021-06-07 Pedro Alves <pedro@palves.net>
569
570 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
571 __attribute__ __aligned__ from the typedef to the struct.
572
a12a15e7
AB
5732021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 PR gdb/27847
576 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
577 type_align, and spot case where the alignment is unknown.
578
ecac8d1c
CL
5792021-06-07 Carl Love <cel@us.ibm.com>
580
581 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
582 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
583 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
584 ppc64_pcrel_linkage2_target): New functions.
585 (ppc64_standard_linkage9, ppc64_standard_linkage10,
586 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
587 instruction patterns.
588 (ppc64_standard_linkage9, ppc64_standard_linkage10,
589 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
590 in define MAX expression.
591 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
592 ppc64_standard_linkage10, ppc64_standard_linkage11,
593 ppc64_standard_linkage12.
594 * (ppc_insn_prefix_dform): New function.
595
cfa8e270
SM
5962021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
597
598 PR gdb/27899
599 * sparc-nat.c (sparc_fetch_inferior_registers): Set
600 inferior_ptid instead of using switch_to_thread.
601 (sparc_store_inferior_registers): Likewise.
602
4a977544
BE
6032021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
604
605 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
606 (compile_to_object): Ignore SIGPIPE before calling the plugin.
607
8ff8c543
TT
6082021-06-05 Tom Tromey <tom@tromey.com>
609
610 * data-directory/Makefile.in (Makefile): Use correct directory
611 name.
612
19d6d783
TT
6132021-06-05 Tom Tromey <tom@tromey.com>
614
615 * data-directory/Makefile.in (Makefile): Rewrite.
616
b316465f
TT
6172021-06-05 Tom Tromey <tromey@adacore.com>
618
619 * configure: Rebuild.
620 * configure.ac: Add ACX_NONCANONICAL_TARGET.
621
ae61ef2c
SV
6222021-06-05 Shahab Vahedi <shahab@synopsys.com>
623
624 * NEWS: Document 'set disassembler-options' support for the ARC
625 target.
626 * arc-tdep.c (arc_gdbarch_init): Set
627 'gdbarch_valid_disassembler_options'.
628
386de171
TT
6292021-06-04 Tom Tromey <tromey@adacore.com>
630
631 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
632 parameter.
633 * dwarf2/loc.c (dwarf2_evaluate_property) <case
634 PROP_VARIABLE_NAME>: New case.
635 (compute_var_value): New function.
636 (sect_variable_value): Use compute_var_value.
637 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
638 (var_decl_name): New function.
639 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
640 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
641 constant.
642 (union dynamic_prop_data) <variable_name>: New member.
643 (struct dynamic_prop) <variable_name, set_variable_name>: New
644 methods.
645
4351271e
AB
6462021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * remote.c (remote_target)
649 <select_thread_for_ambiguous_stop_reply>: Add additional debug
650 output.
651
a5375566
HD
6522021-06-04 Hannes Domani <ssbssa@yahoo.de>
653
654 * python/py-tui.c (class tui_py_window): Add click function.
655 (tui_py_window::click): Likewise.
656
1bace02a
HD
6572021-06-04 Hannes Domani <ssbssa@yahoo.de>
658
659 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
660 * tui/tui-data.h (struct tui_win_info): Add click function.
661 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
662 (tui_deprep_terminal): Disable mouse events.
663 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
664 * tui/tui.c (tui_disable): Disable mouse events.
665
df5bc734
MH
6662021-06-03 Magne Hov <mhov@undo.io>
667
668 PR python/27841
669 * eval.c (expression::evaluate): Check inferior_ptid.
670
415c8100
PA
6712021-06-03 Pedro Alves <pedro@palves.net>
672
673 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
674 affiliation.
675 (Global Maintainers): Update my address.
676 (Write After Approval): Remove stale entry.
677
83810881
JB
6782021-06-03 John Baldwin <jhb@FreeBSD.org>
679
680 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
681 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
682 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
683 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
684 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
685 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
686 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
687 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
688 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
689 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
690 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
691 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
692 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
693 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
694 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
695 (fbsd_report_signal_info): New.
696 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
697 report_signal_info method.
698
4c958d79
MH
6992021-06-03 Magne Hov <mhov@undo.io>
700
701 * MAINTAINERS (Write After Approval): Add Magne Hov.
702
6ac5237c
HD
7032021-06-03 Hannes Domani <ssbssa@yahoo.de>
704
705 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
706 gdb.SYMBOL_LABEL_DOMAIN constant.
707
aeeb758d
JB
7082021-06-01 John Baldwin <jhb@FreeBSD.org>
709
710 * infrun.c (handle_inferior_event): Only call
711 gdbarch_displaced_step_restore_all_in_ptid if
712 gdbarch_supports_displaced_stepping is true.
713
906f72d4
TT
7142021-06-01 Tom Tromey <tromey@adacore.com>
715
716 * Makefile.in (all-data-directory): Remove.
717 (data-directory/Makefile): Remove.
718
ba56237d
TT
7192021-06-01 Tom Tromey <tromey@adacore.com>
720
721 * configure: Rebuild.
722 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
723
2adf1781
TT
7242021-06-01 Tom Tromey <tromey@adacore.com>
725
726 * silent-rules.mk (ECHO_CC): New variable.
727
bdbbcd57
TT
7282021-06-01 Tom Tromey <tromey@adacore.com>
729
730 * Makefile.in (SUBDIRS): Add testsuite.
731 (all): Don't exclude testsuite.
732
f99d1d37
TT
7332021-06-01 Tom Tromey <tromey@adacore.com>
734
735 * configure.ac: Copy some code from testsuite/configure.ac.
736 (enable_libctf): Subst this, not ENABLE_LIBCTF.
737 * configure: Rebuild.
738
17d305ef
TV
7392021-06-01 Tom de Vries <tdevries@suse.de>
740
741 PR symtab/26096
742 * minsyms.c (msymbol_is_cold_clone): New function.
743 (msymbol_is_function): Use msymbol_is_cold_clone.
744
9b715c68
AB
7452021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
746 Andrew Burgess <andrew.burgess@embecosm.com>
747
748 PR gdb/14383
749 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
750 (ALLDEPFILES): Add arm-none-tdep.c
751 * arm-none-tdep.c: New file.
752 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
753
b4b3e2de
AB
7542021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
755 Richard Bunt <richard.bunt@arm.com>
756
757 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
758 check for why the backtrace stopped.
759
9ea36493
SM
7602021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
761
762 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
763 Update all callers.
764 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
765 signature parameter, update all callers.
766 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
767 signature parameter.
768
46c6bcf6
SM
7692021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * dwarf2/read.h (signatured_type_up): New, use where possible.
772
4631503b
SM
7732021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
774
775 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
776
cc653233
TT
7772021-05-30 Tom Tromey <tom@tromey.com>
778
779 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
780 is_debug_types.
781 (create_signatured_type_table_from_index)
782 (create_signatured_type_table_from_debug_names, add_type_unit)
783 (read_comp_units_from_section): Update.
784
c96e8b04
TT
7852021-05-30 Tom Tromey <tom@tromey.com>
786
787 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
788 m_num_psymtabs>: Remove.
789 (resize_symtabs): Update.
790 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
791 (dwarf2_per_bfd::allocate_signatured_type): Update.
792
24b21115
SM
7932021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
794
795 * Fix tab after space indentation issues throughout.
796
01add95b
SM
7972021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
798
799 * Fix some indentation mistakes throughout.
800
055c879f
SM
8012021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * breakpoint.h (iterate_over_bp_locations): Remove. Update
804 users to use all_bp_locations.
805 (all_bp_locations): New.
806 * breakpoint.c (all_bp_locations): Make non-static.
807 (iterate_over_bp_locations): Remove.
808
240edef6
SM
8092021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
810
811 * breakpoint.h (iterate_over_breakpoints): Remove. Update
812 callers to use all_breakpoints or all_breakpoints_safe.
813 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
814 all_breakpoints_safe): Move here.
815 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
816 non-static.
817 (iterate_over_breakpoints): Remove.
818 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
819 Return void.
820 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
821 return value logic.
822 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
823
e0d9a270
SM
8242021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
825
826 * breakpoint.c (get_first_locp_gte_addr): Remove.
827 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
828 all_bp_locations_at_addr.
829 (struct bp_locations_at_addr_range): New.
830 (all_bp_locations_at_addr): New.
831 (bp_locations_compare_addrs): New.
832
48d7020b
SM
8332021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
834
835 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
836 all_bp_locations.
837 (all_bp_locations): New.
838
5d51cd5d
SM
8392021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
840
841 * breakpoint.c (bp_locations): Change to std::vector, update all
842 users.
843 (bp_locations_count): Remove.
844 (update_global_location_list): Change to work with indices
845 rather than bp_location**.
846
40cb8ca5
SM
8472021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
848
849 * breakpoint.h (bp_locations_range): New.
850 (struct breakpoint) <locations>: New. Use where possible.
851
f6d17b2b
SM
8522021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
853
854 * breakpoint.h (all_tracepoints): Remove.
855 (breakpoint_iterator): Move here.
856 (struct tracepoint_filter): New.
857 (tracepoint_iterator): New.
858 (tracepoint_range): New.
859 (all_tracepoints): New.
860 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
861 all_tracepoints.
862 (breakpoint_iterator): Move to header.
863 (all_tracepoints): New.
864 * tracepoint.c (start_tracing): Adjust.
865
1428b37a
SM
8662021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * breakpoint.c (breakpoint_safe_range): New.
869 (all_breakpoints_safe): New. Use instead of
870 ALL_BREAKPOINTS_SAFE where possible.
871
43892fdf
SM
8722021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
873
874 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
875 all_breakpoints.
876 (breakpoint_iterator): New.
877 (breakpoint_range): New.
878 (all_breakpoints): New.
879
bdef5723
HD
8802021-05-27 Hannes Domani <ssbssa@yahoo.de>
881
882 * python/py-tui.c (tui_py_window::output): Add full_window
883 argument.
884 (gdbpy_tui_write): Parse "full_window" argument.
885
d5a6313e
SM
8862021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
887
888 * make-init-c: Add option to reverse function calls.
889
f39632d9
SM
8902021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * Makefile.in (INIT_FILES_FILTER_OUT): New.
893 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
894 (stamp-init): Use make-init-c.
895 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
896 * silent-rules.mk (ECHO_INIT_C): Change.
897 * make-init-c: New file.
898
5e84b7ee
SM
8992021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
900
901 * command.h (add_alias_cmd): Accept target as
902 cmd_list_element. Update callers.
903
e0f25bd9
SM
9042021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
905
906 * command.h (add_info_alias): Accept target as
907 cmd_list_element. Update callers.
908
3947f654
SM
9092021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
910
911 * command.h (add_com_alias): Accept target as
912 cmd_list_element. Update callers.
913
7bd22f56
SM
9142021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
915
916 * python/py-param.c (add_setshow_generic): Use return values of
917 add_setshow functions.
918
9f260536
SM
9192021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
920
921 * mi/mi-main.c (_initialize_mi_main):
922 * python/py-auto-load.c (gdbpy_initialize_auto_load):
923 * remote.c (_initialize_remote):
924
af7f8f52
SM
9252021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
926
927 * command.h (set_show_commands): New.
928 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
929 add_setshow_boolean_cmd, add_setshow_filename_cmd,
930 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
931 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
932 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
933 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
934 Return set_show_commands. Adjust callers.
935 * cli/cli-decode.c (add_setshow_cmd_full): Return
936 set_show_commands, remove result parameters, adjust callers.
937
248f7165
TV
9382021-05-27 Tom de Vries <tdevries@suse.de>
939
940 PR symtab/27919
941 * dwarf2/read.c (process_psymtab_comp_unit):
942
2152b4fd
TV
9432021-05-27 Tom de Vries <tdevries@suse.de>
944
945 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
946 error.
947
6dcd1193
TV
9482021-05-27 Tom de Vries <tdevries@suse.de>
949
950 PR symtab/27898
951 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
952 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
953 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
954 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
955 load_all_dies init.
956 (dwarf2_per_cu_data): Remove load_all_dies field.
957
11bb5c41
SM
9582021-05-26 Simon Marchi <simon.marchi@efficios.com>
959
960 * regcache.c (reg_buffer::reg_buffer): Default-initialize
961 m_registers array.
962
ef5f598c
TT
9632021-05-26 Tom Tromey <tom@tromey.com>
964
965 * dwarf2/read.c (allocate_type_unit_groups_table)
966 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
967 htab_delete_entry.
968 (free_line_header_voidp): Remove.
969 * completer.c
970 (completion_tracker::completion_hash_entry::deleter): Remove.
971 (completion_tracker::discard_completions): Use htab_delete_entry.
972 * utils.h (htab_delete_entry): New template function.
973
a56889ae
HD
9742021-05-24 Hannes Domani <ssbssa@yahoo.de>
975
976 * python/py-tui.c (tui_py_window::refresh_window):
977 Avoid flickering.
978
fbf3c4b9
TV
9792021-05-23 Tom de Vries <tdevries@suse.de>
980
981 PR tdep/27822
982 * target.h (struct target_ops): Mention target_thread_architecture in
983 read_description comment.
984 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
985 pid to determine if process is 64-bit or 32-bit.
986 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
987 Same.
988 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
989 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
990 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
991 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
992 Likewise, use pid to determine if kernel supports reading VFP
993 registers.
994
8569d6e1
PW
9952021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
996
997 * main.c (enum cmdarg_kind): Fix option type comments for
998 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
999
778ae9cc
TV
10002021-05-21 Tom de Vries <tdevries@suse.de>
1001
1002 PR testsuite/25047
1003 * contrib/cc-with-tweaks.sh: Handle -l.
1004
6d1a09b7
TV
10052021-05-21 Tom de Vries <tdevries@suse.de>
1006
1007 PR breakpoint/27889
1008 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1009 objects. Call get_jiter_objfile_data with the_objfile.
1010
1487a14e
SM
10112021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1012
1013 * linespec.c (linespec_p): Remove. Replace all uses with
1014 "linespec *".
1015
bb6203bf
AH
10162021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1017 Pedro Alves <pedro@palves.net>
1018
1019 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
1020 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
1021 command_line_up instead of struct command_line.
1022 (build_command_line): Likewise.
1023 (get_command_line): Update the cmd function call parameter.
1024 (process_next_line): Use unique_ptr command_line_up instead
1025 of struct command_line.
1026 (recurse_read_control_structure): Change the the type of
1027 next to command_line_up.
1028 (read_command_lines_1): Change type of `next' to be
1029 command_line_up and update all references of `next'
1030 accordingly.
1031
ed3130b7
AH
10322021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1033
1034 * MAINTAINERS (Write After Approval): Add myself.
1035
5433e20e
JB
10362021-05-19 John Baldwin <jhb@FreeBSD.org>
1037
1038 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1039
a5523cc3
AH
10402021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1041
1042 * inflow.c (new_tty): Do not leak tty.
1043
cd53fa40
TT
10442021-05-17 Tom Tromey <tom@tromey.com>
1045
1046 * dwarf2/read.h: Update include.
1047 * dwarf2/read.c: Update include.
1048 * dwarf2/line-header.c: Update include.
1049 * dwarf2/cu.h: Update include.
1050 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1051 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1052 * Makefile.in (COMMON_SFILES): Update.
1053
347212b8
TT
10542021-05-17 Tom Tromey <tom@tromey.com>
1055
1056 * dwarf2/read.c (maybe_queue_comp_unit)
1057 (dwarf2_per_objfile::age_comp_units): Update.
1058 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1059 dwarf2_cu methods.
1060 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1061 add_dependence>: New methods.
1062 <m_dependencies>: Add "m_" prefix. Now private.
1063 <m_mark>: Add "m_" prefix.
1064 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1065 (dwarf2_mark_helper): New function.
1066 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1067
839118f9
TT
10682021-05-17 Tom Tromey <tom@tromey.com>
1069
1070 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1071 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1072 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1073 * dwarf2/cu.c: New file.
1074 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1075
8ae78a44
TT
10762021-05-17 Tom Tromey <tom@tromey.com>
1077
1078 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1079 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1080 Move to cu.h.
1081 * dwarf2/cu.h: New file.
1082
c1c0a7e1
AB
10832021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1084
1085 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1086 set brace-list-open to 0 for C and C++ modes.
1087
9e541c79
TT
10882021-05-17 Tom Tromey <tromey@adacore.com>
1089
1090 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1091 if frame is null.
1092
59173216
TT
10932021-05-17 Tom Tromey <tromey@adacore.com>
1094
1095 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1096 (group_from_gid): Subtract one from strncpy length.
1097
baea2f9d
TT
10982021-05-17 Tom Tromey <tromey@adacore.com>
1099
1100 * source.c (add_path): Check 'p' before using 'p[-1]'.
1101
473ab964
TT
11022021-05-17 Tom Tromey <tromey@adacore.com>
1103
1104 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1105 (dwarf2_per_cu_data_up): New typedef.
1106 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1107 <all_comp_units>: Use dwarf2_per_cu_data_up.
1108 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1109 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1110 (create_cu_from_index_list): Likewise.
1111 (create_signatured_type_table_from_index)
1112 (create_cus_from_debug_names_list, add_type_unit)
1113 (read_comp_units_from_section): Update.
1114 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1115 (run_test): Update.
1116
16e0020b
TT
11172021-05-17 Tom Tromey <tom@tromey.com>
1118
1119 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1120 (sort_tu_by_abbrev_offset): Remove.
1121 (build_type_psymtabs): Update.
1122
91e159e9
SM
11232021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1124
1125 * py-project.toml: New.
1126 * gdb-gdb.py.in: Re-format.
1127
034dce7a
SM
11282021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1129
1130 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1131 New, use it.
1132 * command.h (cmd_func_p): Remove.
1133 * cli/cli-decode.c (cmd_func_p): Remove.
1134
1be99b11
SM
11352021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1138
99858724
SM
11392021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1140
1141 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1142 to...
1143 <alias_target>: ... this.
1144 (add_alias_cmd): Rename old to target.
1145 (add_info_alias): Rename old_name to target_name.
1146 (add_com_alias): Likewise.
1147
14b42fc4
SM
11482021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1149
1150 * Rename "prefixlist" parameters to "subcommands" throughout.
1151 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1152 <subcommands>: ... this.
1153 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1154 (lookup_cmd_with_subcommands): ... this.
1155
ecd0a6b3
SM
11562021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1157
1158 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1159
413b49c2
SM
11602021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1161
1162 * cli/cli-decode.h (prefixname): Make const, move implementation
1163 to cli/cli-decode.c.
1164 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1165
ea11a98d
WP
11662021-05-16 Weimin Pan <weimin.pan@oracle.com>
1167
1168 * ctfread.c (new_symbol): Set function address.
1169 (read_func_kind_type): Remove incorrect type name setting.
1170 Don't copy name returned from ctf_type_ame_raw throughout file.
1171
887e7158
TT
11722021-05-14 Tom Tromey <tom@tromey.com>
1173
1174 * rust-lang.c (rust_language::val_print_struct)
1175 (rust_language::print_enum): Use common_val_print, not
1176 value_print_inner.
1177
55789354
TBA
11782021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1179
1180 * python/py-inferior.c (infpy_get_connection_num): New function.
1181 (inferior_object_getset): Add a new element for 'connection_num'.
1182 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1183
2f63ec5c
AB
11842021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1187 argument type, update and re-wrap, header comment.
1188 (remote_target::commit_resumed): Convert any_process_wildcard and
1189 may_global_wildcard_vcont from int to bool.
1190
ecf25064
KC
11912021-05-14 Kent Cheung <kent.cheung@arm.com>
1192
1193 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1194 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1195 just before printing child values.
1196 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1197 printing string representation.
1198 * python/py-prettyprint.c (print_children): Check max_depth just
1199 before printing child values.
1200 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1201 printing string representation.
1202
df68e12b
MF
12032021-05-14 Mike Frysinger <vapier@gentoo.org>
1204
1205 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1206 sim/callback.h & sim/sim.h.
1207
183aaaf7
MF
12082021-05-13 Mike Frysinger <vapier@gentoo.org>
1209
1210 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1211 sim-regno.h include.
1212
737358ba
SM
12132021-05-13 Simon Marchi <simon.marchi@efficios.com>
1214
1215 * inf-child.h (inf_child_target) <follow_exec>: New.
1216 * inf-child.c (inf_child_target::follow_exec): New.
1217
294c36eb
SM
12182021-05-13 Simon Marchi <simon.marchi@efficios.com>
1219
1220 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1221 parameter.
1222 (target_follow_exec): Likewise.
1223 * target.c (target_follow_exec): Add ptid_t parameter.
1224 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1225 don't push target nor create thread.
1226 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1227 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1228 (thread_db_target::follow_exec): New.
1229 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1230 (remote_target::follow_exec): Call
1231 process_stratum_target::follow_exec.
1232 * target-delegates.c: Re-generate.
1233
2af87c85
SM
12342021-05-13 Simon Marchi <simon.marchi@efficios.com>
1235
1236 * infrun.c (follow_exec): Call target_follow_fork when
1237 follow-exec-mode is same.
1238 * target.h (target_follow_fork): Improve doc.
1239
0b2256f7
SM
12402021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1241
1242 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1243 Remove.
1244 * cli/cli-setshow.c (do_show_command): Adjust.
1245
0746f49b
LM
12462021-05-13 Luis Machado <luis.machado@linaro.org>
1247
1248 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1249 include the last address in the range.
1250
4b8cb9dd
SM
12512021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1252
1253 * python/python-internal.h (gdbpy_parse_command_name): Return
1254 gdb::unique_xmalloc_ptr.
1255 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1256 (cmdpy_init): Adjust.
1257 * python/py-param.c (parmpy_init): Adjust.
1258 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1259 when done.
1260
ee35ce82
GB
12612021-05-12 George Barrett <bob@bob131.so>
1262
1263 * NEWS (Guile API): Note the addition of the new procedure.
1264 * guile/scm-value.c (gdbscm_value_const_value): Add
1265 implementation of value-const-value procedure.
1266 (value_functions): Add value-const-value procedure.
1267
9d4fc61d
GB
12682021-05-12 George Barrett <bob@bob131.so>
1269
1270 * NEWS (Guile API): Note the addition of new procedures.
1271 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1272 for reference value creation.
1273 (gdbscm_value_reference_value): Add implementation of
1274 value-reference-value procedure.
1275 (gdbscm_value_rvalue_reference_value): Add implementation of
1276 value-rvalue-reference-value procedure.
1277 (value_functions): Add value-reference-value procedure. Add
1278 value-rvalue-reference-value procedure.
1279
97cef6b7
GB
12802021-05-12 George Barrett <bob@bob131.so>
1281
1282 * guile/scm-type.c (type_integer_constants): Add binding for
1283 TYPE_CODE_RVALUE_REF.
1284 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1285 dereferencing of rvalue references.
1286 * NEWS (Guile API): Note improvements in rvalue reference support.
1287
d51344c9
MM
12882021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1289
1290 * btrace.c (handle_pt_insn_events): Ignore status update enable
1291 events.
1292
f2a883a8
SM
12932021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1294
1295 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1296 indentation.
1297
64f30eb0
SM
12982021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1301
db1f6cd6
LS
13022021-05-10 Lancelot Six <lsix@lancelotsix.com>
1303
1304 PR gdb/27614
1305 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1306 argument.
1307
31aceaef
SM
13082021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1309
1310 * nat/linux-waitpid.c (status_to_str): Show signal name.
1311
75140e3b
AB
13122021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1313
1314 * python/py-breakpoint.c (pybp_debug): New static global.
1315 (show_pybp_debug): New function.
1316 (pybp_debug_printf): Define.
1317 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1318 (gdbpy_breakpoint_created): Add some debugging.
1319 (gdbpy_breakpoint_deleted): Likewise.
1320 (gdbpy_breakpoint_modified): Likewise.
1321 (_initialize_py_breakpoint): New function.
1322
1ef40c13
AB
13232021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1324
1325 * python/py-unwind.c (pyuw_debug): Convert to bool.
1326 (show_pyuw_debug): New function.
1327 (pyuw_debug_printf): Define.
1328 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1329 (pyuw_this_id): Convert to new debug print macros.
1330 (pyuw_prev_register): Likewise.
1331 (pyuw_sniffer): Likewise.
1332 (pyuw_dealloc_cache): Likewise.
1333 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1334 show function when registering.
1335
927c4e35
AB
13362021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * dummy-frame.c (fprint_dummy_frames): Convert use of
1339 fprint_frame_id to use frame_id::to_string.
1340 * frame.c (fprint_field): Delete.
1341 (fprint_frame_id): Moved to...
1342 (frame_id::to_string): ...this, rewritten to return a string.
1343 (fprint_frame): Convert use of fprint_frame_id to use
1344 frame_id::to_string.
1345 (compute_frame_id): Likewise.
1346 (frame_id_p): Likewise.
1347 (frame_id_eq): Likewise.
1348 (frame_id_inner): Likewise.
1349 * frame.h (struct frame_id) <to_string>: New member function.
1350 (fprint_frame_id): Delete declaration.
1351 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1352 fprint_frame_id to use frame_id::to_string.
1353 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1354 * python/py-unwind.c (unwind_infopy_str): Likewise.
1355 (pyuw_this_id): Likewise.
1356
8d06918f
SM
13572021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * nat/linux-waitpid.c (status_to_str): Return std::string.
1360 * nat/linux-waitpid.h (status_to_str): Likewise.
1361 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1362 (linux_nat_target::attach): Adjust.
1363 (linux_handle_extended_wait): Adjust.
1364 (wait_lwp): Adjust.
1365 (stop_wait_callback): Adjust.
1366 (linux_nat_filter_event): Adjust.
1367 (linux_nat_wait_1): Adjust.
1368 * nat/linux-waitpid.c (status_to_str): Adjust.
1369 * nat/linux-waitpid.h (status_to_str): Adjust.
1370
550e9289
SM
13712021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1372
1373 * infrun.h (infrun_debug_printf): Add missing space.
1374
4655f850
PA
13752021-05-08 Pedro Alves <pedro@palves.net>
1376
1377 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1378 Remove references to HAVE_PERSONALITY.
1379 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1380 (maybe_disable_address_space_randomization)
1381 (~maybe_disable_address_space_randomizatio): Remove references to
1382 HAVE_PERSONALITY.
1383 * config.in, configure: Regenerate.
1384
1845e254
AB
13852021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1388 include.
1389 (source_script_with_search): Perform tilde expansion.
1390
91e3c425
SM
13912021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1392
1393 * target-descriptions.c (struct target_desc_info) <filename>:
1394 Make std::string.
1395 (copy_inferior_target_desc_info): Adjust.
1396 (target_desc_info_free): Adjust.
1397 (target_find_description): Adjust.
1398 (set_tdesc_filename_cmd): Adjust.
1399 (show_tdesc_filename_cmd): Adjust.
1400 (unset_tdesc_filename_cmd): Adjust.
1401 (maint_print_c_tdesc_cmd): Adjust.
1402
0b2f7ade
SM
14032021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1404
1405 * target-descriptions.c (struct target_desc_info): Initialize
1406 fields.
1407 (get_tdesc_info): Use new.
1408 (target_desc_info_free): Use delete.
1409
820c4490
SM
14102021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1411
1412 * target-descriptions.c (struct target_desc_info) <fetched>:
1413 bool.
1414 (target_find_description): Adjust.
1415 (target_clear_description): Adjust.
1416
c2962e6a
SM
14172021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * target-descriptions.c (struct target_desc_info) <tdesc>:
1420 Adjust doc.
1421 (target_desc_fetched): Remove.
1422 (current_target_desc): Remove.
1423 (target_description_filename): Remove.
1424 (target_find_description): Adjust.
1425 (target_clear_description): Adjust.
1426 (target_current_description): Adjust.
1427 (set_tdesc_filename_cmd): Adjust.
1428 (show_tdesc_filename_cmd): Adjust.
1429 (unset_tdesc_filename_cmd): Adjust.
1430 (maint_print_c_tdesc_cmd): Adjust.
1431 (maint_print_xml_tdesc_cmd): Adjust.
1432
8a82de58
AB
14332021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * infcmd.c (notice_new_inferior): Change parameter type.
1436 * inferior.h (notice_new_inferior): Change parameter type.
1437 * remote.c (remote_notice_new_inferior): Change parameter type to
1438 bool. Also update type of local variable to bool.
1439 (remote_target::update_thread_list): Change type of local variable
1440 to bool.
1441 (remote_target::process_stop_reply): Pass bool instead of int to
1442 remote_notice_new_inferior.
1443
bedc4734
SM
14442021-05-07 Simon Marchi <simon.marchi@efficios.com>
1445
1446 * target.c (target_stack::unpush): Call target_ops::find_beneath
1447 to get the target beneath `t`.
1448
27f0a431
SM
14492021-05-07 Simon Marchi <simon.marchi@efficios.com>
1450
1451 * target.c (target_close): Check in all inferiors that the
1452 target is not pushed.
1453
1d1669e4
AM
14542021-05-07 Aaron Merey <amerey@redhat.com>
1455
1456 * debuginfod-support.c (debuginfod_init): Remove.
1457 (get_debuginfod_client): New function.
1458
2698f5ea
TT
14592021-05-07 Tom Tromey <tom@tromey.com>
1460
1461 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1462 * utils.c (streq_hash): Remove.
1463 * utils.h (streq_hash): Don't declare.
1464 * completer.c (completion_tracker::discard_completions): Update
1465 comment.
1466 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1467
13123da8
SM
14682021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1469
1470 * Re-format all Python files using black.
1471
9589edb8
AB
14722021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1475 function return type.
1476 * guile/guile.c (gdbscm_source_script): Update to handle change in
1477 gdbscm_safe_source_script.
1478 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1479 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1480 type.
1481
ec66d6ea
SM
14822021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1483
1484 * inferior.h (class inferior) <args>: Change type to
1485 unique_xmalloc_ptr.
1486 * inferior.c (inferior::~inferior): Don't free args.
1487 * infcmd.c (get_inferior_args): Adjust.
1488 (set_inferior_args): Adjust.
1489
0618ecf6
AB
14902021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1493 breakpoint locations when the breakpoint actually has a location.
1494
79aabb73
TBA
14952021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1496
1497 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1498 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1499 mi_cmd_break_condition.
1500 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1501 * breakpoint.h (set_breakpoint_condition): Declare a new
1502 overload.
1503 * breakpoint.c (set_breakpoint_condition): New overloaded function
1504 extracted out from ...
1505 (condition_command): ... this.
1506 * NEWS: Mention the change.
1507
10e578d7
TBA
15082021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1509
1510 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1511 '--force-condition' flag to force the condition in the
1512 '-break-insert' and '-dprintf-insert' commands.
1513 * NEWS: Mention the change.
1514
225bda24
TV
15152021-05-04 Tom de Vries <tdevries@suse.de>
1516
1517 PR guile/27806
1518 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1519 memory functions.
1520
b8efb248
TT
15212021-04-30 Tom Tromey <tom@tromey.com>
1522
1523 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1524 (add_signatured_type_cu_to_table): Remove.
1525 (create_debug_type_hash_table): Assume dwo_file is non-null.
1526 (create_debug_types_hash_table): Update comment.
1527 (create_all_type_units): Remove.
1528 (sort_tu_by_abbrev_offset): Update comment.
1529 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1530 (build_type_psymtabs): Remove.
1531 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1532 Update.
1533 (read_comp_units_from_section): Add types_htab, section_kind
1534 parameters.
1535 (create_all_comp_units): Read type units.
1536
91eea9cc
TT
15372021-04-30 Tom Tromey <tom@tromey.com>
1538
1539 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1540 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1541 <get_cu>: Now inline.
1542 <all_type_units>: Remove.
1543 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1544 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1545 (dwarf2_per_bfd::get_tu): Remove.
1546 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1547 (create_signatured_type_table_from_index)
1548 (create_signatured_type_table_from_debug_names)
1549 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1550 (dwarf2_base_index_functions::expand_all_symtabs)
1551 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1552 (dwarf2_base_index_functions::map_symbol_filenames)
1553 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1554 (add_signatured_type_cu_to_table, create_all_type_units)
1555 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1556 (create_all_comp_units): Update.
1557 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1558 (write_debug_names): Update.
1559
0d305d5c
TT
15602021-04-30 Tom Tromey <tom@tromey.com>
1561
1562 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1563 allocate_signatured_type>: Change return type.
1564 <all_comp_units, all_type_units>: Hold unique pointers.
1565 (struct dwarf2_per_cu_data): Add constructor and initializers.
1566 (struct signatured_type): Derive from dwarf2_per_cu_data.
1567 * dwarf2/read.c (type_unit_group): Derive from
1568 dwarf2_per_cu_data.
1569 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1570 (dwarf2_per_bfd::get_tu)
1571 (dwarf2_per_bfd::allocate_signatured_type)
1572 (dwarf2_per_bfd::allocate_signatured_type)
1573 (create_cu_from_index_list, create_cus_from_index_list)
1574 (create_signatured_type_table_from_index)
1575 (create_signatured_type_table_from_debug_names)
1576 (create_addrmap_from_aranges)
1577 (dwarf2_base_index_functions::find_last_source_symtab)
1578 (dw_expand_symtabs_matching_file_matcher)
1579 (dwarf2_gdb_index::expand_symtabs_matching)
1580 (dwarf2_base_index_functions::map_symbol_filenames)
1581 (create_cus_from_debug_names_list)
1582 (dw2_debug_names_iterator::next)
1583 (dwarf2_debug_names_index::expand_symtabs_matching)
1584 (create_debug_type_hash_table, add_type_unit)
1585 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1586 Update.
1587 (allocate_type_unit_groups_table): Use delete.
1588 (create_type_unit_group): Change return type. Use new.
1589 (get_type_unit_group, build_type_psymtabs_1)
1590 (build_type_psymtab_dependencies)
1591 (process_skeletonless_type_unit, set_partial_user)
1592 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1593 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1594 (read_signatured_type): Update.
1595 (dwarf2_find_containing_comp_unit): Change type of
1596 'all_comp_units'.
1597 (run_test): Update.
1598 (dwarf2_per_bfd::allocate_per_cu)
1599 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1600 Use new.
1601 (add_signatured_type_cu_to_table): Update.
1602 * dwarf2/index-write.c (write_one_signatured_type)
1603 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1604 (write_debug_names): Update.
1605
1bee48c7
TT
16062021-04-30 Tom Tromey <tromey@adacore.com>
1607
1608 * nat/windows-nat.h (get_image_name): Don't declare.
1609 * nat/windows-nat.c (get_image_name): Now static.
1610
e228ef97
TT
16112021-04-30 Tom Tromey <tromey@adacore.com>
1612
1613 * windows-nat.c (windows_nat::handle_load_dll): Update.
1614 (windows_nat_target::get_windows_debug_event): Call
1615 dll_loaded_event.
1616 (windows_add_all_dlls, windows_add_dll): Move to
1617 nat/windows-nat.c.
1618 * nat/windows-nat.h (handle_load_dll): Change parameters.
1619 (dll_loaded_event, windows_add_all_dlls): Declare.
1620 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1621 from windows-nat.c.
1622 (dll_loaded_event): New function.
1623
de071872
TT
16242021-04-30 Tom Tromey <tromey@adacore.com>
1625
1626 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1627 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1628 Declare.
1629 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1630 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1631
9e439f00
TT
16322021-04-30 Tom Tromey <tromey@adacore.com>
1633
1634 * windows-nat.c: Move code to nat/windows-nat.[ch].
1635 (_initialize_windows_nat): Call initialize_loadable.
1636 * nat/windows-nat.h (AdjustTokenPrivileges)
1637 (DebugActiveProcessStop, DebugBreakProcess)
1638 (DebugSetProcessKillOnExit, EnumProcessModules)
1639 (EnumProcessModulesEx, GetModuleInformation)
1640 (GetModuleFileNameExA, GetModuleFileNameExW)
1641 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1642 (GetCurrentConsoleFont, Wow64SuspendThread)
1643 (Wow64GetThreadContext, Wow64SetThreadContext)
1644 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1645 (AdjustTokenPrivileges_ftype)
1646 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1647 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1648 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1649 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1650 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1651 (GetConsoleFontSize_ftype)
1652 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1653 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1654 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1655 (initialize_loadable): Declare.
1656 * nat/windows-nat.c (AdjustTokenPrivileges)
1657 (DebugActiveProcessStop, DebugBreakProcess)
1658 (DebugSetProcessKillOnExit, EnumProcessModules)
1659 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1660 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1661 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1662 (Wow64GetThreadContext, Wow64SetThreadContext)
1663 (Wow64GetThreadSelectorEntry): Define.
1664 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1665 from windows-nat.c.
1666 (initialize_loadable): Likewise, and rename.
1667
1053c638
TT
16682021-04-30 Tom Tromey <tromey@adacore.com>
1669
1670 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1671 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1672 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1673 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1674 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1675 (bad): New template functions.
1676 (_initialize_loadable): Update.
1677
2869ac4b
TT
16782021-04-30 Tom Tromey <tromey@adacore.com>
1679
1680 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1681
e197dfae
SM
16822021-04-29 Simon Marchi <simon.marchi@efficios.com>
1683
1684 * auto-load.h: Split namespace declaration.
1685
89ba430c
SM
16862021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 * infrun.c (save_waitstatus): Move variables to inner scope.
1689
8eb82ba1
AB
16902021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * NEWS: Fix typo and stray full stop.
1693
db2534b7
TT
16942021-04-28 Tom Tromey <tromey@adacore.com>
1695
1696 * ada-exp.y (primary): Use new type for null pointer.
1697 * ada-lang.c (ada_type_match): Remove "may_deref"
1698 parameter. Handle null pointer.
1699 (ada_args_match): Update.
1700 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1701 Handle null pointer.
1702
edeaceda
AB
17032021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1704
1705 * NEWS: Mention new commands.
1706 * python/python.c (python_ignore_environment): New static global.
1707 (show_python_ignore_environment): New function.
1708 (set_python_ignore_environment): New function.
1709 (python_dont_write_bytecode): New static global.
1710 (show_python_dont_write_bytecode): New function.
1711 (set_python_dont_write_bytecode): New function.
1712 (_initialize_python): Register new commands.
1713
041ca48e
AB
17142021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 * extension-priv.h (struct extension_language_ops): Rename
1717 'finish_initialization' to 'initialize'.
1718 * extension.c (finish_ext_lang_initialization): Renamed to...
1719 (ext_lang_initialization): ...this, update comment, and updated
1720 the calls to reflect the change in struct extension_language_ops.
1721 * extension.h (finish_ext_lang_initialization): Renamed to...
1722 (ext_lang_initialization): ...this.
1723 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1724 (gdbscm_initialize): ...this, update comment at definition.
1725 (guile_extension_ops): Update.
1726 * main.c (captured_main_1): Update call to
1727 finish_ext_lang_initialization.
1728 * python/python.c (gdbpy_finish_initialization): Rename to...
1729 (gdbpy_initialize): ...this, update comment at definition, and
1730 update call to do_finish_initialization.
1731 (python_extension_ops): Update.
1732 (do_finish_initialization): Rename to...
1733 (do_initialize): ...this, and update comment.
1734
1178f01a
AB
17352021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * main.c (captured_main_1): Add a call to
1738 finish_ext_lang_initialization.
1739 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1740
880ae75a
AB
17412021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1744 (gdbscm_finish_initialization): Add code moved from
1745 _initialize_guile.
1746 (_initialize_guile): Move code to gdbscm_finish_initialization.
1747 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1748 _initialize_scm_arch.
1749 (_initialize_scm_arch): New function.
1750 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1751 into _initialize_scm_block.
1752 (_initialize_scm_block): New function.
1753 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1754 into _initialize_scm_frame.
1755 (_initialize_scm_frame): New function.
1756 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1757 into _initialize_scm_objfile.
1758 (_initialize_scm_objfile): New function.
1759 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1760 code into _initialize_scm_progspace.
1761 (_initialize_scm_progspace): New function.
1762 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1763 into _initialize_scm_symbol.
1764 (_initialize_scm_symbol): New function.
1765 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1766 into _initialize_scm_symtab.
1767 (_initialize_scm_symtab): New function.
1768 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1769 _initialize_scm_type.
1770 (_initialize_scm_type): New function.
1771
8e3685bf
AB
17722021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1773
1774 * python/py-arch.c (_initialize_py_arch): New function.
1775 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1776 * python/py-block.c (_initialize_py_block): New function.
1777 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1778 * python/py-inferior.c (_initialize_py_inferior): New function.
1779 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1780 * python/py-objfile.c (_initialize_py_objfile): New function.
1781 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1782 * python/py-progspace.c (_initialize_py_progspace): New function.
1783 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1784 * python/py-registers.c (_initialize_py_registers): New function.
1785 (gdbpy_initialize_registers): Move code to
1786 _initialize_py_registers.
1787 * python/py-symbol.c (_initialize_py_symbol): New function.
1788 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1789 * python/py-symtab.c (_initialize_py_symtab): New function.
1790 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1791 * python/py-type.c (_initialize_py_type): New function.
1792 (gdbpy_initialize_types): Move code to _initialize_py_type.
1793 * python/py-unwind.c (_initialize_py_unwind): New function.
1794 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1795 * python/python.c (_initialize_python): Move call to
1796 do_start_initialization to gdbpy_finish_initialization.
1797 (gdbpy_finish_initialization): Add call to
1798 do_start_initialization.
1799
913832e9
AB
18002021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1801
1802 * extension.c (struct scoped_default_signal): New struct.
1803 (scoped_default_sigint): New typedef.
1804 (finish_ext_lang_initialization): Make use of
1805 scoped_default_sigint.
1806
a3b5ef3e
AB
18072021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 * main.c (captured_main_1): Don't pass argument to gdb_init.
1810 * top.c (gdb_init): Remove unused argument, and add header
1811 comment.
1812 * top.h (gdb_init): Remove argument.
1813
b9f90c72
LM
18142021-04-27 Luis Machado <luis.machado@linaro.org>
1815
1816 * psymtab.c (psymbol_functions::dump): Output newline.
1817 Remove wrap.
1818 * symmisc.c (dump_objfile): Likewise.
1819
2c473def
MW
18202021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1821 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1824 when attaching the 'auto_load_new_objfile' observer, so
1825 other observers can specify it as a dependency.
1826 * gdb/auto-load.h (struct token): Declare
1827 'auto_load_new_objfile_observer_token' as token to be used
1828 for the 'auto_load_new_objfile' observer.
1829 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1830 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1831 observer, so it gets notified after the latter.
1832
9a6e099f
MW
18332021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1834 Simon Marchi <simon.marchi@polymtl.ca>
1835
1836 * unittests/observable-selftests.c (dependency_test_counters):
1837 New.
1838 (observer_token0, observer_token1, observer_token2,
1839 observer_token3, observer_token4, observer_token5): New.
1840 (struct dependency_observer_data): New struct.
1841 (observer_dependency_test_callback): New function.
1842 (test_observers): New.
1843 (run_dependency_test): New function.
1844 (test_dependency): New.
1845 (_initialize_observer_selftest): Register dependency test.
1846
bea3329b
SM
18472021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1848
1849 PR gdb/27773
1850 * cli/cli-dump.c (dump_binary_file): Check result of
1851 gdb_fopen_cloexec.
1852
c290cb01
ST
18532021-04-25 Sergei Trofimovich <siarheit@google.com>
1854
1855 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1856 by passing `process_stratum_target*` parameter.
1857
fbb46296
LS
18582021-04-25 Lancelot Six <lsix@lancelotsix.com>
1859
1860 PR gdb/22640
1861 * typeprint.h (struct type_print_options): Add print_in_hex
1862 flag.
1863 (struct print_offset_data): Add print_in_hex flag, add a
1864 constructor accepting a type_print_options* argument.
1865 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1866 default value for print_in_hex.
1867 (print_offset_data::indentation): Allow more horizontal space.
1868 (print_offset_data::print_offset_data): Add ctor.
1869 (print_offset_data::maybe_print_hole, print_offset_data::update):
1870 Handle the print_in_hex flag.
1871 (whatis_exp): Handle 'x' and 'd' flags.
1872 (print_offsets_and_sizes_in_hex): Declare.
1873 (set_print_offsets_and_sizes_in_hex): Create.
1874 (show_print_offsets_and_sizes_in_hex): Create.
1875 (_initialize_typeprint): Update help message for the ptype
1876 command, register the 'set print type hex' and 'show print type
1877 hex' commands.
1878 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1879 (c_type_print_base): Construct the print_offset_data
1880 object using the type_print_optons parameter.
1881 * rust-lang.c (rust_language::print_type): Construct the
1882 print_offset_data object using the type_print_optons parameter.
1883 * NEWS: Mention the new flags of the ptype command.
1884
18bbba46
LS
18852021-04-25 Lancelot Six <lsix@lancelotsix.com>
1886
1887 * typeprint.h (struct type_print_options): Move before
1888 print_offset_data.
1889
77393c9b
JB
18902021-04-25 Joel Brobecker <brobecker@adacore.com>
1891
1892 GDB 10.2 released.
1893
98c897e3
SM
18942021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * observable.c (observer_debug): Change to bool.
1897
9fc29955
AB
18982021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * dwarf2/read.c: Add 'unordered_set' include.
1901 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1902 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1903 of per_Bfd->filenames_cache cache, and use function local
1904 filenames_cache instead. Reindent.
1905 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1906
0406545d
SM
19072021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * breakpoint.c (iterate_over_bp_locations): Change callback to
1910 function view, remove data parameter.
1911 * breakpoint.h (iterate_over_bp_locations): Likewise.
1912 * record-full.c (record_full_sync_record_breakpoints): Remove
1913 data parameter.
1914
432ce4cf
TT
19152021-04-22 Tom Tromey <tom@tromey.com>
1916
1917 * c-typeprint.c (c_type_print_base_struct_union): Use
1918 print_spaces_filtered_with_print_options.
1919
e25d6d93
SM
19202021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 PR gdb/27757
1923 * python/py-type.c (typy_range): Check that bounds are constant
1924 before accessing them as such.
1925 * guile/scm-type.c (gdbscm_type_range): Likewise.
1926
4efeb0d3
TBA
19272021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1928
1929 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1930 * inferior.c (inferior::add_continuation): New method, adapted
1931 from 'add_inferior_continuation'.
1932 (inferior::do_all_continuations): New method, adapted from
1933 'do_all_inferior_continuations'.
1934 (inferior::~inferior): Clear the list of continuations directly.
1935 * inferior.h (class inferior) <continuations>: Rename into...
1936 <m_continuations>: ...this and make private.
1937 * continuations.c: Remove.
1938 * continuations.h: Remove.
1939 * event-top.c: Don't include "continuations.h".
1940
1941 Update the users below.
1942 * inf-loop.c (inferior_event_handler)
1943 * infcmd.c (attach_command)
1944 (notice_new_inferior): Update.
1945
c4c493de
TBA
19462021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1947
1948 * inferior.h (class inferior) <continuations>: Change the type
1949 to be an std::list of std::function's.
1950 Update the references and uses below.
1951 * continuations.c (struct continuation): Delete.
1952 (make_continuation): Delete.
1953 (do_my_continuations_1): Delete.
1954 (do_my_continuations): Delete.
1955 (discard_my_continuations_1): Delete.
1956 (discard_my_continuations): Delete.
1957 (add_inferior_continuation): Update.
1958 (do_all_inferior_continuations): Update.
1959 (discard_all_inferior_continuations): Update.
1960 * continuations.h (add_inferior_continuation): Update to take
1961 an std::function as the parameter.
1962 * infcmd.c (struct attach_command_continuation_args): Delete.
1963 (attach_command_continuation): Delete.
1964 (attach_command_continuation_free_args): Delete.
1965 (attach_command): Update.
1966 (notice_new_inferior): Update.
1967
1194676e
TBA
19682021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1969
1970 * continuations.h: Update the general comment.
1971 * inferior.h (class inferior) <continuations>: Update the comment.
1972 * interps.c: Do not include "continuations.h".
1973
35682f0a
TBA
19742021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1975
1976 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1977 parameter. Update the references below.
1978 * continuations.c (do_my_continuations_1)
1979 (do_my_continuations)
1980 (do_all_inferior_continuations): Update.
1981 * inf-loop.c (inferior_event_handler): Update.
1982 * infcmd.c (attach_command_continuation): Update.
1983
6fee5eee
TBA
19842021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1985
1986 * infcmd.c (attach_post_wait): Update the function comment.
1987
27d0790a
TBA
19882021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1989
1990 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1991 Update the references below.
1992 (struct attach_command_continuation_args)
1993 (attach_command_continuation)
1994 (attach_command_continuation_free_args)
1995 (attach_command)
1996 (notice_new_inferior): Update to remove the reference to 'args'.
1997
c39ebbf4
TV
19982021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1999 Tom de Vries <tdevries@suse.de>
2000
2001 PR remote/27710
2002 * remote.c (remote_target_is_non_stop_p): New function.
2003 * remote.h (remote_target_is_non_stop_p): Declare.
2004 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2005 to check non-stopness using notif_state->remote rather current target.
2006
22f80c0f
TT
20072021-04-22 Tom Tromey <tom@tromey.com>
2008
2009 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2010 (struct typed_val_int) <val>: Now ULONGEST.
2011 (rust_parser::parse_array_type): Remove negative check.
2012 (rust_lex_int_test): Change 'value' to ULONGEST.
2013
05f3c0f0
AB
20142021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * arch-utils.c (default_addressable_memory_unit_size): Return a
2017 value based on bfd's bits per byte.
2018
7e7a35fb
TT
20192021-04-21 Tom Tromey <tom@tromey.com>
2020
2021 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2022 unsigned char.
2023 (struct dwarf2_per_cu_data): Rearrange.
2024 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2025 unsigned char.
2026 (struct comp_unit_head): Rearrange.
2027 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
2028
ff507520
TV
20292021-04-21 Tom de Vries <tdevries@suse.de>
2030
2031 PR build/27681
2032 * configure.ac: Remove --without-included-regex/--with-included-regex.
2033 * config.in: Regenerate.
2034 * configure: Regenerate.
2035 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2036
10a636cc
TBA
20372021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2038
2039 * breakpoint.h (create_breakpoint): Add a new parameter,
2040 'force_condition'.
2041 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2042 argument when 'parse_extra' is false to check if the condition
2043 is invalid at all of the breakpoint locations.
2044 Update the users below.
2045 (break_command_1)
2046 (dprintf_command)
2047 (trace_command)
2048 (ftrace_command)
2049 (strace_command)
2050 (create_tracepoint_from_upload): Update.
2051 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2052 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2053 * python/py-breakpoint.c (bppy_init): Update.
2054 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2055
85c88e2a
TBA
20562021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2057
2058 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2059 disabled-by-condition locations on MI-like output.
2060 (breakpoint_1): Do not display the disabled-by-condition footnote
2061 if the output is MI-like.
2062
fd34472c
FC
20632021-04-21 Frederic Cambus <fred@statdns.com>
2064
2065 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2066 update year range in generated copyright notices.
2067
184dcd81
FW
20682021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2069
2070 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2071 qualifier_seq_noopt.
2072
525174e8
FW
20732021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2074
2075 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2076
f5dc2ee3
AB
20772021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2080 (producer_is_icc): Replace use of std::regex with gdb's
2081 compiled_regex.
2082
42c2c694
TT
20832021-04-17 Tom Tromey <tom@tromey.com>
2084
2085 PR gdb/23743:
2086 * dwarf2/read.c (class offset_view): New.
2087 (struct symbol_table_slot): Remove.
2088 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2089 <symbol_name_index, symbol_vec_index>: New methods.
2090 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2091 Rewrite.
2092 (read_gdb_index_from_buffer): Update.
2093 (struct dw2_symtab_iterator) <vec>: Change type.
2094 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2095 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2096 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2097 <append_array, append_offset>: New methods.
2098 (write_hash_table, add_address_entry, write_gdbindex_1)
2099 (write_debug_names): Update.
2100 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2101
da314dd3
TT
21022021-04-17 Tom Tromey <tom@tromey.com>
2103
2104 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2105 partial_symtabs.
2106
0b7b2c2a
TT
21072021-04-17 Tom Tromey <tom@tromey.com>
2108
2109 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2110 from map_matching_symbols. Change parameters.
2111 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2112 Rename from map_matching_symbols. Change parameters.
2113 * dwarf2/read.c (struct dwarf2_gdb_index)
2114 <expand_matching_symbols>: Rename from map_matching_symbols.
2115 Change parameters.
2116 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2117 Rename from map_matching_symbols. Change parameters.
2118 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2119 dw2_map_matching_symbols. Change parameters.
2120 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2121 implementation.
2122 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2123 map_matching_symbols. Change parameters.
2124 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2125 from map_matching_symbols. Change parameters.
2126 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2127 map_matching_symbols. Change parameters.
2128 * ada-lang.c (map_matching_symbols): New function.
2129 (add_nonlocal_symbols): Update.
2130
90160b57
TT
21312021-04-17 Tom Tromey <tom@tromey.com>
2132
2133 * quick-symbol.h (struct quick_symbol_functions)
2134 <expand_symtabs_with_fullname>: Remove.
2135 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2136 Remove.
2137 * psympriv.h (struct psymbol_functions)
2138 <expand_symtabs_with_fullname>: Remove.
2139 * dwarf2/read.c (struct dwarf2_base_index_functions)
2140 <expand_symtabs_with_fullname>: Remove.
2141 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2142 Remove.
2143 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2144 Update comment.
2145 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2146 Rewrite.
2147
7089bd88
TT
21482021-04-17 Tom Tromey <tom@tromey.com>
2149
2150 * symfile-debug.c (objfile::expand_symtabs_for_function):
2151 Rewrite.
2152 * quick-symbol.h (struct quick_symbol_functions)
2153 <expand_symtabs_for_function>: Remove.
2154 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2155 Remove.
2156 * psympriv.h (struct psymbol_functions)
2157 <expand_symtabs_for_function>: Remove.
2158 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2159 Update comment.
2160 * dwarf2/read.c (struct dwarf2_gdb_index)
2161 <expand_symtabs_for_function>: Remove.
2162 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2163 Remove.
2164 (find_slot_in_mapped_hash): Remove.
2165 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2166 (dw2_symtab_iter_init): Remove one overload.
2167 (dwarf2_gdb_index::expand_symtabs_for_function)
2168 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2169
536a40f3
TT
21702021-04-17 Tom Tromey <tom@tromey.com>
2171
2172 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2173 Rewrite.
2174 * quick-symbol.h (struct quick_symbol_functions)
2175 <map_symtabs_matching_filename>: Remove.
2176 * psymtab.c (partial_map_expand_apply)
2177 (psymbol_functions::map_symtabs_matching_filename): Remove.
2178 * psympriv.h (struct psymbol_functions)
2179 <map_symtabs_matching_filename>: Remove.
2180 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2181 Update comment.
2182 * dwarf2/read.c (struct dwarf2_base_index_functions)
2183 <map_symtabs_matching_filename>: Remove.
2184 (dw2_map_expand_apply)
2185 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2186 Remove.
2187
84d865e3
TT
21882021-04-17 Tom Tromey <tom@tromey.com>
2189
2190 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2191 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2192 Remove.
2193 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2194 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2195 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2196 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2197 Remove.
2198 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2199 (dwarf2_gdb_index::lookup_symbol)
2200 (dwarf2_debug_names_index::lookup_symbol): Remove.
2201
3bfa51a7
TT
22022021-04-17 Tom Tromey <tom@tromey.com>
2203
2204 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2205 * symmisc.c (maintenance_expand_symtabs): Update.
2206 * symfile.c (expand_symtabs_matching): Update.
2207 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2208 parameter.
2209 * quick-symbol.h (struct quick_symbol_functions)
2210 <expand_symtabs_matching>: Add 'domain' parameter.
2211 * psymtab.c (recursively_search_psymtabs)
2212 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2213 parameter.
2214 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2215 Add 'domain' parameter.
2216 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2217 'domain' parameter.
2218 * linespec.c (iterate_over_all_matching_symtabs): Update.
2219 * dwarf2/read.c (struct dwarf2_gdb_index)
2220 <expand_symtabs_matching>: Add 'domain' parameter.
2221 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2222 'domain' parameter.
2223 (dw2_expand_symtabs_matching)
2224 (dwarf2_gdb_index::expand_symtabs_matching)
2225 (dw2_debug_names_iterator)
2226 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2227 parameter.
2228
03a8ea51
TT
22292021-04-17 Tom Tromey <tom@tromey.com>
2230
2231 * symtab.c (global_symbol_searcher::expand_symtabs)
2232 (default_collect_symbol_completion_matches_break_on): Update.
2233 * symmisc.c (maintenance_expand_symtabs): Update.
2234 * symfile.h (expand_symtabs_matching): Add search_flags
2235 parameter.
2236 * symfile.c (expand_symtabs_matching): Add search_flags
2237 parameter.
2238 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2239 search_flags parameter.
2240 * quick-symbol.h (struct quick_symbol_functions)
2241 <expand_symtabs_matching>: Add search_flags parameter.
2242 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2243 * psymtab.c (recursively_search_psymtabs)
2244 (psymbol_functions::expand_symtabs_matching): Add search_flags
2245 parameter.
2246 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2247 Add search_flags parameter.
2248 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2249 search_flags parameter.
2250 * linespec.c (iterate_over_all_matching_symtabs): Update.
2251 * dwarf2/read.c (struct dwarf2_gdb_index)
2252 <expand_symtabs_matching>: Add search_flags parameter.
2253 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2254 search_flags parameter.
2255 (dw2_map_matching_symbols): Update.
2256 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2257 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2258 parameter.
2259 (dw2_debug_names_iterator): Change block_index to search flags.
2260 <m_block_index>: Likewise.
2261 (dw2_debug_names_iterator::next)
2262 (dwarf2_debug_names_index::lookup_symbol)
2263 (dwarf2_debug_names_index::expand_symtabs_for_function)
2264 (dwarf2_debug_names_index::map_matching_symbols)
2265 (dwarf2_debug_names_index::map_matching_symbols): Update.
2266 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2267 search_flags parameter.
2268 * ada-lang.c (ada_add_global_exceptions)
2269 (collect_symbol_completion_matches): Update.
2270
df35e626
TT
22712021-04-17 Tom Tromey <tom@tromey.com>
2272
2273 * symtab.c (default_collect_symbol_completion_matches_break_on):
2274 Update.
2275 * symfile.h (expand_symtabs_matching): Return bool.
2276 * symfile.c (expand_symtabs_matching): Return bool.
2277 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2278 bool.
2279 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2280 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2281 bool.
2282 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2283 bool.
2284 * psympriv.h (struct psymbol_functions)
2285 <expand_symtabs_matching>: Return bool.
2286 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2287 bool.
2288 * dwarf2/read.c (struct dwarf2_gdb_index)
2289 <expand_symtabs_matching>: Return bool.
2290 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2291 Return bool.
2292 (dw2_expand_symtabs_matching_symbol): Return bool.
2293 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2294 (dw2_expand_symtabs_matching)
2295 (dwarf2_gdb_index::expand_symtabs_matching)
2296 (dwarf2_debug_names_index::expand_symtabs_matching)
2297 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2298
e357e990
TT
22992021-04-17 Tom Tromey <tom@tromey.com>
2300
2301 * quick-symbol.h (enum block_search_flag_values): New.
2302 (block_search_flags): New enum flags type.
2303
3cbc7ac3
TT
23042021-04-16 Tom Tromey <tom@tromey.com>
2305
2306 * rust-parse.c: New file.
2307 * rust-exp.y: Remove.
2308 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2309 (SFILES): Remove rust-exp.y.
2310 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2311
1b6b755e
LM
23122021-04-16 Luis Machado <luis.machado@linaro.org>
2313
2314 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2315
c45ecc9d
JB
23162021-04-15 John Baldwin <jhb@FreeBSD.org>
2317
2318 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2319 use throughout file.
2320
a15a276b
TT
23212021-04-15 Tom Tromey <tromey@adacore.com>
2322
2323 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2324 arrays.
2325
644a2e75
TT
23262021-04-15 Tom Tromey <tromey@adacore.com>
2327
2328 * printcmd.c (print_variable_and_value): Use
2329 common_val_print_checked.
2330
9e5e03df
TT
23312021-04-15 Tom Tromey <tromey@adacore.com>
2332
2333 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2334 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2335 Update.
2336 * p-exp.y (variable): Update.
2337 * m2-exp.y (variable): Update.
2338 * go-exp.y (variable): Update.
2339 * expprint.c (dump_for_expression): New overload.
2340 * expop.h (check_objfile): New overload.
2341 (check_constant): New overload.
2342 (class var_value_operation): Use block_symbol.
2343 <get_symbol>: Rewrite.
2344 * eval.c (var_value_operation::evaluate)
2345 (var_value_operation::evaluate_funcall)
2346 (var_value_operation::evaluate_for_address)
2347 (var_value_operation::evaluate_for_address)
2348 (var_value_operation::evaluate_with_coercion)
2349 (var_value_operation::evaluate_for_sizeof)
2350 (var_value_operation::evaluate_for_cast): Update.
2351 * d-exp.y (PrimaryExpression): Update.
2352 * c-exp.y (variable): Update.
2353 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2354 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2355 (ada_var_value_operation::evaluate)
2356 (ada_var_value_operation::resolve)
2357 (ada_funcall_operation::resolve): Update.
2358 * ada-exp.y (write_var_from_sym, write_object_renaming)
2359 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2360 (maybe_overload): Update.
2361 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2362
5809fbf2
TT
23632021-04-15 Tom Tromey <tom@tromey.com>
2364 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * NEWS: Add entry.
2367 * main.c (captured_main_1): Call check_quiet_mode.
2368 * top.c (startup_quiet): New global.
2369 (check_quiet_mode): New function.
2370 (show_startup_quiet): New function.
2371 (init_main): Register new command.
2372 * top.h (check_quiet_mode): Declare.
2373
92e4e97a
AB
23742021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 PR cli/25956
2377 * NEWS: Mention new early init files and command line options.
2378 * config.in: Regenerate.
2379 * configure: Regenerate.
2380 * configure.ac: Define GDBEARLYINIT.
2381 * main.c (get_earlyinit_files): New function.
2382 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2383 CMDARG_EARLYINIT_COMMAND.
2384 (captured_main_1): Add support for new command line flags, and for
2385 processing startup files.
2386 (print_gdb_help): Include startup files in the output.
2387
54b4dcc5
AB
23882021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2389
2390 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2391 (relocate_file_path_maybe_in_datadir): ...this.
2392 (class gdb_initfile_finder): New class.
2393 (get_init_files): Now uses gdb_initfile_finder.
2394 (print_gdb_help): Print 'None found' when there are no init files.
2395
34dc0f95
TBA
23962021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2397
2398 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2399 corresponding child of the abstract DIE when iterating the
2400 children of the concrete DIE.
2401
329534fd
TV
24022021-04-13 Tom de Vries <tdevries@suse.de>
2403
2404 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2405 type to regoff_t *.
2406
d9d2ef05
LM
24072021-04-13 Luis Machado <luis.machado@linaro.org>
2408
2409 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2410 hex values.
2411
c8a37944
WS
24122021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2413
2414 * rs6000-tdep.c: Add support for single-stepping of
2415 prefixed instructions.
2416
b722acca
WS
24172021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2418
e3d528d7
WS
2419 PR gdb/27525
2420 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2421 handle the addpcis/lnia instruction.
2422
24232021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2424
b722acca
WS
2425 * MAINTAINERS (Write After Approval): Add myself.
2426
6ba4cb84
CL
24272021-4-12 Carl Love <cel@us.ibm.com>
2428
2429 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2430 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2431 float128.
2432
d4717483
SM
24332021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2434
2435 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2436 * nat/windows-nat.h: Likewise.
2437
b3885679
EZ
24382021-04-10 Eli Zaretskii <eliz@gnu.org>
2439
2440 * windows-nat.c (windows_nat::handle_load_dll): Call
2441 windows_add_dll if get_image_name failed to glean the name of the
2442 DLL by using the lpImageName pointer.
2443 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2444 (windows_add_dll): Now does what windows_add_all_dlls did before,
2445 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2446 specifies the address where the DLL was loaded into the inferior,
2447 and looks for the single DLL loaded at that address.
2448
1ef6a596
LM
24492021-04-09 Luis Machado <luis.machado@linaro.org>
2450
2451 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2452
83a559f7
DQ
24532021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2454
2455 * darwin-nat.c (darwin_nat_target::resume): Remove status
2456 variable.
2457
16e311ab
FW
24582021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2459
2460 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2461 prologue end for Intel compilers.
2462 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2463 * producer.c (producer_is_icc_ge_19): New function.
2464 * producer.h (producer_is_icc_ge_19): New declaration.
2465
fbb3bcfc
FW
24662021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2467
2468 * producer.c: (producer_is_icc): Update for new version scheme.
2469 (producer_parsing_tests): Update names and expected results.
2470 * producer.h: (producer_is_icc): Update comment accordingly.
2471
e97007b6
SM
24722021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 * target.h (struct target_ops) <follow_fork>: Return void.
2475 (target_follow_fork): Likewise.
2476 * target.c (default_follow_fork): Likewise.
2477 (target_follow_fork): Likewise.
2478 * infrun.c (follow_fork_inferior): Adjust.
2479 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2480 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2481 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2482 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2483 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2484 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2485 * remote.c (class remote_target) <follow_fork>: Likewise.
2486 (remote_target::follow_fork): Likewise.
2487 * target-delegates.c: Re-generate.
2488
dc2b480f
WP
24892021-04-07 Weimin Pan <weimin.pan@oracle.com>
2490
2491 * ctfread.c (fetch_tid_type): New function, use throughout file.
2492 (read_forward_type): New function.
2493 (read_type_record): Call read_forward_type.
2494
0a703a4c
AB
24952021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2496
2497 * f-exp.h (class fortran_structop_operation): New class.
2498 * f-exp.y (exp): Create fortran_structop_operation instead of the
2499 generic structop_operation.
2500 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2501 expression as EVAL_NORMAL if the result type was dynamic so we can
2502 extract the actual array bounds.
2503 (fortran_structop_operation::evaluate): New function.
2504
25052021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2506
2507 * eval.c (evaluate_subexp_standard): Remove
2508 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2509 STRUCTOP_PTR.
2510
30ab3586
AB
25112021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2512
2513 * valops.c (value_cast): Call value_deeply_equal before performing
2514 any cast.
2515
5e18990f
AB
25162021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2519 the function.
2520
56d467f4
CT
25212021-04-07 Caroline Tice <cmtice@google.com>
2522
2523 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2524 the search paths used resolve relative location of .dwo file.
2525
1fd999d9
AB
25262021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2529 assert.
2530 (dwarf2_section_info::get_file_name): Add an assert.
2531 (dwarf2_section_info::read_string): Display a minimal, sane error
2532 when the dwarf2_section_info is not associated with a bfd section.
2533
79c02443
AB
25342021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2535
2536 * top.c (staged_gdb_datadir): Update comment.
2537 (set_gdb_datadir): Copy the value of gdb_datadir back into
2538 staged_datadir.
2539 (init_main): Initialise staged_gdb_datadir.
2540
340d00fb
TV
25412021-04-06 Tom de Vries <tdevries@suse.de>
2542
2543 PR breakpoints/25884
2544 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2545 stepping range.
2546
d811a7cf
TV
25472021-04-06 Tom de Vries <tdevries@suse.de>
2548
2549 PR tui/27680
2550 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2551 to style.parse.
2552
306b445a
SM
25532021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2554
2555 * avr-tdep.c (avr_frame_unwind_cache): Use
2556 trad_frame_saved_reg::is_addr.
2557
9161c89a
SM
25582021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2559
2560 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2561 adjust callers.
2562
0072c873
SM
25632021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2566 objfile parameter for objfile_per_bfd_storage, adjust callers.
2567 (struct standard_psymtab) <standard_psymtab>: Likewise.
2568 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2569 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2570 * ctfread.c (struct ctf_psymtab): Likewise.
2571 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2572 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2573 (dwarf2_create_include_psymtab): Likewise.
2574 * objfiles.h (struct objfile_per_bfd_storage)
2575 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2576 <get_bfd>: New method.
2577 <m_bfd>: New field.
2578 * objfiles.c (get_objfile_bfd_data): Adjust.
2579
9984dd99
SM
25802021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * psymtab.c (partial_symtab::partial_symtab): Change
2583 last_objfile_name to be an std::string.
2584 * symfile.c (allocate_symtab): Likewise.
2585
4a4f97c1
SM
25862021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2587
2588 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2589 methods.
2590 (struct objfile) <intern>: Use
2591 objfile::objfile_per_bfd_storage::intern.
2592
0672875f
SM
25932021-04-01 Simon Marchi <simon.marchi@efficios.com>
2594
2595 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2596 with type::is_flag_enum.
2597
9902b327
SM
25982021-04-01 Simon Marchi <simon.marchi@efficios.com>
2599
2600 * gdbtypes.h (struct type) <is_flag_enum,
2601 set_is_flag_enum>: New methods.
2602 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2603 write call sites to use type::set_is_flag_enum.
2604
3bc440a2
SM
26052021-04-01 Simon Marchi <simon.marchi@efficios.com>
2606
2607 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2608 with type::is_declared_class.
2609
aa70e35c
SM
26102021-04-01 Simon Marchi <simon.marchi@efficios.com>
2611
2612 * gdbtypes.h (struct type) <is_declared_class,
2613 set_is_declared_class>: New methods.
2614 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2615 write call sites to use type::set_is_declared_class.
2616
bfb9f5dc
BS
26172021-02-28 Boris Staletic <boris.staletic@gmail.com>
2618
2619 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2620 to avoid deprecation warnings.
2621
733f5eea
ML
26222021-04-01 Martin Liska <mliska@suse.cz>
2623
2624 * cp-name-parser.y: Use startswith instead of strncmp.
2625 * m2-exp.y: Likewise.
2626 * macroexp.c (substitute_args): Likewise.
2627 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2628 * rust-exp.y: Likewise.
2629
af82f89d
TT
26302021-03-31 Tom Tromey <tom@tromey.com>
2631
2632 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2633 with dw2_map_matching_symbols.
2634 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2635 dw2_expand_symtabs_matching.
2636
3570682a
TT
26372021-03-31 Tom Tromey <tromey@adacore.com>
2638
2639 * dwarf2/stringify.h: Fix typo.
2640
8a91fbdf
SM
26412021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2642
2643 PR gdb/27541
2644 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2645 with objfiles using READNOW.
2646
9f67fc59
TT
26472021-03-29 Tom Tromey <tromey@adacore.com>
2648
2649 * top.c (check_frame_language_change): Update.
2650 * language.c (language_info): Remove parameter.
2651 * language.h (language_info): Remove parameter.
2652
9b8ffbf4
LM
26532021-03-29 Luis Machado <luis.machado@linaro.org>
2654
2655 * compile/compile.c (get_args): Don't add empty argv entries.
2656
25b48839
RO
26572021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2658
2659 gdb:
2660 * procfs.c (procfs_target::attach): Define inf.
2661 Use it.
2662 (procfs_target::create_inferior): Likewise.
2663
edc02ceb
TT
26642021-03-28 Tom Tromey <tom@tromey.com>
2665
2666 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2667 (elf_symfile_read): Simplify.
2668 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2669 (make_lazy_dwarf_reader): New function.
2670 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2671 (dwarf2_initialize_objfile): Return void. Remove index_kind
2672 parameter. Push on 'qf' list.
2673 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2674 type. Remove 'index_kind' parameter.
2675 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2676
6e23d91a
TT
26772021-03-27 Tom Tromey <tom@tromey.com>
2678
2679 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2680
594b8948
TT
26812021-03-27 Tom Tromey <tom@tromey.com>
2682
2683 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2684
efe1ecd8
LS
26852021-03-26 Lancelot Six <lsix@lancelotsix.com>
2686
2687 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2688 rid of 'local'.
2689
f4655dee
TT
26902021-03-26 Tom Tromey <tom@tromey.com>
2691
2692 * symtab.c (struct output_source_filename_data): Add 'output'
2693 method and operator().
2694 (output_source_filename_data::output): Rename from
2695 output_source_filename.
2696 (output_partial_symbol_filename): Remove.
2697 (info_sources_command): Update.
2698 (struct add_partial_filename_data): Add operator().
2699 (add_partial_filename_data::operator()): Rename from
2700 maybe_add_partial_symtab_filename.
2701 (make_source_files_completion_list): Update.
2702 * symfile.c (quick_symbol_functions): Update.
2703 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2704 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2705 'need_fullname'. Remove 'data' parameter.
2706 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2707 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2708 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2709 Change type of 'fun' and 'need_fullname'. Remove 'data'
2710 parameter.
2711 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2712 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2713 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2714 parameter.
2715 (mi_cmd_file_list_exec_source_files): Update.
2716 * dwarf2/read.c
2717 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2718
2315bb2d
TT
27192021-03-26 Tom Tromey <tom@tromey.com>
2720
2721 * ada-lang.c (struct match_data): Add operator().
2722 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2723 (callback): Remove 'callback'.
2724
e2cd5ca4
TT
27252021-03-26 Tom Tromey <tom@tromey.com>
2726
2727 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2728 call make_ignore_params once.
2729
cd43f63e
TT
27302021-03-26 Tom Tromey <tom@tromey.com>
2731
2732 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2733 "user" check.
2734
b4b1a226
SM
27352021-03-26 Simon Marchi <simon.marchi@efficios.com>
2736 Pedro Alves <pedro@palves.net>
2737
2738 * async-event.c: Include "infrun.h".
2739 (async_event_handler_marked): New.
2740 * async-event.h (async_event_handler_marked): Declare.
2741 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2742 inferior before calling target method. Don't commit-resumed if
2743 target_has_pending_events is true.
2744 * remote.c (remote_target::has_pending_events): New.
2745 * target-delegates.c: Regenerate.
2746 * target.c (target_has_pending_events): New.
2747 * target.h (target_ops::has_pending_events): New target method.
2748 (target_has_pending_events): New.
2749
1192f124
SM
27502021-03-26 Simon Marchi <simon.marchi@efficios.com>
2751 Pedro Alves <pedro@palves.net>
2752
2753 * infcmd.c (run_command_1, attach_command, detach_command)
2754 (interrupt_target_1): Use scoped_disable_commit_resumed.
2755 * infrun.c (do_target_resume): Remove
2756 target_commit_resume call.
2757 (commit_resume_all_targets): Remove.
2758 (maybe_set_commit_resumed_all_targets): New.
2759 (maybe_call_commit_resumed_all_targets): New.
2760 (enable_commit_resumed): New.
2761 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2762 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2763 (scoped_disable_commit_resumed::reset)
2764 (scoped_disable_commit_resumed::reset_and_commit)
2765 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2766 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2767 New.
2768 (proceed): Use scoped_disable_commit_resumed and
2769 maybe_call_commit_resumed_all_targets.
2770 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2771 * infrun.h (struct scoped_disable_commit_resumed): New.
2772 (maybe_call_commit_resumed_all_process_targets): New.
2773 (struct scoped_enable_commit_resumed): New.
2774 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2775 * process-stratum-target.h (class process_stratum_target):
2776 <commit_resumed_state>: New.
2777 * record-full.c (record_full_wait_1): Change commit_resumed_state
2778 around calling commit_resumed.
2779 * remote.c (class remote_target) <commit_resume>: Rename to...
2780 <commit_resumed>: ... this.
2781 (struct stop_reply): Move up.
2782 (remote_target::commit_resume): Rename to...
2783 (remote_target::commit_resumed): ... this. Check if there is any
2784 thread pending vCont resume.
2785 (remote_target::remote_stop_ns): Generate stop replies for resumed
2786 but pending vCont threads.
2787 (remote_target::wait_ns): Add gdb_assert.
2788 * target-delegates.c: Regenerate.
2789 * target.c (target_wait, target_resume): Assert that the current
2790 process_stratum target isn't in commit-resumed state.
2791 (defer_target_commit_resume): Remove.
2792 (target_commit_resume): Remove.
2793 (target_commit_resumed): New.
2794 (make_scoped_defer_target_commit_resume): Remove.
2795 (target_stop): Assert that the current process_stratum target
2796 isn't in commit-resumed state.
2797 * target.h (struct target_ops) <commit_resume>: Rename to ...
2798 <commit_resumed>: ... this.
2799 (target_commit_resume): Remove.
2800 (target_commit_resumed): New.
2801 (make_scoped_defer_target_commit_resume): Remove.
2802 * top.c (wait_sync_command_done): Use
2803 scoped_enable_commit_resumed.
2804
e5b9b39f
PA
28052021-03-26 Pedro Alves <pedro@palves.net>
2806
2807 * target.c (target_always_non_stop_p): Also check whether the
2808 target can async.
2809
bab287cd
TT
28102021-03-26 Tom Tromey <tom@tromey.com>
2811
2812 * dwarf2/read.c (dwarf2_read_debug_names)
2813 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2814 (dw2_debug_names_iterator::next, create_type_unit_group):
2815 Simplify.
2816
eff4f69d
PA
28172021-03-25 Pedro Alves <pedro@palves.net>
2818
2819 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2820 around setting the breakpoint.
2821
323fd5b9
PA
28222021-03-25 Pedro Alves <pedro@palves.net>
2823
2824 * remote.c
2825 (remote_target::check_pending_events_prevent_wildcard_vcont):
2826 Check whether the event's ptid is not null_ptid before looking up
2827 the corresponding inferior.
2828
d3cbca38
CD
28292021-03-24 Changbin Du <changbin.du@gmail.com>
2830
2831 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2832 read_code.
2833
328d42d8
SM
28342021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 * target.h (current_top_target): Remove, make callers use the
2837 current inferior instead.
2838 * target.c (current_top_target): Remove.
2839
d777bf0d
SM
28402021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2841
2842 * target.h (target_shortname): Change to function declaration.
2843 (target_longname): Likewise.
2844 (target_attach_no_wait): Likewise.
2845 (target_post_attach): Likewise.
2846 (target_prepare_to_store): Likewise.
2847 (target_supports_enable_disable_tracepoint): Likewise.
2848 (target_supports_string_tracing): Likewise.
2849 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2850 (target_supports_dumpcore): Likewise.
2851 (target_dumpcore): Likewise.
2852 (target_can_run_breakpoint_commands): Likewise.
2853 (target_files_info): Likewise.
2854 (target_post_startup_inferior): Likewise.
2855 (target_insert_fork_catchpoint): Likewise.
2856 (target_remove_fork_catchpoint): Likewise.
2857 (target_insert_vfork_catchpoint): Likewise.
2858 (target_remove_vfork_catchpoint): Likewise.
2859 (target_insert_exec_catchpoint): Likewise.
2860 (target_remove_exec_catchpoint): Likewise.
2861 (target_set_syscall_catchpoint): Likewise.
2862 (target_rcmd): Likewise.
2863 (target_can_lock_scheduler): Likewise.
2864 (target_can_async_p): Likewise.
2865 (target_is_async_p): Likewise.
2866 (target_execution_direction): Likewise.
2867 (target_extra_thread_info): Likewise.
2868 (target_pid_to_exec_file): Likewise.
2869 (target_thread_architecture): Likewise.
2870 (target_find_memory_regions): Likewise.
2871 (target_make_corefile_notes): Likewise.
2872 (target_get_bookmark): Likewise.
2873 (target_goto_bookmark): Likewise.
2874 (target_stopped_by_watchpoint): Likewise.
2875 (target_stopped_by_sw_breakpoint): Likewise.
2876 (target_supports_stopped_by_sw_breakpoint): Likewise.
2877 (target_stopped_by_hw_breakpoint): Likewise.
2878 (target_supports_stopped_by_hw_breakpoint): Likewise.
2879 (target_have_steppable_watchpoint): Likewise.
2880 (target_can_use_hardware_watchpoint): Likewise.
2881 (target_region_ok_for_hw_watchpoint): Likewise.
2882 (target_can_do_single_step): Likewise.
2883 (target_insert_watchpoint): Likewise.
2884 (target_remove_watchpoint): Likewise.
2885 (target_insert_hw_breakpoint): Likewise.
2886 (target_remove_hw_breakpoint): Likewise.
2887 (target_can_accel_watchpoint_condition): Likewise.
2888 (target_can_execute_reverse): Likewise.
2889 (target_get_ada_task_ptid): Likewise.
2890 (target_filesystem_is_local): Likewise.
2891 (target_trace_init): Likewise.
2892 (target_download_tracepoint): Likewise.
2893 (target_can_download_tracepoint): Likewise.
2894 (target_download_trace_state_variable): Likewise.
2895 (target_enable_tracepoint): Likewise.
2896 (target_disable_tracepoint): Likewise.
2897 (target_trace_start): Likewise.
2898 (target_trace_set_readonly_regions): Likewise.
2899 (target_get_trace_status): Likewise.
2900 (target_get_tracepoint_status): Likewise.
2901 (target_trace_stop): Likewise.
2902 (target_trace_find): Likewise.
2903 (target_get_trace_state_variable_value): Likewise.
2904 (target_save_trace_data): Likewise.
2905 (target_upload_tracepoints): Likewise.
2906 (target_upload_trace_state_variables): Likewise.
2907 (target_get_raw_trace_data): Likewise.
2908 (target_get_min_fast_tracepoint_insn_len): Likewise.
2909 (target_set_disconnected_tracing): Likewise.
2910 (target_set_circular_trace_buffer): Likewise.
2911 (target_set_trace_buffer_size): Likewise.
2912 (target_set_trace_notes): Likewise.
2913 (target_get_tib_address): Likewise.
2914 (target_set_permissions): Likewise.
2915 (target_static_tracepoint_marker_at): Likewise.
2916 (target_static_tracepoint_markers_by_strid): Likewise.
2917 (target_traceframe_info): Likewise.
2918 (target_use_agent): Likewise.
2919 (target_can_use_agent): Likewise.
2920 (target_augmented_libraries_svr4_read): Likewise.
2921 (target_log_command): Likewise.
2922 * target.c (target_shortname): New.
2923 (target_longname): New.
2924 (target_attach_no_wait): New.
2925 (target_post_attach): New.
2926 (target_prepare_to_store): New.
2927 (target_supports_enable_disable_tracepoint): New.
2928 (target_supports_string_tracing): New.
2929 (target_supports_evaluation_of_breakpoint_conditions): New.
2930 (target_supports_dumpcore): New.
2931 (target_dumpcore): New.
2932 (target_can_run_breakpoint_commands): New.
2933 (target_files_info): New.
2934 (target_post_startup_inferior): New.
2935 (target_insert_fork_catchpoint): New.
2936 (target_remove_fork_catchpoint): New.
2937 (target_insert_vfork_catchpoint): New.
2938 (target_remove_vfork_catchpoint): New.
2939 (target_insert_exec_catchpoint): New.
2940 (target_remove_exec_catchpoint): New.
2941 (target_set_syscall_catchpoint): New.
2942 (target_rcmd): New.
2943 (target_can_lock_scheduler): New.
2944 (target_can_async_p): New.
2945 (target_is_async_p): New.
2946 (target_execution_direction): New.
2947 (target_extra_thread_info): New.
2948 (target_pid_to_exec_file): New.
2949 (target_thread_architecture): New.
2950 (target_find_memory_regions): New.
2951 (target_make_corefile_notes): New.
2952 (target_get_bookmark): New.
2953 (target_goto_bookmark): New.
2954 (target_stopped_by_watchpoint): New.
2955 (target_stopped_by_sw_breakpoint): New.
2956 (target_supports_stopped_by_sw_breakpoint): New.
2957 (target_stopped_by_hw_breakpoint): New.
2958 (target_supports_stopped_by_hw_breakpoint): New.
2959 (target_have_steppable_watchpoint): New.
2960 (target_can_use_hardware_watchpoint): New.
2961 (target_region_ok_for_hw_watchpoint): New.
2962 (target_can_do_single_step): New.
2963 (target_insert_watchpoint): New.
2964 (target_remove_watchpoint): New.
2965 (target_insert_hw_breakpoint): New.
2966 (target_remove_hw_breakpoint): New.
2967 (target_can_accel_watchpoint_condition): New.
2968 (target_can_execute_reverse): New.
2969 (target_get_ada_task_ptid): New.
2970 (target_filesystem_is_local): New.
2971 (target_trace_init): New.
2972 (target_download_tracepoint): New.
2973 (target_can_download_tracepoint): New.
2974 (target_download_trace_state_variable): New.
2975 (target_enable_tracepoint): New.
2976 (target_disable_tracepoint): New.
2977 (target_trace_start): New.
2978 (target_trace_set_readonly_regions): New.
2979 (target_get_trace_status): New.
2980 (target_get_tracepoint_status): New.
2981 (target_trace_stop): New.
2982 (target_trace_find): New.
2983 (target_get_trace_state_variable_value): New.
2984 (target_save_trace_data): New.
2985 (target_upload_tracepoints): New.
2986 (target_upload_trace_state_variables): New.
2987 (target_get_raw_trace_data): New.
2988 (target_get_min_fast_tracepoint_insn_len): New.
2989 (target_set_disconnected_tracing): New.
2990 (target_set_circular_trace_buffer): New.
2991 (target_set_trace_buffer_size): New.
2992 (target_set_trace_notes): New.
2993 (target_get_tib_address): New.
2994 (target_set_permissions): New.
2995 (target_static_tracepoint_marker_at): New.
2996 (target_static_tracepoint_markers_by_strid): New.
2997 (target_traceframe_info): New.
2998 (target_use_agent): New.
2999 (target_can_use_agent): New.
3000 (target_augmented_libraries_svr4_read): New.
3001 (target_log_command): New.
3002 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3003 * infrun.c (set_schedlock_func): Adjust.
3004 * mi/mi-main.c (exec_reverse_continue): Adjust.
3005 * reverse.c (exec_reverse_once): Adjust.
3006 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3007 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3008 * remote-sim.c (gdbsim_target::detach): Adjust.
3009 (gdbsim_target::files_info): Adjust.
3010
b64f703b
TT
30112021-03-24 Tom Tromey <tom@tromey.com>
3012
3013 * dwarf2/read.c (dw2_map_matching_symbols): Update.
3014 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3015 (check_match, dw2_expand_symtabs_matching)
3016 (dwarf2_debug_names_index::map_matching_symbols)
3017 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
3018
68f115f8
KS
30192021-03-24 Keith Seitz <keiths@redhat.com>
3020
3021 * compile/compile-cplus-types.c
3022 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3023 thinko.
3024
41c0087b
SM
30252021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3026
3027 * gdbarch.sh (gdbarch_data_registry): Make static.
3028 * gdbarch.c: Re-generate.
3029
ce192338
LM
30302021-03-24 Luis Machado <luis.machado@linaro.org>
3031
3032 * NEWS: Mention memory tagging changes.
3033
bef382e6
LM
30342021-03-24 Luis Machado <luis.machado@linaro.org>
3035
3036 * printcmd.c (decode_format): Handle the 'm' modifier.
3037 (do_examine): Display allocation tags when required/supported.
3038 (should_validate_memtags): New function.
3039 (print_command_1): Display memory tag mismatches.
3040 * valprint.c (show_memory_tag_violations): New function.
3041 (value_print_option_defs): Add new option "memory-tag-violations".
3042 (user_print_options) <memory_tag_violations>: Initialize to 1.
3043 * valprint.h (struct format_data) <print_tags>: New field.
3044 (value_print_options) <memory_tag_violations>: New field.
3045
48136e00
LM
30462021-03-24 Luis Machado <luis.machado@linaro.org>
3047
3048 * printcmd.c: Include gdbsupport/rsp-low.h.
3049 (memory_tag_list): New static global.
3050 (process_print_command_args): Factored out of
3051 print_command_1.
3052 (print_command_1): Use process_print_command_args.
3053 (show_addr_not_tagged, show_memory_tagging_unsupported)
3054 (memory_tag_command, memory_tag_print_tag_command)
3055 (memory_tag_print_logical_tag_command)
3056 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3057 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3058 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3059 functions.
3060 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3061
ffcc2a15
LM
30622021-03-24 Luis Machado <luis.machado@linaro.org>
3063
3064 * aarch64-linux-tdep.c
3065 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3066 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3067
cf44c9fa
LM
30682021-03-24 Luis Machado <luis.machado@linaro.org>
3069
3070 * aarch64-linux-tdep.c
3071 (aarch64_linux_report_signal_info): New function.
3072 (aarch64_linux_init_abi): Register
3073 aarch64_linux_report_signal_info as the report_signal_info hook.
3074 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3075 (SEGV_MTESERR): Define.
3076
b4a7d4fc
LM
30772021-03-24 Luis Machado <luis.machado@linaro.org>
3078
3079 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3080 (aarch64_linux_ltag_tests): New function.
3081 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3082
c7782e50
LM
30832021-03-24 Luis Machado <luis.machado@linaro.org>
3084
3085 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3086 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3087 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3088 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3089 functions.
3090 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3091 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3092 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3093 (aarch64_linux_get_ltag): New functions.
3094 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3095 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3096 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3097 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3098
1e735120
LM
30992021-03-24 Luis Machado <luis.machado@linaro.org>
3100
3101 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3102 bit.
3103 (struct smaps_data): New struct.
3104 (decode_vmflags): Handle the 'mt' flag.
3105 (parse_smaps_data): New function, refactored from
3106 linux_find_memory_regions_full.
3107 (linux_address_in_memtag_page): New function.
3108 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3109 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3110
93e447c6
LM
31112021-03-24 Luis Machado <luis.machado@linaro.org>
3112
3113 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3114 instead of char arrays.
3115
4601818e
LM
31162021-03-24 Luis Machado <luis.machado@linaro.org>
3117
3118 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3119 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3120 nat/aarch64-mte-linux-ptrace.h.
3121 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3122 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3123 override.
3124 <fetch_memtags>: New method override.
3125 <store_memtags>: New method override.
3126 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3127 (aarch64_linux_nat_target::fetch_memtags): New method.
3128 (aarch64_linux_nat_target::store_memtags): New method.
3129 * arch/aarch64-mte-linux.c: New file.
3130 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3131 (AARCH64_MTE_GRANULE_SIZE): Define.
3132 (aarch64_memtag_type): New enum.
3133 (aarch64_mte_get_tag_granules): New prototype.
3134 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3135 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3136 * nat/aarch64-mte-linux-ptrace.c: New file.
3137 * nat/aarch64-mte-linux-ptrace.h: New file.
3138
3f3bd8b8
LM
31392021-03-24 Luis Machado <luis.machado@linaro.org>
3140
3141 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3142 * nat/aarch64-mte-linux-ptrace.h: New file.
3143
5e984dbf
LM
31442021-03-24 Luis Machado <luis.machado@linaro.org>
3145
3146 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3147 (store_mteregs_to_thread): New function.
3148 (aarch64_linux_nat_target::fetch_registers): Update to call
3149 fetch_mteregs_from_thread.
3150 (aarch64_linux_nat_target::store_registers): Update to call
3151 store_mteregs_to_thread.
3152 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3153 (aarch64_cannot_store_register): Handle MTE registers.
3154 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3155 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3156 <has_mte>: New method.
3157 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3158
c1bd443b
LM
31592021-03-24 Luis Machado <luis.machado@linaro.org>
3160
3161 * aarch64-linux-nat.c
3162 (aarch64_linux_nat_target::read_description): Take MTE flag into
3163 account.
3164 Slight refactor to hwcap flag checking.
3165 * aarch64-linux-tdep.c
3166 (aarch64_linux_core_read_description): Likewise.
3167 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3168 MTE.
3169 (aarch64_read_description): Add mte_p parameter and update to use it.
3170 Update the documentation.
3171 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3172 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3173 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3174 (aarch64_create_target_description): Add mte_p parameter and update
3175 the code to use it.
3176 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3177 parameter.
3178 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3179 * features/aarch64-mte.c: New file, generated.
3180 * features/aarch64-mte.xml: New file.
3181
04245125
LM
31822021-03-24 Luis Machado <luis.machado@linaro.org>
3183
3184 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3185 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3186 * aarch64-linux-tdep.c: Likewise
3187 * arch/aarch64-mte-linux.h: New file.
3188
754487e2
LM
31892021-03-24 Luis Machado <luis.machado@linaro.org>
3190
3191 * remote: Include gdbsupport/selftest.h.
3192 (test_memory_tagging_functions): New function.
3193 (_initialize_remote): Register test_memory_tagging_functions.
3194
2c2e7f87
LM
31952021-03-24 Luis Machado <luis.machado@linaro.org>
3196
3197 * remote.c (PACKET_memory_tagging_feature): New enum.
3198 (remote_memory_tagging_p): New function.
3199 (remote_protocol_features): New "memory-tagging" entry.
3200 (remote_target::remote_query_supported): Handle memory tagging
3201 support.
3202 (remote_target::supports_memory_tagging): Implement.
3203 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3204 (create_store_memtags_request): New functions.
3205 (remote_target::fetch_memtags): Implement.
3206 (remote_target::store_memtags): Implement.
3207 (_initialize_remote): Add new "memory-tagging-feature"
3208 config command.
3209
c193949e
LM
32102021-03-24 Luis Machado <luis.machado@linaro.org>
3211
3212 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3213 (default_memtag_matches_p, default_set_memtags)
3214 (default_get_memtag): New functions.
3215 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3216 (default_memtag_matches_p, default_set_memtags)
3217 (default_get_memtag): New prototypes.
3218 * gdbarch.c: Regenerate.
3219 * gdbarch.h: Regenerate.
3220 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3221 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3222 (enum memtag_type): New enum.
3223
dbe692af
LM
32242021-03-24 Luis Machado <luis.machado@linaro.org>
3225
3226 * remote.c (remote_target) <supports_memory_tagging>: New method
3227 override.
3228 <fetch_memtags>: New method override.
3229 <store_memtags>: New method override.
3230 (remote_target::supports_memory_tagging): New method.
3231 (remote_target::fetch_memtags): New method.
3232 (remote_target::store_memtags): New method.
3233 * target-delegates.c: Regenerate.
3234 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3235 method.
3236 <fetch_memtags>: New virtual method.
3237 <store_memtags>: New virtual method.
3238 (target_supports_memory_tagging): Define.
3239 (target_fetch_memtags): Define.
3240 (target_store_memtags): Define.
3241 * target-debug.h (target_debug_print_size_t)
3242 (target_debug_print_const_gdb_byte_vector_r)
3243 (target_debug_print_gdb_byte_vector_r): New functions.
3244
66848ebc
SM
32452021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3246
3247 * target.h (target_longname): Remove.
3248
c8fbd44a
SM
32492021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * target.h (target_is_pushed): Remove, update callers to use
3252 inferior::target_is_pushed instead.
3253 * target.c (target_is_pushed): Remove.
3254
02980c56
SM
32552021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3256
3257 * target.h (push_target): Remove, update callers to use
3258 inferior::push_target.
3259 * target.c (push_target): Remove.
3260 * inferior.h (class inferior) <push_target>: New overload.
3261
fadf6add
SM
32622021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3263
3264 * target.h (unpush_target): Remove, update all callers
3265 to use `inferior::unpush_target` instead.
3266 (struct target_unpusher) <operator()>: Just declare.
3267 * target.c (unpush_target): Remove.
3268 (target_unpusher::operator()): New.
3269
702cf3f5
AB
32702021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3273 error.
3274 (process_full_comp_unit): Validate the top-level tag before
3275 processing the first DIE.
3276 (read_func_scope): Ensure we have a valid builder.
3277
46fec642
AB
32782021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 * objc-lang.c (objc_demangle): Renamed to
3281 objc_language::demangle_symbol, and moved later in the file.
3282 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3283 member function.
3284 (objc_language::demangle_symbol): Defined outside of class
3285 declaration. The definition is the old objc_demangle with NULL
3286 changed to nullptr, and if conditions relating to nullptr pointers
3287 or null character checks made explicit.
3288 * objc-lang.h (objc_demangle): Delete declaration.
3289
08dedd66
ML
32902021-03-22 Martin Liska <mliska@suse.cz>
3291
3292 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3293 (_initialize_arm_tdep): Likewise.
3294
eb36a3eb
TT
32952021-03-20 Tom Tromey <tom@tromey.com>
3296
3297 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3298 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3299 * psymtab.h (make_psymbol_functions): Don't declare.
3300 * psymtab.c (make_psymbol_functions): Remove.
3301 (maintenance_print_psymbols): Update.
3302 * psympriv.h (struct psymbol_functions): Add no-argument
3303 constructor.
3304 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3305 <partial_symtabs>: Remove.
3306 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3307 * elfread.c (read_partial_symbols): Update.
3308 (elf_symfile_read): Remove check for existing partial symbols.
3309 Don't clear "qf".
3310 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3311 partial symbols.
3312 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3313 partial symtabs.
3314 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3315 parameter.
3316 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3317 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3318
e1114590
TT
33192021-03-20 Tom Tromey <tom@tromey.com>
3320
3321 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3322 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3323 * symfile-debug.c (objfile::has_partial_symbols)
3324 (objfile::find_last_source_symtab)
3325 (objfile::forget_cached_source_info)
3326 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3327 (objfile::print_stats, objfile::dump)
3328 (objfile::expand_symtabs_for_function)
3329 (objfile::expand_all_symtabs)
3330 (objfile::expand_symtabs_with_fullname)
3331 (objfile::map_matching_symbols)
3332 (objfile::expand_symtabs_matching)
3333 (objfile::find_pc_sect_compunit_symtab)
3334 (objfile::map_symbol_filenames)
3335 (objfile::find_compunit_symtab_by_address)
3336 (objfile::lookup_global_symbol_language)
3337 (objfile::require_partial_symbols): Update.
3338 * psymtab.c (maintenance_print_psymbols)
3339 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3340 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3341 * objfiles.c (objfile_relocate1): Update.
3342 * elfread.c (elf_symfile_read): Update.
3343
de909f0b
TT
33442021-03-20 Tom Tromey <tom@tromey.com>
3345
3346 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3347
caf8c1e5
TT
33482021-03-20 Tom Tromey <tom@tromey.com>
3349
3350 * psymtab.c (psymbol_functions::count_psyms): Rename.
3351 (psymbol_functions::print_stats): Update.
3352 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3353 method.
3354
3aa31ce7
TT
33552021-03-20 Tom Tromey <tom@tromey.com>
3356
3357 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3358 (psymbol_functions::find_pc_sect_psymtab): Rename.
3359 (psymbol_functions::find_pc_sect_compunit_symtab)
3360 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3361 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3362 Declare new method.
3363 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3364
7b249e47
TT
33652021-03-20 Tom Tromey <tom@tromey.com>
3366
3367 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3368 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3369 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3370 parameter.
3371 (add_psymbol_to_bcache): Remove.
3372 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3373 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3374 Likewise.
3375 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3376 <add_psymbol>: Likewise.
3377 (standard_psymtab, legacy_psymtab): Likewise.
3378 * mdebugread.c (parse_partial_symbols): Update.
3379 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3380 (handle_psymbol_enumerators): Update.
3381 (new_psymtab): Add partial_symtabs parameter.
3382 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3383 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3384 parameter.
3385 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3386 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3387 Update.
3388 * dbxread.c (read_dbx_symtab): Update.
3389 (start_psymtab): Add partial_symtabs parameter.
3390 (dbx_end_psymtab): Update.
3391 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3392 (ctf_psymtab): Add partial_symtabs parameter.
3393 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3394 Update.
3395 (scan_partial_symbols): Add partial_symtabs parameter.
3396 (scan_partial_symbols, elfctf_build_psymtabs)
3397 (ctf_psymtab_add_enums): Update.
3398
d1eef86d
TT
33992021-03-20 Tom Tromey <tom@tromey.com>
3400
3401 * symfile.c (read_symbols): Use objfile method.
3402 * symfile-debug.c (objfile::require_partial_symbols): New method.
3403 * psymtab.h (require_partial_symbols): Don't declare.
3404 * psymtab.c (require_partial_symbols): Use objfile method. Now
3405 static.
3406 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3407 (psymbol_functions::lookup_symbol)
3408 (psymbol_functions::lookup_global_symbol_language)
3409 (psymbol_functions::find_last_source_symtab)
3410 (psymbol_functions::forget_cached_source_info)
3411 (psymbol_functions::print_stats)
3412 (psymbol_functions::expand_symtabs_for_function)
3413 (psymbol_functions::expand_all_symtabs)
3414 (psymbol_functions::expand_symtabs_with_fullname)
3415 (psymbol_functions::map_symbol_filenames)
3416 (psymbol_functions::map_matching_symbols)
3417 (psymbol_functions::expand_symtabs_matching)
3418 (psymbol_functions::find_compunit_symtab_by_address)
3419 (maintenance_print_psymbols, maintenance_info_psymtabs)
3420 (maintenance_check_psymtabs): Update.
3421 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3422 new method.
3423
eb00e468
TT
34242021-03-20 Tom Tromey <tom@tromey.com>
3425
3426 * xcoffread.c (xcoff_sym_fns): Update.
3427 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3428 * symfile-debug.c (objfile::has_partial_symbols): Use
3429 can_lazily_read_symbols.
3430 (debug_sym_read_psymbols): Remove.
3431 (debug_sym_fns, install_symfile_debug_logging): Update.
3432 * quick-symbol.h (struct quick_symbol_functions)
3433 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3434 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3435 * mipsread.c (ecoff_sym_fns): Update.
3436 * machoread.c (macho_sym_fns): Update.
3437 * elfread.c (struct lazy_dwarf_reader): New.
3438 (elf_symfile_read): Update.
3439 (read_psyms): Now a method of lazy_dwarf_reader.
3440 (elf_sym_fns): Update.
3441 (elf_sym_fns_lazy_psyms): Remove.
3442 * dbxread.c (aout_sym_fns): Update.
3443 * coffread.c (coff_sym_fns): Update.
3444
b29b98cf
TT
34452021-03-20 Tom Tromey <tom@tromey.com>
3446
3447 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3448 (reread_symbols): Move reset_psymtabs call later.
3449 * objfiles.c (objfile::objfile): Don't initialize
3450 partial_symtabs.
3451
17d66340
TT
34522021-03-20 Tom Tromey <tom@tromey.com>
3453
3454 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3455 set_partial_symtabs.
3456 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3457 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3458 parameter.
3459 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3460 parameter.
3461 (psymbol_functions::find_pc_sect_compunit_symtab)
3462 (psymbol_functions::print_stats, psymbol_functions::dump)
3463 (psymbol_functions::has_symbols): Update.
3464 (make_psymbol_functions, dump_psymtab_addrmap): Add
3465 partial_symtabs parameter.
3466 (maintenance_print_psymbols): Update.
3467 (psymbol_functions::expand_symtabs_matching): Update.
3468 * psympriv.h (struct psymbol_functions): Add constructor.
3469 <m_partial_symtabs>: New member.
3470 <set_partial_symtabs>: New method.
3471
84685904
TT
34722021-03-20 Tom Tromey <tom@tromey.com>
3473
3474 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3475 parameter.
3476 (process_psymtab_comp_unit_reader)
3477 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3478 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3479 Reference psymtabs via per_bfd.
3480
79cc99f6
TT
34812021-03-20 Tom Tromey <tom@tromey.com>
3482
3483 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3484 Remove.
3485 (add_address_entry): Remove objfile parameter.
3486 (add_address_entry_worker): Update.
3487 (write_address_map): Replace objfile parameter with per_bfd.
3488 (write_gdbindex, write_psymtabs_to_index): Update.
3489
4829711b
TT
34902021-03-20 Tom Tromey <tom@tromey.com>
3491
3492 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3493 print_bcache parameter.
3494 * symfile-debug.c (objfile::print_stats): Add print_bcache
3495 parameter.
3496 * quick-symbol.h (struct quick_symbol_functions)
3497 <print_stats>: Add print_bcache parameter.
3498 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3499 code to psymtab.c.
3500 (print_objfile_statistics): Move psymtab code to psymtab.c.
3501 * psymtab.c (count_psyms): Move from symmisc.c.
3502 (psymbol_functions::print_stats): Print partial symbol and bcache
3503 statistics. Add print_bcache parameter.
3504 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3505 (struct objfile) <print_stats>: Add print_bcache parameter.
3506 * maint.c (maintenance_print_statistics): Update.
3507
efd7398e
TT
35082021-03-20 Tom Tromey <tom@tromey.com>
3509
3510 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3511 member.
3512 * dwarf2/read.c (create_addrmap_from_index)
3513 (create_addrmap_from_aranges): Set per_bfd addrmap.
3514 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3515 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3516 per_bfd addrmap.
3517 (dwarf2_read_debug_names): Don't set partial_symtabs.
3518 (dwarf2_initialize_objfile): Likewise.
3519
51962708
TT
35202021-03-20 Tom Tromey <tom@tromey.com>
3521
3522 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3523 earlier.
3524
484b1090
TT
35252021-03-20 Tom Tromey <tom@tromey.com>
3526
3527 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3528 (~psymtab_discarder, keep): Update.
3529 <m_objfile>: Remove.
3530 <m_partial_symtabs>: New member.
3531 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3532
7e9c0476
TT
35332021-03-20 Tom Tromey <tom@tromey.com>
3534
3535 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3536 (xcoff_end_psymtab): Update.
3537 (scan_xcoff_symtab): Add partial_symtabs parameter.
3538 (xcoff_initial_scan): Update.
3539 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3540 * mdebugread.c (mdebug_build_psymtabs): Update.
3541 (parse_partial_symbols): Add partial_symtabs parameter.
3542 * dbxread.c (dbx_symfile_read): Update.
3543 (read_dbx_symtab): Add partial_symtabs parameter.
3544 (read_dbx_symtab): Update.
3545 (dbx_end_psymtab): Add partial_symtabs parameter.
3546
75336a5a
TT
35472021-03-20 Tom Tromey <tom@tromey.com>
3548
3549 * quick-symbol.h (struct quick_symbol_functions)
3550 <relocated>: New method.
3551 * psymtab.h (struct psymbol_functions) <relocated>: New
3552 method.
3553 <fill_psymbol_map>: Declare method.
3554 <m_psymbol_map>: New member.
3555 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3556 (psymbol_functions::find_compunit_symtab_by_address): Update.
3557 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3558 (struct objfile) <psymbol_map>: Remove.
3559 * objfiles.c (objfile_relocate1): Update.
3560
39298a5d
TT
35612021-03-20 Tom Tromey <tom@tromey.com>
3562
3563 * psympriv.h (struct psymbol_functions): New.
3564 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3565 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3566 (objfile::lookup_global_symbol_language): Update.
3567 * quick-symbol.h (struct quick_symbol_functions): Convert function
3568 pointers to methods. Add virtual destructor.
3569 (quick_symbol_functions_up): New typedef.
3570 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3571 (dwarf2_debug_names_functions): Don't declare.
3572 (make_psymbol_functions): Declare.
3573 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3574 (psymbol_functions::find_pc_sect_compunit_symtab)
3575 (psymbol_functions::lookup_symbol)
3576 (psymbol_functions::lookup_global_symbol_language)
3577 (psymbol_functions::find_last_source_symtab)
3578 (psymbol_functions::forget_cached_source_info)
3579 (psymbol_functions::print_stats, psymbol_functions::dump)
3580 (psymbol_functions::expand_symtabs_for_function)
3581 (psymbol_functions::expand_all_symtabs)
3582 (psymbol_functions::expand_symtabs_with_fullname)
3583 (psymbol_functions::map_symbol_filenames)
3584 (psymbol_functions::map_matching_symbols)
3585 (psymbol_functions::expand_symtabs_matching)
3586 (psymbol_functions::has_symbols)
3587 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3588 (psym_functions): Remove.
3589 (make_psymbol_functions): New function.
3590 * objfiles.h (struct objfile) <qf>: Change type.
3591 * elfread.c (elf_symfile_read): Update.
3592 * dwarf2/read.c (struct dwarf2_base_index_functions)
3593 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3594 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3595 (dwarf2_base_index_functions::find_last_source_symtab)
3596 (dwarf2_base_index_functions::forget_cached_source_info)
3597 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3598 (dwarf2_gdb_index::lookup_symbol)
3599 (dwarf2_base_index_functions::print_stats)
3600 (dwarf2_gdb_index::dump)
3601 (dwarf2_gdb_index::expand_symtabs_for_function)
3602 (dwarf2_base_index_functions::expand_all_symtabs)
3603 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3604 Rename.
3605 (dwarf2_gdb_index::map_matching_symbols): New method.
3606 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3607 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3608 (dwarf2_base_index_functions::map_symbol_filenames)
3609 (dwarf2_base_index_functions::has_symbols): Rename.
3610 (dwarf2_gdb_index_functions): Remove.
3611 (dwarf2_debug_names_index::lookup_symbol)
3612 (dwarf2_debug_names_index::dump)
3613 (dwarf2_debug_names_index::expand_symtabs_for_function)
3614 (dwarf2_debug_names_index::map_matching_symbols)
3615 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3616 (dwarf2_debug_names_functions): Remove.
3617 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3618 Declare.
3619
5c3f1e5b
TT
36202021-03-20 Tom Tromey <tom@tromey.com>
3621
3622 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3623 null.
3624 * xcoffread.c (xcoff_sym_fns): Update.
3625 * symfile.h (struct sym_fns) <qf>: Remove.
3626 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3627 * symfile-debug.c (objfile::has_partial_symbols)
3628 (objfile::find_last_source_symtab)
3629 (objfile::forget_cached_source_info)
3630 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3631 (objfile::print_stats, objfile::dump)
3632 (objfile::expand_symtabs_for_function)
3633 (objfile::expand_all_symtabs)
3634 (objfile::expand_symtabs_with_fullname)
3635 (objfile::map_matching_symbols)
3636 (objfile::expand_symtabs_matching)
3637 (objfile::find_pc_sect_compunit_symtab)
3638 (objfile::map_symbol_filenames)
3639 (objfile::find_compunit_symtab_by_address)
3640 (objfile::lookup_global_symbol_language, debug_sym_fns)
3641 (install_symfile_debug_logging): Update.
3642 * objfiles.h (struct objfile) <qf>: New member.
3643 * mipsread.c (ecoff_sym_fns): Update.
3644 * machoread.c (macho_sym_fns): Update.
3645 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3646 Don't declare.
3647 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3648 * dbxread.c (aout_sym_fns): Update.
3649 * coffread.c (coff_sym_fns): Update.
3650
9b99dcc8
TT
36512021-03-20 Tom Tromey <tom@tromey.com>
3652
3653 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3654 (expand_symtabs_file_matcher_ftype)
3655 (expand_symtabs_symbol_matcher_ftype)
3656 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3657 Move to quick-symbol.h.
3658 * quick-symbol.h: New file.
3659
4d080b46
TT
36602021-03-20 Tom Tromey <tom@tromey.com>
3661
3662 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3663 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3664 (basic_lookup_transparent_type_quick)
3665 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3666 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3667 Update.
3668 * symmisc.c (print_objfile_statistics, dump_objfile)
3669 (maintenance_expand_symtabs): Update.
3670 * symfile.c (symbol_file_add_with_addrs)
3671 (expand_symtabs_matching, map_symbol_filenames): Update.
3672 * symfile-debug.c (objfile::has_partial_symbols)
3673 (objfile::find_last_source_symtab)
3674 (objfile::forget_cached_source_info)
3675 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3676 (objfile::print_stats, objfile::dump)
3677 (objfile::expand_symtabs_for_function)
3678 (objfile::expand_all_symtabs)
3679 (objfile::expand_symtabs_with_fullname)
3680 (objfile::map_matching_symbols)
3681 (objfile::expand_symtabs_matching)
3682 (objfile::find_pc_sect_compunit_symtab)
3683 (objfile::map_symbol_filenames)
3684 (objfile::find_compunit_symtab_by_address)
3685 (objfile::lookup_global_symbol_language): New methods.
3686 (debug_sym_quick_functions): Remove.
3687 (debug_sym_fns, install_symfile_debug_logging): Update.
3688 * source.c (forget_cached_source_info_for_objfile)
3689 (select_source_symtab): Update.
3690 * objfiles.h (struct objfile): Add methods corresponding to
3691 quick_symbol_functions.
3692 * objfiles.c (objfile::has_partial_symbols): Move to
3693 symfile-debug.c.
3694 * linespec.c (iterate_over_all_matching_symtabs): Update.
3695 * cp-support.c (add_symbol_overload_list_qualified): Update.
3696 * ada-lang.c (add_nonlocal_symbols): Update.
3697
fae2120b
TT
36982021-03-20 Tom Tromey <tom@tromey.com>
3699
3700 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3701 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3702 bool.
3703 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3704 * psymtab.c (psym_has_symbols): Return bool.
3705 * objfiles.c (objfile::has_partial_symbols): Return bool.
3706 * dwarf2/read.c (dw2_has_symbols): Return bool.
3707
a8ad4f3c
TT
37082021-03-20 Tom Tromey <tom@tromey.com>
3709
3710 * symfile.c (read_symbols): Update.
3711 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3712 (objfile_has_partial_symbols): Don't declare.
3713 * objfiles.c (objfile::has_partial_symbols): Rename from
3714 objfile_has_partial_symbols.
3715 (objfile_has_symbols, have_partial_symbols): Update.
3716 * elfread.c (elf_symfile_read): Update.
3717 * dwarf2/read.c (dwarf2_has_info): Update.
3718 * coffread.c (coff_symfile_read): Update.
3719
70182375
TT
37202021-03-20 Tom Tromey <tom@tromey.com>
3721
3722 * coffread.c: Include dwarf2/public.h.
3723 * dwarf2/frame.c: Include dwarf2/public.h.
3724 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3725 * dwarf2/public.h: New file.
3726 * dwarf2/read.c: Include dwarf2/public.h.
3727 * elfread.c: Include dwarf2/public.h.
3728 * machoread.c: Include dwarf2/public.h.
3729 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3730 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3731 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3732 * xcoffread.c: Include dwarf2/public.h.
3733
18038e63
TT
37342021-03-20 Tom Tromey <tom@tromey.com>
3735
3736 * symfile.h (enum dwarf2_section_enum)
3737 (dwarf2_get_section_info): Move to dwarf2/read.h.
3738 * dwarf2/read.h (enum dwarf2_section_enum)
3739 (dwarf2_get_section_info): Move from symfile.h.
3740
219f56b4
PA
37412021-03-19 Pedro Alves <pedro@palves.net>
3742
3743 * thread.c (any_thread_of_inferior): Check if there's a selected
3744 thread before calling inferior_thread().
3745
15310fd4
TT
37462021-03-18 Tom Tromey <tromey@adacore.com>
3747
3748 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3749 get_DW_UT_name.
3750 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3751 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3752
763b8efd
AB
37532021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3754
3755 * python/py-param.c (get_set_value): Update header comment.
3756
f058c521
SM
37572021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * infrun.c (check_multi_target_resumption): Remove argument to
3760 all_non_exited_inferiors.
3761
383228bc
CB
37622021-03-16 Christian Biesinger <cbiesinger@google.com>
3763
3764 * windows-nat.c (windows_init_thread_list): Add message to
3765 debug log.
3766
7807d76a
AB
37672021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3768
3769 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3770 well as PyLong_Check for Python 2.
3771
675da9a5
TT
37722021-03-15 Tom Tromey <tromey@adacore.com>
3773
3774 PR build/27579:
3775 * rust-exp.y (maker_map): Use gdb::hash_enum.
3776 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3777
4800761a
SM
37782021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3779
3780 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3781 end of debug print.
3782
eb5dd737
SM
37832021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3784
3785 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3786 parameter, adjust caller.
3787
6813ceb0
TT
37882021-03-15 Tom Tromey <tromey@adacore.com>
3789
3790 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3791
3b5c4de0
TT
37922021-03-15 Tom Tromey <tromey@adacore.com>
3793
3794 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3795 ada_ensure_varsize_limit.
3796
c04da66c
TT
37972021-03-15 Tom Tromey <tromey@adacore.com>
3798
3799 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3800 fixed-point.
3801 * ada-exp.y (maybe_overload): New function.
3802 (ada_wrap_overload): New function.
3803 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3804 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3805 (or_else_exp, xor_exp, primary): Update.
3806
9863c3b5
TT
38072021-03-15 Tom Tromey <tromey@adacore.com>
3808
3809 PR ada/27545:
3810 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3811 call for tagged type.
3812
1ac74522
TT
38132021-03-15 Tom Tromey <tromey@adacore.com>
3814
3815 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3816 assignment.
3817
207582c0
TT
38182021-03-15 Tom Tromey <tromey@adacore.com>
3819
3820 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3821 container.
3822 (ada_assign_operation::evaluate): Update.
3823 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3824 Change return type.
3825
8d624a9d
FW
38262021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3827
3828 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3829
ba6a0ef3
AB
38302021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3831
3832 * python/python.c (gdbpy_source_objfile_script): Use
3833 make_scoped_restore to restore gdbpy_current_objfile.
3834 (gdbpy_execute_objfile_script): Likewise.
3835
7c290a04
TT
38362021-03-14 Tom Tromey <tom@tromey.com>
3837
3838 * dwarf2/read.c (read_attribute_value): Use cu_header
3839 consistently.
3840
0280fdcc
TT
38412021-03-14 Tom Tromey <tom@tromey.com>
3842
3843 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3844 (peek_die_abbrev): Use reader.abfd.
3845
a9f172c6
TT
38462021-03-14 Tom Tromey <tom@tromey.com>
3847
3848 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3849 m_header_read_in.
3850
7c32eebb
TT
38512021-03-13 Tom Tromey <tom@tromey.com>
3852
3853 * dwarf2/read.c (struct partial_die_info): Update.
3854 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3855 (load_partial_dies, partial_die_info::partial_die_info): Update.
3856 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3857
27012aba
TT
38582021-03-13 Tom Tromey <tom@tromey.com>
3859
3860 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3861
fece451c
CB
38622021-03-12 Christian Biesinger <cbiesinger@google.com>
3863
3864 PR threads/27239
3865 * cp-support.c: Use scoped_segv_handler_restore.
3866 * event-top.c (thread_local_segv_handler): Made static.
3867 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3868 New function.
3869 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3870 function.
3871 * event-top.h (class scoped_segv_handler_restore): New class.
3872 (thread_local_segv_handler): Removed.
3873
7056f312
TT
38742021-03-10 Tom Tromey <tromey@adacore.com>
3875
3876 * parser-defs.h (parser_state): Change completion to bool.
3877 <parse_completion>: Likewise.
3878 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3879 (ada_resolve_variable, ada_resolve_function): Update.
3880 * ada-lang.c (ada_find_operator_symbol): Change
3881 parse_completion to bool.
3882 (ada_resolve_funcall, ada_resolve_variable)
3883 (ada_resolve_function): Likewise.
3884
ccdc02ed
TT
38852021-03-09 Tom Tromey <tromey@adacore.com>
3886
3887 * eval.c (operation::evaluate_funcall): Use function formal
3888 parameter types when evaluating.
3889
fbb1aace
AB
38902021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3891
3892 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3893 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3894 and owner to m_owner.
3895
611aa09d
FW
38962021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3897
3898 * f-exp.h (eval_op_f_loc): Declare.
3899 (expr::fortran_loc_operation): New typedef.
3900 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3901 UNOP_INTRINSIC.
3902 (f77_keywords): Add LOC keyword.
3903 * f-lang.c (eval_op_f_loc): New function.
3904 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3905
eef32f59
AB
39062021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3907
3908 * f-exp.h (eval_op_f_array_shape): Declare.
3909 (fortran_array_shape_operation): New type.
3910 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3911 UNOP_INTRINSIC.
3912 (f77_keywords): Add "shape" keyword.
3913 * f-lang.c (fortran_array_shape): New function.
3914 (eval_op_f_array_shape): New function.
3915 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3916
7ba155b3
AB
39172021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3920 of this function.
3921 (expr::fortran_array_size_1arg): New type.
3922 (expr::fortran_array_size_2arg): Likewise.
3923 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3924 UNOP_OR_BINOP_INTRINSIC.
3925 (f77_keywords): Add "size" keyword.
3926 * f-lang.c (fortran_array_size): New function.
3927 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3928 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3929
e14816a8
AB
39302021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3931
3932 * f-exp.h (eval_op_f_rank): Declare.
3933 (expr::fortran_rank_operation): New typedef.
3934 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3935 UNOP_INTRINSIC.
3936 (f77_keywords): Add "rank" keyword.
3937 * f-lang.c (eval_op_f_rank): New function.
3938 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3939
3dd93bf8
TT
39402021-03-08 Tom Tromey <tom@tromey.com>
3941
3942 * printcmd.c (set_command): Remove null check.
3943 * value.c (init_if_undefined_command): Remove null check.
3944
9c79936b
TT
39452021-03-08 Tom Tromey <tom@tromey.com>
3946
3947 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3948 Update.
3949 * p-exp.y (variable): Update.
3950 * go-exp.y (variable): Update.
3951 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3952 Remove overload for objfile.
3953 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3954 parameter.
3955 (check_objfile): Likewise.
3956 (dump_for_expression): Likewise. Remove overload for objfile.
3957 (class var_msym_value_operation): Use bound_minimal_symbol.
3958 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3959 parameter.
3960 (var_msym_value_operation::evaluate_for_address)
3961 (var_msym_value_operation::evaluate_for_sizeof)
3962 (var_msym_value_operation::evaluate_for_cast): Update.
3963 * d-exp.y (PrimaryExpression): Update.
3964 * c-exp.y (variable): Update.
3965 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3966 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3967 Update.
3968 * ada-exp.y (write_var_or_type): Update.
3969
40d07d07
TT
39702021-03-08 Tom Tromey <tom@tromey.com>
3971
3972 * parser-defs.h (exp_uses_objfile): Return bool.
3973 * parse.c (exp_uses_objfile): Return bool.
3974
0b2b0b82
TT
39752021-03-08 Tom Tromey <tom@tromey.com>
3976
3977 * value.h (eval_skip_value): Don't declare.
3978 * opencl-lang.c (eval_opencl_assign): Update.
3979 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3980 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3981 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3982 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3983 * expop.h (typeof_operation::evaluate)
3984 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3985 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3986 (cxx_cast_operation::evaluate): Update.
3987 * eval.c (eval_skip_value): Remove.
3988 (eval_op_scope, eval_op_var_entry_value)
3989 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3990 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3991 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3992 (eval_op_binary, eval_op_subscript, eval_op_equal)
3993 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3994 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3995 (eval_op_complement, eval_op_lognot, eval_op_ind)
3996 (eval_op_memval, eval_op_preinc, eval_op_predec)
3997 (eval_op_postinc, eval_op_postdec, eval_op_type)
3998 (eval_binop_assign_modify, eval_op_objc_msgcall)
3999 (eval_multi_subscript, logical_and_operation::evaluate)
4000 (logical_or_operation::evaluate, array_operation::evaluate)
4001 (operation::evaluate_for_cast)
4002 (var_msym_value_operation::evaluate_for_cast)
4003 (var_value_operation::evaluate_for_cast): Update.
4004 * c-lang.c (c_string_operation::evaluate): Update.
4005 * c-exp.h (objc_nsstring_operation::evaluate)
4006 (objc_selector_operation::evaluate): Update.
4007 * ada-lang.c (ada_assign_operation::evaluate)
4008 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4009 (ada_atr_size): Update.
4010
96db551d
TT
40112021-03-08 Tom Tromey <tom@tromey.com>
4012
4013 * eval.c: Merge "namespace" scopes.
4014
ce284361
TT
40152021-03-08 Tom Tromey <tom@tromey.com>
4016
4017 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4018 <release>: Inline.
4019 * parse.c (expr_builder::expr_builder, expr_builder::release):
4020 Remove.
4021
b9d06571
TT
40222021-03-08 Tom Tromey <tom@tromey.com>
4023
4024 * parse.c (expression::expression, expression::~expression):
4025 Remove.
4026 * expression.h (struct expression): Inline constructor. Remove
4027 destructor.
4028
79ab486e
TT
40292021-03-08 Tom Tromey <tom@tromey.com>
4030
4031 * std-operator.def (BINOP_END): Remove.
4032 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4033 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4034 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4035 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4036 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4037 BINOP_END.
4038
48fa6f23
TT
40392021-03-08 Tom Tromey <tom@tromey.com>
4040
4041 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4042
43f542e3
TT
40432021-03-08 Tom Tromey <tom@tromey.com>
4044
4045 * std-operator.def (OP_EXTENDED0): Remove.
4046
5d9ba982
TT
40472021-03-08 Tom Tromey <tom@tromey.com>
4048
4049 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4050 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4051 Remove.
4052
d357570d
TT
40532021-03-08 Tom Tromey <tom@tromey.com>
4054
4055 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4056 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4057
0922dc84
TT
40582021-03-08 Tom Tromey <tom@tromey.com>
4059
4060 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4061 * ada-lang.c (ada_binop_minmax): Update.
4062 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4063 Use BINOP_MIN and BINOP_MAX.
4064
1eaebe02
TT
40652021-03-08 Tom Tromey <tom@tromey.com>
4066
4067 * value.h (evaluate_subexp_with_coercion): Don't declare.
4068 * parse.c (exp_descriptor_standard): Remove.
4069 (expr_builder::expr_builder, expr_builder::release): Update.
4070 (expression::expression): Remove size_t parameter.
4071 (expression::~expression): Simplify.
4072 (expression::resize): Remove.
4073 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4074 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4075 (write_exp_elt_longcst, write_exp_elt_floatcst)
4076 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4077 (write_exp_string_vector, write_exp_bitstring): Remove.
4078 * p-lang.h (class pascal_language) <opcode_print_table,
4079 op_print_tab>: Remove.
4080 * p-lang.c (pascal_language::op_print_tab): Remove.
4081 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4082 Remove.
4083 * objc-lang.c (objc_op_print_tab): Remove.
4084 (class objc_language) <opcode_print_table>: Remove.
4085 * m2-lang.h (class m2_language) <opcode_print_table,
4086 op_print_tab>: Remove.
4087 * m2-lang.c (m2_language::op_print_tab): Remove.
4088 * language.h (struct language_defn) <post_parser, expression_ops,
4089 opcode_print_table>: Remove.
4090 * language.c (language_defn::expression_ops)
4091 (auto_or_unknown_language::opcode_print_table): Remove.
4092 * go-lang.h (class go_language) <opcode_print_table,
4093 op_print_tab>: Remove.
4094 * go-lang.c (go_language::op_print_tab): Remove.
4095 * f-lang.h (class f_language) <opcode_print_table>: Remove
4096 <op_print_tab>: Remove.
4097 * f-lang.c (f_language::op_print_tab): Remove.
4098 * expression.h (union exp_element): Remove.
4099 (struct expression): Remove size_t parameter from constructor.
4100 <resize>: Remove.
4101 <first_opcode>: Update.
4102 <nelts, elts>: Remove.
4103 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4104 (evaluate_subexp_standard, print_expression, op_string)
4105 (dump_raw_expression): Don't declare.
4106 * expprint.c (print_expression, print_subexp)
4107 (print_subexp_funcall, print_subexp_standard, op_string)
4108 (dump_raw_expression, dump_subexp, dump_subexp_body)
4109 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4110 (dump_prefix_expression): Update.
4111 * eval.c (evaluate_subexp): Remove.
4112 (evaluate_expression, evaluate_type): Update.
4113 (evaluate_subexpression_type): Remove.
4114 (fetch_subexp_value): Remove "pc" parameter. Update.
4115 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4116 (evaluate_subexp_standard, evaluate_subexp_for_address)
4117 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4118 (evaluate_subexp_for_cast): Remove.
4119 (parse_and_eval_type): Update.
4120 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4121 * d-lang.c (d_op_print_tab): Remove.
4122 (class d_language) <opcode_print_table>: Remove.
4123 * c-lang.h (c_op_print_tab): Don't declare.
4124 * c-lang.c (c_op_print_tab): Remove.
4125 (class c_language, class cplus_language, class asm_language, class
4126 minimal_language) <opcode_print_table>: Remove.
4127 * breakpoint.c (update_watchpoint, watchpoint_check)
4128 (watchpoint_exp_is_const, watch_command_1): Update.
4129 * ax-gdb.h (union exp_element): Don't declare.
4130 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4131 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4132 (gen_expr_binop_rest): Remove.
4133 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4134 * ada-lang.c (ada_op_print_tab): Remove.
4135 (class ada_language) <post_parser, opcode_print_table>: Remove.
4136
f2a98603
TT
41372021-03-08 Tom Tromey <tom@tromey.com>
4138
4139 * go-lang.c (go_language::expression_ops): Don't declare.
4140 * go-lang.h (class go_language) <expression_ops>: Remove.
4141 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4142 Remove.
4143 (class opencl_language) <expression_ops>: Remove.
4144 * d-lang.c (class d_language) <expression_ops>: Remove.
4145 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4146 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4147 (class c_language, class cplus_language, class asm_language)
4148 (class minimal_language) <expression_ops>: Remove.
4149
d3c54a1c
TT
41502021-03-08 Tom Tromey <tom@tromey.com>
4151
4152 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4153 (evaluate_subexp_type, assign_aggregate)
4154 (aggregate_assign_positional, aggregate_assign_from_choices)
4155 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4156 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4157 (ada_operator_check, ada_forward_operator_length)
4158 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4159 Remove.
4160 (post_parser): Update.
4161 (class ada_language) <expresssion_ops>: Remove.
4162
5871f0a3
TT
41632021-03-08 Tom Tromey <tom@tromey.com>
4164
4165 * m2-lang.h (class m2_language) <expresssion_ops,
4166 exp_descriptor_modula2>: Remove.
4167 * m2-lang.c (evaluate_subexp_modula2)
4168 (m2_language::exp_descriptor_modula2): Remove.
4169
a99be8c1
TT
41702021-03-08 Tom Tromey <tom@tromey.com>
4171
4172 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4173 <exp_descriptor_tab>: Remove.
4174 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4175 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4176 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4177 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4178 Remove.
4179
aa1da9ed
TT
41802021-03-08 Tom Tromey <tom@tromey.com>
4181
4182 * rust-lang.h (class rust_language) <expression_ops,
4183 exp_descriptor_tab>: Remove.
4184 * rust-lang.c (rust_evaluate_funcall): Remove.
4185 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4186 EVAL_SKIP.
4187 (rust_evaluate_subexp): Remove.
4188 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4189 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4190 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4191
08a057e6
TT
41922021-03-08 Tom Tromey <tom@tromey.com>
4193
4194 * ada-exp.y: Create operations.
4195 (empty_stoken): Remove.
4196 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4197 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4198 (components): New global.
4199 (push_component, choice_component, pop_component, pop_components):
4200 New functions.
4201 (associations): New global
4202 (push_association, pop_association, pop_associations): New
4203 functions.
4204 (ada_parse): Update.
4205 (write_var_from_sym, write_int): Create operations.
4206 (write_exp_op_with_string): Remove.
4207 (write_object_renaming, write_selectors, write_ambiguous_var)
4208 (write_var_or_type, write_name_assoc): Create operations.
4209 * ada-lang.h (ada_index_type): Declare.
4210 * ada-lang.c (ada_index_type): No longer static.
4211
d308ba78
TT
42122021-03-08 Tom Tromey <tom@tromey.com>
4213
4214 * f-exp.y: Create operations.
4215 (f_language::parser): Update.
4216
f1b8ceef
TT
42172021-03-08 Tom Tromey <tom@tromey.com>
4218
4219 * m2-exp.y: Create operations.
4220 (m2_language::parser): Update.
4221
3163898e
TT
42222021-03-08 Tom Tromey <tom@tromey.com>
4223
4224 * p-exp.y: Create operations.
4225 (pascal_language::parser): Update.
4226
9412fdcc
TT
42272021-03-08 Tom Tromey <tom@tromey.com>
4228
4229 * d-exp.y: Create operations.
4230 (d_parse): Update.
4231
bb4e0574
TT
42322021-03-08 Tom Tromey <tom@tromey.com>
4233
4234 * go-exp.y: Create operations.
4235 (go_language::parser): Update.
4236
d182f279
TT
42372021-03-08 Tom Tromey <tom@tromey.com>
4238
4239 * objc-lang.c (end_msglist): Create operations.
4240 * c-exp.y: Change parser to create operations.
4241 (write_destructor_name): Remove.
4242 (c_parse): Update.
4243
c1299a23
TT
42442021-03-08 Tom Tromey <tom@tromey.com>
4245
4246 * rust-exp.y: Create operations.
4247 (rust_parser::convert_params_to_expression): Change return type.
4248 (binop_maker_ftype): New typedef.
4249 (maker_map): New global.
4250 (rust_parser::convert_ast_to_expression): Change return type.
4251 (rust_language::parser): Update.
4252 (_initialize_rust_exp): Initialize maker_map.
4253
4c5e7a93
TT
42542021-03-08 Tom Tromey <tom@tromey.com>
4255
4256 * stap-probe.c (binop_maker_ftype): New typedef.
4257 (stap_maker_map): New global.
4258 (stap_make_binop): New function.
4259 (stap_parse_register_operand): Return operation_up.
4260 (stap_parse_single_operand, stap_parse_argument_conditionally)
4261 (stap_parse_argument_1): Likewise.
4262 (stap_parse_argument): Create operations.
4263 (stap_probe::parse_arguments): Update.
4264 (_initialize_stap_probe): Initialize stap_maker_map.
4265 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4266 type.
4267 * i386-tdep.h (i386_stap_parse_special_token): Change return
4268 type.
4269 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4270 (i386_stap_parse_special_token_three_arg_disp)
4271 (i386_stap_parse_special_token): Change return type.
4272 * gdbarch.sh (stap_parse_special_token): Change return type.
4273 * gdbarch.c: Rebuild.
4274 * gdbarch.h: Rebuild.
4275 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4276 type.
4277 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4278 return type.
4279
482ddd69
TT
42802021-03-08 Tom Tromey <tom@tromey.com>
4281
4282 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4283 * gdbarch.h: Rebuild.
4284 * gdbarch.c: Rebuild.
4285 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4286 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4287 return type.
4288 (amd64_dtrace_parse_probe_argument): Update.
4289
8227d9e2
TT
42902021-03-08 Tom Tromey <tom@tromey.com>
4291
4292 * parser-defs.h (struct parser_state) <push, push_new,
4293 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4294 wrap2>: New methods.
4295 <m_operations>: New member.
4296 * parse.c (parser_state::push_c_string)
4297 (parser_state::push_symbol, parser_state::push_dollar): New
4298 methods.
4299
4933522d
TT
43002021-03-08 Tom Tromey <tom@tromey.com>
4301
4302 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4303 New member.
4304 (struct parser_state) <mark_struct_expression>: New method.
4305 * parse.c (parser_state::mark_struct_expression): Update assert.
4306 (parser_state::mark_struct_expression): New method.
4307 (parser_state::mark_completion_tag): Update assert.
4308 (parse_expression_for_completion): Handle expout_last_op.
4309
413403fc
TT
43102021-03-08 Tom Tromey <tom@tromey.com>
4311
4312 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4313 now in superclass.
4314 * value.h (fetch_subexp_value): Add "op" parameter.
4315 * value.c (init_if_undefined_command): Update.
4316 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4317 * stap-probe.c (stap_probe::compile_to_ax): Update.
4318 * printcmd.c (set_command): Update.
4319 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4320 Update.
4321 * parser-defs.h (struct expr_builder) <set_operation>: New
4322 method.
4323 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4324 * expression.h (struct expression) <first_opcode>: Update.
4325 <op>: New member.
4326 * expprint.c (dump_raw_expression, dump_prefix_expression):
4327 Update.
4328 * expop.h (class var_value_operation) <get_symbol>: New method.
4329 (class register_operation) <get_name>: New method.
4330 (class equal_operation): No longer a typedef, now a subclass.
4331 (class unop_memval_operation) <get_type>: New method.
4332 (class assign_operation) <get_lhs>: New method.
4333 (class unop_cast_operation) <get_type>: New method.
4334 * eval.c (evaluate_expression, evaluate_type)
4335 (evaluate_subexpression_type): Update.
4336 (fetch_subexp_value): Add "op" parameter.
4337 (parse_and_eval_type): Update.
4338 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4339 * breakpoint.c (update_watchpoint, watchpoint_check)
4340 (watchpoint_exp_is_const, watch_command_1): Update.
4341 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4342 Update.
4343
b0f9164c
TT
43442021-03-08 Tom Tromey <tom@tromey.com>
4345
4346 * ada-lang.c (ada_value_binop): Do not use op_string.
4347
a88c4354
TT
43482021-03-08 Tom Tromey <tom@tromey.com>
4349
4350 * expprint.c (dump_for_expression): New overload.
4351 * expop.h (check_objfile, dump_for_expression): Declare new
4352 overloads.
4353 * ada-lang.c (check_objfile): New overload.
4354 (assign_component, ada_aggregate_component::uses_objfile)
4355 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4356 (ada_aggregate_component::assign_aggregate)
4357 (ada_positional_component::uses_objfile)
4358 (ada_positional_component::dump, ada_positional_component::assign)
4359 (ada_discrete_range_association::uses_objfile)
4360 (ada_discrete_range_association::dump)
4361 (ada_discrete_range_association::assign)
4362 (ada_name_association::uses_objfile, ada_name_association::dump)
4363 (ada_name_association::assign)
4364 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4365 (ada_choices_component::assign)
4366 (ada_others_component::uses_objfile, ada_others_component::dump)
4367 (ada_others_component::assign, ada_assign_operation::evaluate):
4368 New methods.
4369 * ada-exp.h (ada_string_operation) <get_name>: New method.
4370 (class ada_assign_operation): New.
4371 (class ada_component): New.
4372 (ada_component_up): New typedef.
4373 (class ada_aggregate_operation, class ada_aggregate_component)
4374 (class ada_positional_component, class ada_others_component)
4375 (class ada_association): New.
4376 (ada_association_up): New typedef.
4377 (class ada_choices_component)
4378 (class ada_discrete_range_association)
4379 (class ada_name_association): New.
4380
d8a4ed8a
TT
43812021-03-08 Tom Tromey <tom@tromey.com>
4382
4383 * ada-lang.c (ada_var_value_operation::resolve)
4384 (ada_funcall_operation::resolve)
4385 (ada_ternop_slice_operation::resolve): New methods.
4386 * ada-exp.h (struct ada_resolvable): New.
4387 (class ada_var_value_operation): Derive from ada_resolvable.
4388 <get_block, resolve>: New methods.
4389 (class ada_funcall_operation): Derive from ada_resolvable.
4390 <resolve>: New method.
4391 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4392 <resolve>: New method.
4393
efe3af2f
TT
43942021-03-08 Tom Tromey <tom@tromey.com>
4395
4396 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4397 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4398 method.
4399 (class ada_funcall_operation): New.
4400
ebc06ad8
TT
44012021-03-08 Tom Tromey <tom@tromey.com>
4402
4403 * ada-lang.c (ada_structop_operation::evaluate): New method.
4404 * ada-exp.h (class ada_structop_operation): New.
4405
e8c33fa1
TT
44062021-03-08 Tom Tromey <tom@tromey.com>
4407
4408 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4409 * ada-exp.h (class ada_unop_ind_operation): New.
4410
065ec826
TT
44112021-03-08 Tom Tromey <tom@tromey.com>
4412
4413 * ada-lang.c (ada_binop_exp): No longer static.
4414 * ada-exp.h (ada_binop_exp_operation): New typedef.
4415
9e99f48f
TT
44162021-03-08 Tom Tromey <tom@tromey.com>
4417
4418 * ada-lang.c (ada_val_atr): No longer static.
4419 (ada_atr_val_operation::evaluate): New method.
4420 * ada-exp.h (class ada_atr_val_operation): New.
4421
7631cf6c
TT
44222021-03-08 Tom Tromey <tom@tromey.com>
4423
4424 * ada-lang.c (ada_pos_atr): No longer static.
4425 * ada-exp.h (ada_pos_operation): New typedef.
4426
7992accc
TT
44272021-03-08 Tom Tromey <tom@tromey.com>
4428
4429 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4430 parameters.
4431 (ada_evaluate_subexp): Use it.
4432
6ad3b8bf
TT
44332021-03-08 Tom Tromey <tom@tromey.com>
4434
4435 * ada-lang.c (ada_binop_minmax): No longer static.
4436 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4437 New typedefs.
4438
3f4a0053
TT
44392021-03-08 Tom Tromey <tom@tromey.com>
4440
4441 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4442 New method.
4443 * ada-exp.h (class ada_var_msym_value_operation): New.
4444
99a3b1e7
TT
44452021-03-08 Tom Tromey <tom@tromey.com>
4446
4447 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4448 (ada_var_value_operation::evaluate): New methods.
4449 * ada-exp.h (class ada_var_value_operation): New.
4450
60fa02ca
TT
44512021-03-08 Tom Tromey <tom@tromey.com>
4452
4453 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4454 * ada-exp.h (class ada_unop_atr_operation): New.
4455
82c3886e
TT
44562021-03-08 Tom Tromey <tom@tromey.com>
4457
4458 * ada-lang.c (ada_binop_in_bounds): No longer static.
4459 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4460
1b1ebfab
TT
44612021-03-08 Tom Tromey <tom@tromey.com>
4462
4463 * ada-lang.c (ada_ternop_slice): No longer static.
4464 * ada-exp.h (class ada_ternop_slice_operation): New.
4465
039e4b76
TT
44662021-03-08 Tom Tromey <tom@tromey.com>
4467
4468 * ada-exp.h (ada_bitwise_operation): New template class.
4469 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4470 (ada_bitwise_xor_operation): New typedefs.
4471
6e8fb7b7
TT
44722021-03-08 Tom Tromey <tom@tromey.com>
4473
4474 * ada-lang.c (ada_equal_binop): No longer static.
4475 * ada-exp.h (class ada_binop_equal_operation): New.
4476
d9e7db06
TT
44772021-03-08 Tom Tromey <tom@tromey.com>
4478
4479 * ada-lang.c (ada_mult_binop): No longer static.
4480 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4481 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4482
73796c73
TT
44832021-03-08 Tom Tromey <tom@tromey.com>
4484
4485 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4486 * ada-exp.h (class ada_binop_addsub_operation): New.
4487
cd9a3148
TT
44882021-03-08 Tom Tromey <tom@tromey.com>
4489
4490 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4491 (ada_resolve_variable): Declare.
4492 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4493 (ada_resolve_variable): New functions.
4494 (resolve_subexp): Update.
4495
cf12b17f
TT
44962021-03-08 Tom Tromey <tom@tromey.com>
4497
4498 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4499 method.
4500 * c-exp.h (class opencl_ternop_cond_operation): New.
4501
944fd3b8
TT
45022021-03-08 Tom Tromey <tom@tromey.com>
4503
4504 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4505 method.
4506 * c-exp.h (class opencl_logical_binop_operation): New.
4507
33b79214
TT
45082021-03-08 Tom Tromey <tom@tromey.com>
4509
4510 * opencl-lang.c (opencl_structop_operation::evaluate): New
4511 method.
4512 * c-exp.h (class opencl_structop_operation): New.
4513
2492ba36
TT
45142021-03-08 Tom Tromey <tom@tromey.com>
4515
4516 * opencl-lang.c (opencl_logical_not): No longer static. Change
4517 parameters.
4518 (evaluate_subexp_opencl): Update.
4519 * c-exp.h (opencl_notequal_operation): New typedef.
4520
a88c3c8d
TT
45212021-03-08 Tom Tromey <tom@tromey.com>
4522
4523 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4524 static. Change parameters.
4525 (eval_opencl_assign): No longer static. Add "op" parameter.
4526 (evaluate_subexp_opencl): Update.
4527 * c-exp.h (opencl_binop_operation): New template class.
4528 (opencl_assign_operation, opencl_equal_operation)
4529 (opencl_notequal_operation, opencl_less_operation)
4530 (opencl_gtr_operation, opencl_geq_operation)
4531 (opencl_leq_operation): New typedefs.
4532
e9677704
TT
45332021-03-08 Tom Tromey <tom@tromey.com>
4534
4535 * opencl-lang.c (opencl_value_cast): No longer static.
4536 * c-exp.h (opencl_cast_type_operation): New typedef.
4537
f403a4e4
TT
45382021-03-08 Tom Tromey <tom@tromey.com>
4539
4540 * f-exp.h (eval_op_f_allocated): Declare.
4541 (fortran_allocated_operation): New typedef.
4542 * f-lang.c (eval_op_f_allocated): No longer static.
4543
eb4c9271
TT
45442021-03-08 Tom Tromey <tom@tromey.com>
4545
4546 * f-lang.c (eval_op_f_associated): New functions.
4547 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4548 typedefs.
4549
58a76c72
TT
45502021-03-08 Tom Tromey <tom@tromey.com>
4551
4552 * f-lang.c (fortran_bound_1arg::evaluate)
4553 (fortran_bound_2arg::evaluate): New methods.
4554 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4555 New.
4556
2f98abe1
TT
45572021-03-08 Tom Tromey <tom@tromey.com>
4558
4559 * expop.h (class unop_addr_operation) <get_expression>: New
4560 method.
4561 * f-lang.c (fortran_undetermined::value_subarray)
4562 (fortran_undetermined::evaluate): New methods.
4563 (fortran_prepare_argument): New overload.
4564 * f-exp.h (class fortran_range_operation)
4565 (class fortran_undetermined): New classes.
4566
638fd74a
TT
45672021-03-08 Tom Tromey <tom@tromey.com>
4568
4569 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4570 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4571 method.
4572
a00b7254
TT
45732021-03-08 Tom Tromey <tom@tromey.com>
4574
4575 * expression.h (class operation) <evaluate_funcall>: New methods.
4576 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4577 (class var_value_operation) <evaluate_funcall>: New method.
4578 (class structop_base_operation) <evaluate_funcall>: New method.
4579 (class var_msym_value_operation) <evaluate_funcall>: New method.
4580 (class structop_member_base): New class.
4581 (class structop_member_operation): Derive from
4582 structop_member_base.
4583 (class structop_mptr_operation): Derive from
4584 structop_member_base.
4585 (class funcall_operation): New class.
4586 * eval.c (operation::evaluate_funcall)
4587 (var_value_operation::evaluate_funcall)
4588 (scope_operation::evaluate_funcall)
4589 (structop_member_base::evaluate_funcall)
4590 (structop_base_operation::evaluate_funcall): New methods.
4591
1c02eb30
TT
45922021-03-08 Tom Tromey <tom@tromey.com>
4593
4594 * expop.h (class array_operation): New.
4595 * eval.c (array_operation::evaluate_struct_tuple)
4596 (array_operation::evaluate): New methods.
4597
e4479080
TT
45982021-03-08 Tom Tromey <tom@tromey.com>
4599
4600 * expop.h (class adl_func_operation): New.
4601 * eval.c (adl_func_operation::evaluate): New method.
4602
95d49dfb
TT
46032021-03-08 Tom Tromey <tom@tromey.com>
4604
4605 * ada-lang.c (ada_unop_in_range): No longer static.
4606 * ada-exp.h (class ada_unop_range_operation): New.
4607
7c15d377
TT
46082021-03-08 Tom Tromey <tom@tromey.com>
4609
4610 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4611 No longer static.
4612 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4613 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4614
5019124b
TT
46152021-03-08 Tom Tromey <tom@tromey.com>
4616
4617 * expop.h (class logical_and_operation)
4618 (class logical_or_operation): New.
4619 * eval.c (logical_and_operation::evaluate)
4620 (logical_or_operation::evaluate): New methods.
4621 * ax-gdb.c (logical_and_operation::do_generate_ax)
4622 (logical_or_operation::do_generate_ax): New methods.
4623
2bc9b40c
TT
46242021-03-08 Tom Tromey <tom@tromey.com>
4625
4626 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4627 static.
4628 * m2-exp.h: New file.
4629
5947d337
TT
46302021-03-08 Tom Tromey <tom@tromey.com>
4631
4632 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4633 * rust-exp.h (class rust_aggregate_operation): New.
4634
e4407a20
TT
46352021-03-08 Tom Tromey <tom@tromey.com>
4636
4637 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4638 No longer static.
4639 * rust-exp.h (class rust_struct_anon): New.
4640 (class rust_structop): New.
4641
9db6b6dd
TT
46422021-03-08 Tom Tromey <tom@tromey.com>
4643
4644 * rust-lang.c (rust_range): No longer static.
4645 * rust-exp.h (class rust_range_operation): New.
4646
6ce1ad67
TT
46472021-03-08 Tom Tromey <tom@tromey.com>
4648
4649 * rust-lang.c (rust_subscript): No longer static.
4650 * rust-exp.h (class rust_subscript_operation): New.
4651
11dd3dce
TT
46522021-03-08 Tom Tromey <tom@tromey.com>
4653
4654 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4655 parameter.
4656 (rust_evaluate_subexp): Update.
4657 * rust-exp.h (class rust_unop_ind_operation): New.
4658
6fab4359
TT
46592021-03-08 Tom Tromey <tom@tromey.com>
4660
4661 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4662 longer static. Add "opcode" parameter.
4663 (rust_evaluate_subexp): Update.
4664 * rust-exp.h: New file.
4665
9dcd3e29
TT
46662021-03-08 Tom Tromey <tom@tromey.com>
4667
4668 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4669 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4670 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4671 (evaluate_subexp_f): Update.
4672 * f-exp.h: New file.
4673
fc715eb2
TT
46742021-03-08 Tom Tromey <tom@tromey.com>
4675
4676 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4677 * ada-exp.h (class ada_ternop_range_operation): New.
4678
cc6bd32e
TT
46792021-03-08 Tom Tromey <tom@tromey.com>
4680
4681 * ada-lang.c (ada_qual_operation::evaluate): New method.
4682 * ada-exp.h (class ada_qual_operation): New.
4683
42fecb61
TT
46842021-03-08 Tom Tromey <tom@tromey.com>
4685
4686 * ada-lang.c (ada_string_operation::evaluate): New method.
4687 * ada-exp.h (class ada_string_operation): New.
4688
03070ee9
TT
46892021-03-08 Tom Tromey <tom@tromey.com>
4690
4691 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4692 * ada-exp.h: New file.
4693
821e72d7
TT
46942021-03-08 Tom Tromey <tom@tromey.com>
4695
4696 * expop.h (class multi_subscript_operation): New.
4697 * eval.c (multi_subscript_operation::evaluate): New method.
4698
085734dd
TT
46992021-03-08 Tom Tromey <tom@tromey.com>
4700
4701 * eval.c (objc_msgcall_operation::evaluate): New method.
4702 * c-exp.h (class objc_msgcall_operation): New.
4703
e82a5afc
TT
47042021-03-08 Tom Tromey <tom@tromey.com>
4705
4706 * expop.h (class var_value_operation): New.
4707 * eval.c (var_value_operation::evaluate)
4708 (var_value_operation::evaluate_for_address)
4709 (var_value_operation::evaluate_with_coercion)
4710 (var_value_operation::evaluate_for_sizeof)
4711 (var_value_operation::evaluate_for_cast): New methods.
4712 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4713
d9ad79d8
TT
47142021-03-08 Tom Tromey <tom@tromey.com>
4715
4716 * expop.h (cxx_cast_ftype): New typedef.
4717 (cxx_cast_operation): New template.
4718 (dynamic_cast_operation, reinterpret_cast_operation): New
4719 typedefs.
4720
292382f4
TT
47212021-03-08 Tom Tromey <tom@tromey.com>
4722
4723 * expop.h (class unop_cast_type_operation): New.
4724 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4725 method.
4726
165a813a
TT
47272021-03-08 Tom Tromey <tom@tromey.com>
4728
4729 * expop.h (class unop_cast_operation): New.
4730 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4731
e5946e16
TT
47322021-03-08 Tom Tromey <tom@tromey.com>
4733
4734 * expop.h (class assign_modify_operation): New.
4735 * eval.c (eval_binop_assign_modify): No longer static.
4736 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4737
40786782
TT
47382021-03-08 Tom Tromey <tom@tromey.com>
4739
4740 * expop.h (class assign_operation): New.
4741 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4742
44b675c8
TT
47432021-03-08 Tom Tromey <tom@tromey.com>
4744
4745 * expop.h (class type_instance_operation): New.
4746 * eval.c (type_instance_operation::evaluate): New method.
4747
f6b42326
TT
47482021-03-08 Tom Tromey <tom@tromey.com>
4749
4750 * expop.h (class op_this_operation): New.
4751 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4752
cbc18219
TT
47532021-03-08 Tom Tromey <tom@tromey.com>
4754
4755 * expop.h (class unop_memval_operation)
4756 (class unop_memval_type_operation): New.
4757 * eval.c (eval_op_memval): No longer static.
4758 (unop_memval_operation::evaluate_for_address)
4759 (unop_memval_type_operation::evaluate_for_address)
4760 (unop_memval_operation::evaluate_for_sizeof)
4761 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4762 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4763 (unop_memval_type_operation::do_generate_ax): New methods.
4764
ae4bb61e
TT
47652021-03-08 Tom Tromey <tom@tromey.com>
4766
4767 * expop.h (class unop_alignof_operation): New.
4768 * eval.c (eval_op_alignof): No longer static.
4769
85d23bda
TT
47702021-03-08 Tom Tromey <tom@tromey.com>
4771
4772 * expop.h (class unop_sizeof_operation): New.
4773 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4774
14aff815
TT
47752021-03-08 Tom Tromey <tom@tromey.com>
4776
4777 * expop.h (class unop_addr_operation): New.
4778 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4779
929f3aa7
TT
47802021-03-08 Tom Tromey <tom@tromey.com>
4781
4782 * expop.h (class typeid_operation): New.
4783
0af8829e
TT
47842021-03-08 Tom Tromey <tom@tromey.com>
4785
4786 * expop.h (class decltype_operation): New.
4787
4efc574c
TT
47882021-03-08 Tom Tromey <tom@tromey.com>
4789
4790 * expop.h (class typeof_operation): New.
4791
5b5f5140
TT
47922021-03-08 Tom Tromey <tom@tromey.com>
4793
4794 * expop.h (class type_operation): New.
4795 * eval.c (eval_op_type): No longer static.
4796
876469ff
TT
47972021-03-08 Tom Tromey <tom@tromey.com>
4798
4799 * expop.h (class unop_ind_base_operation)
4800 (class unop_ind_operation): New.
4801 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4802 (unop_ind_base_operation::evaluate_for_address)
4803 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4804 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4805
6d89e296
TT
48062021-03-08 Tom Tromey <tom@tromey.com>
4807
4808 * expop.h (unop_incr_operation): New template.
4809 (preinc_operation, predec_operation, postinc_operation)
4810 (postdec_operation): New typedefs.
4811 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4812 (eval_op_postdec): No longer static.
4813
9307d17b
TT
48142021-03-08 Tom Tromey <tom@tromey.com>
4815
4816 * expop.h (unary_ftype): New typedef.
4817 (unop_operation, usual_ax_binop_operation): New templates.
4818 (unary_plus_operation, unary_neg_operation)
4819 (unary_complement_operation, unary_logical_not_operation): New
4820 typedefs.
4821 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4822 (eval_op_lognot): No longer static.
4823 * ax-gdb.c (gen_expr_unop): New function.
4824
ae64ba58
TT
48252021-03-08 Tom Tromey <tom@tromey.com>
4826
4827 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4828
d4eff4c1
TT
48292021-03-08 Tom Tromey <tom@tromey.com>
4830
4831 * expop.h (class repeat_operation): New.
4832 * eval.c (eval_op_repeat): No longer static. Remove "op"
4833 parameter.
4834 (evaluate_subexp_standard): Update.
4835 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4836
46916f2b
TT
48372021-03-08 Tom Tromey <tom@tromey.com>
4838
4839 * expop.h (class comparison_operation): New.
4840 (equal_operation, notequal_operation, less_operation)
4841 (gtr_operation, geq_operation, leq_operation): New typedefs.
4842 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4843 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4844
224d6424
TT
48452021-03-08 Tom Tromey <tom@tromey.com>
4846
4847 * expop.h (class subscript_operation): New.
4848 * eval.c (eval_op_subscript): No longer static.
4849
373907ff
TT
48502021-03-08 Tom Tromey <tom@tromey.com>
4851
4852 * expop.h (class binop_operation, class usual_ax_binop_operation):
4853 New.
4854 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4855 (div_operation, rem_operation, lsh_operation, rsh_operation)
4856 (bitwise_and_operation, bitwise_ior_operation)
4857 (bitwise_xor_operation): New typedefs.
4858 * eval.c (eval_op_binary): No longer static.
4859
5133d78b
TT
48602021-03-08 Tom Tromey <tom@tromey.com>
4861
4862 * expop.h (class sub_operation): New.
4863 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4864 (evaluate_subexp_standard): Update.
4865
a94323b6
TT
48662021-03-08 Tom Tromey <tom@tromey.com>
4867
4868 * expop.h (class add_operation): New.
4869 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4870 (evaluate_subexp_standard): Update.
4871
e51e26a0
TT
48722021-03-08 Tom Tromey <tom@tromey.com>
4873
4874 * expop.h (class concat_operation): New.
4875 * eval.c (eval_op_concat): No longer static. Remove "op"
4876 parameter.
4877 (evaluate_subexp_standard): Update.
4878
07f724a8
TT
48792021-03-08 Tom Tromey <tom@tromey.com>
4880
4881 * expop.h (class structop_member_operation)
4882 (class structop_mptr_operation): New.
4883 * eval.c (eval_op_member): No longer static.
4884
ab0609be
TT
48852021-03-08 Tom Tromey <tom@tromey.com>
4886
4887 * expop.h (class structop_ptr_operation): New.
4888 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4889 parameter.
4890
808b22cf
TT
48912021-03-08 Tom Tromey <tom@tromey.com>
4892
4893 * expop.h (class structop_base_operation)
4894 (class structop_operation): New.
4895 * eval.c (eval_op_structop_struct): No longer static.
4896
8cfd3e95
TT
48972021-03-08 Tom Tromey <tom@tromey.com>
4898
4899 * expop.h (class complex_operation): New.
4900
09db3700
TT
49012021-03-08 Tom Tromey <tom@tromey.com>
4902
4903 * eval.c (eval_op_objc_selector): No longer static.
4904 * c-exp.h (class objc_selector_operation): New.
4905
06dc61b9
TT
49062021-03-08 Tom Tromey <tom@tromey.com>
4907
4908 * eval.c: Include c-exp.h.
4909 * c-exp.h (class objc_nsstring_operation): New.
4910
72d0a711
TT
49112021-03-08 Tom Tromey <tom@tromey.com>
4912
4913 * c-lang.c (c_string_operation::evaluate): New method.
4914 * c-exp.h: New file.
4915
9186293f
TT
49162021-03-08 Tom Tromey <tom@tromey.com>
4917
4918 * expop.h (class ternop_cond_operation): New.
4919 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4920
1594e0bb
TT
49212021-03-08 Tom Tromey <tom@tromey.com>
4922
4923 * expop.h (class ternop_slice_operation): New.
4924 * eval.c (eval_op_ternop): No longer static.
4925
b50db09f
TT
49262021-03-08 Tom Tromey <tom@tromey.com>
4927
4928 * expop.h (class string_operation): New.
4929 * eval.c (eval_op_string): No longer static.
4930
e6e01e16
TT
49312021-03-08 Tom Tromey <tom@tromey.com>
4932
4933 * expop.h (class internalvar_operation): New.
4934 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4935
e6985c5e
TT
49362021-03-08 Tom Tromey <tom@tromey.com>
4937
4938 * expop.h (class bool_operation): New.
4939
55bdbff8
TT
49402021-03-08 Tom Tromey <tom@tromey.com>
4941
4942 * expop.h (class register_operation): New.
4943 * eval.c (eval_op_register): No longer static.
4944 * ax-gdb.c (register_operation::do_generate_ax): New method.
4945
247d935b
TT
49462021-03-08 Tom Tromey <tom@tromey.com>
4947
4948 * expop.h (class last_operation): New.
4949
17679395
TT
49502021-03-08 Tom Tromey <tom@tromey.com>
4951
4952 * expop.h (class func_static_var_operation): New.
4953 * eval.c (eval_op_func_static_var): No longer static.
4954
b5cc3923
TT
49552021-03-08 Tom Tromey <tom@tromey.com>
4956
4957 * expop.h (class var_entry_value_operation): New.
4958 * eval.c (eval_op_var_entry_value): No longer static.
4959
0c8effa3
TT
49602021-03-08 Tom Tromey <tom@tromey.com>
4961
4962 * expression.h (class operation) <set_outermost>: New method.
4963 * expop.h (class var_msym_value_operation): New.
4964 * eval.c (eval_op_var_msym_value): No longer static.
4965 (var_msym_value_operation::evaluate_for_address)
4966 (var_msym_value_operation::evaluate_for_sizeof)
4967 (var_msym_value_operation::evaluate_for_cast): New methods.
4968 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4969 method.
4970
d336c29e
TT
49712021-03-08 Tom Tromey <tom@tromey.com>
4972
4973 * expop.h (class long_const_operation): New.
4974 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4975
d5ab122c
TT
49762021-03-08 Tom Tromey <tom@tromey.com>
4977
4978 * expop.h (class scope_operation): New.
4979 * eval.c (eval_op_scope): No longer static.
4980 (scope_operation::evaluate_for_address): New method.
4981 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4982
cae26a0c
TT
49832021-03-08 Tom Tromey <tom@tromey.com>
4984
4985 * expprint.c (float_const_operation::dump): New method.
4986 * expop.h (float_data): New typedef.
4987 (class float_const_operation): New.
4988
75f9892d
TT
49892021-03-08 Tom Tromey <tom@tromey.com>
4990
4991 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4992 * ax-gdb.c (gen_expr_binop): New function.
4993 (gen_expr_structop): Likewise.
4994
de401988
TT
49952021-03-08 Tom Tromey <tom@tromey.com>
4996
4997 * expprint.c (expr::dump_for_expression): New functions.
4998 * expop.h (dump_for_expression): New overloads.
4999 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5000 Update.
5001
e2803273
TT
50022021-03-08 Tom Tromey <tom@tromey.com>
5003
5004 * expression.h (expr::operation): New class.
5005 (expr::make_operation): New function.
5006 (expr::operation_up): New typedef.
5007 * expop.h: New file.
5008 * eval.c (operation::evaluate_for_cast)
5009 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
5010 New methods.
5011 * ax-gdb.c (operation::generate_ax): New method.
5012
e18c58f2
TT
50132021-03-08 Tom Tromey <tom@tromey.com>
5014
5015 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5016 (gen_expr_binop_rest): New overload.
5017
c0d7ed8c
TT
50182021-03-08 Tom Tromey <tom@tromey.com>
5019
5020 * eval.c (eval_multi_subscript): New function.
5021 (evaluate_subexp_standard): Use it.
5022
dd5fd283
TT
50232021-03-08 Tom Tromey <tom@tromey.com>
5024
5025 * ada-lang.c (ada_binop_exp): New function.
5026 (ada_evaluate_subexp): Use it.
5027
3848abd6
TT
50282021-03-08 Tom Tromey <tom@tromey.com>
5029
5030 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
5031 parameters.
5032 (ada_evaluate_subexp): Use it.
5033
38dc70cf
TT
50342021-03-08 Tom Tromey <tom@tromey.com>
5035
5036 * ada-lang.c (ada_binop_minmax): New function.
5037 (ada_evaluate_subexp): Use it.
5038
b84564fc
TT
50392021-03-08 Tom Tromey <tom@tromey.com>
5040
5041 * ada-lang.c (ada_unop_atr): New function.
5042 (ada_evaluate_subexp): Use it.
5043
b467efaa
TT
50442021-03-08 Tom Tromey <tom@tromey.com>
5045
5046 * ada-lang.c (ada_binop_in_bounds): New function.
5047 (ada_evaluate_subexp): Use it.
5048
5ce19db8
TT
50492021-03-08 Tom Tromey <tom@tromey.com>
5050
5051 * ada-lang.c (ada_ternop_slice): New function.
5052 (ada_evaluate_subexp): Use it.
5053
214b13ac
TT
50542021-03-08 Tom Tromey <tom@tromey.com>
5055
5056 * ada-lang.c (ada_equal_binop): New function.
5057 (ada_evaluate_subexp): Use it.
5058
faa1dfd7
TT
50592021-03-08 Tom Tromey <tom@tromey.com>
5060
5061 * ada-lang.c (ada_mult_binop): New function.
5062 (ada_evaluate_subexp): Use it.
5063
d05e24e6
TT
50642021-03-08 Tom Tromey <tom@tromey.com>
5065
5066 * ada-lang.c (ada_abs): New function.
5067 (ada_evaluate_subexp): Use it.
5068
68c75735
TT
50692021-03-08 Tom Tromey <tom@tromey.com>
5070
5071 * ada-lang.c (ada_atr_size): New function.
5072 (ada_evaluate_subexp): Use it.
5073
020dbabe
TT
50742021-03-08 Tom Tromey <tom@tromey.com>
5075
5076 * ada-lang.c (ada_atr_tag): New function.
5077 (ada_evaluate_subexp): Use it.
5078
7efc87ff
TT
50792021-03-08 Tom Tromey <tom@tromey.com>
5080
5081 * ada-lang.c (ada_unop_in_range): New function.
5082 (ada_evaluate_subexp): Use it.
5083
82390ab8
TT
50842021-03-08 Tom Tromey <tom@tromey.com>
5085
5086 * ada-lang.c (ada_unop_neg): New function.
5087 (ada_evaluate_subexp): Use it.
5088
62d4bd94
TT
50892021-03-08 Tom Tromey <tom@tromey.com>
5090
5091 * ada-lang.c (eval_ternop_in_range): New function.
5092 (ada_evaluate_subexp): Use it.
5093
3634f669
TT
50942021-03-08 Tom Tromey <tom@tromey.com>
5095
5096 * opencl-lang.c (eval_opencl_assign): New function.
5097 (evaluate_subexp_opencl): Use it.
5098
5e80600e
TT
50992021-03-08 Tom Tromey <tom@tromey.com>
5100
5101 * eval.c (eval_op_objc_msgcall): New function.
5102 (evaluate_subexp_standard): Use it.
5103
fb5ba2ab
TT
51042021-03-08 Tom Tromey <tom@tromey.com>
5105
5106 * eval.c (eval_binop_assign_modify): New function.
5107 (evaluate_subexp_standard): Use it.
5108
a49881f7
TT
51092021-03-08 Tom Tromey <tom@tromey.com>
5110
5111 * m2-lang.c (eval_op_m2_subscript): New function.
5112 (evaluate_subexp_modula2): Use it.
5113
41bdced5
TT
51142021-03-08 Tom Tromey <tom@tromey.com>
5115
5116 * m2-lang.c (eval_op_m2_high): New function.
5117 (evaluate_subexp_modula2): Use it.
5118
13ea014a
TT
51192021-03-08 Tom Tromey <tom@tromey.com>
5120
5121 * eval.c (evaluate_subexp_for_address_base): New function.
5122 (evaluate_subexp_for_address): Use it.
5123 (evaluate_subexp_for_sizeof_base): New function.
5124 (evaluate_subexp_for_sizeof): Use it.
5125
1fa41fc7
TT
51262021-03-08 Tom Tromey <tom@tromey.com>
5127
5128 * rust-lang.c (eval_op_rust_structop): New function.
5129 (rust_evaluate_subexp): Use it.
5130
575cae23
TT
51312021-03-08 Tom Tromey <tom@tromey.com>
5132
5133 * rust-lang.c (eval_op_rust_struct_anon): New function.
5134 (rust_evaluate_subexp): Use it.
5135
05104233
TT
51362021-03-08 Tom Tromey <tom@tromey.com>
5137
5138 * rust-lang.c (eval_op_rust_array): New function.
5139 (rust_evaluate_subexp): Use it.
5140
6fa9831f
TT
51412021-03-08 Tom Tromey <tom@tromey.com>
5142
5143 * rust-lang.c (eval_op_rust_complement): New function.
5144 (rust_evaluate_subexp): Use it.
5145
d123f9e4
TT
51462021-03-08 Tom Tromey <tom@tromey.com>
5147
5148 * rust-lang.c (eval_op_rust_ind): New function.
5149 (rust_evaluate_subexp): Use it.
5150
984af2cb
TT
51512021-03-08 Tom Tromey <tom@tromey.com>
5152
5153 * rust-lang.c (rust_subscript): Change parameters.
5154 (rust_evaluate_subexp): Update.
5155
d148f803
TT
51562021-03-08 Tom Tromey <tom@tromey.com>
5157
5158 * rust-lang.c (rust_range): Change parameters.
5159 (rust_evaluate_subexp): Update.
5160
9cbd1c20
TT
51612021-03-08 Tom Tromey <tom@tromey.com>
5162
5163 * f-lang.c (eval_op_f_allocated): New function.
5164 (evaluate_subexp_f): Use it.
5165
3c18c49c
TT
51662021-03-08 Tom Tromey <tom@tromey.com>
5167
5168 * f-lang.c (fortran_require_array): New function.
5169 (evaluate_subexp_f): Use it.
5170
216f6fcb
TT
51712021-03-08 Tom Tromey <tom@tromey.com>
5172
5173 * f-lang.c (eval_op_f_kind): New function.
5174 (evaluate_subexp_f): Use it.
5175
00f2db6f
TT
51762021-03-08 Tom Tromey <tom@tromey.com>
5177
5178 * f-lang.c (eval_op_f_cmplx): New function.
5179 (evaluate_subexp_f): Use it.
5180
93b2b5fa
TT
51812021-03-08 Tom Tromey <tom@tromey.com>
5182
5183 * f-lang.c (eval_op_f_modulo): New function.
5184 (evaluate_subexp_f): Use it.
5185
9f1a1f3c
TT
51862021-03-08 Tom Tromey <tom@tromey.com>
5187
5188 * f-lang.c (eval_op_f_floor): New function.
5189 (evaluate_subexp_f): Use it.
5190
3dc41f3c
TT
51912021-03-08 Tom Tromey <tom@tromey.com>
5192
5193 * f-lang.c (eval_op_f_ceil): New function.
5194 (evaluate_subexp_f): Use it.
5195
e08109f2
TT
51962021-03-08 Tom Tromey <tom@tromey.com>
5197
5198 * f-lang.c (eval_op_f_mod): New function.
5199 (evaluate_subexp_f): Use it.
5200
cc05c68e
TT
52012021-03-08 Tom Tromey <tom@tromey.com>
5202
5203 * f-lang.c (eval_op_f_abs): New function.
5204 (evaluate_subexp_f): Use it.
5205
aec95807
TT
52062021-03-08 Tom Tromey <tom@tromey.com>
5207
5208 * eval.c (eval_op_type): New function.
5209 (evaluate_subexp_standard): Use it.
5210
a220ead5
TT
52112021-03-08 Tom Tromey <tom@tromey.com>
5212
5213 * eval.c (eval_op_postdec): New function.
5214 (evaluate_subexp_standard): Use it.
5215
abffe116
TT
52162021-03-08 Tom Tromey <tom@tromey.com>
5217
5218 * eval.c (eval_op_postinc): New function.
5219 (evaluate_subexp_standard): Use it.
5220
9e1361b7
TT
52212021-03-08 Tom Tromey <tom@tromey.com>
5222
5223 * eval.c (eval_op_predec): New file.
5224 (evaluate_subexp_standard): Use it.
5225
00f50884
TT
52262021-03-08 Tom Tromey <tom@tromey.com>
5227
5228 * eval.c (eval_op_preinc): New function.
5229 (evaluate_subexp_standard): Use it.
5230
3aef2a07
TT
52312021-03-08 Tom Tromey <tom@tromey.com>
5232
5233 * eval.c (eval_op_memval): New function.
5234 (evaluate_subexp_standard): Use it.
5235
acee9468
TT
52362021-03-08 Tom Tromey <tom@tromey.com>
5237
5238 * eval.c (eval_op_alignof): New function.
5239 (evaluate_subexp_standard): Use it.
5240
786f70ee
TT
52412021-03-08 Tom Tromey <tom@tromey.com>
5242
5243 * eval.c (eval_op_ind): New function.
5244 (evaluate_subexp_standard): Use it.
5245
24338fb9
TT
52462021-03-08 Tom Tromey <tom@tromey.com>
5247
5248 * eval.c (eval_op_lognot): New function.
5249 (evaluate_subexp_standard): Use it.
5250
1f09ec81
TT
52512021-03-08 Tom Tromey <tom@tromey.com>
5252
5253 * eval.c (eval_op_complement): New function.
5254 (evaluate_subexp_standard): Use it.
5255
606d105f
TT
52562021-03-08 Tom Tromey <tom@tromey.com>
5257
5258 * eval.c (eval_op_neg): New function.
5259 (evaluate_subexp_standard): Use it.
5260
39f288be
TT
52612021-03-08 Tom Tromey <tom@tromey.com>
5262
5263 * eval.c (eval_op_plus): New function.
5264 (evaluate_subexp_standard): Use it.
5265
eed70b1c
TT
52662021-03-08 Tom Tromey <tom@tromey.com>
5267
5268 * eval.c (eval_op_repeat): New function.
5269 (evaluate_subexp_standard): Use it.
5270
60cdd487
TT
52712021-03-08 Tom Tromey <tom@tromey.com>
5272
5273 * eval.c (eval_op_leq): New function.
5274 (evaluate_subexp_standard): Use it.
5275
96e3efd9
TT
52762021-03-08 Tom Tromey <tom@tromey.com>
5277
5278 * eval.c (eval_op_geq): New function.
5279 (evaluate_subexp_standard): Use it.
5280
1f78d732
TT
52812021-03-08 Tom Tromey <tom@tromey.com>
5282
5283 * eval.c (eval_op_gtr): New function.
5284 (evaluate_subexp_standard): Use it.
5285
6cad1349
TT
52862021-03-08 Tom Tromey <tom@tromey.com>
5287
5288 * eval.c (eval_op_less): New function.
5289 (evaluate_subexp_standard): Use it.
5290
1fcb3559
TT
52912021-03-08 Tom Tromey <tom@tromey.com>
5292
5293 * eval.c (eval_op_notequal): New function.
5294 (evaluate_subexp_standard): Use it.
5295
0cc96de8
TT
52962021-03-08 Tom Tromey <tom@tromey.com>
5297
5298 * eval.c (eval_op_equal): New function.
5299 (evaluate_subexp_standard): Use it.
5300
288d26bc
TT
53012021-03-08 Tom Tromey <tom@tromey.com>
5302
5303 * eval.c (eval_op_subscript): New function.
5304 (evaluate_subexp_standard): Use it.
5305
7cdcdd02
TT
53062021-03-08 Tom Tromey <tom@tromey.com>
5307
5308 * eval.c (eval_op_binary): New function.
5309 (evaluate_subexp_standard): Use it.
5310
d9790e22
TT
53112021-03-08 Tom Tromey <tom@tromey.com>
5312
5313 * eval.c (eval_op_sub): New function.
5314 (evaluate_subexp_standard): Use it.
5315
aedaf9ac
TT
53162021-03-08 Tom Tromey <tom@tromey.com>
5317
5318 * eval.c (eval_op_add): New function.
5319 (evaluate_subexp_standard): Use it.
5320
b7a96ed2
TT
53212021-03-08 Tom Tromey <tom@tromey.com>
5322
5323 * eval.c (eval_op_member): New function.
5324 (evaluate_subexp_standard): Use it.
5325
fb461aa3
TT
53262021-03-08 Tom Tromey <tom@tromey.com>
5327
5328 * eval.c (eval_op_structop_ptr): New function.
5329 (evaluate_subexp_standard): Use it.
5330
3e96c4fc
TT
53312021-03-08 Tom Tromey <tom@tromey.com>
5332
5333 * eval.c (eval_op_structop_struct): New function.
5334 (evaluate_subexp_standard): Use it.
5335
f960a617
TT
53362021-03-08 Tom Tromey <tom@tromey.com>
5337
5338 * eval.c (eval_op_ternop): New function.
5339 (evaluate_subexp_standard): Use it.
5340
5c2f201e
TT
53412021-03-08 Tom Tromey <tom@tromey.com>
5342
5343 * eval.c (eval_op_concat): New function.
5344 (evaluate_subexp_standard): Use it.
5345
f871bae1
TT
53462021-03-08 Tom Tromey <tom@tromey.com>
5347
5348 * eval.c (eval_op_objc_selector): New function.
5349 (evaluate_subexp_standard): Use it.
5350
14a1c64a
TT
53512021-03-08 Tom Tromey <tom@tromey.com>
5352
5353 * eval.c (eval_op_string): New function.
5354 (evaluate_subexp_standard): Use it.
5355
ffff730b
TT
53562021-03-08 Tom Tromey <tom@tromey.com>
5357
5358 * eval.c (eval_op_register): New function.
5359 (evaluate_subexp_standard): Use it.
5360
9b1d8af6
TT
53612021-03-08 Tom Tromey <tom@tromey.com>
5362
5363 * eval.c (eval_op_func_static_var): New function.
5364 (evaluate_subexp_standard): Use it.
5365
c0df9289
TT
53662021-03-08 Tom Tromey <tom@tromey.com>
5367
5368 * eval.c (eval_op_var_msym_value): New function.
5369 (evaluate_subexp_standard): Use it.
5370
50b98adc
TT
53712021-03-08 Tom Tromey <tom@tromey.com>
5372
5373 * eval.c (eval_op_var_entry_value): New function.
5374 (evaluate_subexp_standard): Use it.
5375
ea2d29f7
TT
53762021-03-08 Tom Tromey <tom@tromey.com>
5377
5378 * eval.c (eval_op_scope): New function.
5379 (evaluate_subexp_standard): Use it.
5380
01573d73
TT
53812021-03-06 Chernov Sergey <klen_s@mail.ru>
5382
5383 PR gdb/27528:
5384 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5385
9938d15a
TT
53862021-03-06 Tom Tromey <tom@tromey.com>
5387
5388 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5389 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5390 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5391 (locate_dwz_sections, dwz_search_other_debugdirs)
5392 (dwarf2_get_dwz_file): Move to dwz.c.
5393 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5394 read.h.
5395 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5396 (dwarf2_get_dwz_file): Move from read.c.
5397
18035655
TT
53982021-03-06 Tom Tromey <tom@tromey.com>
5399
5400 * debuginfod-support.h: Include scoped_fd.h.
5401
a7308ce0
TT
54022021-03-06 Tom Tromey <tom@tromey.com>
5403
5404 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5405 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5406 (get_abbrev_section_for_cu, read_attribute_value)
5407 (get_debug_line_section): Update.
5408 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5409
fbedd546
TT
54102021-03-06 Tom Tromey <tom@tromey.com>
5411
5412 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5413 method.
5414 * dwarf2/read.c (section_is_p): Remove.
5415 (dwarf2_per_bfd::locate_sections)
5416 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5417 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5418 (dwarf2_locate_common_dwp_sections)
5419 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5420 Update.
5421
c2a62a3d
TT
54222021-03-06 Tom Tromey <tom@tromey.com>
5423
5424 * xcoffread.c: Include sect-names.h.
5425 * symfile.h (struct dwarf2_section_names, struct
5426 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5427 * dwarf2/sect-names.h: New file, from symfile.h.
5428 * dwarf2/read.c: Include sect-names.h.
5429
4444f407
TT
54302021-03-06 Tom Tromey <tom@tromey.com>
5431
5432 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5433 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5434 (abbrev_table::read): Update.
5435 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5436 (struct abbrev_info): Reformat.
5437 <attrs>: Now an array.
5438 (struct abbrev_table) <alloc_abbrev>: Remove.
5439
dd99cf0c
WP
54402021-03-06 Weimin Pan <weimin.pan@oracle.com>
5441
5442 * ctfread.c (ctf_psymtab_add_enums): New function.
5443 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5444
844be3f2
WP
54452021-03-06 Weimin Pan <weimin.pan@oracle.com>
5446
5447 * ctfread.c (read_func_kind_type): Set up function arguments.
5448
b2668f28
AB
54492021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5450 Andrew Burgess <andrew.burgess@embecosm.com>
5451
5452 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5453 includes.
5454 (riscv_csrset): New static global.
5455 (riscv_update_csrmap): New function.
5456 (riscv_iterate_over_regset_sections): Process CSRs.
5457
d782d24b
AB
54582021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5459
5460 * riscv-tdep.c (riscv_feature_name_csr): Define.
5461 (riscv_feature_name_cpu): Define.
5462 (riscv_feature_name_fpu): Define.
5463 (riscv_feature_name_virtual): Define.
5464 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5465 (riscv_freg_feature): Use riscv_feature_name_fpu.
5466 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5467 (riscv_csr_feature): Use riscv_feature_name_csr.
5468 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5469
fb8f3fc0
AB
54702021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5471 Craig Blackmore <craig.blackmore@embecosm.com>
5472
5473 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5474 (ALLDEPFILES): Add riscv-none-tdep.c.
5475 * configure: Regenerate.
5476 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5477 support.
5478 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5479 * elf-none-tdep.c: New file.
5480 * elf-none-tdep.h: New file.
5481 * riscv-none-tdep.c: New file.
5482
95ce627a
AB
54832021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5484 Andrew Burgess <andrew.burgess@embecosm.com>
5485
5486 * corelow.c: Add 'xml-tdesc.h' include.
5487 (core_target::read_description): Load the target description from
5488 the core file when possible.
5489 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5490 note.
5491 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5492 (gcore_elf_make_tdesc_note): New function.
5493 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5494 * linux-tdep.c (linux_make_corefile_notes): Add target description
5495 note.
5496
f3a5df7b
AB
54972021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5498
5499 * Makefile.in (SFILES): Add gcore-elf.c.
5500 (HFILES_NO_SRCDIR): Add gcore-elf.h
5501 * configure: Regenerate.
5502 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5503 support.
5504 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5505 (struct fbsd_collect_regset_section_cb_data): Delete.
5506 (fbsd_collect_regset_section_cb): Delete.
5507 (fbsd_collect_thread_registers): Delete.
5508 (struct fbsd_corefile_thread_data): Delete.
5509 (fbsd_corefile_thread): Delete.
5510 (fbsd_make_corefile_notes): Call
5511 gcore_elf_build_thread_register_notes instead of the now deleted
5512 FreeBSD code.
5513 * gcore-elf.c: New file, the content was moved here from
5514 linux-tdep.c, functions were renamed and given minor cleanup.
5515 * gcore-elf.h: New file.
5516 * gcore.c (gcore_find_signalled_thread): Moved here from
5517 linux-tdep.c and given a new name. Minor cleanups.
5518 * gcore.h (gcore_find_signalled_thread): Declare.
5519 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5520 (struct linux_collect_regset_section_cb_data): Delete.
5521 (linux_collect_regset_section_cb): Delete.
5522 (linux_collect_thread_registers): Delete.
5523 (linux_corefile_thread): Call
5524 gcore_elf_build_thread_register_notes.
5525 (find_signalled_thread): Delete.
5526 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5527
d1e93af6
SM
55282021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5529
5530 PR gdb/27147
5531 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5532 process_stratum_target parameter,
5533 sparc_store_inferior_registers): update callers.
5534 * sparc-nat.c (sparc_fetch_inferior_registers,
5535 sparc_store_inferior_registers): Add process_stratum_target
5536 parameter. Switch current thread before calling
5537 sparc_supply_gregset / sparc_collect_rwindow.
5538 (sparc_store_inferior_registers): Likewise.
5539 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5540 (sparc32obsd_collect_uthread): Likewise.
5541 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5542 Add assertion.
5543 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5544 sparc64obsd_supply_uthread): Add assertion.
5545
1178743e
TT
55462021-03-04 Tom Tromey <tromey@adacore.com>
5547
5548 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5549 (aux_add_nonlocal_symbols): Update.
5550 (ada_add_block_symbols): Change "found_sym" to bool.
5551
1bfa81ac
TT
55522021-03-03 Tom Tromey <tromey@adacore.com>
5553
5554 * ada-lang.c (ada_resolve_function): Update comment.
5555 (is_nonfunction, add_symbols_from_enclosing_procs)
5556 (remove_extra_symbols): Likewise.
5557 (struct match_data): Add constructor, initializers.
5558 (add_nonlocal_symbols): Remove memset.
5559 (aux_add_nonlocal_symbols): Update comment.
5560 (ada_add_block_renamings, add_nonlocal_symbols)
5561 (ada_add_all_symbols): Likewise.
5562 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5563
bbcdf9ab
TT
55642021-03-02 Tom Tromey <tromey@adacore.com>
5565
5566 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5567 (cast_to_gnat_encoded_fixed_point_type): Remove.
5568 (ada_value_cast, ada_evaluate_subexp): Update.
5569 (gnat_encoded_fixed_point_type_info)
5570 (ada_is_gnat_encoded_fixed_point_type)
5571 (gnat_encoded_fixed_point_delta)
5572 (gnat_encoded_fixed_point_scaling_factor): Remove.
5573 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5574 (gnat_encoded_fixed_point_delta)
5575 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5576 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5577 (ada_print_type): Update.
5578 * ada-valprint.c (ada_value_print_num): Update.
5579 * dwarf2/read.c (ada_get_gnat_encoded_number)
5580 (ada_get_gnat_encoded_ratio): New functions.
5581 (finish_fixed_point_type): Use them. Add parameters.
5582 (GNAT_FIXED_POINT_SUFFIX): New define.
5583 (gnat_encoded_fixed_point_type_info): New function.
5584 (read_base_type): Handle gnat encodings.
5585
5f9febe0
TT
55862021-03-02 Tom Tromey <tromey@adacore.com>
5587
5588 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5589 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5590 std::string.
5591 (GROW_VECT): Remove.
5592 (grow_vect): Remove.
5593
d1183b06
TT
55942021-03-02 Tom Tromey <tromey@adacore.com>
5595
5596 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5597 * ada-lang.c (resolve_subexp): Update.
5598 (ada_resolve_function): Accept a vector.
5599 (is_nonfunction, add_defn_to_vec)
5600 (add_symbols_from_enclosing_procs): Likewise.
5601 (num_defns_collected, defns_collected): Remove.
5602 (remove_extra_symbols): Return a vector.
5603 (remove_irrelevant_renamings): Return void.
5604 (ada_add_local_symbols): Accept a vector.
5605 (struct match_data) <obstackp>: Remove.
5606 <resultp>: New member.
5607 (aux_add_nonlocal_symbols): Update.
5608 (ada_add_block_renamings, add_nonlocal_symbols)
5609 (ada_add_all_symbols): Accept a vector.
5610 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5611 vector.
5612 (ada_lookup_symbol): Update.
5613 (ada_add_block_symbols): Accept a vector.
5614 (get_var_value, iterate_over_symbols): Update.
5615 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5616 Update.
5617
886d459f
TT
56182021-03-02 Tom Tromey <tromey@adacore.com>
5619
5620 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5621
bdcccc56
TT
56222021-03-02 Tom Tromey <tromey@adacore.com>
5623
5624 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5625 auto_obstack.
5626 <root>: Initialize.
5627 (ada_pspace_data): Remove destructor.
5628 <sym_cache>: Now a unique_ptr.
5629 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5630 (ada_get_symbol_cache): Use 'new'.
5631 (ada_clear_symbol_cache): Rewrite.
5632
1228719f
TT
56332021-03-02 Tom Tromey <tromey@adacore.com>
5634
5635 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5636 is null.
5637
bb3a4efe
LS
56382021-02-27 Lancelot Six <lsix@lancelotsix.com>
5639
5640 PR gdb/27393
5641 * source.c (add_path): Skip empty dirnames.
5642
26b43ca6 56432021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5644
5645 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5646 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5647
dffdd8b5
SM
56482021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5649
5650 PR gdb/26861
5651 * target.c (target_mourn_inferior): Only compare pids in
5652 target_mourn_inferior.
5653
64d38fdd
JM
56542021-02-25 Jan Matyas <jmatyas@codasip.com>
5655
5656 PR gdb/26819
5657 * remote.c (remote_target::start_remote): Ensure the single
5658 thread, automatically added for remote targets without the
5659 concept of threading, is initially in set to the "resumed"
5660 state.
5661 * remote.c (remote_target::add_current_inferior_and_thread):
5662 Add return value - return the main thread.
5663
2450ad54
JV
56642021-02-25 Jan Vrany <jan.vrany@labware.com>
5665
5666 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5667 (mi_tsv_created): Likewise.
5668 (mi_tsv_deleted): Likewise.
5669
30c80d88
TV
56702021-02-25 Tom de Vries <tdevries@suse.de>
5671
5672 PR symtab/27354
5673 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5674 section_kind for &dwo_file->sections.info.
5675
68337b8b
AB
56762021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 PR fortran/26155
5679 * f-lang.c (fortran_argument_convert): Delete declaration.
5680 (fortran_prepare_argument): New function.
5681 (evaluate_subexp_f): Move logic to new function
5682 fortran_prepare_argument.
5683
faeb9f13
AB
56842021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5685
5686 * f-exp.y (f77_keywords): Add 'associated'.
5687 * f-lang.c (fortran_associated): New function.
5688 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5689 (operator_length_f): Likewise.
5690 (print_unop_or_binop_subexp_f): New function.
5691 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5692 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5693 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5694 (operator_check_f): Likewise.
5695 * std-operator.def: Add FORTRAN_ASSOCIATED.
5696
170f4b23
AB
56972021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5698
5699 * f-exp.y (fortran_operators): Add ".xor.".
5700
aa659cfa
TV
57012021-02-24 Tom de Vries <tdevries@suse.de>
5702
5703 PR symtab/27336
5704 * dwarf2/attribute.c (attribute::form_is_signed): New function
5705 factored out of ...
5706 * dwarf2/attribute.h (attribute::as_signed): ... here.
5707 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5708 (attribute::form_is_signed): Declare.
5709 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5710 for DW_AT_decl_file.
5711
268c77c1
KB
57122021-02-24 Kevin Buettner <kevinb@redhat.com>
5713
5714 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5715 order for <sys/ptrace.h> and <asm/ptrace.h>.
5716
665af52e
KB
57172021-02-24 Kevin Buettner <kevinb@redhat.com>
5718
5719 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5720 <sys/ptrace.h>.
5721
dd80d750
AB
57222021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5723
5724 * exec.c (set_section_command): Move variable declarations into
5725 the function body, and use std::string instead of a fixed size
5726 buffer.
5727
336aa7b7
AB
57282021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5729
5730 * exec.c (exec_target::get_section_table): Delete member function.
5731 (section_table_read_available_memory): Use current_top_target, not
5732 just the exec_ops target.
5733 * target-delegates.c: Regenerate.
5734 * target.c (default_get_section_table): New function.
5735 * target.h (target_ops::get_section_table): Change default
5736 behaviour to call default_get_section_table.
5737 (default_get_section_table): Declare.
5738
02f7d26b
AB
57392021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5740
5741 * exec.c (exec_target::close): Call new clear_target_sections
5742 function.
5743 (program_space::add_target_sections): Update name of member
5744 variable.
5745 (program_space::add_target_sections): Update name of member
5746 variable.
5747 (program_space::remove_target_sections): Likewise.
5748 (exec_one_fork): Use new target_sections member function.
5749 (exec_target::get_section_table): Likewise.
5750 (exec_target::files_info): Likewise.
5751 (set_section_command): Likewise.
5752 (exec_set_section_address): Likewise.
5753 (exec_target::has_memory): Use new target_sections member
5754 function.
5755 * progspace.h (program_space::clear_target_sections): New member
5756 function.
5757 (program_space::target_sections): Rename member variable to
5758 m_target_sections, replace with a new member function.
5759 (program_space::m_target_sections): New member variable.
5760 * solib-dsbt.c (scan_dyntag): Use new member function.
5761 * solib-svr4.c (scan_dyntag): Likewise.
5762
19cf757a
AB
57632021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5764
5765 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5766 return type const.
5767 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5768 (section_table_read_available_memory): Make local const.
5769 (exec_target::xfer_partial): Make local const.
5770 (print_section_info): Make parameter const.
5771 * gdb/exec.h (print_section_info): Likewise.
5772 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5773 const.
5774 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5775 Likewise.
5776 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5777 Likewise.
5778 * gdb/s390-tdep.c (s390_load): Likewise.
5779 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5780 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5781 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5782 Rename to...
5783 (target_debug_print_const_target_section_table_p): ...this.
5784 * gdb/target-delegates.c: Regenerate.
5785 * gdb/target.c (target_get_section_table): Make return type const.
5786 (target_section_by_addr): Likewise. Also make some locals const.
5787 (memory_xfer_partial_1): Make some locals const.
5788 * gdb/target.h (struct target_ops) <get_section_table>: Make
5789 return type const.
5790 (target_section_by_addr): Likewise.
5791 (target_get_section_table): Likewise.
5792
02a79309
AB
57932021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5794
5795 * NEWS: Mention new 'maint info target-sections' command.
5796 * maint.c (maintenance_info_target_sections): New function.
5797 (_initialize_maint_cmds): Register new command.
5798
895b7b4e
AB
57992021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5800
5801 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5802 (riscv_features_from_bfd): ...this. Change parameter type to
5803 'bfd*', and update as required.
5804 (riscv_find_default_target_description): Update call to
5805 riscv_features_from_bfd. Select a default xlen based on
5806 info.bfd_arch_info.
5807 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5808
bc3c0632
AB
58092021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5810
5811 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5812 dynamic types in UNOP_IND.
5813
08ac5771
SM
58142021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5815
5816 PR gdb/26828
5817 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5818 Instantiate queue.
5819 (~dwarf2_queue_guard): Clear queue.
5820 (queue_comp_unit): Assert that queue is
5821 instantiated.
5822 (process_queue): Adjust.
5823 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5824
616c069a
SM
58252021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5826
5827 PR gdb/26828
5828 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5829 to decide whether or not to enqueue it for expansion.
5830 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5831 after calling maybe_queue_comp_unit.
5832
897608ed
SM
58332021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5834
5835 * linux-nat.c (linux_nat_filter_event): Return void.
5836
15908a11
TT
58372021-02-22 Tom Tromey <tromey@adacore.com>
5838
5839 * solib-svr4.c (enable_break): Update.
5840 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5841 type.
5842 (target_bfd_reopen): Change parameter type.
5843 * bfd-target.h (target_bfd_reopen): Change parameter type.
5844
f53fc427
SM
58452021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5846
5847 * thread.c (add_thread_silent): Add assert.
5848 (find_thread_ptid): Add assert.
5849
de146e19
SM
58502021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5851
5852 PR gdb/27435
5853 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5854 (target_unpush_up): Likewise.
5855 * procfs.c (procfs_target::attach): Push target early. Use
5856 target_unpush_up to unpush target in case of error.
5857 * target.h (struct target_unpusher): Move here.
5858 (target_unpush_up): Likewise.
5859
8488c357
KB
58602021-02-19 Kevin Buettner <kevinb@redhat.com>
5861
5862 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5863 (which in turn includes <gnulib/config.h>) before include
5864 of <signal.h>.
5865
5a9f5403
NC
58662021-02-19 Nelson Chu <nelson.chu@sifive.com>
5867
5868 PR 27158
5869 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5870 (decode_j_type_insn): Likewise.
5871 (decode_cj_type_insn): Likewise.
5872 (decode_b_type_insn): Likewise.
5873 (decode): Likewise.
5874
26f53cd3
TT
58752021-02-18 Tom Tromey <tom@tromey.com>
5876
5877 * expression.h (struct expression) <evaluate>: Declare method.
5878 * eval.c (evaluate_subexp): Simplify.
5879 (expression::evaluate): New method.
5880 (evaluate_expression, evaluate_type): Use expression::evaluate.
5881
6a780b67
KB
58822021-02-17 Kevin Buettner <kevinb@redhat.com>
5883
5884 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5885 to accessing it.
5886 (ada_lookup_name_info): Likewise.
5887
adeab0c5
MF
58882021-02-13 Mike Frysinger <vapier@gentoo.org>
5889
5890 * aclocal.m4: Regenerate.
5891
089436f7
TV
58922021-02-12 Tom de Vries <tdevries@suse.de>
5893
5894 PR threads/26228
5895 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5896 (lin_thread_signals): New static var.
5897 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5898 New function.
5899 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5900 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5901 Declare.
5902 * linux-thread-db.c (check_thread_signals): Use
5903 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5904
96df3e28
AB
59052021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5906
5907 * f-exp.y (f77_keywords): Add allocated.
5908 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5909 (operator_length_f): Likewise.
5910 (print_subexp_f): Likewise.
5911 (dump_subexp_body_f): Likewise.
5912 (operator_check_f): Likewise.
5913 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5914
05f68f52
TV
59152021-02-11 Tom de Vries <tdevries@suse.de>
5916
5917 PR symtab/27353
5918 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5919 Return true for DW_FORM_strx.
5920
b260f8d6
TT
59212021-02-11 Tom Tromey <tromey@adacore.com>
5922
5923 PR gdb/27383:
5924 * parse.c (write_exp_symbol_reference): Write sym.block.
5925
bf3386f0
AB
59262021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * NEWS: Mention changes to 'maint info sections'.
5929 * maint.c (match_substring): Return a bool, fix whitespace issue.
5930 (struct single_bfd_flag_info): New struct.
5931 (bfd_flag_info): New static global.
5932 (match_bfd_flags): Return a bool, use bfd_flag_info.
5933 (print_bfd_flags): Use bfd_flag_info.
5934 (maint_print_section_info): Delete trailing whitespace.
5935 (struct maint_info_sections_opts): New struct.
5936 (maint_info_sections_option_defs): New static global.
5937 (maint_info_sections_completer): New function.
5938 (maintenance_info_sections): Use option parsing mechanism.
5939 (_initialize_maint_cmds): Update command help text for 'maint info
5940 sections' and register a command completer.
5941
4790db14
AB
59422021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5943
5944 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5945 functionality merged into...
5946 (maint_print_all_sections): ...this new function.
5947 (maintenance_info_sections): Make use of maint_print_all_sections,
5948 allow all objects to be printed even where there's no executable.
5949
1db66e34
AB
59502021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5951
5952 * breakpoint.c (resolve_sal_pc): Make use of
5953 bound_minimal_symbol::obj_section.
5954 * maint.c (maintenance_translate_address): Likewise.
5955 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5956 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5957 member function.
5958 * printcmd.c (info_address_command): Make use of
5959 bound_minimal_symbol::obj_section.
5960
18b8df43
AM
59612021-02-11 Alan Modra <amodra@gmail.com>
5962
5963 * arm-symbian-tdep.c: Delete.
5964 * NEWS: Mention arm-symbian removal.
5965 * Makefile.in: Remove arm-symbian-tdep entries.
5966 * configure.tgt: Remove arm*-*-symbianelf*.
5967 * doc/gdb.texinfo: Remove mention of SymbianOS.
5968 * osabi.c (gdb_osabi_names): Remove "Symbian".
5969 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5970 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5971 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5972 handling.
5973 * testsuite/gdb.base/dup-sect.exp: Likewise.
5974 * testsuite/gdb.base/long_long.exp: Likewise.
5975 * testsuite/gdb.base/solib-weak.exp: Likewise.
5976 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5977 * testsuite/gdb.python/py-section-script.exp: Likewise.
5978 * testsuite/lib/dwarf.exp: Likewise.
5979 * testsuite/lib/gdb.exp: Likewise.
5980
e92c8eb8
AB
59812021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5982
5983 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5984 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5985 (one_or_two_args): New pattern.
5986 (f77_keywords): Add lbound and ubound.
5987 * f-lang.c (fortran_bounds_all_dims): New function.
5988 (fortran_bounds_for_dimension): New function.
5989 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5990 (operator_length_f): Likewise.
5991 (print_subexp_f): Likewise.
5992 (dump_subexp_body_f): Likewise.
5993 (operator_check_f): Likewise.
5994 * std-operator.def (FORTRAN_LBOUND): Define.
5995 (FORTRAN_UBOUND): Define.
5996
a52d653e
AB
59972021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5998
5999 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6000 and set_section_index member functions where appropriate.
6001 * coffread.c (coff_symtab_read): Likewise.
6002 (process_coff_symbol): Likewise.
6003 * ctfread.c (set_symbol_address): Likewise.
6004 * dwarf2/read.c (add_partial_symbol): Likewise.
6005 (var_decode_location): Likewise.
6006 * language.c: Likewise.
6007 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
6008 (compact_minimal_symbols): Likewise.
6009 (minimal_symbol_upper_bound): Likewise.
6010 * objfiles.c (relocate_one_symbol): Likewise.
6011 * psympriv.h (partial_symbol::obj_section): Likewise.
6012 (partial_symbol::address): Likewise.
6013 * psymtab.c (partial_symtab::add_psymbol): Likewise.
6014 * stabsread.c (scan_file_globals): Likewise.
6015 * symmisc.c (dump_msymbols): Likewise.
6016 * symtab.c (general_symbol_info::obj_section): Likewise.
6017 (fixup_section): Likewise.
6018 (get_msymbol_address): Likewise.
6019 * symtab.h (general_symbol_info::section): Rename to...
6020 (general_symbol_info::m_section): ...this.
6021 (general_symbol_info::set_section_index): New member function.
6022 (general_symbol_info::section_index): Likewise.
6023 (SYMBOL_SECTION): Delete.
6024 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6025 set_section_index member functions where appropriate.
6026 (MSYMBOL_SECTION): Delete.
6027 (symbol::symbol): Update to initialize 'm_section'.
6028 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6029 (process_xcoff_symbol): Likewise.
6030
ebbc3a7d
AB
60312021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6034 MSYMBOL_OBJ_SECTION.
6035 * findvar.c (language_defn::read_var_value): Likewise.
6036 * infcmd.c (jump_command): Likewise.
6037 * linespec.c (minsym_found): Likewise.
6038 * maint.c (maintenance_translate_address): Likewise.
6039 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6040 (minimal_symbol_upper_bound): Likewise.
6041 * parse.c (find_minsym_type_and_address): Likewise.
6042 (operator_check_standard): Likewise.
6043 * printcmd.c (info_address_command): Likewise.
6044 * symmisc.c (dump_msymbols): Likewise.
6045 (print_symbol): Likewise.
6046 * symtab.c (general_symbol_info::obj_section): Define new
6047 function.
6048 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6049 (find_pc_sect_compunit_symtab): Likewise.
6050 (find_function_start_sal): Likewise.
6051 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6052 MSYMBOL_OBJ_SECTION.
6053 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6054 function.
6055 (SYMBOL_OBJ_SECTION): Delete.
6056 (MSYMBOL_OBJ_SECTION): Delete.
6057
9bb305b3
TT
60582021-02-09 Tom Tromey <tom@tromey.com>
6059
6060 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6061
cf2b2075
TV
60622021-02-09 Tom de Vries <tdevries@suse.de>
6063
6064 PR symtab/27341
6065 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6066 construct an array type. Add assert to ensure that element_type is
6067 not being modified.
6068
03642b71
AB
60692021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6070
6071 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6072 (gcore_collect_regset_section_cb): Delete.
6073 (gcore_collect_thread_registers): Delete.
6074 (gcore_build_thread_register_notes): Delete.
6075 (gcore_find_signalled_thread): Delete.
6076 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6077 'gdbarch' and 'thread_info' declarations.
6078 (gcore_build_thread_register_notes): Delete declaration.
6079 (gcore_find_signalled_thread): Likewise.
6080 * fbsd-tdep.c: Remove 'gcore.h' include.
6081 (struct fbsd_collect_regset_section_cb_data): New struct.
6082 (fbsd_collect_regset_section_cb): New function.
6083 (fbsd_collect_thread_registers): New function.
6084 (struct fbsd_corefile_thread_data): New struct.
6085 (fbsd_corefile_thread): New function.
6086 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6087 * linux-tdep.c: Remove 'gcore.h' include.
6088 (struct linux_collect_regset_section_cb_data): New struct.
6089 (linux_collect_regset_section_cb): New function.
6090 (linux_collect_thread_registers): New function.
6091 (linux_corefile_thread): Call Linux specific code.
6092 (find_signalled_thread): New function.
6093 (linux_make_corefile_notes): Call find_signalled_thread.
6094
f73e424f
TT
60952021-02-09 Tom Tromey <tromey@adacore.com>
6096
6097 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6098 not_lval value.
6099 * value.c (value_contents_copy_raw): Now static.
6100 * value.h (value_contents_copy_raw): Don't declare.
6101
a4f0544b
TT
61022021-02-09 Tom Tromey <tromey@adacore.com>
6103
6104 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6105 fields.
6106
9b3e4b5d
SV
61072021-02-08 Shahab Vahedi <shahab@synopsys.com>
6108
6109 PR tdep/27369
6110 * arc-linux-tdep.c (handle_atomic_sequence): New.
6111 (arc_linux_software_single_step): Call handle_atomic_sequence().
6112
29db1eb3
AB
61132021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6114
6115 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6116 function.
6117 (REQUIRE_WINDOW): Call is_valid member function.
6118 (REQUIRE_WINDOW_FOR_SETTER): New define.
6119 (gdbpy_tui_is_valid): Call is_valid member function.
6120 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6121 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6122 tui_active too.
6123 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6124 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6125 the function.
6126
e0c23e11
AB
61272021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6128
6129 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6130 for the title is not nullptr.
6131
1cf23996
AB
61322021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * tui-layout.c (saved_tui_windows): Delete.
6135 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6136 call new get_windows member function instead.
6137 (tui_get_window_by_name): Check in tui_windows.
6138 (tui_layout_window::apply): Don't add to tui_windows.
6139 * tui-layout.h (tui_layout_base::get_windows): New member function.
6140 (tui_layout_window::get_windows): Likewise.
6141 (tui_layout_split::get_windows): Likewise.
6142
a53a2657
AB
61432021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6144
6145 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6146 of the window objects.
6147
2708dbbd
AB
61482021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6149
6150 * python/python.c (gdbpy_print_stack): Reformat an error message.
6151
cd074e04
AB
61522021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 * tui/tui-interp.c (tui_command_line_handler): New function.
6155 (tui_interp::resume): Register tui_command_line_handler as the
6156 input_handler.
6157 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6158 function.
6159 (tui_getc_1): Delete handling of '\n' and '\r'.
6160 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6161
4cf28e91
HD
61622021-02-07 Hannes Domani <ssbssa@yahoo.de>
6163
6164 * tui/tui-regs.c (tui_data_window::display_registers_from):
6165 Mark invisible register sub windows.
6166 (tui_data_window::check_register_values): Ignore invisible
6167 register sub windows.
6168
3537bc23
HD
61692021-02-07 Hannes Domani <ssbssa@yahoo.de>
6170
6171 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6172 n_spaces with a negative value.
6173
5fc2d6aa
HD
61742021-02-07 Hannes Domani <ssbssa@yahoo.de>
6175
6176 * tui/tui-regs.c (tui_data_window::display_registers_from):
6177 Add refresh_window call.
6178
83962f83
HD
61792021-02-07 Hannes Domani <ssbssa@yahoo.de>
6180
6181 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6182
0110ec82
SM
61832021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6184
6185 * symmisc.c (std_in, std_out, std_err): Remove.
6186 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6187
7c6944ab
TV
61882021-02-05 Tom de Vries <tdevries@suse.de>
6189
6190 PR breakpoints/27330
6191 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6192 glibc object file has debug info.
6193
e77b0004
TV
61942021-02-05 Tom de Vries <tdevries@suse.de>
6195
6196 PR symtab/27333
6197 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6198
0e857c82
TV
61992021-02-05 Tom de Vries <tdevries@suse.de>
6200
6201 PR breakpoints/27313
6202 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6203 syscall numbers.
6204
bdfea17e
TT
62052021-02-05 Tom Tromey <tom@tromey.com>
6206
6207 * compile/compile-c-support.c (get_compile_context)
6208 (c_get_compile_context, cplus_get_compile_context): Change return
6209 type.
6210 * language.c (language_defn::get_compile_instance): New method.
6211 * language.h (language_defn::get_compile_instance): Change return
6212 type. No longer inline.
6213 * c-lang.c (c_language::get_compile_instance): Change return type.
6214 (cplus_language::get_compile_instance): Change return type.
6215 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6216 Change return type.
6217 * compile/compile.c (compile_to_object): Update.
6218
1b30f421
TT
62192021-02-05 Tom Tromey <tom@tromey.com>
6220
6221 * parser-defs.h (write_exp_symbol_reference): Declare.
6222 * parse.c (write_exp_symbol_reference): New function.
6223 * p-exp.y (variable): Use write_exp_symbol_reference.
6224 * m2-exp.y (variable): Use write_exp_symbol_reference.
6225 * f-exp.y (variable): Use write_exp_symbol_reference.
6226 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6227 * c-exp.y (variable): Use write_exp_symbol_reference.
6228
ae710496
TV
62292021-02-05 Tom de Vries <tdevries@suse.de>
6230
6231 PR exp/27265
6232 * valarith.c (complex_binop): Throw an error if complex type can't
6233 be created.
6234
d3b54e63
TV
62352021-02-05 Tom de Vries <tdevries@suse.de>
6236
6237 PR symtab/27307
6238 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6239 return.
6240
fc9a13fb
TV
62412021-02-05 Tom de Vries <tdevries@suse.de>
6242
6243 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6244
04b4939b
MF
62452021-02-04 Mike Frysinger <vapier@gentoo.org>
6246
6247 * configure.tgt (riscv*-*-*): Set gdb_sim.
6248
6ff267e1
SM
62492021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6250
6251 * target.c (target_is_non_stop_p): Return bool.
6252 * target.h (target_is_non_stop_p): Return bool.
6253
fdbc5215
SM
62542021-02-04 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * record-full.c (record_full_async_inferior_event_handler):
6257 Don't clear async event handler.
6258 (record_full_base_target::wait): Clear async event handler at
6259 beginning.
6260
85d3ad8e
SM
62612021-02-04 Simon Marchi <simon.marchi@efficios.com>
6262
6263 * record-btrace.c (record_btrace_handle_async_inferior_event):
6264 Don't clear async event handler.
6265 (record_btrace_target::wait): Clear async event handler at
6266 beginning.
6267
baa8575b
SM
62682021-02-04 Simon Marchi <simon.marchi@efficios.com>
6269
6270 * remote.c (remote_target::wait): Clear async event handler at
6271 beginning, mark if needed at the end.
6272 (remote_async_inferior_event_handler): Don't set or clear async
6273 event handler.
6274
6b36ddeb
SM
62752021-02-04 Simon Marchi <simon.marchi@efficios.com>
6276
6277 * async-event.h (async_event_handler_func): Add documentation.
6278 * async-event.c (check_async_event_handlers): Don't clear
6279 async_event_handler ready flag.
6280 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6281 flag.
6282 * record-btrace.c (record_btrace_handle_async_inferior_event):
6283 Likewise.
6284 * record-full.c (record_full_async_inferior_event_handler):
6285 Likewise.
6286 * remote-notif.c (remote_async_get_pending_events_handler):
6287 Likewise.
6288 * remote.c (remote_async_inferior_event_handler): Likewise.
6289
72d383bb
SM
62902021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6291
6292 * infrun.c (handle_inferior_event): Move stop_soon variable to
6293 inner scope.
6294
408f6686
PA
62952021-02-03 Pedro Alves <pedro@palves.net>
6296
6297 * infcmd.c (detach_command): Hold strong reference to target, and
6298 if all-stop on entry, restart threads on exit.
6299 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6300 (restart_stepped_thread): ... this new function. Also handle
6301 trap_expected.
6302 (restart_after_all_stop_detach): New function.
6303 * infrun.h (restart_after_all_stop_detach): Declare.
6304
ac7d717c
PA
63052021-02-03 Pedro Alves <pedro@palves.net>
6306
6307 * infrun.c (struct step_over_info): Initialize fields.
6308 (prepare_for_detach): Handle ongoing in-line step over.
6309
e87f0fe8
PA
63102021-02-03 Pedro Alves <pedro@palves.net>
6311
6312 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6313 here...
6314 * remote.c (remote_target::remote_detach_1): ... and here ...
6315 * target.c (target_detach): ... instead of here.
6316 * target.h (target_ops::detach): Add comment.
6317
8ff53139
PA
63182021-02-03 Pedro Alves <pedro@palves.net>
6319
6320 * infrun.c (struct wait_one_event): Move higher up.
6321 (prepare_for_detach): Abort in-progress displaced steps instead of
6322 letting them complete.
6323 (handle_one): If the inferior is detaching, don't add the thread
6324 back to the global step-over chain.
6325 (restart_threads): Don't restart threads if detaching.
6326 (handle_signal_stop): Remove inferior::detaching reference.
6327
91475068
PA
63282021-02-03 Pedro Alves <pedro@palves.net>
6329
6330 * infrun.c (prepare_for_detach): Don't release scoped_restore
6331 before returning.
6332
d758e62c
PA
63332021-02-03 Pedro Alves <pedro@palves.net>
6334
6335 * infrun.c (handle_one): New function, factored out from ...
6336 (stop_all_threads): ... here.
6337
b0083dd7
PA
63382021-02-03 Pedro Alves <pedro@palves.net>
6339
6340 * remote.c (remote_notif_stop_ack): Don't error out on
6341 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6342 (remote_target::discard_pending_stop_replies): Don't delete
6343 in-flight notification; instead, clear its contents.
6344
621cc310
PA
63452021-02-03 Pedro Alves <pedro@palves.net>
6346
6347 * remote.c (extended_remote_target::attach): Set target async in
6348 the target-non-stop path too.
6349
2ab76a18
PA
63502021-02-03 Pedro Alves <pedro@palves.net>
6351
6352 PR gdb/27055
6353 * infrun.c (handle_signal_stop): Move main context_switch call
6354 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6355
2e3773ff
LS
63562021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6357
6358 * NEWS (Changed commands): Add entry for the behavior change of
6359 the inferior command.
6360 * inferior.c (inferior_command): When no argument is given to the
6361 inferior command, display info about the currently selected
6362 inferior.
6363
e57933dc
SM
63642021-02-02 Simon Marchi <simon.marchi@efficios.com>
6365
6366 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6367 a sect_offset.
6368 (read_attribute_reprocess): Adjust.
6369
2b0c7f41
SM
63702021-02-02 Simon Marchi <simon.marchi@efficios.com>
6371
6372 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6373 <gnu_ranges_base>: ... this...
6374 <rnglists_base>: ... and this.
6375 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6376 <gnu_ranges_base>: ... this...
6377 <rnglists_base>: ... and this.
6378 (read_cutu_die_from_dwo): Adjust
6379 (dwarf2_get_pc_bounds): Adjust
6380 (dwarf2_record_block_ranges): Adjust.
6381 (read_full_die_1): Adjust
6382 (partial_die_info::read): Adjust.
6383 (read_rnglist_index): Adjust.
6384
a1c40103
SM
63852021-02-02 Simon Marchi <simon.marchi@efficios.com>
6386
6387 PR gdb/26813
6388 * dwarf2/read.c (read_loclists_rnglists_header): Add
6389 header_offset parameter and use it.
6390 (read_loclist_index): Read header of the current contribution,
6391 not the one at the beginning of the section.
6392 (read_rnglist_index): Likewise.
6393
b1829e1b
SM
63942021-02-02 Simon Marchi <simon.marchi@efficios.com>
6395
6396 PR gdb/26813
6397 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6398 requires_reprocessing flag.
6399 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6400 DW_FORM_loclistx.
6401 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6402 and DW_FORM_loclistx.
6403 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6404 instead of set_address for DW_FORM_loclistx and
6405 DW_FORM_rnglistx.
6406
0c800c6e
SM
64072021-02-02 Simon Marchi <simon.marchi@efficios.com>
6408
6409 * dwarf2/read.c (read_loclist_index): Remove bound check for
6410 start of offset.
6411 (read_rnglist_index): Likewise.
6412
05787bad
SM
64132021-02-02 Simon Marchi <simon.marchi@efficios.com>
6414
6415 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6416 of the offset.
6417
5e4d9bbc
SM
64182021-02-02 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6421
a0c1eeba
SM
64222021-02-02 Simon Marchi <simon.marchi@efficios.com>
6423
6424 * dwarf2/read.c (read_loclist_index): Change complaints into
6425 errors.
6426
2bd3e4b8
TV
64272021-02-02 Tom de Vries <tdevries@suse.de>
6428
6429 PR symtab/24620
6430 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6431 psymtab == nullptr.
6432
82a1fd3a
AB
64332021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6434
6435 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6436 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6437 here from linux-tdep.c and given a new name. Minor cleanups.
6438 (gcore_collect_regset_section_cb): Likewise.
6439 (gcore_collect_thread_registers): Likewise.
6440 (gcore_build_thread_register_notes): Likewise.
6441 (gcore_find_signalled_thread): Likewise.
6442 * gcore.h (gcore_build_thread_register_notes): Declare.
6443 (gcore_find_signalled_thread): Declare.
6444 * fbsd-tdep.c: Add 'gcore.h' include.
6445 (struct fbsd_collect_regset_section_cb_data): Delete.
6446 (fbsd_collect_regset_section_cb): Delete.
6447 (fbsd_collect_thread_registers): Delete.
6448 (struct fbsd_corefile_thread_data): Delete.
6449 (fbsd_corefile_thread): Delete.
6450 (fbsd_make_corefile_notes): Call
6451 gcore_build_thread_register_notes instead of the now deleted
6452 FreeBSD code.
6453 * linux-tdep.c: Add 'gcore.h' include.
6454 (struct linux_collect_regset_section_cb_data): Delete.
6455 (linux_collect_regset_section_cb): Delete.
6456 (linux_collect_thread_registers): Delete.
6457 (linux_corefile_thread): Call
6458 gcore_build_thread_register_notes.
6459 (find_signalled_thread): Delete.
6460 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6461
ebde6f2d
TV
64622021-01-29 Tom de Vries <tdevries@suse.de>
6463
6464 PR breakpoints/26063
6465 * infrun.c (process_event_stop_test): Reset
6466 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6467 changed.
6468
0f93c3a2
AB
64692021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6470
6471 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6472 assert. Extend the header comment.
6473
f237f998
AB
64742021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6475
6476 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6477 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6478 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6479 (tui_locator_win_info_ptr): Delete declaration.
6480 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6481 (tui_disasm_window::set_contents): Fetch state from tui_location
6482 global.
6483 (tui_get_begin_asm_address): Likewise.
6484 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6485 for locator window.
6486 (get_locator_window): Delete.
6487 (initialize_known_windows): Treat locator window just like all the
6488 rest.
6489 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6490 (tui_source_window::set_contents): Fetch state from tui_location
6491 global.
6492 (tui_source_window::showing_source_p): Likewise.
6493 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6494 (_locator): Delete.
6495 (tui_locator_win_info_ptr): Delete.
6496 (tui_locator_window::make_status_line): Fetch state from
6497 tui_location global.
6498 (tui_locator_window::rerender): Remove check of 'handle',
6499 reindent function body.
6500 (tui_locator_window::set_locator_fullname): Delete.
6501 (tui_locator_window::set_locator_info): Delete.
6502 (tui_update_locator_fullname): Delete.
6503 (tui_show_frame_info): Likewise.
6504 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6505 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6506 tui/tui-location.h and renamed to
6507 tui_location_tracker::set_location.
6508 (tui_locator_window::set_locator_fullname): Moved to
6509 tui/tui-location.h and renamed to
6510 tui_location_tracker::set_fullname.
6511 (tui_locator_window::full_name): Delete.
6512 (tui_locator_window::proc_name): Delete.
6513 (tui_locator_window::line_no): Delete.
6514 (tui_locator_window::addr): Delete.
6515 (tui_locator_window::gdbarch): Delete.
6516 (tui_update_locator_fullname): Delete declaration.
6517 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6518 for locator window.
6519 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6520 (tui_display_main): Call function on tui_location directly.
6521 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6522 * tui/tui-location.c: New file.
6523 * tui/tui-location.h: New file.
6524
8ee511af
SM
65252021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6526
6527 * gdbtypes.h (get_type_arch): Rename to...
6528 (struct type) <arch>: ... this, update all users.
6529
6ac37371
SM
65302021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6531
6532 * gdbtypes.h (struct type) <arch>: Rename to...
6533 <arch_owner>: ... this, update all users.
6534 <objfile>: Rename to...
6535 <objfile_owner>: ... this, update all users.
6536
24cf6389
AB
65372021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6538
6539 * gdbcmd.h (execute_command_to_string): Update comment.
6540 * top.c (execute_command_to_string): Update header comment.
6541
2a7f6487
TV
65422021-01-28 Tom de Vries <tdevries@suse.de>
6543
6544 PR breakpoints/27205
6545 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6546 (create_longjmp_master_breakpoint_names): New function, factored out
6547 of ...
6548 (create_longjmp_master_breakpoint): ... here. Only try to install
6549 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6550 breakpoint in libc.so failed.
6551
59b59f08
LS
65522021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6553
6554 PR gdb/27133
6555 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6556 unique_ptr is released when the wrapped pointer is kept for later
6557 use.
6558
807f647c
MM
65592021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6560
6561 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6562 BLR and BR instructions.
6563 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6564 (enum aarch64_masks): New.
6565
4ef367bf
TT
65662021-01-26 Tom Tromey <tromey@adacore.com>
6567
6568 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6569 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6570 (windows_init_thread_list, windows_nat::handle_load_dll)
6571 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6572 (windows_nat_target::resume)
6573 (windows_nat_target::get_windows_debug_event)
6574 (windows_nat_target::interrupt, windows_xfer_memory)
6575 (windows_nat_target::close): Update.
6576 * nat/windows-nat.c (DEBUG_EVENTS): Use
6577 debug_prefixed_printf_cond.
6578 (matching_pending_stop, fetch_pending_stop)
6579 (continue_last_debug_event): Update.
6580
4cb1265b
MS
65812020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6582
6583 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6584 elfcore_write_file_note.
6585
d0cc52bd
SV
65862021-01-26 Shahab Vahedi <shahab@synopsys.com>
6587
6588 * arc-tdep.c (arc_add_reggroups): New function.
6589 (arc_gdbarch_init): Call arc_add_reggroups.
6590
ac3571d9 65912021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6592
6593 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6594
9f6c202e
TV
65952021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6596 Simon Marchi <simon.marchi@polymtl.ca>
6597 Tom de Vries <tdevries@suse.de>
6598
6599 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6600 DW_AT_ranges.
6601
a625a8c9
TT
66022021-01-25 Tom Tromey <tromey@adacore.com>
6603
6604 * dwarf2/read.c (get_mpz): New function.
6605 (get_dwarf2_rational_constant): Use it.
6606
19184910
TT
66072021-01-25 Tom Tromey <tromey@adacore.com>
6608
6609 * ada-lang.c (resolve_subexp): Handle array context.
6610
b10bae18
TT
66112021-01-23 Tom Tromey <tom@tromey.com>
6612
6613 PR compile/25575
6614 * compile/compile-loc2c.c (note_register): New function.
6615 (pushf_register_address, pushf_register): Use it.
6616
3637a558
TT
66172021-01-23 Tom Tromey <tom@tromey.com>
6618
6619 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6620 Change type of "registers_used".
6621 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6622 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6623 (locexpr_generate_c_location, loclist_generate_c_location): Change
6624 type of "registers_used".
6625 * compile/compile.h (compile_dwarf_expr_to_c)
6626 (compile_dwarf_bounds_to_c): Update.
6627 * compile/compile-loc2c.c (pushf_register_address)
6628 (pushf_register, do_compile_dwarf_expr_to_c)
6629 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6630 of "registers_used".
6631 * compile/compile-c.h (generate_c_for_variable_locations):
6632 Update.
6633 * compile/compile-c-symbols.c (generate_vla_size)
6634 (generate_c_for_for_one_variable): Change type of
6635 "registers_used".
6636 (generate_c_for_variable_locations): Return std::vector.
6637 * compile/compile-c-support.c (generate_register_struct): Change
6638 type of "registers_used".
6639 (compute): Update.
6640
9f7f6cb8
TT
66412021-01-23 Tom Tromey <tom@tromey.com>
6642
6643 * compile/compile-internal.h (class compile_instance)
6644 <set_arguments>: Change return type.
6645 * compile/compile.c (compile_to_object): Remove call to reset.
6646 (compile_instance::set_arguments): Change return type.
6647
dd5ca05f
SM
66482021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6649
6650 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6651 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6652
d3ee35db
LS
66532021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6654
6655 * Makefile.in (SELFTESTS_SRCS): Add
6656 unittests/gdb_tilde_expand-selftests.c.
6657 * unittests/gdb_tilde_expand-selftests.c: New file.
6658
9d2d8a16
AB
66592021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6660
6661 PR cli/25956
6662 * NEWS: Mention new command.
6663 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6664 (version_style): Define.
6665 (cli_style_option::cli_style_option): Add intensity parameter, and
6666 use as appropriate.
6667 (_initialize_cli_style): Register version style set/show commands.
6668 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6669 (version_style): Declare.
6670 * top.c (print_gdb_version): Use version_stype, and styled_string
6671 to print the GDB version string.
6672
e7b43072
AB
66732021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6674
6675 * utils.c (emit_style_escape): Only emit an escape sequence if the
6676 requested style is different than the current applied style.
6677 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6678 current applied_style.
6679 (fputs_styled): Remove is_default check.
6680 (fputs_styled_unfiltered): Likewise.
6681 (vfprintf_styled_no_gdbfmt): Likewise.
6682
2189c312
SM
66832021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6684
6685 * remote.h (remote_debug_printf): New.
6686 (remote_debug_printf_nofunc): New.
6687 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6688 * remote.c: Use above macros throughout file.
6689
02349803
SM
66902021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6691
6692 * remote.h (remote_debug): Change to bool.
6693 * remote.c (remote_debug): Change to bool.
6694 (_initialize_remote): Adjust.
6695
cda09ec9
SM
66962021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6697
6698 * target.h (remote_debug): Move to...
6699 * remote.h (remote_debug): ... here.
6700 * top.c (remote_debug): Move to...
6701 * remote.c (remote_debug): ... here.
6702 * remote-sim.c: Include remote.h.
6703
baf2b57f
SM
67042021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6705
6706 * cli/cli-cmds.c (show_remote_debug): Remove.
6707 (show_remote_timeout): Remove.
6708 (_initialize_cli_cmds): Don't register commands.
6709 * remote.c (show_remote_debug): Move here.
6710 (show_remote_timeout): Move here.
6711 (_initialize_remote): Register commands.
6712
344e9841
SM
67132021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6714
6715 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6716 type::objfile method instead.
6717
30625020
SM
67182021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6719
6720 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6721 use the type::is_objfile_owned method.
6722
5b7d941b
SM
67232021-01-22 Simon Marchi <simon.marchi@efficios.com>
6724
6725 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6726 (TYPE_OWNER): Remove.
6727 (TYPE_OBJFILE): Adjust.
6728 (struct main_type) <flag_objfile_owned>: Rename to...
6729 <m_flag_objfile_owned>: ... this.
6730 <owner>: Rename to...
6731 <m_owner>: ... this.
6732 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6733 methods.
6734 (TYPE_ALLOC): Adjust.
6735 * gdbtypes.c (alloc_type): Adjust.
6736 (alloc_type_arch): Adjust.
6737 (alloc_type_copy): Adjust.
6738 (get_type_arch): Adjust.
6739 (smash_type): Adjust.
6740 (lookup_array_range_type): Adjust.
6741 (recursive_dump_type): Adjust.
6742 (copy_type_recursive): Adjust.
6743 * compile/compile-c-types.c (convert_func): Adjust.
6744 (convert_type_basic): Adjust.
6745 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6746 Adjust.
6747 * language.c
6748 (language_arch_info::type_and_symbol::alloc_type_symbol):
6749 Adjust.
6750
d5d24e12
LM
67512021-01-21 Luis Machado <luis.machado@linaro.org>
6752
6753 * coffread.c (enter_linenos): Passing string to complaint.
6754 * valops.c (value_assign): Make array view.
6755
a59902a7
SM
67562021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6757
6758 * auto-load.h (debug_auto_load): Move here.
6759 (auto_load_debug_printf): New.
6760 * auto-load.c: Use auto_load_debug_printf.
6761 (debug_auto_load): Move to header.
6762 * linux-thread-db.c (try_thread_db_load): Use
6763 auto_load_debug_printf.
6764 * main.c (captured_main_1): Likewise.
6765
d3abc0ce
SM
67662021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6767
6768 * f-valprint.c (f77_array_offset_tbl): Remove.
6769
1e15fcac
SM
67702021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6771
6772 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6773
439706e6
SM
67742021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6775
6776 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6777 of gdb_select.
6778
325d39e4
HD
67792021-01-21 Hannes Domani <ssbssa@yahoo.de>
6780
6781 PR python/19151
6782 * python/py-breakpoint.c (bppy_get_location): Handle
6783 bp_hardware_breakpoint.
6784 (bppy_init): Likewise.
6785 (gdbpy_breakpoint_created): Likewise.
6786
7cb6d92a
SM
67872021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6788
6789 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6790
d4dd4fca
SM
67912021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6792
6793 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6794 (_initialize_gdb_bfd): Adjust.
6795
de53369b
SM
67962021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6797
6798 PR gdb/26828
6799 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6800
17e593e9
SM
68012021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * dwarf2/read.c (follow_die_offset): Add logging.
6804 (dwarf2_per_objfile::age_comp_units): Add logging.
6805
6bd434d6
SM
68062021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6807
6808 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6809 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6810 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6811 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6812 * arm-tdep.c (struct frame_unwind): Make static.
6813 * auto-load.c (auto_load_safe_path_vec): Make static.
6814 * csky-tdep.c (csky_stub_unwind): Make static.
6815 * gdbarch.c (gdbarch_data_registry): Make static.
6816 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6817 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6818 * i386-tdep.c (i386_frame_setup_skip_insns,
6819 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6820 Make static.
6821 * infrun.c (observer_mode): Make static.
6822 * linux-nat.c (sigchld_action): Make static.
6823 * linux-thread-db.c (thread_db_list): Make static.
6824 * maint-test-options.c (maintenance_test_options_list):
6825 * mep-tdep.c (mep_csr_registers): Make static.
6826 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6827 (stats): Make static.
6828 * nat/linux-osdata.c (struct osdata_type): Make static.
6829 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6830 * progspace.c (last_program_space_num): Make static.
6831 * python/py-param.c (struct parm_constant): Remove struct type
6832 name.
6833 (parm_constants): Make static.
6834 * python/py-record-btrace.c (btpy_list_methods): Make static.
6835 * python/py-record.c (recpy_gap_type): Make static.
6836 * record.c (record_goto_cmdlist): Make static.
6837 * regcache.c (regcache_descr_handle): Make static.
6838 * registry.h (DEFINE_REGISTRY): Make definition static.
6839 * symmisc.c (std_in, std_out, std_err): Make static.
6840 * top.c (previous_saved_command_line): Make static.
6841 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6842 static.
6843 * unittests/command-def-selftests.c (nr_duplicates,
6844 nr_invalid_prefixcmd, lists): Make static.
6845 * unittests/observable-selftests.c (test_notification): Make
6846 static.
6847 * unittests/optional/assignment/1.cc (counter): Make static.
6848 * unittests/optional/assignment/2.cc (counter): Make static.
6849 * unittests/optional/assignment/3.cc (counter): Make static.
6850 * unittests/optional/assignment/4.cc (counter): Make static.
6851 * unittests/optional/assignment/5.cc (counter): Make static.
6852 * unittests/optional/assignment/6.cc (counter): Make static.
6853
a6c11cbb
JS
68542021-01-20 Joel Sherrill <joel@rtems.org>
6855
6856 PR gdb/27219
6857 * remote.c (struct remote_thread_info) <resume_state>: Rename
6858 to...
6859 <get_resume_state>: ... this.
6860 (remote_target::resume): Adjust.
6861 (remote_target::commit_resume): Adjust.
6862 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6863
6f52fdf4
SDJ
68642021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6865 Tom Tromey <tom@tromey.com>
6866
6867 * stap-probe.c (stap_parse_single_operand): Handle '!'
6868 operator.
6869 (stap_parse_argument_conditionally): Likewise.
6870 Skip spaces after processing open-parenthesis sub-expression.
6871 (stap_parse_argument_1): Skip spaces after call to
6872 stap_parse_argument_conditionally.
6873 Handle case when right-side expression is a parenthesized
6874 sub-expression.
6875 Skip spaces after call to stap_parse_argument_1.
6876
1c3b85ad
LS
68772021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6878
6879 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6880
a9a87d35
LM
68812021-01-19 Luis Machado <luis.machado@linaro.org>
6882
6883 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6884 memory and save data.
6885 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6886 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6887 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6888 (trad_frame_value_bytes_p): Remove.
6889 (trad_frame_reset_saved_regs): Adjust documentation.
6890 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6891 constructor and reset the state of the registers.
6892 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6893 (trad_frame_value_bytes_p, trad_frame_set_value)
6894 (trad_frame_set_realreg, trad_frame_set_addr)
6895 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6896 (trad_frame_set_reg_realreg): Update to call member function.
6897 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6898 (trad_frame_get_prev_register): Likewise.
6899
6900 * aarch64-tdep.c (aarch64_analyze_prologue)
6901 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6902 (aarch64_prologue_prev_register): Update to use member functions.
6903 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6904 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6905 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6906 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6907 (arm_make_epilogue_frame_cache): Likewise.
6908 * avr-tdep.c (avr_frame_unwind_cache)
6909 (avr_frame_prev_register): Likewise.
6910 * cris-tdep.c (cris_scan_prologue): Likewise.
6911 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6912 * frv-tdep.c (frv_analyze_prologue): Likewise.
6913 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6914 * lm32-tdep.c (lm32_frame_cache): Likewise.
6915 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6916 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6917 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6918 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6919 (reset_saved_regs): Adjust to set realreg.
6920 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6921 call member functions.
6922 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6923 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6924 (s390_backchain_frame_unwind_cache): Likewise.
6925 * score-tdep.c (score7_analyze_prologue)
6926 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6927 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6928 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6929 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6930 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6931 * tilegx-tdep.c (tilegx_analyze_prologue)
6932 (tilegx_frame_cache): Likewise.
6933 * v850-tdep.c (v850_frame_cache): Likewise.
6934 * vax-tdep.c (vax_frame_cache): Likewise.
6935
bdec2917
LM
69362021-01-19 Luis Machado <luis.machado@linaro.org>
6937
6938 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6939 of buffer + length.
6940 (put_frame_register_bytes): Likewise.
6941 Adjust documentation.
6942 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6943 (safe_frame_unwind_memory): Likewise.
6944 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6945 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6946 gdb::array_view.
6947 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6948 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6949 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6950 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6951 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6952 * dwarf2/loc.c (rw_pieced_value): Likewise.
6953 * hppa-tdep.c (hppa_frame_cache): Likewise.
6954 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6955 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6956 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6957 (i386_linux_rt_sigtramp_start): Likewise.
6958 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6959 * i386-tdep.c (i386_register_to_value): Likewise.
6960 * i387-tdep.c (i387_register_to_value): Likewise.
6961 * ia64-tdep.c (ia64_register_to_value): Likewise.
6962 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6963 (m32r_linux_rt_sigtramp_start): Likewise.
6964 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6965 * m68k-tdep.c (m68k_register_to_value): Likewise.
6966 * mips-tdep.c (mips_register_to_value)
6967 (mips_value_to_register): Likewise.
6968 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6969 (ppcfbsd_sigtramp_frame_cache): Likewise.
6970 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6971 (ppcobsd_sigtramp_frame_cache): Likewise.
6972 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6973 (rs6000_register_to_value): Likewise.
6974 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6975 * tramp-frame.c (tramp_frame_start): Likewise.
6976 * valops.c (value_assign): Likewise.
6977
ccbe4c82
LM
69782021-01-19 Luis Machado <luis.machado@linaro.org>
6979
6980 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6981 array_view.
6982 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6983 instead of buffer and size.
6984 (trad_frame_set_reg_value_bytes): Likewise.
6985 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6986 (trad_frame_set_value_bytes): Likewise.
6987
0e7620dc
MF
69882021-01-18 Mike Frysinger <vapier@gentoo.org>
6989
6990 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6991
6a9ad81c
AB
69922021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6993
6994 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6995 (riscv_fbsd_gregset): Use riscv_supply_regset.
6996 (riscv_fbsd_fpregset): Likewise.
6997 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6998 (riscv_linux_fregset): Likewise.
6999 * riscv-tdep.c (riscv_supply_regset): Define new function.
7000 * riscv-tdep.h (riscv_supply_regset): Declare new function.
7001
d3d7d1ba
TV
70022021-01-18 Tom de Vries <tdevries@suse.de>
7003
7004 PR tdep/27172
7005 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7006 New macro.
7007 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7008 for SEGV_BNDERR.
7009
aa2838cc
SM
70102021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7011
7012 * remote.c (class remote_target) <remote_hostio_send_command,
7013 remote_hostio_parse_result>: Constify parameter.
7014 (remote_hostio_parse_result): Likewise.
7015 (remote_target::remote_hostio_send_command): Adjust.
7016 (remote_target::remote_hostio_pread_vFile): Adjust.
7017 (remote_target::fileio_readlink): Adjust.
7018 (remote_target::fileio_fstat): Adjust.
7019
b5c8f22d
SM
70202021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7021
7022 * remote.c (remote_target::start_remote): Move wait_status to
7023 narrower scope.
7024
e3b2741b
SM
70252021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7026
7027 * remote.c (class remote_target):
7028 <add_current_inferior_and_thread>: Constify parameter.
7029 (stop_reply_extract_thread): Likewise.
7030 (remote_target::get_current_thread): Likewise.
7031 (remote_target::add_current_inferior_and_thread): Likewise.
7032
cecb1912
SM
70332021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7034
7035 * remote.c (class remote_target)
7036 <remote_unpack_thread_info_response,
7037 parse_threadlist_response>: Constify parameter and/or return
7038 value and or local variable.
7039 (stub_unpack_int): Likewise.
7040 (unpack_nibble): Likewise.
7041 (unpack_byte): Likewise.
7042 (unpack_int): Likewise.
7043 (unpack_string): Likewise.
7044 (unpack_threadid): Likewise.
7045 (remote_target::remote_unpack_thread_info_response): Likewise.
7046 (remote_target::parse_threadlist_response): Likewise.
7047
5a11fff0
AB
70482021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7049
7050 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7051
17e89137
LS
70522021-01-14 Lancelot Six <lsix@lancelotsix.com>
7053
7054 * MAINTAINERS (Write After Approval): Add myself.
7055
58eadc4b
BE
70562021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7057
7058 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7059 because is_trivially_default_constructible was first implemented with
7060 gcc-5.
7061
5fae2a2c
TV
70622021-01-14 Tom de Vries <tdevries@suse.de>
7063
7064 PR breakpoints/27151
7065 * objfiles.h (in_plt_section): Handle .plt.sec.
7066
8f66807b
AB
70672021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7068
7069 PR gdb/26819
7070 * remote.c
7071 (remote_target::select_thread_for_ambiguous_stop_reply): New
7072 member function.
7073 (remote_target::process_stop_reply): Call
7074 select_thread_for_ambiguous_stop_reply.
7075
bd497355
SM
70762021-01-13 Simon Marchi <simon.marchi@efficios.com>
7077
7078 * record-btrace.c (class record_btrace_target): Remove.
7079 (record_btrace_target::commit_resume): Remove.
7080 * record-full.c (class record_full_target): Remove.
7081 (record_full_target::commit_resume): Remove.
7082
c9d22089
SM
70832021-01-13 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * remote.c (enum class resume_state): New.
7086 (struct resumed_pending_vcont_info): New.
7087 (struct remote_thread_info) <resume_state, set_not_resumed,
7088 set_resumed_pending_vcont, resumed_pending_vcont_info,
7089 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7090 New.
7091 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7092 (remote_target::remote_add_thread): Adjust.
7093 (remote_target::process_initial_stop_replies): Adjust.
7094 (remote_target::resume): Adjust.
7095 (remote_target::commit_resume): Rely on state in
7096 remote_thread_info and not on tp->executing.
7097 (remote_target::process_stop_reply): Adjust.
7098
d8d1feb4
SM
70992021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7100
7101 * arc-tdep.h (arc_debug_printf): New.
7102 * arc-tdep.c: Use arc_debug_printf.
7103 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7104 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7105 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7106
fb0f5031
SM
71072021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7108
7109 * arc-tdep.h (arc_debug): Change type to bool.
7110 * arc-tdep.c (arc_debug): Change type to bool.
7111 (arc_analyze_prologue): Adjust.
7112 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7113 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7114
5bf7e91b
SM
71152021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7116
7117 * auto-load.c (auto_load_objfile_script_1): Use bool.
7118 (execute_script_contents): Use bool.
7119
db972fce
SM
71202021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7121
7122 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7123 comment here.
7124 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7125 comment to header.
7126 * extension-priv.h (struct extension_language_script_ops)
7127 <auto_load_enabled>: Return bool.
7128 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7129 comment here.
7130 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7131 comment to header.
7132 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7133 move comment here.
7134 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7135 move comment to header.
7136 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7137 move comment here.
7138 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7139 move comment to header.
7140
5e12f48f
SM
71412021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * auto-load.h (file_is_auto_load_safe): Change return type to
7144 bool, move comment here.
7145 * auto-load.c (file_is_auto_load_safe): Change return type and
7146 advice_printed to bool. Move comment to header.
7147
54ca9002
SM
71482021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7149
7150 * jit.c (jit_debug_printf): New, use throughout file.
7151
24a7f1b5
SM
71522021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7153
7154 * infrun.c (normal_stop): Fix indentation.
7155
fe7a351a
SM
71562021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7157
7158 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7159 declarations to ...
7160 * symfile.h: ... here.
7161 * symfile.c: Update doc.
7162
16e9019e
SM
71632021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7164
7165 * target.h (baud_rate, serial_parity): Move declarations...
7166 * serial.h: ... here.
7167 * main.c: Include serial.h.
7168 * serial.c (baud_rate, serial_parity): Update doc.
7169
b2f2ae0d
SM
71702021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7171
7172 * top.c (pre_init_ui_hook): Remove.
7173
5291fe3c
SP
71742021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7175
7176 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7177 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7178 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7179 * features/aarch64-fpu.xml: Add bfloat16 type.
7180
ce38f5ed
AB
71812021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7182
7183 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7184
7c654b71
AB
71852021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7186
7187 * f-exp.y (dot_ops): Rename to...
7188 (fortran_operators): ...this. Add a header comment. Add symbol
7189 based operators.
7190 (yylex): Update to use fortran_operators not dot_ops. Remove
7191 special handling for '**', this is now included in
7192 fortran_operators.
7193
c6185dce
SM
71942021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7195
7196 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7197 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7198 * aarch64-tdep.c: Use aarch64_debug_printf.
7199
eef401dc
SM
72002021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7201
7202 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7203 file.
7204
062eaacb
SM
72052021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7206
7207 * jit.c (jit_debug): Change type to bool.
7208 (_initialize_jit): Adjust.
7209
54585eee
TT
72102021-01-09 Tom Tromey <tom@tromey.com>
7211
7212 PR compile/23672
7213 * compile/compile.c (compile_to_object): Avoid crash when
7214 osabi_triplet_regexp returns NULL.
7215
bc167b6b
TT
72162021-01-09 Tom Tromey <tom@tromey.com>
7217
7218 * tracepoint.h (class collection_list) <append_exp>: Take a
7219 std::string.
7220 * tracepoint.c (collection_list::append_exp): Take a std::string.
7221 (encode_actions_1): Update.
7222
8fc48b79
TT
72232021-01-08 Tom Tromey <tromey@adacore.com>
7224
7225 * parse.c (parse_expression): Add void_context_p parameter. Use
7226 parse_exp_in_context.
7227 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7228 parse_expression.
7229 (print_command, call_command): Update.
7230 * expression.h (parse_expression): Add void_context_p parameter.
7231
3c8c6de2
AB
72322021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7233
7234 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7235 for internalvar components that have a dynamic location.
7236
1940319c
TV
72372021-01-08 Tom de Vries <tdevries@suse.de>
7238
7239 PR gdb/26881
7240 * breakpoint.c (create_exception_master_breakpoint_probe)
7241 (create_exception_master_breakpoint_hook): Factor out
7242 of ...
7243 (create_exception_master_breakpoint): ... here. Only try to install
7244 the master exception breakpoint in objfile.debug using the
7245 _Unwind_DebugHook method, if the install using probes in objfile
7246 failed.
7247
e3436813
AB
72482021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * f-lang.c (fortran_value_subarray): Call value_from_component.
7251
e904f56d
MF
72522021-01-07 Mike Frysinger <vapier@gentoo.org>
7253
7254 * remote-sim.c: Include memory-map.h.
7255 (gdbsim_target): Define memory_map override.
7256 (gdbsim_target::memory_map): Define.
7257
959d6a67
TT
72582021-01-07 Tom Tromey <tromey@adacore.com>
7259
7260 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7261
d4813f10
TT
72622021-01-07 Tom Tromey <tromey@adacore.com>
7263
7264 * ada-lang.c (add_component_interval): Start loop using vector's
7265 updated size.
7266
b49180ac
TT
72672021-01-06 Tom Tromey <tromey@adacore.com>
7268
7269 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7270 Do not cast result.
7271 * valarith.c (fixed_point_binop): Handle multiplication
7272 and division specially.
7273 * valops.c (value_to_gdb_mpq): New function.
7274 (value_cast_to_fixed_point): Use it.
7275
55195361
HD
72762021-01-05 Hannes Domani <ssbssa@yahoo.de>
7277
7278 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7279 Call wnoutrefresh instead of tui_win_info::refresh_window.
7280
1b6d4bb2
HD
72812021-01-05 Hannes Domani <ssbssa@yahoo.de>
7282
7283 * tui/tui-source.c (tui_source_window::show_line_number):
7284 Redraw second space after line number.
7285
b5ff370e
HD
72862021-01-05 Hannes Domani <ssbssa@yahoo.de>
7287
7288 PR tui/26927
7289 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7290 Fix source pad size in prefresh.
7291 (tui_source_window_base::show_source_content): Grow source pad
7292 if necessary.
7293
c68ea49f
MF
72942021-01-04 Mike Frysinger <vapier@gentoo.org>
7295
7296 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7297 (bfin_frame_align): Use align_down.
7298
e4ad960a
TV
72992021-01-04 Tom de Vries <tdevries@suse.de>
7300
7301 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7302 terminators that do not terminate anything.
7303
3ec3145c
SM
73042021-01-04 Simon Marchi <simon.marchi@efficios.com>
7305
7306 * debug.c (debug_print_depth): New.
7307 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7308 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7309 * infrun.c (start_step_over): Use
7310 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7311 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7312 INFRUN_SCOPED_DEBUG_START_END.
7313 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7314
e71daf80
SM
73152021-01-04 Simon Marchi <simon.marchi@efficios.com>
7316
7317 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7318
335709bc
SM
73192021-01-04 Simon Marchi <simon.marchi@efficios.com>
7320
7321 * utils.c (vfprintf_unfiltered): Print timestamp only when
7322 previous debug output ended with a newline.
7323
098caef4
LM
73242021-01-04 Luis Machado <luis.machado@linaro.org>
7325
7326 Update all users of trad_frame_saved_reg to use the new member
7327 functions.
7328
7329 Remote all struct keywords from declarations of trad_frame_saved_reg
7330 types, except on forward declarations.
7331
7332 * aarch64-tdep.c: Update.
7333 * alpha-mdebug-tdep.c: Update.
7334 * alpha-tdep.c: Update.
7335 * arc-tdep.c: Update.
7336 * arm-tdep.c: Update.
7337 * avr-tdep.c: Update.
7338 * cris-tdep.c: Update.
7339 * csky-tdep.c: Update.
7340 * frv-tdep.c: Update.
7341 * hppa-linux-tdep.c: Update.
7342 * hppa-tdep.c: Update.
7343 * hppa-tdep.h: Update.
7344 * lm32-tdep.c: Update.
7345 * m32r-linux-tdep.c: Update.
7346 * m32r-tdep.c: Update.
7347 * m68hc11-tdep.c: Update.
7348 * mips-tdep.c: Update.
7349 * moxie-tdep.c: Update.
7350 * riscv-tdep.c: Update.
7351 * rs6000-tdep.c: Update.
7352 * s390-linux-tdep.c: Update.
7353 * s390-tdep.c: Update.
7354 * score-tdep.c: Update.
7355 * sparc-netbsd-tdep.c: Update.
7356 * sparc-sol2-tdep.c: Update.
7357 * sparc64-fbsd-tdep.c: Update.
7358 * sparc64-netbsd-tdep.c: Update.
7359 * sparc64-obsd-tdep.c: Update.
7360 * sparc64-sol2-tdep.c: Update.
7361 * tilegx-tdep.c: Update.
7362 * v850-tdep.c: Update.
7363 * vax-tdep.c: Update.
7364
7365 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7366 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7367
7368 * trad-frame.c: Update.
7369 Remove TF_REG_* enum.
7370 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7371 a trivially-constructible struct.
7372 (trad_frame_reset_saved_regs): Adjust to use member function.
7373 (trad_frame_value_p): Likewise.
7374 (trad_frame_addr_p): Likewise.
7375 (trad_frame_realreg_p): Likewise.
7376 (trad_frame_value_bytes_p): Likewise.
7377 (trad_frame_set_value): Likewise.
7378 (trad_frame_set_realreg): Likewise.
7379 (trad_frame_set_addr): Likewise.
7380 (trad_frame_set_unknown): Likewise.
7381 (trad_frame_set_value_bytes): Likewise.
7382 (trad_frame_get_prev_register): Likewise.
7383 * trad-frame.h: Update.
7384 (trad_frame_saved_reg_kind): New enum.
7385 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7386 <m_kind, m_reg>: New member fields.
7387 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7388 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7389 <is_addr, is_unknown, is_value_bytes>: New member functions.
7390
9898e882
SM
73912021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7392
7393 * target-float.c: Fix typos.
7394
b66b4e65
HD
73952021-01-02 Hannes Domani <ssbssa@yahoo.de>
7396
7397 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7398
b5b5650a
JB
73992021-01-01 Joel Brobecker <brobecker@adacore.com>
7400
7401 * gdbarch.sh: Update copyright year range.
7402
3666a048
JB
74032021-01-01 Joel Brobecker <brobecker@adacore.com>
7404
7405 Update copyright year range in copyright header of all GDB files.
7406
ff7e39b6
JB
74072021-01-01 Joel Brobecker <brobecker@adacore.com>
7408
7409 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7410 to the list of directories to update.
7411
2b47c078
JB
74122021-01-01 Joel Brobecker <brobecker@adacore.com>
7413
7414 * top.c (print_gdb_version): Update copyright year.
7415
9e5e03df 74162021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 7417
476923f1 7418 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 7419
476923f1 7420For older changes see ChangeLog-2020.
c906108c
SS
7421\f
7422Local Variables:
7423mode: change-log
7424left-margin: 8
7425fill-column: 74
7426version-control: never
57da7796 7427coding: utf-8
c906108c 7428End: