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