1 2021-04-17 Tom Tromey <tom@tromey.com>
3 * symfile-debug.c (objfile::map_symtabs_matching_filename):
5 * quick-symbol.h (struct quick_symbol_functions)
6 <map_symtabs_matching_filename>: Remove.
7 * psymtab.c (partial_map_expand_apply)
8 (psymbol_functions::map_symtabs_matching_filename): Remove.
9 * psympriv.h (struct psymbol_functions)
10 <map_symtabs_matching_filename>: Remove.
11 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
13 * dwarf2/read.c (struct dwarf2_base_index_functions)
14 <map_symtabs_matching_filename>: Remove.
15 (dw2_map_expand_apply)
16 (dwarf2_base_index_functions::map_symtabs_matching_filename):
19 2021-04-17 Tom Tromey <tom@tromey.com>
21 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
22 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
24 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
25 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
26 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
27 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
29 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
30 (dwarf2_gdb_index::lookup_symbol)
31 (dwarf2_debug_names_index::lookup_symbol): Remove.
33 2021-04-17 Tom Tromey <tom@tromey.com>
35 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
36 * symmisc.c (maintenance_expand_symtabs): Update.
37 * symfile.c (expand_symtabs_matching): Update.
38 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
40 * quick-symbol.h (struct quick_symbol_functions)
41 <expand_symtabs_matching>: Add 'domain' parameter.
42 * psymtab.c (recursively_search_psymtabs)
43 (psymbol_functions::expand_symtabs_matching): Add 'domain'
45 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
46 Add 'domain' parameter.
47 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
49 * linespec.c (iterate_over_all_matching_symtabs): Update.
50 * dwarf2/read.c (struct dwarf2_gdb_index)
51 <expand_symtabs_matching>: Add 'domain' parameter.
52 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
54 (dw2_expand_symtabs_matching)
55 (dwarf2_gdb_index::expand_symtabs_matching)
56 (dw2_debug_names_iterator)
57 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
60 2021-04-17 Tom Tromey <tom@tromey.com>
62 * symtab.c (global_symbol_searcher::expand_symtabs)
63 (default_collect_symbol_completion_matches_break_on): Update.
64 * symmisc.c (maintenance_expand_symtabs): Update.
65 * symfile.h (expand_symtabs_matching): Add search_flags
67 * symfile.c (expand_symtabs_matching): Add search_flags
69 * symfile-debug.c (objfile::expand_symtabs_matching): Add
70 search_flags parameter.
71 * quick-symbol.h (struct quick_symbol_functions)
72 <expand_symtabs_matching>: Add search_flags parameter.
73 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
74 * psymtab.c (recursively_search_psymtabs)
75 (psymbol_functions::expand_symtabs_matching): Add search_flags
77 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
78 Add search_flags parameter.
79 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
80 search_flags parameter.
81 * linespec.c (iterate_over_all_matching_symtabs): Update.
82 * dwarf2/read.c (struct dwarf2_gdb_index)
83 <expand_symtabs_matching>: Add search_flags parameter.
84 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
85 search_flags parameter.
86 (dw2_map_matching_symbols): Update.
87 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
88 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
90 (dw2_debug_names_iterator): Change block_index to search flags.
91 <m_block_index>: Likewise.
92 (dw2_debug_names_iterator::next)
93 (dwarf2_debug_names_index::lookup_symbol)
94 (dwarf2_debug_names_index::expand_symtabs_for_function)
95 (dwarf2_debug_names_index::map_matching_symbols)
96 (dwarf2_debug_names_index::map_matching_symbols): Update.
97 (dwarf2_debug_names_index::expand_symtabs_matching): Add
98 search_flags parameter.
99 * ada-lang.c (ada_add_global_exceptions)
100 (collect_symbol_completion_matches): Update.
102 2021-04-17 Tom Tromey <tom@tromey.com>
104 * symtab.c (default_collect_symbol_completion_matches_break_on):
106 * symfile.h (expand_symtabs_matching): Return bool.
107 * symfile.c (expand_symtabs_matching): Return bool.
108 * symfile-debug.c (objfile::expand_symtabs_matching): Return
110 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
111 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
113 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
115 * psympriv.h (struct psymbol_functions)
116 <expand_symtabs_matching>: Return bool.
117 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
119 * dwarf2/read.c (struct dwarf2_gdb_index)
120 <expand_symtabs_matching>: Return bool.
121 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
123 (dw2_expand_symtabs_matching_symbol): Return bool.
124 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
125 (dw2_expand_symtabs_matching)
126 (dwarf2_gdb_index::expand_symtabs_matching)
127 (dwarf2_debug_names_index::expand_symtabs_matching)
128 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
130 2021-04-17 Tom Tromey <tom@tromey.com>
132 * quick-symbol.h (enum block_search_flag_values): New.
133 (block_search_flags): New enum flags type.
135 2021-04-16 Tom Tromey <tom@tromey.com>
137 * rust-parse.c: New file.
138 * rust-exp.y: Remove.
139 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
140 (SFILES): Remove rust-exp.y.
141 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
143 2021-04-16 Luis Machado <luis.machado@linaro.org>
145 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
147 2021-04-15 John Baldwin <jhb@FreeBSD.org>
149 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
152 2021-04-15 Tom Tromey <tromey@adacore.com>
154 * ada-valprint.c (ada_value_print_array): Handle optimized-out
157 2021-04-15 Tom Tromey <tromey@adacore.com>
159 * printcmd.c (print_variable_and_value): Use
160 common_val_print_checked.
162 2021-04-15 Tom Tromey <tromey@adacore.com>
164 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
165 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
167 * p-exp.y (variable): Update.
168 * m2-exp.y (variable): Update.
169 * go-exp.y (variable): Update.
170 * expprint.c (dump_for_expression): New overload.
171 * expop.h (check_objfile): New overload.
172 (check_constant): New overload.
173 (class var_value_operation): Use block_symbol.
174 <get_symbol>: Rewrite.
175 * eval.c (var_value_operation::evaluate)
176 (var_value_operation::evaluate_funcall)
177 (var_value_operation::evaluate_for_address)
178 (var_value_operation::evaluate_for_address)
179 (var_value_operation::evaluate_with_coercion)
180 (var_value_operation::evaluate_for_sizeof)
181 (var_value_operation::evaluate_for_cast): Update.
182 * d-exp.y (PrimaryExpression): Update.
183 * c-exp.y (variable): Update.
184 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
185 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
186 (ada_var_value_operation::evaluate)
187 (ada_var_value_operation::resolve)
188 (ada_funcall_operation::resolve): Update.
189 * ada-exp.y (write_var_from_sym, write_object_renaming)
190 (write_ambiguous_var, write_var_or_type, write_name_assoc)
191 (maybe_overload): Update.
192 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
194 2021-04-15 Tom Tromey <tom@tromey.com>
195 Andrew Burgess <andrew.burgess@embecosm.com>
198 * main.c (captured_main_1): Call check_quiet_mode.
199 * top.c (startup_quiet): New global.
200 (check_quiet_mode): New function.
201 (show_startup_quiet): New function.
202 (init_main): Register new command.
203 * top.h (check_quiet_mode): Declare.
205 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
208 * NEWS: Mention new early init files and command line options.
209 * config.in: Regenerate.
210 * configure: Regenerate.
211 * configure.ac: Define GDBEARLYINIT.
212 * main.c (get_earlyinit_files): New function.
213 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
214 CMDARG_EARLYINIT_COMMAND.
215 (captured_main_1): Add support for new command line flags, and for
216 processing startup files.
217 (print_gdb_help): Include startup files in the output.
219 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
221 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
222 (relocate_file_path_maybe_in_datadir): ...this.
223 (class gdb_initfile_finder): New class.
224 (get_init_files): Now uses gdb_initfile_finder.
225 (print_gdb_help): Print 'None found' when there are no init files.
227 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
229 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
230 corresponding child of the abstract DIE when iterating the
231 children of the concrete DIE.
233 2021-04-13 Tom de Vries <tdevries@suse.de>
235 * ui-style.c (read_semi_number, extended_color): Change idx parameter
238 2021-04-13 Luis Machado <luis.machado@linaro.org>
240 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
243 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
245 * rs6000-tdep.c: Add support for single-stepping of
246 prefixed instructions.
248 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
251 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
252 handle the addpcis/lnia instruction.
254 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
256 * MAINTAINERS (Write After Approval): Add myself.
258 2021-4-12 Carl Love <cel@us.ibm.com>
260 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
261 (rs6000_builtin_type_vec128): Add append_composite_type_field for
264 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
266 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
267 * nat/windows-nat.h: Likewise.
269 2021-04-10 Eli Zaretskii <eliz@gnu.org>
271 * windows-nat.c (windows_nat::handle_load_dll): Call
272 windows_add_dll if get_image_name failed to glean the name of the
273 DLL by using the lpImageName pointer.
274 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
275 (windows_add_dll): Now does what windows_add_all_dlls did before,
276 but also accepts an argument LOAD_ADDR, which, if non-NULL,
277 specifies the address where the DLL was loaded into the inferior,
278 and looks for the single DLL loaded at that address.
280 2021-04-09 Luis Machado <luis.machado@linaro.org>
282 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
284 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
286 * darwin-nat.c (darwin_nat_target::resume): Remove status
289 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
291 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
292 prologue end for Intel compilers.
293 * amd64-tdep.c (amd64_skip_prologue): Likewise.
294 * producer.c (producer_is_icc_ge_19): New function.
295 * producer.h (producer_is_icc_ge_19): New declaration.
297 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
299 * producer.c: (producer_is_icc): Update for new version scheme.
300 (producer_parsing_tests): Update names and expected results.
301 * producer.h: (producer_is_icc): Update comment accordingly.
303 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
305 * target.h (struct target_ops) <follow_fork>: Return void.
306 (target_follow_fork): Likewise.
307 * target.c (default_follow_fork): Likewise.
308 (target_follow_fork): Likewise.
309 * infrun.c (follow_fork_inferior): Adjust.
310 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
311 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
312 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
313 * linux-nat.c (linux_nat_target::follow_fork): Return void.
314 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
315 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
316 * remote.c (class remote_target) <follow_fork>: Likewise.
317 (remote_target::follow_fork): Likewise.
318 * target-delegates.c: Re-generate.
320 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
322 * ctfread.c (fetch_tid_type): New function, use throughout file.
323 (read_forward_type): New function.
324 (read_type_record): Call read_forward_type.
326 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
328 * f-exp.h (class fortran_structop_operation): New class.
329 * f-exp.y (exp): Create fortran_structop_operation instead of the
330 generic structop_operation.
331 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
332 expression as EVAL_NORMAL if the result type was dynamic so we can
333 extract the actual array bounds.
334 (fortran_structop_operation::evaluate): New function.
336 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
338 * eval.c (evaluate_subexp_standard): Remove
339 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
342 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
344 * valops.c (value_cast): Call value_deeply_equal before performing
347 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
349 * gdbtypes.c (types_equal): Move pointer equality check earlier in
352 2021-04-07 Caroline Tice <cmtice@google.com>
354 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
355 the search paths used resolve relative location of .dwo file.
357 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
359 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
361 (dwarf2_section_info::get_file_name): Add an assert.
362 (dwarf2_section_info::read_string): Display a minimal, sane error
363 when the dwarf2_section_info is not associated with a bfd section.
365 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
367 * top.c (staged_gdb_datadir): Update comment.
368 (set_gdb_datadir): Copy the value of gdb_datadir back into
370 (init_main): Initialise staged_gdb_datadir.
372 2021-04-06 Tom de Vries <tdevries@suse.de>
375 * infcmd.c (prepare_one_step): Using inline frame info to narrow
378 2021-04-06 Tom de Vries <tdevries@suse.de>
381 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
384 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
386 * avr-tdep.c (avr_frame_unwind_cache): Use
387 trad_frame_saved_reg::is_addr.
389 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
391 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
394 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
396 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
397 objfile parameter for objfile_per_bfd_storage, adjust callers.
398 (struct standard_psymtab) <standard_psymtab>: Likewise.
399 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
400 * psymtab.c (partial_symtab::partial_symtab): Likewise.
401 * ctfread.c (struct ctf_psymtab): Likewise.
402 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
403 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
404 (dwarf2_create_include_psymtab): Likewise.
405 * objfiles.h (struct objfile_per_bfd_storage)
406 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
407 <get_bfd>: New method.
409 * objfiles.c (get_objfile_bfd_data): Adjust.
411 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
413 * psymtab.c (partial_symtab::partial_symtab): Change
414 last_objfile_name to be an std::string.
415 * symfile.c (allocate_symtab): Likewise.
417 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
419 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
421 (struct objfile) <intern>: Use
422 objfile::objfile_per_bfd_storage::intern.
424 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
426 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
427 with type::is_flag_enum.
429 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
431 * gdbtypes.h (struct type) <is_flag_enum,
432 set_is_flag_enum>: New methods.
433 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
434 write call sites to use type::set_is_flag_enum.
436 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
438 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
439 with type::is_declared_class.
441 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
443 * gdbtypes.h (struct type) <is_declared_class,
444 set_is_declared_class>: New methods.
445 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
446 write call sites to use type::set_is_declared_class.
448 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
450 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
451 to avoid deprecation warnings.
453 2021-04-01 Martin Liska <mliska@suse.cz>
455 * cp-name-parser.y: Use startswith instead of strncmp.
456 * m2-exp.y: Likewise.
457 * macroexp.c (substitute_args): Likewise.
458 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
459 * rust-exp.y: Likewise.
461 2021-03-31 Tom Tromey <tom@tromey.com>
463 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
464 with dw2_map_matching_symbols.
465 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
466 dw2_expand_symtabs_matching.
468 2021-03-31 Tom Tromey <tromey@adacore.com>
470 * dwarf2/stringify.h: Fix typo.
472 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
475 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
476 with objfiles using READNOW.
478 2021-03-29 Tom Tromey <tromey@adacore.com>
480 * top.c (check_frame_language_change): Update.
481 * language.c (language_info): Remove parameter.
482 * language.h (language_info): Remove parameter.
484 2021-03-29 Luis Machado <luis.machado@linaro.org>
486 * compile/compile.c (get_args): Don't add empty argv entries.
488 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
491 * procfs.c (procfs_target::attach): Define inf.
493 (procfs_target::create_inferior): Likewise.
495 2021-03-28 Tom Tromey <tom@tromey.com>
497 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
498 (elf_symfile_read): Simplify.
499 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
500 (make_lazy_dwarf_reader): New function.
501 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
502 (dwarf2_initialize_objfile): Return void. Remove index_kind
503 parameter. Push on 'qf' list.
504 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
505 type. Remove 'index_kind' parameter.
506 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
508 2021-03-27 Tom Tromey <tom@tromey.com>
510 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
512 2021-03-27 Tom Tromey <tom@tromey.com>
514 * elfread.c (elf_symfile_read): Don't clear 'qf'.
516 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
518 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
521 2021-03-26 Tom Tromey <tom@tromey.com>
523 * symtab.c (struct output_source_filename_data): Add 'output'
524 method and operator().
525 (output_source_filename_data::output): Rename from
526 output_source_filename.
527 (output_partial_symbol_filename): Remove.
528 (info_sources_command): Update.
529 (struct add_partial_filename_data): Add operator().
530 (add_partial_filename_data::operator()): Rename from
531 maybe_add_partial_symtab_filename.
532 (make_source_files_completion_list): Update.
533 * symfile.c (quick_symbol_functions): Update.
534 * symfile-debug.c (objfile::map_symbol_filenames): Update.
535 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
536 'need_fullname'. Remove 'data' parameter.
537 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
538 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
539 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
540 Change type of 'fun' and 'need_fullname'. Remove 'data'
542 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
543 of 'fun' and 'need_fullname'. Remove 'data' parameter.
544 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
546 (mi_cmd_file_list_exec_source_files): Update.
548 (dwarf2_base_index_functions::map_symbol_filenames): Update.
550 2021-03-26 Tom Tromey <tom@tromey.com>
552 * ada-lang.c (struct match_data): Add operator().
553 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
554 (callback): Remove 'callback'.
556 2021-03-26 Tom Tromey <tom@tromey.com>
558 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
559 call make_ignore_params once.
561 2021-03-26 Tom Tromey <tom@tromey.com>
563 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
566 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
567 Pedro Alves <pedro@palves.net>
569 * async-event.c: Include "infrun.h".
570 (async_event_handler_marked): New.
571 * async-event.h (async_event_handler_marked): Declare.
572 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
573 inferior before calling target method. Don't commit-resumed if
574 target_has_pending_events is true.
575 * remote.c (remote_target::has_pending_events): New.
576 * target-delegates.c: Regenerate.
577 * target.c (target_has_pending_events): New.
578 * target.h (target_ops::has_pending_events): New target method.
579 (target_has_pending_events): New.
581 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
582 Pedro Alves <pedro@palves.net>
584 * infcmd.c (run_command_1, attach_command, detach_command)
585 (interrupt_target_1): Use scoped_disable_commit_resumed.
586 * infrun.c (do_target_resume): Remove
587 target_commit_resume call.
588 (commit_resume_all_targets): Remove.
589 (maybe_set_commit_resumed_all_targets): New.
590 (maybe_call_commit_resumed_all_targets): New.
591 (enable_commit_resumed): New.
592 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
593 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
594 (scoped_disable_commit_resumed::reset)
595 (scoped_disable_commit_resumed::reset_and_commit)
596 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
597 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
599 (proceed): Use scoped_disable_commit_resumed and
600 maybe_call_commit_resumed_all_targets.
601 (fetch_inferior_event): Use scoped_disable_commit_resumed.
602 * infrun.h (struct scoped_disable_commit_resumed): New.
603 (maybe_call_commit_resumed_all_process_targets): New.
604 (struct scoped_enable_commit_resumed): New.
605 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
606 * process-stratum-target.h (class process_stratum_target):
607 <commit_resumed_state>: New.
608 * record-full.c (record_full_wait_1): Change commit_resumed_state
609 around calling commit_resumed.
610 * remote.c (class remote_target) <commit_resume>: Rename to...
611 <commit_resumed>: ... this.
612 (struct stop_reply): Move up.
613 (remote_target::commit_resume): Rename to...
614 (remote_target::commit_resumed): ... this. Check if there is any
615 thread pending vCont resume.
616 (remote_target::remote_stop_ns): Generate stop replies for resumed
617 but pending vCont threads.
618 (remote_target::wait_ns): Add gdb_assert.
619 * target-delegates.c: Regenerate.
620 * target.c (target_wait, target_resume): Assert that the current
621 process_stratum target isn't in commit-resumed state.
622 (defer_target_commit_resume): Remove.
623 (target_commit_resume): Remove.
624 (target_commit_resumed): New.
625 (make_scoped_defer_target_commit_resume): Remove.
626 (target_stop): Assert that the current process_stratum target
627 isn't in commit-resumed state.
628 * target.h (struct target_ops) <commit_resume>: Rename to ...
629 <commit_resumed>: ... this.
630 (target_commit_resume): Remove.
631 (target_commit_resumed): New.
632 (make_scoped_defer_target_commit_resume): Remove.
633 * top.c (wait_sync_command_done): Use
634 scoped_enable_commit_resumed.
636 2021-03-26 Pedro Alves <pedro@palves.net>
638 * target.c (target_always_non_stop_p): Also check whether the
641 2021-03-26 Tom Tromey <tom@tromey.com>
643 * dwarf2/read.c (dwarf2_read_debug_names)
644 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
645 (dw2_debug_names_iterator::next, create_type_unit_group):
648 2021-03-25 Pedro Alves <pedro@palves.net>
650 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
651 around setting the breakpoint.
653 2021-03-25 Pedro Alves <pedro@palves.net>
656 (remote_target::check_pending_events_prevent_wildcard_vcont):
657 Check whether the event's ptid is not null_ptid before looking up
658 the corresponding inferior.
660 2021-03-24 Changbin Du <changbin.du@gmail.com>
662 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
665 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
667 * target.h (current_top_target): Remove, make callers use the
668 current inferior instead.
669 * target.c (current_top_target): Remove.
671 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
673 * target.h (target_shortname): Change to function declaration.
674 (target_longname): Likewise.
675 (target_attach_no_wait): Likewise.
676 (target_post_attach): Likewise.
677 (target_prepare_to_store): Likewise.
678 (target_supports_enable_disable_tracepoint): Likewise.
679 (target_supports_string_tracing): Likewise.
680 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
681 (target_supports_dumpcore): Likewise.
682 (target_dumpcore): Likewise.
683 (target_can_run_breakpoint_commands): Likewise.
684 (target_files_info): Likewise.
685 (target_post_startup_inferior): Likewise.
686 (target_insert_fork_catchpoint): Likewise.
687 (target_remove_fork_catchpoint): Likewise.
688 (target_insert_vfork_catchpoint): Likewise.
689 (target_remove_vfork_catchpoint): Likewise.
690 (target_insert_exec_catchpoint): Likewise.
691 (target_remove_exec_catchpoint): Likewise.
692 (target_set_syscall_catchpoint): Likewise.
693 (target_rcmd): Likewise.
694 (target_can_lock_scheduler): Likewise.
695 (target_can_async_p): Likewise.
696 (target_is_async_p): Likewise.
697 (target_execution_direction): Likewise.
698 (target_extra_thread_info): Likewise.
699 (target_pid_to_exec_file): Likewise.
700 (target_thread_architecture): Likewise.
701 (target_find_memory_regions): Likewise.
702 (target_make_corefile_notes): Likewise.
703 (target_get_bookmark): Likewise.
704 (target_goto_bookmark): Likewise.
705 (target_stopped_by_watchpoint): Likewise.
706 (target_stopped_by_sw_breakpoint): Likewise.
707 (target_supports_stopped_by_sw_breakpoint): Likewise.
708 (target_stopped_by_hw_breakpoint): Likewise.
709 (target_supports_stopped_by_hw_breakpoint): Likewise.
710 (target_have_steppable_watchpoint): Likewise.
711 (target_can_use_hardware_watchpoint): Likewise.
712 (target_region_ok_for_hw_watchpoint): Likewise.
713 (target_can_do_single_step): Likewise.
714 (target_insert_watchpoint): Likewise.
715 (target_remove_watchpoint): Likewise.
716 (target_insert_hw_breakpoint): Likewise.
717 (target_remove_hw_breakpoint): Likewise.
718 (target_can_accel_watchpoint_condition): Likewise.
719 (target_can_execute_reverse): Likewise.
720 (target_get_ada_task_ptid): Likewise.
721 (target_filesystem_is_local): Likewise.
722 (target_trace_init): Likewise.
723 (target_download_tracepoint): Likewise.
724 (target_can_download_tracepoint): Likewise.
725 (target_download_trace_state_variable): Likewise.
726 (target_enable_tracepoint): Likewise.
727 (target_disable_tracepoint): Likewise.
728 (target_trace_start): Likewise.
729 (target_trace_set_readonly_regions): Likewise.
730 (target_get_trace_status): Likewise.
731 (target_get_tracepoint_status): Likewise.
732 (target_trace_stop): Likewise.
733 (target_trace_find): Likewise.
734 (target_get_trace_state_variable_value): Likewise.
735 (target_save_trace_data): Likewise.
736 (target_upload_tracepoints): Likewise.
737 (target_upload_trace_state_variables): Likewise.
738 (target_get_raw_trace_data): Likewise.
739 (target_get_min_fast_tracepoint_insn_len): Likewise.
740 (target_set_disconnected_tracing): Likewise.
741 (target_set_circular_trace_buffer): Likewise.
742 (target_set_trace_buffer_size): Likewise.
743 (target_set_trace_notes): Likewise.
744 (target_get_tib_address): Likewise.
745 (target_set_permissions): Likewise.
746 (target_static_tracepoint_marker_at): Likewise.
747 (target_static_tracepoint_markers_by_strid): Likewise.
748 (target_traceframe_info): Likewise.
749 (target_use_agent): Likewise.
750 (target_can_use_agent): Likewise.
751 (target_augmented_libraries_svr4_read): Likewise.
752 (target_log_command): Likewise.
753 * target.c (target_shortname): New.
754 (target_longname): New.
755 (target_attach_no_wait): New.
756 (target_post_attach): New.
757 (target_prepare_to_store): New.
758 (target_supports_enable_disable_tracepoint): New.
759 (target_supports_string_tracing): New.
760 (target_supports_evaluation_of_breakpoint_conditions): New.
761 (target_supports_dumpcore): New.
762 (target_dumpcore): New.
763 (target_can_run_breakpoint_commands): New.
764 (target_files_info): New.
765 (target_post_startup_inferior): New.
766 (target_insert_fork_catchpoint): New.
767 (target_remove_fork_catchpoint): New.
768 (target_insert_vfork_catchpoint): New.
769 (target_remove_vfork_catchpoint): New.
770 (target_insert_exec_catchpoint): New.
771 (target_remove_exec_catchpoint): New.
772 (target_set_syscall_catchpoint): New.
774 (target_can_lock_scheduler): New.
775 (target_can_async_p): New.
776 (target_is_async_p): New.
777 (target_execution_direction): New.
778 (target_extra_thread_info): New.
779 (target_pid_to_exec_file): New.
780 (target_thread_architecture): New.
781 (target_find_memory_regions): New.
782 (target_make_corefile_notes): New.
783 (target_get_bookmark): New.
784 (target_goto_bookmark): New.
785 (target_stopped_by_watchpoint): New.
786 (target_stopped_by_sw_breakpoint): New.
787 (target_supports_stopped_by_sw_breakpoint): New.
788 (target_stopped_by_hw_breakpoint): New.
789 (target_supports_stopped_by_hw_breakpoint): New.
790 (target_have_steppable_watchpoint): New.
791 (target_can_use_hardware_watchpoint): New.
792 (target_region_ok_for_hw_watchpoint): New.
793 (target_can_do_single_step): New.
794 (target_insert_watchpoint): New.
795 (target_remove_watchpoint): New.
796 (target_insert_hw_breakpoint): New.
797 (target_remove_hw_breakpoint): New.
798 (target_can_accel_watchpoint_condition): New.
799 (target_can_execute_reverse): New.
800 (target_get_ada_task_ptid): New.
801 (target_filesystem_is_local): New.
802 (target_trace_init): New.
803 (target_download_tracepoint): New.
804 (target_can_download_tracepoint): New.
805 (target_download_trace_state_variable): New.
806 (target_enable_tracepoint): New.
807 (target_disable_tracepoint): New.
808 (target_trace_start): New.
809 (target_trace_set_readonly_regions): New.
810 (target_get_trace_status): New.
811 (target_get_tracepoint_status): New.
812 (target_trace_stop): New.
813 (target_trace_find): New.
814 (target_get_trace_state_variable_value): New.
815 (target_save_trace_data): New.
816 (target_upload_tracepoints): New.
817 (target_upload_trace_state_variables): New.
818 (target_get_raw_trace_data): New.
819 (target_get_min_fast_tracepoint_insn_len): New.
820 (target_set_disconnected_tracing): New.
821 (target_set_circular_trace_buffer): New.
822 (target_set_trace_buffer_size): New.
823 (target_set_trace_notes): New.
824 (target_get_tib_address): New.
825 (target_set_permissions): New.
826 (target_static_tracepoint_marker_at): New.
827 (target_static_tracepoint_markers_by_strid): New.
828 (target_traceframe_info): New.
829 (target_use_agent): New.
830 (target_can_use_agent): New.
831 (target_augmented_libraries_svr4_read): New.
832 (target_log_command): New.
833 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
834 * infrun.c (set_schedlock_func): Adjust.
835 * mi/mi-main.c (exec_reverse_continue): Adjust.
836 * reverse.c (exec_reverse_once): Adjust.
837 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
838 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
839 * remote-sim.c (gdbsim_target::detach): Adjust.
840 (gdbsim_target::files_info): Adjust.
842 2021-03-24 Tom Tromey <tom@tromey.com>
844 * dwarf2/read.c (dw2_map_matching_symbols): Update.
845 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
846 (check_match, dw2_expand_symtabs_matching)
847 (dwarf2_debug_names_index::map_matching_symbols)
848 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
850 2021-03-24 Keith Seitz <keiths@redhat.com>
852 * compile/compile-cplus-types.c
853 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
856 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
858 * gdbarch.sh (gdbarch_data_registry): Make static.
859 * gdbarch.c: Re-generate.
861 2021-03-24 Luis Machado <luis.machado@linaro.org>
863 * NEWS: Mention memory tagging changes.
865 2021-03-24 Luis Machado <luis.machado@linaro.org>
867 * printcmd.c (decode_format): Handle the 'm' modifier.
868 (do_examine): Display allocation tags when required/supported.
869 (should_validate_memtags): New function.
870 (print_command_1): Display memory tag mismatches.
871 * valprint.c (show_memory_tag_violations): New function.
872 (value_print_option_defs): Add new option "memory-tag-violations".
873 (user_print_options) <memory_tag_violations>: Initialize to 1.
874 * valprint.h (struct format_data) <print_tags>: New field.
875 (value_print_options) <memory_tag_violations>: New field.
877 2021-03-24 Luis Machado <luis.machado@linaro.org>
879 * printcmd.c: Include gdbsupport/rsp-low.h.
880 (memory_tag_list): New static global.
881 (process_print_command_args): Factored out of
883 (print_command_1): Use process_print_command_args.
884 (show_addr_not_tagged, show_memory_tagging_unsupported)
885 (memory_tag_command, memory_tag_print_tag_command)
886 (memory_tag_print_logical_tag_command)
887 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
888 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
889 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
891 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
893 2021-03-24 Luis Machado <luis.machado@linaro.org>
895 * aarch64-linux-tdep.c
896 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
897 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
899 2021-03-24 Luis Machado <luis.machado@linaro.org>
901 * aarch64-linux-tdep.c
902 (aarch64_linux_report_signal_info): New function.
903 (aarch64_linux_init_abi): Register
904 aarch64_linux_report_signal_info as the report_signal_info hook.
905 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
906 (SEGV_MTESERR): Define.
908 2021-03-24 Luis Machado <luis.machado@linaro.org>
910 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
911 (aarch64_linux_ltag_tests): New function.
912 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
914 2021-03-24 Luis Machado <luis.machado@linaro.org>
916 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
917 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
918 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
919 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
921 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
922 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
923 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
924 (aarch64_linux_get_ltag): New functions.
925 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
926 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
927 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
928 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
930 2021-03-24 Luis Machado <luis.machado@linaro.org>
932 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
934 (struct smaps_data): New struct.
935 (decode_vmflags): Handle the 'mt' flag.
936 (parse_smaps_data): New function, refactored from
937 linux_find_memory_regions_full.
938 (linux_address_in_memtag_page): New function.
939 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
940 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
942 2021-03-24 Luis Machado <luis.machado@linaro.org>
944 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
945 instead of char arrays.
947 2021-03-24 Luis Machado <luis.machado@linaro.org>
949 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
950 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
951 nat/aarch64-mte-linux-ptrace.h.
952 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
953 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
955 <fetch_memtags>: New method override.
956 <store_memtags>: New method override.
957 (aarch64_linux_nat_target::supports_memory_tagging): New method.
958 (aarch64_linux_nat_target::fetch_memtags): New method.
959 (aarch64_linux_nat_target::store_memtags): New method.
960 * arch/aarch64-mte-linux.c: New file.
961 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
962 (AARCH64_MTE_GRANULE_SIZE): Define.
963 (aarch64_memtag_type): New enum.
964 (aarch64_mte_get_tag_granules): New prototype.
965 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
966 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
967 * nat/aarch64-mte-linux-ptrace.c: New file.
968 * nat/aarch64-mte-linux-ptrace.h: New file.
970 2021-03-24 Luis Machado <luis.machado@linaro.org>
972 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
973 * nat/aarch64-mte-linux-ptrace.h: New file.
975 2021-03-24 Luis Machado <luis.machado@linaro.org>
977 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
978 (store_mteregs_to_thread): New function.
979 (aarch64_linux_nat_target::fetch_registers): Update to call
980 fetch_mteregs_from_thread.
981 (aarch64_linux_nat_target::store_registers): Update to call
982 store_mteregs_to_thread.
983 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
984 (aarch64_cannot_store_register): Handle MTE registers.
985 (aarch64_gdbarch_init): Initialize and setup MTE registers.
986 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
987 <has_mte>: New method.
988 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
990 2021-03-24 Luis Machado <luis.machado@linaro.org>
992 * aarch64-linux-nat.c
993 (aarch64_linux_nat_target::read_description): Take MTE flag into
995 Slight refactor to hwcap flag checking.
996 * aarch64-linux-tdep.c
997 (aarch64_linux_core_read_description): Likewise.
998 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1000 (aarch64_read_description): Add mte_p parameter and update to use it.
1001 Update the documentation.
1002 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1003 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1004 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1005 (aarch64_create_target_description): Add mte_p parameter and update
1007 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1009 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1010 * features/aarch64-mte.c: New file, generated.
1011 * features/aarch64-mte.xml: New file.
1013 2021-03-24 Luis Machado <luis.machado@linaro.org>
1015 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1016 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1017 * aarch64-linux-tdep.c: Likewise
1018 * arch/aarch64-mte-linux.h: New file.
1020 2021-03-24 Luis Machado <luis.machado@linaro.org>
1022 * remote: Include gdbsupport/selftest.h.
1023 (test_memory_tagging_functions): New function.
1024 (_initialize_remote): Register test_memory_tagging_functions.
1026 2021-03-24 Luis Machado <luis.machado@linaro.org>
1028 * remote.c (PACKET_memory_tagging_feature): New enum.
1029 (remote_memory_tagging_p): New function.
1030 (remote_protocol_features): New "memory-tagging" entry.
1031 (remote_target::remote_query_supported): Handle memory tagging
1033 (remote_target::supports_memory_tagging): Implement.
1034 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1035 (create_store_memtags_request): New functions.
1036 (remote_target::fetch_memtags): Implement.
1037 (remote_target::store_memtags): Implement.
1038 (_initialize_remote): Add new "memory-tagging-feature"
1041 2021-03-24 Luis Machado <luis.machado@linaro.org>
1043 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1044 (default_memtag_matches_p, default_set_memtags)
1045 (default_get_memtag): New functions.
1046 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1047 (default_memtag_matches_p, default_set_memtags)
1048 (default_get_memtag): New prototypes.
1049 * gdbarch.c: Regenerate.
1050 * gdbarch.h: Regenerate.
1051 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1052 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1053 (enum memtag_type): New enum.
1055 2021-03-24 Luis Machado <luis.machado@linaro.org>
1057 * remote.c (remote_target) <supports_memory_tagging>: New method
1059 <fetch_memtags>: New method override.
1060 <store_memtags>: New method override.
1061 (remote_target::supports_memory_tagging): New method.
1062 (remote_target::fetch_memtags): New method.
1063 (remote_target::store_memtags): New method.
1064 * target-delegates.c: Regenerate.
1065 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1067 <fetch_memtags>: New virtual method.
1068 <store_memtags>: New virtual method.
1069 (target_supports_memory_tagging): Define.
1070 (target_fetch_memtags): Define.
1071 (target_store_memtags): Define.
1072 * target-debug.h (target_debug_print_size_t)
1073 (target_debug_print_const_gdb_byte_vector_r)
1074 (target_debug_print_gdb_byte_vector_r): New functions.
1076 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1078 * target.h (target_longname): Remove.
1080 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1082 * target.h (target_is_pushed): Remove, update callers to use
1083 inferior::target_is_pushed instead.
1084 * target.c (target_is_pushed): Remove.
1086 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1088 * target.h (push_target): Remove, update callers to use
1089 inferior::push_target.
1090 * target.c (push_target): Remove.
1091 * inferior.h (class inferior) <push_target>: New overload.
1093 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1095 * target.h (unpush_target): Remove, update all callers
1096 to use `inferior::unpush_target` instead.
1097 (struct target_unpusher) <operator()>: Just declare.
1098 * target.c (unpush_target): Remove.
1099 (target_unpusher::operator()): New.
1101 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1103 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1105 (process_full_comp_unit): Validate the top-level tag before
1106 processing the first DIE.
1107 (read_func_scope): Ensure we have a valid builder.
1109 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1111 * objc-lang.c (objc_demangle): Renamed to
1112 objc_language::demangle_symbol, and moved later in the file.
1113 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1115 (objc_language::demangle_symbol): Defined outside of class
1116 declaration. The definition is the old objc_demangle with NULL
1117 changed to nullptr, and if conditions relating to nullptr pointers
1118 or null character checks made explicit.
1119 * objc-lang.h (objc_demangle): Delete declaration.
1121 2021-03-22 Martin Liska <mliska@suse.cz>
1123 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1124 (_initialize_arm_tdep): Likewise.
1126 2021-03-20 Tom Tromey <tom@tromey.com>
1128 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1129 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1130 * psymtab.h (make_psymbol_functions): Don't declare.
1131 * psymtab.c (make_psymbol_functions): Remove.
1132 (maintenance_print_psymbols): Update.
1133 * psympriv.h (struct psymbol_functions): Add no-argument
1135 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1136 <partial_symtabs>: Remove.
1137 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1138 * elfread.c (read_partial_symbols): Update.
1139 (elf_symfile_read): Remove check for existing partial symbols.
1141 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1143 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1145 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1147 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1148 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1150 2021-03-20 Tom Tromey <tom@tromey.com>
1152 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1153 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1154 * symfile-debug.c (objfile::has_partial_symbols)
1155 (objfile::find_last_source_symtab)
1156 (objfile::forget_cached_source_info)
1157 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1158 (objfile::print_stats, objfile::dump)
1159 (objfile::expand_symtabs_for_function)
1160 (objfile::expand_all_symtabs)
1161 (objfile::expand_symtabs_with_fullname)
1162 (objfile::map_matching_symbols)
1163 (objfile::expand_symtabs_matching)
1164 (objfile::find_pc_sect_compunit_symtab)
1165 (objfile::map_symbol_filenames)
1166 (objfile::find_compunit_symtab_by_address)
1167 (objfile::lookup_global_symbol_language)
1168 (objfile::require_partial_symbols): Update.
1169 * psymtab.c (maintenance_print_psymbols)
1170 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1171 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1172 * objfiles.c (objfile_relocate1): Update.
1173 * elfread.c (elf_symfile_read): Update.
1175 2021-03-20 Tom Tromey <tom@tromey.com>
1177 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1179 2021-03-20 Tom Tromey <tom@tromey.com>
1181 * psymtab.c (psymbol_functions::count_psyms): Rename.
1182 (psymbol_functions::print_stats): Update.
1183 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1186 2021-03-20 Tom Tromey <tom@tromey.com>
1188 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1189 (psymbol_functions::find_pc_sect_psymtab): Rename.
1190 (psymbol_functions::find_pc_sect_compunit_symtab)
1191 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1192 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1194 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1196 2021-03-20 Tom Tromey <tom@tromey.com>
1198 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1199 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1200 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1202 (add_psymbol_to_bcache): Remove.
1203 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1204 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1206 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1207 <add_psymbol>: Likewise.
1208 (standard_psymtab, legacy_psymtab): Likewise.
1209 * mdebugread.c (parse_partial_symbols): Update.
1210 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1211 (handle_psymbol_enumerators): Update.
1212 (new_psymtab): Add partial_symtabs parameter.
1213 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1214 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1216 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1217 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1219 * dbxread.c (read_dbx_symtab): Update.
1220 (start_psymtab): Add partial_symtabs parameter.
1221 (dbx_end_psymtab): Update.
1222 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1223 (ctf_psymtab): Add partial_symtabs parameter.
1224 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1226 (scan_partial_symbols): Add partial_symtabs parameter.
1227 (scan_partial_symbols, elfctf_build_psymtabs)
1228 (ctf_psymtab_add_enums): Update.
1230 2021-03-20 Tom Tromey <tom@tromey.com>
1232 * symfile.c (read_symbols): Use objfile method.
1233 * symfile-debug.c (objfile::require_partial_symbols): New method.
1234 * psymtab.h (require_partial_symbols): Don't declare.
1235 * psymtab.c (require_partial_symbols): Use objfile method. Now
1237 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1238 (psymbol_functions::lookup_symbol)
1239 (psymbol_functions::lookup_global_symbol_language)
1240 (psymbol_functions::find_last_source_symtab)
1241 (psymbol_functions::forget_cached_source_info)
1242 (psymbol_functions::print_stats)
1243 (psymbol_functions::expand_symtabs_for_function)
1244 (psymbol_functions::expand_all_symtabs)
1245 (psymbol_functions::expand_symtabs_with_fullname)
1246 (psymbol_functions::map_symbol_filenames)
1247 (psymbol_functions::map_matching_symbols)
1248 (psymbol_functions::expand_symtabs_matching)
1249 (psymbol_functions::find_compunit_symtab_by_address)
1250 (maintenance_print_psymbols, maintenance_info_psymtabs)
1251 (maintenance_check_psymtabs): Update.
1252 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1255 2021-03-20 Tom Tromey <tom@tromey.com>
1257 * xcoffread.c (xcoff_sym_fns): Update.
1258 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1259 * symfile-debug.c (objfile::has_partial_symbols): Use
1260 can_lazily_read_symbols.
1261 (debug_sym_read_psymbols): Remove.
1262 (debug_sym_fns, install_symfile_debug_logging): Update.
1263 * quick-symbol.h (struct quick_symbol_functions)
1264 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1265 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1266 * mipsread.c (ecoff_sym_fns): Update.
1267 * machoread.c (macho_sym_fns): Update.
1268 * elfread.c (struct lazy_dwarf_reader): New.
1269 (elf_symfile_read): Update.
1270 (read_psyms): Now a method of lazy_dwarf_reader.
1271 (elf_sym_fns): Update.
1272 (elf_sym_fns_lazy_psyms): Remove.
1273 * dbxread.c (aout_sym_fns): Update.
1274 * coffread.c (coff_sym_fns): Update.
1276 2021-03-20 Tom Tromey <tom@tromey.com>
1278 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1279 (reread_symbols): Move reset_psymtabs call later.
1280 * objfiles.c (objfile::objfile): Don't initialize
1283 2021-03-20 Tom Tromey <tom@tromey.com>
1285 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1286 set_partial_symtabs.
1287 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1288 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1290 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1292 (psymbol_functions::find_pc_sect_compunit_symtab)
1293 (psymbol_functions::print_stats, psymbol_functions::dump)
1294 (psymbol_functions::has_symbols): Update.
1295 (make_psymbol_functions, dump_psymtab_addrmap): Add
1296 partial_symtabs parameter.
1297 (maintenance_print_psymbols): Update.
1298 (psymbol_functions::expand_symtabs_matching): Update.
1299 * psympriv.h (struct psymbol_functions): Add constructor.
1300 <m_partial_symtabs>: New member.
1301 <set_partial_symtabs>: New method.
1303 2021-03-20 Tom Tromey <tom@tromey.com>
1305 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1307 (process_psymtab_comp_unit_reader)
1308 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1309 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1310 Reference psymtabs via per_bfd.
1312 2021-03-20 Tom Tromey <tom@tromey.com>
1314 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1316 (add_address_entry): Remove objfile parameter.
1317 (add_address_entry_worker): Update.
1318 (write_address_map): Replace objfile parameter with per_bfd.
1319 (write_gdbindex, write_psymtabs_to_index): Update.
1321 2021-03-20 Tom Tromey <tom@tromey.com>
1323 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1324 print_bcache parameter.
1325 * symfile-debug.c (objfile::print_stats): Add print_bcache
1327 * quick-symbol.h (struct quick_symbol_functions)
1328 <print_stats>: Add print_bcache parameter.
1329 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1331 (print_objfile_statistics): Move psymtab code to psymtab.c.
1332 * psymtab.c (count_psyms): Move from symmisc.c.
1333 (psymbol_functions::print_stats): Print partial symbol and bcache
1334 statistics. Add print_bcache parameter.
1335 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1336 (struct objfile) <print_stats>: Add print_bcache parameter.
1337 * maint.c (maintenance_print_statistics): Update.
1339 2021-03-20 Tom Tromey <tom@tromey.com>
1341 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1343 * dwarf2/read.c (create_addrmap_from_index)
1344 (create_addrmap_from_aranges): Set per_bfd addrmap.
1345 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1346 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1348 (dwarf2_read_debug_names): Don't set partial_symtabs.
1349 (dwarf2_initialize_objfile): Likewise.
1351 2021-03-20 Tom Tromey <tom@tromey.com>
1353 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1356 2021-03-20 Tom Tromey <tom@tromey.com>
1358 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1359 (~psymtab_discarder, keep): Update.
1360 <m_objfile>: Remove.
1361 <m_partial_symtabs>: New member.
1362 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1364 2021-03-20 Tom Tromey <tom@tromey.com>
1366 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1367 (xcoff_end_psymtab): Update.
1368 (scan_xcoff_symtab): Add partial_symtabs parameter.
1369 (xcoff_initial_scan): Update.
1370 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1371 * mdebugread.c (mdebug_build_psymtabs): Update.
1372 (parse_partial_symbols): Add partial_symtabs parameter.
1373 * dbxread.c (dbx_symfile_read): Update.
1374 (read_dbx_symtab): Add partial_symtabs parameter.
1375 (read_dbx_symtab): Update.
1376 (dbx_end_psymtab): Add partial_symtabs parameter.
1378 2021-03-20 Tom Tromey <tom@tromey.com>
1380 * quick-symbol.h (struct quick_symbol_functions)
1381 <relocated>: New method.
1382 * psymtab.h (struct psymbol_functions) <relocated>: New
1384 <fill_psymbol_map>: Declare method.
1385 <m_psymbol_map>: New member.
1386 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1387 (psymbol_functions::find_compunit_symtab_by_address): Update.
1388 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1389 (struct objfile) <psymbol_map>: Remove.
1390 * objfiles.c (objfile_relocate1): Update.
1392 2021-03-20 Tom Tromey <tom@tromey.com>
1394 * psympriv.h (struct psymbol_functions): New.
1395 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1396 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1397 (objfile::lookup_global_symbol_language): Update.
1398 * quick-symbol.h (struct quick_symbol_functions): Convert function
1399 pointers to methods. Add virtual destructor.
1400 (quick_symbol_functions_up): New typedef.
1401 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1402 (dwarf2_debug_names_functions): Don't declare.
1403 (make_psymbol_functions): Declare.
1404 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1405 (psymbol_functions::find_pc_sect_compunit_symtab)
1406 (psymbol_functions::lookup_symbol)
1407 (psymbol_functions::lookup_global_symbol_language)
1408 (psymbol_functions::find_last_source_symtab)
1409 (psymbol_functions::forget_cached_source_info)
1410 (psymbol_functions::print_stats, psymbol_functions::dump)
1411 (psymbol_functions::expand_symtabs_for_function)
1412 (psymbol_functions::expand_all_symtabs)
1413 (psymbol_functions::expand_symtabs_with_fullname)
1414 (psymbol_functions::map_symbol_filenames)
1415 (psymbol_functions::map_matching_symbols)
1416 (psymbol_functions::expand_symtabs_matching)
1417 (psymbol_functions::has_symbols)
1418 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1419 (psym_functions): Remove.
1420 (make_psymbol_functions): New function.
1421 * objfiles.h (struct objfile) <qf>: Change type.
1422 * elfread.c (elf_symfile_read): Update.
1423 * dwarf2/read.c (struct dwarf2_base_index_functions)
1424 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1425 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1426 (dwarf2_base_index_functions::find_last_source_symtab)
1427 (dwarf2_base_index_functions::forget_cached_source_info)
1428 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1429 (dwarf2_gdb_index::lookup_symbol)
1430 (dwarf2_base_index_functions::print_stats)
1431 (dwarf2_gdb_index::dump)
1432 (dwarf2_gdb_index::expand_symtabs_for_function)
1433 (dwarf2_base_index_functions::expand_all_symtabs)
1434 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1436 (dwarf2_gdb_index::map_matching_symbols): New method.
1437 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1438 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1439 (dwarf2_base_index_functions::map_symbol_filenames)
1440 (dwarf2_base_index_functions::has_symbols): Rename.
1441 (dwarf2_gdb_index_functions): Remove.
1442 (dwarf2_debug_names_index::lookup_symbol)
1443 (dwarf2_debug_names_index::dump)
1444 (dwarf2_debug_names_index::expand_symtabs_for_function)
1445 (dwarf2_debug_names_index::map_matching_symbols)
1446 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1447 (dwarf2_debug_names_functions): Remove.
1448 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1451 2021-03-20 Tom Tromey <tom@tromey.com>
1453 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1455 * xcoffread.c (xcoff_sym_fns): Update.
1456 * symfile.h (struct sym_fns) <qf>: Remove.
1457 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1458 * symfile-debug.c (objfile::has_partial_symbols)
1459 (objfile::find_last_source_symtab)
1460 (objfile::forget_cached_source_info)
1461 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1462 (objfile::print_stats, objfile::dump)
1463 (objfile::expand_symtabs_for_function)
1464 (objfile::expand_all_symtabs)
1465 (objfile::expand_symtabs_with_fullname)
1466 (objfile::map_matching_symbols)
1467 (objfile::expand_symtabs_matching)
1468 (objfile::find_pc_sect_compunit_symtab)
1469 (objfile::map_symbol_filenames)
1470 (objfile::find_compunit_symtab_by_address)
1471 (objfile::lookup_global_symbol_language, debug_sym_fns)
1472 (install_symfile_debug_logging): Update.
1473 * objfiles.h (struct objfile) <qf>: New member.
1474 * mipsread.c (ecoff_sym_fns): Update.
1475 * machoread.c (macho_sym_fns): Update.
1476 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1478 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1479 * dbxread.c (aout_sym_fns): Update.
1480 * coffread.c (coff_sym_fns): Update.
1482 2021-03-20 Tom Tromey <tom@tromey.com>
1484 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1485 (expand_symtabs_file_matcher_ftype)
1486 (expand_symtabs_symbol_matcher_ftype)
1487 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1488 Move to quick-symbol.h.
1489 * quick-symbol.h: New file.
1491 2021-03-20 Tom Tromey <tom@tromey.com>
1493 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1494 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1495 (basic_lookup_transparent_type_quick)
1496 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1497 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1499 * symmisc.c (print_objfile_statistics, dump_objfile)
1500 (maintenance_expand_symtabs): Update.
1501 * symfile.c (symbol_file_add_with_addrs)
1502 (expand_symtabs_matching, map_symbol_filenames): Update.
1503 * symfile-debug.c (objfile::has_partial_symbols)
1504 (objfile::find_last_source_symtab)
1505 (objfile::forget_cached_source_info)
1506 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1507 (objfile::print_stats, objfile::dump)
1508 (objfile::expand_symtabs_for_function)
1509 (objfile::expand_all_symtabs)
1510 (objfile::expand_symtabs_with_fullname)
1511 (objfile::map_matching_symbols)
1512 (objfile::expand_symtabs_matching)
1513 (objfile::find_pc_sect_compunit_symtab)
1514 (objfile::map_symbol_filenames)
1515 (objfile::find_compunit_symtab_by_address)
1516 (objfile::lookup_global_symbol_language): New methods.
1517 (debug_sym_quick_functions): Remove.
1518 (debug_sym_fns, install_symfile_debug_logging): Update.
1519 * source.c (forget_cached_source_info_for_objfile)
1520 (select_source_symtab): Update.
1521 * objfiles.h (struct objfile): Add methods corresponding to
1522 quick_symbol_functions.
1523 * objfiles.c (objfile::has_partial_symbols): Move to
1525 * linespec.c (iterate_over_all_matching_symtabs): Update.
1526 * cp-support.c (add_symbol_overload_list_qualified): Update.
1527 * ada-lang.c (add_nonlocal_symbols): Update.
1529 2021-03-20 Tom Tromey <tom@tromey.com>
1531 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1532 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1534 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1535 * psymtab.c (psym_has_symbols): Return bool.
1536 * objfiles.c (objfile::has_partial_symbols): Return bool.
1537 * dwarf2/read.c (dw2_has_symbols): Return bool.
1539 2021-03-20 Tom Tromey <tom@tromey.com>
1541 * symfile.c (read_symbols): Update.
1542 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1543 (objfile_has_partial_symbols): Don't declare.
1544 * objfiles.c (objfile::has_partial_symbols): Rename from
1545 objfile_has_partial_symbols.
1546 (objfile_has_symbols, have_partial_symbols): Update.
1547 * elfread.c (elf_symfile_read): Update.
1548 * dwarf2/read.c (dwarf2_has_info): Update.
1549 * coffread.c (coff_symfile_read): Update.
1551 2021-03-20 Tom Tromey <tom@tromey.com>
1553 * coffread.c: Include dwarf2/public.h.
1554 * dwarf2/frame.c: Include dwarf2/public.h.
1555 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1556 * dwarf2/public.h: New file.
1557 * dwarf2/read.c: Include dwarf2/public.h.
1558 * elfread.c: Include dwarf2/public.h.
1559 * machoread.c: Include dwarf2/public.h.
1560 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1561 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1562 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1563 * xcoffread.c: Include dwarf2/public.h.
1565 2021-03-20 Tom Tromey <tom@tromey.com>
1567 * symfile.h (enum dwarf2_section_enum)
1568 (dwarf2_get_section_info): Move to dwarf2/read.h.
1569 * dwarf2/read.h (enum dwarf2_section_enum)
1570 (dwarf2_get_section_info): Move from symfile.h.
1572 2021-03-19 Pedro Alves <pedro@palves.net>
1574 * thread.c (any_thread_of_inferior): Check if there's a selected
1575 thread before calling inferior_thread().
1577 2021-03-18 Tom Tromey <tromey@adacore.com>
1579 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1581 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1582 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1584 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1586 * python/py-param.c (get_set_value): Update header comment.
1588 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
1590 * infrun.c (check_multi_target_resumption): Remove argument to
1591 all_non_exited_inferiors.
1593 2021-03-16 Christian Biesinger <cbiesinger@google.com>
1595 * windows-nat.c (windows_init_thread_list): Add message to
1598 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
1600 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1601 well as PyLong_Check for Python 2.
1603 2021-03-15 Tom Tromey <tromey@adacore.com>
1606 * rust-exp.y (maker_map): Use gdb::hash_enum.
1607 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1609 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1611 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1614 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1616 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1617 parameter, adjust caller.
1619 2021-03-15 Tom Tromey <tromey@adacore.com>
1621 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1623 2021-03-15 Tom Tromey <tromey@adacore.com>
1625 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1626 ada_ensure_varsize_limit.
1628 2021-03-15 Tom Tromey <tromey@adacore.com>
1630 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1632 * ada-exp.y (maybe_overload): New function.
1633 (ada_wrap_overload): New function.
1634 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1635 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1636 (or_else_exp, xor_exp, primary): Update.
1638 2021-03-15 Tom Tromey <tromey@adacore.com>
1641 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1642 call for tagged type.
1644 2021-03-15 Tom Tromey <tromey@adacore.com>
1646 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1649 2021-03-15 Tom Tromey <tromey@adacore.com>
1651 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1653 (ada_assign_operation::evaluate): Update.
1654 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1657 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
1659 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1661 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
1663 * python/python.c (gdbpy_source_objfile_script): Use
1664 make_scoped_restore to restore gdbpy_current_objfile.
1665 (gdbpy_execute_objfile_script): Likewise.
1667 2021-03-14 Tom Tromey <tom@tromey.com>
1669 * dwarf2/read.c (read_attribute_value): Use cu_header
1672 2021-03-14 Tom Tromey <tom@tromey.com>
1674 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1675 (peek_die_abbrev): Use reader.abfd.
1677 2021-03-14 Tom Tromey <tom@tromey.com>
1679 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1682 2021-03-13 Tom Tromey <tom@tromey.com>
1684 * dwarf2/read.c (struct partial_die_info): Update.
1685 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1686 (load_partial_dies, partial_die_info::partial_die_info): Update.
1687 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1689 2021-03-13 Tom Tromey <tom@tromey.com>
1691 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1693 2021-03-12 Christian Biesinger <cbiesinger@google.com>
1696 * cp-support.c: Use scoped_segv_handler_restore.
1697 * event-top.c (thread_local_segv_handler): Made static.
1698 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1700 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1702 * event-top.h (class scoped_segv_handler_restore): New class.
1703 (thread_local_segv_handler): Removed.
1705 2021-03-10 Tom Tromey <tromey@adacore.com>
1707 * parser-defs.h (parser_state): Change completion to bool.
1708 <parse_completion>: Likewise.
1709 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1710 (ada_resolve_variable, ada_resolve_function): Update.
1711 * ada-lang.c (ada_find_operator_symbol): Change
1712 parse_completion to bool.
1713 (ada_resolve_funcall, ada_resolve_variable)
1714 (ada_resolve_function): Likewise.
1716 2021-03-09 Tom Tromey <tromey@adacore.com>
1718 * eval.c (operation::evaluate_funcall): Use function formal
1719 parameter types when evaluating.
1721 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1723 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1724 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1725 and owner to m_owner.
1727 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1729 * f-exp.h (eval_op_f_loc): Declare.
1730 (expr::fortran_loc_operation): New typedef.
1731 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1733 (f77_keywords): Add LOC keyword.
1734 * f-lang.c (eval_op_f_loc): New function.
1735 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1737 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1739 * f-exp.h (eval_op_f_array_shape): Declare.
1740 (fortran_array_shape_operation): New type.
1741 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1743 (f77_keywords): Add "shape" keyword.
1744 * f-lang.c (fortran_array_shape): New function.
1745 (eval_op_f_array_shape): New function.
1746 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1748 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1750 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1752 (expr::fortran_array_size_1arg): New type.
1753 (expr::fortran_array_size_2arg): Likewise.
1754 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1755 UNOP_OR_BINOP_INTRINSIC.
1756 (f77_keywords): Add "size" keyword.
1757 * f-lang.c (fortran_array_size): New function.
1758 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1759 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1761 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1763 * f-exp.h (eval_op_f_rank): Declare.
1764 (expr::fortran_rank_operation): New typedef.
1765 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1767 (f77_keywords): Add "rank" keyword.
1768 * f-lang.c (eval_op_f_rank): New function.
1769 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1771 2021-03-08 Tom Tromey <tom@tromey.com>
1773 * printcmd.c (set_command): Remove null check.
1774 * value.c (init_if_undefined_command): Remove null check.
1776 2021-03-08 Tom Tromey <tom@tromey.com>
1778 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1780 * p-exp.y (variable): Update.
1781 * go-exp.y (variable): Update.
1782 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1783 Remove overload for objfile.
1784 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1786 (check_objfile): Likewise.
1787 (dump_for_expression): Likewise. Remove overload for objfile.
1788 (class var_msym_value_operation): Use bound_minimal_symbol.
1789 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1791 (var_msym_value_operation::evaluate_for_address)
1792 (var_msym_value_operation::evaluate_for_sizeof)
1793 (var_msym_value_operation::evaluate_for_cast): Update.
1794 * d-exp.y (PrimaryExpression): Update.
1795 * c-exp.y (variable): Update.
1796 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1797 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1799 * ada-exp.y (write_var_or_type): Update.
1801 2021-03-08 Tom Tromey <tom@tromey.com>
1803 * parser-defs.h (exp_uses_objfile): Return bool.
1804 * parse.c (exp_uses_objfile): Return bool.
1806 2021-03-08 Tom Tromey <tom@tromey.com>
1808 * value.h (eval_skip_value): Don't declare.
1809 * opencl-lang.c (eval_opencl_assign): Update.
1810 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1811 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1812 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1813 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1814 * expop.h (typeof_operation::evaluate)
1815 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1816 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1817 (cxx_cast_operation::evaluate): Update.
1818 * eval.c (eval_skip_value): Remove.
1819 (eval_op_scope, eval_op_var_entry_value)
1820 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1821 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1822 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1823 (eval_op_binary, eval_op_subscript, eval_op_equal)
1824 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1825 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1826 (eval_op_complement, eval_op_lognot, eval_op_ind)
1827 (eval_op_memval, eval_op_preinc, eval_op_predec)
1828 (eval_op_postinc, eval_op_postdec, eval_op_type)
1829 (eval_binop_assign_modify, eval_op_objc_msgcall)
1830 (eval_multi_subscript, logical_and_operation::evaluate)
1831 (logical_or_operation::evaluate, array_operation::evaluate)
1832 (operation::evaluate_for_cast)
1833 (var_msym_value_operation::evaluate_for_cast)
1834 (var_value_operation::evaluate_for_cast): Update.
1835 * c-lang.c (c_string_operation::evaluate): Update.
1836 * c-exp.h (objc_nsstring_operation::evaluate)
1837 (objc_selector_operation::evaluate): Update.
1838 * ada-lang.c (ada_assign_operation::evaluate)
1839 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1840 (ada_atr_size): Update.
1842 2021-03-08 Tom Tromey <tom@tromey.com>
1844 * eval.c: Merge "namespace" scopes.
1846 2021-03-08 Tom Tromey <tom@tromey.com>
1848 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1850 * parse.c (expr_builder::expr_builder, expr_builder::release):
1853 2021-03-08 Tom Tromey <tom@tromey.com>
1855 * parse.c (expression::expression, expression::~expression):
1857 * expression.h (struct expression): Inline constructor. Remove
1860 2021-03-08 Tom Tromey <tom@tromey.com>
1862 * std-operator.def (BINOP_END): Remove.
1863 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1864 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1865 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1866 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1867 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1870 2021-03-08 Tom Tromey <tom@tromey.com>
1872 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1874 2021-03-08 Tom Tromey <tom@tromey.com>
1876 * std-operator.def (OP_EXTENDED0): Remove.
1878 2021-03-08 Tom Tromey <tom@tromey.com>
1880 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1881 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1884 2021-03-08 Tom Tromey <tom@tromey.com>
1886 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1887 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1889 2021-03-08 Tom Tromey <tom@tromey.com>
1891 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1892 * ada-lang.c (ada_binop_minmax): Update.
1893 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1894 Use BINOP_MIN and BINOP_MAX.
1896 2021-03-08 Tom Tromey <tom@tromey.com>
1898 * value.h (evaluate_subexp_with_coercion): Don't declare.
1899 * parse.c (exp_descriptor_standard): Remove.
1900 (expr_builder::expr_builder, expr_builder::release): Update.
1901 (expression::expression): Remove size_t parameter.
1902 (expression::~expression): Simplify.
1903 (expression::resize): Remove.
1904 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1905 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1906 (write_exp_elt_longcst, write_exp_elt_floatcst)
1907 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1908 (write_exp_string_vector, write_exp_bitstring): Remove.
1909 * p-lang.h (class pascal_language) <opcode_print_table,
1910 op_print_tab>: Remove.
1911 * p-lang.c (pascal_language::op_print_tab): Remove.
1912 * opencl-lang.c (class opencl_language) <opcode_print_table>:
1914 * objc-lang.c (objc_op_print_tab): Remove.
1915 (class objc_language) <opcode_print_table>: Remove.
1916 * m2-lang.h (class m2_language) <opcode_print_table,
1917 op_print_tab>: Remove.
1918 * m2-lang.c (m2_language::op_print_tab): Remove.
1919 * language.h (struct language_defn) <post_parser, expression_ops,
1920 opcode_print_table>: Remove.
1921 * language.c (language_defn::expression_ops)
1922 (auto_or_unknown_language::opcode_print_table): Remove.
1923 * go-lang.h (class go_language) <opcode_print_table,
1924 op_print_tab>: Remove.
1925 * go-lang.c (go_language::op_print_tab): Remove.
1926 * f-lang.h (class f_language) <opcode_print_table>: Remove
1927 <op_print_tab>: Remove.
1928 * f-lang.c (f_language::op_print_tab): Remove.
1929 * expression.h (union exp_element): Remove.
1930 (struct expression): Remove size_t parameter from constructor.
1932 <first_opcode>: Update.
1933 <nelts, elts>: Remove.
1934 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
1935 (evaluate_subexp_standard, print_expression, op_string)
1936 (dump_raw_expression): Don't declare.
1937 * expprint.c (print_expression, print_subexp)
1938 (print_subexp_funcall, print_subexp_standard, op_string)
1939 (dump_raw_expression, dump_subexp, dump_subexp_body)
1940 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
1941 (dump_prefix_expression): Update.
1942 * eval.c (evaluate_subexp): Remove.
1943 (evaluate_expression, evaluate_type): Update.
1944 (evaluate_subexpression_type): Remove.
1945 (fetch_subexp_value): Remove "pc" parameter. Update.
1946 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
1947 (evaluate_subexp_standard, evaluate_subexp_for_address)
1948 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
1949 (evaluate_subexp_for_cast): Remove.
1950 (parse_and_eval_type): Update.
1951 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1952 * d-lang.c (d_op_print_tab): Remove.
1953 (class d_language) <opcode_print_table>: Remove.
1954 * c-lang.h (c_op_print_tab): Don't declare.
1955 * c-lang.c (c_op_print_tab): Remove.
1956 (class c_language, class cplus_language, class asm_language, class
1957 minimal_language) <opcode_print_table>: Remove.
1958 * breakpoint.c (update_watchpoint, watchpoint_check)
1959 (watchpoint_exp_is_const, watch_command_1): Update.
1960 * ax-gdb.h (union exp_element): Don't declare.
1961 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
1962 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
1963 (gen_expr_binop_rest): Remove.
1964 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
1965 * ada-lang.c (ada_op_print_tab): Remove.
1966 (class ada_language) <post_parser, opcode_print_table>: Remove.
1968 2021-03-08 Tom Tromey <tom@tromey.com>
1970 * go-lang.c (go_language::expression_ops): Don't declare.
1971 * go-lang.h (class go_language) <expression_ops>: Remove.
1972 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
1974 (class opencl_language) <expression_ops>: Remove.
1975 * d-lang.c (class d_language) <expression_ops>: Remove.
1976 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
1977 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
1978 (class c_language, class cplus_language, class asm_language)
1979 (class minimal_language) <expression_ops>: Remove.
1981 2021-03-08 Tom Tromey <tom@tromey.com>
1983 * ada-lang.c (resolve_subexp, replace_operator_with_call)
1984 (evaluate_subexp_type, assign_aggregate)
1985 (aggregate_assign_positional, aggregate_assign_from_choices)
1986 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
1987 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
1988 (ada_operator_check, ada_forward_operator_length)
1989 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1991 (post_parser): Update.
1992 (class ada_language) <expresssion_ops>: Remove.
1994 2021-03-08 Tom Tromey <tom@tromey.com>
1996 * m2-lang.h (class m2_language) <expresssion_ops,
1997 exp_descriptor_modula2>: Remove.
1998 * m2-lang.c (evaluate_subexp_modula2)
1999 (m2_language::exp_descriptor_modula2): Remove.
2001 2021-03-08 Tom Tromey <tom@tromey.com>
2003 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2004 <exp_descriptor_tab>: Remove.
2005 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2006 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2007 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2008 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2011 2021-03-08 Tom Tromey <tom@tromey.com>
2013 * rust-lang.h (class rust_language) <expression_ops,
2014 exp_descriptor_tab>: Remove.
2015 * rust-lang.c (rust_evaluate_funcall): Remove.
2016 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2018 (rust_evaluate_subexp): Remove.
2019 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2020 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2021 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2023 2021-03-08 Tom Tromey <tom@tromey.com>
2025 * ada-exp.y: Create operations.
2026 (empty_stoken): Remove.
2027 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2028 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2029 (components): New global.
2030 (push_component, choice_component, pop_component, pop_components):
2032 (associations): New global
2033 (push_association, pop_association, pop_associations): New
2035 (ada_parse): Update.
2036 (write_var_from_sym, write_int): Create operations.
2037 (write_exp_op_with_string): Remove.
2038 (write_object_renaming, write_selectors, write_ambiguous_var)
2039 (write_var_or_type, write_name_assoc): Create operations.
2040 * ada-lang.h (ada_index_type): Declare.
2041 * ada-lang.c (ada_index_type): No longer static.
2043 2021-03-08 Tom Tromey <tom@tromey.com>
2045 * f-exp.y: Create operations.
2046 (f_language::parser): Update.
2048 2021-03-08 Tom Tromey <tom@tromey.com>
2050 * m2-exp.y: Create operations.
2051 (m2_language::parser): Update.
2053 2021-03-08 Tom Tromey <tom@tromey.com>
2055 * p-exp.y: Create operations.
2056 (pascal_language::parser): Update.
2058 2021-03-08 Tom Tromey <tom@tromey.com>
2060 * d-exp.y: Create operations.
2063 2021-03-08 Tom Tromey <tom@tromey.com>
2065 * go-exp.y: Create operations.
2066 (go_language::parser): Update.
2068 2021-03-08 Tom Tromey <tom@tromey.com>
2070 * objc-lang.c (end_msglist): Create operations.
2071 * c-exp.y: Change parser to create operations.
2072 (write_destructor_name): Remove.
2075 2021-03-08 Tom Tromey <tom@tromey.com>
2077 * rust-exp.y: Create operations.
2078 (rust_parser::convert_params_to_expression): Change return type.
2079 (binop_maker_ftype): New typedef.
2080 (maker_map): New global.
2081 (rust_parser::convert_ast_to_expression): Change return type.
2082 (rust_language::parser): Update.
2083 (_initialize_rust_exp): Initialize maker_map.
2085 2021-03-08 Tom Tromey <tom@tromey.com>
2087 * stap-probe.c (binop_maker_ftype): New typedef.
2088 (stap_maker_map): New global.
2089 (stap_make_binop): New function.
2090 (stap_parse_register_operand): Return operation_up.
2091 (stap_parse_single_operand, stap_parse_argument_conditionally)
2092 (stap_parse_argument_1): Likewise.
2093 (stap_parse_argument): Create operations.
2094 (stap_probe::parse_arguments): Update.
2095 (_initialize_stap_probe): Initialize stap_maker_map.
2096 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2098 * i386-tdep.h (i386_stap_parse_special_token): Change return
2100 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2101 (i386_stap_parse_special_token_three_arg_disp)
2102 (i386_stap_parse_special_token): Change return type.
2103 * gdbarch.sh (stap_parse_special_token): Change return type.
2104 * gdbarch.c: Rebuild.
2105 * gdbarch.h: Rebuild.
2106 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2108 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2111 2021-03-08 Tom Tromey <tom@tromey.com>
2113 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2114 * gdbarch.h: Rebuild.
2115 * gdbarch.c: Rebuild.
2116 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2117 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2119 (amd64_dtrace_parse_probe_argument): Update.
2121 2021-03-08 Tom Tromey <tom@tromey.com>
2123 * parser-defs.h (struct parser_state) <push, push_new,
2124 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2125 wrap2>: New methods.
2126 <m_operations>: New member.
2127 * parse.c (parser_state::push_c_string)
2128 (parser_state::push_symbol, parser_state::push_dollar): New
2131 2021-03-08 Tom Tromey <tom@tromey.com>
2133 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2135 (struct parser_state) <mark_struct_expression>: New method.
2136 * parse.c (parser_state::mark_struct_expression): Update assert.
2137 (parser_state::mark_struct_expression): New method.
2138 (parser_state::mark_completion_tag): Update assert.
2139 (parse_expression_for_completion): Handle expout_last_op.
2141 2021-03-08 Tom Tromey <tom@tromey.com>
2143 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2145 * value.h (fetch_subexp_value): Add "op" parameter.
2146 * value.c (init_if_undefined_command): Update.
2147 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2148 * stap-probe.c (stap_probe::compile_to_ax): Update.
2149 * printcmd.c (set_command): Update.
2150 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2152 * parser-defs.h (struct expr_builder) <set_operation>: New
2154 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2155 * expression.h (struct expression) <first_opcode>: Update.
2157 * expprint.c (dump_raw_expression, dump_prefix_expression):
2159 * expop.h (class var_value_operation) <get_symbol>: New method.
2160 (class register_operation) <get_name>: New method.
2161 (class equal_operation): No longer a typedef, now a subclass.
2162 (class unop_memval_operation) <get_type>: New method.
2163 (class assign_operation) <get_lhs>: New method.
2164 (class unop_cast_operation) <get_type>: New method.
2165 * eval.c (evaluate_expression, evaluate_type)
2166 (evaluate_subexpression_type): Update.
2167 (fetch_subexp_value): Add "op" parameter.
2168 (parse_and_eval_type): Update.
2169 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2170 * breakpoint.c (update_watchpoint, watchpoint_check)
2171 (watchpoint_exp_is_const, watch_command_1): Update.
2172 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2175 2021-03-08 Tom Tromey <tom@tromey.com>
2177 * ada-lang.c (ada_value_binop): Do not use op_string.
2179 2021-03-08 Tom Tromey <tom@tromey.com>
2181 * expprint.c (dump_for_expression): New overload.
2182 * expop.h (check_objfile, dump_for_expression): Declare new
2184 * ada-lang.c (check_objfile): New overload.
2185 (assign_component, ada_aggregate_component::uses_objfile)
2186 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2187 (ada_aggregate_component::assign_aggregate)
2188 (ada_positional_component::uses_objfile)
2189 (ada_positional_component::dump, ada_positional_component::assign)
2190 (ada_discrete_range_association::uses_objfile)
2191 (ada_discrete_range_association::dump)
2192 (ada_discrete_range_association::assign)
2193 (ada_name_association::uses_objfile, ada_name_association::dump)
2194 (ada_name_association::assign)
2195 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2196 (ada_choices_component::assign)
2197 (ada_others_component::uses_objfile, ada_others_component::dump)
2198 (ada_others_component::assign, ada_assign_operation::evaluate):
2200 * ada-exp.h (ada_string_operation) <get_name>: New method.
2201 (class ada_assign_operation): New.
2202 (class ada_component): New.
2203 (ada_component_up): New typedef.
2204 (class ada_aggregate_operation, class ada_aggregate_component)
2205 (class ada_positional_component, class ada_others_component)
2206 (class ada_association): New.
2207 (ada_association_up): New typedef.
2208 (class ada_choices_component)
2209 (class ada_discrete_range_association)
2210 (class ada_name_association): New.
2212 2021-03-08 Tom Tromey <tom@tromey.com>
2214 * ada-lang.c (ada_var_value_operation::resolve)
2215 (ada_funcall_operation::resolve)
2216 (ada_ternop_slice_operation::resolve): New methods.
2217 * ada-exp.h (struct ada_resolvable): New.
2218 (class ada_var_value_operation): Derive from ada_resolvable.
2219 <get_block, resolve>: New methods.
2220 (class ada_funcall_operation): Derive from ada_resolvable.
2221 <resolve>: New method.
2222 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2223 <resolve>: New method.
2225 2021-03-08 Tom Tromey <tom@tromey.com>
2227 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2228 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2230 (class ada_funcall_operation): New.
2232 2021-03-08 Tom Tromey <tom@tromey.com>
2234 * ada-lang.c (ada_structop_operation::evaluate): New method.
2235 * ada-exp.h (class ada_structop_operation): New.
2237 2021-03-08 Tom Tromey <tom@tromey.com>
2239 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2240 * ada-exp.h (class ada_unop_ind_operation): New.
2242 2021-03-08 Tom Tromey <tom@tromey.com>
2244 * ada-lang.c (ada_binop_exp): No longer static.
2245 * ada-exp.h (ada_binop_exp_operation): New typedef.
2247 2021-03-08 Tom Tromey <tom@tromey.com>
2249 * ada-lang.c (ada_val_atr): No longer static.
2250 (ada_atr_val_operation::evaluate): New method.
2251 * ada-exp.h (class ada_atr_val_operation): New.
2253 2021-03-08 Tom Tromey <tom@tromey.com>
2255 * ada-lang.c (ada_pos_atr): No longer static.
2256 * ada-exp.h (ada_pos_operation): New typedef.
2258 2021-03-08 Tom Tromey <tom@tromey.com>
2260 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2262 (ada_evaluate_subexp): Use it.
2264 2021-03-08 Tom Tromey <tom@tromey.com>
2266 * ada-lang.c (ada_binop_minmax): No longer static.
2267 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2270 2021-03-08 Tom Tromey <tom@tromey.com>
2272 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2274 * ada-exp.h (class ada_var_msym_value_operation): New.
2276 2021-03-08 Tom Tromey <tom@tromey.com>
2278 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2279 (ada_var_value_operation::evaluate): New methods.
2280 * ada-exp.h (class ada_var_value_operation): New.
2282 2021-03-08 Tom Tromey <tom@tromey.com>
2284 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2285 * ada-exp.h (class ada_unop_atr_operation): New.
2287 2021-03-08 Tom Tromey <tom@tromey.com>
2289 * ada-lang.c (ada_binop_in_bounds): No longer static.
2290 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2292 2021-03-08 Tom Tromey <tom@tromey.com>
2294 * ada-lang.c (ada_ternop_slice): No longer static.
2295 * ada-exp.h (class ada_ternop_slice_operation): New.
2297 2021-03-08 Tom Tromey <tom@tromey.com>
2299 * ada-exp.h (ada_bitwise_operation): New template class.
2300 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2301 (ada_bitwise_xor_operation): New typedefs.
2303 2021-03-08 Tom Tromey <tom@tromey.com>
2305 * ada-lang.c (ada_equal_binop): No longer static.
2306 * ada-exp.h (class ada_binop_equal_operation): New.
2308 2021-03-08 Tom Tromey <tom@tromey.com>
2310 * ada-lang.c (ada_mult_binop): No longer static.
2311 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2312 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2314 2021-03-08 Tom Tromey <tom@tromey.com>
2316 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2317 * ada-exp.h (class ada_binop_addsub_operation): New.
2319 2021-03-08 Tom Tromey <tom@tromey.com>
2321 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2322 (ada_resolve_variable): Declare.
2323 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2324 (ada_resolve_variable): New functions.
2325 (resolve_subexp): Update.
2327 2021-03-08 Tom Tromey <tom@tromey.com>
2329 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2331 * c-exp.h (class opencl_ternop_cond_operation): New.
2333 2021-03-08 Tom Tromey <tom@tromey.com>
2335 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2337 * c-exp.h (class opencl_logical_binop_operation): New.
2339 2021-03-08 Tom Tromey <tom@tromey.com>
2341 * opencl-lang.c (opencl_structop_operation::evaluate): New
2343 * c-exp.h (class opencl_structop_operation): New.
2345 2021-03-08 Tom Tromey <tom@tromey.com>
2347 * opencl-lang.c (opencl_logical_not): No longer static. Change
2349 (evaluate_subexp_opencl): Update.
2350 * c-exp.h (opencl_notequal_operation): New typedef.
2352 2021-03-08 Tom Tromey <tom@tromey.com>
2354 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2355 static. Change parameters.
2356 (eval_opencl_assign): No longer static. Add "op" parameter.
2357 (evaluate_subexp_opencl): Update.
2358 * c-exp.h (opencl_binop_operation): New template class.
2359 (opencl_assign_operation, opencl_equal_operation)
2360 (opencl_notequal_operation, opencl_less_operation)
2361 (opencl_gtr_operation, opencl_geq_operation)
2362 (opencl_leq_operation): New typedefs.
2364 2021-03-08 Tom Tromey <tom@tromey.com>
2366 * opencl-lang.c (opencl_value_cast): No longer static.
2367 * c-exp.h (opencl_cast_type_operation): New typedef.
2369 2021-03-08 Tom Tromey <tom@tromey.com>
2371 * f-exp.h (eval_op_f_allocated): Declare.
2372 (fortran_allocated_operation): New typedef.
2373 * f-lang.c (eval_op_f_allocated): No longer static.
2375 2021-03-08 Tom Tromey <tom@tromey.com>
2377 * f-lang.c (eval_op_f_associated): New functions.
2378 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2381 2021-03-08 Tom Tromey <tom@tromey.com>
2383 * f-lang.c (fortran_bound_1arg::evaluate)
2384 (fortran_bound_2arg::evaluate): New methods.
2385 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2388 2021-03-08 Tom Tromey <tom@tromey.com>
2390 * expop.h (class unop_addr_operation) <get_expression>: New
2392 * f-lang.c (fortran_undetermined::value_subarray)
2393 (fortran_undetermined::evaluate): New methods.
2394 (fortran_prepare_argument): New overload.
2395 * f-exp.h (class fortran_range_operation)
2396 (class fortran_undetermined): New classes.
2398 2021-03-08 Tom Tromey <tom@tromey.com>
2400 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2401 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2404 2021-03-08 Tom Tromey <tom@tromey.com>
2406 * expression.h (class operation) <evaluate_funcall>: New methods.
2407 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2408 (class var_value_operation) <evaluate_funcall>: New method.
2409 (class structop_base_operation) <evaluate_funcall>: New method.
2410 (class var_msym_value_operation) <evaluate_funcall>: New method.
2411 (class structop_member_base): New class.
2412 (class structop_member_operation): Derive from
2413 structop_member_base.
2414 (class structop_mptr_operation): Derive from
2415 structop_member_base.
2416 (class funcall_operation): New class.
2417 * eval.c (operation::evaluate_funcall)
2418 (var_value_operation::evaluate_funcall)
2419 (scope_operation::evaluate_funcall)
2420 (structop_member_base::evaluate_funcall)
2421 (structop_base_operation::evaluate_funcall): New methods.
2423 2021-03-08 Tom Tromey <tom@tromey.com>
2425 * expop.h (class array_operation): New.
2426 * eval.c (array_operation::evaluate_struct_tuple)
2427 (array_operation::evaluate): New methods.
2429 2021-03-08 Tom Tromey <tom@tromey.com>
2431 * expop.h (class adl_func_operation): New.
2432 * eval.c (adl_func_operation::evaluate): New method.
2434 2021-03-08 Tom Tromey <tom@tromey.com>
2436 * ada-lang.c (ada_unop_in_range): No longer static.
2437 * ada-exp.h (class ada_unop_range_operation): New.
2439 2021-03-08 Tom Tromey <tom@tromey.com>
2441 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2443 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2444 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2446 2021-03-08 Tom Tromey <tom@tromey.com>
2448 * expop.h (class logical_and_operation)
2449 (class logical_or_operation): New.
2450 * eval.c (logical_and_operation::evaluate)
2451 (logical_or_operation::evaluate): New methods.
2452 * ax-gdb.c (logical_and_operation::do_generate_ax)
2453 (logical_or_operation::do_generate_ax): New methods.
2455 2021-03-08 Tom Tromey <tom@tromey.com>
2457 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2459 * m2-exp.h: New file.
2461 2021-03-08 Tom Tromey <tom@tromey.com>
2463 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2464 * rust-exp.h (class rust_aggregate_operation): New.
2466 2021-03-08 Tom Tromey <tom@tromey.com>
2468 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2470 * rust-exp.h (class rust_struct_anon): New.
2471 (class rust_structop): New.
2473 2021-03-08 Tom Tromey <tom@tromey.com>
2475 * rust-lang.c (rust_range): No longer static.
2476 * rust-exp.h (class rust_range_operation): New.
2478 2021-03-08 Tom Tromey <tom@tromey.com>
2480 * rust-lang.c (rust_subscript): No longer static.
2481 * rust-exp.h (class rust_subscript_operation): New.
2483 2021-03-08 Tom Tromey <tom@tromey.com>
2485 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2487 (rust_evaluate_subexp): Update.
2488 * rust-exp.h (class rust_unop_ind_operation): New.
2490 2021-03-08 Tom Tromey <tom@tromey.com>
2492 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2493 longer static. Add "opcode" parameter.
2494 (rust_evaluate_subexp): Update.
2495 * rust-exp.h: New file.
2497 2021-03-08 Tom Tromey <tom@tromey.com>
2499 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2500 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2501 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2502 (evaluate_subexp_f): Update.
2503 * f-exp.h: New file.
2505 2021-03-08 Tom Tromey <tom@tromey.com>
2507 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2508 * ada-exp.h (class ada_ternop_range_operation): New.
2510 2021-03-08 Tom Tromey <tom@tromey.com>
2512 * ada-lang.c (ada_qual_operation::evaluate): New method.
2513 * ada-exp.h (class ada_qual_operation): New.
2515 2021-03-08 Tom Tromey <tom@tromey.com>
2517 * ada-lang.c (ada_string_operation::evaluate): New method.
2518 * ada-exp.h (class ada_string_operation): New.
2520 2021-03-08 Tom Tromey <tom@tromey.com>
2522 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2523 * ada-exp.h: New file.
2525 2021-03-08 Tom Tromey <tom@tromey.com>
2527 * expop.h (class multi_subscript_operation): New.
2528 * eval.c (multi_subscript_operation::evaluate): New method.
2530 2021-03-08 Tom Tromey <tom@tromey.com>
2532 * eval.c (objc_msgcall_operation::evaluate): New method.
2533 * c-exp.h (class objc_msgcall_operation): New.
2535 2021-03-08 Tom Tromey <tom@tromey.com>
2537 * expop.h (class var_value_operation): New.
2538 * eval.c (var_value_operation::evaluate)
2539 (var_value_operation::evaluate_for_address)
2540 (var_value_operation::evaluate_with_coercion)
2541 (var_value_operation::evaluate_for_sizeof)
2542 (var_value_operation::evaluate_for_cast): New methods.
2543 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2545 2021-03-08 Tom Tromey <tom@tromey.com>
2547 * expop.h (cxx_cast_ftype): New typedef.
2548 (cxx_cast_operation): New template.
2549 (dynamic_cast_operation, reinterpret_cast_operation): New
2552 2021-03-08 Tom Tromey <tom@tromey.com>
2554 * expop.h (class unop_cast_type_operation): New.
2555 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2558 2021-03-08 Tom Tromey <tom@tromey.com>
2560 * expop.h (class unop_cast_operation): New.
2561 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2563 2021-03-08 Tom Tromey <tom@tromey.com>
2565 * expop.h (class assign_modify_operation): New.
2566 * eval.c (eval_binop_assign_modify): No longer static.
2567 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2569 2021-03-08 Tom Tromey <tom@tromey.com>
2571 * expop.h (class assign_operation): New.
2572 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2574 2021-03-08 Tom Tromey <tom@tromey.com>
2576 * expop.h (class type_instance_operation): New.
2577 * eval.c (type_instance_operation::evaluate): New method.
2579 2021-03-08 Tom Tromey <tom@tromey.com>
2581 * expop.h (class op_this_operation): New.
2582 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2584 2021-03-08 Tom Tromey <tom@tromey.com>
2586 * expop.h (class unop_memval_operation)
2587 (class unop_memval_type_operation): New.
2588 * eval.c (eval_op_memval): No longer static.
2589 (unop_memval_operation::evaluate_for_address)
2590 (unop_memval_type_operation::evaluate_for_address)
2591 (unop_memval_operation::evaluate_for_sizeof)
2592 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2593 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2594 (unop_memval_type_operation::do_generate_ax): New methods.
2596 2021-03-08 Tom Tromey <tom@tromey.com>
2598 * expop.h (class unop_alignof_operation): New.
2599 * eval.c (eval_op_alignof): No longer static.
2601 2021-03-08 Tom Tromey <tom@tromey.com>
2603 * expop.h (class unop_sizeof_operation): New.
2604 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2606 2021-03-08 Tom Tromey <tom@tromey.com>
2608 * expop.h (class unop_addr_operation): New.
2609 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2611 2021-03-08 Tom Tromey <tom@tromey.com>
2613 * expop.h (class typeid_operation): New.
2615 2021-03-08 Tom Tromey <tom@tromey.com>
2617 * expop.h (class decltype_operation): New.
2619 2021-03-08 Tom Tromey <tom@tromey.com>
2621 * expop.h (class typeof_operation): New.
2623 2021-03-08 Tom Tromey <tom@tromey.com>
2625 * expop.h (class type_operation): New.
2626 * eval.c (eval_op_type): No longer static.
2628 2021-03-08 Tom Tromey <tom@tromey.com>
2630 * expop.h (class unop_ind_base_operation)
2631 (class unop_ind_operation): New.
2632 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2633 (unop_ind_base_operation::evaluate_for_address)
2634 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2635 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2637 2021-03-08 Tom Tromey <tom@tromey.com>
2639 * expop.h (unop_incr_operation): New template.
2640 (preinc_operation, predec_operation, postinc_operation)
2641 (postdec_operation): New typedefs.
2642 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2643 (eval_op_postdec): No longer static.
2645 2021-03-08 Tom Tromey <tom@tromey.com>
2647 * expop.h (unary_ftype): New typedef.
2648 (unop_operation, usual_ax_binop_operation): New templates.
2649 (unary_plus_operation, unary_neg_operation)
2650 (unary_complement_operation, unary_logical_not_operation): New
2652 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2653 (eval_op_lognot): No longer static.
2654 * ax-gdb.c (gen_expr_unop): New function.
2656 2021-03-08 Tom Tromey <tom@tromey.com>
2658 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2660 2021-03-08 Tom Tromey <tom@tromey.com>
2662 * expop.h (class repeat_operation): New.
2663 * eval.c (eval_op_repeat): No longer static. Remove "op"
2665 (evaluate_subexp_standard): Update.
2666 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2668 2021-03-08 Tom Tromey <tom@tromey.com>
2670 * expop.h (class comparison_operation): New.
2671 (equal_operation, notequal_operation, less_operation)
2672 (gtr_operation, geq_operation, leq_operation): New typedefs.
2673 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2674 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2676 2021-03-08 Tom Tromey <tom@tromey.com>
2678 * expop.h (class subscript_operation): New.
2679 * eval.c (eval_op_subscript): No longer static.
2681 2021-03-08 Tom Tromey <tom@tromey.com>
2683 * expop.h (class binop_operation, class usual_ax_binop_operation):
2685 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2686 (div_operation, rem_operation, lsh_operation, rsh_operation)
2687 (bitwise_and_operation, bitwise_ior_operation)
2688 (bitwise_xor_operation): New typedefs.
2689 * eval.c (eval_op_binary): No longer static.
2691 2021-03-08 Tom Tromey <tom@tromey.com>
2693 * expop.h (class sub_operation): New.
2694 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2695 (evaluate_subexp_standard): Update.
2697 2021-03-08 Tom Tromey <tom@tromey.com>
2699 * expop.h (class add_operation): New.
2700 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2701 (evaluate_subexp_standard): Update.
2703 2021-03-08 Tom Tromey <tom@tromey.com>
2705 * expop.h (class concat_operation): New.
2706 * eval.c (eval_op_concat): No longer static. Remove "op"
2708 (evaluate_subexp_standard): Update.
2710 2021-03-08 Tom Tromey <tom@tromey.com>
2712 * expop.h (class structop_member_operation)
2713 (class structop_mptr_operation): New.
2714 * eval.c (eval_op_member): No longer static.
2716 2021-03-08 Tom Tromey <tom@tromey.com>
2718 * expop.h (class structop_ptr_operation): New.
2719 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2722 2021-03-08 Tom Tromey <tom@tromey.com>
2724 * expop.h (class structop_base_operation)
2725 (class structop_operation): New.
2726 * eval.c (eval_op_structop_struct): No longer static.
2728 2021-03-08 Tom Tromey <tom@tromey.com>
2730 * expop.h (class complex_operation): New.
2732 2021-03-08 Tom Tromey <tom@tromey.com>
2734 * eval.c (eval_op_objc_selector): No longer static.
2735 * c-exp.h (class objc_selector_operation): New.
2737 2021-03-08 Tom Tromey <tom@tromey.com>
2739 * eval.c: Include c-exp.h.
2740 * c-exp.h (class objc_nsstring_operation): New.
2742 2021-03-08 Tom Tromey <tom@tromey.com>
2744 * c-lang.c (c_string_operation::evaluate): New method.
2745 * c-exp.h: New file.
2747 2021-03-08 Tom Tromey <tom@tromey.com>
2749 * expop.h (class ternop_cond_operation): New.
2750 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2752 2021-03-08 Tom Tromey <tom@tromey.com>
2754 * expop.h (class ternop_slice_operation): New.
2755 * eval.c (eval_op_ternop): No longer static.
2757 2021-03-08 Tom Tromey <tom@tromey.com>
2759 * expop.h (class string_operation): New.
2760 * eval.c (eval_op_string): No longer static.
2762 2021-03-08 Tom Tromey <tom@tromey.com>
2764 * expop.h (class internalvar_operation): New.
2765 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2767 2021-03-08 Tom Tromey <tom@tromey.com>
2769 * expop.h (class bool_operation): New.
2771 2021-03-08 Tom Tromey <tom@tromey.com>
2773 * expop.h (class register_operation): New.
2774 * eval.c (eval_op_register): No longer static.
2775 * ax-gdb.c (register_operation::do_generate_ax): New method.
2777 2021-03-08 Tom Tromey <tom@tromey.com>
2779 * expop.h (class last_operation): New.
2781 2021-03-08 Tom Tromey <tom@tromey.com>
2783 * expop.h (class func_static_var_operation): New.
2784 * eval.c (eval_op_func_static_var): No longer static.
2786 2021-03-08 Tom Tromey <tom@tromey.com>
2788 * expop.h (class var_entry_value_operation): New.
2789 * eval.c (eval_op_var_entry_value): No longer static.
2791 2021-03-08 Tom Tromey <tom@tromey.com>
2793 * expression.h (class operation) <set_outermost>: New method.
2794 * expop.h (class var_msym_value_operation): New.
2795 * eval.c (eval_op_var_msym_value): No longer static.
2796 (var_msym_value_operation::evaluate_for_address)
2797 (var_msym_value_operation::evaluate_for_sizeof)
2798 (var_msym_value_operation::evaluate_for_cast): New methods.
2799 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2802 2021-03-08 Tom Tromey <tom@tromey.com>
2804 * expop.h (class long_const_operation): New.
2805 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2807 2021-03-08 Tom Tromey <tom@tromey.com>
2809 * expop.h (class scope_operation): New.
2810 * eval.c (eval_op_scope): No longer static.
2811 (scope_operation::evaluate_for_address): New method.
2812 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2814 2021-03-08 Tom Tromey <tom@tromey.com>
2816 * expprint.c (float_const_operation::dump): New method.
2817 * expop.h (float_data): New typedef.
2818 (class float_const_operation): New.
2820 2021-03-08 Tom Tromey <tom@tromey.com>
2822 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2823 * ax-gdb.c (gen_expr_binop): New function.
2824 (gen_expr_structop): Likewise.
2826 2021-03-08 Tom Tromey <tom@tromey.com>
2828 * expprint.c (expr::dump_for_expression): New functions.
2829 * expop.h (dump_for_expression): New overloads.
2830 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2833 2021-03-08 Tom Tromey <tom@tromey.com>
2835 * expression.h (expr::operation): New class.
2836 (expr::make_operation): New function.
2837 (expr::operation_up): New typedef.
2838 * expop.h: New file.
2839 * eval.c (operation::evaluate_for_cast)
2840 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2842 * ax-gdb.c (operation::generate_ax): New method.
2844 2021-03-08 Tom Tromey <tom@tromey.com>
2846 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2847 (gen_expr_binop_rest): New overload.
2849 2021-03-08 Tom Tromey <tom@tromey.com>
2851 * eval.c (eval_multi_subscript): New function.
2852 (evaluate_subexp_standard): Use it.
2854 2021-03-08 Tom Tromey <tom@tromey.com>
2856 * ada-lang.c (ada_binop_exp): New function.
2857 (ada_evaluate_subexp): Use it.
2859 2021-03-08 Tom Tromey <tom@tromey.com>
2861 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2863 (ada_evaluate_subexp): Use it.
2865 2021-03-08 Tom Tromey <tom@tromey.com>
2867 * ada-lang.c (ada_binop_minmax): New function.
2868 (ada_evaluate_subexp): Use it.
2870 2021-03-08 Tom Tromey <tom@tromey.com>
2872 * ada-lang.c (ada_unop_atr): New function.
2873 (ada_evaluate_subexp): Use it.
2875 2021-03-08 Tom Tromey <tom@tromey.com>
2877 * ada-lang.c (ada_binop_in_bounds): New function.
2878 (ada_evaluate_subexp): Use it.
2880 2021-03-08 Tom Tromey <tom@tromey.com>
2882 * ada-lang.c (ada_ternop_slice): New function.
2883 (ada_evaluate_subexp): Use it.
2885 2021-03-08 Tom Tromey <tom@tromey.com>
2887 * ada-lang.c (ada_equal_binop): New function.
2888 (ada_evaluate_subexp): Use it.
2890 2021-03-08 Tom Tromey <tom@tromey.com>
2892 * ada-lang.c (ada_mult_binop): New function.
2893 (ada_evaluate_subexp): Use it.
2895 2021-03-08 Tom Tromey <tom@tromey.com>
2897 * ada-lang.c (ada_abs): New function.
2898 (ada_evaluate_subexp): Use it.
2900 2021-03-08 Tom Tromey <tom@tromey.com>
2902 * ada-lang.c (ada_atr_size): New function.
2903 (ada_evaluate_subexp): Use it.
2905 2021-03-08 Tom Tromey <tom@tromey.com>
2907 * ada-lang.c (ada_atr_tag): New function.
2908 (ada_evaluate_subexp): Use it.
2910 2021-03-08 Tom Tromey <tom@tromey.com>
2912 * ada-lang.c (ada_unop_in_range): New function.
2913 (ada_evaluate_subexp): Use it.
2915 2021-03-08 Tom Tromey <tom@tromey.com>
2917 * ada-lang.c (ada_unop_neg): New function.
2918 (ada_evaluate_subexp): Use it.
2920 2021-03-08 Tom Tromey <tom@tromey.com>
2922 * ada-lang.c (eval_ternop_in_range): New function.
2923 (ada_evaluate_subexp): Use it.
2925 2021-03-08 Tom Tromey <tom@tromey.com>
2927 * opencl-lang.c (eval_opencl_assign): New function.
2928 (evaluate_subexp_opencl): Use it.
2930 2021-03-08 Tom Tromey <tom@tromey.com>
2932 * eval.c (eval_op_objc_msgcall): New function.
2933 (evaluate_subexp_standard): Use it.
2935 2021-03-08 Tom Tromey <tom@tromey.com>
2937 * eval.c (eval_binop_assign_modify): New function.
2938 (evaluate_subexp_standard): Use it.
2940 2021-03-08 Tom Tromey <tom@tromey.com>
2942 * m2-lang.c (eval_op_m2_subscript): New function.
2943 (evaluate_subexp_modula2): Use it.
2945 2021-03-08 Tom Tromey <tom@tromey.com>
2947 * m2-lang.c (eval_op_m2_high): New function.
2948 (evaluate_subexp_modula2): Use it.
2950 2021-03-08 Tom Tromey <tom@tromey.com>
2952 * eval.c (evaluate_subexp_for_address_base): New function.
2953 (evaluate_subexp_for_address): Use it.
2954 (evaluate_subexp_for_sizeof_base): New function.
2955 (evaluate_subexp_for_sizeof): Use it.
2957 2021-03-08 Tom Tromey <tom@tromey.com>
2959 * rust-lang.c (eval_op_rust_structop): New function.
2960 (rust_evaluate_subexp): Use it.
2962 2021-03-08 Tom Tromey <tom@tromey.com>
2964 * rust-lang.c (eval_op_rust_struct_anon): New function.
2965 (rust_evaluate_subexp): Use it.
2967 2021-03-08 Tom Tromey <tom@tromey.com>
2969 * rust-lang.c (eval_op_rust_array): New function.
2970 (rust_evaluate_subexp): Use it.
2972 2021-03-08 Tom Tromey <tom@tromey.com>
2974 * rust-lang.c (eval_op_rust_complement): New function.
2975 (rust_evaluate_subexp): Use it.
2977 2021-03-08 Tom Tromey <tom@tromey.com>
2979 * rust-lang.c (eval_op_rust_ind): New function.
2980 (rust_evaluate_subexp): Use it.
2982 2021-03-08 Tom Tromey <tom@tromey.com>
2984 * rust-lang.c (rust_subscript): Change parameters.
2985 (rust_evaluate_subexp): Update.
2987 2021-03-08 Tom Tromey <tom@tromey.com>
2989 * rust-lang.c (rust_range): Change parameters.
2990 (rust_evaluate_subexp): Update.
2992 2021-03-08 Tom Tromey <tom@tromey.com>
2994 * f-lang.c (eval_op_f_allocated): New function.
2995 (evaluate_subexp_f): Use it.
2997 2021-03-08 Tom Tromey <tom@tromey.com>
2999 * f-lang.c (fortran_require_array): New function.
3000 (evaluate_subexp_f): Use it.
3002 2021-03-08 Tom Tromey <tom@tromey.com>
3004 * f-lang.c (eval_op_f_kind): New function.
3005 (evaluate_subexp_f): Use it.
3007 2021-03-08 Tom Tromey <tom@tromey.com>
3009 * f-lang.c (eval_op_f_cmplx): New function.
3010 (evaluate_subexp_f): Use it.
3012 2021-03-08 Tom Tromey <tom@tromey.com>
3014 * f-lang.c (eval_op_f_modulo): New function.
3015 (evaluate_subexp_f): Use it.
3017 2021-03-08 Tom Tromey <tom@tromey.com>
3019 * f-lang.c (eval_op_f_floor): New function.
3020 (evaluate_subexp_f): Use it.
3022 2021-03-08 Tom Tromey <tom@tromey.com>
3024 * f-lang.c (eval_op_f_ceil): New function.
3025 (evaluate_subexp_f): Use it.
3027 2021-03-08 Tom Tromey <tom@tromey.com>
3029 * f-lang.c (eval_op_f_mod): New function.
3030 (evaluate_subexp_f): Use it.
3032 2021-03-08 Tom Tromey <tom@tromey.com>
3034 * f-lang.c (eval_op_f_abs): New function.
3035 (evaluate_subexp_f): Use it.
3037 2021-03-08 Tom Tromey <tom@tromey.com>
3039 * eval.c (eval_op_type): New function.
3040 (evaluate_subexp_standard): Use it.
3042 2021-03-08 Tom Tromey <tom@tromey.com>
3044 * eval.c (eval_op_postdec): New function.
3045 (evaluate_subexp_standard): Use it.
3047 2021-03-08 Tom Tromey <tom@tromey.com>
3049 * eval.c (eval_op_postinc): New function.
3050 (evaluate_subexp_standard): Use it.
3052 2021-03-08 Tom Tromey <tom@tromey.com>
3054 * eval.c (eval_op_predec): New file.
3055 (evaluate_subexp_standard): Use it.
3057 2021-03-08 Tom Tromey <tom@tromey.com>
3059 * eval.c (eval_op_preinc): New function.
3060 (evaluate_subexp_standard): Use it.
3062 2021-03-08 Tom Tromey <tom@tromey.com>
3064 * eval.c (eval_op_memval): New function.
3065 (evaluate_subexp_standard): Use it.
3067 2021-03-08 Tom Tromey <tom@tromey.com>
3069 * eval.c (eval_op_alignof): New function.
3070 (evaluate_subexp_standard): Use it.
3072 2021-03-08 Tom Tromey <tom@tromey.com>
3074 * eval.c (eval_op_ind): New function.
3075 (evaluate_subexp_standard): Use it.
3077 2021-03-08 Tom Tromey <tom@tromey.com>
3079 * eval.c (eval_op_lognot): New function.
3080 (evaluate_subexp_standard): Use it.
3082 2021-03-08 Tom Tromey <tom@tromey.com>
3084 * eval.c (eval_op_complement): New function.
3085 (evaluate_subexp_standard): Use it.
3087 2021-03-08 Tom Tromey <tom@tromey.com>
3089 * eval.c (eval_op_neg): New function.
3090 (evaluate_subexp_standard): Use it.
3092 2021-03-08 Tom Tromey <tom@tromey.com>
3094 * eval.c (eval_op_plus): New function.
3095 (evaluate_subexp_standard): Use it.
3097 2021-03-08 Tom Tromey <tom@tromey.com>
3099 * eval.c (eval_op_repeat): New function.
3100 (evaluate_subexp_standard): Use it.
3102 2021-03-08 Tom Tromey <tom@tromey.com>
3104 * eval.c (eval_op_leq): New function.
3105 (evaluate_subexp_standard): Use it.
3107 2021-03-08 Tom Tromey <tom@tromey.com>
3109 * eval.c (eval_op_geq): New function.
3110 (evaluate_subexp_standard): Use it.
3112 2021-03-08 Tom Tromey <tom@tromey.com>
3114 * eval.c (eval_op_gtr): New function.
3115 (evaluate_subexp_standard): Use it.
3117 2021-03-08 Tom Tromey <tom@tromey.com>
3119 * eval.c (eval_op_less): New function.
3120 (evaluate_subexp_standard): Use it.
3122 2021-03-08 Tom Tromey <tom@tromey.com>
3124 * eval.c (eval_op_notequal): New function.
3125 (evaluate_subexp_standard): Use it.
3127 2021-03-08 Tom Tromey <tom@tromey.com>
3129 * eval.c (eval_op_equal): New function.
3130 (evaluate_subexp_standard): Use it.
3132 2021-03-08 Tom Tromey <tom@tromey.com>
3134 * eval.c (eval_op_subscript): New function.
3135 (evaluate_subexp_standard): Use it.
3137 2021-03-08 Tom Tromey <tom@tromey.com>
3139 * eval.c (eval_op_binary): New function.
3140 (evaluate_subexp_standard): Use it.
3142 2021-03-08 Tom Tromey <tom@tromey.com>
3144 * eval.c (eval_op_sub): New function.
3145 (evaluate_subexp_standard): Use it.
3147 2021-03-08 Tom Tromey <tom@tromey.com>
3149 * eval.c (eval_op_add): New function.
3150 (evaluate_subexp_standard): Use it.
3152 2021-03-08 Tom Tromey <tom@tromey.com>
3154 * eval.c (eval_op_member): New function.
3155 (evaluate_subexp_standard): Use it.
3157 2021-03-08 Tom Tromey <tom@tromey.com>
3159 * eval.c (eval_op_structop_ptr): New function.
3160 (evaluate_subexp_standard): Use it.
3162 2021-03-08 Tom Tromey <tom@tromey.com>
3164 * eval.c (eval_op_structop_struct): New function.
3165 (evaluate_subexp_standard): Use it.
3167 2021-03-08 Tom Tromey <tom@tromey.com>
3169 * eval.c (eval_op_ternop): New function.
3170 (evaluate_subexp_standard): Use it.
3172 2021-03-08 Tom Tromey <tom@tromey.com>
3174 * eval.c (eval_op_concat): New function.
3175 (evaluate_subexp_standard): Use it.
3177 2021-03-08 Tom Tromey <tom@tromey.com>
3179 * eval.c (eval_op_objc_selector): New function.
3180 (evaluate_subexp_standard): Use it.
3182 2021-03-08 Tom Tromey <tom@tromey.com>
3184 * eval.c (eval_op_string): New function.
3185 (evaluate_subexp_standard): Use it.
3187 2021-03-08 Tom Tromey <tom@tromey.com>
3189 * eval.c (eval_op_register): New function.
3190 (evaluate_subexp_standard): Use it.
3192 2021-03-08 Tom Tromey <tom@tromey.com>
3194 * eval.c (eval_op_func_static_var): New function.
3195 (evaluate_subexp_standard): Use it.
3197 2021-03-08 Tom Tromey <tom@tromey.com>
3199 * eval.c (eval_op_var_msym_value): New function.
3200 (evaluate_subexp_standard): Use it.
3202 2021-03-08 Tom Tromey <tom@tromey.com>
3204 * eval.c (eval_op_var_entry_value): New function.
3205 (evaluate_subexp_standard): Use it.
3207 2021-03-08 Tom Tromey <tom@tromey.com>
3209 * eval.c (eval_op_scope): New function.
3210 (evaluate_subexp_standard): Use it.
3212 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3215 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3217 2021-03-06 Tom Tromey <tom@tromey.com>
3219 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3220 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3221 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3222 (locate_dwz_sections, dwz_search_other_debugdirs)
3223 (dwarf2_get_dwz_file): Move to dwz.c.
3224 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3226 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3227 (dwarf2_get_dwz_file): Move from read.c.
3229 2021-03-06 Tom Tromey <tom@tromey.com>
3231 * debuginfod-support.h: Include scoped_fd.h.
3233 2021-03-06 Tom Tromey <tom@tromey.com>
3235 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3236 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3237 (get_abbrev_section_for_cu, read_attribute_value)
3238 (get_debug_line_section): Update.
3239 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3241 2021-03-06 Tom Tromey <tom@tromey.com>
3243 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3245 * dwarf2/read.c (section_is_p): Remove.
3246 (dwarf2_per_bfd::locate_sections)
3247 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3248 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3249 (dwarf2_locate_common_dwp_sections)
3250 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3253 2021-03-06 Tom Tromey <tom@tromey.com>
3255 * xcoffread.c: Include sect-names.h.
3256 * symfile.h (struct dwarf2_section_names, struct
3257 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3258 * dwarf2/sect-names.h: New file, from symfile.h.
3259 * dwarf2/read.c: Include sect-names.h.
3261 2021-03-06 Tom Tromey <tom@tromey.com>
3263 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3264 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3265 (abbrev_table::read): Update.
3266 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3267 (struct abbrev_info): Reformat.
3268 <attrs>: Now an array.
3269 (struct abbrev_table) <alloc_abbrev>: Remove.
3271 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3273 * ctfread.c (ctf_psymtab_add_enums): New function.
3274 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3276 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3278 * ctfread.c (read_func_kind_type): Set up function arguments.
3280 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3281 Andrew Burgess <andrew.burgess@embecosm.com>
3283 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3285 (riscv_csrset): New static global.
3286 (riscv_update_csrmap): New function.
3287 (riscv_iterate_over_regset_sections): Process CSRs.
3289 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3291 * riscv-tdep.c (riscv_feature_name_csr): Define.
3292 (riscv_feature_name_cpu): Define.
3293 (riscv_feature_name_fpu): Define.
3294 (riscv_feature_name_virtual): Define.
3295 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3296 (riscv_freg_feature): Use riscv_feature_name_fpu.
3297 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3298 (riscv_csr_feature): Use riscv_feature_name_csr.
3299 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3301 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3302 Craig Blackmore <craig.blackmore@embecosm.com>
3304 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3305 (ALLDEPFILES): Add riscv-none-tdep.c.
3306 * configure: Regenerate.
3307 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3309 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3310 * elf-none-tdep.c: New file.
3311 * elf-none-tdep.h: New file.
3312 * riscv-none-tdep.c: New file.
3314 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3315 Andrew Burgess <andrew.burgess@embecosm.com>
3317 * corelow.c: Add 'xml-tdesc.h' include.
3318 (core_target::read_description): Load the target description from
3319 the core file when possible.
3320 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3322 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3323 (gcore_elf_make_tdesc_note): New function.
3324 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3325 * linux-tdep.c (linux_make_corefile_notes): Add target description
3328 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3330 * Makefile.in (SFILES): Add gcore-elf.c.
3331 (HFILES_NO_SRCDIR): Add gcore-elf.h
3332 * configure: Regenerate.
3333 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3335 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3336 (struct fbsd_collect_regset_section_cb_data): Delete.
3337 (fbsd_collect_regset_section_cb): Delete.
3338 (fbsd_collect_thread_registers): Delete.
3339 (struct fbsd_corefile_thread_data): Delete.
3340 (fbsd_corefile_thread): Delete.
3341 (fbsd_make_corefile_notes): Call
3342 gcore_elf_build_thread_register_notes instead of the now deleted
3344 * gcore-elf.c: New file, the content was moved here from
3345 linux-tdep.c, functions were renamed and given minor cleanup.
3346 * gcore-elf.h: New file.
3347 * gcore.c (gcore_find_signalled_thread): Moved here from
3348 linux-tdep.c and given a new name. Minor cleanups.
3349 * gcore.h (gcore_find_signalled_thread): Declare.
3350 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3351 (struct linux_collect_regset_section_cb_data): Delete.
3352 (linux_collect_regset_section_cb): Delete.
3353 (linux_collect_thread_registers): Delete.
3354 (linux_corefile_thread): Call
3355 gcore_elf_build_thread_register_notes.
3356 (find_signalled_thread): Delete.
3357 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3359 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3362 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3363 process_stratum_target parameter,
3364 sparc_store_inferior_registers): update callers.
3365 * sparc-nat.c (sparc_fetch_inferior_registers,
3366 sparc_store_inferior_registers): Add process_stratum_target
3367 parameter. Switch current thread before calling
3368 sparc_supply_gregset / sparc_collect_rwindow.
3369 (sparc_store_inferior_registers): Likewise.
3370 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3371 (sparc32obsd_collect_uthread): Likewise.
3372 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3374 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3375 sparc64obsd_supply_uthread): Add assertion.
3377 2021-03-04 Tom Tromey <tromey@adacore.com>
3379 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3380 (aux_add_nonlocal_symbols): Update.
3381 (ada_add_block_symbols): Change "found_sym" to bool.
3383 2021-03-03 Tom Tromey <tromey@adacore.com>
3385 * ada-lang.c (ada_resolve_function): Update comment.
3386 (is_nonfunction, add_symbols_from_enclosing_procs)
3387 (remove_extra_symbols): Likewise.
3388 (struct match_data): Add constructor, initializers.
3389 (add_nonlocal_symbols): Remove memset.
3390 (aux_add_nonlocal_symbols): Update comment.
3391 (ada_add_block_renamings, add_nonlocal_symbols)
3392 (ada_add_all_symbols): Likewise.
3393 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3395 2021-03-02 Tom Tromey <tromey@adacore.com>
3397 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3398 (cast_to_gnat_encoded_fixed_point_type): Remove.
3399 (ada_value_cast, ada_evaluate_subexp): Update.
3400 (gnat_encoded_fixed_point_type_info)
3401 (ada_is_gnat_encoded_fixed_point_type)
3402 (gnat_encoded_fixed_point_delta)
3403 (gnat_encoded_fixed_point_scaling_factor): Remove.
3404 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3405 (gnat_encoded_fixed_point_delta)
3406 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3407 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3408 (ada_print_type): Update.
3409 * ada-valprint.c (ada_value_print_num): Update.
3410 * dwarf2/read.c (ada_get_gnat_encoded_number)
3411 (ada_get_gnat_encoded_ratio): New functions.
3412 (finish_fixed_point_type): Use them. Add parameters.
3413 (GNAT_FIXED_POINT_SUFFIX): New define.
3414 (gnat_encoded_fixed_point_type_info): New function.
3415 (read_base_type): Handle gnat encodings.
3417 2021-03-02 Tom Tromey <tromey@adacore.com>
3419 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3420 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3422 (GROW_VECT): Remove.
3423 (grow_vect): Remove.
3425 2021-03-02 Tom Tromey <tromey@adacore.com>
3427 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3428 * ada-lang.c (resolve_subexp): Update.
3429 (ada_resolve_function): Accept a vector.
3430 (is_nonfunction, add_defn_to_vec)
3431 (add_symbols_from_enclosing_procs): Likewise.
3432 (num_defns_collected, defns_collected): Remove.
3433 (remove_extra_symbols): Return a vector.
3434 (remove_irrelevant_renamings): Return void.
3435 (ada_add_local_symbols): Accept a vector.
3436 (struct match_data) <obstackp>: Remove.
3437 <resultp>: New member.
3438 (aux_add_nonlocal_symbols): Update.
3439 (ada_add_block_renamings, add_nonlocal_symbols)
3440 (ada_add_all_symbols): Accept a vector.
3441 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3443 (ada_lookup_symbol): Update.
3444 (ada_add_block_symbols): Accept a vector.
3445 (get_var_value, iterate_over_symbols): Update.
3446 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3449 2021-03-02 Tom Tromey <tromey@adacore.com>
3451 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3453 2021-03-02 Tom Tromey <tromey@adacore.com>
3455 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3458 (ada_pspace_data): Remove destructor.
3459 <sym_cache>: Now a unique_ptr.
3460 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3461 (ada_get_symbol_cache): Use 'new'.
3462 (ada_clear_symbol_cache): Rewrite.
3464 2021-03-02 Tom Tromey <tromey@adacore.com>
3466 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3469 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
3472 * source.c (add_path): Skip empty dirnames.
3474 2021-02-25 Kevin Buettner <kevinb@redhat.com>
3476 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3477 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3479 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3482 * target.c (target_mourn_inferior): Only compare pids in
3483 target_mourn_inferior.
3485 2021-02-25 Jan Matyas <jmatyas@codasip.com>
3488 * remote.c (remote_target::start_remote): Ensure the single
3489 thread, automatically added for remote targets without the
3490 concept of threading, is initially in set to the "resumed"
3492 * remote.c (remote_target::add_current_inferior_and_thread):
3493 Add return value - return the main thread.
3495 2021-02-25 Jan Vrany <jan.vrany@labware.com>
3497 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3498 (mi_tsv_created): Likewise.
3499 (mi_tsv_deleted): Likewise.
3501 2021-02-25 Tom de Vries <tdevries@suse.de>
3504 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3505 section_kind for &dwo_file->sections.info.
3507 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3510 * f-lang.c (fortran_argument_convert): Delete declaration.
3511 (fortran_prepare_argument): New function.
3512 (evaluate_subexp_f): Move logic to new function
3513 fortran_prepare_argument.
3515 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3517 * f-exp.y (f77_keywords): Add 'associated'.
3518 * f-lang.c (fortran_associated): New function.
3519 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3520 (operator_length_f): Likewise.
3521 (print_unop_or_binop_subexp_f): New function.
3522 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3523 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3524 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3525 (operator_check_f): Likewise.
3526 * std-operator.def: Add FORTRAN_ASSOCIATED.
3528 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3530 * f-exp.y (fortran_operators): Add ".xor.".
3532 2021-02-24 Tom de Vries <tdevries@suse.de>
3535 * dwarf2/attribute.c (attribute::form_is_signed): New function
3537 * dwarf2/attribute.h (attribute::as_signed): ... here.
3538 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3539 (attribute::form_is_signed): Declare.
3540 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3541 for DW_AT_decl_file.
3543 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3545 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3546 order for <sys/ptrace.h> and <asm/ptrace.h>.
3548 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3550 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3553 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3555 * exec.c (set_section_command): Move variable declarations into
3556 the function body, and use std::string instead of a fixed size
3559 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3561 * exec.c (exec_target::get_section_table): Delete member function.
3562 (section_table_read_available_memory): Use current_top_target, not
3563 just the exec_ops target.
3564 * target-delegates.c: Regenerate.
3565 * target.c (default_get_section_table): New function.
3566 * target.h (target_ops::get_section_table): Change default
3567 behaviour to call default_get_section_table.
3568 (default_get_section_table): Declare.
3570 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3572 * exec.c (exec_target::close): Call new clear_target_sections
3574 (program_space::add_target_sections): Update name of member
3576 (program_space::add_target_sections): Update name of member
3578 (program_space::remove_target_sections): Likewise.
3579 (exec_one_fork): Use new target_sections member function.
3580 (exec_target::get_section_table): Likewise.
3581 (exec_target::files_info): Likewise.
3582 (set_section_command): Likewise.
3583 (exec_set_section_address): Likewise.
3584 (exec_target::has_memory): Use new target_sections member
3586 * progspace.h (program_space::clear_target_sections): New member
3588 (program_space::target_sections): Rename member variable to
3589 m_target_sections, replace with a new member function.
3590 (program_space::m_target_sections): New member variable.
3591 * solib-dsbt.c (scan_dyntag): Use new member function.
3592 * solib-svr4.c (scan_dyntag): Likewise.
3594 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3596 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3598 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3599 (section_table_read_available_memory): Make local const.
3600 (exec_target::xfer_partial): Make local const.
3601 (print_section_info): Make parameter const.
3602 * gdb/exec.h (print_section_info): Likewise.
3603 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3605 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3607 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3609 * gdb/s390-tdep.c (s390_load): Likewise.
3610 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3611 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3612 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3614 (target_debug_print_const_target_section_table_p): ...this.
3615 * gdb/target-delegates.c: Regenerate.
3616 * gdb/target.c (target_get_section_table): Make return type const.
3617 (target_section_by_addr): Likewise. Also make some locals const.
3618 (memory_xfer_partial_1): Make some locals const.
3619 * gdb/target.h (struct target_ops) <get_section_table>: Make
3621 (target_section_by_addr): Likewise.
3622 (target_get_section_table): Likewise.
3624 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3626 * NEWS: Mention new 'maint info target-sections' command.
3627 * maint.c (maintenance_info_target_sections): New function.
3628 (_initialize_maint_cmds): Register new command.
3630 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3632 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3633 (riscv_features_from_bfd): ...this. Change parameter type to
3634 'bfd*', and update as required.
3635 (riscv_find_default_target_description): Update call to
3636 riscv_features_from_bfd. Select a default xlen based on
3638 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3640 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3642 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3643 dynamic types in UNOP_IND.
3645 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3648 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3650 (~dwarf2_queue_guard): Clear queue.
3651 (queue_comp_unit): Assert that queue is
3653 (process_queue): Adjust.
3654 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3656 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3659 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3660 to decide whether or not to enqueue it for expansion.
3661 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3662 after calling maybe_queue_comp_unit.
3664 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3666 * linux-nat.c (linux_nat_filter_event): Return void.
3668 2021-02-22 Tom Tromey <tromey@adacore.com>
3670 * solib-svr4.c (enable_break): Update.
3671 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3673 (target_bfd_reopen): Change parameter type.
3674 * bfd-target.h (target_bfd_reopen): Change parameter type.
3676 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3678 * thread.c (add_thread_silent): Add assert.
3679 (find_thread_ptid): Add assert.
3681 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3684 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3685 (target_unpush_up): Likewise.
3686 * procfs.c (procfs_target::attach): Push target early. Use
3687 target_unpush_up to unpush target in case of error.
3688 * target.h (struct target_unpusher): Move here.
3689 (target_unpush_up): Likewise.
3691 2021-02-19 Kevin Buettner <kevinb@redhat.com>
3693 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3694 (which in turn includes <gnulib/config.h>) before include
3697 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
3700 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3701 (decode_j_type_insn): Likewise.
3702 (decode_cj_type_insn): Likewise.
3703 (decode_b_type_insn): Likewise.
3706 2021-02-18 Tom Tromey <tom@tromey.com>
3708 * expression.h (struct expression) <evaluate>: Declare method.
3709 * eval.c (evaluate_subexp): Simplify.
3710 (expression::evaluate): New method.
3711 (evaluate_expression, evaluate_type): Use expression::evaluate.
3713 2021-02-17 Kevin Buettner <kevinb@redhat.com>
3715 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3717 (ada_lookup_name_info): Likewise.
3719 2021-02-13 Mike Frysinger <vapier@gentoo.org>
3721 * aclocal.m4: Regenerate.
3723 2021-02-12 Tom de Vries <tdevries@suse.de>
3726 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3727 (lin_thread_signals): New static var.
3728 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3730 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3731 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3733 * linux-thread-db.c (check_thread_signals): Use
3734 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3736 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3738 * f-exp.y (f77_keywords): Add allocated.
3739 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3740 (operator_length_f): Likewise.
3741 (print_subexp_f): Likewise.
3742 (dump_subexp_body_f): Likewise.
3743 (operator_check_f): Likewise.
3744 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3746 2021-02-11 Tom de Vries <tdevries@suse.de>
3749 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3750 Return true for DW_FORM_strx.
3752 2021-02-11 Tom Tromey <tromey@adacore.com>
3755 * parse.c (write_exp_symbol_reference): Write sym.block.
3757 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3759 * NEWS: Mention changes to 'maint info sections'.
3760 * maint.c (match_substring): Return a bool, fix whitespace issue.
3761 (struct single_bfd_flag_info): New struct.
3762 (bfd_flag_info): New static global.
3763 (match_bfd_flags): Return a bool, use bfd_flag_info.
3764 (print_bfd_flags): Use bfd_flag_info.
3765 (maint_print_section_info): Delete trailing whitespace.
3766 (struct maint_info_sections_opts): New struct.
3767 (maint_info_sections_option_defs): New static global.
3768 (maint_info_sections_completer): New function.
3769 (maintenance_info_sections): Use option parsing mechanism.
3770 (_initialize_maint_cmds): Update command help text for 'maint info
3771 sections' and register a command completer.
3773 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3775 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3776 functionality merged into...
3777 (maint_print_all_sections): ...this new function.
3778 (maintenance_info_sections): Make use of maint_print_all_sections,
3779 allow all objects to be printed even where there's no executable.
3781 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3783 * breakpoint.c (resolve_sal_pc): Make use of
3784 bound_minimal_symbol::obj_section.
3785 * maint.c (maintenance_translate_address): Likewise.
3786 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3787 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3789 * printcmd.c (info_address_command): Make use of
3790 bound_minimal_symbol::obj_section.
3792 2021-02-11 Alan Modra <amodra@gmail.com>
3794 * arm-symbian-tdep.c: Delete.
3795 * NEWS: Mention arm-symbian removal.
3796 * Makefile.in: Remove arm-symbian-tdep entries.
3797 * configure.tgt: Remove arm*-*-symbianelf*.
3798 * doc/gdb.texinfo: Remove mention of SymbianOS.
3799 * osabi.c (gdb_osabi_names): Remove "Symbian".
3800 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3801 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3802 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3804 * testsuite/gdb.base/dup-sect.exp: Likewise.
3805 * testsuite/gdb.base/long_long.exp: Likewise.
3806 * testsuite/gdb.base/solib-weak.exp: Likewise.
3807 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3808 * testsuite/gdb.python/py-section-script.exp: Likewise.
3809 * testsuite/lib/dwarf.exp: Likewise.
3810 * testsuite/lib/gdb.exp: Likewise.
3812 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3814 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3815 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3816 (one_or_two_args): New pattern.
3817 (f77_keywords): Add lbound and ubound.
3818 * f-lang.c (fortran_bounds_all_dims): New function.
3819 (fortran_bounds_for_dimension): New function.
3820 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3821 (operator_length_f): Likewise.
3822 (print_subexp_f): Likewise.
3823 (dump_subexp_body_f): Likewise.
3824 (operator_check_f): Likewise.
3825 * std-operator.def (FORTRAN_LBOUND): Define.
3826 (FORTRAN_UBOUND): Define.
3828 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3830 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3831 and set_section_index member functions where appropriate.
3832 * coffread.c (coff_symtab_read): Likewise.
3833 (process_coff_symbol): Likewise.
3834 * ctfread.c (set_symbol_address): Likewise.
3835 * dwarf2/read.c (add_partial_symbol): Likewise.
3836 (var_decode_location): Likewise.
3837 * language.c: Likewise.
3838 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3839 (compact_minimal_symbols): Likewise.
3840 (minimal_symbol_upper_bound): Likewise.
3841 * objfiles.c (relocate_one_symbol): Likewise.
3842 * psympriv.h (partial_symbol::obj_section): Likewise.
3843 (partial_symbol::address): Likewise.
3844 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3845 * stabsread.c (scan_file_globals): Likewise.
3846 * symmisc.c (dump_msymbols): Likewise.
3847 * symtab.c (general_symbol_info::obj_section): Likewise.
3848 (fixup_section): Likewise.
3849 (get_msymbol_address): Likewise.
3850 * symtab.h (general_symbol_info::section): Rename to...
3851 (general_symbol_info::m_section): ...this.
3852 (general_symbol_info::set_section_index): New member function.
3853 (general_symbol_info::section_index): Likewise.
3854 (SYMBOL_SECTION): Delete.
3855 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3856 set_section_index member functions where appropriate.
3857 (MSYMBOL_SECTION): Delete.
3858 (symbol::symbol): Update to initialize 'm_section'.
3859 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3860 (process_xcoff_symbol): Likewise.
3862 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3864 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3865 MSYMBOL_OBJ_SECTION.
3866 * findvar.c (language_defn::read_var_value): Likewise.
3867 * infcmd.c (jump_command): Likewise.
3868 * linespec.c (minsym_found): Likewise.
3869 * maint.c (maintenance_translate_address): Likewise.
3870 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3871 (minimal_symbol_upper_bound): Likewise.
3872 * parse.c (find_minsym_type_and_address): Likewise.
3873 (operator_check_standard): Likewise.
3874 * printcmd.c (info_address_command): Likewise.
3875 * symmisc.c (dump_msymbols): Likewise.
3876 (print_symbol): Likewise.
3877 * symtab.c (general_symbol_info::obj_section): Define new
3879 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3880 (find_pc_sect_compunit_symtab): Likewise.
3881 (find_function_start_sal): Likewise.
3882 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3883 MSYMBOL_OBJ_SECTION.
3884 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3886 (SYMBOL_OBJ_SECTION): Delete.
3887 (MSYMBOL_OBJ_SECTION): Delete.
3889 2021-02-09 Tom Tromey <tom@tromey.com>
3891 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3893 2021-02-09 Tom de Vries <tdevries@suse.de>
3896 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3897 construct an array type. Add assert to ensure that element_type is
3900 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3902 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
3903 (gcore_collect_regset_section_cb): Delete.
3904 (gcore_collect_thread_registers): Delete.
3905 (gcore_build_thread_register_notes): Delete.
3906 (gcore_find_signalled_thread): Delete.
3907 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
3908 'gdbarch' and 'thread_info' declarations.
3909 (gcore_build_thread_register_notes): Delete declaration.
3910 (gcore_find_signalled_thread): Likewise.
3911 * fbsd-tdep.c: Remove 'gcore.h' include.
3912 (struct fbsd_collect_regset_section_cb_data): New struct.
3913 (fbsd_collect_regset_section_cb): New function.
3914 (fbsd_collect_thread_registers): New function.
3915 (struct fbsd_corefile_thread_data): New struct.
3916 (fbsd_corefile_thread): New function.
3917 (fbsd_make_corefile_notes): Call FreeBSD specific code.
3918 * linux-tdep.c: Remove 'gcore.h' include.
3919 (struct linux_collect_regset_section_cb_data): New struct.
3920 (linux_collect_regset_section_cb): New function.
3921 (linux_collect_thread_registers): New function.
3922 (linux_corefile_thread): Call Linux specific code.
3923 (find_signalled_thread): New function.
3924 (linux_make_corefile_notes): Call find_signalled_thread.
3926 2021-02-09 Tom Tromey <tromey@adacore.com>
3928 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3930 * value.c (value_contents_copy_raw): Now static.
3931 * value.h (value_contents_copy_raw): Don't declare.
3933 2021-02-09 Tom Tromey <tromey@adacore.com>
3935 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3938 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
3941 * arc-linux-tdep.c (handle_atomic_sequence): New.
3942 (arc_linux_software_single_step): Call handle_atomic_sequence().
3944 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3946 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3948 (REQUIRE_WINDOW): Call is_valid member function.
3949 (REQUIRE_WINDOW_FOR_SETTER): New define.
3950 (gdbpy_tui_is_valid): Call is_valid member function.
3951 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
3952 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
3954 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
3955 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
3958 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3960 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3961 for the title is not nullptr.
3963 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3965 * tui-layout.c (saved_tui_windows): Delete.
3966 (tui_apply_current_layout): Don't make use of saved_tui_windows,
3967 call new get_windows member function instead.
3968 (tui_get_window_by_name): Check in tui_windows.
3969 (tui_layout_window::apply): Don't add to tui_windows.
3970 * tui-layout.h (tui_layout_base::get_windows): New member function.
3971 (tui_layout_window::get_windows): Likewise.
3972 (tui_layout_split::get_windows): Likewise.
3974 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3976 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3977 of the window objects.
3979 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3981 * python/python.c (gdbpy_print_stack): Reformat an error message.
3983 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3985 * tui/tui-interp.c (tui_command_line_handler): New function.
3986 (tui_interp::resume): Register tui_command_line_handler as the
3988 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3990 (tui_getc_1): Delete handling of '\n' and '\r'.
3991 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3993 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3995 * tui/tui-regs.c (tui_data_window::display_registers_from):
3996 Mark invisible register sub windows.
3997 (tui_data_window::check_register_values): Ignore invisible
3998 register sub windows.
4000 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4002 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4003 n_spaces with a negative value.
4005 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4007 * tui/tui-regs.c (tui_data_window::display_registers_from):
4008 Add refresh_window call.
4010 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4012 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4014 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4016 * symmisc.c (std_in, std_out, std_err): Remove.
4017 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4019 2021-02-05 Tom de Vries <tdevries@suse.de>
4021 PR breakpoints/27330
4022 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4023 glibc object file has debug info.
4025 2021-02-05 Tom de Vries <tdevries@suse.de>
4028 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4030 2021-02-05 Tom de Vries <tdevries@suse.de>
4032 PR breakpoints/27313
4033 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4036 2021-02-05 Tom Tromey <tom@tromey.com>
4038 * compile/compile-c-support.c (get_compile_context)
4039 (c_get_compile_context, cplus_get_compile_context): Change return
4041 * language.c (language_defn::get_compile_instance): New method.
4042 * language.h (language_defn::get_compile_instance): Change return
4043 type. No longer inline.
4044 * c-lang.c (c_language::get_compile_instance): Change return type.
4045 (cplus_language::get_compile_instance): Change return type.
4046 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4048 * compile/compile.c (compile_to_object): Update.
4050 2021-02-05 Tom Tromey <tom@tromey.com>
4052 * parser-defs.h (write_exp_symbol_reference): Declare.
4053 * parse.c (write_exp_symbol_reference): New function.
4054 * p-exp.y (variable): Use write_exp_symbol_reference.
4055 * m2-exp.y (variable): Use write_exp_symbol_reference.
4056 * f-exp.y (variable): Use write_exp_symbol_reference.
4057 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4058 * c-exp.y (variable): Use write_exp_symbol_reference.
4060 2021-02-05 Tom de Vries <tdevries@suse.de>
4063 * valarith.c (complex_binop): Throw an error if complex type can't
4066 2021-02-05 Tom de Vries <tdevries@suse.de>
4069 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4072 2021-02-05 Tom de Vries <tdevries@suse.de>
4074 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4076 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4078 * configure.tgt (riscv*-*-*): Set gdb_sim.
4080 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4082 * target.c (target_is_non_stop_p): Return bool.
4083 * target.h (target_is_non_stop_p): Return bool.
4085 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4087 * record-full.c (record_full_async_inferior_event_handler):
4088 Don't clear async event handler.
4089 (record_full_base_target::wait): Clear async event handler at
4092 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4094 * record-btrace.c (record_btrace_handle_async_inferior_event):
4095 Don't clear async event handler.
4096 (record_btrace_target::wait): Clear async event handler at
4099 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4101 * remote.c (remote_target::wait): Clear async event handler at
4102 beginning, mark if needed at the end.
4103 (remote_async_inferior_event_handler): Don't set or clear async
4106 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4108 * async-event.h (async_event_handler_func): Add documentation.
4109 * async-event.c (check_async_event_handlers): Don't clear
4110 async_event_handler ready flag.
4111 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4113 * record-btrace.c (record_btrace_handle_async_inferior_event):
4115 * record-full.c (record_full_async_inferior_event_handler):
4117 * remote-notif.c (remote_async_get_pending_events_handler):
4119 * remote.c (remote_async_inferior_event_handler): Likewise.
4121 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4123 * infrun.c (handle_inferior_event): Move stop_soon variable to
4126 2021-02-03 Pedro Alves <pedro@palves.net>
4128 * infcmd.c (detach_command): Hold strong reference to target, and
4129 if all-stop on entry, restart threads on exit.
4130 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4131 (restart_stepped_thread): ... this new function. Also handle
4133 (restart_after_all_stop_detach): New function.
4134 * infrun.h (restart_after_all_stop_detach): Declare.
4136 2021-02-03 Pedro Alves <pedro@palves.net>
4138 * infrun.c (struct step_over_info): Initialize fields.
4139 (prepare_for_detach): Handle ongoing in-line step over.
4141 2021-02-03 Pedro Alves <pedro@palves.net>
4143 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4145 * remote.c (remote_target::remote_detach_1): ... and here ...
4146 * target.c (target_detach): ... instead of here.
4147 * target.h (target_ops::detach): Add comment.
4149 2021-02-03 Pedro Alves <pedro@palves.net>
4151 * infrun.c (struct wait_one_event): Move higher up.
4152 (prepare_for_detach): Abort in-progress displaced steps instead of
4153 letting them complete.
4154 (handle_one): If the inferior is detaching, don't add the thread
4155 back to the global step-over chain.
4156 (restart_threads): Don't restart threads if detaching.
4157 (handle_signal_stop): Remove inferior::detaching reference.
4159 2021-02-03 Pedro Alves <pedro@palves.net>
4161 * infrun.c (prepare_for_detach): Don't release scoped_restore
4164 2021-02-03 Pedro Alves <pedro@palves.net>
4166 * infrun.c (handle_one): New function, factored out from ...
4167 (stop_all_threads): ... here.
4169 2021-02-03 Pedro Alves <pedro@palves.net>
4171 * remote.c (remote_notif_stop_ack): Don't error out on
4172 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4173 (remote_target::discard_pending_stop_replies): Don't delete
4174 in-flight notification; instead, clear its contents.
4176 2021-02-03 Pedro Alves <pedro@palves.net>
4178 * remote.c (extended_remote_target::attach): Set target async in
4179 the target-non-stop path too.
4181 2021-02-03 Pedro Alves <pedro@palves.net>
4184 * infrun.c (handle_signal_stop): Move main context_switch call
4185 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4187 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4189 * NEWS (Changed commands): Add entry for the behavior change of
4190 the inferior command.
4191 * inferior.c (inferior_command): When no argument is given to the
4192 inferior command, display info about the currently selected
4195 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4197 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4199 (read_attribute_reprocess): Adjust.
4201 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4203 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4204 <gnu_ranges_base>: ... this...
4205 <rnglists_base>: ... and this.
4206 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4207 <gnu_ranges_base>: ... this...
4208 <rnglists_base>: ... and this.
4209 (read_cutu_die_from_dwo): Adjust
4210 (dwarf2_get_pc_bounds): Adjust
4211 (dwarf2_record_block_ranges): Adjust.
4212 (read_full_die_1): Adjust
4213 (partial_die_info::read): Adjust.
4214 (read_rnglist_index): Adjust.
4216 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4219 * dwarf2/read.c (read_loclists_rnglists_header): Add
4220 header_offset parameter and use it.
4221 (read_loclist_index): Read header of the current contribution,
4222 not the one at the beginning of the section.
4223 (read_rnglist_index): Likewise.
4225 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4228 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4229 requires_reprocessing flag.
4230 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4232 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4233 and DW_FORM_loclistx.
4234 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4235 instead of set_address for DW_FORM_loclistx and
4238 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4240 * dwarf2/read.c (read_loclist_index): Remove bound check for
4242 (read_rnglist_index): Likewise.
4244 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4246 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4249 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4251 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4253 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4255 * dwarf2/read.c (read_loclist_index): Change complaints into
4258 2021-02-02 Tom de Vries <tdevries@suse.de>
4261 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4264 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4266 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4267 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4268 here from linux-tdep.c and given a new name. Minor cleanups.
4269 (gcore_collect_regset_section_cb): Likewise.
4270 (gcore_collect_thread_registers): Likewise.
4271 (gcore_build_thread_register_notes): Likewise.
4272 (gcore_find_signalled_thread): Likewise.
4273 * gcore.h (gcore_build_thread_register_notes): Declare.
4274 (gcore_find_signalled_thread): Declare.
4275 * fbsd-tdep.c: Add 'gcore.h' include.
4276 (struct fbsd_collect_regset_section_cb_data): Delete.
4277 (fbsd_collect_regset_section_cb): Delete.
4278 (fbsd_collect_thread_registers): Delete.
4279 (struct fbsd_corefile_thread_data): Delete.
4280 (fbsd_corefile_thread): Delete.
4281 (fbsd_make_corefile_notes): Call
4282 gcore_build_thread_register_notes instead of the now deleted
4284 * linux-tdep.c: Add 'gcore.h' include.
4285 (struct linux_collect_regset_section_cb_data): Delete.
4286 (linux_collect_regset_section_cb): Delete.
4287 (linux_collect_thread_registers): Delete.
4288 (linux_corefile_thread): Call
4289 gcore_build_thread_register_notes.
4290 (find_signalled_thread): Delete.
4291 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4293 2021-01-29 Tom de Vries <tdevries@suse.de>
4295 PR breakpoints/26063
4296 * infrun.c (process_event_stop_test): Reset
4297 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4300 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4302 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4303 assert. Extend the header comment.
4305 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4307 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4308 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4309 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4310 (tui_locator_win_info_ptr): Delete declaration.
4311 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4312 (tui_disasm_window::set_contents): Fetch state from tui_location
4314 (tui_get_begin_asm_address): Likewise.
4315 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4317 (get_locator_window): Delete.
4318 (initialize_known_windows): Treat locator window just like all the
4320 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4321 (tui_source_window::set_contents): Fetch state from tui_location
4323 (tui_source_window::showing_source_p): Likewise.
4324 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4326 (tui_locator_win_info_ptr): Delete.
4327 (tui_locator_window::make_status_line): Fetch state from
4328 tui_location global.
4329 (tui_locator_window::rerender): Remove check of 'handle',
4330 reindent function body.
4331 (tui_locator_window::set_locator_fullname): Delete.
4332 (tui_locator_window::set_locator_info): Delete.
4333 (tui_update_locator_fullname): Delete.
4334 (tui_show_frame_info): Likewise.
4335 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4336 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4337 tui/tui-location.h and renamed to
4338 tui_location_tracker::set_location.
4339 (tui_locator_window::set_locator_fullname): Moved to
4340 tui/tui-location.h and renamed to
4341 tui_location_tracker::set_fullname.
4342 (tui_locator_window::full_name): Delete.
4343 (tui_locator_window::proc_name): Delete.
4344 (tui_locator_window::line_no): Delete.
4345 (tui_locator_window::addr): Delete.
4346 (tui_locator_window::gdbarch): Delete.
4347 (tui_update_locator_fullname): Delete declaration.
4348 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4350 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4351 (tui_display_main): Call function on tui_location directly.
4352 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4353 * tui/tui-location.c: New file.
4354 * tui/tui-location.h: New file.
4356 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4358 * gdbtypes.h (get_type_arch): Rename to...
4359 (struct type) <arch>: ... this, update all users.
4361 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4363 * gdbtypes.h (struct type) <arch>: Rename to...
4364 <arch_owner>: ... this, update all users.
4365 <objfile>: Rename to...
4366 <objfile_owner>: ... this, update all users.
4368 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4370 * gdbcmd.h (execute_command_to_string): Update comment.
4371 * top.c (execute_command_to_string): Update header comment.
4373 2021-01-28 Tom de Vries <tdevries@suse.de>
4375 PR breakpoints/27205
4376 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4377 (create_longjmp_master_breakpoint_names): New function, factored out
4379 (create_longjmp_master_breakpoint): ... here. Only try to install
4380 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4381 breakpoint in libc.so failed.
4383 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4386 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4387 unique_ptr is released when the wrapped pointer is kept for later
4390 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4392 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4393 BLR and BR instructions.
4394 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4395 (enum aarch64_masks): New.
4397 2021-01-26 Tom Tromey <tromey@adacore.com>
4399 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4400 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4401 (windows_init_thread_list, windows_nat::handle_load_dll)
4402 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4403 (windows_nat_target::resume)
4404 (windows_nat_target::get_windows_debug_event)
4405 (windows_nat_target::interrupt, windows_xfer_memory)
4406 (windows_nat_target::close): Update.
4407 * nat/windows-nat.c (DEBUG_EVENTS): Use
4408 debug_prefixed_printf_cond.
4409 (matching_pending_stop, fetch_pending_stop)
4410 (continue_last_debug_event): Update.
4412 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4414 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4415 elfcore_write_file_note.
4417 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
4419 * arc-tdep.c (arc_add_reggroups): New function.
4420 (arc_gdbarch_init): Call arc_add_reggroups.
4422 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
4424 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4426 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4427 Simon Marchi <simon.marchi@polymtl.ca>
4428 Tom de Vries <tdevries@suse.de>
4430 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4433 2021-01-25 Tom Tromey <tromey@adacore.com>
4435 * dwarf2/read.c (get_mpz): New function.
4436 (get_dwarf2_rational_constant): Use it.
4438 2021-01-25 Tom Tromey <tromey@adacore.com>
4440 * ada-lang.c (resolve_subexp): Handle array context.
4442 2021-01-23 Tom Tromey <tom@tromey.com>
4445 * compile/compile-loc2c.c (note_register): New function.
4446 (pushf_register_address, pushf_register): Use it.
4448 2021-01-23 Tom Tromey <tom@tromey.com>
4450 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4451 Change type of "registers_used".
4452 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4453 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4454 (locexpr_generate_c_location, loclist_generate_c_location): Change
4455 type of "registers_used".
4456 * compile/compile.h (compile_dwarf_expr_to_c)
4457 (compile_dwarf_bounds_to_c): Update.
4458 * compile/compile-loc2c.c (pushf_register_address)
4459 (pushf_register, do_compile_dwarf_expr_to_c)
4460 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4461 of "registers_used".
4462 * compile/compile-c.h (generate_c_for_variable_locations):
4464 * compile/compile-c-symbols.c (generate_vla_size)
4465 (generate_c_for_for_one_variable): Change type of
4467 (generate_c_for_variable_locations): Return std::vector.
4468 * compile/compile-c-support.c (generate_register_struct): Change
4469 type of "registers_used".
4472 2021-01-23 Tom Tromey <tom@tromey.com>
4474 * compile/compile-internal.h (class compile_instance)
4475 <set_arguments>: Change return type.
4476 * compile/compile.c (compile_to_object): Remove call to reset.
4477 (compile_instance::set_arguments): Change return type.
4479 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4481 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4482 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4484 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4486 * Makefile.in (SELFTESTS_SRCS): Add
4487 unittests/gdb_tilde_expand-selftests.c.
4488 * unittests/gdb_tilde_expand-selftests.c: New file.
4490 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4493 * NEWS: Mention new command.
4494 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4495 (version_style): Define.
4496 (cli_style_option::cli_style_option): Add intensity parameter, and
4498 (_initialize_cli_style): Register version style set/show commands.
4499 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4500 (version_style): Declare.
4501 * top.c (print_gdb_version): Use version_stype, and styled_string
4502 to print the GDB version string.
4504 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4506 * utils.c (emit_style_escape): Only emit an escape sequence if the
4507 requested style is different than the current applied style.
4508 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4509 current applied_style.
4510 (fputs_styled): Remove is_default check.
4511 (fputs_styled_unfiltered): Likewise.
4512 (vfprintf_styled_no_gdbfmt): Likewise.
4514 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4516 * remote.h (remote_debug_printf): New.
4517 (remote_debug_printf_nofunc): New.
4518 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4519 * remote.c: Use above macros throughout file.
4521 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4523 * remote.h (remote_debug): Change to bool.
4524 * remote.c (remote_debug): Change to bool.
4525 (_initialize_remote): Adjust.
4527 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4529 * target.h (remote_debug): Move to...
4530 * remote.h (remote_debug): ... here.
4531 * top.c (remote_debug): Move to...
4532 * remote.c (remote_debug): ... here.
4533 * remote-sim.c: Include remote.h.
4535 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4537 * cli/cli-cmds.c (show_remote_debug): Remove.
4538 (show_remote_timeout): Remove.
4539 (_initialize_cli_cmds): Don't register commands.
4540 * remote.c (show_remote_debug): Move here.
4541 (show_remote_timeout): Move here.
4542 (_initialize_remote): Register commands.
4544 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4546 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4547 type::objfile method instead.
4549 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4551 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4552 use the type::is_objfile_owned method.
4554 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
4556 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4557 (TYPE_OWNER): Remove.
4558 (TYPE_OBJFILE): Adjust.
4559 (struct main_type) <flag_objfile_owned>: Rename to...
4560 <m_flag_objfile_owned>: ... this.
4561 <owner>: Rename to...
4562 <m_owner>: ... this.
4563 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4565 (TYPE_ALLOC): Adjust.
4566 * gdbtypes.c (alloc_type): Adjust.
4567 (alloc_type_arch): Adjust.
4568 (alloc_type_copy): Adjust.
4569 (get_type_arch): Adjust.
4570 (smash_type): Adjust.
4571 (lookup_array_range_type): Adjust.
4572 (recursive_dump_type): Adjust.
4573 (copy_type_recursive): Adjust.
4574 * compile/compile-c-types.c (convert_func): Adjust.
4575 (convert_type_basic): Adjust.
4576 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4579 (language_arch_info::type_and_symbol::alloc_type_symbol):
4582 2021-01-21 Luis Machado <luis.machado@linaro.org>
4584 * coffread.c (enter_linenos): Passing string to complaint.
4585 * valops.c (value_assign): Make array view.
4587 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4589 * auto-load.h (debug_auto_load): Move here.
4590 (auto_load_debug_printf): New.
4591 * auto-load.c: Use auto_load_debug_printf.
4592 (debug_auto_load): Move to header.
4593 * linux-thread-db.c (try_thread_db_load): Use
4594 auto_load_debug_printf.
4595 * main.c (captured_main_1): Likewise.
4597 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4599 * f-valprint.c (f77_array_offset_tbl): Remove.
4601 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4603 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4605 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4607 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4610 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
4613 * python/py-breakpoint.c (bppy_get_location): Handle
4614 bp_hardware_breakpoint.
4615 (bppy_init): Likewise.
4616 (gdbpy_breakpoint_created): Likewise.
4618 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4620 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4622 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4624 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4625 (_initialize_gdb_bfd): Adjust.
4627 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4630 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4632 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4634 * dwarf2/read.c (follow_die_offset): Add logging.
4635 (dwarf2_per_objfile::age_comp_units): Add logging.
4637 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4639 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4640 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4641 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4642 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4643 * arm-tdep.c (struct frame_unwind): Make static.
4644 * auto-load.c (auto_load_safe_path_vec): Make static.
4645 * csky-tdep.c (csky_stub_unwind): Make static.
4646 * gdbarch.c (gdbarch_data_registry): Make static.
4647 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4648 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4649 * i386-tdep.c (i386_frame_setup_skip_insns,
4650 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4652 * infrun.c (observer_mode): Make static.
4653 * linux-nat.c (sigchld_action): Make static.
4654 * linux-thread-db.c (thread_db_list): Make static.
4655 * maint-test-options.c (maintenance_test_options_list):
4656 * mep-tdep.c (mep_csr_registers): Make static.
4657 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4658 (stats): Make static.
4659 * nat/linux-osdata.c (struct osdata_type): Make static.
4660 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4661 * progspace.c (last_program_space_num): Make static.
4662 * python/py-param.c (struct parm_constant): Remove struct type
4664 (parm_constants): Make static.
4665 * python/py-record-btrace.c (btpy_list_methods): Make static.
4666 * python/py-record.c (recpy_gap_type): Make static.
4667 * record.c (record_goto_cmdlist): Make static.
4668 * regcache.c (regcache_descr_handle): Make static.
4669 * registry.h (DEFINE_REGISTRY): Make definition static.
4670 * symmisc.c (std_in, std_out, std_err): Make static.
4671 * top.c (previous_saved_command_line): Make static.
4672 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4674 * unittests/command-def-selftests.c (nr_duplicates,
4675 nr_invalid_prefixcmd, lists): Make static.
4676 * unittests/observable-selftests.c (test_notification): Make
4678 * unittests/optional/assignment/1.cc (counter): Make static.
4679 * unittests/optional/assignment/2.cc (counter): Make static.
4680 * unittests/optional/assignment/3.cc (counter): Make static.
4681 * unittests/optional/assignment/4.cc (counter): Make static.
4682 * unittests/optional/assignment/5.cc (counter): Make static.
4683 * unittests/optional/assignment/6.cc (counter): Make static.
4685 2021-01-20 Joel Sherrill <joel@rtems.org>
4688 * remote.c (struct remote_thread_info) <resume_state>: Rename
4690 <get_resume_state>: ... this.
4691 (remote_target::resume): Adjust.
4692 (remote_target::commit_resume): Adjust.
4693 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4695 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4696 Tom Tromey <tom@tromey.com>
4698 * stap-probe.c (stap_parse_single_operand): Handle '!'
4700 (stap_parse_argument_conditionally): Likewise.
4701 Skip spaces after processing open-parenthesis sub-expression.
4702 (stap_parse_argument_1): Skip spaces after call to
4703 stap_parse_argument_conditionally.
4704 Handle case when right-side expression is a parenthesized
4706 Skip spaces after call to stap_parse_argument_1.
4708 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4710 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4712 2021-01-19 Luis Machado <luis.machado@linaro.org>
4714 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4715 memory and save data.
4716 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4717 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4718 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4719 (trad_frame_value_bytes_p): Remove.
4720 (trad_frame_reset_saved_regs): Adjust documentation.
4721 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4722 constructor and reset the state of the registers.
4723 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4724 (trad_frame_value_bytes_p, trad_frame_set_value)
4725 (trad_frame_set_realreg, trad_frame_set_addr)
4726 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4727 (trad_frame_set_reg_realreg): Update to call member function.
4728 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4729 (trad_frame_get_prev_register): Likewise.
4731 * aarch64-tdep.c (aarch64_analyze_prologue)
4732 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4733 (aarch64_prologue_prev_register): Update to use member functions.
4734 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4735 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4736 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4737 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4738 (arm_make_epilogue_frame_cache): Likewise.
4739 * avr-tdep.c (avr_frame_unwind_cache)
4740 (avr_frame_prev_register): Likewise.
4741 * cris-tdep.c (cris_scan_prologue): Likewise.
4742 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4743 * frv-tdep.c (frv_analyze_prologue): Likewise.
4744 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4745 * lm32-tdep.c (lm32_frame_cache): Likewise.
4746 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4747 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4748 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4749 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4750 (reset_saved_regs): Adjust to set realreg.
4751 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4752 call member functions.
4753 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4754 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4755 (s390_backchain_frame_unwind_cache): Likewise.
4756 * score-tdep.c (score7_analyze_prologue)
4757 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4758 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4759 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4760 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4761 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4762 * tilegx-tdep.c (tilegx_analyze_prologue)
4763 (tilegx_frame_cache): Likewise.
4764 * v850-tdep.c (v850_frame_cache): Likewise.
4765 * vax-tdep.c (vax_frame_cache): Likewise.
4767 2021-01-19 Luis Machado <luis.machado@linaro.org>
4769 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4771 (put_frame_register_bytes): Likewise.
4772 Adjust documentation.
4773 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4774 (safe_frame_unwind_memory): Likewise.
4775 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4776 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4778 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4779 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4780 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4781 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4782 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4783 * dwarf2/loc.c (rw_pieced_value): Likewise.
4784 * hppa-tdep.c (hppa_frame_cache): Likewise.
4785 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4786 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4787 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4788 (i386_linux_rt_sigtramp_start): Likewise.
4789 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4790 * i386-tdep.c (i386_register_to_value): Likewise.
4791 * i387-tdep.c (i387_register_to_value): Likewise.
4792 * ia64-tdep.c (ia64_register_to_value): Likewise.
4793 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4794 (m32r_linux_rt_sigtramp_start): Likewise.
4795 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4796 * m68k-tdep.c (m68k_register_to_value): Likewise.
4797 * mips-tdep.c (mips_register_to_value)
4798 (mips_value_to_register): Likewise.
4799 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4800 (ppcfbsd_sigtramp_frame_cache): Likewise.
4801 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4802 (ppcobsd_sigtramp_frame_cache): Likewise.
4803 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4804 (rs6000_register_to_value): Likewise.
4805 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4806 * tramp-frame.c (tramp_frame_start): Likewise.
4807 * valops.c (value_assign): Likewise.
4809 2021-01-19 Luis Machado <luis.machado@linaro.org>
4811 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4813 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4814 instead of buffer and size.
4815 (trad_frame_set_reg_value_bytes): Likewise.
4816 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4817 (trad_frame_set_value_bytes): Likewise.
4819 2021-01-18 Mike Frysinger <vapier@gentoo.org>
4821 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4823 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
4825 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4826 (riscv_fbsd_gregset): Use riscv_supply_regset.
4827 (riscv_fbsd_fpregset): Likewise.
4828 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4829 (riscv_linux_fregset): Likewise.
4830 * riscv-tdep.c (riscv_supply_regset): Define new function.
4831 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4833 2021-01-18 Tom de Vries <tdevries@suse.de>
4836 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4838 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4841 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4843 * remote.c (class remote_target) <remote_hostio_send_command,
4844 remote_hostio_parse_result>: Constify parameter.
4845 (remote_hostio_parse_result): Likewise.
4846 (remote_target::remote_hostio_send_command): Adjust.
4847 (remote_target::remote_hostio_pread_vFile): Adjust.
4848 (remote_target::fileio_readlink): Adjust.
4849 (remote_target::fileio_fstat): Adjust.
4851 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4853 * remote.c (remote_target::start_remote): Move wait_status to
4856 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4858 * remote.c (class remote_target):
4859 <add_current_inferior_and_thread>: Constify parameter.
4860 (stop_reply_extract_thread): Likewise.
4861 (remote_target::get_current_thread): Likewise.
4862 (remote_target::add_current_inferior_and_thread): Likewise.
4864 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4866 * remote.c (class remote_target)
4867 <remote_unpack_thread_info_response,
4868 parse_threadlist_response>: Constify parameter and/or return
4869 value and or local variable.
4870 (stub_unpack_int): Likewise.
4871 (unpack_nibble): Likewise.
4872 (unpack_byte): Likewise.
4873 (unpack_int): Likewise.
4874 (unpack_string): Likewise.
4875 (unpack_threadid): Likewise.
4876 (remote_target::remote_unpack_thread_info_response): Likewise.
4877 (remote_target::parse_threadlist_response): Likewise.
4879 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
4881 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4883 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
4885 * MAINTAINERS (Write After Approval): Add myself.
4887 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4889 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4890 because is_trivially_default_constructible was first implemented with
4893 2021-01-14 Tom de Vries <tdevries@suse.de>
4895 PR breakpoints/27151
4896 * objfiles.h (in_plt_section): Handle .plt.sec.
4898 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4902 (remote_target::select_thread_for_ambiguous_stop_reply): New
4904 (remote_target::process_stop_reply): Call
4905 select_thread_for_ambiguous_stop_reply.
4907 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
4909 * record-btrace.c (class record_btrace_target): Remove.
4910 (record_btrace_target::commit_resume): Remove.
4911 * record-full.c (class record_full_target): Remove.
4912 (record_full_target::commit_resume): Remove.
4914 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
4916 * remote.c (enum class resume_state): New.
4917 (struct resumed_pending_vcont_info): New.
4918 (struct remote_thread_info) <resume_state, set_not_resumed,
4919 set_resumed_pending_vcont, resumed_pending_vcont_info,
4920 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
4922 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
4923 (remote_target::remote_add_thread): Adjust.
4924 (remote_target::process_initial_stop_replies): Adjust.
4925 (remote_target::resume): Adjust.
4926 (remote_target::commit_resume): Rely on state in
4927 remote_thread_info and not on tp->executing.
4928 (remote_target::process_stop_reply): Adjust.
4930 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4932 * arc-tdep.h (arc_debug_printf): New.
4933 * arc-tdep.c: Use arc_debug_printf.
4934 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
4935 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
4936 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
4938 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4940 * arc-tdep.h (arc_debug): Change type to bool.
4941 * arc-tdep.c (arc_debug): Change type to bool.
4942 (arc_analyze_prologue): Adjust.
4943 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
4944 * arc-linux-nat.c (ps_get_thread_area): Adjust.
4946 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4948 * auto-load.c (auto_load_objfile_script_1): Use bool.
4949 (execute_script_contents): Use bool.
4951 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4953 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4955 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4957 * extension-priv.h (struct extension_language_script_ops)
4958 <auto_load_enabled>: Return bool.
4959 * extension.h (ext_lang_auto_load_enabled): Return bool, move
4961 * extension.c (ext_lang_auto_load_enabled): Return bool, move
4963 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4965 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
4966 move comment to header.
4967 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
4969 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4970 move comment to header.
4972 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4974 * auto-load.h (file_is_auto_load_safe): Change return type to
4975 bool, move comment here.
4976 * auto-load.c (file_is_auto_load_safe): Change return type and
4977 advice_printed to bool. Move comment to header.
4979 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4981 * jit.c (jit_debug_printf): New, use throughout file.
4983 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4985 * infrun.c (normal_stop): Fix indentation.
4987 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4989 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4991 * symfile.h: ... here.
4992 * symfile.c: Update doc.
4994 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4996 * target.h (baud_rate, serial_parity): Move declarations...
4997 * serial.h: ... here.
4998 * main.c: Include serial.h.
4999 * serial.c (baud_rate, serial_parity): Update doc.
5001 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5003 * top.c (pre_init_ui_hook): Remove.
5005 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5007 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5008 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5009 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5010 * features/aarch64-fpu.xml: Add bfloat16 type.
5012 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5014 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5016 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5018 * f-exp.y (dot_ops): Rename to...
5019 (fortran_operators): ...this. Add a header comment. Add symbol
5021 (yylex): Update to use fortran_operators not dot_ops. Remove
5022 special handling for '**', this is now included in
5025 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5027 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5028 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5029 * aarch64-tdep.c: Use aarch64_debug_printf.
5031 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5033 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5036 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5038 * jit.c (jit_debug): Change type to bool.
5039 (_initialize_jit): Adjust.
5041 2021-01-09 Tom Tromey <tom@tromey.com>
5044 * compile/compile.c (compile_to_object): Avoid crash when
5045 osabi_triplet_regexp returns NULL.
5047 2021-01-09 Tom Tromey <tom@tromey.com>
5049 * tracepoint.h (class collection_list) <append_exp>: Take a
5051 * tracepoint.c (collection_list::append_exp): Take a std::string.
5052 (encode_actions_1): Update.
5054 2021-01-08 Tom Tromey <tromey@adacore.com>
5056 * parse.c (parse_expression): Add void_context_p parameter. Use
5057 parse_exp_in_context.
5058 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5060 (print_command, call_command): Update.
5061 * expression.h (parse_expression): Add void_context_p parameter.
5063 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5065 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5066 for internalvar components that have a dynamic location.
5068 2021-01-08 Tom de Vries <tdevries@suse.de>
5071 * breakpoint.c (create_exception_master_breakpoint_probe)
5072 (create_exception_master_breakpoint_hook): Factor out
5074 (create_exception_master_breakpoint): ... here. Only try to install
5075 the master exception breakpoint in objfile.debug using the
5076 _Unwind_DebugHook method, if the install using probes in objfile
5079 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5081 * f-lang.c (fortran_value_subarray): Call value_from_component.
5083 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5085 * remote-sim.c: Include memory-map.h.
5086 (gdbsim_target): Define memory_map override.
5087 (gdbsim_target::memory_map): Define.
5089 2021-01-07 Tom Tromey <tromey@adacore.com>
5091 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5093 2021-01-07 Tom Tromey <tromey@adacore.com>
5095 * ada-lang.c (add_component_interval): Start loop using vector's
5098 2021-01-06 Tom Tromey <tromey@adacore.com>
5100 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5102 * valarith.c (fixed_point_binop): Handle multiplication
5103 and division specially.
5104 * valops.c (value_to_gdb_mpq): New function.
5105 (value_cast_to_fixed_point): Use it.
5107 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5109 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5110 Call wnoutrefresh instead of tui_win_info::refresh_window.
5112 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5114 * tui/tui-source.c (tui_source_window::show_line_number):
5115 Redraw second space after line number.
5117 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5120 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5121 Fix source pad size in prefresh.
5122 (tui_source_window_base::show_source_content): Grow source pad
5125 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5127 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5128 (bfin_frame_align): Use align_down.
5130 2021-01-04 Tom de Vries <tdevries@suse.de>
5132 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5133 terminators that do not terminate anything.
5135 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5137 * debug.c (debug_print_depth): New.
5138 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5139 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5140 * infrun.c (start_step_over): Use
5141 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5142 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5143 INFRUN_SCOPED_DEBUG_START_END.
5144 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5146 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5148 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5150 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5152 * utils.c (vfprintf_unfiltered): Print timestamp only when
5153 previous debug output ended with a newline.
5155 2021-01-04 Luis Machado <luis.machado@linaro.org>
5157 Update all users of trad_frame_saved_reg to use the new member
5160 Remote all struct keywords from declarations of trad_frame_saved_reg
5161 types, except on forward declarations.
5163 * aarch64-tdep.c: Update.
5164 * alpha-mdebug-tdep.c: Update.
5165 * alpha-tdep.c: Update.
5166 * arc-tdep.c: Update.
5167 * arm-tdep.c: Update.
5168 * avr-tdep.c: Update.
5169 * cris-tdep.c: Update.
5170 * csky-tdep.c: Update.
5171 * frv-tdep.c: Update.
5172 * hppa-linux-tdep.c: Update.
5173 * hppa-tdep.c: Update.
5174 * hppa-tdep.h: Update.
5175 * lm32-tdep.c: Update.
5176 * m32r-linux-tdep.c: Update.
5177 * m32r-tdep.c: Update.
5178 * m68hc11-tdep.c: Update.
5179 * mips-tdep.c: Update.
5180 * moxie-tdep.c: Update.
5181 * riscv-tdep.c: Update.
5182 * rs6000-tdep.c: Update.
5183 * s390-linux-tdep.c: Update.
5184 * s390-tdep.c: Update.
5185 * score-tdep.c: Update.
5186 * sparc-netbsd-tdep.c: Update.
5187 * sparc-sol2-tdep.c: Update.
5188 * sparc64-fbsd-tdep.c: Update.
5189 * sparc64-netbsd-tdep.c: Update.
5190 * sparc64-obsd-tdep.c: Update.
5191 * sparc64-sol2-tdep.c: Update.
5192 * tilegx-tdep.c: Update.
5193 * v850-tdep.c: Update.
5194 * vax-tdep.c: Update.
5196 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5197 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5199 * trad-frame.c: Update.
5200 Remove TF_REG_* enum.
5201 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5202 a trivially-constructible struct.
5203 (trad_frame_reset_saved_regs): Adjust to use member function.
5204 (trad_frame_value_p): Likewise.
5205 (trad_frame_addr_p): Likewise.
5206 (trad_frame_realreg_p): Likewise.
5207 (trad_frame_value_bytes_p): Likewise.
5208 (trad_frame_set_value): Likewise.
5209 (trad_frame_set_realreg): Likewise.
5210 (trad_frame_set_addr): Likewise.
5211 (trad_frame_set_unknown): Likewise.
5212 (trad_frame_set_value_bytes): Likewise.
5213 (trad_frame_get_prev_register): Likewise.
5214 * trad-frame.h: Update.
5215 (trad_frame_saved_reg_kind): New enum.
5216 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5217 <m_kind, m_reg>: New member fields.
5218 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5219 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5220 <is_addr, is_unknown, is_value_bytes>: New member functions.
5222 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5224 * target-float.c: Fix typos.
5226 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5228 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5230 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5232 * gdbarch.sh: Update copyright year range.
5234 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5236 Update copyright year range in copyright header of all GDB files.
5238 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5240 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5241 to the list of directories to update.
5243 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5245 * top.c (print_gdb_version): Update copyright year.
5247 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5249 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5251 For older changes see ChangeLog-2020.
5257 version-control: never