1 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
3 * target-descriptions.c (struct target_desc_info) <tdesc>:
5 (target_desc_fetched): Remove.
6 (current_target_desc): Remove.
7 (target_description_filename): Remove.
8 (target_find_description): Adjust.
9 (target_clear_description): Adjust.
10 (target_current_description): Adjust.
11 (set_tdesc_filename_cmd): Adjust.
12 (show_tdesc_filename_cmd): Adjust.
13 (unset_tdesc_filename_cmd): Adjust.
14 (maint_print_c_tdesc_cmd): Adjust.
15 (maint_print_xml_tdesc_cmd): Adjust.
17 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
19 * infcmd.c (notice_new_inferior): Change parameter type.
20 * inferior.h (notice_new_inferior): Change parameter type.
21 * remote.c (remote_notice_new_inferior): Change parameter type to
22 bool. Also update type of local variable to bool.
23 (remote_target::update_thread_list): Change type of local variable
25 (remote_target::process_stop_reply): Pass bool instead of int to
26 remote_notice_new_inferior.
28 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
30 * target.c (target_stack::unpush): Call target_ops::find_beneath
31 to get the target beneath `t`.
33 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
35 * target.c (target_close): Check in all inferiors that the
38 2021-05-07 Aaron Merey <amerey@redhat.com>
40 * debuginfod-support.c (debuginfod_init): Remove.
41 (get_debuginfod_client): New function.
43 2021-05-07 Tom Tromey <tom@tromey.com>
45 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
46 * utils.c (streq_hash): Remove.
47 * utils.h (streq_hash): Don't declare.
48 * completer.c (completion_tracker::discard_completions): Update
50 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
52 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
54 * Re-format all Python files using black.
56 2021-05-07 Tom de Vries <tdevries@suse.de>
59 * dwarf2/read.c (struct dwarf2_cu): Remove ancestor.
60 (dwarf2_cu::get_builder): Remove ancestor-related code.
61 (new_symbol): Remove code supporting pre-4.1 gcc that show arguments
62 of inlined functions as locals.
63 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
65 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
67 * guile/guile-internal.h (gdbscm_safe_source_script): Change
69 * guile/guile.c (gdbscm_source_script): Update to handle change in
70 gdbscm_safe_source_script.
71 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
72 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
75 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
77 * inferior.h (class inferior) <args>: Change type to
79 * inferior.c (inferior::~inferior): Don't free args.
80 * infcmd.c (get_inferior_args): Adjust.
81 (set_inferior_args): Adjust.
83 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
85 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
86 breakpoint locations when the breakpoint actually has a location.
88 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
90 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
91 * mi/mi-cmds.c: Change the binding of "-break-condition" to
92 mi_cmd_break_condition.
93 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
94 * breakpoint.h (set_breakpoint_condition): Declare a new
96 * breakpoint.c (set_breakpoint_condition): New overloaded function
97 extracted out from ...
98 (condition_command): ... this.
99 * NEWS: Mention the change.
101 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
103 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
104 '--force-condition' flag to force the condition in the
105 '-break-insert' and '-dprintf-insert' commands.
106 * NEWS: Mention the change.
108 2021-05-04 Tom de Vries <tdevries@suse.de>
111 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
114 2021-04-30 Tom Tromey <tom@tromey.com>
116 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
117 (add_signatured_type_cu_to_table): Remove.
118 (create_debug_type_hash_table): Assume dwo_file is non-null.
119 (create_debug_types_hash_table): Update comment.
120 (create_all_type_units): Remove.
121 (sort_tu_by_abbrev_offset): Update comment.
122 (build_type_psymtabs): Rename from build_type_psymtabs_1.
123 (build_type_psymtabs): Remove.
124 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
126 (read_comp_units_from_section): Add types_htab, section_kind
128 (create_all_comp_units): Read type units.
130 2021-04-30 Tom Tromey <tom@tromey.com>
132 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
133 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
134 <get_cu>: Now inline.
135 <all_type_units>: Remove.
136 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
137 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
138 (dwarf2_per_bfd::get_tu): Remove.
139 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
140 (create_signatured_type_table_from_index)
141 (create_signatured_type_table_from_debug_names)
142 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
143 (dwarf2_base_index_functions::expand_all_symtabs)
144 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
145 (dwarf2_base_index_functions::map_symbol_filenames)
146 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
147 (add_signatured_type_cu_to_table, create_all_type_units)
148 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
149 (create_all_comp_units): Update.
150 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
151 (write_debug_names): Update.
153 2021-04-30 Tom Tromey <tom@tromey.com>
155 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
156 allocate_signatured_type>: Change return type.
157 <all_comp_units, all_type_units>: Hold unique pointers.
158 (struct dwarf2_per_cu_data): Add constructor and initializers.
159 (struct signatured_type): Derive from dwarf2_per_cu_data.
160 * dwarf2/read.c (type_unit_group): Derive from
162 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
163 (dwarf2_per_bfd::get_tu)
164 (dwarf2_per_bfd::allocate_signatured_type)
165 (dwarf2_per_bfd::allocate_signatured_type)
166 (create_cu_from_index_list, create_cus_from_index_list)
167 (create_signatured_type_table_from_index)
168 (create_signatured_type_table_from_debug_names)
169 (create_addrmap_from_aranges)
170 (dwarf2_base_index_functions::find_last_source_symtab)
171 (dw_expand_symtabs_matching_file_matcher)
172 (dwarf2_gdb_index::expand_symtabs_matching)
173 (dwarf2_base_index_functions::map_symbol_filenames)
174 (create_cus_from_debug_names_list)
175 (dw2_debug_names_iterator::next)
176 (dwarf2_debug_names_index::expand_symtabs_matching)
177 (create_debug_type_hash_table, add_type_unit)
178 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
180 (allocate_type_unit_groups_table): Use delete.
181 (create_type_unit_group): Change return type. Use new.
182 (get_type_unit_group, build_type_psymtabs_1)
183 (build_type_psymtab_dependencies)
184 (process_skeletonless_type_unit, set_partial_user)
185 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
186 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
187 (read_signatured_type): Update.
188 (dwarf2_find_containing_comp_unit): Change type of
191 (dwarf2_per_bfd::allocate_per_cu)
192 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
194 (add_signatured_type_cu_to_table): Update.
195 * dwarf2/index-write.c (write_one_signatured_type)
196 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
197 (write_debug_names): Update.
199 2021-04-30 Tom Tromey <tromey@adacore.com>
201 * nat/windows-nat.h (get_image_name): Don't declare.
202 * nat/windows-nat.c (get_image_name): Now static.
204 2021-04-30 Tom Tromey <tromey@adacore.com>
206 * windows-nat.c (windows_nat::handle_load_dll): Update.
207 (windows_nat_target::get_windows_debug_event): Call
209 (windows_add_all_dlls, windows_add_dll): Move to
211 * nat/windows-nat.h (handle_load_dll): Change parameters.
212 (dll_loaded_event, windows_add_all_dlls): Declare.
213 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
215 (dll_loaded_event): New function.
217 2021-04-30 Tom Tromey <tromey@adacore.com>
219 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
220 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
222 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
223 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
225 2021-04-30 Tom Tromey <tromey@adacore.com>
227 * windows-nat.c: Move code to nat/windows-nat.[ch].
228 (_initialize_windows_nat): Call initialize_loadable.
229 * nat/windows-nat.h (AdjustTokenPrivileges)
230 (DebugActiveProcessStop, DebugBreakProcess)
231 (DebugSetProcessKillOnExit, EnumProcessModules)
232 (EnumProcessModulesEx, GetModuleInformation)
233 (GetModuleFileNameExA, GetModuleFileNameExW)
234 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
235 (GetCurrentConsoleFont, Wow64SuspendThread)
236 (Wow64GetThreadContext, Wow64SetThreadContext)
237 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
238 (AdjustTokenPrivileges_ftype)
239 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
240 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
241 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
242 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
243 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
244 (GetConsoleFontSize_ftype)
245 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
246 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
247 (Wow64GetThreadSelectorEntry_ftype): Likewise.
248 (initialize_loadable): Declare.
249 * nat/windows-nat.c (AdjustTokenPrivileges)
250 (DebugActiveProcessStop, DebugBreakProcess)
251 (DebugSetProcessKillOnExit, EnumProcessModules)
252 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
253 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
254 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
255 (Wow64GetThreadContext, Wow64SetThreadContext)
256 (Wow64GetThreadSelectorEntry): Define.
257 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
259 (initialize_loadable): Likewise, and rename.
261 2021-04-30 Tom Tromey <tromey@adacore.com>
263 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
264 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
265 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
266 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
267 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
268 (bad): New template functions.
269 (_initialize_loadable): Update.
271 2021-04-30 Tom Tromey <tromey@adacore.com>
273 * ada-lang.c (ada_index_type): Use ada_check_typedef.
275 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
277 * auto-load.h: Split namespace declaration.
279 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
281 * infrun.c (save_waitstatus): Move variables to inner scope.
283 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
285 * NEWS: Fix typo and stray full stop.
287 2021-04-28 Tom Tromey <tromey@adacore.com>
289 * ada-exp.y (primary): Use new type for null pointer.
290 * ada-lang.c (ada_type_match): Remove "may_deref"
291 parameter. Handle null pointer.
292 (ada_args_match): Update.
293 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
296 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
298 * NEWS: Mention new commands.
299 * python/python.c (python_ignore_environment): New static global.
300 (show_python_ignore_environment): New function.
301 (set_python_ignore_environment): New function.
302 (python_dont_write_bytecode): New static global.
303 (show_python_dont_write_bytecode): New function.
304 (set_python_dont_write_bytecode): New function.
305 (_initialize_python): Register new commands.
307 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
309 * extension-priv.h (struct extension_language_ops): Rename
310 'finish_initialization' to 'initialize'.
311 * extension.c (finish_ext_lang_initialization): Renamed to...
312 (ext_lang_initialization): ...this, update comment, and updated
313 the calls to reflect the change in struct extension_language_ops.
314 * extension.h (finish_ext_lang_initialization): Renamed to...
315 (ext_lang_initialization): ...this.
316 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
317 (gdbscm_initialize): ...this, update comment at definition.
318 (guile_extension_ops): Update.
319 * main.c (captured_main_1): Update call to
320 finish_ext_lang_initialization.
321 * python/python.c (gdbpy_finish_initialization): Rename to...
322 (gdbpy_initialize): ...this, update comment at definition, and
323 update call to do_finish_initialization.
324 (python_extension_ops): Update.
325 (do_finish_initialization): Rename to...
326 (do_initialize): ...this, and update comment.
328 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
330 * main.c (captured_main_1): Add a call to
331 finish_ext_lang_initialization.
332 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
334 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
336 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
337 (gdbscm_finish_initialization): Add code moved from
339 (_initialize_guile): Move code to gdbscm_finish_initialization.
340 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
341 _initialize_scm_arch.
342 (_initialize_scm_arch): New function.
343 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
344 into _initialize_scm_block.
345 (_initialize_scm_block): New function.
346 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
347 into _initialize_scm_frame.
348 (_initialize_scm_frame): New function.
349 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
350 into _initialize_scm_objfile.
351 (_initialize_scm_objfile): New function.
352 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
353 code into _initialize_scm_progspace.
354 (_initialize_scm_progspace): New function.
355 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
356 into _initialize_scm_symbol.
357 (_initialize_scm_symbol): New function.
358 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
359 into _initialize_scm_symtab.
360 (_initialize_scm_symtab): New function.
361 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
362 _initialize_scm_type.
363 (_initialize_scm_type): New function.
365 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
367 * python/py-arch.c (_initialize_py_arch): New function.
368 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
369 * python/py-block.c (_initialize_py_block): New function.
370 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
371 * python/py-inferior.c (_initialize_py_inferior): New function.
372 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
373 * python/py-objfile.c (_initialize_py_objfile): New function.
374 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
375 * python/py-progspace.c (_initialize_py_progspace): New function.
376 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
377 * python/py-registers.c (_initialize_py_registers): New function.
378 (gdbpy_initialize_registers): Move code to
379 _initialize_py_registers.
380 * python/py-symbol.c (_initialize_py_symbol): New function.
381 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
382 * python/py-symtab.c (_initialize_py_symtab): New function.
383 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
384 * python/py-type.c (_initialize_py_type): New function.
385 (gdbpy_initialize_types): Move code to _initialize_py_type.
386 * python/py-unwind.c (_initialize_py_unwind): New function.
387 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
388 * python/python.c (_initialize_python): Move call to
389 do_start_initialization to gdbpy_finish_initialization.
390 (gdbpy_finish_initialization): Add call to
391 do_start_initialization.
393 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
395 * extension.c (struct scoped_default_signal): New struct.
396 (scoped_default_sigint): New typedef.
397 (finish_ext_lang_initialization): Make use of
398 scoped_default_sigint.
400 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
402 * main.c (captured_main_1): Don't pass argument to gdb_init.
403 * top.c (gdb_init): Remove unused argument, and add header
405 * top.h (gdb_init): Remove argument.
407 2021-04-27 Luis Machado <luis.machado@linaro.org>
409 * psymtab.c (psymbol_functions::dump): Output newline.
411 * symmisc.c (dump_objfile): Likewise.
413 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
414 Simon Marchi <simon.marchi@polymtl.ca>
416 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
417 when attaching the 'auto_load_new_objfile' observer, so
418 other observers can specify it as a dependency.
419 * gdb/auto-load.h (struct token): Declare
420 'auto_load_new_objfile_observer_token' as token to be used
421 for the 'auto_load_new_objfile' observer.
422 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
423 'python_new_objfile' observer depend on 'auto_load_new_objfile'
424 observer, so it gets notified after the latter.
426 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
427 Simon Marchi <simon.marchi@polymtl.ca>
429 * unittests/observable-selftests.c (dependency_test_counters):
431 (observer_token0, observer_token1, observer_token2,
432 observer_token3, observer_token4, observer_token5): New.
433 (struct dependency_observer_data): New struct.
434 (observer_dependency_test_callback): New function.
435 (test_observers): New.
436 (run_dependency_test): New function.
437 (test_dependency): New.
438 (_initialize_observer_selftest): Register dependency test.
440 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
443 * cli/cli-dump.c (dump_binary_file): Check result of
446 2021-04-25 Sergei Trofimovich <siarheit@google.com>
448 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
449 by passing `process_stratum_target*` parameter.
451 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
454 * typeprint.h (struct type_print_options): Add print_in_hex
456 (struct print_offset_data): Add print_in_hex flag, add a
457 constructor accepting a type_print_options* argument.
458 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
459 default value for print_in_hex.
460 (print_offset_data::indentation): Allow more horizontal space.
461 (print_offset_data::print_offset_data): Add ctor.
462 (print_offset_data::maybe_print_hole, print_offset_data::update):
463 Handle the print_in_hex flag.
464 (whatis_exp): Handle 'x' and 'd' flags.
465 (print_offsets_and_sizes_in_hex): Declare.
466 (set_print_offsets_and_sizes_in_hex): Create.
467 (show_print_offsets_and_sizes_in_hex): Create.
468 (_initialize_typeprint): Update help message for the ptype
469 command, register the 'set print type hex' and 'show print type
471 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
472 (c_type_print_base): Construct the print_offset_data
473 object using the type_print_optons parameter.
474 * rust-lang.c (rust_language::print_type): Construct the
475 print_offset_data object using the type_print_optons parameter.
476 * NEWS: Mention the new flags of the ptype command.
478 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
480 * typeprint.h (struct type_print_options): Move before
483 2021-04-25 Joel Brobecker <brobecker@adacore.com>
487 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
489 * observable.c (observer_debug): Change to bool.
491 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
493 * dwarf2/read.c: Add 'unordered_set' include.
494 (dwarf2_base_index_functions::map_symbol_filenames): Replace
495 'visited' hash table with 'qfn_cache' unordered_set. Remove use
496 of per_Bfd->filenames_cache cache, and use function local
497 filenames_cache instead. Reindent.
498 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
500 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
502 * breakpoint.c (iterate_over_bp_locations): Change callback to
503 function view, remove data parameter.
504 * breakpoint.h (iterate_over_bp_locations): Likewise.
505 * record-full.c (record_full_sync_record_breakpoints): Remove
508 2021-04-22 Tom Tromey <tom@tromey.com>
510 * c-typeprint.c (c_type_print_base_struct_union): Use
511 print_spaces_filtered_with_print_options.
513 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
516 * python/py-type.c (typy_range): Check that bounds are constant
517 before accessing them as such.
518 * guile/scm-type.c (gdbscm_type_range): Likewise.
520 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
522 * Makefile.in (COMMON_SFILES): Remove continuations.c.
523 * inferior.c (inferior::add_continuation): New method, adapted
524 from 'add_inferior_continuation'.
525 (inferior::do_all_continuations): New method, adapted from
526 'do_all_inferior_continuations'.
527 (inferior::~inferior): Clear the list of continuations directly.
528 * inferior.h (class inferior) <continuations>: Rename into...
529 <m_continuations>: ...this and make private.
530 * continuations.c: Remove.
531 * continuations.h: Remove.
532 * event-top.c: Don't include "continuations.h".
534 Update the users below.
535 * inf-loop.c (inferior_event_handler)
536 * infcmd.c (attach_command)
537 (notice_new_inferior): Update.
539 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
541 * inferior.h (class inferior) <continuations>: Change the type
542 to be an std::list of std::function's.
543 Update the references and uses below.
544 * continuations.c (struct continuation): Delete.
545 (make_continuation): Delete.
546 (do_my_continuations_1): Delete.
547 (do_my_continuations): Delete.
548 (discard_my_continuations_1): Delete.
549 (discard_my_continuations): Delete.
550 (add_inferior_continuation): Update.
551 (do_all_inferior_continuations): Update.
552 (discard_all_inferior_continuations): Update.
553 * continuations.h (add_inferior_continuation): Update to take
554 an std::function as the parameter.
555 * infcmd.c (struct attach_command_continuation_args): Delete.
556 (attach_command_continuation): Delete.
557 (attach_command_continuation_free_args): Delete.
558 (attach_command): Update.
559 (notice_new_inferior): Update.
561 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
563 * continuations.h: Update the general comment.
564 * inferior.h (class inferior) <continuations>: Update the comment.
565 * interps.c: Do not include "continuations.h".
567 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
569 * continuations.h (do_all_inferior_continuations): Remove the 'err'
570 parameter. Update the references below.
571 * continuations.c (do_my_continuations_1)
572 (do_my_continuations)
573 (do_all_inferior_continuations): Update.
574 * inf-loop.c (inferior_event_handler): Update.
575 * infcmd.c (attach_command_continuation): Update.
577 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
579 * infcmd.c (attach_post_wait): Update the function comment.
581 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
584 Update the references below.
585 (struct attach_command_continuation_args)
586 (attach_command_continuation)
587 (attach_command_continuation_free_args)
589 (notice_new_inferior): Update to remove the reference to 'args'.
591 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
592 Tom de Vries <tdevries@suse.de>
595 * remote.c (remote_target_is_non_stop_p): New function.
596 * remote.h (remote_target_is_non_stop_p): Declare.
597 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
598 to check non-stopness using notif_state->remote rather current target.
600 2021-04-22 Tom Tromey <tom@tromey.com>
602 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
603 (struct typed_val_int) <val>: Now ULONGEST.
604 (rust_parser::parse_array_type): Remove negative check.
605 (rust_lex_int_test): Change 'value' to ULONGEST.
607 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
609 * arch-utils.c (default_addressable_memory_unit_size): Return a
610 value based on bfd's bits per byte.
612 2021-04-21 Tom Tromey <tom@tromey.com>
614 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
616 (struct dwarf2_per_cu_data): Rearrange.
617 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
619 (struct comp_unit_head): Rearrange.
620 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
622 2021-04-21 Tom de Vries <tdevries@suse.de>
625 * configure.ac: Remove --without-included-regex/--with-included-regex.
626 * config.in: Regenerate.
627 * configure: Regenerate.
628 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
630 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
632 * breakpoint.h (create_breakpoint): Add a new parameter,
634 * breakpoint.c (create_breakpoint): Use the 'force_condition'
635 argument when 'parse_extra' is false to check if the condition
636 is invalid at all of the breakpoint locations.
637 Update the users below.
643 (create_tracepoint_from_upload): Update.
644 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
645 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
646 * python/py-breakpoint.c (bppy_init): Update.
647 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
649 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
651 * breakpoint.c (print_one_breakpoint_location): Display "N" for
652 disabled-by-condition locations on MI-like output.
653 (breakpoint_1): Do not display the disabled-by-condition footnote
654 if the output is MI-like.
656 2021-04-21 Frederic Cambus <fred@statdns.com>
658 * syscalls/update-netbsd.sh: Fix script name display in usage, and
659 update year range in generated copyright notices.
661 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
663 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
666 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
668 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
670 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
672 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
673 (producer_is_icc): Replace use of std::regex with gdb's
676 2021-04-17 Tom Tromey <tom@tromey.com>
679 * dwarf2/read.c (class offset_view): New.
680 (struct symbol_table_slot): Remove.
681 (struct mapped_index) <symbol_table, constant_pool>: Change type.
682 <symbol_name_index, symbol_vec_index>: New methods.
683 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
685 (read_gdb_index_from_buffer): Update.
686 (struct dw2_symtab_iterator) <vec>: Change type.
687 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
688 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
689 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
690 <append_array, append_offset>: New methods.
691 (write_hash_table, add_address_entry, write_gdbindex_1)
692 (write_debug_names): Update.
693 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
695 2021-04-17 Tom Tromey <tom@tromey.com>
697 * dwarf2/index-write.c (write_psymtabs_to_index): Check
700 2021-04-17 Tom Tromey <tom@tromey.com>
702 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
703 from map_matching_symbols. Change parameters.
704 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
705 Rename from map_matching_symbols. Change parameters.
706 * dwarf2/read.c (struct dwarf2_gdb_index)
707 <expand_matching_symbols>: Rename from map_matching_symbols.
709 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
710 Rename from map_matching_symbols. Change parameters.
711 (dwarf2_gdb_index::expand_matching_symbols): Rename from
712 dw2_map_matching_symbols. Change parameters.
713 (dwarf2_gdb_index::expand_matching_symbols): Remove old
715 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
716 map_matching_symbols. Change parameters.
717 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
718 from map_matching_symbols. Change parameters.
719 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
720 map_matching_symbols. Change parameters.
721 * ada-lang.c (map_matching_symbols): New function.
722 (add_nonlocal_symbols): Update.
724 2021-04-17 Tom Tromey <tom@tromey.com>
726 * quick-symbol.h (struct quick_symbol_functions)
727 <expand_symtabs_with_fullname>: Remove.
728 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
730 * psympriv.h (struct psymbol_functions)
731 <expand_symtabs_with_fullname>: Remove.
732 * dwarf2/read.c (struct dwarf2_base_index_functions)
733 <expand_symtabs_with_fullname>: Remove.
734 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
736 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
738 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
741 2021-04-17 Tom Tromey <tom@tromey.com>
743 * symfile-debug.c (objfile::expand_symtabs_for_function):
745 * quick-symbol.h (struct quick_symbol_functions)
746 <expand_symtabs_for_function>: Remove.
747 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
749 * psympriv.h (struct psymbol_functions)
750 <expand_symtabs_for_function>: Remove.
751 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
753 * dwarf2/read.c (struct dwarf2_gdb_index)
754 <expand_symtabs_for_function>: Remove.
755 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
757 (find_slot_in_mapped_hash): Remove.
758 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
759 (dw2_symtab_iter_init): Remove one overload.
760 (dwarf2_gdb_index::expand_symtabs_for_function)
761 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
763 2021-04-17 Tom Tromey <tom@tromey.com>
765 * symfile-debug.c (objfile::map_symtabs_matching_filename):
767 * quick-symbol.h (struct quick_symbol_functions)
768 <map_symtabs_matching_filename>: Remove.
769 * psymtab.c (partial_map_expand_apply)
770 (psymbol_functions::map_symtabs_matching_filename): Remove.
771 * psympriv.h (struct psymbol_functions)
772 <map_symtabs_matching_filename>: Remove.
773 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
775 * dwarf2/read.c (struct dwarf2_base_index_functions)
776 <map_symtabs_matching_filename>: Remove.
777 (dw2_map_expand_apply)
778 (dwarf2_base_index_functions::map_symtabs_matching_filename):
781 2021-04-17 Tom Tromey <tom@tromey.com>
783 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
784 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
786 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
787 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
788 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
789 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
791 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
792 (dwarf2_gdb_index::lookup_symbol)
793 (dwarf2_debug_names_index::lookup_symbol): Remove.
795 2021-04-17 Tom Tromey <tom@tromey.com>
797 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
798 * symmisc.c (maintenance_expand_symtabs): Update.
799 * symfile.c (expand_symtabs_matching): Update.
800 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
802 * quick-symbol.h (struct quick_symbol_functions)
803 <expand_symtabs_matching>: Add 'domain' parameter.
804 * psymtab.c (recursively_search_psymtabs)
805 (psymbol_functions::expand_symtabs_matching): Add 'domain'
807 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
808 Add 'domain' parameter.
809 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
811 * linespec.c (iterate_over_all_matching_symtabs): Update.
812 * dwarf2/read.c (struct dwarf2_gdb_index)
813 <expand_symtabs_matching>: Add 'domain' parameter.
814 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
816 (dw2_expand_symtabs_matching)
817 (dwarf2_gdb_index::expand_symtabs_matching)
818 (dw2_debug_names_iterator)
819 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
822 2021-04-17 Tom Tromey <tom@tromey.com>
824 * symtab.c (global_symbol_searcher::expand_symtabs)
825 (default_collect_symbol_completion_matches_break_on): Update.
826 * symmisc.c (maintenance_expand_symtabs): Update.
827 * symfile.h (expand_symtabs_matching): Add search_flags
829 * symfile.c (expand_symtabs_matching): Add search_flags
831 * symfile-debug.c (objfile::expand_symtabs_matching): Add
832 search_flags parameter.
833 * quick-symbol.h (struct quick_symbol_functions)
834 <expand_symtabs_matching>: Add search_flags parameter.
835 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
836 * psymtab.c (recursively_search_psymtabs)
837 (psymbol_functions::expand_symtabs_matching): Add search_flags
839 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
840 Add search_flags parameter.
841 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
842 search_flags parameter.
843 * linespec.c (iterate_over_all_matching_symtabs): Update.
844 * dwarf2/read.c (struct dwarf2_gdb_index)
845 <expand_symtabs_matching>: Add search_flags parameter.
846 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
847 search_flags parameter.
848 (dw2_map_matching_symbols): Update.
849 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
850 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
852 (dw2_debug_names_iterator): Change block_index to search flags.
853 <m_block_index>: Likewise.
854 (dw2_debug_names_iterator::next)
855 (dwarf2_debug_names_index::lookup_symbol)
856 (dwarf2_debug_names_index::expand_symtabs_for_function)
857 (dwarf2_debug_names_index::map_matching_symbols)
858 (dwarf2_debug_names_index::map_matching_symbols): Update.
859 (dwarf2_debug_names_index::expand_symtabs_matching): Add
860 search_flags parameter.
861 * ada-lang.c (ada_add_global_exceptions)
862 (collect_symbol_completion_matches): Update.
864 2021-04-17 Tom Tromey <tom@tromey.com>
866 * symtab.c (default_collect_symbol_completion_matches_break_on):
868 * symfile.h (expand_symtabs_matching): Return bool.
869 * symfile.c (expand_symtabs_matching): Return bool.
870 * symfile-debug.c (objfile::expand_symtabs_matching): Return
872 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
873 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
875 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
877 * psympriv.h (struct psymbol_functions)
878 <expand_symtabs_matching>: Return bool.
879 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
881 * dwarf2/read.c (struct dwarf2_gdb_index)
882 <expand_symtabs_matching>: Return bool.
883 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
885 (dw2_expand_symtabs_matching_symbol): Return bool.
886 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
887 (dw2_expand_symtabs_matching)
888 (dwarf2_gdb_index::expand_symtabs_matching)
889 (dwarf2_debug_names_index::expand_symtabs_matching)
890 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
892 2021-04-17 Tom Tromey <tom@tromey.com>
894 * quick-symbol.h (enum block_search_flag_values): New.
895 (block_search_flags): New enum flags type.
897 2021-04-16 Tom Tromey <tom@tromey.com>
899 * rust-parse.c: New file.
900 * rust-exp.y: Remove.
901 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
902 (SFILES): Remove rust-exp.y.
903 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
905 2021-04-16 Luis Machado <luis.machado@linaro.org>
907 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
909 2021-04-15 John Baldwin <jhb@FreeBSD.org>
911 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
914 2021-04-15 Tom Tromey <tromey@adacore.com>
916 * ada-valprint.c (ada_value_print_array): Handle optimized-out
919 2021-04-15 Tom Tromey <tromey@adacore.com>
921 * printcmd.c (print_variable_and_value): Use
922 common_val_print_checked.
924 2021-04-15 Tom Tromey <tromey@adacore.com>
926 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
927 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
929 * p-exp.y (variable): Update.
930 * m2-exp.y (variable): Update.
931 * go-exp.y (variable): Update.
932 * expprint.c (dump_for_expression): New overload.
933 * expop.h (check_objfile): New overload.
934 (check_constant): New overload.
935 (class var_value_operation): Use block_symbol.
936 <get_symbol>: Rewrite.
937 * eval.c (var_value_operation::evaluate)
938 (var_value_operation::evaluate_funcall)
939 (var_value_operation::evaluate_for_address)
940 (var_value_operation::evaluate_for_address)
941 (var_value_operation::evaluate_with_coercion)
942 (var_value_operation::evaluate_for_sizeof)
943 (var_value_operation::evaluate_for_cast): Update.
944 * d-exp.y (PrimaryExpression): Update.
945 * c-exp.y (variable): Update.
946 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
947 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
948 (ada_var_value_operation::evaluate)
949 (ada_var_value_operation::resolve)
950 (ada_funcall_operation::resolve): Update.
951 * ada-exp.y (write_var_from_sym, write_object_renaming)
952 (write_ambiguous_var, write_var_or_type, write_name_assoc)
953 (maybe_overload): Update.
954 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
956 2021-04-15 Tom Tromey <tom@tromey.com>
957 Andrew Burgess <andrew.burgess@embecosm.com>
960 * main.c (captured_main_1): Call check_quiet_mode.
961 * top.c (startup_quiet): New global.
962 (check_quiet_mode): New function.
963 (show_startup_quiet): New function.
964 (init_main): Register new command.
965 * top.h (check_quiet_mode): Declare.
967 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
970 * NEWS: Mention new early init files and command line options.
971 * config.in: Regenerate.
972 * configure: Regenerate.
973 * configure.ac: Define GDBEARLYINIT.
974 * main.c (get_earlyinit_files): New function.
975 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
976 CMDARG_EARLYINIT_COMMAND.
977 (captured_main_1): Add support for new command line flags, and for
978 processing startup files.
979 (print_gdb_help): Include startup files in the output.
981 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
983 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
984 (relocate_file_path_maybe_in_datadir): ...this.
985 (class gdb_initfile_finder): New class.
986 (get_init_files): Now uses gdb_initfile_finder.
987 (print_gdb_help): Print 'None found' when there are no init files.
989 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
991 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
992 corresponding child of the abstract DIE when iterating the
993 children of the concrete DIE.
995 2021-04-13 Tom de Vries <tdevries@suse.de>
997 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1000 2021-04-13 Luis Machado <luis.machado@linaro.org>
1002 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1005 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1007 * rs6000-tdep.c: Add support for single-stepping of
1008 prefixed instructions.
1010 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1013 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1014 handle the addpcis/lnia instruction.
1016 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1018 * MAINTAINERS (Write After Approval): Add myself.
1020 2021-4-12 Carl Love <cel@us.ibm.com>
1022 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1023 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1026 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1028 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1029 * nat/windows-nat.h: Likewise.
1031 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1033 * windows-nat.c (windows_nat::handle_load_dll): Call
1034 windows_add_dll if get_image_name failed to glean the name of the
1035 DLL by using the lpImageName pointer.
1036 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1037 (windows_add_dll): Now does what windows_add_all_dlls did before,
1038 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1039 specifies the address where the DLL was loaded into the inferior,
1040 and looks for the single DLL loaded at that address.
1042 2021-04-09 Luis Machado <luis.machado@linaro.org>
1044 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1046 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1048 * darwin-nat.c (darwin_nat_target::resume): Remove status
1051 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1053 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1054 prologue end for Intel compilers.
1055 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1056 * producer.c (producer_is_icc_ge_19): New function.
1057 * producer.h (producer_is_icc_ge_19): New declaration.
1059 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1061 * producer.c: (producer_is_icc): Update for new version scheme.
1062 (producer_parsing_tests): Update names and expected results.
1063 * producer.h: (producer_is_icc): Update comment accordingly.
1065 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1067 * target.h (struct target_ops) <follow_fork>: Return void.
1068 (target_follow_fork): Likewise.
1069 * target.c (default_follow_fork): Likewise.
1070 (target_follow_fork): Likewise.
1071 * infrun.c (follow_fork_inferior): Adjust.
1072 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1073 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1074 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1075 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1076 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1077 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1078 * remote.c (class remote_target) <follow_fork>: Likewise.
1079 (remote_target::follow_fork): Likewise.
1080 * target-delegates.c: Re-generate.
1082 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1084 * ctfread.c (fetch_tid_type): New function, use throughout file.
1085 (read_forward_type): New function.
1086 (read_type_record): Call read_forward_type.
1088 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1090 * f-exp.h (class fortran_structop_operation): New class.
1091 * f-exp.y (exp): Create fortran_structop_operation instead of the
1092 generic structop_operation.
1093 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1094 expression as EVAL_NORMAL if the result type was dynamic so we can
1095 extract the actual array bounds.
1096 (fortran_structop_operation::evaluate): New function.
1098 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1100 * eval.c (evaluate_subexp_standard): Remove
1101 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1104 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1106 * valops.c (value_cast): Call value_deeply_equal before performing
1109 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1111 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1114 2021-04-07 Caroline Tice <cmtice@google.com>
1116 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1117 the search paths used resolve relative location of .dwo file.
1119 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1121 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1123 (dwarf2_section_info::get_file_name): Add an assert.
1124 (dwarf2_section_info::read_string): Display a minimal, sane error
1125 when the dwarf2_section_info is not associated with a bfd section.
1127 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1129 * top.c (staged_gdb_datadir): Update comment.
1130 (set_gdb_datadir): Copy the value of gdb_datadir back into
1132 (init_main): Initialise staged_gdb_datadir.
1134 2021-04-06 Tom de Vries <tdevries@suse.de>
1136 PR breakpoints/25884
1137 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1140 2021-04-06 Tom de Vries <tdevries@suse.de>
1143 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1146 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1148 * avr-tdep.c (avr_frame_unwind_cache): Use
1149 trad_frame_saved_reg::is_addr.
1151 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1153 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1156 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1158 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1159 objfile parameter for objfile_per_bfd_storage, adjust callers.
1160 (struct standard_psymtab) <standard_psymtab>: Likewise.
1161 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1162 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1163 * ctfread.c (struct ctf_psymtab): Likewise.
1164 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1165 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1166 (dwarf2_create_include_psymtab): Likewise.
1167 * objfiles.h (struct objfile_per_bfd_storage)
1168 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1169 <get_bfd>: New method.
1171 * objfiles.c (get_objfile_bfd_data): Adjust.
1173 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1175 * psymtab.c (partial_symtab::partial_symtab): Change
1176 last_objfile_name to be an std::string.
1177 * symfile.c (allocate_symtab): Likewise.
1179 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1181 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1183 (struct objfile) <intern>: Use
1184 objfile::objfile_per_bfd_storage::intern.
1186 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1188 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1189 with type::is_flag_enum.
1191 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1193 * gdbtypes.h (struct type) <is_flag_enum,
1194 set_is_flag_enum>: New methods.
1195 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1196 write call sites to use type::set_is_flag_enum.
1198 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1200 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1201 with type::is_declared_class.
1203 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1205 * gdbtypes.h (struct type) <is_declared_class,
1206 set_is_declared_class>: New methods.
1207 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1208 write call sites to use type::set_is_declared_class.
1210 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1212 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1213 to avoid deprecation warnings.
1215 2021-04-01 Martin Liska <mliska@suse.cz>
1217 * cp-name-parser.y: Use startswith instead of strncmp.
1218 * m2-exp.y: Likewise.
1219 * macroexp.c (substitute_args): Likewise.
1220 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1221 * rust-exp.y: Likewise.
1223 2021-03-31 Tom Tromey <tom@tromey.com>
1225 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1226 with dw2_map_matching_symbols.
1227 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1228 dw2_expand_symtabs_matching.
1230 2021-03-31 Tom Tromey <tromey@adacore.com>
1232 * dwarf2/stringify.h: Fix typo.
1234 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1237 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1238 with objfiles using READNOW.
1240 2021-03-29 Tom Tromey <tromey@adacore.com>
1242 * top.c (check_frame_language_change): Update.
1243 * language.c (language_info): Remove parameter.
1244 * language.h (language_info): Remove parameter.
1246 2021-03-29 Luis Machado <luis.machado@linaro.org>
1248 * compile/compile.c (get_args): Don't add empty argv entries.
1250 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1253 * procfs.c (procfs_target::attach): Define inf.
1255 (procfs_target::create_inferior): Likewise.
1257 2021-03-28 Tom Tromey <tom@tromey.com>
1259 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1260 (elf_symfile_read): Simplify.
1261 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1262 (make_lazy_dwarf_reader): New function.
1263 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1264 (dwarf2_initialize_objfile): Return void. Remove index_kind
1265 parameter. Push on 'qf' list.
1266 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1267 type. Remove 'index_kind' parameter.
1268 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1270 2021-03-27 Tom Tromey <tom@tromey.com>
1272 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1274 2021-03-27 Tom Tromey <tom@tromey.com>
1276 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1278 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1280 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1283 2021-03-26 Tom Tromey <tom@tromey.com>
1285 * symtab.c (struct output_source_filename_data): Add 'output'
1286 method and operator().
1287 (output_source_filename_data::output): Rename from
1288 output_source_filename.
1289 (output_partial_symbol_filename): Remove.
1290 (info_sources_command): Update.
1291 (struct add_partial_filename_data): Add operator().
1292 (add_partial_filename_data::operator()): Rename from
1293 maybe_add_partial_symtab_filename.
1294 (make_source_files_completion_list): Update.
1295 * symfile.c (quick_symbol_functions): Update.
1296 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1297 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1298 'need_fullname'. Remove 'data' parameter.
1299 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1300 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1301 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1302 Change type of 'fun' and 'need_fullname'. Remove 'data'
1304 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1305 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1306 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1308 (mi_cmd_file_list_exec_source_files): Update.
1310 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1312 2021-03-26 Tom Tromey <tom@tromey.com>
1314 * ada-lang.c (struct match_data): Add operator().
1315 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1316 (callback): Remove 'callback'.
1318 2021-03-26 Tom Tromey <tom@tromey.com>
1320 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1321 call make_ignore_params once.
1323 2021-03-26 Tom Tromey <tom@tromey.com>
1325 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1328 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1329 Pedro Alves <pedro@palves.net>
1331 * async-event.c: Include "infrun.h".
1332 (async_event_handler_marked): New.
1333 * async-event.h (async_event_handler_marked): Declare.
1334 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1335 inferior before calling target method. Don't commit-resumed if
1336 target_has_pending_events is true.
1337 * remote.c (remote_target::has_pending_events): New.
1338 * target-delegates.c: Regenerate.
1339 * target.c (target_has_pending_events): New.
1340 * target.h (target_ops::has_pending_events): New target method.
1341 (target_has_pending_events): New.
1343 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1344 Pedro Alves <pedro@palves.net>
1346 * infcmd.c (run_command_1, attach_command, detach_command)
1347 (interrupt_target_1): Use scoped_disable_commit_resumed.
1348 * infrun.c (do_target_resume): Remove
1349 target_commit_resume call.
1350 (commit_resume_all_targets): Remove.
1351 (maybe_set_commit_resumed_all_targets): New.
1352 (maybe_call_commit_resumed_all_targets): New.
1353 (enable_commit_resumed): New.
1354 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1355 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1356 (scoped_disable_commit_resumed::reset)
1357 (scoped_disable_commit_resumed::reset_and_commit)
1358 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1359 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1361 (proceed): Use scoped_disable_commit_resumed and
1362 maybe_call_commit_resumed_all_targets.
1363 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1364 * infrun.h (struct scoped_disable_commit_resumed): New.
1365 (maybe_call_commit_resumed_all_process_targets): New.
1366 (struct scoped_enable_commit_resumed): New.
1367 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1368 * process-stratum-target.h (class process_stratum_target):
1369 <commit_resumed_state>: New.
1370 * record-full.c (record_full_wait_1): Change commit_resumed_state
1371 around calling commit_resumed.
1372 * remote.c (class remote_target) <commit_resume>: Rename to...
1373 <commit_resumed>: ... this.
1374 (struct stop_reply): Move up.
1375 (remote_target::commit_resume): Rename to...
1376 (remote_target::commit_resumed): ... this. Check if there is any
1377 thread pending vCont resume.
1378 (remote_target::remote_stop_ns): Generate stop replies for resumed
1379 but pending vCont threads.
1380 (remote_target::wait_ns): Add gdb_assert.
1381 * target-delegates.c: Regenerate.
1382 * target.c (target_wait, target_resume): Assert that the current
1383 process_stratum target isn't in commit-resumed state.
1384 (defer_target_commit_resume): Remove.
1385 (target_commit_resume): Remove.
1386 (target_commit_resumed): New.
1387 (make_scoped_defer_target_commit_resume): Remove.
1388 (target_stop): Assert that the current process_stratum target
1389 isn't in commit-resumed state.
1390 * target.h (struct target_ops) <commit_resume>: Rename to ...
1391 <commit_resumed>: ... this.
1392 (target_commit_resume): Remove.
1393 (target_commit_resumed): New.
1394 (make_scoped_defer_target_commit_resume): Remove.
1395 * top.c (wait_sync_command_done): Use
1396 scoped_enable_commit_resumed.
1398 2021-03-26 Pedro Alves <pedro@palves.net>
1400 * target.c (target_always_non_stop_p): Also check whether the
1403 2021-03-26 Tom Tromey <tom@tromey.com>
1405 * dwarf2/read.c (dwarf2_read_debug_names)
1406 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1407 (dw2_debug_names_iterator::next, create_type_unit_group):
1410 2021-03-25 Pedro Alves <pedro@palves.net>
1412 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1413 around setting the breakpoint.
1415 2021-03-25 Pedro Alves <pedro@palves.net>
1418 (remote_target::check_pending_events_prevent_wildcard_vcont):
1419 Check whether the event's ptid is not null_ptid before looking up
1420 the corresponding inferior.
1422 2021-03-24 Changbin Du <changbin.du@gmail.com>
1424 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1427 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1429 * target.h (current_top_target): Remove, make callers use the
1430 current inferior instead.
1431 * target.c (current_top_target): Remove.
1433 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1435 * target.h (target_shortname): Change to function declaration.
1436 (target_longname): Likewise.
1437 (target_attach_no_wait): Likewise.
1438 (target_post_attach): Likewise.
1439 (target_prepare_to_store): Likewise.
1440 (target_supports_enable_disable_tracepoint): Likewise.
1441 (target_supports_string_tracing): Likewise.
1442 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1443 (target_supports_dumpcore): Likewise.
1444 (target_dumpcore): Likewise.
1445 (target_can_run_breakpoint_commands): Likewise.
1446 (target_files_info): Likewise.
1447 (target_post_startup_inferior): Likewise.
1448 (target_insert_fork_catchpoint): Likewise.
1449 (target_remove_fork_catchpoint): Likewise.
1450 (target_insert_vfork_catchpoint): Likewise.
1451 (target_remove_vfork_catchpoint): Likewise.
1452 (target_insert_exec_catchpoint): Likewise.
1453 (target_remove_exec_catchpoint): Likewise.
1454 (target_set_syscall_catchpoint): Likewise.
1455 (target_rcmd): Likewise.
1456 (target_can_lock_scheduler): Likewise.
1457 (target_can_async_p): Likewise.
1458 (target_is_async_p): Likewise.
1459 (target_execution_direction): Likewise.
1460 (target_extra_thread_info): Likewise.
1461 (target_pid_to_exec_file): Likewise.
1462 (target_thread_architecture): Likewise.
1463 (target_find_memory_regions): Likewise.
1464 (target_make_corefile_notes): Likewise.
1465 (target_get_bookmark): Likewise.
1466 (target_goto_bookmark): Likewise.
1467 (target_stopped_by_watchpoint): Likewise.
1468 (target_stopped_by_sw_breakpoint): Likewise.
1469 (target_supports_stopped_by_sw_breakpoint): Likewise.
1470 (target_stopped_by_hw_breakpoint): Likewise.
1471 (target_supports_stopped_by_hw_breakpoint): Likewise.
1472 (target_have_steppable_watchpoint): Likewise.
1473 (target_can_use_hardware_watchpoint): Likewise.
1474 (target_region_ok_for_hw_watchpoint): Likewise.
1475 (target_can_do_single_step): Likewise.
1476 (target_insert_watchpoint): Likewise.
1477 (target_remove_watchpoint): Likewise.
1478 (target_insert_hw_breakpoint): Likewise.
1479 (target_remove_hw_breakpoint): Likewise.
1480 (target_can_accel_watchpoint_condition): Likewise.
1481 (target_can_execute_reverse): Likewise.
1482 (target_get_ada_task_ptid): Likewise.
1483 (target_filesystem_is_local): Likewise.
1484 (target_trace_init): Likewise.
1485 (target_download_tracepoint): Likewise.
1486 (target_can_download_tracepoint): Likewise.
1487 (target_download_trace_state_variable): Likewise.
1488 (target_enable_tracepoint): Likewise.
1489 (target_disable_tracepoint): Likewise.
1490 (target_trace_start): Likewise.
1491 (target_trace_set_readonly_regions): Likewise.
1492 (target_get_trace_status): Likewise.
1493 (target_get_tracepoint_status): Likewise.
1494 (target_trace_stop): Likewise.
1495 (target_trace_find): Likewise.
1496 (target_get_trace_state_variable_value): Likewise.
1497 (target_save_trace_data): Likewise.
1498 (target_upload_tracepoints): Likewise.
1499 (target_upload_trace_state_variables): Likewise.
1500 (target_get_raw_trace_data): Likewise.
1501 (target_get_min_fast_tracepoint_insn_len): Likewise.
1502 (target_set_disconnected_tracing): Likewise.
1503 (target_set_circular_trace_buffer): Likewise.
1504 (target_set_trace_buffer_size): Likewise.
1505 (target_set_trace_notes): Likewise.
1506 (target_get_tib_address): Likewise.
1507 (target_set_permissions): Likewise.
1508 (target_static_tracepoint_marker_at): Likewise.
1509 (target_static_tracepoint_markers_by_strid): Likewise.
1510 (target_traceframe_info): Likewise.
1511 (target_use_agent): Likewise.
1512 (target_can_use_agent): Likewise.
1513 (target_augmented_libraries_svr4_read): Likewise.
1514 (target_log_command): Likewise.
1515 * target.c (target_shortname): New.
1516 (target_longname): New.
1517 (target_attach_no_wait): New.
1518 (target_post_attach): New.
1519 (target_prepare_to_store): New.
1520 (target_supports_enable_disable_tracepoint): New.
1521 (target_supports_string_tracing): New.
1522 (target_supports_evaluation_of_breakpoint_conditions): New.
1523 (target_supports_dumpcore): New.
1524 (target_dumpcore): New.
1525 (target_can_run_breakpoint_commands): New.
1526 (target_files_info): New.
1527 (target_post_startup_inferior): New.
1528 (target_insert_fork_catchpoint): New.
1529 (target_remove_fork_catchpoint): New.
1530 (target_insert_vfork_catchpoint): New.
1531 (target_remove_vfork_catchpoint): New.
1532 (target_insert_exec_catchpoint): New.
1533 (target_remove_exec_catchpoint): New.
1534 (target_set_syscall_catchpoint): New.
1536 (target_can_lock_scheduler): New.
1537 (target_can_async_p): New.
1538 (target_is_async_p): New.
1539 (target_execution_direction): New.
1540 (target_extra_thread_info): New.
1541 (target_pid_to_exec_file): New.
1542 (target_thread_architecture): New.
1543 (target_find_memory_regions): New.
1544 (target_make_corefile_notes): New.
1545 (target_get_bookmark): New.
1546 (target_goto_bookmark): New.
1547 (target_stopped_by_watchpoint): New.
1548 (target_stopped_by_sw_breakpoint): New.
1549 (target_supports_stopped_by_sw_breakpoint): New.
1550 (target_stopped_by_hw_breakpoint): New.
1551 (target_supports_stopped_by_hw_breakpoint): New.
1552 (target_have_steppable_watchpoint): New.
1553 (target_can_use_hardware_watchpoint): New.
1554 (target_region_ok_for_hw_watchpoint): New.
1555 (target_can_do_single_step): New.
1556 (target_insert_watchpoint): New.
1557 (target_remove_watchpoint): New.
1558 (target_insert_hw_breakpoint): New.
1559 (target_remove_hw_breakpoint): New.
1560 (target_can_accel_watchpoint_condition): New.
1561 (target_can_execute_reverse): New.
1562 (target_get_ada_task_ptid): New.
1563 (target_filesystem_is_local): New.
1564 (target_trace_init): New.
1565 (target_download_tracepoint): New.
1566 (target_can_download_tracepoint): New.
1567 (target_download_trace_state_variable): New.
1568 (target_enable_tracepoint): New.
1569 (target_disable_tracepoint): New.
1570 (target_trace_start): New.
1571 (target_trace_set_readonly_regions): New.
1572 (target_get_trace_status): New.
1573 (target_get_tracepoint_status): New.
1574 (target_trace_stop): New.
1575 (target_trace_find): New.
1576 (target_get_trace_state_variable_value): New.
1577 (target_save_trace_data): New.
1578 (target_upload_tracepoints): New.
1579 (target_upload_trace_state_variables): New.
1580 (target_get_raw_trace_data): New.
1581 (target_get_min_fast_tracepoint_insn_len): New.
1582 (target_set_disconnected_tracing): New.
1583 (target_set_circular_trace_buffer): New.
1584 (target_set_trace_buffer_size): New.
1585 (target_set_trace_notes): New.
1586 (target_get_tib_address): New.
1587 (target_set_permissions): New.
1588 (target_static_tracepoint_marker_at): New.
1589 (target_static_tracepoint_markers_by_strid): New.
1590 (target_traceframe_info): New.
1591 (target_use_agent): New.
1592 (target_can_use_agent): New.
1593 (target_augmented_libraries_svr4_read): New.
1594 (target_log_command): New.
1595 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1596 * infrun.c (set_schedlock_func): Adjust.
1597 * mi/mi-main.c (exec_reverse_continue): Adjust.
1598 * reverse.c (exec_reverse_once): Adjust.
1599 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1600 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1601 * remote-sim.c (gdbsim_target::detach): Adjust.
1602 (gdbsim_target::files_info): Adjust.
1604 2021-03-24 Tom Tromey <tom@tromey.com>
1606 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1607 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1608 (check_match, dw2_expand_symtabs_matching)
1609 (dwarf2_debug_names_index::map_matching_symbols)
1610 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1612 2021-03-24 Keith Seitz <keiths@redhat.com>
1614 * compile/compile-cplus-types.c
1615 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1618 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1620 * gdbarch.sh (gdbarch_data_registry): Make static.
1621 * gdbarch.c: Re-generate.
1623 2021-03-24 Luis Machado <luis.machado@linaro.org>
1625 * NEWS: Mention memory tagging changes.
1627 2021-03-24 Luis Machado <luis.machado@linaro.org>
1629 * printcmd.c (decode_format): Handle the 'm' modifier.
1630 (do_examine): Display allocation tags when required/supported.
1631 (should_validate_memtags): New function.
1632 (print_command_1): Display memory tag mismatches.
1633 * valprint.c (show_memory_tag_violations): New function.
1634 (value_print_option_defs): Add new option "memory-tag-violations".
1635 (user_print_options) <memory_tag_violations>: Initialize to 1.
1636 * valprint.h (struct format_data) <print_tags>: New field.
1637 (value_print_options) <memory_tag_violations>: New field.
1639 2021-03-24 Luis Machado <luis.machado@linaro.org>
1641 * printcmd.c: Include gdbsupport/rsp-low.h.
1642 (memory_tag_list): New static global.
1643 (process_print_command_args): Factored out of
1645 (print_command_1): Use process_print_command_args.
1646 (show_addr_not_tagged, show_memory_tagging_unsupported)
1647 (memory_tag_command, memory_tag_print_tag_command)
1648 (memory_tag_print_logical_tag_command)
1649 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1650 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1651 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1653 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1655 2021-03-24 Luis Machado <luis.machado@linaro.org>
1657 * aarch64-linux-tdep.c
1658 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1659 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1661 2021-03-24 Luis Machado <luis.machado@linaro.org>
1663 * aarch64-linux-tdep.c
1664 (aarch64_linux_report_signal_info): New function.
1665 (aarch64_linux_init_abi): Register
1666 aarch64_linux_report_signal_info as the report_signal_info hook.
1667 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1668 (SEGV_MTESERR): Define.
1670 2021-03-24 Luis Machado <luis.machado@linaro.org>
1672 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1673 (aarch64_linux_ltag_tests): New function.
1674 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1676 2021-03-24 Luis Machado <luis.machado@linaro.org>
1678 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1679 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1680 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1681 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1683 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1684 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1685 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1686 (aarch64_linux_get_ltag): New functions.
1687 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1688 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1689 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1690 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1692 2021-03-24 Luis Machado <luis.machado@linaro.org>
1694 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1696 (struct smaps_data): New struct.
1697 (decode_vmflags): Handle the 'mt' flag.
1698 (parse_smaps_data): New function, refactored from
1699 linux_find_memory_regions_full.
1700 (linux_address_in_memtag_page): New function.
1701 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1702 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1704 2021-03-24 Luis Machado <luis.machado@linaro.org>
1706 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1707 instead of char arrays.
1709 2021-03-24 Luis Machado <luis.machado@linaro.org>
1711 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1712 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1713 nat/aarch64-mte-linux-ptrace.h.
1714 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1715 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1717 <fetch_memtags>: New method override.
1718 <store_memtags>: New method override.
1719 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1720 (aarch64_linux_nat_target::fetch_memtags): New method.
1721 (aarch64_linux_nat_target::store_memtags): New method.
1722 * arch/aarch64-mte-linux.c: New file.
1723 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1724 (AARCH64_MTE_GRANULE_SIZE): Define.
1725 (aarch64_memtag_type): New enum.
1726 (aarch64_mte_get_tag_granules): New prototype.
1727 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1728 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1729 * nat/aarch64-mte-linux-ptrace.c: New file.
1730 * nat/aarch64-mte-linux-ptrace.h: New file.
1732 2021-03-24 Luis Machado <luis.machado@linaro.org>
1734 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1735 * nat/aarch64-mte-linux-ptrace.h: New file.
1737 2021-03-24 Luis Machado <luis.machado@linaro.org>
1739 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1740 (store_mteregs_to_thread): New function.
1741 (aarch64_linux_nat_target::fetch_registers): Update to call
1742 fetch_mteregs_from_thread.
1743 (aarch64_linux_nat_target::store_registers): Update to call
1744 store_mteregs_to_thread.
1745 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1746 (aarch64_cannot_store_register): Handle MTE registers.
1747 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1748 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1749 <has_mte>: New method.
1750 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1752 2021-03-24 Luis Machado <luis.machado@linaro.org>
1754 * aarch64-linux-nat.c
1755 (aarch64_linux_nat_target::read_description): Take MTE flag into
1757 Slight refactor to hwcap flag checking.
1758 * aarch64-linux-tdep.c
1759 (aarch64_linux_core_read_description): Likewise.
1760 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1762 (aarch64_read_description): Add mte_p parameter and update to use it.
1763 Update the documentation.
1764 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1765 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1766 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1767 (aarch64_create_target_description): Add mte_p parameter and update
1769 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1771 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1772 * features/aarch64-mte.c: New file, generated.
1773 * features/aarch64-mte.xml: New file.
1775 2021-03-24 Luis Machado <luis.machado@linaro.org>
1777 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1778 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1779 * aarch64-linux-tdep.c: Likewise
1780 * arch/aarch64-mte-linux.h: New file.
1782 2021-03-24 Luis Machado <luis.machado@linaro.org>
1784 * remote: Include gdbsupport/selftest.h.
1785 (test_memory_tagging_functions): New function.
1786 (_initialize_remote): Register test_memory_tagging_functions.
1788 2021-03-24 Luis Machado <luis.machado@linaro.org>
1790 * remote.c (PACKET_memory_tagging_feature): New enum.
1791 (remote_memory_tagging_p): New function.
1792 (remote_protocol_features): New "memory-tagging" entry.
1793 (remote_target::remote_query_supported): Handle memory tagging
1795 (remote_target::supports_memory_tagging): Implement.
1796 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1797 (create_store_memtags_request): New functions.
1798 (remote_target::fetch_memtags): Implement.
1799 (remote_target::store_memtags): Implement.
1800 (_initialize_remote): Add new "memory-tagging-feature"
1803 2021-03-24 Luis Machado <luis.machado@linaro.org>
1805 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1806 (default_memtag_matches_p, default_set_memtags)
1807 (default_get_memtag): New functions.
1808 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1809 (default_memtag_matches_p, default_set_memtags)
1810 (default_get_memtag): New prototypes.
1811 * gdbarch.c: Regenerate.
1812 * gdbarch.h: Regenerate.
1813 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1814 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1815 (enum memtag_type): New enum.
1817 2021-03-24 Luis Machado <luis.machado@linaro.org>
1819 * remote.c (remote_target) <supports_memory_tagging>: New method
1821 <fetch_memtags>: New method override.
1822 <store_memtags>: New method override.
1823 (remote_target::supports_memory_tagging): New method.
1824 (remote_target::fetch_memtags): New method.
1825 (remote_target::store_memtags): New method.
1826 * target-delegates.c: Regenerate.
1827 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1829 <fetch_memtags>: New virtual method.
1830 <store_memtags>: New virtual method.
1831 (target_supports_memory_tagging): Define.
1832 (target_fetch_memtags): Define.
1833 (target_store_memtags): Define.
1834 * target-debug.h (target_debug_print_size_t)
1835 (target_debug_print_const_gdb_byte_vector_r)
1836 (target_debug_print_gdb_byte_vector_r): New functions.
1838 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1840 * target.h (target_longname): Remove.
1842 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1844 * target.h (target_is_pushed): Remove, update callers to use
1845 inferior::target_is_pushed instead.
1846 * target.c (target_is_pushed): Remove.
1848 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1850 * target.h (push_target): Remove, update callers to use
1851 inferior::push_target.
1852 * target.c (push_target): Remove.
1853 * inferior.h (class inferior) <push_target>: New overload.
1855 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1857 * target.h (unpush_target): Remove, update all callers
1858 to use `inferior::unpush_target` instead.
1859 (struct target_unpusher) <operator()>: Just declare.
1860 * target.c (unpush_target): Remove.
1861 (target_unpusher::operator()): New.
1863 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1865 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1867 (process_full_comp_unit): Validate the top-level tag before
1868 processing the first DIE.
1869 (read_func_scope): Ensure we have a valid builder.
1871 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1873 * objc-lang.c (objc_demangle): Renamed to
1874 objc_language::demangle_symbol, and moved later in the file.
1875 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1877 (objc_language::demangle_symbol): Defined outside of class
1878 declaration. The definition is the old objc_demangle with NULL
1879 changed to nullptr, and if conditions relating to nullptr pointers
1880 or null character checks made explicit.
1881 * objc-lang.h (objc_demangle): Delete declaration.
1883 2021-03-22 Martin Liska <mliska@suse.cz>
1885 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1886 (_initialize_arm_tdep): Likewise.
1888 2021-03-20 Tom Tromey <tom@tromey.com>
1890 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1891 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1892 * psymtab.h (make_psymbol_functions): Don't declare.
1893 * psymtab.c (make_psymbol_functions): Remove.
1894 (maintenance_print_psymbols): Update.
1895 * psympriv.h (struct psymbol_functions): Add no-argument
1897 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1898 <partial_symtabs>: Remove.
1899 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1900 * elfread.c (read_partial_symbols): Update.
1901 (elf_symfile_read): Remove check for existing partial symbols.
1903 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1905 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1907 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1909 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1910 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1912 2021-03-20 Tom Tromey <tom@tromey.com>
1914 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1915 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1916 * symfile-debug.c (objfile::has_partial_symbols)
1917 (objfile::find_last_source_symtab)
1918 (objfile::forget_cached_source_info)
1919 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1920 (objfile::print_stats, objfile::dump)
1921 (objfile::expand_symtabs_for_function)
1922 (objfile::expand_all_symtabs)
1923 (objfile::expand_symtabs_with_fullname)
1924 (objfile::map_matching_symbols)
1925 (objfile::expand_symtabs_matching)
1926 (objfile::find_pc_sect_compunit_symtab)
1927 (objfile::map_symbol_filenames)
1928 (objfile::find_compunit_symtab_by_address)
1929 (objfile::lookup_global_symbol_language)
1930 (objfile::require_partial_symbols): Update.
1931 * psymtab.c (maintenance_print_psymbols)
1932 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1933 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1934 * objfiles.c (objfile_relocate1): Update.
1935 * elfread.c (elf_symfile_read): Update.
1937 2021-03-20 Tom Tromey <tom@tromey.com>
1939 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1941 2021-03-20 Tom Tromey <tom@tromey.com>
1943 * psymtab.c (psymbol_functions::count_psyms): Rename.
1944 (psymbol_functions::print_stats): Update.
1945 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1948 2021-03-20 Tom Tromey <tom@tromey.com>
1950 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1951 (psymbol_functions::find_pc_sect_psymtab): Rename.
1952 (psymbol_functions::find_pc_sect_compunit_symtab)
1953 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1954 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1956 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1958 2021-03-20 Tom Tromey <tom@tromey.com>
1960 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1961 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1962 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1964 (add_psymbol_to_bcache): Remove.
1965 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1966 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1968 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1969 <add_psymbol>: Likewise.
1970 (standard_psymtab, legacy_psymtab): Likewise.
1971 * mdebugread.c (parse_partial_symbols): Update.
1972 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1973 (handle_psymbol_enumerators): Update.
1974 (new_psymtab): Add partial_symtabs parameter.
1975 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1976 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1978 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1979 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1981 * dbxread.c (read_dbx_symtab): Update.
1982 (start_psymtab): Add partial_symtabs parameter.
1983 (dbx_end_psymtab): Update.
1984 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1985 (ctf_psymtab): Add partial_symtabs parameter.
1986 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1988 (scan_partial_symbols): Add partial_symtabs parameter.
1989 (scan_partial_symbols, elfctf_build_psymtabs)
1990 (ctf_psymtab_add_enums): Update.
1992 2021-03-20 Tom Tromey <tom@tromey.com>
1994 * symfile.c (read_symbols): Use objfile method.
1995 * symfile-debug.c (objfile::require_partial_symbols): New method.
1996 * psymtab.h (require_partial_symbols): Don't declare.
1997 * psymtab.c (require_partial_symbols): Use objfile method. Now
1999 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2000 (psymbol_functions::lookup_symbol)
2001 (psymbol_functions::lookup_global_symbol_language)
2002 (psymbol_functions::find_last_source_symtab)
2003 (psymbol_functions::forget_cached_source_info)
2004 (psymbol_functions::print_stats)
2005 (psymbol_functions::expand_symtabs_for_function)
2006 (psymbol_functions::expand_all_symtabs)
2007 (psymbol_functions::expand_symtabs_with_fullname)
2008 (psymbol_functions::map_symbol_filenames)
2009 (psymbol_functions::map_matching_symbols)
2010 (psymbol_functions::expand_symtabs_matching)
2011 (psymbol_functions::find_compunit_symtab_by_address)
2012 (maintenance_print_psymbols, maintenance_info_psymtabs)
2013 (maintenance_check_psymtabs): Update.
2014 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2017 2021-03-20 Tom Tromey <tom@tromey.com>
2019 * xcoffread.c (xcoff_sym_fns): Update.
2020 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2021 * symfile-debug.c (objfile::has_partial_symbols): Use
2022 can_lazily_read_symbols.
2023 (debug_sym_read_psymbols): Remove.
2024 (debug_sym_fns, install_symfile_debug_logging): Update.
2025 * quick-symbol.h (struct quick_symbol_functions)
2026 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2027 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2028 * mipsread.c (ecoff_sym_fns): Update.
2029 * machoread.c (macho_sym_fns): Update.
2030 * elfread.c (struct lazy_dwarf_reader): New.
2031 (elf_symfile_read): Update.
2032 (read_psyms): Now a method of lazy_dwarf_reader.
2033 (elf_sym_fns): Update.
2034 (elf_sym_fns_lazy_psyms): Remove.
2035 * dbxread.c (aout_sym_fns): Update.
2036 * coffread.c (coff_sym_fns): Update.
2038 2021-03-20 Tom Tromey <tom@tromey.com>
2040 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2041 (reread_symbols): Move reset_psymtabs call later.
2042 * objfiles.c (objfile::objfile): Don't initialize
2045 2021-03-20 Tom Tromey <tom@tromey.com>
2047 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2048 set_partial_symtabs.
2049 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2050 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2052 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2054 (psymbol_functions::find_pc_sect_compunit_symtab)
2055 (psymbol_functions::print_stats, psymbol_functions::dump)
2056 (psymbol_functions::has_symbols): Update.
2057 (make_psymbol_functions, dump_psymtab_addrmap): Add
2058 partial_symtabs parameter.
2059 (maintenance_print_psymbols): Update.
2060 (psymbol_functions::expand_symtabs_matching): Update.
2061 * psympriv.h (struct psymbol_functions): Add constructor.
2062 <m_partial_symtabs>: New member.
2063 <set_partial_symtabs>: New method.
2065 2021-03-20 Tom Tromey <tom@tromey.com>
2067 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2069 (process_psymtab_comp_unit_reader)
2070 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2071 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2072 Reference psymtabs via per_bfd.
2074 2021-03-20 Tom Tromey <tom@tromey.com>
2076 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2078 (add_address_entry): Remove objfile parameter.
2079 (add_address_entry_worker): Update.
2080 (write_address_map): Replace objfile parameter with per_bfd.
2081 (write_gdbindex, write_psymtabs_to_index): Update.
2083 2021-03-20 Tom Tromey <tom@tromey.com>
2085 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2086 print_bcache parameter.
2087 * symfile-debug.c (objfile::print_stats): Add print_bcache
2089 * quick-symbol.h (struct quick_symbol_functions)
2090 <print_stats>: Add print_bcache parameter.
2091 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2093 (print_objfile_statistics): Move psymtab code to psymtab.c.
2094 * psymtab.c (count_psyms): Move from symmisc.c.
2095 (psymbol_functions::print_stats): Print partial symbol and bcache
2096 statistics. Add print_bcache parameter.
2097 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2098 (struct objfile) <print_stats>: Add print_bcache parameter.
2099 * maint.c (maintenance_print_statistics): Update.
2101 2021-03-20 Tom Tromey <tom@tromey.com>
2103 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2105 * dwarf2/read.c (create_addrmap_from_index)
2106 (create_addrmap_from_aranges): Set per_bfd addrmap.
2107 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2108 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2110 (dwarf2_read_debug_names): Don't set partial_symtabs.
2111 (dwarf2_initialize_objfile): Likewise.
2113 2021-03-20 Tom Tromey <tom@tromey.com>
2115 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2118 2021-03-20 Tom Tromey <tom@tromey.com>
2120 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2121 (~psymtab_discarder, keep): Update.
2122 <m_objfile>: Remove.
2123 <m_partial_symtabs>: New member.
2124 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2126 2021-03-20 Tom Tromey <tom@tromey.com>
2128 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2129 (xcoff_end_psymtab): Update.
2130 (scan_xcoff_symtab): Add partial_symtabs parameter.
2131 (xcoff_initial_scan): Update.
2132 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2133 * mdebugread.c (mdebug_build_psymtabs): Update.
2134 (parse_partial_symbols): Add partial_symtabs parameter.
2135 * dbxread.c (dbx_symfile_read): Update.
2136 (read_dbx_symtab): Add partial_symtabs parameter.
2137 (read_dbx_symtab): Update.
2138 (dbx_end_psymtab): Add partial_symtabs parameter.
2140 2021-03-20 Tom Tromey <tom@tromey.com>
2142 * quick-symbol.h (struct quick_symbol_functions)
2143 <relocated>: New method.
2144 * psymtab.h (struct psymbol_functions) <relocated>: New
2146 <fill_psymbol_map>: Declare method.
2147 <m_psymbol_map>: New member.
2148 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2149 (psymbol_functions::find_compunit_symtab_by_address): Update.
2150 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2151 (struct objfile) <psymbol_map>: Remove.
2152 * objfiles.c (objfile_relocate1): Update.
2154 2021-03-20 Tom Tromey <tom@tromey.com>
2156 * psympriv.h (struct psymbol_functions): New.
2157 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2158 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2159 (objfile::lookup_global_symbol_language): Update.
2160 * quick-symbol.h (struct quick_symbol_functions): Convert function
2161 pointers to methods. Add virtual destructor.
2162 (quick_symbol_functions_up): New typedef.
2163 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2164 (dwarf2_debug_names_functions): Don't declare.
2165 (make_psymbol_functions): Declare.
2166 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2167 (psymbol_functions::find_pc_sect_compunit_symtab)
2168 (psymbol_functions::lookup_symbol)
2169 (psymbol_functions::lookup_global_symbol_language)
2170 (psymbol_functions::find_last_source_symtab)
2171 (psymbol_functions::forget_cached_source_info)
2172 (psymbol_functions::print_stats, psymbol_functions::dump)
2173 (psymbol_functions::expand_symtabs_for_function)
2174 (psymbol_functions::expand_all_symtabs)
2175 (psymbol_functions::expand_symtabs_with_fullname)
2176 (psymbol_functions::map_symbol_filenames)
2177 (psymbol_functions::map_matching_symbols)
2178 (psymbol_functions::expand_symtabs_matching)
2179 (psymbol_functions::has_symbols)
2180 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2181 (psym_functions): Remove.
2182 (make_psymbol_functions): New function.
2183 * objfiles.h (struct objfile) <qf>: Change type.
2184 * elfread.c (elf_symfile_read): Update.
2185 * dwarf2/read.c (struct dwarf2_base_index_functions)
2186 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2187 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2188 (dwarf2_base_index_functions::find_last_source_symtab)
2189 (dwarf2_base_index_functions::forget_cached_source_info)
2190 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2191 (dwarf2_gdb_index::lookup_symbol)
2192 (dwarf2_base_index_functions::print_stats)
2193 (dwarf2_gdb_index::dump)
2194 (dwarf2_gdb_index::expand_symtabs_for_function)
2195 (dwarf2_base_index_functions::expand_all_symtabs)
2196 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2198 (dwarf2_gdb_index::map_matching_symbols): New method.
2199 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2200 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2201 (dwarf2_base_index_functions::map_symbol_filenames)
2202 (dwarf2_base_index_functions::has_symbols): Rename.
2203 (dwarf2_gdb_index_functions): Remove.
2204 (dwarf2_debug_names_index::lookup_symbol)
2205 (dwarf2_debug_names_index::dump)
2206 (dwarf2_debug_names_index::expand_symtabs_for_function)
2207 (dwarf2_debug_names_index::map_matching_symbols)
2208 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2209 (dwarf2_debug_names_functions): Remove.
2210 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2213 2021-03-20 Tom Tromey <tom@tromey.com>
2215 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2217 * xcoffread.c (xcoff_sym_fns): Update.
2218 * symfile.h (struct sym_fns) <qf>: Remove.
2219 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2220 * symfile-debug.c (objfile::has_partial_symbols)
2221 (objfile::find_last_source_symtab)
2222 (objfile::forget_cached_source_info)
2223 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2224 (objfile::print_stats, objfile::dump)
2225 (objfile::expand_symtabs_for_function)
2226 (objfile::expand_all_symtabs)
2227 (objfile::expand_symtabs_with_fullname)
2228 (objfile::map_matching_symbols)
2229 (objfile::expand_symtabs_matching)
2230 (objfile::find_pc_sect_compunit_symtab)
2231 (objfile::map_symbol_filenames)
2232 (objfile::find_compunit_symtab_by_address)
2233 (objfile::lookup_global_symbol_language, debug_sym_fns)
2234 (install_symfile_debug_logging): Update.
2235 * objfiles.h (struct objfile) <qf>: New member.
2236 * mipsread.c (ecoff_sym_fns): Update.
2237 * machoread.c (macho_sym_fns): Update.
2238 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2240 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2241 * dbxread.c (aout_sym_fns): Update.
2242 * coffread.c (coff_sym_fns): Update.
2244 2021-03-20 Tom Tromey <tom@tromey.com>
2246 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2247 (expand_symtabs_file_matcher_ftype)
2248 (expand_symtabs_symbol_matcher_ftype)
2249 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2250 Move to quick-symbol.h.
2251 * quick-symbol.h: New file.
2253 2021-03-20 Tom Tromey <tom@tromey.com>
2255 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2256 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2257 (basic_lookup_transparent_type_quick)
2258 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2259 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2261 * symmisc.c (print_objfile_statistics, dump_objfile)
2262 (maintenance_expand_symtabs): Update.
2263 * symfile.c (symbol_file_add_with_addrs)
2264 (expand_symtabs_matching, map_symbol_filenames): Update.
2265 * symfile-debug.c (objfile::has_partial_symbols)
2266 (objfile::find_last_source_symtab)
2267 (objfile::forget_cached_source_info)
2268 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2269 (objfile::print_stats, objfile::dump)
2270 (objfile::expand_symtabs_for_function)
2271 (objfile::expand_all_symtabs)
2272 (objfile::expand_symtabs_with_fullname)
2273 (objfile::map_matching_symbols)
2274 (objfile::expand_symtabs_matching)
2275 (objfile::find_pc_sect_compunit_symtab)
2276 (objfile::map_symbol_filenames)
2277 (objfile::find_compunit_symtab_by_address)
2278 (objfile::lookup_global_symbol_language): New methods.
2279 (debug_sym_quick_functions): Remove.
2280 (debug_sym_fns, install_symfile_debug_logging): Update.
2281 * source.c (forget_cached_source_info_for_objfile)
2282 (select_source_symtab): Update.
2283 * objfiles.h (struct objfile): Add methods corresponding to
2284 quick_symbol_functions.
2285 * objfiles.c (objfile::has_partial_symbols): Move to
2287 * linespec.c (iterate_over_all_matching_symtabs): Update.
2288 * cp-support.c (add_symbol_overload_list_qualified): Update.
2289 * ada-lang.c (add_nonlocal_symbols): Update.
2291 2021-03-20 Tom Tromey <tom@tromey.com>
2293 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2294 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2296 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2297 * psymtab.c (psym_has_symbols): Return bool.
2298 * objfiles.c (objfile::has_partial_symbols): Return bool.
2299 * dwarf2/read.c (dw2_has_symbols): Return bool.
2301 2021-03-20 Tom Tromey <tom@tromey.com>
2303 * symfile.c (read_symbols): Update.
2304 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2305 (objfile_has_partial_symbols): Don't declare.
2306 * objfiles.c (objfile::has_partial_symbols): Rename from
2307 objfile_has_partial_symbols.
2308 (objfile_has_symbols, have_partial_symbols): Update.
2309 * elfread.c (elf_symfile_read): Update.
2310 * dwarf2/read.c (dwarf2_has_info): Update.
2311 * coffread.c (coff_symfile_read): Update.
2313 2021-03-20 Tom Tromey <tom@tromey.com>
2315 * coffread.c: Include dwarf2/public.h.
2316 * dwarf2/frame.c: Include dwarf2/public.h.
2317 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2318 * dwarf2/public.h: New file.
2319 * dwarf2/read.c: Include dwarf2/public.h.
2320 * elfread.c: Include dwarf2/public.h.
2321 * machoread.c: Include dwarf2/public.h.
2322 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2323 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2324 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2325 * xcoffread.c: Include dwarf2/public.h.
2327 2021-03-20 Tom Tromey <tom@tromey.com>
2329 * symfile.h (enum dwarf2_section_enum)
2330 (dwarf2_get_section_info): Move to dwarf2/read.h.
2331 * dwarf2/read.h (enum dwarf2_section_enum)
2332 (dwarf2_get_section_info): Move from symfile.h.
2334 2021-03-19 Pedro Alves <pedro@palves.net>
2336 * thread.c (any_thread_of_inferior): Check if there's a selected
2337 thread before calling inferior_thread().
2339 2021-03-18 Tom Tromey <tromey@adacore.com>
2341 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2343 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2344 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2346 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2348 * python/py-param.c (get_set_value): Update header comment.
2350 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2352 * infrun.c (check_multi_target_resumption): Remove argument to
2353 all_non_exited_inferiors.
2355 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2357 * windows-nat.c (windows_init_thread_list): Add message to
2360 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2362 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2363 well as PyLong_Check for Python 2.
2365 2021-03-15 Tom Tromey <tromey@adacore.com>
2368 * rust-exp.y (maker_map): Use gdb::hash_enum.
2369 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2371 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2373 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2376 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2378 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2379 parameter, adjust caller.
2381 2021-03-15 Tom Tromey <tromey@adacore.com>
2383 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2385 2021-03-15 Tom Tromey <tromey@adacore.com>
2387 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2388 ada_ensure_varsize_limit.
2390 2021-03-15 Tom Tromey <tromey@adacore.com>
2392 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2394 * ada-exp.y (maybe_overload): New function.
2395 (ada_wrap_overload): New function.
2396 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2397 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2398 (or_else_exp, xor_exp, primary): Update.
2400 2021-03-15 Tom Tromey <tromey@adacore.com>
2403 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2404 call for tagged type.
2406 2021-03-15 Tom Tromey <tromey@adacore.com>
2408 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2411 2021-03-15 Tom Tromey <tromey@adacore.com>
2413 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2415 (ada_assign_operation::evaluate): Update.
2416 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2419 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2421 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2423 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2425 * python/python.c (gdbpy_source_objfile_script): Use
2426 make_scoped_restore to restore gdbpy_current_objfile.
2427 (gdbpy_execute_objfile_script): Likewise.
2429 2021-03-14 Tom Tromey <tom@tromey.com>
2431 * dwarf2/read.c (read_attribute_value): Use cu_header
2434 2021-03-14 Tom Tromey <tom@tromey.com>
2436 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2437 (peek_die_abbrev): Use reader.abfd.
2439 2021-03-14 Tom Tromey <tom@tromey.com>
2441 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2444 2021-03-13 Tom Tromey <tom@tromey.com>
2446 * dwarf2/read.c (struct partial_die_info): Update.
2447 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2448 (load_partial_dies, partial_die_info::partial_die_info): Update.
2449 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2451 2021-03-13 Tom Tromey <tom@tromey.com>
2453 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2455 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2458 * cp-support.c: Use scoped_segv_handler_restore.
2459 * event-top.c (thread_local_segv_handler): Made static.
2460 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2462 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2464 * event-top.h (class scoped_segv_handler_restore): New class.
2465 (thread_local_segv_handler): Removed.
2467 2021-03-10 Tom Tromey <tromey@adacore.com>
2469 * parser-defs.h (parser_state): Change completion to bool.
2470 <parse_completion>: Likewise.
2471 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2472 (ada_resolve_variable, ada_resolve_function): Update.
2473 * ada-lang.c (ada_find_operator_symbol): Change
2474 parse_completion to bool.
2475 (ada_resolve_funcall, ada_resolve_variable)
2476 (ada_resolve_function): Likewise.
2478 2021-03-09 Tom Tromey <tromey@adacore.com>
2480 * eval.c (operation::evaluate_funcall): Use function formal
2481 parameter types when evaluating.
2483 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2485 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2486 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2487 and owner to m_owner.
2489 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2491 * f-exp.h (eval_op_f_loc): Declare.
2492 (expr::fortran_loc_operation): New typedef.
2493 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2495 (f77_keywords): Add LOC keyword.
2496 * f-lang.c (eval_op_f_loc): New function.
2497 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2499 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2501 * f-exp.h (eval_op_f_array_shape): Declare.
2502 (fortran_array_shape_operation): New type.
2503 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2505 (f77_keywords): Add "shape" keyword.
2506 * f-lang.c (fortran_array_shape): New function.
2507 (eval_op_f_array_shape): New function.
2508 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2510 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2512 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2514 (expr::fortran_array_size_1arg): New type.
2515 (expr::fortran_array_size_2arg): Likewise.
2516 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2517 UNOP_OR_BINOP_INTRINSIC.
2518 (f77_keywords): Add "size" keyword.
2519 * f-lang.c (fortran_array_size): New function.
2520 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2521 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2523 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2525 * f-exp.h (eval_op_f_rank): Declare.
2526 (expr::fortran_rank_operation): New typedef.
2527 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2529 (f77_keywords): Add "rank" keyword.
2530 * f-lang.c (eval_op_f_rank): New function.
2531 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2533 2021-03-08 Tom Tromey <tom@tromey.com>
2535 * printcmd.c (set_command): Remove null check.
2536 * value.c (init_if_undefined_command): Remove null check.
2538 2021-03-08 Tom Tromey <tom@tromey.com>
2540 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2542 * p-exp.y (variable): Update.
2543 * go-exp.y (variable): Update.
2544 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2545 Remove overload for objfile.
2546 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2548 (check_objfile): Likewise.
2549 (dump_for_expression): Likewise. Remove overload for objfile.
2550 (class var_msym_value_operation): Use bound_minimal_symbol.
2551 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2553 (var_msym_value_operation::evaluate_for_address)
2554 (var_msym_value_operation::evaluate_for_sizeof)
2555 (var_msym_value_operation::evaluate_for_cast): Update.
2556 * d-exp.y (PrimaryExpression): Update.
2557 * c-exp.y (variable): Update.
2558 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2559 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2561 * ada-exp.y (write_var_or_type): Update.
2563 2021-03-08 Tom Tromey <tom@tromey.com>
2565 * parser-defs.h (exp_uses_objfile): Return bool.
2566 * parse.c (exp_uses_objfile): Return bool.
2568 2021-03-08 Tom Tromey <tom@tromey.com>
2570 * value.h (eval_skip_value): Don't declare.
2571 * opencl-lang.c (eval_opencl_assign): Update.
2572 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2573 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2574 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2575 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2576 * expop.h (typeof_operation::evaluate)
2577 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2578 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2579 (cxx_cast_operation::evaluate): Update.
2580 * eval.c (eval_skip_value): Remove.
2581 (eval_op_scope, eval_op_var_entry_value)
2582 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2583 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2584 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2585 (eval_op_binary, eval_op_subscript, eval_op_equal)
2586 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2587 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2588 (eval_op_complement, eval_op_lognot, eval_op_ind)
2589 (eval_op_memval, eval_op_preinc, eval_op_predec)
2590 (eval_op_postinc, eval_op_postdec, eval_op_type)
2591 (eval_binop_assign_modify, eval_op_objc_msgcall)
2592 (eval_multi_subscript, logical_and_operation::evaluate)
2593 (logical_or_operation::evaluate, array_operation::evaluate)
2594 (operation::evaluate_for_cast)
2595 (var_msym_value_operation::evaluate_for_cast)
2596 (var_value_operation::evaluate_for_cast): Update.
2597 * c-lang.c (c_string_operation::evaluate): Update.
2598 * c-exp.h (objc_nsstring_operation::evaluate)
2599 (objc_selector_operation::evaluate): Update.
2600 * ada-lang.c (ada_assign_operation::evaluate)
2601 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2602 (ada_atr_size): Update.
2604 2021-03-08 Tom Tromey <tom@tromey.com>
2606 * eval.c: Merge "namespace" scopes.
2608 2021-03-08 Tom Tromey <tom@tromey.com>
2610 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2612 * parse.c (expr_builder::expr_builder, expr_builder::release):
2615 2021-03-08 Tom Tromey <tom@tromey.com>
2617 * parse.c (expression::expression, expression::~expression):
2619 * expression.h (struct expression): Inline constructor. Remove
2622 2021-03-08 Tom Tromey <tom@tromey.com>
2624 * std-operator.def (BINOP_END): Remove.
2625 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2626 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2627 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2628 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2629 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2632 2021-03-08 Tom Tromey <tom@tromey.com>
2634 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2636 2021-03-08 Tom Tromey <tom@tromey.com>
2638 * std-operator.def (OP_EXTENDED0): Remove.
2640 2021-03-08 Tom Tromey <tom@tromey.com>
2642 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2643 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2646 2021-03-08 Tom Tromey <tom@tromey.com>
2648 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2649 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2651 2021-03-08 Tom Tromey <tom@tromey.com>
2653 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2654 * ada-lang.c (ada_binop_minmax): Update.
2655 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2656 Use BINOP_MIN and BINOP_MAX.
2658 2021-03-08 Tom Tromey <tom@tromey.com>
2660 * value.h (evaluate_subexp_with_coercion): Don't declare.
2661 * parse.c (exp_descriptor_standard): Remove.
2662 (expr_builder::expr_builder, expr_builder::release): Update.
2663 (expression::expression): Remove size_t parameter.
2664 (expression::~expression): Simplify.
2665 (expression::resize): Remove.
2666 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2667 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2668 (write_exp_elt_longcst, write_exp_elt_floatcst)
2669 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2670 (write_exp_string_vector, write_exp_bitstring): Remove.
2671 * p-lang.h (class pascal_language) <opcode_print_table,
2672 op_print_tab>: Remove.
2673 * p-lang.c (pascal_language::op_print_tab): Remove.
2674 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2676 * objc-lang.c (objc_op_print_tab): Remove.
2677 (class objc_language) <opcode_print_table>: Remove.
2678 * m2-lang.h (class m2_language) <opcode_print_table,
2679 op_print_tab>: Remove.
2680 * m2-lang.c (m2_language::op_print_tab): Remove.
2681 * language.h (struct language_defn) <post_parser, expression_ops,
2682 opcode_print_table>: Remove.
2683 * language.c (language_defn::expression_ops)
2684 (auto_or_unknown_language::opcode_print_table): Remove.
2685 * go-lang.h (class go_language) <opcode_print_table,
2686 op_print_tab>: Remove.
2687 * go-lang.c (go_language::op_print_tab): Remove.
2688 * f-lang.h (class f_language) <opcode_print_table>: Remove
2689 <op_print_tab>: Remove.
2690 * f-lang.c (f_language::op_print_tab): Remove.
2691 * expression.h (union exp_element): Remove.
2692 (struct expression): Remove size_t parameter from constructor.
2694 <first_opcode>: Update.
2695 <nelts, elts>: Remove.
2696 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2697 (evaluate_subexp_standard, print_expression, op_string)
2698 (dump_raw_expression): Don't declare.
2699 * expprint.c (print_expression, print_subexp)
2700 (print_subexp_funcall, print_subexp_standard, op_string)
2701 (dump_raw_expression, dump_subexp, dump_subexp_body)
2702 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2703 (dump_prefix_expression): Update.
2704 * eval.c (evaluate_subexp): Remove.
2705 (evaluate_expression, evaluate_type): Update.
2706 (evaluate_subexpression_type): Remove.
2707 (fetch_subexp_value): Remove "pc" parameter. Update.
2708 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2709 (evaluate_subexp_standard, evaluate_subexp_for_address)
2710 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2711 (evaluate_subexp_for_cast): Remove.
2712 (parse_and_eval_type): Update.
2713 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2714 * d-lang.c (d_op_print_tab): Remove.
2715 (class d_language) <opcode_print_table>: Remove.
2716 * c-lang.h (c_op_print_tab): Don't declare.
2717 * c-lang.c (c_op_print_tab): Remove.
2718 (class c_language, class cplus_language, class asm_language, class
2719 minimal_language) <opcode_print_table>: Remove.
2720 * breakpoint.c (update_watchpoint, watchpoint_check)
2721 (watchpoint_exp_is_const, watch_command_1): Update.
2722 * ax-gdb.h (union exp_element): Don't declare.
2723 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2724 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2725 (gen_expr_binop_rest): Remove.
2726 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2727 * ada-lang.c (ada_op_print_tab): Remove.
2728 (class ada_language) <post_parser, opcode_print_table>: Remove.
2730 2021-03-08 Tom Tromey <tom@tromey.com>
2732 * go-lang.c (go_language::expression_ops): Don't declare.
2733 * go-lang.h (class go_language) <expression_ops>: Remove.
2734 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2736 (class opencl_language) <expression_ops>: Remove.
2737 * d-lang.c (class d_language) <expression_ops>: Remove.
2738 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2739 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2740 (class c_language, class cplus_language, class asm_language)
2741 (class minimal_language) <expression_ops>: Remove.
2743 2021-03-08 Tom Tromey <tom@tromey.com>
2745 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2746 (evaluate_subexp_type, assign_aggregate)
2747 (aggregate_assign_positional, aggregate_assign_from_choices)
2748 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2749 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2750 (ada_operator_check, ada_forward_operator_length)
2751 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2753 (post_parser): Update.
2754 (class ada_language) <expresssion_ops>: Remove.
2756 2021-03-08 Tom Tromey <tom@tromey.com>
2758 * m2-lang.h (class m2_language) <expresssion_ops,
2759 exp_descriptor_modula2>: Remove.
2760 * m2-lang.c (evaluate_subexp_modula2)
2761 (m2_language::exp_descriptor_modula2): Remove.
2763 2021-03-08 Tom Tromey <tom@tromey.com>
2765 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2766 <exp_descriptor_tab>: Remove.
2767 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2768 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2769 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2770 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2773 2021-03-08 Tom Tromey <tom@tromey.com>
2775 * rust-lang.h (class rust_language) <expression_ops,
2776 exp_descriptor_tab>: Remove.
2777 * rust-lang.c (rust_evaluate_funcall): Remove.
2778 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2780 (rust_evaluate_subexp): Remove.
2781 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2782 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2783 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2785 2021-03-08 Tom Tromey <tom@tromey.com>
2787 * ada-exp.y: Create operations.
2788 (empty_stoken): Remove.
2789 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2790 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2791 (components): New global.
2792 (push_component, choice_component, pop_component, pop_components):
2794 (associations): New global
2795 (push_association, pop_association, pop_associations): New
2797 (ada_parse): Update.
2798 (write_var_from_sym, write_int): Create operations.
2799 (write_exp_op_with_string): Remove.
2800 (write_object_renaming, write_selectors, write_ambiguous_var)
2801 (write_var_or_type, write_name_assoc): Create operations.
2802 * ada-lang.h (ada_index_type): Declare.
2803 * ada-lang.c (ada_index_type): No longer static.
2805 2021-03-08 Tom Tromey <tom@tromey.com>
2807 * f-exp.y: Create operations.
2808 (f_language::parser): Update.
2810 2021-03-08 Tom Tromey <tom@tromey.com>
2812 * m2-exp.y: Create operations.
2813 (m2_language::parser): Update.
2815 2021-03-08 Tom Tromey <tom@tromey.com>
2817 * p-exp.y: Create operations.
2818 (pascal_language::parser): Update.
2820 2021-03-08 Tom Tromey <tom@tromey.com>
2822 * d-exp.y: Create operations.
2825 2021-03-08 Tom Tromey <tom@tromey.com>
2827 * go-exp.y: Create operations.
2828 (go_language::parser): Update.
2830 2021-03-08 Tom Tromey <tom@tromey.com>
2832 * objc-lang.c (end_msglist): Create operations.
2833 * c-exp.y: Change parser to create operations.
2834 (write_destructor_name): Remove.
2837 2021-03-08 Tom Tromey <tom@tromey.com>
2839 * rust-exp.y: Create operations.
2840 (rust_parser::convert_params_to_expression): Change return type.
2841 (binop_maker_ftype): New typedef.
2842 (maker_map): New global.
2843 (rust_parser::convert_ast_to_expression): Change return type.
2844 (rust_language::parser): Update.
2845 (_initialize_rust_exp): Initialize maker_map.
2847 2021-03-08 Tom Tromey <tom@tromey.com>
2849 * stap-probe.c (binop_maker_ftype): New typedef.
2850 (stap_maker_map): New global.
2851 (stap_make_binop): New function.
2852 (stap_parse_register_operand): Return operation_up.
2853 (stap_parse_single_operand, stap_parse_argument_conditionally)
2854 (stap_parse_argument_1): Likewise.
2855 (stap_parse_argument): Create operations.
2856 (stap_probe::parse_arguments): Update.
2857 (_initialize_stap_probe): Initialize stap_maker_map.
2858 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2860 * i386-tdep.h (i386_stap_parse_special_token): Change return
2862 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2863 (i386_stap_parse_special_token_three_arg_disp)
2864 (i386_stap_parse_special_token): Change return type.
2865 * gdbarch.sh (stap_parse_special_token): Change return type.
2866 * gdbarch.c: Rebuild.
2867 * gdbarch.h: Rebuild.
2868 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2870 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2873 2021-03-08 Tom Tromey <tom@tromey.com>
2875 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2876 * gdbarch.h: Rebuild.
2877 * gdbarch.c: Rebuild.
2878 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2879 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2881 (amd64_dtrace_parse_probe_argument): Update.
2883 2021-03-08 Tom Tromey <tom@tromey.com>
2885 * parser-defs.h (struct parser_state) <push, push_new,
2886 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2887 wrap2>: New methods.
2888 <m_operations>: New member.
2889 * parse.c (parser_state::push_c_string)
2890 (parser_state::push_symbol, parser_state::push_dollar): New
2893 2021-03-08 Tom Tromey <tom@tromey.com>
2895 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2897 (struct parser_state) <mark_struct_expression>: New method.
2898 * parse.c (parser_state::mark_struct_expression): Update assert.
2899 (parser_state::mark_struct_expression): New method.
2900 (parser_state::mark_completion_tag): Update assert.
2901 (parse_expression_for_completion): Handle expout_last_op.
2903 2021-03-08 Tom Tromey <tom@tromey.com>
2905 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2907 * value.h (fetch_subexp_value): Add "op" parameter.
2908 * value.c (init_if_undefined_command): Update.
2909 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2910 * stap-probe.c (stap_probe::compile_to_ax): Update.
2911 * printcmd.c (set_command): Update.
2912 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2914 * parser-defs.h (struct expr_builder) <set_operation>: New
2916 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2917 * expression.h (struct expression) <first_opcode>: Update.
2919 * expprint.c (dump_raw_expression, dump_prefix_expression):
2921 * expop.h (class var_value_operation) <get_symbol>: New method.
2922 (class register_operation) <get_name>: New method.
2923 (class equal_operation): No longer a typedef, now a subclass.
2924 (class unop_memval_operation) <get_type>: New method.
2925 (class assign_operation) <get_lhs>: New method.
2926 (class unop_cast_operation) <get_type>: New method.
2927 * eval.c (evaluate_expression, evaluate_type)
2928 (evaluate_subexpression_type): Update.
2929 (fetch_subexp_value): Add "op" parameter.
2930 (parse_and_eval_type): Update.
2931 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2932 * breakpoint.c (update_watchpoint, watchpoint_check)
2933 (watchpoint_exp_is_const, watch_command_1): Update.
2934 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2937 2021-03-08 Tom Tromey <tom@tromey.com>
2939 * ada-lang.c (ada_value_binop): Do not use op_string.
2941 2021-03-08 Tom Tromey <tom@tromey.com>
2943 * expprint.c (dump_for_expression): New overload.
2944 * expop.h (check_objfile, dump_for_expression): Declare new
2946 * ada-lang.c (check_objfile): New overload.
2947 (assign_component, ada_aggregate_component::uses_objfile)
2948 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2949 (ada_aggregate_component::assign_aggregate)
2950 (ada_positional_component::uses_objfile)
2951 (ada_positional_component::dump, ada_positional_component::assign)
2952 (ada_discrete_range_association::uses_objfile)
2953 (ada_discrete_range_association::dump)
2954 (ada_discrete_range_association::assign)
2955 (ada_name_association::uses_objfile, ada_name_association::dump)
2956 (ada_name_association::assign)
2957 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2958 (ada_choices_component::assign)
2959 (ada_others_component::uses_objfile, ada_others_component::dump)
2960 (ada_others_component::assign, ada_assign_operation::evaluate):
2962 * ada-exp.h (ada_string_operation) <get_name>: New method.
2963 (class ada_assign_operation): New.
2964 (class ada_component): New.
2965 (ada_component_up): New typedef.
2966 (class ada_aggregate_operation, class ada_aggregate_component)
2967 (class ada_positional_component, class ada_others_component)
2968 (class ada_association): New.
2969 (ada_association_up): New typedef.
2970 (class ada_choices_component)
2971 (class ada_discrete_range_association)
2972 (class ada_name_association): New.
2974 2021-03-08 Tom Tromey <tom@tromey.com>
2976 * ada-lang.c (ada_var_value_operation::resolve)
2977 (ada_funcall_operation::resolve)
2978 (ada_ternop_slice_operation::resolve): New methods.
2979 * ada-exp.h (struct ada_resolvable): New.
2980 (class ada_var_value_operation): Derive from ada_resolvable.
2981 <get_block, resolve>: New methods.
2982 (class ada_funcall_operation): Derive from ada_resolvable.
2983 <resolve>: New method.
2984 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2985 <resolve>: New method.
2987 2021-03-08 Tom Tromey <tom@tromey.com>
2989 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2990 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2992 (class ada_funcall_operation): New.
2994 2021-03-08 Tom Tromey <tom@tromey.com>
2996 * ada-lang.c (ada_structop_operation::evaluate): New method.
2997 * ada-exp.h (class ada_structop_operation): New.
2999 2021-03-08 Tom Tromey <tom@tromey.com>
3001 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3002 * ada-exp.h (class ada_unop_ind_operation): New.
3004 2021-03-08 Tom Tromey <tom@tromey.com>
3006 * ada-lang.c (ada_binop_exp): No longer static.
3007 * ada-exp.h (ada_binop_exp_operation): New typedef.
3009 2021-03-08 Tom Tromey <tom@tromey.com>
3011 * ada-lang.c (ada_val_atr): No longer static.
3012 (ada_atr_val_operation::evaluate): New method.
3013 * ada-exp.h (class ada_atr_val_operation): New.
3015 2021-03-08 Tom Tromey <tom@tromey.com>
3017 * ada-lang.c (ada_pos_atr): No longer static.
3018 * ada-exp.h (ada_pos_operation): New typedef.
3020 2021-03-08 Tom Tromey <tom@tromey.com>
3022 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3024 (ada_evaluate_subexp): Use it.
3026 2021-03-08 Tom Tromey <tom@tromey.com>
3028 * ada-lang.c (ada_binop_minmax): No longer static.
3029 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3032 2021-03-08 Tom Tromey <tom@tromey.com>
3034 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3036 * ada-exp.h (class ada_var_msym_value_operation): New.
3038 2021-03-08 Tom Tromey <tom@tromey.com>
3040 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3041 (ada_var_value_operation::evaluate): New methods.
3042 * ada-exp.h (class ada_var_value_operation): New.
3044 2021-03-08 Tom Tromey <tom@tromey.com>
3046 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3047 * ada-exp.h (class ada_unop_atr_operation): New.
3049 2021-03-08 Tom Tromey <tom@tromey.com>
3051 * ada-lang.c (ada_binop_in_bounds): No longer static.
3052 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3054 2021-03-08 Tom Tromey <tom@tromey.com>
3056 * ada-lang.c (ada_ternop_slice): No longer static.
3057 * ada-exp.h (class ada_ternop_slice_operation): New.
3059 2021-03-08 Tom Tromey <tom@tromey.com>
3061 * ada-exp.h (ada_bitwise_operation): New template class.
3062 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3063 (ada_bitwise_xor_operation): New typedefs.
3065 2021-03-08 Tom Tromey <tom@tromey.com>
3067 * ada-lang.c (ada_equal_binop): No longer static.
3068 * ada-exp.h (class ada_binop_equal_operation): New.
3070 2021-03-08 Tom Tromey <tom@tromey.com>
3072 * ada-lang.c (ada_mult_binop): No longer static.
3073 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3074 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3076 2021-03-08 Tom Tromey <tom@tromey.com>
3078 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3079 * ada-exp.h (class ada_binop_addsub_operation): New.
3081 2021-03-08 Tom Tromey <tom@tromey.com>
3083 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3084 (ada_resolve_variable): Declare.
3085 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3086 (ada_resolve_variable): New functions.
3087 (resolve_subexp): Update.
3089 2021-03-08 Tom Tromey <tom@tromey.com>
3091 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3093 * c-exp.h (class opencl_ternop_cond_operation): New.
3095 2021-03-08 Tom Tromey <tom@tromey.com>
3097 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3099 * c-exp.h (class opencl_logical_binop_operation): New.
3101 2021-03-08 Tom Tromey <tom@tromey.com>
3103 * opencl-lang.c (opencl_structop_operation::evaluate): New
3105 * c-exp.h (class opencl_structop_operation): New.
3107 2021-03-08 Tom Tromey <tom@tromey.com>
3109 * opencl-lang.c (opencl_logical_not): No longer static. Change
3111 (evaluate_subexp_opencl): Update.
3112 * c-exp.h (opencl_notequal_operation): New typedef.
3114 2021-03-08 Tom Tromey <tom@tromey.com>
3116 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3117 static. Change parameters.
3118 (eval_opencl_assign): No longer static. Add "op" parameter.
3119 (evaluate_subexp_opencl): Update.
3120 * c-exp.h (opencl_binop_operation): New template class.
3121 (opencl_assign_operation, opencl_equal_operation)
3122 (opencl_notequal_operation, opencl_less_operation)
3123 (opencl_gtr_operation, opencl_geq_operation)
3124 (opencl_leq_operation): New typedefs.
3126 2021-03-08 Tom Tromey <tom@tromey.com>
3128 * opencl-lang.c (opencl_value_cast): No longer static.
3129 * c-exp.h (opencl_cast_type_operation): New typedef.
3131 2021-03-08 Tom Tromey <tom@tromey.com>
3133 * f-exp.h (eval_op_f_allocated): Declare.
3134 (fortran_allocated_operation): New typedef.
3135 * f-lang.c (eval_op_f_allocated): No longer static.
3137 2021-03-08 Tom Tromey <tom@tromey.com>
3139 * f-lang.c (eval_op_f_associated): New functions.
3140 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3143 2021-03-08 Tom Tromey <tom@tromey.com>
3145 * f-lang.c (fortran_bound_1arg::evaluate)
3146 (fortran_bound_2arg::evaluate): New methods.
3147 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3150 2021-03-08 Tom Tromey <tom@tromey.com>
3152 * expop.h (class unop_addr_operation) <get_expression>: New
3154 * f-lang.c (fortran_undetermined::value_subarray)
3155 (fortran_undetermined::evaluate): New methods.
3156 (fortran_prepare_argument): New overload.
3157 * f-exp.h (class fortran_range_operation)
3158 (class fortran_undetermined): New classes.
3160 2021-03-08 Tom Tromey <tom@tromey.com>
3162 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3163 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3166 2021-03-08 Tom Tromey <tom@tromey.com>
3168 * expression.h (class operation) <evaluate_funcall>: New methods.
3169 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3170 (class var_value_operation) <evaluate_funcall>: New method.
3171 (class structop_base_operation) <evaluate_funcall>: New method.
3172 (class var_msym_value_operation) <evaluate_funcall>: New method.
3173 (class structop_member_base): New class.
3174 (class structop_member_operation): Derive from
3175 structop_member_base.
3176 (class structop_mptr_operation): Derive from
3177 structop_member_base.
3178 (class funcall_operation): New class.
3179 * eval.c (operation::evaluate_funcall)
3180 (var_value_operation::evaluate_funcall)
3181 (scope_operation::evaluate_funcall)
3182 (structop_member_base::evaluate_funcall)
3183 (structop_base_operation::evaluate_funcall): New methods.
3185 2021-03-08 Tom Tromey <tom@tromey.com>
3187 * expop.h (class array_operation): New.
3188 * eval.c (array_operation::evaluate_struct_tuple)
3189 (array_operation::evaluate): New methods.
3191 2021-03-08 Tom Tromey <tom@tromey.com>
3193 * expop.h (class adl_func_operation): New.
3194 * eval.c (adl_func_operation::evaluate): New method.
3196 2021-03-08 Tom Tromey <tom@tromey.com>
3198 * ada-lang.c (ada_unop_in_range): No longer static.
3199 * ada-exp.h (class ada_unop_range_operation): New.
3201 2021-03-08 Tom Tromey <tom@tromey.com>
3203 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3205 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3206 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3208 2021-03-08 Tom Tromey <tom@tromey.com>
3210 * expop.h (class logical_and_operation)
3211 (class logical_or_operation): New.
3212 * eval.c (logical_and_operation::evaluate)
3213 (logical_or_operation::evaluate): New methods.
3214 * ax-gdb.c (logical_and_operation::do_generate_ax)
3215 (logical_or_operation::do_generate_ax): New methods.
3217 2021-03-08 Tom Tromey <tom@tromey.com>
3219 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3221 * m2-exp.h: New file.
3223 2021-03-08 Tom Tromey <tom@tromey.com>
3225 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3226 * rust-exp.h (class rust_aggregate_operation): New.
3228 2021-03-08 Tom Tromey <tom@tromey.com>
3230 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3232 * rust-exp.h (class rust_struct_anon): New.
3233 (class rust_structop): New.
3235 2021-03-08 Tom Tromey <tom@tromey.com>
3237 * rust-lang.c (rust_range): No longer static.
3238 * rust-exp.h (class rust_range_operation): New.
3240 2021-03-08 Tom Tromey <tom@tromey.com>
3242 * rust-lang.c (rust_subscript): No longer static.
3243 * rust-exp.h (class rust_subscript_operation): New.
3245 2021-03-08 Tom Tromey <tom@tromey.com>
3247 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3249 (rust_evaluate_subexp): Update.
3250 * rust-exp.h (class rust_unop_ind_operation): New.
3252 2021-03-08 Tom Tromey <tom@tromey.com>
3254 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3255 longer static. Add "opcode" parameter.
3256 (rust_evaluate_subexp): Update.
3257 * rust-exp.h: New file.
3259 2021-03-08 Tom Tromey <tom@tromey.com>
3261 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3262 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3263 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3264 (evaluate_subexp_f): Update.
3265 * f-exp.h: New file.
3267 2021-03-08 Tom Tromey <tom@tromey.com>
3269 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3270 * ada-exp.h (class ada_ternop_range_operation): New.
3272 2021-03-08 Tom Tromey <tom@tromey.com>
3274 * ada-lang.c (ada_qual_operation::evaluate): New method.
3275 * ada-exp.h (class ada_qual_operation): New.
3277 2021-03-08 Tom Tromey <tom@tromey.com>
3279 * ada-lang.c (ada_string_operation::evaluate): New method.
3280 * ada-exp.h (class ada_string_operation): New.
3282 2021-03-08 Tom Tromey <tom@tromey.com>
3284 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3285 * ada-exp.h: New file.
3287 2021-03-08 Tom Tromey <tom@tromey.com>
3289 * expop.h (class multi_subscript_operation): New.
3290 * eval.c (multi_subscript_operation::evaluate): New method.
3292 2021-03-08 Tom Tromey <tom@tromey.com>
3294 * eval.c (objc_msgcall_operation::evaluate): New method.
3295 * c-exp.h (class objc_msgcall_operation): New.
3297 2021-03-08 Tom Tromey <tom@tromey.com>
3299 * expop.h (class var_value_operation): New.
3300 * eval.c (var_value_operation::evaluate)
3301 (var_value_operation::evaluate_for_address)
3302 (var_value_operation::evaluate_with_coercion)
3303 (var_value_operation::evaluate_for_sizeof)
3304 (var_value_operation::evaluate_for_cast): New methods.
3305 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3307 2021-03-08 Tom Tromey <tom@tromey.com>
3309 * expop.h (cxx_cast_ftype): New typedef.
3310 (cxx_cast_operation): New template.
3311 (dynamic_cast_operation, reinterpret_cast_operation): New
3314 2021-03-08 Tom Tromey <tom@tromey.com>
3316 * expop.h (class unop_cast_type_operation): New.
3317 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3320 2021-03-08 Tom Tromey <tom@tromey.com>
3322 * expop.h (class unop_cast_operation): New.
3323 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3325 2021-03-08 Tom Tromey <tom@tromey.com>
3327 * expop.h (class assign_modify_operation): New.
3328 * eval.c (eval_binop_assign_modify): No longer static.
3329 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3331 2021-03-08 Tom Tromey <tom@tromey.com>
3333 * expop.h (class assign_operation): New.
3334 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3336 2021-03-08 Tom Tromey <tom@tromey.com>
3338 * expop.h (class type_instance_operation): New.
3339 * eval.c (type_instance_operation::evaluate): New method.
3341 2021-03-08 Tom Tromey <tom@tromey.com>
3343 * expop.h (class op_this_operation): New.
3344 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3346 2021-03-08 Tom Tromey <tom@tromey.com>
3348 * expop.h (class unop_memval_operation)
3349 (class unop_memval_type_operation): New.
3350 * eval.c (eval_op_memval): No longer static.
3351 (unop_memval_operation::evaluate_for_address)
3352 (unop_memval_type_operation::evaluate_for_address)
3353 (unop_memval_operation::evaluate_for_sizeof)
3354 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3355 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3356 (unop_memval_type_operation::do_generate_ax): New methods.
3358 2021-03-08 Tom Tromey <tom@tromey.com>
3360 * expop.h (class unop_alignof_operation): New.
3361 * eval.c (eval_op_alignof): No longer static.
3363 2021-03-08 Tom Tromey <tom@tromey.com>
3365 * expop.h (class unop_sizeof_operation): New.
3366 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3368 2021-03-08 Tom Tromey <tom@tromey.com>
3370 * expop.h (class unop_addr_operation): New.
3371 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3373 2021-03-08 Tom Tromey <tom@tromey.com>
3375 * expop.h (class typeid_operation): New.
3377 2021-03-08 Tom Tromey <tom@tromey.com>
3379 * expop.h (class decltype_operation): New.
3381 2021-03-08 Tom Tromey <tom@tromey.com>
3383 * expop.h (class typeof_operation): New.
3385 2021-03-08 Tom Tromey <tom@tromey.com>
3387 * expop.h (class type_operation): New.
3388 * eval.c (eval_op_type): No longer static.
3390 2021-03-08 Tom Tromey <tom@tromey.com>
3392 * expop.h (class unop_ind_base_operation)
3393 (class unop_ind_operation): New.
3394 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3395 (unop_ind_base_operation::evaluate_for_address)
3396 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3397 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3399 2021-03-08 Tom Tromey <tom@tromey.com>
3401 * expop.h (unop_incr_operation): New template.
3402 (preinc_operation, predec_operation, postinc_operation)
3403 (postdec_operation): New typedefs.
3404 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3405 (eval_op_postdec): No longer static.
3407 2021-03-08 Tom Tromey <tom@tromey.com>
3409 * expop.h (unary_ftype): New typedef.
3410 (unop_operation, usual_ax_binop_operation): New templates.
3411 (unary_plus_operation, unary_neg_operation)
3412 (unary_complement_operation, unary_logical_not_operation): New
3414 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3415 (eval_op_lognot): No longer static.
3416 * ax-gdb.c (gen_expr_unop): New function.
3418 2021-03-08 Tom Tromey <tom@tromey.com>
3420 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3422 2021-03-08 Tom Tromey <tom@tromey.com>
3424 * expop.h (class repeat_operation): New.
3425 * eval.c (eval_op_repeat): No longer static. Remove "op"
3427 (evaluate_subexp_standard): Update.
3428 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3430 2021-03-08 Tom Tromey <tom@tromey.com>
3432 * expop.h (class comparison_operation): New.
3433 (equal_operation, notequal_operation, less_operation)
3434 (gtr_operation, geq_operation, leq_operation): New typedefs.
3435 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3436 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3438 2021-03-08 Tom Tromey <tom@tromey.com>
3440 * expop.h (class subscript_operation): New.
3441 * eval.c (eval_op_subscript): No longer static.
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3445 * expop.h (class binop_operation, class usual_ax_binop_operation):
3447 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3448 (div_operation, rem_operation, lsh_operation, rsh_operation)
3449 (bitwise_and_operation, bitwise_ior_operation)
3450 (bitwise_xor_operation): New typedefs.
3451 * eval.c (eval_op_binary): No longer static.
3453 2021-03-08 Tom Tromey <tom@tromey.com>
3455 * expop.h (class sub_operation): New.
3456 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3457 (evaluate_subexp_standard): Update.
3459 2021-03-08 Tom Tromey <tom@tromey.com>
3461 * expop.h (class add_operation): New.
3462 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3463 (evaluate_subexp_standard): Update.
3465 2021-03-08 Tom Tromey <tom@tromey.com>
3467 * expop.h (class concat_operation): New.
3468 * eval.c (eval_op_concat): No longer static. Remove "op"
3470 (evaluate_subexp_standard): Update.
3472 2021-03-08 Tom Tromey <tom@tromey.com>
3474 * expop.h (class structop_member_operation)
3475 (class structop_mptr_operation): New.
3476 * eval.c (eval_op_member): No longer static.
3478 2021-03-08 Tom Tromey <tom@tromey.com>
3480 * expop.h (class structop_ptr_operation): New.
3481 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3484 2021-03-08 Tom Tromey <tom@tromey.com>
3486 * expop.h (class structop_base_operation)
3487 (class structop_operation): New.
3488 * eval.c (eval_op_structop_struct): No longer static.
3490 2021-03-08 Tom Tromey <tom@tromey.com>
3492 * expop.h (class complex_operation): New.
3494 2021-03-08 Tom Tromey <tom@tromey.com>
3496 * eval.c (eval_op_objc_selector): No longer static.
3497 * c-exp.h (class objc_selector_operation): New.
3499 2021-03-08 Tom Tromey <tom@tromey.com>
3501 * eval.c: Include c-exp.h.
3502 * c-exp.h (class objc_nsstring_operation): New.
3504 2021-03-08 Tom Tromey <tom@tromey.com>
3506 * c-lang.c (c_string_operation::evaluate): New method.
3507 * c-exp.h: New file.
3509 2021-03-08 Tom Tromey <tom@tromey.com>
3511 * expop.h (class ternop_cond_operation): New.
3512 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3514 2021-03-08 Tom Tromey <tom@tromey.com>
3516 * expop.h (class ternop_slice_operation): New.
3517 * eval.c (eval_op_ternop): No longer static.
3519 2021-03-08 Tom Tromey <tom@tromey.com>
3521 * expop.h (class string_operation): New.
3522 * eval.c (eval_op_string): No longer static.
3524 2021-03-08 Tom Tromey <tom@tromey.com>
3526 * expop.h (class internalvar_operation): New.
3527 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3529 2021-03-08 Tom Tromey <tom@tromey.com>
3531 * expop.h (class bool_operation): New.
3533 2021-03-08 Tom Tromey <tom@tromey.com>
3535 * expop.h (class register_operation): New.
3536 * eval.c (eval_op_register): No longer static.
3537 * ax-gdb.c (register_operation::do_generate_ax): New method.
3539 2021-03-08 Tom Tromey <tom@tromey.com>
3541 * expop.h (class last_operation): New.
3543 2021-03-08 Tom Tromey <tom@tromey.com>
3545 * expop.h (class func_static_var_operation): New.
3546 * eval.c (eval_op_func_static_var): No longer static.
3548 2021-03-08 Tom Tromey <tom@tromey.com>
3550 * expop.h (class var_entry_value_operation): New.
3551 * eval.c (eval_op_var_entry_value): No longer static.
3553 2021-03-08 Tom Tromey <tom@tromey.com>
3555 * expression.h (class operation) <set_outermost>: New method.
3556 * expop.h (class var_msym_value_operation): New.
3557 * eval.c (eval_op_var_msym_value): No longer static.
3558 (var_msym_value_operation::evaluate_for_address)
3559 (var_msym_value_operation::evaluate_for_sizeof)
3560 (var_msym_value_operation::evaluate_for_cast): New methods.
3561 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3564 2021-03-08 Tom Tromey <tom@tromey.com>
3566 * expop.h (class long_const_operation): New.
3567 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3569 2021-03-08 Tom Tromey <tom@tromey.com>
3571 * expop.h (class scope_operation): New.
3572 * eval.c (eval_op_scope): No longer static.
3573 (scope_operation::evaluate_for_address): New method.
3574 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3576 2021-03-08 Tom Tromey <tom@tromey.com>
3578 * expprint.c (float_const_operation::dump): New method.
3579 * expop.h (float_data): New typedef.
3580 (class float_const_operation): New.
3582 2021-03-08 Tom Tromey <tom@tromey.com>
3584 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3585 * ax-gdb.c (gen_expr_binop): New function.
3586 (gen_expr_structop): Likewise.
3588 2021-03-08 Tom Tromey <tom@tromey.com>
3590 * expprint.c (expr::dump_for_expression): New functions.
3591 * expop.h (dump_for_expression): New overloads.
3592 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3595 2021-03-08 Tom Tromey <tom@tromey.com>
3597 * expression.h (expr::operation): New class.
3598 (expr::make_operation): New function.
3599 (expr::operation_up): New typedef.
3600 * expop.h: New file.
3601 * eval.c (operation::evaluate_for_cast)
3602 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3604 * ax-gdb.c (operation::generate_ax): New method.
3606 2021-03-08 Tom Tromey <tom@tromey.com>
3608 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3609 (gen_expr_binop_rest): New overload.
3611 2021-03-08 Tom Tromey <tom@tromey.com>
3613 * eval.c (eval_multi_subscript): New function.
3614 (evaluate_subexp_standard): Use it.
3616 2021-03-08 Tom Tromey <tom@tromey.com>
3618 * ada-lang.c (ada_binop_exp): New function.
3619 (ada_evaluate_subexp): Use it.
3621 2021-03-08 Tom Tromey <tom@tromey.com>
3623 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3625 (ada_evaluate_subexp): Use it.
3627 2021-03-08 Tom Tromey <tom@tromey.com>
3629 * ada-lang.c (ada_binop_minmax): New function.
3630 (ada_evaluate_subexp): Use it.
3632 2021-03-08 Tom Tromey <tom@tromey.com>
3634 * ada-lang.c (ada_unop_atr): New function.
3635 (ada_evaluate_subexp): Use it.
3637 2021-03-08 Tom Tromey <tom@tromey.com>
3639 * ada-lang.c (ada_binop_in_bounds): New function.
3640 (ada_evaluate_subexp): Use it.
3642 2021-03-08 Tom Tromey <tom@tromey.com>
3644 * ada-lang.c (ada_ternop_slice): New function.
3645 (ada_evaluate_subexp): Use it.
3647 2021-03-08 Tom Tromey <tom@tromey.com>
3649 * ada-lang.c (ada_equal_binop): New function.
3650 (ada_evaluate_subexp): Use it.
3652 2021-03-08 Tom Tromey <tom@tromey.com>
3654 * ada-lang.c (ada_mult_binop): New function.
3655 (ada_evaluate_subexp): Use it.
3657 2021-03-08 Tom Tromey <tom@tromey.com>
3659 * ada-lang.c (ada_abs): New function.
3660 (ada_evaluate_subexp): Use it.
3662 2021-03-08 Tom Tromey <tom@tromey.com>
3664 * ada-lang.c (ada_atr_size): New function.
3665 (ada_evaluate_subexp): Use it.
3667 2021-03-08 Tom Tromey <tom@tromey.com>
3669 * ada-lang.c (ada_atr_tag): New function.
3670 (ada_evaluate_subexp): Use it.
3672 2021-03-08 Tom Tromey <tom@tromey.com>
3674 * ada-lang.c (ada_unop_in_range): New function.
3675 (ada_evaluate_subexp): Use it.
3677 2021-03-08 Tom Tromey <tom@tromey.com>
3679 * ada-lang.c (ada_unop_neg): New function.
3680 (ada_evaluate_subexp): Use it.
3682 2021-03-08 Tom Tromey <tom@tromey.com>
3684 * ada-lang.c (eval_ternop_in_range): New function.
3685 (ada_evaluate_subexp): Use it.
3687 2021-03-08 Tom Tromey <tom@tromey.com>
3689 * opencl-lang.c (eval_opencl_assign): New function.
3690 (evaluate_subexp_opencl): Use it.
3692 2021-03-08 Tom Tromey <tom@tromey.com>
3694 * eval.c (eval_op_objc_msgcall): New function.
3695 (evaluate_subexp_standard): Use it.
3697 2021-03-08 Tom Tromey <tom@tromey.com>
3699 * eval.c (eval_binop_assign_modify): New function.
3700 (evaluate_subexp_standard): Use it.
3702 2021-03-08 Tom Tromey <tom@tromey.com>
3704 * m2-lang.c (eval_op_m2_subscript): New function.
3705 (evaluate_subexp_modula2): Use it.
3707 2021-03-08 Tom Tromey <tom@tromey.com>
3709 * m2-lang.c (eval_op_m2_high): New function.
3710 (evaluate_subexp_modula2): Use it.
3712 2021-03-08 Tom Tromey <tom@tromey.com>
3714 * eval.c (evaluate_subexp_for_address_base): New function.
3715 (evaluate_subexp_for_address): Use it.
3716 (evaluate_subexp_for_sizeof_base): New function.
3717 (evaluate_subexp_for_sizeof): Use it.
3719 2021-03-08 Tom Tromey <tom@tromey.com>
3721 * rust-lang.c (eval_op_rust_structop): New function.
3722 (rust_evaluate_subexp): Use it.
3724 2021-03-08 Tom Tromey <tom@tromey.com>
3726 * rust-lang.c (eval_op_rust_struct_anon): New function.
3727 (rust_evaluate_subexp): Use it.
3729 2021-03-08 Tom Tromey <tom@tromey.com>
3731 * rust-lang.c (eval_op_rust_array): New function.
3732 (rust_evaluate_subexp): Use it.
3734 2021-03-08 Tom Tromey <tom@tromey.com>
3736 * rust-lang.c (eval_op_rust_complement): New function.
3737 (rust_evaluate_subexp): Use it.
3739 2021-03-08 Tom Tromey <tom@tromey.com>
3741 * rust-lang.c (eval_op_rust_ind): New function.
3742 (rust_evaluate_subexp): Use it.
3744 2021-03-08 Tom Tromey <tom@tromey.com>
3746 * rust-lang.c (rust_subscript): Change parameters.
3747 (rust_evaluate_subexp): Update.
3749 2021-03-08 Tom Tromey <tom@tromey.com>
3751 * rust-lang.c (rust_range): Change parameters.
3752 (rust_evaluate_subexp): Update.
3754 2021-03-08 Tom Tromey <tom@tromey.com>
3756 * f-lang.c (eval_op_f_allocated): New function.
3757 (evaluate_subexp_f): Use it.
3759 2021-03-08 Tom Tromey <tom@tromey.com>
3761 * f-lang.c (fortran_require_array): New function.
3762 (evaluate_subexp_f): Use it.
3764 2021-03-08 Tom Tromey <tom@tromey.com>
3766 * f-lang.c (eval_op_f_kind): New function.
3767 (evaluate_subexp_f): Use it.
3769 2021-03-08 Tom Tromey <tom@tromey.com>
3771 * f-lang.c (eval_op_f_cmplx): New function.
3772 (evaluate_subexp_f): Use it.
3774 2021-03-08 Tom Tromey <tom@tromey.com>
3776 * f-lang.c (eval_op_f_modulo): New function.
3777 (evaluate_subexp_f): Use it.
3779 2021-03-08 Tom Tromey <tom@tromey.com>
3781 * f-lang.c (eval_op_f_floor): New function.
3782 (evaluate_subexp_f): Use it.
3784 2021-03-08 Tom Tromey <tom@tromey.com>
3786 * f-lang.c (eval_op_f_ceil): New function.
3787 (evaluate_subexp_f): Use it.
3789 2021-03-08 Tom Tromey <tom@tromey.com>
3791 * f-lang.c (eval_op_f_mod): New function.
3792 (evaluate_subexp_f): Use it.
3794 2021-03-08 Tom Tromey <tom@tromey.com>
3796 * f-lang.c (eval_op_f_abs): New function.
3797 (evaluate_subexp_f): Use it.
3799 2021-03-08 Tom Tromey <tom@tromey.com>
3801 * eval.c (eval_op_type): New function.
3802 (evaluate_subexp_standard): Use it.
3804 2021-03-08 Tom Tromey <tom@tromey.com>
3806 * eval.c (eval_op_postdec): New function.
3807 (evaluate_subexp_standard): Use it.
3809 2021-03-08 Tom Tromey <tom@tromey.com>
3811 * eval.c (eval_op_postinc): New function.
3812 (evaluate_subexp_standard): Use it.
3814 2021-03-08 Tom Tromey <tom@tromey.com>
3816 * eval.c (eval_op_predec): New file.
3817 (evaluate_subexp_standard): Use it.
3819 2021-03-08 Tom Tromey <tom@tromey.com>
3821 * eval.c (eval_op_preinc): New function.
3822 (evaluate_subexp_standard): Use it.
3824 2021-03-08 Tom Tromey <tom@tromey.com>
3826 * eval.c (eval_op_memval): New function.
3827 (evaluate_subexp_standard): Use it.
3829 2021-03-08 Tom Tromey <tom@tromey.com>
3831 * eval.c (eval_op_alignof): New function.
3832 (evaluate_subexp_standard): Use it.
3834 2021-03-08 Tom Tromey <tom@tromey.com>
3836 * eval.c (eval_op_ind): New function.
3837 (evaluate_subexp_standard): Use it.
3839 2021-03-08 Tom Tromey <tom@tromey.com>
3841 * eval.c (eval_op_lognot): New function.
3842 (evaluate_subexp_standard): Use it.
3844 2021-03-08 Tom Tromey <tom@tromey.com>
3846 * eval.c (eval_op_complement): New function.
3847 (evaluate_subexp_standard): Use it.
3849 2021-03-08 Tom Tromey <tom@tromey.com>
3851 * eval.c (eval_op_neg): New function.
3852 (evaluate_subexp_standard): Use it.
3854 2021-03-08 Tom Tromey <tom@tromey.com>
3856 * eval.c (eval_op_plus): New function.
3857 (evaluate_subexp_standard): Use it.
3859 2021-03-08 Tom Tromey <tom@tromey.com>
3861 * eval.c (eval_op_repeat): New function.
3862 (evaluate_subexp_standard): Use it.
3864 2021-03-08 Tom Tromey <tom@tromey.com>
3866 * eval.c (eval_op_leq): New function.
3867 (evaluate_subexp_standard): Use it.
3869 2021-03-08 Tom Tromey <tom@tromey.com>
3871 * eval.c (eval_op_geq): New function.
3872 (evaluate_subexp_standard): Use it.
3874 2021-03-08 Tom Tromey <tom@tromey.com>
3876 * eval.c (eval_op_gtr): New function.
3877 (evaluate_subexp_standard): Use it.
3879 2021-03-08 Tom Tromey <tom@tromey.com>
3881 * eval.c (eval_op_less): New function.
3882 (evaluate_subexp_standard): Use it.
3884 2021-03-08 Tom Tromey <tom@tromey.com>
3886 * eval.c (eval_op_notequal): New function.
3887 (evaluate_subexp_standard): Use it.
3889 2021-03-08 Tom Tromey <tom@tromey.com>
3891 * eval.c (eval_op_equal): New function.
3892 (evaluate_subexp_standard): Use it.
3894 2021-03-08 Tom Tromey <tom@tromey.com>
3896 * eval.c (eval_op_subscript): New function.
3897 (evaluate_subexp_standard): Use it.
3899 2021-03-08 Tom Tromey <tom@tromey.com>
3901 * eval.c (eval_op_binary): New function.
3902 (evaluate_subexp_standard): Use it.
3904 2021-03-08 Tom Tromey <tom@tromey.com>
3906 * eval.c (eval_op_sub): New function.
3907 (evaluate_subexp_standard): Use it.
3909 2021-03-08 Tom Tromey <tom@tromey.com>
3911 * eval.c (eval_op_add): New function.
3912 (evaluate_subexp_standard): Use it.
3914 2021-03-08 Tom Tromey <tom@tromey.com>
3916 * eval.c (eval_op_member): New function.
3917 (evaluate_subexp_standard): Use it.
3919 2021-03-08 Tom Tromey <tom@tromey.com>
3921 * eval.c (eval_op_structop_ptr): New function.
3922 (evaluate_subexp_standard): Use it.
3924 2021-03-08 Tom Tromey <tom@tromey.com>
3926 * eval.c (eval_op_structop_struct): New function.
3927 (evaluate_subexp_standard): Use it.
3929 2021-03-08 Tom Tromey <tom@tromey.com>
3931 * eval.c (eval_op_ternop): New function.
3932 (evaluate_subexp_standard): Use it.
3934 2021-03-08 Tom Tromey <tom@tromey.com>
3936 * eval.c (eval_op_concat): New function.
3937 (evaluate_subexp_standard): Use it.
3939 2021-03-08 Tom Tromey <tom@tromey.com>
3941 * eval.c (eval_op_objc_selector): New function.
3942 (evaluate_subexp_standard): Use it.
3944 2021-03-08 Tom Tromey <tom@tromey.com>
3946 * eval.c (eval_op_string): New function.
3947 (evaluate_subexp_standard): Use it.
3949 2021-03-08 Tom Tromey <tom@tromey.com>
3951 * eval.c (eval_op_register): New function.
3952 (evaluate_subexp_standard): Use it.
3954 2021-03-08 Tom Tromey <tom@tromey.com>
3956 * eval.c (eval_op_func_static_var): New function.
3957 (evaluate_subexp_standard): Use it.
3959 2021-03-08 Tom Tromey <tom@tromey.com>
3961 * eval.c (eval_op_var_msym_value): New function.
3962 (evaluate_subexp_standard): Use it.
3964 2021-03-08 Tom Tromey <tom@tromey.com>
3966 * eval.c (eval_op_var_entry_value): New function.
3967 (evaluate_subexp_standard): Use it.
3969 2021-03-08 Tom Tromey <tom@tromey.com>
3971 * eval.c (eval_op_scope): New function.
3972 (evaluate_subexp_standard): Use it.
3974 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3977 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3979 2021-03-06 Tom Tromey <tom@tromey.com>
3981 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3982 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3983 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3984 (locate_dwz_sections, dwz_search_other_debugdirs)
3985 (dwarf2_get_dwz_file): Move to dwz.c.
3986 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3988 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3989 (dwarf2_get_dwz_file): Move from read.c.
3991 2021-03-06 Tom Tromey <tom@tromey.com>
3993 * debuginfod-support.h: Include scoped_fd.h.
3995 2021-03-06 Tom Tromey <tom@tromey.com>
3997 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3998 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3999 (get_abbrev_section_for_cu, read_attribute_value)
4000 (get_debug_line_section): Update.
4001 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4003 2021-03-06 Tom Tromey <tom@tromey.com>
4005 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4007 * dwarf2/read.c (section_is_p): Remove.
4008 (dwarf2_per_bfd::locate_sections)
4009 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4010 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4011 (dwarf2_locate_common_dwp_sections)
4012 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4015 2021-03-06 Tom Tromey <tom@tromey.com>
4017 * xcoffread.c: Include sect-names.h.
4018 * symfile.h (struct dwarf2_section_names, struct
4019 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4020 * dwarf2/sect-names.h: New file, from symfile.h.
4021 * dwarf2/read.c: Include sect-names.h.
4023 2021-03-06 Tom Tromey <tom@tromey.com>
4025 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4026 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4027 (abbrev_table::read): Update.
4028 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4029 (struct abbrev_info): Reformat.
4030 <attrs>: Now an array.
4031 (struct abbrev_table) <alloc_abbrev>: Remove.
4033 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4035 * ctfread.c (ctf_psymtab_add_enums): New function.
4036 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4038 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4040 * ctfread.c (read_func_kind_type): Set up function arguments.
4042 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4043 Andrew Burgess <andrew.burgess@embecosm.com>
4045 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4047 (riscv_csrset): New static global.
4048 (riscv_update_csrmap): New function.
4049 (riscv_iterate_over_regset_sections): Process CSRs.
4051 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4053 * riscv-tdep.c (riscv_feature_name_csr): Define.
4054 (riscv_feature_name_cpu): Define.
4055 (riscv_feature_name_fpu): Define.
4056 (riscv_feature_name_virtual): Define.
4057 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4058 (riscv_freg_feature): Use riscv_feature_name_fpu.
4059 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4060 (riscv_csr_feature): Use riscv_feature_name_csr.
4061 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4063 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4064 Craig Blackmore <craig.blackmore@embecosm.com>
4066 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4067 (ALLDEPFILES): Add riscv-none-tdep.c.
4068 * configure: Regenerate.
4069 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4071 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4072 * elf-none-tdep.c: New file.
4073 * elf-none-tdep.h: New file.
4074 * riscv-none-tdep.c: New file.
4076 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4077 Andrew Burgess <andrew.burgess@embecosm.com>
4079 * corelow.c: Add 'xml-tdesc.h' include.
4080 (core_target::read_description): Load the target description from
4081 the core file when possible.
4082 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4084 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4085 (gcore_elf_make_tdesc_note): New function.
4086 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4087 * linux-tdep.c (linux_make_corefile_notes): Add target description
4090 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4092 * Makefile.in (SFILES): Add gcore-elf.c.
4093 (HFILES_NO_SRCDIR): Add gcore-elf.h
4094 * configure: Regenerate.
4095 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4097 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4098 (struct fbsd_collect_regset_section_cb_data): Delete.
4099 (fbsd_collect_regset_section_cb): Delete.
4100 (fbsd_collect_thread_registers): Delete.
4101 (struct fbsd_corefile_thread_data): Delete.
4102 (fbsd_corefile_thread): Delete.
4103 (fbsd_make_corefile_notes): Call
4104 gcore_elf_build_thread_register_notes instead of the now deleted
4106 * gcore-elf.c: New file, the content was moved here from
4107 linux-tdep.c, functions were renamed and given minor cleanup.
4108 * gcore-elf.h: New file.
4109 * gcore.c (gcore_find_signalled_thread): Moved here from
4110 linux-tdep.c and given a new name. Minor cleanups.
4111 * gcore.h (gcore_find_signalled_thread): Declare.
4112 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4113 (struct linux_collect_regset_section_cb_data): Delete.
4114 (linux_collect_regset_section_cb): Delete.
4115 (linux_collect_thread_registers): Delete.
4116 (linux_corefile_thread): Call
4117 gcore_elf_build_thread_register_notes.
4118 (find_signalled_thread): Delete.
4119 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4121 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4124 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4125 process_stratum_target parameter,
4126 sparc_store_inferior_registers): update callers.
4127 * sparc-nat.c (sparc_fetch_inferior_registers,
4128 sparc_store_inferior_registers): Add process_stratum_target
4129 parameter. Switch current thread before calling
4130 sparc_supply_gregset / sparc_collect_rwindow.
4131 (sparc_store_inferior_registers): Likewise.
4132 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4133 (sparc32obsd_collect_uthread): Likewise.
4134 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4136 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4137 sparc64obsd_supply_uthread): Add assertion.
4139 2021-03-04 Tom Tromey <tromey@adacore.com>
4141 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4142 (aux_add_nonlocal_symbols): Update.
4143 (ada_add_block_symbols): Change "found_sym" to bool.
4145 2021-03-03 Tom Tromey <tromey@adacore.com>
4147 * ada-lang.c (ada_resolve_function): Update comment.
4148 (is_nonfunction, add_symbols_from_enclosing_procs)
4149 (remove_extra_symbols): Likewise.
4150 (struct match_data): Add constructor, initializers.
4151 (add_nonlocal_symbols): Remove memset.
4152 (aux_add_nonlocal_symbols): Update comment.
4153 (ada_add_block_renamings, add_nonlocal_symbols)
4154 (ada_add_all_symbols): Likewise.
4155 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4157 2021-03-02 Tom Tromey <tromey@adacore.com>
4159 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4160 (cast_to_gnat_encoded_fixed_point_type): Remove.
4161 (ada_value_cast, ada_evaluate_subexp): Update.
4162 (gnat_encoded_fixed_point_type_info)
4163 (ada_is_gnat_encoded_fixed_point_type)
4164 (gnat_encoded_fixed_point_delta)
4165 (gnat_encoded_fixed_point_scaling_factor): Remove.
4166 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4167 (gnat_encoded_fixed_point_delta)
4168 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4169 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4170 (ada_print_type): Update.
4171 * ada-valprint.c (ada_value_print_num): Update.
4172 * dwarf2/read.c (ada_get_gnat_encoded_number)
4173 (ada_get_gnat_encoded_ratio): New functions.
4174 (finish_fixed_point_type): Use them. Add parameters.
4175 (GNAT_FIXED_POINT_SUFFIX): New define.
4176 (gnat_encoded_fixed_point_type_info): New function.
4177 (read_base_type): Handle gnat encodings.
4179 2021-03-02 Tom Tromey <tromey@adacore.com>
4181 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4182 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4184 (GROW_VECT): Remove.
4185 (grow_vect): Remove.
4187 2021-03-02 Tom Tromey <tromey@adacore.com>
4189 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4190 * ada-lang.c (resolve_subexp): Update.
4191 (ada_resolve_function): Accept a vector.
4192 (is_nonfunction, add_defn_to_vec)
4193 (add_symbols_from_enclosing_procs): Likewise.
4194 (num_defns_collected, defns_collected): Remove.
4195 (remove_extra_symbols): Return a vector.
4196 (remove_irrelevant_renamings): Return void.
4197 (ada_add_local_symbols): Accept a vector.
4198 (struct match_data) <obstackp>: Remove.
4199 <resultp>: New member.
4200 (aux_add_nonlocal_symbols): Update.
4201 (ada_add_block_renamings, add_nonlocal_symbols)
4202 (ada_add_all_symbols): Accept a vector.
4203 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4205 (ada_lookup_symbol): Update.
4206 (ada_add_block_symbols): Accept a vector.
4207 (get_var_value, iterate_over_symbols): Update.
4208 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4211 2021-03-02 Tom Tromey <tromey@adacore.com>
4213 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4215 2021-03-02 Tom Tromey <tromey@adacore.com>
4217 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4220 (ada_pspace_data): Remove destructor.
4221 <sym_cache>: Now a unique_ptr.
4222 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4223 (ada_get_symbol_cache): Use 'new'.
4224 (ada_clear_symbol_cache): Rewrite.
4226 2021-03-02 Tom Tromey <tromey@adacore.com>
4228 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4231 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4234 * source.c (add_path): Skip empty dirnames.
4236 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4238 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4239 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4241 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4244 * target.c (target_mourn_inferior): Only compare pids in
4245 target_mourn_inferior.
4247 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4250 * remote.c (remote_target::start_remote): Ensure the single
4251 thread, automatically added for remote targets without the
4252 concept of threading, is initially in set to the "resumed"
4254 * remote.c (remote_target::add_current_inferior_and_thread):
4255 Add return value - return the main thread.
4257 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4259 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4260 (mi_tsv_created): Likewise.
4261 (mi_tsv_deleted): Likewise.
4263 2021-02-25 Tom de Vries <tdevries@suse.de>
4266 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4267 section_kind for &dwo_file->sections.info.
4269 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4272 * f-lang.c (fortran_argument_convert): Delete declaration.
4273 (fortran_prepare_argument): New function.
4274 (evaluate_subexp_f): Move logic to new function
4275 fortran_prepare_argument.
4277 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4279 * f-exp.y (f77_keywords): Add 'associated'.
4280 * f-lang.c (fortran_associated): New function.
4281 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4282 (operator_length_f): Likewise.
4283 (print_unop_or_binop_subexp_f): New function.
4284 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4285 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4286 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4287 (operator_check_f): Likewise.
4288 * std-operator.def: Add FORTRAN_ASSOCIATED.
4290 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4292 * f-exp.y (fortran_operators): Add ".xor.".
4294 2021-02-24 Tom de Vries <tdevries@suse.de>
4297 * dwarf2/attribute.c (attribute::form_is_signed): New function
4299 * dwarf2/attribute.h (attribute::as_signed): ... here.
4300 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4301 (attribute::form_is_signed): Declare.
4302 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4303 for DW_AT_decl_file.
4305 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4307 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4308 order for <sys/ptrace.h> and <asm/ptrace.h>.
4310 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4312 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4315 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4317 * exec.c (set_section_command): Move variable declarations into
4318 the function body, and use std::string instead of a fixed size
4321 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4323 * exec.c (exec_target::get_section_table): Delete member function.
4324 (section_table_read_available_memory): Use current_top_target, not
4325 just the exec_ops target.
4326 * target-delegates.c: Regenerate.
4327 * target.c (default_get_section_table): New function.
4328 * target.h (target_ops::get_section_table): Change default
4329 behaviour to call default_get_section_table.
4330 (default_get_section_table): Declare.
4332 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4334 * exec.c (exec_target::close): Call new clear_target_sections
4336 (program_space::add_target_sections): Update name of member
4338 (program_space::add_target_sections): Update name of member
4340 (program_space::remove_target_sections): Likewise.
4341 (exec_one_fork): Use new target_sections member function.
4342 (exec_target::get_section_table): Likewise.
4343 (exec_target::files_info): Likewise.
4344 (set_section_command): Likewise.
4345 (exec_set_section_address): Likewise.
4346 (exec_target::has_memory): Use new target_sections member
4348 * progspace.h (program_space::clear_target_sections): New member
4350 (program_space::target_sections): Rename member variable to
4351 m_target_sections, replace with a new member function.
4352 (program_space::m_target_sections): New member variable.
4353 * solib-dsbt.c (scan_dyntag): Use new member function.
4354 * solib-svr4.c (scan_dyntag): Likewise.
4356 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4358 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4360 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4361 (section_table_read_available_memory): Make local const.
4362 (exec_target::xfer_partial): Make local const.
4363 (print_section_info): Make parameter const.
4364 * gdb/exec.h (print_section_info): Likewise.
4365 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4367 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4369 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4371 * gdb/s390-tdep.c (s390_load): Likewise.
4372 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4373 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4374 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4376 (target_debug_print_const_target_section_table_p): ...this.
4377 * gdb/target-delegates.c: Regenerate.
4378 * gdb/target.c (target_get_section_table): Make return type const.
4379 (target_section_by_addr): Likewise. Also make some locals const.
4380 (memory_xfer_partial_1): Make some locals const.
4381 * gdb/target.h (struct target_ops) <get_section_table>: Make
4383 (target_section_by_addr): Likewise.
4384 (target_get_section_table): Likewise.
4386 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4388 * NEWS: Mention new 'maint info target-sections' command.
4389 * maint.c (maintenance_info_target_sections): New function.
4390 (_initialize_maint_cmds): Register new command.
4392 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4394 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4395 (riscv_features_from_bfd): ...this. Change parameter type to
4396 'bfd*', and update as required.
4397 (riscv_find_default_target_description): Update call to
4398 riscv_features_from_bfd. Select a default xlen based on
4400 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4402 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4404 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4405 dynamic types in UNOP_IND.
4407 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4410 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4412 (~dwarf2_queue_guard): Clear queue.
4413 (queue_comp_unit): Assert that queue is
4415 (process_queue): Adjust.
4416 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4418 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4421 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4422 to decide whether or not to enqueue it for expansion.
4423 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4424 after calling maybe_queue_comp_unit.
4426 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4428 * linux-nat.c (linux_nat_filter_event): Return void.
4430 2021-02-22 Tom Tromey <tromey@adacore.com>
4432 * solib-svr4.c (enable_break): Update.
4433 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4435 (target_bfd_reopen): Change parameter type.
4436 * bfd-target.h (target_bfd_reopen): Change parameter type.
4438 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4440 * thread.c (add_thread_silent): Add assert.
4441 (find_thread_ptid): Add assert.
4443 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4446 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4447 (target_unpush_up): Likewise.
4448 * procfs.c (procfs_target::attach): Push target early. Use
4449 target_unpush_up to unpush target in case of error.
4450 * target.h (struct target_unpusher): Move here.
4451 (target_unpush_up): Likewise.
4453 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4455 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4456 (which in turn includes <gnulib/config.h>) before include
4459 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4462 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4463 (decode_j_type_insn): Likewise.
4464 (decode_cj_type_insn): Likewise.
4465 (decode_b_type_insn): Likewise.
4468 2021-02-18 Tom Tromey <tom@tromey.com>
4470 * expression.h (struct expression) <evaluate>: Declare method.
4471 * eval.c (evaluate_subexp): Simplify.
4472 (expression::evaluate): New method.
4473 (evaluate_expression, evaluate_type): Use expression::evaluate.
4475 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4477 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4479 (ada_lookup_name_info): Likewise.
4481 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4483 * aclocal.m4: Regenerate.
4485 2021-02-12 Tom de Vries <tdevries@suse.de>
4488 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4489 (lin_thread_signals): New static var.
4490 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4492 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4493 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4495 * linux-thread-db.c (check_thread_signals): Use
4496 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4498 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4500 * f-exp.y (f77_keywords): Add allocated.
4501 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4502 (operator_length_f): Likewise.
4503 (print_subexp_f): Likewise.
4504 (dump_subexp_body_f): Likewise.
4505 (operator_check_f): Likewise.
4506 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4508 2021-02-11 Tom de Vries <tdevries@suse.de>
4511 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4512 Return true for DW_FORM_strx.
4514 2021-02-11 Tom Tromey <tromey@adacore.com>
4517 * parse.c (write_exp_symbol_reference): Write sym.block.
4519 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4521 * NEWS: Mention changes to 'maint info sections'.
4522 * maint.c (match_substring): Return a bool, fix whitespace issue.
4523 (struct single_bfd_flag_info): New struct.
4524 (bfd_flag_info): New static global.
4525 (match_bfd_flags): Return a bool, use bfd_flag_info.
4526 (print_bfd_flags): Use bfd_flag_info.
4527 (maint_print_section_info): Delete trailing whitespace.
4528 (struct maint_info_sections_opts): New struct.
4529 (maint_info_sections_option_defs): New static global.
4530 (maint_info_sections_completer): New function.
4531 (maintenance_info_sections): Use option parsing mechanism.
4532 (_initialize_maint_cmds): Update command help text for 'maint info
4533 sections' and register a command completer.
4535 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4537 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4538 functionality merged into...
4539 (maint_print_all_sections): ...this new function.
4540 (maintenance_info_sections): Make use of maint_print_all_sections,
4541 allow all objects to be printed even where there's no executable.
4543 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4545 * breakpoint.c (resolve_sal_pc): Make use of
4546 bound_minimal_symbol::obj_section.
4547 * maint.c (maintenance_translate_address): Likewise.
4548 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4549 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4551 * printcmd.c (info_address_command): Make use of
4552 bound_minimal_symbol::obj_section.
4554 2021-02-11 Alan Modra <amodra@gmail.com>
4556 * arm-symbian-tdep.c: Delete.
4557 * NEWS: Mention arm-symbian removal.
4558 * Makefile.in: Remove arm-symbian-tdep entries.
4559 * configure.tgt: Remove arm*-*-symbianelf*.
4560 * doc/gdb.texinfo: Remove mention of SymbianOS.
4561 * osabi.c (gdb_osabi_names): Remove "Symbian".
4562 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4563 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4564 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4566 * testsuite/gdb.base/dup-sect.exp: Likewise.
4567 * testsuite/gdb.base/long_long.exp: Likewise.
4568 * testsuite/gdb.base/solib-weak.exp: Likewise.
4569 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4570 * testsuite/gdb.python/py-section-script.exp: Likewise.
4571 * testsuite/lib/dwarf.exp: Likewise.
4572 * testsuite/lib/gdb.exp: Likewise.
4574 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4576 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4577 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4578 (one_or_two_args): New pattern.
4579 (f77_keywords): Add lbound and ubound.
4580 * f-lang.c (fortran_bounds_all_dims): New function.
4581 (fortran_bounds_for_dimension): New function.
4582 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4583 (operator_length_f): Likewise.
4584 (print_subexp_f): Likewise.
4585 (dump_subexp_body_f): Likewise.
4586 (operator_check_f): Likewise.
4587 * std-operator.def (FORTRAN_LBOUND): Define.
4588 (FORTRAN_UBOUND): Define.
4590 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4592 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4593 and set_section_index member functions where appropriate.
4594 * coffread.c (coff_symtab_read): Likewise.
4595 (process_coff_symbol): Likewise.
4596 * ctfread.c (set_symbol_address): Likewise.
4597 * dwarf2/read.c (add_partial_symbol): Likewise.
4598 (var_decode_location): Likewise.
4599 * language.c: Likewise.
4600 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4601 (compact_minimal_symbols): Likewise.
4602 (minimal_symbol_upper_bound): Likewise.
4603 * objfiles.c (relocate_one_symbol): Likewise.
4604 * psympriv.h (partial_symbol::obj_section): Likewise.
4605 (partial_symbol::address): Likewise.
4606 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4607 * stabsread.c (scan_file_globals): Likewise.
4608 * symmisc.c (dump_msymbols): Likewise.
4609 * symtab.c (general_symbol_info::obj_section): Likewise.
4610 (fixup_section): Likewise.
4611 (get_msymbol_address): Likewise.
4612 * symtab.h (general_symbol_info::section): Rename to...
4613 (general_symbol_info::m_section): ...this.
4614 (general_symbol_info::set_section_index): New member function.
4615 (general_symbol_info::section_index): Likewise.
4616 (SYMBOL_SECTION): Delete.
4617 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4618 set_section_index member functions where appropriate.
4619 (MSYMBOL_SECTION): Delete.
4620 (symbol::symbol): Update to initialize 'm_section'.
4621 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4622 (process_xcoff_symbol): Likewise.
4624 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4626 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4627 MSYMBOL_OBJ_SECTION.
4628 * findvar.c (language_defn::read_var_value): Likewise.
4629 * infcmd.c (jump_command): Likewise.
4630 * linespec.c (minsym_found): Likewise.
4631 * maint.c (maintenance_translate_address): Likewise.
4632 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4633 (minimal_symbol_upper_bound): Likewise.
4634 * parse.c (find_minsym_type_and_address): Likewise.
4635 (operator_check_standard): Likewise.
4636 * printcmd.c (info_address_command): Likewise.
4637 * symmisc.c (dump_msymbols): Likewise.
4638 (print_symbol): Likewise.
4639 * symtab.c (general_symbol_info::obj_section): Define new
4641 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4642 (find_pc_sect_compunit_symtab): Likewise.
4643 (find_function_start_sal): Likewise.
4644 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4645 MSYMBOL_OBJ_SECTION.
4646 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4648 (SYMBOL_OBJ_SECTION): Delete.
4649 (MSYMBOL_OBJ_SECTION): Delete.
4651 2021-02-09 Tom Tromey <tom@tromey.com>
4653 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4655 2021-02-09 Tom de Vries <tdevries@suse.de>
4658 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4659 construct an array type. Add assert to ensure that element_type is
4662 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4664 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4665 (gcore_collect_regset_section_cb): Delete.
4666 (gcore_collect_thread_registers): Delete.
4667 (gcore_build_thread_register_notes): Delete.
4668 (gcore_find_signalled_thread): Delete.
4669 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4670 'gdbarch' and 'thread_info' declarations.
4671 (gcore_build_thread_register_notes): Delete declaration.
4672 (gcore_find_signalled_thread): Likewise.
4673 * fbsd-tdep.c: Remove 'gcore.h' include.
4674 (struct fbsd_collect_regset_section_cb_data): New struct.
4675 (fbsd_collect_regset_section_cb): New function.
4676 (fbsd_collect_thread_registers): New function.
4677 (struct fbsd_corefile_thread_data): New struct.
4678 (fbsd_corefile_thread): New function.
4679 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4680 * linux-tdep.c: Remove 'gcore.h' include.
4681 (struct linux_collect_regset_section_cb_data): New struct.
4682 (linux_collect_regset_section_cb): New function.
4683 (linux_collect_thread_registers): New function.
4684 (linux_corefile_thread): Call Linux specific code.
4685 (find_signalled_thread): New function.
4686 (linux_make_corefile_notes): Call find_signalled_thread.
4688 2021-02-09 Tom Tromey <tromey@adacore.com>
4690 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4692 * value.c (value_contents_copy_raw): Now static.
4693 * value.h (value_contents_copy_raw): Don't declare.
4695 2021-02-09 Tom Tromey <tromey@adacore.com>
4697 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4700 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4703 * arc-linux-tdep.c (handle_atomic_sequence): New.
4704 (arc_linux_software_single_step): Call handle_atomic_sequence().
4706 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4708 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4710 (REQUIRE_WINDOW): Call is_valid member function.
4711 (REQUIRE_WINDOW_FOR_SETTER): New define.
4712 (gdbpy_tui_is_valid): Call is_valid member function.
4713 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4714 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4716 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4717 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4720 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4722 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4723 for the title is not nullptr.
4725 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4727 * tui-layout.c (saved_tui_windows): Delete.
4728 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4729 call new get_windows member function instead.
4730 (tui_get_window_by_name): Check in tui_windows.
4731 (tui_layout_window::apply): Don't add to tui_windows.
4732 * tui-layout.h (tui_layout_base::get_windows): New member function.
4733 (tui_layout_window::get_windows): Likewise.
4734 (tui_layout_split::get_windows): Likewise.
4736 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4738 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4739 of the window objects.
4741 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4743 * python/python.c (gdbpy_print_stack): Reformat an error message.
4745 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4747 * tui/tui-interp.c (tui_command_line_handler): New function.
4748 (tui_interp::resume): Register tui_command_line_handler as the
4750 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4752 (tui_getc_1): Delete handling of '\n' and '\r'.
4753 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4755 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4757 * tui/tui-regs.c (tui_data_window::display_registers_from):
4758 Mark invisible register sub windows.
4759 (tui_data_window::check_register_values): Ignore invisible
4760 register sub windows.
4762 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4764 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4765 n_spaces with a negative value.
4767 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4769 * tui/tui-regs.c (tui_data_window::display_registers_from):
4770 Add refresh_window call.
4772 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4774 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4776 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4778 * symmisc.c (std_in, std_out, std_err): Remove.
4779 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4781 2021-02-05 Tom de Vries <tdevries@suse.de>
4783 PR breakpoints/27330
4784 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4785 glibc object file has debug info.
4787 2021-02-05 Tom de Vries <tdevries@suse.de>
4790 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4792 2021-02-05 Tom de Vries <tdevries@suse.de>
4794 PR breakpoints/27313
4795 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4798 2021-02-05 Tom Tromey <tom@tromey.com>
4800 * compile/compile-c-support.c (get_compile_context)
4801 (c_get_compile_context, cplus_get_compile_context): Change return
4803 * language.c (language_defn::get_compile_instance): New method.
4804 * language.h (language_defn::get_compile_instance): Change return
4805 type. No longer inline.
4806 * c-lang.c (c_language::get_compile_instance): Change return type.
4807 (cplus_language::get_compile_instance): Change return type.
4808 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4810 * compile/compile.c (compile_to_object): Update.
4812 2021-02-05 Tom Tromey <tom@tromey.com>
4814 * parser-defs.h (write_exp_symbol_reference): Declare.
4815 * parse.c (write_exp_symbol_reference): New function.
4816 * p-exp.y (variable): Use write_exp_symbol_reference.
4817 * m2-exp.y (variable): Use write_exp_symbol_reference.
4818 * f-exp.y (variable): Use write_exp_symbol_reference.
4819 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4820 * c-exp.y (variable): Use write_exp_symbol_reference.
4822 2021-02-05 Tom de Vries <tdevries@suse.de>
4825 * valarith.c (complex_binop): Throw an error if complex type can't
4828 2021-02-05 Tom de Vries <tdevries@suse.de>
4831 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4834 2021-02-05 Tom de Vries <tdevries@suse.de>
4836 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4838 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4840 * configure.tgt (riscv*-*-*): Set gdb_sim.
4842 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4844 * target.c (target_is_non_stop_p): Return bool.
4845 * target.h (target_is_non_stop_p): Return bool.
4847 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4849 * record-full.c (record_full_async_inferior_event_handler):
4850 Don't clear async event handler.
4851 (record_full_base_target::wait): Clear async event handler at
4854 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4856 * record-btrace.c (record_btrace_handle_async_inferior_event):
4857 Don't clear async event handler.
4858 (record_btrace_target::wait): Clear async event handler at
4861 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4863 * remote.c (remote_target::wait): Clear async event handler at
4864 beginning, mark if needed at the end.
4865 (remote_async_inferior_event_handler): Don't set or clear async
4868 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4870 * async-event.h (async_event_handler_func): Add documentation.
4871 * async-event.c (check_async_event_handlers): Don't clear
4872 async_event_handler ready flag.
4873 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4875 * record-btrace.c (record_btrace_handle_async_inferior_event):
4877 * record-full.c (record_full_async_inferior_event_handler):
4879 * remote-notif.c (remote_async_get_pending_events_handler):
4881 * remote.c (remote_async_inferior_event_handler): Likewise.
4883 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4885 * infrun.c (handle_inferior_event): Move stop_soon variable to
4888 2021-02-03 Pedro Alves <pedro@palves.net>
4890 * infcmd.c (detach_command): Hold strong reference to target, and
4891 if all-stop on entry, restart threads on exit.
4892 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4893 (restart_stepped_thread): ... this new function. Also handle
4895 (restart_after_all_stop_detach): New function.
4896 * infrun.h (restart_after_all_stop_detach): Declare.
4898 2021-02-03 Pedro Alves <pedro@palves.net>
4900 * infrun.c (struct step_over_info): Initialize fields.
4901 (prepare_for_detach): Handle ongoing in-line step over.
4903 2021-02-03 Pedro Alves <pedro@palves.net>
4905 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4907 * remote.c (remote_target::remote_detach_1): ... and here ...
4908 * target.c (target_detach): ... instead of here.
4909 * target.h (target_ops::detach): Add comment.
4911 2021-02-03 Pedro Alves <pedro@palves.net>
4913 * infrun.c (struct wait_one_event): Move higher up.
4914 (prepare_for_detach): Abort in-progress displaced steps instead of
4915 letting them complete.
4916 (handle_one): If the inferior is detaching, don't add the thread
4917 back to the global step-over chain.
4918 (restart_threads): Don't restart threads if detaching.
4919 (handle_signal_stop): Remove inferior::detaching reference.
4921 2021-02-03 Pedro Alves <pedro@palves.net>
4923 * infrun.c (prepare_for_detach): Don't release scoped_restore
4926 2021-02-03 Pedro Alves <pedro@palves.net>
4928 * infrun.c (handle_one): New function, factored out from ...
4929 (stop_all_threads): ... here.
4931 2021-02-03 Pedro Alves <pedro@palves.net>
4933 * remote.c (remote_notif_stop_ack): Don't error out on
4934 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4935 (remote_target::discard_pending_stop_replies): Don't delete
4936 in-flight notification; instead, clear its contents.
4938 2021-02-03 Pedro Alves <pedro@palves.net>
4940 * remote.c (extended_remote_target::attach): Set target async in
4941 the target-non-stop path too.
4943 2021-02-03 Pedro Alves <pedro@palves.net>
4946 * infrun.c (handle_signal_stop): Move main context_switch call
4947 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4949 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4951 * NEWS (Changed commands): Add entry for the behavior change of
4952 the inferior command.
4953 * inferior.c (inferior_command): When no argument is given to the
4954 inferior command, display info about the currently selected
4957 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4959 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4961 (read_attribute_reprocess): Adjust.
4963 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4965 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4966 <gnu_ranges_base>: ... this...
4967 <rnglists_base>: ... and this.
4968 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4969 <gnu_ranges_base>: ... this...
4970 <rnglists_base>: ... and this.
4971 (read_cutu_die_from_dwo): Adjust
4972 (dwarf2_get_pc_bounds): Adjust
4973 (dwarf2_record_block_ranges): Adjust.
4974 (read_full_die_1): Adjust
4975 (partial_die_info::read): Adjust.
4976 (read_rnglist_index): Adjust.
4978 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4981 * dwarf2/read.c (read_loclists_rnglists_header): Add
4982 header_offset parameter and use it.
4983 (read_loclist_index): Read header of the current contribution,
4984 not the one at the beginning of the section.
4985 (read_rnglist_index): Likewise.
4987 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4990 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4991 requires_reprocessing flag.
4992 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4994 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4995 and DW_FORM_loclistx.
4996 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4997 instead of set_address for DW_FORM_loclistx and
5000 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5002 * dwarf2/read.c (read_loclist_index): Remove bound check for
5004 (read_rnglist_index): Likewise.
5006 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5008 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5011 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5013 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5015 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5017 * dwarf2/read.c (read_loclist_index): Change complaints into
5020 2021-02-02 Tom de Vries <tdevries@suse.de>
5023 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5026 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5028 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5029 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5030 here from linux-tdep.c and given a new name. Minor cleanups.
5031 (gcore_collect_regset_section_cb): Likewise.
5032 (gcore_collect_thread_registers): Likewise.
5033 (gcore_build_thread_register_notes): Likewise.
5034 (gcore_find_signalled_thread): Likewise.
5035 * gcore.h (gcore_build_thread_register_notes): Declare.
5036 (gcore_find_signalled_thread): Declare.
5037 * fbsd-tdep.c: Add 'gcore.h' include.
5038 (struct fbsd_collect_regset_section_cb_data): Delete.
5039 (fbsd_collect_regset_section_cb): Delete.
5040 (fbsd_collect_thread_registers): Delete.
5041 (struct fbsd_corefile_thread_data): Delete.
5042 (fbsd_corefile_thread): Delete.
5043 (fbsd_make_corefile_notes): Call
5044 gcore_build_thread_register_notes instead of the now deleted
5046 * linux-tdep.c: Add 'gcore.h' include.
5047 (struct linux_collect_regset_section_cb_data): Delete.
5048 (linux_collect_regset_section_cb): Delete.
5049 (linux_collect_thread_registers): Delete.
5050 (linux_corefile_thread): Call
5051 gcore_build_thread_register_notes.
5052 (find_signalled_thread): Delete.
5053 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5055 2021-01-29 Tom de Vries <tdevries@suse.de>
5057 PR breakpoints/26063
5058 * infrun.c (process_event_stop_test): Reset
5059 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5062 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5064 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5065 assert. Extend the header comment.
5067 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5069 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5070 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5071 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5072 (tui_locator_win_info_ptr): Delete declaration.
5073 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5074 (tui_disasm_window::set_contents): Fetch state from tui_location
5076 (tui_get_begin_asm_address): Likewise.
5077 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5079 (get_locator_window): Delete.
5080 (initialize_known_windows): Treat locator window just like all the
5082 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5083 (tui_source_window::set_contents): Fetch state from tui_location
5085 (tui_source_window::showing_source_p): Likewise.
5086 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5088 (tui_locator_win_info_ptr): Delete.
5089 (tui_locator_window::make_status_line): Fetch state from
5090 tui_location global.
5091 (tui_locator_window::rerender): Remove check of 'handle',
5092 reindent function body.
5093 (tui_locator_window::set_locator_fullname): Delete.
5094 (tui_locator_window::set_locator_info): Delete.
5095 (tui_update_locator_fullname): Delete.
5096 (tui_show_frame_info): Likewise.
5097 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5098 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5099 tui/tui-location.h and renamed to
5100 tui_location_tracker::set_location.
5101 (tui_locator_window::set_locator_fullname): Moved to
5102 tui/tui-location.h and renamed to
5103 tui_location_tracker::set_fullname.
5104 (tui_locator_window::full_name): Delete.
5105 (tui_locator_window::proc_name): Delete.
5106 (tui_locator_window::line_no): Delete.
5107 (tui_locator_window::addr): Delete.
5108 (tui_locator_window::gdbarch): Delete.
5109 (tui_update_locator_fullname): Delete declaration.
5110 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5112 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5113 (tui_display_main): Call function on tui_location directly.
5114 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5115 * tui/tui-location.c: New file.
5116 * tui/tui-location.h: New file.
5118 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5120 * gdbtypes.h (get_type_arch): Rename to...
5121 (struct type) <arch>: ... this, update all users.
5123 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5125 * gdbtypes.h (struct type) <arch>: Rename to...
5126 <arch_owner>: ... this, update all users.
5127 <objfile>: Rename to...
5128 <objfile_owner>: ... this, update all users.
5130 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5132 * gdbcmd.h (execute_command_to_string): Update comment.
5133 * top.c (execute_command_to_string): Update header comment.
5135 2021-01-28 Tom de Vries <tdevries@suse.de>
5137 PR breakpoints/27205
5138 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5139 (create_longjmp_master_breakpoint_names): New function, factored out
5141 (create_longjmp_master_breakpoint): ... here. Only try to install
5142 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5143 breakpoint in libc.so failed.
5145 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5148 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5149 unique_ptr is released when the wrapped pointer is kept for later
5152 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5154 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5155 BLR and BR instructions.
5156 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5157 (enum aarch64_masks): New.
5159 2021-01-26 Tom Tromey <tromey@adacore.com>
5161 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5162 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5163 (windows_init_thread_list, windows_nat::handle_load_dll)
5164 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5165 (windows_nat_target::resume)
5166 (windows_nat_target::get_windows_debug_event)
5167 (windows_nat_target::interrupt, windows_xfer_memory)
5168 (windows_nat_target::close): Update.
5169 * nat/windows-nat.c (DEBUG_EVENTS): Use
5170 debug_prefixed_printf_cond.
5171 (matching_pending_stop, fetch_pending_stop)
5172 (continue_last_debug_event): Update.
5174 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5176 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5177 elfcore_write_file_note.
5179 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5181 * arc-tdep.c (arc_add_reggroups): New function.
5182 (arc_gdbarch_init): Call arc_add_reggroups.
5184 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5186 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5188 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5189 Simon Marchi <simon.marchi@polymtl.ca>
5190 Tom de Vries <tdevries@suse.de>
5192 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5195 2021-01-25 Tom Tromey <tromey@adacore.com>
5197 * dwarf2/read.c (get_mpz): New function.
5198 (get_dwarf2_rational_constant): Use it.
5200 2021-01-25 Tom Tromey <tromey@adacore.com>
5202 * ada-lang.c (resolve_subexp): Handle array context.
5204 2021-01-23 Tom Tromey <tom@tromey.com>
5207 * compile/compile-loc2c.c (note_register): New function.
5208 (pushf_register_address, pushf_register): Use it.
5210 2021-01-23 Tom Tromey <tom@tromey.com>
5212 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5213 Change type of "registers_used".
5214 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5215 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5216 (locexpr_generate_c_location, loclist_generate_c_location): Change
5217 type of "registers_used".
5218 * compile/compile.h (compile_dwarf_expr_to_c)
5219 (compile_dwarf_bounds_to_c): Update.
5220 * compile/compile-loc2c.c (pushf_register_address)
5221 (pushf_register, do_compile_dwarf_expr_to_c)
5222 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5223 of "registers_used".
5224 * compile/compile-c.h (generate_c_for_variable_locations):
5226 * compile/compile-c-symbols.c (generate_vla_size)
5227 (generate_c_for_for_one_variable): Change type of
5229 (generate_c_for_variable_locations): Return std::vector.
5230 * compile/compile-c-support.c (generate_register_struct): Change
5231 type of "registers_used".
5234 2021-01-23 Tom Tromey <tom@tromey.com>
5236 * compile/compile-internal.h (class compile_instance)
5237 <set_arguments>: Change return type.
5238 * compile/compile.c (compile_to_object): Remove call to reset.
5239 (compile_instance::set_arguments): Change return type.
5241 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5243 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5244 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5246 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5248 * Makefile.in (SELFTESTS_SRCS): Add
5249 unittests/gdb_tilde_expand-selftests.c.
5250 * unittests/gdb_tilde_expand-selftests.c: New file.
5252 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5255 * NEWS: Mention new command.
5256 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5257 (version_style): Define.
5258 (cli_style_option::cli_style_option): Add intensity parameter, and
5260 (_initialize_cli_style): Register version style set/show commands.
5261 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5262 (version_style): Declare.
5263 * top.c (print_gdb_version): Use version_stype, and styled_string
5264 to print the GDB version string.
5266 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5268 * utils.c (emit_style_escape): Only emit an escape sequence if the
5269 requested style is different than the current applied style.
5270 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5271 current applied_style.
5272 (fputs_styled): Remove is_default check.
5273 (fputs_styled_unfiltered): Likewise.
5274 (vfprintf_styled_no_gdbfmt): Likewise.
5276 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5278 * remote.h (remote_debug_printf): New.
5279 (remote_debug_printf_nofunc): New.
5280 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5281 * remote.c: Use above macros throughout file.
5283 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5285 * remote.h (remote_debug): Change to bool.
5286 * remote.c (remote_debug): Change to bool.
5287 (_initialize_remote): Adjust.
5289 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5291 * target.h (remote_debug): Move to...
5292 * remote.h (remote_debug): ... here.
5293 * top.c (remote_debug): Move to...
5294 * remote.c (remote_debug): ... here.
5295 * remote-sim.c: Include remote.h.
5297 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5299 * cli/cli-cmds.c (show_remote_debug): Remove.
5300 (show_remote_timeout): Remove.
5301 (_initialize_cli_cmds): Don't register commands.
5302 * remote.c (show_remote_debug): Move here.
5303 (show_remote_timeout): Move here.
5304 (_initialize_remote): Register commands.
5306 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5308 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5309 type::objfile method instead.
5311 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5313 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5314 use the type::is_objfile_owned method.
5316 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5318 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5319 (TYPE_OWNER): Remove.
5320 (TYPE_OBJFILE): Adjust.
5321 (struct main_type) <flag_objfile_owned>: Rename to...
5322 <m_flag_objfile_owned>: ... this.
5323 <owner>: Rename to...
5324 <m_owner>: ... this.
5325 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5327 (TYPE_ALLOC): Adjust.
5328 * gdbtypes.c (alloc_type): Adjust.
5329 (alloc_type_arch): Adjust.
5330 (alloc_type_copy): Adjust.
5331 (get_type_arch): Adjust.
5332 (smash_type): Adjust.
5333 (lookup_array_range_type): Adjust.
5334 (recursive_dump_type): Adjust.
5335 (copy_type_recursive): Adjust.
5336 * compile/compile-c-types.c (convert_func): Adjust.
5337 (convert_type_basic): Adjust.
5338 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5341 (language_arch_info::type_and_symbol::alloc_type_symbol):
5344 2021-01-21 Luis Machado <luis.machado@linaro.org>
5346 * coffread.c (enter_linenos): Passing string to complaint.
5347 * valops.c (value_assign): Make array view.
5349 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5351 * auto-load.h (debug_auto_load): Move here.
5352 (auto_load_debug_printf): New.
5353 * auto-load.c: Use auto_load_debug_printf.
5354 (debug_auto_load): Move to header.
5355 * linux-thread-db.c (try_thread_db_load): Use
5356 auto_load_debug_printf.
5357 * main.c (captured_main_1): Likewise.
5359 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5361 * f-valprint.c (f77_array_offset_tbl): Remove.
5363 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5365 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5367 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5369 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5372 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5375 * python/py-breakpoint.c (bppy_get_location): Handle
5376 bp_hardware_breakpoint.
5377 (bppy_init): Likewise.
5378 (gdbpy_breakpoint_created): Likewise.
5380 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5382 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5384 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5386 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5387 (_initialize_gdb_bfd): Adjust.
5389 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5392 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5394 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5396 * dwarf2/read.c (follow_die_offset): Add logging.
5397 (dwarf2_per_objfile::age_comp_units): Add logging.
5399 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5401 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5402 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5403 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5404 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5405 * arm-tdep.c (struct frame_unwind): Make static.
5406 * auto-load.c (auto_load_safe_path_vec): Make static.
5407 * csky-tdep.c (csky_stub_unwind): Make static.
5408 * gdbarch.c (gdbarch_data_registry): Make static.
5409 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5410 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5411 * i386-tdep.c (i386_frame_setup_skip_insns,
5412 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5414 * infrun.c (observer_mode): Make static.
5415 * linux-nat.c (sigchld_action): Make static.
5416 * linux-thread-db.c (thread_db_list): Make static.
5417 * maint-test-options.c (maintenance_test_options_list):
5418 * mep-tdep.c (mep_csr_registers): Make static.
5419 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5420 (stats): Make static.
5421 * nat/linux-osdata.c (struct osdata_type): Make static.
5422 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5423 * progspace.c (last_program_space_num): Make static.
5424 * python/py-param.c (struct parm_constant): Remove struct type
5426 (parm_constants): Make static.
5427 * python/py-record-btrace.c (btpy_list_methods): Make static.
5428 * python/py-record.c (recpy_gap_type): Make static.
5429 * record.c (record_goto_cmdlist): Make static.
5430 * regcache.c (regcache_descr_handle): Make static.
5431 * registry.h (DEFINE_REGISTRY): Make definition static.
5432 * symmisc.c (std_in, std_out, std_err): Make static.
5433 * top.c (previous_saved_command_line): Make static.
5434 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5436 * unittests/command-def-selftests.c (nr_duplicates,
5437 nr_invalid_prefixcmd, lists): Make static.
5438 * unittests/observable-selftests.c (test_notification): Make
5440 * unittests/optional/assignment/1.cc (counter): Make static.
5441 * unittests/optional/assignment/2.cc (counter): Make static.
5442 * unittests/optional/assignment/3.cc (counter): Make static.
5443 * unittests/optional/assignment/4.cc (counter): Make static.
5444 * unittests/optional/assignment/5.cc (counter): Make static.
5445 * unittests/optional/assignment/6.cc (counter): Make static.
5447 2021-01-20 Joel Sherrill <joel@rtems.org>
5450 * remote.c (struct remote_thread_info) <resume_state>: Rename
5452 <get_resume_state>: ... this.
5453 (remote_target::resume): Adjust.
5454 (remote_target::commit_resume): Adjust.
5455 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5457 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5458 Tom Tromey <tom@tromey.com>
5460 * stap-probe.c (stap_parse_single_operand): Handle '!'
5462 (stap_parse_argument_conditionally): Likewise.
5463 Skip spaces after processing open-parenthesis sub-expression.
5464 (stap_parse_argument_1): Skip spaces after call to
5465 stap_parse_argument_conditionally.
5466 Handle case when right-side expression is a parenthesized
5468 Skip spaces after call to stap_parse_argument_1.
5470 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5472 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5474 2021-01-19 Luis Machado <luis.machado@linaro.org>
5476 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5477 memory and save data.
5478 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5479 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5480 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5481 (trad_frame_value_bytes_p): Remove.
5482 (trad_frame_reset_saved_regs): Adjust documentation.
5483 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5484 constructor and reset the state of the registers.
5485 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5486 (trad_frame_value_bytes_p, trad_frame_set_value)
5487 (trad_frame_set_realreg, trad_frame_set_addr)
5488 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5489 (trad_frame_set_reg_realreg): Update to call member function.
5490 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5491 (trad_frame_get_prev_register): Likewise.
5493 * aarch64-tdep.c (aarch64_analyze_prologue)
5494 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5495 (aarch64_prologue_prev_register): Update to use member functions.
5496 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5497 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5498 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5499 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5500 (arm_make_epilogue_frame_cache): Likewise.
5501 * avr-tdep.c (avr_frame_unwind_cache)
5502 (avr_frame_prev_register): Likewise.
5503 * cris-tdep.c (cris_scan_prologue): Likewise.
5504 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5505 * frv-tdep.c (frv_analyze_prologue): Likewise.
5506 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5507 * lm32-tdep.c (lm32_frame_cache): Likewise.
5508 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5509 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5510 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5511 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5512 (reset_saved_regs): Adjust to set realreg.
5513 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5514 call member functions.
5515 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5516 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5517 (s390_backchain_frame_unwind_cache): Likewise.
5518 * score-tdep.c (score7_analyze_prologue)
5519 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5520 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5521 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5522 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5523 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5524 * tilegx-tdep.c (tilegx_analyze_prologue)
5525 (tilegx_frame_cache): Likewise.
5526 * v850-tdep.c (v850_frame_cache): Likewise.
5527 * vax-tdep.c (vax_frame_cache): Likewise.
5529 2021-01-19 Luis Machado <luis.machado@linaro.org>
5531 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5533 (put_frame_register_bytes): Likewise.
5534 Adjust documentation.
5535 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5536 (safe_frame_unwind_memory): Likewise.
5537 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5538 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5540 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5541 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5542 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5543 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5544 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5545 * dwarf2/loc.c (rw_pieced_value): Likewise.
5546 * hppa-tdep.c (hppa_frame_cache): Likewise.
5547 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5548 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5549 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5550 (i386_linux_rt_sigtramp_start): Likewise.
5551 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5552 * i386-tdep.c (i386_register_to_value): Likewise.
5553 * i387-tdep.c (i387_register_to_value): Likewise.
5554 * ia64-tdep.c (ia64_register_to_value): Likewise.
5555 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5556 (m32r_linux_rt_sigtramp_start): Likewise.
5557 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5558 * m68k-tdep.c (m68k_register_to_value): Likewise.
5559 * mips-tdep.c (mips_register_to_value)
5560 (mips_value_to_register): Likewise.
5561 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5562 (ppcfbsd_sigtramp_frame_cache): Likewise.
5563 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5564 (ppcobsd_sigtramp_frame_cache): Likewise.
5565 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5566 (rs6000_register_to_value): Likewise.
5567 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5568 * tramp-frame.c (tramp_frame_start): Likewise.
5569 * valops.c (value_assign): Likewise.
5571 2021-01-19 Luis Machado <luis.machado@linaro.org>
5573 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5575 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5576 instead of buffer and size.
5577 (trad_frame_set_reg_value_bytes): Likewise.
5578 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5579 (trad_frame_set_value_bytes): Likewise.
5581 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5583 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5585 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5587 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5588 (riscv_fbsd_gregset): Use riscv_supply_regset.
5589 (riscv_fbsd_fpregset): Likewise.
5590 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5591 (riscv_linux_fregset): Likewise.
5592 * riscv-tdep.c (riscv_supply_regset): Define new function.
5593 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5595 2021-01-18 Tom de Vries <tdevries@suse.de>
5598 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5600 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5603 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5605 * remote.c (class remote_target) <remote_hostio_send_command,
5606 remote_hostio_parse_result>: Constify parameter.
5607 (remote_hostio_parse_result): Likewise.
5608 (remote_target::remote_hostio_send_command): Adjust.
5609 (remote_target::remote_hostio_pread_vFile): Adjust.
5610 (remote_target::fileio_readlink): Adjust.
5611 (remote_target::fileio_fstat): Adjust.
5613 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5615 * remote.c (remote_target::start_remote): Move wait_status to
5618 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5620 * remote.c (class remote_target):
5621 <add_current_inferior_and_thread>: Constify parameter.
5622 (stop_reply_extract_thread): Likewise.
5623 (remote_target::get_current_thread): Likewise.
5624 (remote_target::add_current_inferior_and_thread): Likewise.
5626 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5628 * remote.c (class remote_target)
5629 <remote_unpack_thread_info_response,
5630 parse_threadlist_response>: Constify parameter and/or return
5631 value and or local variable.
5632 (stub_unpack_int): Likewise.
5633 (unpack_nibble): Likewise.
5634 (unpack_byte): Likewise.
5635 (unpack_int): Likewise.
5636 (unpack_string): Likewise.
5637 (unpack_threadid): Likewise.
5638 (remote_target::remote_unpack_thread_info_response): Likewise.
5639 (remote_target::parse_threadlist_response): Likewise.
5641 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5643 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5645 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5647 * MAINTAINERS (Write After Approval): Add myself.
5649 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5651 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5652 because is_trivially_default_constructible was first implemented with
5655 2021-01-14 Tom de Vries <tdevries@suse.de>
5657 PR breakpoints/27151
5658 * objfiles.h (in_plt_section): Handle .plt.sec.
5660 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5664 (remote_target::select_thread_for_ambiguous_stop_reply): New
5666 (remote_target::process_stop_reply): Call
5667 select_thread_for_ambiguous_stop_reply.
5669 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5671 * record-btrace.c (class record_btrace_target): Remove.
5672 (record_btrace_target::commit_resume): Remove.
5673 * record-full.c (class record_full_target): Remove.
5674 (record_full_target::commit_resume): Remove.
5676 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5678 * remote.c (enum class resume_state): New.
5679 (struct resumed_pending_vcont_info): New.
5680 (struct remote_thread_info) <resume_state, set_not_resumed,
5681 set_resumed_pending_vcont, resumed_pending_vcont_info,
5682 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5684 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5685 (remote_target::remote_add_thread): Adjust.
5686 (remote_target::process_initial_stop_replies): Adjust.
5687 (remote_target::resume): Adjust.
5688 (remote_target::commit_resume): Rely on state in
5689 remote_thread_info and not on tp->executing.
5690 (remote_target::process_stop_reply): Adjust.
5692 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5694 * arc-tdep.h (arc_debug_printf): New.
5695 * arc-tdep.c: Use arc_debug_printf.
5696 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5697 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5698 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5700 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5702 * arc-tdep.h (arc_debug): Change type to bool.
5703 * arc-tdep.c (arc_debug): Change type to bool.
5704 (arc_analyze_prologue): Adjust.
5705 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5706 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5708 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5710 * auto-load.c (auto_load_objfile_script_1): Use bool.
5711 (execute_script_contents): Use bool.
5713 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5715 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5717 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5719 * extension-priv.h (struct extension_language_script_ops)
5720 <auto_load_enabled>: Return bool.
5721 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5723 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5725 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5727 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5728 move comment to header.
5729 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5731 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5732 move comment to header.
5734 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5736 * auto-load.h (file_is_auto_load_safe): Change return type to
5737 bool, move comment here.
5738 * auto-load.c (file_is_auto_load_safe): Change return type and
5739 advice_printed to bool. Move comment to header.
5741 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5743 * jit.c (jit_debug_printf): New, use throughout file.
5745 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5747 * infrun.c (normal_stop): Fix indentation.
5749 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5751 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5753 * symfile.h: ... here.
5754 * symfile.c: Update doc.
5756 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5758 * target.h (baud_rate, serial_parity): Move declarations...
5759 * serial.h: ... here.
5760 * main.c: Include serial.h.
5761 * serial.c (baud_rate, serial_parity): Update doc.
5763 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5765 * top.c (pre_init_ui_hook): Remove.
5767 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5769 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5770 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5771 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5772 * features/aarch64-fpu.xml: Add bfloat16 type.
5774 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5776 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5778 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5780 * f-exp.y (dot_ops): Rename to...
5781 (fortran_operators): ...this. Add a header comment. Add symbol
5783 (yylex): Update to use fortran_operators not dot_ops. Remove
5784 special handling for '**', this is now included in
5787 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5789 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5790 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5791 * aarch64-tdep.c: Use aarch64_debug_printf.
5793 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5795 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5798 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5800 * jit.c (jit_debug): Change type to bool.
5801 (_initialize_jit): Adjust.
5803 2021-01-09 Tom Tromey <tom@tromey.com>
5806 * compile/compile.c (compile_to_object): Avoid crash when
5807 osabi_triplet_regexp returns NULL.
5809 2021-01-09 Tom Tromey <tom@tromey.com>
5811 * tracepoint.h (class collection_list) <append_exp>: Take a
5813 * tracepoint.c (collection_list::append_exp): Take a std::string.
5814 (encode_actions_1): Update.
5816 2021-01-08 Tom Tromey <tromey@adacore.com>
5818 * parse.c (parse_expression): Add void_context_p parameter. Use
5819 parse_exp_in_context.
5820 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5822 (print_command, call_command): Update.
5823 * expression.h (parse_expression): Add void_context_p parameter.
5825 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5827 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5828 for internalvar components that have a dynamic location.
5830 2021-01-08 Tom de Vries <tdevries@suse.de>
5833 * breakpoint.c (create_exception_master_breakpoint_probe)
5834 (create_exception_master_breakpoint_hook): Factor out
5836 (create_exception_master_breakpoint): ... here. Only try to install
5837 the master exception breakpoint in objfile.debug using the
5838 _Unwind_DebugHook method, if the install using probes in objfile
5841 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5843 * f-lang.c (fortran_value_subarray): Call value_from_component.
5845 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5847 * remote-sim.c: Include memory-map.h.
5848 (gdbsim_target): Define memory_map override.
5849 (gdbsim_target::memory_map): Define.
5851 2021-01-07 Tom Tromey <tromey@adacore.com>
5853 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5855 2021-01-07 Tom Tromey <tromey@adacore.com>
5857 * ada-lang.c (add_component_interval): Start loop using vector's
5860 2021-01-06 Tom Tromey <tromey@adacore.com>
5862 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5864 * valarith.c (fixed_point_binop): Handle multiplication
5865 and division specially.
5866 * valops.c (value_to_gdb_mpq): New function.
5867 (value_cast_to_fixed_point): Use it.
5869 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5871 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5872 Call wnoutrefresh instead of tui_win_info::refresh_window.
5874 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5876 * tui/tui-source.c (tui_source_window::show_line_number):
5877 Redraw second space after line number.
5879 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5882 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5883 Fix source pad size in prefresh.
5884 (tui_source_window_base::show_source_content): Grow source pad
5887 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5889 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5890 (bfin_frame_align): Use align_down.
5892 2021-01-04 Tom de Vries <tdevries@suse.de>
5894 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5895 terminators that do not terminate anything.
5897 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5899 * debug.c (debug_print_depth): New.
5900 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5901 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5902 * infrun.c (start_step_over): Use
5903 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5904 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5905 INFRUN_SCOPED_DEBUG_START_END.
5906 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5908 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5910 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5912 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5914 * utils.c (vfprintf_unfiltered): Print timestamp only when
5915 previous debug output ended with a newline.
5917 2021-01-04 Luis Machado <luis.machado@linaro.org>
5919 Update all users of trad_frame_saved_reg to use the new member
5922 Remote all struct keywords from declarations of trad_frame_saved_reg
5923 types, except on forward declarations.
5925 * aarch64-tdep.c: Update.
5926 * alpha-mdebug-tdep.c: Update.
5927 * alpha-tdep.c: Update.
5928 * arc-tdep.c: Update.
5929 * arm-tdep.c: Update.
5930 * avr-tdep.c: Update.
5931 * cris-tdep.c: Update.
5932 * csky-tdep.c: Update.
5933 * frv-tdep.c: Update.
5934 * hppa-linux-tdep.c: Update.
5935 * hppa-tdep.c: Update.
5936 * hppa-tdep.h: Update.
5937 * lm32-tdep.c: Update.
5938 * m32r-linux-tdep.c: Update.
5939 * m32r-tdep.c: Update.
5940 * m68hc11-tdep.c: Update.
5941 * mips-tdep.c: Update.
5942 * moxie-tdep.c: Update.
5943 * riscv-tdep.c: Update.
5944 * rs6000-tdep.c: Update.
5945 * s390-linux-tdep.c: Update.
5946 * s390-tdep.c: Update.
5947 * score-tdep.c: Update.
5948 * sparc-netbsd-tdep.c: Update.
5949 * sparc-sol2-tdep.c: Update.
5950 * sparc64-fbsd-tdep.c: Update.
5951 * sparc64-netbsd-tdep.c: Update.
5952 * sparc64-obsd-tdep.c: Update.
5953 * sparc64-sol2-tdep.c: Update.
5954 * tilegx-tdep.c: Update.
5955 * v850-tdep.c: Update.
5956 * vax-tdep.c: Update.
5958 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5959 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5961 * trad-frame.c: Update.
5962 Remove TF_REG_* enum.
5963 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5964 a trivially-constructible struct.
5965 (trad_frame_reset_saved_regs): Adjust to use member function.
5966 (trad_frame_value_p): Likewise.
5967 (trad_frame_addr_p): Likewise.
5968 (trad_frame_realreg_p): Likewise.
5969 (trad_frame_value_bytes_p): Likewise.
5970 (trad_frame_set_value): Likewise.
5971 (trad_frame_set_realreg): Likewise.
5972 (trad_frame_set_addr): Likewise.
5973 (trad_frame_set_unknown): Likewise.
5974 (trad_frame_set_value_bytes): Likewise.
5975 (trad_frame_get_prev_register): Likewise.
5976 * trad-frame.h: Update.
5977 (trad_frame_saved_reg_kind): New enum.
5978 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5979 <m_kind, m_reg>: New member fields.
5980 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5981 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5982 <is_addr, is_unknown, is_value_bytes>: New member functions.
5984 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5986 * target-float.c: Fix typos.
5988 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5990 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5992 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5994 * gdbarch.sh: Update copyright year range.
5996 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5998 Update copyright year range in copyright header of all GDB files.
6000 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6002 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6003 to the list of directories to update.
6005 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6007 * top.c (print_gdb_version): Update copyright year.
6009 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6011 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6013 For older changes see ChangeLog-2020.
6019 version-control: never