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