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