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