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