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