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