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