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