]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Decode Ada types in Python layer
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
67470e9d
TT
12021-06-25 Tom Tromey <tromey@adacore.com>
2
3 * python/py-type.c (typy_get_name): Decode an Ada type name.
4
8a3df5ac
TT
52021-06-25 Tom Tromey <tromey@adacore.com>
6
7 * ada-lang.c (ada_decode): Add wrap parameter.
8 * ada-lang.h (ada_decode): Add wrap parameter.
9
134df964
LM
102021-06-25 Luis Machado <luis.machado@linaro.org>
11
12 * corelow.c (core_target::core_target) Update to read target
13 description.
14
224506e9
SM
152021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * python/lib/gdb/__init__.py: Format.
18
ac0d67ed
SM
192021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * infrun.c (do_target_wait): Remove wait_ptid parameter.
22 (fetch_inferior_event): Adjust.
23
4e317a76
SM
242021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
27 with name of chosen unwinder.
28 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
29 unwinder in debug message.
30
80d1206d
AS
312021-06-22 Andreas Schwab <schwab@suse.de>
32
33 PR symtab/27999
34 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
35 DW_LLE_start_end.
36
80dc83fd
AB
372021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
38
39 * breakpoint.c (insert_bp_location): If we catch a
40 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
41 been deleted.
42
96f842cb
AB
432021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 * NEWS: Mention new target feature name.
46 * arch/riscv.c (riscv_create_target_description): GDB doesn't
47 currently create target descriptions containing vector registers.
48 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
49 variable.
50 <operator==>: Also compare vlen.
51 <hash>: Also include vlen.
52 * riscv-tdep.c (riscv_feature_name_vector): New static global.
53 (struct riscv_vector_feature): New struct.
54 (riscv_vector_feature): New static global.
55 (riscv_register_reggroup_p): Ensure vector registers are part of
56 the 'all' group, and part of the 'vector' group.
57 (riscv_dwarf_reg_to_regnum): Handle vector registers.
58 (riscv_gdbarch_init): Check vector register feature.
59 * riscv-tdep.h: Add vector registers to GDB's internal register
60 numbers, and to the DWARF register numbers.
61
d52b8007
AB
622021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * NEWS: Mention the two new methods.
65 * python/py-frame.c (frapy_level): New function.
66 (frame_object_methods): Register 'level' method.
67 * python/py-unwind.c (pending_framepy_level): New function.
68 (pending_frame_object_methods): Register 'level' method.
69
8b9c48b2
AB
702021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * python/py-inferior.c (infpy_get_connection_num): Call
73 gdb_py_object_from_longest instead of PyLong_FromLong directly.
74
61e2dde2
AB
752021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
76
77 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
78 saving user registers.
79
7e3941ac
MF
802021-06-19 Mike Frysinger <vapier@gentoo.org>
81
82 * acinclude.m4: Delete most m4_include's of ../config files.
83 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
84 * aclocal.m4: Regenerate.
85 * configure: Regenerate.
86
336b30e5
PA
872021-06-17 Pedro Alves <pedro@palves.net>
88
89 * scoped_ignore_signal.h (scoped_ignore_signal): Add
90 ConsumePending template parameter.
91 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
92 sigtimedwait if ConsumePending is false.
93 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
94 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
95 <m_ignore_signal>: Initialize with ConsumePending=false.
96
2af6d46f
PA
972021-06-17 Pedro Alves <pedro@palves.net>
98
99 * Makefile.in (SELFTESTS_SRCS): Add
100 unittests/scoped_ignore_signal-selftests.c.
101 * unittests/scoped_ignore_signal-selftests.c: New.
102
6a7f1c20
PA
1032021-06-17 Pedro Alves <pedro@palves.net>
104
105 * gdbsupport/scoped_ignore_signal.h: New.
106 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
107 instead of <signal.h>. Don't include <unistd.h>.
108 (scoped_ignore_sigpipe): Remove.
109 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
110 instead of <signal.h>. Don't include <unistd.h>.
111 (lazy_init): New.
112 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
113 and lazy_init.
114
965febe5
PA
1152021-06-17 Pedro Alves <pedro@palves.net>
116
117 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
118 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
119 * inflow.h: Delete, moved to gdbsupport/ under a different name.
120 * ser-unix.c: Don't include "inflow.h". Include
121 "gdbsupport/scoped_ignore_sigttou.h".
122
82a5082e
PA
1232021-06-17 Pedro Alves <pedro@palves.net>
124
125 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
126 ...
127 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
128 tui_getc_1.
129 (cur_seq, start_sequence): New.
130 (tui_getc_1): Pass key escape sequences for curses control keys to
131 readline. Handle mouse and ctrl-l here.
132 (tui_resize_all): Disable/reenable the keypad if the command
133 window has the focus too.
134 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
135 setting.
136 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
137
7daf500d
SM
1382021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
141
8457e5ec
TV
1422021-06-16 Tom de Vries <tdevries@suse.de>
143
144 PR symtab/26327
145 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
146 (dwarf2_cu::get_builder): Declare and move ...
147 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
148 of ancestor. Assert return value is non-null.
149 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
150 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
151 (dwarf2_per_objfile): Add sym_cu field.
152
93df3340
AM
1532021-06-15 Alan Modra <amodra@gmail.com>
154
155 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
156
483ab96a
MF
1572021-06-14 Mike Frysinger <vapier@gentoo.org>
158
159 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
160 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
161
09db4332
JB
1622021-06-14 John Baldwin <jhb@FreeBSD.org>
163
164 * configure.ac: Check for <sys/procctl.h>.
165 * config.in, configure: Regenerate.
166 * fbsd-nat.c: Include <sys/procctl.h> if present.
167 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
168 (fbsd_nat_target::create_inferior)
169 (fbsd_nat_target::supports_disable_randomization): New.
170 * fbsd-nat.h (fbsd_nat_target::create_inferior)
171 (fbsd_nat_target::supports_disable_randomization): New.
172
739025e8
BE
1732021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
174
175 * compile/compile.c: Include missing header signal.h.
176
d424629d
JB
1772021-06-12 John Baldwin <jhb@FreeBSD.org>
178
179 * remote.c (remote_new_objfile): Fix indentation.
180
e2b9ea4b
KB
1812021-06-11 Kevin Buettner <kevinb@redhat.com>
182
183 * solib.c (libpthread_name_p): Match "libc" in addition
184 to "libpthread".
185 * linux-thread-db.c (libpthread_objfile_p): New function.
186 (libpthread_name_p): Adjust preexisting callers to use
187 libpthread_objfile_p().
188
873793ae
SM
1892021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
190
191 * dwarf2/loc.h (struct call_site_stuff): Remove.
192
48ec4c05
TT
1932021-06-11 Tom Tromey <tom@tromey.com>
194
195 PR rust/23427
196 * rust-parse.c (rust_parser::lex_identifier): Handle raw
197 identifiers.
198 (rust_lex_tests): Add raw identifier tests.
199
f9e59d06
LS
2002021-06-08 Lancelot Six <lsix@lancelotsix.com>
201
202 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
203 instead of '== None'.
204 (FrameVars): Use 'is not None' instead of '!= None'.
205 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
206 Use 'is None' instead of '== None' and 'is not None' instead of '!=
207 None'.
208
122373f7
SM
2092021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * inferior.h (class inferior) <in_initial_library_scan>: New.
212 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
213 * infrun.c (follow_fork_inferior): Likewise.
214 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
215 by try_thread_db_load_1
216 (thread_db_load): Return early if in_initial_library_scan is
217 set.
218 * remote.c (remote_new_objfile): Return early if
219 in_initial_library_scan is set.
220
1b453aed
PA
2212021-06-07 Pedro Alves <pedro@palves.net>
222
223 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
224 ctor.
225 * symtab.h (struct symbol): Add defaulted copy assignment
226 operator.
227
fa6ec8ef
PA
2282021-06-07 Pedro Alves <pedro@palves.net>
229
230 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
231 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
232 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
233 local.
234
c57eb1a2
PA
2352021-06-07 Pedro Alves <pedro@palves.net>
236
237 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
238 (nat_sigval_t): ... this and remove typedef of same name.
239 (struct nat_siginfo): Rename to ...
240 (nat_siginfo_t): ... this and remove typedef of same name.
241 (struct compat_sigval): Rename to ...
242 (compat_sigval_t): ... this and remove typedef of same name.
243 (struct compat_siginfo): Rename to ...
244 (compat_siginfo_t): ... this and remove typedef of same name.
245 (struct compat_x32_siginfo): Rename to ...
246 (compat_x32_siginfo_t): ... this and remove typedef of same name.
247 (amd64_linux_siginfo_fixup_common): Adjust.
248
d8ca8e9f
PA
2492021-06-07 Pedro Alves <pedro@palves.net>
250
251 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
252 __attribute__ __aligned__ from the typedef to the struct.
253
a12a15e7
AB
2542021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 PR gdb/27847
257 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
258 type_align, and spot case where the alignment is unknown.
259
ecac8d1c
CL
2602021-06-07 Carl Love <cel@us.ibm.com>
261
262 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
263 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
264 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
265 ppc64_pcrel_linkage2_target): New functions.
266 (ppc64_standard_linkage9, ppc64_standard_linkage10,
267 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
268 instruction patterns.
269 (ppc64_standard_linkage9, ppc64_standard_linkage10,
270 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
271 in define MAX expression.
272 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
273 ppc64_standard_linkage10, ppc64_standard_linkage11,
274 ppc64_standard_linkage12.
275 * (ppc_insn_prefix_dform): New function.
276
cfa8e270
SM
2772021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
278
279 PR gdb/27899
280 * sparc-nat.c (sparc_fetch_inferior_registers): Set
281 inferior_ptid instead of using switch_to_thread.
282 (sparc_store_inferior_registers): Likewise.
283
4a977544
BE
2842021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
285
286 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
287 (compile_to_object): Ignore SIGPIPE before calling the plugin.
288
8ff8c543
TT
2892021-06-05 Tom Tromey <tom@tromey.com>
290
291 * data-directory/Makefile.in (Makefile): Use correct directory
292 name.
293
19d6d783
TT
2942021-06-05 Tom Tromey <tom@tromey.com>
295
296 * data-directory/Makefile.in (Makefile): Rewrite.
297
b316465f
TT
2982021-06-05 Tom Tromey <tromey@adacore.com>
299
300 * configure: Rebuild.
301 * configure.ac: Add ACX_NONCANONICAL_TARGET.
302
ae61ef2c
SV
3032021-06-05 Shahab Vahedi <shahab@synopsys.com>
304
305 * NEWS: Document 'set disassembler-options' support for the ARC
306 target.
307 * arc-tdep.c (arc_gdbarch_init): Set
308 'gdbarch_valid_disassembler_options'.
309
386de171
TT
3102021-06-04 Tom Tromey <tromey@adacore.com>
311
312 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
313 parameter.
314 * dwarf2/loc.c (dwarf2_evaluate_property) <case
315 PROP_VARIABLE_NAME>: New case.
316 (compute_var_value): New function.
317 (sect_variable_value): Use compute_var_value.
318 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
319 (var_decl_name): New function.
320 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
321 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
322 constant.
323 (union dynamic_prop_data) <variable_name>: New member.
324 (struct dynamic_prop) <variable_name, set_variable_name>: New
325 methods.
326
4351271e
AB
3272021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * remote.c (remote_target)
330 <select_thread_for_ambiguous_stop_reply>: Add additional debug
331 output.
332
a5375566
HD
3332021-06-04 Hannes Domani <ssbssa@yahoo.de>
334
335 * python/py-tui.c (class tui_py_window): Add click function.
336 (tui_py_window::click): Likewise.
337
1bace02a
HD
3382021-06-04 Hannes Domani <ssbssa@yahoo.de>
339
340 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
341 * tui/tui-data.h (struct tui_win_info): Add click function.
342 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
343 (tui_deprep_terminal): Disable mouse events.
344 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
345 * tui/tui.c (tui_disable): Disable mouse events.
346
df5bc734
MH
3472021-06-03 Magne Hov <mhov@undo.io>
348
349 PR python/27841
350 * eval.c (expression::evaluate): Check inferior_ptid.
351
415c8100
PA
3522021-06-03 Pedro Alves <pedro@palves.net>
353
354 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
355 affiliation.
356 (Global Maintainers): Update my address.
357 (Write After Approval): Remove stale entry.
358
83810881
JB
3592021-06-03 John Baldwin <jhb@FreeBSD.org>
360
361 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
362 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
363 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
364 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
365 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
366 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
367 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
368 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
369 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
370 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
371 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
372 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
373 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
374 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
375 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
376 (fbsd_report_signal_info): New.
377 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
378 report_signal_info method.
379
4c958d79
MH
3802021-06-03 Magne Hov <mhov@undo.io>
381
382 * MAINTAINERS (Write After Approval): Add Magne Hov.
383
6ac5237c
HD
3842021-06-03 Hannes Domani <ssbssa@yahoo.de>
385
386 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
387 gdb.SYMBOL_LABEL_DOMAIN constant.
388
aeeb758d
JB
3892021-06-01 John Baldwin <jhb@FreeBSD.org>
390
391 * infrun.c (handle_inferior_event): Only call
392 gdbarch_displaced_step_restore_all_in_ptid if
393 gdbarch_supports_displaced_stepping is true.
394
906f72d4
TT
3952021-06-01 Tom Tromey <tromey@adacore.com>
396
397 * Makefile.in (all-data-directory): Remove.
398 (data-directory/Makefile): Remove.
399
ba56237d
TT
4002021-06-01 Tom Tromey <tromey@adacore.com>
401
402 * configure: Rebuild.
403 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
404
2adf1781
TT
4052021-06-01 Tom Tromey <tromey@adacore.com>
406
407 * silent-rules.mk (ECHO_CC): New variable.
408
bdbbcd57
TT
4092021-06-01 Tom Tromey <tromey@adacore.com>
410
411 * Makefile.in (SUBDIRS): Add testsuite.
412 (all): Don't exclude testsuite.
413
f99d1d37
TT
4142021-06-01 Tom Tromey <tromey@adacore.com>
415
416 * configure.ac: Copy some code from testsuite/configure.ac.
417 (enable_libctf): Subst this, not ENABLE_LIBCTF.
418 * configure: Rebuild.
419
17d305ef
TV
4202021-06-01 Tom de Vries <tdevries@suse.de>
421
422 PR symtab/26096
423 * minsyms.c (msymbol_is_cold_clone): New function.
424 (msymbol_is_function): Use msymbol_is_cold_clone.
425
9b715c68
AB
4262021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
427 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 PR gdb/14383
430 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
431 (ALLDEPFILES): Add arm-none-tdep.c
432 * arm-none-tdep.c: New file.
433 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
434
b4b3e2de
AB
4352021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
436 Richard Bunt <richard.bunt@arm.com>
437
438 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
439 check for why the backtrace stopped.
440
9ea36493
SM
4412021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
442
443 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
444 Update all callers.
445 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
446 signature parameter, update all callers.
447 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
448 signature parameter.
449
46c6bcf6
SM
4502021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
451
452 * dwarf2/read.h (signatured_type_up): New, use where possible.
453
4631503b
SM
4542021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
455
456 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
457
cc653233
TT
4582021-05-30 Tom Tromey <tom@tromey.com>
459
460 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
461 is_debug_types.
462 (create_signatured_type_table_from_index)
463 (create_signatured_type_table_from_debug_names, add_type_unit)
464 (read_comp_units_from_section): Update.
465
c96e8b04
TT
4662021-05-30 Tom Tromey <tom@tromey.com>
467
468 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
469 m_num_psymtabs>: Remove.
470 (resize_symtabs): Update.
471 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
472 (dwarf2_per_bfd::allocate_signatured_type): Update.
473
24b21115
SM
4742021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * Fix tab after space indentation issues throughout.
477
01add95b
SM
4782021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
479
480 * Fix some indentation mistakes throughout.
481
055c879f
SM
4822021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
483
484 * breakpoint.h (iterate_over_bp_locations): Remove. Update
485 users to use all_bp_locations.
486 (all_bp_locations): New.
487 * breakpoint.c (all_bp_locations): Make non-static.
488 (iterate_over_bp_locations): Remove.
489
240edef6
SM
4902021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
491
492 * breakpoint.h (iterate_over_breakpoints): Remove. Update
493 callers to use all_breakpoints or all_breakpoints_safe.
494 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
495 all_breakpoints_safe): Move here.
496 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
497 non-static.
498 (iterate_over_breakpoints): Remove.
499 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
500 Return void.
501 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
502 return value logic.
503 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
504
e0d9a270
SM
5052021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
506
507 * breakpoint.c (get_first_locp_gte_addr): Remove.
508 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
509 all_bp_locations_at_addr.
510 (struct bp_locations_at_addr_range): New.
511 (all_bp_locations_at_addr): New.
512 (bp_locations_compare_addrs): New.
513
48d7020b
SM
5142021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
515
516 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
517 all_bp_locations.
518 (all_bp_locations): New.
519
5d51cd5d
SM
5202021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
521
522 * breakpoint.c (bp_locations): Change to std::vector, update all
523 users.
524 (bp_locations_count): Remove.
525 (update_global_location_list): Change to work with indices
526 rather than bp_location**.
527
40cb8ca5
SM
5282021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
529
530 * breakpoint.h (bp_locations_range): New.
531 (struct breakpoint) <locations>: New. Use where possible.
532
f6d17b2b
SM
5332021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
534
535 * breakpoint.h (all_tracepoints): Remove.
536 (breakpoint_iterator): Move here.
537 (struct tracepoint_filter): New.
538 (tracepoint_iterator): New.
539 (tracepoint_range): New.
540 (all_tracepoints): New.
541 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
542 all_tracepoints.
543 (breakpoint_iterator): Move to header.
544 (all_tracepoints): New.
545 * tracepoint.c (start_tracing): Adjust.
546
1428b37a
SM
5472021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * breakpoint.c (breakpoint_safe_range): New.
550 (all_breakpoints_safe): New. Use instead of
551 ALL_BREAKPOINTS_SAFE where possible.
552
43892fdf
SM
5532021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
554
555 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
556 all_breakpoints.
557 (breakpoint_iterator): New.
558 (breakpoint_range): New.
559 (all_breakpoints): New.
560
bdef5723
HD
5612021-05-27 Hannes Domani <ssbssa@yahoo.de>
562
563 * python/py-tui.c (tui_py_window::output): Add full_window
564 argument.
565 (gdbpy_tui_write): Parse "full_window" argument.
566
d5a6313e
SM
5672021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
568
569 * make-init-c: Add option to reverse function calls.
570
f39632d9
SM
5712021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
572
573 * Makefile.in (INIT_FILES_FILTER_OUT): New.
574 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
575 (stamp-init): Use make-init-c.
576 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
577 * silent-rules.mk (ECHO_INIT_C): Change.
578 * make-init-c: New file.
579
5e84b7ee
SM
5802021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
581
582 * command.h (add_alias_cmd): Accept target as
583 cmd_list_element. Update callers.
584
e0f25bd9
SM
5852021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
586
587 * command.h (add_info_alias): Accept target as
588 cmd_list_element. Update callers.
589
3947f654
SM
5902021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
591
592 * command.h (add_com_alias): Accept target as
593 cmd_list_element. Update callers.
594
7bd22f56
SM
5952021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
596
597 * python/py-param.c (add_setshow_generic): Use return values of
598 add_setshow functions.
599
9f260536
SM
6002021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
601
602 * mi/mi-main.c (_initialize_mi_main):
603 * python/py-auto-load.c (gdbpy_initialize_auto_load):
604 * remote.c (_initialize_remote):
605
af7f8f52
SM
6062021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * command.h (set_show_commands): New.
609 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
610 add_setshow_boolean_cmd, add_setshow_filename_cmd,
611 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
612 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
613 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
614 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
615 Return set_show_commands. Adjust callers.
616 * cli/cli-decode.c (add_setshow_cmd_full): Return
617 set_show_commands, remove result parameters, adjust callers.
618
248f7165
TV
6192021-05-27 Tom de Vries <tdevries@suse.de>
620
621 PR symtab/27919
622 * dwarf2/read.c (process_psymtab_comp_unit):
623
2152b4fd
TV
6242021-05-27 Tom de Vries <tdevries@suse.de>
625
626 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
627 error.
628
6dcd1193
TV
6292021-05-27 Tom de Vries <tdevries@suse.de>
630
631 PR symtab/27898
632 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
633 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
634 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
635 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
636 load_all_dies init.
637 (dwarf2_per_cu_data): Remove load_all_dies field.
638
11bb5c41
SM
6392021-05-26 Simon Marchi <simon.marchi@efficios.com>
640
641 * regcache.c (reg_buffer::reg_buffer): Default-initialize
642 m_registers array.
643
ef5f598c
TT
6442021-05-26 Tom Tromey <tom@tromey.com>
645
646 * dwarf2/read.c (allocate_type_unit_groups_table)
647 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
648 htab_delete_entry.
649 (free_line_header_voidp): Remove.
650 * completer.c
651 (completion_tracker::completion_hash_entry::deleter): Remove.
652 (completion_tracker::discard_completions): Use htab_delete_entry.
653 * utils.h (htab_delete_entry): New template function.
654
a56889ae
HD
6552021-05-24 Hannes Domani <ssbssa@yahoo.de>
656
657 * python/py-tui.c (tui_py_window::refresh_window):
658 Avoid flickering.
659
fbf3c4b9
TV
6602021-05-23 Tom de Vries <tdevries@suse.de>
661
662 PR tdep/27822
663 * target.h (struct target_ops): Mention target_thread_architecture in
664 read_description comment.
665 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
666 pid to determine if process is 64-bit or 32-bit.
667 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
668 Same.
669 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
670 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
671 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
672 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
673 Likewise, use pid to determine if kernel supports reading VFP
674 registers.
675
8569d6e1
PW
6762021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
677
678 * main.c (enum cmdarg_kind): Fix option type comments for
679 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
680
778ae9cc
TV
6812021-05-21 Tom de Vries <tdevries@suse.de>
682
683 PR testsuite/25047
684 * contrib/cc-with-tweaks.sh: Handle -l.
685
6d1a09b7
TV
6862021-05-21 Tom de Vries <tdevries@suse.de>
687
688 PR breakpoint/27889
689 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
690 objects. Call get_jiter_objfile_data with the_objfile.
691
1487a14e
SM
6922021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * linespec.c (linespec_p): Remove. Replace all uses with
695 "linespec *".
696
bb6203bf
AH
6972021-05-20 Alexandra Hájková <ahajkova@redhat.com>
698 Pedro Alves <pedro@palves.net>
699
700 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
701 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
702 command_line_up instead of struct command_line.
703 (build_command_line): Likewise.
704 (get_command_line): Update the cmd function call parameter.
705 (process_next_line): Use unique_ptr command_line_up instead
706 of struct command_line.
707 (recurse_read_control_structure): Change the the type of
708 next to command_line_up.
709 (read_command_lines_1): Change type of `next' to be
710 command_line_up and update all references of `next'
711 accordingly.
712
ed3130b7
AH
7132021-05-20 Alexandra Hájková <ahajkova@redhat.com>
714
715 * MAINTAINERS (Write After Approval): Add myself.
716
5433e20e
JB
7172021-05-19 John Baldwin <jhb@FreeBSD.org>
718
719 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
720
a5523cc3
AH
7212021-05-18 Alexandra Hájková <ahajkova@redhat.com>
722
723 * inflow.c (new_tty): Do not leak tty.
724
cd53fa40
TT
7252021-05-17 Tom Tromey <tom@tromey.com>
726
727 * dwarf2/read.h: Update include.
728 * dwarf2/read.c: Update include.
729 * dwarf2/line-header.c: Update include.
730 * dwarf2/cu.h: Update include.
731 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
732 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
733 * Makefile.in (COMMON_SFILES): Update.
734
347212b8
TT
7352021-05-17 Tom Tromey <tom@tromey.com>
736
737 * dwarf2/read.c (maybe_queue_comp_unit)
738 (dwarf2_per_objfile::age_comp_units): Update.
739 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
740 dwarf2_cu methods.
741 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
742 add_dependence>: New methods.
743 <m_dependencies>: Add "m_" prefix. Now private.
744 <m_mark>: Add "m_" prefix.
745 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
746 (dwarf2_mark_helper): New function.
747 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
748
839118f9
TT
7492021-05-17 Tom Tromey <tom@tromey.com>
750
751 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
752 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
753 (dwarf2_cu::dwarf2_cu): Move to cu.c.
754 * dwarf2/cu.c: New file.
755 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
756
8ae78a44
TT
7572021-05-17 Tom Tromey <tom@tromey.com>
758
759 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
760 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
761 Move to cu.h.
762 * dwarf2/cu.h: New file.
763
c1c0a7e1
AB
7642021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
765
766 * .dir-locals.el: Set sentence-end-double-space for all modes, and
767 set brace-list-open to 0 for C and C++ modes.
768
9e541c79
TT
7692021-05-17 Tom Tromey <tromey@adacore.com>
770
771 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
772 if frame is null.
773
59173216
TT
7742021-05-17 Tom Tromey <tromey@adacore.com>
775
776 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
777 (group_from_gid): Subtract one from strncpy length.
778
baea2f9d
TT
7792021-05-17 Tom Tromey <tromey@adacore.com>
780
781 * source.c (add_path): Check 'p' before using 'p[-1]'.
782
473ab964
TT
7832021-05-17 Tom Tromey <tromey@adacore.com>
784
785 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
786 (dwarf2_per_cu_data_up): New typedef.
787 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
788 <all_comp_units>: Use dwarf2_per_cu_data_up.
789 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
790 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
791 (create_cu_from_index_list): Likewise.
792 (create_signatured_type_table_from_index)
793 (create_cus_from_debug_names_list, add_type_unit)
794 (read_comp_units_from_section): Update.
795 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
796 (run_test): Update.
797
16e0020b
TT
7982021-05-17 Tom Tromey <tom@tromey.com>
799
800 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
801 (sort_tu_by_abbrev_offset): Remove.
802 (build_type_psymtabs): Update.
803
91e159e9
SM
8042021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
805
806 * py-project.toml: New.
807 * gdb-gdb.py.in: Re-format.
808
034dce7a
SM
8092021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
810
811 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
812 New, use it.
813 * command.h (cmd_func_p): Remove.
814 * cli/cli-decode.c (cmd_func_p): Remove.
815
1be99b11
SM
8162021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
817
818 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
819
99858724
SM
8202021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
821
822 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
823 to...
824 <alias_target>: ... this.
825 (add_alias_cmd): Rename old to target.
826 (add_info_alias): Rename old_name to target_name.
827 (add_com_alias): Likewise.
828
14b42fc4
SM
8292021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
830
831 * Rename "prefixlist" parameters to "subcommands" throughout.
832 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
833 <subcommands>: ... this.
834 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
835 (lookup_cmd_with_subcommands): ... this.
836
ecd0a6b3
SM
8372021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
838
839 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
840
413b49c2
SM
8412021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
842
843 * cli/cli-decode.h (prefixname): Make const, move implementation
844 to cli/cli-decode.c.
845 * cli/cli-decode.c (cmd_list_element::prefixname): New.
846
ea11a98d
WP
8472021-05-16 Weimin Pan <weimin.pan@oracle.com>
848
849 * ctfread.c (new_symbol): Set function address.
850 (read_func_kind_type): Remove incorrect type name setting.
851 Don't copy name returned from ctf_type_ame_raw throughout file.
852
887e7158
TT
8532021-05-14 Tom Tromey <tom@tromey.com>
854
855 * rust-lang.c (rust_language::val_print_struct)
856 (rust_language::print_enum): Use common_val_print, not
857 value_print_inner.
858
55789354
TBA
8592021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
860
861 * python/py-inferior.c (infpy_get_connection_num): New function.
862 (inferior_object_getset): Add a new element for 'connection_num'.
863 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
864
2f63ec5c
AB
8652021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
868 argument type, update and re-wrap, header comment.
869 (remote_target::commit_resumed): Convert any_process_wildcard and
870 may_global_wildcard_vcont from int to bool.
871
ecf25064
KC
8722021-05-14 Kent Cheung <kent.cheung@arm.com>
873
874 * cp-valprint.c (cp_print_value): Replaced duplicate code.
875 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
876 just before printing child values.
877 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
878 printing string representation.
879 * python/py-prettyprint.c (print_children): Check max_depth just
880 before printing child values.
881 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
882 printing string representation.
883
df68e12b
MF
8842021-05-14 Mike Frysinger <vapier@gentoo.org>
885
886 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
887 sim/callback.h & sim/sim.h.
888
183aaaf7
MF
8892021-05-13 Mike Frysinger <vapier@gentoo.org>
890
891 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
892 sim-regno.h include.
893
737358ba
SM
8942021-05-13 Simon Marchi <simon.marchi@efficios.com>
895
896 * inf-child.h (inf_child_target) <follow_exec>: New.
897 * inf-child.c (inf_child_target::follow_exec): New.
898
294c36eb
SM
8992021-05-13 Simon Marchi <simon.marchi@efficios.com>
900
901 * target.h (struct target_ops) <follow_exec>: Add ptid_t
902 parameter.
903 (target_follow_exec): Likewise.
904 * target.c (target_follow_exec): Add ptid_t parameter.
905 * infrun.c (follow_exec): Adjust call to target_follow_exec,
906 don't push target nor create thread.
907 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
908 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
909 (thread_db_target::follow_exec): New.
910 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
911 (remote_target::follow_exec): Call
912 process_stratum_target::follow_exec.
913 * target-delegates.c: Re-generate.
914
2af87c85
SM
9152021-05-13 Simon Marchi <simon.marchi@efficios.com>
916
917 * infrun.c (follow_exec): Call target_follow_fork when
918 follow-exec-mode is same.
919 * target.h (target_follow_fork): Improve doc.
920
0b2256f7
SM
9212021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
922
923 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
924 Remove.
925 * cli/cli-setshow.c (do_show_command): Adjust.
926
0746f49b
LM
9272021-05-13 Luis Machado <luis.machado@linaro.org>
928
929 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
930 include the last address in the range.
931
4b8cb9dd
SM
9322021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
933
934 * python/python-internal.h (gdbpy_parse_command_name): Return
935 gdb::unique_xmalloc_ptr.
936 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
937 (cmdpy_init): Adjust.
938 * python/py-param.c (parmpy_init): Adjust.
939 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
940 when done.
941
ee35ce82
GB
9422021-05-12 George Barrett <bob@bob131.so>
943
944 * NEWS (Guile API): Note the addition of the new procedure.
945 * guile/scm-value.c (gdbscm_value_const_value): Add
946 implementation of value-const-value procedure.
947 (value_functions): Add value-const-value procedure.
948
9d4fc61d
GB
9492021-05-12 George Barrett <bob@bob131.so>
950
951 * NEWS (Guile API): Note the addition of new procedures.
952 * guile/scm-value.c (gdbscm_reference_value): Add helper function
953 for reference value creation.
954 (gdbscm_value_reference_value): Add implementation of
955 value-reference-value procedure.
956 (gdbscm_value_rvalue_reference_value): Add implementation of
957 value-rvalue-reference-value procedure.
958 (value_functions): Add value-reference-value procedure. Add
959 value-rvalue-reference-value procedure.
960
97cef6b7
GB
9612021-05-12 George Barrett <bob@bob131.so>
962
963 * guile/scm-type.c (type_integer_constants): Add binding for
964 TYPE_CODE_RVALUE_REF.
965 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
966 dereferencing of rvalue references.
967 * NEWS (Guile API): Note improvements in rvalue reference support.
968
d51344c9
MM
9692021-05-12 Markus Metzger <markus.t.metzger@intel.com>
970
971 * btrace.c (handle_pt_insn_events): Ignore status update enable
972 events.
973
f2a883a8
SM
9742021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
975
976 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
977 indentation.
978
64f30eb0
SM
9792021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
980
981 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
982
db1f6cd6
LS
9832021-05-10 Lancelot Six <lsix@lancelotsix.com>
984
985 PR gdb/27614
986 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
987 argument.
988
31aceaef
SM
9892021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
990
991 * nat/linux-waitpid.c (status_to_str): Show signal name.
992
75140e3b
AB
9932021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
994
995 * python/py-breakpoint.c (pybp_debug): New static global.
996 (show_pybp_debug): New function.
997 (pybp_debug_printf): Define.
998 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
999 (gdbpy_breakpoint_created): Add some debugging.
1000 (gdbpy_breakpoint_deleted): Likewise.
1001 (gdbpy_breakpoint_modified): Likewise.
1002 (_initialize_py_breakpoint): New function.
1003
1ef40c13
AB
10042021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * python/py-unwind.c (pyuw_debug): Convert to bool.
1007 (show_pyuw_debug): New function.
1008 (pyuw_debug_printf): Define.
1009 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1010 (pyuw_this_id): Convert to new debug print macros.
1011 (pyuw_prev_register): Likewise.
1012 (pyuw_sniffer): Likewise.
1013 (pyuw_dealloc_cache): Likewise.
1014 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1015 show function when registering.
1016
927c4e35
AB
10172021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1018
1019 * dummy-frame.c (fprint_dummy_frames): Convert use of
1020 fprint_frame_id to use frame_id::to_string.
1021 * frame.c (fprint_field): Delete.
1022 (fprint_frame_id): Moved to...
1023 (frame_id::to_string): ...this, rewritten to return a string.
1024 (fprint_frame): Convert use of fprint_frame_id to use
1025 frame_id::to_string.
1026 (compute_frame_id): Likewise.
1027 (frame_id_p): Likewise.
1028 (frame_id_eq): Likewise.
1029 (frame_id_inner): Likewise.
1030 * frame.h (struct frame_id) <to_string>: New member function.
1031 (fprint_frame_id): Delete declaration.
1032 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1033 fprint_frame_id to use frame_id::to_string.
1034 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1035 * python/py-unwind.c (unwind_infopy_str): Likewise.
1036 (pyuw_this_id): Likewise.
1037
8d06918f
SM
10382021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * nat/linux-waitpid.c (status_to_str): Return std::string.
1041 * nat/linux-waitpid.h (status_to_str): Likewise.
1042 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1043 (linux_nat_target::attach): Adjust.
1044 (linux_handle_extended_wait): Adjust.
1045 (wait_lwp): Adjust.
1046 (stop_wait_callback): Adjust.
1047 (linux_nat_filter_event): Adjust.
1048 (linux_nat_wait_1): Adjust.
1049 * nat/linux-waitpid.c (status_to_str): Adjust.
1050 * nat/linux-waitpid.h (status_to_str): Adjust.
1051
550e9289
SM
10522021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1053
1054 * infrun.h (infrun_debug_printf): Add missing space.
1055
4655f850
PA
10562021-05-08 Pedro Alves <pedro@palves.net>
1057
1058 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1059 Remove references to HAVE_PERSONALITY.
1060 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1061 (maybe_disable_address_space_randomization)
1062 (~maybe_disable_address_space_randomizatio): Remove references to
1063 HAVE_PERSONALITY.
1064 * config.in, configure: Regenerate.
1065
1845e254
AB
10662021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1067
1068 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1069 include.
1070 (source_script_with_search): Perform tilde expansion.
1071
91e3c425
SM
10722021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1073
1074 * target-descriptions.c (struct target_desc_info) <filename>:
1075 Make std::string.
1076 (copy_inferior_target_desc_info): Adjust.
1077 (target_desc_info_free): Adjust.
1078 (target_find_description): Adjust.
1079 (set_tdesc_filename_cmd): Adjust.
1080 (show_tdesc_filename_cmd): Adjust.
1081 (unset_tdesc_filename_cmd): Adjust.
1082 (maint_print_c_tdesc_cmd): Adjust.
1083
0b2f7ade
SM
10842021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1085
1086 * target-descriptions.c (struct target_desc_info): Initialize
1087 fields.
1088 (get_tdesc_info): Use new.
1089 (target_desc_info_free): Use delete.
1090
820c4490
SM
10912021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * target-descriptions.c (struct target_desc_info) <fetched>:
1094 bool.
1095 (target_find_description): Adjust.
1096 (target_clear_description): Adjust.
1097
c2962e6a
SM
10982021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1099
1100 * target-descriptions.c (struct target_desc_info) <tdesc>:
1101 Adjust doc.
1102 (target_desc_fetched): Remove.
1103 (current_target_desc): Remove.
1104 (target_description_filename): Remove.
1105 (target_find_description): Adjust.
1106 (target_clear_description): Adjust.
1107 (target_current_description): Adjust.
1108 (set_tdesc_filename_cmd): Adjust.
1109 (show_tdesc_filename_cmd): Adjust.
1110 (unset_tdesc_filename_cmd): Adjust.
1111 (maint_print_c_tdesc_cmd): Adjust.
1112 (maint_print_xml_tdesc_cmd): Adjust.
1113
8a82de58
AB
11142021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * infcmd.c (notice_new_inferior): Change parameter type.
1117 * inferior.h (notice_new_inferior): Change parameter type.
1118 * remote.c (remote_notice_new_inferior): Change parameter type to
1119 bool. Also update type of local variable to bool.
1120 (remote_target::update_thread_list): Change type of local variable
1121 to bool.
1122 (remote_target::process_stop_reply): Pass bool instead of int to
1123 remote_notice_new_inferior.
1124
bedc4734
SM
11252021-05-07 Simon Marchi <simon.marchi@efficios.com>
1126
1127 * target.c (target_stack::unpush): Call target_ops::find_beneath
1128 to get the target beneath `t`.
1129
27f0a431
SM
11302021-05-07 Simon Marchi <simon.marchi@efficios.com>
1131
1132 * target.c (target_close): Check in all inferiors that the
1133 target is not pushed.
1134
1d1669e4
AM
11352021-05-07 Aaron Merey <amerey@redhat.com>
1136
1137 * debuginfod-support.c (debuginfod_init): Remove.
1138 (get_debuginfod_client): New function.
1139
2698f5ea
TT
11402021-05-07 Tom Tromey <tom@tromey.com>
1141
1142 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1143 * utils.c (streq_hash): Remove.
1144 * utils.h (streq_hash): Don't declare.
1145 * completer.c (completion_tracker::discard_completions): Update
1146 comment.
1147 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1148
13123da8
SM
11492021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1150
1151 * Re-format all Python files using black.
1152
9589edb8
AB
11532021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1156 function return type.
1157 * guile/guile.c (gdbscm_source_script): Update to handle change in
1158 gdbscm_safe_source_script.
1159 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1160 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1161 type.
1162
ec66d6ea
SM
11632021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * inferior.h (class inferior) <args>: Change type to
1166 unique_xmalloc_ptr.
1167 * inferior.c (inferior::~inferior): Don't free args.
1168 * infcmd.c (get_inferior_args): Adjust.
1169 (set_inferior_args): Adjust.
1170
0618ecf6
AB
11712021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1172
1173 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1174 breakpoint locations when the breakpoint actually has a location.
1175
79aabb73
TBA
11762021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1177
1178 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1179 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1180 mi_cmd_break_condition.
1181 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1182 * breakpoint.h (set_breakpoint_condition): Declare a new
1183 overload.
1184 * breakpoint.c (set_breakpoint_condition): New overloaded function
1185 extracted out from ...
1186 (condition_command): ... this.
1187 * NEWS: Mention the change.
1188
10e578d7
TBA
11892021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1190
1191 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1192 '--force-condition' flag to force the condition in the
1193 '-break-insert' and '-dprintf-insert' commands.
1194 * NEWS: Mention the change.
1195
225bda24
TV
11962021-05-04 Tom de Vries <tdevries@suse.de>
1197
1198 PR guile/27806
1199 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1200 memory functions.
1201
b8efb248
TT
12022021-04-30 Tom Tromey <tom@tromey.com>
1203
1204 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1205 (add_signatured_type_cu_to_table): Remove.
1206 (create_debug_type_hash_table): Assume dwo_file is non-null.
1207 (create_debug_types_hash_table): Update comment.
1208 (create_all_type_units): Remove.
1209 (sort_tu_by_abbrev_offset): Update comment.
1210 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1211 (build_type_psymtabs): Remove.
1212 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1213 Update.
1214 (read_comp_units_from_section): Add types_htab, section_kind
1215 parameters.
1216 (create_all_comp_units): Read type units.
1217
91eea9cc
TT
12182021-04-30 Tom Tromey <tom@tromey.com>
1219
1220 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1221 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1222 <get_cu>: Now inline.
1223 <all_type_units>: Remove.
1224 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1225 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1226 (dwarf2_per_bfd::get_tu): Remove.
1227 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1228 (create_signatured_type_table_from_index)
1229 (create_signatured_type_table_from_debug_names)
1230 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1231 (dwarf2_base_index_functions::expand_all_symtabs)
1232 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1233 (dwarf2_base_index_functions::map_symbol_filenames)
1234 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1235 (add_signatured_type_cu_to_table, create_all_type_units)
1236 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1237 (create_all_comp_units): Update.
1238 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1239 (write_debug_names): Update.
1240
0d305d5c
TT
12412021-04-30 Tom Tromey <tom@tromey.com>
1242
1243 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1244 allocate_signatured_type>: Change return type.
1245 <all_comp_units, all_type_units>: Hold unique pointers.
1246 (struct dwarf2_per_cu_data): Add constructor and initializers.
1247 (struct signatured_type): Derive from dwarf2_per_cu_data.
1248 * dwarf2/read.c (type_unit_group): Derive from
1249 dwarf2_per_cu_data.
1250 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1251 (dwarf2_per_bfd::get_tu)
1252 (dwarf2_per_bfd::allocate_signatured_type)
1253 (dwarf2_per_bfd::allocate_signatured_type)
1254 (create_cu_from_index_list, create_cus_from_index_list)
1255 (create_signatured_type_table_from_index)
1256 (create_signatured_type_table_from_debug_names)
1257 (create_addrmap_from_aranges)
1258 (dwarf2_base_index_functions::find_last_source_symtab)
1259 (dw_expand_symtabs_matching_file_matcher)
1260 (dwarf2_gdb_index::expand_symtabs_matching)
1261 (dwarf2_base_index_functions::map_symbol_filenames)
1262 (create_cus_from_debug_names_list)
1263 (dw2_debug_names_iterator::next)
1264 (dwarf2_debug_names_index::expand_symtabs_matching)
1265 (create_debug_type_hash_table, add_type_unit)
1266 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1267 Update.
1268 (allocate_type_unit_groups_table): Use delete.
1269 (create_type_unit_group): Change return type. Use new.
1270 (get_type_unit_group, build_type_psymtabs_1)
1271 (build_type_psymtab_dependencies)
1272 (process_skeletonless_type_unit, set_partial_user)
1273 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1274 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1275 (read_signatured_type): Update.
1276 (dwarf2_find_containing_comp_unit): Change type of
1277 'all_comp_units'.
1278 (run_test): Update.
1279 (dwarf2_per_bfd::allocate_per_cu)
1280 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1281 Use new.
1282 (add_signatured_type_cu_to_table): Update.
1283 * dwarf2/index-write.c (write_one_signatured_type)
1284 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1285 (write_debug_names): Update.
1286
1bee48c7
TT
12872021-04-30 Tom Tromey <tromey@adacore.com>
1288
1289 * nat/windows-nat.h (get_image_name): Don't declare.
1290 * nat/windows-nat.c (get_image_name): Now static.
1291
e228ef97
TT
12922021-04-30 Tom Tromey <tromey@adacore.com>
1293
1294 * windows-nat.c (windows_nat::handle_load_dll): Update.
1295 (windows_nat_target::get_windows_debug_event): Call
1296 dll_loaded_event.
1297 (windows_add_all_dlls, windows_add_dll): Move to
1298 nat/windows-nat.c.
1299 * nat/windows-nat.h (handle_load_dll): Change parameters.
1300 (dll_loaded_event, windows_add_all_dlls): Declare.
1301 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1302 from windows-nat.c.
1303 (dll_loaded_event): New function.
1304
de071872
TT
13052021-04-30 Tom Tromey <tromey@adacore.com>
1306
1307 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1308 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1309 Declare.
1310 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1311 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1312
9e439f00
TT
13132021-04-30 Tom Tromey <tromey@adacore.com>
1314
1315 * windows-nat.c: Move code to nat/windows-nat.[ch].
1316 (_initialize_windows_nat): Call initialize_loadable.
1317 * nat/windows-nat.h (AdjustTokenPrivileges)
1318 (DebugActiveProcessStop, DebugBreakProcess)
1319 (DebugSetProcessKillOnExit, EnumProcessModules)
1320 (EnumProcessModulesEx, GetModuleInformation)
1321 (GetModuleFileNameExA, GetModuleFileNameExW)
1322 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1323 (GetCurrentConsoleFont, Wow64SuspendThread)
1324 (Wow64GetThreadContext, Wow64SetThreadContext)
1325 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1326 (AdjustTokenPrivileges_ftype)
1327 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1328 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1329 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1330 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1331 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1332 (GetConsoleFontSize_ftype)
1333 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1334 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1335 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1336 (initialize_loadable): Declare.
1337 * nat/windows-nat.c (AdjustTokenPrivileges)
1338 (DebugActiveProcessStop, DebugBreakProcess)
1339 (DebugSetProcessKillOnExit, EnumProcessModules)
1340 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1341 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1342 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1343 (Wow64GetThreadContext, Wow64SetThreadContext)
1344 (Wow64GetThreadSelectorEntry): Define.
1345 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1346 from windows-nat.c.
1347 (initialize_loadable): Likewise, and rename.
1348
1053c638
TT
13492021-04-30 Tom Tromey <tromey@adacore.com>
1350
1351 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1352 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1353 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1354 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1355 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1356 (bad): New template functions.
1357 (_initialize_loadable): Update.
1358
2869ac4b
TT
13592021-04-30 Tom Tromey <tromey@adacore.com>
1360
1361 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1362
e197dfae
SM
13632021-04-29 Simon Marchi <simon.marchi@efficios.com>
1364
1365 * auto-load.h: Split namespace declaration.
1366
89ba430c
SM
13672021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1368
1369 * infrun.c (save_waitstatus): Move variables to inner scope.
1370
8eb82ba1
AB
13712021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * NEWS: Fix typo and stray full stop.
1374
db2534b7
TT
13752021-04-28 Tom Tromey <tromey@adacore.com>
1376
1377 * ada-exp.y (primary): Use new type for null pointer.
1378 * ada-lang.c (ada_type_match): Remove "may_deref"
1379 parameter. Handle null pointer.
1380 (ada_args_match): Update.
1381 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1382 Handle null pointer.
1383
edeaceda
AB
13842021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1385
1386 * NEWS: Mention new commands.
1387 * python/python.c (python_ignore_environment): New static global.
1388 (show_python_ignore_environment): New function.
1389 (set_python_ignore_environment): New function.
1390 (python_dont_write_bytecode): New static global.
1391 (show_python_dont_write_bytecode): New function.
1392 (set_python_dont_write_bytecode): New function.
1393 (_initialize_python): Register new commands.
1394
041ca48e
AB
13952021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * extension-priv.h (struct extension_language_ops): Rename
1398 'finish_initialization' to 'initialize'.
1399 * extension.c (finish_ext_lang_initialization): Renamed to...
1400 (ext_lang_initialization): ...this, update comment, and updated
1401 the calls to reflect the change in struct extension_language_ops.
1402 * extension.h (finish_ext_lang_initialization): Renamed to...
1403 (ext_lang_initialization): ...this.
1404 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1405 (gdbscm_initialize): ...this, update comment at definition.
1406 (guile_extension_ops): Update.
1407 * main.c (captured_main_1): Update call to
1408 finish_ext_lang_initialization.
1409 * python/python.c (gdbpy_finish_initialization): Rename to...
1410 (gdbpy_initialize): ...this, update comment at definition, and
1411 update call to do_finish_initialization.
1412 (python_extension_ops): Update.
1413 (do_finish_initialization): Rename to...
1414 (do_initialize): ...this, and update comment.
1415
1178f01a
AB
14162021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * main.c (captured_main_1): Add a call to
1419 finish_ext_lang_initialization.
1420 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1421
880ae75a
AB
14222021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1425 (gdbscm_finish_initialization): Add code moved from
1426 _initialize_guile.
1427 (_initialize_guile): Move code to gdbscm_finish_initialization.
1428 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1429 _initialize_scm_arch.
1430 (_initialize_scm_arch): New function.
1431 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1432 into _initialize_scm_block.
1433 (_initialize_scm_block): New function.
1434 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1435 into _initialize_scm_frame.
1436 (_initialize_scm_frame): New function.
1437 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1438 into _initialize_scm_objfile.
1439 (_initialize_scm_objfile): New function.
1440 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1441 code into _initialize_scm_progspace.
1442 (_initialize_scm_progspace): New function.
1443 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1444 into _initialize_scm_symbol.
1445 (_initialize_scm_symbol): New function.
1446 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1447 into _initialize_scm_symtab.
1448 (_initialize_scm_symtab): New function.
1449 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1450 _initialize_scm_type.
1451 (_initialize_scm_type): New function.
1452
8e3685bf
AB
14532021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * python/py-arch.c (_initialize_py_arch): New function.
1456 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1457 * python/py-block.c (_initialize_py_block): New function.
1458 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1459 * python/py-inferior.c (_initialize_py_inferior): New function.
1460 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1461 * python/py-objfile.c (_initialize_py_objfile): New function.
1462 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1463 * python/py-progspace.c (_initialize_py_progspace): New function.
1464 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1465 * python/py-registers.c (_initialize_py_registers): New function.
1466 (gdbpy_initialize_registers): Move code to
1467 _initialize_py_registers.
1468 * python/py-symbol.c (_initialize_py_symbol): New function.
1469 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1470 * python/py-symtab.c (_initialize_py_symtab): New function.
1471 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1472 * python/py-type.c (_initialize_py_type): New function.
1473 (gdbpy_initialize_types): Move code to _initialize_py_type.
1474 * python/py-unwind.c (_initialize_py_unwind): New function.
1475 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1476 * python/python.c (_initialize_python): Move call to
1477 do_start_initialization to gdbpy_finish_initialization.
1478 (gdbpy_finish_initialization): Add call to
1479 do_start_initialization.
1480
913832e9
AB
14812021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * extension.c (struct scoped_default_signal): New struct.
1484 (scoped_default_sigint): New typedef.
1485 (finish_ext_lang_initialization): Make use of
1486 scoped_default_sigint.
1487
a3b5ef3e
AB
14882021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1489
1490 * main.c (captured_main_1): Don't pass argument to gdb_init.
1491 * top.c (gdb_init): Remove unused argument, and add header
1492 comment.
1493 * top.h (gdb_init): Remove argument.
1494
b9f90c72
LM
14952021-04-27 Luis Machado <luis.machado@linaro.org>
1496
1497 * psymtab.c (psymbol_functions::dump): Output newline.
1498 Remove wrap.
1499 * symmisc.c (dump_objfile): Likewise.
1500
2c473def
MW
15012021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1502 Simon Marchi <simon.marchi@polymtl.ca>
1503
1504 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1505 when attaching the 'auto_load_new_objfile' observer, so
1506 other observers can specify it as a dependency.
1507 * gdb/auto-load.h (struct token): Declare
1508 'auto_load_new_objfile_observer_token' as token to be used
1509 for the 'auto_load_new_objfile' observer.
1510 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1511 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1512 observer, so it gets notified after the latter.
1513
9a6e099f
MW
15142021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1515 Simon Marchi <simon.marchi@polymtl.ca>
1516
1517 * unittests/observable-selftests.c (dependency_test_counters):
1518 New.
1519 (observer_token0, observer_token1, observer_token2,
1520 observer_token3, observer_token4, observer_token5): New.
1521 (struct dependency_observer_data): New struct.
1522 (observer_dependency_test_callback): New function.
1523 (test_observers): New.
1524 (run_dependency_test): New function.
1525 (test_dependency): New.
1526 (_initialize_observer_selftest): Register dependency test.
1527
bea3329b
SM
15282021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 PR gdb/27773
1531 * cli/cli-dump.c (dump_binary_file): Check result of
1532 gdb_fopen_cloexec.
1533
c290cb01
ST
15342021-04-25 Sergei Trofimovich <siarheit@google.com>
1535
1536 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1537 by passing `process_stratum_target*` parameter.
1538
fbb46296
LS
15392021-04-25 Lancelot Six <lsix@lancelotsix.com>
1540
1541 PR gdb/22640
1542 * typeprint.h (struct type_print_options): Add print_in_hex
1543 flag.
1544 (struct print_offset_data): Add print_in_hex flag, add a
1545 constructor accepting a type_print_options* argument.
1546 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1547 default value for print_in_hex.
1548 (print_offset_data::indentation): Allow more horizontal space.
1549 (print_offset_data::print_offset_data): Add ctor.
1550 (print_offset_data::maybe_print_hole, print_offset_data::update):
1551 Handle the print_in_hex flag.
1552 (whatis_exp): Handle 'x' and 'd' flags.
1553 (print_offsets_and_sizes_in_hex): Declare.
1554 (set_print_offsets_and_sizes_in_hex): Create.
1555 (show_print_offsets_and_sizes_in_hex): Create.
1556 (_initialize_typeprint): Update help message for the ptype
1557 command, register the 'set print type hex' and 'show print type
1558 hex' commands.
1559 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1560 (c_type_print_base): Construct the print_offset_data
1561 object using the type_print_optons parameter.
1562 * rust-lang.c (rust_language::print_type): Construct the
1563 print_offset_data object using the type_print_optons parameter.
1564 * NEWS: Mention the new flags of the ptype command.
1565
18bbba46
LS
15662021-04-25 Lancelot Six <lsix@lancelotsix.com>
1567
1568 * typeprint.h (struct type_print_options): Move before
1569 print_offset_data.
1570
77393c9b
JB
15712021-04-25 Joel Brobecker <brobecker@adacore.com>
1572
1573 GDB 10.2 released.
1574
98c897e3
SM
15752021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * observable.c (observer_debug): Change to bool.
1578
9fc29955
AB
15792021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1580
1581 * dwarf2/read.c: Add 'unordered_set' include.
1582 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1583 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1584 of per_Bfd->filenames_cache cache, and use function local
1585 filenames_cache instead. Reindent.
1586 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1587
0406545d
SM
15882021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1589
1590 * breakpoint.c (iterate_over_bp_locations): Change callback to
1591 function view, remove data parameter.
1592 * breakpoint.h (iterate_over_bp_locations): Likewise.
1593 * record-full.c (record_full_sync_record_breakpoints): Remove
1594 data parameter.
1595
432ce4cf
TT
15962021-04-22 Tom Tromey <tom@tromey.com>
1597
1598 * c-typeprint.c (c_type_print_base_struct_union): Use
1599 print_spaces_filtered_with_print_options.
1600
e25d6d93
SM
16012021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1602
1603 PR gdb/27757
1604 * python/py-type.c (typy_range): Check that bounds are constant
1605 before accessing them as such.
1606 * guile/scm-type.c (gdbscm_type_range): Likewise.
1607
4efeb0d3
TBA
16082021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1609
1610 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1611 * inferior.c (inferior::add_continuation): New method, adapted
1612 from 'add_inferior_continuation'.
1613 (inferior::do_all_continuations): New method, adapted from
1614 'do_all_inferior_continuations'.
1615 (inferior::~inferior): Clear the list of continuations directly.
1616 * inferior.h (class inferior) <continuations>: Rename into...
1617 <m_continuations>: ...this and make private.
1618 * continuations.c: Remove.
1619 * continuations.h: Remove.
1620 * event-top.c: Don't include "continuations.h".
1621
1622 Update the users below.
1623 * inf-loop.c (inferior_event_handler)
1624 * infcmd.c (attach_command)
1625 (notice_new_inferior): Update.
1626
c4c493de
TBA
16272021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1628
1629 * inferior.h (class inferior) <continuations>: Change the type
1630 to be an std::list of std::function's.
1631 Update the references and uses below.
1632 * continuations.c (struct continuation): Delete.
1633 (make_continuation): Delete.
1634 (do_my_continuations_1): Delete.
1635 (do_my_continuations): Delete.
1636 (discard_my_continuations_1): Delete.
1637 (discard_my_continuations): Delete.
1638 (add_inferior_continuation): Update.
1639 (do_all_inferior_continuations): Update.
1640 (discard_all_inferior_continuations): Update.
1641 * continuations.h (add_inferior_continuation): Update to take
1642 an std::function as the parameter.
1643 * infcmd.c (struct attach_command_continuation_args): Delete.
1644 (attach_command_continuation): Delete.
1645 (attach_command_continuation_free_args): Delete.
1646 (attach_command): Update.
1647 (notice_new_inferior): Update.
1648
1194676e
TBA
16492021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1650
1651 * continuations.h: Update the general comment.
1652 * inferior.h (class inferior) <continuations>: Update the comment.
1653 * interps.c: Do not include "continuations.h".
1654
35682f0a
TBA
16552021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1656
1657 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1658 parameter. Update the references below.
1659 * continuations.c (do_my_continuations_1)
1660 (do_my_continuations)
1661 (do_all_inferior_continuations): Update.
1662 * inf-loop.c (inferior_event_handler): Update.
1663 * infcmd.c (attach_command_continuation): Update.
1664
6fee5eee
TBA
16652021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1666
1667 * infcmd.c (attach_post_wait): Update the function comment.
1668
27d0790a
TBA
16692021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1670
1671 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1672 Update the references below.
1673 (struct attach_command_continuation_args)
1674 (attach_command_continuation)
1675 (attach_command_continuation_free_args)
1676 (attach_command)
1677 (notice_new_inferior): Update to remove the reference to 'args'.
1678
c39ebbf4
TV
16792021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1680 Tom de Vries <tdevries@suse.de>
1681
1682 PR remote/27710
1683 * remote.c (remote_target_is_non_stop_p): New function.
1684 * remote.h (remote_target_is_non_stop_p): Declare.
1685 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1686 to check non-stopness using notif_state->remote rather current target.
1687
22f80c0f
TT
16882021-04-22 Tom Tromey <tom@tromey.com>
1689
1690 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1691 (struct typed_val_int) <val>: Now ULONGEST.
1692 (rust_parser::parse_array_type): Remove negative check.
1693 (rust_lex_int_test): Change 'value' to ULONGEST.
1694
05f3c0f0
AB
16952021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1696
1697 * arch-utils.c (default_addressable_memory_unit_size): Return a
1698 value based on bfd's bits per byte.
1699
7e7a35fb
TT
17002021-04-21 Tom Tromey <tom@tromey.com>
1701
1702 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1703 unsigned char.
1704 (struct dwarf2_per_cu_data): Rearrange.
1705 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1706 unsigned char.
1707 (struct comp_unit_head): Rearrange.
1708 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1709
ff507520
TV
17102021-04-21 Tom de Vries <tdevries@suse.de>
1711
1712 PR build/27681
1713 * configure.ac: Remove --without-included-regex/--with-included-regex.
1714 * config.in: Regenerate.
1715 * configure: Regenerate.
1716 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1717
10a636cc
TBA
17182021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1719
1720 * breakpoint.h (create_breakpoint): Add a new parameter,
1721 'force_condition'.
1722 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1723 argument when 'parse_extra' is false to check if the condition
1724 is invalid at all of the breakpoint locations.
1725 Update the users below.
1726 (break_command_1)
1727 (dprintf_command)
1728 (trace_command)
1729 (ftrace_command)
1730 (strace_command)
1731 (create_tracepoint_from_upload): Update.
1732 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1733 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1734 * python/py-breakpoint.c (bppy_init): Update.
1735 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1736
85c88e2a
TBA
17372021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1738
1739 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1740 disabled-by-condition locations on MI-like output.
1741 (breakpoint_1): Do not display the disabled-by-condition footnote
1742 if the output is MI-like.
1743
fd34472c
FC
17442021-04-21 Frederic Cambus <fred@statdns.com>
1745
1746 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1747 update year range in generated copyright notices.
1748
184dcd81
FW
17492021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1750
1751 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1752 qualifier_seq_noopt.
1753
525174e8
FW
17542021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1755
1756 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1757
f5dc2ee3
AB
17582021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1761 (producer_is_icc): Replace use of std::regex with gdb's
1762 compiled_regex.
1763
42c2c694
TT
17642021-04-17 Tom Tromey <tom@tromey.com>
1765
1766 PR gdb/23743:
1767 * dwarf2/read.c (class offset_view): New.
1768 (struct symbol_table_slot): Remove.
1769 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1770 <symbol_name_index, symbol_vec_index>: New methods.
1771 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1772 Rewrite.
1773 (read_gdb_index_from_buffer): Update.
1774 (struct dw2_symtab_iterator) <vec>: Change type.
1775 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1776 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1777 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1778 <append_array, append_offset>: New methods.
1779 (write_hash_table, add_address_entry, write_gdbindex_1)
1780 (write_debug_names): Update.
1781 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1782
da314dd3
TT
17832021-04-17 Tom Tromey <tom@tromey.com>
1784
1785 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1786 partial_symtabs.
1787
0b7b2c2a
TT
17882021-04-17 Tom Tromey <tom@tromey.com>
1789
1790 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1791 from map_matching_symbols. Change parameters.
1792 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1793 Rename from map_matching_symbols. Change parameters.
1794 * dwarf2/read.c (struct dwarf2_gdb_index)
1795 <expand_matching_symbols>: Rename from map_matching_symbols.
1796 Change parameters.
1797 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1798 Rename from map_matching_symbols. Change parameters.
1799 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1800 dw2_map_matching_symbols. Change parameters.
1801 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1802 implementation.
1803 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1804 map_matching_symbols. Change parameters.
1805 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1806 from map_matching_symbols. Change parameters.
1807 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1808 map_matching_symbols. Change parameters.
1809 * ada-lang.c (map_matching_symbols): New function.
1810 (add_nonlocal_symbols): Update.
1811
90160b57
TT
18122021-04-17 Tom Tromey <tom@tromey.com>
1813
1814 * quick-symbol.h (struct quick_symbol_functions)
1815 <expand_symtabs_with_fullname>: Remove.
1816 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1817 Remove.
1818 * psympriv.h (struct psymbol_functions)
1819 <expand_symtabs_with_fullname>: Remove.
1820 * dwarf2/read.c (struct dwarf2_base_index_functions)
1821 <expand_symtabs_with_fullname>: Remove.
1822 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1823 Remove.
1824 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1825 Update comment.
1826 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1827 Rewrite.
1828
7089bd88
TT
18292021-04-17 Tom Tromey <tom@tromey.com>
1830
1831 * symfile-debug.c (objfile::expand_symtabs_for_function):
1832 Rewrite.
1833 * quick-symbol.h (struct quick_symbol_functions)
1834 <expand_symtabs_for_function>: Remove.
1835 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1836 Remove.
1837 * psympriv.h (struct psymbol_functions)
1838 <expand_symtabs_for_function>: Remove.
1839 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1840 Update comment.
1841 * dwarf2/read.c (struct dwarf2_gdb_index)
1842 <expand_symtabs_for_function>: Remove.
1843 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1844 Remove.
1845 (find_slot_in_mapped_hash): Remove.
1846 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1847 (dw2_symtab_iter_init): Remove one overload.
1848 (dwarf2_gdb_index::expand_symtabs_for_function)
1849 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1850
536a40f3
TT
18512021-04-17 Tom Tromey <tom@tromey.com>
1852
1853 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1854 Rewrite.
1855 * quick-symbol.h (struct quick_symbol_functions)
1856 <map_symtabs_matching_filename>: Remove.
1857 * psymtab.c (partial_map_expand_apply)
1858 (psymbol_functions::map_symtabs_matching_filename): Remove.
1859 * psympriv.h (struct psymbol_functions)
1860 <map_symtabs_matching_filename>: Remove.
1861 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1862 Update comment.
1863 * dwarf2/read.c (struct dwarf2_base_index_functions)
1864 <map_symtabs_matching_filename>: Remove.
1865 (dw2_map_expand_apply)
1866 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1867 Remove.
1868
84d865e3
TT
18692021-04-17 Tom Tromey <tom@tromey.com>
1870
1871 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1872 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1873 Remove.
1874 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1875 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1876 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1877 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1878 Remove.
1879 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1880 (dwarf2_gdb_index::lookup_symbol)
1881 (dwarf2_debug_names_index::lookup_symbol): Remove.
1882
3bfa51a7
TT
18832021-04-17 Tom Tromey <tom@tromey.com>
1884
1885 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1886 * symmisc.c (maintenance_expand_symtabs): Update.
1887 * symfile.c (expand_symtabs_matching): Update.
1888 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1889 parameter.
1890 * quick-symbol.h (struct quick_symbol_functions)
1891 <expand_symtabs_matching>: Add 'domain' parameter.
1892 * psymtab.c (recursively_search_psymtabs)
1893 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1894 parameter.
1895 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1896 Add 'domain' parameter.
1897 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1898 'domain' parameter.
1899 * linespec.c (iterate_over_all_matching_symtabs): Update.
1900 * dwarf2/read.c (struct dwarf2_gdb_index)
1901 <expand_symtabs_matching>: Add 'domain' parameter.
1902 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1903 'domain' parameter.
1904 (dw2_expand_symtabs_matching)
1905 (dwarf2_gdb_index::expand_symtabs_matching)
1906 (dw2_debug_names_iterator)
1907 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1908 parameter.
1909
03a8ea51
TT
19102021-04-17 Tom Tromey <tom@tromey.com>
1911
1912 * symtab.c (global_symbol_searcher::expand_symtabs)
1913 (default_collect_symbol_completion_matches_break_on): Update.
1914 * symmisc.c (maintenance_expand_symtabs): Update.
1915 * symfile.h (expand_symtabs_matching): Add search_flags
1916 parameter.
1917 * symfile.c (expand_symtabs_matching): Add search_flags
1918 parameter.
1919 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1920 search_flags parameter.
1921 * quick-symbol.h (struct quick_symbol_functions)
1922 <expand_symtabs_matching>: Add search_flags parameter.
1923 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1924 * psymtab.c (recursively_search_psymtabs)
1925 (psymbol_functions::expand_symtabs_matching): Add search_flags
1926 parameter.
1927 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1928 Add search_flags parameter.
1929 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1930 search_flags parameter.
1931 * linespec.c (iterate_over_all_matching_symtabs): Update.
1932 * dwarf2/read.c (struct dwarf2_gdb_index)
1933 <expand_symtabs_matching>: Add search_flags parameter.
1934 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1935 search_flags parameter.
1936 (dw2_map_matching_symbols): Update.
1937 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1938 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1939 parameter.
1940 (dw2_debug_names_iterator): Change block_index to search flags.
1941 <m_block_index>: Likewise.
1942 (dw2_debug_names_iterator::next)
1943 (dwarf2_debug_names_index::lookup_symbol)
1944 (dwarf2_debug_names_index::expand_symtabs_for_function)
1945 (dwarf2_debug_names_index::map_matching_symbols)
1946 (dwarf2_debug_names_index::map_matching_symbols): Update.
1947 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1948 search_flags parameter.
1949 * ada-lang.c (ada_add_global_exceptions)
1950 (collect_symbol_completion_matches): Update.
1951
df35e626
TT
19522021-04-17 Tom Tromey <tom@tromey.com>
1953
1954 * symtab.c (default_collect_symbol_completion_matches_break_on):
1955 Update.
1956 * symfile.h (expand_symtabs_matching): Return bool.
1957 * symfile.c (expand_symtabs_matching): Return bool.
1958 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1959 bool.
1960 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1961 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1962 bool.
1963 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1964 bool.
1965 * psympriv.h (struct psymbol_functions)
1966 <expand_symtabs_matching>: Return bool.
1967 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1968 bool.
1969 * dwarf2/read.c (struct dwarf2_gdb_index)
1970 <expand_symtabs_matching>: Return bool.
1971 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1972 Return bool.
1973 (dw2_expand_symtabs_matching_symbol): Return bool.
1974 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1975 (dw2_expand_symtabs_matching)
1976 (dwarf2_gdb_index::expand_symtabs_matching)
1977 (dwarf2_debug_names_index::expand_symtabs_matching)
1978 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1979
e357e990
TT
19802021-04-17 Tom Tromey <tom@tromey.com>
1981
1982 * quick-symbol.h (enum block_search_flag_values): New.
1983 (block_search_flags): New enum flags type.
1984
3cbc7ac3
TT
19852021-04-16 Tom Tromey <tom@tromey.com>
1986
1987 * rust-parse.c: New file.
1988 * rust-exp.y: Remove.
1989 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1990 (SFILES): Remove rust-exp.y.
1991 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1992
1b6b755e
LM
19932021-04-16 Luis Machado <luis.machado@linaro.org>
1994
1995 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1996
c45ecc9d
JB
19972021-04-15 John Baldwin <jhb@FreeBSD.org>
1998
1999 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2000 use throughout file.
2001
a15a276b
TT
20022021-04-15 Tom Tromey <tromey@adacore.com>
2003
2004 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2005 arrays.
2006
644a2e75
TT
20072021-04-15 Tom Tromey <tromey@adacore.com>
2008
2009 * printcmd.c (print_variable_and_value): Use
2010 common_val_print_checked.
2011
9e5e03df
TT
20122021-04-15 Tom Tromey <tromey@adacore.com>
2013
2014 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2015 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2016 Update.
2017 * p-exp.y (variable): Update.
2018 * m2-exp.y (variable): Update.
2019 * go-exp.y (variable): Update.
2020 * expprint.c (dump_for_expression): New overload.
2021 * expop.h (check_objfile): New overload.
2022 (check_constant): New overload.
2023 (class var_value_operation): Use block_symbol.
2024 <get_symbol>: Rewrite.
2025 * eval.c (var_value_operation::evaluate)
2026 (var_value_operation::evaluate_funcall)
2027 (var_value_operation::evaluate_for_address)
2028 (var_value_operation::evaluate_for_address)
2029 (var_value_operation::evaluate_with_coercion)
2030 (var_value_operation::evaluate_for_sizeof)
2031 (var_value_operation::evaluate_for_cast): Update.
2032 * d-exp.y (PrimaryExpression): Update.
2033 * c-exp.y (variable): Update.
2034 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2035 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2036 (ada_var_value_operation::evaluate)
2037 (ada_var_value_operation::resolve)
2038 (ada_funcall_operation::resolve): Update.
2039 * ada-exp.y (write_var_from_sym, write_object_renaming)
2040 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2041 (maybe_overload): Update.
2042 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2043
5809fbf2
TT
20442021-04-15 Tom Tromey <tom@tromey.com>
2045 Andrew Burgess <andrew.burgess@embecosm.com>
2046
2047 * NEWS: Add entry.
2048 * main.c (captured_main_1): Call check_quiet_mode.
2049 * top.c (startup_quiet): New global.
2050 (check_quiet_mode): New function.
2051 (show_startup_quiet): New function.
2052 (init_main): Register new command.
2053 * top.h (check_quiet_mode): Declare.
2054
92e4e97a
AB
20552021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2056
2057 PR cli/25956
2058 * NEWS: Mention new early init files and command line options.
2059 * config.in: Regenerate.
2060 * configure: Regenerate.
2061 * configure.ac: Define GDBEARLYINIT.
2062 * main.c (get_earlyinit_files): New function.
2063 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2064 CMDARG_EARLYINIT_COMMAND.
2065 (captured_main_1): Add support for new command line flags, and for
2066 processing startup files.
2067 (print_gdb_help): Include startup files in the output.
2068
54b4dcc5
AB
20692021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2072 (relocate_file_path_maybe_in_datadir): ...this.
2073 (class gdb_initfile_finder): New class.
2074 (get_init_files): Now uses gdb_initfile_finder.
2075 (print_gdb_help): Print 'None found' when there are no init files.
2076
34dc0f95
TBA
20772021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2078
2079 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2080 corresponding child of the abstract DIE when iterating the
2081 children of the concrete DIE.
2082
329534fd
TV
20832021-04-13 Tom de Vries <tdevries@suse.de>
2084
2085 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2086 type to regoff_t *.
2087
d9d2ef05
LM
20882021-04-13 Luis Machado <luis.machado@linaro.org>
2089
2090 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2091 hex values.
2092
c8a37944
WS
20932021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2094
2095 * rs6000-tdep.c: Add support for single-stepping of
2096 prefixed instructions.
2097
b722acca
WS
20982021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2099
e3d528d7
WS
2100 PR gdb/27525
2101 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2102 handle the addpcis/lnia instruction.
2103
21042021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2105
b722acca
WS
2106 * MAINTAINERS (Write After Approval): Add myself.
2107
6ba4cb84
CL
21082021-4-12 Carl Love <cel@us.ibm.com>
2109
2110 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2111 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2112 float128.
2113
d4717483
SM
21142021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2117 * nat/windows-nat.h: Likewise.
2118
b3885679
EZ
21192021-04-10 Eli Zaretskii <eliz@gnu.org>
2120
2121 * windows-nat.c (windows_nat::handle_load_dll): Call
2122 windows_add_dll if get_image_name failed to glean the name of the
2123 DLL by using the lpImageName pointer.
2124 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2125 (windows_add_dll): Now does what windows_add_all_dlls did before,
2126 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2127 specifies the address where the DLL was loaded into the inferior,
2128 and looks for the single DLL loaded at that address.
2129
1ef6a596
LM
21302021-04-09 Luis Machado <luis.machado@linaro.org>
2131
2132 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2133
83a559f7
DQ
21342021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2135
2136 * darwin-nat.c (darwin_nat_target::resume): Remove status
2137 variable.
2138
16e311ab
FW
21392021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2140
2141 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2142 prologue end for Intel compilers.
2143 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2144 * producer.c (producer_is_icc_ge_19): New function.
2145 * producer.h (producer_is_icc_ge_19): New declaration.
2146
fbb3bcfc
FW
21472021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2148
2149 * producer.c: (producer_is_icc): Update for new version scheme.
2150 (producer_parsing_tests): Update names and expected results.
2151 * producer.h: (producer_is_icc): Update comment accordingly.
2152
e97007b6
SM
21532021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2154
2155 * target.h (struct target_ops) <follow_fork>: Return void.
2156 (target_follow_fork): Likewise.
2157 * target.c (default_follow_fork): Likewise.
2158 (target_follow_fork): Likewise.
2159 * infrun.c (follow_fork_inferior): Adjust.
2160 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2161 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2162 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2163 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2164 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2165 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2166 * remote.c (class remote_target) <follow_fork>: Likewise.
2167 (remote_target::follow_fork): Likewise.
2168 * target-delegates.c: Re-generate.
2169
dc2b480f
WP
21702021-04-07 Weimin Pan <weimin.pan@oracle.com>
2171
2172 * ctfread.c (fetch_tid_type): New function, use throughout file.
2173 (read_forward_type): New function.
2174 (read_type_record): Call read_forward_type.
2175
0a703a4c
AB
21762021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2177
2178 * f-exp.h (class fortran_structop_operation): New class.
2179 * f-exp.y (exp): Create fortran_structop_operation instead of the
2180 generic structop_operation.
2181 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2182 expression as EVAL_NORMAL if the result type was dynamic so we can
2183 extract the actual array bounds.
2184 (fortran_structop_operation::evaluate): New function.
2185
21862021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2187
2188 * eval.c (evaluate_subexp_standard): Remove
2189 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2190 STRUCTOP_PTR.
2191
30ab3586
AB
21922021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2193
2194 * valops.c (value_cast): Call value_deeply_equal before performing
2195 any cast.
2196
5e18990f
AB
21972021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2198
2199 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2200 the function.
2201
56d467f4
CT
22022021-04-07 Caroline Tice <cmtice@google.com>
2203
2204 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2205 the search paths used resolve relative location of .dwo file.
2206
1fd999d9
AB
22072021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2210 assert.
2211 (dwarf2_section_info::get_file_name): Add an assert.
2212 (dwarf2_section_info::read_string): Display a minimal, sane error
2213 when the dwarf2_section_info is not associated with a bfd section.
2214
79c02443
AB
22152021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * top.c (staged_gdb_datadir): Update comment.
2218 (set_gdb_datadir): Copy the value of gdb_datadir back into
2219 staged_datadir.
2220 (init_main): Initialise staged_gdb_datadir.
2221
340d00fb
TV
22222021-04-06 Tom de Vries <tdevries@suse.de>
2223
2224 PR breakpoints/25884
2225 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2226 stepping range.
2227
d811a7cf
TV
22282021-04-06 Tom de Vries <tdevries@suse.de>
2229
2230 PR tui/27680
2231 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2232 to style.parse.
2233
306b445a
SM
22342021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2235
2236 * avr-tdep.c (avr_frame_unwind_cache): Use
2237 trad_frame_saved_reg::is_addr.
2238
9161c89a
SM
22392021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2240
2241 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2242 adjust callers.
2243
0072c873
SM
22442021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2245
2246 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2247 objfile parameter for objfile_per_bfd_storage, adjust callers.
2248 (struct standard_psymtab) <standard_psymtab>: Likewise.
2249 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2250 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2251 * ctfread.c (struct ctf_psymtab): Likewise.
2252 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2253 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2254 (dwarf2_create_include_psymtab): Likewise.
2255 * objfiles.h (struct objfile_per_bfd_storage)
2256 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2257 <get_bfd>: New method.
2258 <m_bfd>: New field.
2259 * objfiles.c (get_objfile_bfd_data): Adjust.
2260
9984dd99
SM
22612021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2262
2263 * psymtab.c (partial_symtab::partial_symtab): Change
2264 last_objfile_name to be an std::string.
2265 * symfile.c (allocate_symtab): Likewise.
2266
4a4f97c1
SM
22672021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2268
2269 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2270 methods.
2271 (struct objfile) <intern>: Use
2272 objfile::objfile_per_bfd_storage::intern.
2273
0672875f
SM
22742021-04-01 Simon Marchi <simon.marchi@efficios.com>
2275
2276 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2277 with type::is_flag_enum.
2278
9902b327
SM
22792021-04-01 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * gdbtypes.h (struct type) <is_flag_enum,
2282 set_is_flag_enum>: New methods.
2283 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2284 write call sites to use type::set_is_flag_enum.
2285
3bc440a2
SM
22862021-04-01 Simon Marchi <simon.marchi@efficios.com>
2287
2288 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2289 with type::is_declared_class.
2290
aa70e35c
SM
22912021-04-01 Simon Marchi <simon.marchi@efficios.com>
2292
2293 * gdbtypes.h (struct type) <is_declared_class,
2294 set_is_declared_class>: New methods.
2295 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2296 write call sites to use type::set_is_declared_class.
2297
bfb9f5dc
BS
22982021-02-28 Boris Staletic <boris.staletic@gmail.com>
2299
2300 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2301 to avoid deprecation warnings.
2302
733f5eea
ML
23032021-04-01 Martin Liska <mliska@suse.cz>
2304
2305 * cp-name-parser.y: Use startswith instead of strncmp.
2306 * m2-exp.y: Likewise.
2307 * macroexp.c (substitute_args): Likewise.
2308 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2309 * rust-exp.y: Likewise.
2310
af82f89d
TT
23112021-03-31 Tom Tromey <tom@tromey.com>
2312
2313 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2314 with dw2_map_matching_symbols.
2315 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2316 dw2_expand_symtabs_matching.
2317
3570682a
TT
23182021-03-31 Tom Tromey <tromey@adacore.com>
2319
2320 * dwarf2/stringify.h: Fix typo.
2321
8a91fbdf
SM
23222021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2323
2324 PR gdb/27541
2325 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2326 with objfiles using READNOW.
2327
9f67fc59
TT
23282021-03-29 Tom Tromey <tromey@adacore.com>
2329
2330 * top.c (check_frame_language_change): Update.
2331 * language.c (language_info): Remove parameter.
2332 * language.h (language_info): Remove parameter.
2333
9b8ffbf4
LM
23342021-03-29 Luis Machado <luis.machado@linaro.org>
2335
2336 * compile/compile.c (get_args): Don't add empty argv entries.
2337
25b48839
RO
23382021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2339
2340 gdb:
2341 * procfs.c (procfs_target::attach): Define inf.
2342 Use it.
2343 (procfs_target::create_inferior): Likewise.
2344
edc02ceb
TT
23452021-03-28 Tom Tromey <tom@tromey.com>
2346
2347 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2348 (elf_symfile_read): Simplify.
2349 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2350 (make_lazy_dwarf_reader): New function.
2351 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2352 (dwarf2_initialize_objfile): Return void. Remove index_kind
2353 parameter. Push on 'qf' list.
2354 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2355 type. Remove 'index_kind' parameter.
2356 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2357
6e23d91a
TT
23582021-03-27 Tom Tromey <tom@tromey.com>
2359
2360 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2361
594b8948
TT
23622021-03-27 Tom Tromey <tom@tromey.com>
2363
2364 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2365
efe1ecd8
LS
23662021-03-26 Lancelot Six <lsix@lancelotsix.com>
2367
2368 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2369 rid of 'local'.
2370
f4655dee
TT
23712021-03-26 Tom Tromey <tom@tromey.com>
2372
2373 * symtab.c (struct output_source_filename_data): Add 'output'
2374 method and operator().
2375 (output_source_filename_data::output): Rename from
2376 output_source_filename.
2377 (output_partial_symbol_filename): Remove.
2378 (info_sources_command): Update.
2379 (struct add_partial_filename_data): Add operator().
2380 (add_partial_filename_data::operator()): Rename from
2381 maybe_add_partial_symtab_filename.
2382 (make_source_files_completion_list): Update.
2383 * symfile.c (quick_symbol_functions): Update.
2384 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2385 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2386 'need_fullname'. Remove 'data' parameter.
2387 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2388 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2389 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2390 Change type of 'fun' and 'need_fullname'. Remove 'data'
2391 parameter.
2392 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2393 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2394 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2395 parameter.
2396 (mi_cmd_file_list_exec_source_files): Update.
2397 * dwarf2/read.c
2398 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2399
2315bb2d
TT
24002021-03-26 Tom Tromey <tom@tromey.com>
2401
2402 * ada-lang.c (struct match_data): Add operator().
2403 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2404 (callback): Remove 'callback'.
2405
e2cd5ca4
TT
24062021-03-26 Tom Tromey <tom@tromey.com>
2407
2408 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2409 call make_ignore_params once.
2410
cd43f63e
TT
24112021-03-26 Tom Tromey <tom@tromey.com>
2412
2413 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2414 "user" check.
2415
b4b1a226
SM
24162021-03-26 Simon Marchi <simon.marchi@efficios.com>
2417 Pedro Alves <pedro@palves.net>
2418
2419 * async-event.c: Include "infrun.h".
2420 (async_event_handler_marked): New.
2421 * async-event.h (async_event_handler_marked): Declare.
2422 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2423 inferior before calling target method. Don't commit-resumed if
2424 target_has_pending_events is true.
2425 * remote.c (remote_target::has_pending_events): New.
2426 * target-delegates.c: Regenerate.
2427 * target.c (target_has_pending_events): New.
2428 * target.h (target_ops::has_pending_events): New target method.
2429 (target_has_pending_events): New.
2430
1192f124
SM
24312021-03-26 Simon Marchi <simon.marchi@efficios.com>
2432 Pedro Alves <pedro@palves.net>
2433
2434 * infcmd.c (run_command_1, attach_command, detach_command)
2435 (interrupt_target_1): Use scoped_disable_commit_resumed.
2436 * infrun.c (do_target_resume): Remove
2437 target_commit_resume call.
2438 (commit_resume_all_targets): Remove.
2439 (maybe_set_commit_resumed_all_targets): New.
2440 (maybe_call_commit_resumed_all_targets): New.
2441 (enable_commit_resumed): New.
2442 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2443 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2444 (scoped_disable_commit_resumed::reset)
2445 (scoped_disable_commit_resumed::reset_and_commit)
2446 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2447 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2448 New.
2449 (proceed): Use scoped_disable_commit_resumed and
2450 maybe_call_commit_resumed_all_targets.
2451 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2452 * infrun.h (struct scoped_disable_commit_resumed): New.
2453 (maybe_call_commit_resumed_all_process_targets): New.
2454 (struct scoped_enable_commit_resumed): New.
2455 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2456 * process-stratum-target.h (class process_stratum_target):
2457 <commit_resumed_state>: New.
2458 * record-full.c (record_full_wait_1): Change commit_resumed_state
2459 around calling commit_resumed.
2460 * remote.c (class remote_target) <commit_resume>: Rename to...
2461 <commit_resumed>: ... this.
2462 (struct stop_reply): Move up.
2463 (remote_target::commit_resume): Rename to...
2464 (remote_target::commit_resumed): ... this. Check if there is any
2465 thread pending vCont resume.
2466 (remote_target::remote_stop_ns): Generate stop replies for resumed
2467 but pending vCont threads.
2468 (remote_target::wait_ns): Add gdb_assert.
2469 * target-delegates.c: Regenerate.
2470 * target.c (target_wait, target_resume): Assert that the current
2471 process_stratum target isn't in commit-resumed state.
2472 (defer_target_commit_resume): Remove.
2473 (target_commit_resume): Remove.
2474 (target_commit_resumed): New.
2475 (make_scoped_defer_target_commit_resume): Remove.
2476 (target_stop): Assert that the current process_stratum target
2477 isn't in commit-resumed state.
2478 * target.h (struct target_ops) <commit_resume>: Rename to ...
2479 <commit_resumed>: ... this.
2480 (target_commit_resume): Remove.
2481 (target_commit_resumed): New.
2482 (make_scoped_defer_target_commit_resume): Remove.
2483 * top.c (wait_sync_command_done): Use
2484 scoped_enable_commit_resumed.
2485
e5b9b39f
PA
24862021-03-26 Pedro Alves <pedro@palves.net>
2487
2488 * target.c (target_always_non_stop_p): Also check whether the
2489 target can async.
2490
bab287cd
TT
24912021-03-26 Tom Tromey <tom@tromey.com>
2492
2493 * dwarf2/read.c (dwarf2_read_debug_names)
2494 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2495 (dw2_debug_names_iterator::next, create_type_unit_group):
2496 Simplify.
2497
eff4f69d
PA
24982021-03-25 Pedro Alves <pedro@palves.net>
2499
2500 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2501 around setting the breakpoint.
2502
323fd5b9
PA
25032021-03-25 Pedro Alves <pedro@palves.net>
2504
2505 * remote.c
2506 (remote_target::check_pending_events_prevent_wildcard_vcont):
2507 Check whether the event's ptid is not null_ptid before looking up
2508 the corresponding inferior.
2509
d3cbca38
CD
25102021-03-24 Changbin Du <changbin.du@gmail.com>
2511
2512 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2513 read_code.
2514
328d42d8
SM
25152021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2516
2517 * target.h (current_top_target): Remove, make callers use the
2518 current inferior instead.
2519 * target.c (current_top_target): Remove.
2520
d777bf0d
SM
25212021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * target.h (target_shortname): Change to function declaration.
2524 (target_longname): Likewise.
2525 (target_attach_no_wait): Likewise.
2526 (target_post_attach): Likewise.
2527 (target_prepare_to_store): Likewise.
2528 (target_supports_enable_disable_tracepoint): Likewise.
2529 (target_supports_string_tracing): Likewise.
2530 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2531 (target_supports_dumpcore): Likewise.
2532 (target_dumpcore): Likewise.
2533 (target_can_run_breakpoint_commands): Likewise.
2534 (target_files_info): Likewise.
2535 (target_post_startup_inferior): Likewise.
2536 (target_insert_fork_catchpoint): Likewise.
2537 (target_remove_fork_catchpoint): Likewise.
2538 (target_insert_vfork_catchpoint): Likewise.
2539 (target_remove_vfork_catchpoint): Likewise.
2540 (target_insert_exec_catchpoint): Likewise.
2541 (target_remove_exec_catchpoint): Likewise.
2542 (target_set_syscall_catchpoint): Likewise.
2543 (target_rcmd): Likewise.
2544 (target_can_lock_scheduler): Likewise.
2545 (target_can_async_p): Likewise.
2546 (target_is_async_p): Likewise.
2547 (target_execution_direction): Likewise.
2548 (target_extra_thread_info): Likewise.
2549 (target_pid_to_exec_file): Likewise.
2550 (target_thread_architecture): Likewise.
2551 (target_find_memory_regions): Likewise.
2552 (target_make_corefile_notes): Likewise.
2553 (target_get_bookmark): Likewise.
2554 (target_goto_bookmark): Likewise.
2555 (target_stopped_by_watchpoint): Likewise.
2556 (target_stopped_by_sw_breakpoint): Likewise.
2557 (target_supports_stopped_by_sw_breakpoint): Likewise.
2558 (target_stopped_by_hw_breakpoint): Likewise.
2559 (target_supports_stopped_by_hw_breakpoint): Likewise.
2560 (target_have_steppable_watchpoint): Likewise.
2561 (target_can_use_hardware_watchpoint): Likewise.
2562 (target_region_ok_for_hw_watchpoint): Likewise.
2563 (target_can_do_single_step): Likewise.
2564 (target_insert_watchpoint): Likewise.
2565 (target_remove_watchpoint): Likewise.
2566 (target_insert_hw_breakpoint): Likewise.
2567 (target_remove_hw_breakpoint): Likewise.
2568 (target_can_accel_watchpoint_condition): Likewise.
2569 (target_can_execute_reverse): Likewise.
2570 (target_get_ada_task_ptid): Likewise.
2571 (target_filesystem_is_local): Likewise.
2572 (target_trace_init): Likewise.
2573 (target_download_tracepoint): Likewise.
2574 (target_can_download_tracepoint): Likewise.
2575 (target_download_trace_state_variable): Likewise.
2576 (target_enable_tracepoint): Likewise.
2577 (target_disable_tracepoint): Likewise.
2578 (target_trace_start): Likewise.
2579 (target_trace_set_readonly_regions): Likewise.
2580 (target_get_trace_status): Likewise.
2581 (target_get_tracepoint_status): Likewise.
2582 (target_trace_stop): Likewise.
2583 (target_trace_find): Likewise.
2584 (target_get_trace_state_variable_value): Likewise.
2585 (target_save_trace_data): Likewise.
2586 (target_upload_tracepoints): Likewise.
2587 (target_upload_trace_state_variables): Likewise.
2588 (target_get_raw_trace_data): Likewise.
2589 (target_get_min_fast_tracepoint_insn_len): Likewise.
2590 (target_set_disconnected_tracing): Likewise.
2591 (target_set_circular_trace_buffer): Likewise.
2592 (target_set_trace_buffer_size): Likewise.
2593 (target_set_trace_notes): Likewise.
2594 (target_get_tib_address): Likewise.
2595 (target_set_permissions): Likewise.
2596 (target_static_tracepoint_marker_at): Likewise.
2597 (target_static_tracepoint_markers_by_strid): Likewise.
2598 (target_traceframe_info): Likewise.
2599 (target_use_agent): Likewise.
2600 (target_can_use_agent): Likewise.
2601 (target_augmented_libraries_svr4_read): Likewise.
2602 (target_log_command): Likewise.
2603 * target.c (target_shortname): New.
2604 (target_longname): New.
2605 (target_attach_no_wait): New.
2606 (target_post_attach): New.
2607 (target_prepare_to_store): New.
2608 (target_supports_enable_disable_tracepoint): New.
2609 (target_supports_string_tracing): New.
2610 (target_supports_evaluation_of_breakpoint_conditions): New.
2611 (target_supports_dumpcore): New.
2612 (target_dumpcore): New.
2613 (target_can_run_breakpoint_commands): New.
2614 (target_files_info): New.
2615 (target_post_startup_inferior): New.
2616 (target_insert_fork_catchpoint): New.
2617 (target_remove_fork_catchpoint): New.
2618 (target_insert_vfork_catchpoint): New.
2619 (target_remove_vfork_catchpoint): New.
2620 (target_insert_exec_catchpoint): New.
2621 (target_remove_exec_catchpoint): New.
2622 (target_set_syscall_catchpoint): New.
2623 (target_rcmd): New.
2624 (target_can_lock_scheduler): New.
2625 (target_can_async_p): New.
2626 (target_is_async_p): New.
2627 (target_execution_direction): New.
2628 (target_extra_thread_info): New.
2629 (target_pid_to_exec_file): New.
2630 (target_thread_architecture): New.
2631 (target_find_memory_regions): New.
2632 (target_make_corefile_notes): New.
2633 (target_get_bookmark): New.
2634 (target_goto_bookmark): New.
2635 (target_stopped_by_watchpoint): New.
2636 (target_stopped_by_sw_breakpoint): New.
2637 (target_supports_stopped_by_sw_breakpoint): New.
2638 (target_stopped_by_hw_breakpoint): New.
2639 (target_supports_stopped_by_hw_breakpoint): New.
2640 (target_have_steppable_watchpoint): New.
2641 (target_can_use_hardware_watchpoint): New.
2642 (target_region_ok_for_hw_watchpoint): New.
2643 (target_can_do_single_step): New.
2644 (target_insert_watchpoint): New.
2645 (target_remove_watchpoint): New.
2646 (target_insert_hw_breakpoint): New.
2647 (target_remove_hw_breakpoint): New.
2648 (target_can_accel_watchpoint_condition): New.
2649 (target_can_execute_reverse): New.
2650 (target_get_ada_task_ptid): New.
2651 (target_filesystem_is_local): New.
2652 (target_trace_init): New.
2653 (target_download_tracepoint): New.
2654 (target_can_download_tracepoint): New.
2655 (target_download_trace_state_variable): New.
2656 (target_enable_tracepoint): New.
2657 (target_disable_tracepoint): New.
2658 (target_trace_start): New.
2659 (target_trace_set_readonly_regions): New.
2660 (target_get_trace_status): New.
2661 (target_get_tracepoint_status): New.
2662 (target_trace_stop): New.
2663 (target_trace_find): New.
2664 (target_get_trace_state_variable_value): New.
2665 (target_save_trace_data): New.
2666 (target_upload_tracepoints): New.
2667 (target_upload_trace_state_variables): New.
2668 (target_get_raw_trace_data): New.
2669 (target_get_min_fast_tracepoint_insn_len): New.
2670 (target_set_disconnected_tracing): New.
2671 (target_set_circular_trace_buffer): New.
2672 (target_set_trace_buffer_size): New.
2673 (target_set_trace_notes): New.
2674 (target_get_tib_address): New.
2675 (target_set_permissions): New.
2676 (target_static_tracepoint_marker_at): New.
2677 (target_static_tracepoint_markers_by_strid): New.
2678 (target_traceframe_info): New.
2679 (target_use_agent): New.
2680 (target_can_use_agent): New.
2681 (target_augmented_libraries_svr4_read): New.
2682 (target_log_command): New.
2683 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2684 * infrun.c (set_schedlock_func): Adjust.
2685 * mi/mi-main.c (exec_reverse_continue): Adjust.
2686 * reverse.c (exec_reverse_once): Adjust.
2687 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2688 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2689 * remote-sim.c (gdbsim_target::detach): Adjust.
2690 (gdbsim_target::files_info): Adjust.
2691
b64f703b
TT
26922021-03-24 Tom Tromey <tom@tromey.com>
2693
2694 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2695 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2696 (check_match, dw2_expand_symtabs_matching)
2697 (dwarf2_debug_names_index::map_matching_symbols)
2698 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2699
68f115f8
KS
27002021-03-24 Keith Seitz <keiths@redhat.com>
2701
2702 * compile/compile-cplus-types.c
2703 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2704 thinko.
2705
41c0087b
SM
27062021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2707
2708 * gdbarch.sh (gdbarch_data_registry): Make static.
2709 * gdbarch.c: Re-generate.
2710
ce192338
LM
27112021-03-24 Luis Machado <luis.machado@linaro.org>
2712
2713 * NEWS: Mention memory tagging changes.
2714
bef382e6
LM
27152021-03-24 Luis Machado <luis.machado@linaro.org>
2716
2717 * printcmd.c (decode_format): Handle the 'm' modifier.
2718 (do_examine): Display allocation tags when required/supported.
2719 (should_validate_memtags): New function.
2720 (print_command_1): Display memory tag mismatches.
2721 * valprint.c (show_memory_tag_violations): New function.
2722 (value_print_option_defs): Add new option "memory-tag-violations".
2723 (user_print_options) <memory_tag_violations>: Initialize to 1.
2724 * valprint.h (struct format_data) <print_tags>: New field.
2725 (value_print_options) <memory_tag_violations>: New field.
2726
48136e00
LM
27272021-03-24 Luis Machado <luis.machado@linaro.org>
2728
2729 * printcmd.c: Include gdbsupport/rsp-low.h.
2730 (memory_tag_list): New static global.
2731 (process_print_command_args): Factored out of
2732 print_command_1.
2733 (print_command_1): Use process_print_command_args.
2734 (show_addr_not_tagged, show_memory_tagging_unsupported)
2735 (memory_tag_command, memory_tag_print_tag_command)
2736 (memory_tag_print_logical_tag_command)
2737 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2738 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2739 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2740 functions.
2741 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2742
ffcc2a15
LM
27432021-03-24 Luis Machado <luis.machado@linaro.org>
2744
2745 * aarch64-linux-tdep.c
2746 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2747 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2748
cf44c9fa
LM
27492021-03-24 Luis Machado <luis.machado@linaro.org>
2750
2751 * aarch64-linux-tdep.c
2752 (aarch64_linux_report_signal_info): New function.
2753 (aarch64_linux_init_abi): Register
2754 aarch64_linux_report_signal_info as the report_signal_info hook.
2755 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2756 (SEGV_MTESERR): Define.
2757
b4a7d4fc
LM
27582021-03-24 Luis Machado <luis.machado@linaro.org>
2759
2760 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2761 (aarch64_linux_ltag_tests): New function.
2762 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2763
c7782e50
LM
27642021-03-24 Luis Machado <luis.machado@linaro.org>
2765
2766 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2767 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2768 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2769 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2770 functions.
2771 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2772 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2773 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2774 (aarch64_linux_get_ltag): New functions.
2775 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2776 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2777 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2778 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2779
1e735120
LM
27802021-03-24 Luis Machado <luis.machado@linaro.org>
2781
2782 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2783 bit.
2784 (struct smaps_data): New struct.
2785 (decode_vmflags): Handle the 'mt' flag.
2786 (parse_smaps_data): New function, refactored from
2787 linux_find_memory_regions_full.
2788 (linux_address_in_memtag_page): New function.
2789 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2790 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2791
93e447c6
LM
27922021-03-24 Luis Machado <luis.machado@linaro.org>
2793
2794 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2795 instead of char arrays.
2796
4601818e
LM
27972021-03-24 Luis Machado <luis.machado@linaro.org>
2798
2799 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2800 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2801 nat/aarch64-mte-linux-ptrace.h.
2802 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2803 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2804 override.
2805 <fetch_memtags>: New method override.
2806 <store_memtags>: New method override.
2807 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2808 (aarch64_linux_nat_target::fetch_memtags): New method.
2809 (aarch64_linux_nat_target::store_memtags): New method.
2810 * arch/aarch64-mte-linux.c: New file.
2811 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2812 (AARCH64_MTE_GRANULE_SIZE): Define.
2813 (aarch64_memtag_type): New enum.
2814 (aarch64_mte_get_tag_granules): New prototype.
2815 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2816 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2817 * nat/aarch64-mte-linux-ptrace.c: New file.
2818 * nat/aarch64-mte-linux-ptrace.h: New file.
2819
3f3bd8b8
LM
28202021-03-24 Luis Machado <luis.machado@linaro.org>
2821
2822 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2823 * nat/aarch64-mte-linux-ptrace.h: New file.
2824
5e984dbf
LM
28252021-03-24 Luis Machado <luis.machado@linaro.org>
2826
2827 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2828 (store_mteregs_to_thread): New function.
2829 (aarch64_linux_nat_target::fetch_registers): Update to call
2830 fetch_mteregs_from_thread.
2831 (aarch64_linux_nat_target::store_registers): Update to call
2832 store_mteregs_to_thread.
2833 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2834 (aarch64_cannot_store_register): Handle MTE registers.
2835 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2836 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2837 <has_mte>: New method.
2838 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2839
c1bd443b
LM
28402021-03-24 Luis Machado <luis.machado@linaro.org>
2841
2842 * aarch64-linux-nat.c
2843 (aarch64_linux_nat_target::read_description): Take MTE flag into
2844 account.
2845 Slight refactor to hwcap flag checking.
2846 * aarch64-linux-tdep.c
2847 (aarch64_linux_core_read_description): Likewise.
2848 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2849 MTE.
2850 (aarch64_read_description): Add mte_p parameter and update to use it.
2851 Update the documentation.
2852 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2853 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2854 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2855 (aarch64_create_target_description): Add mte_p parameter and update
2856 the code to use it.
2857 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2858 parameter.
2859 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2860 * features/aarch64-mte.c: New file, generated.
2861 * features/aarch64-mte.xml: New file.
2862
04245125
LM
28632021-03-24 Luis Machado <luis.machado@linaro.org>
2864
2865 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2866 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2867 * aarch64-linux-tdep.c: Likewise
2868 * arch/aarch64-mte-linux.h: New file.
2869
754487e2
LM
28702021-03-24 Luis Machado <luis.machado@linaro.org>
2871
2872 * remote: Include gdbsupport/selftest.h.
2873 (test_memory_tagging_functions): New function.
2874 (_initialize_remote): Register test_memory_tagging_functions.
2875
2c2e7f87
LM
28762021-03-24 Luis Machado <luis.machado@linaro.org>
2877
2878 * remote.c (PACKET_memory_tagging_feature): New enum.
2879 (remote_memory_tagging_p): New function.
2880 (remote_protocol_features): New "memory-tagging" entry.
2881 (remote_target::remote_query_supported): Handle memory tagging
2882 support.
2883 (remote_target::supports_memory_tagging): Implement.
2884 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2885 (create_store_memtags_request): New functions.
2886 (remote_target::fetch_memtags): Implement.
2887 (remote_target::store_memtags): Implement.
2888 (_initialize_remote): Add new "memory-tagging-feature"
2889 config command.
2890
c193949e
LM
28912021-03-24 Luis Machado <luis.machado@linaro.org>
2892
2893 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2894 (default_memtag_matches_p, default_set_memtags)
2895 (default_get_memtag): New functions.
2896 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2897 (default_memtag_matches_p, default_set_memtags)
2898 (default_get_memtag): New prototypes.
2899 * gdbarch.c: Regenerate.
2900 * gdbarch.h: Regenerate.
2901 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2902 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2903 (enum memtag_type): New enum.
2904
dbe692af
LM
29052021-03-24 Luis Machado <luis.machado@linaro.org>
2906
2907 * remote.c (remote_target) <supports_memory_tagging>: New method
2908 override.
2909 <fetch_memtags>: New method override.
2910 <store_memtags>: New method override.
2911 (remote_target::supports_memory_tagging): New method.
2912 (remote_target::fetch_memtags): New method.
2913 (remote_target::store_memtags): New method.
2914 * target-delegates.c: Regenerate.
2915 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2916 method.
2917 <fetch_memtags>: New virtual method.
2918 <store_memtags>: New virtual method.
2919 (target_supports_memory_tagging): Define.
2920 (target_fetch_memtags): Define.
2921 (target_store_memtags): Define.
2922 * target-debug.h (target_debug_print_size_t)
2923 (target_debug_print_const_gdb_byte_vector_r)
2924 (target_debug_print_gdb_byte_vector_r): New functions.
2925
66848ebc
SM
29262021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2927
2928 * target.h (target_longname): Remove.
2929
c8fbd44a
SM
29302021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2931
2932 * target.h (target_is_pushed): Remove, update callers to use
2933 inferior::target_is_pushed instead.
2934 * target.c (target_is_pushed): Remove.
2935
02980c56
SM
29362021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2937
2938 * target.h (push_target): Remove, update callers to use
2939 inferior::push_target.
2940 * target.c (push_target): Remove.
2941 * inferior.h (class inferior) <push_target>: New overload.
2942
fadf6add
SM
29432021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2944
2945 * target.h (unpush_target): Remove, update all callers
2946 to use `inferior::unpush_target` instead.
2947 (struct target_unpusher) <operator()>: Just declare.
2948 * target.c (unpush_target): Remove.
2949 (target_unpusher::operator()): New.
2950
702cf3f5
AB
29512021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2954 error.
2955 (process_full_comp_unit): Validate the top-level tag before
2956 processing the first DIE.
2957 (read_func_scope): Ensure we have a valid builder.
2958
46fec642
AB
29592021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * objc-lang.c (objc_demangle): Renamed to
2962 objc_language::demangle_symbol, and moved later in the file.
2963 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2964 member function.
2965 (objc_language::demangle_symbol): Defined outside of class
2966 declaration. The definition is the old objc_demangle with NULL
2967 changed to nullptr, and if conditions relating to nullptr pointers
2968 or null character checks made explicit.
2969 * objc-lang.h (objc_demangle): Delete declaration.
2970
08dedd66
ML
29712021-03-22 Martin Liska <mliska@suse.cz>
2972
2973 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2974 (_initialize_arm_tdep): Likewise.
2975
eb36a3eb
TT
29762021-03-20 Tom Tromey <tom@tromey.com>
2977
2978 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2979 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2980 * psymtab.h (make_psymbol_functions): Don't declare.
2981 * psymtab.c (make_psymbol_functions): Remove.
2982 (maintenance_print_psymbols): Update.
2983 * psympriv.h (struct psymbol_functions): Add no-argument
2984 constructor.
2985 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2986 <partial_symtabs>: Remove.
2987 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2988 * elfread.c (read_partial_symbols): Update.
2989 (elf_symfile_read): Remove check for existing partial symbols.
2990 Don't clear "qf".
2991 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2992 partial symbols.
2993 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2994 partial symtabs.
2995 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2996 parameter.
2997 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2998 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2999
e1114590
TT
30002021-03-20 Tom Tromey <tom@tromey.com>
3001
3002 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3003 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3004 * symfile-debug.c (objfile::has_partial_symbols)
3005 (objfile::find_last_source_symtab)
3006 (objfile::forget_cached_source_info)
3007 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3008 (objfile::print_stats, objfile::dump)
3009 (objfile::expand_symtabs_for_function)
3010 (objfile::expand_all_symtabs)
3011 (objfile::expand_symtabs_with_fullname)
3012 (objfile::map_matching_symbols)
3013 (objfile::expand_symtabs_matching)
3014 (objfile::find_pc_sect_compunit_symtab)
3015 (objfile::map_symbol_filenames)
3016 (objfile::find_compunit_symtab_by_address)
3017 (objfile::lookup_global_symbol_language)
3018 (objfile::require_partial_symbols): Update.
3019 * psymtab.c (maintenance_print_psymbols)
3020 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3021 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3022 * objfiles.c (objfile_relocate1): Update.
3023 * elfread.c (elf_symfile_read): Update.
3024
de909f0b
TT
30252021-03-20 Tom Tromey <tom@tromey.com>
3026
3027 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3028
caf8c1e5
TT
30292021-03-20 Tom Tromey <tom@tromey.com>
3030
3031 * psymtab.c (psymbol_functions::count_psyms): Rename.
3032 (psymbol_functions::print_stats): Update.
3033 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3034 method.
3035
3aa31ce7
TT
30362021-03-20 Tom Tromey <tom@tromey.com>
3037
3038 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3039 (psymbol_functions::find_pc_sect_psymtab): Rename.
3040 (psymbol_functions::find_pc_sect_compunit_symtab)
3041 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3042 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3043 Declare new method.
3044 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3045
7b249e47
TT
30462021-03-20 Tom Tromey <tom@tromey.com>
3047
3048 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3049 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3050 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3051 parameter.
3052 (add_psymbol_to_bcache): Remove.
3053 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3054 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3055 Likewise.
3056 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3057 <add_psymbol>: Likewise.
3058 (standard_psymtab, legacy_psymtab): Likewise.
3059 * mdebugread.c (parse_partial_symbols): Update.
3060 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3061 (handle_psymbol_enumerators): Update.
3062 (new_psymtab): Add partial_symtabs parameter.
3063 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3064 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3065 parameter.
3066 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3067 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3068 Update.
3069 * dbxread.c (read_dbx_symtab): Update.
3070 (start_psymtab): Add partial_symtabs parameter.
3071 (dbx_end_psymtab): Update.
3072 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3073 (ctf_psymtab): Add partial_symtabs parameter.
3074 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3075 Update.
3076 (scan_partial_symbols): Add partial_symtabs parameter.
3077 (scan_partial_symbols, elfctf_build_psymtabs)
3078 (ctf_psymtab_add_enums): Update.
3079
d1eef86d
TT
30802021-03-20 Tom Tromey <tom@tromey.com>
3081
3082 * symfile.c (read_symbols): Use objfile method.
3083 * symfile-debug.c (objfile::require_partial_symbols): New method.
3084 * psymtab.h (require_partial_symbols): Don't declare.
3085 * psymtab.c (require_partial_symbols): Use objfile method. Now
3086 static.
3087 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3088 (psymbol_functions::lookup_symbol)
3089 (psymbol_functions::lookup_global_symbol_language)
3090 (psymbol_functions::find_last_source_symtab)
3091 (psymbol_functions::forget_cached_source_info)
3092 (psymbol_functions::print_stats)
3093 (psymbol_functions::expand_symtabs_for_function)
3094 (psymbol_functions::expand_all_symtabs)
3095 (psymbol_functions::expand_symtabs_with_fullname)
3096 (psymbol_functions::map_symbol_filenames)
3097 (psymbol_functions::map_matching_symbols)
3098 (psymbol_functions::expand_symtabs_matching)
3099 (psymbol_functions::find_compunit_symtab_by_address)
3100 (maintenance_print_psymbols, maintenance_info_psymtabs)
3101 (maintenance_check_psymtabs): Update.
3102 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3103 new method.
3104
eb00e468
TT
31052021-03-20 Tom Tromey <tom@tromey.com>
3106
3107 * xcoffread.c (xcoff_sym_fns): Update.
3108 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3109 * symfile-debug.c (objfile::has_partial_symbols): Use
3110 can_lazily_read_symbols.
3111 (debug_sym_read_psymbols): Remove.
3112 (debug_sym_fns, install_symfile_debug_logging): Update.
3113 * quick-symbol.h (struct quick_symbol_functions)
3114 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3115 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3116 * mipsread.c (ecoff_sym_fns): Update.
3117 * machoread.c (macho_sym_fns): Update.
3118 * elfread.c (struct lazy_dwarf_reader): New.
3119 (elf_symfile_read): Update.
3120 (read_psyms): Now a method of lazy_dwarf_reader.
3121 (elf_sym_fns): Update.
3122 (elf_sym_fns_lazy_psyms): Remove.
3123 * dbxread.c (aout_sym_fns): Update.
3124 * coffread.c (coff_sym_fns): Update.
3125
b29b98cf
TT
31262021-03-20 Tom Tromey <tom@tromey.com>
3127
3128 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3129 (reread_symbols): Move reset_psymtabs call later.
3130 * objfiles.c (objfile::objfile): Don't initialize
3131 partial_symtabs.
3132
17d66340
TT
31332021-03-20 Tom Tromey <tom@tromey.com>
3134
3135 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3136 set_partial_symtabs.
3137 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3138 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3139 parameter.
3140 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3141 parameter.
3142 (psymbol_functions::find_pc_sect_compunit_symtab)
3143 (psymbol_functions::print_stats, psymbol_functions::dump)
3144 (psymbol_functions::has_symbols): Update.
3145 (make_psymbol_functions, dump_psymtab_addrmap): Add
3146 partial_symtabs parameter.
3147 (maintenance_print_psymbols): Update.
3148 (psymbol_functions::expand_symtabs_matching): Update.
3149 * psympriv.h (struct psymbol_functions): Add constructor.
3150 <m_partial_symtabs>: New member.
3151 <set_partial_symtabs>: New method.
3152
84685904
TT
31532021-03-20 Tom Tromey <tom@tromey.com>
3154
3155 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3156 parameter.
3157 (process_psymtab_comp_unit_reader)
3158 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3159 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3160 Reference psymtabs via per_bfd.
3161
79cc99f6
TT
31622021-03-20 Tom Tromey <tom@tromey.com>
3163
3164 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3165 Remove.
3166 (add_address_entry): Remove objfile parameter.
3167 (add_address_entry_worker): Update.
3168 (write_address_map): Replace objfile parameter with per_bfd.
3169 (write_gdbindex, write_psymtabs_to_index): Update.
3170
4829711b
TT
31712021-03-20 Tom Tromey <tom@tromey.com>
3172
3173 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3174 print_bcache parameter.
3175 * symfile-debug.c (objfile::print_stats): Add print_bcache
3176 parameter.
3177 * quick-symbol.h (struct quick_symbol_functions)
3178 <print_stats>: Add print_bcache parameter.
3179 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3180 code to psymtab.c.
3181 (print_objfile_statistics): Move psymtab code to psymtab.c.
3182 * psymtab.c (count_psyms): Move from symmisc.c.
3183 (psymbol_functions::print_stats): Print partial symbol and bcache
3184 statistics. Add print_bcache parameter.
3185 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3186 (struct objfile) <print_stats>: Add print_bcache parameter.
3187 * maint.c (maintenance_print_statistics): Update.
3188
efd7398e
TT
31892021-03-20 Tom Tromey <tom@tromey.com>
3190
3191 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3192 member.
3193 * dwarf2/read.c (create_addrmap_from_index)
3194 (create_addrmap_from_aranges): Set per_bfd addrmap.
3195 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3196 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3197 per_bfd addrmap.
3198 (dwarf2_read_debug_names): Don't set partial_symtabs.
3199 (dwarf2_initialize_objfile): Likewise.
3200
51962708
TT
32012021-03-20 Tom Tromey <tom@tromey.com>
3202
3203 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3204 earlier.
3205
484b1090
TT
32062021-03-20 Tom Tromey <tom@tromey.com>
3207
3208 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3209 (~psymtab_discarder, keep): Update.
3210 <m_objfile>: Remove.
3211 <m_partial_symtabs>: New member.
3212 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3213
7e9c0476
TT
32142021-03-20 Tom Tromey <tom@tromey.com>
3215
3216 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3217 (xcoff_end_psymtab): Update.
3218 (scan_xcoff_symtab): Add partial_symtabs parameter.
3219 (xcoff_initial_scan): Update.
3220 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3221 * mdebugread.c (mdebug_build_psymtabs): Update.
3222 (parse_partial_symbols): Add partial_symtabs parameter.
3223 * dbxread.c (dbx_symfile_read): Update.
3224 (read_dbx_symtab): Add partial_symtabs parameter.
3225 (read_dbx_symtab): Update.
3226 (dbx_end_psymtab): Add partial_symtabs parameter.
3227
75336a5a
TT
32282021-03-20 Tom Tromey <tom@tromey.com>
3229
3230 * quick-symbol.h (struct quick_symbol_functions)
3231 <relocated>: New method.
3232 * psymtab.h (struct psymbol_functions) <relocated>: New
3233 method.
3234 <fill_psymbol_map>: Declare method.
3235 <m_psymbol_map>: New member.
3236 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3237 (psymbol_functions::find_compunit_symtab_by_address): Update.
3238 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3239 (struct objfile) <psymbol_map>: Remove.
3240 * objfiles.c (objfile_relocate1): Update.
3241
39298a5d
TT
32422021-03-20 Tom Tromey <tom@tromey.com>
3243
3244 * psympriv.h (struct psymbol_functions): New.
3245 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3246 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3247 (objfile::lookup_global_symbol_language): Update.
3248 * quick-symbol.h (struct quick_symbol_functions): Convert function
3249 pointers to methods. Add virtual destructor.
3250 (quick_symbol_functions_up): New typedef.
3251 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3252 (dwarf2_debug_names_functions): Don't declare.
3253 (make_psymbol_functions): Declare.
3254 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3255 (psymbol_functions::find_pc_sect_compunit_symtab)
3256 (psymbol_functions::lookup_symbol)
3257 (psymbol_functions::lookup_global_symbol_language)
3258 (psymbol_functions::find_last_source_symtab)
3259 (psymbol_functions::forget_cached_source_info)
3260 (psymbol_functions::print_stats, psymbol_functions::dump)
3261 (psymbol_functions::expand_symtabs_for_function)
3262 (psymbol_functions::expand_all_symtabs)
3263 (psymbol_functions::expand_symtabs_with_fullname)
3264 (psymbol_functions::map_symbol_filenames)
3265 (psymbol_functions::map_matching_symbols)
3266 (psymbol_functions::expand_symtabs_matching)
3267 (psymbol_functions::has_symbols)
3268 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3269 (psym_functions): Remove.
3270 (make_psymbol_functions): New function.
3271 * objfiles.h (struct objfile) <qf>: Change type.
3272 * elfread.c (elf_symfile_read): Update.
3273 * dwarf2/read.c (struct dwarf2_base_index_functions)
3274 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3275 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3276 (dwarf2_base_index_functions::find_last_source_symtab)
3277 (dwarf2_base_index_functions::forget_cached_source_info)
3278 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3279 (dwarf2_gdb_index::lookup_symbol)
3280 (dwarf2_base_index_functions::print_stats)
3281 (dwarf2_gdb_index::dump)
3282 (dwarf2_gdb_index::expand_symtabs_for_function)
3283 (dwarf2_base_index_functions::expand_all_symtabs)
3284 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3285 Rename.
3286 (dwarf2_gdb_index::map_matching_symbols): New method.
3287 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3288 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3289 (dwarf2_base_index_functions::map_symbol_filenames)
3290 (dwarf2_base_index_functions::has_symbols): Rename.
3291 (dwarf2_gdb_index_functions): Remove.
3292 (dwarf2_debug_names_index::lookup_symbol)
3293 (dwarf2_debug_names_index::dump)
3294 (dwarf2_debug_names_index::expand_symtabs_for_function)
3295 (dwarf2_debug_names_index::map_matching_symbols)
3296 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3297 (dwarf2_debug_names_functions): Remove.
3298 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3299 Declare.
3300
5c3f1e5b
TT
33012021-03-20 Tom Tromey <tom@tromey.com>
3302
3303 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3304 null.
3305 * xcoffread.c (xcoff_sym_fns): Update.
3306 * symfile.h (struct sym_fns) <qf>: Remove.
3307 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3308 * symfile-debug.c (objfile::has_partial_symbols)
3309 (objfile::find_last_source_symtab)
3310 (objfile::forget_cached_source_info)
3311 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3312 (objfile::print_stats, objfile::dump)
3313 (objfile::expand_symtabs_for_function)
3314 (objfile::expand_all_symtabs)
3315 (objfile::expand_symtabs_with_fullname)
3316 (objfile::map_matching_symbols)
3317 (objfile::expand_symtabs_matching)
3318 (objfile::find_pc_sect_compunit_symtab)
3319 (objfile::map_symbol_filenames)
3320 (objfile::find_compunit_symtab_by_address)
3321 (objfile::lookup_global_symbol_language, debug_sym_fns)
3322 (install_symfile_debug_logging): Update.
3323 * objfiles.h (struct objfile) <qf>: New member.
3324 * mipsread.c (ecoff_sym_fns): Update.
3325 * machoread.c (macho_sym_fns): Update.
3326 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3327 Don't declare.
3328 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3329 * dbxread.c (aout_sym_fns): Update.
3330 * coffread.c (coff_sym_fns): Update.
3331
9b99dcc8
TT
33322021-03-20 Tom Tromey <tom@tromey.com>
3333
3334 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3335 (expand_symtabs_file_matcher_ftype)
3336 (expand_symtabs_symbol_matcher_ftype)
3337 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3338 Move to quick-symbol.h.
3339 * quick-symbol.h: New file.
3340
4d080b46
TT
33412021-03-20 Tom Tromey <tom@tromey.com>
3342
3343 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3344 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3345 (basic_lookup_transparent_type_quick)
3346 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3347 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3348 Update.
3349 * symmisc.c (print_objfile_statistics, dump_objfile)
3350 (maintenance_expand_symtabs): Update.
3351 * symfile.c (symbol_file_add_with_addrs)
3352 (expand_symtabs_matching, map_symbol_filenames): Update.
3353 * symfile-debug.c (objfile::has_partial_symbols)
3354 (objfile::find_last_source_symtab)
3355 (objfile::forget_cached_source_info)
3356 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3357 (objfile::print_stats, objfile::dump)
3358 (objfile::expand_symtabs_for_function)
3359 (objfile::expand_all_symtabs)
3360 (objfile::expand_symtabs_with_fullname)
3361 (objfile::map_matching_symbols)
3362 (objfile::expand_symtabs_matching)
3363 (objfile::find_pc_sect_compunit_symtab)
3364 (objfile::map_symbol_filenames)
3365 (objfile::find_compunit_symtab_by_address)
3366 (objfile::lookup_global_symbol_language): New methods.
3367 (debug_sym_quick_functions): Remove.
3368 (debug_sym_fns, install_symfile_debug_logging): Update.
3369 * source.c (forget_cached_source_info_for_objfile)
3370 (select_source_symtab): Update.
3371 * objfiles.h (struct objfile): Add methods corresponding to
3372 quick_symbol_functions.
3373 * objfiles.c (objfile::has_partial_symbols): Move to
3374 symfile-debug.c.
3375 * linespec.c (iterate_over_all_matching_symtabs): Update.
3376 * cp-support.c (add_symbol_overload_list_qualified): Update.
3377 * ada-lang.c (add_nonlocal_symbols): Update.
3378
fae2120b
TT
33792021-03-20 Tom Tromey <tom@tromey.com>
3380
3381 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3382 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3383 bool.
3384 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3385 * psymtab.c (psym_has_symbols): Return bool.
3386 * objfiles.c (objfile::has_partial_symbols): Return bool.
3387 * dwarf2/read.c (dw2_has_symbols): Return bool.
3388
a8ad4f3c
TT
33892021-03-20 Tom Tromey <tom@tromey.com>
3390
3391 * symfile.c (read_symbols): Update.
3392 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3393 (objfile_has_partial_symbols): Don't declare.
3394 * objfiles.c (objfile::has_partial_symbols): Rename from
3395 objfile_has_partial_symbols.
3396 (objfile_has_symbols, have_partial_symbols): Update.
3397 * elfread.c (elf_symfile_read): Update.
3398 * dwarf2/read.c (dwarf2_has_info): Update.
3399 * coffread.c (coff_symfile_read): Update.
3400
70182375
TT
34012021-03-20 Tom Tromey <tom@tromey.com>
3402
3403 * coffread.c: Include dwarf2/public.h.
3404 * dwarf2/frame.c: Include dwarf2/public.h.
3405 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3406 * dwarf2/public.h: New file.
3407 * dwarf2/read.c: Include dwarf2/public.h.
3408 * elfread.c: Include dwarf2/public.h.
3409 * machoread.c: Include dwarf2/public.h.
3410 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3411 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3412 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3413 * xcoffread.c: Include dwarf2/public.h.
3414
18038e63
TT
34152021-03-20 Tom Tromey <tom@tromey.com>
3416
3417 * symfile.h (enum dwarf2_section_enum)
3418 (dwarf2_get_section_info): Move to dwarf2/read.h.
3419 * dwarf2/read.h (enum dwarf2_section_enum)
3420 (dwarf2_get_section_info): Move from symfile.h.
3421
219f56b4
PA
34222021-03-19 Pedro Alves <pedro@palves.net>
3423
3424 * thread.c (any_thread_of_inferior): Check if there's a selected
3425 thread before calling inferior_thread().
3426
15310fd4
TT
34272021-03-18 Tom Tromey <tromey@adacore.com>
3428
3429 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3430 get_DW_UT_name.
3431 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3432 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3433
763b8efd
AB
34342021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * python/py-param.c (get_set_value): Update header comment.
3437
f058c521
SM
34382021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3439
3440 * infrun.c (check_multi_target_resumption): Remove argument to
3441 all_non_exited_inferiors.
3442
383228bc
CB
34432021-03-16 Christian Biesinger <cbiesinger@google.com>
3444
3445 * windows-nat.c (windows_init_thread_list): Add message to
3446 debug log.
3447
7807d76a
AB
34482021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3451 well as PyLong_Check for Python 2.
3452
675da9a5
TT
34532021-03-15 Tom Tromey <tromey@adacore.com>
3454
3455 PR build/27579:
3456 * rust-exp.y (maker_map): Use gdb::hash_enum.
3457 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3458
4800761a
SM
34592021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3460
3461 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3462 end of debug print.
3463
eb5dd737
SM
34642021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3465
3466 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3467 parameter, adjust caller.
3468
6813ceb0
TT
34692021-03-15 Tom Tromey <tromey@adacore.com>
3470
3471 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3472
3b5c4de0
TT
34732021-03-15 Tom Tromey <tromey@adacore.com>
3474
3475 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3476 ada_ensure_varsize_limit.
3477
c04da66c
TT
34782021-03-15 Tom Tromey <tromey@adacore.com>
3479
3480 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3481 fixed-point.
3482 * ada-exp.y (maybe_overload): New function.
3483 (ada_wrap_overload): New function.
3484 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3485 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3486 (or_else_exp, xor_exp, primary): Update.
3487
9863c3b5
TT
34882021-03-15 Tom Tromey <tromey@adacore.com>
3489
3490 PR ada/27545:
3491 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3492 call for tagged type.
3493
1ac74522
TT
34942021-03-15 Tom Tromey <tromey@adacore.com>
3495
3496 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3497 assignment.
3498
207582c0
TT
34992021-03-15 Tom Tromey <tromey@adacore.com>
3500
3501 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3502 container.
3503 (ada_assign_operation::evaluate): Update.
3504 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3505 Change return type.
3506
8d624a9d
FW
35072021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3508
3509 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3510
ba6a0ef3
AB
35112021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * python/python.c (gdbpy_source_objfile_script): Use
3514 make_scoped_restore to restore gdbpy_current_objfile.
3515 (gdbpy_execute_objfile_script): Likewise.
3516
7c290a04
TT
35172021-03-14 Tom Tromey <tom@tromey.com>
3518
3519 * dwarf2/read.c (read_attribute_value): Use cu_header
3520 consistently.
3521
0280fdcc
TT
35222021-03-14 Tom Tromey <tom@tromey.com>
3523
3524 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3525 (peek_die_abbrev): Use reader.abfd.
3526
a9f172c6
TT
35272021-03-14 Tom Tromey <tom@tromey.com>
3528
3529 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3530 m_header_read_in.
3531
7c32eebb
TT
35322021-03-13 Tom Tromey <tom@tromey.com>
3533
3534 * dwarf2/read.c (struct partial_die_info): Update.
3535 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3536 (load_partial_dies, partial_die_info::partial_die_info): Update.
3537 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3538
27012aba
TT
35392021-03-13 Tom Tromey <tom@tromey.com>
3540
3541 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3542
fece451c
CB
35432021-03-12 Christian Biesinger <cbiesinger@google.com>
3544
3545 PR threads/27239
3546 * cp-support.c: Use scoped_segv_handler_restore.
3547 * event-top.c (thread_local_segv_handler): Made static.
3548 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3549 New function.
3550 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3551 function.
3552 * event-top.h (class scoped_segv_handler_restore): New class.
3553 (thread_local_segv_handler): Removed.
3554
7056f312
TT
35552021-03-10 Tom Tromey <tromey@adacore.com>
3556
3557 * parser-defs.h (parser_state): Change completion to bool.
3558 <parse_completion>: Likewise.
3559 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3560 (ada_resolve_variable, ada_resolve_function): Update.
3561 * ada-lang.c (ada_find_operator_symbol): Change
3562 parse_completion to bool.
3563 (ada_resolve_funcall, ada_resolve_variable)
3564 (ada_resolve_function): Likewise.
3565
ccdc02ed
TT
35662021-03-09 Tom Tromey <tromey@adacore.com>
3567
3568 * eval.c (operation::evaluate_funcall): Use function formal
3569 parameter types when evaluating.
3570
fbb1aace
AB
35712021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3572
3573 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3574 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3575 and owner to m_owner.
3576
611aa09d
FW
35772021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3578
3579 * f-exp.h (eval_op_f_loc): Declare.
3580 (expr::fortran_loc_operation): New typedef.
3581 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3582 UNOP_INTRINSIC.
3583 (f77_keywords): Add LOC keyword.
3584 * f-lang.c (eval_op_f_loc): New function.
3585 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3586
eef32f59
AB
35872021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3588
3589 * f-exp.h (eval_op_f_array_shape): Declare.
3590 (fortran_array_shape_operation): New type.
3591 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3592 UNOP_INTRINSIC.
3593 (f77_keywords): Add "shape" keyword.
3594 * f-lang.c (fortran_array_shape): New function.
3595 (eval_op_f_array_shape): New function.
3596 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3597
7ba155b3
AB
35982021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3599
3600 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3601 of this function.
3602 (expr::fortran_array_size_1arg): New type.
3603 (expr::fortran_array_size_2arg): Likewise.
3604 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3605 UNOP_OR_BINOP_INTRINSIC.
3606 (f77_keywords): Add "size" keyword.
3607 * f-lang.c (fortran_array_size): New function.
3608 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3609 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3610
e14816a8
AB
36112021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3612
3613 * f-exp.h (eval_op_f_rank): Declare.
3614 (expr::fortran_rank_operation): New typedef.
3615 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3616 UNOP_INTRINSIC.
3617 (f77_keywords): Add "rank" keyword.
3618 * f-lang.c (eval_op_f_rank): New function.
3619 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3620
3dd93bf8
TT
36212021-03-08 Tom Tromey <tom@tromey.com>
3622
3623 * printcmd.c (set_command): Remove null check.
3624 * value.c (init_if_undefined_command): Remove null check.
3625
9c79936b
TT
36262021-03-08 Tom Tromey <tom@tromey.com>
3627
3628 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3629 Update.
3630 * p-exp.y (variable): Update.
3631 * go-exp.y (variable): Update.
3632 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3633 Remove overload for objfile.
3634 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3635 parameter.
3636 (check_objfile): Likewise.
3637 (dump_for_expression): Likewise. Remove overload for objfile.
3638 (class var_msym_value_operation): Use bound_minimal_symbol.
3639 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3640 parameter.
3641 (var_msym_value_operation::evaluate_for_address)
3642 (var_msym_value_operation::evaluate_for_sizeof)
3643 (var_msym_value_operation::evaluate_for_cast): Update.
3644 * d-exp.y (PrimaryExpression): Update.
3645 * c-exp.y (variable): Update.
3646 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3647 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3648 Update.
3649 * ada-exp.y (write_var_or_type): Update.
3650
40d07d07
TT
36512021-03-08 Tom Tromey <tom@tromey.com>
3652
3653 * parser-defs.h (exp_uses_objfile): Return bool.
3654 * parse.c (exp_uses_objfile): Return bool.
3655
0b2b0b82
TT
36562021-03-08 Tom Tromey <tom@tromey.com>
3657
3658 * value.h (eval_skip_value): Don't declare.
3659 * opencl-lang.c (eval_opencl_assign): Update.
3660 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3661 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3662 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3663 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3664 * expop.h (typeof_operation::evaluate)
3665 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3666 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3667 (cxx_cast_operation::evaluate): Update.
3668 * eval.c (eval_skip_value): Remove.
3669 (eval_op_scope, eval_op_var_entry_value)
3670 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3671 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3672 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3673 (eval_op_binary, eval_op_subscript, eval_op_equal)
3674 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3675 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3676 (eval_op_complement, eval_op_lognot, eval_op_ind)
3677 (eval_op_memval, eval_op_preinc, eval_op_predec)
3678 (eval_op_postinc, eval_op_postdec, eval_op_type)
3679 (eval_binop_assign_modify, eval_op_objc_msgcall)
3680 (eval_multi_subscript, logical_and_operation::evaluate)
3681 (logical_or_operation::evaluate, array_operation::evaluate)
3682 (operation::evaluate_for_cast)
3683 (var_msym_value_operation::evaluate_for_cast)
3684 (var_value_operation::evaluate_for_cast): Update.
3685 * c-lang.c (c_string_operation::evaluate): Update.
3686 * c-exp.h (objc_nsstring_operation::evaluate)
3687 (objc_selector_operation::evaluate): Update.
3688 * ada-lang.c (ada_assign_operation::evaluate)
3689 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3690 (ada_atr_size): Update.
3691
96db551d
TT
36922021-03-08 Tom Tromey <tom@tromey.com>
3693
3694 * eval.c: Merge "namespace" scopes.
3695
ce284361
TT
36962021-03-08 Tom Tromey <tom@tromey.com>
3697
3698 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3699 <release>: Inline.
3700 * parse.c (expr_builder::expr_builder, expr_builder::release):
3701 Remove.
3702
b9d06571
TT
37032021-03-08 Tom Tromey <tom@tromey.com>
3704
3705 * parse.c (expression::expression, expression::~expression):
3706 Remove.
3707 * expression.h (struct expression): Inline constructor. Remove
3708 destructor.
3709
79ab486e
TT
37102021-03-08 Tom Tromey <tom@tromey.com>
3711
3712 * std-operator.def (BINOP_END): Remove.
3713 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3714 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3715 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3716 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3717 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3718 BINOP_END.
3719
48fa6f23
TT
37202021-03-08 Tom Tromey <tom@tromey.com>
3721
3722 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3723
43f542e3
TT
37242021-03-08 Tom Tromey <tom@tromey.com>
3725
3726 * std-operator.def (OP_EXTENDED0): Remove.
3727
5d9ba982
TT
37282021-03-08 Tom Tromey <tom@tromey.com>
3729
3730 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3731 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3732 Remove.
3733
d357570d
TT
37342021-03-08 Tom Tromey <tom@tromey.com>
3735
3736 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3737 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3738
0922dc84
TT
37392021-03-08 Tom Tromey <tom@tromey.com>
3740
3741 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3742 * ada-lang.c (ada_binop_minmax): Update.
3743 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3744 Use BINOP_MIN and BINOP_MAX.
3745
1eaebe02
TT
37462021-03-08 Tom Tromey <tom@tromey.com>
3747
3748 * value.h (evaluate_subexp_with_coercion): Don't declare.
3749 * parse.c (exp_descriptor_standard): Remove.
3750 (expr_builder::expr_builder, expr_builder::release): Update.
3751 (expression::expression): Remove size_t parameter.
3752 (expression::~expression): Simplify.
3753 (expression::resize): Remove.
3754 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3755 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3756 (write_exp_elt_longcst, write_exp_elt_floatcst)
3757 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3758 (write_exp_string_vector, write_exp_bitstring): Remove.
3759 * p-lang.h (class pascal_language) <opcode_print_table,
3760 op_print_tab>: Remove.
3761 * p-lang.c (pascal_language::op_print_tab): Remove.
3762 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3763 Remove.
3764 * objc-lang.c (objc_op_print_tab): Remove.
3765 (class objc_language) <opcode_print_table>: Remove.
3766 * m2-lang.h (class m2_language) <opcode_print_table,
3767 op_print_tab>: Remove.
3768 * m2-lang.c (m2_language::op_print_tab): Remove.
3769 * language.h (struct language_defn) <post_parser, expression_ops,
3770 opcode_print_table>: Remove.
3771 * language.c (language_defn::expression_ops)
3772 (auto_or_unknown_language::opcode_print_table): Remove.
3773 * go-lang.h (class go_language) <opcode_print_table,
3774 op_print_tab>: Remove.
3775 * go-lang.c (go_language::op_print_tab): Remove.
3776 * f-lang.h (class f_language) <opcode_print_table>: Remove
3777 <op_print_tab>: Remove.
3778 * f-lang.c (f_language::op_print_tab): Remove.
3779 * expression.h (union exp_element): Remove.
3780 (struct expression): Remove size_t parameter from constructor.
3781 <resize>: Remove.
3782 <first_opcode>: Update.
3783 <nelts, elts>: Remove.
3784 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3785 (evaluate_subexp_standard, print_expression, op_string)
3786 (dump_raw_expression): Don't declare.
3787 * expprint.c (print_expression, print_subexp)
3788 (print_subexp_funcall, print_subexp_standard, op_string)
3789 (dump_raw_expression, dump_subexp, dump_subexp_body)
3790 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3791 (dump_prefix_expression): Update.
3792 * eval.c (evaluate_subexp): Remove.
3793 (evaluate_expression, evaluate_type): Update.
3794 (evaluate_subexpression_type): Remove.
3795 (fetch_subexp_value): Remove "pc" parameter. Update.
3796 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3797 (evaluate_subexp_standard, evaluate_subexp_for_address)
3798 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3799 (evaluate_subexp_for_cast): Remove.
3800 (parse_and_eval_type): Update.
3801 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3802 * d-lang.c (d_op_print_tab): Remove.
3803 (class d_language) <opcode_print_table>: Remove.
3804 * c-lang.h (c_op_print_tab): Don't declare.
3805 * c-lang.c (c_op_print_tab): Remove.
3806 (class c_language, class cplus_language, class asm_language, class
3807 minimal_language) <opcode_print_table>: Remove.
3808 * breakpoint.c (update_watchpoint, watchpoint_check)
3809 (watchpoint_exp_is_const, watch_command_1): Update.
3810 * ax-gdb.h (union exp_element): Don't declare.
3811 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3812 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3813 (gen_expr_binop_rest): Remove.
3814 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3815 * ada-lang.c (ada_op_print_tab): Remove.
3816 (class ada_language) <post_parser, opcode_print_table>: Remove.
3817
f2a98603
TT
38182021-03-08 Tom Tromey <tom@tromey.com>
3819
3820 * go-lang.c (go_language::expression_ops): Don't declare.
3821 * go-lang.h (class go_language) <expression_ops>: Remove.
3822 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3823 Remove.
3824 (class opencl_language) <expression_ops>: Remove.
3825 * d-lang.c (class d_language) <expression_ops>: Remove.
3826 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3827 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3828 (class c_language, class cplus_language, class asm_language)
3829 (class minimal_language) <expression_ops>: Remove.
3830
d3c54a1c
TT
38312021-03-08 Tom Tromey <tom@tromey.com>
3832
3833 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3834 (evaluate_subexp_type, assign_aggregate)
3835 (aggregate_assign_positional, aggregate_assign_from_choices)
3836 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3837 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3838 (ada_operator_check, ada_forward_operator_length)
3839 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3840 Remove.
3841 (post_parser): Update.
3842 (class ada_language) <expresssion_ops>: Remove.
3843
5871f0a3
TT
38442021-03-08 Tom Tromey <tom@tromey.com>
3845
3846 * m2-lang.h (class m2_language) <expresssion_ops,
3847 exp_descriptor_modula2>: Remove.
3848 * m2-lang.c (evaluate_subexp_modula2)
3849 (m2_language::exp_descriptor_modula2): Remove.
3850
a99be8c1
TT
38512021-03-08 Tom Tromey <tom@tromey.com>
3852
3853 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3854 <exp_descriptor_tab>: Remove.
3855 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3856 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3857 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3858 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3859 Remove.
3860
aa1da9ed
TT
38612021-03-08 Tom Tromey <tom@tromey.com>
3862
3863 * rust-lang.h (class rust_language) <expression_ops,
3864 exp_descriptor_tab>: Remove.
3865 * rust-lang.c (rust_evaluate_funcall): Remove.
3866 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3867 EVAL_SKIP.
3868 (rust_evaluate_subexp): Remove.
3869 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3870 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3871 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3872
08a057e6
TT
38732021-03-08 Tom Tromey <tom@tromey.com>
3874
3875 * ada-exp.y: Create operations.
3876 (empty_stoken): Remove.
3877 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3878 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3879 (components): New global.
3880 (push_component, choice_component, pop_component, pop_components):
3881 New functions.
3882 (associations): New global
3883 (push_association, pop_association, pop_associations): New
3884 functions.
3885 (ada_parse): Update.
3886 (write_var_from_sym, write_int): Create operations.
3887 (write_exp_op_with_string): Remove.
3888 (write_object_renaming, write_selectors, write_ambiguous_var)
3889 (write_var_or_type, write_name_assoc): Create operations.
3890 * ada-lang.h (ada_index_type): Declare.
3891 * ada-lang.c (ada_index_type): No longer static.
3892
d308ba78
TT
38932021-03-08 Tom Tromey <tom@tromey.com>
3894
3895 * f-exp.y: Create operations.
3896 (f_language::parser): Update.
3897
f1b8ceef
TT
38982021-03-08 Tom Tromey <tom@tromey.com>
3899
3900 * m2-exp.y: Create operations.
3901 (m2_language::parser): Update.
3902
3163898e
TT
39032021-03-08 Tom Tromey <tom@tromey.com>
3904
3905 * p-exp.y: Create operations.
3906 (pascal_language::parser): Update.
3907
9412fdcc
TT
39082021-03-08 Tom Tromey <tom@tromey.com>
3909
3910 * d-exp.y: Create operations.
3911 (d_parse): Update.
3912
bb4e0574
TT
39132021-03-08 Tom Tromey <tom@tromey.com>
3914
3915 * go-exp.y: Create operations.
3916 (go_language::parser): Update.
3917
d182f279
TT
39182021-03-08 Tom Tromey <tom@tromey.com>
3919
3920 * objc-lang.c (end_msglist): Create operations.
3921 * c-exp.y: Change parser to create operations.
3922 (write_destructor_name): Remove.
3923 (c_parse): Update.
3924
c1299a23
TT
39252021-03-08 Tom Tromey <tom@tromey.com>
3926
3927 * rust-exp.y: Create operations.
3928 (rust_parser::convert_params_to_expression): Change return type.
3929 (binop_maker_ftype): New typedef.
3930 (maker_map): New global.
3931 (rust_parser::convert_ast_to_expression): Change return type.
3932 (rust_language::parser): Update.
3933 (_initialize_rust_exp): Initialize maker_map.
3934
4c5e7a93
TT
39352021-03-08 Tom Tromey <tom@tromey.com>
3936
3937 * stap-probe.c (binop_maker_ftype): New typedef.
3938 (stap_maker_map): New global.
3939 (stap_make_binop): New function.
3940 (stap_parse_register_operand): Return operation_up.
3941 (stap_parse_single_operand, stap_parse_argument_conditionally)
3942 (stap_parse_argument_1): Likewise.
3943 (stap_parse_argument): Create operations.
3944 (stap_probe::parse_arguments): Update.
3945 (_initialize_stap_probe): Initialize stap_maker_map.
3946 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3947 type.
3948 * i386-tdep.h (i386_stap_parse_special_token): Change return
3949 type.
3950 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3951 (i386_stap_parse_special_token_three_arg_disp)
3952 (i386_stap_parse_special_token): Change return type.
3953 * gdbarch.sh (stap_parse_special_token): Change return type.
3954 * gdbarch.c: Rebuild.
3955 * gdbarch.h: Rebuild.
3956 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3957 type.
3958 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3959 return type.
3960
482ddd69
TT
39612021-03-08 Tom Tromey <tom@tromey.com>
3962
3963 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3964 * gdbarch.h: Rebuild.
3965 * gdbarch.c: Rebuild.
3966 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3967 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3968 return type.
3969 (amd64_dtrace_parse_probe_argument): Update.
3970
8227d9e2
TT
39712021-03-08 Tom Tromey <tom@tromey.com>
3972
3973 * parser-defs.h (struct parser_state) <push, push_new,
3974 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3975 wrap2>: New methods.
3976 <m_operations>: New member.
3977 * parse.c (parser_state::push_c_string)
3978 (parser_state::push_symbol, parser_state::push_dollar): New
3979 methods.
3980
4933522d
TT
39812021-03-08 Tom Tromey <tom@tromey.com>
3982
3983 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3984 New member.
3985 (struct parser_state) <mark_struct_expression>: New method.
3986 * parse.c (parser_state::mark_struct_expression): Update assert.
3987 (parser_state::mark_struct_expression): New method.
3988 (parser_state::mark_completion_tag): Update assert.
3989 (parse_expression_for_completion): Handle expout_last_op.
3990
413403fc
TT
39912021-03-08 Tom Tromey <tom@tromey.com>
3992
3993 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3994 now in superclass.
3995 * value.h (fetch_subexp_value): Add "op" parameter.
3996 * value.c (init_if_undefined_command): Update.
3997 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3998 * stap-probe.c (stap_probe::compile_to_ax): Update.
3999 * printcmd.c (set_command): Update.
4000 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4001 Update.
4002 * parser-defs.h (struct expr_builder) <set_operation>: New
4003 method.
4004 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4005 * expression.h (struct expression) <first_opcode>: Update.
4006 <op>: New member.
4007 * expprint.c (dump_raw_expression, dump_prefix_expression):
4008 Update.
4009 * expop.h (class var_value_operation) <get_symbol>: New method.
4010 (class register_operation) <get_name>: New method.
4011 (class equal_operation): No longer a typedef, now a subclass.
4012 (class unop_memval_operation) <get_type>: New method.
4013 (class assign_operation) <get_lhs>: New method.
4014 (class unop_cast_operation) <get_type>: New method.
4015 * eval.c (evaluate_expression, evaluate_type)
4016 (evaluate_subexpression_type): Update.
4017 (fetch_subexp_value): Add "op" parameter.
4018 (parse_and_eval_type): Update.
4019 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4020 * breakpoint.c (update_watchpoint, watchpoint_check)
4021 (watchpoint_exp_is_const, watch_command_1): Update.
4022 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4023 Update.
4024
b0f9164c
TT
40252021-03-08 Tom Tromey <tom@tromey.com>
4026
4027 * ada-lang.c (ada_value_binop): Do not use op_string.
4028
a88c4354
TT
40292021-03-08 Tom Tromey <tom@tromey.com>
4030
4031 * expprint.c (dump_for_expression): New overload.
4032 * expop.h (check_objfile, dump_for_expression): Declare new
4033 overloads.
4034 * ada-lang.c (check_objfile): New overload.
4035 (assign_component, ada_aggregate_component::uses_objfile)
4036 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4037 (ada_aggregate_component::assign_aggregate)
4038 (ada_positional_component::uses_objfile)
4039 (ada_positional_component::dump, ada_positional_component::assign)
4040 (ada_discrete_range_association::uses_objfile)
4041 (ada_discrete_range_association::dump)
4042 (ada_discrete_range_association::assign)
4043 (ada_name_association::uses_objfile, ada_name_association::dump)
4044 (ada_name_association::assign)
4045 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4046 (ada_choices_component::assign)
4047 (ada_others_component::uses_objfile, ada_others_component::dump)
4048 (ada_others_component::assign, ada_assign_operation::evaluate):
4049 New methods.
4050 * ada-exp.h (ada_string_operation) <get_name>: New method.
4051 (class ada_assign_operation): New.
4052 (class ada_component): New.
4053 (ada_component_up): New typedef.
4054 (class ada_aggregate_operation, class ada_aggregate_component)
4055 (class ada_positional_component, class ada_others_component)
4056 (class ada_association): New.
4057 (ada_association_up): New typedef.
4058 (class ada_choices_component)
4059 (class ada_discrete_range_association)
4060 (class ada_name_association): New.
4061
d8a4ed8a
TT
40622021-03-08 Tom Tromey <tom@tromey.com>
4063
4064 * ada-lang.c (ada_var_value_operation::resolve)
4065 (ada_funcall_operation::resolve)
4066 (ada_ternop_slice_operation::resolve): New methods.
4067 * ada-exp.h (struct ada_resolvable): New.
4068 (class ada_var_value_operation): Derive from ada_resolvable.
4069 <get_block, resolve>: New methods.
4070 (class ada_funcall_operation): Derive from ada_resolvable.
4071 <resolve>: New method.
4072 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4073 <resolve>: New method.
4074
efe3af2f
TT
40752021-03-08 Tom Tromey <tom@tromey.com>
4076
4077 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4078 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4079 method.
4080 (class ada_funcall_operation): New.
4081
ebc06ad8
TT
40822021-03-08 Tom Tromey <tom@tromey.com>
4083
4084 * ada-lang.c (ada_structop_operation::evaluate): New method.
4085 * ada-exp.h (class ada_structop_operation): New.
4086
e8c33fa1
TT
40872021-03-08 Tom Tromey <tom@tromey.com>
4088
4089 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4090 * ada-exp.h (class ada_unop_ind_operation): New.
4091
065ec826
TT
40922021-03-08 Tom Tromey <tom@tromey.com>
4093
4094 * ada-lang.c (ada_binop_exp): No longer static.
4095 * ada-exp.h (ada_binop_exp_operation): New typedef.
4096
9e99f48f
TT
40972021-03-08 Tom Tromey <tom@tromey.com>
4098
4099 * ada-lang.c (ada_val_atr): No longer static.
4100 (ada_atr_val_operation::evaluate): New method.
4101 * ada-exp.h (class ada_atr_val_operation): New.
4102
7631cf6c
TT
41032021-03-08 Tom Tromey <tom@tromey.com>
4104
4105 * ada-lang.c (ada_pos_atr): No longer static.
4106 * ada-exp.h (ada_pos_operation): New typedef.
4107
7992accc
TT
41082021-03-08 Tom Tromey <tom@tromey.com>
4109
4110 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4111 parameters.
4112 (ada_evaluate_subexp): Use it.
4113
6ad3b8bf
TT
41142021-03-08 Tom Tromey <tom@tromey.com>
4115
4116 * ada-lang.c (ada_binop_minmax): No longer static.
4117 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4118 New typedefs.
4119
3f4a0053
TT
41202021-03-08 Tom Tromey <tom@tromey.com>
4121
4122 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4123 New method.
4124 * ada-exp.h (class ada_var_msym_value_operation): New.
4125
99a3b1e7
TT
41262021-03-08 Tom Tromey <tom@tromey.com>
4127
4128 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4129 (ada_var_value_operation::evaluate): New methods.
4130 * ada-exp.h (class ada_var_value_operation): New.
4131
60fa02ca
TT
41322021-03-08 Tom Tromey <tom@tromey.com>
4133
4134 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4135 * ada-exp.h (class ada_unop_atr_operation): New.
4136
82c3886e
TT
41372021-03-08 Tom Tromey <tom@tromey.com>
4138
4139 * ada-lang.c (ada_binop_in_bounds): No longer static.
4140 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4141
1b1ebfab
TT
41422021-03-08 Tom Tromey <tom@tromey.com>
4143
4144 * ada-lang.c (ada_ternop_slice): No longer static.
4145 * ada-exp.h (class ada_ternop_slice_operation): New.
4146
039e4b76
TT
41472021-03-08 Tom Tromey <tom@tromey.com>
4148
4149 * ada-exp.h (ada_bitwise_operation): New template class.
4150 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4151 (ada_bitwise_xor_operation): New typedefs.
4152
6e8fb7b7
TT
41532021-03-08 Tom Tromey <tom@tromey.com>
4154
4155 * ada-lang.c (ada_equal_binop): No longer static.
4156 * ada-exp.h (class ada_binop_equal_operation): New.
4157
d9e7db06
TT
41582021-03-08 Tom Tromey <tom@tromey.com>
4159
4160 * ada-lang.c (ada_mult_binop): No longer static.
4161 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4162 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4163
73796c73
TT
41642021-03-08 Tom Tromey <tom@tromey.com>
4165
4166 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4167 * ada-exp.h (class ada_binop_addsub_operation): New.
4168
cd9a3148
TT
41692021-03-08 Tom Tromey <tom@tromey.com>
4170
4171 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4172 (ada_resolve_variable): Declare.
4173 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4174 (ada_resolve_variable): New functions.
4175 (resolve_subexp): Update.
4176
cf12b17f
TT
41772021-03-08 Tom Tromey <tom@tromey.com>
4178
4179 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4180 method.
4181 * c-exp.h (class opencl_ternop_cond_operation): New.
4182
944fd3b8
TT
41832021-03-08 Tom Tromey <tom@tromey.com>
4184
4185 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4186 method.
4187 * c-exp.h (class opencl_logical_binop_operation): New.
4188
33b79214
TT
41892021-03-08 Tom Tromey <tom@tromey.com>
4190
4191 * opencl-lang.c (opencl_structop_operation::evaluate): New
4192 method.
4193 * c-exp.h (class opencl_structop_operation): New.
4194
2492ba36
TT
41952021-03-08 Tom Tromey <tom@tromey.com>
4196
4197 * opencl-lang.c (opencl_logical_not): No longer static. Change
4198 parameters.
4199 (evaluate_subexp_opencl): Update.
4200 * c-exp.h (opencl_notequal_operation): New typedef.
4201
a88c3c8d
TT
42022021-03-08 Tom Tromey <tom@tromey.com>
4203
4204 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4205 static. Change parameters.
4206 (eval_opencl_assign): No longer static. Add "op" parameter.
4207 (evaluate_subexp_opencl): Update.
4208 * c-exp.h (opencl_binop_operation): New template class.
4209 (opencl_assign_operation, opencl_equal_operation)
4210 (opencl_notequal_operation, opencl_less_operation)
4211 (opencl_gtr_operation, opencl_geq_operation)
4212 (opencl_leq_operation): New typedefs.
4213
e9677704
TT
42142021-03-08 Tom Tromey <tom@tromey.com>
4215
4216 * opencl-lang.c (opencl_value_cast): No longer static.
4217 * c-exp.h (opencl_cast_type_operation): New typedef.
4218
f403a4e4
TT
42192021-03-08 Tom Tromey <tom@tromey.com>
4220
4221 * f-exp.h (eval_op_f_allocated): Declare.
4222 (fortran_allocated_operation): New typedef.
4223 * f-lang.c (eval_op_f_allocated): No longer static.
4224
eb4c9271
TT
42252021-03-08 Tom Tromey <tom@tromey.com>
4226
4227 * f-lang.c (eval_op_f_associated): New functions.
4228 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4229 typedefs.
4230
58a76c72
TT
42312021-03-08 Tom Tromey <tom@tromey.com>
4232
4233 * f-lang.c (fortran_bound_1arg::evaluate)
4234 (fortran_bound_2arg::evaluate): New methods.
4235 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4236 New.
4237
2f98abe1
TT
42382021-03-08 Tom Tromey <tom@tromey.com>
4239
4240 * expop.h (class unop_addr_operation) <get_expression>: New
4241 method.
4242 * f-lang.c (fortran_undetermined::value_subarray)
4243 (fortran_undetermined::evaluate): New methods.
4244 (fortran_prepare_argument): New overload.
4245 * f-exp.h (class fortran_range_operation)
4246 (class fortran_undetermined): New classes.
4247
638fd74a
TT
42482021-03-08 Tom Tromey <tom@tromey.com>
4249
4250 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4251 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4252 method.
4253
a00b7254
TT
42542021-03-08 Tom Tromey <tom@tromey.com>
4255
4256 * expression.h (class operation) <evaluate_funcall>: New methods.
4257 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4258 (class var_value_operation) <evaluate_funcall>: New method.
4259 (class structop_base_operation) <evaluate_funcall>: New method.
4260 (class var_msym_value_operation) <evaluate_funcall>: New method.
4261 (class structop_member_base): New class.
4262 (class structop_member_operation): Derive from
4263 structop_member_base.
4264 (class structop_mptr_operation): Derive from
4265 structop_member_base.
4266 (class funcall_operation): New class.
4267 * eval.c (operation::evaluate_funcall)
4268 (var_value_operation::evaluate_funcall)
4269 (scope_operation::evaluate_funcall)
4270 (structop_member_base::evaluate_funcall)
4271 (structop_base_operation::evaluate_funcall): New methods.
4272
1c02eb30
TT
42732021-03-08 Tom Tromey <tom@tromey.com>
4274
4275 * expop.h (class array_operation): New.
4276 * eval.c (array_operation::evaluate_struct_tuple)
4277 (array_operation::evaluate): New methods.
4278
e4479080
TT
42792021-03-08 Tom Tromey <tom@tromey.com>
4280
4281 * expop.h (class adl_func_operation): New.
4282 * eval.c (adl_func_operation::evaluate): New method.
4283
95d49dfb
TT
42842021-03-08 Tom Tromey <tom@tromey.com>
4285
4286 * ada-lang.c (ada_unop_in_range): No longer static.
4287 * ada-exp.h (class ada_unop_range_operation): New.
4288
7c15d377
TT
42892021-03-08 Tom Tromey <tom@tromey.com>
4290
4291 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4292 No longer static.
4293 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4294 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4295
5019124b
TT
42962021-03-08 Tom Tromey <tom@tromey.com>
4297
4298 * expop.h (class logical_and_operation)
4299 (class logical_or_operation): New.
4300 * eval.c (logical_and_operation::evaluate)
4301 (logical_or_operation::evaluate): New methods.
4302 * ax-gdb.c (logical_and_operation::do_generate_ax)
4303 (logical_or_operation::do_generate_ax): New methods.
4304
2bc9b40c
TT
43052021-03-08 Tom Tromey <tom@tromey.com>
4306
4307 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4308 static.
4309 * m2-exp.h: New file.
4310
5947d337
TT
43112021-03-08 Tom Tromey <tom@tromey.com>
4312
4313 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4314 * rust-exp.h (class rust_aggregate_operation): New.
4315
e4407a20
TT
43162021-03-08 Tom Tromey <tom@tromey.com>
4317
4318 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4319 No longer static.
4320 * rust-exp.h (class rust_struct_anon): New.
4321 (class rust_structop): New.
4322
9db6b6dd
TT
43232021-03-08 Tom Tromey <tom@tromey.com>
4324
4325 * rust-lang.c (rust_range): No longer static.
4326 * rust-exp.h (class rust_range_operation): New.
4327
6ce1ad67
TT
43282021-03-08 Tom Tromey <tom@tromey.com>
4329
4330 * rust-lang.c (rust_subscript): No longer static.
4331 * rust-exp.h (class rust_subscript_operation): New.
4332
11dd3dce
TT
43332021-03-08 Tom Tromey <tom@tromey.com>
4334
4335 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4336 parameter.
4337 (rust_evaluate_subexp): Update.
4338 * rust-exp.h (class rust_unop_ind_operation): New.
4339
6fab4359
TT
43402021-03-08 Tom Tromey <tom@tromey.com>
4341
4342 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4343 longer static. Add "opcode" parameter.
4344 (rust_evaluate_subexp): Update.
4345 * rust-exp.h: New file.
4346
9dcd3e29
TT
43472021-03-08 Tom Tromey <tom@tromey.com>
4348
4349 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4350 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4351 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4352 (evaluate_subexp_f): Update.
4353 * f-exp.h: New file.
4354
fc715eb2
TT
43552021-03-08 Tom Tromey <tom@tromey.com>
4356
4357 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4358 * ada-exp.h (class ada_ternop_range_operation): New.
4359
cc6bd32e
TT
43602021-03-08 Tom Tromey <tom@tromey.com>
4361
4362 * ada-lang.c (ada_qual_operation::evaluate): New method.
4363 * ada-exp.h (class ada_qual_operation): New.
4364
42fecb61
TT
43652021-03-08 Tom Tromey <tom@tromey.com>
4366
4367 * ada-lang.c (ada_string_operation::evaluate): New method.
4368 * ada-exp.h (class ada_string_operation): New.
4369
03070ee9
TT
43702021-03-08 Tom Tromey <tom@tromey.com>
4371
4372 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4373 * ada-exp.h: New file.
4374
821e72d7
TT
43752021-03-08 Tom Tromey <tom@tromey.com>
4376
4377 * expop.h (class multi_subscript_operation): New.
4378 * eval.c (multi_subscript_operation::evaluate): New method.
4379
085734dd
TT
43802021-03-08 Tom Tromey <tom@tromey.com>
4381
4382 * eval.c (objc_msgcall_operation::evaluate): New method.
4383 * c-exp.h (class objc_msgcall_operation): New.
4384
e82a5afc
TT
43852021-03-08 Tom Tromey <tom@tromey.com>
4386
4387 * expop.h (class var_value_operation): New.
4388 * eval.c (var_value_operation::evaluate)
4389 (var_value_operation::evaluate_for_address)
4390 (var_value_operation::evaluate_with_coercion)
4391 (var_value_operation::evaluate_for_sizeof)
4392 (var_value_operation::evaluate_for_cast): New methods.
4393 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4394
d9ad79d8
TT
43952021-03-08 Tom Tromey <tom@tromey.com>
4396
4397 * expop.h (cxx_cast_ftype): New typedef.
4398 (cxx_cast_operation): New template.
4399 (dynamic_cast_operation, reinterpret_cast_operation): New
4400 typedefs.
4401
292382f4
TT
44022021-03-08 Tom Tromey <tom@tromey.com>
4403
4404 * expop.h (class unop_cast_type_operation): New.
4405 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4406 method.
4407
165a813a
TT
44082021-03-08 Tom Tromey <tom@tromey.com>
4409
4410 * expop.h (class unop_cast_operation): New.
4411 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4412
e5946e16
TT
44132021-03-08 Tom Tromey <tom@tromey.com>
4414
4415 * expop.h (class assign_modify_operation): New.
4416 * eval.c (eval_binop_assign_modify): No longer static.
4417 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4418
40786782
TT
44192021-03-08 Tom Tromey <tom@tromey.com>
4420
4421 * expop.h (class assign_operation): New.
4422 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4423
44b675c8
TT
44242021-03-08 Tom Tromey <tom@tromey.com>
4425
4426 * expop.h (class type_instance_operation): New.
4427 * eval.c (type_instance_operation::evaluate): New method.
4428
f6b42326
TT
44292021-03-08 Tom Tromey <tom@tromey.com>
4430
4431 * expop.h (class op_this_operation): New.
4432 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4433
cbc18219
TT
44342021-03-08 Tom Tromey <tom@tromey.com>
4435
4436 * expop.h (class unop_memval_operation)
4437 (class unop_memval_type_operation): New.
4438 * eval.c (eval_op_memval): No longer static.
4439 (unop_memval_operation::evaluate_for_address)
4440 (unop_memval_type_operation::evaluate_for_address)
4441 (unop_memval_operation::evaluate_for_sizeof)
4442 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4443 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4444 (unop_memval_type_operation::do_generate_ax): New methods.
4445
ae4bb61e
TT
44462021-03-08 Tom Tromey <tom@tromey.com>
4447
4448 * expop.h (class unop_alignof_operation): New.
4449 * eval.c (eval_op_alignof): No longer static.
4450
85d23bda
TT
44512021-03-08 Tom Tromey <tom@tromey.com>
4452
4453 * expop.h (class unop_sizeof_operation): New.
4454 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4455
14aff815
TT
44562021-03-08 Tom Tromey <tom@tromey.com>
4457
4458 * expop.h (class unop_addr_operation): New.
4459 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4460
929f3aa7
TT
44612021-03-08 Tom Tromey <tom@tromey.com>
4462
4463 * expop.h (class typeid_operation): New.
4464
0af8829e
TT
44652021-03-08 Tom Tromey <tom@tromey.com>
4466
4467 * expop.h (class decltype_operation): New.
4468
4efc574c
TT
44692021-03-08 Tom Tromey <tom@tromey.com>
4470
4471 * expop.h (class typeof_operation): New.
4472
5b5f5140
TT
44732021-03-08 Tom Tromey <tom@tromey.com>
4474
4475 * expop.h (class type_operation): New.
4476 * eval.c (eval_op_type): No longer static.
4477
876469ff
TT
44782021-03-08 Tom Tromey <tom@tromey.com>
4479
4480 * expop.h (class unop_ind_base_operation)
4481 (class unop_ind_operation): New.
4482 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4483 (unop_ind_base_operation::evaluate_for_address)
4484 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4485 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4486
6d89e296
TT
44872021-03-08 Tom Tromey <tom@tromey.com>
4488
4489 * expop.h (unop_incr_operation): New template.
4490 (preinc_operation, predec_operation, postinc_operation)
4491 (postdec_operation): New typedefs.
4492 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4493 (eval_op_postdec): No longer static.
4494
9307d17b
TT
44952021-03-08 Tom Tromey <tom@tromey.com>
4496
4497 * expop.h (unary_ftype): New typedef.
4498 (unop_operation, usual_ax_binop_operation): New templates.
4499 (unary_plus_operation, unary_neg_operation)
4500 (unary_complement_operation, unary_logical_not_operation): New
4501 typedefs.
4502 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4503 (eval_op_lognot): No longer static.
4504 * ax-gdb.c (gen_expr_unop): New function.
4505
ae64ba58
TT
45062021-03-08 Tom Tromey <tom@tromey.com>
4507
4508 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4509
d4eff4c1
TT
45102021-03-08 Tom Tromey <tom@tromey.com>
4511
4512 * expop.h (class repeat_operation): New.
4513 * eval.c (eval_op_repeat): No longer static. Remove "op"
4514 parameter.
4515 (evaluate_subexp_standard): Update.
4516 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4517
46916f2b
TT
45182021-03-08 Tom Tromey <tom@tromey.com>
4519
4520 * expop.h (class comparison_operation): New.
4521 (equal_operation, notequal_operation, less_operation)
4522 (gtr_operation, geq_operation, leq_operation): New typedefs.
4523 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4524 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4525
224d6424
TT
45262021-03-08 Tom Tromey <tom@tromey.com>
4527
4528 * expop.h (class subscript_operation): New.
4529 * eval.c (eval_op_subscript): No longer static.
4530
373907ff
TT
45312021-03-08 Tom Tromey <tom@tromey.com>
4532
4533 * expop.h (class binop_operation, class usual_ax_binop_operation):
4534 New.
4535 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4536 (div_operation, rem_operation, lsh_operation, rsh_operation)
4537 (bitwise_and_operation, bitwise_ior_operation)
4538 (bitwise_xor_operation): New typedefs.
4539 * eval.c (eval_op_binary): No longer static.
4540
5133d78b
TT
45412021-03-08 Tom Tromey <tom@tromey.com>
4542
4543 * expop.h (class sub_operation): New.
4544 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4545 (evaluate_subexp_standard): Update.
4546
a94323b6
TT
45472021-03-08 Tom Tromey <tom@tromey.com>
4548
4549 * expop.h (class add_operation): New.
4550 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4551 (evaluate_subexp_standard): Update.
4552
e51e26a0
TT
45532021-03-08 Tom Tromey <tom@tromey.com>
4554
4555 * expop.h (class concat_operation): New.
4556 * eval.c (eval_op_concat): No longer static. Remove "op"
4557 parameter.
4558 (evaluate_subexp_standard): Update.
4559
07f724a8
TT
45602021-03-08 Tom Tromey <tom@tromey.com>
4561
4562 * expop.h (class structop_member_operation)
4563 (class structop_mptr_operation): New.
4564 * eval.c (eval_op_member): No longer static.
4565
ab0609be
TT
45662021-03-08 Tom Tromey <tom@tromey.com>
4567
4568 * expop.h (class structop_ptr_operation): New.
4569 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4570 parameter.
4571
808b22cf
TT
45722021-03-08 Tom Tromey <tom@tromey.com>
4573
4574 * expop.h (class structop_base_operation)
4575 (class structop_operation): New.
4576 * eval.c (eval_op_structop_struct): No longer static.
4577
8cfd3e95
TT
45782021-03-08 Tom Tromey <tom@tromey.com>
4579
4580 * expop.h (class complex_operation): New.
4581
09db3700
TT
45822021-03-08 Tom Tromey <tom@tromey.com>
4583
4584 * eval.c (eval_op_objc_selector): No longer static.
4585 * c-exp.h (class objc_selector_operation): New.
4586
06dc61b9
TT
45872021-03-08 Tom Tromey <tom@tromey.com>
4588
4589 * eval.c: Include c-exp.h.
4590 * c-exp.h (class objc_nsstring_operation): New.
4591
72d0a711
TT
45922021-03-08 Tom Tromey <tom@tromey.com>
4593
4594 * c-lang.c (c_string_operation::evaluate): New method.
4595 * c-exp.h: New file.
4596
9186293f
TT
45972021-03-08 Tom Tromey <tom@tromey.com>
4598
4599 * expop.h (class ternop_cond_operation): New.
4600 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4601
1594e0bb
TT
46022021-03-08 Tom Tromey <tom@tromey.com>
4603
4604 * expop.h (class ternop_slice_operation): New.
4605 * eval.c (eval_op_ternop): No longer static.
4606
b50db09f
TT
46072021-03-08 Tom Tromey <tom@tromey.com>
4608
4609 * expop.h (class string_operation): New.
4610 * eval.c (eval_op_string): No longer static.
4611
e6e01e16
TT
46122021-03-08 Tom Tromey <tom@tromey.com>
4613
4614 * expop.h (class internalvar_operation): New.
4615 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4616
e6985c5e
TT
46172021-03-08 Tom Tromey <tom@tromey.com>
4618
4619 * expop.h (class bool_operation): New.
4620
55bdbff8
TT
46212021-03-08 Tom Tromey <tom@tromey.com>
4622
4623 * expop.h (class register_operation): New.
4624 * eval.c (eval_op_register): No longer static.
4625 * ax-gdb.c (register_operation::do_generate_ax): New method.
4626
247d935b
TT
46272021-03-08 Tom Tromey <tom@tromey.com>
4628
4629 * expop.h (class last_operation): New.
4630
17679395
TT
46312021-03-08 Tom Tromey <tom@tromey.com>
4632
4633 * expop.h (class func_static_var_operation): New.
4634 * eval.c (eval_op_func_static_var): No longer static.
4635
b5cc3923
TT
46362021-03-08 Tom Tromey <tom@tromey.com>
4637
4638 * expop.h (class var_entry_value_operation): New.
4639 * eval.c (eval_op_var_entry_value): No longer static.
4640
0c8effa3
TT
46412021-03-08 Tom Tromey <tom@tromey.com>
4642
4643 * expression.h (class operation) <set_outermost>: New method.
4644 * expop.h (class var_msym_value_operation): New.
4645 * eval.c (eval_op_var_msym_value): No longer static.
4646 (var_msym_value_operation::evaluate_for_address)
4647 (var_msym_value_operation::evaluate_for_sizeof)
4648 (var_msym_value_operation::evaluate_for_cast): New methods.
4649 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4650 method.
4651
d336c29e
TT
46522021-03-08 Tom Tromey <tom@tromey.com>
4653
4654 * expop.h (class long_const_operation): New.
4655 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4656
d5ab122c
TT
46572021-03-08 Tom Tromey <tom@tromey.com>
4658
4659 * expop.h (class scope_operation): New.
4660 * eval.c (eval_op_scope): No longer static.
4661 (scope_operation::evaluate_for_address): New method.
4662 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4663
cae26a0c
TT
46642021-03-08 Tom Tromey <tom@tromey.com>
4665
4666 * expprint.c (float_const_operation::dump): New method.
4667 * expop.h (float_data): New typedef.
4668 (class float_const_operation): New.
4669
75f9892d
TT
46702021-03-08 Tom Tromey <tom@tromey.com>
4671
4672 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4673 * ax-gdb.c (gen_expr_binop): New function.
4674 (gen_expr_structop): Likewise.
4675
de401988
TT
46762021-03-08 Tom Tromey <tom@tromey.com>
4677
4678 * expprint.c (expr::dump_for_expression): New functions.
4679 * expop.h (dump_for_expression): New overloads.
4680 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4681 Update.
4682
e2803273
TT
46832021-03-08 Tom Tromey <tom@tromey.com>
4684
4685 * expression.h (expr::operation): New class.
4686 (expr::make_operation): New function.
4687 (expr::operation_up): New typedef.
4688 * expop.h: New file.
4689 * eval.c (operation::evaluate_for_cast)
4690 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4691 New methods.
4692 * ax-gdb.c (operation::generate_ax): New method.
4693
e18c58f2
TT
46942021-03-08 Tom Tromey <tom@tromey.com>
4695
4696 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4697 (gen_expr_binop_rest): New overload.
4698
c0d7ed8c
TT
46992021-03-08 Tom Tromey <tom@tromey.com>
4700
4701 * eval.c (eval_multi_subscript): New function.
4702 (evaluate_subexp_standard): Use it.
4703
dd5fd283
TT
47042021-03-08 Tom Tromey <tom@tromey.com>
4705
4706 * ada-lang.c (ada_binop_exp): New function.
4707 (ada_evaluate_subexp): Use it.
4708
3848abd6
TT
47092021-03-08 Tom Tromey <tom@tromey.com>
4710
4711 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4712 parameters.
4713 (ada_evaluate_subexp): Use it.
4714
38dc70cf
TT
47152021-03-08 Tom Tromey <tom@tromey.com>
4716
4717 * ada-lang.c (ada_binop_minmax): New function.
4718 (ada_evaluate_subexp): Use it.
4719
b84564fc
TT
47202021-03-08 Tom Tromey <tom@tromey.com>
4721
4722 * ada-lang.c (ada_unop_atr): New function.
4723 (ada_evaluate_subexp): Use it.
4724
b467efaa
TT
47252021-03-08 Tom Tromey <tom@tromey.com>
4726
4727 * ada-lang.c (ada_binop_in_bounds): New function.
4728 (ada_evaluate_subexp): Use it.
4729
5ce19db8
TT
47302021-03-08 Tom Tromey <tom@tromey.com>
4731
4732 * ada-lang.c (ada_ternop_slice): New function.
4733 (ada_evaluate_subexp): Use it.
4734
214b13ac
TT
47352021-03-08 Tom Tromey <tom@tromey.com>
4736
4737 * ada-lang.c (ada_equal_binop): New function.
4738 (ada_evaluate_subexp): Use it.
4739
faa1dfd7
TT
47402021-03-08 Tom Tromey <tom@tromey.com>
4741
4742 * ada-lang.c (ada_mult_binop): New function.
4743 (ada_evaluate_subexp): Use it.
4744
d05e24e6
TT
47452021-03-08 Tom Tromey <tom@tromey.com>
4746
4747 * ada-lang.c (ada_abs): New function.
4748 (ada_evaluate_subexp): Use it.
4749
68c75735
TT
47502021-03-08 Tom Tromey <tom@tromey.com>
4751
4752 * ada-lang.c (ada_atr_size): New function.
4753 (ada_evaluate_subexp): Use it.
4754
020dbabe
TT
47552021-03-08 Tom Tromey <tom@tromey.com>
4756
4757 * ada-lang.c (ada_atr_tag): New function.
4758 (ada_evaluate_subexp): Use it.
4759
7efc87ff
TT
47602021-03-08 Tom Tromey <tom@tromey.com>
4761
4762 * ada-lang.c (ada_unop_in_range): New function.
4763 (ada_evaluate_subexp): Use it.
4764
82390ab8
TT
47652021-03-08 Tom Tromey <tom@tromey.com>
4766
4767 * ada-lang.c (ada_unop_neg): New function.
4768 (ada_evaluate_subexp): Use it.
4769
62d4bd94
TT
47702021-03-08 Tom Tromey <tom@tromey.com>
4771
4772 * ada-lang.c (eval_ternop_in_range): New function.
4773 (ada_evaluate_subexp): Use it.
4774
3634f669
TT
47752021-03-08 Tom Tromey <tom@tromey.com>
4776
4777 * opencl-lang.c (eval_opencl_assign): New function.
4778 (evaluate_subexp_opencl): Use it.
4779
5e80600e
TT
47802021-03-08 Tom Tromey <tom@tromey.com>
4781
4782 * eval.c (eval_op_objc_msgcall): New function.
4783 (evaluate_subexp_standard): Use it.
4784
fb5ba2ab
TT
47852021-03-08 Tom Tromey <tom@tromey.com>
4786
4787 * eval.c (eval_binop_assign_modify): New function.
4788 (evaluate_subexp_standard): Use it.
4789
a49881f7
TT
47902021-03-08 Tom Tromey <tom@tromey.com>
4791
4792 * m2-lang.c (eval_op_m2_subscript): New function.
4793 (evaluate_subexp_modula2): Use it.
4794
41bdced5
TT
47952021-03-08 Tom Tromey <tom@tromey.com>
4796
4797 * m2-lang.c (eval_op_m2_high): New function.
4798 (evaluate_subexp_modula2): Use it.
4799
13ea014a
TT
48002021-03-08 Tom Tromey <tom@tromey.com>
4801
4802 * eval.c (evaluate_subexp_for_address_base): New function.
4803 (evaluate_subexp_for_address): Use it.
4804 (evaluate_subexp_for_sizeof_base): New function.
4805 (evaluate_subexp_for_sizeof): Use it.
4806
1fa41fc7
TT
48072021-03-08 Tom Tromey <tom@tromey.com>
4808
4809 * rust-lang.c (eval_op_rust_structop): New function.
4810 (rust_evaluate_subexp): Use it.
4811
575cae23
TT
48122021-03-08 Tom Tromey <tom@tromey.com>
4813
4814 * rust-lang.c (eval_op_rust_struct_anon): New function.
4815 (rust_evaluate_subexp): Use it.
4816
05104233
TT
48172021-03-08 Tom Tromey <tom@tromey.com>
4818
4819 * rust-lang.c (eval_op_rust_array): New function.
4820 (rust_evaluate_subexp): Use it.
4821
6fa9831f
TT
48222021-03-08 Tom Tromey <tom@tromey.com>
4823
4824 * rust-lang.c (eval_op_rust_complement): New function.
4825 (rust_evaluate_subexp): Use it.
4826
d123f9e4
TT
48272021-03-08 Tom Tromey <tom@tromey.com>
4828
4829 * rust-lang.c (eval_op_rust_ind): New function.
4830 (rust_evaluate_subexp): Use it.
4831
984af2cb
TT
48322021-03-08 Tom Tromey <tom@tromey.com>
4833
4834 * rust-lang.c (rust_subscript): Change parameters.
4835 (rust_evaluate_subexp): Update.
4836
d148f803
TT
48372021-03-08 Tom Tromey <tom@tromey.com>
4838
4839 * rust-lang.c (rust_range): Change parameters.
4840 (rust_evaluate_subexp): Update.
4841
9cbd1c20
TT
48422021-03-08 Tom Tromey <tom@tromey.com>
4843
4844 * f-lang.c (eval_op_f_allocated): New function.
4845 (evaluate_subexp_f): Use it.
4846
3c18c49c
TT
48472021-03-08 Tom Tromey <tom@tromey.com>
4848
4849 * f-lang.c (fortran_require_array): New function.
4850 (evaluate_subexp_f): Use it.
4851
216f6fcb
TT
48522021-03-08 Tom Tromey <tom@tromey.com>
4853
4854 * f-lang.c (eval_op_f_kind): New function.
4855 (evaluate_subexp_f): Use it.
4856
00f2db6f
TT
48572021-03-08 Tom Tromey <tom@tromey.com>
4858
4859 * f-lang.c (eval_op_f_cmplx): New function.
4860 (evaluate_subexp_f): Use it.
4861
93b2b5fa
TT
48622021-03-08 Tom Tromey <tom@tromey.com>
4863
4864 * f-lang.c (eval_op_f_modulo): New function.
4865 (evaluate_subexp_f): Use it.
4866
9f1a1f3c
TT
48672021-03-08 Tom Tromey <tom@tromey.com>
4868
4869 * f-lang.c (eval_op_f_floor): New function.
4870 (evaluate_subexp_f): Use it.
4871
3dc41f3c
TT
48722021-03-08 Tom Tromey <tom@tromey.com>
4873
4874 * f-lang.c (eval_op_f_ceil): New function.
4875 (evaluate_subexp_f): Use it.
4876
e08109f2
TT
48772021-03-08 Tom Tromey <tom@tromey.com>
4878
4879 * f-lang.c (eval_op_f_mod): New function.
4880 (evaluate_subexp_f): Use it.
4881
cc05c68e
TT
48822021-03-08 Tom Tromey <tom@tromey.com>
4883
4884 * f-lang.c (eval_op_f_abs): New function.
4885 (evaluate_subexp_f): Use it.
4886
aec95807
TT
48872021-03-08 Tom Tromey <tom@tromey.com>
4888
4889 * eval.c (eval_op_type): New function.
4890 (evaluate_subexp_standard): Use it.
4891
a220ead5
TT
48922021-03-08 Tom Tromey <tom@tromey.com>
4893
4894 * eval.c (eval_op_postdec): New function.
4895 (evaluate_subexp_standard): Use it.
4896
abffe116
TT
48972021-03-08 Tom Tromey <tom@tromey.com>
4898
4899 * eval.c (eval_op_postinc): New function.
4900 (evaluate_subexp_standard): Use it.
4901
9e1361b7
TT
49022021-03-08 Tom Tromey <tom@tromey.com>
4903
4904 * eval.c (eval_op_predec): New file.
4905 (evaluate_subexp_standard): Use it.
4906
00f50884
TT
49072021-03-08 Tom Tromey <tom@tromey.com>
4908
4909 * eval.c (eval_op_preinc): New function.
4910 (evaluate_subexp_standard): Use it.
4911
3aef2a07
TT
49122021-03-08 Tom Tromey <tom@tromey.com>
4913
4914 * eval.c (eval_op_memval): New function.
4915 (evaluate_subexp_standard): Use it.
4916
acee9468
TT
49172021-03-08 Tom Tromey <tom@tromey.com>
4918
4919 * eval.c (eval_op_alignof): New function.
4920 (evaluate_subexp_standard): Use it.
4921
786f70ee
TT
49222021-03-08 Tom Tromey <tom@tromey.com>
4923
4924 * eval.c (eval_op_ind): New function.
4925 (evaluate_subexp_standard): Use it.
4926
24338fb9
TT
49272021-03-08 Tom Tromey <tom@tromey.com>
4928
4929 * eval.c (eval_op_lognot): New function.
4930 (evaluate_subexp_standard): Use it.
4931
1f09ec81
TT
49322021-03-08 Tom Tromey <tom@tromey.com>
4933
4934 * eval.c (eval_op_complement): New function.
4935 (evaluate_subexp_standard): Use it.
4936
606d105f
TT
49372021-03-08 Tom Tromey <tom@tromey.com>
4938
4939 * eval.c (eval_op_neg): New function.
4940 (evaluate_subexp_standard): Use it.
4941
39f288be
TT
49422021-03-08 Tom Tromey <tom@tromey.com>
4943
4944 * eval.c (eval_op_plus): New function.
4945 (evaluate_subexp_standard): Use it.
4946
eed70b1c
TT
49472021-03-08 Tom Tromey <tom@tromey.com>
4948
4949 * eval.c (eval_op_repeat): New function.
4950 (evaluate_subexp_standard): Use it.
4951
60cdd487
TT
49522021-03-08 Tom Tromey <tom@tromey.com>
4953
4954 * eval.c (eval_op_leq): New function.
4955 (evaluate_subexp_standard): Use it.
4956
96e3efd9
TT
49572021-03-08 Tom Tromey <tom@tromey.com>
4958
4959 * eval.c (eval_op_geq): New function.
4960 (evaluate_subexp_standard): Use it.
4961
1f78d732
TT
49622021-03-08 Tom Tromey <tom@tromey.com>
4963
4964 * eval.c (eval_op_gtr): New function.
4965 (evaluate_subexp_standard): Use it.
4966
6cad1349
TT
49672021-03-08 Tom Tromey <tom@tromey.com>
4968
4969 * eval.c (eval_op_less): New function.
4970 (evaluate_subexp_standard): Use it.
4971
1fcb3559
TT
49722021-03-08 Tom Tromey <tom@tromey.com>
4973
4974 * eval.c (eval_op_notequal): New function.
4975 (evaluate_subexp_standard): Use it.
4976
0cc96de8
TT
49772021-03-08 Tom Tromey <tom@tromey.com>
4978
4979 * eval.c (eval_op_equal): New function.
4980 (evaluate_subexp_standard): Use it.
4981
288d26bc
TT
49822021-03-08 Tom Tromey <tom@tromey.com>
4983
4984 * eval.c (eval_op_subscript): New function.
4985 (evaluate_subexp_standard): Use it.
4986
7cdcdd02
TT
49872021-03-08 Tom Tromey <tom@tromey.com>
4988
4989 * eval.c (eval_op_binary): New function.
4990 (evaluate_subexp_standard): Use it.
4991
d9790e22
TT
49922021-03-08 Tom Tromey <tom@tromey.com>
4993
4994 * eval.c (eval_op_sub): New function.
4995 (evaluate_subexp_standard): Use it.
4996
aedaf9ac
TT
49972021-03-08 Tom Tromey <tom@tromey.com>
4998
4999 * eval.c (eval_op_add): New function.
5000 (evaluate_subexp_standard): Use it.
5001
b7a96ed2
TT
50022021-03-08 Tom Tromey <tom@tromey.com>
5003
5004 * eval.c (eval_op_member): New function.
5005 (evaluate_subexp_standard): Use it.
5006
fb461aa3
TT
50072021-03-08 Tom Tromey <tom@tromey.com>
5008
5009 * eval.c (eval_op_structop_ptr): New function.
5010 (evaluate_subexp_standard): Use it.
5011
3e96c4fc
TT
50122021-03-08 Tom Tromey <tom@tromey.com>
5013
5014 * eval.c (eval_op_structop_struct): New function.
5015 (evaluate_subexp_standard): Use it.
5016
f960a617
TT
50172021-03-08 Tom Tromey <tom@tromey.com>
5018
5019 * eval.c (eval_op_ternop): New function.
5020 (evaluate_subexp_standard): Use it.
5021
5c2f201e
TT
50222021-03-08 Tom Tromey <tom@tromey.com>
5023
5024 * eval.c (eval_op_concat): New function.
5025 (evaluate_subexp_standard): Use it.
5026
f871bae1
TT
50272021-03-08 Tom Tromey <tom@tromey.com>
5028
5029 * eval.c (eval_op_objc_selector): New function.
5030 (evaluate_subexp_standard): Use it.
5031
14a1c64a
TT
50322021-03-08 Tom Tromey <tom@tromey.com>
5033
5034 * eval.c (eval_op_string): New function.
5035 (evaluate_subexp_standard): Use it.
5036
ffff730b
TT
50372021-03-08 Tom Tromey <tom@tromey.com>
5038
5039 * eval.c (eval_op_register): New function.
5040 (evaluate_subexp_standard): Use it.
5041
9b1d8af6
TT
50422021-03-08 Tom Tromey <tom@tromey.com>
5043
5044 * eval.c (eval_op_func_static_var): New function.
5045 (evaluate_subexp_standard): Use it.
5046
c0df9289
TT
50472021-03-08 Tom Tromey <tom@tromey.com>
5048
5049 * eval.c (eval_op_var_msym_value): New function.
5050 (evaluate_subexp_standard): Use it.
5051
50b98adc
TT
50522021-03-08 Tom Tromey <tom@tromey.com>
5053
5054 * eval.c (eval_op_var_entry_value): New function.
5055 (evaluate_subexp_standard): Use it.
5056
ea2d29f7
TT
50572021-03-08 Tom Tromey <tom@tromey.com>
5058
5059 * eval.c (eval_op_scope): New function.
5060 (evaluate_subexp_standard): Use it.
5061
01573d73
TT
50622021-03-06 Chernov Sergey <klen_s@mail.ru>
5063
5064 PR gdb/27528:
5065 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5066
9938d15a
TT
50672021-03-06 Tom Tromey <tom@tromey.com>
5068
5069 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5070 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5071 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5072 (locate_dwz_sections, dwz_search_other_debugdirs)
5073 (dwarf2_get_dwz_file): Move to dwz.c.
5074 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5075 read.h.
5076 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5077 (dwarf2_get_dwz_file): Move from read.c.
5078
18035655
TT
50792021-03-06 Tom Tromey <tom@tromey.com>
5080
5081 * debuginfod-support.h: Include scoped_fd.h.
5082
a7308ce0
TT
50832021-03-06 Tom Tromey <tom@tromey.com>
5084
5085 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5086 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5087 (get_abbrev_section_for_cu, read_attribute_value)
5088 (get_debug_line_section): Update.
5089 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5090
fbedd546
TT
50912021-03-06 Tom Tromey <tom@tromey.com>
5092
5093 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5094 method.
5095 * dwarf2/read.c (section_is_p): Remove.
5096 (dwarf2_per_bfd::locate_sections)
5097 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5098 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5099 (dwarf2_locate_common_dwp_sections)
5100 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5101 Update.
5102
c2a62a3d
TT
51032021-03-06 Tom Tromey <tom@tromey.com>
5104
5105 * xcoffread.c: Include sect-names.h.
5106 * symfile.h (struct dwarf2_section_names, struct
5107 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5108 * dwarf2/sect-names.h: New file, from symfile.h.
5109 * dwarf2/read.c: Include sect-names.h.
5110
4444f407
TT
51112021-03-06 Tom Tromey <tom@tromey.com>
5112
5113 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5114 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5115 (abbrev_table::read): Update.
5116 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5117 (struct abbrev_info): Reformat.
5118 <attrs>: Now an array.
5119 (struct abbrev_table) <alloc_abbrev>: Remove.
5120
dd99cf0c
WP
51212021-03-06 Weimin Pan <weimin.pan@oracle.com>
5122
5123 * ctfread.c (ctf_psymtab_add_enums): New function.
5124 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5125
844be3f2
WP
51262021-03-06 Weimin Pan <weimin.pan@oracle.com>
5127
5128 * ctfread.c (read_func_kind_type): Set up function arguments.
5129
b2668f28
AB
51302021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5131 Andrew Burgess <andrew.burgess@embecosm.com>
5132
5133 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5134 includes.
5135 (riscv_csrset): New static global.
5136 (riscv_update_csrmap): New function.
5137 (riscv_iterate_over_regset_sections): Process CSRs.
5138
d782d24b
AB
51392021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * riscv-tdep.c (riscv_feature_name_csr): Define.
5142 (riscv_feature_name_cpu): Define.
5143 (riscv_feature_name_fpu): Define.
5144 (riscv_feature_name_virtual): Define.
5145 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5146 (riscv_freg_feature): Use riscv_feature_name_fpu.
5147 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5148 (riscv_csr_feature): Use riscv_feature_name_csr.
5149 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5150
fb8f3fc0
AB
51512021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5152 Craig Blackmore <craig.blackmore@embecosm.com>
5153
5154 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5155 (ALLDEPFILES): Add riscv-none-tdep.c.
5156 * configure: Regenerate.
5157 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5158 support.
5159 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5160 * elf-none-tdep.c: New file.
5161 * elf-none-tdep.h: New file.
5162 * riscv-none-tdep.c: New file.
5163
95ce627a
AB
51642021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5165 Andrew Burgess <andrew.burgess@embecosm.com>
5166
5167 * corelow.c: Add 'xml-tdesc.h' include.
5168 (core_target::read_description): Load the target description from
5169 the core file when possible.
5170 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5171 note.
5172 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5173 (gcore_elf_make_tdesc_note): New function.
5174 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5175 * linux-tdep.c (linux_make_corefile_notes): Add target description
5176 note.
5177
f3a5df7b
AB
51782021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 * Makefile.in (SFILES): Add gcore-elf.c.
5181 (HFILES_NO_SRCDIR): Add gcore-elf.h
5182 * configure: Regenerate.
5183 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5184 support.
5185 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5186 (struct fbsd_collect_regset_section_cb_data): Delete.
5187 (fbsd_collect_regset_section_cb): Delete.
5188 (fbsd_collect_thread_registers): Delete.
5189 (struct fbsd_corefile_thread_data): Delete.
5190 (fbsd_corefile_thread): Delete.
5191 (fbsd_make_corefile_notes): Call
5192 gcore_elf_build_thread_register_notes instead of the now deleted
5193 FreeBSD code.
5194 * gcore-elf.c: New file, the content was moved here from
5195 linux-tdep.c, functions were renamed and given minor cleanup.
5196 * gcore-elf.h: New file.
5197 * gcore.c (gcore_find_signalled_thread): Moved here from
5198 linux-tdep.c and given a new name. Minor cleanups.
5199 * gcore.h (gcore_find_signalled_thread): Declare.
5200 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5201 (struct linux_collect_regset_section_cb_data): Delete.
5202 (linux_collect_regset_section_cb): Delete.
5203 (linux_collect_thread_registers): Delete.
5204 (linux_corefile_thread): Call
5205 gcore_elf_build_thread_register_notes.
5206 (find_signalled_thread): Delete.
5207 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5208
d1e93af6
SM
52092021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5210
5211 PR gdb/27147
5212 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5213 process_stratum_target parameter,
5214 sparc_store_inferior_registers): update callers.
5215 * sparc-nat.c (sparc_fetch_inferior_registers,
5216 sparc_store_inferior_registers): Add process_stratum_target
5217 parameter. Switch current thread before calling
5218 sparc_supply_gregset / sparc_collect_rwindow.
5219 (sparc_store_inferior_registers): Likewise.
5220 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5221 (sparc32obsd_collect_uthread): Likewise.
5222 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5223 Add assertion.
5224 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5225 sparc64obsd_supply_uthread): Add assertion.
5226
1178743e
TT
52272021-03-04 Tom Tromey <tromey@adacore.com>
5228
5229 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5230 (aux_add_nonlocal_symbols): Update.
5231 (ada_add_block_symbols): Change "found_sym" to bool.
5232
1bfa81ac
TT
52332021-03-03 Tom Tromey <tromey@adacore.com>
5234
5235 * ada-lang.c (ada_resolve_function): Update comment.
5236 (is_nonfunction, add_symbols_from_enclosing_procs)
5237 (remove_extra_symbols): Likewise.
5238 (struct match_data): Add constructor, initializers.
5239 (add_nonlocal_symbols): Remove memset.
5240 (aux_add_nonlocal_symbols): Update comment.
5241 (ada_add_block_renamings, add_nonlocal_symbols)
5242 (ada_add_all_symbols): Likewise.
5243 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5244
bbcdf9ab
TT
52452021-03-02 Tom Tromey <tromey@adacore.com>
5246
5247 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5248 (cast_to_gnat_encoded_fixed_point_type): Remove.
5249 (ada_value_cast, ada_evaluate_subexp): Update.
5250 (gnat_encoded_fixed_point_type_info)
5251 (ada_is_gnat_encoded_fixed_point_type)
5252 (gnat_encoded_fixed_point_delta)
5253 (gnat_encoded_fixed_point_scaling_factor): Remove.
5254 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5255 (gnat_encoded_fixed_point_delta)
5256 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5257 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5258 (ada_print_type): Update.
5259 * ada-valprint.c (ada_value_print_num): Update.
5260 * dwarf2/read.c (ada_get_gnat_encoded_number)
5261 (ada_get_gnat_encoded_ratio): New functions.
5262 (finish_fixed_point_type): Use them. Add parameters.
5263 (GNAT_FIXED_POINT_SUFFIX): New define.
5264 (gnat_encoded_fixed_point_type_info): New function.
5265 (read_base_type): Handle gnat encodings.
5266
5f9febe0
TT
52672021-03-02 Tom Tromey <tromey@adacore.com>
5268
5269 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5270 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5271 std::string.
5272 (GROW_VECT): Remove.
5273 (grow_vect): Remove.
5274
d1183b06
TT
52752021-03-02 Tom Tromey <tromey@adacore.com>
5276
5277 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5278 * ada-lang.c (resolve_subexp): Update.
5279 (ada_resolve_function): Accept a vector.
5280 (is_nonfunction, add_defn_to_vec)
5281 (add_symbols_from_enclosing_procs): Likewise.
5282 (num_defns_collected, defns_collected): Remove.
5283 (remove_extra_symbols): Return a vector.
5284 (remove_irrelevant_renamings): Return void.
5285 (ada_add_local_symbols): Accept a vector.
5286 (struct match_data) <obstackp>: Remove.
5287 <resultp>: New member.
5288 (aux_add_nonlocal_symbols): Update.
5289 (ada_add_block_renamings, add_nonlocal_symbols)
5290 (ada_add_all_symbols): Accept a vector.
5291 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5292 vector.
5293 (ada_lookup_symbol): Update.
5294 (ada_add_block_symbols): Accept a vector.
5295 (get_var_value, iterate_over_symbols): Update.
5296 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5297 Update.
5298
886d459f
TT
52992021-03-02 Tom Tromey <tromey@adacore.com>
5300
5301 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5302
bdcccc56
TT
53032021-03-02 Tom Tromey <tromey@adacore.com>
5304
5305 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5306 auto_obstack.
5307 <root>: Initialize.
5308 (ada_pspace_data): Remove destructor.
5309 <sym_cache>: Now a unique_ptr.
5310 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5311 (ada_get_symbol_cache): Use 'new'.
5312 (ada_clear_symbol_cache): Rewrite.
5313
1228719f
TT
53142021-03-02 Tom Tromey <tromey@adacore.com>
5315
5316 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5317 is null.
5318
bb3a4efe
LS
53192021-02-27 Lancelot Six <lsix@lancelotsix.com>
5320
5321 PR gdb/27393
5322 * source.c (add_path): Skip empty dirnames.
5323
26b43ca6 53242021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5325
5326 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5327 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5328
dffdd8b5
SM
53292021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5330
5331 PR gdb/26861
5332 * target.c (target_mourn_inferior): Only compare pids in
5333 target_mourn_inferior.
5334
64d38fdd
JM
53352021-02-25 Jan Matyas <jmatyas@codasip.com>
5336
5337 PR gdb/26819
5338 * remote.c (remote_target::start_remote): Ensure the single
5339 thread, automatically added for remote targets without the
5340 concept of threading, is initially in set to the "resumed"
5341 state.
5342 * remote.c (remote_target::add_current_inferior_and_thread):
5343 Add return value - return the main thread.
5344
2450ad54
JV
53452021-02-25 Jan Vrany <jan.vrany@labware.com>
5346
5347 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5348 (mi_tsv_created): Likewise.
5349 (mi_tsv_deleted): Likewise.
5350
30c80d88
TV
53512021-02-25 Tom de Vries <tdevries@suse.de>
5352
5353 PR symtab/27354
5354 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5355 section_kind for &dwo_file->sections.info.
5356
68337b8b
AB
53572021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5358
5359 PR fortran/26155
5360 * f-lang.c (fortran_argument_convert): Delete declaration.
5361 (fortran_prepare_argument): New function.
5362 (evaluate_subexp_f): Move logic to new function
5363 fortran_prepare_argument.
5364
faeb9f13
AB
53652021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5366
5367 * f-exp.y (f77_keywords): Add 'associated'.
5368 * f-lang.c (fortran_associated): New function.
5369 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5370 (operator_length_f): Likewise.
5371 (print_unop_or_binop_subexp_f): New function.
5372 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5373 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5374 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5375 (operator_check_f): Likewise.
5376 * std-operator.def: Add FORTRAN_ASSOCIATED.
5377
170f4b23
AB
53782021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5379
5380 * f-exp.y (fortran_operators): Add ".xor.".
5381
aa659cfa
TV
53822021-02-24 Tom de Vries <tdevries@suse.de>
5383
5384 PR symtab/27336
5385 * dwarf2/attribute.c (attribute::form_is_signed): New function
5386 factored out of ...
5387 * dwarf2/attribute.h (attribute::as_signed): ... here.
5388 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5389 (attribute::form_is_signed): Declare.
5390 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5391 for DW_AT_decl_file.
5392
268c77c1
KB
53932021-02-24 Kevin Buettner <kevinb@redhat.com>
5394
5395 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5396 order for <sys/ptrace.h> and <asm/ptrace.h>.
5397
665af52e
KB
53982021-02-24 Kevin Buettner <kevinb@redhat.com>
5399
5400 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5401 <sys/ptrace.h>.
5402
dd80d750
AB
54032021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5404
5405 * exec.c (set_section_command): Move variable declarations into
5406 the function body, and use std::string instead of a fixed size
5407 buffer.
5408
336aa7b7
AB
54092021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5410
5411 * exec.c (exec_target::get_section_table): Delete member function.
5412 (section_table_read_available_memory): Use current_top_target, not
5413 just the exec_ops target.
5414 * target-delegates.c: Regenerate.
5415 * target.c (default_get_section_table): New function.
5416 * target.h (target_ops::get_section_table): Change default
5417 behaviour to call default_get_section_table.
5418 (default_get_section_table): Declare.
5419
02f7d26b
AB
54202021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5421
5422 * exec.c (exec_target::close): Call new clear_target_sections
5423 function.
5424 (program_space::add_target_sections): Update name of member
5425 variable.
5426 (program_space::add_target_sections): Update name of member
5427 variable.
5428 (program_space::remove_target_sections): Likewise.
5429 (exec_one_fork): Use new target_sections member function.
5430 (exec_target::get_section_table): Likewise.
5431 (exec_target::files_info): Likewise.
5432 (set_section_command): Likewise.
5433 (exec_set_section_address): Likewise.
5434 (exec_target::has_memory): Use new target_sections member
5435 function.
5436 * progspace.h (program_space::clear_target_sections): New member
5437 function.
5438 (program_space::target_sections): Rename member variable to
5439 m_target_sections, replace with a new member function.
5440 (program_space::m_target_sections): New member variable.
5441 * solib-dsbt.c (scan_dyntag): Use new member function.
5442 * solib-svr4.c (scan_dyntag): Likewise.
5443
19cf757a
AB
54442021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5445
5446 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5447 return type const.
5448 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5449 (section_table_read_available_memory): Make local const.
5450 (exec_target::xfer_partial): Make local const.
5451 (print_section_info): Make parameter const.
5452 * gdb/exec.h (print_section_info): Likewise.
5453 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5454 const.
5455 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5456 Likewise.
5457 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5458 Likewise.
5459 * gdb/s390-tdep.c (s390_load): Likewise.
5460 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5461 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5462 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5463 Rename to...
5464 (target_debug_print_const_target_section_table_p): ...this.
5465 * gdb/target-delegates.c: Regenerate.
5466 * gdb/target.c (target_get_section_table): Make return type const.
5467 (target_section_by_addr): Likewise. Also make some locals const.
5468 (memory_xfer_partial_1): Make some locals const.
5469 * gdb/target.h (struct target_ops) <get_section_table>: Make
5470 return type const.
5471 (target_section_by_addr): Likewise.
5472 (target_get_section_table): Likewise.
5473
02a79309
AB
54742021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5475
5476 * NEWS: Mention new 'maint info target-sections' command.
5477 * maint.c (maintenance_info_target_sections): New function.
5478 (_initialize_maint_cmds): Register new command.
5479
895b7b4e
AB
54802021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5481
5482 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5483 (riscv_features_from_bfd): ...this. Change parameter type to
5484 'bfd*', and update as required.
5485 (riscv_find_default_target_description): Update call to
5486 riscv_features_from_bfd. Select a default xlen based on
5487 info.bfd_arch_info.
5488 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5489
bc3c0632
AB
54902021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5491
5492 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5493 dynamic types in UNOP_IND.
5494
08ac5771
SM
54952021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5496
5497 PR gdb/26828
5498 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5499 Instantiate queue.
5500 (~dwarf2_queue_guard): Clear queue.
5501 (queue_comp_unit): Assert that queue is
5502 instantiated.
5503 (process_queue): Adjust.
5504 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5505
616c069a
SM
55062021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5507
5508 PR gdb/26828
5509 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5510 to decide whether or not to enqueue it for expansion.
5511 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5512 after calling maybe_queue_comp_unit.
5513
897608ed
SM
55142021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5515
5516 * linux-nat.c (linux_nat_filter_event): Return void.
5517
15908a11
TT
55182021-02-22 Tom Tromey <tromey@adacore.com>
5519
5520 * solib-svr4.c (enable_break): Update.
5521 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5522 type.
5523 (target_bfd_reopen): Change parameter type.
5524 * bfd-target.h (target_bfd_reopen): Change parameter type.
5525
f53fc427
SM
55262021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5527
5528 * thread.c (add_thread_silent): Add assert.
5529 (find_thread_ptid): Add assert.
5530
de146e19
SM
55312021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5532
5533 PR gdb/27435
5534 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5535 (target_unpush_up): Likewise.
5536 * procfs.c (procfs_target::attach): Push target early. Use
5537 target_unpush_up to unpush target in case of error.
5538 * target.h (struct target_unpusher): Move here.
5539 (target_unpush_up): Likewise.
5540
8488c357
KB
55412021-02-19 Kevin Buettner <kevinb@redhat.com>
5542
5543 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5544 (which in turn includes <gnulib/config.h>) before include
5545 of <signal.h>.
5546
5a9f5403
NC
55472021-02-19 Nelson Chu <nelson.chu@sifive.com>
5548
5549 PR 27158
5550 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5551 (decode_j_type_insn): Likewise.
5552 (decode_cj_type_insn): Likewise.
5553 (decode_b_type_insn): Likewise.
5554 (decode): Likewise.
5555
26f53cd3
TT
55562021-02-18 Tom Tromey <tom@tromey.com>
5557
5558 * expression.h (struct expression) <evaluate>: Declare method.
5559 * eval.c (evaluate_subexp): Simplify.
5560 (expression::evaluate): New method.
5561 (evaluate_expression, evaluate_type): Use expression::evaluate.
5562
6a780b67
KB
55632021-02-17 Kevin Buettner <kevinb@redhat.com>
5564
5565 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5566 to accessing it.
5567 (ada_lookup_name_info): Likewise.
5568
adeab0c5
MF
55692021-02-13 Mike Frysinger <vapier@gentoo.org>
5570
5571 * aclocal.m4: Regenerate.
5572
089436f7
TV
55732021-02-12 Tom de Vries <tdevries@suse.de>
5574
5575 PR threads/26228
5576 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5577 (lin_thread_signals): New static var.
5578 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5579 New function.
5580 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5581 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5582 Declare.
5583 * linux-thread-db.c (check_thread_signals): Use
5584 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5585
96df3e28
AB
55862021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5587
5588 * f-exp.y (f77_keywords): Add allocated.
5589 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5590 (operator_length_f): Likewise.
5591 (print_subexp_f): Likewise.
5592 (dump_subexp_body_f): Likewise.
5593 (operator_check_f): Likewise.
5594 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5595
05f68f52
TV
55962021-02-11 Tom de Vries <tdevries@suse.de>
5597
5598 PR symtab/27353
5599 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5600 Return true for DW_FORM_strx.
5601
b260f8d6
TT
56022021-02-11 Tom Tromey <tromey@adacore.com>
5603
5604 PR gdb/27383:
5605 * parse.c (write_exp_symbol_reference): Write sym.block.
5606
bf3386f0
AB
56072021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5608
5609 * NEWS: Mention changes to 'maint info sections'.
5610 * maint.c (match_substring): Return a bool, fix whitespace issue.
5611 (struct single_bfd_flag_info): New struct.
5612 (bfd_flag_info): New static global.
5613 (match_bfd_flags): Return a bool, use bfd_flag_info.
5614 (print_bfd_flags): Use bfd_flag_info.
5615 (maint_print_section_info): Delete trailing whitespace.
5616 (struct maint_info_sections_opts): New struct.
5617 (maint_info_sections_option_defs): New static global.
5618 (maint_info_sections_completer): New function.
5619 (maintenance_info_sections): Use option parsing mechanism.
5620 (_initialize_maint_cmds): Update command help text for 'maint info
5621 sections' and register a command completer.
5622
4790db14
AB
56232021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5624
5625 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5626 functionality merged into...
5627 (maint_print_all_sections): ...this new function.
5628 (maintenance_info_sections): Make use of maint_print_all_sections,
5629 allow all objects to be printed even where there's no executable.
5630
1db66e34
AB
56312021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5632
5633 * breakpoint.c (resolve_sal_pc): Make use of
5634 bound_minimal_symbol::obj_section.
5635 * maint.c (maintenance_translate_address): Likewise.
5636 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5637 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5638 member function.
5639 * printcmd.c (info_address_command): Make use of
5640 bound_minimal_symbol::obj_section.
5641
18b8df43
AM
56422021-02-11 Alan Modra <amodra@gmail.com>
5643
5644 * arm-symbian-tdep.c: Delete.
5645 * NEWS: Mention arm-symbian removal.
5646 * Makefile.in: Remove arm-symbian-tdep entries.
5647 * configure.tgt: Remove arm*-*-symbianelf*.
5648 * doc/gdb.texinfo: Remove mention of SymbianOS.
5649 * osabi.c (gdb_osabi_names): Remove "Symbian".
5650 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5651 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5652 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5653 handling.
5654 * testsuite/gdb.base/dup-sect.exp: Likewise.
5655 * testsuite/gdb.base/long_long.exp: Likewise.
5656 * testsuite/gdb.base/solib-weak.exp: Likewise.
5657 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5658 * testsuite/gdb.python/py-section-script.exp: Likewise.
5659 * testsuite/lib/dwarf.exp: Likewise.
5660 * testsuite/lib/gdb.exp: Likewise.
5661
e92c8eb8
AB
56622021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5663
5664 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5665 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5666 (one_or_two_args): New pattern.
5667 (f77_keywords): Add lbound and ubound.
5668 * f-lang.c (fortran_bounds_all_dims): New function.
5669 (fortran_bounds_for_dimension): New function.
5670 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5671 (operator_length_f): Likewise.
5672 (print_subexp_f): Likewise.
5673 (dump_subexp_body_f): Likewise.
5674 (operator_check_f): Likewise.
5675 * std-operator.def (FORTRAN_LBOUND): Define.
5676 (FORTRAN_UBOUND): Define.
5677
a52d653e
AB
56782021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5679
5680 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5681 and set_section_index member functions where appropriate.
5682 * coffread.c (coff_symtab_read): Likewise.
5683 (process_coff_symbol): Likewise.
5684 * ctfread.c (set_symbol_address): Likewise.
5685 * dwarf2/read.c (add_partial_symbol): Likewise.
5686 (var_decode_location): Likewise.
5687 * language.c: Likewise.
5688 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5689 (compact_minimal_symbols): Likewise.
5690 (minimal_symbol_upper_bound): Likewise.
5691 * objfiles.c (relocate_one_symbol): Likewise.
5692 * psympriv.h (partial_symbol::obj_section): Likewise.
5693 (partial_symbol::address): Likewise.
5694 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5695 * stabsread.c (scan_file_globals): Likewise.
5696 * symmisc.c (dump_msymbols): Likewise.
5697 * symtab.c (general_symbol_info::obj_section): Likewise.
5698 (fixup_section): Likewise.
5699 (get_msymbol_address): Likewise.
5700 * symtab.h (general_symbol_info::section): Rename to...
5701 (general_symbol_info::m_section): ...this.
5702 (general_symbol_info::set_section_index): New member function.
5703 (general_symbol_info::section_index): Likewise.
5704 (SYMBOL_SECTION): Delete.
5705 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5706 set_section_index member functions where appropriate.
5707 (MSYMBOL_SECTION): Delete.
5708 (symbol::symbol): Update to initialize 'm_section'.
5709 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5710 (process_xcoff_symbol): Likewise.
5711
ebbc3a7d
AB
57122021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5713
5714 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5715 MSYMBOL_OBJ_SECTION.
5716 * findvar.c (language_defn::read_var_value): Likewise.
5717 * infcmd.c (jump_command): Likewise.
5718 * linespec.c (minsym_found): Likewise.
5719 * maint.c (maintenance_translate_address): Likewise.
5720 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5721 (minimal_symbol_upper_bound): Likewise.
5722 * parse.c (find_minsym_type_and_address): Likewise.
5723 (operator_check_standard): Likewise.
5724 * printcmd.c (info_address_command): Likewise.
5725 * symmisc.c (dump_msymbols): Likewise.
5726 (print_symbol): Likewise.
5727 * symtab.c (general_symbol_info::obj_section): Define new
5728 function.
5729 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5730 (find_pc_sect_compunit_symtab): Likewise.
5731 (find_function_start_sal): Likewise.
5732 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5733 MSYMBOL_OBJ_SECTION.
5734 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5735 function.
5736 (SYMBOL_OBJ_SECTION): Delete.
5737 (MSYMBOL_OBJ_SECTION): Delete.
5738
9bb305b3
TT
57392021-02-09 Tom Tromey <tom@tromey.com>
5740
5741 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5742
cf2b2075
TV
57432021-02-09 Tom de Vries <tdevries@suse.de>
5744
5745 PR symtab/27341
5746 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5747 construct an array type. Add assert to ensure that element_type is
5748 not being modified.
5749
03642b71
AB
57502021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5751
5752 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5753 (gcore_collect_regset_section_cb): Delete.
5754 (gcore_collect_thread_registers): Delete.
5755 (gcore_build_thread_register_notes): Delete.
5756 (gcore_find_signalled_thread): Delete.
5757 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5758 'gdbarch' and 'thread_info' declarations.
5759 (gcore_build_thread_register_notes): Delete declaration.
5760 (gcore_find_signalled_thread): Likewise.
5761 * fbsd-tdep.c: Remove 'gcore.h' include.
5762 (struct fbsd_collect_regset_section_cb_data): New struct.
5763 (fbsd_collect_regset_section_cb): New function.
5764 (fbsd_collect_thread_registers): New function.
5765 (struct fbsd_corefile_thread_data): New struct.
5766 (fbsd_corefile_thread): New function.
5767 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5768 * linux-tdep.c: Remove 'gcore.h' include.
5769 (struct linux_collect_regset_section_cb_data): New struct.
5770 (linux_collect_regset_section_cb): New function.
5771 (linux_collect_thread_registers): New function.
5772 (linux_corefile_thread): Call Linux specific code.
5773 (find_signalled_thread): New function.
5774 (linux_make_corefile_notes): Call find_signalled_thread.
5775
f73e424f
TT
57762021-02-09 Tom Tromey <tromey@adacore.com>
5777
5778 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5779 not_lval value.
5780 * value.c (value_contents_copy_raw): Now static.
5781 * value.h (value_contents_copy_raw): Don't declare.
5782
a4f0544b
TT
57832021-02-09 Tom Tromey <tromey@adacore.com>
5784
5785 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5786 fields.
5787
9b3e4b5d
SV
57882021-02-08 Shahab Vahedi <shahab@synopsys.com>
5789
5790 PR tdep/27369
5791 * arc-linux-tdep.c (handle_atomic_sequence): New.
5792 (arc_linux_software_single_step): Call handle_atomic_sequence().
5793
29db1eb3
AB
57942021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5795
5796 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5797 function.
5798 (REQUIRE_WINDOW): Call is_valid member function.
5799 (REQUIRE_WINDOW_FOR_SETTER): New define.
5800 (gdbpy_tui_is_valid): Call is_valid member function.
5801 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5802 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5803 tui_active too.
5804 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5805 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5806 the function.
5807
e0c23e11
AB
58082021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5809
5810 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5811 for the title is not nullptr.
5812
1cf23996
AB
58132021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5814
5815 * tui-layout.c (saved_tui_windows): Delete.
5816 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5817 call new get_windows member function instead.
5818 (tui_get_window_by_name): Check in tui_windows.
5819 (tui_layout_window::apply): Don't add to tui_windows.
5820 * tui-layout.h (tui_layout_base::get_windows): New member function.
5821 (tui_layout_window::get_windows): Likewise.
5822 (tui_layout_split::get_windows): Likewise.
5823
a53a2657
AB
58242021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5825
5826 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5827 of the window objects.
5828
2708dbbd
AB
58292021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5830
5831 * python/python.c (gdbpy_print_stack): Reformat an error message.
5832
cd074e04
AB
58332021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5834
5835 * tui/tui-interp.c (tui_command_line_handler): New function.
5836 (tui_interp::resume): Register tui_command_line_handler as the
5837 input_handler.
5838 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5839 function.
5840 (tui_getc_1): Delete handling of '\n' and '\r'.
5841 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5842
4cf28e91
HD
58432021-02-07 Hannes Domani <ssbssa@yahoo.de>
5844
5845 * tui/tui-regs.c (tui_data_window::display_registers_from):
5846 Mark invisible register sub windows.
5847 (tui_data_window::check_register_values): Ignore invisible
5848 register sub windows.
5849
3537bc23
HD
58502021-02-07 Hannes Domani <ssbssa@yahoo.de>
5851
5852 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5853 n_spaces with a negative value.
5854
5fc2d6aa
HD
58552021-02-07 Hannes Domani <ssbssa@yahoo.de>
5856
5857 * tui/tui-regs.c (tui_data_window::display_registers_from):
5858 Add refresh_window call.
5859
83962f83
HD
58602021-02-07 Hannes Domani <ssbssa@yahoo.de>
5861
5862 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5863
0110ec82
SM
58642021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * symmisc.c (std_in, std_out, std_err): Remove.
5867 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5868
7c6944ab
TV
58692021-02-05 Tom de Vries <tdevries@suse.de>
5870
5871 PR breakpoints/27330
5872 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5873 glibc object file has debug info.
5874
e77b0004
TV
58752021-02-05 Tom de Vries <tdevries@suse.de>
5876
5877 PR symtab/27333
5878 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5879
0e857c82
TV
58802021-02-05 Tom de Vries <tdevries@suse.de>
5881
5882 PR breakpoints/27313
5883 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5884 syscall numbers.
5885
bdfea17e
TT
58862021-02-05 Tom Tromey <tom@tromey.com>
5887
5888 * compile/compile-c-support.c (get_compile_context)
5889 (c_get_compile_context, cplus_get_compile_context): Change return
5890 type.
5891 * language.c (language_defn::get_compile_instance): New method.
5892 * language.h (language_defn::get_compile_instance): Change return
5893 type. No longer inline.
5894 * c-lang.c (c_language::get_compile_instance): Change return type.
5895 (cplus_language::get_compile_instance): Change return type.
5896 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5897 Change return type.
5898 * compile/compile.c (compile_to_object): Update.
5899
1b30f421
TT
59002021-02-05 Tom Tromey <tom@tromey.com>
5901
5902 * parser-defs.h (write_exp_symbol_reference): Declare.
5903 * parse.c (write_exp_symbol_reference): New function.
5904 * p-exp.y (variable): Use write_exp_symbol_reference.
5905 * m2-exp.y (variable): Use write_exp_symbol_reference.
5906 * f-exp.y (variable): Use write_exp_symbol_reference.
5907 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5908 * c-exp.y (variable): Use write_exp_symbol_reference.
5909
ae710496
TV
59102021-02-05 Tom de Vries <tdevries@suse.de>
5911
5912 PR exp/27265
5913 * valarith.c (complex_binop): Throw an error if complex type can't
5914 be created.
5915
d3b54e63
TV
59162021-02-05 Tom de Vries <tdevries@suse.de>
5917
5918 PR symtab/27307
5919 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5920 return.
5921
fc9a13fb
TV
59222021-02-05 Tom de Vries <tdevries@suse.de>
5923
5924 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5925
04b4939b
MF
59262021-02-04 Mike Frysinger <vapier@gentoo.org>
5927
5928 * configure.tgt (riscv*-*-*): Set gdb_sim.
5929
6ff267e1
SM
59302021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5931
5932 * target.c (target_is_non_stop_p): Return bool.
5933 * target.h (target_is_non_stop_p): Return bool.
5934
fdbc5215
SM
59352021-02-04 Simon Marchi <simon.marchi@efficios.com>
5936
5937 * record-full.c (record_full_async_inferior_event_handler):
5938 Don't clear async event handler.
5939 (record_full_base_target::wait): Clear async event handler at
5940 beginning.
5941
85d3ad8e
SM
59422021-02-04 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * record-btrace.c (record_btrace_handle_async_inferior_event):
5945 Don't clear async event handler.
5946 (record_btrace_target::wait): Clear async event handler at
5947 beginning.
5948
baa8575b
SM
59492021-02-04 Simon Marchi <simon.marchi@efficios.com>
5950
5951 * remote.c (remote_target::wait): Clear async event handler at
5952 beginning, mark if needed at the end.
5953 (remote_async_inferior_event_handler): Don't set or clear async
5954 event handler.
5955
6b36ddeb
SM
59562021-02-04 Simon Marchi <simon.marchi@efficios.com>
5957
5958 * async-event.h (async_event_handler_func): Add documentation.
5959 * async-event.c (check_async_event_handlers): Don't clear
5960 async_event_handler ready flag.
5961 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5962 flag.
5963 * record-btrace.c (record_btrace_handle_async_inferior_event):
5964 Likewise.
5965 * record-full.c (record_full_async_inferior_event_handler):
5966 Likewise.
5967 * remote-notif.c (remote_async_get_pending_events_handler):
5968 Likewise.
5969 * remote.c (remote_async_inferior_event_handler): Likewise.
5970
72d383bb
SM
59712021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * infrun.c (handle_inferior_event): Move stop_soon variable to
5974 inner scope.
5975
408f6686
PA
59762021-02-03 Pedro Alves <pedro@palves.net>
5977
5978 * infcmd.c (detach_command): Hold strong reference to target, and
5979 if all-stop on entry, restart threads on exit.
5980 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5981 (restart_stepped_thread): ... this new function. Also handle
5982 trap_expected.
5983 (restart_after_all_stop_detach): New function.
5984 * infrun.h (restart_after_all_stop_detach): Declare.
5985
ac7d717c
PA
59862021-02-03 Pedro Alves <pedro@palves.net>
5987
5988 * infrun.c (struct step_over_info): Initialize fields.
5989 (prepare_for_detach): Handle ongoing in-line step over.
5990
e87f0fe8
PA
59912021-02-03 Pedro Alves <pedro@palves.net>
5992
5993 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5994 here...
5995 * remote.c (remote_target::remote_detach_1): ... and here ...
5996 * target.c (target_detach): ... instead of here.
5997 * target.h (target_ops::detach): Add comment.
5998
8ff53139
PA
59992021-02-03 Pedro Alves <pedro@palves.net>
6000
6001 * infrun.c (struct wait_one_event): Move higher up.
6002 (prepare_for_detach): Abort in-progress displaced steps instead of
6003 letting them complete.
6004 (handle_one): If the inferior is detaching, don't add the thread
6005 back to the global step-over chain.
6006 (restart_threads): Don't restart threads if detaching.
6007 (handle_signal_stop): Remove inferior::detaching reference.
6008
91475068
PA
60092021-02-03 Pedro Alves <pedro@palves.net>
6010
6011 * infrun.c (prepare_for_detach): Don't release scoped_restore
6012 before returning.
6013
d758e62c
PA
60142021-02-03 Pedro Alves <pedro@palves.net>
6015
6016 * infrun.c (handle_one): New function, factored out from ...
6017 (stop_all_threads): ... here.
6018
b0083dd7
PA
60192021-02-03 Pedro Alves <pedro@palves.net>
6020
6021 * remote.c (remote_notif_stop_ack): Don't error out on
6022 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6023 (remote_target::discard_pending_stop_replies): Don't delete
6024 in-flight notification; instead, clear its contents.
6025
621cc310
PA
60262021-02-03 Pedro Alves <pedro@palves.net>
6027
6028 * remote.c (extended_remote_target::attach): Set target async in
6029 the target-non-stop path too.
6030
2ab76a18
PA
60312021-02-03 Pedro Alves <pedro@palves.net>
6032
6033 PR gdb/27055
6034 * infrun.c (handle_signal_stop): Move main context_switch call
6035 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6036
2e3773ff
LS
60372021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6038
6039 * NEWS (Changed commands): Add entry for the behavior change of
6040 the inferior command.
6041 * inferior.c (inferior_command): When no argument is given to the
6042 inferior command, display info about the currently selected
6043 inferior.
6044
e57933dc
SM
60452021-02-02 Simon Marchi <simon.marchi@efficios.com>
6046
6047 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6048 a sect_offset.
6049 (read_attribute_reprocess): Adjust.
6050
2b0c7f41
SM
60512021-02-02 Simon Marchi <simon.marchi@efficios.com>
6052
6053 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6054 <gnu_ranges_base>: ... this...
6055 <rnglists_base>: ... and this.
6056 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6057 <gnu_ranges_base>: ... this...
6058 <rnglists_base>: ... and this.
6059 (read_cutu_die_from_dwo): Adjust
6060 (dwarf2_get_pc_bounds): Adjust
6061 (dwarf2_record_block_ranges): Adjust.
6062 (read_full_die_1): Adjust
6063 (partial_die_info::read): Adjust.
6064 (read_rnglist_index): Adjust.
6065
a1c40103
SM
60662021-02-02 Simon Marchi <simon.marchi@efficios.com>
6067
6068 PR gdb/26813
6069 * dwarf2/read.c (read_loclists_rnglists_header): Add
6070 header_offset parameter and use it.
6071 (read_loclist_index): Read header of the current contribution,
6072 not the one at the beginning of the section.
6073 (read_rnglist_index): Likewise.
6074
b1829e1b
SM
60752021-02-02 Simon Marchi <simon.marchi@efficios.com>
6076
6077 PR gdb/26813
6078 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6079 requires_reprocessing flag.
6080 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6081 DW_FORM_loclistx.
6082 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6083 and DW_FORM_loclistx.
6084 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6085 instead of set_address for DW_FORM_loclistx and
6086 DW_FORM_rnglistx.
6087
0c800c6e
SM
60882021-02-02 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * dwarf2/read.c (read_loclist_index): Remove bound check for
6091 start of offset.
6092 (read_rnglist_index): Likewise.
6093
05787bad
SM
60942021-02-02 Simon Marchi <simon.marchi@efficios.com>
6095
6096 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6097 of the offset.
6098
5e4d9bbc
SM
60992021-02-02 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6102
a0c1eeba
SM
61032021-02-02 Simon Marchi <simon.marchi@efficios.com>
6104
6105 * dwarf2/read.c (read_loclist_index): Change complaints into
6106 errors.
6107
2bd3e4b8
TV
61082021-02-02 Tom de Vries <tdevries@suse.de>
6109
6110 PR symtab/24620
6111 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6112 psymtab == nullptr.
6113
82a1fd3a
AB
61142021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6115
6116 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6117 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6118 here from linux-tdep.c and given a new name. Minor cleanups.
6119 (gcore_collect_regset_section_cb): Likewise.
6120 (gcore_collect_thread_registers): Likewise.
6121 (gcore_build_thread_register_notes): Likewise.
6122 (gcore_find_signalled_thread): Likewise.
6123 * gcore.h (gcore_build_thread_register_notes): Declare.
6124 (gcore_find_signalled_thread): Declare.
6125 * fbsd-tdep.c: Add 'gcore.h' include.
6126 (struct fbsd_collect_regset_section_cb_data): Delete.
6127 (fbsd_collect_regset_section_cb): Delete.
6128 (fbsd_collect_thread_registers): Delete.
6129 (struct fbsd_corefile_thread_data): Delete.
6130 (fbsd_corefile_thread): Delete.
6131 (fbsd_make_corefile_notes): Call
6132 gcore_build_thread_register_notes instead of the now deleted
6133 FreeBSD code.
6134 * linux-tdep.c: Add 'gcore.h' include.
6135 (struct linux_collect_regset_section_cb_data): Delete.
6136 (linux_collect_regset_section_cb): Delete.
6137 (linux_collect_thread_registers): Delete.
6138 (linux_corefile_thread): Call
6139 gcore_build_thread_register_notes.
6140 (find_signalled_thread): Delete.
6141 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6142
ebde6f2d
TV
61432021-01-29 Tom de Vries <tdevries@suse.de>
6144
6145 PR breakpoints/26063
6146 * infrun.c (process_event_stop_test): Reset
6147 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6148 changed.
6149
0f93c3a2
AB
61502021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6151
6152 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6153 assert. Extend the header comment.
6154
f237f998
AB
61552021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6156
6157 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6158 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6159 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6160 (tui_locator_win_info_ptr): Delete declaration.
6161 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6162 (tui_disasm_window::set_contents): Fetch state from tui_location
6163 global.
6164 (tui_get_begin_asm_address): Likewise.
6165 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6166 for locator window.
6167 (get_locator_window): Delete.
6168 (initialize_known_windows): Treat locator window just like all the
6169 rest.
6170 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6171 (tui_source_window::set_contents): Fetch state from tui_location
6172 global.
6173 (tui_source_window::showing_source_p): Likewise.
6174 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6175 (_locator): Delete.
6176 (tui_locator_win_info_ptr): Delete.
6177 (tui_locator_window::make_status_line): Fetch state from
6178 tui_location global.
6179 (tui_locator_window::rerender): Remove check of 'handle',
6180 reindent function body.
6181 (tui_locator_window::set_locator_fullname): Delete.
6182 (tui_locator_window::set_locator_info): Delete.
6183 (tui_update_locator_fullname): Delete.
6184 (tui_show_frame_info): Likewise.
6185 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6186 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6187 tui/tui-location.h and renamed to
6188 tui_location_tracker::set_location.
6189 (tui_locator_window::set_locator_fullname): Moved to
6190 tui/tui-location.h and renamed to
6191 tui_location_tracker::set_fullname.
6192 (tui_locator_window::full_name): Delete.
6193 (tui_locator_window::proc_name): Delete.
6194 (tui_locator_window::line_no): Delete.
6195 (tui_locator_window::addr): Delete.
6196 (tui_locator_window::gdbarch): Delete.
6197 (tui_update_locator_fullname): Delete declaration.
6198 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6199 for locator window.
6200 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6201 (tui_display_main): Call function on tui_location directly.
6202 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6203 * tui/tui-location.c: New file.
6204 * tui/tui-location.h: New file.
6205
8ee511af
SM
62062021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6207
6208 * gdbtypes.h (get_type_arch): Rename to...
6209 (struct type) <arch>: ... this, update all users.
6210
6ac37371
SM
62112021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * gdbtypes.h (struct type) <arch>: Rename to...
6214 <arch_owner>: ... this, update all users.
6215 <objfile>: Rename to...
6216 <objfile_owner>: ... this, update all users.
6217
24cf6389
AB
62182021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6219
6220 * gdbcmd.h (execute_command_to_string): Update comment.
6221 * top.c (execute_command_to_string): Update header comment.
6222
2a7f6487
TV
62232021-01-28 Tom de Vries <tdevries@suse.de>
6224
6225 PR breakpoints/27205
6226 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6227 (create_longjmp_master_breakpoint_names): New function, factored out
6228 of ...
6229 (create_longjmp_master_breakpoint): ... here. Only try to install
6230 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6231 breakpoint in libc.so failed.
6232
59b59f08
LS
62332021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6234
6235 PR gdb/27133
6236 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6237 unique_ptr is released when the wrapped pointer is kept for later
6238 use.
6239
807f647c
MM
62402021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6241
6242 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6243 BLR and BR instructions.
6244 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6245 (enum aarch64_masks): New.
6246
4ef367bf
TT
62472021-01-26 Tom Tromey <tromey@adacore.com>
6248
6249 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6250 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6251 (windows_init_thread_list, windows_nat::handle_load_dll)
6252 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6253 (windows_nat_target::resume)
6254 (windows_nat_target::get_windows_debug_event)
6255 (windows_nat_target::interrupt, windows_xfer_memory)
6256 (windows_nat_target::close): Update.
6257 * nat/windows-nat.c (DEBUG_EVENTS): Use
6258 debug_prefixed_printf_cond.
6259 (matching_pending_stop, fetch_pending_stop)
6260 (continue_last_debug_event): Update.
6261
4cb1265b
MS
62622020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6263
6264 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6265 elfcore_write_file_note.
6266
d0cc52bd
SV
62672021-01-26 Shahab Vahedi <shahab@synopsys.com>
6268
6269 * arc-tdep.c (arc_add_reggroups): New function.
6270 (arc_gdbarch_init): Call arc_add_reggroups.
6271
ac3571d9 62722021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6273
6274 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6275
9f6c202e
TV
62762021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6277 Simon Marchi <simon.marchi@polymtl.ca>
6278 Tom de Vries <tdevries@suse.de>
6279
6280 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6281 DW_AT_ranges.
6282
a625a8c9
TT
62832021-01-25 Tom Tromey <tromey@adacore.com>
6284
6285 * dwarf2/read.c (get_mpz): New function.
6286 (get_dwarf2_rational_constant): Use it.
6287
19184910
TT
62882021-01-25 Tom Tromey <tromey@adacore.com>
6289
6290 * ada-lang.c (resolve_subexp): Handle array context.
6291
b10bae18
TT
62922021-01-23 Tom Tromey <tom@tromey.com>
6293
6294 PR compile/25575
6295 * compile/compile-loc2c.c (note_register): New function.
6296 (pushf_register_address, pushf_register): Use it.
6297
3637a558
TT
62982021-01-23 Tom Tromey <tom@tromey.com>
6299
6300 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6301 Change type of "registers_used".
6302 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6303 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6304 (locexpr_generate_c_location, loclist_generate_c_location): Change
6305 type of "registers_used".
6306 * compile/compile.h (compile_dwarf_expr_to_c)
6307 (compile_dwarf_bounds_to_c): Update.
6308 * compile/compile-loc2c.c (pushf_register_address)
6309 (pushf_register, do_compile_dwarf_expr_to_c)
6310 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6311 of "registers_used".
6312 * compile/compile-c.h (generate_c_for_variable_locations):
6313 Update.
6314 * compile/compile-c-symbols.c (generate_vla_size)
6315 (generate_c_for_for_one_variable): Change type of
6316 "registers_used".
6317 (generate_c_for_variable_locations): Return std::vector.
6318 * compile/compile-c-support.c (generate_register_struct): Change
6319 type of "registers_used".
6320 (compute): Update.
6321
9f7f6cb8
TT
63222021-01-23 Tom Tromey <tom@tromey.com>
6323
6324 * compile/compile-internal.h (class compile_instance)
6325 <set_arguments>: Change return type.
6326 * compile/compile.c (compile_to_object): Remove call to reset.
6327 (compile_instance::set_arguments): Change return type.
6328
dd5ca05f
SM
63292021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6330
6331 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6332 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6333
d3ee35db
LS
63342021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6335
6336 * Makefile.in (SELFTESTS_SRCS): Add
6337 unittests/gdb_tilde_expand-selftests.c.
6338 * unittests/gdb_tilde_expand-selftests.c: New file.
6339
9d2d8a16
AB
63402021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6341
6342 PR cli/25956
6343 * NEWS: Mention new command.
6344 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6345 (version_style): Define.
6346 (cli_style_option::cli_style_option): Add intensity parameter, and
6347 use as appropriate.
6348 (_initialize_cli_style): Register version style set/show commands.
6349 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6350 (version_style): Declare.
6351 * top.c (print_gdb_version): Use version_stype, and styled_string
6352 to print the GDB version string.
6353
e7b43072
AB
63542021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6355
6356 * utils.c (emit_style_escape): Only emit an escape sequence if the
6357 requested style is different than the current applied style.
6358 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6359 current applied_style.
6360 (fputs_styled): Remove is_default check.
6361 (fputs_styled_unfiltered): Likewise.
6362 (vfprintf_styled_no_gdbfmt): Likewise.
6363
2189c312
SM
63642021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6365
6366 * remote.h (remote_debug_printf): New.
6367 (remote_debug_printf_nofunc): New.
6368 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6369 * remote.c: Use above macros throughout file.
6370
02349803
SM
63712021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6372
6373 * remote.h (remote_debug): Change to bool.
6374 * remote.c (remote_debug): Change to bool.
6375 (_initialize_remote): Adjust.
6376
cda09ec9
SM
63772021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6378
6379 * target.h (remote_debug): Move to...
6380 * remote.h (remote_debug): ... here.
6381 * top.c (remote_debug): Move to...
6382 * remote.c (remote_debug): ... here.
6383 * remote-sim.c: Include remote.h.
6384
baf2b57f
SM
63852021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6386
6387 * cli/cli-cmds.c (show_remote_debug): Remove.
6388 (show_remote_timeout): Remove.
6389 (_initialize_cli_cmds): Don't register commands.
6390 * remote.c (show_remote_debug): Move here.
6391 (show_remote_timeout): Move here.
6392 (_initialize_remote): Register commands.
6393
344e9841
SM
63942021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6395
6396 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6397 type::objfile method instead.
6398
30625020
SM
63992021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6400
6401 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6402 use the type::is_objfile_owned method.
6403
5b7d941b
SM
64042021-01-22 Simon Marchi <simon.marchi@efficios.com>
6405
6406 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6407 (TYPE_OWNER): Remove.
6408 (TYPE_OBJFILE): Adjust.
6409 (struct main_type) <flag_objfile_owned>: Rename to...
6410 <m_flag_objfile_owned>: ... this.
6411 <owner>: Rename to...
6412 <m_owner>: ... this.
6413 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6414 methods.
6415 (TYPE_ALLOC): Adjust.
6416 * gdbtypes.c (alloc_type): Adjust.
6417 (alloc_type_arch): Adjust.
6418 (alloc_type_copy): Adjust.
6419 (get_type_arch): Adjust.
6420 (smash_type): Adjust.
6421 (lookup_array_range_type): Adjust.
6422 (recursive_dump_type): Adjust.
6423 (copy_type_recursive): Adjust.
6424 * compile/compile-c-types.c (convert_func): Adjust.
6425 (convert_type_basic): Adjust.
6426 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6427 Adjust.
6428 * language.c
6429 (language_arch_info::type_and_symbol::alloc_type_symbol):
6430 Adjust.
6431
d5d24e12
LM
64322021-01-21 Luis Machado <luis.machado@linaro.org>
6433
6434 * coffread.c (enter_linenos): Passing string to complaint.
6435 * valops.c (value_assign): Make array view.
6436
a59902a7
SM
64372021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6438
6439 * auto-load.h (debug_auto_load): Move here.
6440 (auto_load_debug_printf): New.
6441 * auto-load.c: Use auto_load_debug_printf.
6442 (debug_auto_load): Move to header.
6443 * linux-thread-db.c (try_thread_db_load): Use
6444 auto_load_debug_printf.
6445 * main.c (captured_main_1): Likewise.
6446
d3abc0ce
SM
64472021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6448
6449 * f-valprint.c (f77_array_offset_tbl): Remove.
6450
1e15fcac
SM
64512021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6452
6453 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6454
439706e6
SM
64552021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6456
6457 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6458 of gdb_select.
6459
325d39e4
HD
64602021-01-21 Hannes Domani <ssbssa@yahoo.de>
6461
6462 PR python/19151
6463 * python/py-breakpoint.c (bppy_get_location): Handle
6464 bp_hardware_breakpoint.
6465 (bppy_init): Likewise.
6466 (gdbpy_breakpoint_created): Likewise.
6467
7cb6d92a
SM
64682021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6469
6470 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6471
d4dd4fca
SM
64722021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6473
6474 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6475 (_initialize_gdb_bfd): Adjust.
6476
de53369b
SM
64772021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 PR gdb/26828
6480 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6481
17e593e9
SM
64822021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * dwarf2/read.c (follow_die_offset): Add logging.
6485 (dwarf2_per_objfile::age_comp_units): Add logging.
6486
6bd434d6
SM
64872021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6488
6489 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6490 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6491 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6492 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6493 * arm-tdep.c (struct frame_unwind): Make static.
6494 * auto-load.c (auto_load_safe_path_vec): Make static.
6495 * csky-tdep.c (csky_stub_unwind): Make static.
6496 * gdbarch.c (gdbarch_data_registry): Make static.
6497 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6498 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6499 * i386-tdep.c (i386_frame_setup_skip_insns,
6500 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6501 Make static.
6502 * infrun.c (observer_mode): Make static.
6503 * linux-nat.c (sigchld_action): Make static.
6504 * linux-thread-db.c (thread_db_list): Make static.
6505 * maint-test-options.c (maintenance_test_options_list):
6506 * mep-tdep.c (mep_csr_registers): Make static.
6507 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6508 (stats): Make static.
6509 * nat/linux-osdata.c (struct osdata_type): Make static.
6510 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6511 * progspace.c (last_program_space_num): Make static.
6512 * python/py-param.c (struct parm_constant): Remove struct type
6513 name.
6514 (parm_constants): Make static.
6515 * python/py-record-btrace.c (btpy_list_methods): Make static.
6516 * python/py-record.c (recpy_gap_type): Make static.
6517 * record.c (record_goto_cmdlist): Make static.
6518 * regcache.c (regcache_descr_handle): Make static.
6519 * registry.h (DEFINE_REGISTRY): Make definition static.
6520 * symmisc.c (std_in, std_out, std_err): Make static.
6521 * top.c (previous_saved_command_line): Make static.
6522 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6523 static.
6524 * unittests/command-def-selftests.c (nr_duplicates,
6525 nr_invalid_prefixcmd, lists): Make static.
6526 * unittests/observable-selftests.c (test_notification): Make
6527 static.
6528 * unittests/optional/assignment/1.cc (counter): Make static.
6529 * unittests/optional/assignment/2.cc (counter): Make static.
6530 * unittests/optional/assignment/3.cc (counter): Make static.
6531 * unittests/optional/assignment/4.cc (counter): Make static.
6532 * unittests/optional/assignment/5.cc (counter): Make static.
6533 * unittests/optional/assignment/6.cc (counter): Make static.
6534
a6c11cbb
JS
65352021-01-20 Joel Sherrill <joel@rtems.org>
6536
6537 PR gdb/27219
6538 * remote.c (struct remote_thread_info) <resume_state>: Rename
6539 to...
6540 <get_resume_state>: ... this.
6541 (remote_target::resume): Adjust.
6542 (remote_target::commit_resume): Adjust.
6543 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6544
6f52fdf4
SDJ
65452021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6546 Tom Tromey <tom@tromey.com>
6547
6548 * stap-probe.c (stap_parse_single_operand): Handle '!'
6549 operator.
6550 (stap_parse_argument_conditionally): Likewise.
6551 Skip spaces after processing open-parenthesis sub-expression.
6552 (stap_parse_argument_1): Skip spaces after call to
6553 stap_parse_argument_conditionally.
6554 Handle case when right-side expression is a parenthesized
6555 sub-expression.
6556 Skip spaces after call to stap_parse_argument_1.
6557
1c3b85ad
LS
65582021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6559
6560 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6561
a9a87d35
LM
65622021-01-19 Luis Machado <luis.machado@linaro.org>
6563
6564 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6565 memory and save data.
6566 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6567 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6568 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6569 (trad_frame_value_bytes_p): Remove.
6570 (trad_frame_reset_saved_regs): Adjust documentation.
6571 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6572 constructor and reset the state of the registers.
6573 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6574 (trad_frame_value_bytes_p, trad_frame_set_value)
6575 (trad_frame_set_realreg, trad_frame_set_addr)
6576 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6577 (trad_frame_set_reg_realreg): Update to call member function.
6578 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6579 (trad_frame_get_prev_register): Likewise.
6580
6581 * aarch64-tdep.c (aarch64_analyze_prologue)
6582 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6583 (aarch64_prologue_prev_register): Update to use member functions.
6584 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6585 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6586 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6587 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6588 (arm_make_epilogue_frame_cache): Likewise.
6589 * avr-tdep.c (avr_frame_unwind_cache)
6590 (avr_frame_prev_register): Likewise.
6591 * cris-tdep.c (cris_scan_prologue): Likewise.
6592 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6593 * frv-tdep.c (frv_analyze_prologue): Likewise.
6594 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6595 * lm32-tdep.c (lm32_frame_cache): Likewise.
6596 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6597 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6598 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6599 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6600 (reset_saved_regs): Adjust to set realreg.
6601 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6602 call member functions.
6603 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6604 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6605 (s390_backchain_frame_unwind_cache): Likewise.
6606 * score-tdep.c (score7_analyze_prologue)
6607 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6608 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6609 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6610 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6611 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6612 * tilegx-tdep.c (tilegx_analyze_prologue)
6613 (tilegx_frame_cache): Likewise.
6614 * v850-tdep.c (v850_frame_cache): Likewise.
6615 * vax-tdep.c (vax_frame_cache): Likewise.
6616
bdec2917
LM
66172021-01-19 Luis Machado <luis.machado@linaro.org>
6618
6619 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6620 of buffer + length.
6621 (put_frame_register_bytes): Likewise.
6622 Adjust documentation.
6623 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6624 (safe_frame_unwind_memory): Likewise.
6625 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6626 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6627 gdb::array_view.
6628 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6629 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6630 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6631 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6632 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6633 * dwarf2/loc.c (rw_pieced_value): Likewise.
6634 * hppa-tdep.c (hppa_frame_cache): Likewise.
6635 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6636 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6637 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6638 (i386_linux_rt_sigtramp_start): Likewise.
6639 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6640 * i386-tdep.c (i386_register_to_value): Likewise.
6641 * i387-tdep.c (i387_register_to_value): Likewise.
6642 * ia64-tdep.c (ia64_register_to_value): Likewise.
6643 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6644 (m32r_linux_rt_sigtramp_start): Likewise.
6645 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6646 * m68k-tdep.c (m68k_register_to_value): Likewise.
6647 * mips-tdep.c (mips_register_to_value)
6648 (mips_value_to_register): Likewise.
6649 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6650 (ppcfbsd_sigtramp_frame_cache): Likewise.
6651 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6652 (ppcobsd_sigtramp_frame_cache): Likewise.
6653 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6654 (rs6000_register_to_value): Likewise.
6655 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6656 * tramp-frame.c (tramp_frame_start): Likewise.
6657 * valops.c (value_assign): Likewise.
6658
ccbe4c82
LM
66592021-01-19 Luis Machado <luis.machado@linaro.org>
6660
6661 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6662 array_view.
6663 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6664 instead of buffer and size.
6665 (trad_frame_set_reg_value_bytes): Likewise.
6666 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6667 (trad_frame_set_value_bytes): Likewise.
6668
0e7620dc
MF
66692021-01-18 Mike Frysinger <vapier@gentoo.org>
6670
6671 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6672
6a9ad81c
AB
66732021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6674
6675 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6676 (riscv_fbsd_gregset): Use riscv_supply_regset.
6677 (riscv_fbsd_fpregset): Likewise.
6678 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6679 (riscv_linux_fregset): Likewise.
6680 * riscv-tdep.c (riscv_supply_regset): Define new function.
6681 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6682
d3d7d1ba
TV
66832021-01-18 Tom de Vries <tdevries@suse.de>
6684
6685 PR tdep/27172
6686 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6687 New macro.
6688 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6689 for SEGV_BNDERR.
6690
aa2838cc
SM
66912021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6692
6693 * remote.c (class remote_target) <remote_hostio_send_command,
6694 remote_hostio_parse_result>: Constify parameter.
6695 (remote_hostio_parse_result): Likewise.
6696 (remote_target::remote_hostio_send_command): Adjust.
6697 (remote_target::remote_hostio_pread_vFile): Adjust.
6698 (remote_target::fileio_readlink): Adjust.
6699 (remote_target::fileio_fstat): Adjust.
6700
b5c8f22d
SM
67012021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6702
6703 * remote.c (remote_target::start_remote): Move wait_status to
6704 narrower scope.
6705
e3b2741b
SM
67062021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6707
6708 * remote.c (class remote_target):
6709 <add_current_inferior_and_thread>: Constify parameter.
6710 (stop_reply_extract_thread): Likewise.
6711 (remote_target::get_current_thread): Likewise.
6712 (remote_target::add_current_inferior_and_thread): Likewise.
6713
cecb1912
SM
67142021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6715
6716 * remote.c (class remote_target)
6717 <remote_unpack_thread_info_response,
6718 parse_threadlist_response>: Constify parameter and/or return
6719 value and or local variable.
6720 (stub_unpack_int): Likewise.
6721 (unpack_nibble): Likewise.
6722 (unpack_byte): Likewise.
6723 (unpack_int): Likewise.
6724 (unpack_string): Likewise.
6725 (unpack_threadid): Likewise.
6726 (remote_target::remote_unpack_thread_info_response): Likewise.
6727 (remote_target::parse_threadlist_response): Likewise.
6728
5a11fff0
AB
67292021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6730
6731 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6732
17e89137
LS
67332021-01-14 Lancelot Six <lsix@lancelotsix.com>
6734
6735 * MAINTAINERS (Write After Approval): Add myself.
6736
58eadc4b
BE
67372021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6738
6739 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6740 because is_trivially_default_constructible was first implemented with
6741 gcc-5.
6742
5fae2a2c
TV
67432021-01-14 Tom de Vries <tdevries@suse.de>
6744
6745 PR breakpoints/27151
6746 * objfiles.h (in_plt_section): Handle .plt.sec.
6747
8f66807b
AB
67482021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6749
6750 PR gdb/26819
6751 * remote.c
6752 (remote_target::select_thread_for_ambiguous_stop_reply): New
6753 member function.
6754 (remote_target::process_stop_reply): Call
6755 select_thread_for_ambiguous_stop_reply.
6756
bd497355
SM
67572021-01-13 Simon Marchi <simon.marchi@efficios.com>
6758
6759 * record-btrace.c (class record_btrace_target): Remove.
6760 (record_btrace_target::commit_resume): Remove.
6761 * record-full.c (class record_full_target): Remove.
6762 (record_full_target::commit_resume): Remove.
6763
c9d22089
SM
67642021-01-13 Simon Marchi <simon.marchi@efficios.com>
6765
6766 * remote.c (enum class resume_state): New.
6767 (struct resumed_pending_vcont_info): New.
6768 (struct remote_thread_info) <resume_state, set_not_resumed,
6769 set_resumed_pending_vcont, resumed_pending_vcont_info,
6770 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6771 New.
6772 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6773 (remote_target::remote_add_thread): Adjust.
6774 (remote_target::process_initial_stop_replies): Adjust.
6775 (remote_target::resume): Adjust.
6776 (remote_target::commit_resume): Rely on state in
6777 remote_thread_info and not on tp->executing.
6778 (remote_target::process_stop_reply): Adjust.
6779
d8d1feb4
SM
67802021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6781
6782 * arc-tdep.h (arc_debug_printf): New.
6783 * arc-tdep.c: Use arc_debug_printf.
6784 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6785 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6786 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6787
fb0f5031
SM
67882021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6789
6790 * arc-tdep.h (arc_debug): Change type to bool.
6791 * arc-tdep.c (arc_debug): Change type to bool.
6792 (arc_analyze_prologue): Adjust.
6793 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6794 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6795
5bf7e91b
SM
67962021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6797
6798 * auto-load.c (auto_load_objfile_script_1): Use bool.
6799 (execute_script_contents): Use bool.
6800
db972fce
SM
68012021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6804 comment here.
6805 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6806 comment to header.
6807 * extension-priv.h (struct extension_language_script_ops)
6808 <auto_load_enabled>: Return bool.
6809 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6810 comment here.
6811 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6812 comment to header.
6813 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6814 move comment here.
6815 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6816 move comment to header.
6817 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6818 move comment here.
6819 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6820 move comment to header.
6821
5e12f48f
SM
68222021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6823
6824 * auto-load.h (file_is_auto_load_safe): Change return type to
6825 bool, move comment here.
6826 * auto-load.c (file_is_auto_load_safe): Change return type and
6827 advice_printed to bool. Move comment to header.
6828
54ca9002
SM
68292021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6830
6831 * jit.c (jit_debug_printf): New, use throughout file.
6832
24a7f1b5
SM
68332021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6834
6835 * infrun.c (normal_stop): Fix indentation.
6836
fe7a351a
SM
68372021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6838
6839 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6840 declarations to ...
6841 * symfile.h: ... here.
6842 * symfile.c: Update doc.
6843
16e9019e
SM
68442021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6845
6846 * target.h (baud_rate, serial_parity): Move declarations...
6847 * serial.h: ... here.
6848 * main.c: Include serial.h.
6849 * serial.c (baud_rate, serial_parity): Update doc.
6850
b2f2ae0d
SM
68512021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6852
6853 * top.c (pre_init_ui_hook): Remove.
6854
5291fe3c
SP
68552021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6856
6857 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6858 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6859 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6860 * features/aarch64-fpu.xml: Add bfloat16 type.
6861
ce38f5ed
AB
68622021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6863
6864 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6865
7c654b71
AB
68662021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6867
6868 * f-exp.y (dot_ops): Rename to...
6869 (fortran_operators): ...this. Add a header comment. Add symbol
6870 based operators.
6871 (yylex): Update to use fortran_operators not dot_ops. Remove
6872 special handling for '**', this is now included in
6873 fortran_operators.
6874
c6185dce
SM
68752021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6876
6877 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6878 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6879 * aarch64-tdep.c: Use aarch64_debug_printf.
6880
eef401dc
SM
68812021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6882
6883 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6884 file.
6885
062eaacb
SM
68862021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6887
6888 * jit.c (jit_debug): Change type to bool.
6889 (_initialize_jit): Adjust.
6890
54585eee
TT
68912021-01-09 Tom Tromey <tom@tromey.com>
6892
6893 PR compile/23672
6894 * compile/compile.c (compile_to_object): Avoid crash when
6895 osabi_triplet_regexp returns NULL.
6896
bc167b6b
TT
68972021-01-09 Tom Tromey <tom@tromey.com>
6898
6899 * tracepoint.h (class collection_list) <append_exp>: Take a
6900 std::string.
6901 * tracepoint.c (collection_list::append_exp): Take a std::string.
6902 (encode_actions_1): Update.
6903
8fc48b79
TT
69042021-01-08 Tom Tromey <tromey@adacore.com>
6905
6906 * parse.c (parse_expression): Add void_context_p parameter. Use
6907 parse_exp_in_context.
6908 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6909 parse_expression.
6910 (print_command, call_command): Update.
6911 * expression.h (parse_expression): Add void_context_p parameter.
6912
3c8c6de2
AB
69132021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6914
6915 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6916 for internalvar components that have a dynamic location.
6917
1940319c
TV
69182021-01-08 Tom de Vries <tdevries@suse.de>
6919
6920 PR gdb/26881
6921 * breakpoint.c (create_exception_master_breakpoint_probe)
6922 (create_exception_master_breakpoint_hook): Factor out
6923 of ...
6924 (create_exception_master_breakpoint): ... here. Only try to install
6925 the master exception breakpoint in objfile.debug using the
6926 _Unwind_DebugHook method, if the install using probes in objfile
6927 failed.
6928
e3436813
AB
69292021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6930
6931 * f-lang.c (fortran_value_subarray): Call value_from_component.
6932
e904f56d
MF
69332021-01-07 Mike Frysinger <vapier@gentoo.org>
6934
6935 * remote-sim.c: Include memory-map.h.
6936 (gdbsim_target): Define memory_map override.
6937 (gdbsim_target::memory_map): Define.
6938
959d6a67
TT
69392021-01-07 Tom Tromey <tromey@adacore.com>
6940
6941 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6942
d4813f10
TT
69432021-01-07 Tom Tromey <tromey@adacore.com>
6944
6945 * ada-lang.c (add_component_interval): Start loop using vector's
6946 updated size.
6947
b49180ac
TT
69482021-01-06 Tom Tromey <tromey@adacore.com>
6949
6950 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6951 Do not cast result.
6952 * valarith.c (fixed_point_binop): Handle multiplication
6953 and division specially.
6954 * valops.c (value_to_gdb_mpq): New function.
6955 (value_cast_to_fixed_point): Use it.
6956
55195361
HD
69572021-01-05 Hannes Domani <ssbssa@yahoo.de>
6958
6959 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6960 Call wnoutrefresh instead of tui_win_info::refresh_window.
6961
1b6d4bb2
HD
69622021-01-05 Hannes Domani <ssbssa@yahoo.de>
6963
6964 * tui/tui-source.c (tui_source_window::show_line_number):
6965 Redraw second space after line number.
6966
b5ff370e
HD
69672021-01-05 Hannes Domani <ssbssa@yahoo.de>
6968
6969 PR tui/26927
6970 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6971 Fix source pad size in prefresh.
6972 (tui_source_window_base::show_source_content): Grow source pad
6973 if necessary.
6974
c68ea49f
MF
69752021-01-04 Mike Frysinger <vapier@gentoo.org>
6976
6977 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6978 (bfin_frame_align): Use align_down.
6979
e4ad960a
TV
69802021-01-04 Tom de Vries <tdevries@suse.de>
6981
6982 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6983 terminators that do not terminate anything.
6984
3ec3145c
SM
69852021-01-04 Simon Marchi <simon.marchi@efficios.com>
6986
6987 * debug.c (debug_print_depth): New.
6988 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6989 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6990 * infrun.c (start_step_over): Use
6991 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6992 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6993 INFRUN_SCOPED_DEBUG_START_END.
6994 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6995
e71daf80
SM
69962021-01-04 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6999
335709bc
SM
70002021-01-04 Simon Marchi <simon.marchi@efficios.com>
7001
7002 * utils.c (vfprintf_unfiltered): Print timestamp only when
7003 previous debug output ended with a newline.
7004
098caef4
LM
70052021-01-04 Luis Machado <luis.machado@linaro.org>
7006
7007 Update all users of trad_frame_saved_reg to use the new member
7008 functions.
7009
7010 Remote all struct keywords from declarations of trad_frame_saved_reg
7011 types, except on forward declarations.
7012
7013 * aarch64-tdep.c: Update.
7014 * alpha-mdebug-tdep.c: Update.
7015 * alpha-tdep.c: Update.
7016 * arc-tdep.c: Update.
7017 * arm-tdep.c: Update.
7018 * avr-tdep.c: Update.
7019 * cris-tdep.c: Update.
7020 * csky-tdep.c: Update.
7021 * frv-tdep.c: Update.
7022 * hppa-linux-tdep.c: Update.
7023 * hppa-tdep.c: Update.
7024 * hppa-tdep.h: Update.
7025 * lm32-tdep.c: Update.
7026 * m32r-linux-tdep.c: Update.
7027 * m32r-tdep.c: Update.
7028 * m68hc11-tdep.c: Update.
7029 * mips-tdep.c: Update.
7030 * moxie-tdep.c: Update.
7031 * riscv-tdep.c: Update.
7032 * rs6000-tdep.c: Update.
7033 * s390-linux-tdep.c: Update.
7034 * s390-tdep.c: Update.
7035 * score-tdep.c: Update.
7036 * sparc-netbsd-tdep.c: Update.
7037 * sparc-sol2-tdep.c: Update.
7038 * sparc64-fbsd-tdep.c: Update.
7039 * sparc64-netbsd-tdep.c: Update.
7040 * sparc64-obsd-tdep.c: Update.
7041 * sparc64-sol2-tdep.c: Update.
7042 * tilegx-tdep.c: Update.
7043 * v850-tdep.c: Update.
7044 * vax-tdep.c: Update.
7045
7046 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7047 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7048
7049 * trad-frame.c: Update.
7050 Remove TF_REG_* enum.
7051 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7052 a trivially-constructible struct.
7053 (trad_frame_reset_saved_regs): Adjust to use member function.
7054 (trad_frame_value_p): Likewise.
7055 (trad_frame_addr_p): Likewise.
7056 (trad_frame_realreg_p): Likewise.
7057 (trad_frame_value_bytes_p): Likewise.
7058 (trad_frame_set_value): Likewise.
7059 (trad_frame_set_realreg): Likewise.
7060 (trad_frame_set_addr): Likewise.
7061 (trad_frame_set_unknown): Likewise.
7062 (trad_frame_set_value_bytes): Likewise.
7063 (trad_frame_get_prev_register): Likewise.
7064 * trad-frame.h: Update.
7065 (trad_frame_saved_reg_kind): New enum.
7066 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7067 <m_kind, m_reg>: New member fields.
7068 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7069 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7070 <is_addr, is_unknown, is_value_bytes>: New member functions.
7071
9898e882
SM
70722021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7073
7074 * target-float.c: Fix typos.
7075
b66b4e65
HD
70762021-01-02 Hannes Domani <ssbssa@yahoo.de>
7077
7078 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7079
b5b5650a
JB
70802021-01-01 Joel Brobecker <brobecker@adacore.com>
7081
7082 * gdbarch.sh: Update copyright year range.
7083
3666a048
JB
70842021-01-01 Joel Brobecker <brobecker@adacore.com>
7085
7086 Update copyright year range in copyright header of all GDB files.
7087
ff7e39b6
JB
70882021-01-01 Joel Brobecker <brobecker@adacore.com>
7089
7090 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7091 to the list of directories to update.
7092
2b47c078
JB
70932021-01-01 Joel Brobecker <brobecker@adacore.com>
7094
7095 * top.c (print_gdb_version): Update copyright year.
7096
9e5e03df 70972021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 7098
476923f1 7099 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 7100
476923f1 7101For older changes see ChangeLog-2020.
c906108c
SS
7102\f
7103Local Variables:
7104mode: change-log
7105left-margin: 8
7106fill-column: 74
7107version-control: never
57da7796 7108coding: utf-8
c906108c 7109End: