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