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