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