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