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