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