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