1 2021-04-28 Tom Tromey <tromey@adacore.com>
3 * ada-exp.y (primary): Use new type for null pointer.
4 * ada-lang.c (ada_type_match): Remove "may_deref"
5 parameter. Handle null pointer.
6 (ada_args_match): Update.
7 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
10 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
12 * NEWS: Mention new commands.
13 * python/python.c (python_ignore_environment): New static global.
14 (show_python_ignore_environment): New function.
15 (set_python_ignore_environment): New function.
16 (python_dont_write_bytecode): New static global.
17 (show_python_dont_write_bytecode): New function.
18 (set_python_dont_write_bytecode): New function.
19 (_initialize_python): Register new commands.
21 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
23 * extension-priv.h (struct extension_language_ops): Rename
24 'finish_initialization' to 'initialize'.
25 * extension.c (finish_ext_lang_initialization): Renamed to...
26 (ext_lang_initialization): ...this, update comment, and updated
27 the calls to reflect the change in struct extension_language_ops.
28 * extension.h (finish_ext_lang_initialization): Renamed to...
29 (ext_lang_initialization): ...this.
30 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
31 (gdbscm_initialize): ...this, update comment at definition.
32 (guile_extension_ops): Update.
33 * main.c (captured_main_1): Update call to
34 finish_ext_lang_initialization.
35 * python/python.c (gdbpy_finish_initialization): Rename to...
36 (gdbpy_initialize): ...this, update comment at definition, and
37 update call to do_finish_initialization.
38 (python_extension_ops): Update.
39 (do_finish_initialization): Rename to...
40 (do_initialize): ...this, and update comment.
42 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
44 * main.c (captured_main_1): Add a call to
45 finish_ext_lang_initialization.
46 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
48 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
50 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
51 (gdbscm_finish_initialization): Add code moved from
53 (_initialize_guile): Move code to gdbscm_finish_initialization.
54 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
56 (_initialize_scm_arch): New function.
57 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
58 into _initialize_scm_block.
59 (_initialize_scm_block): New function.
60 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
61 into _initialize_scm_frame.
62 (_initialize_scm_frame): New function.
63 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
64 into _initialize_scm_objfile.
65 (_initialize_scm_objfile): New function.
66 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
67 code into _initialize_scm_progspace.
68 (_initialize_scm_progspace): New function.
69 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
70 into _initialize_scm_symbol.
71 (_initialize_scm_symbol): New function.
72 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
73 into _initialize_scm_symtab.
74 (_initialize_scm_symtab): New function.
75 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
77 (_initialize_scm_type): New function.
79 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
81 * python/py-arch.c (_initialize_py_arch): New function.
82 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
83 * python/py-block.c (_initialize_py_block): New function.
84 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
85 * python/py-inferior.c (_initialize_py_inferior): New function.
86 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
87 * python/py-objfile.c (_initialize_py_objfile): New function.
88 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
89 * python/py-progspace.c (_initialize_py_progspace): New function.
90 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
91 * python/py-registers.c (_initialize_py_registers): New function.
92 (gdbpy_initialize_registers): Move code to
93 _initialize_py_registers.
94 * python/py-symbol.c (_initialize_py_symbol): New function.
95 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
96 * python/py-symtab.c (_initialize_py_symtab): New function.
97 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
98 * python/py-type.c (_initialize_py_type): New function.
99 (gdbpy_initialize_types): Move code to _initialize_py_type.
100 * python/py-unwind.c (_initialize_py_unwind): New function.
101 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
102 * python/python.c (_initialize_python): Move call to
103 do_start_initialization to gdbpy_finish_initialization.
104 (gdbpy_finish_initialization): Add call to
105 do_start_initialization.
107 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
109 * extension.c (struct scoped_default_signal): New struct.
110 (scoped_default_sigint): New typedef.
111 (finish_ext_lang_initialization): Make use of
112 scoped_default_sigint.
114 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
116 * main.c (captured_main_1): Don't pass argument to gdb_init.
117 * top.c (gdb_init): Remove unused argument, and add header
119 * top.h (gdb_init): Remove argument.
121 2021-04-27 Luis Machado <luis.machado@linaro.org>
123 * psymtab.c (psymbol_functions::dump): Output newline.
125 * symmisc.c (dump_objfile): Likewise.
127 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
128 Simon Marchi <simon.marchi@polymtl.ca>
130 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
131 when attaching the 'auto_load_new_objfile' observer, so
132 other observers can specify it as a dependency.
133 * gdb/auto-load.h (struct token): Declare
134 'auto_load_new_objfile_observer_token' as token to be used
135 for the 'auto_load_new_objfile' observer.
136 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
137 'python_new_objfile' observer depend on 'auto_load_new_objfile'
138 observer, so it gets notified after the latter.
140 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
141 Simon Marchi <simon.marchi@polymtl.ca>
143 * unittests/observable-selftests.c (dependency_test_counters):
145 (observer_token0, observer_token1, observer_token2,
146 observer_token3, observer_token4, observer_token5): New.
147 (struct dependency_observer_data): New struct.
148 (observer_dependency_test_callback): New function.
149 (test_observers): New.
150 (run_dependency_test): New function.
151 (test_dependency): New.
152 (_initialize_observer_selftest): Register dependency test.
154 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
157 * cli/cli-dump.c (dump_binary_file): Check result of
160 2021-04-25 Sergei Trofimovich <siarheit@google.com>
162 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
163 by passing `process_stratum_target*` parameter.
165 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
168 * typeprint.h (struct type_print_options): Add print_in_hex
170 (struct print_offset_data): Add print_in_hex flag, add a
171 constructor accepting a type_print_options* argument.
172 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
173 default value for print_in_hex.
174 (print_offset_data::indentation): Allow more horizontal space.
175 (print_offset_data::print_offset_data): Add ctor.
176 (print_offset_data::maybe_print_hole, print_offset_data::update):
177 Handle the print_in_hex flag.
178 (whatis_exp): Handle 'x' and 'd' flags.
179 (print_offsets_and_sizes_in_hex): Declare.
180 (set_print_offsets_and_sizes_in_hex): Create.
181 (show_print_offsets_and_sizes_in_hex): Create.
182 (_initialize_typeprint): Update help message for the ptype
183 command, register the 'set print type hex' and 'show print type
185 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
186 (c_type_print_base): Construct the print_offset_data
187 object using the type_print_optons parameter.
188 * rust-lang.c (rust_language::print_type): Construct the
189 print_offset_data object using the type_print_optons parameter.
190 * NEWS: Mention the new flags of the ptype command.
192 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
194 * typeprint.h (struct type_print_options): Move before
197 2021-04-25 Joel Brobecker <brobecker@adacore.com>
201 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
203 * observable.c (observer_debug): Change to bool.
205 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
207 * dwarf2/read.c: Add 'unordered_set' include.
208 (dwarf2_base_index_functions::map_symbol_filenames): Replace
209 'visited' hash table with 'qfn_cache' unordered_set. Remove use
210 of per_Bfd->filenames_cache cache, and use function local
211 filenames_cache instead. Reindent.
212 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
214 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
216 * breakpoint.c (iterate_over_bp_locations): Change callback to
217 function view, remove data parameter.
218 * breakpoint.h (iterate_over_bp_locations): Likewise.
219 * record-full.c (record_full_sync_record_breakpoints): Remove
222 2021-04-22 Tom Tromey <tom@tromey.com>
224 * c-typeprint.c (c_type_print_base_struct_union): Use
225 print_spaces_filtered_with_print_options.
227 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
230 * python/py-type.c (typy_range): Check that bounds are constant
231 before accessing them as such.
232 * guile/scm-type.c (gdbscm_type_range): Likewise.
234 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
236 * Makefile.in (COMMON_SFILES): Remove continuations.c.
237 * inferior.c (inferior::add_continuation): New method, adapted
238 from 'add_inferior_continuation'.
239 (inferior::do_all_continuations): New method, adapted from
240 'do_all_inferior_continuations'.
241 (inferior::~inferior): Clear the list of continuations directly.
242 * inferior.h (class inferior) <continuations>: Rename into...
243 <m_continuations>: ...this and make private.
244 * continuations.c: Remove.
245 * continuations.h: Remove.
246 * event-top.c: Don't include "continuations.h".
248 Update the users below.
249 * inf-loop.c (inferior_event_handler)
250 * infcmd.c (attach_command)
251 (notice_new_inferior): Update.
253 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
255 * inferior.h (class inferior) <continuations>: Change the type
256 to be an std::list of std::function's.
257 Update the references and uses below.
258 * continuations.c (struct continuation): Delete.
259 (make_continuation): Delete.
260 (do_my_continuations_1): Delete.
261 (do_my_continuations): Delete.
262 (discard_my_continuations_1): Delete.
263 (discard_my_continuations): Delete.
264 (add_inferior_continuation): Update.
265 (do_all_inferior_continuations): Update.
266 (discard_all_inferior_continuations): Update.
267 * continuations.h (add_inferior_continuation): Update to take
268 an std::function as the parameter.
269 * infcmd.c (struct attach_command_continuation_args): Delete.
270 (attach_command_continuation): Delete.
271 (attach_command_continuation_free_args): Delete.
272 (attach_command): Update.
273 (notice_new_inferior): Update.
275 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
277 * continuations.h: Update the general comment.
278 * inferior.h (class inferior) <continuations>: Update the comment.
279 * interps.c: Do not include "continuations.h".
281 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
283 * continuations.h (do_all_inferior_continuations): Remove the 'err'
284 parameter. Update the references below.
285 * continuations.c (do_my_continuations_1)
286 (do_my_continuations)
287 (do_all_inferior_continuations): Update.
288 * inf-loop.c (inferior_event_handler): Update.
289 * infcmd.c (attach_command_continuation): Update.
291 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
293 * infcmd.c (attach_post_wait): Update the function comment.
295 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
297 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
298 Update the references below.
299 (struct attach_command_continuation_args)
300 (attach_command_continuation)
301 (attach_command_continuation_free_args)
303 (notice_new_inferior): Update to remove the reference to 'args'.
305 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
306 Tom de Vries <tdevries@suse.de>
309 * remote.c (remote_target_is_non_stop_p): New function.
310 * remote.h (remote_target_is_non_stop_p): Declare.
311 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
312 to check non-stopness using notif_state->remote rather current target.
314 2021-04-22 Tom Tromey <tom@tromey.com>
316 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
317 (struct typed_val_int) <val>: Now ULONGEST.
318 (rust_parser::parse_array_type): Remove negative check.
319 (rust_lex_int_test): Change 'value' to ULONGEST.
321 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
323 * arch-utils.c (default_addressable_memory_unit_size): Return a
324 value based on bfd's bits per byte.
326 2021-04-21 Tom Tromey <tom@tromey.com>
328 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
330 (struct dwarf2_per_cu_data): Rearrange.
331 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
333 (struct comp_unit_head): Rearrange.
334 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
336 2021-04-21 Tom de Vries <tdevries@suse.de>
339 * configure.ac: Remove --without-included-regex/--with-included-regex.
340 * config.in: Regenerate.
341 * configure: Regenerate.
342 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
344 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
346 * breakpoint.h (create_breakpoint): Add a new parameter,
348 * breakpoint.c (create_breakpoint): Use the 'force_condition'
349 argument when 'parse_extra' is false to check if the condition
350 is invalid at all of the breakpoint locations.
351 Update the users below.
357 (create_tracepoint_from_upload): Update.
358 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
359 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
360 * python/py-breakpoint.c (bppy_init): Update.
361 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
363 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
365 * breakpoint.c (print_one_breakpoint_location): Display "N" for
366 disabled-by-condition locations on MI-like output.
367 (breakpoint_1): Do not display the disabled-by-condition footnote
368 if the output is MI-like.
370 2021-04-21 Frederic Cambus <fred@statdns.com>
372 * syscalls/update-netbsd.sh: Fix script name display in usage, and
373 update year range in generated copyright notices.
375 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
377 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
380 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
382 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
384 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
386 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
387 (producer_is_icc): Replace use of std::regex with gdb's
390 2021-04-17 Tom Tromey <tom@tromey.com>
393 * dwarf2/read.c (class offset_view): New.
394 (struct symbol_table_slot): Remove.
395 (struct mapped_index) <symbol_table, constant_pool>: Change type.
396 <symbol_name_index, symbol_vec_index>: New methods.
397 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
399 (read_gdb_index_from_buffer): Update.
400 (struct dw2_symtab_iterator) <vec>: Change type.
401 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
402 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
403 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
404 <append_array, append_offset>: New methods.
405 (write_hash_table, add_address_entry, write_gdbindex_1)
406 (write_debug_names): Update.
407 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
409 2021-04-17 Tom Tromey <tom@tromey.com>
411 * dwarf2/index-write.c (write_psymtabs_to_index): Check
414 2021-04-17 Tom Tromey <tom@tromey.com>
416 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
417 from map_matching_symbols. Change parameters.
418 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
419 Rename from map_matching_symbols. Change parameters.
420 * dwarf2/read.c (struct dwarf2_gdb_index)
421 <expand_matching_symbols>: Rename from map_matching_symbols.
423 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
424 Rename from map_matching_symbols. Change parameters.
425 (dwarf2_gdb_index::expand_matching_symbols): Rename from
426 dw2_map_matching_symbols. Change parameters.
427 (dwarf2_gdb_index::expand_matching_symbols): Remove old
429 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
430 map_matching_symbols. Change parameters.
431 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
432 from map_matching_symbols. Change parameters.
433 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
434 map_matching_symbols. Change parameters.
435 * ada-lang.c (map_matching_symbols): New function.
436 (add_nonlocal_symbols): Update.
438 2021-04-17 Tom Tromey <tom@tromey.com>
440 * quick-symbol.h (struct quick_symbol_functions)
441 <expand_symtabs_with_fullname>: Remove.
442 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
444 * psympriv.h (struct psymbol_functions)
445 <expand_symtabs_with_fullname>: Remove.
446 * dwarf2/read.c (struct dwarf2_base_index_functions)
447 <expand_symtabs_with_fullname>: Remove.
448 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
450 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
452 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
455 2021-04-17 Tom Tromey <tom@tromey.com>
457 * symfile-debug.c (objfile::expand_symtabs_for_function):
459 * quick-symbol.h (struct quick_symbol_functions)
460 <expand_symtabs_for_function>: Remove.
461 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
463 * psympriv.h (struct psymbol_functions)
464 <expand_symtabs_for_function>: Remove.
465 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
467 * dwarf2/read.c (struct dwarf2_gdb_index)
468 <expand_symtabs_for_function>: Remove.
469 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
471 (find_slot_in_mapped_hash): Remove.
472 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
473 (dw2_symtab_iter_init): Remove one overload.
474 (dwarf2_gdb_index::expand_symtabs_for_function)
475 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
477 2021-04-17 Tom Tromey <tom@tromey.com>
479 * symfile-debug.c (objfile::map_symtabs_matching_filename):
481 * quick-symbol.h (struct quick_symbol_functions)
482 <map_symtabs_matching_filename>: Remove.
483 * psymtab.c (partial_map_expand_apply)
484 (psymbol_functions::map_symtabs_matching_filename): Remove.
485 * psympriv.h (struct psymbol_functions)
486 <map_symtabs_matching_filename>: Remove.
487 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
489 * dwarf2/read.c (struct dwarf2_base_index_functions)
490 <map_symtabs_matching_filename>: Remove.
491 (dw2_map_expand_apply)
492 (dwarf2_base_index_functions::map_symtabs_matching_filename):
495 2021-04-17 Tom Tromey <tom@tromey.com>
497 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
498 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
500 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
501 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
502 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
503 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
505 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
506 (dwarf2_gdb_index::lookup_symbol)
507 (dwarf2_debug_names_index::lookup_symbol): Remove.
509 2021-04-17 Tom Tromey <tom@tromey.com>
511 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
512 * symmisc.c (maintenance_expand_symtabs): Update.
513 * symfile.c (expand_symtabs_matching): Update.
514 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
516 * quick-symbol.h (struct quick_symbol_functions)
517 <expand_symtabs_matching>: Add 'domain' parameter.
518 * psymtab.c (recursively_search_psymtabs)
519 (psymbol_functions::expand_symtabs_matching): Add 'domain'
521 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
522 Add 'domain' parameter.
523 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
525 * linespec.c (iterate_over_all_matching_symtabs): Update.
526 * dwarf2/read.c (struct dwarf2_gdb_index)
527 <expand_symtabs_matching>: Add 'domain' parameter.
528 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
530 (dw2_expand_symtabs_matching)
531 (dwarf2_gdb_index::expand_symtabs_matching)
532 (dw2_debug_names_iterator)
533 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
536 2021-04-17 Tom Tromey <tom@tromey.com>
538 * symtab.c (global_symbol_searcher::expand_symtabs)
539 (default_collect_symbol_completion_matches_break_on): Update.
540 * symmisc.c (maintenance_expand_symtabs): Update.
541 * symfile.h (expand_symtabs_matching): Add search_flags
543 * symfile.c (expand_symtabs_matching): Add search_flags
545 * symfile-debug.c (objfile::expand_symtabs_matching): Add
546 search_flags parameter.
547 * quick-symbol.h (struct quick_symbol_functions)
548 <expand_symtabs_matching>: Add search_flags parameter.
549 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
550 * psymtab.c (recursively_search_psymtabs)
551 (psymbol_functions::expand_symtabs_matching): Add search_flags
553 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
554 Add search_flags parameter.
555 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
556 search_flags parameter.
557 * linespec.c (iterate_over_all_matching_symtabs): Update.
558 * dwarf2/read.c (struct dwarf2_gdb_index)
559 <expand_symtabs_matching>: Add search_flags parameter.
560 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
561 search_flags parameter.
562 (dw2_map_matching_symbols): Update.
563 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
564 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
566 (dw2_debug_names_iterator): Change block_index to search flags.
567 <m_block_index>: Likewise.
568 (dw2_debug_names_iterator::next)
569 (dwarf2_debug_names_index::lookup_symbol)
570 (dwarf2_debug_names_index::expand_symtabs_for_function)
571 (dwarf2_debug_names_index::map_matching_symbols)
572 (dwarf2_debug_names_index::map_matching_symbols): Update.
573 (dwarf2_debug_names_index::expand_symtabs_matching): Add
574 search_flags parameter.
575 * ada-lang.c (ada_add_global_exceptions)
576 (collect_symbol_completion_matches): Update.
578 2021-04-17 Tom Tromey <tom@tromey.com>
580 * symtab.c (default_collect_symbol_completion_matches_break_on):
582 * symfile.h (expand_symtabs_matching): Return bool.
583 * symfile.c (expand_symtabs_matching): Return bool.
584 * symfile-debug.c (objfile::expand_symtabs_matching): Return
586 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
587 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
589 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
591 * psympriv.h (struct psymbol_functions)
592 <expand_symtabs_matching>: Return bool.
593 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
595 * dwarf2/read.c (struct dwarf2_gdb_index)
596 <expand_symtabs_matching>: Return bool.
597 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
599 (dw2_expand_symtabs_matching_symbol): Return bool.
600 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
601 (dw2_expand_symtabs_matching)
602 (dwarf2_gdb_index::expand_symtabs_matching)
603 (dwarf2_debug_names_index::expand_symtabs_matching)
604 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
606 2021-04-17 Tom Tromey <tom@tromey.com>
608 * quick-symbol.h (enum block_search_flag_values): New.
609 (block_search_flags): New enum flags type.
611 2021-04-16 Tom Tromey <tom@tromey.com>
613 * rust-parse.c: New file.
614 * rust-exp.y: Remove.
615 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
616 (SFILES): Remove rust-exp.y.
617 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
619 2021-04-16 Luis Machado <luis.machado@linaro.org>
621 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
623 2021-04-15 John Baldwin <jhb@FreeBSD.org>
625 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
628 2021-04-15 Tom Tromey <tromey@adacore.com>
630 * ada-valprint.c (ada_value_print_array): Handle optimized-out
633 2021-04-15 Tom Tromey <tromey@adacore.com>
635 * printcmd.c (print_variable_and_value): Use
636 common_val_print_checked.
638 2021-04-15 Tom Tromey <tromey@adacore.com>
640 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
641 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
643 * p-exp.y (variable): Update.
644 * m2-exp.y (variable): Update.
645 * go-exp.y (variable): Update.
646 * expprint.c (dump_for_expression): New overload.
647 * expop.h (check_objfile): New overload.
648 (check_constant): New overload.
649 (class var_value_operation): Use block_symbol.
650 <get_symbol>: Rewrite.
651 * eval.c (var_value_operation::evaluate)
652 (var_value_operation::evaluate_funcall)
653 (var_value_operation::evaluate_for_address)
654 (var_value_operation::evaluate_for_address)
655 (var_value_operation::evaluate_with_coercion)
656 (var_value_operation::evaluate_for_sizeof)
657 (var_value_operation::evaluate_for_cast): Update.
658 * d-exp.y (PrimaryExpression): Update.
659 * c-exp.y (variable): Update.
660 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
661 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
662 (ada_var_value_operation::evaluate)
663 (ada_var_value_operation::resolve)
664 (ada_funcall_operation::resolve): Update.
665 * ada-exp.y (write_var_from_sym, write_object_renaming)
666 (write_ambiguous_var, write_var_or_type, write_name_assoc)
667 (maybe_overload): Update.
668 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
670 2021-04-15 Tom Tromey <tom@tromey.com>
671 Andrew Burgess <andrew.burgess@embecosm.com>
674 * main.c (captured_main_1): Call check_quiet_mode.
675 * top.c (startup_quiet): New global.
676 (check_quiet_mode): New function.
677 (show_startup_quiet): New function.
678 (init_main): Register new command.
679 * top.h (check_quiet_mode): Declare.
681 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
684 * NEWS: Mention new early init files and command line options.
685 * config.in: Regenerate.
686 * configure: Regenerate.
687 * configure.ac: Define GDBEARLYINIT.
688 * main.c (get_earlyinit_files): New function.
689 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
690 CMDARG_EARLYINIT_COMMAND.
691 (captured_main_1): Add support for new command line flags, and for
692 processing startup files.
693 (print_gdb_help): Include startup files in the output.
695 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
697 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
698 (relocate_file_path_maybe_in_datadir): ...this.
699 (class gdb_initfile_finder): New class.
700 (get_init_files): Now uses gdb_initfile_finder.
701 (print_gdb_help): Print 'None found' when there are no init files.
703 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
705 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
706 corresponding child of the abstract DIE when iterating the
707 children of the concrete DIE.
709 2021-04-13 Tom de Vries <tdevries@suse.de>
711 * ui-style.c (read_semi_number, extended_color): Change idx parameter
714 2021-04-13 Luis Machado <luis.machado@linaro.org>
716 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
719 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
721 * rs6000-tdep.c: Add support for single-stepping of
722 prefixed instructions.
724 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
727 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
728 handle the addpcis/lnia instruction.
730 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
732 * MAINTAINERS (Write After Approval): Add myself.
734 2021-4-12 Carl Love <cel@us.ibm.com>
736 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
737 (rs6000_builtin_type_vec128): Add append_composite_type_field for
740 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
742 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
743 * nat/windows-nat.h: Likewise.
745 2021-04-10 Eli Zaretskii <eliz@gnu.org>
747 * windows-nat.c (windows_nat::handle_load_dll): Call
748 windows_add_dll if get_image_name failed to glean the name of the
749 DLL by using the lpImageName pointer.
750 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
751 (windows_add_dll): Now does what windows_add_all_dlls did before,
752 but also accepts an argument LOAD_ADDR, which, if non-NULL,
753 specifies the address where the DLL was loaded into the inferior,
754 and looks for the single DLL loaded at that address.
756 2021-04-09 Luis Machado <luis.machado@linaro.org>
758 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
760 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
762 * darwin-nat.c (darwin_nat_target::resume): Remove status
765 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
767 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
768 prologue end for Intel compilers.
769 * amd64-tdep.c (amd64_skip_prologue): Likewise.
770 * producer.c (producer_is_icc_ge_19): New function.
771 * producer.h (producer_is_icc_ge_19): New declaration.
773 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
775 * producer.c: (producer_is_icc): Update for new version scheme.
776 (producer_parsing_tests): Update names and expected results.
777 * producer.h: (producer_is_icc): Update comment accordingly.
779 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
781 * target.h (struct target_ops) <follow_fork>: Return void.
782 (target_follow_fork): Likewise.
783 * target.c (default_follow_fork): Likewise.
784 (target_follow_fork): Likewise.
785 * infrun.c (follow_fork_inferior): Adjust.
786 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
787 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
788 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
789 * linux-nat.c (linux_nat_target::follow_fork): Return void.
790 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
791 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
792 * remote.c (class remote_target) <follow_fork>: Likewise.
793 (remote_target::follow_fork): Likewise.
794 * target-delegates.c: Re-generate.
796 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
798 * ctfread.c (fetch_tid_type): New function, use throughout file.
799 (read_forward_type): New function.
800 (read_type_record): Call read_forward_type.
802 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
804 * f-exp.h (class fortran_structop_operation): New class.
805 * f-exp.y (exp): Create fortran_structop_operation instead of the
806 generic structop_operation.
807 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
808 expression as EVAL_NORMAL if the result type was dynamic so we can
809 extract the actual array bounds.
810 (fortran_structop_operation::evaluate): New function.
812 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
814 * eval.c (evaluate_subexp_standard): Remove
815 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
818 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
820 * valops.c (value_cast): Call value_deeply_equal before performing
823 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
825 * gdbtypes.c (types_equal): Move pointer equality check earlier in
828 2021-04-07 Caroline Tice <cmtice@google.com>
830 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
831 the search paths used resolve relative location of .dwo file.
833 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
835 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
837 (dwarf2_section_info::get_file_name): Add an assert.
838 (dwarf2_section_info::read_string): Display a minimal, sane error
839 when the dwarf2_section_info is not associated with a bfd section.
841 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
843 * top.c (staged_gdb_datadir): Update comment.
844 (set_gdb_datadir): Copy the value of gdb_datadir back into
846 (init_main): Initialise staged_gdb_datadir.
848 2021-04-06 Tom de Vries <tdevries@suse.de>
851 * infcmd.c (prepare_one_step): Using inline frame info to narrow
854 2021-04-06 Tom de Vries <tdevries@suse.de>
857 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
860 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
862 * avr-tdep.c (avr_frame_unwind_cache): Use
863 trad_frame_saved_reg::is_addr.
865 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
867 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
870 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
872 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
873 objfile parameter for objfile_per_bfd_storage, adjust callers.
874 (struct standard_psymtab) <standard_psymtab>: Likewise.
875 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
876 * psymtab.c (partial_symtab::partial_symtab): Likewise.
877 * ctfread.c (struct ctf_psymtab): Likewise.
878 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
879 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
880 (dwarf2_create_include_psymtab): Likewise.
881 * objfiles.h (struct objfile_per_bfd_storage)
882 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
883 <get_bfd>: New method.
885 * objfiles.c (get_objfile_bfd_data): Adjust.
887 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
889 * psymtab.c (partial_symtab::partial_symtab): Change
890 last_objfile_name to be an std::string.
891 * symfile.c (allocate_symtab): Likewise.
893 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
895 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
897 (struct objfile) <intern>: Use
898 objfile::objfile_per_bfd_storage::intern.
900 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
902 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
903 with type::is_flag_enum.
905 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
907 * gdbtypes.h (struct type) <is_flag_enum,
908 set_is_flag_enum>: New methods.
909 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
910 write call sites to use type::set_is_flag_enum.
912 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
914 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
915 with type::is_declared_class.
917 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
919 * gdbtypes.h (struct type) <is_declared_class,
920 set_is_declared_class>: New methods.
921 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
922 write call sites to use type::set_is_declared_class.
924 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
926 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
927 to avoid deprecation warnings.
929 2021-04-01 Martin Liska <mliska@suse.cz>
931 * cp-name-parser.y: Use startswith instead of strncmp.
932 * m2-exp.y: Likewise.
933 * macroexp.c (substitute_args): Likewise.
934 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
935 * rust-exp.y: Likewise.
937 2021-03-31 Tom Tromey <tom@tromey.com>
939 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
940 with dw2_map_matching_symbols.
941 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
942 dw2_expand_symtabs_matching.
944 2021-03-31 Tom Tromey <tromey@adacore.com>
946 * dwarf2/stringify.h: Fix typo.
948 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
951 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
952 with objfiles using READNOW.
954 2021-03-29 Tom Tromey <tromey@adacore.com>
956 * top.c (check_frame_language_change): Update.
957 * language.c (language_info): Remove parameter.
958 * language.h (language_info): Remove parameter.
960 2021-03-29 Luis Machado <luis.machado@linaro.org>
962 * compile/compile.c (get_args): Don't add empty argv entries.
964 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
967 * procfs.c (procfs_target::attach): Define inf.
969 (procfs_target::create_inferior): Likewise.
971 2021-03-28 Tom Tromey <tom@tromey.com>
973 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
974 (elf_symfile_read): Simplify.
975 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
976 (make_lazy_dwarf_reader): New function.
977 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
978 (dwarf2_initialize_objfile): Return void. Remove index_kind
979 parameter. Push on 'qf' list.
980 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
981 type. Remove 'index_kind' parameter.
982 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
984 2021-03-27 Tom Tromey <tom@tromey.com>
986 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
988 2021-03-27 Tom Tromey <tom@tromey.com>
990 * elfread.c (elf_symfile_read): Don't clear 'qf'.
992 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
994 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
997 2021-03-26 Tom Tromey <tom@tromey.com>
999 * symtab.c (struct output_source_filename_data): Add 'output'
1000 method and operator().
1001 (output_source_filename_data::output): Rename from
1002 output_source_filename.
1003 (output_partial_symbol_filename): Remove.
1004 (info_sources_command): Update.
1005 (struct add_partial_filename_data): Add operator().
1006 (add_partial_filename_data::operator()): Rename from
1007 maybe_add_partial_symtab_filename.
1008 (make_source_files_completion_list): Update.
1009 * symfile.c (quick_symbol_functions): Update.
1010 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1011 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1012 'need_fullname'. Remove 'data' parameter.
1013 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1014 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1015 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1016 Change type of 'fun' and 'need_fullname'. Remove 'data'
1018 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1019 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1020 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1022 (mi_cmd_file_list_exec_source_files): Update.
1024 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1026 2021-03-26 Tom Tromey <tom@tromey.com>
1028 * ada-lang.c (struct match_data): Add operator().
1029 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1030 (callback): Remove 'callback'.
1032 2021-03-26 Tom Tromey <tom@tromey.com>
1034 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1035 call make_ignore_params once.
1037 2021-03-26 Tom Tromey <tom@tromey.com>
1039 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1042 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1043 Pedro Alves <pedro@palves.net>
1045 * async-event.c: Include "infrun.h".
1046 (async_event_handler_marked): New.
1047 * async-event.h (async_event_handler_marked): Declare.
1048 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1049 inferior before calling target method. Don't commit-resumed if
1050 target_has_pending_events is true.
1051 * remote.c (remote_target::has_pending_events): New.
1052 * target-delegates.c: Regenerate.
1053 * target.c (target_has_pending_events): New.
1054 * target.h (target_ops::has_pending_events): New target method.
1055 (target_has_pending_events): New.
1057 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1058 Pedro Alves <pedro@palves.net>
1060 * infcmd.c (run_command_1, attach_command, detach_command)
1061 (interrupt_target_1): Use scoped_disable_commit_resumed.
1062 * infrun.c (do_target_resume): Remove
1063 target_commit_resume call.
1064 (commit_resume_all_targets): Remove.
1065 (maybe_set_commit_resumed_all_targets): New.
1066 (maybe_call_commit_resumed_all_targets): New.
1067 (enable_commit_resumed): New.
1068 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1069 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1070 (scoped_disable_commit_resumed::reset)
1071 (scoped_disable_commit_resumed::reset_and_commit)
1072 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1073 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1075 (proceed): Use scoped_disable_commit_resumed and
1076 maybe_call_commit_resumed_all_targets.
1077 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1078 * infrun.h (struct scoped_disable_commit_resumed): New.
1079 (maybe_call_commit_resumed_all_process_targets): New.
1080 (struct scoped_enable_commit_resumed): New.
1081 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1082 * process-stratum-target.h (class process_stratum_target):
1083 <commit_resumed_state>: New.
1084 * record-full.c (record_full_wait_1): Change commit_resumed_state
1085 around calling commit_resumed.
1086 * remote.c (class remote_target) <commit_resume>: Rename to...
1087 <commit_resumed>: ... this.
1088 (struct stop_reply): Move up.
1089 (remote_target::commit_resume): Rename to...
1090 (remote_target::commit_resumed): ... this. Check if there is any
1091 thread pending vCont resume.
1092 (remote_target::remote_stop_ns): Generate stop replies for resumed
1093 but pending vCont threads.
1094 (remote_target::wait_ns): Add gdb_assert.
1095 * target-delegates.c: Regenerate.
1096 * target.c (target_wait, target_resume): Assert that the current
1097 process_stratum target isn't in commit-resumed state.
1098 (defer_target_commit_resume): Remove.
1099 (target_commit_resume): Remove.
1100 (target_commit_resumed): New.
1101 (make_scoped_defer_target_commit_resume): Remove.
1102 (target_stop): Assert that the current process_stratum target
1103 isn't in commit-resumed state.
1104 * target.h (struct target_ops) <commit_resume>: Rename to ...
1105 <commit_resumed>: ... this.
1106 (target_commit_resume): Remove.
1107 (target_commit_resumed): New.
1108 (make_scoped_defer_target_commit_resume): Remove.
1109 * top.c (wait_sync_command_done): Use
1110 scoped_enable_commit_resumed.
1112 2021-03-26 Pedro Alves <pedro@palves.net>
1114 * target.c (target_always_non_stop_p): Also check whether the
1117 2021-03-26 Tom Tromey <tom@tromey.com>
1119 * dwarf2/read.c (dwarf2_read_debug_names)
1120 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1121 (dw2_debug_names_iterator::next, create_type_unit_group):
1124 2021-03-25 Pedro Alves <pedro@palves.net>
1126 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1127 around setting the breakpoint.
1129 2021-03-25 Pedro Alves <pedro@palves.net>
1132 (remote_target::check_pending_events_prevent_wildcard_vcont):
1133 Check whether the event's ptid is not null_ptid before looking up
1134 the corresponding inferior.
1136 2021-03-24 Changbin Du <changbin.du@gmail.com>
1138 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1141 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1143 * target.h (current_top_target): Remove, make callers use the
1144 current inferior instead.
1145 * target.c (current_top_target): Remove.
1147 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1149 * target.h (target_shortname): Change to function declaration.
1150 (target_longname): Likewise.
1151 (target_attach_no_wait): Likewise.
1152 (target_post_attach): Likewise.
1153 (target_prepare_to_store): Likewise.
1154 (target_supports_enable_disable_tracepoint): Likewise.
1155 (target_supports_string_tracing): Likewise.
1156 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1157 (target_supports_dumpcore): Likewise.
1158 (target_dumpcore): Likewise.
1159 (target_can_run_breakpoint_commands): Likewise.
1160 (target_files_info): Likewise.
1161 (target_post_startup_inferior): Likewise.
1162 (target_insert_fork_catchpoint): Likewise.
1163 (target_remove_fork_catchpoint): Likewise.
1164 (target_insert_vfork_catchpoint): Likewise.
1165 (target_remove_vfork_catchpoint): Likewise.
1166 (target_insert_exec_catchpoint): Likewise.
1167 (target_remove_exec_catchpoint): Likewise.
1168 (target_set_syscall_catchpoint): Likewise.
1169 (target_rcmd): Likewise.
1170 (target_can_lock_scheduler): Likewise.
1171 (target_can_async_p): Likewise.
1172 (target_is_async_p): Likewise.
1173 (target_execution_direction): Likewise.
1174 (target_extra_thread_info): Likewise.
1175 (target_pid_to_exec_file): Likewise.
1176 (target_thread_architecture): Likewise.
1177 (target_find_memory_regions): Likewise.
1178 (target_make_corefile_notes): Likewise.
1179 (target_get_bookmark): Likewise.
1180 (target_goto_bookmark): Likewise.
1181 (target_stopped_by_watchpoint): Likewise.
1182 (target_stopped_by_sw_breakpoint): Likewise.
1183 (target_supports_stopped_by_sw_breakpoint): Likewise.
1184 (target_stopped_by_hw_breakpoint): Likewise.
1185 (target_supports_stopped_by_hw_breakpoint): Likewise.
1186 (target_have_steppable_watchpoint): Likewise.
1187 (target_can_use_hardware_watchpoint): Likewise.
1188 (target_region_ok_for_hw_watchpoint): Likewise.
1189 (target_can_do_single_step): Likewise.
1190 (target_insert_watchpoint): Likewise.
1191 (target_remove_watchpoint): Likewise.
1192 (target_insert_hw_breakpoint): Likewise.
1193 (target_remove_hw_breakpoint): Likewise.
1194 (target_can_accel_watchpoint_condition): Likewise.
1195 (target_can_execute_reverse): Likewise.
1196 (target_get_ada_task_ptid): Likewise.
1197 (target_filesystem_is_local): Likewise.
1198 (target_trace_init): Likewise.
1199 (target_download_tracepoint): Likewise.
1200 (target_can_download_tracepoint): Likewise.
1201 (target_download_trace_state_variable): Likewise.
1202 (target_enable_tracepoint): Likewise.
1203 (target_disable_tracepoint): Likewise.
1204 (target_trace_start): Likewise.
1205 (target_trace_set_readonly_regions): Likewise.
1206 (target_get_trace_status): Likewise.
1207 (target_get_tracepoint_status): Likewise.
1208 (target_trace_stop): Likewise.
1209 (target_trace_find): Likewise.
1210 (target_get_trace_state_variable_value): Likewise.
1211 (target_save_trace_data): Likewise.
1212 (target_upload_tracepoints): Likewise.
1213 (target_upload_trace_state_variables): Likewise.
1214 (target_get_raw_trace_data): Likewise.
1215 (target_get_min_fast_tracepoint_insn_len): Likewise.
1216 (target_set_disconnected_tracing): Likewise.
1217 (target_set_circular_trace_buffer): Likewise.
1218 (target_set_trace_buffer_size): Likewise.
1219 (target_set_trace_notes): Likewise.
1220 (target_get_tib_address): Likewise.
1221 (target_set_permissions): Likewise.
1222 (target_static_tracepoint_marker_at): Likewise.
1223 (target_static_tracepoint_markers_by_strid): Likewise.
1224 (target_traceframe_info): Likewise.
1225 (target_use_agent): Likewise.
1226 (target_can_use_agent): Likewise.
1227 (target_augmented_libraries_svr4_read): Likewise.
1228 (target_log_command): Likewise.
1229 * target.c (target_shortname): New.
1230 (target_longname): New.
1231 (target_attach_no_wait): New.
1232 (target_post_attach): New.
1233 (target_prepare_to_store): New.
1234 (target_supports_enable_disable_tracepoint): New.
1235 (target_supports_string_tracing): New.
1236 (target_supports_evaluation_of_breakpoint_conditions): New.
1237 (target_supports_dumpcore): New.
1238 (target_dumpcore): New.
1239 (target_can_run_breakpoint_commands): New.
1240 (target_files_info): New.
1241 (target_post_startup_inferior): New.
1242 (target_insert_fork_catchpoint): New.
1243 (target_remove_fork_catchpoint): New.
1244 (target_insert_vfork_catchpoint): New.
1245 (target_remove_vfork_catchpoint): New.
1246 (target_insert_exec_catchpoint): New.
1247 (target_remove_exec_catchpoint): New.
1248 (target_set_syscall_catchpoint): New.
1250 (target_can_lock_scheduler): New.
1251 (target_can_async_p): New.
1252 (target_is_async_p): New.
1253 (target_execution_direction): New.
1254 (target_extra_thread_info): New.
1255 (target_pid_to_exec_file): New.
1256 (target_thread_architecture): New.
1257 (target_find_memory_regions): New.
1258 (target_make_corefile_notes): New.
1259 (target_get_bookmark): New.
1260 (target_goto_bookmark): New.
1261 (target_stopped_by_watchpoint): New.
1262 (target_stopped_by_sw_breakpoint): New.
1263 (target_supports_stopped_by_sw_breakpoint): New.
1264 (target_stopped_by_hw_breakpoint): New.
1265 (target_supports_stopped_by_hw_breakpoint): New.
1266 (target_have_steppable_watchpoint): New.
1267 (target_can_use_hardware_watchpoint): New.
1268 (target_region_ok_for_hw_watchpoint): New.
1269 (target_can_do_single_step): New.
1270 (target_insert_watchpoint): New.
1271 (target_remove_watchpoint): New.
1272 (target_insert_hw_breakpoint): New.
1273 (target_remove_hw_breakpoint): New.
1274 (target_can_accel_watchpoint_condition): New.
1275 (target_can_execute_reverse): New.
1276 (target_get_ada_task_ptid): New.
1277 (target_filesystem_is_local): New.
1278 (target_trace_init): New.
1279 (target_download_tracepoint): New.
1280 (target_can_download_tracepoint): New.
1281 (target_download_trace_state_variable): New.
1282 (target_enable_tracepoint): New.
1283 (target_disable_tracepoint): New.
1284 (target_trace_start): New.
1285 (target_trace_set_readonly_regions): New.
1286 (target_get_trace_status): New.
1287 (target_get_tracepoint_status): New.
1288 (target_trace_stop): New.
1289 (target_trace_find): New.
1290 (target_get_trace_state_variable_value): New.
1291 (target_save_trace_data): New.
1292 (target_upload_tracepoints): New.
1293 (target_upload_trace_state_variables): New.
1294 (target_get_raw_trace_data): New.
1295 (target_get_min_fast_tracepoint_insn_len): New.
1296 (target_set_disconnected_tracing): New.
1297 (target_set_circular_trace_buffer): New.
1298 (target_set_trace_buffer_size): New.
1299 (target_set_trace_notes): New.
1300 (target_get_tib_address): New.
1301 (target_set_permissions): New.
1302 (target_static_tracepoint_marker_at): New.
1303 (target_static_tracepoint_markers_by_strid): New.
1304 (target_traceframe_info): New.
1305 (target_use_agent): New.
1306 (target_can_use_agent): New.
1307 (target_augmented_libraries_svr4_read): New.
1308 (target_log_command): New.
1309 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1310 * infrun.c (set_schedlock_func): Adjust.
1311 * mi/mi-main.c (exec_reverse_continue): Adjust.
1312 * reverse.c (exec_reverse_once): Adjust.
1313 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1314 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1315 * remote-sim.c (gdbsim_target::detach): Adjust.
1316 (gdbsim_target::files_info): Adjust.
1318 2021-03-24 Tom Tromey <tom@tromey.com>
1320 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1321 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1322 (check_match, dw2_expand_symtabs_matching)
1323 (dwarf2_debug_names_index::map_matching_symbols)
1324 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1326 2021-03-24 Keith Seitz <keiths@redhat.com>
1328 * compile/compile-cplus-types.c
1329 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1332 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1334 * gdbarch.sh (gdbarch_data_registry): Make static.
1335 * gdbarch.c: Re-generate.
1337 2021-03-24 Luis Machado <luis.machado@linaro.org>
1339 * NEWS: Mention memory tagging changes.
1341 2021-03-24 Luis Machado <luis.machado@linaro.org>
1343 * printcmd.c (decode_format): Handle the 'm' modifier.
1344 (do_examine): Display allocation tags when required/supported.
1345 (should_validate_memtags): New function.
1346 (print_command_1): Display memory tag mismatches.
1347 * valprint.c (show_memory_tag_violations): New function.
1348 (value_print_option_defs): Add new option "memory-tag-violations".
1349 (user_print_options) <memory_tag_violations>: Initialize to 1.
1350 * valprint.h (struct format_data) <print_tags>: New field.
1351 (value_print_options) <memory_tag_violations>: New field.
1353 2021-03-24 Luis Machado <luis.machado@linaro.org>
1355 * printcmd.c: Include gdbsupport/rsp-low.h.
1356 (memory_tag_list): New static global.
1357 (process_print_command_args): Factored out of
1359 (print_command_1): Use process_print_command_args.
1360 (show_addr_not_tagged, show_memory_tagging_unsupported)
1361 (memory_tag_command, memory_tag_print_tag_command)
1362 (memory_tag_print_logical_tag_command)
1363 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1364 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1365 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1367 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1369 2021-03-24 Luis Machado <luis.machado@linaro.org>
1371 * aarch64-linux-tdep.c
1372 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1373 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1375 2021-03-24 Luis Machado <luis.machado@linaro.org>
1377 * aarch64-linux-tdep.c
1378 (aarch64_linux_report_signal_info): New function.
1379 (aarch64_linux_init_abi): Register
1380 aarch64_linux_report_signal_info as the report_signal_info hook.
1381 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1382 (SEGV_MTESERR): Define.
1384 2021-03-24 Luis Machado <luis.machado@linaro.org>
1386 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1387 (aarch64_linux_ltag_tests): New function.
1388 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1390 2021-03-24 Luis Machado <luis.machado@linaro.org>
1392 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1393 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1394 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1395 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1397 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1398 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1399 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1400 (aarch64_linux_get_ltag): New functions.
1401 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1402 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1403 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1404 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1406 2021-03-24 Luis Machado <luis.machado@linaro.org>
1408 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1410 (struct smaps_data): New struct.
1411 (decode_vmflags): Handle the 'mt' flag.
1412 (parse_smaps_data): New function, refactored from
1413 linux_find_memory_regions_full.
1414 (linux_address_in_memtag_page): New function.
1415 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1416 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1418 2021-03-24 Luis Machado <luis.machado@linaro.org>
1420 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1421 instead of char arrays.
1423 2021-03-24 Luis Machado <luis.machado@linaro.org>
1425 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1426 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1427 nat/aarch64-mte-linux-ptrace.h.
1428 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1429 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1431 <fetch_memtags>: New method override.
1432 <store_memtags>: New method override.
1433 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1434 (aarch64_linux_nat_target::fetch_memtags): New method.
1435 (aarch64_linux_nat_target::store_memtags): New method.
1436 * arch/aarch64-mte-linux.c: New file.
1437 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1438 (AARCH64_MTE_GRANULE_SIZE): Define.
1439 (aarch64_memtag_type): New enum.
1440 (aarch64_mte_get_tag_granules): New prototype.
1441 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1442 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1443 * nat/aarch64-mte-linux-ptrace.c: New file.
1444 * nat/aarch64-mte-linux-ptrace.h: New file.
1446 2021-03-24 Luis Machado <luis.machado@linaro.org>
1448 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1449 * nat/aarch64-mte-linux-ptrace.h: New file.
1451 2021-03-24 Luis Machado <luis.machado@linaro.org>
1453 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1454 (store_mteregs_to_thread): New function.
1455 (aarch64_linux_nat_target::fetch_registers): Update to call
1456 fetch_mteregs_from_thread.
1457 (aarch64_linux_nat_target::store_registers): Update to call
1458 store_mteregs_to_thread.
1459 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1460 (aarch64_cannot_store_register): Handle MTE registers.
1461 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1462 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1463 <has_mte>: New method.
1464 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1466 2021-03-24 Luis Machado <luis.machado@linaro.org>
1468 * aarch64-linux-nat.c
1469 (aarch64_linux_nat_target::read_description): Take MTE flag into
1471 Slight refactor to hwcap flag checking.
1472 * aarch64-linux-tdep.c
1473 (aarch64_linux_core_read_description): Likewise.
1474 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1476 (aarch64_read_description): Add mte_p parameter and update to use it.
1477 Update the documentation.
1478 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1479 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1480 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1481 (aarch64_create_target_description): Add mte_p parameter and update
1483 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1485 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1486 * features/aarch64-mte.c: New file, generated.
1487 * features/aarch64-mte.xml: New file.
1489 2021-03-24 Luis Machado <luis.machado@linaro.org>
1491 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1492 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1493 * aarch64-linux-tdep.c: Likewise
1494 * arch/aarch64-mte-linux.h: New file.
1496 2021-03-24 Luis Machado <luis.machado@linaro.org>
1498 * remote: Include gdbsupport/selftest.h.
1499 (test_memory_tagging_functions): New function.
1500 (_initialize_remote): Register test_memory_tagging_functions.
1502 2021-03-24 Luis Machado <luis.machado@linaro.org>
1504 * remote.c (PACKET_memory_tagging_feature): New enum.
1505 (remote_memory_tagging_p): New function.
1506 (remote_protocol_features): New "memory-tagging" entry.
1507 (remote_target::remote_query_supported): Handle memory tagging
1509 (remote_target::supports_memory_tagging): Implement.
1510 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1511 (create_store_memtags_request): New functions.
1512 (remote_target::fetch_memtags): Implement.
1513 (remote_target::store_memtags): Implement.
1514 (_initialize_remote): Add new "memory-tagging-feature"
1517 2021-03-24 Luis Machado <luis.machado@linaro.org>
1519 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1520 (default_memtag_matches_p, default_set_memtags)
1521 (default_get_memtag): New functions.
1522 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1523 (default_memtag_matches_p, default_set_memtags)
1524 (default_get_memtag): New prototypes.
1525 * gdbarch.c: Regenerate.
1526 * gdbarch.h: Regenerate.
1527 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1528 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1529 (enum memtag_type): New enum.
1531 2021-03-24 Luis Machado <luis.machado@linaro.org>
1533 * remote.c (remote_target) <supports_memory_tagging>: New method
1535 <fetch_memtags>: New method override.
1536 <store_memtags>: New method override.
1537 (remote_target::supports_memory_tagging): New method.
1538 (remote_target::fetch_memtags): New method.
1539 (remote_target::store_memtags): New method.
1540 * target-delegates.c: Regenerate.
1541 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1543 <fetch_memtags>: New virtual method.
1544 <store_memtags>: New virtual method.
1545 (target_supports_memory_tagging): Define.
1546 (target_fetch_memtags): Define.
1547 (target_store_memtags): Define.
1548 * target-debug.h (target_debug_print_size_t)
1549 (target_debug_print_const_gdb_byte_vector_r)
1550 (target_debug_print_gdb_byte_vector_r): New functions.
1552 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1554 * target.h (target_longname): Remove.
1556 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1558 * target.h (target_is_pushed): Remove, update callers to use
1559 inferior::target_is_pushed instead.
1560 * target.c (target_is_pushed): Remove.
1562 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1564 * target.h (push_target): Remove, update callers to use
1565 inferior::push_target.
1566 * target.c (push_target): Remove.
1567 * inferior.h (class inferior) <push_target>: New overload.
1569 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1571 * target.h (unpush_target): Remove, update all callers
1572 to use `inferior::unpush_target` instead.
1573 (struct target_unpusher) <operator()>: Just declare.
1574 * target.c (unpush_target): Remove.
1575 (target_unpusher::operator()): New.
1577 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1579 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1581 (process_full_comp_unit): Validate the top-level tag before
1582 processing the first DIE.
1583 (read_func_scope): Ensure we have a valid builder.
1585 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1587 * objc-lang.c (objc_demangle): Renamed to
1588 objc_language::demangle_symbol, and moved later in the file.
1589 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1591 (objc_language::demangle_symbol): Defined outside of class
1592 declaration. The definition is the old objc_demangle with NULL
1593 changed to nullptr, and if conditions relating to nullptr pointers
1594 or null character checks made explicit.
1595 * objc-lang.h (objc_demangle): Delete declaration.
1597 2021-03-22 Martin Liska <mliska@suse.cz>
1599 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1600 (_initialize_arm_tdep): Likewise.
1602 2021-03-20 Tom Tromey <tom@tromey.com>
1604 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1605 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1606 * psymtab.h (make_psymbol_functions): Don't declare.
1607 * psymtab.c (make_psymbol_functions): Remove.
1608 (maintenance_print_psymbols): Update.
1609 * psympriv.h (struct psymbol_functions): Add no-argument
1611 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1612 <partial_symtabs>: Remove.
1613 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1614 * elfread.c (read_partial_symbols): Update.
1615 (elf_symfile_read): Remove check for existing partial symbols.
1617 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1619 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1621 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1623 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1624 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1626 2021-03-20 Tom Tromey <tom@tromey.com>
1628 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1629 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1630 * symfile-debug.c (objfile::has_partial_symbols)
1631 (objfile::find_last_source_symtab)
1632 (objfile::forget_cached_source_info)
1633 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1634 (objfile::print_stats, objfile::dump)
1635 (objfile::expand_symtabs_for_function)
1636 (objfile::expand_all_symtabs)
1637 (objfile::expand_symtabs_with_fullname)
1638 (objfile::map_matching_symbols)
1639 (objfile::expand_symtabs_matching)
1640 (objfile::find_pc_sect_compunit_symtab)
1641 (objfile::map_symbol_filenames)
1642 (objfile::find_compunit_symtab_by_address)
1643 (objfile::lookup_global_symbol_language)
1644 (objfile::require_partial_symbols): Update.
1645 * psymtab.c (maintenance_print_psymbols)
1646 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1647 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1648 * objfiles.c (objfile_relocate1): Update.
1649 * elfread.c (elf_symfile_read): Update.
1651 2021-03-20 Tom Tromey <tom@tromey.com>
1653 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1655 2021-03-20 Tom Tromey <tom@tromey.com>
1657 * psymtab.c (psymbol_functions::count_psyms): Rename.
1658 (psymbol_functions::print_stats): Update.
1659 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1662 2021-03-20 Tom Tromey <tom@tromey.com>
1664 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1665 (psymbol_functions::find_pc_sect_psymtab): Rename.
1666 (psymbol_functions::find_pc_sect_compunit_symtab)
1667 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1668 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1670 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1672 2021-03-20 Tom Tromey <tom@tromey.com>
1674 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1675 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1676 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1678 (add_psymbol_to_bcache): Remove.
1679 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1680 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1682 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1683 <add_psymbol>: Likewise.
1684 (standard_psymtab, legacy_psymtab): Likewise.
1685 * mdebugread.c (parse_partial_symbols): Update.
1686 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1687 (handle_psymbol_enumerators): Update.
1688 (new_psymtab): Add partial_symtabs parameter.
1689 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1690 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1692 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1693 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1695 * dbxread.c (read_dbx_symtab): Update.
1696 (start_psymtab): Add partial_symtabs parameter.
1697 (dbx_end_psymtab): Update.
1698 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1699 (ctf_psymtab): Add partial_symtabs parameter.
1700 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1702 (scan_partial_symbols): Add partial_symtabs parameter.
1703 (scan_partial_symbols, elfctf_build_psymtabs)
1704 (ctf_psymtab_add_enums): Update.
1706 2021-03-20 Tom Tromey <tom@tromey.com>
1708 * symfile.c (read_symbols): Use objfile method.
1709 * symfile-debug.c (objfile::require_partial_symbols): New method.
1710 * psymtab.h (require_partial_symbols): Don't declare.
1711 * psymtab.c (require_partial_symbols): Use objfile method. Now
1713 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1714 (psymbol_functions::lookup_symbol)
1715 (psymbol_functions::lookup_global_symbol_language)
1716 (psymbol_functions::find_last_source_symtab)
1717 (psymbol_functions::forget_cached_source_info)
1718 (psymbol_functions::print_stats)
1719 (psymbol_functions::expand_symtabs_for_function)
1720 (psymbol_functions::expand_all_symtabs)
1721 (psymbol_functions::expand_symtabs_with_fullname)
1722 (psymbol_functions::map_symbol_filenames)
1723 (psymbol_functions::map_matching_symbols)
1724 (psymbol_functions::expand_symtabs_matching)
1725 (psymbol_functions::find_compunit_symtab_by_address)
1726 (maintenance_print_psymbols, maintenance_info_psymtabs)
1727 (maintenance_check_psymtabs): Update.
1728 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1731 2021-03-20 Tom Tromey <tom@tromey.com>
1733 * xcoffread.c (xcoff_sym_fns): Update.
1734 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1735 * symfile-debug.c (objfile::has_partial_symbols): Use
1736 can_lazily_read_symbols.
1737 (debug_sym_read_psymbols): Remove.
1738 (debug_sym_fns, install_symfile_debug_logging): Update.
1739 * quick-symbol.h (struct quick_symbol_functions)
1740 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1741 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1742 * mipsread.c (ecoff_sym_fns): Update.
1743 * machoread.c (macho_sym_fns): Update.
1744 * elfread.c (struct lazy_dwarf_reader): New.
1745 (elf_symfile_read): Update.
1746 (read_psyms): Now a method of lazy_dwarf_reader.
1747 (elf_sym_fns): Update.
1748 (elf_sym_fns_lazy_psyms): Remove.
1749 * dbxread.c (aout_sym_fns): Update.
1750 * coffread.c (coff_sym_fns): Update.
1752 2021-03-20 Tom Tromey <tom@tromey.com>
1754 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1755 (reread_symbols): Move reset_psymtabs call later.
1756 * objfiles.c (objfile::objfile): Don't initialize
1759 2021-03-20 Tom Tromey <tom@tromey.com>
1761 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1762 set_partial_symtabs.
1763 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1764 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1766 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1768 (psymbol_functions::find_pc_sect_compunit_symtab)
1769 (psymbol_functions::print_stats, psymbol_functions::dump)
1770 (psymbol_functions::has_symbols): Update.
1771 (make_psymbol_functions, dump_psymtab_addrmap): Add
1772 partial_symtabs parameter.
1773 (maintenance_print_psymbols): Update.
1774 (psymbol_functions::expand_symtabs_matching): Update.
1775 * psympriv.h (struct psymbol_functions): Add constructor.
1776 <m_partial_symtabs>: New member.
1777 <set_partial_symtabs>: New method.
1779 2021-03-20 Tom Tromey <tom@tromey.com>
1781 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1783 (process_psymtab_comp_unit_reader)
1784 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1785 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1786 Reference psymtabs via per_bfd.
1788 2021-03-20 Tom Tromey <tom@tromey.com>
1790 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1792 (add_address_entry): Remove objfile parameter.
1793 (add_address_entry_worker): Update.
1794 (write_address_map): Replace objfile parameter with per_bfd.
1795 (write_gdbindex, write_psymtabs_to_index): Update.
1797 2021-03-20 Tom Tromey <tom@tromey.com>
1799 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1800 print_bcache parameter.
1801 * symfile-debug.c (objfile::print_stats): Add print_bcache
1803 * quick-symbol.h (struct quick_symbol_functions)
1804 <print_stats>: Add print_bcache parameter.
1805 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1807 (print_objfile_statistics): Move psymtab code to psymtab.c.
1808 * psymtab.c (count_psyms): Move from symmisc.c.
1809 (psymbol_functions::print_stats): Print partial symbol and bcache
1810 statistics. Add print_bcache parameter.
1811 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1812 (struct objfile) <print_stats>: Add print_bcache parameter.
1813 * maint.c (maintenance_print_statistics): Update.
1815 2021-03-20 Tom Tromey <tom@tromey.com>
1817 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1819 * dwarf2/read.c (create_addrmap_from_index)
1820 (create_addrmap_from_aranges): Set per_bfd addrmap.
1821 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1822 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1824 (dwarf2_read_debug_names): Don't set partial_symtabs.
1825 (dwarf2_initialize_objfile): Likewise.
1827 2021-03-20 Tom Tromey <tom@tromey.com>
1829 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1832 2021-03-20 Tom Tromey <tom@tromey.com>
1834 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1835 (~psymtab_discarder, keep): Update.
1836 <m_objfile>: Remove.
1837 <m_partial_symtabs>: New member.
1838 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1840 2021-03-20 Tom Tromey <tom@tromey.com>
1842 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1843 (xcoff_end_psymtab): Update.
1844 (scan_xcoff_symtab): Add partial_symtabs parameter.
1845 (xcoff_initial_scan): Update.
1846 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1847 * mdebugread.c (mdebug_build_psymtabs): Update.
1848 (parse_partial_symbols): Add partial_symtabs parameter.
1849 * dbxread.c (dbx_symfile_read): Update.
1850 (read_dbx_symtab): Add partial_symtabs parameter.
1851 (read_dbx_symtab): Update.
1852 (dbx_end_psymtab): Add partial_symtabs parameter.
1854 2021-03-20 Tom Tromey <tom@tromey.com>
1856 * quick-symbol.h (struct quick_symbol_functions)
1857 <relocated>: New method.
1858 * psymtab.h (struct psymbol_functions) <relocated>: New
1860 <fill_psymbol_map>: Declare method.
1861 <m_psymbol_map>: New member.
1862 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1863 (psymbol_functions::find_compunit_symtab_by_address): Update.
1864 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1865 (struct objfile) <psymbol_map>: Remove.
1866 * objfiles.c (objfile_relocate1): Update.
1868 2021-03-20 Tom Tromey <tom@tromey.com>
1870 * psympriv.h (struct psymbol_functions): New.
1871 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1872 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1873 (objfile::lookup_global_symbol_language): Update.
1874 * quick-symbol.h (struct quick_symbol_functions): Convert function
1875 pointers to methods. Add virtual destructor.
1876 (quick_symbol_functions_up): New typedef.
1877 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1878 (dwarf2_debug_names_functions): Don't declare.
1879 (make_psymbol_functions): Declare.
1880 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1881 (psymbol_functions::find_pc_sect_compunit_symtab)
1882 (psymbol_functions::lookup_symbol)
1883 (psymbol_functions::lookup_global_symbol_language)
1884 (psymbol_functions::find_last_source_symtab)
1885 (psymbol_functions::forget_cached_source_info)
1886 (psymbol_functions::print_stats, psymbol_functions::dump)
1887 (psymbol_functions::expand_symtabs_for_function)
1888 (psymbol_functions::expand_all_symtabs)
1889 (psymbol_functions::expand_symtabs_with_fullname)
1890 (psymbol_functions::map_symbol_filenames)
1891 (psymbol_functions::map_matching_symbols)
1892 (psymbol_functions::expand_symtabs_matching)
1893 (psymbol_functions::has_symbols)
1894 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1895 (psym_functions): Remove.
1896 (make_psymbol_functions): New function.
1897 * objfiles.h (struct objfile) <qf>: Change type.
1898 * elfread.c (elf_symfile_read): Update.
1899 * dwarf2/read.c (struct dwarf2_base_index_functions)
1900 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1901 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1902 (dwarf2_base_index_functions::find_last_source_symtab)
1903 (dwarf2_base_index_functions::forget_cached_source_info)
1904 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1905 (dwarf2_gdb_index::lookup_symbol)
1906 (dwarf2_base_index_functions::print_stats)
1907 (dwarf2_gdb_index::dump)
1908 (dwarf2_gdb_index::expand_symtabs_for_function)
1909 (dwarf2_base_index_functions::expand_all_symtabs)
1910 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1912 (dwarf2_gdb_index::map_matching_symbols): New method.
1913 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1914 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1915 (dwarf2_base_index_functions::map_symbol_filenames)
1916 (dwarf2_base_index_functions::has_symbols): Rename.
1917 (dwarf2_gdb_index_functions): Remove.
1918 (dwarf2_debug_names_index::lookup_symbol)
1919 (dwarf2_debug_names_index::dump)
1920 (dwarf2_debug_names_index::expand_symtabs_for_function)
1921 (dwarf2_debug_names_index::map_matching_symbols)
1922 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1923 (dwarf2_debug_names_functions): Remove.
1924 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1927 2021-03-20 Tom Tromey <tom@tromey.com>
1929 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1931 * xcoffread.c (xcoff_sym_fns): Update.
1932 * symfile.h (struct sym_fns) <qf>: Remove.
1933 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1934 * symfile-debug.c (objfile::has_partial_symbols)
1935 (objfile::find_last_source_symtab)
1936 (objfile::forget_cached_source_info)
1937 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1938 (objfile::print_stats, objfile::dump)
1939 (objfile::expand_symtabs_for_function)
1940 (objfile::expand_all_symtabs)
1941 (objfile::expand_symtabs_with_fullname)
1942 (objfile::map_matching_symbols)
1943 (objfile::expand_symtabs_matching)
1944 (objfile::find_pc_sect_compunit_symtab)
1945 (objfile::map_symbol_filenames)
1946 (objfile::find_compunit_symtab_by_address)
1947 (objfile::lookup_global_symbol_language, debug_sym_fns)
1948 (install_symfile_debug_logging): Update.
1949 * objfiles.h (struct objfile) <qf>: New member.
1950 * mipsread.c (ecoff_sym_fns): Update.
1951 * machoread.c (macho_sym_fns): Update.
1952 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1954 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1955 * dbxread.c (aout_sym_fns): Update.
1956 * coffread.c (coff_sym_fns): Update.
1958 2021-03-20 Tom Tromey <tom@tromey.com>
1960 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1961 (expand_symtabs_file_matcher_ftype)
1962 (expand_symtabs_symbol_matcher_ftype)
1963 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1964 Move to quick-symbol.h.
1965 * quick-symbol.h: New file.
1967 2021-03-20 Tom Tromey <tom@tromey.com>
1969 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1970 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1971 (basic_lookup_transparent_type_quick)
1972 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1973 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1975 * symmisc.c (print_objfile_statistics, dump_objfile)
1976 (maintenance_expand_symtabs): Update.
1977 * symfile.c (symbol_file_add_with_addrs)
1978 (expand_symtabs_matching, map_symbol_filenames): Update.
1979 * symfile-debug.c (objfile::has_partial_symbols)
1980 (objfile::find_last_source_symtab)
1981 (objfile::forget_cached_source_info)
1982 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1983 (objfile::print_stats, objfile::dump)
1984 (objfile::expand_symtabs_for_function)
1985 (objfile::expand_all_symtabs)
1986 (objfile::expand_symtabs_with_fullname)
1987 (objfile::map_matching_symbols)
1988 (objfile::expand_symtabs_matching)
1989 (objfile::find_pc_sect_compunit_symtab)
1990 (objfile::map_symbol_filenames)
1991 (objfile::find_compunit_symtab_by_address)
1992 (objfile::lookup_global_symbol_language): New methods.
1993 (debug_sym_quick_functions): Remove.
1994 (debug_sym_fns, install_symfile_debug_logging): Update.
1995 * source.c (forget_cached_source_info_for_objfile)
1996 (select_source_symtab): Update.
1997 * objfiles.h (struct objfile): Add methods corresponding to
1998 quick_symbol_functions.
1999 * objfiles.c (objfile::has_partial_symbols): Move to
2001 * linespec.c (iterate_over_all_matching_symtabs): Update.
2002 * cp-support.c (add_symbol_overload_list_qualified): Update.
2003 * ada-lang.c (add_nonlocal_symbols): Update.
2005 2021-03-20 Tom Tromey <tom@tromey.com>
2007 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2008 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2010 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2011 * psymtab.c (psym_has_symbols): Return bool.
2012 * objfiles.c (objfile::has_partial_symbols): Return bool.
2013 * dwarf2/read.c (dw2_has_symbols): Return bool.
2015 2021-03-20 Tom Tromey <tom@tromey.com>
2017 * symfile.c (read_symbols): Update.
2018 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2019 (objfile_has_partial_symbols): Don't declare.
2020 * objfiles.c (objfile::has_partial_symbols): Rename from
2021 objfile_has_partial_symbols.
2022 (objfile_has_symbols, have_partial_symbols): Update.
2023 * elfread.c (elf_symfile_read): Update.
2024 * dwarf2/read.c (dwarf2_has_info): Update.
2025 * coffread.c (coff_symfile_read): Update.
2027 2021-03-20 Tom Tromey <tom@tromey.com>
2029 * coffread.c: Include dwarf2/public.h.
2030 * dwarf2/frame.c: Include dwarf2/public.h.
2031 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2032 * dwarf2/public.h: New file.
2033 * dwarf2/read.c: Include dwarf2/public.h.
2034 * elfread.c: Include dwarf2/public.h.
2035 * machoread.c: Include dwarf2/public.h.
2036 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2037 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2038 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2039 * xcoffread.c: Include dwarf2/public.h.
2041 2021-03-20 Tom Tromey <tom@tromey.com>
2043 * symfile.h (enum dwarf2_section_enum)
2044 (dwarf2_get_section_info): Move to dwarf2/read.h.
2045 * dwarf2/read.h (enum dwarf2_section_enum)
2046 (dwarf2_get_section_info): Move from symfile.h.
2048 2021-03-19 Pedro Alves <pedro@palves.net>
2050 * thread.c (any_thread_of_inferior): Check if there's a selected
2051 thread before calling inferior_thread().
2053 2021-03-18 Tom Tromey <tromey@adacore.com>
2055 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2057 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2058 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2060 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2062 * python/py-param.c (get_set_value): Update header comment.
2064 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2066 * infrun.c (check_multi_target_resumption): Remove argument to
2067 all_non_exited_inferiors.
2069 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2071 * windows-nat.c (windows_init_thread_list): Add message to
2074 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2076 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2077 well as PyLong_Check for Python 2.
2079 2021-03-15 Tom Tromey <tromey@adacore.com>
2082 * rust-exp.y (maker_map): Use gdb::hash_enum.
2083 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2085 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2087 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2090 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2092 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2093 parameter, adjust caller.
2095 2021-03-15 Tom Tromey <tromey@adacore.com>
2097 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2099 2021-03-15 Tom Tromey <tromey@adacore.com>
2101 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2102 ada_ensure_varsize_limit.
2104 2021-03-15 Tom Tromey <tromey@adacore.com>
2106 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2108 * ada-exp.y (maybe_overload): New function.
2109 (ada_wrap_overload): New function.
2110 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2111 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2112 (or_else_exp, xor_exp, primary): Update.
2114 2021-03-15 Tom Tromey <tromey@adacore.com>
2117 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2118 call for tagged type.
2120 2021-03-15 Tom Tromey <tromey@adacore.com>
2122 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2125 2021-03-15 Tom Tromey <tromey@adacore.com>
2127 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2129 (ada_assign_operation::evaluate): Update.
2130 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2133 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2135 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2137 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2139 * python/python.c (gdbpy_source_objfile_script): Use
2140 make_scoped_restore to restore gdbpy_current_objfile.
2141 (gdbpy_execute_objfile_script): Likewise.
2143 2021-03-14 Tom Tromey <tom@tromey.com>
2145 * dwarf2/read.c (read_attribute_value): Use cu_header
2148 2021-03-14 Tom Tromey <tom@tromey.com>
2150 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2151 (peek_die_abbrev): Use reader.abfd.
2153 2021-03-14 Tom Tromey <tom@tromey.com>
2155 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2158 2021-03-13 Tom Tromey <tom@tromey.com>
2160 * dwarf2/read.c (struct partial_die_info): Update.
2161 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2162 (load_partial_dies, partial_die_info::partial_die_info): Update.
2163 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2165 2021-03-13 Tom Tromey <tom@tromey.com>
2167 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2169 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2172 * cp-support.c: Use scoped_segv_handler_restore.
2173 * event-top.c (thread_local_segv_handler): Made static.
2174 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2176 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2178 * event-top.h (class scoped_segv_handler_restore): New class.
2179 (thread_local_segv_handler): Removed.
2181 2021-03-10 Tom Tromey <tromey@adacore.com>
2183 * parser-defs.h (parser_state): Change completion to bool.
2184 <parse_completion>: Likewise.
2185 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2186 (ada_resolve_variable, ada_resolve_function): Update.
2187 * ada-lang.c (ada_find_operator_symbol): Change
2188 parse_completion to bool.
2189 (ada_resolve_funcall, ada_resolve_variable)
2190 (ada_resolve_function): Likewise.
2192 2021-03-09 Tom Tromey <tromey@adacore.com>
2194 * eval.c (operation::evaluate_funcall): Use function formal
2195 parameter types when evaluating.
2197 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2199 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2200 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2201 and owner to m_owner.
2203 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2205 * f-exp.h (eval_op_f_loc): Declare.
2206 (expr::fortran_loc_operation): New typedef.
2207 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2209 (f77_keywords): Add LOC keyword.
2210 * f-lang.c (eval_op_f_loc): New function.
2211 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2213 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2215 * f-exp.h (eval_op_f_array_shape): Declare.
2216 (fortran_array_shape_operation): New type.
2217 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2219 (f77_keywords): Add "shape" keyword.
2220 * f-lang.c (fortran_array_shape): New function.
2221 (eval_op_f_array_shape): New function.
2222 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2224 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2226 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2228 (expr::fortran_array_size_1arg): New type.
2229 (expr::fortran_array_size_2arg): Likewise.
2230 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2231 UNOP_OR_BINOP_INTRINSIC.
2232 (f77_keywords): Add "size" keyword.
2233 * f-lang.c (fortran_array_size): New function.
2234 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2235 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2237 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2239 * f-exp.h (eval_op_f_rank): Declare.
2240 (expr::fortran_rank_operation): New typedef.
2241 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2243 (f77_keywords): Add "rank" keyword.
2244 * f-lang.c (eval_op_f_rank): New function.
2245 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2247 2021-03-08 Tom Tromey <tom@tromey.com>
2249 * printcmd.c (set_command): Remove null check.
2250 * value.c (init_if_undefined_command): Remove null check.
2252 2021-03-08 Tom Tromey <tom@tromey.com>
2254 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2256 * p-exp.y (variable): Update.
2257 * go-exp.y (variable): Update.
2258 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2259 Remove overload for objfile.
2260 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2262 (check_objfile): Likewise.
2263 (dump_for_expression): Likewise. Remove overload for objfile.
2264 (class var_msym_value_operation): Use bound_minimal_symbol.
2265 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2267 (var_msym_value_operation::evaluate_for_address)
2268 (var_msym_value_operation::evaluate_for_sizeof)
2269 (var_msym_value_operation::evaluate_for_cast): Update.
2270 * d-exp.y (PrimaryExpression): Update.
2271 * c-exp.y (variable): Update.
2272 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2273 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2275 * ada-exp.y (write_var_or_type): Update.
2277 2021-03-08 Tom Tromey <tom@tromey.com>
2279 * parser-defs.h (exp_uses_objfile): Return bool.
2280 * parse.c (exp_uses_objfile): Return bool.
2282 2021-03-08 Tom Tromey <tom@tromey.com>
2284 * value.h (eval_skip_value): Don't declare.
2285 * opencl-lang.c (eval_opencl_assign): Update.
2286 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2287 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2288 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2289 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2290 * expop.h (typeof_operation::evaluate)
2291 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2292 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2293 (cxx_cast_operation::evaluate): Update.
2294 * eval.c (eval_skip_value): Remove.
2295 (eval_op_scope, eval_op_var_entry_value)
2296 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2297 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2298 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2299 (eval_op_binary, eval_op_subscript, eval_op_equal)
2300 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2301 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2302 (eval_op_complement, eval_op_lognot, eval_op_ind)
2303 (eval_op_memval, eval_op_preinc, eval_op_predec)
2304 (eval_op_postinc, eval_op_postdec, eval_op_type)
2305 (eval_binop_assign_modify, eval_op_objc_msgcall)
2306 (eval_multi_subscript, logical_and_operation::evaluate)
2307 (logical_or_operation::evaluate, array_operation::evaluate)
2308 (operation::evaluate_for_cast)
2309 (var_msym_value_operation::evaluate_for_cast)
2310 (var_value_operation::evaluate_for_cast): Update.
2311 * c-lang.c (c_string_operation::evaluate): Update.
2312 * c-exp.h (objc_nsstring_operation::evaluate)
2313 (objc_selector_operation::evaluate): Update.
2314 * ada-lang.c (ada_assign_operation::evaluate)
2315 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2316 (ada_atr_size): Update.
2318 2021-03-08 Tom Tromey <tom@tromey.com>
2320 * eval.c: Merge "namespace" scopes.
2322 2021-03-08 Tom Tromey <tom@tromey.com>
2324 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2326 * parse.c (expr_builder::expr_builder, expr_builder::release):
2329 2021-03-08 Tom Tromey <tom@tromey.com>
2331 * parse.c (expression::expression, expression::~expression):
2333 * expression.h (struct expression): Inline constructor. Remove
2336 2021-03-08 Tom Tromey <tom@tromey.com>
2338 * std-operator.def (BINOP_END): Remove.
2339 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2340 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2341 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2342 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2343 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2346 2021-03-08 Tom Tromey <tom@tromey.com>
2348 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2350 2021-03-08 Tom Tromey <tom@tromey.com>
2352 * std-operator.def (OP_EXTENDED0): Remove.
2354 2021-03-08 Tom Tromey <tom@tromey.com>
2356 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2357 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2360 2021-03-08 Tom Tromey <tom@tromey.com>
2362 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2363 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2365 2021-03-08 Tom Tromey <tom@tromey.com>
2367 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2368 * ada-lang.c (ada_binop_minmax): Update.
2369 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2370 Use BINOP_MIN and BINOP_MAX.
2372 2021-03-08 Tom Tromey <tom@tromey.com>
2374 * value.h (evaluate_subexp_with_coercion): Don't declare.
2375 * parse.c (exp_descriptor_standard): Remove.
2376 (expr_builder::expr_builder, expr_builder::release): Update.
2377 (expression::expression): Remove size_t parameter.
2378 (expression::~expression): Simplify.
2379 (expression::resize): Remove.
2380 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2381 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2382 (write_exp_elt_longcst, write_exp_elt_floatcst)
2383 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2384 (write_exp_string_vector, write_exp_bitstring): Remove.
2385 * p-lang.h (class pascal_language) <opcode_print_table,
2386 op_print_tab>: Remove.
2387 * p-lang.c (pascal_language::op_print_tab): Remove.
2388 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2390 * objc-lang.c (objc_op_print_tab): Remove.
2391 (class objc_language) <opcode_print_table>: Remove.
2392 * m2-lang.h (class m2_language) <opcode_print_table,
2393 op_print_tab>: Remove.
2394 * m2-lang.c (m2_language::op_print_tab): Remove.
2395 * language.h (struct language_defn) <post_parser, expression_ops,
2396 opcode_print_table>: Remove.
2397 * language.c (language_defn::expression_ops)
2398 (auto_or_unknown_language::opcode_print_table): Remove.
2399 * go-lang.h (class go_language) <opcode_print_table,
2400 op_print_tab>: Remove.
2401 * go-lang.c (go_language::op_print_tab): Remove.
2402 * f-lang.h (class f_language) <opcode_print_table>: Remove
2403 <op_print_tab>: Remove.
2404 * f-lang.c (f_language::op_print_tab): Remove.
2405 * expression.h (union exp_element): Remove.
2406 (struct expression): Remove size_t parameter from constructor.
2408 <first_opcode>: Update.
2409 <nelts, elts>: Remove.
2410 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2411 (evaluate_subexp_standard, print_expression, op_string)
2412 (dump_raw_expression): Don't declare.
2413 * expprint.c (print_expression, print_subexp)
2414 (print_subexp_funcall, print_subexp_standard, op_string)
2415 (dump_raw_expression, dump_subexp, dump_subexp_body)
2416 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2417 (dump_prefix_expression): Update.
2418 * eval.c (evaluate_subexp): Remove.
2419 (evaluate_expression, evaluate_type): Update.
2420 (evaluate_subexpression_type): Remove.
2421 (fetch_subexp_value): Remove "pc" parameter. Update.
2422 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2423 (evaluate_subexp_standard, evaluate_subexp_for_address)
2424 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2425 (evaluate_subexp_for_cast): Remove.
2426 (parse_and_eval_type): Update.
2427 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2428 * d-lang.c (d_op_print_tab): Remove.
2429 (class d_language) <opcode_print_table>: Remove.
2430 * c-lang.h (c_op_print_tab): Don't declare.
2431 * c-lang.c (c_op_print_tab): Remove.
2432 (class c_language, class cplus_language, class asm_language, class
2433 minimal_language) <opcode_print_table>: Remove.
2434 * breakpoint.c (update_watchpoint, watchpoint_check)
2435 (watchpoint_exp_is_const, watch_command_1): Update.
2436 * ax-gdb.h (union exp_element): Don't declare.
2437 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2438 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2439 (gen_expr_binop_rest): Remove.
2440 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2441 * ada-lang.c (ada_op_print_tab): Remove.
2442 (class ada_language) <post_parser, opcode_print_table>: Remove.
2444 2021-03-08 Tom Tromey <tom@tromey.com>
2446 * go-lang.c (go_language::expression_ops): Don't declare.
2447 * go-lang.h (class go_language) <expression_ops>: Remove.
2448 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2450 (class opencl_language) <expression_ops>: Remove.
2451 * d-lang.c (class d_language) <expression_ops>: Remove.
2452 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2453 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2454 (class c_language, class cplus_language, class asm_language)
2455 (class minimal_language) <expression_ops>: Remove.
2457 2021-03-08 Tom Tromey <tom@tromey.com>
2459 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2460 (evaluate_subexp_type, assign_aggregate)
2461 (aggregate_assign_positional, aggregate_assign_from_choices)
2462 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2463 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2464 (ada_operator_check, ada_forward_operator_length)
2465 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2467 (post_parser): Update.
2468 (class ada_language) <expresssion_ops>: Remove.
2470 2021-03-08 Tom Tromey <tom@tromey.com>
2472 * m2-lang.h (class m2_language) <expresssion_ops,
2473 exp_descriptor_modula2>: Remove.
2474 * m2-lang.c (evaluate_subexp_modula2)
2475 (m2_language::exp_descriptor_modula2): Remove.
2477 2021-03-08 Tom Tromey <tom@tromey.com>
2479 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2480 <exp_descriptor_tab>: Remove.
2481 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2482 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2483 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2484 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2487 2021-03-08 Tom Tromey <tom@tromey.com>
2489 * rust-lang.h (class rust_language) <expression_ops,
2490 exp_descriptor_tab>: Remove.
2491 * rust-lang.c (rust_evaluate_funcall): Remove.
2492 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2494 (rust_evaluate_subexp): Remove.
2495 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2496 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2497 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2499 2021-03-08 Tom Tromey <tom@tromey.com>
2501 * ada-exp.y: Create operations.
2502 (empty_stoken): Remove.
2503 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2504 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2505 (components): New global.
2506 (push_component, choice_component, pop_component, pop_components):
2508 (associations): New global
2509 (push_association, pop_association, pop_associations): New
2511 (ada_parse): Update.
2512 (write_var_from_sym, write_int): Create operations.
2513 (write_exp_op_with_string): Remove.
2514 (write_object_renaming, write_selectors, write_ambiguous_var)
2515 (write_var_or_type, write_name_assoc): Create operations.
2516 * ada-lang.h (ada_index_type): Declare.
2517 * ada-lang.c (ada_index_type): No longer static.
2519 2021-03-08 Tom Tromey <tom@tromey.com>
2521 * f-exp.y: Create operations.
2522 (f_language::parser): Update.
2524 2021-03-08 Tom Tromey <tom@tromey.com>
2526 * m2-exp.y: Create operations.
2527 (m2_language::parser): Update.
2529 2021-03-08 Tom Tromey <tom@tromey.com>
2531 * p-exp.y: Create operations.
2532 (pascal_language::parser): Update.
2534 2021-03-08 Tom Tromey <tom@tromey.com>
2536 * d-exp.y: Create operations.
2539 2021-03-08 Tom Tromey <tom@tromey.com>
2541 * go-exp.y: Create operations.
2542 (go_language::parser): Update.
2544 2021-03-08 Tom Tromey <tom@tromey.com>
2546 * objc-lang.c (end_msglist): Create operations.
2547 * c-exp.y: Change parser to create operations.
2548 (write_destructor_name): Remove.
2551 2021-03-08 Tom Tromey <tom@tromey.com>
2553 * rust-exp.y: Create operations.
2554 (rust_parser::convert_params_to_expression): Change return type.
2555 (binop_maker_ftype): New typedef.
2556 (maker_map): New global.
2557 (rust_parser::convert_ast_to_expression): Change return type.
2558 (rust_language::parser): Update.
2559 (_initialize_rust_exp): Initialize maker_map.
2561 2021-03-08 Tom Tromey <tom@tromey.com>
2563 * stap-probe.c (binop_maker_ftype): New typedef.
2564 (stap_maker_map): New global.
2565 (stap_make_binop): New function.
2566 (stap_parse_register_operand): Return operation_up.
2567 (stap_parse_single_operand, stap_parse_argument_conditionally)
2568 (stap_parse_argument_1): Likewise.
2569 (stap_parse_argument): Create operations.
2570 (stap_probe::parse_arguments): Update.
2571 (_initialize_stap_probe): Initialize stap_maker_map.
2572 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2574 * i386-tdep.h (i386_stap_parse_special_token): Change return
2576 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2577 (i386_stap_parse_special_token_three_arg_disp)
2578 (i386_stap_parse_special_token): Change return type.
2579 * gdbarch.sh (stap_parse_special_token): Change return type.
2580 * gdbarch.c: Rebuild.
2581 * gdbarch.h: Rebuild.
2582 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2584 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2587 2021-03-08 Tom Tromey <tom@tromey.com>
2589 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2590 * gdbarch.h: Rebuild.
2591 * gdbarch.c: Rebuild.
2592 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2593 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2595 (amd64_dtrace_parse_probe_argument): Update.
2597 2021-03-08 Tom Tromey <tom@tromey.com>
2599 * parser-defs.h (struct parser_state) <push, push_new,
2600 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2601 wrap2>: New methods.
2602 <m_operations>: New member.
2603 * parse.c (parser_state::push_c_string)
2604 (parser_state::push_symbol, parser_state::push_dollar): New
2607 2021-03-08 Tom Tromey <tom@tromey.com>
2609 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2611 (struct parser_state) <mark_struct_expression>: New method.
2612 * parse.c (parser_state::mark_struct_expression): Update assert.
2613 (parser_state::mark_struct_expression): New method.
2614 (parser_state::mark_completion_tag): Update assert.
2615 (parse_expression_for_completion): Handle expout_last_op.
2617 2021-03-08 Tom Tromey <tom@tromey.com>
2619 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2621 * value.h (fetch_subexp_value): Add "op" parameter.
2622 * value.c (init_if_undefined_command): Update.
2623 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2624 * stap-probe.c (stap_probe::compile_to_ax): Update.
2625 * printcmd.c (set_command): Update.
2626 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2628 * parser-defs.h (struct expr_builder) <set_operation>: New
2630 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2631 * expression.h (struct expression) <first_opcode>: Update.
2633 * expprint.c (dump_raw_expression, dump_prefix_expression):
2635 * expop.h (class var_value_operation) <get_symbol>: New method.
2636 (class register_operation) <get_name>: New method.
2637 (class equal_operation): No longer a typedef, now a subclass.
2638 (class unop_memval_operation) <get_type>: New method.
2639 (class assign_operation) <get_lhs>: New method.
2640 (class unop_cast_operation) <get_type>: New method.
2641 * eval.c (evaluate_expression, evaluate_type)
2642 (evaluate_subexpression_type): Update.
2643 (fetch_subexp_value): Add "op" parameter.
2644 (parse_and_eval_type): Update.
2645 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2646 * breakpoint.c (update_watchpoint, watchpoint_check)
2647 (watchpoint_exp_is_const, watch_command_1): Update.
2648 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2651 2021-03-08 Tom Tromey <tom@tromey.com>
2653 * ada-lang.c (ada_value_binop): Do not use op_string.
2655 2021-03-08 Tom Tromey <tom@tromey.com>
2657 * expprint.c (dump_for_expression): New overload.
2658 * expop.h (check_objfile, dump_for_expression): Declare new
2660 * ada-lang.c (check_objfile): New overload.
2661 (assign_component, ada_aggregate_component::uses_objfile)
2662 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2663 (ada_aggregate_component::assign_aggregate)
2664 (ada_positional_component::uses_objfile)
2665 (ada_positional_component::dump, ada_positional_component::assign)
2666 (ada_discrete_range_association::uses_objfile)
2667 (ada_discrete_range_association::dump)
2668 (ada_discrete_range_association::assign)
2669 (ada_name_association::uses_objfile, ada_name_association::dump)
2670 (ada_name_association::assign)
2671 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2672 (ada_choices_component::assign)
2673 (ada_others_component::uses_objfile, ada_others_component::dump)
2674 (ada_others_component::assign, ada_assign_operation::evaluate):
2676 * ada-exp.h (ada_string_operation) <get_name>: New method.
2677 (class ada_assign_operation): New.
2678 (class ada_component): New.
2679 (ada_component_up): New typedef.
2680 (class ada_aggregate_operation, class ada_aggregate_component)
2681 (class ada_positional_component, class ada_others_component)
2682 (class ada_association): New.
2683 (ada_association_up): New typedef.
2684 (class ada_choices_component)
2685 (class ada_discrete_range_association)
2686 (class ada_name_association): New.
2688 2021-03-08 Tom Tromey <tom@tromey.com>
2690 * ada-lang.c (ada_var_value_operation::resolve)
2691 (ada_funcall_operation::resolve)
2692 (ada_ternop_slice_operation::resolve): New methods.
2693 * ada-exp.h (struct ada_resolvable): New.
2694 (class ada_var_value_operation): Derive from ada_resolvable.
2695 <get_block, resolve>: New methods.
2696 (class ada_funcall_operation): Derive from ada_resolvable.
2697 <resolve>: New method.
2698 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2699 <resolve>: New method.
2701 2021-03-08 Tom Tromey <tom@tromey.com>
2703 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2704 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2706 (class ada_funcall_operation): New.
2708 2021-03-08 Tom Tromey <tom@tromey.com>
2710 * ada-lang.c (ada_structop_operation::evaluate): New method.
2711 * ada-exp.h (class ada_structop_operation): New.
2713 2021-03-08 Tom Tromey <tom@tromey.com>
2715 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2716 * ada-exp.h (class ada_unop_ind_operation): New.
2718 2021-03-08 Tom Tromey <tom@tromey.com>
2720 * ada-lang.c (ada_binop_exp): No longer static.
2721 * ada-exp.h (ada_binop_exp_operation): New typedef.
2723 2021-03-08 Tom Tromey <tom@tromey.com>
2725 * ada-lang.c (ada_val_atr): No longer static.
2726 (ada_atr_val_operation::evaluate): New method.
2727 * ada-exp.h (class ada_atr_val_operation): New.
2729 2021-03-08 Tom Tromey <tom@tromey.com>
2731 * ada-lang.c (ada_pos_atr): No longer static.
2732 * ada-exp.h (ada_pos_operation): New typedef.
2734 2021-03-08 Tom Tromey <tom@tromey.com>
2736 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2738 (ada_evaluate_subexp): Use it.
2740 2021-03-08 Tom Tromey <tom@tromey.com>
2742 * ada-lang.c (ada_binop_minmax): No longer static.
2743 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2746 2021-03-08 Tom Tromey <tom@tromey.com>
2748 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2750 * ada-exp.h (class ada_var_msym_value_operation): New.
2752 2021-03-08 Tom Tromey <tom@tromey.com>
2754 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2755 (ada_var_value_operation::evaluate): New methods.
2756 * ada-exp.h (class ada_var_value_operation): New.
2758 2021-03-08 Tom Tromey <tom@tromey.com>
2760 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2761 * ada-exp.h (class ada_unop_atr_operation): New.
2763 2021-03-08 Tom Tromey <tom@tromey.com>
2765 * ada-lang.c (ada_binop_in_bounds): No longer static.
2766 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2768 2021-03-08 Tom Tromey <tom@tromey.com>
2770 * ada-lang.c (ada_ternop_slice): No longer static.
2771 * ada-exp.h (class ada_ternop_slice_operation): New.
2773 2021-03-08 Tom Tromey <tom@tromey.com>
2775 * ada-exp.h (ada_bitwise_operation): New template class.
2776 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2777 (ada_bitwise_xor_operation): New typedefs.
2779 2021-03-08 Tom Tromey <tom@tromey.com>
2781 * ada-lang.c (ada_equal_binop): No longer static.
2782 * ada-exp.h (class ada_binop_equal_operation): New.
2784 2021-03-08 Tom Tromey <tom@tromey.com>
2786 * ada-lang.c (ada_mult_binop): No longer static.
2787 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2788 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2790 2021-03-08 Tom Tromey <tom@tromey.com>
2792 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2793 * ada-exp.h (class ada_binop_addsub_operation): New.
2795 2021-03-08 Tom Tromey <tom@tromey.com>
2797 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2798 (ada_resolve_variable): Declare.
2799 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2800 (ada_resolve_variable): New functions.
2801 (resolve_subexp): Update.
2803 2021-03-08 Tom Tromey <tom@tromey.com>
2805 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2807 * c-exp.h (class opencl_ternop_cond_operation): New.
2809 2021-03-08 Tom Tromey <tom@tromey.com>
2811 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2813 * c-exp.h (class opencl_logical_binop_operation): New.
2815 2021-03-08 Tom Tromey <tom@tromey.com>
2817 * opencl-lang.c (opencl_structop_operation::evaluate): New
2819 * c-exp.h (class opencl_structop_operation): New.
2821 2021-03-08 Tom Tromey <tom@tromey.com>
2823 * opencl-lang.c (opencl_logical_not): No longer static. Change
2825 (evaluate_subexp_opencl): Update.
2826 * c-exp.h (opencl_notequal_operation): New typedef.
2828 2021-03-08 Tom Tromey <tom@tromey.com>
2830 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2831 static. Change parameters.
2832 (eval_opencl_assign): No longer static. Add "op" parameter.
2833 (evaluate_subexp_opencl): Update.
2834 * c-exp.h (opencl_binop_operation): New template class.
2835 (opencl_assign_operation, opencl_equal_operation)
2836 (opencl_notequal_operation, opencl_less_operation)
2837 (opencl_gtr_operation, opencl_geq_operation)
2838 (opencl_leq_operation): New typedefs.
2840 2021-03-08 Tom Tromey <tom@tromey.com>
2842 * opencl-lang.c (opencl_value_cast): No longer static.
2843 * c-exp.h (opencl_cast_type_operation): New typedef.
2845 2021-03-08 Tom Tromey <tom@tromey.com>
2847 * f-exp.h (eval_op_f_allocated): Declare.
2848 (fortran_allocated_operation): New typedef.
2849 * f-lang.c (eval_op_f_allocated): No longer static.
2851 2021-03-08 Tom Tromey <tom@tromey.com>
2853 * f-lang.c (eval_op_f_associated): New functions.
2854 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2857 2021-03-08 Tom Tromey <tom@tromey.com>
2859 * f-lang.c (fortran_bound_1arg::evaluate)
2860 (fortran_bound_2arg::evaluate): New methods.
2861 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2864 2021-03-08 Tom Tromey <tom@tromey.com>
2866 * expop.h (class unop_addr_operation) <get_expression>: New
2868 * f-lang.c (fortran_undetermined::value_subarray)
2869 (fortran_undetermined::evaluate): New methods.
2870 (fortran_prepare_argument): New overload.
2871 * f-exp.h (class fortran_range_operation)
2872 (class fortran_undetermined): New classes.
2874 2021-03-08 Tom Tromey <tom@tromey.com>
2876 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2877 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2880 2021-03-08 Tom Tromey <tom@tromey.com>
2882 * expression.h (class operation) <evaluate_funcall>: New methods.
2883 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2884 (class var_value_operation) <evaluate_funcall>: New method.
2885 (class structop_base_operation) <evaluate_funcall>: New method.
2886 (class var_msym_value_operation) <evaluate_funcall>: New method.
2887 (class structop_member_base): New class.
2888 (class structop_member_operation): Derive from
2889 structop_member_base.
2890 (class structop_mptr_operation): Derive from
2891 structop_member_base.
2892 (class funcall_operation): New class.
2893 * eval.c (operation::evaluate_funcall)
2894 (var_value_operation::evaluate_funcall)
2895 (scope_operation::evaluate_funcall)
2896 (structop_member_base::evaluate_funcall)
2897 (structop_base_operation::evaluate_funcall): New methods.
2899 2021-03-08 Tom Tromey <tom@tromey.com>
2901 * expop.h (class array_operation): New.
2902 * eval.c (array_operation::evaluate_struct_tuple)
2903 (array_operation::evaluate): New methods.
2905 2021-03-08 Tom Tromey <tom@tromey.com>
2907 * expop.h (class adl_func_operation): New.
2908 * eval.c (adl_func_operation::evaluate): New method.
2910 2021-03-08 Tom Tromey <tom@tromey.com>
2912 * ada-lang.c (ada_unop_in_range): No longer static.
2913 * ada-exp.h (class ada_unop_range_operation): New.
2915 2021-03-08 Tom Tromey <tom@tromey.com>
2917 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2919 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2920 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2922 2021-03-08 Tom Tromey <tom@tromey.com>
2924 * expop.h (class logical_and_operation)
2925 (class logical_or_operation): New.
2926 * eval.c (logical_and_operation::evaluate)
2927 (logical_or_operation::evaluate): New methods.
2928 * ax-gdb.c (logical_and_operation::do_generate_ax)
2929 (logical_or_operation::do_generate_ax): New methods.
2931 2021-03-08 Tom Tromey <tom@tromey.com>
2933 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2935 * m2-exp.h: New file.
2937 2021-03-08 Tom Tromey <tom@tromey.com>
2939 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2940 * rust-exp.h (class rust_aggregate_operation): New.
2942 2021-03-08 Tom Tromey <tom@tromey.com>
2944 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2946 * rust-exp.h (class rust_struct_anon): New.
2947 (class rust_structop): New.
2949 2021-03-08 Tom Tromey <tom@tromey.com>
2951 * rust-lang.c (rust_range): No longer static.
2952 * rust-exp.h (class rust_range_operation): New.
2954 2021-03-08 Tom Tromey <tom@tromey.com>
2956 * rust-lang.c (rust_subscript): No longer static.
2957 * rust-exp.h (class rust_subscript_operation): New.
2959 2021-03-08 Tom Tromey <tom@tromey.com>
2961 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2963 (rust_evaluate_subexp): Update.
2964 * rust-exp.h (class rust_unop_ind_operation): New.
2966 2021-03-08 Tom Tromey <tom@tromey.com>
2968 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2969 longer static. Add "opcode" parameter.
2970 (rust_evaluate_subexp): Update.
2971 * rust-exp.h: New file.
2973 2021-03-08 Tom Tromey <tom@tromey.com>
2975 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2976 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2977 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2978 (evaluate_subexp_f): Update.
2979 * f-exp.h: New file.
2981 2021-03-08 Tom Tromey <tom@tromey.com>
2983 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2984 * ada-exp.h (class ada_ternop_range_operation): New.
2986 2021-03-08 Tom Tromey <tom@tromey.com>
2988 * ada-lang.c (ada_qual_operation::evaluate): New method.
2989 * ada-exp.h (class ada_qual_operation): New.
2991 2021-03-08 Tom Tromey <tom@tromey.com>
2993 * ada-lang.c (ada_string_operation::evaluate): New method.
2994 * ada-exp.h (class ada_string_operation): New.
2996 2021-03-08 Tom Tromey <tom@tromey.com>
2998 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2999 * ada-exp.h: New file.
3001 2021-03-08 Tom Tromey <tom@tromey.com>
3003 * expop.h (class multi_subscript_operation): New.
3004 * eval.c (multi_subscript_operation::evaluate): New method.
3006 2021-03-08 Tom Tromey <tom@tromey.com>
3008 * eval.c (objc_msgcall_operation::evaluate): New method.
3009 * c-exp.h (class objc_msgcall_operation): New.
3011 2021-03-08 Tom Tromey <tom@tromey.com>
3013 * expop.h (class var_value_operation): New.
3014 * eval.c (var_value_operation::evaluate)
3015 (var_value_operation::evaluate_for_address)
3016 (var_value_operation::evaluate_with_coercion)
3017 (var_value_operation::evaluate_for_sizeof)
3018 (var_value_operation::evaluate_for_cast): New methods.
3019 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3021 2021-03-08 Tom Tromey <tom@tromey.com>
3023 * expop.h (cxx_cast_ftype): New typedef.
3024 (cxx_cast_operation): New template.
3025 (dynamic_cast_operation, reinterpret_cast_operation): New
3028 2021-03-08 Tom Tromey <tom@tromey.com>
3030 * expop.h (class unop_cast_type_operation): New.
3031 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3034 2021-03-08 Tom Tromey <tom@tromey.com>
3036 * expop.h (class unop_cast_operation): New.
3037 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3039 2021-03-08 Tom Tromey <tom@tromey.com>
3041 * expop.h (class assign_modify_operation): New.
3042 * eval.c (eval_binop_assign_modify): No longer static.
3043 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3045 2021-03-08 Tom Tromey <tom@tromey.com>
3047 * expop.h (class assign_operation): New.
3048 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3050 2021-03-08 Tom Tromey <tom@tromey.com>
3052 * expop.h (class type_instance_operation): New.
3053 * eval.c (type_instance_operation::evaluate): New method.
3055 2021-03-08 Tom Tromey <tom@tromey.com>
3057 * expop.h (class op_this_operation): New.
3058 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3060 2021-03-08 Tom Tromey <tom@tromey.com>
3062 * expop.h (class unop_memval_operation)
3063 (class unop_memval_type_operation): New.
3064 * eval.c (eval_op_memval): No longer static.
3065 (unop_memval_operation::evaluate_for_address)
3066 (unop_memval_type_operation::evaluate_for_address)
3067 (unop_memval_operation::evaluate_for_sizeof)
3068 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3069 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3070 (unop_memval_type_operation::do_generate_ax): New methods.
3072 2021-03-08 Tom Tromey <tom@tromey.com>
3074 * expop.h (class unop_alignof_operation): New.
3075 * eval.c (eval_op_alignof): No longer static.
3077 2021-03-08 Tom Tromey <tom@tromey.com>
3079 * expop.h (class unop_sizeof_operation): New.
3080 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3082 2021-03-08 Tom Tromey <tom@tromey.com>
3084 * expop.h (class unop_addr_operation): New.
3085 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3087 2021-03-08 Tom Tromey <tom@tromey.com>
3089 * expop.h (class typeid_operation): New.
3091 2021-03-08 Tom Tromey <tom@tromey.com>
3093 * expop.h (class decltype_operation): New.
3095 2021-03-08 Tom Tromey <tom@tromey.com>
3097 * expop.h (class typeof_operation): New.
3099 2021-03-08 Tom Tromey <tom@tromey.com>
3101 * expop.h (class type_operation): New.
3102 * eval.c (eval_op_type): No longer static.
3104 2021-03-08 Tom Tromey <tom@tromey.com>
3106 * expop.h (class unop_ind_base_operation)
3107 (class unop_ind_operation): New.
3108 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3109 (unop_ind_base_operation::evaluate_for_address)
3110 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3111 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3113 2021-03-08 Tom Tromey <tom@tromey.com>
3115 * expop.h (unop_incr_operation): New template.
3116 (preinc_operation, predec_operation, postinc_operation)
3117 (postdec_operation): New typedefs.
3118 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3119 (eval_op_postdec): No longer static.
3121 2021-03-08 Tom Tromey <tom@tromey.com>
3123 * expop.h (unary_ftype): New typedef.
3124 (unop_operation, usual_ax_binop_operation): New templates.
3125 (unary_plus_operation, unary_neg_operation)
3126 (unary_complement_operation, unary_logical_not_operation): New
3128 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3129 (eval_op_lognot): No longer static.
3130 * ax-gdb.c (gen_expr_unop): New function.
3132 2021-03-08 Tom Tromey <tom@tromey.com>
3134 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3136 2021-03-08 Tom Tromey <tom@tromey.com>
3138 * expop.h (class repeat_operation): New.
3139 * eval.c (eval_op_repeat): No longer static. Remove "op"
3141 (evaluate_subexp_standard): Update.
3142 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3144 2021-03-08 Tom Tromey <tom@tromey.com>
3146 * expop.h (class comparison_operation): New.
3147 (equal_operation, notequal_operation, less_operation)
3148 (gtr_operation, geq_operation, leq_operation): New typedefs.
3149 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3150 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3152 2021-03-08 Tom Tromey <tom@tromey.com>
3154 * expop.h (class subscript_operation): New.
3155 * eval.c (eval_op_subscript): No longer static.
3157 2021-03-08 Tom Tromey <tom@tromey.com>
3159 * expop.h (class binop_operation, class usual_ax_binop_operation):
3161 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3162 (div_operation, rem_operation, lsh_operation, rsh_operation)
3163 (bitwise_and_operation, bitwise_ior_operation)
3164 (bitwise_xor_operation): New typedefs.
3165 * eval.c (eval_op_binary): No longer static.
3167 2021-03-08 Tom Tromey <tom@tromey.com>
3169 * expop.h (class sub_operation): New.
3170 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3171 (evaluate_subexp_standard): Update.
3173 2021-03-08 Tom Tromey <tom@tromey.com>
3175 * expop.h (class add_operation): New.
3176 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3177 (evaluate_subexp_standard): Update.
3179 2021-03-08 Tom Tromey <tom@tromey.com>
3181 * expop.h (class concat_operation): New.
3182 * eval.c (eval_op_concat): No longer static. Remove "op"
3184 (evaluate_subexp_standard): Update.
3186 2021-03-08 Tom Tromey <tom@tromey.com>
3188 * expop.h (class structop_member_operation)
3189 (class structop_mptr_operation): New.
3190 * eval.c (eval_op_member): No longer static.
3192 2021-03-08 Tom Tromey <tom@tromey.com>
3194 * expop.h (class structop_ptr_operation): New.
3195 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3198 2021-03-08 Tom Tromey <tom@tromey.com>
3200 * expop.h (class structop_base_operation)
3201 (class structop_operation): New.
3202 * eval.c (eval_op_structop_struct): No longer static.
3204 2021-03-08 Tom Tromey <tom@tromey.com>
3206 * expop.h (class complex_operation): New.
3208 2021-03-08 Tom Tromey <tom@tromey.com>
3210 * eval.c (eval_op_objc_selector): No longer static.
3211 * c-exp.h (class objc_selector_operation): New.
3213 2021-03-08 Tom Tromey <tom@tromey.com>
3215 * eval.c: Include c-exp.h.
3216 * c-exp.h (class objc_nsstring_operation): New.
3218 2021-03-08 Tom Tromey <tom@tromey.com>
3220 * c-lang.c (c_string_operation::evaluate): New method.
3221 * c-exp.h: New file.
3223 2021-03-08 Tom Tromey <tom@tromey.com>
3225 * expop.h (class ternop_cond_operation): New.
3226 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3228 2021-03-08 Tom Tromey <tom@tromey.com>
3230 * expop.h (class ternop_slice_operation): New.
3231 * eval.c (eval_op_ternop): No longer static.
3233 2021-03-08 Tom Tromey <tom@tromey.com>
3235 * expop.h (class string_operation): New.
3236 * eval.c (eval_op_string): No longer static.
3238 2021-03-08 Tom Tromey <tom@tromey.com>
3240 * expop.h (class internalvar_operation): New.
3241 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3243 2021-03-08 Tom Tromey <tom@tromey.com>
3245 * expop.h (class bool_operation): New.
3247 2021-03-08 Tom Tromey <tom@tromey.com>
3249 * expop.h (class register_operation): New.
3250 * eval.c (eval_op_register): No longer static.
3251 * ax-gdb.c (register_operation::do_generate_ax): New method.
3253 2021-03-08 Tom Tromey <tom@tromey.com>
3255 * expop.h (class last_operation): New.
3257 2021-03-08 Tom Tromey <tom@tromey.com>
3259 * expop.h (class func_static_var_operation): New.
3260 * eval.c (eval_op_func_static_var): No longer static.
3262 2021-03-08 Tom Tromey <tom@tromey.com>
3264 * expop.h (class var_entry_value_operation): New.
3265 * eval.c (eval_op_var_entry_value): No longer static.
3267 2021-03-08 Tom Tromey <tom@tromey.com>
3269 * expression.h (class operation) <set_outermost>: New method.
3270 * expop.h (class var_msym_value_operation): New.
3271 * eval.c (eval_op_var_msym_value): No longer static.
3272 (var_msym_value_operation::evaluate_for_address)
3273 (var_msym_value_operation::evaluate_for_sizeof)
3274 (var_msym_value_operation::evaluate_for_cast): New methods.
3275 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3278 2021-03-08 Tom Tromey <tom@tromey.com>
3280 * expop.h (class long_const_operation): New.
3281 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3283 2021-03-08 Tom Tromey <tom@tromey.com>
3285 * expop.h (class scope_operation): New.
3286 * eval.c (eval_op_scope): No longer static.
3287 (scope_operation::evaluate_for_address): New method.
3288 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3290 2021-03-08 Tom Tromey <tom@tromey.com>
3292 * expprint.c (float_const_operation::dump): New method.
3293 * expop.h (float_data): New typedef.
3294 (class float_const_operation): New.
3296 2021-03-08 Tom Tromey <tom@tromey.com>
3298 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3299 * ax-gdb.c (gen_expr_binop): New function.
3300 (gen_expr_structop): Likewise.
3302 2021-03-08 Tom Tromey <tom@tromey.com>
3304 * expprint.c (expr::dump_for_expression): New functions.
3305 * expop.h (dump_for_expression): New overloads.
3306 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3309 2021-03-08 Tom Tromey <tom@tromey.com>
3311 * expression.h (expr::operation): New class.
3312 (expr::make_operation): New function.
3313 (expr::operation_up): New typedef.
3314 * expop.h: New file.
3315 * eval.c (operation::evaluate_for_cast)
3316 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3318 * ax-gdb.c (operation::generate_ax): New method.
3320 2021-03-08 Tom Tromey <tom@tromey.com>
3322 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3323 (gen_expr_binop_rest): New overload.
3325 2021-03-08 Tom Tromey <tom@tromey.com>
3327 * eval.c (eval_multi_subscript): New function.
3328 (evaluate_subexp_standard): Use it.
3330 2021-03-08 Tom Tromey <tom@tromey.com>
3332 * ada-lang.c (ada_binop_exp): New function.
3333 (ada_evaluate_subexp): Use it.
3335 2021-03-08 Tom Tromey <tom@tromey.com>
3337 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3339 (ada_evaluate_subexp): Use it.
3341 2021-03-08 Tom Tromey <tom@tromey.com>
3343 * ada-lang.c (ada_binop_minmax): New function.
3344 (ada_evaluate_subexp): Use it.
3346 2021-03-08 Tom Tromey <tom@tromey.com>
3348 * ada-lang.c (ada_unop_atr): New function.
3349 (ada_evaluate_subexp): Use it.
3351 2021-03-08 Tom Tromey <tom@tromey.com>
3353 * ada-lang.c (ada_binop_in_bounds): New function.
3354 (ada_evaluate_subexp): Use it.
3356 2021-03-08 Tom Tromey <tom@tromey.com>
3358 * ada-lang.c (ada_ternop_slice): New function.
3359 (ada_evaluate_subexp): Use it.
3361 2021-03-08 Tom Tromey <tom@tromey.com>
3363 * ada-lang.c (ada_equal_binop): New function.
3364 (ada_evaluate_subexp): Use it.
3366 2021-03-08 Tom Tromey <tom@tromey.com>
3368 * ada-lang.c (ada_mult_binop): New function.
3369 (ada_evaluate_subexp): Use it.
3371 2021-03-08 Tom Tromey <tom@tromey.com>
3373 * ada-lang.c (ada_abs): New function.
3374 (ada_evaluate_subexp): Use it.
3376 2021-03-08 Tom Tromey <tom@tromey.com>
3378 * ada-lang.c (ada_atr_size): New function.
3379 (ada_evaluate_subexp): Use it.
3381 2021-03-08 Tom Tromey <tom@tromey.com>
3383 * ada-lang.c (ada_atr_tag): New function.
3384 (ada_evaluate_subexp): Use it.
3386 2021-03-08 Tom Tromey <tom@tromey.com>
3388 * ada-lang.c (ada_unop_in_range): New function.
3389 (ada_evaluate_subexp): Use it.
3391 2021-03-08 Tom Tromey <tom@tromey.com>
3393 * ada-lang.c (ada_unop_neg): New function.
3394 (ada_evaluate_subexp): Use it.
3396 2021-03-08 Tom Tromey <tom@tromey.com>
3398 * ada-lang.c (eval_ternop_in_range): New function.
3399 (ada_evaluate_subexp): Use it.
3401 2021-03-08 Tom Tromey <tom@tromey.com>
3403 * opencl-lang.c (eval_opencl_assign): New function.
3404 (evaluate_subexp_opencl): Use it.
3406 2021-03-08 Tom Tromey <tom@tromey.com>
3408 * eval.c (eval_op_objc_msgcall): New function.
3409 (evaluate_subexp_standard): Use it.
3411 2021-03-08 Tom Tromey <tom@tromey.com>
3413 * eval.c (eval_binop_assign_modify): New function.
3414 (evaluate_subexp_standard): Use it.
3416 2021-03-08 Tom Tromey <tom@tromey.com>
3418 * m2-lang.c (eval_op_m2_subscript): New function.
3419 (evaluate_subexp_modula2): Use it.
3421 2021-03-08 Tom Tromey <tom@tromey.com>
3423 * m2-lang.c (eval_op_m2_high): New function.
3424 (evaluate_subexp_modula2): Use it.
3426 2021-03-08 Tom Tromey <tom@tromey.com>
3428 * eval.c (evaluate_subexp_for_address_base): New function.
3429 (evaluate_subexp_for_address): Use it.
3430 (evaluate_subexp_for_sizeof_base): New function.
3431 (evaluate_subexp_for_sizeof): Use it.
3433 2021-03-08 Tom Tromey <tom@tromey.com>
3435 * rust-lang.c (eval_op_rust_structop): New function.
3436 (rust_evaluate_subexp): Use it.
3438 2021-03-08 Tom Tromey <tom@tromey.com>
3440 * rust-lang.c (eval_op_rust_struct_anon): New function.
3441 (rust_evaluate_subexp): Use it.
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3445 * rust-lang.c (eval_op_rust_array): New function.
3446 (rust_evaluate_subexp): Use it.
3448 2021-03-08 Tom Tromey <tom@tromey.com>
3450 * rust-lang.c (eval_op_rust_complement): New function.
3451 (rust_evaluate_subexp): Use it.
3453 2021-03-08 Tom Tromey <tom@tromey.com>
3455 * rust-lang.c (eval_op_rust_ind): New function.
3456 (rust_evaluate_subexp): Use it.
3458 2021-03-08 Tom Tromey <tom@tromey.com>
3460 * rust-lang.c (rust_subscript): Change parameters.
3461 (rust_evaluate_subexp): Update.
3463 2021-03-08 Tom Tromey <tom@tromey.com>
3465 * rust-lang.c (rust_range): Change parameters.
3466 (rust_evaluate_subexp): Update.
3468 2021-03-08 Tom Tromey <tom@tromey.com>
3470 * f-lang.c (eval_op_f_allocated): New function.
3471 (evaluate_subexp_f): Use it.
3473 2021-03-08 Tom Tromey <tom@tromey.com>
3475 * f-lang.c (fortran_require_array): New function.
3476 (evaluate_subexp_f): Use it.
3478 2021-03-08 Tom Tromey <tom@tromey.com>
3480 * f-lang.c (eval_op_f_kind): New function.
3481 (evaluate_subexp_f): Use it.
3483 2021-03-08 Tom Tromey <tom@tromey.com>
3485 * f-lang.c (eval_op_f_cmplx): New function.
3486 (evaluate_subexp_f): Use it.
3488 2021-03-08 Tom Tromey <tom@tromey.com>
3490 * f-lang.c (eval_op_f_modulo): New function.
3491 (evaluate_subexp_f): Use it.
3493 2021-03-08 Tom Tromey <tom@tromey.com>
3495 * f-lang.c (eval_op_f_floor): New function.
3496 (evaluate_subexp_f): Use it.
3498 2021-03-08 Tom Tromey <tom@tromey.com>
3500 * f-lang.c (eval_op_f_ceil): New function.
3501 (evaluate_subexp_f): Use it.
3503 2021-03-08 Tom Tromey <tom@tromey.com>
3505 * f-lang.c (eval_op_f_mod): New function.
3506 (evaluate_subexp_f): Use it.
3508 2021-03-08 Tom Tromey <tom@tromey.com>
3510 * f-lang.c (eval_op_f_abs): New function.
3511 (evaluate_subexp_f): Use it.
3513 2021-03-08 Tom Tromey <tom@tromey.com>
3515 * eval.c (eval_op_type): New function.
3516 (evaluate_subexp_standard): Use it.
3518 2021-03-08 Tom Tromey <tom@tromey.com>
3520 * eval.c (eval_op_postdec): New function.
3521 (evaluate_subexp_standard): Use it.
3523 2021-03-08 Tom Tromey <tom@tromey.com>
3525 * eval.c (eval_op_postinc): New function.
3526 (evaluate_subexp_standard): Use it.
3528 2021-03-08 Tom Tromey <tom@tromey.com>
3530 * eval.c (eval_op_predec): New file.
3531 (evaluate_subexp_standard): Use it.
3533 2021-03-08 Tom Tromey <tom@tromey.com>
3535 * eval.c (eval_op_preinc): New function.
3536 (evaluate_subexp_standard): Use it.
3538 2021-03-08 Tom Tromey <tom@tromey.com>
3540 * eval.c (eval_op_memval): New function.
3541 (evaluate_subexp_standard): Use it.
3543 2021-03-08 Tom Tromey <tom@tromey.com>
3545 * eval.c (eval_op_alignof): New function.
3546 (evaluate_subexp_standard): Use it.
3548 2021-03-08 Tom Tromey <tom@tromey.com>
3550 * eval.c (eval_op_ind): New function.
3551 (evaluate_subexp_standard): Use it.
3553 2021-03-08 Tom Tromey <tom@tromey.com>
3555 * eval.c (eval_op_lognot): New function.
3556 (evaluate_subexp_standard): Use it.
3558 2021-03-08 Tom Tromey <tom@tromey.com>
3560 * eval.c (eval_op_complement): New function.
3561 (evaluate_subexp_standard): Use it.
3563 2021-03-08 Tom Tromey <tom@tromey.com>
3565 * eval.c (eval_op_neg): New function.
3566 (evaluate_subexp_standard): Use it.
3568 2021-03-08 Tom Tromey <tom@tromey.com>
3570 * eval.c (eval_op_plus): New function.
3571 (evaluate_subexp_standard): Use it.
3573 2021-03-08 Tom Tromey <tom@tromey.com>
3575 * eval.c (eval_op_repeat): New function.
3576 (evaluate_subexp_standard): Use it.
3578 2021-03-08 Tom Tromey <tom@tromey.com>
3580 * eval.c (eval_op_leq): New function.
3581 (evaluate_subexp_standard): Use it.
3583 2021-03-08 Tom Tromey <tom@tromey.com>
3585 * eval.c (eval_op_geq): New function.
3586 (evaluate_subexp_standard): Use it.
3588 2021-03-08 Tom Tromey <tom@tromey.com>
3590 * eval.c (eval_op_gtr): New function.
3591 (evaluate_subexp_standard): Use it.
3593 2021-03-08 Tom Tromey <tom@tromey.com>
3595 * eval.c (eval_op_less): New function.
3596 (evaluate_subexp_standard): Use it.
3598 2021-03-08 Tom Tromey <tom@tromey.com>
3600 * eval.c (eval_op_notequal): New function.
3601 (evaluate_subexp_standard): Use it.
3603 2021-03-08 Tom Tromey <tom@tromey.com>
3605 * eval.c (eval_op_equal): New function.
3606 (evaluate_subexp_standard): Use it.
3608 2021-03-08 Tom Tromey <tom@tromey.com>
3610 * eval.c (eval_op_subscript): New function.
3611 (evaluate_subexp_standard): Use it.
3613 2021-03-08 Tom Tromey <tom@tromey.com>
3615 * eval.c (eval_op_binary): New function.
3616 (evaluate_subexp_standard): Use it.
3618 2021-03-08 Tom Tromey <tom@tromey.com>
3620 * eval.c (eval_op_sub): New function.
3621 (evaluate_subexp_standard): Use it.
3623 2021-03-08 Tom Tromey <tom@tromey.com>
3625 * eval.c (eval_op_add): New function.
3626 (evaluate_subexp_standard): Use it.
3628 2021-03-08 Tom Tromey <tom@tromey.com>
3630 * eval.c (eval_op_member): New function.
3631 (evaluate_subexp_standard): Use it.
3633 2021-03-08 Tom Tromey <tom@tromey.com>
3635 * eval.c (eval_op_structop_ptr): New function.
3636 (evaluate_subexp_standard): Use it.
3638 2021-03-08 Tom Tromey <tom@tromey.com>
3640 * eval.c (eval_op_structop_struct): New function.
3641 (evaluate_subexp_standard): Use it.
3643 2021-03-08 Tom Tromey <tom@tromey.com>
3645 * eval.c (eval_op_ternop): New function.
3646 (evaluate_subexp_standard): Use it.
3648 2021-03-08 Tom Tromey <tom@tromey.com>
3650 * eval.c (eval_op_concat): New function.
3651 (evaluate_subexp_standard): Use it.
3653 2021-03-08 Tom Tromey <tom@tromey.com>
3655 * eval.c (eval_op_objc_selector): New function.
3656 (evaluate_subexp_standard): Use it.
3658 2021-03-08 Tom Tromey <tom@tromey.com>
3660 * eval.c (eval_op_string): New function.
3661 (evaluate_subexp_standard): Use it.
3663 2021-03-08 Tom Tromey <tom@tromey.com>
3665 * eval.c (eval_op_register): New function.
3666 (evaluate_subexp_standard): Use it.
3668 2021-03-08 Tom Tromey <tom@tromey.com>
3670 * eval.c (eval_op_func_static_var): New function.
3671 (evaluate_subexp_standard): Use it.
3673 2021-03-08 Tom Tromey <tom@tromey.com>
3675 * eval.c (eval_op_var_msym_value): New function.
3676 (evaluate_subexp_standard): Use it.
3678 2021-03-08 Tom Tromey <tom@tromey.com>
3680 * eval.c (eval_op_var_entry_value): New function.
3681 (evaluate_subexp_standard): Use it.
3683 2021-03-08 Tom Tromey <tom@tromey.com>
3685 * eval.c (eval_op_scope): New function.
3686 (evaluate_subexp_standard): Use it.
3688 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3691 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3693 2021-03-06 Tom Tromey <tom@tromey.com>
3695 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3696 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3697 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3698 (locate_dwz_sections, dwz_search_other_debugdirs)
3699 (dwarf2_get_dwz_file): Move to dwz.c.
3700 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3702 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3703 (dwarf2_get_dwz_file): Move from read.c.
3705 2021-03-06 Tom Tromey <tom@tromey.com>
3707 * debuginfod-support.h: Include scoped_fd.h.
3709 2021-03-06 Tom Tromey <tom@tromey.com>
3711 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3712 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3713 (get_abbrev_section_for_cu, read_attribute_value)
3714 (get_debug_line_section): Update.
3715 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3717 2021-03-06 Tom Tromey <tom@tromey.com>
3719 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3721 * dwarf2/read.c (section_is_p): Remove.
3722 (dwarf2_per_bfd::locate_sections)
3723 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3724 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3725 (dwarf2_locate_common_dwp_sections)
3726 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3729 2021-03-06 Tom Tromey <tom@tromey.com>
3731 * xcoffread.c: Include sect-names.h.
3732 * symfile.h (struct dwarf2_section_names, struct
3733 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3734 * dwarf2/sect-names.h: New file, from symfile.h.
3735 * dwarf2/read.c: Include sect-names.h.
3737 2021-03-06 Tom Tromey <tom@tromey.com>
3739 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3740 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3741 (abbrev_table::read): Update.
3742 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3743 (struct abbrev_info): Reformat.
3744 <attrs>: Now an array.
3745 (struct abbrev_table) <alloc_abbrev>: Remove.
3747 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3749 * ctfread.c (ctf_psymtab_add_enums): New function.
3750 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3752 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3754 * ctfread.c (read_func_kind_type): Set up function arguments.
3756 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3757 Andrew Burgess <andrew.burgess@embecosm.com>
3759 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3761 (riscv_csrset): New static global.
3762 (riscv_update_csrmap): New function.
3763 (riscv_iterate_over_regset_sections): Process CSRs.
3765 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3767 * riscv-tdep.c (riscv_feature_name_csr): Define.
3768 (riscv_feature_name_cpu): Define.
3769 (riscv_feature_name_fpu): Define.
3770 (riscv_feature_name_virtual): Define.
3771 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3772 (riscv_freg_feature): Use riscv_feature_name_fpu.
3773 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3774 (riscv_csr_feature): Use riscv_feature_name_csr.
3775 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3777 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3778 Craig Blackmore <craig.blackmore@embecosm.com>
3780 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3781 (ALLDEPFILES): Add riscv-none-tdep.c.
3782 * configure: Regenerate.
3783 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3785 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3786 * elf-none-tdep.c: New file.
3787 * elf-none-tdep.h: New file.
3788 * riscv-none-tdep.c: New file.
3790 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3791 Andrew Burgess <andrew.burgess@embecosm.com>
3793 * corelow.c: Add 'xml-tdesc.h' include.
3794 (core_target::read_description): Load the target description from
3795 the core file when possible.
3796 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3798 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3799 (gcore_elf_make_tdesc_note): New function.
3800 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3801 * linux-tdep.c (linux_make_corefile_notes): Add target description
3804 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3806 * Makefile.in (SFILES): Add gcore-elf.c.
3807 (HFILES_NO_SRCDIR): Add gcore-elf.h
3808 * configure: Regenerate.
3809 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3811 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3812 (struct fbsd_collect_regset_section_cb_data): Delete.
3813 (fbsd_collect_regset_section_cb): Delete.
3814 (fbsd_collect_thread_registers): Delete.
3815 (struct fbsd_corefile_thread_data): Delete.
3816 (fbsd_corefile_thread): Delete.
3817 (fbsd_make_corefile_notes): Call
3818 gcore_elf_build_thread_register_notes instead of the now deleted
3820 * gcore-elf.c: New file, the content was moved here from
3821 linux-tdep.c, functions were renamed and given minor cleanup.
3822 * gcore-elf.h: New file.
3823 * gcore.c (gcore_find_signalled_thread): Moved here from
3824 linux-tdep.c and given a new name. Minor cleanups.
3825 * gcore.h (gcore_find_signalled_thread): Declare.
3826 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3827 (struct linux_collect_regset_section_cb_data): Delete.
3828 (linux_collect_regset_section_cb): Delete.
3829 (linux_collect_thread_registers): Delete.
3830 (linux_corefile_thread): Call
3831 gcore_elf_build_thread_register_notes.
3832 (find_signalled_thread): Delete.
3833 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3835 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3838 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3839 process_stratum_target parameter,
3840 sparc_store_inferior_registers): update callers.
3841 * sparc-nat.c (sparc_fetch_inferior_registers,
3842 sparc_store_inferior_registers): Add process_stratum_target
3843 parameter. Switch current thread before calling
3844 sparc_supply_gregset / sparc_collect_rwindow.
3845 (sparc_store_inferior_registers): Likewise.
3846 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3847 (sparc32obsd_collect_uthread): Likewise.
3848 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3850 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3851 sparc64obsd_supply_uthread): Add assertion.
3853 2021-03-04 Tom Tromey <tromey@adacore.com>
3855 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3856 (aux_add_nonlocal_symbols): Update.
3857 (ada_add_block_symbols): Change "found_sym" to bool.
3859 2021-03-03 Tom Tromey <tromey@adacore.com>
3861 * ada-lang.c (ada_resolve_function): Update comment.
3862 (is_nonfunction, add_symbols_from_enclosing_procs)
3863 (remove_extra_symbols): Likewise.
3864 (struct match_data): Add constructor, initializers.
3865 (add_nonlocal_symbols): Remove memset.
3866 (aux_add_nonlocal_symbols): Update comment.
3867 (ada_add_block_renamings, add_nonlocal_symbols)
3868 (ada_add_all_symbols): Likewise.
3869 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3871 2021-03-02 Tom Tromey <tromey@adacore.com>
3873 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3874 (cast_to_gnat_encoded_fixed_point_type): Remove.
3875 (ada_value_cast, ada_evaluate_subexp): Update.
3876 (gnat_encoded_fixed_point_type_info)
3877 (ada_is_gnat_encoded_fixed_point_type)
3878 (gnat_encoded_fixed_point_delta)
3879 (gnat_encoded_fixed_point_scaling_factor): Remove.
3880 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3881 (gnat_encoded_fixed_point_delta)
3882 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3883 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3884 (ada_print_type): Update.
3885 * ada-valprint.c (ada_value_print_num): Update.
3886 * dwarf2/read.c (ada_get_gnat_encoded_number)
3887 (ada_get_gnat_encoded_ratio): New functions.
3888 (finish_fixed_point_type): Use them. Add parameters.
3889 (GNAT_FIXED_POINT_SUFFIX): New define.
3890 (gnat_encoded_fixed_point_type_info): New function.
3891 (read_base_type): Handle gnat encodings.
3893 2021-03-02 Tom Tromey <tromey@adacore.com>
3895 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3896 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3898 (GROW_VECT): Remove.
3899 (grow_vect): Remove.
3901 2021-03-02 Tom Tromey <tromey@adacore.com>
3903 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3904 * ada-lang.c (resolve_subexp): Update.
3905 (ada_resolve_function): Accept a vector.
3906 (is_nonfunction, add_defn_to_vec)
3907 (add_symbols_from_enclosing_procs): Likewise.
3908 (num_defns_collected, defns_collected): Remove.
3909 (remove_extra_symbols): Return a vector.
3910 (remove_irrelevant_renamings): Return void.
3911 (ada_add_local_symbols): Accept a vector.
3912 (struct match_data) <obstackp>: Remove.
3913 <resultp>: New member.
3914 (aux_add_nonlocal_symbols): Update.
3915 (ada_add_block_renamings, add_nonlocal_symbols)
3916 (ada_add_all_symbols): Accept a vector.
3917 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3919 (ada_lookup_symbol): Update.
3920 (ada_add_block_symbols): Accept a vector.
3921 (get_var_value, iterate_over_symbols): Update.
3922 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3925 2021-03-02 Tom Tromey <tromey@adacore.com>
3927 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3929 2021-03-02 Tom Tromey <tromey@adacore.com>
3931 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3934 (ada_pspace_data): Remove destructor.
3935 <sym_cache>: Now a unique_ptr.
3936 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3937 (ada_get_symbol_cache): Use 'new'.
3938 (ada_clear_symbol_cache): Rewrite.
3940 2021-03-02 Tom Tromey <tromey@adacore.com>
3942 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3945 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
3948 * source.c (add_path): Skip empty dirnames.
3950 2021-02-25 Kevin Buettner <kevinb@redhat.com>
3952 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3953 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3955 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3958 * target.c (target_mourn_inferior): Only compare pids in
3959 target_mourn_inferior.
3961 2021-02-25 Jan Matyas <jmatyas@codasip.com>
3964 * remote.c (remote_target::start_remote): Ensure the single
3965 thread, automatically added for remote targets without the
3966 concept of threading, is initially in set to the "resumed"
3968 * remote.c (remote_target::add_current_inferior_and_thread):
3969 Add return value - return the main thread.
3971 2021-02-25 Jan Vrany <jan.vrany@labware.com>
3973 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3974 (mi_tsv_created): Likewise.
3975 (mi_tsv_deleted): Likewise.
3977 2021-02-25 Tom de Vries <tdevries@suse.de>
3980 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3981 section_kind for &dwo_file->sections.info.
3983 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3986 * f-lang.c (fortran_argument_convert): Delete declaration.
3987 (fortran_prepare_argument): New function.
3988 (evaluate_subexp_f): Move logic to new function
3989 fortran_prepare_argument.
3991 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3993 * f-exp.y (f77_keywords): Add 'associated'.
3994 * f-lang.c (fortran_associated): New function.
3995 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3996 (operator_length_f): Likewise.
3997 (print_unop_or_binop_subexp_f): New function.
3998 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3999 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4000 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4001 (operator_check_f): Likewise.
4002 * std-operator.def: Add FORTRAN_ASSOCIATED.
4004 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4006 * f-exp.y (fortran_operators): Add ".xor.".
4008 2021-02-24 Tom de Vries <tdevries@suse.de>
4011 * dwarf2/attribute.c (attribute::form_is_signed): New function
4013 * dwarf2/attribute.h (attribute::as_signed): ... here.
4014 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4015 (attribute::form_is_signed): Declare.
4016 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4017 for DW_AT_decl_file.
4019 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4021 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4022 order for <sys/ptrace.h> and <asm/ptrace.h>.
4024 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4026 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4029 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4031 * exec.c (set_section_command): Move variable declarations into
4032 the function body, and use std::string instead of a fixed size
4035 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4037 * exec.c (exec_target::get_section_table): Delete member function.
4038 (section_table_read_available_memory): Use current_top_target, not
4039 just the exec_ops target.
4040 * target-delegates.c: Regenerate.
4041 * target.c (default_get_section_table): New function.
4042 * target.h (target_ops::get_section_table): Change default
4043 behaviour to call default_get_section_table.
4044 (default_get_section_table): Declare.
4046 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4048 * exec.c (exec_target::close): Call new clear_target_sections
4050 (program_space::add_target_sections): Update name of member
4052 (program_space::add_target_sections): Update name of member
4054 (program_space::remove_target_sections): Likewise.
4055 (exec_one_fork): Use new target_sections member function.
4056 (exec_target::get_section_table): Likewise.
4057 (exec_target::files_info): Likewise.
4058 (set_section_command): Likewise.
4059 (exec_set_section_address): Likewise.
4060 (exec_target::has_memory): Use new target_sections member
4062 * progspace.h (program_space::clear_target_sections): New member
4064 (program_space::target_sections): Rename member variable to
4065 m_target_sections, replace with a new member function.
4066 (program_space::m_target_sections): New member variable.
4067 * solib-dsbt.c (scan_dyntag): Use new member function.
4068 * solib-svr4.c (scan_dyntag): Likewise.
4070 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4072 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4074 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4075 (section_table_read_available_memory): Make local const.
4076 (exec_target::xfer_partial): Make local const.
4077 (print_section_info): Make parameter const.
4078 * gdb/exec.h (print_section_info): Likewise.
4079 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4081 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4083 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4085 * gdb/s390-tdep.c (s390_load): Likewise.
4086 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4087 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4088 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4090 (target_debug_print_const_target_section_table_p): ...this.
4091 * gdb/target-delegates.c: Regenerate.
4092 * gdb/target.c (target_get_section_table): Make return type const.
4093 (target_section_by_addr): Likewise. Also make some locals const.
4094 (memory_xfer_partial_1): Make some locals const.
4095 * gdb/target.h (struct target_ops) <get_section_table>: Make
4097 (target_section_by_addr): Likewise.
4098 (target_get_section_table): Likewise.
4100 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4102 * NEWS: Mention new 'maint info target-sections' command.
4103 * maint.c (maintenance_info_target_sections): New function.
4104 (_initialize_maint_cmds): Register new command.
4106 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4108 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4109 (riscv_features_from_bfd): ...this. Change parameter type to
4110 'bfd*', and update as required.
4111 (riscv_find_default_target_description): Update call to
4112 riscv_features_from_bfd. Select a default xlen based on
4114 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4116 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4118 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4119 dynamic types in UNOP_IND.
4121 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4124 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4126 (~dwarf2_queue_guard): Clear queue.
4127 (queue_comp_unit): Assert that queue is
4129 (process_queue): Adjust.
4130 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4132 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4135 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4136 to decide whether or not to enqueue it for expansion.
4137 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4138 after calling maybe_queue_comp_unit.
4140 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4142 * linux-nat.c (linux_nat_filter_event): Return void.
4144 2021-02-22 Tom Tromey <tromey@adacore.com>
4146 * solib-svr4.c (enable_break): Update.
4147 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4149 (target_bfd_reopen): Change parameter type.
4150 * bfd-target.h (target_bfd_reopen): Change parameter type.
4152 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4154 * thread.c (add_thread_silent): Add assert.
4155 (find_thread_ptid): Add assert.
4157 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4160 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4161 (target_unpush_up): Likewise.
4162 * procfs.c (procfs_target::attach): Push target early. Use
4163 target_unpush_up to unpush target in case of error.
4164 * target.h (struct target_unpusher): Move here.
4165 (target_unpush_up): Likewise.
4167 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4169 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4170 (which in turn includes <gnulib/config.h>) before include
4173 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4176 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4177 (decode_j_type_insn): Likewise.
4178 (decode_cj_type_insn): Likewise.
4179 (decode_b_type_insn): Likewise.
4182 2021-02-18 Tom Tromey <tom@tromey.com>
4184 * expression.h (struct expression) <evaluate>: Declare method.
4185 * eval.c (evaluate_subexp): Simplify.
4186 (expression::evaluate): New method.
4187 (evaluate_expression, evaluate_type): Use expression::evaluate.
4189 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4191 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4193 (ada_lookup_name_info): Likewise.
4195 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4197 * aclocal.m4: Regenerate.
4199 2021-02-12 Tom de Vries <tdevries@suse.de>
4202 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4203 (lin_thread_signals): New static var.
4204 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4206 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4207 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4209 * linux-thread-db.c (check_thread_signals): Use
4210 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4212 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4214 * f-exp.y (f77_keywords): Add allocated.
4215 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4216 (operator_length_f): Likewise.
4217 (print_subexp_f): Likewise.
4218 (dump_subexp_body_f): Likewise.
4219 (operator_check_f): Likewise.
4220 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4222 2021-02-11 Tom de Vries <tdevries@suse.de>
4225 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4226 Return true for DW_FORM_strx.
4228 2021-02-11 Tom Tromey <tromey@adacore.com>
4231 * parse.c (write_exp_symbol_reference): Write sym.block.
4233 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4235 * NEWS: Mention changes to 'maint info sections'.
4236 * maint.c (match_substring): Return a bool, fix whitespace issue.
4237 (struct single_bfd_flag_info): New struct.
4238 (bfd_flag_info): New static global.
4239 (match_bfd_flags): Return a bool, use bfd_flag_info.
4240 (print_bfd_flags): Use bfd_flag_info.
4241 (maint_print_section_info): Delete trailing whitespace.
4242 (struct maint_info_sections_opts): New struct.
4243 (maint_info_sections_option_defs): New static global.
4244 (maint_info_sections_completer): New function.
4245 (maintenance_info_sections): Use option parsing mechanism.
4246 (_initialize_maint_cmds): Update command help text for 'maint info
4247 sections' and register a command completer.
4249 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4251 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4252 functionality merged into...
4253 (maint_print_all_sections): ...this new function.
4254 (maintenance_info_sections): Make use of maint_print_all_sections,
4255 allow all objects to be printed even where there's no executable.
4257 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4259 * breakpoint.c (resolve_sal_pc): Make use of
4260 bound_minimal_symbol::obj_section.
4261 * maint.c (maintenance_translate_address): Likewise.
4262 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4263 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4265 * printcmd.c (info_address_command): Make use of
4266 bound_minimal_symbol::obj_section.
4268 2021-02-11 Alan Modra <amodra@gmail.com>
4270 * arm-symbian-tdep.c: Delete.
4271 * NEWS: Mention arm-symbian removal.
4272 * Makefile.in: Remove arm-symbian-tdep entries.
4273 * configure.tgt: Remove arm*-*-symbianelf*.
4274 * doc/gdb.texinfo: Remove mention of SymbianOS.
4275 * osabi.c (gdb_osabi_names): Remove "Symbian".
4276 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4277 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4278 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4280 * testsuite/gdb.base/dup-sect.exp: Likewise.
4281 * testsuite/gdb.base/long_long.exp: Likewise.
4282 * testsuite/gdb.base/solib-weak.exp: Likewise.
4283 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4284 * testsuite/gdb.python/py-section-script.exp: Likewise.
4285 * testsuite/lib/dwarf.exp: Likewise.
4286 * testsuite/lib/gdb.exp: Likewise.
4288 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4290 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4291 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4292 (one_or_two_args): New pattern.
4293 (f77_keywords): Add lbound and ubound.
4294 * f-lang.c (fortran_bounds_all_dims): New function.
4295 (fortran_bounds_for_dimension): New function.
4296 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4297 (operator_length_f): Likewise.
4298 (print_subexp_f): Likewise.
4299 (dump_subexp_body_f): Likewise.
4300 (operator_check_f): Likewise.
4301 * std-operator.def (FORTRAN_LBOUND): Define.
4302 (FORTRAN_UBOUND): Define.
4304 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4306 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4307 and set_section_index member functions where appropriate.
4308 * coffread.c (coff_symtab_read): Likewise.
4309 (process_coff_symbol): Likewise.
4310 * ctfread.c (set_symbol_address): Likewise.
4311 * dwarf2/read.c (add_partial_symbol): Likewise.
4312 (var_decode_location): Likewise.
4313 * language.c: Likewise.
4314 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4315 (compact_minimal_symbols): Likewise.
4316 (minimal_symbol_upper_bound): Likewise.
4317 * objfiles.c (relocate_one_symbol): Likewise.
4318 * psympriv.h (partial_symbol::obj_section): Likewise.
4319 (partial_symbol::address): Likewise.
4320 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4321 * stabsread.c (scan_file_globals): Likewise.
4322 * symmisc.c (dump_msymbols): Likewise.
4323 * symtab.c (general_symbol_info::obj_section): Likewise.
4324 (fixup_section): Likewise.
4325 (get_msymbol_address): Likewise.
4326 * symtab.h (general_symbol_info::section): Rename to...
4327 (general_symbol_info::m_section): ...this.
4328 (general_symbol_info::set_section_index): New member function.
4329 (general_symbol_info::section_index): Likewise.
4330 (SYMBOL_SECTION): Delete.
4331 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4332 set_section_index member functions where appropriate.
4333 (MSYMBOL_SECTION): Delete.
4334 (symbol::symbol): Update to initialize 'm_section'.
4335 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4336 (process_xcoff_symbol): Likewise.
4338 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4340 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4341 MSYMBOL_OBJ_SECTION.
4342 * findvar.c (language_defn::read_var_value): Likewise.
4343 * infcmd.c (jump_command): Likewise.
4344 * linespec.c (minsym_found): Likewise.
4345 * maint.c (maintenance_translate_address): Likewise.
4346 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4347 (minimal_symbol_upper_bound): Likewise.
4348 * parse.c (find_minsym_type_and_address): Likewise.
4349 (operator_check_standard): Likewise.
4350 * printcmd.c (info_address_command): Likewise.
4351 * symmisc.c (dump_msymbols): Likewise.
4352 (print_symbol): Likewise.
4353 * symtab.c (general_symbol_info::obj_section): Define new
4355 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4356 (find_pc_sect_compunit_symtab): Likewise.
4357 (find_function_start_sal): Likewise.
4358 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4359 MSYMBOL_OBJ_SECTION.
4360 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4362 (SYMBOL_OBJ_SECTION): Delete.
4363 (MSYMBOL_OBJ_SECTION): Delete.
4365 2021-02-09 Tom Tromey <tom@tromey.com>
4367 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4369 2021-02-09 Tom de Vries <tdevries@suse.de>
4372 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4373 construct an array type. Add assert to ensure that element_type is
4376 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4378 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4379 (gcore_collect_regset_section_cb): Delete.
4380 (gcore_collect_thread_registers): Delete.
4381 (gcore_build_thread_register_notes): Delete.
4382 (gcore_find_signalled_thread): Delete.
4383 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4384 'gdbarch' and 'thread_info' declarations.
4385 (gcore_build_thread_register_notes): Delete declaration.
4386 (gcore_find_signalled_thread): Likewise.
4387 * fbsd-tdep.c: Remove 'gcore.h' include.
4388 (struct fbsd_collect_regset_section_cb_data): New struct.
4389 (fbsd_collect_regset_section_cb): New function.
4390 (fbsd_collect_thread_registers): New function.
4391 (struct fbsd_corefile_thread_data): New struct.
4392 (fbsd_corefile_thread): New function.
4393 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4394 * linux-tdep.c: Remove 'gcore.h' include.
4395 (struct linux_collect_regset_section_cb_data): New struct.
4396 (linux_collect_regset_section_cb): New function.
4397 (linux_collect_thread_registers): New function.
4398 (linux_corefile_thread): Call Linux specific code.
4399 (find_signalled_thread): New function.
4400 (linux_make_corefile_notes): Call find_signalled_thread.
4402 2021-02-09 Tom Tromey <tromey@adacore.com>
4404 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4406 * value.c (value_contents_copy_raw): Now static.
4407 * value.h (value_contents_copy_raw): Don't declare.
4409 2021-02-09 Tom Tromey <tromey@adacore.com>
4411 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4414 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4417 * arc-linux-tdep.c (handle_atomic_sequence): New.
4418 (arc_linux_software_single_step): Call handle_atomic_sequence().
4420 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4422 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4424 (REQUIRE_WINDOW): Call is_valid member function.
4425 (REQUIRE_WINDOW_FOR_SETTER): New define.
4426 (gdbpy_tui_is_valid): Call is_valid member function.
4427 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4428 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4430 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4431 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4434 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4436 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4437 for the title is not nullptr.
4439 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4441 * tui-layout.c (saved_tui_windows): Delete.
4442 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4443 call new get_windows member function instead.
4444 (tui_get_window_by_name): Check in tui_windows.
4445 (tui_layout_window::apply): Don't add to tui_windows.
4446 * tui-layout.h (tui_layout_base::get_windows): New member function.
4447 (tui_layout_window::get_windows): Likewise.
4448 (tui_layout_split::get_windows): Likewise.
4450 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4452 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4453 of the window objects.
4455 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4457 * python/python.c (gdbpy_print_stack): Reformat an error message.
4459 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4461 * tui/tui-interp.c (tui_command_line_handler): New function.
4462 (tui_interp::resume): Register tui_command_line_handler as the
4464 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4466 (tui_getc_1): Delete handling of '\n' and '\r'.
4467 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4469 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4471 * tui/tui-regs.c (tui_data_window::display_registers_from):
4472 Mark invisible register sub windows.
4473 (tui_data_window::check_register_values): Ignore invisible
4474 register sub windows.
4476 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4478 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4479 n_spaces with a negative value.
4481 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4483 * tui/tui-regs.c (tui_data_window::display_registers_from):
4484 Add refresh_window call.
4486 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4488 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4490 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4492 * symmisc.c (std_in, std_out, std_err): Remove.
4493 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4495 2021-02-05 Tom de Vries <tdevries@suse.de>
4497 PR breakpoints/27330
4498 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4499 glibc object file has debug info.
4501 2021-02-05 Tom de Vries <tdevries@suse.de>
4504 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4506 2021-02-05 Tom de Vries <tdevries@suse.de>
4508 PR breakpoints/27313
4509 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4512 2021-02-05 Tom Tromey <tom@tromey.com>
4514 * compile/compile-c-support.c (get_compile_context)
4515 (c_get_compile_context, cplus_get_compile_context): Change return
4517 * language.c (language_defn::get_compile_instance): New method.
4518 * language.h (language_defn::get_compile_instance): Change return
4519 type. No longer inline.
4520 * c-lang.c (c_language::get_compile_instance): Change return type.
4521 (cplus_language::get_compile_instance): Change return type.
4522 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4524 * compile/compile.c (compile_to_object): Update.
4526 2021-02-05 Tom Tromey <tom@tromey.com>
4528 * parser-defs.h (write_exp_symbol_reference): Declare.
4529 * parse.c (write_exp_symbol_reference): New function.
4530 * p-exp.y (variable): Use write_exp_symbol_reference.
4531 * m2-exp.y (variable): Use write_exp_symbol_reference.
4532 * f-exp.y (variable): Use write_exp_symbol_reference.
4533 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4534 * c-exp.y (variable): Use write_exp_symbol_reference.
4536 2021-02-05 Tom de Vries <tdevries@suse.de>
4539 * valarith.c (complex_binop): Throw an error if complex type can't
4542 2021-02-05 Tom de Vries <tdevries@suse.de>
4545 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4548 2021-02-05 Tom de Vries <tdevries@suse.de>
4550 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4552 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4554 * configure.tgt (riscv*-*-*): Set gdb_sim.
4556 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4558 * target.c (target_is_non_stop_p): Return bool.
4559 * target.h (target_is_non_stop_p): Return bool.
4561 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4563 * record-full.c (record_full_async_inferior_event_handler):
4564 Don't clear async event handler.
4565 (record_full_base_target::wait): Clear async event handler at
4568 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4570 * record-btrace.c (record_btrace_handle_async_inferior_event):
4571 Don't clear async event handler.
4572 (record_btrace_target::wait): Clear async event handler at
4575 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4577 * remote.c (remote_target::wait): Clear async event handler at
4578 beginning, mark if needed at the end.
4579 (remote_async_inferior_event_handler): Don't set or clear async
4582 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4584 * async-event.h (async_event_handler_func): Add documentation.
4585 * async-event.c (check_async_event_handlers): Don't clear
4586 async_event_handler ready flag.
4587 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4589 * record-btrace.c (record_btrace_handle_async_inferior_event):
4591 * record-full.c (record_full_async_inferior_event_handler):
4593 * remote-notif.c (remote_async_get_pending_events_handler):
4595 * remote.c (remote_async_inferior_event_handler): Likewise.
4597 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4599 * infrun.c (handle_inferior_event): Move stop_soon variable to
4602 2021-02-03 Pedro Alves <pedro@palves.net>
4604 * infcmd.c (detach_command): Hold strong reference to target, and
4605 if all-stop on entry, restart threads on exit.
4606 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4607 (restart_stepped_thread): ... this new function. Also handle
4609 (restart_after_all_stop_detach): New function.
4610 * infrun.h (restart_after_all_stop_detach): Declare.
4612 2021-02-03 Pedro Alves <pedro@palves.net>
4614 * infrun.c (struct step_over_info): Initialize fields.
4615 (prepare_for_detach): Handle ongoing in-line step over.
4617 2021-02-03 Pedro Alves <pedro@palves.net>
4619 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4621 * remote.c (remote_target::remote_detach_1): ... and here ...
4622 * target.c (target_detach): ... instead of here.
4623 * target.h (target_ops::detach): Add comment.
4625 2021-02-03 Pedro Alves <pedro@palves.net>
4627 * infrun.c (struct wait_one_event): Move higher up.
4628 (prepare_for_detach): Abort in-progress displaced steps instead of
4629 letting them complete.
4630 (handle_one): If the inferior is detaching, don't add the thread
4631 back to the global step-over chain.
4632 (restart_threads): Don't restart threads if detaching.
4633 (handle_signal_stop): Remove inferior::detaching reference.
4635 2021-02-03 Pedro Alves <pedro@palves.net>
4637 * infrun.c (prepare_for_detach): Don't release scoped_restore
4640 2021-02-03 Pedro Alves <pedro@palves.net>
4642 * infrun.c (handle_one): New function, factored out from ...
4643 (stop_all_threads): ... here.
4645 2021-02-03 Pedro Alves <pedro@palves.net>
4647 * remote.c (remote_notif_stop_ack): Don't error out on
4648 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4649 (remote_target::discard_pending_stop_replies): Don't delete
4650 in-flight notification; instead, clear its contents.
4652 2021-02-03 Pedro Alves <pedro@palves.net>
4654 * remote.c (extended_remote_target::attach): Set target async in
4655 the target-non-stop path too.
4657 2021-02-03 Pedro Alves <pedro@palves.net>
4660 * infrun.c (handle_signal_stop): Move main context_switch call
4661 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4663 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4665 * NEWS (Changed commands): Add entry for the behavior change of
4666 the inferior command.
4667 * inferior.c (inferior_command): When no argument is given to the
4668 inferior command, display info about the currently selected
4671 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4673 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4675 (read_attribute_reprocess): Adjust.
4677 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4679 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4680 <gnu_ranges_base>: ... this...
4681 <rnglists_base>: ... and this.
4682 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4683 <gnu_ranges_base>: ... this...
4684 <rnglists_base>: ... and this.
4685 (read_cutu_die_from_dwo): Adjust
4686 (dwarf2_get_pc_bounds): Adjust
4687 (dwarf2_record_block_ranges): Adjust.
4688 (read_full_die_1): Adjust
4689 (partial_die_info::read): Adjust.
4690 (read_rnglist_index): Adjust.
4692 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4695 * dwarf2/read.c (read_loclists_rnglists_header): Add
4696 header_offset parameter and use it.
4697 (read_loclist_index): Read header of the current contribution,
4698 not the one at the beginning of the section.
4699 (read_rnglist_index): Likewise.
4701 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4704 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4705 requires_reprocessing flag.
4706 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4708 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4709 and DW_FORM_loclistx.
4710 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4711 instead of set_address for DW_FORM_loclistx and
4714 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4716 * dwarf2/read.c (read_loclist_index): Remove bound check for
4718 (read_rnglist_index): Likewise.
4720 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4722 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4725 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4727 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4729 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4731 * dwarf2/read.c (read_loclist_index): Change complaints into
4734 2021-02-02 Tom de Vries <tdevries@suse.de>
4737 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4740 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4742 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4743 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4744 here from linux-tdep.c and given a new name. Minor cleanups.
4745 (gcore_collect_regset_section_cb): Likewise.
4746 (gcore_collect_thread_registers): Likewise.
4747 (gcore_build_thread_register_notes): Likewise.
4748 (gcore_find_signalled_thread): Likewise.
4749 * gcore.h (gcore_build_thread_register_notes): Declare.
4750 (gcore_find_signalled_thread): Declare.
4751 * fbsd-tdep.c: Add 'gcore.h' include.
4752 (struct fbsd_collect_regset_section_cb_data): Delete.
4753 (fbsd_collect_regset_section_cb): Delete.
4754 (fbsd_collect_thread_registers): Delete.
4755 (struct fbsd_corefile_thread_data): Delete.
4756 (fbsd_corefile_thread): Delete.
4757 (fbsd_make_corefile_notes): Call
4758 gcore_build_thread_register_notes instead of the now deleted
4760 * linux-tdep.c: Add 'gcore.h' include.
4761 (struct linux_collect_regset_section_cb_data): Delete.
4762 (linux_collect_regset_section_cb): Delete.
4763 (linux_collect_thread_registers): Delete.
4764 (linux_corefile_thread): Call
4765 gcore_build_thread_register_notes.
4766 (find_signalled_thread): Delete.
4767 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4769 2021-01-29 Tom de Vries <tdevries@suse.de>
4771 PR breakpoints/26063
4772 * infrun.c (process_event_stop_test): Reset
4773 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4776 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4778 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4779 assert. Extend the header comment.
4781 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4783 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4784 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4785 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4786 (tui_locator_win_info_ptr): Delete declaration.
4787 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4788 (tui_disasm_window::set_contents): Fetch state from tui_location
4790 (tui_get_begin_asm_address): Likewise.
4791 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4793 (get_locator_window): Delete.
4794 (initialize_known_windows): Treat locator window just like all the
4796 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4797 (tui_source_window::set_contents): Fetch state from tui_location
4799 (tui_source_window::showing_source_p): Likewise.
4800 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4802 (tui_locator_win_info_ptr): Delete.
4803 (tui_locator_window::make_status_line): Fetch state from
4804 tui_location global.
4805 (tui_locator_window::rerender): Remove check of 'handle',
4806 reindent function body.
4807 (tui_locator_window::set_locator_fullname): Delete.
4808 (tui_locator_window::set_locator_info): Delete.
4809 (tui_update_locator_fullname): Delete.
4810 (tui_show_frame_info): Likewise.
4811 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4812 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4813 tui/tui-location.h and renamed to
4814 tui_location_tracker::set_location.
4815 (tui_locator_window::set_locator_fullname): Moved to
4816 tui/tui-location.h and renamed to
4817 tui_location_tracker::set_fullname.
4818 (tui_locator_window::full_name): Delete.
4819 (tui_locator_window::proc_name): Delete.
4820 (tui_locator_window::line_no): Delete.
4821 (tui_locator_window::addr): Delete.
4822 (tui_locator_window::gdbarch): Delete.
4823 (tui_update_locator_fullname): Delete declaration.
4824 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4826 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4827 (tui_display_main): Call function on tui_location directly.
4828 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4829 * tui/tui-location.c: New file.
4830 * tui/tui-location.h: New file.
4832 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4834 * gdbtypes.h (get_type_arch): Rename to...
4835 (struct type) <arch>: ... this, update all users.
4837 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4839 * gdbtypes.h (struct type) <arch>: Rename to...
4840 <arch_owner>: ... this, update all users.
4841 <objfile>: Rename to...
4842 <objfile_owner>: ... this, update all users.
4844 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4846 * gdbcmd.h (execute_command_to_string): Update comment.
4847 * top.c (execute_command_to_string): Update header comment.
4849 2021-01-28 Tom de Vries <tdevries@suse.de>
4851 PR breakpoints/27205
4852 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4853 (create_longjmp_master_breakpoint_names): New function, factored out
4855 (create_longjmp_master_breakpoint): ... here. Only try to install
4856 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4857 breakpoint in libc.so failed.
4859 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4862 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4863 unique_ptr is released when the wrapped pointer is kept for later
4866 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4868 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4869 BLR and BR instructions.
4870 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4871 (enum aarch64_masks): New.
4873 2021-01-26 Tom Tromey <tromey@adacore.com>
4875 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4876 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4877 (windows_init_thread_list, windows_nat::handle_load_dll)
4878 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4879 (windows_nat_target::resume)
4880 (windows_nat_target::get_windows_debug_event)
4881 (windows_nat_target::interrupt, windows_xfer_memory)
4882 (windows_nat_target::close): Update.
4883 * nat/windows-nat.c (DEBUG_EVENTS): Use
4884 debug_prefixed_printf_cond.
4885 (matching_pending_stop, fetch_pending_stop)
4886 (continue_last_debug_event): Update.
4888 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4890 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4891 elfcore_write_file_note.
4893 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
4895 * arc-tdep.c (arc_add_reggroups): New function.
4896 (arc_gdbarch_init): Call arc_add_reggroups.
4898 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
4900 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4902 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4903 Simon Marchi <simon.marchi@polymtl.ca>
4904 Tom de Vries <tdevries@suse.de>
4906 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4909 2021-01-25 Tom Tromey <tromey@adacore.com>
4911 * dwarf2/read.c (get_mpz): New function.
4912 (get_dwarf2_rational_constant): Use it.
4914 2021-01-25 Tom Tromey <tromey@adacore.com>
4916 * ada-lang.c (resolve_subexp): Handle array context.
4918 2021-01-23 Tom Tromey <tom@tromey.com>
4921 * compile/compile-loc2c.c (note_register): New function.
4922 (pushf_register_address, pushf_register): Use it.
4924 2021-01-23 Tom Tromey <tom@tromey.com>
4926 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4927 Change type of "registers_used".
4928 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4929 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4930 (locexpr_generate_c_location, loclist_generate_c_location): Change
4931 type of "registers_used".
4932 * compile/compile.h (compile_dwarf_expr_to_c)
4933 (compile_dwarf_bounds_to_c): Update.
4934 * compile/compile-loc2c.c (pushf_register_address)
4935 (pushf_register, do_compile_dwarf_expr_to_c)
4936 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4937 of "registers_used".
4938 * compile/compile-c.h (generate_c_for_variable_locations):
4940 * compile/compile-c-symbols.c (generate_vla_size)
4941 (generate_c_for_for_one_variable): Change type of
4943 (generate_c_for_variable_locations): Return std::vector.
4944 * compile/compile-c-support.c (generate_register_struct): Change
4945 type of "registers_used".
4948 2021-01-23 Tom Tromey <tom@tromey.com>
4950 * compile/compile-internal.h (class compile_instance)
4951 <set_arguments>: Change return type.
4952 * compile/compile.c (compile_to_object): Remove call to reset.
4953 (compile_instance::set_arguments): Change return type.
4955 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4957 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4958 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4960 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4962 * Makefile.in (SELFTESTS_SRCS): Add
4963 unittests/gdb_tilde_expand-selftests.c.
4964 * unittests/gdb_tilde_expand-selftests.c: New file.
4966 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4969 * NEWS: Mention new command.
4970 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4971 (version_style): Define.
4972 (cli_style_option::cli_style_option): Add intensity parameter, and
4974 (_initialize_cli_style): Register version style set/show commands.
4975 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4976 (version_style): Declare.
4977 * top.c (print_gdb_version): Use version_stype, and styled_string
4978 to print the GDB version string.
4980 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4982 * utils.c (emit_style_escape): Only emit an escape sequence if the
4983 requested style is different than the current applied style.
4984 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4985 current applied_style.
4986 (fputs_styled): Remove is_default check.
4987 (fputs_styled_unfiltered): Likewise.
4988 (vfprintf_styled_no_gdbfmt): Likewise.
4990 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4992 * remote.h (remote_debug_printf): New.
4993 (remote_debug_printf_nofunc): New.
4994 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4995 * remote.c: Use above macros throughout file.
4997 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4999 * remote.h (remote_debug): Change to bool.
5000 * remote.c (remote_debug): Change to bool.
5001 (_initialize_remote): Adjust.
5003 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5005 * target.h (remote_debug): Move to...
5006 * remote.h (remote_debug): ... here.
5007 * top.c (remote_debug): Move to...
5008 * remote.c (remote_debug): ... here.
5009 * remote-sim.c: Include remote.h.
5011 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5013 * cli/cli-cmds.c (show_remote_debug): Remove.
5014 (show_remote_timeout): Remove.
5015 (_initialize_cli_cmds): Don't register commands.
5016 * remote.c (show_remote_debug): Move here.
5017 (show_remote_timeout): Move here.
5018 (_initialize_remote): Register commands.
5020 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5022 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5023 type::objfile method instead.
5025 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5027 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5028 use the type::is_objfile_owned method.
5030 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5032 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5033 (TYPE_OWNER): Remove.
5034 (TYPE_OBJFILE): Adjust.
5035 (struct main_type) <flag_objfile_owned>: Rename to...
5036 <m_flag_objfile_owned>: ... this.
5037 <owner>: Rename to...
5038 <m_owner>: ... this.
5039 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5041 (TYPE_ALLOC): Adjust.
5042 * gdbtypes.c (alloc_type): Adjust.
5043 (alloc_type_arch): Adjust.
5044 (alloc_type_copy): Adjust.
5045 (get_type_arch): Adjust.
5046 (smash_type): Adjust.
5047 (lookup_array_range_type): Adjust.
5048 (recursive_dump_type): Adjust.
5049 (copy_type_recursive): Adjust.
5050 * compile/compile-c-types.c (convert_func): Adjust.
5051 (convert_type_basic): Adjust.
5052 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5055 (language_arch_info::type_and_symbol::alloc_type_symbol):
5058 2021-01-21 Luis Machado <luis.machado@linaro.org>
5060 * coffread.c (enter_linenos): Passing string to complaint.
5061 * valops.c (value_assign): Make array view.
5063 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5065 * auto-load.h (debug_auto_load): Move here.
5066 (auto_load_debug_printf): New.
5067 * auto-load.c: Use auto_load_debug_printf.
5068 (debug_auto_load): Move to header.
5069 * linux-thread-db.c (try_thread_db_load): Use
5070 auto_load_debug_printf.
5071 * main.c (captured_main_1): Likewise.
5073 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5075 * f-valprint.c (f77_array_offset_tbl): Remove.
5077 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5079 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5081 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5083 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5086 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5089 * python/py-breakpoint.c (bppy_get_location): Handle
5090 bp_hardware_breakpoint.
5091 (bppy_init): Likewise.
5092 (gdbpy_breakpoint_created): Likewise.
5094 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5096 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5098 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5100 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5101 (_initialize_gdb_bfd): Adjust.
5103 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5106 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5108 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5110 * dwarf2/read.c (follow_die_offset): Add logging.
5111 (dwarf2_per_objfile::age_comp_units): Add logging.
5113 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5115 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5116 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5117 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5118 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5119 * arm-tdep.c (struct frame_unwind): Make static.
5120 * auto-load.c (auto_load_safe_path_vec): Make static.
5121 * csky-tdep.c (csky_stub_unwind): Make static.
5122 * gdbarch.c (gdbarch_data_registry): Make static.
5123 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5124 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5125 * i386-tdep.c (i386_frame_setup_skip_insns,
5126 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5128 * infrun.c (observer_mode): Make static.
5129 * linux-nat.c (sigchld_action): Make static.
5130 * linux-thread-db.c (thread_db_list): Make static.
5131 * maint-test-options.c (maintenance_test_options_list):
5132 * mep-tdep.c (mep_csr_registers): Make static.
5133 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5134 (stats): Make static.
5135 * nat/linux-osdata.c (struct osdata_type): Make static.
5136 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5137 * progspace.c (last_program_space_num): Make static.
5138 * python/py-param.c (struct parm_constant): Remove struct type
5140 (parm_constants): Make static.
5141 * python/py-record-btrace.c (btpy_list_methods): Make static.
5142 * python/py-record.c (recpy_gap_type): Make static.
5143 * record.c (record_goto_cmdlist): Make static.
5144 * regcache.c (regcache_descr_handle): Make static.
5145 * registry.h (DEFINE_REGISTRY): Make definition static.
5146 * symmisc.c (std_in, std_out, std_err): Make static.
5147 * top.c (previous_saved_command_line): Make static.
5148 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5150 * unittests/command-def-selftests.c (nr_duplicates,
5151 nr_invalid_prefixcmd, lists): Make static.
5152 * unittests/observable-selftests.c (test_notification): Make
5154 * unittests/optional/assignment/1.cc (counter): Make static.
5155 * unittests/optional/assignment/2.cc (counter): Make static.
5156 * unittests/optional/assignment/3.cc (counter): Make static.
5157 * unittests/optional/assignment/4.cc (counter): Make static.
5158 * unittests/optional/assignment/5.cc (counter): Make static.
5159 * unittests/optional/assignment/6.cc (counter): Make static.
5161 2021-01-20 Joel Sherrill <joel@rtems.org>
5164 * remote.c (struct remote_thread_info) <resume_state>: Rename
5166 <get_resume_state>: ... this.
5167 (remote_target::resume): Adjust.
5168 (remote_target::commit_resume): Adjust.
5169 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5171 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5172 Tom Tromey <tom@tromey.com>
5174 * stap-probe.c (stap_parse_single_operand): Handle '!'
5176 (stap_parse_argument_conditionally): Likewise.
5177 Skip spaces after processing open-parenthesis sub-expression.
5178 (stap_parse_argument_1): Skip spaces after call to
5179 stap_parse_argument_conditionally.
5180 Handle case when right-side expression is a parenthesized
5182 Skip spaces after call to stap_parse_argument_1.
5184 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5186 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5188 2021-01-19 Luis Machado <luis.machado@linaro.org>
5190 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5191 memory and save data.
5192 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5193 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5194 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5195 (trad_frame_value_bytes_p): Remove.
5196 (trad_frame_reset_saved_regs): Adjust documentation.
5197 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5198 constructor and reset the state of the registers.
5199 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5200 (trad_frame_value_bytes_p, trad_frame_set_value)
5201 (trad_frame_set_realreg, trad_frame_set_addr)
5202 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5203 (trad_frame_set_reg_realreg): Update to call member function.
5204 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5205 (trad_frame_get_prev_register): Likewise.
5207 * aarch64-tdep.c (aarch64_analyze_prologue)
5208 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5209 (aarch64_prologue_prev_register): Update to use member functions.
5210 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5211 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5212 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5213 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5214 (arm_make_epilogue_frame_cache): Likewise.
5215 * avr-tdep.c (avr_frame_unwind_cache)
5216 (avr_frame_prev_register): Likewise.
5217 * cris-tdep.c (cris_scan_prologue): Likewise.
5218 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5219 * frv-tdep.c (frv_analyze_prologue): Likewise.
5220 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5221 * lm32-tdep.c (lm32_frame_cache): Likewise.
5222 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5223 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5224 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5225 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5226 (reset_saved_regs): Adjust to set realreg.
5227 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5228 call member functions.
5229 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5230 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5231 (s390_backchain_frame_unwind_cache): Likewise.
5232 * score-tdep.c (score7_analyze_prologue)
5233 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5234 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5235 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5236 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5237 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5238 * tilegx-tdep.c (tilegx_analyze_prologue)
5239 (tilegx_frame_cache): Likewise.
5240 * v850-tdep.c (v850_frame_cache): Likewise.
5241 * vax-tdep.c (vax_frame_cache): Likewise.
5243 2021-01-19 Luis Machado <luis.machado@linaro.org>
5245 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5247 (put_frame_register_bytes): Likewise.
5248 Adjust documentation.
5249 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5250 (safe_frame_unwind_memory): Likewise.
5251 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5252 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5254 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5255 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5256 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5257 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5258 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5259 * dwarf2/loc.c (rw_pieced_value): Likewise.
5260 * hppa-tdep.c (hppa_frame_cache): Likewise.
5261 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5262 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5263 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5264 (i386_linux_rt_sigtramp_start): Likewise.
5265 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5266 * i386-tdep.c (i386_register_to_value): Likewise.
5267 * i387-tdep.c (i387_register_to_value): Likewise.
5268 * ia64-tdep.c (ia64_register_to_value): Likewise.
5269 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5270 (m32r_linux_rt_sigtramp_start): Likewise.
5271 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5272 * m68k-tdep.c (m68k_register_to_value): Likewise.
5273 * mips-tdep.c (mips_register_to_value)
5274 (mips_value_to_register): Likewise.
5275 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5276 (ppcfbsd_sigtramp_frame_cache): Likewise.
5277 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5278 (ppcobsd_sigtramp_frame_cache): Likewise.
5279 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5280 (rs6000_register_to_value): Likewise.
5281 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5282 * tramp-frame.c (tramp_frame_start): Likewise.
5283 * valops.c (value_assign): Likewise.
5285 2021-01-19 Luis Machado <luis.machado@linaro.org>
5287 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5289 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5290 instead of buffer and size.
5291 (trad_frame_set_reg_value_bytes): Likewise.
5292 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5293 (trad_frame_set_value_bytes): Likewise.
5295 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5297 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5299 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5301 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5302 (riscv_fbsd_gregset): Use riscv_supply_regset.
5303 (riscv_fbsd_fpregset): Likewise.
5304 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5305 (riscv_linux_fregset): Likewise.
5306 * riscv-tdep.c (riscv_supply_regset): Define new function.
5307 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5309 2021-01-18 Tom de Vries <tdevries@suse.de>
5312 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5314 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5317 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5319 * remote.c (class remote_target) <remote_hostio_send_command,
5320 remote_hostio_parse_result>: Constify parameter.
5321 (remote_hostio_parse_result): Likewise.
5322 (remote_target::remote_hostio_send_command): Adjust.
5323 (remote_target::remote_hostio_pread_vFile): Adjust.
5324 (remote_target::fileio_readlink): Adjust.
5325 (remote_target::fileio_fstat): Adjust.
5327 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5329 * remote.c (remote_target::start_remote): Move wait_status to
5332 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5334 * remote.c (class remote_target):
5335 <add_current_inferior_and_thread>: Constify parameter.
5336 (stop_reply_extract_thread): Likewise.
5337 (remote_target::get_current_thread): Likewise.
5338 (remote_target::add_current_inferior_and_thread): Likewise.
5340 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5342 * remote.c (class remote_target)
5343 <remote_unpack_thread_info_response,
5344 parse_threadlist_response>: Constify parameter and/or return
5345 value and or local variable.
5346 (stub_unpack_int): Likewise.
5347 (unpack_nibble): Likewise.
5348 (unpack_byte): Likewise.
5349 (unpack_int): Likewise.
5350 (unpack_string): Likewise.
5351 (unpack_threadid): Likewise.
5352 (remote_target::remote_unpack_thread_info_response): Likewise.
5353 (remote_target::parse_threadlist_response): Likewise.
5355 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5357 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5359 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5361 * MAINTAINERS (Write After Approval): Add myself.
5363 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5365 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5366 because is_trivially_default_constructible was first implemented with
5369 2021-01-14 Tom de Vries <tdevries@suse.de>
5371 PR breakpoints/27151
5372 * objfiles.h (in_plt_section): Handle .plt.sec.
5374 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5378 (remote_target::select_thread_for_ambiguous_stop_reply): New
5380 (remote_target::process_stop_reply): Call
5381 select_thread_for_ambiguous_stop_reply.
5383 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5385 * record-btrace.c (class record_btrace_target): Remove.
5386 (record_btrace_target::commit_resume): Remove.
5387 * record-full.c (class record_full_target): Remove.
5388 (record_full_target::commit_resume): Remove.
5390 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5392 * remote.c (enum class resume_state): New.
5393 (struct resumed_pending_vcont_info): New.
5394 (struct remote_thread_info) <resume_state, set_not_resumed,
5395 set_resumed_pending_vcont, resumed_pending_vcont_info,
5396 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5398 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5399 (remote_target::remote_add_thread): Adjust.
5400 (remote_target::process_initial_stop_replies): Adjust.
5401 (remote_target::resume): Adjust.
5402 (remote_target::commit_resume): Rely on state in
5403 remote_thread_info and not on tp->executing.
5404 (remote_target::process_stop_reply): Adjust.
5406 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5408 * arc-tdep.h (arc_debug_printf): New.
5409 * arc-tdep.c: Use arc_debug_printf.
5410 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5411 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5412 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5414 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5416 * arc-tdep.h (arc_debug): Change type to bool.
5417 * arc-tdep.c (arc_debug): Change type to bool.
5418 (arc_analyze_prologue): Adjust.
5419 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5420 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5422 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5424 * auto-load.c (auto_load_objfile_script_1): Use bool.
5425 (execute_script_contents): Use bool.
5427 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5429 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5431 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5433 * extension-priv.h (struct extension_language_script_ops)
5434 <auto_load_enabled>: Return bool.
5435 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5437 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5439 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5441 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5442 move comment to header.
5443 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5445 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5446 move comment to header.
5448 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5450 * auto-load.h (file_is_auto_load_safe): Change return type to
5451 bool, move comment here.
5452 * auto-load.c (file_is_auto_load_safe): Change return type and
5453 advice_printed to bool. Move comment to header.
5455 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5457 * jit.c (jit_debug_printf): New, use throughout file.
5459 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5461 * infrun.c (normal_stop): Fix indentation.
5463 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5465 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5467 * symfile.h: ... here.
5468 * symfile.c: Update doc.
5470 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5472 * target.h (baud_rate, serial_parity): Move declarations...
5473 * serial.h: ... here.
5474 * main.c: Include serial.h.
5475 * serial.c (baud_rate, serial_parity): Update doc.
5477 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5479 * top.c (pre_init_ui_hook): Remove.
5481 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5483 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5484 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5485 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5486 * features/aarch64-fpu.xml: Add bfloat16 type.
5488 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5490 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5492 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5494 * f-exp.y (dot_ops): Rename to...
5495 (fortran_operators): ...this. Add a header comment. Add symbol
5497 (yylex): Update to use fortran_operators not dot_ops. Remove
5498 special handling for '**', this is now included in
5501 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5503 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5504 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5505 * aarch64-tdep.c: Use aarch64_debug_printf.
5507 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5509 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5512 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5514 * jit.c (jit_debug): Change type to bool.
5515 (_initialize_jit): Adjust.
5517 2021-01-09 Tom Tromey <tom@tromey.com>
5520 * compile/compile.c (compile_to_object): Avoid crash when
5521 osabi_triplet_regexp returns NULL.
5523 2021-01-09 Tom Tromey <tom@tromey.com>
5525 * tracepoint.h (class collection_list) <append_exp>: Take a
5527 * tracepoint.c (collection_list::append_exp): Take a std::string.
5528 (encode_actions_1): Update.
5530 2021-01-08 Tom Tromey <tromey@adacore.com>
5532 * parse.c (parse_expression): Add void_context_p parameter. Use
5533 parse_exp_in_context.
5534 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5536 (print_command, call_command): Update.
5537 * expression.h (parse_expression): Add void_context_p parameter.
5539 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5541 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5542 for internalvar components that have a dynamic location.
5544 2021-01-08 Tom de Vries <tdevries@suse.de>
5547 * breakpoint.c (create_exception_master_breakpoint_probe)
5548 (create_exception_master_breakpoint_hook): Factor out
5550 (create_exception_master_breakpoint): ... here. Only try to install
5551 the master exception breakpoint in objfile.debug using the
5552 _Unwind_DebugHook method, if the install using probes in objfile
5555 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5557 * f-lang.c (fortran_value_subarray): Call value_from_component.
5559 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5561 * remote-sim.c: Include memory-map.h.
5562 (gdbsim_target): Define memory_map override.
5563 (gdbsim_target::memory_map): Define.
5565 2021-01-07 Tom Tromey <tromey@adacore.com>
5567 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5569 2021-01-07 Tom Tromey <tromey@adacore.com>
5571 * ada-lang.c (add_component_interval): Start loop using vector's
5574 2021-01-06 Tom Tromey <tromey@adacore.com>
5576 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5578 * valarith.c (fixed_point_binop): Handle multiplication
5579 and division specially.
5580 * valops.c (value_to_gdb_mpq): New function.
5581 (value_cast_to_fixed_point): Use it.
5583 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5585 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5586 Call wnoutrefresh instead of tui_win_info::refresh_window.
5588 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5590 * tui/tui-source.c (tui_source_window::show_line_number):
5591 Redraw second space after line number.
5593 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5596 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5597 Fix source pad size in prefresh.
5598 (tui_source_window_base::show_source_content): Grow source pad
5601 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5603 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5604 (bfin_frame_align): Use align_down.
5606 2021-01-04 Tom de Vries <tdevries@suse.de>
5608 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5609 terminators that do not terminate anything.
5611 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5613 * debug.c (debug_print_depth): New.
5614 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5615 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5616 * infrun.c (start_step_over): Use
5617 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5618 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5619 INFRUN_SCOPED_DEBUG_START_END.
5620 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5622 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5624 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5626 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5628 * utils.c (vfprintf_unfiltered): Print timestamp only when
5629 previous debug output ended with a newline.
5631 2021-01-04 Luis Machado <luis.machado@linaro.org>
5633 Update all users of trad_frame_saved_reg to use the new member
5636 Remote all struct keywords from declarations of trad_frame_saved_reg
5637 types, except on forward declarations.
5639 * aarch64-tdep.c: Update.
5640 * alpha-mdebug-tdep.c: Update.
5641 * alpha-tdep.c: Update.
5642 * arc-tdep.c: Update.
5643 * arm-tdep.c: Update.
5644 * avr-tdep.c: Update.
5645 * cris-tdep.c: Update.
5646 * csky-tdep.c: Update.
5647 * frv-tdep.c: Update.
5648 * hppa-linux-tdep.c: Update.
5649 * hppa-tdep.c: Update.
5650 * hppa-tdep.h: Update.
5651 * lm32-tdep.c: Update.
5652 * m32r-linux-tdep.c: Update.
5653 * m32r-tdep.c: Update.
5654 * m68hc11-tdep.c: Update.
5655 * mips-tdep.c: Update.
5656 * moxie-tdep.c: Update.
5657 * riscv-tdep.c: Update.
5658 * rs6000-tdep.c: Update.
5659 * s390-linux-tdep.c: Update.
5660 * s390-tdep.c: Update.
5661 * score-tdep.c: Update.
5662 * sparc-netbsd-tdep.c: Update.
5663 * sparc-sol2-tdep.c: Update.
5664 * sparc64-fbsd-tdep.c: Update.
5665 * sparc64-netbsd-tdep.c: Update.
5666 * sparc64-obsd-tdep.c: Update.
5667 * sparc64-sol2-tdep.c: Update.
5668 * tilegx-tdep.c: Update.
5669 * v850-tdep.c: Update.
5670 * vax-tdep.c: Update.
5672 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5673 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5675 * trad-frame.c: Update.
5676 Remove TF_REG_* enum.
5677 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5678 a trivially-constructible struct.
5679 (trad_frame_reset_saved_regs): Adjust to use member function.
5680 (trad_frame_value_p): Likewise.
5681 (trad_frame_addr_p): Likewise.
5682 (trad_frame_realreg_p): Likewise.
5683 (trad_frame_value_bytes_p): Likewise.
5684 (trad_frame_set_value): Likewise.
5685 (trad_frame_set_realreg): Likewise.
5686 (trad_frame_set_addr): Likewise.
5687 (trad_frame_set_unknown): Likewise.
5688 (trad_frame_set_value_bytes): Likewise.
5689 (trad_frame_get_prev_register): Likewise.
5690 * trad-frame.h: Update.
5691 (trad_frame_saved_reg_kind): New enum.
5692 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5693 <m_kind, m_reg>: New member fields.
5694 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5695 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5696 <is_addr, is_unknown, is_value_bytes>: New member functions.
5698 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5700 * target-float.c: Fix typos.
5702 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5704 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5706 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5708 * gdbarch.sh: Update copyright year range.
5710 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5712 Update copyright year range in copyright header of all GDB files.
5714 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5716 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5717 to the list of directories to update.
5719 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5721 * top.c (print_gdb_version): Update copyright year.
5723 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5725 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5727 For older changes see ChangeLog-2020.
5733 version-control: never