1 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
4 '--force-condition' flag to force the condition in the
5 '-break-insert' and '-dprintf-insert' commands.
6 * NEWS: Mention the change.
8 2021-05-04 Tom de Vries <tdevries@suse.de>
11 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
14 2021-04-30 Tom Tromey <tom@tromey.com>
16 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
17 (add_signatured_type_cu_to_table): Remove.
18 (create_debug_type_hash_table): Assume dwo_file is non-null.
19 (create_debug_types_hash_table): Update comment.
20 (create_all_type_units): Remove.
21 (sort_tu_by_abbrev_offset): Update comment.
22 (build_type_psymtabs): Rename from build_type_psymtabs_1.
23 (build_type_psymtabs): Remove.
24 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
26 (read_comp_units_from_section): Add types_htab, section_kind
28 (create_all_comp_units): Read type units.
30 2021-04-30 Tom Tromey <tom@tromey.com>
32 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
33 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
35 <all_type_units>: Remove.
36 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
37 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
38 (dwarf2_per_bfd::get_tu): Remove.
39 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
40 (create_signatured_type_table_from_index)
41 (create_signatured_type_table_from_debug_names)
42 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
43 (dwarf2_base_index_functions::expand_all_symtabs)
44 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
45 (dwarf2_base_index_functions::map_symbol_filenames)
46 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
47 (add_signatured_type_cu_to_table, create_all_type_units)
48 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
49 (create_all_comp_units): Update.
50 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
51 (write_debug_names): Update.
53 2021-04-30 Tom Tromey <tom@tromey.com>
55 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
56 allocate_signatured_type>: Change return type.
57 <all_comp_units, all_type_units>: Hold unique pointers.
58 (struct dwarf2_per_cu_data): Add constructor and initializers.
59 (struct signatured_type): Derive from dwarf2_per_cu_data.
60 * dwarf2/read.c (type_unit_group): Derive from
62 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
63 (dwarf2_per_bfd::get_tu)
64 (dwarf2_per_bfd::allocate_signatured_type)
65 (dwarf2_per_bfd::allocate_signatured_type)
66 (create_cu_from_index_list, create_cus_from_index_list)
67 (create_signatured_type_table_from_index)
68 (create_signatured_type_table_from_debug_names)
69 (create_addrmap_from_aranges)
70 (dwarf2_base_index_functions::find_last_source_symtab)
71 (dw_expand_symtabs_matching_file_matcher)
72 (dwarf2_gdb_index::expand_symtabs_matching)
73 (dwarf2_base_index_functions::map_symbol_filenames)
74 (create_cus_from_debug_names_list)
75 (dw2_debug_names_iterator::next)
76 (dwarf2_debug_names_index::expand_symtabs_matching)
77 (create_debug_type_hash_table, add_type_unit)
78 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
80 (allocate_type_unit_groups_table): Use delete.
81 (create_type_unit_group): Change return type. Use new.
82 (get_type_unit_group, build_type_psymtabs_1)
83 (build_type_psymtab_dependencies)
84 (process_skeletonless_type_unit, set_partial_user)
85 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
86 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
87 (read_signatured_type): Update.
88 (dwarf2_find_containing_comp_unit): Change type of
91 (dwarf2_per_bfd::allocate_per_cu)
92 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
94 (add_signatured_type_cu_to_table): Update.
95 * dwarf2/index-write.c (write_one_signatured_type)
96 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
97 (write_debug_names): Update.
99 2021-04-30 Tom Tromey <tromey@adacore.com>
101 * nat/windows-nat.h (get_image_name): Don't declare.
102 * nat/windows-nat.c (get_image_name): Now static.
104 2021-04-30 Tom Tromey <tromey@adacore.com>
106 * windows-nat.c (windows_nat::handle_load_dll): Update.
107 (windows_nat_target::get_windows_debug_event): Call
109 (windows_add_all_dlls, windows_add_dll): Move to
111 * nat/windows-nat.h (handle_load_dll): Change parameters.
112 (dll_loaded_event, windows_add_all_dlls): Declare.
113 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
115 (dll_loaded_event): New function.
117 2021-04-30 Tom Tromey <tromey@adacore.com>
119 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
120 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
122 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
123 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
125 2021-04-30 Tom Tromey <tromey@adacore.com>
127 * windows-nat.c: Move code to nat/windows-nat.[ch].
128 (_initialize_windows_nat): Call initialize_loadable.
129 * nat/windows-nat.h (AdjustTokenPrivileges)
130 (DebugActiveProcessStop, DebugBreakProcess)
131 (DebugSetProcessKillOnExit, EnumProcessModules)
132 (EnumProcessModulesEx, GetModuleInformation)
133 (GetModuleFileNameExA, GetModuleFileNameExW)
134 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
135 (GetCurrentConsoleFont, Wow64SuspendThread)
136 (Wow64GetThreadContext, Wow64SetThreadContext)
137 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
138 (AdjustTokenPrivileges_ftype)
139 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
140 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
141 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
142 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
143 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
144 (GetConsoleFontSize_ftype)
145 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
146 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
147 (Wow64GetThreadSelectorEntry_ftype): Likewise.
148 (initialize_loadable): Declare.
149 * nat/windows-nat.c (AdjustTokenPrivileges)
150 (DebugActiveProcessStop, DebugBreakProcess)
151 (DebugSetProcessKillOnExit, EnumProcessModules)
152 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
153 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
154 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
155 (Wow64GetThreadContext, Wow64SetThreadContext)
156 (Wow64GetThreadSelectorEntry): Define.
157 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
159 (initialize_loadable): Likewise, and rename.
161 2021-04-30 Tom Tromey <tromey@adacore.com>
163 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
164 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
165 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
166 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
167 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
168 (bad): New template functions.
169 (_initialize_loadable): Update.
171 2021-04-30 Tom Tromey <tromey@adacore.com>
173 * ada-lang.c (ada_index_type): Use ada_check_typedef.
175 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
177 * auto-load.h: Split namespace declaration.
179 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
181 * infrun.c (save_waitstatus): Move variables to inner scope.
183 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
185 * NEWS: Fix typo and stray full stop.
187 2021-04-28 Tom Tromey <tromey@adacore.com>
189 * ada-exp.y (primary): Use new type for null pointer.
190 * ada-lang.c (ada_type_match): Remove "may_deref"
191 parameter. Handle null pointer.
192 (ada_args_match): Update.
193 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
196 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
198 * NEWS: Mention new commands.
199 * python/python.c (python_ignore_environment): New static global.
200 (show_python_ignore_environment): New function.
201 (set_python_ignore_environment): New function.
202 (python_dont_write_bytecode): New static global.
203 (show_python_dont_write_bytecode): New function.
204 (set_python_dont_write_bytecode): New function.
205 (_initialize_python): Register new commands.
207 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
209 * extension-priv.h (struct extension_language_ops): Rename
210 'finish_initialization' to 'initialize'.
211 * extension.c (finish_ext_lang_initialization): Renamed to...
212 (ext_lang_initialization): ...this, update comment, and updated
213 the calls to reflect the change in struct extension_language_ops.
214 * extension.h (finish_ext_lang_initialization): Renamed to...
215 (ext_lang_initialization): ...this.
216 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
217 (gdbscm_initialize): ...this, update comment at definition.
218 (guile_extension_ops): Update.
219 * main.c (captured_main_1): Update call to
220 finish_ext_lang_initialization.
221 * python/python.c (gdbpy_finish_initialization): Rename to...
222 (gdbpy_initialize): ...this, update comment at definition, and
223 update call to do_finish_initialization.
224 (python_extension_ops): Update.
225 (do_finish_initialization): Rename to...
226 (do_initialize): ...this, and update comment.
228 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
230 * main.c (captured_main_1): Add a call to
231 finish_ext_lang_initialization.
232 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
234 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
236 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
237 (gdbscm_finish_initialization): Add code moved from
239 (_initialize_guile): Move code to gdbscm_finish_initialization.
240 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
241 _initialize_scm_arch.
242 (_initialize_scm_arch): New function.
243 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
244 into _initialize_scm_block.
245 (_initialize_scm_block): New function.
246 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
247 into _initialize_scm_frame.
248 (_initialize_scm_frame): New function.
249 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
250 into _initialize_scm_objfile.
251 (_initialize_scm_objfile): New function.
252 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
253 code into _initialize_scm_progspace.
254 (_initialize_scm_progspace): New function.
255 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
256 into _initialize_scm_symbol.
257 (_initialize_scm_symbol): New function.
258 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
259 into _initialize_scm_symtab.
260 (_initialize_scm_symtab): New function.
261 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
262 _initialize_scm_type.
263 (_initialize_scm_type): New function.
265 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
267 * python/py-arch.c (_initialize_py_arch): New function.
268 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
269 * python/py-block.c (_initialize_py_block): New function.
270 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
271 * python/py-inferior.c (_initialize_py_inferior): New function.
272 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
273 * python/py-objfile.c (_initialize_py_objfile): New function.
274 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
275 * python/py-progspace.c (_initialize_py_progspace): New function.
276 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
277 * python/py-registers.c (_initialize_py_registers): New function.
278 (gdbpy_initialize_registers): Move code to
279 _initialize_py_registers.
280 * python/py-symbol.c (_initialize_py_symbol): New function.
281 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
282 * python/py-symtab.c (_initialize_py_symtab): New function.
283 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
284 * python/py-type.c (_initialize_py_type): New function.
285 (gdbpy_initialize_types): Move code to _initialize_py_type.
286 * python/py-unwind.c (_initialize_py_unwind): New function.
287 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
288 * python/python.c (_initialize_python): Move call to
289 do_start_initialization to gdbpy_finish_initialization.
290 (gdbpy_finish_initialization): Add call to
291 do_start_initialization.
293 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
295 * extension.c (struct scoped_default_signal): New struct.
296 (scoped_default_sigint): New typedef.
297 (finish_ext_lang_initialization): Make use of
298 scoped_default_sigint.
300 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
302 * main.c (captured_main_1): Don't pass argument to gdb_init.
303 * top.c (gdb_init): Remove unused argument, and add header
305 * top.h (gdb_init): Remove argument.
307 2021-04-27 Luis Machado <luis.machado@linaro.org>
309 * psymtab.c (psymbol_functions::dump): Output newline.
311 * symmisc.c (dump_objfile): Likewise.
313 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
314 Simon Marchi <simon.marchi@polymtl.ca>
316 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
317 when attaching the 'auto_load_new_objfile' observer, so
318 other observers can specify it as a dependency.
319 * gdb/auto-load.h (struct token): Declare
320 'auto_load_new_objfile_observer_token' as token to be used
321 for the 'auto_load_new_objfile' observer.
322 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
323 'python_new_objfile' observer depend on 'auto_load_new_objfile'
324 observer, so it gets notified after the latter.
326 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
327 Simon Marchi <simon.marchi@polymtl.ca>
329 * unittests/observable-selftests.c (dependency_test_counters):
331 (observer_token0, observer_token1, observer_token2,
332 observer_token3, observer_token4, observer_token5): New.
333 (struct dependency_observer_data): New struct.
334 (observer_dependency_test_callback): New function.
335 (test_observers): New.
336 (run_dependency_test): New function.
337 (test_dependency): New.
338 (_initialize_observer_selftest): Register dependency test.
340 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
343 * cli/cli-dump.c (dump_binary_file): Check result of
346 2021-04-25 Sergei Trofimovich <siarheit@google.com>
348 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
349 by passing `process_stratum_target*` parameter.
351 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
354 * typeprint.h (struct type_print_options): Add print_in_hex
356 (struct print_offset_data): Add print_in_hex flag, add a
357 constructor accepting a type_print_options* argument.
358 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
359 default value for print_in_hex.
360 (print_offset_data::indentation): Allow more horizontal space.
361 (print_offset_data::print_offset_data): Add ctor.
362 (print_offset_data::maybe_print_hole, print_offset_data::update):
363 Handle the print_in_hex flag.
364 (whatis_exp): Handle 'x' and 'd' flags.
365 (print_offsets_and_sizes_in_hex): Declare.
366 (set_print_offsets_and_sizes_in_hex): Create.
367 (show_print_offsets_and_sizes_in_hex): Create.
368 (_initialize_typeprint): Update help message for the ptype
369 command, register the 'set print type hex' and 'show print type
371 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
372 (c_type_print_base): Construct the print_offset_data
373 object using the type_print_optons parameter.
374 * rust-lang.c (rust_language::print_type): Construct the
375 print_offset_data object using the type_print_optons parameter.
376 * NEWS: Mention the new flags of the ptype command.
378 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
380 * typeprint.h (struct type_print_options): Move before
383 2021-04-25 Joel Brobecker <brobecker@adacore.com>
387 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
389 * observable.c (observer_debug): Change to bool.
391 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
393 * dwarf2/read.c: Add 'unordered_set' include.
394 (dwarf2_base_index_functions::map_symbol_filenames): Replace
395 'visited' hash table with 'qfn_cache' unordered_set. Remove use
396 of per_Bfd->filenames_cache cache, and use function local
397 filenames_cache instead. Reindent.
398 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
400 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
402 * breakpoint.c (iterate_over_bp_locations): Change callback to
403 function view, remove data parameter.
404 * breakpoint.h (iterate_over_bp_locations): Likewise.
405 * record-full.c (record_full_sync_record_breakpoints): Remove
408 2021-04-22 Tom Tromey <tom@tromey.com>
410 * c-typeprint.c (c_type_print_base_struct_union): Use
411 print_spaces_filtered_with_print_options.
413 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
416 * python/py-type.c (typy_range): Check that bounds are constant
417 before accessing them as such.
418 * guile/scm-type.c (gdbscm_type_range): Likewise.
420 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
422 * Makefile.in (COMMON_SFILES): Remove continuations.c.
423 * inferior.c (inferior::add_continuation): New method, adapted
424 from 'add_inferior_continuation'.
425 (inferior::do_all_continuations): New method, adapted from
426 'do_all_inferior_continuations'.
427 (inferior::~inferior): Clear the list of continuations directly.
428 * inferior.h (class inferior) <continuations>: Rename into...
429 <m_continuations>: ...this and make private.
430 * continuations.c: Remove.
431 * continuations.h: Remove.
432 * event-top.c: Don't include "continuations.h".
434 Update the users below.
435 * inf-loop.c (inferior_event_handler)
436 * infcmd.c (attach_command)
437 (notice_new_inferior): Update.
439 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
441 * inferior.h (class inferior) <continuations>: Change the type
442 to be an std::list of std::function's.
443 Update the references and uses below.
444 * continuations.c (struct continuation): Delete.
445 (make_continuation): Delete.
446 (do_my_continuations_1): Delete.
447 (do_my_continuations): Delete.
448 (discard_my_continuations_1): Delete.
449 (discard_my_continuations): Delete.
450 (add_inferior_continuation): Update.
451 (do_all_inferior_continuations): Update.
452 (discard_all_inferior_continuations): Update.
453 * continuations.h (add_inferior_continuation): Update to take
454 an std::function as the parameter.
455 * infcmd.c (struct attach_command_continuation_args): Delete.
456 (attach_command_continuation): Delete.
457 (attach_command_continuation_free_args): Delete.
458 (attach_command): Update.
459 (notice_new_inferior): Update.
461 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
463 * continuations.h: Update the general comment.
464 * inferior.h (class inferior) <continuations>: Update the comment.
465 * interps.c: Do not include "continuations.h".
467 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
469 * continuations.h (do_all_inferior_continuations): Remove the 'err'
470 parameter. Update the references below.
471 * continuations.c (do_my_continuations_1)
472 (do_my_continuations)
473 (do_all_inferior_continuations): Update.
474 * inf-loop.c (inferior_event_handler): Update.
475 * infcmd.c (attach_command_continuation): Update.
477 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
479 * infcmd.c (attach_post_wait): Update the function comment.
481 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
483 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
484 Update the references below.
485 (struct attach_command_continuation_args)
486 (attach_command_continuation)
487 (attach_command_continuation_free_args)
489 (notice_new_inferior): Update to remove the reference to 'args'.
491 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
492 Tom de Vries <tdevries@suse.de>
495 * remote.c (remote_target_is_non_stop_p): New function.
496 * remote.h (remote_target_is_non_stop_p): Declare.
497 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
498 to check non-stopness using notif_state->remote rather current target.
500 2021-04-22 Tom Tromey <tom@tromey.com>
502 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
503 (struct typed_val_int) <val>: Now ULONGEST.
504 (rust_parser::parse_array_type): Remove negative check.
505 (rust_lex_int_test): Change 'value' to ULONGEST.
507 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
509 * arch-utils.c (default_addressable_memory_unit_size): Return a
510 value based on bfd's bits per byte.
512 2021-04-21 Tom Tromey <tom@tromey.com>
514 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
516 (struct dwarf2_per_cu_data): Rearrange.
517 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
519 (struct comp_unit_head): Rearrange.
520 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
522 2021-04-21 Tom de Vries <tdevries@suse.de>
525 * configure.ac: Remove --without-included-regex/--with-included-regex.
526 * config.in: Regenerate.
527 * configure: Regenerate.
528 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
530 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
532 * breakpoint.h (create_breakpoint): Add a new parameter,
534 * breakpoint.c (create_breakpoint): Use the 'force_condition'
535 argument when 'parse_extra' is false to check if the condition
536 is invalid at all of the breakpoint locations.
537 Update the users below.
543 (create_tracepoint_from_upload): Update.
544 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
545 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
546 * python/py-breakpoint.c (bppy_init): Update.
547 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
549 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
551 * breakpoint.c (print_one_breakpoint_location): Display "N" for
552 disabled-by-condition locations on MI-like output.
553 (breakpoint_1): Do not display the disabled-by-condition footnote
554 if the output is MI-like.
556 2021-04-21 Frederic Cambus <fred@statdns.com>
558 * syscalls/update-netbsd.sh: Fix script name display in usage, and
559 update year range in generated copyright notices.
561 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
563 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
566 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
568 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
570 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
572 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
573 (producer_is_icc): Replace use of std::regex with gdb's
576 2021-04-17 Tom Tromey <tom@tromey.com>
579 * dwarf2/read.c (class offset_view): New.
580 (struct symbol_table_slot): Remove.
581 (struct mapped_index) <symbol_table, constant_pool>: Change type.
582 <symbol_name_index, symbol_vec_index>: New methods.
583 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
585 (read_gdb_index_from_buffer): Update.
586 (struct dw2_symtab_iterator) <vec>: Change type.
587 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
588 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
589 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
590 <append_array, append_offset>: New methods.
591 (write_hash_table, add_address_entry, write_gdbindex_1)
592 (write_debug_names): Update.
593 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
595 2021-04-17 Tom Tromey <tom@tromey.com>
597 * dwarf2/index-write.c (write_psymtabs_to_index): Check
600 2021-04-17 Tom Tromey <tom@tromey.com>
602 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
603 from map_matching_symbols. Change parameters.
604 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
605 Rename from map_matching_symbols. Change parameters.
606 * dwarf2/read.c (struct dwarf2_gdb_index)
607 <expand_matching_symbols>: Rename from map_matching_symbols.
609 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
610 Rename from map_matching_symbols. Change parameters.
611 (dwarf2_gdb_index::expand_matching_symbols): Rename from
612 dw2_map_matching_symbols. Change parameters.
613 (dwarf2_gdb_index::expand_matching_symbols): Remove old
615 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
616 map_matching_symbols. Change parameters.
617 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
618 from map_matching_symbols. Change parameters.
619 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
620 map_matching_symbols. Change parameters.
621 * ada-lang.c (map_matching_symbols): New function.
622 (add_nonlocal_symbols): Update.
624 2021-04-17 Tom Tromey <tom@tromey.com>
626 * quick-symbol.h (struct quick_symbol_functions)
627 <expand_symtabs_with_fullname>: Remove.
628 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
630 * psympriv.h (struct psymbol_functions)
631 <expand_symtabs_with_fullname>: Remove.
632 * dwarf2/read.c (struct dwarf2_base_index_functions)
633 <expand_symtabs_with_fullname>: Remove.
634 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
636 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
638 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
641 2021-04-17 Tom Tromey <tom@tromey.com>
643 * symfile-debug.c (objfile::expand_symtabs_for_function):
645 * quick-symbol.h (struct quick_symbol_functions)
646 <expand_symtabs_for_function>: Remove.
647 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
649 * psympriv.h (struct psymbol_functions)
650 <expand_symtabs_for_function>: Remove.
651 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
653 * dwarf2/read.c (struct dwarf2_gdb_index)
654 <expand_symtabs_for_function>: Remove.
655 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
657 (find_slot_in_mapped_hash): Remove.
658 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
659 (dw2_symtab_iter_init): Remove one overload.
660 (dwarf2_gdb_index::expand_symtabs_for_function)
661 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
663 2021-04-17 Tom Tromey <tom@tromey.com>
665 * symfile-debug.c (objfile::map_symtabs_matching_filename):
667 * quick-symbol.h (struct quick_symbol_functions)
668 <map_symtabs_matching_filename>: Remove.
669 * psymtab.c (partial_map_expand_apply)
670 (psymbol_functions::map_symtabs_matching_filename): Remove.
671 * psympriv.h (struct psymbol_functions)
672 <map_symtabs_matching_filename>: Remove.
673 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
675 * dwarf2/read.c (struct dwarf2_base_index_functions)
676 <map_symtabs_matching_filename>: Remove.
677 (dw2_map_expand_apply)
678 (dwarf2_base_index_functions::map_symtabs_matching_filename):
681 2021-04-17 Tom Tromey <tom@tromey.com>
683 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
684 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
686 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
687 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
688 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
689 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
691 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
692 (dwarf2_gdb_index::lookup_symbol)
693 (dwarf2_debug_names_index::lookup_symbol): Remove.
695 2021-04-17 Tom Tromey <tom@tromey.com>
697 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
698 * symmisc.c (maintenance_expand_symtabs): Update.
699 * symfile.c (expand_symtabs_matching): Update.
700 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
702 * quick-symbol.h (struct quick_symbol_functions)
703 <expand_symtabs_matching>: Add 'domain' parameter.
704 * psymtab.c (recursively_search_psymtabs)
705 (psymbol_functions::expand_symtabs_matching): Add 'domain'
707 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
708 Add 'domain' parameter.
709 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
711 * linespec.c (iterate_over_all_matching_symtabs): Update.
712 * dwarf2/read.c (struct dwarf2_gdb_index)
713 <expand_symtabs_matching>: Add 'domain' parameter.
714 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
716 (dw2_expand_symtabs_matching)
717 (dwarf2_gdb_index::expand_symtabs_matching)
718 (dw2_debug_names_iterator)
719 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
722 2021-04-17 Tom Tromey <tom@tromey.com>
724 * symtab.c (global_symbol_searcher::expand_symtabs)
725 (default_collect_symbol_completion_matches_break_on): Update.
726 * symmisc.c (maintenance_expand_symtabs): Update.
727 * symfile.h (expand_symtabs_matching): Add search_flags
729 * symfile.c (expand_symtabs_matching): Add search_flags
731 * symfile-debug.c (objfile::expand_symtabs_matching): Add
732 search_flags parameter.
733 * quick-symbol.h (struct quick_symbol_functions)
734 <expand_symtabs_matching>: Add search_flags parameter.
735 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
736 * psymtab.c (recursively_search_psymtabs)
737 (psymbol_functions::expand_symtabs_matching): Add search_flags
739 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
740 Add search_flags parameter.
741 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
742 search_flags parameter.
743 * linespec.c (iterate_over_all_matching_symtabs): Update.
744 * dwarf2/read.c (struct dwarf2_gdb_index)
745 <expand_symtabs_matching>: Add search_flags parameter.
746 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
747 search_flags parameter.
748 (dw2_map_matching_symbols): Update.
749 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
750 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
752 (dw2_debug_names_iterator): Change block_index to search flags.
753 <m_block_index>: Likewise.
754 (dw2_debug_names_iterator::next)
755 (dwarf2_debug_names_index::lookup_symbol)
756 (dwarf2_debug_names_index::expand_symtabs_for_function)
757 (dwarf2_debug_names_index::map_matching_symbols)
758 (dwarf2_debug_names_index::map_matching_symbols): Update.
759 (dwarf2_debug_names_index::expand_symtabs_matching): Add
760 search_flags parameter.
761 * ada-lang.c (ada_add_global_exceptions)
762 (collect_symbol_completion_matches): Update.
764 2021-04-17 Tom Tromey <tom@tromey.com>
766 * symtab.c (default_collect_symbol_completion_matches_break_on):
768 * symfile.h (expand_symtabs_matching): Return bool.
769 * symfile.c (expand_symtabs_matching): Return bool.
770 * symfile-debug.c (objfile::expand_symtabs_matching): Return
772 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
773 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
775 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
777 * psympriv.h (struct psymbol_functions)
778 <expand_symtabs_matching>: Return bool.
779 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
781 * dwarf2/read.c (struct dwarf2_gdb_index)
782 <expand_symtabs_matching>: Return bool.
783 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
785 (dw2_expand_symtabs_matching_symbol): Return bool.
786 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
787 (dw2_expand_symtabs_matching)
788 (dwarf2_gdb_index::expand_symtabs_matching)
789 (dwarf2_debug_names_index::expand_symtabs_matching)
790 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
792 2021-04-17 Tom Tromey <tom@tromey.com>
794 * quick-symbol.h (enum block_search_flag_values): New.
795 (block_search_flags): New enum flags type.
797 2021-04-16 Tom Tromey <tom@tromey.com>
799 * rust-parse.c: New file.
800 * rust-exp.y: Remove.
801 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
802 (SFILES): Remove rust-exp.y.
803 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
805 2021-04-16 Luis Machado <luis.machado@linaro.org>
807 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
809 2021-04-15 John Baldwin <jhb@FreeBSD.org>
811 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
814 2021-04-15 Tom Tromey <tromey@adacore.com>
816 * ada-valprint.c (ada_value_print_array): Handle optimized-out
819 2021-04-15 Tom Tromey <tromey@adacore.com>
821 * printcmd.c (print_variable_and_value): Use
822 common_val_print_checked.
824 2021-04-15 Tom Tromey <tromey@adacore.com>
826 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
827 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
829 * p-exp.y (variable): Update.
830 * m2-exp.y (variable): Update.
831 * go-exp.y (variable): Update.
832 * expprint.c (dump_for_expression): New overload.
833 * expop.h (check_objfile): New overload.
834 (check_constant): New overload.
835 (class var_value_operation): Use block_symbol.
836 <get_symbol>: Rewrite.
837 * eval.c (var_value_operation::evaluate)
838 (var_value_operation::evaluate_funcall)
839 (var_value_operation::evaluate_for_address)
840 (var_value_operation::evaluate_for_address)
841 (var_value_operation::evaluate_with_coercion)
842 (var_value_operation::evaluate_for_sizeof)
843 (var_value_operation::evaluate_for_cast): Update.
844 * d-exp.y (PrimaryExpression): Update.
845 * c-exp.y (variable): Update.
846 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
847 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
848 (ada_var_value_operation::evaluate)
849 (ada_var_value_operation::resolve)
850 (ada_funcall_operation::resolve): Update.
851 * ada-exp.y (write_var_from_sym, write_object_renaming)
852 (write_ambiguous_var, write_var_or_type, write_name_assoc)
853 (maybe_overload): Update.
854 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
856 2021-04-15 Tom Tromey <tom@tromey.com>
857 Andrew Burgess <andrew.burgess@embecosm.com>
860 * main.c (captured_main_1): Call check_quiet_mode.
861 * top.c (startup_quiet): New global.
862 (check_quiet_mode): New function.
863 (show_startup_quiet): New function.
864 (init_main): Register new command.
865 * top.h (check_quiet_mode): Declare.
867 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
870 * NEWS: Mention new early init files and command line options.
871 * config.in: Regenerate.
872 * configure: Regenerate.
873 * configure.ac: Define GDBEARLYINIT.
874 * main.c (get_earlyinit_files): New function.
875 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
876 CMDARG_EARLYINIT_COMMAND.
877 (captured_main_1): Add support for new command line flags, and for
878 processing startup files.
879 (print_gdb_help): Include startup files in the output.
881 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
883 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
884 (relocate_file_path_maybe_in_datadir): ...this.
885 (class gdb_initfile_finder): New class.
886 (get_init_files): Now uses gdb_initfile_finder.
887 (print_gdb_help): Print 'None found' when there are no init files.
889 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
891 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
892 corresponding child of the abstract DIE when iterating the
893 children of the concrete DIE.
895 2021-04-13 Tom de Vries <tdevries@suse.de>
897 * ui-style.c (read_semi_number, extended_color): Change idx parameter
900 2021-04-13 Luis Machado <luis.machado@linaro.org>
902 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
905 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
907 * rs6000-tdep.c: Add support for single-stepping of
908 prefixed instructions.
910 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
913 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
914 handle the addpcis/lnia instruction.
916 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
918 * MAINTAINERS (Write After Approval): Add myself.
920 2021-4-12 Carl Love <cel@us.ibm.com>
922 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
923 (rs6000_builtin_type_vec128): Add append_composite_type_field for
926 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
928 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
929 * nat/windows-nat.h: Likewise.
931 2021-04-10 Eli Zaretskii <eliz@gnu.org>
933 * windows-nat.c (windows_nat::handle_load_dll): Call
934 windows_add_dll if get_image_name failed to glean the name of the
935 DLL by using the lpImageName pointer.
936 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
937 (windows_add_dll): Now does what windows_add_all_dlls did before,
938 but also accepts an argument LOAD_ADDR, which, if non-NULL,
939 specifies the address where the DLL was loaded into the inferior,
940 and looks for the single DLL loaded at that address.
942 2021-04-09 Luis Machado <luis.machado@linaro.org>
944 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
946 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
948 * darwin-nat.c (darwin_nat_target::resume): Remove status
951 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
953 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
954 prologue end for Intel compilers.
955 * amd64-tdep.c (amd64_skip_prologue): Likewise.
956 * producer.c (producer_is_icc_ge_19): New function.
957 * producer.h (producer_is_icc_ge_19): New declaration.
959 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
961 * producer.c: (producer_is_icc): Update for new version scheme.
962 (producer_parsing_tests): Update names and expected results.
963 * producer.h: (producer_is_icc): Update comment accordingly.
965 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
967 * target.h (struct target_ops) <follow_fork>: Return void.
968 (target_follow_fork): Likewise.
969 * target.c (default_follow_fork): Likewise.
970 (target_follow_fork): Likewise.
971 * infrun.c (follow_fork_inferior): Adjust.
972 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
973 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
974 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
975 * linux-nat.c (linux_nat_target::follow_fork): Return void.
976 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
977 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
978 * remote.c (class remote_target) <follow_fork>: Likewise.
979 (remote_target::follow_fork): Likewise.
980 * target-delegates.c: Re-generate.
982 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
984 * ctfread.c (fetch_tid_type): New function, use throughout file.
985 (read_forward_type): New function.
986 (read_type_record): Call read_forward_type.
988 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
990 * f-exp.h (class fortran_structop_operation): New class.
991 * f-exp.y (exp): Create fortran_structop_operation instead of the
992 generic structop_operation.
993 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
994 expression as EVAL_NORMAL if the result type was dynamic so we can
995 extract the actual array bounds.
996 (fortran_structop_operation::evaluate): New function.
998 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1000 * eval.c (evaluate_subexp_standard): Remove
1001 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1004 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1006 * valops.c (value_cast): Call value_deeply_equal before performing
1009 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1011 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1014 2021-04-07 Caroline Tice <cmtice@google.com>
1016 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1017 the search paths used resolve relative location of .dwo file.
1019 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1021 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1023 (dwarf2_section_info::get_file_name): Add an assert.
1024 (dwarf2_section_info::read_string): Display a minimal, sane error
1025 when the dwarf2_section_info is not associated with a bfd section.
1027 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1029 * top.c (staged_gdb_datadir): Update comment.
1030 (set_gdb_datadir): Copy the value of gdb_datadir back into
1032 (init_main): Initialise staged_gdb_datadir.
1034 2021-04-06 Tom de Vries <tdevries@suse.de>
1036 PR breakpoints/25884
1037 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1040 2021-04-06 Tom de Vries <tdevries@suse.de>
1043 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1046 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1048 * avr-tdep.c (avr_frame_unwind_cache): Use
1049 trad_frame_saved_reg::is_addr.
1051 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1053 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1056 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1058 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1059 objfile parameter for objfile_per_bfd_storage, adjust callers.
1060 (struct standard_psymtab) <standard_psymtab>: Likewise.
1061 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1062 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1063 * ctfread.c (struct ctf_psymtab): Likewise.
1064 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1065 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1066 (dwarf2_create_include_psymtab): Likewise.
1067 * objfiles.h (struct objfile_per_bfd_storage)
1068 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1069 <get_bfd>: New method.
1071 * objfiles.c (get_objfile_bfd_data): Adjust.
1073 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1075 * psymtab.c (partial_symtab::partial_symtab): Change
1076 last_objfile_name to be an std::string.
1077 * symfile.c (allocate_symtab): Likewise.
1079 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1081 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1083 (struct objfile) <intern>: Use
1084 objfile::objfile_per_bfd_storage::intern.
1086 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1088 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1089 with type::is_flag_enum.
1091 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1093 * gdbtypes.h (struct type) <is_flag_enum,
1094 set_is_flag_enum>: New methods.
1095 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1096 write call sites to use type::set_is_flag_enum.
1098 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1100 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1101 with type::is_declared_class.
1103 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1105 * gdbtypes.h (struct type) <is_declared_class,
1106 set_is_declared_class>: New methods.
1107 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1108 write call sites to use type::set_is_declared_class.
1110 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1112 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1113 to avoid deprecation warnings.
1115 2021-04-01 Martin Liska <mliska@suse.cz>
1117 * cp-name-parser.y: Use startswith instead of strncmp.
1118 * m2-exp.y: Likewise.
1119 * macroexp.c (substitute_args): Likewise.
1120 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1121 * rust-exp.y: Likewise.
1123 2021-03-31 Tom Tromey <tom@tromey.com>
1125 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1126 with dw2_map_matching_symbols.
1127 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1128 dw2_expand_symtabs_matching.
1130 2021-03-31 Tom Tromey <tromey@adacore.com>
1132 * dwarf2/stringify.h: Fix typo.
1134 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1137 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1138 with objfiles using READNOW.
1140 2021-03-29 Tom Tromey <tromey@adacore.com>
1142 * top.c (check_frame_language_change): Update.
1143 * language.c (language_info): Remove parameter.
1144 * language.h (language_info): Remove parameter.
1146 2021-03-29 Luis Machado <luis.machado@linaro.org>
1148 * compile/compile.c (get_args): Don't add empty argv entries.
1150 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1153 * procfs.c (procfs_target::attach): Define inf.
1155 (procfs_target::create_inferior): Likewise.
1157 2021-03-28 Tom Tromey <tom@tromey.com>
1159 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1160 (elf_symfile_read): Simplify.
1161 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1162 (make_lazy_dwarf_reader): New function.
1163 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1164 (dwarf2_initialize_objfile): Return void. Remove index_kind
1165 parameter. Push on 'qf' list.
1166 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1167 type. Remove 'index_kind' parameter.
1168 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1170 2021-03-27 Tom Tromey <tom@tromey.com>
1172 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1174 2021-03-27 Tom Tromey <tom@tromey.com>
1176 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1178 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1180 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1183 2021-03-26 Tom Tromey <tom@tromey.com>
1185 * symtab.c (struct output_source_filename_data): Add 'output'
1186 method and operator().
1187 (output_source_filename_data::output): Rename from
1188 output_source_filename.
1189 (output_partial_symbol_filename): Remove.
1190 (info_sources_command): Update.
1191 (struct add_partial_filename_data): Add operator().
1192 (add_partial_filename_data::operator()): Rename from
1193 maybe_add_partial_symtab_filename.
1194 (make_source_files_completion_list): Update.
1195 * symfile.c (quick_symbol_functions): Update.
1196 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1197 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1198 'need_fullname'. Remove 'data' parameter.
1199 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1200 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1201 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1202 Change type of 'fun' and 'need_fullname'. Remove 'data'
1204 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1205 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1206 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1208 (mi_cmd_file_list_exec_source_files): Update.
1210 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1212 2021-03-26 Tom Tromey <tom@tromey.com>
1214 * ada-lang.c (struct match_data): Add operator().
1215 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1216 (callback): Remove 'callback'.
1218 2021-03-26 Tom Tromey <tom@tromey.com>
1220 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1221 call make_ignore_params once.
1223 2021-03-26 Tom Tromey <tom@tromey.com>
1225 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1228 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1229 Pedro Alves <pedro@palves.net>
1231 * async-event.c: Include "infrun.h".
1232 (async_event_handler_marked): New.
1233 * async-event.h (async_event_handler_marked): Declare.
1234 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1235 inferior before calling target method. Don't commit-resumed if
1236 target_has_pending_events is true.
1237 * remote.c (remote_target::has_pending_events): New.
1238 * target-delegates.c: Regenerate.
1239 * target.c (target_has_pending_events): New.
1240 * target.h (target_ops::has_pending_events): New target method.
1241 (target_has_pending_events): New.
1243 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1244 Pedro Alves <pedro@palves.net>
1246 * infcmd.c (run_command_1, attach_command, detach_command)
1247 (interrupt_target_1): Use scoped_disable_commit_resumed.
1248 * infrun.c (do_target_resume): Remove
1249 target_commit_resume call.
1250 (commit_resume_all_targets): Remove.
1251 (maybe_set_commit_resumed_all_targets): New.
1252 (maybe_call_commit_resumed_all_targets): New.
1253 (enable_commit_resumed): New.
1254 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1255 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1256 (scoped_disable_commit_resumed::reset)
1257 (scoped_disable_commit_resumed::reset_and_commit)
1258 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1259 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1261 (proceed): Use scoped_disable_commit_resumed and
1262 maybe_call_commit_resumed_all_targets.
1263 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1264 * infrun.h (struct scoped_disable_commit_resumed): New.
1265 (maybe_call_commit_resumed_all_process_targets): New.
1266 (struct scoped_enable_commit_resumed): New.
1267 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1268 * process-stratum-target.h (class process_stratum_target):
1269 <commit_resumed_state>: New.
1270 * record-full.c (record_full_wait_1): Change commit_resumed_state
1271 around calling commit_resumed.
1272 * remote.c (class remote_target) <commit_resume>: Rename to...
1273 <commit_resumed>: ... this.
1274 (struct stop_reply): Move up.
1275 (remote_target::commit_resume): Rename to...
1276 (remote_target::commit_resumed): ... this. Check if there is any
1277 thread pending vCont resume.
1278 (remote_target::remote_stop_ns): Generate stop replies for resumed
1279 but pending vCont threads.
1280 (remote_target::wait_ns): Add gdb_assert.
1281 * target-delegates.c: Regenerate.
1282 * target.c (target_wait, target_resume): Assert that the current
1283 process_stratum target isn't in commit-resumed state.
1284 (defer_target_commit_resume): Remove.
1285 (target_commit_resume): Remove.
1286 (target_commit_resumed): New.
1287 (make_scoped_defer_target_commit_resume): Remove.
1288 (target_stop): Assert that the current process_stratum target
1289 isn't in commit-resumed state.
1290 * target.h (struct target_ops) <commit_resume>: Rename to ...
1291 <commit_resumed>: ... this.
1292 (target_commit_resume): Remove.
1293 (target_commit_resumed): New.
1294 (make_scoped_defer_target_commit_resume): Remove.
1295 * top.c (wait_sync_command_done): Use
1296 scoped_enable_commit_resumed.
1298 2021-03-26 Pedro Alves <pedro@palves.net>
1300 * target.c (target_always_non_stop_p): Also check whether the
1303 2021-03-26 Tom Tromey <tom@tromey.com>
1305 * dwarf2/read.c (dwarf2_read_debug_names)
1306 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1307 (dw2_debug_names_iterator::next, create_type_unit_group):
1310 2021-03-25 Pedro Alves <pedro@palves.net>
1312 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1313 around setting the breakpoint.
1315 2021-03-25 Pedro Alves <pedro@palves.net>
1318 (remote_target::check_pending_events_prevent_wildcard_vcont):
1319 Check whether the event's ptid is not null_ptid before looking up
1320 the corresponding inferior.
1322 2021-03-24 Changbin Du <changbin.du@gmail.com>
1324 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1327 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1329 * target.h (current_top_target): Remove, make callers use the
1330 current inferior instead.
1331 * target.c (current_top_target): Remove.
1333 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1335 * target.h (target_shortname): Change to function declaration.
1336 (target_longname): Likewise.
1337 (target_attach_no_wait): Likewise.
1338 (target_post_attach): Likewise.
1339 (target_prepare_to_store): Likewise.
1340 (target_supports_enable_disable_tracepoint): Likewise.
1341 (target_supports_string_tracing): Likewise.
1342 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1343 (target_supports_dumpcore): Likewise.
1344 (target_dumpcore): Likewise.
1345 (target_can_run_breakpoint_commands): Likewise.
1346 (target_files_info): Likewise.
1347 (target_post_startup_inferior): Likewise.
1348 (target_insert_fork_catchpoint): Likewise.
1349 (target_remove_fork_catchpoint): Likewise.
1350 (target_insert_vfork_catchpoint): Likewise.
1351 (target_remove_vfork_catchpoint): Likewise.
1352 (target_insert_exec_catchpoint): Likewise.
1353 (target_remove_exec_catchpoint): Likewise.
1354 (target_set_syscall_catchpoint): Likewise.
1355 (target_rcmd): Likewise.
1356 (target_can_lock_scheduler): Likewise.
1357 (target_can_async_p): Likewise.
1358 (target_is_async_p): Likewise.
1359 (target_execution_direction): Likewise.
1360 (target_extra_thread_info): Likewise.
1361 (target_pid_to_exec_file): Likewise.
1362 (target_thread_architecture): Likewise.
1363 (target_find_memory_regions): Likewise.
1364 (target_make_corefile_notes): Likewise.
1365 (target_get_bookmark): Likewise.
1366 (target_goto_bookmark): Likewise.
1367 (target_stopped_by_watchpoint): Likewise.
1368 (target_stopped_by_sw_breakpoint): Likewise.
1369 (target_supports_stopped_by_sw_breakpoint): Likewise.
1370 (target_stopped_by_hw_breakpoint): Likewise.
1371 (target_supports_stopped_by_hw_breakpoint): Likewise.
1372 (target_have_steppable_watchpoint): Likewise.
1373 (target_can_use_hardware_watchpoint): Likewise.
1374 (target_region_ok_for_hw_watchpoint): Likewise.
1375 (target_can_do_single_step): Likewise.
1376 (target_insert_watchpoint): Likewise.
1377 (target_remove_watchpoint): Likewise.
1378 (target_insert_hw_breakpoint): Likewise.
1379 (target_remove_hw_breakpoint): Likewise.
1380 (target_can_accel_watchpoint_condition): Likewise.
1381 (target_can_execute_reverse): Likewise.
1382 (target_get_ada_task_ptid): Likewise.
1383 (target_filesystem_is_local): Likewise.
1384 (target_trace_init): Likewise.
1385 (target_download_tracepoint): Likewise.
1386 (target_can_download_tracepoint): Likewise.
1387 (target_download_trace_state_variable): Likewise.
1388 (target_enable_tracepoint): Likewise.
1389 (target_disable_tracepoint): Likewise.
1390 (target_trace_start): Likewise.
1391 (target_trace_set_readonly_regions): Likewise.
1392 (target_get_trace_status): Likewise.
1393 (target_get_tracepoint_status): Likewise.
1394 (target_trace_stop): Likewise.
1395 (target_trace_find): Likewise.
1396 (target_get_trace_state_variable_value): Likewise.
1397 (target_save_trace_data): Likewise.
1398 (target_upload_tracepoints): Likewise.
1399 (target_upload_trace_state_variables): Likewise.
1400 (target_get_raw_trace_data): Likewise.
1401 (target_get_min_fast_tracepoint_insn_len): Likewise.
1402 (target_set_disconnected_tracing): Likewise.
1403 (target_set_circular_trace_buffer): Likewise.
1404 (target_set_trace_buffer_size): Likewise.
1405 (target_set_trace_notes): Likewise.
1406 (target_get_tib_address): Likewise.
1407 (target_set_permissions): Likewise.
1408 (target_static_tracepoint_marker_at): Likewise.
1409 (target_static_tracepoint_markers_by_strid): Likewise.
1410 (target_traceframe_info): Likewise.
1411 (target_use_agent): Likewise.
1412 (target_can_use_agent): Likewise.
1413 (target_augmented_libraries_svr4_read): Likewise.
1414 (target_log_command): Likewise.
1415 * target.c (target_shortname): New.
1416 (target_longname): New.
1417 (target_attach_no_wait): New.
1418 (target_post_attach): New.
1419 (target_prepare_to_store): New.
1420 (target_supports_enable_disable_tracepoint): New.
1421 (target_supports_string_tracing): New.
1422 (target_supports_evaluation_of_breakpoint_conditions): New.
1423 (target_supports_dumpcore): New.
1424 (target_dumpcore): New.
1425 (target_can_run_breakpoint_commands): New.
1426 (target_files_info): New.
1427 (target_post_startup_inferior): New.
1428 (target_insert_fork_catchpoint): New.
1429 (target_remove_fork_catchpoint): New.
1430 (target_insert_vfork_catchpoint): New.
1431 (target_remove_vfork_catchpoint): New.
1432 (target_insert_exec_catchpoint): New.
1433 (target_remove_exec_catchpoint): New.
1434 (target_set_syscall_catchpoint): New.
1436 (target_can_lock_scheduler): New.
1437 (target_can_async_p): New.
1438 (target_is_async_p): New.
1439 (target_execution_direction): New.
1440 (target_extra_thread_info): New.
1441 (target_pid_to_exec_file): New.
1442 (target_thread_architecture): New.
1443 (target_find_memory_regions): New.
1444 (target_make_corefile_notes): New.
1445 (target_get_bookmark): New.
1446 (target_goto_bookmark): New.
1447 (target_stopped_by_watchpoint): New.
1448 (target_stopped_by_sw_breakpoint): New.
1449 (target_supports_stopped_by_sw_breakpoint): New.
1450 (target_stopped_by_hw_breakpoint): New.
1451 (target_supports_stopped_by_hw_breakpoint): New.
1452 (target_have_steppable_watchpoint): New.
1453 (target_can_use_hardware_watchpoint): New.
1454 (target_region_ok_for_hw_watchpoint): New.
1455 (target_can_do_single_step): New.
1456 (target_insert_watchpoint): New.
1457 (target_remove_watchpoint): New.
1458 (target_insert_hw_breakpoint): New.
1459 (target_remove_hw_breakpoint): New.
1460 (target_can_accel_watchpoint_condition): New.
1461 (target_can_execute_reverse): New.
1462 (target_get_ada_task_ptid): New.
1463 (target_filesystem_is_local): New.
1464 (target_trace_init): New.
1465 (target_download_tracepoint): New.
1466 (target_can_download_tracepoint): New.
1467 (target_download_trace_state_variable): New.
1468 (target_enable_tracepoint): New.
1469 (target_disable_tracepoint): New.
1470 (target_trace_start): New.
1471 (target_trace_set_readonly_regions): New.
1472 (target_get_trace_status): New.
1473 (target_get_tracepoint_status): New.
1474 (target_trace_stop): New.
1475 (target_trace_find): New.
1476 (target_get_trace_state_variable_value): New.
1477 (target_save_trace_data): New.
1478 (target_upload_tracepoints): New.
1479 (target_upload_trace_state_variables): New.
1480 (target_get_raw_trace_data): New.
1481 (target_get_min_fast_tracepoint_insn_len): New.
1482 (target_set_disconnected_tracing): New.
1483 (target_set_circular_trace_buffer): New.
1484 (target_set_trace_buffer_size): New.
1485 (target_set_trace_notes): New.
1486 (target_get_tib_address): New.
1487 (target_set_permissions): New.
1488 (target_static_tracepoint_marker_at): New.
1489 (target_static_tracepoint_markers_by_strid): New.
1490 (target_traceframe_info): New.
1491 (target_use_agent): New.
1492 (target_can_use_agent): New.
1493 (target_augmented_libraries_svr4_read): New.
1494 (target_log_command): New.
1495 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1496 * infrun.c (set_schedlock_func): Adjust.
1497 * mi/mi-main.c (exec_reverse_continue): Adjust.
1498 * reverse.c (exec_reverse_once): Adjust.
1499 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1500 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1501 * remote-sim.c (gdbsim_target::detach): Adjust.
1502 (gdbsim_target::files_info): Adjust.
1504 2021-03-24 Tom Tromey <tom@tromey.com>
1506 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1507 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1508 (check_match, dw2_expand_symtabs_matching)
1509 (dwarf2_debug_names_index::map_matching_symbols)
1510 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1512 2021-03-24 Keith Seitz <keiths@redhat.com>
1514 * compile/compile-cplus-types.c
1515 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1518 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1520 * gdbarch.sh (gdbarch_data_registry): Make static.
1521 * gdbarch.c: Re-generate.
1523 2021-03-24 Luis Machado <luis.machado@linaro.org>
1525 * NEWS: Mention memory tagging changes.
1527 2021-03-24 Luis Machado <luis.machado@linaro.org>
1529 * printcmd.c (decode_format): Handle the 'm' modifier.
1530 (do_examine): Display allocation tags when required/supported.
1531 (should_validate_memtags): New function.
1532 (print_command_1): Display memory tag mismatches.
1533 * valprint.c (show_memory_tag_violations): New function.
1534 (value_print_option_defs): Add new option "memory-tag-violations".
1535 (user_print_options) <memory_tag_violations>: Initialize to 1.
1536 * valprint.h (struct format_data) <print_tags>: New field.
1537 (value_print_options) <memory_tag_violations>: New field.
1539 2021-03-24 Luis Machado <luis.machado@linaro.org>
1541 * printcmd.c: Include gdbsupport/rsp-low.h.
1542 (memory_tag_list): New static global.
1543 (process_print_command_args): Factored out of
1545 (print_command_1): Use process_print_command_args.
1546 (show_addr_not_tagged, show_memory_tagging_unsupported)
1547 (memory_tag_command, memory_tag_print_tag_command)
1548 (memory_tag_print_logical_tag_command)
1549 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1550 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1551 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1553 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1555 2021-03-24 Luis Machado <luis.machado@linaro.org>
1557 * aarch64-linux-tdep.c
1558 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1559 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1561 2021-03-24 Luis Machado <luis.machado@linaro.org>
1563 * aarch64-linux-tdep.c
1564 (aarch64_linux_report_signal_info): New function.
1565 (aarch64_linux_init_abi): Register
1566 aarch64_linux_report_signal_info as the report_signal_info hook.
1567 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1568 (SEGV_MTESERR): Define.
1570 2021-03-24 Luis Machado <luis.machado@linaro.org>
1572 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1573 (aarch64_linux_ltag_tests): New function.
1574 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1576 2021-03-24 Luis Machado <luis.machado@linaro.org>
1578 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1579 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1580 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1581 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1583 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1584 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1585 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1586 (aarch64_linux_get_ltag): New functions.
1587 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1588 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1589 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1590 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1592 2021-03-24 Luis Machado <luis.machado@linaro.org>
1594 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1596 (struct smaps_data): New struct.
1597 (decode_vmflags): Handle the 'mt' flag.
1598 (parse_smaps_data): New function, refactored from
1599 linux_find_memory_regions_full.
1600 (linux_address_in_memtag_page): New function.
1601 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1602 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1604 2021-03-24 Luis Machado <luis.machado@linaro.org>
1606 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1607 instead of char arrays.
1609 2021-03-24 Luis Machado <luis.machado@linaro.org>
1611 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1612 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1613 nat/aarch64-mte-linux-ptrace.h.
1614 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1615 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1617 <fetch_memtags>: New method override.
1618 <store_memtags>: New method override.
1619 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1620 (aarch64_linux_nat_target::fetch_memtags): New method.
1621 (aarch64_linux_nat_target::store_memtags): New method.
1622 * arch/aarch64-mte-linux.c: New file.
1623 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1624 (AARCH64_MTE_GRANULE_SIZE): Define.
1625 (aarch64_memtag_type): New enum.
1626 (aarch64_mte_get_tag_granules): New prototype.
1627 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1628 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1629 * nat/aarch64-mte-linux-ptrace.c: New file.
1630 * nat/aarch64-mte-linux-ptrace.h: New file.
1632 2021-03-24 Luis Machado <luis.machado@linaro.org>
1634 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1635 * nat/aarch64-mte-linux-ptrace.h: New file.
1637 2021-03-24 Luis Machado <luis.machado@linaro.org>
1639 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1640 (store_mteregs_to_thread): New function.
1641 (aarch64_linux_nat_target::fetch_registers): Update to call
1642 fetch_mteregs_from_thread.
1643 (aarch64_linux_nat_target::store_registers): Update to call
1644 store_mteregs_to_thread.
1645 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1646 (aarch64_cannot_store_register): Handle MTE registers.
1647 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1648 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1649 <has_mte>: New method.
1650 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1652 2021-03-24 Luis Machado <luis.machado@linaro.org>
1654 * aarch64-linux-nat.c
1655 (aarch64_linux_nat_target::read_description): Take MTE flag into
1657 Slight refactor to hwcap flag checking.
1658 * aarch64-linux-tdep.c
1659 (aarch64_linux_core_read_description): Likewise.
1660 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1662 (aarch64_read_description): Add mte_p parameter and update to use it.
1663 Update the documentation.
1664 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1665 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1666 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1667 (aarch64_create_target_description): Add mte_p parameter and update
1669 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1671 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1672 * features/aarch64-mte.c: New file, generated.
1673 * features/aarch64-mte.xml: New file.
1675 2021-03-24 Luis Machado <luis.machado@linaro.org>
1677 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1678 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1679 * aarch64-linux-tdep.c: Likewise
1680 * arch/aarch64-mte-linux.h: New file.
1682 2021-03-24 Luis Machado <luis.machado@linaro.org>
1684 * remote: Include gdbsupport/selftest.h.
1685 (test_memory_tagging_functions): New function.
1686 (_initialize_remote): Register test_memory_tagging_functions.
1688 2021-03-24 Luis Machado <luis.machado@linaro.org>
1690 * remote.c (PACKET_memory_tagging_feature): New enum.
1691 (remote_memory_tagging_p): New function.
1692 (remote_protocol_features): New "memory-tagging" entry.
1693 (remote_target::remote_query_supported): Handle memory tagging
1695 (remote_target::supports_memory_tagging): Implement.
1696 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1697 (create_store_memtags_request): New functions.
1698 (remote_target::fetch_memtags): Implement.
1699 (remote_target::store_memtags): Implement.
1700 (_initialize_remote): Add new "memory-tagging-feature"
1703 2021-03-24 Luis Machado <luis.machado@linaro.org>
1705 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1706 (default_memtag_matches_p, default_set_memtags)
1707 (default_get_memtag): New functions.
1708 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1709 (default_memtag_matches_p, default_set_memtags)
1710 (default_get_memtag): New prototypes.
1711 * gdbarch.c: Regenerate.
1712 * gdbarch.h: Regenerate.
1713 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1714 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1715 (enum memtag_type): New enum.
1717 2021-03-24 Luis Machado <luis.machado@linaro.org>
1719 * remote.c (remote_target) <supports_memory_tagging>: New method
1721 <fetch_memtags>: New method override.
1722 <store_memtags>: New method override.
1723 (remote_target::supports_memory_tagging): New method.
1724 (remote_target::fetch_memtags): New method.
1725 (remote_target::store_memtags): New method.
1726 * target-delegates.c: Regenerate.
1727 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1729 <fetch_memtags>: New virtual method.
1730 <store_memtags>: New virtual method.
1731 (target_supports_memory_tagging): Define.
1732 (target_fetch_memtags): Define.
1733 (target_store_memtags): Define.
1734 * target-debug.h (target_debug_print_size_t)
1735 (target_debug_print_const_gdb_byte_vector_r)
1736 (target_debug_print_gdb_byte_vector_r): New functions.
1738 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1740 * target.h (target_longname): Remove.
1742 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1744 * target.h (target_is_pushed): Remove, update callers to use
1745 inferior::target_is_pushed instead.
1746 * target.c (target_is_pushed): Remove.
1748 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1750 * target.h (push_target): Remove, update callers to use
1751 inferior::push_target.
1752 * target.c (push_target): Remove.
1753 * inferior.h (class inferior) <push_target>: New overload.
1755 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1757 * target.h (unpush_target): Remove, update all callers
1758 to use `inferior::unpush_target` instead.
1759 (struct target_unpusher) <operator()>: Just declare.
1760 * target.c (unpush_target): Remove.
1761 (target_unpusher::operator()): New.
1763 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1765 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1767 (process_full_comp_unit): Validate the top-level tag before
1768 processing the first DIE.
1769 (read_func_scope): Ensure we have a valid builder.
1771 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1773 * objc-lang.c (objc_demangle): Renamed to
1774 objc_language::demangle_symbol, and moved later in the file.
1775 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1777 (objc_language::demangle_symbol): Defined outside of class
1778 declaration. The definition is the old objc_demangle with NULL
1779 changed to nullptr, and if conditions relating to nullptr pointers
1780 or null character checks made explicit.
1781 * objc-lang.h (objc_demangle): Delete declaration.
1783 2021-03-22 Martin Liska <mliska@suse.cz>
1785 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1786 (_initialize_arm_tdep): Likewise.
1788 2021-03-20 Tom Tromey <tom@tromey.com>
1790 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1791 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1792 * psymtab.h (make_psymbol_functions): Don't declare.
1793 * psymtab.c (make_psymbol_functions): Remove.
1794 (maintenance_print_psymbols): Update.
1795 * psympriv.h (struct psymbol_functions): Add no-argument
1797 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1798 <partial_symtabs>: Remove.
1799 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1800 * elfread.c (read_partial_symbols): Update.
1801 (elf_symfile_read): Remove check for existing partial symbols.
1803 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1805 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1807 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1809 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1810 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1812 2021-03-20 Tom Tromey <tom@tromey.com>
1814 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1815 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1816 * symfile-debug.c (objfile::has_partial_symbols)
1817 (objfile::find_last_source_symtab)
1818 (objfile::forget_cached_source_info)
1819 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1820 (objfile::print_stats, objfile::dump)
1821 (objfile::expand_symtabs_for_function)
1822 (objfile::expand_all_symtabs)
1823 (objfile::expand_symtabs_with_fullname)
1824 (objfile::map_matching_symbols)
1825 (objfile::expand_symtabs_matching)
1826 (objfile::find_pc_sect_compunit_symtab)
1827 (objfile::map_symbol_filenames)
1828 (objfile::find_compunit_symtab_by_address)
1829 (objfile::lookup_global_symbol_language)
1830 (objfile::require_partial_symbols): Update.
1831 * psymtab.c (maintenance_print_psymbols)
1832 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1833 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1834 * objfiles.c (objfile_relocate1): Update.
1835 * elfread.c (elf_symfile_read): Update.
1837 2021-03-20 Tom Tromey <tom@tromey.com>
1839 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1841 2021-03-20 Tom Tromey <tom@tromey.com>
1843 * psymtab.c (psymbol_functions::count_psyms): Rename.
1844 (psymbol_functions::print_stats): Update.
1845 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1848 2021-03-20 Tom Tromey <tom@tromey.com>
1850 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1851 (psymbol_functions::find_pc_sect_psymtab): Rename.
1852 (psymbol_functions::find_pc_sect_compunit_symtab)
1853 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1854 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1856 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1858 2021-03-20 Tom Tromey <tom@tromey.com>
1860 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1861 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1862 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1864 (add_psymbol_to_bcache): Remove.
1865 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1866 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1868 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1869 <add_psymbol>: Likewise.
1870 (standard_psymtab, legacy_psymtab): Likewise.
1871 * mdebugread.c (parse_partial_symbols): Update.
1872 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1873 (handle_psymbol_enumerators): Update.
1874 (new_psymtab): Add partial_symtabs parameter.
1875 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1876 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1878 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1879 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1881 * dbxread.c (read_dbx_symtab): Update.
1882 (start_psymtab): Add partial_symtabs parameter.
1883 (dbx_end_psymtab): Update.
1884 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1885 (ctf_psymtab): Add partial_symtabs parameter.
1886 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1888 (scan_partial_symbols): Add partial_symtabs parameter.
1889 (scan_partial_symbols, elfctf_build_psymtabs)
1890 (ctf_psymtab_add_enums): Update.
1892 2021-03-20 Tom Tromey <tom@tromey.com>
1894 * symfile.c (read_symbols): Use objfile method.
1895 * symfile-debug.c (objfile::require_partial_symbols): New method.
1896 * psymtab.h (require_partial_symbols): Don't declare.
1897 * psymtab.c (require_partial_symbols): Use objfile method. Now
1899 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1900 (psymbol_functions::lookup_symbol)
1901 (psymbol_functions::lookup_global_symbol_language)
1902 (psymbol_functions::find_last_source_symtab)
1903 (psymbol_functions::forget_cached_source_info)
1904 (psymbol_functions::print_stats)
1905 (psymbol_functions::expand_symtabs_for_function)
1906 (psymbol_functions::expand_all_symtabs)
1907 (psymbol_functions::expand_symtabs_with_fullname)
1908 (psymbol_functions::map_symbol_filenames)
1909 (psymbol_functions::map_matching_symbols)
1910 (psymbol_functions::expand_symtabs_matching)
1911 (psymbol_functions::find_compunit_symtab_by_address)
1912 (maintenance_print_psymbols, maintenance_info_psymtabs)
1913 (maintenance_check_psymtabs): Update.
1914 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1917 2021-03-20 Tom Tromey <tom@tromey.com>
1919 * xcoffread.c (xcoff_sym_fns): Update.
1920 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1921 * symfile-debug.c (objfile::has_partial_symbols): Use
1922 can_lazily_read_symbols.
1923 (debug_sym_read_psymbols): Remove.
1924 (debug_sym_fns, install_symfile_debug_logging): Update.
1925 * quick-symbol.h (struct quick_symbol_functions)
1926 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1927 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1928 * mipsread.c (ecoff_sym_fns): Update.
1929 * machoread.c (macho_sym_fns): Update.
1930 * elfread.c (struct lazy_dwarf_reader): New.
1931 (elf_symfile_read): Update.
1932 (read_psyms): Now a method of lazy_dwarf_reader.
1933 (elf_sym_fns): Update.
1934 (elf_sym_fns_lazy_psyms): Remove.
1935 * dbxread.c (aout_sym_fns): Update.
1936 * coffread.c (coff_sym_fns): Update.
1938 2021-03-20 Tom Tromey <tom@tromey.com>
1940 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1941 (reread_symbols): Move reset_psymtabs call later.
1942 * objfiles.c (objfile::objfile): Don't initialize
1945 2021-03-20 Tom Tromey <tom@tromey.com>
1947 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1948 set_partial_symtabs.
1949 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1950 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1952 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1954 (psymbol_functions::find_pc_sect_compunit_symtab)
1955 (psymbol_functions::print_stats, psymbol_functions::dump)
1956 (psymbol_functions::has_symbols): Update.
1957 (make_psymbol_functions, dump_psymtab_addrmap): Add
1958 partial_symtabs parameter.
1959 (maintenance_print_psymbols): Update.
1960 (psymbol_functions::expand_symtabs_matching): Update.
1961 * psympriv.h (struct psymbol_functions): Add constructor.
1962 <m_partial_symtabs>: New member.
1963 <set_partial_symtabs>: New method.
1965 2021-03-20 Tom Tromey <tom@tromey.com>
1967 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1969 (process_psymtab_comp_unit_reader)
1970 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1971 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1972 Reference psymtabs via per_bfd.
1974 2021-03-20 Tom Tromey <tom@tromey.com>
1976 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1978 (add_address_entry): Remove objfile parameter.
1979 (add_address_entry_worker): Update.
1980 (write_address_map): Replace objfile parameter with per_bfd.
1981 (write_gdbindex, write_psymtabs_to_index): Update.
1983 2021-03-20 Tom Tromey <tom@tromey.com>
1985 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1986 print_bcache parameter.
1987 * symfile-debug.c (objfile::print_stats): Add print_bcache
1989 * quick-symbol.h (struct quick_symbol_functions)
1990 <print_stats>: Add print_bcache parameter.
1991 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1993 (print_objfile_statistics): Move psymtab code to psymtab.c.
1994 * psymtab.c (count_psyms): Move from symmisc.c.
1995 (psymbol_functions::print_stats): Print partial symbol and bcache
1996 statistics. Add print_bcache parameter.
1997 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1998 (struct objfile) <print_stats>: Add print_bcache parameter.
1999 * maint.c (maintenance_print_statistics): Update.
2001 2021-03-20 Tom Tromey <tom@tromey.com>
2003 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2005 * dwarf2/read.c (create_addrmap_from_index)
2006 (create_addrmap_from_aranges): Set per_bfd addrmap.
2007 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2008 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2010 (dwarf2_read_debug_names): Don't set partial_symtabs.
2011 (dwarf2_initialize_objfile): Likewise.
2013 2021-03-20 Tom Tromey <tom@tromey.com>
2015 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2018 2021-03-20 Tom Tromey <tom@tromey.com>
2020 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2021 (~psymtab_discarder, keep): Update.
2022 <m_objfile>: Remove.
2023 <m_partial_symtabs>: New member.
2024 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2026 2021-03-20 Tom Tromey <tom@tromey.com>
2028 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2029 (xcoff_end_psymtab): Update.
2030 (scan_xcoff_symtab): Add partial_symtabs parameter.
2031 (xcoff_initial_scan): Update.
2032 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2033 * mdebugread.c (mdebug_build_psymtabs): Update.
2034 (parse_partial_symbols): Add partial_symtabs parameter.
2035 * dbxread.c (dbx_symfile_read): Update.
2036 (read_dbx_symtab): Add partial_symtabs parameter.
2037 (read_dbx_symtab): Update.
2038 (dbx_end_psymtab): Add partial_symtabs parameter.
2040 2021-03-20 Tom Tromey <tom@tromey.com>
2042 * quick-symbol.h (struct quick_symbol_functions)
2043 <relocated>: New method.
2044 * psymtab.h (struct psymbol_functions) <relocated>: New
2046 <fill_psymbol_map>: Declare method.
2047 <m_psymbol_map>: New member.
2048 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2049 (psymbol_functions::find_compunit_symtab_by_address): Update.
2050 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2051 (struct objfile) <psymbol_map>: Remove.
2052 * objfiles.c (objfile_relocate1): Update.
2054 2021-03-20 Tom Tromey <tom@tromey.com>
2056 * psympriv.h (struct psymbol_functions): New.
2057 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2058 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2059 (objfile::lookup_global_symbol_language): Update.
2060 * quick-symbol.h (struct quick_symbol_functions): Convert function
2061 pointers to methods. Add virtual destructor.
2062 (quick_symbol_functions_up): New typedef.
2063 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2064 (dwarf2_debug_names_functions): Don't declare.
2065 (make_psymbol_functions): Declare.
2066 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2067 (psymbol_functions::find_pc_sect_compunit_symtab)
2068 (psymbol_functions::lookup_symbol)
2069 (psymbol_functions::lookup_global_symbol_language)
2070 (psymbol_functions::find_last_source_symtab)
2071 (psymbol_functions::forget_cached_source_info)
2072 (psymbol_functions::print_stats, psymbol_functions::dump)
2073 (psymbol_functions::expand_symtabs_for_function)
2074 (psymbol_functions::expand_all_symtabs)
2075 (psymbol_functions::expand_symtabs_with_fullname)
2076 (psymbol_functions::map_symbol_filenames)
2077 (psymbol_functions::map_matching_symbols)
2078 (psymbol_functions::expand_symtabs_matching)
2079 (psymbol_functions::has_symbols)
2080 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2081 (psym_functions): Remove.
2082 (make_psymbol_functions): New function.
2083 * objfiles.h (struct objfile) <qf>: Change type.
2084 * elfread.c (elf_symfile_read): Update.
2085 * dwarf2/read.c (struct dwarf2_base_index_functions)
2086 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2087 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2088 (dwarf2_base_index_functions::find_last_source_symtab)
2089 (dwarf2_base_index_functions::forget_cached_source_info)
2090 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2091 (dwarf2_gdb_index::lookup_symbol)
2092 (dwarf2_base_index_functions::print_stats)
2093 (dwarf2_gdb_index::dump)
2094 (dwarf2_gdb_index::expand_symtabs_for_function)
2095 (dwarf2_base_index_functions::expand_all_symtabs)
2096 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2098 (dwarf2_gdb_index::map_matching_symbols): New method.
2099 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2100 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2101 (dwarf2_base_index_functions::map_symbol_filenames)
2102 (dwarf2_base_index_functions::has_symbols): Rename.
2103 (dwarf2_gdb_index_functions): Remove.
2104 (dwarf2_debug_names_index::lookup_symbol)
2105 (dwarf2_debug_names_index::dump)
2106 (dwarf2_debug_names_index::expand_symtabs_for_function)
2107 (dwarf2_debug_names_index::map_matching_symbols)
2108 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2109 (dwarf2_debug_names_functions): Remove.
2110 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2113 2021-03-20 Tom Tromey <tom@tromey.com>
2115 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2117 * xcoffread.c (xcoff_sym_fns): Update.
2118 * symfile.h (struct sym_fns) <qf>: Remove.
2119 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2120 * symfile-debug.c (objfile::has_partial_symbols)
2121 (objfile::find_last_source_symtab)
2122 (objfile::forget_cached_source_info)
2123 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2124 (objfile::print_stats, objfile::dump)
2125 (objfile::expand_symtabs_for_function)
2126 (objfile::expand_all_symtabs)
2127 (objfile::expand_symtabs_with_fullname)
2128 (objfile::map_matching_symbols)
2129 (objfile::expand_symtabs_matching)
2130 (objfile::find_pc_sect_compunit_symtab)
2131 (objfile::map_symbol_filenames)
2132 (objfile::find_compunit_symtab_by_address)
2133 (objfile::lookup_global_symbol_language, debug_sym_fns)
2134 (install_symfile_debug_logging): Update.
2135 * objfiles.h (struct objfile) <qf>: New member.
2136 * mipsread.c (ecoff_sym_fns): Update.
2137 * machoread.c (macho_sym_fns): Update.
2138 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2140 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2141 * dbxread.c (aout_sym_fns): Update.
2142 * coffread.c (coff_sym_fns): Update.
2144 2021-03-20 Tom Tromey <tom@tromey.com>
2146 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2147 (expand_symtabs_file_matcher_ftype)
2148 (expand_symtabs_symbol_matcher_ftype)
2149 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2150 Move to quick-symbol.h.
2151 * quick-symbol.h: New file.
2153 2021-03-20 Tom Tromey <tom@tromey.com>
2155 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2156 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2157 (basic_lookup_transparent_type_quick)
2158 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2159 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2161 * symmisc.c (print_objfile_statistics, dump_objfile)
2162 (maintenance_expand_symtabs): Update.
2163 * symfile.c (symbol_file_add_with_addrs)
2164 (expand_symtabs_matching, map_symbol_filenames): Update.
2165 * symfile-debug.c (objfile::has_partial_symbols)
2166 (objfile::find_last_source_symtab)
2167 (objfile::forget_cached_source_info)
2168 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2169 (objfile::print_stats, objfile::dump)
2170 (objfile::expand_symtabs_for_function)
2171 (objfile::expand_all_symtabs)
2172 (objfile::expand_symtabs_with_fullname)
2173 (objfile::map_matching_symbols)
2174 (objfile::expand_symtabs_matching)
2175 (objfile::find_pc_sect_compunit_symtab)
2176 (objfile::map_symbol_filenames)
2177 (objfile::find_compunit_symtab_by_address)
2178 (objfile::lookup_global_symbol_language): New methods.
2179 (debug_sym_quick_functions): Remove.
2180 (debug_sym_fns, install_symfile_debug_logging): Update.
2181 * source.c (forget_cached_source_info_for_objfile)
2182 (select_source_symtab): Update.
2183 * objfiles.h (struct objfile): Add methods corresponding to
2184 quick_symbol_functions.
2185 * objfiles.c (objfile::has_partial_symbols): Move to
2187 * linespec.c (iterate_over_all_matching_symtabs): Update.
2188 * cp-support.c (add_symbol_overload_list_qualified): Update.
2189 * ada-lang.c (add_nonlocal_symbols): Update.
2191 2021-03-20 Tom Tromey <tom@tromey.com>
2193 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2194 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2196 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2197 * psymtab.c (psym_has_symbols): Return bool.
2198 * objfiles.c (objfile::has_partial_symbols): Return bool.
2199 * dwarf2/read.c (dw2_has_symbols): Return bool.
2201 2021-03-20 Tom Tromey <tom@tromey.com>
2203 * symfile.c (read_symbols): Update.
2204 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2205 (objfile_has_partial_symbols): Don't declare.
2206 * objfiles.c (objfile::has_partial_symbols): Rename from
2207 objfile_has_partial_symbols.
2208 (objfile_has_symbols, have_partial_symbols): Update.
2209 * elfread.c (elf_symfile_read): Update.
2210 * dwarf2/read.c (dwarf2_has_info): Update.
2211 * coffread.c (coff_symfile_read): Update.
2213 2021-03-20 Tom Tromey <tom@tromey.com>
2215 * coffread.c: Include dwarf2/public.h.
2216 * dwarf2/frame.c: Include dwarf2/public.h.
2217 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2218 * dwarf2/public.h: New file.
2219 * dwarf2/read.c: Include dwarf2/public.h.
2220 * elfread.c: Include dwarf2/public.h.
2221 * machoread.c: Include dwarf2/public.h.
2222 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2223 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2224 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2225 * xcoffread.c: Include dwarf2/public.h.
2227 2021-03-20 Tom Tromey <tom@tromey.com>
2229 * symfile.h (enum dwarf2_section_enum)
2230 (dwarf2_get_section_info): Move to dwarf2/read.h.
2231 * dwarf2/read.h (enum dwarf2_section_enum)
2232 (dwarf2_get_section_info): Move from symfile.h.
2234 2021-03-19 Pedro Alves <pedro@palves.net>
2236 * thread.c (any_thread_of_inferior): Check if there's a selected
2237 thread before calling inferior_thread().
2239 2021-03-18 Tom Tromey <tromey@adacore.com>
2241 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2243 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2244 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2246 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2248 * python/py-param.c (get_set_value): Update header comment.
2250 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2252 * infrun.c (check_multi_target_resumption): Remove argument to
2253 all_non_exited_inferiors.
2255 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2257 * windows-nat.c (windows_init_thread_list): Add message to
2260 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2262 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2263 well as PyLong_Check for Python 2.
2265 2021-03-15 Tom Tromey <tromey@adacore.com>
2268 * rust-exp.y (maker_map): Use gdb::hash_enum.
2269 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2271 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2273 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2276 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2278 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2279 parameter, adjust caller.
2281 2021-03-15 Tom Tromey <tromey@adacore.com>
2283 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2285 2021-03-15 Tom Tromey <tromey@adacore.com>
2287 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2288 ada_ensure_varsize_limit.
2290 2021-03-15 Tom Tromey <tromey@adacore.com>
2292 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2294 * ada-exp.y (maybe_overload): New function.
2295 (ada_wrap_overload): New function.
2296 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2297 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2298 (or_else_exp, xor_exp, primary): Update.
2300 2021-03-15 Tom Tromey <tromey@adacore.com>
2303 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2304 call for tagged type.
2306 2021-03-15 Tom Tromey <tromey@adacore.com>
2308 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2311 2021-03-15 Tom Tromey <tromey@adacore.com>
2313 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2315 (ada_assign_operation::evaluate): Update.
2316 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2319 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2321 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2323 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2325 * python/python.c (gdbpy_source_objfile_script): Use
2326 make_scoped_restore to restore gdbpy_current_objfile.
2327 (gdbpy_execute_objfile_script): Likewise.
2329 2021-03-14 Tom Tromey <tom@tromey.com>
2331 * dwarf2/read.c (read_attribute_value): Use cu_header
2334 2021-03-14 Tom Tromey <tom@tromey.com>
2336 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2337 (peek_die_abbrev): Use reader.abfd.
2339 2021-03-14 Tom Tromey <tom@tromey.com>
2341 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2344 2021-03-13 Tom Tromey <tom@tromey.com>
2346 * dwarf2/read.c (struct partial_die_info): Update.
2347 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2348 (load_partial_dies, partial_die_info::partial_die_info): Update.
2349 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2351 2021-03-13 Tom Tromey <tom@tromey.com>
2353 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2355 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2358 * cp-support.c: Use scoped_segv_handler_restore.
2359 * event-top.c (thread_local_segv_handler): Made static.
2360 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2362 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2364 * event-top.h (class scoped_segv_handler_restore): New class.
2365 (thread_local_segv_handler): Removed.
2367 2021-03-10 Tom Tromey <tromey@adacore.com>
2369 * parser-defs.h (parser_state): Change completion to bool.
2370 <parse_completion>: Likewise.
2371 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2372 (ada_resolve_variable, ada_resolve_function): Update.
2373 * ada-lang.c (ada_find_operator_symbol): Change
2374 parse_completion to bool.
2375 (ada_resolve_funcall, ada_resolve_variable)
2376 (ada_resolve_function): Likewise.
2378 2021-03-09 Tom Tromey <tromey@adacore.com>
2380 * eval.c (operation::evaluate_funcall): Use function formal
2381 parameter types when evaluating.
2383 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2385 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2386 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2387 and owner to m_owner.
2389 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2391 * f-exp.h (eval_op_f_loc): Declare.
2392 (expr::fortran_loc_operation): New typedef.
2393 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2395 (f77_keywords): Add LOC keyword.
2396 * f-lang.c (eval_op_f_loc): New function.
2397 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2399 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2401 * f-exp.h (eval_op_f_array_shape): Declare.
2402 (fortran_array_shape_operation): New type.
2403 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2405 (f77_keywords): Add "shape" keyword.
2406 * f-lang.c (fortran_array_shape): New function.
2407 (eval_op_f_array_shape): New function.
2408 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2410 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2412 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2414 (expr::fortran_array_size_1arg): New type.
2415 (expr::fortran_array_size_2arg): Likewise.
2416 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2417 UNOP_OR_BINOP_INTRINSIC.
2418 (f77_keywords): Add "size" keyword.
2419 * f-lang.c (fortran_array_size): New function.
2420 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2421 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2423 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2425 * f-exp.h (eval_op_f_rank): Declare.
2426 (expr::fortran_rank_operation): New typedef.
2427 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2429 (f77_keywords): Add "rank" keyword.
2430 * f-lang.c (eval_op_f_rank): New function.
2431 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2433 2021-03-08 Tom Tromey <tom@tromey.com>
2435 * printcmd.c (set_command): Remove null check.
2436 * value.c (init_if_undefined_command): Remove null check.
2438 2021-03-08 Tom Tromey <tom@tromey.com>
2440 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2442 * p-exp.y (variable): Update.
2443 * go-exp.y (variable): Update.
2444 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2445 Remove overload for objfile.
2446 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2448 (check_objfile): Likewise.
2449 (dump_for_expression): Likewise. Remove overload for objfile.
2450 (class var_msym_value_operation): Use bound_minimal_symbol.
2451 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2453 (var_msym_value_operation::evaluate_for_address)
2454 (var_msym_value_operation::evaluate_for_sizeof)
2455 (var_msym_value_operation::evaluate_for_cast): Update.
2456 * d-exp.y (PrimaryExpression): Update.
2457 * c-exp.y (variable): Update.
2458 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2459 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2461 * ada-exp.y (write_var_or_type): Update.
2463 2021-03-08 Tom Tromey <tom@tromey.com>
2465 * parser-defs.h (exp_uses_objfile): Return bool.
2466 * parse.c (exp_uses_objfile): Return bool.
2468 2021-03-08 Tom Tromey <tom@tromey.com>
2470 * value.h (eval_skip_value): Don't declare.
2471 * opencl-lang.c (eval_opencl_assign): Update.
2472 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2473 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2474 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2475 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2476 * expop.h (typeof_operation::evaluate)
2477 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2478 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2479 (cxx_cast_operation::evaluate): Update.
2480 * eval.c (eval_skip_value): Remove.
2481 (eval_op_scope, eval_op_var_entry_value)
2482 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2483 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2484 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2485 (eval_op_binary, eval_op_subscript, eval_op_equal)
2486 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2487 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2488 (eval_op_complement, eval_op_lognot, eval_op_ind)
2489 (eval_op_memval, eval_op_preinc, eval_op_predec)
2490 (eval_op_postinc, eval_op_postdec, eval_op_type)
2491 (eval_binop_assign_modify, eval_op_objc_msgcall)
2492 (eval_multi_subscript, logical_and_operation::evaluate)
2493 (logical_or_operation::evaluate, array_operation::evaluate)
2494 (operation::evaluate_for_cast)
2495 (var_msym_value_operation::evaluate_for_cast)
2496 (var_value_operation::evaluate_for_cast): Update.
2497 * c-lang.c (c_string_operation::evaluate): Update.
2498 * c-exp.h (objc_nsstring_operation::evaluate)
2499 (objc_selector_operation::evaluate): Update.
2500 * ada-lang.c (ada_assign_operation::evaluate)
2501 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2502 (ada_atr_size): Update.
2504 2021-03-08 Tom Tromey <tom@tromey.com>
2506 * eval.c: Merge "namespace" scopes.
2508 2021-03-08 Tom Tromey <tom@tromey.com>
2510 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2512 * parse.c (expr_builder::expr_builder, expr_builder::release):
2515 2021-03-08 Tom Tromey <tom@tromey.com>
2517 * parse.c (expression::expression, expression::~expression):
2519 * expression.h (struct expression): Inline constructor. Remove
2522 2021-03-08 Tom Tromey <tom@tromey.com>
2524 * std-operator.def (BINOP_END): Remove.
2525 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2526 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2527 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2528 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2529 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2532 2021-03-08 Tom Tromey <tom@tromey.com>
2534 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2536 2021-03-08 Tom Tromey <tom@tromey.com>
2538 * std-operator.def (OP_EXTENDED0): Remove.
2540 2021-03-08 Tom Tromey <tom@tromey.com>
2542 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2543 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2546 2021-03-08 Tom Tromey <tom@tromey.com>
2548 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2549 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2551 2021-03-08 Tom Tromey <tom@tromey.com>
2553 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2554 * ada-lang.c (ada_binop_minmax): Update.
2555 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2556 Use BINOP_MIN and BINOP_MAX.
2558 2021-03-08 Tom Tromey <tom@tromey.com>
2560 * value.h (evaluate_subexp_with_coercion): Don't declare.
2561 * parse.c (exp_descriptor_standard): Remove.
2562 (expr_builder::expr_builder, expr_builder::release): Update.
2563 (expression::expression): Remove size_t parameter.
2564 (expression::~expression): Simplify.
2565 (expression::resize): Remove.
2566 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2567 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2568 (write_exp_elt_longcst, write_exp_elt_floatcst)
2569 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2570 (write_exp_string_vector, write_exp_bitstring): Remove.
2571 * p-lang.h (class pascal_language) <opcode_print_table,
2572 op_print_tab>: Remove.
2573 * p-lang.c (pascal_language::op_print_tab): Remove.
2574 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2576 * objc-lang.c (objc_op_print_tab): Remove.
2577 (class objc_language) <opcode_print_table>: Remove.
2578 * m2-lang.h (class m2_language) <opcode_print_table,
2579 op_print_tab>: Remove.
2580 * m2-lang.c (m2_language::op_print_tab): Remove.
2581 * language.h (struct language_defn) <post_parser, expression_ops,
2582 opcode_print_table>: Remove.
2583 * language.c (language_defn::expression_ops)
2584 (auto_or_unknown_language::opcode_print_table): Remove.
2585 * go-lang.h (class go_language) <opcode_print_table,
2586 op_print_tab>: Remove.
2587 * go-lang.c (go_language::op_print_tab): Remove.
2588 * f-lang.h (class f_language) <opcode_print_table>: Remove
2589 <op_print_tab>: Remove.
2590 * f-lang.c (f_language::op_print_tab): Remove.
2591 * expression.h (union exp_element): Remove.
2592 (struct expression): Remove size_t parameter from constructor.
2594 <first_opcode>: Update.
2595 <nelts, elts>: Remove.
2596 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2597 (evaluate_subexp_standard, print_expression, op_string)
2598 (dump_raw_expression): Don't declare.
2599 * expprint.c (print_expression, print_subexp)
2600 (print_subexp_funcall, print_subexp_standard, op_string)
2601 (dump_raw_expression, dump_subexp, dump_subexp_body)
2602 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2603 (dump_prefix_expression): Update.
2604 * eval.c (evaluate_subexp): Remove.
2605 (evaluate_expression, evaluate_type): Update.
2606 (evaluate_subexpression_type): Remove.
2607 (fetch_subexp_value): Remove "pc" parameter. Update.
2608 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2609 (evaluate_subexp_standard, evaluate_subexp_for_address)
2610 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2611 (evaluate_subexp_for_cast): Remove.
2612 (parse_and_eval_type): Update.
2613 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2614 * d-lang.c (d_op_print_tab): Remove.
2615 (class d_language) <opcode_print_table>: Remove.
2616 * c-lang.h (c_op_print_tab): Don't declare.
2617 * c-lang.c (c_op_print_tab): Remove.
2618 (class c_language, class cplus_language, class asm_language, class
2619 minimal_language) <opcode_print_table>: Remove.
2620 * breakpoint.c (update_watchpoint, watchpoint_check)
2621 (watchpoint_exp_is_const, watch_command_1): Update.
2622 * ax-gdb.h (union exp_element): Don't declare.
2623 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2624 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2625 (gen_expr_binop_rest): Remove.
2626 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2627 * ada-lang.c (ada_op_print_tab): Remove.
2628 (class ada_language) <post_parser, opcode_print_table>: Remove.
2630 2021-03-08 Tom Tromey <tom@tromey.com>
2632 * go-lang.c (go_language::expression_ops): Don't declare.
2633 * go-lang.h (class go_language) <expression_ops>: Remove.
2634 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2636 (class opencl_language) <expression_ops>: Remove.
2637 * d-lang.c (class d_language) <expression_ops>: Remove.
2638 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2639 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2640 (class c_language, class cplus_language, class asm_language)
2641 (class minimal_language) <expression_ops>: Remove.
2643 2021-03-08 Tom Tromey <tom@tromey.com>
2645 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2646 (evaluate_subexp_type, assign_aggregate)
2647 (aggregate_assign_positional, aggregate_assign_from_choices)
2648 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2649 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2650 (ada_operator_check, ada_forward_operator_length)
2651 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2653 (post_parser): Update.
2654 (class ada_language) <expresssion_ops>: Remove.
2656 2021-03-08 Tom Tromey <tom@tromey.com>
2658 * m2-lang.h (class m2_language) <expresssion_ops,
2659 exp_descriptor_modula2>: Remove.
2660 * m2-lang.c (evaluate_subexp_modula2)
2661 (m2_language::exp_descriptor_modula2): Remove.
2663 2021-03-08 Tom Tromey <tom@tromey.com>
2665 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2666 <exp_descriptor_tab>: Remove.
2667 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2668 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2669 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2670 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2673 2021-03-08 Tom Tromey <tom@tromey.com>
2675 * rust-lang.h (class rust_language) <expression_ops,
2676 exp_descriptor_tab>: Remove.
2677 * rust-lang.c (rust_evaluate_funcall): Remove.
2678 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2680 (rust_evaluate_subexp): Remove.
2681 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2682 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2683 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2685 2021-03-08 Tom Tromey <tom@tromey.com>
2687 * ada-exp.y: Create operations.
2688 (empty_stoken): Remove.
2689 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2690 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2691 (components): New global.
2692 (push_component, choice_component, pop_component, pop_components):
2694 (associations): New global
2695 (push_association, pop_association, pop_associations): New
2697 (ada_parse): Update.
2698 (write_var_from_sym, write_int): Create operations.
2699 (write_exp_op_with_string): Remove.
2700 (write_object_renaming, write_selectors, write_ambiguous_var)
2701 (write_var_or_type, write_name_assoc): Create operations.
2702 * ada-lang.h (ada_index_type): Declare.
2703 * ada-lang.c (ada_index_type): No longer static.
2705 2021-03-08 Tom Tromey <tom@tromey.com>
2707 * f-exp.y: Create operations.
2708 (f_language::parser): Update.
2710 2021-03-08 Tom Tromey <tom@tromey.com>
2712 * m2-exp.y: Create operations.
2713 (m2_language::parser): Update.
2715 2021-03-08 Tom Tromey <tom@tromey.com>
2717 * p-exp.y: Create operations.
2718 (pascal_language::parser): Update.
2720 2021-03-08 Tom Tromey <tom@tromey.com>
2722 * d-exp.y: Create operations.
2725 2021-03-08 Tom Tromey <tom@tromey.com>
2727 * go-exp.y: Create operations.
2728 (go_language::parser): Update.
2730 2021-03-08 Tom Tromey <tom@tromey.com>
2732 * objc-lang.c (end_msglist): Create operations.
2733 * c-exp.y: Change parser to create operations.
2734 (write_destructor_name): Remove.
2737 2021-03-08 Tom Tromey <tom@tromey.com>
2739 * rust-exp.y: Create operations.
2740 (rust_parser::convert_params_to_expression): Change return type.
2741 (binop_maker_ftype): New typedef.
2742 (maker_map): New global.
2743 (rust_parser::convert_ast_to_expression): Change return type.
2744 (rust_language::parser): Update.
2745 (_initialize_rust_exp): Initialize maker_map.
2747 2021-03-08 Tom Tromey <tom@tromey.com>
2749 * stap-probe.c (binop_maker_ftype): New typedef.
2750 (stap_maker_map): New global.
2751 (stap_make_binop): New function.
2752 (stap_parse_register_operand): Return operation_up.
2753 (stap_parse_single_operand, stap_parse_argument_conditionally)
2754 (stap_parse_argument_1): Likewise.
2755 (stap_parse_argument): Create operations.
2756 (stap_probe::parse_arguments): Update.
2757 (_initialize_stap_probe): Initialize stap_maker_map.
2758 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2760 * i386-tdep.h (i386_stap_parse_special_token): Change return
2762 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2763 (i386_stap_parse_special_token_three_arg_disp)
2764 (i386_stap_parse_special_token): Change return type.
2765 * gdbarch.sh (stap_parse_special_token): Change return type.
2766 * gdbarch.c: Rebuild.
2767 * gdbarch.h: Rebuild.
2768 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2770 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2773 2021-03-08 Tom Tromey <tom@tromey.com>
2775 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2776 * gdbarch.h: Rebuild.
2777 * gdbarch.c: Rebuild.
2778 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2779 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2781 (amd64_dtrace_parse_probe_argument): Update.
2783 2021-03-08 Tom Tromey <tom@tromey.com>
2785 * parser-defs.h (struct parser_state) <push, push_new,
2786 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2787 wrap2>: New methods.
2788 <m_operations>: New member.
2789 * parse.c (parser_state::push_c_string)
2790 (parser_state::push_symbol, parser_state::push_dollar): New
2793 2021-03-08 Tom Tromey <tom@tromey.com>
2795 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2797 (struct parser_state) <mark_struct_expression>: New method.
2798 * parse.c (parser_state::mark_struct_expression): Update assert.
2799 (parser_state::mark_struct_expression): New method.
2800 (parser_state::mark_completion_tag): Update assert.
2801 (parse_expression_for_completion): Handle expout_last_op.
2803 2021-03-08 Tom Tromey <tom@tromey.com>
2805 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2807 * value.h (fetch_subexp_value): Add "op" parameter.
2808 * value.c (init_if_undefined_command): Update.
2809 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2810 * stap-probe.c (stap_probe::compile_to_ax): Update.
2811 * printcmd.c (set_command): Update.
2812 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2814 * parser-defs.h (struct expr_builder) <set_operation>: New
2816 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2817 * expression.h (struct expression) <first_opcode>: Update.
2819 * expprint.c (dump_raw_expression, dump_prefix_expression):
2821 * expop.h (class var_value_operation) <get_symbol>: New method.
2822 (class register_operation) <get_name>: New method.
2823 (class equal_operation): No longer a typedef, now a subclass.
2824 (class unop_memval_operation) <get_type>: New method.
2825 (class assign_operation) <get_lhs>: New method.
2826 (class unop_cast_operation) <get_type>: New method.
2827 * eval.c (evaluate_expression, evaluate_type)
2828 (evaluate_subexpression_type): Update.
2829 (fetch_subexp_value): Add "op" parameter.
2830 (parse_and_eval_type): Update.
2831 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2832 * breakpoint.c (update_watchpoint, watchpoint_check)
2833 (watchpoint_exp_is_const, watch_command_1): Update.
2834 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2837 2021-03-08 Tom Tromey <tom@tromey.com>
2839 * ada-lang.c (ada_value_binop): Do not use op_string.
2841 2021-03-08 Tom Tromey <tom@tromey.com>
2843 * expprint.c (dump_for_expression): New overload.
2844 * expop.h (check_objfile, dump_for_expression): Declare new
2846 * ada-lang.c (check_objfile): New overload.
2847 (assign_component, ada_aggregate_component::uses_objfile)
2848 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2849 (ada_aggregate_component::assign_aggregate)
2850 (ada_positional_component::uses_objfile)
2851 (ada_positional_component::dump, ada_positional_component::assign)
2852 (ada_discrete_range_association::uses_objfile)
2853 (ada_discrete_range_association::dump)
2854 (ada_discrete_range_association::assign)
2855 (ada_name_association::uses_objfile, ada_name_association::dump)
2856 (ada_name_association::assign)
2857 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2858 (ada_choices_component::assign)
2859 (ada_others_component::uses_objfile, ada_others_component::dump)
2860 (ada_others_component::assign, ada_assign_operation::evaluate):
2862 * ada-exp.h (ada_string_operation) <get_name>: New method.
2863 (class ada_assign_operation): New.
2864 (class ada_component): New.
2865 (ada_component_up): New typedef.
2866 (class ada_aggregate_operation, class ada_aggregate_component)
2867 (class ada_positional_component, class ada_others_component)
2868 (class ada_association): New.
2869 (ada_association_up): New typedef.
2870 (class ada_choices_component)
2871 (class ada_discrete_range_association)
2872 (class ada_name_association): New.
2874 2021-03-08 Tom Tromey <tom@tromey.com>
2876 * ada-lang.c (ada_var_value_operation::resolve)
2877 (ada_funcall_operation::resolve)
2878 (ada_ternop_slice_operation::resolve): New methods.
2879 * ada-exp.h (struct ada_resolvable): New.
2880 (class ada_var_value_operation): Derive from ada_resolvable.
2881 <get_block, resolve>: New methods.
2882 (class ada_funcall_operation): Derive from ada_resolvable.
2883 <resolve>: New method.
2884 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2885 <resolve>: New method.
2887 2021-03-08 Tom Tromey <tom@tromey.com>
2889 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2890 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2892 (class ada_funcall_operation): New.
2894 2021-03-08 Tom Tromey <tom@tromey.com>
2896 * ada-lang.c (ada_structop_operation::evaluate): New method.
2897 * ada-exp.h (class ada_structop_operation): New.
2899 2021-03-08 Tom Tromey <tom@tromey.com>
2901 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2902 * ada-exp.h (class ada_unop_ind_operation): New.
2904 2021-03-08 Tom Tromey <tom@tromey.com>
2906 * ada-lang.c (ada_binop_exp): No longer static.
2907 * ada-exp.h (ada_binop_exp_operation): New typedef.
2909 2021-03-08 Tom Tromey <tom@tromey.com>
2911 * ada-lang.c (ada_val_atr): No longer static.
2912 (ada_atr_val_operation::evaluate): New method.
2913 * ada-exp.h (class ada_atr_val_operation): New.
2915 2021-03-08 Tom Tromey <tom@tromey.com>
2917 * ada-lang.c (ada_pos_atr): No longer static.
2918 * ada-exp.h (ada_pos_operation): New typedef.
2920 2021-03-08 Tom Tromey <tom@tromey.com>
2922 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2924 (ada_evaluate_subexp): Use it.
2926 2021-03-08 Tom Tromey <tom@tromey.com>
2928 * ada-lang.c (ada_binop_minmax): No longer static.
2929 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2932 2021-03-08 Tom Tromey <tom@tromey.com>
2934 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2936 * ada-exp.h (class ada_var_msym_value_operation): New.
2938 2021-03-08 Tom Tromey <tom@tromey.com>
2940 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2941 (ada_var_value_operation::evaluate): New methods.
2942 * ada-exp.h (class ada_var_value_operation): New.
2944 2021-03-08 Tom Tromey <tom@tromey.com>
2946 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2947 * ada-exp.h (class ada_unop_atr_operation): New.
2949 2021-03-08 Tom Tromey <tom@tromey.com>
2951 * ada-lang.c (ada_binop_in_bounds): No longer static.
2952 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2954 2021-03-08 Tom Tromey <tom@tromey.com>
2956 * ada-lang.c (ada_ternop_slice): No longer static.
2957 * ada-exp.h (class ada_ternop_slice_operation): New.
2959 2021-03-08 Tom Tromey <tom@tromey.com>
2961 * ada-exp.h (ada_bitwise_operation): New template class.
2962 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2963 (ada_bitwise_xor_operation): New typedefs.
2965 2021-03-08 Tom Tromey <tom@tromey.com>
2967 * ada-lang.c (ada_equal_binop): No longer static.
2968 * ada-exp.h (class ada_binop_equal_operation): New.
2970 2021-03-08 Tom Tromey <tom@tromey.com>
2972 * ada-lang.c (ada_mult_binop): No longer static.
2973 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2974 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2976 2021-03-08 Tom Tromey <tom@tromey.com>
2978 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2979 * ada-exp.h (class ada_binop_addsub_operation): New.
2981 2021-03-08 Tom Tromey <tom@tromey.com>
2983 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2984 (ada_resolve_variable): Declare.
2985 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2986 (ada_resolve_variable): New functions.
2987 (resolve_subexp): Update.
2989 2021-03-08 Tom Tromey <tom@tromey.com>
2991 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2993 * c-exp.h (class opencl_ternop_cond_operation): New.
2995 2021-03-08 Tom Tromey <tom@tromey.com>
2997 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2999 * c-exp.h (class opencl_logical_binop_operation): New.
3001 2021-03-08 Tom Tromey <tom@tromey.com>
3003 * opencl-lang.c (opencl_structop_operation::evaluate): New
3005 * c-exp.h (class opencl_structop_operation): New.
3007 2021-03-08 Tom Tromey <tom@tromey.com>
3009 * opencl-lang.c (opencl_logical_not): No longer static. Change
3011 (evaluate_subexp_opencl): Update.
3012 * c-exp.h (opencl_notequal_operation): New typedef.
3014 2021-03-08 Tom Tromey <tom@tromey.com>
3016 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3017 static. Change parameters.
3018 (eval_opencl_assign): No longer static. Add "op" parameter.
3019 (evaluate_subexp_opencl): Update.
3020 * c-exp.h (opencl_binop_operation): New template class.
3021 (opencl_assign_operation, opencl_equal_operation)
3022 (opencl_notequal_operation, opencl_less_operation)
3023 (opencl_gtr_operation, opencl_geq_operation)
3024 (opencl_leq_operation): New typedefs.
3026 2021-03-08 Tom Tromey <tom@tromey.com>
3028 * opencl-lang.c (opencl_value_cast): No longer static.
3029 * c-exp.h (opencl_cast_type_operation): New typedef.
3031 2021-03-08 Tom Tromey <tom@tromey.com>
3033 * f-exp.h (eval_op_f_allocated): Declare.
3034 (fortran_allocated_operation): New typedef.
3035 * f-lang.c (eval_op_f_allocated): No longer static.
3037 2021-03-08 Tom Tromey <tom@tromey.com>
3039 * f-lang.c (eval_op_f_associated): New functions.
3040 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3043 2021-03-08 Tom Tromey <tom@tromey.com>
3045 * f-lang.c (fortran_bound_1arg::evaluate)
3046 (fortran_bound_2arg::evaluate): New methods.
3047 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3050 2021-03-08 Tom Tromey <tom@tromey.com>
3052 * expop.h (class unop_addr_operation) <get_expression>: New
3054 * f-lang.c (fortran_undetermined::value_subarray)
3055 (fortran_undetermined::evaluate): New methods.
3056 (fortran_prepare_argument): New overload.
3057 * f-exp.h (class fortran_range_operation)
3058 (class fortran_undetermined): New classes.
3060 2021-03-08 Tom Tromey <tom@tromey.com>
3062 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3063 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3066 2021-03-08 Tom Tromey <tom@tromey.com>
3068 * expression.h (class operation) <evaluate_funcall>: New methods.
3069 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3070 (class var_value_operation) <evaluate_funcall>: New method.
3071 (class structop_base_operation) <evaluate_funcall>: New method.
3072 (class var_msym_value_operation) <evaluate_funcall>: New method.
3073 (class structop_member_base): New class.
3074 (class structop_member_operation): Derive from
3075 structop_member_base.
3076 (class structop_mptr_operation): Derive from
3077 structop_member_base.
3078 (class funcall_operation): New class.
3079 * eval.c (operation::evaluate_funcall)
3080 (var_value_operation::evaluate_funcall)
3081 (scope_operation::evaluate_funcall)
3082 (structop_member_base::evaluate_funcall)
3083 (structop_base_operation::evaluate_funcall): New methods.
3085 2021-03-08 Tom Tromey <tom@tromey.com>
3087 * expop.h (class array_operation): New.
3088 * eval.c (array_operation::evaluate_struct_tuple)
3089 (array_operation::evaluate): New methods.
3091 2021-03-08 Tom Tromey <tom@tromey.com>
3093 * expop.h (class adl_func_operation): New.
3094 * eval.c (adl_func_operation::evaluate): New method.
3096 2021-03-08 Tom Tromey <tom@tromey.com>
3098 * ada-lang.c (ada_unop_in_range): No longer static.
3099 * ada-exp.h (class ada_unop_range_operation): New.
3101 2021-03-08 Tom Tromey <tom@tromey.com>
3103 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3105 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3106 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3108 2021-03-08 Tom Tromey <tom@tromey.com>
3110 * expop.h (class logical_and_operation)
3111 (class logical_or_operation): New.
3112 * eval.c (logical_and_operation::evaluate)
3113 (logical_or_operation::evaluate): New methods.
3114 * ax-gdb.c (logical_and_operation::do_generate_ax)
3115 (logical_or_operation::do_generate_ax): New methods.
3117 2021-03-08 Tom Tromey <tom@tromey.com>
3119 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3121 * m2-exp.h: New file.
3123 2021-03-08 Tom Tromey <tom@tromey.com>
3125 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3126 * rust-exp.h (class rust_aggregate_operation): New.
3128 2021-03-08 Tom Tromey <tom@tromey.com>
3130 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3132 * rust-exp.h (class rust_struct_anon): New.
3133 (class rust_structop): New.
3135 2021-03-08 Tom Tromey <tom@tromey.com>
3137 * rust-lang.c (rust_range): No longer static.
3138 * rust-exp.h (class rust_range_operation): New.
3140 2021-03-08 Tom Tromey <tom@tromey.com>
3142 * rust-lang.c (rust_subscript): No longer static.
3143 * rust-exp.h (class rust_subscript_operation): New.
3145 2021-03-08 Tom Tromey <tom@tromey.com>
3147 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3149 (rust_evaluate_subexp): Update.
3150 * rust-exp.h (class rust_unop_ind_operation): New.
3152 2021-03-08 Tom Tromey <tom@tromey.com>
3154 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3155 longer static. Add "opcode" parameter.
3156 (rust_evaluate_subexp): Update.
3157 * rust-exp.h: New file.
3159 2021-03-08 Tom Tromey <tom@tromey.com>
3161 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3162 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3163 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3164 (evaluate_subexp_f): Update.
3165 * f-exp.h: New file.
3167 2021-03-08 Tom Tromey <tom@tromey.com>
3169 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3170 * ada-exp.h (class ada_ternop_range_operation): New.
3172 2021-03-08 Tom Tromey <tom@tromey.com>
3174 * ada-lang.c (ada_qual_operation::evaluate): New method.
3175 * ada-exp.h (class ada_qual_operation): New.
3177 2021-03-08 Tom Tromey <tom@tromey.com>
3179 * ada-lang.c (ada_string_operation::evaluate): New method.
3180 * ada-exp.h (class ada_string_operation): New.
3182 2021-03-08 Tom Tromey <tom@tromey.com>
3184 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3185 * ada-exp.h: New file.
3187 2021-03-08 Tom Tromey <tom@tromey.com>
3189 * expop.h (class multi_subscript_operation): New.
3190 * eval.c (multi_subscript_operation::evaluate): New method.
3192 2021-03-08 Tom Tromey <tom@tromey.com>
3194 * eval.c (objc_msgcall_operation::evaluate): New method.
3195 * c-exp.h (class objc_msgcall_operation): New.
3197 2021-03-08 Tom Tromey <tom@tromey.com>
3199 * expop.h (class var_value_operation): New.
3200 * eval.c (var_value_operation::evaluate)
3201 (var_value_operation::evaluate_for_address)
3202 (var_value_operation::evaluate_with_coercion)
3203 (var_value_operation::evaluate_for_sizeof)
3204 (var_value_operation::evaluate_for_cast): New methods.
3205 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3207 2021-03-08 Tom Tromey <tom@tromey.com>
3209 * expop.h (cxx_cast_ftype): New typedef.
3210 (cxx_cast_operation): New template.
3211 (dynamic_cast_operation, reinterpret_cast_operation): New
3214 2021-03-08 Tom Tromey <tom@tromey.com>
3216 * expop.h (class unop_cast_type_operation): New.
3217 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3220 2021-03-08 Tom Tromey <tom@tromey.com>
3222 * expop.h (class unop_cast_operation): New.
3223 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3225 2021-03-08 Tom Tromey <tom@tromey.com>
3227 * expop.h (class assign_modify_operation): New.
3228 * eval.c (eval_binop_assign_modify): No longer static.
3229 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3231 2021-03-08 Tom Tromey <tom@tromey.com>
3233 * expop.h (class assign_operation): New.
3234 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3236 2021-03-08 Tom Tromey <tom@tromey.com>
3238 * expop.h (class type_instance_operation): New.
3239 * eval.c (type_instance_operation::evaluate): New method.
3241 2021-03-08 Tom Tromey <tom@tromey.com>
3243 * expop.h (class op_this_operation): New.
3244 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3246 2021-03-08 Tom Tromey <tom@tromey.com>
3248 * expop.h (class unop_memval_operation)
3249 (class unop_memval_type_operation): New.
3250 * eval.c (eval_op_memval): No longer static.
3251 (unop_memval_operation::evaluate_for_address)
3252 (unop_memval_type_operation::evaluate_for_address)
3253 (unop_memval_operation::evaluate_for_sizeof)
3254 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3255 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3256 (unop_memval_type_operation::do_generate_ax): New methods.
3258 2021-03-08 Tom Tromey <tom@tromey.com>
3260 * expop.h (class unop_alignof_operation): New.
3261 * eval.c (eval_op_alignof): No longer static.
3263 2021-03-08 Tom Tromey <tom@tromey.com>
3265 * expop.h (class unop_sizeof_operation): New.
3266 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3268 2021-03-08 Tom Tromey <tom@tromey.com>
3270 * expop.h (class unop_addr_operation): New.
3271 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3273 2021-03-08 Tom Tromey <tom@tromey.com>
3275 * expop.h (class typeid_operation): New.
3277 2021-03-08 Tom Tromey <tom@tromey.com>
3279 * expop.h (class decltype_operation): New.
3281 2021-03-08 Tom Tromey <tom@tromey.com>
3283 * expop.h (class typeof_operation): New.
3285 2021-03-08 Tom Tromey <tom@tromey.com>
3287 * expop.h (class type_operation): New.
3288 * eval.c (eval_op_type): No longer static.
3290 2021-03-08 Tom Tromey <tom@tromey.com>
3292 * expop.h (class unop_ind_base_operation)
3293 (class unop_ind_operation): New.
3294 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3295 (unop_ind_base_operation::evaluate_for_address)
3296 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3297 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3299 2021-03-08 Tom Tromey <tom@tromey.com>
3301 * expop.h (unop_incr_operation): New template.
3302 (preinc_operation, predec_operation, postinc_operation)
3303 (postdec_operation): New typedefs.
3304 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3305 (eval_op_postdec): No longer static.
3307 2021-03-08 Tom Tromey <tom@tromey.com>
3309 * expop.h (unary_ftype): New typedef.
3310 (unop_operation, usual_ax_binop_operation): New templates.
3311 (unary_plus_operation, unary_neg_operation)
3312 (unary_complement_operation, unary_logical_not_operation): New
3314 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3315 (eval_op_lognot): No longer static.
3316 * ax-gdb.c (gen_expr_unop): New function.
3318 2021-03-08 Tom Tromey <tom@tromey.com>
3320 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3322 2021-03-08 Tom Tromey <tom@tromey.com>
3324 * expop.h (class repeat_operation): New.
3325 * eval.c (eval_op_repeat): No longer static. Remove "op"
3327 (evaluate_subexp_standard): Update.
3328 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3330 2021-03-08 Tom Tromey <tom@tromey.com>
3332 * expop.h (class comparison_operation): New.
3333 (equal_operation, notequal_operation, less_operation)
3334 (gtr_operation, geq_operation, leq_operation): New typedefs.
3335 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3336 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3338 2021-03-08 Tom Tromey <tom@tromey.com>
3340 * expop.h (class subscript_operation): New.
3341 * eval.c (eval_op_subscript): No longer static.
3343 2021-03-08 Tom Tromey <tom@tromey.com>
3345 * expop.h (class binop_operation, class usual_ax_binop_operation):
3347 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3348 (div_operation, rem_operation, lsh_operation, rsh_operation)
3349 (bitwise_and_operation, bitwise_ior_operation)
3350 (bitwise_xor_operation): New typedefs.
3351 * eval.c (eval_op_binary): No longer static.
3353 2021-03-08 Tom Tromey <tom@tromey.com>
3355 * expop.h (class sub_operation): New.
3356 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3357 (evaluate_subexp_standard): Update.
3359 2021-03-08 Tom Tromey <tom@tromey.com>
3361 * expop.h (class add_operation): New.
3362 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3363 (evaluate_subexp_standard): Update.
3365 2021-03-08 Tom Tromey <tom@tromey.com>
3367 * expop.h (class concat_operation): New.
3368 * eval.c (eval_op_concat): No longer static. Remove "op"
3370 (evaluate_subexp_standard): Update.
3372 2021-03-08 Tom Tromey <tom@tromey.com>
3374 * expop.h (class structop_member_operation)
3375 (class structop_mptr_operation): New.
3376 * eval.c (eval_op_member): No longer static.
3378 2021-03-08 Tom Tromey <tom@tromey.com>
3380 * expop.h (class structop_ptr_operation): New.
3381 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3384 2021-03-08 Tom Tromey <tom@tromey.com>
3386 * expop.h (class structop_base_operation)
3387 (class structop_operation): New.
3388 * eval.c (eval_op_structop_struct): No longer static.
3390 2021-03-08 Tom Tromey <tom@tromey.com>
3392 * expop.h (class complex_operation): New.
3394 2021-03-08 Tom Tromey <tom@tromey.com>
3396 * eval.c (eval_op_objc_selector): No longer static.
3397 * c-exp.h (class objc_selector_operation): New.
3399 2021-03-08 Tom Tromey <tom@tromey.com>
3401 * eval.c: Include c-exp.h.
3402 * c-exp.h (class objc_nsstring_operation): New.
3404 2021-03-08 Tom Tromey <tom@tromey.com>
3406 * c-lang.c (c_string_operation::evaluate): New method.
3407 * c-exp.h: New file.
3409 2021-03-08 Tom Tromey <tom@tromey.com>
3411 * expop.h (class ternop_cond_operation): New.
3412 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3414 2021-03-08 Tom Tromey <tom@tromey.com>
3416 * expop.h (class ternop_slice_operation): New.
3417 * eval.c (eval_op_ternop): No longer static.
3419 2021-03-08 Tom Tromey <tom@tromey.com>
3421 * expop.h (class string_operation): New.
3422 * eval.c (eval_op_string): No longer static.
3424 2021-03-08 Tom Tromey <tom@tromey.com>
3426 * expop.h (class internalvar_operation): New.
3427 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3429 2021-03-08 Tom Tromey <tom@tromey.com>
3431 * expop.h (class bool_operation): New.
3433 2021-03-08 Tom Tromey <tom@tromey.com>
3435 * expop.h (class register_operation): New.
3436 * eval.c (eval_op_register): No longer static.
3437 * ax-gdb.c (register_operation::do_generate_ax): New method.
3439 2021-03-08 Tom Tromey <tom@tromey.com>
3441 * expop.h (class last_operation): New.
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3445 * expop.h (class func_static_var_operation): New.
3446 * eval.c (eval_op_func_static_var): No longer static.
3448 2021-03-08 Tom Tromey <tom@tromey.com>
3450 * expop.h (class var_entry_value_operation): New.
3451 * eval.c (eval_op_var_entry_value): No longer static.
3453 2021-03-08 Tom Tromey <tom@tromey.com>
3455 * expression.h (class operation) <set_outermost>: New method.
3456 * expop.h (class var_msym_value_operation): New.
3457 * eval.c (eval_op_var_msym_value): No longer static.
3458 (var_msym_value_operation::evaluate_for_address)
3459 (var_msym_value_operation::evaluate_for_sizeof)
3460 (var_msym_value_operation::evaluate_for_cast): New methods.
3461 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3464 2021-03-08 Tom Tromey <tom@tromey.com>
3466 * expop.h (class long_const_operation): New.
3467 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3469 2021-03-08 Tom Tromey <tom@tromey.com>
3471 * expop.h (class scope_operation): New.
3472 * eval.c (eval_op_scope): No longer static.
3473 (scope_operation::evaluate_for_address): New method.
3474 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3476 2021-03-08 Tom Tromey <tom@tromey.com>
3478 * expprint.c (float_const_operation::dump): New method.
3479 * expop.h (float_data): New typedef.
3480 (class float_const_operation): New.
3482 2021-03-08 Tom Tromey <tom@tromey.com>
3484 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3485 * ax-gdb.c (gen_expr_binop): New function.
3486 (gen_expr_structop): Likewise.
3488 2021-03-08 Tom Tromey <tom@tromey.com>
3490 * expprint.c (expr::dump_for_expression): New functions.
3491 * expop.h (dump_for_expression): New overloads.
3492 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3495 2021-03-08 Tom Tromey <tom@tromey.com>
3497 * expression.h (expr::operation): New class.
3498 (expr::make_operation): New function.
3499 (expr::operation_up): New typedef.
3500 * expop.h: New file.
3501 * eval.c (operation::evaluate_for_cast)
3502 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3504 * ax-gdb.c (operation::generate_ax): New method.
3506 2021-03-08 Tom Tromey <tom@tromey.com>
3508 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3509 (gen_expr_binop_rest): New overload.
3511 2021-03-08 Tom Tromey <tom@tromey.com>
3513 * eval.c (eval_multi_subscript): New function.
3514 (evaluate_subexp_standard): Use it.
3516 2021-03-08 Tom Tromey <tom@tromey.com>
3518 * ada-lang.c (ada_binop_exp): New function.
3519 (ada_evaluate_subexp): Use it.
3521 2021-03-08 Tom Tromey <tom@tromey.com>
3523 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3525 (ada_evaluate_subexp): Use it.
3527 2021-03-08 Tom Tromey <tom@tromey.com>
3529 * ada-lang.c (ada_binop_minmax): New function.
3530 (ada_evaluate_subexp): Use it.
3532 2021-03-08 Tom Tromey <tom@tromey.com>
3534 * ada-lang.c (ada_unop_atr): New function.
3535 (ada_evaluate_subexp): Use it.
3537 2021-03-08 Tom Tromey <tom@tromey.com>
3539 * ada-lang.c (ada_binop_in_bounds): New function.
3540 (ada_evaluate_subexp): Use it.
3542 2021-03-08 Tom Tromey <tom@tromey.com>
3544 * ada-lang.c (ada_ternop_slice): New function.
3545 (ada_evaluate_subexp): Use it.
3547 2021-03-08 Tom Tromey <tom@tromey.com>
3549 * ada-lang.c (ada_equal_binop): New function.
3550 (ada_evaluate_subexp): Use it.
3552 2021-03-08 Tom Tromey <tom@tromey.com>
3554 * ada-lang.c (ada_mult_binop): New function.
3555 (ada_evaluate_subexp): Use it.
3557 2021-03-08 Tom Tromey <tom@tromey.com>
3559 * ada-lang.c (ada_abs): New function.
3560 (ada_evaluate_subexp): Use it.
3562 2021-03-08 Tom Tromey <tom@tromey.com>
3564 * ada-lang.c (ada_atr_size): New function.
3565 (ada_evaluate_subexp): Use it.
3567 2021-03-08 Tom Tromey <tom@tromey.com>
3569 * ada-lang.c (ada_atr_tag): New function.
3570 (ada_evaluate_subexp): Use it.
3572 2021-03-08 Tom Tromey <tom@tromey.com>
3574 * ada-lang.c (ada_unop_in_range): New function.
3575 (ada_evaluate_subexp): Use it.
3577 2021-03-08 Tom Tromey <tom@tromey.com>
3579 * ada-lang.c (ada_unop_neg): New function.
3580 (ada_evaluate_subexp): Use it.
3582 2021-03-08 Tom Tromey <tom@tromey.com>
3584 * ada-lang.c (eval_ternop_in_range): New function.
3585 (ada_evaluate_subexp): Use it.
3587 2021-03-08 Tom Tromey <tom@tromey.com>
3589 * opencl-lang.c (eval_opencl_assign): New function.
3590 (evaluate_subexp_opencl): Use it.
3592 2021-03-08 Tom Tromey <tom@tromey.com>
3594 * eval.c (eval_op_objc_msgcall): New function.
3595 (evaluate_subexp_standard): Use it.
3597 2021-03-08 Tom Tromey <tom@tromey.com>
3599 * eval.c (eval_binop_assign_modify): New function.
3600 (evaluate_subexp_standard): Use it.
3602 2021-03-08 Tom Tromey <tom@tromey.com>
3604 * m2-lang.c (eval_op_m2_subscript): New function.
3605 (evaluate_subexp_modula2): Use it.
3607 2021-03-08 Tom Tromey <tom@tromey.com>
3609 * m2-lang.c (eval_op_m2_high): New function.
3610 (evaluate_subexp_modula2): Use it.
3612 2021-03-08 Tom Tromey <tom@tromey.com>
3614 * eval.c (evaluate_subexp_for_address_base): New function.
3615 (evaluate_subexp_for_address): Use it.
3616 (evaluate_subexp_for_sizeof_base): New function.
3617 (evaluate_subexp_for_sizeof): Use it.
3619 2021-03-08 Tom Tromey <tom@tromey.com>
3621 * rust-lang.c (eval_op_rust_structop): New function.
3622 (rust_evaluate_subexp): Use it.
3624 2021-03-08 Tom Tromey <tom@tromey.com>
3626 * rust-lang.c (eval_op_rust_struct_anon): New function.
3627 (rust_evaluate_subexp): Use it.
3629 2021-03-08 Tom Tromey <tom@tromey.com>
3631 * rust-lang.c (eval_op_rust_array): New function.
3632 (rust_evaluate_subexp): Use it.
3634 2021-03-08 Tom Tromey <tom@tromey.com>
3636 * rust-lang.c (eval_op_rust_complement): New function.
3637 (rust_evaluate_subexp): Use it.
3639 2021-03-08 Tom Tromey <tom@tromey.com>
3641 * rust-lang.c (eval_op_rust_ind): New function.
3642 (rust_evaluate_subexp): Use it.
3644 2021-03-08 Tom Tromey <tom@tromey.com>
3646 * rust-lang.c (rust_subscript): Change parameters.
3647 (rust_evaluate_subexp): Update.
3649 2021-03-08 Tom Tromey <tom@tromey.com>
3651 * rust-lang.c (rust_range): Change parameters.
3652 (rust_evaluate_subexp): Update.
3654 2021-03-08 Tom Tromey <tom@tromey.com>
3656 * f-lang.c (eval_op_f_allocated): New function.
3657 (evaluate_subexp_f): Use it.
3659 2021-03-08 Tom Tromey <tom@tromey.com>
3661 * f-lang.c (fortran_require_array): New function.
3662 (evaluate_subexp_f): Use it.
3664 2021-03-08 Tom Tromey <tom@tromey.com>
3666 * f-lang.c (eval_op_f_kind): New function.
3667 (evaluate_subexp_f): Use it.
3669 2021-03-08 Tom Tromey <tom@tromey.com>
3671 * f-lang.c (eval_op_f_cmplx): New function.
3672 (evaluate_subexp_f): Use it.
3674 2021-03-08 Tom Tromey <tom@tromey.com>
3676 * f-lang.c (eval_op_f_modulo): New function.
3677 (evaluate_subexp_f): Use it.
3679 2021-03-08 Tom Tromey <tom@tromey.com>
3681 * f-lang.c (eval_op_f_floor): New function.
3682 (evaluate_subexp_f): Use it.
3684 2021-03-08 Tom Tromey <tom@tromey.com>
3686 * f-lang.c (eval_op_f_ceil): New function.
3687 (evaluate_subexp_f): Use it.
3689 2021-03-08 Tom Tromey <tom@tromey.com>
3691 * f-lang.c (eval_op_f_mod): New function.
3692 (evaluate_subexp_f): Use it.
3694 2021-03-08 Tom Tromey <tom@tromey.com>
3696 * f-lang.c (eval_op_f_abs): New function.
3697 (evaluate_subexp_f): Use it.
3699 2021-03-08 Tom Tromey <tom@tromey.com>
3701 * eval.c (eval_op_type): New function.
3702 (evaluate_subexp_standard): Use it.
3704 2021-03-08 Tom Tromey <tom@tromey.com>
3706 * eval.c (eval_op_postdec): New function.
3707 (evaluate_subexp_standard): Use it.
3709 2021-03-08 Tom Tromey <tom@tromey.com>
3711 * eval.c (eval_op_postinc): New function.
3712 (evaluate_subexp_standard): Use it.
3714 2021-03-08 Tom Tromey <tom@tromey.com>
3716 * eval.c (eval_op_predec): New file.
3717 (evaluate_subexp_standard): Use it.
3719 2021-03-08 Tom Tromey <tom@tromey.com>
3721 * eval.c (eval_op_preinc): New function.
3722 (evaluate_subexp_standard): Use it.
3724 2021-03-08 Tom Tromey <tom@tromey.com>
3726 * eval.c (eval_op_memval): New function.
3727 (evaluate_subexp_standard): Use it.
3729 2021-03-08 Tom Tromey <tom@tromey.com>
3731 * eval.c (eval_op_alignof): New function.
3732 (evaluate_subexp_standard): Use it.
3734 2021-03-08 Tom Tromey <tom@tromey.com>
3736 * eval.c (eval_op_ind): New function.
3737 (evaluate_subexp_standard): Use it.
3739 2021-03-08 Tom Tromey <tom@tromey.com>
3741 * eval.c (eval_op_lognot): New function.
3742 (evaluate_subexp_standard): Use it.
3744 2021-03-08 Tom Tromey <tom@tromey.com>
3746 * eval.c (eval_op_complement): New function.
3747 (evaluate_subexp_standard): Use it.
3749 2021-03-08 Tom Tromey <tom@tromey.com>
3751 * eval.c (eval_op_neg): New function.
3752 (evaluate_subexp_standard): Use it.
3754 2021-03-08 Tom Tromey <tom@tromey.com>
3756 * eval.c (eval_op_plus): New function.
3757 (evaluate_subexp_standard): Use it.
3759 2021-03-08 Tom Tromey <tom@tromey.com>
3761 * eval.c (eval_op_repeat): New function.
3762 (evaluate_subexp_standard): Use it.
3764 2021-03-08 Tom Tromey <tom@tromey.com>
3766 * eval.c (eval_op_leq): New function.
3767 (evaluate_subexp_standard): Use it.
3769 2021-03-08 Tom Tromey <tom@tromey.com>
3771 * eval.c (eval_op_geq): New function.
3772 (evaluate_subexp_standard): Use it.
3774 2021-03-08 Tom Tromey <tom@tromey.com>
3776 * eval.c (eval_op_gtr): New function.
3777 (evaluate_subexp_standard): Use it.
3779 2021-03-08 Tom Tromey <tom@tromey.com>
3781 * eval.c (eval_op_less): New function.
3782 (evaluate_subexp_standard): Use it.
3784 2021-03-08 Tom Tromey <tom@tromey.com>
3786 * eval.c (eval_op_notequal): New function.
3787 (evaluate_subexp_standard): Use it.
3789 2021-03-08 Tom Tromey <tom@tromey.com>
3791 * eval.c (eval_op_equal): New function.
3792 (evaluate_subexp_standard): Use it.
3794 2021-03-08 Tom Tromey <tom@tromey.com>
3796 * eval.c (eval_op_subscript): New function.
3797 (evaluate_subexp_standard): Use it.
3799 2021-03-08 Tom Tromey <tom@tromey.com>
3801 * eval.c (eval_op_binary): New function.
3802 (evaluate_subexp_standard): Use it.
3804 2021-03-08 Tom Tromey <tom@tromey.com>
3806 * eval.c (eval_op_sub): New function.
3807 (evaluate_subexp_standard): Use it.
3809 2021-03-08 Tom Tromey <tom@tromey.com>
3811 * eval.c (eval_op_add): New function.
3812 (evaluate_subexp_standard): Use it.
3814 2021-03-08 Tom Tromey <tom@tromey.com>
3816 * eval.c (eval_op_member): New function.
3817 (evaluate_subexp_standard): Use it.
3819 2021-03-08 Tom Tromey <tom@tromey.com>
3821 * eval.c (eval_op_structop_ptr): New function.
3822 (evaluate_subexp_standard): Use it.
3824 2021-03-08 Tom Tromey <tom@tromey.com>
3826 * eval.c (eval_op_structop_struct): New function.
3827 (evaluate_subexp_standard): Use it.
3829 2021-03-08 Tom Tromey <tom@tromey.com>
3831 * eval.c (eval_op_ternop): New function.
3832 (evaluate_subexp_standard): Use it.
3834 2021-03-08 Tom Tromey <tom@tromey.com>
3836 * eval.c (eval_op_concat): New function.
3837 (evaluate_subexp_standard): Use it.
3839 2021-03-08 Tom Tromey <tom@tromey.com>
3841 * eval.c (eval_op_objc_selector): New function.
3842 (evaluate_subexp_standard): Use it.
3844 2021-03-08 Tom Tromey <tom@tromey.com>
3846 * eval.c (eval_op_string): New function.
3847 (evaluate_subexp_standard): Use it.
3849 2021-03-08 Tom Tromey <tom@tromey.com>
3851 * eval.c (eval_op_register): New function.
3852 (evaluate_subexp_standard): Use it.
3854 2021-03-08 Tom Tromey <tom@tromey.com>
3856 * eval.c (eval_op_func_static_var): New function.
3857 (evaluate_subexp_standard): Use it.
3859 2021-03-08 Tom Tromey <tom@tromey.com>
3861 * eval.c (eval_op_var_msym_value): New function.
3862 (evaluate_subexp_standard): Use it.
3864 2021-03-08 Tom Tromey <tom@tromey.com>
3866 * eval.c (eval_op_var_entry_value): New function.
3867 (evaluate_subexp_standard): Use it.
3869 2021-03-08 Tom Tromey <tom@tromey.com>
3871 * eval.c (eval_op_scope): New function.
3872 (evaluate_subexp_standard): Use it.
3874 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3877 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3879 2021-03-06 Tom Tromey <tom@tromey.com>
3881 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3882 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3883 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3884 (locate_dwz_sections, dwz_search_other_debugdirs)
3885 (dwarf2_get_dwz_file): Move to dwz.c.
3886 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3888 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3889 (dwarf2_get_dwz_file): Move from read.c.
3891 2021-03-06 Tom Tromey <tom@tromey.com>
3893 * debuginfod-support.h: Include scoped_fd.h.
3895 2021-03-06 Tom Tromey <tom@tromey.com>
3897 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3898 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3899 (get_abbrev_section_for_cu, read_attribute_value)
3900 (get_debug_line_section): Update.
3901 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3903 2021-03-06 Tom Tromey <tom@tromey.com>
3905 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3907 * dwarf2/read.c (section_is_p): Remove.
3908 (dwarf2_per_bfd::locate_sections)
3909 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3910 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3911 (dwarf2_locate_common_dwp_sections)
3912 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3915 2021-03-06 Tom Tromey <tom@tromey.com>
3917 * xcoffread.c: Include sect-names.h.
3918 * symfile.h (struct dwarf2_section_names, struct
3919 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3920 * dwarf2/sect-names.h: New file, from symfile.h.
3921 * dwarf2/read.c: Include sect-names.h.
3923 2021-03-06 Tom Tromey <tom@tromey.com>
3925 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3926 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3927 (abbrev_table::read): Update.
3928 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3929 (struct abbrev_info): Reformat.
3930 <attrs>: Now an array.
3931 (struct abbrev_table) <alloc_abbrev>: Remove.
3933 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3935 * ctfread.c (ctf_psymtab_add_enums): New function.
3936 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3938 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3940 * ctfread.c (read_func_kind_type): Set up function arguments.
3942 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3943 Andrew Burgess <andrew.burgess@embecosm.com>
3945 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3947 (riscv_csrset): New static global.
3948 (riscv_update_csrmap): New function.
3949 (riscv_iterate_over_regset_sections): Process CSRs.
3951 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3953 * riscv-tdep.c (riscv_feature_name_csr): Define.
3954 (riscv_feature_name_cpu): Define.
3955 (riscv_feature_name_fpu): Define.
3956 (riscv_feature_name_virtual): Define.
3957 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3958 (riscv_freg_feature): Use riscv_feature_name_fpu.
3959 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3960 (riscv_csr_feature): Use riscv_feature_name_csr.
3961 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3963 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3964 Craig Blackmore <craig.blackmore@embecosm.com>
3966 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3967 (ALLDEPFILES): Add riscv-none-tdep.c.
3968 * configure: Regenerate.
3969 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3971 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3972 * elf-none-tdep.c: New file.
3973 * elf-none-tdep.h: New file.
3974 * riscv-none-tdep.c: New file.
3976 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3977 Andrew Burgess <andrew.burgess@embecosm.com>
3979 * corelow.c: Add 'xml-tdesc.h' include.
3980 (core_target::read_description): Load the target description from
3981 the core file when possible.
3982 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3984 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3985 (gcore_elf_make_tdesc_note): New function.
3986 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3987 * linux-tdep.c (linux_make_corefile_notes): Add target description
3990 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3992 * Makefile.in (SFILES): Add gcore-elf.c.
3993 (HFILES_NO_SRCDIR): Add gcore-elf.h
3994 * configure: Regenerate.
3995 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3997 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3998 (struct fbsd_collect_regset_section_cb_data): Delete.
3999 (fbsd_collect_regset_section_cb): Delete.
4000 (fbsd_collect_thread_registers): Delete.
4001 (struct fbsd_corefile_thread_data): Delete.
4002 (fbsd_corefile_thread): Delete.
4003 (fbsd_make_corefile_notes): Call
4004 gcore_elf_build_thread_register_notes instead of the now deleted
4006 * gcore-elf.c: New file, the content was moved here from
4007 linux-tdep.c, functions were renamed and given minor cleanup.
4008 * gcore-elf.h: New file.
4009 * gcore.c (gcore_find_signalled_thread): Moved here from
4010 linux-tdep.c and given a new name. Minor cleanups.
4011 * gcore.h (gcore_find_signalled_thread): Declare.
4012 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4013 (struct linux_collect_regset_section_cb_data): Delete.
4014 (linux_collect_regset_section_cb): Delete.
4015 (linux_collect_thread_registers): Delete.
4016 (linux_corefile_thread): Call
4017 gcore_elf_build_thread_register_notes.
4018 (find_signalled_thread): Delete.
4019 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4021 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4024 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4025 process_stratum_target parameter,
4026 sparc_store_inferior_registers): update callers.
4027 * sparc-nat.c (sparc_fetch_inferior_registers,
4028 sparc_store_inferior_registers): Add process_stratum_target
4029 parameter. Switch current thread before calling
4030 sparc_supply_gregset / sparc_collect_rwindow.
4031 (sparc_store_inferior_registers): Likewise.
4032 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4033 (sparc32obsd_collect_uthread): Likewise.
4034 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4036 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4037 sparc64obsd_supply_uthread): Add assertion.
4039 2021-03-04 Tom Tromey <tromey@adacore.com>
4041 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4042 (aux_add_nonlocal_symbols): Update.
4043 (ada_add_block_symbols): Change "found_sym" to bool.
4045 2021-03-03 Tom Tromey <tromey@adacore.com>
4047 * ada-lang.c (ada_resolve_function): Update comment.
4048 (is_nonfunction, add_symbols_from_enclosing_procs)
4049 (remove_extra_symbols): Likewise.
4050 (struct match_data): Add constructor, initializers.
4051 (add_nonlocal_symbols): Remove memset.
4052 (aux_add_nonlocal_symbols): Update comment.
4053 (ada_add_block_renamings, add_nonlocal_symbols)
4054 (ada_add_all_symbols): Likewise.
4055 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4057 2021-03-02 Tom Tromey <tromey@adacore.com>
4059 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4060 (cast_to_gnat_encoded_fixed_point_type): Remove.
4061 (ada_value_cast, ada_evaluate_subexp): Update.
4062 (gnat_encoded_fixed_point_type_info)
4063 (ada_is_gnat_encoded_fixed_point_type)
4064 (gnat_encoded_fixed_point_delta)
4065 (gnat_encoded_fixed_point_scaling_factor): Remove.
4066 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4067 (gnat_encoded_fixed_point_delta)
4068 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4069 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4070 (ada_print_type): Update.
4071 * ada-valprint.c (ada_value_print_num): Update.
4072 * dwarf2/read.c (ada_get_gnat_encoded_number)
4073 (ada_get_gnat_encoded_ratio): New functions.
4074 (finish_fixed_point_type): Use them. Add parameters.
4075 (GNAT_FIXED_POINT_SUFFIX): New define.
4076 (gnat_encoded_fixed_point_type_info): New function.
4077 (read_base_type): Handle gnat encodings.
4079 2021-03-02 Tom Tromey <tromey@adacore.com>
4081 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4082 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4084 (GROW_VECT): Remove.
4085 (grow_vect): Remove.
4087 2021-03-02 Tom Tromey <tromey@adacore.com>
4089 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4090 * ada-lang.c (resolve_subexp): Update.
4091 (ada_resolve_function): Accept a vector.
4092 (is_nonfunction, add_defn_to_vec)
4093 (add_symbols_from_enclosing_procs): Likewise.
4094 (num_defns_collected, defns_collected): Remove.
4095 (remove_extra_symbols): Return a vector.
4096 (remove_irrelevant_renamings): Return void.
4097 (ada_add_local_symbols): Accept a vector.
4098 (struct match_data) <obstackp>: Remove.
4099 <resultp>: New member.
4100 (aux_add_nonlocal_symbols): Update.
4101 (ada_add_block_renamings, add_nonlocal_symbols)
4102 (ada_add_all_symbols): Accept a vector.
4103 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4105 (ada_lookup_symbol): Update.
4106 (ada_add_block_symbols): Accept a vector.
4107 (get_var_value, iterate_over_symbols): Update.
4108 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4111 2021-03-02 Tom Tromey <tromey@adacore.com>
4113 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4115 2021-03-02 Tom Tromey <tromey@adacore.com>
4117 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4120 (ada_pspace_data): Remove destructor.
4121 <sym_cache>: Now a unique_ptr.
4122 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4123 (ada_get_symbol_cache): Use 'new'.
4124 (ada_clear_symbol_cache): Rewrite.
4126 2021-03-02 Tom Tromey <tromey@adacore.com>
4128 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4131 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4134 * source.c (add_path): Skip empty dirnames.
4136 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4138 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4139 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4141 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4144 * target.c (target_mourn_inferior): Only compare pids in
4145 target_mourn_inferior.
4147 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4150 * remote.c (remote_target::start_remote): Ensure the single
4151 thread, automatically added for remote targets without the
4152 concept of threading, is initially in set to the "resumed"
4154 * remote.c (remote_target::add_current_inferior_and_thread):
4155 Add return value - return the main thread.
4157 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4159 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4160 (mi_tsv_created): Likewise.
4161 (mi_tsv_deleted): Likewise.
4163 2021-02-25 Tom de Vries <tdevries@suse.de>
4166 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4167 section_kind for &dwo_file->sections.info.
4169 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4172 * f-lang.c (fortran_argument_convert): Delete declaration.
4173 (fortran_prepare_argument): New function.
4174 (evaluate_subexp_f): Move logic to new function
4175 fortran_prepare_argument.
4177 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4179 * f-exp.y (f77_keywords): Add 'associated'.
4180 * f-lang.c (fortran_associated): New function.
4181 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4182 (operator_length_f): Likewise.
4183 (print_unop_or_binop_subexp_f): New function.
4184 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4185 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4186 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4187 (operator_check_f): Likewise.
4188 * std-operator.def: Add FORTRAN_ASSOCIATED.
4190 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4192 * f-exp.y (fortran_operators): Add ".xor.".
4194 2021-02-24 Tom de Vries <tdevries@suse.de>
4197 * dwarf2/attribute.c (attribute::form_is_signed): New function
4199 * dwarf2/attribute.h (attribute::as_signed): ... here.
4200 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4201 (attribute::form_is_signed): Declare.
4202 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4203 for DW_AT_decl_file.
4205 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4207 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4208 order for <sys/ptrace.h> and <asm/ptrace.h>.
4210 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4212 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4215 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4217 * exec.c (set_section_command): Move variable declarations into
4218 the function body, and use std::string instead of a fixed size
4221 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4223 * exec.c (exec_target::get_section_table): Delete member function.
4224 (section_table_read_available_memory): Use current_top_target, not
4225 just the exec_ops target.
4226 * target-delegates.c: Regenerate.
4227 * target.c (default_get_section_table): New function.
4228 * target.h (target_ops::get_section_table): Change default
4229 behaviour to call default_get_section_table.
4230 (default_get_section_table): Declare.
4232 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4234 * exec.c (exec_target::close): Call new clear_target_sections
4236 (program_space::add_target_sections): Update name of member
4238 (program_space::add_target_sections): Update name of member
4240 (program_space::remove_target_sections): Likewise.
4241 (exec_one_fork): Use new target_sections member function.
4242 (exec_target::get_section_table): Likewise.
4243 (exec_target::files_info): Likewise.
4244 (set_section_command): Likewise.
4245 (exec_set_section_address): Likewise.
4246 (exec_target::has_memory): Use new target_sections member
4248 * progspace.h (program_space::clear_target_sections): New member
4250 (program_space::target_sections): Rename member variable to
4251 m_target_sections, replace with a new member function.
4252 (program_space::m_target_sections): New member variable.
4253 * solib-dsbt.c (scan_dyntag): Use new member function.
4254 * solib-svr4.c (scan_dyntag): Likewise.
4256 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4258 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4260 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4261 (section_table_read_available_memory): Make local const.
4262 (exec_target::xfer_partial): Make local const.
4263 (print_section_info): Make parameter const.
4264 * gdb/exec.h (print_section_info): Likewise.
4265 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4267 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4269 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4271 * gdb/s390-tdep.c (s390_load): Likewise.
4272 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4273 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4274 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4276 (target_debug_print_const_target_section_table_p): ...this.
4277 * gdb/target-delegates.c: Regenerate.
4278 * gdb/target.c (target_get_section_table): Make return type const.
4279 (target_section_by_addr): Likewise. Also make some locals const.
4280 (memory_xfer_partial_1): Make some locals const.
4281 * gdb/target.h (struct target_ops) <get_section_table>: Make
4283 (target_section_by_addr): Likewise.
4284 (target_get_section_table): Likewise.
4286 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4288 * NEWS: Mention new 'maint info target-sections' command.
4289 * maint.c (maintenance_info_target_sections): New function.
4290 (_initialize_maint_cmds): Register new command.
4292 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4294 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4295 (riscv_features_from_bfd): ...this. Change parameter type to
4296 'bfd*', and update as required.
4297 (riscv_find_default_target_description): Update call to
4298 riscv_features_from_bfd. Select a default xlen based on
4300 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4302 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4304 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4305 dynamic types in UNOP_IND.
4307 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4310 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4312 (~dwarf2_queue_guard): Clear queue.
4313 (queue_comp_unit): Assert that queue is
4315 (process_queue): Adjust.
4316 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4318 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4321 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4322 to decide whether or not to enqueue it for expansion.
4323 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4324 after calling maybe_queue_comp_unit.
4326 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4328 * linux-nat.c (linux_nat_filter_event): Return void.
4330 2021-02-22 Tom Tromey <tromey@adacore.com>
4332 * solib-svr4.c (enable_break): Update.
4333 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4335 (target_bfd_reopen): Change parameter type.
4336 * bfd-target.h (target_bfd_reopen): Change parameter type.
4338 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4340 * thread.c (add_thread_silent): Add assert.
4341 (find_thread_ptid): Add assert.
4343 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4346 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4347 (target_unpush_up): Likewise.
4348 * procfs.c (procfs_target::attach): Push target early. Use
4349 target_unpush_up to unpush target in case of error.
4350 * target.h (struct target_unpusher): Move here.
4351 (target_unpush_up): Likewise.
4353 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4355 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4356 (which in turn includes <gnulib/config.h>) before include
4359 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4362 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4363 (decode_j_type_insn): Likewise.
4364 (decode_cj_type_insn): Likewise.
4365 (decode_b_type_insn): Likewise.
4368 2021-02-18 Tom Tromey <tom@tromey.com>
4370 * expression.h (struct expression) <evaluate>: Declare method.
4371 * eval.c (evaluate_subexp): Simplify.
4372 (expression::evaluate): New method.
4373 (evaluate_expression, evaluate_type): Use expression::evaluate.
4375 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4377 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4379 (ada_lookup_name_info): Likewise.
4381 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4383 * aclocal.m4: Regenerate.
4385 2021-02-12 Tom de Vries <tdevries@suse.de>
4388 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4389 (lin_thread_signals): New static var.
4390 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4392 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4393 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4395 * linux-thread-db.c (check_thread_signals): Use
4396 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4398 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4400 * f-exp.y (f77_keywords): Add allocated.
4401 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4402 (operator_length_f): Likewise.
4403 (print_subexp_f): Likewise.
4404 (dump_subexp_body_f): Likewise.
4405 (operator_check_f): Likewise.
4406 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4408 2021-02-11 Tom de Vries <tdevries@suse.de>
4411 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4412 Return true for DW_FORM_strx.
4414 2021-02-11 Tom Tromey <tromey@adacore.com>
4417 * parse.c (write_exp_symbol_reference): Write sym.block.
4419 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4421 * NEWS: Mention changes to 'maint info sections'.
4422 * maint.c (match_substring): Return a bool, fix whitespace issue.
4423 (struct single_bfd_flag_info): New struct.
4424 (bfd_flag_info): New static global.
4425 (match_bfd_flags): Return a bool, use bfd_flag_info.
4426 (print_bfd_flags): Use bfd_flag_info.
4427 (maint_print_section_info): Delete trailing whitespace.
4428 (struct maint_info_sections_opts): New struct.
4429 (maint_info_sections_option_defs): New static global.
4430 (maint_info_sections_completer): New function.
4431 (maintenance_info_sections): Use option parsing mechanism.
4432 (_initialize_maint_cmds): Update command help text for 'maint info
4433 sections' and register a command completer.
4435 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4437 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4438 functionality merged into...
4439 (maint_print_all_sections): ...this new function.
4440 (maintenance_info_sections): Make use of maint_print_all_sections,
4441 allow all objects to be printed even where there's no executable.
4443 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4445 * breakpoint.c (resolve_sal_pc): Make use of
4446 bound_minimal_symbol::obj_section.
4447 * maint.c (maintenance_translate_address): Likewise.
4448 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4449 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4451 * printcmd.c (info_address_command): Make use of
4452 bound_minimal_symbol::obj_section.
4454 2021-02-11 Alan Modra <amodra@gmail.com>
4456 * arm-symbian-tdep.c: Delete.
4457 * NEWS: Mention arm-symbian removal.
4458 * Makefile.in: Remove arm-symbian-tdep entries.
4459 * configure.tgt: Remove arm*-*-symbianelf*.
4460 * doc/gdb.texinfo: Remove mention of SymbianOS.
4461 * osabi.c (gdb_osabi_names): Remove "Symbian".
4462 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4463 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4464 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4466 * testsuite/gdb.base/dup-sect.exp: Likewise.
4467 * testsuite/gdb.base/long_long.exp: Likewise.
4468 * testsuite/gdb.base/solib-weak.exp: Likewise.
4469 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4470 * testsuite/gdb.python/py-section-script.exp: Likewise.
4471 * testsuite/lib/dwarf.exp: Likewise.
4472 * testsuite/lib/gdb.exp: Likewise.
4474 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4476 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4477 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4478 (one_or_two_args): New pattern.
4479 (f77_keywords): Add lbound and ubound.
4480 * f-lang.c (fortran_bounds_all_dims): New function.
4481 (fortran_bounds_for_dimension): New function.
4482 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4483 (operator_length_f): Likewise.
4484 (print_subexp_f): Likewise.
4485 (dump_subexp_body_f): Likewise.
4486 (operator_check_f): Likewise.
4487 * std-operator.def (FORTRAN_LBOUND): Define.
4488 (FORTRAN_UBOUND): Define.
4490 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4492 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4493 and set_section_index member functions where appropriate.
4494 * coffread.c (coff_symtab_read): Likewise.
4495 (process_coff_symbol): Likewise.
4496 * ctfread.c (set_symbol_address): Likewise.
4497 * dwarf2/read.c (add_partial_symbol): Likewise.
4498 (var_decode_location): Likewise.
4499 * language.c: Likewise.
4500 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4501 (compact_minimal_symbols): Likewise.
4502 (minimal_symbol_upper_bound): Likewise.
4503 * objfiles.c (relocate_one_symbol): Likewise.
4504 * psympriv.h (partial_symbol::obj_section): Likewise.
4505 (partial_symbol::address): Likewise.
4506 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4507 * stabsread.c (scan_file_globals): Likewise.
4508 * symmisc.c (dump_msymbols): Likewise.
4509 * symtab.c (general_symbol_info::obj_section): Likewise.
4510 (fixup_section): Likewise.
4511 (get_msymbol_address): Likewise.
4512 * symtab.h (general_symbol_info::section): Rename to...
4513 (general_symbol_info::m_section): ...this.
4514 (general_symbol_info::set_section_index): New member function.
4515 (general_symbol_info::section_index): Likewise.
4516 (SYMBOL_SECTION): Delete.
4517 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4518 set_section_index member functions where appropriate.
4519 (MSYMBOL_SECTION): Delete.
4520 (symbol::symbol): Update to initialize 'm_section'.
4521 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4522 (process_xcoff_symbol): Likewise.
4524 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4526 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4527 MSYMBOL_OBJ_SECTION.
4528 * findvar.c (language_defn::read_var_value): Likewise.
4529 * infcmd.c (jump_command): Likewise.
4530 * linespec.c (minsym_found): Likewise.
4531 * maint.c (maintenance_translate_address): Likewise.
4532 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4533 (minimal_symbol_upper_bound): Likewise.
4534 * parse.c (find_minsym_type_and_address): Likewise.
4535 (operator_check_standard): Likewise.
4536 * printcmd.c (info_address_command): Likewise.
4537 * symmisc.c (dump_msymbols): Likewise.
4538 (print_symbol): Likewise.
4539 * symtab.c (general_symbol_info::obj_section): Define new
4541 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4542 (find_pc_sect_compunit_symtab): Likewise.
4543 (find_function_start_sal): Likewise.
4544 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4545 MSYMBOL_OBJ_SECTION.
4546 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4548 (SYMBOL_OBJ_SECTION): Delete.
4549 (MSYMBOL_OBJ_SECTION): Delete.
4551 2021-02-09 Tom Tromey <tom@tromey.com>
4553 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4555 2021-02-09 Tom de Vries <tdevries@suse.de>
4558 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4559 construct an array type. Add assert to ensure that element_type is
4562 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4564 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4565 (gcore_collect_regset_section_cb): Delete.
4566 (gcore_collect_thread_registers): Delete.
4567 (gcore_build_thread_register_notes): Delete.
4568 (gcore_find_signalled_thread): Delete.
4569 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4570 'gdbarch' and 'thread_info' declarations.
4571 (gcore_build_thread_register_notes): Delete declaration.
4572 (gcore_find_signalled_thread): Likewise.
4573 * fbsd-tdep.c: Remove 'gcore.h' include.
4574 (struct fbsd_collect_regset_section_cb_data): New struct.
4575 (fbsd_collect_regset_section_cb): New function.
4576 (fbsd_collect_thread_registers): New function.
4577 (struct fbsd_corefile_thread_data): New struct.
4578 (fbsd_corefile_thread): New function.
4579 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4580 * linux-tdep.c: Remove 'gcore.h' include.
4581 (struct linux_collect_regset_section_cb_data): New struct.
4582 (linux_collect_regset_section_cb): New function.
4583 (linux_collect_thread_registers): New function.
4584 (linux_corefile_thread): Call Linux specific code.
4585 (find_signalled_thread): New function.
4586 (linux_make_corefile_notes): Call find_signalled_thread.
4588 2021-02-09 Tom Tromey <tromey@adacore.com>
4590 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4592 * value.c (value_contents_copy_raw): Now static.
4593 * value.h (value_contents_copy_raw): Don't declare.
4595 2021-02-09 Tom Tromey <tromey@adacore.com>
4597 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4600 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4603 * arc-linux-tdep.c (handle_atomic_sequence): New.
4604 (arc_linux_software_single_step): Call handle_atomic_sequence().
4606 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4608 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4610 (REQUIRE_WINDOW): Call is_valid member function.
4611 (REQUIRE_WINDOW_FOR_SETTER): New define.
4612 (gdbpy_tui_is_valid): Call is_valid member function.
4613 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4614 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4616 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4617 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4620 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4622 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4623 for the title is not nullptr.
4625 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4627 * tui-layout.c (saved_tui_windows): Delete.
4628 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4629 call new get_windows member function instead.
4630 (tui_get_window_by_name): Check in tui_windows.
4631 (tui_layout_window::apply): Don't add to tui_windows.
4632 * tui-layout.h (tui_layout_base::get_windows): New member function.
4633 (tui_layout_window::get_windows): Likewise.
4634 (tui_layout_split::get_windows): Likewise.
4636 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4638 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4639 of the window objects.
4641 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4643 * python/python.c (gdbpy_print_stack): Reformat an error message.
4645 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4647 * tui/tui-interp.c (tui_command_line_handler): New function.
4648 (tui_interp::resume): Register tui_command_line_handler as the
4650 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4652 (tui_getc_1): Delete handling of '\n' and '\r'.
4653 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4655 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4657 * tui/tui-regs.c (tui_data_window::display_registers_from):
4658 Mark invisible register sub windows.
4659 (tui_data_window::check_register_values): Ignore invisible
4660 register sub windows.
4662 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4664 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4665 n_spaces with a negative value.
4667 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4669 * tui/tui-regs.c (tui_data_window::display_registers_from):
4670 Add refresh_window call.
4672 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4674 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4676 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4678 * symmisc.c (std_in, std_out, std_err): Remove.
4679 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4681 2021-02-05 Tom de Vries <tdevries@suse.de>
4683 PR breakpoints/27330
4684 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4685 glibc object file has debug info.
4687 2021-02-05 Tom de Vries <tdevries@suse.de>
4690 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4692 2021-02-05 Tom de Vries <tdevries@suse.de>
4694 PR breakpoints/27313
4695 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4698 2021-02-05 Tom Tromey <tom@tromey.com>
4700 * compile/compile-c-support.c (get_compile_context)
4701 (c_get_compile_context, cplus_get_compile_context): Change return
4703 * language.c (language_defn::get_compile_instance): New method.
4704 * language.h (language_defn::get_compile_instance): Change return
4705 type. No longer inline.
4706 * c-lang.c (c_language::get_compile_instance): Change return type.
4707 (cplus_language::get_compile_instance): Change return type.
4708 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4710 * compile/compile.c (compile_to_object): Update.
4712 2021-02-05 Tom Tromey <tom@tromey.com>
4714 * parser-defs.h (write_exp_symbol_reference): Declare.
4715 * parse.c (write_exp_symbol_reference): New function.
4716 * p-exp.y (variable): Use write_exp_symbol_reference.
4717 * m2-exp.y (variable): Use write_exp_symbol_reference.
4718 * f-exp.y (variable): Use write_exp_symbol_reference.
4719 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4720 * c-exp.y (variable): Use write_exp_symbol_reference.
4722 2021-02-05 Tom de Vries <tdevries@suse.de>
4725 * valarith.c (complex_binop): Throw an error if complex type can't
4728 2021-02-05 Tom de Vries <tdevries@suse.de>
4731 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4734 2021-02-05 Tom de Vries <tdevries@suse.de>
4736 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4738 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4740 * configure.tgt (riscv*-*-*): Set gdb_sim.
4742 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4744 * target.c (target_is_non_stop_p): Return bool.
4745 * target.h (target_is_non_stop_p): Return bool.
4747 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4749 * record-full.c (record_full_async_inferior_event_handler):
4750 Don't clear async event handler.
4751 (record_full_base_target::wait): Clear async event handler at
4754 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4756 * record-btrace.c (record_btrace_handle_async_inferior_event):
4757 Don't clear async event handler.
4758 (record_btrace_target::wait): Clear async event handler at
4761 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4763 * remote.c (remote_target::wait): Clear async event handler at
4764 beginning, mark if needed at the end.
4765 (remote_async_inferior_event_handler): Don't set or clear async
4768 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4770 * async-event.h (async_event_handler_func): Add documentation.
4771 * async-event.c (check_async_event_handlers): Don't clear
4772 async_event_handler ready flag.
4773 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4775 * record-btrace.c (record_btrace_handle_async_inferior_event):
4777 * record-full.c (record_full_async_inferior_event_handler):
4779 * remote-notif.c (remote_async_get_pending_events_handler):
4781 * remote.c (remote_async_inferior_event_handler): Likewise.
4783 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4785 * infrun.c (handle_inferior_event): Move stop_soon variable to
4788 2021-02-03 Pedro Alves <pedro@palves.net>
4790 * infcmd.c (detach_command): Hold strong reference to target, and
4791 if all-stop on entry, restart threads on exit.
4792 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4793 (restart_stepped_thread): ... this new function. Also handle
4795 (restart_after_all_stop_detach): New function.
4796 * infrun.h (restart_after_all_stop_detach): Declare.
4798 2021-02-03 Pedro Alves <pedro@palves.net>
4800 * infrun.c (struct step_over_info): Initialize fields.
4801 (prepare_for_detach): Handle ongoing in-line step over.
4803 2021-02-03 Pedro Alves <pedro@palves.net>
4805 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4807 * remote.c (remote_target::remote_detach_1): ... and here ...
4808 * target.c (target_detach): ... instead of here.
4809 * target.h (target_ops::detach): Add comment.
4811 2021-02-03 Pedro Alves <pedro@palves.net>
4813 * infrun.c (struct wait_one_event): Move higher up.
4814 (prepare_for_detach): Abort in-progress displaced steps instead of
4815 letting them complete.
4816 (handle_one): If the inferior is detaching, don't add the thread
4817 back to the global step-over chain.
4818 (restart_threads): Don't restart threads if detaching.
4819 (handle_signal_stop): Remove inferior::detaching reference.
4821 2021-02-03 Pedro Alves <pedro@palves.net>
4823 * infrun.c (prepare_for_detach): Don't release scoped_restore
4826 2021-02-03 Pedro Alves <pedro@palves.net>
4828 * infrun.c (handle_one): New function, factored out from ...
4829 (stop_all_threads): ... here.
4831 2021-02-03 Pedro Alves <pedro@palves.net>
4833 * remote.c (remote_notif_stop_ack): Don't error out on
4834 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4835 (remote_target::discard_pending_stop_replies): Don't delete
4836 in-flight notification; instead, clear its contents.
4838 2021-02-03 Pedro Alves <pedro@palves.net>
4840 * remote.c (extended_remote_target::attach): Set target async in
4841 the target-non-stop path too.
4843 2021-02-03 Pedro Alves <pedro@palves.net>
4846 * infrun.c (handle_signal_stop): Move main context_switch call
4847 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4849 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4851 * NEWS (Changed commands): Add entry for the behavior change of
4852 the inferior command.
4853 * inferior.c (inferior_command): When no argument is given to the
4854 inferior command, display info about the currently selected
4857 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4859 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4861 (read_attribute_reprocess): Adjust.
4863 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4865 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4866 <gnu_ranges_base>: ... this...
4867 <rnglists_base>: ... and this.
4868 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4869 <gnu_ranges_base>: ... this...
4870 <rnglists_base>: ... and this.
4871 (read_cutu_die_from_dwo): Adjust
4872 (dwarf2_get_pc_bounds): Adjust
4873 (dwarf2_record_block_ranges): Adjust.
4874 (read_full_die_1): Adjust
4875 (partial_die_info::read): Adjust.
4876 (read_rnglist_index): Adjust.
4878 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4881 * dwarf2/read.c (read_loclists_rnglists_header): Add
4882 header_offset parameter and use it.
4883 (read_loclist_index): Read header of the current contribution,
4884 not the one at the beginning of the section.
4885 (read_rnglist_index): Likewise.
4887 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4890 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4891 requires_reprocessing flag.
4892 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4894 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4895 and DW_FORM_loclistx.
4896 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4897 instead of set_address for DW_FORM_loclistx and
4900 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4902 * dwarf2/read.c (read_loclist_index): Remove bound check for
4904 (read_rnglist_index): Likewise.
4906 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4908 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4911 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4913 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4915 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4917 * dwarf2/read.c (read_loclist_index): Change complaints into
4920 2021-02-02 Tom de Vries <tdevries@suse.de>
4923 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4926 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4928 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4929 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4930 here from linux-tdep.c and given a new name. Minor cleanups.
4931 (gcore_collect_regset_section_cb): Likewise.
4932 (gcore_collect_thread_registers): Likewise.
4933 (gcore_build_thread_register_notes): Likewise.
4934 (gcore_find_signalled_thread): Likewise.
4935 * gcore.h (gcore_build_thread_register_notes): Declare.
4936 (gcore_find_signalled_thread): Declare.
4937 * fbsd-tdep.c: Add 'gcore.h' include.
4938 (struct fbsd_collect_regset_section_cb_data): Delete.
4939 (fbsd_collect_regset_section_cb): Delete.
4940 (fbsd_collect_thread_registers): Delete.
4941 (struct fbsd_corefile_thread_data): Delete.
4942 (fbsd_corefile_thread): Delete.
4943 (fbsd_make_corefile_notes): Call
4944 gcore_build_thread_register_notes instead of the now deleted
4946 * linux-tdep.c: Add 'gcore.h' include.
4947 (struct linux_collect_regset_section_cb_data): Delete.
4948 (linux_collect_regset_section_cb): Delete.
4949 (linux_collect_thread_registers): Delete.
4950 (linux_corefile_thread): Call
4951 gcore_build_thread_register_notes.
4952 (find_signalled_thread): Delete.
4953 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4955 2021-01-29 Tom de Vries <tdevries@suse.de>
4957 PR breakpoints/26063
4958 * infrun.c (process_event_stop_test): Reset
4959 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4962 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4964 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4965 assert. Extend the header comment.
4967 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4969 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4970 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4971 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4972 (tui_locator_win_info_ptr): Delete declaration.
4973 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4974 (tui_disasm_window::set_contents): Fetch state from tui_location
4976 (tui_get_begin_asm_address): Likewise.
4977 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4979 (get_locator_window): Delete.
4980 (initialize_known_windows): Treat locator window just like all the
4982 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4983 (tui_source_window::set_contents): Fetch state from tui_location
4985 (tui_source_window::showing_source_p): Likewise.
4986 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4988 (tui_locator_win_info_ptr): Delete.
4989 (tui_locator_window::make_status_line): Fetch state from
4990 tui_location global.
4991 (tui_locator_window::rerender): Remove check of 'handle',
4992 reindent function body.
4993 (tui_locator_window::set_locator_fullname): Delete.
4994 (tui_locator_window::set_locator_info): Delete.
4995 (tui_update_locator_fullname): Delete.
4996 (tui_show_frame_info): Likewise.
4997 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4998 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4999 tui/tui-location.h and renamed to
5000 tui_location_tracker::set_location.
5001 (tui_locator_window::set_locator_fullname): Moved to
5002 tui/tui-location.h and renamed to
5003 tui_location_tracker::set_fullname.
5004 (tui_locator_window::full_name): Delete.
5005 (tui_locator_window::proc_name): Delete.
5006 (tui_locator_window::line_no): Delete.
5007 (tui_locator_window::addr): Delete.
5008 (tui_locator_window::gdbarch): Delete.
5009 (tui_update_locator_fullname): Delete declaration.
5010 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5012 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5013 (tui_display_main): Call function on tui_location directly.
5014 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5015 * tui/tui-location.c: New file.
5016 * tui/tui-location.h: New file.
5018 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5020 * gdbtypes.h (get_type_arch): Rename to...
5021 (struct type) <arch>: ... this, update all users.
5023 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5025 * gdbtypes.h (struct type) <arch>: Rename to...
5026 <arch_owner>: ... this, update all users.
5027 <objfile>: Rename to...
5028 <objfile_owner>: ... this, update all users.
5030 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5032 * gdbcmd.h (execute_command_to_string): Update comment.
5033 * top.c (execute_command_to_string): Update header comment.
5035 2021-01-28 Tom de Vries <tdevries@suse.de>
5037 PR breakpoints/27205
5038 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5039 (create_longjmp_master_breakpoint_names): New function, factored out
5041 (create_longjmp_master_breakpoint): ... here. Only try to install
5042 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5043 breakpoint in libc.so failed.
5045 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5048 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5049 unique_ptr is released when the wrapped pointer is kept for later
5052 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5054 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5055 BLR and BR instructions.
5056 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5057 (enum aarch64_masks): New.
5059 2021-01-26 Tom Tromey <tromey@adacore.com>
5061 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5062 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5063 (windows_init_thread_list, windows_nat::handle_load_dll)
5064 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5065 (windows_nat_target::resume)
5066 (windows_nat_target::get_windows_debug_event)
5067 (windows_nat_target::interrupt, windows_xfer_memory)
5068 (windows_nat_target::close): Update.
5069 * nat/windows-nat.c (DEBUG_EVENTS): Use
5070 debug_prefixed_printf_cond.
5071 (matching_pending_stop, fetch_pending_stop)
5072 (continue_last_debug_event): Update.
5074 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5076 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5077 elfcore_write_file_note.
5079 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5081 * arc-tdep.c (arc_add_reggroups): New function.
5082 (arc_gdbarch_init): Call arc_add_reggroups.
5084 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5086 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5088 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5089 Simon Marchi <simon.marchi@polymtl.ca>
5090 Tom de Vries <tdevries@suse.de>
5092 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5095 2021-01-25 Tom Tromey <tromey@adacore.com>
5097 * dwarf2/read.c (get_mpz): New function.
5098 (get_dwarf2_rational_constant): Use it.
5100 2021-01-25 Tom Tromey <tromey@adacore.com>
5102 * ada-lang.c (resolve_subexp): Handle array context.
5104 2021-01-23 Tom Tromey <tom@tromey.com>
5107 * compile/compile-loc2c.c (note_register): New function.
5108 (pushf_register_address, pushf_register): Use it.
5110 2021-01-23 Tom Tromey <tom@tromey.com>
5112 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5113 Change type of "registers_used".
5114 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5115 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5116 (locexpr_generate_c_location, loclist_generate_c_location): Change
5117 type of "registers_used".
5118 * compile/compile.h (compile_dwarf_expr_to_c)
5119 (compile_dwarf_bounds_to_c): Update.
5120 * compile/compile-loc2c.c (pushf_register_address)
5121 (pushf_register, do_compile_dwarf_expr_to_c)
5122 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5123 of "registers_used".
5124 * compile/compile-c.h (generate_c_for_variable_locations):
5126 * compile/compile-c-symbols.c (generate_vla_size)
5127 (generate_c_for_for_one_variable): Change type of
5129 (generate_c_for_variable_locations): Return std::vector.
5130 * compile/compile-c-support.c (generate_register_struct): Change
5131 type of "registers_used".
5134 2021-01-23 Tom Tromey <tom@tromey.com>
5136 * compile/compile-internal.h (class compile_instance)
5137 <set_arguments>: Change return type.
5138 * compile/compile.c (compile_to_object): Remove call to reset.
5139 (compile_instance::set_arguments): Change return type.
5141 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5143 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5144 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5146 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5148 * Makefile.in (SELFTESTS_SRCS): Add
5149 unittests/gdb_tilde_expand-selftests.c.
5150 * unittests/gdb_tilde_expand-selftests.c: New file.
5152 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5155 * NEWS: Mention new command.
5156 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5157 (version_style): Define.
5158 (cli_style_option::cli_style_option): Add intensity parameter, and
5160 (_initialize_cli_style): Register version style set/show commands.
5161 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5162 (version_style): Declare.
5163 * top.c (print_gdb_version): Use version_stype, and styled_string
5164 to print the GDB version string.
5166 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5168 * utils.c (emit_style_escape): Only emit an escape sequence if the
5169 requested style is different than the current applied style.
5170 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5171 current applied_style.
5172 (fputs_styled): Remove is_default check.
5173 (fputs_styled_unfiltered): Likewise.
5174 (vfprintf_styled_no_gdbfmt): Likewise.
5176 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5178 * remote.h (remote_debug_printf): New.
5179 (remote_debug_printf_nofunc): New.
5180 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5181 * remote.c: Use above macros throughout file.
5183 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5185 * remote.h (remote_debug): Change to bool.
5186 * remote.c (remote_debug): Change to bool.
5187 (_initialize_remote): Adjust.
5189 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5191 * target.h (remote_debug): Move to...
5192 * remote.h (remote_debug): ... here.
5193 * top.c (remote_debug): Move to...
5194 * remote.c (remote_debug): ... here.
5195 * remote-sim.c: Include remote.h.
5197 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5199 * cli/cli-cmds.c (show_remote_debug): Remove.
5200 (show_remote_timeout): Remove.
5201 (_initialize_cli_cmds): Don't register commands.
5202 * remote.c (show_remote_debug): Move here.
5203 (show_remote_timeout): Move here.
5204 (_initialize_remote): Register commands.
5206 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5208 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5209 type::objfile method instead.
5211 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5213 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5214 use the type::is_objfile_owned method.
5216 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5218 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5219 (TYPE_OWNER): Remove.
5220 (TYPE_OBJFILE): Adjust.
5221 (struct main_type) <flag_objfile_owned>: Rename to...
5222 <m_flag_objfile_owned>: ... this.
5223 <owner>: Rename to...
5224 <m_owner>: ... this.
5225 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5227 (TYPE_ALLOC): Adjust.
5228 * gdbtypes.c (alloc_type): Adjust.
5229 (alloc_type_arch): Adjust.
5230 (alloc_type_copy): Adjust.
5231 (get_type_arch): Adjust.
5232 (smash_type): Adjust.
5233 (lookup_array_range_type): Adjust.
5234 (recursive_dump_type): Adjust.
5235 (copy_type_recursive): Adjust.
5236 * compile/compile-c-types.c (convert_func): Adjust.
5237 (convert_type_basic): Adjust.
5238 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5241 (language_arch_info::type_and_symbol::alloc_type_symbol):
5244 2021-01-21 Luis Machado <luis.machado@linaro.org>
5246 * coffread.c (enter_linenos): Passing string to complaint.
5247 * valops.c (value_assign): Make array view.
5249 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5251 * auto-load.h (debug_auto_load): Move here.
5252 (auto_load_debug_printf): New.
5253 * auto-load.c: Use auto_load_debug_printf.
5254 (debug_auto_load): Move to header.
5255 * linux-thread-db.c (try_thread_db_load): Use
5256 auto_load_debug_printf.
5257 * main.c (captured_main_1): Likewise.
5259 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5261 * f-valprint.c (f77_array_offset_tbl): Remove.
5263 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5265 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5267 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5269 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5272 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5275 * python/py-breakpoint.c (bppy_get_location): Handle
5276 bp_hardware_breakpoint.
5277 (bppy_init): Likewise.
5278 (gdbpy_breakpoint_created): Likewise.
5280 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5282 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5284 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5286 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5287 (_initialize_gdb_bfd): Adjust.
5289 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5292 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5294 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5296 * dwarf2/read.c (follow_die_offset): Add logging.
5297 (dwarf2_per_objfile::age_comp_units): Add logging.
5299 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5301 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5302 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5303 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5304 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5305 * arm-tdep.c (struct frame_unwind): Make static.
5306 * auto-load.c (auto_load_safe_path_vec): Make static.
5307 * csky-tdep.c (csky_stub_unwind): Make static.
5308 * gdbarch.c (gdbarch_data_registry): Make static.
5309 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5310 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5311 * i386-tdep.c (i386_frame_setup_skip_insns,
5312 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5314 * infrun.c (observer_mode): Make static.
5315 * linux-nat.c (sigchld_action): Make static.
5316 * linux-thread-db.c (thread_db_list): Make static.
5317 * maint-test-options.c (maintenance_test_options_list):
5318 * mep-tdep.c (mep_csr_registers): Make static.
5319 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5320 (stats): Make static.
5321 * nat/linux-osdata.c (struct osdata_type): Make static.
5322 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5323 * progspace.c (last_program_space_num): Make static.
5324 * python/py-param.c (struct parm_constant): Remove struct type
5326 (parm_constants): Make static.
5327 * python/py-record-btrace.c (btpy_list_methods): Make static.
5328 * python/py-record.c (recpy_gap_type): Make static.
5329 * record.c (record_goto_cmdlist): Make static.
5330 * regcache.c (regcache_descr_handle): Make static.
5331 * registry.h (DEFINE_REGISTRY): Make definition static.
5332 * symmisc.c (std_in, std_out, std_err): Make static.
5333 * top.c (previous_saved_command_line): Make static.
5334 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5336 * unittests/command-def-selftests.c (nr_duplicates,
5337 nr_invalid_prefixcmd, lists): Make static.
5338 * unittests/observable-selftests.c (test_notification): Make
5340 * unittests/optional/assignment/1.cc (counter): Make static.
5341 * unittests/optional/assignment/2.cc (counter): Make static.
5342 * unittests/optional/assignment/3.cc (counter): Make static.
5343 * unittests/optional/assignment/4.cc (counter): Make static.
5344 * unittests/optional/assignment/5.cc (counter): Make static.
5345 * unittests/optional/assignment/6.cc (counter): Make static.
5347 2021-01-20 Joel Sherrill <joel@rtems.org>
5350 * remote.c (struct remote_thread_info) <resume_state>: Rename
5352 <get_resume_state>: ... this.
5353 (remote_target::resume): Adjust.
5354 (remote_target::commit_resume): Adjust.
5355 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5357 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5358 Tom Tromey <tom@tromey.com>
5360 * stap-probe.c (stap_parse_single_operand): Handle '!'
5362 (stap_parse_argument_conditionally): Likewise.
5363 Skip spaces after processing open-parenthesis sub-expression.
5364 (stap_parse_argument_1): Skip spaces after call to
5365 stap_parse_argument_conditionally.
5366 Handle case when right-side expression is a parenthesized
5368 Skip spaces after call to stap_parse_argument_1.
5370 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5372 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5374 2021-01-19 Luis Machado <luis.machado@linaro.org>
5376 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5377 memory and save data.
5378 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5379 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5380 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5381 (trad_frame_value_bytes_p): Remove.
5382 (trad_frame_reset_saved_regs): Adjust documentation.
5383 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5384 constructor and reset the state of the registers.
5385 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5386 (trad_frame_value_bytes_p, trad_frame_set_value)
5387 (trad_frame_set_realreg, trad_frame_set_addr)
5388 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5389 (trad_frame_set_reg_realreg): Update to call member function.
5390 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5391 (trad_frame_get_prev_register): Likewise.
5393 * aarch64-tdep.c (aarch64_analyze_prologue)
5394 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5395 (aarch64_prologue_prev_register): Update to use member functions.
5396 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5397 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5398 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5399 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5400 (arm_make_epilogue_frame_cache): Likewise.
5401 * avr-tdep.c (avr_frame_unwind_cache)
5402 (avr_frame_prev_register): Likewise.
5403 * cris-tdep.c (cris_scan_prologue): Likewise.
5404 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5405 * frv-tdep.c (frv_analyze_prologue): Likewise.
5406 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5407 * lm32-tdep.c (lm32_frame_cache): Likewise.
5408 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5409 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5410 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5411 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5412 (reset_saved_regs): Adjust to set realreg.
5413 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5414 call member functions.
5415 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5416 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5417 (s390_backchain_frame_unwind_cache): Likewise.
5418 * score-tdep.c (score7_analyze_prologue)
5419 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5420 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5421 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5422 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5423 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5424 * tilegx-tdep.c (tilegx_analyze_prologue)
5425 (tilegx_frame_cache): Likewise.
5426 * v850-tdep.c (v850_frame_cache): Likewise.
5427 * vax-tdep.c (vax_frame_cache): Likewise.
5429 2021-01-19 Luis Machado <luis.machado@linaro.org>
5431 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5433 (put_frame_register_bytes): Likewise.
5434 Adjust documentation.
5435 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5436 (safe_frame_unwind_memory): Likewise.
5437 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5438 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5440 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5441 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5442 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5443 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5444 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5445 * dwarf2/loc.c (rw_pieced_value): Likewise.
5446 * hppa-tdep.c (hppa_frame_cache): Likewise.
5447 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5448 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5449 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5450 (i386_linux_rt_sigtramp_start): Likewise.
5451 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5452 * i386-tdep.c (i386_register_to_value): Likewise.
5453 * i387-tdep.c (i387_register_to_value): Likewise.
5454 * ia64-tdep.c (ia64_register_to_value): Likewise.
5455 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5456 (m32r_linux_rt_sigtramp_start): Likewise.
5457 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5458 * m68k-tdep.c (m68k_register_to_value): Likewise.
5459 * mips-tdep.c (mips_register_to_value)
5460 (mips_value_to_register): Likewise.
5461 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5462 (ppcfbsd_sigtramp_frame_cache): Likewise.
5463 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5464 (ppcobsd_sigtramp_frame_cache): Likewise.
5465 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5466 (rs6000_register_to_value): Likewise.
5467 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5468 * tramp-frame.c (tramp_frame_start): Likewise.
5469 * valops.c (value_assign): Likewise.
5471 2021-01-19 Luis Machado <luis.machado@linaro.org>
5473 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5475 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5476 instead of buffer and size.
5477 (trad_frame_set_reg_value_bytes): Likewise.
5478 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5479 (trad_frame_set_value_bytes): Likewise.
5481 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5483 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5485 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5487 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5488 (riscv_fbsd_gregset): Use riscv_supply_regset.
5489 (riscv_fbsd_fpregset): Likewise.
5490 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5491 (riscv_linux_fregset): Likewise.
5492 * riscv-tdep.c (riscv_supply_regset): Define new function.
5493 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5495 2021-01-18 Tom de Vries <tdevries@suse.de>
5498 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5500 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5503 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5505 * remote.c (class remote_target) <remote_hostio_send_command,
5506 remote_hostio_parse_result>: Constify parameter.
5507 (remote_hostio_parse_result): Likewise.
5508 (remote_target::remote_hostio_send_command): Adjust.
5509 (remote_target::remote_hostio_pread_vFile): Adjust.
5510 (remote_target::fileio_readlink): Adjust.
5511 (remote_target::fileio_fstat): Adjust.
5513 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5515 * remote.c (remote_target::start_remote): Move wait_status to
5518 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5520 * remote.c (class remote_target):
5521 <add_current_inferior_and_thread>: Constify parameter.
5522 (stop_reply_extract_thread): Likewise.
5523 (remote_target::get_current_thread): Likewise.
5524 (remote_target::add_current_inferior_and_thread): Likewise.
5526 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5528 * remote.c (class remote_target)
5529 <remote_unpack_thread_info_response,
5530 parse_threadlist_response>: Constify parameter and/or return
5531 value and or local variable.
5532 (stub_unpack_int): Likewise.
5533 (unpack_nibble): Likewise.
5534 (unpack_byte): Likewise.
5535 (unpack_int): Likewise.
5536 (unpack_string): Likewise.
5537 (unpack_threadid): Likewise.
5538 (remote_target::remote_unpack_thread_info_response): Likewise.
5539 (remote_target::parse_threadlist_response): Likewise.
5541 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5543 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5545 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5547 * MAINTAINERS (Write After Approval): Add myself.
5549 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5551 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5552 because is_trivially_default_constructible was first implemented with
5555 2021-01-14 Tom de Vries <tdevries@suse.de>
5557 PR breakpoints/27151
5558 * objfiles.h (in_plt_section): Handle .plt.sec.
5560 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5564 (remote_target::select_thread_for_ambiguous_stop_reply): New
5566 (remote_target::process_stop_reply): Call
5567 select_thread_for_ambiguous_stop_reply.
5569 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5571 * record-btrace.c (class record_btrace_target): Remove.
5572 (record_btrace_target::commit_resume): Remove.
5573 * record-full.c (class record_full_target): Remove.
5574 (record_full_target::commit_resume): Remove.
5576 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5578 * remote.c (enum class resume_state): New.
5579 (struct resumed_pending_vcont_info): New.
5580 (struct remote_thread_info) <resume_state, set_not_resumed,
5581 set_resumed_pending_vcont, resumed_pending_vcont_info,
5582 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5584 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5585 (remote_target::remote_add_thread): Adjust.
5586 (remote_target::process_initial_stop_replies): Adjust.
5587 (remote_target::resume): Adjust.
5588 (remote_target::commit_resume): Rely on state in
5589 remote_thread_info and not on tp->executing.
5590 (remote_target::process_stop_reply): Adjust.
5592 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5594 * arc-tdep.h (arc_debug_printf): New.
5595 * arc-tdep.c: Use arc_debug_printf.
5596 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5597 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5598 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5600 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5602 * arc-tdep.h (arc_debug): Change type to bool.
5603 * arc-tdep.c (arc_debug): Change type to bool.
5604 (arc_analyze_prologue): Adjust.
5605 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5606 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5608 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5610 * auto-load.c (auto_load_objfile_script_1): Use bool.
5611 (execute_script_contents): Use bool.
5613 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5615 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5617 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5619 * extension-priv.h (struct extension_language_script_ops)
5620 <auto_load_enabled>: Return bool.
5621 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5623 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5625 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5627 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5628 move comment to header.
5629 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5631 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5632 move comment to header.
5634 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5636 * auto-load.h (file_is_auto_load_safe): Change return type to
5637 bool, move comment here.
5638 * auto-load.c (file_is_auto_load_safe): Change return type and
5639 advice_printed to bool. Move comment to header.
5641 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5643 * jit.c (jit_debug_printf): New, use throughout file.
5645 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5647 * infrun.c (normal_stop): Fix indentation.
5649 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5651 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5653 * symfile.h: ... here.
5654 * symfile.c: Update doc.
5656 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5658 * target.h (baud_rate, serial_parity): Move declarations...
5659 * serial.h: ... here.
5660 * main.c: Include serial.h.
5661 * serial.c (baud_rate, serial_parity): Update doc.
5663 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5665 * top.c (pre_init_ui_hook): Remove.
5667 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5669 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5670 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5671 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5672 * features/aarch64-fpu.xml: Add bfloat16 type.
5674 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5676 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5678 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5680 * f-exp.y (dot_ops): Rename to...
5681 (fortran_operators): ...this. Add a header comment. Add symbol
5683 (yylex): Update to use fortran_operators not dot_ops. Remove
5684 special handling for '**', this is now included in
5687 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5689 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5690 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5691 * aarch64-tdep.c: Use aarch64_debug_printf.
5693 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5695 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5698 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5700 * jit.c (jit_debug): Change type to bool.
5701 (_initialize_jit): Adjust.
5703 2021-01-09 Tom Tromey <tom@tromey.com>
5706 * compile/compile.c (compile_to_object): Avoid crash when
5707 osabi_triplet_regexp returns NULL.
5709 2021-01-09 Tom Tromey <tom@tromey.com>
5711 * tracepoint.h (class collection_list) <append_exp>: Take a
5713 * tracepoint.c (collection_list::append_exp): Take a std::string.
5714 (encode_actions_1): Update.
5716 2021-01-08 Tom Tromey <tromey@adacore.com>
5718 * parse.c (parse_expression): Add void_context_p parameter. Use
5719 parse_exp_in_context.
5720 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5722 (print_command, call_command): Update.
5723 * expression.h (parse_expression): Add void_context_p parameter.
5725 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5727 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5728 for internalvar components that have a dynamic location.
5730 2021-01-08 Tom de Vries <tdevries@suse.de>
5733 * breakpoint.c (create_exception_master_breakpoint_probe)
5734 (create_exception_master_breakpoint_hook): Factor out
5736 (create_exception_master_breakpoint): ... here. Only try to install
5737 the master exception breakpoint in objfile.debug using the
5738 _Unwind_DebugHook method, if the install using probes in objfile
5741 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5743 * f-lang.c (fortran_value_subarray): Call value_from_component.
5745 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5747 * remote-sim.c: Include memory-map.h.
5748 (gdbsim_target): Define memory_map override.
5749 (gdbsim_target::memory_map): Define.
5751 2021-01-07 Tom Tromey <tromey@adacore.com>
5753 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5755 2021-01-07 Tom Tromey <tromey@adacore.com>
5757 * ada-lang.c (add_component_interval): Start loop using vector's
5760 2021-01-06 Tom Tromey <tromey@adacore.com>
5762 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5764 * valarith.c (fixed_point_binop): Handle multiplication
5765 and division specially.
5766 * valops.c (value_to_gdb_mpq): New function.
5767 (value_cast_to_fixed_point): Use it.
5769 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5771 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5772 Call wnoutrefresh instead of tui_win_info::refresh_window.
5774 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5776 * tui/tui-source.c (tui_source_window::show_line_number):
5777 Redraw second space after line number.
5779 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5782 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5783 Fix source pad size in prefresh.
5784 (tui_source_window_base::show_source_content): Grow source pad
5787 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5789 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5790 (bfin_frame_align): Use align_down.
5792 2021-01-04 Tom de Vries <tdevries@suse.de>
5794 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5795 terminators that do not terminate anything.
5797 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5799 * debug.c (debug_print_depth): New.
5800 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5801 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5802 * infrun.c (start_step_over): Use
5803 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5804 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5805 INFRUN_SCOPED_DEBUG_START_END.
5806 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5808 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5810 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5812 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5814 * utils.c (vfprintf_unfiltered): Print timestamp only when
5815 previous debug output ended with a newline.
5817 2021-01-04 Luis Machado <luis.machado@linaro.org>
5819 Update all users of trad_frame_saved_reg to use the new member
5822 Remote all struct keywords from declarations of trad_frame_saved_reg
5823 types, except on forward declarations.
5825 * aarch64-tdep.c: Update.
5826 * alpha-mdebug-tdep.c: Update.
5827 * alpha-tdep.c: Update.
5828 * arc-tdep.c: Update.
5829 * arm-tdep.c: Update.
5830 * avr-tdep.c: Update.
5831 * cris-tdep.c: Update.
5832 * csky-tdep.c: Update.
5833 * frv-tdep.c: Update.
5834 * hppa-linux-tdep.c: Update.
5835 * hppa-tdep.c: Update.
5836 * hppa-tdep.h: Update.
5837 * lm32-tdep.c: Update.
5838 * m32r-linux-tdep.c: Update.
5839 * m32r-tdep.c: Update.
5840 * m68hc11-tdep.c: Update.
5841 * mips-tdep.c: Update.
5842 * moxie-tdep.c: Update.
5843 * riscv-tdep.c: Update.
5844 * rs6000-tdep.c: Update.
5845 * s390-linux-tdep.c: Update.
5846 * s390-tdep.c: Update.
5847 * score-tdep.c: Update.
5848 * sparc-netbsd-tdep.c: Update.
5849 * sparc-sol2-tdep.c: Update.
5850 * sparc64-fbsd-tdep.c: Update.
5851 * sparc64-netbsd-tdep.c: Update.
5852 * sparc64-obsd-tdep.c: Update.
5853 * sparc64-sol2-tdep.c: Update.
5854 * tilegx-tdep.c: Update.
5855 * v850-tdep.c: Update.
5856 * vax-tdep.c: Update.
5858 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5859 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5861 * trad-frame.c: Update.
5862 Remove TF_REG_* enum.
5863 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5864 a trivially-constructible struct.
5865 (trad_frame_reset_saved_regs): Adjust to use member function.
5866 (trad_frame_value_p): Likewise.
5867 (trad_frame_addr_p): Likewise.
5868 (trad_frame_realreg_p): Likewise.
5869 (trad_frame_value_bytes_p): Likewise.
5870 (trad_frame_set_value): Likewise.
5871 (trad_frame_set_realreg): Likewise.
5872 (trad_frame_set_addr): Likewise.
5873 (trad_frame_set_unknown): Likewise.
5874 (trad_frame_set_value_bytes): Likewise.
5875 (trad_frame_get_prev_register): Likewise.
5876 * trad-frame.h: Update.
5877 (trad_frame_saved_reg_kind): New enum.
5878 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5879 <m_kind, m_reg>: New member fields.
5880 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5881 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5882 <is_addr, is_unknown, is_value_bytes>: New member functions.
5884 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5886 * target-float.c: Fix typos.
5888 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5890 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5892 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5894 * gdbarch.sh: Update copyright year range.
5896 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5898 Update copyright year range in copyright header of all GDB files.
5900 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5902 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5903 to the list of directories to update.
5905 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5907 * top.c (print_gdb_version): Update copyright year.
5909 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5911 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5913 For older changes see ChangeLog-2020.
5919 version-control: never