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