1 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
3 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
5 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
7 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
8 (producer_is_icc): Replace use of std::regex with gdb's
11 2021-04-17 Tom Tromey <tom@tromey.com>
14 * dwarf2/read.c (class offset_view): New.
15 (struct symbol_table_slot): Remove.
16 (struct mapped_index) <symbol_table, constant_pool>: Change type.
17 <symbol_name_index, symbol_vec_index>: New methods.
18 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
20 (read_gdb_index_from_buffer): Update.
21 (struct dw2_symtab_iterator) <vec>: Change type.
22 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
23 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
24 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
25 <append_array, append_offset>: New methods.
26 (write_hash_table, add_address_entry, write_gdbindex_1)
27 (write_debug_names): Update.
28 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
30 2021-04-17 Tom Tromey <tom@tromey.com>
32 * dwarf2/index-write.c (write_psymtabs_to_index): Check
35 2021-04-17 Tom Tromey <tom@tromey.com>
37 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
38 from map_matching_symbols. Change parameters.
39 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
40 Rename from map_matching_symbols. Change parameters.
41 * dwarf2/read.c (struct dwarf2_gdb_index)
42 <expand_matching_symbols>: Rename from map_matching_symbols.
44 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
45 Rename from map_matching_symbols. Change parameters.
46 (dwarf2_gdb_index::expand_matching_symbols): Rename from
47 dw2_map_matching_symbols. Change parameters.
48 (dwarf2_gdb_index::expand_matching_symbols): Remove old
50 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
51 map_matching_symbols. Change parameters.
52 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
53 from map_matching_symbols. Change parameters.
54 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
55 map_matching_symbols. Change parameters.
56 * ada-lang.c (map_matching_symbols): New function.
57 (add_nonlocal_symbols): Update.
59 2021-04-17 Tom Tromey <tom@tromey.com>
61 * quick-symbol.h (struct quick_symbol_functions)
62 <expand_symtabs_with_fullname>: Remove.
63 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
65 * psympriv.h (struct psymbol_functions)
66 <expand_symtabs_with_fullname>: Remove.
67 * dwarf2/read.c (struct dwarf2_base_index_functions)
68 <expand_symtabs_with_fullname>: Remove.
69 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
71 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
73 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
76 2021-04-17 Tom Tromey <tom@tromey.com>
78 * symfile-debug.c (objfile::expand_symtabs_for_function):
80 * quick-symbol.h (struct quick_symbol_functions)
81 <expand_symtabs_for_function>: Remove.
82 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
84 * psympriv.h (struct psymbol_functions)
85 <expand_symtabs_for_function>: Remove.
86 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
88 * dwarf2/read.c (struct dwarf2_gdb_index)
89 <expand_symtabs_for_function>: Remove.
90 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
92 (find_slot_in_mapped_hash): Remove.
93 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
94 (dw2_symtab_iter_init): Remove one overload.
95 (dwarf2_gdb_index::expand_symtabs_for_function)
96 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
98 2021-04-17 Tom Tromey <tom@tromey.com>
100 * symfile-debug.c (objfile::map_symtabs_matching_filename):
102 * quick-symbol.h (struct quick_symbol_functions)
103 <map_symtabs_matching_filename>: Remove.
104 * psymtab.c (partial_map_expand_apply)
105 (psymbol_functions::map_symtabs_matching_filename): Remove.
106 * psympriv.h (struct psymbol_functions)
107 <map_symtabs_matching_filename>: Remove.
108 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
110 * dwarf2/read.c (struct dwarf2_base_index_functions)
111 <map_symtabs_matching_filename>: Remove.
112 (dw2_map_expand_apply)
113 (dwarf2_base_index_functions::map_symtabs_matching_filename):
116 2021-04-17 Tom Tromey <tom@tromey.com>
118 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
119 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
121 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
122 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
123 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
124 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
126 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
127 (dwarf2_gdb_index::lookup_symbol)
128 (dwarf2_debug_names_index::lookup_symbol): Remove.
130 2021-04-17 Tom Tromey <tom@tromey.com>
132 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
133 * symmisc.c (maintenance_expand_symtabs): Update.
134 * symfile.c (expand_symtabs_matching): Update.
135 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
137 * quick-symbol.h (struct quick_symbol_functions)
138 <expand_symtabs_matching>: Add 'domain' parameter.
139 * psymtab.c (recursively_search_psymtabs)
140 (psymbol_functions::expand_symtabs_matching): Add 'domain'
142 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
143 Add 'domain' parameter.
144 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
146 * linespec.c (iterate_over_all_matching_symtabs): Update.
147 * dwarf2/read.c (struct dwarf2_gdb_index)
148 <expand_symtabs_matching>: Add 'domain' parameter.
149 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
151 (dw2_expand_symtabs_matching)
152 (dwarf2_gdb_index::expand_symtabs_matching)
153 (dw2_debug_names_iterator)
154 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
157 2021-04-17 Tom Tromey <tom@tromey.com>
159 * symtab.c (global_symbol_searcher::expand_symtabs)
160 (default_collect_symbol_completion_matches_break_on): Update.
161 * symmisc.c (maintenance_expand_symtabs): Update.
162 * symfile.h (expand_symtabs_matching): Add search_flags
164 * symfile.c (expand_symtabs_matching): Add search_flags
166 * symfile-debug.c (objfile::expand_symtabs_matching): Add
167 search_flags parameter.
168 * quick-symbol.h (struct quick_symbol_functions)
169 <expand_symtabs_matching>: Add search_flags parameter.
170 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
171 * psymtab.c (recursively_search_psymtabs)
172 (psymbol_functions::expand_symtabs_matching): Add search_flags
174 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
175 Add search_flags parameter.
176 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
177 search_flags parameter.
178 * linespec.c (iterate_over_all_matching_symtabs): Update.
179 * dwarf2/read.c (struct dwarf2_gdb_index)
180 <expand_symtabs_matching>: Add search_flags parameter.
181 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
182 search_flags parameter.
183 (dw2_map_matching_symbols): Update.
184 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
185 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
187 (dw2_debug_names_iterator): Change block_index to search flags.
188 <m_block_index>: Likewise.
189 (dw2_debug_names_iterator::next)
190 (dwarf2_debug_names_index::lookup_symbol)
191 (dwarf2_debug_names_index::expand_symtabs_for_function)
192 (dwarf2_debug_names_index::map_matching_symbols)
193 (dwarf2_debug_names_index::map_matching_symbols): Update.
194 (dwarf2_debug_names_index::expand_symtabs_matching): Add
195 search_flags parameter.
196 * ada-lang.c (ada_add_global_exceptions)
197 (collect_symbol_completion_matches): Update.
199 2021-04-17 Tom Tromey <tom@tromey.com>
201 * symtab.c (default_collect_symbol_completion_matches_break_on):
203 * symfile.h (expand_symtabs_matching): Return bool.
204 * symfile.c (expand_symtabs_matching): Return bool.
205 * symfile-debug.c (objfile::expand_symtabs_matching): Return
207 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
208 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
210 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
212 * psympriv.h (struct psymbol_functions)
213 <expand_symtabs_matching>: Return bool.
214 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
216 * dwarf2/read.c (struct dwarf2_gdb_index)
217 <expand_symtabs_matching>: Return bool.
218 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
220 (dw2_expand_symtabs_matching_symbol): Return bool.
221 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
222 (dw2_expand_symtabs_matching)
223 (dwarf2_gdb_index::expand_symtabs_matching)
224 (dwarf2_debug_names_index::expand_symtabs_matching)
225 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
227 2021-04-17 Tom Tromey <tom@tromey.com>
229 * quick-symbol.h (enum block_search_flag_values): New.
230 (block_search_flags): New enum flags type.
232 2021-04-16 Tom Tromey <tom@tromey.com>
234 * rust-parse.c: New file.
235 * rust-exp.y: Remove.
236 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
237 (SFILES): Remove rust-exp.y.
238 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
240 2021-04-16 Luis Machado <luis.machado@linaro.org>
242 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
244 2021-04-15 John Baldwin <jhb@FreeBSD.org>
246 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
249 2021-04-15 Tom Tromey <tromey@adacore.com>
251 * ada-valprint.c (ada_value_print_array): Handle optimized-out
254 2021-04-15 Tom Tromey <tromey@adacore.com>
256 * printcmd.c (print_variable_and_value): Use
257 common_val_print_checked.
259 2021-04-15 Tom Tromey <tromey@adacore.com>
261 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
262 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
264 * p-exp.y (variable): Update.
265 * m2-exp.y (variable): Update.
266 * go-exp.y (variable): Update.
267 * expprint.c (dump_for_expression): New overload.
268 * expop.h (check_objfile): New overload.
269 (check_constant): New overload.
270 (class var_value_operation): Use block_symbol.
271 <get_symbol>: Rewrite.
272 * eval.c (var_value_operation::evaluate)
273 (var_value_operation::evaluate_funcall)
274 (var_value_operation::evaluate_for_address)
275 (var_value_operation::evaluate_for_address)
276 (var_value_operation::evaluate_with_coercion)
277 (var_value_operation::evaluate_for_sizeof)
278 (var_value_operation::evaluate_for_cast): Update.
279 * d-exp.y (PrimaryExpression): Update.
280 * c-exp.y (variable): Update.
281 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
282 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
283 (ada_var_value_operation::evaluate)
284 (ada_var_value_operation::resolve)
285 (ada_funcall_operation::resolve): Update.
286 * ada-exp.y (write_var_from_sym, write_object_renaming)
287 (write_ambiguous_var, write_var_or_type, write_name_assoc)
288 (maybe_overload): Update.
289 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
291 2021-04-15 Tom Tromey <tom@tromey.com>
292 Andrew Burgess <andrew.burgess@embecosm.com>
295 * main.c (captured_main_1): Call check_quiet_mode.
296 * top.c (startup_quiet): New global.
297 (check_quiet_mode): New function.
298 (show_startup_quiet): New function.
299 (init_main): Register new command.
300 * top.h (check_quiet_mode): Declare.
302 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
305 * NEWS: Mention new early init files and command line options.
306 * config.in: Regenerate.
307 * configure: Regenerate.
308 * configure.ac: Define GDBEARLYINIT.
309 * main.c (get_earlyinit_files): New function.
310 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
311 CMDARG_EARLYINIT_COMMAND.
312 (captured_main_1): Add support for new command line flags, and for
313 processing startup files.
314 (print_gdb_help): Include startup files in the output.
316 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
318 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
319 (relocate_file_path_maybe_in_datadir): ...this.
320 (class gdb_initfile_finder): New class.
321 (get_init_files): Now uses gdb_initfile_finder.
322 (print_gdb_help): Print 'None found' when there are no init files.
324 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
326 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
327 corresponding child of the abstract DIE when iterating the
328 children of the concrete DIE.
330 2021-04-13 Tom de Vries <tdevries@suse.de>
332 * ui-style.c (read_semi_number, extended_color): Change idx parameter
335 2021-04-13 Luis Machado <luis.machado@linaro.org>
337 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
340 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
342 * rs6000-tdep.c: Add support for single-stepping of
343 prefixed instructions.
345 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
348 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
349 handle the addpcis/lnia instruction.
351 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
353 * MAINTAINERS (Write After Approval): Add myself.
355 2021-4-12 Carl Love <cel@us.ibm.com>
357 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
358 (rs6000_builtin_type_vec128): Add append_composite_type_field for
361 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
363 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
364 * nat/windows-nat.h: Likewise.
366 2021-04-10 Eli Zaretskii <eliz@gnu.org>
368 * windows-nat.c (windows_nat::handle_load_dll): Call
369 windows_add_dll if get_image_name failed to glean the name of the
370 DLL by using the lpImageName pointer.
371 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
372 (windows_add_dll): Now does what windows_add_all_dlls did before,
373 but also accepts an argument LOAD_ADDR, which, if non-NULL,
374 specifies the address where the DLL was loaded into the inferior,
375 and looks for the single DLL loaded at that address.
377 2021-04-09 Luis Machado <luis.machado@linaro.org>
379 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
381 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
383 * darwin-nat.c (darwin_nat_target::resume): Remove status
386 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
388 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
389 prologue end for Intel compilers.
390 * amd64-tdep.c (amd64_skip_prologue): Likewise.
391 * producer.c (producer_is_icc_ge_19): New function.
392 * producer.h (producer_is_icc_ge_19): New declaration.
394 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
396 * producer.c: (producer_is_icc): Update for new version scheme.
397 (producer_parsing_tests): Update names and expected results.
398 * producer.h: (producer_is_icc): Update comment accordingly.
400 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
402 * target.h (struct target_ops) <follow_fork>: Return void.
403 (target_follow_fork): Likewise.
404 * target.c (default_follow_fork): Likewise.
405 (target_follow_fork): Likewise.
406 * infrun.c (follow_fork_inferior): Adjust.
407 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
408 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
409 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
410 * linux-nat.c (linux_nat_target::follow_fork): Return void.
411 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
412 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
413 * remote.c (class remote_target) <follow_fork>: Likewise.
414 (remote_target::follow_fork): Likewise.
415 * target-delegates.c: Re-generate.
417 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
419 * ctfread.c (fetch_tid_type): New function, use throughout file.
420 (read_forward_type): New function.
421 (read_type_record): Call read_forward_type.
423 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
425 * f-exp.h (class fortran_structop_operation): New class.
426 * f-exp.y (exp): Create fortran_structop_operation instead of the
427 generic structop_operation.
428 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
429 expression as EVAL_NORMAL if the result type was dynamic so we can
430 extract the actual array bounds.
431 (fortran_structop_operation::evaluate): New function.
433 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
435 * eval.c (evaluate_subexp_standard): Remove
436 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
439 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
441 * valops.c (value_cast): Call value_deeply_equal before performing
444 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
446 * gdbtypes.c (types_equal): Move pointer equality check earlier in
449 2021-04-07 Caroline Tice <cmtice@google.com>
451 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
452 the search paths used resolve relative location of .dwo file.
454 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
456 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
458 (dwarf2_section_info::get_file_name): Add an assert.
459 (dwarf2_section_info::read_string): Display a minimal, sane error
460 when the dwarf2_section_info is not associated with a bfd section.
462 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
464 * top.c (staged_gdb_datadir): Update comment.
465 (set_gdb_datadir): Copy the value of gdb_datadir back into
467 (init_main): Initialise staged_gdb_datadir.
469 2021-04-06 Tom de Vries <tdevries@suse.de>
472 * infcmd.c (prepare_one_step): Using inline frame info to narrow
475 2021-04-06 Tom de Vries <tdevries@suse.de>
478 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
481 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
483 * avr-tdep.c (avr_frame_unwind_cache): Use
484 trad_frame_saved_reg::is_addr.
486 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
488 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
491 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
493 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
494 objfile parameter for objfile_per_bfd_storage, adjust callers.
495 (struct standard_psymtab) <standard_psymtab>: Likewise.
496 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
497 * psymtab.c (partial_symtab::partial_symtab): Likewise.
498 * ctfread.c (struct ctf_psymtab): Likewise.
499 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
500 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
501 (dwarf2_create_include_psymtab): Likewise.
502 * objfiles.h (struct objfile_per_bfd_storage)
503 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
504 <get_bfd>: New method.
506 * objfiles.c (get_objfile_bfd_data): Adjust.
508 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
510 * psymtab.c (partial_symtab::partial_symtab): Change
511 last_objfile_name to be an std::string.
512 * symfile.c (allocate_symtab): Likewise.
514 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
516 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
518 (struct objfile) <intern>: Use
519 objfile::objfile_per_bfd_storage::intern.
521 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
523 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
524 with type::is_flag_enum.
526 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
528 * gdbtypes.h (struct type) <is_flag_enum,
529 set_is_flag_enum>: New methods.
530 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
531 write call sites to use type::set_is_flag_enum.
533 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
535 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
536 with type::is_declared_class.
538 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
540 * gdbtypes.h (struct type) <is_declared_class,
541 set_is_declared_class>: New methods.
542 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
543 write call sites to use type::set_is_declared_class.
545 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
547 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
548 to avoid deprecation warnings.
550 2021-04-01 Martin Liska <mliska@suse.cz>
552 * cp-name-parser.y: Use startswith instead of strncmp.
553 * m2-exp.y: Likewise.
554 * macroexp.c (substitute_args): Likewise.
555 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
556 * rust-exp.y: Likewise.
558 2021-03-31 Tom Tromey <tom@tromey.com>
560 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
561 with dw2_map_matching_symbols.
562 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
563 dw2_expand_symtabs_matching.
565 2021-03-31 Tom Tromey <tromey@adacore.com>
567 * dwarf2/stringify.h: Fix typo.
569 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
572 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
573 with objfiles using READNOW.
575 2021-03-29 Tom Tromey <tromey@adacore.com>
577 * top.c (check_frame_language_change): Update.
578 * language.c (language_info): Remove parameter.
579 * language.h (language_info): Remove parameter.
581 2021-03-29 Luis Machado <luis.machado@linaro.org>
583 * compile/compile.c (get_args): Don't add empty argv entries.
585 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
588 * procfs.c (procfs_target::attach): Define inf.
590 (procfs_target::create_inferior): Likewise.
592 2021-03-28 Tom Tromey <tom@tromey.com>
594 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
595 (elf_symfile_read): Simplify.
596 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
597 (make_lazy_dwarf_reader): New function.
598 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
599 (dwarf2_initialize_objfile): Return void. Remove index_kind
600 parameter. Push on 'qf' list.
601 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
602 type. Remove 'index_kind' parameter.
603 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
605 2021-03-27 Tom Tromey <tom@tromey.com>
607 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
609 2021-03-27 Tom Tromey <tom@tromey.com>
611 * elfread.c (elf_symfile_read): Don't clear 'qf'.
613 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
615 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
618 2021-03-26 Tom Tromey <tom@tromey.com>
620 * symtab.c (struct output_source_filename_data): Add 'output'
621 method and operator().
622 (output_source_filename_data::output): Rename from
623 output_source_filename.
624 (output_partial_symbol_filename): Remove.
625 (info_sources_command): Update.
626 (struct add_partial_filename_data): Add operator().
627 (add_partial_filename_data::operator()): Rename from
628 maybe_add_partial_symtab_filename.
629 (make_source_files_completion_list): Update.
630 * symfile.c (quick_symbol_functions): Update.
631 * symfile-debug.c (objfile::map_symbol_filenames): Update.
632 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
633 'need_fullname'. Remove 'data' parameter.
634 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
635 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
636 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
637 Change type of 'fun' and 'need_fullname'. Remove 'data'
639 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
640 of 'fun' and 'need_fullname'. Remove 'data' parameter.
641 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
643 (mi_cmd_file_list_exec_source_files): Update.
645 (dwarf2_base_index_functions::map_symbol_filenames): Update.
647 2021-03-26 Tom Tromey <tom@tromey.com>
649 * ada-lang.c (struct match_data): Add operator().
650 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
651 (callback): Remove 'callback'.
653 2021-03-26 Tom Tromey <tom@tromey.com>
655 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
656 call make_ignore_params once.
658 2021-03-26 Tom Tromey <tom@tromey.com>
660 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
663 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
664 Pedro Alves <pedro@palves.net>
666 * async-event.c: Include "infrun.h".
667 (async_event_handler_marked): New.
668 * async-event.h (async_event_handler_marked): Declare.
669 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
670 inferior before calling target method. Don't commit-resumed if
671 target_has_pending_events is true.
672 * remote.c (remote_target::has_pending_events): New.
673 * target-delegates.c: Regenerate.
674 * target.c (target_has_pending_events): New.
675 * target.h (target_ops::has_pending_events): New target method.
676 (target_has_pending_events): New.
678 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
679 Pedro Alves <pedro@palves.net>
681 * infcmd.c (run_command_1, attach_command, detach_command)
682 (interrupt_target_1): Use scoped_disable_commit_resumed.
683 * infrun.c (do_target_resume): Remove
684 target_commit_resume call.
685 (commit_resume_all_targets): Remove.
686 (maybe_set_commit_resumed_all_targets): New.
687 (maybe_call_commit_resumed_all_targets): New.
688 (enable_commit_resumed): New.
689 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
690 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
691 (scoped_disable_commit_resumed::reset)
692 (scoped_disable_commit_resumed::reset_and_commit)
693 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
694 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
696 (proceed): Use scoped_disable_commit_resumed and
697 maybe_call_commit_resumed_all_targets.
698 (fetch_inferior_event): Use scoped_disable_commit_resumed.
699 * infrun.h (struct scoped_disable_commit_resumed): New.
700 (maybe_call_commit_resumed_all_process_targets): New.
701 (struct scoped_enable_commit_resumed): New.
702 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
703 * process-stratum-target.h (class process_stratum_target):
704 <commit_resumed_state>: New.
705 * record-full.c (record_full_wait_1): Change commit_resumed_state
706 around calling commit_resumed.
707 * remote.c (class remote_target) <commit_resume>: Rename to...
708 <commit_resumed>: ... this.
709 (struct stop_reply): Move up.
710 (remote_target::commit_resume): Rename to...
711 (remote_target::commit_resumed): ... this. Check if there is any
712 thread pending vCont resume.
713 (remote_target::remote_stop_ns): Generate stop replies for resumed
714 but pending vCont threads.
715 (remote_target::wait_ns): Add gdb_assert.
716 * target-delegates.c: Regenerate.
717 * target.c (target_wait, target_resume): Assert that the current
718 process_stratum target isn't in commit-resumed state.
719 (defer_target_commit_resume): Remove.
720 (target_commit_resume): Remove.
721 (target_commit_resumed): New.
722 (make_scoped_defer_target_commit_resume): Remove.
723 (target_stop): Assert that the current process_stratum target
724 isn't in commit-resumed state.
725 * target.h (struct target_ops) <commit_resume>: Rename to ...
726 <commit_resumed>: ... this.
727 (target_commit_resume): Remove.
728 (target_commit_resumed): New.
729 (make_scoped_defer_target_commit_resume): Remove.
730 * top.c (wait_sync_command_done): Use
731 scoped_enable_commit_resumed.
733 2021-03-26 Pedro Alves <pedro@palves.net>
735 * target.c (target_always_non_stop_p): Also check whether the
738 2021-03-26 Tom Tromey <tom@tromey.com>
740 * dwarf2/read.c (dwarf2_read_debug_names)
741 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
742 (dw2_debug_names_iterator::next, create_type_unit_group):
745 2021-03-25 Pedro Alves <pedro@palves.net>
747 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
748 around setting the breakpoint.
750 2021-03-25 Pedro Alves <pedro@palves.net>
753 (remote_target::check_pending_events_prevent_wildcard_vcont):
754 Check whether the event's ptid is not null_ptid before looking up
755 the corresponding inferior.
757 2021-03-24 Changbin Du <changbin.du@gmail.com>
759 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
762 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
764 * target.h (current_top_target): Remove, make callers use the
765 current inferior instead.
766 * target.c (current_top_target): Remove.
768 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
770 * target.h (target_shortname): Change to function declaration.
771 (target_longname): Likewise.
772 (target_attach_no_wait): Likewise.
773 (target_post_attach): Likewise.
774 (target_prepare_to_store): Likewise.
775 (target_supports_enable_disable_tracepoint): Likewise.
776 (target_supports_string_tracing): Likewise.
777 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
778 (target_supports_dumpcore): Likewise.
779 (target_dumpcore): Likewise.
780 (target_can_run_breakpoint_commands): Likewise.
781 (target_files_info): Likewise.
782 (target_post_startup_inferior): Likewise.
783 (target_insert_fork_catchpoint): Likewise.
784 (target_remove_fork_catchpoint): Likewise.
785 (target_insert_vfork_catchpoint): Likewise.
786 (target_remove_vfork_catchpoint): Likewise.
787 (target_insert_exec_catchpoint): Likewise.
788 (target_remove_exec_catchpoint): Likewise.
789 (target_set_syscall_catchpoint): Likewise.
790 (target_rcmd): Likewise.
791 (target_can_lock_scheduler): Likewise.
792 (target_can_async_p): Likewise.
793 (target_is_async_p): Likewise.
794 (target_execution_direction): Likewise.
795 (target_extra_thread_info): Likewise.
796 (target_pid_to_exec_file): Likewise.
797 (target_thread_architecture): Likewise.
798 (target_find_memory_regions): Likewise.
799 (target_make_corefile_notes): Likewise.
800 (target_get_bookmark): Likewise.
801 (target_goto_bookmark): Likewise.
802 (target_stopped_by_watchpoint): Likewise.
803 (target_stopped_by_sw_breakpoint): Likewise.
804 (target_supports_stopped_by_sw_breakpoint): Likewise.
805 (target_stopped_by_hw_breakpoint): Likewise.
806 (target_supports_stopped_by_hw_breakpoint): Likewise.
807 (target_have_steppable_watchpoint): Likewise.
808 (target_can_use_hardware_watchpoint): Likewise.
809 (target_region_ok_for_hw_watchpoint): Likewise.
810 (target_can_do_single_step): Likewise.
811 (target_insert_watchpoint): Likewise.
812 (target_remove_watchpoint): Likewise.
813 (target_insert_hw_breakpoint): Likewise.
814 (target_remove_hw_breakpoint): Likewise.
815 (target_can_accel_watchpoint_condition): Likewise.
816 (target_can_execute_reverse): Likewise.
817 (target_get_ada_task_ptid): Likewise.
818 (target_filesystem_is_local): Likewise.
819 (target_trace_init): Likewise.
820 (target_download_tracepoint): Likewise.
821 (target_can_download_tracepoint): Likewise.
822 (target_download_trace_state_variable): Likewise.
823 (target_enable_tracepoint): Likewise.
824 (target_disable_tracepoint): Likewise.
825 (target_trace_start): Likewise.
826 (target_trace_set_readonly_regions): Likewise.
827 (target_get_trace_status): Likewise.
828 (target_get_tracepoint_status): Likewise.
829 (target_trace_stop): Likewise.
830 (target_trace_find): Likewise.
831 (target_get_trace_state_variable_value): Likewise.
832 (target_save_trace_data): Likewise.
833 (target_upload_tracepoints): Likewise.
834 (target_upload_trace_state_variables): Likewise.
835 (target_get_raw_trace_data): Likewise.
836 (target_get_min_fast_tracepoint_insn_len): Likewise.
837 (target_set_disconnected_tracing): Likewise.
838 (target_set_circular_trace_buffer): Likewise.
839 (target_set_trace_buffer_size): Likewise.
840 (target_set_trace_notes): Likewise.
841 (target_get_tib_address): Likewise.
842 (target_set_permissions): Likewise.
843 (target_static_tracepoint_marker_at): Likewise.
844 (target_static_tracepoint_markers_by_strid): Likewise.
845 (target_traceframe_info): Likewise.
846 (target_use_agent): Likewise.
847 (target_can_use_agent): Likewise.
848 (target_augmented_libraries_svr4_read): Likewise.
849 (target_log_command): Likewise.
850 * target.c (target_shortname): New.
851 (target_longname): New.
852 (target_attach_no_wait): New.
853 (target_post_attach): New.
854 (target_prepare_to_store): New.
855 (target_supports_enable_disable_tracepoint): New.
856 (target_supports_string_tracing): New.
857 (target_supports_evaluation_of_breakpoint_conditions): New.
858 (target_supports_dumpcore): New.
859 (target_dumpcore): New.
860 (target_can_run_breakpoint_commands): New.
861 (target_files_info): New.
862 (target_post_startup_inferior): New.
863 (target_insert_fork_catchpoint): New.
864 (target_remove_fork_catchpoint): New.
865 (target_insert_vfork_catchpoint): New.
866 (target_remove_vfork_catchpoint): New.
867 (target_insert_exec_catchpoint): New.
868 (target_remove_exec_catchpoint): New.
869 (target_set_syscall_catchpoint): New.
871 (target_can_lock_scheduler): New.
872 (target_can_async_p): New.
873 (target_is_async_p): New.
874 (target_execution_direction): New.
875 (target_extra_thread_info): New.
876 (target_pid_to_exec_file): New.
877 (target_thread_architecture): New.
878 (target_find_memory_regions): New.
879 (target_make_corefile_notes): New.
880 (target_get_bookmark): New.
881 (target_goto_bookmark): New.
882 (target_stopped_by_watchpoint): New.
883 (target_stopped_by_sw_breakpoint): New.
884 (target_supports_stopped_by_sw_breakpoint): New.
885 (target_stopped_by_hw_breakpoint): New.
886 (target_supports_stopped_by_hw_breakpoint): New.
887 (target_have_steppable_watchpoint): New.
888 (target_can_use_hardware_watchpoint): New.
889 (target_region_ok_for_hw_watchpoint): New.
890 (target_can_do_single_step): New.
891 (target_insert_watchpoint): New.
892 (target_remove_watchpoint): New.
893 (target_insert_hw_breakpoint): New.
894 (target_remove_hw_breakpoint): New.
895 (target_can_accel_watchpoint_condition): New.
896 (target_can_execute_reverse): New.
897 (target_get_ada_task_ptid): New.
898 (target_filesystem_is_local): New.
899 (target_trace_init): New.
900 (target_download_tracepoint): New.
901 (target_can_download_tracepoint): New.
902 (target_download_trace_state_variable): New.
903 (target_enable_tracepoint): New.
904 (target_disable_tracepoint): New.
905 (target_trace_start): New.
906 (target_trace_set_readonly_regions): New.
907 (target_get_trace_status): New.
908 (target_get_tracepoint_status): New.
909 (target_trace_stop): New.
910 (target_trace_find): New.
911 (target_get_trace_state_variable_value): New.
912 (target_save_trace_data): New.
913 (target_upload_tracepoints): New.
914 (target_upload_trace_state_variables): New.
915 (target_get_raw_trace_data): New.
916 (target_get_min_fast_tracepoint_insn_len): New.
917 (target_set_disconnected_tracing): New.
918 (target_set_circular_trace_buffer): New.
919 (target_set_trace_buffer_size): New.
920 (target_set_trace_notes): New.
921 (target_get_tib_address): New.
922 (target_set_permissions): New.
923 (target_static_tracepoint_marker_at): New.
924 (target_static_tracepoint_markers_by_strid): New.
925 (target_traceframe_info): New.
926 (target_use_agent): New.
927 (target_can_use_agent): New.
928 (target_augmented_libraries_svr4_read): New.
929 (target_log_command): New.
930 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
931 * infrun.c (set_schedlock_func): Adjust.
932 * mi/mi-main.c (exec_reverse_continue): Adjust.
933 * reverse.c (exec_reverse_once): Adjust.
934 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
935 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
936 * remote-sim.c (gdbsim_target::detach): Adjust.
937 (gdbsim_target::files_info): Adjust.
939 2021-03-24 Tom Tromey <tom@tromey.com>
941 * dwarf2/read.c (dw2_map_matching_symbols): Update.
942 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
943 (check_match, dw2_expand_symtabs_matching)
944 (dwarf2_debug_names_index::map_matching_symbols)
945 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
947 2021-03-24 Keith Seitz <keiths@redhat.com>
949 * compile/compile-cplus-types.c
950 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
953 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
955 * gdbarch.sh (gdbarch_data_registry): Make static.
956 * gdbarch.c: Re-generate.
958 2021-03-24 Luis Machado <luis.machado@linaro.org>
960 * NEWS: Mention memory tagging changes.
962 2021-03-24 Luis Machado <luis.machado@linaro.org>
964 * printcmd.c (decode_format): Handle the 'm' modifier.
965 (do_examine): Display allocation tags when required/supported.
966 (should_validate_memtags): New function.
967 (print_command_1): Display memory tag mismatches.
968 * valprint.c (show_memory_tag_violations): New function.
969 (value_print_option_defs): Add new option "memory-tag-violations".
970 (user_print_options) <memory_tag_violations>: Initialize to 1.
971 * valprint.h (struct format_data) <print_tags>: New field.
972 (value_print_options) <memory_tag_violations>: New field.
974 2021-03-24 Luis Machado <luis.machado@linaro.org>
976 * printcmd.c: Include gdbsupport/rsp-low.h.
977 (memory_tag_list): New static global.
978 (process_print_command_args): Factored out of
980 (print_command_1): Use process_print_command_args.
981 (show_addr_not_tagged, show_memory_tagging_unsupported)
982 (memory_tag_command, memory_tag_print_tag_command)
983 (memory_tag_print_logical_tag_command)
984 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
985 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
986 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
988 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
990 2021-03-24 Luis Machado <luis.machado@linaro.org>
992 * aarch64-linux-tdep.c
993 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
994 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
996 2021-03-24 Luis Machado <luis.machado@linaro.org>
998 * aarch64-linux-tdep.c
999 (aarch64_linux_report_signal_info): New function.
1000 (aarch64_linux_init_abi): Register
1001 aarch64_linux_report_signal_info as the report_signal_info hook.
1002 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1003 (SEGV_MTESERR): Define.
1005 2021-03-24 Luis Machado <luis.machado@linaro.org>
1007 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1008 (aarch64_linux_ltag_tests): New function.
1009 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1011 2021-03-24 Luis Machado <luis.machado@linaro.org>
1013 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1014 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1015 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1016 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1018 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1019 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1020 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1021 (aarch64_linux_get_ltag): New functions.
1022 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1023 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1024 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1025 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1027 2021-03-24 Luis Machado <luis.machado@linaro.org>
1029 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1031 (struct smaps_data): New struct.
1032 (decode_vmflags): Handle the 'mt' flag.
1033 (parse_smaps_data): New function, refactored from
1034 linux_find_memory_regions_full.
1035 (linux_address_in_memtag_page): New function.
1036 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1037 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1039 2021-03-24 Luis Machado <luis.machado@linaro.org>
1041 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1042 instead of char arrays.
1044 2021-03-24 Luis Machado <luis.machado@linaro.org>
1046 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1047 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1048 nat/aarch64-mte-linux-ptrace.h.
1049 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1050 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1052 <fetch_memtags>: New method override.
1053 <store_memtags>: New method override.
1054 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1055 (aarch64_linux_nat_target::fetch_memtags): New method.
1056 (aarch64_linux_nat_target::store_memtags): New method.
1057 * arch/aarch64-mte-linux.c: New file.
1058 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1059 (AARCH64_MTE_GRANULE_SIZE): Define.
1060 (aarch64_memtag_type): New enum.
1061 (aarch64_mte_get_tag_granules): New prototype.
1062 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1063 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1064 * nat/aarch64-mte-linux-ptrace.c: New file.
1065 * nat/aarch64-mte-linux-ptrace.h: New file.
1067 2021-03-24 Luis Machado <luis.machado@linaro.org>
1069 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1070 * nat/aarch64-mte-linux-ptrace.h: New file.
1072 2021-03-24 Luis Machado <luis.machado@linaro.org>
1074 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1075 (store_mteregs_to_thread): New function.
1076 (aarch64_linux_nat_target::fetch_registers): Update to call
1077 fetch_mteregs_from_thread.
1078 (aarch64_linux_nat_target::store_registers): Update to call
1079 store_mteregs_to_thread.
1080 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1081 (aarch64_cannot_store_register): Handle MTE registers.
1082 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1083 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1084 <has_mte>: New method.
1085 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1087 2021-03-24 Luis Machado <luis.machado@linaro.org>
1089 * aarch64-linux-nat.c
1090 (aarch64_linux_nat_target::read_description): Take MTE flag into
1092 Slight refactor to hwcap flag checking.
1093 * aarch64-linux-tdep.c
1094 (aarch64_linux_core_read_description): Likewise.
1095 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1097 (aarch64_read_description): Add mte_p parameter and update to use it.
1098 Update the documentation.
1099 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1100 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1101 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1102 (aarch64_create_target_description): Add mte_p parameter and update
1104 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1106 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1107 * features/aarch64-mte.c: New file, generated.
1108 * features/aarch64-mte.xml: New file.
1110 2021-03-24 Luis Machado <luis.machado@linaro.org>
1112 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1113 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1114 * aarch64-linux-tdep.c: Likewise
1115 * arch/aarch64-mte-linux.h: New file.
1117 2021-03-24 Luis Machado <luis.machado@linaro.org>
1119 * remote: Include gdbsupport/selftest.h.
1120 (test_memory_tagging_functions): New function.
1121 (_initialize_remote): Register test_memory_tagging_functions.
1123 2021-03-24 Luis Machado <luis.machado@linaro.org>
1125 * remote.c (PACKET_memory_tagging_feature): New enum.
1126 (remote_memory_tagging_p): New function.
1127 (remote_protocol_features): New "memory-tagging" entry.
1128 (remote_target::remote_query_supported): Handle memory tagging
1130 (remote_target::supports_memory_tagging): Implement.
1131 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1132 (create_store_memtags_request): New functions.
1133 (remote_target::fetch_memtags): Implement.
1134 (remote_target::store_memtags): Implement.
1135 (_initialize_remote): Add new "memory-tagging-feature"
1138 2021-03-24 Luis Machado <luis.machado@linaro.org>
1140 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1141 (default_memtag_matches_p, default_set_memtags)
1142 (default_get_memtag): New functions.
1143 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1144 (default_memtag_matches_p, default_set_memtags)
1145 (default_get_memtag): New prototypes.
1146 * gdbarch.c: Regenerate.
1147 * gdbarch.h: Regenerate.
1148 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1149 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1150 (enum memtag_type): New enum.
1152 2021-03-24 Luis Machado <luis.machado@linaro.org>
1154 * remote.c (remote_target) <supports_memory_tagging>: New method
1156 <fetch_memtags>: New method override.
1157 <store_memtags>: New method override.
1158 (remote_target::supports_memory_tagging): New method.
1159 (remote_target::fetch_memtags): New method.
1160 (remote_target::store_memtags): New method.
1161 * target-delegates.c: Regenerate.
1162 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1164 <fetch_memtags>: New virtual method.
1165 <store_memtags>: New virtual method.
1166 (target_supports_memory_tagging): Define.
1167 (target_fetch_memtags): Define.
1168 (target_store_memtags): Define.
1169 * target-debug.h (target_debug_print_size_t)
1170 (target_debug_print_const_gdb_byte_vector_r)
1171 (target_debug_print_gdb_byte_vector_r): New functions.
1173 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1175 * target.h (target_longname): Remove.
1177 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1179 * target.h (target_is_pushed): Remove, update callers to use
1180 inferior::target_is_pushed instead.
1181 * target.c (target_is_pushed): Remove.
1183 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1185 * target.h (push_target): Remove, update callers to use
1186 inferior::push_target.
1187 * target.c (push_target): Remove.
1188 * inferior.h (class inferior) <push_target>: New overload.
1190 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1192 * target.h (unpush_target): Remove, update all callers
1193 to use `inferior::unpush_target` instead.
1194 (struct target_unpusher) <operator()>: Just declare.
1195 * target.c (unpush_target): Remove.
1196 (target_unpusher::operator()): New.
1198 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1200 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1202 (process_full_comp_unit): Validate the top-level tag before
1203 processing the first DIE.
1204 (read_func_scope): Ensure we have a valid builder.
1206 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1208 * objc-lang.c (objc_demangle): Renamed to
1209 objc_language::demangle_symbol, and moved later in the file.
1210 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1212 (objc_language::demangle_symbol): Defined outside of class
1213 declaration. The definition is the old objc_demangle with NULL
1214 changed to nullptr, and if conditions relating to nullptr pointers
1215 or null character checks made explicit.
1216 * objc-lang.h (objc_demangle): Delete declaration.
1218 2021-03-22 Martin Liska <mliska@suse.cz>
1220 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1221 (_initialize_arm_tdep): Likewise.
1223 2021-03-20 Tom Tromey <tom@tromey.com>
1225 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1226 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1227 * psymtab.h (make_psymbol_functions): Don't declare.
1228 * psymtab.c (make_psymbol_functions): Remove.
1229 (maintenance_print_psymbols): Update.
1230 * psympriv.h (struct psymbol_functions): Add no-argument
1232 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1233 <partial_symtabs>: Remove.
1234 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1235 * elfread.c (read_partial_symbols): Update.
1236 (elf_symfile_read): Remove check for existing partial symbols.
1238 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1240 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1242 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1244 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1245 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1247 2021-03-20 Tom Tromey <tom@tromey.com>
1249 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1250 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1251 * symfile-debug.c (objfile::has_partial_symbols)
1252 (objfile::find_last_source_symtab)
1253 (objfile::forget_cached_source_info)
1254 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1255 (objfile::print_stats, objfile::dump)
1256 (objfile::expand_symtabs_for_function)
1257 (objfile::expand_all_symtabs)
1258 (objfile::expand_symtabs_with_fullname)
1259 (objfile::map_matching_symbols)
1260 (objfile::expand_symtabs_matching)
1261 (objfile::find_pc_sect_compunit_symtab)
1262 (objfile::map_symbol_filenames)
1263 (objfile::find_compunit_symtab_by_address)
1264 (objfile::lookup_global_symbol_language)
1265 (objfile::require_partial_symbols): Update.
1266 * psymtab.c (maintenance_print_psymbols)
1267 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1268 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1269 * objfiles.c (objfile_relocate1): Update.
1270 * elfread.c (elf_symfile_read): Update.
1272 2021-03-20 Tom Tromey <tom@tromey.com>
1274 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1276 2021-03-20 Tom Tromey <tom@tromey.com>
1278 * psymtab.c (psymbol_functions::count_psyms): Rename.
1279 (psymbol_functions::print_stats): Update.
1280 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1283 2021-03-20 Tom Tromey <tom@tromey.com>
1285 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1286 (psymbol_functions::find_pc_sect_psymtab): Rename.
1287 (psymbol_functions::find_pc_sect_compunit_symtab)
1288 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1289 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1291 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1293 2021-03-20 Tom Tromey <tom@tromey.com>
1295 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1296 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1297 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1299 (add_psymbol_to_bcache): Remove.
1300 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1301 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1303 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1304 <add_psymbol>: Likewise.
1305 (standard_psymtab, legacy_psymtab): Likewise.
1306 * mdebugread.c (parse_partial_symbols): Update.
1307 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1308 (handle_psymbol_enumerators): Update.
1309 (new_psymtab): Add partial_symtabs parameter.
1310 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1311 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1313 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1314 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1316 * dbxread.c (read_dbx_symtab): Update.
1317 (start_psymtab): Add partial_symtabs parameter.
1318 (dbx_end_psymtab): Update.
1319 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1320 (ctf_psymtab): Add partial_symtabs parameter.
1321 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1323 (scan_partial_symbols): Add partial_symtabs parameter.
1324 (scan_partial_symbols, elfctf_build_psymtabs)
1325 (ctf_psymtab_add_enums): Update.
1327 2021-03-20 Tom Tromey <tom@tromey.com>
1329 * symfile.c (read_symbols): Use objfile method.
1330 * symfile-debug.c (objfile::require_partial_symbols): New method.
1331 * psymtab.h (require_partial_symbols): Don't declare.
1332 * psymtab.c (require_partial_symbols): Use objfile method. Now
1334 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1335 (psymbol_functions::lookup_symbol)
1336 (psymbol_functions::lookup_global_symbol_language)
1337 (psymbol_functions::find_last_source_symtab)
1338 (psymbol_functions::forget_cached_source_info)
1339 (psymbol_functions::print_stats)
1340 (psymbol_functions::expand_symtabs_for_function)
1341 (psymbol_functions::expand_all_symtabs)
1342 (psymbol_functions::expand_symtabs_with_fullname)
1343 (psymbol_functions::map_symbol_filenames)
1344 (psymbol_functions::map_matching_symbols)
1345 (psymbol_functions::expand_symtabs_matching)
1346 (psymbol_functions::find_compunit_symtab_by_address)
1347 (maintenance_print_psymbols, maintenance_info_psymtabs)
1348 (maintenance_check_psymtabs): Update.
1349 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1352 2021-03-20 Tom Tromey <tom@tromey.com>
1354 * xcoffread.c (xcoff_sym_fns): Update.
1355 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1356 * symfile-debug.c (objfile::has_partial_symbols): Use
1357 can_lazily_read_symbols.
1358 (debug_sym_read_psymbols): Remove.
1359 (debug_sym_fns, install_symfile_debug_logging): Update.
1360 * quick-symbol.h (struct quick_symbol_functions)
1361 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1362 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1363 * mipsread.c (ecoff_sym_fns): Update.
1364 * machoread.c (macho_sym_fns): Update.
1365 * elfread.c (struct lazy_dwarf_reader): New.
1366 (elf_symfile_read): Update.
1367 (read_psyms): Now a method of lazy_dwarf_reader.
1368 (elf_sym_fns): Update.
1369 (elf_sym_fns_lazy_psyms): Remove.
1370 * dbxread.c (aout_sym_fns): Update.
1371 * coffread.c (coff_sym_fns): Update.
1373 2021-03-20 Tom Tromey <tom@tromey.com>
1375 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1376 (reread_symbols): Move reset_psymtabs call later.
1377 * objfiles.c (objfile::objfile): Don't initialize
1380 2021-03-20 Tom Tromey <tom@tromey.com>
1382 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1383 set_partial_symtabs.
1384 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1385 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1387 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1389 (psymbol_functions::find_pc_sect_compunit_symtab)
1390 (psymbol_functions::print_stats, psymbol_functions::dump)
1391 (psymbol_functions::has_symbols): Update.
1392 (make_psymbol_functions, dump_psymtab_addrmap): Add
1393 partial_symtabs parameter.
1394 (maintenance_print_psymbols): Update.
1395 (psymbol_functions::expand_symtabs_matching): Update.
1396 * psympriv.h (struct psymbol_functions): Add constructor.
1397 <m_partial_symtabs>: New member.
1398 <set_partial_symtabs>: New method.
1400 2021-03-20 Tom Tromey <tom@tromey.com>
1402 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1404 (process_psymtab_comp_unit_reader)
1405 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1406 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1407 Reference psymtabs via per_bfd.
1409 2021-03-20 Tom Tromey <tom@tromey.com>
1411 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1413 (add_address_entry): Remove objfile parameter.
1414 (add_address_entry_worker): Update.
1415 (write_address_map): Replace objfile parameter with per_bfd.
1416 (write_gdbindex, write_psymtabs_to_index): Update.
1418 2021-03-20 Tom Tromey <tom@tromey.com>
1420 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1421 print_bcache parameter.
1422 * symfile-debug.c (objfile::print_stats): Add print_bcache
1424 * quick-symbol.h (struct quick_symbol_functions)
1425 <print_stats>: Add print_bcache parameter.
1426 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1428 (print_objfile_statistics): Move psymtab code to psymtab.c.
1429 * psymtab.c (count_psyms): Move from symmisc.c.
1430 (psymbol_functions::print_stats): Print partial symbol and bcache
1431 statistics. Add print_bcache parameter.
1432 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1433 (struct objfile) <print_stats>: Add print_bcache parameter.
1434 * maint.c (maintenance_print_statistics): Update.
1436 2021-03-20 Tom Tromey <tom@tromey.com>
1438 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1440 * dwarf2/read.c (create_addrmap_from_index)
1441 (create_addrmap_from_aranges): Set per_bfd addrmap.
1442 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1443 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1445 (dwarf2_read_debug_names): Don't set partial_symtabs.
1446 (dwarf2_initialize_objfile): Likewise.
1448 2021-03-20 Tom Tromey <tom@tromey.com>
1450 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1453 2021-03-20 Tom Tromey <tom@tromey.com>
1455 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1456 (~psymtab_discarder, keep): Update.
1457 <m_objfile>: Remove.
1458 <m_partial_symtabs>: New member.
1459 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1461 2021-03-20 Tom Tromey <tom@tromey.com>
1463 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1464 (xcoff_end_psymtab): Update.
1465 (scan_xcoff_symtab): Add partial_symtabs parameter.
1466 (xcoff_initial_scan): Update.
1467 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1468 * mdebugread.c (mdebug_build_psymtabs): Update.
1469 (parse_partial_symbols): Add partial_symtabs parameter.
1470 * dbxread.c (dbx_symfile_read): Update.
1471 (read_dbx_symtab): Add partial_symtabs parameter.
1472 (read_dbx_symtab): Update.
1473 (dbx_end_psymtab): Add partial_symtabs parameter.
1475 2021-03-20 Tom Tromey <tom@tromey.com>
1477 * quick-symbol.h (struct quick_symbol_functions)
1478 <relocated>: New method.
1479 * psymtab.h (struct psymbol_functions) <relocated>: New
1481 <fill_psymbol_map>: Declare method.
1482 <m_psymbol_map>: New member.
1483 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1484 (psymbol_functions::find_compunit_symtab_by_address): Update.
1485 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1486 (struct objfile) <psymbol_map>: Remove.
1487 * objfiles.c (objfile_relocate1): Update.
1489 2021-03-20 Tom Tromey <tom@tromey.com>
1491 * psympriv.h (struct psymbol_functions): New.
1492 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1493 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1494 (objfile::lookup_global_symbol_language): Update.
1495 * quick-symbol.h (struct quick_symbol_functions): Convert function
1496 pointers to methods. Add virtual destructor.
1497 (quick_symbol_functions_up): New typedef.
1498 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1499 (dwarf2_debug_names_functions): Don't declare.
1500 (make_psymbol_functions): Declare.
1501 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1502 (psymbol_functions::find_pc_sect_compunit_symtab)
1503 (psymbol_functions::lookup_symbol)
1504 (psymbol_functions::lookup_global_symbol_language)
1505 (psymbol_functions::find_last_source_symtab)
1506 (psymbol_functions::forget_cached_source_info)
1507 (psymbol_functions::print_stats, psymbol_functions::dump)
1508 (psymbol_functions::expand_symtabs_for_function)
1509 (psymbol_functions::expand_all_symtabs)
1510 (psymbol_functions::expand_symtabs_with_fullname)
1511 (psymbol_functions::map_symbol_filenames)
1512 (psymbol_functions::map_matching_symbols)
1513 (psymbol_functions::expand_symtabs_matching)
1514 (psymbol_functions::has_symbols)
1515 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1516 (psym_functions): Remove.
1517 (make_psymbol_functions): New function.
1518 * objfiles.h (struct objfile) <qf>: Change type.
1519 * elfread.c (elf_symfile_read): Update.
1520 * dwarf2/read.c (struct dwarf2_base_index_functions)
1521 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1522 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1523 (dwarf2_base_index_functions::find_last_source_symtab)
1524 (dwarf2_base_index_functions::forget_cached_source_info)
1525 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1526 (dwarf2_gdb_index::lookup_symbol)
1527 (dwarf2_base_index_functions::print_stats)
1528 (dwarf2_gdb_index::dump)
1529 (dwarf2_gdb_index::expand_symtabs_for_function)
1530 (dwarf2_base_index_functions::expand_all_symtabs)
1531 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1533 (dwarf2_gdb_index::map_matching_symbols): New method.
1534 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1535 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1536 (dwarf2_base_index_functions::map_symbol_filenames)
1537 (dwarf2_base_index_functions::has_symbols): Rename.
1538 (dwarf2_gdb_index_functions): Remove.
1539 (dwarf2_debug_names_index::lookup_symbol)
1540 (dwarf2_debug_names_index::dump)
1541 (dwarf2_debug_names_index::expand_symtabs_for_function)
1542 (dwarf2_debug_names_index::map_matching_symbols)
1543 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1544 (dwarf2_debug_names_functions): Remove.
1545 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1548 2021-03-20 Tom Tromey <tom@tromey.com>
1550 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1552 * xcoffread.c (xcoff_sym_fns): Update.
1553 * symfile.h (struct sym_fns) <qf>: Remove.
1554 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1555 * symfile-debug.c (objfile::has_partial_symbols)
1556 (objfile::find_last_source_symtab)
1557 (objfile::forget_cached_source_info)
1558 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1559 (objfile::print_stats, objfile::dump)
1560 (objfile::expand_symtabs_for_function)
1561 (objfile::expand_all_symtabs)
1562 (objfile::expand_symtabs_with_fullname)
1563 (objfile::map_matching_symbols)
1564 (objfile::expand_symtabs_matching)
1565 (objfile::find_pc_sect_compunit_symtab)
1566 (objfile::map_symbol_filenames)
1567 (objfile::find_compunit_symtab_by_address)
1568 (objfile::lookup_global_symbol_language, debug_sym_fns)
1569 (install_symfile_debug_logging): Update.
1570 * objfiles.h (struct objfile) <qf>: New member.
1571 * mipsread.c (ecoff_sym_fns): Update.
1572 * machoread.c (macho_sym_fns): Update.
1573 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1575 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1576 * dbxread.c (aout_sym_fns): Update.
1577 * coffread.c (coff_sym_fns): Update.
1579 2021-03-20 Tom Tromey <tom@tromey.com>
1581 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1582 (expand_symtabs_file_matcher_ftype)
1583 (expand_symtabs_symbol_matcher_ftype)
1584 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1585 Move to quick-symbol.h.
1586 * quick-symbol.h: New file.
1588 2021-03-20 Tom Tromey <tom@tromey.com>
1590 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1591 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1592 (basic_lookup_transparent_type_quick)
1593 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1594 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1596 * symmisc.c (print_objfile_statistics, dump_objfile)
1597 (maintenance_expand_symtabs): Update.
1598 * symfile.c (symbol_file_add_with_addrs)
1599 (expand_symtabs_matching, map_symbol_filenames): Update.
1600 * symfile-debug.c (objfile::has_partial_symbols)
1601 (objfile::find_last_source_symtab)
1602 (objfile::forget_cached_source_info)
1603 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1604 (objfile::print_stats, objfile::dump)
1605 (objfile::expand_symtabs_for_function)
1606 (objfile::expand_all_symtabs)
1607 (objfile::expand_symtabs_with_fullname)
1608 (objfile::map_matching_symbols)
1609 (objfile::expand_symtabs_matching)
1610 (objfile::find_pc_sect_compunit_symtab)
1611 (objfile::map_symbol_filenames)
1612 (objfile::find_compunit_symtab_by_address)
1613 (objfile::lookup_global_symbol_language): New methods.
1614 (debug_sym_quick_functions): Remove.
1615 (debug_sym_fns, install_symfile_debug_logging): Update.
1616 * source.c (forget_cached_source_info_for_objfile)
1617 (select_source_symtab): Update.
1618 * objfiles.h (struct objfile): Add methods corresponding to
1619 quick_symbol_functions.
1620 * objfiles.c (objfile::has_partial_symbols): Move to
1622 * linespec.c (iterate_over_all_matching_symtabs): Update.
1623 * cp-support.c (add_symbol_overload_list_qualified): Update.
1624 * ada-lang.c (add_nonlocal_symbols): Update.
1626 2021-03-20 Tom Tromey <tom@tromey.com>
1628 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1629 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1631 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1632 * psymtab.c (psym_has_symbols): Return bool.
1633 * objfiles.c (objfile::has_partial_symbols): Return bool.
1634 * dwarf2/read.c (dw2_has_symbols): Return bool.
1636 2021-03-20 Tom Tromey <tom@tromey.com>
1638 * symfile.c (read_symbols): Update.
1639 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1640 (objfile_has_partial_symbols): Don't declare.
1641 * objfiles.c (objfile::has_partial_symbols): Rename from
1642 objfile_has_partial_symbols.
1643 (objfile_has_symbols, have_partial_symbols): Update.
1644 * elfread.c (elf_symfile_read): Update.
1645 * dwarf2/read.c (dwarf2_has_info): Update.
1646 * coffread.c (coff_symfile_read): Update.
1648 2021-03-20 Tom Tromey <tom@tromey.com>
1650 * coffread.c: Include dwarf2/public.h.
1651 * dwarf2/frame.c: Include dwarf2/public.h.
1652 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1653 * dwarf2/public.h: New file.
1654 * dwarf2/read.c: Include dwarf2/public.h.
1655 * elfread.c: Include dwarf2/public.h.
1656 * machoread.c: Include dwarf2/public.h.
1657 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1658 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1659 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1660 * xcoffread.c: Include dwarf2/public.h.
1662 2021-03-20 Tom Tromey <tom@tromey.com>
1664 * symfile.h (enum dwarf2_section_enum)
1665 (dwarf2_get_section_info): Move to dwarf2/read.h.
1666 * dwarf2/read.h (enum dwarf2_section_enum)
1667 (dwarf2_get_section_info): Move from symfile.h.
1669 2021-03-19 Pedro Alves <pedro@palves.net>
1671 * thread.c (any_thread_of_inferior): Check if there's a selected
1672 thread before calling inferior_thread().
1674 2021-03-18 Tom Tromey <tromey@adacore.com>
1676 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1678 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1679 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1681 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1683 * python/py-param.c (get_set_value): Update header comment.
1685 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
1687 * infrun.c (check_multi_target_resumption): Remove argument to
1688 all_non_exited_inferiors.
1690 2021-03-16 Christian Biesinger <cbiesinger@google.com>
1692 * windows-nat.c (windows_init_thread_list): Add message to
1695 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
1697 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1698 well as PyLong_Check for Python 2.
1700 2021-03-15 Tom Tromey <tromey@adacore.com>
1703 * rust-exp.y (maker_map): Use gdb::hash_enum.
1704 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1706 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1708 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1711 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1713 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1714 parameter, adjust caller.
1716 2021-03-15 Tom Tromey <tromey@adacore.com>
1718 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1720 2021-03-15 Tom Tromey <tromey@adacore.com>
1722 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1723 ada_ensure_varsize_limit.
1725 2021-03-15 Tom Tromey <tromey@adacore.com>
1727 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1729 * ada-exp.y (maybe_overload): New function.
1730 (ada_wrap_overload): New function.
1731 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1732 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1733 (or_else_exp, xor_exp, primary): Update.
1735 2021-03-15 Tom Tromey <tromey@adacore.com>
1738 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1739 call for tagged type.
1741 2021-03-15 Tom Tromey <tromey@adacore.com>
1743 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1746 2021-03-15 Tom Tromey <tromey@adacore.com>
1748 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1750 (ada_assign_operation::evaluate): Update.
1751 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1754 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
1756 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1758 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
1760 * python/python.c (gdbpy_source_objfile_script): Use
1761 make_scoped_restore to restore gdbpy_current_objfile.
1762 (gdbpy_execute_objfile_script): Likewise.
1764 2021-03-14 Tom Tromey <tom@tromey.com>
1766 * dwarf2/read.c (read_attribute_value): Use cu_header
1769 2021-03-14 Tom Tromey <tom@tromey.com>
1771 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1772 (peek_die_abbrev): Use reader.abfd.
1774 2021-03-14 Tom Tromey <tom@tromey.com>
1776 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1779 2021-03-13 Tom Tromey <tom@tromey.com>
1781 * dwarf2/read.c (struct partial_die_info): Update.
1782 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1783 (load_partial_dies, partial_die_info::partial_die_info): Update.
1784 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1786 2021-03-13 Tom Tromey <tom@tromey.com>
1788 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1790 2021-03-12 Christian Biesinger <cbiesinger@google.com>
1793 * cp-support.c: Use scoped_segv_handler_restore.
1794 * event-top.c (thread_local_segv_handler): Made static.
1795 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1797 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1799 * event-top.h (class scoped_segv_handler_restore): New class.
1800 (thread_local_segv_handler): Removed.
1802 2021-03-10 Tom Tromey <tromey@adacore.com>
1804 * parser-defs.h (parser_state): Change completion to bool.
1805 <parse_completion>: Likewise.
1806 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1807 (ada_resolve_variable, ada_resolve_function): Update.
1808 * ada-lang.c (ada_find_operator_symbol): Change
1809 parse_completion to bool.
1810 (ada_resolve_funcall, ada_resolve_variable)
1811 (ada_resolve_function): Likewise.
1813 2021-03-09 Tom Tromey <tromey@adacore.com>
1815 * eval.c (operation::evaluate_funcall): Use function formal
1816 parameter types when evaluating.
1818 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1820 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1821 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1822 and owner to m_owner.
1824 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1826 * f-exp.h (eval_op_f_loc): Declare.
1827 (expr::fortran_loc_operation): New typedef.
1828 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1830 (f77_keywords): Add LOC keyword.
1831 * f-lang.c (eval_op_f_loc): New function.
1832 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1834 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1836 * f-exp.h (eval_op_f_array_shape): Declare.
1837 (fortran_array_shape_operation): New type.
1838 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1840 (f77_keywords): Add "shape" keyword.
1841 * f-lang.c (fortran_array_shape): New function.
1842 (eval_op_f_array_shape): New function.
1843 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1845 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1847 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1849 (expr::fortran_array_size_1arg): New type.
1850 (expr::fortran_array_size_2arg): Likewise.
1851 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1852 UNOP_OR_BINOP_INTRINSIC.
1853 (f77_keywords): Add "size" keyword.
1854 * f-lang.c (fortran_array_size): New function.
1855 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1856 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1858 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1860 * f-exp.h (eval_op_f_rank): Declare.
1861 (expr::fortran_rank_operation): New typedef.
1862 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1864 (f77_keywords): Add "rank" keyword.
1865 * f-lang.c (eval_op_f_rank): New function.
1866 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1868 2021-03-08 Tom Tromey <tom@tromey.com>
1870 * printcmd.c (set_command): Remove null check.
1871 * value.c (init_if_undefined_command): Remove null check.
1873 2021-03-08 Tom Tromey <tom@tromey.com>
1875 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1877 * p-exp.y (variable): Update.
1878 * go-exp.y (variable): Update.
1879 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1880 Remove overload for objfile.
1881 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1883 (check_objfile): Likewise.
1884 (dump_for_expression): Likewise. Remove overload for objfile.
1885 (class var_msym_value_operation): Use bound_minimal_symbol.
1886 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1888 (var_msym_value_operation::evaluate_for_address)
1889 (var_msym_value_operation::evaluate_for_sizeof)
1890 (var_msym_value_operation::evaluate_for_cast): Update.
1891 * d-exp.y (PrimaryExpression): Update.
1892 * c-exp.y (variable): Update.
1893 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1894 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1896 * ada-exp.y (write_var_or_type): Update.
1898 2021-03-08 Tom Tromey <tom@tromey.com>
1900 * parser-defs.h (exp_uses_objfile): Return bool.
1901 * parse.c (exp_uses_objfile): Return bool.
1903 2021-03-08 Tom Tromey <tom@tromey.com>
1905 * value.h (eval_skip_value): Don't declare.
1906 * opencl-lang.c (eval_opencl_assign): Update.
1907 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1908 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1909 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1910 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1911 * expop.h (typeof_operation::evaluate)
1912 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1913 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1914 (cxx_cast_operation::evaluate): Update.
1915 * eval.c (eval_skip_value): Remove.
1916 (eval_op_scope, eval_op_var_entry_value)
1917 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1918 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1919 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1920 (eval_op_binary, eval_op_subscript, eval_op_equal)
1921 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1922 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1923 (eval_op_complement, eval_op_lognot, eval_op_ind)
1924 (eval_op_memval, eval_op_preinc, eval_op_predec)
1925 (eval_op_postinc, eval_op_postdec, eval_op_type)
1926 (eval_binop_assign_modify, eval_op_objc_msgcall)
1927 (eval_multi_subscript, logical_and_operation::evaluate)
1928 (logical_or_operation::evaluate, array_operation::evaluate)
1929 (operation::evaluate_for_cast)
1930 (var_msym_value_operation::evaluate_for_cast)
1931 (var_value_operation::evaluate_for_cast): Update.
1932 * c-lang.c (c_string_operation::evaluate): Update.
1933 * c-exp.h (objc_nsstring_operation::evaluate)
1934 (objc_selector_operation::evaluate): Update.
1935 * ada-lang.c (ada_assign_operation::evaluate)
1936 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1937 (ada_atr_size): Update.
1939 2021-03-08 Tom Tromey <tom@tromey.com>
1941 * eval.c: Merge "namespace" scopes.
1943 2021-03-08 Tom Tromey <tom@tromey.com>
1945 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1947 * parse.c (expr_builder::expr_builder, expr_builder::release):
1950 2021-03-08 Tom Tromey <tom@tromey.com>
1952 * parse.c (expression::expression, expression::~expression):
1954 * expression.h (struct expression): Inline constructor. Remove
1957 2021-03-08 Tom Tromey <tom@tromey.com>
1959 * std-operator.def (BINOP_END): Remove.
1960 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1961 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1962 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1963 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1964 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1967 2021-03-08 Tom Tromey <tom@tromey.com>
1969 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1971 2021-03-08 Tom Tromey <tom@tromey.com>
1973 * std-operator.def (OP_EXTENDED0): Remove.
1975 2021-03-08 Tom Tromey <tom@tromey.com>
1977 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1978 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1981 2021-03-08 Tom Tromey <tom@tromey.com>
1983 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1984 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1986 2021-03-08 Tom Tromey <tom@tromey.com>
1988 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1989 * ada-lang.c (ada_binop_minmax): Update.
1990 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1991 Use BINOP_MIN and BINOP_MAX.
1993 2021-03-08 Tom Tromey <tom@tromey.com>
1995 * value.h (evaluate_subexp_with_coercion): Don't declare.
1996 * parse.c (exp_descriptor_standard): Remove.
1997 (expr_builder::expr_builder, expr_builder::release): Update.
1998 (expression::expression): Remove size_t parameter.
1999 (expression::~expression): Simplify.
2000 (expression::resize): Remove.
2001 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2002 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2003 (write_exp_elt_longcst, write_exp_elt_floatcst)
2004 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2005 (write_exp_string_vector, write_exp_bitstring): Remove.
2006 * p-lang.h (class pascal_language) <opcode_print_table,
2007 op_print_tab>: Remove.
2008 * p-lang.c (pascal_language::op_print_tab): Remove.
2009 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2011 * objc-lang.c (objc_op_print_tab): Remove.
2012 (class objc_language) <opcode_print_table>: Remove.
2013 * m2-lang.h (class m2_language) <opcode_print_table,
2014 op_print_tab>: Remove.
2015 * m2-lang.c (m2_language::op_print_tab): Remove.
2016 * language.h (struct language_defn) <post_parser, expression_ops,
2017 opcode_print_table>: Remove.
2018 * language.c (language_defn::expression_ops)
2019 (auto_or_unknown_language::opcode_print_table): Remove.
2020 * go-lang.h (class go_language) <opcode_print_table,
2021 op_print_tab>: Remove.
2022 * go-lang.c (go_language::op_print_tab): Remove.
2023 * f-lang.h (class f_language) <opcode_print_table>: Remove
2024 <op_print_tab>: Remove.
2025 * f-lang.c (f_language::op_print_tab): Remove.
2026 * expression.h (union exp_element): Remove.
2027 (struct expression): Remove size_t parameter from constructor.
2029 <first_opcode>: Update.
2030 <nelts, elts>: Remove.
2031 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2032 (evaluate_subexp_standard, print_expression, op_string)
2033 (dump_raw_expression): Don't declare.
2034 * expprint.c (print_expression, print_subexp)
2035 (print_subexp_funcall, print_subexp_standard, op_string)
2036 (dump_raw_expression, dump_subexp, dump_subexp_body)
2037 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2038 (dump_prefix_expression): Update.
2039 * eval.c (evaluate_subexp): Remove.
2040 (evaluate_expression, evaluate_type): Update.
2041 (evaluate_subexpression_type): Remove.
2042 (fetch_subexp_value): Remove "pc" parameter. Update.
2043 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2044 (evaluate_subexp_standard, evaluate_subexp_for_address)
2045 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2046 (evaluate_subexp_for_cast): Remove.
2047 (parse_and_eval_type): Update.
2048 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2049 * d-lang.c (d_op_print_tab): Remove.
2050 (class d_language) <opcode_print_table>: Remove.
2051 * c-lang.h (c_op_print_tab): Don't declare.
2052 * c-lang.c (c_op_print_tab): Remove.
2053 (class c_language, class cplus_language, class asm_language, class
2054 minimal_language) <opcode_print_table>: Remove.
2055 * breakpoint.c (update_watchpoint, watchpoint_check)
2056 (watchpoint_exp_is_const, watch_command_1): Update.
2057 * ax-gdb.h (union exp_element): Don't declare.
2058 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2059 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2060 (gen_expr_binop_rest): Remove.
2061 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2062 * ada-lang.c (ada_op_print_tab): Remove.
2063 (class ada_language) <post_parser, opcode_print_table>: Remove.
2065 2021-03-08 Tom Tromey <tom@tromey.com>
2067 * go-lang.c (go_language::expression_ops): Don't declare.
2068 * go-lang.h (class go_language) <expression_ops>: Remove.
2069 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2071 (class opencl_language) <expression_ops>: Remove.
2072 * d-lang.c (class d_language) <expression_ops>: Remove.
2073 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2074 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2075 (class c_language, class cplus_language, class asm_language)
2076 (class minimal_language) <expression_ops>: Remove.
2078 2021-03-08 Tom Tromey <tom@tromey.com>
2080 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2081 (evaluate_subexp_type, assign_aggregate)
2082 (aggregate_assign_positional, aggregate_assign_from_choices)
2083 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2084 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2085 (ada_operator_check, ada_forward_operator_length)
2086 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2088 (post_parser): Update.
2089 (class ada_language) <expresssion_ops>: Remove.
2091 2021-03-08 Tom Tromey <tom@tromey.com>
2093 * m2-lang.h (class m2_language) <expresssion_ops,
2094 exp_descriptor_modula2>: Remove.
2095 * m2-lang.c (evaluate_subexp_modula2)
2096 (m2_language::exp_descriptor_modula2): Remove.
2098 2021-03-08 Tom Tromey <tom@tromey.com>
2100 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2101 <exp_descriptor_tab>: Remove.
2102 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2103 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2104 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2105 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2108 2021-03-08 Tom Tromey <tom@tromey.com>
2110 * rust-lang.h (class rust_language) <expression_ops,
2111 exp_descriptor_tab>: Remove.
2112 * rust-lang.c (rust_evaluate_funcall): Remove.
2113 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2115 (rust_evaluate_subexp): Remove.
2116 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2117 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2118 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2120 2021-03-08 Tom Tromey <tom@tromey.com>
2122 * ada-exp.y: Create operations.
2123 (empty_stoken): Remove.
2124 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2125 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2126 (components): New global.
2127 (push_component, choice_component, pop_component, pop_components):
2129 (associations): New global
2130 (push_association, pop_association, pop_associations): New
2132 (ada_parse): Update.
2133 (write_var_from_sym, write_int): Create operations.
2134 (write_exp_op_with_string): Remove.
2135 (write_object_renaming, write_selectors, write_ambiguous_var)
2136 (write_var_or_type, write_name_assoc): Create operations.
2137 * ada-lang.h (ada_index_type): Declare.
2138 * ada-lang.c (ada_index_type): No longer static.
2140 2021-03-08 Tom Tromey <tom@tromey.com>
2142 * f-exp.y: Create operations.
2143 (f_language::parser): Update.
2145 2021-03-08 Tom Tromey <tom@tromey.com>
2147 * m2-exp.y: Create operations.
2148 (m2_language::parser): Update.
2150 2021-03-08 Tom Tromey <tom@tromey.com>
2152 * p-exp.y: Create operations.
2153 (pascal_language::parser): Update.
2155 2021-03-08 Tom Tromey <tom@tromey.com>
2157 * d-exp.y: Create operations.
2160 2021-03-08 Tom Tromey <tom@tromey.com>
2162 * go-exp.y: Create operations.
2163 (go_language::parser): Update.
2165 2021-03-08 Tom Tromey <tom@tromey.com>
2167 * objc-lang.c (end_msglist): Create operations.
2168 * c-exp.y: Change parser to create operations.
2169 (write_destructor_name): Remove.
2172 2021-03-08 Tom Tromey <tom@tromey.com>
2174 * rust-exp.y: Create operations.
2175 (rust_parser::convert_params_to_expression): Change return type.
2176 (binop_maker_ftype): New typedef.
2177 (maker_map): New global.
2178 (rust_parser::convert_ast_to_expression): Change return type.
2179 (rust_language::parser): Update.
2180 (_initialize_rust_exp): Initialize maker_map.
2182 2021-03-08 Tom Tromey <tom@tromey.com>
2184 * stap-probe.c (binop_maker_ftype): New typedef.
2185 (stap_maker_map): New global.
2186 (stap_make_binop): New function.
2187 (stap_parse_register_operand): Return operation_up.
2188 (stap_parse_single_operand, stap_parse_argument_conditionally)
2189 (stap_parse_argument_1): Likewise.
2190 (stap_parse_argument): Create operations.
2191 (stap_probe::parse_arguments): Update.
2192 (_initialize_stap_probe): Initialize stap_maker_map.
2193 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2195 * i386-tdep.h (i386_stap_parse_special_token): Change return
2197 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2198 (i386_stap_parse_special_token_three_arg_disp)
2199 (i386_stap_parse_special_token): Change return type.
2200 * gdbarch.sh (stap_parse_special_token): Change return type.
2201 * gdbarch.c: Rebuild.
2202 * gdbarch.h: Rebuild.
2203 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2205 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2208 2021-03-08 Tom Tromey <tom@tromey.com>
2210 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2211 * gdbarch.h: Rebuild.
2212 * gdbarch.c: Rebuild.
2213 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2214 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2216 (amd64_dtrace_parse_probe_argument): Update.
2218 2021-03-08 Tom Tromey <tom@tromey.com>
2220 * parser-defs.h (struct parser_state) <push, push_new,
2221 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2222 wrap2>: New methods.
2223 <m_operations>: New member.
2224 * parse.c (parser_state::push_c_string)
2225 (parser_state::push_symbol, parser_state::push_dollar): New
2228 2021-03-08 Tom Tromey <tom@tromey.com>
2230 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2232 (struct parser_state) <mark_struct_expression>: New method.
2233 * parse.c (parser_state::mark_struct_expression): Update assert.
2234 (parser_state::mark_struct_expression): New method.
2235 (parser_state::mark_completion_tag): Update assert.
2236 (parse_expression_for_completion): Handle expout_last_op.
2238 2021-03-08 Tom Tromey <tom@tromey.com>
2240 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2242 * value.h (fetch_subexp_value): Add "op" parameter.
2243 * value.c (init_if_undefined_command): Update.
2244 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2245 * stap-probe.c (stap_probe::compile_to_ax): Update.
2246 * printcmd.c (set_command): Update.
2247 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2249 * parser-defs.h (struct expr_builder) <set_operation>: New
2251 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2252 * expression.h (struct expression) <first_opcode>: Update.
2254 * expprint.c (dump_raw_expression, dump_prefix_expression):
2256 * expop.h (class var_value_operation) <get_symbol>: New method.
2257 (class register_operation) <get_name>: New method.
2258 (class equal_operation): No longer a typedef, now a subclass.
2259 (class unop_memval_operation) <get_type>: New method.
2260 (class assign_operation) <get_lhs>: New method.
2261 (class unop_cast_operation) <get_type>: New method.
2262 * eval.c (evaluate_expression, evaluate_type)
2263 (evaluate_subexpression_type): Update.
2264 (fetch_subexp_value): Add "op" parameter.
2265 (parse_and_eval_type): Update.
2266 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2267 * breakpoint.c (update_watchpoint, watchpoint_check)
2268 (watchpoint_exp_is_const, watch_command_1): Update.
2269 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2272 2021-03-08 Tom Tromey <tom@tromey.com>
2274 * ada-lang.c (ada_value_binop): Do not use op_string.
2276 2021-03-08 Tom Tromey <tom@tromey.com>
2278 * expprint.c (dump_for_expression): New overload.
2279 * expop.h (check_objfile, dump_for_expression): Declare new
2281 * ada-lang.c (check_objfile): New overload.
2282 (assign_component, ada_aggregate_component::uses_objfile)
2283 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2284 (ada_aggregate_component::assign_aggregate)
2285 (ada_positional_component::uses_objfile)
2286 (ada_positional_component::dump, ada_positional_component::assign)
2287 (ada_discrete_range_association::uses_objfile)
2288 (ada_discrete_range_association::dump)
2289 (ada_discrete_range_association::assign)
2290 (ada_name_association::uses_objfile, ada_name_association::dump)
2291 (ada_name_association::assign)
2292 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2293 (ada_choices_component::assign)
2294 (ada_others_component::uses_objfile, ada_others_component::dump)
2295 (ada_others_component::assign, ada_assign_operation::evaluate):
2297 * ada-exp.h (ada_string_operation) <get_name>: New method.
2298 (class ada_assign_operation): New.
2299 (class ada_component): New.
2300 (ada_component_up): New typedef.
2301 (class ada_aggregate_operation, class ada_aggregate_component)
2302 (class ada_positional_component, class ada_others_component)
2303 (class ada_association): New.
2304 (ada_association_up): New typedef.
2305 (class ada_choices_component)
2306 (class ada_discrete_range_association)
2307 (class ada_name_association): New.
2309 2021-03-08 Tom Tromey <tom@tromey.com>
2311 * ada-lang.c (ada_var_value_operation::resolve)
2312 (ada_funcall_operation::resolve)
2313 (ada_ternop_slice_operation::resolve): New methods.
2314 * ada-exp.h (struct ada_resolvable): New.
2315 (class ada_var_value_operation): Derive from ada_resolvable.
2316 <get_block, resolve>: New methods.
2317 (class ada_funcall_operation): Derive from ada_resolvable.
2318 <resolve>: New method.
2319 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2320 <resolve>: New method.
2322 2021-03-08 Tom Tromey <tom@tromey.com>
2324 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2325 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2327 (class ada_funcall_operation): New.
2329 2021-03-08 Tom Tromey <tom@tromey.com>
2331 * ada-lang.c (ada_structop_operation::evaluate): New method.
2332 * ada-exp.h (class ada_structop_operation): New.
2334 2021-03-08 Tom Tromey <tom@tromey.com>
2336 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2337 * ada-exp.h (class ada_unop_ind_operation): New.
2339 2021-03-08 Tom Tromey <tom@tromey.com>
2341 * ada-lang.c (ada_binop_exp): No longer static.
2342 * ada-exp.h (ada_binop_exp_operation): New typedef.
2344 2021-03-08 Tom Tromey <tom@tromey.com>
2346 * ada-lang.c (ada_val_atr): No longer static.
2347 (ada_atr_val_operation::evaluate): New method.
2348 * ada-exp.h (class ada_atr_val_operation): New.
2350 2021-03-08 Tom Tromey <tom@tromey.com>
2352 * ada-lang.c (ada_pos_atr): No longer static.
2353 * ada-exp.h (ada_pos_operation): New typedef.
2355 2021-03-08 Tom Tromey <tom@tromey.com>
2357 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2359 (ada_evaluate_subexp): Use it.
2361 2021-03-08 Tom Tromey <tom@tromey.com>
2363 * ada-lang.c (ada_binop_minmax): No longer static.
2364 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2367 2021-03-08 Tom Tromey <tom@tromey.com>
2369 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2371 * ada-exp.h (class ada_var_msym_value_operation): New.
2373 2021-03-08 Tom Tromey <tom@tromey.com>
2375 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2376 (ada_var_value_operation::evaluate): New methods.
2377 * ada-exp.h (class ada_var_value_operation): New.
2379 2021-03-08 Tom Tromey <tom@tromey.com>
2381 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2382 * ada-exp.h (class ada_unop_atr_operation): New.
2384 2021-03-08 Tom Tromey <tom@tromey.com>
2386 * ada-lang.c (ada_binop_in_bounds): No longer static.
2387 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2389 2021-03-08 Tom Tromey <tom@tromey.com>
2391 * ada-lang.c (ada_ternop_slice): No longer static.
2392 * ada-exp.h (class ada_ternop_slice_operation): New.
2394 2021-03-08 Tom Tromey <tom@tromey.com>
2396 * ada-exp.h (ada_bitwise_operation): New template class.
2397 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2398 (ada_bitwise_xor_operation): New typedefs.
2400 2021-03-08 Tom Tromey <tom@tromey.com>
2402 * ada-lang.c (ada_equal_binop): No longer static.
2403 * ada-exp.h (class ada_binop_equal_operation): New.
2405 2021-03-08 Tom Tromey <tom@tromey.com>
2407 * ada-lang.c (ada_mult_binop): No longer static.
2408 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2409 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2411 2021-03-08 Tom Tromey <tom@tromey.com>
2413 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2414 * ada-exp.h (class ada_binop_addsub_operation): New.
2416 2021-03-08 Tom Tromey <tom@tromey.com>
2418 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2419 (ada_resolve_variable): Declare.
2420 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2421 (ada_resolve_variable): New functions.
2422 (resolve_subexp): Update.
2424 2021-03-08 Tom Tromey <tom@tromey.com>
2426 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2428 * c-exp.h (class opencl_ternop_cond_operation): New.
2430 2021-03-08 Tom Tromey <tom@tromey.com>
2432 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2434 * c-exp.h (class opencl_logical_binop_operation): New.
2436 2021-03-08 Tom Tromey <tom@tromey.com>
2438 * opencl-lang.c (opencl_structop_operation::evaluate): New
2440 * c-exp.h (class opencl_structop_operation): New.
2442 2021-03-08 Tom Tromey <tom@tromey.com>
2444 * opencl-lang.c (opencl_logical_not): No longer static. Change
2446 (evaluate_subexp_opencl): Update.
2447 * c-exp.h (opencl_notequal_operation): New typedef.
2449 2021-03-08 Tom Tromey <tom@tromey.com>
2451 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2452 static. Change parameters.
2453 (eval_opencl_assign): No longer static. Add "op" parameter.
2454 (evaluate_subexp_opencl): Update.
2455 * c-exp.h (opencl_binop_operation): New template class.
2456 (opencl_assign_operation, opencl_equal_operation)
2457 (opencl_notequal_operation, opencl_less_operation)
2458 (opencl_gtr_operation, opencl_geq_operation)
2459 (opencl_leq_operation): New typedefs.
2461 2021-03-08 Tom Tromey <tom@tromey.com>
2463 * opencl-lang.c (opencl_value_cast): No longer static.
2464 * c-exp.h (opencl_cast_type_operation): New typedef.
2466 2021-03-08 Tom Tromey <tom@tromey.com>
2468 * f-exp.h (eval_op_f_allocated): Declare.
2469 (fortran_allocated_operation): New typedef.
2470 * f-lang.c (eval_op_f_allocated): No longer static.
2472 2021-03-08 Tom Tromey <tom@tromey.com>
2474 * f-lang.c (eval_op_f_associated): New functions.
2475 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2478 2021-03-08 Tom Tromey <tom@tromey.com>
2480 * f-lang.c (fortran_bound_1arg::evaluate)
2481 (fortran_bound_2arg::evaluate): New methods.
2482 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2485 2021-03-08 Tom Tromey <tom@tromey.com>
2487 * expop.h (class unop_addr_operation) <get_expression>: New
2489 * f-lang.c (fortran_undetermined::value_subarray)
2490 (fortran_undetermined::evaluate): New methods.
2491 (fortran_prepare_argument): New overload.
2492 * f-exp.h (class fortran_range_operation)
2493 (class fortran_undetermined): New classes.
2495 2021-03-08 Tom Tromey <tom@tromey.com>
2497 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2498 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2501 2021-03-08 Tom Tromey <tom@tromey.com>
2503 * expression.h (class operation) <evaluate_funcall>: New methods.
2504 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2505 (class var_value_operation) <evaluate_funcall>: New method.
2506 (class structop_base_operation) <evaluate_funcall>: New method.
2507 (class var_msym_value_operation) <evaluate_funcall>: New method.
2508 (class structop_member_base): New class.
2509 (class structop_member_operation): Derive from
2510 structop_member_base.
2511 (class structop_mptr_operation): Derive from
2512 structop_member_base.
2513 (class funcall_operation): New class.
2514 * eval.c (operation::evaluate_funcall)
2515 (var_value_operation::evaluate_funcall)
2516 (scope_operation::evaluate_funcall)
2517 (structop_member_base::evaluate_funcall)
2518 (structop_base_operation::evaluate_funcall): New methods.
2520 2021-03-08 Tom Tromey <tom@tromey.com>
2522 * expop.h (class array_operation): New.
2523 * eval.c (array_operation::evaluate_struct_tuple)
2524 (array_operation::evaluate): New methods.
2526 2021-03-08 Tom Tromey <tom@tromey.com>
2528 * expop.h (class adl_func_operation): New.
2529 * eval.c (adl_func_operation::evaluate): New method.
2531 2021-03-08 Tom Tromey <tom@tromey.com>
2533 * ada-lang.c (ada_unop_in_range): No longer static.
2534 * ada-exp.h (class ada_unop_range_operation): New.
2536 2021-03-08 Tom Tromey <tom@tromey.com>
2538 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2540 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2541 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2543 2021-03-08 Tom Tromey <tom@tromey.com>
2545 * expop.h (class logical_and_operation)
2546 (class logical_or_operation): New.
2547 * eval.c (logical_and_operation::evaluate)
2548 (logical_or_operation::evaluate): New methods.
2549 * ax-gdb.c (logical_and_operation::do_generate_ax)
2550 (logical_or_operation::do_generate_ax): New methods.
2552 2021-03-08 Tom Tromey <tom@tromey.com>
2554 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2556 * m2-exp.h: New file.
2558 2021-03-08 Tom Tromey <tom@tromey.com>
2560 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2561 * rust-exp.h (class rust_aggregate_operation): New.
2563 2021-03-08 Tom Tromey <tom@tromey.com>
2565 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2567 * rust-exp.h (class rust_struct_anon): New.
2568 (class rust_structop): New.
2570 2021-03-08 Tom Tromey <tom@tromey.com>
2572 * rust-lang.c (rust_range): No longer static.
2573 * rust-exp.h (class rust_range_operation): New.
2575 2021-03-08 Tom Tromey <tom@tromey.com>
2577 * rust-lang.c (rust_subscript): No longer static.
2578 * rust-exp.h (class rust_subscript_operation): New.
2580 2021-03-08 Tom Tromey <tom@tromey.com>
2582 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2584 (rust_evaluate_subexp): Update.
2585 * rust-exp.h (class rust_unop_ind_operation): New.
2587 2021-03-08 Tom Tromey <tom@tromey.com>
2589 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2590 longer static. Add "opcode" parameter.
2591 (rust_evaluate_subexp): Update.
2592 * rust-exp.h: New file.
2594 2021-03-08 Tom Tromey <tom@tromey.com>
2596 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2597 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2598 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2599 (evaluate_subexp_f): Update.
2600 * f-exp.h: New file.
2602 2021-03-08 Tom Tromey <tom@tromey.com>
2604 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2605 * ada-exp.h (class ada_ternop_range_operation): New.
2607 2021-03-08 Tom Tromey <tom@tromey.com>
2609 * ada-lang.c (ada_qual_operation::evaluate): New method.
2610 * ada-exp.h (class ada_qual_operation): New.
2612 2021-03-08 Tom Tromey <tom@tromey.com>
2614 * ada-lang.c (ada_string_operation::evaluate): New method.
2615 * ada-exp.h (class ada_string_operation): New.
2617 2021-03-08 Tom Tromey <tom@tromey.com>
2619 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2620 * ada-exp.h: New file.
2622 2021-03-08 Tom Tromey <tom@tromey.com>
2624 * expop.h (class multi_subscript_operation): New.
2625 * eval.c (multi_subscript_operation::evaluate): New method.
2627 2021-03-08 Tom Tromey <tom@tromey.com>
2629 * eval.c (objc_msgcall_operation::evaluate): New method.
2630 * c-exp.h (class objc_msgcall_operation): New.
2632 2021-03-08 Tom Tromey <tom@tromey.com>
2634 * expop.h (class var_value_operation): New.
2635 * eval.c (var_value_operation::evaluate)
2636 (var_value_operation::evaluate_for_address)
2637 (var_value_operation::evaluate_with_coercion)
2638 (var_value_operation::evaluate_for_sizeof)
2639 (var_value_operation::evaluate_for_cast): New methods.
2640 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2642 2021-03-08 Tom Tromey <tom@tromey.com>
2644 * expop.h (cxx_cast_ftype): New typedef.
2645 (cxx_cast_operation): New template.
2646 (dynamic_cast_operation, reinterpret_cast_operation): New
2649 2021-03-08 Tom Tromey <tom@tromey.com>
2651 * expop.h (class unop_cast_type_operation): New.
2652 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2655 2021-03-08 Tom Tromey <tom@tromey.com>
2657 * expop.h (class unop_cast_operation): New.
2658 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2660 2021-03-08 Tom Tromey <tom@tromey.com>
2662 * expop.h (class assign_modify_operation): New.
2663 * eval.c (eval_binop_assign_modify): No longer static.
2664 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2666 2021-03-08 Tom Tromey <tom@tromey.com>
2668 * expop.h (class assign_operation): New.
2669 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2671 2021-03-08 Tom Tromey <tom@tromey.com>
2673 * expop.h (class type_instance_operation): New.
2674 * eval.c (type_instance_operation::evaluate): New method.
2676 2021-03-08 Tom Tromey <tom@tromey.com>
2678 * expop.h (class op_this_operation): New.
2679 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2681 2021-03-08 Tom Tromey <tom@tromey.com>
2683 * expop.h (class unop_memval_operation)
2684 (class unop_memval_type_operation): New.
2685 * eval.c (eval_op_memval): No longer static.
2686 (unop_memval_operation::evaluate_for_address)
2687 (unop_memval_type_operation::evaluate_for_address)
2688 (unop_memval_operation::evaluate_for_sizeof)
2689 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2690 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2691 (unop_memval_type_operation::do_generate_ax): New methods.
2693 2021-03-08 Tom Tromey <tom@tromey.com>
2695 * expop.h (class unop_alignof_operation): New.
2696 * eval.c (eval_op_alignof): No longer static.
2698 2021-03-08 Tom Tromey <tom@tromey.com>
2700 * expop.h (class unop_sizeof_operation): New.
2701 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2703 2021-03-08 Tom Tromey <tom@tromey.com>
2705 * expop.h (class unop_addr_operation): New.
2706 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2708 2021-03-08 Tom Tromey <tom@tromey.com>
2710 * expop.h (class typeid_operation): New.
2712 2021-03-08 Tom Tromey <tom@tromey.com>
2714 * expop.h (class decltype_operation): New.
2716 2021-03-08 Tom Tromey <tom@tromey.com>
2718 * expop.h (class typeof_operation): New.
2720 2021-03-08 Tom Tromey <tom@tromey.com>
2722 * expop.h (class type_operation): New.
2723 * eval.c (eval_op_type): No longer static.
2725 2021-03-08 Tom Tromey <tom@tromey.com>
2727 * expop.h (class unop_ind_base_operation)
2728 (class unop_ind_operation): New.
2729 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2730 (unop_ind_base_operation::evaluate_for_address)
2731 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2732 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2734 2021-03-08 Tom Tromey <tom@tromey.com>
2736 * expop.h (unop_incr_operation): New template.
2737 (preinc_operation, predec_operation, postinc_operation)
2738 (postdec_operation): New typedefs.
2739 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2740 (eval_op_postdec): No longer static.
2742 2021-03-08 Tom Tromey <tom@tromey.com>
2744 * expop.h (unary_ftype): New typedef.
2745 (unop_operation, usual_ax_binop_operation): New templates.
2746 (unary_plus_operation, unary_neg_operation)
2747 (unary_complement_operation, unary_logical_not_operation): New
2749 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2750 (eval_op_lognot): No longer static.
2751 * ax-gdb.c (gen_expr_unop): New function.
2753 2021-03-08 Tom Tromey <tom@tromey.com>
2755 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2757 2021-03-08 Tom Tromey <tom@tromey.com>
2759 * expop.h (class repeat_operation): New.
2760 * eval.c (eval_op_repeat): No longer static. Remove "op"
2762 (evaluate_subexp_standard): Update.
2763 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2765 2021-03-08 Tom Tromey <tom@tromey.com>
2767 * expop.h (class comparison_operation): New.
2768 (equal_operation, notequal_operation, less_operation)
2769 (gtr_operation, geq_operation, leq_operation): New typedefs.
2770 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2771 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2773 2021-03-08 Tom Tromey <tom@tromey.com>
2775 * expop.h (class subscript_operation): New.
2776 * eval.c (eval_op_subscript): No longer static.
2778 2021-03-08 Tom Tromey <tom@tromey.com>
2780 * expop.h (class binop_operation, class usual_ax_binop_operation):
2782 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2783 (div_operation, rem_operation, lsh_operation, rsh_operation)
2784 (bitwise_and_operation, bitwise_ior_operation)
2785 (bitwise_xor_operation): New typedefs.
2786 * eval.c (eval_op_binary): No longer static.
2788 2021-03-08 Tom Tromey <tom@tromey.com>
2790 * expop.h (class sub_operation): New.
2791 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2792 (evaluate_subexp_standard): Update.
2794 2021-03-08 Tom Tromey <tom@tromey.com>
2796 * expop.h (class add_operation): New.
2797 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2798 (evaluate_subexp_standard): Update.
2800 2021-03-08 Tom Tromey <tom@tromey.com>
2802 * expop.h (class concat_operation): New.
2803 * eval.c (eval_op_concat): No longer static. Remove "op"
2805 (evaluate_subexp_standard): Update.
2807 2021-03-08 Tom Tromey <tom@tromey.com>
2809 * expop.h (class structop_member_operation)
2810 (class structop_mptr_operation): New.
2811 * eval.c (eval_op_member): No longer static.
2813 2021-03-08 Tom Tromey <tom@tromey.com>
2815 * expop.h (class structop_ptr_operation): New.
2816 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2819 2021-03-08 Tom Tromey <tom@tromey.com>
2821 * expop.h (class structop_base_operation)
2822 (class structop_operation): New.
2823 * eval.c (eval_op_structop_struct): No longer static.
2825 2021-03-08 Tom Tromey <tom@tromey.com>
2827 * expop.h (class complex_operation): New.
2829 2021-03-08 Tom Tromey <tom@tromey.com>
2831 * eval.c (eval_op_objc_selector): No longer static.
2832 * c-exp.h (class objc_selector_operation): New.
2834 2021-03-08 Tom Tromey <tom@tromey.com>
2836 * eval.c: Include c-exp.h.
2837 * c-exp.h (class objc_nsstring_operation): New.
2839 2021-03-08 Tom Tromey <tom@tromey.com>
2841 * c-lang.c (c_string_operation::evaluate): New method.
2842 * c-exp.h: New file.
2844 2021-03-08 Tom Tromey <tom@tromey.com>
2846 * expop.h (class ternop_cond_operation): New.
2847 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2849 2021-03-08 Tom Tromey <tom@tromey.com>
2851 * expop.h (class ternop_slice_operation): New.
2852 * eval.c (eval_op_ternop): No longer static.
2854 2021-03-08 Tom Tromey <tom@tromey.com>
2856 * expop.h (class string_operation): New.
2857 * eval.c (eval_op_string): No longer static.
2859 2021-03-08 Tom Tromey <tom@tromey.com>
2861 * expop.h (class internalvar_operation): New.
2862 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2864 2021-03-08 Tom Tromey <tom@tromey.com>
2866 * expop.h (class bool_operation): New.
2868 2021-03-08 Tom Tromey <tom@tromey.com>
2870 * expop.h (class register_operation): New.
2871 * eval.c (eval_op_register): No longer static.
2872 * ax-gdb.c (register_operation::do_generate_ax): New method.
2874 2021-03-08 Tom Tromey <tom@tromey.com>
2876 * expop.h (class last_operation): New.
2878 2021-03-08 Tom Tromey <tom@tromey.com>
2880 * expop.h (class func_static_var_operation): New.
2881 * eval.c (eval_op_func_static_var): No longer static.
2883 2021-03-08 Tom Tromey <tom@tromey.com>
2885 * expop.h (class var_entry_value_operation): New.
2886 * eval.c (eval_op_var_entry_value): No longer static.
2888 2021-03-08 Tom Tromey <tom@tromey.com>
2890 * expression.h (class operation) <set_outermost>: New method.
2891 * expop.h (class var_msym_value_operation): New.
2892 * eval.c (eval_op_var_msym_value): No longer static.
2893 (var_msym_value_operation::evaluate_for_address)
2894 (var_msym_value_operation::evaluate_for_sizeof)
2895 (var_msym_value_operation::evaluate_for_cast): New methods.
2896 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2899 2021-03-08 Tom Tromey <tom@tromey.com>
2901 * expop.h (class long_const_operation): New.
2902 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2904 2021-03-08 Tom Tromey <tom@tromey.com>
2906 * expop.h (class scope_operation): New.
2907 * eval.c (eval_op_scope): No longer static.
2908 (scope_operation::evaluate_for_address): New method.
2909 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2911 2021-03-08 Tom Tromey <tom@tromey.com>
2913 * expprint.c (float_const_operation::dump): New method.
2914 * expop.h (float_data): New typedef.
2915 (class float_const_operation): New.
2917 2021-03-08 Tom Tromey <tom@tromey.com>
2919 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2920 * ax-gdb.c (gen_expr_binop): New function.
2921 (gen_expr_structop): Likewise.
2923 2021-03-08 Tom Tromey <tom@tromey.com>
2925 * expprint.c (expr::dump_for_expression): New functions.
2926 * expop.h (dump_for_expression): New overloads.
2927 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2930 2021-03-08 Tom Tromey <tom@tromey.com>
2932 * expression.h (expr::operation): New class.
2933 (expr::make_operation): New function.
2934 (expr::operation_up): New typedef.
2935 * expop.h: New file.
2936 * eval.c (operation::evaluate_for_cast)
2937 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2939 * ax-gdb.c (operation::generate_ax): New method.
2941 2021-03-08 Tom Tromey <tom@tromey.com>
2943 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2944 (gen_expr_binop_rest): New overload.
2946 2021-03-08 Tom Tromey <tom@tromey.com>
2948 * eval.c (eval_multi_subscript): New function.
2949 (evaluate_subexp_standard): Use it.
2951 2021-03-08 Tom Tromey <tom@tromey.com>
2953 * ada-lang.c (ada_binop_exp): New function.
2954 (ada_evaluate_subexp): Use it.
2956 2021-03-08 Tom Tromey <tom@tromey.com>
2958 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2960 (ada_evaluate_subexp): Use it.
2962 2021-03-08 Tom Tromey <tom@tromey.com>
2964 * ada-lang.c (ada_binop_minmax): New function.
2965 (ada_evaluate_subexp): Use it.
2967 2021-03-08 Tom Tromey <tom@tromey.com>
2969 * ada-lang.c (ada_unop_atr): New function.
2970 (ada_evaluate_subexp): Use it.
2972 2021-03-08 Tom Tromey <tom@tromey.com>
2974 * ada-lang.c (ada_binop_in_bounds): New function.
2975 (ada_evaluate_subexp): Use it.
2977 2021-03-08 Tom Tromey <tom@tromey.com>
2979 * ada-lang.c (ada_ternop_slice): New function.
2980 (ada_evaluate_subexp): Use it.
2982 2021-03-08 Tom Tromey <tom@tromey.com>
2984 * ada-lang.c (ada_equal_binop): New function.
2985 (ada_evaluate_subexp): Use it.
2987 2021-03-08 Tom Tromey <tom@tromey.com>
2989 * ada-lang.c (ada_mult_binop): New function.
2990 (ada_evaluate_subexp): Use it.
2992 2021-03-08 Tom Tromey <tom@tromey.com>
2994 * ada-lang.c (ada_abs): New function.
2995 (ada_evaluate_subexp): Use it.
2997 2021-03-08 Tom Tromey <tom@tromey.com>
2999 * ada-lang.c (ada_atr_size): New function.
3000 (ada_evaluate_subexp): Use it.
3002 2021-03-08 Tom Tromey <tom@tromey.com>
3004 * ada-lang.c (ada_atr_tag): New function.
3005 (ada_evaluate_subexp): Use it.
3007 2021-03-08 Tom Tromey <tom@tromey.com>
3009 * ada-lang.c (ada_unop_in_range): New function.
3010 (ada_evaluate_subexp): Use it.
3012 2021-03-08 Tom Tromey <tom@tromey.com>
3014 * ada-lang.c (ada_unop_neg): New function.
3015 (ada_evaluate_subexp): Use it.
3017 2021-03-08 Tom Tromey <tom@tromey.com>
3019 * ada-lang.c (eval_ternop_in_range): New function.
3020 (ada_evaluate_subexp): Use it.
3022 2021-03-08 Tom Tromey <tom@tromey.com>
3024 * opencl-lang.c (eval_opencl_assign): New function.
3025 (evaluate_subexp_opencl): Use it.
3027 2021-03-08 Tom Tromey <tom@tromey.com>
3029 * eval.c (eval_op_objc_msgcall): New function.
3030 (evaluate_subexp_standard): Use it.
3032 2021-03-08 Tom Tromey <tom@tromey.com>
3034 * eval.c (eval_binop_assign_modify): New function.
3035 (evaluate_subexp_standard): Use it.
3037 2021-03-08 Tom Tromey <tom@tromey.com>
3039 * m2-lang.c (eval_op_m2_subscript): New function.
3040 (evaluate_subexp_modula2): Use it.
3042 2021-03-08 Tom Tromey <tom@tromey.com>
3044 * m2-lang.c (eval_op_m2_high): New function.
3045 (evaluate_subexp_modula2): Use it.
3047 2021-03-08 Tom Tromey <tom@tromey.com>
3049 * eval.c (evaluate_subexp_for_address_base): New function.
3050 (evaluate_subexp_for_address): Use it.
3051 (evaluate_subexp_for_sizeof_base): New function.
3052 (evaluate_subexp_for_sizeof): Use it.
3054 2021-03-08 Tom Tromey <tom@tromey.com>
3056 * rust-lang.c (eval_op_rust_structop): New function.
3057 (rust_evaluate_subexp): Use it.
3059 2021-03-08 Tom Tromey <tom@tromey.com>
3061 * rust-lang.c (eval_op_rust_struct_anon): New function.
3062 (rust_evaluate_subexp): Use it.
3064 2021-03-08 Tom Tromey <tom@tromey.com>
3066 * rust-lang.c (eval_op_rust_array): New function.
3067 (rust_evaluate_subexp): Use it.
3069 2021-03-08 Tom Tromey <tom@tromey.com>
3071 * rust-lang.c (eval_op_rust_complement): New function.
3072 (rust_evaluate_subexp): Use it.
3074 2021-03-08 Tom Tromey <tom@tromey.com>
3076 * rust-lang.c (eval_op_rust_ind): New function.
3077 (rust_evaluate_subexp): Use it.
3079 2021-03-08 Tom Tromey <tom@tromey.com>
3081 * rust-lang.c (rust_subscript): Change parameters.
3082 (rust_evaluate_subexp): Update.
3084 2021-03-08 Tom Tromey <tom@tromey.com>
3086 * rust-lang.c (rust_range): Change parameters.
3087 (rust_evaluate_subexp): Update.
3089 2021-03-08 Tom Tromey <tom@tromey.com>
3091 * f-lang.c (eval_op_f_allocated): New function.
3092 (evaluate_subexp_f): Use it.
3094 2021-03-08 Tom Tromey <tom@tromey.com>
3096 * f-lang.c (fortran_require_array): New function.
3097 (evaluate_subexp_f): Use it.
3099 2021-03-08 Tom Tromey <tom@tromey.com>
3101 * f-lang.c (eval_op_f_kind): New function.
3102 (evaluate_subexp_f): Use it.
3104 2021-03-08 Tom Tromey <tom@tromey.com>
3106 * f-lang.c (eval_op_f_cmplx): New function.
3107 (evaluate_subexp_f): Use it.
3109 2021-03-08 Tom Tromey <tom@tromey.com>
3111 * f-lang.c (eval_op_f_modulo): New function.
3112 (evaluate_subexp_f): Use it.
3114 2021-03-08 Tom Tromey <tom@tromey.com>
3116 * f-lang.c (eval_op_f_floor): New function.
3117 (evaluate_subexp_f): Use it.
3119 2021-03-08 Tom Tromey <tom@tromey.com>
3121 * f-lang.c (eval_op_f_ceil): New function.
3122 (evaluate_subexp_f): Use it.
3124 2021-03-08 Tom Tromey <tom@tromey.com>
3126 * f-lang.c (eval_op_f_mod): New function.
3127 (evaluate_subexp_f): Use it.
3129 2021-03-08 Tom Tromey <tom@tromey.com>
3131 * f-lang.c (eval_op_f_abs): New function.
3132 (evaluate_subexp_f): Use it.
3134 2021-03-08 Tom Tromey <tom@tromey.com>
3136 * eval.c (eval_op_type): New function.
3137 (evaluate_subexp_standard): Use it.
3139 2021-03-08 Tom Tromey <tom@tromey.com>
3141 * eval.c (eval_op_postdec): New function.
3142 (evaluate_subexp_standard): Use it.
3144 2021-03-08 Tom Tromey <tom@tromey.com>
3146 * eval.c (eval_op_postinc): New function.
3147 (evaluate_subexp_standard): Use it.
3149 2021-03-08 Tom Tromey <tom@tromey.com>
3151 * eval.c (eval_op_predec): New file.
3152 (evaluate_subexp_standard): Use it.
3154 2021-03-08 Tom Tromey <tom@tromey.com>
3156 * eval.c (eval_op_preinc): New function.
3157 (evaluate_subexp_standard): Use it.
3159 2021-03-08 Tom Tromey <tom@tromey.com>
3161 * eval.c (eval_op_memval): New function.
3162 (evaluate_subexp_standard): Use it.
3164 2021-03-08 Tom Tromey <tom@tromey.com>
3166 * eval.c (eval_op_alignof): New function.
3167 (evaluate_subexp_standard): Use it.
3169 2021-03-08 Tom Tromey <tom@tromey.com>
3171 * eval.c (eval_op_ind): New function.
3172 (evaluate_subexp_standard): Use it.
3174 2021-03-08 Tom Tromey <tom@tromey.com>
3176 * eval.c (eval_op_lognot): New function.
3177 (evaluate_subexp_standard): Use it.
3179 2021-03-08 Tom Tromey <tom@tromey.com>
3181 * eval.c (eval_op_complement): New function.
3182 (evaluate_subexp_standard): Use it.
3184 2021-03-08 Tom Tromey <tom@tromey.com>
3186 * eval.c (eval_op_neg): New function.
3187 (evaluate_subexp_standard): Use it.
3189 2021-03-08 Tom Tromey <tom@tromey.com>
3191 * eval.c (eval_op_plus): New function.
3192 (evaluate_subexp_standard): Use it.
3194 2021-03-08 Tom Tromey <tom@tromey.com>
3196 * eval.c (eval_op_repeat): New function.
3197 (evaluate_subexp_standard): Use it.
3199 2021-03-08 Tom Tromey <tom@tromey.com>
3201 * eval.c (eval_op_leq): New function.
3202 (evaluate_subexp_standard): Use it.
3204 2021-03-08 Tom Tromey <tom@tromey.com>
3206 * eval.c (eval_op_geq): New function.
3207 (evaluate_subexp_standard): Use it.
3209 2021-03-08 Tom Tromey <tom@tromey.com>
3211 * eval.c (eval_op_gtr): New function.
3212 (evaluate_subexp_standard): Use it.
3214 2021-03-08 Tom Tromey <tom@tromey.com>
3216 * eval.c (eval_op_less): New function.
3217 (evaluate_subexp_standard): Use it.
3219 2021-03-08 Tom Tromey <tom@tromey.com>
3221 * eval.c (eval_op_notequal): New function.
3222 (evaluate_subexp_standard): Use it.
3224 2021-03-08 Tom Tromey <tom@tromey.com>
3226 * eval.c (eval_op_equal): New function.
3227 (evaluate_subexp_standard): Use it.
3229 2021-03-08 Tom Tromey <tom@tromey.com>
3231 * eval.c (eval_op_subscript): New function.
3232 (evaluate_subexp_standard): Use it.
3234 2021-03-08 Tom Tromey <tom@tromey.com>
3236 * eval.c (eval_op_binary): New function.
3237 (evaluate_subexp_standard): Use it.
3239 2021-03-08 Tom Tromey <tom@tromey.com>
3241 * eval.c (eval_op_sub): New function.
3242 (evaluate_subexp_standard): Use it.
3244 2021-03-08 Tom Tromey <tom@tromey.com>
3246 * eval.c (eval_op_add): New function.
3247 (evaluate_subexp_standard): Use it.
3249 2021-03-08 Tom Tromey <tom@tromey.com>
3251 * eval.c (eval_op_member): New function.
3252 (evaluate_subexp_standard): Use it.
3254 2021-03-08 Tom Tromey <tom@tromey.com>
3256 * eval.c (eval_op_structop_ptr): New function.
3257 (evaluate_subexp_standard): Use it.
3259 2021-03-08 Tom Tromey <tom@tromey.com>
3261 * eval.c (eval_op_structop_struct): New function.
3262 (evaluate_subexp_standard): Use it.
3264 2021-03-08 Tom Tromey <tom@tromey.com>
3266 * eval.c (eval_op_ternop): New function.
3267 (evaluate_subexp_standard): Use it.
3269 2021-03-08 Tom Tromey <tom@tromey.com>
3271 * eval.c (eval_op_concat): New function.
3272 (evaluate_subexp_standard): Use it.
3274 2021-03-08 Tom Tromey <tom@tromey.com>
3276 * eval.c (eval_op_objc_selector): New function.
3277 (evaluate_subexp_standard): Use it.
3279 2021-03-08 Tom Tromey <tom@tromey.com>
3281 * eval.c (eval_op_string): New function.
3282 (evaluate_subexp_standard): Use it.
3284 2021-03-08 Tom Tromey <tom@tromey.com>
3286 * eval.c (eval_op_register): New function.
3287 (evaluate_subexp_standard): Use it.
3289 2021-03-08 Tom Tromey <tom@tromey.com>
3291 * eval.c (eval_op_func_static_var): New function.
3292 (evaluate_subexp_standard): Use it.
3294 2021-03-08 Tom Tromey <tom@tromey.com>
3296 * eval.c (eval_op_var_msym_value): New function.
3297 (evaluate_subexp_standard): Use it.
3299 2021-03-08 Tom Tromey <tom@tromey.com>
3301 * eval.c (eval_op_var_entry_value): New function.
3302 (evaluate_subexp_standard): Use it.
3304 2021-03-08 Tom Tromey <tom@tromey.com>
3306 * eval.c (eval_op_scope): New function.
3307 (evaluate_subexp_standard): Use it.
3309 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3312 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3314 2021-03-06 Tom Tromey <tom@tromey.com>
3316 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3317 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3318 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3319 (locate_dwz_sections, dwz_search_other_debugdirs)
3320 (dwarf2_get_dwz_file): Move to dwz.c.
3321 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3323 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3324 (dwarf2_get_dwz_file): Move from read.c.
3326 2021-03-06 Tom Tromey <tom@tromey.com>
3328 * debuginfod-support.h: Include scoped_fd.h.
3330 2021-03-06 Tom Tromey <tom@tromey.com>
3332 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3333 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3334 (get_abbrev_section_for_cu, read_attribute_value)
3335 (get_debug_line_section): Update.
3336 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3338 2021-03-06 Tom Tromey <tom@tromey.com>
3340 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3342 * dwarf2/read.c (section_is_p): Remove.
3343 (dwarf2_per_bfd::locate_sections)
3344 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3345 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3346 (dwarf2_locate_common_dwp_sections)
3347 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3350 2021-03-06 Tom Tromey <tom@tromey.com>
3352 * xcoffread.c: Include sect-names.h.
3353 * symfile.h (struct dwarf2_section_names, struct
3354 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3355 * dwarf2/sect-names.h: New file, from symfile.h.
3356 * dwarf2/read.c: Include sect-names.h.
3358 2021-03-06 Tom Tromey <tom@tromey.com>
3360 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3361 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3362 (abbrev_table::read): Update.
3363 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3364 (struct abbrev_info): Reformat.
3365 <attrs>: Now an array.
3366 (struct abbrev_table) <alloc_abbrev>: Remove.
3368 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3370 * ctfread.c (ctf_psymtab_add_enums): New function.
3371 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3373 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3375 * ctfread.c (read_func_kind_type): Set up function arguments.
3377 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3378 Andrew Burgess <andrew.burgess@embecosm.com>
3380 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3382 (riscv_csrset): New static global.
3383 (riscv_update_csrmap): New function.
3384 (riscv_iterate_over_regset_sections): Process CSRs.
3386 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3388 * riscv-tdep.c (riscv_feature_name_csr): Define.
3389 (riscv_feature_name_cpu): Define.
3390 (riscv_feature_name_fpu): Define.
3391 (riscv_feature_name_virtual): Define.
3392 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3393 (riscv_freg_feature): Use riscv_feature_name_fpu.
3394 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3395 (riscv_csr_feature): Use riscv_feature_name_csr.
3396 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3398 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3399 Craig Blackmore <craig.blackmore@embecosm.com>
3401 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3402 (ALLDEPFILES): Add riscv-none-tdep.c.
3403 * configure: Regenerate.
3404 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3406 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3407 * elf-none-tdep.c: New file.
3408 * elf-none-tdep.h: New file.
3409 * riscv-none-tdep.c: New file.
3411 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3412 Andrew Burgess <andrew.burgess@embecosm.com>
3414 * corelow.c: Add 'xml-tdesc.h' include.
3415 (core_target::read_description): Load the target description from
3416 the core file when possible.
3417 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3419 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3420 (gcore_elf_make_tdesc_note): New function.
3421 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3422 * linux-tdep.c (linux_make_corefile_notes): Add target description
3425 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3427 * Makefile.in (SFILES): Add gcore-elf.c.
3428 (HFILES_NO_SRCDIR): Add gcore-elf.h
3429 * configure: Regenerate.
3430 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3432 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3433 (struct fbsd_collect_regset_section_cb_data): Delete.
3434 (fbsd_collect_regset_section_cb): Delete.
3435 (fbsd_collect_thread_registers): Delete.
3436 (struct fbsd_corefile_thread_data): Delete.
3437 (fbsd_corefile_thread): Delete.
3438 (fbsd_make_corefile_notes): Call
3439 gcore_elf_build_thread_register_notes instead of the now deleted
3441 * gcore-elf.c: New file, the content was moved here from
3442 linux-tdep.c, functions were renamed and given minor cleanup.
3443 * gcore-elf.h: New file.
3444 * gcore.c (gcore_find_signalled_thread): Moved here from
3445 linux-tdep.c and given a new name. Minor cleanups.
3446 * gcore.h (gcore_find_signalled_thread): Declare.
3447 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3448 (struct linux_collect_regset_section_cb_data): Delete.
3449 (linux_collect_regset_section_cb): Delete.
3450 (linux_collect_thread_registers): Delete.
3451 (linux_corefile_thread): Call
3452 gcore_elf_build_thread_register_notes.
3453 (find_signalled_thread): Delete.
3454 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3456 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3459 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3460 process_stratum_target parameter,
3461 sparc_store_inferior_registers): update callers.
3462 * sparc-nat.c (sparc_fetch_inferior_registers,
3463 sparc_store_inferior_registers): Add process_stratum_target
3464 parameter. Switch current thread before calling
3465 sparc_supply_gregset / sparc_collect_rwindow.
3466 (sparc_store_inferior_registers): Likewise.
3467 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3468 (sparc32obsd_collect_uthread): Likewise.
3469 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3471 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3472 sparc64obsd_supply_uthread): Add assertion.
3474 2021-03-04 Tom Tromey <tromey@adacore.com>
3476 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3477 (aux_add_nonlocal_symbols): Update.
3478 (ada_add_block_symbols): Change "found_sym" to bool.
3480 2021-03-03 Tom Tromey <tromey@adacore.com>
3482 * ada-lang.c (ada_resolve_function): Update comment.
3483 (is_nonfunction, add_symbols_from_enclosing_procs)
3484 (remove_extra_symbols): Likewise.
3485 (struct match_data): Add constructor, initializers.
3486 (add_nonlocal_symbols): Remove memset.
3487 (aux_add_nonlocal_symbols): Update comment.
3488 (ada_add_block_renamings, add_nonlocal_symbols)
3489 (ada_add_all_symbols): Likewise.
3490 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3492 2021-03-02 Tom Tromey <tromey@adacore.com>
3494 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3495 (cast_to_gnat_encoded_fixed_point_type): Remove.
3496 (ada_value_cast, ada_evaluate_subexp): Update.
3497 (gnat_encoded_fixed_point_type_info)
3498 (ada_is_gnat_encoded_fixed_point_type)
3499 (gnat_encoded_fixed_point_delta)
3500 (gnat_encoded_fixed_point_scaling_factor): Remove.
3501 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3502 (gnat_encoded_fixed_point_delta)
3503 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3504 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3505 (ada_print_type): Update.
3506 * ada-valprint.c (ada_value_print_num): Update.
3507 * dwarf2/read.c (ada_get_gnat_encoded_number)
3508 (ada_get_gnat_encoded_ratio): New functions.
3509 (finish_fixed_point_type): Use them. Add parameters.
3510 (GNAT_FIXED_POINT_SUFFIX): New define.
3511 (gnat_encoded_fixed_point_type_info): New function.
3512 (read_base_type): Handle gnat encodings.
3514 2021-03-02 Tom Tromey <tromey@adacore.com>
3516 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3517 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3519 (GROW_VECT): Remove.
3520 (grow_vect): Remove.
3522 2021-03-02 Tom Tromey <tromey@adacore.com>
3524 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3525 * ada-lang.c (resolve_subexp): Update.
3526 (ada_resolve_function): Accept a vector.
3527 (is_nonfunction, add_defn_to_vec)
3528 (add_symbols_from_enclosing_procs): Likewise.
3529 (num_defns_collected, defns_collected): Remove.
3530 (remove_extra_symbols): Return a vector.
3531 (remove_irrelevant_renamings): Return void.
3532 (ada_add_local_symbols): Accept a vector.
3533 (struct match_data) <obstackp>: Remove.
3534 <resultp>: New member.
3535 (aux_add_nonlocal_symbols): Update.
3536 (ada_add_block_renamings, add_nonlocal_symbols)
3537 (ada_add_all_symbols): Accept a vector.
3538 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3540 (ada_lookup_symbol): Update.
3541 (ada_add_block_symbols): Accept a vector.
3542 (get_var_value, iterate_over_symbols): Update.
3543 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3546 2021-03-02 Tom Tromey <tromey@adacore.com>
3548 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3550 2021-03-02 Tom Tromey <tromey@adacore.com>
3552 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3555 (ada_pspace_data): Remove destructor.
3556 <sym_cache>: Now a unique_ptr.
3557 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3558 (ada_get_symbol_cache): Use 'new'.
3559 (ada_clear_symbol_cache): Rewrite.
3561 2021-03-02 Tom Tromey <tromey@adacore.com>
3563 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3566 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
3569 * source.c (add_path): Skip empty dirnames.
3571 2021-02-25 Kevin Buettner <kevinb@redhat.com>
3573 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3574 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3576 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3579 * target.c (target_mourn_inferior): Only compare pids in
3580 target_mourn_inferior.
3582 2021-02-25 Jan Matyas <jmatyas@codasip.com>
3585 * remote.c (remote_target::start_remote): Ensure the single
3586 thread, automatically added for remote targets without the
3587 concept of threading, is initially in set to the "resumed"
3589 * remote.c (remote_target::add_current_inferior_and_thread):
3590 Add return value - return the main thread.
3592 2021-02-25 Jan Vrany <jan.vrany@labware.com>
3594 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3595 (mi_tsv_created): Likewise.
3596 (mi_tsv_deleted): Likewise.
3598 2021-02-25 Tom de Vries <tdevries@suse.de>
3601 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3602 section_kind for &dwo_file->sections.info.
3604 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3607 * f-lang.c (fortran_argument_convert): Delete declaration.
3608 (fortran_prepare_argument): New function.
3609 (evaluate_subexp_f): Move logic to new function
3610 fortran_prepare_argument.
3612 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3614 * f-exp.y (f77_keywords): Add 'associated'.
3615 * f-lang.c (fortran_associated): New function.
3616 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3617 (operator_length_f): Likewise.
3618 (print_unop_or_binop_subexp_f): New function.
3619 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3620 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3621 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3622 (operator_check_f): Likewise.
3623 * std-operator.def: Add FORTRAN_ASSOCIATED.
3625 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3627 * f-exp.y (fortran_operators): Add ".xor.".
3629 2021-02-24 Tom de Vries <tdevries@suse.de>
3632 * dwarf2/attribute.c (attribute::form_is_signed): New function
3634 * dwarf2/attribute.h (attribute::as_signed): ... here.
3635 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3636 (attribute::form_is_signed): Declare.
3637 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3638 for DW_AT_decl_file.
3640 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3642 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3643 order for <sys/ptrace.h> and <asm/ptrace.h>.
3645 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3647 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3650 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3652 * exec.c (set_section_command): Move variable declarations into
3653 the function body, and use std::string instead of a fixed size
3656 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3658 * exec.c (exec_target::get_section_table): Delete member function.
3659 (section_table_read_available_memory): Use current_top_target, not
3660 just the exec_ops target.
3661 * target-delegates.c: Regenerate.
3662 * target.c (default_get_section_table): New function.
3663 * target.h (target_ops::get_section_table): Change default
3664 behaviour to call default_get_section_table.
3665 (default_get_section_table): Declare.
3667 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3669 * exec.c (exec_target::close): Call new clear_target_sections
3671 (program_space::add_target_sections): Update name of member
3673 (program_space::add_target_sections): Update name of member
3675 (program_space::remove_target_sections): Likewise.
3676 (exec_one_fork): Use new target_sections member function.
3677 (exec_target::get_section_table): Likewise.
3678 (exec_target::files_info): Likewise.
3679 (set_section_command): Likewise.
3680 (exec_set_section_address): Likewise.
3681 (exec_target::has_memory): Use new target_sections member
3683 * progspace.h (program_space::clear_target_sections): New member
3685 (program_space::target_sections): Rename member variable to
3686 m_target_sections, replace with a new member function.
3687 (program_space::m_target_sections): New member variable.
3688 * solib-dsbt.c (scan_dyntag): Use new member function.
3689 * solib-svr4.c (scan_dyntag): Likewise.
3691 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3693 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3695 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3696 (section_table_read_available_memory): Make local const.
3697 (exec_target::xfer_partial): Make local const.
3698 (print_section_info): Make parameter const.
3699 * gdb/exec.h (print_section_info): Likewise.
3700 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3702 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3704 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3706 * gdb/s390-tdep.c (s390_load): Likewise.
3707 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3708 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3709 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3711 (target_debug_print_const_target_section_table_p): ...this.
3712 * gdb/target-delegates.c: Regenerate.
3713 * gdb/target.c (target_get_section_table): Make return type const.
3714 (target_section_by_addr): Likewise. Also make some locals const.
3715 (memory_xfer_partial_1): Make some locals const.
3716 * gdb/target.h (struct target_ops) <get_section_table>: Make
3718 (target_section_by_addr): Likewise.
3719 (target_get_section_table): Likewise.
3721 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3723 * NEWS: Mention new 'maint info target-sections' command.
3724 * maint.c (maintenance_info_target_sections): New function.
3725 (_initialize_maint_cmds): Register new command.
3727 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3729 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3730 (riscv_features_from_bfd): ...this. Change parameter type to
3731 'bfd*', and update as required.
3732 (riscv_find_default_target_description): Update call to
3733 riscv_features_from_bfd. Select a default xlen based on
3735 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3737 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3739 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3740 dynamic types in UNOP_IND.
3742 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3745 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3747 (~dwarf2_queue_guard): Clear queue.
3748 (queue_comp_unit): Assert that queue is
3750 (process_queue): Adjust.
3751 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3753 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3756 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3757 to decide whether or not to enqueue it for expansion.
3758 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3759 after calling maybe_queue_comp_unit.
3761 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3763 * linux-nat.c (linux_nat_filter_event): Return void.
3765 2021-02-22 Tom Tromey <tromey@adacore.com>
3767 * solib-svr4.c (enable_break): Update.
3768 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3770 (target_bfd_reopen): Change parameter type.
3771 * bfd-target.h (target_bfd_reopen): Change parameter type.
3773 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3775 * thread.c (add_thread_silent): Add assert.
3776 (find_thread_ptid): Add assert.
3778 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3781 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3782 (target_unpush_up): Likewise.
3783 * procfs.c (procfs_target::attach): Push target early. Use
3784 target_unpush_up to unpush target in case of error.
3785 * target.h (struct target_unpusher): Move here.
3786 (target_unpush_up): Likewise.
3788 2021-02-19 Kevin Buettner <kevinb@redhat.com>
3790 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3791 (which in turn includes <gnulib/config.h>) before include
3794 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
3797 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3798 (decode_j_type_insn): Likewise.
3799 (decode_cj_type_insn): Likewise.
3800 (decode_b_type_insn): Likewise.
3803 2021-02-18 Tom Tromey <tom@tromey.com>
3805 * expression.h (struct expression) <evaluate>: Declare method.
3806 * eval.c (evaluate_subexp): Simplify.
3807 (expression::evaluate): New method.
3808 (evaluate_expression, evaluate_type): Use expression::evaluate.
3810 2021-02-17 Kevin Buettner <kevinb@redhat.com>
3812 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3814 (ada_lookup_name_info): Likewise.
3816 2021-02-13 Mike Frysinger <vapier@gentoo.org>
3818 * aclocal.m4: Regenerate.
3820 2021-02-12 Tom de Vries <tdevries@suse.de>
3823 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3824 (lin_thread_signals): New static var.
3825 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3827 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3828 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3830 * linux-thread-db.c (check_thread_signals): Use
3831 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3833 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3835 * f-exp.y (f77_keywords): Add allocated.
3836 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3837 (operator_length_f): Likewise.
3838 (print_subexp_f): Likewise.
3839 (dump_subexp_body_f): Likewise.
3840 (operator_check_f): Likewise.
3841 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3843 2021-02-11 Tom de Vries <tdevries@suse.de>
3846 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3847 Return true for DW_FORM_strx.
3849 2021-02-11 Tom Tromey <tromey@adacore.com>
3852 * parse.c (write_exp_symbol_reference): Write sym.block.
3854 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3856 * NEWS: Mention changes to 'maint info sections'.
3857 * maint.c (match_substring): Return a bool, fix whitespace issue.
3858 (struct single_bfd_flag_info): New struct.
3859 (bfd_flag_info): New static global.
3860 (match_bfd_flags): Return a bool, use bfd_flag_info.
3861 (print_bfd_flags): Use bfd_flag_info.
3862 (maint_print_section_info): Delete trailing whitespace.
3863 (struct maint_info_sections_opts): New struct.
3864 (maint_info_sections_option_defs): New static global.
3865 (maint_info_sections_completer): New function.
3866 (maintenance_info_sections): Use option parsing mechanism.
3867 (_initialize_maint_cmds): Update command help text for 'maint info
3868 sections' and register a command completer.
3870 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3872 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3873 functionality merged into...
3874 (maint_print_all_sections): ...this new function.
3875 (maintenance_info_sections): Make use of maint_print_all_sections,
3876 allow all objects to be printed even where there's no executable.
3878 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3880 * breakpoint.c (resolve_sal_pc): Make use of
3881 bound_minimal_symbol::obj_section.
3882 * maint.c (maintenance_translate_address): Likewise.
3883 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3884 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3886 * printcmd.c (info_address_command): Make use of
3887 bound_minimal_symbol::obj_section.
3889 2021-02-11 Alan Modra <amodra@gmail.com>
3891 * arm-symbian-tdep.c: Delete.
3892 * NEWS: Mention arm-symbian removal.
3893 * Makefile.in: Remove arm-symbian-tdep entries.
3894 * configure.tgt: Remove arm*-*-symbianelf*.
3895 * doc/gdb.texinfo: Remove mention of SymbianOS.
3896 * osabi.c (gdb_osabi_names): Remove "Symbian".
3897 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3898 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3899 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3901 * testsuite/gdb.base/dup-sect.exp: Likewise.
3902 * testsuite/gdb.base/long_long.exp: Likewise.
3903 * testsuite/gdb.base/solib-weak.exp: Likewise.
3904 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3905 * testsuite/gdb.python/py-section-script.exp: Likewise.
3906 * testsuite/lib/dwarf.exp: Likewise.
3907 * testsuite/lib/gdb.exp: Likewise.
3909 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3911 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3912 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3913 (one_or_two_args): New pattern.
3914 (f77_keywords): Add lbound and ubound.
3915 * f-lang.c (fortran_bounds_all_dims): New function.
3916 (fortran_bounds_for_dimension): New function.
3917 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3918 (operator_length_f): Likewise.
3919 (print_subexp_f): Likewise.
3920 (dump_subexp_body_f): Likewise.
3921 (operator_check_f): Likewise.
3922 * std-operator.def (FORTRAN_LBOUND): Define.
3923 (FORTRAN_UBOUND): Define.
3925 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3927 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3928 and set_section_index member functions where appropriate.
3929 * coffread.c (coff_symtab_read): Likewise.
3930 (process_coff_symbol): Likewise.
3931 * ctfread.c (set_symbol_address): Likewise.
3932 * dwarf2/read.c (add_partial_symbol): Likewise.
3933 (var_decode_location): Likewise.
3934 * language.c: Likewise.
3935 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3936 (compact_minimal_symbols): Likewise.
3937 (minimal_symbol_upper_bound): Likewise.
3938 * objfiles.c (relocate_one_symbol): Likewise.
3939 * psympriv.h (partial_symbol::obj_section): Likewise.
3940 (partial_symbol::address): Likewise.
3941 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3942 * stabsread.c (scan_file_globals): Likewise.
3943 * symmisc.c (dump_msymbols): Likewise.
3944 * symtab.c (general_symbol_info::obj_section): Likewise.
3945 (fixup_section): Likewise.
3946 (get_msymbol_address): Likewise.
3947 * symtab.h (general_symbol_info::section): Rename to...
3948 (general_symbol_info::m_section): ...this.
3949 (general_symbol_info::set_section_index): New member function.
3950 (general_symbol_info::section_index): Likewise.
3951 (SYMBOL_SECTION): Delete.
3952 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3953 set_section_index member functions where appropriate.
3954 (MSYMBOL_SECTION): Delete.
3955 (symbol::symbol): Update to initialize 'm_section'.
3956 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3957 (process_xcoff_symbol): Likewise.
3959 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3961 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3962 MSYMBOL_OBJ_SECTION.
3963 * findvar.c (language_defn::read_var_value): Likewise.
3964 * infcmd.c (jump_command): Likewise.
3965 * linespec.c (minsym_found): Likewise.
3966 * maint.c (maintenance_translate_address): Likewise.
3967 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3968 (minimal_symbol_upper_bound): Likewise.
3969 * parse.c (find_minsym_type_and_address): Likewise.
3970 (operator_check_standard): Likewise.
3971 * printcmd.c (info_address_command): Likewise.
3972 * symmisc.c (dump_msymbols): Likewise.
3973 (print_symbol): Likewise.
3974 * symtab.c (general_symbol_info::obj_section): Define new
3976 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3977 (find_pc_sect_compunit_symtab): Likewise.
3978 (find_function_start_sal): Likewise.
3979 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3980 MSYMBOL_OBJ_SECTION.
3981 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3983 (SYMBOL_OBJ_SECTION): Delete.
3984 (MSYMBOL_OBJ_SECTION): Delete.
3986 2021-02-09 Tom Tromey <tom@tromey.com>
3988 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3990 2021-02-09 Tom de Vries <tdevries@suse.de>
3993 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3994 construct an array type. Add assert to ensure that element_type is
3997 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3999 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4000 (gcore_collect_regset_section_cb): Delete.
4001 (gcore_collect_thread_registers): Delete.
4002 (gcore_build_thread_register_notes): Delete.
4003 (gcore_find_signalled_thread): Delete.
4004 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4005 'gdbarch' and 'thread_info' declarations.
4006 (gcore_build_thread_register_notes): Delete declaration.
4007 (gcore_find_signalled_thread): Likewise.
4008 * fbsd-tdep.c: Remove 'gcore.h' include.
4009 (struct fbsd_collect_regset_section_cb_data): New struct.
4010 (fbsd_collect_regset_section_cb): New function.
4011 (fbsd_collect_thread_registers): New function.
4012 (struct fbsd_corefile_thread_data): New struct.
4013 (fbsd_corefile_thread): New function.
4014 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4015 * linux-tdep.c: Remove 'gcore.h' include.
4016 (struct linux_collect_regset_section_cb_data): New struct.
4017 (linux_collect_regset_section_cb): New function.
4018 (linux_collect_thread_registers): New function.
4019 (linux_corefile_thread): Call Linux specific code.
4020 (find_signalled_thread): New function.
4021 (linux_make_corefile_notes): Call find_signalled_thread.
4023 2021-02-09 Tom Tromey <tromey@adacore.com>
4025 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4027 * value.c (value_contents_copy_raw): Now static.
4028 * value.h (value_contents_copy_raw): Don't declare.
4030 2021-02-09 Tom Tromey <tromey@adacore.com>
4032 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4035 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4038 * arc-linux-tdep.c (handle_atomic_sequence): New.
4039 (arc_linux_software_single_step): Call handle_atomic_sequence().
4041 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4043 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4045 (REQUIRE_WINDOW): Call is_valid member function.
4046 (REQUIRE_WINDOW_FOR_SETTER): New define.
4047 (gdbpy_tui_is_valid): Call is_valid member function.
4048 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4049 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4051 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4052 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4055 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4057 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4058 for the title is not nullptr.
4060 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4062 * tui-layout.c (saved_tui_windows): Delete.
4063 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4064 call new get_windows member function instead.
4065 (tui_get_window_by_name): Check in tui_windows.
4066 (tui_layout_window::apply): Don't add to tui_windows.
4067 * tui-layout.h (tui_layout_base::get_windows): New member function.
4068 (tui_layout_window::get_windows): Likewise.
4069 (tui_layout_split::get_windows): Likewise.
4071 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4073 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4074 of the window objects.
4076 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4078 * python/python.c (gdbpy_print_stack): Reformat an error message.
4080 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4082 * tui/tui-interp.c (tui_command_line_handler): New function.
4083 (tui_interp::resume): Register tui_command_line_handler as the
4085 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4087 (tui_getc_1): Delete handling of '\n' and '\r'.
4088 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4090 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4092 * tui/tui-regs.c (tui_data_window::display_registers_from):
4093 Mark invisible register sub windows.
4094 (tui_data_window::check_register_values): Ignore invisible
4095 register sub windows.
4097 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4099 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4100 n_spaces with a negative value.
4102 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4104 * tui/tui-regs.c (tui_data_window::display_registers_from):
4105 Add refresh_window call.
4107 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4109 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4111 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4113 * symmisc.c (std_in, std_out, std_err): Remove.
4114 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4116 2021-02-05 Tom de Vries <tdevries@suse.de>
4118 PR breakpoints/27330
4119 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4120 glibc object file has debug info.
4122 2021-02-05 Tom de Vries <tdevries@suse.de>
4125 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4127 2021-02-05 Tom de Vries <tdevries@suse.de>
4129 PR breakpoints/27313
4130 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4133 2021-02-05 Tom Tromey <tom@tromey.com>
4135 * compile/compile-c-support.c (get_compile_context)
4136 (c_get_compile_context, cplus_get_compile_context): Change return
4138 * language.c (language_defn::get_compile_instance): New method.
4139 * language.h (language_defn::get_compile_instance): Change return
4140 type. No longer inline.
4141 * c-lang.c (c_language::get_compile_instance): Change return type.
4142 (cplus_language::get_compile_instance): Change return type.
4143 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4145 * compile/compile.c (compile_to_object): Update.
4147 2021-02-05 Tom Tromey <tom@tromey.com>
4149 * parser-defs.h (write_exp_symbol_reference): Declare.
4150 * parse.c (write_exp_symbol_reference): New function.
4151 * p-exp.y (variable): Use write_exp_symbol_reference.
4152 * m2-exp.y (variable): Use write_exp_symbol_reference.
4153 * f-exp.y (variable): Use write_exp_symbol_reference.
4154 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4155 * c-exp.y (variable): Use write_exp_symbol_reference.
4157 2021-02-05 Tom de Vries <tdevries@suse.de>
4160 * valarith.c (complex_binop): Throw an error if complex type can't
4163 2021-02-05 Tom de Vries <tdevries@suse.de>
4166 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4169 2021-02-05 Tom de Vries <tdevries@suse.de>
4171 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4173 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4175 * configure.tgt (riscv*-*-*): Set gdb_sim.
4177 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4179 * target.c (target_is_non_stop_p): Return bool.
4180 * target.h (target_is_non_stop_p): Return bool.
4182 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4184 * record-full.c (record_full_async_inferior_event_handler):
4185 Don't clear async event handler.
4186 (record_full_base_target::wait): Clear async event handler at
4189 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4191 * record-btrace.c (record_btrace_handle_async_inferior_event):
4192 Don't clear async event handler.
4193 (record_btrace_target::wait): Clear async event handler at
4196 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4198 * remote.c (remote_target::wait): Clear async event handler at
4199 beginning, mark if needed at the end.
4200 (remote_async_inferior_event_handler): Don't set or clear async
4203 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4205 * async-event.h (async_event_handler_func): Add documentation.
4206 * async-event.c (check_async_event_handlers): Don't clear
4207 async_event_handler ready flag.
4208 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4210 * record-btrace.c (record_btrace_handle_async_inferior_event):
4212 * record-full.c (record_full_async_inferior_event_handler):
4214 * remote-notif.c (remote_async_get_pending_events_handler):
4216 * remote.c (remote_async_inferior_event_handler): Likewise.
4218 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4220 * infrun.c (handle_inferior_event): Move stop_soon variable to
4223 2021-02-03 Pedro Alves <pedro@palves.net>
4225 * infcmd.c (detach_command): Hold strong reference to target, and
4226 if all-stop on entry, restart threads on exit.
4227 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4228 (restart_stepped_thread): ... this new function. Also handle
4230 (restart_after_all_stop_detach): New function.
4231 * infrun.h (restart_after_all_stop_detach): Declare.
4233 2021-02-03 Pedro Alves <pedro@palves.net>
4235 * infrun.c (struct step_over_info): Initialize fields.
4236 (prepare_for_detach): Handle ongoing in-line step over.
4238 2021-02-03 Pedro Alves <pedro@palves.net>
4240 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4242 * remote.c (remote_target::remote_detach_1): ... and here ...
4243 * target.c (target_detach): ... instead of here.
4244 * target.h (target_ops::detach): Add comment.
4246 2021-02-03 Pedro Alves <pedro@palves.net>
4248 * infrun.c (struct wait_one_event): Move higher up.
4249 (prepare_for_detach): Abort in-progress displaced steps instead of
4250 letting them complete.
4251 (handle_one): If the inferior is detaching, don't add the thread
4252 back to the global step-over chain.
4253 (restart_threads): Don't restart threads if detaching.
4254 (handle_signal_stop): Remove inferior::detaching reference.
4256 2021-02-03 Pedro Alves <pedro@palves.net>
4258 * infrun.c (prepare_for_detach): Don't release scoped_restore
4261 2021-02-03 Pedro Alves <pedro@palves.net>
4263 * infrun.c (handle_one): New function, factored out from ...
4264 (stop_all_threads): ... here.
4266 2021-02-03 Pedro Alves <pedro@palves.net>
4268 * remote.c (remote_notif_stop_ack): Don't error out on
4269 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4270 (remote_target::discard_pending_stop_replies): Don't delete
4271 in-flight notification; instead, clear its contents.
4273 2021-02-03 Pedro Alves <pedro@palves.net>
4275 * remote.c (extended_remote_target::attach): Set target async in
4276 the target-non-stop path too.
4278 2021-02-03 Pedro Alves <pedro@palves.net>
4281 * infrun.c (handle_signal_stop): Move main context_switch call
4282 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4284 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4286 * NEWS (Changed commands): Add entry for the behavior change of
4287 the inferior command.
4288 * inferior.c (inferior_command): When no argument is given to the
4289 inferior command, display info about the currently selected
4292 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4294 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4296 (read_attribute_reprocess): Adjust.
4298 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4300 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4301 <gnu_ranges_base>: ... this...
4302 <rnglists_base>: ... and this.
4303 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4304 <gnu_ranges_base>: ... this...
4305 <rnglists_base>: ... and this.
4306 (read_cutu_die_from_dwo): Adjust
4307 (dwarf2_get_pc_bounds): Adjust
4308 (dwarf2_record_block_ranges): Adjust.
4309 (read_full_die_1): Adjust
4310 (partial_die_info::read): Adjust.
4311 (read_rnglist_index): Adjust.
4313 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4316 * dwarf2/read.c (read_loclists_rnglists_header): Add
4317 header_offset parameter and use it.
4318 (read_loclist_index): Read header of the current contribution,
4319 not the one at the beginning of the section.
4320 (read_rnglist_index): Likewise.
4322 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4325 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4326 requires_reprocessing flag.
4327 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4329 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4330 and DW_FORM_loclistx.
4331 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4332 instead of set_address for DW_FORM_loclistx and
4335 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4337 * dwarf2/read.c (read_loclist_index): Remove bound check for
4339 (read_rnglist_index): Likewise.
4341 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4343 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4346 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4348 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4350 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4352 * dwarf2/read.c (read_loclist_index): Change complaints into
4355 2021-02-02 Tom de Vries <tdevries@suse.de>
4358 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4361 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4363 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4364 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4365 here from linux-tdep.c and given a new name. Minor cleanups.
4366 (gcore_collect_regset_section_cb): Likewise.
4367 (gcore_collect_thread_registers): Likewise.
4368 (gcore_build_thread_register_notes): Likewise.
4369 (gcore_find_signalled_thread): Likewise.
4370 * gcore.h (gcore_build_thread_register_notes): Declare.
4371 (gcore_find_signalled_thread): Declare.
4372 * fbsd-tdep.c: Add 'gcore.h' include.
4373 (struct fbsd_collect_regset_section_cb_data): Delete.
4374 (fbsd_collect_regset_section_cb): Delete.
4375 (fbsd_collect_thread_registers): Delete.
4376 (struct fbsd_corefile_thread_data): Delete.
4377 (fbsd_corefile_thread): Delete.
4378 (fbsd_make_corefile_notes): Call
4379 gcore_build_thread_register_notes instead of the now deleted
4381 * linux-tdep.c: Add 'gcore.h' include.
4382 (struct linux_collect_regset_section_cb_data): Delete.
4383 (linux_collect_regset_section_cb): Delete.
4384 (linux_collect_thread_registers): Delete.
4385 (linux_corefile_thread): Call
4386 gcore_build_thread_register_notes.
4387 (find_signalled_thread): Delete.
4388 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4390 2021-01-29 Tom de Vries <tdevries@suse.de>
4392 PR breakpoints/26063
4393 * infrun.c (process_event_stop_test): Reset
4394 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4397 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4399 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4400 assert. Extend the header comment.
4402 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4404 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4405 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4406 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4407 (tui_locator_win_info_ptr): Delete declaration.
4408 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4409 (tui_disasm_window::set_contents): Fetch state from tui_location
4411 (tui_get_begin_asm_address): Likewise.
4412 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4414 (get_locator_window): Delete.
4415 (initialize_known_windows): Treat locator window just like all the
4417 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4418 (tui_source_window::set_contents): Fetch state from tui_location
4420 (tui_source_window::showing_source_p): Likewise.
4421 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4423 (tui_locator_win_info_ptr): Delete.
4424 (tui_locator_window::make_status_line): Fetch state from
4425 tui_location global.
4426 (tui_locator_window::rerender): Remove check of 'handle',
4427 reindent function body.
4428 (tui_locator_window::set_locator_fullname): Delete.
4429 (tui_locator_window::set_locator_info): Delete.
4430 (tui_update_locator_fullname): Delete.
4431 (tui_show_frame_info): Likewise.
4432 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4433 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4434 tui/tui-location.h and renamed to
4435 tui_location_tracker::set_location.
4436 (tui_locator_window::set_locator_fullname): Moved to
4437 tui/tui-location.h and renamed to
4438 tui_location_tracker::set_fullname.
4439 (tui_locator_window::full_name): Delete.
4440 (tui_locator_window::proc_name): Delete.
4441 (tui_locator_window::line_no): Delete.
4442 (tui_locator_window::addr): Delete.
4443 (tui_locator_window::gdbarch): Delete.
4444 (tui_update_locator_fullname): Delete declaration.
4445 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4447 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4448 (tui_display_main): Call function on tui_location directly.
4449 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4450 * tui/tui-location.c: New file.
4451 * tui/tui-location.h: New file.
4453 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4455 * gdbtypes.h (get_type_arch): Rename to...
4456 (struct type) <arch>: ... this, update all users.
4458 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4460 * gdbtypes.h (struct type) <arch>: Rename to...
4461 <arch_owner>: ... this, update all users.
4462 <objfile>: Rename to...
4463 <objfile_owner>: ... this, update all users.
4465 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4467 * gdbcmd.h (execute_command_to_string): Update comment.
4468 * top.c (execute_command_to_string): Update header comment.
4470 2021-01-28 Tom de Vries <tdevries@suse.de>
4472 PR breakpoints/27205
4473 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4474 (create_longjmp_master_breakpoint_names): New function, factored out
4476 (create_longjmp_master_breakpoint): ... here. Only try to install
4477 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4478 breakpoint in libc.so failed.
4480 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4483 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4484 unique_ptr is released when the wrapped pointer is kept for later
4487 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4489 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4490 BLR and BR instructions.
4491 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4492 (enum aarch64_masks): New.
4494 2021-01-26 Tom Tromey <tromey@adacore.com>
4496 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4497 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4498 (windows_init_thread_list, windows_nat::handle_load_dll)
4499 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4500 (windows_nat_target::resume)
4501 (windows_nat_target::get_windows_debug_event)
4502 (windows_nat_target::interrupt, windows_xfer_memory)
4503 (windows_nat_target::close): Update.
4504 * nat/windows-nat.c (DEBUG_EVENTS): Use
4505 debug_prefixed_printf_cond.
4506 (matching_pending_stop, fetch_pending_stop)
4507 (continue_last_debug_event): Update.
4509 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4511 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4512 elfcore_write_file_note.
4514 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
4516 * arc-tdep.c (arc_add_reggroups): New function.
4517 (arc_gdbarch_init): Call arc_add_reggroups.
4519 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
4521 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4523 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4524 Simon Marchi <simon.marchi@polymtl.ca>
4525 Tom de Vries <tdevries@suse.de>
4527 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4530 2021-01-25 Tom Tromey <tromey@adacore.com>
4532 * dwarf2/read.c (get_mpz): New function.
4533 (get_dwarf2_rational_constant): Use it.
4535 2021-01-25 Tom Tromey <tromey@adacore.com>
4537 * ada-lang.c (resolve_subexp): Handle array context.
4539 2021-01-23 Tom Tromey <tom@tromey.com>
4542 * compile/compile-loc2c.c (note_register): New function.
4543 (pushf_register_address, pushf_register): Use it.
4545 2021-01-23 Tom Tromey <tom@tromey.com>
4547 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4548 Change type of "registers_used".
4549 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4550 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4551 (locexpr_generate_c_location, loclist_generate_c_location): Change
4552 type of "registers_used".
4553 * compile/compile.h (compile_dwarf_expr_to_c)
4554 (compile_dwarf_bounds_to_c): Update.
4555 * compile/compile-loc2c.c (pushf_register_address)
4556 (pushf_register, do_compile_dwarf_expr_to_c)
4557 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4558 of "registers_used".
4559 * compile/compile-c.h (generate_c_for_variable_locations):
4561 * compile/compile-c-symbols.c (generate_vla_size)
4562 (generate_c_for_for_one_variable): Change type of
4564 (generate_c_for_variable_locations): Return std::vector.
4565 * compile/compile-c-support.c (generate_register_struct): Change
4566 type of "registers_used".
4569 2021-01-23 Tom Tromey <tom@tromey.com>
4571 * compile/compile-internal.h (class compile_instance)
4572 <set_arguments>: Change return type.
4573 * compile/compile.c (compile_to_object): Remove call to reset.
4574 (compile_instance::set_arguments): Change return type.
4576 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4578 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4579 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4581 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4583 * Makefile.in (SELFTESTS_SRCS): Add
4584 unittests/gdb_tilde_expand-selftests.c.
4585 * unittests/gdb_tilde_expand-selftests.c: New file.
4587 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4590 * NEWS: Mention new command.
4591 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4592 (version_style): Define.
4593 (cli_style_option::cli_style_option): Add intensity parameter, and
4595 (_initialize_cli_style): Register version style set/show commands.
4596 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4597 (version_style): Declare.
4598 * top.c (print_gdb_version): Use version_stype, and styled_string
4599 to print the GDB version string.
4601 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4603 * utils.c (emit_style_escape): Only emit an escape sequence if the
4604 requested style is different than the current applied style.
4605 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4606 current applied_style.
4607 (fputs_styled): Remove is_default check.
4608 (fputs_styled_unfiltered): Likewise.
4609 (vfprintf_styled_no_gdbfmt): Likewise.
4611 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4613 * remote.h (remote_debug_printf): New.
4614 (remote_debug_printf_nofunc): New.
4615 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4616 * remote.c: Use above macros throughout file.
4618 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4620 * remote.h (remote_debug): Change to bool.
4621 * remote.c (remote_debug): Change to bool.
4622 (_initialize_remote): Adjust.
4624 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4626 * target.h (remote_debug): Move to...
4627 * remote.h (remote_debug): ... here.
4628 * top.c (remote_debug): Move to...
4629 * remote.c (remote_debug): ... here.
4630 * remote-sim.c: Include remote.h.
4632 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4634 * cli/cli-cmds.c (show_remote_debug): Remove.
4635 (show_remote_timeout): Remove.
4636 (_initialize_cli_cmds): Don't register commands.
4637 * remote.c (show_remote_debug): Move here.
4638 (show_remote_timeout): Move here.
4639 (_initialize_remote): Register commands.
4641 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4643 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4644 type::objfile method instead.
4646 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4648 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4649 use the type::is_objfile_owned method.
4651 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
4653 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4654 (TYPE_OWNER): Remove.
4655 (TYPE_OBJFILE): Adjust.
4656 (struct main_type) <flag_objfile_owned>: Rename to...
4657 <m_flag_objfile_owned>: ... this.
4658 <owner>: Rename to...
4659 <m_owner>: ... this.
4660 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4662 (TYPE_ALLOC): Adjust.
4663 * gdbtypes.c (alloc_type): Adjust.
4664 (alloc_type_arch): Adjust.
4665 (alloc_type_copy): Adjust.
4666 (get_type_arch): Adjust.
4667 (smash_type): Adjust.
4668 (lookup_array_range_type): Adjust.
4669 (recursive_dump_type): Adjust.
4670 (copy_type_recursive): Adjust.
4671 * compile/compile-c-types.c (convert_func): Adjust.
4672 (convert_type_basic): Adjust.
4673 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4676 (language_arch_info::type_and_symbol::alloc_type_symbol):
4679 2021-01-21 Luis Machado <luis.machado@linaro.org>
4681 * coffread.c (enter_linenos): Passing string to complaint.
4682 * valops.c (value_assign): Make array view.
4684 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4686 * auto-load.h (debug_auto_load): Move here.
4687 (auto_load_debug_printf): New.
4688 * auto-load.c: Use auto_load_debug_printf.
4689 (debug_auto_load): Move to header.
4690 * linux-thread-db.c (try_thread_db_load): Use
4691 auto_load_debug_printf.
4692 * main.c (captured_main_1): Likewise.
4694 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4696 * f-valprint.c (f77_array_offset_tbl): Remove.
4698 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4700 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4702 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4704 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4707 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
4710 * python/py-breakpoint.c (bppy_get_location): Handle
4711 bp_hardware_breakpoint.
4712 (bppy_init): Likewise.
4713 (gdbpy_breakpoint_created): Likewise.
4715 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4717 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4719 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4721 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4722 (_initialize_gdb_bfd): Adjust.
4724 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4727 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4729 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4731 * dwarf2/read.c (follow_die_offset): Add logging.
4732 (dwarf2_per_objfile::age_comp_units): Add logging.
4734 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4736 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4737 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4738 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4739 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4740 * arm-tdep.c (struct frame_unwind): Make static.
4741 * auto-load.c (auto_load_safe_path_vec): Make static.
4742 * csky-tdep.c (csky_stub_unwind): Make static.
4743 * gdbarch.c (gdbarch_data_registry): Make static.
4744 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4745 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4746 * i386-tdep.c (i386_frame_setup_skip_insns,
4747 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4749 * infrun.c (observer_mode): Make static.
4750 * linux-nat.c (sigchld_action): Make static.
4751 * linux-thread-db.c (thread_db_list): Make static.
4752 * maint-test-options.c (maintenance_test_options_list):
4753 * mep-tdep.c (mep_csr_registers): Make static.
4754 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4755 (stats): Make static.
4756 * nat/linux-osdata.c (struct osdata_type): Make static.
4757 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4758 * progspace.c (last_program_space_num): Make static.
4759 * python/py-param.c (struct parm_constant): Remove struct type
4761 (parm_constants): Make static.
4762 * python/py-record-btrace.c (btpy_list_methods): Make static.
4763 * python/py-record.c (recpy_gap_type): Make static.
4764 * record.c (record_goto_cmdlist): Make static.
4765 * regcache.c (regcache_descr_handle): Make static.
4766 * registry.h (DEFINE_REGISTRY): Make definition static.
4767 * symmisc.c (std_in, std_out, std_err): Make static.
4768 * top.c (previous_saved_command_line): Make static.
4769 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4771 * unittests/command-def-selftests.c (nr_duplicates,
4772 nr_invalid_prefixcmd, lists): Make static.
4773 * unittests/observable-selftests.c (test_notification): Make
4775 * unittests/optional/assignment/1.cc (counter): Make static.
4776 * unittests/optional/assignment/2.cc (counter): Make static.
4777 * unittests/optional/assignment/3.cc (counter): Make static.
4778 * unittests/optional/assignment/4.cc (counter): Make static.
4779 * unittests/optional/assignment/5.cc (counter): Make static.
4780 * unittests/optional/assignment/6.cc (counter): Make static.
4782 2021-01-20 Joel Sherrill <joel@rtems.org>
4785 * remote.c (struct remote_thread_info) <resume_state>: Rename
4787 <get_resume_state>: ... this.
4788 (remote_target::resume): Adjust.
4789 (remote_target::commit_resume): Adjust.
4790 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4792 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4793 Tom Tromey <tom@tromey.com>
4795 * stap-probe.c (stap_parse_single_operand): Handle '!'
4797 (stap_parse_argument_conditionally): Likewise.
4798 Skip spaces after processing open-parenthesis sub-expression.
4799 (stap_parse_argument_1): Skip spaces after call to
4800 stap_parse_argument_conditionally.
4801 Handle case when right-side expression is a parenthesized
4803 Skip spaces after call to stap_parse_argument_1.
4805 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4807 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4809 2021-01-19 Luis Machado <luis.machado@linaro.org>
4811 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4812 memory and save data.
4813 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4814 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4815 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4816 (trad_frame_value_bytes_p): Remove.
4817 (trad_frame_reset_saved_regs): Adjust documentation.
4818 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4819 constructor and reset the state of the registers.
4820 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4821 (trad_frame_value_bytes_p, trad_frame_set_value)
4822 (trad_frame_set_realreg, trad_frame_set_addr)
4823 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4824 (trad_frame_set_reg_realreg): Update to call member function.
4825 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4826 (trad_frame_get_prev_register): Likewise.
4828 * aarch64-tdep.c (aarch64_analyze_prologue)
4829 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4830 (aarch64_prologue_prev_register): Update to use member functions.
4831 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4832 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4833 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4834 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4835 (arm_make_epilogue_frame_cache): Likewise.
4836 * avr-tdep.c (avr_frame_unwind_cache)
4837 (avr_frame_prev_register): Likewise.
4838 * cris-tdep.c (cris_scan_prologue): Likewise.
4839 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4840 * frv-tdep.c (frv_analyze_prologue): Likewise.
4841 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4842 * lm32-tdep.c (lm32_frame_cache): Likewise.
4843 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4844 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4845 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4846 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4847 (reset_saved_regs): Adjust to set realreg.
4848 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4849 call member functions.
4850 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4851 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4852 (s390_backchain_frame_unwind_cache): Likewise.
4853 * score-tdep.c (score7_analyze_prologue)
4854 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4855 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4856 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4857 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4858 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4859 * tilegx-tdep.c (tilegx_analyze_prologue)
4860 (tilegx_frame_cache): Likewise.
4861 * v850-tdep.c (v850_frame_cache): Likewise.
4862 * vax-tdep.c (vax_frame_cache): Likewise.
4864 2021-01-19 Luis Machado <luis.machado@linaro.org>
4866 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4868 (put_frame_register_bytes): Likewise.
4869 Adjust documentation.
4870 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4871 (safe_frame_unwind_memory): Likewise.
4872 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4873 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4875 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4876 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4877 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4878 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4879 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4880 * dwarf2/loc.c (rw_pieced_value): Likewise.
4881 * hppa-tdep.c (hppa_frame_cache): Likewise.
4882 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4883 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4884 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4885 (i386_linux_rt_sigtramp_start): Likewise.
4886 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4887 * i386-tdep.c (i386_register_to_value): Likewise.
4888 * i387-tdep.c (i387_register_to_value): Likewise.
4889 * ia64-tdep.c (ia64_register_to_value): Likewise.
4890 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4891 (m32r_linux_rt_sigtramp_start): Likewise.
4892 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4893 * m68k-tdep.c (m68k_register_to_value): Likewise.
4894 * mips-tdep.c (mips_register_to_value)
4895 (mips_value_to_register): Likewise.
4896 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4897 (ppcfbsd_sigtramp_frame_cache): Likewise.
4898 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4899 (ppcobsd_sigtramp_frame_cache): Likewise.
4900 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4901 (rs6000_register_to_value): Likewise.
4902 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4903 * tramp-frame.c (tramp_frame_start): Likewise.
4904 * valops.c (value_assign): Likewise.
4906 2021-01-19 Luis Machado <luis.machado@linaro.org>
4908 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4910 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4911 instead of buffer and size.
4912 (trad_frame_set_reg_value_bytes): Likewise.
4913 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4914 (trad_frame_set_value_bytes): Likewise.
4916 2021-01-18 Mike Frysinger <vapier@gentoo.org>
4918 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4920 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
4922 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4923 (riscv_fbsd_gregset): Use riscv_supply_regset.
4924 (riscv_fbsd_fpregset): Likewise.
4925 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4926 (riscv_linux_fregset): Likewise.
4927 * riscv-tdep.c (riscv_supply_regset): Define new function.
4928 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4930 2021-01-18 Tom de Vries <tdevries@suse.de>
4933 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4935 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4938 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4940 * remote.c (class remote_target) <remote_hostio_send_command,
4941 remote_hostio_parse_result>: Constify parameter.
4942 (remote_hostio_parse_result): Likewise.
4943 (remote_target::remote_hostio_send_command): Adjust.
4944 (remote_target::remote_hostio_pread_vFile): Adjust.
4945 (remote_target::fileio_readlink): Adjust.
4946 (remote_target::fileio_fstat): Adjust.
4948 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4950 * remote.c (remote_target::start_remote): Move wait_status to
4953 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4955 * remote.c (class remote_target):
4956 <add_current_inferior_and_thread>: Constify parameter.
4957 (stop_reply_extract_thread): Likewise.
4958 (remote_target::get_current_thread): Likewise.
4959 (remote_target::add_current_inferior_and_thread): Likewise.
4961 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4963 * remote.c (class remote_target)
4964 <remote_unpack_thread_info_response,
4965 parse_threadlist_response>: Constify parameter and/or return
4966 value and or local variable.
4967 (stub_unpack_int): Likewise.
4968 (unpack_nibble): Likewise.
4969 (unpack_byte): Likewise.
4970 (unpack_int): Likewise.
4971 (unpack_string): Likewise.
4972 (unpack_threadid): Likewise.
4973 (remote_target::remote_unpack_thread_info_response): Likewise.
4974 (remote_target::parse_threadlist_response): Likewise.
4976 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
4978 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4980 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
4982 * MAINTAINERS (Write After Approval): Add myself.
4984 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4986 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4987 because is_trivially_default_constructible was first implemented with
4990 2021-01-14 Tom de Vries <tdevries@suse.de>
4992 PR breakpoints/27151
4993 * objfiles.h (in_plt_section): Handle .plt.sec.
4995 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4999 (remote_target::select_thread_for_ambiguous_stop_reply): New
5001 (remote_target::process_stop_reply): Call
5002 select_thread_for_ambiguous_stop_reply.
5004 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5006 * record-btrace.c (class record_btrace_target): Remove.
5007 (record_btrace_target::commit_resume): Remove.
5008 * record-full.c (class record_full_target): Remove.
5009 (record_full_target::commit_resume): Remove.
5011 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5013 * remote.c (enum class resume_state): New.
5014 (struct resumed_pending_vcont_info): New.
5015 (struct remote_thread_info) <resume_state, set_not_resumed,
5016 set_resumed_pending_vcont, resumed_pending_vcont_info,
5017 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5019 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5020 (remote_target::remote_add_thread): Adjust.
5021 (remote_target::process_initial_stop_replies): Adjust.
5022 (remote_target::resume): Adjust.
5023 (remote_target::commit_resume): Rely on state in
5024 remote_thread_info and not on tp->executing.
5025 (remote_target::process_stop_reply): Adjust.
5027 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5029 * arc-tdep.h (arc_debug_printf): New.
5030 * arc-tdep.c: Use arc_debug_printf.
5031 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5032 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5033 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5035 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5037 * arc-tdep.h (arc_debug): Change type to bool.
5038 * arc-tdep.c (arc_debug): Change type to bool.
5039 (arc_analyze_prologue): Adjust.
5040 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5041 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5043 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5045 * auto-load.c (auto_load_objfile_script_1): Use bool.
5046 (execute_script_contents): Use bool.
5048 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5050 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5052 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5054 * extension-priv.h (struct extension_language_script_ops)
5055 <auto_load_enabled>: Return bool.
5056 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5058 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5060 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5062 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5063 move comment to header.
5064 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5066 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5067 move comment to header.
5069 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5071 * auto-load.h (file_is_auto_load_safe): Change return type to
5072 bool, move comment here.
5073 * auto-load.c (file_is_auto_load_safe): Change return type and
5074 advice_printed to bool. Move comment to header.
5076 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5078 * jit.c (jit_debug_printf): New, use throughout file.
5080 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5082 * infrun.c (normal_stop): Fix indentation.
5084 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5086 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5088 * symfile.h: ... here.
5089 * symfile.c: Update doc.
5091 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5093 * target.h (baud_rate, serial_parity): Move declarations...
5094 * serial.h: ... here.
5095 * main.c: Include serial.h.
5096 * serial.c (baud_rate, serial_parity): Update doc.
5098 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5100 * top.c (pre_init_ui_hook): Remove.
5102 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5104 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5105 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5106 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5107 * features/aarch64-fpu.xml: Add bfloat16 type.
5109 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5111 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5113 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5115 * f-exp.y (dot_ops): Rename to...
5116 (fortran_operators): ...this. Add a header comment. Add symbol
5118 (yylex): Update to use fortran_operators not dot_ops. Remove
5119 special handling for '**', this is now included in
5122 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5124 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5125 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5126 * aarch64-tdep.c: Use aarch64_debug_printf.
5128 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5130 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5133 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5135 * jit.c (jit_debug): Change type to bool.
5136 (_initialize_jit): Adjust.
5138 2021-01-09 Tom Tromey <tom@tromey.com>
5141 * compile/compile.c (compile_to_object): Avoid crash when
5142 osabi_triplet_regexp returns NULL.
5144 2021-01-09 Tom Tromey <tom@tromey.com>
5146 * tracepoint.h (class collection_list) <append_exp>: Take a
5148 * tracepoint.c (collection_list::append_exp): Take a std::string.
5149 (encode_actions_1): Update.
5151 2021-01-08 Tom Tromey <tromey@adacore.com>
5153 * parse.c (parse_expression): Add void_context_p parameter. Use
5154 parse_exp_in_context.
5155 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5157 (print_command, call_command): Update.
5158 * expression.h (parse_expression): Add void_context_p parameter.
5160 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5162 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5163 for internalvar components that have a dynamic location.
5165 2021-01-08 Tom de Vries <tdevries@suse.de>
5168 * breakpoint.c (create_exception_master_breakpoint_probe)
5169 (create_exception_master_breakpoint_hook): Factor out
5171 (create_exception_master_breakpoint): ... here. Only try to install
5172 the master exception breakpoint in objfile.debug using the
5173 _Unwind_DebugHook method, if the install using probes in objfile
5176 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5178 * f-lang.c (fortran_value_subarray): Call value_from_component.
5180 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5182 * remote-sim.c: Include memory-map.h.
5183 (gdbsim_target): Define memory_map override.
5184 (gdbsim_target::memory_map): Define.
5186 2021-01-07 Tom Tromey <tromey@adacore.com>
5188 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5190 2021-01-07 Tom Tromey <tromey@adacore.com>
5192 * ada-lang.c (add_component_interval): Start loop using vector's
5195 2021-01-06 Tom Tromey <tromey@adacore.com>
5197 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5199 * valarith.c (fixed_point_binop): Handle multiplication
5200 and division specially.
5201 * valops.c (value_to_gdb_mpq): New function.
5202 (value_cast_to_fixed_point): Use it.
5204 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5206 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5207 Call wnoutrefresh instead of tui_win_info::refresh_window.
5209 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5211 * tui/tui-source.c (tui_source_window::show_line_number):
5212 Redraw second space after line number.
5214 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5217 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5218 Fix source pad size in prefresh.
5219 (tui_source_window_base::show_source_content): Grow source pad
5222 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5224 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5225 (bfin_frame_align): Use align_down.
5227 2021-01-04 Tom de Vries <tdevries@suse.de>
5229 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5230 terminators that do not terminate anything.
5232 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5234 * debug.c (debug_print_depth): New.
5235 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5236 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5237 * infrun.c (start_step_over): Use
5238 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5239 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5240 INFRUN_SCOPED_DEBUG_START_END.
5241 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5243 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5245 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5247 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5249 * utils.c (vfprintf_unfiltered): Print timestamp only when
5250 previous debug output ended with a newline.
5252 2021-01-04 Luis Machado <luis.machado@linaro.org>
5254 Update all users of trad_frame_saved_reg to use the new member
5257 Remote all struct keywords from declarations of trad_frame_saved_reg
5258 types, except on forward declarations.
5260 * aarch64-tdep.c: Update.
5261 * alpha-mdebug-tdep.c: Update.
5262 * alpha-tdep.c: Update.
5263 * arc-tdep.c: Update.
5264 * arm-tdep.c: Update.
5265 * avr-tdep.c: Update.
5266 * cris-tdep.c: Update.
5267 * csky-tdep.c: Update.
5268 * frv-tdep.c: Update.
5269 * hppa-linux-tdep.c: Update.
5270 * hppa-tdep.c: Update.
5271 * hppa-tdep.h: Update.
5272 * lm32-tdep.c: Update.
5273 * m32r-linux-tdep.c: Update.
5274 * m32r-tdep.c: Update.
5275 * m68hc11-tdep.c: Update.
5276 * mips-tdep.c: Update.
5277 * moxie-tdep.c: Update.
5278 * riscv-tdep.c: Update.
5279 * rs6000-tdep.c: Update.
5280 * s390-linux-tdep.c: Update.
5281 * s390-tdep.c: Update.
5282 * score-tdep.c: Update.
5283 * sparc-netbsd-tdep.c: Update.
5284 * sparc-sol2-tdep.c: Update.
5285 * sparc64-fbsd-tdep.c: Update.
5286 * sparc64-netbsd-tdep.c: Update.
5287 * sparc64-obsd-tdep.c: Update.
5288 * sparc64-sol2-tdep.c: Update.
5289 * tilegx-tdep.c: Update.
5290 * v850-tdep.c: Update.
5291 * vax-tdep.c: Update.
5293 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5294 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5296 * trad-frame.c: Update.
5297 Remove TF_REG_* enum.
5298 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5299 a trivially-constructible struct.
5300 (trad_frame_reset_saved_regs): Adjust to use member function.
5301 (trad_frame_value_p): Likewise.
5302 (trad_frame_addr_p): Likewise.
5303 (trad_frame_realreg_p): Likewise.
5304 (trad_frame_value_bytes_p): Likewise.
5305 (trad_frame_set_value): Likewise.
5306 (trad_frame_set_realreg): Likewise.
5307 (trad_frame_set_addr): Likewise.
5308 (trad_frame_set_unknown): Likewise.
5309 (trad_frame_set_value_bytes): Likewise.
5310 (trad_frame_get_prev_register): Likewise.
5311 * trad-frame.h: Update.
5312 (trad_frame_saved_reg_kind): New enum.
5313 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5314 <m_kind, m_reg>: New member fields.
5315 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5316 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5317 <is_addr, is_unknown, is_value_bytes>: New member functions.
5319 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5321 * target-float.c: Fix typos.
5323 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5325 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5327 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5329 * gdbarch.sh: Update copyright year range.
5331 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5333 Update copyright year range in copyright header of all GDB files.
5335 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5337 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5338 to the list of directories to update.
5340 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5342 * top.c (print_gdb_version): Update copyright year.
5344 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5346 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5348 For older changes see ChangeLog-2020.
5354 version-control: never