1 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
3 * observable.c (observer_debug): Change to bool.
5 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7 * dwarf2/read.c: Add 'unordered_set' include.
8 (dwarf2_base_index_functions::map_symbol_filenames): Replace
9 'visited' hash table with 'qfn_cache' unordered_set. Remove use
10 of per_Bfd->filenames_cache cache, and use function local
11 filenames_cache instead. Reindent.
12 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
14 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
16 * breakpoint.c (iterate_over_bp_locations): Change callback to
17 function view, remove data parameter.
18 * breakpoint.h (iterate_over_bp_locations): Likewise.
19 * record-full.c (record_full_sync_record_breakpoints): Remove
22 2021-04-22 Tom Tromey <tom@tromey.com>
24 * c-typeprint.c (c_type_print_base_struct_union): Use
25 print_spaces_filtered_with_print_options.
27 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
30 * python/py-type.c (typy_range): Check that bounds are constant
31 before accessing them as such.
32 * guile/scm-type.c (gdbscm_type_range): Likewise.
34 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
36 * Makefile.in (COMMON_SFILES): Remove continuations.c.
37 * inferior.c (inferior::add_continuation): New method, adapted
38 from 'add_inferior_continuation'.
39 (inferior::do_all_continuations): New method, adapted from
40 'do_all_inferior_continuations'.
41 (inferior::~inferior): Clear the list of continuations directly.
42 * inferior.h (class inferior) <continuations>: Rename into...
43 <m_continuations>: ...this and make private.
44 * continuations.c: Remove.
45 * continuations.h: Remove.
46 * event-top.c: Don't include "continuations.h".
48 Update the users below.
49 * inf-loop.c (inferior_event_handler)
50 * infcmd.c (attach_command)
51 (notice_new_inferior): Update.
53 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
55 * inferior.h (class inferior) <continuations>: Change the type
56 to be an std::list of std::function's.
57 Update the references and uses below.
58 * continuations.c (struct continuation): Delete.
59 (make_continuation): Delete.
60 (do_my_continuations_1): Delete.
61 (do_my_continuations): Delete.
62 (discard_my_continuations_1): Delete.
63 (discard_my_continuations): Delete.
64 (add_inferior_continuation): Update.
65 (do_all_inferior_continuations): Update.
66 (discard_all_inferior_continuations): Update.
67 * continuations.h (add_inferior_continuation): Update to take
68 an std::function as the parameter.
69 * infcmd.c (struct attach_command_continuation_args): Delete.
70 (attach_command_continuation): Delete.
71 (attach_command_continuation_free_args): Delete.
72 (attach_command): Update.
73 (notice_new_inferior): Update.
75 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
77 * continuations.h: Update the general comment.
78 * inferior.h (class inferior) <continuations>: Update the comment.
79 * interps.c: Do not include "continuations.h".
81 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
83 * continuations.h (do_all_inferior_continuations): Remove the 'err'
84 parameter. Update the references below.
85 * continuations.c (do_my_continuations_1)
87 (do_all_inferior_continuations): Update.
88 * inf-loop.c (inferior_event_handler): Update.
89 * infcmd.c (attach_command_continuation): Update.
91 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
93 * infcmd.c (attach_post_wait): Update the function comment.
95 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
97 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
98 Update the references below.
99 (struct attach_command_continuation_args)
100 (attach_command_continuation)
101 (attach_command_continuation_free_args)
103 (notice_new_inferior): Update to remove the reference to 'args'.
105 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
106 Tom de Vries <tdevries@suse.de>
109 * remote.c (remote_target_is_non_stop_p): New function.
110 * remote.h (remote_target_is_non_stop_p): Declare.
111 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
112 to check non-stopness using notif_state->remote rather current target.
114 2021-04-22 Tom Tromey <tom@tromey.com>
116 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
117 (struct typed_val_int) <val>: Now ULONGEST.
118 (rust_parser::parse_array_type): Remove negative check.
119 (rust_lex_int_test): Change 'value' to ULONGEST.
121 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
123 * arch-utils.c (default_addressable_memory_unit_size): Return a
124 value based on bfd's bits per byte.
126 2021-04-21 Tom Tromey <tom@tromey.com>
128 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
130 (struct dwarf2_per_cu_data): Rearrange.
131 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
133 (struct comp_unit_head): Rearrange.
134 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
136 2021-04-21 Tom de Vries <tdevries@suse.de>
139 * configure.ac: Remove --without-included-regex/--with-included-regex.
140 * config.in: Regenerate.
141 * configure: Regenerate.
142 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
144 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
146 * breakpoint.h (create_breakpoint): Add a new parameter,
148 * breakpoint.c (create_breakpoint): Use the 'force_condition'
149 argument when 'parse_extra' is false to check if the condition
150 is invalid at all of the breakpoint locations.
151 Update the users below.
157 (create_tracepoint_from_upload): Update.
158 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
159 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
160 * python/py-breakpoint.c (bppy_init): Update.
161 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
163 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
165 * breakpoint.c (print_one_breakpoint_location): Display "N" for
166 disabled-by-condition locations on MI-like output.
167 (breakpoint_1): Do not display the disabled-by-condition footnote
168 if the output is MI-like.
170 2021-04-21 Frederic Cambus <fred@statdns.com>
172 * syscalls/update-netbsd.sh: Fix script name display in usage, and
173 update year range in generated copyright notices.
175 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
177 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
180 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
182 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
184 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
186 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
187 (producer_is_icc): Replace use of std::regex with gdb's
190 2021-04-17 Tom Tromey <tom@tromey.com>
193 * dwarf2/read.c (class offset_view): New.
194 (struct symbol_table_slot): Remove.
195 (struct mapped_index) <symbol_table, constant_pool>: Change type.
196 <symbol_name_index, symbol_vec_index>: New methods.
197 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
199 (read_gdb_index_from_buffer): Update.
200 (struct dw2_symtab_iterator) <vec>: Change type.
201 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
202 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
203 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
204 <append_array, append_offset>: New methods.
205 (write_hash_table, add_address_entry, write_gdbindex_1)
206 (write_debug_names): Update.
207 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
209 2021-04-17 Tom Tromey <tom@tromey.com>
211 * dwarf2/index-write.c (write_psymtabs_to_index): Check
214 2021-04-17 Tom Tromey <tom@tromey.com>
216 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
217 from map_matching_symbols. Change parameters.
218 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
219 Rename from map_matching_symbols. Change parameters.
220 * dwarf2/read.c (struct dwarf2_gdb_index)
221 <expand_matching_symbols>: Rename from map_matching_symbols.
223 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
224 Rename from map_matching_symbols. Change parameters.
225 (dwarf2_gdb_index::expand_matching_symbols): Rename from
226 dw2_map_matching_symbols. Change parameters.
227 (dwarf2_gdb_index::expand_matching_symbols): Remove old
229 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
230 map_matching_symbols. Change parameters.
231 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
232 from map_matching_symbols. Change parameters.
233 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
234 map_matching_symbols. Change parameters.
235 * ada-lang.c (map_matching_symbols): New function.
236 (add_nonlocal_symbols): Update.
238 2021-04-17 Tom Tromey <tom@tromey.com>
240 * quick-symbol.h (struct quick_symbol_functions)
241 <expand_symtabs_with_fullname>: Remove.
242 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
244 * psympriv.h (struct psymbol_functions)
245 <expand_symtabs_with_fullname>: Remove.
246 * dwarf2/read.c (struct dwarf2_base_index_functions)
247 <expand_symtabs_with_fullname>: Remove.
248 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
250 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
252 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
255 2021-04-17 Tom Tromey <tom@tromey.com>
257 * symfile-debug.c (objfile::expand_symtabs_for_function):
259 * quick-symbol.h (struct quick_symbol_functions)
260 <expand_symtabs_for_function>: Remove.
261 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
263 * psympriv.h (struct psymbol_functions)
264 <expand_symtabs_for_function>: Remove.
265 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
267 * dwarf2/read.c (struct dwarf2_gdb_index)
268 <expand_symtabs_for_function>: Remove.
269 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
271 (find_slot_in_mapped_hash): Remove.
272 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
273 (dw2_symtab_iter_init): Remove one overload.
274 (dwarf2_gdb_index::expand_symtabs_for_function)
275 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
277 2021-04-17 Tom Tromey <tom@tromey.com>
279 * symfile-debug.c (objfile::map_symtabs_matching_filename):
281 * quick-symbol.h (struct quick_symbol_functions)
282 <map_symtabs_matching_filename>: Remove.
283 * psymtab.c (partial_map_expand_apply)
284 (psymbol_functions::map_symtabs_matching_filename): Remove.
285 * psympriv.h (struct psymbol_functions)
286 <map_symtabs_matching_filename>: Remove.
287 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
289 * dwarf2/read.c (struct dwarf2_base_index_functions)
290 <map_symtabs_matching_filename>: Remove.
291 (dw2_map_expand_apply)
292 (dwarf2_base_index_functions::map_symtabs_matching_filename):
295 2021-04-17 Tom Tromey <tom@tromey.com>
297 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
298 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
300 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
301 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
302 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
303 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
305 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
306 (dwarf2_gdb_index::lookup_symbol)
307 (dwarf2_debug_names_index::lookup_symbol): Remove.
309 2021-04-17 Tom Tromey <tom@tromey.com>
311 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
312 * symmisc.c (maintenance_expand_symtabs): Update.
313 * symfile.c (expand_symtabs_matching): Update.
314 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
316 * quick-symbol.h (struct quick_symbol_functions)
317 <expand_symtabs_matching>: Add 'domain' parameter.
318 * psymtab.c (recursively_search_psymtabs)
319 (psymbol_functions::expand_symtabs_matching): Add 'domain'
321 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
322 Add 'domain' parameter.
323 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
325 * linespec.c (iterate_over_all_matching_symtabs): Update.
326 * dwarf2/read.c (struct dwarf2_gdb_index)
327 <expand_symtabs_matching>: Add 'domain' parameter.
328 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
330 (dw2_expand_symtabs_matching)
331 (dwarf2_gdb_index::expand_symtabs_matching)
332 (dw2_debug_names_iterator)
333 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
336 2021-04-17 Tom Tromey <tom@tromey.com>
338 * symtab.c (global_symbol_searcher::expand_symtabs)
339 (default_collect_symbol_completion_matches_break_on): Update.
340 * symmisc.c (maintenance_expand_symtabs): Update.
341 * symfile.h (expand_symtabs_matching): Add search_flags
343 * symfile.c (expand_symtabs_matching): Add search_flags
345 * symfile-debug.c (objfile::expand_symtabs_matching): Add
346 search_flags parameter.
347 * quick-symbol.h (struct quick_symbol_functions)
348 <expand_symtabs_matching>: Add search_flags parameter.
349 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
350 * psymtab.c (recursively_search_psymtabs)
351 (psymbol_functions::expand_symtabs_matching): Add search_flags
353 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
354 Add search_flags parameter.
355 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
356 search_flags parameter.
357 * linespec.c (iterate_over_all_matching_symtabs): Update.
358 * dwarf2/read.c (struct dwarf2_gdb_index)
359 <expand_symtabs_matching>: Add search_flags parameter.
360 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
361 search_flags parameter.
362 (dw2_map_matching_symbols): Update.
363 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
364 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
366 (dw2_debug_names_iterator): Change block_index to search flags.
367 <m_block_index>: Likewise.
368 (dw2_debug_names_iterator::next)
369 (dwarf2_debug_names_index::lookup_symbol)
370 (dwarf2_debug_names_index::expand_symtabs_for_function)
371 (dwarf2_debug_names_index::map_matching_symbols)
372 (dwarf2_debug_names_index::map_matching_symbols): Update.
373 (dwarf2_debug_names_index::expand_symtabs_matching): Add
374 search_flags parameter.
375 * ada-lang.c (ada_add_global_exceptions)
376 (collect_symbol_completion_matches): Update.
378 2021-04-17 Tom Tromey <tom@tromey.com>
380 * symtab.c (default_collect_symbol_completion_matches_break_on):
382 * symfile.h (expand_symtabs_matching): Return bool.
383 * symfile.c (expand_symtabs_matching): Return bool.
384 * symfile-debug.c (objfile::expand_symtabs_matching): Return
386 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
387 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
389 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
391 * psympriv.h (struct psymbol_functions)
392 <expand_symtabs_matching>: Return bool.
393 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
395 * dwarf2/read.c (struct dwarf2_gdb_index)
396 <expand_symtabs_matching>: Return bool.
397 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
399 (dw2_expand_symtabs_matching_symbol): Return bool.
400 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
401 (dw2_expand_symtabs_matching)
402 (dwarf2_gdb_index::expand_symtabs_matching)
403 (dwarf2_debug_names_index::expand_symtabs_matching)
404 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
406 2021-04-17 Tom Tromey <tom@tromey.com>
408 * quick-symbol.h (enum block_search_flag_values): New.
409 (block_search_flags): New enum flags type.
411 2021-04-16 Tom Tromey <tom@tromey.com>
413 * rust-parse.c: New file.
414 * rust-exp.y: Remove.
415 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
416 (SFILES): Remove rust-exp.y.
417 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
419 2021-04-16 Luis Machado <luis.machado@linaro.org>
421 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
423 2021-04-15 John Baldwin <jhb@FreeBSD.org>
425 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
428 2021-04-15 Tom Tromey <tromey@adacore.com>
430 * ada-valprint.c (ada_value_print_array): Handle optimized-out
433 2021-04-15 Tom Tromey <tromey@adacore.com>
435 * printcmd.c (print_variable_and_value): Use
436 common_val_print_checked.
438 2021-04-15 Tom Tromey <tromey@adacore.com>
440 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
441 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
443 * p-exp.y (variable): Update.
444 * m2-exp.y (variable): Update.
445 * go-exp.y (variable): Update.
446 * expprint.c (dump_for_expression): New overload.
447 * expop.h (check_objfile): New overload.
448 (check_constant): New overload.
449 (class var_value_operation): Use block_symbol.
450 <get_symbol>: Rewrite.
451 * eval.c (var_value_operation::evaluate)
452 (var_value_operation::evaluate_funcall)
453 (var_value_operation::evaluate_for_address)
454 (var_value_operation::evaluate_for_address)
455 (var_value_operation::evaluate_with_coercion)
456 (var_value_operation::evaluate_for_sizeof)
457 (var_value_operation::evaluate_for_cast): Update.
458 * d-exp.y (PrimaryExpression): Update.
459 * c-exp.y (variable): Update.
460 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
461 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
462 (ada_var_value_operation::evaluate)
463 (ada_var_value_operation::resolve)
464 (ada_funcall_operation::resolve): Update.
465 * ada-exp.y (write_var_from_sym, write_object_renaming)
466 (write_ambiguous_var, write_var_or_type, write_name_assoc)
467 (maybe_overload): Update.
468 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
470 2021-04-15 Tom Tromey <tom@tromey.com>
471 Andrew Burgess <andrew.burgess@embecosm.com>
474 * main.c (captured_main_1): Call check_quiet_mode.
475 * top.c (startup_quiet): New global.
476 (check_quiet_mode): New function.
477 (show_startup_quiet): New function.
478 (init_main): Register new command.
479 * top.h (check_quiet_mode): Declare.
481 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
484 * NEWS: Mention new early init files and command line options.
485 * config.in: Regenerate.
486 * configure: Regenerate.
487 * configure.ac: Define GDBEARLYINIT.
488 * main.c (get_earlyinit_files): New function.
489 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
490 CMDARG_EARLYINIT_COMMAND.
491 (captured_main_1): Add support for new command line flags, and for
492 processing startup files.
493 (print_gdb_help): Include startup files in the output.
495 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
497 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
498 (relocate_file_path_maybe_in_datadir): ...this.
499 (class gdb_initfile_finder): New class.
500 (get_init_files): Now uses gdb_initfile_finder.
501 (print_gdb_help): Print 'None found' when there are no init files.
503 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
505 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
506 corresponding child of the abstract DIE when iterating the
507 children of the concrete DIE.
509 2021-04-13 Tom de Vries <tdevries@suse.de>
511 * ui-style.c (read_semi_number, extended_color): Change idx parameter
514 2021-04-13 Luis Machado <luis.machado@linaro.org>
516 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
519 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
521 * rs6000-tdep.c: Add support for single-stepping of
522 prefixed instructions.
524 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
527 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
528 handle the addpcis/lnia instruction.
530 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
532 * MAINTAINERS (Write After Approval): Add myself.
534 2021-4-12 Carl Love <cel@us.ibm.com>
536 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
537 (rs6000_builtin_type_vec128): Add append_composite_type_field for
540 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
542 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
543 * nat/windows-nat.h: Likewise.
545 2021-04-10 Eli Zaretskii <eliz@gnu.org>
547 * windows-nat.c (windows_nat::handle_load_dll): Call
548 windows_add_dll if get_image_name failed to glean the name of the
549 DLL by using the lpImageName pointer.
550 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
551 (windows_add_dll): Now does what windows_add_all_dlls did before,
552 but also accepts an argument LOAD_ADDR, which, if non-NULL,
553 specifies the address where the DLL was loaded into the inferior,
554 and looks for the single DLL loaded at that address.
556 2021-04-09 Luis Machado <luis.machado@linaro.org>
558 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
560 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
562 * darwin-nat.c (darwin_nat_target::resume): Remove status
565 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
567 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
568 prologue end for Intel compilers.
569 * amd64-tdep.c (amd64_skip_prologue): Likewise.
570 * producer.c (producer_is_icc_ge_19): New function.
571 * producer.h (producer_is_icc_ge_19): New declaration.
573 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
575 * producer.c: (producer_is_icc): Update for new version scheme.
576 (producer_parsing_tests): Update names and expected results.
577 * producer.h: (producer_is_icc): Update comment accordingly.
579 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
581 * target.h (struct target_ops) <follow_fork>: Return void.
582 (target_follow_fork): Likewise.
583 * target.c (default_follow_fork): Likewise.
584 (target_follow_fork): Likewise.
585 * infrun.c (follow_fork_inferior): Adjust.
586 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
587 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
588 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
589 * linux-nat.c (linux_nat_target::follow_fork): Return void.
590 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
591 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
592 * remote.c (class remote_target) <follow_fork>: Likewise.
593 (remote_target::follow_fork): Likewise.
594 * target-delegates.c: Re-generate.
596 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
598 * ctfread.c (fetch_tid_type): New function, use throughout file.
599 (read_forward_type): New function.
600 (read_type_record): Call read_forward_type.
602 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
604 * f-exp.h (class fortran_structop_operation): New class.
605 * f-exp.y (exp): Create fortran_structop_operation instead of the
606 generic structop_operation.
607 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
608 expression as EVAL_NORMAL if the result type was dynamic so we can
609 extract the actual array bounds.
610 (fortran_structop_operation::evaluate): New function.
612 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
614 * eval.c (evaluate_subexp_standard): Remove
615 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
618 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
620 * valops.c (value_cast): Call value_deeply_equal before performing
623 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
625 * gdbtypes.c (types_equal): Move pointer equality check earlier in
628 2021-04-07 Caroline Tice <cmtice@google.com>
630 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
631 the search paths used resolve relative location of .dwo file.
633 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
635 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
637 (dwarf2_section_info::get_file_name): Add an assert.
638 (dwarf2_section_info::read_string): Display a minimal, sane error
639 when the dwarf2_section_info is not associated with a bfd section.
641 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
643 * top.c (staged_gdb_datadir): Update comment.
644 (set_gdb_datadir): Copy the value of gdb_datadir back into
646 (init_main): Initialise staged_gdb_datadir.
648 2021-04-06 Tom de Vries <tdevries@suse.de>
651 * infcmd.c (prepare_one_step): Using inline frame info to narrow
654 2021-04-06 Tom de Vries <tdevries@suse.de>
657 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
660 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
662 * avr-tdep.c (avr_frame_unwind_cache): Use
663 trad_frame_saved_reg::is_addr.
665 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
667 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
670 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
672 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
673 objfile parameter for objfile_per_bfd_storage, adjust callers.
674 (struct standard_psymtab) <standard_psymtab>: Likewise.
675 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
676 * psymtab.c (partial_symtab::partial_symtab): Likewise.
677 * ctfread.c (struct ctf_psymtab): Likewise.
678 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
679 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
680 (dwarf2_create_include_psymtab): Likewise.
681 * objfiles.h (struct objfile_per_bfd_storage)
682 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
683 <get_bfd>: New method.
685 * objfiles.c (get_objfile_bfd_data): Adjust.
687 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
689 * psymtab.c (partial_symtab::partial_symtab): Change
690 last_objfile_name to be an std::string.
691 * symfile.c (allocate_symtab): Likewise.
693 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
695 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
697 (struct objfile) <intern>: Use
698 objfile::objfile_per_bfd_storage::intern.
700 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
702 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
703 with type::is_flag_enum.
705 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
707 * gdbtypes.h (struct type) <is_flag_enum,
708 set_is_flag_enum>: New methods.
709 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
710 write call sites to use type::set_is_flag_enum.
712 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
714 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
715 with type::is_declared_class.
717 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
719 * gdbtypes.h (struct type) <is_declared_class,
720 set_is_declared_class>: New methods.
721 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
722 write call sites to use type::set_is_declared_class.
724 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
726 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
727 to avoid deprecation warnings.
729 2021-04-01 Martin Liska <mliska@suse.cz>
731 * cp-name-parser.y: Use startswith instead of strncmp.
732 * m2-exp.y: Likewise.
733 * macroexp.c (substitute_args): Likewise.
734 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
735 * rust-exp.y: Likewise.
737 2021-03-31 Tom Tromey <tom@tromey.com>
739 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
740 with dw2_map_matching_symbols.
741 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
742 dw2_expand_symtabs_matching.
744 2021-03-31 Tom Tromey <tromey@adacore.com>
746 * dwarf2/stringify.h: Fix typo.
748 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
751 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
752 with objfiles using READNOW.
754 2021-03-29 Tom Tromey <tromey@adacore.com>
756 * top.c (check_frame_language_change): Update.
757 * language.c (language_info): Remove parameter.
758 * language.h (language_info): Remove parameter.
760 2021-03-29 Luis Machado <luis.machado@linaro.org>
762 * compile/compile.c (get_args): Don't add empty argv entries.
764 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
767 * procfs.c (procfs_target::attach): Define inf.
769 (procfs_target::create_inferior): Likewise.
771 2021-03-28 Tom Tromey <tom@tromey.com>
773 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
774 (elf_symfile_read): Simplify.
775 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
776 (make_lazy_dwarf_reader): New function.
777 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
778 (dwarf2_initialize_objfile): Return void. Remove index_kind
779 parameter. Push on 'qf' list.
780 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
781 type. Remove 'index_kind' parameter.
782 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
784 2021-03-27 Tom Tromey <tom@tromey.com>
786 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
788 2021-03-27 Tom Tromey <tom@tromey.com>
790 * elfread.c (elf_symfile_read): Don't clear 'qf'.
792 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
794 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
797 2021-03-26 Tom Tromey <tom@tromey.com>
799 * symtab.c (struct output_source_filename_data): Add 'output'
800 method and operator().
801 (output_source_filename_data::output): Rename from
802 output_source_filename.
803 (output_partial_symbol_filename): Remove.
804 (info_sources_command): Update.
805 (struct add_partial_filename_data): Add operator().
806 (add_partial_filename_data::operator()): Rename from
807 maybe_add_partial_symtab_filename.
808 (make_source_files_completion_list): Update.
809 * symfile.c (quick_symbol_functions): Update.
810 * symfile-debug.c (objfile::map_symbol_filenames): Update.
811 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
812 'need_fullname'. Remove 'data' parameter.
813 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
814 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
815 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
816 Change type of 'fun' and 'need_fullname'. Remove 'data'
818 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
819 of 'fun' and 'need_fullname'. Remove 'data' parameter.
820 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
822 (mi_cmd_file_list_exec_source_files): Update.
824 (dwarf2_base_index_functions::map_symbol_filenames): Update.
826 2021-03-26 Tom Tromey <tom@tromey.com>
828 * ada-lang.c (struct match_data): Add operator().
829 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
830 (callback): Remove 'callback'.
832 2021-03-26 Tom Tromey <tom@tromey.com>
834 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
835 call make_ignore_params once.
837 2021-03-26 Tom Tromey <tom@tromey.com>
839 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
842 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
843 Pedro Alves <pedro@palves.net>
845 * async-event.c: Include "infrun.h".
846 (async_event_handler_marked): New.
847 * async-event.h (async_event_handler_marked): Declare.
848 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
849 inferior before calling target method. Don't commit-resumed if
850 target_has_pending_events is true.
851 * remote.c (remote_target::has_pending_events): New.
852 * target-delegates.c: Regenerate.
853 * target.c (target_has_pending_events): New.
854 * target.h (target_ops::has_pending_events): New target method.
855 (target_has_pending_events): New.
857 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
858 Pedro Alves <pedro@palves.net>
860 * infcmd.c (run_command_1, attach_command, detach_command)
861 (interrupt_target_1): Use scoped_disable_commit_resumed.
862 * infrun.c (do_target_resume): Remove
863 target_commit_resume call.
864 (commit_resume_all_targets): Remove.
865 (maybe_set_commit_resumed_all_targets): New.
866 (maybe_call_commit_resumed_all_targets): New.
867 (enable_commit_resumed): New.
868 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
869 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
870 (scoped_disable_commit_resumed::reset)
871 (scoped_disable_commit_resumed::reset_and_commit)
872 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
873 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
875 (proceed): Use scoped_disable_commit_resumed and
876 maybe_call_commit_resumed_all_targets.
877 (fetch_inferior_event): Use scoped_disable_commit_resumed.
878 * infrun.h (struct scoped_disable_commit_resumed): New.
879 (maybe_call_commit_resumed_all_process_targets): New.
880 (struct scoped_enable_commit_resumed): New.
881 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
882 * process-stratum-target.h (class process_stratum_target):
883 <commit_resumed_state>: New.
884 * record-full.c (record_full_wait_1): Change commit_resumed_state
885 around calling commit_resumed.
886 * remote.c (class remote_target) <commit_resume>: Rename to...
887 <commit_resumed>: ... this.
888 (struct stop_reply): Move up.
889 (remote_target::commit_resume): Rename to...
890 (remote_target::commit_resumed): ... this. Check if there is any
891 thread pending vCont resume.
892 (remote_target::remote_stop_ns): Generate stop replies for resumed
893 but pending vCont threads.
894 (remote_target::wait_ns): Add gdb_assert.
895 * target-delegates.c: Regenerate.
896 * target.c (target_wait, target_resume): Assert that the current
897 process_stratum target isn't in commit-resumed state.
898 (defer_target_commit_resume): Remove.
899 (target_commit_resume): Remove.
900 (target_commit_resumed): New.
901 (make_scoped_defer_target_commit_resume): Remove.
902 (target_stop): Assert that the current process_stratum target
903 isn't in commit-resumed state.
904 * target.h (struct target_ops) <commit_resume>: Rename to ...
905 <commit_resumed>: ... this.
906 (target_commit_resume): Remove.
907 (target_commit_resumed): New.
908 (make_scoped_defer_target_commit_resume): Remove.
909 * top.c (wait_sync_command_done): Use
910 scoped_enable_commit_resumed.
912 2021-03-26 Pedro Alves <pedro@palves.net>
914 * target.c (target_always_non_stop_p): Also check whether the
917 2021-03-26 Tom Tromey <tom@tromey.com>
919 * dwarf2/read.c (dwarf2_read_debug_names)
920 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
921 (dw2_debug_names_iterator::next, create_type_unit_group):
924 2021-03-25 Pedro Alves <pedro@palves.net>
926 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
927 around setting the breakpoint.
929 2021-03-25 Pedro Alves <pedro@palves.net>
932 (remote_target::check_pending_events_prevent_wildcard_vcont):
933 Check whether the event's ptid is not null_ptid before looking up
934 the corresponding inferior.
936 2021-03-24 Changbin Du <changbin.du@gmail.com>
938 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
941 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
943 * target.h (current_top_target): Remove, make callers use the
944 current inferior instead.
945 * target.c (current_top_target): Remove.
947 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
949 * target.h (target_shortname): Change to function declaration.
950 (target_longname): Likewise.
951 (target_attach_no_wait): Likewise.
952 (target_post_attach): Likewise.
953 (target_prepare_to_store): Likewise.
954 (target_supports_enable_disable_tracepoint): Likewise.
955 (target_supports_string_tracing): Likewise.
956 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
957 (target_supports_dumpcore): Likewise.
958 (target_dumpcore): Likewise.
959 (target_can_run_breakpoint_commands): Likewise.
960 (target_files_info): Likewise.
961 (target_post_startup_inferior): Likewise.
962 (target_insert_fork_catchpoint): Likewise.
963 (target_remove_fork_catchpoint): Likewise.
964 (target_insert_vfork_catchpoint): Likewise.
965 (target_remove_vfork_catchpoint): Likewise.
966 (target_insert_exec_catchpoint): Likewise.
967 (target_remove_exec_catchpoint): Likewise.
968 (target_set_syscall_catchpoint): Likewise.
969 (target_rcmd): Likewise.
970 (target_can_lock_scheduler): Likewise.
971 (target_can_async_p): Likewise.
972 (target_is_async_p): Likewise.
973 (target_execution_direction): Likewise.
974 (target_extra_thread_info): Likewise.
975 (target_pid_to_exec_file): Likewise.
976 (target_thread_architecture): Likewise.
977 (target_find_memory_regions): Likewise.
978 (target_make_corefile_notes): Likewise.
979 (target_get_bookmark): Likewise.
980 (target_goto_bookmark): Likewise.
981 (target_stopped_by_watchpoint): Likewise.
982 (target_stopped_by_sw_breakpoint): Likewise.
983 (target_supports_stopped_by_sw_breakpoint): Likewise.
984 (target_stopped_by_hw_breakpoint): Likewise.
985 (target_supports_stopped_by_hw_breakpoint): Likewise.
986 (target_have_steppable_watchpoint): Likewise.
987 (target_can_use_hardware_watchpoint): Likewise.
988 (target_region_ok_for_hw_watchpoint): Likewise.
989 (target_can_do_single_step): Likewise.
990 (target_insert_watchpoint): Likewise.
991 (target_remove_watchpoint): Likewise.
992 (target_insert_hw_breakpoint): Likewise.
993 (target_remove_hw_breakpoint): Likewise.
994 (target_can_accel_watchpoint_condition): Likewise.
995 (target_can_execute_reverse): Likewise.
996 (target_get_ada_task_ptid): Likewise.
997 (target_filesystem_is_local): Likewise.
998 (target_trace_init): Likewise.
999 (target_download_tracepoint): Likewise.
1000 (target_can_download_tracepoint): Likewise.
1001 (target_download_trace_state_variable): Likewise.
1002 (target_enable_tracepoint): Likewise.
1003 (target_disable_tracepoint): Likewise.
1004 (target_trace_start): Likewise.
1005 (target_trace_set_readonly_regions): Likewise.
1006 (target_get_trace_status): Likewise.
1007 (target_get_tracepoint_status): Likewise.
1008 (target_trace_stop): Likewise.
1009 (target_trace_find): Likewise.
1010 (target_get_trace_state_variable_value): Likewise.
1011 (target_save_trace_data): Likewise.
1012 (target_upload_tracepoints): Likewise.
1013 (target_upload_trace_state_variables): Likewise.
1014 (target_get_raw_trace_data): Likewise.
1015 (target_get_min_fast_tracepoint_insn_len): Likewise.
1016 (target_set_disconnected_tracing): Likewise.
1017 (target_set_circular_trace_buffer): Likewise.
1018 (target_set_trace_buffer_size): Likewise.
1019 (target_set_trace_notes): Likewise.
1020 (target_get_tib_address): Likewise.
1021 (target_set_permissions): Likewise.
1022 (target_static_tracepoint_marker_at): Likewise.
1023 (target_static_tracepoint_markers_by_strid): Likewise.
1024 (target_traceframe_info): Likewise.
1025 (target_use_agent): Likewise.
1026 (target_can_use_agent): Likewise.
1027 (target_augmented_libraries_svr4_read): Likewise.
1028 (target_log_command): Likewise.
1029 * target.c (target_shortname): New.
1030 (target_longname): New.
1031 (target_attach_no_wait): New.
1032 (target_post_attach): New.
1033 (target_prepare_to_store): New.
1034 (target_supports_enable_disable_tracepoint): New.
1035 (target_supports_string_tracing): New.
1036 (target_supports_evaluation_of_breakpoint_conditions): New.
1037 (target_supports_dumpcore): New.
1038 (target_dumpcore): New.
1039 (target_can_run_breakpoint_commands): New.
1040 (target_files_info): New.
1041 (target_post_startup_inferior): New.
1042 (target_insert_fork_catchpoint): New.
1043 (target_remove_fork_catchpoint): New.
1044 (target_insert_vfork_catchpoint): New.
1045 (target_remove_vfork_catchpoint): New.
1046 (target_insert_exec_catchpoint): New.
1047 (target_remove_exec_catchpoint): New.
1048 (target_set_syscall_catchpoint): New.
1050 (target_can_lock_scheduler): New.
1051 (target_can_async_p): New.
1052 (target_is_async_p): New.
1053 (target_execution_direction): New.
1054 (target_extra_thread_info): New.
1055 (target_pid_to_exec_file): New.
1056 (target_thread_architecture): New.
1057 (target_find_memory_regions): New.
1058 (target_make_corefile_notes): New.
1059 (target_get_bookmark): New.
1060 (target_goto_bookmark): New.
1061 (target_stopped_by_watchpoint): New.
1062 (target_stopped_by_sw_breakpoint): New.
1063 (target_supports_stopped_by_sw_breakpoint): New.
1064 (target_stopped_by_hw_breakpoint): New.
1065 (target_supports_stopped_by_hw_breakpoint): New.
1066 (target_have_steppable_watchpoint): New.
1067 (target_can_use_hardware_watchpoint): New.
1068 (target_region_ok_for_hw_watchpoint): New.
1069 (target_can_do_single_step): New.
1070 (target_insert_watchpoint): New.
1071 (target_remove_watchpoint): New.
1072 (target_insert_hw_breakpoint): New.
1073 (target_remove_hw_breakpoint): New.
1074 (target_can_accel_watchpoint_condition): New.
1075 (target_can_execute_reverse): New.
1076 (target_get_ada_task_ptid): New.
1077 (target_filesystem_is_local): New.
1078 (target_trace_init): New.
1079 (target_download_tracepoint): New.
1080 (target_can_download_tracepoint): New.
1081 (target_download_trace_state_variable): New.
1082 (target_enable_tracepoint): New.
1083 (target_disable_tracepoint): New.
1084 (target_trace_start): New.
1085 (target_trace_set_readonly_regions): New.
1086 (target_get_trace_status): New.
1087 (target_get_tracepoint_status): New.
1088 (target_trace_stop): New.
1089 (target_trace_find): New.
1090 (target_get_trace_state_variable_value): New.
1091 (target_save_trace_data): New.
1092 (target_upload_tracepoints): New.
1093 (target_upload_trace_state_variables): New.
1094 (target_get_raw_trace_data): New.
1095 (target_get_min_fast_tracepoint_insn_len): New.
1096 (target_set_disconnected_tracing): New.
1097 (target_set_circular_trace_buffer): New.
1098 (target_set_trace_buffer_size): New.
1099 (target_set_trace_notes): New.
1100 (target_get_tib_address): New.
1101 (target_set_permissions): New.
1102 (target_static_tracepoint_marker_at): New.
1103 (target_static_tracepoint_markers_by_strid): New.
1104 (target_traceframe_info): New.
1105 (target_use_agent): New.
1106 (target_can_use_agent): New.
1107 (target_augmented_libraries_svr4_read): New.
1108 (target_log_command): New.
1109 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1110 * infrun.c (set_schedlock_func): Adjust.
1111 * mi/mi-main.c (exec_reverse_continue): Adjust.
1112 * reverse.c (exec_reverse_once): Adjust.
1113 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1114 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1115 * remote-sim.c (gdbsim_target::detach): Adjust.
1116 (gdbsim_target::files_info): Adjust.
1118 2021-03-24 Tom Tromey <tom@tromey.com>
1120 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1121 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1122 (check_match, dw2_expand_symtabs_matching)
1123 (dwarf2_debug_names_index::map_matching_symbols)
1124 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1126 2021-03-24 Keith Seitz <keiths@redhat.com>
1128 * compile/compile-cplus-types.c
1129 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1132 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1134 * gdbarch.sh (gdbarch_data_registry): Make static.
1135 * gdbarch.c: Re-generate.
1137 2021-03-24 Luis Machado <luis.machado@linaro.org>
1139 * NEWS: Mention memory tagging changes.
1141 2021-03-24 Luis Machado <luis.machado@linaro.org>
1143 * printcmd.c (decode_format): Handle the 'm' modifier.
1144 (do_examine): Display allocation tags when required/supported.
1145 (should_validate_memtags): New function.
1146 (print_command_1): Display memory tag mismatches.
1147 * valprint.c (show_memory_tag_violations): New function.
1148 (value_print_option_defs): Add new option "memory-tag-violations".
1149 (user_print_options) <memory_tag_violations>: Initialize to 1.
1150 * valprint.h (struct format_data) <print_tags>: New field.
1151 (value_print_options) <memory_tag_violations>: New field.
1153 2021-03-24 Luis Machado <luis.machado@linaro.org>
1155 * printcmd.c: Include gdbsupport/rsp-low.h.
1156 (memory_tag_list): New static global.
1157 (process_print_command_args): Factored out of
1159 (print_command_1): Use process_print_command_args.
1160 (show_addr_not_tagged, show_memory_tagging_unsupported)
1161 (memory_tag_command, memory_tag_print_tag_command)
1162 (memory_tag_print_logical_tag_command)
1163 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1164 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1165 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1167 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1169 2021-03-24 Luis Machado <luis.machado@linaro.org>
1171 * aarch64-linux-tdep.c
1172 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1173 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1175 2021-03-24 Luis Machado <luis.machado@linaro.org>
1177 * aarch64-linux-tdep.c
1178 (aarch64_linux_report_signal_info): New function.
1179 (aarch64_linux_init_abi): Register
1180 aarch64_linux_report_signal_info as the report_signal_info hook.
1181 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1182 (SEGV_MTESERR): Define.
1184 2021-03-24 Luis Machado <luis.machado@linaro.org>
1186 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1187 (aarch64_linux_ltag_tests): New function.
1188 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1190 2021-03-24 Luis Machado <luis.machado@linaro.org>
1192 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1193 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1194 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1195 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1197 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1198 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1199 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1200 (aarch64_linux_get_ltag): New functions.
1201 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1202 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1203 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1204 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1206 2021-03-24 Luis Machado <luis.machado@linaro.org>
1208 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1210 (struct smaps_data): New struct.
1211 (decode_vmflags): Handle the 'mt' flag.
1212 (parse_smaps_data): New function, refactored from
1213 linux_find_memory_regions_full.
1214 (linux_address_in_memtag_page): New function.
1215 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1216 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1218 2021-03-24 Luis Machado <luis.machado@linaro.org>
1220 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1221 instead of char arrays.
1223 2021-03-24 Luis Machado <luis.machado@linaro.org>
1225 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1226 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1227 nat/aarch64-mte-linux-ptrace.h.
1228 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1229 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1231 <fetch_memtags>: New method override.
1232 <store_memtags>: New method override.
1233 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1234 (aarch64_linux_nat_target::fetch_memtags): New method.
1235 (aarch64_linux_nat_target::store_memtags): New method.
1236 * arch/aarch64-mte-linux.c: New file.
1237 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1238 (AARCH64_MTE_GRANULE_SIZE): Define.
1239 (aarch64_memtag_type): New enum.
1240 (aarch64_mte_get_tag_granules): New prototype.
1241 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1242 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1243 * nat/aarch64-mte-linux-ptrace.c: New file.
1244 * nat/aarch64-mte-linux-ptrace.h: New file.
1246 2021-03-24 Luis Machado <luis.machado@linaro.org>
1248 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1249 * nat/aarch64-mte-linux-ptrace.h: New file.
1251 2021-03-24 Luis Machado <luis.machado@linaro.org>
1253 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1254 (store_mteregs_to_thread): New function.
1255 (aarch64_linux_nat_target::fetch_registers): Update to call
1256 fetch_mteregs_from_thread.
1257 (aarch64_linux_nat_target::store_registers): Update to call
1258 store_mteregs_to_thread.
1259 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1260 (aarch64_cannot_store_register): Handle MTE registers.
1261 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1262 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1263 <has_mte>: New method.
1264 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1266 2021-03-24 Luis Machado <luis.machado@linaro.org>
1268 * aarch64-linux-nat.c
1269 (aarch64_linux_nat_target::read_description): Take MTE flag into
1271 Slight refactor to hwcap flag checking.
1272 * aarch64-linux-tdep.c
1273 (aarch64_linux_core_read_description): Likewise.
1274 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1276 (aarch64_read_description): Add mte_p parameter and update to use it.
1277 Update the documentation.
1278 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1279 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1280 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1281 (aarch64_create_target_description): Add mte_p parameter and update
1283 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1285 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1286 * features/aarch64-mte.c: New file, generated.
1287 * features/aarch64-mte.xml: New file.
1289 2021-03-24 Luis Machado <luis.machado@linaro.org>
1291 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1292 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1293 * aarch64-linux-tdep.c: Likewise
1294 * arch/aarch64-mte-linux.h: New file.
1296 2021-03-24 Luis Machado <luis.machado@linaro.org>
1298 * remote: Include gdbsupport/selftest.h.
1299 (test_memory_tagging_functions): New function.
1300 (_initialize_remote): Register test_memory_tagging_functions.
1302 2021-03-24 Luis Machado <luis.machado@linaro.org>
1304 * remote.c (PACKET_memory_tagging_feature): New enum.
1305 (remote_memory_tagging_p): New function.
1306 (remote_protocol_features): New "memory-tagging" entry.
1307 (remote_target::remote_query_supported): Handle memory tagging
1309 (remote_target::supports_memory_tagging): Implement.
1310 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1311 (create_store_memtags_request): New functions.
1312 (remote_target::fetch_memtags): Implement.
1313 (remote_target::store_memtags): Implement.
1314 (_initialize_remote): Add new "memory-tagging-feature"
1317 2021-03-24 Luis Machado <luis.machado@linaro.org>
1319 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1320 (default_memtag_matches_p, default_set_memtags)
1321 (default_get_memtag): New functions.
1322 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1323 (default_memtag_matches_p, default_set_memtags)
1324 (default_get_memtag): New prototypes.
1325 * gdbarch.c: Regenerate.
1326 * gdbarch.h: Regenerate.
1327 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1328 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1329 (enum memtag_type): New enum.
1331 2021-03-24 Luis Machado <luis.machado@linaro.org>
1333 * remote.c (remote_target) <supports_memory_tagging>: New method
1335 <fetch_memtags>: New method override.
1336 <store_memtags>: New method override.
1337 (remote_target::supports_memory_tagging): New method.
1338 (remote_target::fetch_memtags): New method.
1339 (remote_target::store_memtags): New method.
1340 * target-delegates.c: Regenerate.
1341 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1343 <fetch_memtags>: New virtual method.
1344 <store_memtags>: New virtual method.
1345 (target_supports_memory_tagging): Define.
1346 (target_fetch_memtags): Define.
1347 (target_store_memtags): Define.
1348 * target-debug.h (target_debug_print_size_t)
1349 (target_debug_print_const_gdb_byte_vector_r)
1350 (target_debug_print_gdb_byte_vector_r): New functions.
1352 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1354 * target.h (target_longname): Remove.
1356 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1358 * target.h (target_is_pushed): Remove, update callers to use
1359 inferior::target_is_pushed instead.
1360 * target.c (target_is_pushed): Remove.
1362 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1364 * target.h (push_target): Remove, update callers to use
1365 inferior::push_target.
1366 * target.c (push_target): Remove.
1367 * inferior.h (class inferior) <push_target>: New overload.
1369 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1371 * target.h (unpush_target): Remove, update all callers
1372 to use `inferior::unpush_target` instead.
1373 (struct target_unpusher) <operator()>: Just declare.
1374 * target.c (unpush_target): Remove.
1375 (target_unpusher::operator()): New.
1377 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1379 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1381 (process_full_comp_unit): Validate the top-level tag before
1382 processing the first DIE.
1383 (read_func_scope): Ensure we have a valid builder.
1385 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1387 * objc-lang.c (objc_demangle): Renamed to
1388 objc_language::demangle_symbol, and moved later in the file.
1389 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1391 (objc_language::demangle_symbol): Defined outside of class
1392 declaration. The definition is the old objc_demangle with NULL
1393 changed to nullptr, and if conditions relating to nullptr pointers
1394 or null character checks made explicit.
1395 * objc-lang.h (objc_demangle): Delete declaration.
1397 2021-03-22 Martin Liska <mliska@suse.cz>
1399 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1400 (_initialize_arm_tdep): Likewise.
1402 2021-03-20 Tom Tromey <tom@tromey.com>
1404 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1405 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1406 * psymtab.h (make_psymbol_functions): Don't declare.
1407 * psymtab.c (make_psymbol_functions): Remove.
1408 (maintenance_print_psymbols): Update.
1409 * psympriv.h (struct psymbol_functions): Add no-argument
1411 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1412 <partial_symtabs>: Remove.
1413 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1414 * elfread.c (read_partial_symbols): Update.
1415 (elf_symfile_read): Remove check for existing partial symbols.
1417 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1419 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1421 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1423 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1424 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1426 2021-03-20 Tom Tromey <tom@tromey.com>
1428 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1429 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1430 * symfile-debug.c (objfile::has_partial_symbols)
1431 (objfile::find_last_source_symtab)
1432 (objfile::forget_cached_source_info)
1433 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1434 (objfile::print_stats, objfile::dump)
1435 (objfile::expand_symtabs_for_function)
1436 (objfile::expand_all_symtabs)
1437 (objfile::expand_symtabs_with_fullname)
1438 (objfile::map_matching_symbols)
1439 (objfile::expand_symtabs_matching)
1440 (objfile::find_pc_sect_compunit_symtab)
1441 (objfile::map_symbol_filenames)
1442 (objfile::find_compunit_symtab_by_address)
1443 (objfile::lookup_global_symbol_language)
1444 (objfile::require_partial_symbols): Update.
1445 * psymtab.c (maintenance_print_psymbols)
1446 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1447 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1448 * objfiles.c (objfile_relocate1): Update.
1449 * elfread.c (elf_symfile_read): Update.
1451 2021-03-20 Tom Tromey <tom@tromey.com>
1453 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1455 2021-03-20 Tom Tromey <tom@tromey.com>
1457 * psymtab.c (psymbol_functions::count_psyms): Rename.
1458 (psymbol_functions::print_stats): Update.
1459 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1462 2021-03-20 Tom Tromey <tom@tromey.com>
1464 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1465 (psymbol_functions::find_pc_sect_psymtab): Rename.
1466 (psymbol_functions::find_pc_sect_compunit_symtab)
1467 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1468 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1470 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1472 2021-03-20 Tom Tromey <tom@tromey.com>
1474 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1475 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1476 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1478 (add_psymbol_to_bcache): Remove.
1479 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1480 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1482 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1483 <add_psymbol>: Likewise.
1484 (standard_psymtab, legacy_psymtab): Likewise.
1485 * mdebugread.c (parse_partial_symbols): Update.
1486 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1487 (handle_psymbol_enumerators): Update.
1488 (new_psymtab): Add partial_symtabs parameter.
1489 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1490 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1492 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1493 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1495 * dbxread.c (read_dbx_symtab): Update.
1496 (start_psymtab): Add partial_symtabs parameter.
1497 (dbx_end_psymtab): Update.
1498 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1499 (ctf_psymtab): Add partial_symtabs parameter.
1500 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1502 (scan_partial_symbols): Add partial_symtabs parameter.
1503 (scan_partial_symbols, elfctf_build_psymtabs)
1504 (ctf_psymtab_add_enums): Update.
1506 2021-03-20 Tom Tromey <tom@tromey.com>
1508 * symfile.c (read_symbols): Use objfile method.
1509 * symfile-debug.c (objfile::require_partial_symbols): New method.
1510 * psymtab.h (require_partial_symbols): Don't declare.
1511 * psymtab.c (require_partial_symbols): Use objfile method. Now
1513 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1514 (psymbol_functions::lookup_symbol)
1515 (psymbol_functions::lookup_global_symbol_language)
1516 (psymbol_functions::find_last_source_symtab)
1517 (psymbol_functions::forget_cached_source_info)
1518 (psymbol_functions::print_stats)
1519 (psymbol_functions::expand_symtabs_for_function)
1520 (psymbol_functions::expand_all_symtabs)
1521 (psymbol_functions::expand_symtabs_with_fullname)
1522 (psymbol_functions::map_symbol_filenames)
1523 (psymbol_functions::map_matching_symbols)
1524 (psymbol_functions::expand_symtabs_matching)
1525 (psymbol_functions::find_compunit_symtab_by_address)
1526 (maintenance_print_psymbols, maintenance_info_psymtabs)
1527 (maintenance_check_psymtabs): Update.
1528 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1531 2021-03-20 Tom Tromey <tom@tromey.com>
1533 * xcoffread.c (xcoff_sym_fns): Update.
1534 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1535 * symfile-debug.c (objfile::has_partial_symbols): Use
1536 can_lazily_read_symbols.
1537 (debug_sym_read_psymbols): Remove.
1538 (debug_sym_fns, install_symfile_debug_logging): Update.
1539 * quick-symbol.h (struct quick_symbol_functions)
1540 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1541 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1542 * mipsread.c (ecoff_sym_fns): Update.
1543 * machoread.c (macho_sym_fns): Update.
1544 * elfread.c (struct lazy_dwarf_reader): New.
1545 (elf_symfile_read): Update.
1546 (read_psyms): Now a method of lazy_dwarf_reader.
1547 (elf_sym_fns): Update.
1548 (elf_sym_fns_lazy_psyms): Remove.
1549 * dbxread.c (aout_sym_fns): Update.
1550 * coffread.c (coff_sym_fns): Update.
1552 2021-03-20 Tom Tromey <tom@tromey.com>
1554 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1555 (reread_symbols): Move reset_psymtabs call later.
1556 * objfiles.c (objfile::objfile): Don't initialize
1559 2021-03-20 Tom Tromey <tom@tromey.com>
1561 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1562 set_partial_symtabs.
1563 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1564 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1566 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1568 (psymbol_functions::find_pc_sect_compunit_symtab)
1569 (psymbol_functions::print_stats, psymbol_functions::dump)
1570 (psymbol_functions::has_symbols): Update.
1571 (make_psymbol_functions, dump_psymtab_addrmap): Add
1572 partial_symtabs parameter.
1573 (maintenance_print_psymbols): Update.
1574 (psymbol_functions::expand_symtabs_matching): Update.
1575 * psympriv.h (struct psymbol_functions): Add constructor.
1576 <m_partial_symtabs>: New member.
1577 <set_partial_symtabs>: New method.
1579 2021-03-20 Tom Tromey <tom@tromey.com>
1581 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1583 (process_psymtab_comp_unit_reader)
1584 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1585 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1586 Reference psymtabs via per_bfd.
1588 2021-03-20 Tom Tromey <tom@tromey.com>
1590 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1592 (add_address_entry): Remove objfile parameter.
1593 (add_address_entry_worker): Update.
1594 (write_address_map): Replace objfile parameter with per_bfd.
1595 (write_gdbindex, write_psymtabs_to_index): Update.
1597 2021-03-20 Tom Tromey <tom@tromey.com>
1599 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1600 print_bcache parameter.
1601 * symfile-debug.c (objfile::print_stats): Add print_bcache
1603 * quick-symbol.h (struct quick_symbol_functions)
1604 <print_stats>: Add print_bcache parameter.
1605 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1607 (print_objfile_statistics): Move psymtab code to psymtab.c.
1608 * psymtab.c (count_psyms): Move from symmisc.c.
1609 (psymbol_functions::print_stats): Print partial symbol and bcache
1610 statistics. Add print_bcache parameter.
1611 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1612 (struct objfile) <print_stats>: Add print_bcache parameter.
1613 * maint.c (maintenance_print_statistics): Update.
1615 2021-03-20 Tom Tromey <tom@tromey.com>
1617 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1619 * dwarf2/read.c (create_addrmap_from_index)
1620 (create_addrmap_from_aranges): Set per_bfd addrmap.
1621 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1622 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1624 (dwarf2_read_debug_names): Don't set partial_symtabs.
1625 (dwarf2_initialize_objfile): Likewise.
1627 2021-03-20 Tom Tromey <tom@tromey.com>
1629 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1632 2021-03-20 Tom Tromey <tom@tromey.com>
1634 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1635 (~psymtab_discarder, keep): Update.
1636 <m_objfile>: Remove.
1637 <m_partial_symtabs>: New member.
1638 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1640 2021-03-20 Tom Tromey <tom@tromey.com>
1642 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1643 (xcoff_end_psymtab): Update.
1644 (scan_xcoff_symtab): Add partial_symtabs parameter.
1645 (xcoff_initial_scan): Update.
1646 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1647 * mdebugread.c (mdebug_build_psymtabs): Update.
1648 (parse_partial_symbols): Add partial_symtabs parameter.
1649 * dbxread.c (dbx_symfile_read): Update.
1650 (read_dbx_symtab): Add partial_symtabs parameter.
1651 (read_dbx_symtab): Update.
1652 (dbx_end_psymtab): Add partial_symtabs parameter.
1654 2021-03-20 Tom Tromey <tom@tromey.com>
1656 * quick-symbol.h (struct quick_symbol_functions)
1657 <relocated>: New method.
1658 * psymtab.h (struct psymbol_functions) <relocated>: New
1660 <fill_psymbol_map>: Declare method.
1661 <m_psymbol_map>: New member.
1662 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1663 (psymbol_functions::find_compunit_symtab_by_address): Update.
1664 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1665 (struct objfile) <psymbol_map>: Remove.
1666 * objfiles.c (objfile_relocate1): Update.
1668 2021-03-20 Tom Tromey <tom@tromey.com>
1670 * psympriv.h (struct psymbol_functions): New.
1671 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1672 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1673 (objfile::lookup_global_symbol_language): Update.
1674 * quick-symbol.h (struct quick_symbol_functions): Convert function
1675 pointers to methods. Add virtual destructor.
1676 (quick_symbol_functions_up): New typedef.
1677 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1678 (dwarf2_debug_names_functions): Don't declare.
1679 (make_psymbol_functions): Declare.
1680 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1681 (psymbol_functions::find_pc_sect_compunit_symtab)
1682 (psymbol_functions::lookup_symbol)
1683 (psymbol_functions::lookup_global_symbol_language)
1684 (psymbol_functions::find_last_source_symtab)
1685 (psymbol_functions::forget_cached_source_info)
1686 (psymbol_functions::print_stats, psymbol_functions::dump)
1687 (psymbol_functions::expand_symtabs_for_function)
1688 (psymbol_functions::expand_all_symtabs)
1689 (psymbol_functions::expand_symtabs_with_fullname)
1690 (psymbol_functions::map_symbol_filenames)
1691 (psymbol_functions::map_matching_symbols)
1692 (psymbol_functions::expand_symtabs_matching)
1693 (psymbol_functions::has_symbols)
1694 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1695 (psym_functions): Remove.
1696 (make_psymbol_functions): New function.
1697 * objfiles.h (struct objfile) <qf>: Change type.
1698 * elfread.c (elf_symfile_read): Update.
1699 * dwarf2/read.c (struct dwarf2_base_index_functions)
1700 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1701 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1702 (dwarf2_base_index_functions::find_last_source_symtab)
1703 (dwarf2_base_index_functions::forget_cached_source_info)
1704 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1705 (dwarf2_gdb_index::lookup_symbol)
1706 (dwarf2_base_index_functions::print_stats)
1707 (dwarf2_gdb_index::dump)
1708 (dwarf2_gdb_index::expand_symtabs_for_function)
1709 (dwarf2_base_index_functions::expand_all_symtabs)
1710 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1712 (dwarf2_gdb_index::map_matching_symbols): New method.
1713 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1714 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1715 (dwarf2_base_index_functions::map_symbol_filenames)
1716 (dwarf2_base_index_functions::has_symbols): Rename.
1717 (dwarf2_gdb_index_functions): Remove.
1718 (dwarf2_debug_names_index::lookup_symbol)
1719 (dwarf2_debug_names_index::dump)
1720 (dwarf2_debug_names_index::expand_symtabs_for_function)
1721 (dwarf2_debug_names_index::map_matching_symbols)
1722 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1723 (dwarf2_debug_names_functions): Remove.
1724 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1727 2021-03-20 Tom Tromey <tom@tromey.com>
1729 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1731 * xcoffread.c (xcoff_sym_fns): Update.
1732 * symfile.h (struct sym_fns) <qf>: Remove.
1733 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1734 * symfile-debug.c (objfile::has_partial_symbols)
1735 (objfile::find_last_source_symtab)
1736 (objfile::forget_cached_source_info)
1737 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1738 (objfile::print_stats, objfile::dump)
1739 (objfile::expand_symtabs_for_function)
1740 (objfile::expand_all_symtabs)
1741 (objfile::expand_symtabs_with_fullname)
1742 (objfile::map_matching_symbols)
1743 (objfile::expand_symtabs_matching)
1744 (objfile::find_pc_sect_compunit_symtab)
1745 (objfile::map_symbol_filenames)
1746 (objfile::find_compunit_symtab_by_address)
1747 (objfile::lookup_global_symbol_language, debug_sym_fns)
1748 (install_symfile_debug_logging): Update.
1749 * objfiles.h (struct objfile) <qf>: New member.
1750 * mipsread.c (ecoff_sym_fns): Update.
1751 * machoread.c (macho_sym_fns): Update.
1752 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1754 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1755 * dbxread.c (aout_sym_fns): Update.
1756 * coffread.c (coff_sym_fns): Update.
1758 2021-03-20 Tom Tromey <tom@tromey.com>
1760 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1761 (expand_symtabs_file_matcher_ftype)
1762 (expand_symtabs_symbol_matcher_ftype)
1763 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1764 Move to quick-symbol.h.
1765 * quick-symbol.h: New file.
1767 2021-03-20 Tom Tromey <tom@tromey.com>
1769 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1770 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1771 (basic_lookup_transparent_type_quick)
1772 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1773 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1775 * symmisc.c (print_objfile_statistics, dump_objfile)
1776 (maintenance_expand_symtabs): Update.
1777 * symfile.c (symbol_file_add_with_addrs)
1778 (expand_symtabs_matching, map_symbol_filenames): Update.
1779 * symfile-debug.c (objfile::has_partial_symbols)
1780 (objfile::find_last_source_symtab)
1781 (objfile::forget_cached_source_info)
1782 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1783 (objfile::print_stats, objfile::dump)
1784 (objfile::expand_symtabs_for_function)
1785 (objfile::expand_all_symtabs)
1786 (objfile::expand_symtabs_with_fullname)
1787 (objfile::map_matching_symbols)
1788 (objfile::expand_symtabs_matching)
1789 (objfile::find_pc_sect_compunit_symtab)
1790 (objfile::map_symbol_filenames)
1791 (objfile::find_compunit_symtab_by_address)
1792 (objfile::lookup_global_symbol_language): New methods.
1793 (debug_sym_quick_functions): Remove.
1794 (debug_sym_fns, install_symfile_debug_logging): Update.
1795 * source.c (forget_cached_source_info_for_objfile)
1796 (select_source_symtab): Update.
1797 * objfiles.h (struct objfile): Add methods corresponding to
1798 quick_symbol_functions.
1799 * objfiles.c (objfile::has_partial_symbols): Move to
1801 * linespec.c (iterate_over_all_matching_symtabs): Update.
1802 * cp-support.c (add_symbol_overload_list_qualified): Update.
1803 * ada-lang.c (add_nonlocal_symbols): Update.
1805 2021-03-20 Tom Tromey <tom@tromey.com>
1807 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1808 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1810 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1811 * psymtab.c (psym_has_symbols): Return bool.
1812 * objfiles.c (objfile::has_partial_symbols): Return bool.
1813 * dwarf2/read.c (dw2_has_symbols): Return bool.
1815 2021-03-20 Tom Tromey <tom@tromey.com>
1817 * symfile.c (read_symbols): Update.
1818 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1819 (objfile_has_partial_symbols): Don't declare.
1820 * objfiles.c (objfile::has_partial_symbols): Rename from
1821 objfile_has_partial_symbols.
1822 (objfile_has_symbols, have_partial_symbols): Update.
1823 * elfread.c (elf_symfile_read): Update.
1824 * dwarf2/read.c (dwarf2_has_info): Update.
1825 * coffread.c (coff_symfile_read): Update.
1827 2021-03-20 Tom Tromey <tom@tromey.com>
1829 * coffread.c: Include dwarf2/public.h.
1830 * dwarf2/frame.c: Include dwarf2/public.h.
1831 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1832 * dwarf2/public.h: New file.
1833 * dwarf2/read.c: Include dwarf2/public.h.
1834 * elfread.c: Include dwarf2/public.h.
1835 * machoread.c: Include dwarf2/public.h.
1836 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1837 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1838 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1839 * xcoffread.c: Include dwarf2/public.h.
1841 2021-03-20 Tom Tromey <tom@tromey.com>
1843 * symfile.h (enum dwarf2_section_enum)
1844 (dwarf2_get_section_info): Move to dwarf2/read.h.
1845 * dwarf2/read.h (enum dwarf2_section_enum)
1846 (dwarf2_get_section_info): Move from symfile.h.
1848 2021-03-19 Pedro Alves <pedro@palves.net>
1850 * thread.c (any_thread_of_inferior): Check if there's a selected
1851 thread before calling inferior_thread().
1853 2021-03-18 Tom Tromey <tromey@adacore.com>
1855 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1857 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1858 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1860 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1862 * python/py-param.c (get_set_value): Update header comment.
1864 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
1866 * infrun.c (check_multi_target_resumption): Remove argument to
1867 all_non_exited_inferiors.
1869 2021-03-16 Christian Biesinger <cbiesinger@google.com>
1871 * windows-nat.c (windows_init_thread_list): Add message to
1874 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
1876 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1877 well as PyLong_Check for Python 2.
1879 2021-03-15 Tom Tromey <tromey@adacore.com>
1882 * rust-exp.y (maker_map): Use gdb::hash_enum.
1883 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1885 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1887 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1890 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1892 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1893 parameter, adjust caller.
1895 2021-03-15 Tom Tromey <tromey@adacore.com>
1897 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1899 2021-03-15 Tom Tromey <tromey@adacore.com>
1901 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1902 ada_ensure_varsize_limit.
1904 2021-03-15 Tom Tromey <tromey@adacore.com>
1906 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1908 * ada-exp.y (maybe_overload): New function.
1909 (ada_wrap_overload): New function.
1910 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1911 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1912 (or_else_exp, xor_exp, primary): Update.
1914 2021-03-15 Tom Tromey <tromey@adacore.com>
1917 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1918 call for tagged type.
1920 2021-03-15 Tom Tromey <tromey@adacore.com>
1922 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1925 2021-03-15 Tom Tromey <tromey@adacore.com>
1927 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1929 (ada_assign_operation::evaluate): Update.
1930 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1933 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
1935 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1937 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
1939 * python/python.c (gdbpy_source_objfile_script): Use
1940 make_scoped_restore to restore gdbpy_current_objfile.
1941 (gdbpy_execute_objfile_script): Likewise.
1943 2021-03-14 Tom Tromey <tom@tromey.com>
1945 * dwarf2/read.c (read_attribute_value): Use cu_header
1948 2021-03-14 Tom Tromey <tom@tromey.com>
1950 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1951 (peek_die_abbrev): Use reader.abfd.
1953 2021-03-14 Tom Tromey <tom@tromey.com>
1955 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1958 2021-03-13 Tom Tromey <tom@tromey.com>
1960 * dwarf2/read.c (struct partial_die_info): Update.
1961 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1962 (load_partial_dies, partial_die_info::partial_die_info): Update.
1963 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1965 2021-03-13 Tom Tromey <tom@tromey.com>
1967 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1969 2021-03-12 Christian Biesinger <cbiesinger@google.com>
1972 * cp-support.c: Use scoped_segv_handler_restore.
1973 * event-top.c (thread_local_segv_handler): Made static.
1974 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1976 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1978 * event-top.h (class scoped_segv_handler_restore): New class.
1979 (thread_local_segv_handler): Removed.
1981 2021-03-10 Tom Tromey <tromey@adacore.com>
1983 * parser-defs.h (parser_state): Change completion to bool.
1984 <parse_completion>: Likewise.
1985 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1986 (ada_resolve_variable, ada_resolve_function): Update.
1987 * ada-lang.c (ada_find_operator_symbol): Change
1988 parse_completion to bool.
1989 (ada_resolve_funcall, ada_resolve_variable)
1990 (ada_resolve_function): Likewise.
1992 2021-03-09 Tom Tromey <tromey@adacore.com>
1994 * eval.c (operation::evaluate_funcall): Use function formal
1995 parameter types when evaluating.
1997 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1999 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2000 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2001 and owner to m_owner.
2003 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2005 * f-exp.h (eval_op_f_loc): Declare.
2006 (expr::fortran_loc_operation): New typedef.
2007 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2009 (f77_keywords): Add LOC keyword.
2010 * f-lang.c (eval_op_f_loc): New function.
2011 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2013 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2015 * f-exp.h (eval_op_f_array_shape): Declare.
2016 (fortran_array_shape_operation): New type.
2017 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2019 (f77_keywords): Add "shape" keyword.
2020 * f-lang.c (fortran_array_shape): New function.
2021 (eval_op_f_array_shape): New function.
2022 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2024 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2026 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2028 (expr::fortran_array_size_1arg): New type.
2029 (expr::fortran_array_size_2arg): Likewise.
2030 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2031 UNOP_OR_BINOP_INTRINSIC.
2032 (f77_keywords): Add "size" keyword.
2033 * f-lang.c (fortran_array_size): New function.
2034 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2035 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2037 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2039 * f-exp.h (eval_op_f_rank): Declare.
2040 (expr::fortran_rank_operation): New typedef.
2041 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2043 (f77_keywords): Add "rank" keyword.
2044 * f-lang.c (eval_op_f_rank): New function.
2045 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2047 2021-03-08 Tom Tromey <tom@tromey.com>
2049 * printcmd.c (set_command): Remove null check.
2050 * value.c (init_if_undefined_command): Remove null check.
2052 2021-03-08 Tom Tromey <tom@tromey.com>
2054 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2056 * p-exp.y (variable): Update.
2057 * go-exp.y (variable): Update.
2058 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2059 Remove overload for objfile.
2060 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2062 (check_objfile): Likewise.
2063 (dump_for_expression): Likewise. Remove overload for objfile.
2064 (class var_msym_value_operation): Use bound_minimal_symbol.
2065 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2067 (var_msym_value_operation::evaluate_for_address)
2068 (var_msym_value_operation::evaluate_for_sizeof)
2069 (var_msym_value_operation::evaluate_for_cast): Update.
2070 * d-exp.y (PrimaryExpression): Update.
2071 * c-exp.y (variable): Update.
2072 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2073 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2075 * ada-exp.y (write_var_or_type): Update.
2077 2021-03-08 Tom Tromey <tom@tromey.com>
2079 * parser-defs.h (exp_uses_objfile): Return bool.
2080 * parse.c (exp_uses_objfile): Return bool.
2082 2021-03-08 Tom Tromey <tom@tromey.com>
2084 * value.h (eval_skip_value): Don't declare.
2085 * opencl-lang.c (eval_opencl_assign): Update.
2086 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2087 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2088 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2089 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2090 * expop.h (typeof_operation::evaluate)
2091 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2092 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2093 (cxx_cast_operation::evaluate): Update.
2094 * eval.c (eval_skip_value): Remove.
2095 (eval_op_scope, eval_op_var_entry_value)
2096 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2097 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2098 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2099 (eval_op_binary, eval_op_subscript, eval_op_equal)
2100 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2101 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2102 (eval_op_complement, eval_op_lognot, eval_op_ind)
2103 (eval_op_memval, eval_op_preinc, eval_op_predec)
2104 (eval_op_postinc, eval_op_postdec, eval_op_type)
2105 (eval_binop_assign_modify, eval_op_objc_msgcall)
2106 (eval_multi_subscript, logical_and_operation::evaluate)
2107 (logical_or_operation::evaluate, array_operation::evaluate)
2108 (operation::evaluate_for_cast)
2109 (var_msym_value_operation::evaluate_for_cast)
2110 (var_value_operation::evaluate_for_cast): Update.
2111 * c-lang.c (c_string_operation::evaluate): Update.
2112 * c-exp.h (objc_nsstring_operation::evaluate)
2113 (objc_selector_operation::evaluate): Update.
2114 * ada-lang.c (ada_assign_operation::evaluate)
2115 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2116 (ada_atr_size): Update.
2118 2021-03-08 Tom Tromey <tom@tromey.com>
2120 * eval.c: Merge "namespace" scopes.
2122 2021-03-08 Tom Tromey <tom@tromey.com>
2124 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2126 * parse.c (expr_builder::expr_builder, expr_builder::release):
2129 2021-03-08 Tom Tromey <tom@tromey.com>
2131 * parse.c (expression::expression, expression::~expression):
2133 * expression.h (struct expression): Inline constructor. Remove
2136 2021-03-08 Tom Tromey <tom@tromey.com>
2138 * std-operator.def (BINOP_END): Remove.
2139 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2140 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2141 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2142 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2143 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2146 2021-03-08 Tom Tromey <tom@tromey.com>
2148 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2150 2021-03-08 Tom Tromey <tom@tromey.com>
2152 * std-operator.def (OP_EXTENDED0): Remove.
2154 2021-03-08 Tom Tromey <tom@tromey.com>
2156 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2157 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2160 2021-03-08 Tom Tromey <tom@tromey.com>
2162 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2163 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2165 2021-03-08 Tom Tromey <tom@tromey.com>
2167 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2168 * ada-lang.c (ada_binop_minmax): Update.
2169 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2170 Use BINOP_MIN and BINOP_MAX.
2172 2021-03-08 Tom Tromey <tom@tromey.com>
2174 * value.h (evaluate_subexp_with_coercion): Don't declare.
2175 * parse.c (exp_descriptor_standard): Remove.
2176 (expr_builder::expr_builder, expr_builder::release): Update.
2177 (expression::expression): Remove size_t parameter.
2178 (expression::~expression): Simplify.
2179 (expression::resize): Remove.
2180 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2181 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2182 (write_exp_elt_longcst, write_exp_elt_floatcst)
2183 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2184 (write_exp_string_vector, write_exp_bitstring): Remove.
2185 * p-lang.h (class pascal_language) <opcode_print_table,
2186 op_print_tab>: Remove.
2187 * p-lang.c (pascal_language::op_print_tab): Remove.
2188 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2190 * objc-lang.c (objc_op_print_tab): Remove.
2191 (class objc_language) <opcode_print_table>: Remove.
2192 * m2-lang.h (class m2_language) <opcode_print_table,
2193 op_print_tab>: Remove.
2194 * m2-lang.c (m2_language::op_print_tab): Remove.
2195 * language.h (struct language_defn) <post_parser, expression_ops,
2196 opcode_print_table>: Remove.
2197 * language.c (language_defn::expression_ops)
2198 (auto_or_unknown_language::opcode_print_table): Remove.
2199 * go-lang.h (class go_language) <opcode_print_table,
2200 op_print_tab>: Remove.
2201 * go-lang.c (go_language::op_print_tab): Remove.
2202 * f-lang.h (class f_language) <opcode_print_table>: Remove
2203 <op_print_tab>: Remove.
2204 * f-lang.c (f_language::op_print_tab): Remove.
2205 * expression.h (union exp_element): Remove.
2206 (struct expression): Remove size_t parameter from constructor.
2208 <first_opcode>: Update.
2209 <nelts, elts>: Remove.
2210 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2211 (evaluate_subexp_standard, print_expression, op_string)
2212 (dump_raw_expression): Don't declare.
2213 * expprint.c (print_expression, print_subexp)
2214 (print_subexp_funcall, print_subexp_standard, op_string)
2215 (dump_raw_expression, dump_subexp, dump_subexp_body)
2216 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2217 (dump_prefix_expression): Update.
2218 * eval.c (evaluate_subexp): Remove.
2219 (evaluate_expression, evaluate_type): Update.
2220 (evaluate_subexpression_type): Remove.
2221 (fetch_subexp_value): Remove "pc" parameter. Update.
2222 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2223 (evaluate_subexp_standard, evaluate_subexp_for_address)
2224 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2225 (evaluate_subexp_for_cast): Remove.
2226 (parse_and_eval_type): Update.
2227 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2228 * d-lang.c (d_op_print_tab): Remove.
2229 (class d_language) <opcode_print_table>: Remove.
2230 * c-lang.h (c_op_print_tab): Don't declare.
2231 * c-lang.c (c_op_print_tab): Remove.
2232 (class c_language, class cplus_language, class asm_language, class
2233 minimal_language) <opcode_print_table>: Remove.
2234 * breakpoint.c (update_watchpoint, watchpoint_check)
2235 (watchpoint_exp_is_const, watch_command_1): Update.
2236 * ax-gdb.h (union exp_element): Don't declare.
2237 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2238 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2239 (gen_expr_binop_rest): Remove.
2240 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2241 * ada-lang.c (ada_op_print_tab): Remove.
2242 (class ada_language) <post_parser, opcode_print_table>: Remove.
2244 2021-03-08 Tom Tromey <tom@tromey.com>
2246 * go-lang.c (go_language::expression_ops): Don't declare.
2247 * go-lang.h (class go_language) <expression_ops>: Remove.
2248 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2250 (class opencl_language) <expression_ops>: Remove.
2251 * d-lang.c (class d_language) <expression_ops>: Remove.
2252 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2253 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2254 (class c_language, class cplus_language, class asm_language)
2255 (class minimal_language) <expression_ops>: Remove.
2257 2021-03-08 Tom Tromey <tom@tromey.com>
2259 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2260 (evaluate_subexp_type, assign_aggregate)
2261 (aggregate_assign_positional, aggregate_assign_from_choices)
2262 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2263 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2264 (ada_operator_check, ada_forward_operator_length)
2265 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2267 (post_parser): Update.
2268 (class ada_language) <expresssion_ops>: Remove.
2270 2021-03-08 Tom Tromey <tom@tromey.com>
2272 * m2-lang.h (class m2_language) <expresssion_ops,
2273 exp_descriptor_modula2>: Remove.
2274 * m2-lang.c (evaluate_subexp_modula2)
2275 (m2_language::exp_descriptor_modula2): Remove.
2277 2021-03-08 Tom Tromey <tom@tromey.com>
2279 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2280 <exp_descriptor_tab>: Remove.
2281 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2282 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2283 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2284 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2287 2021-03-08 Tom Tromey <tom@tromey.com>
2289 * rust-lang.h (class rust_language) <expression_ops,
2290 exp_descriptor_tab>: Remove.
2291 * rust-lang.c (rust_evaluate_funcall): Remove.
2292 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2294 (rust_evaluate_subexp): Remove.
2295 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2296 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2297 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2299 2021-03-08 Tom Tromey <tom@tromey.com>
2301 * ada-exp.y: Create operations.
2302 (empty_stoken): Remove.
2303 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2304 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2305 (components): New global.
2306 (push_component, choice_component, pop_component, pop_components):
2308 (associations): New global
2309 (push_association, pop_association, pop_associations): New
2311 (ada_parse): Update.
2312 (write_var_from_sym, write_int): Create operations.
2313 (write_exp_op_with_string): Remove.
2314 (write_object_renaming, write_selectors, write_ambiguous_var)
2315 (write_var_or_type, write_name_assoc): Create operations.
2316 * ada-lang.h (ada_index_type): Declare.
2317 * ada-lang.c (ada_index_type): No longer static.
2319 2021-03-08 Tom Tromey <tom@tromey.com>
2321 * f-exp.y: Create operations.
2322 (f_language::parser): Update.
2324 2021-03-08 Tom Tromey <tom@tromey.com>
2326 * m2-exp.y: Create operations.
2327 (m2_language::parser): Update.
2329 2021-03-08 Tom Tromey <tom@tromey.com>
2331 * p-exp.y: Create operations.
2332 (pascal_language::parser): Update.
2334 2021-03-08 Tom Tromey <tom@tromey.com>
2336 * d-exp.y: Create operations.
2339 2021-03-08 Tom Tromey <tom@tromey.com>
2341 * go-exp.y: Create operations.
2342 (go_language::parser): Update.
2344 2021-03-08 Tom Tromey <tom@tromey.com>
2346 * objc-lang.c (end_msglist): Create operations.
2347 * c-exp.y: Change parser to create operations.
2348 (write_destructor_name): Remove.
2351 2021-03-08 Tom Tromey <tom@tromey.com>
2353 * rust-exp.y: Create operations.
2354 (rust_parser::convert_params_to_expression): Change return type.
2355 (binop_maker_ftype): New typedef.
2356 (maker_map): New global.
2357 (rust_parser::convert_ast_to_expression): Change return type.
2358 (rust_language::parser): Update.
2359 (_initialize_rust_exp): Initialize maker_map.
2361 2021-03-08 Tom Tromey <tom@tromey.com>
2363 * stap-probe.c (binop_maker_ftype): New typedef.
2364 (stap_maker_map): New global.
2365 (stap_make_binop): New function.
2366 (stap_parse_register_operand): Return operation_up.
2367 (stap_parse_single_operand, stap_parse_argument_conditionally)
2368 (stap_parse_argument_1): Likewise.
2369 (stap_parse_argument): Create operations.
2370 (stap_probe::parse_arguments): Update.
2371 (_initialize_stap_probe): Initialize stap_maker_map.
2372 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2374 * i386-tdep.h (i386_stap_parse_special_token): Change return
2376 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2377 (i386_stap_parse_special_token_three_arg_disp)
2378 (i386_stap_parse_special_token): Change return type.
2379 * gdbarch.sh (stap_parse_special_token): Change return type.
2380 * gdbarch.c: Rebuild.
2381 * gdbarch.h: Rebuild.
2382 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2384 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2387 2021-03-08 Tom Tromey <tom@tromey.com>
2389 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2390 * gdbarch.h: Rebuild.
2391 * gdbarch.c: Rebuild.
2392 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2393 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2395 (amd64_dtrace_parse_probe_argument): Update.
2397 2021-03-08 Tom Tromey <tom@tromey.com>
2399 * parser-defs.h (struct parser_state) <push, push_new,
2400 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2401 wrap2>: New methods.
2402 <m_operations>: New member.
2403 * parse.c (parser_state::push_c_string)
2404 (parser_state::push_symbol, parser_state::push_dollar): New
2407 2021-03-08 Tom Tromey <tom@tromey.com>
2409 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2411 (struct parser_state) <mark_struct_expression>: New method.
2412 * parse.c (parser_state::mark_struct_expression): Update assert.
2413 (parser_state::mark_struct_expression): New method.
2414 (parser_state::mark_completion_tag): Update assert.
2415 (parse_expression_for_completion): Handle expout_last_op.
2417 2021-03-08 Tom Tromey <tom@tromey.com>
2419 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2421 * value.h (fetch_subexp_value): Add "op" parameter.
2422 * value.c (init_if_undefined_command): Update.
2423 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2424 * stap-probe.c (stap_probe::compile_to_ax): Update.
2425 * printcmd.c (set_command): Update.
2426 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2428 * parser-defs.h (struct expr_builder) <set_operation>: New
2430 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2431 * expression.h (struct expression) <first_opcode>: Update.
2433 * expprint.c (dump_raw_expression, dump_prefix_expression):
2435 * expop.h (class var_value_operation) <get_symbol>: New method.
2436 (class register_operation) <get_name>: New method.
2437 (class equal_operation): No longer a typedef, now a subclass.
2438 (class unop_memval_operation) <get_type>: New method.
2439 (class assign_operation) <get_lhs>: New method.
2440 (class unop_cast_operation) <get_type>: New method.
2441 * eval.c (evaluate_expression, evaluate_type)
2442 (evaluate_subexpression_type): Update.
2443 (fetch_subexp_value): Add "op" parameter.
2444 (parse_and_eval_type): Update.
2445 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2446 * breakpoint.c (update_watchpoint, watchpoint_check)
2447 (watchpoint_exp_is_const, watch_command_1): Update.
2448 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2451 2021-03-08 Tom Tromey <tom@tromey.com>
2453 * ada-lang.c (ada_value_binop): Do not use op_string.
2455 2021-03-08 Tom Tromey <tom@tromey.com>
2457 * expprint.c (dump_for_expression): New overload.
2458 * expop.h (check_objfile, dump_for_expression): Declare new
2460 * ada-lang.c (check_objfile): New overload.
2461 (assign_component, ada_aggregate_component::uses_objfile)
2462 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2463 (ada_aggregate_component::assign_aggregate)
2464 (ada_positional_component::uses_objfile)
2465 (ada_positional_component::dump, ada_positional_component::assign)
2466 (ada_discrete_range_association::uses_objfile)
2467 (ada_discrete_range_association::dump)
2468 (ada_discrete_range_association::assign)
2469 (ada_name_association::uses_objfile, ada_name_association::dump)
2470 (ada_name_association::assign)
2471 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2472 (ada_choices_component::assign)
2473 (ada_others_component::uses_objfile, ada_others_component::dump)
2474 (ada_others_component::assign, ada_assign_operation::evaluate):
2476 * ada-exp.h (ada_string_operation) <get_name>: New method.
2477 (class ada_assign_operation): New.
2478 (class ada_component): New.
2479 (ada_component_up): New typedef.
2480 (class ada_aggregate_operation, class ada_aggregate_component)
2481 (class ada_positional_component, class ada_others_component)
2482 (class ada_association): New.
2483 (ada_association_up): New typedef.
2484 (class ada_choices_component)
2485 (class ada_discrete_range_association)
2486 (class ada_name_association): New.
2488 2021-03-08 Tom Tromey <tom@tromey.com>
2490 * ada-lang.c (ada_var_value_operation::resolve)
2491 (ada_funcall_operation::resolve)
2492 (ada_ternop_slice_operation::resolve): New methods.
2493 * ada-exp.h (struct ada_resolvable): New.
2494 (class ada_var_value_operation): Derive from ada_resolvable.
2495 <get_block, resolve>: New methods.
2496 (class ada_funcall_operation): Derive from ada_resolvable.
2497 <resolve>: New method.
2498 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2499 <resolve>: New method.
2501 2021-03-08 Tom Tromey <tom@tromey.com>
2503 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2504 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2506 (class ada_funcall_operation): New.
2508 2021-03-08 Tom Tromey <tom@tromey.com>
2510 * ada-lang.c (ada_structop_operation::evaluate): New method.
2511 * ada-exp.h (class ada_structop_operation): New.
2513 2021-03-08 Tom Tromey <tom@tromey.com>
2515 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2516 * ada-exp.h (class ada_unop_ind_operation): New.
2518 2021-03-08 Tom Tromey <tom@tromey.com>
2520 * ada-lang.c (ada_binop_exp): No longer static.
2521 * ada-exp.h (ada_binop_exp_operation): New typedef.
2523 2021-03-08 Tom Tromey <tom@tromey.com>
2525 * ada-lang.c (ada_val_atr): No longer static.
2526 (ada_atr_val_operation::evaluate): New method.
2527 * ada-exp.h (class ada_atr_val_operation): New.
2529 2021-03-08 Tom Tromey <tom@tromey.com>
2531 * ada-lang.c (ada_pos_atr): No longer static.
2532 * ada-exp.h (ada_pos_operation): New typedef.
2534 2021-03-08 Tom Tromey <tom@tromey.com>
2536 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2538 (ada_evaluate_subexp): Use it.
2540 2021-03-08 Tom Tromey <tom@tromey.com>
2542 * ada-lang.c (ada_binop_minmax): No longer static.
2543 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2546 2021-03-08 Tom Tromey <tom@tromey.com>
2548 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2550 * ada-exp.h (class ada_var_msym_value_operation): New.
2552 2021-03-08 Tom Tromey <tom@tromey.com>
2554 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2555 (ada_var_value_operation::evaluate): New methods.
2556 * ada-exp.h (class ada_var_value_operation): New.
2558 2021-03-08 Tom Tromey <tom@tromey.com>
2560 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2561 * ada-exp.h (class ada_unop_atr_operation): New.
2563 2021-03-08 Tom Tromey <tom@tromey.com>
2565 * ada-lang.c (ada_binop_in_bounds): No longer static.
2566 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2568 2021-03-08 Tom Tromey <tom@tromey.com>
2570 * ada-lang.c (ada_ternop_slice): No longer static.
2571 * ada-exp.h (class ada_ternop_slice_operation): New.
2573 2021-03-08 Tom Tromey <tom@tromey.com>
2575 * ada-exp.h (ada_bitwise_operation): New template class.
2576 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2577 (ada_bitwise_xor_operation): New typedefs.
2579 2021-03-08 Tom Tromey <tom@tromey.com>
2581 * ada-lang.c (ada_equal_binop): No longer static.
2582 * ada-exp.h (class ada_binop_equal_operation): New.
2584 2021-03-08 Tom Tromey <tom@tromey.com>
2586 * ada-lang.c (ada_mult_binop): No longer static.
2587 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2588 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2590 2021-03-08 Tom Tromey <tom@tromey.com>
2592 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2593 * ada-exp.h (class ada_binop_addsub_operation): New.
2595 2021-03-08 Tom Tromey <tom@tromey.com>
2597 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2598 (ada_resolve_variable): Declare.
2599 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2600 (ada_resolve_variable): New functions.
2601 (resolve_subexp): Update.
2603 2021-03-08 Tom Tromey <tom@tromey.com>
2605 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2607 * c-exp.h (class opencl_ternop_cond_operation): New.
2609 2021-03-08 Tom Tromey <tom@tromey.com>
2611 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2613 * c-exp.h (class opencl_logical_binop_operation): New.
2615 2021-03-08 Tom Tromey <tom@tromey.com>
2617 * opencl-lang.c (opencl_structop_operation::evaluate): New
2619 * c-exp.h (class opencl_structop_operation): New.
2621 2021-03-08 Tom Tromey <tom@tromey.com>
2623 * opencl-lang.c (opencl_logical_not): No longer static. Change
2625 (evaluate_subexp_opencl): Update.
2626 * c-exp.h (opencl_notequal_operation): New typedef.
2628 2021-03-08 Tom Tromey <tom@tromey.com>
2630 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2631 static. Change parameters.
2632 (eval_opencl_assign): No longer static. Add "op" parameter.
2633 (evaluate_subexp_opencl): Update.
2634 * c-exp.h (opencl_binop_operation): New template class.
2635 (opencl_assign_operation, opencl_equal_operation)
2636 (opencl_notequal_operation, opencl_less_operation)
2637 (opencl_gtr_operation, opencl_geq_operation)
2638 (opencl_leq_operation): New typedefs.
2640 2021-03-08 Tom Tromey <tom@tromey.com>
2642 * opencl-lang.c (opencl_value_cast): No longer static.
2643 * c-exp.h (opencl_cast_type_operation): New typedef.
2645 2021-03-08 Tom Tromey <tom@tromey.com>
2647 * f-exp.h (eval_op_f_allocated): Declare.
2648 (fortran_allocated_operation): New typedef.
2649 * f-lang.c (eval_op_f_allocated): No longer static.
2651 2021-03-08 Tom Tromey <tom@tromey.com>
2653 * f-lang.c (eval_op_f_associated): New functions.
2654 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2657 2021-03-08 Tom Tromey <tom@tromey.com>
2659 * f-lang.c (fortran_bound_1arg::evaluate)
2660 (fortran_bound_2arg::evaluate): New methods.
2661 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2664 2021-03-08 Tom Tromey <tom@tromey.com>
2666 * expop.h (class unop_addr_operation) <get_expression>: New
2668 * f-lang.c (fortran_undetermined::value_subarray)
2669 (fortran_undetermined::evaluate): New methods.
2670 (fortran_prepare_argument): New overload.
2671 * f-exp.h (class fortran_range_operation)
2672 (class fortran_undetermined): New classes.
2674 2021-03-08 Tom Tromey <tom@tromey.com>
2676 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2677 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2680 2021-03-08 Tom Tromey <tom@tromey.com>
2682 * expression.h (class operation) <evaluate_funcall>: New methods.
2683 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2684 (class var_value_operation) <evaluate_funcall>: New method.
2685 (class structop_base_operation) <evaluate_funcall>: New method.
2686 (class var_msym_value_operation) <evaluate_funcall>: New method.
2687 (class structop_member_base): New class.
2688 (class structop_member_operation): Derive from
2689 structop_member_base.
2690 (class structop_mptr_operation): Derive from
2691 structop_member_base.
2692 (class funcall_operation): New class.
2693 * eval.c (operation::evaluate_funcall)
2694 (var_value_operation::evaluate_funcall)
2695 (scope_operation::evaluate_funcall)
2696 (structop_member_base::evaluate_funcall)
2697 (structop_base_operation::evaluate_funcall): New methods.
2699 2021-03-08 Tom Tromey <tom@tromey.com>
2701 * expop.h (class array_operation): New.
2702 * eval.c (array_operation::evaluate_struct_tuple)
2703 (array_operation::evaluate): New methods.
2705 2021-03-08 Tom Tromey <tom@tromey.com>
2707 * expop.h (class adl_func_operation): New.
2708 * eval.c (adl_func_operation::evaluate): New method.
2710 2021-03-08 Tom Tromey <tom@tromey.com>
2712 * ada-lang.c (ada_unop_in_range): No longer static.
2713 * ada-exp.h (class ada_unop_range_operation): New.
2715 2021-03-08 Tom Tromey <tom@tromey.com>
2717 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2719 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2720 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2722 2021-03-08 Tom Tromey <tom@tromey.com>
2724 * expop.h (class logical_and_operation)
2725 (class logical_or_operation): New.
2726 * eval.c (logical_and_operation::evaluate)
2727 (logical_or_operation::evaluate): New methods.
2728 * ax-gdb.c (logical_and_operation::do_generate_ax)
2729 (logical_or_operation::do_generate_ax): New methods.
2731 2021-03-08 Tom Tromey <tom@tromey.com>
2733 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2735 * m2-exp.h: New file.
2737 2021-03-08 Tom Tromey <tom@tromey.com>
2739 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2740 * rust-exp.h (class rust_aggregate_operation): New.
2742 2021-03-08 Tom Tromey <tom@tromey.com>
2744 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2746 * rust-exp.h (class rust_struct_anon): New.
2747 (class rust_structop): New.
2749 2021-03-08 Tom Tromey <tom@tromey.com>
2751 * rust-lang.c (rust_range): No longer static.
2752 * rust-exp.h (class rust_range_operation): New.
2754 2021-03-08 Tom Tromey <tom@tromey.com>
2756 * rust-lang.c (rust_subscript): No longer static.
2757 * rust-exp.h (class rust_subscript_operation): New.
2759 2021-03-08 Tom Tromey <tom@tromey.com>
2761 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2763 (rust_evaluate_subexp): Update.
2764 * rust-exp.h (class rust_unop_ind_operation): New.
2766 2021-03-08 Tom Tromey <tom@tromey.com>
2768 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2769 longer static. Add "opcode" parameter.
2770 (rust_evaluate_subexp): Update.
2771 * rust-exp.h: New file.
2773 2021-03-08 Tom Tromey <tom@tromey.com>
2775 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2776 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2777 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2778 (evaluate_subexp_f): Update.
2779 * f-exp.h: New file.
2781 2021-03-08 Tom Tromey <tom@tromey.com>
2783 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2784 * ada-exp.h (class ada_ternop_range_operation): New.
2786 2021-03-08 Tom Tromey <tom@tromey.com>
2788 * ada-lang.c (ada_qual_operation::evaluate): New method.
2789 * ada-exp.h (class ada_qual_operation): New.
2791 2021-03-08 Tom Tromey <tom@tromey.com>
2793 * ada-lang.c (ada_string_operation::evaluate): New method.
2794 * ada-exp.h (class ada_string_operation): New.
2796 2021-03-08 Tom Tromey <tom@tromey.com>
2798 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2799 * ada-exp.h: New file.
2801 2021-03-08 Tom Tromey <tom@tromey.com>
2803 * expop.h (class multi_subscript_operation): New.
2804 * eval.c (multi_subscript_operation::evaluate): New method.
2806 2021-03-08 Tom Tromey <tom@tromey.com>
2808 * eval.c (objc_msgcall_operation::evaluate): New method.
2809 * c-exp.h (class objc_msgcall_operation): New.
2811 2021-03-08 Tom Tromey <tom@tromey.com>
2813 * expop.h (class var_value_operation): New.
2814 * eval.c (var_value_operation::evaluate)
2815 (var_value_operation::evaluate_for_address)
2816 (var_value_operation::evaluate_with_coercion)
2817 (var_value_operation::evaluate_for_sizeof)
2818 (var_value_operation::evaluate_for_cast): New methods.
2819 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2821 2021-03-08 Tom Tromey <tom@tromey.com>
2823 * expop.h (cxx_cast_ftype): New typedef.
2824 (cxx_cast_operation): New template.
2825 (dynamic_cast_operation, reinterpret_cast_operation): New
2828 2021-03-08 Tom Tromey <tom@tromey.com>
2830 * expop.h (class unop_cast_type_operation): New.
2831 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2834 2021-03-08 Tom Tromey <tom@tromey.com>
2836 * expop.h (class unop_cast_operation): New.
2837 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2839 2021-03-08 Tom Tromey <tom@tromey.com>
2841 * expop.h (class assign_modify_operation): New.
2842 * eval.c (eval_binop_assign_modify): No longer static.
2843 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2845 2021-03-08 Tom Tromey <tom@tromey.com>
2847 * expop.h (class assign_operation): New.
2848 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2850 2021-03-08 Tom Tromey <tom@tromey.com>
2852 * expop.h (class type_instance_operation): New.
2853 * eval.c (type_instance_operation::evaluate): New method.
2855 2021-03-08 Tom Tromey <tom@tromey.com>
2857 * expop.h (class op_this_operation): New.
2858 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2860 2021-03-08 Tom Tromey <tom@tromey.com>
2862 * expop.h (class unop_memval_operation)
2863 (class unop_memval_type_operation): New.
2864 * eval.c (eval_op_memval): No longer static.
2865 (unop_memval_operation::evaluate_for_address)
2866 (unop_memval_type_operation::evaluate_for_address)
2867 (unop_memval_operation::evaluate_for_sizeof)
2868 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2869 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2870 (unop_memval_type_operation::do_generate_ax): New methods.
2872 2021-03-08 Tom Tromey <tom@tromey.com>
2874 * expop.h (class unop_alignof_operation): New.
2875 * eval.c (eval_op_alignof): No longer static.
2877 2021-03-08 Tom Tromey <tom@tromey.com>
2879 * expop.h (class unop_sizeof_operation): New.
2880 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2882 2021-03-08 Tom Tromey <tom@tromey.com>
2884 * expop.h (class unop_addr_operation): New.
2885 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2887 2021-03-08 Tom Tromey <tom@tromey.com>
2889 * expop.h (class typeid_operation): New.
2891 2021-03-08 Tom Tromey <tom@tromey.com>
2893 * expop.h (class decltype_operation): New.
2895 2021-03-08 Tom Tromey <tom@tromey.com>
2897 * expop.h (class typeof_operation): New.
2899 2021-03-08 Tom Tromey <tom@tromey.com>
2901 * expop.h (class type_operation): New.
2902 * eval.c (eval_op_type): No longer static.
2904 2021-03-08 Tom Tromey <tom@tromey.com>
2906 * expop.h (class unop_ind_base_operation)
2907 (class unop_ind_operation): New.
2908 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2909 (unop_ind_base_operation::evaluate_for_address)
2910 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2911 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2913 2021-03-08 Tom Tromey <tom@tromey.com>
2915 * expop.h (unop_incr_operation): New template.
2916 (preinc_operation, predec_operation, postinc_operation)
2917 (postdec_operation): New typedefs.
2918 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2919 (eval_op_postdec): No longer static.
2921 2021-03-08 Tom Tromey <tom@tromey.com>
2923 * expop.h (unary_ftype): New typedef.
2924 (unop_operation, usual_ax_binop_operation): New templates.
2925 (unary_plus_operation, unary_neg_operation)
2926 (unary_complement_operation, unary_logical_not_operation): New
2928 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2929 (eval_op_lognot): No longer static.
2930 * ax-gdb.c (gen_expr_unop): New function.
2932 2021-03-08 Tom Tromey <tom@tromey.com>
2934 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2936 2021-03-08 Tom Tromey <tom@tromey.com>
2938 * expop.h (class repeat_operation): New.
2939 * eval.c (eval_op_repeat): No longer static. Remove "op"
2941 (evaluate_subexp_standard): Update.
2942 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2944 2021-03-08 Tom Tromey <tom@tromey.com>
2946 * expop.h (class comparison_operation): New.
2947 (equal_operation, notequal_operation, less_operation)
2948 (gtr_operation, geq_operation, leq_operation): New typedefs.
2949 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2950 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2952 2021-03-08 Tom Tromey <tom@tromey.com>
2954 * expop.h (class subscript_operation): New.
2955 * eval.c (eval_op_subscript): No longer static.
2957 2021-03-08 Tom Tromey <tom@tromey.com>
2959 * expop.h (class binop_operation, class usual_ax_binop_operation):
2961 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2962 (div_operation, rem_operation, lsh_operation, rsh_operation)
2963 (bitwise_and_operation, bitwise_ior_operation)
2964 (bitwise_xor_operation): New typedefs.
2965 * eval.c (eval_op_binary): No longer static.
2967 2021-03-08 Tom Tromey <tom@tromey.com>
2969 * expop.h (class sub_operation): New.
2970 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2971 (evaluate_subexp_standard): Update.
2973 2021-03-08 Tom Tromey <tom@tromey.com>
2975 * expop.h (class add_operation): New.
2976 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2977 (evaluate_subexp_standard): Update.
2979 2021-03-08 Tom Tromey <tom@tromey.com>
2981 * expop.h (class concat_operation): New.
2982 * eval.c (eval_op_concat): No longer static. Remove "op"
2984 (evaluate_subexp_standard): Update.
2986 2021-03-08 Tom Tromey <tom@tromey.com>
2988 * expop.h (class structop_member_operation)
2989 (class structop_mptr_operation): New.
2990 * eval.c (eval_op_member): No longer static.
2992 2021-03-08 Tom Tromey <tom@tromey.com>
2994 * expop.h (class structop_ptr_operation): New.
2995 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2998 2021-03-08 Tom Tromey <tom@tromey.com>
3000 * expop.h (class structop_base_operation)
3001 (class structop_operation): New.
3002 * eval.c (eval_op_structop_struct): No longer static.
3004 2021-03-08 Tom Tromey <tom@tromey.com>
3006 * expop.h (class complex_operation): New.
3008 2021-03-08 Tom Tromey <tom@tromey.com>
3010 * eval.c (eval_op_objc_selector): No longer static.
3011 * c-exp.h (class objc_selector_operation): New.
3013 2021-03-08 Tom Tromey <tom@tromey.com>
3015 * eval.c: Include c-exp.h.
3016 * c-exp.h (class objc_nsstring_operation): New.
3018 2021-03-08 Tom Tromey <tom@tromey.com>
3020 * c-lang.c (c_string_operation::evaluate): New method.
3021 * c-exp.h: New file.
3023 2021-03-08 Tom Tromey <tom@tromey.com>
3025 * expop.h (class ternop_cond_operation): New.
3026 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3028 2021-03-08 Tom Tromey <tom@tromey.com>
3030 * expop.h (class ternop_slice_operation): New.
3031 * eval.c (eval_op_ternop): No longer static.
3033 2021-03-08 Tom Tromey <tom@tromey.com>
3035 * expop.h (class string_operation): New.
3036 * eval.c (eval_op_string): No longer static.
3038 2021-03-08 Tom Tromey <tom@tromey.com>
3040 * expop.h (class internalvar_operation): New.
3041 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3043 2021-03-08 Tom Tromey <tom@tromey.com>
3045 * expop.h (class bool_operation): New.
3047 2021-03-08 Tom Tromey <tom@tromey.com>
3049 * expop.h (class register_operation): New.
3050 * eval.c (eval_op_register): No longer static.
3051 * ax-gdb.c (register_operation::do_generate_ax): New method.
3053 2021-03-08 Tom Tromey <tom@tromey.com>
3055 * expop.h (class last_operation): New.
3057 2021-03-08 Tom Tromey <tom@tromey.com>
3059 * expop.h (class func_static_var_operation): New.
3060 * eval.c (eval_op_func_static_var): No longer static.
3062 2021-03-08 Tom Tromey <tom@tromey.com>
3064 * expop.h (class var_entry_value_operation): New.
3065 * eval.c (eval_op_var_entry_value): No longer static.
3067 2021-03-08 Tom Tromey <tom@tromey.com>
3069 * expression.h (class operation) <set_outermost>: New method.
3070 * expop.h (class var_msym_value_operation): New.
3071 * eval.c (eval_op_var_msym_value): No longer static.
3072 (var_msym_value_operation::evaluate_for_address)
3073 (var_msym_value_operation::evaluate_for_sizeof)
3074 (var_msym_value_operation::evaluate_for_cast): New methods.
3075 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3078 2021-03-08 Tom Tromey <tom@tromey.com>
3080 * expop.h (class long_const_operation): New.
3081 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3083 2021-03-08 Tom Tromey <tom@tromey.com>
3085 * expop.h (class scope_operation): New.
3086 * eval.c (eval_op_scope): No longer static.
3087 (scope_operation::evaluate_for_address): New method.
3088 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3090 2021-03-08 Tom Tromey <tom@tromey.com>
3092 * expprint.c (float_const_operation::dump): New method.
3093 * expop.h (float_data): New typedef.
3094 (class float_const_operation): New.
3096 2021-03-08 Tom Tromey <tom@tromey.com>
3098 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3099 * ax-gdb.c (gen_expr_binop): New function.
3100 (gen_expr_structop): Likewise.
3102 2021-03-08 Tom Tromey <tom@tromey.com>
3104 * expprint.c (expr::dump_for_expression): New functions.
3105 * expop.h (dump_for_expression): New overloads.
3106 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3109 2021-03-08 Tom Tromey <tom@tromey.com>
3111 * expression.h (expr::operation): New class.
3112 (expr::make_operation): New function.
3113 (expr::operation_up): New typedef.
3114 * expop.h: New file.
3115 * eval.c (operation::evaluate_for_cast)
3116 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3118 * ax-gdb.c (operation::generate_ax): New method.
3120 2021-03-08 Tom Tromey <tom@tromey.com>
3122 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3123 (gen_expr_binop_rest): New overload.
3125 2021-03-08 Tom Tromey <tom@tromey.com>
3127 * eval.c (eval_multi_subscript): New function.
3128 (evaluate_subexp_standard): Use it.
3130 2021-03-08 Tom Tromey <tom@tromey.com>
3132 * ada-lang.c (ada_binop_exp): New function.
3133 (ada_evaluate_subexp): Use it.
3135 2021-03-08 Tom Tromey <tom@tromey.com>
3137 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3139 (ada_evaluate_subexp): Use it.
3141 2021-03-08 Tom Tromey <tom@tromey.com>
3143 * ada-lang.c (ada_binop_minmax): New function.
3144 (ada_evaluate_subexp): Use it.
3146 2021-03-08 Tom Tromey <tom@tromey.com>
3148 * ada-lang.c (ada_unop_atr): New function.
3149 (ada_evaluate_subexp): Use it.
3151 2021-03-08 Tom Tromey <tom@tromey.com>
3153 * ada-lang.c (ada_binop_in_bounds): New function.
3154 (ada_evaluate_subexp): Use it.
3156 2021-03-08 Tom Tromey <tom@tromey.com>
3158 * ada-lang.c (ada_ternop_slice): New function.
3159 (ada_evaluate_subexp): Use it.
3161 2021-03-08 Tom Tromey <tom@tromey.com>
3163 * ada-lang.c (ada_equal_binop): New function.
3164 (ada_evaluate_subexp): Use it.
3166 2021-03-08 Tom Tromey <tom@tromey.com>
3168 * ada-lang.c (ada_mult_binop): New function.
3169 (ada_evaluate_subexp): Use it.
3171 2021-03-08 Tom Tromey <tom@tromey.com>
3173 * ada-lang.c (ada_abs): New function.
3174 (ada_evaluate_subexp): Use it.
3176 2021-03-08 Tom Tromey <tom@tromey.com>
3178 * ada-lang.c (ada_atr_size): New function.
3179 (ada_evaluate_subexp): Use it.
3181 2021-03-08 Tom Tromey <tom@tromey.com>
3183 * ada-lang.c (ada_atr_tag): New function.
3184 (ada_evaluate_subexp): Use it.
3186 2021-03-08 Tom Tromey <tom@tromey.com>
3188 * ada-lang.c (ada_unop_in_range): New function.
3189 (ada_evaluate_subexp): Use it.
3191 2021-03-08 Tom Tromey <tom@tromey.com>
3193 * ada-lang.c (ada_unop_neg): New function.
3194 (ada_evaluate_subexp): Use it.
3196 2021-03-08 Tom Tromey <tom@tromey.com>
3198 * ada-lang.c (eval_ternop_in_range): New function.
3199 (ada_evaluate_subexp): Use it.
3201 2021-03-08 Tom Tromey <tom@tromey.com>
3203 * opencl-lang.c (eval_opencl_assign): New function.
3204 (evaluate_subexp_opencl): Use it.
3206 2021-03-08 Tom Tromey <tom@tromey.com>
3208 * eval.c (eval_op_objc_msgcall): New function.
3209 (evaluate_subexp_standard): Use it.
3211 2021-03-08 Tom Tromey <tom@tromey.com>
3213 * eval.c (eval_binop_assign_modify): New function.
3214 (evaluate_subexp_standard): Use it.
3216 2021-03-08 Tom Tromey <tom@tromey.com>
3218 * m2-lang.c (eval_op_m2_subscript): New function.
3219 (evaluate_subexp_modula2): Use it.
3221 2021-03-08 Tom Tromey <tom@tromey.com>
3223 * m2-lang.c (eval_op_m2_high): New function.
3224 (evaluate_subexp_modula2): Use it.
3226 2021-03-08 Tom Tromey <tom@tromey.com>
3228 * eval.c (evaluate_subexp_for_address_base): New function.
3229 (evaluate_subexp_for_address): Use it.
3230 (evaluate_subexp_for_sizeof_base): New function.
3231 (evaluate_subexp_for_sizeof): Use it.
3233 2021-03-08 Tom Tromey <tom@tromey.com>
3235 * rust-lang.c (eval_op_rust_structop): New function.
3236 (rust_evaluate_subexp): Use it.
3238 2021-03-08 Tom Tromey <tom@tromey.com>
3240 * rust-lang.c (eval_op_rust_struct_anon): New function.
3241 (rust_evaluate_subexp): Use it.
3243 2021-03-08 Tom Tromey <tom@tromey.com>
3245 * rust-lang.c (eval_op_rust_array): New function.
3246 (rust_evaluate_subexp): Use it.
3248 2021-03-08 Tom Tromey <tom@tromey.com>
3250 * rust-lang.c (eval_op_rust_complement): New function.
3251 (rust_evaluate_subexp): Use it.
3253 2021-03-08 Tom Tromey <tom@tromey.com>
3255 * rust-lang.c (eval_op_rust_ind): New function.
3256 (rust_evaluate_subexp): Use it.
3258 2021-03-08 Tom Tromey <tom@tromey.com>
3260 * rust-lang.c (rust_subscript): Change parameters.
3261 (rust_evaluate_subexp): Update.
3263 2021-03-08 Tom Tromey <tom@tromey.com>
3265 * rust-lang.c (rust_range): Change parameters.
3266 (rust_evaluate_subexp): Update.
3268 2021-03-08 Tom Tromey <tom@tromey.com>
3270 * f-lang.c (eval_op_f_allocated): New function.
3271 (evaluate_subexp_f): Use it.
3273 2021-03-08 Tom Tromey <tom@tromey.com>
3275 * f-lang.c (fortran_require_array): New function.
3276 (evaluate_subexp_f): Use it.
3278 2021-03-08 Tom Tromey <tom@tromey.com>
3280 * f-lang.c (eval_op_f_kind): New function.
3281 (evaluate_subexp_f): Use it.
3283 2021-03-08 Tom Tromey <tom@tromey.com>
3285 * f-lang.c (eval_op_f_cmplx): New function.
3286 (evaluate_subexp_f): Use it.
3288 2021-03-08 Tom Tromey <tom@tromey.com>
3290 * f-lang.c (eval_op_f_modulo): New function.
3291 (evaluate_subexp_f): Use it.
3293 2021-03-08 Tom Tromey <tom@tromey.com>
3295 * f-lang.c (eval_op_f_floor): New function.
3296 (evaluate_subexp_f): Use it.
3298 2021-03-08 Tom Tromey <tom@tromey.com>
3300 * f-lang.c (eval_op_f_ceil): New function.
3301 (evaluate_subexp_f): Use it.
3303 2021-03-08 Tom Tromey <tom@tromey.com>
3305 * f-lang.c (eval_op_f_mod): New function.
3306 (evaluate_subexp_f): Use it.
3308 2021-03-08 Tom Tromey <tom@tromey.com>
3310 * f-lang.c (eval_op_f_abs): New function.
3311 (evaluate_subexp_f): Use it.
3313 2021-03-08 Tom Tromey <tom@tromey.com>
3315 * eval.c (eval_op_type): New function.
3316 (evaluate_subexp_standard): Use it.
3318 2021-03-08 Tom Tromey <tom@tromey.com>
3320 * eval.c (eval_op_postdec): New function.
3321 (evaluate_subexp_standard): Use it.
3323 2021-03-08 Tom Tromey <tom@tromey.com>
3325 * eval.c (eval_op_postinc): New function.
3326 (evaluate_subexp_standard): Use it.
3328 2021-03-08 Tom Tromey <tom@tromey.com>
3330 * eval.c (eval_op_predec): New file.
3331 (evaluate_subexp_standard): Use it.
3333 2021-03-08 Tom Tromey <tom@tromey.com>
3335 * eval.c (eval_op_preinc): New function.
3336 (evaluate_subexp_standard): Use it.
3338 2021-03-08 Tom Tromey <tom@tromey.com>
3340 * eval.c (eval_op_memval): New function.
3341 (evaluate_subexp_standard): Use it.
3343 2021-03-08 Tom Tromey <tom@tromey.com>
3345 * eval.c (eval_op_alignof): New function.
3346 (evaluate_subexp_standard): Use it.
3348 2021-03-08 Tom Tromey <tom@tromey.com>
3350 * eval.c (eval_op_ind): New function.
3351 (evaluate_subexp_standard): Use it.
3353 2021-03-08 Tom Tromey <tom@tromey.com>
3355 * eval.c (eval_op_lognot): New function.
3356 (evaluate_subexp_standard): Use it.
3358 2021-03-08 Tom Tromey <tom@tromey.com>
3360 * eval.c (eval_op_complement): New function.
3361 (evaluate_subexp_standard): Use it.
3363 2021-03-08 Tom Tromey <tom@tromey.com>
3365 * eval.c (eval_op_neg): New function.
3366 (evaluate_subexp_standard): Use it.
3368 2021-03-08 Tom Tromey <tom@tromey.com>
3370 * eval.c (eval_op_plus): New function.
3371 (evaluate_subexp_standard): Use it.
3373 2021-03-08 Tom Tromey <tom@tromey.com>
3375 * eval.c (eval_op_repeat): New function.
3376 (evaluate_subexp_standard): Use it.
3378 2021-03-08 Tom Tromey <tom@tromey.com>
3380 * eval.c (eval_op_leq): New function.
3381 (evaluate_subexp_standard): Use it.
3383 2021-03-08 Tom Tromey <tom@tromey.com>
3385 * eval.c (eval_op_geq): New function.
3386 (evaluate_subexp_standard): Use it.
3388 2021-03-08 Tom Tromey <tom@tromey.com>
3390 * eval.c (eval_op_gtr): New function.
3391 (evaluate_subexp_standard): Use it.
3393 2021-03-08 Tom Tromey <tom@tromey.com>
3395 * eval.c (eval_op_less): New function.
3396 (evaluate_subexp_standard): Use it.
3398 2021-03-08 Tom Tromey <tom@tromey.com>
3400 * eval.c (eval_op_notequal): New function.
3401 (evaluate_subexp_standard): Use it.
3403 2021-03-08 Tom Tromey <tom@tromey.com>
3405 * eval.c (eval_op_equal): New function.
3406 (evaluate_subexp_standard): Use it.
3408 2021-03-08 Tom Tromey <tom@tromey.com>
3410 * eval.c (eval_op_subscript): New function.
3411 (evaluate_subexp_standard): Use it.
3413 2021-03-08 Tom Tromey <tom@tromey.com>
3415 * eval.c (eval_op_binary): New function.
3416 (evaluate_subexp_standard): Use it.
3418 2021-03-08 Tom Tromey <tom@tromey.com>
3420 * eval.c (eval_op_sub): New function.
3421 (evaluate_subexp_standard): Use it.
3423 2021-03-08 Tom Tromey <tom@tromey.com>
3425 * eval.c (eval_op_add): New function.
3426 (evaluate_subexp_standard): Use it.
3428 2021-03-08 Tom Tromey <tom@tromey.com>
3430 * eval.c (eval_op_member): New function.
3431 (evaluate_subexp_standard): Use it.
3433 2021-03-08 Tom Tromey <tom@tromey.com>
3435 * eval.c (eval_op_structop_ptr): New function.
3436 (evaluate_subexp_standard): Use it.
3438 2021-03-08 Tom Tromey <tom@tromey.com>
3440 * eval.c (eval_op_structop_struct): New function.
3441 (evaluate_subexp_standard): Use it.
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3445 * eval.c (eval_op_ternop): New function.
3446 (evaluate_subexp_standard): Use it.
3448 2021-03-08 Tom Tromey <tom@tromey.com>
3450 * eval.c (eval_op_concat): New function.
3451 (evaluate_subexp_standard): Use it.
3453 2021-03-08 Tom Tromey <tom@tromey.com>
3455 * eval.c (eval_op_objc_selector): New function.
3456 (evaluate_subexp_standard): Use it.
3458 2021-03-08 Tom Tromey <tom@tromey.com>
3460 * eval.c (eval_op_string): New function.
3461 (evaluate_subexp_standard): Use it.
3463 2021-03-08 Tom Tromey <tom@tromey.com>
3465 * eval.c (eval_op_register): New function.
3466 (evaluate_subexp_standard): Use it.
3468 2021-03-08 Tom Tromey <tom@tromey.com>
3470 * eval.c (eval_op_func_static_var): New function.
3471 (evaluate_subexp_standard): Use it.
3473 2021-03-08 Tom Tromey <tom@tromey.com>
3475 * eval.c (eval_op_var_msym_value): New function.
3476 (evaluate_subexp_standard): Use it.
3478 2021-03-08 Tom Tromey <tom@tromey.com>
3480 * eval.c (eval_op_var_entry_value): New function.
3481 (evaluate_subexp_standard): Use it.
3483 2021-03-08 Tom Tromey <tom@tromey.com>
3485 * eval.c (eval_op_scope): New function.
3486 (evaluate_subexp_standard): Use it.
3488 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3491 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3493 2021-03-06 Tom Tromey <tom@tromey.com>
3495 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3496 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3497 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3498 (locate_dwz_sections, dwz_search_other_debugdirs)
3499 (dwarf2_get_dwz_file): Move to dwz.c.
3500 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3502 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3503 (dwarf2_get_dwz_file): Move from read.c.
3505 2021-03-06 Tom Tromey <tom@tromey.com>
3507 * debuginfod-support.h: Include scoped_fd.h.
3509 2021-03-06 Tom Tromey <tom@tromey.com>
3511 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3512 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3513 (get_abbrev_section_for_cu, read_attribute_value)
3514 (get_debug_line_section): Update.
3515 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3517 2021-03-06 Tom Tromey <tom@tromey.com>
3519 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3521 * dwarf2/read.c (section_is_p): Remove.
3522 (dwarf2_per_bfd::locate_sections)
3523 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3524 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3525 (dwarf2_locate_common_dwp_sections)
3526 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3529 2021-03-06 Tom Tromey <tom@tromey.com>
3531 * xcoffread.c: Include sect-names.h.
3532 * symfile.h (struct dwarf2_section_names, struct
3533 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3534 * dwarf2/sect-names.h: New file, from symfile.h.
3535 * dwarf2/read.c: Include sect-names.h.
3537 2021-03-06 Tom Tromey <tom@tromey.com>
3539 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3540 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3541 (abbrev_table::read): Update.
3542 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3543 (struct abbrev_info): Reformat.
3544 <attrs>: Now an array.
3545 (struct abbrev_table) <alloc_abbrev>: Remove.
3547 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3549 * ctfread.c (ctf_psymtab_add_enums): New function.
3550 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3552 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3554 * ctfread.c (read_func_kind_type): Set up function arguments.
3556 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3557 Andrew Burgess <andrew.burgess@embecosm.com>
3559 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3561 (riscv_csrset): New static global.
3562 (riscv_update_csrmap): New function.
3563 (riscv_iterate_over_regset_sections): Process CSRs.
3565 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3567 * riscv-tdep.c (riscv_feature_name_csr): Define.
3568 (riscv_feature_name_cpu): Define.
3569 (riscv_feature_name_fpu): Define.
3570 (riscv_feature_name_virtual): Define.
3571 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3572 (riscv_freg_feature): Use riscv_feature_name_fpu.
3573 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3574 (riscv_csr_feature): Use riscv_feature_name_csr.
3575 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3577 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3578 Craig Blackmore <craig.blackmore@embecosm.com>
3580 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3581 (ALLDEPFILES): Add riscv-none-tdep.c.
3582 * configure: Regenerate.
3583 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3585 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3586 * elf-none-tdep.c: New file.
3587 * elf-none-tdep.h: New file.
3588 * riscv-none-tdep.c: New file.
3590 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3591 Andrew Burgess <andrew.burgess@embecosm.com>
3593 * corelow.c: Add 'xml-tdesc.h' include.
3594 (core_target::read_description): Load the target description from
3595 the core file when possible.
3596 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3598 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3599 (gcore_elf_make_tdesc_note): New function.
3600 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3601 * linux-tdep.c (linux_make_corefile_notes): Add target description
3604 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3606 * Makefile.in (SFILES): Add gcore-elf.c.
3607 (HFILES_NO_SRCDIR): Add gcore-elf.h
3608 * configure: Regenerate.
3609 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3611 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3612 (struct fbsd_collect_regset_section_cb_data): Delete.
3613 (fbsd_collect_regset_section_cb): Delete.
3614 (fbsd_collect_thread_registers): Delete.
3615 (struct fbsd_corefile_thread_data): Delete.
3616 (fbsd_corefile_thread): Delete.
3617 (fbsd_make_corefile_notes): Call
3618 gcore_elf_build_thread_register_notes instead of the now deleted
3620 * gcore-elf.c: New file, the content was moved here from
3621 linux-tdep.c, functions were renamed and given minor cleanup.
3622 * gcore-elf.h: New file.
3623 * gcore.c (gcore_find_signalled_thread): Moved here from
3624 linux-tdep.c and given a new name. Minor cleanups.
3625 * gcore.h (gcore_find_signalled_thread): Declare.
3626 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3627 (struct linux_collect_regset_section_cb_data): Delete.
3628 (linux_collect_regset_section_cb): Delete.
3629 (linux_collect_thread_registers): Delete.
3630 (linux_corefile_thread): Call
3631 gcore_elf_build_thread_register_notes.
3632 (find_signalled_thread): Delete.
3633 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3635 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3638 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3639 process_stratum_target parameter,
3640 sparc_store_inferior_registers): update callers.
3641 * sparc-nat.c (sparc_fetch_inferior_registers,
3642 sparc_store_inferior_registers): Add process_stratum_target
3643 parameter. Switch current thread before calling
3644 sparc_supply_gregset / sparc_collect_rwindow.
3645 (sparc_store_inferior_registers): Likewise.
3646 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3647 (sparc32obsd_collect_uthread): Likewise.
3648 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3650 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3651 sparc64obsd_supply_uthread): Add assertion.
3653 2021-03-04 Tom Tromey <tromey@adacore.com>
3655 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3656 (aux_add_nonlocal_symbols): Update.
3657 (ada_add_block_symbols): Change "found_sym" to bool.
3659 2021-03-03 Tom Tromey <tromey@adacore.com>
3661 * ada-lang.c (ada_resolve_function): Update comment.
3662 (is_nonfunction, add_symbols_from_enclosing_procs)
3663 (remove_extra_symbols): Likewise.
3664 (struct match_data): Add constructor, initializers.
3665 (add_nonlocal_symbols): Remove memset.
3666 (aux_add_nonlocal_symbols): Update comment.
3667 (ada_add_block_renamings, add_nonlocal_symbols)
3668 (ada_add_all_symbols): Likewise.
3669 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3671 2021-03-02 Tom Tromey <tromey@adacore.com>
3673 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3674 (cast_to_gnat_encoded_fixed_point_type): Remove.
3675 (ada_value_cast, ada_evaluate_subexp): Update.
3676 (gnat_encoded_fixed_point_type_info)
3677 (ada_is_gnat_encoded_fixed_point_type)
3678 (gnat_encoded_fixed_point_delta)
3679 (gnat_encoded_fixed_point_scaling_factor): Remove.
3680 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3681 (gnat_encoded_fixed_point_delta)
3682 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3683 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3684 (ada_print_type): Update.
3685 * ada-valprint.c (ada_value_print_num): Update.
3686 * dwarf2/read.c (ada_get_gnat_encoded_number)
3687 (ada_get_gnat_encoded_ratio): New functions.
3688 (finish_fixed_point_type): Use them. Add parameters.
3689 (GNAT_FIXED_POINT_SUFFIX): New define.
3690 (gnat_encoded_fixed_point_type_info): New function.
3691 (read_base_type): Handle gnat encodings.
3693 2021-03-02 Tom Tromey <tromey@adacore.com>
3695 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3696 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3698 (GROW_VECT): Remove.
3699 (grow_vect): Remove.
3701 2021-03-02 Tom Tromey <tromey@adacore.com>
3703 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3704 * ada-lang.c (resolve_subexp): Update.
3705 (ada_resolve_function): Accept a vector.
3706 (is_nonfunction, add_defn_to_vec)
3707 (add_symbols_from_enclosing_procs): Likewise.
3708 (num_defns_collected, defns_collected): Remove.
3709 (remove_extra_symbols): Return a vector.
3710 (remove_irrelevant_renamings): Return void.
3711 (ada_add_local_symbols): Accept a vector.
3712 (struct match_data) <obstackp>: Remove.
3713 <resultp>: New member.
3714 (aux_add_nonlocal_symbols): Update.
3715 (ada_add_block_renamings, add_nonlocal_symbols)
3716 (ada_add_all_symbols): Accept a vector.
3717 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3719 (ada_lookup_symbol): Update.
3720 (ada_add_block_symbols): Accept a vector.
3721 (get_var_value, iterate_over_symbols): Update.
3722 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3725 2021-03-02 Tom Tromey <tromey@adacore.com>
3727 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3729 2021-03-02 Tom Tromey <tromey@adacore.com>
3731 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3734 (ada_pspace_data): Remove destructor.
3735 <sym_cache>: Now a unique_ptr.
3736 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3737 (ada_get_symbol_cache): Use 'new'.
3738 (ada_clear_symbol_cache): Rewrite.
3740 2021-03-02 Tom Tromey <tromey@adacore.com>
3742 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3745 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
3748 * source.c (add_path): Skip empty dirnames.
3750 2021-02-25 Kevin Buettner <kevinb@redhat.com>
3752 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3753 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3755 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3758 * target.c (target_mourn_inferior): Only compare pids in
3759 target_mourn_inferior.
3761 2021-02-25 Jan Matyas <jmatyas@codasip.com>
3764 * remote.c (remote_target::start_remote): Ensure the single
3765 thread, automatically added for remote targets without the
3766 concept of threading, is initially in set to the "resumed"
3768 * remote.c (remote_target::add_current_inferior_and_thread):
3769 Add return value - return the main thread.
3771 2021-02-25 Jan Vrany <jan.vrany@labware.com>
3773 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3774 (mi_tsv_created): Likewise.
3775 (mi_tsv_deleted): Likewise.
3777 2021-02-25 Tom de Vries <tdevries@suse.de>
3780 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3781 section_kind for &dwo_file->sections.info.
3783 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3786 * f-lang.c (fortran_argument_convert): Delete declaration.
3787 (fortran_prepare_argument): New function.
3788 (evaluate_subexp_f): Move logic to new function
3789 fortran_prepare_argument.
3791 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3793 * f-exp.y (f77_keywords): Add 'associated'.
3794 * f-lang.c (fortran_associated): New function.
3795 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3796 (operator_length_f): Likewise.
3797 (print_unop_or_binop_subexp_f): New function.
3798 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3799 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3800 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3801 (operator_check_f): Likewise.
3802 * std-operator.def: Add FORTRAN_ASSOCIATED.
3804 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3806 * f-exp.y (fortran_operators): Add ".xor.".
3808 2021-02-24 Tom de Vries <tdevries@suse.de>
3811 * dwarf2/attribute.c (attribute::form_is_signed): New function
3813 * dwarf2/attribute.h (attribute::as_signed): ... here.
3814 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3815 (attribute::form_is_signed): Declare.
3816 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3817 for DW_AT_decl_file.
3819 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3821 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3822 order for <sys/ptrace.h> and <asm/ptrace.h>.
3824 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3826 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3829 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3831 * exec.c (set_section_command): Move variable declarations into
3832 the function body, and use std::string instead of a fixed size
3835 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3837 * exec.c (exec_target::get_section_table): Delete member function.
3838 (section_table_read_available_memory): Use current_top_target, not
3839 just the exec_ops target.
3840 * target-delegates.c: Regenerate.
3841 * target.c (default_get_section_table): New function.
3842 * target.h (target_ops::get_section_table): Change default
3843 behaviour to call default_get_section_table.
3844 (default_get_section_table): Declare.
3846 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3848 * exec.c (exec_target::close): Call new clear_target_sections
3850 (program_space::add_target_sections): Update name of member
3852 (program_space::add_target_sections): Update name of member
3854 (program_space::remove_target_sections): Likewise.
3855 (exec_one_fork): Use new target_sections member function.
3856 (exec_target::get_section_table): Likewise.
3857 (exec_target::files_info): Likewise.
3858 (set_section_command): Likewise.
3859 (exec_set_section_address): Likewise.
3860 (exec_target::has_memory): Use new target_sections member
3862 * progspace.h (program_space::clear_target_sections): New member
3864 (program_space::target_sections): Rename member variable to
3865 m_target_sections, replace with a new member function.
3866 (program_space::m_target_sections): New member variable.
3867 * solib-dsbt.c (scan_dyntag): Use new member function.
3868 * solib-svr4.c (scan_dyntag): Likewise.
3870 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3872 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3874 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3875 (section_table_read_available_memory): Make local const.
3876 (exec_target::xfer_partial): Make local const.
3877 (print_section_info): Make parameter const.
3878 * gdb/exec.h (print_section_info): Likewise.
3879 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3881 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3883 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3885 * gdb/s390-tdep.c (s390_load): Likewise.
3886 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3887 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3888 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3890 (target_debug_print_const_target_section_table_p): ...this.
3891 * gdb/target-delegates.c: Regenerate.
3892 * gdb/target.c (target_get_section_table): Make return type const.
3893 (target_section_by_addr): Likewise. Also make some locals const.
3894 (memory_xfer_partial_1): Make some locals const.
3895 * gdb/target.h (struct target_ops) <get_section_table>: Make
3897 (target_section_by_addr): Likewise.
3898 (target_get_section_table): Likewise.
3900 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3902 * NEWS: Mention new 'maint info target-sections' command.
3903 * maint.c (maintenance_info_target_sections): New function.
3904 (_initialize_maint_cmds): Register new command.
3906 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3908 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3909 (riscv_features_from_bfd): ...this. Change parameter type to
3910 'bfd*', and update as required.
3911 (riscv_find_default_target_description): Update call to
3912 riscv_features_from_bfd. Select a default xlen based on
3914 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3916 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3918 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3919 dynamic types in UNOP_IND.
3921 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3924 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3926 (~dwarf2_queue_guard): Clear queue.
3927 (queue_comp_unit): Assert that queue is
3929 (process_queue): Adjust.
3930 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3932 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3935 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3936 to decide whether or not to enqueue it for expansion.
3937 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3938 after calling maybe_queue_comp_unit.
3940 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3942 * linux-nat.c (linux_nat_filter_event): Return void.
3944 2021-02-22 Tom Tromey <tromey@adacore.com>
3946 * solib-svr4.c (enable_break): Update.
3947 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3949 (target_bfd_reopen): Change parameter type.
3950 * bfd-target.h (target_bfd_reopen): Change parameter type.
3952 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3954 * thread.c (add_thread_silent): Add assert.
3955 (find_thread_ptid): Add assert.
3957 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3960 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3961 (target_unpush_up): Likewise.
3962 * procfs.c (procfs_target::attach): Push target early. Use
3963 target_unpush_up to unpush target in case of error.
3964 * target.h (struct target_unpusher): Move here.
3965 (target_unpush_up): Likewise.
3967 2021-02-19 Kevin Buettner <kevinb@redhat.com>
3969 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3970 (which in turn includes <gnulib/config.h>) before include
3973 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
3976 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3977 (decode_j_type_insn): Likewise.
3978 (decode_cj_type_insn): Likewise.
3979 (decode_b_type_insn): Likewise.
3982 2021-02-18 Tom Tromey <tom@tromey.com>
3984 * expression.h (struct expression) <evaluate>: Declare method.
3985 * eval.c (evaluate_subexp): Simplify.
3986 (expression::evaluate): New method.
3987 (evaluate_expression, evaluate_type): Use expression::evaluate.
3989 2021-02-17 Kevin Buettner <kevinb@redhat.com>
3991 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3993 (ada_lookup_name_info): Likewise.
3995 2021-02-13 Mike Frysinger <vapier@gentoo.org>
3997 * aclocal.m4: Regenerate.
3999 2021-02-12 Tom de Vries <tdevries@suse.de>
4002 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4003 (lin_thread_signals): New static var.
4004 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4006 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4007 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4009 * linux-thread-db.c (check_thread_signals): Use
4010 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4012 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4014 * f-exp.y (f77_keywords): Add allocated.
4015 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4016 (operator_length_f): Likewise.
4017 (print_subexp_f): Likewise.
4018 (dump_subexp_body_f): Likewise.
4019 (operator_check_f): Likewise.
4020 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4022 2021-02-11 Tom de Vries <tdevries@suse.de>
4025 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4026 Return true for DW_FORM_strx.
4028 2021-02-11 Tom Tromey <tromey@adacore.com>
4031 * parse.c (write_exp_symbol_reference): Write sym.block.
4033 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4035 * NEWS: Mention changes to 'maint info sections'.
4036 * maint.c (match_substring): Return a bool, fix whitespace issue.
4037 (struct single_bfd_flag_info): New struct.
4038 (bfd_flag_info): New static global.
4039 (match_bfd_flags): Return a bool, use bfd_flag_info.
4040 (print_bfd_flags): Use bfd_flag_info.
4041 (maint_print_section_info): Delete trailing whitespace.
4042 (struct maint_info_sections_opts): New struct.
4043 (maint_info_sections_option_defs): New static global.
4044 (maint_info_sections_completer): New function.
4045 (maintenance_info_sections): Use option parsing mechanism.
4046 (_initialize_maint_cmds): Update command help text for 'maint info
4047 sections' and register a command completer.
4049 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4051 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4052 functionality merged into...
4053 (maint_print_all_sections): ...this new function.
4054 (maintenance_info_sections): Make use of maint_print_all_sections,
4055 allow all objects to be printed even where there's no executable.
4057 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4059 * breakpoint.c (resolve_sal_pc): Make use of
4060 bound_minimal_symbol::obj_section.
4061 * maint.c (maintenance_translate_address): Likewise.
4062 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4063 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4065 * printcmd.c (info_address_command): Make use of
4066 bound_minimal_symbol::obj_section.
4068 2021-02-11 Alan Modra <amodra@gmail.com>
4070 * arm-symbian-tdep.c: Delete.
4071 * NEWS: Mention arm-symbian removal.
4072 * Makefile.in: Remove arm-symbian-tdep entries.
4073 * configure.tgt: Remove arm*-*-symbianelf*.
4074 * doc/gdb.texinfo: Remove mention of SymbianOS.
4075 * osabi.c (gdb_osabi_names): Remove "Symbian".
4076 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4077 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4078 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4080 * testsuite/gdb.base/dup-sect.exp: Likewise.
4081 * testsuite/gdb.base/long_long.exp: Likewise.
4082 * testsuite/gdb.base/solib-weak.exp: Likewise.
4083 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4084 * testsuite/gdb.python/py-section-script.exp: Likewise.
4085 * testsuite/lib/dwarf.exp: Likewise.
4086 * testsuite/lib/gdb.exp: Likewise.
4088 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4090 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4091 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4092 (one_or_two_args): New pattern.
4093 (f77_keywords): Add lbound and ubound.
4094 * f-lang.c (fortran_bounds_all_dims): New function.
4095 (fortran_bounds_for_dimension): New function.
4096 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4097 (operator_length_f): Likewise.
4098 (print_subexp_f): Likewise.
4099 (dump_subexp_body_f): Likewise.
4100 (operator_check_f): Likewise.
4101 * std-operator.def (FORTRAN_LBOUND): Define.
4102 (FORTRAN_UBOUND): Define.
4104 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4106 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4107 and set_section_index member functions where appropriate.
4108 * coffread.c (coff_symtab_read): Likewise.
4109 (process_coff_symbol): Likewise.
4110 * ctfread.c (set_symbol_address): Likewise.
4111 * dwarf2/read.c (add_partial_symbol): Likewise.
4112 (var_decode_location): Likewise.
4113 * language.c: Likewise.
4114 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4115 (compact_minimal_symbols): Likewise.
4116 (minimal_symbol_upper_bound): Likewise.
4117 * objfiles.c (relocate_one_symbol): Likewise.
4118 * psympriv.h (partial_symbol::obj_section): Likewise.
4119 (partial_symbol::address): Likewise.
4120 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4121 * stabsread.c (scan_file_globals): Likewise.
4122 * symmisc.c (dump_msymbols): Likewise.
4123 * symtab.c (general_symbol_info::obj_section): Likewise.
4124 (fixup_section): Likewise.
4125 (get_msymbol_address): Likewise.
4126 * symtab.h (general_symbol_info::section): Rename to...
4127 (general_symbol_info::m_section): ...this.
4128 (general_symbol_info::set_section_index): New member function.
4129 (general_symbol_info::section_index): Likewise.
4130 (SYMBOL_SECTION): Delete.
4131 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4132 set_section_index member functions where appropriate.
4133 (MSYMBOL_SECTION): Delete.
4134 (symbol::symbol): Update to initialize 'm_section'.
4135 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4136 (process_xcoff_symbol): Likewise.
4138 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4140 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4141 MSYMBOL_OBJ_SECTION.
4142 * findvar.c (language_defn::read_var_value): Likewise.
4143 * infcmd.c (jump_command): Likewise.
4144 * linespec.c (minsym_found): Likewise.
4145 * maint.c (maintenance_translate_address): Likewise.
4146 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4147 (minimal_symbol_upper_bound): Likewise.
4148 * parse.c (find_minsym_type_and_address): Likewise.
4149 (operator_check_standard): Likewise.
4150 * printcmd.c (info_address_command): Likewise.
4151 * symmisc.c (dump_msymbols): Likewise.
4152 (print_symbol): Likewise.
4153 * symtab.c (general_symbol_info::obj_section): Define new
4155 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4156 (find_pc_sect_compunit_symtab): Likewise.
4157 (find_function_start_sal): Likewise.
4158 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4159 MSYMBOL_OBJ_SECTION.
4160 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4162 (SYMBOL_OBJ_SECTION): Delete.
4163 (MSYMBOL_OBJ_SECTION): Delete.
4165 2021-02-09 Tom Tromey <tom@tromey.com>
4167 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4169 2021-02-09 Tom de Vries <tdevries@suse.de>
4172 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4173 construct an array type. Add assert to ensure that element_type is
4176 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4178 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4179 (gcore_collect_regset_section_cb): Delete.
4180 (gcore_collect_thread_registers): Delete.
4181 (gcore_build_thread_register_notes): Delete.
4182 (gcore_find_signalled_thread): Delete.
4183 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4184 'gdbarch' and 'thread_info' declarations.
4185 (gcore_build_thread_register_notes): Delete declaration.
4186 (gcore_find_signalled_thread): Likewise.
4187 * fbsd-tdep.c: Remove 'gcore.h' include.
4188 (struct fbsd_collect_regset_section_cb_data): New struct.
4189 (fbsd_collect_regset_section_cb): New function.
4190 (fbsd_collect_thread_registers): New function.
4191 (struct fbsd_corefile_thread_data): New struct.
4192 (fbsd_corefile_thread): New function.
4193 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4194 * linux-tdep.c: Remove 'gcore.h' include.
4195 (struct linux_collect_regset_section_cb_data): New struct.
4196 (linux_collect_regset_section_cb): New function.
4197 (linux_collect_thread_registers): New function.
4198 (linux_corefile_thread): Call Linux specific code.
4199 (find_signalled_thread): New function.
4200 (linux_make_corefile_notes): Call find_signalled_thread.
4202 2021-02-09 Tom Tromey <tromey@adacore.com>
4204 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4206 * value.c (value_contents_copy_raw): Now static.
4207 * value.h (value_contents_copy_raw): Don't declare.
4209 2021-02-09 Tom Tromey <tromey@adacore.com>
4211 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4214 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4217 * arc-linux-tdep.c (handle_atomic_sequence): New.
4218 (arc_linux_software_single_step): Call handle_atomic_sequence().
4220 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4222 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4224 (REQUIRE_WINDOW): Call is_valid member function.
4225 (REQUIRE_WINDOW_FOR_SETTER): New define.
4226 (gdbpy_tui_is_valid): Call is_valid member function.
4227 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4228 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4230 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4231 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4234 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4236 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4237 for the title is not nullptr.
4239 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4241 * tui-layout.c (saved_tui_windows): Delete.
4242 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4243 call new get_windows member function instead.
4244 (tui_get_window_by_name): Check in tui_windows.
4245 (tui_layout_window::apply): Don't add to tui_windows.
4246 * tui-layout.h (tui_layout_base::get_windows): New member function.
4247 (tui_layout_window::get_windows): Likewise.
4248 (tui_layout_split::get_windows): Likewise.
4250 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4252 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4253 of the window objects.
4255 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4257 * python/python.c (gdbpy_print_stack): Reformat an error message.
4259 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4261 * tui/tui-interp.c (tui_command_line_handler): New function.
4262 (tui_interp::resume): Register tui_command_line_handler as the
4264 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4266 (tui_getc_1): Delete handling of '\n' and '\r'.
4267 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4269 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4271 * tui/tui-regs.c (tui_data_window::display_registers_from):
4272 Mark invisible register sub windows.
4273 (tui_data_window::check_register_values): Ignore invisible
4274 register sub windows.
4276 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4278 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4279 n_spaces with a negative value.
4281 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4283 * tui/tui-regs.c (tui_data_window::display_registers_from):
4284 Add refresh_window call.
4286 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4288 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4290 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4292 * symmisc.c (std_in, std_out, std_err): Remove.
4293 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4295 2021-02-05 Tom de Vries <tdevries@suse.de>
4297 PR breakpoints/27330
4298 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4299 glibc object file has debug info.
4301 2021-02-05 Tom de Vries <tdevries@suse.de>
4304 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4306 2021-02-05 Tom de Vries <tdevries@suse.de>
4308 PR breakpoints/27313
4309 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4312 2021-02-05 Tom Tromey <tom@tromey.com>
4314 * compile/compile-c-support.c (get_compile_context)
4315 (c_get_compile_context, cplus_get_compile_context): Change return
4317 * language.c (language_defn::get_compile_instance): New method.
4318 * language.h (language_defn::get_compile_instance): Change return
4319 type. No longer inline.
4320 * c-lang.c (c_language::get_compile_instance): Change return type.
4321 (cplus_language::get_compile_instance): Change return type.
4322 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4324 * compile/compile.c (compile_to_object): Update.
4326 2021-02-05 Tom Tromey <tom@tromey.com>
4328 * parser-defs.h (write_exp_symbol_reference): Declare.
4329 * parse.c (write_exp_symbol_reference): New function.
4330 * p-exp.y (variable): Use write_exp_symbol_reference.
4331 * m2-exp.y (variable): Use write_exp_symbol_reference.
4332 * f-exp.y (variable): Use write_exp_symbol_reference.
4333 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4334 * c-exp.y (variable): Use write_exp_symbol_reference.
4336 2021-02-05 Tom de Vries <tdevries@suse.de>
4339 * valarith.c (complex_binop): Throw an error if complex type can't
4342 2021-02-05 Tom de Vries <tdevries@suse.de>
4345 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4348 2021-02-05 Tom de Vries <tdevries@suse.de>
4350 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4352 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4354 * configure.tgt (riscv*-*-*): Set gdb_sim.
4356 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4358 * target.c (target_is_non_stop_p): Return bool.
4359 * target.h (target_is_non_stop_p): Return bool.
4361 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4363 * record-full.c (record_full_async_inferior_event_handler):
4364 Don't clear async event handler.
4365 (record_full_base_target::wait): Clear async event handler at
4368 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4370 * record-btrace.c (record_btrace_handle_async_inferior_event):
4371 Don't clear async event handler.
4372 (record_btrace_target::wait): Clear async event handler at
4375 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4377 * remote.c (remote_target::wait): Clear async event handler at
4378 beginning, mark if needed at the end.
4379 (remote_async_inferior_event_handler): Don't set or clear async
4382 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4384 * async-event.h (async_event_handler_func): Add documentation.
4385 * async-event.c (check_async_event_handlers): Don't clear
4386 async_event_handler ready flag.
4387 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4389 * record-btrace.c (record_btrace_handle_async_inferior_event):
4391 * record-full.c (record_full_async_inferior_event_handler):
4393 * remote-notif.c (remote_async_get_pending_events_handler):
4395 * remote.c (remote_async_inferior_event_handler): Likewise.
4397 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4399 * infrun.c (handle_inferior_event): Move stop_soon variable to
4402 2021-02-03 Pedro Alves <pedro@palves.net>
4404 * infcmd.c (detach_command): Hold strong reference to target, and
4405 if all-stop on entry, restart threads on exit.
4406 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4407 (restart_stepped_thread): ... this new function. Also handle
4409 (restart_after_all_stop_detach): New function.
4410 * infrun.h (restart_after_all_stop_detach): Declare.
4412 2021-02-03 Pedro Alves <pedro@palves.net>
4414 * infrun.c (struct step_over_info): Initialize fields.
4415 (prepare_for_detach): Handle ongoing in-line step over.
4417 2021-02-03 Pedro Alves <pedro@palves.net>
4419 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4421 * remote.c (remote_target::remote_detach_1): ... and here ...
4422 * target.c (target_detach): ... instead of here.
4423 * target.h (target_ops::detach): Add comment.
4425 2021-02-03 Pedro Alves <pedro@palves.net>
4427 * infrun.c (struct wait_one_event): Move higher up.
4428 (prepare_for_detach): Abort in-progress displaced steps instead of
4429 letting them complete.
4430 (handle_one): If the inferior is detaching, don't add the thread
4431 back to the global step-over chain.
4432 (restart_threads): Don't restart threads if detaching.
4433 (handle_signal_stop): Remove inferior::detaching reference.
4435 2021-02-03 Pedro Alves <pedro@palves.net>
4437 * infrun.c (prepare_for_detach): Don't release scoped_restore
4440 2021-02-03 Pedro Alves <pedro@palves.net>
4442 * infrun.c (handle_one): New function, factored out from ...
4443 (stop_all_threads): ... here.
4445 2021-02-03 Pedro Alves <pedro@palves.net>
4447 * remote.c (remote_notif_stop_ack): Don't error out on
4448 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4449 (remote_target::discard_pending_stop_replies): Don't delete
4450 in-flight notification; instead, clear its contents.
4452 2021-02-03 Pedro Alves <pedro@palves.net>
4454 * remote.c (extended_remote_target::attach): Set target async in
4455 the target-non-stop path too.
4457 2021-02-03 Pedro Alves <pedro@palves.net>
4460 * infrun.c (handle_signal_stop): Move main context_switch call
4461 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4463 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4465 * NEWS (Changed commands): Add entry for the behavior change of
4466 the inferior command.
4467 * inferior.c (inferior_command): When no argument is given to the
4468 inferior command, display info about the currently selected
4471 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4473 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4475 (read_attribute_reprocess): Adjust.
4477 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4479 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4480 <gnu_ranges_base>: ... this...
4481 <rnglists_base>: ... and this.
4482 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4483 <gnu_ranges_base>: ... this...
4484 <rnglists_base>: ... and this.
4485 (read_cutu_die_from_dwo): Adjust
4486 (dwarf2_get_pc_bounds): Adjust
4487 (dwarf2_record_block_ranges): Adjust.
4488 (read_full_die_1): Adjust
4489 (partial_die_info::read): Adjust.
4490 (read_rnglist_index): Adjust.
4492 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4495 * dwarf2/read.c (read_loclists_rnglists_header): Add
4496 header_offset parameter and use it.
4497 (read_loclist_index): Read header of the current contribution,
4498 not the one at the beginning of the section.
4499 (read_rnglist_index): Likewise.
4501 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4504 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4505 requires_reprocessing flag.
4506 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4508 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4509 and DW_FORM_loclistx.
4510 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4511 instead of set_address for DW_FORM_loclistx and
4514 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4516 * dwarf2/read.c (read_loclist_index): Remove bound check for
4518 (read_rnglist_index): Likewise.
4520 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4522 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4525 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4527 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4529 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4531 * dwarf2/read.c (read_loclist_index): Change complaints into
4534 2021-02-02 Tom de Vries <tdevries@suse.de>
4537 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4540 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4542 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4543 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4544 here from linux-tdep.c and given a new name. Minor cleanups.
4545 (gcore_collect_regset_section_cb): Likewise.
4546 (gcore_collect_thread_registers): Likewise.
4547 (gcore_build_thread_register_notes): Likewise.
4548 (gcore_find_signalled_thread): Likewise.
4549 * gcore.h (gcore_build_thread_register_notes): Declare.
4550 (gcore_find_signalled_thread): Declare.
4551 * fbsd-tdep.c: Add 'gcore.h' include.
4552 (struct fbsd_collect_regset_section_cb_data): Delete.
4553 (fbsd_collect_regset_section_cb): Delete.
4554 (fbsd_collect_thread_registers): Delete.
4555 (struct fbsd_corefile_thread_data): Delete.
4556 (fbsd_corefile_thread): Delete.
4557 (fbsd_make_corefile_notes): Call
4558 gcore_build_thread_register_notes instead of the now deleted
4560 * linux-tdep.c: Add 'gcore.h' include.
4561 (struct linux_collect_regset_section_cb_data): Delete.
4562 (linux_collect_regset_section_cb): Delete.
4563 (linux_collect_thread_registers): Delete.
4564 (linux_corefile_thread): Call
4565 gcore_build_thread_register_notes.
4566 (find_signalled_thread): Delete.
4567 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4569 2021-01-29 Tom de Vries <tdevries@suse.de>
4571 PR breakpoints/26063
4572 * infrun.c (process_event_stop_test): Reset
4573 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4576 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4578 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4579 assert. Extend the header comment.
4581 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4583 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4584 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4585 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4586 (tui_locator_win_info_ptr): Delete declaration.
4587 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4588 (tui_disasm_window::set_contents): Fetch state from tui_location
4590 (tui_get_begin_asm_address): Likewise.
4591 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4593 (get_locator_window): Delete.
4594 (initialize_known_windows): Treat locator window just like all the
4596 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4597 (tui_source_window::set_contents): Fetch state from tui_location
4599 (tui_source_window::showing_source_p): Likewise.
4600 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4602 (tui_locator_win_info_ptr): Delete.
4603 (tui_locator_window::make_status_line): Fetch state from
4604 tui_location global.
4605 (tui_locator_window::rerender): Remove check of 'handle',
4606 reindent function body.
4607 (tui_locator_window::set_locator_fullname): Delete.
4608 (tui_locator_window::set_locator_info): Delete.
4609 (tui_update_locator_fullname): Delete.
4610 (tui_show_frame_info): Likewise.
4611 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4612 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4613 tui/tui-location.h and renamed to
4614 tui_location_tracker::set_location.
4615 (tui_locator_window::set_locator_fullname): Moved to
4616 tui/tui-location.h and renamed to
4617 tui_location_tracker::set_fullname.
4618 (tui_locator_window::full_name): Delete.
4619 (tui_locator_window::proc_name): Delete.
4620 (tui_locator_window::line_no): Delete.
4621 (tui_locator_window::addr): Delete.
4622 (tui_locator_window::gdbarch): Delete.
4623 (tui_update_locator_fullname): Delete declaration.
4624 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4626 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4627 (tui_display_main): Call function on tui_location directly.
4628 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4629 * tui/tui-location.c: New file.
4630 * tui/tui-location.h: New file.
4632 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4634 * gdbtypes.h (get_type_arch): Rename to...
4635 (struct type) <arch>: ... this, update all users.
4637 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4639 * gdbtypes.h (struct type) <arch>: Rename to...
4640 <arch_owner>: ... this, update all users.
4641 <objfile>: Rename to...
4642 <objfile_owner>: ... this, update all users.
4644 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4646 * gdbcmd.h (execute_command_to_string): Update comment.
4647 * top.c (execute_command_to_string): Update header comment.
4649 2021-01-28 Tom de Vries <tdevries@suse.de>
4651 PR breakpoints/27205
4652 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4653 (create_longjmp_master_breakpoint_names): New function, factored out
4655 (create_longjmp_master_breakpoint): ... here. Only try to install
4656 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4657 breakpoint in libc.so failed.
4659 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4662 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4663 unique_ptr is released when the wrapped pointer is kept for later
4666 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4668 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4669 BLR and BR instructions.
4670 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4671 (enum aarch64_masks): New.
4673 2021-01-26 Tom Tromey <tromey@adacore.com>
4675 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4676 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4677 (windows_init_thread_list, windows_nat::handle_load_dll)
4678 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4679 (windows_nat_target::resume)
4680 (windows_nat_target::get_windows_debug_event)
4681 (windows_nat_target::interrupt, windows_xfer_memory)
4682 (windows_nat_target::close): Update.
4683 * nat/windows-nat.c (DEBUG_EVENTS): Use
4684 debug_prefixed_printf_cond.
4685 (matching_pending_stop, fetch_pending_stop)
4686 (continue_last_debug_event): Update.
4688 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4690 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4691 elfcore_write_file_note.
4693 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
4695 * arc-tdep.c (arc_add_reggroups): New function.
4696 (arc_gdbarch_init): Call arc_add_reggroups.
4698 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
4700 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4702 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4703 Simon Marchi <simon.marchi@polymtl.ca>
4704 Tom de Vries <tdevries@suse.de>
4706 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4709 2021-01-25 Tom Tromey <tromey@adacore.com>
4711 * dwarf2/read.c (get_mpz): New function.
4712 (get_dwarf2_rational_constant): Use it.
4714 2021-01-25 Tom Tromey <tromey@adacore.com>
4716 * ada-lang.c (resolve_subexp): Handle array context.
4718 2021-01-23 Tom Tromey <tom@tromey.com>
4721 * compile/compile-loc2c.c (note_register): New function.
4722 (pushf_register_address, pushf_register): Use it.
4724 2021-01-23 Tom Tromey <tom@tromey.com>
4726 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4727 Change type of "registers_used".
4728 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4729 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4730 (locexpr_generate_c_location, loclist_generate_c_location): Change
4731 type of "registers_used".
4732 * compile/compile.h (compile_dwarf_expr_to_c)
4733 (compile_dwarf_bounds_to_c): Update.
4734 * compile/compile-loc2c.c (pushf_register_address)
4735 (pushf_register, do_compile_dwarf_expr_to_c)
4736 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4737 of "registers_used".
4738 * compile/compile-c.h (generate_c_for_variable_locations):
4740 * compile/compile-c-symbols.c (generate_vla_size)
4741 (generate_c_for_for_one_variable): Change type of
4743 (generate_c_for_variable_locations): Return std::vector.
4744 * compile/compile-c-support.c (generate_register_struct): Change
4745 type of "registers_used".
4748 2021-01-23 Tom Tromey <tom@tromey.com>
4750 * compile/compile-internal.h (class compile_instance)
4751 <set_arguments>: Change return type.
4752 * compile/compile.c (compile_to_object): Remove call to reset.
4753 (compile_instance::set_arguments): Change return type.
4755 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4757 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4758 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4760 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4762 * Makefile.in (SELFTESTS_SRCS): Add
4763 unittests/gdb_tilde_expand-selftests.c.
4764 * unittests/gdb_tilde_expand-selftests.c: New file.
4766 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4769 * NEWS: Mention new command.
4770 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4771 (version_style): Define.
4772 (cli_style_option::cli_style_option): Add intensity parameter, and
4774 (_initialize_cli_style): Register version style set/show commands.
4775 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4776 (version_style): Declare.
4777 * top.c (print_gdb_version): Use version_stype, and styled_string
4778 to print the GDB version string.
4780 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4782 * utils.c (emit_style_escape): Only emit an escape sequence if the
4783 requested style is different than the current applied style.
4784 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4785 current applied_style.
4786 (fputs_styled): Remove is_default check.
4787 (fputs_styled_unfiltered): Likewise.
4788 (vfprintf_styled_no_gdbfmt): Likewise.
4790 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4792 * remote.h (remote_debug_printf): New.
4793 (remote_debug_printf_nofunc): New.
4794 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4795 * remote.c: Use above macros throughout file.
4797 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4799 * remote.h (remote_debug): Change to bool.
4800 * remote.c (remote_debug): Change to bool.
4801 (_initialize_remote): Adjust.
4803 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4805 * target.h (remote_debug): Move to...
4806 * remote.h (remote_debug): ... here.
4807 * top.c (remote_debug): Move to...
4808 * remote.c (remote_debug): ... here.
4809 * remote-sim.c: Include remote.h.
4811 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4813 * cli/cli-cmds.c (show_remote_debug): Remove.
4814 (show_remote_timeout): Remove.
4815 (_initialize_cli_cmds): Don't register commands.
4816 * remote.c (show_remote_debug): Move here.
4817 (show_remote_timeout): Move here.
4818 (_initialize_remote): Register commands.
4820 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4822 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4823 type::objfile method instead.
4825 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4827 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4828 use the type::is_objfile_owned method.
4830 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
4832 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4833 (TYPE_OWNER): Remove.
4834 (TYPE_OBJFILE): Adjust.
4835 (struct main_type) <flag_objfile_owned>: Rename to...
4836 <m_flag_objfile_owned>: ... this.
4837 <owner>: Rename to...
4838 <m_owner>: ... this.
4839 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4841 (TYPE_ALLOC): Adjust.
4842 * gdbtypes.c (alloc_type): Adjust.
4843 (alloc_type_arch): Adjust.
4844 (alloc_type_copy): Adjust.
4845 (get_type_arch): Adjust.
4846 (smash_type): Adjust.
4847 (lookup_array_range_type): Adjust.
4848 (recursive_dump_type): Adjust.
4849 (copy_type_recursive): Adjust.
4850 * compile/compile-c-types.c (convert_func): Adjust.
4851 (convert_type_basic): Adjust.
4852 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4855 (language_arch_info::type_and_symbol::alloc_type_symbol):
4858 2021-01-21 Luis Machado <luis.machado@linaro.org>
4860 * coffread.c (enter_linenos): Passing string to complaint.
4861 * valops.c (value_assign): Make array view.
4863 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4865 * auto-load.h (debug_auto_load): Move here.
4866 (auto_load_debug_printf): New.
4867 * auto-load.c: Use auto_load_debug_printf.
4868 (debug_auto_load): Move to header.
4869 * linux-thread-db.c (try_thread_db_load): Use
4870 auto_load_debug_printf.
4871 * main.c (captured_main_1): Likewise.
4873 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4875 * f-valprint.c (f77_array_offset_tbl): Remove.
4877 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4879 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4881 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4883 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4886 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
4889 * python/py-breakpoint.c (bppy_get_location): Handle
4890 bp_hardware_breakpoint.
4891 (bppy_init): Likewise.
4892 (gdbpy_breakpoint_created): Likewise.
4894 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4896 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4898 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4900 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4901 (_initialize_gdb_bfd): Adjust.
4903 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4906 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4908 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4910 * dwarf2/read.c (follow_die_offset): Add logging.
4911 (dwarf2_per_objfile::age_comp_units): Add logging.
4913 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4915 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4916 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4917 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4918 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4919 * arm-tdep.c (struct frame_unwind): Make static.
4920 * auto-load.c (auto_load_safe_path_vec): Make static.
4921 * csky-tdep.c (csky_stub_unwind): Make static.
4922 * gdbarch.c (gdbarch_data_registry): Make static.
4923 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4924 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4925 * i386-tdep.c (i386_frame_setup_skip_insns,
4926 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4928 * infrun.c (observer_mode): Make static.
4929 * linux-nat.c (sigchld_action): Make static.
4930 * linux-thread-db.c (thread_db_list): Make static.
4931 * maint-test-options.c (maintenance_test_options_list):
4932 * mep-tdep.c (mep_csr_registers): Make static.
4933 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4934 (stats): Make static.
4935 * nat/linux-osdata.c (struct osdata_type): Make static.
4936 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4937 * progspace.c (last_program_space_num): Make static.
4938 * python/py-param.c (struct parm_constant): Remove struct type
4940 (parm_constants): Make static.
4941 * python/py-record-btrace.c (btpy_list_methods): Make static.
4942 * python/py-record.c (recpy_gap_type): Make static.
4943 * record.c (record_goto_cmdlist): Make static.
4944 * regcache.c (regcache_descr_handle): Make static.
4945 * registry.h (DEFINE_REGISTRY): Make definition static.
4946 * symmisc.c (std_in, std_out, std_err): Make static.
4947 * top.c (previous_saved_command_line): Make static.
4948 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4950 * unittests/command-def-selftests.c (nr_duplicates,
4951 nr_invalid_prefixcmd, lists): Make static.
4952 * unittests/observable-selftests.c (test_notification): Make
4954 * unittests/optional/assignment/1.cc (counter): Make static.
4955 * unittests/optional/assignment/2.cc (counter): Make static.
4956 * unittests/optional/assignment/3.cc (counter): Make static.
4957 * unittests/optional/assignment/4.cc (counter): Make static.
4958 * unittests/optional/assignment/5.cc (counter): Make static.
4959 * unittests/optional/assignment/6.cc (counter): Make static.
4961 2021-01-20 Joel Sherrill <joel@rtems.org>
4964 * remote.c (struct remote_thread_info) <resume_state>: Rename
4966 <get_resume_state>: ... this.
4967 (remote_target::resume): Adjust.
4968 (remote_target::commit_resume): Adjust.
4969 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4971 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4972 Tom Tromey <tom@tromey.com>
4974 * stap-probe.c (stap_parse_single_operand): Handle '!'
4976 (stap_parse_argument_conditionally): Likewise.
4977 Skip spaces after processing open-parenthesis sub-expression.
4978 (stap_parse_argument_1): Skip spaces after call to
4979 stap_parse_argument_conditionally.
4980 Handle case when right-side expression is a parenthesized
4982 Skip spaces after call to stap_parse_argument_1.
4984 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4986 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4988 2021-01-19 Luis Machado <luis.machado@linaro.org>
4990 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4991 memory and save data.
4992 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4993 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4994 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4995 (trad_frame_value_bytes_p): Remove.
4996 (trad_frame_reset_saved_regs): Adjust documentation.
4997 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4998 constructor and reset the state of the registers.
4999 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5000 (trad_frame_value_bytes_p, trad_frame_set_value)
5001 (trad_frame_set_realreg, trad_frame_set_addr)
5002 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5003 (trad_frame_set_reg_realreg): Update to call member function.
5004 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5005 (trad_frame_get_prev_register): Likewise.
5007 * aarch64-tdep.c (aarch64_analyze_prologue)
5008 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5009 (aarch64_prologue_prev_register): Update to use member functions.
5010 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5011 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5012 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5013 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5014 (arm_make_epilogue_frame_cache): Likewise.
5015 * avr-tdep.c (avr_frame_unwind_cache)
5016 (avr_frame_prev_register): Likewise.
5017 * cris-tdep.c (cris_scan_prologue): Likewise.
5018 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5019 * frv-tdep.c (frv_analyze_prologue): Likewise.
5020 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5021 * lm32-tdep.c (lm32_frame_cache): Likewise.
5022 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5023 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5024 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5025 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5026 (reset_saved_regs): Adjust to set realreg.
5027 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5028 call member functions.
5029 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5030 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5031 (s390_backchain_frame_unwind_cache): Likewise.
5032 * score-tdep.c (score7_analyze_prologue)
5033 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5034 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5035 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5036 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5037 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5038 * tilegx-tdep.c (tilegx_analyze_prologue)
5039 (tilegx_frame_cache): Likewise.
5040 * v850-tdep.c (v850_frame_cache): Likewise.
5041 * vax-tdep.c (vax_frame_cache): Likewise.
5043 2021-01-19 Luis Machado <luis.machado@linaro.org>
5045 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5047 (put_frame_register_bytes): Likewise.
5048 Adjust documentation.
5049 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5050 (safe_frame_unwind_memory): Likewise.
5051 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5052 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5054 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5055 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5056 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5057 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5058 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5059 * dwarf2/loc.c (rw_pieced_value): Likewise.
5060 * hppa-tdep.c (hppa_frame_cache): Likewise.
5061 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5062 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5063 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5064 (i386_linux_rt_sigtramp_start): Likewise.
5065 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5066 * i386-tdep.c (i386_register_to_value): Likewise.
5067 * i387-tdep.c (i387_register_to_value): Likewise.
5068 * ia64-tdep.c (ia64_register_to_value): Likewise.
5069 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5070 (m32r_linux_rt_sigtramp_start): Likewise.
5071 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5072 * m68k-tdep.c (m68k_register_to_value): Likewise.
5073 * mips-tdep.c (mips_register_to_value)
5074 (mips_value_to_register): Likewise.
5075 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5076 (ppcfbsd_sigtramp_frame_cache): Likewise.
5077 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5078 (ppcobsd_sigtramp_frame_cache): Likewise.
5079 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5080 (rs6000_register_to_value): Likewise.
5081 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5082 * tramp-frame.c (tramp_frame_start): Likewise.
5083 * valops.c (value_assign): Likewise.
5085 2021-01-19 Luis Machado <luis.machado@linaro.org>
5087 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5089 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5090 instead of buffer and size.
5091 (trad_frame_set_reg_value_bytes): Likewise.
5092 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5093 (trad_frame_set_value_bytes): Likewise.
5095 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5097 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5099 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5101 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5102 (riscv_fbsd_gregset): Use riscv_supply_regset.
5103 (riscv_fbsd_fpregset): Likewise.
5104 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5105 (riscv_linux_fregset): Likewise.
5106 * riscv-tdep.c (riscv_supply_regset): Define new function.
5107 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5109 2021-01-18 Tom de Vries <tdevries@suse.de>
5112 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5114 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5117 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5119 * remote.c (class remote_target) <remote_hostio_send_command,
5120 remote_hostio_parse_result>: Constify parameter.
5121 (remote_hostio_parse_result): Likewise.
5122 (remote_target::remote_hostio_send_command): Adjust.
5123 (remote_target::remote_hostio_pread_vFile): Adjust.
5124 (remote_target::fileio_readlink): Adjust.
5125 (remote_target::fileio_fstat): Adjust.
5127 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5129 * remote.c (remote_target::start_remote): Move wait_status to
5132 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5134 * remote.c (class remote_target):
5135 <add_current_inferior_and_thread>: Constify parameter.
5136 (stop_reply_extract_thread): Likewise.
5137 (remote_target::get_current_thread): Likewise.
5138 (remote_target::add_current_inferior_and_thread): Likewise.
5140 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5142 * remote.c (class remote_target)
5143 <remote_unpack_thread_info_response,
5144 parse_threadlist_response>: Constify parameter and/or return
5145 value and or local variable.
5146 (stub_unpack_int): Likewise.
5147 (unpack_nibble): Likewise.
5148 (unpack_byte): Likewise.
5149 (unpack_int): Likewise.
5150 (unpack_string): Likewise.
5151 (unpack_threadid): Likewise.
5152 (remote_target::remote_unpack_thread_info_response): Likewise.
5153 (remote_target::parse_threadlist_response): Likewise.
5155 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5157 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5159 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5161 * MAINTAINERS (Write After Approval): Add myself.
5163 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5165 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5166 because is_trivially_default_constructible was first implemented with
5169 2021-01-14 Tom de Vries <tdevries@suse.de>
5171 PR breakpoints/27151
5172 * objfiles.h (in_plt_section): Handle .plt.sec.
5174 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5178 (remote_target::select_thread_for_ambiguous_stop_reply): New
5180 (remote_target::process_stop_reply): Call
5181 select_thread_for_ambiguous_stop_reply.
5183 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5185 * record-btrace.c (class record_btrace_target): Remove.
5186 (record_btrace_target::commit_resume): Remove.
5187 * record-full.c (class record_full_target): Remove.
5188 (record_full_target::commit_resume): Remove.
5190 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5192 * remote.c (enum class resume_state): New.
5193 (struct resumed_pending_vcont_info): New.
5194 (struct remote_thread_info) <resume_state, set_not_resumed,
5195 set_resumed_pending_vcont, resumed_pending_vcont_info,
5196 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5198 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5199 (remote_target::remote_add_thread): Adjust.
5200 (remote_target::process_initial_stop_replies): Adjust.
5201 (remote_target::resume): Adjust.
5202 (remote_target::commit_resume): Rely on state in
5203 remote_thread_info and not on tp->executing.
5204 (remote_target::process_stop_reply): Adjust.
5206 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5208 * arc-tdep.h (arc_debug_printf): New.
5209 * arc-tdep.c: Use arc_debug_printf.
5210 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5211 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5212 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5214 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5216 * arc-tdep.h (arc_debug): Change type to bool.
5217 * arc-tdep.c (arc_debug): Change type to bool.
5218 (arc_analyze_prologue): Adjust.
5219 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5220 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5222 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5224 * auto-load.c (auto_load_objfile_script_1): Use bool.
5225 (execute_script_contents): Use bool.
5227 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5229 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5231 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5233 * extension-priv.h (struct extension_language_script_ops)
5234 <auto_load_enabled>: Return bool.
5235 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5237 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5239 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5241 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5242 move comment to header.
5243 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5245 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5246 move comment to header.
5248 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5250 * auto-load.h (file_is_auto_load_safe): Change return type to
5251 bool, move comment here.
5252 * auto-load.c (file_is_auto_load_safe): Change return type and
5253 advice_printed to bool. Move comment to header.
5255 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5257 * jit.c (jit_debug_printf): New, use throughout file.
5259 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5261 * infrun.c (normal_stop): Fix indentation.
5263 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5265 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5267 * symfile.h: ... here.
5268 * symfile.c: Update doc.
5270 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5272 * target.h (baud_rate, serial_parity): Move declarations...
5273 * serial.h: ... here.
5274 * main.c: Include serial.h.
5275 * serial.c (baud_rate, serial_parity): Update doc.
5277 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5279 * top.c (pre_init_ui_hook): Remove.
5281 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5283 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5284 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5285 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5286 * features/aarch64-fpu.xml: Add bfloat16 type.
5288 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5290 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5292 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5294 * f-exp.y (dot_ops): Rename to...
5295 (fortran_operators): ...this. Add a header comment. Add symbol
5297 (yylex): Update to use fortran_operators not dot_ops. Remove
5298 special handling for '**', this is now included in
5301 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5303 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5304 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5305 * aarch64-tdep.c: Use aarch64_debug_printf.
5307 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5309 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5312 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5314 * jit.c (jit_debug): Change type to bool.
5315 (_initialize_jit): Adjust.
5317 2021-01-09 Tom Tromey <tom@tromey.com>
5320 * compile/compile.c (compile_to_object): Avoid crash when
5321 osabi_triplet_regexp returns NULL.
5323 2021-01-09 Tom Tromey <tom@tromey.com>
5325 * tracepoint.h (class collection_list) <append_exp>: Take a
5327 * tracepoint.c (collection_list::append_exp): Take a std::string.
5328 (encode_actions_1): Update.
5330 2021-01-08 Tom Tromey <tromey@adacore.com>
5332 * parse.c (parse_expression): Add void_context_p parameter. Use
5333 parse_exp_in_context.
5334 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5336 (print_command, call_command): Update.
5337 * expression.h (parse_expression): Add void_context_p parameter.
5339 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5341 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5342 for internalvar components that have a dynamic location.
5344 2021-01-08 Tom de Vries <tdevries@suse.de>
5347 * breakpoint.c (create_exception_master_breakpoint_probe)
5348 (create_exception_master_breakpoint_hook): Factor out
5350 (create_exception_master_breakpoint): ... here. Only try to install
5351 the master exception breakpoint in objfile.debug using the
5352 _Unwind_DebugHook method, if the install using probes in objfile
5355 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5357 * f-lang.c (fortran_value_subarray): Call value_from_component.
5359 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5361 * remote-sim.c: Include memory-map.h.
5362 (gdbsim_target): Define memory_map override.
5363 (gdbsim_target::memory_map): Define.
5365 2021-01-07 Tom Tromey <tromey@adacore.com>
5367 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5369 2021-01-07 Tom Tromey <tromey@adacore.com>
5371 * ada-lang.c (add_component_interval): Start loop using vector's
5374 2021-01-06 Tom Tromey <tromey@adacore.com>
5376 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5378 * valarith.c (fixed_point_binop): Handle multiplication
5379 and division specially.
5380 * valops.c (value_to_gdb_mpq): New function.
5381 (value_cast_to_fixed_point): Use it.
5383 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5385 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5386 Call wnoutrefresh instead of tui_win_info::refresh_window.
5388 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5390 * tui/tui-source.c (tui_source_window::show_line_number):
5391 Redraw second space after line number.
5393 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5396 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5397 Fix source pad size in prefresh.
5398 (tui_source_window_base::show_source_content): Grow source pad
5401 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5403 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5404 (bfin_frame_align): Use align_down.
5406 2021-01-04 Tom de Vries <tdevries@suse.de>
5408 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5409 terminators that do not terminate anything.
5411 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5413 * debug.c (debug_print_depth): New.
5414 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5415 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5416 * infrun.c (start_step_over): Use
5417 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5418 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5419 INFRUN_SCOPED_DEBUG_START_END.
5420 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5422 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5424 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5426 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5428 * utils.c (vfprintf_unfiltered): Print timestamp only when
5429 previous debug output ended with a newline.
5431 2021-01-04 Luis Machado <luis.machado@linaro.org>
5433 Update all users of trad_frame_saved_reg to use the new member
5436 Remote all struct keywords from declarations of trad_frame_saved_reg
5437 types, except on forward declarations.
5439 * aarch64-tdep.c: Update.
5440 * alpha-mdebug-tdep.c: Update.
5441 * alpha-tdep.c: Update.
5442 * arc-tdep.c: Update.
5443 * arm-tdep.c: Update.
5444 * avr-tdep.c: Update.
5445 * cris-tdep.c: Update.
5446 * csky-tdep.c: Update.
5447 * frv-tdep.c: Update.
5448 * hppa-linux-tdep.c: Update.
5449 * hppa-tdep.c: Update.
5450 * hppa-tdep.h: Update.
5451 * lm32-tdep.c: Update.
5452 * m32r-linux-tdep.c: Update.
5453 * m32r-tdep.c: Update.
5454 * m68hc11-tdep.c: Update.
5455 * mips-tdep.c: Update.
5456 * moxie-tdep.c: Update.
5457 * riscv-tdep.c: Update.
5458 * rs6000-tdep.c: Update.
5459 * s390-linux-tdep.c: Update.
5460 * s390-tdep.c: Update.
5461 * score-tdep.c: Update.
5462 * sparc-netbsd-tdep.c: Update.
5463 * sparc-sol2-tdep.c: Update.
5464 * sparc64-fbsd-tdep.c: Update.
5465 * sparc64-netbsd-tdep.c: Update.
5466 * sparc64-obsd-tdep.c: Update.
5467 * sparc64-sol2-tdep.c: Update.
5468 * tilegx-tdep.c: Update.
5469 * v850-tdep.c: Update.
5470 * vax-tdep.c: Update.
5472 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5473 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5475 * trad-frame.c: Update.
5476 Remove TF_REG_* enum.
5477 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5478 a trivially-constructible struct.
5479 (trad_frame_reset_saved_regs): Adjust to use member function.
5480 (trad_frame_value_p): Likewise.
5481 (trad_frame_addr_p): Likewise.
5482 (trad_frame_realreg_p): Likewise.
5483 (trad_frame_value_bytes_p): Likewise.
5484 (trad_frame_set_value): Likewise.
5485 (trad_frame_set_realreg): Likewise.
5486 (trad_frame_set_addr): Likewise.
5487 (trad_frame_set_unknown): Likewise.
5488 (trad_frame_set_value_bytes): Likewise.
5489 (trad_frame_get_prev_register): Likewise.
5490 * trad-frame.h: Update.
5491 (trad_frame_saved_reg_kind): New enum.
5492 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5493 <m_kind, m_reg>: New member fields.
5494 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5495 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5496 <is_addr, is_unknown, is_value_bytes>: New member functions.
5498 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5500 * target-float.c: Fix typos.
5502 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5504 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5506 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5508 * gdbarch.sh: Update copyright year range.
5510 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5512 Update copyright year range in copyright header of all GDB files.
5514 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5516 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5517 to the list of directories to update.
5519 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5521 * top.c (print_gdb_version): Update copyright year.
5523 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5525 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5527 For older changes see ChangeLog-2020.
5533 version-control: never