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