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