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