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