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