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