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