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