]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Don't call sigtimedwait for scoped_ignore_sigttou
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
336b30e5
PA
12021-06-17 Pedro Alves <pedro@palves.net>
2
3 * scoped_ignore_signal.h (scoped_ignore_signal): Add
4 ConsumePending template parameter.
5 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
6 sigtimedwait if ConsumePending is false.
7 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
8 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
9 <m_ignore_signal>: Initialize with ConsumePending=false.
10
2af6d46f
PA
112021-06-17 Pedro Alves <pedro@palves.net>
12
13 * Makefile.in (SELFTESTS_SRCS): Add
14 unittests/scoped_ignore_signal-selftests.c.
15 * unittests/scoped_ignore_signal-selftests.c: New.
16
6a7f1c20
PA
172021-06-17 Pedro Alves <pedro@palves.net>
18
19 * gdbsupport/scoped_ignore_signal.h: New.
20 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
21 instead of <signal.h>. Don't include <unistd.h>.
22 (scoped_ignore_sigpipe): Remove.
23 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
24 instead of <signal.h>. Don't include <unistd.h>.
25 (lazy_init): New.
26 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
27 and lazy_init.
28
965febe5
PA
292021-06-17 Pedro Alves <pedro@palves.net>
30
31 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
32 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
33 * inflow.h: Delete, moved to gdbsupport/ under a different name.
34 * ser-unix.c: Don't include "inflow.h". Include
35 "gdbsupport/scoped_ignore_sigttou.h".
36
82a5082e
PA
372021-06-17 Pedro Alves <pedro@palves.net>
38
39 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
40 ...
41 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
42 tui_getc_1.
43 (cur_seq, start_sequence): New.
44 (tui_getc_1): Pass key escape sequences for curses control keys to
45 readline. Handle mouse and ctrl-l here.
46 (tui_resize_all): Disable/reenable the keypad if the command
47 window has the focus too.
48 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
49 setting.
50 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
51
7daf500d
SM
522021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
55
8457e5ec
TV
562021-06-16 Tom de Vries <tdevries@suse.de>
57
58 PR symtab/26327
59 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
60 (dwarf2_cu::get_builder): Declare and move ...
61 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
62 of ancestor. Assert return value is non-null.
63 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
64 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
65 (dwarf2_per_objfile): Add sym_cu field.
66
93df3340
AM
672021-06-15 Alan Modra <amodra@gmail.com>
68
69 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
70
483ab96a
MF
712021-06-14 Mike Frysinger <vapier@gentoo.org>
72
73 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
74 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
75
09db4332
JB
762021-06-14 John Baldwin <jhb@FreeBSD.org>
77
78 * configure.ac: Check for <sys/procctl.h>.
79 * config.in, configure: Regenerate.
80 * fbsd-nat.c: Include <sys/procctl.h> if present.
81 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
82 (fbsd_nat_target::create_inferior)
83 (fbsd_nat_target::supports_disable_randomization): New.
84 * fbsd-nat.h (fbsd_nat_target::create_inferior)
85 (fbsd_nat_target::supports_disable_randomization): New.
86
739025e8
BE
872021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
88
89 * compile/compile.c: Include missing header signal.h.
90
d424629d
JB
912021-06-12 John Baldwin <jhb@FreeBSD.org>
92
93 * remote.c (remote_new_objfile): Fix indentation.
94
e2b9ea4b
KB
952021-06-11 Kevin Buettner <kevinb@redhat.com>
96
97 * solib.c (libpthread_name_p): Match "libc" in addition
98 to "libpthread".
99 * linux-thread-db.c (libpthread_objfile_p): New function.
100 (libpthread_name_p): Adjust preexisting callers to use
101 libpthread_objfile_p().
102
873793ae
SM
1032021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * dwarf2/loc.h (struct call_site_stuff): Remove.
106
48ec4c05
TT
1072021-06-11 Tom Tromey <tom@tromey.com>
108
109 PR rust/23427
110 * rust-parse.c (rust_parser::lex_identifier): Handle raw
111 identifiers.
112 (rust_lex_tests): Add raw identifier tests.
113
f9e59d06
LS
1142021-06-08 Lancelot Six <lsix@lancelotsix.com>
115
116 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
117 instead of '== None'.
118 (FrameVars): Use 'is not None' instead of '!= None'.
119 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
120 Use 'is None' instead of '== None' and 'is not None' instead of '!=
121 None'.
122
122373f7
SM
1232021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
124
125 * inferior.h (class inferior) <in_initial_library_scan>: New.
126 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
127 * infrun.c (follow_fork_inferior): Likewise.
128 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
129 by try_thread_db_load_1
130 (thread_db_load): Return early if in_initial_library_scan is
131 set.
132 * remote.c (remote_new_objfile): Return early if
133 in_initial_library_scan is set.
134
1b453aed
PA
1352021-06-07 Pedro Alves <pedro@palves.net>
136
137 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
138 ctor.
139 * symtab.h (struct symbol): Add defaulted copy assignment
140 operator.
141
fa6ec8ef
PA
1422021-06-07 Pedro Alves <pedro@palves.net>
143
144 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
145 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
146 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
147 local.
148
c57eb1a2
PA
1492021-06-07 Pedro Alves <pedro@palves.net>
150
151 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
152 (nat_sigval_t): ... this and remove typedef of same name.
153 (struct nat_siginfo): Rename to ...
154 (nat_siginfo_t): ... this and remove typedef of same name.
155 (struct compat_sigval): Rename to ...
156 (compat_sigval_t): ... this and remove typedef of same name.
157 (struct compat_siginfo): Rename to ...
158 (compat_siginfo_t): ... this and remove typedef of same name.
159 (struct compat_x32_siginfo): Rename to ...
160 (compat_x32_siginfo_t): ... this and remove typedef of same name.
161 (amd64_linux_siginfo_fixup_common): Adjust.
162
d8ca8e9f
PA
1632021-06-07 Pedro Alves <pedro@palves.net>
164
165 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
166 __attribute__ __aligned__ from the typedef to the struct.
167
a12a15e7
AB
1682021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 PR gdb/27847
171 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
172 type_align, and spot case where the alignment is unknown.
173
ecac8d1c
CL
1742021-06-07 Carl Love <cel@us.ibm.com>
175
176 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
177 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
178 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
179 ppc64_pcrel_linkage2_target): New functions.
180 (ppc64_standard_linkage9, ppc64_standard_linkage10,
181 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
182 instruction patterns.
183 (ppc64_standard_linkage9, ppc64_standard_linkage10,
184 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
185 in define MAX expression.
186 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
187 ppc64_standard_linkage10, ppc64_standard_linkage11,
188 ppc64_standard_linkage12.
189 * (ppc_insn_prefix_dform): New function.
190
cfa8e270
SM
1912021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
192
193 PR gdb/27899
194 * sparc-nat.c (sparc_fetch_inferior_registers): Set
195 inferior_ptid instead of using switch_to_thread.
196 (sparc_store_inferior_registers): Likewise.
197
4a977544
BE
1982021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
199
200 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
201 (compile_to_object): Ignore SIGPIPE before calling the plugin.
202
8ff8c543
TT
2032021-06-05 Tom Tromey <tom@tromey.com>
204
205 * data-directory/Makefile.in (Makefile): Use correct directory
206 name.
207
19d6d783
TT
2082021-06-05 Tom Tromey <tom@tromey.com>
209
210 * data-directory/Makefile.in (Makefile): Rewrite.
211
b316465f
TT
2122021-06-05 Tom Tromey <tromey@adacore.com>
213
214 * configure: Rebuild.
215 * configure.ac: Add ACX_NONCANONICAL_TARGET.
216
ae61ef2c
SV
2172021-06-05 Shahab Vahedi <shahab@synopsys.com>
218
219 * NEWS: Document 'set disassembler-options' support for the ARC
220 target.
221 * arc-tdep.c (arc_gdbarch_init): Set
222 'gdbarch_valid_disassembler_options'.
223
386de171
TT
2242021-06-04 Tom Tromey <tromey@adacore.com>
225
226 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
227 parameter.
228 * dwarf2/loc.c (dwarf2_evaluate_property) <case
229 PROP_VARIABLE_NAME>: New case.
230 (compute_var_value): New function.
231 (sect_variable_value): Use compute_var_value.
232 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
233 (var_decl_name): New function.
234 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
235 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
236 constant.
237 (union dynamic_prop_data) <variable_name>: New member.
238 (struct dynamic_prop) <variable_name, set_variable_name>: New
239 methods.
240
4351271e
AB
2412021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * remote.c (remote_target)
244 <select_thread_for_ambiguous_stop_reply>: Add additional debug
245 output.
246
a5375566
HD
2472021-06-04 Hannes Domani <ssbssa@yahoo.de>
248
249 * python/py-tui.c (class tui_py_window): Add click function.
250 (tui_py_window::click): Likewise.
251
1bace02a
HD
2522021-06-04 Hannes Domani <ssbssa@yahoo.de>
253
254 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
255 * tui/tui-data.h (struct tui_win_info): Add click function.
256 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
257 (tui_deprep_terminal): Disable mouse events.
258 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
259 * tui/tui.c (tui_disable): Disable mouse events.
260
df5bc734
MH
2612021-06-03 Magne Hov <mhov@undo.io>
262
263 PR python/27841
264 * eval.c (expression::evaluate): Check inferior_ptid.
265
415c8100
PA
2662021-06-03 Pedro Alves <pedro@palves.net>
267
268 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
269 affiliation.
270 (Global Maintainers): Update my address.
271 (Write After Approval): Remove stale entry.
272
83810881
JB
2732021-06-03 John Baldwin <jhb@FreeBSD.org>
274
275 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
276 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
277 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
278 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
279 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
280 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
281 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
282 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
283 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
284 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
285 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
286 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
287 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
288 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
289 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
290 (fbsd_report_signal_info): New.
291 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
292 report_signal_info method.
293
4c958d79
MH
2942021-06-03 Magne Hov <mhov@undo.io>
295
296 * MAINTAINERS (Write After Approval): Add Magne Hov.
297
6ac5237c
HD
2982021-06-03 Hannes Domani <ssbssa@yahoo.de>
299
300 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
301 gdb.SYMBOL_LABEL_DOMAIN constant.
302
aeeb758d
JB
3032021-06-01 John Baldwin <jhb@FreeBSD.org>
304
305 * infrun.c (handle_inferior_event): Only call
306 gdbarch_displaced_step_restore_all_in_ptid if
307 gdbarch_supports_displaced_stepping is true.
308
906f72d4
TT
3092021-06-01 Tom Tromey <tromey@adacore.com>
310
311 * Makefile.in (all-data-directory): Remove.
312 (data-directory/Makefile): Remove.
313
ba56237d
TT
3142021-06-01 Tom Tromey <tromey@adacore.com>
315
316 * configure: Rebuild.
317 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
318
2adf1781
TT
3192021-06-01 Tom Tromey <tromey@adacore.com>
320
321 * silent-rules.mk (ECHO_CC): New variable.
322
bdbbcd57
TT
3232021-06-01 Tom Tromey <tromey@adacore.com>
324
325 * Makefile.in (SUBDIRS): Add testsuite.
326 (all): Don't exclude testsuite.
327
f99d1d37
TT
3282021-06-01 Tom Tromey <tromey@adacore.com>
329
330 * configure.ac: Copy some code from testsuite/configure.ac.
331 (enable_libctf): Subst this, not ENABLE_LIBCTF.
332 * configure: Rebuild.
333
17d305ef
TV
3342021-06-01 Tom de Vries <tdevries@suse.de>
335
336 PR symtab/26096
337 * minsyms.c (msymbol_is_cold_clone): New function.
338 (msymbol_is_function): Use msymbol_is_cold_clone.
339
9b715c68
AB
3402021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
341 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 PR gdb/14383
344 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
345 (ALLDEPFILES): Add arm-none-tdep.c
346 * arm-none-tdep.c: New file.
347 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
348
b4b3e2de
AB
3492021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
350 Richard Bunt <richard.bunt@arm.com>
351
352 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
353 check for why the backtrace stopped.
354
9ea36493
SM
3552021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
358 Update all callers.
359 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
360 signature parameter, update all callers.
361 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
362 signature parameter.
363
46c6bcf6
SM
3642021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * dwarf2/read.h (signatured_type_up): New, use where possible.
367
4631503b
SM
3682021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
371
cc653233
TT
3722021-05-30 Tom Tromey <tom@tromey.com>
373
374 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
375 is_debug_types.
376 (create_signatured_type_table_from_index)
377 (create_signatured_type_table_from_debug_names, add_type_unit)
378 (read_comp_units_from_section): Update.
379
c96e8b04
TT
3802021-05-30 Tom Tromey <tom@tromey.com>
381
382 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
383 m_num_psymtabs>: Remove.
384 (resize_symtabs): Update.
385 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
386 (dwarf2_per_bfd::allocate_signatured_type): Update.
387
24b21115
SM
3882021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
389
390 * Fix tab after space indentation issues throughout.
391
01add95b
SM
3922021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
393
394 * Fix some indentation mistakes throughout.
395
055c879f
SM
3962021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
397
398 * breakpoint.h (iterate_over_bp_locations): Remove. Update
399 users to use all_bp_locations.
400 (all_bp_locations): New.
401 * breakpoint.c (all_bp_locations): Make non-static.
402 (iterate_over_bp_locations): Remove.
403
240edef6
SM
4042021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
405
406 * breakpoint.h (iterate_over_breakpoints): Remove. Update
407 callers to use all_breakpoints or all_breakpoints_safe.
408 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
409 all_breakpoints_safe): Move here.
410 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
411 non-static.
412 (iterate_over_breakpoints): Remove.
413 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
414 Return void.
415 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
416 return value logic.
417 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
418
e0d9a270
SM
4192021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
420
421 * breakpoint.c (get_first_locp_gte_addr): Remove.
422 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
423 all_bp_locations_at_addr.
424 (struct bp_locations_at_addr_range): New.
425 (all_bp_locations_at_addr): New.
426 (bp_locations_compare_addrs): New.
427
48d7020b
SM
4282021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
429
430 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
431 all_bp_locations.
432 (all_bp_locations): New.
433
5d51cd5d
SM
4342021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
435
436 * breakpoint.c (bp_locations): Change to std::vector, update all
437 users.
438 (bp_locations_count): Remove.
439 (update_global_location_list): Change to work with indices
440 rather than bp_location**.
441
40cb8ca5
SM
4422021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
443
444 * breakpoint.h (bp_locations_range): New.
445 (struct breakpoint) <locations>: New. Use where possible.
446
f6d17b2b
SM
4472021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
448
449 * breakpoint.h (all_tracepoints): Remove.
450 (breakpoint_iterator): Move here.
451 (struct tracepoint_filter): New.
452 (tracepoint_iterator): New.
453 (tracepoint_range): New.
454 (all_tracepoints): New.
455 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
456 all_tracepoints.
457 (breakpoint_iterator): Move to header.
458 (all_tracepoints): New.
459 * tracepoint.c (start_tracing): Adjust.
460
1428b37a
SM
4612021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
462
463 * breakpoint.c (breakpoint_safe_range): New.
464 (all_breakpoints_safe): New. Use instead of
465 ALL_BREAKPOINTS_SAFE where possible.
466
43892fdf
SM
4672021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
470 all_breakpoints.
471 (breakpoint_iterator): New.
472 (breakpoint_range): New.
473 (all_breakpoints): New.
474
bdef5723
HD
4752021-05-27 Hannes Domani <ssbssa@yahoo.de>
476
477 * python/py-tui.c (tui_py_window::output): Add full_window
478 argument.
479 (gdbpy_tui_write): Parse "full_window" argument.
480
d5a6313e
SM
4812021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
482
483 * make-init-c: Add option to reverse function calls.
484
f39632d9
SM
4852021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
486
487 * Makefile.in (INIT_FILES_FILTER_OUT): New.
488 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
489 (stamp-init): Use make-init-c.
490 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
491 * silent-rules.mk (ECHO_INIT_C): Change.
492 * make-init-c: New file.
493
5e84b7ee
SM
4942021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
495
496 * command.h (add_alias_cmd): Accept target as
497 cmd_list_element. Update callers.
498
e0f25bd9
SM
4992021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
500
501 * command.h (add_info_alias): Accept target as
502 cmd_list_element. Update callers.
503
3947f654
SM
5042021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
505
506 * command.h (add_com_alias): Accept target as
507 cmd_list_element. Update callers.
508
7bd22f56
SM
5092021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
510
511 * python/py-param.c (add_setshow_generic): Use return values of
512 add_setshow functions.
513
9f260536
SM
5142021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
515
516 * mi/mi-main.c (_initialize_mi_main):
517 * python/py-auto-load.c (gdbpy_initialize_auto_load):
518 * remote.c (_initialize_remote):
519
af7f8f52
SM
5202021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
521
522 * command.h (set_show_commands): New.
523 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
524 add_setshow_boolean_cmd, add_setshow_filename_cmd,
525 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
526 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
527 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
528 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
529 Return set_show_commands. Adjust callers.
530 * cli/cli-decode.c (add_setshow_cmd_full): Return
531 set_show_commands, remove result parameters, adjust callers.
532
248f7165
TV
5332021-05-27 Tom de Vries <tdevries@suse.de>
534
535 PR symtab/27919
536 * dwarf2/read.c (process_psymtab_comp_unit):
537
2152b4fd
TV
5382021-05-27 Tom de Vries <tdevries@suse.de>
539
540 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
541 error.
542
6dcd1193
TV
5432021-05-27 Tom de Vries <tdevries@suse.de>
544
545 PR symtab/27898
546 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
547 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
548 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
549 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
550 load_all_dies init.
551 (dwarf2_per_cu_data): Remove load_all_dies field.
552
11bb5c41
SM
5532021-05-26 Simon Marchi <simon.marchi@efficios.com>
554
555 * regcache.c (reg_buffer::reg_buffer): Default-initialize
556 m_registers array.
557
ef5f598c
TT
5582021-05-26 Tom Tromey <tom@tromey.com>
559
560 * dwarf2/read.c (allocate_type_unit_groups_table)
561 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
562 htab_delete_entry.
563 (free_line_header_voidp): Remove.
564 * completer.c
565 (completion_tracker::completion_hash_entry::deleter): Remove.
566 (completion_tracker::discard_completions): Use htab_delete_entry.
567 * utils.h (htab_delete_entry): New template function.
568
a56889ae
HD
5692021-05-24 Hannes Domani <ssbssa@yahoo.de>
570
571 * python/py-tui.c (tui_py_window::refresh_window):
572 Avoid flickering.
573
fbf3c4b9
TV
5742021-05-23 Tom de Vries <tdevries@suse.de>
575
576 PR tdep/27822
577 * target.h (struct target_ops): Mention target_thread_architecture in
578 read_description comment.
579 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
580 pid to determine if process is 64-bit or 32-bit.
581 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
582 Same.
583 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
584 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
585 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
586 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
587 Likewise, use pid to determine if kernel supports reading VFP
588 registers.
589
8569d6e1
PW
5902021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
591
592 * main.c (enum cmdarg_kind): Fix option type comments for
593 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
594
778ae9cc
TV
5952021-05-21 Tom de Vries <tdevries@suse.de>
596
597 PR testsuite/25047
598 * contrib/cc-with-tweaks.sh: Handle -l.
599
6d1a09b7
TV
6002021-05-21 Tom de Vries <tdevries@suse.de>
601
602 PR breakpoint/27889
603 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
604 objects. Call get_jiter_objfile_data with the_objfile.
605
1487a14e
SM
6062021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * linespec.c (linespec_p): Remove. Replace all uses with
609 "linespec *".
610
bb6203bf
AH
6112021-05-20 Alexandra Hájková <ahajkova@redhat.com>
612 Pedro Alves <pedro@palves.net>
613
614 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
615 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
616 command_line_up instead of struct command_line.
617 (build_command_line): Likewise.
618 (get_command_line): Update the cmd function call parameter.
619 (process_next_line): Use unique_ptr command_line_up instead
620 of struct command_line.
621 (recurse_read_control_structure): Change the the type of
622 next to command_line_up.
623 (read_command_lines_1): Change type of `next' to be
624 command_line_up and update all references of `next'
625 accordingly.
626
ed3130b7
AH
6272021-05-20 Alexandra Hájková <ahajkova@redhat.com>
628
629 * MAINTAINERS (Write After Approval): Add myself.
630
5433e20e
JB
6312021-05-19 John Baldwin <jhb@FreeBSD.org>
632
633 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
634
a5523cc3
AH
6352021-05-18 Alexandra Hájková <ahajkova@redhat.com>
636
637 * inflow.c (new_tty): Do not leak tty.
638
cd53fa40
TT
6392021-05-17 Tom Tromey <tom@tromey.com>
640
641 * dwarf2/read.h: Update include.
642 * dwarf2/read.c: Update include.
643 * dwarf2/line-header.c: Update include.
644 * dwarf2/cu.h: Update include.
645 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
646 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
647 * Makefile.in (COMMON_SFILES): Update.
648
347212b8
TT
6492021-05-17 Tom Tromey <tom@tromey.com>
650
651 * dwarf2/read.c (maybe_queue_comp_unit)
652 (dwarf2_per_objfile::age_comp_units): Update.
653 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
654 dwarf2_cu methods.
655 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
656 add_dependence>: New methods.
657 <m_dependencies>: Add "m_" prefix. Now private.
658 <m_mark>: Add "m_" prefix.
659 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
660 (dwarf2_mark_helper): New function.
661 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
662
839118f9
TT
6632021-05-17 Tom Tromey <tom@tromey.com>
664
665 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
666 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
667 (dwarf2_cu::dwarf2_cu): Move to cu.c.
668 * dwarf2/cu.c: New file.
669 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
670
8ae78a44
TT
6712021-05-17 Tom Tromey <tom@tromey.com>
672
673 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
674 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
675 Move to cu.h.
676 * dwarf2/cu.h: New file.
677
c1c0a7e1
AB
6782021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
679
680 * .dir-locals.el: Set sentence-end-double-space for all modes, and
681 set brace-list-open to 0 for C and C++ modes.
682
9e541c79
TT
6832021-05-17 Tom Tromey <tromey@adacore.com>
684
685 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
686 if frame is null.
687
59173216
TT
6882021-05-17 Tom Tromey <tromey@adacore.com>
689
690 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
691 (group_from_gid): Subtract one from strncpy length.
692
baea2f9d
TT
6932021-05-17 Tom Tromey <tromey@adacore.com>
694
695 * source.c (add_path): Check 'p' before using 'p[-1]'.
696
473ab964
TT
6972021-05-17 Tom Tromey <tromey@adacore.com>
698
699 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
700 (dwarf2_per_cu_data_up): New typedef.
701 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
702 <all_comp_units>: Use dwarf2_per_cu_data_up.
703 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
704 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
705 (create_cu_from_index_list): Likewise.
706 (create_signatured_type_table_from_index)
707 (create_cus_from_debug_names_list, add_type_unit)
708 (read_comp_units_from_section): Update.
709 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
710 (run_test): Update.
711
16e0020b
TT
7122021-05-17 Tom Tromey <tom@tromey.com>
713
714 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
715 (sort_tu_by_abbrev_offset): Remove.
716 (build_type_psymtabs): Update.
717
91e159e9
SM
7182021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * py-project.toml: New.
721 * gdb-gdb.py.in: Re-format.
722
034dce7a
SM
7232021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
726 New, use it.
727 * command.h (cmd_func_p): Remove.
728 * cli/cli-decode.c (cmd_func_p): Remove.
729
1be99b11
SM
7302021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
731
732 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
733
99858724
SM
7342021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
737 to...
738 <alias_target>: ... this.
739 (add_alias_cmd): Rename old to target.
740 (add_info_alias): Rename old_name to target_name.
741 (add_com_alias): Likewise.
742
14b42fc4
SM
7432021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
744
745 * Rename "prefixlist" parameters to "subcommands" throughout.
746 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
747 <subcommands>: ... this.
748 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
749 (lookup_cmd_with_subcommands): ... this.
750
ecd0a6b3
SM
7512021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
754
413b49c2
SM
7552021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
756
757 * cli/cli-decode.h (prefixname): Make const, move implementation
758 to cli/cli-decode.c.
759 * cli/cli-decode.c (cmd_list_element::prefixname): New.
760
ea11a98d
WP
7612021-05-16 Weimin Pan <weimin.pan@oracle.com>
762
763 * ctfread.c (new_symbol): Set function address.
764 (read_func_kind_type): Remove incorrect type name setting.
765 Don't copy name returned from ctf_type_ame_raw throughout file.
766
887e7158
TT
7672021-05-14 Tom Tromey <tom@tromey.com>
768
769 * rust-lang.c (rust_language::val_print_struct)
770 (rust_language::print_enum): Use common_val_print, not
771 value_print_inner.
772
55789354
TBA
7732021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
774
775 * python/py-inferior.c (infpy_get_connection_num): New function.
776 (inferior_object_getset): Add a new element for 'connection_num'.
777 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
778
2f63ec5c
AB
7792021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
780
781 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
782 argument type, update and re-wrap, header comment.
783 (remote_target::commit_resumed): Convert any_process_wildcard and
784 may_global_wildcard_vcont from int to bool.
785
ecf25064
KC
7862021-05-14 Kent Cheung <kent.cheung@arm.com>
787
788 * cp-valprint.c (cp_print_value): Replaced duplicate code.
789 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
790 just before printing child values.
791 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
792 printing string representation.
793 * python/py-prettyprint.c (print_children): Check max_depth just
794 before printing child values.
795 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
796 printing string representation.
797
df68e12b
MF
7982021-05-14 Mike Frysinger <vapier@gentoo.org>
799
800 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
801 sim/callback.h & sim/sim.h.
802
183aaaf7
MF
8032021-05-13 Mike Frysinger <vapier@gentoo.org>
804
805 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
806 sim-regno.h include.
807
737358ba
SM
8082021-05-13 Simon Marchi <simon.marchi@efficios.com>
809
810 * inf-child.h (inf_child_target) <follow_exec>: New.
811 * inf-child.c (inf_child_target::follow_exec): New.
812
294c36eb
SM
8132021-05-13 Simon Marchi <simon.marchi@efficios.com>
814
815 * target.h (struct target_ops) <follow_exec>: Add ptid_t
816 parameter.
817 (target_follow_exec): Likewise.
818 * target.c (target_follow_exec): Add ptid_t parameter.
819 * infrun.c (follow_exec): Adjust call to target_follow_exec,
820 don't push target nor create thread.
821 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
822 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
823 (thread_db_target::follow_exec): New.
824 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
825 (remote_target::follow_exec): Call
826 process_stratum_target::follow_exec.
827 * target-delegates.c: Re-generate.
828
2af87c85
SM
8292021-05-13 Simon Marchi <simon.marchi@efficios.com>
830
831 * infrun.c (follow_exec): Call target_follow_fork when
832 follow-exec-mode is same.
833 * target.h (target_follow_fork): Improve doc.
834
0b2256f7
SM
8352021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
836
837 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
838 Remove.
839 * cli/cli-setshow.c (do_show_command): Adjust.
840
0746f49b
LM
8412021-05-13 Luis Machado <luis.machado@linaro.org>
842
843 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
844 include the last address in the range.
845
4b8cb9dd
SM
8462021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
847
848 * python/python-internal.h (gdbpy_parse_command_name): Return
849 gdb::unique_xmalloc_ptr.
850 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
851 (cmdpy_init): Adjust.
852 * python/py-param.c (parmpy_init): Adjust.
853 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
854 when done.
855
ee35ce82
GB
8562021-05-12 George Barrett <bob@bob131.so>
857
858 * NEWS (Guile API): Note the addition of the new procedure.
859 * guile/scm-value.c (gdbscm_value_const_value): Add
860 implementation of value-const-value procedure.
861 (value_functions): Add value-const-value procedure.
862
9d4fc61d
GB
8632021-05-12 George Barrett <bob@bob131.so>
864
865 * NEWS (Guile API): Note the addition of new procedures.
866 * guile/scm-value.c (gdbscm_reference_value): Add helper function
867 for reference value creation.
868 (gdbscm_value_reference_value): Add implementation of
869 value-reference-value procedure.
870 (gdbscm_value_rvalue_reference_value): Add implementation of
871 value-rvalue-reference-value procedure.
872 (value_functions): Add value-reference-value procedure. Add
873 value-rvalue-reference-value procedure.
874
97cef6b7
GB
8752021-05-12 George Barrett <bob@bob131.so>
876
877 * guile/scm-type.c (type_integer_constants): Add binding for
878 TYPE_CODE_RVALUE_REF.
879 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
880 dereferencing of rvalue references.
881 * NEWS (Guile API): Note improvements in rvalue reference support.
882
d51344c9
MM
8832021-05-12 Markus Metzger <markus.t.metzger@intel.com>
884
885 * btrace.c (handle_pt_insn_events): Ignore status update enable
886 events.
887
f2a883a8
SM
8882021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
889
890 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
891 indentation.
892
64f30eb0
SM
8932021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
894
895 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
896
db1f6cd6
LS
8972021-05-10 Lancelot Six <lsix@lancelotsix.com>
898
899 PR gdb/27614
900 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
901 argument.
902
31aceaef
SM
9032021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
904
905 * nat/linux-waitpid.c (status_to_str): Show signal name.
906
75140e3b
AB
9072021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
908
909 * python/py-breakpoint.c (pybp_debug): New static global.
910 (show_pybp_debug): New function.
911 (pybp_debug_printf): Define.
912 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
913 (gdbpy_breakpoint_created): Add some debugging.
914 (gdbpy_breakpoint_deleted): Likewise.
915 (gdbpy_breakpoint_modified): Likewise.
916 (_initialize_py_breakpoint): New function.
917
1ef40c13
AB
9182021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * python/py-unwind.c (pyuw_debug): Convert to bool.
921 (show_pyuw_debug): New function.
922 (pyuw_debug_printf): Define.
923 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
924 (pyuw_this_id): Convert to new debug print macros.
925 (pyuw_prev_register): Likewise.
926 (pyuw_sniffer): Likewise.
927 (pyuw_dealloc_cache): Likewise.
928 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
929 show function when registering.
930
927c4e35
AB
9312021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * dummy-frame.c (fprint_dummy_frames): Convert use of
934 fprint_frame_id to use frame_id::to_string.
935 * frame.c (fprint_field): Delete.
936 (fprint_frame_id): Moved to...
937 (frame_id::to_string): ...this, rewritten to return a string.
938 (fprint_frame): Convert use of fprint_frame_id to use
939 frame_id::to_string.
940 (compute_frame_id): Likewise.
941 (frame_id_p): Likewise.
942 (frame_id_eq): Likewise.
943 (frame_id_inner): Likewise.
944 * frame.h (struct frame_id) <to_string>: New member function.
945 (fprint_frame_id): Delete declaration.
946 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
947 fprint_frame_id to use frame_id::to_string.
948 * python/py-frame.c (frame_object_to_frame_info): Likewise.
949 * python/py-unwind.c (unwind_infopy_str): Likewise.
950 (pyuw_this_id): Likewise.
951
8d06918f
SM
9522021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
953
954 * nat/linux-waitpid.c (status_to_str): Return std::string.
955 * nat/linux-waitpid.h (status_to_str): Likewise.
956 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
957 (linux_nat_target::attach): Adjust.
958 (linux_handle_extended_wait): Adjust.
959 (wait_lwp): Adjust.
960 (stop_wait_callback): Adjust.
961 (linux_nat_filter_event): Adjust.
962 (linux_nat_wait_1): Adjust.
963 * nat/linux-waitpid.c (status_to_str): Adjust.
964 * nat/linux-waitpid.h (status_to_str): Adjust.
965
550e9289
SM
9662021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
967
968 * infrun.h (infrun_debug_printf): Add missing space.
969
4655f850
PA
9702021-05-08 Pedro Alves <pedro@palves.net>
971
972 * linux-nat.c (linux_nat_target::supports_disable_randomization):
973 Remove references to HAVE_PERSONALITY.
974 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
975 (maybe_disable_address_space_randomization)
976 (~maybe_disable_address_space_randomizatio): Remove references to
977 HAVE_PERSONALITY.
978 * config.in, configure: Regenerate.
979
1845e254
AB
9802021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
983 include.
984 (source_script_with_search): Perform tilde expansion.
985
91e3c425
SM
9862021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
987
988 * target-descriptions.c (struct target_desc_info) <filename>:
989 Make std::string.
990 (copy_inferior_target_desc_info): Adjust.
991 (target_desc_info_free): Adjust.
992 (target_find_description): Adjust.
993 (set_tdesc_filename_cmd): Adjust.
994 (show_tdesc_filename_cmd): Adjust.
995 (unset_tdesc_filename_cmd): Adjust.
996 (maint_print_c_tdesc_cmd): Adjust.
997
0b2f7ade
SM
9982021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
999
1000 * target-descriptions.c (struct target_desc_info): Initialize
1001 fields.
1002 (get_tdesc_info): Use new.
1003 (target_desc_info_free): Use delete.
1004
820c4490
SM
10052021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * target-descriptions.c (struct target_desc_info) <fetched>:
1008 bool.
1009 (target_find_description): Adjust.
1010 (target_clear_description): Adjust.
1011
c2962e6a
SM
10122021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1013
1014 * target-descriptions.c (struct target_desc_info) <tdesc>:
1015 Adjust doc.
1016 (target_desc_fetched): Remove.
1017 (current_target_desc): Remove.
1018 (target_description_filename): Remove.
1019 (target_find_description): Adjust.
1020 (target_clear_description): Adjust.
1021 (target_current_description): Adjust.
1022 (set_tdesc_filename_cmd): Adjust.
1023 (show_tdesc_filename_cmd): Adjust.
1024 (unset_tdesc_filename_cmd): Adjust.
1025 (maint_print_c_tdesc_cmd): Adjust.
1026 (maint_print_xml_tdesc_cmd): Adjust.
1027
8a82de58
AB
10282021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 * infcmd.c (notice_new_inferior): Change parameter type.
1031 * inferior.h (notice_new_inferior): Change parameter type.
1032 * remote.c (remote_notice_new_inferior): Change parameter type to
1033 bool. Also update type of local variable to bool.
1034 (remote_target::update_thread_list): Change type of local variable
1035 to bool.
1036 (remote_target::process_stop_reply): Pass bool instead of int to
1037 remote_notice_new_inferior.
1038
bedc4734
SM
10392021-05-07 Simon Marchi <simon.marchi@efficios.com>
1040
1041 * target.c (target_stack::unpush): Call target_ops::find_beneath
1042 to get the target beneath `t`.
1043
27f0a431
SM
10442021-05-07 Simon Marchi <simon.marchi@efficios.com>
1045
1046 * target.c (target_close): Check in all inferiors that the
1047 target is not pushed.
1048
1d1669e4
AM
10492021-05-07 Aaron Merey <amerey@redhat.com>
1050
1051 * debuginfod-support.c (debuginfod_init): Remove.
1052 (get_debuginfod_client): New function.
1053
2698f5ea
TT
10542021-05-07 Tom Tromey <tom@tromey.com>
1055
1056 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1057 * utils.c (streq_hash): Remove.
1058 * utils.h (streq_hash): Don't declare.
1059 * completer.c (completion_tracker::discard_completions): Update
1060 comment.
1061 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1062
13123da8
SM
10632021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1064
1065 * Re-format all Python files using black.
1066
9589edb8
AB
10672021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1070 function return type.
1071 * guile/guile.c (gdbscm_source_script): Update to handle change in
1072 gdbscm_safe_source_script.
1073 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1074 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1075 type.
1076
ec66d6ea
SM
10772021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1078
1079 * inferior.h (class inferior) <args>: Change type to
1080 unique_xmalloc_ptr.
1081 * inferior.c (inferior::~inferior): Don't free args.
1082 * infcmd.c (get_inferior_args): Adjust.
1083 (set_inferior_args): Adjust.
1084
0618ecf6
AB
10852021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1086
1087 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1088 breakpoint locations when the breakpoint actually has a location.
1089
79aabb73
TBA
10902021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1091
1092 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1093 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1094 mi_cmd_break_condition.
1095 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1096 * breakpoint.h (set_breakpoint_condition): Declare a new
1097 overload.
1098 * breakpoint.c (set_breakpoint_condition): New overloaded function
1099 extracted out from ...
1100 (condition_command): ... this.
1101 * NEWS: Mention the change.
1102
10e578d7
TBA
11032021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1104
1105 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1106 '--force-condition' flag to force the condition in the
1107 '-break-insert' and '-dprintf-insert' commands.
1108 * NEWS: Mention the change.
1109
225bda24
TV
11102021-05-04 Tom de Vries <tdevries@suse.de>
1111
1112 PR guile/27806
1113 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1114 memory functions.
1115
b8efb248
TT
11162021-04-30 Tom Tromey <tom@tromey.com>
1117
1118 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1119 (add_signatured_type_cu_to_table): Remove.
1120 (create_debug_type_hash_table): Assume dwo_file is non-null.
1121 (create_debug_types_hash_table): Update comment.
1122 (create_all_type_units): Remove.
1123 (sort_tu_by_abbrev_offset): Update comment.
1124 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1125 (build_type_psymtabs): Remove.
1126 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1127 Update.
1128 (read_comp_units_from_section): Add types_htab, section_kind
1129 parameters.
1130 (create_all_comp_units): Read type units.
1131
91eea9cc
TT
11322021-04-30 Tom Tromey <tom@tromey.com>
1133
1134 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1135 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1136 <get_cu>: Now inline.
1137 <all_type_units>: Remove.
1138 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1139 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1140 (dwarf2_per_bfd::get_tu): Remove.
1141 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1142 (create_signatured_type_table_from_index)
1143 (create_signatured_type_table_from_debug_names)
1144 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1145 (dwarf2_base_index_functions::expand_all_symtabs)
1146 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1147 (dwarf2_base_index_functions::map_symbol_filenames)
1148 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1149 (add_signatured_type_cu_to_table, create_all_type_units)
1150 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1151 (create_all_comp_units): Update.
1152 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1153 (write_debug_names): Update.
1154
0d305d5c
TT
11552021-04-30 Tom Tromey <tom@tromey.com>
1156
1157 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1158 allocate_signatured_type>: Change return type.
1159 <all_comp_units, all_type_units>: Hold unique pointers.
1160 (struct dwarf2_per_cu_data): Add constructor and initializers.
1161 (struct signatured_type): Derive from dwarf2_per_cu_data.
1162 * dwarf2/read.c (type_unit_group): Derive from
1163 dwarf2_per_cu_data.
1164 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1165 (dwarf2_per_bfd::get_tu)
1166 (dwarf2_per_bfd::allocate_signatured_type)
1167 (dwarf2_per_bfd::allocate_signatured_type)
1168 (create_cu_from_index_list, create_cus_from_index_list)
1169 (create_signatured_type_table_from_index)
1170 (create_signatured_type_table_from_debug_names)
1171 (create_addrmap_from_aranges)
1172 (dwarf2_base_index_functions::find_last_source_symtab)
1173 (dw_expand_symtabs_matching_file_matcher)
1174 (dwarf2_gdb_index::expand_symtabs_matching)
1175 (dwarf2_base_index_functions::map_symbol_filenames)
1176 (create_cus_from_debug_names_list)
1177 (dw2_debug_names_iterator::next)
1178 (dwarf2_debug_names_index::expand_symtabs_matching)
1179 (create_debug_type_hash_table, add_type_unit)
1180 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1181 Update.
1182 (allocate_type_unit_groups_table): Use delete.
1183 (create_type_unit_group): Change return type. Use new.
1184 (get_type_unit_group, build_type_psymtabs_1)
1185 (build_type_psymtab_dependencies)
1186 (process_skeletonless_type_unit, set_partial_user)
1187 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1188 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1189 (read_signatured_type): Update.
1190 (dwarf2_find_containing_comp_unit): Change type of
1191 'all_comp_units'.
1192 (run_test): Update.
1193 (dwarf2_per_bfd::allocate_per_cu)
1194 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1195 Use new.
1196 (add_signatured_type_cu_to_table): Update.
1197 * dwarf2/index-write.c (write_one_signatured_type)
1198 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1199 (write_debug_names): Update.
1200
1bee48c7
TT
12012021-04-30 Tom Tromey <tromey@adacore.com>
1202
1203 * nat/windows-nat.h (get_image_name): Don't declare.
1204 * nat/windows-nat.c (get_image_name): Now static.
1205
e228ef97
TT
12062021-04-30 Tom Tromey <tromey@adacore.com>
1207
1208 * windows-nat.c (windows_nat::handle_load_dll): Update.
1209 (windows_nat_target::get_windows_debug_event): Call
1210 dll_loaded_event.
1211 (windows_add_all_dlls, windows_add_dll): Move to
1212 nat/windows-nat.c.
1213 * nat/windows-nat.h (handle_load_dll): Change parameters.
1214 (dll_loaded_event, windows_add_all_dlls): Declare.
1215 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1216 from windows-nat.c.
1217 (dll_loaded_event): New function.
1218
de071872
TT
12192021-04-30 Tom Tromey <tromey@adacore.com>
1220
1221 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1222 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1223 Declare.
1224 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1225 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1226
9e439f00
TT
12272021-04-30 Tom Tromey <tromey@adacore.com>
1228
1229 * windows-nat.c: Move code to nat/windows-nat.[ch].
1230 (_initialize_windows_nat): Call initialize_loadable.
1231 * nat/windows-nat.h (AdjustTokenPrivileges)
1232 (DebugActiveProcessStop, DebugBreakProcess)
1233 (DebugSetProcessKillOnExit, EnumProcessModules)
1234 (EnumProcessModulesEx, GetModuleInformation)
1235 (GetModuleFileNameExA, GetModuleFileNameExW)
1236 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1237 (GetCurrentConsoleFont, Wow64SuspendThread)
1238 (Wow64GetThreadContext, Wow64SetThreadContext)
1239 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1240 (AdjustTokenPrivileges_ftype)
1241 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1242 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1243 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1244 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1245 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1246 (GetConsoleFontSize_ftype)
1247 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1248 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1249 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1250 (initialize_loadable): Declare.
1251 * nat/windows-nat.c (AdjustTokenPrivileges)
1252 (DebugActiveProcessStop, DebugBreakProcess)
1253 (DebugSetProcessKillOnExit, EnumProcessModules)
1254 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1255 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1256 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1257 (Wow64GetThreadContext, Wow64SetThreadContext)
1258 (Wow64GetThreadSelectorEntry): Define.
1259 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1260 from windows-nat.c.
1261 (initialize_loadable): Likewise, and rename.
1262
1053c638
TT
12632021-04-30 Tom Tromey <tromey@adacore.com>
1264
1265 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1266 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1267 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1268 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1269 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1270 (bad): New template functions.
1271 (_initialize_loadable): Update.
1272
2869ac4b
TT
12732021-04-30 Tom Tromey <tromey@adacore.com>
1274
1275 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1276
e197dfae
SM
12772021-04-29 Simon Marchi <simon.marchi@efficios.com>
1278
1279 * auto-load.h: Split namespace declaration.
1280
89ba430c
SM
12812021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * infrun.c (save_waitstatus): Move variables to inner scope.
1284
8eb82ba1
AB
12852021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1286
1287 * NEWS: Fix typo and stray full stop.
1288
db2534b7
TT
12892021-04-28 Tom Tromey <tromey@adacore.com>
1290
1291 * ada-exp.y (primary): Use new type for null pointer.
1292 * ada-lang.c (ada_type_match): Remove "may_deref"
1293 parameter. Handle null pointer.
1294 (ada_args_match): Update.
1295 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1296 Handle null pointer.
1297
edeaceda
AB
12982021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * NEWS: Mention new commands.
1301 * python/python.c (python_ignore_environment): New static global.
1302 (show_python_ignore_environment): New function.
1303 (set_python_ignore_environment): New function.
1304 (python_dont_write_bytecode): New static global.
1305 (show_python_dont_write_bytecode): New function.
1306 (set_python_dont_write_bytecode): New function.
1307 (_initialize_python): Register new commands.
1308
041ca48e
AB
13092021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1310
1311 * extension-priv.h (struct extension_language_ops): Rename
1312 'finish_initialization' to 'initialize'.
1313 * extension.c (finish_ext_lang_initialization): Renamed to...
1314 (ext_lang_initialization): ...this, update comment, and updated
1315 the calls to reflect the change in struct extension_language_ops.
1316 * extension.h (finish_ext_lang_initialization): Renamed to...
1317 (ext_lang_initialization): ...this.
1318 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1319 (gdbscm_initialize): ...this, update comment at definition.
1320 (guile_extension_ops): Update.
1321 * main.c (captured_main_1): Update call to
1322 finish_ext_lang_initialization.
1323 * python/python.c (gdbpy_finish_initialization): Rename to...
1324 (gdbpy_initialize): ...this, update comment at definition, and
1325 update call to do_finish_initialization.
1326 (python_extension_ops): Update.
1327 (do_finish_initialization): Rename to...
1328 (do_initialize): ...this, and update comment.
1329
1178f01a
AB
13302021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1331
1332 * main.c (captured_main_1): Add a call to
1333 finish_ext_lang_initialization.
1334 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1335
880ae75a
AB
13362021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1339 (gdbscm_finish_initialization): Add code moved from
1340 _initialize_guile.
1341 (_initialize_guile): Move code to gdbscm_finish_initialization.
1342 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1343 _initialize_scm_arch.
1344 (_initialize_scm_arch): New function.
1345 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1346 into _initialize_scm_block.
1347 (_initialize_scm_block): New function.
1348 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1349 into _initialize_scm_frame.
1350 (_initialize_scm_frame): New function.
1351 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1352 into _initialize_scm_objfile.
1353 (_initialize_scm_objfile): New function.
1354 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1355 code into _initialize_scm_progspace.
1356 (_initialize_scm_progspace): New function.
1357 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1358 into _initialize_scm_symbol.
1359 (_initialize_scm_symbol): New function.
1360 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1361 into _initialize_scm_symtab.
1362 (_initialize_scm_symtab): New function.
1363 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1364 _initialize_scm_type.
1365 (_initialize_scm_type): New function.
1366
8e3685bf
AB
13672021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * python/py-arch.c (_initialize_py_arch): New function.
1370 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1371 * python/py-block.c (_initialize_py_block): New function.
1372 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1373 * python/py-inferior.c (_initialize_py_inferior): New function.
1374 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1375 * python/py-objfile.c (_initialize_py_objfile): New function.
1376 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1377 * python/py-progspace.c (_initialize_py_progspace): New function.
1378 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1379 * python/py-registers.c (_initialize_py_registers): New function.
1380 (gdbpy_initialize_registers): Move code to
1381 _initialize_py_registers.
1382 * python/py-symbol.c (_initialize_py_symbol): New function.
1383 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1384 * python/py-symtab.c (_initialize_py_symtab): New function.
1385 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1386 * python/py-type.c (_initialize_py_type): New function.
1387 (gdbpy_initialize_types): Move code to _initialize_py_type.
1388 * python/py-unwind.c (_initialize_py_unwind): New function.
1389 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1390 * python/python.c (_initialize_python): Move call to
1391 do_start_initialization to gdbpy_finish_initialization.
1392 (gdbpy_finish_initialization): Add call to
1393 do_start_initialization.
1394
913832e9
AB
13952021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * extension.c (struct scoped_default_signal): New struct.
1398 (scoped_default_sigint): New typedef.
1399 (finish_ext_lang_initialization): Make use of
1400 scoped_default_sigint.
1401
a3b5ef3e
AB
14022021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * main.c (captured_main_1): Don't pass argument to gdb_init.
1405 * top.c (gdb_init): Remove unused argument, and add header
1406 comment.
1407 * top.h (gdb_init): Remove argument.
1408
b9f90c72
LM
14092021-04-27 Luis Machado <luis.machado@linaro.org>
1410
1411 * psymtab.c (psymbol_functions::dump): Output newline.
1412 Remove wrap.
1413 * symmisc.c (dump_objfile): Likewise.
1414
2c473def
MW
14152021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1416 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1419 when attaching the 'auto_load_new_objfile' observer, so
1420 other observers can specify it as a dependency.
1421 * gdb/auto-load.h (struct token): Declare
1422 'auto_load_new_objfile_observer_token' as token to be used
1423 for the 'auto_load_new_objfile' observer.
1424 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1425 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1426 observer, so it gets notified after the latter.
1427
9a6e099f
MW
14282021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1429 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * unittests/observable-selftests.c (dependency_test_counters):
1432 New.
1433 (observer_token0, observer_token1, observer_token2,
1434 observer_token3, observer_token4, observer_token5): New.
1435 (struct dependency_observer_data): New struct.
1436 (observer_dependency_test_callback): New function.
1437 (test_observers): New.
1438 (run_dependency_test): New function.
1439 (test_dependency): New.
1440 (_initialize_observer_selftest): Register dependency test.
1441
bea3329b
SM
14422021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 PR gdb/27773
1445 * cli/cli-dump.c (dump_binary_file): Check result of
1446 gdb_fopen_cloexec.
1447
c290cb01
ST
14482021-04-25 Sergei Trofimovich <siarheit@google.com>
1449
1450 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1451 by passing `process_stratum_target*` parameter.
1452
fbb46296
LS
14532021-04-25 Lancelot Six <lsix@lancelotsix.com>
1454
1455 PR gdb/22640
1456 * typeprint.h (struct type_print_options): Add print_in_hex
1457 flag.
1458 (struct print_offset_data): Add print_in_hex flag, add a
1459 constructor accepting a type_print_options* argument.
1460 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1461 default value for print_in_hex.
1462 (print_offset_data::indentation): Allow more horizontal space.
1463 (print_offset_data::print_offset_data): Add ctor.
1464 (print_offset_data::maybe_print_hole, print_offset_data::update):
1465 Handle the print_in_hex flag.
1466 (whatis_exp): Handle 'x' and 'd' flags.
1467 (print_offsets_and_sizes_in_hex): Declare.
1468 (set_print_offsets_and_sizes_in_hex): Create.
1469 (show_print_offsets_and_sizes_in_hex): Create.
1470 (_initialize_typeprint): Update help message for the ptype
1471 command, register the 'set print type hex' and 'show print type
1472 hex' commands.
1473 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1474 (c_type_print_base): Construct the print_offset_data
1475 object using the type_print_optons parameter.
1476 * rust-lang.c (rust_language::print_type): Construct the
1477 print_offset_data object using the type_print_optons parameter.
1478 * NEWS: Mention the new flags of the ptype command.
1479
18bbba46
LS
14802021-04-25 Lancelot Six <lsix@lancelotsix.com>
1481
1482 * typeprint.h (struct type_print_options): Move before
1483 print_offset_data.
1484
77393c9b
JB
14852021-04-25 Joel Brobecker <brobecker@adacore.com>
1486
1487 GDB 10.2 released.
1488
98c897e3
SM
14892021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1490
1491 * observable.c (observer_debug): Change to bool.
1492
9fc29955
AB
14932021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1494
1495 * dwarf2/read.c: Add 'unordered_set' include.
1496 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1497 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1498 of per_Bfd->filenames_cache cache, and use function local
1499 filenames_cache instead. Reindent.
1500 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1501
0406545d
SM
15022021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1503
1504 * breakpoint.c (iterate_over_bp_locations): Change callback to
1505 function view, remove data parameter.
1506 * breakpoint.h (iterate_over_bp_locations): Likewise.
1507 * record-full.c (record_full_sync_record_breakpoints): Remove
1508 data parameter.
1509
432ce4cf
TT
15102021-04-22 Tom Tromey <tom@tromey.com>
1511
1512 * c-typeprint.c (c_type_print_base_struct_union): Use
1513 print_spaces_filtered_with_print_options.
1514
e25d6d93
SM
15152021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1516
1517 PR gdb/27757
1518 * python/py-type.c (typy_range): Check that bounds are constant
1519 before accessing them as such.
1520 * guile/scm-type.c (gdbscm_type_range): Likewise.
1521
4efeb0d3
TBA
15222021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1523
1524 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1525 * inferior.c (inferior::add_continuation): New method, adapted
1526 from 'add_inferior_continuation'.
1527 (inferior::do_all_continuations): New method, adapted from
1528 'do_all_inferior_continuations'.
1529 (inferior::~inferior): Clear the list of continuations directly.
1530 * inferior.h (class inferior) <continuations>: Rename into...
1531 <m_continuations>: ...this and make private.
1532 * continuations.c: Remove.
1533 * continuations.h: Remove.
1534 * event-top.c: Don't include "continuations.h".
1535
1536 Update the users below.
1537 * inf-loop.c (inferior_event_handler)
1538 * infcmd.c (attach_command)
1539 (notice_new_inferior): Update.
1540
c4c493de
TBA
15412021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1542
1543 * inferior.h (class inferior) <continuations>: Change the type
1544 to be an std::list of std::function's.
1545 Update the references and uses below.
1546 * continuations.c (struct continuation): Delete.
1547 (make_continuation): Delete.
1548 (do_my_continuations_1): Delete.
1549 (do_my_continuations): Delete.
1550 (discard_my_continuations_1): Delete.
1551 (discard_my_continuations): Delete.
1552 (add_inferior_continuation): Update.
1553 (do_all_inferior_continuations): Update.
1554 (discard_all_inferior_continuations): Update.
1555 * continuations.h (add_inferior_continuation): Update to take
1556 an std::function as the parameter.
1557 * infcmd.c (struct attach_command_continuation_args): Delete.
1558 (attach_command_continuation): Delete.
1559 (attach_command_continuation_free_args): Delete.
1560 (attach_command): Update.
1561 (notice_new_inferior): Update.
1562
1194676e
TBA
15632021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1564
1565 * continuations.h: Update the general comment.
1566 * inferior.h (class inferior) <continuations>: Update the comment.
1567 * interps.c: Do not include "continuations.h".
1568
35682f0a
TBA
15692021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1570
1571 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1572 parameter. Update the references below.
1573 * continuations.c (do_my_continuations_1)
1574 (do_my_continuations)
1575 (do_all_inferior_continuations): Update.
1576 * inf-loop.c (inferior_event_handler): Update.
1577 * infcmd.c (attach_command_continuation): Update.
1578
6fee5eee
TBA
15792021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1580
1581 * infcmd.c (attach_post_wait): Update the function comment.
1582
27d0790a
TBA
15832021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1584
1585 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1586 Update the references below.
1587 (struct attach_command_continuation_args)
1588 (attach_command_continuation)
1589 (attach_command_continuation_free_args)
1590 (attach_command)
1591 (notice_new_inferior): Update to remove the reference to 'args'.
1592
c39ebbf4
TV
15932021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1594 Tom de Vries <tdevries@suse.de>
1595
1596 PR remote/27710
1597 * remote.c (remote_target_is_non_stop_p): New function.
1598 * remote.h (remote_target_is_non_stop_p): Declare.
1599 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1600 to check non-stopness using notif_state->remote rather current target.
1601
22f80c0f
TT
16022021-04-22 Tom Tromey <tom@tromey.com>
1603
1604 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1605 (struct typed_val_int) <val>: Now ULONGEST.
1606 (rust_parser::parse_array_type): Remove negative check.
1607 (rust_lex_int_test): Change 'value' to ULONGEST.
1608
05f3c0f0
AB
16092021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1610
1611 * arch-utils.c (default_addressable_memory_unit_size): Return a
1612 value based on bfd's bits per byte.
1613
7e7a35fb
TT
16142021-04-21 Tom Tromey <tom@tromey.com>
1615
1616 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1617 unsigned char.
1618 (struct dwarf2_per_cu_data): Rearrange.
1619 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1620 unsigned char.
1621 (struct comp_unit_head): Rearrange.
1622 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1623
ff507520
TV
16242021-04-21 Tom de Vries <tdevries@suse.de>
1625
1626 PR build/27681
1627 * configure.ac: Remove --without-included-regex/--with-included-regex.
1628 * config.in: Regenerate.
1629 * configure: Regenerate.
1630 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1631
10a636cc
TBA
16322021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1633
1634 * breakpoint.h (create_breakpoint): Add a new parameter,
1635 'force_condition'.
1636 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1637 argument when 'parse_extra' is false to check if the condition
1638 is invalid at all of the breakpoint locations.
1639 Update the users below.
1640 (break_command_1)
1641 (dprintf_command)
1642 (trace_command)
1643 (ftrace_command)
1644 (strace_command)
1645 (create_tracepoint_from_upload): Update.
1646 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1647 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1648 * python/py-breakpoint.c (bppy_init): Update.
1649 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1650
85c88e2a
TBA
16512021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1652
1653 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1654 disabled-by-condition locations on MI-like output.
1655 (breakpoint_1): Do not display the disabled-by-condition footnote
1656 if the output is MI-like.
1657
fd34472c
FC
16582021-04-21 Frederic Cambus <fred@statdns.com>
1659
1660 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1661 update year range in generated copyright notices.
1662
184dcd81
FW
16632021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1664
1665 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1666 qualifier_seq_noopt.
1667
525174e8
FW
16682021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1669
1670 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1671
f5dc2ee3
AB
16722021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1675 (producer_is_icc): Replace use of std::regex with gdb's
1676 compiled_regex.
1677
42c2c694
TT
16782021-04-17 Tom Tromey <tom@tromey.com>
1679
1680 PR gdb/23743:
1681 * dwarf2/read.c (class offset_view): New.
1682 (struct symbol_table_slot): Remove.
1683 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1684 <symbol_name_index, symbol_vec_index>: New methods.
1685 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1686 Rewrite.
1687 (read_gdb_index_from_buffer): Update.
1688 (struct dw2_symtab_iterator) <vec>: Change type.
1689 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1690 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1691 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1692 <append_array, append_offset>: New methods.
1693 (write_hash_table, add_address_entry, write_gdbindex_1)
1694 (write_debug_names): Update.
1695 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1696
da314dd3
TT
16972021-04-17 Tom Tromey <tom@tromey.com>
1698
1699 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1700 partial_symtabs.
1701
0b7b2c2a
TT
17022021-04-17 Tom Tromey <tom@tromey.com>
1703
1704 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1705 from map_matching_symbols. Change parameters.
1706 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1707 Rename from map_matching_symbols. Change parameters.
1708 * dwarf2/read.c (struct dwarf2_gdb_index)
1709 <expand_matching_symbols>: Rename from map_matching_symbols.
1710 Change parameters.
1711 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1712 Rename from map_matching_symbols. Change parameters.
1713 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1714 dw2_map_matching_symbols. Change parameters.
1715 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1716 implementation.
1717 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1718 map_matching_symbols. Change parameters.
1719 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1720 from map_matching_symbols. Change parameters.
1721 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1722 map_matching_symbols. Change parameters.
1723 * ada-lang.c (map_matching_symbols): New function.
1724 (add_nonlocal_symbols): Update.
1725
90160b57
TT
17262021-04-17 Tom Tromey <tom@tromey.com>
1727
1728 * quick-symbol.h (struct quick_symbol_functions)
1729 <expand_symtabs_with_fullname>: Remove.
1730 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1731 Remove.
1732 * psympriv.h (struct psymbol_functions)
1733 <expand_symtabs_with_fullname>: Remove.
1734 * dwarf2/read.c (struct dwarf2_base_index_functions)
1735 <expand_symtabs_with_fullname>: Remove.
1736 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1737 Remove.
1738 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1739 Update comment.
1740 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1741 Rewrite.
1742
7089bd88
TT
17432021-04-17 Tom Tromey <tom@tromey.com>
1744
1745 * symfile-debug.c (objfile::expand_symtabs_for_function):
1746 Rewrite.
1747 * quick-symbol.h (struct quick_symbol_functions)
1748 <expand_symtabs_for_function>: Remove.
1749 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1750 Remove.
1751 * psympriv.h (struct psymbol_functions)
1752 <expand_symtabs_for_function>: Remove.
1753 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1754 Update comment.
1755 * dwarf2/read.c (struct dwarf2_gdb_index)
1756 <expand_symtabs_for_function>: Remove.
1757 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1758 Remove.
1759 (find_slot_in_mapped_hash): Remove.
1760 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1761 (dw2_symtab_iter_init): Remove one overload.
1762 (dwarf2_gdb_index::expand_symtabs_for_function)
1763 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1764
536a40f3
TT
17652021-04-17 Tom Tromey <tom@tromey.com>
1766
1767 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1768 Rewrite.
1769 * quick-symbol.h (struct quick_symbol_functions)
1770 <map_symtabs_matching_filename>: Remove.
1771 * psymtab.c (partial_map_expand_apply)
1772 (psymbol_functions::map_symtabs_matching_filename): Remove.
1773 * psympriv.h (struct psymbol_functions)
1774 <map_symtabs_matching_filename>: Remove.
1775 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1776 Update comment.
1777 * dwarf2/read.c (struct dwarf2_base_index_functions)
1778 <map_symtabs_matching_filename>: Remove.
1779 (dw2_map_expand_apply)
1780 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1781 Remove.
1782
84d865e3
TT
17832021-04-17 Tom Tromey <tom@tromey.com>
1784
1785 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1786 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1787 Remove.
1788 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1789 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1790 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1791 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1792 Remove.
1793 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1794 (dwarf2_gdb_index::lookup_symbol)
1795 (dwarf2_debug_names_index::lookup_symbol): Remove.
1796
3bfa51a7
TT
17972021-04-17 Tom Tromey <tom@tromey.com>
1798
1799 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1800 * symmisc.c (maintenance_expand_symtabs): Update.
1801 * symfile.c (expand_symtabs_matching): Update.
1802 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1803 parameter.
1804 * quick-symbol.h (struct quick_symbol_functions)
1805 <expand_symtabs_matching>: Add 'domain' parameter.
1806 * psymtab.c (recursively_search_psymtabs)
1807 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1808 parameter.
1809 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1810 Add 'domain' parameter.
1811 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1812 'domain' parameter.
1813 * linespec.c (iterate_over_all_matching_symtabs): Update.
1814 * dwarf2/read.c (struct dwarf2_gdb_index)
1815 <expand_symtabs_matching>: Add 'domain' parameter.
1816 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1817 'domain' parameter.
1818 (dw2_expand_symtabs_matching)
1819 (dwarf2_gdb_index::expand_symtabs_matching)
1820 (dw2_debug_names_iterator)
1821 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1822 parameter.
1823
03a8ea51
TT
18242021-04-17 Tom Tromey <tom@tromey.com>
1825
1826 * symtab.c (global_symbol_searcher::expand_symtabs)
1827 (default_collect_symbol_completion_matches_break_on): Update.
1828 * symmisc.c (maintenance_expand_symtabs): Update.
1829 * symfile.h (expand_symtabs_matching): Add search_flags
1830 parameter.
1831 * symfile.c (expand_symtabs_matching): Add search_flags
1832 parameter.
1833 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1834 search_flags parameter.
1835 * quick-symbol.h (struct quick_symbol_functions)
1836 <expand_symtabs_matching>: Add search_flags parameter.
1837 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1838 * psymtab.c (recursively_search_psymtabs)
1839 (psymbol_functions::expand_symtabs_matching): Add search_flags
1840 parameter.
1841 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1842 Add search_flags parameter.
1843 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1844 search_flags parameter.
1845 * linespec.c (iterate_over_all_matching_symtabs): Update.
1846 * dwarf2/read.c (struct dwarf2_gdb_index)
1847 <expand_symtabs_matching>: Add search_flags parameter.
1848 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1849 search_flags parameter.
1850 (dw2_map_matching_symbols): Update.
1851 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1852 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1853 parameter.
1854 (dw2_debug_names_iterator): Change block_index to search flags.
1855 <m_block_index>: Likewise.
1856 (dw2_debug_names_iterator::next)
1857 (dwarf2_debug_names_index::lookup_symbol)
1858 (dwarf2_debug_names_index::expand_symtabs_for_function)
1859 (dwarf2_debug_names_index::map_matching_symbols)
1860 (dwarf2_debug_names_index::map_matching_symbols): Update.
1861 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1862 search_flags parameter.
1863 * ada-lang.c (ada_add_global_exceptions)
1864 (collect_symbol_completion_matches): Update.
1865
df35e626
TT
18662021-04-17 Tom Tromey <tom@tromey.com>
1867
1868 * symtab.c (default_collect_symbol_completion_matches_break_on):
1869 Update.
1870 * symfile.h (expand_symtabs_matching): Return bool.
1871 * symfile.c (expand_symtabs_matching): Return bool.
1872 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1873 bool.
1874 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1875 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1876 bool.
1877 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1878 bool.
1879 * psympriv.h (struct psymbol_functions)
1880 <expand_symtabs_matching>: Return bool.
1881 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1882 bool.
1883 * dwarf2/read.c (struct dwarf2_gdb_index)
1884 <expand_symtabs_matching>: Return bool.
1885 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1886 Return bool.
1887 (dw2_expand_symtabs_matching_symbol): Return bool.
1888 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1889 (dw2_expand_symtabs_matching)
1890 (dwarf2_gdb_index::expand_symtabs_matching)
1891 (dwarf2_debug_names_index::expand_symtabs_matching)
1892 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1893
e357e990
TT
18942021-04-17 Tom Tromey <tom@tromey.com>
1895
1896 * quick-symbol.h (enum block_search_flag_values): New.
1897 (block_search_flags): New enum flags type.
1898
3cbc7ac3
TT
18992021-04-16 Tom Tromey <tom@tromey.com>
1900
1901 * rust-parse.c: New file.
1902 * rust-exp.y: Remove.
1903 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1904 (SFILES): Remove rust-exp.y.
1905 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1906
1b6b755e
LM
19072021-04-16 Luis Machado <luis.machado@linaro.org>
1908
1909 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1910
c45ecc9d
JB
19112021-04-15 John Baldwin <jhb@FreeBSD.org>
1912
1913 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1914 use throughout file.
1915
a15a276b
TT
19162021-04-15 Tom Tromey <tromey@adacore.com>
1917
1918 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1919 arrays.
1920
644a2e75
TT
19212021-04-15 Tom Tromey <tromey@adacore.com>
1922
1923 * printcmd.c (print_variable_and_value): Use
1924 common_val_print_checked.
1925
9e5e03df
TT
19262021-04-15 Tom Tromey <tromey@adacore.com>
1927
1928 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1929 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1930 Update.
1931 * p-exp.y (variable): Update.
1932 * m2-exp.y (variable): Update.
1933 * go-exp.y (variable): Update.
1934 * expprint.c (dump_for_expression): New overload.
1935 * expop.h (check_objfile): New overload.
1936 (check_constant): New overload.
1937 (class var_value_operation): Use block_symbol.
1938 <get_symbol>: Rewrite.
1939 * eval.c (var_value_operation::evaluate)
1940 (var_value_operation::evaluate_funcall)
1941 (var_value_operation::evaluate_for_address)
1942 (var_value_operation::evaluate_for_address)
1943 (var_value_operation::evaluate_with_coercion)
1944 (var_value_operation::evaluate_for_sizeof)
1945 (var_value_operation::evaluate_for_cast): Update.
1946 * d-exp.y (PrimaryExpression): Update.
1947 * c-exp.y (variable): Update.
1948 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1949 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1950 (ada_var_value_operation::evaluate)
1951 (ada_var_value_operation::resolve)
1952 (ada_funcall_operation::resolve): Update.
1953 * ada-exp.y (write_var_from_sym, write_object_renaming)
1954 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1955 (maybe_overload): Update.
1956 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1957
5809fbf2
TT
19582021-04-15 Tom Tromey <tom@tromey.com>
1959 Andrew Burgess <andrew.burgess@embecosm.com>
1960
1961 * NEWS: Add entry.
1962 * main.c (captured_main_1): Call check_quiet_mode.
1963 * top.c (startup_quiet): New global.
1964 (check_quiet_mode): New function.
1965 (show_startup_quiet): New function.
1966 (init_main): Register new command.
1967 * top.h (check_quiet_mode): Declare.
1968
92e4e97a
AB
19692021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1970
1971 PR cli/25956
1972 * NEWS: Mention new early init files and command line options.
1973 * config.in: Regenerate.
1974 * configure: Regenerate.
1975 * configure.ac: Define GDBEARLYINIT.
1976 * main.c (get_earlyinit_files): New function.
1977 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1978 CMDARG_EARLYINIT_COMMAND.
1979 (captured_main_1): Add support for new command line flags, and for
1980 processing startup files.
1981 (print_gdb_help): Include startup files in the output.
1982
54b4dcc5
AB
19832021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1986 (relocate_file_path_maybe_in_datadir): ...this.
1987 (class gdb_initfile_finder): New class.
1988 (get_init_files): Now uses gdb_initfile_finder.
1989 (print_gdb_help): Print 'None found' when there are no init files.
1990
34dc0f95
TBA
19912021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1992
1993 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1994 corresponding child of the abstract DIE when iterating the
1995 children of the concrete DIE.
1996
329534fd
TV
19972021-04-13 Tom de Vries <tdevries@suse.de>
1998
1999 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2000 type to regoff_t *.
2001
d9d2ef05
LM
20022021-04-13 Luis Machado <luis.machado@linaro.org>
2003
2004 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2005 hex values.
2006
c8a37944
WS
20072021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2008
2009 * rs6000-tdep.c: Add support for single-stepping of
2010 prefixed instructions.
2011
b722acca
WS
20122021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2013
e3d528d7
WS
2014 PR gdb/27525
2015 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2016 handle the addpcis/lnia instruction.
2017
20182021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2019
b722acca
WS
2020 * MAINTAINERS (Write After Approval): Add myself.
2021
6ba4cb84
CL
20222021-4-12 Carl Love <cel@us.ibm.com>
2023
2024 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2025 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2026 float128.
2027
d4717483
SM
20282021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2029
2030 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2031 * nat/windows-nat.h: Likewise.
2032
b3885679
EZ
20332021-04-10 Eli Zaretskii <eliz@gnu.org>
2034
2035 * windows-nat.c (windows_nat::handle_load_dll): Call
2036 windows_add_dll if get_image_name failed to glean the name of the
2037 DLL by using the lpImageName pointer.
2038 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2039 (windows_add_dll): Now does what windows_add_all_dlls did before,
2040 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2041 specifies the address where the DLL was loaded into the inferior,
2042 and looks for the single DLL loaded at that address.
2043
1ef6a596
LM
20442021-04-09 Luis Machado <luis.machado@linaro.org>
2045
2046 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2047
83a559f7
DQ
20482021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2049
2050 * darwin-nat.c (darwin_nat_target::resume): Remove status
2051 variable.
2052
16e311ab
FW
20532021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2054
2055 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2056 prologue end for Intel compilers.
2057 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2058 * producer.c (producer_is_icc_ge_19): New function.
2059 * producer.h (producer_is_icc_ge_19): New declaration.
2060
fbb3bcfc
FW
20612021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2062
2063 * producer.c: (producer_is_icc): Update for new version scheme.
2064 (producer_parsing_tests): Update names and expected results.
2065 * producer.h: (producer_is_icc): Update comment accordingly.
2066
e97007b6
SM
20672021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 * target.h (struct target_ops) <follow_fork>: Return void.
2070 (target_follow_fork): Likewise.
2071 * target.c (default_follow_fork): Likewise.
2072 (target_follow_fork): Likewise.
2073 * infrun.c (follow_fork_inferior): Adjust.
2074 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2075 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2076 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2077 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2078 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2079 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2080 * remote.c (class remote_target) <follow_fork>: Likewise.
2081 (remote_target::follow_fork): Likewise.
2082 * target-delegates.c: Re-generate.
2083
dc2b480f
WP
20842021-04-07 Weimin Pan <weimin.pan@oracle.com>
2085
2086 * ctfread.c (fetch_tid_type): New function, use throughout file.
2087 (read_forward_type): New function.
2088 (read_type_record): Call read_forward_type.
2089
0a703a4c
AB
20902021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2091
2092 * f-exp.h (class fortran_structop_operation): New class.
2093 * f-exp.y (exp): Create fortran_structop_operation instead of the
2094 generic structop_operation.
2095 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2096 expression as EVAL_NORMAL if the result type was dynamic so we can
2097 extract the actual array bounds.
2098 (fortran_structop_operation::evaluate): New function.
2099
21002021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2101
2102 * eval.c (evaluate_subexp_standard): Remove
2103 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2104 STRUCTOP_PTR.
2105
30ab3586
AB
21062021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2107
2108 * valops.c (value_cast): Call value_deeply_equal before performing
2109 any cast.
2110
5e18990f
AB
21112021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2112
2113 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2114 the function.
2115
56d467f4
CT
21162021-04-07 Caroline Tice <cmtice@google.com>
2117
2118 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2119 the search paths used resolve relative location of .dwo file.
2120
1fd999d9
AB
21212021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2122
2123 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2124 assert.
2125 (dwarf2_section_info::get_file_name): Add an assert.
2126 (dwarf2_section_info::read_string): Display a minimal, sane error
2127 when the dwarf2_section_info is not associated with a bfd section.
2128
79c02443
AB
21292021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2130
2131 * top.c (staged_gdb_datadir): Update comment.
2132 (set_gdb_datadir): Copy the value of gdb_datadir back into
2133 staged_datadir.
2134 (init_main): Initialise staged_gdb_datadir.
2135
340d00fb
TV
21362021-04-06 Tom de Vries <tdevries@suse.de>
2137
2138 PR breakpoints/25884
2139 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2140 stepping range.
2141
d811a7cf
TV
21422021-04-06 Tom de Vries <tdevries@suse.de>
2143
2144 PR tui/27680
2145 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2146 to style.parse.
2147
306b445a
SM
21482021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2149
2150 * avr-tdep.c (avr_frame_unwind_cache): Use
2151 trad_frame_saved_reg::is_addr.
2152
9161c89a
SM
21532021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2154
2155 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2156 adjust callers.
2157
0072c873
SM
21582021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2159
2160 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2161 objfile parameter for objfile_per_bfd_storage, adjust callers.
2162 (struct standard_psymtab) <standard_psymtab>: Likewise.
2163 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2164 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2165 * ctfread.c (struct ctf_psymtab): Likewise.
2166 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2167 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2168 (dwarf2_create_include_psymtab): Likewise.
2169 * objfiles.h (struct objfile_per_bfd_storage)
2170 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2171 <get_bfd>: New method.
2172 <m_bfd>: New field.
2173 * objfiles.c (get_objfile_bfd_data): Adjust.
2174
9984dd99
SM
21752021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2176
2177 * psymtab.c (partial_symtab::partial_symtab): Change
2178 last_objfile_name to be an std::string.
2179 * symfile.c (allocate_symtab): Likewise.
2180
4a4f97c1
SM
21812021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2182
2183 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2184 methods.
2185 (struct objfile) <intern>: Use
2186 objfile::objfile_per_bfd_storage::intern.
2187
0672875f
SM
21882021-04-01 Simon Marchi <simon.marchi@efficios.com>
2189
2190 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2191 with type::is_flag_enum.
2192
9902b327
SM
21932021-04-01 Simon Marchi <simon.marchi@efficios.com>
2194
2195 * gdbtypes.h (struct type) <is_flag_enum,
2196 set_is_flag_enum>: New methods.
2197 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2198 write call sites to use type::set_is_flag_enum.
2199
3bc440a2
SM
22002021-04-01 Simon Marchi <simon.marchi@efficios.com>
2201
2202 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2203 with type::is_declared_class.
2204
aa70e35c
SM
22052021-04-01 Simon Marchi <simon.marchi@efficios.com>
2206
2207 * gdbtypes.h (struct type) <is_declared_class,
2208 set_is_declared_class>: New methods.
2209 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2210 write call sites to use type::set_is_declared_class.
2211
bfb9f5dc
BS
22122021-02-28 Boris Staletic <boris.staletic@gmail.com>
2213
2214 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2215 to avoid deprecation warnings.
2216
733f5eea
ML
22172021-04-01 Martin Liska <mliska@suse.cz>
2218
2219 * cp-name-parser.y: Use startswith instead of strncmp.
2220 * m2-exp.y: Likewise.
2221 * macroexp.c (substitute_args): Likewise.
2222 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2223 * rust-exp.y: Likewise.
2224
af82f89d
TT
22252021-03-31 Tom Tromey <tom@tromey.com>
2226
2227 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2228 with dw2_map_matching_symbols.
2229 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2230 dw2_expand_symtabs_matching.
2231
3570682a
TT
22322021-03-31 Tom Tromey <tromey@adacore.com>
2233
2234 * dwarf2/stringify.h: Fix typo.
2235
8a91fbdf
SM
22362021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2237
2238 PR gdb/27541
2239 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2240 with objfiles using READNOW.
2241
9f67fc59
TT
22422021-03-29 Tom Tromey <tromey@adacore.com>
2243
2244 * top.c (check_frame_language_change): Update.
2245 * language.c (language_info): Remove parameter.
2246 * language.h (language_info): Remove parameter.
2247
9b8ffbf4
LM
22482021-03-29 Luis Machado <luis.machado@linaro.org>
2249
2250 * compile/compile.c (get_args): Don't add empty argv entries.
2251
25b48839
RO
22522021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2253
2254 gdb:
2255 * procfs.c (procfs_target::attach): Define inf.
2256 Use it.
2257 (procfs_target::create_inferior): Likewise.
2258
edc02ceb
TT
22592021-03-28 Tom Tromey <tom@tromey.com>
2260
2261 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2262 (elf_symfile_read): Simplify.
2263 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2264 (make_lazy_dwarf_reader): New function.
2265 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2266 (dwarf2_initialize_objfile): Return void. Remove index_kind
2267 parameter. Push on 'qf' list.
2268 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2269 type. Remove 'index_kind' parameter.
2270 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2271
6e23d91a
TT
22722021-03-27 Tom Tromey <tom@tromey.com>
2273
2274 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2275
594b8948
TT
22762021-03-27 Tom Tromey <tom@tromey.com>
2277
2278 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2279
efe1ecd8
LS
22802021-03-26 Lancelot Six <lsix@lancelotsix.com>
2281
2282 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2283 rid of 'local'.
2284
f4655dee
TT
22852021-03-26 Tom Tromey <tom@tromey.com>
2286
2287 * symtab.c (struct output_source_filename_data): Add 'output'
2288 method and operator().
2289 (output_source_filename_data::output): Rename from
2290 output_source_filename.
2291 (output_partial_symbol_filename): Remove.
2292 (info_sources_command): Update.
2293 (struct add_partial_filename_data): Add operator().
2294 (add_partial_filename_data::operator()): Rename from
2295 maybe_add_partial_symtab_filename.
2296 (make_source_files_completion_list): Update.
2297 * symfile.c (quick_symbol_functions): Update.
2298 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2299 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2300 'need_fullname'. Remove 'data' parameter.
2301 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2302 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2303 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2304 Change type of 'fun' and 'need_fullname'. Remove 'data'
2305 parameter.
2306 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2307 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2308 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2309 parameter.
2310 (mi_cmd_file_list_exec_source_files): Update.
2311 * dwarf2/read.c
2312 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2313
2315bb2d
TT
23142021-03-26 Tom Tromey <tom@tromey.com>
2315
2316 * ada-lang.c (struct match_data): Add operator().
2317 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2318 (callback): Remove 'callback'.
2319
e2cd5ca4
TT
23202021-03-26 Tom Tromey <tom@tromey.com>
2321
2322 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2323 call make_ignore_params once.
2324
cd43f63e
TT
23252021-03-26 Tom Tromey <tom@tromey.com>
2326
2327 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2328 "user" check.
2329
b4b1a226
SM
23302021-03-26 Simon Marchi <simon.marchi@efficios.com>
2331 Pedro Alves <pedro@palves.net>
2332
2333 * async-event.c: Include "infrun.h".
2334 (async_event_handler_marked): New.
2335 * async-event.h (async_event_handler_marked): Declare.
2336 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2337 inferior before calling target method. Don't commit-resumed if
2338 target_has_pending_events is true.
2339 * remote.c (remote_target::has_pending_events): New.
2340 * target-delegates.c: Regenerate.
2341 * target.c (target_has_pending_events): New.
2342 * target.h (target_ops::has_pending_events): New target method.
2343 (target_has_pending_events): New.
2344
1192f124
SM
23452021-03-26 Simon Marchi <simon.marchi@efficios.com>
2346 Pedro Alves <pedro@palves.net>
2347
2348 * infcmd.c (run_command_1, attach_command, detach_command)
2349 (interrupt_target_1): Use scoped_disable_commit_resumed.
2350 * infrun.c (do_target_resume): Remove
2351 target_commit_resume call.
2352 (commit_resume_all_targets): Remove.
2353 (maybe_set_commit_resumed_all_targets): New.
2354 (maybe_call_commit_resumed_all_targets): New.
2355 (enable_commit_resumed): New.
2356 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2357 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2358 (scoped_disable_commit_resumed::reset)
2359 (scoped_disable_commit_resumed::reset_and_commit)
2360 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2361 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2362 New.
2363 (proceed): Use scoped_disable_commit_resumed and
2364 maybe_call_commit_resumed_all_targets.
2365 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2366 * infrun.h (struct scoped_disable_commit_resumed): New.
2367 (maybe_call_commit_resumed_all_process_targets): New.
2368 (struct scoped_enable_commit_resumed): New.
2369 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2370 * process-stratum-target.h (class process_stratum_target):
2371 <commit_resumed_state>: New.
2372 * record-full.c (record_full_wait_1): Change commit_resumed_state
2373 around calling commit_resumed.
2374 * remote.c (class remote_target) <commit_resume>: Rename to...
2375 <commit_resumed>: ... this.
2376 (struct stop_reply): Move up.
2377 (remote_target::commit_resume): Rename to...
2378 (remote_target::commit_resumed): ... this. Check if there is any
2379 thread pending vCont resume.
2380 (remote_target::remote_stop_ns): Generate stop replies for resumed
2381 but pending vCont threads.
2382 (remote_target::wait_ns): Add gdb_assert.
2383 * target-delegates.c: Regenerate.
2384 * target.c (target_wait, target_resume): Assert that the current
2385 process_stratum target isn't in commit-resumed state.
2386 (defer_target_commit_resume): Remove.
2387 (target_commit_resume): Remove.
2388 (target_commit_resumed): New.
2389 (make_scoped_defer_target_commit_resume): Remove.
2390 (target_stop): Assert that the current process_stratum target
2391 isn't in commit-resumed state.
2392 * target.h (struct target_ops) <commit_resume>: Rename to ...
2393 <commit_resumed>: ... this.
2394 (target_commit_resume): Remove.
2395 (target_commit_resumed): New.
2396 (make_scoped_defer_target_commit_resume): Remove.
2397 * top.c (wait_sync_command_done): Use
2398 scoped_enable_commit_resumed.
2399
e5b9b39f
PA
24002021-03-26 Pedro Alves <pedro@palves.net>
2401
2402 * target.c (target_always_non_stop_p): Also check whether the
2403 target can async.
2404
bab287cd
TT
24052021-03-26 Tom Tromey <tom@tromey.com>
2406
2407 * dwarf2/read.c (dwarf2_read_debug_names)
2408 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2409 (dw2_debug_names_iterator::next, create_type_unit_group):
2410 Simplify.
2411
eff4f69d
PA
24122021-03-25 Pedro Alves <pedro@palves.net>
2413
2414 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2415 around setting the breakpoint.
2416
323fd5b9
PA
24172021-03-25 Pedro Alves <pedro@palves.net>
2418
2419 * remote.c
2420 (remote_target::check_pending_events_prevent_wildcard_vcont):
2421 Check whether the event's ptid is not null_ptid before looking up
2422 the corresponding inferior.
2423
d3cbca38
CD
24242021-03-24 Changbin Du <changbin.du@gmail.com>
2425
2426 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2427 read_code.
2428
328d42d8
SM
24292021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2430
2431 * target.h (current_top_target): Remove, make callers use the
2432 current inferior instead.
2433 * target.c (current_top_target): Remove.
2434
d777bf0d
SM
24352021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2436
2437 * target.h (target_shortname): Change to function declaration.
2438 (target_longname): Likewise.
2439 (target_attach_no_wait): Likewise.
2440 (target_post_attach): Likewise.
2441 (target_prepare_to_store): Likewise.
2442 (target_supports_enable_disable_tracepoint): Likewise.
2443 (target_supports_string_tracing): Likewise.
2444 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2445 (target_supports_dumpcore): Likewise.
2446 (target_dumpcore): Likewise.
2447 (target_can_run_breakpoint_commands): Likewise.
2448 (target_files_info): Likewise.
2449 (target_post_startup_inferior): Likewise.
2450 (target_insert_fork_catchpoint): Likewise.
2451 (target_remove_fork_catchpoint): Likewise.
2452 (target_insert_vfork_catchpoint): Likewise.
2453 (target_remove_vfork_catchpoint): Likewise.
2454 (target_insert_exec_catchpoint): Likewise.
2455 (target_remove_exec_catchpoint): Likewise.
2456 (target_set_syscall_catchpoint): Likewise.
2457 (target_rcmd): Likewise.
2458 (target_can_lock_scheduler): Likewise.
2459 (target_can_async_p): Likewise.
2460 (target_is_async_p): Likewise.
2461 (target_execution_direction): Likewise.
2462 (target_extra_thread_info): Likewise.
2463 (target_pid_to_exec_file): Likewise.
2464 (target_thread_architecture): Likewise.
2465 (target_find_memory_regions): Likewise.
2466 (target_make_corefile_notes): Likewise.
2467 (target_get_bookmark): Likewise.
2468 (target_goto_bookmark): Likewise.
2469 (target_stopped_by_watchpoint): Likewise.
2470 (target_stopped_by_sw_breakpoint): Likewise.
2471 (target_supports_stopped_by_sw_breakpoint): Likewise.
2472 (target_stopped_by_hw_breakpoint): Likewise.
2473 (target_supports_stopped_by_hw_breakpoint): Likewise.
2474 (target_have_steppable_watchpoint): Likewise.
2475 (target_can_use_hardware_watchpoint): Likewise.
2476 (target_region_ok_for_hw_watchpoint): Likewise.
2477 (target_can_do_single_step): Likewise.
2478 (target_insert_watchpoint): Likewise.
2479 (target_remove_watchpoint): Likewise.
2480 (target_insert_hw_breakpoint): Likewise.
2481 (target_remove_hw_breakpoint): Likewise.
2482 (target_can_accel_watchpoint_condition): Likewise.
2483 (target_can_execute_reverse): Likewise.
2484 (target_get_ada_task_ptid): Likewise.
2485 (target_filesystem_is_local): Likewise.
2486 (target_trace_init): Likewise.
2487 (target_download_tracepoint): Likewise.
2488 (target_can_download_tracepoint): Likewise.
2489 (target_download_trace_state_variable): Likewise.
2490 (target_enable_tracepoint): Likewise.
2491 (target_disable_tracepoint): Likewise.
2492 (target_trace_start): Likewise.
2493 (target_trace_set_readonly_regions): Likewise.
2494 (target_get_trace_status): Likewise.
2495 (target_get_tracepoint_status): Likewise.
2496 (target_trace_stop): Likewise.
2497 (target_trace_find): Likewise.
2498 (target_get_trace_state_variable_value): Likewise.
2499 (target_save_trace_data): Likewise.
2500 (target_upload_tracepoints): Likewise.
2501 (target_upload_trace_state_variables): Likewise.
2502 (target_get_raw_trace_data): Likewise.
2503 (target_get_min_fast_tracepoint_insn_len): Likewise.
2504 (target_set_disconnected_tracing): Likewise.
2505 (target_set_circular_trace_buffer): Likewise.
2506 (target_set_trace_buffer_size): Likewise.
2507 (target_set_trace_notes): Likewise.
2508 (target_get_tib_address): Likewise.
2509 (target_set_permissions): Likewise.
2510 (target_static_tracepoint_marker_at): Likewise.
2511 (target_static_tracepoint_markers_by_strid): Likewise.
2512 (target_traceframe_info): Likewise.
2513 (target_use_agent): Likewise.
2514 (target_can_use_agent): Likewise.
2515 (target_augmented_libraries_svr4_read): Likewise.
2516 (target_log_command): Likewise.
2517 * target.c (target_shortname): New.
2518 (target_longname): New.
2519 (target_attach_no_wait): New.
2520 (target_post_attach): New.
2521 (target_prepare_to_store): New.
2522 (target_supports_enable_disable_tracepoint): New.
2523 (target_supports_string_tracing): New.
2524 (target_supports_evaluation_of_breakpoint_conditions): New.
2525 (target_supports_dumpcore): New.
2526 (target_dumpcore): New.
2527 (target_can_run_breakpoint_commands): New.
2528 (target_files_info): New.
2529 (target_post_startup_inferior): New.
2530 (target_insert_fork_catchpoint): New.
2531 (target_remove_fork_catchpoint): New.
2532 (target_insert_vfork_catchpoint): New.
2533 (target_remove_vfork_catchpoint): New.
2534 (target_insert_exec_catchpoint): New.
2535 (target_remove_exec_catchpoint): New.
2536 (target_set_syscall_catchpoint): New.
2537 (target_rcmd): New.
2538 (target_can_lock_scheduler): New.
2539 (target_can_async_p): New.
2540 (target_is_async_p): New.
2541 (target_execution_direction): New.
2542 (target_extra_thread_info): New.
2543 (target_pid_to_exec_file): New.
2544 (target_thread_architecture): New.
2545 (target_find_memory_regions): New.
2546 (target_make_corefile_notes): New.
2547 (target_get_bookmark): New.
2548 (target_goto_bookmark): New.
2549 (target_stopped_by_watchpoint): New.
2550 (target_stopped_by_sw_breakpoint): New.
2551 (target_supports_stopped_by_sw_breakpoint): New.
2552 (target_stopped_by_hw_breakpoint): New.
2553 (target_supports_stopped_by_hw_breakpoint): New.
2554 (target_have_steppable_watchpoint): New.
2555 (target_can_use_hardware_watchpoint): New.
2556 (target_region_ok_for_hw_watchpoint): New.
2557 (target_can_do_single_step): New.
2558 (target_insert_watchpoint): New.
2559 (target_remove_watchpoint): New.
2560 (target_insert_hw_breakpoint): New.
2561 (target_remove_hw_breakpoint): New.
2562 (target_can_accel_watchpoint_condition): New.
2563 (target_can_execute_reverse): New.
2564 (target_get_ada_task_ptid): New.
2565 (target_filesystem_is_local): New.
2566 (target_trace_init): New.
2567 (target_download_tracepoint): New.
2568 (target_can_download_tracepoint): New.
2569 (target_download_trace_state_variable): New.
2570 (target_enable_tracepoint): New.
2571 (target_disable_tracepoint): New.
2572 (target_trace_start): New.
2573 (target_trace_set_readonly_regions): New.
2574 (target_get_trace_status): New.
2575 (target_get_tracepoint_status): New.
2576 (target_trace_stop): New.
2577 (target_trace_find): New.
2578 (target_get_trace_state_variable_value): New.
2579 (target_save_trace_data): New.
2580 (target_upload_tracepoints): New.
2581 (target_upload_trace_state_variables): New.
2582 (target_get_raw_trace_data): New.
2583 (target_get_min_fast_tracepoint_insn_len): New.
2584 (target_set_disconnected_tracing): New.
2585 (target_set_circular_trace_buffer): New.
2586 (target_set_trace_buffer_size): New.
2587 (target_set_trace_notes): New.
2588 (target_get_tib_address): New.
2589 (target_set_permissions): New.
2590 (target_static_tracepoint_marker_at): New.
2591 (target_static_tracepoint_markers_by_strid): New.
2592 (target_traceframe_info): New.
2593 (target_use_agent): New.
2594 (target_can_use_agent): New.
2595 (target_augmented_libraries_svr4_read): New.
2596 (target_log_command): New.
2597 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2598 * infrun.c (set_schedlock_func): Adjust.
2599 * mi/mi-main.c (exec_reverse_continue): Adjust.
2600 * reverse.c (exec_reverse_once): Adjust.
2601 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2602 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2603 * remote-sim.c (gdbsim_target::detach): Adjust.
2604 (gdbsim_target::files_info): Adjust.
2605
b64f703b
TT
26062021-03-24 Tom Tromey <tom@tromey.com>
2607
2608 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2609 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2610 (check_match, dw2_expand_symtabs_matching)
2611 (dwarf2_debug_names_index::map_matching_symbols)
2612 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2613
68f115f8
KS
26142021-03-24 Keith Seitz <keiths@redhat.com>
2615
2616 * compile/compile-cplus-types.c
2617 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2618 thinko.
2619
41c0087b
SM
26202021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2621
2622 * gdbarch.sh (gdbarch_data_registry): Make static.
2623 * gdbarch.c: Re-generate.
2624
ce192338
LM
26252021-03-24 Luis Machado <luis.machado@linaro.org>
2626
2627 * NEWS: Mention memory tagging changes.
2628
bef382e6
LM
26292021-03-24 Luis Machado <luis.machado@linaro.org>
2630
2631 * printcmd.c (decode_format): Handle the 'm' modifier.
2632 (do_examine): Display allocation tags when required/supported.
2633 (should_validate_memtags): New function.
2634 (print_command_1): Display memory tag mismatches.
2635 * valprint.c (show_memory_tag_violations): New function.
2636 (value_print_option_defs): Add new option "memory-tag-violations".
2637 (user_print_options) <memory_tag_violations>: Initialize to 1.
2638 * valprint.h (struct format_data) <print_tags>: New field.
2639 (value_print_options) <memory_tag_violations>: New field.
2640
48136e00
LM
26412021-03-24 Luis Machado <luis.machado@linaro.org>
2642
2643 * printcmd.c: Include gdbsupport/rsp-low.h.
2644 (memory_tag_list): New static global.
2645 (process_print_command_args): Factored out of
2646 print_command_1.
2647 (print_command_1): Use process_print_command_args.
2648 (show_addr_not_tagged, show_memory_tagging_unsupported)
2649 (memory_tag_command, memory_tag_print_tag_command)
2650 (memory_tag_print_logical_tag_command)
2651 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2652 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2653 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2654 functions.
2655 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2656
ffcc2a15
LM
26572021-03-24 Luis Machado <luis.machado@linaro.org>
2658
2659 * aarch64-linux-tdep.c
2660 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2661 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2662
cf44c9fa
LM
26632021-03-24 Luis Machado <luis.machado@linaro.org>
2664
2665 * aarch64-linux-tdep.c
2666 (aarch64_linux_report_signal_info): New function.
2667 (aarch64_linux_init_abi): Register
2668 aarch64_linux_report_signal_info as the report_signal_info hook.
2669 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2670 (SEGV_MTESERR): Define.
2671
b4a7d4fc
LM
26722021-03-24 Luis Machado <luis.machado@linaro.org>
2673
2674 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2675 (aarch64_linux_ltag_tests): New function.
2676 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2677
c7782e50
LM
26782021-03-24 Luis Machado <luis.machado@linaro.org>
2679
2680 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2681 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2682 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2683 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2684 functions.
2685 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2686 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2687 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2688 (aarch64_linux_get_ltag): New functions.
2689 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2690 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2691 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2692 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2693
1e735120
LM
26942021-03-24 Luis Machado <luis.machado@linaro.org>
2695
2696 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2697 bit.
2698 (struct smaps_data): New struct.
2699 (decode_vmflags): Handle the 'mt' flag.
2700 (parse_smaps_data): New function, refactored from
2701 linux_find_memory_regions_full.
2702 (linux_address_in_memtag_page): New function.
2703 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2704 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2705
93e447c6
LM
27062021-03-24 Luis Machado <luis.machado@linaro.org>
2707
2708 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2709 instead of char arrays.
2710
4601818e
LM
27112021-03-24 Luis Machado <luis.machado@linaro.org>
2712
2713 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2714 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2715 nat/aarch64-mte-linux-ptrace.h.
2716 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2717 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2718 override.
2719 <fetch_memtags>: New method override.
2720 <store_memtags>: New method override.
2721 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2722 (aarch64_linux_nat_target::fetch_memtags): New method.
2723 (aarch64_linux_nat_target::store_memtags): New method.
2724 * arch/aarch64-mte-linux.c: New file.
2725 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2726 (AARCH64_MTE_GRANULE_SIZE): Define.
2727 (aarch64_memtag_type): New enum.
2728 (aarch64_mte_get_tag_granules): New prototype.
2729 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2730 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2731 * nat/aarch64-mte-linux-ptrace.c: New file.
2732 * nat/aarch64-mte-linux-ptrace.h: New file.
2733
3f3bd8b8
LM
27342021-03-24 Luis Machado <luis.machado@linaro.org>
2735
2736 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2737 * nat/aarch64-mte-linux-ptrace.h: New file.
2738
5e984dbf
LM
27392021-03-24 Luis Machado <luis.machado@linaro.org>
2740
2741 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2742 (store_mteregs_to_thread): New function.
2743 (aarch64_linux_nat_target::fetch_registers): Update to call
2744 fetch_mteregs_from_thread.
2745 (aarch64_linux_nat_target::store_registers): Update to call
2746 store_mteregs_to_thread.
2747 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2748 (aarch64_cannot_store_register): Handle MTE registers.
2749 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2750 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2751 <has_mte>: New method.
2752 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2753
c1bd443b
LM
27542021-03-24 Luis Machado <luis.machado@linaro.org>
2755
2756 * aarch64-linux-nat.c
2757 (aarch64_linux_nat_target::read_description): Take MTE flag into
2758 account.
2759 Slight refactor to hwcap flag checking.
2760 * aarch64-linux-tdep.c
2761 (aarch64_linux_core_read_description): Likewise.
2762 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2763 MTE.
2764 (aarch64_read_description): Add mte_p parameter and update to use it.
2765 Update the documentation.
2766 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2767 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2768 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2769 (aarch64_create_target_description): Add mte_p parameter and update
2770 the code to use it.
2771 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2772 parameter.
2773 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2774 * features/aarch64-mte.c: New file, generated.
2775 * features/aarch64-mte.xml: New file.
2776
04245125
LM
27772021-03-24 Luis Machado <luis.machado@linaro.org>
2778
2779 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2780 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2781 * aarch64-linux-tdep.c: Likewise
2782 * arch/aarch64-mte-linux.h: New file.
2783
754487e2
LM
27842021-03-24 Luis Machado <luis.machado@linaro.org>
2785
2786 * remote: Include gdbsupport/selftest.h.
2787 (test_memory_tagging_functions): New function.
2788 (_initialize_remote): Register test_memory_tagging_functions.
2789
2c2e7f87
LM
27902021-03-24 Luis Machado <luis.machado@linaro.org>
2791
2792 * remote.c (PACKET_memory_tagging_feature): New enum.
2793 (remote_memory_tagging_p): New function.
2794 (remote_protocol_features): New "memory-tagging" entry.
2795 (remote_target::remote_query_supported): Handle memory tagging
2796 support.
2797 (remote_target::supports_memory_tagging): Implement.
2798 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2799 (create_store_memtags_request): New functions.
2800 (remote_target::fetch_memtags): Implement.
2801 (remote_target::store_memtags): Implement.
2802 (_initialize_remote): Add new "memory-tagging-feature"
2803 config command.
2804
c193949e
LM
28052021-03-24 Luis Machado <luis.machado@linaro.org>
2806
2807 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2808 (default_memtag_matches_p, default_set_memtags)
2809 (default_get_memtag): New functions.
2810 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2811 (default_memtag_matches_p, default_set_memtags)
2812 (default_get_memtag): New prototypes.
2813 * gdbarch.c: Regenerate.
2814 * gdbarch.h: Regenerate.
2815 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2816 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2817 (enum memtag_type): New enum.
2818
dbe692af
LM
28192021-03-24 Luis Machado <luis.machado@linaro.org>
2820
2821 * remote.c (remote_target) <supports_memory_tagging>: New method
2822 override.
2823 <fetch_memtags>: New method override.
2824 <store_memtags>: New method override.
2825 (remote_target::supports_memory_tagging): New method.
2826 (remote_target::fetch_memtags): New method.
2827 (remote_target::store_memtags): New method.
2828 * target-delegates.c: Regenerate.
2829 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2830 method.
2831 <fetch_memtags>: New virtual method.
2832 <store_memtags>: New virtual method.
2833 (target_supports_memory_tagging): Define.
2834 (target_fetch_memtags): Define.
2835 (target_store_memtags): Define.
2836 * target-debug.h (target_debug_print_size_t)
2837 (target_debug_print_const_gdb_byte_vector_r)
2838 (target_debug_print_gdb_byte_vector_r): New functions.
2839
66848ebc
SM
28402021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2841
2842 * target.h (target_longname): Remove.
2843
c8fbd44a
SM
28442021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2845
2846 * target.h (target_is_pushed): Remove, update callers to use
2847 inferior::target_is_pushed instead.
2848 * target.c (target_is_pushed): Remove.
2849
02980c56
SM
28502021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2851
2852 * target.h (push_target): Remove, update callers to use
2853 inferior::push_target.
2854 * target.c (push_target): Remove.
2855 * inferior.h (class inferior) <push_target>: New overload.
2856
fadf6add
SM
28572021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2858
2859 * target.h (unpush_target): Remove, update all callers
2860 to use `inferior::unpush_target` instead.
2861 (struct target_unpusher) <operator()>: Just declare.
2862 * target.c (unpush_target): Remove.
2863 (target_unpusher::operator()): New.
2864
702cf3f5
AB
28652021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2866
2867 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2868 error.
2869 (process_full_comp_unit): Validate the top-level tag before
2870 processing the first DIE.
2871 (read_func_scope): Ensure we have a valid builder.
2872
46fec642
AB
28732021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * objc-lang.c (objc_demangle): Renamed to
2876 objc_language::demangle_symbol, and moved later in the file.
2877 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2878 member function.
2879 (objc_language::demangle_symbol): Defined outside of class
2880 declaration. The definition is the old objc_demangle with NULL
2881 changed to nullptr, and if conditions relating to nullptr pointers
2882 or null character checks made explicit.
2883 * objc-lang.h (objc_demangle): Delete declaration.
2884
08dedd66
ML
28852021-03-22 Martin Liska <mliska@suse.cz>
2886
2887 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2888 (_initialize_arm_tdep): Likewise.
2889
eb36a3eb
TT
28902021-03-20 Tom Tromey <tom@tromey.com>
2891
2892 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2893 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2894 * psymtab.h (make_psymbol_functions): Don't declare.
2895 * psymtab.c (make_psymbol_functions): Remove.
2896 (maintenance_print_psymbols): Update.
2897 * psympriv.h (struct psymbol_functions): Add no-argument
2898 constructor.
2899 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2900 <partial_symtabs>: Remove.
2901 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2902 * elfread.c (read_partial_symbols): Update.
2903 (elf_symfile_read): Remove check for existing partial symbols.
2904 Don't clear "qf".
2905 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2906 partial symbols.
2907 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2908 partial symtabs.
2909 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2910 parameter.
2911 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2912 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2913
e1114590
TT
29142021-03-20 Tom Tromey <tom@tromey.com>
2915
2916 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2917 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2918 * symfile-debug.c (objfile::has_partial_symbols)
2919 (objfile::find_last_source_symtab)
2920 (objfile::forget_cached_source_info)
2921 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2922 (objfile::print_stats, objfile::dump)
2923 (objfile::expand_symtabs_for_function)
2924 (objfile::expand_all_symtabs)
2925 (objfile::expand_symtabs_with_fullname)
2926 (objfile::map_matching_symbols)
2927 (objfile::expand_symtabs_matching)
2928 (objfile::find_pc_sect_compunit_symtab)
2929 (objfile::map_symbol_filenames)
2930 (objfile::find_compunit_symtab_by_address)
2931 (objfile::lookup_global_symbol_language)
2932 (objfile::require_partial_symbols): Update.
2933 * psymtab.c (maintenance_print_psymbols)
2934 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2935 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2936 * objfiles.c (objfile_relocate1): Update.
2937 * elfread.c (elf_symfile_read): Update.
2938
de909f0b
TT
29392021-03-20 Tom Tromey <tom@tromey.com>
2940
2941 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2942
caf8c1e5
TT
29432021-03-20 Tom Tromey <tom@tromey.com>
2944
2945 * psymtab.c (psymbol_functions::count_psyms): Rename.
2946 (psymbol_functions::print_stats): Update.
2947 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2948 method.
2949
3aa31ce7
TT
29502021-03-20 Tom Tromey <tom@tromey.com>
2951
2952 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2953 (psymbol_functions::find_pc_sect_psymtab): Rename.
2954 (psymbol_functions::find_pc_sect_compunit_symtab)
2955 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2956 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2957 Declare new method.
2958 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2959
7b249e47
TT
29602021-03-20 Tom Tromey <tom@tromey.com>
2961
2962 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2963 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2964 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2965 parameter.
2966 (add_psymbol_to_bcache): Remove.
2967 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2968 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2969 Likewise.
2970 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2971 <add_psymbol>: Likewise.
2972 (standard_psymtab, legacy_psymtab): Likewise.
2973 * mdebugread.c (parse_partial_symbols): Update.
2974 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2975 (handle_psymbol_enumerators): Update.
2976 (new_psymtab): Add partial_symtabs parameter.
2977 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2978 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2979 parameter.
2980 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2981 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2982 Update.
2983 * dbxread.c (read_dbx_symtab): Update.
2984 (start_psymtab): Add partial_symtabs parameter.
2985 (dbx_end_psymtab): Update.
2986 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2987 (ctf_psymtab): Add partial_symtabs parameter.
2988 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2989 Update.
2990 (scan_partial_symbols): Add partial_symtabs parameter.
2991 (scan_partial_symbols, elfctf_build_psymtabs)
2992 (ctf_psymtab_add_enums): Update.
2993
d1eef86d
TT
29942021-03-20 Tom Tromey <tom@tromey.com>
2995
2996 * symfile.c (read_symbols): Use objfile method.
2997 * symfile-debug.c (objfile::require_partial_symbols): New method.
2998 * psymtab.h (require_partial_symbols): Don't declare.
2999 * psymtab.c (require_partial_symbols): Use objfile method. Now
3000 static.
3001 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3002 (psymbol_functions::lookup_symbol)
3003 (psymbol_functions::lookup_global_symbol_language)
3004 (psymbol_functions::find_last_source_symtab)
3005 (psymbol_functions::forget_cached_source_info)
3006 (psymbol_functions::print_stats)
3007 (psymbol_functions::expand_symtabs_for_function)
3008 (psymbol_functions::expand_all_symtabs)
3009 (psymbol_functions::expand_symtabs_with_fullname)
3010 (psymbol_functions::map_symbol_filenames)
3011 (psymbol_functions::map_matching_symbols)
3012 (psymbol_functions::expand_symtabs_matching)
3013 (psymbol_functions::find_compunit_symtab_by_address)
3014 (maintenance_print_psymbols, maintenance_info_psymtabs)
3015 (maintenance_check_psymtabs): Update.
3016 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3017 new method.
3018
eb00e468
TT
30192021-03-20 Tom Tromey <tom@tromey.com>
3020
3021 * xcoffread.c (xcoff_sym_fns): Update.
3022 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3023 * symfile-debug.c (objfile::has_partial_symbols): Use
3024 can_lazily_read_symbols.
3025 (debug_sym_read_psymbols): Remove.
3026 (debug_sym_fns, install_symfile_debug_logging): Update.
3027 * quick-symbol.h (struct quick_symbol_functions)
3028 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3029 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3030 * mipsread.c (ecoff_sym_fns): Update.
3031 * machoread.c (macho_sym_fns): Update.
3032 * elfread.c (struct lazy_dwarf_reader): New.
3033 (elf_symfile_read): Update.
3034 (read_psyms): Now a method of lazy_dwarf_reader.
3035 (elf_sym_fns): Update.
3036 (elf_sym_fns_lazy_psyms): Remove.
3037 * dbxread.c (aout_sym_fns): Update.
3038 * coffread.c (coff_sym_fns): Update.
3039
b29b98cf
TT
30402021-03-20 Tom Tromey <tom@tromey.com>
3041
3042 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3043 (reread_symbols): Move reset_psymtabs call later.
3044 * objfiles.c (objfile::objfile): Don't initialize
3045 partial_symtabs.
3046
17d66340
TT
30472021-03-20 Tom Tromey <tom@tromey.com>
3048
3049 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3050 set_partial_symtabs.
3051 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3052 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3053 parameter.
3054 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3055 parameter.
3056 (psymbol_functions::find_pc_sect_compunit_symtab)
3057 (psymbol_functions::print_stats, psymbol_functions::dump)
3058 (psymbol_functions::has_symbols): Update.
3059 (make_psymbol_functions, dump_psymtab_addrmap): Add
3060 partial_symtabs parameter.
3061 (maintenance_print_psymbols): Update.
3062 (psymbol_functions::expand_symtabs_matching): Update.
3063 * psympriv.h (struct psymbol_functions): Add constructor.
3064 <m_partial_symtabs>: New member.
3065 <set_partial_symtabs>: New method.
3066
84685904
TT
30672021-03-20 Tom Tromey <tom@tromey.com>
3068
3069 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3070 parameter.
3071 (process_psymtab_comp_unit_reader)
3072 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3073 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3074 Reference psymtabs via per_bfd.
3075
79cc99f6
TT
30762021-03-20 Tom Tromey <tom@tromey.com>
3077
3078 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3079 Remove.
3080 (add_address_entry): Remove objfile parameter.
3081 (add_address_entry_worker): Update.
3082 (write_address_map): Replace objfile parameter with per_bfd.
3083 (write_gdbindex, write_psymtabs_to_index): Update.
3084
4829711b
TT
30852021-03-20 Tom Tromey <tom@tromey.com>
3086
3087 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3088 print_bcache parameter.
3089 * symfile-debug.c (objfile::print_stats): Add print_bcache
3090 parameter.
3091 * quick-symbol.h (struct quick_symbol_functions)
3092 <print_stats>: Add print_bcache parameter.
3093 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3094 code to psymtab.c.
3095 (print_objfile_statistics): Move psymtab code to psymtab.c.
3096 * psymtab.c (count_psyms): Move from symmisc.c.
3097 (psymbol_functions::print_stats): Print partial symbol and bcache
3098 statistics. Add print_bcache parameter.
3099 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3100 (struct objfile) <print_stats>: Add print_bcache parameter.
3101 * maint.c (maintenance_print_statistics): Update.
3102
efd7398e
TT
31032021-03-20 Tom Tromey <tom@tromey.com>
3104
3105 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3106 member.
3107 * dwarf2/read.c (create_addrmap_from_index)
3108 (create_addrmap_from_aranges): Set per_bfd addrmap.
3109 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3110 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3111 per_bfd addrmap.
3112 (dwarf2_read_debug_names): Don't set partial_symtabs.
3113 (dwarf2_initialize_objfile): Likewise.
3114
51962708
TT
31152021-03-20 Tom Tromey <tom@tromey.com>
3116
3117 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3118 earlier.
3119
484b1090
TT
31202021-03-20 Tom Tromey <tom@tromey.com>
3121
3122 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3123 (~psymtab_discarder, keep): Update.
3124 <m_objfile>: Remove.
3125 <m_partial_symtabs>: New member.
3126 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3127
7e9c0476
TT
31282021-03-20 Tom Tromey <tom@tromey.com>
3129
3130 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3131 (xcoff_end_psymtab): Update.
3132 (scan_xcoff_symtab): Add partial_symtabs parameter.
3133 (xcoff_initial_scan): Update.
3134 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3135 * mdebugread.c (mdebug_build_psymtabs): Update.
3136 (parse_partial_symbols): Add partial_symtabs parameter.
3137 * dbxread.c (dbx_symfile_read): Update.
3138 (read_dbx_symtab): Add partial_symtabs parameter.
3139 (read_dbx_symtab): Update.
3140 (dbx_end_psymtab): Add partial_symtabs parameter.
3141
75336a5a
TT
31422021-03-20 Tom Tromey <tom@tromey.com>
3143
3144 * quick-symbol.h (struct quick_symbol_functions)
3145 <relocated>: New method.
3146 * psymtab.h (struct psymbol_functions) <relocated>: New
3147 method.
3148 <fill_psymbol_map>: Declare method.
3149 <m_psymbol_map>: New member.
3150 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3151 (psymbol_functions::find_compunit_symtab_by_address): Update.
3152 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3153 (struct objfile) <psymbol_map>: Remove.
3154 * objfiles.c (objfile_relocate1): Update.
3155
39298a5d
TT
31562021-03-20 Tom Tromey <tom@tromey.com>
3157
3158 * psympriv.h (struct psymbol_functions): New.
3159 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3160 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3161 (objfile::lookup_global_symbol_language): Update.
3162 * quick-symbol.h (struct quick_symbol_functions): Convert function
3163 pointers to methods. Add virtual destructor.
3164 (quick_symbol_functions_up): New typedef.
3165 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3166 (dwarf2_debug_names_functions): Don't declare.
3167 (make_psymbol_functions): Declare.
3168 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3169 (psymbol_functions::find_pc_sect_compunit_symtab)
3170 (psymbol_functions::lookup_symbol)
3171 (psymbol_functions::lookup_global_symbol_language)
3172 (psymbol_functions::find_last_source_symtab)
3173 (psymbol_functions::forget_cached_source_info)
3174 (psymbol_functions::print_stats, psymbol_functions::dump)
3175 (psymbol_functions::expand_symtabs_for_function)
3176 (psymbol_functions::expand_all_symtabs)
3177 (psymbol_functions::expand_symtabs_with_fullname)
3178 (psymbol_functions::map_symbol_filenames)
3179 (psymbol_functions::map_matching_symbols)
3180 (psymbol_functions::expand_symtabs_matching)
3181 (psymbol_functions::has_symbols)
3182 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3183 (psym_functions): Remove.
3184 (make_psymbol_functions): New function.
3185 * objfiles.h (struct objfile) <qf>: Change type.
3186 * elfread.c (elf_symfile_read): Update.
3187 * dwarf2/read.c (struct dwarf2_base_index_functions)
3188 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3189 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3190 (dwarf2_base_index_functions::find_last_source_symtab)
3191 (dwarf2_base_index_functions::forget_cached_source_info)
3192 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3193 (dwarf2_gdb_index::lookup_symbol)
3194 (dwarf2_base_index_functions::print_stats)
3195 (dwarf2_gdb_index::dump)
3196 (dwarf2_gdb_index::expand_symtabs_for_function)
3197 (dwarf2_base_index_functions::expand_all_symtabs)
3198 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3199 Rename.
3200 (dwarf2_gdb_index::map_matching_symbols): New method.
3201 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3202 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3203 (dwarf2_base_index_functions::map_symbol_filenames)
3204 (dwarf2_base_index_functions::has_symbols): Rename.
3205 (dwarf2_gdb_index_functions): Remove.
3206 (dwarf2_debug_names_index::lookup_symbol)
3207 (dwarf2_debug_names_index::dump)
3208 (dwarf2_debug_names_index::expand_symtabs_for_function)
3209 (dwarf2_debug_names_index::map_matching_symbols)
3210 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3211 (dwarf2_debug_names_functions): Remove.
3212 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3213 Declare.
3214
5c3f1e5b
TT
32152021-03-20 Tom Tromey <tom@tromey.com>
3216
3217 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3218 null.
3219 * xcoffread.c (xcoff_sym_fns): Update.
3220 * symfile.h (struct sym_fns) <qf>: Remove.
3221 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3222 * symfile-debug.c (objfile::has_partial_symbols)
3223 (objfile::find_last_source_symtab)
3224 (objfile::forget_cached_source_info)
3225 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3226 (objfile::print_stats, objfile::dump)
3227 (objfile::expand_symtabs_for_function)
3228 (objfile::expand_all_symtabs)
3229 (objfile::expand_symtabs_with_fullname)
3230 (objfile::map_matching_symbols)
3231 (objfile::expand_symtabs_matching)
3232 (objfile::find_pc_sect_compunit_symtab)
3233 (objfile::map_symbol_filenames)
3234 (objfile::find_compunit_symtab_by_address)
3235 (objfile::lookup_global_symbol_language, debug_sym_fns)
3236 (install_symfile_debug_logging): Update.
3237 * objfiles.h (struct objfile) <qf>: New member.
3238 * mipsread.c (ecoff_sym_fns): Update.
3239 * machoread.c (macho_sym_fns): Update.
3240 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3241 Don't declare.
3242 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3243 * dbxread.c (aout_sym_fns): Update.
3244 * coffread.c (coff_sym_fns): Update.
3245
9b99dcc8
TT
32462021-03-20 Tom Tromey <tom@tromey.com>
3247
3248 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3249 (expand_symtabs_file_matcher_ftype)
3250 (expand_symtabs_symbol_matcher_ftype)
3251 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3252 Move to quick-symbol.h.
3253 * quick-symbol.h: New file.
3254
4d080b46
TT
32552021-03-20 Tom Tromey <tom@tromey.com>
3256
3257 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3258 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3259 (basic_lookup_transparent_type_quick)
3260 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3261 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3262 Update.
3263 * symmisc.c (print_objfile_statistics, dump_objfile)
3264 (maintenance_expand_symtabs): Update.
3265 * symfile.c (symbol_file_add_with_addrs)
3266 (expand_symtabs_matching, map_symbol_filenames): Update.
3267 * symfile-debug.c (objfile::has_partial_symbols)
3268 (objfile::find_last_source_symtab)
3269 (objfile::forget_cached_source_info)
3270 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3271 (objfile::print_stats, objfile::dump)
3272 (objfile::expand_symtabs_for_function)
3273 (objfile::expand_all_symtabs)
3274 (objfile::expand_symtabs_with_fullname)
3275 (objfile::map_matching_symbols)
3276 (objfile::expand_symtabs_matching)
3277 (objfile::find_pc_sect_compunit_symtab)
3278 (objfile::map_symbol_filenames)
3279 (objfile::find_compunit_symtab_by_address)
3280 (objfile::lookup_global_symbol_language): New methods.
3281 (debug_sym_quick_functions): Remove.
3282 (debug_sym_fns, install_symfile_debug_logging): Update.
3283 * source.c (forget_cached_source_info_for_objfile)
3284 (select_source_symtab): Update.
3285 * objfiles.h (struct objfile): Add methods corresponding to
3286 quick_symbol_functions.
3287 * objfiles.c (objfile::has_partial_symbols): Move to
3288 symfile-debug.c.
3289 * linespec.c (iterate_over_all_matching_symtabs): Update.
3290 * cp-support.c (add_symbol_overload_list_qualified): Update.
3291 * ada-lang.c (add_nonlocal_symbols): Update.
3292
fae2120b
TT
32932021-03-20 Tom Tromey <tom@tromey.com>
3294
3295 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3296 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3297 bool.
3298 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3299 * psymtab.c (psym_has_symbols): Return bool.
3300 * objfiles.c (objfile::has_partial_symbols): Return bool.
3301 * dwarf2/read.c (dw2_has_symbols): Return bool.
3302
a8ad4f3c
TT
33032021-03-20 Tom Tromey <tom@tromey.com>
3304
3305 * symfile.c (read_symbols): Update.
3306 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3307 (objfile_has_partial_symbols): Don't declare.
3308 * objfiles.c (objfile::has_partial_symbols): Rename from
3309 objfile_has_partial_symbols.
3310 (objfile_has_symbols, have_partial_symbols): Update.
3311 * elfread.c (elf_symfile_read): Update.
3312 * dwarf2/read.c (dwarf2_has_info): Update.
3313 * coffread.c (coff_symfile_read): Update.
3314
70182375
TT
33152021-03-20 Tom Tromey <tom@tromey.com>
3316
3317 * coffread.c: Include dwarf2/public.h.
3318 * dwarf2/frame.c: Include dwarf2/public.h.
3319 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3320 * dwarf2/public.h: New file.
3321 * dwarf2/read.c: Include dwarf2/public.h.
3322 * elfread.c: Include dwarf2/public.h.
3323 * machoread.c: Include dwarf2/public.h.
3324 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3325 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3326 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3327 * xcoffread.c: Include dwarf2/public.h.
3328
18038e63
TT
33292021-03-20 Tom Tromey <tom@tromey.com>
3330
3331 * symfile.h (enum dwarf2_section_enum)
3332 (dwarf2_get_section_info): Move to dwarf2/read.h.
3333 * dwarf2/read.h (enum dwarf2_section_enum)
3334 (dwarf2_get_section_info): Move from symfile.h.
3335
219f56b4
PA
33362021-03-19 Pedro Alves <pedro@palves.net>
3337
3338 * thread.c (any_thread_of_inferior): Check if there's a selected
3339 thread before calling inferior_thread().
3340
15310fd4
TT
33412021-03-18 Tom Tromey <tromey@adacore.com>
3342
3343 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3344 get_DW_UT_name.
3345 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3346 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3347
763b8efd
AB
33482021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3349
3350 * python/py-param.c (get_set_value): Update header comment.
3351
f058c521
SM
33522021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3353
3354 * infrun.c (check_multi_target_resumption): Remove argument to
3355 all_non_exited_inferiors.
3356
383228bc
CB
33572021-03-16 Christian Biesinger <cbiesinger@google.com>
3358
3359 * windows-nat.c (windows_init_thread_list): Add message to
3360 debug log.
3361
7807d76a
AB
33622021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3363
3364 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3365 well as PyLong_Check for Python 2.
3366
675da9a5
TT
33672021-03-15 Tom Tromey <tromey@adacore.com>
3368
3369 PR build/27579:
3370 * rust-exp.y (maker_map): Use gdb::hash_enum.
3371 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3372
4800761a
SM
33732021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3374
3375 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3376 end of debug print.
3377
eb5dd737
SM
33782021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3379
3380 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3381 parameter, adjust caller.
3382
6813ceb0
TT
33832021-03-15 Tom Tromey <tromey@adacore.com>
3384
3385 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3386
3b5c4de0
TT
33872021-03-15 Tom Tromey <tromey@adacore.com>
3388
3389 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3390 ada_ensure_varsize_limit.
3391
c04da66c
TT
33922021-03-15 Tom Tromey <tromey@adacore.com>
3393
3394 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3395 fixed-point.
3396 * ada-exp.y (maybe_overload): New function.
3397 (ada_wrap_overload): New function.
3398 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3399 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3400 (or_else_exp, xor_exp, primary): Update.
3401
9863c3b5
TT
34022021-03-15 Tom Tromey <tromey@adacore.com>
3403
3404 PR ada/27545:
3405 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3406 call for tagged type.
3407
1ac74522
TT
34082021-03-15 Tom Tromey <tromey@adacore.com>
3409
3410 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3411 assignment.
3412
207582c0
TT
34132021-03-15 Tom Tromey <tromey@adacore.com>
3414
3415 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3416 container.
3417 (ada_assign_operation::evaluate): Update.
3418 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3419 Change return type.
3420
8d624a9d
FW
34212021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3422
3423 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3424
ba6a0ef3
AB
34252021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3426
3427 * python/python.c (gdbpy_source_objfile_script): Use
3428 make_scoped_restore to restore gdbpy_current_objfile.
3429 (gdbpy_execute_objfile_script): Likewise.
3430
7c290a04
TT
34312021-03-14 Tom Tromey <tom@tromey.com>
3432
3433 * dwarf2/read.c (read_attribute_value): Use cu_header
3434 consistently.
3435
0280fdcc
TT
34362021-03-14 Tom Tromey <tom@tromey.com>
3437
3438 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3439 (peek_die_abbrev): Use reader.abfd.
3440
a9f172c6
TT
34412021-03-14 Tom Tromey <tom@tromey.com>
3442
3443 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3444 m_header_read_in.
3445
7c32eebb
TT
34462021-03-13 Tom Tromey <tom@tromey.com>
3447
3448 * dwarf2/read.c (struct partial_die_info): Update.
3449 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3450 (load_partial_dies, partial_die_info::partial_die_info): Update.
3451 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3452
27012aba
TT
34532021-03-13 Tom Tromey <tom@tromey.com>
3454
3455 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3456
fece451c
CB
34572021-03-12 Christian Biesinger <cbiesinger@google.com>
3458
3459 PR threads/27239
3460 * cp-support.c: Use scoped_segv_handler_restore.
3461 * event-top.c (thread_local_segv_handler): Made static.
3462 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3463 New function.
3464 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3465 function.
3466 * event-top.h (class scoped_segv_handler_restore): New class.
3467 (thread_local_segv_handler): Removed.
3468
7056f312
TT
34692021-03-10 Tom Tromey <tromey@adacore.com>
3470
3471 * parser-defs.h (parser_state): Change completion to bool.
3472 <parse_completion>: Likewise.
3473 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3474 (ada_resolve_variable, ada_resolve_function): Update.
3475 * ada-lang.c (ada_find_operator_symbol): Change
3476 parse_completion to bool.
3477 (ada_resolve_funcall, ada_resolve_variable)
3478 (ada_resolve_function): Likewise.
3479
ccdc02ed
TT
34802021-03-09 Tom Tromey <tromey@adacore.com>
3481
3482 * eval.c (operation::evaluate_funcall): Use function formal
3483 parameter types when evaluating.
3484
fbb1aace
AB
34852021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3488 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3489 and owner to m_owner.
3490
611aa09d
FW
34912021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3492
3493 * f-exp.h (eval_op_f_loc): Declare.
3494 (expr::fortran_loc_operation): New typedef.
3495 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3496 UNOP_INTRINSIC.
3497 (f77_keywords): Add LOC keyword.
3498 * f-lang.c (eval_op_f_loc): New function.
3499 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3500
eef32f59
AB
35012021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * f-exp.h (eval_op_f_array_shape): Declare.
3504 (fortran_array_shape_operation): New type.
3505 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3506 UNOP_INTRINSIC.
3507 (f77_keywords): Add "shape" keyword.
3508 * f-lang.c (fortran_array_shape): New function.
3509 (eval_op_f_array_shape): New function.
3510 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3511
7ba155b3
AB
35122021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3515 of this function.
3516 (expr::fortran_array_size_1arg): New type.
3517 (expr::fortran_array_size_2arg): Likewise.
3518 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3519 UNOP_OR_BINOP_INTRINSIC.
3520 (f77_keywords): Add "size" keyword.
3521 * f-lang.c (fortran_array_size): New function.
3522 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3523 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3524
e14816a8
AB
35252021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * f-exp.h (eval_op_f_rank): Declare.
3528 (expr::fortran_rank_operation): New typedef.
3529 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3530 UNOP_INTRINSIC.
3531 (f77_keywords): Add "rank" keyword.
3532 * f-lang.c (eval_op_f_rank): New function.
3533 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3534
3dd93bf8
TT
35352021-03-08 Tom Tromey <tom@tromey.com>
3536
3537 * printcmd.c (set_command): Remove null check.
3538 * value.c (init_if_undefined_command): Remove null check.
3539
9c79936b
TT
35402021-03-08 Tom Tromey <tom@tromey.com>
3541
3542 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3543 Update.
3544 * p-exp.y (variable): Update.
3545 * go-exp.y (variable): Update.
3546 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3547 Remove overload for objfile.
3548 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3549 parameter.
3550 (check_objfile): Likewise.
3551 (dump_for_expression): Likewise. Remove overload for objfile.
3552 (class var_msym_value_operation): Use bound_minimal_symbol.
3553 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3554 parameter.
3555 (var_msym_value_operation::evaluate_for_address)
3556 (var_msym_value_operation::evaluate_for_sizeof)
3557 (var_msym_value_operation::evaluate_for_cast): Update.
3558 * d-exp.y (PrimaryExpression): Update.
3559 * c-exp.y (variable): Update.
3560 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3561 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3562 Update.
3563 * ada-exp.y (write_var_or_type): Update.
3564
40d07d07
TT
35652021-03-08 Tom Tromey <tom@tromey.com>
3566
3567 * parser-defs.h (exp_uses_objfile): Return bool.
3568 * parse.c (exp_uses_objfile): Return bool.
3569
0b2b0b82
TT
35702021-03-08 Tom Tromey <tom@tromey.com>
3571
3572 * value.h (eval_skip_value): Don't declare.
3573 * opencl-lang.c (eval_opencl_assign): Update.
3574 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3575 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3576 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3577 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3578 * expop.h (typeof_operation::evaluate)
3579 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3580 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3581 (cxx_cast_operation::evaluate): Update.
3582 * eval.c (eval_skip_value): Remove.
3583 (eval_op_scope, eval_op_var_entry_value)
3584 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3585 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3586 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3587 (eval_op_binary, eval_op_subscript, eval_op_equal)
3588 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3589 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3590 (eval_op_complement, eval_op_lognot, eval_op_ind)
3591 (eval_op_memval, eval_op_preinc, eval_op_predec)
3592 (eval_op_postinc, eval_op_postdec, eval_op_type)
3593 (eval_binop_assign_modify, eval_op_objc_msgcall)
3594 (eval_multi_subscript, logical_and_operation::evaluate)
3595 (logical_or_operation::evaluate, array_operation::evaluate)
3596 (operation::evaluate_for_cast)
3597 (var_msym_value_operation::evaluate_for_cast)
3598 (var_value_operation::evaluate_for_cast): Update.
3599 * c-lang.c (c_string_operation::evaluate): Update.
3600 * c-exp.h (objc_nsstring_operation::evaluate)
3601 (objc_selector_operation::evaluate): Update.
3602 * ada-lang.c (ada_assign_operation::evaluate)
3603 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3604 (ada_atr_size): Update.
3605
96db551d
TT
36062021-03-08 Tom Tromey <tom@tromey.com>
3607
3608 * eval.c: Merge "namespace" scopes.
3609
ce284361
TT
36102021-03-08 Tom Tromey <tom@tromey.com>
3611
3612 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3613 <release>: Inline.
3614 * parse.c (expr_builder::expr_builder, expr_builder::release):
3615 Remove.
3616
b9d06571
TT
36172021-03-08 Tom Tromey <tom@tromey.com>
3618
3619 * parse.c (expression::expression, expression::~expression):
3620 Remove.
3621 * expression.h (struct expression): Inline constructor. Remove
3622 destructor.
3623
79ab486e
TT
36242021-03-08 Tom Tromey <tom@tromey.com>
3625
3626 * std-operator.def (BINOP_END): Remove.
3627 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3628 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3629 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3630 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3631 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3632 BINOP_END.
3633
48fa6f23
TT
36342021-03-08 Tom Tromey <tom@tromey.com>
3635
3636 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3637
43f542e3
TT
36382021-03-08 Tom Tromey <tom@tromey.com>
3639
3640 * std-operator.def (OP_EXTENDED0): Remove.
3641
5d9ba982
TT
36422021-03-08 Tom Tromey <tom@tromey.com>
3643
3644 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3645 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3646 Remove.
3647
d357570d
TT
36482021-03-08 Tom Tromey <tom@tromey.com>
3649
3650 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3651 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3652
0922dc84
TT
36532021-03-08 Tom Tromey <tom@tromey.com>
3654
3655 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3656 * ada-lang.c (ada_binop_minmax): Update.
3657 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3658 Use BINOP_MIN and BINOP_MAX.
3659
1eaebe02
TT
36602021-03-08 Tom Tromey <tom@tromey.com>
3661
3662 * value.h (evaluate_subexp_with_coercion): Don't declare.
3663 * parse.c (exp_descriptor_standard): Remove.
3664 (expr_builder::expr_builder, expr_builder::release): Update.
3665 (expression::expression): Remove size_t parameter.
3666 (expression::~expression): Simplify.
3667 (expression::resize): Remove.
3668 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3669 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3670 (write_exp_elt_longcst, write_exp_elt_floatcst)
3671 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3672 (write_exp_string_vector, write_exp_bitstring): Remove.
3673 * p-lang.h (class pascal_language) <opcode_print_table,
3674 op_print_tab>: Remove.
3675 * p-lang.c (pascal_language::op_print_tab): Remove.
3676 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3677 Remove.
3678 * objc-lang.c (objc_op_print_tab): Remove.
3679 (class objc_language) <opcode_print_table>: Remove.
3680 * m2-lang.h (class m2_language) <opcode_print_table,
3681 op_print_tab>: Remove.
3682 * m2-lang.c (m2_language::op_print_tab): Remove.
3683 * language.h (struct language_defn) <post_parser, expression_ops,
3684 opcode_print_table>: Remove.
3685 * language.c (language_defn::expression_ops)
3686 (auto_or_unknown_language::opcode_print_table): Remove.
3687 * go-lang.h (class go_language) <opcode_print_table,
3688 op_print_tab>: Remove.
3689 * go-lang.c (go_language::op_print_tab): Remove.
3690 * f-lang.h (class f_language) <opcode_print_table>: Remove
3691 <op_print_tab>: Remove.
3692 * f-lang.c (f_language::op_print_tab): Remove.
3693 * expression.h (union exp_element): Remove.
3694 (struct expression): Remove size_t parameter from constructor.
3695 <resize>: Remove.
3696 <first_opcode>: Update.
3697 <nelts, elts>: Remove.
3698 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3699 (evaluate_subexp_standard, print_expression, op_string)
3700 (dump_raw_expression): Don't declare.
3701 * expprint.c (print_expression, print_subexp)
3702 (print_subexp_funcall, print_subexp_standard, op_string)
3703 (dump_raw_expression, dump_subexp, dump_subexp_body)
3704 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3705 (dump_prefix_expression): Update.
3706 * eval.c (evaluate_subexp): Remove.
3707 (evaluate_expression, evaluate_type): Update.
3708 (evaluate_subexpression_type): Remove.
3709 (fetch_subexp_value): Remove "pc" parameter. Update.
3710 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3711 (evaluate_subexp_standard, evaluate_subexp_for_address)
3712 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3713 (evaluate_subexp_for_cast): Remove.
3714 (parse_and_eval_type): Update.
3715 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3716 * d-lang.c (d_op_print_tab): Remove.
3717 (class d_language) <opcode_print_table>: Remove.
3718 * c-lang.h (c_op_print_tab): Don't declare.
3719 * c-lang.c (c_op_print_tab): Remove.
3720 (class c_language, class cplus_language, class asm_language, class
3721 minimal_language) <opcode_print_table>: Remove.
3722 * breakpoint.c (update_watchpoint, watchpoint_check)
3723 (watchpoint_exp_is_const, watch_command_1): Update.
3724 * ax-gdb.h (union exp_element): Don't declare.
3725 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3726 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3727 (gen_expr_binop_rest): Remove.
3728 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3729 * ada-lang.c (ada_op_print_tab): Remove.
3730 (class ada_language) <post_parser, opcode_print_table>: Remove.
3731
f2a98603
TT
37322021-03-08 Tom Tromey <tom@tromey.com>
3733
3734 * go-lang.c (go_language::expression_ops): Don't declare.
3735 * go-lang.h (class go_language) <expression_ops>: Remove.
3736 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3737 Remove.
3738 (class opencl_language) <expression_ops>: Remove.
3739 * d-lang.c (class d_language) <expression_ops>: Remove.
3740 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3741 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3742 (class c_language, class cplus_language, class asm_language)
3743 (class minimal_language) <expression_ops>: Remove.
3744
d3c54a1c
TT
37452021-03-08 Tom Tromey <tom@tromey.com>
3746
3747 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3748 (evaluate_subexp_type, assign_aggregate)
3749 (aggregate_assign_positional, aggregate_assign_from_choices)
3750 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3751 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3752 (ada_operator_check, ada_forward_operator_length)
3753 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3754 Remove.
3755 (post_parser): Update.
3756 (class ada_language) <expresssion_ops>: Remove.
3757
5871f0a3
TT
37582021-03-08 Tom Tromey <tom@tromey.com>
3759
3760 * m2-lang.h (class m2_language) <expresssion_ops,
3761 exp_descriptor_modula2>: Remove.
3762 * m2-lang.c (evaluate_subexp_modula2)
3763 (m2_language::exp_descriptor_modula2): Remove.
3764
a99be8c1
TT
37652021-03-08 Tom Tromey <tom@tromey.com>
3766
3767 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3768 <exp_descriptor_tab>: Remove.
3769 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3770 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3771 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3772 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3773 Remove.
3774
aa1da9ed
TT
37752021-03-08 Tom Tromey <tom@tromey.com>
3776
3777 * rust-lang.h (class rust_language) <expression_ops,
3778 exp_descriptor_tab>: Remove.
3779 * rust-lang.c (rust_evaluate_funcall): Remove.
3780 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3781 EVAL_SKIP.
3782 (rust_evaluate_subexp): Remove.
3783 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3784 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3785 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3786
08a057e6
TT
37872021-03-08 Tom Tromey <tom@tromey.com>
3788
3789 * ada-exp.y: Create operations.
3790 (empty_stoken): Remove.
3791 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3792 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3793 (components): New global.
3794 (push_component, choice_component, pop_component, pop_components):
3795 New functions.
3796 (associations): New global
3797 (push_association, pop_association, pop_associations): New
3798 functions.
3799 (ada_parse): Update.
3800 (write_var_from_sym, write_int): Create operations.
3801 (write_exp_op_with_string): Remove.
3802 (write_object_renaming, write_selectors, write_ambiguous_var)
3803 (write_var_or_type, write_name_assoc): Create operations.
3804 * ada-lang.h (ada_index_type): Declare.
3805 * ada-lang.c (ada_index_type): No longer static.
3806
d308ba78
TT
38072021-03-08 Tom Tromey <tom@tromey.com>
3808
3809 * f-exp.y: Create operations.
3810 (f_language::parser): Update.
3811
f1b8ceef
TT
38122021-03-08 Tom Tromey <tom@tromey.com>
3813
3814 * m2-exp.y: Create operations.
3815 (m2_language::parser): Update.
3816
3163898e
TT
38172021-03-08 Tom Tromey <tom@tromey.com>
3818
3819 * p-exp.y: Create operations.
3820 (pascal_language::parser): Update.
3821
9412fdcc
TT
38222021-03-08 Tom Tromey <tom@tromey.com>
3823
3824 * d-exp.y: Create operations.
3825 (d_parse): Update.
3826
bb4e0574
TT
38272021-03-08 Tom Tromey <tom@tromey.com>
3828
3829 * go-exp.y: Create operations.
3830 (go_language::parser): Update.
3831
d182f279
TT
38322021-03-08 Tom Tromey <tom@tromey.com>
3833
3834 * objc-lang.c (end_msglist): Create operations.
3835 * c-exp.y: Change parser to create operations.
3836 (write_destructor_name): Remove.
3837 (c_parse): Update.
3838
c1299a23
TT
38392021-03-08 Tom Tromey <tom@tromey.com>
3840
3841 * rust-exp.y: Create operations.
3842 (rust_parser::convert_params_to_expression): Change return type.
3843 (binop_maker_ftype): New typedef.
3844 (maker_map): New global.
3845 (rust_parser::convert_ast_to_expression): Change return type.
3846 (rust_language::parser): Update.
3847 (_initialize_rust_exp): Initialize maker_map.
3848
4c5e7a93
TT
38492021-03-08 Tom Tromey <tom@tromey.com>
3850
3851 * stap-probe.c (binop_maker_ftype): New typedef.
3852 (stap_maker_map): New global.
3853 (stap_make_binop): New function.
3854 (stap_parse_register_operand): Return operation_up.
3855 (stap_parse_single_operand, stap_parse_argument_conditionally)
3856 (stap_parse_argument_1): Likewise.
3857 (stap_parse_argument): Create operations.
3858 (stap_probe::parse_arguments): Update.
3859 (_initialize_stap_probe): Initialize stap_maker_map.
3860 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3861 type.
3862 * i386-tdep.h (i386_stap_parse_special_token): Change return
3863 type.
3864 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3865 (i386_stap_parse_special_token_three_arg_disp)
3866 (i386_stap_parse_special_token): Change return type.
3867 * gdbarch.sh (stap_parse_special_token): Change return type.
3868 * gdbarch.c: Rebuild.
3869 * gdbarch.h: Rebuild.
3870 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3871 type.
3872 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3873 return type.
3874
482ddd69
TT
38752021-03-08 Tom Tromey <tom@tromey.com>
3876
3877 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3878 * gdbarch.h: Rebuild.
3879 * gdbarch.c: Rebuild.
3880 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3881 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3882 return type.
3883 (amd64_dtrace_parse_probe_argument): Update.
3884
8227d9e2
TT
38852021-03-08 Tom Tromey <tom@tromey.com>
3886
3887 * parser-defs.h (struct parser_state) <push, push_new,
3888 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3889 wrap2>: New methods.
3890 <m_operations>: New member.
3891 * parse.c (parser_state::push_c_string)
3892 (parser_state::push_symbol, parser_state::push_dollar): New
3893 methods.
3894
4933522d
TT
38952021-03-08 Tom Tromey <tom@tromey.com>
3896
3897 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3898 New member.
3899 (struct parser_state) <mark_struct_expression>: New method.
3900 * parse.c (parser_state::mark_struct_expression): Update assert.
3901 (parser_state::mark_struct_expression): New method.
3902 (parser_state::mark_completion_tag): Update assert.
3903 (parse_expression_for_completion): Handle expout_last_op.
3904
413403fc
TT
39052021-03-08 Tom Tromey <tom@tromey.com>
3906
3907 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3908 now in superclass.
3909 * value.h (fetch_subexp_value): Add "op" parameter.
3910 * value.c (init_if_undefined_command): Update.
3911 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3912 * stap-probe.c (stap_probe::compile_to_ax): Update.
3913 * printcmd.c (set_command): Update.
3914 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3915 Update.
3916 * parser-defs.h (struct expr_builder) <set_operation>: New
3917 method.
3918 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3919 * expression.h (struct expression) <first_opcode>: Update.
3920 <op>: New member.
3921 * expprint.c (dump_raw_expression, dump_prefix_expression):
3922 Update.
3923 * expop.h (class var_value_operation) <get_symbol>: New method.
3924 (class register_operation) <get_name>: New method.
3925 (class equal_operation): No longer a typedef, now a subclass.
3926 (class unop_memval_operation) <get_type>: New method.
3927 (class assign_operation) <get_lhs>: New method.
3928 (class unop_cast_operation) <get_type>: New method.
3929 * eval.c (evaluate_expression, evaluate_type)
3930 (evaluate_subexpression_type): Update.
3931 (fetch_subexp_value): Add "op" parameter.
3932 (parse_and_eval_type): Update.
3933 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3934 * breakpoint.c (update_watchpoint, watchpoint_check)
3935 (watchpoint_exp_is_const, watch_command_1): Update.
3936 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3937 Update.
3938
b0f9164c
TT
39392021-03-08 Tom Tromey <tom@tromey.com>
3940
3941 * ada-lang.c (ada_value_binop): Do not use op_string.
3942
a88c4354
TT
39432021-03-08 Tom Tromey <tom@tromey.com>
3944
3945 * expprint.c (dump_for_expression): New overload.
3946 * expop.h (check_objfile, dump_for_expression): Declare new
3947 overloads.
3948 * ada-lang.c (check_objfile): New overload.
3949 (assign_component, ada_aggregate_component::uses_objfile)
3950 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3951 (ada_aggregate_component::assign_aggregate)
3952 (ada_positional_component::uses_objfile)
3953 (ada_positional_component::dump, ada_positional_component::assign)
3954 (ada_discrete_range_association::uses_objfile)
3955 (ada_discrete_range_association::dump)
3956 (ada_discrete_range_association::assign)
3957 (ada_name_association::uses_objfile, ada_name_association::dump)
3958 (ada_name_association::assign)
3959 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3960 (ada_choices_component::assign)
3961 (ada_others_component::uses_objfile, ada_others_component::dump)
3962 (ada_others_component::assign, ada_assign_operation::evaluate):
3963 New methods.
3964 * ada-exp.h (ada_string_operation) <get_name>: New method.
3965 (class ada_assign_operation): New.
3966 (class ada_component): New.
3967 (ada_component_up): New typedef.
3968 (class ada_aggregate_operation, class ada_aggregate_component)
3969 (class ada_positional_component, class ada_others_component)
3970 (class ada_association): New.
3971 (ada_association_up): New typedef.
3972 (class ada_choices_component)
3973 (class ada_discrete_range_association)
3974 (class ada_name_association): New.
3975
d8a4ed8a
TT
39762021-03-08 Tom Tromey <tom@tromey.com>
3977
3978 * ada-lang.c (ada_var_value_operation::resolve)
3979 (ada_funcall_operation::resolve)
3980 (ada_ternop_slice_operation::resolve): New methods.
3981 * ada-exp.h (struct ada_resolvable): New.
3982 (class ada_var_value_operation): Derive from ada_resolvable.
3983 <get_block, resolve>: New methods.
3984 (class ada_funcall_operation): Derive from ada_resolvable.
3985 <resolve>: New method.
3986 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3987 <resolve>: New method.
3988
efe3af2f
TT
39892021-03-08 Tom Tromey <tom@tromey.com>
3990
3991 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3992 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3993 method.
3994 (class ada_funcall_operation): New.
3995
ebc06ad8
TT
39962021-03-08 Tom Tromey <tom@tromey.com>
3997
3998 * ada-lang.c (ada_structop_operation::evaluate): New method.
3999 * ada-exp.h (class ada_structop_operation): New.
4000
e8c33fa1
TT
40012021-03-08 Tom Tromey <tom@tromey.com>
4002
4003 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4004 * ada-exp.h (class ada_unop_ind_operation): New.
4005
065ec826
TT
40062021-03-08 Tom Tromey <tom@tromey.com>
4007
4008 * ada-lang.c (ada_binop_exp): No longer static.
4009 * ada-exp.h (ada_binop_exp_operation): New typedef.
4010
9e99f48f
TT
40112021-03-08 Tom Tromey <tom@tromey.com>
4012
4013 * ada-lang.c (ada_val_atr): No longer static.
4014 (ada_atr_val_operation::evaluate): New method.
4015 * ada-exp.h (class ada_atr_val_operation): New.
4016
7631cf6c
TT
40172021-03-08 Tom Tromey <tom@tromey.com>
4018
4019 * ada-lang.c (ada_pos_atr): No longer static.
4020 * ada-exp.h (ada_pos_operation): New typedef.
4021
7992accc
TT
40222021-03-08 Tom Tromey <tom@tromey.com>
4023
4024 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4025 parameters.
4026 (ada_evaluate_subexp): Use it.
4027
6ad3b8bf
TT
40282021-03-08 Tom Tromey <tom@tromey.com>
4029
4030 * ada-lang.c (ada_binop_minmax): No longer static.
4031 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4032 New typedefs.
4033
3f4a0053
TT
40342021-03-08 Tom Tromey <tom@tromey.com>
4035
4036 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4037 New method.
4038 * ada-exp.h (class ada_var_msym_value_operation): New.
4039
99a3b1e7
TT
40402021-03-08 Tom Tromey <tom@tromey.com>
4041
4042 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4043 (ada_var_value_operation::evaluate): New methods.
4044 * ada-exp.h (class ada_var_value_operation): New.
4045
60fa02ca
TT
40462021-03-08 Tom Tromey <tom@tromey.com>
4047
4048 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4049 * ada-exp.h (class ada_unop_atr_operation): New.
4050
82c3886e
TT
40512021-03-08 Tom Tromey <tom@tromey.com>
4052
4053 * ada-lang.c (ada_binop_in_bounds): No longer static.
4054 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4055
1b1ebfab
TT
40562021-03-08 Tom Tromey <tom@tromey.com>
4057
4058 * ada-lang.c (ada_ternop_slice): No longer static.
4059 * ada-exp.h (class ada_ternop_slice_operation): New.
4060
039e4b76
TT
40612021-03-08 Tom Tromey <tom@tromey.com>
4062
4063 * ada-exp.h (ada_bitwise_operation): New template class.
4064 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4065 (ada_bitwise_xor_operation): New typedefs.
4066
6e8fb7b7
TT
40672021-03-08 Tom Tromey <tom@tromey.com>
4068
4069 * ada-lang.c (ada_equal_binop): No longer static.
4070 * ada-exp.h (class ada_binop_equal_operation): New.
4071
d9e7db06
TT
40722021-03-08 Tom Tromey <tom@tromey.com>
4073
4074 * ada-lang.c (ada_mult_binop): No longer static.
4075 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4076 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4077
73796c73
TT
40782021-03-08 Tom Tromey <tom@tromey.com>
4079
4080 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4081 * ada-exp.h (class ada_binop_addsub_operation): New.
4082
cd9a3148
TT
40832021-03-08 Tom Tromey <tom@tromey.com>
4084
4085 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4086 (ada_resolve_variable): Declare.
4087 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4088 (ada_resolve_variable): New functions.
4089 (resolve_subexp): Update.
4090
cf12b17f
TT
40912021-03-08 Tom Tromey <tom@tromey.com>
4092
4093 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4094 method.
4095 * c-exp.h (class opencl_ternop_cond_operation): New.
4096
944fd3b8
TT
40972021-03-08 Tom Tromey <tom@tromey.com>
4098
4099 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4100 method.
4101 * c-exp.h (class opencl_logical_binop_operation): New.
4102
33b79214
TT
41032021-03-08 Tom Tromey <tom@tromey.com>
4104
4105 * opencl-lang.c (opencl_structop_operation::evaluate): New
4106 method.
4107 * c-exp.h (class opencl_structop_operation): New.
4108
2492ba36
TT
41092021-03-08 Tom Tromey <tom@tromey.com>
4110
4111 * opencl-lang.c (opencl_logical_not): No longer static. Change
4112 parameters.
4113 (evaluate_subexp_opencl): Update.
4114 * c-exp.h (opencl_notequal_operation): New typedef.
4115
a88c3c8d
TT
41162021-03-08 Tom Tromey <tom@tromey.com>
4117
4118 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4119 static. Change parameters.
4120 (eval_opencl_assign): No longer static. Add "op" parameter.
4121 (evaluate_subexp_opencl): Update.
4122 * c-exp.h (opencl_binop_operation): New template class.
4123 (opencl_assign_operation, opencl_equal_operation)
4124 (opencl_notequal_operation, opencl_less_operation)
4125 (opencl_gtr_operation, opencl_geq_operation)
4126 (opencl_leq_operation): New typedefs.
4127
e9677704
TT
41282021-03-08 Tom Tromey <tom@tromey.com>
4129
4130 * opencl-lang.c (opencl_value_cast): No longer static.
4131 * c-exp.h (opencl_cast_type_operation): New typedef.
4132
f403a4e4
TT
41332021-03-08 Tom Tromey <tom@tromey.com>
4134
4135 * f-exp.h (eval_op_f_allocated): Declare.
4136 (fortran_allocated_operation): New typedef.
4137 * f-lang.c (eval_op_f_allocated): No longer static.
4138
eb4c9271
TT
41392021-03-08 Tom Tromey <tom@tromey.com>
4140
4141 * f-lang.c (eval_op_f_associated): New functions.
4142 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4143 typedefs.
4144
58a76c72
TT
41452021-03-08 Tom Tromey <tom@tromey.com>
4146
4147 * f-lang.c (fortran_bound_1arg::evaluate)
4148 (fortran_bound_2arg::evaluate): New methods.
4149 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4150 New.
4151
2f98abe1
TT
41522021-03-08 Tom Tromey <tom@tromey.com>
4153
4154 * expop.h (class unop_addr_operation) <get_expression>: New
4155 method.
4156 * f-lang.c (fortran_undetermined::value_subarray)
4157 (fortran_undetermined::evaluate): New methods.
4158 (fortran_prepare_argument): New overload.
4159 * f-exp.h (class fortran_range_operation)
4160 (class fortran_undetermined): New classes.
4161
638fd74a
TT
41622021-03-08 Tom Tromey <tom@tromey.com>
4163
4164 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4165 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4166 method.
4167
a00b7254
TT
41682021-03-08 Tom Tromey <tom@tromey.com>
4169
4170 * expression.h (class operation) <evaluate_funcall>: New methods.
4171 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4172 (class var_value_operation) <evaluate_funcall>: New method.
4173 (class structop_base_operation) <evaluate_funcall>: New method.
4174 (class var_msym_value_operation) <evaluate_funcall>: New method.
4175 (class structop_member_base): New class.
4176 (class structop_member_operation): Derive from
4177 structop_member_base.
4178 (class structop_mptr_operation): Derive from
4179 structop_member_base.
4180 (class funcall_operation): New class.
4181 * eval.c (operation::evaluate_funcall)
4182 (var_value_operation::evaluate_funcall)
4183 (scope_operation::evaluate_funcall)
4184 (structop_member_base::evaluate_funcall)
4185 (structop_base_operation::evaluate_funcall): New methods.
4186
1c02eb30
TT
41872021-03-08 Tom Tromey <tom@tromey.com>
4188
4189 * expop.h (class array_operation): New.
4190 * eval.c (array_operation::evaluate_struct_tuple)
4191 (array_operation::evaluate): New methods.
4192
e4479080
TT
41932021-03-08 Tom Tromey <tom@tromey.com>
4194
4195 * expop.h (class adl_func_operation): New.
4196 * eval.c (adl_func_operation::evaluate): New method.
4197
95d49dfb
TT
41982021-03-08 Tom Tromey <tom@tromey.com>
4199
4200 * ada-lang.c (ada_unop_in_range): No longer static.
4201 * ada-exp.h (class ada_unop_range_operation): New.
4202
7c15d377
TT
42032021-03-08 Tom Tromey <tom@tromey.com>
4204
4205 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4206 No longer static.
4207 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4208 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4209
5019124b
TT
42102021-03-08 Tom Tromey <tom@tromey.com>
4211
4212 * expop.h (class logical_and_operation)
4213 (class logical_or_operation): New.
4214 * eval.c (logical_and_operation::evaluate)
4215 (logical_or_operation::evaluate): New methods.
4216 * ax-gdb.c (logical_and_operation::do_generate_ax)
4217 (logical_or_operation::do_generate_ax): New methods.
4218
2bc9b40c
TT
42192021-03-08 Tom Tromey <tom@tromey.com>
4220
4221 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4222 static.
4223 * m2-exp.h: New file.
4224
5947d337
TT
42252021-03-08 Tom Tromey <tom@tromey.com>
4226
4227 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4228 * rust-exp.h (class rust_aggregate_operation): New.
4229
e4407a20
TT
42302021-03-08 Tom Tromey <tom@tromey.com>
4231
4232 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4233 No longer static.
4234 * rust-exp.h (class rust_struct_anon): New.
4235 (class rust_structop): New.
4236
9db6b6dd
TT
42372021-03-08 Tom Tromey <tom@tromey.com>
4238
4239 * rust-lang.c (rust_range): No longer static.
4240 * rust-exp.h (class rust_range_operation): New.
4241
6ce1ad67
TT
42422021-03-08 Tom Tromey <tom@tromey.com>
4243
4244 * rust-lang.c (rust_subscript): No longer static.
4245 * rust-exp.h (class rust_subscript_operation): New.
4246
11dd3dce
TT
42472021-03-08 Tom Tromey <tom@tromey.com>
4248
4249 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4250 parameter.
4251 (rust_evaluate_subexp): Update.
4252 * rust-exp.h (class rust_unop_ind_operation): New.
4253
6fab4359
TT
42542021-03-08 Tom Tromey <tom@tromey.com>
4255
4256 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4257 longer static. Add "opcode" parameter.
4258 (rust_evaluate_subexp): Update.
4259 * rust-exp.h: New file.
4260
9dcd3e29
TT
42612021-03-08 Tom Tromey <tom@tromey.com>
4262
4263 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4264 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4265 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4266 (evaluate_subexp_f): Update.
4267 * f-exp.h: New file.
4268
fc715eb2
TT
42692021-03-08 Tom Tromey <tom@tromey.com>
4270
4271 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4272 * ada-exp.h (class ada_ternop_range_operation): New.
4273
cc6bd32e
TT
42742021-03-08 Tom Tromey <tom@tromey.com>
4275
4276 * ada-lang.c (ada_qual_operation::evaluate): New method.
4277 * ada-exp.h (class ada_qual_operation): New.
4278
42fecb61
TT
42792021-03-08 Tom Tromey <tom@tromey.com>
4280
4281 * ada-lang.c (ada_string_operation::evaluate): New method.
4282 * ada-exp.h (class ada_string_operation): New.
4283
03070ee9
TT
42842021-03-08 Tom Tromey <tom@tromey.com>
4285
4286 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4287 * ada-exp.h: New file.
4288
821e72d7
TT
42892021-03-08 Tom Tromey <tom@tromey.com>
4290
4291 * expop.h (class multi_subscript_operation): New.
4292 * eval.c (multi_subscript_operation::evaluate): New method.
4293
085734dd
TT
42942021-03-08 Tom Tromey <tom@tromey.com>
4295
4296 * eval.c (objc_msgcall_operation::evaluate): New method.
4297 * c-exp.h (class objc_msgcall_operation): New.
4298
e82a5afc
TT
42992021-03-08 Tom Tromey <tom@tromey.com>
4300
4301 * expop.h (class var_value_operation): New.
4302 * eval.c (var_value_operation::evaluate)
4303 (var_value_operation::evaluate_for_address)
4304 (var_value_operation::evaluate_with_coercion)
4305 (var_value_operation::evaluate_for_sizeof)
4306 (var_value_operation::evaluate_for_cast): New methods.
4307 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4308
d9ad79d8
TT
43092021-03-08 Tom Tromey <tom@tromey.com>
4310
4311 * expop.h (cxx_cast_ftype): New typedef.
4312 (cxx_cast_operation): New template.
4313 (dynamic_cast_operation, reinterpret_cast_operation): New
4314 typedefs.
4315
292382f4
TT
43162021-03-08 Tom Tromey <tom@tromey.com>
4317
4318 * expop.h (class unop_cast_type_operation): New.
4319 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4320 method.
4321
165a813a
TT
43222021-03-08 Tom Tromey <tom@tromey.com>
4323
4324 * expop.h (class unop_cast_operation): New.
4325 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4326
e5946e16
TT
43272021-03-08 Tom Tromey <tom@tromey.com>
4328
4329 * expop.h (class assign_modify_operation): New.
4330 * eval.c (eval_binop_assign_modify): No longer static.
4331 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4332
40786782
TT
43332021-03-08 Tom Tromey <tom@tromey.com>
4334
4335 * expop.h (class assign_operation): New.
4336 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4337
44b675c8
TT
43382021-03-08 Tom Tromey <tom@tromey.com>
4339
4340 * expop.h (class type_instance_operation): New.
4341 * eval.c (type_instance_operation::evaluate): New method.
4342
f6b42326
TT
43432021-03-08 Tom Tromey <tom@tromey.com>
4344
4345 * expop.h (class op_this_operation): New.
4346 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4347
cbc18219
TT
43482021-03-08 Tom Tromey <tom@tromey.com>
4349
4350 * expop.h (class unop_memval_operation)
4351 (class unop_memval_type_operation): New.
4352 * eval.c (eval_op_memval): No longer static.
4353 (unop_memval_operation::evaluate_for_address)
4354 (unop_memval_type_operation::evaluate_for_address)
4355 (unop_memval_operation::evaluate_for_sizeof)
4356 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4357 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4358 (unop_memval_type_operation::do_generate_ax): New methods.
4359
ae4bb61e
TT
43602021-03-08 Tom Tromey <tom@tromey.com>
4361
4362 * expop.h (class unop_alignof_operation): New.
4363 * eval.c (eval_op_alignof): No longer static.
4364
85d23bda
TT
43652021-03-08 Tom Tromey <tom@tromey.com>
4366
4367 * expop.h (class unop_sizeof_operation): New.
4368 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4369
14aff815
TT
43702021-03-08 Tom Tromey <tom@tromey.com>
4371
4372 * expop.h (class unop_addr_operation): New.
4373 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4374
929f3aa7
TT
43752021-03-08 Tom Tromey <tom@tromey.com>
4376
4377 * expop.h (class typeid_operation): New.
4378
0af8829e
TT
43792021-03-08 Tom Tromey <tom@tromey.com>
4380
4381 * expop.h (class decltype_operation): New.
4382
4efc574c
TT
43832021-03-08 Tom Tromey <tom@tromey.com>
4384
4385 * expop.h (class typeof_operation): New.
4386
5b5f5140
TT
43872021-03-08 Tom Tromey <tom@tromey.com>
4388
4389 * expop.h (class type_operation): New.
4390 * eval.c (eval_op_type): No longer static.
4391
876469ff
TT
43922021-03-08 Tom Tromey <tom@tromey.com>
4393
4394 * expop.h (class unop_ind_base_operation)
4395 (class unop_ind_operation): New.
4396 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4397 (unop_ind_base_operation::evaluate_for_address)
4398 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4399 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4400
6d89e296
TT
44012021-03-08 Tom Tromey <tom@tromey.com>
4402
4403 * expop.h (unop_incr_operation): New template.
4404 (preinc_operation, predec_operation, postinc_operation)
4405 (postdec_operation): New typedefs.
4406 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4407 (eval_op_postdec): No longer static.
4408
9307d17b
TT
44092021-03-08 Tom Tromey <tom@tromey.com>
4410
4411 * expop.h (unary_ftype): New typedef.
4412 (unop_operation, usual_ax_binop_operation): New templates.
4413 (unary_plus_operation, unary_neg_operation)
4414 (unary_complement_operation, unary_logical_not_operation): New
4415 typedefs.
4416 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4417 (eval_op_lognot): No longer static.
4418 * ax-gdb.c (gen_expr_unop): New function.
4419
ae64ba58
TT
44202021-03-08 Tom Tromey <tom@tromey.com>
4421
4422 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4423
d4eff4c1
TT
44242021-03-08 Tom Tromey <tom@tromey.com>
4425
4426 * expop.h (class repeat_operation): New.
4427 * eval.c (eval_op_repeat): No longer static. Remove "op"
4428 parameter.
4429 (evaluate_subexp_standard): Update.
4430 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4431
46916f2b
TT
44322021-03-08 Tom Tromey <tom@tromey.com>
4433
4434 * expop.h (class comparison_operation): New.
4435 (equal_operation, notequal_operation, less_operation)
4436 (gtr_operation, geq_operation, leq_operation): New typedefs.
4437 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4438 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4439
224d6424
TT
44402021-03-08 Tom Tromey <tom@tromey.com>
4441
4442 * expop.h (class subscript_operation): New.
4443 * eval.c (eval_op_subscript): No longer static.
4444
373907ff
TT
44452021-03-08 Tom Tromey <tom@tromey.com>
4446
4447 * expop.h (class binop_operation, class usual_ax_binop_operation):
4448 New.
4449 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4450 (div_operation, rem_operation, lsh_operation, rsh_operation)
4451 (bitwise_and_operation, bitwise_ior_operation)
4452 (bitwise_xor_operation): New typedefs.
4453 * eval.c (eval_op_binary): No longer static.
4454
5133d78b
TT
44552021-03-08 Tom Tromey <tom@tromey.com>
4456
4457 * expop.h (class sub_operation): New.
4458 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4459 (evaluate_subexp_standard): Update.
4460
a94323b6
TT
44612021-03-08 Tom Tromey <tom@tromey.com>
4462
4463 * expop.h (class add_operation): New.
4464 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4465 (evaluate_subexp_standard): Update.
4466
e51e26a0
TT
44672021-03-08 Tom Tromey <tom@tromey.com>
4468
4469 * expop.h (class concat_operation): New.
4470 * eval.c (eval_op_concat): No longer static. Remove "op"
4471 parameter.
4472 (evaluate_subexp_standard): Update.
4473
07f724a8
TT
44742021-03-08 Tom Tromey <tom@tromey.com>
4475
4476 * expop.h (class structop_member_operation)
4477 (class structop_mptr_operation): New.
4478 * eval.c (eval_op_member): No longer static.
4479
ab0609be
TT
44802021-03-08 Tom Tromey <tom@tromey.com>
4481
4482 * expop.h (class structop_ptr_operation): New.
4483 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4484 parameter.
4485
808b22cf
TT
44862021-03-08 Tom Tromey <tom@tromey.com>
4487
4488 * expop.h (class structop_base_operation)
4489 (class structop_operation): New.
4490 * eval.c (eval_op_structop_struct): No longer static.
4491
8cfd3e95
TT
44922021-03-08 Tom Tromey <tom@tromey.com>
4493
4494 * expop.h (class complex_operation): New.
4495
09db3700
TT
44962021-03-08 Tom Tromey <tom@tromey.com>
4497
4498 * eval.c (eval_op_objc_selector): No longer static.
4499 * c-exp.h (class objc_selector_operation): New.
4500
06dc61b9
TT
45012021-03-08 Tom Tromey <tom@tromey.com>
4502
4503 * eval.c: Include c-exp.h.
4504 * c-exp.h (class objc_nsstring_operation): New.
4505
72d0a711
TT
45062021-03-08 Tom Tromey <tom@tromey.com>
4507
4508 * c-lang.c (c_string_operation::evaluate): New method.
4509 * c-exp.h: New file.
4510
9186293f
TT
45112021-03-08 Tom Tromey <tom@tromey.com>
4512
4513 * expop.h (class ternop_cond_operation): New.
4514 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4515
1594e0bb
TT
45162021-03-08 Tom Tromey <tom@tromey.com>
4517
4518 * expop.h (class ternop_slice_operation): New.
4519 * eval.c (eval_op_ternop): No longer static.
4520
b50db09f
TT
45212021-03-08 Tom Tromey <tom@tromey.com>
4522
4523 * expop.h (class string_operation): New.
4524 * eval.c (eval_op_string): No longer static.
4525
e6e01e16
TT
45262021-03-08 Tom Tromey <tom@tromey.com>
4527
4528 * expop.h (class internalvar_operation): New.
4529 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4530
e6985c5e
TT
45312021-03-08 Tom Tromey <tom@tromey.com>
4532
4533 * expop.h (class bool_operation): New.
4534
55bdbff8
TT
45352021-03-08 Tom Tromey <tom@tromey.com>
4536
4537 * expop.h (class register_operation): New.
4538 * eval.c (eval_op_register): No longer static.
4539 * ax-gdb.c (register_operation::do_generate_ax): New method.
4540
247d935b
TT
45412021-03-08 Tom Tromey <tom@tromey.com>
4542
4543 * expop.h (class last_operation): New.
4544
17679395
TT
45452021-03-08 Tom Tromey <tom@tromey.com>
4546
4547 * expop.h (class func_static_var_operation): New.
4548 * eval.c (eval_op_func_static_var): No longer static.
4549
b5cc3923
TT
45502021-03-08 Tom Tromey <tom@tromey.com>
4551
4552 * expop.h (class var_entry_value_operation): New.
4553 * eval.c (eval_op_var_entry_value): No longer static.
4554
0c8effa3
TT
45552021-03-08 Tom Tromey <tom@tromey.com>
4556
4557 * expression.h (class operation) <set_outermost>: New method.
4558 * expop.h (class var_msym_value_operation): New.
4559 * eval.c (eval_op_var_msym_value): No longer static.
4560 (var_msym_value_operation::evaluate_for_address)
4561 (var_msym_value_operation::evaluate_for_sizeof)
4562 (var_msym_value_operation::evaluate_for_cast): New methods.
4563 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4564 method.
4565
d336c29e
TT
45662021-03-08 Tom Tromey <tom@tromey.com>
4567
4568 * expop.h (class long_const_operation): New.
4569 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4570
d5ab122c
TT
45712021-03-08 Tom Tromey <tom@tromey.com>
4572
4573 * expop.h (class scope_operation): New.
4574 * eval.c (eval_op_scope): No longer static.
4575 (scope_operation::evaluate_for_address): New method.
4576 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4577
cae26a0c
TT
45782021-03-08 Tom Tromey <tom@tromey.com>
4579
4580 * expprint.c (float_const_operation::dump): New method.
4581 * expop.h (float_data): New typedef.
4582 (class float_const_operation): New.
4583
75f9892d
TT
45842021-03-08 Tom Tromey <tom@tromey.com>
4585
4586 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4587 * ax-gdb.c (gen_expr_binop): New function.
4588 (gen_expr_structop): Likewise.
4589
de401988
TT
45902021-03-08 Tom Tromey <tom@tromey.com>
4591
4592 * expprint.c (expr::dump_for_expression): New functions.
4593 * expop.h (dump_for_expression): New overloads.
4594 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4595 Update.
4596
e2803273
TT
45972021-03-08 Tom Tromey <tom@tromey.com>
4598
4599 * expression.h (expr::operation): New class.
4600 (expr::make_operation): New function.
4601 (expr::operation_up): New typedef.
4602 * expop.h: New file.
4603 * eval.c (operation::evaluate_for_cast)
4604 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4605 New methods.
4606 * ax-gdb.c (operation::generate_ax): New method.
4607
e18c58f2
TT
46082021-03-08 Tom Tromey <tom@tromey.com>
4609
4610 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4611 (gen_expr_binop_rest): New overload.
4612
c0d7ed8c
TT
46132021-03-08 Tom Tromey <tom@tromey.com>
4614
4615 * eval.c (eval_multi_subscript): New function.
4616 (evaluate_subexp_standard): Use it.
4617
dd5fd283
TT
46182021-03-08 Tom Tromey <tom@tromey.com>
4619
4620 * ada-lang.c (ada_binop_exp): New function.
4621 (ada_evaluate_subexp): Use it.
4622
3848abd6
TT
46232021-03-08 Tom Tromey <tom@tromey.com>
4624
4625 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4626 parameters.
4627 (ada_evaluate_subexp): Use it.
4628
38dc70cf
TT
46292021-03-08 Tom Tromey <tom@tromey.com>
4630
4631 * ada-lang.c (ada_binop_minmax): New function.
4632 (ada_evaluate_subexp): Use it.
4633
b84564fc
TT
46342021-03-08 Tom Tromey <tom@tromey.com>
4635
4636 * ada-lang.c (ada_unop_atr): New function.
4637 (ada_evaluate_subexp): Use it.
4638
b467efaa
TT
46392021-03-08 Tom Tromey <tom@tromey.com>
4640
4641 * ada-lang.c (ada_binop_in_bounds): New function.
4642 (ada_evaluate_subexp): Use it.
4643
5ce19db8
TT
46442021-03-08 Tom Tromey <tom@tromey.com>
4645
4646 * ada-lang.c (ada_ternop_slice): New function.
4647 (ada_evaluate_subexp): Use it.
4648
214b13ac
TT
46492021-03-08 Tom Tromey <tom@tromey.com>
4650
4651 * ada-lang.c (ada_equal_binop): New function.
4652 (ada_evaluate_subexp): Use it.
4653
faa1dfd7
TT
46542021-03-08 Tom Tromey <tom@tromey.com>
4655
4656 * ada-lang.c (ada_mult_binop): New function.
4657 (ada_evaluate_subexp): Use it.
4658
d05e24e6
TT
46592021-03-08 Tom Tromey <tom@tromey.com>
4660
4661 * ada-lang.c (ada_abs): New function.
4662 (ada_evaluate_subexp): Use it.
4663
68c75735
TT
46642021-03-08 Tom Tromey <tom@tromey.com>
4665
4666 * ada-lang.c (ada_atr_size): New function.
4667 (ada_evaluate_subexp): Use it.
4668
020dbabe
TT
46692021-03-08 Tom Tromey <tom@tromey.com>
4670
4671 * ada-lang.c (ada_atr_tag): New function.
4672 (ada_evaluate_subexp): Use it.
4673
7efc87ff
TT
46742021-03-08 Tom Tromey <tom@tromey.com>
4675
4676 * ada-lang.c (ada_unop_in_range): New function.
4677 (ada_evaluate_subexp): Use it.
4678
82390ab8
TT
46792021-03-08 Tom Tromey <tom@tromey.com>
4680
4681 * ada-lang.c (ada_unop_neg): New function.
4682 (ada_evaluate_subexp): Use it.
4683
62d4bd94
TT
46842021-03-08 Tom Tromey <tom@tromey.com>
4685
4686 * ada-lang.c (eval_ternop_in_range): New function.
4687 (ada_evaluate_subexp): Use it.
4688
3634f669
TT
46892021-03-08 Tom Tromey <tom@tromey.com>
4690
4691 * opencl-lang.c (eval_opencl_assign): New function.
4692 (evaluate_subexp_opencl): Use it.
4693
5e80600e
TT
46942021-03-08 Tom Tromey <tom@tromey.com>
4695
4696 * eval.c (eval_op_objc_msgcall): New function.
4697 (evaluate_subexp_standard): Use it.
4698
fb5ba2ab
TT
46992021-03-08 Tom Tromey <tom@tromey.com>
4700
4701 * eval.c (eval_binop_assign_modify): New function.
4702 (evaluate_subexp_standard): Use it.
4703
a49881f7
TT
47042021-03-08 Tom Tromey <tom@tromey.com>
4705
4706 * m2-lang.c (eval_op_m2_subscript): New function.
4707 (evaluate_subexp_modula2): Use it.
4708
41bdced5
TT
47092021-03-08 Tom Tromey <tom@tromey.com>
4710
4711 * m2-lang.c (eval_op_m2_high): New function.
4712 (evaluate_subexp_modula2): Use it.
4713
13ea014a
TT
47142021-03-08 Tom Tromey <tom@tromey.com>
4715
4716 * eval.c (evaluate_subexp_for_address_base): New function.
4717 (evaluate_subexp_for_address): Use it.
4718 (evaluate_subexp_for_sizeof_base): New function.
4719 (evaluate_subexp_for_sizeof): Use it.
4720
1fa41fc7
TT
47212021-03-08 Tom Tromey <tom@tromey.com>
4722
4723 * rust-lang.c (eval_op_rust_structop): New function.
4724 (rust_evaluate_subexp): Use it.
4725
575cae23
TT
47262021-03-08 Tom Tromey <tom@tromey.com>
4727
4728 * rust-lang.c (eval_op_rust_struct_anon): New function.
4729 (rust_evaluate_subexp): Use it.
4730
05104233
TT
47312021-03-08 Tom Tromey <tom@tromey.com>
4732
4733 * rust-lang.c (eval_op_rust_array): New function.
4734 (rust_evaluate_subexp): Use it.
4735
6fa9831f
TT
47362021-03-08 Tom Tromey <tom@tromey.com>
4737
4738 * rust-lang.c (eval_op_rust_complement): New function.
4739 (rust_evaluate_subexp): Use it.
4740
d123f9e4
TT
47412021-03-08 Tom Tromey <tom@tromey.com>
4742
4743 * rust-lang.c (eval_op_rust_ind): New function.
4744 (rust_evaluate_subexp): Use it.
4745
984af2cb
TT
47462021-03-08 Tom Tromey <tom@tromey.com>
4747
4748 * rust-lang.c (rust_subscript): Change parameters.
4749 (rust_evaluate_subexp): Update.
4750
d148f803
TT
47512021-03-08 Tom Tromey <tom@tromey.com>
4752
4753 * rust-lang.c (rust_range): Change parameters.
4754 (rust_evaluate_subexp): Update.
4755
9cbd1c20
TT
47562021-03-08 Tom Tromey <tom@tromey.com>
4757
4758 * f-lang.c (eval_op_f_allocated): New function.
4759 (evaluate_subexp_f): Use it.
4760
3c18c49c
TT
47612021-03-08 Tom Tromey <tom@tromey.com>
4762
4763 * f-lang.c (fortran_require_array): New function.
4764 (evaluate_subexp_f): Use it.
4765
216f6fcb
TT
47662021-03-08 Tom Tromey <tom@tromey.com>
4767
4768 * f-lang.c (eval_op_f_kind): New function.
4769 (evaluate_subexp_f): Use it.
4770
00f2db6f
TT
47712021-03-08 Tom Tromey <tom@tromey.com>
4772
4773 * f-lang.c (eval_op_f_cmplx): New function.
4774 (evaluate_subexp_f): Use it.
4775
93b2b5fa
TT
47762021-03-08 Tom Tromey <tom@tromey.com>
4777
4778 * f-lang.c (eval_op_f_modulo): New function.
4779 (evaluate_subexp_f): Use it.
4780
9f1a1f3c
TT
47812021-03-08 Tom Tromey <tom@tromey.com>
4782
4783 * f-lang.c (eval_op_f_floor): New function.
4784 (evaluate_subexp_f): Use it.
4785
3dc41f3c
TT
47862021-03-08 Tom Tromey <tom@tromey.com>
4787
4788 * f-lang.c (eval_op_f_ceil): New function.
4789 (evaluate_subexp_f): Use it.
4790
e08109f2
TT
47912021-03-08 Tom Tromey <tom@tromey.com>
4792
4793 * f-lang.c (eval_op_f_mod): New function.
4794 (evaluate_subexp_f): Use it.
4795
cc05c68e
TT
47962021-03-08 Tom Tromey <tom@tromey.com>
4797
4798 * f-lang.c (eval_op_f_abs): New function.
4799 (evaluate_subexp_f): Use it.
4800
aec95807
TT
48012021-03-08 Tom Tromey <tom@tromey.com>
4802
4803 * eval.c (eval_op_type): New function.
4804 (evaluate_subexp_standard): Use it.
4805
a220ead5
TT
48062021-03-08 Tom Tromey <tom@tromey.com>
4807
4808 * eval.c (eval_op_postdec): New function.
4809 (evaluate_subexp_standard): Use it.
4810
abffe116
TT
48112021-03-08 Tom Tromey <tom@tromey.com>
4812
4813 * eval.c (eval_op_postinc): New function.
4814 (evaluate_subexp_standard): Use it.
4815
9e1361b7
TT
48162021-03-08 Tom Tromey <tom@tromey.com>
4817
4818 * eval.c (eval_op_predec): New file.
4819 (evaluate_subexp_standard): Use it.
4820
00f50884
TT
48212021-03-08 Tom Tromey <tom@tromey.com>
4822
4823 * eval.c (eval_op_preinc): New function.
4824 (evaluate_subexp_standard): Use it.
4825
3aef2a07
TT
48262021-03-08 Tom Tromey <tom@tromey.com>
4827
4828 * eval.c (eval_op_memval): New function.
4829 (evaluate_subexp_standard): Use it.
4830
acee9468
TT
48312021-03-08 Tom Tromey <tom@tromey.com>
4832
4833 * eval.c (eval_op_alignof): New function.
4834 (evaluate_subexp_standard): Use it.
4835
786f70ee
TT
48362021-03-08 Tom Tromey <tom@tromey.com>
4837
4838 * eval.c (eval_op_ind): New function.
4839 (evaluate_subexp_standard): Use it.
4840
24338fb9
TT
48412021-03-08 Tom Tromey <tom@tromey.com>
4842
4843 * eval.c (eval_op_lognot): New function.
4844 (evaluate_subexp_standard): Use it.
4845
1f09ec81
TT
48462021-03-08 Tom Tromey <tom@tromey.com>
4847
4848 * eval.c (eval_op_complement): New function.
4849 (evaluate_subexp_standard): Use it.
4850
606d105f
TT
48512021-03-08 Tom Tromey <tom@tromey.com>
4852
4853 * eval.c (eval_op_neg): New function.
4854 (evaluate_subexp_standard): Use it.
4855
39f288be
TT
48562021-03-08 Tom Tromey <tom@tromey.com>
4857
4858 * eval.c (eval_op_plus): New function.
4859 (evaluate_subexp_standard): Use it.
4860
eed70b1c
TT
48612021-03-08 Tom Tromey <tom@tromey.com>
4862
4863 * eval.c (eval_op_repeat): New function.
4864 (evaluate_subexp_standard): Use it.
4865
60cdd487
TT
48662021-03-08 Tom Tromey <tom@tromey.com>
4867
4868 * eval.c (eval_op_leq): New function.
4869 (evaluate_subexp_standard): Use it.
4870
96e3efd9
TT
48712021-03-08 Tom Tromey <tom@tromey.com>
4872
4873 * eval.c (eval_op_geq): New function.
4874 (evaluate_subexp_standard): Use it.
4875
1f78d732
TT
48762021-03-08 Tom Tromey <tom@tromey.com>
4877
4878 * eval.c (eval_op_gtr): New function.
4879 (evaluate_subexp_standard): Use it.
4880
6cad1349
TT
48812021-03-08 Tom Tromey <tom@tromey.com>
4882
4883 * eval.c (eval_op_less): New function.
4884 (evaluate_subexp_standard): Use it.
4885
1fcb3559
TT
48862021-03-08 Tom Tromey <tom@tromey.com>
4887
4888 * eval.c (eval_op_notequal): New function.
4889 (evaluate_subexp_standard): Use it.
4890
0cc96de8
TT
48912021-03-08 Tom Tromey <tom@tromey.com>
4892
4893 * eval.c (eval_op_equal): New function.
4894 (evaluate_subexp_standard): Use it.
4895
288d26bc
TT
48962021-03-08 Tom Tromey <tom@tromey.com>
4897
4898 * eval.c (eval_op_subscript): New function.
4899 (evaluate_subexp_standard): Use it.
4900
7cdcdd02
TT
49012021-03-08 Tom Tromey <tom@tromey.com>
4902
4903 * eval.c (eval_op_binary): New function.
4904 (evaluate_subexp_standard): Use it.
4905
d9790e22
TT
49062021-03-08 Tom Tromey <tom@tromey.com>
4907
4908 * eval.c (eval_op_sub): New function.
4909 (evaluate_subexp_standard): Use it.
4910
aedaf9ac
TT
49112021-03-08 Tom Tromey <tom@tromey.com>
4912
4913 * eval.c (eval_op_add): New function.
4914 (evaluate_subexp_standard): Use it.
4915
b7a96ed2
TT
49162021-03-08 Tom Tromey <tom@tromey.com>
4917
4918 * eval.c (eval_op_member): New function.
4919 (evaluate_subexp_standard): Use it.
4920
fb461aa3
TT
49212021-03-08 Tom Tromey <tom@tromey.com>
4922
4923 * eval.c (eval_op_structop_ptr): New function.
4924 (evaluate_subexp_standard): Use it.
4925
3e96c4fc
TT
49262021-03-08 Tom Tromey <tom@tromey.com>
4927
4928 * eval.c (eval_op_structop_struct): New function.
4929 (evaluate_subexp_standard): Use it.
4930
f960a617
TT
49312021-03-08 Tom Tromey <tom@tromey.com>
4932
4933 * eval.c (eval_op_ternop): New function.
4934 (evaluate_subexp_standard): Use it.
4935
5c2f201e
TT
49362021-03-08 Tom Tromey <tom@tromey.com>
4937
4938 * eval.c (eval_op_concat): New function.
4939 (evaluate_subexp_standard): Use it.
4940
f871bae1
TT
49412021-03-08 Tom Tromey <tom@tromey.com>
4942
4943 * eval.c (eval_op_objc_selector): New function.
4944 (evaluate_subexp_standard): Use it.
4945
14a1c64a
TT
49462021-03-08 Tom Tromey <tom@tromey.com>
4947
4948 * eval.c (eval_op_string): New function.
4949 (evaluate_subexp_standard): Use it.
4950
ffff730b
TT
49512021-03-08 Tom Tromey <tom@tromey.com>
4952
4953 * eval.c (eval_op_register): New function.
4954 (evaluate_subexp_standard): Use it.
4955
9b1d8af6
TT
49562021-03-08 Tom Tromey <tom@tromey.com>
4957
4958 * eval.c (eval_op_func_static_var): New function.
4959 (evaluate_subexp_standard): Use it.
4960
c0df9289
TT
49612021-03-08 Tom Tromey <tom@tromey.com>
4962
4963 * eval.c (eval_op_var_msym_value): New function.
4964 (evaluate_subexp_standard): Use it.
4965
50b98adc
TT
49662021-03-08 Tom Tromey <tom@tromey.com>
4967
4968 * eval.c (eval_op_var_entry_value): New function.
4969 (evaluate_subexp_standard): Use it.
4970
ea2d29f7
TT
49712021-03-08 Tom Tromey <tom@tromey.com>
4972
4973 * eval.c (eval_op_scope): New function.
4974 (evaluate_subexp_standard): Use it.
4975
01573d73
TT
49762021-03-06 Chernov Sergey <klen_s@mail.ru>
4977
4978 PR gdb/27528:
4979 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4980
9938d15a
TT
49812021-03-06 Tom Tromey <tom@tromey.com>
4982
4983 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4984 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4985 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4986 (locate_dwz_sections, dwz_search_other_debugdirs)
4987 (dwarf2_get_dwz_file): Move to dwz.c.
4988 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4989 read.h.
4990 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4991 (dwarf2_get_dwz_file): Move from read.c.
4992
18035655
TT
49932021-03-06 Tom Tromey <tom@tromey.com>
4994
4995 * debuginfod-support.h: Include scoped_fd.h.
4996
a7308ce0
TT
49972021-03-06 Tom Tromey <tom@tromey.com>
4998
4999 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5000 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5001 (get_abbrev_section_for_cu, read_attribute_value)
5002 (get_debug_line_section): Update.
5003 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5004
fbedd546
TT
50052021-03-06 Tom Tromey <tom@tromey.com>
5006
5007 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5008 method.
5009 * dwarf2/read.c (section_is_p): Remove.
5010 (dwarf2_per_bfd::locate_sections)
5011 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5012 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5013 (dwarf2_locate_common_dwp_sections)
5014 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5015 Update.
5016
c2a62a3d
TT
50172021-03-06 Tom Tromey <tom@tromey.com>
5018
5019 * xcoffread.c: Include sect-names.h.
5020 * symfile.h (struct dwarf2_section_names, struct
5021 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5022 * dwarf2/sect-names.h: New file, from symfile.h.
5023 * dwarf2/read.c: Include sect-names.h.
5024
4444f407
TT
50252021-03-06 Tom Tromey <tom@tromey.com>
5026
5027 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5028 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5029 (abbrev_table::read): Update.
5030 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5031 (struct abbrev_info): Reformat.
5032 <attrs>: Now an array.
5033 (struct abbrev_table) <alloc_abbrev>: Remove.
5034
dd99cf0c
WP
50352021-03-06 Weimin Pan <weimin.pan@oracle.com>
5036
5037 * ctfread.c (ctf_psymtab_add_enums): New function.
5038 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5039
844be3f2
WP
50402021-03-06 Weimin Pan <weimin.pan@oracle.com>
5041
5042 * ctfread.c (read_func_kind_type): Set up function arguments.
5043
b2668f28
AB
50442021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5045 Andrew Burgess <andrew.burgess@embecosm.com>
5046
5047 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5048 includes.
5049 (riscv_csrset): New static global.
5050 (riscv_update_csrmap): New function.
5051 (riscv_iterate_over_regset_sections): Process CSRs.
5052
d782d24b
AB
50532021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5054
5055 * riscv-tdep.c (riscv_feature_name_csr): Define.
5056 (riscv_feature_name_cpu): Define.
5057 (riscv_feature_name_fpu): Define.
5058 (riscv_feature_name_virtual): Define.
5059 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5060 (riscv_freg_feature): Use riscv_feature_name_fpu.
5061 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5062 (riscv_csr_feature): Use riscv_feature_name_csr.
5063 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5064
fb8f3fc0
AB
50652021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5066 Craig Blackmore <craig.blackmore@embecosm.com>
5067
5068 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5069 (ALLDEPFILES): Add riscv-none-tdep.c.
5070 * configure: Regenerate.
5071 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5072 support.
5073 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5074 * elf-none-tdep.c: New file.
5075 * elf-none-tdep.h: New file.
5076 * riscv-none-tdep.c: New file.
5077
95ce627a
AB
50782021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5079 Andrew Burgess <andrew.burgess@embecosm.com>
5080
5081 * corelow.c: Add 'xml-tdesc.h' include.
5082 (core_target::read_description): Load the target description from
5083 the core file when possible.
5084 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5085 note.
5086 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5087 (gcore_elf_make_tdesc_note): New function.
5088 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5089 * linux-tdep.c (linux_make_corefile_notes): Add target description
5090 note.
5091
f3a5df7b
AB
50922021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * Makefile.in (SFILES): Add gcore-elf.c.
5095 (HFILES_NO_SRCDIR): Add gcore-elf.h
5096 * configure: Regenerate.
5097 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5098 support.
5099 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5100 (struct fbsd_collect_regset_section_cb_data): Delete.
5101 (fbsd_collect_regset_section_cb): Delete.
5102 (fbsd_collect_thread_registers): Delete.
5103 (struct fbsd_corefile_thread_data): Delete.
5104 (fbsd_corefile_thread): Delete.
5105 (fbsd_make_corefile_notes): Call
5106 gcore_elf_build_thread_register_notes instead of the now deleted
5107 FreeBSD code.
5108 * gcore-elf.c: New file, the content was moved here from
5109 linux-tdep.c, functions were renamed and given minor cleanup.
5110 * gcore-elf.h: New file.
5111 * gcore.c (gcore_find_signalled_thread): Moved here from
5112 linux-tdep.c and given a new name. Minor cleanups.
5113 * gcore.h (gcore_find_signalled_thread): Declare.
5114 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5115 (struct linux_collect_regset_section_cb_data): Delete.
5116 (linux_collect_regset_section_cb): Delete.
5117 (linux_collect_thread_registers): Delete.
5118 (linux_corefile_thread): Call
5119 gcore_elf_build_thread_register_notes.
5120 (find_signalled_thread): Delete.
5121 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5122
d1e93af6
SM
51232021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5124
5125 PR gdb/27147
5126 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5127 process_stratum_target parameter,
5128 sparc_store_inferior_registers): update callers.
5129 * sparc-nat.c (sparc_fetch_inferior_registers,
5130 sparc_store_inferior_registers): Add process_stratum_target
5131 parameter. Switch current thread before calling
5132 sparc_supply_gregset / sparc_collect_rwindow.
5133 (sparc_store_inferior_registers): Likewise.
5134 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5135 (sparc32obsd_collect_uthread): Likewise.
5136 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5137 Add assertion.
5138 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5139 sparc64obsd_supply_uthread): Add assertion.
5140
1178743e
TT
51412021-03-04 Tom Tromey <tromey@adacore.com>
5142
5143 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5144 (aux_add_nonlocal_symbols): Update.
5145 (ada_add_block_symbols): Change "found_sym" to bool.
5146
1bfa81ac
TT
51472021-03-03 Tom Tromey <tromey@adacore.com>
5148
5149 * ada-lang.c (ada_resolve_function): Update comment.
5150 (is_nonfunction, add_symbols_from_enclosing_procs)
5151 (remove_extra_symbols): Likewise.
5152 (struct match_data): Add constructor, initializers.
5153 (add_nonlocal_symbols): Remove memset.
5154 (aux_add_nonlocal_symbols): Update comment.
5155 (ada_add_block_renamings, add_nonlocal_symbols)
5156 (ada_add_all_symbols): Likewise.
5157 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5158
bbcdf9ab
TT
51592021-03-02 Tom Tromey <tromey@adacore.com>
5160
5161 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5162 (cast_to_gnat_encoded_fixed_point_type): Remove.
5163 (ada_value_cast, ada_evaluate_subexp): Update.
5164 (gnat_encoded_fixed_point_type_info)
5165 (ada_is_gnat_encoded_fixed_point_type)
5166 (gnat_encoded_fixed_point_delta)
5167 (gnat_encoded_fixed_point_scaling_factor): Remove.
5168 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5169 (gnat_encoded_fixed_point_delta)
5170 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5171 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5172 (ada_print_type): Update.
5173 * ada-valprint.c (ada_value_print_num): Update.
5174 * dwarf2/read.c (ada_get_gnat_encoded_number)
5175 (ada_get_gnat_encoded_ratio): New functions.
5176 (finish_fixed_point_type): Use them. Add parameters.
5177 (GNAT_FIXED_POINT_SUFFIX): New define.
5178 (gnat_encoded_fixed_point_type_info): New function.
5179 (read_base_type): Handle gnat encodings.
5180
5f9febe0
TT
51812021-03-02 Tom Tromey <tromey@adacore.com>
5182
5183 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5184 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5185 std::string.
5186 (GROW_VECT): Remove.
5187 (grow_vect): Remove.
5188
d1183b06
TT
51892021-03-02 Tom Tromey <tromey@adacore.com>
5190
5191 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5192 * ada-lang.c (resolve_subexp): Update.
5193 (ada_resolve_function): Accept a vector.
5194 (is_nonfunction, add_defn_to_vec)
5195 (add_symbols_from_enclosing_procs): Likewise.
5196 (num_defns_collected, defns_collected): Remove.
5197 (remove_extra_symbols): Return a vector.
5198 (remove_irrelevant_renamings): Return void.
5199 (ada_add_local_symbols): Accept a vector.
5200 (struct match_data) <obstackp>: Remove.
5201 <resultp>: New member.
5202 (aux_add_nonlocal_symbols): Update.
5203 (ada_add_block_renamings, add_nonlocal_symbols)
5204 (ada_add_all_symbols): Accept a vector.
5205 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5206 vector.
5207 (ada_lookup_symbol): Update.
5208 (ada_add_block_symbols): Accept a vector.
5209 (get_var_value, iterate_over_symbols): Update.
5210 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5211 Update.
5212
886d459f
TT
52132021-03-02 Tom Tromey <tromey@adacore.com>
5214
5215 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5216
bdcccc56
TT
52172021-03-02 Tom Tromey <tromey@adacore.com>
5218
5219 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5220 auto_obstack.
5221 <root>: Initialize.
5222 (ada_pspace_data): Remove destructor.
5223 <sym_cache>: Now a unique_ptr.
5224 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5225 (ada_get_symbol_cache): Use 'new'.
5226 (ada_clear_symbol_cache): Rewrite.
5227
1228719f
TT
52282021-03-02 Tom Tromey <tromey@adacore.com>
5229
5230 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5231 is null.
5232
bb3a4efe
LS
52332021-02-27 Lancelot Six <lsix@lancelotsix.com>
5234
5235 PR gdb/27393
5236 * source.c (add_path): Skip empty dirnames.
5237
26b43ca6 52382021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5239
5240 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5241 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5242
dffdd8b5
SM
52432021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5244
5245 PR gdb/26861
5246 * target.c (target_mourn_inferior): Only compare pids in
5247 target_mourn_inferior.
5248
64d38fdd
JM
52492021-02-25 Jan Matyas <jmatyas@codasip.com>
5250
5251 PR gdb/26819
5252 * remote.c (remote_target::start_remote): Ensure the single
5253 thread, automatically added for remote targets without the
5254 concept of threading, is initially in set to the "resumed"
5255 state.
5256 * remote.c (remote_target::add_current_inferior_and_thread):
5257 Add return value - return the main thread.
5258
2450ad54
JV
52592021-02-25 Jan Vrany <jan.vrany@labware.com>
5260
5261 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5262 (mi_tsv_created): Likewise.
5263 (mi_tsv_deleted): Likewise.
5264
30c80d88
TV
52652021-02-25 Tom de Vries <tdevries@suse.de>
5266
5267 PR symtab/27354
5268 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5269 section_kind for &dwo_file->sections.info.
5270
68337b8b
AB
52712021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5272
5273 PR fortran/26155
5274 * f-lang.c (fortran_argument_convert): Delete declaration.
5275 (fortran_prepare_argument): New function.
5276 (evaluate_subexp_f): Move logic to new function
5277 fortran_prepare_argument.
5278
faeb9f13
AB
52792021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5280
5281 * f-exp.y (f77_keywords): Add 'associated'.
5282 * f-lang.c (fortran_associated): New function.
5283 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5284 (operator_length_f): Likewise.
5285 (print_unop_or_binop_subexp_f): New function.
5286 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5287 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5288 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5289 (operator_check_f): Likewise.
5290 * std-operator.def: Add FORTRAN_ASSOCIATED.
5291
170f4b23
AB
52922021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5293
5294 * f-exp.y (fortran_operators): Add ".xor.".
5295
aa659cfa
TV
52962021-02-24 Tom de Vries <tdevries@suse.de>
5297
5298 PR symtab/27336
5299 * dwarf2/attribute.c (attribute::form_is_signed): New function
5300 factored out of ...
5301 * dwarf2/attribute.h (attribute::as_signed): ... here.
5302 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5303 (attribute::form_is_signed): Declare.
5304 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5305 for DW_AT_decl_file.
5306
268c77c1
KB
53072021-02-24 Kevin Buettner <kevinb@redhat.com>
5308
5309 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5310 order for <sys/ptrace.h> and <asm/ptrace.h>.
5311
665af52e
KB
53122021-02-24 Kevin Buettner <kevinb@redhat.com>
5313
5314 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5315 <sys/ptrace.h>.
5316
dd80d750
AB
53172021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5318
5319 * exec.c (set_section_command): Move variable declarations into
5320 the function body, and use std::string instead of a fixed size
5321 buffer.
5322
336aa7b7
AB
53232021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5324
5325 * exec.c (exec_target::get_section_table): Delete member function.
5326 (section_table_read_available_memory): Use current_top_target, not
5327 just the exec_ops target.
5328 * target-delegates.c: Regenerate.
5329 * target.c (default_get_section_table): New function.
5330 * target.h (target_ops::get_section_table): Change default
5331 behaviour to call default_get_section_table.
5332 (default_get_section_table): Declare.
5333
02f7d26b
AB
53342021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5335
5336 * exec.c (exec_target::close): Call new clear_target_sections
5337 function.
5338 (program_space::add_target_sections): Update name of member
5339 variable.
5340 (program_space::add_target_sections): Update name of member
5341 variable.
5342 (program_space::remove_target_sections): Likewise.
5343 (exec_one_fork): Use new target_sections member function.
5344 (exec_target::get_section_table): Likewise.
5345 (exec_target::files_info): Likewise.
5346 (set_section_command): Likewise.
5347 (exec_set_section_address): Likewise.
5348 (exec_target::has_memory): Use new target_sections member
5349 function.
5350 * progspace.h (program_space::clear_target_sections): New member
5351 function.
5352 (program_space::target_sections): Rename member variable to
5353 m_target_sections, replace with a new member function.
5354 (program_space::m_target_sections): New member variable.
5355 * solib-dsbt.c (scan_dyntag): Use new member function.
5356 * solib-svr4.c (scan_dyntag): Likewise.
5357
19cf757a
AB
53582021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5359
5360 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5361 return type const.
5362 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5363 (section_table_read_available_memory): Make local const.
5364 (exec_target::xfer_partial): Make local const.
5365 (print_section_info): Make parameter const.
5366 * gdb/exec.h (print_section_info): Likewise.
5367 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5368 const.
5369 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5370 Likewise.
5371 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5372 Likewise.
5373 * gdb/s390-tdep.c (s390_load): Likewise.
5374 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5375 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5376 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5377 Rename to...
5378 (target_debug_print_const_target_section_table_p): ...this.
5379 * gdb/target-delegates.c: Regenerate.
5380 * gdb/target.c (target_get_section_table): Make return type const.
5381 (target_section_by_addr): Likewise. Also make some locals const.
5382 (memory_xfer_partial_1): Make some locals const.
5383 * gdb/target.h (struct target_ops) <get_section_table>: Make
5384 return type const.
5385 (target_section_by_addr): Likewise.
5386 (target_get_section_table): Likewise.
5387
02a79309
AB
53882021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5389
5390 * NEWS: Mention new 'maint info target-sections' command.
5391 * maint.c (maintenance_info_target_sections): New function.
5392 (_initialize_maint_cmds): Register new command.
5393
895b7b4e
AB
53942021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5397 (riscv_features_from_bfd): ...this. Change parameter type to
5398 'bfd*', and update as required.
5399 (riscv_find_default_target_description): Update call to
5400 riscv_features_from_bfd. Select a default xlen based on
5401 info.bfd_arch_info.
5402 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5403
bc3c0632
AB
54042021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5405
5406 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5407 dynamic types in UNOP_IND.
5408
08ac5771
SM
54092021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5410
5411 PR gdb/26828
5412 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5413 Instantiate queue.
5414 (~dwarf2_queue_guard): Clear queue.
5415 (queue_comp_unit): Assert that queue is
5416 instantiated.
5417 (process_queue): Adjust.
5418 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5419
616c069a
SM
54202021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5421
5422 PR gdb/26828
5423 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5424 to decide whether or not to enqueue it for expansion.
5425 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5426 after calling maybe_queue_comp_unit.
5427
897608ed
SM
54282021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5429
5430 * linux-nat.c (linux_nat_filter_event): Return void.
5431
15908a11
TT
54322021-02-22 Tom Tromey <tromey@adacore.com>
5433
5434 * solib-svr4.c (enable_break): Update.
5435 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5436 type.
5437 (target_bfd_reopen): Change parameter type.
5438 * bfd-target.h (target_bfd_reopen): Change parameter type.
5439
f53fc427
SM
54402021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5441
5442 * thread.c (add_thread_silent): Add assert.
5443 (find_thread_ptid): Add assert.
5444
de146e19
SM
54452021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5446
5447 PR gdb/27435
5448 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5449 (target_unpush_up): Likewise.
5450 * procfs.c (procfs_target::attach): Push target early. Use
5451 target_unpush_up to unpush target in case of error.
5452 * target.h (struct target_unpusher): Move here.
5453 (target_unpush_up): Likewise.
5454
8488c357
KB
54552021-02-19 Kevin Buettner <kevinb@redhat.com>
5456
5457 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5458 (which in turn includes <gnulib/config.h>) before include
5459 of <signal.h>.
5460
5a9f5403
NC
54612021-02-19 Nelson Chu <nelson.chu@sifive.com>
5462
5463 PR 27158
5464 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5465 (decode_j_type_insn): Likewise.
5466 (decode_cj_type_insn): Likewise.
5467 (decode_b_type_insn): Likewise.
5468 (decode): Likewise.
5469
26f53cd3
TT
54702021-02-18 Tom Tromey <tom@tromey.com>
5471
5472 * expression.h (struct expression) <evaluate>: Declare method.
5473 * eval.c (evaluate_subexp): Simplify.
5474 (expression::evaluate): New method.
5475 (evaluate_expression, evaluate_type): Use expression::evaluate.
5476
6a780b67
KB
54772021-02-17 Kevin Buettner <kevinb@redhat.com>
5478
5479 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5480 to accessing it.
5481 (ada_lookup_name_info): Likewise.
5482
adeab0c5
MF
54832021-02-13 Mike Frysinger <vapier@gentoo.org>
5484
5485 * aclocal.m4: Regenerate.
5486
089436f7
TV
54872021-02-12 Tom de Vries <tdevries@suse.de>
5488
5489 PR threads/26228
5490 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5491 (lin_thread_signals): New static var.
5492 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5493 New function.
5494 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5495 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5496 Declare.
5497 * linux-thread-db.c (check_thread_signals): Use
5498 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5499
96df3e28
AB
55002021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5501
5502 * f-exp.y (f77_keywords): Add allocated.
5503 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5504 (operator_length_f): Likewise.
5505 (print_subexp_f): Likewise.
5506 (dump_subexp_body_f): Likewise.
5507 (operator_check_f): Likewise.
5508 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5509
05f68f52
TV
55102021-02-11 Tom de Vries <tdevries@suse.de>
5511
5512 PR symtab/27353
5513 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5514 Return true for DW_FORM_strx.
5515
b260f8d6
TT
55162021-02-11 Tom Tromey <tromey@adacore.com>
5517
5518 PR gdb/27383:
5519 * parse.c (write_exp_symbol_reference): Write sym.block.
5520
bf3386f0
AB
55212021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5522
5523 * NEWS: Mention changes to 'maint info sections'.
5524 * maint.c (match_substring): Return a bool, fix whitespace issue.
5525 (struct single_bfd_flag_info): New struct.
5526 (bfd_flag_info): New static global.
5527 (match_bfd_flags): Return a bool, use bfd_flag_info.
5528 (print_bfd_flags): Use bfd_flag_info.
5529 (maint_print_section_info): Delete trailing whitespace.
5530 (struct maint_info_sections_opts): New struct.
5531 (maint_info_sections_option_defs): New static global.
5532 (maint_info_sections_completer): New function.
5533 (maintenance_info_sections): Use option parsing mechanism.
5534 (_initialize_maint_cmds): Update command help text for 'maint info
5535 sections' and register a command completer.
5536
4790db14
AB
55372021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5538
5539 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5540 functionality merged into...
5541 (maint_print_all_sections): ...this new function.
5542 (maintenance_info_sections): Make use of maint_print_all_sections,
5543 allow all objects to be printed even where there's no executable.
5544
1db66e34
AB
55452021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5546
5547 * breakpoint.c (resolve_sal_pc): Make use of
5548 bound_minimal_symbol::obj_section.
5549 * maint.c (maintenance_translate_address): Likewise.
5550 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5551 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5552 member function.
5553 * printcmd.c (info_address_command): Make use of
5554 bound_minimal_symbol::obj_section.
5555
18b8df43
AM
55562021-02-11 Alan Modra <amodra@gmail.com>
5557
5558 * arm-symbian-tdep.c: Delete.
5559 * NEWS: Mention arm-symbian removal.
5560 * Makefile.in: Remove arm-symbian-tdep entries.
5561 * configure.tgt: Remove arm*-*-symbianelf*.
5562 * doc/gdb.texinfo: Remove mention of SymbianOS.
5563 * osabi.c (gdb_osabi_names): Remove "Symbian".
5564 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5565 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5566 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5567 handling.
5568 * testsuite/gdb.base/dup-sect.exp: Likewise.
5569 * testsuite/gdb.base/long_long.exp: Likewise.
5570 * testsuite/gdb.base/solib-weak.exp: Likewise.
5571 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5572 * testsuite/gdb.python/py-section-script.exp: Likewise.
5573 * testsuite/lib/dwarf.exp: Likewise.
5574 * testsuite/lib/gdb.exp: Likewise.
5575
e92c8eb8
AB
55762021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5577
5578 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5579 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5580 (one_or_two_args): New pattern.
5581 (f77_keywords): Add lbound and ubound.
5582 * f-lang.c (fortran_bounds_all_dims): New function.
5583 (fortran_bounds_for_dimension): New function.
5584 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5585 (operator_length_f): Likewise.
5586 (print_subexp_f): Likewise.
5587 (dump_subexp_body_f): Likewise.
5588 (operator_check_f): Likewise.
5589 * std-operator.def (FORTRAN_LBOUND): Define.
5590 (FORTRAN_UBOUND): Define.
5591
a52d653e
AB
55922021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5595 and set_section_index member functions where appropriate.
5596 * coffread.c (coff_symtab_read): Likewise.
5597 (process_coff_symbol): Likewise.
5598 * ctfread.c (set_symbol_address): Likewise.
5599 * dwarf2/read.c (add_partial_symbol): Likewise.
5600 (var_decode_location): Likewise.
5601 * language.c: Likewise.
5602 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5603 (compact_minimal_symbols): Likewise.
5604 (minimal_symbol_upper_bound): Likewise.
5605 * objfiles.c (relocate_one_symbol): Likewise.
5606 * psympriv.h (partial_symbol::obj_section): Likewise.
5607 (partial_symbol::address): Likewise.
5608 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5609 * stabsread.c (scan_file_globals): Likewise.
5610 * symmisc.c (dump_msymbols): Likewise.
5611 * symtab.c (general_symbol_info::obj_section): Likewise.
5612 (fixup_section): Likewise.
5613 (get_msymbol_address): Likewise.
5614 * symtab.h (general_symbol_info::section): Rename to...
5615 (general_symbol_info::m_section): ...this.
5616 (general_symbol_info::set_section_index): New member function.
5617 (general_symbol_info::section_index): Likewise.
5618 (SYMBOL_SECTION): Delete.
5619 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5620 set_section_index member functions where appropriate.
5621 (MSYMBOL_SECTION): Delete.
5622 (symbol::symbol): Update to initialize 'm_section'.
5623 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5624 (process_xcoff_symbol): Likewise.
5625
ebbc3a7d
AB
56262021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5627
5628 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5629 MSYMBOL_OBJ_SECTION.
5630 * findvar.c (language_defn::read_var_value): Likewise.
5631 * infcmd.c (jump_command): Likewise.
5632 * linespec.c (minsym_found): Likewise.
5633 * maint.c (maintenance_translate_address): Likewise.
5634 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5635 (minimal_symbol_upper_bound): Likewise.
5636 * parse.c (find_minsym_type_and_address): Likewise.
5637 (operator_check_standard): Likewise.
5638 * printcmd.c (info_address_command): Likewise.
5639 * symmisc.c (dump_msymbols): Likewise.
5640 (print_symbol): Likewise.
5641 * symtab.c (general_symbol_info::obj_section): Define new
5642 function.
5643 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5644 (find_pc_sect_compunit_symtab): Likewise.
5645 (find_function_start_sal): Likewise.
5646 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5647 MSYMBOL_OBJ_SECTION.
5648 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5649 function.
5650 (SYMBOL_OBJ_SECTION): Delete.
5651 (MSYMBOL_OBJ_SECTION): Delete.
5652
9bb305b3
TT
56532021-02-09 Tom Tromey <tom@tromey.com>
5654
5655 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5656
cf2b2075
TV
56572021-02-09 Tom de Vries <tdevries@suse.de>
5658
5659 PR symtab/27341
5660 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5661 construct an array type. Add assert to ensure that element_type is
5662 not being modified.
5663
03642b71
AB
56642021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5665
5666 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5667 (gcore_collect_regset_section_cb): Delete.
5668 (gcore_collect_thread_registers): Delete.
5669 (gcore_build_thread_register_notes): Delete.
5670 (gcore_find_signalled_thread): Delete.
5671 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5672 'gdbarch' and 'thread_info' declarations.
5673 (gcore_build_thread_register_notes): Delete declaration.
5674 (gcore_find_signalled_thread): Likewise.
5675 * fbsd-tdep.c: Remove 'gcore.h' include.
5676 (struct fbsd_collect_regset_section_cb_data): New struct.
5677 (fbsd_collect_regset_section_cb): New function.
5678 (fbsd_collect_thread_registers): New function.
5679 (struct fbsd_corefile_thread_data): New struct.
5680 (fbsd_corefile_thread): New function.
5681 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5682 * linux-tdep.c: Remove 'gcore.h' include.
5683 (struct linux_collect_regset_section_cb_data): New struct.
5684 (linux_collect_regset_section_cb): New function.
5685 (linux_collect_thread_registers): New function.
5686 (linux_corefile_thread): Call Linux specific code.
5687 (find_signalled_thread): New function.
5688 (linux_make_corefile_notes): Call find_signalled_thread.
5689
f73e424f
TT
56902021-02-09 Tom Tromey <tromey@adacore.com>
5691
5692 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5693 not_lval value.
5694 * value.c (value_contents_copy_raw): Now static.
5695 * value.h (value_contents_copy_raw): Don't declare.
5696
a4f0544b
TT
56972021-02-09 Tom Tromey <tromey@adacore.com>
5698
5699 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5700 fields.
5701
9b3e4b5d
SV
57022021-02-08 Shahab Vahedi <shahab@synopsys.com>
5703
5704 PR tdep/27369
5705 * arc-linux-tdep.c (handle_atomic_sequence): New.
5706 (arc_linux_software_single_step): Call handle_atomic_sequence().
5707
29db1eb3
AB
57082021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5709
5710 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5711 function.
5712 (REQUIRE_WINDOW): Call is_valid member function.
5713 (REQUIRE_WINDOW_FOR_SETTER): New define.
5714 (gdbpy_tui_is_valid): Call is_valid member function.
5715 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5716 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5717 tui_active too.
5718 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5719 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5720 the function.
5721
e0c23e11
AB
57222021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5723
5724 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5725 for the title is not nullptr.
5726
1cf23996
AB
57272021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5728
5729 * tui-layout.c (saved_tui_windows): Delete.
5730 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5731 call new get_windows member function instead.
5732 (tui_get_window_by_name): Check in tui_windows.
5733 (tui_layout_window::apply): Don't add to tui_windows.
5734 * tui-layout.h (tui_layout_base::get_windows): New member function.
5735 (tui_layout_window::get_windows): Likewise.
5736 (tui_layout_split::get_windows): Likewise.
5737
a53a2657
AB
57382021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5739
5740 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5741 of the window objects.
5742
2708dbbd
AB
57432021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5744
5745 * python/python.c (gdbpy_print_stack): Reformat an error message.
5746
cd074e04
AB
57472021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5748
5749 * tui/tui-interp.c (tui_command_line_handler): New function.
5750 (tui_interp::resume): Register tui_command_line_handler as the
5751 input_handler.
5752 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5753 function.
5754 (tui_getc_1): Delete handling of '\n' and '\r'.
5755 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5756
4cf28e91
HD
57572021-02-07 Hannes Domani <ssbssa@yahoo.de>
5758
5759 * tui/tui-regs.c (tui_data_window::display_registers_from):
5760 Mark invisible register sub windows.
5761 (tui_data_window::check_register_values): Ignore invisible
5762 register sub windows.
5763
3537bc23
HD
57642021-02-07 Hannes Domani <ssbssa@yahoo.de>
5765
5766 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5767 n_spaces with a negative value.
5768
5fc2d6aa
HD
57692021-02-07 Hannes Domani <ssbssa@yahoo.de>
5770
5771 * tui/tui-regs.c (tui_data_window::display_registers_from):
5772 Add refresh_window call.
5773
83962f83
HD
57742021-02-07 Hannes Domani <ssbssa@yahoo.de>
5775
5776 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5777
0110ec82
SM
57782021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5779
5780 * symmisc.c (std_in, std_out, std_err): Remove.
5781 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5782
7c6944ab
TV
57832021-02-05 Tom de Vries <tdevries@suse.de>
5784
5785 PR breakpoints/27330
5786 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5787 glibc object file has debug info.
5788
e77b0004
TV
57892021-02-05 Tom de Vries <tdevries@suse.de>
5790
5791 PR symtab/27333
5792 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5793
0e857c82
TV
57942021-02-05 Tom de Vries <tdevries@suse.de>
5795
5796 PR breakpoints/27313
5797 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5798 syscall numbers.
5799
bdfea17e
TT
58002021-02-05 Tom Tromey <tom@tromey.com>
5801
5802 * compile/compile-c-support.c (get_compile_context)
5803 (c_get_compile_context, cplus_get_compile_context): Change return
5804 type.
5805 * language.c (language_defn::get_compile_instance): New method.
5806 * language.h (language_defn::get_compile_instance): Change return
5807 type. No longer inline.
5808 * c-lang.c (c_language::get_compile_instance): Change return type.
5809 (cplus_language::get_compile_instance): Change return type.
5810 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5811 Change return type.
5812 * compile/compile.c (compile_to_object): Update.
5813
1b30f421
TT
58142021-02-05 Tom Tromey <tom@tromey.com>
5815
5816 * parser-defs.h (write_exp_symbol_reference): Declare.
5817 * parse.c (write_exp_symbol_reference): New function.
5818 * p-exp.y (variable): Use write_exp_symbol_reference.
5819 * m2-exp.y (variable): Use write_exp_symbol_reference.
5820 * f-exp.y (variable): Use write_exp_symbol_reference.
5821 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5822 * c-exp.y (variable): Use write_exp_symbol_reference.
5823
ae710496
TV
58242021-02-05 Tom de Vries <tdevries@suse.de>
5825
5826 PR exp/27265
5827 * valarith.c (complex_binop): Throw an error if complex type can't
5828 be created.
5829
d3b54e63
TV
58302021-02-05 Tom de Vries <tdevries@suse.de>
5831
5832 PR symtab/27307
5833 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5834 return.
5835
fc9a13fb
TV
58362021-02-05 Tom de Vries <tdevries@suse.de>
5837
5838 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5839
04b4939b
MF
58402021-02-04 Mike Frysinger <vapier@gentoo.org>
5841
5842 * configure.tgt (riscv*-*-*): Set gdb_sim.
5843
6ff267e1
SM
58442021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * target.c (target_is_non_stop_p): Return bool.
5847 * target.h (target_is_non_stop_p): Return bool.
5848
fdbc5215
SM
58492021-02-04 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * record-full.c (record_full_async_inferior_event_handler):
5852 Don't clear async event handler.
5853 (record_full_base_target::wait): Clear async event handler at
5854 beginning.
5855
85d3ad8e
SM
58562021-02-04 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * record-btrace.c (record_btrace_handle_async_inferior_event):
5859 Don't clear async event handler.
5860 (record_btrace_target::wait): Clear async event handler at
5861 beginning.
5862
baa8575b
SM
58632021-02-04 Simon Marchi <simon.marchi@efficios.com>
5864
5865 * remote.c (remote_target::wait): Clear async event handler at
5866 beginning, mark if needed at the end.
5867 (remote_async_inferior_event_handler): Don't set or clear async
5868 event handler.
5869
6b36ddeb
SM
58702021-02-04 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * async-event.h (async_event_handler_func): Add documentation.
5873 * async-event.c (check_async_event_handlers): Don't clear
5874 async_event_handler ready flag.
5875 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5876 flag.
5877 * record-btrace.c (record_btrace_handle_async_inferior_event):
5878 Likewise.
5879 * record-full.c (record_full_async_inferior_event_handler):
5880 Likewise.
5881 * remote-notif.c (remote_async_get_pending_events_handler):
5882 Likewise.
5883 * remote.c (remote_async_inferior_event_handler): Likewise.
5884
72d383bb
SM
58852021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5886
5887 * infrun.c (handle_inferior_event): Move stop_soon variable to
5888 inner scope.
5889
408f6686
PA
58902021-02-03 Pedro Alves <pedro@palves.net>
5891
5892 * infcmd.c (detach_command): Hold strong reference to target, and
5893 if all-stop on entry, restart threads on exit.
5894 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5895 (restart_stepped_thread): ... this new function. Also handle
5896 trap_expected.
5897 (restart_after_all_stop_detach): New function.
5898 * infrun.h (restart_after_all_stop_detach): Declare.
5899
ac7d717c
PA
59002021-02-03 Pedro Alves <pedro@palves.net>
5901
5902 * infrun.c (struct step_over_info): Initialize fields.
5903 (prepare_for_detach): Handle ongoing in-line step over.
5904
e87f0fe8
PA
59052021-02-03 Pedro Alves <pedro@palves.net>
5906
5907 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5908 here...
5909 * remote.c (remote_target::remote_detach_1): ... and here ...
5910 * target.c (target_detach): ... instead of here.
5911 * target.h (target_ops::detach): Add comment.
5912
8ff53139
PA
59132021-02-03 Pedro Alves <pedro@palves.net>
5914
5915 * infrun.c (struct wait_one_event): Move higher up.
5916 (prepare_for_detach): Abort in-progress displaced steps instead of
5917 letting them complete.
5918 (handle_one): If the inferior is detaching, don't add the thread
5919 back to the global step-over chain.
5920 (restart_threads): Don't restart threads if detaching.
5921 (handle_signal_stop): Remove inferior::detaching reference.
5922
91475068
PA
59232021-02-03 Pedro Alves <pedro@palves.net>
5924
5925 * infrun.c (prepare_for_detach): Don't release scoped_restore
5926 before returning.
5927
d758e62c
PA
59282021-02-03 Pedro Alves <pedro@palves.net>
5929
5930 * infrun.c (handle_one): New function, factored out from ...
5931 (stop_all_threads): ... here.
5932
b0083dd7
PA
59332021-02-03 Pedro Alves <pedro@palves.net>
5934
5935 * remote.c (remote_notif_stop_ack): Don't error out on
5936 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5937 (remote_target::discard_pending_stop_replies): Don't delete
5938 in-flight notification; instead, clear its contents.
5939
621cc310
PA
59402021-02-03 Pedro Alves <pedro@palves.net>
5941
5942 * remote.c (extended_remote_target::attach): Set target async in
5943 the target-non-stop path too.
5944
2ab76a18
PA
59452021-02-03 Pedro Alves <pedro@palves.net>
5946
5947 PR gdb/27055
5948 * infrun.c (handle_signal_stop): Move main context_switch call
5949 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5950
2e3773ff
LS
59512021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5952
5953 * NEWS (Changed commands): Add entry for the behavior change of
5954 the inferior command.
5955 * inferior.c (inferior_command): When no argument is given to the
5956 inferior command, display info about the currently selected
5957 inferior.
5958
e57933dc
SM
59592021-02-02 Simon Marchi <simon.marchi@efficios.com>
5960
5961 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5962 a sect_offset.
5963 (read_attribute_reprocess): Adjust.
5964
2b0c7f41
SM
59652021-02-02 Simon Marchi <simon.marchi@efficios.com>
5966
5967 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5968 <gnu_ranges_base>: ... this...
5969 <rnglists_base>: ... and this.
5970 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5971 <gnu_ranges_base>: ... this...
5972 <rnglists_base>: ... and this.
5973 (read_cutu_die_from_dwo): Adjust
5974 (dwarf2_get_pc_bounds): Adjust
5975 (dwarf2_record_block_ranges): Adjust.
5976 (read_full_die_1): Adjust
5977 (partial_die_info::read): Adjust.
5978 (read_rnglist_index): Adjust.
5979
a1c40103
SM
59802021-02-02 Simon Marchi <simon.marchi@efficios.com>
5981
5982 PR gdb/26813
5983 * dwarf2/read.c (read_loclists_rnglists_header): Add
5984 header_offset parameter and use it.
5985 (read_loclist_index): Read header of the current contribution,
5986 not the one at the beginning of the section.
5987 (read_rnglist_index): Likewise.
5988
b1829e1b
SM
59892021-02-02 Simon Marchi <simon.marchi@efficios.com>
5990
5991 PR gdb/26813
5992 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5993 requires_reprocessing flag.
5994 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5995 DW_FORM_loclistx.
5996 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5997 and DW_FORM_loclistx.
5998 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5999 instead of set_address for DW_FORM_loclistx and
6000 DW_FORM_rnglistx.
6001
0c800c6e
SM
60022021-02-02 Simon Marchi <simon.marchi@efficios.com>
6003
6004 * dwarf2/read.c (read_loclist_index): Remove bound check for
6005 start of offset.
6006 (read_rnglist_index): Likewise.
6007
05787bad
SM
60082021-02-02 Simon Marchi <simon.marchi@efficios.com>
6009
6010 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6011 of the offset.
6012
5e4d9bbc
SM
60132021-02-02 Simon Marchi <simon.marchi@efficios.com>
6014
6015 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6016
a0c1eeba
SM
60172021-02-02 Simon Marchi <simon.marchi@efficios.com>
6018
6019 * dwarf2/read.c (read_loclist_index): Change complaints into
6020 errors.
6021
2bd3e4b8
TV
60222021-02-02 Tom de Vries <tdevries@suse.de>
6023
6024 PR symtab/24620
6025 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6026 psymtab == nullptr.
6027
82a1fd3a
AB
60282021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6029
6030 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6031 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6032 here from linux-tdep.c and given a new name. Minor cleanups.
6033 (gcore_collect_regset_section_cb): Likewise.
6034 (gcore_collect_thread_registers): Likewise.
6035 (gcore_build_thread_register_notes): Likewise.
6036 (gcore_find_signalled_thread): Likewise.
6037 * gcore.h (gcore_build_thread_register_notes): Declare.
6038 (gcore_find_signalled_thread): Declare.
6039 * fbsd-tdep.c: Add 'gcore.h' include.
6040 (struct fbsd_collect_regset_section_cb_data): Delete.
6041 (fbsd_collect_regset_section_cb): Delete.
6042 (fbsd_collect_thread_registers): Delete.
6043 (struct fbsd_corefile_thread_data): Delete.
6044 (fbsd_corefile_thread): Delete.
6045 (fbsd_make_corefile_notes): Call
6046 gcore_build_thread_register_notes instead of the now deleted
6047 FreeBSD code.
6048 * linux-tdep.c: Add 'gcore.h' include.
6049 (struct linux_collect_regset_section_cb_data): Delete.
6050 (linux_collect_regset_section_cb): Delete.
6051 (linux_collect_thread_registers): Delete.
6052 (linux_corefile_thread): Call
6053 gcore_build_thread_register_notes.
6054 (find_signalled_thread): Delete.
6055 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6056
ebde6f2d
TV
60572021-01-29 Tom de Vries <tdevries@suse.de>
6058
6059 PR breakpoints/26063
6060 * infrun.c (process_event_stop_test): Reset
6061 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6062 changed.
6063
0f93c3a2
AB
60642021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6065
6066 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6067 assert. Extend the header comment.
6068
f237f998
AB
60692021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6070
6071 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6072 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6073 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6074 (tui_locator_win_info_ptr): Delete declaration.
6075 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6076 (tui_disasm_window::set_contents): Fetch state from tui_location
6077 global.
6078 (tui_get_begin_asm_address): Likewise.
6079 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6080 for locator window.
6081 (get_locator_window): Delete.
6082 (initialize_known_windows): Treat locator window just like all the
6083 rest.
6084 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6085 (tui_source_window::set_contents): Fetch state from tui_location
6086 global.
6087 (tui_source_window::showing_source_p): Likewise.
6088 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6089 (_locator): Delete.
6090 (tui_locator_win_info_ptr): Delete.
6091 (tui_locator_window::make_status_line): Fetch state from
6092 tui_location global.
6093 (tui_locator_window::rerender): Remove check of 'handle',
6094 reindent function body.
6095 (tui_locator_window::set_locator_fullname): Delete.
6096 (tui_locator_window::set_locator_info): Delete.
6097 (tui_update_locator_fullname): Delete.
6098 (tui_show_frame_info): Likewise.
6099 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6100 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6101 tui/tui-location.h and renamed to
6102 tui_location_tracker::set_location.
6103 (tui_locator_window::set_locator_fullname): Moved to
6104 tui/tui-location.h and renamed to
6105 tui_location_tracker::set_fullname.
6106 (tui_locator_window::full_name): Delete.
6107 (tui_locator_window::proc_name): Delete.
6108 (tui_locator_window::line_no): Delete.
6109 (tui_locator_window::addr): Delete.
6110 (tui_locator_window::gdbarch): Delete.
6111 (tui_update_locator_fullname): Delete declaration.
6112 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6113 for locator window.
6114 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6115 (tui_display_main): Call function on tui_location directly.
6116 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6117 * tui/tui-location.c: New file.
6118 * tui/tui-location.h: New file.
6119
8ee511af
SM
61202021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * gdbtypes.h (get_type_arch): Rename to...
6123 (struct type) <arch>: ... this, update all users.
6124
6ac37371
SM
61252021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6126
6127 * gdbtypes.h (struct type) <arch>: Rename to...
6128 <arch_owner>: ... this, update all users.
6129 <objfile>: Rename to...
6130 <objfile_owner>: ... this, update all users.
6131
24cf6389
AB
61322021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * gdbcmd.h (execute_command_to_string): Update comment.
6135 * top.c (execute_command_to_string): Update header comment.
6136
2a7f6487
TV
61372021-01-28 Tom de Vries <tdevries@suse.de>
6138
6139 PR breakpoints/27205
6140 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6141 (create_longjmp_master_breakpoint_names): New function, factored out
6142 of ...
6143 (create_longjmp_master_breakpoint): ... here. Only try to install
6144 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6145 breakpoint in libc.so failed.
6146
59b59f08
LS
61472021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6148
6149 PR gdb/27133
6150 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6151 unique_ptr is released when the wrapped pointer is kept for later
6152 use.
6153
807f647c
MM
61542021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6155
6156 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6157 BLR and BR instructions.
6158 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6159 (enum aarch64_masks): New.
6160
4ef367bf
TT
61612021-01-26 Tom Tromey <tromey@adacore.com>
6162
6163 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6164 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6165 (windows_init_thread_list, windows_nat::handle_load_dll)
6166 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6167 (windows_nat_target::resume)
6168 (windows_nat_target::get_windows_debug_event)
6169 (windows_nat_target::interrupt, windows_xfer_memory)
6170 (windows_nat_target::close): Update.
6171 * nat/windows-nat.c (DEBUG_EVENTS): Use
6172 debug_prefixed_printf_cond.
6173 (matching_pending_stop, fetch_pending_stop)
6174 (continue_last_debug_event): Update.
6175
4cb1265b
MS
61762020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6177
6178 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6179 elfcore_write_file_note.
6180
d0cc52bd
SV
61812021-01-26 Shahab Vahedi <shahab@synopsys.com>
6182
6183 * arc-tdep.c (arc_add_reggroups): New function.
6184 (arc_gdbarch_init): Call arc_add_reggroups.
6185
ac3571d9 61862021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6187
6188 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6189
9f6c202e
TV
61902021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6191 Simon Marchi <simon.marchi@polymtl.ca>
6192 Tom de Vries <tdevries@suse.de>
6193
6194 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6195 DW_AT_ranges.
6196
a625a8c9
TT
61972021-01-25 Tom Tromey <tromey@adacore.com>
6198
6199 * dwarf2/read.c (get_mpz): New function.
6200 (get_dwarf2_rational_constant): Use it.
6201
19184910
TT
62022021-01-25 Tom Tromey <tromey@adacore.com>
6203
6204 * ada-lang.c (resolve_subexp): Handle array context.
6205
b10bae18
TT
62062021-01-23 Tom Tromey <tom@tromey.com>
6207
6208 PR compile/25575
6209 * compile/compile-loc2c.c (note_register): New function.
6210 (pushf_register_address, pushf_register): Use it.
6211
3637a558
TT
62122021-01-23 Tom Tromey <tom@tromey.com>
6213
6214 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6215 Change type of "registers_used".
6216 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6217 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6218 (locexpr_generate_c_location, loclist_generate_c_location): Change
6219 type of "registers_used".
6220 * compile/compile.h (compile_dwarf_expr_to_c)
6221 (compile_dwarf_bounds_to_c): Update.
6222 * compile/compile-loc2c.c (pushf_register_address)
6223 (pushf_register, do_compile_dwarf_expr_to_c)
6224 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6225 of "registers_used".
6226 * compile/compile-c.h (generate_c_for_variable_locations):
6227 Update.
6228 * compile/compile-c-symbols.c (generate_vla_size)
6229 (generate_c_for_for_one_variable): Change type of
6230 "registers_used".
6231 (generate_c_for_variable_locations): Return std::vector.
6232 * compile/compile-c-support.c (generate_register_struct): Change
6233 type of "registers_used".
6234 (compute): Update.
6235
9f7f6cb8
TT
62362021-01-23 Tom Tromey <tom@tromey.com>
6237
6238 * compile/compile-internal.h (class compile_instance)
6239 <set_arguments>: Change return type.
6240 * compile/compile.c (compile_to_object): Remove call to reset.
6241 (compile_instance::set_arguments): Change return type.
6242
dd5ca05f
SM
62432021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6244
6245 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6246 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6247
d3ee35db
LS
62482021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6249
6250 * Makefile.in (SELFTESTS_SRCS): Add
6251 unittests/gdb_tilde_expand-selftests.c.
6252 * unittests/gdb_tilde_expand-selftests.c: New file.
6253
9d2d8a16
AB
62542021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6255
6256 PR cli/25956
6257 * NEWS: Mention new command.
6258 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6259 (version_style): Define.
6260 (cli_style_option::cli_style_option): Add intensity parameter, and
6261 use as appropriate.
6262 (_initialize_cli_style): Register version style set/show commands.
6263 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6264 (version_style): Declare.
6265 * top.c (print_gdb_version): Use version_stype, and styled_string
6266 to print the GDB version string.
6267
e7b43072
AB
62682021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6269
6270 * utils.c (emit_style_escape): Only emit an escape sequence if the
6271 requested style is different than the current applied style.
6272 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6273 current applied_style.
6274 (fputs_styled): Remove is_default check.
6275 (fputs_styled_unfiltered): Likewise.
6276 (vfprintf_styled_no_gdbfmt): Likewise.
6277
2189c312
SM
62782021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6279
6280 * remote.h (remote_debug_printf): New.
6281 (remote_debug_printf_nofunc): New.
6282 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6283 * remote.c: Use above macros throughout file.
6284
02349803
SM
62852021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6286
6287 * remote.h (remote_debug): Change to bool.
6288 * remote.c (remote_debug): Change to bool.
6289 (_initialize_remote): Adjust.
6290
cda09ec9
SM
62912021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6292
6293 * target.h (remote_debug): Move to...
6294 * remote.h (remote_debug): ... here.
6295 * top.c (remote_debug): Move to...
6296 * remote.c (remote_debug): ... here.
6297 * remote-sim.c: Include remote.h.
6298
baf2b57f
SM
62992021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6300
6301 * cli/cli-cmds.c (show_remote_debug): Remove.
6302 (show_remote_timeout): Remove.
6303 (_initialize_cli_cmds): Don't register commands.
6304 * remote.c (show_remote_debug): Move here.
6305 (show_remote_timeout): Move here.
6306 (_initialize_remote): Register commands.
6307
344e9841
SM
63082021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6309
6310 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6311 type::objfile method instead.
6312
30625020
SM
63132021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6314
6315 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6316 use the type::is_objfile_owned method.
6317
5b7d941b
SM
63182021-01-22 Simon Marchi <simon.marchi@efficios.com>
6319
6320 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6321 (TYPE_OWNER): Remove.
6322 (TYPE_OBJFILE): Adjust.
6323 (struct main_type) <flag_objfile_owned>: Rename to...
6324 <m_flag_objfile_owned>: ... this.
6325 <owner>: Rename to...
6326 <m_owner>: ... this.
6327 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6328 methods.
6329 (TYPE_ALLOC): Adjust.
6330 * gdbtypes.c (alloc_type): Adjust.
6331 (alloc_type_arch): Adjust.
6332 (alloc_type_copy): Adjust.
6333 (get_type_arch): Adjust.
6334 (smash_type): Adjust.
6335 (lookup_array_range_type): Adjust.
6336 (recursive_dump_type): Adjust.
6337 (copy_type_recursive): Adjust.
6338 * compile/compile-c-types.c (convert_func): Adjust.
6339 (convert_type_basic): Adjust.
6340 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6341 Adjust.
6342 * language.c
6343 (language_arch_info::type_and_symbol::alloc_type_symbol):
6344 Adjust.
6345
d5d24e12
LM
63462021-01-21 Luis Machado <luis.machado@linaro.org>
6347
6348 * coffread.c (enter_linenos): Passing string to complaint.
6349 * valops.c (value_assign): Make array view.
6350
a59902a7
SM
63512021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6352
6353 * auto-load.h (debug_auto_load): Move here.
6354 (auto_load_debug_printf): New.
6355 * auto-load.c: Use auto_load_debug_printf.
6356 (debug_auto_load): Move to header.
6357 * linux-thread-db.c (try_thread_db_load): Use
6358 auto_load_debug_printf.
6359 * main.c (captured_main_1): Likewise.
6360
d3abc0ce
SM
63612021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6362
6363 * f-valprint.c (f77_array_offset_tbl): Remove.
6364
1e15fcac
SM
63652021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6366
6367 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6368
439706e6
SM
63692021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6370
6371 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6372 of gdb_select.
6373
325d39e4
HD
63742021-01-21 Hannes Domani <ssbssa@yahoo.de>
6375
6376 PR python/19151
6377 * python/py-breakpoint.c (bppy_get_location): Handle
6378 bp_hardware_breakpoint.
6379 (bppy_init): Likewise.
6380 (gdbpy_breakpoint_created): Likewise.
6381
7cb6d92a
SM
63822021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6383
6384 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6385
d4dd4fca
SM
63862021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6387
6388 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6389 (_initialize_gdb_bfd): Adjust.
6390
de53369b
SM
63912021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6392
6393 PR gdb/26828
6394 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6395
17e593e9
SM
63962021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6397
6398 * dwarf2/read.c (follow_die_offset): Add logging.
6399 (dwarf2_per_objfile::age_comp_units): Add logging.
6400
6bd434d6
SM
64012021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6402
6403 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6404 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6405 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6406 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6407 * arm-tdep.c (struct frame_unwind): Make static.
6408 * auto-load.c (auto_load_safe_path_vec): Make static.
6409 * csky-tdep.c (csky_stub_unwind): Make static.
6410 * gdbarch.c (gdbarch_data_registry): Make static.
6411 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6412 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6413 * i386-tdep.c (i386_frame_setup_skip_insns,
6414 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6415 Make static.
6416 * infrun.c (observer_mode): Make static.
6417 * linux-nat.c (sigchld_action): Make static.
6418 * linux-thread-db.c (thread_db_list): Make static.
6419 * maint-test-options.c (maintenance_test_options_list):
6420 * mep-tdep.c (mep_csr_registers): Make static.
6421 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6422 (stats): Make static.
6423 * nat/linux-osdata.c (struct osdata_type): Make static.
6424 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6425 * progspace.c (last_program_space_num): Make static.
6426 * python/py-param.c (struct parm_constant): Remove struct type
6427 name.
6428 (parm_constants): Make static.
6429 * python/py-record-btrace.c (btpy_list_methods): Make static.
6430 * python/py-record.c (recpy_gap_type): Make static.
6431 * record.c (record_goto_cmdlist): Make static.
6432 * regcache.c (regcache_descr_handle): Make static.
6433 * registry.h (DEFINE_REGISTRY): Make definition static.
6434 * symmisc.c (std_in, std_out, std_err): Make static.
6435 * top.c (previous_saved_command_line): Make static.
6436 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6437 static.
6438 * unittests/command-def-selftests.c (nr_duplicates,
6439 nr_invalid_prefixcmd, lists): Make static.
6440 * unittests/observable-selftests.c (test_notification): Make
6441 static.
6442 * unittests/optional/assignment/1.cc (counter): Make static.
6443 * unittests/optional/assignment/2.cc (counter): Make static.
6444 * unittests/optional/assignment/3.cc (counter): Make static.
6445 * unittests/optional/assignment/4.cc (counter): Make static.
6446 * unittests/optional/assignment/5.cc (counter): Make static.
6447 * unittests/optional/assignment/6.cc (counter): Make static.
6448
a6c11cbb
JS
64492021-01-20 Joel Sherrill <joel@rtems.org>
6450
6451 PR gdb/27219
6452 * remote.c (struct remote_thread_info) <resume_state>: Rename
6453 to...
6454 <get_resume_state>: ... this.
6455 (remote_target::resume): Adjust.
6456 (remote_target::commit_resume): Adjust.
6457 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6458
6f52fdf4
SDJ
64592021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6460 Tom Tromey <tom@tromey.com>
6461
6462 * stap-probe.c (stap_parse_single_operand): Handle '!'
6463 operator.
6464 (stap_parse_argument_conditionally): Likewise.
6465 Skip spaces after processing open-parenthesis sub-expression.
6466 (stap_parse_argument_1): Skip spaces after call to
6467 stap_parse_argument_conditionally.
6468 Handle case when right-side expression is a parenthesized
6469 sub-expression.
6470 Skip spaces after call to stap_parse_argument_1.
6471
1c3b85ad
LS
64722021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6473
6474 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6475
a9a87d35
LM
64762021-01-19 Luis Machado <luis.machado@linaro.org>
6477
6478 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6479 memory and save data.
6480 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6481 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6482 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6483 (trad_frame_value_bytes_p): Remove.
6484 (trad_frame_reset_saved_regs): Adjust documentation.
6485 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6486 constructor and reset the state of the registers.
6487 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6488 (trad_frame_value_bytes_p, trad_frame_set_value)
6489 (trad_frame_set_realreg, trad_frame_set_addr)
6490 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6491 (trad_frame_set_reg_realreg): Update to call member function.
6492 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6493 (trad_frame_get_prev_register): Likewise.
6494
6495 * aarch64-tdep.c (aarch64_analyze_prologue)
6496 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6497 (aarch64_prologue_prev_register): Update to use member functions.
6498 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6499 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6500 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6501 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6502 (arm_make_epilogue_frame_cache): Likewise.
6503 * avr-tdep.c (avr_frame_unwind_cache)
6504 (avr_frame_prev_register): Likewise.
6505 * cris-tdep.c (cris_scan_prologue): Likewise.
6506 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6507 * frv-tdep.c (frv_analyze_prologue): Likewise.
6508 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6509 * lm32-tdep.c (lm32_frame_cache): Likewise.
6510 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6511 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6512 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6513 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6514 (reset_saved_regs): Adjust to set realreg.
6515 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6516 call member functions.
6517 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6518 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6519 (s390_backchain_frame_unwind_cache): Likewise.
6520 * score-tdep.c (score7_analyze_prologue)
6521 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6522 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6523 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6524 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6525 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6526 * tilegx-tdep.c (tilegx_analyze_prologue)
6527 (tilegx_frame_cache): Likewise.
6528 * v850-tdep.c (v850_frame_cache): Likewise.
6529 * vax-tdep.c (vax_frame_cache): Likewise.
6530
bdec2917
LM
65312021-01-19 Luis Machado <luis.machado@linaro.org>
6532
6533 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6534 of buffer + length.
6535 (put_frame_register_bytes): Likewise.
6536 Adjust documentation.
6537 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6538 (safe_frame_unwind_memory): Likewise.
6539 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6540 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6541 gdb::array_view.
6542 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6543 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6544 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6545 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6546 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6547 * dwarf2/loc.c (rw_pieced_value): Likewise.
6548 * hppa-tdep.c (hppa_frame_cache): Likewise.
6549 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6550 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6551 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6552 (i386_linux_rt_sigtramp_start): Likewise.
6553 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6554 * i386-tdep.c (i386_register_to_value): Likewise.
6555 * i387-tdep.c (i387_register_to_value): Likewise.
6556 * ia64-tdep.c (ia64_register_to_value): Likewise.
6557 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6558 (m32r_linux_rt_sigtramp_start): Likewise.
6559 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6560 * m68k-tdep.c (m68k_register_to_value): Likewise.
6561 * mips-tdep.c (mips_register_to_value)
6562 (mips_value_to_register): Likewise.
6563 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6564 (ppcfbsd_sigtramp_frame_cache): Likewise.
6565 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6566 (ppcobsd_sigtramp_frame_cache): Likewise.
6567 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6568 (rs6000_register_to_value): Likewise.
6569 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6570 * tramp-frame.c (tramp_frame_start): Likewise.
6571 * valops.c (value_assign): Likewise.
6572
ccbe4c82
LM
65732021-01-19 Luis Machado <luis.machado@linaro.org>
6574
6575 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6576 array_view.
6577 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6578 instead of buffer and size.
6579 (trad_frame_set_reg_value_bytes): Likewise.
6580 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6581 (trad_frame_set_value_bytes): Likewise.
6582
0e7620dc
MF
65832021-01-18 Mike Frysinger <vapier@gentoo.org>
6584
6585 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6586
6a9ad81c
AB
65872021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6588
6589 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6590 (riscv_fbsd_gregset): Use riscv_supply_regset.
6591 (riscv_fbsd_fpregset): Likewise.
6592 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6593 (riscv_linux_fregset): Likewise.
6594 * riscv-tdep.c (riscv_supply_regset): Define new function.
6595 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6596
d3d7d1ba
TV
65972021-01-18 Tom de Vries <tdevries@suse.de>
6598
6599 PR tdep/27172
6600 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6601 New macro.
6602 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6603 for SEGV_BNDERR.
6604
aa2838cc
SM
66052021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6606
6607 * remote.c (class remote_target) <remote_hostio_send_command,
6608 remote_hostio_parse_result>: Constify parameter.
6609 (remote_hostio_parse_result): Likewise.
6610 (remote_target::remote_hostio_send_command): Adjust.
6611 (remote_target::remote_hostio_pread_vFile): Adjust.
6612 (remote_target::fileio_readlink): Adjust.
6613 (remote_target::fileio_fstat): Adjust.
6614
b5c8f22d
SM
66152021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6616
6617 * remote.c (remote_target::start_remote): Move wait_status to
6618 narrower scope.
6619
e3b2741b
SM
66202021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6621
6622 * remote.c (class remote_target):
6623 <add_current_inferior_and_thread>: Constify parameter.
6624 (stop_reply_extract_thread): Likewise.
6625 (remote_target::get_current_thread): Likewise.
6626 (remote_target::add_current_inferior_and_thread): Likewise.
6627
cecb1912
SM
66282021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6629
6630 * remote.c (class remote_target)
6631 <remote_unpack_thread_info_response,
6632 parse_threadlist_response>: Constify parameter and/or return
6633 value and or local variable.
6634 (stub_unpack_int): Likewise.
6635 (unpack_nibble): Likewise.
6636 (unpack_byte): Likewise.
6637 (unpack_int): Likewise.
6638 (unpack_string): Likewise.
6639 (unpack_threadid): Likewise.
6640 (remote_target::remote_unpack_thread_info_response): Likewise.
6641 (remote_target::parse_threadlist_response): Likewise.
6642
5a11fff0
AB
66432021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6644
6645 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6646
17e89137
LS
66472021-01-14 Lancelot Six <lsix@lancelotsix.com>
6648
6649 * MAINTAINERS (Write After Approval): Add myself.
6650
58eadc4b
BE
66512021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6652
6653 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6654 because is_trivially_default_constructible was first implemented with
6655 gcc-5.
6656
5fae2a2c
TV
66572021-01-14 Tom de Vries <tdevries@suse.de>
6658
6659 PR breakpoints/27151
6660 * objfiles.h (in_plt_section): Handle .plt.sec.
6661
8f66807b
AB
66622021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6663
6664 PR gdb/26819
6665 * remote.c
6666 (remote_target::select_thread_for_ambiguous_stop_reply): New
6667 member function.
6668 (remote_target::process_stop_reply): Call
6669 select_thread_for_ambiguous_stop_reply.
6670
bd497355
SM
66712021-01-13 Simon Marchi <simon.marchi@efficios.com>
6672
6673 * record-btrace.c (class record_btrace_target): Remove.
6674 (record_btrace_target::commit_resume): Remove.
6675 * record-full.c (class record_full_target): Remove.
6676 (record_full_target::commit_resume): Remove.
6677
c9d22089
SM
66782021-01-13 Simon Marchi <simon.marchi@efficios.com>
6679
6680 * remote.c (enum class resume_state): New.
6681 (struct resumed_pending_vcont_info): New.
6682 (struct remote_thread_info) <resume_state, set_not_resumed,
6683 set_resumed_pending_vcont, resumed_pending_vcont_info,
6684 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6685 New.
6686 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6687 (remote_target::remote_add_thread): Adjust.
6688 (remote_target::process_initial_stop_replies): Adjust.
6689 (remote_target::resume): Adjust.
6690 (remote_target::commit_resume): Rely on state in
6691 remote_thread_info and not on tp->executing.
6692 (remote_target::process_stop_reply): Adjust.
6693
d8d1feb4
SM
66942021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6695
6696 * arc-tdep.h (arc_debug_printf): New.
6697 * arc-tdep.c: Use arc_debug_printf.
6698 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6699 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6700 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6701
fb0f5031
SM
67022021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6703
6704 * arc-tdep.h (arc_debug): Change type to bool.
6705 * arc-tdep.c (arc_debug): Change type to bool.
6706 (arc_analyze_prologue): Adjust.
6707 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6708 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6709
5bf7e91b
SM
67102021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6711
6712 * auto-load.c (auto_load_objfile_script_1): Use bool.
6713 (execute_script_contents): Use bool.
6714
db972fce
SM
67152021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6716
6717 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6718 comment here.
6719 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6720 comment to header.
6721 * extension-priv.h (struct extension_language_script_ops)
6722 <auto_load_enabled>: Return bool.
6723 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6724 comment here.
6725 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6726 comment to header.
6727 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6728 move comment here.
6729 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6730 move comment to header.
6731 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6732 move comment here.
6733 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6734 move comment to header.
6735
5e12f48f
SM
67362021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6737
6738 * auto-load.h (file_is_auto_load_safe): Change return type to
6739 bool, move comment here.
6740 * auto-load.c (file_is_auto_load_safe): Change return type and
6741 advice_printed to bool. Move comment to header.
6742
54ca9002
SM
67432021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6744
6745 * jit.c (jit_debug_printf): New, use throughout file.
6746
24a7f1b5
SM
67472021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6748
6749 * infrun.c (normal_stop): Fix indentation.
6750
fe7a351a
SM
67512021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6752
6753 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6754 declarations to ...
6755 * symfile.h: ... here.
6756 * symfile.c: Update doc.
6757
16e9019e
SM
67582021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6759
6760 * target.h (baud_rate, serial_parity): Move declarations...
6761 * serial.h: ... here.
6762 * main.c: Include serial.h.
6763 * serial.c (baud_rate, serial_parity): Update doc.
6764
b2f2ae0d
SM
67652021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6766
6767 * top.c (pre_init_ui_hook): Remove.
6768
5291fe3c
SP
67692021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6770
6771 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6772 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6773 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6774 * features/aarch64-fpu.xml: Add bfloat16 type.
6775
ce38f5ed
AB
67762021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6777
6778 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6779
7c654b71
AB
67802021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6781
6782 * f-exp.y (dot_ops): Rename to...
6783 (fortran_operators): ...this. Add a header comment. Add symbol
6784 based operators.
6785 (yylex): Update to use fortran_operators not dot_ops. Remove
6786 special handling for '**', this is now included in
6787 fortran_operators.
6788
c6185dce
SM
67892021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6790
6791 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6792 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6793 * aarch64-tdep.c: Use aarch64_debug_printf.
6794
eef401dc
SM
67952021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6796
6797 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6798 file.
6799
062eaacb
SM
68002021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6801
6802 * jit.c (jit_debug): Change type to bool.
6803 (_initialize_jit): Adjust.
6804
54585eee
TT
68052021-01-09 Tom Tromey <tom@tromey.com>
6806
6807 PR compile/23672
6808 * compile/compile.c (compile_to_object): Avoid crash when
6809 osabi_triplet_regexp returns NULL.
6810
bc167b6b
TT
68112021-01-09 Tom Tromey <tom@tromey.com>
6812
6813 * tracepoint.h (class collection_list) <append_exp>: Take a
6814 std::string.
6815 * tracepoint.c (collection_list::append_exp): Take a std::string.
6816 (encode_actions_1): Update.
6817
8fc48b79
TT
68182021-01-08 Tom Tromey <tromey@adacore.com>
6819
6820 * parse.c (parse_expression): Add void_context_p parameter. Use
6821 parse_exp_in_context.
6822 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6823 parse_expression.
6824 (print_command, call_command): Update.
6825 * expression.h (parse_expression): Add void_context_p parameter.
6826
3c8c6de2
AB
68272021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6828
6829 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6830 for internalvar components that have a dynamic location.
6831
1940319c
TV
68322021-01-08 Tom de Vries <tdevries@suse.de>
6833
6834 PR gdb/26881
6835 * breakpoint.c (create_exception_master_breakpoint_probe)
6836 (create_exception_master_breakpoint_hook): Factor out
6837 of ...
6838 (create_exception_master_breakpoint): ... here. Only try to install
6839 the master exception breakpoint in objfile.debug using the
6840 _Unwind_DebugHook method, if the install using probes in objfile
6841 failed.
6842
e3436813
AB
68432021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6844
6845 * f-lang.c (fortran_value_subarray): Call value_from_component.
6846
e904f56d
MF
68472021-01-07 Mike Frysinger <vapier@gentoo.org>
6848
6849 * remote-sim.c: Include memory-map.h.
6850 (gdbsim_target): Define memory_map override.
6851 (gdbsim_target::memory_map): Define.
6852
959d6a67
TT
68532021-01-07 Tom Tromey <tromey@adacore.com>
6854
6855 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6856
d4813f10
TT
68572021-01-07 Tom Tromey <tromey@adacore.com>
6858
6859 * ada-lang.c (add_component_interval): Start loop using vector's
6860 updated size.
6861
b49180ac
TT
68622021-01-06 Tom Tromey <tromey@adacore.com>
6863
6864 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6865 Do not cast result.
6866 * valarith.c (fixed_point_binop): Handle multiplication
6867 and division specially.
6868 * valops.c (value_to_gdb_mpq): New function.
6869 (value_cast_to_fixed_point): Use it.
6870
55195361
HD
68712021-01-05 Hannes Domani <ssbssa@yahoo.de>
6872
6873 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6874 Call wnoutrefresh instead of tui_win_info::refresh_window.
6875
1b6d4bb2
HD
68762021-01-05 Hannes Domani <ssbssa@yahoo.de>
6877
6878 * tui/tui-source.c (tui_source_window::show_line_number):
6879 Redraw second space after line number.
6880
b5ff370e
HD
68812021-01-05 Hannes Domani <ssbssa@yahoo.de>
6882
6883 PR tui/26927
6884 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6885 Fix source pad size in prefresh.
6886 (tui_source_window_base::show_source_content): Grow source pad
6887 if necessary.
6888
c68ea49f
MF
68892021-01-04 Mike Frysinger <vapier@gentoo.org>
6890
6891 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6892 (bfin_frame_align): Use align_down.
6893
e4ad960a
TV
68942021-01-04 Tom de Vries <tdevries@suse.de>
6895
6896 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6897 terminators that do not terminate anything.
6898
3ec3145c
SM
68992021-01-04 Simon Marchi <simon.marchi@efficios.com>
6900
6901 * debug.c (debug_print_depth): New.
6902 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6903 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6904 * infrun.c (start_step_over): Use
6905 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6906 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6907 INFRUN_SCOPED_DEBUG_START_END.
6908 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6909
e71daf80
SM
69102021-01-04 Simon Marchi <simon.marchi@efficios.com>
6911
6912 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6913
335709bc
SM
69142021-01-04 Simon Marchi <simon.marchi@efficios.com>
6915
6916 * utils.c (vfprintf_unfiltered): Print timestamp only when
6917 previous debug output ended with a newline.
6918
098caef4
LM
69192021-01-04 Luis Machado <luis.machado@linaro.org>
6920
6921 Update all users of trad_frame_saved_reg to use the new member
6922 functions.
6923
6924 Remote all struct keywords from declarations of trad_frame_saved_reg
6925 types, except on forward declarations.
6926
6927 * aarch64-tdep.c: Update.
6928 * alpha-mdebug-tdep.c: Update.
6929 * alpha-tdep.c: Update.
6930 * arc-tdep.c: Update.
6931 * arm-tdep.c: Update.
6932 * avr-tdep.c: Update.
6933 * cris-tdep.c: Update.
6934 * csky-tdep.c: Update.
6935 * frv-tdep.c: Update.
6936 * hppa-linux-tdep.c: Update.
6937 * hppa-tdep.c: Update.
6938 * hppa-tdep.h: Update.
6939 * lm32-tdep.c: Update.
6940 * m32r-linux-tdep.c: Update.
6941 * m32r-tdep.c: Update.
6942 * m68hc11-tdep.c: Update.
6943 * mips-tdep.c: Update.
6944 * moxie-tdep.c: Update.
6945 * riscv-tdep.c: Update.
6946 * rs6000-tdep.c: Update.
6947 * s390-linux-tdep.c: Update.
6948 * s390-tdep.c: Update.
6949 * score-tdep.c: Update.
6950 * sparc-netbsd-tdep.c: Update.
6951 * sparc-sol2-tdep.c: Update.
6952 * sparc64-fbsd-tdep.c: Update.
6953 * sparc64-netbsd-tdep.c: Update.
6954 * sparc64-obsd-tdep.c: Update.
6955 * sparc64-sol2-tdep.c: Update.
6956 * tilegx-tdep.c: Update.
6957 * v850-tdep.c: Update.
6958 * vax-tdep.c: Update.
6959
6960 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6961 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6962
6963 * trad-frame.c: Update.
6964 Remove TF_REG_* enum.
6965 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6966 a trivially-constructible struct.
6967 (trad_frame_reset_saved_regs): Adjust to use member function.
6968 (trad_frame_value_p): Likewise.
6969 (trad_frame_addr_p): Likewise.
6970 (trad_frame_realreg_p): Likewise.
6971 (trad_frame_value_bytes_p): Likewise.
6972 (trad_frame_set_value): Likewise.
6973 (trad_frame_set_realreg): Likewise.
6974 (trad_frame_set_addr): Likewise.
6975 (trad_frame_set_unknown): Likewise.
6976 (trad_frame_set_value_bytes): Likewise.
6977 (trad_frame_get_prev_register): Likewise.
6978 * trad-frame.h: Update.
6979 (trad_frame_saved_reg_kind): New enum.
6980 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6981 <m_kind, m_reg>: New member fields.
6982 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6983 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6984 <is_addr, is_unknown, is_value_bytes>: New member functions.
6985
9898e882
SM
69862021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6987
6988 * target-float.c: Fix typos.
6989
b66b4e65
HD
69902021-01-02 Hannes Domani <ssbssa@yahoo.de>
6991
6992 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6993
b5b5650a
JB
69942021-01-01 Joel Brobecker <brobecker@adacore.com>
6995
6996 * gdbarch.sh: Update copyright year range.
6997
3666a048
JB
69982021-01-01 Joel Brobecker <brobecker@adacore.com>
6999
7000 Update copyright year range in copyright header of all GDB files.
7001
ff7e39b6
JB
70022021-01-01 Joel Brobecker <brobecker@adacore.com>
7003
7004 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7005 to the list of directories to update.
7006
2b47c078
JB
70072021-01-01 Joel Brobecker <brobecker@adacore.com>
7008
7009 * top.c (print_gdb_version): Update copyright year.
7010
9e5e03df 70112021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 7012
476923f1 7013 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 7014
476923f1 7015For older changes see ChangeLog-2020.
c906108c
SS
7016\f
7017Local Variables:
7018mode: change-log
7019left-margin: 8
7020fill-column: 74
7021version-control: never
57da7796 7022coding: utf-8
c906108c 7023End: