1 2021-04-22 Tom Tromey <tom@tromey.com>
3 * c-typeprint.c (c_type_print_base_struct_union): Use
4 print_spaces_filtered_with_print_options.
6 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
9 * python/py-type.c (typy_range): Check that bounds are constant
10 before accessing them as such.
11 * guile/scm-type.c (gdbscm_type_range): Likewise.
13 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15 * Makefile.in (COMMON_SFILES): Remove continuations.c.
16 * inferior.c (inferior::add_continuation): New method, adapted
17 from 'add_inferior_continuation'.
18 (inferior::do_all_continuations): New method, adapted from
19 'do_all_inferior_continuations'.
20 (inferior::~inferior): Clear the list of continuations directly.
21 * inferior.h (class inferior) <continuations>: Rename into...
22 <m_continuations>: ...this and make private.
23 * continuations.c: Remove.
24 * continuations.h: Remove.
25 * event-top.c: Don't include "continuations.h".
27 Update the users below.
28 * inf-loop.c (inferior_event_handler)
29 * infcmd.c (attach_command)
30 (notice_new_inferior): Update.
32 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
34 * inferior.h (class inferior) <continuations>: Change the type
35 to be an std::list of std::function's.
36 Update the references and uses below.
37 * continuations.c (struct continuation): Delete.
38 (make_continuation): Delete.
39 (do_my_continuations_1): Delete.
40 (do_my_continuations): Delete.
41 (discard_my_continuations_1): Delete.
42 (discard_my_continuations): Delete.
43 (add_inferior_continuation): Update.
44 (do_all_inferior_continuations): Update.
45 (discard_all_inferior_continuations): Update.
46 * continuations.h (add_inferior_continuation): Update to take
47 an std::function as the parameter.
48 * infcmd.c (struct attach_command_continuation_args): Delete.
49 (attach_command_continuation): Delete.
50 (attach_command_continuation_free_args): Delete.
51 (attach_command): Update.
52 (notice_new_inferior): Update.
54 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
56 * continuations.h: Update the general comment.
57 * inferior.h (class inferior) <continuations>: Update the comment.
58 * interps.c: Do not include "continuations.h".
60 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
62 * continuations.h (do_all_inferior_continuations): Remove the 'err'
63 parameter. Update the references below.
64 * continuations.c (do_my_continuations_1)
66 (do_all_inferior_continuations): Update.
67 * inf-loop.c (inferior_event_handler): Update.
68 * infcmd.c (attach_command_continuation): Update.
70 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
72 * infcmd.c (attach_post_wait): Update the function comment.
74 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
76 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
77 Update the references below.
78 (struct attach_command_continuation_args)
79 (attach_command_continuation)
80 (attach_command_continuation_free_args)
82 (notice_new_inferior): Update to remove the reference to 'args'.
84 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
85 Tom de Vries <tdevries@suse.de>
88 * remote.c (remote_target_is_non_stop_p): New function.
89 * remote.h (remote_target_is_non_stop_p): Declare.
90 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
91 to check non-stopness using notif_state->remote rather current target.
93 2021-04-22 Tom Tromey <tom@tromey.com>
95 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
96 (struct typed_val_int) <val>: Now ULONGEST.
97 (rust_parser::parse_array_type): Remove negative check.
98 (rust_lex_int_test): Change 'value' to ULONGEST.
100 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
102 * arch-utils.c (default_addressable_memory_unit_size): Return a
103 value based on bfd's bits per byte.
105 2021-04-21 Tom Tromey <tom@tromey.com>
107 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
109 (struct dwarf2_per_cu_data): Rearrange.
110 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
112 (struct comp_unit_head): Rearrange.
113 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
115 2021-04-21 Tom de Vries <tdevries@suse.de>
118 * configure.ac: Remove --without-included-regex/--with-included-regex.
119 * config.in: Regenerate.
120 * configure: Regenerate.
121 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
123 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
125 * breakpoint.h (create_breakpoint): Add a new parameter,
127 * breakpoint.c (create_breakpoint): Use the 'force_condition'
128 argument when 'parse_extra' is false to check if the condition
129 is invalid at all of the breakpoint locations.
130 Update the users below.
136 (create_tracepoint_from_upload): Update.
137 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
138 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
139 * python/py-breakpoint.c (bppy_init): Update.
140 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
142 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
144 * breakpoint.c (print_one_breakpoint_location): Display "N" for
145 disabled-by-condition locations on MI-like output.
146 (breakpoint_1): Do not display the disabled-by-condition footnote
147 if the output is MI-like.
149 2021-04-21 Frederic Cambus <fred@statdns.com>
151 * syscalls/update-netbsd.sh: Fix script name display in usage, and
152 update year range in generated copyright notices.
154 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
156 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
159 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
161 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
163 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
165 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
166 (producer_is_icc): Replace use of std::regex with gdb's
169 2021-04-17 Tom Tromey <tom@tromey.com>
172 * dwarf2/read.c (class offset_view): New.
173 (struct symbol_table_slot): Remove.
174 (struct mapped_index) <symbol_table, constant_pool>: Change type.
175 <symbol_name_index, symbol_vec_index>: New methods.
176 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
178 (read_gdb_index_from_buffer): Update.
179 (struct dw2_symtab_iterator) <vec>: Change type.
180 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
181 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
182 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
183 <append_array, append_offset>: New methods.
184 (write_hash_table, add_address_entry, write_gdbindex_1)
185 (write_debug_names): Update.
186 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
188 2021-04-17 Tom Tromey <tom@tromey.com>
190 * dwarf2/index-write.c (write_psymtabs_to_index): Check
193 2021-04-17 Tom Tromey <tom@tromey.com>
195 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
196 from map_matching_symbols. Change parameters.
197 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
198 Rename from map_matching_symbols. Change parameters.
199 * dwarf2/read.c (struct dwarf2_gdb_index)
200 <expand_matching_symbols>: Rename from map_matching_symbols.
202 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
203 Rename from map_matching_symbols. Change parameters.
204 (dwarf2_gdb_index::expand_matching_symbols): Rename from
205 dw2_map_matching_symbols. Change parameters.
206 (dwarf2_gdb_index::expand_matching_symbols): Remove old
208 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
209 map_matching_symbols. Change parameters.
210 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
211 from map_matching_symbols. Change parameters.
212 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
213 map_matching_symbols. Change parameters.
214 * ada-lang.c (map_matching_symbols): New function.
215 (add_nonlocal_symbols): Update.
217 2021-04-17 Tom Tromey <tom@tromey.com>
219 * quick-symbol.h (struct quick_symbol_functions)
220 <expand_symtabs_with_fullname>: Remove.
221 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
223 * psympriv.h (struct psymbol_functions)
224 <expand_symtabs_with_fullname>: Remove.
225 * dwarf2/read.c (struct dwarf2_base_index_functions)
226 <expand_symtabs_with_fullname>: Remove.
227 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
229 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
231 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
234 2021-04-17 Tom Tromey <tom@tromey.com>
236 * symfile-debug.c (objfile::expand_symtabs_for_function):
238 * quick-symbol.h (struct quick_symbol_functions)
239 <expand_symtabs_for_function>: Remove.
240 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
242 * psympriv.h (struct psymbol_functions)
243 <expand_symtabs_for_function>: Remove.
244 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
246 * dwarf2/read.c (struct dwarf2_gdb_index)
247 <expand_symtabs_for_function>: Remove.
248 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
250 (find_slot_in_mapped_hash): Remove.
251 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
252 (dw2_symtab_iter_init): Remove one overload.
253 (dwarf2_gdb_index::expand_symtabs_for_function)
254 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
256 2021-04-17 Tom Tromey <tom@tromey.com>
258 * symfile-debug.c (objfile::map_symtabs_matching_filename):
260 * quick-symbol.h (struct quick_symbol_functions)
261 <map_symtabs_matching_filename>: Remove.
262 * psymtab.c (partial_map_expand_apply)
263 (psymbol_functions::map_symtabs_matching_filename): Remove.
264 * psympriv.h (struct psymbol_functions)
265 <map_symtabs_matching_filename>: Remove.
266 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
268 * dwarf2/read.c (struct dwarf2_base_index_functions)
269 <map_symtabs_matching_filename>: Remove.
270 (dw2_map_expand_apply)
271 (dwarf2_base_index_functions::map_symtabs_matching_filename):
274 2021-04-17 Tom Tromey <tom@tromey.com>
276 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
277 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
279 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
280 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
281 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
282 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
284 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
285 (dwarf2_gdb_index::lookup_symbol)
286 (dwarf2_debug_names_index::lookup_symbol): Remove.
288 2021-04-17 Tom Tromey <tom@tromey.com>
290 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
291 * symmisc.c (maintenance_expand_symtabs): Update.
292 * symfile.c (expand_symtabs_matching): Update.
293 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
295 * quick-symbol.h (struct quick_symbol_functions)
296 <expand_symtabs_matching>: Add 'domain' parameter.
297 * psymtab.c (recursively_search_psymtabs)
298 (psymbol_functions::expand_symtabs_matching): Add 'domain'
300 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
301 Add 'domain' parameter.
302 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
304 * linespec.c (iterate_over_all_matching_symtabs): Update.
305 * dwarf2/read.c (struct dwarf2_gdb_index)
306 <expand_symtabs_matching>: Add 'domain' parameter.
307 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
309 (dw2_expand_symtabs_matching)
310 (dwarf2_gdb_index::expand_symtabs_matching)
311 (dw2_debug_names_iterator)
312 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
315 2021-04-17 Tom Tromey <tom@tromey.com>
317 * symtab.c (global_symbol_searcher::expand_symtabs)
318 (default_collect_symbol_completion_matches_break_on): Update.
319 * symmisc.c (maintenance_expand_symtabs): Update.
320 * symfile.h (expand_symtabs_matching): Add search_flags
322 * symfile.c (expand_symtabs_matching): Add search_flags
324 * symfile-debug.c (objfile::expand_symtabs_matching): Add
325 search_flags parameter.
326 * quick-symbol.h (struct quick_symbol_functions)
327 <expand_symtabs_matching>: Add search_flags parameter.
328 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
329 * psymtab.c (recursively_search_psymtabs)
330 (psymbol_functions::expand_symtabs_matching): Add search_flags
332 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
333 Add search_flags parameter.
334 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
335 search_flags parameter.
336 * linespec.c (iterate_over_all_matching_symtabs): Update.
337 * dwarf2/read.c (struct dwarf2_gdb_index)
338 <expand_symtabs_matching>: Add search_flags parameter.
339 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
340 search_flags parameter.
341 (dw2_map_matching_symbols): Update.
342 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
343 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
345 (dw2_debug_names_iterator): Change block_index to search flags.
346 <m_block_index>: Likewise.
347 (dw2_debug_names_iterator::next)
348 (dwarf2_debug_names_index::lookup_symbol)
349 (dwarf2_debug_names_index::expand_symtabs_for_function)
350 (dwarf2_debug_names_index::map_matching_symbols)
351 (dwarf2_debug_names_index::map_matching_symbols): Update.
352 (dwarf2_debug_names_index::expand_symtabs_matching): Add
353 search_flags parameter.
354 * ada-lang.c (ada_add_global_exceptions)
355 (collect_symbol_completion_matches): Update.
357 2021-04-17 Tom Tromey <tom@tromey.com>
359 * symtab.c (default_collect_symbol_completion_matches_break_on):
361 * symfile.h (expand_symtabs_matching): Return bool.
362 * symfile.c (expand_symtabs_matching): Return bool.
363 * symfile-debug.c (objfile::expand_symtabs_matching): Return
365 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
366 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
368 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
370 * psympriv.h (struct psymbol_functions)
371 <expand_symtabs_matching>: Return bool.
372 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
374 * dwarf2/read.c (struct dwarf2_gdb_index)
375 <expand_symtabs_matching>: Return bool.
376 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
378 (dw2_expand_symtabs_matching_symbol): Return bool.
379 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
380 (dw2_expand_symtabs_matching)
381 (dwarf2_gdb_index::expand_symtabs_matching)
382 (dwarf2_debug_names_index::expand_symtabs_matching)
383 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
385 2021-04-17 Tom Tromey <tom@tromey.com>
387 * quick-symbol.h (enum block_search_flag_values): New.
388 (block_search_flags): New enum flags type.
390 2021-04-16 Tom Tromey <tom@tromey.com>
392 * rust-parse.c: New file.
393 * rust-exp.y: Remove.
394 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
395 (SFILES): Remove rust-exp.y.
396 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
398 2021-04-16 Luis Machado <luis.machado@linaro.org>
400 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
402 2021-04-15 John Baldwin <jhb@FreeBSD.org>
404 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
407 2021-04-15 Tom Tromey <tromey@adacore.com>
409 * ada-valprint.c (ada_value_print_array): Handle optimized-out
412 2021-04-15 Tom Tromey <tromey@adacore.com>
414 * printcmd.c (print_variable_and_value): Use
415 common_val_print_checked.
417 2021-04-15 Tom Tromey <tromey@adacore.com>
419 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
420 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
422 * p-exp.y (variable): Update.
423 * m2-exp.y (variable): Update.
424 * go-exp.y (variable): Update.
425 * expprint.c (dump_for_expression): New overload.
426 * expop.h (check_objfile): New overload.
427 (check_constant): New overload.
428 (class var_value_operation): Use block_symbol.
429 <get_symbol>: Rewrite.
430 * eval.c (var_value_operation::evaluate)
431 (var_value_operation::evaluate_funcall)
432 (var_value_operation::evaluate_for_address)
433 (var_value_operation::evaluate_for_address)
434 (var_value_operation::evaluate_with_coercion)
435 (var_value_operation::evaluate_for_sizeof)
436 (var_value_operation::evaluate_for_cast): Update.
437 * d-exp.y (PrimaryExpression): Update.
438 * c-exp.y (variable): Update.
439 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
440 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
441 (ada_var_value_operation::evaluate)
442 (ada_var_value_operation::resolve)
443 (ada_funcall_operation::resolve): Update.
444 * ada-exp.y (write_var_from_sym, write_object_renaming)
445 (write_ambiguous_var, write_var_or_type, write_name_assoc)
446 (maybe_overload): Update.
447 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
449 2021-04-15 Tom Tromey <tom@tromey.com>
450 Andrew Burgess <andrew.burgess@embecosm.com>
453 * main.c (captured_main_1): Call check_quiet_mode.
454 * top.c (startup_quiet): New global.
455 (check_quiet_mode): New function.
456 (show_startup_quiet): New function.
457 (init_main): Register new command.
458 * top.h (check_quiet_mode): Declare.
460 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
463 * NEWS: Mention new early init files and command line options.
464 * config.in: Regenerate.
465 * configure: Regenerate.
466 * configure.ac: Define GDBEARLYINIT.
467 * main.c (get_earlyinit_files): New function.
468 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
469 CMDARG_EARLYINIT_COMMAND.
470 (captured_main_1): Add support for new command line flags, and for
471 processing startup files.
472 (print_gdb_help): Include startup files in the output.
474 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
476 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
477 (relocate_file_path_maybe_in_datadir): ...this.
478 (class gdb_initfile_finder): New class.
479 (get_init_files): Now uses gdb_initfile_finder.
480 (print_gdb_help): Print 'None found' when there are no init files.
482 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
484 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
485 corresponding child of the abstract DIE when iterating the
486 children of the concrete DIE.
488 2021-04-13 Tom de Vries <tdevries@suse.de>
490 * ui-style.c (read_semi_number, extended_color): Change idx parameter
493 2021-04-13 Luis Machado <luis.machado@linaro.org>
495 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
498 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
500 * rs6000-tdep.c: Add support for single-stepping of
501 prefixed instructions.
503 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
506 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
507 handle the addpcis/lnia instruction.
509 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
511 * MAINTAINERS (Write After Approval): Add myself.
513 2021-4-12 Carl Love <cel@us.ibm.com>
515 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
516 (rs6000_builtin_type_vec128): Add append_composite_type_field for
519 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
521 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
522 * nat/windows-nat.h: Likewise.
524 2021-04-10 Eli Zaretskii <eliz@gnu.org>
526 * windows-nat.c (windows_nat::handle_load_dll): Call
527 windows_add_dll if get_image_name failed to glean the name of the
528 DLL by using the lpImageName pointer.
529 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
530 (windows_add_dll): Now does what windows_add_all_dlls did before,
531 but also accepts an argument LOAD_ADDR, which, if non-NULL,
532 specifies the address where the DLL was loaded into the inferior,
533 and looks for the single DLL loaded at that address.
535 2021-04-09 Luis Machado <luis.machado@linaro.org>
537 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
539 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
541 * darwin-nat.c (darwin_nat_target::resume): Remove status
544 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
546 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
547 prologue end for Intel compilers.
548 * amd64-tdep.c (amd64_skip_prologue): Likewise.
549 * producer.c (producer_is_icc_ge_19): New function.
550 * producer.h (producer_is_icc_ge_19): New declaration.
552 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
554 * producer.c: (producer_is_icc): Update for new version scheme.
555 (producer_parsing_tests): Update names and expected results.
556 * producer.h: (producer_is_icc): Update comment accordingly.
558 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
560 * target.h (struct target_ops) <follow_fork>: Return void.
561 (target_follow_fork): Likewise.
562 * target.c (default_follow_fork): Likewise.
563 (target_follow_fork): Likewise.
564 * infrun.c (follow_fork_inferior): Adjust.
565 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
566 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
567 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
568 * linux-nat.c (linux_nat_target::follow_fork): Return void.
569 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
570 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
571 * remote.c (class remote_target) <follow_fork>: Likewise.
572 (remote_target::follow_fork): Likewise.
573 * target-delegates.c: Re-generate.
575 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
577 * ctfread.c (fetch_tid_type): New function, use throughout file.
578 (read_forward_type): New function.
579 (read_type_record): Call read_forward_type.
581 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
583 * f-exp.h (class fortran_structop_operation): New class.
584 * f-exp.y (exp): Create fortran_structop_operation instead of the
585 generic structop_operation.
586 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
587 expression as EVAL_NORMAL if the result type was dynamic so we can
588 extract the actual array bounds.
589 (fortran_structop_operation::evaluate): New function.
591 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
593 * eval.c (evaluate_subexp_standard): Remove
594 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
597 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
599 * valops.c (value_cast): Call value_deeply_equal before performing
602 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
604 * gdbtypes.c (types_equal): Move pointer equality check earlier in
607 2021-04-07 Caroline Tice <cmtice@google.com>
609 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
610 the search paths used resolve relative location of .dwo file.
612 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
614 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
616 (dwarf2_section_info::get_file_name): Add an assert.
617 (dwarf2_section_info::read_string): Display a minimal, sane error
618 when the dwarf2_section_info is not associated with a bfd section.
620 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
622 * top.c (staged_gdb_datadir): Update comment.
623 (set_gdb_datadir): Copy the value of gdb_datadir back into
625 (init_main): Initialise staged_gdb_datadir.
627 2021-04-06 Tom de Vries <tdevries@suse.de>
630 * infcmd.c (prepare_one_step): Using inline frame info to narrow
633 2021-04-06 Tom de Vries <tdevries@suse.de>
636 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
639 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
641 * avr-tdep.c (avr_frame_unwind_cache): Use
642 trad_frame_saved_reg::is_addr.
644 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
646 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
649 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
651 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
652 objfile parameter for objfile_per_bfd_storage, adjust callers.
653 (struct standard_psymtab) <standard_psymtab>: Likewise.
654 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
655 * psymtab.c (partial_symtab::partial_symtab): Likewise.
656 * ctfread.c (struct ctf_psymtab): Likewise.
657 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
658 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
659 (dwarf2_create_include_psymtab): Likewise.
660 * objfiles.h (struct objfile_per_bfd_storage)
661 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
662 <get_bfd>: New method.
664 * objfiles.c (get_objfile_bfd_data): Adjust.
666 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
668 * psymtab.c (partial_symtab::partial_symtab): Change
669 last_objfile_name to be an std::string.
670 * symfile.c (allocate_symtab): Likewise.
672 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
674 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
676 (struct objfile) <intern>: Use
677 objfile::objfile_per_bfd_storage::intern.
679 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
681 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
682 with type::is_flag_enum.
684 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
686 * gdbtypes.h (struct type) <is_flag_enum,
687 set_is_flag_enum>: New methods.
688 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
689 write call sites to use type::set_is_flag_enum.
691 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
693 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
694 with type::is_declared_class.
696 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
698 * gdbtypes.h (struct type) <is_declared_class,
699 set_is_declared_class>: New methods.
700 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
701 write call sites to use type::set_is_declared_class.
703 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
705 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
706 to avoid deprecation warnings.
708 2021-04-01 Martin Liska <mliska@suse.cz>
710 * cp-name-parser.y: Use startswith instead of strncmp.
711 * m2-exp.y: Likewise.
712 * macroexp.c (substitute_args): Likewise.
713 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
714 * rust-exp.y: Likewise.
716 2021-03-31 Tom Tromey <tom@tromey.com>
718 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
719 with dw2_map_matching_symbols.
720 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
721 dw2_expand_symtabs_matching.
723 2021-03-31 Tom Tromey <tromey@adacore.com>
725 * dwarf2/stringify.h: Fix typo.
727 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
730 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
731 with objfiles using READNOW.
733 2021-03-29 Tom Tromey <tromey@adacore.com>
735 * top.c (check_frame_language_change): Update.
736 * language.c (language_info): Remove parameter.
737 * language.h (language_info): Remove parameter.
739 2021-03-29 Luis Machado <luis.machado@linaro.org>
741 * compile/compile.c (get_args): Don't add empty argv entries.
743 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
746 * procfs.c (procfs_target::attach): Define inf.
748 (procfs_target::create_inferior): Likewise.
750 2021-03-28 Tom Tromey <tom@tromey.com>
752 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
753 (elf_symfile_read): Simplify.
754 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
755 (make_lazy_dwarf_reader): New function.
756 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
757 (dwarf2_initialize_objfile): Return void. Remove index_kind
758 parameter. Push on 'qf' list.
759 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
760 type. Remove 'index_kind' parameter.
761 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
763 2021-03-27 Tom Tromey <tom@tromey.com>
765 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
767 2021-03-27 Tom Tromey <tom@tromey.com>
769 * elfread.c (elf_symfile_read): Don't clear 'qf'.
771 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
773 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
776 2021-03-26 Tom Tromey <tom@tromey.com>
778 * symtab.c (struct output_source_filename_data): Add 'output'
779 method and operator().
780 (output_source_filename_data::output): Rename from
781 output_source_filename.
782 (output_partial_symbol_filename): Remove.
783 (info_sources_command): Update.
784 (struct add_partial_filename_data): Add operator().
785 (add_partial_filename_data::operator()): Rename from
786 maybe_add_partial_symtab_filename.
787 (make_source_files_completion_list): Update.
788 * symfile.c (quick_symbol_functions): Update.
789 * symfile-debug.c (objfile::map_symbol_filenames): Update.
790 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
791 'need_fullname'. Remove 'data' parameter.
792 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
793 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
794 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
795 Change type of 'fun' and 'need_fullname'. Remove 'data'
797 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
798 of 'fun' and 'need_fullname'. Remove 'data' parameter.
799 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
801 (mi_cmd_file_list_exec_source_files): Update.
803 (dwarf2_base_index_functions::map_symbol_filenames): Update.
805 2021-03-26 Tom Tromey <tom@tromey.com>
807 * ada-lang.c (struct match_data): Add operator().
808 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
809 (callback): Remove 'callback'.
811 2021-03-26 Tom Tromey <tom@tromey.com>
813 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
814 call make_ignore_params once.
816 2021-03-26 Tom Tromey <tom@tromey.com>
818 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
821 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
822 Pedro Alves <pedro@palves.net>
824 * async-event.c: Include "infrun.h".
825 (async_event_handler_marked): New.
826 * async-event.h (async_event_handler_marked): Declare.
827 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
828 inferior before calling target method. Don't commit-resumed if
829 target_has_pending_events is true.
830 * remote.c (remote_target::has_pending_events): New.
831 * target-delegates.c: Regenerate.
832 * target.c (target_has_pending_events): New.
833 * target.h (target_ops::has_pending_events): New target method.
834 (target_has_pending_events): New.
836 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
837 Pedro Alves <pedro@palves.net>
839 * infcmd.c (run_command_1, attach_command, detach_command)
840 (interrupt_target_1): Use scoped_disable_commit_resumed.
841 * infrun.c (do_target_resume): Remove
842 target_commit_resume call.
843 (commit_resume_all_targets): Remove.
844 (maybe_set_commit_resumed_all_targets): New.
845 (maybe_call_commit_resumed_all_targets): New.
846 (enable_commit_resumed): New.
847 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
848 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
849 (scoped_disable_commit_resumed::reset)
850 (scoped_disable_commit_resumed::reset_and_commit)
851 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
852 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
854 (proceed): Use scoped_disable_commit_resumed and
855 maybe_call_commit_resumed_all_targets.
856 (fetch_inferior_event): Use scoped_disable_commit_resumed.
857 * infrun.h (struct scoped_disable_commit_resumed): New.
858 (maybe_call_commit_resumed_all_process_targets): New.
859 (struct scoped_enable_commit_resumed): New.
860 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
861 * process-stratum-target.h (class process_stratum_target):
862 <commit_resumed_state>: New.
863 * record-full.c (record_full_wait_1): Change commit_resumed_state
864 around calling commit_resumed.
865 * remote.c (class remote_target) <commit_resume>: Rename to...
866 <commit_resumed>: ... this.
867 (struct stop_reply): Move up.
868 (remote_target::commit_resume): Rename to...
869 (remote_target::commit_resumed): ... this. Check if there is any
870 thread pending vCont resume.
871 (remote_target::remote_stop_ns): Generate stop replies for resumed
872 but pending vCont threads.
873 (remote_target::wait_ns): Add gdb_assert.
874 * target-delegates.c: Regenerate.
875 * target.c (target_wait, target_resume): Assert that the current
876 process_stratum target isn't in commit-resumed state.
877 (defer_target_commit_resume): Remove.
878 (target_commit_resume): Remove.
879 (target_commit_resumed): New.
880 (make_scoped_defer_target_commit_resume): Remove.
881 (target_stop): Assert that the current process_stratum target
882 isn't in commit-resumed state.
883 * target.h (struct target_ops) <commit_resume>: Rename to ...
884 <commit_resumed>: ... this.
885 (target_commit_resume): Remove.
886 (target_commit_resumed): New.
887 (make_scoped_defer_target_commit_resume): Remove.
888 * top.c (wait_sync_command_done): Use
889 scoped_enable_commit_resumed.
891 2021-03-26 Pedro Alves <pedro@palves.net>
893 * target.c (target_always_non_stop_p): Also check whether the
896 2021-03-26 Tom Tromey <tom@tromey.com>
898 * dwarf2/read.c (dwarf2_read_debug_names)
899 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
900 (dw2_debug_names_iterator::next, create_type_unit_group):
903 2021-03-25 Pedro Alves <pedro@palves.net>
905 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
906 around setting the breakpoint.
908 2021-03-25 Pedro Alves <pedro@palves.net>
911 (remote_target::check_pending_events_prevent_wildcard_vcont):
912 Check whether the event's ptid is not null_ptid before looking up
913 the corresponding inferior.
915 2021-03-24 Changbin Du <changbin.du@gmail.com>
917 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
920 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
922 * target.h (current_top_target): Remove, make callers use the
923 current inferior instead.
924 * target.c (current_top_target): Remove.
926 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
928 * target.h (target_shortname): Change to function declaration.
929 (target_longname): Likewise.
930 (target_attach_no_wait): Likewise.
931 (target_post_attach): Likewise.
932 (target_prepare_to_store): Likewise.
933 (target_supports_enable_disable_tracepoint): Likewise.
934 (target_supports_string_tracing): Likewise.
935 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
936 (target_supports_dumpcore): Likewise.
937 (target_dumpcore): Likewise.
938 (target_can_run_breakpoint_commands): Likewise.
939 (target_files_info): Likewise.
940 (target_post_startup_inferior): Likewise.
941 (target_insert_fork_catchpoint): Likewise.
942 (target_remove_fork_catchpoint): Likewise.
943 (target_insert_vfork_catchpoint): Likewise.
944 (target_remove_vfork_catchpoint): Likewise.
945 (target_insert_exec_catchpoint): Likewise.
946 (target_remove_exec_catchpoint): Likewise.
947 (target_set_syscall_catchpoint): Likewise.
948 (target_rcmd): Likewise.
949 (target_can_lock_scheduler): Likewise.
950 (target_can_async_p): Likewise.
951 (target_is_async_p): Likewise.
952 (target_execution_direction): Likewise.
953 (target_extra_thread_info): Likewise.
954 (target_pid_to_exec_file): Likewise.
955 (target_thread_architecture): Likewise.
956 (target_find_memory_regions): Likewise.
957 (target_make_corefile_notes): Likewise.
958 (target_get_bookmark): Likewise.
959 (target_goto_bookmark): Likewise.
960 (target_stopped_by_watchpoint): Likewise.
961 (target_stopped_by_sw_breakpoint): Likewise.
962 (target_supports_stopped_by_sw_breakpoint): Likewise.
963 (target_stopped_by_hw_breakpoint): Likewise.
964 (target_supports_stopped_by_hw_breakpoint): Likewise.
965 (target_have_steppable_watchpoint): Likewise.
966 (target_can_use_hardware_watchpoint): Likewise.
967 (target_region_ok_for_hw_watchpoint): Likewise.
968 (target_can_do_single_step): Likewise.
969 (target_insert_watchpoint): Likewise.
970 (target_remove_watchpoint): Likewise.
971 (target_insert_hw_breakpoint): Likewise.
972 (target_remove_hw_breakpoint): Likewise.
973 (target_can_accel_watchpoint_condition): Likewise.
974 (target_can_execute_reverse): Likewise.
975 (target_get_ada_task_ptid): Likewise.
976 (target_filesystem_is_local): Likewise.
977 (target_trace_init): Likewise.
978 (target_download_tracepoint): Likewise.
979 (target_can_download_tracepoint): Likewise.
980 (target_download_trace_state_variable): Likewise.
981 (target_enable_tracepoint): Likewise.
982 (target_disable_tracepoint): Likewise.
983 (target_trace_start): Likewise.
984 (target_trace_set_readonly_regions): Likewise.
985 (target_get_trace_status): Likewise.
986 (target_get_tracepoint_status): Likewise.
987 (target_trace_stop): Likewise.
988 (target_trace_find): Likewise.
989 (target_get_trace_state_variable_value): Likewise.
990 (target_save_trace_data): Likewise.
991 (target_upload_tracepoints): Likewise.
992 (target_upload_trace_state_variables): Likewise.
993 (target_get_raw_trace_data): Likewise.
994 (target_get_min_fast_tracepoint_insn_len): Likewise.
995 (target_set_disconnected_tracing): Likewise.
996 (target_set_circular_trace_buffer): Likewise.
997 (target_set_trace_buffer_size): Likewise.
998 (target_set_trace_notes): Likewise.
999 (target_get_tib_address): Likewise.
1000 (target_set_permissions): Likewise.
1001 (target_static_tracepoint_marker_at): Likewise.
1002 (target_static_tracepoint_markers_by_strid): Likewise.
1003 (target_traceframe_info): Likewise.
1004 (target_use_agent): Likewise.
1005 (target_can_use_agent): Likewise.
1006 (target_augmented_libraries_svr4_read): Likewise.
1007 (target_log_command): Likewise.
1008 * target.c (target_shortname): New.
1009 (target_longname): New.
1010 (target_attach_no_wait): New.
1011 (target_post_attach): New.
1012 (target_prepare_to_store): New.
1013 (target_supports_enable_disable_tracepoint): New.
1014 (target_supports_string_tracing): New.
1015 (target_supports_evaluation_of_breakpoint_conditions): New.
1016 (target_supports_dumpcore): New.
1017 (target_dumpcore): New.
1018 (target_can_run_breakpoint_commands): New.
1019 (target_files_info): New.
1020 (target_post_startup_inferior): New.
1021 (target_insert_fork_catchpoint): New.
1022 (target_remove_fork_catchpoint): New.
1023 (target_insert_vfork_catchpoint): New.
1024 (target_remove_vfork_catchpoint): New.
1025 (target_insert_exec_catchpoint): New.
1026 (target_remove_exec_catchpoint): New.
1027 (target_set_syscall_catchpoint): New.
1029 (target_can_lock_scheduler): New.
1030 (target_can_async_p): New.
1031 (target_is_async_p): New.
1032 (target_execution_direction): New.
1033 (target_extra_thread_info): New.
1034 (target_pid_to_exec_file): New.
1035 (target_thread_architecture): New.
1036 (target_find_memory_regions): New.
1037 (target_make_corefile_notes): New.
1038 (target_get_bookmark): New.
1039 (target_goto_bookmark): New.
1040 (target_stopped_by_watchpoint): New.
1041 (target_stopped_by_sw_breakpoint): New.
1042 (target_supports_stopped_by_sw_breakpoint): New.
1043 (target_stopped_by_hw_breakpoint): New.
1044 (target_supports_stopped_by_hw_breakpoint): New.
1045 (target_have_steppable_watchpoint): New.
1046 (target_can_use_hardware_watchpoint): New.
1047 (target_region_ok_for_hw_watchpoint): New.
1048 (target_can_do_single_step): New.
1049 (target_insert_watchpoint): New.
1050 (target_remove_watchpoint): New.
1051 (target_insert_hw_breakpoint): New.
1052 (target_remove_hw_breakpoint): New.
1053 (target_can_accel_watchpoint_condition): New.
1054 (target_can_execute_reverse): New.
1055 (target_get_ada_task_ptid): New.
1056 (target_filesystem_is_local): New.
1057 (target_trace_init): New.
1058 (target_download_tracepoint): New.
1059 (target_can_download_tracepoint): New.
1060 (target_download_trace_state_variable): New.
1061 (target_enable_tracepoint): New.
1062 (target_disable_tracepoint): New.
1063 (target_trace_start): New.
1064 (target_trace_set_readonly_regions): New.
1065 (target_get_trace_status): New.
1066 (target_get_tracepoint_status): New.
1067 (target_trace_stop): New.
1068 (target_trace_find): New.
1069 (target_get_trace_state_variable_value): New.
1070 (target_save_trace_data): New.
1071 (target_upload_tracepoints): New.
1072 (target_upload_trace_state_variables): New.
1073 (target_get_raw_trace_data): New.
1074 (target_get_min_fast_tracepoint_insn_len): New.
1075 (target_set_disconnected_tracing): New.
1076 (target_set_circular_trace_buffer): New.
1077 (target_set_trace_buffer_size): New.
1078 (target_set_trace_notes): New.
1079 (target_get_tib_address): New.
1080 (target_set_permissions): New.
1081 (target_static_tracepoint_marker_at): New.
1082 (target_static_tracepoint_markers_by_strid): New.
1083 (target_traceframe_info): New.
1084 (target_use_agent): New.
1085 (target_can_use_agent): New.
1086 (target_augmented_libraries_svr4_read): New.
1087 (target_log_command): New.
1088 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1089 * infrun.c (set_schedlock_func): Adjust.
1090 * mi/mi-main.c (exec_reverse_continue): Adjust.
1091 * reverse.c (exec_reverse_once): Adjust.
1092 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1093 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1094 * remote-sim.c (gdbsim_target::detach): Adjust.
1095 (gdbsim_target::files_info): Adjust.
1097 2021-03-24 Tom Tromey <tom@tromey.com>
1099 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1100 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1101 (check_match, dw2_expand_symtabs_matching)
1102 (dwarf2_debug_names_index::map_matching_symbols)
1103 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1105 2021-03-24 Keith Seitz <keiths@redhat.com>
1107 * compile/compile-cplus-types.c
1108 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1111 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1113 * gdbarch.sh (gdbarch_data_registry): Make static.
1114 * gdbarch.c: Re-generate.
1116 2021-03-24 Luis Machado <luis.machado@linaro.org>
1118 * NEWS: Mention memory tagging changes.
1120 2021-03-24 Luis Machado <luis.machado@linaro.org>
1122 * printcmd.c (decode_format): Handle the 'm' modifier.
1123 (do_examine): Display allocation tags when required/supported.
1124 (should_validate_memtags): New function.
1125 (print_command_1): Display memory tag mismatches.
1126 * valprint.c (show_memory_tag_violations): New function.
1127 (value_print_option_defs): Add new option "memory-tag-violations".
1128 (user_print_options) <memory_tag_violations>: Initialize to 1.
1129 * valprint.h (struct format_data) <print_tags>: New field.
1130 (value_print_options) <memory_tag_violations>: New field.
1132 2021-03-24 Luis Machado <luis.machado@linaro.org>
1134 * printcmd.c: Include gdbsupport/rsp-low.h.
1135 (memory_tag_list): New static global.
1136 (process_print_command_args): Factored out of
1138 (print_command_1): Use process_print_command_args.
1139 (show_addr_not_tagged, show_memory_tagging_unsupported)
1140 (memory_tag_command, memory_tag_print_tag_command)
1141 (memory_tag_print_logical_tag_command)
1142 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1143 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1144 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1146 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1148 2021-03-24 Luis Machado <luis.machado@linaro.org>
1150 * aarch64-linux-tdep.c
1151 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1152 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1154 2021-03-24 Luis Machado <luis.machado@linaro.org>
1156 * aarch64-linux-tdep.c
1157 (aarch64_linux_report_signal_info): New function.
1158 (aarch64_linux_init_abi): Register
1159 aarch64_linux_report_signal_info as the report_signal_info hook.
1160 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1161 (SEGV_MTESERR): Define.
1163 2021-03-24 Luis Machado <luis.machado@linaro.org>
1165 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1166 (aarch64_linux_ltag_tests): New function.
1167 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1169 2021-03-24 Luis Machado <luis.machado@linaro.org>
1171 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1172 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1173 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1174 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1176 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1177 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1178 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1179 (aarch64_linux_get_ltag): New functions.
1180 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1181 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1182 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1183 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1185 2021-03-24 Luis Machado <luis.machado@linaro.org>
1187 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1189 (struct smaps_data): New struct.
1190 (decode_vmflags): Handle the 'mt' flag.
1191 (parse_smaps_data): New function, refactored from
1192 linux_find_memory_regions_full.
1193 (linux_address_in_memtag_page): New function.
1194 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1195 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1197 2021-03-24 Luis Machado <luis.machado@linaro.org>
1199 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1200 instead of char arrays.
1202 2021-03-24 Luis Machado <luis.machado@linaro.org>
1204 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1205 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1206 nat/aarch64-mte-linux-ptrace.h.
1207 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1208 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1210 <fetch_memtags>: New method override.
1211 <store_memtags>: New method override.
1212 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1213 (aarch64_linux_nat_target::fetch_memtags): New method.
1214 (aarch64_linux_nat_target::store_memtags): New method.
1215 * arch/aarch64-mte-linux.c: New file.
1216 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1217 (AARCH64_MTE_GRANULE_SIZE): Define.
1218 (aarch64_memtag_type): New enum.
1219 (aarch64_mte_get_tag_granules): New prototype.
1220 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1221 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1222 * nat/aarch64-mte-linux-ptrace.c: New file.
1223 * nat/aarch64-mte-linux-ptrace.h: New file.
1225 2021-03-24 Luis Machado <luis.machado@linaro.org>
1227 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1228 * nat/aarch64-mte-linux-ptrace.h: New file.
1230 2021-03-24 Luis Machado <luis.machado@linaro.org>
1232 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1233 (store_mteregs_to_thread): New function.
1234 (aarch64_linux_nat_target::fetch_registers): Update to call
1235 fetch_mteregs_from_thread.
1236 (aarch64_linux_nat_target::store_registers): Update to call
1237 store_mteregs_to_thread.
1238 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1239 (aarch64_cannot_store_register): Handle MTE registers.
1240 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1241 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1242 <has_mte>: New method.
1243 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1245 2021-03-24 Luis Machado <luis.machado@linaro.org>
1247 * aarch64-linux-nat.c
1248 (aarch64_linux_nat_target::read_description): Take MTE flag into
1250 Slight refactor to hwcap flag checking.
1251 * aarch64-linux-tdep.c
1252 (aarch64_linux_core_read_description): Likewise.
1253 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1255 (aarch64_read_description): Add mte_p parameter and update to use it.
1256 Update the documentation.
1257 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1258 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1259 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1260 (aarch64_create_target_description): Add mte_p parameter and update
1262 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1264 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1265 * features/aarch64-mte.c: New file, generated.
1266 * features/aarch64-mte.xml: New file.
1268 2021-03-24 Luis Machado <luis.machado@linaro.org>
1270 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1271 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1272 * aarch64-linux-tdep.c: Likewise
1273 * arch/aarch64-mte-linux.h: New file.
1275 2021-03-24 Luis Machado <luis.machado@linaro.org>
1277 * remote: Include gdbsupport/selftest.h.
1278 (test_memory_tagging_functions): New function.
1279 (_initialize_remote): Register test_memory_tagging_functions.
1281 2021-03-24 Luis Machado <luis.machado@linaro.org>
1283 * remote.c (PACKET_memory_tagging_feature): New enum.
1284 (remote_memory_tagging_p): New function.
1285 (remote_protocol_features): New "memory-tagging" entry.
1286 (remote_target::remote_query_supported): Handle memory tagging
1288 (remote_target::supports_memory_tagging): Implement.
1289 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1290 (create_store_memtags_request): New functions.
1291 (remote_target::fetch_memtags): Implement.
1292 (remote_target::store_memtags): Implement.
1293 (_initialize_remote): Add new "memory-tagging-feature"
1296 2021-03-24 Luis Machado <luis.machado@linaro.org>
1298 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1299 (default_memtag_matches_p, default_set_memtags)
1300 (default_get_memtag): New functions.
1301 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1302 (default_memtag_matches_p, default_set_memtags)
1303 (default_get_memtag): New prototypes.
1304 * gdbarch.c: Regenerate.
1305 * gdbarch.h: Regenerate.
1306 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1307 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1308 (enum memtag_type): New enum.
1310 2021-03-24 Luis Machado <luis.machado@linaro.org>
1312 * remote.c (remote_target) <supports_memory_tagging>: New method
1314 <fetch_memtags>: New method override.
1315 <store_memtags>: New method override.
1316 (remote_target::supports_memory_tagging): New method.
1317 (remote_target::fetch_memtags): New method.
1318 (remote_target::store_memtags): New method.
1319 * target-delegates.c: Regenerate.
1320 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1322 <fetch_memtags>: New virtual method.
1323 <store_memtags>: New virtual method.
1324 (target_supports_memory_tagging): Define.
1325 (target_fetch_memtags): Define.
1326 (target_store_memtags): Define.
1327 * target-debug.h (target_debug_print_size_t)
1328 (target_debug_print_const_gdb_byte_vector_r)
1329 (target_debug_print_gdb_byte_vector_r): New functions.
1331 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1333 * target.h (target_longname): Remove.
1335 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1337 * target.h (target_is_pushed): Remove, update callers to use
1338 inferior::target_is_pushed instead.
1339 * target.c (target_is_pushed): Remove.
1341 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1343 * target.h (push_target): Remove, update callers to use
1344 inferior::push_target.
1345 * target.c (push_target): Remove.
1346 * inferior.h (class inferior) <push_target>: New overload.
1348 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1350 * target.h (unpush_target): Remove, update all callers
1351 to use `inferior::unpush_target` instead.
1352 (struct target_unpusher) <operator()>: Just declare.
1353 * target.c (unpush_target): Remove.
1354 (target_unpusher::operator()): New.
1356 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1358 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1360 (process_full_comp_unit): Validate the top-level tag before
1361 processing the first DIE.
1362 (read_func_scope): Ensure we have a valid builder.
1364 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1366 * objc-lang.c (objc_demangle): Renamed to
1367 objc_language::demangle_symbol, and moved later in the file.
1368 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1370 (objc_language::demangle_symbol): Defined outside of class
1371 declaration. The definition is the old objc_demangle with NULL
1372 changed to nullptr, and if conditions relating to nullptr pointers
1373 or null character checks made explicit.
1374 * objc-lang.h (objc_demangle): Delete declaration.
1376 2021-03-22 Martin Liska <mliska@suse.cz>
1378 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1379 (_initialize_arm_tdep): Likewise.
1381 2021-03-20 Tom Tromey <tom@tromey.com>
1383 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1384 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1385 * psymtab.h (make_psymbol_functions): Don't declare.
1386 * psymtab.c (make_psymbol_functions): Remove.
1387 (maintenance_print_psymbols): Update.
1388 * psympriv.h (struct psymbol_functions): Add no-argument
1390 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1391 <partial_symtabs>: Remove.
1392 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1393 * elfread.c (read_partial_symbols): Update.
1394 (elf_symfile_read): Remove check for existing partial symbols.
1396 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1398 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1400 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1402 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1403 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1405 2021-03-20 Tom Tromey <tom@tromey.com>
1407 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1408 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1409 * symfile-debug.c (objfile::has_partial_symbols)
1410 (objfile::find_last_source_symtab)
1411 (objfile::forget_cached_source_info)
1412 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1413 (objfile::print_stats, objfile::dump)
1414 (objfile::expand_symtabs_for_function)
1415 (objfile::expand_all_symtabs)
1416 (objfile::expand_symtabs_with_fullname)
1417 (objfile::map_matching_symbols)
1418 (objfile::expand_symtabs_matching)
1419 (objfile::find_pc_sect_compunit_symtab)
1420 (objfile::map_symbol_filenames)
1421 (objfile::find_compunit_symtab_by_address)
1422 (objfile::lookup_global_symbol_language)
1423 (objfile::require_partial_symbols): Update.
1424 * psymtab.c (maintenance_print_psymbols)
1425 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1426 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1427 * objfiles.c (objfile_relocate1): Update.
1428 * elfread.c (elf_symfile_read): Update.
1430 2021-03-20 Tom Tromey <tom@tromey.com>
1432 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1434 2021-03-20 Tom Tromey <tom@tromey.com>
1436 * psymtab.c (psymbol_functions::count_psyms): Rename.
1437 (psymbol_functions::print_stats): Update.
1438 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1441 2021-03-20 Tom Tromey <tom@tromey.com>
1443 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1444 (psymbol_functions::find_pc_sect_psymtab): Rename.
1445 (psymbol_functions::find_pc_sect_compunit_symtab)
1446 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1447 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1449 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1451 2021-03-20 Tom Tromey <tom@tromey.com>
1453 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1454 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1455 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1457 (add_psymbol_to_bcache): Remove.
1458 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1459 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1461 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1462 <add_psymbol>: Likewise.
1463 (standard_psymtab, legacy_psymtab): Likewise.
1464 * mdebugread.c (parse_partial_symbols): Update.
1465 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1466 (handle_psymbol_enumerators): Update.
1467 (new_psymtab): Add partial_symtabs parameter.
1468 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1469 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1471 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1472 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1474 * dbxread.c (read_dbx_symtab): Update.
1475 (start_psymtab): Add partial_symtabs parameter.
1476 (dbx_end_psymtab): Update.
1477 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1478 (ctf_psymtab): Add partial_symtabs parameter.
1479 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1481 (scan_partial_symbols): Add partial_symtabs parameter.
1482 (scan_partial_symbols, elfctf_build_psymtabs)
1483 (ctf_psymtab_add_enums): Update.
1485 2021-03-20 Tom Tromey <tom@tromey.com>
1487 * symfile.c (read_symbols): Use objfile method.
1488 * symfile-debug.c (objfile::require_partial_symbols): New method.
1489 * psymtab.h (require_partial_symbols): Don't declare.
1490 * psymtab.c (require_partial_symbols): Use objfile method. Now
1492 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1493 (psymbol_functions::lookup_symbol)
1494 (psymbol_functions::lookup_global_symbol_language)
1495 (psymbol_functions::find_last_source_symtab)
1496 (psymbol_functions::forget_cached_source_info)
1497 (psymbol_functions::print_stats)
1498 (psymbol_functions::expand_symtabs_for_function)
1499 (psymbol_functions::expand_all_symtabs)
1500 (psymbol_functions::expand_symtabs_with_fullname)
1501 (psymbol_functions::map_symbol_filenames)
1502 (psymbol_functions::map_matching_symbols)
1503 (psymbol_functions::expand_symtabs_matching)
1504 (psymbol_functions::find_compunit_symtab_by_address)
1505 (maintenance_print_psymbols, maintenance_info_psymtabs)
1506 (maintenance_check_psymtabs): Update.
1507 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1510 2021-03-20 Tom Tromey <tom@tromey.com>
1512 * xcoffread.c (xcoff_sym_fns): Update.
1513 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1514 * symfile-debug.c (objfile::has_partial_symbols): Use
1515 can_lazily_read_symbols.
1516 (debug_sym_read_psymbols): Remove.
1517 (debug_sym_fns, install_symfile_debug_logging): Update.
1518 * quick-symbol.h (struct quick_symbol_functions)
1519 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1520 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1521 * mipsread.c (ecoff_sym_fns): Update.
1522 * machoread.c (macho_sym_fns): Update.
1523 * elfread.c (struct lazy_dwarf_reader): New.
1524 (elf_symfile_read): Update.
1525 (read_psyms): Now a method of lazy_dwarf_reader.
1526 (elf_sym_fns): Update.
1527 (elf_sym_fns_lazy_psyms): Remove.
1528 * dbxread.c (aout_sym_fns): Update.
1529 * coffread.c (coff_sym_fns): Update.
1531 2021-03-20 Tom Tromey <tom@tromey.com>
1533 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1534 (reread_symbols): Move reset_psymtabs call later.
1535 * objfiles.c (objfile::objfile): Don't initialize
1538 2021-03-20 Tom Tromey <tom@tromey.com>
1540 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1541 set_partial_symtabs.
1542 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1543 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1545 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1547 (psymbol_functions::find_pc_sect_compunit_symtab)
1548 (psymbol_functions::print_stats, psymbol_functions::dump)
1549 (psymbol_functions::has_symbols): Update.
1550 (make_psymbol_functions, dump_psymtab_addrmap): Add
1551 partial_symtabs parameter.
1552 (maintenance_print_psymbols): Update.
1553 (psymbol_functions::expand_symtabs_matching): Update.
1554 * psympriv.h (struct psymbol_functions): Add constructor.
1555 <m_partial_symtabs>: New member.
1556 <set_partial_symtabs>: New method.
1558 2021-03-20 Tom Tromey <tom@tromey.com>
1560 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1562 (process_psymtab_comp_unit_reader)
1563 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1564 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1565 Reference psymtabs via per_bfd.
1567 2021-03-20 Tom Tromey <tom@tromey.com>
1569 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1571 (add_address_entry): Remove objfile parameter.
1572 (add_address_entry_worker): Update.
1573 (write_address_map): Replace objfile parameter with per_bfd.
1574 (write_gdbindex, write_psymtabs_to_index): Update.
1576 2021-03-20 Tom Tromey <tom@tromey.com>
1578 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1579 print_bcache parameter.
1580 * symfile-debug.c (objfile::print_stats): Add print_bcache
1582 * quick-symbol.h (struct quick_symbol_functions)
1583 <print_stats>: Add print_bcache parameter.
1584 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1586 (print_objfile_statistics): Move psymtab code to psymtab.c.
1587 * psymtab.c (count_psyms): Move from symmisc.c.
1588 (psymbol_functions::print_stats): Print partial symbol and bcache
1589 statistics. Add print_bcache parameter.
1590 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1591 (struct objfile) <print_stats>: Add print_bcache parameter.
1592 * maint.c (maintenance_print_statistics): Update.
1594 2021-03-20 Tom Tromey <tom@tromey.com>
1596 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1598 * dwarf2/read.c (create_addrmap_from_index)
1599 (create_addrmap_from_aranges): Set per_bfd addrmap.
1600 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1601 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1603 (dwarf2_read_debug_names): Don't set partial_symtabs.
1604 (dwarf2_initialize_objfile): Likewise.
1606 2021-03-20 Tom Tromey <tom@tromey.com>
1608 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1611 2021-03-20 Tom Tromey <tom@tromey.com>
1613 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1614 (~psymtab_discarder, keep): Update.
1615 <m_objfile>: Remove.
1616 <m_partial_symtabs>: New member.
1617 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1619 2021-03-20 Tom Tromey <tom@tromey.com>
1621 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1622 (xcoff_end_psymtab): Update.
1623 (scan_xcoff_symtab): Add partial_symtabs parameter.
1624 (xcoff_initial_scan): Update.
1625 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1626 * mdebugread.c (mdebug_build_psymtabs): Update.
1627 (parse_partial_symbols): Add partial_symtabs parameter.
1628 * dbxread.c (dbx_symfile_read): Update.
1629 (read_dbx_symtab): Add partial_symtabs parameter.
1630 (read_dbx_symtab): Update.
1631 (dbx_end_psymtab): Add partial_symtabs parameter.
1633 2021-03-20 Tom Tromey <tom@tromey.com>
1635 * quick-symbol.h (struct quick_symbol_functions)
1636 <relocated>: New method.
1637 * psymtab.h (struct psymbol_functions) <relocated>: New
1639 <fill_psymbol_map>: Declare method.
1640 <m_psymbol_map>: New member.
1641 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1642 (psymbol_functions::find_compunit_symtab_by_address): Update.
1643 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1644 (struct objfile) <psymbol_map>: Remove.
1645 * objfiles.c (objfile_relocate1): Update.
1647 2021-03-20 Tom Tromey <tom@tromey.com>
1649 * psympriv.h (struct psymbol_functions): New.
1650 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1651 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1652 (objfile::lookup_global_symbol_language): Update.
1653 * quick-symbol.h (struct quick_symbol_functions): Convert function
1654 pointers to methods. Add virtual destructor.
1655 (quick_symbol_functions_up): New typedef.
1656 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1657 (dwarf2_debug_names_functions): Don't declare.
1658 (make_psymbol_functions): Declare.
1659 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1660 (psymbol_functions::find_pc_sect_compunit_symtab)
1661 (psymbol_functions::lookup_symbol)
1662 (psymbol_functions::lookup_global_symbol_language)
1663 (psymbol_functions::find_last_source_symtab)
1664 (psymbol_functions::forget_cached_source_info)
1665 (psymbol_functions::print_stats, psymbol_functions::dump)
1666 (psymbol_functions::expand_symtabs_for_function)
1667 (psymbol_functions::expand_all_symtabs)
1668 (psymbol_functions::expand_symtabs_with_fullname)
1669 (psymbol_functions::map_symbol_filenames)
1670 (psymbol_functions::map_matching_symbols)
1671 (psymbol_functions::expand_symtabs_matching)
1672 (psymbol_functions::has_symbols)
1673 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1674 (psym_functions): Remove.
1675 (make_psymbol_functions): New function.
1676 * objfiles.h (struct objfile) <qf>: Change type.
1677 * elfread.c (elf_symfile_read): Update.
1678 * dwarf2/read.c (struct dwarf2_base_index_functions)
1679 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1680 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1681 (dwarf2_base_index_functions::find_last_source_symtab)
1682 (dwarf2_base_index_functions::forget_cached_source_info)
1683 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1684 (dwarf2_gdb_index::lookup_symbol)
1685 (dwarf2_base_index_functions::print_stats)
1686 (dwarf2_gdb_index::dump)
1687 (dwarf2_gdb_index::expand_symtabs_for_function)
1688 (dwarf2_base_index_functions::expand_all_symtabs)
1689 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1691 (dwarf2_gdb_index::map_matching_symbols): New method.
1692 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1693 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1694 (dwarf2_base_index_functions::map_symbol_filenames)
1695 (dwarf2_base_index_functions::has_symbols): Rename.
1696 (dwarf2_gdb_index_functions): Remove.
1697 (dwarf2_debug_names_index::lookup_symbol)
1698 (dwarf2_debug_names_index::dump)
1699 (dwarf2_debug_names_index::expand_symtabs_for_function)
1700 (dwarf2_debug_names_index::map_matching_symbols)
1701 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1702 (dwarf2_debug_names_functions): Remove.
1703 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1706 2021-03-20 Tom Tromey <tom@tromey.com>
1708 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1710 * xcoffread.c (xcoff_sym_fns): Update.
1711 * symfile.h (struct sym_fns) <qf>: Remove.
1712 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1713 * symfile-debug.c (objfile::has_partial_symbols)
1714 (objfile::find_last_source_symtab)
1715 (objfile::forget_cached_source_info)
1716 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1717 (objfile::print_stats, objfile::dump)
1718 (objfile::expand_symtabs_for_function)
1719 (objfile::expand_all_symtabs)
1720 (objfile::expand_symtabs_with_fullname)
1721 (objfile::map_matching_symbols)
1722 (objfile::expand_symtabs_matching)
1723 (objfile::find_pc_sect_compunit_symtab)
1724 (objfile::map_symbol_filenames)
1725 (objfile::find_compunit_symtab_by_address)
1726 (objfile::lookup_global_symbol_language, debug_sym_fns)
1727 (install_symfile_debug_logging): Update.
1728 * objfiles.h (struct objfile) <qf>: New member.
1729 * mipsread.c (ecoff_sym_fns): Update.
1730 * machoread.c (macho_sym_fns): Update.
1731 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1733 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1734 * dbxread.c (aout_sym_fns): Update.
1735 * coffread.c (coff_sym_fns): Update.
1737 2021-03-20 Tom Tromey <tom@tromey.com>
1739 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1740 (expand_symtabs_file_matcher_ftype)
1741 (expand_symtabs_symbol_matcher_ftype)
1742 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1743 Move to quick-symbol.h.
1744 * quick-symbol.h: New file.
1746 2021-03-20 Tom Tromey <tom@tromey.com>
1748 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1749 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1750 (basic_lookup_transparent_type_quick)
1751 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1752 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1754 * symmisc.c (print_objfile_statistics, dump_objfile)
1755 (maintenance_expand_symtabs): Update.
1756 * symfile.c (symbol_file_add_with_addrs)
1757 (expand_symtabs_matching, map_symbol_filenames): Update.
1758 * symfile-debug.c (objfile::has_partial_symbols)
1759 (objfile::find_last_source_symtab)
1760 (objfile::forget_cached_source_info)
1761 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1762 (objfile::print_stats, objfile::dump)
1763 (objfile::expand_symtabs_for_function)
1764 (objfile::expand_all_symtabs)
1765 (objfile::expand_symtabs_with_fullname)
1766 (objfile::map_matching_symbols)
1767 (objfile::expand_symtabs_matching)
1768 (objfile::find_pc_sect_compunit_symtab)
1769 (objfile::map_symbol_filenames)
1770 (objfile::find_compunit_symtab_by_address)
1771 (objfile::lookup_global_symbol_language): New methods.
1772 (debug_sym_quick_functions): Remove.
1773 (debug_sym_fns, install_symfile_debug_logging): Update.
1774 * source.c (forget_cached_source_info_for_objfile)
1775 (select_source_symtab): Update.
1776 * objfiles.h (struct objfile): Add methods corresponding to
1777 quick_symbol_functions.
1778 * objfiles.c (objfile::has_partial_symbols): Move to
1780 * linespec.c (iterate_over_all_matching_symtabs): Update.
1781 * cp-support.c (add_symbol_overload_list_qualified): Update.
1782 * ada-lang.c (add_nonlocal_symbols): Update.
1784 2021-03-20 Tom Tromey <tom@tromey.com>
1786 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1787 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1789 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1790 * psymtab.c (psym_has_symbols): Return bool.
1791 * objfiles.c (objfile::has_partial_symbols): Return bool.
1792 * dwarf2/read.c (dw2_has_symbols): Return bool.
1794 2021-03-20 Tom Tromey <tom@tromey.com>
1796 * symfile.c (read_symbols): Update.
1797 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1798 (objfile_has_partial_symbols): Don't declare.
1799 * objfiles.c (objfile::has_partial_symbols): Rename from
1800 objfile_has_partial_symbols.
1801 (objfile_has_symbols, have_partial_symbols): Update.
1802 * elfread.c (elf_symfile_read): Update.
1803 * dwarf2/read.c (dwarf2_has_info): Update.
1804 * coffread.c (coff_symfile_read): Update.
1806 2021-03-20 Tom Tromey <tom@tromey.com>
1808 * coffread.c: Include dwarf2/public.h.
1809 * dwarf2/frame.c: Include dwarf2/public.h.
1810 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1811 * dwarf2/public.h: New file.
1812 * dwarf2/read.c: Include dwarf2/public.h.
1813 * elfread.c: Include dwarf2/public.h.
1814 * machoread.c: Include dwarf2/public.h.
1815 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1816 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1817 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1818 * xcoffread.c: Include dwarf2/public.h.
1820 2021-03-20 Tom Tromey <tom@tromey.com>
1822 * symfile.h (enum dwarf2_section_enum)
1823 (dwarf2_get_section_info): Move to dwarf2/read.h.
1824 * dwarf2/read.h (enum dwarf2_section_enum)
1825 (dwarf2_get_section_info): Move from symfile.h.
1827 2021-03-19 Pedro Alves <pedro@palves.net>
1829 * thread.c (any_thread_of_inferior): Check if there's a selected
1830 thread before calling inferior_thread().
1832 2021-03-18 Tom Tromey <tromey@adacore.com>
1834 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1836 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1837 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1839 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1841 * python/py-param.c (get_set_value): Update header comment.
1843 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
1845 * infrun.c (check_multi_target_resumption): Remove argument to
1846 all_non_exited_inferiors.
1848 2021-03-16 Christian Biesinger <cbiesinger@google.com>
1850 * windows-nat.c (windows_init_thread_list): Add message to
1853 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
1855 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1856 well as PyLong_Check for Python 2.
1858 2021-03-15 Tom Tromey <tromey@adacore.com>
1861 * rust-exp.y (maker_map): Use gdb::hash_enum.
1862 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1864 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1866 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1869 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1871 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1872 parameter, adjust caller.
1874 2021-03-15 Tom Tromey <tromey@adacore.com>
1876 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1878 2021-03-15 Tom Tromey <tromey@adacore.com>
1880 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1881 ada_ensure_varsize_limit.
1883 2021-03-15 Tom Tromey <tromey@adacore.com>
1885 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1887 * ada-exp.y (maybe_overload): New function.
1888 (ada_wrap_overload): New function.
1889 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1890 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1891 (or_else_exp, xor_exp, primary): Update.
1893 2021-03-15 Tom Tromey <tromey@adacore.com>
1896 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1897 call for tagged type.
1899 2021-03-15 Tom Tromey <tromey@adacore.com>
1901 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1904 2021-03-15 Tom Tromey <tromey@adacore.com>
1906 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1908 (ada_assign_operation::evaluate): Update.
1909 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1912 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
1914 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1916 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
1918 * python/python.c (gdbpy_source_objfile_script): Use
1919 make_scoped_restore to restore gdbpy_current_objfile.
1920 (gdbpy_execute_objfile_script): Likewise.
1922 2021-03-14 Tom Tromey <tom@tromey.com>
1924 * dwarf2/read.c (read_attribute_value): Use cu_header
1927 2021-03-14 Tom Tromey <tom@tromey.com>
1929 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1930 (peek_die_abbrev): Use reader.abfd.
1932 2021-03-14 Tom Tromey <tom@tromey.com>
1934 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1937 2021-03-13 Tom Tromey <tom@tromey.com>
1939 * dwarf2/read.c (struct partial_die_info): Update.
1940 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1941 (load_partial_dies, partial_die_info::partial_die_info): Update.
1942 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1944 2021-03-13 Tom Tromey <tom@tromey.com>
1946 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1948 2021-03-12 Christian Biesinger <cbiesinger@google.com>
1951 * cp-support.c: Use scoped_segv_handler_restore.
1952 * event-top.c (thread_local_segv_handler): Made static.
1953 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1955 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1957 * event-top.h (class scoped_segv_handler_restore): New class.
1958 (thread_local_segv_handler): Removed.
1960 2021-03-10 Tom Tromey <tromey@adacore.com>
1962 * parser-defs.h (parser_state): Change completion to bool.
1963 <parse_completion>: Likewise.
1964 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1965 (ada_resolve_variable, ada_resolve_function): Update.
1966 * ada-lang.c (ada_find_operator_symbol): Change
1967 parse_completion to bool.
1968 (ada_resolve_funcall, ada_resolve_variable)
1969 (ada_resolve_function): Likewise.
1971 2021-03-09 Tom Tromey <tromey@adacore.com>
1973 * eval.c (operation::evaluate_funcall): Use function formal
1974 parameter types when evaluating.
1976 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1978 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1979 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1980 and owner to m_owner.
1982 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1984 * f-exp.h (eval_op_f_loc): Declare.
1985 (expr::fortran_loc_operation): New typedef.
1986 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1988 (f77_keywords): Add LOC keyword.
1989 * f-lang.c (eval_op_f_loc): New function.
1990 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1992 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1994 * f-exp.h (eval_op_f_array_shape): Declare.
1995 (fortran_array_shape_operation): New type.
1996 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1998 (f77_keywords): Add "shape" keyword.
1999 * f-lang.c (fortran_array_shape): New function.
2000 (eval_op_f_array_shape): New function.
2001 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2003 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2005 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2007 (expr::fortran_array_size_1arg): New type.
2008 (expr::fortran_array_size_2arg): Likewise.
2009 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2010 UNOP_OR_BINOP_INTRINSIC.
2011 (f77_keywords): Add "size" keyword.
2012 * f-lang.c (fortran_array_size): New function.
2013 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2014 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2016 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2018 * f-exp.h (eval_op_f_rank): Declare.
2019 (expr::fortran_rank_operation): New typedef.
2020 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2022 (f77_keywords): Add "rank" keyword.
2023 * f-lang.c (eval_op_f_rank): New function.
2024 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2026 2021-03-08 Tom Tromey <tom@tromey.com>
2028 * printcmd.c (set_command): Remove null check.
2029 * value.c (init_if_undefined_command): Remove null check.
2031 2021-03-08 Tom Tromey <tom@tromey.com>
2033 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2035 * p-exp.y (variable): Update.
2036 * go-exp.y (variable): Update.
2037 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2038 Remove overload for objfile.
2039 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2041 (check_objfile): Likewise.
2042 (dump_for_expression): Likewise. Remove overload for objfile.
2043 (class var_msym_value_operation): Use bound_minimal_symbol.
2044 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2046 (var_msym_value_operation::evaluate_for_address)
2047 (var_msym_value_operation::evaluate_for_sizeof)
2048 (var_msym_value_operation::evaluate_for_cast): Update.
2049 * d-exp.y (PrimaryExpression): Update.
2050 * c-exp.y (variable): Update.
2051 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2052 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2054 * ada-exp.y (write_var_or_type): Update.
2056 2021-03-08 Tom Tromey <tom@tromey.com>
2058 * parser-defs.h (exp_uses_objfile): Return bool.
2059 * parse.c (exp_uses_objfile): Return bool.
2061 2021-03-08 Tom Tromey <tom@tromey.com>
2063 * value.h (eval_skip_value): Don't declare.
2064 * opencl-lang.c (eval_opencl_assign): Update.
2065 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2066 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2067 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2068 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2069 * expop.h (typeof_operation::evaluate)
2070 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2071 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2072 (cxx_cast_operation::evaluate): Update.
2073 * eval.c (eval_skip_value): Remove.
2074 (eval_op_scope, eval_op_var_entry_value)
2075 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2076 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2077 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2078 (eval_op_binary, eval_op_subscript, eval_op_equal)
2079 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2080 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2081 (eval_op_complement, eval_op_lognot, eval_op_ind)
2082 (eval_op_memval, eval_op_preinc, eval_op_predec)
2083 (eval_op_postinc, eval_op_postdec, eval_op_type)
2084 (eval_binop_assign_modify, eval_op_objc_msgcall)
2085 (eval_multi_subscript, logical_and_operation::evaluate)
2086 (logical_or_operation::evaluate, array_operation::evaluate)
2087 (operation::evaluate_for_cast)
2088 (var_msym_value_operation::evaluate_for_cast)
2089 (var_value_operation::evaluate_for_cast): Update.
2090 * c-lang.c (c_string_operation::evaluate): Update.
2091 * c-exp.h (objc_nsstring_operation::evaluate)
2092 (objc_selector_operation::evaluate): Update.
2093 * ada-lang.c (ada_assign_operation::evaluate)
2094 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2095 (ada_atr_size): Update.
2097 2021-03-08 Tom Tromey <tom@tromey.com>
2099 * eval.c: Merge "namespace" scopes.
2101 2021-03-08 Tom Tromey <tom@tromey.com>
2103 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2105 * parse.c (expr_builder::expr_builder, expr_builder::release):
2108 2021-03-08 Tom Tromey <tom@tromey.com>
2110 * parse.c (expression::expression, expression::~expression):
2112 * expression.h (struct expression): Inline constructor. Remove
2115 2021-03-08 Tom Tromey <tom@tromey.com>
2117 * std-operator.def (BINOP_END): Remove.
2118 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2119 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2120 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2121 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2122 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2125 2021-03-08 Tom Tromey <tom@tromey.com>
2127 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2129 2021-03-08 Tom Tromey <tom@tromey.com>
2131 * std-operator.def (OP_EXTENDED0): Remove.
2133 2021-03-08 Tom Tromey <tom@tromey.com>
2135 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2136 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2139 2021-03-08 Tom Tromey <tom@tromey.com>
2141 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2142 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2144 2021-03-08 Tom Tromey <tom@tromey.com>
2146 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2147 * ada-lang.c (ada_binop_minmax): Update.
2148 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2149 Use BINOP_MIN and BINOP_MAX.
2151 2021-03-08 Tom Tromey <tom@tromey.com>
2153 * value.h (evaluate_subexp_with_coercion): Don't declare.
2154 * parse.c (exp_descriptor_standard): Remove.
2155 (expr_builder::expr_builder, expr_builder::release): Update.
2156 (expression::expression): Remove size_t parameter.
2157 (expression::~expression): Simplify.
2158 (expression::resize): Remove.
2159 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2160 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2161 (write_exp_elt_longcst, write_exp_elt_floatcst)
2162 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2163 (write_exp_string_vector, write_exp_bitstring): Remove.
2164 * p-lang.h (class pascal_language) <opcode_print_table,
2165 op_print_tab>: Remove.
2166 * p-lang.c (pascal_language::op_print_tab): Remove.
2167 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2169 * objc-lang.c (objc_op_print_tab): Remove.
2170 (class objc_language) <opcode_print_table>: Remove.
2171 * m2-lang.h (class m2_language) <opcode_print_table,
2172 op_print_tab>: Remove.
2173 * m2-lang.c (m2_language::op_print_tab): Remove.
2174 * language.h (struct language_defn) <post_parser, expression_ops,
2175 opcode_print_table>: Remove.
2176 * language.c (language_defn::expression_ops)
2177 (auto_or_unknown_language::opcode_print_table): Remove.
2178 * go-lang.h (class go_language) <opcode_print_table,
2179 op_print_tab>: Remove.
2180 * go-lang.c (go_language::op_print_tab): Remove.
2181 * f-lang.h (class f_language) <opcode_print_table>: Remove
2182 <op_print_tab>: Remove.
2183 * f-lang.c (f_language::op_print_tab): Remove.
2184 * expression.h (union exp_element): Remove.
2185 (struct expression): Remove size_t parameter from constructor.
2187 <first_opcode>: Update.
2188 <nelts, elts>: Remove.
2189 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2190 (evaluate_subexp_standard, print_expression, op_string)
2191 (dump_raw_expression): Don't declare.
2192 * expprint.c (print_expression, print_subexp)
2193 (print_subexp_funcall, print_subexp_standard, op_string)
2194 (dump_raw_expression, dump_subexp, dump_subexp_body)
2195 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2196 (dump_prefix_expression): Update.
2197 * eval.c (evaluate_subexp): Remove.
2198 (evaluate_expression, evaluate_type): Update.
2199 (evaluate_subexpression_type): Remove.
2200 (fetch_subexp_value): Remove "pc" parameter. Update.
2201 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2202 (evaluate_subexp_standard, evaluate_subexp_for_address)
2203 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2204 (evaluate_subexp_for_cast): Remove.
2205 (parse_and_eval_type): Update.
2206 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2207 * d-lang.c (d_op_print_tab): Remove.
2208 (class d_language) <opcode_print_table>: Remove.
2209 * c-lang.h (c_op_print_tab): Don't declare.
2210 * c-lang.c (c_op_print_tab): Remove.
2211 (class c_language, class cplus_language, class asm_language, class
2212 minimal_language) <opcode_print_table>: Remove.
2213 * breakpoint.c (update_watchpoint, watchpoint_check)
2214 (watchpoint_exp_is_const, watch_command_1): Update.
2215 * ax-gdb.h (union exp_element): Don't declare.
2216 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2217 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2218 (gen_expr_binop_rest): Remove.
2219 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2220 * ada-lang.c (ada_op_print_tab): Remove.
2221 (class ada_language) <post_parser, opcode_print_table>: Remove.
2223 2021-03-08 Tom Tromey <tom@tromey.com>
2225 * go-lang.c (go_language::expression_ops): Don't declare.
2226 * go-lang.h (class go_language) <expression_ops>: Remove.
2227 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2229 (class opencl_language) <expression_ops>: Remove.
2230 * d-lang.c (class d_language) <expression_ops>: Remove.
2231 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2232 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2233 (class c_language, class cplus_language, class asm_language)
2234 (class minimal_language) <expression_ops>: Remove.
2236 2021-03-08 Tom Tromey <tom@tromey.com>
2238 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2239 (evaluate_subexp_type, assign_aggregate)
2240 (aggregate_assign_positional, aggregate_assign_from_choices)
2241 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2242 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2243 (ada_operator_check, ada_forward_operator_length)
2244 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2246 (post_parser): Update.
2247 (class ada_language) <expresssion_ops>: Remove.
2249 2021-03-08 Tom Tromey <tom@tromey.com>
2251 * m2-lang.h (class m2_language) <expresssion_ops,
2252 exp_descriptor_modula2>: Remove.
2253 * m2-lang.c (evaluate_subexp_modula2)
2254 (m2_language::exp_descriptor_modula2): Remove.
2256 2021-03-08 Tom Tromey <tom@tromey.com>
2258 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2259 <exp_descriptor_tab>: Remove.
2260 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2261 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2262 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2263 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2266 2021-03-08 Tom Tromey <tom@tromey.com>
2268 * rust-lang.h (class rust_language) <expression_ops,
2269 exp_descriptor_tab>: Remove.
2270 * rust-lang.c (rust_evaluate_funcall): Remove.
2271 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2273 (rust_evaluate_subexp): Remove.
2274 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2275 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2276 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2278 2021-03-08 Tom Tromey <tom@tromey.com>
2280 * ada-exp.y: Create operations.
2281 (empty_stoken): Remove.
2282 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2283 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2284 (components): New global.
2285 (push_component, choice_component, pop_component, pop_components):
2287 (associations): New global
2288 (push_association, pop_association, pop_associations): New
2290 (ada_parse): Update.
2291 (write_var_from_sym, write_int): Create operations.
2292 (write_exp_op_with_string): Remove.
2293 (write_object_renaming, write_selectors, write_ambiguous_var)
2294 (write_var_or_type, write_name_assoc): Create operations.
2295 * ada-lang.h (ada_index_type): Declare.
2296 * ada-lang.c (ada_index_type): No longer static.
2298 2021-03-08 Tom Tromey <tom@tromey.com>
2300 * f-exp.y: Create operations.
2301 (f_language::parser): Update.
2303 2021-03-08 Tom Tromey <tom@tromey.com>
2305 * m2-exp.y: Create operations.
2306 (m2_language::parser): Update.
2308 2021-03-08 Tom Tromey <tom@tromey.com>
2310 * p-exp.y: Create operations.
2311 (pascal_language::parser): Update.
2313 2021-03-08 Tom Tromey <tom@tromey.com>
2315 * d-exp.y: Create operations.
2318 2021-03-08 Tom Tromey <tom@tromey.com>
2320 * go-exp.y: Create operations.
2321 (go_language::parser): Update.
2323 2021-03-08 Tom Tromey <tom@tromey.com>
2325 * objc-lang.c (end_msglist): Create operations.
2326 * c-exp.y: Change parser to create operations.
2327 (write_destructor_name): Remove.
2330 2021-03-08 Tom Tromey <tom@tromey.com>
2332 * rust-exp.y: Create operations.
2333 (rust_parser::convert_params_to_expression): Change return type.
2334 (binop_maker_ftype): New typedef.
2335 (maker_map): New global.
2336 (rust_parser::convert_ast_to_expression): Change return type.
2337 (rust_language::parser): Update.
2338 (_initialize_rust_exp): Initialize maker_map.
2340 2021-03-08 Tom Tromey <tom@tromey.com>
2342 * stap-probe.c (binop_maker_ftype): New typedef.
2343 (stap_maker_map): New global.
2344 (stap_make_binop): New function.
2345 (stap_parse_register_operand): Return operation_up.
2346 (stap_parse_single_operand, stap_parse_argument_conditionally)
2347 (stap_parse_argument_1): Likewise.
2348 (stap_parse_argument): Create operations.
2349 (stap_probe::parse_arguments): Update.
2350 (_initialize_stap_probe): Initialize stap_maker_map.
2351 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2353 * i386-tdep.h (i386_stap_parse_special_token): Change return
2355 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2356 (i386_stap_parse_special_token_three_arg_disp)
2357 (i386_stap_parse_special_token): Change return type.
2358 * gdbarch.sh (stap_parse_special_token): Change return type.
2359 * gdbarch.c: Rebuild.
2360 * gdbarch.h: Rebuild.
2361 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2363 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2366 2021-03-08 Tom Tromey <tom@tromey.com>
2368 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2369 * gdbarch.h: Rebuild.
2370 * gdbarch.c: Rebuild.
2371 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2372 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2374 (amd64_dtrace_parse_probe_argument): Update.
2376 2021-03-08 Tom Tromey <tom@tromey.com>
2378 * parser-defs.h (struct parser_state) <push, push_new,
2379 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2380 wrap2>: New methods.
2381 <m_operations>: New member.
2382 * parse.c (parser_state::push_c_string)
2383 (parser_state::push_symbol, parser_state::push_dollar): New
2386 2021-03-08 Tom Tromey <tom@tromey.com>
2388 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2390 (struct parser_state) <mark_struct_expression>: New method.
2391 * parse.c (parser_state::mark_struct_expression): Update assert.
2392 (parser_state::mark_struct_expression): New method.
2393 (parser_state::mark_completion_tag): Update assert.
2394 (parse_expression_for_completion): Handle expout_last_op.
2396 2021-03-08 Tom Tromey <tom@tromey.com>
2398 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2400 * value.h (fetch_subexp_value): Add "op" parameter.
2401 * value.c (init_if_undefined_command): Update.
2402 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2403 * stap-probe.c (stap_probe::compile_to_ax): Update.
2404 * printcmd.c (set_command): Update.
2405 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2407 * parser-defs.h (struct expr_builder) <set_operation>: New
2409 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2410 * expression.h (struct expression) <first_opcode>: Update.
2412 * expprint.c (dump_raw_expression, dump_prefix_expression):
2414 * expop.h (class var_value_operation) <get_symbol>: New method.
2415 (class register_operation) <get_name>: New method.
2416 (class equal_operation): No longer a typedef, now a subclass.
2417 (class unop_memval_operation) <get_type>: New method.
2418 (class assign_operation) <get_lhs>: New method.
2419 (class unop_cast_operation) <get_type>: New method.
2420 * eval.c (evaluate_expression, evaluate_type)
2421 (evaluate_subexpression_type): Update.
2422 (fetch_subexp_value): Add "op" parameter.
2423 (parse_and_eval_type): Update.
2424 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2425 * breakpoint.c (update_watchpoint, watchpoint_check)
2426 (watchpoint_exp_is_const, watch_command_1): Update.
2427 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2430 2021-03-08 Tom Tromey <tom@tromey.com>
2432 * ada-lang.c (ada_value_binop): Do not use op_string.
2434 2021-03-08 Tom Tromey <tom@tromey.com>
2436 * expprint.c (dump_for_expression): New overload.
2437 * expop.h (check_objfile, dump_for_expression): Declare new
2439 * ada-lang.c (check_objfile): New overload.
2440 (assign_component, ada_aggregate_component::uses_objfile)
2441 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2442 (ada_aggregate_component::assign_aggregate)
2443 (ada_positional_component::uses_objfile)
2444 (ada_positional_component::dump, ada_positional_component::assign)
2445 (ada_discrete_range_association::uses_objfile)
2446 (ada_discrete_range_association::dump)
2447 (ada_discrete_range_association::assign)
2448 (ada_name_association::uses_objfile, ada_name_association::dump)
2449 (ada_name_association::assign)
2450 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2451 (ada_choices_component::assign)
2452 (ada_others_component::uses_objfile, ada_others_component::dump)
2453 (ada_others_component::assign, ada_assign_operation::evaluate):
2455 * ada-exp.h (ada_string_operation) <get_name>: New method.
2456 (class ada_assign_operation): New.
2457 (class ada_component): New.
2458 (ada_component_up): New typedef.
2459 (class ada_aggregate_operation, class ada_aggregate_component)
2460 (class ada_positional_component, class ada_others_component)
2461 (class ada_association): New.
2462 (ada_association_up): New typedef.
2463 (class ada_choices_component)
2464 (class ada_discrete_range_association)
2465 (class ada_name_association): New.
2467 2021-03-08 Tom Tromey <tom@tromey.com>
2469 * ada-lang.c (ada_var_value_operation::resolve)
2470 (ada_funcall_operation::resolve)
2471 (ada_ternop_slice_operation::resolve): New methods.
2472 * ada-exp.h (struct ada_resolvable): New.
2473 (class ada_var_value_operation): Derive from ada_resolvable.
2474 <get_block, resolve>: New methods.
2475 (class ada_funcall_operation): Derive from ada_resolvable.
2476 <resolve>: New method.
2477 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2478 <resolve>: New method.
2480 2021-03-08 Tom Tromey <tom@tromey.com>
2482 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2483 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2485 (class ada_funcall_operation): New.
2487 2021-03-08 Tom Tromey <tom@tromey.com>
2489 * ada-lang.c (ada_structop_operation::evaluate): New method.
2490 * ada-exp.h (class ada_structop_operation): New.
2492 2021-03-08 Tom Tromey <tom@tromey.com>
2494 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2495 * ada-exp.h (class ada_unop_ind_operation): New.
2497 2021-03-08 Tom Tromey <tom@tromey.com>
2499 * ada-lang.c (ada_binop_exp): No longer static.
2500 * ada-exp.h (ada_binop_exp_operation): New typedef.
2502 2021-03-08 Tom Tromey <tom@tromey.com>
2504 * ada-lang.c (ada_val_atr): No longer static.
2505 (ada_atr_val_operation::evaluate): New method.
2506 * ada-exp.h (class ada_atr_val_operation): New.
2508 2021-03-08 Tom Tromey <tom@tromey.com>
2510 * ada-lang.c (ada_pos_atr): No longer static.
2511 * ada-exp.h (ada_pos_operation): New typedef.
2513 2021-03-08 Tom Tromey <tom@tromey.com>
2515 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2517 (ada_evaluate_subexp): Use it.
2519 2021-03-08 Tom Tromey <tom@tromey.com>
2521 * ada-lang.c (ada_binop_minmax): No longer static.
2522 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2525 2021-03-08 Tom Tromey <tom@tromey.com>
2527 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2529 * ada-exp.h (class ada_var_msym_value_operation): New.
2531 2021-03-08 Tom Tromey <tom@tromey.com>
2533 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2534 (ada_var_value_operation::evaluate): New methods.
2535 * ada-exp.h (class ada_var_value_operation): New.
2537 2021-03-08 Tom Tromey <tom@tromey.com>
2539 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2540 * ada-exp.h (class ada_unop_atr_operation): New.
2542 2021-03-08 Tom Tromey <tom@tromey.com>
2544 * ada-lang.c (ada_binop_in_bounds): No longer static.
2545 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2547 2021-03-08 Tom Tromey <tom@tromey.com>
2549 * ada-lang.c (ada_ternop_slice): No longer static.
2550 * ada-exp.h (class ada_ternop_slice_operation): New.
2552 2021-03-08 Tom Tromey <tom@tromey.com>
2554 * ada-exp.h (ada_bitwise_operation): New template class.
2555 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2556 (ada_bitwise_xor_operation): New typedefs.
2558 2021-03-08 Tom Tromey <tom@tromey.com>
2560 * ada-lang.c (ada_equal_binop): No longer static.
2561 * ada-exp.h (class ada_binop_equal_operation): New.
2563 2021-03-08 Tom Tromey <tom@tromey.com>
2565 * ada-lang.c (ada_mult_binop): No longer static.
2566 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2567 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2569 2021-03-08 Tom Tromey <tom@tromey.com>
2571 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2572 * ada-exp.h (class ada_binop_addsub_operation): New.
2574 2021-03-08 Tom Tromey <tom@tromey.com>
2576 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2577 (ada_resolve_variable): Declare.
2578 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2579 (ada_resolve_variable): New functions.
2580 (resolve_subexp): Update.
2582 2021-03-08 Tom Tromey <tom@tromey.com>
2584 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2586 * c-exp.h (class opencl_ternop_cond_operation): New.
2588 2021-03-08 Tom Tromey <tom@tromey.com>
2590 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2592 * c-exp.h (class opencl_logical_binop_operation): New.
2594 2021-03-08 Tom Tromey <tom@tromey.com>
2596 * opencl-lang.c (opencl_structop_operation::evaluate): New
2598 * c-exp.h (class opencl_structop_operation): New.
2600 2021-03-08 Tom Tromey <tom@tromey.com>
2602 * opencl-lang.c (opencl_logical_not): No longer static. Change
2604 (evaluate_subexp_opencl): Update.
2605 * c-exp.h (opencl_notequal_operation): New typedef.
2607 2021-03-08 Tom Tromey <tom@tromey.com>
2609 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2610 static. Change parameters.
2611 (eval_opencl_assign): No longer static. Add "op" parameter.
2612 (evaluate_subexp_opencl): Update.
2613 * c-exp.h (opencl_binop_operation): New template class.
2614 (opencl_assign_operation, opencl_equal_operation)
2615 (opencl_notequal_operation, opencl_less_operation)
2616 (opencl_gtr_operation, opencl_geq_operation)
2617 (opencl_leq_operation): New typedefs.
2619 2021-03-08 Tom Tromey <tom@tromey.com>
2621 * opencl-lang.c (opencl_value_cast): No longer static.
2622 * c-exp.h (opencl_cast_type_operation): New typedef.
2624 2021-03-08 Tom Tromey <tom@tromey.com>
2626 * f-exp.h (eval_op_f_allocated): Declare.
2627 (fortran_allocated_operation): New typedef.
2628 * f-lang.c (eval_op_f_allocated): No longer static.
2630 2021-03-08 Tom Tromey <tom@tromey.com>
2632 * f-lang.c (eval_op_f_associated): New functions.
2633 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2636 2021-03-08 Tom Tromey <tom@tromey.com>
2638 * f-lang.c (fortran_bound_1arg::evaluate)
2639 (fortran_bound_2arg::evaluate): New methods.
2640 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2643 2021-03-08 Tom Tromey <tom@tromey.com>
2645 * expop.h (class unop_addr_operation) <get_expression>: New
2647 * f-lang.c (fortran_undetermined::value_subarray)
2648 (fortran_undetermined::evaluate): New methods.
2649 (fortran_prepare_argument): New overload.
2650 * f-exp.h (class fortran_range_operation)
2651 (class fortran_undetermined): New classes.
2653 2021-03-08 Tom Tromey <tom@tromey.com>
2655 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2656 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2659 2021-03-08 Tom Tromey <tom@tromey.com>
2661 * expression.h (class operation) <evaluate_funcall>: New methods.
2662 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2663 (class var_value_operation) <evaluate_funcall>: New method.
2664 (class structop_base_operation) <evaluate_funcall>: New method.
2665 (class var_msym_value_operation) <evaluate_funcall>: New method.
2666 (class structop_member_base): New class.
2667 (class structop_member_operation): Derive from
2668 structop_member_base.
2669 (class structop_mptr_operation): Derive from
2670 structop_member_base.
2671 (class funcall_operation): New class.
2672 * eval.c (operation::evaluate_funcall)
2673 (var_value_operation::evaluate_funcall)
2674 (scope_operation::evaluate_funcall)
2675 (structop_member_base::evaluate_funcall)
2676 (structop_base_operation::evaluate_funcall): New methods.
2678 2021-03-08 Tom Tromey <tom@tromey.com>
2680 * expop.h (class array_operation): New.
2681 * eval.c (array_operation::evaluate_struct_tuple)
2682 (array_operation::evaluate): New methods.
2684 2021-03-08 Tom Tromey <tom@tromey.com>
2686 * expop.h (class adl_func_operation): New.
2687 * eval.c (adl_func_operation::evaluate): New method.
2689 2021-03-08 Tom Tromey <tom@tromey.com>
2691 * ada-lang.c (ada_unop_in_range): No longer static.
2692 * ada-exp.h (class ada_unop_range_operation): New.
2694 2021-03-08 Tom Tromey <tom@tromey.com>
2696 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2698 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2699 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2701 2021-03-08 Tom Tromey <tom@tromey.com>
2703 * expop.h (class logical_and_operation)
2704 (class logical_or_operation): New.
2705 * eval.c (logical_and_operation::evaluate)
2706 (logical_or_operation::evaluate): New methods.
2707 * ax-gdb.c (logical_and_operation::do_generate_ax)
2708 (logical_or_operation::do_generate_ax): New methods.
2710 2021-03-08 Tom Tromey <tom@tromey.com>
2712 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2714 * m2-exp.h: New file.
2716 2021-03-08 Tom Tromey <tom@tromey.com>
2718 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2719 * rust-exp.h (class rust_aggregate_operation): New.
2721 2021-03-08 Tom Tromey <tom@tromey.com>
2723 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2725 * rust-exp.h (class rust_struct_anon): New.
2726 (class rust_structop): New.
2728 2021-03-08 Tom Tromey <tom@tromey.com>
2730 * rust-lang.c (rust_range): No longer static.
2731 * rust-exp.h (class rust_range_operation): New.
2733 2021-03-08 Tom Tromey <tom@tromey.com>
2735 * rust-lang.c (rust_subscript): No longer static.
2736 * rust-exp.h (class rust_subscript_operation): New.
2738 2021-03-08 Tom Tromey <tom@tromey.com>
2740 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2742 (rust_evaluate_subexp): Update.
2743 * rust-exp.h (class rust_unop_ind_operation): New.
2745 2021-03-08 Tom Tromey <tom@tromey.com>
2747 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2748 longer static. Add "opcode" parameter.
2749 (rust_evaluate_subexp): Update.
2750 * rust-exp.h: New file.
2752 2021-03-08 Tom Tromey <tom@tromey.com>
2754 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2755 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2756 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2757 (evaluate_subexp_f): Update.
2758 * f-exp.h: New file.
2760 2021-03-08 Tom Tromey <tom@tromey.com>
2762 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2763 * ada-exp.h (class ada_ternop_range_operation): New.
2765 2021-03-08 Tom Tromey <tom@tromey.com>
2767 * ada-lang.c (ada_qual_operation::evaluate): New method.
2768 * ada-exp.h (class ada_qual_operation): New.
2770 2021-03-08 Tom Tromey <tom@tromey.com>
2772 * ada-lang.c (ada_string_operation::evaluate): New method.
2773 * ada-exp.h (class ada_string_operation): New.
2775 2021-03-08 Tom Tromey <tom@tromey.com>
2777 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2778 * ada-exp.h: New file.
2780 2021-03-08 Tom Tromey <tom@tromey.com>
2782 * expop.h (class multi_subscript_operation): New.
2783 * eval.c (multi_subscript_operation::evaluate): New method.
2785 2021-03-08 Tom Tromey <tom@tromey.com>
2787 * eval.c (objc_msgcall_operation::evaluate): New method.
2788 * c-exp.h (class objc_msgcall_operation): New.
2790 2021-03-08 Tom Tromey <tom@tromey.com>
2792 * expop.h (class var_value_operation): New.
2793 * eval.c (var_value_operation::evaluate)
2794 (var_value_operation::evaluate_for_address)
2795 (var_value_operation::evaluate_with_coercion)
2796 (var_value_operation::evaluate_for_sizeof)
2797 (var_value_operation::evaluate_for_cast): New methods.
2798 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2800 2021-03-08 Tom Tromey <tom@tromey.com>
2802 * expop.h (cxx_cast_ftype): New typedef.
2803 (cxx_cast_operation): New template.
2804 (dynamic_cast_operation, reinterpret_cast_operation): New
2807 2021-03-08 Tom Tromey <tom@tromey.com>
2809 * expop.h (class unop_cast_type_operation): New.
2810 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2813 2021-03-08 Tom Tromey <tom@tromey.com>
2815 * expop.h (class unop_cast_operation): New.
2816 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2818 2021-03-08 Tom Tromey <tom@tromey.com>
2820 * expop.h (class assign_modify_operation): New.
2821 * eval.c (eval_binop_assign_modify): No longer static.
2822 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2824 2021-03-08 Tom Tromey <tom@tromey.com>
2826 * expop.h (class assign_operation): New.
2827 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2829 2021-03-08 Tom Tromey <tom@tromey.com>
2831 * expop.h (class type_instance_operation): New.
2832 * eval.c (type_instance_operation::evaluate): New method.
2834 2021-03-08 Tom Tromey <tom@tromey.com>
2836 * expop.h (class op_this_operation): New.
2837 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2839 2021-03-08 Tom Tromey <tom@tromey.com>
2841 * expop.h (class unop_memval_operation)
2842 (class unop_memval_type_operation): New.
2843 * eval.c (eval_op_memval): No longer static.
2844 (unop_memval_operation::evaluate_for_address)
2845 (unop_memval_type_operation::evaluate_for_address)
2846 (unop_memval_operation::evaluate_for_sizeof)
2847 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2848 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2849 (unop_memval_type_operation::do_generate_ax): New methods.
2851 2021-03-08 Tom Tromey <tom@tromey.com>
2853 * expop.h (class unop_alignof_operation): New.
2854 * eval.c (eval_op_alignof): No longer static.
2856 2021-03-08 Tom Tromey <tom@tromey.com>
2858 * expop.h (class unop_sizeof_operation): New.
2859 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2861 2021-03-08 Tom Tromey <tom@tromey.com>
2863 * expop.h (class unop_addr_operation): New.
2864 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2866 2021-03-08 Tom Tromey <tom@tromey.com>
2868 * expop.h (class typeid_operation): New.
2870 2021-03-08 Tom Tromey <tom@tromey.com>
2872 * expop.h (class decltype_operation): New.
2874 2021-03-08 Tom Tromey <tom@tromey.com>
2876 * expop.h (class typeof_operation): New.
2878 2021-03-08 Tom Tromey <tom@tromey.com>
2880 * expop.h (class type_operation): New.
2881 * eval.c (eval_op_type): No longer static.
2883 2021-03-08 Tom Tromey <tom@tromey.com>
2885 * expop.h (class unop_ind_base_operation)
2886 (class unop_ind_operation): New.
2887 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2888 (unop_ind_base_operation::evaluate_for_address)
2889 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2890 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2892 2021-03-08 Tom Tromey <tom@tromey.com>
2894 * expop.h (unop_incr_operation): New template.
2895 (preinc_operation, predec_operation, postinc_operation)
2896 (postdec_operation): New typedefs.
2897 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2898 (eval_op_postdec): No longer static.
2900 2021-03-08 Tom Tromey <tom@tromey.com>
2902 * expop.h (unary_ftype): New typedef.
2903 (unop_operation, usual_ax_binop_operation): New templates.
2904 (unary_plus_operation, unary_neg_operation)
2905 (unary_complement_operation, unary_logical_not_operation): New
2907 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2908 (eval_op_lognot): No longer static.
2909 * ax-gdb.c (gen_expr_unop): New function.
2911 2021-03-08 Tom Tromey <tom@tromey.com>
2913 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2915 2021-03-08 Tom Tromey <tom@tromey.com>
2917 * expop.h (class repeat_operation): New.
2918 * eval.c (eval_op_repeat): No longer static. Remove "op"
2920 (evaluate_subexp_standard): Update.
2921 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2923 2021-03-08 Tom Tromey <tom@tromey.com>
2925 * expop.h (class comparison_operation): New.
2926 (equal_operation, notequal_operation, less_operation)
2927 (gtr_operation, geq_operation, leq_operation): New typedefs.
2928 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2929 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2931 2021-03-08 Tom Tromey <tom@tromey.com>
2933 * expop.h (class subscript_operation): New.
2934 * eval.c (eval_op_subscript): No longer static.
2936 2021-03-08 Tom Tromey <tom@tromey.com>
2938 * expop.h (class binop_operation, class usual_ax_binop_operation):
2940 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2941 (div_operation, rem_operation, lsh_operation, rsh_operation)
2942 (bitwise_and_operation, bitwise_ior_operation)
2943 (bitwise_xor_operation): New typedefs.
2944 * eval.c (eval_op_binary): No longer static.
2946 2021-03-08 Tom Tromey <tom@tromey.com>
2948 * expop.h (class sub_operation): New.
2949 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2950 (evaluate_subexp_standard): Update.
2952 2021-03-08 Tom Tromey <tom@tromey.com>
2954 * expop.h (class add_operation): New.
2955 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2956 (evaluate_subexp_standard): Update.
2958 2021-03-08 Tom Tromey <tom@tromey.com>
2960 * expop.h (class concat_operation): New.
2961 * eval.c (eval_op_concat): No longer static. Remove "op"
2963 (evaluate_subexp_standard): Update.
2965 2021-03-08 Tom Tromey <tom@tromey.com>
2967 * expop.h (class structop_member_operation)
2968 (class structop_mptr_operation): New.
2969 * eval.c (eval_op_member): No longer static.
2971 2021-03-08 Tom Tromey <tom@tromey.com>
2973 * expop.h (class structop_ptr_operation): New.
2974 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2977 2021-03-08 Tom Tromey <tom@tromey.com>
2979 * expop.h (class structop_base_operation)
2980 (class structop_operation): New.
2981 * eval.c (eval_op_structop_struct): No longer static.
2983 2021-03-08 Tom Tromey <tom@tromey.com>
2985 * expop.h (class complex_operation): New.
2987 2021-03-08 Tom Tromey <tom@tromey.com>
2989 * eval.c (eval_op_objc_selector): No longer static.
2990 * c-exp.h (class objc_selector_operation): New.
2992 2021-03-08 Tom Tromey <tom@tromey.com>
2994 * eval.c: Include c-exp.h.
2995 * c-exp.h (class objc_nsstring_operation): New.
2997 2021-03-08 Tom Tromey <tom@tromey.com>
2999 * c-lang.c (c_string_operation::evaluate): New method.
3000 * c-exp.h: New file.
3002 2021-03-08 Tom Tromey <tom@tromey.com>
3004 * expop.h (class ternop_cond_operation): New.
3005 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3007 2021-03-08 Tom Tromey <tom@tromey.com>
3009 * expop.h (class ternop_slice_operation): New.
3010 * eval.c (eval_op_ternop): No longer static.
3012 2021-03-08 Tom Tromey <tom@tromey.com>
3014 * expop.h (class string_operation): New.
3015 * eval.c (eval_op_string): No longer static.
3017 2021-03-08 Tom Tromey <tom@tromey.com>
3019 * expop.h (class internalvar_operation): New.
3020 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3022 2021-03-08 Tom Tromey <tom@tromey.com>
3024 * expop.h (class bool_operation): New.
3026 2021-03-08 Tom Tromey <tom@tromey.com>
3028 * expop.h (class register_operation): New.
3029 * eval.c (eval_op_register): No longer static.
3030 * ax-gdb.c (register_operation::do_generate_ax): New method.
3032 2021-03-08 Tom Tromey <tom@tromey.com>
3034 * expop.h (class last_operation): New.
3036 2021-03-08 Tom Tromey <tom@tromey.com>
3038 * expop.h (class func_static_var_operation): New.
3039 * eval.c (eval_op_func_static_var): No longer static.
3041 2021-03-08 Tom Tromey <tom@tromey.com>
3043 * expop.h (class var_entry_value_operation): New.
3044 * eval.c (eval_op_var_entry_value): No longer static.
3046 2021-03-08 Tom Tromey <tom@tromey.com>
3048 * expression.h (class operation) <set_outermost>: New method.
3049 * expop.h (class var_msym_value_operation): New.
3050 * eval.c (eval_op_var_msym_value): No longer static.
3051 (var_msym_value_operation::evaluate_for_address)
3052 (var_msym_value_operation::evaluate_for_sizeof)
3053 (var_msym_value_operation::evaluate_for_cast): New methods.
3054 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3057 2021-03-08 Tom Tromey <tom@tromey.com>
3059 * expop.h (class long_const_operation): New.
3060 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3062 2021-03-08 Tom Tromey <tom@tromey.com>
3064 * expop.h (class scope_operation): New.
3065 * eval.c (eval_op_scope): No longer static.
3066 (scope_operation::evaluate_for_address): New method.
3067 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3069 2021-03-08 Tom Tromey <tom@tromey.com>
3071 * expprint.c (float_const_operation::dump): New method.
3072 * expop.h (float_data): New typedef.
3073 (class float_const_operation): New.
3075 2021-03-08 Tom Tromey <tom@tromey.com>
3077 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3078 * ax-gdb.c (gen_expr_binop): New function.
3079 (gen_expr_structop): Likewise.
3081 2021-03-08 Tom Tromey <tom@tromey.com>
3083 * expprint.c (expr::dump_for_expression): New functions.
3084 * expop.h (dump_for_expression): New overloads.
3085 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3088 2021-03-08 Tom Tromey <tom@tromey.com>
3090 * expression.h (expr::operation): New class.
3091 (expr::make_operation): New function.
3092 (expr::operation_up): New typedef.
3093 * expop.h: New file.
3094 * eval.c (operation::evaluate_for_cast)
3095 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3097 * ax-gdb.c (operation::generate_ax): New method.
3099 2021-03-08 Tom Tromey <tom@tromey.com>
3101 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3102 (gen_expr_binop_rest): New overload.
3104 2021-03-08 Tom Tromey <tom@tromey.com>
3106 * eval.c (eval_multi_subscript): New function.
3107 (evaluate_subexp_standard): Use it.
3109 2021-03-08 Tom Tromey <tom@tromey.com>
3111 * ada-lang.c (ada_binop_exp): New function.
3112 (ada_evaluate_subexp): Use it.
3114 2021-03-08 Tom Tromey <tom@tromey.com>
3116 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3118 (ada_evaluate_subexp): Use it.
3120 2021-03-08 Tom Tromey <tom@tromey.com>
3122 * ada-lang.c (ada_binop_minmax): New function.
3123 (ada_evaluate_subexp): Use it.
3125 2021-03-08 Tom Tromey <tom@tromey.com>
3127 * ada-lang.c (ada_unop_atr): New function.
3128 (ada_evaluate_subexp): Use it.
3130 2021-03-08 Tom Tromey <tom@tromey.com>
3132 * ada-lang.c (ada_binop_in_bounds): New function.
3133 (ada_evaluate_subexp): Use it.
3135 2021-03-08 Tom Tromey <tom@tromey.com>
3137 * ada-lang.c (ada_ternop_slice): New function.
3138 (ada_evaluate_subexp): Use it.
3140 2021-03-08 Tom Tromey <tom@tromey.com>
3142 * ada-lang.c (ada_equal_binop): New function.
3143 (ada_evaluate_subexp): Use it.
3145 2021-03-08 Tom Tromey <tom@tromey.com>
3147 * ada-lang.c (ada_mult_binop): New function.
3148 (ada_evaluate_subexp): Use it.
3150 2021-03-08 Tom Tromey <tom@tromey.com>
3152 * ada-lang.c (ada_abs): New function.
3153 (ada_evaluate_subexp): Use it.
3155 2021-03-08 Tom Tromey <tom@tromey.com>
3157 * ada-lang.c (ada_atr_size): New function.
3158 (ada_evaluate_subexp): Use it.
3160 2021-03-08 Tom Tromey <tom@tromey.com>
3162 * ada-lang.c (ada_atr_tag): New function.
3163 (ada_evaluate_subexp): Use it.
3165 2021-03-08 Tom Tromey <tom@tromey.com>
3167 * ada-lang.c (ada_unop_in_range): New function.
3168 (ada_evaluate_subexp): Use it.
3170 2021-03-08 Tom Tromey <tom@tromey.com>
3172 * ada-lang.c (ada_unop_neg): New function.
3173 (ada_evaluate_subexp): Use it.
3175 2021-03-08 Tom Tromey <tom@tromey.com>
3177 * ada-lang.c (eval_ternop_in_range): New function.
3178 (ada_evaluate_subexp): Use it.
3180 2021-03-08 Tom Tromey <tom@tromey.com>
3182 * opencl-lang.c (eval_opencl_assign): New function.
3183 (evaluate_subexp_opencl): Use it.
3185 2021-03-08 Tom Tromey <tom@tromey.com>
3187 * eval.c (eval_op_objc_msgcall): New function.
3188 (evaluate_subexp_standard): Use it.
3190 2021-03-08 Tom Tromey <tom@tromey.com>
3192 * eval.c (eval_binop_assign_modify): New function.
3193 (evaluate_subexp_standard): Use it.
3195 2021-03-08 Tom Tromey <tom@tromey.com>
3197 * m2-lang.c (eval_op_m2_subscript): New function.
3198 (evaluate_subexp_modula2): Use it.
3200 2021-03-08 Tom Tromey <tom@tromey.com>
3202 * m2-lang.c (eval_op_m2_high): New function.
3203 (evaluate_subexp_modula2): Use it.
3205 2021-03-08 Tom Tromey <tom@tromey.com>
3207 * eval.c (evaluate_subexp_for_address_base): New function.
3208 (evaluate_subexp_for_address): Use it.
3209 (evaluate_subexp_for_sizeof_base): New function.
3210 (evaluate_subexp_for_sizeof): Use it.
3212 2021-03-08 Tom Tromey <tom@tromey.com>
3214 * rust-lang.c (eval_op_rust_structop): New function.
3215 (rust_evaluate_subexp): Use it.
3217 2021-03-08 Tom Tromey <tom@tromey.com>
3219 * rust-lang.c (eval_op_rust_struct_anon): New function.
3220 (rust_evaluate_subexp): Use it.
3222 2021-03-08 Tom Tromey <tom@tromey.com>
3224 * rust-lang.c (eval_op_rust_array): New function.
3225 (rust_evaluate_subexp): Use it.
3227 2021-03-08 Tom Tromey <tom@tromey.com>
3229 * rust-lang.c (eval_op_rust_complement): New function.
3230 (rust_evaluate_subexp): Use it.
3232 2021-03-08 Tom Tromey <tom@tromey.com>
3234 * rust-lang.c (eval_op_rust_ind): New function.
3235 (rust_evaluate_subexp): Use it.
3237 2021-03-08 Tom Tromey <tom@tromey.com>
3239 * rust-lang.c (rust_subscript): Change parameters.
3240 (rust_evaluate_subexp): Update.
3242 2021-03-08 Tom Tromey <tom@tromey.com>
3244 * rust-lang.c (rust_range): Change parameters.
3245 (rust_evaluate_subexp): Update.
3247 2021-03-08 Tom Tromey <tom@tromey.com>
3249 * f-lang.c (eval_op_f_allocated): New function.
3250 (evaluate_subexp_f): Use it.
3252 2021-03-08 Tom Tromey <tom@tromey.com>
3254 * f-lang.c (fortran_require_array): New function.
3255 (evaluate_subexp_f): Use it.
3257 2021-03-08 Tom Tromey <tom@tromey.com>
3259 * f-lang.c (eval_op_f_kind): New function.
3260 (evaluate_subexp_f): Use it.
3262 2021-03-08 Tom Tromey <tom@tromey.com>
3264 * f-lang.c (eval_op_f_cmplx): New function.
3265 (evaluate_subexp_f): Use it.
3267 2021-03-08 Tom Tromey <tom@tromey.com>
3269 * f-lang.c (eval_op_f_modulo): New function.
3270 (evaluate_subexp_f): Use it.
3272 2021-03-08 Tom Tromey <tom@tromey.com>
3274 * f-lang.c (eval_op_f_floor): New function.
3275 (evaluate_subexp_f): Use it.
3277 2021-03-08 Tom Tromey <tom@tromey.com>
3279 * f-lang.c (eval_op_f_ceil): New function.
3280 (evaluate_subexp_f): Use it.
3282 2021-03-08 Tom Tromey <tom@tromey.com>
3284 * f-lang.c (eval_op_f_mod): New function.
3285 (evaluate_subexp_f): Use it.
3287 2021-03-08 Tom Tromey <tom@tromey.com>
3289 * f-lang.c (eval_op_f_abs): New function.
3290 (evaluate_subexp_f): Use it.
3292 2021-03-08 Tom Tromey <tom@tromey.com>
3294 * eval.c (eval_op_type): New function.
3295 (evaluate_subexp_standard): Use it.
3297 2021-03-08 Tom Tromey <tom@tromey.com>
3299 * eval.c (eval_op_postdec): New function.
3300 (evaluate_subexp_standard): Use it.
3302 2021-03-08 Tom Tromey <tom@tromey.com>
3304 * eval.c (eval_op_postinc): New function.
3305 (evaluate_subexp_standard): Use it.
3307 2021-03-08 Tom Tromey <tom@tromey.com>
3309 * eval.c (eval_op_predec): New file.
3310 (evaluate_subexp_standard): Use it.
3312 2021-03-08 Tom Tromey <tom@tromey.com>
3314 * eval.c (eval_op_preinc): New function.
3315 (evaluate_subexp_standard): Use it.
3317 2021-03-08 Tom Tromey <tom@tromey.com>
3319 * eval.c (eval_op_memval): New function.
3320 (evaluate_subexp_standard): Use it.
3322 2021-03-08 Tom Tromey <tom@tromey.com>
3324 * eval.c (eval_op_alignof): New function.
3325 (evaluate_subexp_standard): Use it.
3327 2021-03-08 Tom Tromey <tom@tromey.com>
3329 * eval.c (eval_op_ind): New function.
3330 (evaluate_subexp_standard): Use it.
3332 2021-03-08 Tom Tromey <tom@tromey.com>
3334 * eval.c (eval_op_lognot): New function.
3335 (evaluate_subexp_standard): Use it.
3337 2021-03-08 Tom Tromey <tom@tromey.com>
3339 * eval.c (eval_op_complement): New function.
3340 (evaluate_subexp_standard): Use it.
3342 2021-03-08 Tom Tromey <tom@tromey.com>
3344 * eval.c (eval_op_neg): New function.
3345 (evaluate_subexp_standard): Use it.
3347 2021-03-08 Tom Tromey <tom@tromey.com>
3349 * eval.c (eval_op_plus): New function.
3350 (evaluate_subexp_standard): Use it.
3352 2021-03-08 Tom Tromey <tom@tromey.com>
3354 * eval.c (eval_op_repeat): New function.
3355 (evaluate_subexp_standard): Use it.
3357 2021-03-08 Tom Tromey <tom@tromey.com>
3359 * eval.c (eval_op_leq): New function.
3360 (evaluate_subexp_standard): Use it.
3362 2021-03-08 Tom Tromey <tom@tromey.com>
3364 * eval.c (eval_op_geq): New function.
3365 (evaluate_subexp_standard): Use it.
3367 2021-03-08 Tom Tromey <tom@tromey.com>
3369 * eval.c (eval_op_gtr): New function.
3370 (evaluate_subexp_standard): Use it.
3372 2021-03-08 Tom Tromey <tom@tromey.com>
3374 * eval.c (eval_op_less): New function.
3375 (evaluate_subexp_standard): Use it.
3377 2021-03-08 Tom Tromey <tom@tromey.com>
3379 * eval.c (eval_op_notequal): New function.
3380 (evaluate_subexp_standard): Use it.
3382 2021-03-08 Tom Tromey <tom@tromey.com>
3384 * eval.c (eval_op_equal): New function.
3385 (evaluate_subexp_standard): Use it.
3387 2021-03-08 Tom Tromey <tom@tromey.com>
3389 * eval.c (eval_op_subscript): New function.
3390 (evaluate_subexp_standard): Use it.
3392 2021-03-08 Tom Tromey <tom@tromey.com>
3394 * eval.c (eval_op_binary): New function.
3395 (evaluate_subexp_standard): Use it.
3397 2021-03-08 Tom Tromey <tom@tromey.com>
3399 * eval.c (eval_op_sub): New function.
3400 (evaluate_subexp_standard): Use it.
3402 2021-03-08 Tom Tromey <tom@tromey.com>
3404 * eval.c (eval_op_add): New function.
3405 (evaluate_subexp_standard): Use it.
3407 2021-03-08 Tom Tromey <tom@tromey.com>
3409 * eval.c (eval_op_member): New function.
3410 (evaluate_subexp_standard): Use it.
3412 2021-03-08 Tom Tromey <tom@tromey.com>
3414 * eval.c (eval_op_structop_ptr): New function.
3415 (evaluate_subexp_standard): Use it.
3417 2021-03-08 Tom Tromey <tom@tromey.com>
3419 * eval.c (eval_op_structop_struct): New function.
3420 (evaluate_subexp_standard): Use it.
3422 2021-03-08 Tom Tromey <tom@tromey.com>
3424 * eval.c (eval_op_ternop): New function.
3425 (evaluate_subexp_standard): Use it.
3427 2021-03-08 Tom Tromey <tom@tromey.com>
3429 * eval.c (eval_op_concat): New function.
3430 (evaluate_subexp_standard): Use it.
3432 2021-03-08 Tom Tromey <tom@tromey.com>
3434 * eval.c (eval_op_objc_selector): New function.
3435 (evaluate_subexp_standard): Use it.
3437 2021-03-08 Tom Tromey <tom@tromey.com>
3439 * eval.c (eval_op_string): New function.
3440 (evaluate_subexp_standard): Use it.
3442 2021-03-08 Tom Tromey <tom@tromey.com>
3444 * eval.c (eval_op_register): New function.
3445 (evaluate_subexp_standard): Use it.
3447 2021-03-08 Tom Tromey <tom@tromey.com>
3449 * eval.c (eval_op_func_static_var): New function.
3450 (evaluate_subexp_standard): Use it.
3452 2021-03-08 Tom Tromey <tom@tromey.com>
3454 * eval.c (eval_op_var_msym_value): New function.
3455 (evaluate_subexp_standard): Use it.
3457 2021-03-08 Tom Tromey <tom@tromey.com>
3459 * eval.c (eval_op_var_entry_value): New function.
3460 (evaluate_subexp_standard): Use it.
3462 2021-03-08 Tom Tromey <tom@tromey.com>
3464 * eval.c (eval_op_scope): New function.
3465 (evaluate_subexp_standard): Use it.
3467 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3470 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3472 2021-03-06 Tom Tromey <tom@tromey.com>
3474 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3475 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3476 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3477 (locate_dwz_sections, dwz_search_other_debugdirs)
3478 (dwarf2_get_dwz_file): Move to dwz.c.
3479 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3481 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3482 (dwarf2_get_dwz_file): Move from read.c.
3484 2021-03-06 Tom Tromey <tom@tromey.com>
3486 * debuginfod-support.h: Include scoped_fd.h.
3488 2021-03-06 Tom Tromey <tom@tromey.com>
3490 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3491 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3492 (get_abbrev_section_for_cu, read_attribute_value)
3493 (get_debug_line_section): Update.
3494 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3496 2021-03-06 Tom Tromey <tom@tromey.com>
3498 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3500 * dwarf2/read.c (section_is_p): Remove.
3501 (dwarf2_per_bfd::locate_sections)
3502 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3503 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3504 (dwarf2_locate_common_dwp_sections)
3505 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3508 2021-03-06 Tom Tromey <tom@tromey.com>
3510 * xcoffread.c: Include sect-names.h.
3511 * symfile.h (struct dwarf2_section_names, struct
3512 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3513 * dwarf2/sect-names.h: New file, from symfile.h.
3514 * dwarf2/read.c: Include sect-names.h.
3516 2021-03-06 Tom Tromey <tom@tromey.com>
3518 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3519 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3520 (abbrev_table::read): Update.
3521 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3522 (struct abbrev_info): Reformat.
3523 <attrs>: Now an array.
3524 (struct abbrev_table) <alloc_abbrev>: Remove.
3526 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3528 * ctfread.c (ctf_psymtab_add_enums): New function.
3529 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3531 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3533 * ctfread.c (read_func_kind_type): Set up function arguments.
3535 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3536 Andrew Burgess <andrew.burgess@embecosm.com>
3538 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3540 (riscv_csrset): New static global.
3541 (riscv_update_csrmap): New function.
3542 (riscv_iterate_over_regset_sections): Process CSRs.
3544 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3546 * riscv-tdep.c (riscv_feature_name_csr): Define.
3547 (riscv_feature_name_cpu): Define.
3548 (riscv_feature_name_fpu): Define.
3549 (riscv_feature_name_virtual): Define.
3550 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3551 (riscv_freg_feature): Use riscv_feature_name_fpu.
3552 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3553 (riscv_csr_feature): Use riscv_feature_name_csr.
3554 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3556 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3557 Craig Blackmore <craig.blackmore@embecosm.com>
3559 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3560 (ALLDEPFILES): Add riscv-none-tdep.c.
3561 * configure: Regenerate.
3562 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3564 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3565 * elf-none-tdep.c: New file.
3566 * elf-none-tdep.h: New file.
3567 * riscv-none-tdep.c: New file.
3569 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3570 Andrew Burgess <andrew.burgess@embecosm.com>
3572 * corelow.c: Add 'xml-tdesc.h' include.
3573 (core_target::read_description): Load the target description from
3574 the core file when possible.
3575 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3577 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3578 (gcore_elf_make_tdesc_note): New function.
3579 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3580 * linux-tdep.c (linux_make_corefile_notes): Add target description
3583 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3585 * Makefile.in (SFILES): Add gcore-elf.c.
3586 (HFILES_NO_SRCDIR): Add gcore-elf.h
3587 * configure: Regenerate.
3588 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3590 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3591 (struct fbsd_collect_regset_section_cb_data): Delete.
3592 (fbsd_collect_regset_section_cb): Delete.
3593 (fbsd_collect_thread_registers): Delete.
3594 (struct fbsd_corefile_thread_data): Delete.
3595 (fbsd_corefile_thread): Delete.
3596 (fbsd_make_corefile_notes): Call
3597 gcore_elf_build_thread_register_notes instead of the now deleted
3599 * gcore-elf.c: New file, the content was moved here from
3600 linux-tdep.c, functions were renamed and given minor cleanup.
3601 * gcore-elf.h: New file.
3602 * gcore.c (gcore_find_signalled_thread): Moved here from
3603 linux-tdep.c and given a new name. Minor cleanups.
3604 * gcore.h (gcore_find_signalled_thread): Declare.
3605 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3606 (struct linux_collect_regset_section_cb_data): Delete.
3607 (linux_collect_regset_section_cb): Delete.
3608 (linux_collect_thread_registers): Delete.
3609 (linux_corefile_thread): Call
3610 gcore_elf_build_thread_register_notes.
3611 (find_signalled_thread): Delete.
3612 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3614 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3617 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3618 process_stratum_target parameter,
3619 sparc_store_inferior_registers): update callers.
3620 * sparc-nat.c (sparc_fetch_inferior_registers,
3621 sparc_store_inferior_registers): Add process_stratum_target
3622 parameter. Switch current thread before calling
3623 sparc_supply_gregset / sparc_collect_rwindow.
3624 (sparc_store_inferior_registers): Likewise.
3625 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3626 (sparc32obsd_collect_uthread): Likewise.
3627 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3629 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3630 sparc64obsd_supply_uthread): Add assertion.
3632 2021-03-04 Tom Tromey <tromey@adacore.com>
3634 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3635 (aux_add_nonlocal_symbols): Update.
3636 (ada_add_block_symbols): Change "found_sym" to bool.
3638 2021-03-03 Tom Tromey <tromey@adacore.com>
3640 * ada-lang.c (ada_resolve_function): Update comment.
3641 (is_nonfunction, add_symbols_from_enclosing_procs)
3642 (remove_extra_symbols): Likewise.
3643 (struct match_data): Add constructor, initializers.
3644 (add_nonlocal_symbols): Remove memset.
3645 (aux_add_nonlocal_symbols): Update comment.
3646 (ada_add_block_renamings, add_nonlocal_symbols)
3647 (ada_add_all_symbols): Likewise.
3648 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3650 2021-03-02 Tom Tromey <tromey@adacore.com>
3652 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3653 (cast_to_gnat_encoded_fixed_point_type): Remove.
3654 (ada_value_cast, ada_evaluate_subexp): Update.
3655 (gnat_encoded_fixed_point_type_info)
3656 (ada_is_gnat_encoded_fixed_point_type)
3657 (gnat_encoded_fixed_point_delta)
3658 (gnat_encoded_fixed_point_scaling_factor): Remove.
3659 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3660 (gnat_encoded_fixed_point_delta)
3661 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3662 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3663 (ada_print_type): Update.
3664 * ada-valprint.c (ada_value_print_num): Update.
3665 * dwarf2/read.c (ada_get_gnat_encoded_number)
3666 (ada_get_gnat_encoded_ratio): New functions.
3667 (finish_fixed_point_type): Use them. Add parameters.
3668 (GNAT_FIXED_POINT_SUFFIX): New define.
3669 (gnat_encoded_fixed_point_type_info): New function.
3670 (read_base_type): Handle gnat encodings.
3672 2021-03-02 Tom Tromey <tromey@adacore.com>
3674 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3675 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3677 (GROW_VECT): Remove.
3678 (grow_vect): Remove.
3680 2021-03-02 Tom Tromey <tromey@adacore.com>
3682 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3683 * ada-lang.c (resolve_subexp): Update.
3684 (ada_resolve_function): Accept a vector.
3685 (is_nonfunction, add_defn_to_vec)
3686 (add_symbols_from_enclosing_procs): Likewise.
3687 (num_defns_collected, defns_collected): Remove.
3688 (remove_extra_symbols): Return a vector.
3689 (remove_irrelevant_renamings): Return void.
3690 (ada_add_local_symbols): Accept a vector.
3691 (struct match_data) <obstackp>: Remove.
3692 <resultp>: New member.
3693 (aux_add_nonlocal_symbols): Update.
3694 (ada_add_block_renamings, add_nonlocal_symbols)
3695 (ada_add_all_symbols): Accept a vector.
3696 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3698 (ada_lookup_symbol): Update.
3699 (ada_add_block_symbols): Accept a vector.
3700 (get_var_value, iterate_over_symbols): Update.
3701 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3704 2021-03-02 Tom Tromey <tromey@adacore.com>
3706 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3708 2021-03-02 Tom Tromey <tromey@adacore.com>
3710 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3713 (ada_pspace_data): Remove destructor.
3714 <sym_cache>: Now a unique_ptr.
3715 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3716 (ada_get_symbol_cache): Use 'new'.
3717 (ada_clear_symbol_cache): Rewrite.
3719 2021-03-02 Tom Tromey <tromey@adacore.com>
3721 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3724 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
3727 * source.c (add_path): Skip empty dirnames.
3729 2021-02-25 Kevin Buettner <kevinb@redhat.com>
3731 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3732 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3734 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3737 * target.c (target_mourn_inferior): Only compare pids in
3738 target_mourn_inferior.
3740 2021-02-25 Jan Matyas <jmatyas@codasip.com>
3743 * remote.c (remote_target::start_remote): Ensure the single
3744 thread, automatically added for remote targets without the
3745 concept of threading, is initially in set to the "resumed"
3747 * remote.c (remote_target::add_current_inferior_and_thread):
3748 Add return value - return the main thread.
3750 2021-02-25 Jan Vrany <jan.vrany@labware.com>
3752 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3753 (mi_tsv_created): Likewise.
3754 (mi_tsv_deleted): Likewise.
3756 2021-02-25 Tom de Vries <tdevries@suse.de>
3759 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3760 section_kind for &dwo_file->sections.info.
3762 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3765 * f-lang.c (fortran_argument_convert): Delete declaration.
3766 (fortran_prepare_argument): New function.
3767 (evaluate_subexp_f): Move logic to new function
3768 fortran_prepare_argument.
3770 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3772 * f-exp.y (f77_keywords): Add 'associated'.
3773 * f-lang.c (fortran_associated): New function.
3774 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3775 (operator_length_f): Likewise.
3776 (print_unop_or_binop_subexp_f): New function.
3777 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3778 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3779 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3780 (operator_check_f): Likewise.
3781 * std-operator.def: Add FORTRAN_ASSOCIATED.
3783 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3785 * f-exp.y (fortran_operators): Add ".xor.".
3787 2021-02-24 Tom de Vries <tdevries@suse.de>
3790 * dwarf2/attribute.c (attribute::form_is_signed): New function
3792 * dwarf2/attribute.h (attribute::as_signed): ... here.
3793 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3794 (attribute::form_is_signed): Declare.
3795 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3796 for DW_AT_decl_file.
3798 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3800 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3801 order for <sys/ptrace.h> and <asm/ptrace.h>.
3803 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3805 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3808 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3810 * exec.c (set_section_command): Move variable declarations into
3811 the function body, and use std::string instead of a fixed size
3814 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3816 * exec.c (exec_target::get_section_table): Delete member function.
3817 (section_table_read_available_memory): Use current_top_target, not
3818 just the exec_ops target.
3819 * target-delegates.c: Regenerate.
3820 * target.c (default_get_section_table): New function.
3821 * target.h (target_ops::get_section_table): Change default
3822 behaviour to call default_get_section_table.
3823 (default_get_section_table): Declare.
3825 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3827 * exec.c (exec_target::close): Call new clear_target_sections
3829 (program_space::add_target_sections): Update name of member
3831 (program_space::add_target_sections): Update name of member
3833 (program_space::remove_target_sections): Likewise.
3834 (exec_one_fork): Use new target_sections member function.
3835 (exec_target::get_section_table): Likewise.
3836 (exec_target::files_info): Likewise.
3837 (set_section_command): Likewise.
3838 (exec_set_section_address): Likewise.
3839 (exec_target::has_memory): Use new target_sections member
3841 * progspace.h (program_space::clear_target_sections): New member
3843 (program_space::target_sections): Rename member variable to
3844 m_target_sections, replace with a new member function.
3845 (program_space::m_target_sections): New member variable.
3846 * solib-dsbt.c (scan_dyntag): Use new member function.
3847 * solib-svr4.c (scan_dyntag): Likewise.
3849 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3851 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3853 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3854 (section_table_read_available_memory): Make local const.
3855 (exec_target::xfer_partial): Make local const.
3856 (print_section_info): Make parameter const.
3857 * gdb/exec.h (print_section_info): Likewise.
3858 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3860 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3862 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3864 * gdb/s390-tdep.c (s390_load): Likewise.
3865 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3866 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3867 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3869 (target_debug_print_const_target_section_table_p): ...this.
3870 * gdb/target-delegates.c: Regenerate.
3871 * gdb/target.c (target_get_section_table): Make return type const.
3872 (target_section_by_addr): Likewise. Also make some locals const.
3873 (memory_xfer_partial_1): Make some locals const.
3874 * gdb/target.h (struct target_ops) <get_section_table>: Make
3876 (target_section_by_addr): Likewise.
3877 (target_get_section_table): Likewise.
3879 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3881 * NEWS: Mention new 'maint info target-sections' command.
3882 * maint.c (maintenance_info_target_sections): New function.
3883 (_initialize_maint_cmds): Register new command.
3885 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3887 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3888 (riscv_features_from_bfd): ...this. Change parameter type to
3889 'bfd*', and update as required.
3890 (riscv_find_default_target_description): Update call to
3891 riscv_features_from_bfd. Select a default xlen based on
3893 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3895 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3897 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3898 dynamic types in UNOP_IND.
3900 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3903 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3905 (~dwarf2_queue_guard): Clear queue.
3906 (queue_comp_unit): Assert that queue is
3908 (process_queue): Adjust.
3909 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3911 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3914 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3915 to decide whether or not to enqueue it for expansion.
3916 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3917 after calling maybe_queue_comp_unit.
3919 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3921 * linux-nat.c (linux_nat_filter_event): Return void.
3923 2021-02-22 Tom Tromey <tromey@adacore.com>
3925 * solib-svr4.c (enable_break): Update.
3926 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3928 (target_bfd_reopen): Change parameter type.
3929 * bfd-target.h (target_bfd_reopen): Change parameter type.
3931 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3933 * thread.c (add_thread_silent): Add assert.
3934 (find_thread_ptid): Add assert.
3936 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3939 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3940 (target_unpush_up): Likewise.
3941 * procfs.c (procfs_target::attach): Push target early. Use
3942 target_unpush_up to unpush target in case of error.
3943 * target.h (struct target_unpusher): Move here.
3944 (target_unpush_up): Likewise.
3946 2021-02-19 Kevin Buettner <kevinb@redhat.com>
3948 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3949 (which in turn includes <gnulib/config.h>) before include
3952 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
3955 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3956 (decode_j_type_insn): Likewise.
3957 (decode_cj_type_insn): Likewise.
3958 (decode_b_type_insn): Likewise.
3961 2021-02-18 Tom Tromey <tom@tromey.com>
3963 * expression.h (struct expression) <evaluate>: Declare method.
3964 * eval.c (evaluate_subexp): Simplify.
3965 (expression::evaluate): New method.
3966 (evaluate_expression, evaluate_type): Use expression::evaluate.
3968 2021-02-17 Kevin Buettner <kevinb@redhat.com>
3970 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3972 (ada_lookup_name_info): Likewise.
3974 2021-02-13 Mike Frysinger <vapier@gentoo.org>
3976 * aclocal.m4: Regenerate.
3978 2021-02-12 Tom de Vries <tdevries@suse.de>
3981 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3982 (lin_thread_signals): New static var.
3983 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3985 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3986 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3988 * linux-thread-db.c (check_thread_signals): Use
3989 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3991 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3993 * f-exp.y (f77_keywords): Add allocated.
3994 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3995 (operator_length_f): Likewise.
3996 (print_subexp_f): Likewise.
3997 (dump_subexp_body_f): Likewise.
3998 (operator_check_f): Likewise.
3999 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4001 2021-02-11 Tom de Vries <tdevries@suse.de>
4004 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4005 Return true for DW_FORM_strx.
4007 2021-02-11 Tom Tromey <tromey@adacore.com>
4010 * parse.c (write_exp_symbol_reference): Write sym.block.
4012 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4014 * NEWS: Mention changes to 'maint info sections'.
4015 * maint.c (match_substring): Return a bool, fix whitespace issue.
4016 (struct single_bfd_flag_info): New struct.
4017 (bfd_flag_info): New static global.
4018 (match_bfd_flags): Return a bool, use bfd_flag_info.
4019 (print_bfd_flags): Use bfd_flag_info.
4020 (maint_print_section_info): Delete trailing whitespace.
4021 (struct maint_info_sections_opts): New struct.
4022 (maint_info_sections_option_defs): New static global.
4023 (maint_info_sections_completer): New function.
4024 (maintenance_info_sections): Use option parsing mechanism.
4025 (_initialize_maint_cmds): Update command help text for 'maint info
4026 sections' and register a command completer.
4028 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4030 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4031 functionality merged into...
4032 (maint_print_all_sections): ...this new function.
4033 (maintenance_info_sections): Make use of maint_print_all_sections,
4034 allow all objects to be printed even where there's no executable.
4036 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4038 * breakpoint.c (resolve_sal_pc): Make use of
4039 bound_minimal_symbol::obj_section.
4040 * maint.c (maintenance_translate_address): Likewise.
4041 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4042 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4044 * printcmd.c (info_address_command): Make use of
4045 bound_minimal_symbol::obj_section.
4047 2021-02-11 Alan Modra <amodra@gmail.com>
4049 * arm-symbian-tdep.c: Delete.
4050 * NEWS: Mention arm-symbian removal.
4051 * Makefile.in: Remove arm-symbian-tdep entries.
4052 * configure.tgt: Remove arm*-*-symbianelf*.
4053 * doc/gdb.texinfo: Remove mention of SymbianOS.
4054 * osabi.c (gdb_osabi_names): Remove "Symbian".
4055 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4056 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4057 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4059 * testsuite/gdb.base/dup-sect.exp: Likewise.
4060 * testsuite/gdb.base/long_long.exp: Likewise.
4061 * testsuite/gdb.base/solib-weak.exp: Likewise.
4062 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4063 * testsuite/gdb.python/py-section-script.exp: Likewise.
4064 * testsuite/lib/dwarf.exp: Likewise.
4065 * testsuite/lib/gdb.exp: Likewise.
4067 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4069 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4070 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4071 (one_or_two_args): New pattern.
4072 (f77_keywords): Add lbound and ubound.
4073 * f-lang.c (fortran_bounds_all_dims): New function.
4074 (fortran_bounds_for_dimension): New function.
4075 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4076 (operator_length_f): Likewise.
4077 (print_subexp_f): Likewise.
4078 (dump_subexp_body_f): Likewise.
4079 (operator_check_f): Likewise.
4080 * std-operator.def (FORTRAN_LBOUND): Define.
4081 (FORTRAN_UBOUND): Define.
4083 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4085 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4086 and set_section_index member functions where appropriate.
4087 * coffread.c (coff_symtab_read): Likewise.
4088 (process_coff_symbol): Likewise.
4089 * ctfread.c (set_symbol_address): Likewise.
4090 * dwarf2/read.c (add_partial_symbol): Likewise.
4091 (var_decode_location): Likewise.
4092 * language.c: Likewise.
4093 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4094 (compact_minimal_symbols): Likewise.
4095 (minimal_symbol_upper_bound): Likewise.
4096 * objfiles.c (relocate_one_symbol): Likewise.
4097 * psympriv.h (partial_symbol::obj_section): Likewise.
4098 (partial_symbol::address): Likewise.
4099 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4100 * stabsread.c (scan_file_globals): Likewise.
4101 * symmisc.c (dump_msymbols): Likewise.
4102 * symtab.c (general_symbol_info::obj_section): Likewise.
4103 (fixup_section): Likewise.
4104 (get_msymbol_address): Likewise.
4105 * symtab.h (general_symbol_info::section): Rename to...
4106 (general_symbol_info::m_section): ...this.
4107 (general_symbol_info::set_section_index): New member function.
4108 (general_symbol_info::section_index): Likewise.
4109 (SYMBOL_SECTION): Delete.
4110 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4111 set_section_index member functions where appropriate.
4112 (MSYMBOL_SECTION): Delete.
4113 (symbol::symbol): Update to initialize 'm_section'.
4114 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4115 (process_xcoff_symbol): Likewise.
4117 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4119 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4120 MSYMBOL_OBJ_SECTION.
4121 * findvar.c (language_defn::read_var_value): Likewise.
4122 * infcmd.c (jump_command): Likewise.
4123 * linespec.c (minsym_found): Likewise.
4124 * maint.c (maintenance_translate_address): Likewise.
4125 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4126 (minimal_symbol_upper_bound): Likewise.
4127 * parse.c (find_minsym_type_and_address): Likewise.
4128 (operator_check_standard): Likewise.
4129 * printcmd.c (info_address_command): Likewise.
4130 * symmisc.c (dump_msymbols): Likewise.
4131 (print_symbol): Likewise.
4132 * symtab.c (general_symbol_info::obj_section): Define new
4134 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4135 (find_pc_sect_compunit_symtab): Likewise.
4136 (find_function_start_sal): Likewise.
4137 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4138 MSYMBOL_OBJ_SECTION.
4139 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4141 (SYMBOL_OBJ_SECTION): Delete.
4142 (MSYMBOL_OBJ_SECTION): Delete.
4144 2021-02-09 Tom Tromey <tom@tromey.com>
4146 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4148 2021-02-09 Tom de Vries <tdevries@suse.de>
4151 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4152 construct an array type. Add assert to ensure that element_type is
4155 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4157 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4158 (gcore_collect_regset_section_cb): Delete.
4159 (gcore_collect_thread_registers): Delete.
4160 (gcore_build_thread_register_notes): Delete.
4161 (gcore_find_signalled_thread): Delete.
4162 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4163 'gdbarch' and 'thread_info' declarations.
4164 (gcore_build_thread_register_notes): Delete declaration.
4165 (gcore_find_signalled_thread): Likewise.
4166 * fbsd-tdep.c: Remove 'gcore.h' include.
4167 (struct fbsd_collect_regset_section_cb_data): New struct.
4168 (fbsd_collect_regset_section_cb): New function.
4169 (fbsd_collect_thread_registers): New function.
4170 (struct fbsd_corefile_thread_data): New struct.
4171 (fbsd_corefile_thread): New function.
4172 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4173 * linux-tdep.c: Remove 'gcore.h' include.
4174 (struct linux_collect_regset_section_cb_data): New struct.
4175 (linux_collect_regset_section_cb): New function.
4176 (linux_collect_thread_registers): New function.
4177 (linux_corefile_thread): Call Linux specific code.
4178 (find_signalled_thread): New function.
4179 (linux_make_corefile_notes): Call find_signalled_thread.
4181 2021-02-09 Tom Tromey <tromey@adacore.com>
4183 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4185 * value.c (value_contents_copy_raw): Now static.
4186 * value.h (value_contents_copy_raw): Don't declare.
4188 2021-02-09 Tom Tromey <tromey@adacore.com>
4190 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4193 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4196 * arc-linux-tdep.c (handle_atomic_sequence): New.
4197 (arc_linux_software_single_step): Call handle_atomic_sequence().
4199 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4201 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4203 (REQUIRE_WINDOW): Call is_valid member function.
4204 (REQUIRE_WINDOW_FOR_SETTER): New define.
4205 (gdbpy_tui_is_valid): Call is_valid member function.
4206 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4207 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4209 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4210 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4213 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4215 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4216 for the title is not nullptr.
4218 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4220 * tui-layout.c (saved_tui_windows): Delete.
4221 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4222 call new get_windows member function instead.
4223 (tui_get_window_by_name): Check in tui_windows.
4224 (tui_layout_window::apply): Don't add to tui_windows.
4225 * tui-layout.h (tui_layout_base::get_windows): New member function.
4226 (tui_layout_window::get_windows): Likewise.
4227 (tui_layout_split::get_windows): Likewise.
4229 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4231 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4232 of the window objects.
4234 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4236 * python/python.c (gdbpy_print_stack): Reformat an error message.
4238 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4240 * tui/tui-interp.c (tui_command_line_handler): New function.
4241 (tui_interp::resume): Register tui_command_line_handler as the
4243 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4245 (tui_getc_1): Delete handling of '\n' and '\r'.
4246 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4248 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4250 * tui/tui-regs.c (tui_data_window::display_registers_from):
4251 Mark invisible register sub windows.
4252 (tui_data_window::check_register_values): Ignore invisible
4253 register sub windows.
4255 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4257 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4258 n_spaces with a negative value.
4260 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4262 * tui/tui-regs.c (tui_data_window::display_registers_from):
4263 Add refresh_window call.
4265 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4267 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4269 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4271 * symmisc.c (std_in, std_out, std_err): Remove.
4272 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4274 2021-02-05 Tom de Vries <tdevries@suse.de>
4276 PR breakpoints/27330
4277 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4278 glibc object file has debug info.
4280 2021-02-05 Tom de Vries <tdevries@suse.de>
4283 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4285 2021-02-05 Tom de Vries <tdevries@suse.de>
4287 PR breakpoints/27313
4288 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4291 2021-02-05 Tom Tromey <tom@tromey.com>
4293 * compile/compile-c-support.c (get_compile_context)
4294 (c_get_compile_context, cplus_get_compile_context): Change return
4296 * language.c (language_defn::get_compile_instance): New method.
4297 * language.h (language_defn::get_compile_instance): Change return
4298 type. No longer inline.
4299 * c-lang.c (c_language::get_compile_instance): Change return type.
4300 (cplus_language::get_compile_instance): Change return type.
4301 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4303 * compile/compile.c (compile_to_object): Update.
4305 2021-02-05 Tom Tromey <tom@tromey.com>
4307 * parser-defs.h (write_exp_symbol_reference): Declare.
4308 * parse.c (write_exp_symbol_reference): New function.
4309 * p-exp.y (variable): Use write_exp_symbol_reference.
4310 * m2-exp.y (variable): Use write_exp_symbol_reference.
4311 * f-exp.y (variable): Use write_exp_symbol_reference.
4312 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4313 * c-exp.y (variable): Use write_exp_symbol_reference.
4315 2021-02-05 Tom de Vries <tdevries@suse.de>
4318 * valarith.c (complex_binop): Throw an error if complex type can't
4321 2021-02-05 Tom de Vries <tdevries@suse.de>
4324 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4327 2021-02-05 Tom de Vries <tdevries@suse.de>
4329 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4331 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4333 * configure.tgt (riscv*-*-*): Set gdb_sim.
4335 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4337 * target.c (target_is_non_stop_p): Return bool.
4338 * target.h (target_is_non_stop_p): Return bool.
4340 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4342 * record-full.c (record_full_async_inferior_event_handler):
4343 Don't clear async event handler.
4344 (record_full_base_target::wait): Clear async event handler at
4347 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4349 * record-btrace.c (record_btrace_handle_async_inferior_event):
4350 Don't clear async event handler.
4351 (record_btrace_target::wait): Clear async event handler at
4354 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4356 * remote.c (remote_target::wait): Clear async event handler at
4357 beginning, mark if needed at the end.
4358 (remote_async_inferior_event_handler): Don't set or clear async
4361 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4363 * async-event.h (async_event_handler_func): Add documentation.
4364 * async-event.c (check_async_event_handlers): Don't clear
4365 async_event_handler ready flag.
4366 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4368 * record-btrace.c (record_btrace_handle_async_inferior_event):
4370 * record-full.c (record_full_async_inferior_event_handler):
4372 * remote-notif.c (remote_async_get_pending_events_handler):
4374 * remote.c (remote_async_inferior_event_handler): Likewise.
4376 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4378 * infrun.c (handle_inferior_event): Move stop_soon variable to
4381 2021-02-03 Pedro Alves <pedro@palves.net>
4383 * infcmd.c (detach_command): Hold strong reference to target, and
4384 if all-stop on entry, restart threads on exit.
4385 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4386 (restart_stepped_thread): ... this new function. Also handle
4388 (restart_after_all_stop_detach): New function.
4389 * infrun.h (restart_after_all_stop_detach): Declare.
4391 2021-02-03 Pedro Alves <pedro@palves.net>
4393 * infrun.c (struct step_over_info): Initialize fields.
4394 (prepare_for_detach): Handle ongoing in-line step over.
4396 2021-02-03 Pedro Alves <pedro@palves.net>
4398 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4400 * remote.c (remote_target::remote_detach_1): ... and here ...
4401 * target.c (target_detach): ... instead of here.
4402 * target.h (target_ops::detach): Add comment.
4404 2021-02-03 Pedro Alves <pedro@palves.net>
4406 * infrun.c (struct wait_one_event): Move higher up.
4407 (prepare_for_detach): Abort in-progress displaced steps instead of
4408 letting them complete.
4409 (handle_one): If the inferior is detaching, don't add the thread
4410 back to the global step-over chain.
4411 (restart_threads): Don't restart threads if detaching.
4412 (handle_signal_stop): Remove inferior::detaching reference.
4414 2021-02-03 Pedro Alves <pedro@palves.net>
4416 * infrun.c (prepare_for_detach): Don't release scoped_restore
4419 2021-02-03 Pedro Alves <pedro@palves.net>
4421 * infrun.c (handle_one): New function, factored out from ...
4422 (stop_all_threads): ... here.
4424 2021-02-03 Pedro Alves <pedro@palves.net>
4426 * remote.c (remote_notif_stop_ack): Don't error out on
4427 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4428 (remote_target::discard_pending_stop_replies): Don't delete
4429 in-flight notification; instead, clear its contents.
4431 2021-02-03 Pedro Alves <pedro@palves.net>
4433 * remote.c (extended_remote_target::attach): Set target async in
4434 the target-non-stop path too.
4436 2021-02-03 Pedro Alves <pedro@palves.net>
4439 * infrun.c (handle_signal_stop): Move main context_switch call
4440 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4442 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4444 * NEWS (Changed commands): Add entry for the behavior change of
4445 the inferior command.
4446 * inferior.c (inferior_command): When no argument is given to the
4447 inferior command, display info about the currently selected
4450 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4452 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4454 (read_attribute_reprocess): Adjust.
4456 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4458 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4459 <gnu_ranges_base>: ... this...
4460 <rnglists_base>: ... and this.
4461 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4462 <gnu_ranges_base>: ... this...
4463 <rnglists_base>: ... and this.
4464 (read_cutu_die_from_dwo): Adjust
4465 (dwarf2_get_pc_bounds): Adjust
4466 (dwarf2_record_block_ranges): Adjust.
4467 (read_full_die_1): Adjust
4468 (partial_die_info::read): Adjust.
4469 (read_rnglist_index): Adjust.
4471 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4474 * dwarf2/read.c (read_loclists_rnglists_header): Add
4475 header_offset parameter and use it.
4476 (read_loclist_index): Read header of the current contribution,
4477 not the one at the beginning of the section.
4478 (read_rnglist_index): Likewise.
4480 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4483 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4484 requires_reprocessing flag.
4485 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4487 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4488 and DW_FORM_loclistx.
4489 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4490 instead of set_address for DW_FORM_loclistx and
4493 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4495 * dwarf2/read.c (read_loclist_index): Remove bound check for
4497 (read_rnglist_index): Likewise.
4499 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4501 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4504 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4506 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4508 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4510 * dwarf2/read.c (read_loclist_index): Change complaints into
4513 2021-02-02 Tom de Vries <tdevries@suse.de>
4516 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4519 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4521 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4522 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4523 here from linux-tdep.c and given a new name. Minor cleanups.
4524 (gcore_collect_regset_section_cb): Likewise.
4525 (gcore_collect_thread_registers): Likewise.
4526 (gcore_build_thread_register_notes): Likewise.
4527 (gcore_find_signalled_thread): Likewise.
4528 * gcore.h (gcore_build_thread_register_notes): Declare.
4529 (gcore_find_signalled_thread): Declare.
4530 * fbsd-tdep.c: Add 'gcore.h' include.
4531 (struct fbsd_collect_regset_section_cb_data): Delete.
4532 (fbsd_collect_regset_section_cb): Delete.
4533 (fbsd_collect_thread_registers): Delete.
4534 (struct fbsd_corefile_thread_data): Delete.
4535 (fbsd_corefile_thread): Delete.
4536 (fbsd_make_corefile_notes): Call
4537 gcore_build_thread_register_notes instead of the now deleted
4539 * linux-tdep.c: Add 'gcore.h' include.
4540 (struct linux_collect_regset_section_cb_data): Delete.
4541 (linux_collect_regset_section_cb): Delete.
4542 (linux_collect_thread_registers): Delete.
4543 (linux_corefile_thread): Call
4544 gcore_build_thread_register_notes.
4545 (find_signalled_thread): Delete.
4546 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4548 2021-01-29 Tom de Vries <tdevries@suse.de>
4550 PR breakpoints/26063
4551 * infrun.c (process_event_stop_test): Reset
4552 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4555 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4557 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4558 assert. Extend the header comment.
4560 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4562 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4563 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4564 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4565 (tui_locator_win_info_ptr): Delete declaration.
4566 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4567 (tui_disasm_window::set_contents): Fetch state from tui_location
4569 (tui_get_begin_asm_address): Likewise.
4570 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4572 (get_locator_window): Delete.
4573 (initialize_known_windows): Treat locator window just like all the
4575 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4576 (tui_source_window::set_contents): Fetch state from tui_location
4578 (tui_source_window::showing_source_p): Likewise.
4579 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4581 (tui_locator_win_info_ptr): Delete.
4582 (tui_locator_window::make_status_line): Fetch state from
4583 tui_location global.
4584 (tui_locator_window::rerender): Remove check of 'handle',
4585 reindent function body.
4586 (tui_locator_window::set_locator_fullname): Delete.
4587 (tui_locator_window::set_locator_info): Delete.
4588 (tui_update_locator_fullname): Delete.
4589 (tui_show_frame_info): Likewise.
4590 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4591 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4592 tui/tui-location.h and renamed to
4593 tui_location_tracker::set_location.
4594 (tui_locator_window::set_locator_fullname): Moved to
4595 tui/tui-location.h and renamed to
4596 tui_location_tracker::set_fullname.
4597 (tui_locator_window::full_name): Delete.
4598 (tui_locator_window::proc_name): Delete.
4599 (tui_locator_window::line_no): Delete.
4600 (tui_locator_window::addr): Delete.
4601 (tui_locator_window::gdbarch): Delete.
4602 (tui_update_locator_fullname): Delete declaration.
4603 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4605 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4606 (tui_display_main): Call function on tui_location directly.
4607 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4608 * tui/tui-location.c: New file.
4609 * tui/tui-location.h: New file.
4611 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4613 * gdbtypes.h (get_type_arch): Rename to...
4614 (struct type) <arch>: ... this, update all users.
4616 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4618 * gdbtypes.h (struct type) <arch>: Rename to...
4619 <arch_owner>: ... this, update all users.
4620 <objfile>: Rename to...
4621 <objfile_owner>: ... this, update all users.
4623 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4625 * gdbcmd.h (execute_command_to_string): Update comment.
4626 * top.c (execute_command_to_string): Update header comment.
4628 2021-01-28 Tom de Vries <tdevries@suse.de>
4630 PR breakpoints/27205
4631 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4632 (create_longjmp_master_breakpoint_names): New function, factored out
4634 (create_longjmp_master_breakpoint): ... here. Only try to install
4635 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4636 breakpoint in libc.so failed.
4638 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4641 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4642 unique_ptr is released when the wrapped pointer is kept for later
4645 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4647 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4648 BLR and BR instructions.
4649 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4650 (enum aarch64_masks): New.
4652 2021-01-26 Tom Tromey <tromey@adacore.com>
4654 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4655 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4656 (windows_init_thread_list, windows_nat::handle_load_dll)
4657 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4658 (windows_nat_target::resume)
4659 (windows_nat_target::get_windows_debug_event)
4660 (windows_nat_target::interrupt, windows_xfer_memory)
4661 (windows_nat_target::close): Update.
4662 * nat/windows-nat.c (DEBUG_EVENTS): Use
4663 debug_prefixed_printf_cond.
4664 (matching_pending_stop, fetch_pending_stop)
4665 (continue_last_debug_event): Update.
4667 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4669 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4670 elfcore_write_file_note.
4672 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
4674 * arc-tdep.c (arc_add_reggroups): New function.
4675 (arc_gdbarch_init): Call arc_add_reggroups.
4677 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
4679 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4681 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4682 Simon Marchi <simon.marchi@polymtl.ca>
4683 Tom de Vries <tdevries@suse.de>
4685 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4688 2021-01-25 Tom Tromey <tromey@adacore.com>
4690 * dwarf2/read.c (get_mpz): New function.
4691 (get_dwarf2_rational_constant): Use it.
4693 2021-01-25 Tom Tromey <tromey@adacore.com>
4695 * ada-lang.c (resolve_subexp): Handle array context.
4697 2021-01-23 Tom Tromey <tom@tromey.com>
4700 * compile/compile-loc2c.c (note_register): New function.
4701 (pushf_register_address, pushf_register): Use it.
4703 2021-01-23 Tom Tromey <tom@tromey.com>
4705 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4706 Change type of "registers_used".
4707 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4708 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4709 (locexpr_generate_c_location, loclist_generate_c_location): Change
4710 type of "registers_used".
4711 * compile/compile.h (compile_dwarf_expr_to_c)
4712 (compile_dwarf_bounds_to_c): Update.
4713 * compile/compile-loc2c.c (pushf_register_address)
4714 (pushf_register, do_compile_dwarf_expr_to_c)
4715 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4716 of "registers_used".
4717 * compile/compile-c.h (generate_c_for_variable_locations):
4719 * compile/compile-c-symbols.c (generate_vla_size)
4720 (generate_c_for_for_one_variable): Change type of
4722 (generate_c_for_variable_locations): Return std::vector.
4723 * compile/compile-c-support.c (generate_register_struct): Change
4724 type of "registers_used".
4727 2021-01-23 Tom Tromey <tom@tromey.com>
4729 * compile/compile-internal.h (class compile_instance)
4730 <set_arguments>: Change return type.
4731 * compile/compile.c (compile_to_object): Remove call to reset.
4732 (compile_instance::set_arguments): Change return type.
4734 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4736 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4737 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4739 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4741 * Makefile.in (SELFTESTS_SRCS): Add
4742 unittests/gdb_tilde_expand-selftests.c.
4743 * unittests/gdb_tilde_expand-selftests.c: New file.
4745 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4748 * NEWS: Mention new command.
4749 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4750 (version_style): Define.
4751 (cli_style_option::cli_style_option): Add intensity parameter, and
4753 (_initialize_cli_style): Register version style set/show commands.
4754 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4755 (version_style): Declare.
4756 * top.c (print_gdb_version): Use version_stype, and styled_string
4757 to print the GDB version string.
4759 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4761 * utils.c (emit_style_escape): Only emit an escape sequence if the
4762 requested style is different than the current applied style.
4763 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4764 current applied_style.
4765 (fputs_styled): Remove is_default check.
4766 (fputs_styled_unfiltered): Likewise.
4767 (vfprintf_styled_no_gdbfmt): Likewise.
4769 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4771 * remote.h (remote_debug_printf): New.
4772 (remote_debug_printf_nofunc): New.
4773 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4774 * remote.c: Use above macros throughout file.
4776 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4778 * remote.h (remote_debug): Change to bool.
4779 * remote.c (remote_debug): Change to bool.
4780 (_initialize_remote): Adjust.
4782 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4784 * target.h (remote_debug): Move to...
4785 * remote.h (remote_debug): ... here.
4786 * top.c (remote_debug): Move to...
4787 * remote.c (remote_debug): ... here.
4788 * remote-sim.c: Include remote.h.
4790 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4792 * cli/cli-cmds.c (show_remote_debug): Remove.
4793 (show_remote_timeout): Remove.
4794 (_initialize_cli_cmds): Don't register commands.
4795 * remote.c (show_remote_debug): Move here.
4796 (show_remote_timeout): Move here.
4797 (_initialize_remote): Register commands.
4799 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4801 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4802 type::objfile method instead.
4804 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4806 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4807 use the type::is_objfile_owned method.
4809 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
4811 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4812 (TYPE_OWNER): Remove.
4813 (TYPE_OBJFILE): Adjust.
4814 (struct main_type) <flag_objfile_owned>: Rename to...
4815 <m_flag_objfile_owned>: ... this.
4816 <owner>: Rename to...
4817 <m_owner>: ... this.
4818 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4820 (TYPE_ALLOC): Adjust.
4821 * gdbtypes.c (alloc_type): Adjust.
4822 (alloc_type_arch): Adjust.
4823 (alloc_type_copy): Adjust.
4824 (get_type_arch): Adjust.
4825 (smash_type): Adjust.
4826 (lookup_array_range_type): Adjust.
4827 (recursive_dump_type): Adjust.
4828 (copy_type_recursive): Adjust.
4829 * compile/compile-c-types.c (convert_func): Adjust.
4830 (convert_type_basic): Adjust.
4831 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4834 (language_arch_info::type_and_symbol::alloc_type_symbol):
4837 2021-01-21 Luis Machado <luis.machado@linaro.org>
4839 * coffread.c (enter_linenos): Passing string to complaint.
4840 * valops.c (value_assign): Make array view.
4842 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4844 * auto-load.h (debug_auto_load): Move here.
4845 (auto_load_debug_printf): New.
4846 * auto-load.c: Use auto_load_debug_printf.
4847 (debug_auto_load): Move to header.
4848 * linux-thread-db.c (try_thread_db_load): Use
4849 auto_load_debug_printf.
4850 * main.c (captured_main_1): Likewise.
4852 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4854 * f-valprint.c (f77_array_offset_tbl): Remove.
4856 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4858 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4860 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4862 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4865 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
4868 * python/py-breakpoint.c (bppy_get_location): Handle
4869 bp_hardware_breakpoint.
4870 (bppy_init): Likewise.
4871 (gdbpy_breakpoint_created): Likewise.
4873 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4875 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4877 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4879 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4880 (_initialize_gdb_bfd): Adjust.
4882 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4885 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4887 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4889 * dwarf2/read.c (follow_die_offset): Add logging.
4890 (dwarf2_per_objfile::age_comp_units): Add logging.
4892 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4894 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4895 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4896 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4897 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4898 * arm-tdep.c (struct frame_unwind): Make static.
4899 * auto-load.c (auto_load_safe_path_vec): Make static.
4900 * csky-tdep.c (csky_stub_unwind): Make static.
4901 * gdbarch.c (gdbarch_data_registry): Make static.
4902 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4903 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4904 * i386-tdep.c (i386_frame_setup_skip_insns,
4905 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4907 * infrun.c (observer_mode): Make static.
4908 * linux-nat.c (sigchld_action): Make static.
4909 * linux-thread-db.c (thread_db_list): Make static.
4910 * maint-test-options.c (maintenance_test_options_list):
4911 * mep-tdep.c (mep_csr_registers): Make static.
4912 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4913 (stats): Make static.
4914 * nat/linux-osdata.c (struct osdata_type): Make static.
4915 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4916 * progspace.c (last_program_space_num): Make static.
4917 * python/py-param.c (struct parm_constant): Remove struct type
4919 (parm_constants): Make static.
4920 * python/py-record-btrace.c (btpy_list_methods): Make static.
4921 * python/py-record.c (recpy_gap_type): Make static.
4922 * record.c (record_goto_cmdlist): Make static.
4923 * regcache.c (regcache_descr_handle): Make static.
4924 * registry.h (DEFINE_REGISTRY): Make definition static.
4925 * symmisc.c (std_in, std_out, std_err): Make static.
4926 * top.c (previous_saved_command_line): Make static.
4927 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4929 * unittests/command-def-selftests.c (nr_duplicates,
4930 nr_invalid_prefixcmd, lists): Make static.
4931 * unittests/observable-selftests.c (test_notification): Make
4933 * unittests/optional/assignment/1.cc (counter): Make static.
4934 * unittests/optional/assignment/2.cc (counter): Make static.
4935 * unittests/optional/assignment/3.cc (counter): Make static.
4936 * unittests/optional/assignment/4.cc (counter): Make static.
4937 * unittests/optional/assignment/5.cc (counter): Make static.
4938 * unittests/optional/assignment/6.cc (counter): Make static.
4940 2021-01-20 Joel Sherrill <joel@rtems.org>
4943 * remote.c (struct remote_thread_info) <resume_state>: Rename
4945 <get_resume_state>: ... this.
4946 (remote_target::resume): Adjust.
4947 (remote_target::commit_resume): Adjust.
4948 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4950 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4951 Tom Tromey <tom@tromey.com>
4953 * stap-probe.c (stap_parse_single_operand): Handle '!'
4955 (stap_parse_argument_conditionally): Likewise.
4956 Skip spaces after processing open-parenthesis sub-expression.
4957 (stap_parse_argument_1): Skip spaces after call to
4958 stap_parse_argument_conditionally.
4959 Handle case when right-side expression is a parenthesized
4961 Skip spaces after call to stap_parse_argument_1.
4963 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4965 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4967 2021-01-19 Luis Machado <luis.machado@linaro.org>
4969 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4970 memory and save data.
4971 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4972 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4973 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4974 (trad_frame_value_bytes_p): Remove.
4975 (trad_frame_reset_saved_regs): Adjust documentation.
4976 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4977 constructor and reset the state of the registers.
4978 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4979 (trad_frame_value_bytes_p, trad_frame_set_value)
4980 (trad_frame_set_realreg, trad_frame_set_addr)
4981 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4982 (trad_frame_set_reg_realreg): Update to call member function.
4983 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4984 (trad_frame_get_prev_register): Likewise.
4986 * aarch64-tdep.c (aarch64_analyze_prologue)
4987 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4988 (aarch64_prologue_prev_register): Update to use member functions.
4989 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4990 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4991 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4992 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4993 (arm_make_epilogue_frame_cache): Likewise.
4994 * avr-tdep.c (avr_frame_unwind_cache)
4995 (avr_frame_prev_register): Likewise.
4996 * cris-tdep.c (cris_scan_prologue): Likewise.
4997 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4998 * frv-tdep.c (frv_analyze_prologue): Likewise.
4999 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5000 * lm32-tdep.c (lm32_frame_cache): Likewise.
5001 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5002 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5003 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5004 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5005 (reset_saved_regs): Adjust to set realreg.
5006 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5007 call member functions.
5008 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5009 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5010 (s390_backchain_frame_unwind_cache): Likewise.
5011 * score-tdep.c (score7_analyze_prologue)
5012 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5013 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5014 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5015 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5016 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5017 * tilegx-tdep.c (tilegx_analyze_prologue)
5018 (tilegx_frame_cache): Likewise.
5019 * v850-tdep.c (v850_frame_cache): Likewise.
5020 * vax-tdep.c (vax_frame_cache): Likewise.
5022 2021-01-19 Luis Machado <luis.machado@linaro.org>
5024 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5026 (put_frame_register_bytes): Likewise.
5027 Adjust documentation.
5028 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5029 (safe_frame_unwind_memory): Likewise.
5030 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5031 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5033 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5034 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5035 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5036 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5037 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5038 * dwarf2/loc.c (rw_pieced_value): Likewise.
5039 * hppa-tdep.c (hppa_frame_cache): Likewise.
5040 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5041 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5042 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5043 (i386_linux_rt_sigtramp_start): Likewise.
5044 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5045 * i386-tdep.c (i386_register_to_value): Likewise.
5046 * i387-tdep.c (i387_register_to_value): Likewise.
5047 * ia64-tdep.c (ia64_register_to_value): Likewise.
5048 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5049 (m32r_linux_rt_sigtramp_start): Likewise.
5050 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5051 * m68k-tdep.c (m68k_register_to_value): Likewise.
5052 * mips-tdep.c (mips_register_to_value)
5053 (mips_value_to_register): Likewise.
5054 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5055 (ppcfbsd_sigtramp_frame_cache): Likewise.
5056 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5057 (ppcobsd_sigtramp_frame_cache): Likewise.
5058 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5059 (rs6000_register_to_value): Likewise.
5060 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5061 * tramp-frame.c (tramp_frame_start): Likewise.
5062 * valops.c (value_assign): Likewise.
5064 2021-01-19 Luis Machado <luis.machado@linaro.org>
5066 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5068 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5069 instead of buffer and size.
5070 (trad_frame_set_reg_value_bytes): Likewise.
5071 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5072 (trad_frame_set_value_bytes): Likewise.
5074 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5076 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5078 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5080 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5081 (riscv_fbsd_gregset): Use riscv_supply_regset.
5082 (riscv_fbsd_fpregset): Likewise.
5083 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5084 (riscv_linux_fregset): Likewise.
5085 * riscv-tdep.c (riscv_supply_regset): Define new function.
5086 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5088 2021-01-18 Tom de Vries <tdevries@suse.de>
5091 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5093 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5096 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5098 * remote.c (class remote_target) <remote_hostio_send_command,
5099 remote_hostio_parse_result>: Constify parameter.
5100 (remote_hostio_parse_result): Likewise.
5101 (remote_target::remote_hostio_send_command): Adjust.
5102 (remote_target::remote_hostio_pread_vFile): Adjust.
5103 (remote_target::fileio_readlink): Adjust.
5104 (remote_target::fileio_fstat): Adjust.
5106 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5108 * remote.c (remote_target::start_remote): Move wait_status to
5111 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5113 * remote.c (class remote_target):
5114 <add_current_inferior_and_thread>: Constify parameter.
5115 (stop_reply_extract_thread): Likewise.
5116 (remote_target::get_current_thread): Likewise.
5117 (remote_target::add_current_inferior_and_thread): Likewise.
5119 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5121 * remote.c (class remote_target)
5122 <remote_unpack_thread_info_response,
5123 parse_threadlist_response>: Constify parameter and/or return
5124 value and or local variable.
5125 (stub_unpack_int): Likewise.
5126 (unpack_nibble): Likewise.
5127 (unpack_byte): Likewise.
5128 (unpack_int): Likewise.
5129 (unpack_string): Likewise.
5130 (unpack_threadid): Likewise.
5131 (remote_target::remote_unpack_thread_info_response): Likewise.
5132 (remote_target::parse_threadlist_response): Likewise.
5134 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5136 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5138 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5140 * MAINTAINERS (Write After Approval): Add myself.
5142 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5144 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5145 because is_trivially_default_constructible was first implemented with
5148 2021-01-14 Tom de Vries <tdevries@suse.de>
5150 PR breakpoints/27151
5151 * objfiles.h (in_plt_section): Handle .plt.sec.
5153 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5157 (remote_target::select_thread_for_ambiguous_stop_reply): New
5159 (remote_target::process_stop_reply): Call
5160 select_thread_for_ambiguous_stop_reply.
5162 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5164 * record-btrace.c (class record_btrace_target): Remove.
5165 (record_btrace_target::commit_resume): Remove.
5166 * record-full.c (class record_full_target): Remove.
5167 (record_full_target::commit_resume): Remove.
5169 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5171 * remote.c (enum class resume_state): New.
5172 (struct resumed_pending_vcont_info): New.
5173 (struct remote_thread_info) <resume_state, set_not_resumed,
5174 set_resumed_pending_vcont, resumed_pending_vcont_info,
5175 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5177 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5178 (remote_target::remote_add_thread): Adjust.
5179 (remote_target::process_initial_stop_replies): Adjust.
5180 (remote_target::resume): Adjust.
5181 (remote_target::commit_resume): Rely on state in
5182 remote_thread_info and not on tp->executing.
5183 (remote_target::process_stop_reply): Adjust.
5185 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5187 * arc-tdep.h (arc_debug_printf): New.
5188 * arc-tdep.c: Use arc_debug_printf.
5189 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5190 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5191 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5193 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5195 * arc-tdep.h (arc_debug): Change type to bool.
5196 * arc-tdep.c (arc_debug): Change type to bool.
5197 (arc_analyze_prologue): Adjust.
5198 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5199 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5201 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5203 * auto-load.c (auto_load_objfile_script_1): Use bool.
5204 (execute_script_contents): Use bool.
5206 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5208 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5210 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5212 * extension-priv.h (struct extension_language_script_ops)
5213 <auto_load_enabled>: Return bool.
5214 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5216 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5218 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5220 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5221 move comment to header.
5222 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5224 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5225 move comment to header.
5227 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5229 * auto-load.h (file_is_auto_load_safe): Change return type to
5230 bool, move comment here.
5231 * auto-load.c (file_is_auto_load_safe): Change return type and
5232 advice_printed to bool. Move comment to header.
5234 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5236 * jit.c (jit_debug_printf): New, use throughout file.
5238 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5240 * infrun.c (normal_stop): Fix indentation.
5242 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5244 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5246 * symfile.h: ... here.
5247 * symfile.c: Update doc.
5249 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5251 * target.h (baud_rate, serial_parity): Move declarations...
5252 * serial.h: ... here.
5253 * main.c: Include serial.h.
5254 * serial.c (baud_rate, serial_parity): Update doc.
5256 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5258 * top.c (pre_init_ui_hook): Remove.
5260 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5262 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5263 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5264 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5265 * features/aarch64-fpu.xml: Add bfloat16 type.
5267 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5269 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5271 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5273 * f-exp.y (dot_ops): Rename to...
5274 (fortran_operators): ...this. Add a header comment. Add symbol
5276 (yylex): Update to use fortran_operators not dot_ops. Remove
5277 special handling for '**', this is now included in
5280 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5282 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5283 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5284 * aarch64-tdep.c: Use aarch64_debug_printf.
5286 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5288 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5291 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5293 * jit.c (jit_debug): Change type to bool.
5294 (_initialize_jit): Adjust.
5296 2021-01-09 Tom Tromey <tom@tromey.com>
5299 * compile/compile.c (compile_to_object): Avoid crash when
5300 osabi_triplet_regexp returns NULL.
5302 2021-01-09 Tom Tromey <tom@tromey.com>
5304 * tracepoint.h (class collection_list) <append_exp>: Take a
5306 * tracepoint.c (collection_list::append_exp): Take a std::string.
5307 (encode_actions_1): Update.
5309 2021-01-08 Tom Tromey <tromey@adacore.com>
5311 * parse.c (parse_expression): Add void_context_p parameter. Use
5312 parse_exp_in_context.
5313 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5315 (print_command, call_command): Update.
5316 * expression.h (parse_expression): Add void_context_p parameter.
5318 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5320 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5321 for internalvar components that have a dynamic location.
5323 2021-01-08 Tom de Vries <tdevries@suse.de>
5326 * breakpoint.c (create_exception_master_breakpoint_probe)
5327 (create_exception_master_breakpoint_hook): Factor out
5329 (create_exception_master_breakpoint): ... here. Only try to install
5330 the master exception breakpoint in objfile.debug using the
5331 _Unwind_DebugHook method, if the install using probes in objfile
5334 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5336 * f-lang.c (fortran_value_subarray): Call value_from_component.
5338 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5340 * remote-sim.c: Include memory-map.h.
5341 (gdbsim_target): Define memory_map override.
5342 (gdbsim_target::memory_map): Define.
5344 2021-01-07 Tom Tromey <tromey@adacore.com>
5346 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5348 2021-01-07 Tom Tromey <tromey@adacore.com>
5350 * ada-lang.c (add_component_interval): Start loop using vector's
5353 2021-01-06 Tom Tromey <tromey@adacore.com>
5355 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5357 * valarith.c (fixed_point_binop): Handle multiplication
5358 and division specially.
5359 * valops.c (value_to_gdb_mpq): New function.
5360 (value_cast_to_fixed_point): Use it.
5362 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5364 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5365 Call wnoutrefresh instead of tui_win_info::refresh_window.
5367 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5369 * tui/tui-source.c (tui_source_window::show_line_number):
5370 Redraw second space after line number.
5372 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5375 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5376 Fix source pad size in prefresh.
5377 (tui_source_window_base::show_source_content): Grow source pad
5380 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5382 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5383 (bfin_frame_align): Use align_down.
5385 2021-01-04 Tom de Vries <tdevries@suse.de>
5387 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5388 terminators that do not terminate anything.
5390 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5392 * debug.c (debug_print_depth): New.
5393 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5394 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5395 * infrun.c (start_step_over): Use
5396 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5397 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5398 INFRUN_SCOPED_DEBUG_START_END.
5399 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5401 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5403 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5405 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5407 * utils.c (vfprintf_unfiltered): Print timestamp only when
5408 previous debug output ended with a newline.
5410 2021-01-04 Luis Machado <luis.machado@linaro.org>
5412 Update all users of trad_frame_saved_reg to use the new member
5415 Remote all struct keywords from declarations of trad_frame_saved_reg
5416 types, except on forward declarations.
5418 * aarch64-tdep.c: Update.
5419 * alpha-mdebug-tdep.c: Update.
5420 * alpha-tdep.c: Update.
5421 * arc-tdep.c: Update.
5422 * arm-tdep.c: Update.
5423 * avr-tdep.c: Update.
5424 * cris-tdep.c: Update.
5425 * csky-tdep.c: Update.
5426 * frv-tdep.c: Update.
5427 * hppa-linux-tdep.c: Update.
5428 * hppa-tdep.c: Update.
5429 * hppa-tdep.h: Update.
5430 * lm32-tdep.c: Update.
5431 * m32r-linux-tdep.c: Update.
5432 * m32r-tdep.c: Update.
5433 * m68hc11-tdep.c: Update.
5434 * mips-tdep.c: Update.
5435 * moxie-tdep.c: Update.
5436 * riscv-tdep.c: Update.
5437 * rs6000-tdep.c: Update.
5438 * s390-linux-tdep.c: Update.
5439 * s390-tdep.c: Update.
5440 * score-tdep.c: Update.
5441 * sparc-netbsd-tdep.c: Update.
5442 * sparc-sol2-tdep.c: Update.
5443 * sparc64-fbsd-tdep.c: Update.
5444 * sparc64-netbsd-tdep.c: Update.
5445 * sparc64-obsd-tdep.c: Update.
5446 * sparc64-sol2-tdep.c: Update.
5447 * tilegx-tdep.c: Update.
5448 * v850-tdep.c: Update.
5449 * vax-tdep.c: Update.
5451 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5452 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5454 * trad-frame.c: Update.
5455 Remove TF_REG_* enum.
5456 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5457 a trivially-constructible struct.
5458 (trad_frame_reset_saved_regs): Adjust to use member function.
5459 (trad_frame_value_p): Likewise.
5460 (trad_frame_addr_p): Likewise.
5461 (trad_frame_realreg_p): Likewise.
5462 (trad_frame_value_bytes_p): Likewise.
5463 (trad_frame_set_value): Likewise.
5464 (trad_frame_set_realreg): Likewise.
5465 (trad_frame_set_addr): Likewise.
5466 (trad_frame_set_unknown): Likewise.
5467 (trad_frame_set_value_bytes): Likewise.
5468 (trad_frame_get_prev_register): Likewise.
5469 * trad-frame.h: Update.
5470 (trad_frame_saved_reg_kind): New enum.
5471 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5472 <m_kind, m_reg>: New member fields.
5473 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5474 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5475 <is_addr, is_unknown, is_value_bytes>: New member functions.
5477 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5479 * target-float.c: Fix typos.
5481 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5483 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5485 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5487 * gdbarch.sh: Update copyright year range.
5489 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5491 Update copyright year range in copyright header of all GDB files.
5493 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5495 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5496 to the list of directories to update.
5498 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5500 * top.c (print_gdb_version): Update copyright year.
5502 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5504 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5506 For older changes see ChangeLog-2020.
5512 version-control: never