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