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