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