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