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