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