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