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