]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove duplicate declaration of 'find_thread_ptid'
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4743af62
TBA
12021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
4
2608aff5
SM
52021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
6
7 PR gdb/28017
8 * machoread.c (macho_symfile_offsets): Use
9 gdb_bfd_count_sections to allocate objfile::section_offsets.
10
0c1bcd23
SM
112021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * objfiles.h (struct obj_section): Move down.
14 <offset, set_offset, addr, endaddr>: New.
15 (obj_section_offset, obj_section_addr, obj_section_endaddr),
16 replace all users to use obj_section methods.
17 (struct objfile) <section_offset, set_section_offset>: New.
18
192021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * objfiles.h (struct obj_section): Move down.
22 <offset, set_offset, addr, endaddr>: New.
23 (obj_section_offset, obj_section_addr, obj_section_endaddr),
24 replace all users to use obj_section methods.
25 (struct objfile) <section_offset, set_section_offset>: New.
26
f07fad95
SM
272021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * .flake8: New.
30
a52d0b9d
LM
312021-06-28 Luis Machado <luis.machado@linaro.org>
32
33 * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
34 byte.
35 (aarch64_linux_set_memtags): Likewise.
36 (aarch64_linux_get_memtag): Likewise.
37 (aarch64_linux_report_signal_info): Likewise.
38
e660f4e9
LM
392021-06-28 Luis Machado <luis.machado@linaro.org>
40
41 * aarch64-linux-tdep.c
42 (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
43
0a3b55a6
LM
442021-06-28 Luis Machado <luis.machado@linaro.org>
45
46 * aarch64-linux-tdep.c
47 (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
48 size.
49 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
50 8 and update comments.
51
b447dd03
SM
522021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * gdbarch.sh (struct gdbarch_info): Initialize fields, add
55 constructor.
56 * gdbarch.h: Re-generate.
57 * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
58 * arch-utils.c (gdbarch_info_init): Remove.
59
c87c999c
SM
602021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
61
62 * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
63 (gdbarch_find_by_info): Remove print.
64 * gdbarch.c, gdbarch.h: Re-generate.
65
4d60b897
AB
662021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 * remote.c (remote_target::start_remote): Set 'starting_up' using
69 boolean values instead of integers.
70
6a72dbb6
SM
712021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * guile/scm-param.c (struct param_smob) <set_command,
74 show_command>: Remove.
75 <commands>: New.
76 (pascm_is_valid): Adjust.
77 (add_setshow_generic): Use return values of add_setshow
78 functions, return a set_show_commands.
79 (gdbscm_register_parameter_x): Adjust.
80
4c0ba02a
SM
812021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * command.h (add_setshow_enum_cmd): Remove context parameter.
84 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
85 set context.
86 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
87 context here.
88
d6ff04a3
SM
892021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
90
91 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
92 assert.
93
0f8e2034
SM
942021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * cli/cli-decode.h (struct cmd_list_element) <set_context,
97 context>: New.
98 <context>: Rename to...
99 <m_context>: ... this.
100 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
101 * command.h (set_cmd_context, get_cmd_context): Remove, use
102 cmd_list_element::set_context and cmd_list_element::context
103 everywhere instead.
104
bd742128
AB
1052021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
106
107 * NEWS: Mention changes to 'info sources'.
108 * symtab.c (info_sources_filter::print): Delete.
109 (struct output_source_filename_data) <print_header>: Delete
110 declaration. <printed_filename_p>: New member function.
111 (output_source_filename_data::print_header): Delete.
112 (info_sources_worker): Update group-by-objfile style output to
113 make it CLI suitable, simplify non-group-by-objfile now this is
114 only used from the MI.
115 (info_sources_command): Make group-by-objfile be the default for
116 CLI info sources command.
117 * symtab.h (struct info_sources_filter) <print>: Delete.
118
1fb1ce02
AB
1192021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
120
121 * NEWS: Mention additions to -file-list-exec-source-files.
122 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
123 --group-by-objfile option.
124 * symtab.c (isrc_flag_option_def): Rename to...
125 (isrc_match_flag_option_def): ...this.
126 (info_sources_option_defs): Rename to...
127 (info_sources_match_option_defs): ...this, and update to rename of
128 isrc_flag_option_def.
129 (struct filename_grouping_opts): New struct.
130 (isrc_grouping_flag_option_def): New type.
131 (info_sources_grouping_option_defs): New static global.
132 (make_info_sources_options_def_group): Update to return two option
133 groups.
134 (info_sources_command_completer): Update for changes to
135 make_info_sources_options_def_group.
136 (info_sources_worker): Add extra parameter, use this to display
137 alternative output format.
138 (info_sources_command): Pass extra parameter to
139 info_sources_worker.
140 (_initialize_symtab): Update for changes to
141 make_info_sources_options_def_group.
142 * symtab.h (info_sources_worker): Add extra parameter.
143
0e350a05
AB
1442021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
145
146 * NEWS: Mention additions to -file-list-exec-source-files.
147 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
148 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
149 options, and make use of info_sources_worker.
150 * symtab.c (struct info_sources_filter): Moved to symtab.h.
151 (info_sources_filter::print): Take uiout argument, produce output
152 through uiout.
153 (struct output_source_filename_data)
154 <output_source_filename_data>: Take uiout argument, store into
155 m_uiout. <output>: Rewrite comment, add additional arguments to
156 declaration. <operator()>: Send more arguments to
157 output. <m_uiout>: New member variable.
158 (output_source_filename_data::output): Take extra arguments,
159 produce output through m_uiout, and structure for MI.
160 (output_source_filename_data::print_header): Produce output
161 through m_uiout.
162 (info_sources_worker): New function, the implementation is taken
163 from info_sources_command, but modified so produce output through
164 a ui_out.
165 (info_sources_command): The second half of this function has gone
166 to become info_sources_worker.
167 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
168 extra parameter to print member function.
169 (info_sources_worker): Declare.
170
4a0788e0
AB
1712021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
172
173 * symtab.c (struct info_sources_filter): New.
174 (info_sources_filter::info_sources_filter): New function.
175 (info_sources_filter::matches): New function.
176 (info_sources_filter::print): New function.
177 (struct filename_partial_match_opts): Moved to later in the file
178 and update the comment.
179 (struct output_source_filename_data)
180 <output_source_filename_data>: New constructor. <regexp>: Delete,
181 this is now in info_sources_filter. <c_regexp>: Delete, this is
182 now in info_sources_filter. <reset_output>: New member function.
183 <filename_seen_cache>: Rename to m_filename_seen_cache, change
184 from being a pointer, to being an actual object. <first>: Rename
185 to m_first. <print_header>: New member function. <partial_match>:
186 Delete.
187 (output_source_filename_data::output): Update now
188 m_filename_seen_cache is no longer a pointer, and for other member
189 variable name changes. Add a header comment.
190 (print_info_sources_header): Renamed to...
191 (output_source_filename_data::print_header): ...this. Update now
192 it's a member function and to take account of member variable
193 renaming.
194 (info_sources_command): Add a header comment, delete stack local
195 filename_seen_cache, initialization of output_source_filename_data
196 is now done by the constructor. Call print_header member function
197 instead of print_info_sources_header, call reset_output member
198 function instead of manually performing the reset.
199
fc4d5ebf
AB
2002021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
201
202 * dwarf2/read.c (struct dwarf2_base_index_functions)
203 <has_unexpanded_symtabs>: Declare.
204 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
205 function.
206 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
207 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
208 Declare.
209 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
210 new function.
211 * quick-symbol.h (struct quick_symbol_functions)
212 <has_unexpanded_symtabs>: Declare.
213 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
214 function.
215
d038ce48
AB
2162021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
219 setting prototyped flag.
220
158cc4fe
AB
2212021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
224 an empty gdb::optional when calling value_struct_elt.
225 (desc_data): Likewise.
226 (desc_one_bound): Likewise.
227 * eval.c (structop_base_operation::evaluate_funcall): Pass
228 gdb::array_view, not a gdb::array_view* to value_struct_elt.
229 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
230 an empty gdb::optional when calling value_struct_elt.
231 (eval_op_structop_ptr): Likewise.
232 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
233 * guile/scm-value.c (gdbscm_value_field): Likewise.
234 * m2-lang.c (eval_op_m2_high): Likewise.
235 (eval_op_m2_subscript): Likewise.
236 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
237 * python/py-value.c (valpy_getitem): Likewise.
238 * rust-lang.c (rust_val_print_str): Likewise.
239 (rust_range): Likewise.
240 (rust_subscript): Likewise.
241 (eval_op_rust_structop): Likewise.
242 (rust_aggregate_operation::evaluate): Likewise.
243 * valarith.c (value_user_defined_op): Likewise.
244 * valops.c (search_struct_method): Change parameter type, update
245 function body accordingly, and update header comment.
246 (value_struct_elt): Change parameter type, update function body
247 accordingly.
248 * value.h (value_struct_elt): Update declaration.
249
13221aec
AB
2502021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 PR gdb/27994
253 * eval.c (structop_base_operation::evaluate_funcall): Pass
254 array_view instead of array to value_struct_elt.
255 * valarith.c (value_user_defined_op): Likewise.
256 * valops.c (typecmp): Change parameter type from array pointer to
257 array_view. Update header comment, and update body accordingly.
258 (search_struct_method): Likewise.
259 (value_struct_elt): Likewise.
260 * value.h (value_struct_elt): Update declaration.
261
79bd4d34
AB
2622021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 PR gdb/27994
265 * eval.c (structop_base_operation::evaluate_funcall): Add a
266 nullptr to the end of the args array, which should not be included
267 in the argument array_view. Pass all the arguments through to
268 value_struct_elt.
269 * valops.c (search_struct_method): Update header comment.
270 (value_struct_elt): Likewise.
271
3da4c644
TT
2722021-06-25 Tom Tromey <tom@tromey.com>
273
274 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
275 logic.
276
3e9f1ca1
TT
2772021-06-25 Tom Tromey <tom@tromey.com>
278
279 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
280 (scan_partial_symbols, partial_die_parent_scope)
281 (add_partial_symbol, add_partial_subprogram)
282 (compute_delayed_physnames, rust_union_quirks)
283 (process_full_comp_unit, process_full_type_unit)
284 (process_imported_unit_die, process_die, dw2_linkage_name)
285 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
286 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
287 (read_variable, dwarf2_get_subprogram_pc_bounds)
288 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
289 (dwarf2_attach_fn_fields_to_type)
290 (quirk_ada_thick_pointer_struct, read_structure_type)
291 (handle_struct_member_die, process_structure_scope)
292 (read_array_type, read_array_order, prototyped_function_p)
293 (read_subroutine_type, dwarf2_init_complex_target_type)
294 (read_base_type, read_subrange_type, read_unspecified_type)
295 (load_partial_dies, partial_die_info::fixup, set_cu_language)
296 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
297 (dwarf2_canonicalize_name, follow_die_offset)
298 (prepare_one_comp_unit): Update.
299 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
300
bf1dcdb3
TT
3012021-06-25 Tom Tromey <tom@tromey.com>
302
303 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
304 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
305 set language_defn. Handle DW_LANG_OpenCL.
306 (prepare_one_comp_unit): Check producer and set language_defn.
307
6b95f5ad
AB
3082021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
309
310 * NEWS: Mention Python BP_CATCHPOINT feature.
311 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
312 (bppy_init): Likewise.
313 (gdbpy_breakpoint_created): Likewise.
314
08080f97
AB
3152021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
316
317 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
318 bp_catchpoint.
319 (bpscm_want_scm_wrapper_p): Likewise.
320 (gdbscm_make_breakpoint): Likewise.
321 (breakpoint_integer_constants): Likewise.
322
81b327aa
AB
3232021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
326 for invalid breakpoint numbers, and unsupported breakpoint
327 numbers.
328
50a6759f
TT
3292021-06-25 Tom Tromey <tom@tromey.com>
330
331 * dwarf2/index-write.c (struct addrmap_index_data): Add
332 initializers.
333 <operator()>: Declare.
334 (addrmap_index_data::operator()): Rename from
335 add_address_entry_worker. Remove 'datap' parameter.
336 (write_address_map): Update.
337 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
338 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
339 parameters.
340 (dump_psymtab_addrmap): Update.
341 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
342 parameter.
343 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
344 (struct mutable_foreach_data): Remove.
345 (addrmap_mutable_foreach_worker): Update.
346 (addrmap_mutable_foreach): Remove 'data' parameter.
347 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
348 (addrmap_foreach): Remove 'data' parameter.
349
67470e9d
TT
3502021-06-25 Tom Tromey <tromey@adacore.com>
351
352 * python/py-type.c (typy_get_name): Decode an Ada type name.
353
8a3df5ac
TT
3542021-06-25 Tom Tromey <tromey@adacore.com>
355
356 * ada-lang.c (ada_decode): Add wrap parameter.
357 * ada-lang.h (ada_decode): Add wrap parameter.
358
134df964
LM
3592021-06-25 Luis Machado <luis.machado@linaro.org>
360
361 * corelow.c (core_target::core_target) Update to read target
362 description.
363
224506e9
SM
3642021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * python/lib/gdb/__init__.py: Format.
367
ac0d67ed
SM
3682021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * infrun.c (do_target_wait): Remove wait_ptid parameter.
371 (fetch_inferior_event): Adjust.
372
4e317a76
SM
3732021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
376 with name of chosen unwinder.
377 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
378 unwinder in debug message.
379
80d1206d
AS
3802021-06-22 Andreas Schwab <schwab@suse.de>
381
382 PR symtab/27999
383 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
384 DW_LLE_start_end.
385
80dc83fd
AB
3862021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
387
388 * breakpoint.c (insert_bp_location): If we catch a
389 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
390 been deleted.
391
96f842cb
AB
3922021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
393
394 * NEWS: Mention new target feature name.
395 * arch/riscv.c (riscv_create_target_description): GDB doesn't
396 currently create target descriptions containing vector registers.
397 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
398 variable.
399 <operator==>: Also compare vlen.
400 <hash>: Also include vlen.
401 * riscv-tdep.c (riscv_feature_name_vector): New static global.
402 (struct riscv_vector_feature): New struct.
403 (riscv_vector_feature): New static global.
404 (riscv_register_reggroup_p): Ensure vector registers are part of
405 the 'all' group, and part of the 'vector' group.
406 (riscv_dwarf_reg_to_regnum): Handle vector registers.
407 (riscv_gdbarch_init): Check vector register feature.
408 * riscv-tdep.h: Add vector registers to GDB's internal register
409 numbers, and to the DWARF register numbers.
410
d52b8007
AB
4112021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
412
413 * NEWS: Mention the two new methods.
414 * python/py-frame.c (frapy_level): New function.
415 (frame_object_methods): Register 'level' method.
416 * python/py-unwind.c (pending_framepy_level): New function.
417 (pending_frame_object_methods): Register 'level' method.
418
8b9c48b2
AB
4192021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * python/py-inferior.c (infpy_get_connection_num): Call
422 gdb_py_object_from_longest instead of PyLong_FromLong directly.
423
61e2dde2
AB
4242021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
427 saving user registers.
428
7e3941ac
MF
4292021-06-19 Mike Frysinger <vapier@gentoo.org>
430
431 * acinclude.m4: Delete most m4_include's of ../config files.
432 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
433 * aclocal.m4: Regenerate.
434 * configure: Regenerate.
435
336b30e5
PA
4362021-06-17 Pedro Alves <pedro@palves.net>
437
438 * scoped_ignore_signal.h (scoped_ignore_signal): Add
439 ConsumePending template parameter.
440 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
441 sigtimedwait if ConsumePending is false.
442 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
443 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
444 <m_ignore_signal>: Initialize with ConsumePending=false.
445
2af6d46f
PA
4462021-06-17 Pedro Alves <pedro@palves.net>
447
448 * Makefile.in (SELFTESTS_SRCS): Add
449 unittests/scoped_ignore_signal-selftests.c.
450 * unittests/scoped_ignore_signal-selftests.c: New.
451
6a7f1c20
PA
4522021-06-17 Pedro Alves <pedro@palves.net>
453
454 * gdbsupport/scoped_ignore_signal.h: New.
455 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
456 instead of <signal.h>. Don't include <unistd.h>.
457 (scoped_ignore_sigpipe): Remove.
458 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
459 instead of <signal.h>. Don't include <unistd.h>.
460 (lazy_init): New.
461 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
462 and lazy_init.
463
965febe5
PA
4642021-06-17 Pedro Alves <pedro@palves.net>
465
466 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
467 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
468 * inflow.h: Delete, moved to gdbsupport/ under a different name.
469 * ser-unix.c: Don't include "inflow.h". Include
470 "gdbsupport/scoped_ignore_sigttou.h".
471
82a5082e
PA
4722021-06-17 Pedro Alves <pedro@palves.net>
473
474 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
475 ...
476 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
477 tui_getc_1.
478 (cur_seq, start_sequence): New.
479 (tui_getc_1): Pass key escape sequences for curses control keys to
480 readline. Handle mouse and ctrl-l here.
481 (tui_resize_all): Disable/reenable the keypad if the command
482 window has the focus too.
483 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
484 setting.
485 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
486
7daf500d
SM
4872021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
490
8457e5ec
TV
4912021-06-16 Tom de Vries <tdevries@suse.de>
492
493 PR symtab/26327
494 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
495 (dwarf2_cu::get_builder): Declare and move ...
496 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
497 of ancestor. Assert return value is non-null.
498 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
499 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
500 (dwarf2_per_objfile): Add sym_cu field.
501
93df3340
AM
5022021-06-15 Alan Modra <amodra@gmail.com>
503
504 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
505
483ab96a
MF
5062021-06-14 Mike Frysinger <vapier@gentoo.org>
507
508 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
509 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
510
09db4332
JB
5112021-06-14 John Baldwin <jhb@FreeBSD.org>
512
513 * configure.ac: Check for <sys/procctl.h>.
514 * config.in, configure: Regenerate.
515 * fbsd-nat.c: Include <sys/procctl.h> if present.
516 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
517 (fbsd_nat_target::create_inferior)
518 (fbsd_nat_target::supports_disable_randomization): New.
519 * fbsd-nat.h (fbsd_nat_target::create_inferior)
520 (fbsd_nat_target::supports_disable_randomization): New.
521
739025e8
BE
5222021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
523
524 * compile/compile.c: Include missing header signal.h.
525
d424629d
JB
5262021-06-12 John Baldwin <jhb@FreeBSD.org>
527
528 * remote.c (remote_new_objfile): Fix indentation.
529
e2b9ea4b
KB
5302021-06-11 Kevin Buettner <kevinb@redhat.com>
531
532 * solib.c (libpthread_name_p): Match "libc" in addition
533 to "libpthread".
534 * linux-thread-db.c (libpthread_objfile_p): New function.
535 (libpthread_name_p): Adjust preexisting callers to use
536 libpthread_objfile_p().
537
873793ae
SM
5382021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
539
540 * dwarf2/loc.h (struct call_site_stuff): Remove.
541
48ec4c05
TT
5422021-06-11 Tom Tromey <tom@tromey.com>
543
544 PR rust/23427
545 * rust-parse.c (rust_parser::lex_identifier): Handle raw
546 identifiers.
547 (rust_lex_tests): Add raw identifier tests.
548
f9e59d06
LS
5492021-06-08 Lancelot Six <lsix@lancelotsix.com>
550
551 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
552 instead of '== None'.
553 (FrameVars): Use 'is not None' instead of '!= None'.
554 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
555 Use 'is None' instead of '== None' and 'is not None' instead of '!=
556 None'.
557
122373f7
SM
5582021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
559
560 * inferior.h (class inferior) <in_initial_library_scan>: New.
561 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
562 * infrun.c (follow_fork_inferior): Likewise.
563 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
564 by try_thread_db_load_1
565 (thread_db_load): Return early if in_initial_library_scan is
566 set.
567 * remote.c (remote_new_objfile): Return early if
568 in_initial_library_scan is set.
569
1b453aed
PA
5702021-06-07 Pedro Alves <pedro@palves.net>
571
572 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
573 ctor.
574 * symtab.h (struct symbol): Add defaulted copy assignment
575 operator.
576
fa6ec8ef
PA
5772021-06-07 Pedro Alves <pedro@palves.net>
578
579 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
580 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
581 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
582 local.
583
c57eb1a2
PA
5842021-06-07 Pedro Alves <pedro@palves.net>
585
586 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
587 (nat_sigval_t): ... this and remove typedef of same name.
588 (struct nat_siginfo): Rename to ...
589 (nat_siginfo_t): ... this and remove typedef of same name.
590 (struct compat_sigval): Rename to ...
591 (compat_sigval_t): ... this and remove typedef of same name.
592 (struct compat_siginfo): Rename to ...
593 (compat_siginfo_t): ... this and remove typedef of same name.
594 (struct compat_x32_siginfo): Rename to ...
595 (compat_x32_siginfo_t): ... this and remove typedef of same name.
596 (amd64_linux_siginfo_fixup_common): Adjust.
597
d8ca8e9f
PA
5982021-06-07 Pedro Alves <pedro@palves.net>
599
600 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
601 __attribute__ __aligned__ from the typedef to the struct.
602
a12a15e7
AB
6032021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
604
605 PR gdb/27847
606 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
607 type_align, and spot case where the alignment is unknown.
608
ecac8d1c
CL
6092021-06-07 Carl Love <cel@us.ibm.com>
610
611 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
612 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
613 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
614 ppc64_pcrel_linkage2_target): New functions.
615 (ppc64_standard_linkage9, ppc64_standard_linkage10,
616 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
617 instruction patterns.
618 (ppc64_standard_linkage9, ppc64_standard_linkage10,
619 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
620 in define MAX expression.
621 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
622 ppc64_standard_linkage10, ppc64_standard_linkage11,
623 ppc64_standard_linkage12.
624 * (ppc_insn_prefix_dform): New function.
625
cfa8e270
SM
6262021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
627
628 PR gdb/27899
629 * sparc-nat.c (sparc_fetch_inferior_registers): Set
630 inferior_ptid instead of using switch_to_thread.
631 (sparc_store_inferior_registers): Likewise.
632
4a977544
BE
6332021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
634
635 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
636 (compile_to_object): Ignore SIGPIPE before calling the plugin.
637
8ff8c543
TT
6382021-06-05 Tom Tromey <tom@tromey.com>
639
640 * data-directory/Makefile.in (Makefile): Use correct directory
641 name.
642
19d6d783
TT
6432021-06-05 Tom Tromey <tom@tromey.com>
644
645 * data-directory/Makefile.in (Makefile): Rewrite.
646
b316465f
TT
6472021-06-05 Tom Tromey <tromey@adacore.com>
648
649 * configure: Rebuild.
650 * configure.ac: Add ACX_NONCANONICAL_TARGET.
651
ae61ef2c
SV
6522021-06-05 Shahab Vahedi <shahab@synopsys.com>
653
654 * NEWS: Document 'set disassembler-options' support for the ARC
655 target.
656 * arc-tdep.c (arc_gdbarch_init): Set
657 'gdbarch_valid_disassembler_options'.
658
386de171
TT
6592021-06-04 Tom Tromey <tromey@adacore.com>
660
661 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
662 parameter.
663 * dwarf2/loc.c (dwarf2_evaluate_property) <case
664 PROP_VARIABLE_NAME>: New case.
665 (compute_var_value): New function.
666 (sect_variable_value): Use compute_var_value.
667 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
668 (var_decl_name): New function.
669 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
670 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
671 constant.
672 (union dynamic_prop_data) <variable_name>: New member.
673 (struct dynamic_prop) <variable_name, set_variable_name>: New
674 methods.
675
4351271e
AB
6762021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
677
678 * remote.c (remote_target)
679 <select_thread_for_ambiguous_stop_reply>: Add additional debug
680 output.
681
a5375566
HD
6822021-06-04 Hannes Domani <ssbssa@yahoo.de>
683
684 * python/py-tui.c (class tui_py_window): Add click function.
685 (tui_py_window::click): Likewise.
686
1bace02a
HD
6872021-06-04 Hannes Domani <ssbssa@yahoo.de>
688
689 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
690 * tui/tui-data.h (struct tui_win_info): Add click function.
691 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
692 (tui_deprep_terminal): Disable mouse events.
693 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
694 * tui/tui.c (tui_disable): Disable mouse events.
695
df5bc734
MH
6962021-06-03 Magne Hov <mhov@undo.io>
697
698 PR python/27841
699 * eval.c (expression::evaluate): Check inferior_ptid.
700
415c8100
PA
7012021-06-03 Pedro Alves <pedro@palves.net>
702
703 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
704 affiliation.
705 (Global Maintainers): Update my address.
706 (Write After Approval): Remove stale entry.
707
83810881
JB
7082021-06-03 John Baldwin <jhb@FreeBSD.org>
709
710 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
711 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
712 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
713 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
714 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
715 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
716 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
717 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
718 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
719 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
720 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
721 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
722 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
723 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
724 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
725 (fbsd_report_signal_info): New.
726 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
727 report_signal_info method.
728
4c958d79
MH
7292021-06-03 Magne Hov <mhov@undo.io>
730
731 * MAINTAINERS (Write After Approval): Add Magne Hov.
732
6ac5237c
HD
7332021-06-03 Hannes Domani <ssbssa@yahoo.de>
734
735 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
736 gdb.SYMBOL_LABEL_DOMAIN constant.
737
aeeb758d
JB
7382021-06-01 John Baldwin <jhb@FreeBSD.org>
739
740 * infrun.c (handle_inferior_event): Only call
741 gdbarch_displaced_step_restore_all_in_ptid if
742 gdbarch_supports_displaced_stepping is true.
743
906f72d4
TT
7442021-06-01 Tom Tromey <tromey@adacore.com>
745
746 * Makefile.in (all-data-directory): Remove.
747 (data-directory/Makefile): Remove.
748
ba56237d
TT
7492021-06-01 Tom Tromey <tromey@adacore.com>
750
751 * configure: Rebuild.
752 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
753
2adf1781
TT
7542021-06-01 Tom Tromey <tromey@adacore.com>
755
756 * silent-rules.mk (ECHO_CC): New variable.
757
bdbbcd57
TT
7582021-06-01 Tom Tromey <tromey@adacore.com>
759
760 * Makefile.in (SUBDIRS): Add testsuite.
761 (all): Don't exclude testsuite.
762
f99d1d37
TT
7632021-06-01 Tom Tromey <tromey@adacore.com>
764
765 * configure.ac: Copy some code from testsuite/configure.ac.
766 (enable_libctf): Subst this, not ENABLE_LIBCTF.
767 * configure: Rebuild.
768
17d305ef
TV
7692021-06-01 Tom de Vries <tdevries@suse.de>
770
771 PR symtab/26096
772 * minsyms.c (msymbol_is_cold_clone): New function.
773 (msymbol_is_function): Use msymbol_is_cold_clone.
774
9b715c68
AB
7752021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
776 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 PR gdb/14383
779 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
780 (ALLDEPFILES): Add arm-none-tdep.c
781 * arm-none-tdep.c: New file.
782 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
783
b4b3e2de
AB
7842021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
785 Richard Bunt <richard.bunt@arm.com>
786
787 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
788 check for why the backtrace stopped.
789
9ea36493
SM
7902021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
791
792 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
793 Update all callers.
794 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
795 signature parameter, update all callers.
796 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
797 signature parameter.
798
46c6bcf6
SM
7992021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * dwarf2/read.h (signatured_type_up): New, use where possible.
802
4631503b
SM
8032021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
806
cc653233
TT
8072021-05-30 Tom Tromey <tom@tromey.com>
808
809 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
810 is_debug_types.
811 (create_signatured_type_table_from_index)
812 (create_signatured_type_table_from_debug_names, add_type_unit)
813 (read_comp_units_from_section): Update.
814
c96e8b04
TT
8152021-05-30 Tom Tromey <tom@tromey.com>
816
817 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
818 m_num_psymtabs>: Remove.
819 (resize_symtabs): Update.
820 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
821 (dwarf2_per_bfd::allocate_signatured_type): Update.
822
24b21115
SM
8232021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
824
825 * Fix tab after space indentation issues throughout.
826
01add95b
SM
8272021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
828
829 * Fix some indentation mistakes throughout.
830
055c879f
SM
8312021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
832
833 * breakpoint.h (iterate_over_bp_locations): Remove. Update
834 users to use all_bp_locations.
835 (all_bp_locations): New.
836 * breakpoint.c (all_bp_locations): Make non-static.
837 (iterate_over_bp_locations): Remove.
838
240edef6
SM
8392021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
840
841 * breakpoint.h (iterate_over_breakpoints): Remove. Update
842 callers to use all_breakpoints or all_breakpoints_safe.
843 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
844 all_breakpoints_safe): Move here.
845 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
846 non-static.
847 (iterate_over_breakpoints): Remove.
848 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
849 Return void.
850 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
851 return value logic.
852 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
853
e0d9a270
SM
8542021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
855
856 * breakpoint.c (get_first_locp_gte_addr): Remove.
857 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
858 all_bp_locations_at_addr.
859 (struct bp_locations_at_addr_range): New.
860 (all_bp_locations_at_addr): New.
861 (bp_locations_compare_addrs): New.
862
48d7020b
SM
8632021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
864
865 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
866 all_bp_locations.
867 (all_bp_locations): New.
868
5d51cd5d
SM
8692021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
870
871 * breakpoint.c (bp_locations): Change to std::vector, update all
872 users.
873 (bp_locations_count): Remove.
874 (update_global_location_list): Change to work with indices
875 rather than bp_location**.
876
40cb8ca5
SM
8772021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * breakpoint.h (bp_locations_range): New.
880 (struct breakpoint) <locations>: New. Use where possible.
881
f6d17b2b
SM
8822021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * breakpoint.h (all_tracepoints): Remove.
885 (breakpoint_iterator): Move here.
886 (struct tracepoint_filter): New.
887 (tracepoint_iterator): New.
888 (tracepoint_range): New.
889 (all_tracepoints): New.
890 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
891 all_tracepoints.
892 (breakpoint_iterator): Move to header.
893 (all_tracepoints): New.
894 * tracepoint.c (start_tracing): Adjust.
895
1428b37a
SM
8962021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
897
898 * breakpoint.c (breakpoint_safe_range): New.
899 (all_breakpoints_safe): New. Use instead of
900 ALL_BREAKPOINTS_SAFE where possible.
901
43892fdf
SM
9022021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
903
904 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
905 all_breakpoints.
906 (breakpoint_iterator): New.
907 (breakpoint_range): New.
908 (all_breakpoints): New.
909
bdef5723
HD
9102021-05-27 Hannes Domani <ssbssa@yahoo.de>
911
912 * python/py-tui.c (tui_py_window::output): Add full_window
913 argument.
914 (gdbpy_tui_write): Parse "full_window" argument.
915
d5a6313e
SM
9162021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
917
918 * make-init-c: Add option to reverse function calls.
919
f39632d9
SM
9202021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
921
922 * Makefile.in (INIT_FILES_FILTER_OUT): New.
923 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
924 (stamp-init): Use make-init-c.
925 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
926 * silent-rules.mk (ECHO_INIT_C): Change.
927 * make-init-c: New file.
928
5e84b7ee
SM
9292021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * command.h (add_alias_cmd): Accept target as
932 cmd_list_element. Update callers.
933
e0f25bd9
SM
9342021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * command.h (add_info_alias): Accept target as
937 cmd_list_element. Update callers.
938
3947f654
SM
9392021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
940
941 * command.h (add_com_alias): Accept target as
942 cmd_list_element. Update callers.
943
7bd22f56
SM
9442021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
945
946 * python/py-param.c (add_setshow_generic): Use return values of
947 add_setshow functions.
948
9f260536
SM
9492021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
950
951 * mi/mi-main.c (_initialize_mi_main):
952 * python/py-auto-load.c (gdbpy_initialize_auto_load):
953 * remote.c (_initialize_remote):
954
af7f8f52
SM
9552021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
956
957 * command.h (set_show_commands): New.
958 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
959 add_setshow_boolean_cmd, add_setshow_filename_cmd,
960 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
961 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
962 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
963 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
964 Return set_show_commands. Adjust callers.
965 * cli/cli-decode.c (add_setshow_cmd_full): Return
966 set_show_commands, remove result parameters, adjust callers.
967
248f7165
TV
9682021-05-27 Tom de Vries <tdevries@suse.de>
969
970 PR symtab/27919
971 * dwarf2/read.c (process_psymtab_comp_unit):
972
2152b4fd
TV
9732021-05-27 Tom de Vries <tdevries@suse.de>
974
975 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
976 error.
977
6dcd1193
TV
9782021-05-27 Tom de Vries <tdevries@suse.de>
979
980 PR symtab/27898
981 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
982 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
983 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
984 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
985 load_all_dies init.
986 (dwarf2_per_cu_data): Remove load_all_dies field.
987
11bb5c41
SM
9882021-05-26 Simon Marchi <simon.marchi@efficios.com>
989
990 * regcache.c (reg_buffer::reg_buffer): Default-initialize
991 m_registers array.
992
ef5f598c
TT
9932021-05-26 Tom Tromey <tom@tromey.com>
994
995 * dwarf2/read.c (allocate_type_unit_groups_table)
996 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
997 htab_delete_entry.
998 (free_line_header_voidp): Remove.
999 * completer.c
1000 (completion_tracker::completion_hash_entry::deleter): Remove.
1001 (completion_tracker::discard_completions): Use htab_delete_entry.
1002 * utils.h (htab_delete_entry): New template function.
1003
a56889ae
HD
10042021-05-24 Hannes Domani <ssbssa@yahoo.de>
1005
1006 * python/py-tui.c (tui_py_window::refresh_window):
1007 Avoid flickering.
1008
fbf3c4b9
TV
10092021-05-23 Tom de Vries <tdevries@suse.de>
1010
1011 PR tdep/27822
1012 * target.h (struct target_ops): Mention target_thread_architecture in
1013 read_description comment.
1014 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
1015 pid to determine if process is 64-bit or 32-bit.
1016 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1017 Same.
1018 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
1019 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
1020 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
1021 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
1022 Likewise, use pid to determine if kernel supports reading VFP
1023 registers.
1024
8569d6e1
PW
10252021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1026
1027 * main.c (enum cmdarg_kind): Fix option type comments for
1028 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
1029
778ae9cc
TV
10302021-05-21 Tom de Vries <tdevries@suse.de>
1031
1032 PR testsuite/25047
1033 * contrib/cc-with-tweaks.sh: Handle -l.
1034
6d1a09b7
TV
10352021-05-21 Tom de Vries <tdevries@suse.de>
1036
1037 PR breakpoint/27889
1038 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1039 objects. Call get_jiter_objfile_data with the_objfile.
1040
1487a14e
SM
10412021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * linespec.c (linespec_p): Remove. Replace all uses with
1044 "linespec *".
1045
bb6203bf
AH
10462021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1047 Pedro Alves <pedro@palves.net>
1048
1049 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
1050 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
1051 command_line_up instead of struct command_line.
1052 (build_command_line): Likewise.
1053 (get_command_line): Update the cmd function call parameter.
1054 (process_next_line): Use unique_ptr command_line_up instead
1055 of struct command_line.
1056 (recurse_read_control_structure): Change the the type of
1057 next to command_line_up.
1058 (read_command_lines_1): Change type of `next' to be
1059 command_line_up and update all references of `next'
1060 accordingly.
1061
ed3130b7
AH
10622021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1063
1064 * MAINTAINERS (Write After Approval): Add myself.
1065
5433e20e
JB
10662021-05-19 John Baldwin <jhb@FreeBSD.org>
1067
1068 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1069
a5523cc3
AH
10702021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1071
1072 * inflow.c (new_tty): Do not leak tty.
1073
cd53fa40
TT
10742021-05-17 Tom Tromey <tom@tromey.com>
1075
1076 * dwarf2/read.h: Update include.
1077 * dwarf2/read.c: Update include.
1078 * dwarf2/line-header.c: Update include.
1079 * dwarf2/cu.h: Update include.
1080 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1081 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1082 * Makefile.in (COMMON_SFILES): Update.
1083
347212b8
TT
10842021-05-17 Tom Tromey <tom@tromey.com>
1085
1086 * dwarf2/read.c (maybe_queue_comp_unit)
1087 (dwarf2_per_objfile::age_comp_units): Update.
1088 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1089 dwarf2_cu methods.
1090 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1091 add_dependence>: New methods.
1092 <m_dependencies>: Add "m_" prefix. Now private.
1093 <m_mark>: Add "m_" prefix.
1094 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1095 (dwarf2_mark_helper): New function.
1096 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1097
839118f9
TT
10982021-05-17 Tom Tromey <tom@tromey.com>
1099
1100 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1101 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1102 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1103 * dwarf2/cu.c: New file.
1104 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1105
8ae78a44
TT
11062021-05-17 Tom Tromey <tom@tromey.com>
1107
1108 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1109 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1110 Move to cu.h.
1111 * dwarf2/cu.h: New file.
1112
c1c0a7e1
AB
11132021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1116 set brace-list-open to 0 for C and C++ modes.
1117
9e541c79
TT
11182021-05-17 Tom Tromey <tromey@adacore.com>
1119
1120 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1121 if frame is null.
1122
59173216
TT
11232021-05-17 Tom Tromey <tromey@adacore.com>
1124
1125 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1126 (group_from_gid): Subtract one from strncpy length.
1127
baea2f9d
TT
11282021-05-17 Tom Tromey <tromey@adacore.com>
1129
1130 * source.c (add_path): Check 'p' before using 'p[-1]'.
1131
473ab964
TT
11322021-05-17 Tom Tromey <tromey@adacore.com>
1133
1134 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1135 (dwarf2_per_cu_data_up): New typedef.
1136 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1137 <all_comp_units>: Use dwarf2_per_cu_data_up.
1138 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1139 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1140 (create_cu_from_index_list): Likewise.
1141 (create_signatured_type_table_from_index)
1142 (create_cus_from_debug_names_list, add_type_unit)
1143 (read_comp_units_from_section): Update.
1144 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1145 (run_test): Update.
1146
16e0020b
TT
11472021-05-17 Tom Tromey <tom@tromey.com>
1148
1149 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1150 (sort_tu_by_abbrev_offset): Remove.
1151 (build_type_psymtabs): Update.
1152
91e159e9
SM
11532021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1154
1155 * py-project.toml: New.
1156 * gdb-gdb.py.in: Re-format.
1157
034dce7a
SM
11582021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1161 New, use it.
1162 * command.h (cmd_func_p): Remove.
1163 * cli/cli-decode.c (cmd_func_p): Remove.
1164
1be99b11
SM
11652021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1166
1167 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1168
99858724
SM
11692021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1170
1171 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1172 to...
1173 <alias_target>: ... this.
1174 (add_alias_cmd): Rename old to target.
1175 (add_info_alias): Rename old_name to target_name.
1176 (add_com_alias): Likewise.
1177
14b42fc4
SM
11782021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1179
1180 * Rename "prefixlist" parameters to "subcommands" throughout.
1181 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1182 <subcommands>: ... this.
1183 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1184 (lookup_cmd_with_subcommands): ... this.
1185
ecd0a6b3
SM
11862021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1187
1188 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1189
413b49c2
SM
11902021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1191
1192 * cli/cli-decode.h (prefixname): Make const, move implementation
1193 to cli/cli-decode.c.
1194 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1195
ea11a98d
WP
11962021-05-16 Weimin Pan <weimin.pan@oracle.com>
1197
1198 * ctfread.c (new_symbol): Set function address.
1199 (read_func_kind_type): Remove incorrect type name setting.
1200 Don't copy name returned from ctf_type_ame_raw throughout file.
1201
887e7158
TT
12022021-05-14 Tom Tromey <tom@tromey.com>
1203
1204 * rust-lang.c (rust_language::val_print_struct)
1205 (rust_language::print_enum): Use common_val_print, not
1206 value_print_inner.
1207
55789354
TBA
12082021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1209
1210 * python/py-inferior.c (infpy_get_connection_num): New function.
1211 (inferior_object_getset): Add a new element for 'connection_num'.
1212 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1213
2f63ec5c
AB
12142021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1217 argument type, update and re-wrap, header comment.
1218 (remote_target::commit_resumed): Convert any_process_wildcard and
1219 may_global_wildcard_vcont from int to bool.
1220
ecf25064
KC
12212021-05-14 Kent Cheung <kent.cheung@arm.com>
1222
1223 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1224 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1225 just before printing child values.
1226 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1227 printing string representation.
1228 * python/py-prettyprint.c (print_children): Check max_depth just
1229 before printing child values.
1230 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1231 printing string representation.
1232
df68e12b
MF
12332021-05-14 Mike Frysinger <vapier@gentoo.org>
1234
1235 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1236 sim/callback.h & sim/sim.h.
1237
183aaaf7
MF
12382021-05-13 Mike Frysinger <vapier@gentoo.org>
1239
1240 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1241 sim-regno.h include.
1242
737358ba
SM
12432021-05-13 Simon Marchi <simon.marchi@efficios.com>
1244
1245 * inf-child.h (inf_child_target) <follow_exec>: New.
1246 * inf-child.c (inf_child_target::follow_exec): New.
1247
294c36eb
SM
12482021-05-13 Simon Marchi <simon.marchi@efficios.com>
1249
1250 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1251 parameter.
1252 (target_follow_exec): Likewise.
1253 * target.c (target_follow_exec): Add ptid_t parameter.
1254 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1255 don't push target nor create thread.
1256 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1257 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1258 (thread_db_target::follow_exec): New.
1259 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1260 (remote_target::follow_exec): Call
1261 process_stratum_target::follow_exec.
1262 * target-delegates.c: Re-generate.
1263
2af87c85
SM
12642021-05-13 Simon Marchi <simon.marchi@efficios.com>
1265
1266 * infrun.c (follow_exec): Call target_follow_fork when
1267 follow-exec-mode is same.
1268 * target.h (target_follow_fork): Improve doc.
1269
0b2256f7
SM
12702021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1273 Remove.
1274 * cli/cli-setshow.c (do_show_command): Adjust.
1275
0746f49b
LM
12762021-05-13 Luis Machado <luis.machado@linaro.org>
1277
1278 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1279 include the last address in the range.
1280
4b8cb9dd
SM
12812021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * python/python-internal.h (gdbpy_parse_command_name): Return
1284 gdb::unique_xmalloc_ptr.
1285 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1286 (cmdpy_init): Adjust.
1287 * python/py-param.c (parmpy_init): Adjust.
1288 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1289 when done.
1290
ee35ce82
GB
12912021-05-12 George Barrett <bob@bob131.so>
1292
1293 * NEWS (Guile API): Note the addition of the new procedure.
1294 * guile/scm-value.c (gdbscm_value_const_value): Add
1295 implementation of value-const-value procedure.
1296 (value_functions): Add value-const-value procedure.
1297
9d4fc61d
GB
12982021-05-12 George Barrett <bob@bob131.so>
1299
1300 * NEWS (Guile API): Note the addition of new procedures.
1301 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1302 for reference value creation.
1303 (gdbscm_value_reference_value): Add implementation of
1304 value-reference-value procedure.
1305 (gdbscm_value_rvalue_reference_value): Add implementation of
1306 value-rvalue-reference-value procedure.
1307 (value_functions): Add value-reference-value procedure. Add
1308 value-rvalue-reference-value procedure.
1309
97cef6b7
GB
13102021-05-12 George Barrett <bob@bob131.so>
1311
1312 * guile/scm-type.c (type_integer_constants): Add binding for
1313 TYPE_CODE_RVALUE_REF.
1314 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1315 dereferencing of rvalue references.
1316 * NEWS (Guile API): Note improvements in rvalue reference support.
1317
d51344c9
MM
13182021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1319
1320 * btrace.c (handle_pt_insn_events): Ignore status update enable
1321 events.
1322
f2a883a8
SM
13232021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1324
1325 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1326 indentation.
1327
64f30eb0
SM
13282021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1329
1330 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1331
db1f6cd6
LS
13322021-05-10 Lancelot Six <lsix@lancelotsix.com>
1333
1334 PR gdb/27614
1335 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1336 argument.
1337
31aceaef
SM
13382021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1339
1340 * nat/linux-waitpid.c (status_to_str): Show signal name.
1341
75140e3b
AB
13422021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1343
1344 * python/py-breakpoint.c (pybp_debug): New static global.
1345 (show_pybp_debug): New function.
1346 (pybp_debug_printf): Define.
1347 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1348 (gdbpy_breakpoint_created): Add some debugging.
1349 (gdbpy_breakpoint_deleted): Likewise.
1350 (gdbpy_breakpoint_modified): Likewise.
1351 (_initialize_py_breakpoint): New function.
1352
1ef40c13
AB
13532021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * python/py-unwind.c (pyuw_debug): Convert to bool.
1356 (show_pyuw_debug): New function.
1357 (pyuw_debug_printf): Define.
1358 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1359 (pyuw_this_id): Convert to new debug print macros.
1360 (pyuw_prev_register): Likewise.
1361 (pyuw_sniffer): Likewise.
1362 (pyuw_dealloc_cache): Likewise.
1363 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1364 show function when registering.
1365
927c4e35
AB
13662021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * dummy-frame.c (fprint_dummy_frames): Convert use of
1369 fprint_frame_id to use frame_id::to_string.
1370 * frame.c (fprint_field): Delete.
1371 (fprint_frame_id): Moved to...
1372 (frame_id::to_string): ...this, rewritten to return a string.
1373 (fprint_frame): Convert use of fprint_frame_id to use
1374 frame_id::to_string.
1375 (compute_frame_id): Likewise.
1376 (frame_id_p): Likewise.
1377 (frame_id_eq): Likewise.
1378 (frame_id_inner): Likewise.
1379 * frame.h (struct frame_id) <to_string>: New member function.
1380 (fprint_frame_id): Delete declaration.
1381 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1382 fprint_frame_id to use frame_id::to_string.
1383 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1384 * python/py-unwind.c (unwind_infopy_str): Likewise.
1385 (pyuw_this_id): Likewise.
1386
8d06918f
SM
13872021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1388
1389 * nat/linux-waitpid.c (status_to_str): Return std::string.
1390 * nat/linux-waitpid.h (status_to_str): Likewise.
1391 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1392 (linux_nat_target::attach): Adjust.
1393 (linux_handle_extended_wait): Adjust.
1394 (wait_lwp): Adjust.
1395 (stop_wait_callback): Adjust.
1396 (linux_nat_filter_event): Adjust.
1397 (linux_nat_wait_1): Adjust.
1398 * nat/linux-waitpid.c (status_to_str): Adjust.
1399 * nat/linux-waitpid.h (status_to_str): Adjust.
1400
550e9289
SM
14012021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * infrun.h (infrun_debug_printf): Add missing space.
1404
4655f850
PA
14052021-05-08 Pedro Alves <pedro@palves.net>
1406
1407 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1408 Remove references to HAVE_PERSONALITY.
1409 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1410 (maybe_disable_address_space_randomization)
1411 (~maybe_disable_address_space_randomizatio): Remove references to
1412 HAVE_PERSONALITY.
1413 * config.in, configure: Regenerate.
1414
1845e254
AB
14152021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1416
1417 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1418 include.
1419 (source_script_with_search): Perform tilde expansion.
1420
91e3c425
SM
14212021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1422
1423 * target-descriptions.c (struct target_desc_info) <filename>:
1424 Make std::string.
1425 (copy_inferior_target_desc_info): Adjust.
1426 (target_desc_info_free): Adjust.
1427 (target_find_description): Adjust.
1428 (set_tdesc_filename_cmd): Adjust.
1429 (show_tdesc_filename_cmd): Adjust.
1430 (unset_tdesc_filename_cmd): Adjust.
1431 (maint_print_c_tdesc_cmd): Adjust.
1432
0b2f7ade
SM
14332021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1434
1435 * target-descriptions.c (struct target_desc_info): Initialize
1436 fields.
1437 (get_tdesc_info): Use new.
1438 (target_desc_info_free): Use delete.
1439
820c4490
SM
14402021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1441
1442 * target-descriptions.c (struct target_desc_info) <fetched>:
1443 bool.
1444 (target_find_description): Adjust.
1445 (target_clear_description): Adjust.
1446
c2962e6a
SM
14472021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1448
1449 * target-descriptions.c (struct target_desc_info) <tdesc>:
1450 Adjust doc.
1451 (target_desc_fetched): Remove.
1452 (current_target_desc): Remove.
1453 (target_description_filename): Remove.
1454 (target_find_description): Adjust.
1455 (target_clear_description): Adjust.
1456 (target_current_description): Adjust.
1457 (set_tdesc_filename_cmd): Adjust.
1458 (show_tdesc_filename_cmd): Adjust.
1459 (unset_tdesc_filename_cmd): Adjust.
1460 (maint_print_c_tdesc_cmd): Adjust.
1461 (maint_print_xml_tdesc_cmd): Adjust.
1462
8a82de58
AB
14632021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1464
1465 * infcmd.c (notice_new_inferior): Change parameter type.
1466 * inferior.h (notice_new_inferior): Change parameter type.
1467 * remote.c (remote_notice_new_inferior): Change parameter type to
1468 bool. Also update type of local variable to bool.
1469 (remote_target::update_thread_list): Change type of local variable
1470 to bool.
1471 (remote_target::process_stop_reply): Pass bool instead of int to
1472 remote_notice_new_inferior.
1473
bedc4734
SM
14742021-05-07 Simon Marchi <simon.marchi@efficios.com>
1475
1476 * target.c (target_stack::unpush): Call target_ops::find_beneath
1477 to get the target beneath `t`.
1478
27f0a431
SM
14792021-05-07 Simon Marchi <simon.marchi@efficios.com>
1480
1481 * target.c (target_close): Check in all inferiors that the
1482 target is not pushed.
1483
1d1669e4
AM
14842021-05-07 Aaron Merey <amerey@redhat.com>
1485
1486 * debuginfod-support.c (debuginfod_init): Remove.
1487 (get_debuginfod_client): New function.
1488
2698f5ea
TT
14892021-05-07 Tom Tromey <tom@tromey.com>
1490
1491 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1492 * utils.c (streq_hash): Remove.
1493 * utils.h (streq_hash): Don't declare.
1494 * completer.c (completion_tracker::discard_completions): Update
1495 comment.
1496 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1497
13123da8
SM
14982021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1499
1500 * Re-format all Python files using black.
1501
9589edb8
AB
15022021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1503
1504 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1505 function return type.
1506 * guile/guile.c (gdbscm_source_script): Update to handle change in
1507 gdbscm_safe_source_script.
1508 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1509 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1510 type.
1511
ec66d6ea
SM
15122021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1513
1514 * inferior.h (class inferior) <args>: Change type to
1515 unique_xmalloc_ptr.
1516 * inferior.c (inferior::~inferior): Don't free args.
1517 * infcmd.c (get_inferior_args): Adjust.
1518 (set_inferior_args): Adjust.
1519
0618ecf6
AB
15202021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1521
1522 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1523 breakpoint locations when the breakpoint actually has a location.
1524
79aabb73
TBA
15252021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1526
1527 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1528 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1529 mi_cmd_break_condition.
1530 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1531 * breakpoint.h (set_breakpoint_condition): Declare a new
1532 overload.
1533 * breakpoint.c (set_breakpoint_condition): New overloaded function
1534 extracted out from ...
1535 (condition_command): ... this.
1536 * NEWS: Mention the change.
1537
10e578d7
TBA
15382021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1539
1540 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1541 '--force-condition' flag to force the condition in the
1542 '-break-insert' and '-dprintf-insert' commands.
1543 * NEWS: Mention the change.
1544
225bda24
TV
15452021-05-04 Tom de Vries <tdevries@suse.de>
1546
1547 PR guile/27806
1548 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1549 memory functions.
1550
b8efb248
TT
15512021-04-30 Tom Tromey <tom@tromey.com>
1552
1553 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1554 (add_signatured_type_cu_to_table): Remove.
1555 (create_debug_type_hash_table): Assume dwo_file is non-null.
1556 (create_debug_types_hash_table): Update comment.
1557 (create_all_type_units): Remove.
1558 (sort_tu_by_abbrev_offset): Update comment.
1559 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1560 (build_type_psymtabs): Remove.
1561 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1562 Update.
1563 (read_comp_units_from_section): Add types_htab, section_kind
1564 parameters.
1565 (create_all_comp_units): Read type units.
1566
91eea9cc
TT
15672021-04-30 Tom Tromey <tom@tromey.com>
1568
1569 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1570 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1571 <get_cu>: Now inline.
1572 <all_type_units>: Remove.
1573 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1574 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1575 (dwarf2_per_bfd::get_tu): Remove.
1576 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1577 (create_signatured_type_table_from_index)
1578 (create_signatured_type_table_from_debug_names)
1579 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1580 (dwarf2_base_index_functions::expand_all_symtabs)
1581 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1582 (dwarf2_base_index_functions::map_symbol_filenames)
1583 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1584 (add_signatured_type_cu_to_table, create_all_type_units)
1585 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1586 (create_all_comp_units): Update.
1587 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1588 (write_debug_names): Update.
1589
0d305d5c
TT
15902021-04-30 Tom Tromey <tom@tromey.com>
1591
1592 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1593 allocate_signatured_type>: Change return type.
1594 <all_comp_units, all_type_units>: Hold unique pointers.
1595 (struct dwarf2_per_cu_data): Add constructor and initializers.
1596 (struct signatured_type): Derive from dwarf2_per_cu_data.
1597 * dwarf2/read.c (type_unit_group): Derive from
1598 dwarf2_per_cu_data.
1599 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1600 (dwarf2_per_bfd::get_tu)
1601 (dwarf2_per_bfd::allocate_signatured_type)
1602 (dwarf2_per_bfd::allocate_signatured_type)
1603 (create_cu_from_index_list, create_cus_from_index_list)
1604 (create_signatured_type_table_from_index)
1605 (create_signatured_type_table_from_debug_names)
1606 (create_addrmap_from_aranges)
1607 (dwarf2_base_index_functions::find_last_source_symtab)
1608 (dw_expand_symtabs_matching_file_matcher)
1609 (dwarf2_gdb_index::expand_symtabs_matching)
1610 (dwarf2_base_index_functions::map_symbol_filenames)
1611 (create_cus_from_debug_names_list)
1612 (dw2_debug_names_iterator::next)
1613 (dwarf2_debug_names_index::expand_symtabs_matching)
1614 (create_debug_type_hash_table, add_type_unit)
1615 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1616 Update.
1617 (allocate_type_unit_groups_table): Use delete.
1618 (create_type_unit_group): Change return type. Use new.
1619 (get_type_unit_group, build_type_psymtabs_1)
1620 (build_type_psymtab_dependencies)
1621 (process_skeletonless_type_unit, set_partial_user)
1622 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1623 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1624 (read_signatured_type): Update.
1625 (dwarf2_find_containing_comp_unit): Change type of
1626 'all_comp_units'.
1627 (run_test): Update.
1628 (dwarf2_per_bfd::allocate_per_cu)
1629 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1630 Use new.
1631 (add_signatured_type_cu_to_table): Update.
1632 * dwarf2/index-write.c (write_one_signatured_type)
1633 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1634 (write_debug_names): Update.
1635
1bee48c7
TT
16362021-04-30 Tom Tromey <tromey@adacore.com>
1637
1638 * nat/windows-nat.h (get_image_name): Don't declare.
1639 * nat/windows-nat.c (get_image_name): Now static.
1640
e228ef97
TT
16412021-04-30 Tom Tromey <tromey@adacore.com>
1642
1643 * windows-nat.c (windows_nat::handle_load_dll): Update.
1644 (windows_nat_target::get_windows_debug_event): Call
1645 dll_loaded_event.
1646 (windows_add_all_dlls, windows_add_dll): Move to
1647 nat/windows-nat.c.
1648 * nat/windows-nat.h (handle_load_dll): Change parameters.
1649 (dll_loaded_event, windows_add_all_dlls): Declare.
1650 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1651 from windows-nat.c.
1652 (dll_loaded_event): New function.
1653
de071872
TT
16542021-04-30 Tom Tromey <tromey@adacore.com>
1655
1656 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1657 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1658 Declare.
1659 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1660 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1661
9e439f00
TT
16622021-04-30 Tom Tromey <tromey@adacore.com>
1663
1664 * windows-nat.c: Move code to nat/windows-nat.[ch].
1665 (_initialize_windows_nat): Call initialize_loadable.
1666 * nat/windows-nat.h (AdjustTokenPrivileges)
1667 (DebugActiveProcessStop, DebugBreakProcess)
1668 (DebugSetProcessKillOnExit, EnumProcessModules)
1669 (EnumProcessModulesEx, GetModuleInformation)
1670 (GetModuleFileNameExA, GetModuleFileNameExW)
1671 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1672 (GetCurrentConsoleFont, Wow64SuspendThread)
1673 (Wow64GetThreadContext, Wow64SetThreadContext)
1674 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1675 (AdjustTokenPrivileges_ftype)
1676 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1677 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1678 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1679 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1680 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1681 (GetConsoleFontSize_ftype)
1682 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1683 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1684 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1685 (initialize_loadable): Declare.
1686 * nat/windows-nat.c (AdjustTokenPrivileges)
1687 (DebugActiveProcessStop, DebugBreakProcess)
1688 (DebugSetProcessKillOnExit, EnumProcessModules)
1689 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1690 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1691 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1692 (Wow64GetThreadContext, Wow64SetThreadContext)
1693 (Wow64GetThreadSelectorEntry): Define.
1694 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1695 from windows-nat.c.
1696 (initialize_loadable): Likewise, and rename.
1697
1053c638
TT
16982021-04-30 Tom Tromey <tromey@adacore.com>
1699
1700 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1701 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1702 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1703 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1704 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1705 (bad): New template functions.
1706 (_initialize_loadable): Update.
1707
2869ac4b
TT
17082021-04-30 Tom Tromey <tromey@adacore.com>
1709
1710 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1711
e197dfae
SM
17122021-04-29 Simon Marchi <simon.marchi@efficios.com>
1713
1714 * auto-load.h: Split namespace declaration.
1715
89ba430c
SM
17162021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1717
1718 * infrun.c (save_waitstatus): Move variables to inner scope.
1719
8eb82ba1
AB
17202021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * NEWS: Fix typo and stray full stop.
1723
db2534b7
TT
17242021-04-28 Tom Tromey <tromey@adacore.com>
1725
1726 * ada-exp.y (primary): Use new type for null pointer.
1727 * ada-lang.c (ada_type_match): Remove "may_deref"
1728 parameter. Handle null pointer.
1729 (ada_args_match): Update.
1730 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1731 Handle null pointer.
1732
edeaceda
AB
17332021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * NEWS: Mention new commands.
1736 * python/python.c (python_ignore_environment): New static global.
1737 (show_python_ignore_environment): New function.
1738 (set_python_ignore_environment): New function.
1739 (python_dont_write_bytecode): New static global.
1740 (show_python_dont_write_bytecode): New function.
1741 (set_python_dont_write_bytecode): New function.
1742 (_initialize_python): Register new commands.
1743
041ca48e
AB
17442021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * extension-priv.h (struct extension_language_ops): Rename
1747 'finish_initialization' to 'initialize'.
1748 * extension.c (finish_ext_lang_initialization): Renamed to...
1749 (ext_lang_initialization): ...this, update comment, and updated
1750 the calls to reflect the change in struct extension_language_ops.
1751 * extension.h (finish_ext_lang_initialization): Renamed to...
1752 (ext_lang_initialization): ...this.
1753 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1754 (gdbscm_initialize): ...this, update comment at definition.
1755 (guile_extension_ops): Update.
1756 * main.c (captured_main_1): Update call to
1757 finish_ext_lang_initialization.
1758 * python/python.c (gdbpy_finish_initialization): Rename to...
1759 (gdbpy_initialize): ...this, update comment at definition, and
1760 update call to do_finish_initialization.
1761 (python_extension_ops): Update.
1762 (do_finish_initialization): Rename to...
1763 (do_initialize): ...this, and update comment.
1764
1178f01a
AB
17652021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * main.c (captured_main_1): Add a call to
1768 finish_ext_lang_initialization.
1769 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1770
880ae75a
AB
17712021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1774 (gdbscm_finish_initialization): Add code moved from
1775 _initialize_guile.
1776 (_initialize_guile): Move code to gdbscm_finish_initialization.
1777 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1778 _initialize_scm_arch.
1779 (_initialize_scm_arch): New function.
1780 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1781 into _initialize_scm_block.
1782 (_initialize_scm_block): New function.
1783 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1784 into _initialize_scm_frame.
1785 (_initialize_scm_frame): New function.
1786 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1787 into _initialize_scm_objfile.
1788 (_initialize_scm_objfile): New function.
1789 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1790 code into _initialize_scm_progspace.
1791 (_initialize_scm_progspace): New function.
1792 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1793 into _initialize_scm_symbol.
1794 (_initialize_scm_symbol): New function.
1795 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1796 into _initialize_scm_symtab.
1797 (_initialize_scm_symtab): New function.
1798 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1799 _initialize_scm_type.
1800 (_initialize_scm_type): New function.
1801
8e3685bf
AB
18022021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * python/py-arch.c (_initialize_py_arch): New function.
1805 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1806 * python/py-block.c (_initialize_py_block): New function.
1807 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1808 * python/py-inferior.c (_initialize_py_inferior): New function.
1809 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1810 * python/py-objfile.c (_initialize_py_objfile): New function.
1811 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1812 * python/py-progspace.c (_initialize_py_progspace): New function.
1813 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1814 * python/py-registers.c (_initialize_py_registers): New function.
1815 (gdbpy_initialize_registers): Move code to
1816 _initialize_py_registers.
1817 * python/py-symbol.c (_initialize_py_symbol): New function.
1818 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1819 * python/py-symtab.c (_initialize_py_symtab): New function.
1820 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1821 * python/py-type.c (_initialize_py_type): New function.
1822 (gdbpy_initialize_types): Move code to _initialize_py_type.
1823 * python/py-unwind.c (_initialize_py_unwind): New function.
1824 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1825 * python/python.c (_initialize_python): Move call to
1826 do_start_initialization to gdbpy_finish_initialization.
1827 (gdbpy_finish_initialization): Add call to
1828 do_start_initialization.
1829
913832e9
AB
18302021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * extension.c (struct scoped_default_signal): New struct.
1833 (scoped_default_sigint): New typedef.
1834 (finish_ext_lang_initialization): Make use of
1835 scoped_default_sigint.
1836
a3b5ef3e
AB
18372021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * main.c (captured_main_1): Don't pass argument to gdb_init.
1840 * top.c (gdb_init): Remove unused argument, and add header
1841 comment.
1842 * top.h (gdb_init): Remove argument.
1843
b9f90c72
LM
18442021-04-27 Luis Machado <luis.machado@linaro.org>
1845
1846 * psymtab.c (psymbol_functions::dump): Output newline.
1847 Remove wrap.
1848 * symmisc.c (dump_objfile): Likewise.
1849
2c473def
MW
18502021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1851 Simon Marchi <simon.marchi@polymtl.ca>
1852
1853 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1854 when attaching the 'auto_load_new_objfile' observer, so
1855 other observers can specify it as a dependency.
1856 * gdb/auto-load.h (struct token): Declare
1857 'auto_load_new_objfile_observer_token' as token to be used
1858 for the 'auto_load_new_objfile' observer.
1859 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1860 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1861 observer, so it gets notified after the latter.
1862
9a6e099f
MW
18632021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1864 Simon Marchi <simon.marchi@polymtl.ca>
1865
1866 * unittests/observable-selftests.c (dependency_test_counters):
1867 New.
1868 (observer_token0, observer_token1, observer_token2,
1869 observer_token3, observer_token4, observer_token5): New.
1870 (struct dependency_observer_data): New struct.
1871 (observer_dependency_test_callback): New function.
1872 (test_observers): New.
1873 (run_dependency_test): New function.
1874 (test_dependency): New.
1875 (_initialize_observer_selftest): Register dependency test.
1876
bea3329b
SM
18772021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1878
1879 PR gdb/27773
1880 * cli/cli-dump.c (dump_binary_file): Check result of
1881 gdb_fopen_cloexec.
1882
c290cb01
ST
18832021-04-25 Sergei Trofimovich <siarheit@google.com>
1884
1885 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1886 by passing `process_stratum_target*` parameter.
1887
fbb46296
LS
18882021-04-25 Lancelot Six <lsix@lancelotsix.com>
1889
1890 PR gdb/22640
1891 * typeprint.h (struct type_print_options): Add print_in_hex
1892 flag.
1893 (struct print_offset_data): Add print_in_hex flag, add a
1894 constructor accepting a type_print_options* argument.
1895 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1896 default value for print_in_hex.
1897 (print_offset_data::indentation): Allow more horizontal space.
1898 (print_offset_data::print_offset_data): Add ctor.
1899 (print_offset_data::maybe_print_hole, print_offset_data::update):
1900 Handle the print_in_hex flag.
1901 (whatis_exp): Handle 'x' and 'd' flags.
1902 (print_offsets_and_sizes_in_hex): Declare.
1903 (set_print_offsets_and_sizes_in_hex): Create.
1904 (show_print_offsets_and_sizes_in_hex): Create.
1905 (_initialize_typeprint): Update help message for the ptype
1906 command, register the 'set print type hex' and 'show print type
1907 hex' commands.
1908 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1909 (c_type_print_base): Construct the print_offset_data
1910 object using the type_print_optons parameter.
1911 * rust-lang.c (rust_language::print_type): Construct the
1912 print_offset_data object using the type_print_optons parameter.
1913 * NEWS: Mention the new flags of the ptype command.
1914
18bbba46
LS
19152021-04-25 Lancelot Six <lsix@lancelotsix.com>
1916
1917 * typeprint.h (struct type_print_options): Move before
1918 print_offset_data.
1919
77393c9b
JB
19202021-04-25 Joel Brobecker <brobecker@adacore.com>
1921
1922 GDB 10.2 released.
1923
98c897e3
SM
19242021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * observable.c (observer_debug): Change to bool.
1927
9fc29955
AB
19282021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * dwarf2/read.c: Add 'unordered_set' include.
1931 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1932 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1933 of per_Bfd->filenames_cache cache, and use function local
1934 filenames_cache instead. Reindent.
1935 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1936
0406545d
SM
19372021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * breakpoint.c (iterate_over_bp_locations): Change callback to
1940 function view, remove data parameter.
1941 * breakpoint.h (iterate_over_bp_locations): Likewise.
1942 * record-full.c (record_full_sync_record_breakpoints): Remove
1943 data parameter.
1944
432ce4cf
TT
19452021-04-22 Tom Tromey <tom@tromey.com>
1946
1947 * c-typeprint.c (c_type_print_base_struct_union): Use
1948 print_spaces_filtered_with_print_options.
1949
e25d6d93
SM
19502021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1951
1952 PR gdb/27757
1953 * python/py-type.c (typy_range): Check that bounds are constant
1954 before accessing them as such.
1955 * guile/scm-type.c (gdbscm_type_range): Likewise.
1956
4efeb0d3
TBA
19572021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1958
1959 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1960 * inferior.c (inferior::add_continuation): New method, adapted
1961 from 'add_inferior_continuation'.
1962 (inferior::do_all_continuations): New method, adapted from
1963 'do_all_inferior_continuations'.
1964 (inferior::~inferior): Clear the list of continuations directly.
1965 * inferior.h (class inferior) <continuations>: Rename into...
1966 <m_continuations>: ...this and make private.
1967 * continuations.c: Remove.
1968 * continuations.h: Remove.
1969 * event-top.c: Don't include "continuations.h".
1970
1971 Update the users below.
1972 * inf-loop.c (inferior_event_handler)
1973 * infcmd.c (attach_command)
1974 (notice_new_inferior): Update.
1975
c4c493de
TBA
19762021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1977
1978 * inferior.h (class inferior) <continuations>: Change the type
1979 to be an std::list of std::function's.
1980 Update the references and uses below.
1981 * continuations.c (struct continuation): Delete.
1982 (make_continuation): Delete.
1983 (do_my_continuations_1): Delete.
1984 (do_my_continuations): Delete.
1985 (discard_my_continuations_1): Delete.
1986 (discard_my_continuations): Delete.
1987 (add_inferior_continuation): Update.
1988 (do_all_inferior_continuations): Update.
1989 (discard_all_inferior_continuations): Update.
1990 * continuations.h (add_inferior_continuation): Update to take
1991 an std::function as the parameter.
1992 * infcmd.c (struct attach_command_continuation_args): Delete.
1993 (attach_command_continuation): Delete.
1994 (attach_command_continuation_free_args): Delete.
1995 (attach_command): Update.
1996 (notice_new_inferior): Update.
1997
1194676e
TBA
19982021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1999
2000 * continuations.h: Update the general comment.
2001 * inferior.h (class inferior) <continuations>: Update the comment.
2002 * interps.c: Do not include "continuations.h".
2003
35682f0a
TBA
20042021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2005
2006 * continuations.h (do_all_inferior_continuations): Remove the 'err'
2007 parameter. Update the references below.
2008 * continuations.c (do_my_continuations_1)
2009 (do_my_continuations)
2010 (do_all_inferior_continuations): Update.
2011 * inf-loop.c (inferior_event_handler): Update.
2012 * infcmd.c (attach_command_continuation): Update.
2013
6fee5eee
TBA
20142021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2015
2016 * infcmd.c (attach_post_wait): Update the function comment.
2017
27d0790a
TBA
20182021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2019
2020 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
2021 Update the references below.
2022 (struct attach_command_continuation_args)
2023 (attach_command_continuation)
2024 (attach_command_continuation_free_args)
2025 (attach_command)
2026 (notice_new_inferior): Update to remove the reference to 'args'.
2027
c39ebbf4
TV
20282021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2029 Tom de Vries <tdevries@suse.de>
2030
2031 PR remote/27710
2032 * remote.c (remote_target_is_non_stop_p): New function.
2033 * remote.h (remote_target_is_non_stop_p): Declare.
2034 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2035 to check non-stopness using notif_state->remote rather current target.
2036
22f80c0f
TT
20372021-04-22 Tom Tromey <tom@tromey.com>
2038
2039 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2040 (struct typed_val_int) <val>: Now ULONGEST.
2041 (rust_parser::parse_array_type): Remove negative check.
2042 (rust_lex_int_test): Change 'value' to ULONGEST.
2043
05f3c0f0
AB
20442021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * arch-utils.c (default_addressable_memory_unit_size): Return a
2047 value based on bfd's bits per byte.
2048
7e7a35fb
TT
20492021-04-21 Tom Tromey <tom@tromey.com>
2050
2051 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2052 unsigned char.
2053 (struct dwarf2_per_cu_data): Rearrange.
2054 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2055 unsigned char.
2056 (struct comp_unit_head): Rearrange.
2057 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
2058
ff507520
TV
20592021-04-21 Tom de Vries <tdevries@suse.de>
2060
2061 PR build/27681
2062 * configure.ac: Remove --without-included-regex/--with-included-regex.
2063 * config.in: Regenerate.
2064 * configure: Regenerate.
2065 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2066
10a636cc
TBA
20672021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2068
2069 * breakpoint.h (create_breakpoint): Add a new parameter,
2070 'force_condition'.
2071 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2072 argument when 'parse_extra' is false to check if the condition
2073 is invalid at all of the breakpoint locations.
2074 Update the users below.
2075 (break_command_1)
2076 (dprintf_command)
2077 (trace_command)
2078 (ftrace_command)
2079 (strace_command)
2080 (create_tracepoint_from_upload): Update.
2081 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2082 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2083 * python/py-breakpoint.c (bppy_init): Update.
2084 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2085
85c88e2a
TBA
20862021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2087
2088 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2089 disabled-by-condition locations on MI-like output.
2090 (breakpoint_1): Do not display the disabled-by-condition footnote
2091 if the output is MI-like.
2092
fd34472c
FC
20932021-04-21 Frederic Cambus <fred@statdns.com>
2094
2095 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2096 update year range in generated copyright notices.
2097
184dcd81
FW
20982021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2099
2100 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2101 qualifier_seq_noopt.
2102
525174e8
FW
21032021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2104
2105 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2106
f5dc2ee3
AB
21072021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2110 (producer_is_icc): Replace use of std::regex with gdb's
2111 compiled_regex.
2112
42c2c694
TT
21132021-04-17 Tom Tromey <tom@tromey.com>
2114
2115 PR gdb/23743:
2116 * dwarf2/read.c (class offset_view): New.
2117 (struct symbol_table_slot): Remove.
2118 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2119 <symbol_name_index, symbol_vec_index>: New methods.
2120 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2121 Rewrite.
2122 (read_gdb_index_from_buffer): Update.
2123 (struct dw2_symtab_iterator) <vec>: Change type.
2124 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2125 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2126 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2127 <append_array, append_offset>: New methods.
2128 (write_hash_table, add_address_entry, write_gdbindex_1)
2129 (write_debug_names): Update.
2130 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2131
da314dd3
TT
21322021-04-17 Tom Tromey <tom@tromey.com>
2133
2134 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2135 partial_symtabs.
2136
0b7b2c2a
TT
21372021-04-17 Tom Tromey <tom@tromey.com>
2138
2139 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2140 from map_matching_symbols. Change parameters.
2141 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2142 Rename from map_matching_symbols. Change parameters.
2143 * dwarf2/read.c (struct dwarf2_gdb_index)
2144 <expand_matching_symbols>: Rename from map_matching_symbols.
2145 Change parameters.
2146 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2147 Rename from map_matching_symbols. Change parameters.
2148 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2149 dw2_map_matching_symbols. Change parameters.
2150 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2151 implementation.
2152 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2153 map_matching_symbols. Change parameters.
2154 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2155 from map_matching_symbols. Change parameters.
2156 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2157 map_matching_symbols. Change parameters.
2158 * ada-lang.c (map_matching_symbols): New function.
2159 (add_nonlocal_symbols): Update.
2160
90160b57
TT
21612021-04-17 Tom Tromey <tom@tromey.com>
2162
2163 * quick-symbol.h (struct quick_symbol_functions)
2164 <expand_symtabs_with_fullname>: Remove.
2165 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2166 Remove.
2167 * psympriv.h (struct psymbol_functions)
2168 <expand_symtabs_with_fullname>: Remove.
2169 * dwarf2/read.c (struct dwarf2_base_index_functions)
2170 <expand_symtabs_with_fullname>: Remove.
2171 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2172 Remove.
2173 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2174 Update comment.
2175 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2176 Rewrite.
2177
7089bd88
TT
21782021-04-17 Tom Tromey <tom@tromey.com>
2179
2180 * symfile-debug.c (objfile::expand_symtabs_for_function):
2181 Rewrite.
2182 * quick-symbol.h (struct quick_symbol_functions)
2183 <expand_symtabs_for_function>: Remove.
2184 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2185 Remove.
2186 * psympriv.h (struct psymbol_functions)
2187 <expand_symtabs_for_function>: Remove.
2188 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2189 Update comment.
2190 * dwarf2/read.c (struct dwarf2_gdb_index)
2191 <expand_symtabs_for_function>: Remove.
2192 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2193 Remove.
2194 (find_slot_in_mapped_hash): Remove.
2195 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2196 (dw2_symtab_iter_init): Remove one overload.
2197 (dwarf2_gdb_index::expand_symtabs_for_function)
2198 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2199
536a40f3
TT
22002021-04-17 Tom Tromey <tom@tromey.com>
2201
2202 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2203 Rewrite.
2204 * quick-symbol.h (struct quick_symbol_functions)
2205 <map_symtabs_matching_filename>: Remove.
2206 * psymtab.c (partial_map_expand_apply)
2207 (psymbol_functions::map_symtabs_matching_filename): Remove.
2208 * psympriv.h (struct psymbol_functions)
2209 <map_symtabs_matching_filename>: Remove.
2210 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2211 Update comment.
2212 * dwarf2/read.c (struct dwarf2_base_index_functions)
2213 <map_symtabs_matching_filename>: Remove.
2214 (dw2_map_expand_apply)
2215 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2216 Remove.
2217
84d865e3
TT
22182021-04-17 Tom Tromey <tom@tromey.com>
2219
2220 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2221 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2222 Remove.
2223 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2224 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2225 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2226 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2227 Remove.
2228 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2229 (dwarf2_gdb_index::lookup_symbol)
2230 (dwarf2_debug_names_index::lookup_symbol): Remove.
2231
3bfa51a7
TT
22322021-04-17 Tom Tromey <tom@tromey.com>
2233
2234 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2235 * symmisc.c (maintenance_expand_symtabs): Update.
2236 * symfile.c (expand_symtabs_matching): Update.
2237 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2238 parameter.
2239 * quick-symbol.h (struct quick_symbol_functions)
2240 <expand_symtabs_matching>: Add 'domain' parameter.
2241 * psymtab.c (recursively_search_psymtabs)
2242 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2243 parameter.
2244 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2245 Add 'domain' parameter.
2246 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2247 'domain' parameter.
2248 * linespec.c (iterate_over_all_matching_symtabs): Update.
2249 * dwarf2/read.c (struct dwarf2_gdb_index)
2250 <expand_symtabs_matching>: Add 'domain' parameter.
2251 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2252 'domain' parameter.
2253 (dw2_expand_symtabs_matching)
2254 (dwarf2_gdb_index::expand_symtabs_matching)
2255 (dw2_debug_names_iterator)
2256 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2257 parameter.
2258
03a8ea51
TT
22592021-04-17 Tom Tromey <tom@tromey.com>
2260
2261 * symtab.c (global_symbol_searcher::expand_symtabs)
2262 (default_collect_symbol_completion_matches_break_on): Update.
2263 * symmisc.c (maintenance_expand_symtabs): Update.
2264 * symfile.h (expand_symtabs_matching): Add search_flags
2265 parameter.
2266 * symfile.c (expand_symtabs_matching): Add search_flags
2267 parameter.
2268 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2269 search_flags parameter.
2270 * quick-symbol.h (struct quick_symbol_functions)
2271 <expand_symtabs_matching>: Add search_flags parameter.
2272 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2273 * psymtab.c (recursively_search_psymtabs)
2274 (psymbol_functions::expand_symtabs_matching): Add search_flags
2275 parameter.
2276 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2277 Add search_flags parameter.
2278 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2279 search_flags parameter.
2280 * linespec.c (iterate_over_all_matching_symtabs): Update.
2281 * dwarf2/read.c (struct dwarf2_gdb_index)
2282 <expand_symtabs_matching>: Add search_flags parameter.
2283 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2284 search_flags parameter.
2285 (dw2_map_matching_symbols): Update.
2286 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2287 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2288 parameter.
2289 (dw2_debug_names_iterator): Change block_index to search flags.
2290 <m_block_index>: Likewise.
2291 (dw2_debug_names_iterator::next)
2292 (dwarf2_debug_names_index::lookup_symbol)
2293 (dwarf2_debug_names_index::expand_symtabs_for_function)
2294 (dwarf2_debug_names_index::map_matching_symbols)
2295 (dwarf2_debug_names_index::map_matching_symbols): Update.
2296 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2297 search_flags parameter.
2298 * ada-lang.c (ada_add_global_exceptions)
2299 (collect_symbol_completion_matches): Update.
2300
df35e626
TT
23012021-04-17 Tom Tromey <tom@tromey.com>
2302
2303 * symtab.c (default_collect_symbol_completion_matches_break_on):
2304 Update.
2305 * symfile.h (expand_symtabs_matching): Return bool.
2306 * symfile.c (expand_symtabs_matching): Return bool.
2307 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2308 bool.
2309 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2310 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2311 bool.
2312 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2313 bool.
2314 * psympriv.h (struct psymbol_functions)
2315 <expand_symtabs_matching>: Return bool.
2316 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2317 bool.
2318 * dwarf2/read.c (struct dwarf2_gdb_index)
2319 <expand_symtabs_matching>: Return bool.
2320 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2321 Return bool.
2322 (dw2_expand_symtabs_matching_symbol): Return bool.
2323 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2324 (dw2_expand_symtabs_matching)
2325 (dwarf2_gdb_index::expand_symtabs_matching)
2326 (dwarf2_debug_names_index::expand_symtabs_matching)
2327 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2328
e357e990
TT
23292021-04-17 Tom Tromey <tom@tromey.com>
2330
2331 * quick-symbol.h (enum block_search_flag_values): New.
2332 (block_search_flags): New enum flags type.
2333
3cbc7ac3
TT
23342021-04-16 Tom Tromey <tom@tromey.com>
2335
2336 * rust-parse.c: New file.
2337 * rust-exp.y: Remove.
2338 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2339 (SFILES): Remove rust-exp.y.
2340 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2341
1b6b755e
LM
23422021-04-16 Luis Machado <luis.machado@linaro.org>
2343
2344 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2345
c45ecc9d
JB
23462021-04-15 John Baldwin <jhb@FreeBSD.org>
2347
2348 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2349 use throughout file.
2350
a15a276b
TT
23512021-04-15 Tom Tromey <tromey@adacore.com>
2352
2353 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2354 arrays.
2355
644a2e75
TT
23562021-04-15 Tom Tromey <tromey@adacore.com>
2357
2358 * printcmd.c (print_variable_and_value): Use
2359 common_val_print_checked.
2360
9e5e03df
TT
23612021-04-15 Tom Tromey <tromey@adacore.com>
2362
2363 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2364 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2365 Update.
2366 * p-exp.y (variable): Update.
2367 * m2-exp.y (variable): Update.
2368 * go-exp.y (variable): Update.
2369 * expprint.c (dump_for_expression): New overload.
2370 * expop.h (check_objfile): New overload.
2371 (check_constant): New overload.
2372 (class var_value_operation): Use block_symbol.
2373 <get_symbol>: Rewrite.
2374 * eval.c (var_value_operation::evaluate)
2375 (var_value_operation::evaluate_funcall)
2376 (var_value_operation::evaluate_for_address)
2377 (var_value_operation::evaluate_for_address)
2378 (var_value_operation::evaluate_with_coercion)
2379 (var_value_operation::evaluate_for_sizeof)
2380 (var_value_operation::evaluate_for_cast): Update.
2381 * d-exp.y (PrimaryExpression): Update.
2382 * c-exp.y (variable): Update.
2383 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2384 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2385 (ada_var_value_operation::evaluate)
2386 (ada_var_value_operation::resolve)
2387 (ada_funcall_operation::resolve): Update.
2388 * ada-exp.y (write_var_from_sym, write_object_renaming)
2389 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2390 (maybe_overload): Update.
2391 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2392
5809fbf2
TT
23932021-04-15 Tom Tromey <tom@tromey.com>
2394 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * NEWS: Add entry.
2397 * main.c (captured_main_1): Call check_quiet_mode.
2398 * top.c (startup_quiet): New global.
2399 (check_quiet_mode): New function.
2400 (show_startup_quiet): New function.
2401 (init_main): Register new command.
2402 * top.h (check_quiet_mode): Declare.
2403
92e4e97a
AB
24042021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2405
2406 PR cli/25956
2407 * NEWS: Mention new early init files and command line options.
2408 * config.in: Regenerate.
2409 * configure: Regenerate.
2410 * configure.ac: Define GDBEARLYINIT.
2411 * main.c (get_earlyinit_files): New function.
2412 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2413 CMDARG_EARLYINIT_COMMAND.
2414 (captured_main_1): Add support for new command line flags, and for
2415 processing startup files.
2416 (print_gdb_help): Include startup files in the output.
2417
54b4dcc5
AB
24182021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2421 (relocate_file_path_maybe_in_datadir): ...this.
2422 (class gdb_initfile_finder): New class.
2423 (get_init_files): Now uses gdb_initfile_finder.
2424 (print_gdb_help): Print 'None found' when there are no init files.
2425
34dc0f95
TBA
24262021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2427
2428 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2429 corresponding child of the abstract DIE when iterating the
2430 children of the concrete DIE.
2431
329534fd
TV
24322021-04-13 Tom de Vries <tdevries@suse.de>
2433
2434 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2435 type to regoff_t *.
2436
d9d2ef05
LM
24372021-04-13 Luis Machado <luis.machado@linaro.org>
2438
2439 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2440 hex values.
2441
c8a37944
WS
24422021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2443
2444 * rs6000-tdep.c: Add support for single-stepping of
2445 prefixed instructions.
2446
b722acca
WS
24472021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2448
e3d528d7
WS
2449 PR gdb/27525
2450 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2451 handle the addpcis/lnia instruction.
2452
24532021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2454
b722acca
WS
2455 * MAINTAINERS (Write After Approval): Add myself.
2456
6ba4cb84
CL
24572021-4-12 Carl Love <cel@us.ibm.com>
2458
2459 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2460 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2461 float128.
2462
d4717483
SM
24632021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2464
2465 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2466 * nat/windows-nat.h: Likewise.
2467
b3885679
EZ
24682021-04-10 Eli Zaretskii <eliz@gnu.org>
2469
2470 * windows-nat.c (windows_nat::handle_load_dll): Call
2471 windows_add_dll if get_image_name failed to glean the name of the
2472 DLL by using the lpImageName pointer.
2473 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2474 (windows_add_dll): Now does what windows_add_all_dlls did before,
2475 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2476 specifies the address where the DLL was loaded into the inferior,
2477 and looks for the single DLL loaded at that address.
2478
1ef6a596
LM
24792021-04-09 Luis Machado <luis.machado@linaro.org>
2480
2481 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2482
83a559f7
DQ
24832021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2484
2485 * darwin-nat.c (darwin_nat_target::resume): Remove status
2486 variable.
2487
16e311ab
FW
24882021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2489
2490 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2491 prologue end for Intel compilers.
2492 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2493 * producer.c (producer_is_icc_ge_19): New function.
2494 * producer.h (producer_is_icc_ge_19): New declaration.
2495
fbb3bcfc
FW
24962021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2497
2498 * producer.c: (producer_is_icc): Update for new version scheme.
2499 (producer_parsing_tests): Update names and expected results.
2500 * producer.h: (producer_is_icc): Update comment accordingly.
2501
e97007b6
SM
25022021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2503
2504 * target.h (struct target_ops) <follow_fork>: Return void.
2505 (target_follow_fork): Likewise.
2506 * target.c (default_follow_fork): Likewise.
2507 (target_follow_fork): Likewise.
2508 * infrun.c (follow_fork_inferior): Adjust.
2509 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2510 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2511 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2512 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2513 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2514 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2515 * remote.c (class remote_target) <follow_fork>: Likewise.
2516 (remote_target::follow_fork): Likewise.
2517 * target-delegates.c: Re-generate.
2518
dc2b480f
WP
25192021-04-07 Weimin Pan <weimin.pan@oracle.com>
2520
2521 * ctfread.c (fetch_tid_type): New function, use throughout file.
2522 (read_forward_type): New function.
2523 (read_type_record): Call read_forward_type.
2524
0a703a4c
AB
25252021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2526
2527 * f-exp.h (class fortran_structop_operation): New class.
2528 * f-exp.y (exp): Create fortran_structop_operation instead of the
2529 generic structop_operation.
2530 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2531 expression as EVAL_NORMAL if the result type was dynamic so we can
2532 extract the actual array bounds.
2533 (fortran_structop_operation::evaluate): New function.
2534
25352021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2536
2537 * eval.c (evaluate_subexp_standard): Remove
2538 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2539 STRUCTOP_PTR.
2540
30ab3586
AB
25412021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2542
2543 * valops.c (value_cast): Call value_deeply_equal before performing
2544 any cast.
2545
5e18990f
AB
25462021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2547
2548 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2549 the function.
2550
56d467f4
CT
25512021-04-07 Caroline Tice <cmtice@google.com>
2552
2553 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2554 the search paths used resolve relative location of .dwo file.
2555
1fd999d9
AB
25562021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2559 assert.
2560 (dwarf2_section_info::get_file_name): Add an assert.
2561 (dwarf2_section_info::read_string): Display a minimal, sane error
2562 when the dwarf2_section_info is not associated with a bfd section.
2563
79c02443
AB
25642021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * top.c (staged_gdb_datadir): Update comment.
2567 (set_gdb_datadir): Copy the value of gdb_datadir back into
2568 staged_datadir.
2569 (init_main): Initialise staged_gdb_datadir.
2570
340d00fb
TV
25712021-04-06 Tom de Vries <tdevries@suse.de>
2572
2573 PR breakpoints/25884
2574 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2575 stepping range.
2576
d811a7cf
TV
25772021-04-06 Tom de Vries <tdevries@suse.de>
2578
2579 PR tui/27680
2580 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2581 to style.parse.
2582
306b445a
SM
25832021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2584
2585 * avr-tdep.c (avr_frame_unwind_cache): Use
2586 trad_frame_saved_reg::is_addr.
2587
9161c89a
SM
25882021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2589
2590 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2591 adjust callers.
2592
0072c873
SM
25932021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2594
2595 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2596 objfile parameter for objfile_per_bfd_storage, adjust callers.
2597 (struct standard_psymtab) <standard_psymtab>: Likewise.
2598 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2599 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2600 * ctfread.c (struct ctf_psymtab): Likewise.
2601 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2602 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2603 (dwarf2_create_include_psymtab): Likewise.
2604 * objfiles.h (struct objfile_per_bfd_storage)
2605 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2606 <get_bfd>: New method.
2607 <m_bfd>: New field.
2608 * objfiles.c (get_objfile_bfd_data): Adjust.
2609
9984dd99
SM
26102021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2611
2612 * psymtab.c (partial_symtab::partial_symtab): Change
2613 last_objfile_name to be an std::string.
2614 * symfile.c (allocate_symtab): Likewise.
2615
4a4f97c1
SM
26162021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2619 methods.
2620 (struct objfile) <intern>: Use
2621 objfile::objfile_per_bfd_storage::intern.
2622
0672875f
SM
26232021-04-01 Simon Marchi <simon.marchi@efficios.com>
2624
2625 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2626 with type::is_flag_enum.
2627
9902b327
SM
26282021-04-01 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * gdbtypes.h (struct type) <is_flag_enum,
2631 set_is_flag_enum>: New methods.
2632 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2633 write call sites to use type::set_is_flag_enum.
2634
3bc440a2
SM
26352021-04-01 Simon Marchi <simon.marchi@efficios.com>
2636
2637 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2638 with type::is_declared_class.
2639
aa70e35c
SM
26402021-04-01 Simon Marchi <simon.marchi@efficios.com>
2641
2642 * gdbtypes.h (struct type) <is_declared_class,
2643 set_is_declared_class>: New methods.
2644 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2645 write call sites to use type::set_is_declared_class.
2646
bfb9f5dc
BS
26472021-02-28 Boris Staletic <boris.staletic@gmail.com>
2648
2649 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2650 to avoid deprecation warnings.
2651
733f5eea
ML
26522021-04-01 Martin Liska <mliska@suse.cz>
2653
2654 * cp-name-parser.y: Use startswith instead of strncmp.
2655 * m2-exp.y: Likewise.
2656 * macroexp.c (substitute_args): Likewise.
2657 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2658 * rust-exp.y: Likewise.
2659
af82f89d
TT
26602021-03-31 Tom Tromey <tom@tromey.com>
2661
2662 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2663 with dw2_map_matching_symbols.
2664 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2665 dw2_expand_symtabs_matching.
2666
3570682a
TT
26672021-03-31 Tom Tromey <tromey@adacore.com>
2668
2669 * dwarf2/stringify.h: Fix typo.
2670
8a91fbdf
SM
26712021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2672
2673 PR gdb/27541
2674 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2675 with objfiles using READNOW.
2676
9f67fc59
TT
26772021-03-29 Tom Tromey <tromey@adacore.com>
2678
2679 * top.c (check_frame_language_change): Update.
2680 * language.c (language_info): Remove parameter.
2681 * language.h (language_info): Remove parameter.
2682
9b8ffbf4
LM
26832021-03-29 Luis Machado <luis.machado@linaro.org>
2684
2685 * compile/compile.c (get_args): Don't add empty argv entries.
2686
25b48839
RO
26872021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2688
2689 gdb:
2690 * procfs.c (procfs_target::attach): Define inf.
2691 Use it.
2692 (procfs_target::create_inferior): Likewise.
2693
edc02ceb
TT
26942021-03-28 Tom Tromey <tom@tromey.com>
2695
2696 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2697 (elf_symfile_read): Simplify.
2698 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2699 (make_lazy_dwarf_reader): New function.
2700 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2701 (dwarf2_initialize_objfile): Return void. Remove index_kind
2702 parameter. Push on 'qf' list.
2703 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2704 type. Remove 'index_kind' parameter.
2705 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2706
6e23d91a
TT
27072021-03-27 Tom Tromey <tom@tromey.com>
2708
2709 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2710
594b8948
TT
27112021-03-27 Tom Tromey <tom@tromey.com>
2712
2713 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2714
efe1ecd8
LS
27152021-03-26 Lancelot Six <lsix@lancelotsix.com>
2716
2717 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2718 rid of 'local'.
2719
f4655dee
TT
27202021-03-26 Tom Tromey <tom@tromey.com>
2721
2722 * symtab.c (struct output_source_filename_data): Add 'output'
2723 method and operator().
2724 (output_source_filename_data::output): Rename from
2725 output_source_filename.
2726 (output_partial_symbol_filename): Remove.
2727 (info_sources_command): Update.
2728 (struct add_partial_filename_data): Add operator().
2729 (add_partial_filename_data::operator()): Rename from
2730 maybe_add_partial_symtab_filename.
2731 (make_source_files_completion_list): Update.
2732 * symfile.c (quick_symbol_functions): Update.
2733 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2734 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2735 'need_fullname'. Remove 'data' parameter.
2736 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2737 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2738 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2739 Change type of 'fun' and 'need_fullname'. Remove 'data'
2740 parameter.
2741 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2742 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2743 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2744 parameter.
2745 (mi_cmd_file_list_exec_source_files): Update.
2746 * dwarf2/read.c
2747 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2748
2315bb2d
TT
27492021-03-26 Tom Tromey <tom@tromey.com>
2750
2751 * ada-lang.c (struct match_data): Add operator().
2752 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2753 (callback): Remove 'callback'.
2754
e2cd5ca4
TT
27552021-03-26 Tom Tromey <tom@tromey.com>
2756
2757 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2758 call make_ignore_params once.
2759
cd43f63e
TT
27602021-03-26 Tom Tromey <tom@tromey.com>
2761
2762 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2763 "user" check.
2764
b4b1a226
SM
27652021-03-26 Simon Marchi <simon.marchi@efficios.com>
2766 Pedro Alves <pedro@palves.net>
2767
2768 * async-event.c: Include "infrun.h".
2769 (async_event_handler_marked): New.
2770 * async-event.h (async_event_handler_marked): Declare.
2771 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2772 inferior before calling target method. Don't commit-resumed if
2773 target_has_pending_events is true.
2774 * remote.c (remote_target::has_pending_events): New.
2775 * target-delegates.c: Regenerate.
2776 * target.c (target_has_pending_events): New.
2777 * target.h (target_ops::has_pending_events): New target method.
2778 (target_has_pending_events): New.
2779
1192f124
SM
27802021-03-26 Simon Marchi <simon.marchi@efficios.com>
2781 Pedro Alves <pedro@palves.net>
2782
2783 * infcmd.c (run_command_1, attach_command, detach_command)
2784 (interrupt_target_1): Use scoped_disable_commit_resumed.
2785 * infrun.c (do_target_resume): Remove
2786 target_commit_resume call.
2787 (commit_resume_all_targets): Remove.
2788 (maybe_set_commit_resumed_all_targets): New.
2789 (maybe_call_commit_resumed_all_targets): New.
2790 (enable_commit_resumed): New.
2791 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2792 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2793 (scoped_disable_commit_resumed::reset)
2794 (scoped_disable_commit_resumed::reset_and_commit)
2795 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2796 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2797 New.
2798 (proceed): Use scoped_disable_commit_resumed and
2799 maybe_call_commit_resumed_all_targets.
2800 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2801 * infrun.h (struct scoped_disable_commit_resumed): New.
2802 (maybe_call_commit_resumed_all_process_targets): New.
2803 (struct scoped_enable_commit_resumed): New.
2804 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2805 * process-stratum-target.h (class process_stratum_target):
2806 <commit_resumed_state>: New.
2807 * record-full.c (record_full_wait_1): Change commit_resumed_state
2808 around calling commit_resumed.
2809 * remote.c (class remote_target) <commit_resume>: Rename to...
2810 <commit_resumed>: ... this.
2811 (struct stop_reply): Move up.
2812 (remote_target::commit_resume): Rename to...
2813 (remote_target::commit_resumed): ... this. Check if there is any
2814 thread pending vCont resume.
2815 (remote_target::remote_stop_ns): Generate stop replies for resumed
2816 but pending vCont threads.
2817 (remote_target::wait_ns): Add gdb_assert.
2818 * target-delegates.c: Regenerate.
2819 * target.c (target_wait, target_resume): Assert that the current
2820 process_stratum target isn't in commit-resumed state.
2821 (defer_target_commit_resume): Remove.
2822 (target_commit_resume): Remove.
2823 (target_commit_resumed): New.
2824 (make_scoped_defer_target_commit_resume): Remove.
2825 (target_stop): Assert that the current process_stratum target
2826 isn't in commit-resumed state.
2827 * target.h (struct target_ops) <commit_resume>: Rename to ...
2828 <commit_resumed>: ... this.
2829 (target_commit_resume): Remove.
2830 (target_commit_resumed): New.
2831 (make_scoped_defer_target_commit_resume): Remove.
2832 * top.c (wait_sync_command_done): Use
2833 scoped_enable_commit_resumed.
2834
e5b9b39f
PA
28352021-03-26 Pedro Alves <pedro@palves.net>
2836
2837 * target.c (target_always_non_stop_p): Also check whether the
2838 target can async.
2839
bab287cd
TT
28402021-03-26 Tom Tromey <tom@tromey.com>
2841
2842 * dwarf2/read.c (dwarf2_read_debug_names)
2843 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2844 (dw2_debug_names_iterator::next, create_type_unit_group):
2845 Simplify.
2846
eff4f69d
PA
28472021-03-25 Pedro Alves <pedro@palves.net>
2848
2849 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2850 around setting the breakpoint.
2851
323fd5b9
PA
28522021-03-25 Pedro Alves <pedro@palves.net>
2853
2854 * remote.c
2855 (remote_target::check_pending_events_prevent_wildcard_vcont):
2856 Check whether the event's ptid is not null_ptid before looking up
2857 the corresponding inferior.
2858
d3cbca38
CD
28592021-03-24 Changbin Du <changbin.du@gmail.com>
2860
2861 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2862 read_code.
2863
328d42d8
SM
28642021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2865
2866 * target.h (current_top_target): Remove, make callers use the
2867 current inferior instead.
2868 * target.c (current_top_target): Remove.
2869
d777bf0d
SM
28702021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2871
2872 * target.h (target_shortname): Change to function declaration.
2873 (target_longname): Likewise.
2874 (target_attach_no_wait): Likewise.
2875 (target_post_attach): Likewise.
2876 (target_prepare_to_store): Likewise.
2877 (target_supports_enable_disable_tracepoint): Likewise.
2878 (target_supports_string_tracing): Likewise.
2879 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2880 (target_supports_dumpcore): Likewise.
2881 (target_dumpcore): Likewise.
2882 (target_can_run_breakpoint_commands): Likewise.
2883 (target_files_info): Likewise.
2884 (target_post_startup_inferior): Likewise.
2885 (target_insert_fork_catchpoint): Likewise.
2886 (target_remove_fork_catchpoint): Likewise.
2887 (target_insert_vfork_catchpoint): Likewise.
2888 (target_remove_vfork_catchpoint): Likewise.
2889 (target_insert_exec_catchpoint): Likewise.
2890 (target_remove_exec_catchpoint): Likewise.
2891 (target_set_syscall_catchpoint): Likewise.
2892 (target_rcmd): Likewise.
2893 (target_can_lock_scheduler): Likewise.
2894 (target_can_async_p): Likewise.
2895 (target_is_async_p): Likewise.
2896 (target_execution_direction): Likewise.
2897 (target_extra_thread_info): Likewise.
2898 (target_pid_to_exec_file): Likewise.
2899 (target_thread_architecture): Likewise.
2900 (target_find_memory_regions): Likewise.
2901 (target_make_corefile_notes): Likewise.
2902 (target_get_bookmark): Likewise.
2903 (target_goto_bookmark): Likewise.
2904 (target_stopped_by_watchpoint): Likewise.
2905 (target_stopped_by_sw_breakpoint): Likewise.
2906 (target_supports_stopped_by_sw_breakpoint): Likewise.
2907 (target_stopped_by_hw_breakpoint): Likewise.
2908 (target_supports_stopped_by_hw_breakpoint): Likewise.
2909 (target_have_steppable_watchpoint): Likewise.
2910 (target_can_use_hardware_watchpoint): Likewise.
2911 (target_region_ok_for_hw_watchpoint): Likewise.
2912 (target_can_do_single_step): Likewise.
2913 (target_insert_watchpoint): Likewise.
2914 (target_remove_watchpoint): Likewise.
2915 (target_insert_hw_breakpoint): Likewise.
2916 (target_remove_hw_breakpoint): Likewise.
2917 (target_can_accel_watchpoint_condition): Likewise.
2918 (target_can_execute_reverse): Likewise.
2919 (target_get_ada_task_ptid): Likewise.
2920 (target_filesystem_is_local): Likewise.
2921 (target_trace_init): Likewise.
2922 (target_download_tracepoint): Likewise.
2923 (target_can_download_tracepoint): Likewise.
2924 (target_download_trace_state_variable): Likewise.
2925 (target_enable_tracepoint): Likewise.
2926 (target_disable_tracepoint): Likewise.
2927 (target_trace_start): Likewise.
2928 (target_trace_set_readonly_regions): Likewise.
2929 (target_get_trace_status): Likewise.
2930 (target_get_tracepoint_status): Likewise.
2931 (target_trace_stop): Likewise.
2932 (target_trace_find): Likewise.
2933 (target_get_trace_state_variable_value): Likewise.
2934 (target_save_trace_data): Likewise.
2935 (target_upload_tracepoints): Likewise.
2936 (target_upload_trace_state_variables): Likewise.
2937 (target_get_raw_trace_data): Likewise.
2938 (target_get_min_fast_tracepoint_insn_len): Likewise.
2939 (target_set_disconnected_tracing): Likewise.
2940 (target_set_circular_trace_buffer): Likewise.
2941 (target_set_trace_buffer_size): Likewise.
2942 (target_set_trace_notes): Likewise.
2943 (target_get_tib_address): Likewise.
2944 (target_set_permissions): Likewise.
2945 (target_static_tracepoint_marker_at): Likewise.
2946 (target_static_tracepoint_markers_by_strid): Likewise.
2947 (target_traceframe_info): Likewise.
2948 (target_use_agent): Likewise.
2949 (target_can_use_agent): Likewise.
2950 (target_augmented_libraries_svr4_read): Likewise.
2951 (target_log_command): Likewise.
2952 * target.c (target_shortname): New.
2953 (target_longname): New.
2954 (target_attach_no_wait): New.
2955 (target_post_attach): New.
2956 (target_prepare_to_store): New.
2957 (target_supports_enable_disable_tracepoint): New.
2958 (target_supports_string_tracing): New.
2959 (target_supports_evaluation_of_breakpoint_conditions): New.
2960 (target_supports_dumpcore): New.
2961 (target_dumpcore): New.
2962 (target_can_run_breakpoint_commands): New.
2963 (target_files_info): New.
2964 (target_post_startup_inferior): New.
2965 (target_insert_fork_catchpoint): New.
2966 (target_remove_fork_catchpoint): New.
2967 (target_insert_vfork_catchpoint): New.
2968 (target_remove_vfork_catchpoint): New.
2969 (target_insert_exec_catchpoint): New.
2970 (target_remove_exec_catchpoint): New.
2971 (target_set_syscall_catchpoint): New.
2972 (target_rcmd): New.
2973 (target_can_lock_scheduler): New.
2974 (target_can_async_p): New.
2975 (target_is_async_p): New.
2976 (target_execution_direction): New.
2977 (target_extra_thread_info): New.
2978 (target_pid_to_exec_file): New.
2979 (target_thread_architecture): New.
2980 (target_find_memory_regions): New.
2981 (target_make_corefile_notes): New.
2982 (target_get_bookmark): New.
2983 (target_goto_bookmark): New.
2984 (target_stopped_by_watchpoint): New.
2985 (target_stopped_by_sw_breakpoint): New.
2986 (target_supports_stopped_by_sw_breakpoint): New.
2987 (target_stopped_by_hw_breakpoint): New.
2988 (target_supports_stopped_by_hw_breakpoint): New.
2989 (target_have_steppable_watchpoint): New.
2990 (target_can_use_hardware_watchpoint): New.
2991 (target_region_ok_for_hw_watchpoint): New.
2992 (target_can_do_single_step): New.
2993 (target_insert_watchpoint): New.
2994 (target_remove_watchpoint): New.
2995 (target_insert_hw_breakpoint): New.
2996 (target_remove_hw_breakpoint): New.
2997 (target_can_accel_watchpoint_condition): New.
2998 (target_can_execute_reverse): New.
2999 (target_get_ada_task_ptid): New.
3000 (target_filesystem_is_local): New.
3001 (target_trace_init): New.
3002 (target_download_tracepoint): New.
3003 (target_can_download_tracepoint): New.
3004 (target_download_trace_state_variable): New.
3005 (target_enable_tracepoint): New.
3006 (target_disable_tracepoint): New.
3007 (target_trace_start): New.
3008 (target_trace_set_readonly_regions): New.
3009 (target_get_trace_status): New.
3010 (target_get_tracepoint_status): New.
3011 (target_trace_stop): New.
3012 (target_trace_find): New.
3013 (target_get_trace_state_variable_value): New.
3014 (target_save_trace_data): New.
3015 (target_upload_tracepoints): New.
3016 (target_upload_trace_state_variables): New.
3017 (target_get_raw_trace_data): New.
3018 (target_get_min_fast_tracepoint_insn_len): New.
3019 (target_set_disconnected_tracing): New.
3020 (target_set_circular_trace_buffer): New.
3021 (target_set_trace_buffer_size): New.
3022 (target_set_trace_notes): New.
3023 (target_get_tib_address): New.
3024 (target_set_permissions): New.
3025 (target_static_tracepoint_marker_at): New.
3026 (target_static_tracepoint_markers_by_strid): New.
3027 (target_traceframe_info): New.
3028 (target_use_agent): New.
3029 (target_can_use_agent): New.
3030 (target_augmented_libraries_svr4_read): New.
3031 (target_log_command): New.
3032 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3033 * infrun.c (set_schedlock_func): Adjust.
3034 * mi/mi-main.c (exec_reverse_continue): Adjust.
3035 * reverse.c (exec_reverse_once): Adjust.
3036 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3037 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3038 * remote-sim.c (gdbsim_target::detach): Adjust.
3039 (gdbsim_target::files_info): Adjust.
3040
b64f703b
TT
30412021-03-24 Tom Tromey <tom@tromey.com>
3042
3043 * dwarf2/read.c (dw2_map_matching_symbols): Update.
3044 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3045 (check_match, dw2_expand_symtabs_matching)
3046 (dwarf2_debug_names_index::map_matching_symbols)
3047 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
3048
68f115f8
KS
30492021-03-24 Keith Seitz <keiths@redhat.com>
3050
3051 * compile/compile-cplus-types.c
3052 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3053 thinko.
3054
41c0087b
SM
30552021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3056
3057 * gdbarch.sh (gdbarch_data_registry): Make static.
3058 * gdbarch.c: Re-generate.
3059
ce192338
LM
30602021-03-24 Luis Machado <luis.machado@linaro.org>
3061
3062 * NEWS: Mention memory tagging changes.
3063
bef382e6
LM
30642021-03-24 Luis Machado <luis.machado@linaro.org>
3065
3066 * printcmd.c (decode_format): Handle the 'm' modifier.
3067 (do_examine): Display allocation tags when required/supported.
3068 (should_validate_memtags): New function.
3069 (print_command_1): Display memory tag mismatches.
3070 * valprint.c (show_memory_tag_violations): New function.
3071 (value_print_option_defs): Add new option "memory-tag-violations".
3072 (user_print_options) <memory_tag_violations>: Initialize to 1.
3073 * valprint.h (struct format_data) <print_tags>: New field.
3074 (value_print_options) <memory_tag_violations>: New field.
3075
48136e00
LM
30762021-03-24 Luis Machado <luis.machado@linaro.org>
3077
3078 * printcmd.c: Include gdbsupport/rsp-low.h.
3079 (memory_tag_list): New static global.
3080 (process_print_command_args): Factored out of
3081 print_command_1.
3082 (print_command_1): Use process_print_command_args.
3083 (show_addr_not_tagged, show_memory_tagging_unsupported)
3084 (memory_tag_command, memory_tag_print_tag_command)
3085 (memory_tag_print_logical_tag_command)
3086 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3087 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3088 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3089 functions.
3090 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3091
ffcc2a15
LM
30922021-03-24 Luis Machado <luis.machado@linaro.org>
3093
3094 * aarch64-linux-tdep.c
3095 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3096 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3097
cf44c9fa
LM
30982021-03-24 Luis Machado <luis.machado@linaro.org>
3099
3100 * aarch64-linux-tdep.c
3101 (aarch64_linux_report_signal_info): New function.
3102 (aarch64_linux_init_abi): Register
3103 aarch64_linux_report_signal_info as the report_signal_info hook.
3104 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3105 (SEGV_MTESERR): Define.
3106
b4a7d4fc
LM
31072021-03-24 Luis Machado <luis.machado@linaro.org>
3108
3109 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3110 (aarch64_linux_ltag_tests): New function.
3111 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3112
c7782e50
LM
31132021-03-24 Luis Machado <luis.machado@linaro.org>
3114
3115 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3116 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3117 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3118 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3119 functions.
3120 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3121 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3122 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3123 (aarch64_linux_get_ltag): New functions.
3124 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3125 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3126 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3127 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3128
1e735120
LM
31292021-03-24 Luis Machado <luis.machado@linaro.org>
3130
3131 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3132 bit.
3133 (struct smaps_data): New struct.
3134 (decode_vmflags): Handle the 'mt' flag.
3135 (parse_smaps_data): New function, refactored from
3136 linux_find_memory_regions_full.
3137 (linux_address_in_memtag_page): New function.
3138 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3139 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3140
93e447c6
LM
31412021-03-24 Luis Machado <luis.machado@linaro.org>
3142
3143 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3144 instead of char arrays.
3145
4601818e
LM
31462021-03-24 Luis Machado <luis.machado@linaro.org>
3147
3148 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3149 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3150 nat/aarch64-mte-linux-ptrace.h.
3151 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3152 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3153 override.
3154 <fetch_memtags>: New method override.
3155 <store_memtags>: New method override.
3156 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3157 (aarch64_linux_nat_target::fetch_memtags): New method.
3158 (aarch64_linux_nat_target::store_memtags): New method.
3159 * arch/aarch64-mte-linux.c: New file.
3160 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3161 (AARCH64_MTE_GRANULE_SIZE): Define.
3162 (aarch64_memtag_type): New enum.
3163 (aarch64_mte_get_tag_granules): New prototype.
3164 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3165 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3166 * nat/aarch64-mte-linux-ptrace.c: New file.
3167 * nat/aarch64-mte-linux-ptrace.h: New file.
3168
3f3bd8b8
LM
31692021-03-24 Luis Machado <luis.machado@linaro.org>
3170
3171 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3172 * nat/aarch64-mte-linux-ptrace.h: New file.
3173
5e984dbf
LM
31742021-03-24 Luis Machado <luis.machado@linaro.org>
3175
3176 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3177 (store_mteregs_to_thread): New function.
3178 (aarch64_linux_nat_target::fetch_registers): Update to call
3179 fetch_mteregs_from_thread.
3180 (aarch64_linux_nat_target::store_registers): Update to call
3181 store_mteregs_to_thread.
3182 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3183 (aarch64_cannot_store_register): Handle MTE registers.
3184 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3185 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3186 <has_mte>: New method.
3187 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3188
c1bd443b
LM
31892021-03-24 Luis Machado <luis.machado@linaro.org>
3190
3191 * aarch64-linux-nat.c
3192 (aarch64_linux_nat_target::read_description): Take MTE flag into
3193 account.
3194 Slight refactor to hwcap flag checking.
3195 * aarch64-linux-tdep.c
3196 (aarch64_linux_core_read_description): Likewise.
3197 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3198 MTE.
3199 (aarch64_read_description): Add mte_p parameter and update to use it.
3200 Update the documentation.
3201 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3202 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3203 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3204 (aarch64_create_target_description): Add mte_p parameter and update
3205 the code to use it.
3206 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3207 parameter.
3208 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3209 * features/aarch64-mte.c: New file, generated.
3210 * features/aarch64-mte.xml: New file.
3211
04245125
LM
32122021-03-24 Luis Machado <luis.machado@linaro.org>
3213
3214 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3215 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3216 * aarch64-linux-tdep.c: Likewise
3217 * arch/aarch64-mte-linux.h: New file.
3218
754487e2
LM
32192021-03-24 Luis Machado <luis.machado@linaro.org>
3220
3221 * remote: Include gdbsupport/selftest.h.
3222 (test_memory_tagging_functions): New function.
3223 (_initialize_remote): Register test_memory_tagging_functions.
3224
2c2e7f87
LM
32252021-03-24 Luis Machado <luis.machado@linaro.org>
3226
3227 * remote.c (PACKET_memory_tagging_feature): New enum.
3228 (remote_memory_tagging_p): New function.
3229 (remote_protocol_features): New "memory-tagging" entry.
3230 (remote_target::remote_query_supported): Handle memory tagging
3231 support.
3232 (remote_target::supports_memory_tagging): Implement.
3233 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3234 (create_store_memtags_request): New functions.
3235 (remote_target::fetch_memtags): Implement.
3236 (remote_target::store_memtags): Implement.
3237 (_initialize_remote): Add new "memory-tagging-feature"
3238 config command.
3239
c193949e
LM
32402021-03-24 Luis Machado <luis.machado@linaro.org>
3241
3242 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3243 (default_memtag_matches_p, default_set_memtags)
3244 (default_get_memtag): New functions.
3245 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3246 (default_memtag_matches_p, default_set_memtags)
3247 (default_get_memtag): New prototypes.
3248 * gdbarch.c: Regenerate.
3249 * gdbarch.h: Regenerate.
3250 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3251 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3252 (enum memtag_type): New enum.
3253
dbe692af
LM
32542021-03-24 Luis Machado <luis.machado@linaro.org>
3255
3256 * remote.c (remote_target) <supports_memory_tagging>: New method
3257 override.
3258 <fetch_memtags>: New method override.
3259 <store_memtags>: New method override.
3260 (remote_target::supports_memory_tagging): New method.
3261 (remote_target::fetch_memtags): New method.
3262 (remote_target::store_memtags): New method.
3263 * target-delegates.c: Regenerate.
3264 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3265 method.
3266 <fetch_memtags>: New virtual method.
3267 <store_memtags>: New virtual method.
3268 (target_supports_memory_tagging): Define.
3269 (target_fetch_memtags): Define.
3270 (target_store_memtags): Define.
3271 * target-debug.h (target_debug_print_size_t)
3272 (target_debug_print_const_gdb_byte_vector_r)
3273 (target_debug_print_gdb_byte_vector_r): New functions.
3274
66848ebc
SM
32752021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3276
3277 * target.h (target_longname): Remove.
3278
c8fbd44a
SM
32792021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3280
3281 * target.h (target_is_pushed): Remove, update callers to use
3282 inferior::target_is_pushed instead.
3283 * target.c (target_is_pushed): Remove.
3284
02980c56
SM
32852021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3286
3287 * target.h (push_target): Remove, update callers to use
3288 inferior::push_target.
3289 * target.c (push_target): Remove.
3290 * inferior.h (class inferior) <push_target>: New overload.
3291
fadf6add
SM
32922021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3293
3294 * target.h (unpush_target): Remove, update all callers
3295 to use `inferior::unpush_target` instead.
3296 (struct target_unpusher) <operator()>: Just declare.
3297 * target.c (unpush_target): Remove.
3298 (target_unpusher::operator()): New.
3299
702cf3f5
AB
33002021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3303 error.
3304 (process_full_comp_unit): Validate the top-level tag before
3305 processing the first DIE.
3306 (read_func_scope): Ensure we have a valid builder.
3307
46fec642
AB
33082021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * objc-lang.c (objc_demangle): Renamed to
3311 objc_language::demangle_symbol, and moved later in the file.
3312 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3313 member function.
3314 (objc_language::demangle_symbol): Defined outside of class
3315 declaration. The definition is the old objc_demangle with NULL
3316 changed to nullptr, and if conditions relating to nullptr pointers
3317 or null character checks made explicit.
3318 * objc-lang.h (objc_demangle): Delete declaration.
3319
08dedd66
ML
33202021-03-22 Martin Liska <mliska@suse.cz>
3321
3322 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3323 (_initialize_arm_tdep): Likewise.
3324
eb36a3eb
TT
33252021-03-20 Tom Tromey <tom@tromey.com>
3326
3327 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3328 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3329 * psymtab.h (make_psymbol_functions): Don't declare.
3330 * psymtab.c (make_psymbol_functions): Remove.
3331 (maintenance_print_psymbols): Update.
3332 * psympriv.h (struct psymbol_functions): Add no-argument
3333 constructor.
3334 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3335 <partial_symtabs>: Remove.
3336 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3337 * elfread.c (read_partial_symbols): Update.
3338 (elf_symfile_read): Remove check for existing partial symbols.
3339 Don't clear "qf".
3340 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3341 partial symbols.
3342 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3343 partial symtabs.
3344 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3345 parameter.
3346 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3347 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3348
e1114590
TT
33492021-03-20 Tom Tromey <tom@tromey.com>
3350
3351 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3352 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3353 * symfile-debug.c (objfile::has_partial_symbols)
3354 (objfile::find_last_source_symtab)
3355 (objfile::forget_cached_source_info)
3356 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3357 (objfile::print_stats, objfile::dump)
3358 (objfile::expand_symtabs_for_function)
3359 (objfile::expand_all_symtabs)
3360 (objfile::expand_symtabs_with_fullname)
3361 (objfile::map_matching_symbols)
3362 (objfile::expand_symtabs_matching)
3363 (objfile::find_pc_sect_compunit_symtab)
3364 (objfile::map_symbol_filenames)
3365 (objfile::find_compunit_symtab_by_address)
3366 (objfile::lookup_global_symbol_language)
3367 (objfile::require_partial_symbols): Update.
3368 * psymtab.c (maintenance_print_psymbols)
3369 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3370 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3371 * objfiles.c (objfile_relocate1): Update.
3372 * elfread.c (elf_symfile_read): Update.
3373
de909f0b
TT
33742021-03-20 Tom Tromey <tom@tromey.com>
3375
3376 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3377
caf8c1e5
TT
33782021-03-20 Tom Tromey <tom@tromey.com>
3379
3380 * psymtab.c (psymbol_functions::count_psyms): Rename.
3381 (psymbol_functions::print_stats): Update.
3382 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3383 method.
3384
3aa31ce7
TT
33852021-03-20 Tom Tromey <tom@tromey.com>
3386
3387 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3388 (psymbol_functions::find_pc_sect_psymtab): Rename.
3389 (psymbol_functions::find_pc_sect_compunit_symtab)
3390 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3391 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3392 Declare new method.
3393 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3394
7b249e47
TT
33952021-03-20 Tom Tromey <tom@tromey.com>
3396
3397 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3398 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3399 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3400 parameter.
3401 (add_psymbol_to_bcache): Remove.
3402 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3403 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3404 Likewise.
3405 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3406 <add_psymbol>: Likewise.
3407 (standard_psymtab, legacy_psymtab): Likewise.
3408 * mdebugread.c (parse_partial_symbols): Update.
3409 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3410 (handle_psymbol_enumerators): Update.
3411 (new_psymtab): Add partial_symtabs parameter.
3412 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3413 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3414 parameter.
3415 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3416 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3417 Update.
3418 * dbxread.c (read_dbx_symtab): Update.
3419 (start_psymtab): Add partial_symtabs parameter.
3420 (dbx_end_psymtab): Update.
3421 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3422 (ctf_psymtab): Add partial_symtabs parameter.
3423 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3424 Update.
3425 (scan_partial_symbols): Add partial_symtabs parameter.
3426 (scan_partial_symbols, elfctf_build_psymtabs)
3427 (ctf_psymtab_add_enums): Update.
3428
d1eef86d
TT
34292021-03-20 Tom Tromey <tom@tromey.com>
3430
3431 * symfile.c (read_symbols): Use objfile method.
3432 * symfile-debug.c (objfile::require_partial_symbols): New method.
3433 * psymtab.h (require_partial_symbols): Don't declare.
3434 * psymtab.c (require_partial_symbols): Use objfile method. Now
3435 static.
3436 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3437 (psymbol_functions::lookup_symbol)
3438 (psymbol_functions::lookup_global_symbol_language)
3439 (psymbol_functions::find_last_source_symtab)
3440 (psymbol_functions::forget_cached_source_info)
3441 (psymbol_functions::print_stats)
3442 (psymbol_functions::expand_symtabs_for_function)
3443 (psymbol_functions::expand_all_symtabs)
3444 (psymbol_functions::expand_symtabs_with_fullname)
3445 (psymbol_functions::map_symbol_filenames)
3446 (psymbol_functions::map_matching_symbols)
3447 (psymbol_functions::expand_symtabs_matching)
3448 (psymbol_functions::find_compunit_symtab_by_address)
3449 (maintenance_print_psymbols, maintenance_info_psymtabs)
3450 (maintenance_check_psymtabs): Update.
3451 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3452 new method.
3453
eb00e468
TT
34542021-03-20 Tom Tromey <tom@tromey.com>
3455
3456 * xcoffread.c (xcoff_sym_fns): Update.
3457 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3458 * symfile-debug.c (objfile::has_partial_symbols): Use
3459 can_lazily_read_symbols.
3460 (debug_sym_read_psymbols): Remove.
3461 (debug_sym_fns, install_symfile_debug_logging): Update.
3462 * quick-symbol.h (struct quick_symbol_functions)
3463 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3464 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3465 * mipsread.c (ecoff_sym_fns): Update.
3466 * machoread.c (macho_sym_fns): Update.
3467 * elfread.c (struct lazy_dwarf_reader): New.
3468 (elf_symfile_read): Update.
3469 (read_psyms): Now a method of lazy_dwarf_reader.
3470 (elf_sym_fns): Update.
3471 (elf_sym_fns_lazy_psyms): Remove.
3472 * dbxread.c (aout_sym_fns): Update.
3473 * coffread.c (coff_sym_fns): Update.
3474
b29b98cf
TT
34752021-03-20 Tom Tromey <tom@tromey.com>
3476
3477 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3478 (reread_symbols): Move reset_psymtabs call later.
3479 * objfiles.c (objfile::objfile): Don't initialize
3480 partial_symtabs.
3481
17d66340
TT
34822021-03-20 Tom Tromey <tom@tromey.com>
3483
3484 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3485 set_partial_symtabs.
3486 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3487 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3488 parameter.
3489 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3490 parameter.
3491 (psymbol_functions::find_pc_sect_compunit_symtab)
3492 (psymbol_functions::print_stats, psymbol_functions::dump)
3493 (psymbol_functions::has_symbols): Update.
3494 (make_psymbol_functions, dump_psymtab_addrmap): Add
3495 partial_symtabs parameter.
3496 (maintenance_print_psymbols): Update.
3497 (psymbol_functions::expand_symtabs_matching): Update.
3498 * psympriv.h (struct psymbol_functions): Add constructor.
3499 <m_partial_symtabs>: New member.
3500 <set_partial_symtabs>: New method.
3501
84685904
TT
35022021-03-20 Tom Tromey <tom@tromey.com>
3503
3504 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3505 parameter.
3506 (process_psymtab_comp_unit_reader)
3507 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3508 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3509 Reference psymtabs via per_bfd.
3510
79cc99f6
TT
35112021-03-20 Tom Tromey <tom@tromey.com>
3512
3513 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3514 Remove.
3515 (add_address_entry): Remove objfile parameter.
3516 (add_address_entry_worker): Update.
3517 (write_address_map): Replace objfile parameter with per_bfd.
3518 (write_gdbindex, write_psymtabs_to_index): Update.
3519
4829711b
TT
35202021-03-20 Tom Tromey <tom@tromey.com>
3521
3522 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3523 print_bcache parameter.
3524 * symfile-debug.c (objfile::print_stats): Add print_bcache
3525 parameter.
3526 * quick-symbol.h (struct quick_symbol_functions)
3527 <print_stats>: Add print_bcache parameter.
3528 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3529 code to psymtab.c.
3530 (print_objfile_statistics): Move psymtab code to psymtab.c.
3531 * psymtab.c (count_psyms): Move from symmisc.c.
3532 (psymbol_functions::print_stats): Print partial symbol and bcache
3533 statistics. Add print_bcache parameter.
3534 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3535 (struct objfile) <print_stats>: Add print_bcache parameter.
3536 * maint.c (maintenance_print_statistics): Update.
3537
efd7398e
TT
35382021-03-20 Tom Tromey <tom@tromey.com>
3539
3540 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3541 member.
3542 * dwarf2/read.c (create_addrmap_from_index)
3543 (create_addrmap_from_aranges): Set per_bfd addrmap.
3544 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3545 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3546 per_bfd addrmap.
3547 (dwarf2_read_debug_names): Don't set partial_symtabs.
3548 (dwarf2_initialize_objfile): Likewise.
3549
51962708
TT
35502021-03-20 Tom Tromey <tom@tromey.com>
3551
3552 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3553 earlier.
3554
484b1090
TT
35552021-03-20 Tom Tromey <tom@tromey.com>
3556
3557 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3558 (~psymtab_discarder, keep): Update.
3559 <m_objfile>: Remove.
3560 <m_partial_symtabs>: New member.
3561 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3562
7e9c0476
TT
35632021-03-20 Tom Tromey <tom@tromey.com>
3564
3565 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3566 (xcoff_end_psymtab): Update.
3567 (scan_xcoff_symtab): Add partial_symtabs parameter.
3568 (xcoff_initial_scan): Update.
3569 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3570 * mdebugread.c (mdebug_build_psymtabs): Update.
3571 (parse_partial_symbols): Add partial_symtabs parameter.
3572 * dbxread.c (dbx_symfile_read): Update.
3573 (read_dbx_symtab): Add partial_symtabs parameter.
3574 (read_dbx_symtab): Update.
3575 (dbx_end_psymtab): Add partial_symtabs parameter.
3576
75336a5a
TT
35772021-03-20 Tom Tromey <tom@tromey.com>
3578
3579 * quick-symbol.h (struct quick_symbol_functions)
3580 <relocated>: New method.
3581 * psymtab.h (struct psymbol_functions) <relocated>: New
3582 method.
3583 <fill_psymbol_map>: Declare method.
3584 <m_psymbol_map>: New member.
3585 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3586 (psymbol_functions::find_compunit_symtab_by_address): Update.
3587 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3588 (struct objfile) <psymbol_map>: Remove.
3589 * objfiles.c (objfile_relocate1): Update.
3590
39298a5d
TT
35912021-03-20 Tom Tromey <tom@tromey.com>
3592
3593 * psympriv.h (struct psymbol_functions): New.
3594 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3595 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3596 (objfile::lookup_global_symbol_language): Update.
3597 * quick-symbol.h (struct quick_symbol_functions): Convert function
3598 pointers to methods. Add virtual destructor.
3599 (quick_symbol_functions_up): New typedef.
3600 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3601 (dwarf2_debug_names_functions): Don't declare.
3602 (make_psymbol_functions): Declare.
3603 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3604 (psymbol_functions::find_pc_sect_compunit_symtab)
3605 (psymbol_functions::lookup_symbol)
3606 (psymbol_functions::lookup_global_symbol_language)
3607 (psymbol_functions::find_last_source_symtab)
3608 (psymbol_functions::forget_cached_source_info)
3609 (psymbol_functions::print_stats, psymbol_functions::dump)
3610 (psymbol_functions::expand_symtabs_for_function)
3611 (psymbol_functions::expand_all_symtabs)
3612 (psymbol_functions::expand_symtabs_with_fullname)
3613 (psymbol_functions::map_symbol_filenames)
3614 (psymbol_functions::map_matching_symbols)
3615 (psymbol_functions::expand_symtabs_matching)
3616 (psymbol_functions::has_symbols)
3617 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3618 (psym_functions): Remove.
3619 (make_psymbol_functions): New function.
3620 * objfiles.h (struct objfile) <qf>: Change type.
3621 * elfread.c (elf_symfile_read): Update.
3622 * dwarf2/read.c (struct dwarf2_base_index_functions)
3623 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3624 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3625 (dwarf2_base_index_functions::find_last_source_symtab)
3626 (dwarf2_base_index_functions::forget_cached_source_info)
3627 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3628 (dwarf2_gdb_index::lookup_symbol)
3629 (dwarf2_base_index_functions::print_stats)
3630 (dwarf2_gdb_index::dump)
3631 (dwarf2_gdb_index::expand_symtabs_for_function)
3632 (dwarf2_base_index_functions::expand_all_symtabs)
3633 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3634 Rename.
3635 (dwarf2_gdb_index::map_matching_symbols): New method.
3636 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3637 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3638 (dwarf2_base_index_functions::map_symbol_filenames)
3639 (dwarf2_base_index_functions::has_symbols): Rename.
3640 (dwarf2_gdb_index_functions): Remove.
3641 (dwarf2_debug_names_index::lookup_symbol)
3642 (dwarf2_debug_names_index::dump)
3643 (dwarf2_debug_names_index::expand_symtabs_for_function)
3644 (dwarf2_debug_names_index::map_matching_symbols)
3645 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3646 (dwarf2_debug_names_functions): Remove.
3647 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3648 Declare.
3649
5c3f1e5b
TT
36502021-03-20 Tom Tromey <tom@tromey.com>
3651
3652 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3653 null.
3654 * xcoffread.c (xcoff_sym_fns): Update.
3655 * symfile.h (struct sym_fns) <qf>: Remove.
3656 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3657 * symfile-debug.c (objfile::has_partial_symbols)
3658 (objfile::find_last_source_symtab)
3659 (objfile::forget_cached_source_info)
3660 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3661 (objfile::print_stats, objfile::dump)
3662 (objfile::expand_symtabs_for_function)
3663 (objfile::expand_all_symtabs)
3664 (objfile::expand_symtabs_with_fullname)
3665 (objfile::map_matching_symbols)
3666 (objfile::expand_symtabs_matching)
3667 (objfile::find_pc_sect_compunit_symtab)
3668 (objfile::map_symbol_filenames)
3669 (objfile::find_compunit_symtab_by_address)
3670 (objfile::lookup_global_symbol_language, debug_sym_fns)
3671 (install_symfile_debug_logging): Update.
3672 * objfiles.h (struct objfile) <qf>: New member.
3673 * mipsread.c (ecoff_sym_fns): Update.
3674 * machoread.c (macho_sym_fns): Update.
3675 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3676 Don't declare.
3677 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3678 * dbxread.c (aout_sym_fns): Update.
3679 * coffread.c (coff_sym_fns): Update.
3680
9b99dcc8
TT
36812021-03-20 Tom Tromey <tom@tromey.com>
3682
3683 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3684 (expand_symtabs_file_matcher_ftype)
3685 (expand_symtabs_symbol_matcher_ftype)
3686 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3687 Move to quick-symbol.h.
3688 * quick-symbol.h: New file.
3689
4d080b46
TT
36902021-03-20 Tom Tromey <tom@tromey.com>
3691
3692 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3693 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3694 (basic_lookup_transparent_type_quick)
3695 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3696 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3697 Update.
3698 * symmisc.c (print_objfile_statistics, dump_objfile)
3699 (maintenance_expand_symtabs): Update.
3700 * symfile.c (symbol_file_add_with_addrs)
3701 (expand_symtabs_matching, map_symbol_filenames): Update.
3702 * symfile-debug.c (objfile::has_partial_symbols)
3703 (objfile::find_last_source_symtab)
3704 (objfile::forget_cached_source_info)
3705 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3706 (objfile::print_stats, objfile::dump)
3707 (objfile::expand_symtabs_for_function)
3708 (objfile::expand_all_symtabs)
3709 (objfile::expand_symtabs_with_fullname)
3710 (objfile::map_matching_symbols)
3711 (objfile::expand_symtabs_matching)
3712 (objfile::find_pc_sect_compunit_symtab)
3713 (objfile::map_symbol_filenames)
3714 (objfile::find_compunit_symtab_by_address)
3715 (objfile::lookup_global_symbol_language): New methods.
3716 (debug_sym_quick_functions): Remove.
3717 (debug_sym_fns, install_symfile_debug_logging): Update.
3718 * source.c (forget_cached_source_info_for_objfile)
3719 (select_source_symtab): Update.
3720 * objfiles.h (struct objfile): Add methods corresponding to
3721 quick_symbol_functions.
3722 * objfiles.c (objfile::has_partial_symbols): Move to
3723 symfile-debug.c.
3724 * linespec.c (iterate_over_all_matching_symtabs): Update.
3725 * cp-support.c (add_symbol_overload_list_qualified): Update.
3726 * ada-lang.c (add_nonlocal_symbols): Update.
3727
fae2120b
TT
37282021-03-20 Tom Tromey <tom@tromey.com>
3729
3730 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3731 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3732 bool.
3733 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3734 * psymtab.c (psym_has_symbols): Return bool.
3735 * objfiles.c (objfile::has_partial_symbols): Return bool.
3736 * dwarf2/read.c (dw2_has_symbols): Return bool.
3737
a8ad4f3c
TT
37382021-03-20 Tom Tromey <tom@tromey.com>
3739
3740 * symfile.c (read_symbols): Update.
3741 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3742 (objfile_has_partial_symbols): Don't declare.
3743 * objfiles.c (objfile::has_partial_symbols): Rename from
3744 objfile_has_partial_symbols.
3745 (objfile_has_symbols, have_partial_symbols): Update.
3746 * elfread.c (elf_symfile_read): Update.
3747 * dwarf2/read.c (dwarf2_has_info): Update.
3748 * coffread.c (coff_symfile_read): Update.
3749
70182375
TT
37502021-03-20 Tom Tromey <tom@tromey.com>
3751
3752 * coffread.c: Include dwarf2/public.h.
3753 * dwarf2/frame.c: Include dwarf2/public.h.
3754 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3755 * dwarf2/public.h: New file.
3756 * dwarf2/read.c: Include dwarf2/public.h.
3757 * elfread.c: Include dwarf2/public.h.
3758 * machoread.c: Include dwarf2/public.h.
3759 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3760 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3761 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3762 * xcoffread.c: Include dwarf2/public.h.
3763
18038e63
TT
37642021-03-20 Tom Tromey <tom@tromey.com>
3765
3766 * symfile.h (enum dwarf2_section_enum)
3767 (dwarf2_get_section_info): Move to dwarf2/read.h.
3768 * dwarf2/read.h (enum dwarf2_section_enum)
3769 (dwarf2_get_section_info): Move from symfile.h.
3770
219f56b4
PA
37712021-03-19 Pedro Alves <pedro@palves.net>
3772
3773 * thread.c (any_thread_of_inferior): Check if there's a selected
3774 thread before calling inferior_thread().
3775
15310fd4
TT
37762021-03-18 Tom Tromey <tromey@adacore.com>
3777
3778 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3779 get_DW_UT_name.
3780 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3781 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3782
763b8efd
AB
37832021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3784
3785 * python/py-param.c (get_set_value): Update header comment.
3786
f058c521
SM
37872021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3788
3789 * infrun.c (check_multi_target_resumption): Remove argument to
3790 all_non_exited_inferiors.
3791
383228bc
CB
37922021-03-16 Christian Biesinger <cbiesinger@google.com>
3793
3794 * windows-nat.c (windows_init_thread_list): Add message to
3795 debug log.
3796
7807d76a
AB
37972021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3800 well as PyLong_Check for Python 2.
3801
675da9a5
TT
38022021-03-15 Tom Tromey <tromey@adacore.com>
3803
3804 PR build/27579:
3805 * rust-exp.y (maker_map): Use gdb::hash_enum.
3806 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3807
4800761a
SM
38082021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3809
3810 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3811 end of debug print.
3812
eb5dd737
SM
38132021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3814
3815 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3816 parameter, adjust caller.
3817
6813ceb0
TT
38182021-03-15 Tom Tromey <tromey@adacore.com>
3819
3820 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3821
3b5c4de0
TT
38222021-03-15 Tom Tromey <tromey@adacore.com>
3823
3824 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3825 ada_ensure_varsize_limit.
3826
c04da66c
TT
38272021-03-15 Tom Tromey <tromey@adacore.com>
3828
3829 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3830 fixed-point.
3831 * ada-exp.y (maybe_overload): New function.
3832 (ada_wrap_overload): New function.
3833 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3834 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3835 (or_else_exp, xor_exp, primary): Update.
3836
9863c3b5
TT
38372021-03-15 Tom Tromey <tromey@adacore.com>
3838
3839 PR ada/27545:
3840 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3841 call for tagged type.
3842
1ac74522
TT
38432021-03-15 Tom Tromey <tromey@adacore.com>
3844
3845 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3846 assignment.
3847
207582c0
TT
38482021-03-15 Tom Tromey <tromey@adacore.com>
3849
3850 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3851 container.
3852 (ada_assign_operation::evaluate): Update.
3853 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3854 Change return type.
3855
8d624a9d
FW
38562021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3857
3858 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3859
ba6a0ef3
AB
38602021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3861
3862 * python/python.c (gdbpy_source_objfile_script): Use
3863 make_scoped_restore to restore gdbpy_current_objfile.
3864 (gdbpy_execute_objfile_script): Likewise.
3865
7c290a04
TT
38662021-03-14 Tom Tromey <tom@tromey.com>
3867
3868 * dwarf2/read.c (read_attribute_value): Use cu_header
3869 consistently.
3870
0280fdcc
TT
38712021-03-14 Tom Tromey <tom@tromey.com>
3872
3873 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3874 (peek_die_abbrev): Use reader.abfd.
3875
a9f172c6
TT
38762021-03-14 Tom Tromey <tom@tromey.com>
3877
3878 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3879 m_header_read_in.
3880
7c32eebb
TT
38812021-03-13 Tom Tromey <tom@tromey.com>
3882
3883 * dwarf2/read.c (struct partial_die_info): Update.
3884 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3885 (load_partial_dies, partial_die_info::partial_die_info): Update.
3886 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3887
27012aba
TT
38882021-03-13 Tom Tromey <tom@tromey.com>
3889
3890 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3891
fece451c
CB
38922021-03-12 Christian Biesinger <cbiesinger@google.com>
3893
3894 PR threads/27239
3895 * cp-support.c: Use scoped_segv_handler_restore.
3896 * event-top.c (thread_local_segv_handler): Made static.
3897 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3898 New function.
3899 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3900 function.
3901 * event-top.h (class scoped_segv_handler_restore): New class.
3902 (thread_local_segv_handler): Removed.
3903
7056f312
TT
39042021-03-10 Tom Tromey <tromey@adacore.com>
3905
3906 * parser-defs.h (parser_state): Change completion to bool.
3907 <parse_completion>: Likewise.
3908 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3909 (ada_resolve_variable, ada_resolve_function): Update.
3910 * ada-lang.c (ada_find_operator_symbol): Change
3911 parse_completion to bool.
3912 (ada_resolve_funcall, ada_resolve_variable)
3913 (ada_resolve_function): Likewise.
3914
ccdc02ed
TT
39152021-03-09 Tom Tromey <tromey@adacore.com>
3916
3917 * eval.c (operation::evaluate_funcall): Use function formal
3918 parameter types when evaluating.
3919
fbb1aace
AB
39202021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3921
3922 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3923 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3924 and owner to m_owner.
3925
611aa09d
FW
39262021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3927
3928 * f-exp.h (eval_op_f_loc): Declare.
3929 (expr::fortran_loc_operation): New typedef.
3930 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3931 UNOP_INTRINSIC.
3932 (f77_keywords): Add LOC keyword.
3933 * f-lang.c (eval_op_f_loc): New function.
3934 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3935
eef32f59
AB
39362021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3937
3938 * f-exp.h (eval_op_f_array_shape): Declare.
3939 (fortran_array_shape_operation): New type.
3940 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3941 UNOP_INTRINSIC.
3942 (f77_keywords): Add "shape" keyword.
3943 * f-lang.c (fortran_array_shape): New function.
3944 (eval_op_f_array_shape): New function.
3945 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3946
7ba155b3
AB
39472021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3948
3949 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3950 of this function.
3951 (expr::fortran_array_size_1arg): New type.
3952 (expr::fortran_array_size_2arg): Likewise.
3953 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3954 UNOP_OR_BINOP_INTRINSIC.
3955 (f77_keywords): Add "size" keyword.
3956 * f-lang.c (fortran_array_size): New function.
3957 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3958 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3959
e14816a8
AB
39602021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3961
3962 * f-exp.h (eval_op_f_rank): Declare.
3963 (expr::fortran_rank_operation): New typedef.
3964 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3965 UNOP_INTRINSIC.
3966 (f77_keywords): Add "rank" keyword.
3967 * f-lang.c (eval_op_f_rank): New function.
3968 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3969
3dd93bf8
TT
39702021-03-08 Tom Tromey <tom@tromey.com>
3971
3972 * printcmd.c (set_command): Remove null check.
3973 * value.c (init_if_undefined_command): Remove null check.
3974
9c79936b
TT
39752021-03-08 Tom Tromey <tom@tromey.com>
3976
3977 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3978 Update.
3979 * p-exp.y (variable): Update.
3980 * go-exp.y (variable): Update.
3981 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3982 Remove overload for objfile.
3983 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3984 parameter.
3985 (check_objfile): Likewise.
3986 (dump_for_expression): Likewise. Remove overload for objfile.
3987 (class var_msym_value_operation): Use bound_minimal_symbol.
3988 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3989 parameter.
3990 (var_msym_value_operation::evaluate_for_address)
3991 (var_msym_value_operation::evaluate_for_sizeof)
3992 (var_msym_value_operation::evaluate_for_cast): Update.
3993 * d-exp.y (PrimaryExpression): Update.
3994 * c-exp.y (variable): Update.
3995 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3996 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3997 Update.
3998 * ada-exp.y (write_var_or_type): Update.
3999
40d07d07
TT
40002021-03-08 Tom Tromey <tom@tromey.com>
4001
4002 * parser-defs.h (exp_uses_objfile): Return bool.
4003 * parse.c (exp_uses_objfile): Return bool.
4004
0b2b0b82
TT
40052021-03-08 Tom Tromey <tom@tromey.com>
4006
4007 * value.h (eval_skip_value): Don't declare.
4008 * opencl-lang.c (eval_opencl_assign): Update.
4009 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
4010 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4011 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
4012 * expression.h (enum noside) <EVAL_SKIP>: Remove.
4013 * expop.h (typeof_operation::evaluate)
4014 (decltype_operation::evaluate, unop_addr_operation::evaluate)
4015 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
4016 (cxx_cast_operation::evaluate): Update.
4017 * eval.c (eval_skip_value): Remove.
4018 (eval_op_scope, eval_op_var_entry_value)
4019 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
4020 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
4021 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
4022 (eval_op_binary, eval_op_subscript, eval_op_equal)
4023 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
4024 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
4025 (eval_op_complement, eval_op_lognot, eval_op_ind)
4026 (eval_op_memval, eval_op_preinc, eval_op_predec)
4027 (eval_op_postinc, eval_op_postdec, eval_op_type)
4028 (eval_binop_assign_modify, eval_op_objc_msgcall)
4029 (eval_multi_subscript, logical_and_operation::evaluate)
4030 (logical_or_operation::evaluate, array_operation::evaluate)
4031 (operation::evaluate_for_cast)
4032 (var_msym_value_operation::evaluate_for_cast)
4033 (var_value_operation::evaluate_for_cast): Update.
4034 * c-lang.c (c_string_operation::evaluate): Update.
4035 * c-exp.h (objc_nsstring_operation::evaluate)
4036 (objc_selector_operation::evaluate): Update.
4037 * ada-lang.c (ada_assign_operation::evaluate)
4038 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4039 (ada_atr_size): Update.
4040
96db551d
TT
40412021-03-08 Tom Tromey <tom@tromey.com>
4042
4043 * eval.c: Merge "namespace" scopes.
4044
ce284361
TT
40452021-03-08 Tom Tromey <tom@tromey.com>
4046
4047 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4048 <release>: Inline.
4049 * parse.c (expr_builder::expr_builder, expr_builder::release):
4050 Remove.
4051
b9d06571
TT
40522021-03-08 Tom Tromey <tom@tromey.com>
4053
4054 * parse.c (expression::expression, expression::~expression):
4055 Remove.
4056 * expression.h (struct expression): Inline constructor. Remove
4057 destructor.
4058
79ab486e
TT
40592021-03-08 Tom Tromey <tom@tromey.com>
4060
4061 * std-operator.def (BINOP_END): Remove.
4062 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4063 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4064 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4065 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4066 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4067 BINOP_END.
4068
48fa6f23
TT
40692021-03-08 Tom Tromey <tom@tromey.com>
4070
4071 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4072
43f542e3
TT
40732021-03-08 Tom Tromey <tom@tromey.com>
4074
4075 * std-operator.def (OP_EXTENDED0): Remove.
4076
5d9ba982
TT
40772021-03-08 Tom Tromey <tom@tromey.com>
4078
4079 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4080 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4081 Remove.
4082
d357570d
TT
40832021-03-08 Tom Tromey <tom@tromey.com>
4084
4085 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4086 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4087
0922dc84
TT
40882021-03-08 Tom Tromey <tom@tromey.com>
4089
4090 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4091 * ada-lang.c (ada_binop_minmax): Update.
4092 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4093 Use BINOP_MIN and BINOP_MAX.
4094
1eaebe02
TT
40952021-03-08 Tom Tromey <tom@tromey.com>
4096
4097 * value.h (evaluate_subexp_with_coercion): Don't declare.
4098 * parse.c (exp_descriptor_standard): Remove.
4099 (expr_builder::expr_builder, expr_builder::release): Update.
4100 (expression::expression): Remove size_t parameter.
4101 (expression::~expression): Simplify.
4102 (expression::resize): Remove.
4103 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4104 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4105 (write_exp_elt_longcst, write_exp_elt_floatcst)
4106 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4107 (write_exp_string_vector, write_exp_bitstring): Remove.
4108 * p-lang.h (class pascal_language) <opcode_print_table,
4109 op_print_tab>: Remove.
4110 * p-lang.c (pascal_language::op_print_tab): Remove.
4111 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4112 Remove.
4113 * objc-lang.c (objc_op_print_tab): Remove.
4114 (class objc_language) <opcode_print_table>: Remove.
4115 * m2-lang.h (class m2_language) <opcode_print_table,
4116 op_print_tab>: Remove.
4117 * m2-lang.c (m2_language::op_print_tab): Remove.
4118 * language.h (struct language_defn) <post_parser, expression_ops,
4119 opcode_print_table>: Remove.
4120 * language.c (language_defn::expression_ops)
4121 (auto_or_unknown_language::opcode_print_table): Remove.
4122 * go-lang.h (class go_language) <opcode_print_table,
4123 op_print_tab>: Remove.
4124 * go-lang.c (go_language::op_print_tab): Remove.
4125 * f-lang.h (class f_language) <opcode_print_table>: Remove
4126 <op_print_tab>: Remove.
4127 * f-lang.c (f_language::op_print_tab): Remove.
4128 * expression.h (union exp_element): Remove.
4129 (struct expression): Remove size_t parameter from constructor.
4130 <resize>: Remove.
4131 <first_opcode>: Update.
4132 <nelts, elts>: Remove.
4133 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4134 (evaluate_subexp_standard, print_expression, op_string)
4135 (dump_raw_expression): Don't declare.
4136 * expprint.c (print_expression, print_subexp)
4137 (print_subexp_funcall, print_subexp_standard, op_string)
4138 (dump_raw_expression, dump_subexp, dump_subexp_body)
4139 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4140 (dump_prefix_expression): Update.
4141 * eval.c (evaluate_subexp): Remove.
4142 (evaluate_expression, evaluate_type): Update.
4143 (evaluate_subexpression_type): Remove.
4144 (fetch_subexp_value): Remove "pc" parameter. Update.
4145 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4146 (evaluate_subexp_standard, evaluate_subexp_for_address)
4147 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4148 (evaluate_subexp_for_cast): Remove.
4149 (parse_and_eval_type): Update.
4150 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4151 * d-lang.c (d_op_print_tab): Remove.
4152 (class d_language) <opcode_print_table>: Remove.
4153 * c-lang.h (c_op_print_tab): Don't declare.
4154 * c-lang.c (c_op_print_tab): Remove.
4155 (class c_language, class cplus_language, class asm_language, class
4156 minimal_language) <opcode_print_table>: Remove.
4157 * breakpoint.c (update_watchpoint, watchpoint_check)
4158 (watchpoint_exp_is_const, watch_command_1): Update.
4159 * ax-gdb.h (union exp_element): Don't declare.
4160 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4161 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4162 (gen_expr_binop_rest): Remove.
4163 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4164 * ada-lang.c (ada_op_print_tab): Remove.
4165 (class ada_language) <post_parser, opcode_print_table>: Remove.
4166
f2a98603
TT
41672021-03-08 Tom Tromey <tom@tromey.com>
4168
4169 * go-lang.c (go_language::expression_ops): Don't declare.
4170 * go-lang.h (class go_language) <expression_ops>: Remove.
4171 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4172 Remove.
4173 (class opencl_language) <expression_ops>: Remove.
4174 * d-lang.c (class d_language) <expression_ops>: Remove.
4175 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4176 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4177 (class c_language, class cplus_language, class asm_language)
4178 (class minimal_language) <expression_ops>: Remove.
4179
d3c54a1c
TT
41802021-03-08 Tom Tromey <tom@tromey.com>
4181
4182 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4183 (evaluate_subexp_type, assign_aggregate)
4184 (aggregate_assign_positional, aggregate_assign_from_choices)
4185 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4186 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4187 (ada_operator_check, ada_forward_operator_length)
4188 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4189 Remove.
4190 (post_parser): Update.
4191 (class ada_language) <expresssion_ops>: Remove.
4192
5871f0a3
TT
41932021-03-08 Tom Tromey <tom@tromey.com>
4194
4195 * m2-lang.h (class m2_language) <expresssion_ops,
4196 exp_descriptor_modula2>: Remove.
4197 * m2-lang.c (evaluate_subexp_modula2)
4198 (m2_language::exp_descriptor_modula2): Remove.
4199
a99be8c1
TT
42002021-03-08 Tom Tromey <tom@tromey.com>
4201
4202 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4203 <exp_descriptor_tab>: Remove.
4204 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4205 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4206 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4207 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4208 Remove.
4209
aa1da9ed
TT
42102021-03-08 Tom Tromey <tom@tromey.com>
4211
4212 * rust-lang.h (class rust_language) <expression_ops,
4213 exp_descriptor_tab>: Remove.
4214 * rust-lang.c (rust_evaluate_funcall): Remove.
4215 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4216 EVAL_SKIP.
4217 (rust_evaluate_subexp): Remove.
4218 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4219 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4220 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4221
08a057e6
TT
42222021-03-08 Tom Tromey <tom@tromey.com>
4223
4224 * ada-exp.y: Create operations.
4225 (empty_stoken): Remove.
4226 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4227 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4228 (components): New global.
4229 (push_component, choice_component, pop_component, pop_components):
4230 New functions.
4231 (associations): New global
4232 (push_association, pop_association, pop_associations): New
4233 functions.
4234 (ada_parse): Update.
4235 (write_var_from_sym, write_int): Create operations.
4236 (write_exp_op_with_string): Remove.
4237 (write_object_renaming, write_selectors, write_ambiguous_var)
4238 (write_var_or_type, write_name_assoc): Create operations.
4239 * ada-lang.h (ada_index_type): Declare.
4240 * ada-lang.c (ada_index_type): No longer static.
4241
d308ba78
TT
42422021-03-08 Tom Tromey <tom@tromey.com>
4243
4244 * f-exp.y: Create operations.
4245 (f_language::parser): Update.
4246
f1b8ceef
TT
42472021-03-08 Tom Tromey <tom@tromey.com>
4248
4249 * m2-exp.y: Create operations.
4250 (m2_language::parser): Update.
4251
3163898e
TT
42522021-03-08 Tom Tromey <tom@tromey.com>
4253
4254 * p-exp.y: Create operations.
4255 (pascal_language::parser): Update.
4256
9412fdcc
TT
42572021-03-08 Tom Tromey <tom@tromey.com>
4258
4259 * d-exp.y: Create operations.
4260 (d_parse): Update.
4261
bb4e0574
TT
42622021-03-08 Tom Tromey <tom@tromey.com>
4263
4264 * go-exp.y: Create operations.
4265 (go_language::parser): Update.
4266
d182f279
TT
42672021-03-08 Tom Tromey <tom@tromey.com>
4268
4269 * objc-lang.c (end_msglist): Create operations.
4270 * c-exp.y: Change parser to create operations.
4271 (write_destructor_name): Remove.
4272 (c_parse): Update.
4273
c1299a23
TT
42742021-03-08 Tom Tromey <tom@tromey.com>
4275
4276 * rust-exp.y: Create operations.
4277 (rust_parser::convert_params_to_expression): Change return type.
4278 (binop_maker_ftype): New typedef.
4279 (maker_map): New global.
4280 (rust_parser::convert_ast_to_expression): Change return type.
4281 (rust_language::parser): Update.
4282 (_initialize_rust_exp): Initialize maker_map.
4283
4c5e7a93
TT
42842021-03-08 Tom Tromey <tom@tromey.com>
4285
4286 * stap-probe.c (binop_maker_ftype): New typedef.
4287 (stap_maker_map): New global.
4288 (stap_make_binop): New function.
4289 (stap_parse_register_operand): Return operation_up.
4290 (stap_parse_single_operand, stap_parse_argument_conditionally)
4291 (stap_parse_argument_1): Likewise.
4292 (stap_parse_argument): Create operations.
4293 (stap_probe::parse_arguments): Update.
4294 (_initialize_stap_probe): Initialize stap_maker_map.
4295 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4296 type.
4297 * i386-tdep.h (i386_stap_parse_special_token): Change return
4298 type.
4299 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4300 (i386_stap_parse_special_token_three_arg_disp)
4301 (i386_stap_parse_special_token): Change return type.
4302 * gdbarch.sh (stap_parse_special_token): Change return type.
4303 * gdbarch.c: Rebuild.
4304 * gdbarch.h: Rebuild.
4305 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4306 type.
4307 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4308 return type.
4309
482ddd69
TT
43102021-03-08 Tom Tromey <tom@tromey.com>
4311
4312 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4313 * gdbarch.h: Rebuild.
4314 * gdbarch.c: Rebuild.
4315 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4316 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4317 return type.
4318 (amd64_dtrace_parse_probe_argument): Update.
4319
8227d9e2
TT
43202021-03-08 Tom Tromey <tom@tromey.com>
4321
4322 * parser-defs.h (struct parser_state) <push, push_new,
4323 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4324 wrap2>: New methods.
4325 <m_operations>: New member.
4326 * parse.c (parser_state::push_c_string)
4327 (parser_state::push_symbol, parser_state::push_dollar): New
4328 methods.
4329
4933522d
TT
43302021-03-08 Tom Tromey <tom@tromey.com>
4331
4332 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4333 New member.
4334 (struct parser_state) <mark_struct_expression>: New method.
4335 * parse.c (parser_state::mark_struct_expression): Update assert.
4336 (parser_state::mark_struct_expression): New method.
4337 (parser_state::mark_completion_tag): Update assert.
4338 (parse_expression_for_completion): Handle expout_last_op.
4339
413403fc
TT
43402021-03-08 Tom Tromey <tom@tromey.com>
4341
4342 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4343 now in superclass.
4344 * value.h (fetch_subexp_value): Add "op" parameter.
4345 * value.c (init_if_undefined_command): Update.
4346 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4347 * stap-probe.c (stap_probe::compile_to_ax): Update.
4348 * printcmd.c (set_command): Update.
4349 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4350 Update.
4351 * parser-defs.h (struct expr_builder) <set_operation>: New
4352 method.
4353 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4354 * expression.h (struct expression) <first_opcode>: Update.
4355 <op>: New member.
4356 * expprint.c (dump_raw_expression, dump_prefix_expression):
4357 Update.
4358 * expop.h (class var_value_operation) <get_symbol>: New method.
4359 (class register_operation) <get_name>: New method.
4360 (class equal_operation): No longer a typedef, now a subclass.
4361 (class unop_memval_operation) <get_type>: New method.
4362 (class assign_operation) <get_lhs>: New method.
4363 (class unop_cast_operation) <get_type>: New method.
4364 * eval.c (evaluate_expression, evaluate_type)
4365 (evaluate_subexpression_type): Update.
4366 (fetch_subexp_value): Add "op" parameter.
4367 (parse_and_eval_type): Update.
4368 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4369 * breakpoint.c (update_watchpoint, watchpoint_check)
4370 (watchpoint_exp_is_const, watch_command_1): Update.
4371 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4372 Update.
4373
b0f9164c
TT
43742021-03-08 Tom Tromey <tom@tromey.com>
4375
4376 * ada-lang.c (ada_value_binop): Do not use op_string.
4377
a88c4354
TT
43782021-03-08 Tom Tromey <tom@tromey.com>
4379
4380 * expprint.c (dump_for_expression): New overload.
4381 * expop.h (check_objfile, dump_for_expression): Declare new
4382 overloads.
4383 * ada-lang.c (check_objfile): New overload.
4384 (assign_component, ada_aggregate_component::uses_objfile)
4385 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4386 (ada_aggregate_component::assign_aggregate)
4387 (ada_positional_component::uses_objfile)
4388 (ada_positional_component::dump, ada_positional_component::assign)
4389 (ada_discrete_range_association::uses_objfile)
4390 (ada_discrete_range_association::dump)
4391 (ada_discrete_range_association::assign)
4392 (ada_name_association::uses_objfile, ada_name_association::dump)
4393 (ada_name_association::assign)
4394 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4395 (ada_choices_component::assign)
4396 (ada_others_component::uses_objfile, ada_others_component::dump)
4397 (ada_others_component::assign, ada_assign_operation::evaluate):
4398 New methods.
4399 * ada-exp.h (ada_string_operation) <get_name>: New method.
4400 (class ada_assign_operation): New.
4401 (class ada_component): New.
4402 (ada_component_up): New typedef.
4403 (class ada_aggregate_operation, class ada_aggregate_component)
4404 (class ada_positional_component, class ada_others_component)
4405 (class ada_association): New.
4406 (ada_association_up): New typedef.
4407 (class ada_choices_component)
4408 (class ada_discrete_range_association)
4409 (class ada_name_association): New.
4410
d8a4ed8a
TT
44112021-03-08 Tom Tromey <tom@tromey.com>
4412
4413 * ada-lang.c (ada_var_value_operation::resolve)
4414 (ada_funcall_operation::resolve)
4415 (ada_ternop_slice_operation::resolve): New methods.
4416 * ada-exp.h (struct ada_resolvable): New.
4417 (class ada_var_value_operation): Derive from ada_resolvable.
4418 <get_block, resolve>: New methods.
4419 (class ada_funcall_operation): Derive from ada_resolvable.
4420 <resolve>: New method.
4421 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4422 <resolve>: New method.
4423
efe3af2f
TT
44242021-03-08 Tom Tromey <tom@tromey.com>
4425
4426 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4427 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4428 method.
4429 (class ada_funcall_operation): New.
4430
ebc06ad8
TT
44312021-03-08 Tom Tromey <tom@tromey.com>
4432
4433 * ada-lang.c (ada_structop_operation::evaluate): New method.
4434 * ada-exp.h (class ada_structop_operation): New.
4435
e8c33fa1
TT
44362021-03-08 Tom Tromey <tom@tromey.com>
4437
4438 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4439 * ada-exp.h (class ada_unop_ind_operation): New.
4440
065ec826
TT
44412021-03-08 Tom Tromey <tom@tromey.com>
4442
4443 * ada-lang.c (ada_binop_exp): No longer static.
4444 * ada-exp.h (ada_binop_exp_operation): New typedef.
4445
9e99f48f
TT
44462021-03-08 Tom Tromey <tom@tromey.com>
4447
4448 * ada-lang.c (ada_val_atr): No longer static.
4449 (ada_atr_val_operation::evaluate): New method.
4450 * ada-exp.h (class ada_atr_val_operation): New.
4451
7631cf6c
TT
44522021-03-08 Tom Tromey <tom@tromey.com>
4453
4454 * ada-lang.c (ada_pos_atr): No longer static.
4455 * ada-exp.h (ada_pos_operation): New typedef.
4456
7992accc
TT
44572021-03-08 Tom Tromey <tom@tromey.com>
4458
4459 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4460 parameters.
4461 (ada_evaluate_subexp): Use it.
4462
6ad3b8bf
TT
44632021-03-08 Tom Tromey <tom@tromey.com>
4464
4465 * ada-lang.c (ada_binop_minmax): No longer static.
4466 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4467 New typedefs.
4468
3f4a0053
TT
44692021-03-08 Tom Tromey <tom@tromey.com>
4470
4471 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4472 New method.
4473 * ada-exp.h (class ada_var_msym_value_operation): New.
4474
99a3b1e7
TT
44752021-03-08 Tom Tromey <tom@tromey.com>
4476
4477 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4478 (ada_var_value_operation::evaluate): New methods.
4479 * ada-exp.h (class ada_var_value_operation): New.
4480
60fa02ca
TT
44812021-03-08 Tom Tromey <tom@tromey.com>
4482
4483 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4484 * ada-exp.h (class ada_unop_atr_operation): New.
4485
82c3886e
TT
44862021-03-08 Tom Tromey <tom@tromey.com>
4487
4488 * ada-lang.c (ada_binop_in_bounds): No longer static.
4489 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4490
1b1ebfab
TT
44912021-03-08 Tom Tromey <tom@tromey.com>
4492
4493 * ada-lang.c (ada_ternop_slice): No longer static.
4494 * ada-exp.h (class ada_ternop_slice_operation): New.
4495
039e4b76
TT
44962021-03-08 Tom Tromey <tom@tromey.com>
4497
4498 * ada-exp.h (ada_bitwise_operation): New template class.
4499 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4500 (ada_bitwise_xor_operation): New typedefs.
4501
6e8fb7b7
TT
45022021-03-08 Tom Tromey <tom@tromey.com>
4503
4504 * ada-lang.c (ada_equal_binop): No longer static.
4505 * ada-exp.h (class ada_binop_equal_operation): New.
4506
d9e7db06
TT
45072021-03-08 Tom Tromey <tom@tromey.com>
4508
4509 * ada-lang.c (ada_mult_binop): No longer static.
4510 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4511 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4512
73796c73
TT
45132021-03-08 Tom Tromey <tom@tromey.com>
4514
4515 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4516 * ada-exp.h (class ada_binop_addsub_operation): New.
4517
cd9a3148
TT
45182021-03-08 Tom Tromey <tom@tromey.com>
4519
4520 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4521 (ada_resolve_variable): Declare.
4522 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4523 (ada_resolve_variable): New functions.
4524 (resolve_subexp): Update.
4525
cf12b17f
TT
45262021-03-08 Tom Tromey <tom@tromey.com>
4527
4528 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4529 method.
4530 * c-exp.h (class opencl_ternop_cond_operation): New.
4531
944fd3b8
TT
45322021-03-08 Tom Tromey <tom@tromey.com>
4533
4534 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4535 method.
4536 * c-exp.h (class opencl_logical_binop_operation): New.
4537
33b79214
TT
45382021-03-08 Tom Tromey <tom@tromey.com>
4539
4540 * opencl-lang.c (opencl_structop_operation::evaluate): New
4541 method.
4542 * c-exp.h (class opencl_structop_operation): New.
4543
2492ba36
TT
45442021-03-08 Tom Tromey <tom@tromey.com>
4545
4546 * opencl-lang.c (opencl_logical_not): No longer static. Change
4547 parameters.
4548 (evaluate_subexp_opencl): Update.
4549 * c-exp.h (opencl_notequal_operation): New typedef.
4550
a88c3c8d
TT
45512021-03-08 Tom Tromey <tom@tromey.com>
4552
4553 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4554 static. Change parameters.
4555 (eval_opencl_assign): No longer static. Add "op" parameter.
4556 (evaluate_subexp_opencl): Update.
4557 * c-exp.h (opencl_binop_operation): New template class.
4558 (opencl_assign_operation, opencl_equal_operation)
4559 (opencl_notequal_operation, opencl_less_operation)
4560 (opencl_gtr_operation, opencl_geq_operation)
4561 (opencl_leq_operation): New typedefs.
4562
e9677704
TT
45632021-03-08 Tom Tromey <tom@tromey.com>
4564
4565 * opencl-lang.c (opencl_value_cast): No longer static.
4566 * c-exp.h (opencl_cast_type_operation): New typedef.
4567
f403a4e4
TT
45682021-03-08 Tom Tromey <tom@tromey.com>
4569
4570 * f-exp.h (eval_op_f_allocated): Declare.
4571 (fortran_allocated_operation): New typedef.
4572 * f-lang.c (eval_op_f_allocated): No longer static.
4573
eb4c9271
TT
45742021-03-08 Tom Tromey <tom@tromey.com>
4575
4576 * f-lang.c (eval_op_f_associated): New functions.
4577 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4578 typedefs.
4579
58a76c72
TT
45802021-03-08 Tom Tromey <tom@tromey.com>
4581
4582 * f-lang.c (fortran_bound_1arg::evaluate)
4583 (fortran_bound_2arg::evaluate): New methods.
4584 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4585 New.
4586
2f98abe1
TT
45872021-03-08 Tom Tromey <tom@tromey.com>
4588
4589 * expop.h (class unop_addr_operation) <get_expression>: New
4590 method.
4591 * f-lang.c (fortran_undetermined::value_subarray)
4592 (fortran_undetermined::evaluate): New methods.
4593 (fortran_prepare_argument): New overload.
4594 * f-exp.h (class fortran_range_operation)
4595 (class fortran_undetermined): New classes.
4596
638fd74a
TT
45972021-03-08 Tom Tromey <tom@tromey.com>
4598
4599 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4600 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4601 method.
4602
a00b7254
TT
46032021-03-08 Tom Tromey <tom@tromey.com>
4604
4605 * expression.h (class operation) <evaluate_funcall>: New methods.
4606 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4607 (class var_value_operation) <evaluate_funcall>: New method.
4608 (class structop_base_operation) <evaluate_funcall>: New method.
4609 (class var_msym_value_operation) <evaluate_funcall>: New method.
4610 (class structop_member_base): New class.
4611 (class structop_member_operation): Derive from
4612 structop_member_base.
4613 (class structop_mptr_operation): Derive from
4614 structop_member_base.
4615 (class funcall_operation): New class.
4616 * eval.c (operation::evaluate_funcall)
4617 (var_value_operation::evaluate_funcall)
4618 (scope_operation::evaluate_funcall)
4619 (structop_member_base::evaluate_funcall)
4620 (structop_base_operation::evaluate_funcall): New methods.
4621
1c02eb30
TT
46222021-03-08 Tom Tromey <tom@tromey.com>
4623
4624 * expop.h (class array_operation): New.
4625 * eval.c (array_operation::evaluate_struct_tuple)
4626 (array_operation::evaluate): New methods.
4627
e4479080
TT
46282021-03-08 Tom Tromey <tom@tromey.com>
4629
4630 * expop.h (class adl_func_operation): New.
4631 * eval.c (adl_func_operation::evaluate): New method.
4632
95d49dfb
TT
46332021-03-08 Tom Tromey <tom@tromey.com>
4634
4635 * ada-lang.c (ada_unop_in_range): No longer static.
4636 * ada-exp.h (class ada_unop_range_operation): New.
4637
7c15d377
TT
46382021-03-08 Tom Tromey <tom@tromey.com>
4639
4640 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4641 No longer static.
4642 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4643 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4644
5019124b
TT
46452021-03-08 Tom Tromey <tom@tromey.com>
4646
4647 * expop.h (class logical_and_operation)
4648 (class logical_or_operation): New.
4649 * eval.c (logical_and_operation::evaluate)
4650 (logical_or_operation::evaluate): New methods.
4651 * ax-gdb.c (logical_and_operation::do_generate_ax)
4652 (logical_or_operation::do_generate_ax): New methods.
4653
2bc9b40c
TT
46542021-03-08 Tom Tromey <tom@tromey.com>
4655
4656 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4657 static.
4658 * m2-exp.h: New file.
4659
5947d337
TT
46602021-03-08 Tom Tromey <tom@tromey.com>
4661
4662 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4663 * rust-exp.h (class rust_aggregate_operation): New.
4664
e4407a20
TT
46652021-03-08 Tom Tromey <tom@tromey.com>
4666
4667 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4668 No longer static.
4669 * rust-exp.h (class rust_struct_anon): New.
4670 (class rust_structop): New.
4671
9db6b6dd
TT
46722021-03-08 Tom Tromey <tom@tromey.com>
4673
4674 * rust-lang.c (rust_range): No longer static.
4675 * rust-exp.h (class rust_range_operation): New.
4676
6ce1ad67
TT
46772021-03-08 Tom Tromey <tom@tromey.com>
4678
4679 * rust-lang.c (rust_subscript): No longer static.
4680 * rust-exp.h (class rust_subscript_operation): New.
4681
11dd3dce
TT
46822021-03-08 Tom Tromey <tom@tromey.com>
4683
4684 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4685 parameter.
4686 (rust_evaluate_subexp): Update.
4687 * rust-exp.h (class rust_unop_ind_operation): New.
4688
6fab4359
TT
46892021-03-08 Tom Tromey <tom@tromey.com>
4690
4691 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4692 longer static. Add "opcode" parameter.
4693 (rust_evaluate_subexp): Update.
4694 * rust-exp.h: New file.
4695
9dcd3e29
TT
46962021-03-08 Tom Tromey <tom@tromey.com>
4697
4698 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4699 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4700 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4701 (evaluate_subexp_f): Update.
4702 * f-exp.h: New file.
4703
fc715eb2
TT
47042021-03-08 Tom Tromey <tom@tromey.com>
4705
4706 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4707 * ada-exp.h (class ada_ternop_range_operation): New.
4708
cc6bd32e
TT
47092021-03-08 Tom Tromey <tom@tromey.com>
4710
4711 * ada-lang.c (ada_qual_operation::evaluate): New method.
4712 * ada-exp.h (class ada_qual_operation): New.
4713
42fecb61
TT
47142021-03-08 Tom Tromey <tom@tromey.com>
4715
4716 * ada-lang.c (ada_string_operation::evaluate): New method.
4717 * ada-exp.h (class ada_string_operation): New.
4718
03070ee9
TT
47192021-03-08 Tom Tromey <tom@tromey.com>
4720
4721 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4722 * ada-exp.h: New file.
4723
821e72d7
TT
47242021-03-08 Tom Tromey <tom@tromey.com>
4725
4726 * expop.h (class multi_subscript_operation): New.
4727 * eval.c (multi_subscript_operation::evaluate): New method.
4728
085734dd
TT
47292021-03-08 Tom Tromey <tom@tromey.com>
4730
4731 * eval.c (objc_msgcall_operation::evaluate): New method.
4732 * c-exp.h (class objc_msgcall_operation): New.
4733
e82a5afc
TT
47342021-03-08 Tom Tromey <tom@tromey.com>
4735
4736 * expop.h (class var_value_operation): New.
4737 * eval.c (var_value_operation::evaluate)
4738 (var_value_operation::evaluate_for_address)
4739 (var_value_operation::evaluate_with_coercion)
4740 (var_value_operation::evaluate_for_sizeof)
4741 (var_value_operation::evaluate_for_cast): New methods.
4742 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4743
d9ad79d8
TT
47442021-03-08 Tom Tromey <tom@tromey.com>
4745
4746 * expop.h (cxx_cast_ftype): New typedef.
4747 (cxx_cast_operation): New template.
4748 (dynamic_cast_operation, reinterpret_cast_operation): New
4749 typedefs.
4750
292382f4
TT
47512021-03-08 Tom Tromey <tom@tromey.com>
4752
4753 * expop.h (class unop_cast_type_operation): New.
4754 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4755 method.
4756
165a813a
TT
47572021-03-08 Tom Tromey <tom@tromey.com>
4758
4759 * expop.h (class unop_cast_operation): New.
4760 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4761
e5946e16
TT
47622021-03-08 Tom Tromey <tom@tromey.com>
4763
4764 * expop.h (class assign_modify_operation): New.
4765 * eval.c (eval_binop_assign_modify): No longer static.
4766 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4767
40786782
TT
47682021-03-08 Tom Tromey <tom@tromey.com>
4769
4770 * expop.h (class assign_operation): New.
4771 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4772
44b675c8
TT
47732021-03-08 Tom Tromey <tom@tromey.com>
4774
4775 * expop.h (class type_instance_operation): New.
4776 * eval.c (type_instance_operation::evaluate): New method.
4777
f6b42326
TT
47782021-03-08 Tom Tromey <tom@tromey.com>
4779
4780 * expop.h (class op_this_operation): New.
4781 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4782
cbc18219
TT
47832021-03-08 Tom Tromey <tom@tromey.com>
4784
4785 * expop.h (class unop_memval_operation)
4786 (class unop_memval_type_operation): New.
4787 * eval.c (eval_op_memval): No longer static.
4788 (unop_memval_operation::evaluate_for_address)
4789 (unop_memval_type_operation::evaluate_for_address)
4790 (unop_memval_operation::evaluate_for_sizeof)
4791 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4792 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4793 (unop_memval_type_operation::do_generate_ax): New methods.
4794
ae4bb61e
TT
47952021-03-08 Tom Tromey <tom@tromey.com>
4796
4797 * expop.h (class unop_alignof_operation): New.
4798 * eval.c (eval_op_alignof): No longer static.
4799
85d23bda
TT
48002021-03-08 Tom Tromey <tom@tromey.com>
4801
4802 * expop.h (class unop_sizeof_operation): New.
4803 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4804
14aff815
TT
48052021-03-08 Tom Tromey <tom@tromey.com>
4806
4807 * expop.h (class unop_addr_operation): New.
4808 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4809
929f3aa7
TT
48102021-03-08 Tom Tromey <tom@tromey.com>
4811
4812 * expop.h (class typeid_operation): New.
4813
0af8829e
TT
48142021-03-08 Tom Tromey <tom@tromey.com>
4815
4816 * expop.h (class decltype_operation): New.
4817
4efc574c
TT
48182021-03-08 Tom Tromey <tom@tromey.com>
4819
4820 * expop.h (class typeof_operation): New.
4821
5b5f5140
TT
48222021-03-08 Tom Tromey <tom@tromey.com>
4823
4824 * expop.h (class type_operation): New.
4825 * eval.c (eval_op_type): No longer static.
4826
876469ff
TT
48272021-03-08 Tom Tromey <tom@tromey.com>
4828
4829 * expop.h (class unop_ind_base_operation)
4830 (class unop_ind_operation): New.
4831 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4832 (unop_ind_base_operation::evaluate_for_address)
4833 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4834 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4835
6d89e296
TT
48362021-03-08 Tom Tromey <tom@tromey.com>
4837
4838 * expop.h (unop_incr_operation): New template.
4839 (preinc_operation, predec_operation, postinc_operation)
4840 (postdec_operation): New typedefs.
4841 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4842 (eval_op_postdec): No longer static.
4843
9307d17b
TT
48442021-03-08 Tom Tromey <tom@tromey.com>
4845
4846 * expop.h (unary_ftype): New typedef.
4847 (unop_operation, usual_ax_binop_operation): New templates.
4848 (unary_plus_operation, unary_neg_operation)
4849 (unary_complement_operation, unary_logical_not_operation): New
4850 typedefs.
4851 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4852 (eval_op_lognot): No longer static.
4853 * ax-gdb.c (gen_expr_unop): New function.
4854
ae64ba58
TT
48552021-03-08 Tom Tromey <tom@tromey.com>
4856
4857 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4858
d4eff4c1
TT
48592021-03-08 Tom Tromey <tom@tromey.com>
4860
4861 * expop.h (class repeat_operation): New.
4862 * eval.c (eval_op_repeat): No longer static. Remove "op"
4863 parameter.
4864 (evaluate_subexp_standard): Update.
4865 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4866
46916f2b
TT
48672021-03-08 Tom Tromey <tom@tromey.com>
4868
4869 * expop.h (class comparison_operation): New.
4870 (equal_operation, notequal_operation, less_operation)
4871 (gtr_operation, geq_operation, leq_operation): New typedefs.
4872 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4873 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4874
224d6424
TT
48752021-03-08 Tom Tromey <tom@tromey.com>
4876
4877 * expop.h (class subscript_operation): New.
4878 * eval.c (eval_op_subscript): No longer static.
4879
373907ff
TT
48802021-03-08 Tom Tromey <tom@tromey.com>
4881
4882 * expop.h (class binop_operation, class usual_ax_binop_operation):
4883 New.
4884 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4885 (div_operation, rem_operation, lsh_operation, rsh_operation)
4886 (bitwise_and_operation, bitwise_ior_operation)
4887 (bitwise_xor_operation): New typedefs.
4888 * eval.c (eval_op_binary): No longer static.
4889
5133d78b
TT
48902021-03-08 Tom Tromey <tom@tromey.com>
4891
4892 * expop.h (class sub_operation): New.
4893 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4894 (evaluate_subexp_standard): Update.
4895
a94323b6
TT
48962021-03-08 Tom Tromey <tom@tromey.com>
4897
4898 * expop.h (class add_operation): New.
4899 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4900 (evaluate_subexp_standard): Update.
4901
e51e26a0
TT
49022021-03-08 Tom Tromey <tom@tromey.com>
4903
4904 * expop.h (class concat_operation): New.
4905 * eval.c (eval_op_concat): No longer static. Remove "op"
4906 parameter.
4907 (evaluate_subexp_standard): Update.
4908
07f724a8
TT
49092021-03-08 Tom Tromey <tom@tromey.com>
4910
4911 * expop.h (class structop_member_operation)
4912 (class structop_mptr_operation): New.
4913 * eval.c (eval_op_member): No longer static.
4914
ab0609be
TT
49152021-03-08 Tom Tromey <tom@tromey.com>
4916
4917 * expop.h (class structop_ptr_operation): New.
4918 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4919 parameter.
4920
808b22cf
TT
49212021-03-08 Tom Tromey <tom@tromey.com>
4922
4923 * expop.h (class structop_base_operation)
4924 (class structop_operation): New.
4925 * eval.c (eval_op_structop_struct): No longer static.
4926
8cfd3e95
TT
49272021-03-08 Tom Tromey <tom@tromey.com>
4928
4929 * expop.h (class complex_operation): New.
4930
09db3700
TT
49312021-03-08 Tom Tromey <tom@tromey.com>
4932
4933 * eval.c (eval_op_objc_selector): No longer static.
4934 * c-exp.h (class objc_selector_operation): New.
4935
06dc61b9
TT
49362021-03-08 Tom Tromey <tom@tromey.com>
4937
4938 * eval.c: Include c-exp.h.
4939 * c-exp.h (class objc_nsstring_operation): New.
4940
72d0a711
TT
49412021-03-08 Tom Tromey <tom@tromey.com>
4942
4943 * c-lang.c (c_string_operation::evaluate): New method.
4944 * c-exp.h: New file.
4945
9186293f
TT
49462021-03-08 Tom Tromey <tom@tromey.com>
4947
4948 * expop.h (class ternop_cond_operation): New.
4949 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4950
1594e0bb
TT
49512021-03-08 Tom Tromey <tom@tromey.com>
4952
4953 * expop.h (class ternop_slice_operation): New.
4954 * eval.c (eval_op_ternop): No longer static.
4955
b50db09f
TT
49562021-03-08 Tom Tromey <tom@tromey.com>
4957
4958 * expop.h (class string_operation): New.
4959 * eval.c (eval_op_string): No longer static.
4960
e6e01e16
TT
49612021-03-08 Tom Tromey <tom@tromey.com>
4962
4963 * expop.h (class internalvar_operation): New.
4964 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4965
e6985c5e
TT
49662021-03-08 Tom Tromey <tom@tromey.com>
4967
4968 * expop.h (class bool_operation): New.
4969
55bdbff8
TT
49702021-03-08 Tom Tromey <tom@tromey.com>
4971
4972 * expop.h (class register_operation): New.
4973 * eval.c (eval_op_register): No longer static.
4974 * ax-gdb.c (register_operation::do_generate_ax): New method.
4975
247d935b
TT
49762021-03-08 Tom Tromey <tom@tromey.com>
4977
4978 * expop.h (class last_operation): New.
4979
17679395
TT
49802021-03-08 Tom Tromey <tom@tromey.com>
4981
4982 * expop.h (class func_static_var_operation): New.
4983 * eval.c (eval_op_func_static_var): No longer static.
4984
b5cc3923
TT
49852021-03-08 Tom Tromey <tom@tromey.com>
4986
4987 * expop.h (class var_entry_value_operation): New.
4988 * eval.c (eval_op_var_entry_value): No longer static.
4989
0c8effa3
TT
49902021-03-08 Tom Tromey <tom@tromey.com>
4991
4992 * expression.h (class operation) <set_outermost>: New method.
4993 * expop.h (class var_msym_value_operation): New.
4994 * eval.c (eval_op_var_msym_value): No longer static.
4995 (var_msym_value_operation::evaluate_for_address)
4996 (var_msym_value_operation::evaluate_for_sizeof)
4997 (var_msym_value_operation::evaluate_for_cast): New methods.
4998 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4999 method.
5000
d336c29e
TT
50012021-03-08 Tom Tromey <tom@tromey.com>
5002
5003 * expop.h (class long_const_operation): New.
5004 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
5005
d5ab122c
TT
50062021-03-08 Tom Tromey <tom@tromey.com>
5007
5008 * expop.h (class scope_operation): New.
5009 * eval.c (eval_op_scope): No longer static.
5010 (scope_operation::evaluate_for_address): New method.
5011 * ax-gdb.c (scope_operation::do_generate_ax): New method.
5012
cae26a0c
TT
50132021-03-08 Tom Tromey <tom@tromey.com>
5014
5015 * expprint.c (float_const_operation::dump): New method.
5016 * expop.h (float_data): New typedef.
5017 (class float_const_operation): New.
5018
75f9892d
TT
50192021-03-08 Tom Tromey <tom@tromey.com>
5020
5021 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
5022 * ax-gdb.c (gen_expr_binop): New function.
5023 (gen_expr_structop): Likewise.
5024
de401988
TT
50252021-03-08 Tom Tromey <tom@tromey.com>
5026
5027 * expprint.c (expr::dump_for_expression): New functions.
5028 * expop.h (dump_for_expression): New overloads.
5029 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5030 Update.
5031
e2803273
TT
50322021-03-08 Tom Tromey <tom@tromey.com>
5033
5034 * expression.h (expr::operation): New class.
5035 (expr::make_operation): New function.
5036 (expr::operation_up): New typedef.
5037 * expop.h: New file.
5038 * eval.c (operation::evaluate_for_cast)
5039 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
5040 New methods.
5041 * ax-gdb.c (operation::generate_ax): New method.
5042
e18c58f2
TT
50432021-03-08 Tom Tromey <tom@tromey.com>
5044
5045 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5046 (gen_expr_binop_rest): New overload.
5047
c0d7ed8c
TT
50482021-03-08 Tom Tromey <tom@tromey.com>
5049
5050 * eval.c (eval_multi_subscript): New function.
5051 (evaluate_subexp_standard): Use it.
5052
dd5fd283
TT
50532021-03-08 Tom Tromey <tom@tromey.com>
5054
5055 * ada-lang.c (ada_binop_exp): New function.
5056 (ada_evaluate_subexp): Use it.
5057
3848abd6
TT
50582021-03-08 Tom Tromey <tom@tromey.com>
5059
5060 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
5061 parameters.
5062 (ada_evaluate_subexp): Use it.
5063
38dc70cf
TT
50642021-03-08 Tom Tromey <tom@tromey.com>
5065
5066 * ada-lang.c (ada_binop_minmax): New function.
5067 (ada_evaluate_subexp): Use it.
5068
b84564fc
TT
50692021-03-08 Tom Tromey <tom@tromey.com>
5070
5071 * ada-lang.c (ada_unop_atr): New function.
5072 (ada_evaluate_subexp): Use it.
5073
b467efaa
TT
50742021-03-08 Tom Tromey <tom@tromey.com>
5075
5076 * ada-lang.c (ada_binop_in_bounds): New function.
5077 (ada_evaluate_subexp): Use it.
5078
5ce19db8
TT
50792021-03-08 Tom Tromey <tom@tromey.com>
5080
5081 * ada-lang.c (ada_ternop_slice): New function.
5082 (ada_evaluate_subexp): Use it.
5083
214b13ac
TT
50842021-03-08 Tom Tromey <tom@tromey.com>
5085
5086 * ada-lang.c (ada_equal_binop): New function.
5087 (ada_evaluate_subexp): Use it.
5088
faa1dfd7
TT
50892021-03-08 Tom Tromey <tom@tromey.com>
5090
5091 * ada-lang.c (ada_mult_binop): New function.
5092 (ada_evaluate_subexp): Use it.
5093
d05e24e6
TT
50942021-03-08 Tom Tromey <tom@tromey.com>
5095
5096 * ada-lang.c (ada_abs): New function.
5097 (ada_evaluate_subexp): Use it.
5098
68c75735
TT
50992021-03-08 Tom Tromey <tom@tromey.com>
5100
5101 * ada-lang.c (ada_atr_size): New function.
5102 (ada_evaluate_subexp): Use it.
5103
020dbabe
TT
51042021-03-08 Tom Tromey <tom@tromey.com>
5105
5106 * ada-lang.c (ada_atr_tag): New function.
5107 (ada_evaluate_subexp): Use it.
5108
7efc87ff
TT
51092021-03-08 Tom Tromey <tom@tromey.com>
5110
5111 * ada-lang.c (ada_unop_in_range): New function.
5112 (ada_evaluate_subexp): Use it.
5113
82390ab8
TT
51142021-03-08 Tom Tromey <tom@tromey.com>
5115
5116 * ada-lang.c (ada_unop_neg): New function.
5117 (ada_evaluate_subexp): Use it.
5118
62d4bd94
TT
51192021-03-08 Tom Tromey <tom@tromey.com>
5120
5121 * ada-lang.c (eval_ternop_in_range): New function.
5122 (ada_evaluate_subexp): Use it.
5123
3634f669
TT
51242021-03-08 Tom Tromey <tom@tromey.com>
5125
5126 * opencl-lang.c (eval_opencl_assign): New function.
5127 (evaluate_subexp_opencl): Use it.
5128
5e80600e
TT
51292021-03-08 Tom Tromey <tom@tromey.com>
5130
5131 * eval.c (eval_op_objc_msgcall): New function.
5132 (evaluate_subexp_standard): Use it.
5133
fb5ba2ab
TT
51342021-03-08 Tom Tromey <tom@tromey.com>
5135
5136 * eval.c (eval_binop_assign_modify): New function.
5137 (evaluate_subexp_standard): Use it.
5138
a49881f7
TT
51392021-03-08 Tom Tromey <tom@tromey.com>
5140
5141 * m2-lang.c (eval_op_m2_subscript): New function.
5142 (evaluate_subexp_modula2): Use it.
5143
41bdced5
TT
51442021-03-08 Tom Tromey <tom@tromey.com>
5145
5146 * m2-lang.c (eval_op_m2_high): New function.
5147 (evaluate_subexp_modula2): Use it.
5148
13ea014a
TT
51492021-03-08 Tom Tromey <tom@tromey.com>
5150
5151 * eval.c (evaluate_subexp_for_address_base): New function.
5152 (evaluate_subexp_for_address): Use it.
5153 (evaluate_subexp_for_sizeof_base): New function.
5154 (evaluate_subexp_for_sizeof): Use it.
5155
1fa41fc7
TT
51562021-03-08 Tom Tromey <tom@tromey.com>
5157
5158 * rust-lang.c (eval_op_rust_structop): New function.
5159 (rust_evaluate_subexp): Use it.
5160
575cae23
TT
51612021-03-08 Tom Tromey <tom@tromey.com>
5162
5163 * rust-lang.c (eval_op_rust_struct_anon): New function.
5164 (rust_evaluate_subexp): Use it.
5165
05104233
TT
51662021-03-08 Tom Tromey <tom@tromey.com>
5167
5168 * rust-lang.c (eval_op_rust_array): New function.
5169 (rust_evaluate_subexp): Use it.
5170
6fa9831f
TT
51712021-03-08 Tom Tromey <tom@tromey.com>
5172
5173 * rust-lang.c (eval_op_rust_complement): New function.
5174 (rust_evaluate_subexp): Use it.
5175
d123f9e4
TT
51762021-03-08 Tom Tromey <tom@tromey.com>
5177
5178 * rust-lang.c (eval_op_rust_ind): New function.
5179 (rust_evaluate_subexp): Use it.
5180
984af2cb
TT
51812021-03-08 Tom Tromey <tom@tromey.com>
5182
5183 * rust-lang.c (rust_subscript): Change parameters.
5184 (rust_evaluate_subexp): Update.
5185
d148f803
TT
51862021-03-08 Tom Tromey <tom@tromey.com>
5187
5188 * rust-lang.c (rust_range): Change parameters.
5189 (rust_evaluate_subexp): Update.
5190
9cbd1c20
TT
51912021-03-08 Tom Tromey <tom@tromey.com>
5192
5193 * f-lang.c (eval_op_f_allocated): New function.
5194 (evaluate_subexp_f): Use it.
5195
3c18c49c
TT
51962021-03-08 Tom Tromey <tom@tromey.com>
5197
5198 * f-lang.c (fortran_require_array): New function.
5199 (evaluate_subexp_f): Use it.
5200
216f6fcb
TT
52012021-03-08 Tom Tromey <tom@tromey.com>
5202
5203 * f-lang.c (eval_op_f_kind): New function.
5204 (evaluate_subexp_f): Use it.
5205
00f2db6f
TT
52062021-03-08 Tom Tromey <tom@tromey.com>
5207
5208 * f-lang.c (eval_op_f_cmplx): New function.
5209 (evaluate_subexp_f): Use it.
5210
93b2b5fa
TT
52112021-03-08 Tom Tromey <tom@tromey.com>
5212
5213 * f-lang.c (eval_op_f_modulo): New function.
5214 (evaluate_subexp_f): Use it.
5215
9f1a1f3c
TT
52162021-03-08 Tom Tromey <tom@tromey.com>
5217
5218 * f-lang.c (eval_op_f_floor): New function.
5219 (evaluate_subexp_f): Use it.
5220
3dc41f3c
TT
52212021-03-08 Tom Tromey <tom@tromey.com>
5222
5223 * f-lang.c (eval_op_f_ceil): New function.
5224 (evaluate_subexp_f): Use it.
5225
e08109f2
TT
52262021-03-08 Tom Tromey <tom@tromey.com>
5227
5228 * f-lang.c (eval_op_f_mod): New function.
5229 (evaluate_subexp_f): Use it.
5230
cc05c68e
TT
52312021-03-08 Tom Tromey <tom@tromey.com>
5232
5233 * f-lang.c (eval_op_f_abs): New function.
5234 (evaluate_subexp_f): Use it.
5235
aec95807
TT
52362021-03-08 Tom Tromey <tom@tromey.com>
5237
5238 * eval.c (eval_op_type): New function.
5239 (evaluate_subexp_standard): Use it.
5240
a220ead5
TT
52412021-03-08 Tom Tromey <tom@tromey.com>
5242
5243 * eval.c (eval_op_postdec): New function.
5244 (evaluate_subexp_standard): Use it.
5245
abffe116
TT
52462021-03-08 Tom Tromey <tom@tromey.com>
5247
5248 * eval.c (eval_op_postinc): New function.
5249 (evaluate_subexp_standard): Use it.
5250
9e1361b7
TT
52512021-03-08 Tom Tromey <tom@tromey.com>
5252
5253 * eval.c (eval_op_predec): New file.
5254 (evaluate_subexp_standard): Use it.
5255
00f50884
TT
52562021-03-08 Tom Tromey <tom@tromey.com>
5257
5258 * eval.c (eval_op_preinc): New function.
5259 (evaluate_subexp_standard): Use it.
5260
3aef2a07
TT
52612021-03-08 Tom Tromey <tom@tromey.com>
5262
5263 * eval.c (eval_op_memval): New function.
5264 (evaluate_subexp_standard): Use it.
5265
acee9468
TT
52662021-03-08 Tom Tromey <tom@tromey.com>
5267
5268 * eval.c (eval_op_alignof): New function.
5269 (evaluate_subexp_standard): Use it.
5270
786f70ee
TT
52712021-03-08 Tom Tromey <tom@tromey.com>
5272
5273 * eval.c (eval_op_ind): New function.
5274 (evaluate_subexp_standard): Use it.
5275
24338fb9
TT
52762021-03-08 Tom Tromey <tom@tromey.com>
5277
5278 * eval.c (eval_op_lognot): New function.
5279 (evaluate_subexp_standard): Use it.
5280
1f09ec81
TT
52812021-03-08 Tom Tromey <tom@tromey.com>
5282
5283 * eval.c (eval_op_complement): New function.
5284 (evaluate_subexp_standard): Use it.
5285
606d105f
TT
52862021-03-08 Tom Tromey <tom@tromey.com>
5287
5288 * eval.c (eval_op_neg): New function.
5289 (evaluate_subexp_standard): Use it.
5290
39f288be
TT
52912021-03-08 Tom Tromey <tom@tromey.com>
5292
5293 * eval.c (eval_op_plus): New function.
5294 (evaluate_subexp_standard): Use it.
5295
eed70b1c
TT
52962021-03-08 Tom Tromey <tom@tromey.com>
5297
5298 * eval.c (eval_op_repeat): New function.
5299 (evaluate_subexp_standard): Use it.
5300
60cdd487
TT
53012021-03-08 Tom Tromey <tom@tromey.com>
5302
5303 * eval.c (eval_op_leq): New function.
5304 (evaluate_subexp_standard): Use it.
5305
96e3efd9
TT
53062021-03-08 Tom Tromey <tom@tromey.com>
5307
5308 * eval.c (eval_op_geq): New function.
5309 (evaluate_subexp_standard): Use it.
5310
1f78d732
TT
53112021-03-08 Tom Tromey <tom@tromey.com>
5312
5313 * eval.c (eval_op_gtr): New function.
5314 (evaluate_subexp_standard): Use it.
5315
6cad1349
TT
53162021-03-08 Tom Tromey <tom@tromey.com>
5317
5318 * eval.c (eval_op_less): New function.
5319 (evaluate_subexp_standard): Use it.
5320
1fcb3559
TT
53212021-03-08 Tom Tromey <tom@tromey.com>
5322
5323 * eval.c (eval_op_notequal): New function.
5324 (evaluate_subexp_standard): Use it.
5325
0cc96de8
TT
53262021-03-08 Tom Tromey <tom@tromey.com>
5327
5328 * eval.c (eval_op_equal): New function.
5329 (evaluate_subexp_standard): Use it.
5330
288d26bc
TT
53312021-03-08 Tom Tromey <tom@tromey.com>
5332
5333 * eval.c (eval_op_subscript): New function.
5334 (evaluate_subexp_standard): Use it.
5335
7cdcdd02
TT
53362021-03-08 Tom Tromey <tom@tromey.com>
5337
5338 * eval.c (eval_op_binary): New function.
5339 (evaluate_subexp_standard): Use it.
5340
d9790e22
TT
53412021-03-08 Tom Tromey <tom@tromey.com>
5342
5343 * eval.c (eval_op_sub): New function.
5344 (evaluate_subexp_standard): Use it.
5345
aedaf9ac
TT
53462021-03-08 Tom Tromey <tom@tromey.com>
5347
5348 * eval.c (eval_op_add): New function.
5349 (evaluate_subexp_standard): Use it.
5350
b7a96ed2
TT
53512021-03-08 Tom Tromey <tom@tromey.com>
5352
5353 * eval.c (eval_op_member): New function.
5354 (evaluate_subexp_standard): Use it.
5355
fb461aa3
TT
53562021-03-08 Tom Tromey <tom@tromey.com>
5357
5358 * eval.c (eval_op_structop_ptr): New function.
5359 (evaluate_subexp_standard): Use it.
5360
3e96c4fc
TT
53612021-03-08 Tom Tromey <tom@tromey.com>
5362
5363 * eval.c (eval_op_structop_struct): New function.
5364 (evaluate_subexp_standard): Use it.
5365
f960a617
TT
53662021-03-08 Tom Tromey <tom@tromey.com>
5367
5368 * eval.c (eval_op_ternop): New function.
5369 (evaluate_subexp_standard): Use it.
5370
5c2f201e
TT
53712021-03-08 Tom Tromey <tom@tromey.com>
5372
5373 * eval.c (eval_op_concat): New function.
5374 (evaluate_subexp_standard): Use it.
5375
f871bae1
TT
53762021-03-08 Tom Tromey <tom@tromey.com>
5377
5378 * eval.c (eval_op_objc_selector): New function.
5379 (evaluate_subexp_standard): Use it.
5380
14a1c64a
TT
53812021-03-08 Tom Tromey <tom@tromey.com>
5382
5383 * eval.c (eval_op_string): New function.
5384 (evaluate_subexp_standard): Use it.
5385
ffff730b
TT
53862021-03-08 Tom Tromey <tom@tromey.com>
5387
5388 * eval.c (eval_op_register): New function.
5389 (evaluate_subexp_standard): Use it.
5390
9b1d8af6
TT
53912021-03-08 Tom Tromey <tom@tromey.com>
5392
5393 * eval.c (eval_op_func_static_var): New function.
5394 (evaluate_subexp_standard): Use it.
5395
c0df9289
TT
53962021-03-08 Tom Tromey <tom@tromey.com>
5397
5398 * eval.c (eval_op_var_msym_value): New function.
5399 (evaluate_subexp_standard): Use it.
5400
50b98adc
TT
54012021-03-08 Tom Tromey <tom@tromey.com>
5402
5403 * eval.c (eval_op_var_entry_value): New function.
5404 (evaluate_subexp_standard): Use it.
5405
ea2d29f7
TT
54062021-03-08 Tom Tromey <tom@tromey.com>
5407
5408 * eval.c (eval_op_scope): New function.
5409 (evaluate_subexp_standard): Use it.
5410
01573d73
TT
54112021-03-06 Chernov Sergey <klen_s@mail.ru>
5412
5413 PR gdb/27528:
5414 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5415
9938d15a
TT
54162021-03-06 Tom Tromey <tom@tromey.com>
5417
5418 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5419 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5420 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5421 (locate_dwz_sections, dwz_search_other_debugdirs)
5422 (dwarf2_get_dwz_file): Move to dwz.c.
5423 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5424 read.h.
5425 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5426 (dwarf2_get_dwz_file): Move from read.c.
5427
18035655
TT
54282021-03-06 Tom Tromey <tom@tromey.com>
5429
5430 * debuginfod-support.h: Include scoped_fd.h.
5431
a7308ce0
TT
54322021-03-06 Tom Tromey <tom@tromey.com>
5433
5434 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5435 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5436 (get_abbrev_section_for_cu, read_attribute_value)
5437 (get_debug_line_section): Update.
5438 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5439
fbedd546
TT
54402021-03-06 Tom Tromey <tom@tromey.com>
5441
5442 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5443 method.
5444 * dwarf2/read.c (section_is_p): Remove.
5445 (dwarf2_per_bfd::locate_sections)
5446 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5447 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5448 (dwarf2_locate_common_dwp_sections)
5449 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5450 Update.
5451
c2a62a3d
TT
54522021-03-06 Tom Tromey <tom@tromey.com>
5453
5454 * xcoffread.c: Include sect-names.h.
5455 * symfile.h (struct dwarf2_section_names, struct
5456 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5457 * dwarf2/sect-names.h: New file, from symfile.h.
5458 * dwarf2/read.c: Include sect-names.h.
5459
4444f407
TT
54602021-03-06 Tom Tromey <tom@tromey.com>
5461
5462 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5463 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5464 (abbrev_table::read): Update.
5465 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5466 (struct abbrev_info): Reformat.
5467 <attrs>: Now an array.
5468 (struct abbrev_table) <alloc_abbrev>: Remove.
5469
dd99cf0c
WP
54702021-03-06 Weimin Pan <weimin.pan@oracle.com>
5471
5472 * ctfread.c (ctf_psymtab_add_enums): New function.
5473 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5474
844be3f2
WP
54752021-03-06 Weimin Pan <weimin.pan@oracle.com>
5476
5477 * ctfread.c (read_func_kind_type): Set up function arguments.
5478
b2668f28
AB
54792021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5480 Andrew Burgess <andrew.burgess@embecosm.com>
5481
5482 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5483 includes.
5484 (riscv_csrset): New static global.
5485 (riscv_update_csrmap): New function.
5486 (riscv_iterate_over_regset_sections): Process CSRs.
5487
d782d24b
AB
54882021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5489
5490 * riscv-tdep.c (riscv_feature_name_csr): Define.
5491 (riscv_feature_name_cpu): Define.
5492 (riscv_feature_name_fpu): Define.
5493 (riscv_feature_name_virtual): Define.
5494 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5495 (riscv_freg_feature): Use riscv_feature_name_fpu.
5496 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5497 (riscv_csr_feature): Use riscv_feature_name_csr.
5498 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5499
fb8f3fc0
AB
55002021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5501 Craig Blackmore <craig.blackmore@embecosm.com>
5502
5503 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5504 (ALLDEPFILES): Add riscv-none-tdep.c.
5505 * configure: Regenerate.
5506 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5507 support.
5508 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5509 * elf-none-tdep.c: New file.
5510 * elf-none-tdep.h: New file.
5511 * riscv-none-tdep.c: New file.
5512
95ce627a
AB
55132021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5514 Andrew Burgess <andrew.burgess@embecosm.com>
5515
5516 * corelow.c: Add 'xml-tdesc.h' include.
5517 (core_target::read_description): Load the target description from
5518 the core file when possible.
5519 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5520 note.
5521 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5522 (gcore_elf_make_tdesc_note): New function.
5523 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5524 * linux-tdep.c (linux_make_corefile_notes): Add target description
5525 note.
5526
f3a5df7b
AB
55272021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5528
5529 * Makefile.in (SFILES): Add gcore-elf.c.
5530 (HFILES_NO_SRCDIR): Add gcore-elf.h
5531 * configure: Regenerate.
5532 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5533 support.
5534 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5535 (struct fbsd_collect_regset_section_cb_data): Delete.
5536 (fbsd_collect_regset_section_cb): Delete.
5537 (fbsd_collect_thread_registers): Delete.
5538 (struct fbsd_corefile_thread_data): Delete.
5539 (fbsd_corefile_thread): Delete.
5540 (fbsd_make_corefile_notes): Call
5541 gcore_elf_build_thread_register_notes instead of the now deleted
5542 FreeBSD code.
5543 * gcore-elf.c: New file, the content was moved here from
5544 linux-tdep.c, functions were renamed and given minor cleanup.
5545 * gcore-elf.h: New file.
5546 * gcore.c (gcore_find_signalled_thread): Moved here from
5547 linux-tdep.c and given a new name. Minor cleanups.
5548 * gcore.h (gcore_find_signalled_thread): Declare.
5549 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5550 (struct linux_collect_regset_section_cb_data): Delete.
5551 (linux_collect_regset_section_cb): Delete.
5552 (linux_collect_thread_registers): Delete.
5553 (linux_corefile_thread): Call
5554 gcore_elf_build_thread_register_notes.
5555 (find_signalled_thread): Delete.
5556 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5557
d1e93af6
SM
55582021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5559
5560 PR gdb/27147
5561 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5562 process_stratum_target parameter,
5563 sparc_store_inferior_registers): update callers.
5564 * sparc-nat.c (sparc_fetch_inferior_registers,
5565 sparc_store_inferior_registers): Add process_stratum_target
5566 parameter. Switch current thread before calling
5567 sparc_supply_gregset / sparc_collect_rwindow.
5568 (sparc_store_inferior_registers): Likewise.
5569 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5570 (sparc32obsd_collect_uthread): Likewise.
5571 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5572 Add assertion.
5573 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5574 sparc64obsd_supply_uthread): Add assertion.
5575
1178743e
TT
55762021-03-04 Tom Tromey <tromey@adacore.com>
5577
5578 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5579 (aux_add_nonlocal_symbols): Update.
5580 (ada_add_block_symbols): Change "found_sym" to bool.
5581
1bfa81ac
TT
55822021-03-03 Tom Tromey <tromey@adacore.com>
5583
5584 * ada-lang.c (ada_resolve_function): Update comment.
5585 (is_nonfunction, add_symbols_from_enclosing_procs)
5586 (remove_extra_symbols): Likewise.
5587 (struct match_data): Add constructor, initializers.
5588 (add_nonlocal_symbols): Remove memset.
5589 (aux_add_nonlocal_symbols): Update comment.
5590 (ada_add_block_renamings, add_nonlocal_symbols)
5591 (ada_add_all_symbols): Likewise.
5592 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5593
bbcdf9ab
TT
55942021-03-02 Tom Tromey <tromey@adacore.com>
5595
5596 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5597 (cast_to_gnat_encoded_fixed_point_type): Remove.
5598 (ada_value_cast, ada_evaluate_subexp): Update.
5599 (gnat_encoded_fixed_point_type_info)
5600 (ada_is_gnat_encoded_fixed_point_type)
5601 (gnat_encoded_fixed_point_delta)
5602 (gnat_encoded_fixed_point_scaling_factor): Remove.
5603 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5604 (gnat_encoded_fixed_point_delta)
5605 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5606 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5607 (ada_print_type): Update.
5608 * ada-valprint.c (ada_value_print_num): Update.
5609 * dwarf2/read.c (ada_get_gnat_encoded_number)
5610 (ada_get_gnat_encoded_ratio): New functions.
5611 (finish_fixed_point_type): Use them. Add parameters.
5612 (GNAT_FIXED_POINT_SUFFIX): New define.
5613 (gnat_encoded_fixed_point_type_info): New function.
5614 (read_base_type): Handle gnat encodings.
5615
5f9febe0
TT
56162021-03-02 Tom Tromey <tromey@adacore.com>
5617
5618 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5619 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5620 std::string.
5621 (GROW_VECT): Remove.
5622 (grow_vect): Remove.
5623
d1183b06
TT
56242021-03-02 Tom Tromey <tromey@adacore.com>
5625
5626 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5627 * ada-lang.c (resolve_subexp): Update.
5628 (ada_resolve_function): Accept a vector.
5629 (is_nonfunction, add_defn_to_vec)
5630 (add_symbols_from_enclosing_procs): Likewise.
5631 (num_defns_collected, defns_collected): Remove.
5632 (remove_extra_symbols): Return a vector.
5633 (remove_irrelevant_renamings): Return void.
5634 (ada_add_local_symbols): Accept a vector.
5635 (struct match_data) <obstackp>: Remove.
5636 <resultp>: New member.
5637 (aux_add_nonlocal_symbols): Update.
5638 (ada_add_block_renamings, add_nonlocal_symbols)
5639 (ada_add_all_symbols): Accept a vector.
5640 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5641 vector.
5642 (ada_lookup_symbol): Update.
5643 (ada_add_block_symbols): Accept a vector.
5644 (get_var_value, iterate_over_symbols): Update.
5645 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5646 Update.
5647
886d459f
TT
56482021-03-02 Tom Tromey <tromey@adacore.com>
5649
5650 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5651
bdcccc56
TT
56522021-03-02 Tom Tromey <tromey@adacore.com>
5653
5654 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5655 auto_obstack.
5656 <root>: Initialize.
5657 (ada_pspace_data): Remove destructor.
5658 <sym_cache>: Now a unique_ptr.
5659 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5660 (ada_get_symbol_cache): Use 'new'.
5661 (ada_clear_symbol_cache): Rewrite.
5662
1228719f
TT
56632021-03-02 Tom Tromey <tromey@adacore.com>
5664
5665 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5666 is null.
5667
bb3a4efe
LS
56682021-02-27 Lancelot Six <lsix@lancelotsix.com>
5669
5670 PR gdb/27393
5671 * source.c (add_path): Skip empty dirnames.
5672
26b43ca6 56732021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5674
5675 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5676 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5677
dffdd8b5
SM
56782021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5679
5680 PR gdb/26861
5681 * target.c (target_mourn_inferior): Only compare pids in
5682 target_mourn_inferior.
5683
64d38fdd
JM
56842021-02-25 Jan Matyas <jmatyas@codasip.com>
5685
5686 PR gdb/26819
5687 * remote.c (remote_target::start_remote): Ensure the single
5688 thread, automatically added for remote targets without the
5689 concept of threading, is initially in set to the "resumed"
5690 state.
5691 * remote.c (remote_target::add_current_inferior_and_thread):
5692 Add return value - return the main thread.
5693
2450ad54
JV
56942021-02-25 Jan Vrany <jan.vrany@labware.com>
5695
5696 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5697 (mi_tsv_created): Likewise.
5698 (mi_tsv_deleted): Likewise.
5699
30c80d88
TV
57002021-02-25 Tom de Vries <tdevries@suse.de>
5701
5702 PR symtab/27354
5703 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5704 section_kind for &dwo_file->sections.info.
5705
68337b8b
AB
57062021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5707
5708 PR fortran/26155
5709 * f-lang.c (fortran_argument_convert): Delete declaration.
5710 (fortran_prepare_argument): New function.
5711 (evaluate_subexp_f): Move logic to new function
5712 fortran_prepare_argument.
5713
faeb9f13
AB
57142021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5715
5716 * f-exp.y (f77_keywords): Add 'associated'.
5717 * f-lang.c (fortran_associated): New function.
5718 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5719 (operator_length_f): Likewise.
5720 (print_unop_or_binop_subexp_f): New function.
5721 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5722 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5723 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5724 (operator_check_f): Likewise.
5725 * std-operator.def: Add FORTRAN_ASSOCIATED.
5726
170f4b23
AB
57272021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5728
5729 * f-exp.y (fortran_operators): Add ".xor.".
5730
aa659cfa
TV
57312021-02-24 Tom de Vries <tdevries@suse.de>
5732
5733 PR symtab/27336
5734 * dwarf2/attribute.c (attribute::form_is_signed): New function
5735 factored out of ...
5736 * dwarf2/attribute.h (attribute::as_signed): ... here.
5737 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5738 (attribute::form_is_signed): Declare.
5739 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5740 for DW_AT_decl_file.
5741
268c77c1
KB
57422021-02-24 Kevin Buettner <kevinb@redhat.com>
5743
5744 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5745 order for <sys/ptrace.h> and <asm/ptrace.h>.
5746
665af52e
KB
57472021-02-24 Kevin Buettner <kevinb@redhat.com>
5748
5749 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5750 <sys/ptrace.h>.
5751
dd80d750
AB
57522021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5753
5754 * exec.c (set_section_command): Move variable declarations into
5755 the function body, and use std::string instead of a fixed size
5756 buffer.
5757
336aa7b7
AB
57582021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5759
5760 * exec.c (exec_target::get_section_table): Delete member function.
5761 (section_table_read_available_memory): Use current_top_target, not
5762 just the exec_ops target.
5763 * target-delegates.c: Regenerate.
5764 * target.c (default_get_section_table): New function.
5765 * target.h (target_ops::get_section_table): Change default
5766 behaviour to call default_get_section_table.
5767 (default_get_section_table): Declare.
5768
02f7d26b
AB
57692021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5770
5771 * exec.c (exec_target::close): Call new clear_target_sections
5772 function.
5773 (program_space::add_target_sections): Update name of member
5774 variable.
5775 (program_space::add_target_sections): Update name of member
5776 variable.
5777 (program_space::remove_target_sections): Likewise.
5778 (exec_one_fork): Use new target_sections member function.
5779 (exec_target::get_section_table): Likewise.
5780 (exec_target::files_info): Likewise.
5781 (set_section_command): Likewise.
5782 (exec_set_section_address): Likewise.
5783 (exec_target::has_memory): Use new target_sections member
5784 function.
5785 * progspace.h (program_space::clear_target_sections): New member
5786 function.
5787 (program_space::target_sections): Rename member variable to
5788 m_target_sections, replace with a new member function.
5789 (program_space::m_target_sections): New member variable.
5790 * solib-dsbt.c (scan_dyntag): Use new member function.
5791 * solib-svr4.c (scan_dyntag): Likewise.
5792
19cf757a
AB
57932021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5794
5795 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5796 return type const.
5797 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5798 (section_table_read_available_memory): Make local const.
5799 (exec_target::xfer_partial): Make local const.
5800 (print_section_info): Make parameter const.
5801 * gdb/exec.h (print_section_info): Likewise.
5802 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5803 const.
5804 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5805 Likewise.
5806 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5807 Likewise.
5808 * gdb/s390-tdep.c (s390_load): Likewise.
5809 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5810 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5811 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5812 Rename to...
5813 (target_debug_print_const_target_section_table_p): ...this.
5814 * gdb/target-delegates.c: Regenerate.
5815 * gdb/target.c (target_get_section_table): Make return type const.
5816 (target_section_by_addr): Likewise. Also make some locals const.
5817 (memory_xfer_partial_1): Make some locals const.
5818 * gdb/target.h (struct target_ops) <get_section_table>: Make
5819 return type const.
5820 (target_section_by_addr): Likewise.
5821 (target_get_section_table): Likewise.
5822
02a79309
AB
58232021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5824
5825 * NEWS: Mention new 'maint info target-sections' command.
5826 * maint.c (maintenance_info_target_sections): New function.
5827 (_initialize_maint_cmds): Register new command.
5828
895b7b4e
AB
58292021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5830
5831 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5832 (riscv_features_from_bfd): ...this. Change parameter type to
5833 'bfd*', and update as required.
5834 (riscv_find_default_target_description): Update call to
5835 riscv_features_from_bfd. Select a default xlen based on
5836 info.bfd_arch_info.
5837 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5838
bc3c0632
AB
58392021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5840
5841 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5842 dynamic types in UNOP_IND.
5843
08ac5771
SM
58442021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 PR gdb/26828
5847 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5848 Instantiate queue.
5849 (~dwarf2_queue_guard): Clear queue.
5850 (queue_comp_unit): Assert that queue is
5851 instantiated.
5852 (process_queue): Adjust.
5853 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5854
616c069a
SM
58552021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 PR gdb/26828
5858 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5859 to decide whether or not to enqueue it for expansion.
5860 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5861 after calling maybe_queue_comp_unit.
5862
897608ed
SM
58632021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * linux-nat.c (linux_nat_filter_event): Return void.
5866
15908a11
TT
58672021-02-22 Tom Tromey <tromey@adacore.com>
5868
5869 * solib-svr4.c (enable_break): Update.
5870 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5871 type.
5872 (target_bfd_reopen): Change parameter type.
5873 * bfd-target.h (target_bfd_reopen): Change parameter type.
5874
f53fc427
SM
58752021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5876
5877 * thread.c (add_thread_silent): Add assert.
5878 (find_thread_ptid): Add assert.
5879
de146e19
SM
58802021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5881
5882 PR gdb/27435
5883 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5884 (target_unpush_up): Likewise.
5885 * procfs.c (procfs_target::attach): Push target early. Use
5886 target_unpush_up to unpush target in case of error.
5887 * target.h (struct target_unpusher): Move here.
5888 (target_unpush_up): Likewise.
5889
8488c357
KB
58902021-02-19 Kevin Buettner <kevinb@redhat.com>
5891
5892 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5893 (which in turn includes <gnulib/config.h>) before include
5894 of <signal.h>.
5895
5a9f5403
NC
58962021-02-19 Nelson Chu <nelson.chu@sifive.com>
5897
5898 PR 27158
5899 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5900 (decode_j_type_insn): Likewise.
5901 (decode_cj_type_insn): Likewise.
5902 (decode_b_type_insn): Likewise.
5903 (decode): Likewise.
5904
26f53cd3
TT
59052021-02-18 Tom Tromey <tom@tromey.com>
5906
5907 * expression.h (struct expression) <evaluate>: Declare method.
5908 * eval.c (evaluate_subexp): Simplify.
5909 (expression::evaluate): New method.
5910 (evaluate_expression, evaluate_type): Use expression::evaluate.
5911
6a780b67
KB
59122021-02-17 Kevin Buettner <kevinb@redhat.com>
5913
5914 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5915 to accessing it.
5916 (ada_lookup_name_info): Likewise.
5917
adeab0c5
MF
59182021-02-13 Mike Frysinger <vapier@gentoo.org>
5919
5920 * aclocal.m4: Regenerate.
5921
089436f7
TV
59222021-02-12 Tom de Vries <tdevries@suse.de>
5923
5924 PR threads/26228
5925 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5926 (lin_thread_signals): New static var.
5927 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5928 New function.
5929 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5930 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5931 Declare.
5932 * linux-thread-db.c (check_thread_signals): Use
5933 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5934
96df3e28
AB
59352021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5936
5937 * f-exp.y (f77_keywords): Add allocated.
5938 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5939 (operator_length_f): Likewise.
5940 (print_subexp_f): Likewise.
5941 (dump_subexp_body_f): Likewise.
5942 (operator_check_f): Likewise.
5943 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5944
05f68f52
TV
59452021-02-11 Tom de Vries <tdevries@suse.de>
5946
5947 PR symtab/27353
5948 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5949 Return true for DW_FORM_strx.
5950
b260f8d6
TT
59512021-02-11 Tom Tromey <tromey@adacore.com>
5952
5953 PR gdb/27383:
5954 * parse.c (write_exp_symbol_reference): Write sym.block.
5955
bf3386f0
AB
59562021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5957
5958 * NEWS: Mention changes to 'maint info sections'.
5959 * maint.c (match_substring): Return a bool, fix whitespace issue.
5960 (struct single_bfd_flag_info): New struct.
5961 (bfd_flag_info): New static global.
5962 (match_bfd_flags): Return a bool, use bfd_flag_info.
5963 (print_bfd_flags): Use bfd_flag_info.
5964 (maint_print_section_info): Delete trailing whitespace.
5965 (struct maint_info_sections_opts): New struct.
5966 (maint_info_sections_option_defs): New static global.
5967 (maint_info_sections_completer): New function.
5968 (maintenance_info_sections): Use option parsing mechanism.
5969 (_initialize_maint_cmds): Update command help text for 'maint info
5970 sections' and register a command completer.
5971
4790db14
AB
59722021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5973
5974 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5975 functionality merged into...
5976 (maint_print_all_sections): ...this new function.
5977 (maintenance_info_sections): Make use of maint_print_all_sections,
5978 allow all objects to be printed even where there's no executable.
5979
1db66e34
AB
59802021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5981
5982 * breakpoint.c (resolve_sal_pc): Make use of
5983 bound_minimal_symbol::obj_section.
5984 * maint.c (maintenance_translate_address): Likewise.
5985 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5986 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5987 member function.
5988 * printcmd.c (info_address_command): Make use of
5989 bound_minimal_symbol::obj_section.
5990
18b8df43
AM
59912021-02-11 Alan Modra <amodra@gmail.com>
5992
5993 * arm-symbian-tdep.c: Delete.
5994 * NEWS: Mention arm-symbian removal.
5995 * Makefile.in: Remove arm-symbian-tdep entries.
5996 * configure.tgt: Remove arm*-*-symbianelf*.
5997 * doc/gdb.texinfo: Remove mention of SymbianOS.
5998 * osabi.c (gdb_osabi_names): Remove "Symbian".
5999 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
6000 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
6001 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
6002 handling.
6003 * testsuite/gdb.base/dup-sect.exp: Likewise.
6004 * testsuite/gdb.base/long_long.exp: Likewise.
6005 * testsuite/gdb.base/solib-weak.exp: Likewise.
6006 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
6007 * testsuite/gdb.python/py-section-script.exp: Likewise.
6008 * testsuite/lib/dwarf.exp: Likewise.
6009 * testsuite/lib/gdb.exp: Likewise.
6010
e92c8eb8
AB
60112021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6012
6013 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
6014 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
6015 (one_or_two_args): New pattern.
6016 (f77_keywords): Add lbound and ubound.
6017 * f-lang.c (fortran_bounds_all_dims): New function.
6018 (fortran_bounds_for_dimension): New function.
6019 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
6020 (operator_length_f): Likewise.
6021 (print_subexp_f): Likewise.
6022 (dump_subexp_body_f): Likewise.
6023 (operator_check_f): Likewise.
6024 * std-operator.def (FORTRAN_LBOUND): Define.
6025 (FORTRAN_UBOUND): Define.
6026
a52d653e
AB
60272021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6028
6029 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6030 and set_section_index member functions where appropriate.
6031 * coffread.c (coff_symtab_read): Likewise.
6032 (process_coff_symbol): Likewise.
6033 * ctfread.c (set_symbol_address): Likewise.
6034 * dwarf2/read.c (add_partial_symbol): Likewise.
6035 (var_decode_location): Likewise.
6036 * language.c: Likewise.
6037 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
6038 (compact_minimal_symbols): Likewise.
6039 (minimal_symbol_upper_bound): Likewise.
6040 * objfiles.c (relocate_one_symbol): Likewise.
6041 * psympriv.h (partial_symbol::obj_section): Likewise.
6042 (partial_symbol::address): Likewise.
6043 * psymtab.c (partial_symtab::add_psymbol): Likewise.
6044 * stabsread.c (scan_file_globals): Likewise.
6045 * symmisc.c (dump_msymbols): Likewise.
6046 * symtab.c (general_symbol_info::obj_section): Likewise.
6047 (fixup_section): Likewise.
6048 (get_msymbol_address): Likewise.
6049 * symtab.h (general_symbol_info::section): Rename to...
6050 (general_symbol_info::m_section): ...this.
6051 (general_symbol_info::set_section_index): New member function.
6052 (general_symbol_info::section_index): Likewise.
6053 (SYMBOL_SECTION): Delete.
6054 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6055 set_section_index member functions where appropriate.
6056 (MSYMBOL_SECTION): Delete.
6057 (symbol::symbol): Update to initialize 'm_section'.
6058 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6059 (process_xcoff_symbol): Likewise.
6060
ebbc3a7d
AB
60612021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6062
6063 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6064 MSYMBOL_OBJ_SECTION.
6065 * findvar.c (language_defn::read_var_value): Likewise.
6066 * infcmd.c (jump_command): Likewise.
6067 * linespec.c (minsym_found): Likewise.
6068 * maint.c (maintenance_translate_address): Likewise.
6069 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6070 (minimal_symbol_upper_bound): Likewise.
6071 * parse.c (find_minsym_type_and_address): Likewise.
6072 (operator_check_standard): Likewise.
6073 * printcmd.c (info_address_command): Likewise.
6074 * symmisc.c (dump_msymbols): Likewise.
6075 (print_symbol): Likewise.
6076 * symtab.c (general_symbol_info::obj_section): Define new
6077 function.
6078 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6079 (find_pc_sect_compunit_symtab): Likewise.
6080 (find_function_start_sal): Likewise.
6081 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6082 MSYMBOL_OBJ_SECTION.
6083 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6084 function.
6085 (SYMBOL_OBJ_SECTION): Delete.
6086 (MSYMBOL_OBJ_SECTION): Delete.
6087
9bb305b3
TT
60882021-02-09 Tom Tromey <tom@tromey.com>
6089
6090 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6091
cf2b2075
TV
60922021-02-09 Tom de Vries <tdevries@suse.de>
6093
6094 PR symtab/27341
6095 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6096 construct an array type. Add assert to ensure that element_type is
6097 not being modified.
6098
03642b71
AB
60992021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6100
6101 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6102 (gcore_collect_regset_section_cb): Delete.
6103 (gcore_collect_thread_registers): Delete.
6104 (gcore_build_thread_register_notes): Delete.
6105 (gcore_find_signalled_thread): Delete.
6106 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6107 'gdbarch' and 'thread_info' declarations.
6108 (gcore_build_thread_register_notes): Delete declaration.
6109 (gcore_find_signalled_thread): Likewise.
6110 * fbsd-tdep.c: Remove 'gcore.h' include.
6111 (struct fbsd_collect_regset_section_cb_data): New struct.
6112 (fbsd_collect_regset_section_cb): New function.
6113 (fbsd_collect_thread_registers): New function.
6114 (struct fbsd_corefile_thread_data): New struct.
6115 (fbsd_corefile_thread): New function.
6116 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6117 * linux-tdep.c: Remove 'gcore.h' include.
6118 (struct linux_collect_regset_section_cb_data): New struct.
6119 (linux_collect_regset_section_cb): New function.
6120 (linux_collect_thread_registers): New function.
6121 (linux_corefile_thread): Call Linux specific code.
6122 (find_signalled_thread): New function.
6123 (linux_make_corefile_notes): Call find_signalled_thread.
6124
f73e424f
TT
61252021-02-09 Tom Tromey <tromey@adacore.com>
6126
6127 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6128 not_lval value.
6129 * value.c (value_contents_copy_raw): Now static.
6130 * value.h (value_contents_copy_raw): Don't declare.
6131
a4f0544b
TT
61322021-02-09 Tom Tromey <tromey@adacore.com>
6133
6134 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6135 fields.
6136
9b3e4b5d
SV
61372021-02-08 Shahab Vahedi <shahab@synopsys.com>
6138
6139 PR tdep/27369
6140 * arc-linux-tdep.c (handle_atomic_sequence): New.
6141 (arc_linux_software_single_step): Call handle_atomic_sequence().
6142
29db1eb3
AB
61432021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6144
6145 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6146 function.
6147 (REQUIRE_WINDOW): Call is_valid member function.
6148 (REQUIRE_WINDOW_FOR_SETTER): New define.
6149 (gdbpy_tui_is_valid): Call is_valid member function.
6150 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6151 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6152 tui_active too.
6153 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6154 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6155 the function.
6156
e0c23e11
AB
61572021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6158
6159 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6160 for the title is not nullptr.
6161
1cf23996
AB
61622021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6163
6164 * tui-layout.c (saved_tui_windows): Delete.
6165 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6166 call new get_windows member function instead.
6167 (tui_get_window_by_name): Check in tui_windows.
6168 (tui_layout_window::apply): Don't add to tui_windows.
6169 * tui-layout.h (tui_layout_base::get_windows): New member function.
6170 (tui_layout_window::get_windows): Likewise.
6171 (tui_layout_split::get_windows): Likewise.
6172
a53a2657
AB
61732021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6174
6175 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6176 of the window objects.
6177
2708dbbd
AB
61782021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6179
6180 * python/python.c (gdbpy_print_stack): Reformat an error message.
6181
cd074e04
AB
61822021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6183
6184 * tui/tui-interp.c (tui_command_line_handler): New function.
6185 (tui_interp::resume): Register tui_command_line_handler as the
6186 input_handler.
6187 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6188 function.
6189 (tui_getc_1): Delete handling of '\n' and '\r'.
6190 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6191
4cf28e91
HD
61922021-02-07 Hannes Domani <ssbssa@yahoo.de>
6193
6194 * tui/tui-regs.c (tui_data_window::display_registers_from):
6195 Mark invisible register sub windows.
6196 (tui_data_window::check_register_values): Ignore invisible
6197 register sub windows.
6198
3537bc23
HD
61992021-02-07 Hannes Domani <ssbssa@yahoo.de>
6200
6201 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6202 n_spaces with a negative value.
6203
5fc2d6aa
HD
62042021-02-07 Hannes Domani <ssbssa@yahoo.de>
6205
6206 * tui/tui-regs.c (tui_data_window::display_registers_from):
6207 Add refresh_window call.
6208
83962f83
HD
62092021-02-07 Hannes Domani <ssbssa@yahoo.de>
6210
6211 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6212
0110ec82
SM
62132021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6214
6215 * symmisc.c (std_in, std_out, std_err): Remove.
6216 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6217
7c6944ab
TV
62182021-02-05 Tom de Vries <tdevries@suse.de>
6219
6220 PR breakpoints/27330
6221 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6222 glibc object file has debug info.
6223
e77b0004
TV
62242021-02-05 Tom de Vries <tdevries@suse.de>
6225
6226 PR symtab/27333
6227 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6228
0e857c82
TV
62292021-02-05 Tom de Vries <tdevries@suse.de>
6230
6231 PR breakpoints/27313
6232 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6233 syscall numbers.
6234
bdfea17e
TT
62352021-02-05 Tom Tromey <tom@tromey.com>
6236
6237 * compile/compile-c-support.c (get_compile_context)
6238 (c_get_compile_context, cplus_get_compile_context): Change return
6239 type.
6240 * language.c (language_defn::get_compile_instance): New method.
6241 * language.h (language_defn::get_compile_instance): Change return
6242 type. No longer inline.
6243 * c-lang.c (c_language::get_compile_instance): Change return type.
6244 (cplus_language::get_compile_instance): Change return type.
6245 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6246 Change return type.
6247 * compile/compile.c (compile_to_object): Update.
6248
1b30f421
TT
62492021-02-05 Tom Tromey <tom@tromey.com>
6250
6251 * parser-defs.h (write_exp_symbol_reference): Declare.
6252 * parse.c (write_exp_symbol_reference): New function.
6253 * p-exp.y (variable): Use write_exp_symbol_reference.
6254 * m2-exp.y (variable): Use write_exp_symbol_reference.
6255 * f-exp.y (variable): Use write_exp_symbol_reference.
6256 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6257 * c-exp.y (variable): Use write_exp_symbol_reference.
6258
ae710496
TV
62592021-02-05 Tom de Vries <tdevries@suse.de>
6260
6261 PR exp/27265
6262 * valarith.c (complex_binop): Throw an error if complex type can't
6263 be created.
6264
d3b54e63
TV
62652021-02-05 Tom de Vries <tdevries@suse.de>
6266
6267 PR symtab/27307
6268 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6269 return.
6270
fc9a13fb
TV
62712021-02-05 Tom de Vries <tdevries@suse.de>
6272
6273 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6274
04b4939b
MF
62752021-02-04 Mike Frysinger <vapier@gentoo.org>
6276
6277 * configure.tgt (riscv*-*-*): Set gdb_sim.
6278
6ff267e1
SM
62792021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6280
6281 * target.c (target_is_non_stop_p): Return bool.
6282 * target.h (target_is_non_stop_p): Return bool.
6283
fdbc5215
SM
62842021-02-04 Simon Marchi <simon.marchi@efficios.com>
6285
6286 * record-full.c (record_full_async_inferior_event_handler):
6287 Don't clear async event handler.
6288 (record_full_base_target::wait): Clear async event handler at
6289 beginning.
6290
85d3ad8e
SM
62912021-02-04 Simon Marchi <simon.marchi@efficios.com>
6292
6293 * record-btrace.c (record_btrace_handle_async_inferior_event):
6294 Don't clear async event handler.
6295 (record_btrace_target::wait): Clear async event handler at
6296 beginning.
6297
baa8575b
SM
62982021-02-04 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * remote.c (remote_target::wait): Clear async event handler at
6301 beginning, mark if needed at the end.
6302 (remote_async_inferior_event_handler): Don't set or clear async
6303 event handler.
6304
6b36ddeb
SM
63052021-02-04 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * async-event.h (async_event_handler_func): Add documentation.
6308 * async-event.c (check_async_event_handlers): Don't clear
6309 async_event_handler ready flag.
6310 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6311 flag.
6312 * record-btrace.c (record_btrace_handle_async_inferior_event):
6313 Likewise.
6314 * record-full.c (record_full_async_inferior_event_handler):
6315 Likewise.
6316 * remote-notif.c (remote_async_get_pending_events_handler):
6317 Likewise.
6318 * remote.c (remote_async_inferior_event_handler): Likewise.
6319
72d383bb
SM
63202021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6321
6322 * infrun.c (handle_inferior_event): Move stop_soon variable to
6323 inner scope.
6324
408f6686
PA
63252021-02-03 Pedro Alves <pedro@palves.net>
6326
6327 * infcmd.c (detach_command): Hold strong reference to target, and
6328 if all-stop on entry, restart threads on exit.
6329 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6330 (restart_stepped_thread): ... this new function. Also handle
6331 trap_expected.
6332 (restart_after_all_stop_detach): New function.
6333 * infrun.h (restart_after_all_stop_detach): Declare.
6334
ac7d717c
PA
63352021-02-03 Pedro Alves <pedro@palves.net>
6336
6337 * infrun.c (struct step_over_info): Initialize fields.
6338 (prepare_for_detach): Handle ongoing in-line step over.
6339
e87f0fe8
PA
63402021-02-03 Pedro Alves <pedro@palves.net>
6341
6342 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6343 here...
6344 * remote.c (remote_target::remote_detach_1): ... and here ...
6345 * target.c (target_detach): ... instead of here.
6346 * target.h (target_ops::detach): Add comment.
6347
8ff53139
PA
63482021-02-03 Pedro Alves <pedro@palves.net>
6349
6350 * infrun.c (struct wait_one_event): Move higher up.
6351 (prepare_for_detach): Abort in-progress displaced steps instead of
6352 letting them complete.
6353 (handle_one): If the inferior is detaching, don't add the thread
6354 back to the global step-over chain.
6355 (restart_threads): Don't restart threads if detaching.
6356 (handle_signal_stop): Remove inferior::detaching reference.
6357
91475068
PA
63582021-02-03 Pedro Alves <pedro@palves.net>
6359
6360 * infrun.c (prepare_for_detach): Don't release scoped_restore
6361 before returning.
6362
d758e62c
PA
63632021-02-03 Pedro Alves <pedro@palves.net>
6364
6365 * infrun.c (handle_one): New function, factored out from ...
6366 (stop_all_threads): ... here.
6367
b0083dd7
PA
63682021-02-03 Pedro Alves <pedro@palves.net>
6369
6370 * remote.c (remote_notif_stop_ack): Don't error out on
6371 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6372 (remote_target::discard_pending_stop_replies): Don't delete
6373 in-flight notification; instead, clear its contents.
6374
621cc310
PA
63752021-02-03 Pedro Alves <pedro@palves.net>
6376
6377 * remote.c (extended_remote_target::attach): Set target async in
6378 the target-non-stop path too.
6379
2ab76a18
PA
63802021-02-03 Pedro Alves <pedro@palves.net>
6381
6382 PR gdb/27055
6383 * infrun.c (handle_signal_stop): Move main context_switch call
6384 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6385
2e3773ff
LS
63862021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6387
6388 * NEWS (Changed commands): Add entry for the behavior change of
6389 the inferior command.
6390 * inferior.c (inferior_command): When no argument is given to the
6391 inferior command, display info about the currently selected
6392 inferior.
6393
e57933dc
SM
63942021-02-02 Simon Marchi <simon.marchi@efficios.com>
6395
6396 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6397 a sect_offset.
6398 (read_attribute_reprocess): Adjust.
6399
2b0c7f41
SM
64002021-02-02 Simon Marchi <simon.marchi@efficios.com>
6401
6402 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6403 <gnu_ranges_base>: ... this...
6404 <rnglists_base>: ... and this.
6405 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6406 <gnu_ranges_base>: ... this...
6407 <rnglists_base>: ... and this.
6408 (read_cutu_die_from_dwo): Adjust
6409 (dwarf2_get_pc_bounds): Adjust
6410 (dwarf2_record_block_ranges): Adjust.
6411 (read_full_die_1): Adjust
6412 (partial_die_info::read): Adjust.
6413 (read_rnglist_index): Adjust.
6414
a1c40103
SM
64152021-02-02 Simon Marchi <simon.marchi@efficios.com>
6416
6417 PR gdb/26813
6418 * dwarf2/read.c (read_loclists_rnglists_header): Add
6419 header_offset parameter and use it.
6420 (read_loclist_index): Read header of the current contribution,
6421 not the one at the beginning of the section.
6422 (read_rnglist_index): Likewise.
6423
b1829e1b
SM
64242021-02-02 Simon Marchi <simon.marchi@efficios.com>
6425
6426 PR gdb/26813
6427 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6428 requires_reprocessing flag.
6429 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6430 DW_FORM_loclistx.
6431 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6432 and DW_FORM_loclistx.
6433 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6434 instead of set_address for DW_FORM_loclistx and
6435 DW_FORM_rnglistx.
6436
0c800c6e
SM
64372021-02-02 Simon Marchi <simon.marchi@efficios.com>
6438
6439 * dwarf2/read.c (read_loclist_index): Remove bound check for
6440 start of offset.
6441 (read_rnglist_index): Likewise.
6442
05787bad
SM
64432021-02-02 Simon Marchi <simon.marchi@efficios.com>
6444
6445 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6446 of the offset.
6447
5e4d9bbc
SM
64482021-02-02 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6451
a0c1eeba
SM
64522021-02-02 Simon Marchi <simon.marchi@efficios.com>
6453
6454 * dwarf2/read.c (read_loclist_index): Change complaints into
6455 errors.
6456
2bd3e4b8
TV
64572021-02-02 Tom de Vries <tdevries@suse.de>
6458
6459 PR symtab/24620
6460 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6461 psymtab == nullptr.
6462
82a1fd3a
AB
64632021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6464
6465 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6466 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6467 here from linux-tdep.c and given a new name. Minor cleanups.
6468 (gcore_collect_regset_section_cb): Likewise.
6469 (gcore_collect_thread_registers): Likewise.
6470 (gcore_build_thread_register_notes): Likewise.
6471 (gcore_find_signalled_thread): Likewise.
6472 * gcore.h (gcore_build_thread_register_notes): Declare.
6473 (gcore_find_signalled_thread): Declare.
6474 * fbsd-tdep.c: Add 'gcore.h' include.
6475 (struct fbsd_collect_regset_section_cb_data): Delete.
6476 (fbsd_collect_regset_section_cb): Delete.
6477 (fbsd_collect_thread_registers): Delete.
6478 (struct fbsd_corefile_thread_data): Delete.
6479 (fbsd_corefile_thread): Delete.
6480 (fbsd_make_corefile_notes): Call
6481 gcore_build_thread_register_notes instead of the now deleted
6482 FreeBSD code.
6483 * linux-tdep.c: Add 'gcore.h' include.
6484 (struct linux_collect_regset_section_cb_data): Delete.
6485 (linux_collect_regset_section_cb): Delete.
6486 (linux_collect_thread_registers): Delete.
6487 (linux_corefile_thread): Call
6488 gcore_build_thread_register_notes.
6489 (find_signalled_thread): Delete.
6490 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6491
ebde6f2d
TV
64922021-01-29 Tom de Vries <tdevries@suse.de>
6493
6494 PR breakpoints/26063
6495 * infrun.c (process_event_stop_test): Reset
6496 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6497 changed.
6498
0f93c3a2
AB
64992021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6500
6501 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6502 assert. Extend the header comment.
6503
f237f998
AB
65042021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6505
6506 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6507 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6508 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6509 (tui_locator_win_info_ptr): Delete declaration.
6510 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6511 (tui_disasm_window::set_contents): Fetch state from tui_location
6512 global.
6513 (tui_get_begin_asm_address): Likewise.
6514 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6515 for locator window.
6516 (get_locator_window): Delete.
6517 (initialize_known_windows): Treat locator window just like all the
6518 rest.
6519 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6520 (tui_source_window::set_contents): Fetch state from tui_location
6521 global.
6522 (tui_source_window::showing_source_p): Likewise.
6523 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6524 (_locator): Delete.
6525 (tui_locator_win_info_ptr): Delete.
6526 (tui_locator_window::make_status_line): Fetch state from
6527 tui_location global.
6528 (tui_locator_window::rerender): Remove check of 'handle',
6529 reindent function body.
6530 (tui_locator_window::set_locator_fullname): Delete.
6531 (tui_locator_window::set_locator_info): Delete.
6532 (tui_update_locator_fullname): Delete.
6533 (tui_show_frame_info): Likewise.
6534 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6535 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6536 tui/tui-location.h and renamed to
6537 tui_location_tracker::set_location.
6538 (tui_locator_window::set_locator_fullname): Moved to
6539 tui/tui-location.h and renamed to
6540 tui_location_tracker::set_fullname.
6541 (tui_locator_window::full_name): Delete.
6542 (tui_locator_window::proc_name): Delete.
6543 (tui_locator_window::line_no): Delete.
6544 (tui_locator_window::addr): Delete.
6545 (tui_locator_window::gdbarch): Delete.
6546 (tui_update_locator_fullname): Delete declaration.
6547 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6548 for locator window.
6549 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6550 (tui_display_main): Call function on tui_location directly.
6551 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6552 * tui/tui-location.c: New file.
6553 * tui/tui-location.h: New file.
6554
8ee511af
SM
65552021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6556
6557 * gdbtypes.h (get_type_arch): Rename to...
6558 (struct type) <arch>: ... this, update all users.
6559
6ac37371
SM
65602021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6561
6562 * gdbtypes.h (struct type) <arch>: Rename to...
6563 <arch_owner>: ... this, update all users.
6564 <objfile>: Rename to...
6565 <objfile_owner>: ... this, update all users.
6566
24cf6389
AB
65672021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6568
6569 * gdbcmd.h (execute_command_to_string): Update comment.
6570 * top.c (execute_command_to_string): Update header comment.
6571
2a7f6487
TV
65722021-01-28 Tom de Vries <tdevries@suse.de>
6573
6574 PR breakpoints/27205
6575 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6576 (create_longjmp_master_breakpoint_names): New function, factored out
6577 of ...
6578 (create_longjmp_master_breakpoint): ... here. Only try to install
6579 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6580 breakpoint in libc.so failed.
6581
59b59f08
LS
65822021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6583
6584 PR gdb/27133
6585 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6586 unique_ptr is released when the wrapped pointer is kept for later
6587 use.
6588
807f647c
MM
65892021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6590
6591 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6592 BLR and BR instructions.
6593 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6594 (enum aarch64_masks): New.
6595
4ef367bf
TT
65962021-01-26 Tom Tromey <tromey@adacore.com>
6597
6598 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6599 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6600 (windows_init_thread_list, windows_nat::handle_load_dll)
6601 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6602 (windows_nat_target::resume)
6603 (windows_nat_target::get_windows_debug_event)
6604 (windows_nat_target::interrupt, windows_xfer_memory)
6605 (windows_nat_target::close): Update.
6606 * nat/windows-nat.c (DEBUG_EVENTS): Use
6607 debug_prefixed_printf_cond.
6608 (matching_pending_stop, fetch_pending_stop)
6609 (continue_last_debug_event): Update.
6610
4cb1265b
MS
66112020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6612
6613 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6614 elfcore_write_file_note.
6615
d0cc52bd
SV
66162021-01-26 Shahab Vahedi <shahab@synopsys.com>
6617
6618 * arc-tdep.c (arc_add_reggroups): New function.
6619 (arc_gdbarch_init): Call arc_add_reggroups.
6620
ac3571d9 66212021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6622
6623 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6624
9f6c202e
TV
66252021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6626 Simon Marchi <simon.marchi@polymtl.ca>
6627 Tom de Vries <tdevries@suse.de>
6628
6629 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6630 DW_AT_ranges.
6631
a625a8c9
TT
66322021-01-25 Tom Tromey <tromey@adacore.com>
6633
6634 * dwarf2/read.c (get_mpz): New function.
6635 (get_dwarf2_rational_constant): Use it.
6636
19184910
TT
66372021-01-25 Tom Tromey <tromey@adacore.com>
6638
6639 * ada-lang.c (resolve_subexp): Handle array context.
6640
b10bae18
TT
66412021-01-23 Tom Tromey <tom@tromey.com>
6642
6643 PR compile/25575
6644 * compile/compile-loc2c.c (note_register): New function.
6645 (pushf_register_address, pushf_register): Use it.
6646
3637a558
TT
66472021-01-23 Tom Tromey <tom@tromey.com>
6648
6649 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6650 Change type of "registers_used".
6651 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6652 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6653 (locexpr_generate_c_location, loclist_generate_c_location): Change
6654 type of "registers_used".
6655 * compile/compile.h (compile_dwarf_expr_to_c)
6656 (compile_dwarf_bounds_to_c): Update.
6657 * compile/compile-loc2c.c (pushf_register_address)
6658 (pushf_register, do_compile_dwarf_expr_to_c)
6659 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6660 of "registers_used".
6661 * compile/compile-c.h (generate_c_for_variable_locations):
6662 Update.
6663 * compile/compile-c-symbols.c (generate_vla_size)
6664 (generate_c_for_for_one_variable): Change type of
6665 "registers_used".
6666 (generate_c_for_variable_locations): Return std::vector.
6667 * compile/compile-c-support.c (generate_register_struct): Change
6668 type of "registers_used".
6669 (compute): Update.
6670
9f7f6cb8
TT
66712021-01-23 Tom Tromey <tom@tromey.com>
6672
6673 * compile/compile-internal.h (class compile_instance)
6674 <set_arguments>: Change return type.
6675 * compile/compile.c (compile_to_object): Remove call to reset.
6676 (compile_instance::set_arguments): Change return type.
6677
dd5ca05f
SM
66782021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6679
6680 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6681 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6682
d3ee35db
LS
66832021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6684
6685 * Makefile.in (SELFTESTS_SRCS): Add
6686 unittests/gdb_tilde_expand-selftests.c.
6687 * unittests/gdb_tilde_expand-selftests.c: New file.
6688
9d2d8a16
AB
66892021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6690
6691 PR cli/25956
6692 * NEWS: Mention new command.
6693 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6694 (version_style): Define.
6695 (cli_style_option::cli_style_option): Add intensity parameter, and
6696 use as appropriate.
6697 (_initialize_cli_style): Register version style set/show commands.
6698 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6699 (version_style): Declare.
6700 * top.c (print_gdb_version): Use version_stype, and styled_string
6701 to print the GDB version string.
6702
e7b43072
AB
67032021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6704
6705 * utils.c (emit_style_escape): Only emit an escape sequence if the
6706 requested style is different than the current applied style.
6707 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6708 current applied_style.
6709 (fputs_styled): Remove is_default check.
6710 (fputs_styled_unfiltered): Likewise.
6711 (vfprintf_styled_no_gdbfmt): Likewise.
6712
2189c312
SM
67132021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6714
6715 * remote.h (remote_debug_printf): New.
6716 (remote_debug_printf_nofunc): New.
6717 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6718 * remote.c: Use above macros throughout file.
6719
02349803
SM
67202021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6721
6722 * remote.h (remote_debug): Change to bool.
6723 * remote.c (remote_debug): Change to bool.
6724 (_initialize_remote): Adjust.
6725
cda09ec9
SM
67262021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6727
6728 * target.h (remote_debug): Move to...
6729 * remote.h (remote_debug): ... here.
6730 * top.c (remote_debug): Move to...
6731 * remote.c (remote_debug): ... here.
6732 * remote-sim.c: Include remote.h.
6733
baf2b57f
SM
67342021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6735
6736 * cli/cli-cmds.c (show_remote_debug): Remove.
6737 (show_remote_timeout): Remove.
6738 (_initialize_cli_cmds): Don't register commands.
6739 * remote.c (show_remote_debug): Move here.
6740 (show_remote_timeout): Move here.
6741 (_initialize_remote): Register commands.
6742
344e9841
SM
67432021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6744
6745 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6746 type::objfile method instead.
6747
30625020
SM
67482021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6749
6750 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6751 use the type::is_objfile_owned method.
6752
5b7d941b
SM
67532021-01-22 Simon Marchi <simon.marchi@efficios.com>
6754
6755 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6756 (TYPE_OWNER): Remove.
6757 (TYPE_OBJFILE): Adjust.
6758 (struct main_type) <flag_objfile_owned>: Rename to...
6759 <m_flag_objfile_owned>: ... this.
6760 <owner>: Rename to...
6761 <m_owner>: ... this.
6762 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6763 methods.
6764 (TYPE_ALLOC): Adjust.
6765 * gdbtypes.c (alloc_type): Adjust.
6766 (alloc_type_arch): Adjust.
6767 (alloc_type_copy): Adjust.
6768 (get_type_arch): Adjust.
6769 (smash_type): Adjust.
6770 (lookup_array_range_type): Adjust.
6771 (recursive_dump_type): Adjust.
6772 (copy_type_recursive): Adjust.
6773 * compile/compile-c-types.c (convert_func): Adjust.
6774 (convert_type_basic): Adjust.
6775 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6776 Adjust.
6777 * language.c
6778 (language_arch_info::type_and_symbol::alloc_type_symbol):
6779 Adjust.
6780
d5d24e12
LM
67812021-01-21 Luis Machado <luis.machado@linaro.org>
6782
6783 * coffread.c (enter_linenos): Passing string to complaint.
6784 * valops.c (value_assign): Make array view.
6785
a59902a7
SM
67862021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6787
6788 * auto-load.h (debug_auto_load): Move here.
6789 (auto_load_debug_printf): New.
6790 * auto-load.c: Use auto_load_debug_printf.
6791 (debug_auto_load): Move to header.
6792 * linux-thread-db.c (try_thread_db_load): Use
6793 auto_load_debug_printf.
6794 * main.c (captured_main_1): Likewise.
6795
d3abc0ce
SM
67962021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6797
6798 * f-valprint.c (f77_array_offset_tbl): Remove.
6799
1e15fcac
SM
68002021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6801
6802 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6803
439706e6
SM
68042021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6805
6806 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6807 of gdb_select.
6808
325d39e4
HD
68092021-01-21 Hannes Domani <ssbssa@yahoo.de>
6810
6811 PR python/19151
6812 * python/py-breakpoint.c (bppy_get_location): Handle
6813 bp_hardware_breakpoint.
6814 (bppy_init): Likewise.
6815 (gdbpy_breakpoint_created): Likewise.
6816
7cb6d92a
SM
68172021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6818
6819 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6820
d4dd4fca
SM
68212021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6822
6823 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6824 (_initialize_gdb_bfd): Adjust.
6825
de53369b
SM
68262021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6827
6828 PR gdb/26828
6829 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6830
17e593e9
SM
68312021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6832
6833 * dwarf2/read.c (follow_die_offset): Add logging.
6834 (dwarf2_per_objfile::age_comp_units): Add logging.
6835
6bd434d6
SM
68362021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6837
6838 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6839 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6840 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6841 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6842 * arm-tdep.c (struct frame_unwind): Make static.
6843 * auto-load.c (auto_load_safe_path_vec): Make static.
6844 * csky-tdep.c (csky_stub_unwind): Make static.
6845 * gdbarch.c (gdbarch_data_registry): Make static.
6846 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6847 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6848 * i386-tdep.c (i386_frame_setup_skip_insns,
6849 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6850 Make static.
6851 * infrun.c (observer_mode): Make static.
6852 * linux-nat.c (sigchld_action): Make static.
6853 * linux-thread-db.c (thread_db_list): Make static.
6854 * maint-test-options.c (maintenance_test_options_list):
6855 * mep-tdep.c (mep_csr_registers): Make static.
6856 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6857 (stats): Make static.
6858 * nat/linux-osdata.c (struct osdata_type): Make static.
6859 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6860 * progspace.c (last_program_space_num): Make static.
6861 * python/py-param.c (struct parm_constant): Remove struct type
6862 name.
6863 (parm_constants): Make static.
6864 * python/py-record-btrace.c (btpy_list_methods): Make static.
6865 * python/py-record.c (recpy_gap_type): Make static.
6866 * record.c (record_goto_cmdlist): Make static.
6867 * regcache.c (regcache_descr_handle): Make static.
6868 * registry.h (DEFINE_REGISTRY): Make definition static.
6869 * symmisc.c (std_in, std_out, std_err): Make static.
6870 * top.c (previous_saved_command_line): Make static.
6871 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6872 static.
6873 * unittests/command-def-selftests.c (nr_duplicates,
6874 nr_invalid_prefixcmd, lists): Make static.
6875 * unittests/observable-selftests.c (test_notification): Make
6876 static.
6877 * unittests/optional/assignment/1.cc (counter): Make static.
6878 * unittests/optional/assignment/2.cc (counter): Make static.
6879 * unittests/optional/assignment/3.cc (counter): Make static.
6880 * unittests/optional/assignment/4.cc (counter): Make static.
6881 * unittests/optional/assignment/5.cc (counter): Make static.
6882 * unittests/optional/assignment/6.cc (counter): Make static.
6883
a6c11cbb
JS
68842021-01-20 Joel Sherrill <joel@rtems.org>
6885
6886 PR gdb/27219
6887 * remote.c (struct remote_thread_info) <resume_state>: Rename
6888 to...
6889 <get_resume_state>: ... this.
6890 (remote_target::resume): Adjust.
6891 (remote_target::commit_resume): Adjust.
6892 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6893
6f52fdf4
SDJ
68942021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6895 Tom Tromey <tom@tromey.com>
6896
6897 * stap-probe.c (stap_parse_single_operand): Handle '!'
6898 operator.
6899 (stap_parse_argument_conditionally): Likewise.
6900 Skip spaces after processing open-parenthesis sub-expression.
6901 (stap_parse_argument_1): Skip spaces after call to
6902 stap_parse_argument_conditionally.
6903 Handle case when right-side expression is a parenthesized
6904 sub-expression.
6905 Skip spaces after call to stap_parse_argument_1.
6906
1c3b85ad
LS
69072021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6908
6909 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6910
a9a87d35
LM
69112021-01-19 Luis Machado <luis.machado@linaro.org>
6912
6913 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6914 memory and save data.
6915 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6916 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6917 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6918 (trad_frame_value_bytes_p): Remove.
6919 (trad_frame_reset_saved_regs): Adjust documentation.
6920 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6921 constructor and reset the state of the registers.
6922 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6923 (trad_frame_value_bytes_p, trad_frame_set_value)
6924 (trad_frame_set_realreg, trad_frame_set_addr)
6925 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6926 (trad_frame_set_reg_realreg): Update to call member function.
6927 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6928 (trad_frame_get_prev_register): Likewise.
6929
6930 * aarch64-tdep.c (aarch64_analyze_prologue)
6931 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6932 (aarch64_prologue_prev_register): Update to use member functions.
6933 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6934 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6935 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6936 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6937 (arm_make_epilogue_frame_cache): Likewise.
6938 * avr-tdep.c (avr_frame_unwind_cache)
6939 (avr_frame_prev_register): Likewise.
6940 * cris-tdep.c (cris_scan_prologue): Likewise.
6941 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6942 * frv-tdep.c (frv_analyze_prologue): Likewise.
6943 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6944 * lm32-tdep.c (lm32_frame_cache): Likewise.
6945 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6946 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6947 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6948 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6949 (reset_saved_regs): Adjust to set realreg.
6950 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6951 call member functions.
6952 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6953 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6954 (s390_backchain_frame_unwind_cache): Likewise.
6955 * score-tdep.c (score7_analyze_prologue)
6956 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6957 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6958 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6959 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6960 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6961 * tilegx-tdep.c (tilegx_analyze_prologue)
6962 (tilegx_frame_cache): Likewise.
6963 * v850-tdep.c (v850_frame_cache): Likewise.
6964 * vax-tdep.c (vax_frame_cache): Likewise.
6965
bdec2917
LM
69662021-01-19 Luis Machado <luis.machado@linaro.org>
6967
6968 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6969 of buffer + length.
6970 (put_frame_register_bytes): Likewise.
6971 Adjust documentation.
6972 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6973 (safe_frame_unwind_memory): Likewise.
6974 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6975 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6976 gdb::array_view.
6977 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6978 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6979 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6980 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6981 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6982 * dwarf2/loc.c (rw_pieced_value): Likewise.
6983 * hppa-tdep.c (hppa_frame_cache): Likewise.
6984 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6985 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6986 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6987 (i386_linux_rt_sigtramp_start): Likewise.
6988 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6989 * i386-tdep.c (i386_register_to_value): Likewise.
6990 * i387-tdep.c (i387_register_to_value): Likewise.
6991 * ia64-tdep.c (ia64_register_to_value): Likewise.
6992 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6993 (m32r_linux_rt_sigtramp_start): Likewise.
6994 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6995 * m68k-tdep.c (m68k_register_to_value): Likewise.
6996 * mips-tdep.c (mips_register_to_value)
6997 (mips_value_to_register): Likewise.
6998 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6999 (ppcfbsd_sigtramp_frame_cache): Likewise.
7000 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
7001 (ppcobsd_sigtramp_frame_cache): Likewise.
7002 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
7003 (rs6000_register_to_value): Likewise.
7004 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7005 * tramp-frame.c (tramp_frame_start): Likewise.
7006 * valops.c (value_assign): Likewise.
7007
ccbe4c82
LM
70082021-01-19 Luis Machado <luis.machado@linaro.org>
7009
7010 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
7011 array_view.
7012 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
7013 instead of buffer and size.
7014 (trad_frame_set_reg_value_bytes): Likewise.
7015 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
7016 (trad_frame_set_value_bytes): Likewise.
7017
0e7620dc
MF
70182021-01-18 Mike Frysinger <vapier@gentoo.org>
7019
7020 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
7021
6a9ad81c
AB
70222021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
7023
7024 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
7025 (riscv_fbsd_gregset): Use riscv_supply_regset.
7026 (riscv_fbsd_fpregset): Likewise.
7027 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
7028 (riscv_linux_fregset): Likewise.
7029 * riscv-tdep.c (riscv_supply_regset): Define new function.
7030 * riscv-tdep.h (riscv_supply_regset): Declare new function.
7031
d3d7d1ba
TV
70322021-01-18 Tom de Vries <tdevries@suse.de>
7033
7034 PR tdep/27172
7035 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7036 New macro.
7037 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7038 for SEGV_BNDERR.
7039
aa2838cc
SM
70402021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7041
7042 * remote.c (class remote_target) <remote_hostio_send_command,
7043 remote_hostio_parse_result>: Constify parameter.
7044 (remote_hostio_parse_result): Likewise.
7045 (remote_target::remote_hostio_send_command): Adjust.
7046 (remote_target::remote_hostio_pread_vFile): Adjust.
7047 (remote_target::fileio_readlink): Adjust.
7048 (remote_target::fileio_fstat): Adjust.
7049
b5c8f22d
SM
70502021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7051
7052 * remote.c (remote_target::start_remote): Move wait_status to
7053 narrower scope.
7054
e3b2741b
SM
70552021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7056
7057 * remote.c (class remote_target):
7058 <add_current_inferior_and_thread>: Constify parameter.
7059 (stop_reply_extract_thread): Likewise.
7060 (remote_target::get_current_thread): Likewise.
7061 (remote_target::add_current_inferior_and_thread): Likewise.
7062
cecb1912
SM
70632021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7064
7065 * remote.c (class remote_target)
7066 <remote_unpack_thread_info_response,
7067 parse_threadlist_response>: Constify parameter and/or return
7068 value and or local variable.
7069 (stub_unpack_int): Likewise.
7070 (unpack_nibble): Likewise.
7071 (unpack_byte): Likewise.
7072 (unpack_int): Likewise.
7073 (unpack_string): Likewise.
7074 (unpack_threadid): Likewise.
7075 (remote_target::remote_unpack_thread_info_response): Likewise.
7076 (remote_target::parse_threadlist_response): Likewise.
7077
5a11fff0
AB
70782021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7079
7080 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7081
17e89137
LS
70822021-01-14 Lancelot Six <lsix@lancelotsix.com>
7083
7084 * MAINTAINERS (Write After Approval): Add myself.
7085
58eadc4b
BE
70862021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7087
7088 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7089 because is_trivially_default_constructible was first implemented with
7090 gcc-5.
7091
5fae2a2c
TV
70922021-01-14 Tom de Vries <tdevries@suse.de>
7093
7094 PR breakpoints/27151
7095 * objfiles.h (in_plt_section): Handle .plt.sec.
7096
8f66807b
AB
70972021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 PR gdb/26819
7100 * remote.c
7101 (remote_target::select_thread_for_ambiguous_stop_reply): New
7102 member function.
7103 (remote_target::process_stop_reply): Call
7104 select_thread_for_ambiguous_stop_reply.
7105
bd497355
SM
71062021-01-13 Simon Marchi <simon.marchi@efficios.com>
7107
7108 * record-btrace.c (class record_btrace_target): Remove.
7109 (record_btrace_target::commit_resume): Remove.
7110 * record-full.c (class record_full_target): Remove.
7111 (record_full_target::commit_resume): Remove.
7112
c9d22089
SM
71132021-01-13 Simon Marchi <simon.marchi@efficios.com>
7114
7115 * remote.c (enum class resume_state): New.
7116 (struct resumed_pending_vcont_info): New.
7117 (struct remote_thread_info) <resume_state, set_not_resumed,
7118 set_resumed_pending_vcont, resumed_pending_vcont_info,
7119 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7120 New.
7121 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7122 (remote_target::remote_add_thread): Adjust.
7123 (remote_target::process_initial_stop_replies): Adjust.
7124 (remote_target::resume): Adjust.
7125 (remote_target::commit_resume): Rely on state in
7126 remote_thread_info and not on tp->executing.
7127 (remote_target::process_stop_reply): Adjust.
7128
d8d1feb4
SM
71292021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7130
7131 * arc-tdep.h (arc_debug_printf): New.
7132 * arc-tdep.c: Use arc_debug_printf.
7133 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7134 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7135 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7136
fb0f5031
SM
71372021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7138
7139 * arc-tdep.h (arc_debug): Change type to bool.
7140 * arc-tdep.c (arc_debug): Change type to bool.
7141 (arc_analyze_prologue): Adjust.
7142 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7143 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7144
5bf7e91b
SM
71452021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7146
7147 * auto-load.c (auto_load_objfile_script_1): Use bool.
7148 (execute_script_contents): Use bool.
7149
db972fce
SM
71502021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7151
7152 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7153 comment here.
7154 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7155 comment to header.
7156 * extension-priv.h (struct extension_language_script_ops)
7157 <auto_load_enabled>: Return bool.
7158 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7159 comment here.
7160 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7161 comment to header.
7162 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7163 move comment here.
7164 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7165 move comment to header.
7166 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7167 move comment here.
7168 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7169 move comment to header.
7170
5e12f48f
SM
71712021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7172
7173 * auto-load.h (file_is_auto_load_safe): Change return type to
7174 bool, move comment here.
7175 * auto-load.c (file_is_auto_load_safe): Change return type and
7176 advice_printed to bool. Move comment to header.
7177
54ca9002
SM
71782021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7179
7180 * jit.c (jit_debug_printf): New, use throughout file.
7181
24a7f1b5
SM
71822021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7183
7184 * infrun.c (normal_stop): Fix indentation.
7185
fe7a351a
SM
71862021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7187
7188 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7189 declarations to ...
7190 * symfile.h: ... here.
7191 * symfile.c: Update doc.
7192
16e9019e
SM
71932021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * target.h (baud_rate, serial_parity): Move declarations...
7196 * serial.h: ... here.
7197 * main.c: Include serial.h.
7198 * serial.c (baud_rate, serial_parity): Update doc.
7199
b2f2ae0d
SM
72002021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7201
7202 * top.c (pre_init_ui_hook): Remove.
7203
5291fe3c
SP
72042021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7205
7206 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7207 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7208 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7209 * features/aarch64-fpu.xml: Add bfloat16 type.
7210
ce38f5ed
AB
72112021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7212
7213 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7214
7c654b71
AB
72152021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7216
7217 * f-exp.y (dot_ops): Rename to...
7218 (fortran_operators): ...this. Add a header comment. Add symbol
7219 based operators.
7220 (yylex): Update to use fortran_operators not dot_ops. Remove
7221 special handling for '**', this is now included in
7222 fortran_operators.
7223
c6185dce
SM
72242021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7225
7226 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7227 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7228 * aarch64-tdep.c: Use aarch64_debug_printf.
7229
eef401dc
SM
72302021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7231
7232 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7233 file.
7234
062eaacb
SM
72352021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7236
7237 * jit.c (jit_debug): Change type to bool.
7238 (_initialize_jit): Adjust.
7239
54585eee
TT
72402021-01-09 Tom Tromey <tom@tromey.com>
7241
7242 PR compile/23672
7243 * compile/compile.c (compile_to_object): Avoid crash when
7244 osabi_triplet_regexp returns NULL.
7245
bc167b6b
TT
72462021-01-09 Tom Tromey <tom@tromey.com>
7247
7248 * tracepoint.h (class collection_list) <append_exp>: Take a
7249 std::string.
7250 * tracepoint.c (collection_list::append_exp): Take a std::string.
7251 (encode_actions_1): Update.
7252
8fc48b79
TT
72532021-01-08 Tom Tromey <tromey@adacore.com>
7254
7255 * parse.c (parse_expression): Add void_context_p parameter. Use
7256 parse_exp_in_context.
7257 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7258 parse_expression.
7259 (print_command, call_command): Update.
7260 * expression.h (parse_expression): Add void_context_p parameter.
7261
3c8c6de2
AB
72622021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7265 for internalvar components that have a dynamic location.
7266
1940319c
TV
72672021-01-08 Tom de Vries <tdevries@suse.de>
7268
7269 PR gdb/26881
7270 * breakpoint.c (create_exception_master_breakpoint_probe)
7271 (create_exception_master_breakpoint_hook): Factor out
7272 of ...
7273 (create_exception_master_breakpoint): ... here. Only try to install
7274 the master exception breakpoint in objfile.debug using the
7275 _Unwind_DebugHook method, if the install using probes in objfile
7276 failed.
7277
e3436813
AB
72782021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7279
7280 * f-lang.c (fortran_value_subarray): Call value_from_component.
7281
e904f56d
MF
72822021-01-07 Mike Frysinger <vapier@gentoo.org>
7283
7284 * remote-sim.c: Include memory-map.h.
7285 (gdbsim_target): Define memory_map override.
7286 (gdbsim_target::memory_map): Define.
7287
959d6a67
TT
72882021-01-07 Tom Tromey <tromey@adacore.com>
7289
7290 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7291
d4813f10
TT
72922021-01-07 Tom Tromey <tromey@adacore.com>
7293
7294 * ada-lang.c (add_component_interval): Start loop using vector's
7295 updated size.
7296
b49180ac
TT
72972021-01-06 Tom Tromey <tromey@adacore.com>
7298
7299 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7300 Do not cast result.
7301 * valarith.c (fixed_point_binop): Handle multiplication
7302 and division specially.
7303 * valops.c (value_to_gdb_mpq): New function.
7304 (value_cast_to_fixed_point): Use it.
7305
55195361
HD
73062021-01-05 Hannes Domani <ssbssa@yahoo.de>
7307
7308 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7309 Call wnoutrefresh instead of tui_win_info::refresh_window.
7310
1b6d4bb2
HD
73112021-01-05 Hannes Domani <ssbssa@yahoo.de>
7312
7313 * tui/tui-source.c (tui_source_window::show_line_number):
7314 Redraw second space after line number.
7315
b5ff370e
HD
73162021-01-05 Hannes Domani <ssbssa@yahoo.de>
7317
7318 PR tui/26927
7319 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7320 Fix source pad size in prefresh.
7321 (tui_source_window_base::show_source_content): Grow source pad
7322 if necessary.
7323
c68ea49f
MF
73242021-01-04 Mike Frysinger <vapier@gentoo.org>
7325
7326 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7327 (bfin_frame_align): Use align_down.
7328
e4ad960a
TV
73292021-01-04 Tom de Vries <tdevries@suse.de>
7330
7331 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7332 terminators that do not terminate anything.
7333
3ec3145c
SM
73342021-01-04 Simon Marchi <simon.marchi@efficios.com>
7335
7336 * debug.c (debug_print_depth): New.
7337 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7338 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7339 * infrun.c (start_step_over): Use
7340 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7341 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7342 INFRUN_SCOPED_DEBUG_START_END.
7343 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7344
e71daf80
SM
73452021-01-04 Simon Marchi <simon.marchi@efficios.com>
7346
7347 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7348
335709bc
SM
73492021-01-04 Simon Marchi <simon.marchi@efficios.com>
7350
7351 * utils.c (vfprintf_unfiltered): Print timestamp only when
7352 previous debug output ended with a newline.
7353
098caef4
LM
73542021-01-04 Luis Machado <luis.machado@linaro.org>
7355
7356 Update all users of trad_frame_saved_reg to use the new member
7357 functions.
7358
7359 Remote all struct keywords from declarations of trad_frame_saved_reg
7360 types, except on forward declarations.
7361
7362 * aarch64-tdep.c: Update.
7363 * alpha-mdebug-tdep.c: Update.
7364 * alpha-tdep.c: Update.
7365 * arc-tdep.c: Update.
7366 * arm-tdep.c: Update.
7367 * avr-tdep.c: Update.
7368 * cris-tdep.c: Update.
7369 * csky-tdep.c: Update.
7370 * frv-tdep.c: Update.
7371 * hppa-linux-tdep.c: Update.
7372 * hppa-tdep.c: Update.
7373 * hppa-tdep.h: Update.
7374 * lm32-tdep.c: Update.
7375 * m32r-linux-tdep.c: Update.
7376 * m32r-tdep.c: Update.
7377 * m68hc11-tdep.c: Update.
7378 * mips-tdep.c: Update.
7379 * moxie-tdep.c: Update.
7380 * riscv-tdep.c: Update.
7381 * rs6000-tdep.c: Update.
7382 * s390-linux-tdep.c: Update.
7383 * s390-tdep.c: Update.
7384 * score-tdep.c: Update.
7385 * sparc-netbsd-tdep.c: Update.
7386 * sparc-sol2-tdep.c: Update.
7387 * sparc64-fbsd-tdep.c: Update.
7388 * sparc64-netbsd-tdep.c: Update.
7389 * sparc64-obsd-tdep.c: Update.
7390 * sparc64-sol2-tdep.c: Update.
7391 * tilegx-tdep.c: Update.
7392 * v850-tdep.c: Update.
7393 * vax-tdep.c: Update.
7394
7395 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7396 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7397
7398 * trad-frame.c: Update.
7399 Remove TF_REG_* enum.
7400 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7401 a trivially-constructible struct.
7402 (trad_frame_reset_saved_regs): Adjust to use member function.
7403 (trad_frame_value_p): Likewise.
7404 (trad_frame_addr_p): Likewise.
7405 (trad_frame_realreg_p): Likewise.
7406 (trad_frame_value_bytes_p): Likewise.
7407 (trad_frame_set_value): Likewise.
7408 (trad_frame_set_realreg): Likewise.
7409 (trad_frame_set_addr): Likewise.
7410 (trad_frame_set_unknown): Likewise.
7411 (trad_frame_set_value_bytes): Likewise.
7412 (trad_frame_get_prev_register): Likewise.
7413 * trad-frame.h: Update.
7414 (trad_frame_saved_reg_kind): New enum.
7415 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7416 <m_kind, m_reg>: New member fields.
7417 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7418 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7419 <is_addr, is_unknown, is_value_bytes>: New member functions.
7420
9898e882
SM
74212021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7422
7423 * target-float.c: Fix typos.
7424
b66b4e65
HD
74252021-01-02 Hannes Domani <ssbssa@yahoo.de>
7426
7427 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7428
b5b5650a
JB
74292021-01-01 Joel Brobecker <brobecker@adacore.com>
7430
7431 * gdbarch.sh: Update copyright year range.
7432
3666a048
JB
74332021-01-01 Joel Brobecker <brobecker@adacore.com>
7434
7435 Update copyright year range in copyright header of all GDB files.
7436
ff7e39b6
JB
74372021-01-01 Joel Brobecker <brobecker@adacore.com>
7438
7439 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7440 to the list of directories to update.
7441
2b47c078
JB
74422021-01-01 Joel Brobecker <brobecker@adacore.com>
7443
7444 * top.c (print_gdb_version): Update copyright year.
7445
9e5e03df 74462021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 7447
476923f1 7448 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 7449
476923f1 7450For older changes see ChangeLog-2020.
c906108c
SS
7451\f
7452Local Variables:
7453mode: change-log
7454left-margin: 8
7455fill-column: 74
7456version-control: never
57da7796 7457coding: utf-8
c906108c 7458End: