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