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