]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Move scoped_ignore_sigttou to gdbsupport/
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
965febe5
PA
12021-06-17 Pedro Alves <pedro@palves.net>
2
3 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
4 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
5 * inflow.h: Delete, moved to gdbsupport/ under a different name.
6 * ser-unix.c: Don't include "inflow.h". Include
7 "gdbsupport/scoped_ignore_sigttou.h".
8
82a5082e
PA
92021-06-17 Pedro Alves <pedro@palves.net>
10
11 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
12 ...
13 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
14 tui_getc_1.
15 (cur_seq, start_sequence): New.
16 (tui_getc_1): Pass key escape sequences for curses control keys to
17 readline. Handle mouse and ctrl-l here.
18 (tui_resize_all): Disable/reenable the keypad if the command
19 window has the focus too.
20 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
21 setting.
22 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
23
7daf500d
SM
242021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
27
8457e5ec
TV
282021-06-16 Tom de Vries <tdevries@suse.de>
29
30 PR symtab/26327
31 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
32 (dwarf2_cu::get_builder): Declare and move ...
33 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
34 of ancestor. Assert return value is non-null.
35 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
36 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
37 (dwarf2_per_objfile): Add sym_cu field.
38
93df3340
AM
392021-06-15 Alan Modra <amodra@gmail.com>
40
41 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
42
483ab96a
MF
432021-06-14 Mike Frysinger <vapier@gentoo.org>
44
45 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
46 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
47
09db4332
JB
482021-06-14 John Baldwin <jhb@FreeBSD.org>
49
50 * configure.ac: Check for <sys/procctl.h>.
51 * config.in, configure: Regenerate.
52 * fbsd-nat.c: Include <sys/procctl.h> if present.
53 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
54 (fbsd_nat_target::create_inferior)
55 (fbsd_nat_target::supports_disable_randomization): New.
56 * fbsd-nat.h (fbsd_nat_target::create_inferior)
57 (fbsd_nat_target::supports_disable_randomization): New.
58
739025e8
BE
592021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
60
61 * compile/compile.c: Include missing header signal.h.
62
d424629d
JB
632021-06-12 John Baldwin <jhb@FreeBSD.org>
64
65 * remote.c (remote_new_objfile): Fix indentation.
66
e2b9ea4b
KB
672021-06-11 Kevin Buettner <kevinb@redhat.com>
68
69 * solib.c (libpthread_name_p): Match "libc" in addition
70 to "libpthread".
71 * linux-thread-db.c (libpthread_objfile_p): New function.
72 (libpthread_name_p): Adjust preexisting callers to use
73 libpthread_objfile_p().
74
873793ae
SM
752021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * dwarf2/loc.h (struct call_site_stuff): Remove.
78
48ec4c05
TT
792021-06-11 Tom Tromey <tom@tromey.com>
80
81 PR rust/23427
82 * rust-parse.c (rust_parser::lex_identifier): Handle raw
83 identifiers.
84 (rust_lex_tests): Add raw identifier tests.
85
f9e59d06
LS
862021-06-08 Lancelot Six <lsix@lancelotsix.com>
87
88 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
89 instead of '== None'.
90 (FrameVars): Use 'is not None' instead of '!= None'.
91 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
92 Use 'is None' instead of '== None' and 'is not None' instead of '!=
93 None'.
94
122373f7
SM
952021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * inferior.h (class inferior) <in_initial_library_scan>: New.
98 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
99 * infrun.c (follow_fork_inferior): Likewise.
100 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
101 by try_thread_db_load_1
102 (thread_db_load): Return early if in_initial_library_scan is
103 set.
104 * remote.c (remote_new_objfile): Return early if
105 in_initial_library_scan is set.
106
1b453aed
PA
1072021-06-07 Pedro Alves <pedro@palves.net>
108
109 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
110 ctor.
111 * symtab.h (struct symbol): Add defaulted copy assignment
112 operator.
113
fa6ec8ef
PA
1142021-06-07 Pedro Alves <pedro@palves.net>
115
116 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
117 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
118 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
119 local.
120
c57eb1a2
PA
1212021-06-07 Pedro Alves <pedro@palves.net>
122
123 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
124 (nat_sigval_t): ... this and remove typedef of same name.
125 (struct nat_siginfo): Rename to ...
126 (nat_siginfo_t): ... this and remove typedef of same name.
127 (struct compat_sigval): Rename to ...
128 (compat_sigval_t): ... this and remove typedef of same name.
129 (struct compat_siginfo): Rename to ...
130 (compat_siginfo_t): ... this and remove typedef of same name.
131 (struct compat_x32_siginfo): Rename to ...
132 (compat_x32_siginfo_t): ... this and remove typedef of same name.
133 (amd64_linux_siginfo_fixup_common): Adjust.
134
d8ca8e9f
PA
1352021-06-07 Pedro Alves <pedro@palves.net>
136
137 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
138 __attribute__ __aligned__ from the typedef to the struct.
139
a12a15e7
AB
1402021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 PR gdb/27847
143 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
144 type_align, and spot case where the alignment is unknown.
145
ecac8d1c
CL
1462021-06-07 Carl Love <cel@us.ibm.com>
147
148 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
149 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
150 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
151 ppc64_pcrel_linkage2_target): New functions.
152 (ppc64_standard_linkage9, ppc64_standard_linkage10,
153 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
154 instruction patterns.
155 (ppc64_standard_linkage9, ppc64_standard_linkage10,
156 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
157 in define MAX expression.
158 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
159 ppc64_standard_linkage10, ppc64_standard_linkage11,
160 ppc64_standard_linkage12.
161 * (ppc_insn_prefix_dform): New function.
162
cfa8e270
SM
1632021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
164
165 PR gdb/27899
166 * sparc-nat.c (sparc_fetch_inferior_registers): Set
167 inferior_ptid instead of using switch_to_thread.
168 (sparc_store_inferior_registers): Likewise.
169
4a977544
BE
1702021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
171
172 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
173 (compile_to_object): Ignore SIGPIPE before calling the plugin.
174
8ff8c543
TT
1752021-06-05 Tom Tromey <tom@tromey.com>
176
177 * data-directory/Makefile.in (Makefile): Use correct directory
178 name.
179
19d6d783
TT
1802021-06-05 Tom Tromey <tom@tromey.com>
181
182 * data-directory/Makefile.in (Makefile): Rewrite.
183
b316465f
TT
1842021-06-05 Tom Tromey <tromey@adacore.com>
185
186 * configure: Rebuild.
187 * configure.ac: Add ACX_NONCANONICAL_TARGET.
188
ae61ef2c
SV
1892021-06-05 Shahab Vahedi <shahab@synopsys.com>
190
191 * NEWS: Document 'set disassembler-options' support for the ARC
192 target.
193 * arc-tdep.c (arc_gdbarch_init): Set
194 'gdbarch_valid_disassembler_options'.
195
386de171
TT
1962021-06-04 Tom Tromey <tromey@adacore.com>
197
198 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
199 parameter.
200 * dwarf2/loc.c (dwarf2_evaluate_property) <case
201 PROP_VARIABLE_NAME>: New case.
202 (compute_var_value): New function.
203 (sect_variable_value): Use compute_var_value.
204 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
205 (var_decl_name): New function.
206 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
207 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
208 constant.
209 (union dynamic_prop_data) <variable_name>: New member.
210 (struct dynamic_prop) <variable_name, set_variable_name>: New
211 methods.
212
4351271e
AB
2132021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
214
215 * remote.c (remote_target)
216 <select_thread_for_ambiguous_stop_reply>: Add additional debug
217 output.
218
a5375566
HD
2192021-06-04 Hannes Domani <ssbssa@yahoo.de>
220
221 * python/py-tui.c (class tui_py_window): Add click function.
222 (tui_py_window::click): Likewise.
223
1bace02a
HD
2242021-06-04 Hannes Domani <ssbssa@yahoo.de>
225
226 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
227 * tui/tui-data.h (struct tui_win_info): Add click function.
228 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
229 (tui_deprep_terminal): Disable mouse events.
230 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
231 * tui/tui.c (tui_disable): Disable mouse events.
232
df5bc734
MH
2332021-06-03 Magne Hov <mhov@undo.io>
234
235 PR python/27841
236 * eval.c (expression::evaluate): Check inferior_ptid.
237
415c8100
PA
2382021-06-03 Pedro Alves <pedro@palves.net>
239
240 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
241 affiliation.
242 (Global Maintainers): Update my address.
243 (Write After Approval): Remove stale entry.
244
83810881
JB
2452021-06-03 John Baldwin <jhb@FreeBSD.org>
246
247 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
248 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
249 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
250 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
251 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
252 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
253 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
254 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
255 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
256 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
257 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
258 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
259 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
260 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
261 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
262 (fbsd_report_signal_info): New.
263 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
264 report_signal_info method.
265
4c958d79
MH
2662021-06-03 Magne Hov <mhov@undo.io>
267
268 * MAINTAINERS (Write After Approval): Add Magne Hov.
269
6ac5237c
HD
2702021-06-03 Hannes Domani <ssbssa@yahoo.de>
271
272 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
273 gdb.SYMBOL_LABEL_DOMAIN constant.
274
aeeb758d
JB
2752021-06-01 John Baldwin <jhb@FreeBSD.org>
276
277 * infrun.c (handle_inferior_event): Only call
278 gdbarch_displaced_step_restore_all_in_ptid if
279 gdbarch_supports_displaced_stepping is true.
280
906f72d4
TT
2812021-06-01 Tom Tromey <tromey@adacore.com>
282
283 * Makefile.in (all-data-directory): Remove.
284 (data-directory/Makefile): Remove.
285
ba56237d
TT
2862021-06-01 Tom Tromey <tromey@adacore.com>
287
288 * configure: Rebuild.
289 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
290
2adf1781
TT
2912021-06-01 Tom Tromey <tromey@adacore.com>
292
293 * silent-rules.mk (ECHO_CC): New variable.
294
bdbbcd57
TT
2952021-06-01 Tom Tromey <tromey@adacore.com>
296
297 * Makefile.in (SUBDIRS): Add testsuite.
298 (all): Don't exclude testsuite.
299
f99d1d37
TT
3002021-06-01 Tom Tromey <tromey@adacore.com>
301
302 * configure.ac: Copy some code from testsuite/configure.ac.
303 (enable_libctf): Subst this, not ENABLE_LIBCTF.
304 * configure: Rebuild.
305
17d305ef
TV
3062021-06-01 Tom de Vries <tdevries@suse.de>
307
308 PR symtab/26096
309 * minsyms.c (msymbol_is_cold_clone): New function.
310 (msymbol_is_function): Use msymbol_is_cold_clone.
311
9b715c68
AB
3122021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
313 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 PR gdb/14383
316 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
317 (ALLDEPFILES): Add arm-none-tdep.c
318 * arm-none-tdep.c: New file.
319 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
320
b4b3e2de
AB
3212021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
322 Richard Bunt <richard.bunt@arm.com>
323
324 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
325 check for why the backtrace stopped.
326
9ea36493
SM
3272021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
330 Update all callers.
331 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
332 signature parameter, update all callers.
333 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
334 signature parameter.
335
46c6bcf6
SM
3362021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * dwarf2/read.h (signatured_type_up): New, use where possible.
339
4631503b
SM
3402021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
343
cc653233
TT
3442021-05-30 Tom Tromey <tom@tromey.com>
345
346 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
347 is_debug_types.
348 (create_signatured_type_table_from_index)
349 (create_signatured_type_table_from_debug_names, add_type_unit)
350 (read_comp_units_from_section): Update.
351
c96e8b04
TT
3522021-05-30 Tom Tromey <tom@tromey.com>
353
354 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
355 m_num_psymtabs>: Remove.
356 (resize_symtabs): Update.
357 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
358 (dwarf2_per_bfd::allocate_signatured_type): Update.
359
24b21115
SM
3602021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * Fix tab after space indentation issues throughout.
363
01add95b
SM
3642021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * Fix some indentation mistakes throughout.
367
055c879f
SM
3682021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * breakpoint.h (iterate_over_bp_locations): Remove. Update
371 users to use all_bp_locations.
372 (all_bp_locations): New.
373 * breakpoint.c (all_bp_locations): Make non-static.
374 (iterate_over_bp_locations): Remove.
375
240edef6
SM
3762021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
377
378 * breakpoint.h (iterate_over_breakpoints): Remove. Update
379 callers to use all_breakpoints or all_breakpoints_safe.
380 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
381 all_breakpoints_safe): Move here.
382 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
383 non-static.
384 (iterate_over_breakpoints): Remove.
385 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
386 Return void.
387 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
388 return value logic.
389 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
390
e0d9a270
SM
3912021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * breakpoint.c (get_first_locp_gte_addr): Remove.
394 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
395 all_bp_locations_at_addr.
396 (struct bp_locations_at_addr_range): New.
397 (all_bp_locations_at_addr): New.
398 (bp_locations_compare_addrs): New.
399
48d7020b
SM
4002021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
403 all_bp_locations.
404 (all_bp_locations): New.
405
5d51cd5d
SM
4062021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * breakpoint.c (bp_locations): Change to std::vector, update all
409 users.
410 (bp_locations_count): Remove.
411 (update_global_location_list): Change to work with indices
412 rather than bp_location**.
413
40cb8ca5
SM
4142021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
415
416 * breakpoint.h (bp_locations_range): New.
417 (struct breakpoint) <locations>: New. Use where possible.
418
f6d17b2b
SM
4192021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
420
421 * breakpoint.h (all_tracepoints): Remove.
422 (breakpoint_iterator): Move here.
423 (struct tracepoint_filter): New.
424 (tracepoint_iterator): New.
425 (tracepoint_range): New.
426 (all_tracepoints): New.
427 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
428 all_tracepoints.
429 (breakpoint_iterator): Move to header.
430 (all_tracepoints): New.
431 * tracepoint.c (start_tracing): Adjust.
432
1428b37a
SM
4332021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
434
435 * breakpoint.c (breakpoint_safe_range): New.
436 (all_breakpoints_safe): New. Use instead of
437 ALL_BREAKPOINTS_SAFE where possible.
438
43892fdf
SM
4392021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
442 all_breakpoints.
443 (breakpoint_iterator): New.
444 (breakpoint_range): New.
445 (all_breakpoints): New.
446
bdef5723
HD
4472021-05-27 Hannes Domani <ssbssa@yahoo.de>
448
449 * python/py-tui.c (tui_py_window::output): Add full_window
450 argument.
451 (gdbpy_tui_write): Parse "full_window" argument.
452
d5a6313e
SM
4532021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
454
455 * make-init-c: Add option to reverse function calls.
456
f39632d9
SM
4572021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * Makefile.in (INIT_FILES_FILTER_OUT): New.
460 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
461 (stamp-init): Use make-init-c.
462 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
463 * silent-rules.mk (ECHO_INIT_C): Change.
464 * make-init-c: New file.
465
5e84b7ee
SM
4662021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * command.h (add_alias_cmd): Accept target as
469 cmd_list_element. Update callers.
470
e0f25bd9
SM
4712021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
472
473 * command.h (add_info_alias): Accept target as
474 cmd_list_element. Update callers.
475
3947f654
SM
4762021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
477
478 * command.h (add_com_alias): Accept target as
479 cmd_list_element. Update callers.
480
7bd22f56
SM
4812021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
482
483 * python/py-param.c (add_setshow_generic): Use return values of
484 add_setshow functions.
485
9f260536
SM
4862021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
487
488 * mi/mi-main.c (_initialize_mi_main):
489 * python/py-auto-load.c (gdbpy_initialize_auto_load):
490 * remote.c (_initialize_remote):
491
af7f8f52
SM
4922021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * command.h (set_show_commands): New.
495 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
496 add_setshow_boolean_cmd, add_setshow_filename_cmd,
497 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
498 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
499 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
500 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
501 Return set_show_commands. Adjust callers.
502 * cli/cli-decode.c (add_setshow_cmd_full): Return
503 set_show_commands, remove result parameters, adjust callers.
504
248f7165
TV
5052021-05-27 Tom de Vries <tdevries@suse.de>
506
507 PR symtab/27919
508 * dwarf2/read.c (process_psymtab_comp_unit):
509
2152b4fd
TV
5102021-05-27 Tom de Vries <tdevries@suse.de>
511
512 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
513 error.
514
6dcd1193
TV
5152021-05-27 Tom de Vries <tdevries@suse.de>
516
517 PR symtab/27898
518 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
519 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
520 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
521 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
522 load_all_dies init.
523 (dwarf2_per_cu_data): Remove load_all_dies field.
524
11bb5c41
SM
5252021-05-26 Simon Marchi <simon.marchi@efficios.com>
526
527 * regcache.c (reg_buffer::reg_buffer): Default-initialize
528 m_registers array.
529
ef5f598c
TT
5302021-05-26 Tom Tromey <tom@tromey.com>
531
532 * dwarf2/read.c (allocate_type_unit_groups_table)
533 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
534 htab_delete_entry.
535 (free_line_header_voidp): Remove.
536 * completer.c
537 (completion_tracker::completion_hash_entry::deleter): Remove.
538 (completion_tracker::discard_completions): Use htab_delete_entry.
539 * utils.h (htab_delete_entry): New template function.
540
a56889ae
HD
5412021-05-24 Hannes Domani <ssbssa@yahoo.de>
542
543 * python/py-tui.c (tui_py_window::refresh_window):
544 Avoid flickering.
545
fbf3c4b9
TV
5462021-05-23 Tom de Vries <tdevries@suse.de>
547
548 PR tdep/27822
549 * target.h (struct target_ops): Mention target_thread_architecture in
550 read_description comment.
551 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
552 pid to determine if process is 64-bit or 32-bit.
553 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
554 Same.
555 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
556 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
557 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
558 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
559 Likewise, use pid to determine if kernel supports reading VFP
560 registers.
561
8569d6e1
PW
5622021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
563
564 * main.c (enum cmdarg_kind): Fix option type comments for
565 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
566
778ae9cc
TV
5672021-05-21 Tom de Vries <tdevries@suse.de>
568
569 PR testsuite/25047
570 * contrib/cc-with-tweaks.sh: Handle -l.
571
6d1a09b7
TV
5722021-05-21 Tom de Vries <tdevries@suse.de>
573
574 PR breakpoint/27889
575 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
576 objects. Call get_jiter_objfile_data with the_objfile.
577
1487a14e
SM
5782021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * linespec.c (linespec_p): Remove. Replace all uses with
581 "linespec *".
582
bb6203bf
AH
5832021-05-20 Alexandra Hájková <ahajkova@redhat.com>
584 Pedro Alves <pedro@palves.net>
585
586 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
587 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
588 command_line_up instead of struct command_line.
589 (build_command_line): Likewise.
590 (get_command_line): Update the cmd function call parameter.
591 (process_next_line): Use unique_ptr command_line_up instead
592 of struct command_line.
593 (recurse_read_control_structure): Change the the type of
594 next to command_line_up.
595 (read_command_lines_1): Change type of `next' to be
596 command_line_up and update all references of `next'
597 accordingly.
598
ed3130b7
AH
5992021-05-20 Alexandra Hájková <ahajkova@redhat.com>
600
601 * MAINTAINERS (Write After Approval): Add myself.
602
5433e20e
JB
6032021-05-19 John Baldwin <jhb@FreeBSD.org>
604
605 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
606
a5523cc3
AH
6072021-05-18 Alexandra Hájková <ahajkova@redhat.com>
608
609 * inflow.c (new_tty): Do not leak tty.
610
cd53fa40
TT
6112021-05-17 Tom Tromey <tom@tromey.com>
612
613 * dwarf2/read.h: Update include.
614 * dwarf2/read.c: Update include.
615 * dwarf2/line-header.c: Update include.
616 * dwarf2/cu.h: Update include.
617 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
618 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
619 * Makefile.in (COMMON_SFILES): Update.
620
347212b8
TT
6212021-05-17 Tom Tromey <tom@tromey.com>
622
623 * dwarf2/read.c (maybe_queue_comp_unit)
624 (dwarf2_per_objfile::age_comp_units): Update.
625 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
626 dwarf2_cu methods.
627 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
628 add_dependence>: New methods.
629 <m_dependencies>: Add "m_" prefix. Now private.
630 <m_mark>: Add "m_" prefix.
631 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
632 (dwarf2_mark_helper): New function.
633 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
634
839118f9
TT
6352021-05-17 Tom Tromey <tom@tromey.com>
636
637 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
638 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
639 (dwarf2_cu::dwarf2_cu): Move to cu.c.
640 * dwarf2/cu.c: New file.
641 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
642
8ae78a44
TT
6432021-05-17 Tom Tromey <tom@tromey.com>
644
645 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
646 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
647 Move to cu.h.
648 * dwarf2/cu.h: New file.
649
c1c0a7e1
AB
6502021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * .dir-locals.el: Set sentence-end-double-space for all modes, and
653 set brace-list-open to 0 for C and C++ modes.
654
9e541c79
TT
6552021-05-17 Tom Tromey <tromey@adacore.com>
656
657 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
658 if frame is null.
659
59173216
TT
6602021-05-17 Tom Tromey <tromey@adacore.com>
661
662 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
663 (group_from_gid): Subtract one from strncpy length.
664
baea2f9d
TT
6652021-05-17 Tom Tromey <tromey@adacore.com>
666
667 * source.c (add_path): Check 'p' before using 'p[-1]'.
668
473ab964
TT
6692021-05-17 Tom Tromey <tromey@adacore.com>
670
671 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
672 (dwarf2_per_cu_data_up): New typedef.
673 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
674 <all_comp_units>: Use dwarf2_per_cu_data_up.
675 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
676 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
677 (create_cu_from_index_list): Likewise.
678 (create_signatured_type_table_from_index)
679 (create_cus_from_debug_names_list, add_type_unit)
680 (read_comp_units_from_section): Update.
681 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
682 (run_test): Update.
683
16e0020b
TT
6842021-05-17 Tom Tromey <tom@tromey.com>
685
686 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
687 (sort_tu_by_abbrev_offset): Remove.
688 (build_type_psymtabs): Update.
689
91e159e9
SM
6902021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * py-project.toml: New.
693 * gdb-gdb.py.in: Re-format.
694
034dce7a
SM
6952021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
696
697 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
698 New, use it.
699 * command.h (cmd_func_p): Remove.
700 * cli/cli-decode.c (cmd_func_p): Remove.
701
1be99b11
SM
7022021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
703
704 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
705
99858724
SM
7062021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
709 to...
710 <alias_target>: ... this.
711 (add_alias_cmd): Rename old to target.
712 (add_info_alias): Rename old_name to target_name.
713 (add_com_alias): Likewise.
714
14b42fc4
SM
7152021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
716
717 * Rename "prefixlist" parameters to "subcommands" throughout.
718 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
719 <subcommands>: ... this.
720 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
721 (lookup_cmd_with_subcommands): ... this.
722
ecd0a6b3
SM
7232021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
726
413b49c2
SM
7272021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * cli/cli-decode.h (prefixname): Make const, move implementation
730 to cli/cli-decode.c.
731 * cli/cli-decode.c (cmd_list_element::prefixname): New.
732
ea11a98d
WP
7332021-05-16 Weimin Pan <weimin.pan@oracle.com>
734
735 * ctfread.c (new_symbol): Set function address.
736 (read_func_kind_type): Remove incorrect type name setting.
737 Don't copy name returned from ctf_type_ame_raw throughout file.
738
887e7158
TT
7392021-05-14 Tom Tromey <tom@tromey.com>
740
741 * rust-lang.c (rust_language::val_print_struct)
742 (rust_language::print_enum): Use common_val_print, not
743 value_print_inner.
744
55789354
TBA
7452021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
746
747 * python/py-inferior.c (infpy_get_connection_num): New function.
748 (inferior_object_getset): Add a new element for 'connection_num'.
749 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
750
2f63ec5c
AB
7512021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
752
753 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
754 argument type, update and re-wrap, header comment.
755 (remote_target::commit_resumed): Convert any_process_wildcard and
756 may_global_wildcard_vcont from int to bool.
757
ecf25064
KC
7582021-05-14 Kent Cheung <kent.cheung@arm.com>
759
760 * cp-valprint.c (cp_print_value): Replaced duplicate code.
761 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
762 just before printing child values.
763 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
764 printing string representation.
765 * python/py-prettyprint.c (print_children): Check max_depth just
766 before printing child values.
767 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
768 printing string representation.
769
df68e12b
MF
7702021-05-14 Mike Frysinger <vapier@gentoo.org>
771
772 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
773 sim/callback.h & sim/sim.h.
774
183aaaf7
MF
7752021-05-13 Mike Frysinger <vapier@gentoo.org>
776
777 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
778 sim-regno.h include.
779
737358ba
SM
7802021-05-13 Simon Marchi <simon.marchi@efficios.com>
781
782 * inf-child.h (inf_child_target) <follow_exec>: New.
783 * inf-child.c (inf_child_target::follow_exec): New.
784
294c36eb
SM
7852021-05-13 Simon Marchi <simon.marchi@efficios.com>
786
787 * target.h (struct target_ops) <follow_exec>: Add ptid_t
788 parameter.
789 (target_follow_exec): Likewise.
790 * target.c (target_follow_exec): Add ptid_t parameter.
791 * infrun.c (follow_exec): Adjust call to target_follow_exec,
792 don't push target nor create thread.
793 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
794 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
795 (thread_db_target::follow_exec): New.
796 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
797 (remote_target::follow_exec): Call
798 process_stratum_target::follow_exec.
799 * target-delegates.c: Re-generate.
800
2af87c85
SM
8012021-05-13 Simon Marchi <simon.marchi@efficios.com>
802
803 * infrun.c (follow_exec): Call target_follow_fork when
804 follow-exec-mode is same.
805 * target.h (target_follow_fork): Improve doc.
806
0b2256f7
SM
8072021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
810 Remove.
811 * cli/cli-setshow.c (do_show_command): Adjust.
812
0746f49b
LM
8132021-05-13 Luis Machado <luis.machado@linaro.org>
814
815 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
816 include the last address in the range.
817
4b8cb9dd
SM
8182021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * python/python-internal.h (gdbpy_parse_command_name): Return
821 gdb::unique_xmalloc_ptr.
822 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
823 (cmdpy_init): Adjust.
824 * python/py-param.c (parmpy_init): Adjust.
825 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
826 when done.
827
ee35ce82
GB
8282021-05-12 George Barrett <bob@bob131.so>
829
830 * NEWS (Guile API): Note the addition of the new procedure.
831 * guile/scm-value.c (gdbscm_value_const_value): Add
832 implementation of value-const-value procedure.
833 (value_functions): Add value-const-value procedure.
834
9d4fc61d
GB
8352021-05-12 George Barrett <bob@bob131.so>
836
837 * NEWS (Guile API): Note the addition of new procedures.
838 * guile/scm-value.c (gdbscm_reference_value): Add helper function
839 for reference value creation.
840 (gdbscm_value_reference_value): Add implementation of
841 value-reference-value procedure.
842 (gdbscm_value_rvalue_reference_value): Add implementation of
843 value-rvalue-reference-value procedure.
844 (value_functions): Add value-reference-value procedure. Add
845 value-rvalue-reference-value procedure.
846
97cef6b7
GB
8472021-05-12 George Barrett <bob@bob131.so>
848
849 * guile/scm-type.c (type_integer_constants): Add binding for
850 TYPE_CODE_RVALUE_REF.
851 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
852 dereferencing of rvalue references.
853 * NEWS (Guile API): Note improvements in rvalue reference support.
854
d51344c9
MM
8552021-05-12 Markus Metzger <markus.t.metzger@intel.com>
856
857 * btrace.c (handle_pt_insn_events): Ignore status update enable
858 events.
859
f2a883a8
SM
8602021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
861
862 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
863 indentation.
864
64f30eb0
SM
8652021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
866
867 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
868
db1f6cd6
LS
8692021-05-10 Lancelot Six <lsix@lancelotsix.com>
870
871 PR gdb/27614
872 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
873 argument.
874
31aceaef
SM
8752021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
876
877 * nat/linux-waitpid.c (status_to_str): Show signal name.
878
75140e3b
AB
8792021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * python/py-breakpoint.c (pybp_debug): New static global.
882 (show_pybp_debug): New function.
883 (pybp_debug_printf): Define.
884 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
885 (gdbpy_breakpoint_created): Add some debugging.
886 (gdbpy_breakpoint_deleted): Likewise.
887 (gdbpy_breakpoint_modified): Likewise.
888 (_initialize_py_breakpoint): New function.
889
1ef40c13
AB
8902021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
891
892 * python/py-unwind.c (pyuw_debug): Convert to bool.
893 (show_pyuw_debug): New function.
894 (pyuw_debug_printf): Define.
895 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
896 (pyuw_this_id): Convert to new debug print macros.
897 (pyuw_prev_register): Likewise.
898 (pyuw_sniffer): Likewise.
899 (pyuw_dealloc_cache): Likewise.
900 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
901 show function when registering.
902
927c4e35
AB
9032021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
904
905 * dummy-frame.c (fprint_dummy_frames): Convert use of
906 fprint_frame_id to use frame_id::to_string.
907 * frame.c (fprint_field): Delete.
908 (fprint_frame_id): Moved to...
909 (frame_id::to_string): ...this, rewritten to return a string.
910 (fprint_frame): Convert use of fprint_frame_id to use
911 frame_id::to_string.
912 (compute_frame_id): Likewise.
913 (frame_id_p): Likewise.
914 (frame_id_eq): Likewise.
915 (frame_id_inner): Likewise.
916 * frame.h (struct frame_id) <to_string>: New member function.
917 (fprint_frame_id): Delete declaration.
918 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
919 fprint_frame_id to use frame_id::to_string.
920 * python/py-frame.c (frame_object_to_frame_info): Likewise.
921 * python/py-unwind.c (unwind_infopy_str): Likewise.
922 (pyuw_this_id): Likewise.
923
8d06918f
SM
9242021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * nat/linux-waitpid.c (status_to_str): Return std::string.
927 * nat/linux-waitpid.h (status_to_str): Likewise.
928 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
929 (linux_nat_target::attach): Adjust.
930 (linux_handle_extended_wait): Adjust.
931 (wait_lwp): Adjust.
932 (stop_wait_callback): Adjust.
933 (linux_nat_filter_event): Adjust.
934 (linux_nat_wait_1): Adjust.
935 * nat/linux-waitpid.c (status_to_str): Adjust.
936 * nat/linux-waitpid.h (status_to_str): Adjust.
937
550e9289
SM
9382021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
939
940 * infrun.h (infrun_debug_printf): Add missing space.
941
4655f850
PA
9422021-05-08 Pedro Alves <pedro@palves.net>
943
944 * linux-nat.c (linux_nat_target::supports_disable_randomization):
945 Remove references to HAVE_PERSONALITY.
946 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
947 (maybe_disable_address_space_randomization)
948 (~maybe_disable_address_space_randomizatio): Remove references to
949 HAVE_PERSONALITY.
950 * config.in, configure: Regenerate.
951
1845e254
AB
9522021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
955 include.
956 (source_script_with_search): Perform tilde expansion.
957
91e3c425
SM
9582021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
959
960 * target-descriptions.c (struct target_desc_info) <filename>:
961 Make std::string.
962 (copy_inferior_target_desc_info): Adjust.
963 (target_desc_info_free): Adjust.
964 (target_find_description): Adjust.
965 (set_tdesc_filename_cmd): Adjust.
966 (show_tdesc_filename_cmd): Adjust.
967 (unset_tdesc_filename_cmd): Adjust.
968 (maint_print_c_tdesc_cmd): Adjust.
969
0b2f7ade
SM
9702021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * target-descriptions.c (struct target_desc_info): Initialize
973 fields.
974 (get_tdesc_info): Use new.
975 (target_desc_info_free): Use delete.
976
820c4490
SM
9772021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
978
979 * target-descriptions.c (struct target_desc_info) <fetched>:
980 bool.
981 (target_find_description): Adjust.
982 (target_clear_description): Adjust.
983
c2962e6a
SM
9842021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
985
986 * target-descriptions.c (struct target_desc_info) <tdesc>:
987 Adjust doc.
988 (target_desc_fetched): Remove.
989 (current_target_desc): Remove.
990 (target_description_filename): Remove.
991 (target_find_description): Adjust.
992 (target_clear_description): Adjust.
993 (target_current_description): Adjust.
994 (set_tdesc_filename_cmd): Adjust.
995 (show_tdesc_filename_cmd): Adjust.
996 (unset_tdesc_filename_cmd): Adjust.
997 (maint_print_c_tdesc_cmd): Adjust.
998 (maint_print_xml_tdesc_cmd): Adjust.
999
8a82de58
AB
10002021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * infcmd.c (notice_new_inferior): Change parameter type.
1003 * inferior.h (notice_new_inferior): Change parameter type.
1004 * remote.c (remote_notice_new_inferior): Change parameter type to
1005 bool. Also update type of local variable to bool.
1006 (remote_target::update_thread_list): Change type of local variable
1007 to bool.
1008 (remote_target::process_stop_reply): Pass bool instead of int to
1009 remote_notice_new_inferior.
1010
bedc4734
SM
10112021-05-07 Simon Marchi <simon.marchi@efficios.com>
1012
1013 * target.c (target_stack::unpush): Call target_ops::find_beneath
1014 to get the target beneath `t`.
1015
27f0a431
SM
10162021-05-07 Simon Marchi <simon.marchi@efficios.com>
1017
1018 * target.c (target_close): Check in all inferiors that the
1019 target is not pushed.
1020
1d1669e4
AM
10212021-05-07 Aaron Merey <amerey@redhat.com>
1022
1023 * debuginfod-support.c (debuginfod_init): Remove.
1024 (get_debuginfod_client): New function.
1025
2698f5ea
TT
10262021-05-07 Tom Tromey <tom@tromey.com>
1027
1028 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1029 * utils.c (streq_hash): Remove.
1030 * utils.h (streq_hash): Don't declare.
1031 * completer.c (completion_tracker::discard_completions): Update
1032 comment.
1033 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1034
13123da8
SM
10352021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1036
1037 * Re-format all Python files using black.
1038
9589edb8
AB
10392021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1040
1041 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1042 function return type.
1043 * guile/guile.c (gdbscm_source_script): Update to handle change in
1044 gdbscm_safe_source_script.
1045 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1046 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1047 type.
1048
ec66d6ea
SM
10492021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1050
1051 * inferior.h (class inferior) <args>: Change type to
1052 unique_xmalloc_ptr.
1053 * inferior.c (inferior::~inferior): Don't free args.
1054 * infcmd.c (get_inferior_args): Adjust.
1055 (set_inferior_args): Adjust.
1056
0618ecf6
AB
10572021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1060 breakpoint locations when the breakpoint actually has a location.
1061
79aabb73
TBA
10622021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1063
1064 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1065 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1066 mi_cmd_break_condition.
1067 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1068 * breakpoint.h (set_breakpoint_condition): Declare a new
1069 overload.
1070 * breakpoint.c (set_breakpoint_condition): New overloaded function
1071 extracted out from ...
1072 (condition_command): ... this.
1073 * NEWS: Mention the change.
1074
10e578d7
TBA
10752021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1076
1077 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1078 '--force-condition' flag to force the condition in the
1079 '-break-insert' and '-dprintf-insert' commands.
1080 * NEWS: Mention the change.
1081
225bda24
TV
10822021-05-04 Tom de Vries <tdevries@suse.de>
1083
1084 PR guile/27806
1085 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1086 memory functions.
1087
b8efb248
TT
10882021-04-30 Tom Tromey <tom@tromey.com>
1089
1090 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1091 (add_signatured_type_cu_to_table): Remove.
1092 (create_debug_type_hash_table): Assume dwo_file is non-null.
1093 (create_debug_types_hash_table): Update comment.
1094 (create_all_type_units): Remove.
1095 (sort_tu_by_abbrev_offset): Update comment.
1096 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1097 (build_type_psymtabs): Remove.
1098 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1099 Update.
1100 (read_comp_units_from_section): Add types_htab, section_kind
1101 parameters.
1102 (create_all_comp_units): Read type units.
1103
91eea9cc
TT
11042021-04-30 Tom Tromey <tom@tromey.com>
1105
1106 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1107 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1108 <get_cu>: Now inline.
1109 <all_type_units>: Remove.
1110 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1111 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1112 (dwarf2_per_bfd::get_tu): Remove.
1113 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1114 (create_signatured_type_table_from_index)
1115 (create_signatured_type_table_from_debug_names)
1116 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1117 (dwarf2_base_index_functions::expand_all_symtabs)
1118 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1119 (dwarf2_base_index_functions::map_symbol_filenames)
1120 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1121 (add_signatured_type_cu_to_table, create_all_type_units)
1122 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1123 (create_all_comp_units): Update.
1124 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1125 (write_debug_names): Update.
1126
0d305d5c
TT
11272021-04-30 Tom Tromey <tom@tromey.com>
1128
1129 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1130 allocate_signatured_type>: Change return type.
1131 <all_comp_units, all_type_units>: Hold unique pointers.
1132 (struct dwarf2_per_cu_data): Add constructor and initializers.
1133 (struct signatured_type): Derive from dwarf2_per_cu_data.
1134 * dwarf2/read.c (type_unit_group): Derive from
1135 dwarf2_per_cu_data.
1136 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1137 (dwarf2_per_bfd::get_tu)
1138 (dwarf2_per_bfd::allocate_signatured_type)
1139 (dwarf2_per_bfd::allocate_signatured_type)
1140 (create_cu_from_index_list, create_cus_from_index_list)
1141 (create_signatured_type_table_from_index)
1142 (create_signatured_type_table_from_debug_names)
1143 (create_addrmap_from_aranges)
1144 (dwarf2_base_index_functions::find_last_source_symtab)
1145 (dw_expand_symtabs_matching_file_matcher)
1146 (dwarf2_gdb_index::expand_symtabs_matching)
1147 (dwarf2_base_index_functions::map_symbol_filenames)
1148 (create_cus_from_debug_names_list)
1149 (dw2_debug_names_iterator::next)
1150 (dwarf2_debug_names_index::expand_symtabs_matching)
1151 (create_debug_type_hash_table, add_type_unit)
1152 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1153 Update.
1154 (allocate_type_unit_groups_table): Use delete.
1155 (create_type_unit_group): Change return type. Use new.
1156 (get_type_unit_group, build_type_psymtabs_1)
1157 (build_type_psymtab_dependencies)
1158 (process_skeletonless_type_unit, set_partial_user)
1159 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1160 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1161 (read_signatured_type): Update.
1162 (dwarf2_find_containing_comp_unit): Change type of
1163 'all_comp_units'.
1164 (run_test): Update.
1165 (dwarf2_per_bfd::allocate_per_cu)
1166 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1167 Use new.
1168 (add_signatured_type_cu_to_table): Update.
1169 * dwarf2/index-write.c (write_one_signatured_type)
1170 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1171 (write_debug_names): Update.
1172
1bee48c7
TT
11732021-04-30 Tom Tromey <tromey@adacore.com>
1174
1175 * nat/windows-nat.h (get_image_name): Don't declare.
1176 * nat/windows-nat.c (get_image_name): Now static.
1177
e228ef97
TT
11782021-04-30 Tom Tromey <tromey@adacore.com>
1179
1180 * windows-nat.c (windows_nat::handle_load_dll): Update.
1181 (windows_nat_target::get_windows_debug_event): Call
1182 dll_loaded_event.
1183 (windows_add_all_dlls, windows_add_dll): Move to
1184 nat/windows-nat.c.
1185 * nat/windows-nat.h (handle_load_dll): Change parameters.
1186 (dll_loaded_event, windows_add_all_dlls): Declare.
1187 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1188 from windows-nat.c.
1189 (dll_loaded_event): New function.
1190
de071872
TT
11912021-04-30 Tom Tromey <tromey@adacore.com>
1192
1193 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1194 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1195 Declare.
1196 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1197 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1198
9e439f00
TT
11992021-04-30 Tom Tromey <tromey@adacore.com>
1200
1201 * windows-nat.c: Move code to nat/windows-nat.[ch].
1202 (_initialize_windows_nat): Call initialize_loadable.
1203 * nat/windows-nat.h (AdjustTokenPrivileges)
1204 (DebugActiveProcessStop, DebugBreakProcess)
1205 (DebugSetProcessKillOnExit, EnumProcessModules)
1206 (EnumProcessModulesEx, GetModuleInformation)
1207 (GetModuleFileNameExA, GetModuleFileNameExW)
1208 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1209 (GetCurrentConsoleFont, Wow64SuspendThread)
1210 (Wow64GetThreadContext, Wow64SetThreadContext)
1211 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1212 (AdjustTokenPrivileges_ftype)
1213 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1214 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1215 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1216 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1217 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1218 (GetConsoleFontSize_ftype)
1219 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1220 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1221 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1222 (initialize_loadable): Declare.
1223 * nat/windows-nat.c (AdjustTokenPrivileges)
1224 (DebugActiveProcessStop, DebugBreakProcess)
1225 (DebugSetProcessKillOnExit, EnumProcessModules)
1226 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1227 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1228 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1229 (Wow64GetThreadContext, Wow64SetThreadContext)
1230 (Wow64GetThreadSelectorEntry): Define.
1231 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1232 from windows-nat.c.
1233 (initialize_loadable): Likewise, and rename.
1234
1053c638
TT
12352021-04-30 Tom Tromey <tromey@adacore.com>
1236
1237 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1238 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1239 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1240 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1241 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1242 (bad): New template functions.
1243 (_initialize_loadable): Update.
1244
2869ac4b
TT
12452021-04-30 Tom Tromey <tromey@adacore.com>
1246
1247 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1248
e197dfae
SM
12492021-04-29 Simon Marchi <simon.marchi@efficios.com>
1250
1251 * auto-load.h: Split namespace declaration.
1252
89ba430c
SM
12532021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1254
1255 * infrun.c (save_waitstatus): Move variables to inner scope.
1256
8eb82ba1
AB
12572021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1258
1259 * NEWS: Fix typo and stray full stop.
1260
db2534b7
TT
12612021-04-28 Tom Tromey <tromey@adacore.com>
1262
1263 * ada-exp.y (primary): Use new type for null pointer.
1264 * ada-lang.c (ada_type_match): Remove "may_deref"
1265 parameter. Handle null pointer.
1266 (ada_args_match): Update.
1267 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1268 Handle null pointer.
1269
edeaceda
AB
12702021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1271
1272 * NEWS: Mention new commands.
1273 * python/python.c (python_ignore_environment): New static global.
1274 (show_python_ignore_environment): New function.
1275 (set_python_ignore_environment): New function.
1276 (python_dont_write_bytecode): New static global.
1277 (show_python_dont_write_bytecode): New function.
1278 (set_python_dont_write_bytecode): New function.
1279 (_initialize_python): Register new commands.
1280
041ca48e
AB
12812021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * extension-priv.h (struct extension_language_ops): Rename
1284 'finish_initialization' to 'initialize'.
1285 * extension.c (finish_ext_lang_initialization): Renamed to...
1286 (ext_lang_initialization): ...this, update comment, and updated
1287 the calls to reflect the change in struct extension_language_ops.
1288 * extension.h (finish_ext_lang_initialization): Renamed to...
1289 (ext_lang_initialization): ...this.
1290 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1291 (gdbscm_initialize): ...this, update comment at definition.
1292 (guile_extension_ops): Update.
1293 * main.c (captured_main_1): Update call to
1294 finish_ext_lang_initialization.
1295 * python/python.c (gdbpy_finish_initialization): Rename to...
1296 (gdbpy_initialize): ...this, update comment at definition, and
1297 update call to do_finish_initialization.
1298 (python_extension_ops): Update.
1299 (do_finish_initialization): Rename to...
1300 (do_initialize): ...this, and update comment.
1301
1178f01a
AB
13022021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1303
1304 * main.c (captured_main_1): Add a call to
1305 finish_ext_lang_initialization.
1306 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1307
880ae75a
AB
13082021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1311 (gdbscm_finish_initialization): Add code moved from
1312 _initialize_guile.
1313 (_initialize_guile): Move code to gdbscm_finish_initialization.
1314 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1315 _initialize_scm_arch.
1316 (_initialize_scm_arch): New function.
1317 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1318 into _initialize_scm_block.
1319 (_initialize_scm_block): New function.
1320 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1321 into _initialize_scm_frame.
1322 (_initialize_scm_frame): New function.
1323 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1324 into _initialize_scm_objfile.
1325 (_initialize_scm_objfile): New function.
1326 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1327 code into _initialize_scm_progspace.
1328 (_initialize_scm_progspace): New function.
1329 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1330 into _initialize_scm_symbol.
1331 (_initialize_scm_symbol): New function.
1332 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1333 into _initialize_scm_symtab.
1334 (_initialize_scm_symtab): New function.
1335 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1336 _initialize_scm_type.
1337 (_initialize_scm_type): New function.
1338
8e3685bf
AB
13392021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * python/py-arch.c (_initialize_py_arch): New function.
1342 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1343 * python/py-block.c (_initialize_py_block): New function.
1344 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1345 * python/py-inferior.c (_initialize_py_inferior): New function.
1346 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1347 * python/py-objfile.c (_initialize_py_objfile): New function.
1348 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1349 * python/py-progspace.c (_initialize_py_progspace): New function.
1350 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1351 * python/py-registers.c (_initialize_py_registers): New function.
1352 (gdbpy_initialize_registers): Move code to
1353 _initialize_py_registers.
1354 * python/py-symbol.c (_initialize_py_symbol): New function.
1355 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1356 * python/py-symtab.c (_initialize_py_symtab): New function.
1357 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1358 * python/py-type.c (_initialize_py_type): New function.
1359 (gdbpy_initialize_types): Move code to _initialize_py_type.
1360 * python/py-unwind.c (_initialize_py_unwind): New function.
1361 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1362 * python/python.c (_initialize_python): Move call to
1363 do_start_initialization to gdbpy_finish_initialization.
1364 (gdbpy_finish_initialization): Add call to
1365 do_start_initialization.
1366
913832e9
AB
13672021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * extension.c (struct scoped_default_signal): New struct.
1370 (scoped_default_sigint): New typedef.
1371 (finish_ext_lang_initialization): Make use of
1372 scoped_default_sigint.
1373
a3b5ef3e
AB
13742021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * main.c (captured_main_1): Don't pass argument to gdb_init.
1377 * top.c (gdb_init): Remove unused argument, and add header
1378 comment.
1379 * top.h (gdb_init): Remove argument.
1380
b9f90c72
LM
13812021-04-27 Luis Machado <luis.machado@linaro.org>
1382
1383 * psymtab.c (psymbol_functions::dump): Output newline.
1384 Remove wrap.
1385 * symmisc.c (dump_objfile): Likewise.
1386
2c473def
MW
13872021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1388 Simon Marchi <simon.marchi@polymtl.ca>
1389
1390 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1391 when attaching the 'auto_load_new_objfile' observer, so
1392 other observers can specify it as a dependency.
1393 * gdb/auto-load.h (struct token): Declare
1394 'auto_load_new_objfile_observer_token' as token to be used
1395 for the 'auto_load_new_objfile' observer.
1396 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1397 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1398 observer, so it gets notified after the latter.
1399
9a6e099f
MW
14002021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1401 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * unittests/observable-selftests.c (dependency_test_counters):
1404 New.
1405 (observer_token0, observer_token1, observer_token2,
1406 observer_token3, observer_token4, observer_token5): New.
1407 (struct dependency_observer_data): New struct.
1408 (observer_dependency_test_callback): New function.
1409 (test_observers): New.
1410 (run_dependency_test): New function.
1411 (test_dependency): New.
1412 (_initialize_observer_selftest): Register dependency test.
1413
bea3329b
SM
14142021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1415
1416 PR gdb/27773
1417 * cli/cli-dump.c (dump_binary_file): Check result of
1418 gdb_fopen_cloexec.
1419
c290cb01
ST
14202021-04-25 Sergei Trofimovich <siarheit@google.com>
1421
1422 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1423 by passing `process_stratum_target*` parameter.
1424
fbb46296
LS
14252021-04-25 Lancelot Six <lsix@lancelotsix.com>
1426
1427 PR gdb/22640
1428 * typeprint.h (struct type_print_options): Add print_in_hex
1429 flag.
1430 (struct print_offset_data): Add print_in_hex flag, add a
1431 constructor accepting a type_print_options* argument.
1432 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1433 default value for print_in_hex.
1434 (print_offset_data::indentation): Allow more horizontal space.
1435 (print_offset_data::print_offset_data): Add ctor.
1436 (print_offset_data::maybe_print_hole, print_offset_data::update):
1437 Handle the print_in_hex flag.
1438 (whatis_exp): Handle 'x' and 'd' flags.
1439 (print_offsets_and_sizes_in_hex): Declare.
1440 (set_print_offsets_and_sizes_in_hex): Create.
1441 (show_print_offsets_and_sizes_in_hex): Create.
1442 (_initialize_typeprint): Update help message for the ptype
1443 command, register the 'set print type hex' and 'show print type
1444 hex' commands.
1445 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1446 (c_type_print_base): Construct the print_offset_data
1447 object using the type_print_optons parameter.
1448 * rust-lang.c (rust_language::print_type): Construct the
1449 print_offset_data object using the type_print_optons parameter.
1450 * NEWS: Mention the new flags of the ptype command.
1451
18bbba46
LS
14522021-04-25 Lancelot Six <lsix@lancelotsix.com>
1453
1454 * typeprint.h (struct type_print_options): Move before
1455 print_offset_data.
1456
77393c9b
JB
14572021-04-25 Joel Brobecker <brobecker@adacore.com>
1458
1459 GDB 10.2 released.
1460
98c897e3
SM
14612021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1462
1463 * observable.c (observer_debug): Change to bool.
1464
9fc29955
AB
14652021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * dwarf2/read.c: Add 'unordered_set' include.
1468 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1469 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1470 of per_Bfd->filenames_cache cache, and use function local
1471 filenames_cache instead. Reindent.
1472 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1473
0406545d
SM
14742021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1475
1476 * breakpoint.c (iterate_over_bp_locations): Change callback to
1477 function view, remove data parameter.
1478 * breakpoint.h (iterate_over_bp_locations): Likewise.
1479 * record-full.c (record_full_sync_record_breakpoints): Remove
1480 data parameter.
1481
432ce4cf
TT
14822021-04-22 Tom Tromey <tom@tromey.com>
1483
1484 * c-typeprint.c (c_type_print_base_struct_union): Use
1485 print_spaces_filtered_with_print_options.
1486
e25d6d93
SM
14872021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 PR gdb/27757
1490 * python/py-type.c (typy_range): Check that bounds are constant
1491 before accessing them as such.
1492 * guile/scm-type.c (gdbscm_type_range): Likewise.
1493
4efeb0d3
TBA
14942021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1495
1496 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1497 * inferior.c (inferior::add_continuation): New method, adapted
1498 from 'add_inferior_continuation'.
1499 (inferior::do_all_continuations): New method, adapted from
1500 'do_all_inferior_continuations'.
1501 (inferior::~inferior): Clear the list of continuations directly.
1502 * inferior.h (class inferior) <continuations>: Rename into...
1503 <m_continuations>: ...this and make private.
1504 * continuations.c: Remove.
1505 * continuations.h: Remove.
1506 * event-top.c: Don't include "continuations.h".
1507
1508 Update the users below.
1509 * inf-loop.c (inferior_event_handler)
1510 * infcmd.c (attach_command)
1511 (notice_new_inferior): Update.
1512
c4c493de
TBA
15132021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1514
1515 * inferior.h (class inferior) <continuations>: Change the type
1516 to be an std::list of std::function's.
1517 Update the references and uses below.
1518 * continuations.c (struct continuation): Delete.
1519 (make_continuation): Delete.
1520 (do_my_continuations_1): Delete.
1521 (do_my_continuations): Delete.
1522 (discard_my_continuations_1): Delete.
1523 (discard_my_continuations): Delete.
1524 (add_inferior_continuation): Update.
1525 (do_all_inferior_continuations): Update.
1526 (discard_all_inferior_continuations): Update.
1527 * continuations.h (add_inferior_continuation): Update to take
1528 an std::function as the parameter.
1529 * infcmd.c (struct attach_command_continuation_args): Delete.
1530 (attach_command_continuation): Delete.
1531 (attach_command_continuation_free_args): Delete.
1532 (attach_command): Update.
1533 (notice_new_inferior): Update.
1534
1194676e
TBA
15352021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1536
1537 * continuations.h: Update the general comment.
1538 * inferior.h (class inferior) <continuations>: Update the comment.
1539 * interps.c: Do not include "continuations.h".
1540
35682f0a
TBA
15412021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1542
1543 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1544 parameter. Update the references below.
1545 * continuations.c (do_my_continuations_1)
1546 (do_my_continuations)
1547 (do_all_inferior_continuations): Update.
1548 * inf-loop.c (inferior_event_handler): Update.
1549 * infcmd.c (attach_command_continuation): Update.
1550
6fee5eee
TBA
15512021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1552
1553 * infcmd.c (attach_post_wait): Update the function comment.
1554
27d0790a
TBA
15552021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1556
1557 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1558 Update the references below.
1559 (struct attach_command_continuation_args)
1560 (attach_command_continuation)
1561 (attach_command_continuation_free_args)
1562 (attach_command)
1563 (notice_new_inferior): Update to remove the reference to 'args'.
1564
c39ebbf4
TV
15652021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1566 Tom de Vries <tdevries@suse.de>
1567
1568 PR remote/27710
1569 * remote.c (remote_target_is_non_stop_p): New function.
1570 * remote.h (remote_target_is_non_stop_p): Declare.
1571 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1572 to check non-stopness using notif_state->remote rather current target.
1573
22f80c0f
TT
15742021-04-22 Tom Tromey <tom@tromey.com>
1575
1576 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1577 (struct typed_val_int) <val>: Now ULONGEST.
1578 (rust_parser::parse_array_type): Remove negative check.
1579 (rust_lex_int_test): Change 'value' to ULONGEST.
1580
05f3c0f0
AB
15812021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1582
1583 * arch-utils.c (default_addressable_memory_unit_size): Return a
1584 value based on bfd's bits per byte.
1585
7e7a35fb
TT
15862021-04-21 Tom Tromey <tom@tromey.com>
1587
1588 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1589 unsigned char.
1590 (struct dwarf2_per_cu_data): Rearrange.
1591 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1592 unsigned char.
1593 (struct comp_unit_head): Rearrange.
1594 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1595
ff507520
TV
15962021-04-21 Tom de Vries <tdevries@suse.de>
1597
1598 PR build/27681
1599 * configure.ac: Remove --without-included-regex/--with-included-regex.
1600 * config.in: Regenerate.
1601 * configure: Regenerate.
1602 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1603
10a636cc
TBA
16042021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1605
1606 * breakpoint.h (create_breakpoint): Add a new parameter,
1607 'force_condition'.
1608 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1609 argument when 'parse_extra' is false to check if the condition
1610 is invalid at all of the breakpoint locations.
1611 Update the users below.
1612 (break_command_1)
1613 (dprintf_command)
1614 (trace_command)
1615 (ftrace_command)
1616 (strace_command)
1617 (create_tracepoint_from_upload): Update.
1618 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1619 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1620 * python/py-breakpoint.c (bppy_init): Update.
1621 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1622
85c88e2a
TBA
16232021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1624
1625 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1626 disabled-by-condition locations on MI-like output.
1627 (breakpoint_1): Do not display the disabled-by-condition footnote
1628 if the output is MI-like.
1629
fd34472c
FC
16302021-04-21 Frederic Cambus <fred@statdns.com>
1631
1632 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1633 update year range in generated copyright notices.
1634
184dcd81
FW
16352021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1636
1637 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1638 qualifier_seq_noopt.
1639
525174e8
FW
16402021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1641
1642 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1643
f5dc2ee3
AB
16442021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1647 (producer_is_icc): Replace use of std::regex with gdb's
1648 compiled_regex.
1649
42c2c694
TT
16502021-04-17 Tom Tromey <tom@tromey.com>
1651
1652 PR gdb/23743:
1653 * dwarf2/read.c (class offset_view): New.
1654 (struct symbol_table_slot): Remove.
1655 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1656 <symbol_name_index, symbol_vec_index>: New methods.
1657 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1658 Rewrite.
1659 (read_gdb_index_from_buffer): Update.
1660 (struct dw2_symtab_iterator) <vec>: Change type.
1661 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1662 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1663 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1664 <append_array, append_offset>: New methods.
1665 (write_hash_table, add_address_entry, write_gdbindex_1)
1666 (write_debug_names): Update.
1667 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1668
da314dd3
TT
16692021-04-17 Tom Tromey <tom@tromey.com>
1670
1671 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1672 partial_symtabs.
1673
0b7b2c2a
TT
16742021-04-17 Tom Tromey <tom@tromey.com>
1675
1676 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1677 from map_matching_symbols. Change parameters.
1678 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1679 Rename from map_matching_symbols. Change parameters.
1680 * dwarf2/read.c (struct dwarf2_gdb_index)
1681 <expand_matching_symbols>: Rename from map_matching_symbols.
1682 Change parameters.
1683 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1684 Rename from map_matching_symbols. Change parameters.
1685 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1686 dw2_map_matching_symbols. Change parameters.
1687 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1688 implementation.
1689 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1690 map_matching_symbols. Change parameters.
1691 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1692 from map_matching_symbols. Change parameters.
1693 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1694 map_matching_symbols. Change parameters.
1695 * ada-lang.c (map_matching_symbols): New function.
1696 (add_nonlocal_symbols): Update.
1697
90160b57
TT
16982021-04-17 Tom Tromey <tom@tromey.com>
1699
1700 * quick-symbol.h (struct quick_symbol_functions)
1701 <expand_symtabs_with_fullname>: Remove.
1702 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1703 Remove.
1704 * psympriv.h (struct psymbol_functions)
1705 <expand_symtabs_with_fullname>: Remove.
1706 * dwarf2/read.c (struct dwarf2_base_index_functions)
1707 <expand_symtabs_with_fullname>: Remove.
1708 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1709 Remove.
1710 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1711 Update comment.
1712 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1713 Rewrite.
1714
7089bd88
TT
17152021-04-17 Tom Tromey <tom@tromey.com>
1716
1717 * symfile-debug.c (objfile::expand_symtabs_for_function):
1718 Rewrite.
1719 * quick-symbol.h (struct quick_symbol_functions)
1720 <expand_symtabs_for_function>: Remove.
1721 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1722 Remove.
1723 * psympriv.h (struct psymbol_functions)
1724 <expand_symtabs_for_function>: Remove.
1725 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1726 Update comment.
1727 * dwarf2/read.c (struct dwarf2_gdb_index)
1728 <expand_symtabs_for_function>: Remove.
1729 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1730 Remove.
1731 (find_slot_in_mapped_hash): Remove.
1732 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1733 (dw2_symtab_iter_init): Remove one overload.
1734 (dwarf2_gdb_index::expand_symtabs_for_function)
1735 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1736
536a40f3
TT
17372021-04-17 Tom Tromey <tom@tromey.com>
1738
1739 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1740 Rewrite.
1741 * quick-symbol.h (struct quick_symbol_functions)
1742 <map_symtabs_matching_filename>: Remove.
1743 * psymtab.c (partial_map_expand_apply)
1744 (psymbol_functions::map_symtabs_matching_filename): Remove.
1745 * psympriv.h (struct psymbol_functions)
1746 <map_symtabs_matching_filename>: Remove.
1747 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1748 Update comment.
1749 * dwarf2/read.c (struct dwarf2_base_index_functions)
1750 <map_symtabs_matching_filename>: Remove.
1751 (dw2_map_expand_apply)
1752 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1753 Remove.
1754
84d865e3
TT
17552021-04-17 Tom Tromey <tom@tromey.com>
1756
1757 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1758 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1759 Remove.
1760 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1761 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1762 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1763 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1764 Remove.
1765 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1766 (dwarf2_gdb_index::lookup_symbol)
1767 (dwarf2_debug_names_index::lookup_symbol): Remove.
1768
3bfa51a7
TT
17692021-04-17 Tom Tromey <tom@tromey.com>
1770
1771 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1772 * symmisc.c (maintenance_expand_symtabs): Update.
1773 * symfile.c (expand_symtabs_matching): Update.
1774 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1775 parameter.
1776 * quick-symbol.h (struct quick_symbol_functions)
1777 <expand_symtabs_matching>: Add 'domain' parameter.
1778 * psymtab.c (recursively_search_psymtabs)
1779 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1780 parameter.
1781 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1782 Add 'domain' parameter.
1783 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1784 'domain' parameter.
1785 * linespec.c (iterate_over_all_matching_symtabs): Update.
1786 * dwarf2/read.c (struct dwarf2_gdb_index)
1787 <expand_symtabs_matching>: Add 'domain' parameter.
1788 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1789 'domain' parameter.
1790 (dw2_expand_symtabs_matching)
1791 (dwarf2_gdb_index::expand_symtabs_matching)
1792 (dw2_debug_names_iterator)
1793 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1794 parameter.
1795
03a8ea51
TT
17962021-04-17 Tom Tromey <tom@tromey.com>
1797
1798 * symtab.c (global_symbol_searcher::expand_symtabs)
1799 (default_collect_symbol_completion_matches_break_on): Update.
1800 * symmisc.c (maintenance_expand_symtabs): Update.
1801 * symfile.h (expand_symtabs_matching): Add search_flags
1802 parameter.
1803 * symfile.c (expand_symtabs_matching): Add search_flags
1804 parameter.
1805 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1806 search_flags parameter.
1807 * quick-symbol.h (struct quick_symbol_functions)
1808 <expand_symtabs_matching>: Add search_flags parameter.
1809 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1810 * psymtab.c (recursively_search_psymtabs)
1811 (psymbol_functions::expand_symtabs_matching): Add search_flags
1812 parameter.
1813 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1814 Add search_flags parameter.
1815 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1816 search_flags parameter.
1817 * linespec.c (iterate_over_all_matching_symtabs): Update.
1818 * dwarf2/read.c (struct dwarf2_gdb_index)
1819 <expand_symtabs_matching>: Add search_flags parameter.
1820 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1821 search_flags parameter.
1822 (dw2_map_matching_symbols): Update.
1823 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1824 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1825 parameter.
1826 (dw2_debug_names_iterator): Change block_index to search flags.
1827 <m_block_index>: Likewise.
1828 (dw2_debug_names_iterator::next)
1829 (dwarf2_debug_names_index::lookup_symbol)
1830 (dwarf2_debug_names_index::expand_symtabs_for_function)
1831 (dwarf2_debug_names_index::map_matching_symbols)
1832 (dwarf2_debug_names_index::map_matching_symbols): Update.
1833 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1834 search_flags parameter.
1835 * ada-lang.c (ada_add_global_exceptions)
1836 (collect_symbol_completion_matches): Update.
1837
df35e626
TT
18382021-04-17 Tom Tromey <tom@tromey.com>
1839
1840 * symtab.c (default_collect_symbol_completion_matches_break_on):
1841 Update.
1842 * symfile.h (expand_symtabs_matching): Return bool.
1843 * symfile.c (expand_symtabs_matching): Return bool.
1844 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1845 bool.
1846 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1847 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1848 bool.
1849 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1850 bool.
1851 * psympriv.h (struct psymbol_functions)
1852 <expand_symtabs_matching>: Return bool.
1853 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1854 bool.
1855 * dwarf2/read.c (struct dwarf2_gdb_index)
1856 <expand_symtabs_matching>: Return bool.
1857 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1858 Return bool.
1859 (dw2_expand_symtabs_matching_symbol): Return bool.
1860 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1861 (dw2_expand_symtabs_matching)
1862 (dwarf2_gdb_index::expand_symtabs_matching)
1863 (dwarf2_debug_names_index::expand_symtabs_matching)
1864 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1865
e357e990
TT
18662021-04-17 Tom Tromey <tom@tromey.com>
1867
1868 * quick-symbol.h (enum block_search_flag_values): New.
1869 (block_search_flags): New enum flags type.
1870
3cbc7ac3
TT
18712021-04-16 Tom Tromey <tom@tromey.com>
1872
1873 * rust-parse.c: New file.
1874 * rust-exp.y: Remove.
1875 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1876 (SFILES): Remove rust-exp.y.
1877 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1878
1b6b755e
LM
18792021-04-16 Luis Machado <luis.machado@linaro.org>
1880
1881 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1882
c45ecc9d
JB
18832021-04-15 John Baldwin <jhb@FreeBSD.org>
1884
1885 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1886 use throughout file.
1887
a15a276b
TT
18882021-04-15 Tom Tromey <tromey@adacore.com>
1889
1890 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1891 arrays.
1892
644a2e75
TT
18932021-04-15 Tom Tromey <tromey@adacore.com>
1894
1895 * printcmd.c (print_variable_and_value): Use
1896 common_val_print_checked.
1897
9e5e03df
TT
18982021-04-15 Tom Tromey <tromey@adacore.com>
1899
1900 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1901 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1902 Update.
1903 * p-exp.y (variable): Update.
1904 * m2-exp.y (variable): Update.
1905 * go-exp.y (variable): Update.
1906 * expprint.c (dump_for_expression): New overload.
1907 * expop.h (check_objfile): New overload.
1908 (check_constant): New overload.
1909 (class var_value_operation): Use block_symbol.
1910 <get_symbol>: Rewrite.
1911 * eval.c (var_value_operation::evaluate)
1912 (var_value_operation::evaluate_funcall)
1913 (var_value_operation::evaluate_for_address)
1914 (var_value_operation::evaluate_for_address)
1915 (var_value_operation::evaluate_with_coercion)
1916 (var_value_operation::evaluate_for_sizeof)
1917 (var_value_operation::evaluate_for_cast): Update.
1918 * d-exp.y (PrimaryExpression): Update.
1919 * c-exp.y (variable): Update.
1920 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1921 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1922 (ada_var_value_operation::evaluate)
1923 (ada_var_value_operation::resolve)
1924 (ada_funcall_operation::resolve): Update.
1925 * ada-exp.y (write_var_from_sym, write_object_renaming)
1926 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1927 (maybe_overload): Update.
1928 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1929
5809fbf2
TT
19302021-04-15 Tom Tromey <tom@tromey.com>
1931 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * NEWS: Add entry.
1934 * main.c (captured_main_1): Call check_quiet_mode.
1935 * top.c (startup_quiet): New global.
1936 (check_quiet_mode): New function.
1937 (show_startup_quiet): New function.
1938 (init_main): Register new command.
1939 * top.h (check_quiet_mode): Declare.
1940
92e4e97a
AB
19412021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 PR cli/25956
1944 * NEWS: Mention new early init files and command line options.
1945 * config.in: Regenerate.
1946 * configure: Regenerate.
1947 * configure.ac: Define GDBEARLYINIT.
1948 * main.c (get_earlyinit_files): New function.
1949 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1950 CMDARG_EARLYINIT_COMMAND.
1951 (captured_main_1): Add support for new command line flags, and for
1952 processing startup files.
1953 (print_gdb_help): Include startup files in the output.
1954
54b4dcc5
AB
19552021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1956
1957 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1958 (relocate_file_path_maybe_in_datadir): ...this.
1959 (class gdb_initfile_finder): New class.
1960 (get_init_files): Now uses gdb_initfile_finder.
1961 (print_gdb_help): Print 'None found' when there are no init files.
1962
34dc0f95
TBA
19632021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1964
1965 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1966 corresponding child of the abstract DIE when iterating the
1967 children of the concrete DIE.
1968
329534fd
TV
19692021-04-13 Tom de Vries <tdevries@suse.de>
1970
1971 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1972 type to regoff_t *.
1973
d9d2ef05
LM
19742021-04-13 Luis Machado <luis.machado@linaro.org>
1975
1976 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1977 hex values.
1978
c8a37944
WS
19792021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1980
1981 * rs6000-tdep.c: Add support for single-stepping of
1982 prefixed instructions.
1983
b722acca
WS
19842021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1985
e3d528d7
WS
1986 PR gdb/27525
1987 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1988 handle the addpcis/lnia instruction.
1989
19902021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1991
b722acca
WS
1992 * MAINTAINERS (Write After Approval): Add myself.
1993
6ba4cb84
CL
19942021-4-12 Carl Love <cel@us.ibm.com>
1995
1996 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1997 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1998 float128.
1999
d4717483
SM
20002021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2003 * nat/windows-nat.h: Likewise.
2004
b3885679
EZ
20052021-04-10 Eli Zaretskii <eliz@gnu.org>
2006
2007 * windows-nat.c (windows_nat::handle_load_dll): Call
2008 windows_add_dll if get_image_name failed to glean the name of the
2009 DLL by using the lpImageName pointer.
2010 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2011 (windows_add_dll): Now does what windows_add_all_dlls did before,
2012 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2013 specifies the address where the DLL was loaded into the inferior,
2014 and looks for the single DLL loaded at that address.
2015
1ef6a596
LM
20162021-04-09 Luis Machado <luis.machado@linaro.org>
2017
2018 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2019
83a559f7
DQ
20202021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2021
2022 * darwin-nat.c (darwin_nat_target::resume): Remove status
2023 variable.
2024
16e311ab
FW
20252021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2026
2027 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2028 prologue end for Intel compilers.
2029 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2030 * producer.c (producer_is_icc_ge_19): New function.
2031 * producer.h (producer_is_icc_ge_19): New declaration.
2032
fbb3bcfc
FW
20332021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2034
2035 * producer.c: (producer_is_icc): Update for new version scheme.
2036 (producer_parsing_tests): Update names and expected results.
2037 * producer.h: (producer_is_icc): Update comment accordingly.
2038
e97007b6
SM
20392021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2040
2041 * target.h (struct target_ops) <follow_fork>: Return void.
2042 (target_follow_fork): Likewise.
2043 * target.c (default_follow_fork): Likewise.
2044 (target_follow_fork): Likewise.
2045 * infrun.c (follow_fork_inferior): Adjust.
2046 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2047 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2048 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2049 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2050 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2051 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2052 * remote.c (class remote_target) <follow_fork>: Likewise.
2053 (remote_target::follow_fork): Likewise.
2054 * target-delegates.c: Re-generate.
2055
dc2b480f
WP
20562021-04-07 Weimin Pan <weimin.pan@oracle.com>
2057
2058 * ctfread.c (fetch_tid_type): New function, use throughout file.
2059 (read_forward_type): New function.
2060 (read_type_record): Call read_forward_type.
2061
0a703a4c
AB
20622021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * f-exp.h (class fortran_structop_operation): New class.
2065 * f-exp.y (exp): Create fortran_structop_operation instead of the
2066 generic structop_operation.
2067 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2068 expression as EVAL_NORMAL if the result type was dynamic so we can
2069 extract the actual array bounds.
2070 (fortran_structop_operation::evaluate): New function.
2071
20722021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * eval.c (evaluate_subexp_standard): Remove
2075 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2076 STRUCTOP_PTR.
2077
30ab3586
AB
20782021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2079
2080 * valops.c (value_cast): Call value_deeply_equal before performing
2081 any cast.
2082
5e18990f
AB
20832021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2086 the function.
2087
56d467f4
CT
20882021-04-07 Caroline Tice <cmtice@google.com>
2089
2090 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2091 the search paths used resolve relative location of .dwo file.
2092
1fd999d9
AB
20932021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2094
2095 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2096 assert.
2097 (dwarf2_section_info::get_file_name): Add an assert.
2098 (dwarf2_section_info::read_string): Display a minimal, sane error
2099 when the dwarf2_section_info is not associated with a bfd section.
2100
79c02443
AB
21012021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * top.c (staged_gdb_datadir): Update comment.
2104 (set_gdb_datadir): Copy the value of gdb_datadir back into
2105 staged_datadir.
2106 (init_main): Initialise staged_gdb_datadir.
2107
340d00fb
TV
21082021-04-06 Tom de Vries <tdevries@suse.de>
2109
2110 PR breakpoints/25884
2111 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2112 stepping range.
2113
d811a7cf
TV
21142021-04-06 Tom de Vries <tdevries@suse.de>
2115
2116 PR tui/27680
2117 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2118 to style.parse.
2119
306b445a
SM
21202021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2121
2122 * avr-tdep.c (avr_frame_unwind_cache): Use
2123 trad_frame_saved_reg::is_addr.
2124
9161c89a
SM
21252021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2126
2127 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2128 adjust callers.
2129
0072c873
SM
21302021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2131
2132 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2133 objfile parameter for objfile_per_bfd_storage, adjust callers.
2134 (struct standard_psymtab) <standard_psymtab>: Likewise.
2135 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2136 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2137 * ctfread.c (struct ctf_psymtab): Likewise.
2138 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2139 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2140 (dwarf2_create_include_psymtab): Likewise.
2141 * objfiles.h (struct objfile_per_bfd_storage)
2142 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2143 <get_bfd>: New method.
2144 <m_bfd>: New field.
2145 * objfiles.c (get_objfile_bfd_data): Adjust.
2146
9984dd99
SM
21472021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2148
2149 * psymtab.c (partial_symtab::partial_symtab): Change
2150 last_objfile_name to be an std::string.
2151 * symfile.c (allocate_symtab): Likewise.
2152
4a4f97c1
SM
21532021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2154
2155 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2156 methods.
2157 (struct objfile) <intern>: Use
2158 objfile::objfile_per_bfd_storage::intern.
2159
0672875f
SM
21602021-04-01 Simon Marchi <simon.marchi@efficios.com>
2161
2162 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2163 with type::is_flag_enum.
2164
9902b327
SM
21652021-04-01 Simon Marchi <simon.marchi@efficios.com>
2166
2167 * gdbtypes.h (struct type) <is_flag_enum,
2168 set_is_flag_enum>: New methods.
2169 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2170 write call sites to use type::set_is_flag_enum.
2171
3bc440a2
SM
21722021-04-01 Simon Marchi <simon.marchi@efficios.com>
2173
2174 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2175 with type::is_declared_class.
2176
aa70e35c
SM
21772021-04-01 Simon Marchi <simon.marchi@efficios.com>
2178
2179 * gdbtypes.h (struct type) <is_declared_class,
2180 set_is_declared_class>: New methods.
2181 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2182 write call sites to use type::set_is_declared_class.
2183
bfb9f5dc
BS
21842021-02-28 Boris Staletic <boris.staletic@gmail.com>
2185
2186 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2187 to avoid deprecation warnings.
2188
733f5eea
ML
21892021-04-01 Martin Liska <mliska@suse.cz>
2190
2191 * cp-name-parser.y: Use startswith instead of strncmp.
2192 * m2-exp.y: Likewise.
2193 * macroexp.c (substitute_args): Likewise.
2194 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2195 * rust-exp.y: Likewise.
2196
af82f89d
TT
21972021-03-31 Tom Tromey <tom@tromey.com>
2198
2199 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2200 with dw2_map_matching_symbols.
2201 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2202 dw2_expand_symtabs_matching.
2203
3570682a
TT
22042021-03-31 Tom Tromey <tromey@adacore.com>
2205
2206 * dwarf2/stringify.h: Fix typo.
2207
8a91fbdf
SM
22082021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2209
2210 PR gdb/27541
2211 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2212 with objfiles using READNOW.
2213
9f67fc59
TT
22142021-03-29 Tom Tromey <tromey@adacore.com>
2215
2216 * top.c (check_frame_language_change): Update.
2217 * language.c (language_info): Remove parameter.
2218 * language.h (language_info): Remove parameter.
2219
9b8ffbf4
LM
22202021-03-29 Luis Machado <luis.machado@linaro.org>
2221
2222 * compile/compile.c (get_args): Don't add empty argv entries.
2223
25b48839
RO
22242021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2225
2226 gdb:
2227 * procfs.c (procfs_target::attach): Define inf.
2228 Use it.
2229 (procfs_target::create_inferior): Likewise.
2230
edc02ceb
TT
22312021-03-28 Tom Tromey <tom@tromey.com>
2232
2233 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2234 (elf_symfile_read): Simplify.
2235 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2236 (make_lazy_dwarf_reader): New function.
2237 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2238 (dwarf2_initialize_objfile): Return void. Remove index_kind
2239 parameter. Push on 'qf' list.
2240 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2241 type. Remove 'index_kind' parameter.
2242 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2243
6e23d91a
TT
22442021-03-27 Tom Tromey <tom@tromey.com>
2245
2246 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2247
594b8948
TT
22482021-03-27 Tom Tromey <tom@tromey.com>
2249
2250 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2251
efe1ecd8
LS
22522021-03-26 Lancelot Six <lsix@lancelotsix.com>
2253
2254 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2255 rid of 'local'.
2256
f4655dee
TT
22572021-03-26 Tom Tromey <tom@tromey.com>
2258
2259 * symtab.c (struct output_source_filename_data): Add 'output'
2260 method and operator().
2261 (output_source_filename_data::output): Rename from
2262 output_source_filename.
2263 (output_partial_symbol_filename): Remove.
2264 (info_sources_command): Update.
2265 (struct add_partial_filename_data): Add operator().
2266 (add_partial_filename_data::operator()): Rename from
2267 maybe_add_partial_symtab_filename.
2268 (make_source_files_completion_list): Update.
2269 * symfile.c (quick_symbol_functions): Update.
2270 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2271 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2272 'need_fullname'. Remove 'data' parameter.
2273 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2274 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2275 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2276 Change type of 'fun' and 'need_fullname'. Remove 'data'
2277 parameter.
2278 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2279 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2280 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2281 parameter.
2282 (mi_cmd_file_list_exec_source_files): Update.
2283 * dwarf2/read.c
2284 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2285
2315bb2d
TT
22862021-03-26 Tom Tromey <tom@tromey.com>
2287
2288 * ada-lang.c (struct match_data): Add operator().
2289 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2290 (callback): Remove 'callback'.
2291
e2cd5ca4
TT
22922021-03-26 Tom Tromey <tom@tromey.com>
2293
2294 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2295 call make_ignore_params once.
2296
cd43f63e
TT
22972021-03-26 Tom Tromey <tom@tromey.com>
2298
2299 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2300 "user" check.
2301
b4b1a226
SM
23022021-03-26 Simon Marchi <simon.marchi@efficios.com>
2303 Pedro Alves <pedro@palves.net>
2304
2305 * async-event.c: Include "infrun.h".
2306 (async_event_handler_marked): New.
2307 * async-event.h (async_event_handler_marked): Declare.
2308 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2309 inferior before calling target method. Don't commit-resumed if
2310 target_has_pending_events is true.
2311 * remote.c (remote_target::has_pending_events): New.
2312 * target-delegates.c: Regenerate.
2313 * target.c (target_has_pending_events): New.
2314 * target.h (target_ops::has_pending_events): New target method.
2315 (target_has_pending_events): New.
2316
1192f124
SM
23172021-03-26 Simon Marchi <simon.marchi@efficios.com>
2318 Pedro Alves <pedro@palves.net>
2319
2320 * infcmd.c (run_command_1, attach_command, detach_command)
2321 (interrupt_target_1): Use scoped_disable_commit_resumed.
2322 * infrun.c (do_target_resume): Remove
2323 target_commit_resume call.
2324 (commit_resume_all_targets): Remove.
2325 (maybe_set_commit_resumed_all_targets): New.
2326 (maybe_call_commit_resumed_all_targets): New.
2327 (enable_commit_resumed): New.
2328 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2329 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2330 (scoped_disable_commit_resumed::reset)
2331 (scoped_disable_commit_resumed::reset_and_commit)
2332 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2333 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2334 New.
2335 (proceed): Use scoped_disable_commit_resumed and
2336 maybe_call_commit_resumed_all_targets.
2337 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2338 * infrun.h (struct scoped_disable_commit_resumed): New.
2339 (maybe_call_commit_resumed_all_process_targets): New.
2340 (struct scoped_enable_commit_resumed): New.
2341 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2342 * process-stratum-target.h (class process_stratum_target):
2343 <commit_resumed_state>: New.
2344 * record-full.c (record_full_wait_1): Change commit_resumed_state
2345 around calling commit_resumed.
2346 * remote.c (class remote_target) <commit_resume>: Rename to...
2347 <commit_resumed>: ... this.
2348 (struct stop_reply): Move up.
2349 (remote_target::commit_resume): Rename to...
2350 (remote_target::commit_resumed): ... this. Check if there is any
2351 thread pending vCont resume.
2352 (remote_target::remote_stop_ns): Generate stop replies for resumed
2353 but pending vCont threads.
2354 (remote_target::wait_ns): Add gdb_assert.
2355 * target-delegates.c: Regenerate.
2356 * target.c (target_wait, target_resume): Assert that the current
2357 process_stratum target isn't in commit-resumed state.
2358 (defer_target_commit_resume): Remove.
2359 (target_commit_resume): Remove.
2360 (target_commit_resumed): New.
2361 (make_scoped_defer_target_commit_resume): Remove.
2362 (target_stop): Assert that the current process_stratum target
2363 isn't in commit-resumed state.
2364 * target.h (struct target_ops) <commit_resume>: Rename to ...
2365 <commit_resumed>: ... this.
2366 (target_commit_resume): Remove.
2367 (target_commit_resumed): New.
2368 (make_scoped_defer_target_commit_resume): Remove.
2369 * top.c (wait_sync_command_done): Use
2370 scoped_enable_commit_resumed.
2371
e5b9b39f
PA
23722021-03-26 Pedro Alves <pedro@palves.net>
2373
2374 * target.c (target_always_non_stop_p): Also check whether the
2375 target can async.
2376
bab287cd
TT
23772021-03-26 Tom Tromey <tom@tromey.com>
2378
2379 * dwarf2/read.c (dwarf2_read_debug_names)
2380 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2381 (dw2_debug_names_iterator::next, create_type_unit_group):
2382 Simplify.
2383
eff4f69d
PA
23842021-03-25 Pedro Alves <pedro@palves.net>
2385
2386 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2387 around setting the breakpoint.
2388
323fd5b9
PA
23892021-03-25 Pedro Alves <pedro@palves.net>
2390
2391 * remote.c
2392 (remote_target::check_pending_events_prevent_wildcard_vcont):
2393 Check whether the event's ptid is not null_ptid before looking up
2394 the corresponding inferior.
2395
d3cbca38
CD
23962021-03-24 Changbin Du <changbin.du@gmail.com>
2397
2398 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2399 read_code.
2400
328d42d8
SM
24012021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2402
2403 * target.h (current_top_target): Remove, make callers use the
2404 current inferior instead.
2405 * target.c (current_top_target): Remove.
2406
d777bf0d
SM
24072021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2408
2409 * target.h (target_shortname): Change to function declaration.
2410 (target_longname): Likewise.
2411 (target_attach_no_wait): Likewise.
2412 (target_post_attach): Likewise.
2413 (target_prepare_to_store): Likewise.
2414 (target_supports_enable_disable_tracepoint): Likewise.
2415 (target_supports_string_tracing): Likewise.
2416 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2417 (target_supports_dumpcore): Likewise.
2418 (target_dumpcore): Likewise.
2419 (target_can_run_breakpoint_commands): Likewise.
2420 (target_files_info): Likewise.
2421 (target_post_startup_inferior): Likewise.
2422 (target_insert_fork_catchpoint): Likewise.
2423 (target_remove_fork_catchpoint): Likewise.
2424 (target_insert_vfork_catchpoint): Likewise.
2425 (target_remove_vfork_catchpoint): Likewise.
2426 (target_insert_exec_catchpoint): Likewise.
2427 (target_remove_exec_catchpoint): Likewise.
2428 (target_set_syscall_catchpoint): Likewise.
2429 (target_rcmd): Likewise.
2430 (target_can_lock_scheduler): Likewise.
2431 (target_can_async_p): Likewise.
2432 (target_is_async_p): Likewise.
2433 (target_execution_direction): Likewise.
2434 (target_extra_thread_info): Likewise.
2435 (target_pid_to_exec_file): Likewise.
2436 (target_thread_architecture): Likewise.
2437 (target_find_memory_regions): Likewise.
2438 (target_make_corefile_notes): Likewise.
2439 (target_get_bookmark): Likewise.
2440 (target_goto_bookmark): Likewise.
2441 (target_stopped_by_watchpoint): Likewise.
2442 (target_stopped_by_sw_breakpoint): Likewise.
2443 (target_supports_stopped_by_sw_breakpoint): Likewise.
2444 (target_stopped_by_hw_breakpoint): Likewise.
2445 (target_supports_stopped_by_hw_breakpoint): Likewise.
2446 (target_have_steppable_watchpoint): Likewise.
2447 (target_can_use_hardware_watchpoint): Likewise.
2448 (target_region_ok_for_hw_watchpoint): Likewise.
2449 (target_can_do_single_step): Likewise.
2450 (target_insert_watchpoint): Likewise.
2451 (target_remove_watchpoint): Likewise.
2452 (target_insert_hw_breakpoint): Likewise.
2453 (target_remove_hw_breakpoint): Likewise.
2454 (target_can_accel_watchpoint_condition): Likewise.
2455 (target_can_execute_reverse): Likewise.
2456 (target_get_ada_task_ptid): Likewise.
2457 (target_filesystem_is_local): Likewise.
2458 (target_trace_init): Likewise.
2459 (target_download_tracepoint): Likewise.
2460 (target_can_download_tracepoint): Likewise.
2461 (target_download_trace_state_variable): Likewise.
2462 (target_enable_tracepoint): Likewise.
2463 (target_disable_tracepoint): Likewise.
2464 (target_trace_start): Likewise.
2465 (target_trace_set_readonly_regions): Likewise.
2466 (target_get_trace_status): Likewise.
2467 (target_get_tracepoint_status): Likewise.
2468 (target_trace_stop): Likewise.
2469 (target_trace_find): Likewise.
2470 (target_get_trace_state_variable_value): Likewise.
2471 (target_save_trace_data): Likewise.
2472 (target_upload_tracepoints): Likewise.
2473 (target_upload_trace_state_variables): Likewise.
2474 (target_get_raw_trace_data): Likewise.
2475 (target_get_min_fast_tracepoint_insn_len): Likewise.
2476 (target_set_disconnected_tracing): Likewise.
2477 (target_set_circular_trace_buffer): Likewise.
2478 (target_set_trace_buffer_size): Likewise.
2479 (target_set_trace_notes): Likewise.
2480 (target_get_tib_address): Likewise.
2481 (target_set_permissions): Likewise.
2482 (target_static_tracepoint_marker_at): Likewise.
2483 (target_static_tracepoint_markers_by_strid): Likewise.
2484 (target_traceframe_info): Likewise.
2485 (target_use_agent): Likewise.
2486 (target_can_use_agent): Likewise.
2487 (target_augmented_libraries_svr4_read): Likewise.
2488 (target_log_command): Likewise.
2489 * target.c (target_shortname): New.
2490 (target_longname): New.
2491 (target_attach_no_wait): New.
2492 (target_post_attach): New.
2493 (target_prepare_to_store): New.
2494 (target_supports_enable_disable_tracepoint): New.
2495 (target_supports_string_tracing): New.
2496 (target_supports_evaluation_of_breakpoint_conditions): New.
2497 (target_supports_dumpcore): New.
2498 (target_dumpcore): New.
2499 (target_can_run_breakpoint_commands): New.
2500 (target_files_info): New.
2501 (target_post_startup_inferior): New.
2502 (target_insert_fork_catchpoint): New.
2503 (target_remove_fork_catchpoint): New.
2504 (target_insert_vfork_catchpoint): New.
2505 (target_remove_vfork_catchpoint): New.
2506 (target_insert_exec_catchpoint): New.
2507 (target_remove_exec_catchpoint): New.
2508 (target_set_syscall_catchpoint): New.
2509 (target_rcmd): New.
2510 (target_can_lock_scheduler): New.
2511 (target_can_async_p): New.
2512 (target_is_async_p): New.
2513 (target_execution_direction): New.
2514 (target_extra_thread_info): New.
2515 (target_pid_to_exec_file): New.
2516 (target_thread_architecture): New.
2517 (target_find_memory_regions): New.
2518 (target_make_corefile_notes): New.
2519 (target_get_bookmark): New.
2520 (target_goto_bookmark): New.
2521 (target_stopped_by_watchpoint): New.
2522 (target_stopped_by_sw_breakpoint): New.
2523 (target_supports_stopped_by_sw_breakpoint): New.
2524 (target_stopped_by_hw_breakpoint): New.
2525 (target_supports_stopped_by_hw_breakpoint): New.
2526 (target_have_steppable_watchpoint): New.
2527 (target_can_use_hardware_watchpoint): New.
2528 (target_region_ok_for_hw_watchpoint): New.
2529 (target_can_do_single_step): New.
2530 (target_insert_watchpoint): New.
2531 (target_remove_watchpoint): New.
2532 (target_insert_hw_breakpoint): New.
2533 (target_remove_hw_breakpoint): New.
2534 (target_can_accel_watchpoint_condition): New.
2535 (target_can_execute_reverse): New.
2536 (target_get_ada_task_ptid): New.
2537 (target_filesystem_is_local): New.
2538 (target_trace_init): New.
2539 (target_download_tracepoint): New.
2540 (target_can_download_tracepoint): New.
2541 (target_download_trace_state_variable): New.
2542 (target_enable_tracepoint): New.
2543 (target_disable_tracepoint): New.
2544 (target_trace_start): New.
2545 (target_trace_set_readonly_regions): New.
2546 (target_get_trace_status): New.
2547 (target_get_tracepoint_status): New.
2548 (target_trace_stop): New.
2549 (target_trace_find): New.
2550 (target_get_trace_state_variable_value): New.
2551 (target_save_trace_data): New.
2552 (target_upload_tracepoints): New.
2553 (target_upload_trace_state_variables): New.
2554 (target_get_raw_trace_data): New.
2555 (target_get_min_fast_tracepoint_insn_len): New.
2556 (target_set_disconnected_tracing): New.
2557 (target_set_circular_trace_buffer): New.
2558 (target_set_trace_buffer_size): New.
2559 (target_set_trace_notes): New.
2560 (target_get_tib_address): New.
2561 (target_set_permissions): New.
2562 (target_static_tracepoint_marker_at): New.
2563 (target_static_tracepoint_markers_by_strid): New.
2564 (target_traceframe_info): New.
2565 (target_use_agent): New.
2566 (target_can_use_agent): New.
2567 (target_augmented_libraries_svr4_read): New.
2568 (target_log_command): New.
2569 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2570 * infrun.c (set_schedlock_func): Adjust.
2571 * mi/mi-main.c (exec_reverse_continue): Adjust.
2572 * reverse.c (exec_reverse_once): Adjust.
2573 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2574 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2575 * remote-sim.c (gdbsim_target::detach): Adjust.
2576 (gdbsim_target::files_info): Adjust.
2577
b64f703b
TT
25782021-03-24 Tom Tromey <tom@tromey.com>
2579
2580 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2581 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2582 (check_match, dw2_expand_symtabs_matching)
2583 (dwarf2_debug_names_index::map_matching_symbols)
2584 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2585
68f115f8
KS
25862021-03-24 Keith Seitz <keiths@redhat.com>
2587
2588 * compile/compile-cplus-types.c
2589 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2590 thinko.
2591
41c0087b
SM
25922021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2593
2594 * gdbarch.sh (gdbarch_data_registry): Make static.
2595 * gdbarch.c: Re-generate.
2596
ce192338
LM
25972021-03-24 Luis Machado <luis.machado@linaro.org>
2598
2599 * NEWS: Mention memory tagging changes.
2600
bef382e6
LM
26012021-03-24 Luis Machado <luis.machado@linaro.org>
2602
2603 * printcmd.c (decode_format): Handle the 'm' modifier.
2604 (do_examine): Display allocation tags when required/supported.
2605 (should_validate_memtags): New function.
2606 (print_command_1): Display memory tag mismatches.
2607 * valprint.c (show_memory_tag_violations): New function.
2608 (value_print_option_defs): Add new option "memory-tag-violations".
2609 (user_print_options) <memory_tag_violations>: Initialize to 1.
2610 * valprint.h (struct format_data) <print_tags>: New field.
2611 (value_print_options) <memory_tag_violations>: New field.
2612
48136e00
LM
26132021-03-24 Luis Machado <luis.machado@linaro.org>
2614
2615 * printcmd.c: Include gdbsupport/rsp-low.h.
2616 (memory_tag_list): New static global.
2617 (process_print_command_args): Factored out of
2618 print_command_1.
2619 (print_command_1): Use process_print_command_args.
2620 (show_addr_not_tagged, show_memory_tagging_unsupported)
2621 (memory_tag_command, memory_tag_print_tag_command)
2622 (memory_tag_print_logical_tag_command)
2623 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2624 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2625 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2626 functions.
2627 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2628
ffcc2a15
LM
26292021-03-24 Luis Machado <luis.machado@linaro.org>
2630
2631 * aarch64-linux-tdep.c
2632 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2633 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2634
cf44c9fa
LM
26352021-03-24 Luis Machado <luis.machado@linaro.org>
2636
2637 * aarch64-linux-tdep.c
2638 (aarch64_linux_report_signal_info): New function.
2639 (aarch64_linux_init_abi): Register
2640 aarch64_linux_report_signal_info as the report_signal_info hook.
2641 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2642 (SEGV_MTESERR): Define.
2643
b4a7d4fc
LM
26442021-03-24 Luis Machado <luis.machado@linaro.org>
2645
2646 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2647 (aarch64_linux_ltag_tests): New function.
2648 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2649
c7782e50
LM
26502021-03-24 Luis Machado <luis.machado@linaro.org>
2651
2652 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2653 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2654 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2655 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2656 functions.
2657 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2658 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2659 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2660 (aarch64_linux_get_ltag): New functions.
2661 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2662 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2663 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2664 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2665
1e735120
LM
26662021-03-24 Luis Machado <luis.machado@linaro.org>
2667
2668 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2669 bit.
2670 (struct smaps_data): New struct.
2671 (decode_vmflags): Handle the 'mt' flag.
2672 (parse_smaps_data): New function, refactored from
2673 linux_find_memory_regions_full.
2674 (linux_address_in_memtag_page): New function.
2675 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2676 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2677
93e447c6
LM
26782021-03-24 Luis Machado <luis.machado@linaro.org>
2679
2680 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2681 instead of char arrays.
2682
4601818e
LM
26832021-03-24 Luis Machado <luis.machado@linaro.org>
2684
2685 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2686 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2687 nat/aarch64-mte-linux-ptrace.h.
2688 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2689 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2690 override.
2691 <fetch_memtags>: New method override.
2692 <store_memtags>: New method override.
2693 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2694 (aarch64_linux_nat_target::fetch_memtags): New method.
2695 (aarch64_linux_nat_target::store_memtags): New method.
2696 * arch/aarch64-mte-linux.c: New file.
2697 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2698 (AARCH64_MTE_GRANULE_SIZE): Define.
2699 (aarch64_memtag_type): New enum.
2700 (aarch64_mte_get_tag_granules): New prototype.
2701 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2702 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2703 * nat/aarch64-mte-linux-ptrace.c: New file.
2704 * nat/aarch64-mte-linux-ptrace.h: New file.
2705
3f3bd8b8
LM
27062021-03-24 Luis Machado <luis.machado@linaro.org>
2707
2708 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2709 * nat/aarch64-mte-linux-ptrace.h: New file.
2710
5e984dbf
LM
27112021-03-24 Luis Machado <luis.machado@linaro.org>
2712
2713 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2714 (store_mteregs_to_thread): New function.
2715 (aarch64_linux_nat_target::fetch_registers): Update to call
2716 fetch_mteregs_from_thread.
2717 (aarch64_linux_nat_target::store_registers): Update to call
2718 store_mteregs_to_thread.
2719 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2720 (aarch64_cannot_store_register): Handle MTE registers.
2721 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2722 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2723 <has_mte>: New method.
2724 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2725
c1bd443b
LM
27262021-03-24 Luis Machado <luis.machado@linaro.org>
2727
2728 * aarch64-linux-nat.c
2729 (aarch64_linux_nat_target::read_description): Take MTE flag into
2730 account.
2731 Slight refactor to hwcap flag checking.
2732 * aarch64-linux-tdep.c
2733 (aarch64_linux_core_read_description): Likewise.
2734 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2735 MTE.
2736 (aarch64_read_description): Add mte_p parameter and update to use it.
2737 Update the documentation.
2738 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2739 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2740 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2741 (aarch64_create_target_description): Add mte_p parameter and update
2742 the code to use it.
2743 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2744 parameter.
2745 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2746 * features/aarch64-mte.c: New file, generated.
2747 * features/aarch64-mte.xml: New file.
2748
04245125
LM
27492021-03-24 Luis Machado <luis.machado@linaro.org>
2750
2751 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2752 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2753 * aarch64-linux-tdep.c: Likewise
2754 * arch/aarch64-mte-linux.h: New file.
2755
754487e2
LM
27562021-03-24 Luis Machado <luis.machado@linaro.org>
2757
2758 * remote: Include gdbsupport/selftest.h.
2759 (test_memory_tagging_functions): New function.
2760 (_initialize_remote): Register test_memory_tagging_functions.
2761
2c2e7f87
LM
27622021-03-24 Luis Machado <luis.machado@linaro.org>
2763
2764 * remote.c (PACKET_memory_tagging_feature): New enum.
2765 (remote_memory_tagging_p): New function.
2766 (remote_protocol_features): New "memory-tagging" entry.
2767 (remote_target::remote_query_supported): Handle memory tagging
2768 support.
2769 (remote_target::supports_memory_tagging): Implement.
2770 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2771 (create_store_memtags_request): New functions.
2772 (remote_target::fetch_memtags): Implement.
2773 (remote_target::store_memtags): Implement.
2774 (_initialize_remote): Add new "memory-tagging-feature"
2775 config command.
2776
c193949e
LM
27772021-03-24 Luis Machado <luis.machado@linaro.org>
2778
2779 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2780 (default_memtag_matches_p, default_set_memtags)
2781 (default_get_memtag): New functions.
2782 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2783 (default_memtag_matches_p, default_set_memtags)
2784 (default_get_memtag): New prototypes.
2785 * gdbarch.c: Regenerate.
2786 * gdbarch.h: Regenerate.
2787 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2788 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2789 (enum memtag_type): New enum.
2790
dbe692af
LM
27912021-03-24 Luis Machado <luis.machado@linaro.org>
2792
2793 * remote.c (remote_target) <supports_memory_tagging>: New method
2794 override.
2795 <fetch_memtags>: New method override.
2796 <store_memtags>: New method override.
2797 (remote_target::supports_memory_tagging): New method.
2798 (remote_target::fetch_memtags): New method.
2799 (remote_target::store_memtags): New method.
2800 * target-delegates.c: Regenerate.
2801 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2802 method.
2803 <fetch_memtags>: New virtual method.
2804 <store_memtags>: New virtual method.
2805 (target_supports_memory_tagging): Define.
2806 (target_fetch_memtags): Define.
2807 (target_store_memtags): Define.
2808 * target-debug.h (target_debug_print_size_t)
2809 (target_debug_print_const_gdb_byte_vector_r)
2810 (target_debug_print_gdb_byte_vector_r): New functions.
2811
66848ebc
SM
28122021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 * target.h (target_longname): Remove.
2815
c8fbd44a
SM
28162021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2817
2818 * target.h (target_is_pushed): Remove, update callers to use
2819 inferior::target_is_pushed instead.
2820 * target.c (target_is_pushed): Remove.
2821
02980c56
SM
28222021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2823
2824 * target.h (push_target): Remove, update callers to use
2825 inferior::push_target.
2826 * target.c (push_target): Remove.
2827 * inferior.h (class inferior) <push_target>: New overload.
2828
fadf6add
SM
28292021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2830
2831 * target.h (unpush_target): Remove, update all callers
2832 to use `inferior::unpush_target` instead.
2833 (struct target_unpusher) <operator()>: Just declare.
2834 * target.c (unpush_target): Remove.
2835 (target_unpusher::operator()): New.
2836
702cf3f5
AB
28372021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2840 error.
2841 (process_full_comp_unit): Validate the top-level tag before
2842 processing the first DIE.
2843 (read_func_scope): Ensure we have a valid builder.
2844
46fec642
AB
28452021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2846
2847 * objc-lang.c (objc_demangle): Renamed to
2848 objc_language::demangle_symbol, and moved later in the file.
2849 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2850 member function.
2851 (objc_language::demangle_symbol): Defined outside of class
2852 declaration. The definition is the old objc_demangle with NULL
2853 changed to nullptr, and if conditions relating to nullptr pointers
2854 or null character checks made explicit.
2855 * objc-lang.h (objc_demangle): Delete declaration.
2856
08dedd66
ML
28572021-03-22 Martin Liska <mliska@suse.cz>
2858
2859 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2860 (_initialize_arm_tdep): Likewise.
2861
eb36a3eb
TT
28622021-03-20 Tom Tromey <tom@tromey.com>
2863
2864 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2865 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2866 * psymtab.h (make_psymbol_functions): Don't declare.
2867 * psymtab.c (make_psymbol_functions): Remove.
2868 (maintenance_print_psymbols): Update.
2869 * psympriv.h (struct psymbol_functions): Add no-argument
2870 constructor.
2871 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2872 <partial_symtabs>: Remove.
2873 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2874 * elfread.c (read_partial_symbols): Update.
2875 (elf_symfile_read): Remove check for existing partial symbols.
2876 Don't clear "qf".
2877 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2878 partial symbols.
2879 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2880 partial symtabs.
2881 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2882 parameter.
2883 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2884 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2885
e1114590
TT
28862021-03-20 Tom Tromey <tom@tromey.com>
2887
2888 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2889 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2890 * symfile-debug.c (objfile::has_partial_symbols)
2891 (objfile::find_last_source_symtab)
2892 (objfile::forget_cached_source_info)
2893 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2894 (objfile::print_stats, objfile::dump)
2895 (objfile::expand_symtabs_for_function)
2896 (objfile::expand_all_symtabs)
2897 (objfile::expand_symtabs_with_fullname)
2898 (objfile::map_matching_symbols)
2899 (objfile::expand_symtabs_matching)
2900 (objfile::find_pc_sect_compunit_symtab)
2901 (objfile::map_symbol_filenames)
2902 (objfile::find_compunit_symtab_by_address)
2903 (objfile::lookup_global_symbol_language)
2904 (objfile::require_partial_symbols): Update.
2905 * psymtab.c (maintenance_print_psymbols)
2906 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2907 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2908 * objfiles.c (objfile_relocate1): Update.
2909 * elfread.c (elf_symfile_read): Update.
2910
de909f0b
TT
29112021-03-20 Tom Tromey <tom@tromey.com>
2912
2913 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2914
caf8c1e5
TT
29152021-03-20 Tom Tromey <tom@tromey.com>
2916
2917 * psymtab.c (psymbol_functions::count_psyms): Rename.
2918 (psymbol_functions::print_stats): Update.
2919 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2920 method.
2921
3aa31ce7
TT
29222021-03-20 Tom Tromey <tom@tromey.com>
2923
2924 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2925 (psymbol_functions::find_pc_sect_psymtab): Rename.
2926 (psymbol_functions::find_pc_sect_compunit_symtab)
2927 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2928 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2929 Declare new method.
2930 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2931
7b249e47
TT
29322021-03-20 Tom Tromey <tom@tromey.com>
2933
2934 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2935 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2936 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2937 parameter.
2938 (add_psymbol_to_bcache): Remove.
2939 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2940 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2941 Likewise.
2942 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2943 <add_psymbol>: Likewise.
2944 (standard_psymtab, legacy_psymtab): Likewise.
2945 * mdebugread.c (parse_partial_symbols): Update.
2946 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2947 (handle_psymbol_enumerators): Update.
2948 (new_psymtab): Add partial_symtabs parameter.
2949 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2950 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2951 parameter.
2952 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2953 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2954 Update.
2955 * dbxread.c (read_dbx_symtab): Update.
2956 (start_psymtab): Add partial_symtabs parameter.
2957 (dbx_end_psymtab): Update.
2958 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2959 (ctf_psymtab): Add partial_symtabs parameter.
2960 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2961 Update.
2962 (scan_partial_symbols): Add partial_symtabs parameter.
2963 (scan_partial_symbols, elfctf_build_psymtabs)
2964 (ctf_psymtab_add_enums): Update.
2965
d1eef86d
TT
29662021-03-20 Tom Tromey <tom@tromey.com>
2967
2968 * symfile.c (read_symbols): Use objfile method.
2969 * symfile-debug.c (objfile::require_partial_symbols): New method.
2970 * psymtab.h (require_partial_symbols): Don't declare.
2971 * psymtab.c (require_partial_symbols): Use objfile method. Now
2972 static.
2973 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2974 (psymbol_functions::lookup_symbol)
2975 (psymbol_functions::lookup_global_symbol_language)
2976 (psymbol_functions::find_last_source_symtab)
2977 (psymbol_functions::forget_cached_source_info)
2978 (psymbol_functions::print_stats)
2979 (psymbol_functions::expand_symtabs_for_function)
2980 (psymbol_functions::expand_all_symtabs)
2981 (psymbol_functions::expand_symtabs_with_fullname)
2982 (psymbol_functions::map_symbol_filenames)
2983 (psymbol_functions::map_matching_symbols)
2984 (psymbol_functions::expand_symtabs_matching)
2985 (psymbol_functions::find_compunit_symtab_by_address)
2986 (maintenance_print_psymbols, maintenance_info_psymtabs)
2987 (maintenance_check_psymtabs): Update.
2988 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2989 new method.
2990
eb00e468
TT
29912021-03-20 Tom Tromey <tom@tromey.com>
2992
2993 * xcoffread.c (xcoff_sym_fns): Update.
2994 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2995 * symfile-debug.c (objfile::has_partial_symbols): Use
2996 can_lazily_read_symbols.
2997 (debug_sym_read_psymbols): Remove.
2998 (debug_sym_fns, install_symfile_debug_logging): Update.
2999 * quick-symbol.h (struct quick_symbol_functions)
3000 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3001 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3002 * mipsread.c (ecoff_sym_fns): Update.
3003 * machoread.c (macho_sym_fns): Update.
3004 * elfread.c (struct lazy_dwarf_reader): New.
3005 (elf_symfile_read): Update.
3006 (read_psyms): Now a method of lazy_dwarf_reader.
3007 (elf_sym_fns): Update.
3008 (elf_sym_fns_lazy_psyms): Remove.
3009 * dbxread.c (aout_sym_fns): Update.
3010 * coffread.c (coff_sym_fns): Update.
3011
b29b98cf
TT
30122021-03-20 Tom Tromey <tom@tromey.com>
3013
3014 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3015 (reread_symbols): Move reset_psymtabs call later.
3016 * objfiles.c (objfile::objfile): Don't initialize
3017 partial_symtabs.
3018
17d66340
TT
30192021-03-20 Tom Tromey <tom@tromey.com>
3020
3021 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3022 set_partial_symtabs.
3023 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3024 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3025 parameter.
3026 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3027 parameter.
3028 (psymbol_functions::find_pc_sect_compunit_symtab)
3029 (psymbol_functions::print_stats, psymbol_functions::dump)
3030 (psymbol_functions::has_symbols): Update.
3031 (make_psymbol_functions, dump_psymtab_addrmap): Add
3032 partial_symtabs parameter.
3033 (maintenance_print_psymbols): Update.
3034 (psymbol_functions::expand_symtabs_matching): Update.
3035 * psympriv.h (struct psymbol_functions): Add constructor.
3036 <m_partial_symtabs>: New member.
3037 <set_partial_symtabs>: New method.
3038
84685904
TT
30392021-03-20 Tom Tromey <tom@tromey.com>
3040
3041 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3042 parameter.
3043 (process_psymtab_comp_unit_reader)
3044 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3045 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3046 Reference psymtabs via per_bfd.
3047
79cc99f6
TT
30482021-03-20 Tom Tromey <tom@tromey.com>
3049
3050 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3051 Remove.
3052 (add_address_entry): Remove objfile parameter.
3053 (add_address_entry_worker): Update.
3054 (write_address_map): Replace objfile parameter with per_bfd.
3055 (write_gdbindex, write_psymtabs_to_index): Update.
3056
4829711b
TT
30572021-03-20 Tom Tromey <tom@tromey.com>
3058
3059 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3060 print_bcache parameter.
3061 * symfile-debug.c (objfile::print_stats): Add print_bcache
3062 parameter.
3063 * quick-symbol.h (struct quick_symbol_functions)
3064 <print_stats>: Add print_bcache parameter.
3065 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3066 code to psymtab.c.
3067 (print_objfile_statistics): Move psymtab code to psymtab.c.
3068 * psymtab.c (count_psyms): Move from symmisc.c.
3069 (psymbol_functions::print_stats): Print partial symbol and bcache
3070 statistics. Add print_bcache parameter.
3071 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3072 (struct objfile) <print_stats>: Add print_bcache parameter.
3073 * maint.c (maintenance_print_statistics): Update.
3074
efd7398e
TT
30752021-03-20 Tom Tromey <tom@tromey.com>
3076
3077 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3078 member.
3079 * dwarf2/read.c (create_addrmap_from_index)
3080 (create_addrmap_from_aranges): Set per_bfd addrmap.
3081 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3082 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3083 per_bfd addrmap.
3084 (dwarf2_read_debug_names): Don't set partial_symtabs.
3085 (dwarf2_initialize_objfile): Likewise.
3086
51962708
TT
30872021-03-20 Tom Tromey <tom@tromey.com>
3088
3089 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3090 earlier.
3091
484b1090
TT
30922021-03-20 Tom Tromey <tom@tromey.com>
3093
3094 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3095 (~psymtab_discarder, keep): Update.
3096 <m_objfile>: Remove.
3097 <m_partial_symtabs>: New member.
3098 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3099
7e9c0476
TT
31002021-03-20 Tom Tromey <tom@tromey.com>
3101
3102 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3103 (xcoff_end_psymtab): Update.
3104 (scan_xcoff_symtab): Add partial_symtabs parameter.
3105 (xcoff_initial_scan): Update.
3106 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3107 * mdebugread.c (mdebug_build_psymtabs): Update.
3108 (parse_partial_symbols): Add partial_symtabs parameter.
3109 * dbxread.c (dbx_symfile_read): Update.
3110 (read_dbx_symtab): Add partial_symtabs parameter.
3111 (read_dbx_symtab): Update.
3112 (dbx_end_psymtab): Add partial_symtabs parameter.
3113
75336a5a
TT
31142021-03-20 Tom Tromey <tom@tromey.com>
3115
3116 * quick-symbol.h (struct quick_symbol_functions)
3117 <relocated>: New method.
3118 * psymtab.h (struct psymbol_functions) <relocated>: New
3119 method.
3120 <fill_psymbol_map>: Declare method.
3121 <m_psymbol_map>: New member.
3122 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3123 (psymbol_functions::find_compunit_symtab_by_address): Update.
3124 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3125 (struct objfile) <psymbol_map>: Remove.
3126 * objfiles.c (objfile_relocate1): Update.
3127
39298a5d
TT
31282021-03-20 Tom Tromey <tom@tromey.com>
3129
3130 * psympriv.h (struct psymbol_functions): New.
3131 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3132 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3133 (objfile::lookup_global_symbol_language): Update.
3134 * quick-symbol.h (struct quick_symbol_functions): Convert function
3135 pointers to methods. Add virtual destructor.
3136 (quick_symbol_functions_up): New typedef.
3137 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3138 (dwarf2_debug_names_functions): Don't declare.
3139 (make_psymbol_functions): Declare.
3140 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3141 (psymbol_functions::find_pc_sect_compunit_symtab)
3142 (psymbol_functions::lookup_symbol)
3143 (psymbol_functions::lookup_global_symbol_language)
3144 (psymbol_functions::find_last_source_symtab)
3145 (psymbol_functions::forget_cached_source_info)
3146 (psymbol_functions::print_stats, psymbol_functions::dump)
3147 (psymbol_functions::expand_symtabs_for_function)
3148 (psymbol_functions::expand_all_symtabs)
3149 (psymbol_functions::expand_symtabs_with_fullname)
3150 (psymbol_functions::map_symbol_filenames)
3151 (psymbol_functions::map_matching_symbols)
3152 (psymbol_functions::expand_symtabs_matching)
3153 (psymbol_functions::has_symbols)
3154 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3155 (psym_functions): Remove.
3156 (make_psymbol_functions): New function.
3157 * objfiles.h (struct objfile) <qf>: Change type.
3158 * elfread.c (elf_symfile_read): Update.
3159 * dwarf2/read.c (struct dwarf2_base_index_functions)
3160 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3161 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3162 (dwarf2_base_index_functions::find_last_source_symtab)
3163 (dwarf2_base_index_functions::forget_cached_source_info)
3164 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3165 (dwarf2_gdb_index::lookup_symbol)
3166 (dwarf2_base_index_functions::print_stats)
3167 (dwarf2_gdb_index::dump)
3168 (dwarf2_gdb_index::expand_symtabs_for_function)
3169 (dwarf2_base_index_functions::expand_all_symtabs)
3170 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3171 Rename.
3172 (dwarf2_gdb_index::map_matching_symbols): New method.
3173 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3174 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3175 (dwarf2_base_index_functions::map_symbol_filenames)
3176 (dwarf2_base_index_functions::has_symbols): Rename.
3177 (dwarf2_gdb_index_functions): Remove.
3178 (dwarf2_debug_names_index::lookup_symbol)
3179 (dwarf2_debug_names_index::dump)
3180 (dwarf2_debug_names_index::expand_symtabs_for_function)
3181 (dwarf2_debug_names_index::map_matching_symbols)
3182 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3183 (dwarf2_debug_names_functions): Remove.
3184 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3185 Declare.
3186
5c3f1e5b
TT
31872021-03-20 Tom Tromey <tom@tromey.com>
3188
3189 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3190 null.
3191 * xcoffread.c (xcoff_sym_fns): Update.
3192 * symfile.h (struct sym_fns) <qf>: Remove.
3193 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3194 * symfile-debug.c (objfile::has_partial_symbols)
3195 (objfile::find_last_source_symtab)
3196 (objfile::forget_cached_source_info)
3197 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3198 (objfile::print_stats, objfile::dump)
3199 (objfile::expand_symtabs_for_function)
3200 (objfile::expand_all_symtabs)
3201 (objfile::expand_symtabs_with_fullname)
3202 (objfile::map_matching_symbols)
3203 (objfile::expand_symtabs_matching)
3204 (objfile::find_pc_sect_compunit_symtab)
3205 (objfile::map_symbol_filenames)
3206 (objfile::find_compunit_symtab_by_address)
3207 (objfile::lookup_global_symbol_language, debug_sym_fns)
3208 (install_symfile_debug_logging): Update.
3209 * objfiles.h (struct objfile) <qf>: New member.
3210 * mipsread.c (ecoff_sym_fns): Update.
3211 * machoread.c (macho_sym_fns): Update.
3212 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3213 Don't declare.
3214 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3215 * dbxread.c (aout_sym_fns): Update.
3216 * coffread.c (coff_sym_fns): Update.
3217
9b99dcc8
TT
32182021-03-20 Tom Tromey <tom@tromey.com>
3219
3220 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3221 (expand_symtabs_file_matcher_ftype)
3222 (expand_symtabs_symbol_matcher_ftype)
3223 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3224 Move to quick-symbol.h.
3225 * quick-symbol.h: New file.
3226
4d080b46
TT
32272021-03-20 Tom Tromey <tom@tromey.com>
3228
3229 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3230 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3231 (basic_lookup_transparent_type_quick)
3232 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3233 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3234 Update.
3235 * symmisc.c (print_objfile_statistics, dump_objfile)
3236 (maintenance_expand_symtabs): Update.
3237 * symfile.c (symbol_file_add_with_addrs)
3238 (expand_symtabs_matching, map_symbol_filenames): Update.
3239 * symfile-debug.c (objfile::has_partial_symbols)
3240 (objfile::find_last_source_symtab)
3241 (objfile::forget_cached_source_info)
3242 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3243 (objfile::print_stats, objfile::dump)
3244 (objfile::expand_symtabs_for_function)
3245 (objfile::expand_all_symtabs)
3246 (objfile::expand_symtabs_with_fullname)
3247 (objfile::map_matching_symbols)
3248 (objfile::expand_symtabs_matching)
3249 (objfile::find_pc_sect_compunit_symtab)
3250 (objfile::map_symbol_filenames)
3251 (objfile::find_compunit_symtab_by_address)
3252 (objfile::lookup_global_symbol_language): New methods.
3253 (debug_sym_quick_functions): Remove.
3254 (debug_sym_fns, install_symfile_debug_logging): Update.
3255 * source.c (forget_cached_source_info_for_objfile)
3256 (select_source_symtab): Update.
3257 * objfiles.h (struct objfile): Add methods corresponding to
3258 quick_symbol_functions.
3259 * objfiles.c (objfile::has_partial_symbols): Move to
3260 symfile-debug.c.
3261 * linespec.c (iterate_over_all_matching_symtabs): Update.
3262 * cp-support.c (add_symbol_overload_list_qualified): Update.
3263 * ada-lang.c (add_nonlocal_symbols): Update.
3264
fae2120b
TT
32652021-03-20 Tom Tromey <tom@tromey.com>
3266
3267 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3268 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3269 bool.
3270 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3271 * psymtab.c (psym_has_symbols): Return bool.
3272 * objfiles.c (objfile::has_partial_symbols): Return bool.
3273 * dwarf2/read.c (dw2_has_symbols): Return bool.
3274
a8ad4f3c
TT
32752021-03-20 Tom Tromey <tom@tromey.com>
3276
3277 * symfile.c (read_symbols): Update.
3278 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3279 (objfile_has_partial_symbols): Don't declare.
3280 * objfiles.c (objfile::has_partial_symbols): Rename from
3281 objfile_has_partial_symbols.
3282 (objfile_has_symbols, have_partial_symbols): Update.
3283 * elfread.c (elf_symfile_read): Update.
3284 * dwarf2/read.c (dwarf2_has_info): Update.
3285 * coffread.c (coff_symfile_read): Update.
3286
70182375
TT
32872021-03-20 Tom Tromey <tom@tromey.com>
3288
3289 * coffread.c: Include dwarf2/public.h.
3290 * dwarf2/frame.c: Include dwarf2/public.h.
3291 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3292 * dwarf2/public.h: New file.
3293 * dwarf2/read.c: Include dwarf2/public.h.
3294 * elfread.c: Include dwarf2/public.h.
3295 * machoread.c: Include dwarf2/public.h.
3296 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3297 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3298 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3299 * xcoffread.c: Include dwarf2/public.h.
3300
18038e63
TT
33012021-03-20 Tom Tromey <tom@tromey.com>
3302
3303 * symfile.h (enum dwarf2_section_enum)
3304 (dwarf2_get_section_info): Move to dwarf2/read.h.
3305 * dwarf2/read.h (enum dwarf2_section_enum)
3306 (dwarf2_get_section_info): Move from symfile.h.
3307
219f56b4
PA
33082021-03-19 Pedro Alves <pedro@palves.net>
3309
3310 * thread.c (any_thread_of_inferior): Check if there's a selected
3311 thread before calling inferior_thread().
3312
15310fd4
TT
33132021-03-18 Tom Tromey <tromey@adacore.com>
3314
3315 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3316 get_DW_UT_name.
3317 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3318 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3319
763b8efd
AB
33202021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3321
3322 * python/py-param.c (get_set_value): Update header comment.
3323
f058c521
SM
33242021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3325
3326 * infrun.c (check_multi_target_resumption): Remove argument to
3327 all_non_exited_inferiors.
3328
383228bc
CB
33292021-03-16 Christian Biesinger <cbiesinger@google.com>
3330
3331 * windows-nat.c (windows_init_thread_list): Add message to
3332 debug log.
3333
7807d76a
AB
33342021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3335
3336 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3337 well as PyLong_Check for Python 2.
3338
675da9a5
TT
33392021-03-15 Tom Tromey <tromey@adacore.com>
3340
3341 PR build/27579:
3342 * rust-exp.y (maker_map): Use gdb::hash_enum.
3343 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3344
4800761a
SM
33452021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3346
3347 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3348 end of debug print.
3349
eb5dd737
SM
33502021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3351
3352 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3353 parameter, adjust caller.
3354
6813ceb0
TT
33552021-03-15 Tom Tromey <tromey@adacore.com>
3356
3357 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3358
3b5c4de0
TT
33592021-03-15 Tom Tromey <tromey@adacore.com>
3360
3361 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3362 ada_ensure_varsize_limit.
3363
c04da66c
TT
33642021-03-15 Tom Tromey <tromey@adacore.com>
3365
3366 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3367 fixed-point.
3368 * ada-exp.y (maybe_overload): New function.
3369 (ada_wrap_overload): New function.
3370 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3371 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3372 (or_else_exp, xor_exp, primary): Update.
3373
9863c3b5
TT
33742021-03-15 Tom Tromey <tromey@adacore.com>
3375
3376 PR ada/27545:
3377 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3378 call for tagged type.
3379
1ac74522
TT
33802021-03-15 Tom Tromey <tromey@adacore.com>
3381
3382 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3383 assignment.
3384
207582c0
TT
33852021-03-15 Tom Tromey <tromey@adacore.com>
3386
3387 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3388 container.
3389 (ada_assign_operation::evaluate): Update.
3390 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3391 Change return type.
3392
8d624a9d
FW
33932021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3394
3395 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3396
ba6a0ef3
AB
33972021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * python/python.c (gdbpy_source_objfile_script): Use
3400 make_scoped_restore to restore gdbpy_current_objfile.
3401 (gdbpy_execute_objfile_script): Likewise.
3402
7c290a04
TT
34032021-03-14 Tom Tromey <tom@tromey.com>
3404
3405 * dwarf2/read.c (read_attribute_value): Use cu_header
3406 consistently.
3407
0280fdcc
TT
34082021-03-14 Tom Tromey <tom@tromey.com>
3409
3410 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3411 (peek_die_abbrev): Use reader.abfd.
3412
a9f172c6
TT
34132021-03-14 Tom Tromey <tom@tromey.com>
3414
3415 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3416 m_header_read_in.
3417
7c32eebb
TT
34182021-03-13 Tom Tromey <tom@tromey.com>
3419
3420 * dwarf2/read.c (struct partial_die_info): Update.
3421 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3422 (load_partial_dies, partial_die_info::partial_die_info): Update.
3423 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3424
27012aba
TT
34252021-03-13 Tom Tromey <tom@tromey.com>
3426
3427 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3428
fece451c
CB
34292021-03-12 Christian Biesinger <cbiesinger@google.com>
3430
3431 PR threads/27239
3432 * cp-support.c: Use scoped_segv_handler_restore.
3433 * event-top.c (thread_local_segv_handler): Made static.
3434 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3435 New function.
3436 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3437 function.
3438 * event-top.h (class scoped_segv_handler_restore): New class.
3439 (thread_local_segv_handler): Removed.
3440
7056f312
TT
34412021-03-10 Tom Tromey <tromey@adacore.com>
3442
3443 * parser-defs.h (parser_state): Change completion to bool.
3444 <parse_completion>: Likewise.
3445 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3446 (ada_resolve_variable, ada_resolve_function): Update.
3447 * ada-lang.c (ada_find_operator_symbol): Change
3448 parse_completion to bool.
3449 (ada_resolve_funcall, ada_resolve_variable)
3450 (ada_resolve_function): Likewise.
3451
ccdc02ed
TT
34522021-03-09 Tom Tromey <tromey@adacore.com>
3453
3454 * eval.c (operation::evaluate_funcall): Use function formal
3455 parameter types when evaluating.
3456
fbb1aace
AB
34572021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3458
3459 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3460 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3461 and owner to m_owner.
3462
611aa09d
FW
34632021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3464
3465 * f-exp.h (eval_op_f_loc): Declare.
3466 (expr::fortran_loc_operation): New typedef.
3467 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3468 UNOP_INTRINSIC.
3469 (f77_keywords): Add LOC keyword.
3470 * f-lang.c (eval_op_f_loc): New function.
3471 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3472
eef32f59
AB
34732021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3474
3475 * f-exp.h (eval_op_f_array_shape): Declare.
3476 (fortran_array_shape_operation): New type.
3477 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3478 UNOP_INTRINSIC.
3479 (f77_keywords): Add "shape" keyword.
3480 * f-lang.c (fortran_array_shape): New function.
3481 (eval_op_f_array_shape): New function.
3482 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3483
7ba155b3
AB
34842021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3485
3486 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3487 of this function.
3488 (expr::fortran_array_size_1arg): New type.
3489 (expr::fortran_array_size_2arg): Likewise.
3490 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3491 UNOP_OR_BINOP_INTRINSIC.
3492 (f77_keywords): Add "size" keyword.
3493 * f-lang.c (fortran_array_size): New function.
3494 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3495 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3496
e14816a8
AB
34972021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3498
3499 * f-exp.h (eval_op_f_rank): Declare.
3500 (expr::fortran_rank_operation): New typedef.
3501 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3502 UNOP_INTRINSIC.
3503 (f77_keywords): Add "rank" keyword.
3504 * f-lang.c (eval_op_f_rank): New function.
3505 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3506
3dd93bf8
TT
35072021-03-08 Tom Tromey <tom@tromey.com>
3508
3509 * printcmd.c (set_command): Remove null check.
3510 * value.c (init_if_undefined_command): Remove null check.
3511
9c79936b
TT
35122021-03-08 Tom Tromey <tom@tromey.com>
3513
3514 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3515 Update.
3516 * p-exp.y (variable): Update.
3517 * go-exp.y (variable): Update.
3518 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3519 Remove overload for objfile.
3520 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3521 parameter.
3522 (check_objfile): Likewise.
3523 (dump_for_expression): Likewise. Remove overload for objfile.
3524 (class var_msym_value_operation): Use bound_minimal_symbol.
3525 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3526 parameter.
3527 (var_msym_value_operation::evaluate_for_address)
3528 (var_msym_value_operation::evaluate_for_sizeof)
3529 (var_msym_value_operation::evaluate_for_cast): Update.
3530 * d-exp.y (PrimaryExpression): Update.
3531 * c-exp.y (variable): Update.
3532 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3533 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3534 Update.
3535 * ada-exp.y (write_var_or_type): Update.
3536
40d07d07
TT
35372021-03-08 Tom Tromey <tom@tromey.com>
3538
3539 * parser-defs.h (exp_uses_objfile): Return bool.
3540 * parse.c (exp_uses_objfile): Return bool.
3541
0b2b0b82
TT
35422021-03-08 Tom Tromey <tom@tromey.com>
3543
3544 * value.h (eval_skip_value): Don't declare.
3545 * opencl-lang.c (eval_opencl_assign): Update.
3546 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3547 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3548 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3549 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3550 * expop.h (typeof_operation::evaluate)
3551 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3552 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3553 (cxx_cast_operation::evaluate): Update.
3554 * eval.c (eval_skip_value): Remove.
3555 (eval_op_scope, eval_op_var_entry_value)
3556 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3557 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3558 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3559 (eval_op_binary, eval_op_subscript, eval_op_equal)
3560 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3561 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3562 (eval_op_complement, eval_op_lognot, eval_op_ind)
3563 (eval_op_memval, eval_op_preinc, eval_op_predec)
3564 (eval_op_postinc, eval_op_postdec, eval_op_type)
3565 (eval_binop_assign_modify, eval_op_objc_msgcall)
3566 (eval_multi_subscript, logical_and_operation::evaluate)
3567 (logical_or_operation::evaluate, array_operation::evaluate)
3568 (operation::evaluate_for_cast)
3569 (var_msym_value_operation::evaluate_for_cast)
3570 (var_value_operation::evaluate_for_cast): Update.
3571 * c-lang.c (c_string_operation::evaluate): Update.
3572 * c-exp.h (objc_nsstring_operation::evaluate)
3573 (objc_selector_operation::evaluate): Update.
3574 * ada-lang.c (ada_assign_operation::evaluate)
3575 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3576 (ada_atr_size): Update.
3577
96db551d
TT
35782021-03-08 Tom Tromey <tom@tromey.com>
3579
3580 * eval.c: Merge "namespace" scopes.
3581
ce284361
TT
35822021-03-08 Tom Tromey <tom@tromey.com>
3583
3584 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3585 <release>: Inline.
3586 * parse.c (expr_builder::expr_builder, expr_builder::release):
3587 Remove.
3588
b9d06571
TT
35892021-03-08 Tom Tromey <tom@tromey.com>
3590
3591 * parse.c (expression::expression, expression::~expression):
3592 Remove.
3593 * expression.h (struct expression): Inline constructor. Remove
3594 destructor.
3595
79ab486e
TT
35962021-03-08 Tom Tromey <tom@tromey.com>
3597
3598 * std-operator.def (BINOP_END): Remove.
3599 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3600 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3601 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3602 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3603 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3604 BINOP_END.
3605
48fa6f23
TT
36062021-03-08 Tom Tromey <tom@tromey.com>
3607
3608 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3609
43f542e3
TT
36102021-03-08 Tom Tromey <tom@tromey.com>
3611
3612 * std-operator.def (OP_EXTENDED0): Remove.
3613
5d9ba982
TT
36142021-03-08 Tom Tromey <tom@tromey.com>
3615
3616 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3617 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3618 Remove.
3619
d357570d
TT
36202021-03-08 Tom Tromey <tom@tromey.com>
3621
3622 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3623 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3624
0922dc84
TT
36252021-03-08 Tom Tromey <tom@tromey.com>
3626
3627 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3628 * ada-lang.c (ada_binop_minmax): Update.
3629 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3630 Use BINOP_MIN and BINOP_MAX.
3631
1eaebe02
TT
36322021-03-08 Tom Tromey <tom@tromey.com>
3633
3634 * value.h (evaluate_subexp_with_coercion): Don't declare.
3635 * parse.c (exp_descriptor_standard): Remove.
3636 (expr_builder::expr_builder, expr_builder::release): Update.
3637 (expression::expression): Remove size_t parameter.
3638 (expression::~expression): Simplify.
3639 (expression::resize): Remove.
3640 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3641 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3642 (write_exp_elt_longcst, write_exp_elt_floatcst)
3643 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3644 (write_exp_string_vector, write_exp_bitstring): Remove.
3645 * p-lang.h (class pascal_language) <opcode_print_table,
3646 op_print_tab>: Remove.
3647 * p-lang.c (pascal_language::op_print_tab): Remove.
3648 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3649 Remove.
3650 * objc-lang.c (objc_op_print_tab): Remove.
3651 (class objc_language) <opcode_print_table>: Remove.
3652 * m2-lang.h (class m2_language) <opcode_print_table,
3653 op_print_tab>: Remove.
3654 * m2-lang.c (m2_language::op_print_tab): Remove.
3655 * language.h (struct language_defn) <post_parser, expression_ops,
3656 opcode_print_table>: Remove.
3657 * language.c (language_defn::expression_ops)
3658 (auto_or_unknown_language::opcode_print_table): Remove.
3659 * go-lang.h (class go_language) <opcode_print_table,
3660 op_print_tab>: Remove.
3661 * go-lang.c (go_language::op_print_tab): Remove.
3662 * f-lang.h (class f_language) <opcode_print_table>: Remove
3663 <op_print_tab>: Remove.
3664 * f-lang.c (f_language::op_print_tab): Remove.
3665 * expression.h (union exp_element): Remove.
3666 (struct expression): Remove size_t parameter from constructor.
3667 <resize>: Remove.
3668 <first_opcode>: Update.
3669 <nelts, elts>: Remove.
3670 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3671 (evaluate_subexp_standard, print_expression, op_string)
3672 (dump_raw_expression): Don't declare.
3673 * expprint.c (print_expression, print_subexp)
3674 (print_subexp_funcall, print_subexp_standard, op_string)
3675 (dump_raw_expression, dump_subexp, dump_subexp_body)
3676 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3677 (dump_prefix_expression): Update.
3678 * eval.c (evaluate_subexp): Remove.
3679 (evaluate_expression, evaluate_type): Update.
3680 (evaluate_subexpression_type): Remove.
3681 (fetch_subexp_value): Remove "pc" parameter. Update.
3682 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3683 (evaluate_subexp_standard, evaluate_subexp_for_address)
3684 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3685 (evaluate_subexp_for_cast): Remove.
3686 (parse_and_eval_type): Update.
3687 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3688 * d-lang.c (d_op_print_tab): Remove.
3689 (class d_language) <opcode_print_table>: Remove.
3690 * c-lang.h (c_op_print_tab): Don't declare.
3691 * c-lang.c (c_op_print_tab): Remove.
3692 (class c_language, class cplus_language, class asm_language, class
3693 minimal_language) <opcode_print_table>: Remove.
3694 * breakpoint.c (update_watchpoint, watchpoint_check)
3695 (watchpoint_exp_is_const, watch_command_1): Update.
3696 * ax-gdb.h (union exp_element): Don't declare.
3697 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3698 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3699 (gen_expr_binop_rest): Remove.
3700 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3701 * ada-lang.c (ada_op_print_tab): Remove.
3702 (class ada_language) <post_parser, opcode_print_table>: Remove.
3703
f2a98603
TT
37042021-03-08 Tom Tromey <tom@tromey.com>
3705
3706 * go-lang.c (go_language::expression_ops): Don't declare.
3707 * go-lang.h (class go_language) <expression_ops>: Remove.
3708 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3709 Remove.
3710 (class opencl_language) <expression_ops>: Remove.
3711 * d-lang.c (class d_language) <expression_ops>: Remove.
3712 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3713 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3714 (class c_language, class cplus_language, class asm_language)
3715 (class minimal_language) <expression_ops>: Remove.
3716
d3c54a1c
TT
37172021-03-08 Tom Tromey <tom@tromey.com>
3718
3719 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3720 (evaluate_subexp_type, assign_aggregate)
3721 (aggregate_assign_positional, aggregate_assign_from_choices)
3722 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3723 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3724 (ada_operator_check, ada_forward_operator_length)
3725 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3726 Remove.
3727 (post_parser): Update.
3728 (class ada_language) <expresssion_ops>: Remove.
3729
5871f0a3
TT
37302021-03-08 Tom Tromey <tom@tromey.com>
3731
3732 * m2-lang.h (class m2_language) <expresssion_ops,
3733 exp_descriptor_modula2>: Remove.
3734 * m2-lang.c (evaluate_subexp_modula2)
3735 (m2_language::exp_descriptor_modula2): Remove.
3736
a99be8c1
TT
37372021-03-08 Tom Tromey <tom@tromey.com>
3738
3739 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3740 <exp_descriptor_tab>: Remove.
3741 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3742 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3743 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3744 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3745 Remove.
3746
aa1da9ed
TT
37472021-03-08 Tom Tromey <tom@tromey.com>
3748
3749 * rust-lang.h (class rust_language) <expression_ops,
3750 exp_descriptor_tab>: Remove.
3751 * rust-lang.c (rust_evaluate_funcall): Remove.
3752 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3753 EVAL_SKIP.
3754 (rust_evaluate_subexp): Remove.
3755 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3756 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3757 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3758
08a057e6
TT
37592021-03-08 Tom Tromey <tom@tromey.com>
3760
3761 * ada-exp.y: Create operations.
3762 (empty_stoken): Remove.
3763 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3764 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3765 (components): New global.
3766 (push_component, choice_component, pop_component, pop_components):
3767 New functions.
3768 (associations): New global
3769 (push_association, pop_association, pop_associations): New
3770 functions.
3771 (ada_parse): Update.
3772 (write_var_from_sym, write_int): Create operations.
3773 (write_exp_op_with_string): Remove.
3774 (write_object_renaming, write_selectors, write_ambiguous_var)
3775 (write_var_or_type, write_name_assoc): Create operations.
3776 * ada-lang.h (ada_index_type): Declare.
3777 * ada-lang.c (ada_index_type): No longer static.
3778
d308ba78
TT
37792021-03-08 Tom Tromey <tom@tromey.com>
3780
3781 * f-exp.y: Create operations.
3782 (f_language::parser): Update.
3783
f1b8ceef
TT
37842021-03-08 Tom Tromey <tom@tromey.com>
3785
3786 * m2-exp.y: Create operations.
3787 (m2_language::parser): Update.
3788
3163898e
TT
37892021-03-08 Tom Tromey <tom@tromey.com>
3790
3791 * p-exp.y: Create operations.
3792 (pascal_language::parser): Update.
3793
9412fdcc
TT
37942021-03-08 Tom Tromey <tom@tromey.com>
3795
3796 * d-exp.y: Create operations.
3797 (d_parse): Update.
3798
bb4e0574
TT
37992021-03-08 Tom Tromey <tom@tromey.com>
3800
3801 * go-exp.y: Create operations.
3802 (go_language::parser): Update.
3803
d182f279
TT
38042021-03-08 Tom Tromey <tom@tromey.com>
3805
3806 * objc-lang.c (end_msglist): Create operations.
3807 * c-exp.y: Change parser to create operations.
3808 (write_destructor_name): Remove.
3809 (c_parse): Update.
3810
c1299a23
TT
38112021-03-08 Tom Tromey <tom@tromey.com>
3812
3813 * rust-exp.y: Create operations.
3814 (rust_parser::convert_params_to_expression): Change return type.
3815 (binop_maker_ftype): New typedef.
3816 (maker_map): New global.
3817 (rust_parser::convert_ast_to_expression): Change return type.
3818 (rust_language::parser): Update.
3819 (_initialize_rust_exp): Initialize maker_map.
3820
4c5e7a93
TT
38212021-03-08 Tom Tromey <tom@tromey.com>
3822
3823 * stap-probe.c (binop_maker_ftype): New typedef.
3824 (stap_maker_map): New global.
3825 (stap_make_binop): New function.
3826 (stap_parse_register_operand): Return operation_up.
3827 (stap_parse_single_operand, stap_parse_argument_conditionally)
3828 (stap_parse_argument_1): Likewise.
3829 (stap_parse_argument): Create operations.
3830 (stap_probe::parse_arguments): Update.
3831 (_initialize_stap_probe): Initialize stap_maker_map.
3832 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3833 type.
3834 * i386-tdep.h (i386_stap_parse_special_token): Change return
3835 type.
3836 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3837 (i386_stap_parse_special_token_three_arg_disp)
3838 (i386_stap_parse_special_token): Change return type.
3839 * gdbarch.sh (stap_parse_special_token): Change return type.
3840 * gdbarch.c: Rebuild.
3841 * gdbarch.h: Rebuild.
3842 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3843 type.
3844 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3845 return type.
3846
482ddd69
TT
38472021-03-08 Tom Tromey <tom@tromey.com>
3848
3849 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3850 * gdbarch.h: Rebuild.
3851 * gdbarch.c: Rebuild.
3852 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3853 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3854 return type.
3855 (amd64_dtrace_parse_probe_argument): Update.
3856
8227d9e2
TT
38572021-03-08 Tom Tromey <tom@tromey.com>
3858
3859 * parser-defs.h (struct parser_state) <push, push_new,
3860 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3861 wrap2>: New methods.
3862 <m_operations>: New member.
3863 * parse.c (parser_state::push_c_string)
3864 (parser_state::push_symbol, parser_state::push_dollar): New
3865 methods.
3866
4933522d
TT
38672021-03-08 Tom Tromey <tom@tromey.com>
3868
3869 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3870 New member.
3871 (struct parser_state) <mark_struct_expression>: New method.
3872 * parse.c (parser_state::mark_struct_expression): Update assert.
3873 (parser_state::mark_struct_expression): New method.
3874 (parser_state::mark_completion_tag): Update assert.
3875 (parse_expression_for_completion): Handle expout_last_op.
3876
413403fc
TT
38772021-03-08 Tom Tromey <tom@tromey.com>
3878
3879 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3880 now in superclass.
3881 * value.h (fetch_subexp_value): Add "op" parameter.
3882 * value.c (init_if_undefined_command): Update.
3883 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3884 * stap-probe.c (stap_probe::compile_to_ax): Update.
3885 * printcmd.c (set_command): Update.
3886 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3887 Update.
3888 * parser-defs.h (struct expr_builder) <set_operation>: New
3889 method.
3890 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3891 * expression.h (struct expression) <first_opcode>: Update.
3892 <op>: New member.
3893 * expprint.c (dump_raw_expression, dump_prefix_expression):
3894 Update.
3895 * expop.h (class var_value_operation) <get_symbol>: New method.
3896 (class register_operation) <get_name>: New method.
3897 (class equal_operation): No longer a typedef, now a subclass.
3898 (class unop_memval_operation) <get_type>: New method.
3899 (class assign_operation) <get_lhs>: New method.
3900 (class unop_cast_operation) <get_type>: New method.
3901 * eval.c (evaluate_expression, evaluate_type)
3902 (evaluate_subexpression_type): Update.
3903 (fetch_subexp_value): Add "op" parameter.
3904 (parse_and_eval_type): Update.
3905 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3906 * breakpoint.c (update_watchpoint, watchpoint_check)
3907 (watchpoint_exp_is_const, watch_command_1): Update.
3908 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3909 Update.
3910
b0f9164c
TT
39112021-03-08 Tom Tromey <tom@tromey.com>
3912
3913 * ada-lang.c (ada_value_binop): Do not use op_string.
3914
a88c4354
TT
39152021-03-08 Tom Tromey <tom@tromey.com>
3916
3917 * expprint.c (dump_for_expression): New overload.
3918 * expop.h (check_objfile, dump_for_expression): Declare new
3919 overloads.
3920 * ada-lang.c (check_objfile): New overload.
3921 (assign_component, ada_aggregate_component::uses_objfile)
3922 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3923 (ada_aggregate_component::assign_aggregate)
3924 (ada_positional_component::uses_objfile)
3925 (ada_positional_component::dump, ada_positional_component::assign)
3926 (ada_discrete_range_association::uses_objfile)
3927 (ada_discrete_range_association::dump)
3928 (ada_discrete_range_association::assign)
3929 (ada_name_association::uses_objfile, ada_name_association::dump)
3930 (ada_name_association::assign)
3931 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3932 (ada_choices_component::assign)
3933 (ada_others_component::uses_objfile, ada_others_component::dump)
3934 (ada_others_component::assign, ada_assign_operation::evaluate):
3935 New methods.
3936 * ada-exp.h (ada_string_operation) <get_name>: New method.
3937 (class ada_assign_operation): New.
3938 (class ada_component): New.
3939 (ada_component_up): New typedef.
3940 (class ada_aggregate_operation, class ada_aggregate_component)
3941 (class ada_positional_component, class ada_others_component)
3942 (class ada_association): New.
3943 (ada_association_up): New typedef.
3944 (class ada_choices_component)
3945 (class ada_discrete_range_association)
3946 (class ada_name_association): New.
3947
d8a4ed8a
TT
39482021-03-08 Tom Tromey <tom@tromey.com>
3949
3950 * ada-lang.c (ada_var_value_operation::resolve)
3951 (ada_funcall_operation::resolve)
3952 (ada_ternop_slice_operation::resolve): New methods.
3953 * ada-exp.h (struct ada_resolvable): New.
3954 (class ada_var_value_operation): Derive from ada_resolvable.
3955 <get_block, resolve>: New methods.
3956 (class ada_funcall_operation): Derive from ada_resolvable.
3957 <resolve>: New method.
3958 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3959 <resolve>: New method.
3960
efe3af2f
TT
39612021-03-08 Tom Tromey <tom@tromey.com>
3962
3963 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3964 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3965 method.
3966 (class ada_funcall_operation): New.
3967
ebc06ad8
TT
39682021-03-08 Tom Tromey <tom@tromey.com>
3969
3970 * ada-lang.c (ada_structop_operation::evaluate): New method.
3971 * ada-exp.h (class ada_structop_operation): New.
3972
e8c33fa1
TT
39732021-03-08 Tom Tromey <tom@tromey.com>
3974
3975 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3976 * ada-exp.h (class ada_unop_ind_operation): New.
3977
065ec826
TT
39782021-03-08 Tom Tromey <tom@tromey.com>
3979
3980 * ada-lang.c (ada_binop_exp): No longer static.
3981 * ada-exp.h (ada_binop_exp_operation): New typedef.
3982
9e99f48f
TT
39832021-03-08 Tom Tromey <tom@tromey.com>
3984
3985 * ada-lang.c (ada_val_atr): No longer static.
3986 (ada_atr_val_operation::evaluate): New method.
3987 * ada-exp.h (class ada_atr_val_operation): New.
3988
7631cf6c
TT
39892021-03-08 Tom Tromey <tom@tromey.com>
3990
3991 * ada-lang.c (ada_pos_atr): No longer static.
3992 * ada-exp.h (ada_pos_operation): New typedef.
3993
7992accc
TT
39942021-03-08 Tom Tromey <tom@tromey.com>
3995
3996 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3997 parameters.
3998 (ada_evaluate_subexp): Use it.
3999
6ad3b8bf
TT
40002021-03-08 Tom Tromey <tom@tromey.com>
4001
4002 * ada-lang.c (ada_binop_minmax): No longer static.
4003 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4004 New typedefs.
4005
3f4a0053
TT
40062021-03-08 Tom Tromey <tom@tromey.com>
4007
4008 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4009 New method.
4010 * ada-exp.h (class ada_var_msym_value_operation): New.
4011
99a3b1e7
TT
40122021-03-08 Tom Tromey <tom@tromey.com>
4013
4014 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4015 (ada_var_value_operation::evaluate): New methods.
4016 * ada-exp.h (class ada_var_value_operation): New.
4017
60fa02ca
TT
40182021-03-08 Tom Tromey <tom@tromey.com>
4019
4020 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4021 * ada-exp.h (class ada_unop_atr_operation): New.
4022
82c3886e
TT
40232021-03-08 Tom Tromey <tom@tromey.com>
4024
4025 * ada-lang.c (ada_binop_in_bounds): No longer static.
4026 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4027
1b1ebfab
TT
40282021-03-08 Tom Tromey <tom@tromey.com>
4029
4030 * ada-lang.c (ada_ternop_slice): No longer static.
4031 * ada-exp.h (class ada_ternop_slice_operation): New.
4032
039e4b76
TT
40332021-03-08 Tom Tromey <tom@tromey.com>
4034
4035 * ada-exp.h (ada_bitwise_operation): New template class.
4036 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4037 (ada_bitwise_xor_operation): New typedefs.
4038
6e8fb7b7
TT
40392021-03-08 Tom Tromey <tom@tromey.com>
4040
4041 * ada-lang.c (ada_equal_binop): No longer static.
4042 * ada-exp.h (class ada_binop_equal_operation): New.
4043
d9e7db06
TT
40442021-03-08 Tom Tromey <tom@tromey.com>
4045
4046 * ada-lang.c (ada_mult_binop): No longer static.
4047 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4048 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4049
73796c73
TT
40502021-03-08 Tom Tromey <tom@tromey.com>
4051
4052 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4053 * ada-exp.h (class ada_binop_addsub_operation): New.
4054
cd9a3148
TT
40552021-03-08 Tom Tromey <tom@tromey.com>
4056
4057 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4058 (ada_resolve_variable): Declare.
4059 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4060 (ada_resolve_variable): New functions.
4061 (resolve_subexp): Update.
4062
cf12b17f
TT
40632021-03-08 Tom Tromey <tom@tromey.com>
4064
4065 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4066 method.
4067 * c-exp.h (class opencl_ternop_cond_operation): New.
4068
944fd3b8
TT
40692021-03-08 Tom Tromey <tom@tromey.com>
4070
4071 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4072 method.
4073 * c-exp.h (class opencl_logical_binop_operation): New.
4074
33b79214
TT
40752021-03-08 Tom Tromey <tom@tromey.com>
4076
4077 * opencl-lang.c (opencl_structop_operation::evaluate): New
4078 method.
4079 * c-exp.h (class opencl_structop_operation): New.
4080
2492ba36
TT
40812021-03-08 Tom Tromey <tom@tromey.com>
4082
4083 * opencl-lang.c (opencl_logical_not): No longer static. Change
4084 parameters.
4085 (evaluate_subexp_opencl): Update.
4086 * c-exp.h (opencl_notequal_operation): New typedef.
4087
a88c3c8d
TT
40882021-03-08 Tom Tromey <tom@tromey.com>
4089
4090 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4091 static. Change parameters.
4092 (eval_opencl_assign): No longer static. Add "op" parameter.
4093 (evaluate_subexp_opencl): Update.
4094 * c-exp.h (opencl_binop_operation): New template class.
4095 (opencl_assign_operation, opencl_equal_operation)
4096 (opencl_notequal_operation, opencl_less_operation)
4097 (opencl_gtr_operation, opencl_geq_operation)
4098 (opencl_leq_operation): New typedefs.
4099
e9677704
TT
41002021-03-08 Tom Tromey <tom@tromey.com>
4101
4102 * opencl-lang.c (opencl_value_cast): No longer static.
4103 * c-exp.h (opencl_cast_type_operation): New typedef.
4104
f403a4e4
TT
41052021-03-08 Tom Tromey <tom@tromey.com>
4106
4107 * f-exp.h (eval_op_f_allocated): Declare.
4108 (fortran_allocated_operation): New typedef.
4109 * f-lang.c (eval_op_f_allocated): No longer static.
4110
eb4c9271
TT
41112021-03-08 Tom Tromey <tom@tromey.com>
4112
4113 * f-lang.c (eval_op_f_associated): New functions.
4114 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4115 typedefs.
4116
58a76c72
TT
41172021-03-08 Tom Tromey <tom@tromey.com>
4118
4119 * f-lang.c (fortran_bound_1arg::evaluate)
4120 (fortran_bound_2arg::evaluate): New methods.
4121 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4122 New.
4123
2f98abe1
TT
41242021-03-08 Tom Tromey <tom@tromey.com>
4125
4126 * expop.h (class unop_addr_operation) <get_expression>: New
4127 method.
4128 * f-lang.c (fortran_undetermined::value_subarray)
4129 (fortran_undetermined::evaluate): New methods.
4130 (fortran_prepare_argument): New overload.
4131 * f-exp.h (class fortran_range_operation)
4132 (class fortran_undetermined): New classes.
4133
638fd74a
TT
41342021-03-08 Tom Tromey <tom@tromey.com>
4135
4136 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4137 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4138 method.
4139
a00b7254
TT
41402021-03-08 Tom Tromey <tom@tromey.com>
4141
4142 * expression.h (class operation) <evaluate_funcall>: New methods.
4143 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4144 (class var_value_operation) <evaluate_funcall>: New method.
4145 (class structop_base_operation) <evaluate_funcall>: New method.
4146 (class var_msym_value_operation) <evaluate_funcall>: New method.
4147 (class structop_member_base): New class.
4148 (class structop_member_operation): Derive from
4149 structop_member_base.
4150 (class structop_mptr_operation): Derive from
4151 structop_member_base.
4152 (class funcall_operation): New class.
4153 * eval.c (operation::evaluate_funcall)
4154 (var_value_operation::evaluate_funcall)
4155 (scope_operation::evaluate_funcall)
4156 (structop_member_base::evaluate_funcall)
4157 (structop_base_operation::evaluate_funcall): New methods.
4158
1c02eb30
TT
41592021-03-08 Tom Tromey <tom@tromey.com>
4160
4161 * expop.h (class array_operation): New.
4162 * eval.c (array_operation::evaluate_struct_tuple)
4163 (array_operation::evaluate): New methods.
4164
e4479080
TT
41652021-03-08 Tom Tromey <tom@tromey.com>
4166
4167 * expop.h (class adl_func_operation): New.
4168 * eval.c (adl_func_operation::evaluate): New method.
4169
95d49dfb
TT
41702021-03-08 Tom Tromey <tom@tromey.com>
4171
4172 * ada-lang.c (ada_unop_in_range): No longer static.
4173 * ada-exp.h (class ada_unop_range_operation): New.
4174
7c15d377
TT
41752021-03-08 Tom Tromey <tom@tromey.com>
4176
4177 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4178 No longer static.
4179 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4180 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4181
5019124b
TT
41822021-03-08 Tom Tromey <tom@tromey.com>
4183
4184 * expop.h (class logical_and_operation)
4185 (class logical_or_operation): New.
4186 * eval.c (logical_and_operation::evaluate)
4187 (logical_or_operation::evaluate): New methods.
4188 * ax-gdb.c (logical_and_operation::do_generate_ax)
4189 (logical_or_operation::do_generate_ax): New methods.
4190
2bc9b40c
TT
41912021-03-08 Tom Tromey <tom@tromey.com>
4192
4193 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4194 static.
4195 * m2-exp.h: New file.
4196
5947d337
TT
41972021-03-08 Tom Tromey <tom@tromey.com>
4198
4199 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4200 * rust-exp.h (class rust_aggregate_operation): New.
4201
e4407a20
TT
42022021-03-08 Tom Tromey <tom@tromey.com>
4203
4204 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4205 No longer static.
4206 * rust-exp.h (class rust_struct_anon): New.
4207 (class rust_structop): New.
4208
9db6b6dd
TT
42092021-03-08 Tom Tromey <tom@tromey.com>
4210
4211 * rust-lang.c (rust_range): No longer static.
4212 * rust-exp.h (class rust_range_operation): New.
4213
6ce1ad67
TT
42142021-03-08 Tom Tromey <tom@tromey.com>
4215
4216 * rust-lang.c (rust_subscript): No longer static.
4217 * rust-exp.h (class rust_subscript_operation): New.
4218
11dd3dce
TT
42192021-03-08 Tom Tromey <tom@tromey.com>
4220
4221 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4222 parameter.
4223 (rust_evaluate_subexp): Update.
4224 * rust-exp.h (class rust_unop_ind_operation): New.
4225
6fab4359
TT
42262021-03-08 Tom Tromey <tom@tromey.com>
4227
4228 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4229 longer static. Add "opcode" parameter.
4230 (rust_evaluate_subexp): Update.
4231 * rust-exp.h: New file.
4232
9dcd3e29
TT
42332021-03-08 Tom Tromey <tom@tromey.com>
4234
4235 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4236 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4237 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4238 (evaluate_subexp_f): Update.
4239 * f-exp.h: New file.
4240
fc715eb2
TT
42412021-03-08 Tom Tromey <tom@tromey.com>
4242
4243 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4244 * ada-exp.h (class ada_ternop_range_operation): New.
4245
cc6bd32e
TT
42462021-03-08 Tom Tromey <tom@tromey.com>
4247
4248 * ada-lang.c (ada_qual_operation::evaluate): New method.
4249 * ada-exp.h (class ada_qual_operation): New.
4250
42fecb61
TT
42512021-03-08 Tom Tromey <tom@tromey.com>
4252
4253 * ada-lang.c (ada_string_operation::evaluate): New method.
4254 * ada-exp.h (class ada_string_operation): New.
4255
03070ee9
TT
42562021-03-08 Tom Tromey <tom@tromey.com>
4257
4258 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4259 * ada-exp.h: New file.
4260
821e72d7
TT
42612021-03-08 Tom Tromey <tom@tromey.com>
4262
4263 * expop.h (class multi_subscript_operation): New.
4264 * eval.c (multi_subscript_operation::evaluate): New method.
4265
085734dd
TT
42662021-03-08 Tom Tromey <tom@tromey.com>
4267
4268 * eval.c (objc_msgcall_operation::evaluate): New method.
4269 * c-exp.h (class objc_msgcall_operation): New.
4270
e82a5afc
TT
42712021-03-08 Tom Tromey <tom@tromey.com>
4272
4273 * expop.h (class var_value_operation): New.
4274 * eval.c (var_value_operation::evaluate)
4275 (var_value_operation::evaluate_for_address)
4276 (var_value_operation::evaluate_with_coercion)
4277 (var_value_operation::evaluate_for_sizeof)
4278 (var_value_operation::evaluate_for_cast): New methods.
4279 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4280
d9ad79d8
TT
42812021-03-08 Tom Tromey <tom@tromey.com>
4282
4283 * expop.h (cxx_cast_ftype): New typedef.
4284 (cxx_cast_operation): New template.
4285 (dynamic_cast_operation, reinterpret_cast_operation): New
4286 typedefs.
4287
292382f4
TT
42882021-03-08 Tom Tromey <tom@tromey.com>
4289
4290 * expop.h (class unop_cast_type_operation): New.
4291 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4292 method.
4293
165a813a
TT
42942021-03-08 Tom Tromey <tom@tromey.com>
4295
4296 * expop.h (class unop_cast_operation): New.
4297 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4298
e5946e16
TT
42992021-03-08 Tom Tromey <tom@tromey.com>
4300
4301 * expop.h (class assign_modify_operation): New.
4302 * eval.c (eval_binop_assign_modify): No longer static.
4303 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4304
40786782
TT
43052021-03-08 Tom Tromey <tom@tromey.com>
4306
4307 * expop.h (class assign_operation): New.
4308 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4309
44b675c8
TT
43102021-03-08 Tom Tromey <tom@tromey.com>
4311
4312 * expop.h (class type_instance_operation): New.
4313 * eval.c (type_instance_operation::evaluate): New method.
4314
f6b42326
TT
43152021-03-08 Tom Tromey <tom@tromey.com>
4316
4317 * expop.h (class op_this_operation): New.
4318 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4319
cbc18219
TT
43202021-03-08 Tom Tromey <tom@tromey.com>
4321
4322 * expop.h (class unop_memval_operation)
4323 (class unop_memval_type_operation): New.
4324 * eval.c (eval_op_memval): No longer static.
4325 (unop_memval_operation::evaluate_for_address)
4326 (unop_memval_type_operation::evaluate_for_address)
4327 (unop_memval_operation::evaluate_for_sizeof)
4328 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4329 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4330 (unop_memval_type_operation::do_generate_ax): New methods.
4331
ae4bb61e
TT
43322021-03-08 Tom Tromey <tom@tromey.com>
4333
4334 * expop.h (class unop_alignof_operation): New.
4335 * eval.c (eval_op_alignof): No longer static.
4336
85d23bda
TT
43372021-03-08 Tom Tromey <tom@tromey.com>
4338
4339 * expop.h (class unop_sizeof_operation): New.
4340 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4341
14aff815
TT
43422021-03-08 Tom Tromey <tom@tromey.com>
4343
4344 * expop.h (class unop_addr_operation): New.
4345 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4346
929f3aa7
TT
43472021-03-08 Tom Tromey <tom@tromey.com>
4348
4349 * expop.h (class typeid_operation): New.
4350
0af8829e
TT
43512021-03-08 Tom Tromey <tom@tromey.com>
4352
4353 * expop.h (class decltype_operation): New.
4354
4efc574c
TT
43552021-03-08 Tom Tromey <tom@tromey.com>
4356
4357 * expop.h (class typeof_operation): New.
4358
5b5f5140
TT
43592021-03-08 Tom Tromey <tom@tromey.com>
4360
4361 * expop.h (class type_operation): New.
4362 * eval.c (eval_op_type): No longer static.
4363
876469ff
TT
43642021-03-08 Tom Tromey <tom@tromey.com>
4365
4366 * expop.h (class unop_ind_base_operation)
4367 (class unop_ind_operation): New.
4368 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4369 (unop_ind_base_operation::evaluate_for_address)
4370 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4371 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4372
6d89e296
TT
43732021-03-08 Tom Tromey <tom@tromey.com>
4374
4375 * expop.h (unop_incr_operation): New template.
4376 (preinc_operation, predec_operation, postinc_operation)
4377 (postdec_operation): New typedefs.
4378 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4379 (eval_op_postdec): No longer static.
4380
9307d17b
TT
43812021-03-08 Tom Tromey <tom@tromey.com>
4382
4383 * expop.h (unary_ftype): New typedef.
4384 (unop_operation, usual_ax_binop_operation): New templates.
4385 (unary_plus_operation, unary_neg_operation)
4386 (unary_complement_operation, unary_logical_not_operation): New
4387 typedefs.
4388 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4389 (eval_op_lognot): No longer static.
4390 * ax-gdb.c (gen_expr_unop): New function.
4391
ae64ba58
TT
43922021-03-08 Tom Tromey <tom@tromey.com>
4393
4394 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4395
d4eff4c1
TT
43962021-03-08 Tom Tromey <tom@tromey.com>
4397
4398 * expop.h (class repeat_operation): New.
4399 * eval.c (eval_op_repeat): No longer static. Remove "op"
4400 parameter.
4401 (evaluate_subexp_standard): Update.
4402 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4403
46916f2b
TT
44042021-03-08 Tom Tromey <tom@tromey.com>
4405
4406 * expop.h (class comparison_operation): New.
4407 (equal_operation, notequal_operation, less_operation)
4408 (gtr_operation, geq_operation, leq_operation): New typedefs.
4409 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4410 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4411
224d6424
TT
44122021-03-08 Tom Tromey <tom@tromey.com>
4413
4414 * expop.h (class subscript_operation): New.
4415 * eval.c (eval_op_subscript): No longer static.
4416
373907ff
TT
44172021-03-08 Tom Tromey <tom@tromey.com>
4418
4419 * expop.h (class binop_operation, class usual_ax_binop_operation):
4420 New.
4421 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4422 (div_operation, rem_operation, lsh_operation, rsh_operation)
4423 (bitwise_and_operation, bitwise_ior_operation)
4424 (bitwise_xor_operation): New typedefs.
4425 * eval.c (eval_op_binary): No longer static.
4426
5133d78b
TT
44272021-03-08 Tom Tromey <tom@tromey.com>
4428
4429 * expop.h (class sub_operation): New.
4430 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4431 (evaluate_subexp_standard): Update.
4432
a94323b6
TT
44332021-03-08 Tom Tromey <tom@tromey.com>
4434
4435 * expop.h (class add_operation): New.
4436 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4437 (evaluate_subexp_standard): Update.
4438
e51e26a0
TT
44392021-03-08 Tom Tromey <tom@tromey.com>
4440
4441 * expop.h (class concat_operation): New.
4442 * eval.c (eval_op_concat): No longer static. Remove "op"
4443 parameter.
4444 (evaluate_subexp_standard): Update.
4445
07f724a8
TT
44462021-03-08 Tom Tromey <tom@tromey.com>
4447
4448 * expop.h (class structop_member_operation)
4449 (class structop_mptr_operation): New.
4450 * eval.c (eval_op_member): No longer static.
4451
ab0609be
TT
44522021-03-08 Tom Tromey <tom@tromey.com>
4453
4454 * expop.h (class structop_ptr_operation): New.
4455 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4456 parameter.
4457
808b22cf
TT
44582021-03-08 Tom Tromey <tom@tromey.com>
4459
4460 * expop.h (class structop_base_operation)
4461 (class structop_operation): New.
4462 * eval.c (eval_op_structop_struct): No longer static.
4463
8cfd3e95
TT
44642021-03-08 Tom Tromey <tom@tromey.com>
4465
4466 * expop.h (class complex_operation): New.
4467
09db3700
TT
44682021-03-08 Tom Tromey <tom@tromey.com>
4469
4470 * eval.c (eval_op_objc_selector): No longer static.
4471 * c-exp.h (class objc_selector_operation): New.
4472
06dc61b9
TT
44732021-03-08 Tom Tromey <tom@tromey.com>
4474
4475 * eval.c: Include c-exp.h.
4476 * c-exp.h (class objc_nsstring_operation): New.
4477
72d0a711
TT
44782021-03-08 Tom Tromey <tom@tromey.com>
4479
4480 * c-lang.c (c_string_operation::evaluate): New method.
4481 * c-exp.h: New file.
4482
9186293f
TT
44832021-03-08 Tom Tromey <tom@tromey.com>
4484
4485 * expop.h (class ternop_cond_operation): New.
4486 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4487
1594e0bb
TT
44882021-03-08 Tom Tromey <tom@tromey.com>
4489
4490 * expop.h (class ternop_slice_operation): New.
4491 * eval.c (eval_op_ternop): No longer static.
4492
b50db09f
TT
44932021-03-08 Tom Tromey <tom@tromey.com>
4494
4495 * expop.h (class string_operation): New.
4496 * eval.c (eval_op_string): No longer static.
4497
e6e01e16
TT
44982021-03-08 Tom Tromey <tom@tromey.com>
4499
4500 * expop.h (class internalvar_operation): New.
4501 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4502
e6985c5e
TT
45032021-03-08 Tom Tromey <tom@tromey.com>
4504
4505 * expop.h (class bool_operation): New.
4506
55bdbff8
TT
45072021-03-08 Tom Tromey <tom@tromey.com>
4508
4509 * expop.h (class register_operation): New.
4510 * eval.c (eval_op_register): No longer static.
4511 * ax-gdb.c (register_operation::do_generate_ax): New method.
4512
247d935b
TT
45132021-03-08 Tom Tromey <tom@tromey.com>
4514
4515 * expop.h (class last_operation): New.
4516
17679395
TT
45172021-03-08 Tom Tromey <tom@tromey.com>
4518
4519 * expop.h (class func_static_var_operation): New.
4520 * eval.c (eval_op_func_static_var): No longer static.
4521
b5cc3923
TT
45222021-03-08 Tom Tromey <tom@tromey.com>
4523
4524 * expop.h (class var_entry_value_operation): New.
4525 * eval.c (eval_op_var_entry_value): No longer static.
4526
0c8effa3
TT
45272021-03-08 Tom Tromey <tom@tromey.com>
4528
4529 * expression.h (class operation) <set_outermost>: New method.
4530 * expop.h (class var_msym_value_operation): New.
4531 * eval.c (eval_op_var_msym_value): No longer static.
4532 (var_msym_value_operation::evaluate_for_address)
4533 (var_msym_value_operation::evaluate_for_sizeof)
4534 (var_msym_value_operation::evaluate_for_cast): New methods.
4535 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4536 method.
4537
d336c29e
TT
45382021-03-08 Tom Tromey <tom@tromey.com>
4539
4540 * expop.h (class long_const_operation): New.
4541 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4542
d5ab122c
TT
45432021-03-08 Tom Tromey <tom@tromey.com>
4544
4545 * expop.h (class scope_operation): New.
4546 * eval.c (eval_op_scope): No longer static.
4547 (scope_operation::evaluate_for_address): New method.
4548 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4549
cae26a0c
TT
45502021-03-08 Tom Tromey <tom@tromey.com>
4551
4552 * expprint.c (float_const_operation::dump): New method.
4553 * expop.h (float_data): New typedef.
4554 (class float_const_operation): New.
4555
75f9892d
TT
45562021-03-08 Tom Tromey <tom@tromey.com>
4557
4558 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4559 * ax-gdb.c (gen_expr_binop): New function.
4560 (gen_expr_structop): Likewise.
4561
de401988
TT
45622021-03-08 Tom Tromey <tom@tromey.com>
4563
4564 * expprint.c (expr::dump_for_expression): New functions.
4565 * expop.h (dump_for_expression): New overloads.
4566 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4567 Update.
4568
e2803273
TT
45692021-03-08 Tom Tromey <tom@tromey.com>
4570
4571 * expression.h (expr::operation): New class.
4572 (expr::make_operation): New function.
4573 (expr::operation_up): New typedef.
4574 * expop.h: New file.
4575 * eval.c (operation::evaluate_for_cast)
4576 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4577 New methods.
4578 * ax-gdb.c (operation::generate_ax): New method.
4579
e18c58f2
TT
45802021-03-08 Tom Tromey <tom@tromey.com>
4581
4582 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4583 (gen_expr_binop_rest): New overload.
4584
c0d7ed8c
TT
45852021-03-08 Tom Tromey <tom@tromey.com>
4586
4587 * eval.c (eval_multi_subscript): New function.
4588 (evaluate_subexp_standard): Use it.
4589
dd5fd283
TT
45902021-03-08 Tom Tromey <tom@tromey.com>
4591
4592 * ada-lang.c (ada_binop_exp): New function.
4593 (ada_evaluate_subexp): Use it.
4594
3848abd6
TT
45952021-03-08 Tom Tromey <tom@tromey.com>
4596
4597 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4598 parameters.
4599 (ada_evaluate_subexp): Use it.
4600
38dc70cf
TT
46012021-03-08 Tom Tromey <tom@tromey.com>
4602
4603 * ada-lang.c (ada_binop_minmax): New function.
4604 (ada_evaluate_subexp): Use it.
4605
b84564fc
TT
46062021-03-08 Tom Tromey <tom@tromey.com>
4607
4608 * ada-lang.c (ada_unop_atr): New function.
4609 (ada_evaluate_subexp): Use it.
4610
b467efaa
TT
46112021-03-08 Tom Tromey <tom@tromey.com>
4612
4613 * ada-lang.c (ada_binop_in_bounds): New function.
4614 (ada_evaluate_subexp): Use it.
4615
5ce19db8
TT
46162021-03-08 Tom Tromey <tom@tromey.com>
4617
4618 * ada-lang.c (ada_ternop_slice): New function.
4619 (ada_evaluate_subexp): Use it.
4620
214b13ac
TT
46212021-03-08 Tom Tromey <tom@tromey.com>
4622
4623 * ada-lang.c (ada_equal_binop): New function.
4624 (ada_evaluate_subexp): Use it.
4625
faa1dfd7
TT
46262021-03-08 Tom Tromey <tom@tromey.com>
4627
4628 * ada-lang.c (ada_mult_binop): New function.
4629 (ada_evaluate_subexp): Use it.
4630
d05e24e6
TT
46312021-03-08 Tom Tromey <tom@tromey.com>
4632
4633 * ada-lang.c (ada_abs): New function.
4634 (ada_evaluate_subexp): Use it.
4635
68c75735
TT
46362021-03-08 Tom Tromey <tom@tromey.com>
4637
4638 * ada-lang.c (ada_atr_size): New function.
4639 (ada_evaluate_subexp): Use it.
4640
020dbabe
TT
46412021-03-08 Tom Tromey <tom@tromey.com>
4642
4643 * ada-lang.c (ada_atr_tag): New function.
4644 (ada_evaluate_subexp): Use it.
4645
7efc87ff
TT
46462021-03-08 Tom Tromey <tom@tromey.com>
4647
4648 * ada-lang.c (ada_unop_in_range): New function.
4649 (ada_evaluate_subexp): Use it.
4650
82390ab8
TT
46512021-03-08 Tom Tromey <tom@tromey.com>
4652
4653 * ada-lang.c (ada_unop_neg): New function.
4654 (ada_evaluate_subexp): Use it.
4655
62d4bd94
TT
46562021-03-08 Tom Tromey <tom@tromey.com>
4657
4658 * ada-lang.c (eval_ternop_in_range): New function.
4659 (ada_evaluate_subexp): Use it.
4660
3634f669
TT
46612021-03-08 Tom Tromey <tom@tromey.com>
4662
4663 * opencl-lang.c (eval_opencl_assign): New function.
4664 (evaluate_subexp_opencl): Use it.
4665
5e80600e
TT
46662021-03-08 Tom Tromey <tom@tromey.com>
4667
4668 * eval.c (eval_op_objc_msgcall): New function.
4669 (evaluate_subexp_standard): Use it.
4670
fb5ba2ab
TT
46712021-03-08 Tom Tromey <tom@tromey.com>
4672
4673 * eval.c (eval_binop_assign_modify): New function.
4674 (evaluate_subexp_standard): Use it.
4675
a49881f7
TT
46762021-03-08 Tom Tromey <tom@tromey.com>
4677
4678 * m2-lang.c (eval_op_m2_subscript): New function.
4679 (evaluate_subexp_modula2): Use it.
4680
41bdced5
TT
46812021-03-08 Tom Tromey <tom@tromey.com>
4682
4683 * m2-lang.c (eval_op_m2_high): New function.
4684 (evaluate_subexp_modula2): Use it.
4685
13ea014a
TT
46862021-03-08 Tom Tromey <tom@tromey.com>
4687
4688 * eval.c (evaluate_subexp_for_address_base): New function.
4689 (evaluate_subexp_for_address): Use it.
4690 (evaluate_subexp_for_sizeof_base): New function.
4691 (evaluate_subexp_for_sizeof): Use it.
4692
1fa41fc7
TT
46932021-03-08 Tom Tromey <tom@tromey.com>
4694
4695 * rust-lang.c (eval_op_rust_structop): New function.
4696 (rust_evaluate_subexp): Use it.
4697
575cae23
TT
46982021-03-08 Tom Tromey <tom@tromey.com>
4699
4700 * rust-lang.c (eval_op_rust_struct_anon): New function.
4701 (rust_evaluate_subexp): Use it.
4702
05104233
TT
47032021-03-08 Tom Tromey <tom@tromey.com>
4704
4705 * rust-lang.c (eval_op_rust_array): New function.
4706 (rust_evaluate_subexp): Use it.
4707
6fa9831f
TT
47082021-03-08 Tom Tromey <tom@tromey.com>
4709
4710 * rust-lang.c (eval_op_rust_complement): New function.
4711 (rust_evaluate_subexp): Use it.
4712
d123f9e4
TT
47132021-03-08 Tom Tromey <tom@tromey.com>
4714
4715 * rust-lang.c (eval_op_rust_ind): New function.
4716 (rust_evaluate_subexp): Use it.
4717
984af2cb
TT
47182021-03-08 Tom Tromey <tom@tromey.com>
4719
4720 * rust-lang.c (rust_subscript): Change parameters.
4721 (rust_evaluate_subexp): Update.
4722
d148f803
TT
47232021-03-08 Tom Tromey <tom@tromey.com>
4724
4725 * rust-lang.c (rust_range): Change parameters.
4726 (rust_evaluate_subexp): Update.
4727
9cbd1c20
TT
47282021-03-08 Tom Tromey <tom@tromey.com>
4729
4730 * f-lang.c (eval_op_f_allocated): New function.
4731 (evaluate_subexp_f): Use it.
4732
3c18c49c
TT
47332021-03-08 Tom Tromey <tom@tromey.com>
4734
4735 * f-lang.c (fortran_require_array): New function.
4736 (evaluate_subexp_f): Use it.
4737
216f6fcb
TT
47382021-03-08 Tom Tromey <tom@tromey.com>
4739
4740 * f-lang.c (eval_op_f_kind): New function.
4741 (evaluate_subexp_f): Use it.
4742
00f2db6f
TT
47432021-03-08 Tom Tromey <tom@tromey.com>
4744
4745 * f-lang.c (eval_op_f_cmplx): New function.
4746 (evaluate_subexp_f): Use it.
4747
93b2b5fa
TT
47482021-03-08 Tom Tromey <tom@tromey.com>
4749
4750 * f-lang.c (eval_op_f_modulo): New function.
4751 (evaluate_subexp_f): Use it.
4752
9f1a1f3c
TT
47532021-03-08 Tom Tromey <tom@tromey.com>
4754
4755 * f-lang.c (eval_op_f_floor): New function.
4756 (evaluate_subexp_f): Use it.
4757
3dc41f3c
TT
47582021-03-08 Tom Tromey <tom@tromey.com>
4759
4760 * f-lang.c (eval_op_f_ceil): New function.
4761 (evaluate_subexp_f): Use it.
4762
e08109f2
TT
47632021-03-08 Tom Tromey <tom@tromey.com>
4764
4765 * f-lang.c (eval_op_f_mod): New function.
4766 (evaluate_subexp_f): Use it.
4767
cc05c68e
TT
47682021-03-08 Tom Tromey <tom@tromey.com>
4769
4770 * f-lang.c (eval_op_f_abs): New function.
4771 (evaluate_subexp_f): Use it.
4772
aec95807
TT
47732021-03-08 Tom Tromey <tom@tromey.com>
4774
4775 * eval.c (eval_op_type): New function.
4776 (evaluate_subexp_standard): Use it.
4777
a220ead5
TT
47782021-03-08 Tom Tromey <tom@tromey.com>
4779
4780 * eval.c (eval_op_postdec): New function.
4781 (evaluate_subexp_standard): Use it.
4782
abffe116
TT
47832021-03-08 Tom Tromey <tom@tromey.com>
4784
4785 * eval.c (eval_op_postinc): New function.
4786 (evaluate_subexp_standard): Use it.
4787
9e1361b7
TT
47882021-03-08 Tom Tromey <tom@tromey.com>
4789
4790 * eval.c (eval_op_predec): New file.
4791 (evaluate_subexp_standard): Use it.
4792
00f50884
TT
47932021-03-08 Tom Tromey <tom@tromey.com>
4794
4795 * eval.c (eval_op_preinc): New function.
4796 (evaluate_subexp_standard): Use it.
4797
3aef2a07
TT
47982021-03-08 Tom Tromey <tom@tromey.com>
4799
4800 * eval.c (eval_op_memval): New function.
4801 (evaluate_subexp_standard): Use it.
4802
acee9468
TT
48032021-03-08 Tom Tromey <tom@tromey.com>
4804
4805 * eval.c (eval_op_alignof): New function.
4806 (evaluate_subexp_standard): Use it.
4807
786f70ee
TT
48082021-03-08 Tom Tromey <tom@tromey.com>
4809
4810 * eval.c (eval_op_ind): New function.
4811 (evaluate_subexp_standard): Use it.
4812
24338fb9
TT
48132021-03-08 Tom Tromey <tom@tromey.com>
4814
4815 * eval.c (eval_op_lognot): New function.
4816 (evaluate_subexp_standard): Use it.
4817
1f09ec81
TT
48182021-03-08 Tom Tromey <tom@tromey.com>
4819
4820 * eval.c (eval_op_complement): New function.
4821 (evaluate_subexp_standard): Use it.
4822
606d105f
TT
48232021-03-08 Tom Tromey <tom@tromey.com>
4824
4825 * eval.c (eval_op_neg): New function.
4826 (evaluate_subexp_standard): Use it.
4827
39f288be
TT
48282021-03-08 Tom Tromey <tom@tromey.com>
4829
4830 * eval.c (eval_op_plus): New function.
4831 (evaluate_subexp_standard): Use it.
4832
eed70b1c
TT
48332021-03-08 Tom Tromey <tom@tromey.com>
4834
4835 * eval.c (eval_op_repeat): New function.
4836 (evaluate_subexp_standard): Use it.
4837
60cdd487
TT
48382021-03-08 Tom Tromey <tom@tromey.com>
4839
4840 * eval.c (eval_op_leq): New function.
4841 (evaluate_subexp_standard): Use it.
4842
96e3efd9
TT
48432021-03-08 Tom Tromey <tom@tromey.com>
4844
4845 * eval.c (eval_op_geq): New function.
4846 (evaluate_subexp_standard): Use it.
4847
1f78d732
TT
48482021-03-08 Tom Tromey <tom@tromey.com>
4849
4850 * eval.c (eval_op_gtr): New function.
4851 (evaluate_subexp_standard): Use it.
4852
6cad1349
TT
48532021-03-08 Tom Tromey <tom@tromey.com>
4854
4855 * eval.c (eval_op_less): New function.
4856 (evaluate_subexp_standard): Use it.
4857
1fcb3559
TT
48582021-03-08 Tom Tromey <tom@tromey.com>
4859
4860 * eval.c (eval_op_notequal): New function.
4861 (evaluate_subexp_standard): Use it.
4862
0cc96de8
TT
48632021-03-08 Tom Tromey <tom@tromey.com>
4864
4865 * eval.c (eval_op_equal): New function.
4866 (evaluate_subexp_standard): Use it.
4867
288d26bc
TT
48682021-03-08 Tom Tromey <tom@tromey.com>
4869
4870 * eval.c (eval_op_subscript): New function.
4871 (evaluate_subexp_standard): Use it.
4872
7cdcdd02
TT
48732021-03-08 Tom Tromey <tom@tromey.com>
4874
4875 * eval.c (eval_op_binary): New function.
4876 (evaluate_subexp_standard): Use it.
4877
d9790e22
TT
48782021-03-08 Tom Tromey <tom@tromey.com>
4879
4880 * eval.c (eval_op_sub): New function.
4881 (evaluate_subexp_standard): Use it.
4882
aedaf9ac
TT
48832021-03-08 Tom Tromey <tom@tromey.com>
4884
4885 * eval.c (eval_op_add): New function.
4886 (evaluate_subexp_standard): Use it.
4887
b7a96ed2
TT
48882021-03-08 Tom Tromey <tom@tromey.com>
4889
4890 * eval.c (eval_op_member): New function.
4891 (evaluate_subexp_standard): Use it.
4892
fb461aa3
TT
48932021-03-08 Tom Tromey <tom@tromey.com>
4894
4895 * eval.c (eval_op_structop_ptr): New function.
4896 (evaluate_subexp_standard): Use it.
4897
3e96c4fc
TT
48982021-03-08 Tom Tromey <tom@tromey.com>
4899
4900 * eval.c (eval_op_structop_struct): New function.
4901 (evaluate_subexp_standard): Use it.
4902
f960a617
TT
49032021-03-08 Tom Tromey <tom@tromey.com>
4904
4905 * eval.c (eval_op_ternop): New function.
4906 (evaluate_subexp_standard): Use it.
4907
5c2f201e
TT
49082021-03-08 Tom Tromey <tom@tromey.com>
4909
4910 * eval.c (eval_op_concat): New function.
4911 (evaluate_subexp_standard): Use it.
4912
f871bae1
TT
49132021-03-08 Tom Tromey <tom@tromey.com>
4914
4915 * eval.c (eval_op_objc_selector): New function.
4916 (evaluate_subexp_standard): Use it.
4917
14a1c64a
TT
49182021-03-08 Tom Tromey <tom@tromey.com>
4919
4920 * eval.c (eval_op_string): New function.
4921 (evaluate_subexp_standard): Use it.
4922
ffff730b
TT
49232021-03-08 Tom Tromey <tom@tromey.com>
4924
4925 * eval.c (eval_op_register): New function.
4926 (evaluate_subexp_standard): Use it.
4927
9b1d8af6
TT
49282021-03-08 Tom Tromey <tom@tromey.com>
4929
4930 * eval.c (eval_op_func_static_var): New function.
4931 (evaluate_subexp_standard): Use it.
4932
c0df9289
TT
49332021-03-08 Tom Tromey <tom@tromey.com>
4934
4935 * eval.c (eval_op_var_msym_value): New function.
4936 (evaluate_subexp_standard): Use it.
4937
50b98adc
TT
49382021-03-08 Tom Tromey <tom@tromey.com>
4939
4940 * eval.c (eval_op_var_entry_value): New function.
4941 (evaluate_subexp_standard): Use it.
4942
ea2d29f7
TT
49432021-03-08 Tom Tromey <tom@tromey.com>
4944
4945 * eval.c (eval_op_scope): New function.
4946 (evaluate_subexp_standard): Use it.
4947
01573d73
TT
49482021-03-06 Chernov Sergey <klen_s@mail.ru>
4949
4950 PR gdb/27528:
4951 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4952
9938d15a
TT
49532021-03-06 Tom Tromey <tom@tromey.com>
4954
4955 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4956 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4957 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4958 (locate_dwz_sections, dwz_search_other_debugdirs)
4959 (dwarf2_get_dwz_file): Move to dwz.c.
4960 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4961 read.h.
4962 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4963 (dwarf2_get_dwz_file): Move from read.c.
4964
18035655
TT
49652021-03-06 Tom Tromey <tom@tromey.com>
4966
4967 * debuginfod-support.h: Include scoped_fd.h.
4968
a7308ce0
TT
49692021-03-06 Tom Tromey <tom@tromey.com>
4970
4971 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4972 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4973 (get_abbrev_section_for_cu, read_attribute_value)
4974 (get_debug_line_section): Update.
4975 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4976
fbedd546
TT
49772021-03-06 Tom Tromey <tom@tromey.com>
4978
4979 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4980 method.
4981 * dwarf2/read.c (section_is_p): Remove.
4982 (dwarf2_per_bfd::locate_sections)
4983 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4984 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4985 (dwarf2_locate_common_dwp_sections)
4986 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4987 Update.
4988
c2a62a3d
TT
49892021-03-06 Tom Tromey <tom@tromey.com>
4990
4991 * xcoffread.c: Include sect-names.h.
4992 * symfile.h (struct dwarf2_section_names, struct
4993 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4994 * dwarf2/sect-names.h: New file, from symfile.h.
4995 * dwarf2/read.c: Include sect-names.h.
4996
4444f407
TT
49972021-03-06 Tom Tromey <tom@tromey.com>
4998
4999 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5000 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5001 (abbrev_table::read): Update.
5002 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5003 (struct abbrev_info): Reformat.
5004 <attrs>: Now an array.
5005 (struct abbrev_table) <alloc_abbrev>: Remove.
5006
dd99cf0c
WP
50072021-03-06 Weimin Pan <weimin.pan@oracle.com>
5008
5009 * ctfread.c (ctf_psymtab_add_enums): New function.
5010 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5011
844be3f2
WP
50122021-03-06 Weimin Pan <weimin.pan@oracle.com>
5013
5014 * ctfread.c (read_func_kind_type): Set up function arguments.
5015
b2668f28
AB
50162021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5017 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5020 includes.
5021 (riscv_csrset): New static global.
5022 (riscv_update_csrmap): New function.
5023 (riscv_iterate_over_regset_sections): Process CSRs.
5024
d782d24b
AB
50252021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5026
5027 * riscv-tdep.c (riscv_feature_name_csr): Define.
5028 (riscv_feature_name_cpu): Define.
5029 (riscv_feature_name_fpu): Define.
5030 (riscv_feature_name_virtual): Define.
5031 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5032 (riscv_freg_feature): Use riscv_feature_name_fpu.
5033 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5034 (riscv_csr_feature): Use riscv_feature_name_csr.
5035 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5036
fb8f3fc0
AB
50372021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5038 Craig Blackmore <craig.blackmore@embecosm.com>
5039
5040 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5041 (ALLDEPFILES): Add riscv-none-tdep.c.
5042 * configure: Regenerate.
5043 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5044 support.
5045 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5046 * elf-none-tdep.c: New file.
5047 * elf-none-tdep.h: New file.
5048 * riscv-none-tdep.c: New file.
5049
95ce627a
AB
50502021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5051 Andrew Burgess <andrew.burgess@embecosm.com>
5052
5053 * corelow.c: Add 'xml-tdesc.h' include.
5054 (core_target::read_description): Load the target description from
5055 the core file when possible.
5056 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5057 note.
5058 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5059 (gcore_elf_make_tdesc_note): New function.
5060 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5061 * linux-tdep.c (linux_make_corefile_notes): Add target description
5062 note.
5063
f3a5df7b
AB
50642021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5065
5066 * Makefile.in (SFILES): Add gcore-elf.c.
5067 (HFILES_NO_SRCDIR): Add gcore-elf.h
5068 * configure: Regenerate.
5069 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5070 support.
5071 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5072 (struct fbsd_collect_regset_section_cb_data): Delete.
5073 (fbsd_collect_regset_section_cb): Delete.
5074 (fbsd_collect_thread_registers): Delete.
5075 (struct fbsd_corefile_thread_data): Delete.
5076 (fbsd_corefile_thread): Delete.
5077 (fbsd_make_corefile_notes): Call
5078 gcore_elf_build_thread_register_notes instead of the now deleted
5079 FreeBSD code.
5080 * gcore-elf.c: New file, the content was moved here from
5081 linux-tdep.c, functions were renamed and given minor cleanup.
5082 * gcore-elf.h: New file.
5083 * gcore.c (gcore_find_signalled_thread): Moved here from
5084 linux-tdep.c and given a new name. Minor cleanups.
5085 * gcore.h (gcore_find_signalled_thread): Declare.
5086 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5087 (struct linux_collect_regset_section_cb_data): Delete.
5088 (linux_collect_regset_section_cb): Delete.
5089 (linux_collect_thread_registers): Delete.
5090 (linux_corefile_thread): Call
5091 gcore_elf_build_thread_register_notes.
5092 (find_signalled_thread): Delete.
5093 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5094
d1e93af6
SM
50952021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5096
5097 PR gdb/27147
5098 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5099 process_stratum_target parameter,
5100 sparc_store_inferior_registers): update callers.
5101 * sparc-nat.c (sparc_fetch_inferior_registers,
5102 sparc_store_inferior_registers): Add process_stratum_target
5103 parameter. Switch current thread before calling
5104 sparc_supply_gregset / sparc_collect_rwindow.
5105 (sparc_store_inferior_registers): Likewise.
5106 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5107 (sparc32obsd_collect_uthread): Likewise.
5108 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5109 Add assertion.
5110 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5111 sparc64obsd_supply_uthread): Add assertion.
5112
1178743e
TT
51132021-03-04 Tom Tromey <tromey@adacore.com>
5114
5115 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5116 (aux_add_nonlocal_symbols): Update.
5117 (ada_add_block_symbols): Change "found_sym" to bool.
5118
1bfa81ac
TT
51192021-03-03 Tom Tromey <tromey@adacore.com>
5120
5121 * ada-lang.c (ada_resolve_function): Update comment.
5122 (is_nonfunction, add_symbols_from_enclosing_procs)
5123 (remove_extra_symbols): Likewise.
5124 (struct match_data): Add constructor, initializers.
5125 (add_nonlocal_symbols): Remove memset.
5126 (aux_add_nonlocal_symbols): Update comment.
5127 (ada_add_block_renamings, add_nonlocal_symbols)
5128 (ada_add_all_symbols): Likewise.
5129 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5130
bbcdf9ab
TT
51312021-03-02 Tom Tromey <tromey@adacore.com>
5132
5133 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5134 (cast_to_gnat_encoded_fixed_point_type): Remove.
5135 (ada_value_cast, ada_evaluate_subexp): Update.
5136 (gnat_encoded_fixed_point_type_info)
5137 (ada_is_gnat_encoded_fixed_point_type)
5138 (gnat_encoded_fixed_point_delta)
5139 (gnat_encoded_fixed_point_scaling_factor): Remove.
5140 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5141 (gnat_encoded_fixed_point_delta)
5142 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5143 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5144 (ada_print_type): Update.
5145 * ada-valprint.c (ada_value_print_num): Update.
5146 * dwarf2/read.c (ada_get_gnat_encoded_number)
5147 (ada_get_gnat_encoded_ratio): New functions.
5148 (finish_fixed_point_type): Use them. Add parameters.
5149 (GNAT_FIXED_POINT_SUFFIX): New define.
5150 (gnat_encoded_fixed_point_type_info): New function.
5151 (read_base_type): Handle gnat encodings.
5152
5f9febe0
TT
51532021-03-02 Tom Tromey <tromey@adacore.com>
5154
5155 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5156 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5157 std::string.
5158 (GROW_VECT): Remove.
5159 (grow_vect): Remove.
5160
d1183b06
TT
51612021-03-02 Tom Tromey <tromey@adacore.com>
5162
5163 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5164 * ada-lang.c (resolve_subexp): Update.
5165 (ada_resolve_function): Accept a vector.
5166 (is_nonfunction, add_defn_to_vec)
5167 (add_symbols_from_enclosing_procs): Likewise.
5168 (num_defns_collected, defns_collected): Remove.
5169 (remove_extra_symbols): Return a vector.
5170 (remove_irrelevant_renamings): Return void.
5171 (ada_add_local_symbols): Accept a vector.
5172 (struct match_data) <obstackp>: Remove.
5173 <resultp>: New member.
5174 (aux_add_nonlocal_symbols): Update.
5175 (ada_add_block_renamings, add_nonlocal_symbols)
5176 (ada_add_all_symbols): Accept a vector.
5177 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5178 vector.
5179 (ada_lookup_symbol): Update.
5180 (ada_add_block_symbols): Accept a vector.
5181 (get_var_value, iterate_over_symbols): Update.
5182 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5183 Update.
5184
886d459f
TT
51852021-03-02 Tom Tromey <tromey@adacore.com>
5186
5187 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5188
bdcccc56
TT
51892021-03-02 Tom Tromey <tromey@adacore.com>
5190
5191 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5192 auto_obstack.
5193 <root>: Initialize.
5194 (ada_pspace_data): Remove destructor.
5195 <sym_cache>: Now a unique_ptr.
5196 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5197 (ada_get_symbol_cache): Use 'new'.
5198 (ada_clear_symbol_cache): Rewrite.
5199
1228719f
TT
52002021-03-02 Tom Tromey <tromey@adacore.com>
5201
5202 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5203 is null.
5204
bb3a4efe
LS
52052021-02-27 Lancelot Six <lsix@lancelotsix.com>
5206
5207 PR gdb/27393
5208 * source.c (add_path): Skip empty dirnames.
5209
26b43ca6 52102021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5211
5212 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5213 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5214
dffdd8b5
SM
52152021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5216
5217 PR gdb/26861
5218 * target.c (target_mourn_inferior): Only compare pids in
5219 target_mourn_inferior.
5220
64d38fdd
JM
52212021-02-25 Jan Matyas <jmatyas@codasip.com>
5222
5223 PR gdb/26819
5224 * remote.c (remote_target::start_remote): Ensure the single
5225 thread, automatically added for remote targets without the
5226 concept of threading, is initially in set to the "resumed"
5227 state.
5228 * remote.c (remote_target::add_current_inferior_and_thread):
5229 Add return value - return the main thread.
5230
2450ad54
JV
52312021-02-25 Jan Vrany <jan.vrany@labware.com>
5232
5233 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5234 (mi_tsv_created): Likewise.
5235 (mi_tsv_deleted): Likewise.
5236
30c80d88
TV
52372021-02-25 Tom de Vries <tdevries@suse.de>
5238
5239 PR symtab/27354
5240 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5241 section_kind for &dwo_file->sections.info.
5242
68337b8b
AB
52432021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5244
5245 PR fortran/26155
5246 * f-lang.c (fortran_argument_convert): Delete declaration.
5247 (fortran_prepare_argument): New function.
5248 (evaluate_subexp_f): Move logic to new function
5249 fortran_prepare_argument.
5250
faeb9f13
AB
52512021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * f-exp.y (f77_keywords): Add 'associated'.
5254 * f-lang.c (fortran_associated): New function.
5255 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5256 (operator_length_f): Likewise.
5257 (print_unop_or_binop_subexp_f): New function.
5258 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5259 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5260 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5261 (operator_check_f): Likewise.
5262 * std-operator.def: Add FORTRAN_ASSOCIATED.
5263
170f4b23
AB
52642021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5265
5266 * f-exp.y (fortran_operators): Add ".xor.".
5267
aa659cfa
TV
52682021-02-24 Tom de Vries <tdevries@suse.de>
5269
5270 PR symtab/27336
5271 * dwarf2/attribute.c (attribute::form_is_signed): New function
5272 factored out of ...
5273 * dwarf2/attribute.h (attribute::as_signed): ... here.
5274 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5275 (attribute::form_is_signed): Declare.
5276 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5277 for DW_AT_decl_file.
5278
268c77c1
KB
52792021-02-24 Kevin Buettner <kevinb@redhat.com>
5280
5281 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5282 order for <sys/ptrace.h> and <asm/ptrace.h>.
5283
665af52e
KB
52842021-02-24 Kevin Buettner <kevinb@redhat.com>
5285
5286 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5287 <sys/ptrace.h>.
5288
dd80d750
AB
52892021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5290
5291 * exec.c (set_section_command): Move variable declarations into
5292 the function body, and use std::string instead of a fixed size
5293 buffer.
5294
336aa7b7
AB
52952021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5296
5297 * exec.c (exec_target::get_section_table): Delete member function.
5298 (section_table_read_available_memory): Use current_top_target, not
5299 just the exec_ops target.
5300 * target-delegates.c: Regenerate.
5301 * target.c (default_get_section_table): New function.
5302 * target.h (target_ops::get_section_table): Change default
5303 behaviour to call default_get_section_table.
5304 (default_get_section_table): Declare.
5305
02f7d26b
AB
53062021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5307
5308 * exec.c (exec_target::close): Call new clear_target_sections
5309 function.
5310 (program_space::add_target_sections): Update name of member
5311 variable.
5312 (program_space::add_target_sections): Update name of member
5313 variable.
5314 (program_space::remove_target_sections): Likewise.
5315 (exec_one_fork): Use new target_sections member function.
5316 (exec_target::get_section_table): Likewise.
5317 (exec_target::files_info): Likewise.
5318 (set_section_command): Likewise.
5319 (exec_set_section_address): Likewise.
5320 (exec_target::has_memory): Use new target_sections member
5321 function.
5322 * progspace.h (program_space::clear_target_sections): New member
5323 function.
5324 (program_space::target_sections): Rename member variable to
5325 m_target_sections, replace with a new member function.
5326 (program_space::m_target_sections): New member variable.
5327 * solib-dsbt.c (scan_dyntag): Use new member function.
5328 * solib-svr4.c (scan_dyntag): Likewise.
5329
19cf757a
AB
53302021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5331
5332 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5333 return type const.
5334 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5335 (section_table_read_available_memory): Make local const.
5336 (exec_target::xfer_partial): Make local const.
5337 (print_section_info): Make parameter const.
5338 * gdb/exec.h (print_section_info): Likewise.
5339 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5340 const.
5341 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5342 Likewise.
5343 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5344 Likewise.
5345 * gdb/s390-tdep.c (s390_load): Likewise.
5346 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5347 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5348 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5349 Rename to...
5350 (target_debug_print_const_target_section_table_p): ...this.
5351 * gdb/target-delegates.c: Regenerate.
5352 * gdb/target.c (target_get_section_table): Make return type const.
5353 (target_section_by_addr): Likewise. Also make some locals const.
5354 (memory_xfer_partial_1): Make some locals const.
5355 * gdb/target.h (struct target_ops) <get_section_table>: Make
5356 return type const.
5357 (target_section_by_addr): Likewise.
5358 (target_get_section_table): Likewise.
5359
02a79309
AB
53602021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5361
5362 * NEWS: Mention new 'maint info target-sections' command.
5363 * maint.c (maintenance_info_target_sections): New function.
5364 (_initialize_maint_cmds): Register new command.
5365
895b7b4e
AB
53662021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5367
5368 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5369 (riscv_features_from_bfd): ...this. Change parameter type to
5370 'bfd*', and update as required.
5371 (riscv_find_default_target_description): Update call to
5372 riscv_features_from_bfd. Select a default xlen based on
5373 info.bfd_arch_info.
5374 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5375
bc3c0632
AB
53762021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5377
5378 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5379 dynamic types in UNOP_IND.
5380
08ac5771
SM
53812021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5382
5383 PR gdb/26828
5384 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5385 Instantiate queue.
5386 (~dwarf2_queue_guard): Clear queue.
5387 (queue_comp_unit): Assert that queue is
5388 instantiated.
5389 (process_queue): Adjust.
5390 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5391
616c069a
SM
53922021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5393
5394 PR gdb/26828
5395 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5396 to decide whether or not to enqueue it for expansion.
5397 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5398 after calling maybe_queue_comp_unit.
5399
897608ed
SM
54002021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5401
5402 * linux-nat.c (linux_nat_filter_event): Return void.
5403
15908a11
TT
54042021-02-22 Tom Tromey <tromey@adacore.com>
5405
5406 * solib-svr4.c (enable_break): Update.
5407 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5408 type.
5409 (target_bfd_reopen): Change parameter type.
5410 * bfd-target.h (target_bfd_reopen): Change parameter type.
5411
f53fc427
SM
54122021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5413
5414 * thread.c (add_thread_silent): Add assert.
5415 (find_thread_ptid): Add assert.
5416
de146e19
SM
54172021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5418
5419 PR gdb/27435
5420 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5421 (target_unpush_up): Likewise.
5422 * procfs.c (procfs_target::attach): Push target early. Use
5423 target_unpush_up to unpush target in case of error.
5424 * target.h (struct target_unpusher): Move here.
5425 (target_unpush_up): Likewise.
5426
8488c357
KB
54272021-02-19 Kevin Buettner <kevinb@redhat.com>
5428
5429 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5430 (which in turn includes <gnulib/config.h>) before include
5431 of <signal.h>.
5432
5a9f5403
NC
54332021-02-19 Nelson Chu <nelson.chu@sifive.com>
5434
5435 PR 27158
5436 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5437 (decode_j_type_insn): Likewise.
5438 (decode_cj_type_insn): Likewise.
5439 (decode_b_type_insn): Likewise.
5440 (decode): Likewise.
5441
26f53cd3
TT
54422021-02-18 Tom Tromey <tom@tromey.com>
5443
5444 * expression.h (struct expression) <evaluate>: Declare method.
5445 * eval.c (evaluate_subexp): Simplify.
5446 (expression::evaluate): New method.
5447 (evaluate_expression, evaluate_type): Use expression::evaluate.
5448
6a780b67
KB
54492021-02-17 Kevin Buettner <kevinb@redhat.com>
5450
5451 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5452 to accessing it.
5453 (ada_lookup_name_info): Likewise.
5454
adeab0c5
MF
54552021-02-13 Mike Frysinger <vapier@gentoo.org>
5456
5457 * aclocal.m4: Regenerate.
5458
089436f7
TV
54592021-02-12 Tom de Vries <tdevries@suse.de>
5460
5461 PR threads/26228
5462 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5463 (lin_thread_signals): New static var.
5464 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5465 New function.
5466 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5467 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5468 Declare.
5469 * linux-thread-db.c (check_thread_signals): Use
5470 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5471
96df3e28
AB
54722021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5473
5474 * f-exp.y (f77_keywords): Add allocated.
5475 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5476 (operator_length_f): Likewise.
5477 (print_subexp_f): Likewise.
5478 (dump_subexp_body_f): Likewise.
5479 (operator_check_f): Likewise.
5480 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5481
05f68f52
TV
54822021-02-11 Tom de Vries <tdevries@suse.de>
5483
5484 PR symtab/27353
5485 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5486 Return true for DW_FORM_strx.
5487
b260f8d6
TT
54882021-02-11 Tom Tromey <tromey@adacore.com>
5489
5490 PR gdb/27383:
5491 * parse.c (write_exp_symbol_reference): Write sym.block.
5492
bf3386f0
AB
54932021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5494
5495 * NEWS: Mention changes to 'maint info sections'.
5496 * maint.c (match_substring): Return a bool, fix whitespace issue.
5497 (struct single_bfd_flag_info): New struct.
5498 (bfd_flag_info): New static global.
5499 (match_bfd_flags): Return a bool, use bfd_flag_info.
5500 (print_bfd_flags): Use bfd_flag_info.
5501 (maint_print_section_info): Delete trailing whitespace.
5502 (struct maint_info_sections_opts): New struct.
5503 (maint_info_sections_option_defs): New static global.
5504 (maint_info_sections_completer): New function.
5505 (maintenance_info_sections): Use option parsing mechanism.
5506 (_initialize_maint_cmds): Update command help text for 'maint info
5507 sections' and register a command completer.
5508
4790db14
AB
55092021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5510
5511 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5512 functionality merged into...
5513 (maint_print_all_sections): ...this new function.
5514 (maintenance_info_sections): Make use of maint_print_all_sections,
5515 allow all objects to be printed even where there's no executable.
5516
1db66e34
AB
55172021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5518
5519 * breakpoint.c (resolve_sal_pc): Make use of
5520 bound_minimal_symbol::obj_section.
5521 * maint.c (maintenance_translate_address): Likewise.
5522 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5523 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5524 member function.
5525 * printcmd.c (info_address_command): Make use of
5526 bound_minimal_symbol::obj_section.
5527
18b8df43
AM
55282021-02-11 Alan Modra <amodra@gmail.com>
5529
5530 * arm-symbian-tdep.c: Delete.
5531 * NEWS: Mention arm-symbian removal.
5532 * Makefile.in: Remove arm-symbian-tdep entries.
5533 * configure.tgt: Remove arm*-*-symbianelf*.
5534 * doc/gdb.texinfo: Remove mention of SymbianOS.
5535 * osabi.c (gdb_osabi_names): Remove "Symbian".
5536 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5537 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5538 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5539 handling.
5540 * testsuite/gdb.base/dup-sect.exp: Likewise.
5541 * testsuite/gdb.base/long_long.exp: Likewise.
5542 * testsuite/gdb.base/solib-weak.exp: Likewise.
5543 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5544 * testsuite/gdb.python/py-section-script.exp: Likewise.
5545 * testsuite/lib/dwarf.exp: Likewise.
5546 * testsuite/lib/gdb.exp: Likewise.
5547
e92c8eb8
AB
55482021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5551 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5552 (one_or_two_args): New pattern.
5553 (f77_keywords): Add lbound and ubound.
5554 * f-lang.c (fortran_bounds_all_dims): New function.
5555 (fortran_bounds_for_dimension): New function.
5556 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5557 (operator_length_f): Likewise.
5558 (print_subexp_f): Likewise.
5559 (dump_subexp_body_f): Likewise.
5560 (operator_check_f): Likewise.
5561 * std-operator.def (FORTRAN_LBOUND): Define.
5562 (FORTRAN_UBOUND): Define.
5563
a52d653e
AB
55642021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5565
5566 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5567 and set_section_index member functions where appropriate.
5568 * coffread.c (coff_symtab_read): Likewise.
5569 (process_coff_symbol): Likewise.
5570 * ctfread.c (set_symbol_address): Likewise.
5571 * dwarf2/read.c (add_partial_symbol): Likewise.
5572 (var_decode_location): Likewise.
5573 * language.c: Likewise.
5574 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5575 (compact_minimal_symbols): Likewise.
5576 (minimal_symbol_upper_bound): Likewise.
5577 * objfiles.c (relocate_one_symbol): Likewise.
5578 * psympriv.h (partial_symbol::obj_section): Likewise.
5579 (partial_symbol::address): Likewise.
5580 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5581 * stabsread.c (scan_file_globals): Likewise.
5582 * symmisc.c (dump_msymbols): Likewise.
5583 * symtab.c (general_symbol_info::obj_section): Likewise.
5584 (fixup_section): Likewise.
5585 (get_msymbol_address): Likewise.
5586 * symtab.h (general_symbol_info::section): Rename to...
5587 (general_symbol_info::m_section): ...this.
5588 (general_symbol_info::set_section_index): New member function.
5589 (general_symbol_info::section_index): Likewise.
5590 (SYMBOL_SECTION): Delete.
5591 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5592 set_section_index member functions where appropriate.
5593 (MSYMBOL_SECTION): Delete.
5594 (symbol::symbol): Update to initialize 'm_section'.
5595 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5596 (process_xcoff_symbol): Likewise.
5597
ebbc3a7d
AB
55982021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5599
5600 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5601 MSYMBOL_OBJ_SECTION.
5602 * findvar.c (language_defn::read_var_value): Likewise.
5603 * infcmd.c (jump_command): Likewise.
5604 * linespec.c (minsym_found): Likewise.
5605 * maint.c (maintenance_translate_address): Likewise.
5606 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5607 (minimal_symbol_upper_bound): Likewise.
5608 * parse.c (find_minsym_type_and_address): Likewise.
5609 (operator_check_standard): Likewise.
5610 * printcmd.c (info_address_command): Likewise.
5611 * symmisc.c (dump_msymbols): Likewise.
5612 (print_symbol): Likewise.
5613 * symtab.c (general_symbol_info::obj_section): Define new
5614 function.
5615 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5616 (find_pc_sect_compunit_symtab): Likewise.
5617 (find_function_start_sal): Likewise.
5618 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5619 MSYMBOL_OBJ_SECTION.
5620 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5621 function.
5622 (SYMBOL_OBJ_SECTION): Delete.
5623 (MSYMBOL_OBJ_SECTION): Delete.
5624
9bb305b3
TT
56252021-02-09 Tom Tromey <tom@tromey.com>
5626
5627 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5628
cf2b2075
TV
56292021-02-09 Tom de Vries <tdevries@suse.de>
5630
5631 PR symtab/27341
5632 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5633 construct an array type. Add assert to ensure that element_type is
5634 not being modified.
5635
03642b71
AB
56362021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5637
5638 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5639 (gcore_collect_regset_section_cb): Delete.
5640 (gcore_collect_thread_registers): Delete.
5641 (gcore_build_thread_register_notes): Delete.
5642 (gcore_find_signalled_thread): Delete.
5643 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5644 'gdbarch' and 'thread_info' declarations.
5645 (gcore_build_thread_register_notes): Delete declaration.
5646 (gcore_find_signalled_thread): Likewise.
5647 * fbsd-tdep.c: Remove 'gcore.h' include.
5648 (struct fbsd_collect_regset_section_cb_data): New struct.
5649 (fbsd_collect_regset_section_cb): New function.
5650 (fbsd_collect_thread_registers): New function.
5651 (struct fbsd_corefile_thread_data): New struct.
5652 (fbsd_corefile_thread): New function.
5653 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5654 * linux-tdep.c: Remove 'gcore.h' include.
5655 (struct linux_collect_regset_section_cb_data): New struct.
5656 (linux_collect_regset_section_cb): New function.
5657 (linux_collect_thread_registers): New function.
5658 (linux_corefile_thread): Call Linux specific code.
5659 (find_signalled_thread): New function.
5660 (linux_make_corefile_notes): Call find_signalled_thread.
5661
f73e424f
TT
56622021-02-09 Tom Tromey <tromey@adacore.com>
5663
5664 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5665 not_lval value.
5666 * value.c (value_contents_copy_raw): Now static.
5667 * value.h (value_contents_copy_raw): Don't declare.
5668
a4f0544b
TT
56692021-02-09 Tom Tromey <tromey@adacore.com>
5670
5671 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5672 fields.
5673
9b3e4b5d
SV
56742021-02-08 Shahab Vahedi <shahab@synopsys.com>
5675
5676 PR tdep/27369
5677 * arc-linux-tdep.c (handle_atomic_sequence): New.
5678 (arc_linux_software_single_step): Call handle_atomic_sequence().
5679
29db1eb3
AB
56802021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5681
5682 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5683 function.
5684 (REQUIRE_WINDOW): Call is_valid member function.
5685 (REQUIRE_WINDOW_FOR_SETTER): New define.
5686 (gdbpy_tui_is_valid): Call is_valid member function.
5687 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5688 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5689 tui_active too.
5690 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5691 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5692 the function.
5693
e0c23e11
AB
56942021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5697 for the title is not nullptr.
5698
1cf23996
AB
56992021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5700
5701 * tui-layout.c (saved_tui_windows): Delete.
5702 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5703 call new get_windows member function instead.
5704 (tui_get_window_by_name): Check in tui_windows.
5705 (tui_layout_window::apply): Don't add to tui_windows.
5706 * tui-layout.h (tui_layout_base::get_windows): New member function.
5707 (tui_layout_window::get_windows): Likewise.
5708 (tui_layout_split::get_windows): Likewise.
5709
a53a2657
AB
57102021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5711
5712 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5713 of the window objects.
5714
2708dbbd
AB
57152021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5716
5717 * python/python.c (gdbpy_print_stack): Reformat an error message.
5718
cd074e04
AB
57192021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * tui/tui-interp.c (tui_command_line_handler): New function.
5722 (tui_interp::resume): Register tui_command_line_handler as the
5723 input_handler.
5724 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5725 function.
5726 (tui_getc_1): Delete handling of '\n' and '\r'.
5727 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5728
4cf28e91
HD
57292021-02-07 Hannes Domani <ssbssa@yahoo.de>
5730
5731 * tui/tui-regs.c (tui_data_window::display_registers_from):
5732 Mark invisible register sub windows.
5733 (tui_data_window::check_register_values): Ignore invisible
5734 register sub windows.
5735
3537bc23
HD
57362021-02-07 Hannes Domani <ssbssa@yahoo.de>
5737
5738 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5739 n_spaces with a negative value.
5740
5fc2d6aa
HD
57412021-02-07 Hannes Domani <ssbssa@yahoo.de>
5742
5743 * tui/tui-regs.c (tui_data_window::display_registers_from):
5744 Add refresh_window call.
5745
83962f83
HD
57462021-02-07 Hannes Domani <ssbssa@yahoo.de>
5747
5748 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5749
0110ec82
SM
57502021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5751
5752 * symmisc.c (std_in, std_out, std_err): Remove.
5753 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5754
7c6944ab
TV
57552021-02-05 Tom de Vries <tdevries@suse.de>
5756
5757 PR breakpoints/27330
5758 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5759 glibc object file has debug info.
5760
e77b0004
TV
57612021-02-05 Tom de Vries <tdevries@suse.de>
5762
5763 PR symtab/27333
5764 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5765
0e857c82
TV
57662021-02-05 Tom de Vries <tdevries@suse.de>
5767
5768 PR breakpoints/27313
5769 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5770 syscall numbers.
5771
bdfea17e
TT
57722021-02-05 Tom Tromey <tom@tromey.com>
5773
5774 * compile/compile-c-support.c (get_compile_context)
5775 (c_get_compile_context, cplus_get_compile_context): Change return
5776 type.
5777 * language.c (language_defn::get_compile_instance): New method.
5778 * language.h (language_defn::get_compile_instance): Change return
5779 type. No longer inline.
5780 * c-lang.c (c_language::get_compile_instance): Change return type.
5781 (cplus_language::get_compile_instance): Change return type.
5782 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5783 Change return type.
5784 * compile/compile.c (compile_to_object): Update.
5785
1b30f421
TT
57862021-02-05 Tom Tromey <tom@tromey.com>
5787
5788 * parser-defs.h (write_exp_symbol_reference): Declare.
5789 * parse.c (write_exp_symbol_reference): New function.
5790 * p-exp.y (variable): Use write_exp_symbol_reference.
5791 * m2-exp.y (variable): Use write_exp_symbol_reference.
5792 * f-exp.y (variable): Use write_exp_symbol_reference.
5793 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5794 * c-exp.y (variable): Use write_exp_symbol_reference.
5795
ae710496
TV
57962021-02-05 Tom de Vries <tdevries@suse.de>
5797
5798 PR exp/27265
5799 * valarith.c (complex_binop): Throw an error if complex type can't
5800 be created.
5801
d3b54e63
TV
58022021-02-05 Tom de Vries <tdevries@suse.de>
5803
5804 PR symtab/27307
5805 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5806 return.
5807
fc9a13fb
TV
58082021-02-05 Tom de Vries <tdevries@suse.de>
5809
5810 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5811
04b4939b
MF
58122021-02-04 Mike Frysinger <vapier@gentoo.org>
5813
5814 * configure.tgt (riscv*-*-*): Set gdb_sim.
5815
6ff267e1
SM
58162021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5817
5818 * target.c (target_is_non_stop_p): Return bool.
5819 * target.h (target_is_non_stop_p): Return bool.
5820
fdbc5215
SM
58212021-02-04 Simon Marchi <simon.marchi@efficios.com>
5822
5823 * record-full.c (record_full_async_inferior_event_handler):
5824 Don't clear async event handler.
5825 (record_full_base_target::wait): Clear async event handler at
5826 beginning.
5827
85d3ad8e
SM
58282021-02-04 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * record-btrace.c (record_btrace_handle_async_inferior_event):
5831 Don't clear async event handler.
5832 (record_btrace_target::wait): Clear async event handler at
5833 beginning.
5834
baa8575b
SM
58352021-02-04 Simon Marchi <simon.marchi@efficios.com>
5836
5837 * remote.c (remote_target::wait): Clear async event handler at
5838 beginning, mark if needed at the end.
5839 (remote_async_inferior_event_handler): Don't set or clear async
5840 event handler.
5841
6b36ddeb
SM
58422021-02-04 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * async-event.h (async_event_handler_func): Add documentation.
5845 * async-event.c (check_async_event_handlers): Don't clear
5846 async_event_handler ready flag.
5847 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5848 flag.
5849 * record-btrace.c (record_btrace_handle_async_inferior_event):
5850 Likewise.
5851 * record-full.c (record_full_async_inferior_event_handler):
5852 Likewise.
5853 * remote-notif.c (remote_async_get_pending_events_handler):
5854 Likewise.
5855 * remote.c (remote_async_inferior_event_handler): Likewise.
5856
72d383bb
SM
58572021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * infrun.c (handle_inferior_event): Move stop_soon variable to
5860 inner scope.
5861
408f6686
PA
58622021-02-03 Pedro Alves <pedro@palves.net>
5863
5864 * infcmd.c (detach_command): Hold strong reference to target, and
5865 if all-stop on entry, restart threads on exit.
5866 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5867 (restart_stepped_thread): ... this new function. Also handle
5868 trap_expected.
5869 (restart_after_all_stop_detach): New function.
5870 * infrun.h (restart_after_all_stop_detach): Declare.
5871
ac7d717c
PA
58722021-02-03 Pedro Alves <pedro@palves.net>
5873
5874 * infrun.c (struct step_over_info): Initialize fields.
5875 (prepare_for_detach): Handle ongoing in-line step over.
5876
e87f0fe8
PA
58772021-02-03 Pedro Alves <pedro@palves.net>
5878
5879 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5880 here...
5881 * remote.c (remote_target::remote_detach_1): ... and here ...
5882 * target.c (target_detach): ... instead of here.
5883 * target.h (target_ops::detach): Add comment.
5884
8ff53139
PA
58852021-02-03 Pedro Alves <pedro@palves.net>
5886
5887 * infrun.c (struct wait_one_event): Move higher up.
5888 (prepare_for_detach): Abort in-progress displaced steps instead of
5889 letting them complete.
5890 (handle_one): If the inferior is detaching, don't add the thread
5891 back to the global step-over chain.
5892 (restart_threads): Don't restart threads if detaching.
5893 (handle_signal_stop): Remove inferior::detaching reference.
5894
91475068
PA
58952021-02-03 Pedro Alves <pedro@palves.net>
5896
5897 * infrun.c (prepare_for_detach): Don't release scoped_restore
5898 before returning.
5899
d758e62c
PA
59002021-02-03 Pedro Alves <pedro@palves.net>
5901
5902 * infrun.c (handle_one): New function, factored out from ...
5903 (stop_all_threads): ... here.
5904
b0083dd7
PA
59052021-02-03 Pedro Alves <pedro@palves.net>
5906
5907 * remote.c (remote_notif_stop_ack): Don't error out on
5908 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5909 (remote_target::discard_pending_stop_replies): Don't delete
5910 in-flight notification; instead, clear its contents.
5911
621cc310
PA
59122021-02-03 Pedro Alves <pedro@palves.net>
5913
5914 * remote.c (extended_remote_target::attach): Set target async in
5915 the target-non-stop path too.
5916
2ab76a18
PA
59172021-02-03 Pedro Alves <pedro@palves.net>
5918
5919 PR gdb/27055
5920 * infrun.c (handle_signal_stop): Move main context_switch call
5921 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5922
2e3773ff
LS
59232021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5924
5925 * NEWS (Changed commands): Add entry for the behavior change of
5926 the inferior command.
5927 * inferior.c (inferior_command): When no argument is given to the
5928 inferior command, display info about the currently selected
5929 inferior.
5930
e57933dc
SM
59312021-02-02 Simon Marchi <simon.marchi@efficios.com>
5932
5933 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5934 a sect_offset.
5935 (read_attribute_reprocess): Adjust.
5936
2b0c7f41
SM
59372021-02-02 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5940 <gnu_ranges_base>: ... this...
5941 <rnglists_base>: ... and this.
5942 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5943 <gnu_ranges_base>: ... this...
5944 <rnglists_base>: ... and this.
5945 (read_cutu_die_from_dwo): Adjust
5946 (dwarf2_get_pc_bounds): Adjust
5947 (dwarf2_record_block_ranges): Adjust.
5948 (read_full_die_1): Adjust
5949 (partial_die_info::read): Adjust.
5950 (read_rnglist_index): Adjust.
5951
a1c40103
SM
59522021-02-02 Simon Marchi <simon.marchi@efficios.com>
5953
5954 PR gdb/26813
5955 * dwarf2/read.c (read_loclists_rnglists_header): Add
5956 header_offset parameter and use it.
5957 (read_loclist_index): Read header of the current contribution,
5958 not the one at the beginning of the section.
5959 (read_rnglist_index): Likewise.
5960
b1829e1b
SM
59612021-02-02 Simon Marchi <simon.marchi@efficios.com>
5962
5963 PR gdb/26813
5964 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5965 requires_reprocessing flag.
5966 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5967 DW_FORM_loclistx.
5968 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5969 and DW_FORM_loclistx.
5970 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5971 instead of set_address for DW_FORM_loclistx and
5972 DW_FORM_rnglistx.
5973
0c800c6e
SM
59742021-02-02 Simon Marchi <simon.marchi@efficios.com>
5975
5976 * dwarf2/read.c (read_loclist_index): Remove bound check for
5977 start of offset.
5978 (read_rnglist_index): Likewise.
5979
05787bad
SM
59802021-02-02 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5983 of the offset.
5984
5e4d9bbc
SM
59852021-02-02 Simon Marchi <simon.marchi@efficios.com>
5986
5987 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5988
a0c1eeba
SM
59892021-02-02 Simon Marchi <simon.marchi@efficios.com>
5990
5991 * dwarf2/read.c (read_loclist_index): Change complaints into
5992 errors.
5993
2bd3e4b8
TV
59942021-02-02 Tom de Vries <tdevries@suse.de>
5995
5996 PR symtab/24620
5997 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5998 psymtab == nullptr.
5999
82a1fd3a
AB
60002021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6001
6002 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6003 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6004 here from linux-tdep.c and given a new name. Minor cleanups.
6005 (gcore_collect_regset_section_cb): Likewise.
6006 (gcore_collect_thread_registers): Likewise.
6007 (gcore_build_thread_register_notes): Likewise.
6008 (gcore_find_signalled_thread): Likewise.
6009 * gcore.h (gcore_build_thread_register_notes): Declare.
6010 (gcore_find_signalled_thread): Declare.
6011 * fbsd-tdep.c: Add 'gcore.h' include.
6012 (struct fbsd_collect_regset_section_cb_data): Delete.
6013 (fbsd_collect_regset_section_cb): Delete.
6014 (fbsd_collect_thread_registers): Delete.
6015 (struct fbsd_corefile_thread_data): Delete.
6016 (fbsd_corefile_thread): Delete.
6017 (fbsd_make_corefile_notes): Call
6018 gcore_build_thread_register_notes instead of the now deleted
6019 FreeBSD code.
6020 * linux-tdep.c: Add 'gcore.h' include.
6021 (struct linux_collect_regset_section_cb_data): Delete.
6022 (linux_collect_regset_section_cb): Delete.
6023 (linux_collect_thread_registers): Delete.
6024 (linux_corefile_thread): Call
6025 gcore_build_thread_register_notes.
6026 (find_signalled_thread): Delete.
6027 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6028
ebde6f2d
TV
60292021-01-29 Tom de Vries <tdevries@suse.de>
6030
6031 PR breakpoints/26063
6032 * infrun.c (process_event_stop_test): Reset
6033 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6034 changed.
6035
0f93c3a2
AB
60362021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6037
6038 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6039 assert. Extend the header comment.
6040
f237f998
AB
60412021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6042
6043 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6044 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6045 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6046 (tui_locator_win_info_ptr): Delete declaration.
6047 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6048 (tui_disasm_window::set_contents): Fetch state from tui_location
6049 global.
6050 (tui_get_begin_asm_address): Likewise.
6051 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6052 for locator window.
6053 (get_locator_window): Delete.
6054 (initialize_known_windows): Treat locator window just like all the
6055 rest.
6056 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6057 (tui_source_window::set_contents): Fetch state from tui_location
6058 global.
6059 (tui_source_window::showing_source_p): Likewise.
6060 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6061 (_locator): Delete.
6062 (tui_locator_win_info_ptr): Delete.
6063 (tui_locator_window::make_status_line): Fetch state from
6064 tui_location global.
6065 (tui_locator_window::rerender): Remove check of 'handle',
6066 reindent function body.
6067 (tui_locator_window::set_locator_fullname): Delete.
6068 (tui_locator_window::set_locator_info): Delete.
6069 (tui_update_locator_fullname): Delete.
6070 (tui_show_frame_info): Likewise.
6071 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6072 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6073 tui/tui-location.h and renamed to
6074 tui_location_tracker::set_location.
6075 (tui_locator_window::set_locator_fullname): Moved to
6076 tui/tui-location.h and renamed to
6077 tui_location_tracker::set_fullname.
6078 (tui_locator_window::full_name): Delete.
6079 (tui_locator_window::proc_name): Delete.
6080 (tui_locator_window::line_no): Delete.
6081 (tui_locator_window::addr): Delete.
6082 (tui_locator_window::gdbarch): Delete.
6083 (tui_update_locator_fullname): Delete declaration.
6084 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6085 for locator window.
6086 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6087 (tui_display_main): Call function on tui_location directly.
6088 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6089 * tui/tui-location.c: New file.
6090 * tui/tui-location.h: New file.
6091
8ee511af
SM
60922021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6093
6094 * gdbtypes.h (get_type_arch): Rename to...
6095 (struct type) <arch>: ... this, update all users.
6096
6ac37371
SM
60972021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6098
6099 * gdbtypes.h (struct type) <arch>: Rename to...
6100 <arch_owner>: ... this, update all users.
6101 <objfile>: Rename to...
6102 <objfile_owner>: ... this, update all users.
6103
24cf6389
AB
61042021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6105
6106 * gdbcmd.h (execute_command_to_string): Update comment.
6107 * top.c (execute_command_to_string): Update header comment.
6108
2a7f6487
TV
61092021-01-28 Tom de Vries <tdevries@suse.de>
6110
6111 PR breakpoints/27205
6112 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6113 (create_longjmp_master_breakpoint_names): New function, factored out
6114 of ...
6115 (create_longjmp_master_breakpoint): ... here. Only try to install
6116 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6117 breakpoint in libc.so failed.
6118
59b59f08
LS
61192021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6120
6121 PR gdb/27133
6122 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6123 unique_ptr is released when the wrapped pointer is kept for later
6124 use.
6125
807f647c
MM
61262021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6127
6128 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6129 BLR and BR instructions.
6130 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6131 (enum aarch64_masks): New.
6132
4ef367bf
TT
61332021-01-26 Tom Tromey <tromey@adacore.com>
6134
6135 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6136 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6137 (windows_init_thread_list, windows_nat::handle_load_dll)
6138 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6139 (windows_nat_target::resume)
6140 (windows_nat_target::get_windows_debug_event)
6141 (windows_nat_target::interrupt, windows_xfer_memory)
6142 (windows_nat_target::close): Update.
6143 * nat/windows-nat.c (DEBUG_EVENTS): Use
6144 debug_prefixed_printf_cond.
6145 (matching_pending_stop, fetch_pending_stop)
6146 (continue_last_debug_event): Update.
6147
4cb1265b
MS
61482020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6149
6150 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6151 elfcore_write_file_note.
6152
d0cc52bd
SV
61532021-01-26 Shahab Vahedi <shahab@synopsys.com>
6154
6155 * arc-tdep.c (arc_add_reggroups): New function.
6156 (arc_gdbarch_init): Call arc_add_reggroups.
6157
ac3571d9 61582021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6159
6160 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6161
9f6c202e
TV
61622021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6163 Simon Marchi <simon.marchi@polymtl.ca>
6164 Tom de Vries <tdevries@suse.de>
6165
6166 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6167 DW_AT_ranges.
6168
a625a8c9
TT
61692021-01-25 Tom Tromey <tromey@adacore.com>
6170
6171 * dwarf2/read.c (get_mpz): New function.
6172 (get_dwarf2_rational_constant): Use it.
6173
19184910
TT
61742021-01-25 Tom Tromey <tromey@adacore.com>
6175
6176 * ada-lang.c (resolve_subexp): Handle array context.
6177
b10bae18
TT
61782021-01-23 Tom Tromey <tom@tromey.com>
6179
6180 PR compile/25575
6181 * compile/compile-loc2c.c (note_register): New function.
6182 (pushf_register_address, pushf_register): Use it.
6183
3637a558
TT
61842021-01-23 Tom Tromey <tom@tromey.com>
6185
6186 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6187 Change type of "registers_used".
6188 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6189 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6190 (locexpr_generate_c_location, loclist_generate_c_location): Change
6191 type of "registers_used".
6192 * compile/compile.h (compile_dwarf_expr_to_c)
6193 (compile_dwarf_bounds_to_c): Update.
6194 * compile/compile-loc2c.c (pushf_register_address)
6195 (pushf_register, do_compile_dwarf_expr_to_c)
6196 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6197 of "registers_used".
6198 * compile/compile-c.h (generate_c_for_variable_locations):
6199 Update.
6200 * compile/compile-c-symbols.c (generate_vla_size)
6201 (generate_c_for_for_one_variable): Change type of
6202 "registers_used".
6203 (generate_c_for_variable_locations): Return std::vector.
6204 * compile/compile-c-support.c (generate_register_struct): Change
6205 type of "registers_used".
6206 (compute): Update.
6207
9f7f6cb8
TT
62082021-01-23 Tom Tromey <tom@tromey.com>
6209
6210 * compile/compile-internal.h (class compile_instance)
6211 <set_arguments>: Change return type.
6212 * compile/compile.c (compile_to_object): Remove call to reset.
6213 (compile_instance::set_arguments): Change return type.
6214
dd5ca05f
SM
62152021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6216
6217 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6218 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6219
d3ee35db
LS
62202021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6221
6222 * Makefile.in (SELFTESTS_SRCS): Add
6223 unittests/gdb_tilde_expand-selftests.c.
6224 * unittests/gdb_tilde_expand-selftests.c: New file.
6225
9d2d8a16
AB
62262021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 PR cli/25956
6229 * NEWS: Mention new command.
6230 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6231 (version_style): Define.
6232 (cli_style_option::cli_style_option): Add intensity parameter, and
6233 use as appropriate.
6234 (_initialize_cli_style): Register version style set/show commands.
6235 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6236 (version_style): Declare.
6237 * top.c (print_gdb_version): Use version_stype, and styled_string
6238 to print the GDB version string.
6239
e7b43072
AB
62402021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6241
6242 * utils.c (emit_style_escape): Only emit an escape sequence if the
6243 requested style is different than the current applied style.
6244 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6245 current applied_style.
6246 (fputs_styled): Remove is_default check.
6247 (fputs_styled_unfiltered): Likewise.
6248 (vfprintf_styled_no_gdbfmt): Likewise.
6249
2189c312
SM
62502021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * remote.h (remote_debug_printf): New.
6253 (remote_debug_printf_nofunc): New.
6254 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6255 * remote.c: Use above macros throughout file.
6256
02349803
SM
62572021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6258
6259 * remote.h (remote_debug): Change to bool.
6260 * remote.c (remote_debug): Change to bool.
6261 (_initialize_remote): Adjust.
6262
cda09ec9
SM
62632021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * target.h (remote_debug): Move to...
6266 * remote.h (remote_debug): ... here.
6267 * top.c (remote_debug): Move to...
6268 * remote.c (remote_debug): ... here.
6269 * remote-sim.c: Include remote.h.
6270
baf2b57f
SM
62712021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * cli/cli-cmds.c (show_remote_debug): Remove.
6274 (show_remote_timeout): Remove.
6275 (_initialize_cli_cmds): Don't register commands.
6276 * remote.c (show_remote_debug): Move here.
6277 (show_remote_timeout): Move here.
6278 (_initialize_remote): Register commands.
6279
344e9841
SM
62802021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6283 type::objfile method instead.
6284
30625020
SM
62852021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6286
6287 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6288 use the type::is_objfile_owned method.
6289
5b7d941b
SM
62902021-01-22 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6293 (TYPE_OWNER): Remove.
6294 (TYPE_OBJFILE): Adjust.
6295 (struct main_type) <flag_objfile_owned>: Rename to...
6296 <m_flag_objfile_owned>: ... this.
6297 <owner>: Rename to...
6298 <m_owner>: ... this.
6299 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6300 methods.
6301 (TYPE_ALLOC): Adjust.
6302 * gdbtypes.c (alloc_type): Adjust.
6303 (alloc_type_arch): Adjust.
6304 (alloc_type_copy): Adjust.
6305 (get_type_arch): Adjust.
6306 (smash_type): Adjust.
6307 (lookup_array_range_type): Adjust.
6308 (recursive_dump_type): Adjust.
6309 (copy_type_recursive): Adjust.
6310 * compile/compile-c-types.c (convert_func): Adjust.
6311 (convert_type_basic): Adjust.
6312 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6313 Adjust.
6314 * language.c
6315 (language_arch_info::type_and_symbol::alloc_type_symbol):
6316 Adjust.
6317
d5d24e12
LM
63182021-01-21 Luis Machado <luis.machado@linaro.org>
6319
6320 * coffread.c (enter_linenos): Passing string to complaint.
6321 * valops.c (value_assign): Make array view.
6322
a59902a7
SM
63232021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6324
6325 * auto-load.h (debug_auto_load): Move here.
6326 (auto_load_debug_printf): New.
6327 * auto-load.c: Use auto_load_debug_printf.
6328 (debug_auto_load): Move to header.
6329 * linux-thread-db.c (try_thread_db_load): Use
6330 auto_load_debug_printf.
6331 * main.c (captured_main_1): Likewise.
6332
d3abc0ce
SM
63332021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6334
6335 * f-valprint.c (f77_array_offset_tbl): Remove.
6336
1e15fcac
SM
63372021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6338
6339 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6340
439706e6
SM
63412021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6342
6343 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6344 of gdb_select.
6345
325d39e4
HD
63462021-01-21 Hannes Domani <ssbssa@yahoo.de>
6347
6348 PR python/19151
6349 * python/py-breakpoint.c (bppy_get_location): Handle
6350 bp_hardware_breakpoint.
6351 (bppy_init): Likewise.
6352 (gdbpy_breakpoint_created): Likewise.
6353
7cb6d92a
SM
63542021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6355
6356 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6357
d4dd4fca
SM
63582021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6359
6360 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6361 (_initialize_gdb_bfd): Adjust.
6362
de53369b
SM
63632021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6364
6365 PR gdb/26828
6366 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6367
17e593e9
SM
63682021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * dwarf2/read.c (follow_die_offset): Add logging.
6371 (dwarf2_per_objfile::age_comp_units): Add logging.
6372
6bd434d6
SM
63732021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6374
6375 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6376 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6377 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6378 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6379 * arm-tdep.c (struct frame_unwind): Make static.
6380 * auto-load.c (auto_load_safe_path_vec): Make static.
6381 * csky-tdep.c (csky_stub_unwind): Make static.
6382 * gdbarch.c (gdbarch_data_registry): Make static.
6383 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6384 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6385 * i386-tdep.c (i386_frame_setup_skip_insns,
6386 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6387 Make static.
6388 * infrun.c (observer_mode): Make static.
6389 * linux-nat.c (sigchld_action): Make static.
6390 * linux-thread-db.c (thread_db_list): Make static.
6391 * maint-test-options.c (maintenance_test_options_list):
6392 * mep-tdep.c (mep_csr_registers): Make static.
6393 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6394 (stats): Make static.
6395 * nat/linux-osdata.c (struct osdata_type): Make static.
6396 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6397 * progspace.c (last_program_space_num): Make static.
6398 * python/py-param.c (struct parm_constant): Remove struct type
6399 name.
6400 (parm_constants): Make static.
6401 * python/py-record-btrace.c (btpy_list_methods): Make static.
6402 * python/py-record.c (recpy_gap_type): Make static.
6403 * record.c (record_goto_cmdlist): Make static.
6404 * regcache.c (regcache_descr_handle): Make static.
6405 * registry.h (DEFINE_REGISTRY): Make definition static.
6406 * symmisc.c (std_in, std_out, std_err): Make static.
6407 * top.c (previous_saved_command_line): Make static.
6408 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6409 static.
6410 * unittests/command-def-selftests.c (nr_duplicates,
6411 nr_invalid_prefixcmd, lists): Make static.
6412 * unittests/observable-selftests.c (test_notification): Make
6413 static.
6414 * unittests/optional/assignment/1.cc (counter): Make static.
6415 * unittests/optional/assignment/2.cc (counter): Make static.
6416 * unittests/optional/assignment/3.cc (counter): Make static.
6417 * unittests/optional/assignment/4.cc (counter): Make static.
6418 * unittests/optional/assignment/5.cc (counter): Make static.
6419 * unittests/optional/assignment/6.cc (counter): Make static.
6420
a6c11cbb
JS
64212021-01-20 Joel Sherrill <joel@rtems.org>
6422
6423 PR gdb/27219
6424 * remote.c (struct remote_thread_info) <resume_state>: Rename
6425 to...
6426 <get_resume_state>: ... this.
6427 (remote_target::resume): Adjust.
6428 (remote_target::commit_resume): Adjust.
6429 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6430
6f52fdf4
SDJ
64312021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6432 Tom Tromey <tom@tromey.com>
6433
6434 * stap-probe.c (stap_parse_single_operand): Handle '!'
6435 operator.
6436 (stap_parse_argument_conditionally): Likewise.
6437 Skip spaces after processing open-parenthesis sub-expression.
6438 (stap_parse_argument_1): Skip spaces after call to
6439 stap_parse_argument_conditionally.
6440 Handle case when right-side expression is a parenthesized
6441 sub-expression.
6442 Skip spaces after call to stap_parse_argument_1.
6443
1c3b85ad
LS
64442021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6445
6446 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6447
a9a87d35
LM
64482021-01-19 Luis Machado <luis.machado@linaro.org>
6449
6450 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6451 memory and save data.
6452 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6453 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6454 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6455 (trad_frame_value_bytes_p): Remove.
6456 (trad_frame_reset_saved_regs): Adjust documentation.
6457 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6458 constructor and reset the state of the registers.
6459 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6460 (trad_frame_value_bytes_p, trad_frame_set_value)
6461 (trad_frame_set_realreg, trad_frame_set_addr)
6462 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6463 (trad_frame_set_reg_realreg): Update to call member function.
6464 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6465 (trad_frame_get_prev_register): Likewise.
6466
6467 * aarch64-tdep.c (aarch64_analyze_prologue)
6468 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6469 (aarch64_prologue_prev_register): Update to use member functions.
6470 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6471 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6472 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6473 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6474 (arm_make_epilogue_frame_cache): Likewise.
6475 * avr-tdep.c (avr_frame_unwind_cache)
6476 (avr_frame_prev_register): Likewise.
6477 * cris-tdep.c (cris_scan_prologue): Likewise.
6478 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6479 * frv-tdep.c (frv_analyze_prologue): Likewise.
6480 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6481 * lm32-tdep.c (lm32_frame_cache): Likewise.
6482 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6483 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6484 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6485 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6486 (reset_saved_regs): Adjust to set realreg.
6487 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6488 call member functions.
6489 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6490 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6491 (s390_backchain_frame_unwind_cache): Likewise.
6492 * score-tdep.c (score7_analyze_prologue)
6493 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6494 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6495 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6496 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6497 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6498 * tilegx-tdep.c (tilegx_analyze_prologue)
6499 (tilegx_frame_cache): Likewise.
6500 * v850-tdep.c (v850_frame_cache): Likewise.
6501 * vax-tdep.c (vax_frame_cache): Likewise.
6502
bdec2917
LM
65032021-01-19 Luis Machado <luis.machado@linaro.org>
6504
6505 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6506 of buffer + length.
6507 (put_frame_register_bytes): Likewise.
6508 Adjust documentation.
6509 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6510 (safe_frame_unwind_memory): Likewise.
6511 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6512 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6513 gdb::array_view.
6514 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6515 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6516 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6517 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6518 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6519 * dwarf2/loc.c (rw_pieced_value): Likewise.
6520 * hppa-tdep.c (hppa_frame_cache): Likewise.
6521 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6522 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6523 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6524 (i386_linux_rt_sigtramp_start): Likewise.
6525 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6526 * i386-tdep.c (i386_register_to_value): Likewise.
6527 * i387-tdep.c (i387_register_to_value): Likewise.
6528 * ia64-tdep.c (ia64_register_to_value): Likewise.
6529 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6530 (m32r_linux_rt_sigtramp_start): Likewise.
6531 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6532 * m68k-tdep.c (m68k_register_to_value): Likewise.
6533 * mips-tdep.c (mips_register_to_value)
6534 (mips_value_to_register): Likewise.
6535 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6536 (ppcfbsd_sigtramp_frame_cache): Likewise.
6537 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6538 (ppcobsd_sigtramp_frame_cache): Likewise.
6539 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6540 (rs6000_register_to_value): Likewise.
6541 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6542 * tramp-frame.c (tramp_frame_start): Likewise.
6543 * valops.c (value_assign): Likewise.
6544
ccbe4c82
LM
65452021-01-19 Luis Machado <luis.machado@linaro.org>
6546
6547 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6548 array_view.
6549 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6550 instead of buffer and size.
6551 (trad_frame_set_reg_value_bytes): Likewise.
6552 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6553 (trad_frame_set_value_bytes): Likewise.
6554
0e7620dc
MF
65552021-01-18 Mike Frysinger <vapier@gentoo.org>
6556
6557 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6558
6a9ad81c
AB
65592021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6560
6561 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6562 (riscv_fbsd_gregset): Use riscv_supply_regset.
6563 (riscv_fbsd_fpregset): Likewise.
6564 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6565 (riscv_linux_fregset): Likewise.
6566 * riscv-tdep.c (riscv_supply_regset): Define new function.
6567 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6568
d3d7d1ba
TV
65692021-01-18 Tom de Vries <tdevries@suse.de>
6570
6571 PR tdep/27172
6572 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6573 New macro.
6574 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6575 for SEGV_BNDERR.
6576
aa2838cc
SM
65772021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6578
6579 * remote.c (class remote_target) <remote_hostio_send_command,
6580 remote_hostio_parse_result>: Constify parameter.
6581 (remote_hostio_parse_result): Likewise.
6582 (remote_target::remote_hostio_send_command): Adjust.
6583 (remote_target::remote_hostio_pread_vFile): Adjust.
6584 (remote_target::fileio_readlink): Adjust.
6585 (remote_target::fileio_fstat): Adjust.
6586
b5c8f22d
SM
65872021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6588
6589 * remote.c (remote_target::start_remote): Move wait_status to
6590 narrower scope.
6591
e3b2741b
SM
65922021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6593
6594 * remote.c (class remote_target):
6595 <add_current_inferior_and_thread>: Constify parameter.
6596 (stop_reply_extract_thread): Likewise.
6597 (remote_target::get_current_thread): Likewise.
6598 (remote_target::add_current_inferior_and_thread): Likewise.
6599
cecb1912
SM
66002021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * remote.c (class remote_target)
6603 <remote_unpack_thread_info_response,
6604 parse_threadlist_response>: Constify parameter and/or return
6605 value and or local variable.
6606 (stub_unpack_int): Likewise.
6607 (unpack_nibble): Likewise.
6608 (unpack_byte): Likewise.
6609 (unpack_int): Likewise.
6610 (unpack_string): Likewise.
6611 (unpack_threadid): Likewise.
6612 (remote_target::remote_unpack_thread_info_response): Likewise.
6613 (remote_target::parse_threadlist_response): Likewise.
6614
5a11fff0
AB
66152021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6616
6617 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6618
17e89137
LS
66192021-01-14 Lancelot Six <lsix@lancelotsix.com>
6620
6621 * MAINTAINERS (Write After Approval): Add myself.
6622
58eadc4b
BE
66232021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6624
6625 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6626 because is_trivially_default_constructible was first implemented with
6627 gcc-5.
6628
5fae2a2c
TV
66292021-01-14 Tom de Vries <tdevries@suse.de>
6630
6631 PR breakpoints/27151
6632 * objfiles.h (in_plt_section): Handle .plt.sec.
6633
8f66807b
AB
66342021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6635
6636 PR gdb/26819
6637 * remote.c
6638 (remote_target::select_thread_for_ambiguous_stop_reply): New
6639 member function.
6640 (remote_target::process_stop_reply): Call
6641 select_thread_for_ambiguous_stop_reply.
6642
bd497355
SM
66432021-01-13 Simon Marchi <simon.marchi@efficios.com>
6644
6645 * record-btrace.c (class record_btrace_target): Remove.
6646 (record_btrace_target::commit_resume): Remove.
6647 * record-full.c (class record_full_target): Remove.
6648 (record_full_target::commit_resume): Remove.
6649
c9d22089
SM
66502021-01-13 Simon Marchi <simon.marchi@efficios.com>
6651
6652 * remote.c (enum class resume_state): New.
6653 (struct resumed_pending_vcont_info): New.
6654 (struct remote_thread_info) <resume_state, set_not_resumed,
6655 set_resumed_pending_vcont, resumed_pending_vcont_info,
6656 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6657 New.
6658 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6659 (remote_target::remote_add_thread): Adjust.
6660 (remote_target::process_initial_stop_replies): Adjust.
6661 (remote_target::resume): Adjust.
6662 (remote_target::commit_resume): Rely on state in
6663 remote_thread_info and not on tp->executing.
6664 (remote_target::process_stop_reply): Adjust.
6665
d8d1feb4
SM
66662021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6667
6668 * arc-tdep.h (arc_debug_printf): New.
6669 * arc-tdep.c: Use arc_debug_printf.
6670 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6671 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6672 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6673
fb0f5031
SM
66742021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6675
6676 * arc-tdep.h (arc_debug): Change type to bool.
6677 * arc-tdep.c (arc_debug): Change type to bool.
6678 (arc_analyze_prologue): Adjust.
6679 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6680 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6681
5bf7e91b
SM
66822021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6683
6684 * auto-load.c (auto_load_objfile_script_1): Use bool.
6685 (execute_script_contents): Use bool.
6686
db972fce
SM
66872021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6688
6689 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6690 comment here.
6691 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6692 comment to header.
6693 * extension-priv.h (struct extension_language_script_ops)
6694 <auto_load_enabled>: Return bool.
6695 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6696 comment here.
6697 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6698 comment to header.
6699 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6700 move comment here.
6701 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6702 move comment to header.
6703 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6704 move comment here.
6705 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6706 move comment to header.
6707
5e12f48f
SM
67082021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6709
6710 * auto-load.h (file_is_auto_load_safe): Change return type to
6711 bool, move comment here.
6712 * auto-load.c (file_is_auto_load_safe): Change return type and
6713 advice_printed to bool. Move comment to header.
6714
54ca9002
SM
67152021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6716
6717 * jit.c (jit_debug_printf): New, use throughout file.
6718
24a7f1b5
SM
67192021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6720
6721 * infrun.c (normal_stop): Fix indentation.
6722
fe7a351a
SM
67232021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6724
6725 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6726 declarations to ...
6727 * symfile.h: ... here.
6728 * symfile.c: Update doc.
6729
16e9019e
SM
67302021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6731
6732 * target.h (baud_rate, serial_parity): Move declarations...
6733 * serial.h: ... here.
6734 * main.c: Include serial.h.
6735 * serial.c (baud_rate, serial_parity): Update doc.
6736
b2f2ae0d
SM
67372021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6738
6739 * top.c (pre_init_ui_hook): Remove.
6740
5291fe3c
SP
67412021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6742
6743 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6744 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6745 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6746 * features/aarch64-fpu.xml: Add bfloat16 type.
6747
ce38f5ed
AB
67482021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6749
6750 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6751
7c654b71
AB
67522021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6753
6754 * f-exp.y (dot_ops): Rename to...
6755 (fortran_operators): ...this. Add a header comment. Add symbol
6756 based operators.
6757 (yylex): Update to use fortran_operators not dot_ops. Remove
6758 special handling for '**', this is now included in
6759 fortran_operators.
6760
c6185dce
SM
67612021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6762
6763 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6764 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6765 * aarch64-tdep.c: Use aarch64_debug_printf.
6766
eef401dc
SM
67672021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6768
6769 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6770 file.
6771
062eaacb
SM
67722021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * jit.c (jit_debug): Change type to bool.
6775 (_initialize_jit): Adjust.
6776
54585eee
TT
67772021-01-09 Tom Tromey <tom@tromey.com>
6778
6779 PR compile/23672
6780 * compile/compile.c (compile_to_object): Avoid crash when
6781 osabi_triplet_regexp returns NULL.
6782
bc167b6b
TT
67832021-01-09 Tom Tromey <tom@tromey.com>
6784
6785 * tracepoint.h (class collection_list) <append_exp>: Take a
6786 std::string.
6787 * tracepoint.c (collection_list::append_exp): Take a std::string.
6788 (encode_actions_1): Update.
6789
8fc48b79
TT
67902021-01-08 Tom Tromey <tromey@adacore.com>
6791
6792 * parse.c (parse_expression): Add void_context_p parameter. Use
6793 parse_exp_in_context.
6794 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6795 parse_expression.
6796 (print_command, call_command): Update.
6797 * expression.h (parse_expression): Add void_context_p parameter.
6798
3c8c6de2
AB
67992021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6800
6801 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6802 for internalvar components that have a dynamic location.
6803
1940319c
TV
68042021-01-08 Tom de Vries <tdevries@suse.de>
6805
6806 PR gdb/26881
6807 * breakpoint.c (create_exception_master_breakpoint_probe)
6808 (create_exception_master_breakpoint_hook): Factor out
6809 of ...
6810 (create_exception_master_breakpoint): ... here. Only try to install
6811 the master exception breakpoint in objfile.debug using the
6812 _Unwind_DebugHook method, if the install using probes in objfile
6813 failed.
6814
e3436813
AB
68152021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6816
6817 * f-lang.c (fortran_value_subarray): Call value_from_component.
6818
e904f56d
MF
68192021-01-07 Mike Frysinger <vapier@gentoo.org>
6820
6821 * remote-sim.c: Include memory-map.h.
6822 (gdbsim_target): Define memory_map override.
6823 (gdbsim_target::memory_map): Define.
6824
959d6a67
TT
68252021-01-07 Tom Tromey <tromey@adacore.com>
6826
6827 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6828
d4813f10
TT
68292021-01-07 Tom Tromey <tromey@adacore.com>
6830
6831 * ada-lang.c (add_component_interval): Start loop using vector's
6832 updated size.
6833
b49180ac
TT
68342021-01-06 Tom Tromey <tromey@adacore.com>
6835
6836 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6837 Do not cast result.
6838 * valarith.c (fixed_point_binop): Handle multiplication
6839 and division specially.
6840 * valops.c (value_to_gdb_mpq): New function.
6841 (value_cast_to_fixed_point): Use it.
6842
55195361
HD
68432021-01-05 Hannes Domani <ssbssa@yahoo.de>
6844
6845 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6846 Call wnoutrefresh instead of tui_win_info::refresh_window.
6847
1b6d4bb2
HD
68482021-01-05 Hannes Domani <ssbssa@yahoo.de>
6849
6850 * tui/tui-source.c (tui_source_window::show_line_number):
6851 Redraw second space after line number.
6852
b5ff370e
HD
68532021-01-05 Hannes Domani <ssbssa@yahoo.de>
6854
6855 PR tui/26927
6856 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6857 Fix source pad size in prefresh.
6858 (tui_source_window_base::show_source_content): Grow source pad
6859 if necessary.
6860
c68ea49f
MF
68612021-01-04 Mike Frysinger <vapier@gentoo.org>
6862
6863 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6864 (bfin_frame_align): Use align_down.
6865
e4ad960a
TV
68662021-01-04 Tom de Vries <tdevries@suse.de>
6867
6868 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6869 terminators that do not terminate anything.
6870
3ec3145c
SM
68712021-01-04 Simon Marchi <simon.marchi@efficios.com>
6872
6873 * debug.c (debug_print_depth): New.
6874 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6875 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6876 * infrun.c (start_step_over): Use
6877 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6878 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6879 INFRUN_SCOPED_DEBUG_START_END.
6880 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6881
e71daf80
SM
68822021-01-04 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6885
335709bc
SM
68862021-01-04 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * utils.c (vfprintf_unfiltered): Print timestamp only when
6889 previous debug output ended with a newline.
6890
098caef4
LM
68912021-01-04 Luis Machado <luis.machado@linaro.org>
6892
6893 Update all users of trad_frame_saved_reg to use the new member
6894 functions.
6895
6896 Remote all struct keywords from declarations of trad_frame_saved_reg
6897 types, except on forward declarations.
6898
6899 * aarch64-tdep.c: Update.
6900 * alpha-mdebug-tdep.c: Update.
6901 * alpha-tdep.c: Update.
6902 * arc-tdep.c: Update.
6903 * arm-tdep.c: Update.
6904 * avr-tdep.c: Update.
6905 * cris-tdep.c: Update.
6906 * csky-tdep.c: Update.
6907 * frv-tdep.c: Update.
6908 * hppa-linux-tdep.c: Update.
6909 * hppa-tdep.c: Update.
6910 * hppa-tdep.h: Update.
6911 * lm32-tdep.c: Update.
6912 * m32r-linux-tdep.c: Update.
6913 * m32r-tdep.c: Update.
6914 * m68hc11-tdep.c: Update.
6915 * mips-tdep.c: Update.
6916 * moxie-tdep.c: Update.
6917 * riscv-tdep.c: Update.
6918 * rs6000-tdep.c: Update.
6919 * s390-linux-tdep.c: Update.
6920 * s390-tdep.c: Update.
6921 * score-tdep.c: Update.
6922 * sparc-netbsd-tdep.c: Update.
6923 * sparc-sol2-tdep.c: Update.
6924 * sparc64-fbsd-tdep.c: Update.
6925 * sparc64-netbsd-tdep.c: Update.
6926 * sparc64-obsd-tdep.c: Update.
6927 * sparc64-sol2-tdep.c: Update.
6928 * tilegx-tdep.c: Update.
6929 * v850-tdep.c: Update.
6930 * vax-tdep.c: Update.
6931
6932 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6933 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6934
6935 * trad-frame.c: Update.
6936 Remove TF_REG_* enum.
6937 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6938 a trivially-constructible struct.
6939 (trad_frame_reset_saved_regs): Adjust to use member function.
6940 (trad_frame_value_p): Likewise.
6941 (trad_frame_addr_p): Likewise.
6942 (trad_frame_realreg_p): Likewise.
6943 (trad_frame_value_bytes_p): Likewise.
6944 (trad_frame_set_value): Likewise.
6945 (trad_frame_set_realreg): Likewise.
6946 (trad_frame_set_addr): Likewise.
6947 (trad_frame_set_unknown): Likewise.
6948 (trad_frame_set_value_bytes): Likewise.
6949 (trad_frame_get_prev_register): Likewise.
6950 * trad-frame.h: Update.
6951 (trad_frame_saved_reg_kind): New enum.
6952 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6953 <m_kind, m_reg>: New member fields.
6954 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6955 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6956 <is_addr, is_unknown, is_value_bytes>: New member functions.
6957
9898e882
SM
69582021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6959
6960 * target-float.c: Fix typos.
6961
b66b4e65
HD
69622021-01-02 Hannes Domani <ssbssa@yahoo.de>
6963
6964 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6965
b5b5650a
JB
69662021-01-01 Joel Brobecker <brobecker@adacore.com>
6967
6968 * gdbarch.sh: Update copyright year range.
6969
3666a048
JB
69702021-01-01 Joel Brobecker <brobecker@adacore.com>
6971
6972 Update copyright year range in copyright header of all GDB files.
6973
ff7e39b6
JB
69742021-01-01 Joel Brobecker <brobecker@adacore.com>
6975
6976 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6977 to the list of directories to update.
6978
2b47c078
JB
69792021-01-01 Joel Brobecker <brobecker@adacore.com>
6980
6981 * top.c (print_gdb_version): Update copyright year.
6982
9e5e03df 69832021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6984
476923f1 6985 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6986
476923f1 6987For older changes see ChangeLog-2020.
c906108c
SS
6988\f
6989Local Variables:
6990mode: change-log
6991left-margin: 8
6992fill-column: 74
6993version-control: never
57da7796 6994coding: utf-8
c906108c 6995End: