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