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