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