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