gdb: introduce frame_debug_printf
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a05a883f
SM
12021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * frame.h (frame_debug_printf): New.
4 * frame.c: Use frame_debug_printf throughout when printing frame
5 debug messages.
6 * amd64-windows-tdep.c: Likewise.
7 * value.c: Likewise.
8
dd4f75f2
SM
92021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * frame.h (frame_debug): Change type to bool.
12 * frame.c (frame_debug): Change type to bool.
13 (_initialize_frame): Adjust.
14
4743af62
TBA
152021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16
17 * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
18
2608aff5
SM
192021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
20
21 PR gdb/28017
22 * machoread.c (macho_symfile_offsets): Use
23 gdb_bfd_count_sections to allocate objfile::section_offsets.
24
0c1bcd23
SM
252021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * objfiles.h (struct obj_section): Move down.
28 <offset, set_offset, addr, endaddr>: New.
29 (obj_section_offset, obj_section_addr, obj_section_endaddr),
30 replace all users to use obj_section methods.
31 (struct objfile) <section_offset, set_section_offset>: New.
32
332021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * objfiles.h (struct obj_section): Move down.
36 <offset, set_offset, addr, endaddr>: New.
37 (obj_section_offset, obj_section_addr, obj_section_endaddr),
38 replace all users to use obj_section methods.
39 (struct objfile) <section_offset, set_section_offset>: New.
40
f07fad95
SM
412021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * .flake8: New.
44
a52d0b9d
LM
452021-06-28 Luis Machado <luis.machado@linaro.org>
46
47 * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
48 byte.
49 (aarch64_linux_set_memtags): Likewise.
50 (aarch64_linux_get_memtag): Likewise.
51 (aarch64_linux_report_signal_info): Likewise.
52
e660f4e9
LM
532021-06-28 Luis Machado <luis.machado@linaro.org>
54
55 * aarch64-linux-tdep.c
56 (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
57
0a3b55a6
LM
582021-06-28 Luis Machado <luis.machado@linaro.org>
59
60 * aarch64-linux-tdep.c
61 (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
62 size.
63 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
64 8 and update comments.
65
b447dd03
SM
662021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
67
68 * gdbarch.sh (struct gdbarch_info): Initialize fields, add
69 constructor.
70 * gdbarch.h: Re-generate.
71 * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
72 * arch-utils.c (gdbarch_info_init): Remove.
73
c87c999c
SM
742021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
77 (gdbarch_find_by_info): Remove print.
78 * gdbarch.c, gdbarch.h: Re-generate.
79
4d60b897
AB
802021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
81
82 * remote.c (remote_target::start_remote): Set 'starting_up' using
83 boolean values instead of integers.
84
6a72dbb6
SM
852021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
86
87 * guile/scm-param.c (struct param_smob) <set_command,
88 show_command>: Remove.
89 <commands>: New.
90 (pascm_is_valid): Adjust.
91 (add_setshow_generic): Use return values of add_setshow
92 functions, return a set_show_commands.
93 (gdbscm_register_parameter_x): Adjust.
94
4c0ba02a
SM
952021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * command.h (add_setshow_enum_cmd): Remove context parameter.
98 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
99 set context.
100 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
101 context here.
102
d6ff04a3
SM
1032021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
106 assert.
107
0f8e2034
SM
1082021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * cli/cli-decode.h (struct cmd_list_element) <set_context,
111 context>: New.
112 <context>: Rename to...
113 <m_context>: ... this.
114 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
115 * command.h (set_cmd_context, get_cmd_context): Remove, use
116 cmd_list_element::set_context and cmd_list_element::context
117 everywhere instead.
118
bd742128
AB
1192021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
120
121 * NEWS: Mention changes to 'info sources'.
122 * symtab.c (info_sources_filter::print): Delete.
123 (struct output_source_filename_data) <print_header>: Delete
124 declaration. <printed_filename_p>: New member function.
125 (output_source_filename_data::print_header): Delete.
126 (info_sources_worker): Update group-by-objfile style output to
127 make it CLI suitable, simplify non-group-by-objfile now this is
128 only used from the MI.
129 (info_sources_command): Make group-by-objfile be the default for
130 CLI info sources command.
131 * symtab.h (struct info_sources_filter) <print>: Delete.
132
1fb1ce02
AB
1332021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * NEWS: Mention additions to -file-list-exec-source-files.
136 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
137 --group-by-objfile option.
138 * symtab.c (isrc_flag_option_def): Rename to...
139 (isrc_match_flag_option_def): ...this.
140 (info_sources_option_defs): Rename to...
141 (info_sources_match_option_defs): ...this, and update to rename of
142 isrc_flag_option_def.
143 (struct filename_grouping_opts): New struct.
144 (isrc_grouping_flag_option_def): New type.
145 (info_sources_grouping_option_defs): New static global.
146 (make_info_sources_options_def_group): Update to return two option
147 groups.
148 (info_sources_command_completer): Update for changes to
149 make_info_sources_options_def_group.
150 (info_sources_worker): Add extra parameter, use this to display
151 alternative output format.
152 (info_sources_command): Pass extra parameter to
153 info_sources_worker.
154 (_initialize_symtab): Update for changes to
155 make_info_sources_options_def_group.
156 * symtab.h (info_sources_worker): Add extra parameter.
157
0e350a05
AB
1582021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
159
160 * NEWS: Mention additions to -file-list-exec-source-files.
161 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
162 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
163 options, and make use of info_sources_worker.
164 * symtab.c (struct info_sources_filter): Moved to symtab.h.
165 (info_sources_filter::print): Take uiout argument, produce output
166 through uiout.
167 (struct output_source_filename_data)
168 <output_source_filename_data>: Take uiout argument, store into
169 m_uiout. <output>: Rewrite comment, add additional arguments to
170 declaration. <operator()>: Send more arguments to
171 output. <m_uiout>: New member variable.
172 (output_source_filename_data::output): Take extra arguments,
173 produce output through m_uiout, and structure for MI.
174 (output_source_filename_data::print_header): Produce output
175 through m_uiout.
176 (info_sources_worker): New function, the implementation is taken
177 from info_sources_command, but modified so produce output through
178 a ui_out.
179 (info_sources_command): The second half of this function has gone
180 to become info_sources_worker.
181 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
182 extra parameter to print member function.
183 (info_sources_worker): Declare.
184
4a0788e0
AB
1852021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
186
187 * symtab.c (struct info_sources_filter): New.
188 (info_sources_filter::info_sources_filter): New function.
189 (info_sources_filter::matches): New function.
190 (info_sources_filter::print): New function.
191 (struct filename_partial_match_opts): Moved to later in the file
192 and update the comment.
193 (struct output_source_filename_data)
194 <output_source_filename_data>: New constructor. <regexp>: Delete,
195 this is now in info_sources_filter. <c_regexp>: Delete, this is
196 now in info_sources_filter. <reset_output>: New member function.
197 <filename_seen_cache>: Rename to m_filename_seen_cache, change
198 from being a pointer, to being an actual object. <first>: Rename
199 to m_first. <print_header>: New member function. <partial_match>:
200 Delete.
201 (output_source_filename_data::output): Update now
202 m_filename_seen_cache is no longer a pointer, and for other member
203 variable name changes. Add a header comment.
204 (print_info_sources_header): Renamed to...
205 (output_source_filename_data::print_header): ...this. Update now
206 it's a member function and to take account of member variable
207 renaming.
208 (info_sources_command): Add a header comment, delete stack local
209 filename_seen_cache, initialization of output_source_filename_data
210 is now done by the constructor. Call print_header member function
211 instead of print_info_sources_header, call reset_output member
212 function instead of manually performing the reset.
213
fc4d5ebf
AB
2142021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
215
216 * dwarf2/read.c (struct dwarf2_base_index_functions)
217 <has_unexpanded_symtabs>: Declare.
218 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
219 function.
220 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
221 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
222 Declare.
223 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
224 new function.
225 * quick-symbol.h (struct quick_symbol_functions)
226 <has_unexpanded_symtabs>: Declare.
227 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
228 function.
229
d038ce48
AB
2302021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
233 setting prototyped flag.
234
158cc4fe
AB
2352021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
238 an empty gdb::optional when calling value_struct_elt.
239 (desc_data): Likewise.
240 (desc_one_bound): Likewise.
241 * eval.c (structop_base_operation::evaluate_funcall): Pass
242 gdb::array_view, not a gdb::array_view* to value_struct_elt.
243 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
244 an empty gdb::optional when calling value_struct_elt.
245 (eval_op_structop_ptr): Likewise.
246 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
247 * guile/scm-value.c (gdbscm_value_field): Likewise.
248 * m2-lang.c (eval_op_m2_high): Likewise.
249 (eval_op_m2_subscript): Likewise.
250 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
251 * python/py-value.c (valpy_getitem): Likewise.
252 * rust-lang.c (rust_val_print_str): Likewise.
253 (rust_range): Likewise.
254 (rust_subscript): Likewise.
255 (eval_op_rust_structop): Likewise.
256 (rust_aggregate_operation::evaluate): Likewise.
257 * valarith.c (value_user_defined_op): Likewise.
258 * valops.c (search_struct_method): Change parameter type, update
259 function body accordingly, and update header comment.
260 (value_struct_elt): Change parameter type, update function body
261 accordingly.
262 * value.h (value_struct_elt): Update declaration.
263
13221aec
AB
2642021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 PR gdb/27994
267 * eval.c (structop_base_operation::evaluate_funcall): Pass
268 array_view instead of array to value_struct_elt.
269 * valarith.c (value_user_defined_op): Likewise.
270 * valops.c (typecmp): Change parameter type from array pointer to
271 array_view. Update header comment, and update body accordingly.
272 (search_struct_method): Likewise.
273 (value_struct_elt): Likewise.
274 * value.h (value_struct_elt): Update declaration.
275
79bd4d34
AB
2762021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
277
278 PR gdb/27994
279 * eval.c (structop_base_operation::evaluate_funcall): Add a
280 nullptr to the end of the args array, which should not be included
281 in the argument array_view. Pass all the arguments through to
282 value_struct_elt.
283 * valops.c (search_struct_method): Update header comment.
284 (value_struct_elt): Likewise.
285
3da4c644
TT
2862021-06-25 Tom Tromey <tom@tromey.com>
287
288 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
289 logic.
290
3e9f1ca1
TT
2912021-06-25 Tom Tromey <tom@tromey.com>
292
293 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
294 (scan_partial_symbols, partial_die_parent_scope)
295 (add_partial_symbol, add_partial_subprogram)
296 (compute_delayed_physnames, rust_union_quirks)
297 (process_full_comp_unit, process_full_type_unit)
298 (process_imported_unit_die, process_die, dw2_linkage_name)
299 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
300 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
301 (read_variable, dwarf2_get_subprogram_pc_bounds)
302 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
303 (dwarf2_attach_fn_fields_to_type)
304 (quirk_ada_thick_pointer_struct, read_structure_type)
305 (handle_struct_member_die, process_structure_scope)
306 (read_array_type, read_array_order, prototyped_function_p)
307 (read_subroutine_type, dwarf2_init_complex_target_type)
308 (read_base_type, read_subrange_type, read_unspecified_type)
309 (load_partial_dies, partial_die_info::fixup, set_cu_language)
310 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
311 (dwarf2_canonicalize_name, follow_die_offset)
312 (prepare_one_comp_unit): Update.
313 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
314
bf1dcdb3
TT
3152021-06-25 Tom Tromey <tom@tromey.com>
316
317 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
318 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
319 set language_defn. Handle DW_LANG_OpenCL.
320 (prepare_one_comp_unit): Check producer and set language_defn.
321
6b95f5ad
AB
3222021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * NEWS: Mention Python BP_CATCHPOINT feature.
325 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
326 (bppy_init): Likewise.
327 (gdbpy_breakpoint_created): Likewise.
328
08080f97
AB
3292021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
330
331 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
332 bp_catchpoint.
333 (bpscm_want_scm_wrapper_p): Likewise.
334 (gdbscm_make_breakpoint): Likewise.
335 (breakpoint_integer_constants): Likewise.
336
81b327aa
AB
3372021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
338
339 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
340 for invalid breakpoint numbers, and unsupported breakpoint
341 numbers.
342
50a6759f
TT
3432021-06-25 Tom Tromey <tom@tromey.com>
344
345 * dwarf2/index-write.c (struct addrmap_index_data): Add
346 initializers.
347 <operator()>: Declare.
348 (addrmap_index_data::operator()): Rename from
349 add_address_entry_worker. Remove 'datap' parameter.
350 (write_address_map): Update.
351 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
352 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
353 parameters.
354 (dump_psymtab_addrmap): Update.
355 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
356 parameter.
357 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
358 (struct mutable_foreach_data): Remove.
359 (addrmap_mutable_foreach_worker): Update.
360 (addrmap_mutable_foreach): Remove 'data' parameter.
361 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
362 (addrmap_foreach): Remove 'data' parameter.
363
67470e9d
TT
3642021-06-25 Tom Tromey <tromey@adacore.com>
365
366 * python/py-type.c (typy_get_name): Decode an Ada type name.
367
8a3df5ac
TT
3682021-06-25 Tom Tromey <tromey@adacore.com>
369
370 * ada-lang.c (ada_decode): Add wrap parameter.
371 * ada-lang.h (ada_decode): Add wrap parameter.
372
134df964
LM
3732021-06-25 Luis Machado <luis.machado@linaro.org>
374
375 * corelow.c (core_target::core_target) Update to read target
376 description.
377
224506e9
SM
3782021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * python/lib/gdb/__init__.py: Format.
381
ac0d67ed
SM
3822021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
383
384 * infrun.c (do_target_wait): Remove wait_ptid parameter.
385 (fetch_inferior_event): Adjust.
386
4e317a76
SM
3872021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
388
389 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
390 with name of chosen unwinder.
391 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
392 unwinder in debug message.
393
80d1206d
AS
3942021-06-22 Andreas Schwab <schwab@suse.de>
395
396 PR symtab/27999
397 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
398 DW_LLE_start_end.
399
80dc83fd
AB
4002021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
401
402 * breakpoint.c (insert_bp_location): If we catch a
403 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
404 been deleted.
405
96f842cb
AB
4062021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
407
408 * NEWS: Mention new target feature name.
409 * arch/riscv.c (riscv_create_target_description): GDB doesn't
410 currently create target descriptions containing vector registers.
411 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
412 variable.
413 <operator==>: Also compare vlen.
414 <hash>: Also include vlen.
415 * riscv-tdep.c (riscv_feature_name_vector): New static global.
416 (struct riscv_vector_feature): New struct.
417 (riscv_vector_feature): New static global.
418 (riscv_register_reggroup_p): Ensure vector registers are part of
419 the 'all' group, and part of the 'vector' group.
420 (riscv_dwarf_reg_to_regnum): Handle vector registers.
421 (riscv_gdbarch_init): Check vector register feature.
422 * riscv-tdep.h: Add vector registers to GDB's internal register
423 numbers, and to the DWARF register numbers.
424
d52b8007
AB
4252021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
426
427 * NEWS: Mention the two new methods.
428 * python/py-frame.c (frapy_level): New function.
429 (frame_object_methods): Register 'level' method.
430 * python/py-unwind.c (pending_framepy_level): New function.
431 (pending_frame_object_methods): Register 'level' method.
432
8b9c48b2
AB
4332021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 * python/py-inferior.c (infpy_get_connection_num): Call
436 gdb_py_object_from_longest instead of PyLong_FromLong directly.
437
61e2dde2
AB
4382021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
441 saving user registers.
442
7e3941ac
MF
4432021-06-19 Mike Frysinger <vapier@gentoo.org>
444
445 * acinclude.m4: Delete most m4_include's of ../config files.
446 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
447 * aclocal.m4: Regenerate.
448 * configure: Regenerate.
449
336b30e5
PA
4502021-06-17 Pedro Alves <pedro@palves.net>
451
452 * scoped_ignore_signal.h (scoped_ignore_signal): Add
453 ConsumePending template parameter.
454 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
455 sigtimedwait if ConsumePending is false.
456 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
457 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
458 <m_ignore_signal>: Initialize with ConsumePending=false.
459
2af6d46f
PA
4602021-06-17 Pedro Alves <pedro@palves.net>
461
462 * Makefile.in (SELFTESTS_SRCS): Add
463 unittests/scoped_ignore_signal-selftests.c.
464 * unittests/scoped_ignore_signal-selftests.c: New.
465
6a7f1c20
PA
4662021-06-17 Pedro Alves <pedro@palves.net>
467
468 * gdbsupport/scoped_ignore_signal.h: New.
469 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
470 instead of <signal.h>. Don't include <unistd.h>.
471 (scoped_ignore_sigpipe): Remove.
472 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
473 instead of <signal.h>. Don't include <unistd.h>.
474 (lazy_init): New.
475 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
476 and lazy_init.
477
965febe5
PA
4782021-06-17 Pedro Alves <pedro@palves.net>
479
480 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
481 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
482 * inflow.h: Delete, moved to gdbsupport/ under a different name.
483 * ser-unix.c: Don't include "inflow.h". Include
484 "gdbsupport/scoped_ignore_sigttou.h".
485
82a5082e
PA
4862021-06-17 Pedro Alves <pedro@palves.net>
487
488 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
489 ...
490 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
491 tui_getc_1.
492 (cur_seq, start_sequence): New.
493 (tui_getc_1): Pass key escape sequences for curses control keys to
494 readline. Handle mouse and ctrl-l here.
495 (tui_resize_all): Disable/reenable the keypad if the command
496 window has the focus too.
497 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
498 setting.
499 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
500
7daf500d
SM
5012021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
504
8457e5ec
TV
5052021-06-16 Tom de Vries <tdevries@suse.de>
506
507 PR symtab/26327
508 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
509 (dwarf2_cu::get_builder): Declare and move ...
510 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
511 of ancestor. Assert return value is non-null.
512 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
513 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
514 (dwarf2_per_objfile): Add sym_cu field.
515
93df3340
AM
5162021-06-15 Alan Modra <amodra@gmail.com>
517
518 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
519
483ab96a
MF
5202021-06-14 Mike Frysinger <vapier@gentoo.org>
521
522 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
523 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
524
09db4332
JB
5252021-06-14 John Baldwin <jhb@FreeBSD.org>
526
527 * configure.ac: Check for <sys/procctl.h>.
528 * config.in, configure: Regenerate.
529 * fbsd-nat.c: Include <sys/procctl.h> if present.
530 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
531 (fbsd_nat_target::create_inferior)
532 (fbsd_nat_target::supports_disable_randomization): New.
533 * fbsd-nat.h (fbsd_nat_target::create_inferior)
534 (fbsd_nat_target::supports_disable_randomization): New.
535
739025e8
BE
5362021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
537
538 * compile/compile.c: Include missing header signal.h.
539
d424629d
JB
5402021-06-12 John Baldwin <jhb@FreeBSD.org>
541
542 * remote.c (remote_new_objfile): Fix indentation.
543
e2b9ea4b
KB
5442021-06-11 Kevin Buettner <kevinb@redhat.com>
545
546 * solib.c (libpthread_name_p): Match "libc" in addition
547 to "libpthread".
548 * linux-thread-db.c (libpthread_objfile_p): New function.
549 (libpthread_name_p): Adjust preexisting callers to use
550 libpthread_objfile_p().
551
873793ae
SM
5522021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
553
554 * dwarf2/loc.h (struct call_site_stuff): Remove.
555
48ec4c05
TT
5562021-06-11 Tom Tromey <tom@tromey.com>
557
558 PR rust/23427
559 * rust-parse.c (rust_parser::lex_identifier): Handle raw
560 identifiers.
561 (rust_lex_tests): Add raw identifier tests.
562
f9e59d06
LS
5632021-06-08 Lancelot Six <lsix@lancelotsix.com>
564
565 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
566 instead of '== None'.
567 (FrameVars): Use 'is not None' instead of '!= None'.
568 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
569 Use 'is None' instead of '== None' and 'is not None' instead of '!=
570 None'.
571
122373f7
SM
5722021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * inferior.h (class inferior) <in_initial_library_scan>: New.
575 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
576 * infrun.c (follow_fork_inferior): Likewise.
577 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
578 by try_thread_db_load_1
579 (thread_db_load): Return early if in_initial_library_scan is
580 set.
581 * remote.c (remote_new_objfile): Return early if
582 in_initial_library_scan is set.
583
1b453aed
PA
5842021-06-07 Pedro Alves <pedro@palves.net>
585
586 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
587 ctor.
588 * symtab.h (struct symbol): Add defaulted copy assignment
589 operator.
590
fa6ec8ef
PA
5912021-06-07 Pedro Alves <pedro@palves.net>
592
593 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
594 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
595 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
596 local.
597
c57eb1a2
PA
5982021-06-07 Pedro Alves <pedro@palves.net>
599
600 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
601 (nat_sigval_t): ... this and remove typedef of same name.
602 (struct nat_siginfo): Rename to ...
603 (nat_siginfo_t): ... this and remove typedef of same name.
604 (struct compat_sigval): Rename to ...
605 (compat_sigval_t): ... this and remove typedef of same name.
606 (struct compat_siginfo): Rename to ...
607 (compat_siginfo_t): ... this and remove typedef of same name.
608 (struct compat_x32_siginfo): Rename to ...
609 (compat_x32_siginfo_t): ... this and remove typedef of same name.
610 (amd64_linux_siginfo_fixup_common): Adjust.
611
d8ca8e9f
PA
6122021-06-07 Pedro Alves <pedro@palves.net>
613
614 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
615 __attribute__ __aligned__ from the typedef to the struct.
616
a12a15e7
AB
6172021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
618
619 PR gdb/27847
620 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
621 type_align, and spot case where the alignment is unknown.
622
ecac8d1c
CL
6232021-06-07 Carl Love <cel@us.ibm.com>
624
625 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
626 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
627 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
628 ppc64_pcrel_linkage2_target): New functions.
629 (ppc64_standard_linkage9, ppc64_standard_linkage10,
630 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
631 instruction patterns.
632 (ppc64_standard_linkage9, ppc64_standard_linkage10,
633 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
634 in define MAX expression.
635 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
636 ppc64_standard_linkage10, ppc64_standard_linkage11,
637 ppc64_standard_linkage12.
638 * (ppc_insn_prefix_dform): New function.
639
cfa8e270
SM
6402021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
641
642 PR gdb/27899
643 * sparc-nat.c (sparc_fetch_inferior_registers): Set
644 inferior_ptid instead of using switch_to_thread.
645 (sparc_store_inferior_registers): Likewise.
646
4a977544
BE
6472021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
648
649 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
650 (compile_to_object): Ignore SIGPIPE before calling the plugin.
651
8ff8c543
TT
6522021-06-05 Tom Tromey <tom@tromey.com>
653
654 * data-directory/Makefile.in (Makefile): Use correct directory
655 name.
656
19d6d783
TT
6572021-06-05 Tom Tromey <tom@tromey.com>
658
659 * data-directory/Makefile.in (Makefile): Rewrite.
660
b316465f
TT
6612021-06-05 Tom Tromey <tromey@adacore.com>
662
663 * configure: Rebuild.
664 * configure.ac: Add ACX_NONCANONICAL_TARGET.
665
ae61ef2c
SV
6662021-06-05 Shahab Vahedi <shahab@synopsys.com>
667
668 * NEWS: Document 'set disassembler-options' support for the ARC
669 target.
670 * arc-tdep.c (arc_gdbarch_init): Set
671 'gdbarch_valid_disassembler_options'.
672
386de171
TT
6732021-06-04 Tom Tromey <tromey@adacore.com>
674
675 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
676 parameter.
677 * dwarf2/loc.c (dwarf2_evaluate_property) <case
678 PROP_VARIABLE_NAME>: New case.
679 (compute_var_value): New function.
680 (sect_variable_value): Use compute_var_value.
681 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
682 (var_decl_name): New function.
683 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
684 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
685 constant.
686 (union dynamic_prop_data) <variable_name>: New member.
687 (struct dynamic_prop) <variable_name, set_variable_name>: New
688 methods.
689
4351271e
AB
6902021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * remote.c (remote_target)
693 <select_thread_for_ambiguous_stop_reply>: Add additional debug
694 output.
695
a5375566
HD
6962021-06-04 Hannes Domani <ssbssa@yahoo.de>
697
698 * python/py-tui.c (class tui_py_window): Add click function.
699 (tui_py_window::click): Likewise.
700
1bace02a
HD
7012021-06-04 Hannes Domani <ssbssa@yahoo.de>
702
703 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
704 * tui/tui-data.h (struct tui_win_info): Add click function.
705 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
706 (tui_deprep_terminal): Disable mouse events.
707 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
708 * tui/tui.c (tui_disable): Disable mouse events.
709
df5bc734
MH
7102021-06-03 Magne Hov <mhov@undo.io>
711
712 PR python/27841
713 * eval.c (expression::evaluate): Check inferior_ptid.
714
415c8100
PA
7152021-06-03 Pedro Alves <pedro@palves.net>
716
717 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
718 affiliation.
719 (Global Maintainers): Update my address.
720 (Write After Approval): Remove stale entry.
721
83810881
JB
7222021-06-03 John Baldwin <jhb@FreeBSD.org>
723
724 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
725 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
726 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
727 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
728 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
729 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
730 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
731 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
732 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
733 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
734 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
735 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
736 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
737 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
738 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
739 (fbsd_report_signal_info): New.
740 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
741 report_signal_info method.
742
4c958d79
MH
7432021-06-03 Magne Hov <mhov@undo.io>
744
745 * MAINTAINERS (Write After Approval): Add Magne Hov.
746
6ac5237c
HD
7472021-06-03 Hannes Domani <ssbssa@yahoo.de>
748
749 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
750 gdb.SYMBOL_LABEL_DOMAIN constant.
751
aeeb758d
JB
7522021-06-01 John Baldwin <jhb@FreeBSD.org>
753
754 * infrun.c (handle_inferior_event): Only call
755 gdbarch_displaced_step_restore_all_in_ptid if
756 gdbarch_supports_displaced_stepping is true.
757
906f72d4
TT
7582021-06-01 Tom Tromey <tromey@adacore.com>
759
760 * Makefile.in (all-data-directory): Remove.
761 (data-directory/Makefile): Remove.
762
ba56237d
TT
7632021-06-01 Tom Tromey <tromey@adacore.com>
764
765 * configure: Rebuild.
766 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
767
2adf1781
TT
7682021-06-01 Tom Tromey <tromey@adacore.com>
769
770 * silent-rules.mk (ECHO_CC): New variable.
771
bdbbcd57
TT
7722021-06-01 Tom Tromey <tromey@adacore.com>
773
774 * Makefile.in (SUBDIRS): Add testsuite.
775 (all): Don't exclude testsuite.
776
f99d1d37
TT
7772021-06-01 Tom Tromey <tromey@adacore.com>
778
779 * configure.ac: Copy some code from testsuite/configure.ac.
780 (enable_libctf): Subst this, not ENABLE_LIBCTF.
781 * configure: Rebuild.
782
17d305ef
TV
7832021-06-01 Tom de Vries <tdevries@suse.de>
784
785 PR symtab/26096
786 * minsyms.c (msymbol_is_cold_clone): New function.
787 (msymbol_is_function): Use msymbol_is_cold_clone.
788
9b715c68
AB
7892021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
790 Andrew Burgess <andrew.burgess@embecosm.com>
791
792 PR gdb/14383
793 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
794 (ALLDEPFILES): Add arm-none-tdep.c
795 * arm-none-tdep.c: New file.
796 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
797
b4b3e2de
AB
7982021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
799 Richard Bunt <richard.bunt@arm.com>
800
801 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
802 check for why the backtrace stopped.
803
9ea36493
SM
8042021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
805
806 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
807 Update all callers.
808 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
809 signature parameter, update all callers.
810 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
811 signature parameter.
812
46c6bcf6
SM
8132021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
814
815 * dwarf2/read.h (signatured_type_up): New, use where possible.
816
4631503b
SM
8172021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
818
819 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
820
cc653233
TT
8212021-05-30 Tom Tromey <tom@tromey.com>
822
823 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
824 is_debug_types.
825 (create_signatured_type_table_from_index)
826 (create_signatured_type_table_from_debug_names, add_type_unit)
827 (read_comp_units_from_section): Update.
828
c96e8b04
TT
8292021-05-30 Tom Tromey <tom@tromey.com>
830
831 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
832 m_num_psymtabs>: Remove.
833 (resize_symtabs): Update.
834 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
835 (dwarf2_per_bfd::allocate_signatured_type): Update.
836
24b21115
SM
8372021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
838
839 * Fix tab after space indentation issues throughout.
840
01add95b
SM
8412021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
842
843 * Fix some indentation mistakes throughout.
844
055c879f
SM
8452021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
846
847 * breakpoint.h (iterate_over_bp_locations): Remove. Update
848 users to use all_bp_locations.
849 (all_bp_locations): New.
850 * breakpoint.c (all_bp_locations): Make non-static.
851 (iterate_over_bp_locations): Remove.
852
240edef6
SM
8532021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
854
855 * breakpoint.h (iterate_over_breakpoints): Remove. Update
856 callers to use all_breakpoints or all_breakpoints_safe.
857 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
858 all_breakpoints_safe): Move here.
859 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
860 non-static.
861 (iterate_over_breakpoints): Remove.
862 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
863 Return void.
864 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
865 return value logic.
866 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
867
e0d9a270
SM
8682021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
869
870 * breakpoint.c (get_first_locp_gte_addr): Remove.
871 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
872 all_bp_locations_at_addr.
873 (struct bp_locations_at_addr_range): New.
874 (all_bp_locations_at_addr): New.
875 (bp_locations_compare_addrs): New.
876
48d7020b
SM
8772021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
880 all_bp_locations.
881 (all_bp_locations): New.
882
5d51cd5d
SM
8832021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
884
885 * breakpoint.c (bp_locations): Change to std::vector, update all
886 users.
887 (bp_locations_count): Remove.
888 (update_global_location_list): Change to work with indices
889 rather than bp_location**.
890
40cb8ca5
SM
8912021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
892
893 * breakpoint.h (bp_locations_range): New.
894 (struct breakpoint) <locations>: New. Use where possible.
895
f6d17b2b
SM
8962021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
897
898 * breakpoint.h (all_tracepoints): Remove.
899 (breakpoint_iterator): Move here.
900 (struct tracepoint_filter): New.
901 (tracepoint_iterator): New.
902 (tracepoint_range): New.
903 (all_tracepoints): New.
904 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
905 all_tracepoints.
906 (breakpoint_iterator): Move to header.
907 (all_tracepoints): New.
908 * tracepoint.c (start_tracing): Adjust.
909
1428b37a
SM
9102021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
911
912 * breakpoint.c (breakpoint_safe_range): New.
913 (all_breakpoints_safe): New. Use instead of
914 ALL_BREAKPOINTS_SAFE where possible.
915
43892fdf
SM
9162021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
917
918 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
919 all_breakpoints.
920 (breakpoint_iterator): New.
921 (breakpoint_range): New.
922 (all_breakpoints): New.
923
bdef5723
HD
9242021-05-27 Hannes Domani <ssbssa@yahoo.de>
925
926 * python/py-tui.c (tui_py_window::output): Add full_window
927 argument.
928 (gdbpy_tui_write): Parse "full_window" argument.
929
d5a6313e
SM
9302021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
931
932 * make-init-c: Add option to reverse function calls.
933
f39632d9
SM
9342021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * Makefile.in (INIT_FILES_FILTER_OUT): New.
937 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
938 (stamp-init): Use make-init-c.
939 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
940 * silent-rules.mk (ECHO_INIT_C): Change.
941 * make-init-c: New file.
942
5e84b7ee
SM
9432021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
944
945 * command.h (add_alias_cmd): Accept target as
946 cmd_list_element. Update callers.
947
e0f25bd9
SM
9482021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
949
950 * command.h (add_info_alias): Accept target as
951 cmd_list_element. Update callers.
952
3947f654
SM
9532021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
954
955 * command.h (add_com_alias): Accept target as
956 cmd_list_element. Update callers.
957
7bd22f56
SM
9582021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
959
960 * python/py-param.c (add_setshow_generic): Use return values of
961 add_setshow functions.
962
9f260536
SM
9632021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
964
965 * mi/mi-main.c (_initialize_mi_main):
966 * python/py-auto-load.c (gdbpy_initialize_auto_load):
967 * remote.c (_initialize_remote):
968
af7f8f52
SM
9692021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
970
971 * command.h (set_show_commands): New.
972 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
973 add_setshow_boolean_cmd, add_setshow_filename_cmd,
974 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
975 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
976 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
977 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
978 Return set_show_commands. Adjust callers.
979 * cli/cli-decode.c (add_setshow_cmd_full): Return
980 set_show_commands, remove result parameters, adjust callers.
981
248f7165
TV
9822021-05-27 Tom de Vries <tdevries@suse.de>
983
984 PR symtab/27919
985 * dwarf2/read.c (process_psymtab_comp_unit):
986
2152b4fd
TV
9872021-05-27 Tom de Vries <tdevries@suse.de>
988
989 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
990 error.
991
6dcd1193
TV
9922021-05-27 Tom de Vries <tdevries@suse.de>
993
994 PR symtab/27898
995 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
996 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
997 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
998 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
999 load_all_dies init.
1000 (dwarf2_per_cu_data): Remove load_all_dies field.
1001
11bb5c41
SM
10022021-05-26 Simon Marchi <simon.marchi@efficios.com>
1003
1004 * regcache.c (reg_buffer::reg_buffer): Default-initialize
1005 m_registers array.
1006
ef5f598c
TT
10072021-05-26 Tom Tromey <tom@tromey.com>
1008
1009 * dwarf2/read.c (allocate_type_unit_groups_table)
1010 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
1011 htab_delete_entry.
1012 (free_line_header_voidp): Remove.
1013 * completer.c
1014 (completion_tracker::completion_hash_entry::deleter): Remove.
1015 (completion_tracker::discard_completions): Use htab_delete_entry.
1016 * utils.h (htab_delete_entry): New template function.
1017
a56889ae
HD
10182021-05-24 Hannes Domani <ssbssa@yahoo.de>
1019
1020 * python/py-tui.c (tui_py_window::refresh_window):
1021 Avoid flickering.
1022
fbf3c4b9
TV
10232021-05-23 Tom de Vries <tdevries@suse.de>
1024
1025 PR tdep/27822
1026 * target.h (struct target_ops): Mention target_thread_architecture in
1027 read_description comment.
1028 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
1029 pid to determine if process is 64-bit or 32-bit.
1030 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1031 Same.
1032 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
1033 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
1034 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
1035 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
1036 Likewise, use pid to determine if kernel supports reading VFP
1037 registers.
1038
8569d6e1
PW
10392021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1040
1041 * main.c (enum cmdarg_kind): Fix option type comments for
1042 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
1043
778ae9cc
TV
10442021-05-21 Tom de Vries <tdevries@suse.de>
1045
1046 PR testsuite/25047
1047 * contrib/cc-with-tweaks.sh: Handle -l.
1048
6d1a09b7
TV
10492021-05-21 Tom de Vries <tdevries@suse.de>
1050
1051 PR breakpoint/27889
1052 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1053 objects. Call get_jiter_objfile_data with the_objfile.
1054
1487a14e
SM
10552021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1056
1057 * linespec.c (linespec_p): Remove. Replace all uses with
1058 "linespec *".
1059
bb6203bf
AH
10602021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1061 Pedro Alves <pedro@palves.net>
1062
1063 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
1064 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
1065 command_line_up instead of struct command_line.
1066 (build_command_line): Likewise.
1067 (get_command_line): Update the cmd function call parameter.
1068 (process_next_line): Use unique_ptr command_line_up instead
1069 of struct command_line.
1070 (recurse_read_control_structure): Change the the type of
1071 next to command_line_up.
1072 (read_command_lines_1): Change type of `next' to be
1073 command_line_up and update all references of `next'
1074 accordingly.
1075
ed3130b7
AH
10762021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1077
1078 * MAINTAINERS (Write After Approval): Add myself.
1079
5433e20e
JB
10802021-05-19 John Baldwin <jhb@FreeBSD.org>
1081
1082 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1083
a5523cc3
AH
10842021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1085
1086 * inflow.c (new_tty): Do not leak tty.
1087
cd53fa40
TT
10882021-05-17 Tom Tromey <tom@tromey.com>
1089
1090 * dwarf2/read.h: Update include.
1091 * dwarf2/read.c: Update include.
1092 * dwarf2/line-header.c: Update include.
1093 * dwarf2/cu.h: Update include.
1094 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1095 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1096 * Makefile.in (COMMON_SFILES): Update.
1097
347212b8
TT
10982021-05-17 Tom Tromey <tom@tromey.com>
1099
1100 * dwarf2/read.c (maybe_queue_comp_unit)
1101 (dwarf2_per_objfile::age_comp_units): Update.
1102 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1103 dwarf2_cu methods.
1104 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1105 add_dependence>: New methods.
1106 <m_dependencies>: Add "m_" prefix. Now private.
1107 <m_mark>: Add "m_" prefix.
1108 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1109 (dwarf2_mark_helper): New function.
1110 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1111
839118f9
TT
11122021-05-17 Tom Tromey <tom@tromey.com>
1113
1114 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1115 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1116 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1117 * dwarf2/cu.c: New file.
1118 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1119
8ae78a44
TT
11202021-05-17 Tom Tromey <tom@tromey.com>
1121
1122 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1123 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1124 Move to cu.h.
1125 * dwarf2/cu.h: New file.
1126
c1c0a7e1
AB
11272021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1128
1129 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1130 set brace-list-open to 0 for C and C++ modes.
1131
9e541c79
TT
11322021-05-17 Tom Tromey <tromey@adacore.com>
1133
1134 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1135 if frame is null.
1136
59173216
TT
11372021-05-17 Tom Tromey <tromey@adacore.com>
1138
1139 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1140 (group_from_gid): Subtract one from strncpy length.
1141
baea2f9d
TT
11422021-05-17 Tom Tromey <tromey@adacore.com>
1143
1144 * source.c (add_path): Check 'p' before using 'p[-1]'.
1145
473ab964
TT
11462021-05-17 Tom Tromey <tromey@adacore.com>
1147
1148 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1149 (dwarf2_per_cu_data_up): New typedef.
1150 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1151 <all_comp_units>: Use dwarf2_per_cu_data_up.
1152 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1153 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1154 (create_cu_from_index_list): Likewise.
1155 (create_signatured_type_table_from_index)
1156 (create_cus_from_debug_names_list, add_type_unit)
1157 (read_comp_units_from_section): Update.
1158 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1159 (run_test): Update.
1160
16e0020b
TT
11612021-05-17 Tom Tromey <tom@tromey.com>
1162
1163 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1164 (sort_tu_by_abbrev_offset): Remove.
1165 (build_type_psymtabs): Update.
1166
91e159e9
SM
11672021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * py-project.toml: New.
1170 * gdb-gdb.py.in: Re-format.
1171
034dce7a
SM
11722021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1173
1174 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1175 New, use it.
1176 * command.h (cmd_func_p): Remove.
1177 * cli/cli-decode.c (cmd_func_p): Remove.
1178
1be99b11
SM
11792021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1180
1181 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1182
99858724
SM
11832021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1184
1185 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1186 to...
1187 <alias_target>: ... this.
1188 (add_alias_cmd): Rename old to target.
1189 (add_info_alias): Rename old_name to target_name.
1190 (add_com_alias): Likewise.
1191
14b42fc4
SM
11922021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1193
1194 * Rename "prefixlist" parameters to "subcommands" throughout.
1195 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1196 <subcommands>: ... this.
1197 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1198 (lookup_cmd_with_subcommands): ... this.
1199
ecd0a6b3
SM
12002021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1201
1202 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1203
413b49c2
SM
12042021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * cli/cli-decode.h (prefixname): Make const, move implementation
1207 to cli/cli-decode.c.
1208 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1209
ea11a98d
WP
12102021-05-16 Weimin Pan <weimin.pan@oracle.com>
1211
1212 * ctfread.c (new_symbol): Set function address.
1213 (read_func_kind_type): Remove incorrect type name setting.
1214 Don't copy name returned from ctf_type_ame_raw throughout file.
1215
887e7158
TT
12162021-05-14 Tom Tromey <tom@tromey.com>
1217
1218 * rust-lang.c (rust_language::val_print_struct)
1219 (rust_language::print_enum): Use common_val_print, not
1220 value_print_inner.
1221
55789354
TBA
12222021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1223
1224 * python/py-inferior.c (infpy_get_connection_num): New function.
1225 (inferior_object_getset): Add a new element for 'connection_num'.
1226 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1227
2f63ec5c
AB
12282021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1229
1230 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1231 argument type, update and re-wrap, header comment.
1232 (remote_target::commit_resumed): Convert any_process_wildcard and
1233 may_global_wildcard_vcont from int to bool.
1234
ecf25064
KC
12352021-05-14 Kent Cheung <kent.cheung@arm.com>
1236
1237 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1238 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1239 just before printing child values.
1240 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1241 printing string representation.
1242 * python/py-prettyprint.c (print_children): Check max_depth just
1243 before printing child values.
1244 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1245 printing string representation.
1246
df68e12b
MF
12472021-05-14 Mike Frysinger <vapier@gentoo.org>
1248
1249 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1250 sim/callback.h & sim/sim.h.
1251
183aaaf7
MF
12522021-05-13 Mike Frysinger <vapier@gentoo.org>
1253
1254 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1255 sim-regno.h include.
1256
737358ba
SM
12572021-05-13 Simon Marchi <simon.marchi@efficios.com>
1258
1259 * inf-child.h (inf_child_target) <follow_exec>: New.
1260 * inf-child.c (inf_child_target::follow_exec): New.
1261
294c36eb
SM
12622021-05-13 Simon Marchi <simon.marchi@efficios.com>
1263
1264 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1265 parameter.
1266 (target_follow_exec): Likewise.
1267 * target.c (target_follow_exec): Add ptid_t parameter.
1268 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1269 don't push target nor create thread.
1270 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1271 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1272 (thread_db_target::follow_exec): New.
1273 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1274 (remote_target::follow_exec): Call
1275 process_stratum_target::follow_exec.
1276 * target-delegates.c: Re-generate.
1277
2af87c85
SM
12782021-05-13 Simon Marchi <simon.marchi@efficios.com>
1279
1280 * infrun.c (follow_exec): Call target_follow_fork when
1281 follow-exec-mode is same.
1282 * target.h (target_follow_fork): Improve doc.
1283
0b2256f7
SM
12842021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1285
1286 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1287 Remove.
1288 * cli/cli-setshow.c (do_show_command): Adjust.
1289
0746f49b
LM
12902021-05-13 Luis Machado <luis.machado@linaro.org>
1291
1292 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1293 include the last address in the range.
1294
4b8cb9dd
SM
12952021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * python/python-internal.h (gdbpy_parse_command_name): Return
1298 gdb::unique_xmalloc_ptr.
1299 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1300 (cmdpy_init): Adjust.
1301 * python/py-param.c (parmpy_init): Adjust.
1302 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1303 when done.
1304
ee35ce82
GB
13052021-05-12 George Barrett <bob@bob131.so>
1306
1307 * NEWS (Guile API): Note the addition of the new procedure.
1308 * guile/scm-value.c (gdbscm_value_const_value): Add
1309 implementation of value-const-value procedure.
1310 (value_functions): Add value-const-value procedure.
1311
9d4fc61d
GB
13122021-05-12 George Barrett <bob@bob131.so>
1313
1314 * NEWS (Guile API): Note the addition of new procedures.
1315 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1316 for reference value creation.
1317 (gdbscm_value_reference_value): Add implementation of
1318 value-reference-value procedure.
1319 (gdbscm_value_rvalue_reference_value): Add implementation of
1320 value-rvalue-reference-value procedure.
1321 (value_functions): Add value-reference-value procedure. Add
1322 value-rvalue-reference-value procedure.
1323
97cef6b7
GB
13242021-05-12 George Barrett <bob@bob131.so>
1325
1326 * guile/scm-type.c (type_integer_constants): Add binding for
1327 TYPE_CODE_RVALUE_REF.
1328 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1329 dereferencing of rvalue references.
1330 * NEWS (Guile API): Note improvements in rvalue reference support.
1331
d51344c9
MM
13322021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1333
1334 * btrace.c (handle_pt_insn_events): Ignore status update enable
1335 events.
1336
f2a883a8
SM
13372021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1340 indentation.
1341
64f30eb0
SM
13422021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1343
1344 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1345
db1f6cd6
LS
13462021-05-10 Lancelot Six <lsix@lancelotsix.com>
1347
1348 PR gdb/27614
1349 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1350 argument.
1351
31aceaef
SM
13522021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1353
1354 * nat/linux-waitpid.c (status_to_str): Show signal name.
1355
75140e3b
AB
13562021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * python/py-breakpoint.c (pybp_debug): New static global.
1359 (show_pybp_debug): New function.
1360 (pybp_debug_printf): Define.
1361 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1362 (gdbpy_breakpoint_created): Add some debugging.
1363 (gdbpy_breakpoint_deleted): Likewise.
1364 (gdbpy_breakpoint_modified): Likewise.
1365 (_initialize_py_breakpoint): New function.
1366
1ef40c13
AB
13672021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * python/py-unwind.c (pyuw_debug): Convert to bool.
1370 (show_pyuw_debug): New function.
1371 (pyuw_debug_printf): Define.
1372 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1373 (pyuw_this_id): Convert to new debug print macros.
1374 (pyuw_prev_register): Likewise.
1375 (pyuw_sniffer): Likewise.
1376 (pyuw_dealloc_cache): Likewise.
1377 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1378 show function when registering.
1379
927c4e35
AB
13802021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * dummy-frame.c (fprint_dummy_frames): Convert use of
1383 fprint_frame_id to use frame_id::to_string.
1384 * frame.c (fprint_field): Delete.
1385 (fprint_frame_id): Moved to...
1386 (frame_id::to_string): ...this, rewritten to return a string.
1387 (fprint_frame): Convert use of fprint_frame_id to use
1388 frame_id::to_string.
1389 (compute_frame_id): Likewise.
1390 (frame_id_p): Likewise.
1391 (frame_id_eq): Likewise.
1392 (frame_id_inner): Likewise.
1393 * frame.h (struct frame_id) <to_string>: New member function.
1394 (fprint_frame_id): Delete declaration.
1395 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1396 fprint_frame_id to use frame_id::to_string.
1397 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1398 * python/py-unwind.c (unwind_infopy_str): Likewise.
1399 (pyuw_this_id): Likewise.
1400
8d06918f
SM
14012021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * nat/linux-waitpid.c (status_to_str): Return std::string.
1404 * nat/linux-waitpid.h (status_to_str): Likewise.
1405 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1406 (linux_nat_target::attach): Adjust.
1407 (linux_handle_extended_wait): Adjust.
1408 (wait_lwp): Adjust.
1409 (stop_wait_callback): Adjust.
1410 (linux_nat_filter_event): Adjust.
1411 (linux_nat_wait_1): Adjust.
1412 * nat/linux-waitpid.c (status_to_str): Adjust.
1413 * nat/linux-waitpid.h (status_to_str): Adjust.
1414
550e9289
SM
14152021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1416
1417 * infrun.h (infrun_debug_printf): Add missing space.
1418
4655f850
PA
14192021-05-08 Pedro Alves <pedro@palves.net>
1420
1421 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1422 Remove references to HAVE_PERSONALITY.
1423 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1424 (maybe_disable_address_space_randomization)
1425 (~maybe_disable_address_space_randomizatio): Remove references to
1426 HAVE_PERSONALITY.
1427 * config.in, configure: Regenerate.
1428
1845e254
AB
14292021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1432 include.
1433 (source_script_with_search): Perform tilde expansion.
1434
91e3c425
SM
14352021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1436
1437 * target-descriptions.c (struct target_desc_info) <filename>:
1438 Make std::string.
1439 (copy_inferior_target_desc_info): Adjust.
1440 (target_desc_info_free): Adjust.
1441 (target_find_description): Adjust.
1442 (set_tdesc_filename_cmd): Adjust.
1443 (show_tdesc_filename_cmd): Adjust.
1444 (unset_tdesc_filename_cmd): Adjust.
1445 (maint_print_c_tdesc_cmd): Adjust.
1446
0b2f7ade
SM
14472021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1448
1449 * target-descriptions.c (struct target_desc_info): Initialize
1450 fields.
1451 (get_tdesc_info): Use new.
1452 (target_desc_info_free): Use delete.
1453
820c4490
SM
14542021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1455
1456 * target-descriptions.c (struct target_desc_info) <fetched>:
1457 bool.
1458 (target_find_description): Adjust.
1459 (target_clear_description): Adjust.
1460
c2962e6a
SM
14612021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1462
1463 * target-descriptions.c (struct target_desc_info) <tdesc>:
1464 Adjust doc.
1465 (target_desc_fetched): Remove.
1466 (current_target_desc): Remove.
1467 (target_description_filename): Remove.
1468 (target_find_description): Adjust.
1469 (target_clear_description): Adjust.
1470 (target_current_description): Adjust.
1471 (set_tdesc_filename_cmd): Adjust.
1472 (show_tdesc_filename_cmd): Adjust.
1473 (unset_tdesc_filename_cmd): Adjust.
1474 (maint_print_c_tdesc_cmd): Adjust.
1475 (maint_print_xml_tdesc_cmd): Adjust.
1476
8a82de58
AB
14772021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1478
1479 * infcmd.c (notice_new_inferior): Change parameter type.
1480 * inferior.h (notice_new_inferior): Change parameter type.
1481 * remote.c (remote_notice_new_inferior): Change parameter type to
1482 bool. Also update type of local variable to bool.
1483 (remote_target::update_thread_list): Change type of local variable
1484 to bool.
1485 (remote_target::process_stop_reply): Pass bool instead of int to
1486 remote_notice_new_inferior.
1487
bedc4734
SM
14882021-05-07 Simon Marchi <simon.marchi@efficios.com>
1489
1490 * target.c (target_stack::unpush): Call target_ops::find_beneath
1491 to get the target beneath `t`.
1492
27f0a431
SM
14932021-05-07 Simon Marchi <simon.marchi@efficios.com>
1494
1495 * target.c (target_close): Check in all inferiors that the
1496 target is not pushed.
1497
1d1669e4
AM
14982021-05-07 Aaron Merey <amerey@redhat.com>
1499
1500 * debuginfod-support.c (debuginfod_init): Remove.
1501 (get_debuginfod_client): New function.
1502
2698f5ea
TT
15032021-05-07 Tom Tromey <tom@tromey.com>
1504
1505 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1506 * utils.c (streq_hash): Remove.
1507 * utils.h (streq_hash): Don't declare.
1508 * completer.c (completion_tracker::discard_completions): Update
1509 comment.
1510 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1511
13123da8
SM
15122021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1513
1514 * Re-format all Python files using black.
1515
9589edb8
AB
15162021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1517
1518 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1519 function return type.
1520 * guile/guile.c (gdbscm_source_script): Update to handle change in
1521 gdbscm_safe_source_script.
1522 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1523 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1524 type.
1525
ec66d6ea
SM
15262021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * inferior.h (class inferior) <args>: Change type to
1529 unique_xmalloc_ptr.
1530 * inferior.c (inferior::~inferior): Don't free args.
1531 * infcmd.c (get_inferior_args): Adjust.
1532 (set_inferior_args): Adjust.
1533
0618ecf6
AB
15342021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1535
1536 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1537 breakpoint locations when the breakpoint actually has a location.
1538
79aabb73
TBA
15392021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1540
1541 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1542 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1543 mi_cmd_break_condition.
1544 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1545 * breakpoint.h (set_breakpoint_condition): Declare a new
1546 overload.
1547 * breakpoint.c (set_breakpoint_condition): New overloaded function
1548 extracted out from ...
1549 (condition_command): ... this.
1550 * NEWS: Mention the change.
1551
10e578d7
TBA
15522021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1553
1554 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1555 '--force-condition' flag to force the condition in the
1556 '-break-insert' and '-dprintf-insert' commands.
1557 * NEWS: Mention the change.
1558
225bda24
TV
15592021-05-04 Tom de Vries <tdevries@suse.de>
1560
1561 PR guile/27806
1562 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1563 memory functions.
1564
b8efb248
TT
15652021-04-30 Tom Tromey <tom@tromey.com>
1566
1567 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1568 (add_signatured_type_cu_to_table): Remove.
1569 (create_debug_type_hash_table): Assume dwo_file is non-null.
1570 (create_debug_types_hash_table): Update comment.
1571 (create_all_type_units): Remove.
1572 (sort_tu_by_abbrev_offset): Update comment.
1573 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1574 (build_type_psymtabs): Remove.
1575 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1576 Update.
1577 (read_comp_units_from_section): Add types_htab, section_kind
1578 parameters.
1579 (create_all_comp_units): Read type units.
1580
91eea9cc
TT
15812021-04-30 Tom Tromey <tom@tromey.com>
1582
1583 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1584 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1585 <get_cu>: Now inline.
1586 <all_type_units>: Remove.
1587 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1588 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1589 (dwarf2_per_bfd::get_tu): Remove.
1590 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1591 (create_signatured_type_table_from_index)
1592 (create_signatured_type_table_from_debug_names)
1593 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1594 (dwarf2_base_index_functions::expand_all_symtabs)
1595 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1596 (dwarf2_base_index_functions::map_symbol_filenames)
1597 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1598 (add_signatured_type_cu_to_table, create_all_type_units)
1599 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1600 (create_all_comp_units): Update.
1601 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1602 (write_debug_names): Update.
1603
0d305d5c
TT
16042021-04-30 Tom Tromey <tom@tromey.com>
1605
1606 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1607 allocate_signatured_type>: Change return type.
1608 <all_comp_units, all_type_units>: Hold unique pointers.
1609 (struct dwarf2_per_cu_data): Add constructor and initializers.
1610 (struct signatured_type): Derive from dwarf2_per_cu_data.
1611 * dwarf2/read.c (type_unit_group): Derive from
1612 dwarf2_per_cu_data.
1613 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1614 (dwarf2_per_bfd::get_tu)
1615 (dwarf2_per_bfd::allocate_signatured_type)
1616 (dwarf2_per_bfd::allocate_signatured_type)
1617 (create_cu_from_index_list, create_cus_from_index_list)
1618 (create_signatured_type_table_from_index)
1619 (create_signatured_type_table_from_debug_names)
1620 (create_addrmap_from_aranges)
1621 (dwarf2_base_index_functions::find_last_source_symtab)
1622 (dw_expand_symtabs_matching_file_matcher)
1623 (dwarf2_gdb_index::expand_symtabs_matching)
1624 (dwarf2_base_index_functions::map_symbol_filenames)
1625 (create_cus_from_debug_names_list)
1626 (dw2_debug_names_iterator::next)
1627 (dwarf2_debug_names_index::expand_symtabs_matching)
1628 (create_debug_type_hash_table, add_type_unit)
1629 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1630 Update.
1631 (allocate_type_unit_groups_table): Use delete.
1632 (create_type_unit_group): Change return type. Use new.
1633 (get_type_unit_group, build_type_psymtabs_1)
1634 (build_type_psymtab_dependencies)
1635 (process_skeletonless_type_unit, set_partial_user)
1636 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1637 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1638 (read_signatured_type): Update.
1639 (dwarf2_find_containing_comp_unit): Change type of
1640 'all_comp_units'.
1641 (run_test): Update.
1642 (dwarf2_per_bfd::allocate_per_cu)
1643 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1644 Use new.
1645 (add_signatured_type_cu_to_table): Update.
1646 * dwarf2/index-write.c (write_one_signatured_type)
1647 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1648 (write_debug_names): Update.
1649
1bee48c7
TT
16502021-04-30 Tom Tromey <tromey@adacore.com>
1651
1652 * nat/windows-nat.h (get_image_name): Don't declare.
1653 * nat/windows-nat.c (get_image_name): Now static.
1654
e228ef97
TT
16552021-04-30 Tom Tromey <tromey@adacore.com>
1656
1657 * windows-nat.c (windows_nat::handle_load_dll): Update.
1658 (windows_nat_target::get_windows_debug_event): Call
1659 dll_loaded_event.
1660 (windows_add_all_dlls, windows_add_dll): Move to
1661 nat/windows-nat.c.
1662 * nat/windows-nat.h (handle_load_dll): Change parameters.
1663 (dll_loaded_event, windows_add_all_dlls): Declare.
1664 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1665 from windows-nat.c.
1666 (dll_loaded_event): New function.
1667
de071872
TT
16682021-04-30 Tom Tromey <tromey@adacore.com>
1669
1670 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1671 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1672 Declare.
1673 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1674 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1675
9e439f00
TT
16762021-04-30 Tom Tromey <tromey@adacore.com>
1677
1678 * windows-nat.c: Move code to nat/windows-nat.[ch].
1679 (_initialize_windows_nat): Call initialize_loadable.
1680 * nat/windows-nat.h (AdjustTokenPrivileges)
1681 (DebugActiveProcessStop, DebugBreakProcess)
1682 (DebugSetProcessKillOnExit, EnumProcessModules)
1683 (EnumProcessModulesEx, GetModuleInformation)
1684 (GetModuleFileNameExA, GetModuleFileNameExW)
1685 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1686 (GetCurrentConsoleFont, Wow64SuspendThread)
1687 (Wow64GetThreadContext, Wow64SetThreadContext)
1688 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1689 (AdjustTokenPrivileges_ftype)
1690 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1691 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1692 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1693 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1694 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1695 (GetConsoleFontSize_ftype)
1696 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1697 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1698 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1699 (initialize_loadable): Declare.
1700 * nat/windows-nat.c (AdjustTokenPrivileges)
1701 (DebugActiveProcessStop, DebugBreakProcess)
1702 (DebugSetProcessKillOnExit, EnumProcessModules)
1703 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1704 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1705 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1706 (Wow64GetThreadContext, Wow64SetThreadContext)
1707 (Wow64GetThreadSelectorEntry): Define.
1708 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1709 from windows-nat.c.
1710 (initialize_loadable): Likewise, and rename.
1711
1053c638
TT
17122021-04-30 Tom Tromey <tromey@adacore.com>
1713
1714 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1715 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1716 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1717 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1718 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1719 (bad): New template functions.
1720 (_initialize_loadable): Update.
1721
2869ac4b
TT
17222021-04-30 Tom Tromey <tromey@adacore.com>
1723
1724 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1725
e197dfae
SM
17262021-04-29 Simon Marchi <simon.marchi@efficios.com>
1727
1728 * auto-load.h: Split namespace declaration.
1729
89ba430c
SM
17302021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1731
1732 * infrun.c (save_waitstatus): Move variables to inner scope.
1733
8eb82ba1
AB
17342021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1735
1736 * NEWS: Fix typo and stray full stop.
1737
db2534b7
TT
17382021-04-28 Tom Tromey <tromey@adacore.com>
1739
1740 * ada-exp.y (primary): Use new type for null pointer.
1741 * ada-lang.c (ada_type_match): Remove "may_deref"
1742 parameter. Handle null pointer.
1743 (ada_args_match): Update.
1744 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1745 Handle null pointer.
1746
edeaceda
AB
17472021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * NEWS: Mention new commands.
1750 * python/python.c (python_ignore_environment): New static global.
1751 (show_python_ignore_environment): New function.
1752 (set_python_ignore_environment): New function.
1753 (python_dont_write_bytecode): New static global.
1754 (show_python_dont_write_bytecode): New function.
1755 (set_python_dont_write_bytecode): New function.
1756 (_initialize_python): Register new commands.
1757
041ca48e
AB
17582021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * extension-priv.h (struct extension_language_ops): Rename
1761 'finish_initialization' to 'initialize'.
1762 * extension.c (finish_ext_lang_initialization): Renamed to...
1763 (ext_lang_initialization): ...this, update comment, and updated
1764 the calls to reflect the change in struct extension_language_ops.
1765 * extension.h (finish_ext_lang_initialization): Renamed to...
1766 (ext_lang_initialization): ...this.
1767 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1768 (gdbscm_initialize): ...this, update comment at definition.
1769 (guile_extension_ops): Update.
1770 * main.c (captured_main_1): Update call to
1771 finish_ext_lang_initialization.
1772 * python/python.c (gdbpy_finish_initialization): Rename to...
1773 (gdbpy_initialize): ...this, update comment at definition, and
1774 update call to do_finish_initialization.
1775 (python_extension_ops): Update.
1776 (do_finish_initialization): Rename to...
1777 (do_initialize): ...this, and update comment.
1778
1178f01a
AB
17792021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * main.c (captured_main_1): Add a call to
1782 finish_ext_lang_initialization.
1783 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1784
880ae75a
AB
17852021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1786
1787 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1788 (gdbscm_finish_initialization): Add code moved from
1789 _initialize_guile.
1790 (_initialize_guile): Move code to gdbscm_finish_initialization.
1791 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1792 _initialize_scm_arch.
1793 (_initialize_scm_arch): New function.
1794 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1795 into _initialize_scm_block.
1796 (_initialize_scm_block): New function.
1797 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1798 into _initialize_scm_frame.
1799 (_initialize_scm_frame): New function.
1800 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1801 into _initialize_scm_objfile.
1802 (_initialize_scm_objfile): New function.
1803 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1804 code into _initialize_scm_progspace.
1805 (_initialize_scm_progspace): New function.
1806 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1807 into _initialize_scm_symbol.
1808 (_initialize_scm_symbol): New function.
1809 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1810 into _initialize_scm_symtab.
1811 (_initialize_scm_symtab): New function.
1812 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1813 _initialize_scm_type.
1814 (_initialize_scm_type): New function.
1815
8e3685bf
AB
18162021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * python/py-arch.c (_initialize_py_arch): New function.
1819 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1820 * python/py-block.c (_initialize_py_block): New function.
1821 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1822 * python/py-inferior.c (_initialize_py_inferior): New function.
1823 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1824 * python/py-objfile.c (_initialize_py_objfile): New function.
1825 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1826 * python/py-progspace.c (_initialize_py_progspace): New function.
1827 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1828 * python/py-registers.c (_initialize_py_registers): New function.
1829 (gdbpy_initialize_registers): Move code to
1830 _initialize_py_registers.
1831 * python/py-symbol.c (_initialize_py_symbol): New function.
1832 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1833 * python/py-symtab.c (_initialize_py_symtab): New function.
1834 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1835 * python/py-type.c (_initialize_py_type): New function.
1836 (gdbpy_initialize_types): Move code to _initialize_py_type.
1837 * python/py-unwind.c (_initialize_py_unwind): New function.
1838 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1839 * python/python.c (_initialize_python): Move call to
1840 do_start_initialization to gdbpy_finish_initialization.
1841 (gdbpy_finish_initialization): Add call to
1842 do_start_initialization.
1843
913832e9
AB
18442021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1845
1846 * extension.c (struct scoped_default_signal): New struct.
1847 (scoped_default_sigint): New typedef.
1848 (finish_ext_lang_initialization): Make use of
1849 scoped_default_sigint.
1850
a3b5ef3e
AB
18512021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 * main.c (captured_main_1): Don't pass argument to gdb_init.
1854 * top.c (gdb_init): Remove unused argument, and add header
1855 comment.
1856 * top.h (gdb_init): Remove argument.
1857
b9f90c72
LM
18582021-04-27 Luis Machado <luis.machado@linaro.org>
1859
1860 * psymtab.c (psymbol_functions::dump): Output newline.
1861 Remove wrap.
1862 * symmisc.c (dump_objfile): Likewise.
1863
2c473def
MW
18642021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1865 Simon Marchi <simon.marchi@polymtl.ca>
1866
1867 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1868 when attaching the 'auto_load_new_objfile' observer, so
1869 other observers can specify it as a dependency.
1870 * gdb/auto-load.h (struct token): Declare
1871 'auto_load_new_objfile_observer_token' as token to be used
1872 for the 'auto_load_new_objfile' observer.
1873 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1874 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1875 observer, so it gets notified after the latter.
1876
9a6e099f
MW
18772021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1878 Simon Marchi <simon.marchi@polymtl.ca>
1879
1880 * unittests/observable-selftests.c (dependency_test_counters):
1881 New.
1882 (observer_token0, observer_token1, observer_token2,
1883 observer_token3, observer_token4, observer_token5): New.
1884 (struct dependency_observer_data): New struct.
1885 (observer_dependency_test_callback): New function.
1886 (test_observers): New.
1887 (run_dependency_test): New function.
1888 (test_dependency): New.
1889 (_initialize_observer_selftest): Register dependency test.
1890
bea3329b
SM
18912021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1892
1893 PR gdb/27773
1894 * cli/cli-dump.c (dump_binary_file): Check result of
1895 gdb_fopen_cloexec.
1896
c290cb01
ST
18972021-04-25 Sergei Trofimovich <siarheit@google.com>
1898
1899 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1900 by passing `process_stratum_target*` parameter.
1901
fbb46296
LS
19022021-04-25 Lancelot Six <lsix@lancelotsix.com>
1903
1904 PR gdb/22640
1905 * typeprint.h (struct type_print_options): Add print_in_hex
1906 flag.
1907 (struct print_offset_data): Add print_in_hex flag, add a
1908 constructor accepting a type_print_options* argument.
1909 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1910 default value for print_in_hex.
1911 (print_offset_data::indentation): Allow more horizontal space.
1912 (print_offset_data::print_offset_data): Add ctor.
1913 (print_offset_data::maybe_print_hole, print_offset_data::update):
1914 Handle the print_in_hex flag.
1915 (whatis_exp): Handle 'x' and 'd' flags.
1916 (print_offsets_and_sizes_in_hex): Declare.
1917 (set_print_offsets_and_sizes_in_hex): Create.
1918 (show_print_offsets_and_sizes_in_hex): Create.
1919 (_initialize_typeprint): Update help message for the ptype
1920 command, register the 'set print type hex' and 'show print type
1921 hex' commands.
1922 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1923 (c_type_print_base): Construct the print_offset_data
1924 object using the type_print_optons parameter.
1925 * rust-lang.c (rust_language::print_type): Construct the
1926 print_offset_data object using the type_print_optons parameter.
1927 * NEWS: Mention the new flags of the ptype command.
1928
18bbba46
LS
19292021-04-25 Lancelot Six <lsix@lancelotsix.com>
1930
1931 * typeprint.h (struct type_print_options): Move before
1932 print_offset_data.
1933
77393c9b
JB
19342021-04-25 Joel Brobecker <brobecker@adacore.com>
1935
1936 GDB 10.2 released.
1937
98c897e3
SM
19382021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1939
1940 * observable.c (observer_debug): Change to bool.
1941
9fc29955
AB
19422021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1943
1944 * dwarf2/read.c: Add 'unordered_set' include.
1945 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1946 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1947 of per_Bfd->filenames_cache cache, and use function local
1948 filenames_cache instead. Reindent.
1949 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1950
0406545d
SM
19512021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * breakpoint.c (iterate_over_bp_locations): Change callback to
1954 function view, remove data parameter.
1955 * breakpoint.h (iterate_over_bp_locations): Likewise.
1956 * record-full.c (record_full_sync_record_breakpoints): Remove
1957 data parameter.
1958
432ce4cf
TT
19592021-04-22 Tom Tromey <tom@tromey.com>
1960
1961 * c-typeprint.c (c_type_print_base_struct_union): Use
1962 print_spaces_filtered_with_print_options.
1963
e25d6d93
SM
19642021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 PR gdb/27757
1967 * python/py-type.c (typy_range): Check that bounds are constant
1968 before accessing them as such.
1969 * guile/scm-type.c (gdbscm_type_range): Likewise.
1970
4efeb0d3
TBA
19712021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1972
1973 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1974 * inferior.c (inferior::add_continuation): New method, adapted
1975 from 'add_inferior_continuation'.
1976 (inferior::do_all_continuations): New method, adapted from
1977 'do_all_inferior_continuations'.
1978 (inferior::~inferior): Clear the list of continuations directly.
1979 * inferior.h (class inferior) <continuations>: Rename into...
1980 <m_continuations>: ...this and make private.
1981 * continuations.c: Remove.
1982 * continuations.h: Remove.
1983 * event-top.c: Don't include "continuations.h".
1984
1985 Update the users below.
1986 * inf-loop.c (inferior_event_handler)
1987 * infcmd.c (attach_command)
1988 (notice_new_inferior): Update.
1989
c4c493de
TBA
19902021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1991
1992 * inferior.h (class inferior) <continuations>: Change the type
1993 to be an std::list of std::function's.
1994 Update the references and uses below.
1995 * continuations.c (struct continuation): Delete.
1996 (make_continuation): Delete.
1997 (do_my_continuations_1): Delete.
1998 (do_my_continuations): Delete.
1999 (discard_my_continuations_1): Delete.
2000 (discard_my_continuations): Delete.
2001 (add_inferior_continuation): Update.
2002 (do_all_inferior_continuations): Update.
2003 (discard_all_inferior_continuations): Update.
2004 * continuations.h (add_inferior_continuation): Update to take
2005 an std::function as the parameter.
2006 * infcmd.c (struct attach_command_continuation_args): Delete.
2007 (attach_command_continuation): Delete.
2008 (attach_command_continuation_free_args): Delete.
2009 (attach_command): Update.
2010 (notice_new_inferior): Update.
2011
1194676e
TBA
20122021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2013
2014 * continuations.h: Update the general comment.
2015 * inferior.h (class inferior) <continuations>: Update the comment.
2016 * interps.c: Do not include "continuations.h".
2017
35682f0a
TBA
20182021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2019
2020 * continuations.h (do_all_inferior_continuations): Remove the 'err'
2021 parameter. Update the references below.
2022 * continuations.c (do_my_continuations_1)
2023 (do_my_continuations)
2024 (do_all_inferior_continuations): Update.
2025 * inf-loop.c (inferior_event_handler): Update.
2026 * infcmd.c (attach_command_continuation): Update.
2027
6fee5eee
TBA
20282021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2029
2030 * infcmd.c (attach_post_wait): Update the function comment.
2031
27d0790a
TBA
20322021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2033
2034 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
2035 Update the references below.
2036 (struct attach_command_continuation_args)
2037 (attach_command_continuation)
2038 (attach_command_continuation_free_args)
2039 (attach_command)
2040 (notice_new_inferior): Update to remove the reference to 'args'.
2041
c39ebbf4
TV
20422021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2043 Tom de Vries <tdevries@suse.de>
2044
2045 PR remote/27710
2046 * remote.c (remote_target_is_non_stop_p): New function.
2047 * remote.h (remote_target_is_non_stop_p): Declare.
2048 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2049 to check non-stopness using notif_state->remote rather current target.
2050
22f80c0f
TT
20512021-04-22 Tom Tromey <tom@tromey.com>
2052
2053 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2054 (struct typed_val_int) <val>: Now ULONGEST.
2055 (rust_parser::parse_array_type): Remove negative check.
2056 (rust_lex_int_test): Change 'value' to ULONGEST.
2057
05f3c0f0
AB
20582021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
2059
2060 * arch-utils.c (default_addressable_memory_unit_size): Return a
2061 value based on bfd's bits per byte.
2062
7e7a35fb
TT
20632021-04-21 Tom Tromey <tom@tromey.com>
2064
2065 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2066 unsigned char.
2067 (struct dwarf2_per_cu_data): Rearrange.
2068 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2069 unsigned char.
2070 (struct comp_unit_head): Rearrange.
2071 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
2072
ff507520
TV
20732021-04-21 Tom de Vries <tdevries@suse.de>
2074
2075 PR build/27681
2076 * configure.ac: Remove --without-included-regex/--with-included-regex.
2077 * config.in: Regenerate.
2078 * configure: Regenerate.
2079 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2080
10a636cc
TBA
20812021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2082
2083 * breakpoint.h (create_breakpoint): Add a new parameter,
2084 'force_condition'.
2085 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2086 argument when 'parse_extra' is false to check if the condition
2087 is invalid at all of the breakpoint locations.
2088 Update the users below.
2089 (break_command_1)
2090 (dprintf_command)
2091 (trace_command)
2092 (ftrace_command)
2093 (strace_command)
2094 (create_tracepoint_from_upload): Update.
2095 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2096 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2097 * python/py-breakpoint.c (bppy_init): Update.
2098 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2099
85c88e2a
TBA
21002021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2101
2102 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2103 disabled-by-condition locations on MI-like output.
2104 (breakpoint_1): Do not display the disabled-by-condition footnote
2105 if the output is MI-like.
2106
fd34472c
FC
21072021-04-21 Frederic Cambus <fred@statdns.com>
2108
2109 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2110 update year range in generated copyright notices.
2111
184dcd81
FW
21122021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2113
2114 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2115 qualifier_seq_noopt.
2116
525174e8
FW
21172021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2118
2119 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2120
f5dc2ee3
AB
21212021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2122
2123 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2124 (producer_is_icc): Replace use of std::regex with gdb's
2125 compiled_regex.
2126
42c2c694
TT
21272021-04-17 Tom Tromey <tom@tromey.com>
2128
2129 PR gdb/23743:
2130 * dwarf2/read.c (class offset_view): New.
2131 (struct symbol_table_slot): Remove.
2132 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2133 <symbol_name_index, symbol_vec_index>: New methods.
2134 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2135 Rewrite.
2136 (read_gdb_index_from_buffer): Update.
2137 (struct dw2_symtab_iterator) <vec>: Change type.
2138 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2139 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2140 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2141 <append_array, append_offset>: New methods.
2142 (write_hash_table, add_address_entry, write_gdbindex_1)
2143 (write_debug_names): Update.
2144 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2145
da314dd3
TT
21462021-04-17 Tom Tromey <tom@tromey.com>
2147
2148 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2149 partial_symtabs.
2150
0b7b2c2a
TT
21512021-04-17 Tom Tromey <tom@tromey.com>
2152
2153 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2154 from map_matching_symbols. Change parameters.
2155 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2156 Rename from map_matching_symbols. Change parameters.
2157 * dwarf2/read.c (struct dwarf2_gdb_index)
2158 <expand_matching_symbols>: Rename from map_matching_symbols.
2159 Change parameters.
2160 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2161 Rename from map_matching_symbols. Change parameters.
2162 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2163 dw2_map_matching_symbols. Change parameters.
2164 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2165 implementation.
2166 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2167 map_matching_symbols. Change parameters.
2168 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2169 from map_matching_symbols. Change parameters.
2170 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2171 map_matching_symbols. Change parameters.
2172 * ada-lang.c (map_matching_symbols): New function.
2173 (add_nonlocal_symbols): Update.
2174
90160b57
TT
21752021-04-17 Tom Tromey <tom@tromey.com>
2176
2177 * quick-symbol.h (struct quick_symbol_functions)
2178 <expand_symtabs_with_fullname>: Remove.
2179 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2180 Remove.
2181 * psympriv.h (struct psymbol_functions)
2182 <expand_symtabs_with_fullname>: Remove.
2183 * dwarf2/read.c (struct dwarf2_base_index_functions)
2184 <expand_symtabs_with_fullname>: Remove.
2185 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2186 Remove.
2187 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2188 Update comment.
2189 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2190 Rewrite.
2191
7089bd88
TT
21922021-04-17 Tom Tromey <tom@tromey.com>
2193
2194 * symfile-debug.c (objfile::expand_symtabs_for_function):
2195 Rewrite.
2196 * quick-symbol.h (struct quick_symbol_functions)
2197 <expand_symtabs_for_function>: Remove.
2198 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2199 Remove.
2200 * psympriv.h (struct psymbol_functions)
2201 <expand_symtabs_for_function>: Remove.
2202 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2203 Update comment.
2204 * dwarf2/read.c (struct dwarf2_gdb_index)
2205 <expand_symtabs_for_function>: Remove.
2206 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2207 Remove.
2208 (find_slot_in_mapped_hash): Remove.
2209 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2210 (dw2_symtab_iter_init): Remove one overload.
2211 (dwarf2_gdb_index::expand_symtabs_for_function)
2212 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2213
536a40f3
TT
22142021-04-17 Tom Tromey <tom@tromey.com>
2215
2216 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2217 Rewrite.
2218 * quick-symbol.h (struct quick_symbol_functions)
2219 <map_symtabs_matching_filename>: Remove.
2220 * psymtab.c (partial_map_expand_apply)
2221 (psymbol_functions::map_symtabs_matching_filename): Remove.
2222 * psympriv.h (struct psymbol_functions)
2223 <map_symtabs_matching_filename>: Remove.
2224 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2225 Update comment.
2226 * dwarf2/read.c (struct dwarf2_base_index_functions)
2227 <map_symtabs_matching_filename>: Remove.
2228 (dw2_map_expand_apply)
2229 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2230 Remove.
2231
84d865e3
TT
22322021-04-17 Tom Tromey <tom@tromey.com>
2233
2234 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2235 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2236 Remove.
2237 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2238 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2239 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2240 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2241 Remove.
2242 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2243 (dwarf2_gdb_index::lookup_symbol)
2244 (dwarf2_debug_names_index::lookup_symbol): Remove.
2245
3bfa51a7
TT
22462021-04-17 Tom Tromey <tom@tromey.com>
2247
2248 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2249 * symmisc.c (maintenance_expand_symtabs): Update.
2250 * symfile.c (expand_symtabs_matching): Update.
2251 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2252 parameter.
2253 * quick-symbol.h (struct quick_symbol_functions)
2254 <expand_symtabs_matching>: Add 'domain' parameter.
2255 * psymtab.c (recursively_search_psymtabs)
2256 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2257 parameter.
2258 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2259 Add 'domain' parameter.
2260 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2261 'domain' parameter.
2262 * linespec.c (iterate_over_all_matching_symtabs): Update.
2263 * dwarf2/read.c (struct dwarf2_gdb_index)
2264 <expand_symtabs_matching>: Add 'domain' parameter.
2265 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2266 'domain' parameter.
2267 (dw2_expand_symtabs_matching)
2268 (dwarf2_gdb_index::expand_symtabs_matching)
2269 (dw2_debug_names_iterator)
2270 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2271 parameter.
2272
03a8ea51
TT
22732021-04-17 Tom Tromey <tom@tromey.com>
2274
2275 * symtab.c (global_symbol_searcher::expand_symtabs)
2276 (default_collect_symbol_completion_matches_break_on): Update.
2277 * symmisc.c (maintenance_expand_symtabs): Update.
2278 * symfile.h (expand_symtabs_matching): Add search_flags
2279 parameter.
2280 * symfile.c (expand_symtabs_matching): Add search_flags
2281 parameter.
2282 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2283 search_flags parameter.
2284 * quick-symbol.h (struct quick_symbol_functions)
2285 <expand_symtabs_matching>: Add search_flags parameter.
2286 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2287 * psymtab.c (recursively_search_psymtabs)
2288 (psymbol_functions::expand_symtabs_matching): Add search_flags
2289 parameter.
2290 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2291 Add search_flags parameter.
2292 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2293 search_flags parameter.
2294 * linespec.c (iterate_over_all_matching_symtabs): Update.
2295 * dwarf2/read.c (struct dwarf2_gdb_index)
2296 <expand_symtabs_matching>: Add search_flags parameter.
2297 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2298 search_flags parameter.
2299 (dw2_map_matching_symbols): Update.
2300 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2301 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2302 parameter.
2303 (dw2_debug_names_iterator): Change block_index to search flags.
2304 <m_block_index>: Likewise.
2305 (dw2_debug_names_iterator::next)
2306 (dwarf2_debug_names_index::lookup_symbol)
2307 (dwarf2_debug_names_index::expand_symtabs_for_function)
2308 (dwarf2_debug_names_index::map_matching_symbols)
2309 (dwarf2_debug_names_index::map_matching_symbols): Update.
2310 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2311 search_flags parameter.
2312 * ada-lang.c (ada_add_global_exceptions)
2313 (collect_symbol_completion_matches): Update.
2314
df35e626
TT
23152021-04-17 Tom Tromey <tom@tromey.com>
2316
2317 * symtab.c (default_collect_symbol_completion_matches_break_on):
2318 Update.
2319 * symfile.h (expand_symtabs_matching): Return bool.
2320 * symfile.c (expand_symtabs_matching): Return bool.
2321 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2322 bool.
2323 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2324 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2325 bool.
2326 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2327 bool.
2328 * psympriv.h (struct psymbol_functions)
2329 <expand_symtabs_matching>: Return bool.
2330 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2331 bool.
2332 * dwarf2/read.c (struct dwarf2_gdb_index)
2333 <expand_symtabs_matching>: Return bool.
2334 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2335 Return bool.
2336 (dw2_expand_symtabs_matching_symbol): Return bool.
2337 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2338 (dw2_expand_symtabs_matching)
2339 (dwarf2_gdb_index::expand_symtabs_matching)
2340 (dwarf2_debug_names_index::expand_symtabs_matching)
2341 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2342
e357e990
TT
23432021-04-17 Tom Tromey <tom@tromey.com>
2344
2345 * quick-symbol.h (enum block_search_flag_values): New.
2346 (block_search_flags): New enum flags type.
2347
3cbc7ac3
TT
23482021-04-16 Tom Tromey <tom@tromey.com>
2349
2350 * rust-parse.c: New file.
2351 * rust-exp.y: Remove.
2352 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2353 (SFILES): Remove rust-exp.y.
2354 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2355
1b6b755e
LM
23562021-04-16 Luis Machado <luis.machado@linaro.org>
2357
2358 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2359
c45ecc9d
JB
23602021-04-15 John Baldwin <jhb@FreeBSD.org>
2361
2362 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2363 use throughout file.
2364
a15a276b
TT
23652021-04-15 Tom Tromey <tromey@adacore.com>
2366
2367 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2368 arrays.
2369
644a2e75
TT
23702021-04-15 Tom Tromey <tromey@adacore.com>
2371
2372 * printcmd.c (print_variable_and_value): Use
2373 common_val_print_checked.
2374
9e5e03df
TT
23752021-04-15 Tom Tromey <tromey@adacore.com>
2376
2377 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2378 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2379 Update.
2380 * p-exp.y (variable): Update.
2381 * m2-exp.y (variable): Update.
2382 * go-exp.y (variable): Update.
2383 * expprint.c (dump_for_expression): New overload.
2384 * expop.h (check_objfile): New overload.
2385 (check_constant): New overload.
2386 (class var_value_operation): Use block_symbol.
2387 <get_symbol>: Rewrite.
2388 * eval.c (var_value_operation::evaluate)
2389 (var_value_operation::evaluate_funcall)
2390 (var_value_operation::evaluate_for_address)
2391 (var_value_operation::evaluate_for_address)
2392 (var_value_operation::evaluate_with_coercion)
2393 (var_value_operation::evaluate_for_sizeof)
2394 (var_value_operation::evaluate_for_cast): Update.
2395 * d-exp.y (PrimaryExpression): Update.
2396 * c-exp.y (variable): Update.
2397 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2398 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2399 (ada_var_value_operation::evaluate)
2400 (ada_var_value_operation::resolve)
2401 (ada_funcall_operation::resolve): Update.
2402 * ada-exp.y (write_var_from_sym, write_object_renaming)
2403 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2404 (maybe_overload): Update.
2405 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2406
5809fbf2
TT
24072021-04-15 Tom Tromey <tom@tromey.com>
2408 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * NEWS: Add entry.
2411 * main.c (captured_main_1): Call check_quiet_mode.
2412 * top.c (startup_quiet): New global.
2413 (check_quiet_mode): New function.
2414 (show_startup_quiet): New function.
2415 (init_main): Register new command.
2416 * top.h (check_quiet_mode): Declare.
2417
92e4e97a
AB
24182021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 PR cli/25956
2421 * NEWS: Mention new early init files and command line options.
2422 * config.in: Regenerate.
2423 * configure: Regenerate.
2424 * configure.ac: Define GDBEARLYINIT.
2425 * main.c (get_earlyinit_files): New function.
2426 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2427 CMDARG_EARLYINIT_COMMAND.
2428 (captured_main_1): Add support for new command line flags, and for
2429 processing startup files.
2430 (print_gdb_help): Include startup files in the output.
2431
54b4dcc5
AB
24322021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2433
2434 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2435 (relocate_file_path_maybe_in_datadir): ...this.
2436 (class gdb_initfile_finder): New class.
2437 (get_init_files): Now uses gdb_initfile_finder.
2438 (print_gdb_help): Print 'None found' when there are no init files.
2439
34dc0f95
TBA
24402021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2441
2442 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2443 corresponding child of the abstract DIE when iterating the
2444 children of the concrete DIE.
2445
329534fd
TV
24462021-04-13 Tom de Vries <tdevries@suse.de>
2447
2448 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2449 type to regoff_t *.
2450
d9d2ef05
LM
24512021-04-13 Luis Machado <luis.machado@linaro.org>
2452
2453 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2454 hex values.
2455
c8a37944
WS
24562021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2457
2458 * rs6000-tdep.c: Add support for single-stepping of
2459 prefixed instructions.
2460
b722acca
WS
24612021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2462
e3d528d7
WS
2463 PR gdb/27525
2464 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2465 handle the addpcis/lnia instruction.
2466
24672021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2468
b722acca
WS
2469 * MAINTAINERS (Write After Approval): Add myself.
2470
6ba4cb84
CL
24712021-4-12 Carl Love <cel@us.ibm.com>
2472
2473 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2474 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2475 float128.
2476
d4717483
SM
24772021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2480 * nat/windows-nat.h: Likewise.
2481
b3885679
EZ
24822021-04-10 Eli Zaretskii <eliz@gnu.org>
2483
2484 * windows-nat.c (windows_nat::handle_load_dll): Call
2485 windows_add_dll if get_image_name failed to glean the name of the
2486 DLL by using the lpImageName pointer.
2487 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2488 (windows_add_dll): Now does what windows_add_all_dlls did before,
2489 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2490 specifies the address where the DLL was loaded into the inferior,
2491 and looks for the single DLL loaded at that address.
2492
1ef6a596
LM
24932021-04-09 Luis Machado <luis.machado@linaro.org>
2494
2495 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2496
83a559f7
DQ
24972021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2498
2499 * darwin-nat.c (darwin_nat_target::resume): Remove status
2500 variable.
2501
16e311ab
FW
25022021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2503
2504 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2505 prologue end for Intel compilers.
2506 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2507 * producer.c (producer_is_icc_ge_19): New function.
2508 * producer.h (producer_is_icc_ge_19): New declaration.
2509
fbb3bcfc
FW
25102021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2511
2512 * producer.c: (producer_is_icc): Update for new version scheme.
2513 (producer_parsing_tests): Update names and expected results.
2514 * producer.h: (producer_is_icc): Update comment accordingly.
2515
e97007b6
SM
25162021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * target.h (struct target_ops) <follow_fork>: Return void.
2519 (target_follow_fork): Likewise.
2520 * target.c (default_follow_fork): Likewise.
2521 (target_follow_fork): Likewise.
2522 * infrun.c (follow_fork_inferior): Adjust.
2523 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2524 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2525 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2526 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2527 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2528 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2529 * remote.c (class remote_target) <follow_fork>: Likewise.
2530 (remote_target::follow_fork): Likewise.
2531 * target-delegates.c: Re-generate.
2532
dc2b480f
WP
25332021-04-07 Weimin Pan <weimin.pan@oracle.com>
2534
2535 * ctfread.c (fetch_tid_type): New function, use throughout file.
2536 (read_forward_type): New function.
2537 (read_type_record): Call read_forward_type.
2538
0a703a4c
AB
25392021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * f-exp.h (class fortran_structop_operation): New class.
2542 * f-exp.y (exp): Create fortran_structop_operation instead of the
2543 generic structop_operation.
2544 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2545 expression as EVAL_NORMAL if the result type was dynamic so we can
2546 extract the actual array bounds.
2547 (fortran_structop_operation::evaluate): New function.
2548
25492021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * eval.c (evaluate_subexp_standard): Remove
2552 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2553 STRUCTOP_PTR.
2554
30ab3586
AB
25552021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2556
2557 * valops.c (value_cast): Call value_deeply_equal before performing
2558 any cast.
2559
5e18990f
AB
25602021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2563 the function.
2564
56d467f4
CT
25652021-04-07 Caroline Tice <cmtice@google.com>
2566
2567 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2568 the search paths used resolve relative location of .dwo file.
2569
1fd999d9
AB
25702021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2573 assert.
2574 (dwarf2_section_info::get_file_name): Add an assert.
2575 (dwarf2_section_info::read_string): Display a minimal, sane error
2576 when the dwarf2_section_info is not associated with a bfd section.
2577
79c02443
AB
25782021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2579
2580 * top.c (staged_gdb_datadir): Update comment.
2581 (set_gdb_datadir): Copy the value of gdb_datadir back into
2582 staged_datadir.
2583 (init_main): Initialise staged_gdb_datadir.
2584
340d00fb
TV
25852021-04-06 Tom de Vries <tdevries@suse.de>
2586
2587 PR breakpoints/25884
2588 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2589 stepping range.
2590
d811a7cf
TV
25912021-04-06 Tom de Vries <tdevries@suse.de>
2592
2593 PR tui/27680
2594 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2595 to style.parse.
2596
306b445a
SM
25972021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2598
2599 * avr-tdep.c (avr_frame_unwind_cache): Use
2600 trad_frame_saved_reg::is_addr.
2601
9161c89a
SM
26022021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2603
2604 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2605 adjust callers.
2606
0072c873
SM
26072021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2610 objfile parameter for objfile_per_bfd_storage, adjust callers.
2611 (struct standard_psymtab) <standard_psymtab>: Likewise.
2612 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2613 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2614 * ctfread.c (struct ctf_psymtab): Likewise.
2615 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2616 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2617 (dwarf2_create_include_psymtab): Likewise.
2618 * objfiles.h (struct objfile_per_bfd_storage)
2619 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2620 <get_bfd>: New method.
2621 <m_bfd>: New field.
2622 * objfiles.c (get_objfile_bfd_data): Adjust.
2623
9984dd99
SM
26242021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2625
2626 * psymtab.c (partial_symtab::partial_symtab): Change
2627 last_objfile_name to be an std::string.
2628 * symfile.c (allocate_symtab): Likewise.
2629
4a4f97c1
SM
26302021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2631
2632 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2633 methods.
2634 (struct objfile) <intern>: Use
2635 objfile::objfile_per_bfd_storage::intern.
2636
0672875f
SM
26372021-04-01 Simon Marchi <simon.marchi@efficios.com>
2638
2639 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2640 with type::is_flag_enum.
2641
9902b327
SM
26422021-04-01 Simon Marchi <simon.marchi@efficios.com>
2643
2644 * gdbtypes.h (struct type) <is_flag_enum,
2645 set_is_flag_enum>: New methods.
2646 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2647 write call sites to use type::set_is_flag_enum.
2648
3bc440a2
SM
26492021-04-01 Simon Marchi <simon.marchi@efficios.com>
2650
2651 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2652 with type::is_declared_class.
2653
aa70e35c
SM
26542021-04-01 Simon Marchi <simon.marchi@efficios.com>
2655
2656 * gdbtypes.h (struct type) <is_declared_class,
2657 set_is_declared_class>: New methods.
2658 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2659 write call sites to use type::set_is_declared_class.
2660
bfb9f5dc
BS
26612021-02-28 Boris Staletic <boris.staletic@gmail.com>
2662
2663 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2664 to avoid deprecation warnings.
2665
733f5eea
ML
26662021-04-01 Martin Liska <mliska@suse.cz>
2667
2668 * cp-name-parser.y: Use startswith instead of strncmp.
2669 * m2-exp.y: Likewise.
2670 * macroexp.c (substitute_args): Likewise.
2671 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2672 * rust-exp.y: Likewise.
2673
af82f89d
TT
26742021-03-31 Tom Tromey <tom@tromey.com>
2675
2676 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2677 with dw2_map_matching_symbols.
2678 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2679 dw2_expand_symtabs_matching.
2680
3570682a
TT
26812021-03-31 Tom Tromey <tromey@adacore.com>
2682
2683 * dwarf2/stringify.h: Fix typo.
2684
8a91fbdf
SM
26852021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2686
2687 PR gdb/27541
2688 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2689 with objfiles using READNOW.
2690
9f67fc59
TT
26912021-03-29 Tom Tromey <tromey@adacore.com>
2692
2693 * top.c (check_frame_language_change): Update.
2694 * language.c (language_info): Remove parameter.
2695 * language.h (language_info): Remove parameter.
2696
9b8ffbf4
LM
26972021-03-29 Luis Machado <luis.machado@linaro.org>
2698
2699 * compile/compile.c (get_args): Don't add empty argv entries.
2700
25b48839
RO
27012021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2702
2703 gdb:
2704 * procfs.c (procfs_target::attach): Define inf.
2705 Use it.
2706 (procfs_target::create_inferior): Likewise.
2707
edc02ceb
TT
27082021-03-28 Tom Tromey <tom@tromey.com>
2709
2710 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2711 (elf_symfile_read): Simplify.
2712 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2713 (make_lazy_dwarf_reader): New function.
2714 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2715 (dwarf2_initialize_objfile): Return void. Remove index_kind
2716 parameter. Push on 'qf' list.
2717 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2718 type. Remove 'index_kind' parameter.
2719 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2720
6e23d91a
TT
27212021-03-27 Tom Tromey <tom@tromey.com>
2722
2723 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2724
594b8948
TT
27252021-03-27 Tom Tromey <tom@tromey.com>
2726
2727 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2728
efe1ecd8
LS
27292021-03-26 Lancelot Six <lsix@lancelotsix.com>
2730
2731 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2732 rid of 'local'.
2733
f4655dee
TT
27342021-03-26 Tom Tromey <tom@tromey.com>
2735
2736 * symtab.c (struct output_source_filename_data): Add 'output'
2737 method and operator().
2738 (output_source_filename_data::output): Rename from
2739 output_source_filename.
2740 (output_partial_symbol_filename): Remove.
2741 (info_sources_command): Update.
2742 (struct add_partial_filename_data): Add operator().
2743 (add_partial_filename_data::operator()): Rename from
2744 maybe_add_partial_symtab_filename.
2745 (make_source_files_completion_list): Update.
2746 * symfile.c (quick_symbol_functions): Update.
2747 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2748 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2749 'need_fullname'. Remove 'data' parameter.
2750 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2751 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2752 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2753 Change type of 'fun' and 'need_fullname'. Remove 'data'
2754 parameter.
2755 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2756 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2757 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2758 parameter.
2759 (mi_cmd_file_list_exec_source_files): Update.
2760 * dwarf2/read.c
2761 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2762
2315bb2d
TT
27632021-03-26 Tom Tromey <tom@tromey.com>
2764
2765 * ada-lang.c (struct match_data): Add operator().
2766 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2767 (callback): Remove 'callback'.
2768
e2cd5ca4
TT
27692021-03-26 Tom Tromey <tom@tromey.com>
2770
2771 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2772 call make_ignore_params once.
2773
cd43f63e
TT
27742021-03-26 Tom Tromey <tom@tromey.com>
2775
2776 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2777 "user" check.
2778
b4b1a226
SM
27792021-03-26 Simon Marchi <simon.marchi@efficios.com>
2780 Pedro Alves <pedro@palves.net>
2781
2782 * async-event.c: Include "infrun.h".
2783 (async_event_handler_marked): New.
2784 * async-event.h (async_event_handler_marked): Declare.
2785 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2786 inferior before calling target method. Don't commit-resumed if
2787 target_has_pending_events is true.
2788 * remote.c (remote_target::has_pending_events): New.
2789 * target-delegates.c: Regenerate.
2790 * target.c (target_has_pending_events): New.
2791 * target.h (target_ops::has_pending_events): New target method.
2792 (target_has_pending_events): New.
2793
1192f124
SM
27942021-03-26 Simon Marchi <simon.marchi@efficios.com>
2795 Pedro Alves <pedro@palves.net>
2796
2797 * infcmd.c (run_command_1, attach_command, detach_command)
2798 (interrupt_target_1): Use scoped_disable_commit_resumed.
2799 * infrun.c (do_target_resume): Remove
2800 target_commit_resume call.
2801 (commit_resume_all_targets): Remove.
2802 (maybe_set_commit_resumed_all_targets): New.
2803 (maybe_call_commit_resumed_all_targets): New.
2804 (enable_commit_resumed): New.
2805 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2806 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2807 (scoped_disable_commit_resumed::reset)
2808 (scoped_disable_commit_resumed::reset_and_commit)
2809 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2810 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2811 New.
2812 (proceed): Use scoped_disable_commit_resumed and
2813 maybe_call_commit_resumed_all_targets.
2814 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2815 * infrun.h (struct scoped_disable_commit_resumed): New.
2816 (maybe_call_commit_resumed_all_process_targets): New.
2817 (struct scoped_enable_commit_resumed): New.
2818 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2819 * process-stratum-target.h (class process_stratum_target):
2820 <commit_resumed_state>: New.
2821 * record-full.c (record_full_wait_1): Change commit_resumed_state
2822 around calling commit_resumed.
2823 * remote.c (class remote_target) <commit_resume>: Rename to...
2824 <commit_resumed>: ... this.
2825 (struct stop_reply): Move up.
2826 (remote_target::commit_resume): Rename to...
2827 (remote_target::commit_resumed): ... this. Check if there is any
2828 thread pending vCont resume.
2829 (remote_target::remote_stop_ns): Generate stop replies for resumed
2830 but pending vCont threads.
2831 (remote_target::wait_ns): Add gdb_assert.
2832 * target-delegates.c: Regenerate.
2833 * target.c (target_wait, target_resume): Assert that the current
2834 process_stratum target isn't in commit-resumed state.
2835 (defer_target_commit_resume): Remove.
2836 (target_commit_resume): Remove.
2837 (target_commit_resumed): New.
2838 (make_scoped_defer_target_commit_resume): Remove.
2839 (target_stop): Assert that the current process_stratum target
2840 isn't in commit-resumed state.
2841 * target.h (struct target_ops) <commit_resume>: Rename to ...
2842 <commit_resumed>: ... this.
2843 (target_commit_resume): Remove.
2844 (target_commit_resumed): New.
2845 (make_scoped_defer_target_commit_resume): Remove.
2846 * top.c (wait_sync_command_done): Use
2847 scoped_enable_commit_resumed.
2848
e5b9b39f
PA
28492021-03-26 Pedro Alves <pedro@palves.net>
2850
2851 * target.c (target_always_non_stop_p): Also check whether the
2852 target can async.
2853
bab287cd
TT
28542021-03-26 Tom Tromey <tom@tromey.com>
2855
2856 * dwarf2/read.c (dwarf2_read_debug_names)
2857 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2858 (dw2_debug_names_iterator::next, create_type_unit_group):
2859 Simplify.
2860
eff4f69d
PA
28612021-03-25 Pedro Alves <pedro@palves.net>
2862
2863 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2864 around setting the breakpoint.
2865
323fd5b9
PA
28662021-03-25 Pedro Alves <pedro@palves.net>
2867
2868 * remote.c
2869 (remote_target::check_pending_events_prevent_wildcard_vcont):
2870 Check whether the event's ptid is not null_ptid before looking up
2871 the corresponding inferior.
2872
d3cbca38
CD
28732021-03-24 Changbin Du <changbin.du@gmail.com>
2874
2875 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2876 read_code.
2877
328d42d8
SM
28782021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2879
2880 * target.h (current_top_target): Remove, make callers use the
2881 current inferior instead.
2882 * target.c (current_top_target): Remove.
2883
d777bf0d
SM
28842021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2885
2886 * target.h (target_shortname): Change to function declaration.
2887 (target_longname): Likewise.
2888 (target_attach_no_wait): Likewise.
2889 (target_post_attach): Likewise.
2890 (target_prepare_to_store): Likewise.
2891 (target_supports_enable_disable_tracepoint): Likewise.
2892 (target_supports_string_tracing): Likewise.
2893 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2894 (target_supports_dumpcore): Likewise.
2895 (target_dumpcore): Likewise.
2896 (target_can_run_breakpoint_commands): Likewise.
2897 (target_files_info): Likewise.
2898 (target_post_startup_inferior): Likewise.
2899 (target_insert_fork_catchpoint): Likewise.
2900 (target_remove_fork_catchpoint): Likewise.
2901 (target_insert_vfork_catchpoint): Likewise.
2902 (target_remove_vfork_catchpoint): Likewise.
2903 (target_insert_exec_catchpoint): Likewise.
2904 (target_remove_exec_catchpoint): Likewise.
2905 (target_set_syscall_catchpoint): Likewise.
2906 (target_rcmd): Likewise.
2907 (target_can_lock_scheduler): Likewise.
2908 (target_can_async_p): Likewise.
2909 (target_is_async_p): Likewise.
2910 (target_execution_direction): Likewise.
2911 (target_extra_thread_info): Likewise.
2912 (target_pid_to_exec_file): Likewise.
2913 (target_thread_architecture): Likewise.
2914 (target_find_memory_regions): Likewise.
2915 (target_make_corefile_notes): Likewise.
2916 (target_get_bookmark): Likewise.
2917 (target_goto_bookmark): Likewise.
2918 (target_stopped_by_watchpoint): Likewise.
2919 (target_stopped_by_sw_breakpoint): Likewise.
2920 (target_supports_stopped_by_sw_breakpoint): Likewise.
2921 (target_stopped_by_hw_breakpoint): Likewise.
2922 (target_supports_stopped_by_hw_breakpoint): Likewise.
2923 (target_have_steppable_watchpoint): Likewise.
2924 (target_can_use_hardware_watchpoint): Likewise.
2925 (target_region_ok_for_hw_watchpoint): Likewise.
2926 (target_can_do_single_step): Likewise.
2927 (target_insert_watchpoint): Likewise.
2928 (target_remove_watchpoint): Likewise.
2929 (target_insert_hw_breakpoint): Likewise.
2930 (target_remove_hw_breakpoint): Likewise.
2931 (target_can_accel_watchpoint_condition): Likewise.
2932 (target_can_execute_reverse): Likewise.
2933 (target_get_ada_task_ptid): Likewise.
2934 (target_filesystem_is_local): Likewise.
2935 (target_trace_init): Likewise.
2936 (target_download_tracepoint): Likewise.
2937 (target_can_download_tracepoint): Likewise.
2938 (target_download_trace_state_variable): Likewise.
2939 (target_enable_tracepoint): Likewise.
2940 (target_disable_tracepoint): Likewise.
2941 (target_trace_start): Likewise.
2942 (target_trace_set_readonly_regions): Likewise.
2943 (target_get_trace_status): Likewise.
2944 (target_get_tracepoint_status): Likewise.
2945 (target_trace_stop): Likewise.
2946 (target_trace_find): Likewise.
2947 (target_get_trace_state_variable_value): Likewise.
2948 (target_save_trace_data): Likewise.
2949 (target_upload_tracepoints): Likewise.
2950 (target_upload_trace_state_variables): Likewise.
2951 (target_get_raw_trace_data): Likewise.
2952 (target_get_min_fast_tracepoint_insn_len): Likewise.
2953 (target_set_disconnected_tracing): Likewise.
2954 (target_set_circular_trace_buffer): Likewise.
2955 (target_set_trace_buffer_size): Likewise.
2956 (target_set_trace_notes): Likewise.
2957 (target_get_tib_address): Likewise.
2958 (target_set_permissions): Likewise.
2959 (target_static_tracepoint_marker_at): Likewise.
2960 (target_static_tracepoint_markers_by_strid): Likewise.
2961 (target_traceframe_info): Likewise.
2962 (target_use_agent): Likewise.
2963 (target_can_use_agent): Likewise.
2964 (target_augmented_libraries_svr4_read): Likewise.
2965 (target_log_command): Likewise.
2966 * target.c (target_shortname): New.
2967 (target_longname): New.
2968 (target_attach_no_wait): New.
2969 (target_post_attach): New.
2970 (target_prepare_to_store): New.
2971 (target_supports_enable_disable_tracepoint): New.
2972 (target_supports_string_tracing): New.
2973 (target_supports_evaluation_of_breakpoint_conditions): New.
2974 (target_supports_dumpcore): New.
2975 (target_dumpcore): New.
2976 (target_can_run_breakpoint_commands): New.
2977 (target_files_info): New.
2978 (target_post_startup_inferior): New.
2979 (target_insert_fork_catchpoint): New.
2980 (target_remove_fork_catchpoint): New.
2981 (target_insert_vfork_catchpoint): New.
2982 (target_remove_vfork_catchpoint): New.
2983 (target_insert_exec_catchpoint): New.
2984 (target_remove_exec_catchpoint): New.
2985 (target_set_syscall_catchpoint): New.
2986 (target_rcmd): New.
2987 (target_can_lock_scheduler): New.
2988 (target_can_async_p): New.
2989 (target_is_async_p): New.
2990 (target_execution_direction): New.
2991 (target_extra_thread_info): New.
2992 (target_pid_to_exec_file): New.
2993 (target_thread_architecture): New.
2994 (target_find_memory_regions): New.
2995 (target_make_corefile_notes): New.
2996 (target_get_bookmark): New.
2997 (target_goto_bookmark): New.
2998 (target_stopped_by_watchpoint): New.
2999 (target_stopped_by_sw_breakpoint): New.
3000 (target_supports_stopped_by_sw_breakpoint): New.
3001 (target_stopped_by_hw_breakpoint): New.
3002 (target_supports_stopped_by_hw_breakpoint): New.
3003 (target_have_steppable_watchpoint): New.
3004 (target_can_use_hardware_watchpoint): New.
3005 (target_region_ok_for_hw_watchpoint): New.
3006 (target_can_do_single_step): New.
3007 (target_insert_watchpoint): New.
3008 (target_remove_watchpoint): New.
3009 (target_insert_hw_breakpoint): New.
3010 (target_remove_hw_breakpoint): New.
3011 (target_can_accel_watchpoint_condition): New.
3012 (target_can_execute_reverse): New.
3013 (target_get_ada_task_ptid): New.
3014 (target_filesystem_is_local): New.
3015 (target_trace_init): New.
3016 (target_download_tracepoint): New.
3017 (target_can_download_tracepoint): New.
3018 (target_download_trace_state_variable): New.
3019 (target_enable_tracepoint): New.
3020 (target_disable_tracepoint): New.
3021 (target_trace_start): New.
3022 (target_trace_set_readonly_regions): New.
3023 (target_get_trace_status): New.
3024 (target_get_tracepoint_status): New.
3025 (target_trace_stop): New.
3026 (target_trace_find): New.
3027 (target_get_trace_state_variable_value): New.
3028 (target_save_trace_data): New.
3029 (target_upload_tracepoints): New.
3030 (target_upload_trace_state_variables): New.
3031 (target_get_raw_trace_data): New.
3032 (target_get_min_fast_tracepoint_insn_len): New.
3033 (target_set_disconnected_tracing): New.
3034 (target_set_circular_trace_buffer): New.
3035 (target_set_trace_buffer_size): New.
3036 (target_set_trace_notes): New.
3037 (target_get_tib_address): New.
3038 (target_set_permissions): New.
3039 (target_static_tracepoint_marker_at): New.
3040 (target_static_tracepoint_markers_by_strid): New.
3041 (target_traceframe_info): New.
3042 (target_use_agent): New.
3043 (target_can_use_agent): New.
3044 (target_augmented_libraries_svr4_read): New.
3045 (target_log_command): New.
3046 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3047 * infrun.c (set_schedlock_func): Adjust.
3048 * mi/mi-main.c (exec_reverse_continue): Adjust.
3049 * reverse.c (exec_reverse_once): Adjust.
3050 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3051 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3052 * remote-sim.c (gdbsim_target::detach): Adjust.
3053 (gdbsim_target::files_info): Adjust.
3054
b64f703b
TT
30552021-03-24 Tom Tromey <tom@tromey.com>
3056
3057 * dwarf2/read.c (dw2_map_matching_symbols): Update.
3058 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3059 (check_match, dw2_expand_symtabs_matching)
3060 (dwarf2_debug_names_index::map_matching_symbols)
3061 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
3062
68f115f8
KS
30632021-03-24 Keith Seitz <keiths@redhat.com>
3064
3065 * compile/compile-cplus-types.c
3066 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3067 thinko.
3068
41c0087b
SM
30692021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3070
3071 * gdbarch.sh (gdbarch_data_registry): Make static.
3072 * gdbarch.c: Re-generate.
3073
ce192338
LM
30742021-03-24 Luis Machado <luis.machado@linaro.org>
3075
3076 * NEWS: Mention memory tagging changes.
3077
bef382e6
LM
30782021-03-24 Luis Machado <luis.machado@linaro.org>
3079
3080 * printcmd.c (decode_format): Handle the 'm' modifier.
3081 (do_examine): Display allocation tags when required/supported.
3082 (should_validate_memtags): New function.
3083 (print_command_1): Display memory tag mismatches.
3084 * valprint.c (show_memory_tag_violations): New function.
3085 (value_print_option_defs): Add new option "memory-tag-violations".
3086 (user_print_options) <memory_tag_violations>: Initialize to 1.
3087 * valprint.h (struct format_data) <print_tags>: New field.
3088 (value_print_options) <memory_tag_violations>: New field.
3089
48136e00
LM
30902021-03-24 Luis Machado <luis.machado@linaro.org>
3091
3092 * printcmd.c: Include gdbsupport/rsp-low.h.
3093 (memory_tag_list): New static global.
3094 (process_print_command_args): Factored out of
3095 print_command_1.
3096 (print_command_1): Use process_print_command_args.
3097 (show_addr_not_tagged, show_memory_tagging_unsupported)
3098 (memory_tag_command, memory_tag_print_tag_command)
3099 (memory_tag_print_logical_tag_command)
3100 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3101 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3102 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3103 functions.
3104 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3105
ffcc2a15
LM
31062021-03-24 Luis Machado <luis.machado@linaro.org>
3107
3108 * aarch64-linux-tdep.c
3109 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3110 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3111
cf44c9fa
LM
31122021-03-24 Luis Machado <luis.machado@linaro.org>
3113
3114 * aarch64-linux-tdep.c
3115 (aarch64_linux_report_signal_info): New function.
3116 (aarch64_linux_init_abi): Register
3117 aarch64_linux_report_signal_info as the report_signal_info hook.
3118 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3119 (SEGV_MTESERR): Define.
3120
b4a7d4fc
LM
31212021-03-24 Luis Machado <luis.machado@linaro.org>
3122
3123 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3124 (aarch64_linux_ltag_tests): New function.
3125 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3126
c7782e50
LM
31272021-03-24 Luis Machado <luis.machado@linaro.org>
3128
3129 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3130 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3131 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3132 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3133 functions.
3134 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3135 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3136 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3137 (aarch64_linux_get_ltag): New functions.
3138 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3139 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3140 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3141 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3142
1e735120
LM
31432021-03-24 Luis Machado <luis.machado@linaro.org>
3144
3145 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3146 bit.
3147 (struct smaps_data): New struct.
3148 (decode_vmflags): Handle the 'mt' flag.
3149 (parse_smaps_data): New function, refactored from
3150 linux_find_memory_regions_full.
3151 (linux_address_in_memtag_page): New function.
3152 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3153 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3154
93e447c6
LM
31552021-03-24 Luis Machado <luis.machado@linaro.org>
3156
3157 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3158 instead of char arrays.
3159
4601818e
LM
31602021-03-24 Luis Machado <luis.machado@linaro.org>
3161
3162 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3163 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3164 nat/aarch64-mte-linux-ptrace.h.
3165 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3166 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3167 override.
3168 <fetch_memtags>: New method override.
3169 <store_memtags>: New method override.
3170 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3171 (aarch64_linux_nat_target::fetch_memtags): New method.
3172 (aarch64_linux_nat_target::store_memtags): New method.
3173 * arch/aarch64-mte-linux.c: New file.
3174 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3175 (AARCH64_MTE_GRANULE_SIZE): Define.
3176 (aarch64_memtag_type): New enum.
3177 (aarch64_mte_get_tag_granules): New prototype.
3178 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3179 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3180 * nat/aarch64-mte-linux-ptrace.c: New file.
3181 * nat/aarch64-mte-linux-ptrace.h: New file.
3182
3f3bd8b8
LM
31832021-03-24 Luis Machado <luis.machado@linaro.org>
3184
3185 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3186 * nat/aarch64-mte-linux-ptrace.h: New file.
3187
5e984dbf
LM
31882021-03-24 Luis Machado <luis.machado@linaro.org>
3189
3190 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3191 (store_mteregs_to_thread): New function.
3192 (aarch64_linux_nat_target::fetch_registers): Update to call
3193 fetch_mteregs_from_thread.
3194 (aarch64_linux_nat_target::store_registers): Update to call
3195 store_mteregs_to_thread.
3196 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3197 (aarch64_cannot_store_register): Handle MTE registers.
3198 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3199 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3200 <has_mte>: New method.
3201 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3202
c1bd443b
LM
32032021-03-24 Luis Machado <luis.machado@linaro.org>
3204
3205 * aarch64-linux-nat.c
3206 (aarch64_linux_nat_target::read_description): Take MTE flag into
3207 account.
3208 Slight refactor to hwcap flag checking.
3209 * aarch64-linux-tdep.c
3210 (aarch64_linux_core_read_description): Likewise.
3211 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3212 MTE.
3213 (aarch64_read_description): Add mte_p parameter and update to use it.
3214 Update the documentation.
3215 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3216 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3217 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3218 (aarch64_create_target_description): Add mte_p parameter and update
3219 the code to use it.
3220 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3221 parameter.
3222 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3223 * features/aarch64-mte.c: New file, generated.
3224 * features/aarch64-mte.xml: New file.
3225
04245125
LM
32262021-03-24 Luis Machado <luis.machado@linaro.org>
3227
3228 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3229 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3230 * aarch64-linux-tdep.c: Likewise
3231 * arch/aarch64-mte-linux.h: New file.
3232
754487e2
LM
32332021-03-24 Luis Machado <luis.machado@linaro.org>
3234
3235 * remote: Include gdbsupport/selftest.h.
3236 (test_memory_tagging_functions): New function.
3237 (_initialize_remote): Register test_memory_tagging_functions.
3238
2c2e7f87
LM
32392021-03-24 Luis Machado <luis.machado@linaro.org>
3240
3241 * remote.c (PACKET_memory_tagging_feature): New enum.
3242 (remote_memory_tagging_p): New function.
3243 (remote_protocol_features): New "memory-tagging" entry.
3244 (remote_target::remote_query_supported): Handle memory tagging
3245 support.
3246 (remote_target::supports_memory_tagging): Implement.
3247 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3248 (create_store_memtags_request): New functions.
3249 (remote_target::fetch_memtags): Implement.
3250 (remote_target::store_memtags): Implement.
3251 (_initialize_remote): Add new "memory-tagging-feature"
3252 config command.
3253
c193949e
LM
32542021-03-24 Luis Machado <luis.machado@linaro.org>
3255
3256 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3257 (default_memtag_matches_p, default_set_memtags)
3258 (default_get_memtag): New functions.
3259 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3260 (default_memtag_matches_p, default_set_memtags)
3261 (default_get_memtag): New prototypes.
3262 * gdbarch.c: Regenerate.
3263 * gdbarch.h: Regenerate.
3264 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3265 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3266 (enum memtag_type): New enum.
3267
dbe692af
LM
32682021-03-24 Luis Machado <luis.machado@linaro.org>
3269
3270 * remote.c (remote_target) <supports_memory_tagging>: New method
3271 override.
3272 <fetch_memtags>: New method override.
3273 <store_memtags>: New method override.
3274 (remote_target::supports_memory_tagging): New method.
3275 (remote_target::fetch_memtags): New method.
3276 (remote_target::store_memtags): New method.
3277 * target-delegates.c: Regenerate.
3278 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3279 method.
3280 <fetch_memtags>: New virtual method.
3281 <store_memtags>: New virtual method.
3282 (target_supports_memory_tagging): Define.
3283 (target_fetch_memtags): Define.
3284 (target_store_memtags): Define.
3285 * target-debug.h (target_debug_print_size_t)
3286 (target_debug_print_const_gdb_byte_vector_r)
3287 (target_debug_print_gdb_byte_vector_r): New functions.
3288
66848ebc
SM
32892021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3290
3291 * target.h (target_longname): Remove.
3292
c8fbd44a
SM
32932021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3294
3295 * target.h (target_is_pushed): Remove, update callers to use
3296 inferior::target_is_pushed instead.
3297 * target.c (target_is_pushed): Remove.
3298
02980c56
SM
32992021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3300
3301 * target.h (push_target): Remove, update callers to use
3302 inferior::push_target.
3303 * target.c (push_target): Remove.
3304 * inferior.h (class inferior) <push_target>: New overload.
3305
fadf6add
SM
33062021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3307
3308 * target.h (unpush_target): Remove, update all callers
3309 to use `inferior::unpush_target` instead.
3310 (struct target_unpusher) <operator()>: Just declare.
3311 * target.c (unpush_target): Remove.
3312 (target_unpusher::operator()): New.
3313
702cf3f5
AB
33142021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3317 error.
3318 (process_full_comp_unit): Validate the top-level tag before
3319 processing the first DIE.
3320 (read_func_scope): Ensure we have a valid builder.
3321
46fec642
AB
33222021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3323
3324 * objc-lang.c (objc_demangle): Renamed to
3325 objc_language::demangle_symbol, and moved later in the file.
3326 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3327 member function.
3328 (objc_language::demangle_symbol): Defined outside of class
3329 declaration. The definition is the old objc_demangle with NULL
3330 changed to nullptr, and if conditions relating to nullptr pointers
3331 or null character checks made explicit.
3332 * objc-lang.h (objc_demangle): Delete declaration.
3333
08dedd66
ML
33342021-03-22 Martin Liska <mliska@suse.cz>
3335
3336 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3337 (_initialize_arm_tdep): Likewise.
3338
eb36a3eb
TT
33392021-03-20 Tom Tromey <tom@tromey.com>
3340
3341 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3342 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3343 * psymtab.h (make_psymbol_functions): Don't declare.
3344 * psymtab.c (make_psymbol_functions): Remove.
3345 (maintenance_print_psymbols): Update.
3346 * psympriv.h (struct psymbol_functions): Add no-argument
3347 constructor.
3348 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3349 <partial_symtabs>: Remove.
3350 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3351 * elfread.c (read_partial_symbols): Update.
3352 (elf_symfile_read): Remove check for existing partial symbols.
3353 Don't clear "qf".
3354 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3355 partial symbols.
3356 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3357 partial symtabs.
3358 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3359 parameter.
3360 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3361 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3362
e1114590
TT
33632021-03-20 Tom Tromey <tom@tromey.com>
3364
3365 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3366 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3367 * symfile-debug.c (objfile::has_partial_symbols)
3368 (objfile::find_last_source_symtab)
3369 (objfile::forget_cached_source_info)
3370 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3371 (objfile::print_stats, objfile::dump)
3372 (objfile::expand_symtabs_for_function)
3373 (objfile::expand_all_symtabs)
3374 (objfile::expand_symtabs_with_fullname)
3375 (objfile::map_matching_symbols)
3376 (objfile::expand_symtabs_matching)
3377 (objfile::find_pc_sect_compunit_symtab)
3378 (objfile::map_symbol_filenames)
3379 (objfile::find_compunit_symtab_by_address)
3380 (objfile::lookup_global_symbol_language)
3381 (objfile::require_partial_symbols): Update.
3382 * psymtab.c (maintenance_print_psymbols)
3383 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3384 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3385 * objfiles.c (objfile_relocate1): Update.
3386 * elfread.c (elf_symfile_read): Update.
3387
de909f0b
TT
33882021-03-20 Tom Tromey <tom@tromey.com>
3389
3390 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3391
caf8c1e5
TT
33922021-03-20 Tom Tromey <tom@tromey.com>
3393
3394 * psymtab.c (psymbol_functions::count_psyms): Rename.
3395 (psymbol_functions::print_stats): Update.
3396 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3397 method.
3398
3aa31ce7
TT
33992021-03-20 Tom Tromey <tom@tromey.com>
3400
3401 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3402 (psymbol_functions::find_pc_sect_psymtab): Rename.
3403 (psymbol_functions::find_pc_sect_compunit_symtab)
3404 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3405 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3406 Declare new method.
3407 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3408
7b249e47
TT
34092021-03-20 Tom Tromey <tom@tromey.com>
3410
3411 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3412 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3413 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3414 parameter.
3415 (add_psymbol_to_bcache): Remove.
3416 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3417 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3418 Likewise.
3419 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3420 <add_psymbol>: Likewise.
3421 (standard_psymtab, legacy_psymtab): Likewise.
3422 * mdebugread.c (parse_partial_symbols): Update.
3423 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3424 (handle_psymbol_enumerators): Update.
3425 (new_psymtab): Add partial_symtabs parameter.
3426 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3427 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3428 parameter.
3429 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3430 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3431 Update.
3432 * dbxread.c (read_dbx_symtab): Update.
3433 (start_psymtab): Add partial_symtabs parameter.
3434 (dbx_end_psymtab): Update.
3435 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3436 (ctf_psymtab): Add partial_symtabs parameter.
3437 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3438 Update.
3439 (scan_partial_symbols): Add partial_symtabs parameter.
3440 (scan_partial_symbols, elfctf_build_psymtabs)
3441 (ctf_psymtab_add_enums): Update.
3442
d1eef86d
TT
34432021-03-20 Tom Tromey <tom@tromey.com>
3444
3445 * symfile.c (read_symbols): Use objfile method.
3446 * symfile-debug.c (objfile::require_partial_symbols): New method.
3447 * psymtab.h (require_partial_symbols): Don't declare.
3448 * psymtab.c (require_partial_symbols): Use objfile method. Now
3449 static.
3450 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3451 (psymbol_functions::lookup_symbol)
3452 (psymbol_functions::lookup_global_symbol_language)
3453 (psymbol_functions::find_last_source_symtab)
3454 (psymbol_functions::forget_cached_source_info)
3455 (psymbol_functions::print_stats)
3456 (psymbol_functions::expand_symtabs_for_function)
3457 (psymbol_functions::expand_all_symtabs)
3458 (psymbol_functions::expand_symtabs_with_fullname)
3459 (psymbol_functions::map_symbol_filenames)
3460 (psymbol_functions::map_matching_symbols)
3461 (psymbol_functions::expand_symtabs_matching)
3462 (psymbol_functions::find_compunit_symtab_by_address)
3463 (maintenance_print_psymbols, maintenance_info_psymtabs)
3464 (maintenance_check_psymtabs): Update.
3465 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3466 new method.
3467
eb00e468
TT
34682021-03-20 Tom Tromey <tom@tromey.com>
3469
3470 * xcoffread.c (xcoff_sym_fns): Update.
3471 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3472 * symfile-debug.c (objfile::has_partial_symbols): Use
3473 can_lazily_read_symbols.
3474 (debug_sym_read_psymbols): Remove.
3475 (debug_sym_fns, install_symfile_debug_logging): Update.
3476 * quick-symbol.h (struct quick_symbol_functions)
3477 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3478 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3479 * mipsread.c (ecoff_sym_fns): Update.
3480 * machoread.c (macho_sym_fns): Update.
3481 * elfread.c (struct lazy_dwarf_reader): New.
3482 (elf_symfile_read): Update.
3483 (read_psyms): Now a method of lazy_dwarf_reader.
3484 (elf_sym_fns): Update.
3485 (elf_sym_fns_lazy_psyms): Remove.
3486 * dbxread.c (aout_sym_fns): Update.
3487 * coffread.c (coff_sym_fns): Update.
3488
b29b98cf
TT
34892021-03-20 Tom Tromey <tom@tromey.com>
3490
3491 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3492 (reread_symbols): Move reset_psymtabs call later.
3493 * objfiles.c (objfile::objfile): Don't initialize
3494 partial_symtabs.
3495
17d66340
TT
34962021-03-20 Tom Tromey <tom@tromey.com>
3497
3498 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3499 set_partial_symtabs.
3500 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3501 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3502 parameter.
3503 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3504 parameter.
3505 (psymbol_functions::find_pc_sect_compunit_symtab)
3506 (psymbol_functions::print_stats, psymbol_functions::dump)
3507 (psymbol_functions::has_symbols): Update.
3508 (make_psymbol_functions, dump_psymtab_addrmap): Add
3509 partial_symtabs parameter.
3510 (maintenance_print_psymbols): Update.
3511 (psymbol_functions::expand_symtabs_matching): Update.
3512 * psympriv.h (struct psymbol_functions): Add constructor.
3513 <m_partial_symtabs>: New member.
3514 <set_partial_symtabs>: New method.
3515
84685904
TT
35162021-03-20 Tom Tromey <tom@tromey.com>
3517
3518 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3519 parameter.
3520 (process_psymtab_comp_unit_reader)
3521 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3522 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3523 Reference psymtabs via per_bfd.
3524
79cc99f6
TT
35252021-03-20 Tom Tromey <tom@tromey.com>
3526
3527 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3528 Remove.
3529 (add_address_entry): Remove objfile parameter.
3530 (add_address_entry_worker): Update.
3531 (write_address_map): Replace objfile parameter with per_bfd.
3532 (write_gdbindex, write_psymtabs_to_index): Update.
3533
4829711b
TT
35342021-03-20 Tom Tromey <tom@tromey.com>
3535
3536 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3537 print_bcache parameter.
3538 * symfile-debug.c (objfile::print_stats): Add print_bcache
3539 parameter.
3540 * quick-symbol.h (struct quick_symbol_functions)
3541 <print_stats>: Add print_bcache parameter.
3542 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3543 code to psymtab.c.
3544 (print_objfile_statistics): Move psymtab code to psymtab.c.
3545 * psymtab.c (count_psyms): Move from symmisc.c.
3546 (psymbol_functions::print_stats): Print partial symbol and bcache
3547 statistics. Add print_bcache parameter.
3548 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3549 (struct objfile) <print_stats>: Add print_bcache parameter.
3550 * maint.c (maintenance_print_statistics): Update.
3551
efd7398e
TT
35522021-03-20 Tom Tromey <tom@tromey.com>
3553
3554 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3555 member.
3556 * dwarf2/read.c (create_addrmap_from_index)
3557 (create_addrmap_from_aranges): Set per_bfd addrmap.
3558 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3559 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3560 per_bfd addrmap.
3561 (dwarf2_read_debug_names): Don't set partial_symtabs.
3562 (dwarf2_initialize_objfile): Likewise.
3563
51962708
TT
35642021-03-20 Tom Tromey <tom@tromey.com>
3565
3566 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3567 earlier.
3568
484b1090
TT
35692021-03-20 Tom Tromey <tom@tromey.com>
3570
3571 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3572 (~psymtab_discarder, keep): Update.
3573 <m_objfile>: Remove.
3574 <m_partial_symtabs>: New member.
3575 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3576
7e9c0476
TT
35772021-03-20 Tom Tromey <tom@tromey.com>
3578
3579 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3580 (xcoff_end_psymtab): Update.
3581 (scan_xcoff_symtab): Add partial_symtabs parameter.
3582 (xcoff_initial_scan): Update.
3583 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3584 * mdebugread.c (mdebug_build_psymtabs): Update.
3585 (parse_partial_symbols): Add partial_symtabs parameter.
3586 * dbxread.c (dbx_symfile_read): Update.
3587 (read_dbx_symtab): Add partial_symtabs parameter.
3588 (read_dbx_symtab): Update.
3589 (dbx_end_psymtab): Add partial_symtabs parameter.
3590
75336a5a
TT
35912021-03-20 Tom Tromey <tom@tromey.com>
3592
3593 * quick-symbol.h (struct quick_symbol_functions)
3594 <relocated>: New method.
3595 * psymtab.h (struct psymbol_functions) <relocated>: New
3596 method.
3597 <fill_psymbol_map>: Declare method.
3598 <m_psymbol_map>: New member.
3599 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3600 (psymbol_functions::find_compunit_symtab_by_address): Update.
3601 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3602 (struct objfile) <psymbol_map>: Remove.
3603 * objfiles.c (objfile_relocate1): Update.
3604
39298a5d
TT
36052021-03-20 Tom Tromey <tom@tromey.com>
3606
3607 * psympriv.h (struct psymbol_functions): New.
3608 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3609 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3610 (objfile::lookup_global_symbol_language): Update.
3611 * quick-symbol.h (struct quick_symbol_functions): Convert function
3612 pointers to methods. Add virtual destructor.
3613 (quick_symbol_functions_up): New typedef.
3614 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3615 (dwarf2_debug_names_functions): Don't declare.
3616 (make_psymbol_functions): Declare.
3617 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3618 (psymbol_functions::find_pc_sect_compunit_symtab)
3619 (psymbol_functions::lookup_symbol)
3620 (psymbol_functions::lookup_global_symbol_language)
3621 (psymbol_functions::find_last_source_symtab)
3622 (psymbol_functions::forget_cached_source_info)
3623 (psymbol_functions::print_stats, psymbol_functions::dump)
3624 (psymbol_functions::expand_symtabs_for_function)
3625 (psymbol_functions::expand_all_symtabs)
3626 (psymbol_functions::expand_symtabs_with_fullname)
3627 (psymbol_functions::map_symbol_filenames)
3628 (psymbol_functions::map_matching_symbols)
3629 (psymbol_functions::expand_symtabs_matching)
3630 (psymbol_functions::has_symbols)
3631 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3632 (psym_functions): Remove.
3633 (make_psymbol_functions): New function.
3634 * objfiles.h (struct objfile) <qf>: Change type.
3635 * elfread.c (elf_symfile_read): Update.
3636 * dwarf2/read.c (struct dwarf2_base_index_functions)
3637 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3638 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3639 (dwarf2_base_index_functions::find_last_source_symtab)
3640 (dwarf2_base_index_functions::forget_cached_source_info)
3641 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3642 (dwarf2_gdb_index::lookup_symbol)
3643 (dwarf2_base_index_functions::print_stats)
3644 (dwarf2_gdb_index::dump)
3645 (dwarf2_gdb_index::expand_symtabs_for_function)
3646 (dwarf2_base_index_functions::expand_all_symtabs)
3647 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3648 Rename.
3649 (dwarf2_gdb_index::map_matching_symbols): New method.
3650 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3651 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3652 (dwarf2_base_index_functions::map_symbol_filenames)
3653 (dwarf2_base_index_functions::has_symbols): Rename.
3654 (dwarf2_gdb_index_functions): Remove.
3655 (dwarf2_debug_names_index::lookup_symbol)
3656 (dwarf2_debug_names_index::dump)
3657 (dwarf2_debug_names_index::expand_symtabs_for_function)
3658 (dwarf2_debug_names_index::map_matching_symbols)
3659 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3660 (dwarf2_debug_names_functions): Remove.
3661 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3662 Declare.
3663
5c3f1e5b
TT
36642021-03-20 Tom Tromey <tom@tromey.com>
3665
3666 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3667 null.
3668 * xcoffread.c (xcoff_sym_fns): Update.
3669 * symfile.h (struct sym_fns) <qf>: Remove.
3670 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3671 * symfile-debug.c (objfile::has_partial_symbols)
3672 (objfile::find_last_source_symtab)
3673 (objfile::forget_cached_source_info)
3674 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3675 (objfile::print_stats, objfile::dump)
3676 (objfile::expand_symtabs_for_function)
3677 (objfile::expand_all_symtabs)
3678 (objfile::expand_symtabs_with_fullname)
3679 (objfile::map_matching_symbols)
3680 (objfile::expand_symtabs_matching)
3681 (objfile::find_pc_sect_compunit_symtab)
3682 (objfile::map_symbol_filenames)
3683 (objfile::find_compunit_symtab_by_address)
3684 (objfile::lookup_global_symbol_language, debug_sym_fns)
3685 (install_symfile_debug_logging): Update.
3686 * objfiles.h (struct objfile) <qf>: New member.
3687 * mipsread.c (ecoff_sym_fns): Update.
3688 * machoread.c (macho_sym_fns): Update.
3689 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3690 Don't declare.
3691 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3692 * dbxread.c (aout_sym_fns): Update.
3693 * coffread.c (coff_sym_fns): Update.
3694
9b99dcc8
TT
36952021-03-20 Tom Tromey <tom@tromey.com>
3696
3697 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3698 (expand_symtabs_file_matcher_ftype)
3699 (expand_symtabs_symbol_matcher_ftype)
3700 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3701 Move to quick-symbol.h.
3702 * quick-symbol.h: New file.
3703
4d080b46
TT
37042021-03-20 Tom Tromey <tom@tromey.com>
3705
3706 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3707 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3708 (basic_lookup_transparent_type_quick)
3709 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3710 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3711 Update.
3712 * symmisc.c (print_objfile_statistics, dump_objfile)
3713 (maintenance_expand_symtabs): Update.
3714 * symfile.c (symbol_file_add_with_addrs)
3715 (expand_symtabs_matching, map_symbol_filenames): Update.
3716 * symfile-debug.c (objfile::has_partial_symbols)
3717 (objfile::find_last_source_symtab)
3718 (objfile::forget_cached_source_info)
3719 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3720 (objfile::print_stats, objfile::dump)
3721 (objfile::expand_symtabs_for_function)
3722 (objfile::expand_all_symtabs)
3723 (objfile::expand_symtabs_with_fullname)
3724 (objfile::map_matching_symbols)
3725 (objfile::expand_symtabs_matching)
3726 (objfile::find_pc_sect_compunit_symtab)
3727 (objfile::map_symbol_filenames)
3728 (objfile::find_compunit_symtab_by_address)
3729 (objfile::lookup_global_symbol_language): New methods.
3730 (debug_sym_quick_functions): Remove.
3731 (debug_sym_fns, install_symfile_debug_logging): Update.
3732 * source.c (forget_cached_source_info_for_objfile)
3733 (select_source_symtab): Update.
3734 * objfiles.h (struct objfile): Add methods corresponding to
3735 quick_symbol_functions.
3736 * objfiles.c (objfile::has_partial_symbols): Move to
3737 symfile-debug.c.
3738 * linespec.c (iterate_over_all_matching_symtabs): Update.
3739 * cp-support.c (add_symbol_overload_list_qualified): Update.
3740 * ada-lang.c (add_nonlocal_symbols): Update.
3741
fae2120b
TT
37422021-03-20 Tom Tromey <tom@tromey.com>
3743
3744 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3745 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3746 bool.
3747 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3748 * psymtab.c (psym_has_symbols): Return bool.
3749 * objfiles.c (objfile::has_partial_symbols): Return bool.
3750 * dwarf2/read.c (dw2_has_symbols): Return bool.
3751
a8ad4f3c
TT
37522021-03-20 Tom Tromey <tom@tromey.com>
3753
3754 * symfile.c (read_symbols): Update.
3755 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3756 (objfile_has_partial_symbols): Don't declare.
3757 * objfiles.c (objfile::has_partial_symbols): Rename from
3758 objfile_has_partial_symbols.
3759 (objfile_has_symbols, have_partial_symbols): Update.
3760 * elfread.c (elf_symfile_read): Update.
3761 * dwarf2/read.c (dwarf2_has_info): Update.
3762 * coffread.c (coff_symfile_read): Update.
3763
70182375
TT
37642021-03-20 Tom Tromey <tom@tromey.com>
3765
3766 * coffread.c: Include dwarf2/public.h.
3767 * dwarf2/frame.c: Include dwarf2/public.h.
3768 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3769 * dwarf2/public.h: New file.
3770 * dwarf2/read.c: Include dwarf2/public.h.
3771 * elfread.c: Include dwarf2/public.h.
3772 * machoread.c: Include dwarf2/public.h.
3773 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3774 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3775 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3776 * xcoffread.c: Include dwarf2/public.h.
3777
18038e63
TT
37782021-03-20 Tom Tromey <tom@tromey.com>
3779
3780 * symfile.h (enum dwarf2_section_enum)
3781 (dwarf2_get_section_info): Move to dwarf2/read.h.
3782 * dwarf2/read.h (enum dwarf2_section_enum)
3783 (dwarf2_get_section_info): Move from symfile.h.
3784
219f56b4
PA
37852021-03-19 Pedro Alves <pedro@palves.net>
3786
3787 * thread.c (any_thread_of_inferior): Check if there's a selected
3788 thread before calling inferior_thread().
3789
15310fd4
TT
37902021-03-18 Tom Tromey <tromey@adacore.com>
3791
3792 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3793 get_DW_UT_name.
3794 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3795 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3796
763b8efd
AB
37972021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 * python/py-param.c (get_set_value): Update header comment.
3800
f058c521
SM
38012021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3802
3803 * infrun.c (check_multi_target_resumption): Remove argument to
3804 all_non_exited_inferiors.
3805
383228bc
CB
38062021-03-16 Christian Biesinger <cbiesinger@google.com>
3807
3808 * windows-nat.c (windows_init_thread_list): Add message to
3809 debug log.
3810
7807d76a
AB
38112021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3812
3813 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3814 well as PyLong_Check for Python 2.
3815
675da9a5
TT
38162021-03-15 Tom Tromey <tromey@adacore.com>
3817
3818 PR build/27579:
3819 * rust-exp.y (maker_map): Use gdb::hash_enum.
3820 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3821
4800761a
SM
38222021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3823
3824 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3825 end of debug print.
3826
eb5dd737
SM
38272021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3830 parameter, adjust caller.
3831
6813ceb0
TT
38322021-03-15 Tom Tromey <tromey@adacore.com>
3833
3834 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3835
3b5c4de0
TT
38362021-03-15 Tom Tromey <tromey@adacore.com>
3837
3838 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3839 ada_ensure_varsize_limit.
3840
c04da66c
TT
38412021-03-15 Tom Tromey <tromey@adacore.com>
3842
3843 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3844 fixed-point.
3845 * ada-exp.y (maybe_overload): New function.
3846 (ada_wrap_overload): New function.
3847 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3848 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3849 (or_else_exp, xor_exp, primary): Update.
3850
9863c3b5
TT
38512021-03-15 Tom Tromey <tromey@adacore.com>
3852
3853 PR ada/27545:
3854 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3855 call for tagged type.
3856
1ac74522
TT
38572021-03-15 Tom Tromey <tromey@adacore.com>
3858
3859 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3860 assignment.
3861
207582c0
TT
38622021-03-15 Tom Tromey <tromey@adacore.com>
3863
3864 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3865 container.
3866 (ada_assign_operation::evaluate): Update.
3867 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3868 Change return type.
3869
8d624a9d
FW
38702021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3871
3872 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3873
ba6a0ef3
AB
38742021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * python/python.c (gdbpy_source_objfile_script): Use
3877 make_scoped_restore to restore gdbpy_current_objfile.
3878 (gdbpy_execute_objfile_script): Likewise.
3879
7c290a04
TT
38802021-03-14 Tom Tromey <tom@tromey.com>
3881
3882 * dwarf2/read.c (read_attribute_value): Use cu_header
3883 consistently.
3884
0280fdcc
TT
38852021-03-14 Tom Tromey <tom@tromey.com>
3886
3887 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3888 (peek_die_abbrev): Use reader.abfd.
3889
a9f172c6
TT
38902021-03-14 Tom Tromey <tom@tromey.com>
3891
3892 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3893 m_header_read_in.
3894
7c32eebb
TT
38952021-03-13 Tom Tromey <tom@tromey.com>
3896
3897 * dwarf2/read.c (struct partial_die_info): Update.
3898 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3899 (load_partial_dies, partial_die_info::partial_die_info): Update.
3900 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3901
27012aba
TT
39022021-03-13 Tom Tromey <tom@tromey.com>
3903
3904 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3905
fece451c
CB
39062021-03-12 Christian Biesinger <cbiesinger@google.com>
3907
3908 PR threads/27239
3909 * cp-support.c: Use scoped_segv_handler_restore.
3910 * event-top.c (thread_local_segv_handler): Made static.
3911 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3912 New function.
3913 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3914 function.
3915 * event-top.h (class scoped_segv_handler_restore): New class.
3916 (thread_local_segv_handler): Removed.
3917
7056f312
TT
39182021-03-10 Tom Tromey <tromey@adacore.com>
3919
3920 * parser-defs.h (parser_state): Change completion to bool.
3921 <parse_completion>: Likewise.
3922 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3923 (ada_resolve_variable, ada_resolve_function): Update.
3924 * ada-lang.c (ada_find_operator_symbol): Change
3925 parse_completion to bool.
3926 (ada_resolve_funcall, ada_resolve_variable)
3927 (ada_resolve_function): Likewise.
3928
ccdc02ed
TT
39292021-03-09 Tom Tromey <tromey@adacore.com>
3930
3931 * eval.c (operation::evaluate_funcall): Use function formal
3932 parameter types when evaluating.
3933
fbb1aace
AB
39342021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3935
3936 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3937 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3938 and owner to m_owner.
3939
611aa09d
FW
39402021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3941
3942 * f-exp.h (eval_op_f_loc): Declare.
3943 (expr::fortran_loc_operation): New typedef.
3944 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3945 UNOP_INTRINSIC.
3946 (f77_keywords): Add LOC keyword.
3947 * f-lang.c (eval_op_f_loc): New function.
3948 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3949
eef32f59
AB
39502021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3951
3952 * f-exp.h (eval_op_f_array_shape): Declare.
3953 (fortran_array_shape_operation): New type.
3954 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3955 UNOP_INTRINSIC.
3956 (f77_keywords): Add "shape" keyword.
3957 * f-lang.c (fortran_array_shape): New function.
3958 (eval_op_f_array_shape): New function.
3959 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3960
7ba155b3
AB
39612021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3962
3963 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3964 of this function.
3965 (expr::fortran_array_size_1arg): New type.
3966 (expr::fortran_array_size_2arg): Likewise.
3967 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3968 UNOP_OR_BINOP_INTRINSIC.
3969 (f77_keywords): Add "size" keyword.
3970 * f-lang.c (fortran_array_size): New function.
3971 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3972 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3973
e14816a8
AB
39742021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3975
3976 * f-exp.h (eval_op_f_rank): Declare.
3977 (expr::fortran_rank_operation): New typedef.
3978 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3979 UNOP_INTRINSIC.
3980 (f77_keywords): Add "rank" keyword.
3981 * f-lang.c (eval_op_f_rank): New function.
3982 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3983
3dd93bf8
TT
39842021-03-08 Tom Tromey <tom@tromey.com>
3985
3986 * printcmd.c (set_command): Remove null check.
3987 * value.c (init_if_undefined_command): Remove null check.
3988
9c79936b
TT
39892021-03-08 Tom Tromey <tom@tromey.com>
3990
3991 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3992 Update.
3993 * p-exp.y (variable): Update.
3994 * go-exp.y (variable): Update.
3995 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3996 Remove overload for objfile.
3997 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3998 parameter.
3999 (check_objfile): Likewise.
4000 (dump_for_expression): Likewise. Remove overload for objfile.
4001 (class var_msym_value_operation): Use bound_minimal_symbol.
4002 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
4003 parameter.
4004 (var_msym_value_operation::evaluate_for_address)
4005 (var_msym_value_operation::evaluate_for_sizeof)
4006 (var_msym_value_operation::evaluate_for_cast): Update.
4007 * d-exp.y (PrimaryExpression): Update.
4008 * c-exp.y (variable): Update.
4009 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
4010 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4011 Update.
4012 * ada-exp.y (write_var_or_type): Update.
4013
40d07d07
TT
40142021-03-08 Tom Tromey <tom@tromey.com>
4015
4016 * parser-defs.h (exp_uses_objfile): Return bool.
4017 * parse.c (exp_uses_objfile): Return bool.
4018
0b2b0b82
TT
40192021-03-08 Tom Tromey <tom@tromey.com>
4020
4021 * value.h (eval_skip_value): Don't declare.
4022 * opencl-lang.c (eval_opencl_assign): Update.
4023 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
4024 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4025 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
4026 * expression.h (enum noside) <EVAL_SKIP>: Remove.
4027 * expop.h (typeof_operation::evaluate)
4028 (decltype_operation::evaluate, unop_addr_operation::evaluate)
4029 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
4030 (cxx_cast_operation::evaluate): Update.
4031 * eval.c (eval_skip_value): Remove.
4032 (eval_op_scope, eval_op_var_entry_value)
4033 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
4034 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
4035 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
4036 (eval_op_binary, eval_op_subscript, eval_op_equal)
4037 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
4038 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
4039 (eval_op_complement, eval_op_lognot, eval_op_ind)
4040 (eval_op_memval, eval_op_preinc, eval_op_predec)
4041 (eval_op_postinc, eval_op_postdec, eval_op_type)
4042 (eval_binop_assign_modify, eval_op_objc_msgcall)
4043 (eval_multi_subscript, logical_and_operation::evaluate)
4044 (logical_or_operation::evaluate, array_operation::evaluate)
4045 (operation::evaluate_for_cast)
4046 (var_msym_value_operation::evaluate_for_cast)
4047 (var_value_operation::evaluate_for_cast): Update.
4048 * c-lang.c (c_string_operation::evaluate): Update.
4049 * c-exp.h (objc_nsstring_operation::evaluate)
4050 (objc_selector_operation::evaluate): Update.
4051 * ada-lang.c (ada_assign_operation::evaluate)
4052 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4053 (ada_atr_size): Update.
4054
96db551d
TT
40552021-03-08 Tom Tromey <tom@tromey.com>
4056
4057 * eval.c: Merge "namespace" scopes.
4058
ce284361
TT
40592021-03-08 Tom Tromey <tom@tromey.com>
4060
4061 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4062 <release>: Inline.
4063 * parse.c (expr_builder::expr_builder, expr_builder::release):
4064 Remove.
4065
b9d06571
TT
40662021-03-08 Tom Tromey <tom@tromey.com>
4067
4068 * parse.c (expression::expression, expression::~expression):
4069 Remove.
4070 * expression.h (struct expression): Inline constructor. Remove
4071 destructor.
4072
79ab486e
TT
40732021-03-08 Tom Tromey <tom@tromey.com>
4074
4075 * std-operator.def (BINOP_END): Remove.
4076 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4077 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4078 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4079 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4080 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4081 BINOP_END.
4082
48fa6f23
TT
40832021-03-08 Tom Tromey <tom@tromey.com>
4084
4085 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4086
43f542e3
TT
40872021-03-08 Tom Tromey <tom@tromey.com>
4088
4089 * std-operator.def (OP_EXTENDED0): Remove.
4090
5d9ba982
TT
40912021-03-08 Tom Tromey <tom@tromey.com>
4092
4093 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4094 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4095 Remove.
4096
d357570d
TT
40972021-03-08 Tom Tromey <tom@tromey.com>
4098
4099 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4100 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4101
0922dc84
TT
41022021-03-08 Tom Tromey <tom@tromey.com>
4103
4104 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4105 * ada-lang.c (ada_binop_minmax): Update.
4106 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4107 Use BINOP_MIN and BINOP_MAX.
4108
1eaebe02
TT
41092021-03-08 Tom Tromey <tom@tromey.com>
4110
4111 * value.h (evaluate_subexp_with_coercion): Don't declare.
4112 * parse.c (exp_descriptor_standard): Remove.
4113 (expr_builder::expr_builder, expr_builder::release): Update.
4114 (expression::expression): Remove size_t parameter.
4115 (expression::~expression): Simplify.
4116 (expression::resize): Remove.
4117 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4118 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4119 (write_exp_elt_longcst, write_exp_elt_floatcst)
4120 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4121 (write_exp_string_vector, write_exp_bitstring): Remove.
4122 * p-lang.h (class pascal_language) <opcode_print_table,
4123 op_print_tab>: Remove.
4124 * p-lang.c (pascal_language::op_print_tab): Remove.
4125 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4126 Remove.
4127 * objc-lang.c (objc_op_print_tab): Remove.
4128 (class objc_language) <opcode_print_table>: Remove.
4129 * m2-lang.h (class m2_language) <opcode_print_table,
4130 op_print_tab>: Remove.
4131 * m2-lang.c (m2_language::op_print_tab): Remove.
4132 * language.h (struct language_defn) <post_parser, expression_ops,
4133 opcode_print_table>: Remove.
4134 * language.c (language_defn::expression_ops)
4135 (auto_or_unknown_language::opcode_print_table): Remove.
4136 * go-lang.h (class go_language) <opcode_print_table,
4137 op_print_tab>: Remove.
4138 * go-lang.c (go_language::op_print_tab): Remove.
4139 * f-lang.h (class f_language) <opcode_print_table>: Remove
4140 <op_print_tab>: Remove.
4141 * f-lang.c (f_language::op_print_tab): Remove.
4142 * expression.h (union exp_element): Remove.
4143 (struct expression): Remove size_t parameter from constructor.
4144 <resize>: Remove.
4145 <first_opcode>: Update.
4146 <nelts, elts>: Remove.
4147 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4148 (evaluate_subexp_standard, print_expression, op_string)
4149 (dump_raw_expression): Don't declare.
4150 * expprint.c (print_expression, print_subexp)
4151 (print_subexp_funcall, print_subexp_standard, op_string)
4152 (dump_raw_expression, dump_subexp, dump_subexp_body)
4153 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4154 (dump_prefix_expression): Update.
4155 * eval.c (evaluate_subexp): Remove.
4156 (evaluate_expression, evaluate_type): Update.
4157 (evaluate_subexpression_type): Remove.
4158 (fetch_subexp_value): Remove "pc" parameter. Update.
4159 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4160 (evaluate_subexp_standard, evaluate_subexp_for_address)
4161 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4162 (evaluate_subexp_for_cast): Remove.
4163 (parse_and_eval_type): Update.
4164 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4165 * d-lang.c (d_op_print_tab): Remove.
4166 (class d_language) <opcode_print_table>: Remove.
4167 * c-lang.h (c_op_print_tab): Don't declare.
4168 * c-lang.c (c_op_print_tab): Remove.
4169 (class c_language, class cplus_language, class asm_language, class
4170 minimal_language) <opcode_print_table>: Remove.
4171 * breakpoint.c (update_watchpoint, watchpoint_check)
4172 (watchpoint_exp_is_const, watch_command_1): Update.
4173 * ax-gdb.h (union exp_element): Don't declare.
4174 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4175 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4176 (gen_expr_binop_rest): Remove.
4177 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4178 * ada-lang.c (ada_op_print_tab): Remove.
4179 (class ada_language) <post_parser, opcode_print_table>: Remove.
4180
f2a98603
TT
41812021-03-08 Tom Tromey <tom@tromey.com>
4182
4183 * go-lang.c (go_language::expression_ops): Don't declare.
4184 * go-lang.h (class go_language) <expression_ops>: Remove.
4185 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4186 Remove.
4187 (class opencl_language) <expression_ops>: Remove.
4188 * d-lang.c (class d_language) <expression_ops>: Remove.
4189 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4190 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4191 (class c_language, class cplus_language, class asm_language)
4192 (class minimal_language) <expression_ops>: Remove.
4193
d3c54a1c
TT
41942021-03-08 Tom Tromey <tom@tromey.com>
4195
4196 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4197 (evaluate_subexp_type, assign_aggregate)
4198 (aggregate_assign_positional, aggregate_assign_from_choices)
4199 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4200 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4201 (ada_operator_check, ada_forward_operator_length)
4202 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4203 Remove.
4204 (post_parser): Update.
4205 (class ada_language) <expresssion_ops>: Remove.
4206
5871f0a3
TT
42072021-03-08 Tom Tromey <tom@tromey.com>
4208
4209 * m2-lang.h (class m2_language) <expresssion_ops,
4210 exp_descriptor_modula2>: Remove.
4211 * m2-lang.c (evaluate_subexp_modula2)
4212 (m2_language::exp_descriptor_modula2): Remove.
4213
a99be8c1
TT
42142021-03-08 Tom Tromey <tom@tromey.com>
4215
4216 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4217 <exp_descriptor_tab>: Remove.
4218 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4219 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4220 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4221 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4222 Remove.
4223
aa1da9ed
TT
42242021-03-08 Tom Tromey <tom@tromey.com>
4225
4226 * rust-lang.h (class rust_language) <expression_ops,
4227 exp_descriptor_tab>: Remove.
4228 * rust-lang.c (rust_evaluate_funcall): Remove.
4229 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4230 EVAL_SKIP.
4231 (rust_evaluate_subexp): Remove.
4232 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4233 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4234 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4235
08a057e6
TT
42362021-03-08 Tom Tromey <tom@tromey.com>
4237
4238 * ada-exp.y: Create operations.
4239 (empty_stoken): Remove.
4240 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4241 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4242 (components): New global.
4243 (push_component, choice_component, pop_component, pop_components):
4244 New functions.
4245 (associations): New global
4246 (push_association, pop_association, pop_associations): New
4247 functions.
4248 (ada_parse): Update.
4249 (write_var_from_sym, write_int): Create operations.
4250 (write_exp_op_with_string): Remove.
4251 (write_object_renaming, write_selectors, write_ambiguous_var)
4252 (write_var_or_type, write_name_assoc): Create operations.
4253 * ada-lang.h (ada_index_type): Declare.
4254 * ada-lang.c (ada_index_type): No longer static.
4255
d308ba78
TT
42562021-03-08 Tom Tromey <tom@tromey.com>
4257
4258 * f-exp.y: Create operations.
4259 (f_language::parser): Update.
4260
f1b8ceef
TT
42612021-03-08 Tom Tromey <tom@tromey.com>
4262
4263 * m2-exp.y: Create operations.
4264 (m2_language::parser): Update.
4265
3163898e
TT
42662021-03-08 Tom Tromey <tom@tromey.com>
4267
4268 * p-exp.y: Create operations.
4269 (pascal_language::parser): Update.
4270
9412fdcc
TT
42712021-03-08 Tom Tromey <tom@tromey.com>
4272
4273 * d-exp.y: Create operations.
4274 (d_parse): Update.
4275
bb4e0574
TT
42762021-03-08 Tom Tromey <tom@tromey.com>
4277
4278 * go-exp.y: Create operations.
4279 (go_language::parser): Update.
4280
d182f279
TT
42812021-03-08 Tom Tromey <tom@tromey.com>
4282
4283 * objc-lang.c (end_msglist): Create operations.
4284 * c-exp.y: Change parser to create operations.
4285 (write_destructor_name): Remove.
4286 (c_parse): Update.
4287
c1299a23
TT
42882021-03-08 Tom Tromey <tom@tromey.com>
4289
4290 * rust-exp.y: Create operations.
4291 (rust_parser::convert_params_to_expression): Change return type.
4292 (binop_maker_ftype): New typedef.
4293 (maker_map): New global.
4294 (rust_parser::convert_ast_to_expression): Change return type.
4295 (rust_language::parser): Update.
4296 (_initialize_rust_exp): Initialize maker_map.
4297
4c5e7a93
TT
42982021-03-08 Tom Tromey <tom@tromey.com>
4299
4300 * stap-probe.c (binop_maker_ftype): New typedef.
4301 (stap_maker_map): New global.
4302 (stap_make_binop): New function.
4303 (stap_parse_register_operand): Return operation_up.
4304 (stap_parse_single_operand, stap_parse_argument_conditionally)
4305 (stap_parse_argument_1): Likewise.
4306 (stap_parse_argument): Create operations.
4307 (stap_probe::parse_arguments): Update.
4308 (_initialize_stap_probe): Initialize stap_maker_map.
4309 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4310 type.
4311 * i386-tdep.h (i386_stap_parse_special_token): Change return
4312 type.
4313 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4314 (i386_stap_parse_special_token_three_arg_disp)
4315 (i386_stap_parse_special_token): Change return type.
4316 * gdbarch.sh (stap_parse_special_token): Change return type.
4317 * gdbarch.c: Rebuild.
4318 * gdbarch.h: Rebuild.
4319 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4320 type.
4321 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4322 return type.
4323
482ddd69
TT
43242021-03-08 Tom Tromey <tom@tromey.com>
4325
4326 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4327 * gdbarch.h: Rebuild.
4328 * gdbarch.c: Rebuild.
4329 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4330 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4331 return type.
4332 (amd64_dtrace_parse_probe_argument): Update.
4333
8227d9e2
TT
43342021-03-08 Tom Tromey <tom@tromey.com>
4335
4336 * parser-defs.h (struct parser_state) <push, push_new,
4337 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4338 wrap2>: New methods.
4339 <m_operations>: New member.
4340 * parse.c (parser_state::push_c_string)
4341 (parser_state::push_symbol, parser_state::push_dollar): New
4342 methods.
4343
4933522d
TT
43442021-03-08 Tom Tromey <tom@tromey.com>
4345
4346 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4347 New member.
4348 (struct parser_state) <mark_struct_expression>: New method.
4349 * parse.c (parser_state::mark_struct_expression): Update assert.
4350 (parser_state::mark_struct_expression): New method.
4351 (parser_state::mark_completion_tag): Update assert.
4352 (parse_expression_for_completion): Handle expout_last_op.
4353
413403fc
TT
43542021-03-08 Tom Tromey <tom@tromey.com>
4355
4356 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4357 now in superclass.
4358 * value.h (fetch_subexp_value): Add "op" parameter.
4359 * value.c (init_if_undefined_command): Update.
4360 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4361 * stap-probe.c (stap_probe::compile_to_ax): Update.
4362 * printcmd.c (set_command): Update.
4363 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4364 Update.
4365 * parser-defs.h (struct expr_builder) <set_operation>: New
4366 method.
4367 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4368 * expression.h (struct expression) <first_opcode>: Update.
4369 <op>: New member.
4370 * expprint.c (dump_raw_expression, dump_prefix_expression):
4371 Update.
4372 * expop.h (class var_value_operation) <get_symbol>: New method.
4373 (class register_operation) <get_name>: New method.
4374 (class equal_operation): No longer a typedef, now a subclass.
4375 (class unop_memval_operation) <get_type>: New method.
4376 (class assign_operation) <get_lhs>: New method.
4377 (class unop_cast_operation) <get_type>: New method.
4378 * eval.c (evaluate_expression, evaluate_type)
4379 (evaluate_subexpression_type): Update.
4380 (fetch_subexp_value): Add "op" parameter.
4381 (parse_and_eval_type): Update.
4382 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4383 * breakpoint.c (update_watchpoint, watchpoint_check)
4384 (watchpoint_exp_is_const, watch_command_1): Update.
4385 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4386 Update.
4387
b0f9164c
TT
43882021-03-08 Tom Tromey <tom@tromey.com>
4389
4390 * ada-lang.c (ada_value_binop): Do not use op_string.
4391
a88c4354
TT
43922021-03-08 Tom Tromey <tom@tromey.com>
4393
4394 * expprint.c (dump_for_expression): New overload.
4395 * expop.h (check_objfile, dump_for_expression): Declare new
4396 overloads.
4397 * ada-lang.c (check_objfile): New overload.
4398 (assign_component, ada_aggregate_component::uses_objfile)
4399 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4400 (ada_aggregate_component::assign_aggregate)
4401 (ada_positional_component::uses_objfile)
4402 (ada_positional_component::dump, ada_positional_component::assign)
4403 (ada_discrete_range_association::uses_objfile)
4404 (ada_discrete_range_association::dump)
4405 (ada_discrete_range_association::assign)
4406 (ada_name_association::uses_objfile, ada_name_association::dump)
4407 (ada_name_association::assign)
4408 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4409 (ada_choices_component::assign)
4410 (ada_others_component::uses_objfile, ada_others_component::dump)
4411 (ada_others_component::assign, ada_assign_operation::evaluate):
4412 New methods.
4413 * ada-exp.h (ada_string_operation) <get_name>: New method.
4414 (class ada_assign_operation): New.
4415 (class ada_component): New.
4416 (ada_component_up): New typedef.
4417 (class ada_aggregate_operation, class ada_aggregate_component)
4418 (class ada_positional_component, class ada_others_component)
4419 (class ada_association): New.
4420 (ada_association_up): New typedef.
4421 (class ada_choices_component)
4422 (class ada_discrete_range_association)
4423 (class ada_name_association): New.
4424
d8a4ed8a
TT
44252021-03-08 Tom Tromey <tom@tromey.com>
4426
4427 * ada-lang.c (ada_var_value_operation::resolve)
4428 (ada_funcall_operation::resolve)
4429 (ada_ternop_slice_operation::resolve): New methods.
4430 * ada-exp.h (struct ada_resolvable): New.
4431 (class ada_var_value_operation): Derive from ada_resolvable.
4432 <get_block, resolve>: New methods.
4433 (class ada_funcall_operation): Derive from ada_resolvable.
4434 <resolve>: New method.
4435 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4436 <resolve>: New method.
4437
efe3af2f
TT
44382021-03-08 Tom Tromey <tom@tromey.com>
4439
4440 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4441 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4442 method.
4443 (class ada_funcall_operation): New.
4444
ebc06ad8
TT
44452021-03-08 Tom Tromey <tom@tromey.com>
4446
4447 * ada-lang.c (ada_structop_operation::evaluate): New method.
4448 * ada-exp.h (class ada_structop_operation): New.
4449
e8c33fa1
TT
44502021-03-08 Tom Tromey <tom@tromey.com>
4451
4452 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4453 * ada-exp.h (class ada_unop_ind_operation): New.
4454
065ec826
TT
44552021-03-08 Tom Tromey <tom@tromey.com>
4456
4457 * ada-lang.c (ada_binop_exp): No longer static.
4458 * ada-exp.h (ada_binop_exp_operation): New typedef.
4459
9e99f48f
TT
44602021-03-08 Tom Tromey <tom@tromey.com>
4461
4462 * ada-lang.c (ada_val_atr): No longer static.
4463 (ada_atr_val_operation::evaluate): New method.
4464 * ada-exp.h (class ada_atr_val_operation): New.
4465
7631cf6c
TT
44662021-03-08 Tom Tromey <tom@tromey.com>
4467
4468 * ada-lang.c (ada_pos_atr): No longer static.
4469 * ada-exp.h (ada_pos_operation): New typedef.
4470
7992accc
TT
44712021-03-08 Tom Tromey <tom@tromey.com>
4472
4473 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4474 parameters.
4475 (ada_evaluate_subexp): Use it.
4476
6ad3b8bf
TT
44772021-03-08 Tom Tromey <tom@tromey.com>
4478
4479 * ada-lang.c (ada_binop_minmax): No longer static.
4480 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4481 New typedefs.
4482
3f4a0053
TT
44832021-03-08 Tom Tromey <tom@tromey.com>
4484
4485 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4486 New method.
4487 * ada-exp.h (class ada_var_msym_value_operation): New.
4488
99a3b1e7
TT
44892021-03-08 Tom Tromey <tom@tromey.com>
4490
4491 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4492 (ada_var_value_operation::evaluate): New methods.
4493 * ada-exp.h (class ada_var_value_operation): New.
4494
60fa02ca
TT
44952021-03-08 Tom Tromey <tom@tromey.com>
4496
4497 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4498 * ada-exp.h (class ada_unop_atr_operation): New.
4499
82c3886e
TT
45002021-03-08 Tom Tromey <tom@tromey.com>
4501
4502 * ada-lang.c (ada_binop_in_bounds): No longer static.
4503 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4504
1b1ebfab
TT
45052021-03-08 Tom Tromey <tom@tromey.com>
4506
4507 * ada-lang.c (ada_ternop_slice): No longer static.
4508 * ada-exp.h (class ada_ternop_slice_operation): New.
4509
039e4b76
TT
45102021-03-08 Tom Tromey <tom@tromey.com>
4511
4512 * ada-exp.h (ada_bitwise_operation): New template class.
4513 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4514 (ada_bitwise_xor_operation): New typedefs.
4515
6e8fb7b7
TT
45162021-03-08 Tom Tromey <tom@tromey.com>
4517
4518 * ada-lang.c (ada_equal_binop): No longer static.
4519 * ada-exp.h (class ada_binop_equal_operation): New.
4520
d9e7db06
TT
45212021-03-08 Tom Tromey <tom@tromey.com>
4522
4523 * ada-lang.c (ada_mult_binop): No longer static.
4524 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4525 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4526
73796c73
TT
45272021-03-08 Tom Tromey <tom@tromey.com>
4528
4529 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4530 * ada-exp.h (class ada_binop_addsub_operation): New.
4531
cd9a3148
TT
45322021-03-08 Tom Tromey <tom@tromey.com>
4533
4534 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4535 (ada_resolve_variable): Declare.
4536 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4537 (ada_resolve_variable): New functions.
4538 (resolve_subexp): Update.
4539
cf12b17f
TT
45402021-03-08 Tom Tromey <tom@tromey.com>
4541
4542 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4543 method.
4544 * c-exp.h (class opencl_ternop_cond_operation): New.
4545
944fd3b8
TT
45462021-03-08 Tom Tromey <tom@tromey.com>
4547
4548 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4549 method.
4550 * c-exp.h (class opencl_logical_binop_operation): New.
4551
33b79214
TT
45522021-03-08 Tom Tromey <tom@tromey.com>
4553
4554 * opencl-lang.c (opencl_structop_operation::evaluate): New
4555 method.
4556 * c-exp.h (class opencl_structop_operation): New.
4557
2492ba36
TT
45582021-03-08 Tom Tromey <tom@tromey.com>
4559
4560 * opencl-lang.c (opencl_logical_not): No longer static. Change
4561 parameters.
4562 (evaluate_subexp_opencl): Update.
4563 * c-exp.h (opencl_notequal_operation): New typedef.
4564
a88c3c8d
TT
45652021-03-08 Tom Tromey <tom@tromey.com>
4566
4567 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4568 static. Change parameters.
4569 (eval_opencl_assign): No longer static. Add "op" parameter.
4570 (evaluate_subexp_opencl): Update.
4571 * c-exp.h (opencl_binop_operation): New template class.
4572 (opencl_assign_operation, opencl_equal_operation)
4573 (opencl_notequal_operation, opencl_less_operation)
4574 (opencl_gtr_operation, opencl_geq_operation)
4575 (opencl_leq_operation): New typedefs.
4576
e9677704
TT
45772021-03-08 Tom Tromey <tom@tromey.com>
4578
4579 * opencl-lang.c (opencl_value_cast): No longer static.
4580 * c-exp.h (opencl_cast_type_operation): New typedef.
4581
f403a4e4
TT
45822021-03-08 Tom Tromey <tom@tromey.com>
4583
4584 * f-exp.h (eval_op_f_allocated): Declare.
4585 (fortran_allocated_operation): New typedef.
4586 * f-lang.c (eval_op_f_allocated): No longer static.
4587
eb4c9271
TT
45882021-03-08 Tom Tromey <tom@tromey.com>
4589
4590 * f-lang.c (eval_op_f_associated): New functions.
4591 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4592 typedefs.
4593
58a76c72
TT
45942021-03-08 Tom Tromey <tom@tromey.com>
4595
4596 * f-lang.c (fortran_bound_1arg::evaluate)
4597 (fortran_bound_2arg::evaluate): New methods.
4598 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4599 New.
4600
2f98abe1
TT
46012021-03-08 Tom Tromey <tom@tromey.com>
4602
4603 * expop.h (class unop_addr_operation) <get_expression>: New
4604 method.
4605 * f-lang.c (fortran_undetermined::value_subarray)
4606 (fortran_undetermined::evaluate): New methods.
4607 (fortran_prepare_argument): New overload.
4608 * f-exp.h (class fortran_range_operation)
4609 (class fortran_undetermined): New classes.
4610
638fd74a
TT
46112021-03-08 Tom Tromey <tom@tromey.com>
4612
4613 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4614 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4615 method.
4616
a00b7254
TT
46172021-03-08 Tom Tromey <tom@tromey.com>
4618
4619 * expression.h (class operation) <evaluate_funcall>: New methods.
4620 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4621 (class var_value_operation) <evaluate_funcall>: New method.
4622 (class structop_base_operation) <evaluate_funcall>: New method.
4623 (class var_msym_value_operation) <evaluate_funcall>: New method.
4624 (class structop_member_base): New class.
4625 (class structop_member_operation): Derive from
4626 structop_member_base.
4627 (class structop_mptr_operation): Derive from
4628 structop_member_base.
4629 (class funcall_operation): New class.
4630 * eval.c (operation::evaluate_funcall)
4631 (var_value_operation::evaluate_funcall)
4632 (scope_operation::evaluate_funcall)
4633 (structop_member_base::evaluate_funcall)
4634 (structop_base_operation::evaluate_funcall): New methods.
4635
1c02eb30
TT
46362021-03-08 Tom Tromey <tom@tromey.com>
4637
4638 * expop.h (class array_operation): New.
4639 * eval.c (array_operation::evaluate_struct_tuple)
4640 (array_operation::evaluate): New methods.
4641
e4479080
TT
46422021-03-08 Tom Tromey <tom@tromey.com>
4643
4644 * expop.h (class adl_func_operation): New.
4645 * eval.c (adl_func_operation::evaluate): New method.
4646
95d49dfb
TT
46472021-03-08 Tom Tromey <tom@tromey.com>
4648
4649 * ada-lang.c (ada_unop_in_range): No longer static.
4650 * ada-exp.h (class ada_unop_range_operation): New.
4651
7c15d377
TT
46522021-03-08 Tom Tromey <tom@tromey.com>
4653
4654 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4655 No longer static.
4656 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4657 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4658
5019124b
TT
46592021-03-08 Tom Tromey <tom@tromey.com>
4660
4661 * expop.h (class logical_and_operation)
4662 (class logical_or_operation): New.
4663 * eval.c (logical_and_operation::evaluate)
4664 (logical_or_operation::evaluate): New methods.
4665 * ax-gdb.c (logical_and_operation::do_generate_ax)
4666 (logical_or_operation::do_generate_ax): New methods.
4667
2bc9b40c
TT
46682021-03-08 Tom Tromey <tom@tromey.com>
4669
4670 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4671 static.
4672 * m2-exp.h: New file.
4673
5947d337
TT
46742021-03-08 Tom Tromey <tom@tromey.com>
4675
4676 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4677 * rust-exp.h (class rust_aggregate_operation): New.
4678
e4407a20
TT
46792021-03-08 Tom Tromey <tom@tromey.com>
4680
4681 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4682 No longer static.
4683 * rust-exp.h (class rust_struct_anon): New.
4684 (class rust_structop): New.
4685
9db6b6dd
TT
46862021-03-08 Tom Tromey <tom@tromey.com>
4687
4688 * rust-lang.c (rust_range): No longer static.
4689 * rust-exp.h (class rust_range_operation): New.
4690
6ce1ad67
TT
46912021-03-08 Tom Tromey <tom@tromey.com>
4692
4693 * rust-lang.c (rust_subscript): No longer static.
4694 * rust-exp.h (class rust_subscript_operation): New.
4695
11dd3dce
TT
46962021-03-08 Tom Tromey <tom@tromey.com>
4697
4698 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4699 parameter.
4700 (rust_evaluate_subexp): Update.
4701 * rust-exp.h (class rust_unop_ind_operation): New.
4702
6fab4359
TT
47032021-03-08 Tom Tromey <tom@tromey.com>
4704
4705 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4706 longer static. Add "opcode" parameter.
4707 (rust_evaluate_subexp): Update.
4708 * rust-exp.h: New file.
4709
9dcd3e29
TT
47102021-03-08 Tom Tromey <tom@tromey.com>
4711
4712 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4713 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4714 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4715 (evaluate_subexp_f): Update.
4716 * f-exp.h: New file.
4717
fc715eb2
TT
47182021-03-08 Tom Tromey <tom@tromey.com>
4719
4720 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4721 * ada-exp.h (class ada_ternop_range_operation): New.
4722
cc6bd32e
TT
47232021-03-08 Tom Tromey <tom@tromey.com>
4724
4725 * ada-lang.c (ada_qual_operation::evaluate): New method.
4726 * ada-exp.h (class ada_qual_operation): New.
4727
42fecb61
TT
47282021-03-08 Tom Tromey <tom@tromey.com>
4729
4730 * ada-lang.c (ada_string_operation::evaluate): New method.
4731 * ada-exp.h (class ada_string_operation): New.
4732
03070ee9
TT
47332021-03-08 Tom Tromey <tom@tromey.com>
4734
4735 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4736 * ada-exp.h: New file.
4737
821e72d7
TT
47382021-03-08 Tom Tromey <tom@tromey.com>
4739
4740 * expop.h (class multi_subscript_operation): New.
4741 * eval.c (multi_subscript_operation::evaluate): New method.
4742
085734dd
TT
47432021-03-08 Tom Tromey <tom@tromey.com>
4744
4745 * eval.c (objc_msgcall_operation::evaluate): New method.
4746 * c-exp.h (class objc_msgcall_operation): New.
4747
e82a5afc
TT
47482021-03-08 Tom Tromey <tom@tromey.com>
4749
4750 * expop.h (class var_value_operation): New.
4751 * eval.c (var_value_operation::evaluate)
4752 (var_value_operation::evaluate_for_address)
4753 (var_value_operation::evaluate_with_coercion)
4754 (var_value_operation::evaluate_for_sizeof)
4755 (var_value_operation::evaluate_for_cast): New methods.
4756 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4757
d9ad79d8
TT
47582021-03-08 Tom Tromey <tom@tromey.com>
4759
4760 * expop.h (cxx_cast_ftype): New typedef.
4761 (cxx_cast_operation): New template.
4762 (dynamic_cast_operation, reinterpret_cast_operation): New
4763 typedefs.
4764
292382f4
TT
47652021-03-08 Tom Tromey <tom@tromey.com>
4766
4767 * expop.h (class unop_cast_type_operation): New.
4768 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4769 method.
4770
165a813a
TT
47712021-03-08 Tom Tromey <tom@tromey.com>
4772
4773 * expop.h (class unop_cast_operation): New.
4774 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4775
e5946e16
TT
47762021-03-08 Tom Tromey <tom@tromey.com>
4777
4778 * expop.h (class assign_modify_operation): New.
4779 * eval.c (eval_binop_assign_modify): No longer static.
4780 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4781
40786782
TT
47822021-03-08 Tom Tromey <tom@tromey.com>
4783
4784 * expop.h (class assign_operation): New.
4785 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4786
44b675c8
TT
47872021-03-08 Tom Tromey <tom@tromey.com>
4788
4789 * expop.h (class type_instance_operation): New.
4790 * eval.c (type_instance_operation::evaluate): New method.
4791
f6b42326
TT
47922021-03-08 Tom Tromey <tom@tromey.com>
4793
4794 * expop.h (class op_this_operation): New.
4795 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4796
cbc18219
TT
47972021-03-08 Tom Tromey <tom@tromey.com>
4798
4799 * expop.h (class unop_memval_operation)
4800 (class unop_memval_type_operation): New.
4801 * eval.c (eval_op_memval): No longer static.
4802 (unop_memval_operation::evaluate_for_address)
4803 (unop_memval_type_operation::evaluate_for_address)
4804 (unop_memval_operation::evaluate_for_sizeof)
4805 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4806 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4807 (unop_memval_type_operation::do_generate_ax): New methods.
4808
ae4bb61e
TT
48092021-03-08 Tom Tromey <tom@tromey.com>
4810
4811 * expop.h (class unop_alignof_operation): New.
4812 * eval.c (eval_op_alignof): No longer static.
4813
85d23bda
TT
48142021-03-08 Tom Tromey <tom@tromey.com>
4815
4816 * expop.h (class unop_sizeof_operation): New.
4817 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4818
14aff815
TT
48192021-03-08 Tom Tromey <tom@tromey.com>
4820
4821 * expop.h (class unop_addr_operation): New.
4822 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4823
929f3aa7
TT
48242021-03-08 Tom Tromey <tom@tromey.com>
4825
4826 * expop.h (class typeid_operation): New.
4827
0af8829e
TT
48282021-03-08 Tom Tromey <tom@tromey.com>
4829
4830 * expop.h (class decltype_operation): New.
4831
4efc574c
TT
48322021-03-08 Tom Tromey <tom@tromey.com>
4833
4834 * expop.h (class typeof_operation): New.
4835
5b5f5140
TT
48362021-03-08 Tom Tromey <tom@tromey.com>
4837
4838 * expop.h (class type_operation): New.
4839 * eval.c (eval_op_type): No longer static.
4840
876469ff
TT
48412021-03-08 Tom Tromey <tom@tromey.com>
4842
4843 * expop.h (class unop_ind_base_operation)
4844 (class unop_ind_operation): New.
4845 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4846 (unop_ind_base_operation::evaluate_for_address)
4847 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4848 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4849
6d89e296
TT
48502021-03-08 Tom Tromey <tom@tromey.com>
4851
4852 * expop.h (unop_incr_operation): New template.
4853 (preinc_operation, predec_operation, postinc_operation)
4854 (postdec_operation): New typedefs.
4855 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4856 (eval_op_postdec): No longer static.
4857
9307d17b
TT
48582021-03-08 Tom Tromey <tom@tromey.com>
4859
4860 * expop.h (unary_ftype): New typedef.
4861 (unop_operation, usual_ax_binop_operation): New templates.
4862 (unary_plus_operation, unary_neg_operation)
4863 (unary_complement_operation, unary_logical_not_operation): New
4864 typedefs.
4865 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4866 (eval_op_lognot): No longer static.
4867 * ax-gdb.c (gen_expr_unop): New function.
4868
ae64ba58
TT
48692021-03-08 Tom Tromey <tom@tromey.com>
4870
4871 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4872
d4eff4c1
TT
48732021-03-08 Tom Tromey <tom@tromey.com>
4874
4875 * expop.h (class repeat_operation): New.
4876 * eval.c (eval_op_repeat): No longer static. Remove "op"
4877 parameter.
4878 (evaluate_subexp_standard): Update.
4879 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4880
46916f2b
TT
48812021-03-08 Tom Tromey <tom@tromey.com>
4882
4883 * expop.h (class comparison_operation): New.
4884 (equal_operation, notequal_operation, less_operation)
4885 (gtr_operation, geq_operation, leq_operation): New typedefs.
4886 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4887 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4888
224d6424
TT
48892021-03-08 Tom Tromey <tom@tromey.com>
4890
4891 * expop.h (class subscript_operation): New.
4892 * eval.c (eval_op_subscript): No longer static.
4893
373907ff
TT
48942021-03-08 Tom Tromey <tom@tromey.com>
4895
4896 * expop.h (class binop_operation, class usual_ax_binop_operation):
4897 New.
4898 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4899 (div_operation, rem_operation, lsh_operation, rsh_operation)
4900 (bitwise_and_operation, bitwise_ior_operation)
4901 (bitwise_xor_operation): New typedefs.
4902 * eval.c (eval_op_binary): No longer static.
4903
5133d78b
TT
49042021-03-08 Tom Tromey <tom@tromey.com>
4905
4906 * expop.h (class sub_operation): New.
4907 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4908 (evaluate_subexp_standard): Update.
4909
a94323b6
TT
49102021-03-08 Tom Tromey <tom@tromey.com>
4911
4912 * expop.h (class add_operation): New.
4913 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4914 (evaluate_subexp_standard): Update.
4915
e51e26a0
TT
49162021-03-08 Tom Tromey <tom@tromey.com>
4917
4918 * expop.h (class concat_operation): New.
4919 * eval.c (eval_op_concat): No longer static. Remove "op"
4920 parameter.
4921 (evaluate_subexp_standard): Update.
4922
07f724a8
TT
49232021-03-08 Tom Tromey <tom@tromey.com>
4924
4925 * expop.h (class structop_member_operation)
4926 (class structop_mptr_operation): New.
4927 * eval.c (eval_op_member): No longer static.
4928
ab0609be
TT
49292021-03-08 Tom Tromey <tom@tromey.com>
4930
4931 * expop.h (class structop_ptr_operation): New.
4932 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4933 parameter.
4934
808b22cf
TT
49352021-03-08 Tom Tromey <tom@tromey.com>
4936
4937 * expop.h (class structop_base_operation)
4938 (class structop_operation): New.
4939 * eval.c (eval_op_structop_struct): No longer static.
4940
8cfd3e95
TT
49412021-03-08 Tom Tromey <tom@tromey.com>
4942
4943 * expop.h (class complex_operation): New.
4944
09db3700
TT
49452021-03-08 Tom Tromey <tom@tromey.com>
4946
4947 * eval.c (eval_op_objc_selector): No longer static.
4948 * c-exp.h (class objc_selector_operation): New.
4949
06dc61b9
TT
49502021-03-08 Tom Tromey <tom@tromey.com>
4951
4952 * eval.c: Include c-exp.h.
4953 * c-exp.h (class objc_nsstring_operation): New.
4954
72d0a711
TT
49552021-03-08 Tom Tromey <tom@tromey.com>
4956
4957 * c-lang.c (c_string_operation::evaluate): New method.
4958 * c-exp.h: New file.
4959
9186293f
TT
49602021-03-08 Tom Tromey <tom@tromey.com>
4961
4962 * expop.h (class ternop_cond_operation): New.
4963 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4964
1594e0bb
TT
49652021-03-08 Tom Tromey <tom@tromey.com>
4966
4967 * expop.h (class ternop_slice_operation): New.
4968 * eval.c (eval_op_ternop): No longer static.
4969
b50db09f
TT
49702021-03-08 Tom Tromey <tom@tromey.com>
4971
4972 * expop.h (class string_operation): New.
4973 * eval.c (eval_op_string): No longer static.
4974
e6e01e16
TT
49752021-03-08 Tom Tromey <tom@tromey.com>
4976
4977 * expop.h (class internalvar_operation): New.
4978 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4979
e6985c5e
TT
49802021-03-08 Tom Tromey <tom@tromey.com>
4981
4982 * expop.h (class bool_operation): New.
4983
55bdbff8
TT
49842021-03-08 Tom Tromey <tom@tromey.com>
4985
4986 * expop.h (class register_operation): New.
4987 * eval.c (eval_op_register): No longer static.
4988 * ax-gdb.c (register_operation::do_generate_ax): New method.
4989
247d935b
TT
49902021-03-08 Tom Tromey <tom@tromey.com>
4991
4992 * expop.h (class last_operation): New.
4993
17679395
TT
49942021-03-08 Tom Tromey <tom@tromey.com>
4995
4996 * expop.h (class func_static_var_operation): New.
4997 * eval.c (eval_op_func_static_var): No longer static.
4998
b5cc3923
TT
49992021-03-08 Tom Tromey <tom@tromey.com>
5000
5001 * expop.h (class var_entry_value_operation): New.
5002 * eval.c (eval_op_var_entry_value): No longer static.
5003
0c8effa3
TT
50042021-03-08 Tom Tromey <tom@tromey.com>
5005
5006 * expression.h (class operation) <set_outermost>: New method.
5007 * expop.h (class var_msym_value_operation): New.
5008 * eval.c (eval_op_var_msym_value): No longer static.
5009 (var_msym_value_operation::evaluate_for_address)
5010 (var_msym_value_operation::evaluate_for_sizeof)
5011 (var_msym_value_operation::evaluate_for_cast): New methods.
5012 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
5013 method.
5014
d336c29e
TT
50152021-03-08 Tom Tromey <tom@tromey.com>
5016
5017 * expop.h (class long_const_operation): New.
5018 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
5019
d5ab122c
TT
50202021-03-08 Tom Tromey <tom@tromey.com>
5021
5022 * expop.h (class scope_operation): New.
5023 * eval.c (eval_op_scope): No longer static.
5024 (scope_operation::evaluate_for_address): New method.
5025 * ax-gdb.c (scope_operation::do_generate_ax): New method.
5026
cae26a0c
TT
50272021-03-08 Tom Tromey <tom@tromey.com>
5028
5029 * expprint.c (float_const_operation::dump): New method.
5030 * expop.h (float_data): New typedef.
5031 (class float_const_operation): New.
5032
75f9892d
TT
50332021-03-08 Tom Tromey <tom@tromey.com>
5034
5035 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
5036 * ax-gdb.c (gen_expr_binop): New function.
5037 (gen_expr_structop): Likewise.
5038
de401988
TT
50392021-03-08 Tom Tromey <tom@tromey.com>
5040
5041 * expprint.c (expr::dump_for_expression): New functions.
5042 * expop.h (dump_for_expression): New overloads.
5043 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5044 Update.
5045
e2803273
TT
50462021-03-08 Tom Tromey <tom@tromey.com>
5047
5048 * expression.h (expr::operation): New class.
5049 (expr::make_operation): New function.
5050 (expr::operation_up): New typedef.
5051 * expop.h: New file.
5052 * eval.c (operation::evaluate_for_cast)
5053 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
5054 New methods.
5055 * ax-gdb.c (operation::generate_ax): New method.
5056
e18c58f2
TT
50572021-03-08 Tom Tromey <tom@tromey.com>
5058
5059 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5060 (gen_expr_binop_rest): New overload.
5061
c0d7ed8c
TT
50622021-03-08 Tom Tromey <tom@tromey.com>
5063
5064 * eval.c (eval_multi_subscript): New function.
5065 (evaluate_subexp_standard): Use it.
5066
dd5fd283
TT
50672021-03-08 Tom Tromey <tom@tromey.com>
5068
5069 * ada-lang.c (ada_binop_exp): New function.
5070 (ada_evaluate_subexp): Use it.
5071
3848abd6
TT
50722021-03-08 Tom Tromey <tom@tromey.com>
5073
5074 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
5075 parameters.
5076 (ada_evaluate_subexp): Use it.
5077
38dc70cf
TT
50782021-03-08 Tom Tromey <tom@tromey.com>
5079
5080 * ada-lang.c (ada_binop_minmax): New function.
5081 (ada_evaluate_subexp): Use it.
5082
b84564fc
TT
50832021-03-08 Tom Tromey <tom@tromey.com>
5084
5085 * ada-lang.c (ada_unop_atr): New function.
5086 (ada_evaluate_subexp): Use it.
5087
b467efaa
TT
50882021-03-08 Tom Tromey <tom@tromey.com>
5089
5090 * ada-lang.c (ada_binop_in_bounds): New function.
5091 (ada_evaluate_subexp): Use it.
5092
5ce19db8
TT
50932021-03-08 Tom Tromey <tom@tromey.com>
5094
5095 * ada-lang.c (ada_ternop_slice): New function.
5096 (ada_evaluate_subexp): Use it.
5097
214b13ac
TT
50982021-03-08 Tom Tromey <tom@tromey.com>
5099
5100 * ada-lang.c (ada_equal_binop): New function.
5101 (ada_evaluate_subexp): Use it.
5102
faa1dfd7
TT
51032021-03-08 Tom Tromey <tom@tromey.com>
5104
5105 * ada-lang.c (ada_mult_binop): New function.
5106 (ada_evaluate_subexp): Use it.
5107
d05e24e6
TT
51082021-03-08 Tom Tromey <tom@tromey.com>
5109
5110 * ada-lang.c (ada_abs): New function.
5111 (ada_evaluate_subexp): Use it.
5112
68c75735
TT
51132021-03-08 Tom Tromey <tom@tromey.com>
5114
5115 * ada-lang.c (ada_atr_size): New function.
5116 (ada_evaluate_subexp): Use it.
5117
020dbabe
TT
51182021-03-08 Tom Tromey <tom@tromey.com>
5119
5120 * ada-lang.c (ada_atr_tag): New function.
5121 (ada_evaluate_subexp): Use it.
5122
7efc87ff
TT
51232021-03-08 Tom Tromey <tom@tromey.com>
5124
5125 * ada-lang.c (ada_unop_in_range): New function.
5126 (ada_evaluate_subexp): Use it.
5127
82390ab8
TT
51282021-03-08 Tom Tromey <tom@tromey.com>
5129
5130 * ada-lang.c (ada_unop_neg): New function.
5131 (ada_evaluate_subexp): Use it.
5132
62d4bd94
TT
51332021-03-08 Tom Tromey <tom@tromey.com>
5134
5135 * ada-lang.c (eval_ternop_in_range): New function.
5136 (ada_evaluate_subexp): Use it.
5137
3634f669
TT
51382021-03-08 Tom Tromey <tom@tromey.com>
5139
5140 * opencl-lang.c (eval_opencl_assign): New function.
5141 (evaluate_subexp_opencl): Use it.
5142
5e80600e
TT
51432021-03-08 Tom Tromey <tom@tromey.com>
5144
5145 * eval.c (eval_op_objc_msgcall): New function.
5146 (evaluate_subexp_standard): Use it.
5147
fb5ba2ab
TT
51482021-03-08 Tom Tromey <tom@tromey.com>
5149
5150 * eval.c (eval_binop_assign_modify): New function.
5151 (evaluate_subexp_standard): Use it.
5152
a49881f7
TT
51532021-03-08 Tom Tromey <tom@tromey.com>
5154
5155 * m2-lang.c (eval_op_m2_subscript): New function.
5156 (evaluate_subexp_modula2): Use it.
5157
41bdced5
TT
51582021-03-08 Tom Tromey <tom@tromey.com>
5159
5160 * m2-lang.c (eval_op_m2_high): New function.
5161 (evaluate_subexp_modula2): Use it.
5162
13ea014a
TT
51632021-03-08 Tom Tromey <tom@tromey.com>
5164
5165 * eval.c (evaluate_subexp_for_address_base): New function.
5166 (evaluate_subexp_for_address): Use it.
5167 (evaluate_subexp_for_sizeof_base): New function.
5168 (evaluate_subexp_for_sizeof): Use it.
5169
1fa41fc7
TT
51702021-03-08 Tom Tromey <tom@tromey.com>
5171
5172 * rust-lang.c (eval_op_rust_structop): New function.
5173 (rust_evaluate_subexp): Use it.
5174
575cae23
TT
51752021-03-08 Tom Tromey <tom@tromey.com>
5176
5177 * rust-lang.c (eval_op_rust_struct_anon): New function.
5178 (rust_evaluate_subexp): Use it.
5179
05104233
TT
51802021-03-08 Tom Tromey <tom@tromey.com>
5181
5182 * rust-lang.c (eval_op_rust_array): New function.
5183 (rust_evaluate_subexp): Use it.
5184
6fa9831f
TT
51852021-03-08 Tom Tromey <tom@tromey.com>
5186
5187 * rust-lang.c (eval_op_rust_complement): New function.
5188 (rust_evaluate_subexp): Use it.
5189
d123f9e4
TT
51902021-03-08 Tom Tromey <tom@tromey.com>
5191
5192 * rust-lang.c (eval_op_rust_ind): New function.
5193 (rust_evaluate_subexp): Use it.
5194
984af2cb
TT
51952021-03-08 Tom Tromey <tom@tromey.com>
5196
5197 * rust-lang.c (rust_subscript): Change parameters.
5198 (rust_evaluate_subexp): Update.
5199
d148f803
TT
52002021-03-08 Tom Tromey <tom@tromey.com>
5201
5202 * rust-lang.c (rust_range): Change parameters.
5203 (rust_evaluate_subexp): Update.
5204
9cbd1c20
TT
52052021-03-08 Tom Tromey <tom@tromey.com>
5206
5207 * f-lang.c (eval_op_f_allocated): New function.
5208 (evaluate_subexp_f): Use it.
5209
3c18c49c
TT
52102021-03-08 Tom Tromey <tom@tromey.com>
5211
5212 * f-lang.c (fortran_require_array): New function.
5213 (evaluate_subexp_f): Use it.
5214
216f6fcb
TT
52152021-03-08 Tom Tromey <tom@tromey.com>
5216
5217 * f-lang.c (eval_op_f_kind): New function.
5218 (evaluate_subexp_f): Use it.
5219
00f2db6f
TT
52202021-03-08 Tom Tromey <tom@tromey.com>
5221
5222 * f-lang.c (eval_op_f_cmplx): New function.
5223 (evaluate_subexp_f): Use it.
5224
93b2b5fa
TT
52252021-03-08 Tom Tromey <tom@tromey.com>
5226
5227 * f-lang.c (eval_op_f_modulo): New function.
5228 (evaluate_subexp_f): Use it.
5229
9f1a1f3c
TT
52302021-03-08 Tom Tromey <tom@tromey.com>
5231
5232 * f-lang.c (eval_op_f_floor): New function.
5233 (evaluate_subexp_f): Use it.
5234
3dc41f3c
TT
52352021-03-08 Tom Tromey <tom@tromey.com>
5236
5237 * f-lang.c (eval_op_f_ceil): New function.
5238 (evaluate_subexp_f): Use it.
5239
e08109f2
TT
52402021-03-08 Tom Tromey <tom@tromey.com>
5241
5242 * f-lang.c (eval_op_f_mod): New function.
5243 (evaluate_subexp_f): Use it.
5244
cc05c68e
TT
52452021-03-08 Tom Tromey <tom@tromey.com>
5246
5247 * f-lang.c (eval_op_f_abs): New function.
5248 (evaluate_subexp_f): Use it.
5249
aec95807
TT
52502021-03-08 Tom Tromey <tom@tromey.com>
5251
5252 * eval.c (eval_op_type): New function.
5253 (evaluate_subexp_standard): Use it.
5254
a220ead5
TT
52552021-03-08 Tom Tromey <tom@tromey.com>
5256
5257 * eval.c (eval_op_postdec): New function.
5258 (evaluate_subexp_standard): Use it.
5259
abffe116
TT
52602021-03-08 Tom Tromey <tom@tromey.com>
5261
5262 * eval.c (eval_op_postinc): New function.
5263 (evaluate_subexp_standard): Use it.
5264
9e1361b7
TT
52652021-03-08 Tom Tromey <tom@tromey.com>
5266
5267 * eval.c (eval_op_predec): New file.
5268 (evaluate_subexp_standard): Use it.
5269
00f50884
TT
52702021-03-08 Tom Tromey <tom@tromey.com>
5271
5272 * eval.c (eval_op_preinc): New function.
5273 (evaluate_subexp_standard): Use it.
5274
3aef2a07
TT
52752021-03-08 Tom Tromey <tom@tromey.com>
5276
5277 * eval.c (eval_op_memval): New function.
5278 (evaluate_subexp_standard): Use it.
5279
acee9468
TT
52802021-03-08 Tom Tromey <tom@tromey.com>
5281
5282 * eval.c (eval_op_alignof): New function.
5283 (evaluate_subexp_standard): Use it.
5284
786f70ee
TT
52852021-03-08 Tom Tromey <tom@tromey.com>
5286
5287 * eval.c (eval_op_ind): New function.
5288 (evaluate_subexp_standard): Use it.
5289
24338fb9
TT
52902021-03-08 Tom Tromey <tom@tromey.com>
5291
5292 * eval.c (eval_op_lognot): New function.
5293 (evaluate_subexp_standard): Use it.
5294
1f09ec81
TT
52952021-03-08 Tom Tromey <tom@tromey.com>
5296
5297 * eval.c (eval_op_complement): New function.
5298 (evaluate_subexp_standard): Use it.
5299
606d105f
TT
53002021-03-08 Tom Tromey <tom@tromey.com>
5301
5302 * eval.c (eval_op_neg): New function.
5303 (evaluate_subexp_standard): Use it.
5304
39f288be
TT
53052021-03-08 Tom Tromey <tom@tromey.com>
5306
5307 * eval.c (eval_op_plus): New function.
5308 (evaluate_subexp_standard): Use it.
5309
eed70b1c
TT
53102021-03-08 Tom Tromey <tom@tromey.com>
5311
5312 * eval.c (eval_op_repeat): New function.
5313 (evaluate_subexp_standard): Use it.
5314
60cdd487
TT
53152021-03-08 Tom Tromey <tom@tromey.com>
5316
5317 * eval.c (eval_op_leq): New function.
5318 (evaluate_subexp_standard): Use it.
5319
96e3efd9
TT
53202021-03-08 Tom Tromey <tom@tromey.com>
5321
5322 * eval.c (eval_op_geq): New function.
5323 (evaluate_subexp_standard): Use it.
5324
1f78d732
TT
53252021-03-08 Tom Tromey <tom@tromey.com>
5326
5327 * eval.c (eval_op_gtr): New function.
5328 (evaluate_subexp_standard): Use it.
5329
6cad1349
TT
53302021-03-08 Tom Tromey <tom@tromey.com>
5331
5332 * eval.c (eval_op_less): New function.
5333 (evaluate_subexp_standard): Use it.
5334
1fcb3559
TT
53352021-03-08 Tom Tromey <tom@tromey.com>
5336
5337 * eval.c (eval_op_notequal): New function.
5338 (evaluate_subexp_standard): Use it.
5339
0cc96de8
TT
53402021-03-08 Tom Tromey <tom@tromey.com>
5341
5342 * eval.c (eval_op_equal): New function.
5343 (evaluate_subexp_standard): Use it.
5344
288d26bc
TT
53452021-03-08 Tom Tromey <tom@tromey.com>
5346
5347 * eval.c (eval_op_subscript): New function.
5348 (evaluate_subexp_standard): Use it.
5349
7cdcdd02
TT
53502021-03-08 Tom Tromey <tom@tromey.com>
5351
5352 * eval.c (eval_op_binary): New function.
5353 (evaluate_subexp_standard): Use it.
5354
d9790e22
TT
53552021-03-08 Tom Tromey <tom@tromey.com>
5356
5357 * eval.c (eval_op_sub): New function.
5358 (evaluate_subexp_standard): Use it.
5359
aedaf9ac
TT
53602021-03-08 Tom Tromey <tom@tromey.com>
5361
5362 * eval.c (eval_op_add): New function.
5363 (evaluate_subexp_standard): Use it.
5364
b7a96ed2
TT
53652021-03-08 Tom Tromey <tom@tromey.com>
5366
5367 * eval.c (eval_op_member): New function.
5368 (evaluate_subexp_standard): Use it.
5369
fb461aa3
TT
53702021-03-08 Tom Tromey <tom@tromey.com>
5371
5372 * eval.c (eval_op_structop_ptr): New function.
5373 (evaluate_subexp_standard): Use it.
5374
3e96c4fc
TT
53752021-03-08 Tom Tromey <tom@tromey.com>
5376
5377 * eval.c (eval_op_structop_struct): New function.
5378 (evaluate_subexp_standard): Use it.
5379
f960a617
TT
53802021-03-08 Tom Tromey <tom@tromey.com>
5381
5382 * eval.c (eval_op_ternop): New function.
5383 (evaluate_subexp_standard): Use it.
5384
5c2f201e
TT
53852021-03-08 Tom Tromey <tom@tromey.com>
5386
5387 * eval.c (eval_op_concat): New function.
5388 (evaluate_subexp_standard): Use it.
5389
f871bae1
TT
53902021-03-08 Tom Tromey <tom@tromey.com>
5391
5392 * eval.c (eval_op_objc_selector): New function.
5393 (evaluate_subexp_standard): Use it.
5394
14a1c64a
TT
53952021-03-08 Tom Tromey <tom@tromey.com>
5396
5397 * eval.c (eval_op_string): New function.
5398 (evaluate_subexp_standard): Use it.
5399
ffff730b
TT
54002021-03-08 Tom Tromey <tom@tromey.com>
5401
5402 * eval.c (eval_op_register): New function.
5403 (evaluate_subexp_standard): Use it.
5404
9b1d8af6
TT
54052021-03-08 Tom Tromey <tom@tromey.com>
5406
5407 * eval.c (eval_op_func_static_var): New function.
5408 (evaluate_subexp_standard): Use it.
5409
c0df9289
TT
54102021-03-08 Tom Tromey <tom@tromey.com>
5411
5412 * eval.c (eval_op_var_msym_value): New function.
5413 (evaluate_subexp_standard): Use it.
5414
50b98adc
TT
54152021-03-08 Tom Tromey <tom@tromey.com>
5416
5417 * eval.c (eval_op_var_entry_value): New function.
5418 (evaluate_subexp_standard): Use it.
5419
ea2d29f7
TT
54202021-03-08 Tom Tromey <tom@tromey.com>
5421
5422 * eval.c (eval_op_scope): New function.
5423 (evaluate_subexp_standard): Use it.
5424
01573d73
TT
54252021-03-06 Chernov Sergey <klen_s@mail.ru>
5426
5427 PR gdb/27528:
5428 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5429
9938d15a
TT
54302021-03-06 Tom Tromey <tom@tromey.com>
5431
5432 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5433 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5434 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5435 (locate_dwz_sections, dwz_search_other_debugdirs)
5436 (dwarf2_get_dwz_file): Move to dwz.c.
5437 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5438 read.h.
5439 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5440 (dwarf2_get_dwz_file): Move from read.c.
5441
18035655
TT
54422021-03-06 Tom Tromey <tom@tromey.com>
5443
5444 * debuginfod-support.h: Include scoped_fd.h.
5445
a7308ce0
TT
54462021-03-06 Tom Tromey <tom@tromey.com>
5447
5448 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5449 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5450 (get_abbrev_section_for_cu, read_attribute_value)
5451 (get_debug_line_section): Update.
5452 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5453
fbedd546
TT
54542021-03-06 Tom Tromey <tom@tromey.com>
5455
5456 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5457 method.
5458 * dwarf2/read.c (section_is_p): Remove.
5459 (dwarf2_per_bfd::locate_sections)
5460 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5461 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5462 (dwarf2_locate_common_dwp_sections)
5463 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5464 Update.
5465
c2a62a3d
TT
54662021-03-06 Tom Tromey <tom@tromey.com>
5467
5468 * xcoffread.c: Include sect-names.h.
5469 * symfile.h (struct dwarf2_section_names, struct
5470 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5471 * dwarf2/sect-names.h: New file, from symfile.h.
5472 * dwarf2/read.c: Include sect-names.h.
5473
4444f407
TT
54742021-03-06 Tom Tromey <tom@tromey.com>
5475
5476 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5477 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5478 (abbrev_table::read): Update.
5479 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5480 (struct abbrev_info): Reformat.
5481 <attrs>: Now an array.
5482 (struct abbrev_table) <alloc_abbrev>: Remove.
5483
dd99cf0c
WP
54842021-03-06 Weimin Pan <weimin.pan@oracle.com>
5485
5486 * ctfread.c (ctf_psymtab_add_enums): New function.
5487 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5488
844be3f2
WP
54892021-03-06 Weimin Pan <weimin.pan@oracle.com>
5490
5491 * ctfread.c (read_func_kind_type): Set up function arguments.
5492
b2668f28
AB
54932021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5494 Andrew Burgess <andrew.burgess@embecosm.com>
5495
5496 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5497 includes.
5498 (riscv_csrset): New static global.
5499 (riscv_update_csrmap): New function.
5500 (riscv_iterate_over_regset_sections): Process CSRs.
5501
d782d24b
AB
55022021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * riscv-tdep.c (riscv_feature_name_csr): Define.
5505 (riscv_feature_name_cpu): Define.
5506 (riscv_feature_name_fpu): Define.
5507 (riscv_feature_name_virtual): Define.
5508 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5509 (riscv_freg_feature): Use riscv_feature_name_fpu.
5510 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5511 (riscv_csr_feature): Use riscv_feature_name_csr.
5512 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5513
fb8f3fc0
AB
55142021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5515 Craig Blackmore <craig.blackmore@embecosm.com>
5516
5517 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5518 (ALLDEPFILES): Add riscv-none-tdep.c.
5519 * configure: Regenerate.
5520 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5521 support.
5522 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5523 * elf-none-tdep.c: New file.
5524 * elf-none-tdep.h: New file.
5525 * riscv-none-tdep.c: New file.
5526
95ce627a
AB
55272021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5528 Andrew Burgess <andrew.burgess@embecosm.com>
5529
5530 * corelow.c: Add 'xml-tdesc.h' include.
5531 (core_target::read_description): Load the target description from
5532 the core file when possible.
5533 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5534 note.
5535 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5536 (gcore_elf_make_tdesc_note): New function.
5537 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5538 * linux-tdep.c (linux_make_corefile_notes): Add target description
5539 note.
5540
f3a5df7b
AB
55412021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5542
5543 * Makefile.in (SFILES): Add gcore-elf.c.
5544 (HFILES_NO_SRCDIR): Add gcore-elf.h
5545 * configure: Regenerate.
5546 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5547 support.
5548 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5549 (struct fbsd_collect_regset_section_cb_data): Delete.
5550 (fbsd_collect_regset_section_cb): Delete.
5551 (fbsd_collect_thread_registers): Delete.
5552 (struct fbsd_corefile_thread_data): Delete.
5553 (fbsd_corefile_thread): Delete.
5554 (fbsd_make_corefile_notes): Call
5555 gcore_elf_build_thread_register_notes instead of the now deleted
5556 FreeBSD code.
5557 * gcore-elf.c: New file, the content was moved here from
5558 linux-tdep.c, functions were renamed and given minor cleanup.
5559 * gcore-elf.h: New file.
5560 * gcore.c (gcore_find_signalled_thread): Moved here from
5561 linux-tdep.c and given a new name. Minor cleanups.
5562 * gcore.h (gcore_find_signalled_thread): Declare.
5563 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5564 (struct linux_collect_regset_section_cb_data): Delete.
5565 (linux_collect_regset_section_cb): Delete.
5566 (linux_collect_thread_registers): Delete.
5567 (linux_corefile_thread): Call
5568 gcore_elf_build_thread_register_notes.
5569 (find_signalled_thread): Delete.
5570 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5571
d1e93af6
SM
55722021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5573
5574 PR gdb/27147
5575 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5576 process_stratum_target parameter,
5577 sparc_store_inferior_registers): update callers.
5578 * sparc-nat.c (sparc_fetch_inferior_registers,
5579 sparc_store_inferior_registers): Add process_stratum_target
5580 parameter. Switch current thread before calling
5581 sparc_supply_gregset / sparc_collect_rwindow.
5582 (sparc_store_inferior_registers): Likewise.
5583 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5584 (sparc32obsd_collect_uthread): Likewise.
5585 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5586 Add assertion.
5587 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5588 sparc64obsd_supply_uthread): Add assertion.
5589
1178743e
TT
55902021-03-04 Tom Tromey <tromey@adacore.com>
5591
5592 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5593 (aux_add_nonlocal_symbols): Update.
5594 (ada_add_block_symbols): Change "found_sym" to bool.
5595
1bfa81ac
TT
55962021-03-03 Tom Tromey <tromey@adacore.com>
5597
5598 * ada-lang.c (ada_resolve_function): Update comment.
5599 (is_nonfunction, add_symbols_from_enclosing_procs)
5600 (remove_extra_symbols): Likewise.
5601 (struct match_data): Add constructor, initializers.
5602 (add_nonlocal_symbols): Remove memset.
5603 (aux_add_nonlocal_symbols): Update comment.
5604 (ada_add_block_renamings, add_nonlocal_symbols)
5605 (ada_add_all_symbols): Likewise.
5606 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5607
bbcdf9ab
TT
56082021-03-02 Tom Tromey <tromey@adacore.com>
5609
5610 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5611 (cast_to_gnat_encoded_fixed_point_type): Remove.
5612 (ada_value_cast, ada_evaluate_subexp): Update.
5613 (gnat_encoded_fixed_point_type_info)
5614 (ada_is_gnat_encoded_fixed_point_type)
5615 (gnat_encoded_fixed_point_delta)
5616 (gnat_encoded_fixed_point_scaling_factor): Remove.
5617 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5618 (gnat_encoded_fixed_point_delta)
5619 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5620 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5621 (ada_print_type): Update.
5622 * ada-valprint.c (ada_value_print_num): Update.
5623 * dwarf2/read.c (ada_get_gnat_encoded_number)
5624 (ada_get_gnat_encoded_ratio): New functions.
5625 (finish_fixed_point_type): Use them. Add parameters.
5626 (GNAT_FIXED_POINT_SUFFIX): New define.
5627 (gnat_encoded_fixed_point_type_info): New function.
5628 (read_base_type): Handle gnat encodings.
5629
5f9febe0
TT
56302021-03-02 Tom Tromey <tromey@adacore.com>
5631
5632 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5633 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5634 std::string.
5635 (GROW_VECT): Remove.
5636 (grow_vect): Remove.
5637
d1183b06
TT
56382021-03-02 Tom Tromey <tromey@adacore.com>
5639
5640 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5641 * ada-lang.c (resolve_subexp): Update.
5642 (ada_resolve_function): Accept a vector.
5643 (is_nonfunction, add_defn_to_vec)
5644 (add_symbols_from_enclosing_procs): Likewise.
5645 (num_defns_collected, defns_collected): Remove.
5646 (remove_extra_symbols): Return a vector.
5647 (remove_irrelevant_renamings): Return void.
5648 (ada_add_local_symbols): Accept a vector.
5649 (struct match_data) <obstackp>: Remove.
5650 <resultp>: New member.
5651 (aux_add_nonlocal_symbols): Update.
5652 (ada_add_block_renamings, add_nonlocal_symbols)
5653 (ada_add_all_symbols): Accept a vector.
5654 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5655 vector.
5656 (ada_lookup_symbol): Update.
5657 (ada_add_block_symbols): Accept a vector.
5658 (get_var_value, iterate_over_symbols): Update.
5659 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5660 Update.
5661
886d459f
TT
56622021-03-02 Tom Tromey <tromey@adacore.com>
5663
5664 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5665
bdcccc56
TT
56662021-03-02 Tom Tromey <tromey@adacore.com>
5667
5668 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5669 auto_obstack.
5670 <root>: Initialize.
5671 (ada_pspace_data): Remove destructor.
5672 <sym_cache>: Now a unique_ptr.
5673 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5674 (ada_get_symbol_cache): Use 'new'.
5675 (ada_clear_symbol_cache): Rewrite.
5676
1228719f
TT
56772021-03-02 Tom Tromey <tromey@adacore.com>
5678
5679 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5680 is null.
5681
bb3a4efe
LS
56822021-02-27 Lancelot Six <lsix@lancelotsix.com>
5683
5684 PR gdb/27393
5685 * source.c (add_path): Skip empty dirnames.
5686
26b43ca6 56872021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5688
5689 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5690 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5691
dffdd8b5
SM
56922021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5693
5694 PR gdb/26861
5695 * target.c (target_mourn_inferior): Only compare pids in
5696 target_mourn_inferior.
5697
64d38fdd
JM
56982021-02-25 Jan Matyas <jmatyas@codasip.com>
5699
5700 PR gdb/26819
5701 * remote.c (remote_target::start_remote): Ensure the single
5702 thread, automatically added for remote targets without the
5703 concept of threading, is initially in set to the "resumed"
5704 state.
5705 * remote.c (remote_target::add_current_inferior_and_thread):
5706 Add return value - return the main thread.
5707
2450ad54
JV
57082021-02-25 Jan Vrany <jan.vrany@labware.com>
5709
5710 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5711 (mi_tsv_created): Likewise.
5712 (mi_tsv_deleted): Likewise.
5713
30c80d88
TV
57142021-02-25 Tom de Vries <tdevries@suse.de>
5715
5716 PR symtab/27354
5717 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5718 section_kind for &dwo_file->sections.info.
5719
68337b8b
AB
57202021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5721
5722 PR fortran/26155
5723 * f-lang.c (fortran_argument_convert): Delete declaration.
5724 (fortran_prepare_argument): New function.
5725 (evaluate_subexp_f): Move logic to new function
5726 fortran_prepare_argument.
5727
faeb9f13
AB
57282021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5729
5730 * f-exp.y (f77_keywords): Add 'associated'.
5731 * f-lang.c (fortran_associated): New function.
5732 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5733 (operator_length_f): Likewise.
5734 (print_unop_or_binop_subexp_f): New function.
5735 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5736 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5737 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5738 (operator_check_f): Likewise.
5739 * std-operator.def: Add FORTRAN_ASSOCIATED.
5740
170f4b23
AB
57412021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5742
5743 * f-exp.y (fortran_operators): Add ".xor.".
5744
aa659cfa
TV
57452021-02-24 Tom de Vries <tdevries@suse.de>
5746
5747 PR symtab/27336
5748 * dwarf2/attribute.c (attribute::form_is_signed): New function
5749 factored out of ...
5750 * dwarf2/attribute.h (attribute::as_signed): ... here.
5751 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5752 (attribute::form_is_signed): Declare.
5753 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5754 for DW_AT_decl_file.
5755
268c77c1
KB
57562021-02-24 Kevin Buettner <kevinb@redhat.com>
5757
5758 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5759 order for <sys/ptrace.h> and <asm/ptrace.h>.
5760
665af52e
KB
57612021-02-24 Kevin Buettner <kevinb@redhat.com>
5762
5763 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5764 <sys/ptrace.h>.
5765
dd80d750
AB
57662021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5767
5768 * exec.c (set_section_command): Move variable declarations into
5769 the function body, and use std::string instead of a fixed size
5770 buffer.
5771
336aa7b7
AB
57722021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5773
5774 * exec.c (exec_target::get_section_table): Delete member function.
5775 (section_table_read_available_memory): Use current_top_target, not
5776 just the exec_ops target.
5777 * target-delegates.c: Regenerate.
5778 * target.c (default_get_section_table): New function.
5779 * target.h (target_ops::get_section_table): Change default
5780 behaviour to call default_get_section_table.
5781 (default_get_section_table): Declare.
5782
02f7d26b
AB
57832021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5784
5785 * exec.c (exec_target::close): Call new clear_target_sections
5786 function.
5787 (program_space::add_target_sections): Update name of member
5788 variable.
5789 (program_space::add_target_sections): Update name of member
5790 variable.
5791 (program_space::remove_target_sections): Likewise.
5792 (exec_one_fork): Use new target_sections member function.
5793 (exec_target::get_section_table): Likewise.
5794 (exec_target::files_info): Likewise.
5795 (set_section_command): Likewise.
5796 (exec_set_section_address): Likewise.
5797 (exec_target::has_memory): Use new target_sections member
5798 function.
5799 * progspace.h (program_space::clear_target_sections): New member
5800 function.
5801 (program_space::target_sections): Rename member variable to
5802 m_target_sections, replace with a new member function.
5803 (program_space::m_target_sections): New member variable.
5804 * solib-dsbt.c (scan_dyntag): Use new member function.
5805 * solib-svr4.c (scan_dyntag): Likewise.
5806
19cf757a
AB
58072021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5808
5809 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5810 return type const.
5811 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5812 (section_table_read_available_memory): Make local const.
5813 (exec_target::xfer_partial): Make local const.
5814 (print_section_info): Make parameter const.
5815 * gdb/exec.h (print_section_info): Likewise.
5816 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5817 const.
5818 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5819 Likewise.
5820 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5821 Likewise.
5822 * gdb/s390-tdep.c (s390_load): Likewise.
5823 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5824 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5825 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5826 Rename to...
5827 (target_debug_print_const_target_section_table_p): ...this.
5828 * gdb/target-delegates.c: Regenerate.
5829 * gdb/target.c (target_get_section_table): Make return type const.
5830 (target_section_by_addr): Likewise. Also make some locals const.
5831 (memory_xfer_partial_1): Make some locals const.
5832 * gdb/target.h (struct target_ops) <get_section_table>: Make
5833 return type const.
5834 (target_section_by_addr): Likewise.
5835 (target_get_section_table): Likewise.
5836
02a79309
AB
58372021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5838
5839 * NEWS: Mention new 'maint info target-sections' command.
5840 * maint.c (maintenance_info_target_sections): New function.
5841 (_initialize_maint_cmds): Register new command.
5842
895b7b4e
AB
58432021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5844
5845 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5846 (riscv_features_from_bfd): ...this. Change parameter type to
5847 'bfd*', and update as required.
5848 (riscv_find_default_target_description): Update call to
5849 riscv_features_from_bfd. Select a default xlen based on
5850 info.bfd_arch_info.
5851 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5852
bc3c0632
AB
58532021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5854
5855 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5856 dynamic types in UNOP_IND.
5857
08ac5771
SM
58582021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5859
5860 PR gdb/26828
5861 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5862 Instantiate queue.
5863 (~dwarf2_queue_guard): Clear queue.
5864 (queue_comp_unit): Assert that queue is
5865 instantiated.
5866 (process_queue): Adjust.
5867 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5868
616c069a
SM
58692021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5870
5871 PR gdb/26828
5872 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5873 to decide whether or not to enqueue it for expansion.
5874 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5875 after calling maybe_queue_comp_unit.
5876
897608ed
SM
58772021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * linux-nat.c (linux_nat_filter_event): Return void.
5880
15908a11
TT
58812021-02-22 Tom Tromey <tromey@adacore.com>
5882
5883 * solib-svr4.c (enable_break): Update.
5884 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5885 type.
5886 (target_bfd_reopen): Change parameter type.
5887 * bfd-target.h (target_bfd_reopen): Change parameter type.
5888
f53fc427
SM
58892021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5890
5891 * thread.c (add_thread_silent): Add assert.
5892 (find_thread_ptid): Add assert.
5893
de146e19
SM
58942021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5895
5896 PR gdb/27435
5897 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5898 (target_unpush_up): Likewise.
5899 * procfs.c (procfs_target::attach): Push target early. Use
5900 target_unpush_up to unpush target in case of error.
5901 * target.h (struct target_unpusher): Move here.
5902 (target_unpush_up): Likewise.
5903
8488c357
KB
59042021-02-19 Kevin Buettner <kevinb@redhat.com>
5905
5906 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5907 (which in turn includes <gnulib/config.h>) before include
5908 of <signal.h>.
5909
5a9f5403
NC
59102021-02-19 Nelson Chu <nelson.chu@sifive.com>
5911
5912 PR 27158
5913 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5914 (decode_j_type_insn): Likewise.
5915 (decode_cj_type_insn): Likewise.
5916 (decode_b_type_insn): Likewise.
5917 (decode): Likewise.
5918
26f53cd3
TT
59192021-02-18 Tom Tromey <tom@tromey.com>
5920
5921 * expression.h (struct expression) <evaluate>: Declare method.
5922 * eval.c (evaluate_subexp): Simplify.
5923 (expression::evaluate): New method.
5924 (evaluate_expression, evaluate_type): Use expression::evaluate.
5925
6a780b67
KB
59262021-02-17 Kevin Buettner <kevinb@redhat.com>
5927
5928 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5929 to accessing it.
5930 (ada_lookup_name_info): Likewise.
5931
adeab0c5
MF
59322021-02-13 Mike Frysinger <vapier@gentoo.org>
5933
5934 * aclocal.m4: Regenerate.
5935
089436f7
TV
59362021-02-12 Tom de Vries <tdevries@suse.de>
5937
5938 PR threads/26228
5939 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5940 (lin_thread_signals): New static var.
5941 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5942 New function.
5943 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5944 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5945 Declare.
5946 * linux-thread-db.c (check_thread_signals): Use
5947 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5948
96df3e28
AB
59492021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5950
5951 * f-exp.y (f77_keywords): Add allocated.
5952 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5953 (operator_length_f): Likewise.
5954 (print_subexp_f): Likewise.
5955 (dump_subexp_body_f): Likewise.
5956 (operator_check_f): Likewise.
5957 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5958
05f68f52
TV
59592021-02-11 Tom de Vries <tdevries@suse.de>
5960
5961 PR symtab/27353
5962 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5963 Return true for DW_FORM_strx.
5964
b260f8d6
TT
59652021-02-11 Tom Tromey <tromey@adacore.com>
5966
5967 PR gdb/27383:
5968 * parse.c (write_exp_symbol_reference): Write sym.block.
5969
bf3386f0
AB
59702021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5971
5972 * NEWS: Mention changes to 'maint info sections'.
5973 * maint.c (match_substring): Return a bool, fix whitespace issue.
5974 (struct single_bfd_flag_info): New struct.
5975 (bfd_flag_info): New static global.
5976 (match_bfd_flags): Return a bool, use bfd_flag_info.
5977 (print_bfd_flags): Use bfd_flag_info.
5978 (maint_print_section_info): Delete trailing whitespace.
5979 (struct maint_info_sections_opts): New struct.
5980 (maint_info_sections_option_defs): New static global.
5981 (maint_info_sections_completer): New function.
5982 (maintenance_info_sections): Use option parsing mechanism.
5983 (_initialize_maint_cmds): Update command help text for 'maint info
5984 sections' and register a command completer.
5985
4790db14
AB
59862021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5987
5988 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5989 functionality merged into...
5990 (maint_print_all_sections): ...this new function.
5991 (maintenance_info_sections): Make use of maint_print_all_sections,
5992 allow all objects to be printed even where there's no executable.
5993
1db66e34
AB
59942021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * breakpoint.c (resolve_sal_pc): Make use of
5997 bound_minimal_symbol::obj_section.
5998 * maint.c (maintenance_translate_address): Likewise.
5999 * minsyms.c (minimal_symbol_upper_bound): Likewise.
6000 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
6001 member function.
6002 * printcmd.c (info_address_command): Make use of
6003 bound_minimal_symbol::obj_section.
6004
18b8df43
AM
60052021-02-11 Alan Modra <amodra@gmail.com>
6006
6007 * arm-symbian-tdep.c: Delete.
6008 * NEWS: Mention arm-symbian removal.
6009 * Makefile.in: Remove arm-symbian-tdep entries.
6010 * configure.tgt: Remove arm*-*-symbianelf*.
6011 * doc/gdb.texinfo: Remove mention of SymbianOS.
6012 * osabi.c (gdb_osabi_names): Remove "Symbian".
6013 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
6014 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
6015 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
6016 handling.
6017 * testsuite/gdb.base/dup-sect.exp: Likewise.
6018 * testsuite/gdb.base/long_long.exp: Likewise.
6019 * testsuite/gdb.base/solib-weak.exp: Likewise.
6020 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
6021 * testsuite/gdb.python/py-section-script.exp: Likewise.
6022 * testsuite/lib/dwarf.exp: Likewise.
6023 * testsuite/lib/gdb.exp: Likewise.
6024
e92c8eb8
AB
60252021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
6028 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
6029 (one_or_two_args): New pattern.
6030 (f77_keywords): Add lbound and ubound.
6031 * f-lang.c (fortran_bounds_all_dims): New function.
6032 (fortran_bounds_for_dimension): New function.
6033 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
6034 (operator_length_f): Likewise.
6035 (print_subexp_f): Likewise.
6036 (dump_subexp_body_f): Likewise.
6037 (operator_check_f): Likewise.
6038 * std-operator.def (FORTRAN_LBOUND): Define.
6039 (FORTRAN_UBOUND): Define.
6040
a52d653e
AB
60412021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6042
6043 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6044 and set_section_index member functions where appropriate.
6045 * coffread.c (coff_symtab_read): Likewise.
6046 (process_coff_symbol): Likewise.
6047 * ctfread.c (set_symbol_address): Likewise.
6048 * dwarf2/read.c (add_partial_symbol): Likewise.
6049 (var_decode_location): Likewise.
6050 * language.c: Likewise.
6051 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
6052 (compact_minimal_symbols): Likewise.
6053 (minimal_symbol_upper_bound): Likewise.
6054 * objfiles.c (relocate_one_symbol): Likewise.
6055 * psympriv.h (partial_symbol::obj_section): Likewise.
6056 (partial_symbol::address): Likewise.
6057 * psymtab.c (partial_symtab::add_psymbol): Likewise.
6058 * stabsread.c (scan_file_globals): Likewise.
6059 * symmisc.c (dump_msymbols): Likewise.
6060 * symtab.c (general_symbol_info::obj_section): Likewise.
6061 (fixup_section): Likewise.
6062 (get_msymbol_address): Likewise.
6063 * symtab.h (general_symbol_info::section): Rename to...
6064 (general_symbol_info::m_section): ...this.
6065 (general_symbol_info::set_section_index): New member function.
6066 (general_symbol_info::section_index): Likewise.
6067 (SYMBOL_SECTION): Delete.
6068 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6069 set_section_index member functions where appropriate.
6070 (MSYMBOL_SECTION): Delete.
6071 (symbol::symbol): Update to initialize 'm_section'.
6072 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6073 (process_xcoff_symbol): Likewise.
6074
ebbc3a7d
AB
60752021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6076
6077 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6078 MSYMBOL_OBJ_SECTION.
6079 * findvar.c (language_defn::read_var_value): Likewise.
6080 * infcmd.c (jump_command): Likewise.
6081 * linespec.c (minsym_found): Likewise.
6082 * maint.c (maintenance_translate_address): Likewise.
6083 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6084 (minimal_symbol_upper_bound): Likewise.
6085 * parse.c (find_minsym_type_and_address): Likewise.
6086 (operator_check_standard): Likewise.
6087 * printcmd.c (info_address_command): Likewise.
6088 * symmisc.c (dump_msymbols): Likewise.
6089 (print_symbol): Likewise.
6090 * symtab.c (general_symbol_info::obj_section): Define new
6091 function.
6092 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6093 (find_pc_sect_compunit_symtab): Likewise.
6094 (find_function_start_sal): Likewise.
6095 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6096 MSYMBOL_OBJ_SECTION.
6097 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6098 function.
6099 (SYMBOL_OBJ_SECTION): Delete.
6100 (MSYMBOL_OBJ_SECTION): Delete.
6101
9bb305b3
TT
61022021-02-09 Tom Tromey <tom@tromey.com>
6103
6104 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6105
cf2b2075
TV
61062021-02-09 Tom de Vries <tdevries@suse.de>
6107
6108 PR symtab/27341
6109 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6110 construct an array type. Add assert to ensure that element_type is
6111 not being modified.
6112
03642b71
AB
61132021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6114
6115 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6116 (gcore_collect_regset_section_cb): Delete.
6117 (gcore_collect_thread_registers): Delete.
6118 (gcore_build_thread_register_notes): Delete.
6119 (gcore_find_signalled_thread): Delete.
6120 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6121 'gdbarch' and 'thread_info' declarations.
6122 (gcore_build_thread_register_notes): Delete declaration.
6123 (gcore_find_signalled_thread): Likewise.
6124 * fbsd-tdep.c: Remove 'gcore.h' include.
6125 (struct fbsd_collect_regset_section_cb_data): New struct.
6126 (fbsd_collect_regset_section_cb): New function.
6127 (fbsd_collect_thread_registers): New function.
6128 (struct fbsd_corefile_thread_data): New struct.
6129 (fbsd_corefile_thread): New function.
6130 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6131 * linux-tdep.c: Remove 'gcore.h' include.
6132 (struct linux_collect_regset_section_cb_data): New struct.
6133 (linux_collect_regset_section_cb): New function.
6134 (linux_collect_thread_registers): New function.
6135 (linux_corefile_thread): Call Linux specific code.
6136 (find_signalled_thread): New function.
6137 (linux_make_corefile_notes): Call find_signalled_thread.
6138
f73e424f
TT
61392021-02-09 Tom Tromey <tromey@adacore.com>
6140
6141 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6142 not_lval value.
6143 * value.c (value_contents_copy_raw): Now static.
6144 * value.h (value_contents_copy_raw): Don't declare.
6145
a4f0544b
TT
61462021-02-09 Tom Tromey <tromey@adacore.com>
6147
6148 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6149 fields.
6150
9b3e4b5d
SV
61512021-02-08 Shahab Vahedi <shahab@synopsys.com>
6152
6153 PR tdep/27369
6154 * arc-linux-tdep.c (handle_atomic_sequence): New.
6155 (arc_linux_software_single_step): Call handle_atomic_sequence().
6156
29db1eb3
AB
61572021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6158
6159 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6160 function.
6161 (REQUIRE_WINDOW): Call is_valid member function.
6162 (REQUIRE_WINDOW_FOR_SETTER): New define.
6163 (gdbpy_tui_is_valid): Call is_valid member function.
6164 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6165 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6166 tui_active too.
6167 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6168 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6169 the function.
6170
e0c23e11
AB
61712021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6172
6173 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6174 for the title is not nullptr.
6175
1cf23996
AB
61762021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6177
6178 * tui-layout.c (saved_tui_windows): Delete.
6179 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6180 call new get_windows member function instead.
6181 (tui_get_window_by_name): Check in tui_windows.
6182 (tui_layout_window::apply): Don't add to tui_windows.
6183 * tui-layout.h (tui_layout_base::get_windows): New member function.
6184 (tui_layout_window::get_windows): Likewise.
6185 (tui_layout_split::get_windows): Likewise.
6186
a53a2657
AB
61872021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6188
6189 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6190 of the window objects.
6191
2708dbbd
AB
61922021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * python/python.c (gdbpy_print_stack): Reformat an error message.
6195
cd074e04
AB
61962021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6197
6198 * tui/tui-interp.c (tui_command_line_handler): New function.
6199 (tui_interp::resume): Register tui_command_line_handler as the
6200 input_handler.
6201 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6202 function.
6203 (tui_getc_1): Delete handling of '\n' and '\r'.
6204 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6205
4cf28e91
HD
62062021-02-07 Hannes Domani <ssbssa@yahoo.de>
6207
6208 * tui/tui-regs.c (tui_data_window::display_registers_from):
6209 Mark invisible register sub windows.
6210 (tui_data_window::check_register_values): Ignore invisible
6211 register sub windows.
6212
3537bc23
HD
62132021-02-07 Hannes Domani <ssbssa@yahoo.de>
6214
6215 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6216 n_spaces with a negative value.
6217
5fc2d6aa
HD
62182021-02-07 Hannes Domani <ssbssa@yahoo.de>
6219
6220 * tui/tui-regs.c (tui_data_window::display_registers_from):
6221 Add refresh_window call.
6222
83962f83
HD
62232021-02-07 Hannes Domani <ssbssa@yahoo.de>
6224
6225 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6226
0110ec82
SM
62272021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6228
6229 * symmisc.c (std_in, std_out, std_err): Remove.
6230 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6231
7c6944ab
TV
62322021-02-05 Tom de Vries <tdevries@suse.de>
6233
6234 PR breakpoints/27330
6235 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6236 glibc object file has debug info.
6237
e77b0004
TV
62382021-02-05 Tom de Vries <tdevries@suse.de>
6239
6240 PR symtab/27333
6241 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6242
0e857c82
TV
62432021-02-05 Tom de Vries <tdevries@suse.de>
6244
6245 PR breakpoints/27313
6246 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6247 syscall numbers.
6248
bdfea17e
TT
62492021-02-05 Tom Tromey <tom@tromey.com>
6250
6251 * compile/compile-c-support.c (get_compile_context)
6252 (c_get_compile_context, cplus_get_compile_context): Change return
6253 type.
6254 * language.c (language_defn::get_compile_instance): New method.
6255 * language.h (language_defn::get_compile_instance): Change return
6256 type. No longer inline.
6257 * c-lang.c (c_language::get_compile_instance): Change return type.
6258 (cplus_language::get_compile_instance): Change return type.
6259 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6260 Change return type.
6261 * compile/compile.c (compile_to_object): Update.
6262
1b30f421
TT
62632021-02-05 Tom Tromey <tom@tromey.com>
6264
6265 * parser-defs.h (write_exp_symbol_reference): Declare.
6266 * parse.c (write_exp_symbol_reference): New function.
6267 * p-exp.y (variable): Use write_exp_symbol_reference.
6268 * m2-exp.y (variable): Use write_exp_symbol_reference.
6269 * f-exp.y (variable): Use write_exp_symbol_reference.
6270 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6271 * c-exp.y (variable): Use write_exp_symbol_reference.
6272
ae710496
TV
62732021-02-05 Tom de Vries <tdevries@suse.de>
6274
6275 PR exp/27265
6276 * valarith.c (complex_binop): Throw an error if complex type can't
6277 be created.
6278
d3b54e63
TV
62792021-02-05 Tom de Vries <tdevries@suse.de>
6280
6281 PR symtab/27307
6282 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6283 return.
6284
fc9a13fb
TV
62852021-02-05 Tom de Vries <tdevries@suse.de>
6286
6287 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6288
04b4939b
MF
62892021-02-04 Mike Frysinger <vapier@gentoo.org>
6290
6291 * configure.tgt (riscv*-*-*): Set gdb_sim.
6292
6ff267e1
SM
62932021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6294
6295 * target.c (target_is_non_stop_p): Return bool.
6296 * target.h (target_is_non_stop_p): Return bool.
6297
fdbc5215
SM
62982021-02-04 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * record-full.c (record_full_async_inferior_event_handler):
6301 Don't clear async event handler.
6302 (record_full_base_target::wait): Clear async event handler at
6303 beginning.
6304
85d3ad8e
SM
63052021-02-04 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * record-btrace.c (record_btrace_handle_async_inferior_event):
6308 Don't clear async event handler.
6309 (record_btrace_target::wait): Clear async event handler at
6310 beginning.
6311
baa8575b
SM
63122021-02-04 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * remote.c (remote_target::wait): Clear async event handler at
6315 beginning, mark if needed at the end.
6316 (remote_async_inferior_event_handler): Don't set or clear async
6317 event handler.
6318
6b36ddeb
SM
63192021-02-04 Simon Marchi <simon.marchi@efficios.com>
6320
6321 * async-event.h (async_event_handler_func): Add documentation.
6322 * async-event.c (check_async_event_handlers): Don't clear
6323 async_event_handler ready flag.
6324 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6325 flag.
6326 * record-btrace.c (record_btrace_handle_async_inferior_event):
6327 Likewise.
6328 * record-full.c (record_full_async_inferior_event_handler):
6329 Likewise.
6330 * remote-notif.c (remote_async_get_pending_events_handler):
6331 Likewise.
6332 * remote.c (remote_async_inferior_event_handler): Likewise.
6333
72d383bb
SM
63342021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * infrun.c (handle_inferior_event): Move stop_soon variable to
6337 inner scope.
6338
408f6686
PA
63392021-02-03 Pedro Alves <pedro@palves.net>
6340
6341 * infcmd.c (detach_command): Hold strong reference to target, and
6342 if all-stop on entry, restart threads on exit.
6343 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6344 (restart_stepped_thread): ... this new function. Also handle
6345 trap_expected.
6346 (restart_after_all_stop_detach): New function.
6347 * infrun.h (restart_after_all_stop_detach): Declare.
6348
ac7d717c
PA
63492021-02-03 Pedro Alves <pedro@palves.net>
6350
6351 * infrun.c (struct step_over_info): Initialize fields.
6352 (prepare_for_detach): Handle ongoing in-line step over.
6353
e87f0fe8
PA
63542021-02-03 Pedro Alves <pedro@palves.net>
6355
6356 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6357 here...
6358 * remote.c (remote_target::remote_detach_1): ... and here ...
6359 * target.c (target_detach): ... instead of here.
6360 * target.h (target_ops::detach): Add comment.
6361
8ff53139
PA
63622021-02-03 Pedro Alves <pedro@palves.net>
6363
6364 * infrun.c (struct wait_one_event): Move higher up.
6365 (prepare_for_detach): Abort in-progress displaced steps instead of
6366 letting them complete.
6367 (handle_one): If the inferior is detaching, don't add the thread
6368 back to the global step-over chain.
6369 (restart_threads): Don't restart threads if detaching.
6370 (handle_signal_stop): Remove inferior::detaching reference.
6371
91475068
PA
63722021-02-03 Pedro Alves <pedro@palves.net>
6373
6374 * infrun.c (prepare_for_detach): Don't release scoped_restore
6375 before returning.
6376
d758e62c
PA
63772021-02-03 Pedro Alves <pedro@palves.net>
6378
6379 * infrun.c (handle_one): New function, factored out from ...
6380 (stop_all_threads): ... here.
6381
b0083dd7
PA
63822021-02-03 Pedro Alves <pedro@palves.net>
6383
6384 * remote.c (remote_notif_stop_ack): Don't error out on
6385 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6386 (remote_target::discard_pending_stop_replies): Don't delete
6387 in-flight notification; instead, clear its contents.
6388
621cc310
PA
63892021-02-03 Pedro Alves <pedro@palves.net>
6390
6391 * remote.c (extended_remote_target::attach): Set target async in
6392 the target-non-stop path too.
6393
2ab76a18
PA
63942021-02-03 Pedro Alves <pedro@palves.net>
6395
6396 PR gdb/27055
6397 * infrun.c (handle_signal_stop): Move main context_switch call
6398 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6399
2e3773ff
LS
64002021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6401
6402 * NEWS (Changed commands): Add entry for the behavior change of
6403 the inferior command.
6404 * inferior.c (inferior_command): When no argument is given to the
6405 inferior command, display info about the currently selected
6406 inferior.
6407
e57933dc
SM
64082021-02-02 Simon Marchi <simon.marchi@efficios.com>
6409
6410 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6411 a sect_offset.
6412 (read_attribute_reprocess): Adjust.
6413
2b0c7f41
SM
64142021-02-02 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6417 <gnu_ranges_base>: ... this...
6418 <rnglists_base>: ... and this.
6419 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6420 <gnu_ranges_base>: ... this...
6421 <rnglists_base>: ... and this.
6422 (read_cutu_die_from_dwo): Adjust
6423 (dwarf2_get_pc_bounds): Adjust
6424 (dwarf2_record_block_ranges): Adjust.
6425 (read_full_die_1): Adjust
6426 (partial_die_info::read): Adjust.
6427 (read_rnglist_index): Adjust.
6428
a1c40103
SM
64292021-02-02 Simon Marchi <simon.marchi@efficios.com>
6430
6431 PR gdb/26813
6432 * dwarf2/read.c (read_loclists_rnglists_header): Add
6433 header_offset parameter and use it.
6434 (read_loclist_index): Read header of the current contribution,
6435 not the one at the beginning of the section.
6436 (read_rnglist_index): Likewise.
6437
b1829e1b
SM
64382021-02-02 Simon Marchi <simon.marchi@efficios.com>
6439
6440 PR gdb/26813
6441 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6442 requires_reprocessing flag.
6443 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6444 DW_FORM_loclistx.
6445 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6446 and DW_FORM_loclistx.
6447 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6448 instead of set_address for DW_FORM_loclistx and
6449 DW_FORM_rnglistx.
6450
0c800c6e
SM
64512021-02-02 Simon Marchi <simon.marchi@efficios.com>
6452
6453 * dwarf2/read.c (read_loclist_index): Remove bound check for
6454 start of offset.
6455 (read_rnglist_index): Likewise.
6456
05787bad
SM
64572021-02-02 Simon Marchi <simon.marchi@efficios.com>
6458
6459 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6460 of the offset.
6461
5e4d9bbc
SM
64622021-02-02 Simon Marchi <simon.marchi@efficios.com>
6463
6464 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6465
a0c1eeba
SM
64662021-02-02 Simon Marchi <simon.marchi@efficios.com>
6467
6468 * dwarf2/read.c (read_loclist_index): Change complaints into
6469 errors.
6470
2bd3e4b8
TV
64712021-02-02 Tom de Vries <tdevries@suse.de>
6472
6473 PR symtab/24620
6474 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6475 psymtab == nullptr.
6476
82a1fd3a
AB
64772021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6478
6479 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6480 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6481 here from linux-tdep.c and given a new name. Minor cleanups.
6482 (gcore_collect_regset_section_cb): Likewise.
6483 (gcore_collect_thread_registers): Likewise.
6484 (gcore_build_thread_register_notes): Likewise.
6485 (gcore_find_signalled_thread): Likewise.
6486 * gcore.h (gcore_build_thread_register_notes): Declare.
6487 (gcore_find_signalled_thread): Declare.
6488 * fbsd-tdep.c: Add 'gcore.h' include.
6489 (struct fbsd_collect_regset_section_cb_data): Delete.
6490 (fbsd_collect_regset_section_cb): Delete.
6491 (fbsd_collect_thread_registers): Delete.
6492 (struct fbsd_corefile_thread_data): Delete.
6493 (fbsd_corefile_thread): Delete.
6494 (fbsd_make_corefile_notes): Call
6495 gcore_build_thread_register_notes instead of the now deleted
6496 FreeBSD code.
6497 * linux-tdep.c: Add 'gcore.h' include.
6498 (struct linux_collect_regset_section_cb_data): Delete.
6499 (linux_collect_regset_section_cb): Delete.
6500 (linux_collect_thread_registers): Delete.
6501 (linux_corefile_thread): Call
6502 gcore_build_thread_register_notes.
6503 (find_signalled_thread): Delete.
6504 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6505
ebde6f2d
TV
65062021-01-29 Tom de Vries <tdevries@suse.de>
6507
6508 PR breakpoints/26063
6509 * infrun.c (process_event_stop_test): Reset
6510 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6511 changed.
6512
0f93c3a2
AB
65132021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6514
6515 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6516 assert. Extend the header comment.
6517
f237f998
AB
65182021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6519
6520 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6521 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6522 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6523 (tui_locator_win_info_ptr): Delete declaration.
6524 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6525 (tui_disasm_window::set_contents): Fetch state from tui_location
6526 global.
6527 (tui_get_begin_asm_address): Likewise.
6528 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6529 for locator window.
6530 (get_locator_window): Delete.
6531 (initialize_known_windows): Treat locator window just like all the
6532 rest.
6533 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6534 (tui_source_window::set_contents): Fetch state from tui_location
6535 global.
6536 (tui_source_window::showing_source_p): Likewise.
6537 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6538 (_locator): Delete.
6539 (tui_locator_win_info_ptr): Delete.
6540 (tui_locator_window::make_status_line): Fetch state from
6541 tui_location global.
6542 (tui_locator_window::rerender): Remove check of 'handle',
6543 reindent function body.
6544 (tui_locator_window::set_locator_fullname): Delete.
6545 (tui_locator_window::set_locator_info): Delete.
6546 (tui_update_locator_fullname): Delete.
6547 (tui_show_frame_info): Likewise.
6548 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6549 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6550 tui/tui-location.h and renamed to
6551 tui_location_tracker::set_location.
6552 (tui_locator_window::set_locator_fullname): Moved to
6553 tui/tui-location.h and renamed to
6554 tui_location_tracker::set_fullname.
6555 (tui_locator_window::full_name): Delete.
6556 (tui_locator_window::proc_name): Delete.
6557 (tui_locator_window::line_no): Delete.
6558 (tui_locator_window::addr): Delete.
6559 (tui_locator_window::gdbarch): Delete.
6560 (tui_update_locator_fullname): Delete declaration.
6561 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6562 for locator window.
6563 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6564 (tui_display_main): Call function on tui_location directly.
6565 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6566 * tui/tui-location.c: New file.
6567 * tui/tui-location.h: New file.
6568
8ee511af
SM
65692021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6570
6571 * gdbtypes.h (get_type_arch): Rename to...
6572 (struct type) <arch>: ... this, update all users.
6573
6ac37371
SM
65742021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6575
6576 * gdbtypes.h (struct type) <arch>: Rename to...
6577 <arch_owner>: ... this, update all users.
6578 <objfile>: Rename to...
6579 <objfile_owner>: ... this, update all users.
6580
24cf6389
AB
65812021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6582
6583 * gdbcmd.h (execute_command_to_string): Update comment.
6584 * top.c (execute_command_to_string): Update header comment.
6585
2a7f6487
TV
65862021-01-28 Tom de Vries <tdevries@suse.de>
6587
6588 PR breakpoints/27205
6589 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6590 (create_longjmp_master_breakpoint_names): New function, factored out
6591 of ...
6592 (create_longjmp_master_breakpoint): ... here. Only try to install
6593 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6594 breakpoint in libc.so failed.
6595
59b59f08
LS
65962021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6597
6598 PR gdb/27133
6599 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6600 unique_ptr is released when the wrapped pointer is kept for later
6601 use.
6602
807f647c
MM
66032021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6604
6605 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6606 BLR and BR instructions.
6607 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6608 (enum aarch64_masks): New.
6609
4ef367bf
TT
66102021-01-26 Tom Tromey <tromey@adacore.com>
6611
6612 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6613 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6614 (windows_init_thread_list, windows_nat::handle_load_dll)
6615 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6616 (windows_nat_target::resume)
6617 (windows_nat_target::get_windows_debug_event)
6618 (windows_nat_target::interrupt, windows_xfer_memory)
6619 (windows_nat_target::close): Update.
6620 * nat/windows-nat.c (DEBUG_EVENTS): Use
6621 debug_prefixed_printf_cond.
6622 (matching_pending_stop, fetch_pending_stop)
6623 (continue_last_debug_event): Update.
6624
4cb1265b
MS
66252020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6626
6627 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6628 elfcore_write_file_note.
6629
d0cc52bd
SV
66302021-01-26 Shahab Vahedi <shahab@synopsys.com>
6631
6632 * arc-tdep.c (arc_add_reggroups): New function.
6633 (arc_gdbarch_init): Call arc_add_reggroups.
6634
ac3571d9 66352021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6636
6637 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6638
9f6c202e
TV
66392021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6640 Simon Marchi <simon.marchi@polymtl.ca>
6641 Tom de Vries <tdevries@suse.de>
6642
6643 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6644 DW_AT_ranges.
6645
a625a8c9
TT
66462021-01-25 Tom Tromey <tromey@adacore.com>
6647
6648 * dwarf2/read.c (get_mpz): New function.
6649 (get_dwarf2_rational_constant): Use it.
6650
19184910
TT
66512021-01-25 Tom Tromey <tromey@adacore.com>
6652
6653 * ada-lang.c (resolve_subexp): Handle array context.
6654
b10bae18
TT
66552021-01-23 Tom Tromey <tom@tromey.com>
6656
6657 PR compile/25575
6658 * compile/compile-loc2c.c (note_register): New function.
6659 (pushf_register_address, pushf_register): Use it.
6660
3637a558
TT
66612021-01-23 Tom Tromey <tom@tromey.com>
6662
6663 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6664 Change type of "registers_used".
6665 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6666 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6667 (locexpr_generate_c_location, loclist_generate_c_location): Change
6668 type of "registers_used".
6669 * compile/compile.h (compile_dwarf_expr_to_c)
6670 (compile_dwarf_bounds_to_c): Update.
6671 * compile/compile-loc2c.c (pushf_register_address)
6672 (pushf_register, do_compile_dwarf_expr_to_c)
6673 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6674 of "registers_used".
6675 * compile/compile-c.h (generate_c_for_variable_locations):
6676 Update.
6677 * compile/compile-c-symbols.c (generate_vla_size)
6678 (generate_c_for_for_one_variable): Change type of
6679 "registers_used".
6680 (generate_c_for_variable_locations): Return std::vector.
6681 * compile/compile-c-support.c (generate_register_struct): Change
6682 type of "registers_used".
6683 (compute): Update.
6684
9f7f6cb8
TT
66852021-01-23 Tom Tromey <tom@tromey.com>
6686
6687 * compile/compile-internal.h (class compile_instance)
6688 <set_arguments>: Change return type.
6689 * compile/compile.c (compile_to_object): Remove call to reset.
6690 (compile_instance::set_arguments): Change return type.
6691
dd5ca05f
SM
66922021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6693
6694 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6695 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6696
d3ee35db
LS
66972021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6698
6699 * Makefile.in (SELFTESTS_SRCS): Add
6700 unittests/gdb_tilde_expand-selftests.c.
6701 * unittests/gdb_tilde_expand-selftests.c: New file.
6702
9d2d8a16
AB
67032021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6704
6705 PR cli/25956
6706 * NEWS: Mention new command.
6707 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6708 (version_style): Define.
6709 (cli_style_option::cli_style_option): Add intensity parameter, and
6710 use as appropriate.
6711 (_initialize_cli_style): Register version style set/show commands.
6712 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6713 (version_style): Declare.
6714 * top.c (print_gdb_version): Use version_stype, and styled_string
6715 to print the GDB version string.
6716
e7b43072
AB
67172021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * utils.c (emit_style_escape): Only emit an escape sequence if the
6720 requested style is different than the current applied style.
6721 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6722 current applied_style.
6723 (fputs_styled): Remove is_default check.
6724 (fputs_styled_unfiltered): Likewise.
6725 (vfprintf_styled_no_gdbfmt): Likewise.
6726
2189c312
SM
67272021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6728
6729 * remote.h (remote_debug_printf): New.
6730 (remote_debug_printf_nofunc): New.
6731 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6732 * remote.c: Use above macros throughout file.
6733
02349803
SM
67342021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6735
6736 * remote.h (remote_debug): Change to bool.
6737 * remote.c (remote_debug): Change to bool.
6738 (_initialize_remote): Adjust.
6739
cda09ec9
SM
67402021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6741
6742 * target.h (remote_debug): Move to...
6743 * remote.h (remote_debug): ... here.
6744 * top.c (remote_debug): Move to...
6745 * remote.c (remote_debug): ... here.
6746 * remote-sim.c: Include remote.h.
6747
baf2b57f
SM
67482021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6749
6750 * cli/cli-cmds.c (show_remote_debug): Remove.
6751 (show_remote_timeout): Remove.
6752 (_initialize_cli_cmds): Don't register commands.
6753 * remote.c (show_remote_debug): Move here.
6754 (show_remote_timeout): Move here.
6755 (_initialize_remote): Register commands.
6756
344e9841
SM
67572021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6758
6759 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6760 type::objfile method instead.
6761
30625020
SM
67622021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6763
6764 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6765 use the type::is_objfile_owned method.
6766
5b7d941b
SM
67672021-01-22 Simon Marchi <simon.marchi@efficios.com>
6768
6769 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6770 (TYPE_OWNER): Remove.
6771 (TYPE_OBJFILE): Adjust.
6772 (struct main_type) <flag_objfile_owned>: Rename to...
6773 <m_flag_objfile_owned>: ... this.
6774 <owner>: Rename to...
6775 <m_owner>: ... this.
6776 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6777 methods.
6778 (TYPE_ALLOC): Adjust.
6779 * gdbtypes.c (alloc_type): Adjust.
6780 (alloc_type_arch): Adjust.
6781 (alloc_type_copy): Adjust.
6782 (get_type_arch): Adjust.
6783 (smash_type): Adjust.
6784 (lookup_array_range_type): Adjust.
6785 (recursive_dump_type): Adjust.
6786 (copy_type_recursive): Adjust.
6787 * compile/compile-c-types.c (convert_func): Adjust.
6788 (convert_type_basic): Adjust.
6789 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6790 Adjust.
6791 * language.c
6792 (language_arch_info::type_and_symbol::alloc_type_symbol):
6793 Adjust.
6794
d5d24e12
LM
67952021-01-21 Luis Machado <luis.machado@linaro.org>
6796
6797 * coffread.c (enter_linenos): Passing string to complaint.
6798 * valops.c (value_assign): Make array view.
6799
a59902a7
SM
68002021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6801
6802 * auto-load.h (debug_auto_load): Move here.
6803 (auto_load_debug_printf): New.
6804 * auto-load.c: Use auto_load_debug_printf.
6805 (debug_auto_load): Move to header.
6806 * linux-thread-db.c (try_thread_db_load): Use
6807 auto_load_debug_printf.
6808 * main.c (captured_main_1): Likewise.
6809
d3abc0ce
SM
68102021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6811
6812 * f-valprint.c (f77_array_offset_tbl): Remove.
6813
1e15fcac
SM
68142021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6815
6816 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6817
439706e6
SM
68182021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6819
6820 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6821 of gdb_select.
6822
325d39e4
HD
68232021-01-21 Hannes Domani <ssbssa@yahoo.de>
6824
6825 PR python/19151
6826 * python/py-breakpoint.c (bppy_get_location): Handle
6827 bp_hardware_breakpoint.
6828 (bppy_init): Likewise.
6829 (gdbpy_breakpoint_created): Likewise.
6830
7cb6d92a
SM
68312021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6832
6833 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6834
d4dd4fca
SM
68352021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6836
6837 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6838 (_initialize_gdb_bfd): Adjust.
6839
de53369b
SM
68402021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6841
6842 PR gdb/26828
6843 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6844
17e593e9
SM
68452021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6846
6847 * dwarf2/read.c (follow_die_offset): Add logging.
6848 (dwarf2_per_objfile::age_comp_units): Add logging.
6849
6bd434d6
SM
68502021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6851
6852 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6853 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6854 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6855 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6856 * arm-tdep.c (struct frame_unwind): Make static.
6857 * auto-load.c (auto_load_safe_path_vec): Make static.
6858 * csky-tdep.c (csky_stub_unwind): Make static.
6859 * gdbarch.c (gdbarch_data_registry): Make static.
6860 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6861 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6862 * i386-tdep.c (i386_frame_setup_skip_insns,
6863 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6864 Make static.
6865 * infrun.c (observer_mode): Make static.
6866 * linux-nat.c (sigchld_action): Make static.
6867 * linux-thread-db.c (thread_db_list): Make static.
6868 * maint-test-options.c (maintenance_test_options_list):
6869 * mep-tdep.c (mep_csr_registers): Make static.
6870 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6871 (stats): Make static.
6872 * nat/linux-osdata.c (struct osdata_type): Make static.
6873 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6874 * progspace.c (last_program_space_num): Make static.
6875 * python/py-param.c (struct parm_constant): Remove struct type
6876 name.
6877 (parm_constants): Make static.
6878 * python/py-record-btrace.c (btpy_list_methods): Make static.
6879 * python/py-record.c (recpy_gap_type): Make static.
6880 * record.c (record_goto_cmdlist): Make static.
6881 * regcache.c (regcache_descr_handle): Make static.
6882 * registry.h (DEFINE_REGISTRY): Make definition static.
6883 * symmisc.c (std_in, std_out, std_err): Make static.
6884 * top.c (previous_saved_command_line): Make static.
6885 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6886 static.
6887 * unittests/command-def-selftests.c (nr_duplicates,
6888 nr_invalid_prefixcmd, lists): Make static.
6889 * unittests/observable-selftests.c (test_notification): Make
6890 static.
6891 * unittests/optional/assignment/1.cc (counter): Make static.
6892 * unittests/optional/assignment/2.cc (counter): Make static.
6893 * unittests/optional/assignment/3.cc (counter): Make static.
6894 * unittests/optional/assignment/4.cc (counter): Make static.
6895 * unittests/optional/assignment/5.cc (counter): Make static.
6896 * unittests/optional/assignment/6.cc (counter): Make static.
6897
a6c11cbb
JS
68982021-01-20 Joel Sherrill <joel@rtems.org>
6899
6900 PR gdb/27219
6901 * remote.c (struct remote_thread_info) <resume_state>: Rename
6902 to...
6903 <get_resume_state>: ... this.
6904 (remote_target::resume): Adjust.
6905 (remote_target::commit_resume): Adjust.
6906 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6907
6f52fdf4
SDJ
69082021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6909 Tom Tromey <tom@tromey.com>
6910
6911 * stap-probe.c (stap_parse_single_operand): Handle '!'
6912 operator.
6913 (stap_parse_argument_conditionally): Likewise.
6914 Skip spaces after processing open-parenthesis sub-expression.
6915 (stap_parse_argument_1): Skip spaces after call to
6916 stap_parse_argument_conditionally.
6917 Handle case when right-side expression is a parenthesized
6918 sub-expression.
6919 Skip spaces after call to stap_parse_argument_1.
6920
1c3b85ad
LS
69212021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6922
6923 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6924
a9a87d35
LM
69252021-01-19 Luis Machado <luis.machado@linaro.org>
6926
6927 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6928 memory and save data.
6929 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6930 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6931 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6932 (trad_frame_value_bytes_p): Remove.
6933 (trad_frame_reset_saved_regs): Adjust documentation.
6934 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6935 constructor and reset the state of the registers.
6936 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6937 (trad_frame_value_bytes_p, trad_frame_set_value)
6938 (trad_frame_set_realreg, trad_frame_set_addr)
6939 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6940 (trad_frame_set_reg_realreg): Update to call member function.
6941 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6942 (trad_frame_get_prev_register): Likewise.
6943
6944 * aarch64-tdep.c (aarch64_analyze_prologue)
6945 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6946 (aarch64_prologue_prev_register): Update to use member functions.
6947 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6948 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6949 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6950 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6951 (arm_make_epilogue_frame_cache): Likewise.
6952 * avr-tdep.c (avr_frame_unwind_cache)
6953 (avr_frame_prev_register): Likewise.
6954 * cris-tdep.c (cris_scan_prologue): Likewise.
6955 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6956 * frv-tdep.c (frv_analyze_prologue): Likewise.
6957 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6958 * lm32-tdep.c (lm32_frame_cache): Likewise.
6959 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6960 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6961 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6962 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6963 (reset_saved_regs): Adjust to set realreg.
6964 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6965 call member functions.
6966 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6967 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6968 (s390_backchain_frame_unwind_cache): Likewise.
6969 * score-tdep.c (score7_analyze_prologue)
6970 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6971 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6972 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6973 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6974 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6975 * tilegx-tdep.c (tilegx_analyze_prologue)
6976 (tilegx_frame_cache): Likewise.
6977 * v850-tdep.c (v850_frame_cache): Likewise.
6978 * vax-tdep.c (vax_frame_cache): Likewise.
6979
bdec2917
LM
69802021-01-19 Luis Machado <luis.machado@linaro.org>
6981
6982 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6983 of buffer + length.
6984 (put_frame_register_bytes): Likewise.
6985 Adjust documentation.
6986 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6987 (safe_frame_unwind_memory): Likewise.
6988 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6989 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6990 gdb::array_view.
6991 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6992 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6993 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6994 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6995 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6996 * dwarf2/loc.c (rw_pieced_value): Likewise.
6997 * hppa-tdep.c (hppa_frame_cache): Likewise.
6998 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6999 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
7000 * i386-linux-tdep.c (i386_linux_sigtramp_start)
7001 (i386_linux_rt_sigtramp_start): Likewise.
7002 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
7003 * i386-tdep.c (i386_register_to_value): Likewise.
7004 * i387-tdep.c (i387_register_to_value): Likewise.
7005 * ia64-tdep.c (ia64_register_to_value): Likewise.
7006 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
7007 (m32r_linux_rt_sigtramp_start): Likewise.
7008 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
7009 * m68k-tdep.c (m68k_register_to_value): Likewise.
7010 * mips-tdep.c (mips_register_to_value)
7011 (mips_value_to_register): Likewise.
7012 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
7013 (ppcfbsd_sigtramp_frame_cache): Likewise.
7014 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
7015 (ppcobsd_sigtramp_frame_cache): Likewise.
7016 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
7017 (rs6000_register_to_value): Likewise.
7018 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7019 * tramp-frame.c (tramp_frame_start): Likewise.
7020 * valops.c (value_assign): Likewise.
7021
ccbe4c82
LM
70222021-01-19 Luis Machado <luis.machado@linaro.org>
7023
7024 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
7025 array_view.
7026 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
7027 instead of buffer and size.
7028 (trad_frame_set_reg_value_bytes): Likewise.
7029 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
7030 (trad_frame_set_value_bytes): Likewise.
7031
0e7620dc
MF
70322021-01-18 Mike Frysinger <vapier@gentoo.org>
7033
7034 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
7035
6a9ad81c
AB
70362021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
7037
7038 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
7039 (riscv_fbsd_gregset): Use riscv_supply_regset.
7040 (riscv_fbsd_fpregset): Likewise.
7041 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
7042 (riscv_linux_fregset): Likewise.
7043 * riscv-tdep.c (riscv_supply_regset): Define new function.
7044 * riscv-tdep.h (riscv_supply_regset): Declare new function.
7045
d3d7d1ba
TV
70462021-01-18 Tom de Vries <tdevries@suse.de>
7047
7048 PR tdep/27172
7049 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7050 New macro.
7051 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7052 for SEGV_BNDERR.
7053
aa2838cc
SM
70542021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7055
7056 * remote.c (class remote_target) <remote_hostio_send_command,
7057 remote_hostio_parse_result>: Constify parameter.
7058 (remote_hostio_parse_result): Likewise.
7059 (remote_target::remote_hostio_send_command): Adjust.
7060 (remote_target::remote_hostio_pread_vFile): Adjust.
7061 (remote_target::fileio_readlink): Adjust.
7062 (remote_target::fileio_fstat): Adjust.
7063
b5c8f22d
SM
70642021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7065
7066 * remote.c (remote_target::start_remote): Move wait_status to
7067 narrower scope.
7068
e3b2741b
SM
70692021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7070
7071 * remote.c (class remote_target):
7072 <add_current_inferior_and_thread>: Constify parameter.
7073 (stop_reply_extract_thread): Likewise.
7074 (remote_target::get_current_thread): Likewise.
7075 (remote_target::add_current_inferior_and_thread): Likewise.
7076
cecb1912
SM
70772021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7078
7079 * remote.c (class remote_target)
7080 <remote_unpack_thread_info_response,
7081 parse_threadlist_response>: Constify parameter and/or return
7082 value and or local variable.
7083 (stub_unpack_int): Likewise.
7084 (unpack_nibble): Likewise.
7085 (unpack_byte): Likewise.
7086 (unpack_int): Likewise.
7087 (unpack_string): Likewise.
7088 (unpack_threadid): Likewise.
7089 (remote_target::remote_unpack_thread_info_response): Likewise.
7090 (remote_target::parse_threadlist_response): Likewise.
7091
5a11fff0
AB
70922021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7093
7094 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7095
17e89137
LS
70962021-01-14 Lancelot Six <lsix@lancelotsix.com>
7097
7098 * MAINTAINERS (Write After Approval): Add myself.
7099
58eadc4b
BE
71002021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7101
7102 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7103 because is_trivially_default_constructible was first implemented with
7104 gcc-5.
7105
5fae2a2c
TV
71062021-01-14 Tom de Vries <tdevries@suse.de>
7107
7108 PR breakpoints/27151
7109 * objfiles.h (in_plt_section): Handle .plt.sec.
7110
8f66807b
AB
71112021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7112
7113 PR gdb/26819
7114 * remote.c
7115 (remote_target::select_thread_for_ambiguous_stop_reply): New
7116 member function.
7117 (remote_target::process_stop_reply): Call
7118 select_thread_for_ambiguous_stop_reply.
7119
bd497355
SM
71202021-01-13 Simon Marchi <simon.marchi@efficios.com>
7121
7122 * record-btrace.c (class record_btrace_target): Remove.
7123 (record_btrace_target::commit_resume): Remove.
7124 * record-full.c (class record_full_target): Remove.
7125 (record_full_target::commit_resume): Remove.
7126
c9d22089
SM
71272021-01-13 Simon Marchi <simon.marchi@efficios.com>
7128
7129 * remote.c (enum class resume_state): New.
7130 (struct resumed_pending_vcont_info): New.
7131 (struct remote_thread_info) <resume_state, set_not_resumed,
7132 set_resumed_pending_vcont, resumed_pending_vcont_info,
7133 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7134 New.
7135 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7136 (remote_target::remote_add_thread): Adjust.
7137 (remote_target::process_initial_stop_replies): Adjust.
7138 (remote_target::resume): Adjust.
7139 (remote_target::commit_resume): Rely on state in
7140 remote_thread_info and not on tp->executing.
7141 (remote_target::process_stop_reply): Adjust.
7142
d8d1feb4
SM
71432021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7144
7145 * arc-tdep.h (arc_debug_printf): New.
7146 * arc-tdep.c: Use arc_debug_printf.
7147 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7148 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7149 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7150
fb0f5031
SM
71512021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7152
7153 * arc-tdep.h (arc_debug): Change type to bool.
7154 * arc-tdep.c (arc_debug): Change type to bool.
7155 (arc_analyze_prologue): Adjust.
7156 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7157 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7158
5bf7e91b
SM
71592021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7160
7161 * auto-load.c (auto_load_objfile_script_1): Use bool.
7162 (execute_script_contents): Use bool.
7163
db972fce
SM
71642021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7165
7166 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7167 comment here.
7168 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7169 comment to header.
7170 * extension-priv.h (struct extension_language_script_ops)
7171 <auto_load_enabled>: Return bool.
7172 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7173 comment here.
7174 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7175 comment to header.
7176 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7177 move comment here.
7178 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7179 move comment to header.
7180 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7181 move comment here.
7182 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7183 move comment to header.
7184
5e12f48f
SM
71852021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7186
7187 * auto-load.h (file_is_auto_load_safe): Change return type to
7188 bool, move comment here.
7189 * auto-load.c (file_is_auto_load_safe): Change return type and
7190 advice_printed to bool. Move comment to header.
7191
54ca9002
SM
71922021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 * jit.c (jit_debug_printf): New, use throughout file.
7195
24a7f1b5
SM
71962021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7197
7198 * infrun.c (normal_stop): Fix indentation.
7199
fe7a351a
SM
72002021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7201
7202 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7203 declarations to ...
7204 * symfile.h: ... here.
7205 * symfile.c: Update doc.
7206
16e9019e
SM
72072021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7208
7209 * target.h (baud_rate, serial_parity): Move declarations...
7210 * serial.h: ... here.
7211 * main.c: Include serial.h.
7212 * serial.c (baud_rate, serial_parity): Update doc.
7213
b2f2ae0d
SM
72142021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7215
7216 * top.c (pre_init_ui_hook): Remove.
7217
5291fe3c
SP
72182021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7219
7220 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7221 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7222 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7223 * features/aarch64-fpu.xml: Add bfloat16 type.
7224
ce38f5ed
AB
72252021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7228
7c654b71
AB
72292021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7230
7231 * f-exp.y (dot_ops): Rename to...
7232 (fortran_operators): ...this. Add a header comment. Add symbol
7233 based operators.
7234 (yylex): Update to use fortran_operators not dot_ops. Remove
7235 special handling for '**', this is now included in
7236 fortran_operators.
7237
c6185dce
SM
72382021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7239
7240 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7241 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7242 * aarch64-tdep.c: Use aarch64_debug_printf.
7243
eef401dc
SM
72442021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7245
7246 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7247 file.
7248
062eaacb
SM
72492021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7250
7251 * jit.c (jit_debug): Change type to bool.
7252 (_initialize_jit): Adjust.
7253
54585eee
TT
72542021-01-09 Tom Tromey <tom@tromey.com>
7255
7256 PR compile/23672
7257 * compile/compile.c (compile_to_object): Avoid crash when
7258 osabi_triplet_regexp returns NULL.
7259
bc167b6b
TT
72602021-01-09 Tom Tromey <tom@tromey.com>
7261
7262 * tracepoint.h (class collection_list) <append_exp>: Take a
7263 std::string.
7264 * tracepoint.c (collection_list::append_exp): Take a std::string.
7265 (encode_actions_1): Update.
7266
8fc48b79
TT
72672021-01-08 Tom Tromey <tromey@adacore.com>
7268
7269 * parse.c (parse_expression): Add void_context_p parameter. Use
7270 parse_exp_in_context.
7271 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7272 parse_expression.
7273 (print_command, call_command): Update.
7274 * expression.h (parse_expression): Add void_context_p parameter.
7275
3c8c6de2
AB
72762021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7277
7278 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7279 for internalvar components that have a dynamic location.
7280
1940319c
TV
72812021-01-08 Tom de Vries <tdevries@suse.de>
7282
7283 PR gdb/26881
7284 * breakpoint.c (create_exception_master_breakpoint_probe)
7285 (create_exception_master_breakpoint_hook): Factor out
7286 of ...
7287 (create_exception_master_breakpoint): ... here. Only try to install
7288 the master exception breakpoint in objfile.debug using the
7289 _Unwind_DebugHook method, if the install using probes in objfile
7290 failed.
7291
e3436813
AB
72922021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7293
7294 * f-lang.c (fortran_value_subarray): Call value_from_component.
7295
e904f56d
MF
72962021-01-07 Mike Frysinger <vapier@gentoo.org>
7297
7298 * remote-sim.c: Include memory-map.h.
7299 (gdbsim_target): Define memory_map override.
7300 (gdbsim_target::memory_map): Define.
7301
959d6a67
TT
73022021-01-07 Tom Tromey <tromey@adacore.com>
7303
7304 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7305
d4813f10
TT
73062021-01-07 Tom Tromey <tromey@adacore.com>
7307
7308 * ada-lang.c (add_component_interval): Start loop using vector's
7309 updated size.
7310
b49180ac
TT
73112021-01-06 Tom Tromey <tromey@adacore.com>
7312
7313 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7314 Do not cast result.
7315 * valarith.c (fixed_point_binop): Handle multiplication
7316 and division specially.
7317 * valops.c (value_to_gdb_mpq): New function.
7318 (value_cast_to_fixed_point): Use it.
7319
55195361
HD
73202021-01-05 Hannes Domani <ssbssa@yahoo.de>
7321
7322 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7323 Call wnoutrefresh instead of tui_win_info::refresh_window.
7324
1b6d4bb2
HD
73252021-01-05 Hannes Domani <ssbssa@yahoo.de>
7326
7327 * tui/tui-source.c (tui_source_window::show_line_number):
7328 Redraw second space after line number.
7329
b5ff370e
HD
73302021-01-05 Hannes Domani <ssbssa@yahoo.de>
7331
7332 PR tui/26927
7333 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7334 Fix source pad size in prefresh.
7335 (tui_source_window_base::show_source_content): Grow source pad
7336 if necessary.
7337
c68ea49f
MF
73382021-01-04 Mike Frysinger <vapier@gentoo.org>
7339
7340 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7341 (bfin_frame_align): Use align_down.
7342
e4ad960a
TV
73432021-01-04 Tom de Vries <tdevries@suse.de>
7344
7345 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7346 terminators that do not terminate anything.
7347
3ec3145c
SM
73482021-01-04 Simon Marchi <simon.marchi@efficios.com>
7349
7350 * debug.c (debug_print_depth): New.
7351 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7352 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7353 * infrun.c (start_step_over): Use
7354 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7355 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7356 INFRUN_SCOPED_DEBUG_START_END.
7357 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7358
e71daf80
SM
73592021-01-04 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7362
335709bc
SM
73632021-01-04 Simon Marchi <simon.marchi@efficios.com>
7364
7365 * utils.c (vfprintf_unfiltered): Print timestamp only when
7366 previous debug output ended with a newline.
7367
098caef4
LM
73682021-01-04 Luis Machado <luis.machado@linaro.org>
7369
7370 Update all users of trad_frame_saved_reg to use the new member
7371 functions.
7372
7373 Remote all struct keywords from declarations of trad_frame_saved_reg
7374 types, except on forward declarations.
7375
7376 * aarch64-tdep.c: Update.
7377 * alpha-mdebug-tdep.c: Update.
7378 * alpha-tdep.c: Update.
7379 * arc-tdep.c: Update.
7380 * arm-tdep.c: Update.
7381 * avr-tdep.c: Update.
7382 * cris-tdep.c: Update.
7383 * csky-tdep.c: Update.
7384 * frv-tdep.c: Update.
7385 * hppa-linux-tdep.c: Update.
7386 * hppa-tdep.c: Update.
7387 * hppa-tdep.h: Update.
7388 * lm32-tdep.c: Update.
7389 * m32r-linux-tdep.c: Update.
7390 * m32r-tdep.c: Update.
7391 * m68hc11-tdep.c: Update.
7392 * mips-tdep.c: Update.
7393 * moxie-tdep.c: Update.
7394 * riscv-tdep.c: Update.
7395 * rs6000-tdep.c: Update.
7396 * s390-linux-tdep.c: Update.
7397 * s390-tdep.c: Update.
7398 * score-tdep.c: Update.
7399 * sparc-netbsd-tdep.c: Update.
7400 * sparc-sol2-tdep.c: Update.
7401 * sparc64-fbsd-tdep.c: Update.
7402 * sparc64-netbsd-tdep.c: Update.
7403 * sparc64-obsd-tdep.c: Update.
7404 * sparc64-sol2-tdep.c: Update.
7405 * tilegx-tdep.c: Update.
7406 * v850-tdep.c: Update.
7407 * vax-tdep.c: Update.
7408
7409 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7410 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7411
7412 * trad-frame.c: Update.
7413 Remove TF_REG_* enum.
7414 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7415 a trivially-constructible struct.
7416 (trad_frame_reset_saved_regs): Adjust to use member function.
7417 (trad_frame_value_p): Likewise.
7418 (trad_frame_addr_p): Likewise.
7419 (trad_frame_realreg_p): Likewise.
7420 (trad_frame_value_bytes_p): Likewise.
7421 (trad_frame_set_value): Likewise.
7422 (trad_frame_set_realreg): Likewise.
7423 (trad_frame_set_addr): Likewise.
7424 (trad_frame_set_unknown): Likewise.
7425 (trad_frame_set_value_bytes): Likewise.
7426 (trad_frame_get_prev_register): Likewise.
7427 * trad-frame.h: Update.
7428 (trad_frame_saved_reg_kind): New enum.
7429 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7430 <m_kind, m_reg>: New member fields.
7431 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7432 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7433 <is_addr, is_unknown, is_value_bytes>: New member functions.
7434
9898e882
SM
74352021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7436
7437 * target-float.c: Fix typos.
7438
b66b4e65
HD
74392021-01-02 Hannes Domani <ssbssa@yahoo.de>
7440
7441 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7442
b5b5650a
JB
74432021-01-01 Joel Brobecker <brobecker@adacore.com>
7444
7445 * gdbarch.sh: Update copyright year range.
7446
3666a048
JB
74472021-01-01 Joel Brobecker <brobecker@adacore.com>
7448
7449 Update copyright year range in copyright header of all GDB files.
7450
ff7e39b6
JB
74512021-01-01 Joel Brobecker <brobecker@adacore.com>
7452
7453 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7454 to the list of directories to update.
7455
2b47c078
JB
74562021-01-01 Joel Brobecker <brobecker@adacore.com>
7457
7458 * top.c (print_gdb_version): Update copyright year.
7459
9e5e03df 74602021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 7461
476923f1 7462 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 7463
476923f1 7464For older changes see ChangeLog-2020.
c906108c
SS
7465\f
7466Local Variables:
7467mode: change-log
7468left-margin: 8
7469fill-column: 74
7470version-control: never
57da7796 7471coding: utf-8
c906108c 7472End:
This page took 3.363064 seconds and 4 git commands to generate.