[gdb] Fix 'not in executable format' error message
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2840a186
TV
12021-08-23 Tom de Vries <tdevries@suse.de>
2
3 PR gdb/26880
4 * gdb/exec.c (exec_file_attach): Use %s instead of %ps in call to
5 error function.
6
a656ee08
TV
72021-08-06 Simon Marchi <simon.marchi@polymtl.ca>
8 Tom de Vries <tdevries@suse.de>
9
10 PR symtab/28004
11 * dwarf2/read.c (dwarf2_rnglists_process, dwarf2_ranges_process):
12 Fix zero address complaint.
13
3e5ec878
TT
142021-08-02 Tom Tromey <tromey@adacore.com>
15
16 PR varobj/28131
17 * varobj.c (~varobj): Delete 'dynamic' before 'root'.
18
e4c1aea4
SV
192021-08-02 Shahab Vahedi <shahab@synopsys.com>
20
21 PR gdb/28104
22 * gdbtypes.c (gdbtypes_post_init): Use
23 "arch_boolean_type (..., unsigned=1, ...) to construct
24 "boolean".
25 cp-valprint.c (test_print_flags): New.
26 (_initialize_cp_valprint): Run the "test_print_flags" unit-test.
27
52a49e16
TV
282021-07-28 Tom de Vries <tdevries@suse.de>
29
30 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_FORM_data16.
31
c12608fc
TV
322021-07-27 Tom de Vries <tdevries@suse.de>
33
34 PR testsuite/26904
35 * gdb/testsuite/gdb.ada/big_packed_array.exp: Add xfail.
36
7e292f1a
TV
372021-07-27 Tom de Vries <tdevries@suse.de>
38
39 PR testsuite/26903
40 * gdb/testsuite/gdb.ada/array_of_variant.exp: Add xfails.
41
1693a7cf
FC
422021-07-26 Frederic Cambus <fred@statdns.com>
43
44 * syscalls/netbsd.xml: Regenerate.
45
70417f28
SV
462021-07-26 Shahab Vahedi <shahab@synopsys.com>
47 Simon Marchi <simon.marchi@efficios.com>
48
49 PR gdb/28103
50 * valprint.c (val_print_type_code_flags): Merely shift the VAL
51 to the right to get rid of the lower bits.
52 (test_print_flags): New.
53 (_initialize_valprint): Invoke the "test_print_flags" as a unit-test.
54
86271cfa
TBA
552021-07-26 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
56
57 PR gdb/28076
58 * mi/mi-cmd-break.c (mi_cmd_break_condition): Handle the case
59 of having no condition argument.
60
4f3fb91a
LM
612021-07-20 Luis Machado <luis.machado@linaro.org>
62 Pedro Alves <pedro@palves.net>
63
64 PR gdb/28110
65 * gdbarch.sh: Updated documentation for gdbarch_tagged_address_p.
66 * gdbarch.h: Regenerate.
67 * printcmd.c (should_validate_memtags): Reorder comparisons and only
68 validate tags for pointer and reference types. Skip validation of
69 optimized out or unavailable values.
70 (print_command_1): Guard call memory tagging validation code with
71 a try/catch block.
72
e22715ce
TT
732021-07-19 Tom Tromey <tromey@adacore.com>
74
75 PR gdb/28093
76 * language.c (auto_or_unknown_language::parser): Call error.
77
28b48aa1
SB
782021-07-17 Sergey Belyashov <Sergey.Belyashov@gmail.com>
79
80 * Makefile.in (ALL_TARGET_OBS): Add z80-tdep.c.
81 * NEWS: Mention z80 support.
82 * configure.tgt: Handle z80*.
83 * features/Makefile (XMLTOC): Add z80.xml.
84 * features/z80-cpu.xml: New.
85 * features/z80.c: Generate.
86 * features/z80.xml: New.
87 * z80-tdep.c: New file.
88 * z80-tdep.h: New file.
89
f1d9f199
LS
902021-07-13 Lancelot Six <lsix@lancelotsix.com>
91
92 * make-init-c: Use /bin/sh as shebang.
93
3e0910a5
PA
942021-07-13 Pedro Alves <pedro@palves.net>
95
96 PR gdb/28080
97 * gdb_bfd.c (gdb_bfd_close_warning): New.
98 (gdb_bfd_iovec_fileio_close): Wrap target_fileio_close in
99 try/catch and print warning on exception.
100 (gdb_bfd_close_or_warn): Use gdb_bfd_close_warning.
101
97c5ca8c
PA
1022021-07-13 Pedro Alves <pedro@palves.net>
103
104 PR gdb/28080
105 * remote.c (remote_unpush_target): Invalidate file I/O target
106 handles.
107 * target.c (fileio_handles_invalidate_target): Make extern.
108 * target.h (fileio_handles_invalidate_target): Declare.
109
1bdfa2b1
SM
1102021-07-13 Simon Marchi <simon.marchi@polymtl.ca>
111
112 * mi/mi-main.c (mi_cmd_exec_interrupt): Use
113 scoped_disable_commit_resumed in the --thread-group case.
114
29e079b8
JE
1152021-07-13 John Ericson <git@JohnEricson.me>
116
117 * sparc-tdep.h: Fix comment.
118 * netbsd-tdep.c (nbsd_info_proc_mappings_header): Fix comment.
119 (nbsd_init_abi): Fix comment.
120 * configure.tgt (*-*-netbsd* | *-*-knetbsd*-gnu): Fix netbsd
121 file name.
122 (alpha*-*-openbsd*): Likewise.
123 (sparc-*-openbsd*): Likewise.
124 (sparc64-*-openbsd*): Likewise.
125
2814ff83
TT
1262021-07-11 Tom Tromey <tom@tromey.com>
127
128 Committed by Joel Brobecker <brobecker@adacore.com>:
129 * gdb/symtab.c (info_sources_filter::matches): Add default
130 case hander in switch statement.
131
ff32938d
SM
1322021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * s390-linux-tdep.c (s390_linux_init_abi_any): Pass 1 (number
135 of displaced stepping buffers to linux_init_abi.
136 * s390-tdep.c (s390_gdbarch_init): Don't set the Linux-specific
137 displaced-stepping gdbarch callbacks.
138
6f0fe250
SM
1392021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * Makefile.in (SUBDIRS): Remove testsuite.
142
8043d65b
SM
1432021-07-06 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * configure.ac: Remove things that were moved from
146 testsuite/configure.ac.
147 * configure: Re-generate.
148
507af45f
SM
1492021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
150
151 * config.in, configure: Re-generate.
152
5d91a235
SM
1532021-07-04 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * solib-darwin.c (darwin_solib_create_inferior_hook): Return
156 early if no execution.
157
afc60144
JB
1582021-07-03 Joel Brobecker <brobecker@adacore.com>
159
160 * version.in: Set GDB version number to 11.0.90.DATE-git.
161
3c21f80e
JB
1622021-07-03 Joel Brobecker <brobecker@adacore.com>
163
164 GDB 11.0.90 released.
165
14b92135
JB
1662021-07-03 Joel Brobecker <brobecker@adacore.com>
167
168 * version.in: Set GDB version number to 11.0.90.
169
466ee06b
JB
1702021-07-03 Joel Brobecker <brobecker@adacore.com>
171
172 * NEWS: Replace "Changes since GDB 10" by "Changes in GDB 11".
173
633fd340
JB
1742021-07-03 Joel Brobecker <brobecker@adacore.com>
175
176 GDB 11 branch created (4b51505e33441c6165e7789fa2b6d21930242927):
177 * version.in: Bump version to 11.0.90.DATE-git.
178
57bb96d3
TT
1792021-07-02 Tom Tromey <tromey@adacore.com>
180
181 * ada-exp.y (chop_selector, chop_separator, write_selectors)
182 (write_ambiguous_var, get_symbol_field_type): Use const.
183
90b044ef
PA
1842021-07-02 Pedro Alves <pedro@palves.net>
185 Hannes Domani <ssbssa@yahoo.de>
186
187 * NEWS: Add new "TUI Improvements" section and mention mouse
188 support and that unrecognized special keys are now passed to
189 GDB. Mention Python Window.click in the Python improvements
190 section.
191
05c06f31
PA
1922021-07-01 Pedro Alves <pedro@palves.net>
193
194 PR mi/15729
195 PR gdb/13463
196 * linux-nat.c (linux_nat_target::detach): Close the
197 /proc/<pid>/mem file if it was open for this process.
198 (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: Close the
199 /proc/<pid>/mem file if it was open for this process.
200 (linux_nat_target::mourn_inferior): Close the /proc/<pid>/mem file
201 if it was open for this process.
202 (linux_nat_target::xfer_partial): Adjust. Do not fall back to
203 inf_ptrace_target::xfer_partial for memory accesses.
204 (last_proc_mem_file): New.
205 (maybe_close_proc_mem_file): New.
206 (linux_proc_xfer_memory_partial_pid): New, with bits factored out
207 from linux_proc_xfer_partial.
208 (linux_proc_xfer_partial): Delete.
209 (linux_proc_xfer_memory_partial): New.
210
fe67a58f
SM
2112021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
212
213 * frame.h (FRAME_SCOPED_DEBUG_ENTER_EXIT): New.
214 * frame.c (compute_frame_id, get_prev_frame_always_1,
215 get_prev_frame): Use FRAME_SCOPED_DEBUG_ENTER_EXIT.
216 * frame-unwind.c (frame_unwind_find_by_frame): Likewise.
217 (frame_unwind_register_value): Likewise.
218
a154d838
SM
2192021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
220
221 * frame-unwind.h (struct frame_unwind) <name>: New. Update
222 instances everywhere to include this field.
223 * frame-unwind.c (frame_unwind_try_unwinder,
224 frame_unwind_find_by_frame): Add debug messages.
225
a05a883f
SM
2262021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
227
228 * frame.h (frame_debug_printf): New.
229 * frame.c: Use frame_debug_printf throughout when printing frame
230 debug messages.
231 * amd64-windows-tdep.c: Likewise.
232 * value.c: Likewise.
233
dd4f75f2
SM
2342021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * frame.h (frame_debug): Change type to bool.
237 * frame.c (frame_debug): Change type to bool.
238 (_initialize_frame): Adjust.
239
4743af62
TBA
2402021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
241
242 * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
243
2608aff5
SM
2442021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
245
246 PR gdb/28017
247 * machoread.c (macho_symfile_offsets): Use
248 gdb_bfd_count_sections to allocate objfile::section_offsets.
249
0c1bcd23
SM
2502021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * objfiles.h (struct obj_section): Move down.
253 <offset, set_offset, addr, endaddr>: New.
254 (obj_section_offset, obj_section_addr, obj_section_endaddr),
255 replace all users to use obj_section methods.
256 (struct objfile) <section_offset, set_section_offset>: New.
257
2582021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * objfiles.h (struct obj_section): Move down.
261 <offset, set_offset, addr, endaddr>: New.
262 (obj_section_offset, obj_section_addr, obj_section_endaddr),
263 replace all users to use obj_section methods.
264 (struct objfile) <section_offset, set_section_offset>: New.
265
f07fad95
SM
2662021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
267
268 * .flake8: New.
269
a52d0b9d
LM
2702021-06-28 Luis Machado <luis.machado@linaro.org>
271
272 * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
273 byte.
274 (aarch64_linux_set_memtags): Likewise.
275 (aarch64_linux_get_memtag): Likewise.
276 (aarch64_linux_report_signal_info): Likewise.
277
e660f4e9
LM
2782021-06-28 Luis Machado <luis.machado@linaro.org>
279
280 * aarch64-linux-tdep.c
281 (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
282
0a3b55a6
LM
2832021-06-28 Luis Machado <luis.machado@linaro.org>
284
285 * aarch64-linux-tdep.c
286 (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
287 size.
288 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
289 8 and update comments.
290
b447dd03
SM
2912021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * gdbarch.sh (struct gdbarch_info): Initialize fields, add
294 constructor.
295 * gdbarch.h: Re-generate.
296 * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
297 * arch-utils.c (gdbarch_info_init): Remove.
298
c87c999c
SM
2992021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
300
301 * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
302 (gdbarch_find_by_info): Remove print.
303 * gdbarch.c, gdbarch.h: Re-generate.
304
4d60b897
AB
3052021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
306
307 * remote.c (remote_target::start_remote): Set 'starting_up' using
308 boolean values instead of integers.
309
6a72dbb6
SM
3102021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
311
312 * guile/scm-param.c (struct param_smob) <set_command,
313 show_command>: Remove.
314 <commands>: New.
315 (pascm_is_valid): Adjust.
316 (add_setshow_generic): Use return values of add_setshow
317 functions, return a set_show_commands.
318 (gdbscm_register_parameter_x): Adjust.
319
4c0ba02a
SM
3202021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * command.h (add_setshow_enum_cmd): Remove context parameter.
323 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
324 set context.
325 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
326 context here.
327
d6ff04a3
SM
3282021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
329
330 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
331 assert.
332
0f8e2034
SM
3332021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
334
335 * cli/cli-decode.h (struct cmd_list_element) <set_context,
336 context>: New.
337 <context>: Rename to...
338 <m_context>: ... this.
339 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
340 * command.h (set_cmd_context, get_cmd_context): Remove, use
341 cmd_list_element::set_context and cmd_list_element::context
342 everywhere instead.
343
bd742128
AB
3442021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
345
346 * NEWS: Mention changes to 'info sources'.
347 * symtab.c (info_sources_filter::print): Delete.
348 (struct output_source_filename_data) <print_header>: Delete
349 declaration. <printed_filename_p>: New member function.
350 (output_source_filename_data::print_header): Delete.
351 (info_sources_worker): Update group-by-objfile style output to
352 make it CLI suitable, simplify non-group-by-objfile now this is
353 only used from the MI.
354 (info_sources_command): Make group-by-objfile be the default for
355 CLI info sources command.
356 * symtab.h (struct info_sources_filter) <print>: Delete.
357
1fb1ce02
AB
3582021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
359
360 * NEWS: Mention additions to -file-list-exec-source-files.
361 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
362 --group-by-objfile option.
363 * symtab.c (isrc_flag_option_def): Rename to...
364 (isrc_match_flag_option_def): ...this.
365 (info_sources_option_defs): Rename to...
366 (info_sources_match_option_defs): ...this, and update to rename of
367 isrc_flag_option_def.
368 (struct filename_grouping_opts): New struct.
369 (isrc_grouping_flag_option_def): New type.
370 (info_sources_grouping_option_defs): New static global.
371 (make_info_sources_options_def_group): Update to return two option
372 groups.
373 (info_sources_command_completer): Update for changes to
374 make_info_sources_options_def_group.
375 (info_sources_worker): Add extra parameter, use this to display
376 alternative output format.
377 (info_sources_command): Pass extra parameter to
378 info_sources_worker.
379 (_initialize_symtab): Update for changes to
380 make_info_sources_options_def_group.
381 * symtab.h (info_sources_worker): Add extra parameter.
382
0e350a05
AB
3832021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
384
385 * NEWS: Mention additions to -file-list-exec-source-files.
386 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
387 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
388 options, and make use of info_sources_worker.
389 * symtab.c (struct info_sources_filter): Moved to symtab.h.
390 (info_sources_filter::print): Take uiout argument, produce output
391 through uiout.
392 (struct output_source_filename_data)
393 <output_source_filename_data>: Take uiout argument, store into
394 m_uiout. <output>: Rewrite comment, add additional arguments to
395 declaration. <operator()>: Send more arguments to
396 output. <m_uiout>: New member variable.
397 (output_source_filename_data::output): Take extra arguments,
398 produce output through m_uiout, and structure for MI.
399 (output_source_filename_data::print_header): Produce output
400 through m_uiout.
401 (info_sources_worker): New function, the implementation is taken
402 from info_sources_command, but modified so produce output through
403 a ui_out.
404 (info_sources_command): The second half of this function has gone
405 to become info_sources_worker.
406 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
407 extra parameter to print member function.
408 (info_sources_worker): Declare.
409
4a0788e0
AB
4102021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
411
412 * symtab.c (struct info_sources_filter): New.
413 (info_sources_filter::info_sources_filter): New function.
414 (info_sources_filter::matches): New function.
415 (info_sources_filter::print): New function.
416 (struct filename_partial_match_opts): Moved to later in the file
417 and update the comment.
418 (struct output_source_filename_data)
419 <output_source_filename_data>: New constructor. <regexp>: Delete,
420 this is now in info_sources_filter. <c_regexp>: Delete, this is
421 now in info_sources_filter. <reset_output>: New member function.
422 <filename_seen_cache>: Rename to m_filename_seen_cache, change
423 from being a pointer, to being an actual object. <first>: Rename
424 to m_first. <print_header>: New member function. <partial_match>:
425 Delete.
426 (output_source_filename_data::output): Update now
427 m_filename_seen_cache is no longer a pointer, and for other member
428 variable name changes. Add a header comment.
429 (print_info_sources_header): Renamed to...
430 (output_source_filename_data::print_header): ...this. Update now
431 it's a member function and to take account of member variable
432 renaming.
433 (info_sources_command): Add a header comment, delete stack local
434 filename_seen_cache, initialization of output_source_filename_data
435 is now done by the constructor. Call print_header member function
436 instead of print_info_sources_header, call reset_output member
437 function instead of manually performing the reset.
438
fc4d5ebf
AB
4392021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
440
441 * dwarf2/read.c (struct dwarf2_base_index_functions)
442 <has_unexpanded_symtabs>: Declare.
443 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
444 function.
445 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
446 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
447 Declare.
448 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
449 new function.
450 * quick-symbol.h (struct quick_symbol_functions)
451 <has_unexpanded_symtabs>: Declare.
452 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
453 function.
454
d038ce48
AB
4552021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
458 setting prototyped flag.
459
158cc4fe
AB
4602021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
461
462 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
463 an empty gdb::optional when calling value_struct_elt.
464 (desc_data): Likewise.
465 (desc_one_bound): Likewise.
466 * eval.c (structop_base_operation::evaluate_funcall): Pass
467 gdb::array_view, not a gdb::array_view* to value_struct_elt.
468 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
469 an empty gdb::optional when calling value_struct_elt.
470 (eval_op_structop_ptr): Likewise.
471 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
472 * guile/scm-value.c (gdbscm_value_field): Likewise.
473 * m2-lang.c (eval_op_m2_high): Likewise.
474 (eval_op_m2_subscript): Likewise.
475 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
476 * python/py-value.c (valpy_getitem): Likewise.
477 * rust-lang.c (rust_val_print_str): Likewise.
478 (rust_range): Likewise.
479 (rust_subscript): Likewise.
480 (eval_op_rust_structop): Likewise.
481 (rust_aggregate_operation::evaluate): Likewise.
482 * valarith.c (value_user_defined_op): Likewise.
483 * valops.c (search_struct_method): Change parameter type, update
484 function body accordingly, and update header comment.
485 (value_struct_elt): Change parameter type, update function body
486 accordingly.
487 * value.h (value_struct_elt): Update declaration.
488
13221aec
AB
4892021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 PR gdb/27994
492 * eval.c (structop_base_operation::evaluate_funcall): Pass
493 array_view instead of array to value_struct_elt.
494 * valarith.c (value_user_defined_op): Likewise.
495 * valops.c (typecmp): Change parameter type from array pointer to
496 array_view. Update header comment, and update body accordingly.
497 (search_struct_method): Likewise.
498 (value_struct_elt): Likewise.
499 * value.h (value_struct_elt): Update declaration.
500
79bd4d34
AB
5012021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 PR gdb/27994
504 * eval.c (structop_base_operation::evaluate_funcall): Add a
505 nullptr to the end of the args array, which should not be included
506 in the argument array_view. Pass all the arguments through to
507 value_struct_elt.
508 * valops.c (search_struct_method): Update header comment.
509 (value_struct_elt): Likewise.
510
3da4c644
TT
5112021-06-25 Tom Tromey <tom@tromey.com>
512
513 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
514 logic.
515
3e9f1ca1
TT
5162021-06-25 Tom Tromey <tom@tromey.com>
517
518 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
519 (scan_partial_symbols, partial_die_parent_scope)
520 (add_partial_symbol, add_partial_subprogram)
521 (compute_delayed_physnames, rust_union_quirks)
522 (process_full_comp_unit, process_full_type_unit)
523 (process_imported_unit_die, process_die, dw2_linkage_name)
524 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
525 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
526 (read_variable, dwarf2_get_subprogram_pc_bounds)
527 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
528 (dwarf2_attach_fn_fields_to_type)
529 (quirk_ada_thick_pointer_struct, read_structure_type)
530 (handle_struct_member_die, process_structure_scope)
531 (read_array_type, read_array_order, prototyped_function_p)
532 (read_subroutine_type, dwarf2_init_complex_target_type)
533 (read_base_type, read_subrange_type, read_unspecified_type)
534 (load_partial_dies, partial_die_info::fixup, set_cu_language)
535 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
536 (dwarf2_canonicalize_name, follow_die_offset)
537 (prepare_one_comp_unit): Update.
538 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
539
bf1dcdb3
TT
5402021-06-25 Tom Tromey <tom@tromey.com>
541
542 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
543 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
544 set language_defn. Handle DW_LANG_OpenCL.
545 (prepare_one_comp_unit): Check producer and set language_defn.
546
6b95f5ad
AB
5472021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
548
549 * NEWS: Mention Python BP_CATCHPOINT feature.
550 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
551 (bppy_init): Likewise.
552 (gdbpy_breakpoint_created): Likewise.
553
08080f97
AB
5542021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
555
556 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
557 bp_catchpoint.
558 (bpscm_want_scm_wrapper_p): Likewise.
559 (gdbscm_make_breakpoint): Likewise.
560 (breakpoint_integer_constants): Likewise.
561
81b327aa
AB
5622021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
563
564 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
565 for invalid breakpoint numbers, and unsupported breakpoint
566 numbers.
567
50a6759f
TT
5682021-06-25 Tom Tromey <tom@tromey.com>
569
570 * dwarf2/index-write.c (struct addrmap_index_data): Add
571 initializers.
572 <operator()>: Declare.
573 (addrmap_index_data::operator()): Rename from
574 add_address_entry_worker. Remove 'datap' parameter.
575 (write_address_map): Update.
576 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
577 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
578 parameters.
579 (dump_psymtab_addrmap): Update.
580 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
581 parameter.
582 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
583 (struct mutable_foreach_data): Remove.
584 (addrmap_mutable_foreach_worker): Update.
585 (addrmap_mutable_foreach): Remove 'data' parameter.
586 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
587 (addrmap_foreach): Remove 'data' parameter.
588
67470e9d
TT
5892021-06-25 Tom Tromey <tromey@adacore.com>
590
591 * python/py-type.c (typy_get_name): Decode an Ada type name.
592
8a3df5ac
TT
5932021-06-25 Tom Tromey <tromey@adacore.com>
594
595 * ada-lang.c (ada_decode): Add wrap parameter.
596 * ada-lang.h (ada_decode): Add wrap parameter.
597
134df964
LM
5982021-06-25 Luis Machado <luis.machado@linaro.org>
599
600 * corelow.c (core_target::core_target) Update to read target
601 description.
602
224506e9
SM
6032021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
604
605 * python/lib/gdb/__init__.py: Format.
606
ac0d67ed
SM
6072021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
608
609 * infrun.c (do_target_wait): Remove wait_ptid parameter.
610 (fetch_inferior_event): Adjust.
611
4e317a76
SM
6122021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
615 with name of chosen unwinder.
616 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
617 unwinder in debug message.
618
80d1206d
AS
6192021-06-22 Andreas Schwab <schwab@suse.de>
620
621 PR symtab/27999
622 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
623 DW_LLE_start_end.
624
80dc83fd
AB
6252021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * breakpoint.c (insert_bp_location): If we catch a
628 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
629 been deleted.
630
96f842cb
AB
6312021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * NEWS: Mention new target feature name.
634 * arch/riscv.c (riscv_create_target_description): GDB doesn't
635 currently create target descriptions containing vector registers.
636 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
637 variable.
638 <operator==>: Also compare vlen.
639 <hash>: Also include vlen.
640 * riscv-tdep.c (riscv_feature_name_vector): New static global.
641 (struct riscv_vector_feature): New struct.
642 (riscv_vector_feature): New static global.
643 (riscv_register_reggroup_p): Ensure vector registers are part of
644 the 'all' group, and part of the 'vector' group.
645 (riscv_dwarf_reg_to_regnum): Handle vector registers.
646 (riscv_gdbarch_init): Check vector register feature.
647 * riscv-tdep.h: Add vector registers to GDB's internal register
648 numbers, and to the DWARF register numbers.
649
d52b8007
AB
6502021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * NEWS: Mention the two new methods.
653 * python/py-frame.c (frapy_level): New function.
654 (frame_object_methods): Register 'level' method.
655 * python/py-unwind.c (pending_framepy_level): New function.
656 (pending_frame_object_methods): Register 'level' method.
657
8b9c48b2
AB
6582021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
659
660 * python/py-inferior.c (infpy_get_connection_num): Call
661 gdb_py_object_from_longest instead of PyLong_FromLong directly.
662
61e2dde2
AB
6632021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
666 saving user registers.
667
7e3941ac
MF
6682021-06-19 Mike Frysinger <vapier@gentoo.org>
669
670 * acinclude.m4: Delete most m4_include's of ../config files.
671 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
672 * aclocal.m4: Regenerate.
673 * configure: Regenerate.
674
336b30e5
PA
6752021-06-17 Pedro Alves <pedro@palves.net>
676
677 * scoped_ignore_signal.h (scoped_ignore_signal): Add
678 ConsumePending template parameter.
679 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
680 sigtimedwait if ConsumePending is false.
681 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
682 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
683 <m_ignore_signal>: Initialize with ConsumePending=false.
684
2af6d46f
PA
6852021-06-17 Pedro Alves <pedro@palves.net>
686
687 * Makefile.in (SELFTESTS_SRCS): Add
688 unittests/scoped_ignore_signal-selftests.c.
689 * unittests/scoped_ignore_signal-selftests.c: New.
690
6a7f1c20
PA
6912021-06-17 Pedro Alves <pedro@palves.net>
692
693 * gdbsupport/scoped_ignore_signal.h: New.
694 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
695 instead of <signal.h>. Don't include <unistd.h>.
696 (scoped_ignore_sigpipe): Remove.
697 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
698 instead of <signal.h>. Don't include <unistd.h>.
699 (lazy_init): New.
700 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
701 and lazy_init.
702
965febe5
PA
7032021-06-17 Pedro Alves <pedro@palves.net>
704
705 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
706 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
707 * inflow.h: Delete, moved to gdbsupport/ under a different name.
708 * ser-unix.c: Don't include "inflow.h". Include
709 "gdbsupport/scoped_ignore_sigttou.h".
710
82a5082e
PA
7112021-06-17 Pedro Alves <pedro@palves.net>
712
713 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
714 ...
715 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
716 tui_getc_1.
717 (cur_seq, start_sequence): New.
718 (tui_getc_1): Pass key escape sequences for curses control keys to
719 readline. Handle mouse and ctrl-l here.
720 (tui_resize_all): Disable/reenable the keypad if the command
721 window has the focus too.
722 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
723 setting.
724 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
725
7daf500d
SM
7262021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
727
728 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
729
8457e5ec
TV
7302021-06-16 Tom de Vries <tdevries@suse.de>
731
732 PR symtab/26327
733 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
734 (dwarf2_cu::get_builder): Declare and move ...
735 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
736 of ancestor. Assert return value is non-null.
737 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
738 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
739 (dwarf2_per_objfile): Add sym_cu field.
740
93df3340
AM
7412021-06-15 Alan Modra <amodra@gmail.com>
742
743 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
744
483ab96a
MF
7452021-06-14 Mike Frysinger <vapier@gentoo.org>
746
747 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
748 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
749
09db4332
JB
7502021-06-14 John Baldwin <jhb@FreeBSD.org>
751
752 * configure.ac: Check for <sys/procctl.h>.
753 * config.in, configure: Regenerate.
754 * fbsd-nat.c: Include <sys/procctl.h> if present.
755 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
756 (fbsd_nat_target::create_inferior)
757 (fbsd_nat_target::supports_disable_randomization): New.
758 * fbsd-nat.h (fbsd_nat_target::create_inferior)
759 (fbsd_nat_target::supports_disable_randomization): New.
760
739025e8
BE
7612021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
762
763 * compile/compile.c: Include missing header signal.h.
764
d424629d
JB
7652021-06-12 John Baldwin <jhb@FreeBSD.org>
766
767 * remote.c (remote_new_objfile): Fix indentation.
768
e2b9ea4b
KB
7692021-06-11 Kevin Buettner <kevinb@redhat.com>
770
771 * solib.c (libpthread_name_p): Match "libc" in addition
772 to "libpthread".
773 * linux-thread-db.c (libpthread_objfile_p): New function.
774 (libpthread_name_p): Adjust preexisting callers to use
775 libpthread_objfile_p().
776
873793ae
SM
7772021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
778
779 * dwarf2/loc.h (struct call_site_stuff): Remove.
780
48ec4c05
TT
7812021-06-11 Tom Tromey <tom@tromey.com>
782
783 PR rust/23427
784 * rust-parse.c (rust_parser::lex_identifier): Handle raw
785 identifiers.
786 (rust_lex_tests): Add raw identifier tests.
787
f9e59d06
LS
7882021-06-08 Lancelot Six <lsix@lancelotsix.com>
789
790 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
791 instead of '== None'.
792 (FrameVars): Use 'is not None' instead of '!= None'.
793 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
794 Use 'is None' instead of '== None' and 'is not None' instead of '!=
795 None'.
796
122373f7
SM
7972021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
798
799 * inferior.h (class inferior) <in_initial_library_scan>: New.
800 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
801 * infrun.c (follow_fork_inferior): Likewise.
802 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
803 by try_thread_db_load_1
804 (thread_db_load): Return early if in_initial_library_scan is
805 set.
806 * remote.c (remote_new_objfile): Return early if
807 in_initial_library_scan is set.
808
1b453aed
PA
8092021-06-07 Pedro Alves <pedro@palves.net>
810
811 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
812 ctor.
813 * symtab.h (struct symbol): Add defaulted copy assignment
814 operator.
815
fa6ec8ef
PA
8162021-06-07 Pedro Alves <pedro@palves.net>
817
818 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
819 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
820 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
821 local.
822
c57eb1a2
PA
8232021-06-07 Pedro Alves <pedro@palves.net>
824
825 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
826 (nat_sigval_t): ... this and remove typedef of same name.
827 (struct nat_siginfo): Rename to ...
828 (nat_siginfo_t): ... this and remove typedef of same name.
829 (struct compat_sigval): Rename to ...
830 (compat_sigval_t): ... this and remove typedef of same name.
831 (struct compat_siginfo): Rename to ...
832 (compat_siginfo_t): ... this and remove typedef of same name.
833 (struct compat_x32_siginfo): Rename to ...
834 (compat_x32_siginfo_t): ... this and remove typedef of same name.
835 (amd64_linux_siginfo_fixup_common): Adjust.
836
d8ca8e9f
PA
8372021-06-07 Pedro Alves <pedro@palves.net>
838
839 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
840 __attribute__ __aligned__ from the typedef to the struct.
841
a12a15e7
AB
8422021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
843
844 PR gdb/27847
845 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
846 type_align, and spot case where the alignment is unknown.
847
ecac8d1c
CL
8482021-06-07 Carl Love <cel@us.ibm.com>
849
850 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
851 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
852 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
853 ppc64_pcrel_linkage2_target): New functions.
854 (ppc64_standard_linkage9, ppc64_standard_linkage10,
855 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
856 instruction patterns.
857 (ppc64_standard_linkage9, ppc64_standard_linkage10,
858 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
859 in define MAX expression.
860 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
861 ppc64_standard_linkage10, ppc64_standard_linkage11,
862 ppc64_standard_linkage12.
863 * (ppc_insn_prefix_dform): New function.
864
cfa8e270
SM
8652021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
866
867 PR gdb/27899
868 * sparc-nat.c (sparc_fetch_inferior_registers): Set
869 inferior_ptid instead of using switch_to_thread.
870 (sparc_store_inferior_registers): Likewise.
871
4a977544
BE
8722021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
873
874 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
875 (compile_to_object): Ignore SIGPIPE before calling the plugin.
876
8ff8c543
TT
8772021-06-05 Tom Tromey <tom@tromey.com>
878
879 * data-directory/Makefile.in (Makefile): Use correct directory
880 name.
881
19d6d783
TT
8822021-06-05 Tom Tromey <tom@tromey.com>
883
884 * data-directory/Makefile.in (Makefile): Rewrite.
885
b316465f
TT
8862021-06-05 Tom Tromey <tromey@adacore.com>
887
888 * configure: Rebuild.
889 * configure.ac: Add ACX_NONCANONICAL_TARGET.
890
ae61ef2c
SV
8912021-06-05 Shahab Vahedi <shahab@synopsys.com>
892
893 * NEWS: Document 'set disassembler-options' support for the ARC
894 target.
895 * arc-tdep.c (arc_gdbarch_init): Set
896 'gdbarch_valid_disassembler_options'.
897
386de171
TT
8982021-06-04 Tom Tromey <tromey@adacore.com>
899
900 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
901 parameter.
902 * dwarf2/loc.c (dwarf2_evaluate_property) <case
903 PROP_VARIABLE_NAME>: New case.
904 (compute_var_value): New function.
905 (sect_variable_value): Use compute_var_value.
906 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
907 (var_decl_name): New function.
908 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
909 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
910 constant.
911 (union dynamic_prop_data) <variable_name>: New member.
912 (struct dynamic_prop) <variable_name, set_variable_name>: New
913 methods.
914
4351271e
AB
9152021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 * remote.c (remote_target)
918 <select_thread_for_ambiguous_stop_reply>: Add additional debug
919 output.
920
a5375566
HD
9212021-06-04 Hannes Domani <ssbssa@yahoo.de>
922
923 * python/py-tui.c (class tui_py_window): Add click function.
924 (tui_py_window::click): Likewise.
925
1bace02a
HD
9262021-06-04 Hannes Domani <ssbssa@yahoo.de>
927
928 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
929 * tui/tui-data.h (struct tui_win_info): Add click function.
930 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
931 (tui_deprep_terminal): Disable mouse events.
932 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
933 * tui/tui.c (tui_disable): Disable mouse events.
934
df5bc734
MH
9352021-06-03 Magne Hov <mhov@undo.io>
936
937 PR python/27841
938 * eval.c (expression::evaluate): Check inferior_ptid.
939
415c8100
PA
9402021-06-03 Pedro Alves <pedro@palves.net>
941
942 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
943 affiliation.
944 (Global Maintainers): Update my address.
945 (Write After Approval): Remove stale entry.
946
83810881
JB
9472021-06-03 John Baldwin <jhb@FreeBSD.org>
948
949 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
950 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
951 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
952 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
953 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
954 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
955 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
956 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
957 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
958 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
959 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
960 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
961 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
962 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
963 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
964 (fbsd_report_signal_info): New.
965 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
966 report_signal_info method.
967
4c958d79
MH
9682021-06-03 Magne Hov <mhov@undo.io>
969
970 * MAINTAINERS (Write After Approval): Add Magne Hov.
971
6ac5237c
HD
9722021-06-03 Hannes Domani <ssbssa@yahoo.de>
973
974 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
975 gdb.SYMBOL_LABEL_DOMAIN constant.
976
aeeb758d
JB
9772021-06-01 John Baldwin <jhb@FreeBSD.org>
978
979 * infrun.c (handle_inferior_event): Only call
980 gdbarch_displaced_step_restore_all_in_ptid if
981 gdbarch_supports_displaced_stepping is true.
982
906f72d4
TT
9832021-06-01 Tom Tromey <tromey@adacore.com>
984
985 * Makefile.in (all-data-directory): Remove.
986 (data-directory/Makefile): Remove.
987
ba56237d
TT
9882021-06-01 Tom Tromey <tromey@adacore.com>
989
990 * configure: Rebuild.
991 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
992
2adf1781
TT
9932021-06-01 Tom Tromey <tromey@adacore.com>
994
995 * silent-rules.mk (ECHO_CC): New variable.
996
bdbbcd57
TT
9972021-06-01 Tom Tromey <tromey@adacore.com>
998
999 * Makefile.in (SUBDIRS): Add testsuite.
1000 (all): Don't exclude testsuite.
1001
f99d1d37
TT
10022021-06-01 Tom Tromey <tromey@adacore.com>
1003
1004 * configure.ac: Copy some code from testsuite/configure.ac.
1005 (enable_libctf): Subst this, not ENABLE_LIBCTF.
1006 * configure: Rebuild.
1007
17d305ef
TV
10082021-06-01 Tom de Vries <tdevries@suse.de>
1009
1010 PR symtab/26096
1011 * minsyms.c (msymbol_is_cold_clone): New function.
1012 (msymbol_is_function): Use msymbol_is_cold_clone.
1013
9b715c68
AB
10142021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
1015 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 PR gdb/14383
1018 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
1019 (ALLDEPFILES): Add arm-none-tdep.c
1020 * arm-none-tdep.c: New file.
1021 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
1022
b4b3e2de
AB
10232021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
1024 Richard Bunt <richard.bunt@arm.com>
1025
1026 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
1027 check for why the backtrace stopped.
1028
9ea36493
SM
10292021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1030
1031 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
1032 Update all callers.
1033 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
1034 signature parameter, update all callers.
1035 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
1036 signature parameter.
1037
46c6bcf6
SM
10382021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * dwarf2/read.h (signatured_type_up): New, use where possible.
1041
4631503b
SM
10422021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1043
1044 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
1045
cc653233
TT
10462021-05-30 Tom Tromey <tom@tromey.com>
1047
1048 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
1049 is_debug_types.
1050 (create_signatured_type_table_from_index)
1051 (create_signatured_type_table_from_debug_names, add_type_unit)
1052 (read_comp_units_from_section): Update.
1053
c96e8b04
TT
10542021-05-30 Tom Tromey <tom@tromey.com>
1055
1056 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
1057 m_num_psymtabs>: Remove.
1058 (resize_symtabs): Update.
1059 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
1060 (dwarf2_per_bfd::allocate_signatured_type): Update.
1061
24b21115
SM
10622021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1063
1064 * Fix tab after space indentation issues throughout.
1065
01add95b
SM
10662021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1067
1068 * Fix some indentation mistakes throughout.
1069
055c879f
SM
10702021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1071
1072 * breakpoint.h (iterate_over_bp_locations): Remove. Update
1073 users to use all_bp_locations.
1074 (all_bp_locations): New.
1075 * breakpoint.c (all_bp_locations): Make non-static.
1076 (iterate_over_bp_locations): Remove.
1077
240edef6
SM
10782021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1079
1080 * breakpoint.h (iterate_over_breakpoints): Remove. Update
1081 callers to use all_breakpoints or all_breakpoints_safe.
1082 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
1083 all_breakpoints_safe): Move here.
1084 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
1085 non-static.
1086 (iterate_over_breakpoints): Remove.
1087 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1088 Return void.
1089 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
1090 return value logic.
1091 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
1092
e0d9a270
SM
10932021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1094
1095 * breakpoint.c (get_first_locp_gte_addr): Remove.
1096 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
1097 all_bp_locations_at_addr.
1098 (struct bp_locations_at_addr_range): New.
1099 (all_bp_locations_at_addr): New.
1100 (bp_locations_compare_addrs): New.
1101
48d7020b
SM
11022021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
1105 all_bp_locations.
1106 (all_bp_locations): New.
1107
5d51cd5d
SM
11082021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1109
1110 * breakpoint.c (bp_locations): Change to std::vector, update all
1111 users.
1112 (bp_locations_count): Remove.
1113 (update_global_location_list): Change to work with indices
1114 rather than bp_location**.
1115
40cb8ca5
SM
11162021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1117
1118 * breakpoint.h (bp_locations_range): New.
1119 (struct breakpoint) <locations>: New. Use where possible.
1120
f6d17b2b
SM
11212021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * breakpoint.h (all_tracepoints): Remove.
1124 (breakpoint_iterator): Move here.
1125 (struct tracepoint_filter): New.
1126 (tracepoint_iterator): New.
1127 (tracepoint_range): New.
1128 (all_tracepoints): New.
1129 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
1130 all_tracepoints.
1131 (breakpoint_iterator): Move to header.
1132 (all_tracepoints): New.
1133 * tracepoint.c (start_tracing): Adjust.
1134
1428b37a
SM
11352021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * breakpoint.c (breakpoint_safe_range): New.
1138 (all_breakpoints_safe): New. Use instead of
1139 ALL_BREAKPOINTS_SAFE where possible.
1140
43892fdf
SM
11412021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1142
1143 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
1144 all_breakpoints.
1145 (breakpoint_iterator): New.
1146 (breakpoint_range): New.
1147 (all_breakpoints): New.
1148
bdef5723
HD
11492021-05-27 Hannes Domani <ssbssa@yahoo.de>
1150
1151 * python/py-tui.c (tui_py_window::output): Add full_window
1152 argument.
1153 (gdbpy_tui_write): Parse "full_window" argument.
1154
d5a6313e
SM
11552021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1156
1157 * make-init-c: Add option to reverse function calls.
1158
f39632d9
SM
11592021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * Makefile.in (INIT_FILES_FILTER_OUT): New.
1162 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
1163 (stamp-init): Use make-init-c.
1164 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
1165 * silent-rules.mk (ECHO_INIT_C): Change.
1166 * make-init-c: New file.
1167
5e84b7ee
SM
11682021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1169
1170 * command.h (add_alias_cmd): Accept target as
1171 cmd_list_element. Update callers.
1172
e0f25bd9
SM
11732021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1174
1175 * command.h (add_info_alias): Accept target as
1176 cmd_list_element. Update callers.
1177
3947f654
SM
11782021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1179
1180 * command.h (add_com_alias): Accept target as
1181 cmd_list_element. Update callers.
1182
7bd22f56
SM
11832021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1184
1185 * python/py-param.c (add_setshow_generic): Use return values of
1186 add_setshow functions.
1187
9f260536
SM
11882021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1189
1190 * mi/mi-main.c (_initialize_mi_main):
1191 * python/py-auto-load.c (gdbpy_initialize_auto_load):
1192 * remote.c (_initialize_remote):
1193
af7f8f52
SM
11942021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1195
1196 * command.h (set_show_commands): New.
1197 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
1198 add_setshow_boolean_cmd, add_setshow_filename_cmd,
1199 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
1200 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
1201 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
1202 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1203 Return set_show_commands. Adjust callers.
1204 * cli/cli-decode.c (add_setshow_cmd_full): Return
1205 set_show_commands, remove result parameters, adjust callers.
1206
248f7165
TV
12072021-05-27 Tom de Vries <tdevries@suse.de>
1208
1209 PR symtab/27919
1210 * dwarf2/read.c (process_psymtab_comp_unit):
1211
2152b4fd
TV
12122021-05-27 Tom de Vries <tdevries@suse.de>
1213
1214 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
1215 error.
1216
6dcd1193
TV
12172021-05-27 Tom de Vries <tdevries@suse.de>
1218
1219 PR symtab/27898
1220 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
1221 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
1222 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
1223 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
1224 load_all_dies init.
1225 (dwarf2_per_cu_data): Remove load_all_dies field.
1226
11bb5c41
SM
12272021-05-26 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * regcache.c (reg_buffer::reg_buffer): Default-initialize
1230 m_registers array.
1231
ef5f598c
TT
12322021-05-26 Tom Tromey <tom@tromey.com>
1233
1234 * dwarf2/read.c (allocate_type_unit_groups_table)
1235 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
1236 htab_delete_entry.
1237 (free_line_header_voidp): Remove.
1238 * completer.c
1239 (completion_tracker::completion_hash_entry::deleter): Remove.
1240 (completion_tracker::discard_completions): Use htab_delete_entry.
1241 * utils.h (htab_delete_entry): New template function.
1242
a56889ae
HD
12432021-05-24 Hannes Domani <ssbssa@yahoo.de>
1244
1245 * python/py-tui.c (tui_py_window::refresh_window):
1246 Avoid flickering.
1247
fbf3c4b9
TV
12482021-05-23 Tom de Vries <tdevries@suse.de>
1249
1250 PR tdep/27822
1251 * target.h (struct target_ops): Mention target_thread_architecture in
1252 read_description comment.
1253 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
1254 pid to determine if process is 64-bit or 32-bit.
1255 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1256 Same.
1257 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
1258 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
1259 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
1260 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
1261 Likewise, use pid to determine if kernel supports reading VFP
1262 registers.
1263
8569d6e1
PW
12642021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1265
1266 * main.c (enum cmdarg_kind): Fix option type comments for
1267 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
1268
778ae9cc
TV
12692021-05-21 Tom de Vries <tdevries@suse.de>
1270
1271 PR testsuite/25047
1272 * contrib/cc-with-tweaks.sh: Handle -l.
1273
6d1a09b7
TV
12742021-05-21 Tom de Vries <tdevries@suse.de>
1275
1276 PR breakpoint/27889
1277 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1278 objects. Call get_jiter_objfile_data with the_objfile.
1279
1487a14e
SM
12802021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * linespec.c (linespec_p): Remove. Replace all uses with
1283 "linespec *".
1284
bb6203bf
AH
12852021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1286 Pedro Alves <pedro@palves.net>
1287
1288 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
1289 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
1290 command_line_up instead of struct command_line.
1291 (build_command_line): Likewise.
1292 (get_command_line): Update the cmd function call parameter.
1293 (process_next_line): Use unique_ptr command_line_up instead
1294 of struct command_line.
1295 (recurse_read_control_structure): Change the the type of
1296 next to command_line_up.
1297 (read_command_lines_1): Change type of `next' to be
1298 command_line_up and update all references of `next'
1299 accordingly.
1300
ed3130b7
AH
13012021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1302
1303 * MAINTAINERS (Write After Approval): Add myself.
1304
5433e20e
JB
13052021-05-19 John Baldwin <jhb@FreeBSD.org>
1306
1307 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1308
a5523cc3
AH
13092021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1310
1311 * inflow.c (new_tty): Do not leak tty.
1312
cd53fa40
TT
13132021-05-17 Tom Tromey <tom@tromey.com>
1314
1315 * dwarf2/read.h: Update include.
1316 * dwarf2/read.c: Update include.
1317 * dwarf2/line-header.c: Update include.
1318 * dwarf2/cu.h: Update include.
1319 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1320 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1321 * Makefile.in (COMMON_SFILES): Update.
1322
347212b8
TT
13232021-05-17 Tom Tromey <tom@tromey.com>
1324
1325 * dwarf2/read.c (maybe_queue_comp_unit)
1326 (dwarf2_per_objfile::age_comp_units): Update.
1327 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1328 dwarf2_cu methods.
1329 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1330 add_dependence>: New methods.
1331 <m_dependencies>: Add "m_" prefix. Now private.
1332 <m_mark>: Add "m_" prefix.
1333 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1334 (dwarf2_mark_helper): New function.
1335 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1336
839118f9
TT
13372021-05-17 Tom Tromey <tom@tromey.com>
1338
1339 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1340 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1341 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1342 * dwarf2/cu.c: New file.
1343 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1344
8ae78a44
TT
13452021-05-17 Tom Tromey <tom@tromey.com>
1346
1347 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1348 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1349 Move to cu.h.
1350 * dwarf2/cu.h: New file.
1351
c1c0a7e1
AB
13522021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1355 set brace-list-open to 0 for C and C++ modes.
1356
9e541c79
TT
13572021-05-17 Tom Tromey <tromey@adacore.com>
1358
1359 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1360 if frame is null.
1361
59173216
TT
13622021-05-17 Tom Tromey <tromey@adacore.com>
1363
1364 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1365 (group_from_gid): Subtract one from strncpy length.
1366
baea2f9d
TT
13672021-05-17 Tom Tromey <tromey@adacore.com>
1368
1369 * source.c (add_path): Check 'p' before using 'p[-1]'.
1370
473ab964
TT
13712021-05-17 Tom Tromey <tromey@adacore.com>
1372
1373 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1374 (dwarf2_per_cu_data_up): New typedef.
1375 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1376 <all_comp_units>: Use dwarf2_per_cu_data_up.
1377 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1378 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1379 (create_cu_from_index_list): Likewise.
1380 (create_signatured_type_table_from_index)
1381 (create_cus_from_debug_names_list, add_type_unit)
1382 (read_comp_units_from_section): Update.
1383 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1384 (run_test): Update.
1385
16e0020b
TT
13862021-05-17 Tom Tromey <tom@tromey.com>
1387
1388 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1389 (sort_tu_by_abbrev_offset): Remove.
1390 (build_type_psymtabs): Update.
1391
91e159e9
SM
13922021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1393
1394 * py-project.toml: New.
1395 * gdb-gdb.py.in: Re-format.
1396
034dce7a
SM
13972021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1398
1399 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1400 New, use it.
1401 * command.h (cmd_func_p): Remove.
1402 * cli/cli-decode.c (cmd_func_p): Remove.
1403
1be99b11
SM
14042021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1405
1406 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1407
99858724
SM
14082021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1411 to...
1412 <alias_target>: ... this.
1413 (add_alias_cmd): Rename old to target.
1414 (add_info_alias): Rename old_name to target_name.
1415 (add_com_alias): Likewise.
1416
14b42fc4
SM
14172021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * Rename "prefixlist" parameters to "subcommands" throughout.
1420 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1421 <subcommands>: ... this.
1422 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1423 (lookup_cmd_with_subcommands): ... this.
1424
ecd0a6b3
SM
14252021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1426
1427 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1428
413b49c2
SM
14292021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * cli/cli-decode.h (prefixname): Make const, move implementation
1432 to cli/cli-decode.c.
1433 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1434
ea11a98d
WP
14352021-05-16 Weimin Pan <weimin.pan@oracle.com>
1436
1437 * ctfread.c (new_symbol): Set function address.
1438 (read_func_kind_type): Remove incorrect type name setting.
1439 Don't copy name returned from ctf_type_ame_raw throughout file.
1440
887e7158
TT
14412021-05-14 Tom Tromey <tom@tromey.com>
1442
1443 * rust-lang.c (rust_language::val_print_struct)
1444 (rust_language::print_enum): Use common_val_print, not
1445 value_print_inner.
1446
55789354
TBA
14472021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1448
1449 * python/py-inferior.c (infpy_get_connection_num): New function.
1450 (inferior_object_getset): Add a new element for 'connection_num'.
1451 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1452
2f63ec5c
AB
14532021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1456 argument type, update and re-wrap, header comment.
1457 (remote_target::commit_resumed): Convert any_process_wildcard and
1458 may_global_wildcard_vcont from int to bool.
1459
ecf25064
KC
14602021-05-14 Kent Cheung <kent.cheung@arm.com>
1461
1462 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1463 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1464 just before printing child values.
1465 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1466 printing string representation.
1467 * python/py-prettyprint.c (print_children): Check max_depth just
1468 before printing child values.
1469 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1470 printing string representation.
1471
df68e12b
MF
14722021-05-14 Mike Frysinger <vapier@gentoo.org>
1473
1474 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1475 sim/callback.h & sim/sim.h.
1476
183aaaf7
MF
14772021-05-13 Mike Frysinger <vapier@gentoo.org>
1478
1479 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1480 sim-regno.h include.
1481
737358ba
SM
14822021-05-13 Simon Marchi <simon.marchi@efficios.com>
1483
1484 * inf-child.h (inf_child_target) <follow_exec>: New.
1485 * inf-child.c (inf_child_target::follow_exec): New.
1486
294c36eb
SM
14872021-05-13 Simon Marchi <simon.marchi@efficios.com>
1488
1489 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1490 parameter.
1491 (target_follow_exec): Likewise.
1492 * target.c (target_follow_exec): Add ptid_t parameter.
1493 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1494 don't push target nor create thread.
1495 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1496 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1497 (thread_db_target::follow_exec): New.
1498 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1499 (remote_target::follow_exec): Call
1500 process_stratum_target::follow_exec.
1501 * target-delegates.c: Re-generate.
1502
2af87c85
SM
15032021-05-13 Simon Marchi <simon.marchi@efficios.com>
1504
1505 * infrun.c (follow_exec): Call target_follow_fork when
1506 follow-exec-mode is same.
1507 * target.h (target_follow_fork): Improve doc.
1508
0b2256f7
SM
15092021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1510
1511 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1512 Remove.
1513 * cli/cli-setshow.c (do_show_command): Adjust.
1514
0746f49b
LM
15152021-05-13 Luis Machado <luis.machado@linaro.org>
1516
1517 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1518 include the last address in the range.
1519
4b8cb9dd
SM
15202021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1521
1522 * python/python-internal.h (gdbpy_parse_command_name): Return
1523 gdb::unique_xmalloc_ptr.
1524 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1525 (cmdpy_init): Adjust.
1526 * python/py-param.c (parmpy_init): Adjust.
1527 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1528 when done.
1529
ee35ce82
GB
15302021-05-12 George Barrett <bob@bob131.so>
1531
1532 * NEWS (Guile API): Note the addition of the new procedure.
1533 * guile/scm-value.c (gdbscm_value_const_value): Add
1534 implementation of value-const-value procedure.
1535 (value_functions): Add value-const-value procedure.
1536
9d4fc61d
GB
15372021-05-12 George Barrett <bob@bob131.so>
1538
1539 * NEWS (Guile API): Note the addition of new procedures.
1540 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1541 for reference value creation.
1542 (gdbscm_value_reference_value): Add implementation of
1543 value-reference-value procedure.
1544 (gdbscm_value_rvalue_reference_value): Add implementation of
1545 value-rvalue-reference-value procedure.
1546 (value_functions): Add value-reference-value procedure. Add
1547 value-rvalue-reference-value procedure.
1548
97cef6b7
GB
15492021-05-12 George Barrett <bob@bob131.so>
1550
1551 * guile/scm-type.c (type_integer_constants): Add binding for
1552 TYPE_CODE_RVALUE_REF.
1553 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1554 dereferencing of rvalue references.
1555 * NEWS (Guile API): Note improvements in rvalue reference support.
1556
d51344c9
MM
15572021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1558
1559 * btrace.c (handle_pt_insn_events): Ignore status update enable
1560 events.
1561
f2a883a8
SM
15622021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1565 indentation.
1566
64f30eb0
SM
15672021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1568
1569 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1570
db1f6cd6
LS
15712021-05-10 Lancelot Six <lsix@lancelotsix.com>
1572
1573 PR gdb/27614
1574 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1575 argument.
1576
31aceaef
SM
15772021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1578
1579 * nat/linux-waitpid.c (status_to_str): Show signal name.
1580
75140e3b
AB
15812021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1582
1583 * python/py-breakpoint.c (pybp_debug): New static global.
1584 (show_pybp_debug): New function.
1585 (pybp_debug_printf): Define.
1586 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1587 (gdbpy_breakpoint_created): Add some debugging.
1588 (gdbpy_breakpoint_deleted): Likewise.
1589 (gdbpy_breakpoint_modified): Likewise.
1590 (_initialize_py_breakpoint): New function.
1591
1ef40c13
AB
15922021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * python/py-unwind.c (pyuw_debug): Convert to bool.
1595 (show_pyuw_debug): New function.
1596 (pyuw_debug_printf): Define.
1597 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1598 (pyuw_this_id): Convert to new debug print macros.
1599 (pyuw_prev_register): Likewise.
1600 (pyuw_sniffer): Likewise.
1601 (pyuw_dealloc_cache): Likewise.
1602 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1603 show function when registering.
1604
927c4e35
AB
16052021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * dummy-frame.c (fprint_dummy_frames): Convert use of
1608 fprint_frame_id to use frame_id::to_string.
1609 * frame.c (fprint_field): Delete.
1610 (fprint_frame_id): Moved to...
1611 (frame_id::to_string): ...this, rewritten to return a string.
1612 (fprint_frame): Convert use of fprint_frame_id to use
1613 frame_id::to_string.
1614 (compute_frame_id): Likewise.
1615 (frame_id_p): Likewise.
1616 (frame_id_eq): Likewise.
1617 (frame_id_inner): Likewise.
1618 * frame.h (struct frame_id) <to_string>: New member function.
1619 (fprint_frame_id): Delete declaration.
1620 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1621 fprint_frame_id to use frame_id::to_string.
1622 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1623 * python/py-unwind.c (unwind_infopy_str): Likewise.
1624 (pyuw_this_id): Likewise.
1625
8d06918f
SM
16262021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1627
1628 * nat/linux-waitpid.c (status_to_str): Return std::string.
1629 * nat/linux-waitpid.h (status_to_str): Likewise.
1630 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1631 (linux_nat_target::attach): Adjust.
1632 (linux_handle_extended_wait): Adjust.
1633 (wait_lwp): Adjust.
1634 (stop_wait_callback): Adjust.
1635 (linux_nat_filter_event): Adjust.
1636 (linux_nat_wait_1): Adjust.
1637 * nat/linux-waitpid.c (status_to_str): Adjust.
1638 * nat/linux-waitpid.h (status_to_str): Adjust.
1639
550e9289
SM
16402021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1641
1642 * infrun.h (infrun_debug_printf): Add missing space.
1643
4655f850
PA
16442021-05-08 Pedro Alves <pedro@palves.net>
1645
1646 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1647 Remove references to HAVE_PERSONALITY.
1648 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1649 (maybe_disable_address_space_randomization)
1650 (~maybe_disable_address_space_randomizatio): Remove references to
1651 HAVE_PERSONALITY.
1652 * config.in, configure: Regenerate.
1653
1845e254
AB
16542021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1657 include.
1658 (source_script_with_search): Perform tilde expansion.
1659
91e3c425
SM
16602021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1661
1662 * target-descriptions.c (struct target_desc_info) <filename>:
1663 Make std::string.
1664 (copy_inferior_target_desc_info): Adjust.
1665 (target_desc_info_free): Adjust.
1666 (target_find_description): Adjust.
1667 (set_tdesc_filename_cmd): Adjust.
1668 (show_tdesc_filename_cmd): Adjust.
1669 (unset_tdesc_filename_cmd): Adjust.
1670 (maint_print_c_tdesc_cmd): Adjust.
1671
0b2f7ade
SM
16722021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1673
1674 * target-descriptions.c (struct target_desc_info): Initialize
1675 fields.
1676 (get_tdesc_info): Use new.
1677 (target_desc_info_free): Use delete.
1678
820c4490
SM
16792021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1680
1681 * target-descriptions.c (struct target_desc_info) <fetched>:
1682 bool.
1683 (target_find_description): Adjust.
1684 (target_clear_description): Adjust.
1685
c2962e6a
SM
16862021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 * target-descriptions.c (struct target_desc_info) <tdesc>:
1689 Adjust doc.
1690 (target_desc_fetched): Remove.
1691 (current_target_desc): Remove.
1692 (target_description_filename): Remove.
1693 (target_find_description): Adjust.
1694 (target_clear_description): Adjust.
1695 (target_current_description): Adjust.
1696 (set_tdesc_filename_cmd): Adjust.
1697 (show_tdesc_filename_cmd): Adjust.
1698 (unset_tdesc_filename_cmd): Adjust.
1699 (maint_print_c_tdesc_cmd): Adjust.
1700 (maint_print_xml_tdesc_cmd): Adjust.
1701
8a82de58
AB
17022021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1703
1704 * infcmd.c (notice_new_inferior): Change parameter type.
1705 * inferior.h (notice_new_inferior): Change parameter type.
1706 * remote.c (remote_notice_new_inferior): Change parameter type to
1707 bool. Also update type of local variable to bool.
1708 (remote_target::update_thread_list): Change type of local variable
1709 to bool.
1710 (remote_target::process_stop_reply): Pass bool instead of int to
1711 remote_notice_new_inferior.
1712
bedc4734
SM
17132021-05-07 Simon Marchi <simon.marchi@efficios.com>
1714
1715 * target.c (target_stack::unpush): Call target_ops::find_beneath
1716 to get the target beneath `t`.
1717
27f0a431
SM
17182021-05-07 Simon Marchi <simon.marchi@efficios.com>
1719
1720 * target.c (target_close): Check in all inferiors that the
1721 target is not pushed.
1722
1d1669e4
AM
17232021-05-07 Aaron Merey <amerey@redhat.com>
1724
1725 * debuginfod-support.c (debuginfod_init): Remove.
1726 (get_debuginfod_client): New function.
1727
2698f5ea
TT
17282021-05-07 Tom Tromey <tom@tromey.com>
1729
1730 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1731 * utils.c (streq_hash): Remove.
1732 * utils.h (streq_hash): Don't declare.
1733 * completer.c (completion_tracker::discard_completions): Update
1734 comment.
1735 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1736
13123da8
SM
17372021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1738
1739 * Re-format all Python files using black.
1740
9589edb8
AB
17412021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1744 function return type.
1745 * guile/guile.c (gdbscm_source_script): Update to handle change in
1746 gdbscm_safe_source_script.
1747 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1748 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1749 type.
1750
ec66d6ea
SM
17512021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1752
1753 * inferior.h (class inferior) <args>: Change type to
1754 unique_xmalloc_ptr.
1755 * inferior.c (inferior::~inferior): Don't free args.
1756 * infcmd.c (get_inferior_args): Adjust.
1757 (set_inferior_args): Adjust.
1758
0618ecf6
AB
17592021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1762 breakpoint locations when the breakpoint actually has a location.
1763
79aabb73
TBA
17642021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1765
1766 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1767 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1768 mi_cmd_break_condition.
1769 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1770 * breakpoint.h (set_breakpoint_condition): Declare a new
1771 overload.
1772 * breakpoint.c (set_breakpoint_condition): New overloaded function
1773 extracted out from ...
1774 (condition_command): ... this.
1775 * NEWS: Mention the change.
1776
10e578d7
TBA
17772021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1778
1779 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1780 '--force-condition' flag to force the condition in the
1781 '-break-insert' and '-dprintf-insert' commands.
1782 * NEWS: Mention the change.
1783
225bda24
TV
17842021-05-04 Tom de Vries <tdevries@suse.de>
1785
1786 PR guile/27806
1787 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1788 memory functions.
1789
b8efb248
TT
17902021-04-30 Tom Tromey <tom@tromey.com>
1791
1792 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1793 (add_signatured_type_cu_to_table): Remove.
1794 (create_debug_type_hash_table): Assume dwo_file is non-null.
1795 (create_debug_types_hash_table): Update comment.
1796 (create_all_type_units): Remove.
1797 (sort_tu_by_abbrev_offset): Update comment.
1798 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1799 (build_type_psymtabs): Remove.
1800 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1801 Update.
1802 (read_comp_units_from_section): Add types_htab, section_kind
1803 parameters.
1804 (create_all_comp_units): Read type units.
1805
91eea9cc
TT
18062021-04-30 Tom Tromey <tom@tromey.com>
1807
1808 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1809 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1810 <get_cu>: Now inline.
1811 <all_type_units>: Remove.
1812 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1813 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1814 (dwarf2_per_bfd::get_tu): Remove.
1815 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1816 (create_signatured_type_table_from_index)
1817 (create_signatured_type_table_from_debug_names)
1818 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1819 (dwarf2_base_index_functions::expand_all_symtabs)
1820 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1821 (dwarf2_base_index_functions::map_symbol_filenames)
1822 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1823 (add_signatured_type_cu_to_table, create_all_type_units)
1824 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1825 (create_all_comp_units): Update.
1826 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1827 (write_debug_names): Update.
1828
0d305d5c
TT
18292021-04-30 Tom Tromey <tom@tromey.com>
1830
1831 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1832 allocate_signatured_type>: Change return type.
1833 <all_comp_units, all_type_units>: Hold unique pointers.
1834 (struct dwarf2_per_cu_data): Add constructor and initializers.
1835 (struct signatured_type): Derive from dwarf2_per_cu_data.
1836 * dwarf2/read.c (type_unit_group): Derive from
1837 dwarf2_per_cu_data.
1838 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1839 (dwarf2_per_bfd::get_tu)
1840 (dwarf2_per_bfd::allocate_signatured_type)
1841 (dwarf2_per_bfd::allocate_signatured_type)
1842 (create_cu_from_index_list, create_cus_from_index_list)
1843 (create_signatured_type_table_from_index)
1844 (create_signatured_type_table_from_debug_names)
1845 (create_addrmap_from_aranges)
1846 (dwarf2_base_index_functions::find_last_source_symtab)
1847 (dw_expand_symtabs_matching_file_matcher)
1848 (dwarf2_gdb_index::expand_symtabs_matching)
1849 (dwarf2_base_index_functions::map_symbol_filenames)
1850 (create_cus_from_debug_names_list)
1851 (dw2_debug_names_iterator::next)
1852 (dwarf2_debug_names_index::expand_symtabs_matching)
1853 (create_debug_type_hash_table, add_type_unit)
1854 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1855 Update.
1856 (allocate_type_unit_groups_table): Use delete.
1857 (create_type_unit_group): Change return type. Use new.
1858 (get_type_unit_group, build_type_psymtabs_1)
1859 (build_type_psymtab_dependencies)
1860 (process_skeletonless_type_unit, set_partial_user)
1861 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1862 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1863 (read_signatured_type): Update.
1864 (dwarf2_find_containing_comp_unit): Change type of
1865 'all_comp_units'.
1866 (run_test): Update.
1867 (dwarf2_per_bfd::allocate_per_cu)
1868 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1869 Use new.
1870 (add_signatured_type_cu_to_table): Update.
1871 * dwarf2/index-write.c (write_one_signatured_type)
1872 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1873 (write_debug_names): Update.
1874
1bee48c7
TT
18752021-04-30 Tom Tromey <tromey@adacore.com>
1876
1877 * nat/windows-nat.h (get_image_name): Don't declare.
1878 * nat/windows-nat.c (get_image_name): Now static.
1879
e228ef97
TT
18802021-04-30 Tom Tromey <tromey@adacore.com>
1881
1882 * windows-nat.c (windows_nat::handle_load_dll): Update.
1883 (windows_nat_target::get_windows_debug_event): Call
1884 dll_loaded_event.
1885 (windows_add_all_dlls, windows_add_dll): Move to
1886 nat/windows-nat.c.
1887 * nat/windows-nat.h (handle_load_dll): Change parameters.
1888 (dll_loaded_event, windows_add_all_dlls): Declare.
1889 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1890 from windows-nat.c.
1891 (dll_loaded_event): New function.
1892
de071872
TT
18932021-04-30 Tom Tromey <tromey@adacore.com>
1894
1895 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1896 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1897 Declare.
1898 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1899 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1900
9e439f00
TT
19012021-04-30 Tom Tromey <tromey@adacore.com>
1902
1903 * windows-nat.c: Move code to nat/windows-nat.[ch].
1904 (_initialize_windows_nat): Call initialize_loadable.
1905 * nat/windows-nat.h (AdjustTokenPrivileges)
1906 (DebugActiveProcessStop, DebugBreakProcess)
1907 (DebugSetProcessKillOnExit, EnumProcessModules)
1908 (EnumProcessModulesEx, GetModuleInformation)
1909 (GetModuleFileNameExA, GetModuleFileNameExW)
1910 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1911 (GetCurrentConsoleFont, Wow64SuspendThread)
1912 (Wow64GetThreadContext, Wow64SetThreadContext)
1913 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1914 (AdjustTokenPrivileges_ftype)
1915 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1916 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1917 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1918 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1919 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1920 (GetConsoleFontSize_ftype)
1921 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1922 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1923 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1924 (initialize_loadable): Declare.
1925 * nat/windows-nat.c (AdjustTokenPrivileges)
1926 (DebugActiveProcessStop, DebugBreakProcess)
1927 (DebugSetProcessKillOnExit, EnumProcessModules)
1928 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1929 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1930 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1931 (Wow64GetThreadContext, Wow64SetThreadContext)
1932 (Wow64GetThreadSelectorEntry): Define.
1933 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1934 from windows-nat.c.
1935 (initialize_loadable): Likewise, and rename.
1936
1053c638
TT
19372021-04-30 Tom Tromey <tromey@adacore.com>
1938
1939 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1940 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1941 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1942 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1943 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1944 (bad): New template functions.
1945 (_initialize_loadable): Update.
1946
2869ac4b
TT
19472021-04-30 Tom Tromey <tromey@adacore.com>
1948
1949 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1950
e197dfae
SM
19512021-04-29 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * auto-load.h: Split namespace declaration.
1954
89ba430c
SM
19552021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1956
1957 * infrun.c (save_waitstatus): Move variables to inner scope.
1958
8eb82ba1
AB
19592021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1960
1961 * NEWS: Fix typo and stray full stop.
1962
db2534b7
TT
19632021-04-28 Tom Tromey <tromey@adacore.com>
1964
1965 * ada-exp.y (primary): Use new type for null pointer.
1966 * ada-lang.c (ada_type_match): Remove "may_deref"
1967 parameter. Handle null pointer.
1968 (ada_args_match): Update.
1969 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1970 Handle null pointer.
1971
edeaceda
AB
19722021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * NEWS: Mention new commands.
1975 * python/python.c (python_ignore_environment): New static global.
1976 (show_python_ignore_environment): New function.
1977 (set_python_ignore_environment): New function.
1978 (python_dont_write_bytecode): New static global.
1979 (show_python_dont_write_bytecode): New function.
1980 (set_python_dont_write_bytecode): New function.
1981 (_initialize_python): Register new commands.
1982
041ca48e
AB
19832021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * extension-priv.h (struct extension_language_ops): Rename
1986 'finish_initialization' to 'initialize'.
1987 * extension.c (finish_ext_lang_initialization): Renamed to...
1988 (ext_lang_initialization): ...this, update comment, and updated
1989 the calls to reflect the change in struct extension_language_ops.
1990 * extension.h (finish_ext_lang_initialization): Renamed to...
1991 (ext_lang_initialization): ...this.
1992 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1993 (gdbscm_initialize): ...this, update comment at definition.
1994 (guile_extension_ops): Update.
1995 * main.c (captured_main_1): Update call to
1996 finish_ext_lang_initialization.
1997 * python/python.c (gdbpy_finish_initialization): Rename to...
1998 (gdbpy_initialize): ...this, update comment at definition, and
1999 update call to do_finish_initialization.
2000 (python_extension_ops): Update.
2001 (do_finish_initialization): Rename to...
2002 (do_initialize): ...this, and update comment.
2003
1178f01a
AB
20042021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2005
2006 * main.c (captured_main_1): Add a call to
2007 finish_ext_lang_initialization.
2008 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
2009
880ae75a
AB
20102021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2011
2012 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
2013 (gdbscm_finish_initialization): Add code moved from
2014 _initialize_guile.
2015 (_initialize_guile): Move code to gdbscm_finish_initialization.
2016 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
2017 _initialize_scm_arch.
2018 (_initialize_scm_arch): New function.
2019 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
2020 into _initialize_scm_block.
2021 (_initialize_scm_block): New function.
2022 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
2023 into _initialize_scm_frame.
2024 (_initialize_scm_frame): New function.
2025 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
2026 into _initialize_scm_objfile.
2027 (_initialize_scm_objfile): New function.
2028 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
2029 code into _initialize_scm_progspace.
2030 (_initialize_scm_progspace): New function.
2031 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
2032 into _initialize_scm_symbol.
2033 (_initialize_scm_symbol): New function.
2034 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
2035 into _initialize_scm_symtab.
2036 (_initialize_scm_symtab): New function.
2037 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
2038 _initialize_scm_type.
2039 (_initialize_scm_type): New function.
2040
8e3685bf
AB
20412021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * python/py-arch.c (_initialize_py_arch): New function.
2044 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
2045 * python/py-block.c (_initialize_py_block): New function.
2046 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
2047 * python/py-inferior.c (_initialize_py_inferior): New function.
2048 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
2049 * python/py-objfile.c (_initialize_py_objfile): New function.
2050 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
2051 * python/py-progspace.c (_initialize_py_progspace): New function.
2052 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
2053 * python/py-registers.c (_initialize_py_registers): New function.
2054 (gdbpy_initialize_registers): Move code to
2055 _initialize_py_registers.
2056 * python/py-symbol.c (_initialize_py_symbol): New function.
2057 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
2058 * python/py-symtab.c (_initialize_py_symtab): New function.
2059 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
2060 * python/py-type.c (_initialize_py_type): New function.
2061 (gdbpy_initialize_types): Move code to _initialize_py_type.
2062 * python/py-unwind.c (_initialize_py_unwind): New function.
2063 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
2064 * python/python.c (_initialize_python): Move call to
2065 do_start_initialization to gdbpy_finish_initialization.
2066 (gdbpy_finish_initialization): Add call to
2067 do_start_initialization.
2068
913832e9
AB
20692021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * extension.c (struct scoped_default_signal): New struct.
2072 (scoped_default_sigint): New typedef.
2073 (finish_ext_lang_initialization): Make use of
2074 scoped_default_sigint.
2075
a3b5ef3e
AB
20762021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * main.c (captured_main_1): Don't pass argument to gdb_init.
2079 * top.c (gdb_init): Remove unused argument, and add header
2080 comment.
2081 * top.h (gdb_init): Remove argument.
2082
b9f90c72
LM
20832021-04-27 Luis Machado <luis.machado@linaro.org>
2084
2085 * psymtab.c (psymbol_functions::dump): Output newline.
2086 Remove wrap.
2087 * symmisc.c (dump_objfile): Likewise.
2088
2c473def
MW
20892021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2090 Simon Marchi <simon.marchi@polymtl.ca>
2091
2092 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
2093 when attaching the 'auto_load_new_objfile' observer, so
2094 other observers can specify it as a dependency.
2095 * gdb/auto-load.h (struct token): Declare
2096 'auto_load_new_objfile_observer_token' as token to be used
2097 for the 'auto_load_new_objfile' observer.
2098 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
2099 'python_new_objfile' observer depend on 'auto_load_new_objfile'
2100 observer, so it gets notified after the latter.
2101
9a6e099f
MW
21022021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2103 Simon Marchi <simon.marchi@polymtl.ca>
2104
2105 * unittests/observable-selftests.c (dependency_test_counters):
2106 New.
2107 (observer_token0, observer_token1, observer_token2,
2108 observer_token3, observer_token4, observer_token5): New.
2109 (struct dependency_observer_data): New struct.
2110 (observer_dependency_test_callback): New function.
2111 (test_observers): New.
2112 (run_dependency_test): New function.
2113 (test_dependency): New.
2114 (_initialize_observer_selftest): Register dependency test.
2115
bea3329b
SM
21162021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
2117
2118 PR gdb/27773
2119 * cli/cli-dump.c (dump_binary_file): Check result of
2120 gdb_fopen_cloexec.
2121
c290cb01
ST
21222021-04-25 Sergei Trofimovich <siarheit@google.com>
2123
2124 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
2125 by passing `process_stratum_target*` parameter.
2126
fbb46296
LS
21272021-04-25 Lancelot Six <lsix@lancelotsix.com>
2128
2129 PR gdb/22640
2130 * typeprint.h (struct type_print_options): Add print_in_hex
2131 flag.
2132 (struct print_offset_data): Add print_in_hex flag, add a
2133 constructor accepting a type_print_options* argument.
2134 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
2135 default value for print_in_hex.
2136 (print_offset_data::indentation): Allow more horizontal space.
2137 (print_offset_data::print_offset_data): Add ctor.
2138 (print_offset_data::maybe_print_hole, print_offset_data::update):
2139 Handle the print_in_hex flag.
2140 (whatis_exp): Handle 'x' and 'd' flags.
2141 (print_offsets_and_sizes_in_hex): Declare.
2142 (set_print_offsets_and_sizes_in_hex): Create.
2143 (show_print_offsets_and_sizes_in_hex): Create.
2144 (_initialize_typeprint): Update help message for the ptype
2145 command, register the 'set print type hex' and 'show print type
2146 hex' commands.
2147 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
2148 (c_type_print_base): Construct the print_offset_data
2149 object using the type_print_optons parameter.
2150 * rust-lang.c (rust_language::print_type): Construct the
2151 print_offset_data object using the type_print_optons parameter.
2152 * NEWS: Mention the new flags of the ptype command.
2153
18bbba46
LS
21542021-04-25 Lancelot Six <lsix@lancelotsix.com>
2155
2156 * typeprint.h (struct type_print_options): Move before
2157 print_offset_data.
2158
77393c9b
JB
21592021-04-25 Joel Brobecker <brobecker@adacore.com>
2160
2161 GDB 10.2 released.
2162
98c897e3
SM
21632021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
2164
2165 * observable.c (observer_debug): Change to bool.
2166
9fc29955
AB
21672021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * dwarf2/read.c: Add 'unordered_set' include.
2170 (dwarf2_base_index_functions::map_symbol_filenames): Replace
2171 'visited' hash table with 'qfn_cache' unordered_set. Remove use
2172 of per_Bfd->filenames_cache cache, and use function local
2173 filenames_cache instead. Reindent.
2174 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
2175
0406545d
SM
21762021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2177
2178 * breakpoint.c (iterate_over_bp_locations): Change callback to
2179 function view, remove data parameter.
2180 * breakpoint.h (iterate_over_bp_locations): Likewise.
2181 * record-full.c (record_full_sync_record_breakpoints): Remove
2182 data parameter.
2183
432ce4cf
TT
21842021-04-22 Tom Tromey <tom@tromey.com>
2185
2186 * c-typeprint.c (c_type_print_base_struct_union): Use
2187 print_spaces_filtered_with_print_options.
2188
e25d6d93
SM
21892021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2190
2191 PR gdb/27757
2192 * python/py-type.c (typy_range): Check that bounds are constant
2193 before accessing them as such.
2194 * guile/scm-type.c (gdbscm_type_range): Likewise.
2195
4efeb0d3
TBA
21962021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2197
2198 * Makefile.in (COMMON_SFILES): Remove continuations.c.
2199 * inferior.c (inferior::add_continuation): New method, adapted
2200 from 'add_inferior_continuation'.
2201 (inferior::do_all_continuations): New method, adapted from
2202 'do_all_inferior_continuations'.
2203 (inferior::~inferior): Clear the list of continuations directly.
2204 * inferior.h (class inferior) <continuations>: Rename into...
2205 <m_continuations>: ...this and make private.
2206 * continuations.c: Remove.
2207 * continuations.h: Remove.
2208 * event-top.c: Don't include "continuations.h".
2209
2210 Update the users below.
2211 * inf-loop.c (inferior_event_handler)
2212 * infcmd.c (attach_command)
2213 (notice_new_inferior): Update.
2214
c4c493de
TBA
22152021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2216
2217 * inferior.h (class inferior) <continuations>: Change the type
2218 to be an std::list of std::function's.
2219 Update the references and uses below.
2220 * continuations.c (struct continuation): Delete.
2221 (make_continuation): Delete.
2222 (do_my_continuations_1): Delete.
2223 (do_my_continuations): Delete.
2224 (discard_my_continuations_1): Delete.
2225 (discard_my_continuations): Delete.
2226 (add_inferior_continuation): Update.
2227 (do_all_inferior_continuations): Update.
2228 (discard_all_inferior_continuations): Update.
2229 * continuations.h (add_inferior_continuation): Update to take
2230 an std::function as the parameter.
2231 * infcmd.c (struct attach_command_continuation_args): Delete.
2232 (attach_command_continuation): Delete.
2233 (attach_command_continuation_free_args): Delete.
2234 (attach_command): Update.
2235 (notice_new_inferior): Update.
2236
1194676e
TBA
22372021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2238
2239 * continuations.h: Update the general comment.
2240 * inferior.h (class inferior) <continuations>: Update the comment.
2241 * interps.c: Do not include "continuations.h".
2242
35682f0a
TBA
22432021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2244
2245 * continuations.h (do_all_inferior_continuations): Remove the 'err'
2246 parameter. Update the references below.
2247 * continuations.c (do_my_continuations_1)
2248 (do_my_continuations)
2249 (do_all_inferior_continuations): Update.
2250 * inf-loop.c (inferior_event_handler): Update.
2251 * infcmd.c (attach_command_continuation): Update.
2252
6fee5eee
TBA
22532021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2254
2255 * infcmd.c (attach_post_wait): Update the function comment.
2256
27d0790a
TBA
22572021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2258
2259 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
2260 Update the references below.
2261 (struct attach_command_continuation_args)
2262 (attach_command_continuation)
2263 (attach_command_continuation_free_args)
2264 (attach_command)
2265 (notice_new_inferior): Update to remove the reference to 'args'.
2266
c39ebbf4
TV
22672021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2268 Tom de Vries <tdevries@suse.de>
2269
2270 PR remote/27710
2271 * remote.c (remote_target_is_non_stop_p): New function.
2272 * remote.h (remote_target_is_non_stop_p): Declare.
2273 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2274 to check non-stopness using notif_state->remote rather current target.
2275
22f80c0f
TT
22762021-04-22 Tom Tromey <tom@tromey.com>
2277
2278 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2279 (struct typed_val_int) <val>: Now ULONGEST.
2280 (rust_parser::parse_array_type): Remove negative check.
2281 (rust_lex_int_test): Change 'value' to ULONGEST.
2282
05f3c0f0
AB
22832021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
2284
2285 * arch-utils.c (default_addressable_memory_unit_size): Return a
2286 value based on bfd's bits per byte.
2287
7e7a35fb
TT
22882021-04-21 Tom Tromey <tom@tromey.com>
2289
2290 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2291 unsigned char.
2292 (struct dwarf2_per_cu_data): Rearrange.
2293 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2294 unsigned char.
2295 (struct comp_unit_head): Rearrange.
2296 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
2297
ff507520
TV
22982021-04-21 Tom de Vries <tdevries@suse.de>
2299
2300 PR build/27681
2301 * configure.ac: Remove --without-included-regex/--with-included-regex.
2302 * config.in: Regenerate.
2303 * configure: Regenerate.
2304 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2305
10a636cc
TBA
23062021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2307
2308 * breakpoint.h (create_breakpoint): Add a new parameter,
2309 'force_condition'.
2310 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2311 argument when 'parse_extra' is false to check if the condition
2312 is invalid at all of the breakpoint locations.
2313 Update the users below.
2314 (break_command_1)
2315 (dprintf_command)
2316 (trace_command)
2317 (ftrace_command)
2318 (strace_command)
2319 (create_tracepoint_from_upload): Update.
2320 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2321 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2322 * python/py-breakpoint.c (bppy_init): Update.
2323 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2324
85c88e2a
TBA
23252021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2326
2327 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2328 disabled-by-condition locations on MI-like output.
2329 (breakpoint_1): Do not display the disabled-by-condition footnote
2330 if the output is MI-like.
2331
fd34472c
FC
23322021-04-21 Frederic Cambus <fred@statdns.com>
2333
2334 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2335 update year range in generated copyright notices.
2336
184dcd81
FW
23372021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2338
2339 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2340 qualifier_seq_noopt.
2341
525174e8
FW
23422021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2343
2344 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2345
f5dc2ee3
AB
23462021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2349 (producer_is_icc): Replace use of std::regex with gdb's
2350 compiled_regex.
2351
42c2c694
TT
23522021-04-17 Tom Tromey <tom@tromey.com>
2353
2354 PR gdb/23743:
2355 * dwarf2/read.c (class offset_view): New.
2356 (struct symbol_table_slot): Remove.
2357 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2358 <symbol_name_index, symbol_vec_index>: New methods.
2359 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2360 Rewrite.
2361 (read_gdb_index_from_buffer): Update.
2362 (struct dw2_symtab_iterator) <vec>: Change type.
2363 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2364 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2365 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2366 <append_array, append_offset>: New methods.
2367 (write_hash_table, add_address_entry, write_gdbindex_1)
2368 (write_debug_names): Update.
2369 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2370
da314dd3
TT
23712021-04-17 Tom Tromey <tom@tromey.com>
2372
2373 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2374 partial_symtabs.
2375
0b7b2c2a
TT
23762021-04-17 Tom Tromey <tom@tromey.com>
2377
2378 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2379 from map_matching_symbols. Change parameters.
2380 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2381 Rename from map_matching_symbols. Change parameters.
2382 * dwarf2/read.c (struct dwarf2_gdb_index)
2383 <expand_matching_symbols>: Rename from map_matching_symbols.
2384 Change parameters.
2385 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2386 Rename from map_matching_symbols. Change parameters.
2387 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2388 dw2_map_matching_symbols. Change parameters.
2389 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2390 implementation.
2391 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2392 map_matching_symbols. Change parameters.
2393 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2394 from map_matching_symbols. Change parameters.
2395 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2396 map_matching_symbols. Change parameters.
2397 * ada-lang.c (map_matching_symbols): New function.
2398 (add_nonlocal_symbols): Update.
2399
90160b57
TT
24002021-04-17 Tom Tromey <tom@tromey.com>
2401
2402 * quick-symbol.h (struct quick_symbol_functions)
2403 <expand_symtabs_with_fullname>: Remove.
2404 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2405 Remove.
2406 * psympriv.h (struct psymbol_functions)
2407 <expand_symtabs_with_fullname>: Remove.
2408 * dwarf2/read.c (struct dwarf2_base_index_functions)
2409 <expand_symtabs_with_fullname>: Remove.
2410 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2411 Remove.
2412 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2413 Update comment.
2414 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2415 Rewrite.
2416
7089bd88
TT
24172021-04-17 Tom Tromey <tom@tromey.com>
2418
2419 * symfile-debug.c (objfile::expand_symtabs_for_function):
2420 Rewrite.
2421 * quick-symbol.h (struct quick_symbol_functions)
2422 <expand_symtabs_for_function>: Remove.
2423 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2424 Remove.
2425 * psympriv.h (struct psymbol_functions)
2426 <expand_symtabs_for_function>: Remove.
2427 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2428 Update comment.
2429 * dwarf2/read.c (struct dwarf2_gdb_index)
2430 <expand_symtabs_for_function>: Remove.
2431 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2432 Remove.
2433 (find_slot_in_mapped_hash): Remove.
2434 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2435 (dw2_symtab_iter_init): Remove one overload.
2436 (dwarf2_gdb_index::expand_symtabs_for_function)
2437 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2438
536a40f3
TT
24392021-04-17 Tom Tromey <tom@tromey.com>
2440
2441 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2442 Rewrite.
2443 * quick-symbol.h (struct quick_symbol_functions)
2444 <map_symtabs_matching_filename>: Remove.
2445 * psymtab.c (partial_map_expand_apply)
2446 (psymbol_functions::map_symtabs_matching_filename): Remove.
2447 * psympriv.h (struct psymbol_functions)
2448 <map_symtabs_matching_filename>: Remove.
2449 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2450 Update comment.
2451 * dwarf2/read.c (struct dwarf2_base_index_functions)
2452 <map_symtabs_matching_filename>: Remove.
2453 (dw2_map_expand_apply)
2454 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2455 Remove.
2456
84d865e3
TT
24572021-04-17 Tom Tromey <tom@tromey.com>
2458
2459 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2460 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2461 Remove.
2462 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2463 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2464 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2465 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2466 Remove.
2467 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2468 (dwarf2_gdb_index::lookup_symbol)
2469 (dwarf2_debug_names_index::lookup_symbol): Remove.
2470
3bfa51a7
TT
24712021-04-17 Tom Tromey <tom@tromey.com>
2472
2473 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2474 * symmisc.c (maintenance_expand_symtabs): Update.
2475 * symfile.c (expand_symtabs_matching): Update.
2476 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2477 parameter.
2478 * quick-symbol.h (struct quick_symbol_functions)
2479 <expand_symtabs_matching>: Add 'domain' parameter.
2480 * psymtab.c (recursively_search_psymtabs)
2481 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2482 parameter.
2483 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2484 Add 'domain' parameter.
2485 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2486 'domain' parameter.
2487 * linespec.c (iterate_over_all_matching_symtabs): Update.
2488 * dwarf2/read.c (struct dwarf2_gdb_index)
2489 <expand_symtabs_matching>: Add 'domain' parameter.
2490 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2491 'domain' parameter.
2492 (dw2_expand_symtabs_matching)
2493 (dwarf2_gdb_index::expand_symtabs_matching)
2494 (dw2_debug_names_iterator)
2495 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2496 parameter.
2497
03a8ea51
TT
24982021-04-17 Tom Tromey <tom@tromey.com>
2499
2500 * symtab.c (global_symbol_searcher::expand_symtabs)
2501 (default_collect_symbol_completion_matches_break_on): Update.
2502 * symmisc.c (maintenance_expand_symtabs): Update.
2503 * symfile.h (expand_symtabs_matching): Add search_flags
2504 parameter.
2505 * symfile.c (expand_symtabs_matching): Add search_flags
2506 parameter.
2507 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2508 search_flags parameter.
2509 * quick-symbol.h (struct quick_symbol_functions)
2510 <expand_symtabs_matching>: Add search_flags parameter.
2511 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2512 * psymtab.c (recursively_search_psymtabs)
2513 (psymbol_functions::expand_symtabs_matching): Add search_flags
2514 parameter.
2515 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2516 Add search_flags parameter.
2517 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2518 search_flags parameter.
2519 * linespec.c (iterate_over_all_matching_symtabs): Update.
2520 * dwarf2/read.c (struct dwarf2_gdb_index)
2521 <expand_symtabs_matching>: Add search_flags parameter.
2522 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2523 search_flags parameter.
2524 (dw2_map_matching_symbols): Update.
2525 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2526 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2527 parameter.
2528 (dw2_debug_names_iterator): Change block_index to search flags.
2529 <m_block_index>: Likewise.
2530 (dw2_debug_names_iterator::next)
2531 (dwarf2_debug_names_index::lookup_symbol)
2532 (dwarf2_debug_names_index::expand_symtabs_for_function)
2533 (dwarf2_debug_names_index::map_matching_symbols)
2534 (dwarf2_debug_names_index::map_matching_symbols): Update.
2535 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2536 search_flags parameter.
2537 * ada-lang.c (ada_add_global_exceptions)
2538 (collect_symbol_completion_matches): Update.
2539
df35e626
TT
25402021-04-17 Tom Tromey <tom@tromey.com>
2541
2542 * symtab.c (default_collect_symbol_completion_matches_break_on):
2543 Update.
2544 * symfile.h (expand_symtabs_matching): Return bool.
2545 * symfile.c (expand_symtabs_matching): Return bool.
2546 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2547 bool.
2548 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2549 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2550 bool.
2551 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2552 bool.
2553 * psympriv.h (struct psymbol_functions)
2554 <expand_symtabs_matching>: Return bool.
2555 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2556 bool.
2557 * dwarf2/read.c (struct dwarf2_gdb_index)
2558 <expand_symtabs_matching>: Return bool.
2559 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2560 Return bool.
2561 (dw2_expand_symtabs_matching_symbol): Return bool.
2562 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2563 (dw2_expand_symtabs_matching)
2564 (dwarf2_gdb_index::expand_symtabs_matching)
2565 (dwarf2_debug_names_index::expand_symtabs_matching)
2566 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2567
e357e990
TT
25682021-04-17 Tom Tromey <tom@tromey.com>
2569
2570 * quick-symbol.h (enum block_search_flag_values): New.
2571 (block_search_flags): New enum flags type.
2572
3cbc7ac3
TT
25732021-04-16 Tom Tromey <tom@tromey.com>
2574
2575 * rust-parse.c: New file.
2576 * rust-exp.y: Remove.
2577 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2578 (SFILES): Remove rust-exp.y.
2579 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2580
1b6b755e
LM
25812021-04-16 Luis Machado <luis.machado@linaro.org>
2582
2583 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2584
c45ecc9d
JB
25852021-04-15 John Baldwin <jhb@FreeBSD.org>
2586
2587 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2588 use throughout file.
2589
a15a276b
TT
25902021-04-15 Tom Tromey <tromey@adacore.com>
2591
2592 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2593 arrays.
2594
644a2e75
TT
25952021-04-15 Tom Tromey <tromey@adacore.com>
2596
2597 * printcmd.c (print_variable_and_value): Use
2598 common_val_print_checked.
2599
9e5e03df
TT
26002021-04-15 Tom Tromey <tromey@adacore.com>
2601
2602 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2603 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2604 Update.
2605 * p-exp.y (variable): Update.
2606 * m2-exp.y (variable): Update.
2607 * go-exp.y (variable): Update.
2608 * expprint.c (dump_for_expression): New overload.
2609 * expop.h (check_objfile): New overload.
2610 (check_constant): New overload.
2611 (class var_value_operation): Use block_symbol.
2612 <get_symbol>: Rewrite.
2613 * eval.c (var_value_operation::evaluate)
2614 (var_value_operation::evaluate_funcall)
2615 (var_value_operation::evaluate_for_address)
2616 (var_value_operation::evaluate_for_address)
2617 (var_value_operation::evaluate_with_coercion)
2618 (var_value_operation::evaluate_for_sizeof)
2619 (var_value_operation::evaluate_for_cast): Update.
2620 * d-exp.y (PrimaryExpression): Update.
2621 * c-exp.y (variable): Update.
2622 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2623 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2624 (ada_var_value_operation::evaluate)
2625 (ada_var_value_operation::resolve)
2626 (ada_funcall_operation::resolve): Update.
2627 * ada-exp.y (write_var_from_sym, write_object_renaming)
2628 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2629 (maybe_overload): Update.
2630 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2631
5809fbf2
TT
26322021-04-15 Tom Tromey <tom@tromey.com>
2633 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * NEWS: Add entry.
2636 * main.c (captured_main_1): Call check_quiet_mode.
2637 * top.c (startup_quiet): New global.
2638 (check_quiet_mode): New function.
2639 (show_startup_quiet): New function.
2640 (init_main): Register new command.
2641 * top.h (check_quiet_mode): Declare.
2642
92e4e97a
AB
26432021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2644
2645 PR cli/25956
2646 * NEWS: Mention new early init files and command line options.
2647 * config.in: Regenerate.
2648 * configure: Regenerate.
2649 * configure.ac: Define GDBEARLYINIT.
2650 * main.c (get_earlyinit_files): New function.
2651 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2652 CMDARG_EARLYINIT_COMMAND.
2653 (captured_main_1): Add support for new command line flags, and for
2654 processing startup files.
2655 (print_gdb_help): Include startup files in the output.
2656
54b4dcc5
AB
26572021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2660 (relocate_file_path_maybe_in_datadir): ...this.
2661 (class gdb_initfile_finder): New class.
2662 (get_init_files): Now uses gdb_initfile_finder.
2663 (print_gdb_help): Print 'None found' when there are no init files.
2664
34dc0f95
TBA
26652021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2666
2667 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2668 corresponding child of the abstract DIE when iterating the
2669 children of the concrete DIE.
2670
329534fd
TV
26712021-04-13 Tom de Vries <tdevries@suse.de>
2672
2673 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2674 type to regoff_t *.
2675
d9d2ef05
LM
26762021-04-13 Luis Machado <luis.machado@linaro.org>
2677
2678 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2679 hex values.
2680
c8a37944
WS
26812021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2682
2683 * rs6000-tdep.c: Add support for single-stepping of
2684 prefixed instructions.
2685
b722acca
WS
26862021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2687
e3d528d7
WS
2688 PR gdb/27525
2689 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2690 handle the addpcis/lnia instruction.
2691
26922021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2693
b722acca
WS
2694 * MAINTAINERS (Write After Approval): Add myself.
2695
6ba4cb84
CL
26962021-4-12 Carl Love <cel@us.ibm.com>
2697
2698 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2699 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2700 float128.
2701
d4717483
SM
27022021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2705 * nat/windows-nat.h: Likewise.
2706
b3885679
EZ
27072021-04-10 Eli Zaretskii <eliz@gnu.org>
2708
2709 * windows-nat.c (windows_nat::handle_load_dll): Call
2710 windows_add_dll if get_image_name failed to glean the name of the
2711 DLL by using the lpImageName pointer.
2712 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2713 (windows_add_dll): Now does what windows_add_all_dlls did before,
2714 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2715 specifies the address where the DLL was loaded into the inferior,
2716 and looks for the single DLL loaded at that address.
2717
1ef6a596
LM
27182021-04-09 Luis Machado <luis.machado@linaro.org>
2719
2720 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2721
83a559f7
DQ
27222021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2723
2724 * darwin-nat.c (darwin_nat_target::resume): Remove status
2725 variable.
2726
16e311ab
FW
27272021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2728
2729 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2730 prologue end for Intel compilers.
2731 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2732 * producer.c (producer_is_icc_ge_19): New function.
2733 * producer.h (producer_is_icc_ge_19): New declaration.
2734
fbb3bcfc
FW
27352021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2736
2737 * producer.c: (producer_is_icc): Update for new version scheme.
2738 (producer_parsing_tests): Update names and expected results.
2739 * producer.h: (producer_is_icc): Update comment accordingly.
2740
e97007b6
SM
27412021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2742
2743 * target.h (struct target_ops) <follow_fork>: Return void.
2744 (target_follow_fork): Likewise.
2745 * target.c (default_follow_fork): Likewise.
2746 (target_follow_fork): Likewise.
2747 * infrun.c (follow_fork_inferior): Adjust.
2748 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2749 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2750 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2751 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2752 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2753 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2754 * remote.c (class remote_target) <follow_fork>: Likewise.
2755 (remote_target::follow_fork): Likewise.
2756 * target-delegates.c: Re-generate.
2757
dc2b480f
WP
27582021-04-07 Weimin Pan <weimin.pan@oracle.com>
2759
2760 * ctfread.c (fetch_tid_type): New function, use throughout file.
2761 (read_forward_type): New function.
2762 (read_type_record): Call read_forward_type.
2763
0a703a4c
AB
27642021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2765
2766 * f-exp.h (class fortran_structop_operation): New class.
2767 * f-exp.y (exp): Create fortran_structop_operation instead of the
2768 generic structop_operation.
2769 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2770 expression as EVAL_NORMAL if the result type was dynamic so we can
2771 extract the actual array bounds.
2772 (fortran_structop_operation::evaluate): New function.
2773
27742021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2775
2776 * eval.c (evaluate_subexp_standard): Remove
2777 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2778 STRUCTOP_PTR.
2779
30ab3586
AB
27802021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2781
2782 * valops.c (value_cast): Call value_deeply_equal before performing
2783 any cast.
2784
5e18990f
AB
27852021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2786
2787 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2788 the function.
2789
56d467f4
CT
27902021-04-07 Caroline Tice <cmtice@google.com>
2791
2792 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2793 the search paths used resolve relative location of .dwo file.
2794
1fd999d9
AB
27952021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2798 assert.
2799 (dwarf2_section_info::get_file_name): Add an assert.
2800 (dwarf2_section_info::read_string): Display a minimal, sane error
2801 when the dwarf2_section_info is not associated with a bfd section.
2802
79c02443
AB
28032021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2804
2805 * top.c (staged_gdb_datadir): Update comment.
2806 (set_gdb_datadir): Copy the value of gdb_datadir back into
2807 staged_datadir.
2808 (init_main): Initialise staged_gdb_datadir.
2809
340d00fb
TV
28102021-04-06 Tom de Vries <tdevries@suse.de>
2811
2812 PR breakpoints/25884
2813 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2814 stepping range.
2815
d811a7cf
TV
28162021-04-06 Tom de Vries <tdevries@suse.de>
2817
2818 PR tui/27680
2819 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2820 to style.parse.
2821
306b445a
SM
28222021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2823
2824 * avr-tdep.c (avr_frame_unwind_cache): Use
2825 trad_frame_saved_reg::is_addr.
2826
9161c89a
SM
28272021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2828
2829 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2830 adjust callers.
2831
0072c873
SM
28322021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2833
2834 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2835 objfile parameter for objfile_per_bfd_storage, adjust callers.
2836 (struct standard_psymtab) <standard_psymtab>: Likewise.
2837 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2838 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2839 * ctfread.c (struct ctf_psymtab): Likewise.
2840 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2841 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2842 (dwarf2_create_include_psymtab): Likewise.
2843 * objfiles.h (struct objfile_per_bfd_storage)
2844 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2845 <get_bfd>: New method.
2846 <m_bfd>: New field.
2847 * objfiles.c (get_objfile_bfd_data): Adjust.
2848
9984dd99
SM
28492021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2850
2851 * psymtab.c (partial_symtab::partial_symtab): Change
2852 last_objfile_name to be an std::string.
2853 * symfile.c (allocate_symtab): Likewise.
2854
4a4f97c1
SM
28552021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2856
2857 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2858 methods.
2859 (struct objfile) <intern>: Use
2860 objfile::objfile_per_bfd_storage::intern.
2861
0672875f
SM
28622021-04-01 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2865 with type::is_flag_enum.
2866
9902b327
SM
28672021-04-01 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * gdbtypes.h (struct type) <is_flag_enum,
2870 set_is_flag_enum>: New methods.
2871 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2872 write call sites to use type::set_is_flag_enum.
2873
3bc440a2
SM
28742021-04-01 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2877 with type::is_declared_class.
2878
aa70e35c
SM
28792021-04-01 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * gdbtypes.h (struct type) <is_declared_class,
2882 set_is_declared_class>: New methods.
2883 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2884 write call sites to use type::set_is_declared_class.
2885
bfb9f5dc
BS
28862021-02-28 Boris Staletic <boris.staletic@gmail.com>
2887
2888 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2889 to avoid deprecation warnings.
2890
733f5eea
ML
28912021-04-01 Martin Liska <mliska@suse.cz>
2892
2893 * cp-name-parser.y: Use startswith instead of strncmp.
2894 * m2-exp.y: Likewise.
2895 * macroexp.c (substitute_args): Likewise.
2896 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2897 * rust-exp.y: Likewise.
2898
af82f89d
TT
28992021-03-31 Tom Tromey <tom@tromey.com>
2900
2901 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2902 with dw2_map_matching_symbols.
2903 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2904 dw2_expand_symtabs_matching.
2905
3570682a
TT
29062021-03-31 Tom Tromey <tromey@adacore.com>
2907
2908 * dwarf2/stringify.h: Fix typo.
2909
8a91fbdf
SM
29102021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2911
2912 PR gdb/27541
2913 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2914 with objfiles using READNOW.
2915
9f67fc59
TT
29162021-03-29 Tom Tromey <tromey@adacore.com>
2917
2918 * top.c (check_frame_language_change): Update.
2919 * language.c (language_info): Remove parameter.
2920 * language.h (language_info): Remove parameter.
2921
9b8ffbf4
LM
29222021-03-29 Luis Machado <luis.machado@linaro.org>
2923
2924 * compile/compile.c (get_args): Don't add empty argv entries.
2925
25b48839
RO
29262021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2927
2928 gdb:
2929 * procfs.c (procfs_target::attach): Define inf.
2930 Use it.
2931 (procfs_target::create_inferior): Likewise.
2932
edc02ceb
TT
29332021-03-28 Tom Tromey <tom@tromey.com>
2934
2935 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2936 (elf_symfile_read): Simplify.
2937 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2938 (make_lazy_dwarf_reader): New function.
2939 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2940 (dwarf2_initialize_objfile): Return void. Remove index_kind
2941 parameter. Push on 'qf' list.
2942 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2943 type. Remove 'index_kind' parameter.
2944 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2945
6e23d91a
TT
29462021-03-27 Tom Tromey <tom@tromey.com>
2947
2948 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2949
594b8948
TT
29502021-03-27 Tom Tromey <tom@tromey.com>
2951
2952 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2953
efe1ecd8
LS
29542021-03-26 Lancelot Six <lsix@lancelotsix.com>
2955
2956 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2957 rid of 'local'.
2958
f4655dee
TT
29592021-03-26 Tom Tromey <tom@tromey.com>
2960
2961 * symtab.c (struct output_source_filename_data): Add 'output'
2962 method and operator().
2963 (output_source_filename_data::output): Rename from
2964 output_source_filename.
2965 (output_partial_symbol_filename): Remove.
2966 (info_sources_command): Update.
2967 (struct add_partial_filename_data): Add operator().
2968 (add_partial_filename_data::operator()): Rename from
2969 maybe_add_partial_symtab_filename.
2970 (make_source_files_completion_list): Update.
2971 * symfile.c (quick_symbol_functions): Update.
2972 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2973 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2974 'need_fullname'. Remove 'data' parameter.
2975 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2976 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2977 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2978 Change type of 'fun' and 'need_fullname'. Remove 'data'
2979 parameter.
2980 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2981 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2982 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2983 parameter.
2984 (mi_cmd_file_list_exec_source_files): Update.
2985 * dwarf2/read.c
2986 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2987
2315bb2d
TT
29882021-03-26 Tom Tromey <tom@tromey.com>
2989
2990 * ada-lang.c (struct match_data): Add operator().
2991 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2992 (callback): Remove 'callback'.
2993
e2cd5ca4
TT
29942021-03-26 Tom Tromey <tom@tromey.com>
2995
2996 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2997 call make_ignore_params once.
2998
cd43f63e
TT
29992021-03-26 Tom Tromey <tom@tromey.com>
3000
3001 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
3002 "user" check.
3003
b4b1a226
SM
30042021-03-26 Simon Marchi <simon.marchi@efficios.com>
3005 Pedro Alves <pedro@palves.net>
3006
3007 * async-event.c: Include "infrun.h".
3008 (async_event_handler_marked): New.
3009 * async-event.h (async_event_handler_marked): Declare.
3010 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
3011 inferior before calling target method. Don't commit-resumed if
3012 target_has_pending_events is true.
3013 * remote.c (remote_target::has_pending_events): New.
3014 * target-delegates.c: Regenerate.
3015 * target.c (target_has_pending_events): New.
3016 * target.h (target_ops::has_pending_events): New target method.
3017 (target_has_pending_events): New.
3018
1192f124
SM
30192021-03-26 Simon Marchi <simon.marchi@efficios.com>
3020 Pedro Alves <pedro@palves.net>
3021
3022 * infcmd.c (run_command_1, attach_command, detach_command)
3023 (interrupt_target_1): Use scoped_disable_commit_resumed.
3024 * infrun.c (do_target_resume): Remove
3025 target_commit_resume call.
3026 (commit_resume_all_targets): Remove.
3027 (maybe_set_commit_resumed_all_targets): New.
3028 (maybe_call_commit_resumed_all_targets): New.
3029 (enable_commit_resumed): New.
3030 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
3031 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
3032 (scoped_disable_commit_resumed::reset)
3033 (scoped_disable_commit_resumed::reset_and_commit)
3034 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
3035 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
3036 New.
3037 (proceed): Use scoped_disable_commit_resumed and
3038 maybe_call_commit_resumed_all_targets.
3039 (fetch_inferior_event): Use scoped_disable_commit_resumed.
3040 * infrun.h (struct scoped_disable_commit_resumed): New.
3041 (maybe_call_commit_resumed_all_process_targets): New.
3042 (struct scoped_enable_commit_resumed): New.
3043 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
3044 * process-stratum-target.h (class process_stratum_target):
3045 <commit_resumed_state>: New.
3046 * record-full.c (record_full_wait_1): Change commit_resumed_state
3047 around calling commit_resumed.
3048 * remote.c (class remote_target) <commit_resume>: Rename to...
3049 <commit_resumed>: ... this.
3050 (struct stop_reply): Move up.
3051 (remote_target::commit_resume): Rename to...
3052 (remote_target::commit_resumed): ... this. Check if there is any
3053 thread pending vCont resume.
3054 (remote_target::remote_stop_ns): Generate stop replies for resumed
3055 but pending vCont threads.
3056 (remote_target::wait_ns): Add gdb_assert.
3057 * target-delegates.c: Regenerate.
3058 * target.c (target_wait, target_resume): Assert that the current
3059 process_stratum target isn't in commit-resumed state.
3060 (defer_target_commit_resume): Remove.
3061 (target_commit_resume): Remove.
3062 (target_commit_resumed): New.
3063 (make_scoped_defer_target_commit_resume): Remove.
3064 (target_stop): Assert that the current process_stratum target
3065 isn't in commit-resumed state.
3066 * target.h (struct target_ops) <commit_resume>: Rename to ...
3067 <commit_resumed>: ... this.
3068 (target_commit_resume): Remove.
3069 (target_commit_resumed): New.
3070 (make_scoped_defer_target_commit_resume): Remove.
3071 * top.c (wait_sync_command_done): Use
3072 scoped_enable_commit_resumed.
3073
e5b9b39f
PA
30742021-03-26 Pedro Alves <pedro@palves.net>
3075
3076 * target.c (target_always_non_stop_p): Also check whether the
3077 target can async.
3078
bab287cd
TT
30792021-03-26 Tom Tromey <tom@tromey.com>
3080
3081 * dwarf2/read.c (dwarf2_read_debug_names)
3082 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
3083 (dw2_debug_names_iterator::next, create_type_unit_group):
3084 Simplify.
3085
eff4f69d
PA
30862021-03-25 Pedro Alves <pedro@palves.net>
3087
3088 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
3089 around setting the breakpoint.
3090
323fd5b9
PA
30912021-03-25 Pedro Alves <pedro@palves.net>
3092
3093 * remote.c
3094 (remote_target::check_pending_events_prevent_wildcard_vcont):
3095 Check whether the event's ptid is not null_ptid before looking up
3096 the corresponding inferior.
3097
d3cbca38
CD
30982021-03-24 Changbin Du <changbin.du@gmail.com>
3099
3100 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
3101 read_code.
3102
328d42d8
SM
31032021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3104
3105 * target.h (current_top_target): Remove, make callers use the
3106 current inferior instead.
3107 * target.c (current_top_target): Remove.
3108
d777bf0d
SM
31092021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3110
3111 * target.h (target_shortname): Change to function declaration.
3112 (target_longname): Likewise.
3113 (target_attach_no_wait): Likewise.
3114 (target_post_attach): Likewise.
3115 (target_prepare_to_store): Likewise.
3116 (target_supports_enable_disable_tracepoint): Likewise.
3117 (target_supports_string_tracing): Likewise.
3118 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
3119 (target_supports_dumpcore): Likewise.
3120 (target_dumpcore): Likewise.
3121 (target_can_run_breakpoint_commands): Likewise.
3122 (target_files_info): Likewise.
3123 (target_post_startup_inferior): Likewise.
3124 (target_insert_fork_catchpoint): Likewise.
3125 (target_remove_fork_catchpoint): Likewise.
3126 (target_insert_vfork_catchpoint): Likewise.
3127 (target_remove_vfork_catchpoint): Likewise.
3128 (target_insert_exec_catchpoint): Likewise.
3129 (target_remove_exec_catchpoint): Likewise.
3130 (target_set_syscall_catchpoint): Likewise.
3131 (target_rcmd): Likewise.
3132 (target_can_lock_scheduler): Likewise.
3133 (target_can_async_p): Likewise.
3134 (target_is_async_p): Likewise.
3135 (target_execution_direction): Likewise.
3136 (target_extra_thread_info): Likewise.
3137 (target_pid_to_exec_file): Likewise.
3138 (target_thread_architecture): Likewise.
3139 (target_find_memory_regions): Likewise.
3140 (target_make_corefile_notes): Likewise.
3141 (target_get_bookmark): Likewise.
3142 (target_goto_bookmark): Likewise.
3143 (target_stopped_by_watchpoint): Likewise.
3144 (target_stopped_by_sw_breakpoint): Likewise.
3145 (target_supports_stopped_by_sw_breakpoint): Likewise.
3146 (target_stopped_by_hw_breakpoint): Likewise.
3147 (target_supports_stopped_by_hw_breakpoint): Likewise.
3148 (target_have_steppable_watchpoint): Likewise.
3149 (target_can_use_hardware_watchpoint): Likewise.
3150 (target_region_ok_for_hw_watchpoint): Likewise.
3151 (target_can_do_single_step): Likewise.
3152 (target_insert_watchpoint): Likewise.
3153 (target_remove_watchpoint): Likewise.
3154 (target_insert_hw_breakpoint): Likewise.
3155 (target_remove_hw_breakpoint): Likewise.
3156 (target_can_accel_watchpoint_condition): Likewise.
3157 (target_can_execute_reverse): Likewise.
3158 (target_get_ada_task_ptid): Likewise.
3159 (target_filesystem_is_local): Likewise.
3160 (target_trace_init): Likewise.
3161 (target_download_tracepoint): Likewise.
3162 (target_can_download_tracepoint): Likewise.
3163 (target_download_trace_state_variable): Likewise.
3164 (target_enable_tracepoint): Likewise.
3165 (target_disable_tracepoint): Likewise.
3166 (target_trace_start): Likewise.
3167 (target_trace_set_readonly_regions): Likewise.
3168 (target_get_trace_status): Likewise.
3169 (target_get_tracepoint_status): Likewise.
3170 (target_trace_stop): Likewise.
3171 (target_trace_find): Likewise.
3172 (target_get_trace_state_variable_value): Likewise.
3173 (target_save_trace_data): Likewise.
3174 (target_upload_tracepoints): Likewise.
3175 (target_upload_trace_state_variables): Likewise.
3176 (target_get_raw_trace_data): Likewise.
3177 (target_get_min_fast_tracepoint_insn_len): Likewise.
3178 (target_set_disconnected_tracing): Likewise.
3179 (target_set_circular_trace_buffer): Likewise.
3180 (target_set_trace_buffer_size): Likewise.
3181 (target_set_trace_notes): Likewise.
3182 (target_get_tib_address): Likewise.
3183 (target_set_permissions): Likewise.
3184 (target_static_tracepoint_marker_at): Likewise.
3185 (target_static_tracepoint_markers_by_strid): Likewise.
3186 (target_traceframe_info): Likewise.
3187 (target_use_agent): Likewise.
3188 (target_can_use_agent): Likewise.
3189 (target_augmented_libraries_svr4_read): Likewise.
3190 (target_log_command): Likewise.
3191 * target.c (target_shortname): New.
3192 (target_longname): New.
3193 (target_attach_no_wait): New.
3194 (target_post_attach): New.
3195 (target_prepare_to_store): New.
3196 (target_supports_enable_disable_tracepoint): New.
3197 (target_supports_string_tracing): New.
3198 (target_supports_evaluation_of_breakpoint_conditions): New.
3199 (target_supports_dumpcore): New.
3200 (target_dumpcore): New.
3201 (target_can_run_breakpoint_commands): New.
3202 (target_files_info): New.
3203 (target_post_startup_inferior): New.
3204 (target_insert_fork_catchpoint): New.
3205 (target_remove_fork_catchpoint): New.
3206 (target_insert_vfork_catchpoint): New.
3207 (target_remove_vfork_catchpoint): New.
3208 (target_insert_exec_catchpoint): New.
3209 (target_remove_exec_catchpoint): New.
3210 (target_set_syscall_catchpoint): New.
3211 (target_rcmd): New.
3212 (target_can_lock_scheduler): New.
3213 (target_can_async_p): New.
3214 (target_is_async_p): New.
3215 (target_execution_direction): New.
3216 (target_extra_thread_info): New.
3217 (target_pid_to_exec_file): New.
3218 (target_thread_architecture): New.
3219 (target_find_memory_regions): New.
3220 (target_make_corefile_notes): New.
3221 (target_get_bookmark): New.
3222 (target_goto_bookmark): New.
3223 (target_stopped_by_watchpoint): New.
3224 (target_stopped_by_sw_breakpoint): New.
3225 (target_supports_stopped_by_sw_breakpoint): New.
3226 (target_stopped_by_hw_breakpoint): New.
3227 (target_supports_stopped_by_hw_breakpoint): New.
3228 (target_have_steppable_watchpoint): New.
3229 (target_can_use_hardware_watchpoint): New.
3230 (target_region_ok_for_hw_watchpoint): New.
3231 (target_can_do_single_step): New.
3232 (target_insert_watchpoint): New.
3233 (target_remove_watchpoint): New.
3234 (target_insert_hw_breakpoint): New.
3235 (target_remove_hw_breakpoint): New.
3236 (target_can_accel_watchpoint_condition): New.
3237 (target_can_execute_reverse): New.
3238 (target_get_ada_task_ptid): New.
3239 (target_filesystem_is_local): New.
3240 (target_trace_init): New.
3241 (target_download_tracepoint): New.
3242 (target_can_download_tracepoint): New.
3243 (target_download_trace_state_variable): New.
3244 (target_enable_tracepoint): New.
3245 (target_disable_tracepoint): New.
3246 (target_trace_start): New.
3247 (target_trace_set_readonly_regions): New.
3248 (target_get_trace_status): New.
3249 (target_get_tracepoint_status): New.
3250 (target_trace_stop): New.
3251 (target_trace_find): New.
3252 (target_get_trace_state_variable_value): New.
3253 (target_save_trace_data): New.
3254 (target_upload_tracepoints): New.
3255 (target_upload_trace_state_variables): New.
3256 (target_get_raw_trace_data): New.
3257 (target_get_min_fast_tracepoint_insn_len): New.
3258 (target_set_disconnected_tracing): New.
3259 (target_set_circular_trace_buffer): New.
3260 (target_set_trace_buffer_size): New.
3261 (target_set_trace_notes): New.
3262 (target_get_tib_address): New.
3263 (target_set_permissions): New.
3264 (target_static_tracepoint_marker_at): New.
3265 (target_static_tracepoint_markers_by_strid): New.
3266 (target_traceframe_info): New.
3267 (target_use_agent): New.
3268 (target_can_use_agent): New.
3269 (target_augmented_libraries_svr4_read): New.
3270 (target_log_command): New.
3271 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3272 * infrun.c (set_schedlock_func): Adjust.
3273 * mi/mi-main.c (exec_reverse_continue): Adjust.
3274 * reverse.c (exec_reverse_once): Adjust.
3275 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3276 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3277 * remote-sim.c (gdbsim_target::detach): Adjust.
3278 (gdbsim_target::files_info): Adjust.
3279
b64f703b
TT
32802021-03-24 Tom Tromey <tom@tromey.com>
3281
3282 * dwarf2/read.c (dw2_map_matching_symbols): Update.
3283 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3284 (check_match, dw2_expand_symtabs_matching)
3285 (dwarf2_debug_names_index::map_matching_symbols)
3286 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
3287
68f115f8
KS
32882021-03-24 Keith Seitz <keiths@redhat.com>
3289
3290 * compile/compile-cplus-types.c
3291 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3292 thinko.
3293
41c0087b
SM
32942021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3295
3296 * gdbarch.sh (gdbarch_data_registry): Make static.
3297 * gdbarch.c: Re-generate.
3298
ce192338
LM
32992021-03-24 Luis Machado <luis.machado@linaro.org>
3300
3301 * NEWS: Mention memory tagging changes.
3302
bef382e6
LM
33032021-03-24 Luis Machado <luis.machado@linaro.org>
3304
3305 * printcmd.c (decode_format): Handle the 'm' modifier.
3306 (do_examine): Display allocation tags when required/supported.
3307 (should_validate_memtags): New function.
3308 (print_command_1): Display memory tag mismatches.
3309 * valprint.c (show_memory_tag_violations): New function.
3310 (value_print_option_defs): Add new option "memory-tag-violations".
3311 (user_print_options) <memory_tag_violations>: Initialize to 1.
3312 * valprint.h (struct format_data) <print_tags>: New field.
3313 (value_print_options) <memory_tag_violations>: New field.
3314
48136e00
LM
33152021-03-24 Luis Machado <luis.machado@linaro.org>
3316
3317 * printcmd.c: Include gdbsupport/rsp-low.h.
3318 (memory_tag_list): New static global.
3319 (process_print_command_args): Factored out of
3320 print_command_1.
3321 (print_command_1): Use process_print_command_args.
3322 (show_addr_not_tagged, show_memory_tagging_unsupported)
3323 (memory_tag_command, memory_tag_print_tag_command)
3324 (memory_tag_print_logical_tag_command)
3325 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3326 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3327 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3328 functions.
3329 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3330
ffcc2a15
LM
33312021-03-24 Luis Machado <luis.machado@linaro.org>
3332
3333 * aarch64-linux-tdep.c
3334 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3335 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3336
cf44c9fa
LM
33372021-03-24 Luis Machado <luis.machado@linaro.org>
3338
3339 * aarch64-linux-tdep.c
3340 (aarch64_linux_report_signal_info): New function.
3341 (aarch64_linux_init_abi): Register
3342 aarch64_linux_report_signal_info as the report_signal_info hook.
3343 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3344 (SEGV_MTESERR): Define.
3345
b4a7d4fc
LM
33462021-03-24 Luis Machado <luis.machado@linaro.org>
3347
3348 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3349 (aarch64_linux_ltag_tests): New function.
3350 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3351
c7782e50
LM
33522021-03-24 Luis Machado <luis.machado@linaro.org>
3353
3354 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3355 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3356 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3357 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3358 functions.
3359 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3360 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3361 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3362 (aarch64_linux_get_ltag): New functions.
3363 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3364 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3365 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3366 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3367
1e735120
LM
33682021-03-24 Luis Machado <luis.machado@linaro.org>
3369
3370 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3371 bit.
3372 (struct smaps_data): New struct.
3373 (decode_vmflags): Handle the 'mt' flag.
3374 (parse_smaps_data): New function, refactored from
3375 linux_find_memory_regions_full.
3376 (linux_address_in_memtag_page): New function.
3377 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3378 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3379
93e447c6
LM
33802021-03-24 Luis Machado <luis.machado@linaro.org>
3381
3382 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3383 instead of char arrays.
3384
4601818e
LM
33852021-03-24 Luis Machado <luis.machado@linaro.org>
3386
3387 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3388 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3389 nat/aarch64-mte-linux-ptrace.h.
3390 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3391 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3392 override.
3393 <fetch_memtags>: New method override.
3394 <store_memtags>: New method override.
3395 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3396 (aarch64_linux_nat_target::fetch_memtags): New method.
3397 (aarch64_linux_nat_target::store_memtags): New method.
3398 * arch/aarch64-mte-linux.c: New file.
3399 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3400 (AARCH64_MTE_GRANULE_SIZE): Define.
3401 (aarch64_memtag_type): New enum.
3402 (aarch64_mte_get_tag_granules): New prototype.
3403 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3404 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3405 * nat/aarch64-mte-linux-ptrace.c: New file.
3406 * nat/aarch64-mte-linux-ptrace.h: New file.
3407
3f3bd8b8
LM
34082021-03-24 Luis Machado <luis.machado@linaro.org>
3409
3410 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3411 * nat/aarch64-mte-linux-ptrace.h: New file.
3412
5e984dbf
LM
34132021-03-24 Luis Machado <luis.machado@linaro.org>
3414
3415 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3416 (store_mteregs_to_thread): New function.
3417 (aarch64_linux_nat_target::fetch_registers): Update to call
3418 fetch_mteregs_from_thread.
3419 (aarch64_linux_nat_target::store_registers): Update to call
3420 store_mteregs_to_thread.
3421 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3422 (aarch64_cannot_store_register): Handle MTE registers.
3423 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3424 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3425 <has_mte>: New method.
3426 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3427
c1bd443b
LM
34282021-03-24 Luis Machado <luis.machado@linaro.org>
3429
3430 * aarch64-linux-nat.c
3431 (aarch64_linux_nat_target::read_description): Take MTE flag into
3432 account.
3433 Slight refactor to hwcap flag checking.
3434 * aarch64-linux-tdep.c
3435 (aarch64_linux_core_read_description): Likewise.
3436 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3437 MTE.
3438 (aarch64_read_description): Add mte_p parameter and update to use it.
3439 Update the documentation.
3440 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3441 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3442 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3443 (aarch64_create_target_description): Add mte_p parameter and update
3444 the code to use it.
3445 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3446 parameter.
3447 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3448 * features/aarch64-mte.c: New file, generated.
3449 * features/aarch64-mte.xml: New file.
3450
04245125
LM
34512021-03-24 Luis Machado <luis.machado@linaro.org>
3452
3453 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3454 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3455 * aarch64-linux-tdep.c: Likewise
3456 * arch/aarch64-mte-linux.h: New file.
3457
754487e2
LM
34582021-03-24 Luis Machado <luis.machado@linaro.org>
3459
3460 * remote: Include gdbsupport/selftest.h.
3461 (test_memory_tagging_functions): New function.
3462 (_initialize_remote): Register test_memory_tagging_functions.
3463
2c2e7f87
LM
34642021-03-24 Luis Machado <luis.machado@linaro.org>
3465
3466 * remote.c (PACKET_memory_tagging_feature): New enum.
3467 (remote_memory_tagging_p): New function.
3468 (remote_protocol_features): New "memory-tagging" entry.
3469 (remote_target::remote_query_supported): Handle memory tagging
3470 support.
3471 (remote_target::supports_memory_tagging): Implement.
3472 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3473 (create_store_memtags_request): New functions.
3474 (remote_target::fetch_memtags): Implement.
3475 (remote_target::store_memtags): Implement.
3476 (_initialize_remote): Add new "memory-tagging-feature"
3477 config command.
3478
c193949e
LM
34792021-03-24 Luis Machado <luis.machado@linaro.org>
3480
3481 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3482 (default_memtag_matches_p, default_set_memtags)
3483 (default_get_memtag): New functions.
3484 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3485 (default_memtag_matches_p, default_set_memtags)
3486 (default_get_memtag): New prototypes.
3487 * gdbarch.c: Regenerate.
3488 * gdbarch.h: Regenerate.
3489 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3490 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3491 (enum memtag_type): New enum.
3492
dbe692af
LM
34932021-03-24 Luis Machado <luis.machado@linaro.org>
3494
3495 * remote.c (remote_target) <supports_memory_tagging>: New method
3496 override.
3497 <fetch_memtags>: New method override.
3498 <store_memtags>: New method override.
3499 (remote_target::supports_memory_tagging): New method.
3500 (remote_target::fetch_memtags): New method.
3501 (remote_target::store_memtags): New method.
3502 * target-delegates.c: Regenerate.
3503 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3504 method.
3505 <fetch_memtags>: New virtual method.
3506 <store_memtags>: New virtual method.
3507 (target_supports_memory_tagging): Define.
3508 (target_fetch_memtags): Define.
3509 (target_store_memtags): Define.
3510 * target-debug.h (target_debug_print_size_t)
3511 (target_debug_print_const_gdb_byte_vector_r)
3512 (target_debug_print_gdb_byte_vector_r): New functions.
3513
66848ebc
SM
35142021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3515
3516 * target.h (target_longname): Remove.
3517
c8fbd44a
SM
35182021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3519
3520 * target.h (target_is_pushed): Remove, update callers to use
3521 inferior::target_is_pushed instead.
3522 * target.c (target_is_pushed): Remove.
3523
02980c56
SM
35242021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3525
3526 * target.h (push_target): Remove, update callers to use
3527 inferior::push_target.
3528 * target.c (push_target): Remove.
3529 * inferior.h (class inferior) <push_target>: New overload.
3530
fadf6add
SM
35312021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3532
3533 * target.h (unpush_target): Remove, update all callers
3534 to use `inferior::unpush_target` instead.
3535 (struct target_unpusher) <operator()>: Just declare.
3536 * target.c (unpush_target): Remove.
3537 (target_unpusher::operator()): New.
3538
702cf3f5
AB
35392021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3540
3541 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3542 error.
3543 (process_full_comp_unit): Validate the top-level tag before
3544 processing the first DIE.
3545 (read_func_scope): Ensure we have a valid builder.
3546
46fec642
AB
35472021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3548
3549 * objc-lang.c (objc_demangle): Renamed to
3550 objc_language::demangle_symbol, and moved later in the file.
3551 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3552 member function.
3553 (objc_language::demangle_symbol): Defined outside of class
3554 declaration. The definition is the old objc_demangle with NULL
3555 changed to nullptr, and if conditions relating to nullptr pointers
3556 or null character checks made explicit.
3557 * objc-lang.h (objc_demangle): Delete declaration.
3558
08dedd66
ML
35592021-03-22 Martin Liska <mliska@suse.cz>
3560
3561 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3562 (_initialize_arm_tdep): Likewise.
3563
eb36a3eb
TT
35642021-03-20 Tom Tromey <tom@tromey.com>
3565
3566 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3567 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3568 * psymtab.h (make_psymbol_functions): Don't declare.
3569 * psymtab.c (make_psymbol_functions): Remove.
3570 (maintenance_print_psymbols): Update.
3571 * psympriv.h (struct psymbol_functions): Add no-argument
3572 constructor.
3573 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3574 <partial_symtabs>: Remove.
3575 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3576 * elfread.c (read_partial_symbols): Update.
3577 (elf_symfile_read): Remove check for existing partial symbols.
3578 Don't clear "qf".
3579 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3580 partial symbols.
3581 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3582 partial symtabs.
3583 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3584 parameter.
3585 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3586 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3587
e1114590
TT
35882021-03-20 Tom Tromey <tom@tromey.com>
3589
3590 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3591 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3592 * symfile-debug.c (objfile::has_partial_symbols)
3593 (objfile::find_last_source_symtab)
3594 (objfile::forget_cached_source_info)
3595 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3596 (objfile::print_stats, objfile::dump)
3597 (objfile::expand_symtabs_for_function)
3598 (objfile::expand_all_symtabs)
3599 (objfile::expand_symtabs_with_fullname)
3600 (objfile::map_matching_symbols)
3601 (objfile::expand_symtabs_matching)
3602 (objfile::find_pc_sect_compunit_symtab)
3603 (objfile::map_symbol_filenames)
3604 (objfile::find_compunit_symtab_by_address)
3605 (objfile::lookup_global_symbol_language)
3606 (objfile::require_partial_symbols): Update.
3607 * psymtab.c (maintenance_print_psymbols)
3608 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3609 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3610 * objfiles.c (objfile_relocate1): Update.
3611 * elfread.c (elf_symfile_read): Update.
3612
de909f0b
TT
36132021-03-20 Tom Tromey <tom@tromey.com>
3614
3615 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3616
caf8c1e5
TT
36172021-03-20 Tom Tromey <tom@tromey.com>
3618
3619 * psymtab.c (psymbol_functions::count_psyms): Rename.
3620 (psymbol_functions::print_stats): Update.
3621 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3622 method.
3623
3aa31ce7
TT
36242021-03-20 Tom Tromey <tom@tromey.com>
3625
3626 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3627 (psymbol_functions::find_pc_sect_psymtab): Rename.
3628 (psymbol_functions::find_pc_sect_compunit_symtab)
3629 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3630 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3631 Declare new method.
3632 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3633
7b249e47
TT
36342021-03-20 Tom Tromey <tom@tromey.com>
3635
3636 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3637 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3638 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3639 parameter.
3640 (add_psymbol_to_bcache): Remove.
3641 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3642 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3643 Likewise.
3644 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3645 <add_psymbol>: Likewise.
3646 (standard_psymtab, legacy_psymtab): Likewise.
3647 * mdebugread.c (parse_partial_symbols): Update.
3648 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3649 (handle_psymbol_enumerators): Update.
3650 (new_psymtab): Add partial_symtabs parameter.
3651 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3652 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3653 parameter.
3654 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3655 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3656 Update.
3657 * dbxread.c (read_dbx_symtab): Update.
3658 (start_psymtab): Add partial_symtabs parameter.
3659 (dbx_end_psymtab): Update.
3660 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3661 (ctf_psymtab): Add partial_symtabs parameter.
3662 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3663 Update.
3664 (scan_partial_symbols): Add partial_symtabs parameter.
3665 (scan_partial_symbols, elfctf_build_psymtabs)
3666 (ctf_psymtab_add_enums): Update.
3667
d1eef86d
TT
36682021-03-20 Tom Tromey <tom@tromey.com>
3669
3670 * symfile.c (read_symbols): Use objfile method.
3671 * symfile-debug.c (objfile::require_partial_symbols): New method.
3672 * psymtab.h (require_partial_symbols): Don't declare.
3673 * psymtab.c (require_partial_symbols): Use objfile method. Now
3674 static.
3675 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3676 (psymbol_functions::lookup_symbol)
3677 (psymbol_functions::lookup_global_symbol_language)
3678 (psymbol_functions::find_last_source_symtab)
3679 (psymbol_functions::forget_cached_source_info)
3680 (psymbol_functions::print_stats)
3681 (psymbol_functions::expand_symtabs_for_function)
3682 (psymbol_functions::expand_all_symtabs)
3683 (psymbol_functions::expand_symtabs_with_fullname)
3684 (psymbol_functions::map_symbol_filenames)
3685 (psymbol_functions::map_matching_symbols)
3686 (psymbol_functions::expand_symtabs_matching)
3687 (psymbol_functions::find_compunit_symtab_by_address)
3688 (maintenance_print_psymbols, maintenance_info_psymtabs)
3689 (maintenance_check_psymtabs): Update.
3690 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3691 new method.
3692
eb00e468
TT
36932021-03-20 Tom Tromey <tom@tromey.com>
3694
3695 * xcoffread.c (xcoff_sym_fns): Update.
3696 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3697 * symfile-debug.c (objfile::has_partial_symbols): Use
3698 can_lazily_read_symbols.
3699 (debug_sym_read_psymbols): Remove.
3700 (debug_sym_fns, install_symfile_debug_logging): Update.
3701 * quick-symbol.h (struct quick_symbol_functions)
3702 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3703 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3704 * mipsread.c (ecoff_sym_fns): Update.
3705 * machoread.c (macho_sym_fns): Update.
3706 * elfread.c (struct lazy_dwarf_reader): New.
3707 (elf_symfile_read): Update.
3708 (read_psyms): Now a method of lazy_dwarf_reader.
3709 (elf_sym_fns): Update.
3710 (elf_sym_fns_lazy_psyms): Remove.
3711 * dbxread.c (aout_sym_fns): Update.
3712 * coffread.c (coff_sym_fns): Update.
3713
b29b98cf
TT
37142021-03-20 Tom Tromey <tom@tromey.com>
3715
3716 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3717 (reread_symbols): Move reset_psymtabs call later.
3718 * objfiles.c (objfile::objfile): Don't initialize
3719 partial_symtabs.
3720
17d66340
TT
37212021-03-20 Tom Tromey <tom@tromey.com>
3722
3723 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3724 set_partial_symtabs.
3725 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3726 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3727 parameter.
3728 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3729 parameter.
3730 (psymbol_functions::find_pc_sect_compunit_symtab)
3731 (psymbol_functions::print_stats, psymbol_functions::dump)
3732 (psymbol_functions::has_symbols): Update.
3733 (make_psymbol_functions, dump_psymtab_addrmap): Add
3734 partial_symtabs parameter.
3735 (maintenance_print_psymbols): Update.
3736 (psymbol_functions::expand_symtabs_matching): Update.
3737 * psympriv.h (struct psymbol_functions): Add constructor.
3738 <m_partial_symtabs>: New member.
3739 <set_partial_symtabs>: New method.
3740
84685904
TT
37412021-03-20 Tom Tromey <tom@tromey.com>
3742
3743 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3744 parameter.
3745 (process_psymtab_comp_unit_reader)
3746 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3747 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3748 Reference psymtabs via per_bfd.
3749
79cc99f6
TT
37502021-03-20 Tom Tromey <tom@tromey.com>
3751
3752 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3753 Remove.
3754 (add_address_entry): Remove objfile parameter.
3755 (add_address_entry_worker): Update.
3756 (write_address_map): Replace objfile parameter with per_bfd.
3757 (write_gdbindex, write_psymtabs_to_index): Update.
3758
4829711b
TT
37592021-03-20 Tom Tromey <tom@tromey.com>
3760
3761 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3762 print_bcache parameter.
3763 * symfile-debug.c (objfile::print_stats): Add print_bcache
3764 parameter.
3765 * quick-symbol.h (struct quick_symbol_functions)
3766 <print_stats>: Add print_bcache parameter.
3767 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3768 code to psymtab.c.
3769 (print_objfile_statistics): Move psymtab code to psymtab.c.
3770 * psymtab.c (count_psyms): Move from symmisc.c.
3771 (psymbol_functions::print_stats): Print partial symbol and bcache
3772 statistics. Add print_bcache parameter.
3773 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3774 (struct objfile) <print_stats>: Add print_bcache parameter.
3775 * maint.c (maintenance_print_statistics): Update.
3776
efd7398e
TT
37772021-03-20 Tom Tromey <tom@tromey.com>
3778
3779 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3780 member.
3781 * dwarf2/read.c (create_addrmap_from_index)
3782 (create_addrmap_from_aranges): Set per_bfd addrmap.
3783 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3784 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3785 per_bfd addrmap.
3786 (dwarf2_read_debug_names): Don't set partial_symtabs.
3787 (dwarf2_initialize_objfile): Likewise.
3788
51962708
TT
37892021-03-20 Tom Tromey <tom@tromey.com>
3790
3791 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3792 earlier.
3793
484b1090
TT
37942021-03-20 Tom Tromey <tom@tromey.com>
3795
3796 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3797 (~psymtab_discarder, keep): Update.
3798 <m_objfile>: Remove.
3799 <m_partial_symtabs>: New member.
3800 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3801
7e9c0476
TT
38022021-03-20 Tom Tromey <tom@tromey.com>
3803
3804 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3805 (xcoff_end_psymtab): Update.
3806 (scan_xcoff_symtab): Add partial_symtabs parameter.
3807 (xcoff_initial_scan): Update.
3808 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3809 * mdebugread.c (mdebug_build_psymtabs): Update.
3810 (parse_partial_symbols): Add partial_symtabs parameter.
3811 * dbxread.c (dbx_symfile_read): Update.
3812 (read_dbx_symtab): Add partial_symtabs parameter.
3813 (read_dbx_symtab): Update.
3814 (dbx_end_psymtab): Add partial_symtabs parameter.
3815
75336a5a
TT
38162021-03-20 Tom Tromey <tom@tromey.com>
3817
3818 * quick-symbol.h (struct quick_symbol_functions)
3819 <relocated>: New method.
3820 * psymtab.h (struct psymbol_functions) <relocated>: New
3821 method.
3822 <fill_psymbol_map>: Declare method.
3823 <m_psymbol_map>: New member.
3824 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3825 (psymbol_functions::find_compunit_symtab_by_address): Update.
3826 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3827 (struct objfile) <psymbol_map>: Remove.
3828 * objfiles.c (objfile_relocate1): Update.
3829
39298a5d
TT
38302021-03-20 Tom Tromey <tom@tromey.com>
3831
3832 * psympriv.h (struct psymbol_functions): New.
3833 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3834 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3835 (objfile::lookup_global_symbol_language): Update.
3836 * quick-symbol.h (struct quick_symbol_functions): Convert function
3837 pointers to methods. Add virtual destructor.
3838 (quick_symbol_functions_up): New typedef.
3839 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3840 (dwarf2_debug_names_functions): Don't declare.
3841 (make_psymbol_functions): Declare.
3842 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3843 (psymbol_functions::find_pc_sect_compunit_symtab)
3844 (psymbol_functions::lookup_symbol)
3845 (psymbol_functions::lookup_global_symbol_language)
3846 (psymbol_functions::find_last_source_symtab)
3847 (psymbol_functions::forget_cached_source_info)
3848 (psymbol_functions::print_stats, psymbol_functions::dump)
3849 (psymbol_functions::expand_symtabs_for_function)
3850 (psymbol_functions::expand_all_symtabs)
3851 (psymbol_functions::expand_symtabs_with_fullname)
3852 (psymbol_functions::map_symbol_filenames)
3853 (psymbol_functions::map_matching_symbols)
3854 (psymbol_functions::expand_symtabs_matching)
3855 (psymbol_functions::has_symbols)
3856 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3857 (psym_functions): Remove.
3858 (make_psymbol_functions): New function.
3859 * objfiles.h (struct objfile) <qf>: Change type.
3860 * elfread.c (elf_symfile_read): Update.
3861 * dwarf2/read.c (struct dwarf2_base_index_functions)
3862 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3863 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3864 (dwarf2_base_index_functions::find_last_source_symtab)
3865 (dwarf2_base_index_functions::forget_cached_source_info)
3866 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3867 (dwarf2_gdb_index::lookup_symbol)
3868 (dwarf2_base_index_functions::print_stats)
3869 (dwarf2_gdb_index::dump)
3870 (dwarf2_gdb_index::expand_symtabs_for_function)
3871 (dwarf2_base_index_functions::expand_all_symtabs)
3872 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3873 Rename.
3874 (dwarf2_gdb_index::map_matching_symbols): New method.
3875 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3876 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3877 (dwarf2_base_index_functions::map_symbol_filenames)
3878 (dwarf2_base_index_functions::has_symbols): Rename.
3879 (dwarf2_gdb_index_functions): Remove.
3880 (dwarf2_debug_names_index::lookup_symbol)
3881 (dwarf2_debug_names_index::dump)
3882 (dwarf2_debug_names_index::expand_symtabs_for_function)
3883 (dwarf2_debug_names_index::map_matching_symbols)
3884 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3885 (dwarf2_debug_names_functions): Remove.
3886 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3887 Declare.
3888
5c3f1e5b
TT
38892021-03-20 Tom Tromey <tom@tromey.com>
3890
3891 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3892 null.
3893 * xcoffread.c (xcoff_sym_fns): Update.
3894 * symfile.h (struct sym_fns) <qf>: Remove.
3895 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3896 * symfile-debug.c (objfile::has_partial_symbols)
3897 (objfile::find_last_source_symtab)
3898 (objfile::forget_cached_source_info)
3899 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3900 (objfile::print_stats, objfile::dump)
3901 (objfile::expand_symtabs_for_function)
3902 (objfile::expand_all_symtabs)
3903 (objfile::expand_symtabs_with_fullname)
3904 (objfile::map_matching_symbols)
3905 (objfile::expand_symtabs_matching)
3906 (objfile::find_pc_sect_compunit_symtab)
3907 (objfile::map_symbol_filenames)
3908 (objfile::find_compunit_symtab_by_address)
3909 (objfile::lookup_global_symbol_language, debug_sym_fns)
3910 (install_symfile_debug_logging): Update.
3911 * objfiles.h (struct objfile) <qf>: New member.
3912 * mipsread.c (ecoff_sym_fns): Update.
3913 * machoread.c (macho_sym_fns): Update.
3914 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3915 Don't declare.
3916 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3917 * dbxread.c (aout_sym_fns): Update.
3918 * coffread.c (coff_sym_fns): Update.
3919
9b99dcc8
TT
39202021-03-20 Tom Tromey <tom@tromey.com>
3921
3922 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3923 (expand_symtabs_file_matcher_ftype)
3924 (expand_symtabs_symbol_matcher_ftype)
3925 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3926 Move to quick-symbol.h.
3927 * quick-symbol.h: New file.
3928
4d080b46
TT
39292021-03-20 Tom Tromey <tom@tromey.com>
3930
3931 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3932 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3933 (basic_lookup_transparent_type_quick)
3934 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3935 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3936 Update.
3937 * symmisc.c (print_objfile_statistics, dump_objfile)
3938 (maintenance_expand_symtabs): Update.
3939 * symfile.c (symbol_file_add_with_addrs)
3940 (expand_symtabs_matching, map_symbol_filenames): Update.
3941 * symfile-debug.c (objfile::has_partial_symbols)
3942 (objfile::find_last_source_symtab)
3943 (objfile::forget_cached_source_info)
3944 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3945 (objfile::print_stats, objfile::dump)
3946 (objfile::expand_symtabs_for_function)
3947 (objfile::expand_all_symtabs)
3948 (objfile::expand_symtabs_with_fullname)
3949 (objfile::map_matching_symbols)
3950 (objfile::expand_symtabs_matching)
3951 (objfile::find_pc_sect_compunit_symtab)
3952 (objfile::map_symbol_filenames)
3953 (objfile::find_compunit_symtab_by_address)
3954 (objfile::lookup_global_symbol_language): New methods.
3955 (debug_sym_quick_functions): Remove.
3956 (debug_sym_fns, install_symfile_debug_logging): Update.
3957 * source.c (forget_cached_source_info_for_objfile)
3958 (select_source_symtab): Update.
3959 * objfiles.h (struct objfile): Add methods corresponding to
3960 quick_symbol_functions.
3961 * objfiles.c (objfile::has_partial_symbols): Move to
3962 symfile-debug.c.
3963 * linespec.c (iterate_over_all_matching_symtabs): Update.
3964 * cp-support.c (add_symbol_overload_list_qualified): Update.
3965 * ada-lang.c (add_nonlocal_symbols): Update.
3966
fae2120b
TT
39672021-03-20 Tom Tromey <tom@tromey.com>
3968
3969 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3970 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3971 bool.
3972 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3973 * psymtab.c (psym_has_symbols): Return bool.
3974 * objfiles.c (objfile::has_partial_symbols): Return bool.
3975 * dwarf2/read.c (dw2_has_symbols): Return bool.
3976
a8ad4f3c
TT
39772021-03-20 Tom Tromey <tom@tromey.com>
3978
3979 * symfile.c (read_symbols): Update.
3980 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3981 (objfile_has_partial_symbols): Don't declare.
3982 * objfiles.c (objfile::has_partial_symbols): Rename from
3983 objfile_has_partial_symbols.
3984 (objfile_has_symbols, have_partial_symbols): Update.
3985 * elfread.c (elf_symfile_read): Update.
3986 * dwarf2/read.c (dwarf2_has_info): Update.
3987 * coffread.c (coff_symfile_read): Update.
3988
70182375
TT
39892021-03-20 Tom Tromey <tom@tromey.com>
3990
3991 * coffread.c: Include dwarf2/public.h.
3992 * dwarf2/frame.c: Include dwarf2/public.h.
3993 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3994 * dwarf2/public.h: New file.
3995 * dwarf2/read.c: Include dwarf2/public.h.
3996 * elfread.c: Include dwarf2/public.h.
3997 * machoread.c: Include dwarf2/public.h.
3998 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3999 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
4000 (dwarf2_build_frame_info): Move to dwarf2/public.h.
4001 * xcoffread.c: Include dwarf2/public.h.
4002
18038e63
TT
40032021-03-20 Tom Tromey <tom@tromey.com>
4004
4005 * symfile.h (enum dwarf2_section_enum)
4006 (dwarf2_get_section_info): Move to dwarf2/read.h.
4007 * dwarf2/read.h (enum dwarf2_section_enum)
4008 (dwarf2_get_section_info): Move from symfile.h.
4009
219f56b4
PA
40102021-03-19 Pedro Alves <pedro@palves.net>
4011
4012 * thread.c (any_thread_of_inferior): Check if there's a selected
4013 thread before calling inferior_thread().
4014
15310fd4
TT
40152021-03-18 Tom Tromey <tromey@adacore.com>
4016
4017 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
4018 get_DW_UT_name.
4019 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
4020 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
4021
763b8efd
AB
40222021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4023
4024 * python/py-param.c (get_set_value): Update header comment.
4025
f058c521
SM
40262021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4027
4028 * infrun.c (check_multi_target_resumption): Remove argument to
4029 all_non_exited_inferiors.
4030
383228bc
CB
40312021-03-16 Christian Biesinger <cbiesinger@google.com>
4032
4033 * windows-nat.c (windows_init_thread_list): Add message to
4034 debug log.
4035
7807d76a
AB
40362021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
4039 well as PyLong_Check for Python 2.
4040
675da9a5
TT
40412021-03-15 Tom Tromey <tromey@adacore.com>
4042
4043 PR build/27579:
4044 * rust-exp.y (maker_map): Use gdb::hash_enum.
4045 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
4046
4800761a
SM
40472021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4048
4049 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
4050 end of debug print.
4051
eb5dd737
SM
40522021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4053
4054 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
4055 parameter, adjust caller.
4056
6813ceb0
TT
40572021-03-15 Tom Tromey <tromey@adacore.com>
4058
4059 * ada-exp.y (simple_exp): Always push a result for unary '+'.
4060
3b5c4de0
TT
40612021-03-15 Tom Tromey <tromey@adacore.com>
4062
4063 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
4064 ada_ensure_varsize_limit.
4065
c04da66c
TT
40662021-03-15 Tom Tromey <tromey@adacore.com>
4067
4068 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
4069 fixed-point.
4070 * ada-exp.y (maybe_overload): New function.
4071 (ada_wrap_overload): New function.
4072 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
4073 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
4074 (or_else_exp, xor_exp, primary): Update.
4075
9863c3b5
TT
40762021-03-15 Tom Tromey <tromey@adacore.com>
4077
4078 PR ada/27545:
4079 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
4080 call for tagged type.
4081
1ac74522
TT
40822021-03-15 Tom Tromey <tromey@adacore.com>
4083
4084 * ada-exp.y (exp1): Handle resolution of the right hand side of an
4085 assignment.
4086
207582c0
TT
40872021-03-15 Tom Tromey <tromey@adacore.com>
4088
4089 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
4090 container.
4091 (ada_assign_operation::evaluate): Update.
4092 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
4093 Change return type.
4094
8d624a9d
FW
40952021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
4096
4097 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
4098
ba6a0ef3
AB
40992021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
4100
4101 * python/python.c (gdbpy_source_objfile_script): Use
4102 make_scoped_restore to restore gdbpy_current_objfile.
4103 (gdbpy_execute_objfile_script): Likewise.
4104
7c290a04
TT
41052021-03-14 Tom Tromey <tom@tromey.com>
4106
4107 * dwarf2/read.c (read_attribute_value): Use cu_header
4108 consistently.
4109
0280fdcc
TT
41102021-03-14 Tom Tromey <tom@tromey.com>
4111
4112 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
4113 (peek_die_abbrev): Use reader.abfd.
4114
a9f172c6
TT
41152021-03-14 Tom Tromey <tom@tromey.com>
4116
4117 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
4118 m_header_read_in.
4119
7c32eebb
TT
41202021-03-13 Tom Tromey <tom@tromey.com>
4121
4122 * dwarf2/read.c (struct partial_die_info): Update.
4123 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
4124 (load_partial_dies, partial_die_info::partial_die_info): Update.
4125 * dwarf2/abbrev.h (lookup_abbrev): Constify.
4126
27012aba
TT
41272021-03-13 Tom Tromey <tom@tromey.com>
4128
4129 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
4130
fece451c
CB
41312021-03-12 Christian Biesinger <cbiesinger@google.com>
4132
4133 PR threads/27239
4134 * cp-support.c: Use scoped_segv_handler_restore.
4135 * event-top.c (thread_local_segv_handler): Made static.
4136 (scoped_segv_handler_restore::scoped_segv_handler_restore):
4137 New function.
4138 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
4139 function.
4140 * event-top.h (class scoped_segv_handler_restore): New class.
4141 (thread_local_segv_handler): Removed.
4142
7056f312
TT
41432021-03-10 Tom Tromey <tromey@adacore.com>
4144
4145 * parser-defs.h (parser_state): Change completion to bool.
4146 <parse_completion>: Likewise.
4147 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4148 (ada_resolve_variable, ada_resolve_function): Update.
4149 * ada-lang.c (ada_find_operator_symbol): Change
4150 parse_completion to bool.
4151 (ada_resolve_funcall, ada_resolve_variable)
4152 (ada_resolve_function): Likewise.
4153
ccdc02ed
TT
41542021-03-09 Tom Tromey <tromey@adacore.com>
4155
4156 * eval.c (operation::evaluate_funcall): Use function formal
4157 parameter types when evaluating.
4158
fbb1aace
AB
41592021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4160
4161 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
4162 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
4163 and owner to m_owner.
4164
611aa09d
FW
41652021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
4166
4167 * f-exp.h (eval_op_f_loc): Declare.
4168 (expr::fortran_loc_operation): New typedef.
4169 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
4170 UNOP_INTRINSIC.
4171 (f77_keywords): Add LOC keyword.
4172 * f-lang.c (eval_op_f_loc): New function.
4173 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
4174
eef32f59
AB
41752021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4176
4177 * f-exp.h (eval_op_f_array_shape): Declare.
4178 (fortran_array_shape_operation): New type.
4179 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
4180 UNOP_INTRINSIC.
4181 (f77_keywords): Add "shape" keyword.
4182 * f-lang.c (fortran_array_shape): New function.
4183 (eval_op_f_array_shape): New function.
4184 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
4185
7ba155b3
AB
41862021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4187
4188 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
4189 of this function.
4190 (expr::fortran_array_size_1arg): New type.
4191 (expr::fortran_array_size_2arg): Likewise.
4192 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
4193 UNOP_OR_BINOP_INTRINSIC.
4194 (f77_keywords): Add "size" keyword.
4195 * f-lang.c (fortran_array_size): New function.
4196 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
4197 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
4198
e14816a8
AB
41992021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4200
4201 * f-exp.h (eval_op_f_rank): Declare.
4202 (expr::fortran_rank_operation): New typedef.
4203 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
4204 UNOP_INTRINSIC.
4205 (f77_keywords): Add "rank" keyword.
4206 * f-lang.c (eval_op_f_rank): New function.
4207 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
4208
3dd93bf8
TT
42092021-03-08 Tom Tromey <tom@tromey.com>
4210
4211 * printcmd.c (set_command): Remove null check.
4212 * value.c (init_if_undefined_command): Remove null check.
4213
9c79936b
TT
42142021-03-08 Tom Tromey <tom@tromey.com>
4215
4216 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
4217 Update.
4218 * p-exp.y (variable): Update.
4219 * go-exp.y (variable): Update.
4220 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
4221 Remove overload for objfile.
4222 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
4223 parameter.
4224 (check_objfile): Likewise.
4225 (dump_for_expression): Likewise. Remove overload for objfile.
4226 (class var_msym_value_operation): Use bound_minimal_symbol.
4227 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
4228 parameter.
4229 (var_msym_value_operation::evaluate_for_address)
4230 (var_msym_value_operation::evaluate_for_sizeof)
4231 (var_msym_value_operation::evaluate_for_cast): Update.
4232 * d-exp.y (PrimaryExpression): Update.
4233 * c-exp.y (variable): Update.
4234 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
4235 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4236 Update.
4237 * ada-exp.y (write_var_or_type): Update.
4238
40d07d07
TT
42392021-03-08 Tom Tromey <tom@tromey.com>
4240
4241 * parser-defs.h (exp_uses_objfile): Return bool.
4242 * parse.c (exp_uses_objfile): Return bool.
4243
0b2b0b82
TT
42442021-03-08 Tom Tromey <tom@tromey.com>
4245
4246 * value.h (eval_skip_value): Don't declare.
4247 * opencl-lang.c (eval_opencl_assign): Update.
4248 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
4249 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4250 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
4251 * expression.h (enum noside) <EVAL_SKIP>: Remove.
4252 * expop.h (typeof_operation::evaluate)
4253 (decltype_operation::evaluate, unop_addr_operation::evaluate)
4254 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
4255 (cxx_cast_operation::evaluate): Update.
4256 * eval.c (eval_skip_value): Remove.
4257 (eval_op_scope, eval_op_var_entry_value)
4258 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
4259 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
4260 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
4261 (eval_op_binary, eval_op_subscript, eval_op_equal)
4262 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
4263 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
4264 (eval_op_complement, eval_op_lognot, eval_op_ind)
4265 (eval_op_memval, eval_op_preinc, eval_op_predec)
4266 (eval_op_postinc, eval_op_postdec, eval_op_type)
4267 (eval_binop_assign_modify, eval_op_objc_msgcall)
4268 (eval_multi_subscript, logical_and_operation::evaluate)
4269 (logical_or_operation::evaluate, array_operation::evaluate)
4270 (operation::evaluate_for_cast)
4271 (var_msym_value_operation::evaluate_for_cast)
4272 (var_value_operation::evaluate_for_cast): Update.
4273 * c-lang.c (c_string_operation::evaluate): Update.
4274 * c-exp.h (objc_nsstring_operation::evaluate)
4275 (objc_selector_operation::evaluate): Update.
4276 * ada-lang.c (ada_assign_operation::evaluate)
4277 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4278 (ada_atr_size): Update.
4279
96db551d
TT
42802021-03-08 Tom Tromey <tom@tromey.com>
4281
4282 * eval.c: Merge "namespace" scopes.
4283
ce284361
TT
42842021-03-08 Tom Tromey <tom@tromey.com>
4285
4286 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4287 <release>: Inline.
4288 * parse.c (expr_builder::expr_builder, expr_builder::release):
4289 Remove.
4290
b9d06571
TT
42912021-03-08 Tom Tromey <tom@tromey.com>
4292
4293 * parse.c (expression::expression, expression::~expression):
4294 Remove.
4295 * expression.h (struct expression): Inline constructor. Remove
4296 destructor.
4297
79ab486e
TT
42982021-03-08 Tom Tromey <tom@tromey.com>
4299
4300 * std-operator.def (BINOP_END): Remove.
4301 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4302 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4303 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4304 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4305 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4306 BINOP_END.
4307
48fa6f23
TT
43082021-03-08 Tom Tromey <tom@tromey.com>
4309
4310 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4311
43f542e3
TT
43122021-03-08 Tom Tromey <tom@tromey.com>
4313
4314 * std-operator.def (OP_EXTENDED0): Remove.
4315
5d9ba982
TT
43162021-03-08 Tom Tromey <tom@tromey.com>
4317
4318 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4319 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4320 Remove.
4321
d357570d
TT
43222021-03-08 Tom Tromey <tom@tromey.com>
4323
4324 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4325 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4326
0922dc84
TT
43272021-03-08 Tom Tromey <tom@tromey.com>
4328
4329 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4330 * ada-lang.c (ada_binop_minmax): Update.
4331 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4332 Use BINOP_MIN and BINOP_MAX.
4333
1eaebe02
TT
43342021-03-08 Tom Tromey <tom@tromey.com>
4335
4336 * value.h (evaluate_subexp_with_coercion): Don't declare.
4337 * parse.c (exp_descriptor_standard): Remove.
4338 (expr_builder::expr_builder, expr_builder::release): Update.
4339 (expression::expression): Remove size_t parameter.
4340 (expression::~expression): Simplify.
4341 (expression::resize): Remove.
4342 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4343 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4344 (write_exp_elt_longcst, write_exp_elt_floatcst)
4345 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4346 (write_exp_string_vector, write_exp_bitstring): Remove.
4347 * p-lang.h (class pascal_language) <opcode_print_table,
4348 op_print_tab>: Remove.
4349 * p-lang.c (pascal_language::op_print_tab): Remove.
4350 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4351 Remove.
4352 * objc-lang.c (objc_op_print_tab): Remove.
4353 (class objc_language) <opcode_print_table>: Remove.
4354 * m2-lang.h (class m2_language) <opcode_print_table,
4355 op_print_tab>: Remove.
4356 * m2-lang.c (m2_language::op_print_tab): Remove.
4357 * language.h (struct language_defn) <post_parser, expression_ops,
4358 opcode_print_table>: Remove.
4359 * language.c (language_defn::expression_ops)
4360 (auto_or_unknown_language::opcode_print_table): Remove.
4361 * go-lang.h (class go_language) <opcode_print_table,
4362 op_print_tab>: Remove.
4363 * go-lang.c (go_language::op_print_tab): Remove.
4364 * f-lang.h (class f_language) <opcode_print_table>: Remove
4365 <op_print_tab>: Remove.
4366 * f-lang.c (f_language::op_print_tab): Remove.
4367 * expression.h (union exp_element): Remove.
4368 (struct expression): Remove size_t parameter from constructor.
4369 <resize>: Remove.
4370 <first_opcode>: Update.
4371 <nelts, elts>: Remove.
4372 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4373 (evaluate_subexp_standard, print_expression, op_string)
4374 (dump_raw_expression): Don't declare.
4375 * expprint.c (print_expression, print_subexp)
4376 (print_subexp_funcall, print_subexp_standard, op_string)
4377 (dump_raw_expression, dump_subexp, dump_subexp_body)
4378 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4379 (dump_prefix_expression): Update.
4380 * eval.c (evaluate_subexp): Remove.
4381 (evaluate_expression, evaluate_type): Update.
4382 (evaluate_subexpression_type): Remove.
4383 (fetch_subexp_value): Remove "pc" parameter. Update.
4384 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4385 (evaluate_subexp_standard, evaluate_subexp_for_address)
4386 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4387 (evaluate_subexp_for_cast): Remove.
4388 (parse_and_eval_type): Update.
4389 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4390 * d-lang.c (d_op_print_tab): Remove.
4391 (class d_language) <opcode_print_table>: Remove.
4392 * c-lang.h (c_op_print_tab): Don't declare.
4393 * c-lang.c (c_op_print_tab): Remove.
4394 (class c_language, class cplus_language, class asm_language, class
4395 minimal_language) <opcode_print_table>: Remove.
4396 * breakpoint.c (update_watchpoint, watchpoint_check)
4397 (watchpoint_exp_is_const, watch_command_1): Update.
4398 * ax-gdb.h (union exp_element): Don't declare.
4399 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4400 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4401 (gen_expr_binop_rest): Remove.
4402 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4403 * ada-lang.c (ada_op_print_tab): Remove.
4404 (class ada_language) <post_parser, opcode_print_table>: Remove.
4405
f2a98603
TT
44062021-03-08 Tom Tromey <tom@tromey.com>
4407
4408 * go-lang.c (go_language::expression_ops): Don't declare.
4409 * go-lang.h (class go_language) <expression_ops>: Remove.
4410 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4411 Remove.
4412 (class opencl_language) <expression_ops>: Remove.
4413 * d-lang.c (class d_language) <expression_ops>: Remove.
4414 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4415 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4416 (class c_language, class cplus_language, class asm_language)
4417 (class minimal_language) <expression_ops>: Remove.
4418
d3c54a1c
TT
44192021-03-08 Tom Tromey <tom@tromey.com>
4420
4421 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4422 (evaluate_subexp_type, assign_aggregate)
4423 (aggregate_assign_positional, aggregate_assign_from_choices)
4424 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4425 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4426 (ada_operator_check, ada_forward_operator_length)
4427 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4428 Remove.
4429 (post_parser): Update.
4430 (class ada_language) <expresssion_ops>: Remove.
4431
5871f0a3
TT
44322021-03-08 Tom Tromey <tom@tromey.com>
4433
4434 * m2-lang.h (class m2_language) <expresssion_ops,
4435 exp_descriptor_modula2>: Remove.
4436 * m2-lang.c (evaluate_subexp_modula2)
4437 (m2_language::exp_descriptor_modula2): Remove.
4438
a99be8c1
TT
44392021-03-08 Tom Tromey <tom@tromey.com>
4440
4441 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4442 <exp_descriptor_tab>: Remove.
4443 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4444 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4445 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4446 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4447 Remove.
4448
aa1da9ed
TT
44492021-03-08 Tom Tromey <tom@tromey.com>
4450
4451 * rust-lang.h (class rust_language) <expression_ops,
4452 exp_descriptor_tab>: Remove.
4453 * rust-lang.c (rust_evaluate_funcall): Remove.
4454 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4455 EVAL_SKIP.
4456 (rust_evaluate_subexp): Remove.
4457 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4458 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4459 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4460
08a057e6
TT
44612021-03-08 Tom Tromey <tom@tromey.com>
4462
4463 * ada-exp.y: Create operations.
4464 (empty_stoken): Remove.
4465 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4466 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4467 (components): New global.
4468 (push_component, choice_component, pop_component, pop_components):
4469 New functions.
4470 (associations): New global
4471 (push_association, pop_association, pop_associations): New
4472 functions.
4473 (ada_parse): Update.
4474 (write_var_from_sym, write_int): Create operations.
4475 (write_exp_op_with_string): Remove.
4476 (write_object_renaming, write_selectors, write_ambiguous_var)
4477 (write_var_or_type, write_name_assoc): Create operations.
4478 * ada-lang.h (ada_index_type): Declare.
4479 * ada-lang.c (ada_index_type): No longer static.
4480
d308ba78
TT
44812021-03-08 Tom Tromey <tom@tromey.com>
4482
4483 * f-exp.y: Create operations.
4484 (f_language::parser): Update.
4485
f1b8ceef
TT
44862021-03-08 Tom Tromey <tom@tromey.com>
4487
4488 * m2-exp.y: Create operations.
4489 (m2_language::parser): Update.
4490
3163898e
TT
44912021-03-08 Tom Tromey <tom@tromey.com>
4492
4493 * p-exp.y: Create operations.
4494 (pascal_language::parser): Update.
4495
9412fdcc
TT
44962021-03-08 Tom Tromey <tom@tromey.com>
4497
4498 * d-exp.y: Create operations.
4499 (d_parse): Update.
4500
bb4e0574
TT
45012021-03-08 Tom Tromey <tom@tromey.com>
4502
4503 * go-exp.y: Create operations.
4504 (go_language::parser): Update.
4505
d182f279
TT
45062021-03-08 Tom Tromey <tom@tromey.com>
4507
4508 * objc-lang.c (end_msglist): Create operations.
4509 * c-exp.y: Change parser to create operations.
4510 (write_destructor_name): Remove.
4511 (c_parse): Update.
4512
c1299a23
TT
45132021-03-08 Tom Tromey <tom@tromey.com>
4514
4515 * rust-exp.y: Create operations.
4516 (rust_parser::convert_params_to_expression): Change return type.
4517 (binop_maker_ftype): New typedef.
4518 (maker_map): New global.
4519 (rust_parser::convert_ast_to_expression): Change return type.
4520 (rust_language::parser): Update.
4521 (_initialize_rust_exp): Initialize maker_map.
4522
4c5e7a93
TT
45232021-03-08 Tom Tromey <tom@tromey.com>
4524
4525 * stap-probe.c (binop_maker_ftype): New typedef.
4526 (stap_maker_map): New global.
4527 (stap_make_binop): New function.
4528 (stap_parse_register_operand): Return operation_up.
4529 (stap_parse_single_operand, stap_parse_argument_conditionally)
4530 (stap_parse_argument_1): Likewise.
4531 (stap_parse_argument): Create operations.
4532 (stap_probe::parse_arguments): Update.
4533 (_initialize_stap_probe): Initialize stap_maker_map.
4534 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4535 type.
4536 * i386-tdep.h (i386_stap_parse_special_token): Change return
4537 type.
4538 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4539 (i386_stap_parse_special_token_three_arg_disp)
4540 (i386_stap_parse_special_token): Change return type.
4541 * gdbarch.sh (stap_parse_special_token): Change return type.
4542 * gdbarch.c: Rebuild.
4543 * gdbarch.h: Rebuild.
4544 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4545 type.
4546 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4547 return type.
4548
482ddd69
TT
45492021-03-08 Tom Tromey <tom@tromey.com>
4550
4551 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4552 * gdbarch.h: Rebuild.
4553 * gdbarch.c: Rebuild.
4554 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4555 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4556 return type.
4557 (amd64_dtrace_parse_probe_argument): Update.
4558
8227d9e2
TT
45592021-03-08 Tom Tromey <tom@tromey.com>
4560
4561 * parser-defs.h (struct parser_state) <push, push_new,
4562 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4563 wrap2>: New methods.
4564 <m_operations>: New member.
4565 * parse.c (parser_state::push_c_string)
4566 (parser_state::push_symbol, parser_state::push_dollar): New
4567 methods.
4568
4933522d
TT
45692021-03-08 Tom Tromey <tom@tromey.com>
4570
4571 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4572 New member.
4573 (struct parser_state) <mark_struct_expression>: New method.
4574 * parse.c (parser_state::mark_struct_expression): Update assert.
4575 (parser_state::mark_struct_expression): New method.
4576 (parser_state::mark_completion_tag): Update assert.
4577 (parse_expression_for_completion): Handle expout_last_op.
4578
413403fc
TT
45792021-03-08 Tom Tromey <tom@tromey.com>
4580
4581 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4582 now in superclass.
4583 * value.h (fetch_subexp_value): Add "op" parameter.
4584 * value.c (init_if_undefined_command): Update.
4585 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4586 * stap-probe.c (stap_probe::compile_to_ax): Update.
4587 * printcmd.c (set_command): Update.
4588 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4589 Update.
4590 * parser-defs.h (struct expr_builder) <set_operation>: New
4591 method.
4592 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4593 * expression.h (struct expression) <first_opcode>: Update.
4594 <op>: New member.
4595 * expprint.c (dump_raw_expression, dump_prefix_expression):
4596 Update.
4597 * expop.h (class var_value_operation) <get_symbol>: New method.
4598 (class register_operation) <get_name>: New method.
4599 (class equal_operation): No longer a typedef, now a subclass.
4600 (class unop_memval_operation) <get_type>: New method.
4601 (class assign_operation) <get_lhs>: New method.
4602 (class unop_cast_operation) <get_type>: New method.
4603 * eval.c (evaluate_expression, evaluate_type)
4604 (evaluate_subexpression_type): Update.
4605 (fetch_subexp_value): Add "op" parameter.
4606 (parse_and_eval_type): Update.
4607 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4608 * breakpoint.c (update_watchpoint, watchpoint_check)
4609 (watchpoint_exp_is_const, watch_command_1): Update.
4610 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4611 Update.
4612
b0f9164c
TT
46132021-03-08 Tom Tromey <tom@tromey.com>
4614
4615 * ada-lang.c (ada_value_binop): Do not use op_string.
4616
a88c4354
TT
46172021-03-08 Tom Tromey <tom@tromey.com>
4618
4619 * expprint.c (dump_for_expression): New overload.
4620 * expop.h (check_objfile, dump_for_expression): Declare new
4621 overloads.
4622 * ada-lang.c (check_objfile): New overload.
4623 (assign_component, ada_aggregate_component::uses_objfile)
4624 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4625 (ada_aggregate_component::assign_aggregate)
4626 (ada_positional_component::uses_objfile)
4627 (ada_positional_component::dump, ada_positional_component::assign)
4628 (ada_discrete_range_association::uses_objfile)
4629 (ada_discrete_range_association::dump)
4630 (ada_discrete_range_association::assign)
4631 (ada_name_association::uses_objfile, ada_name_association::dump)
4632 (ada_name_association::assign)
4633 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4634 (ada_choices_component::assign)
4635 (ada_others_component::uses_objfile, ada_others_component::dump)
4636 (ada_others_component::assign, ada_assign_operation::evaluate):
4637 New methods.
4638 * ada-exp.h (ada_string_operation) <get_name>: New method.
4639 (class ada_assign_operation): New.
4640 (class ada_component): New.
4641 (ada_component_up): New typedef.
4642 (class ada_aggregate_operation, class ada_aggregate_component)
4643 (class ada_positional_component, class ada_others_component)
4644 (class ada_association): New.
4645 (ada_association_up): New typedef.
4646 (class ada_choices_component)
4647 (class ada_discrete_range_association)
4648 (class ada_name_association): New.
4649
d8a4ed8a
TT
46502021-03-08 Tom Tromey <tom@tromey.com>
4651
4652 * ada-lang.c (ada_var_value_operation::resolve)
4653 (ada_funcall_operation::resolve)
4654 (ada_ternop_slice_operation::resolve): New methods.
4655 * ada-exp.h (struct ada_resolvable): New.
4656 (class ada_var_value_operation): Derive from ada_resolvable.
4657 <get_block, resolve>: New methods.
4658 (class ada_funcall_operation): Derive from ada_resolvable.
4659 <resolve>: New method.
4660 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4661 <resolve>: New method.
4662
efe3af2f
TT
46632021-03-08 Tom Tromey <tom@tromey.com>
4664
4665 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4666 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4667 method.
4668 (class ada_funcall_operation): New.
4669
ebc06ad8
TT
46702021-03-08 Tom Tromey <tom@tromey.com>
4671
4672 * ada-lang.c (ada_structop_operation::evaluate): New method.
4673 * ada-exp.h (class ada_structop_operation): New.
4674
e8c33fa1
TT
46752021-03-08 Tom Tromey <tom@tromey.com>
4676
4677 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4678 * ada-exp.h (class ada_unop_ind_operation): New.
4679
065ec826
TT
46802021-03-08 Tom Tromey <tom@tromey.com>
4681
4682 * ada-lang.c (ada_binop_exp): No longer static.
4683 * ada-exp.h (ada_binop_exp_operation): New typedef.
4684
9e99f48f
TT
46852021-03-08 Tom Tromey <tom@tromey.com>
4686
4687 * ada-lang.c (ada_val_atr): No longer static.
4688 (ada_atr_val_operation::evaluate): New method.
4689 * ada-exp.h (class ada_atr_val_operation): New.
4690
7631cf6c
TT
46912021-03-08 Tom Tromey <tom@tromey.com>
4692
4693 * ada-lang.c (ada_pos_atr): No longer static.
4694 * ada-exp.h (ada_pos_operation): New typedef.
4695
7992accc
TT
46962021-03-08 Tom Tromey <tom@tromey.com>
4697
4698 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4699 parameters.
4700 (ada_evaluate_subexp): Use it.
4701
6ad3b8bf
TT
47022021-03-08 Tom Tromey <tom@tromey.com>
4703
4704 * ada-lang.c (ada_binop_minmax): No longer static.
4705 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4706 New typedefs.
4707
3f4a0053
TT
47082021-03-08 Tom Tromey <tom@tromey.com>
4709
4710 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4711 New method.
4712 * ada-exp.h (class ada_var_msym_value_operation): New.
4713
99a3b1e7
TT
47142021-03-08 Tom Tromey <tom@tromey.com>
4715
4716 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4717 (ada_var_value_operation::evaluate): New methods.
4718 * ada-exp.h (class ada_var_value_operation): New.
4719
60fa02ca
TT
47202021-03-08 Tom Tromey <tom@tromey.com>
4721
4722 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4723 * ada-exp.h (class ada_unop_atr_operation): New.
4724
82c3886e
TT
47252021-03-08 Tom Tromey <tom@tromey.com>
4726
4727 * ada-lang.c (ada_binop_in_bounds): No longer static.
4728 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4729
1b1ebfab
TT
47302021-03-08 Tom Tromey <tom@tromey.com>
4731
4732 * ada-lang.c (ada_ternop_slice): No longer static.
4733 * ada-exp.h (class ada_ternop_slice_operation): New.
4734
039e4b76
TT
47352021-03-08 Tom Tromey <tom@tromey.com>
4736
4737 * ada-exp.h (ada_bitwise_operation): New template class.
4738 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4739 (ada_bitwise_xor_operation): New typedefs.
4740
6e8fb7b7
TT
47412021-03-08 Tom Tromey <tom@tromey.com>
4742
4743 * ada-lang.c (ada_equal_binop): No longer static.
4744 * ada-exp.h (class ada_binop_equal_operation): New.
4745
d9e7db06
TT
47462021-03-08 Tom Tromey <tom@tromey.com>
4747
4748 * ada-lang.c (ada_mult_binop): No longer static.
4749 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4750 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4751
73796c73
TT
47522021-03-08 Tom Tromey <tom@tromey.com>
4753
4754 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4755 * ada-exp.h (class ada_binop_addsub_operation): New.
4756
cd9a3148
TT
47572021-03-08 Tom Tromey <tom@tromey.com>
4758
4759 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4760 (ada_resolve_variable): Declare.
4761 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4762 (ada_resolve_variable): New functions.
4763 (resolve_subexp): Update.
4764
cf12b17f
TT
47652021-03-08 Tom Tromey <tom@tromey.com>
4766
4767 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4768 method.
4769 * c-exp.h (class opencl_ternop_cond_operation): New.
4770
944fd3b8
TT
47712021-03-08 Tom Tromey <tom@tromey.com>
4772
4773 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4774 method.
4775 * c-exp.h (class opencl_logical_binop_operation): New.
4776
33b79214
TT
47772021-03-08 Tom Tromey <tom@tromey.com>
4778
4779 * opencl-lang.c (opencl_structop_operation::evaluate): New
4780 method.
4781 * c-exp.h (class opencl_structop_operation): New.
4782
2492ba36
TT
47832021-03-08 Tom Tromey <tom@tromey.com>
4784
4785 * opencl-lang.c (opencl_logical_not): No longer static. Change
4786 parameters.
4787 (evaluate_subexp_opencl): Update.
4788 * c-exp.h (opencl_notequal_operation): New typedef.
4789
a88c3c8d
TT
47902021-03-08 Tom Tromey <tom@tromey.com>
4791
4792 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4793 static. Change parameters.
4794 (eval_opencl_assign): No longer static. Add "op" parameter.
4795 (evaluate_subexp_opencl): Update.
4796 * c-exp.h (opencl_binop_operation): New template class.
4797 (opencl_assign_operation, opencl_equal_operation)
4798 (opencl_notequal_operation, opencl_less_operation)
4799 (opencl_gtr_operation, opencl_geq_operation)
4800 (opencl_leq_operation): New typedefs.
4801
e9677704
TT
48022021-03-08 Tom Tromey <tom@tromey.com>
4803
4804 * opencl-lang.c (opencl_value_cast): No longer static.
4805 * c-exp.h (opencl_cast_type_operation): New typedef.
4806
f403a4e4
TT
48072021-03-08 Tom Tromey <tom@tromey.com>
4808
4809 * f-exp.h (eval_op_f_allocated): Declare.
4810 (fortran_allocated_operation): New typedef.
4811 * f-lang.c (eval_op_f_allocated): No longer static.
4812
eb4c9271
TT
48132021-03-08 Tom Tromey <tom@tromey.com>
4814
4815 * f-lang.c (eval_op_f_associated): New functions.
4816 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4817 typedefs.
4818
58a76c72
TT
48192021-03-08 Tom Tromey <tom@tromey.com>
4820
4821 * f-lang.c (fortran_bound_1arg::evaluate)
4822 (fortran_bound_2arg::evaluate): New methods.
4823 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4824 New.
4825
2f98abe1
TT
48262021-03-08 Tom Tromey <tom@tromey.com>
4827
4828 * expop.h (class unop_addr_operation) <get_expression>: New
4829 method.
4830 * f-lang.c (fortran_undetermined::value_subarray)
4831 (fortran_undetermined::evaluate): New methods.
4832 (fortran_prepare_argument): New overload.
4833 * f-exp.h (class fortran_range_operation)
4834 (class fortran_undetermined): New classes.
4835
638fd74a
TT
48362021-03-08 Tom Tromey <tom@tromey.com>
4837
4838 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4839 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4840 method.
4841
a00b7254
TT
48422021-03-08 Tom Tromey <tom@tromey.com>
4843
4844 * expression.h (class operation) <evaluate_funcall>: New methods.
4845 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4846 (class var_value_operation) <evaluate_funcall>: New method.
4847 (class structop_base_operation) <evaluate_funcall>: New method.
4848 (class var_msym_value_operation) <evaluate_funcall>: New method.
4849 (class structop_member_base): New class.
4850 (class structop_member_operation): Derive from
4851 structop_member_base.
4852 (class structop_mptr_operation): Derive from
4853 structop_member_base.
4854 (class funcall_operation): New class.
4855 * eval.c (operation::evaluate_funcall)
4856 (var_value_operation::evaluate_funcall)
4857 (scope_operation::evaluate_funcall)
4858 (structop_member_base::evaluate_funcall)
4859 (structop_base_operation::evaluate_funcall): New methods.
4860
1c02eb30
TT
48612021-03-08 Tom Tromey <tom@tromey.com>
4862
4863 * expop.h (class array_operation): New.
4864 * eval.c (array_operation::evaluate_struct_tuple)
4865 (array_operation::evaluate): New methods.
4866
e4479080
TT
48672021-03-08 Tom Tromey <tom@tromey.com>
4868
4869 * expop.h (class adl_func_operation): New.
4870 * eval.c (adl_func_operation::evaluate): New method.
4871
95d49dfb
TT
48722021-03-08 Tom Tromey <tom@tromey.com>
4873
4874 * ada-lang.c (ada_unop_in_range): No longer static.
4875 * ada-exp.h (class ada_unop_range_operation): New.
4876
7c15d377
TT
48772021-03-08 Tom Tromey <tom@tromey.com>
4878
4879 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4880 No longer static.
4881 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4882 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4883
5019124b
TT
48842021-03-08 Tom Tromey <tom@tromey.com>
4885
4886 * expop.h (class logical_and_operation)
4887 (class logical_or_operation): New.
4888 * eval.c (logical_and_operation::evaluate)
4889 (logical_or_operation::evaluate): New methods.
4890 * ax-gdb.c (logical_and_operation::do_generate_ax)
4891 (logical_or_operation::do_generate_ax): New methods.
4892
2bc9b40c
TT
48932021-03-08 Tom Tromey <tom@tromey.com>
4894
4895 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4896 static.
4897 * m2-exp.h: New file.
4898
5947d337
TT
48992021-03-08 Tom Tromey <tom@tromey.com>
4900
4901 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4902 * rust-exp.h (class rust_aggregate_operation): New.
4903
e4407a20
TT
49042021-03-08 Tom Tromey <tom@tromey.com>
4905
4906 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4907 No longer static.
4908 * rust-exp.h (class rust_struct_anon): New.
4909 (class rust_structop): New.
4910
9db6b6dd
TT
49112021-03-08 Tom Tromey <tom@tromey.com>
4912
4913 * rust-lang.c (rust_range): No longer static.
4914 * rust-exp.h (class rust_range_operation): New.
4915
6ce1ad67
TT
49162021-03-08 Tom Tromey <tom@tromey.com>
4917
4918 * rust-lang.c (rust_subscript): No longer static.
4919 * rust-exp.h (class rust_subscript_operation): New.
4920
11dd3dce
TT
49212021-03-08 Tom Tromey <tom@tromey.com>
4922
4923 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4924 parameter.
4925 (rust_evaluate_subexp): Update.
4926 * rust-exp.h (class rust_unop_ind_operation): New.
4927
6fab4359
TT
49282021-03-08 Tom Tromey <tom@tromey.com>
4929
4930 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4931 longer static. Add "opcode" parameter.
4932 (rust_evaluate_subexp): Update.
4933 * rust-exp.h: New file.
4934
9dcd3e29
TT
49352021-03-08 Tom Tromey <tom@tromey.com>
4936
4937 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4938 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4939 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4940 (evaluate_subexp_f): Update.
4941 * f-exp.h: New file.
4942
fc715eb2
TT
49432021-03-08 Tom Tromey <tom@tromey.com>
4944
4945 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4946 * ada-exp.h (class ada_ternop_range_operation): New.
4947
cc6bd32e
TT
49482021-03-08 Tom Tromey <tom@tromey.com>
4949
4950 * ada-lang.c (ada_qual_operation::evaluate): New method.
4951 * ada-exp.h (class ada_qual_operation): New.
4952
42fecb61
TT
49532021-03-08 Tom Tromey <tom@tromey.com>
4954
4955 * ada-lang.c (ada_string_operation::evaluate): New method.
4956 * ada-exp.h (class ada_string_operation): New.
4957
03070ee9
TT
49582021-03-08 Tom Tromey <tom@tromey.com>
4959
4960 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4961 * ada-exp.h: New file.
4962
821e72d7
TT
49632021-03-08 Tom Tromey <tom@tromey.com>
4964
4965 * expop.h (class multi_subscript_operation): New.
4966 * eval.c (multi_subscript_operation::evaluate): New method.
4967
085734dd
TT
49682021-03-08 Tom Tromey <tom@tromey.com>
4969
4970 * eval.c (objc_msgcall_operation::evaluate): New method.
4971 * c-exp.h (class objc_msgcall_operation): New.
4972
e82a5afc
TT
49732021-03-08 Tom Tromey <tom@tromey.com>
4974
4975 * expop.h (class var_value_operation): New.
4976 * eval.c (var_value_operation::evaluate)
4977 (var_value_operation::evaluate_for_address)
4978 (var_value_operation::evaluate_with_coercion)
4979 (var_value_operation::evaluate_for_sizeof)
4980 (var_value_operation::evaluate_for_cast): New methods.
4981 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4982
d9ad79d8
TT
49832021-03-08 Tom Tromey <tom@tromey.com>
4984
4985 * expop.h (cxx_cast_ftype): New typedef.
4986 (cxx_cast_operation): New template.
4987 (dynamic_cast_operation, reinterpret_cast_operation): New
4988 typedefs.
4989
292382f4
TT
49902021-03-08 Tom Tromey <tom@tromey.com>
4991
4992 * expop.h (class unop_cast_type_operation): New.
4993 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4994 method.
4995
165a813a
TT
49962021-03-08 Tom Tromey <tom@tromey.com>
4997
4998 * expop.h (class unop_cast_operation): New.
4999 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
5000
e5946e16
TT
50012021-03-08 Tom Tromey <tom@tromey.com>
5002
5003 * expop.h (class assign_modify_operation): New.
5004 * eval.c (eval_binop_assign_modify): No longer static.
5005 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
5006
40786782
TT
50072021-03-08 Tom Tromey <tom@tromey.com>
5008
5009 * expop.h (class assign_operation): New.
5010 * ax-gdb.c (assign_operation::do_generate_ax): New method.
5011
44b675c8
TT
50122021-03-08 Tom Tromey <tom@tromey.com>
5013
5014 * expop.h (class type_instance_operation): New.
5015 * eval.c (type_instance_operation::evaluate): New method.
5016
f6b42326
TT
50172021-03-08 Tom Tromey <tom@tromey.com>
5018
5019 * expop.h (class op_this_operation): New.
5020 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
5021
cbc18219
TT
50222021-03-08 Tom Tromey <tom@tromey.com>
5023
5024 * expop.h (class unop_memval_operation)
5025 (class unop_memval_type_operation): New.
5026 * eval.c (eval_op_memval): No longer static.
5027 (unop_memval_operation::evaluate_for_address)
5028 (unop_memval_type_operation::evaluate_for_address)
5029 (unop_memval_operation::evaluate_for_sizeof)
5030 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
5031 * ax-gdb.c (unop_memval_operation::do_generate_ax)
5032 (unop_memval_type_operation::do_generate_ax): New methods.
5033
ae4bb61e
TT
50342021-03-08 Tom Tromey <tom@tromey.com>
5035
5036 * expop.h (class unop_alignof_operation): New.
5037 * eval.c (eval_op_alignof): No longer static.
5038
85d23bda
TT
50392021-03-08 Tom Tromey <tom@tromey.com>
5040
5041 * expop.h (class unop_sizeof_operation): New.
5042 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
5043
14aff815
TT
50442021-03-08 Tom Tromey <tom@tromey.com>
5045
5046 * expop.h (class unop_addr_operation): New.
5047 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
5048
929f3aa7
TT
50492021-03-08 Tom Tromey <tom@tromey.com>
5050
5051 * expop.h (class typeid_operation): New.
5052
0af8829e
TT
50532021-03-08 Tom Tromey <tom@tromey.com>
5054
5055 * expop.h (class decltype_operation): New.
5056
4efc574c
TT
50572021-03-08 Tom Tromey <tom@tromey.com>
5058
5059 * expop.h (class typeof_operation): New.
5060
5b5f5140
TT
50612021-03-08 Tom Tromey <tom@tromey.com>
5062
5063 * expop.h (class type_operation): New.
5064 * eval.c (eval_op_type): No longer static.
5065
876469ff
TT
50662021-03-08 Tom Tromey <tom@tromey.com>
5067
5068 * expop.h (class unop_ind_base_operation)
5069 (class unop_ind_operation): New.
5070 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
5071 (unop_ind_base_operation::evaluate_for_address)
5072 (unop_ind_base_operation::evaluate_for_sizeof): New method.
5073 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
5074
6d89e296
TT
50752021-03-08 Tom Tromey <tom@tromey.com>
5076
5077 * expop.h (unop_incr_operation): New template.
5078 (preinc_operation, predec_operation, postinc_operation)
5079 (postdec_operation): New typedefs.
5080 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
5081 (eval_op_postdec): No longer static.
5082
9307d17b
TT
50832021-03-08 Tom Tromey <tom@tromey.com>
5084
5085 * expop.h (unary_ftype): New typedef.
5086 (unop_operation, usual_ax_binop_operation): New templates.
5087 (unary_plus_operation, unary_neg_operation)
5088 (unary_complement_operation, unary_logical_not_operation): New
5089 typedefs.
5090 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
5091 (eval_op_lognot): No longer static.
5092 * ax-gdb.c (gen_expr_unop): New function.
5093
ae64ba58
TT
50942021-03-08 Tom Tromey <tom@tromey.com>
5095
5096 * ax-gdb.c (comma_operation::do_generate_ax): New method.
5097
d4eff4c1
TT
50982021-03-08 Tom Tromey <tom@tromey.com>
5099
5100 * expop.h (class repeat_operation): New.
5101 * eval.c (eval_op_repeat): No longer static. Remove "op"
5102 parameter.
5103 (evaluate_subexp_standard): Update.
5104 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
5105
46916f2b
TT
51062021-03-08 Tom Tromey <tom@tromey.com>
5107
5108 * expop.h (class comparison_operation): New.
5109 (equal_operation, notequal_operation, less_operation)
5110 (gtr_operation, geq_operation, leq_operation): New typedefs.
5111 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
5112 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
5113
224d6424
TT
51142021-03-08 Tom Tromey <tom@tromey.com>
5115
5116 * expop.h (class subscript_operation): New.
5117 * eval.c (eval_op_subscript): No longer static.
5118
373907ff
TT
51192021-03-08 Tom Tromey <tom@tromey.com>
5120
5121 * expop.h (class binop_operation, class usual_ax_binop_operation):
5122 New.
5123 (exp_operation, intdiv_operation, mod_operation, mul_operation)
5124 (div_operation, rem_operation, lsh_operation, rsh_operation)
5125 (bitwise_and_operation, bitwise_ior_operation)
5126 (bitwise_xor_operation): New typedefs.
5127 * eval.c (eval_op_binary): No longer static.
5128
5133d78b
TT
51292021-03-08 Tom Tromey <tom@tromey.com>
5130
5131 * expop.h (class sub_operation): New.
5132 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
5133 (evaluate_subexp_standard): Update.
5134
a94323b6
TT
51352021-03-08 Tom Tromey <tom@tromey.com>
5136
5137 * expop.h (class add_operation): New.
5138 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
5139 (evaluate_subexp_standard): Update.
5140
e51e26a0
TT
51412021-03-08 Tom Tromey <tom@tromey.com>
5142
5143 * expop.h (class concat_operation): New.
5144 * eval.c (eval_op_concat): No longer static. Remove "op"
5145 parameter.
5146 (evaluate_subexp_standard): Update.
5147
07f724a8
TT
51482021-03-08 Tom Tromey <tom@tromey.com>
5149
5150 * expop.h (class structop_member_operation)
5151 (class structop_mptr_operation): New.
5152 * eval.c (eval_op_member): No longer static.
5153
ab0609be
TT
51542021-03-08 Tom Tromey <tom@tromey.com>
5155
5156 * expop.h (class structop_ptr_operation): New.
5157 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
5158 parameter.
5159
808b22cf
TT
51602021-03-08 Tom Tromey <tom@tromey.com>
5161
5162 * expop.h (class structop_base_operation)
5163 (class structop_operation): New.
5164 * eval.c (eval_op_structop_struct): No longer static.
5165
8cfd3e95
TT
51662021-03-08 Tom Tromey <tom@tromey.com>
5167
5168 * expop.h (class complex_operation): New.
5169
09db3700
TT
51702021-03-08 Tom Tromey <tom@tromey.com>
5171
5172 * eval.c (eval_op_objc_selector): No longer static.
5173 * c-exp.h (class objc_selector_operation): New.
5174
06dc61b9
TT
51752021-03-08 Tom Tromey <tom@tromey.com>
5176
5177 * eval.c: Include c-exp.h.
5178 * c-exp.h (class objc_nsstring_operation): New.
5179
72d0a711
TT
51802021-03-08 Tom Tromey <tom@tromey.com>
5181
5182 * c-lang.c (c_string_operation::evaluate): New method.
5183 * c-exp.h: New file.
5184
9186293f
TT
51852021-03-08 Tom Tromey <tom@tromey.com>
5186
5187 * expop.h (class ternop_cond_operation): New.
5188 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
5189
1594e0bb
TT
51902021-03-08 Tom Tromey <tom@tromey.com>
5191
5192 * expop.h (class ternop_slice_operation): New.
5193 * eval.c (eval_op_ternop): No longer static.
5194
b50db09f
TT
51952021-03-08 Tom Tromey <tom@tromey.com>
5196
5197 * expop.h (class string_operation): New.
5198 * eval.c (eval_op_string): No longer static.
5199
e6e01e16
TT
52002021-03-08 Tom Tromey <tom@tromey.com>
5201
5202 * expop.h (class internalvar_operation): New.
5203 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
5204
e6985c5e
TT
52052021-03-08 Tom Tromey <tom@tromey.com>
5206
5207 * expop.h (class bool_operation): New.
5208
55bdbff8
TT
52092021-03-08 Tom Tromey <tom@tromey.com>
5210
5211 * expop.h (class register_operation): New.
5212 * eval.c (eval_op_register): No longer static.
5213 * ax-gdb.c (register_operation::do_generate_ax): New method.
5214
247d935b
TT
52152021-03-08 Tom Tromey <tom@tromey.com>
5216
5217 * expop.h (class last_operation): New.
5218
17679395
TT
52192021-03-08 Tom Tromey <tom@tromey.com>
5220
5221 * expop.h (class func_static_var_operation): New.
5222 * eval.c (eval_op_func_static_var): No longer static.
5223
b5cc3923
TT
52242021-03-08 Tom Tromey <tom@tromey.com>
5225
5226 * expop.h (class var_entry_value_operation): New.
5227 * eval.c (eval_op_var_entry_value): No longer static.
5228
0c8effa3
TT
52292021-03-08 Tom Tromey <tom@tromey.com>
5230
5231 * expression.h (class operation) <set_outermost>: New method.
5232 * expop.h (class var_msym_value_operation): New.
5233 * eval.c (eval_op_var_msym_value): No longer static.
5234 (var_msym_value_operation::evaluate_for_address)
5235 (var_msym_value_operation::evaluate_for_sizeof)
5236 (var_msym_value_operation::evaluate_for_cast): New methods.
5237 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
5238 method.
5239
d336c29e
TT
52402021-03-08 Tom Tromey <tom@tromey.com>
5241
5242 * expop.h (class long_const_operation): New.
5243 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
5244
d5ab122c
TT
52452021-03-08 Tom Tromey <tom@tromey.com>
5246
5247 * expop.h (class scope_operation): New.
5248 * eval.c (eval_op_scope): No longer static.
5249 (scope_operation::evaluate_for_address): New method.
5250 * ax-gdb.c (scope_operation::do_generate_ax): New method.
5251
cae26a0c
TT
52522021-03-08 Tom Tromey <tom@tromey.com>
5253
5254 * expprint.c (float_const_operation::dump): New method.
5255 * expop.h (float_data): New typedef.
5256 (class float_const_operation): New.
5257
75f9892d
TT
52582021-03-08 Tom Tromey <tom@tromey.com>
5259
5260 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
5261 * ax-gdb.c (gen_expr_binop): New function.
5262 (gen_expr_structop): Likewise.
5263
de401988
TT
52642021-03-08 Tom Tromey <tom@tromey.com>
5265
5266 * expprint.c (expr::dump_for_expression): New functions.
5267 * expop.h (dump_for_expression): New overloads.
5268 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5269 Update.
5270
e2803273
TT
52712021-03-08 Tom Tromey <tom@tromey.com>
5272
5273 * expression.h (expr::operation): New class.
5274 (expr::make_operation): New function.
5275 (expr::operation_up): New typedef.
5276 * expop.h: New file.
5277 * eval.c (operation::evaluate_for_cast)
5278 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
5279 New methods.
5280 * ax-gdb.c (operation::generate_ax): New method.
5281
e18c58f2
TT
52822021-03-08 Tom Tromey <tom@tromey.com>
5283
5284 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5285 (gen_expr_binop_rest): New overload.
5286
c0d7ed8c
TT
52872021-03-08 Tom Tromey <tom@tromey.com>
5288
5289 * eval.c (eval_multi_subscript): New function.
5290 (evaluate_subexp_standard): Use it.
5291
dd5fd283
TT
52922021-03-08 Tom Tromey <tom@tromey.com>
5293
5294 * ada-lang.c (ada_binop_exp): New function.
5295 (ada_evaluate_subexp): Use it.
5296
3848abd6
TT
52972021-03-08 Tom Tromey <tom@tromey.com>
5298
5299 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
5300 parameters.
5301 (ada_evaluate_subexp): Use it.
5302
38dc70cf
TT
53032021-03-08 Tom Tromey <tom@tromey.com>
5304
5305 * ada-lang.c (ada_binop_minmax): New function.
5306 (ada_evaluate_subexp): Use it.
5307
b84564fc
TT
53082021-03-08 Tom Tromey <tom@tromey.com>
5309
5310 * ada-lang.c (ada_unop_atr): New function.
5311 (ada_evaluate_subexp): Use it.
5312
b467efaa
TT
53132021-03-08 Tom Tromey <tom@tromey.com>
5314
5315 * ada-lang.c (ada_binop_in_bounds): New function.
5316 (ada_evaluate_subexp): Use it.
5317
5ce19db8
TT
53182021-03-08 Tom Tromey <tom@tromey.com>
5319
5320 * ada-lang.c (ada_ternop_slice): New function.
5321 (ada_evaluate_subexp): Use it.
5322
214b13ac
TT
53232021-03-08 Tom Tromey <tom@tromey.com>
5324
5325 * ada-lang.c (ada_equal_binop): New function.
5326 (ada_evaluate_subexp): Use it.
5327
faa1dfd7
TT
53282021-03-08 Tom Tromey <tom@tromey.com>
5329
5330 * ada-lang.c (ada_mult_binop): New function.
5331 (ada_evaluate_subexp): Use it.
5332
d05e24e6
TT
53332021-03-08 Tom Tromey <tom@tromey.com>
5334
5335 * ada-lang.c (ada_abs): New function.
5336 (ada_evaluate_subexp): Use it.
5337
68c75735
TT
53382021-03-08 Tom Tromey <tom@tromey.com>
5339
5340 * ada-lang.c (ada_atr_size): New function.
5341 (ada_evaluate_subexp): Use it.
5342
020dbabe
TT
53432021-03-08 Tom Tromey <tom@tromey.com>
5344
5345 * ada-lang.c (ada_atr_tag): New function.
5346 (ada_evaluate_subexp): Use it.
5347
7efc87ff
TT
53482021-03-08 Tom Tromey <tom@tromey.com>
5349
5350 * ada-lang.c (ada_unop_in_range): New function.
5351 (ada_evaluate_subexp): Use it.
5352
82390ab8
TT
53532021-03-08 Tom Tromey <tom@tromey.com>
5354
5355 * ada-lang.c (ada_unop_neg): New function.
5356 (ada_evaluate_subexp): Use it.
5357
62d4bd94
TT
53582021-03-08 Tom Tromey <tom@tromey.com>
5359
5360 * ada-lang.c (eval_ternop_in_range): New function.
5361 (ada_evaluate_subexp): Use it.
5362
3634f669
TT
53632021-03-08 Tom Tromey <tom@tromey.com>
5364
5365 * opencl-lang.c (eval_opencl_assign): New function.
5366 (evaluate_subexp_opencl): Use it.
5367
5e80600e
TT
53682021-03-08 Tom Tromey <tom@tromey.com>
5369
5370 * eval.c (eval_op_objc_msgcall): New function.
5371 (evaluate_subexp_standard): Use it.
5372
fb5ba2ab
TT
53732021-03-08 Tom Tromey <tom@tromey.com>
5374
5375 * eval.c (eval_binop_assign_modify): New function.
5376 (evaluate_subexp_standard): Use it.
5377
a49881f7
TT
53782021-03-08 Tom Tromey <tom@tromey.com>
5379
5380 * m2-lang.c (eval_op_m2_subscript): New function.
5381 (evaluate_subexp_modula2): Use it.
5382
41bdced5
TT
53832021-03-08 Tom Tromey <tom@tromey.com>
5384
5385 * m2-lang.c (eval_op_m2_high): New function.
5386 (evaluate_subexp_modula2): Use it.
5387
13ea014a
TT
53882021-03-08 Tom Tromey <tom@tromey.com>
5389
5390 * eval.c (evaluate_subexp_for_address_base): New function.
5391 (evaluate_subexp_for_address): Use it.
5392 (evaluate_subexp_for_sizeof_base): New function.
5393 (evaluate_subexp_for_sizeof): Use it.
5394
1fa41fc7
TT
53952021-03-08 Tom Tromey <tom@tromey.com>
5396
5397 * rust-lang.c (eval_op_rust_structop): New function.
5398 (rust_evaluate_subexp): Use it.
5399
575cae23
TT
54002021-03-08 Tom Tromey <tom@tromey.com>
5401
5402 * rust-lang.c (eval_op_rust_struct_anon): New function.
5403 (rust_evaluate_subexp): Use it.
5404
05104233
TT
54052021-03-08 Tom Tromey <tom@tromey.com>
5406
5407 * rust-lang.c (eval_op_rust_array): New function.
5408 (rust_evaluate_subexp): Use it.
5409
6fa9831f
TT
54102021-03-08 Tom Tromey <tom@tromey.com>
5411
5412 * rust-lang.c (eval_op_rust_complement): New function.
5413 (rust_evaluate_subexp): Use it.
5414
d123f9e4
TT
54152021-03-08 Tom Tromey <tom@tromey.com>
5416
5417 * rust-lang.c (eval_op_rust_ind): New function.
5418 (rust_evaluate_subexp): Use it.
5419
984af2cb
TT
54202021-03-08 Tom Tromey <tom@tromey.com>
5421
5422 * rust-lang.c (rust_subscript): Change parameters.
5423 (rust_evaluate_subexp): Update.
5424
d148f803
TT
54252021-03-08 Tom Tromey <tom@tromey.com>
5426
5427 * rust-lang.c (rust_range): Change parameters.
5428 (rust_evaluate_subexp): Update.
5429
9cbd1c20
TT
54302021-03-08 Tom Tromey <tom@tromey.com>
5431
5432 * f-lang.c (eval_op_f_allocated): New function.
5433 (evaluate_subexp_f): Use it.
5434
3c18c49c
TT
54352021-03-08 Tom Tromey <tom@tromey.com>
5436
5437 * f-lang.c (fortran_require_array): New function.
5438 (evaluate_subexp_f): Use it.
5439
216f6fcb
TT
54402021-03-08 Tom Tromey <tom@tromey.com>
5441
5442 * f-lang.c (eval_op_f_kind): New function.
5443 (evaluate_subexp_f): Use it.
5444
00f2db6f
TT
54452021-03-08 Tom Tromey <tom@tromey.com>
5446
5447 * f-lang.c (eval_op_f_cmplx): New function.
5448 (evaluate_subexp_f): Use it.
5449
93b2b5fa
TT
54502021-03-08 Tom Tromey <tom@tromey.com>
5451
5452 * f-lang.c (eval_op_f_modulo): New function.
5453 (evaluate_subexp_f): Use it.
5454
9f1a1f3c
TT
54552021-03-08 Tom Tromey <tom@tromey.com>
5456
5457 * f-lang.c (eval_op_f_floor): New function.
5458 (evaluate_subexp_f): Use it.
5459
3dc41f3c
TT
54602021-03-08 Tom Tromey <tom@tromey.com>
5461
5462 * f-lang.c (eval_op_f_ceil): New function.
5463 (evaluate_subexp_f): Use it.
5464
e08109f2
TT
54652021-03-08 Tom Tromey <tom@tromey.com>
5466
5467 * f-lang.c (eval_op_f_mod): New function.
5468 (evaluate_subexp_f): Use it.
5469
cc05c68e
TT
54702021-03-08 Tom Tromey <tom@tromey.com>
5471
5472 * f-lang.c (eval_op_f_abs): New function.
5473 (evaluate_subexp_f): Use it.
5474
aec95807
TT
54752021-03-08 Tom Tromey <tom@tromey.com>
5476
5477 * eval.c (eval_op_type): New function.
5478 (evaluate_subexp_standard): Use it.
5479
a220ead5
TT
54802021-03-08 Tom Tromey <tom@tromey.com>
5481
5482 * eval.c (eval_op_postdec): New function.
5483 (evaluate_subexp_standard): Use it.
5484
abffe116
TT
54852021-03-08 Tom Tromey <tom@tromey.com>
5486
5487 * eval.c (eval_op_postinc): New function.
5488 (evaluate_subexp_standard): Use it.
5489
9e1361b7
TT
54902021-03-08 Tom Tromey <tom@tromey.com>
5491
5492 * eval.c (eval_op_predec): New file.
5493 (evaluate_subexp_standard): Use it.
5494
00f50884
TT
54952021-03-08 Tom Tromey <tom@tromey.com>
5496
5497 * eval.c (eval_op_preinc): New function.
5498 (evaluate_subexp_standard): Use it.
5499
3aef2a07
TT
55002021-03-08 Tom Tromey <tom@tromey.com>
5501
5502 * eval.c (eval_op_memval): New function.
5503 (evaluate_subexp_standard): Use it.
5504
acee9468
TT
55052021-03-08 Tom Tromey <tom@tromey.com>
5506
5507 * eval.c (eval_op_alignof): New function.
5508 (evaluate_subexp_standard): Use it.
5509
786f70ee
TT
55102021-03-08 Tom Tromey <tom@tromey.com>
5511
5512 * eval.c (eval_op_ind): New function.
5513 (evaluate_subexp_standard): Use it.
5514
24338fb9
TT
55152021-03-08 Tom Tromey <tom@tromey.com>
5516
5517 * eval.c (eval_op_lognot): New function.
5518 (evaluate_subexp_standard): Use it.
5519
1f09ec81
TT
55202021-03-08 Tom Tromey <tom@tromey.com>
5521
5522 * eval.c (eval_op_complement): New function.
5523 (evaluate_subexp_standard): Use it.
5524
606d105f
TT
55252021-03-08 Tom Tromey <tom@tromey.com>
5526
5527 * eval.c (eval_op_neg): New function.
5528 (evaluate_subexp_standard): Use it.
5529
39f288be
TT
55302021-03-08 Tom Tromey <tom@tromey.com>
5531
5532 * eval.c (eval_op_plus): New function.
5533 (evaluate_subexp_standard): Use it.
5534
eed70b1c
TT
55352021-03-08 Tom Tromey <tom@tromey.com>
5536
5537 * eval.c (eval_op_repeat): New function.
5538 (evaluate_subexp_standard): Use it.
5539
60cdd487
TT
55402021-03-08 Tom Tromey <tom@tromey.com>
5541
5542 * eval.c (eval_op_leq): New function.
5543 (evaluate_subexp_standard): Use it.
5544
96e3efd9
TT
55452021-03-08 Tom Tromey <tom@tromey.com>
5546
5547 * eval.c (eval_op_geq): New function.
5548 (evaluate_subexp_standard): Use it.
5549
1f78d732
TT
55502021-03-08 Tom Tromey <tom@tromey.com>
5551
5552 * eval.c (eval_op_gtr): New function.
5553 (evaluate_subexp_standard): Use it.
5554
6cad1349
TT
55552021-03-08 Tom Tromey <tom@tromey.com>
5556
5557 * eval.c (eval_op_less): New function.
5558 (evaluate_subexp_standard): Use it.
5559
1fcb3559
TT
55602021-03-08 Tom Tromey <tom@tromey.com>
5561
5562 * eval.c (eval_op_notequal): New function.
5563 (evaluate_subexp_standard): Use it.
5564
0cc96de8
TT
55652021-03-08 Tom Tromey <tom@tromey.com>
5566
5567 * eval.c (eval_op_equal): New function.
5568 (evaluate_subexp_standard): Use it.
5569
288d26bc
TT
55702021-03-08 Tom Tromey <tom@tromey.com>
5571
5572 * eval.c (eval_op_subscript): New function.
5573 (evaluate_subexp_standard): Use it.
5574
7cdcdd02
TT
55752021-03-08 Tom Tromey <tom@tromey.com>
5576
5577 * eval.c (eval_op_binary): New function.
5578 (evaluate_subexp_standard): Use it.
5579
d9790e22
TT
55802021-03-08 Tom Tromey <tom@tromey.com>
5581
5582 * eval.c (eval_op_sub): New function.
5583 (evaluate_subexp_standard): Use it.
5584
aedaf9ac
TT
55852021-03-08 Tom Tromey <tom@tromey.com>
5586
5587 * eval.c (eval_op_add): New function.
5588 (evaluate_subexp_standard): Use it.
5589
b7a96ed2
TT
55902021-03-08 Tom Tromey <tom@tromey.com>
5591
5592 * eval.c (eval_op_member): New function.
5593 (evaluate_subexp_standard): Use it.
5594
fb461aa3
TT
55952021-03-08 Tom Tromey <tom@tromey.com>
5596
5597 * eval.c (eval_op_structop_ptr): New function.
5598 (evaluate_subexp_standard): Use it.
5599
3e96c4fc
TT
56002021-03-08 Tom Tromey <tom@tromey.com>
5601
5602 * eval.c (eval_op_structop_struct): New function.
5603 (evaluate_subexp_standard): Use it.
5604
f960a617
TT
56052021-03-08 Tom Tromey <tom@tromey.com>
5606
5607 * eval.c (eval_op_ternop): New function.
5608 (evaluate_subexp_standard): Use it.
5609
5c2f201e
TT
56102021-03-08 Tom Tromey <tom@tromey.com>
5611
5612 * eval.c (eval_op_concat): New function.
5613 (evaluate_subexp_standard): Use it.
5614
f871bae1
TT
56152021-03-08 Tom Tromey <tom@tromey.com>
5616
5617 * eval.c (eval_op_objc_selector): New function.
5618 (evaluate_subexp_standard): Use it.
5619
14a1c64a
TT
56202021-03-08 Tom Tromey <tom@tromey.com>
5621
5622 * eval.c (eval_op_string): New function.
5623 (evaluate_subexp_standard): Use it.
5624
ffff730b
TT
56252021-03-08 Tom Tromey <tom@tromey.com>
5626
5627 * eval.c (eval_op_register): New function.
5628 (evaluate_subexp_standard): Use it.
5629
9b1d8af6
TT
56302021-03-08 Tom Tromey <tom@tromey.com>
5631
5632 * eval.c (eval_op_func_static_var): New function.
5633 (evaluate_subexp_standard): Use it.
5634
c0df9289
TT
56352021-03-08 Tom Tromey <tom@tromey.com>
5636
5637 * eval.c (eval_op_var_msym_value): New function.
5638 (evaluate_subexp_standard): Use it.
5639
50b98adc
TT
56402021-03-08 Tom Tromey <tom@tromey.com>
5641
5642 * eval.c (eval_op_var_entry_value): New function.
5643 (evaluate_subexp_standard): Use it.
5644
ea2d29f7
TT
56452021-03-08 Tom Tromey <tom@tromey.com>
5646
5647 * eval.c (eval_op_scope): New function.
5648 (evaluate_subexp_standard): Use it.
5649
01573d73
TT
56502021-03-06 Chernov Sergey <klen_s@mail.ru>
5651
5652 PR gdb/27528:
5653 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5654
9938d15a
TT
56552021-03-06 Tom Tromey <tom@tromey.com>
5656
5657 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5658 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5659 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5660 (locate_dwz_sections, dwz_search_other_debugdirs)
5661 (dwarf2_get_dwz_file): Move to dwz.c.
5662 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5663 read.h.
5664 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5665 (dwarf2_get_dwz_file): Move from read.c.
5666
18035655
TT
56672021-03-06 Tom Tromey <tom@tromey.com>
5668
5669 * debuginfod-support.h: Include scoped_fd.h.
5670
a7308ce0
TT
56712021-03-06 Tom Tromey <tom@tromey.com>
5672
5673 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5674 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5675 (get_abbrev_section_for_cu, read_attribute_value)
5676 (get_debug_line_section): Update.
5677 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5678
fbedd546
TT
56792021-03-06 Tom Tromey <tom@tromey.com>
5680
5681 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5682 method.
5683 * dwarf2/read.c (section_is_p): Remove.
5684 (dwarf2_per_bfd::locate_sections)
5685 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5686 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5687 (dwarf2_locate_common_dwp_sections)
5688 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5689 Update.
5690
c2a62a3d
TT
56912021-03-06 Tom Tromey <tom@tromey.com>
5692
5693 * xcoffread.c: Include sect-names.h.
5694 * symfile.h (struct dwarf2_section_names, struct
5695 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5696 * dwarf2/sect-names.h: New file, from symfile.h.
5697 * dwarf2/read.c: Include sect-names.h.
5698
4444f407
TT
56992021-03-06 Tom Tromey <tom@tromey.com>
5700
5701 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5702 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5703 (abbrev_table::read): Update.
5704 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5705 (struct abbrev_info): Reformat.
5706 <attrs>: Now an array.
5707 (struct abbrev_table) <alloc_abbrev>: Remove.
5708
dd99cf0c
WP
57092021-03-06 Weimin Pan <weimin.pan@oracle.com>
5710
5711 * ctfread.c (ctf_psymtab_add_enums): New function.
5712 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5713
844be3f2
WP
57142021-03-06 Weimin Pan <weimin.pan@oracle.com>
5715
5716 * ctfread.c (read_func_kind_type): Set up function arguments.
5717
b2668f28
AB
57182021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5719 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5722 includes.
5723 (riscv_csrset): New static global.
5724 (riscv_update_csrmap): New function.
5725 (riscv_iterate_over_regset_sections): Process CSRs.
5726
d782d24b
AB
57272021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5728
5729 * riscv-tdep.c (riscv_feature_name_csr): Define.
5730 (riscv_feature_name_cpu): Define.
5731 (riscv_feature_name_fpu): Define.
5732 (riscv_feature_name_virtual): Define.
5733 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5734 (riscv_freg_feature): Use riscv_feature_name_fpu.
5735 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5736 (riscv_csr_feature): Use riscv_feature_name_csr.
5737 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5738
fb8f3fc0
AB
57392021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5740 Craig Blackmore <craig.blackmore@embecosm.com>
5741
5742 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5743 (ALLDEPFILES): Add riscv-none-tdep.c.
5744 * configure: Regenerate.
5745 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5746 support.
5747 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5748 * elf-none-tdep.c: New file.
5749 * elf-none-tdep.h: New file.
5750 * riscv-none-tdep.c: New file.
5751
95ce627a
AB
57522021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5753 Andrew Burgess <andrew.burgess@embecosm.com>
5754
5755 * corelow.c: Add 'xml-tdesc.h' include.
5756 (core_target::read_description): Load the target description from
5757 the core file when possible.
5758 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5759 note.
5760 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5761 (gcore_elf_make_tdesc_note): New function.
5762 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5763 * linux-tdep.c (linux_make_corefile_notes): Add target description
5764 note.
5765
f3a5df7b
AB
57662021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5767
5768 * Makefile.in (SFILES): Add gcore-elf.c.
5769 (HFILES_NO_SRCDIR): Add gcore-elf.h
5770 * configure: Regenerate.
5771 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5772 support.
5773 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5774 (struct fbsd_collect_regset_section_cb_data): Delete.
5775 (fbsd_collect_regset_section_cb): Delete.
5776 (fbsd_collect_thread_registers): Delete.
5777 (struct fbsd_corefile_thread_data): Delete.
5778 (fbsd_corefile_thread): Delete.
5779 (fbsd_make_corefile_notes): Call
5780 gcore_elf_build_thread_register_notes instead of the now deleted
5781 FreeBSD code.
5782 * gcore-elf.c: New file, the content was moved here from
5783 linux-tdep.c, functions were renamed and given minor cleanup.
5784 * gcore-elf.h: New file.
5785 * gcore.c (gcore_find_signalled_thread): Moved here from
5786 linux-tdep.c and given a new name. Minor cleanups.
5787 * gcore.h (gcore_find_signalled_thread): Declare.
5788 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5789 (struct linux_collect_regset_section_cb_data): Delete.
5790 (linux_collect_regset_section_cb): Delete.
5791 (linux_collect_thread_registers): Delete.
5792 (linux_corefile_thread): Call
5793 gcore_elf_build_thread_register_notes.
5794 (find_signalled_thread): Delete.
5795 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5796
d1e93af6
SM
57972021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 PR gdb/27147
5800 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5801 process_stratum_target parameter,
5802 sparc_store_inferior_registers): update callers.
5803 * sparc-nat.c (sparc_fetch_inferior_registers,
5804 sparc_store_inferior_registers): Add process_stratum_target
5805 parameter. Switch current thread before calling
5806 sparc_supply_gregset / sparc_collect_rwindow.
5807 (sparc_store_inferior_registers): Likewise.
5808 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5809 (sparc32obsd_collect_uthread): Likewise.
5810 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5811 Add assertion.
5812 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5813 sparc64obsd_supply_uthread): Add assertion.
5814
1178743e
TT
58152021-03-04 Tom Tromey <tromey@adacore.com>
5816
5817 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5818 (aux_add_nonlocal_symbols): Update.
5819 (ada_add_block_symbols): Change "found_sym" to bool.
5820
1bfa81ac
TT
58212021-03-03 Tom Tromey <tromey@adacore.com>
5822
5823 * ada-lang.c (ada_resolve_function): Update comment.
5824 (is_nonfunction, add_symbols_from_enclosing_procs)
5825 (remove_extra_symbols): Likewise.
5826 (struct match_data): Add constructor, initializers.
5827 (add_nonlocal_symbols): Remove memset.
5828 (aux_add_nonlocal_symbols): Update comment.
5829 (ada_add_block_renamings, add_nonlocal_symbols)
5830 (ada_add_all_symbols): Likewise.
5831 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5832
bbcdf9ab
TT
58332021-03-02 Tom Tromey <tromey@adacore.com>
5834
5835 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5836 (cast_to_gnat_encoded_fixed_point_type): Remove.
5837 (ada_value_cast, ada_evaluate_subexp): Update.
5838 (gnat_encoded_fixed_point_type_info)
5839 (ada_is_gnat_encoded_fixed_point_type)
5840 (gnat_encoded_fixed_point_delta)
5841 (gnat_encoded_fixed_point_scaling_factor): Remove.
5842 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5843 (gnat_encoded_fixed_point_delta)
5844 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5845 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5846 (ada_print_type): Update.
5847 * ada-valprint.c (ada_value_print_num): Update.
5848 * dwarf2/read.c (ada_get_gnat_encoded_number)
5849 (ada_get_gnat_encoded_ratio): New functions.
5850 (finish_fixed_point_type): Use them. Add parameters.
5851 (GNAT_FIXED_POINT_SUFFIX): New define.
5852 (gnat_encoded_fixed_point_type_info): New function.
5853 (read_base_type): Handle gnat encodings.
5854
5f9febe0
TT
58552021-03-02 Tom Tromey <tromey@adacore.com>
5856
5857 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5858 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5859 std::string.
5860 (GROW_VECT): Remove.
5861 (grow_vect): Remove.
5862
d1183b06
TT
58632021-03-02 Tom Tromey <tromey@adacore.com>
5864
5865 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5866 * ada-lang.c (resolve_subexp): Update.
5867 (ada_resolve_function): Accept a vector.
5868 (is_nonfunction, add_defn_to_vec)
5869 (add_symbols_from_enclosing_procs): Likewise.
5870 (num_defns_collected, defns_collected): Remove.
5871 (remove_extra_symbols): Return a vector.
5872 (remove_irrelevant_renamings): Return void.
5873 (ada_add_local_symbols): Accept a vector.
5874 (struct match_data) <obstackp>: Remove.
5875 <resultp>: New member.
5876 (aux_add_nonlocal_symbols): Update.
5877 (ada_add_block_renamings, add_nonlocal_symbols)
5878 (ada_add_all_symbols): Accept a vector.
5879 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5880 vector.
5881 (ada_lookup_symbol): Update.
5882 (ada_add_block_symbols): Accept a vector.
5883 (get_var_value, iterate_over_symbols): Update.
5884 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5885 Update.
5886
886d459f
TT
58872021-03-02 Tom Tromey <tromey@adacore.com>
5888
5889 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5890
bdcccc56
TT
58912021-03-02 Tom Tromey <tromey@adacore.com>
5892
5893 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5894 auto_obstack.
5895 <root>: Initialize.
5896 (ada_pspace_data): Remove destructor.
5897 <sym_cache>: Now a unique_ptr.
5898 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5899 (ada_get_symbol_cache): Use 'new'.
5900 (ada_clear_symbol_cache): Rewrite.
5901
1228719f
TT
59022021-03-02 Tom Tromey <tromey@adacore.com>
5903
5904 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5905 is null.
5906
bb3a4efe
LS
59072021-02-27 Lancelot Six <lsix@lancelotsix.com>
5908
5909 PR gdb/27393
5910 * source.c (add_path): Skip empty dirnames.
5911
26b43ca6 59122021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5913
5914 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5915 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5916
dffdd8b5
SM
59172021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5918
5919 PR gdb/26861
5920 * target.c (target_mourn_inferior): Only compare pids in
5921 target_mourn_inferior.
5922
64d38fdd
JM
59232021-02-25 Jan Matyas <jmatyas@codasip.com>
5924
5925 PR gdb/26819
5926 * remote.c (remote_target::start_remote): Ensure the single
5927 thread, automatically added for remote targets without the
5928 concept of threading, is initially in set to the "resumed"
5929 state.
5930 * remote.c (remote_target::add_current_inferior_and_thread):
5931 Add return value - return the main thread.
5932
2450ad54
JV
59332021-02-25 Jan Vrany <jan.vrany@labware.com>
5934
5935 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5936 (mi_tsv_created): Likewise.
5937 (mi_tsv_deleted): Likewise.
5938
30c80d88
TV
59392021-02-25 Tom de Vries <tdevries@suse.de>
5940
5941 PR symtab/27354
5942 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5943 section_kind for &dwo_file->sections.info.
5944
68337b8b
AB
59452021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5946
5947 PR fortran/26155
5948 * f-lang.c (fortran_argument_convert): Delete declaration.
5949 (fortran_prepare_argument): New function.
5950 (evaluate_subexp_f): Move logic to new function
5951 fortran_prepare_argument.
5952
faeb9f13
AB
59532021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5954
5955 * f-exp.y (f77_keywords): Add 'associated'.
5956 * f-lang.c (fortran_associated): New function.
5957 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5958 (operator_length_f): Likewise.
5959 (print_unop_or_binop_subexp_f): New function.
5960 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5961 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5962 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5963 (operator_check_f): Likewise.
5964 * std-operator.def: Add FORTRAN_ASSOCIATED.
5965
170f4b23
AB
59662021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5967
5968 * f-exp.y (fortran_operators): Add ".xor.".
5969
aa659cfa
TV
59702021-02-24 Tom de Vries <tdevries@suse.de>
5971
5972 PR symtab/27336
5973 * dwarf2/attribute.c (attribute::form_is_signed): New function
5974 factored out of ...
5975 * dwarf2/attribute.h (attribute::as_signed): ... here.
5976 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5977 (attribute::form_is_signed): Declare.
5978 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5979 for DW_AT_decl_file.
5980
268c77c1
KB
59812021-02-24 Kevin Buettner <kevinb@redhat.com>
5982
5983 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5984 order for <sys/ptrace.h> and <asm/ptrace.h>.
5985
665af52e
KB
59862021-02-24 Kevin Buettner <kevinb@redhat.com>
5987
5988 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5989 <sys/ptrace.h>.
5990
dd80d750
AB
59912021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5992
5993 * exec.c (set_section_command): Move variable declarations into
5994 the function body, and use std::string instead of a fixed size
5995 buffer.
5996
336aa7b7
AB
59972021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5998
5999 * exec.c (exec_target::get_section_table): Delete member function.
6000 (section_table_read_available_memory): Use current_top_target, not
6001 just the exec_ops target.
6002 * target-delegates.c: Regenerate.
6003 * target.c (default_get_section_table): New function.
6004 * target.h (target_ops::get_section_table): Change default
6005 behaviour to call default_get_section_table.
6006 (default_get_section_table): Declare.
6007
02f7d26b
AB
60082021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6009
6010 * exec.c (exec_target::close): Call new clear_target_sections
6011 function.
6012 (program_space::add_target_sections): Update name of member
6013 variable.
6014 (program_space::add_target_sections): Update name of member
6015 variable.
6016 (program_space::remove_target_sections): Likewise.
6017 (exec_one_fork): Use new target_sections member function.
6018 (exec_target::get_section_table): Likewise.
6019 (exec_target::files_info): Likewise.
6020 (set_section_command): Likewise.
6021 (exec_set_section_address): Likewise.
6022 (exec_target::has_memory): Use new target_sections member
6023 function.
6024 * progspace.h (program_space::clear_target_sections): New member
6025 function.
6026 (program_space::target_sections): Rename member variable to
6027 m_target_sections, replace with a new member function.
6028 (program_space::m_target_sections): New member variable.
6029 * solib-dsbt.c (scan_dyntag): Use new member function.
6030 * solib-svr4.c (scan_dyntag): Likewise.
6031
19cf757a
AB
60322021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
6035 return type const.
6036 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
6037 (section_table_read_available_memory): Make local const.
6038 (exec_target::xfer_partial): Make local const.
6039 (print_section_info): Make parameter const.
6040 * gdb/exec.h (print_section_info): Likewise.
6041 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
6042 const.
6043 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
6044 Likewise.
6045 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
6046 Likewise.
6047 * gdb/s390-tdep.c (s390_load): Likewise.
6048 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
6049 * gdb/solib-svr4.c (scan_dyntag): Likewise.
6050 * gdb/target-debug.h (target_debug_print_target_section_table_p):
6051 Rename to...
6052 (target_debug_print_const_target_section_table_p): ...this.
6053 * gdb/target-delegates.c: Regenerate.
6054 * gdb/target.c (target_get_section_table): Make return type const.
6055 (target_section_by_addr): Likewise. Also make some locals const.
6056 (memory_xfer_partial_1): Make some locals const.
6057 * gdb/target.h (struct target_ops) <get_section_table>: Make
6058 return type const.
6059 (target_section_by_addr): Likewise.
6060 (target_get_section_table): Likewise.
6061
02a79309
AB
60622021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6063
6064 * NEWS: Mention new 'maint info target-sections' command.
6065 * maint.c (maintenance_info_target_sections): New function.
6066 (_initialize_maint_cmds): Register new command.
6067
895b7b4e
AB
60682021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6069
6070 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
6071 (riscv_features_from_bfd): ...this. Change parameter type to
6072 'bfd*', and update as required.
6073 (riscv_find_default_target_description): Update call to
6074 riscv_features_from_bfd. Select a default xlen based on
6075 info.bfd_arch_info.
6076 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
6077
bc3c0632
AB
60782021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6079
6080 * eval.c (evaluate_subexp_standard): Call value_ind for points to
6081 dynamic types in UNOP_IND.
6082
08ac5771
SM
60832021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6084
6085 PR gdb/26828
6086 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
6087 Instantiate queue.
6088 (~dwarf2_queue_guard): Clear queue.
6089 (queue_comp_unit): Assert that queue is
6090 instantiated.
6091 (process_queue): Adjust.
6092 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
6093
616c069a
SM
60942021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6095
6096 PR gdb/26828
6097 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
6098 to decide whether or not to enqueue it for expansion.
6099 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
6100 after calling maybe_queue_comp_unit.
6101
897608ed
SM
61022021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6103
6104 * linux-nat.c (linux_nat_filter_event): Return void.
6105
15908a11
TT
61062021-02-22 Tom Tromey <tromey@adacore.com>
6107
6108 * solib-svr4.c (enable_break): Update.
6109 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
6110 type.
6111 (target_bfd_reopen): Change parameter type.
6112 * bfd-target.h (target_bfd_reopen): Change parameter type.
6113
f53fc427
SM
61142021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6115
6116 * thread.c (add_thread_silent): Add assert.
6117 (find_thread_ptid): Add assert.
6118
de146e19
SM
61192021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6120
6121 PR gdb/27435
6122 * inf-ptrace.c (struct target_unpusher): Move to target.h.
6123 (target_unpush_up): Likewise.
6124 * procfs.c (procfs_target::attach): Push target early. Use
6125 target_unpush_up to unpush target in case of error.
6126 * target.h (struct target_unpusher): Move here.
6127 (target_unpush_up): Likewise.
6128
8488c357
KB
61292021-02-19 Kevin Buettner <kevinb@redhat.com>
6130
6131 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
6132 (which in turn includes <gnulib/config.h>) before include
6133 of <signal.h>.
6134
5a9f5403
NC
61352021-02-19 Nelson Chu <nelson.chu@sifive.com>
6136
6137 PR 27158
6138 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
6139 (decode_j_type_insn): Likewise.
6140 (decode_cj_type_insn): Likewise.
6141 (decode_b_type_insn): Likewise.
6142 (decode): Likewise.
6143
26f53cd3
TT
61442021-02-18 Tom Tromey <tom@tromey.com>
6145
6146 * expression.h (struct expression) <evaluate>: Declare method.
6147 * eval.c (evaluate_subexp): Simplify.
6148 (expression::evaluate): New method.
6149 (evaluate_expression, evaluate_type): Use expression::evaluate.
6150
6a780b67
KB
61512021-02-17 Kevin Buettner <kevinb@redhat.com>
6152
6153 * ada-lang.c (ada_fold_name): Check for non-empty string prior
6154 to accessing it.
6155 (ada_lookup_name_info): Likewise.
6156
adeab0c5
MF
61572021-02-13 Mike Frysinger <vapier@gentoo.org>
6158
6159 * aclocal.m4: Regenerate.
6160
089436f7
TV
61612021-02-12 Tom de Vries <tdevries@suse.de>
6162
6163 PR threads/26228
6164 * linux-nat.c (lin_thread_get_thread_signals): Remove.
6165 (lin_thread_signals): New static var.
6166 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6167 New function.
6168 * linux-nat.h (lin_thread_get_thread_signals): Remove.
6169 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6170 Declare.
6171 * linux-thread-db.c (check_thread_signals): Use
6172 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
6173
96df3e28
AB
61742021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * f-exp.y (f77_keywords): Add allocated.
6177 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
6178 (operator_length_f): Likewise.
6179 (print_subexp_f): Likewise.
6180 (dump_subexp_body_f): Likewise.
6181 (operator_check_f): Likewise.
6182 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
6183
05f68f52
TV
61842021-02-11 Tom de Vries <tdevries@suse.de>
6185
6186 PR symtab/27353
6187 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
6188 Return true for DW_FORM_strx.
6189
b260f8d6
TT
61902021-02-11 Tom Tromey <tromey@adacore.com>
6191
6192 PR gdb/27383:
6193 * parse.c (write_exp_symbol_reference): Write sym.block.
6194
bf3386f0
AB
61952021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * NEWS: Mention changes to 'maint info sections'.
6198 * maint.c (match_substring): Return a bool, fix whitespace issue.
6199 (struct single_bfd_flag_info): New struct.
6200 (bfd_flag_info): New static global.
6201 (match_bfd_flags): Return a bool, use bfd_flag_info.
6202 (print_bfd_flags): Use bfd_flag_info.
6203 (maint_print_section_info): Delete trailing whitespace.
6204 (struct maint_info_sections_opts): New struct.
6205 (maint_info_sections_option_defs): New static global.
6206 (maint_info_sections_completer): New function.
6207 (maintenance_info_sections): Use option parsing mechanism.
6208 (_initialize_maint_cmds): Update command help text for 'maint info
6209 sections' and register a command completer.
6210
4790db14
AB
62112021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6212
6213 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
6214 functionality merged into...
6215 (maint_print_all_sections): ...this new function.
6216 (maintenance_info_sections): Make use of maint_print_all_sections,
6217 allow all objects to be printed even where there's no executable.
6218
1db66e34
AB
62192021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6220
6221 * breakpoint.c (resolve_sal_pc): Make use of
6222 bound_minimal_symbol::obj_section.
6223 * maint.c (maintenance_translate_address): Likewise.
6224 * minsyms.c (minimal_symbol_upper_bound): Likewise.
6225 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
6226 member function.
6227 * printcmd.c (info_address_command): Make use of
6228 bound_minimal_symbol::obj_section.
6229
18b8df43
AM
62302021-02-11 Alan Modra <amodra@gmail.com>
6231
6232 * arm-symbian-tdep.c: Delete.
6233 * NEWS: Mention arm-symbian removal.
6234 * Makefile.in: Remove arm-symbian-tdep entries.
6235 * configure.tgt: Remove arm*-*-symbianelf*.
6236 * doc/gdb.texinfo: Remove mention of SymbianOS.
6237 * osabi.c (gdb_osabi_names): Remove "Symbian".
6238 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
6239 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
6240 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
6241 handling.
6242 * testsuite/gdb.base/dup-sect.exp: Likewise.
6243 * testsuite/gdb.base/long_long.exp: Likewise.
6244 * testsuite/gdb.base/solib-weak.exp: Likewise.
6245 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
6246 * testsuite/gdb.python/py-section-script.exp: Likewise.
6247 * testsuite/lib/dwarf.exp: Likewise.
6248 * testsuite/lib/gdb.exp: Likewise.
6249
e92c8eb8
AB
62502021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6251
6252 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
6253 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
6254 (one_or_two_args): New pattern.
6255 (f77_keywords): Add lbound and ubound.
6256 * f-lang.c (fortran_bounds_all_dims): New function.
6257 (fortran_bounds_for_dimension): New function.
6258 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
6259 (operator_length_f): Likewise.
6260 (print_subexp_f): Likewise.
6261 (dump_subexp_body_f): Likewise.
6262 (operator_check_f): Likewise.
6263 * std-operator.def (FORTRAN_LBOUND): Define.
6264 (FORTRAN_UBOUND): Define.
6265
a52d653e
AB
62662021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6267
6268 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6269 and set_section_index member functions where appropriate.
6270 * coffread.c (coff_symtab_read): Likewise.
6271 (process_coff_symbol): Likewise.
6272 * ctfread.c (set_symbol_address): Likewise.
6273 * dwarf2/read.c (add_partial_symbol): Likewise.
6274 (var_decode_location): Likewise.
6275 * language.c: Likewise.
6276 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
6277 (compact_minimal_symbols): Likewise.
6278 (minimal_symbol_upper_bound): Likewise.
6279 * objfiles.c (relocate_one_symbol): Likewise.
6280 * psympriv.h (partial_symbol::obj_section): Likewise.
6281 (partial_symbol::address): Likewise.
6282 * psymtab.c (partial_symtab::add_psymbol): Likewise.
6283 * stabsread.c (scan_file_globals): Likewise.
6284 * symmisc.c (dump_msymbols): Likewise.
6285 * symtab.c (general_symbol_info::obj_section): Likewise.
6286 (fixup_section): Likewise.
6287 (get_msymbol_address): Likewise.
6288 * symtab.h (general_symbol_info::section): Rename to...
6289 (general_symbol_info::m_section): ...this.
6290 (general_symbol_info::set_section_index): New member function.
6291 (general_symbol_info::section_index): Likewise.
6292 (SYMBOL_SECTION): Delete.
6293 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6294 set_section_index member functions where appropriate.
6295 (MSYMBOL_SECTION): Delete.
6296 (symbol::symbol): Update to initialize 'm_section'.
6297 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6298 (process_xcoff_symbol): Likewise.
6299
ebbc3a7d
AB
63002021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6301
6302 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6303 MSYMBOL_OBJ_SECTION.
6304 * findvar.c (language_defn::read_var_value): Likewise.
6305 * infcmd.c (jump_command): Likewise.
6306 * linespec.c (minsym_found): Likewise.
6307 * maint.c (maintenance_translate_address): Likewise.
6308 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6309 (minimal_symbol_upper_bound): Likewise.
6310 * parse.c (find_minsym_type_and_address): Likewise.
6311 (operator_check_standard): Likewise.
6312 * printcmd.c (info_address_command): Likewise.
6313 * symmisc.c (dump_msymbols): Likewise.
6314 (print_symbol): Likewise.
6315 * symtab.c (general_symbol_info::obj_section): Define new
6316 function.
6317 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6318 (find_pc_sect_compunit_symtab): Likewise.
6319 (find_function_start_sal): Likewise.
6320 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6321 MSYMBOL_OBJ_SECTION.
6322 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6323 function.
6324 (SYMBOL_OBJ_SECTION): Delete.
6325 (MSYMBOL_OBJ_SECTION): Delete.
6326
9bb305b3
TT
63272021-02-09 Tom Tromey <tom@tromey.com>
6328
6329 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6330
cf2b2075
TV
63312021-02-09 Tom de Vries <tdevries@suse.de>
6332
6333 PR symtab/27341
6334 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6335 construct an array type. Add assert to ensure that element_type is
6336 not being modified.
6337
03642b71
AB
63382021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6339
6340 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6341 (gcore_collect_regset_section_cb): Delete.
6342 (gcore_collect_thread_registers): Delete.
6343 (gcore_build_thread_register_notes): Delete.
6344 (gcore_find_signalled_thread): Delete.
6345 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6346 'gdbarch' and 'thread_info' declarations.
6347 (gcore_build_thread_register_notes): Delete declaration.
6348 (gcore_find_signalled_thread): Likewise.
6349 * fbsd-tdep.c: Remove 'gcore.h' include.
6350 (struct fbsd_collect_regset_section_cb_data): New struct.
6351 (fbsd_collect_regset_section_cb): New function.
6352 (fbsd_collect_thread_registers): New function.
6353 (struct fbsd_corefile_thread_data): New struct.
6354 (fbsd_corefile_thread): New function.
6355 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6356 * linux-tdep.c: Remove 'gcore.h' include.
6357 (struct linux_collect_regset_section_cb_data): New struct.
6358 (linux_collect_regset_section_cb): New function.
6359 (linux_collect_thread_registers): New function.
6360 (linux_corefile_thread): Call Linux specific code.
6361 (find_signalled_thread): New function.
6362 (linux_make_corefile_notes): Call find_signalled_thread.
6363
f73e424f
TT
63642021-02-09 Tom Tromey <tromey@adacore.com>
6365
6366 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6367 not_lval value.
6368 * value.c (value_contents_copy_raw): Now static.
6369 * value.h (value_contents_copy_raw): Don't declare.
6370
a4f0544b
TT
63712021-02-09 Tom Tromey <tromey@adacore.com>
6372
6373 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6374 fields.
6375
9b3e4b5d
SV
63762021-02-08 Shahab Vahedi <shahab@synopsys.com>
6377
6378 PR tdep/27369
6379 * arc-linux-tdep.c (handle_atomic_sequence): New.
6380 (arc_linux_software_single_step): Call handle_atomic_sequence().
6381
29db1eb3
AB
63822021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6383
6384 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6385 function.
6386 (REQUIRE_WINDOW): Call is_valid member function.
6387 (REQUIRE_WINDOW_FOR_SETTER): New define.
6388 (gdbpy_tui_is_valid): Call is_valid member function.
6389 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6390 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6391 tui_active too.
6392 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6393 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6394 the function.
6395
e0c23e11
AB
63962021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6397
6398 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6399 for the title is not nullptr.
6400
1cf23996
AB
64012021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6402
6403 * tui-layout.c (saved_tui_windows): Delete.
6404 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6405 call new get_windows member function instead.
6406 (tui_get_window_by_name): Check in tui_windows.
6407 (tui_layout_window::apply): Don't add to tui_windows.
6408 * tui-layout.h (tui_layout_base::get_windows): New member function.
6409 (tui_layout_window::get_windows): Likewise.
6410 (tui_layout_split::get_windows): Likewise.
6411
a53a2657
AB
64122021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6413
6414 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6415 of the window objects.
6416
2708dbbd
AB
64172021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6418
6419 * python/python.c (gdbpy_print_stack): Reformat an error message.
6420
cd074e04
AB
64212021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6422
6423 * tui/tui-interp.c (tui_command_line_handler): New function.
6424 (tui_interp::resume): Register tui_command_line_handler as the
6425 input_handler.
6426 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6427 function.
6428 (tui_getc_1): Delete handling of '\n' and '\r'.
6429 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6430
4cf28e91
HD
64312021-02-07 Hannes Domani <ssbssa@yahoo.de>
6432
6433 * tui/tui-regs.c (tui_data_window::display_registers_from):
6434 Mark invisible register sub windows.
6435 (tui_data_window::check_register_values): Ignore invisible
6436 register sub windows.
6437
3537bc23
HD
64382021-02-07 Hannes Domani <ssbssa@yahoo.de>
6439
6440 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6441 n_spaces with a negative value.
6442
5fc2d6aa
HD
64432021-02-07 Hannes Domani <ssbssa@yahoo.de>
6444
6445 * tui/tui-regs.c (tui_data_window::display_registers_from):
6446 Add refresh_window call.
6447
83962f83
HD
64482021-02-07 Hannes Domani <ssbssa@yahoo.de>
6449
6450 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6451
0110ec82
SM
64522021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6453
6454 * symmisc.c (std_in, std_out, std_err): Remove.
6455 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6456
7c6944ab
TV
64572021-02-05 Tom de Vries <tdevries@suse.de>
6458
6459 PR breakpoints/27330
6460 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6461 glibc object file has debug info.
6462
e77b0004
TV
64632021-02-05 Tom de Vries <tdevries@suse.de>
6464
6465 PR symtab/27333
6466 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6467
0e857c82
TV
64682021-02-05 Tom de Vries <tdevries@suse.de>
6469
6470 PR breakpoints/27313
6471 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6472 syscall numbers.
6473
bdfea17e
TT
64742021-02-05 Tom Tromey <tom@tromey.com>
6475
6476 * compile/compile-c-support.c (get_compile_context)
6477 (c_get_compile_context, cplus_get_compile_context): Change return
6478 type.
6479 * language.c (language_defn::get_compile_instance): New method.
6480 * language.h (language_defn::get_compile_instance): Change return
6481 type. No longer inline.
6482 * c-lang.c (c_language::get_compile_instance): Change return type.
6483 (cplus_language::get_compile_instance): Change return type.
6484 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6485 Change return type.
6486 * compile/compile.c (compile_to_object): Update.
6487
1b30f421
TT
64882021-02-05 Tom Tromey <tom@tromey.com>
6489
6490 * parser-defs.h (write_exp_symbol_reference): Declare.
6491 * parse.c (write_exp_symbol_reference): New function.
6492 * p-exp.y (variable): Use write_exp_symbol_reference.
6493 * m2-exp.y (variable): Use write_exp_symbol_reference.
6494 * f-exp.y (variable): Use write_exp_symbol_reference.
6495 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6496 * c-exp.y (variable): Use write_exp_symbol_reference.
6497
ae710496
TV
64982021-02-05 Tom de Vries <tdevries@suse.de>
6499
6500 PR exp/27265
6501 * valarith.c (complex_binop): Throw an error if complex type can't
6502 be created.
6503
d3b54e63
TV
65042021-02-05 Tom de Vries <tdevries@suse.de>
6505
6506 PR symtab/27307
6507 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6508 return.
6509
fc9a13fb
TV
65102021-02-05 Tom de Vries <tdevries@suse.de>
6511
6512 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6513
04b4939b
MF
65142021-02-04 Mike Frysinger <vapier@gentoo.org>
6515
6516 * configure.tgt (riscv*-*-*): Set gdb_sim.
6517
6ff267e1
SM
65182021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6519
6520 * target.c (target_is_non_stop_p): Return bool.
6521 * target.h (target_is_non_stop_p): Return bool.
6522
fdbc5215
SM
65232021-02-04 Simon Marchi <simon.marchi@efficios.com>
6524
6525 * record-full.c (record_full_async_inferior_event_handler):
6526 Don't clear async event handler.
6527 (record_full_base_target::wait): Clear async event handler at
6528 beginning.
6529
85d3ad8e
SM
65302021-02-04 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * record-btrace.c (record_btrace_handle_async_inferior_event):
6533 Don't clear async event handler.
6534 (record_btrace_target::wait): Clear async event handler at
6535 beginning.
6536
baa8575b
SM
65372021-02-04 Simon Marchi <simon.marchi@efficios.com>
6538
6539 * remote.c (remote_target::wait): Clear async event handler at
6540 beginning, mark if needed at the end.
6541 (remote_async_inferior_event_handler): Don't set or clear async
6542 event handler.
6543
6b36ddeb
SM
65442021-02-04 Simon Marchi <simon.marchi@efficios.com>
6545
6546 * async-event.h (async_event_handler_func): Add documentation.
6547 * async-event.c (check_async_event_handlers): Don't clear
6548 async_event_handler ready flag.
6549 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6550 flag.
6551 * record-btrace.c (record_btrace_handle_async_inferior_event):
6552 Likewise.
6553 * record-full.c (record_full_async_inferior_event_handler):
6554 Likewise.
6555 * remote-notif.c (remote_async_get_pending_events_handler):
6556 Likewise.
6557 * remote.c (remote_async_inferior_event_handler): Likewise.
6558
72d383bb
SM
65592021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 * infrun.c (handle_inferior_event): Move stop_soon variable to
6562 inner scope.
6563
408f6686
PA
65642021-02-03 Pedro Alves <pedro@palves.net>
6565
6566 * infcmd.c (detach_command): Hold strong reference to target, and
6567 if all-stop on entry, restart threads on exit.
6568 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6569 (restart_stepped_thread): ... this new function. Also handle
6570 trap_expected.
6571 (restart_after_all_stop_detach): New function.
6572 * infrun.h (restart_after_all_stop_detach): Declare.
6573
ac7d717c
PA
65742021-02-03 Pedro Alves <pedro@palves.net>
6575
6576 * infrun.c (struct step_over_info): Initialize fields.
6577 (prepare_for_detach): Handle ongoing in-line step over.
6578
e87f0fe8
PA
65792021-02-03 Pedro Alves <pedro@palves.net>
6580
6581 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6582 here...
6583 * remote.c (remote_target::remote_detach_1): ... and here ...
6584 * target.c (target_detach): ... instead of here.
6585 * target.h (target_ops::detach): Add comment.
6586
8ff53139
PA
65872021-02-03 Pedro Alves <pedro@palves.net>
6588
6589 * infrun.c (struct wait_one_event): Move higher up.
6590 (prepare_for_detach): Abort in-progress displaced steps instead of
6591 letting them complete.
6592 (handle_one): If the inferior is detaching, don't add the thread
6593 back to the global step-over chain.
6594 (restart_threads): Don't restart threads if detaching.
6595 (handle_signal_stop): Remove inferior::detaching reference.
6596
91475068
PA
65972021-02-03 Pedro Alves <pedro@palves.net>
6598
6599 * infrun.c (prepare_for_detach): Don't release scoped_restore
6600 before returning.
6601
d758e62c
PA
66022021-02-03 Pedro Alves <pedro@palves.net>
6603
6604 * infrun.c (handle_one): New function, factored out from ...
6605 (stop_all_threads): ... here.
6606
b0083dd7
PA
66072021-02-03 Pedro Alves <pedro@palves.net>
6608
6609 * remote.c (remote_notif_stop_ack): Don't error out on
6610 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6611 (remote_target::discard_pending_stop_replies): Don't delete
6612 in-flight notification; instead, clear its contents.
6613
621cc310
PA
66142021-02-03 Pedro Alves <pedro@palves.net>
6615
6616 * remote.c (extended_remote_target::attach): Set target async in
6617 the target-non-stop path too.
6618
2ab76a18
PA
66192021-02-03 Pedro Alves <pedro@palves.net>
6620
6621 PR gdb/27055
6622 * infrun.c (handle_signal_stop): Move main context_switch call
6623 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6624
2e3773ff
LS
66252021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6626
6627 * NEWS (Changed commands): Add entry for the behavior change of
6628 the inferior command.
6629 * inferior.c (inferior_command): When no argument is given to the
6630 inferior command, display info about the currently selected
6631 inferior.
6632
e57933dc
SM
66332021-02-02 Simon Marchi <simon.marchi@efficios.com>
6634
6635 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6636 a sect_offset.
6637 (read_attribute_reprocess): Adjust.
6638
2b0c7f41
SM
66392021-02-02 Simon Marchi <simon.marchi@efficios.com>
6640
6641 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6642 <gnu_ranges_base>: ... this...
6643 <rnglists_base>: ... and this.
6644 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6645 <gnu_ranges_base>: ... this...
6646 <rnglists_base>: ... and this.
6647 (read_cutu_die_from_dwo): Adjust
6648 (dwarf2_get_pc_bounds): Adjust
6649 (dwarf2_record_block_ranges): Adjust.
6650 (read_full_die_1): Adjust
6651 (partial_die_info::read): Adjust.
6652 (read_rnglist_index): Adjust.
6653
a1c40103
SM
66542021-02-02 Simon Marchi <simon.marchi@efficios.com>
6655
6656 PR gdb/26813
6657 * dwarf2/read.c (read_loclists_rnglists_header): Add
6658 header_offset parameter and use it.
6659 (read_loclist_index): Read header of the current contribution,
6660 not the one at the beginning of the section.
6661 (read_rnglist_index): Likewise.
6662
b1829e1b
SM
66632021-02-02 Simon Marchi <simon.marchi@efficios.com>
6664
6665 PR gdb/26813
6666 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6667 requires_reprocessing flag.
6668 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6669 DW_FORM_loclistx.
6670 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6671 and DW_FORM_loclistx.
6672 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6673 instead of set_address for DW_FORM_loclistx and
6674 DW_FORM_rnglistx.
6675
0c800c6e
SM
66762021-02-02 Simon Marchi <simon.marchi@efficios.com>
6677
6678 * dwarf2/read.c (read_loclist_index): Remove bound check for
6679 start of offset.
6680 (read_rnglist_index): Likewise.
6681
05787bad
SM
66822021-02-02 Simon Marchi <simon.marchi@efficios.com>
6683
6684 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6685 of the offset.
6686
5e4d9bbc
SM
66872021-02-02 Simon Marchi <simon.marchi@efficios.com>
6688
6689 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6690
a0c1eeba
SM
66912021-02-02 Simon Marchi <simon.marchi@efficios.com>
6692
6693 * dwarf2/read.c (read_loclist_index): Change complaints into
6694 errors.
6695
2bd3e4b8
TV
66962021-02-02 Tom de Vries <tdevries@suse.de>
6697
6698 PR symtab/24620
6699 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6700 psymtab == nullptr.
6701
82a1fd3a
AB
67022021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6705 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6706 here from linux-tdep.c and given a new name. Minor cleanups.
6707 (gcore_collect_regset_section_cb): Likewise.
6708 (gcore_collect_thread_registers): Likewise.
6709 (gcore_build_thread_register_notes): Likewise.
6710 (gcore_find_signalled_thread): Likewise.
6711 * gcore.h (gcore_build_thread_register_notes): Declare.
6712 (gcore_find_signalled_thread): Declare.
6713 * fbsd-tdep.c: Add 'gcore.h' include.
6714 (struct fbsd_collect_regset_section_cb_data): Delete.
6715 (fbsd_collect_regset_section_cb): Delete.
6716 (fbsd_collect_thread_registers): Delete.
6717 (struct fbsd_corefile_thread_data): Delete.
6718 (fbsd_corefile_thread): Delete.
6719 (fbsd_make_corefile_notes): Call
6720 gcore_build_thread_register_notes instead of the now deleted
6721 FreeBSD code.
6722 * linux-tdep.c: Add 'gcore.h' include.
6723 (struct linux_collect_regset_section_cb_data): Delete.
6724 (linux_collect_regset_section_cb): Delete.
6725 (linux_collect_thread_registers): Delete.
6726 (linux_corefile_thread): Call
6727 gcore_build_thread_register_notes.
6728 (find_signalled_thread): Delete.
6729 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6730
ebde6f2d
TV
67312021-01-29 Tom de Vries <tdevries@suse.de>
6732
6733 PR breakpoints/26063
6734 * infrun.c (process_event_stop_test): Reset
6735 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6736 changed.
6737
0f93c3a2
AB
67382021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6739
6740 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6741 assert. Extend the header comment.
6742
f237f998
AB
67432021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6744
6745 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6746 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6747 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6748 (tui_locator_win_info_ptr): Delete declaration.
6749 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6750 (tui_disasm_window::set_contents): Fetch state from tui_location
6751 global.
6752 (tui_get_begin_asm_address): Likewise.
6753 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6754 for locator window.
6755 (get_locator_window): Delete.
6756 (initialize_known_windows): Treat locator window just like all the
6757 rest.
6758 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6759 (tui_source_window::set_contents): Fetch state from tui_location
6760 global.
6761 (tui_source_window::showing_source_p): Likewise.
6762 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6763 (_locator): Delete.
6764 (tui_locator_win_info_ptr): Delete.
6765 (tui_locator_window::make_status_line): Fetch state from
6766 tui_location global.
6767 (tui_locator_window::rerender): Remove check of 'handle',
6768 reindent function body.
6769 (tui_locator_window::set_locator_fullname): Delete.
6770 (tui_locator_window::set_locator_info): Delete.
6771 (tui_update_locator_fullname): Delete.
6772 (tui_show_frame_info): Likewise.
6773 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6774 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6775 tui/tui-location.h and renamed to
6776 tui_location_tracker::set_location.
6777 (tui_locator_window::set_locator_fullname): Moved to
6778 tui/tui-location.h and renamed to
6779 tui_location_tracker::set_fullname.
6780 (tui_locator_window::full_name): Delete.
6781 (tui_locator_window::proc_name): Delete.
6782 (tui_locator_window::line_no): Delete.
6783 (tui_locator_window::addr): Delete.
6784 (tui_locator_window::gdbarch): Delete.
6785 (tui_update_locator_fullname): Delete declaration.
6786 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6787 for locator window.
6788 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6789 (tui_display_main): Call function on tui_location directly.
6790 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6791 * tui/tui-location.c: New file.
6792 * tui/tui-location.h: New file.
6793
8ee511af
SM
67942021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6795
6796 * gdbtypes.h (get_type_arch): Rename to...
6797 (struct type) <arch>: ... this, update all users.
6798
6ac37371
SM
67992021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6800
6801 * gdbtypes.h (struct type) <arch>: Rename to...
6802 <arch_owner>: ... this, update all users.
6803 <objfile>: Rename to...
6804 <objfile_owner>: ... this, update all users.
6805
24cf6389
AB
68062021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6807
6808 * gdbcmd.h (execute_command_to_string): Update comment.
6809 * top.c (execute_command_to_string): Update header comment.
6810
2a7f6487
TV
68112021-01-28 Tom de Vries <tdevries@suse.de>
6812
6813 PR breakpoints/27205
6814 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6815 (create_longjmp_master_breakpoint_names): New function, factored out
6816 of ...
6817 (create_longjmp_master_breakpoint): ... here. Only try to install
6818 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6819 breakpoint in libc.so failed.
6820
59b59f08
LS
68212021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6822
6823 PR gdb/27133
6824 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6825 unique_ptr is released when the wrapped pointer is kept for later
6826 use.
6827
807f647c
MM
68282021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6829
6830 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6831 BLR and BR instructions.
6832 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6833 (enum aarch64_masks): New.
6834
4ef367bf
TT
68352021-01-26 Tom Tromey <tromey@adacore.com>
6836
6837 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6838 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6839 (windows_init_thread_list, windows_nat::handle_load_dll)
6840 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6841 (windows_nat_target::resume)
6842 (windows_nat_target::get_windows_debug_event)
6843 (windows_nat_target::interrupt, windows_xfer_memory)
6844 (windows_nat_target::close): Update.
6845 * nat/windows-nat.c (DEBUG_EVENTS): Use
6846 debug_prefixed_printf_cond.
6847 (matching_pending_stop, fetch_pending_stop)
6848 (continue_last_debug_event): Update.
6849
4cb1265b
MS
68502020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6851
6852 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6853 elfcore_write_file_note.
6854
d0cc52bd
SV
68552021-01-26 Shahab Vahedi <shahab@synopsys.com>
6856
6857 * arc-tdep.c (arc_add_reggroups): New function.
6858 (arc_gdbarch_init): Call arc_add_reggroups.
6859
ac3571d9 68602021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6861
6862 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6863
9f6c202e
TV
68642021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6865 Simon Marchi <simon.marchi@polymtl.ca>
6866 Tom de Vries <tdevries@suse.de>
6867
6868 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6869 DW_AT_ranges.
6870
a625a8c9
TT
68712021-01-25 Tom Tromey <tromey@adacore.com>
6872
6873 * dwarf2/read.c (get_mpz): New function.
6874 (get_dwarf2_rational_constant): Use it.
6875
19184910
TT
68762021-01-25 Tom Tromey <tromey@adacore.com>
6877
6878 * ada-lang.c (resolve_subexp): Handle array context.
6879
b10bae18
TT
68802021-01-23 Tom Tromey <tom@tromey.com>
6881
6882 PR compile/25575
6883 * compile/compile-loc2c.c (note_register): New function.
6884 (pushf_register_address, pushf_register): Use it.
6885
3637a558
TT
68862021-01-23 Tom Tromey <tom@tromey.com>
6887
6888 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6889 Change type of "registers_used".
6890 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6891 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6892 (locexpr_generate_c_location, loclist_generate_c_location): Change
6893 type of "registers_used".
6894 * compile/compile.h (compile_dwarf_expr_to_c)
6895 (compile_dwarf_bounds_to_c): Update.
6896 * compile/compile-loc2c.c (pushf_register_address)
6897 (pushf_register, do_compile_dwarf_expr_to_c)
6898 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6899 of "registers_used".
6900 * compile/compile-c.h (generate_c_for_variable_locations):
6901 Update.
6902 * compile/compile-c-symbols.c (generate_vla_size)
6903 (generate_c_for_for_one_variable): Change type of
6904 "registers_used".
6905 (generate_c_for_variable_locations): Return std::vector.
6906 * compile/compile-c-support.c (generate_register_struct): Change
6907 type of "registers_used".
6908 (compute): Update.
6909
9f7f6cb8
TT
69102021-01-23 Tom Tromey <tom@tromey.com>
6911
6912 * compile/compile-internal.h (class compile_instance)
6913 <set_arguments>: Change return type.
6914 * compile/compile.c (compile_to_object): Remove call to reset.
6915 (compile_instance::set_arguments): Change return type.
6916
dd5ca05f
SM
69172021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6918
6919 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6920 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6921
d3ee35db
LS
69222021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6923
6924 * Makefile.in (SELFTESTS_SRCS): Add
6925 unittests/gdb_tilde_expand-selftests.c.
6926 * unittests/gdb_tilde_expand-selftests.c: New file.
6927
9d2d8a16
AB
69282021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6929
6930 PR cli/25956
6931 * NEWS: Mention new command.
6932 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6933 (version_style): Define.
6934 (cli_style_option::cli_style_option): Add intensity parameter, and
6935 use as appropriate.
6936 (_initialize_cli_style): Register version style set/show commands.
6937 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6938 (version_style): Declare.
6939 * top.c (print_gdb_version): Use version_stype, and styled_string
6940 to print the GDB version string.
6941
e7b43072
AB
69422021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6943
6944 * utils.c (emit_style_escape): Only emit an escape sequence if the
6945 requested style is different than the current applied style.
6946 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6947 current applied_style.
6948 (fputs_styled): Remove is_default check.
6949 (fputs_styled_unfiltered): Likewise.
6950 (vfprintf_styled_no_gdbfmt): Likewise.
6951
2189c312
SM
69522021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6953
6954 * remote.h (remote_debug_printf): New.
6955 (remote_debug_printf_nofunc): New.
6956 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6957 * remote.c: Use above macros throughout file.
6958
02349803
SM
69592021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6960
6961 * remote.h (remote_debug): Change to bool.
6962 * remote.c (remote_debug): Change to bool.
6963 (_initialize_remote): Adjust.
6964
cda09ec9
SM
69652021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6966
6967 * target.h (remote_debug): Move to...
6968 * remote.h (remote_debug): ... here.
6969 * top.c (remote_debug): Move to...
6970 * remote.c (remote_debug): ... here.
6971 * remote-sim.c: Include remote.h.
6972
baf2b57f
SM
69732021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6974
6975 * cli/cli-cmds.c (show_remote_debug): Remove.
6976 (show_remote_timeout): Remove.
6977 (_initialize_cli_cmds): Don't register commands.
6978 * remote.c (show_remote_debug): Move here.
6979 (show_remote_timeout): Move here.
6980 (_initialize_remote): Register commands.
6981
344e9841
SM
69822021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6983
6984 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6985 type::objfile method instead.
6986
30625020
SM
69872021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6988
6989 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6990 use the type::is_objfile_owned method.
6991
5b7d941b
SM
69922021-01-22 Simon Marchi <simon.marchi@efficios.com>
6993
6994 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6995 (TYPE_OWNER): Remove.
6996 (TYPE_OBJFILE): Adjust.
6997 (struct main_type) <flag_objfile_owned>: Rename to...
6998 <m_flag_objfile_owned>: ... this.
6999 <owner>: Rename to...
7000 <m_owner>: ... this.
7001 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
7002 methods.
7003 (TYPE_ALLOC): Adjust.
7004 * gdbtypes.c (alloc_type): Adjust.
7005 (alloc_type_arch): Adjust.
7006 (alloc_type_copy): Adjust.
7007 (get_type_arch): Adjust.
7008 (smash_type): Adjust.
7009 (lookup_array_range_type): Adjust.
7010 (recursive_dump_type): Adjust.
7011 (copy_type_recursive): Adjust.
7012 * compile/compile-c-types.c (convert_func): Adjust.
7013 (convert_type_basic): Adjust.
7014 * compile/compile-cplus-types.c (compile_cplus_convert_func):
7015 Adjust.
7016 * language.c
7017 (language_arch_info::type_and_symbol::alloc_type_symbol):
7018 Adjust.
7019
d5d24e12
LM
70202021-01-21 Luis Machado <luis.machado@linaro.org>
7021
7022 * coffread.c (enter_linenos): Passing string to complaint.
7023 * valops.c (value_assign): Make array view.
7024
a59902a7
SM
70252021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7026
7027 * auto-load.h (debug_auto_load): Move here.
7028 (auto_load_debug_printf): New.
7029 * auto-load.c: Use auto_load_debug_printf.
7030 (debug_auto_load): Move to header.
7031 * linux-thread-db.c (try_thread_db_load): Use
7032 auto_load_debug_printf.
7033 * main.c (captured_main_1): Likewise.
7034
d3abc0ce
SM
70352021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7036
7037 * f-valprint.c (f77_array_offset_tbl): Remove.
7038
1e15fcac
SM
70392021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7040
7041 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
7042
439706e6
SM
70432021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7044
7045 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
7046 of gdb_select.
7047
325d39e4
HD
70482021-01-21 Hannes Domani <ssbssa@yahoo.de>
7049
7050 PR python/19151
7051 * python/py-breakpoint.c (bppy_get_location): Handle
7052 bp_hardware_breakpoint.
7053 (bppy_init): Likewise.
7054 (gdbpy_breakpoint_created): Likewise.
7055
7cb6d92a
SM
70562021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7057
7058 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
7059
d4dd4fca
SM
70602021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7061
7062 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
7063 (_initialize_gdb_bfd): Adjust.
7064
de53369b
SM
70652021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7066
7067 PR gdb/26828
7068 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
7069
17e593e9
SM
70702021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7071
7072 * dwarf2/read.c (follow_die_offset): Add logging.
7073 (dwarf2_per_objfile::age_comp_units): Add logging.
7074
6bd434d6
SM
70752021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7076
7077 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
7078 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
7079 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
7080 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
7081 * arm-tdep.c (struct frame_unwind): Make static.
7082 * auto-load.c (auto_load_safe_path_vec): Make static.
7083 * csky-tdep.c (csky_stub_unwind): Make static.
7084 * gdbarch.c (gdbarch_data_registry): Make static.
7085 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
7086 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
7087 * i386-tdep.c (i386_frame_setup_skip_insns,
7088 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
7089 Make static.
7090 * infrun.c (observer_mode): Make static.
7091 * linux-nat.c (sigchld_action): Make static.
7092 * linux-thread-db.c (thread_db_list): Make static.
7093 * maint-test-options.c (maintenance_test_options_list):
7094 * mep-tdep.c (mep_csr_registers): Make static.
7095 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
7096 (stats): Make static.
7097 * nat/linux-osdata.c (struct osdata_type): Make static.
7098 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
7099 * progspace.c (last_program_space_num): Make static.
7100 * python/py-param.c (struct parm_constant): Remove struct type
7101 name.
7102 (parm_constants): Make static.
7103 * python/py-record-btrace.c (btpy_list_methods): Make static.
7104 * python/py-record.c (recpy_gap_type): Make static.
7105 * record.c (record_goto_cmdlist): Make static.
7106 * regcache.c (regcache_descr_handle): Make static.
7107 * registry.h (DEFINE_REGISTRY): Make definition static.
7108 * symmisc.c (std_in, std_out, std_err): Make static.
7109 * top.c (previous_saved_command_line): Make static.
7110 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
7111 static.
7112 * unittests/command-def-selftests.c (nr_duplicates,
7113 nr_invalid_prefixcmd, lists): Make static.
7114 * unittests/observable-selftests.c (test_notification): Make
7115 static.
7116 * unittests/optional/assignment/1.cc (counter): Make static.
7117 * unittests/optional/assignment/2.cc (counter): Make static.
7118 * unittests/optional/assignment/3.cc (counter): Make static.
7119 * unittests/optional/assignment/4.cc (counter): Make static.
7120 * unittests/optional/assignment/5.cc (counter): Make static.
7121 * unittests/optional/assignment/6.cc (counter): Make static.
7122
a6c11cbb
JS
71232021-01-20 Joel Sherrill <joel@rtems.org>
7124
7125 PR gdb/27219
7126 * remote.c (struct remote_thread_info) <resume_state>: Rename
7127 to...
7128 <get_resume_state>: ... this.
7129 (remote_target::resume): Adjust.
7130 (remote_target::commit_resume): Adjust.
7131 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
7132
6f52fdf4
SDJ
71332021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
7134 Tom Tromey <tom@tromey.com>
7135
7136 * stap-probe.c (stap_parse_single_operand): Handle '!'
7137 operator.
7138 (stap_parse_argument_conditionally): Likewise.
7139 Skip spaces after processing open-parenthesis sub-expression.
7140 (stap_parse_argument_1): Skip spaces after call to
7141 stap_parse_argument_conditionally.
7142 Handle case when right-side expression is a parenthesized
7143 sub-expression.
7144 Skip spaces after call to stap_parse_argument_1.
7145
1c3b85ad
LS
71462021-01-19 Lancelot SIX <lsix@lancelotsix.com>
7147
7148 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
7149
a9a87d35
LM
71502021-01-19 Luis Machado <luis.machado@linaro.org>
7151
7152 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
7153 memory and save data.
7154 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
7155 (trad_frame_set_unknown, trad_frame_set_value_bytes)
7156 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7157 (trad_frame_value_bytes_p): Remove.
7158 (trad_frame_reset_saved_regs): Adjust documentation.
7159 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
7160 constructor and reset the state of the registers.
7161 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7162 (trad_frame_value_bytes_p, trad_frame_set_value)
7163 (trad_frame_set_realreg, trad_frame_set_addr)
7164 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
7165 (trad_frame_set_reg_realreg): Update to call member function.
7166 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
7167 (trad_frame_get_prev_register): Likewise.
7168
7169 * aarch64-tdep.c (aarch64_analyze_prologue)
7170 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
7171 (aarch64_prologue_prev_register): Update to use member functions.
7172 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
7173 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
7174 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
7175 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
7176 (arm_make_epilogue_frame_cache): Likewise.
7177 * avr-tdep.c (avr_frame_unwind_cache)
7178 (avr_frame_prev_register): Likewise.
7179 * cris-tdep.c (cris_scan_prologue): Likewise.
7180 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
7181 * frv-tdep.c (frv_analyze_prologue): Likewise.
7182 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
7183 * lm32-tdep.c (lm32_frame_cache): Likewise.
7184 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
7185 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
7186 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
7187 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
7188 (reset_saved_regs): Adjust to set realreg.
7189 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
7190 call member functions.
7191 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
7192 * s390-tdep.c (s390_prologue_frame_unwind_cache)
7193 (s390_backchain_frame_unwind_cache): Likewise.
7194 * score-tdep.c (score7_analyze_prologue)
7195 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
7196 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
7197 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
7198 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
7199 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
7200 * tilegx-tdep.c (tilegx_analyze_prologue)
7201 (tilegx_frame_cache): Likewise.
7202 * v850-tdep.c (v850_frame_cache): Likewise.
7203 * vax-tdep.c (vax_frame_cache): Likewise.
7204
bdec2917
LM
72052021-01-19 Luis Machado <luis.machado@linaro.org>
7206
7207 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
7208 of buffer + length.
7209 (put_frame_register_bytes): Likewise.
7210 Adjust documentation.
7211 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
7212 (safe_frame_unwind_memory): Likewise.
7213 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
7214 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
7215 gdb::array_view.
7216 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
7217 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
7218 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
7219 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
7220 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
7221 * dwarf2/loc.c (rw_pieced_value): Likewise.
7222 * hppa-tdep.c (hppa_frame_cache): Likewise.
7223 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
7224 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
7225 * i386-linux-tdep.c (i386_linux_sigtramp_start)
7226 (i386_linux_rt_sigtramp_start): Likewise.
7227 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
7228 * i386-tdep.c (i386_register_to_value): Likewise.
7229 * i387-tdep.c (i387_register_to_value): Likewise.
7230 * ia64-tdep.c (ia64_register_to_value): Likewise.
7231 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
7232 (m32r_linux_rt_sigtramp_start): Likewise.
7233 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
7234 * m68k-tdep.c (m68k_register_to_value): Likewise.
7235 * mips-tdep.c (mips_register_to_value)
7236 (mips_value_to_register): Likewise.
7237 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
7238 (ppcfbsd_sigtramp_frame_cache): Likewise.
7239 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
7240 (ppcobsd_sigtramp_frame_cache): Likewise.
7241 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
7242 (rs6000_register_to_value): Likewise.
7243 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7244 * tramp-frame.c (tramp_frame_start): Likewise.
7245 * valops.c (value_assign): Likewise.
7246
ccbe4c82
LM
72472021-01-19 Luis Machado <luis.machado@linaro.org>
7248
7249 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
7250 array_view.
7251 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
7252 instead of buffer and size.
7253 (trad_frame_set_reg_value_bytes): Likewise.
7254 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
7255 (trad_frame_set_value_bytes): Likewise.
7256
0e7620dc
MF
72572021-01-18 Mike Frysinger <vapier@gentoo.org>
7258
7259 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
7260
6a9ad81c
AB
72612021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
7262
7263 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
7264 (riscv_fbsd_gregset): Use riscv_supply_regset.
7265 (riscv_fbsd_fpregset): Likewise.
7266 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
7267 (riscv_linux_fregset): Likewise.
7268 * riscv-tdep.c (riscv_supply_regset): Define new function.
7269 * riscv-tdep.h (riscv_supply_regset): Declare new function.
7270
d3d7d1ba
TV
72712021-01-18 Tom de Vries <tdevries@suse.de>
7272
7273 PR tdep/27172
7274 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7275 New macro.
7276 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7277 for SEGV_BNDERR.
7278
aa2838cc
SM
72792021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7280
7281 * remote.c (class remote_target) <remote_hostio_send_command,
7282 remote_hostio_parse_result>: Constify parameter.
7283 (remote_hostio_parse_result): Likewise.
7284 (remote_target::remote_hostio_send_command): Adjust.
7285 (remote_target::remote_hostio_pread_vFile): Adjust.
7286 (remote_target::fileio_readlink): Adjust.
7287 (remote_target::fileio_fstat): Adjust.
7288
b5c8f22d
SM
72892021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7290
7291 * remote.c (remote_target::start_remote): Move wait_status to
7292 narrower scope.
7293
e3b2741b
SM
72942021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7295
7296 * remote.c (class remote_target):
7297 <add_current_inferior_and_thread>: Constify parameter.
7298 (stop_reply_extract_thread): Likewise.
7299 (remote_target::get_current_thread): Likewise.
7300 (remote_target::add_current_inferior_and_thread): Likewise.
7301
cecb1912
SM
73022021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * remote.c (class remote_target)
7305 <remote_unpack_thread_info_response,
7306 parse_threadlist_response>: Constify parameter and/or return
7307 value and or local variable.
7308 (stub_unpack_int): Likewise.
7309 (unpack_nibble): Likewise.
7310 (unpack_byte): Likewise.
7311 (unpack_int): Likewise.
7312 (unpack_string): Likewise.
7313 (unpack_threadid): Likewise.
7314 (remote_target::remote_unpack_thread_info_response): Likewise.
7315 (remote_target::parse_threadlist_response): Likewise.
7316
5a11fff0
AB
73172021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7320
17e89137
LS
73212021-01-14 Lancelot Six <lsix@lancelotsix.com>
7322
7323 * MAINTAINERS (Write After Approval): Add myself.
7324
58eadc4b
BE
73252021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7326
7327 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7328 because is_trivially_default_constructible was first implemented with
7329 gcc-5.
7330
5fae2a2c
TV
73312021-01-14 Tom de Vries <tdevries@suse.de>
7332
7333 PR breakpoints/27151
7334 * objfiles.h (in_plt_section): Handle .plt.sec.
7335
8f66807b
AB
73362021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7337
7338 PR gdb/26819
7339 * remote.c
7340 (remote_target::select_thread_for_ambiguous_stop_reply): New
7341 member function.
7342 (remote_target::process_stop_reply): Call
7343 select_thread_for_ambiguous_stop_reply.
7344
bd497355
SM
73452021-01-13 Simon Marchi <simon.marchi@efficios.com>
7346
7347 * record-btrace.c (class record_btrace_target): Remove.
7348 (record_btrace_target::commit_resume): Remove.
7349 * record-full.c (class record_full_target): Remove.
7350 (record_full_target::commit_resume): Remove.
7351
c9d22089
SM
73522021-01-13 Simon Marchi <simon.marchi@efficios.com>
7353
7354 * remote.c (enum class resume_state): New.
7355 (struct resumed_pending_vcont_info): New.
7356 (struct remote_thread_info) <resume_state, set_not_resumed,
7357 set_resumed_pending_vcont, resumed_pending_vcont_info,
7358 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7359 New.
7360 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7361 (remote_target::remote_add_thread): Adjust.
7362 (remote_target::process_initial_stop_replies): Adjust.
7363 (remote_target::resume): Adjust.
7364 (remote_target::commit_resume): Rely on state in
7365 remote_thread_info and not on tp->executing.
7366 (remote_target::process_stop_reply): Adjust.
7367
d8d1feb4
SM
73682021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7369
7370 * arc-tdep.h (arc_debug_printf): New.
7371 * arc-tdep.c: Use arc_debug_printf.
7372 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7373 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7374 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7375
fb0f5031
SM
73762021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7377
7378 * arc-tdep.h (arc_debug): Change type to bool.
7379 * arc-tdep.c (arc_debug): Change type to bool.
7380 (arc_analyze_prologue): Adjust.
7381 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7382 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7383
5bf7e91b
SM
73842021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7385
7386 * auto-load.c (auto_load_objfile_script_1): Use bool.
7387 (execute_script_contents): Use bool.
7388
db972fce
SM
73892021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7390
7391 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7392 comment here.
7393 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7394 comment to header.
7395 * extension-priv.h (struct extension_language_script_ops)
7396 <auto_load_enabled>: Return bool.
7397 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7398 comment here.
7399 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7400 comment to header.
7401 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7402 move comment here.
7403 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7404 move comment to header.
7405 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7406 move comment here.
7407 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7408 move comment to header.
7409
5e12f48f
SM
74102021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7411
7412 * auto-load.h (file_is_auto_load_safe): Change return type to
7413 bool, move comment here.
7414 * auto-load.c (file_is_auto_load_safe): Change return type and
7415 advice_printed to bool. Move comment to header.
7416
54ca9002
SM
74172021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7418
7419 * jit.c (jit_debug_printf): New, use throughout file.
7420
24a7f1b5
SM
74212021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7422
7423 * infrun.c (normal_stop): Fix indentation.
7424
fe7a351a
SM
74252021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7426
7427 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7428 declarations to ...
7429 * symfile.h: ... here.
7430 * symfile.c: Update doc.
7431
16e9019e
SM
74322021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7433
7434 * target.h (baud_rate, serial_parity): Move declarations...
7435 * serial.h: ... here.
7436 * main.c: Include serial.h.
7437 * serial.c (baud_rate, serial_parity): Update doc.
7438
b2f2ae0d
SM
74392021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7440
7441 * top.c (pre_init_ui_hook): Remove.
7442
5291fe3c
SP
74432021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7444
7445 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7446 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7447 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7448 * features/aarch64-fpu.xml: Add bfloat16 type.
7449
ce38f5ed
AB
74502021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7451
7452 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7453
7c654b71
AB
74542021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7455
7456 * f-exp.y (dot_ops): Rename to...
7457 (fortran_operators): ...this. Add a header comment. Add symbol
7458 based operators.
7459 (yylex): Update to use fortran_operators not dot_ops. Remove
7460 special handling for '**', this is now included in
7461 fortran_operators.
7462
c6185dce
SM
74632021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7464
7465 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7466 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7467 * aarch64-tdep.c: Use aarch64_debug_printf.
7468
eef401dc
SM
74692021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7470
7471 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7472 file.
7473
062eaacb
SM
74742021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7475
7476 * jit.c (jit_debug): Change type to bool.
7477 (_initialize_jit): Adjust.
7478
54585eee
TT
74792021-01-09 Tom Tromey <tom@tromey.com>
7480
7481 PR compile/23672
7482 * compile/compile.c (compile_to_object): Avoid crash when
7483 osabi_triplet_regexp returns NULL.
7484
bc167b6b
TT
74852021-01-09 Tom Tromey <tom@tromey.com>
7486
7487 * tracepoint.h (class collection_list) <append_exp>: Take a
7488 std::string.
7489 * tracepoint.c (collection_list::append_exp): Take a std::string.
7490 (encode_actions_1): Update.
7491
8fc48b79
TT
74922021-01-08 Tom Tromey <tromey@adacore.com>
7493
7494 * parse.c (parse_expression): Add void_context_p parameter. Use
7495 parse_exp_in_context.
7496 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7497 parse_expression.
7498 (print_command, call_command): Update.
7499 * expression.h (parse_expression): Add void_context_p parameter.
7500
3c8c6de2
AB
75012021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7502
7503 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7504 for internalvar components that have a dynamic location.
7505
1940319c
TV
75062021-01-08 Tom de Vries <tdevries@suse.de>
7507
7508 PR gdb/26881
7509 * breakpoint.c (create_exception_master_breakpoint_probe)
7510 (create_exception_master_breakpoint_hook): Factor out
7511 of ...
7512 (create_exception_master_breakpoint): ... here. Only try to install
7513 the master exception breakpoint in objfile.debug using the
7514 _Unwind_DebugHook method, if the install using probes in objfile
7515 failed.
7516
e3436813
AB
75172021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7518
7519 * f-lang.c (fortran_value_subarray): Call value_from_component.
7520
e904f56d
MF
75212021-01-07 Mike Frysinger <vapier@gentoo.org>
7522
7523 * remote-sim.c: Include memory-map.h.
7524 (gdbsim_target): Define memory_map override.
7525 (gdbsim_target::memory_map): Define.
7526
959d6a67
TT
75272021-01-07 Tom Tromey <tromey@adacore.com>
7528
7529 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7530
d4813f10
TT
75312021-01-07 Tom Tromey <tromey@adacore.com>
7532
7533 * ada-lang.c (add_component_interval): Start loop using vector's
7534 updated size.
7535
b49180ac
TT
75362021-01-06 Tom Tromey <tromey@adacore.com>
7537
7538 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7539 Do not cast result.
7540 * valarith.c (fixed_point_binop): Handle multiplication
7541 and division specially.
7542 * valops.c (value_to_gdb_mpq): New function.
7543 (value_cast_to_fixed_point): Use it.
7544
55195361
HD
75452021-01-05 Hannes Domani <ssbssa@yahoo.de>
7546
7547 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7548 Call wnoutrefresh instead of tui_win_info::refresh_window.
7549
1b6d4bb2
HD
75502021-01-05 Hannes Domani <ssbssa@yahoo.de>
7551
7552 * tui/tui-source.c (tui_source_window::show_line_number):
7553 Redraw second space after line number.
7554
b5ff370e
HD
75552021-01-05 Hannes Domani <ssbssa@yahoo.de>
7556
7557 PR tui/26927
7558 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7559 Fix source pad size in prefresh.
7560 (tui_source_window_base::show_source_content): Grow source pad
7561 if necessary.
7562
c68ea49f
MF
75632021-01-04 Mike Frysinger <vapier@gentoo.org>
7564
7565 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7566 (bfin_frame_align): Use align_down.
7567
e4ad960a
TV
75682021-01-04 Tom de Vries <tdevries@suse.de>
7569
7570 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7571 terminators that do not terminate anything.
7572
3ec3145c
SM
75732021-01-04 Simon Marchi <simon.marchi@efficios.com>
7574
7575 * debug.c (debug_print_depth): New.
7576 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7577 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7578 * infrun.c (start_step_over): Use
7579 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7580 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7581 INFRUN_SCOPED_DEBUG_START_END.
7582 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7583
e71daf80
SM
75842021-01-04 Simon Marchi <simon.marchi@efficios.com>
7585
7586 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7587
335709bc
SM
75882021-01-04 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * utils.c (vfprintf_unfiltered): Print timestamp only when
7591 previous debug output ended with a newline.
7592
098caef4
LM
75932021-01-04 Luis Machado <luis.machado@linaro.org>
7594
7595 Update all users of trad_frame_saved_reg to use the new member
7596 functions.
7597
7598 Remote all struct keywords from declarations of trad_frame_saved_reg
7599 types, except on forward declarations.
7600
7601 * aarch64-tdep.c: Update.
7602 * alpha-mdebug-tdep.c: Update.
7603 * alpha-tdep.c: Update.
7604 * arc-tdep.c: Update.
7605 * arm-tdep.c: Update.
7606 * avr-tdep.c: Update.
7607 * cris-tdep.c: Update.
7608 * csky-tdep.c: Update.
7609 * frv-tdep.c: Update.
7610 * hppa-linux-tdep.c: Update.
7611 * hppa-tdep.c: Update.
7612 * hppa-tdep.h: Update.
7613 * lm32-tdep.c: Update.
7614 * m32r-linux-tdep.c: Update.
7615 * m32r-tdep.c: Update.
7616 * m68hc11-tdep.c: Update.
7617 * mips-tdep.c: Update.
7618 * moxie-tdep.c: Update.
7619 * riscv-tdep.c: Update.
7620 * rs6000-tdep.c: Update.
7621 * s390-linux-tdep.c: Update.
7622 * s390-tdep.c: Update.
7623 * score-tdep.c: Update.
7624 * sparc-netbsd-tdep.c: Update.
7625 * sparc-sol2-tdep.c: Update.
7626 * sparc64-fbsd-tdep.c: Update.
7627 * sparc64-netbsd-tdep.c: Update.
7628 * sparc64-obsd-tdep.c: Update.
7629 * sparc64-sol2-tdep.c: Update.
7630 * tilegx-tdep.c: Update.
7631 * v850-tdep.c: Update.
7632 * vax-tdep.c: Update.
7633
7634 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7635 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7636
7637 * trad-frame.c: Update.
7638 Remove TF_REG_* enum.
7639 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7640 a trivially-constructible struct.
7641 (trad_frame_reset_saved_regs): Adjust to use member function.
7642 (trad_frame_value_p): Likewise.
7643 (trad_frame_addr_p): Likewise.
7644 (trad_frame_realreg_p): Likewise.
7645 (trad_frame_value_bytes_p): Likewise.
7646 (trad_frame_set_value): Likewise.
7647 (trad_frame_set_realreg): Likewise.
7648 (trad_frame_set_addr): Likewise.
7649 (trad_frame_set_unknown): Likewise.
7650 (trad_frame_set_value_bytes): Likewise.
7651 (trad_frame_get_prev_register): Likewise.
7652 * trad-frame.h: Update.
7653 (trad_frame_saved_reg_kind): New enum.
7654 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7655 <m_kind, m_reg>: New member fields.
7656 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7657 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7658 <is_addr, is_unknown, is_value_bytes>: New member functions.
7659
9898e882
SM
76602021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7661
7662 * target-float.c: Fix typos.
7663
b66b4e65
HD
76642021-01-02 Hannes Domani <ssbssa@yahoo.de>
7665
7666 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7667
b5b5650a
JB
76682021-01-01 Joel Brobecker <brobecker@adacore.com>
7669
7670 * gdbarch.sh: Update copyright year range.
7671
3666a048
JB
76722021-01-01 Joel Brobecker <brobecker@adacore.com>
7673
7674 Update copyright year range in copyright header of all GDB files.
7675
ff7e39b6
JB
76762021-01-01 Joel Brobecker <brobecker@adacore.com>
7677
7678 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7679 to the list of directories to update.
7680
2b47c078
JB
76812021-01-01 Joel Brobecker <brobecker@adacore.com>
7682
7683 * top.c (print_gdb_version): Update copyright year.
7684
9e5e03df 76852021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 7686
476923f1 7687 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 7688
476923f1 7689For older changes see ChangeLog-2020.
c906108c
SS
7690\f
7691Local Variables:
7692mode: change-log
7693left-margin: 8
7694fill-column: 74
7695version-control: never
57da7796 7696coding: utf-8
c906108c 7697End:
This page took 3.114902 seconds and 4 git commands to generate.