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