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