1 2021-05-08 Pedro Alves <pedro@palves.net>
3 * linux-nat.c (linux_nat_target::supports_disable_randomization):
4 Remove references to HAVE_PERSONALITY.
5 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
6 (maybe_disable_address_space_randomization)
7 (~maybe_disable_address_space_randomizatio): Remove references to
9 * config.in, configure: Regenerate.
11 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
13 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
15 (source_script_with_search): Perform tilde expansion.
17 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
19 * target-descriptions.c (struct target_desc_info) <filename>:
21 (copy_inferior_target_desc_info): Adjust.
22 (target_desc_info_free): Adjust.
23 (target_find_description): Adjust.
24 (set_tdesc_filename_cmd): Adjust.
25 (show_tdesc_filename_cmd): Adjust.
26 (unset_tdesc_filename_cmd): Adjust.
27 (maint_print_c_tdesc_cmd): Adjust.
29 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
31 * target-descriptions.c (struct target_desc_info): Initialize
33 (get_tdesc_info): Use new.
34 (target_desc_info_free): Use delete.
36 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
38 * target-descriptions.c (struct target_desc_info) <fetched>:
40 (target_find_description): Adjust.
41 (target_clear_description): Adjust.
43 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
45 * target-descriptions.c (struct target_desc_info) <tdesc>:
47 (target_desc_fetched): Remove.
48 (current_target_desc): Remove.
49 (target_description_filename): Remove.
50 (target_find_description): Adjust.
51 (target_clear_description): Adjust.
52 (target_current_description): Adjust.
53 (set_tdesc_filename_cmd): Adjust.
54 (show_tdesc_filename_cmd): Adjust.
55 (unset_tdesc_filename_cmd): Adjust.
56 (maint_print_c_tdesc_cmd): Adjust.
57 (maint_print_xml_tdesc_cmd): Adjust.
59 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
61 * infcmd.c (notice_new_inferior): Change parameter type.
62 * inferior.h (notice_new_inferior): Change parameter type.
63 * remote.c (remote_notice_new_inferior): Change parameter type to
64 bool. Also update type of local variable to bool.
65 (remote_target::update_thread_list): Change type of local variable
67 (remote_target::process_stop_reply): Pass bool instead of int to
68 remote_notice_new_inferior.
70 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
72 * target.c (target_stack::unpush): Call target_ops::find_beneath
73 to get the target beneath `t`.
75 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
77 * target.c (target_close): Check in all inferiors that the
80 2021-05-07 Aaron Merey <amerey@redhat.com>
82 * debuginfod-support.c (debuginfod_init): Remove.
83 (get_debuginfod_client): New function.
85 2021-05-07 Tom Tromey <tom@tromey.com>
87 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
88 * utils.c (streq_hash): Remove.
89 * utils.h (streq_hash): Don't declare.
90 * completer.c (completion_tracker::discard_completions): Update
92 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
94 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
96 * Re-format all Python files using black.
98 2021-05-07 Tom de Vries <tdevries@suse.de>
101 * dwarf2/read.c (struct dwarf2_cu): Remove ancestor.
102 (dwarf2_cu::get_builder): Remove ancestor-related code.
103 (new_symbol): Remove code supporting pre-4.1 gcc that show arguments
104 of inlined functions as locals.
105 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
107 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
109 * guile/guile-internal.h (gdbscm_safe_source_script): Change
110 function return type.
111 * guile/guile.c (gdbscm_source_script): Update to handle change in
112 gdbscm_safe_source_script.
113 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
114 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
117 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
119 * inferior.h (class inferior) <args>: Change type to
121 * inferior.c (inferior::~inferior): Don't free args.
122 * infcmd.c (get_inferior_args): Adjust.
123 (set_inferior_args): Adjust.
125 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
127 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
128 breakpoint locations when the breakpoint actually has a location.
130 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
132 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
133 * mi/mi-cmds.c: Change the binding of "-break-condition" to
134 mi_cmd_break_condition.
135 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
136 * breakpoint.h (set_breakpoint_condition): Declare a new
138 * breakpoint.c (set_breakpoint_condition): New overloaded function
139 extracted out from ...
140 (condition_command): ... this.
141 * NEWS: Mention the change.
143 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
145 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
146 '--force-condition' flag to force the condition in the
147 '-break-insert' and '-dprintf-insert' commands.
148 * NEWS: Mention the change.
150 2021-05-04 Tom de Vries <tdevries@suse.de>
153 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
156 2021-04-30 Tom Tromey <tom@tromey.com>
158 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
159 (add_signatured_type_cu_to_table): Remove.
160 (create_debug_type_hash_table): Assume dwo_file is non-null.
161 (create_debug_types_hash_table): Update comment.
162 (create_all_type_units): Remove.
163 (sort_tu_by_abbrev_offset): Update comment.
164 (build_type_psymtabs): Rename from build_type_psymtabs_1.
165 (build_type_psymtabs): Remove.
166 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
168 (read_comp_units_from_section): Add types_htab, section_kind
170 (create_all_comp_units): Read type units.
172 2021-04-30 Tom Tromey <tom@tromey.com>
174 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
175 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
176 <get_cu>: Now inline.
177 <all_type_units>: Remove.
178 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
179 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
180 (dwarf2_per_bfd::get_tu): Remove.
181 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
182 (create_signatured_type_table_from_index)
183 (create_signatured_type_table_from_debug_names)
184 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
185 (dwarf2_base_index_functions::expand_all_symtabs)
186 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
187 (dwarf2_base_index_functions::map_symbol_filenames)
188 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
189 (add_signatured_type_cu_to_table, create_all_type_units)
190 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
191 (create_all_comp_units): Update.
192 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
193 (write_debug_names): Update.
195 2021-04-30 Tom Tromey <tom@tromey.com>
197 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
198 allocate_signatured_type>: Change return type.
199 <all_comp_units, all_type_units>: Hold unique pointers.
200 (struct dwarf2_per_cu_data): Add constructor and initializers.
201 (struct signatured_type): Derive from dwarf2_per_cu_data.
202 * dwarf2/read.c (type_unit_group): Derive from
204 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
205 (dwarf2_per_bfd::get_tu)
206 (dwarf2_per_bfd::allocate_signatured_type)
207 (dwarf2_per_bfd::allocate_signatured_type)
208 (create_cu_from_index_list, create_cus_from_index_list)
209 (create_signatured_type_table_from_index)
210 (create_signatured_type_table_from_debug_names)
211 (create_addrmap_from_aranges)
212 (dwarf2_base_index_functions::find_last_source_symtab)
213 (dw_expand_symtabs_matching_file_matcher)
214 (dwarf2_gdb_index::expand_symtabs_matching)
215 (dwarf2_base_index_functions::map_symbol_filenames)
216 (create_cus_from_debug_names_list)
217 (dw2_debug_names_iterator::next)
218 (dwarf2_debug_names_index::expand_symtabs_matching)
219 (create_debug_type_hash_table, add_type_unit)
220 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
222 (allocate_type_unit_groups_table): Use delete.
223 (create_type_unit_group): Change return type. Use new.
224 (get_type_unit_group, build_type_psymtabs_1)
225 (build_type_psymtab_dependencies)
226 (process_skeletonless_type_unit, set_partial_user)
227 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
228 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
229 (read_signatured_type): Update.
230 (dwarf2_find_containing_comp_unit): Change type of
233 (dwarf2_per_bfd::allocate_per_cu)
234 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
236 (add_signatured_type_cu_to_table): Update.
237 * dwarf2/index-write.c (write_one_signatured_type)
238 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
239 (write_debug_names): Update.
241 2021-04-30 Tom Tromey <tromey@adacore.com>
243 * nat/windows-nat.h (get_image_name): Don't declare.
244 * nat/windows-nat.c (get_image_name): Now static.
246 2021-04-30 Tom Tromey <tromey@adacore.com>
248 * windows-nat.c (windows_nat::handle_load_dll): Update.
249 (windows_nat_target::get_windows_debug_event): Call
251 (windows_add_all_dlls, windows_add_dll): Move to
253 * nat/windows-nat.h (handle_load_dll): Change parameters.
254 (dll_loaded_event, windows_add_all_dlls): Declare.
255 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
257 (dll_loaded_event): New function.
259 2021-04-30 Tom Tromey <tromey@adacore.com>
261 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
262 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
264 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
265 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
267 2021-04-30 Tom Tromey <tromey@adacore.com>
269 * windows-nat.c: Move code to nat/windows-nat.[ch].
270 (_initialize_windows_nat): Call initialize_loadable.
271 * nat/windows-nat.h (AdjustTokenPrivileges)
272 (DebugActiveProcessStop, DebugBreakProcess)
273 (DebugSetProcessKillOnExit, EnumProcessModules)
274 (EnumProcessModulesEx, GetModuleInformation)
275 (GetModuleFileNameExA, GetModuleFileNameExW)
276 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
277 (GetCurrentConsoleFont, Wow64SuspendThread)
278 (Wow64GetThreadContext, Wow64SetThreadContext)
279 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
280 (AdjustTokenPrivileges_ftype)
281 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
282 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
283 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
284 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
285 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
286 (GetConsoleFontSize_ftype)
287 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
288 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
289 (Wow64GetThreadSelectorEntry_ftype): Likewise.
290 (initialize_loadable): Declare.
291 * nat/windows-nat.c (AdjustTokenPrivileges)
292 (DebugActiveProcessStop, DebugBreakProcess)
293 (DebugSetProcessKillOnExit, EnumProcessModules)
294 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
295 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
296 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
297 (Wow64GetThreadContext, Wow64SetThreadContext)
298 (Wow64GetThreadSelectorEntry): Define.
299 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
301 (initialize_loadable): Likewise, and rename.
303 2021-04-30 Tom Tromey <tromey@adacore.com>
305 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
306 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
307 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
308 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
309 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
310 (bad): New template functions.
311 (_initialize_loadable): Update.
313 2021-04-30 Tom Tromey <tromey@adacore.com>
315 * ada-lang.c (ada_index_type): Use ada_check_typedef.
317 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
319 * auto-load.h: Split namespace declaration.
321 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
323 * infrun.c (save_waitstatus): Move variables to inner scope.
325 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
327 * NEWS: Fix typo and stray full stop.
329 2021-04-28 Tom Tromey <tromey@adacore.com>
331 * ada-exp.y (primary): Use new type for null pointer.
332 * ada-lang.c (ada_type_match): Remove "may_deref"
333 parameter. Handle null pointer.
334 (ada_args_match): Update.
335 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
338 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
340 * NEWS: Mention new commands.
341 * python/python.c (python_ignore_environment): New static global.
342 (show_python_ignore_environment): New function.
343 (set_python_ignore_environment): New function.
344 (python_dont_write_bytecode): New static global.
345 (show_python_dont_write_bytecode): New function.
346 (set_python_dont_write_bytecode): New function.
347 (_initialize_python): Register new commands.
349 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
351 * extension-priv.h (struct extension_language_ops): Rename
352 'finish_initialization' to 'initialize'.
353 * extension.c (finish_ext_lang_initialization): Renamed to...
354 (ext_lang_initialization): ...this, update comment, and updated
355 the calls to reflect the change in struct extension_language_ops.
356 * extension.h (finish_ext_lang_initialization): Renamed to...
357 (ext_lang_initialization): ...this.
358 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
359 (gdbscm_initialize): ...this, update comment at definition.
360 (guile_extension_ops): Update.
361 * main.c (captured_main_1): Update call to
362 finish_ext_lang_initialization.
363 * python/python.c (gdbpy_finish_initialization): Rename to...
364 (gdbpy_initialize): ...this, update comment at definition, and
365 update call to do_finish_initialization.
366 (python_extension_ops): Update.
367 (do_finish_initialization): Rename to...
368 (do_initialize): ...this, and update comment.
370 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
372 * main.c (captured_main_1): Add a call to
373 finish_ext_lang_initialization.
374 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
376 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
378 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
379 (gdbscm_finish_initialization): Add code moved from
381 (_initialize_guile): Move code to gdbscm_finish_initialization.
382 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
383 _initialize_scm_arch.
384 (_initialize_scm_arch): New function.
385 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
386 into _initialize_scm_block.
387 (_initialize_scm_block): New function.
388 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
389 into _initialize_scm_frame.
390 (_initialize_scm_frame): New function.
391 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
392 into _initialize_scm_objfile.
393 (_initialize_scm_objfile): New function.
394 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
395 code into _initialize_scm_progspace.
396 (_initialize_scm_progspace): New function.
397 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
398 into _initialize_scm_symbol.
399 (_initialize_scm_symbol): New function.
400 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
401 into _initialize_scm_symtab.
402 (_initialize_scm_symtab): New function.
403 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
404 _initialize_scm_type.
405 (_initialize_scm_type): New function.
407 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
409 * python/py-arch.c (_initialize_py_arch): New function.
410 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
411 * python/py-block.c (_initialize_py_block): New function.
412 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
413 * python/py-inferior.c (_initialize_py_inferior): New function.
414 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
415 * python/py-objfile.c (_initialize_py_objfile): New function.
416 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
417 * python/py-progspace.c (_initialize_py_progspace): New function.
418 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
419 * python/py-registers.c (_initialize_py_registers): New function.
420 (gdbpy_initialize_registers): Move code to
421 _initialize_py_registers.
422 * python/py-symbol.c (_initialize_py_symbol): New function.
423 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
424 * python/py-symtab.c (_initialize_py_symtab): New function.
425 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
426 * python/py-type.c (_initialize_py_type): New function.
427 (gdbpy_initialize_types): Move code to _initialize_py_type.
428 * python/py-unwind.c (_initialize_py_unwind): New function.
429 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
430 * python/python.c (_initialize_python): Move call to
431 do_start_initialization to gdbpy_finish_initialization.
432 (gdbpy_finish_initialization): Add call to
433 do_start_initialization.
435 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
437 * extension.c (struct scoped_default_signal): New struct.
438 (scoped_default_sigint): New typedef.
439 (finish_ext_lang_initialization): Make use of
440 scoped_default_sigint.
442 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
444 * main.c (captured_main_1): Don't pass argument to gdb_init.
445 * top.c (gdb_init): Remove unused argument, and add header
447 * top.h (gdb_init): Remove argument.
449 2021-04-27 Luis Machado <luis.machado@linaro.org>
451 * psymtab.c (psymbol_functions::dump): Output newline.
453 * symmisc.c (dump_objfile): Likewise.
455 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
456 Simon Marchi <simon.marchi@polymtl.ca>
458 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
459 when attaching the 'auto_load_new_objfile' observer, so
460 other observers can specify it as a dependency.
461 * gdb/auto-load.h (struct token): Declare
462 'auto_load_new_objfile_observer_token' as token to be used
463 for the 'auto_load_new_objfile' observer.
464 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
465 'python_new_objfile' observer depend on 'auto_load_new_objfile'
466 observer, so it gets notified after the latter.
468 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
469 Simon Marchi <simon.marchi@polymtl.ca>
471 * unittests/observable-selftests.c (dependency_test_counters):
473 (observer_token0, observer_token1, observer_token2,
474 observer_token3, observer_token4, observer_token5): New.
475 (struct dependency_observer_data): New struct.
476 (observer_dependency_test_callback): New function.
477 (test_observers): New.
478 (run_dependency_test): New function.
479 (test_dependency): New.
480 (_initialize_observer_selftest): Register dependency test.
482 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
485 * cli/cli-dump.c (dump_binary_file): Check result of
488 2021-04-25 Sergei Trofimovich <siarheit@google.com>
490 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
491 by passing `process_stratum_target*` parameter.
493 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
496 * typeprint.h (struct type_print_options): Add print_in_hex
498 (struct print_offset_data): Add print_in_hex flag, add a
499 constructor accepting a type_print_options* argument.
500 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
501 default value for print_in_hex.
502 (print_offset_data::indentation): Allow more horizontal space.
503 (print_offset_data::print_offset_data): Add ctor.
504 (print_offset_data::maybe_print_hole, print_offset_data::update):
505 Handle the print_in_hex flag.
506 (whatis_exp): Handle 'x' and 'd' flags.
507 (print_offsets_and_sizes_in_hex): Declare.
508 (set_print_offsets_and_sizes_in_hex): Create.
509 (show_print_offsets_and_sizes_in_hex): Create.
510 (_initialize_typeprint): Update help message for the ptype
511 command, register the 'set print type hex' and 'show print type
513 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
514 (c_type_print_base): Construct the print_offset_data
515 object using the type_print_optons parameter.
516 * rust-lang.c (rust_language::print_type): Construct the
517 print_offset_data object using the type_print_optons parameter.
518 * NEWS: Mention the new flags of the ptype command.
520 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
522 * typeprint.h (struct type_print_options): Move before
525 2021-04-25 Joel Brobecker <brobecker@adacore.com>
529 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
531 * observable.c (observer_debug): Change to bool.
533 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
535 * dwarf2/read.c: Add 'unordered_set' include.
536 (dwarf2_base_index_functions::map_symbol_filenames): Replace
537 'visited' hash table with 'qfn_cache' unordered_set. Remove use
538 of per_Bfd->filenames_cache cache, and use function local
539 filenames_cache instead. Reindent.
540 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
542 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
544 * breakpoint.c (iterate_over_bp_locations): Change callback to
545 function view, remove data parameter.
546 * breakpoint.h (iterate_over_bp_locations): Likewise.
547 * record-full.c (record_full_sync_record_breakpoints): Remove
550 2021-04-22 Tom Tromey <tom@tromey.com>
552 * c-typeprint.c (c_type_print_base_struct_union): Use
553 print_spaces_filtered_with_print_options.
555 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
558 * python/py-type.c (typy_range): Check that bounds are constant
559 before accessing them as such.
560 * guile/scm-type.c (gdbscm_type_range): Likewise.
562 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
564 * Makefile.in (COMMON_SFILES): Remove continuations.c.
565 * inferior.c (inferior::add_continuation): New method, adapted
566 from 'add_inferior_continuation'.
567 (inferior::do_all_continuations): New method, adapted from
568 'do_all_inferior_continuations'.
569 (inferior::~inferior): Clear the list of continuations directly.
570 * inferior.h (class inferior) <continuations>: Rename into...
571 <m_continuations>: ...this and make private.
572 * continuations.c: Remove.
573 * continuations.h: Remove.
574 * event-top.c: Don't include "continuations.h".
576 Update the users below.
577 * inf-loop.c (inferior_event_handler)
578 * infcmd.c (attach_command)
579 (notice_new_inferior): Update.
581 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583 * inferior.h (class inferior) <continuations>: Change the type
584 to be an std::list of std::function's.
585 Update the references and uses below.
586 * continuations.c (struct continuation): Delete.
587 (make_continuation): Delete.
588 (do_my_continuations_1): Delete.
589 (do_my_continuations): Delete.
590 (discard_my_continuations_1): Delete.
591 (discard_my_continuations): Delete.
592 (add_inferior_continuation): Update.
593 (do_all_inferior_continuations): Update.
594 (discard_all_inferior_continuations): Update.
595 * continuations.h (add_inferior_continuation): Update to take
596 an std::function as the parameter.
597 * infcmd.c (struct attach_command_continuation_args): Delete.
598 (attach_command_continuation): Delete.
599 (attach_command_continuation_free_args): Delete.
600 (attach_command): Update.
601 (notice_new_inferior): Update.
603 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
605 * continuations.h: Update the general comment.
606 * inferior.h (class inferior) <continuations>: Update the comment.
607 * interps.c: Do not include "continuations.h".
609 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
611 * continuations.h (do_all_inferior_continuations): Remove the 'err'
612 parameter. Update the references below.
613 * continuations.c (do_my_continuations_1)
614 (do_my_continuations)
615 (do_all_inferior_continuations): Update.
616 * inf-loop.c (inferior_event_handler): Update.
617 * infcmd.c (attach_command_continuation): Update.
619 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
621 * infcmd.c (attach_post_wait): Update the function comment.
623 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
625 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
626 Update the references below.
627 (struct attach_command_continuation_args)
628 (attach_command_continuation)
629 (attach_command_continuation_free_args)
631 (notice_new_inferior): Update to remove the reference to 'args'.
633 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
634 Tom de Vries <tdevries@suse.de>
637 * remote.c (remote_target_is_non_stop_p): New function.
638 * remote.h (remote_target_is_non_stop_p): Declare.
639 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
640 to check non-stopness using notif_state->remote rather current target.
642 2021-04-22 Tom Tromey <tom@tromey.com>
644 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
645 (struct typed_val_int) <val>: Now ULONGEST.
646 (rust_parser::parse_array_type): Remove negative check.
647 (rust_lex_int_test): Change 'value' to ULONGEST.
649 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
651 * arch-utils.c (default_addressable_memory_unit_size): Return a
652 value based on bfd's bits per byte.
654 2021-04-21 Tom Tromey <tom@tromey.com>
656 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
658 (struct dwarf2_per_cu_data): Rearrange.
659 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
661 (struct comp_unit_head): Rearrange.
662 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
664 2021-04-21 Tom de Vries <tdevries@suse.de>
667 * configure.ac: Remove --without-included-regex/--with-included-regex.
668 * config.in: Regenerate.
669 * configure: Regenerate.
670 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
672 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
674 * breakpoint.h (create_breakpoint): Add a new parameter,
676 * breakpoint.c (create_breakpoint): Use the 'force_condition'
677 argument when 'parse_extra' is false to check if the condition
678 is invalid at all of the breakpoint locations.
679 Update the users below.
685 (create_tracepoint_from_upload): Update.
686 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
687 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
688 * python/py-breakpoint.c (bppy_init): Update.
689 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
691 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
693 * breakpoint.c (print_one_breakpoint_location): Display "N" for
694 disabled-by-condition locations on MI-like output.
695 (breakpoint_1): Do not display the disabled-by-condition footnote
696 if the output is MI-like.
698 2021-04-21 Frederic Cambus <fred@statdns.com>
700 * syscalls/update-netbsd.sh: Fix script name display in usage, and
701 update year range in generated copyright notices.
703 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
705 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
708 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
710 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
712 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
714 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
715 (producer_is_icc): Replace use of std::regex with gdb's
718 2021-04-17 Tom Tromey <tom@tromey.com>
721 * dwarf2/read.c (class offset_view): New.
722 (struct symbol_table_slot): Remove.
723 (struct mapped_index) <symbol_table, constant_pool>: Change type.
724 <symbol_name_index, symbol_vec_index>: New methods.
725 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
727 (read_gdb_index_from_buffer): Update.
728 (struct dw2_symtab_iterator) <vec>: Change type.
729 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
730 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
731 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
732 <append_array, append_offset>: New methods.
733 (write_hash_table, add_address_entry, write_gdbindex_1)
734 (write_debug_names): Update.
735 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
737 2021-04-17 Tom Tromey <tom@tromey.com>
739 * dwarf2/index-write.c (write_psymtabs_to_index): Check
742 2021-04-17 Tom Tromey <tom@tromey.com>
744 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
745 from map_matching_symbols. Change parameters.
746 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
747 Rename from map_matching_symbols. Change parameters.
748 * dwarf2/read.c (struct dwarf2_gdb_index)
749 <expand_matching_symbols>: Rename from map_matching_symbols.
751 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
752 Rename from map_matching_symbols. Change parameters.
753 (dwarf2_gdb_index::expand_matching_symbols): Rename from
754 dw2_map_matching_symbols. Change parameters.
755 (dwarf2_gdb_index::expand_matching_symbols): Remove old
757 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
758 map_matching_symbols. Change parameters.
759 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
760 from map_matching_symbols. Change parameters.
761 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
762 map_matching_symbols. Change parameters.
763 * ada-lang.c (map_matching_symbols): New function.
764 (add_nonlocal_symbols): Update.
766 2021-04-17 Tom Tromey <tom@tromey.com>
768 * quick-symbol.h (struct quick_symbol_functions)
769 <expand_symtabs_with_fullname>: Remove.
770 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
772 * psympriv.h (struct psymbol_functions)
773 <expand_symtabs_with_fullname>: Remove.
774 * dwarf2/read.c (struct dwarf2_base_index_functions)
775 <expand_symtabs_with_fullname>: Remove.
776 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
778 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
780 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
783 2021-04-17 Tom Tromey <tom@tromey.com>
785 * symfile-debug.c (objfile::expand_symtabs_for_function):
787 * quick-symbol.h (struct quick_symbol_functions)
788 <expand_symtabs_for_function>: Remove.
789 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
791 * psympriv.h (struct psymbol_functions)
792 <expand_symtabs_for_function>: Remove.
793 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
795 * dwarf2/read.c (struct dwarf2_gdb_index)
796 <expand_symtabs_for_function>: Remove.
797 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
799 (find_slot_in_mapped_hash): Remove.
800 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
801 (dw2_symtab_iter_init): Remove one overload.
802 (dwarf2_gdb_index::expand_symtabs_for_function)
803 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
805 2021-04-17 Tom Tromey <tom@tromey.com>
807 * symfile-debug.c (objfile::map_symtabs_matching_filename):
809 * quick-symbol.h (struct quick_symbol_functions)
810 <map_symtabs_matching_filename>: Remove.
811 * psymtab.c (partial_map_expand_apply)
812 (psymbol_functions::map_symtabs_matching_filename): Remove.
813 * psympriv.h (struct psymbol_functions)
814 <map_symtabs_matching_filename>: Remove.
815 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
817 * dwarf2/read.c (struct dwarf2_base_index_functions)
818 <map_symtabs_matching_filename>: Remove.
819 (dw2_map_expand_apply)
820 (dwarf2_base_index_functions::map_symtabs_matching_filename):
823 2021-04-17 Tom Tromey <tom@tromey.com>
825 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
826 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
828 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
829 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
830 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
831 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
833 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
834 (dwarf2_gdb_index::lookup_symbol)
835 (dwarf2_debug_names_index::lookup_symbol): Remove.
837 2021-04-17 Tom Tromey <tom@tromey.com>
839 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
840 * symmisc.c (maintenance_expand_symtabs): Update.
841 * symfile.c (expand_symtabs_matching): Update.
842 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
844 * quick-symbol.h (struct quick_symbol_functions)
845 <expand_symtabs_matching>: Add 'domain' parameter.
846 * psymtab.c (recursively_search_psymtabs)
847 (psymbol_functions::expand_symtabs_matching): Add 'domain'
849 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
850 Add 'domain' parameter.
851 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
853 * linespec.c (iterate_over_all_matching_symtabs): Update.
854 * dwarf2/read.c (struct dwarf2_gdb_index)
855 <expand_symtabs_matching>: Add 'domain' parameter.
856 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
858 (dw2_expand_symtabs_matching)
859 (dwarf2_gdb_index::expand_symtabs_matching)
860 (dw2_debug_names_iterator)
861 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
864 2021-04-17 Tom Tromey <tom@tromey.com>
866 * symtab.c (global_symbol_searcher::expand_symtabs)
867 (default_collect_symbol_completion_matches_break_on): Update.
868 * symmisc.c (maintenance_expand_symtabs): Update.
869 * symfile.h (expand_symtabs_matching): Add search_flags
871 * symfile.c (expand_symtabs_matching): Add search_flags
873 * symfile-debug.c (objfile::expand_symtabs_matching): Add
874 search_flags parameter.
875 * quick-symbol.h (struct quick_symbol_functions)
876 <expand_symtabs_matching>: Add search_flags parameter.
877 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
878 * psymtab.c (recursively_search_psymtabs)
879 (psymbol_functions::expand_symtabs_matching): Add search_flags
881 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
882 Add search_flags parameter.
883 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
884 search_flags parameter.
885 * linespec.c (iterate_over_all_matching_symtabs): Update.
886 * dwarf2/read.c (struct dwarf2_gdb_index)
887 <expand_symtabs_matching>: Add search_flags parameter.
888 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
889 search_flags parameter.
890 (dw2_map_matching_symbols): Update.
891 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
892 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
894 (dw2_debug_names_iterator): Change block_index to search flags.
895 <m_block_index>: Likewise.
896 (dw2_debug_names_iterator::next)
897 (dwarf2_debug_names_index::lookup_symbol)
898 (dwarf2_debug_names_index::expand_symtabs_for_function)
899 (dwarf2_debug_names_index::map_matching_symbols)
900 (dwarf2_debug_names_index::map_matching_symbols): Update.
901 (dwarf2_debug_names_index::expand_symtabs_matching): Add
902 search_flags parameter.
903 * ada-lang.c (ada_add_global_exceptions)
904 (collect_symbol_completion_matches): Update.
906 2021-04-17 Tom Tromey <tom@tromey.com>
908 * symtab.c (default_collect_symbol_completion_matches_break_on):
910 * symfile.h (expand_symtabs_matching): Return bool.
911 * symfile.c (expand_symtabs_matching): Return bool.
912 * symfile-debug.c (objfile::expand_symtabs_matching): Return
914 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
915 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
917 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
919 * psympriv.h (struct psymbol_functions)
920 <expand_symtabs_matching>: Return bool.
921 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
923 * dwarf2/read.c (struct dwarf2_gdb_index)
924 <expand_symtabs_matching>: Return bool.
925 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
927 (dw2_expand_symtabs_matching_symbol): Return bool.
928 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
929 (dw2_expand_symtabs_matching)
930 (dwarf2_gdb_index::expand_symtabs_matching)
931 (dwarf2_debug_names_index::expand_symtabs_matching)
932 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
934 2021-04-17 Tom Tromey <tom@tromey.com>
936 * quick-symbol.h (enum block_search_flag_values): New.
937 (block_search_flags): New enum flags type.
939 2021-04-16 Tom Tromey <tom@tromey.com>
941 * rust-parse.c: New file.
942 * rust-exp.y: Remove.
943 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
944 (SFILES): Remove rust-exp.y.
945 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
947 2021-04-16 Luis Machado <luis.machado@linaro.org>
949 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
951 2021-04-15 John Baldwin <jhb@FreeBSD.org>
953 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
956 2021-04-15 Tom Tromey <tromey@adacore.com>
958 * ada-valprint.c (ada_value_print_array): Handle optimized-out
961 2021-04-15 Tom Tromey <tromey@adacore.com>
963 * printcmd.c (print_variable_and_value): Use
964 common_val_print_checked.
966 2021-04-15 Tom Tromey <tromey@adacore.com>
968 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
969 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
971 * p-exp.y (variable): Update.
972 * m2-exp.y (variable): Update.
973 * go-exp.y (variable): Update.
974 * expprint.c (dump_for_expression): New overload.
975 * expop.h (check_objfile): New overload.
976 (check_constant): New overload.
977 (class var_value_operation): Use block_symbol.
978 <get_symbol>: Rewrite.
979 * eval.c (var_value_operation::evaluate)
980 (var_value_operation::evaluate_funcall)
981 (var_value_operation::evaluate_for_address)
982 (var_value_operation::evaluate_for_address)
983 (var_value_operation::evaluate_with_coercion)
984 (var_value_operation::evaluate_for_sizeof)
985 (var_value_operation::evaluate_for_cast): Update.
986 * d-exp.y (PrimaryExpression): Update.
987 * c-exp.y (variable): Update.
988 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
989 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
990 (ada_var_value_operation::evaluate)
991 (ada_var_value_operation::resolve)
992 (ada_funcall_operation::resolve): Update.
993 * ada-exp.y (write_var_from_sym, write_object_renaming)
994 (write_ambiguous_var, write_var_or_type, write_name_assoc)
995 (maybe_overload): Update.
996 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
998 2021-04-15 Tom Tromey <tom@tromey.com>
999 Andrew Burgess <andrew.burgess@embecosm.com>
1002 * main.c (captured_main_1): Call check_quiet_mode.
1003 * top.c (startup_quiet): New global.
1004 (check_quiet_mode): New function.
1005 (show_startup_quiet): New function.
1006 (init_main): Register new command.
1007 * top.h (check_quiet_mode): Declare.
1009 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1012 * NEWS: Mention new early init files and command line options.
1013 * config.in: Regenerate.
1014 * configure: Regenerate.
1015 * configure.ac: Define GDBEARLYINIT.
1016 * main.c (get_earlyinit_files): New function.
1017 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1018 CMDARG_EARLYINIT_COMMAND.
1019 (captured_main_1): Add support for new command line flags, and for
1020 processing startup files.
1021 (print_gdb_help): Include startup files in the output.
1023 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1025 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1026 (relocate_file_path_maybe_in_datadir): ...this.
1027 (class gdb_initfile_finder): New class.
1028 (get_init_files): Now uses gdb_initfile_finder.
1029 (print_gdb_help): Print 'None found' when there are no init files.
1031 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1034 corresponding child of the abstract DIE when iterating the
1035 children of the concrete DIE.
1037 2021-04-13 Tom de Vries <tdevries@suse.de>
1039 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1042 2021-04-13 Luis Machado <luis.machado@linaro.org>
1044 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1047 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1049 * rs6000-tdep.c: Add support for single-stepping of
1050 prefixed instructions.
1052 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1055 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1056 handle the addpcis/lnia instruction.
1058 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1060 * MAINTAINERS (Write After Approval): Add myself.
1062 2021-4-12 Carl Love <cel@us.ibm.com>
1064 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1065 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1068 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1070 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1071 * nat/windows-nat.h: Likewise.
1073 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1075 * windows-nat.c (windows_nat::handle_load_dll): Call
1076 windows_add_dll if get_image_name failed to glean the name of the
1077 DLL by using the lpImageName pointer.
1078 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1079 (windows_add_dll): Now does what windows_add_all_dlls did before,
1080 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1081 specifies the address where the DLL was loaded into the inferior,
1082 and looks for the single DLL loaded at that address.
1084 2021-04-09 Luis Machado <luis.machado@linaro.org>
1086 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1088 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1090 * darwin-nat.c (darwin_nat_target::resume): Remove status
1093 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1095 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1096 prologue end for Intel compilers.
1097 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1098 * producer.c (producer_is_icc_ge_19): New function.
1099 * producer.h (producer_is_icc_ge_19): New declaration.
1101 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1103 * producer.c: (producer_is_icc): Update for new version scheme.
1104 (producer_parsing_tests): Update names and expected results.
1105 * producer.h: (producer_is_icc): Update comment accordingly.
1107 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1109 * target.h (struct target_ops) <follow_fork>: Return void.
1110 (target_follow_fork): Likewise.
1111 * target.c (default_follow_fork): Likewise.
1112 (target_follow_fork): Likewise.
1113 * infrun.c (follow_fork_inferior): Adjust.
1114 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1115 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1116 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1117 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1118 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1119 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1120 * remote.c (class remote_target) <follow_fork>: Likewise.
1121 (remote_target::follow_fork): Likewise.
1122 * target-delegates.c: Re-generate.
1124 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1126 * ctfread.c (fetch_tid_type): New function, use throughout file.
1127 (read_forward_type): New function.
1128 (read_type_record): Call read_forward_type.
1130 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1132 * f-exp.h (class fortran_structop_operation): New class.
1133 * f-exp.y (exp): Create fortran_structop_operation instead of the
1134 generic structop_operation.
1135 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1136 expression as EVAL_NORMAL if the result type was dynamic so we can
1137 extract the actual array bounds.
1138 (fortran_structop_operation::evaluate): New function.
1140 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1142 * eval.c (evaluate_subexp_standard): Remove
1143 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1146 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1148 * valops.c (value_cast): Call value_deeply_equal before performing
1151 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1153 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1156 2021-04-07 Caroline Tice <cmtice@google.com>
1158 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1159 the search paths used resolve relative location of .dwo file.
1161 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1163 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1165 (dwarf2_section_info::get_file_name): Add an assert.
1166 (dwarf2_section_info::read_string): Display a minimal, sane error
1167 when the dwarf2_section_info is not associated with a bfd section.
1169 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1171 * top.c (staged_gdb_datadir): Update comment.
1172 (set_gdb_datadir): Copy the value of gdb_datadir back into
1174 (init_main): Initialise staged_gdb_datadir.
1176 2021-04-06 Tom de Vries <tdevries@suse.de>
1178 PR breakpoints/25884
1179 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1182 2021-04-06 Tom de Vries <tdevries@suse.de>
1185 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1188 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1190 * avr-tdep.c (avr_frame_unwind_cache): Use
1191 trad_frame_saved_reg::is_addr.
1193 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1195 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1198 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1200 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1201 objfile parameter for objfile_per_bfd_storage, adjust callers.
1202 (struct standard_psymtab) <standard_psymtab>: Likewise.
1203 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1204 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1205 * ctfread.c (struct ctf_psymtab): Likewise.
1206 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1207 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1208 (dwarf2_create_include_psymtab): Likewise.
1209 * objfiles.h (struct objfile_per_bfd_storage)
1210 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1211 <get_bfd>: New method.
1213 * objfiles.c (get_objfile_bfd_data): Adjust.
1215 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1217 * psymtab.c (partial_symtab::partial_symtab): Change
1218 last_objfile_name to be an std::string.
1219 * symfile.c (allocate_symtab): Likewise.
1221 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1223 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1225 (struct objfile) <intern>: Use
1226 objfile::objfile_per_bfd_storage::intern.
1228 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1230 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1231 with type::is_flag_enum.
1233 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1235 * gdbtypes.h (struct type) <is_flag_enum,
1236 set_is_flag_enum>: New methods.
1237 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1238 write call sites to use type::set_is_flag_enum.
1240 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1242 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1243 with type::is_declared_class.
1245 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1247 * gdbtypes.h (struct type) <is_declared_class,
1248 set_is_declared_class>: New methods.
1249 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1250 write call sites to use type::set_is_declared_class.
1252 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1254 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1255 to avoid deprecation warnings.
1257 2021-04-01 Martin Liska <mliska@suse.cz>
1259 * cp-name-parser.y: Use startswith instead of strncmp.
1260 * m2-exp.y: Likewise.
1261 * macroexp.c (substitute_args): Likewise.
1262 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1263 * rust-exp.y: Likewise.
1265 2021-03-31 Tom Tromey <tom@tromey.com>
1267 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1268 with dw2_map_matching_symbols.
1269 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1270 dw2_expand_symtabs_matching.
1272 2021-03-31 Tom Tromey <tromey@adacore.com>
1274 * dwarf2/stringify.h: Fix typo.
1276 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1279 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1280 with objfiles using READNOW.
1282 2021-03-29 Tom Tromey <tromey@adacore.com>
1284 * top.c (check_frame_language_change): Update.
1285 * language.c (language_info): Remove parameter.
1286 * language.h (language_info): Remove parameter.
1288 2021-03-29 Luis Machado <luis.machado@linaro.org>
1290 * compile/compile.c (get_args): Don't add empty argv entries.
1292 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1295 * procfs.c (procfs_target::attach): Define inf.
1297 (procfs_target::create_inferior): Likewise.
1299 2021-03-28 Tom Tromey <tom@tromey.com>
1301 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1302 (elf_symfile_read): Simplify.
1303 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1304 (make_lazy_dwarf_reader): New function.
1305 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1306 (dwarf2_initialize_objfile): Return void. Remove index_kind
1307 parameter. Push on 'qf' list.
1308 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1309 type. Remove 'index_kind' parameter.
1310 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1312 2021-03-27 Tom Tromey <tom@tromey.com>
1314 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1316 2021-03-27 Tom Tromey <tom@tromey.com>
1318 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1320 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1322 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1325 2021-03-26 Tom Tromey <tom@tromey.com>
1327 * symtab.c (struct output_source_filename_data): Add 'output'
1328 method and operator().
1329 (output_source_filename_data::output): Rename from
1330 output_source_filename.
1331 (output_partial_symbol_filename): Remove.
1332 (info_sources_command): Update.
1333 (struct add_partial_filename_data): Add operator().
1334 (add_partial_filename_data::operator()): Rename from
1335 maybe_add_partial_symtab_filename.
1336 (make_source_files_completion_list): Update.
1337 * symfile.c (quick_symbol_functions): Update.
1338 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1339 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1340 'need_fullname'. Remove 'data' parameter.
1341 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1342 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1343 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1344 Change type of 'fun' and 'need_fullname'. Remove 'data'
1346 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1347 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1348 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1350 (mi_cmd_file_list_exec_source_files): Update.
1352 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1354 2021-03-26 Tom Tromey <tom@tromey.com>
1356 * ada-lang.c (struct match_data): Add operator().
1357 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1358 (callback): Remove 'callback'.
1360 2021-03-26 Tom Tromey <tom@tromey.com>
1362 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1363 call make_ignore_params once.
1365 2021-03-26 Tom Tromey <tom@tromey.com>
1367 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1370 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1371 Pedro Alves <pedro@palves.net>
1373 * async-event.c: Include "infrun.h".
1374 (async_event_handler_marked): New.
1375 * async-event.h (async_event_handler_marked): Declare.
1376 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1377 inferior before calling target method. Don't commit-resumed if
1378 target_has_pending_events is true.
1379 * remote.c (remote_target::has_pending_events): New.
1380 * target-delegates.c: Regenerate.
1381 * target.c (target_has_pending_events): New.
1382 * target.h (target_ops::has_pending_events): New target method.
1383 (target_has_pending_events): New.
1385 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1386 Pedro Alves <pedro@palves.net>
1388 * infcmd.c (run_command_1, attach_command, detach_command)
1389 (interrupt_target_1): Use scoped_disable_commit_resumed.
1390 * infrun.c (do_target_resume): Remove
1391 target_commit_resume call.
1392 (commit_resume_all_targets): Remove.
1393 (maybe_set_commit_resumed_all_targets): New.
1394 (maybe_call_commit_resumed_all_targets): New.
1395 (enable_commit_resumed): New.
1396 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1397 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1398 (scoped_disable_commit_resumed::reset)
1399 (scoped_disable_commit_resumed::reset_and_commit)
1400 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1401 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1403 (proceed): Use scoped_disable_commit_resumed and
1404 maybe_call_commit_resumed_all_targets.
1405 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1406 * infrun.h (struct scoped_disable_commit_resumed): New.
1407 (maybe_call_commit_resumed_all_process_targets): New.
1408 (struct scoped_enable_commit_resumed): New.
1409 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1410 * process-stratum-target.h (class process_stratum_target):
1411 <commit_resumed_state>: New.
1412 * record-full.c (record_full_wait_1): Change commit_resumed_state
1413 around calling commit_resumed.
1414 * remote.c (class remote_target) <commit_resume>: Rename to...
1415 <commit_resumed>: ... this.
1416 (struct stop_reply): Move up.
1417 (remote_target::commit_resume): Rename to...
1418 (remote_target::commit_resumed): ... this. Check if there is any
1419 thread pending vCont resume.
1420 (remote_target::remote_stop_ns): Generate stop replies for resumed
1421 but pending vCont threads.
1422 (remote_target::wait_ns): Add gdb_assert.
1423 * target-delegates.c: Regenerate.
1424 * target.c (target_wait, target_resume): Assert that the current
1425 process_stratum target isn't in commit-resumed state.
1426 (defer_target_commit_resume): Remove.
1427 (target_commit_resume): Remove.
1428 (target_commit_resumed): New.
1429 (make_scoped_defer_target_commit_resume): Remove.
1430 (target_stop): Assert that the current process_stratum target
1431 isn't in commit-resumed state.
1432 * target.h (struct target_ops) <commit_resume>: Rename to ...
1433 <commit_resumed>: ... this.
1434 (target_commit_resume): Remove.
1435 (target_commit_resumed): New.
1436 (make_scoped_defer_target_commit_resume): Remove.
1437 * top.c (wait_sync_command_done): Use
1438 scoped_enable_commit_resumed.
1440 2021-03-26 Pedro Alves <pedro@palves.net>
1442 * target.c (target_always_non_stop_p): Also check whether the
1445 2021-03-26 Tom Tromey <tom@tromey.com>
1447 * dwarf2/read.c (dwarf2_read_debug_names)
1448 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1449 (dw2_debug_names_iterator::next, create_type_unit_group):
1452 2021-03-25 Pedro Alves <pedro@palves.net>
1454 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1455 around setting the breakpoint.
1457 2021-03-25 Pedro Alves <pedro@palves.net>
1460 (remote_target::check_pending_events_prevent_wildcard_vcont):
1461 Check whether the event's ptid is not null_ptid before looking up
1462 the corresponding inferior.
1464 2021-03-24 Changbin Du <changbin.du@gmail.com>
1466 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1469 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1471 * target.h (current_top_target): Remove, make callers use the
1472 current inferior instead.
1473 * target.c (current_top_target): Remove.
1475 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1477 * target.h (target_shortname): Change to function declaration.
1478 (target_longname): Likewise.
1479 (target_attach_no_wait): Likewise.
1480 (target_post_attach): Likewise.
1481 (target_prepare_to_store): Likewise.
1482 (target_supports_enable_disable_tracepoint): Likewise.
1483 (target_supports_string_tracing): Likewise.
1484 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1485 (target_supports_dumpcore): Likewise.
1486 (target_dumpcore): Likewise.
1487 (target_can_run_breakpoint_commands): Likewise.
1488 (target_files_info): Likewise.
1489 (target_post_startup_inferior): Likewise.
1490 (target_insert_fork_catchpoint): Likewise.
1491 (target_remove_fork_catchpoint): Likewise.
1492 (target_insert_vfork_catchpoint): Likewise.
1493 (target_remove_vfork_catchpoint): Likewise.
1494 (target_insert_exec_catchpoint): Likewise.
1495 (target_remove_exec_catchpoint): Likewise.
1496 (target_set_syscall_catchpoint): Likewise.
1497 (target_rcmd): Likewise.
1498 (target_can_lock_scheduler): Likewise.
1499 (target_can_async_p): Likewise.
1500 (target_is_async_p): Likewise.
1501 (target_execution_direction): Likewise.
1502 (target_extra_thread_info): Likewise.
1503 (target_pid_to_exec_file): Likewise.
1504 (target_thread_architecture): Likewise.
1505 (target_find_memory_regions): Likewise.
1506 (target_make_corefile_notes): Likewise.
1507 (target_get_bookmark): Likewise.
1508 (target_goto_bookmark): Likewise.
1509 (target_stopped_by_watchpoint): Likewise.
1510 (target_stopped_by_sw_breakpoint): Likewise.
1511 (target_supports_stopped_by_sw_breakpoint): Likewise.
1512 (target_stopped_by_hw_breakpoint): Likewise.
1513 (target_supports_stopped_by_hw_breakpoint): Likewise.
1514 (target_have_steppable_watchpoint): Likewise.
1515 (target_can_use_hardware_watchpoint): Likewise.
1516 (target_region_ok_for_hw_watchpoint): Likewise.
1517 (target_can_do_single_step): Likewise.
1518 (target_insert_watchpoint): Likewise.
1519 (target_remove_watchpoint): Likewise.
1520 (target_insert_hw_breakpoint): Likewise.
1521 (target_remove_hw_breakpoint): Likewise.
1522 (target_can_accel_watchpoint_condition): Likewise.
1523 (target_can_execute_reverse): Likewise.
1524 (target_get_ada_task_ptid): Likewise.
1525 (target_filesystem_is_local): Likewise.
1526 (target_trace_init): Likewise.
1527 (target_download_tracepoint): Likewise.
1528 (target_can_download_tracepoint): Likewise.
1529 (target_download_trace_state_variable): Likewise.
1530 (target_enable_tracepoint): Likewise.
1531 (target_disable_tracepoint): Likewise.
1532 (target_trace_start): Likewise.
1533 (target_trace_set_readonly_regions): Likewise.
1534 (target_get_trace_status): Likewise.
1535 (target_get_tracepoint_status): Likewise.
1536 (target_trace_stop): Likewise.
1537 (target_trace_find): Likewise.
1538 (target_get_trace_state_variable_value): Likewise.
1539 (target_save_trace_data): Likewise.
1540 (target_upload_tracepoints): Likewise.
1541 (target_upload_trace_state_variables): Likewise.
1542 (target_get_raw_trace_data): Likewise.
1543 (target_get_min_fast_tracepoint_insn_len): Likewise.
1544 (target_set_disconnected_tracing): Likewise.
1545 (target_set_circular_trace_buffer): Likewise.
1546 (target_set_trace_buffer_size): Likewise.
1547 (target_set_trace_notes): Likewise.
1548 (target_get_tib_address): Likewise.
1549 (target_set_permissions): Likewise.
1550 (target_static_tracepoint_marker_at): Likewise.
1551 (target_static_tracepoint_markers_by_strid): Likewise.
1552 (target_traceframe_info): Likewise.
1553 (target_use_agent): Likewise.
1554 (target_can_use_agent): Likewise.
1555 (target_augmented_libraries_svr4_read): Likewise.
1556 (target_log_command): Likewise.
1557 * target.c (target_shortname): New.
1558 (target_longname): New.
1559 (target_attach_no_wait): New.
1560 (target_post_attach): New.
1561 (target_prepare_to_store): New.
1562 (target_supports_enable_disable_tracepoint): New.
1563 (target_supports_string_tracing): New.
1564 (target_supports_evaluation_of_breakpoint_conditions): New.
1565 (target_supports_dumpcore): New.
1566 (target_dumpcore): New.
1567 (target_can_run_breakpoint_commands): New.
1568 (target_files_info): New.
1569 (target_post_startup_inferior): New.
1570 (target_insert_fork_catchpoint): New.
1571 (target_remove_fork_catchpoint): New.
1572 (target_insert_vfork_catchpoint): New.
1573 (target_remove_vfork_catchpoint): New.
1574 (target_insert_exec_catchpoint): New.
1575 (target_remove_exec_catchpoint): New.
1576 (target_set_syscall_catchpoint): New.
1578 (target_can_lock_scheduler): New.
1579 (target_can_async_p): New.
1580 (target_is_async_p): New.
1581 (target_execution_direction): New.
1582 (target_extra_thread_info): New.
1583 (target_pid_to_exec_file): New.
1584 (target_thread_architecture): New.
1585 (target_find_memory_regions): New.
1586 (target_make_corefile_notes): New.
1587 (target_get_bookmark): New.
1588 (target_goto_bookmark): New.
1589 (target_stopped_by_watchpoint): New.
1590 (target_stopped_by_sw_breakpoint): New.
1591 (target_supports_stopped_by_sw_breakpoint): New.
1592 (target_stopped_by_hw_breakpoint): New.
1593 (target_supports_stopped_by_hw_breakpoint): New.
1594 (target_have_steppable_watchpoint): New.
1595 (target_can_use_hardware_watchpoint): New.
1596 (target_region_ok_for_hw_watchpoint): New.
1597 (target_can_do_single_step): New.
1598 (target_insert_watchpoint): New.
1599 (target_remove_watchpoint): New.
1600 (target_insert_hw_breakpoint): New.
1601 (target_remove_hw_breakpoint): New.
1602 (target_can_accel_watchpoint_condition): New.
1603 (target_can_execute_reverse): New.
1604 (target_get_ada_task_ptid): New.
1605 (target_filesystem_is_local): New.
1606 (target_trace_init): New.
1607 (target_download_tracepoint): New.
1608 (target_can_download_tracepoint): New.
1609 (target_download_trace_state_variable): New.
1610 (target_enable_tracepoint): New.
1611 (target_disable_tracepoint): New.
1612 (target_trace_start): New.
1613 (target_trace_set_readonly_regions): New.
1614 (target_get_trace_status): New.
1615 (target_get_tracepoint_status): New.
1616 (target_trace_stop): New.
1617 (target_trace_find): New.
1618 (target_get_trace_state_variable_value): New.
1619 (target_save_trace_data): New.
1620 (target_upload_tracepoints): New.
1621 (target_upload_trace_state_variables): New.
1622 (target_get_raw_trace_data): New.
1623 (target_get_min_fast_tracepoint_insn_len): New.
1624 (target_set_disconnected_tracing): New.
1625 (target_set_circular_trace_buffer): New.
1626 (target_set_trace_buffer_size): New.
1627 (target_set_trace_notes): New.
1628 (target_get_tib_address): New.
1629 (target_set_permissions): New.
1630 (target_static_tracepoint_marker_at): New.
1631 (target_static_tracepoint_markers_by_strid): New.
1632 (target_traceframe_info): New.
1633 (target_use_agent): New.
1634 (target_can_use_agent): New.
1635 (target_augmented_libraries_svr4_read): New.
1636 (target_log_command): New.
1637 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1638 * infrun.c (set_schedlock_func): Adjust.
1639 * mi/mi-main.c (exec_reverse_continue): Adjust.
1640 * reverse.c (exec_reverse_once): Adjust.
1641 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1642 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1643 * remote-sim.c (gdbsim_target::detach): Adjust.
1644 (gdbsim_target::files_info): Adjust.
1646 2021-03-24 Tom Tromey <tom@tromey.com>
1648 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1649 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1650 (check_match, dw2_expand_symtabs_matching)
1651 (dwarf2_debug_names_index::map_matching_symbols)
1652 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1654 2021-03-24 Keith Seitz <keiths@redhat.com>
1656 * compile/compile-cplus-types.c
1657 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1660 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1662 * gdbarch.sh (gdbarch_data_registry): Make static.
1663 * gdbarch.c: Re-generate.
1665 2021-03-24 Luis Machado <luis.machado@linaro.org>
1667 * NEWS: Mention memory tagging changes.
1669 2021-03-24 Luis Machado <luis.machado@linaro.org>
1671 * printcmd.c (decode_format): Handle the 'm' modifier.
1672 (do_examine): Display allocation tags when required/supported.
1673 (should_validate_memtags): New function.
1674 (print_command_1): Display memory tag mismatches.
1675 * valprint.c (show_memory_tag_violations): New function.
1676 (value_print_option_defs): Add new option "memory-tag-violations".
1677 (user_print_options) <memory_tag_violations>: Initialize to 1.
1678 * valprint.h (struct format_data) <print_tags>: New field.
1679 (value_print_options) <memory_tag_violations>: New field.
1681 2021-03-24 Luis Machado <luis.machado@linaro.org>
1683 * printcmd.c: Include gdbsupport/rsp-low.h.
1684 (memory_tag_list): New static global.
1685 (process_print_command_args): Factored out of
1687 (print_command_1): Use process_print_command_args.
1688 (show_addr_not_tagged, show_memory_tagging_unsupported)
1689 (memory_tag_command, memory_tag_print_tag_command)
1690 (memory_tag_print_logical_tag_command)
1691 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1692 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1693 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1695 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1697 2021-03-24 Luis Machado <luis.machado@linaro.org>
1699 * aarch64-linux-tdep.c
1700 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1701 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1703 2021-03-24 Luis Machado <luis.machado@linaro.org>
1705 * aarch64-linux-tdep.c
1706 (aarch64_linux_report_signal_info): New function.
1707 (aarch64_linux_init_abi): Register
1708 aarch64_linux_report_signal_info as the report_signal_info hook.
1709 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1710 (SEGV_MTESERR): Define.
1712 2021-03-24 Luis Machado <luis.machado@linaro.org>
1714 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1715 (aarch64_linux_ltag_tests): New function.
1716 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1718 2021-03-24 Luis Machado <luis.machado@linaro.org>
1720 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1721 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1722 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1723 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1725 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1726 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1727 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1728 (aarch64_linux_get_ltag): New functions.
1729 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1730 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1731 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1732 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1734 2021-03-24 Luis Machado <luis.machado@linaro.org>
1736 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1738 (struct smaps_data): New struct.
1739 (decode_vmflags): Handle the 'mt' flag.
1740 (parse_smaps_data): New function, refactored from
1741 linux_find_memory_regions_full.
1742 (linux_address_in_memtag_page): New function.
1743 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1744 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1746 2021-03-24 Luis Machado <luis.machado@linaro.org>
1748 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1749 instead of char arrays.
1751 2021-03-24 Luis Machado <luis.machado@linaro.org>
1753 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1754 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1755 nat/aarch64-mte-linux-ptrace.h.
1756 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1757 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1759 <fetch_memtags>: New method override.
1760 <store_memtags>: New method override.
1761 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1762 (aarch64_linux_nat_target::fetch_memtags): New method.
1763 (aarch64_linux_nat_target::store_memtags): New method.
1764 * arch/aarch64-mte-linux.c: New file.
1765 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1766 (AARCH64_MTE_GRANULE_SIZE): Define.
1767 (aarch64_memtag_type): New enum.
1768 (aarch64_mte_get_tag_granules): New prototype.
1769 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1770 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1771 * nat/aarch64-mte-linux-ptrace.c: New file.
1772 * nat/aarch64-mte-linux-ptrace.h: New file.
1774 2021-03-24 Luis Machado <luis.machado@linaro.org>
1776 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1777 * nat/aarch64-mte-linux-ptrace.h: New file.
1779 2021-03-24 Luis Machado <luis.machado@linaro.org>
1781 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1782 (store_mteregs_to_thread): New function.
1783 (aarch64_linux_nat_target::fetch_registers): Update to call
1784 fetch_mteregs_from_thread.
1785 (aarch64_linux_nat_target::store_registers): Update to call
1786 store_mteregs_to_thread.
1787 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1788 (aarch64_cannot_store_register): Handle MTE registers.
1789 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1790 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1791 <has_mte>: New method.
1792 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1794 2021-03-24 Luis Machado <luis.machado@linaro.org>
1796 * aarch64-linux-nat.c
1797 (aarch64_linux_nat_target::read_description): Take MTE flag into
1799 Slight refactor to hwcap flag checking.
1800 * aarch64-linux-tdep.c
1801 (aarch64_linux_core_read_description): Likewise.
1802 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1804 (aarch64_read_description): Add mte_p parameter and update to use it.
1805 Update the documentation.
1806 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1807 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1808 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1809 (aarch64_create_target_description): Add mte_p parameter and update
1811 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1813 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1814 * features/aarch64-mte.c: New file, generated.
1815 * features/aarch64-mte.xml: New file.
1817 2021-03-24 Luis Machado <luis.machado@linaro.org>
1819 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1820 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1821 * aarch64-linux-tdep.c: Likewise
1822 * arch/aarch64-mte-linux.h: New file.
1824 2021-03-24 Luis Machado <luis.machado@linaro.org>
1826 * remote: Include gdbsupport/selftest.h.
1827 (test_memory_tagging_functions): New function.
1828 (_initialize_remote): Register test_memory_tagging_functions.
1830 2021-03-24 Luis Machado <luis.machado@linaro.org>
1832 * remote.c (PACKET_memory_tagging_feature): New enum.
1833 (remote_memory_tagging_p): New function.
1834 (remote_protocol_features): New "memory-tagging" entry.
1835 (remote_target::remote_query_supported): Handle memory tagging
1837 (remote_target::supports_memory_tagging): Implement.
1838 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1839 (create_store_memtags_request): New functions.
1840 (remote_target::fetch_memtags): Implement.
1841 (remote_target::store_memtags): Implement.
1842 (_initialize_remote): Add new "memory-tagging-feature"
1845 2021-03-24 Luis Machado <luis.machado@linaro.org>
1847 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1848 (default_memtag_matches_p, default_set_memtags)
1849 (default_get_memtag): New functions.
1850 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1851 (default_memtag_matches_p, default_set_memtags)
1852 (default_get_memtag): New prototypes.
1853 * gdbarch.c: Regenerate.
1854 * gdbarch.h: Regenerate.
1855 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1856 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1857 (enum memtag_type): New enum.
1859 2021-03-24 Luis Machado <luis.machado@linaro.org>
1861 * remote.c (remote_target) <supports_memory_tagging>: New method
1863 <fetch_memtags>: New method override.
1864 <store_memtags>: New method override.
1865 (remote_target::supports_memory_tagging): New method.
1866 (remote_target::fetch_memtags): New method.
1867 (remote_target::store_memtags): New method.
1868 * target-delegates.c: Regenerate.
1869 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1871 <fetch_memtags>: New virtual method.
1872 <store_memtags>: New virtual method.
1873 (target_supports_memory_tagging): Define.
1874 (target_fetch_memtags): Define.
1875 (target_store_memtags): Define.
1876 * target-debug.h (target_debug_print_size_t)
1877 (target_debug_print_const_gdb_byte_vector_r)
1878 (target_debug_print_gdb_byte_vector_r): New functions.
1880 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1882 * target.h (target_longname): Remove.
1884 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1886 * target.h (target_is_pushed): Remove, update callers to use
1887 inferior::target_is_pushed instead.
1888 * target.c (target_is_pushed): Remove.
1890 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1892 * target.h (push_target): Remove, update callers to use
1893 inferior::push_target.
1894 * target.c (push_target): Remove.
1895 * inferior.h (class inferior) <push_target>: New overload.
1897 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1899 * target.h (unpush_target): Remove, update all callers
1900 to use `inferior::unpush_target` instead.
1901 (struct target_unpusher) <operator()>: Just declare.
1902 * target.c (unpush_target): Remove.
1903 (target_unpusher::operator()): New.
1905 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1907 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1909 (process_full_comp_unit): Validate the top-level tag before
1910 processing the first DIE.
1911 (read_func_scope): Ensure we have a valid builder.
1913 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1915 * objc-lang.c (objc_demangle): Renamed to
1916 objc_language::demangle_symbol, and moved later in the file.
1917 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1919 (objc_language::demangle_symbol): Defined outside of class
1920 declaration. The definition is the old objc_demangle with NULL
1921 changed to nullptr, and if conditions relating to nullptr pointers
1922 or null character checks made explicit.
1923 * objc-lang.h (objc_demangle): Delete declaration.
1925 2021-03-22 Martin Liska <mliska@suse.cz>
1927 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1928 (_initialize_arm_tdep): Likewise.
1930 2021-03-20 Tom Tromey <tom@tromey.com>
1932 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1933 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1934 * psymtab.h (make_psymbol_functions): Don't declare.
1935 * psymtab.c (make_psymbol_functions): Remove.
1936 (maintenance_print_psymbols): Update.
1937 * psympriv.h (struct psymbol_functions): Add no-argument
1939 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1940 <partial_symtabs>: Remove.
1941 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1942 * elfread.c (read_partial_symbols): Update.
1943 (elf_symfile_read): Remove check for existing partial symbols.
1945 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1947 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1949 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1951 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1952 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1954 2021-03-20 Tom Tromey <tom@tromey.com>
1956 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1957 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1958 * symfile-debug.c (objfile::has_partial_symbols)
1959 (objfile::find_last_source_symtab)
1960 (objfile::forget_cached_source_info)
1961 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1962 (objfile::print_stats, objfile::dump)
1963 (objfile::expand_symtabs_for_function)
1964 (objfile::expand_all_symtabs)
1965 (objfile::expand_symtabs_with_fullname)
1966 (objfile::map_matching_symbols)
1967 (objfile::expand_symtabs_matching)
1968 (objfile::find_pc_sect_compunit_symtab)
1969 (objfile::map_symbol_filenames)
1970 (objfile::find_compunit_symtab_by_address)
1971 (objfile::lookup_global_symbol_language)
1972 (objfile::require_partial_symbols): Update.
1973 * psymtab.c (maintenance_print_psymbols)
1974 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1975 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1976 * objfiles.c (objfile_relocate1): Update.
1977 * elfread.c (elf_symfile_read): Update.
1979 2021-03-20 Tom Tromey <tom@tromey.com>
1981 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1983 2021-03-20 Tom Tromey <tom@tromey.com>
1985 * psymtab.c (psymbol_functions::count_psyms): Rename.
1986 (psymbol_functions::print_stats): Update.
1987 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1990 2021-03-20 Tom Tromey <tom@tromey.com>
1992 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1993 (psymbol_functions::find_pc_sect_psymtab): Rename.
1994 (psymbol_functions::find_pc_sect_compunit_symtab)
1995 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1996 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1998 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2000 2021-03-20 Tom Tromey <tom@tromey.com>
2002 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2003 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2004 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2006 (add_psymbol_to_bcache): Remove.
2007 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2008 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2010 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2011 <add_psymbol>: Likewise.
2012 (standard_psymtab, legacy_psymtab): Likewise.
2013 * mdebugread.c (parse_partial_symbols): Update.
2014 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2015 (handle_psymbol_enumerators): Update.
2016 (new_psymtab): Add partial_symtabs parameter.
2017 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2018 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2020 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2021 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2023 * dbxread.c (read_dbx_symtab): Update.
2024 (start_psymtab): Add partial_symtabs parameter.
2025 (dbx_end_psymtab): Update.
2026 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2027 (ctf_psymtab): Add partial_symtabs parameter.
2028 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2030 (scan_partial_symbols): Add partial_symtabs parameter.
2031 (scan_partial_symbols, elfctf_build_psymtabs)
2032 (ctf_psymtab_add_enums): Update.
2034 2021-03-20 Tom Tromey <tom@tromey.com>
2036 * symfile.c (read_symbols): Use objfile method.
2037 * symfile-debug.c (objfile::require_partial_symbols): New method.
2038 * psymtab.h (require_partial_symbols): Don't declare.
2039 * psymtab.c (require_partial_symbols): Use objfile method. Now
2041 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2042 (psymbol_functions::lookup_symbol)
2043 (psymbol_functions::lookup_global_symbol_language)
2044 (psymbol_functions::find_last_source_symtab)
2045 (psymbol_functions::forget_cached_source_info)
2046 (psymbol_functions::print_stats)
2047 (psymbol_functions::expand_symtabs_for_function)
2048 (psymbol_functions::expand_all_symtabs)
2049 (psymbol_functions::expand_symtabs_with_fullname)
2050 (psymbol_functions::map_symbol_filenames)
2051 (psymbol_functions::map_matching_symbols)
2052 (psymbol_functions::expand_symtabs_matching)
2053 (psymbol_functions::find_compunit_symtab_by_address)
2054 (maintenance_print_psymbols, maintenance_info_psymtabs)
2055 (maintenance_check_psymtabs): Update.
2056 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2059 2021-03-20 Tom Tromey <tom@tromey.com>
2061 * xcoffread.c (xcoff_sym_fns): Update.
2062 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2063 * symfile-debug.c (objfile::has_partial_symbols): Use
2064 can_lazily_read_symbols.
2065 (debug_sym_read_psymbols): Remove.
2066 (debug_sym_fns, install_symfile_debug_logging): Update.
2067 * quick-symbol.h (struct quick_symbol_functions)
2068 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2069 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2070 * mipsread.c (ecoff_sym_fns): Update.
2071 * machoread.c (macho_sym_fns): Update.
2072 * elfread.c (struct lazy_dwarf_reader): New.
2073 (elf_symfile_read): Update.
2074 (read_psyms): Now a method of lazy_dwarf_reader.
2075 (elf_sym_fns): Update.
2076 (elf_sym_fns_lazy_psyms): Remove.
2077 * dbxread.c (aout_sym_fns): Update.
2078 * coffread.c (coff_sym_fns): Update.
2080 2021-03-20 Tom Tromey <tom@tromey.com>
2082 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2083 (reread_symbols): Move reset_psymtabs call later.
2084 * objfiles.c (objfile::objfile): Don't initialize
2087 2021-03-20 Tom Tromey <tom@tromey.com>
2089 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2090 set_partial_symtabs.
2091 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2092 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2094 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2096 (psymbol_functions::find_pc_sect_compunit_symtab)
2097 (psymbol_functions::print_stats, psymbol_functions::dump)
2098 (psymbol_functions::has_symbols): Update.
2099 (make_psymbol_functions, dump_psymtab_addrmap): Add
2100 partial_symtabs parameter.
2101 (maintenance_print_psymbols): Update.
2102 (psymbol_functions::expand_symtabs_matching): Update.
2103 * psympriv.h (struct psymbol_functions): Add constructor.
2104 <m_partial_symtabs>: New member.
2105 <set_partial_symtabs>: New method.
2107 2021-03-20 Tom Tromey <tom@tromey.com>
2109 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2111 (process_psymtab_comp_unit_reader)
2112 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2113 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2114 Reference psymtabs via per_bfd.
2116 2021-03-20 Tom Tromey <tom@tromey.com>
2118 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2120 (add_address_entry): Remove objfile parameter.
2121 (add_address_entry_worker): Update.
2122 (write_address_map): Replace objfile parameter with per_bfd.
2123 (write_gdbindex, write_psymtabs_to_index): Update.
2125 2021-03-20 Tom Tromey <tom@tromey.com>
2127 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2128 print_bcache parameter.
2129 * symfile-debug.c (objfile::print_stats): Add print_bcache
2131 * quick-symbol.h (struct quick_symbol_functions)
2132 <print_stats>: Add print_bcache parameter.
2133 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2135 (print_objfile_statistics): Move psymtab code to psymtab.c.
2136 * psymtab.c (count_psyms): Move from symmisc.c.
2137 (psymbol_functions::print_stats): Print partial symbol and bcache
2138 statistics. Add print_bcache parameter.
2139 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2140 (struct objfile) <print_stats>: Add print_bcache parameter.
2141 * maint.c (maintenance_print_statistics): Update.
2143 2021-03-20 Tom Tromey <tom@tromey.com>
2145 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2147 * dwarf2/read.c (create_addrmap_from_index)
2148 (create_addrmap_from_aranges): Set per_bfd addrmap.
2149 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2150 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2152 (dwarf2_read_debug_names): Don't set partial_symtabs.
2153 (dwarf2_initialize_objfile): Likewise.
2155 2021-03-20 Tom Tromey <tom@tromey.com>
2157 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2160 2021-03-20 Tom Tromey <tom@tromey.com>
2162 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2163 (~psymtab_discarder, keep): Update.
2164 <m_objfile>: Remove.
2165 <m_partial_symtabs>: New member.
2166 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2168 2021-03-20 Tom Tromey <tom@tromey.com>
2170 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2171 (xcoff_end_psymtab): Update.
2172 (scan_xcoff_symtab): Add partial_symtabs parameter.
2173 (xcoff_initial_scan): Update.
2174 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2175 * mdebugread.c (mdebug_build_psymtabs): Update.
2176 (parse_partial_symbols): Add partial_symtabs parameter.
2177 * dbxread.c (dbx_symfile_read): Update.
2178 (read_dbx_symtab): Add partial_symtabs parameter.
2179 (read_dbx_symtab): Update.
2180 (dbx_end_psymtab): Add partial_symtabs parameter.
2182 2021-03-20 Tom Tromey <tom@tromey.com>
2184 * quick-symbol.h (struct quick_symbol_functions)
2185 <relocated>: New method.
2186 * psymtab.h (struct psymbol_functions) <relocated>: New
2188 <fill_psymbol_map>: Declare method.
2189 <m_psymbol_map>: New member.
2190 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2191 (psymbol_functions::find_compunit_symtab_by_address): Update.
2192 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2193 (struct objfile) <psymbol_map>: Remove.
2194 * objfiles.c (objfile_relocate1): Update.
2196 2021-03-20 Tom Tromey <tom@tromey.com>
2198 * psympriv.h (struct psymbol_functions): New.
2199 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2200 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2201 (objfile::lookup_global_symbol_language): Update.
2202 * quick-symbol.h (struct quick_symbol_functions): Convert function
2203 pointers to methods. Add virtual destructor.
2204 (quick_symbol_functions_up): New typedef.
2205 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2206 (dwarf2_debug_names_functions): Don't declare.
2207 (make_psymbol_functions): Declare.
2208 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2209 (psymbol_functions::find_pc_sect_compunit_symtab)
2210 (psymbol_functions::lookup_symbol)
2211 (psymbol_functions::lookup_global_symbol_language)
2212 (psymbol_functions::find_last_source_symtab)
2213 (psymbol_functions::forget_cached_source_info)
2214 (psymbol_functions::print_stats, psymbol_functions::dump)
2215 (psymbol_functions::expand_symtabs_for_function)
2216 (psymbol_functions::expand_all_symtabs)
2217 (psymbol_functions::expand_symtabs_with_fullname)
2218 (psymbol_functions::map_symbol_filenames)
2219 (psymbol_functions::map_matching_symbols)
2220 (psymbol_functions::expand_symtabs_matching)
2221 (psymbol_functions::has_symbols)
2222 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2223 (psym_functions): Remove.
2224 (make_psymbol_functions): New function.
2225 * objfiles.h (struct objfile) <qf>: Change type.
2226 * elfread.c (elf_symfile_read): Update.
2227 * dwarf2/read.c (struct dwarf2_base_index_functions)
2228 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2229 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2230 (dwarf2_base_index_functions::find_last_source_symtab)
2231 (dwarf2_base_index_functions::forget_cached_source_info)
2232 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2233 (dwarf2_gdb_index::lookup_symbol)
2234 (dwarf2_base_index_functions::print_stats)
2235 (dwarf2_gdb_index::dump)
2236 (dwarf2_gdb_index::expand_symtabs_for_function)
2237 (dwarf2_base_index_functions::expand_all_symtabs)
2238 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2240 (dwarf2_gdb_index::map_matching_symbols): New method.
2241 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2242 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2243 (dwarf2_base_index_functions::map_symbol_filenames)
2244 (dwarf2_base_index_functions::has_symbols): Rename.
2245 (dwarf2_gdb_index_functions): Remove.
2246 (dwarf2_debug_names_index::lookup_symbol)
2247 (dwarf2_debug_names_index::dump)
2248 (dwarf2_debug_names_index::expand_symtabs_for_function)
2249 (dwarf2_debug_names_index::map_matching_symbols)
2250 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2251 (dwarf2_debug_names_functions): Remove.
2252 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2255 2021-03-20 Tom Tromey <tom@tromey.com>
2257 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2259 * xcoffread.c (xcoff_sym_fns): Update.
2260 * symfile.h (struct sym_fns) <qf>: Remove.
2261 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2262 * symfile-debug.c (objfile::has_partial_symbols)
2263 (objfile::find_last_source_symtab)
2264 (objfile::forget_cached_source_info)
2265 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2266 (objfile::print_stats, objfile::dump)
2267 (objfile::expand_symtabs_for_function)
2268 (objfile::expand_all_symtabs)
2269 (objfile::expand_symtabs_with_fullname)
2270 (objfile::map_matching_symbols)
2271 (objfile::expand_symtabs_matching)
2272 (objfile::find_pc_sect_compunit_symtab)
2273 (objfile::map_symbol_filenames)
2274 (objfile::find_compunit_symtab_by_address)
2275 (objfile::lookup_global_symbol_language, debug_sym_fns)
2276 (install_symfile_debug_logging): Update.
2277 * objfiles.h (struct objfile) <qf>: New member.
2278 * mipsread.c (ecoff_sym_fns): Update.
2279 * machoread.c (macho_sym_fns): Update.
2280 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2282 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2283 * dbxread.c (aout_sym_fns): Update.
2284 * coffread.c (coff_sym_fns): Update.
2286 2021-03-20 Tom Tromey <tom@tromey.com>
2288 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2289 (expand_symtabs_file_matcher_ftype)
2290 (expand_symtabs_symbol_matcher_ftype)
2291 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2292 Move to quick-symbol.h.
2293 * quick-symbol.h: New file.
2295 2021-03-20 Tom Tromey <tom@tromey.com>
2297 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2298 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2299 (basic_lookup_transparent_type_quick)
2300 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2301 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2303 * symmisc.c (print_objfile_statistics, dump_objfile)
2304 (maintenance_expand_symtabs): Update.
2305 * symfile.c (symbol_file_add_with_addrs)
2306 (expand_symtabs_matching, map_symbol_filenames): Update.
2307 * symfile-debug.c (objfile::has_partial_symbols)
2308 (objfile::find_last_source_symtab)
2309 (objfile::forget_cached_source_info)
2310 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2311 (objfile::print_stats, objfile::dump)
2312 (objfile::expand_symtabs_for_function)
2313 (objfile::expand_all_symtabs)
2314 (objfile::expand_symtabs_with_fullname)
2315 (objfile::map_matching_symbols)
2316 (objfile::expand_symtabs_matching)
2317 (objfile::find_pc_sect_compunit_symtab)
2318 (objfile::map_symbol_filenames)
2319 (objfile::find_compunit_symtab_by_address)
2320 (objfile::lookup_global_symbol_language): New methods.
2321 (debug_sym_quick_functions): Remove.
2322 (debug_sym_fns, install_symfile_debug_logging): Update.
2323 * source.c (forget_cached_source_info_for_objfile)
2324 (select_source_symtab): Update.
2325 * objfiles.h (struct objfile): Add methods corresponding to
2326 quick_symbol_functions.
2327 * objfiles.c (objfile::has_partial_symbols): Move to
2329 * linespec.c (iterate_over_all_matching_symtabs): Update.
2330 * cp-support.c (add_symbol_overload_list_qualified): Update.
2331 * ada-lang.c (add_nonlocal_symbols): Update.
2333 2021-03-20 Tom Tromey <tom@tromey.com>
2335 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2336 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2338 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2339 * psymtab.c (psym_has_symbols): Return bool.
2340 * objfiles.c (objfile::has_partial_symbols): Return bool.
2341 * dwarf2/read.c (dw2_has_symbols): Return bool.
2343 2021-03-20 Tom Tromey <tom@tromey.com>
2345 * symfile.c (read_symbols): Update.
2346 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2347 (objfile_has_partial_symbols): Don't declare.
2348 * objfiles.c (objfile::has_partial_symbols): Rename from
2349 objfile_has_partial_symbols.
2350 (objfile_has_symbols, have_partial_symbols): Update.
2351 * elfread.c (elf_symfile_read): Update.
2352 * dwarf2/read.c (dwarf2_has_info): Update.
2353 * coffread.c (coff_symfile_read): Update.
2355 2021-03-20 Tom Tromey <tom@tromey.com>
2357 * coffread.c: Include dwarf2/public.h.
2358 * dwarf2/frame.c: Include dwarf2/public.h.
2359 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2360 * dwarf2/public.h: New file.
2361 * dwarf2/read.c: Include dwarf2/public.h.
2362 * elfread.c: Include dwarf2/public.h.
2363 * machoread.c: Include dwarf2/public.h.
2364 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2365 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2366 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2367 * xcoffread.c: Include dwarf2/public.h.
2369 2021-03-20 Tom Tromey <tom@tromey.com>
2371 * symfile.h (enum dwarf2_section_enum)
2372 (dwarf2_get_section_info): Move to dwarf2/read.h.
2373 * dwarf2/read.h (enum dwarf2_section_enum)
2374 (dwarf2_get_section_info): Move from symfile.h.
2376 2021-03-19 Pedro Alves <pedro@palves.net>
2378 * thread.c (any_thread_of_inferior): Check if there's a selected
2379 thread before calling inferior_thread().
2381 2021-03-18 Tom Tromey <tromey@adacore.com>
2383 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2385 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2386 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2388 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2390 * python/py-param.c (get_set_value): Update header comment.
2392 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2394 * infrun.c (check_multi_target_resumption): Remove argument to
2395 all_non_exited_inferiors.
2397 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2399 * windows-nat.c (windows_init_thread_list): Add message to
2402 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2404 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2405 well as PyLong_Check for Python 2.
2407 2021-03-15 Tom Tromey <tromey@adacore.com>
2410 * rust-exp.y (maker_map): Use gdb::hash_enum.
2411 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2413 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2415 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2418 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2420 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2421 parameter, adjust caller.
2423 2021-03-15 Tom Tromey <tromey@adacore.com>
2425 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2427 2021-03-15 Tom Tromey <tromey@adacore.com>
2429 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2430 ada_ensure_varsize_limit.
2432 2021-03-15 Tom Tromey <tromey@adacore.com>
2434 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2436 * ada-exp.y (maybe_overload): New function.
2437 (ada_wrap_overload): New function.
2438 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2439 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2440 (or_else_exp, xor_exp, primary): Update.
2442 2021-03-15 Tom Tromey <tromey@adacore.com>
2445 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2446 call for tagged type.
2448 2021-03-15 Tom Tromey <tromey@adacore.com>
2450 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2453 2021-03-15 Tom Tromey <tromey@adacore.com>
2455 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2457 (ada_assign_operation::evaluate): Update.
2458 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2461 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2463 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2465 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2467 * python/python.c (gdbpy_source_objfile_script): Use
2468 make_scoped_restore to restore gdbpy_current_objfile.
2469 (gdbpy_execute_objfile_script): Likewise.
2471 2021-03-14 Tom Tromey <tom@tromey.com>
2473 * dwarf2/read.c (read_attribute_value): Use cu_header
2476 2021-03-14 Tom Tromey <tom@tromey.com>
2478 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2479 (peek_die_abbrev): Use reader.abfd.
2481 2021-03-14 Tom Tromey <tom@tromey.com>
2483 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2486 2021-03-13 Tom Tromey <tom@tromey.com>
2488 * dwarf2/read.c (struct partial_die_info): Update.
2489 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2490 (load_partial_dies, partial_die_info::partial_die_info): Update.
2491 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2493 2021-03-13 Tom Tromey <tom@tromey.com>
2495 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2497 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2500 * cp-support.c: Use scoped_segv_handler_restore.
2501 * event-top.c (thread_local_segv_handler): Made static.
2502 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2504 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2506 * event-top.h (class scoped_segv_handler_restore): New class.
2507 (thread_local_segv_handler): Removed.
2509 2021-03-10 Tom Tromey <tromey@adacore.com>
2511 * parser-defs.h (parser_state): Change completion to bool.
2512 <parse_completion>: Likewise.
2513 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2514 (ada_resolve_variable, ada_resolve_function): Update.
2515 * ada-lang.c (ada_find_operator_symbol): Change
2516 parse_completion to bool.
2517 (ada_resolve_funcall, ada_resolve_variable)
2518 (ada_resolve_function): Likewise.
2520 2021-03-09 Tom Tromey <tromey@adacore.com>
2522 * eval.c (operation::evaluate_funcall): Use function formal
2523 parameter types when evaluating.
2525 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2527 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2528 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2529 and owner to m_owner.
2531 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2533 * f-exp.h (eval_op_f_loc): Declare.
2534 (expr::fortran_loc_operation): New typedef.
2535 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2537 (f77_keywords): Add LOC keyword.
2538 * f-lang.c (eval_op_f_loc): New function.
2539 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2541 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2543 * f-exp.h (eval_op_f_array_shape): Declare.
2544 (fortran_array_shape_operation): New type.
2545 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2547 (f77_keywords): Add "shape" keyword.
2548 * f-lang.c (fortran_array_shape): New function.
2549 (eval_op_f_array_shape): New function.
2550 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2552 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2554 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2556 (expr::fortran_array_size_1arg): New type.
2557 (expr::fortran_array_size_2arg): Likewise.
2558 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2559 UNOP_OR_BINOP_INTRINSIC.
2560 (f77_keywords): Add "size" keyword.
2561 * f-lang.c (fortran_array_size): New function.
2562 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2563 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2565 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2567 * f-exp.h (eval_op_f_rank): Declare.
2568 (expr::fortran_rank_operation): New typedef.
2569 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2571 (f77_keywords): Add "rank" keyword.
2572 * f-lang.c (eval_op_f_rank): New function.
2573 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2575 2021-03-08 Tom Tromey <tom@tromey.com>
2577 * printcmd.c (set_command): Remove null check.
2578 * value.c (init_if_undefined_command): Remove null check.
2580 2021-03-08 Tom Tromey <tom@tromey.com>
2582 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2584 * p-exp.y (variable): Update.
2585 * go-exp.y (variable): Update.
2586 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2587 Remove overload for objfile.
2588 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2590 (check_objfile): Likewise.
2591 (dump_for_expression): Likewise. Remove overload for objfile.
2592 (class var_msym_value_operation): Use bound_minimal_symbol.
2593 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2595 (var_msym_value_operation::evaluate_for_address)
2596 (var_msym_value_operation::evaluate_for_sizeof)
2597 (var_msym_value_operation::evaluate_for_cast): Update.
2598 * d-exp.y (PrimaryExpression): Update.
2599 * c-exp.y (variable): Update.
2600 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2601 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2603 * ada-exp.y (write_var_or_type): Update.
2605 2021-03-08 Tom Tromey <tom@tromey.com>
2607 * parser-defs.h (exp_uses_objfile): Return bool.
2608 * parse.c (exp_uses_objfile): Return bool.
2610 2021-03-08 Tom Tromey <tom@tromey.com>
2612 * value.h (eval_skip_value): Don't declare.
2613 * opencl-lang.c (eval_opencl_assign): Update.
2614 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2615 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2616 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2617 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2618 * expop.h (typeof_operation::evaluate)
2619 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2620 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2621 (cxx_cast_operation::evaluate): Update.
2622 * eval.c (eval_skip_value): Remove.
2623 (eval_op_scope, eval_op_var_entry_value)
2624 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2625 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2626 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2627 (eval_op_binary, eval_op_subscript, eval_op_equal)
2628 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2629 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2630 (eval_op_complement, eval_op_lognot, eval_op_ind)
2631 (eval_op_memval, eval_op_preinc, eval_op_predec)
2632 (eval_op_postinc, eval_op_postdec, eval_op_type)
2633 (eval_binop_assign_modify, eval_op_objc_msgcall)
2634 (eval_multi_subscript, logical_and_operation::evaluate)
2635 (logical_or_operation::evaluate, array_operation::evaluate)
2636 (operation::evaluate_for_cast)
2637 (var_msym_value_operation::evaluate_for_cast)
2638 (var_value_operation::evaluate_for_cast): Update.
2639 * c-lang.c (c_string_operation::evaluate): Update.
2640 * c-exp.h (objc_nsstring_operation::evaluate)
2641 (objc_selector_operation::evaluate): Update.
2642 * ada-lang.c (ada_assign_operation::evaluate)
2643 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2644 (ada_atr_size): Update.
2646 2021-03-08 Tom Tromey <tom@tromey.com>
2648 * eval.c: Merge "namespace" scopes.
2650 2021-03-08 Tom Tromey <tom@tromey.com>
2652 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2654 * parse.c (expr_builder::expr_builder, expr_builder::release):
2657 2021-03-08 Tom Tromey <tom@tromey.com>
2659 * parse.c (expression::expression, expression::~expression):
2661 * expression.h (struct expression): Inline constructor. Remove
2664 2021-03-08 Tom Tromey <tom@tromey.com>
2666 * std-operator.def (BINOP_END): Remove.
2667 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2668 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2669 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2670 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2671 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2674 2021-03-08 Tom Tromey <tom@tromey.com>
2676 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2678 2021-03-08 Tom Tromey <tom@tromey.com>
2680 * std-operator.def (OP_EXTENDED0): Remove.
2682 2021-03-08 Tom Tromey <tom@tromey.com>
2684 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2685 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2688 2021-03-08 Tom Tromey <tom@tromey.com>
2690 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2691 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2693 2021-03-08 Tom Tromey <tom@tromey.com>
2695 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2696 * ada-lang.c (ada_binop_minmax): Update.
2697 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2698 Use BINOP_MIN and BINOP_MAX.
2700 2021-03-08 Tom Tromey <tom@tromey.com>
2702 * value.h (evaluate_subexp_with_coercion): Don't declare.
2703 * parse.c (exp_descriptor_standard): Remove.
2704 (expr_builder::expr_builder, expr_builder::release): Update.
2705 (expression::expression): Remove size_t parameter.
2706 (expression::~expression): Simplify.
2707 (expression::resize): Remove.
2708 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2709 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2710 (write_exp_elt_longcst, write_exp_elt_floatcst)
2711 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2712 (write_exp_string_vector, write_exp_bitstring): Remove.
2713 * p-lang.h (class pascal_language) <opcode_print_table,
2714 op_print_tab>: Remove.
2715 * p-lang.c (pascal_language::op_print_tab): Remove.
2716 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2718 * objc-lang.c (objc_op_print_tab): Remove.
2719 (class objc_language) <opcode_print_table>: Remove.
2720 * m2-lang.h (class m2_language) <opcode_print_table,
2721 op_print_tab>: Remove.
2722 * m2-lang.c (m2_language::op_print_tab): Remove.
2723 * language.h (struct language_defn) <post_parser, expression_ops,
2724 opcode_print_table>: Remove.
2725 * language.c (language_defn::expression_ops)
2726 (auto_or_unknown_language::opcode_print_table): Remove.
2727 * go-lang.h (class go_language) <opcode_print_table,
2728 op_print_tab>: Remove.
2729 * go-lang.c (go_language::op_print_tab): Remove.
2730 * f-lang.h (class f_language) <opcode_print_table>: Remove
2731 <op_print_tab>: Remove.
2732 * f-lang.c (f_language::op_print_tab): Remove.
2733 * expression.h (union exp_element): Remove.
2734 (struct expression): Remove size_t parameter from constructor.
2736 <first_opcode>: Update.
2737 <nelts, elts>: Remove.
2738 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2739 (evaluate_subexp_standard, print_expression, op_string)
2740 (dump_raw_expression): Don't declare.
2741 * expprint.c (print_expression, print_subexp)
2742 (print_subexp_funcall, print_subexp_standard, op_string)
2743 (dump_raw_expression, dump_subexp, dump_subexp_body)
2744 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2745 (dump_prefix_expression): Update.
2746 * eval.c (evaluate_subexp): Remove.
2747 (evaluate_expression, evaluate_type): Update.
2748 (evaluate_subexpression_type): Remove.
2749 (fetch_subexp_value): Remove "pc" parameter. Update.
2750 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2751 (evaluate_subexp_standard, evaluate_subexp_for_address)
2752 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2753 (evaluate_subexp_for_cast): Remove.
2754 (parse_and_eval_type): Update.
2755 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2756 * d-lang.c (d_op_print_tab): Remove.
2757 (class d_language) <opcode_print_table>: Remove.
2758 * c-lang.h (c_op_print_tab): Don't declare.
2759 * c-lang.c (c_op_print_tab): Remove.
2760 (class c_language, class cplus_language, class asm_language, class
2761 minimal_language) <opcode_print_table>: Remove.
2762 * breakpoint.c (update_watchpoint, watchpoint_check)
2763 (watchpoint_exp_is_const, watch_command_1): Update.
2764 * ax-gdb.h (union exp_element): Don't declare.
2765 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2766 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2767 (gen_expr_binop_rest): Remove.
2768 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2769 * ada-lang.c (ada_op_print_tab): Remove.
2770 (class ada_language) <post_parser, opcode_print_table>: Remove.
2772 2021-03-08 Tom Tromey <tom@tromey.com>
2774 * go-lang.c (go_language::expression_ops): Don't declare.
2775 * go-lang.h (class go_language) <expression_ops>: Remove.
2776 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2778 (class opencl_language) <expression_ops>: Remove.
2779 * d-lang.c (class d_language) <expression_ops>: Remove.
2780 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2781 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2782 (class c_language, class cplus_language, class asm_language)
2783 (class minimal_language) <expression_ops>: Remove.
2785 2021-03-08 Tom Tromey <tom@tromey.com>
2787 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2788 (evaluate_subexp_type, assign_aggregate)
2789 (aggregate_assign_positional, aggregate_assign_from_choices)
2790 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2791 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2792 (ada_operator_check, ada_forward_operator_length)
2793 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2795 (post_parser): Update.
2796 (class ada_language) <expresssion_ops>: Remove.
2798 2021-03-08 Tom Tromey <tom@tromey.com>
2800 * m2-lang.h (class m2_language) <expresssion_ops,
2801 exp_descriptor_modula2>: Remove.
2802 * m2-lang.c (evaluate_subexp_modula2)
2803 (m2_language::exp_descriptor_modula2): Remove.
2805 2021-03-08 Tom Tromey <tom@tromey.com>
2807 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2808 <exp_descriptor_tab>: Remove.
2809 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2810 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2811 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2812 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2815 2021-03-08 Tom Tromey <tom@tromey.com>
2817 * rust-lang.h (class rust_language) <expression_ops,
2818 exp_descriptor_tab>: Remove.
2819 * rust-lang.c (rust_evaluate_funcall): Remove.
2820 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2822 (rust_evaluate_subexp): Remove.
2823 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2824 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2825 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2827 2021-03-08 Tom Tromey <tom@tromey.com>
2829 * ada-exp.y: Create operations.
2830 (empty_stoken): Remove.
2831 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2832 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2833 (components): New global.
2834 (push_component, choice_component, pop_component, pop_components):
2836 (associations): New global
2837 (push_association, pop_association, pop_associations): New
2839 (ada_parse): Update.
2840 (write_var_from_sym, write_int): Create operations.
2841 (write_exp_op_with_string): Remove.
2842 (write_object_renaming, write_selectors, write_ambiguous_var)
2843 (write_var_or_type, write_name_assoc): Create operations.
2844 * ada-lang.h (ada_index_type): Declare.
2845 * ada-lang.c (ada_index_type): No longer static.
2847 2021-03-08 Tom Tromey <tom@tromey.com>
2849 * f-exp.y: Create operations.
2850 (f_language::parser): Update.
2852 2021-03-08 Tom Tromey <tom@tromey.com>
2854 * m2-exp.y: Create operations.
2855 (m2_language::parser): Update.
2857 2021-03-08 Tom Tromey <tom@tromey.com>
2859 * p-exp.y: Create operations.
2860 (pascal_language::parser): Update.
2862 2021-03-08 Tom Tromey <tom@tromey.com>
2864 * d-exp.y: Create operations.
2867 2021-03-08 Tom Tromey <tom@tromey.com>
2869 * go-exp.y: Create operations.
2870 (go_language::parser): Update.
2872 2021-03-08 Tom Tromey <tom@tromey.com>
2874 * objc-lang.c (end_msglist): Create operations.
2875 * c-exp.y: Change parser to create operations.
2876 (write_destructor_name): Remove.
2879 2021-03-08 Tom Tromey <tom@tromey.com>
2881 * rust-exp.y: Create operations.
2882 (rust_parser::convert_params_to_expression): Change return type.
2883 (binop_maker_ftype): New typedef.
2884 (maker_map): New global.
2885 (rust_parser::convert_ast_to_expression): Change return type.
2886 (rust_language::parser): Update.
2887 (_initialize_rust_exp): Initialize maker_map.
2889 2021-03-08 Tom Tromey <tom@tromey.com>
2891 * stap-probe.c (binop_maker_ftype): New typedef.
2892 (stap_maker_map): New global.
2893 (stap_make_binop): New function.
2894 (stap_parse_register_operand): Return operation_up.
2895 (stap_parse_single_operand, stap_parse_argument_conditionally)
2896 (stap_parse_argument_1): Likewise.
2897 (stap_parse_argument): Create operations.
2898 (stap_probe::parse_arguments): Update.
2899 (_initialize_stap_probe): Initialize stap_maker_map.
2900 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2902 * i386-tdep.h (i386_stap_parse_special_token): Change return
2904 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2905 (i386_stap_parse_special_token_three_arg_disp)
2906 (i386_stap_parse_special_token): Change return type.
2907 * gdbarch.sh (stap_parse_special_token): Change return type.
2908 * gdbarch.c: Rebuild.
2909 * gdbarch.h: Rebuild.
2910 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2912 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2915 2021-03-08 Tom Tromey <tom@tromey.com>
2917 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2918 * gdbarch.h: Rebuild.
2919 * gdbarch.c: Rebuild.
2920 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2921 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2923 (amd64_dtrace_parse_probe_argument): Update.
2925 2021-03-08 Tom Tromey <tom@tromey.com>
2927 * parser-defs.h (struct parser_state) <push, push_new,
2928 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2929 wrap2>: New methods.
2930 <m_operations>: New member.
2931 * parse.c (parser_state::push_c_string)
2932 (parser_state::push_symbol, parser_state::push_dollar): New
2935 2021-03-08 Tom Tromey <tom@tromey.com>
2937 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2939 (struct parser_state) <mark_struct_expression>: New method.
2940 * parse.c (parser_state::mark_struct_expression): Update assert.
2941 (parser_state::mark_struct_expression): New method.
2942 (parser_state::mark_completion_tag): Update assert.
2943 (parse_expression_for_completion): Handle expout_last_op.
2945 2021-03-08 Tom Tromey <tom@tromey.com>
2947 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2949 * value.h (fetch_subexp_value): Add "op" parameter.
2950 * value.c (init_if_undefined_command): Update.
2951 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2952 * stap-probe.c (stap_probe::compile_to_ax): Update.
2953 * printcmd.c (set_command): Update.
2954 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2956 * parser-defs.h (struct expr_builder) <set_operation>: New
2958 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2959 * expression.h (struct expression) <first_opcode>: Update.
2961 * expprint.c (dump_raw_expression, dump_prefix_expression):
2963 * expop.h (class var_value_operation) <get_symbol>: New method.
2964 (class register_operation) <get_name>: New method.
2965 (class equal_operation): No longer a typedef, now a subclass.
2966 (class unop_memval_operation) <get_type>: New method.
2967 (class assign_operation) <get_lhs>: New method.
2968 (class unop_cast_operation) <get_type>: New method.
2969 * eval.c (evaluate_expression, evaluate_type)
2970 (evaluate_subexpression_type): Update.
2971 (fetch_subexp_value): Add "op" parameter.
2972 (parse_and_eval_type): Update.
2973 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2974 * breakpoint.c (update_watchpoint, watchpoint_check)
2975 (watchpoint_exp_is_const, watch_command_1): Update.
2976 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2979 2021-03-08 Tom Tromey <tom@tromey.com>
2981 * ada-lang.c (ada_value_binop): Do not use op_string.
2983 2021-03-08 Tom Tromey <tom@tromey.com>
2985 * expprint.c (dump_for_expression): New overload.
2986 * expop.h (check_objfile, dump_for_expression): Declare new
2988 * ada-lang.c (check_objfile): New overload.
2989 (assign_component, ada_aggregate_component::uses_objfile)
2990 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2991 (ada_aggregate_component::assign_aggregate)
2992 (ada_positional_component::uses_objfile)
2993 (ada_positional_component::dump, ada_positional_component::assign)
2994 (ada_discrete_range_association::uses_objfile)
2995 (ada_discrete_range_association::dump)
2996 (ada_discrete_range_association::assign)
2997 (ada_name_association::uses_objfile, ada_name_association::dump)
2998 (ada_name_association::assign)
2999 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3000 (ada_choices_component::assign)
3001 (ada_others_component::uses_objfile, ada_others_component::dump)
3002 (ada_others_component::assign, ada_assign_operation::evaluate):
3004 * ada-exp.h (ada_string_operation) <get_name>: New method.
3005 (class ada_assign_operation): New.
3006 (class ada_component): New.
3007 (ada_component_up): New typedef.
3008 (class ada_aggregate_operation, class ada_aggregate_component)
3009 (class ada_positional_component, class ada_others_component)
3010 (class ada_association): New.
3011 (ada_association_up): New typedef.
3012 (class ada_choices_component)
3013 (class ada_discrete_range_association)
3014 (class ada_name_association): New.
3016 2021-03-08 Tom Tromey <tom@tromey.com>
3018 * ada-lang.c (ada_var_value_operation::resolve)
3019 (ada_funcall_operation::resolve)
3020 (ada_ternop_slice_operation::resolve): New methods.
3021 * ada-exp.h (struct ada_resolvable): New.
3022 (class ada_var_value_operation): Derive from ada_resolvable.
3023 <get_block, resolve>: New methods.
3024 (class ada_funcall_operation): Derive from ada_resolvable.
3025 <resolve>: New method.
3026 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3027 <resolve>: New method.
3029 2021-03-08 Tom Tromey <tom@tromey.com>
3031 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3032 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3034 (class ada_funcall_operation): New.
3036 2021-03-08 Tom Tromey <tom@tromey.com>
3038 * ada-lang.c (ada_structop_operation::evaluate): New method.
3039 * ada-exp.h (class ada_structop_operation): New.
3041 2021-03-08 Tom Tromey <tom@tromey.com>
3043 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3044 * ada-exp.h (class ada_unop_ind_operation): New.
3046 2021-03-08 Tom Tromey <tom@tromey.com>
3048 * ada-lang.c (ada_binop_exp): No longer static.
3049 * ada-exp.h (ada_binop_exp_operation): New typedef.
3051 2021-03-08 Tom Tromey <tom@tromey.com>
3053 * ada-lang.c (ada_val_atr): No longer static.
3054 (ada_atr_val_operation::evaluate): New method.
3055 * ada-exp.h (class ada_atr_val_operation): New.
3057 2021-03-08 Tom Tromey <tom@tromey.com>
3059 * ada-lang.c (ada_pos_atr): No longer static.
3060 * ada-exp.h (ada_pos_operation): New typedef.
3062 2021-03-08 Tom Tromey <tom@tromey.com>
3064 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3066 (ada_evaluate_subexp): Use it.
3068 2021-03-08 Tom Tromey <tom@tromey.com>
3070 * ada-lang.c (ada_binop_minmax): No longer static.
3071 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3074 2021-03-08 Tom Tromey <tom@tromey.com>
3076 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3078 * ada-exp.h (class ada_var_msym_value_operation): New.
3080 2021-03-08 Tom Tromey <tom@tromey.com>
3082 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3083 (ada_var_value_operation::evaluate): New methods.
3084 * ada-exp.h (class ada_var_value_operation): New.
3086 2021-03-08 Tom Tromey <tom@tromey.com>
3088 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3089 * ada-exp.h (class ada_unop_atr_operation): New.
3091 2021-03-08 Tom Tromey <tom@tromey.com>
3093 * ada-lang.c (ada_binop_in_bounds): No longer static.
3094 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3096 2021-03-08 Tom Tromey <tom@tromey.com>
3098 * ada-lang.c (ada_ternop_slice): No longer static.
3099 * ada-exp.h (class ada_ternop_slice_operation): New.
3101 2021-03-08 Tom Tromey <tom@tromey.com>
3103 * ada-exp.h (ada_bitwise_operation): New template class.
3104 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3105 (ada_bitwise_xor_operation): New typedefs.
3107 2021-03-08 Tom Tromey <tom@tromey.com>
3109 * ada-lang.c (ada_equal_binop): No longer static.
3110 * ada-exp.h (class ada_binop_equal_operation): New.
3112 2021-03-08 Tom Tromey <tom@tromey.com>
3114 * ada-lang.c (ada_mult_binop): No longer static.
3115 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3116 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3118 2021-03-08 Tom Tromey <tom@tromey.com>
3120 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3121 * ada-exp.h (class ada_binop_addsub_operation): New.
3123 2021-03-08 Tom Tromey <tom@tromey.com>
3125 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3126 (ada_resolve_variable): Declare.
3127 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3128 (ada_resolve_variable): New functions.
3129 (resolve_subexp): Update.
3131 2021-03-08 Tom Tromey <tom@tromey.com>
3133 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3135 * c-exp.h (class opencl_ternop_cond_operation): New.
3137 2021-03-08 Tom Tromey <tom@tromey.com>
3139 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3141 * c-exp.h (class opencl_logical_binop_operation): New.
3143 2021-03-08 Tom Tromey <tom@tromey.com>
3145 * opencl-lang.c (opencl_structop_operation::evaluate): New
3147 * c-exp.h (class opencl_structop_operation): New.
3149 2021-03-08 Tom Tromey <tom@tromey.com>
3151 * opencl-lang.c (opencl_logical_not): No longer static. Change
3153 (evaluate_subexp_opencl): Update.
3154 * c-exp.h (opencl_notequal_operation): New typedef.
3156 2021-03-08 Tom Tromey <tom@tromey.com>
3158 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3159 static. Change parameters.
3160 (eval_opencl_assign): No longer static. Add "op" parameter.
3161 (evaluate_subexp_opencl): Update.
3162 * c-exp.h (opencl_binop_operation): New template class.
3163 (opencl_assign_operation, opencl_equal_operation)
3164 (opencl_notequal_operation, opencl_less_operation)
3165 (opencl_gtr_operation, opencl_geq_operation)
3166 (opencl_leq_operation): New typedefs.
3168 2021-03-08 Tom Tromey <tom@tromey.com>
3170 * opencl-lang.c (opencl_value_cast): No longer static.
3171 * c-exp.h (opencl_cast_type_operation): New typedef.
3173 2021-03-08 Tom Tromey <tom@tromey.com>
3175 * f-exp.h (eval_op_f_allocated): Declare.
3176 (fortran_allocated_operation): New typedef.
3177 * f-lang.c (eval_op_f_allocated): No longer static.
3179 2021-03-08 Tom Tromey <tom@tromey.com>
3181 * f-lang.c (eval_op_f_associated): New functions.
3182 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3185 2021-03-08 Tom Tromey <tom@tromey.com>
3187 * f-lang.c (fortran_bound_1arg::evaluate)
3188 (fortran_bound_2arg::evaluate): New methods.
3189 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3192 2021-03-08 Tom Tromey <tom@tromey.com>
3194 * expop.h (class unop_addr_operation) <get_expression>: New
3196 * f-lang.c (fortran_undetermined::value_subarray)
3197 (fortran_undetermined::evaluate): New methods.
3198 (fortran_prepare_argument): New overload.
3199 * f-exp.h (class fortran_range_operation)
3200 (class fortran_undetermined): New classes.
3202 2021-03-08 Tom Tromey <tom@tromey.com>
3204 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3205 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3208 2021-03-08 Tom Tromey <tom@tromey.com>
3210 * expression.h (class operation) <evaluate_funcall>: New methods.
3211 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3212 (class var_value_operation) <evaluate_funcall>: New method.
3213 (class structop_base_operation) <evaluate_funcall>: New method.
3214 (class var_msym_value_operation) <evaluate_funcall>: New method.
3215 (class structop_member_base): New class.
3216 (class structop_member_operation): Derive from
3217 structop_member_base.
3218 (class structop_mptr_operation): Derive from
3219 structop_member_base.
3220 (class funcall_operation): New class.
3221 * eval.c (operation::evaluate_funcall)
3222 (var_value_operation::evaluate_funcall)
3223 (scope_operation::evaluate_funcall)
3224 (structop_member_base::evaluate_funcall)
3225 (structop_base_operation::evaluate_funcall): New methods.
3227 2021-03-08 Tom Tromey <tom@tromey.com>
3229 * expop.h (class array_operation): New.
3230 * eval.c (array_operation::evaluate_struct_tuple)
3231 (array_operation::evaluate): New methods.
3233 2021-03-08 Tom Tromey <tom@tromey.com>
3235 * expop.h (class adl_func_operation): New.
3236 * eval.c (adl_func_operation::evaluate): New method.
3238 2021-03-08 Tom Tromey <tom@tromey.com>
3240 * ada-lang.c (ada_unop_in_range): No longer static.
3241 * ada-exp.h (class ada_unop_range_operation): New.
3243 2021-03-08 Tom Tromey <tom@tromey.com>
3245 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3247 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3248 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3250 2021-03-08 Tom Tromey <tom@tromey.com>
3252 * expop.h (class logical_and_operation)
3253 (class logical_or_operation): New.
3254 * eval.c (logical_and_operation::evaluate)
3255 (logical_or_operation::evaluate): New methods.
3256 * ax-gdb.c (logical_and_operation::do_generate_ax)
3257 (logical_or_operation::do_generate_ax): New methods.
3259 2021-03-08 Tom Tromey <tom@tromey.com>
3261 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3263 * m2-exp.h: New file.
3265 2021-03-08 Tom Tromey <tom@tromey.com>
3267 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3268 * rust-exp.h (class rust_aggregate_operation): New.
3270 2021-03-08 Tom Tromey <tom@tromey.com>
3272 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3274 * rust-exp.h (class rust_struct_anon): New.
3275 (class rust_structop): New.
3277 2021-03-08 Tom Tromey <tom@tromey.com>
3279 * rust-lang.c (rust_range): No longer static.
3280 * rust-exp.h (class rust_range_operation): New.
3282 2021-03-08 Tom Tromey <tom@tromey.com>
3284 * rust-lang.c (rust_subscript): No longer static.
3285 * rust-exp.h (class rust_subscript_operation): New.
3287 2021-03-08 Tom Tromey <tom@tromey.com>
3289 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3291 (rust_evaluate_subexp): Update.
3292 * rust-exp.h (class rust_unop_ind_operation): New.
3294 2021-03-08 Tom Tromey <tom@tromey.com>
3296 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3297 longer static. Add "opcode" parameter.
3298 (rust_evaluate_subexp): Update.
3299 * rust-exp.h: New file.
3301 2021-03-08 Tom Tromey <tom@tromey.com>
3303 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3304 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3305 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3306 (evaluate_subexp_f): Update.
3307 * f-exp.h: New file.
3309 2021-03-08 Tom Tromey <tom@tromey.com>
3311 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3312 * ada-exp.h (class ada_ternop_range_operation): New.
3314 2021-03-08 Tom Tromey <tom@tromey.com>
3316 * ada-lang.c (ada_qual_operation::evaluate): New method.
3317 * ada-exp.h (class ada_qual_operation): New.
3319 2021-03-08 Tom Tromey <tom@tromey.com>
3321 * ada-lang.c (ada_string_operation::evaluate): New method.
3322 * ada-exp.h (class ada_string_operation): New.
3324 2021-03-08 Tom Tromey <tom@tromey.com>
3326 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3327 * ada-exp.h: New file.
3329 2021-03-08 Tom Tromey <tom@tromey.com>
3331 * expop.h (class multi_subscript_operation): New.
3332 * eval.c (multi_subscript_operation::evaluate): New method.
3334 2021-03-08 Tom Tromey <tom@tromey.com>
3336 * eval.c (objc_msgcall_operation::evaluate): New method.
3337 * c-exp.h (class objc_msgcall_operation): New.
3339 2021-03-08 Tom Tromey <tom@tromey.com>
3341 * expop.h (class var_value_operation): New.
3342 * eval.c (var_value_operation::evaluate)
3343 (var_value_operation::evaluate_for_address)
3344 (var_value_operation::evaluate_with_coercion)
3345 (var_value_operation::evaluate_for_sizeof)
3346 (var_value_operation::evaluate_for_cast): New methods.
3347 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3349 2021-03-08 Tom Tromey <tom@tromey.com>
3351 * expop.h (cxx_cast_ftype): New typedef.
3352 (cxx_cast_operation): New template.
3353 (dynamic_cast_operation, reinterpret_cast_operation): New
3356 2021-03-08 Tom Tromey <tom@tromey.com>
3358 * expop.h (class unop_cast_type_operation): New.
3359 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3362 2021-03-08 Tom Tromey <tom@tromey.com>
3364 * expop.h (class unop_cast_operation): New.
3365 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3367 2021-03-08 Tom Tromey <tom@tromey.com>
3369 * expop.h (class assign_modify_operation): New.
3370 * eval.c (eval_binop_assign_modify): No longer static.
3371 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3373 2021-03-08 Tom Tromey <tom@tromey.com>
3375 * expop.h (class assign_operation): New.
3376 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3378 2021-03-08 Tom Tromey <tom@tromey.com>
3380 * expop.h (class type_instance_operation): New.
3381 * eval.c (type_instance_operation::evaluate): New method.
3383 2021-03-08 Tom Tromey <tom@tromey.com>
3385 * expop.h (class op_this_operation): New.
3386 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3388 2021-03-08 Tom Tromey <tom@tromey.com>
3390 * expop.h (class unop_memval_operation)
3391 (class unop_memval_type_operation): New.
3392 * eval.c (eval_op_memval): No longer static.
3393 (unop_memval_operation::evaluate_for_address)
3394 (unop_memval_type_operation::evaluate_for_address)
3395 (unop_memval_operation::evaluate_for_sizeof)
3396 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3397 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3398 (unop_memval_type_operation::do_generate_ax): New methods.
3400 2021-03-08 Tom Tromey <tom@tromey.com>
3402 * expop.h (class unop_alignof_operation): New.
3403 * eval.c (eval_op_alignof): No longer static.
3405 2021-03-08 Tom Tromey <tom@tromey.com>
3407 * expop.h (class unop_sizeof_operation): New.
3408 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3410 2021-03-08 Tom Tromey <tom@tromey.com>
3412 * expop.h (class unop_addr_operation): New.
3413 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3415 2021-03-08 Tom Tromey <tom@tromey.com>
3417 * expop.h (class typeid_operation): New.
3419 2021-03-08 Tom Tromey <tom@tromey.com>
3421 * expop.h (class decltype_operation): New.
3423 2021-03-08 Tom Tromey <tom@tromey.com>
3425 * expop.h (class typeof_operation): New.
3427 2021-03-08 Tom Tromey <tom@tromey.com>
3429 * expop.h (class type_operation): New.
3430 * eval.c (eval_op_type): No longer static.
3432 2021-03-08 Tom Tromey <tom@tromey.com>
3434 * expop.h (class unop_ind_base_operation)
3435 (class unop_ind_operation): New.
3436 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3437 (unop_ind_base_operation::evaluate_for_address)
3438 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3439 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3441 2021-03-08 Tom Tromey <tom@tromey.com>
3443 * expop.h (unop_incr_operation): New template.
3444 (preinc_operation, predec_operation, postinc_operation)
3445 (postdec_operation): New typedefs.
3446 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3447 (eval_op_postdec): No longer static.
3449 2021-03-08 Tom Tromey <tom@tromey.com>
3451 * expop.h (unary_ftype): New typedef.
3452 (unop_operation, usual_ax_binop_operation): New templates.
3453 (unary_plus_operation, unary_neg_operation)
3454 (unary_complement_operation, unary_logical_not_operation): New
3456 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3457 (eval_op_lognot): No longer static.
3458 * ax-gdb.c (gen_expr_unop): New function.
3460 2021-03-08 Tom Tromey <tom@tromey.com>
3462 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3464 2021-03-08 Tom Tromey <tom@tromey.com>
3466 * expop.h (class repeat_operation): New.
3467 * eval.c (eval_op_repeat): No longer static. Remove "op"
3469 (evaluate_subexp_standard): Update.
3470 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3472 2021-03-08 Tom Tromey <tom@tromey.com>
3474 * expop.h (class comparison_operation): New.
3475 (equal_operation, notequal_operation, less_operation)
3476 (gtr_operation, geq_operation, leq_operation): New typedefs.
3477 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3478 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3480 2021-03-08 Tom Tromey <tom@tromey.com>
3482 * expop.h (class subscript_operation): New.
3483 * eval.c (eval_op_subscript): No longer static.
3485 2021-03-08 Tom Tromey <tom@tromey.com>
3487 * expop.h (class binop_operation, class usual_ax_binop_operation):
3489 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3490 (div_operation, rem_operation, lsh_operation, rsh_operation)
3491 (bitwise_and_operation, bitwise_ior_operation)
3492 (bitwise_xor_operation): New typedefs.
3493 * eval.c (eval_op_binary): No longer static.
3495 2021-03-08 Tom Tromey <tom@tromey.com>
3497 * expop.h (class sub_operation): New.
3498 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3499 (evaluate_subexp_standard): Update.
3501 2021-03-08 Tom Tromey <tom@tromey.com>
3503 * expop.h (class add_operation): New.
3504 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3505 (evaluate_subexp_standard): Update.
3507 2021-03-08 Tom Tromey <tom@tromey.com>
3509 * expop.h (class concat_operation): New.
3510 * eval.c (eval_op_concat): No longer static. Remove "op"
3512 (evaluate_subexp_standard): Update.
3514 2021-03-08 Tom Tromey <tom@tromey.com>
3516 * expop.h (class structop_member_operation)
3517 (class structop_mptr_operation): New.
3518 * eval.c (eval_op_member): No longer static.
3520 2021-03-08 Tom Tromey <tom@tromey.com>
3522 * expop.h (class structop_ptr_operation): New.
3523 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3526 2021-03-08 Tom Tromey <tom@tromey.com>
3528 * expop.h (class structop_base_operation)
3529 (class structop_operation): New.
3530 * eval.c (eval_op_structop_struct): No longer static.
3532 2021-03-08 Tom Tromey <tom@tromey.com>
3534 * expop.h (class complex_operation): New.
3536 2021-03-08 Tom Tromey <tom@tromey.com>
3538 * eval.c (eval_op_objc_selector): No longer static.
3539 * c-exp.h (class objc_selector_operation): New.
3541 2021-03-08 Tom Tromey <tom@tromey.com>
3543 * eval.c: Include c-exp.h.
3544 * c-exp.h (class objc_nsstring_operation): New.
3546 2021-03-08 Tom Tromey <tom@tromey.com>
3548 * c-lang.c (c_string_operation::evaluate): New method.
3549 * c-exp.h: New file.
3551 2021-03-08 Tom Tromey <tom@tromey.com>
3553 * expop.h (class ternop_cond_operation): New.
3554 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3556 2021-03-08 Tom Tromey <tom@tromey.com>
3558 * expop.h (class ternop_slice_operation): New.
3559 * eval.c (eval_op_ternop): No longer static.
3561 2021-03-08 Tom Tromey <tom@tromey.com>
3563 * expop.h (class string_operation): New.
3564 * eval.c (eval_op_string): No longer static.
3566 2021-03-08 Tom Tromey <tom@tromey.com>
3568 * expop.h (class internalvar_operation): New.
3569 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3571 2021-03-08 Tom Tromey <tom@tromey.com>
3573 * expop.h (class bool_operation): New.
3575 2021-03-08 Tom Tromey <tom@tromey.com>
3577 * expop.h (class register_operation): New.
3578 * eval.c (eval_op_register): No longer static.
3579 * ax-gdb.c (register_operation::do_generate_ax): New method.
3581 2021-03-08 Tom Tromey <tom@tromey.com>
3583 * expop.h (class last_operation): New.
3585 2021-03-08 Tom Tromey <tom@tromey.com>
3587 * expop.h (class func_static_var_operation): New.
3588 * eval.c (eval_op_func_static_var): No longer static.
3590 2021-03-08 Tom Tromey <tom@tromey.com>
3592 * expop.h (class var_entry_value_operation): New.
3593 * eval.c (eval_op_var_entry_value): No longer static.
3595 2021-03-08 Tom Tromey <tom@tromey.com>
3597 * expression.h (class operation) <set_outermost>: New method.
3598 * expop.h (class var_msym_value_operation): New.
3599 * eval.c (eval_op_var_msym_value): No longer static.
3600 (var_msym_value_operation::evaluate_for_address)
3601 (var_msym_value_operation::evaluate_for_sizeof)
3602 (var_msym_value_operation::evaluate_for_cast): New methods.
3603 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3606 2021-03-08 Tom Tromey <tom@tromey.com>
3608 * expop.h (class long_const_operation): New.
3609 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3611 2021-03-08 Tom Tromey <tom@tromey.com>
3613 * expop.h (class scope_operation): New.
3614 * eval.c (eval_op_scope): No longer static.
3615 (scope_operation::evaluate_for_address): New method.
3616 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3618 2021-03-08 Tom Tromey <tom@tromey.com>
3620 * expprint.c (float_const_operation::dump): New method.
3621 * expop.h (float_data): New typedef.
3622 (class float_const_operation): New.
3624 2021-03-08 Tom Tromey <tom@tromey.com>
3626 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3627 * ax-gdb.c (gen_expr_binop): New function.
3628 (gen_expr_structop): Likewise.
3630 2021-03-08 Tom Tromey <tom@tromey.com>
3632 * expprint.c (expr::dump_for_expression): New functions.
3633 * expop.h (dump_for_expression): New overloads.
3634 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3637 2021-03-08 Tom Tromey <tom@tromey.com>
3639 * expression.h (expr::operation): New class.
3640 (expr::make_operation): New function.
3641 (expr::operation_up): New typedef.
3642 * expop.h: New file.
3643 * eval.c (operation::evaluate_for_cast)
3644 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3646 * ax-gdb.c (operation::generate_ax): New method.
3648 2021-03-08 Tom Tromey <tom@tromey.com>
3650 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3651 (gen_expr_binop_rest): New overload.
3653 2021-03-08 Tom Tromey <tom@tromey.com>
3655 * eval.c (eval_multi_subscript): New function.
3656 (evaluate_subexp_standard): Use it.
3658 2021-03-08 Tom Tromey <tom@tromey.com>
3660 * ada-lang.c (ada_binop_exp): New function.
3661 (ada_evaluate_subexp): Use it.
3663 2021-03-08 Tom Tromey <tom@tromey.com>
3665 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3667 (ada_evaluate_subexp): Use it.
3669 2021-03-08 Tom Tromey <tom@tromey.com>
3671 * ada-lang.c (ada_binop_minmax): New function.
3672 (ada_evaluate_subexp): Use it.
3674 2021-03-08 Tom Tromey <tom@tromey.com>
3676 * ada-lang.c (ada_unop_atr): New function.
3677 (ada_evaluate_subexp): Use it.
3679 2021-03-08 Tom Tromey <tom@tromey.com>
3681 * ada-lang.c (ada_binop_in_bounds): New function.
3682 (ada_evaluate_subexp): Use it.
3684 2021-03-08 Tom Tromey <tom@tromey.com>
3686 * ada-lang.c (ada_ternop_slice): New function.
3687 (ada_evaluate_subexp): Use it.
3689 2021-03-08 Tom Tromey <tom@tromey.com>
3691 * ada-lang.c (ada_equal_binop): New function.
3692 (ada_evaluate_subexp): Use it.
3694 2021-03-08 Tom Tromey <tom@tromey.com>
3696 * ada-lang.c (ada_mult_binop): New function.
3697 (ada_evaluate_subexp): Use it.
3699 2021-03-08 Tom Tromey <tom@tromey.com>
3701 * ada-lang.c (ada_abs): New function.
3702 (ada_evaluate_subexp): Use it.
3704 2021-03-08 Tom Tromey <tom@tromey.com>
3706 * ada-lang.c (ada_atr_size): New function.
3707 (ada_evaluate_subexp): Use it.
3709 2021-03-08 Tom Tromey <tom@tromey.com>
3711 * ada-lang.c (ada_atr_tag): New function.
3712 (ada_evaluate_subexp): Use it.
3714 2021-03-08 Tom Tromey <tom@tromey.com>
3716 * ada-lang.c (ada_unop_in_range): New function.
3717 (ada_evaluate_subexp): Use it.
3719 2021-03-08 Tom Tromey <tom@tromey.com>
3721 * ada-lang.c (ada_unop_neg): New function.
3722 (ada_evaluate_subexp): Use it.
3724 2021-03-08 Tom Tromey <tom@tromey.com>
3726 * ada-lang.c (eval_ternop_in_range): New function.
3727 (ada_evaluate_subexp): Use it.
3729 2021-03-08 Tom Tromey <tom@tromey.com>
3731 * opencl-lang.c (eval_opencl_assign): New function.
3732 (evaluate_subexp_opencl): Use it.
3734 2021-03-08 Tom Tromey <tom@tromey.com>
3736 * eval.c (eval_op_objc_msgcall): New function.
3737 (evaluate_subexp_standard): Use it.
3739 2021-03-08 Tom Tromey <tom@tromey.com>
3741 * eval.c (eval_binop_assign_modify): New function.
3742 (evaluate_subexp_standard): Use it.
3744 2021-03-08 Tom Tromey <tom@tromey.com>
3746 * m2-lang.c (eval_op_m2_subscript): New function.
3747 (evaluate_subexp_modula2): Use it.
3749 2021-03-08 Tom Tromey <tom@tromey.com>
3751 * m2-lang.c (eval_op_m2_high): New function.
3752 (evaluate_subexp_modula2): Use it.
3754 2021-03-08 Tom Tromey <tom@tromey.com>
3756 * eval.c (evaluate_subexp_for_address_base): New function.
3757 (evaluate_subexp_for_address): Use it.
3758 (evaluate_subexp_for_sizeof_base): New function.
3759 (evaluate_subexp_for_sizeof): Use it.
3761 2021-03-08 Tom Tromey <tom@tromey.com>
3763 * rust-lang.c (eval_op_rust_structop): New function.
3764 (rust_evaluate_subexp): Use it.
3766 2021-03-08 Tom Tromey <tom@tromey.com>
3768 * rust-lang.c (eval_op_rust_struct_anon): New function.
3769 (rust_evaluate_subexp): Use it.
3771 2021-03-08 Tom Tromey <tom@tromey.com>
3773 * rust-lang.c (eval_op_rust_array): New function.
3774 (rust_evaluate_subexp): Use it.
3776 2021-03-08 Tom Tromey <tom@tromey.com>
3778 * rust-lang.c (eval_op_rust_complement): New function.
3779 (rust_evaluate_subexp): Use it.
3781 2021-03-08 Tom Tromey <tom@tromey.com>
3783 * rust-lang.c (eval_op_rust_ind): New function.
3784 (rust_evaluate_subexp): Use it.
3786 2021-03-08 Tom Tromey <tom@tromey.com>
3788 * rust-lang.c (rust_subscript): Change parameters.
3789 (rust_evaluate_subexp): Update.
3791 2021-03-08 Tom Tromey <tom@tromey.com>
3793 * rust-lang.c (rust_range): Change parameters.
3794 (rust_evaluate_subexp): Update.
3796 2021-03-08 Tom Tromey <tom@tromey.com>
3798 * f-lang.c (eval_op_f_allocated): New function.
3799 (evaluate_subexp_f): Use it.
3801 2021-03-08 Tom Tromey <tom@tromey.com>
3803 * f-lang.c (fortran_require_array): New function.
3804 (evaluate_subexp_f): Use it.
3806 2021-03-08 Tom Tromey <tom@tromey.com>
3808 * f-lang.c (eval_op_f_kind): New function.
3809 (evaluate_subexp_f): Use it.
3811 2021-03-08 Tom Tromey <tom@tromey.com>
3813 * f-lang.c (eval_op_f_cmplx): New function.
3814 (evaluate_subexp_f): Use it.
3816 2021-03-08 Tom Tromey <tom@tromey.com>
3818 * f-lang.c (eval_op_f_modulo): New function.
3819 (evaluate_subexp_f): Use it.
3821 2021-03-08 Tom Tromey <tom@tromey.com>
3823 * f-lang.c (eval_op_f_floor): New function.
3824 (evaluate_subexp_f): Use it.
3826 2021-03-08 Tom Tromey <tom@tromey.com>
3828 * f-lang.c (eval_op_f_ceil): New function.
3829 (evaluate_subexp_f): Use it.
3831 2021-03-08 Tom Tromey <tom@tromey.com>
3833 * f-lang.c (eval_op_f_mod): New function.
3834 (evaluate_subexp_f): Use it.
3836 2021-03-08 Tom Tromey <tom@tromey.com>
3838 * f-lang.c (eval_op_f_abs): New function.
3839 (evaluate_subexp_f): Use it.
3841 2021-03-08 Tom Tromey <tom@tromey.com>
3843 * eval.c (eval_op_type): New function.
3844 (evaluate_subexp_standard): Use it.
3846 2021-03-08 Tom Tromey <tom@tromey.com>
3848 * eval.c (eval_op_postdec): New function.
3849 (evaluate_subexp_standard): Use it.
3851 2021-03-08 Tom Tromey <tom@tromey.com>
3853 * eval.c (eval_op_postinc): New function.
3854 (evaluate_subexp_standard): Use it.
3856 2021-03-08 Tom Tromey <tom@tromey.com>
3858 * eval.c (eval_op_predec): New file.
3859 (evaluate_subexp_standard): Use it.
3861 2021-03-08 Tom Tromey <tom@tromey.com>
3863 * eval.c (eval_op_preinc): New function.
3864 (evaluate_subexp_standard): Use it.
3866 2021-03-08 Tom Tromey <tom@tromey.com>
3868 * eval.c (eval_op_memval): New function.
3869 (evaluate_subexp_standard): Use it.
3871 2021-03-08 Tom Tromey <tom@tromey.com>
3873 * eval.c (eval_op_alignof): New function.
3874 (evaluate_subexp_standard): Use it.
3876 2021-03-08 Tom Tromey <tom@tromey.com>
3878 * eval.c (eval_op_ind): New function.
3879 (evaluate_subexp_standard): Use it.
3881 2021-03-08 Tom Tromey <tom@tromey.com>
3883 * eval.c (eval_op_lognot): New function.
3884 (evaluate_subexp_standard): Use it.
3886 2021-03-08 Tom Tromey <tom@tromey.com>
3888 * eval.c (eval_op_complement): New function.
3889 (evaluate_subexp_standard): Use it.
3891 2021-03-08 Tom Tromey <tom@tromey.com>
3893 * eval.c (eval_op_neg): New function.
3894 (evaluate_subexp_standard): Use it.
3896 2021-03-08 Tom Tromey <tom@tromey.com>
3898 * eval.c (eval_op_plus): New function.
3899 (evaluate_subexp_standard): Use it.
3901 2021-03-08 Tom Tromey <tom@tromey.com>
3903 * eval.c (eval_op_repeat): New function.
3904 (evaluate_subexp_standard): Use it.
3906 2021-03-08 Tom Tromey <tom@tromey.com>
3908 * eval.c (eval_op_leq): New function.
3909 (evaluate_subexp_standard): Use it.
3911 2021-03-08 Tom Tromey <tom@tromey.com>
3913 * eval.c (eval_op_geq): New function.
3914 (evaluate_subexp_standard): Use it.
3916 2021-03-08 Tom Tromey <tom@tromey.com>
3918 * eval.c (eval_op_gtr): New function.
3919 (evaluate_subexp_standard): Use it.
3921 2021-03-08 Tom Tromey <tom@tromey.com>
3923 * eval.c (eval_op_less): New function.
3924 (evaluate_subexp_standard): Use it.
3926 2021-03-08 Tom Tromey <tom@tromey.com>
3928 * eval.c (eval_op_notequal): New function.
3929 (evaluate_subexp_standard): Use it.
3931 2021-03-08 Tom Tromey <tom@tromey.com>
3933 * eval.c (eval_op_equal): New function.
3934 (evaluate_subexp_standard): Use it.
3936 2021-03-08 Tom Tromey <tom@tromey.com>
3938 * eval.c (eval_op_subscript): New function.
3939 (evaluate_subexp_standard): Use it.
3941 2021-03-08 Tom Tromey <tom@tromey.com>
3943 * eval.c (eval_op_binary): New function.
3944 (evaluate_subexp_standard): Use it.
3946 2021-03-08 Tom Tromey <tom@tromey.com>
3948 * eval.c (eval_op_sub): New function.
3949 (evaluate_subexp_standard): Use it.
3951 2021-03-08 Tom Tromey <tom@tromey.com>
3953 * eval.c (eval_op_add): New function.
3954 (evaluate_subexp_standard): Use it.
3956 2021-03-08 Tom Tromey <tom@tromey.com>
3958 * eval.c (eval_op_member): New function.
3959 (evaluate_subexp_standard): Use it.
3961 2021-03-08 Tom Tromey <tom@tromey.com>
3963 * eval.c (eval_op_structop_ptr): New function.
3964 (evaluate_subexp_standard): Use it.
3966 2021-03-08 Tom Tromey <tom@tromey.com>
3968 * eval.c (eval_op_structop_struct): New function.
3969 (evaluate_subexp_standard): Use it.
3971 2021-03-08 Tom Tromey <tom@tromey.com>
3973 * eval.c (eval_op_ternop): New function.
3974 (evaluate_subexp_standard): Use it.
3976 2021-03-08 Tom Tromey <tom@tromey.com>
3978 * eval.c (eval_op_concat): New function.
3979 (evaluate_subexp_standard): Use it.
3981 2021-03-08 Tom Tromey <tom@tromey.com>
3983 * eval.c (eval_op_objc_selector): New function.
3984 (evaluate_subexp_standard): Use it.
3986 2021-03-08 Tom Tromey <tom@tromey.com>
3988 * eval.c (eval_op_string): New function.
3989 (evaluate_subexp_standard): Use it.
3991 2021-03-08 Tom Tromey <tom@tromey.com>
3993 * eval.c (eval_op_register): New function.
3994 (evaluate_subexp_standard): Use it.
3996 2021-03-08 Tom Tromey <tom@tromey.com>
3998 * eval.c (eval_op_func_static_var): New function.
3999 (evaluate_subexp_standard): Use it.
4001 2021-03-08 Tom Tromey <tom@tromey.com>
4003 * eval.c (eval_op_var_msym_value): New function.
4004 (evaluate_subexp_standard): Use it.
4006 2021-03-08 Tom Tromey <tom@tromey.com>
4008 * eval.c (eval_op_var_entry_value): New function.
4009 (evaluate_subexp_standard): Use it.
4011 2021-03-08 Tom Tromey <tom@tromey.com>
4013 * eval.c (eval_op_scope): New function.
4014 (evaluate_subexp_standard): Use it.
4016 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4019 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4021 2021-03-06 Tom Tromey <tom@tromey.com>
4023 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4024 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4025 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4026 (locate_dwz_sections, dwz_search_other_debugdirs)
4027 (dwarf2_get_dwz_file): Move to dwz.c.
4028 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4030 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4031 (dwarf2_get_dwz_file): Move from read.c.
4033 2021-03-06 Tom Tromey <tom@tromey.com>
4035 * debuginfod-support.h: Include scoped_fd.h.
4037 2021-03-06 Tom Tromey <tom@tromey.com>
4039 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4040 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4041 (get_abbrev_section_for_cu, read_attribute_value)
4042 (get_debug_line_section): Update.
4043 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4045 2021-03-06 Tom Tromey <tom@tromey.com>
4047 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4049 * dwarf2/read.c (section_is_p): Remove.
4050 (dwarf2_per_bfd::locate_sections)
4051 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4052 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4053 (dwarf2_locate_common_dwp_sections)
4054 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4057 2021-03-06 Tom Tromey <tom@tromey.com>
4059 * xcoffread.c: Include sect-names.h.
4060 * symfile.h (struct dwarf2_section_names, struct
4061 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4062 * dwarf2/sect-names.h: New file, from symfile.h.
4063 * dwarf2/read.c: Include sect-names.h.
4065 2021-03-06 Tom Tromey <tom@tromey.com>
4067 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4068 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4069 (abbrev_table::read): Update.
4070 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4071 (struct abbrev_info): Reformat.
4072 <attrs>: Now an array.
4073 (struct abbrev_table) <alloc_abbrev>: Remove.
4075 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4077 * ctfread.c (ctf_psymtab_add_enums): New function.
4078 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4080 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4082 * ctfread.c (read_func_kind_type): Set up function arguments.
4084 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4085 Andrew Burgess <andrew.burgess@embecosm.com>
4087 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4089 (riscv_csrset): New static global.
4090 (riscv_update_csrmap): New function.
4091 (riscv_iterate_over_regset_sections): Process CSRs.
4093 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4095 * riscv-tdep.c (riscv_feature_name_csr): Define.
4096 (riscv_feature_name_cpu): Define.
4097 (riscv_feature_name_fpu): Define.
4098 (riscv_feature_name_virtual): Define.
4099 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4100 (riscv_freg_feature): Use riscv_feature_name_fpu.
4101 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4102 (riscv_csr_feature): Use riscv_feature_name_csr.
4103 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4105 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4106 Craig Blackmore <craig.blackmore@embecosm.com>
4108 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4109 (ALLDEPFILES): Add riscv-none-tdep.c.
4110 * configure: Regenerate.
4111 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4113 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4114 * elf-none-tdep.c: New file.
4115 * elf-none-tdep.h: New file.
4116 * riscv-none-tdep.c: New file.
4118 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4119 Andrew Burgess <andrew.burgess@embecosm.com>
4121 * corelow.c: Add 'xml-tdesc.h' include.
4122 (core_target::read_description): Load the target description from
4123 the core file when possible.
4124 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4126 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4127 (gcore_elf_make_tdesc_note): New function.
4128 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4129 * linux-tdep.c (linux_make_corefile_notes): Add target description
4132 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4134 * Makefile.in (SFILES): Add gcore-elf.c.
4135 (HFILES_NO_SRCDIR): Add gcore-elf.h
4136 * configure: Regenerate.
4137 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4139 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4140 (struct fbsd_collect_regset_section_cb_data): Delete.
4141 (fbsd_collect_regset_section_cb): Delete.
4142 (fbsd_collect_thread_registers): Delete.
4143 (struct fbsd_corefile_thread_data): Delete.
4144 (fbsd_corefile_thread): Delete.
4145 (fbsd_make_corefile_notes): Call
4146 gcore_elf_build_thread_register_notes instead of the now deleted
4148 * gcore-elf.c: New file, the content was moved here from
4149 linux-tdep.c, functions were renamed and given minor cleanup.
4150 * gcore-elf.h: New file.
4151 * gcore.c (gcore_find_signalled_thread): Moved here from
4152 linux-tdep.c and given a new name. Minor cleanups.
4153 * gcore.h (gcore_find_signalled_thread): Declare.
4154 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4155 (struct linux_collect_regset_section_cb_data): Delete.
4156 (linux_collect_regset_section_cb): Delete.
4157 (linux_collect_thread_registers): Delete.
4158 (linux_corefile_thread): Call
4159 gcore_elf_build_thread_register_notes.
4160 (find_signalled_thread): Delete.
4161 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4163 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4166 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4167 process_stratum_target parameter,
4168 sparc_store_inferior_registers): update callers.
4169 * sparc-nat.c (sparc_fetch_inferior_registers,
4170 sparc_store_inferior_registers): Add process_stratum_target
4171 parameter. Switch current thread before calling
4172 sparc_supply_gregset / sparc_collect_rwindow.
4173 (sparc_store_inferior_registers): Likewise.
4174 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4175 (sparc32obsd_collect_uthread): Likewise.
4176 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4178 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4179 sparc64obsd_supply_uthread): Add assertion.
4181 2021-03-04 Tom Tromey <tromey@adacore.com>
4183 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4184 (aux_add_nonlocal_symbols): Update.
4185 (ada_add_block_symbols): Change "found_sym" to bool.
4187 2021-03-03 Tom Tromey <tromey@adacore.com>
4189 * ada-lang.c (ada_resolve_function): Update comment.
4190 (is_nonfunction, add_symbols_from_enclosing_procs)
4191 (remove_extra_symbols): Likewise.
4192 (struct match_data): Add constructor, initializers.
4193 (add_nonlocal_symbols): Remove memset.
4194 (aux_add_nonlocal_symbols): Update comment.
4195 (ada_add_block_renamings, add_nonlocal_symbols)
4196 (ada_add_all_symbols): Likewise.
4197 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4199 2021-03-02 Tom Tromey <tromey@adacore.com>
4201 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4202 (cast_to_gnat_encoded_fixed_point_type): Remove.
4203 (ada_value_cast, ada_evaluate_subexp): Update.
4204 (gnat_encoded_fixed_point_type_info)
4205 (ada_is_gnat_encoded_fixed_point_type)
4206 (gnat_encoded_fixed_point_delta)
4207 (gnat_encoded_fixed_point_scaling_factor): Remove.
4208 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4209 (gnat_encoded_fixed_point_delta)
4210 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4211 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4212 (ada_print_type): Update.
4213 * ada-valprint.c (ada_value_print_num): Update.
4214 * dwarf2/read.c (ada_get_gnat_encoded_number)
4215 (ada_get_gnat_encoded_ratio): New functions.
4216 (finish_fixed_point_type): Use them. Add parameters.
4217 (GNAT_FIXED_POINT_SUFFIX): New define.
4218 (gnat_encoded_fixed_point_type_info): New function.
4219 (read_base_type): Handle gnat encodings.
4221 2021-03-02 Tom Tromey <tromey@adacore.com>
4223 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4224 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4226 (GROW_VECT): Remove.
4227 (grow_vect): Remove.
4229 2021-03-02 Tom Tromey <tromey@adacore.com>
4231 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4232 * ada-lang.c (resolve_subexp): Update.
4233 (ada_resolve_function): Accept a vector.
4234 (is_nonfunction, add_defn_to_vec)
4235 (add_symbols_from_enclosing_procs): Likewise.
4236 (num_defns_collected, defns_collected): Remove.
4237 (remove_extra_symbols): Return a vector.
4238 (remove_irrelevant_renamings): Return void.
4239 (ada_add_local_symbols): Accept a vector.
4240 (struct match_data) <obstackp>: Remove.
4241 <resultp>: New member.
4242 (aux_add_nonlocal_symbols): Update.
4243 (ada_add_block_renamings, add_nonlocal_symbols)
4244 (ada_add_all_symbols): Accept a vector.
4245 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4247 (ada_lookup_symbol): Update.
4248 (ada_add_block_symbols): Accept a vector.
4249 (get_var_value, iterate_over_symbols): Update.
4250 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4253 2021-03-02 Tom Tromey <tromey@adacore.com>
4255 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4257 2021-03-02 Tom Tromey <tromey@adacore.com>
4259 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4262 (ada_pspace_data): Remove destructor.
4263 <sym_cache>: Now a unique_ptr.
4264 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4265 (ada_get_symbol_cache): Use 'new'.
4266 (ada_clear_symbol_cache): Rewrite.
4268 2021-03-02 Tom Tromey <tromey@adacore.com>
4270 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4273 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4276 * source.c (add_path): Skip empty dirnames.
4278 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4280 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4281 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4283 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4286 * target.c (target_mourn_inferior): Only compare pids in
4287 target_mourn_inferior.
4289 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4292 * remote.c (remote_target::start_remote): Ensure the single
4293 thread, automatically added for remote targets without the
4294 concept of threading, is initially in set to the "resumed"
4296 * remote.c (remote_target::add_current_inferior_and_thread):
4297 Add return value - return the main thread.
4299 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4301 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4302 (mi_tsv_created): Likewise.
4303 (mi_tsv_deleted): Likewise.
4305 2021-02-25 Tom de Vries <tdevries@suse.de>
4308 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4309 section_kind for &dwo_file->sections.info.
4311 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4314 * f-lang.c (fortran_argument_convert): Delete declaration.
4315 (fortran_prepare_argument): New function.
4316 (evaluate_subexp_f): Move logic to new function
4317 fortran_prepare_argument.
4319 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4321 * f-exp.y (f77_keywords): Add 'associated'.
4322 * f-lang.c (fortran_associated): New function.
4323 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4324 (operator_length_f): Likewise.
4325 (print_unop_or_binop_subexp_f): New function.
4326 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4327 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4328 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4329 (operator_check_f): Likewise.
4330 * std-operator.def: Add FORTRAN_ASSOCIATED.
4332 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4334 * f-exp.y (fortran_operators): Add ".xor.".
4336 2021-02-24 Tom de Vries <tdevries@suse.de>
4339 * dwarf2/attribute.c (attribute::form_is_signed): New function
4341 * dwarf2/attribute.h (attribute::as_signed): ... here.
4342 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4343 (attribute::form_is_signed): Declare.
4344 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4345 for DW_AT_decl_file.
4347 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4349 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4350 order for <sys/ptrace.h> and <asm/ptrace.h>.
4352 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4354 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4357 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4359 * exec.c (set_section_command): Move variable declarations into
4360 the function body, and use std::string instead of a fixed size
4363 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4365 * exec.c (exec_target::get_section_table): Delete member function.
4366 (section_table_read_available_memory): Use current_top_target, not
4367 just the exec_ops target.
4368 * target-delegates.c: Regenerate.
4369 * target.c (default_get_section_table): New function.
4370 * target.h (target_ops::get_section_table): Change default
4371 behaviour to call default_get_section_table.
4372 (default_get_section_table): Declare.
4374 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4376 * exec.c (exec_target::close): Call new clear_target_sections
4378 (program_space::add_target_sections): Update name of member
4380 (program_space::add_target_sections): Update name of member
4382 (program_space::remove_target_sections): Likewise.
4383 (exec_one_fork): Use new target_sections member function.
4384 (exec_target::get_section_table): Likewise.
4385 (exec_target::files_info): Likewise.
4386 (set_section_command): Likewise.
4387 (exec_set_section_address): Likewise.
4388 (exec_target::has_memory): Use new target_sections member
4390 * progspace.h (program_space::clear_target_sections): New member
4392 (program_space::target_sections): Rename member variable to
4393 m_target_sections, replace with a new member function.
4394 (program_space::m_target_sections): New member variable.
4395 * solib-dsbt.c (scan_dyntag): Use new member function.
4396 * solib-svr4.c (scan_dyntag): Likewise.
4398 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4400 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4402 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4403 (section_table_read_available_memory): Make local const.
4404 (exec_target::xfer_partial): Make local const.
4405 (print_section_info): Make parameter const.
4406 * gdb/exec.h (print_section_info): Likewise.
4407 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4409 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4411 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4413 * gdb/s390-tdep.c (s390_load): Likewise.
4414 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4415 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4416 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4418 (target_debug_print_const_target_section_table_p): ...this.
4419 * gdb/target-delegates.c: Regenerate.
4420 * gdb/target.c (target_get_section_table): Make return type const.
4421 (target_section_by_addr): Likewise. Also make some locals const.
4422 (memory_xfer_partial_1): Make some locals const.
4423 * gdb/target.h (struct target_ops) <get_section_table>: Make
4425 (target_section_by_addr): Likewise.
4426 (target_get_section_table): Likewise.
4428 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4430 * NEWS: Mention new 'maint info target-sections' command.
4431 * maint.c (maintenance_info_target_sections): New function.
4432 (_initialize_maint_cmds): Register new command.
4434 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4436 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4437 (riscv_features_from_bfd): ...this. Change parameter type to
4438 'bfd*', and update as required.
4439 (riscv_find_default_target_description): Update call to
4440 riscv_features_from_bfd. Select a default xlen based on
4442 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4444 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4446 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4447 dynamic types in UNOP_IND.
4449 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4452 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4454 (~dwarf2_queue_guard): Clear queue.
4455 (queue_comp_unit): Assert that queue is
4457 (process_queue): Adjust.
4458 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4460 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4463 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4464 to decide whether or not to enqueue it for expansion.
4465 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4466 after calling maybe_queue_comp_unit.
4468 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4470 * linux-nat.c (linux_nat_filter_event): Return void.
4472 2021-02-22 Tom Tromey <tromey@adacore.com>
4474 * solib-svr4.c (enable_break): Update.
4475 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4477 (target_bfd_reopen): Change parameter type.
4478 * bfd-target.h (target_bfd_reopen): Change parameter type.
4480 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4482 * thread.c (add_thread_silent): Add assert.
4483 (find_thread_ptid): Add assert.
4485 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4488 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4489 (target_unpush_up): Likewise.
4490 * procfs.c (procfs_target::attach): Push target early. Use
4491 target_unpush_up to unpush target in case of error.
4492 * target.h (struct target_unpusher): Move here.
4493 (target_unpush_up): Likewise.
4495 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4497 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4498 (which in turn includes <gnulib/config.h>) before include
4501 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4504 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4505 (decode_j_type_insn): Likewise.
4506 (decode_cj_type_insn): Likewise.
4507 (decode_b_type_insn): Likewise.
4510 2021-02-18 Tom Tromey <tom@tromey.com>
4512 * expression.h (struct expression) <evaluate>: Declare method.
4513 * eval.c (evaluate_subexp): Simplify.
4514 (expression::evaluate): New method.
4515 (evaluate_expression, evaluate_type): Use expression::evaluate.
4517 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4519 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4521 (ada_lookup_name_info): Likewise.
4523 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4525 * aclocal.m4: Regenerate.
4527 2021-02-12 Tom de Vries <tdevries@suse.de>
4530 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4531 (lin_thread_signals): New static var.
4532 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4534 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4535 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4537 * linux-thread-db.c (check_thread_signals): Use
4538 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4540 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4542 * f-exp.y (f77_keywords): Add allocated.
4543 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4544 (operator_length_f): Likewise.
4545 (print_subexp_f): Likewise.
4546 (dump_subexp_body_f): Likewise.
4547 (operator_check_f): Likewise.
4548 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4550 2021-02-11 Tom de Vries <tdevries@suse.de>
4553 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4554 Return true for DW_FORM_strx.
4556 2021-02-11 Tom Tromey <tromey@adacore.com>
4559 * parse.c (write_exp_symbol_reference): Write sym.block.
4561 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4563 * NEWS: Mention changes to 'maint info sections'.
4564 * maint.c (match_substring): Return a bool, fix whitespace issue.
4565 (struct single_bfd_flag_info): New struct.
4566 (bfd_flag_info): New static global.
4567 (match_bfd_flags): Return a bool, use bfd_flag_info.
4568 (print_bfd_flags): Use bfd_flag_info.
4569 (maint_print_section_info): Delete trailing whitespace.
4570 (struct maint_info_sections_opts): New struct.
4571 (maint_info_sections_option_defs): New static global.
4572 (maint_info_sections_completer): New function.
4573 (maintenance_info_sections): Use option parsing mechanism.
4574 (_initialize_maint_cmds): Update command help text for 'maint info
4575 sections' and register a command completer.
4577 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4579 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4580 functionality merged into...
4581 (maint_print_all_sections): ...this new function.
4582 (maintenance_info_sections): Make use of maint_print_all_sections,
4583 allow all objects to be printed even where there's no executable.
4585 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4587 * breakpoint.c (resolve_sal_pc): Make use of
4588 bound_minimal_symbol::obj_section.
4589 * maint.c (maintenance_translate_address): Likewise.
4590 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4591 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4593 * printcmd.c (info_address_command): Make use of
4594 bound_minimal_symbol::obj_section.
4596 2021-02-11 Alan Modra <amodra@gmail.com>
4598 * arm-symbian-tdep.c: Delete.
4599 * NEWS: Mention arm-symbian removal.
4600 * Makefile.in: Remove arm-symbian-tdep entries.
4601 * configure.tgt: Remove arm*-*-symbianelf*.
4602 * doc/gdb.texinfo: Remove mention of SymbianOS.
4603 * osabi.c (gdb_osabi_names): Remove "Symbian".
4604 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4605 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4606 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4608 * testsuite/gdb.base/dup-sect.exp: Likewise.
4609 * testsuite/gdb.base/long_long.exp: Likewise.
4610 * testsuite/gdb.base/solib-weak.exp: Likewise.
4611 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4612 * testsuite/gdb.python/py-section-script.exp: Likewise.
4613 * testsuite/lib/dwarf.exp: Likewise.
4614 * testsuite/lib/gdb.exp: Likewise.
4616 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4618 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4619 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4620 (one_or_two_args): New pattern.
4621 (f77_keywords): Add lbound and ubound.
4622 * f-lang.c (fortran_bounds_all_dims): New function.
4623 (fortran_bounds_for_dimension): New function.
4624 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4625 (operator_length_f): Likewise.
4626 (print_subexp_f): Likewise.
4627 (dump_subexp_body_f): Likewise.
4628 (operator_check_f): Likewise.
4629 * std-operator.def (FORTRAN_LBOUND): Define.
4630 (FORTRAN_UBOUND): Define.
4632 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4634 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4635 and set_section_index member functions where appropriate.
4636 * coffread.c (coff_symtab_read): Likewise.
4637 (process_coff_symbol): Likewise.
4638 * ctfread.c (set_symbol_address): Likewise.
4639 * dwarf2/read.c (add_partial_symbol): Likewise.
4640 (var_decode_location): Likewise.
4641 * language.c: Likewise.
4642 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4643 (compact_minimal_symbols): Likewise.
4644 (minimal_symbol_upper_bound): Likewise.
4645 * objfiles.c (relocate_one_symbol): Likewise.
4646 * psympriv.h (partial_symbol::obj_section): Likewise.
4647 (partial_symbol::address): Likewise.
4648 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4649 * stabsread.c (scan_file_globals): Likewise.
4650 * symmisc.c (dump_msymbols): Likewise.
4651 * symtab.c (general_symbol_info::obj_section): Likewise.
4652 (fixup_section): Likewise.
4653 (get_msymbol_address): Likewise.
4654 * symtab.h (general_symbol_info::section): Rename to...
4655 (general_symbol_info::m_section): ...this.
4656 (general_symbol_info::set_section_index): New member function.
4657 (general_symbol_info::section_index): Likewise.
4658 (SYMBOL_SECTION): Delete.
4659 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4660 set_section_index member functions where appropriate.
4661 (MSYMBOL_SECTION): Delete.
4662 (symbol::symbol): Update to initialize 'm_section'.
4663 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4664 (process_xcoff_symbol): Likewise.
4666 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4668 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4669 MSYMBOL_OBJ_SECTION.
4670 * findvar.c (language_defn::read_var_value): Likewise.
4671 * infcmd.c (jump_command): Likewise.
4672 * linespec.c (minsym_found): Likewise.
4673 * maint.c (maintenance_translate_address): Likewise.
4674 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4675 (minimal_symbol_upper_bound): Likewise.
4676 * parse.c (find_minsym_type_and_address): Likewise.
4677 (operator_check_standard): Likewise.
4678 * printcmd.c (info_address_command): Likewise.
4679 * symmisc.c (dump_msymbols): Likewise.
4680 (print_symbol): Likewise.
4681 * symtab.c (general_symbol_info::obj_section): Define new
4683 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4684 (find_pc_sect_compunit_symtab): Likewise.
4685 (find_function_start_sal): Likewise.
4686 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4687 MSYMBOL_OBJ_SECTION.
4688 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4690 (SYMBOL_OBJ_SECTION): Delete.
4691 (MSYMBOL_OBJ_SECTION): Delete.
4693 2021-02-09 Tom Tromey <tom@tromey.com>
4695 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4697 2021-02-09 Tom de Vries <tdevries@suse.de>
4700 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4701 construct an array type. Add assert to ensure that element_type is
4704 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4706 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4707 (gcore_collect_regset_section_cb): Delete.
4708 (gcore_collect_thread_registers): Delete.
4709 (gcore_build_thread_register_notes): Delete.
4710 (gcore_find_signalled_thread): Delete.
4711 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4712 'gdbarch' and 'thread_info' declarations.
4713 (gcore_build_thread_register_notes): Delete declaration.
4714 (gcore_find_signalled_thread): Likewise.
4715 * fbsd-tdep.c: Remove 'gcore.h' include.
4716 (struct fbsd_collect_regset_section_cb_data): New struct.
4717 (fbsd_collect_regset_section_cb): New function.
4718 (fbsd_collect_thread_registers): New function.
4719 (struct fbsd_corefile_thread_data): New struct.
4720 (fbsd_corefile_thread): New function.
4721 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4722 * linux-tdep.c: Remove 'gcore.h' include.
4723 (struct linux_collect_regset_section_cb_data): New struct.
4724 (linux_collect_regset_section_cb): New function.
4725 (linux_collect_thread_registers): New function.
4726 (linux_corefile_thread): Call Linux specific code.
4727 (find_signalled_thread): New function.
4728 (linux_make_corefile_notes): Call find_signalled_thread.
4730 2021-02-09 Tom Tromey <tromey@adacore.com>
4732 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4734 * value.c (value_contents_copy_raw): Now static.
4735 * value.h (value_contents_copy_raw): Don't declare.
4737 2021-02-09 Tom Tromey <tromey@adacore.com>
4739 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4742 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4745 * arc-linux-tdep.c (handle_atomic_sequence): New.
4746 (arc_linux_software_single_step): Call handle_atomic_sequence().
4748 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4750 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4752 (REQUIRE_WINDOW): Call is_valid member function.
4753 (REQUIRE_WINDOW_FOR_SETTER): New define.
4754 (gdbpy_tui_is_valid): Call is_valid member function.
4755 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4756 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4758 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4759 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4762 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4764 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4765 for the title is not nullptr.
4767 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4769 * tui-layout.c (saved_tui_windows): Delete.
4770 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4771 call new get_windows member function instead.
4772 (tui_get_window_by_name): Check in tui_windows.
4773 (tui_layout_window::apply): Don't add to tui_windows.
4774 * tui-layout.h (tui_layout_base::get_windows): New member function.
4775 (tui_layout_window::get_windows): Likewise.
4776 (tui_layout_split::get_windows): Likewise.
4778 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4780 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4781 of the window objects.
4783 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4785 * python/python.c (gdbpy_print_stack): Reformat an error message.
4787 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4789 * tui/tui-interp.c (tui_command_line_handler): New function.
4790 (tui_interp::resume): Register tui_command_line_handler as the
4792 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4794 (tui_getc_1): Delete handling of '\n' and '\r'.
4795 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4797 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4799 * tui/tui-regs.c (tui_data_window::display_registers_from):
4800 Mark invisible register sub windows.
4801 (tui_data_window::check_register_values): Ignore invisible
4802 register sub windows.
4804 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4806 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4807 n_spaces with a negative value.
4809 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4811 * tui/tui-regs.c (tui_data_window::display_registers_from):
4812 Add refresh_window call.
4814 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4816 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4818 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4820 * symmisc.c (std_in, std_out, std_err): Remove.
4821 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4823 2021-02-05 Tom de Vries <tdevries@suse.de>
4825 PR breakpoints/27330
4826 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4827 glibc object file has debug info.
4829 2021-02-05 Tom de Vries <tdevries@suse.de>
4832 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4834 2021-02-05 Tom de Vries <tdevries@suse.de>
4836 PR breakpoints/27313
4837 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4840 2021-02-05 Tom Tromey <tom@tromey.com>
4842 * compile/compile-c-support.c (get_compile_context)
4843 (c_get_compile_context, cplus_get_compile_context): Change return
4845 * language.c (language_defn::get_compile_instance): New method.
4846 * language.h (language_defn::get_compile_instance): Change return
4847 type. No longer inline.
4848 * c-lang.c (c_language::get_compile_instance): Change return type.
4849 (cplus_language::get_compile_instance): Change return type.
4850 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4852 * compile/compile.c (compile_to_object): Update.
4854 2021-02-05 Tom Tromey <tom@tromey.com>
4856 * parser-defs.h (write_exp_symbol_reference): Declare.
4857 * parse.c (write_exp_symbol_reference): New function.
4858 * p-exp.y (variable): Use write_exp_symbol_reference.
4859 * m2-exp.y (variable): Use write_exp_symbol_reference.
4860 * f-exp.y (variable): Use write_exp_symbol_reference.
4861 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4862 * c-exp.y (variable): Use write_exp_symbol_reference.
4864 2021-02-05 Tom de Vries <tdevries@suse.de>
4867 * valarith.c (complex_binop): Throw an error if complex type can't
4870 2021-02-05 Tom de Vries <tdevries@suse.de>
4873 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4876 2021-02-05 Tom de Vries <tdevries@suse.de>
4878 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4880 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4882 * configure.tgt (riscv*-*-*): Set gdb_sim.
4884 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4886 * target.c (target_is_non_stop_p): Return bool.
4887 * target.h (target_is_non_stop_p): Return bool.
4889 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4891 * record-full.c (record_full_async_inferior_event_handler):
4892 Don't clear async event handler.
4893 (record_full_base_target::wait): Clear async event handler at
4896 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4898 * record-btrace.c (record_btrace_handle_async_inferior_event):
4899 Don't clear async event handler.
4900 (record_btrace_target::wait): Clear async event handler at
4903 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4905 * remote.c (remote_target::wait): Clear async event handler at
4906 beginning, mark if needed at the end.
4907 (remote_async_inferior_event_handler): Don't set or clear async
4910 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4912 * async-event.h (async_event_handler_func): Add documentation.
4913 * async-event.c (check_async_event_handlers): Don't clear
4914 async_event_handler ready flag.
4915 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4917 * record-btrace.c (record_btrace_handle_async_inferior_event):
4919 * record-full.c (record_full_async_inferior_event_handler):
4921 * remote-notif.c (remote_async_get_pending_events_handler):
4923 * remote.c (remote_async_inferior_event_handler): Likewise.
4925 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4927 * infrun.c (handle_inferior_event): Move stop_soon variable to
4930 2021-02-03 Pedro Alves <pedro@palves.net>
4932 * infcmd.c (detach_command): Hold strong reference to target, and
4933 if all-stop on entry, restart threads on exit.
4934 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4935 (restart_stepped_thread): ... this new function. Also handle
4937 (restart_after_all_stop_detach): New function.
4938 * infrun.h (restart_after_all_stop_detach): Declare.
4940 2021-02-03 Pedro Alves <pedro@palves.net>
4942 * infrun.c (struct step_over_info): Initialize fields.
4943 (prepare_for_detach): Handle ongoing in-line step over.
4945 2021-02-03 Pedro Alves <pedro@palves.net>
4947 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4949 * remote.c (remote_target::remote_detach_1): ... and here ...
4950 * target.c (target_detach): ... instead of here.
4951 * target.h (target_ops::detach): Add comment.
4953 2021-02-03 Pedro Alves <pedro@palves.net>
4955 * infrun.c (struct wait_one_event): Move higher up.
4956 (prepare_for_detach): Abort in-progress displaced steps instead of
4957 letting them complete.
4958 (handle_one): If the inferior is detaching, don't add the thread
4959 back to the global step-over chain.
4960 (restart_threads): Don't restart threads if detaching.
4961 (handle_signal_stop): Remove inferior::detaching reference.
4963 2021-02-03 Pedro Alves <pedro@palves.net>
4965 * infrun.c (prepare_for_detach): Don't release scoped_restore
4968 2021-02-03 Pedro Alves <pedro@palves.net>
4970 * infrun.c (handle_one): New function, factored out from ...
4971 (stop_all_threads): ... here.
4973 2021-02-03 Pedro Alves <pedro@palves.net>
4975 * remote.c (remote_notif_stop_ack): Don't error out on
4976 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4977 (remote_target::discard_pending_stop_replies): Don't delete
4978 in-flight notification; instead, clear its contents.
4980 2021-02-03 Pedro Alves <pedro@palves.net>
4982 * remote.c (extended_remote_target::attach): Set target async in
4983 the target-non-stop path too.
4985 2021-02-03 Pedro Alves <pedro@palves.net>
4988 * infrun.c (handle_signal_stop): Move main context_switch call
4989 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4991 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4993 * NEWS (Changed commands): Add entry for the behavior change of
4994 the inferior command.
4995 * inferior.c (inferior_command): When no argument is given to the
4996 inferior command, display info about the currently selected
4999 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5001 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5003 (read_attribute_reprocess): Adjust.
5005 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5007 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5008 <gnu_ranges_base>: ... this...
5009 <rnglists_base>: ... and this.
5010 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5011 <gnu_ranges_base>: ... this...
5012 <rnglists_base>: ... and this.
5013 (read_cutu_die_from_dwo): Adjust
5014 (dwarf2_get_pc_bounds): Adjust
5015 (dwarf2_record_block_ranges): Adjust.
5016 (read_full_die_1): Adjust
5017 (partial_die_info::read): Adjust.
5018 (read_rnglist_index): Adjust.
5020 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5023 * dwarf2/read.c (read_loclists_rnglists_header): Add
5024 header_offset parameter and use it.
5025 (read_loclist_index): Read header of the current contribution,
5026 not the one at the beginning of the section.
5027 (read_rnglist_index): Likewise.
5029 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5032 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5033 requires_reprocessing flag.
5034 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5036 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5037 and DW_FORM_loclistx.
5038 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5039 instead of set_address for DW_FORM_loclistx and
5042 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5044 * dwarf2/read.c (read_loclist_index): Remove bound check for
5046 (read_rnglist_index): Likewise.
5048 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5050 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5053 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5055 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5057 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5059 * dwarf2/read.c (read_loclist_index): Change complaints into
5062 2021-02-02 Tom de Vries <tdevries@suse.de>
5065 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5068 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5070 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5071 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5072 here from linux-tdep.c and given a new name. Minor cleanups.
5073 (gcore_collect_regset_section_cb): Likewise.
5074 (gcore_collect_thread_registers): Likewise.
5075 (gcore_build_thread_register_notes): Likewise.
5076 (gcore_find_signalled_thread): Likewise.
5077 * gcore.h (gcore_build_thread_register_notes): Declare.
5078 (gcore_find_signalled_thread): Declare.
5079 * fbsd-tdep.c: Add 'gcore.h' include.
5080 (struct fbsd_collect_regset_section_cb_data): Delete.
5081 (fbsd_collect_regset_section_cb): Delete.
5082 (fbsd_collect_thread_registers): Delete.
5083 (struct fbsd_corefile_thread_data): Delete.
5084 (fbsd_corefile_thread): Delete.
5085 (fbsd_make_corefile_notes): Call
5086 gcore_build_thread_register_notes instead of the now deleted
5088 * linux-tdep.c: Add 'gcore.h' include.
5089 (struct linux_collect_regset_section_cb_data): Delete.
5090 (linux_collect_regset_section_cb): Delete.
5091 (linux_collect_thread_registers): Delete.
5092 (linux_corefile_thread): Call
5093 gcore_build_thread_register_notes.
5094 (find_signalled_thread): Delete.
5095 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5097 2021-01-29 Tom de Vries <tdevries@suse.de>
5099 PR breakpoints/26063
5100 * infrun.c (process_event_stop_test): Reset
5101 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5104 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5106 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5107 assert. Extend the header comment.
5109 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5111 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5112 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5113 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5114 (tui_locator_win_info_ptr): Delete declaration.
5115 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5116 (tui_disasm_window::set_contents): Fetch state from tui_location
5118 (tui_get_begin_asm_address): Likewise.
5119 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5121 (get_locator_window): Delete.
5122 (initialize_known_windows): Treat locator window just like all the
5124 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5125 (tui_source_window::set_contents): Fetch state from tui_location
5127 (tui_source_window::showing_source_p): Likewise.
5128 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5130 (tui_locator_win_info_ptr): Delete.
5131 (tui_locator_window::make_status_line): Fetch state from
5132 tui_location global.
5133 (tui_locator_window::rerender): Remove check of 'handle',
5134 reindent function body.
5135 (tui_locator_window::set_locator_fullname): Delete.
5136 (tui_locator_window::set_locator_info): Delete.
5137 (tui_update_locator_fullname): Delete.
5138 (tui_show_frame_info): Likewise.
5139 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5140 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5141 tui/tui-location.h and renamed to
5142 tui_location_tracker::set_location.
5143 (tui_locator_window::set_locator_fullname): Moved to
5144 tui/tui-location.h and renamed to
5145 tui_location_tracker::set_fullname.
5146 (tui_locator_window::full_name): Delete.
5147 (tui_locator_window::proc_name): Delete.
5148 (tui_locator_window::line_no): Delete.
5149 (tui_locator_window::addr): Delete.
5150 (tui_locator_window::gdbarch): Delete.
5151 (tui_update_locator_fullname): Delete declaration.
5152 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5154 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5155 (tui_display_main): Call function on tui_location directly.
5156 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5157 * tui/tui-location.c: New file.
5158 * tui/tui-location.h: New file.
5160 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5162 * gdbtypes.h (get_type_arch): Rename to...
5163 (struct type) <arch>: ... this, update all users.
5165 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5167 * gdbtypes.h (struct type) <arch>: Rename to...
5168 <arch_owner>: ... this, update all users.
5169 <objfile>: Rename to...
5170 <objfile_owner>: ... this, update all users.
5172 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5174 * gdbcmd.h (execute_command_to_string): Update comment.
5175 * top.c (execute_command_to_string): Update header comment.
5177 2021-01-28 Tom de Vries <tdevries@suse.de>
5179 PR breakpoints/27205
5180 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5181 (create_longjmp_master_breakpoint_names): New function, factored out
5183 (create_longjmp_master_breakpoint): ... here. Only try to install
5184 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5185 breakpoint in libc.so failed.
5187 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5190 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5191 unique_ptr is released when the wrapped pointer is kept for later
5194 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5196 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5197 BLR and BR instructions.
5198 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5199 (enum aarch64_masks): New.
5201 2021-01-26 Tom Tromey <tromey@adacore.com>
5203 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5204 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5205 (windows_init_thread_list, windows_nat::handle_load_dll)
5206 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5207 (windows_nat_target::resume)
5208 (windows_nat_target::get_windows_debug_event)
5209 (windows_nat_target::interrupt, windows_xfer_memory)
5210 (windows_nat_target::close): Update.
5211 * nat/windows-nat.c (DEBUG_EVENTS): Use
5212 debug_prefixed_printf_cond.
5213 (matching_pending_stop, fetch_pending_stop)
5214 (continue_last_debug_event): Update.
5216 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5218 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5219 elfcore_write_file_note.
5221 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5223 * arc-tdep.c (arc_add_reggroups): New function.
5224 (arc_gdbarch_init): Call arc_add_reggroups.
5226 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5228 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5230 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5231 Simon Marchi <simon.marchi@polymtl.ca>
5232 Tom de Vries <tdevries@suse.de>
5234 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5237 2021-01-25 Tom Tromey <tromey@adacore.com>
5239 * dwarf2/read.c (get_mpz): New function.
5240 (get_dwarf2_rational_constant): Use it.
5242 2021-01-25 Tom Tromey <tromey@adacore.com>
5244 * ada-lang.c (resolve_subexp): Handle array context.
5246 2021-01-23 Tom Tromey <tom@tromey.com>
5249 * compile/compile-loc2c.c (note_register): New function.
5250 (pushf_register_address, pushf_register): Use it.
5252 2021-01-23 Tom Tromey <tom@tromey.com>
5254 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5255 Change type of "registers_used".
5256 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5257 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5258 (locexpr_generate_c_location, loclist_generate_c_location): Change
5259 type of "registers_used".
5260 * compile/compile.h (compile_dwarf_expr_to_c)
5261 (compile_dwarf_bounds_to_c): Update.
5262 * compile/compile-loc2c.c (pushf_register_address)
5263 (pushf_register, do_compile_dwarf_expr_to_c)
5264 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5265 of "registers_used".
5266 * compile/compile-c.h (generate_c_for_variable_locations):
5268 * compile/compile-c-symbols.c (generate_vla_size)
5269 (generate_c_for_for_one_variable): Change type of
5271 (generate_c_for_variable_locations): Return std::vector.
5272 * compile/compile-c-support.c (generate_register_struct): Change
5273 type of "registers_used".
5276 2021-01-23 Tom Tromey <tom@tromey.com>
5278 * compile/compile-internal.h (class compile_instance)
5279 <set_arguments>: Change return type.
5280 * compile/compile.c (compile_to_object): Remove call to reset.
5281 (compile_instance::set_arguments): Change return type.
5283 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5285 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5286 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5288 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5290 * Makefile.in (SELFTESTS_SRCS): Add
5291 unittests/gdb_tilde_expand-selftests.c.
5292 * unittests/gdb_tilde_expand-selftests.c: New file.
5294 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5297 * NEWS: Mention new command.
5298 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5299 (version_style): Define.
5300 (cli_style_option::cli_style_option): Add intensity parameter, and
5302 (_initialize_cli_style): Register version style set/show commands.
5303 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5304 (version_style): Declare.
5305 * top.c (print_gdb_version): Use version_stype, and styled_string
5306 to print the GDB version string.
5308 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5310 * utils.c (emit_style_escape): Only emit an escape sequence if the
5311 requested style is different than the current applied style.
5312 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5313 current applied_style.
5314 (fputs_styled): Remove is_default check.
5315 (fputs_styled_unfiltered): Likewise.
5316 (vfprintf_styled_no_gdbfmt): Likewise.
5318 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5320 * remote.h (remote_debug_printf): New.
5321 (remote_debug_printf_nofunc): New.
5322 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5323 * remote.c: Use above macros throughout file.
5325 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5327 * remote.h (remote_debug): Change to bool.
5328 * remote.c (remote_debug): Change to bool.
5329 (_initialize_remote): Adjust.
5331 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5333 * target.h (remote_debug): Move to...
5334 * remote.h (remote_debug): ... here.
5335 * top.c (remote_debug): Move to...
5336 * remote.c (remote_debug): ... here.
5337 * remote-sim.c: Include remote.h.
5339 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5341 * cli/cli-cmds.c (show_remote_debug): Remove.
5342 (show_remote_timeout): Remove.
5343 (_initialize_cli_cmds): Don't register commands.
5344 * remote.c (show_remote_debug): Move here.
5345 (show_remote_timeout): Move here.
5346 (_initialize_remote): Register commands.
5348 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5350 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5351 type::objfile method instead.
5353 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5355 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5356 use the type::is_objfile_owned method.
5358 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5360 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5361 (TYPE_OWNER): Remove.
5362 (TYPE_OBJFILE): Adjust.
5363 (struct main_type) <flag_objfile_owned>: Rename to...
5364 <m_flag_objfile_owned>: ... this.
5365 <owner>: Rename to...
5366 <m_owner>: ... this.
5367 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5369 (TYPE_ALLOC): Adjust.
5370 * gdbtypes.c (alloc_type): Adjust.
5371 (alloc_type_arch): Adjust.
5372 (alloc_type_copy): Adjust.
5373 (get_type_arch): Adjust.
5374 (smash_type): Adjust.
5375 (lookup_array_range_type): Adjust.
5376 (recursive_dump_type): Adjust.
5377 (copy_type_recursive): Adjust.
5378 * compile/compile-c-types.c (convert_func): Adjust.
5379 (convert_type_basic): Adjust.
5380 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5383 (language_arch_info::type_and_symbol::alloc_type_symbol):
5386 2021-01-21 Luis Machado <luis.machado@linaro.org>
5388 * coffread.c (enter_linenos): Passing string to complaint.
5389 * valops.c (value_assign): Make array view.
5391 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5393 * auto-load.h (debug_auto_load): Move here.
5394 (auto_load_debug_printf): New.
5395 * auto-load.c: Use auto_load_debug_printf.
5396 (debug_auto_load): Move to header.
5397 * linux-thread-db.c (try_thread_db_load): Use
5398 auto_load_debug_printf.
5399 * main.c (captured_main_1): Likewise.
5401 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5403 * f-valprint.c (f77_array_offset_tbl): Remove.
5405 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5407 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5409 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5411 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5414 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5417 * python/py-breakpoint.c (bppy_get_location): Handle
5418 bp_hardware_breakpoint.
5419 (bppy_init): Likewise.
5420 (gdbpy_breakpoint_created): Likewise.
5422 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5424 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5426 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5428 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5429 (_initialize_gdb_bfd): Adjust.
5431 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5434 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5436 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5438 * dwarf2/read.c (follow_die_offset): Add logging.
5439 (dwarf2_per_objfile::age_comp_units): Add logging.
5441 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5443 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5444 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5445 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5446 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5447 * arm-tdep.c (struct frame_unwind): Make static.
5448 * auto-load.c (auto_load_safe_path_vec): Make static.
5449 * csky-tdep.c (csky_stub_unwind): Make static.
5450 * gdbarch.c (gdbarch_data_registry): Make static.
5451 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5452 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5453 * i386-tdep.c (i386_frame_setup_skip_insns,
5454 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5456 * infrun.c (observer_mode): Make static.
5457 * linux-nat.c (sigchld_action): Make static.
5458 * linux-thread-db.c (thread_db_list): Make static.
5459 * maint-test-options.c (maintenance_test_options_list):
5460 * mep-tdep.c (mep_csr_registers): Make static.
5461 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5462 (stats): Make static.
5463 * nat/linux-osdata.c (struct osdata_type): Make static.
5464 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5465 * progspace.c (last_program_space_num): Make static.
5466 * python/py-param.c (struct parm_constant): Remove struct type
5468 (parm_constants): Make static.
5469 * python/py-record-btrace.c (btpy_list_methods): Make static.
5470 * python/py-record.c (recpy_gap_type): Make static.
5471 * record.c (record_goto_cmdlist): Make static.
5472 * regcache.c (regcache_descr_handle): Make static.
5473 * registry.h (DEFINE_REGISTRY): Make definition static.
5474 * symmisc.c (std_in, std_out, std_err): Make static.
5475 * top.c (previous_saved_command_line): Make static.
5476 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5478 * unittests/command-def-selftests.c (nr_duplicates,
5479 nr_invalid_prefixcmd, lists): Make static.
5480 * unittests/observable-selftests.c (test_notification): Make
5482 * unittests/optional/assignment/1.cc (counter): Make static.
5483 * unittests/optional/assignment/2.cc (counter): Make static.
5484 * unittests/optional/assignment/3.cc (counter): Make static.
5485 * unittests/optional/assignment/4.cc (counter): Make static.
5486 * unittests/optional/assignment/5.cc (counter): Make static.
5487 * unittests/optional/assignment/6.cc (counter): Make static.
5489 2021-01-20 Joel Sherrill <joel@rtems.org>
5492 * remote.c (struct remote_thread_info) <resume_state>: Rename
5494 <get_resume_state>: ... this.
5495 (remote_target::resume): Adjust.
5496 (remote_target::commit_resume): Adjust.
5497 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5499 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5500 Tom Tromey <tom@tromey.com>
5502 * stap-probe.c (stap_parse_single_operand): Handle '!'
5504 (stap_parse_argument_conditionally): Likewise.
5505 Skip spaces after processing open-parenthesis sub-expression.
5506 (stap_parse_argument_1): Skip spaces after call to
5507 stap_parse_argument_conditionally.
5508 Handle case when right-side expression is a parenthesized
5510 Skip spaces after call to stap_parse_argument_1.
5512 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5514 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5516 2021-01-19 Luis Machado <luis.machado@linaro.org>
5518 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5519 memory and save data.
5520 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5521 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5522 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5523 (trad_frame_value_bytes_p): Remove.
5524 (trad_frame_reset_saved_regs): Adjust documentation.
5525 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5526 constructor and reset the state of the registers.
5527 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5528 (trad_frame_value_bytes_p, trad_frame_set_value)
5529 (trad_frame_set_realreg, trad_frame_set_addr)
5530 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5531 (trad_frame_set_reg_realreg): Update to call member function.
5532 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5533 (trad_frame_get_prev_register): Likewise.
5535 * aarch64-tdep.c (aarch64_analyze_prologue)
5536 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5537 (aarch64_prologue_prev_register): Update to use member functions.
5538 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5539 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5540 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5541 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5542 (arm_make_epilogue_frame_cache): Likewise.
5543 * avr-tdep.c (avr_frame_unwind_cache)
5544 (avr_frame_prev_register): Likewise.
5545 * cris-tdep.c (cris_scan_prologue): Likewise.
5546 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5547 * frv-tdep.c (frv_analyze_prologue): Likewise.
5548 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5549 * lm32-tdep.c (lm32_frame_cache): Likewise.
5550 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5551 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5552 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5553 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5554 (reset_saved_regs): Adjust to set realreg.
5555 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5556 call member functions.
5557 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5558 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5559 (s390_backchain_frame_unwind_cache): Likewise.
5560 * score-tdep.c (score7_analyze_prologue)
5561 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5562 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5563 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5564 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5565 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5566 * tilegx-tdep.c (tilegx_analyze_prologue)
5567 (tilegx_frame_cache): Likewise.
5568 * v850-tdep.c (v850_frame_cache): Likewise.
5569 * vax-tdep.c (vax_frame_cache): Likewise.
5571 2021-01-19 Luis Machado <luis.machado@linaro.org>
5573 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5575 (put_frame_register_bytes): Likewise.
5576 Adjust documentation.
5577 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5578 (safe_frame_unwind_memory): Likewise.
5579 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5580 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5582 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5583 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5584 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5585 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5586 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5587 * dwarf2/loc.c (rw_pieced_value): Likewise.
5588 * hppa-tdep.c (hppa_frame_cache): Likewise.
5589 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5590 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5591 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5592 (i386_linux_rt_sigtramp_start): Likewise.
5593 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5594 * i386-tdep.c (i386_register_to_value): Likewise.
5595 * i387-tdep.c (i387_register_to_value): Likewise.
5596 * ia64-tdep.c (ia64_register_to_value): Likewise.
5597 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5598 (m32r_linux_rt_sigtramp_start): Likewise.
5599 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5600 * m68k-tdep.c (m68k_register_to_value): Likewise.
5601 * mips-tdep.c (mips_register_to_value)
5602 (mips_value_to_register): Likewise.
5603 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5604 (ppcfbsd_sigtramp_frame_cache): Likewise.
5605 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5606 (ppcobsd_sigtramp_frame_cache): Likewise.
5607 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5608 (rs6000_register_to_value): Likewise.
5609 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5610 * tramp-frame.c (tramp_frame_start): Likewise.
5611 * valops.c (value_assign): Likewise.
5613 2021-01-19 Luis Machado <luis.machado@linaro.org>
5615 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5617 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5618 instead of buffer and size.
5619 (trad_frame_set_reg_value_bytes): Likewise.
5620 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5621 (trad_frame_set_value_bytes): Likewise.
5623 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5625 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5627 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5629 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5630 (riscv_fbsd_gregset): Use riscv_supply_regset.
5631 (riscv_fbsd_fpregset): Likewise.
5632 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5633 (riscv_linux_fregset): Likewise.
5634 * riscv-tdep.c (riscv_supply_regset): Define new function.
5635 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5637 2021-01-18 Tom de Vries <tdevries@suse.de>
5640 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5642 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5645 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5647 * remote.c (class remote_target) <remote_hostio_send_command,
5648 remote_hostio_parse_result>: Constify parameter.
5649 (remote_hostio_parse_result): Likewise.
5650 (remote_target::remote_hostio_send_command): Adjust.
5651 (remote_target::remote_hostio_pread_vFile): Adjust.
5652 (remote_target::fileio_readlink): Adjust.
5653 (remote_target::fileio_fstat): Adjust.
5655 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5657 * remote.c (remote_target::start_remote): Move wait_status to
5660 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5662 * remote.c (class remote_target):
5663 <add_current_inferior_and_thread>: Constify parameter.
5664 (stop_reply_extract_thread): Likewise.
5665 (remote_target::get_current_thread): Likewise.
5666 (remote_target::add_current_inferior_and_thread): Likewise.
5668 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5670 * remote.c (class remote_target)
5671 <remote_unpack_thread_info_response,
5672 parse_threadlist_response>: Constify parameter and/or return
5673 value and or local variable.
5674 (stub_unpack_int): Likewise.
5675 (unpack_nibble): Likewise.
5676 (unpack_byte): Likewise.
5677 (unpack_int): Likewise.
5678 (unpack_string): Likewise.
5679 (unpack_threadid): Likewise.
5680 (remote_target::remote_unpack_thread_info_response): Likewise.
5681 (remote_target::parse_threadlist_response): Likewise.
5683 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5685 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5687 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5689 * MAINTAINERS (Write After Approval): Add myself.
5691 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5693 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5694 because is_trivially_default_constructible was first implemented with
5697 2021-01-14 Tom de Vries <tdevries@suse.de>
5699 PR breakpoints/27151
5700 * objfiles.h (in_plt_section): Handle .plt.sec.
5702 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5706 (remote_target::select_thread_for_ambiguous_stop_reply): New
5708 (remote_target::process_stop_reply): Call
5709 select_thread_for_ambiguous_stop_reply.
5711 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5713 * record-btrace.c (class record_btrace_target): Remove.
5714 (record_btrace_target::commit_resume): Remove.
5715 * record-full.c (class record_full_target): Remove.
5716 (record_full_target::commit_resume): Remove.
5718 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5720 * remote.c (enum class resume_state): New.
5721 (struct resumed_pending_vcont_info): New.
5722 (struct remote_thread_info) <resume_state, set_not_resumed,
5723 set_resumed_pending_vcont, resumed_pending_vcont_info,
5724 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5726 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5727 (remote_target::remote_add_thread): Adjust.
5728 (remote_target::process_initial_stop_replies): Adjust.
5729 (remote_target::resume): Adjust.
5730 (remote_target::commit_resume): Rely on state in
5731 remote_thread_info and not on tp->executing.
5732 (remote_target::process_stop_reply): Adjust.
5734 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5736 * arc-tdep.h (arc_debug_printf): New.
5737 * arc-tdep.c: Use arc_debug_printf.
5738 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5739 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5740 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5742 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5744 * arc-tdep.h (arc_debug): Change type to bool.
5745 * arc-tdep.c (arc_debug): Change type to bool.
5746 (arc_analyze_prologue): Adjust.
5747 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5748 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5750 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5752 * auto-load.c (auto_load_objfile_script_1): Use bool.
5753 (execute_script_contents): Use bool.
5755 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5757 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5759 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5761 * extension-priv.h (struct extension_language_script_ops)
5762 <auto_load_enabled>: Return bool.
5763 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5765 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5767 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5769 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5770 move comment to header.
5771 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5773 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5774 move comment to header.
5776 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5778 * auto-load.h (file_is_auto_load_safe): Change return type to
5779 bool, move comment here.
5780 * auto-load.c (file_is_auto_load_safe): Change return type and
5781 advice_printed to bool. Move comment to header.
5783 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5785 * jit.c (jit_debug_printf): New, use throughout file.
5787 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5789 * infrun.c (normal_stop): Fix indentation.
5791 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5793 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5795 * symfile.h: ... here.
5796 * symfile.c: Update doc.
5798 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5800 * target.h (baud_rate, serial_parity): Move declarations...
5801 * serial.h: ... here.
5802 * main.c: Include serial.h.
5803 * serial.c (baud_rate, serial_parity): Update doc.
5805 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5807 * top.c (pre_init_ui_hook): Remove.
5809 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5811 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5812 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5813 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5814 * features/aarch64-fpu.xml: Add bfloat16 type.
5816 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5818 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5820 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5822 * f-exp.y (dot_ops): Rename to...
5823 (fortran_operators): ...this. Add a header comment. Add symbol
5825 (yylex): Update to use fortran_operators not dot_ops. Remove
5826 special handling for '**', this is now included in
5829 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5831 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5832 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5833 * aarch64-tdep.c: Use aarch64_debug_printf.
5835 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5837 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5840 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5842 * jit.c (jit_debug): Change type to bool.
5843 (_initialize_jit): Adjust.
5845 2021-01-09 Tom Tromey <tom@tromey.com>
5848 * compile/compile.c (compile_to_object): Avoid crash when
5849 osabi_triplet_regexp returns NULL.
5851 2021-01-09 Tom Tromey <tom@tromey.com>
5853 * tracepoint.h (class collection_list) <append_exp>: Take a
5855 * tracepoint.c (collection_list::append_exp): Take a std::string.
5856 (encode_actions_1): Update.
5858 2021-01-08 Tom Tromey <tromey@adacore.com>
5860 * parse.c (parse_expression): Add void_context_p parameter. Use
5861 parse_exp_in_context.
5862 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5864 (print_command, call_command): Update.
5865 * expression.h (parse_expression): Add void_context_p parameter.
5867 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5869 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5870 for internalvar components that have a dynamic location.
5872 2021-01-08 Tom de Vries <tdevries@suse.de>
5875 * breakpoint.c (create_exception_master_breakpoint_probe)
5876 (create_exception_master_breakpoint_hook): Factor out
5878 (create_exception_master_breakpoint): ... here. Only try to install
5879 the master exception breakpoint in objfile.debug using the
5880 _Unwind_DebugHook method, if the install using probes in objfile
5883 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5885 * f-lang.c (fortran_value_subarray): Call value_from_component.
5887 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5889 * remote-sim.c: Include memory-map.h.
5890 (gdbsim_target): Define memory_map override.
5891 (gdbsim_target::memory_map): Define.
5893 2021-01-07 Tom Tromey <tromey@adacore.com>
5895 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5897 2021-01-07 Tom Tromey <tromey@adacore.com>
5899 * ada-lang.c (add_component_interval): Start loop using vector's
5902 2021-01-06 Tom Tromey <tromey@adacore.com>
5904 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5906 * valarith.c (fixed_point_binop): Handle multiplication
5907 and division specially.
5908 * valops.c (value_to_gdb_mpq): New function.
5909 (value_cast_to_fixed_point): Use it.
5911 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5913 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5914 Call wnoutrefresh instead of tui_win_info::refresh_window.
5916 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5918 * tui/tui-source.c (tui_source_window::show_line_number):
5919 Redraw second space after line number.
5921 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5924 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5925 Fix source pad size in prefresh.
5926 (tui_source_window_base::show_source_content): Grow source pad
5929 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5931 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5932 (bfin_frame_align): Use align_down.
5934 2021-01-04 Tom de Vries <tdevries@suse.de>
5936 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5937 terminators that do not terminate anything.
5939 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5941 * debug.c (debug_print_depth): New.
5942 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5943 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5944 * infrun.c (start_step_over): Use
5945 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5946 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5947 INFRUN_SCOPED_DEBUG_START_END.
5948 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5950 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5952 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5954 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5956 * utils.c (vfprintf_unfiltered): Print timestamp only when
5957 previous debug output ended with a newline.
5959 2021-01-04 Luis Machado <luis.machado@linaro.org>
5961 Update all users of trad_frame_saved_reg to use the new member
5964 Remote all struct keywords from declarations of trad_frame_saved_reg
5965 types, except on forward declarations.
5967 * aarch64-tdep.c: Update.
5968 * alpha-mdebug-tdep.c: Update.
5969 * alpha-tdep.c: Update.
5970 * arc-tdep.c: Update.
5971 * arm-tdep.c: Update.
5972 * avr-tdep.c: Update.
5973 * cris-tdep.c: Update.
5974 * csky-tdep.c: Update.
5975 * frv-tdep.c: Update.
5976 * hppa-linux-tdep.c: Update.
5977 * hppa-tdep.c: Update.
5978 * hppa-tdep.h: Update.
5979 * lm32-tdep.c: Update.
5980 * m32r-linux-tdep.c: Update.
5981 * m32r-tdep.c: Update.
5982 * m68hc11-tdep.c: Update.
5983 * mips-tdep.c: Update.
5984 * moxie-tdep.c: Update.
5985 * riscv-tdep.c: Update.
5986 * rs6000-tdep.c: Update.
5987 * s390-linux-tdep.c: Update.
5988 * s390-tdep.c: Update.
5989 * score-tdep.c: Update.
5990 * sparc-netbsd-tdep.c: Update.
5991 * sparc-sol2-tdep.c: Update.
5992 * sparc64-fbsd-tdep.c: Update.
5993 * sparc64-netbsd-tdep.c: Update.
5994 * sparc64-obsd-tdep.c: Update.
5995 * sparc64-sol2-tdep.c: Update.
5996 * tilegx-tdep.c: Update.
5997 * v850-tdep.c: Update.
5998 * vax-tdep.c: Update.
6000 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6001 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6003 * trad-frame.c: Update.
6004 Remove TF_REG_* enum.
6005 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6006 a trivially-constructible struct.
6007 (trad_frame_reset_saved_regs): Adjust to use member function.
6008 (trad_frame_value_p): Likewise.
6009 (trad_frame_addr_p): Likewise.
6010 (trad_frame_realreg_p): Likewise.
6011 (trad_frame_value_bytes_p): Likewise.
6012 (trad_frame_set_value): Likewise.
6013 (trad_frame_set_realreg): Likewise.
6014 (trad_frame_set_addr): Likewise.
6015 (trad_frame_set_unknown): Likewise.
6016 (trad_frame_set_value_bytes): Likewise.
6017 (trad_frame_get_prev_register): Likewise.
6018 * trad-frame.h: Update.
6019 (trad_frame_saved_reg_kind): New enum.
6020 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6021 <m_kind, m_reg>: New member fields.
6022 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6023 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6024 <is_addr, is_unknown, is_value_bytes>: New member functions.
6026 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6028 * target-float.c: Fix typos.
6030 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6032 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6034 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6036 * gdbarch.sh: Update copyright year range.
6038 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6040 Update copyright year range in copyright header of all GDB files.
6042 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6044 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6045 to the list of directories to update.
6047 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6049 * top.c (print_gdb_version): Update copyright year.
6051 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6053 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6055 For older changes see ChangeLog-2020.
6061 version-control: never