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