1 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
3 * nat/linux-waitpid.c (status_to_str): Show signal name.
5 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
7 * python/py-breakpoint.c (pybp_debug): New static global.
8 (show_pybp_debug): New function.
9 (pybp_debug_printf): Define.
10 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
11 (gdbpy_breakpoint_created): Add some debugging.
12 (gdbpy_breakpoint_deleted): Likewise.
13 (gdbpy_breakpoint_modified): Likewise.
14 (_initialize_py_breakpoint): New function.
16 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
18 * python/py-unwind.c (pyuw_debug): Convert to bool.
19 (show_pyuw_debug): New function.
20 (pyuw_debug_printf): Define.
21 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
22 (pyuw_this_id): Convert to new debug print macros.
23 (pyuw_prev_register): Likewise.
24 (pyuw_sniffer): Likewise.
25 (pyuw_dealloc_cache): Likewise.
26 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
27 show function when registering.
29 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
31 * dummy-frame.c (fprint_dummy_frames): Convert use of
32 fprint_frame_id to use frame_id::to_string.
33 * frame.c (fprint_field): Delete.
34 (fprint_frame_id): Moved to...
35 (frame_id::to_string): ...this, rewritten to return a string.
36 (fprint_frame): Convert use of fprint_frame_id to use
38 (compute_frame_id): Likewise.
39 (frame_id_p): Likewise.
40 (frame_id_eq): Likewise.
41 (frame_id_inner): Likewise.
42 * frame.h (struct frame_id) <to_string>: New member function.
43 (fprint_frame_id): Delete declaration.
44 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
45 fprint_frame_id to use frame_id::to_string.
46 * python/py-frame.c (frame_object_to_frame_info): Likewise.
47 * python/py-unwind.c (unwind_infopy_str): Likewise.
48 (pyuw_this_id): Likewise.
50 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
52 * nat/linux-waitpid.c (status_to_str): Return std::string.
53 * nat/linux-waitpid.h (status_to_str): Likewise.
54 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
55 (linux_nat_target::attach): Adjust.
56 (linux_handle_extended_wait): Adjust.
58 (stop_wait_callback): Adjust.
59 (linux_nat_filter_event): Adjust.
60 (linux_nat_wait_1): Adjust.
61 * nat/linux-waitpid.c (status_to_str): Adjust.
62 * nat/linux-waitpid.h (status_to_str): Adjust.
64 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
66 * infrun.h (infrun_debug_printf): Add missing space.
68 2021-05-08 Pedro Alves <pedro@palves.net>
70 * linux-nat.c (linux_nat_target::supports_disable_randomization):
71 Remove references to HAVE_PERSONALITY.
72 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
73 (maybe_disable_address_space_randomization)
74 (~maybe_disable_address_space_randomizatio): Remove references to
76 * config.in, configure: Regenerate.
78 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
80 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
82 (source_script_with_search): Perform tilde expansion.
84 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
86 * target-descriptions.c (struct target_desc_info) <filename>:
88 (copy_inferior_target_desc_info): Adjust.
89 (target_desc_info_free): Adjust.
90 (target_find_description): Adjust.
91 (set_tdesc_filename_cmd): Adjust.
92 (show_tdesc_filename_cmd): Adjust.
93 (unset_tdesc_filename_cmd): Adjust.
94 (maint_print_c_tdesc_cmd): Adjust.
96 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
98 * target-descriptions.c (struct target_desc_info): Initialize
100 (get_tdesc_info): Use new.
101 (target_desc_info_free): Use delete.
103 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
105 * target-descriptions.c (struct target_desc_info) <fetched>:
107 (target_find_description): Adjust.
108 (target_clear_description): Adjust.
110 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
112 * target-descriptions.c (struct target_desc_info) <tdesc>:
114 (target_desc_fetched): Remove.
115 (current_target_desc): Remove.
116 (target_description_filename): Remove.
117 (target_find_description): Adjust.
118 (target_clear_description): Adjust.
119 (target_current_description): Adjust.
120 (set_tdesc_filename_cmd): Adjust.
121 (show_tdesc_filename_cmd): Adjust.
122 (unset_tdesc_filename_cmd): Adjust.
123 (maint_print_c_tdesc_cmd): Adjust.
124 (maint_print_xml_tdesc_cmd): Adjust.
126 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
128 * infcmd.c (notice_new_inferior): Change parameter type.
129 * inferior.h (notice_new_inferior): Change parameter type.
130 * remote.c (remote_notice_new_inferior): Change parameter type to
131 bool. Also update type of local variable to bool.
132 (remote_target::update_thread_list): Change type of local variable
134 (remote_target::process_stop_reply): Pass bool instead of int to
135 remote_notice_new_inferior.
137 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
139 * target.c (target_stack::unpush): Call target_ops::find_beneath
140 to get the target beneath `t`.
142 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
144 * target.c (target_close): Check in all inferiors that the
145 target is not pushed.
147 2021-05-07 Aaron Merey <amerey@redhat.com>
149 * debuginfod-support.c (debuginfod_init): Remove.
150 (get_debuginfod_client): New function.
152 2021-05-07 Tom Tromey <tom@tromey.com>
154 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
155 * utils.c (streq_hash): Remove.
156 * utils.h (streq_hash): Don't declare.
157 * completer.c (completion_tracker::discard_completions): Update
159 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
161 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
163 * Re-format all Python files using black.
165 2021-05-07 Tom de Vries <tdevries@suse.de>
168 * dwarf2/read.c (struct dwarf2_cu): Remove ancestor.
169 (dwarf2_cu::get_builder): Remove ancestor-related code.
170 (new_symbol): Remove code supporting pre-4.1 gcc that show arguments
171 of inlined functions as locals.
172 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
174 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
176 * guile/guile-internal.h (gdbscm_safe_source_script): Change
177 function return type.
178 * guile/guile.c (gdbscm_source_script): Update to handle change in
179 gdbscm_safe_source_script.
180 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
181 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
184 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
186 * inferior.h (class inferior) <args>: Change type to
188 * inferior.c (inferior::~inferior): Don't free args.
189 * infcmd.c (get_inferior_args): Adjust.
190 (set_inferior_args): Adjust.
192 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
194 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
195 breakpoint locations when the breakpoint actually has a location.
197 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
199 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
200 * mi/mi-cmds.c: Change the binding of "-break-condition" to
201 mi_cmd_break_condition.
202 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
203 * breakpoint.h (set_breakpoint_condition): Declare a new
205 * breakpoint.c (set_breakpoint_condition): New overloaded function
206 extracted out from ...
207 (condition_command): ... this.
208 * NEWS: Mention the change.
210 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
212 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
213 '--force-condition' flag to force the condition in the
214 '-break-insert' and '-dprintf-insert' commands.
215 * NEWS: Mention the change.
217 2021-05-04 Tom de Vries <tdevries@suse.de>
220 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
223 2021-04-30 Tom Tromey <tom@tromey.com>
225 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
226 (add_signatured_type_cu_to_table): Remove.
227 (create_debug_type_hash_table): Assume dwo_file is non-null.
228 (create_debug_types_hash_table): Update comment.
229 (create_all_type_units): Remove.
230 (sort_tu_by_abbrev_offset): Update comment.
231 (build_type_psymtabs): Rename from build_type_psymtabs_1.
232 (build_type_psymtabs): Remove.
233 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
235 (read_comp_units_from_section): Add types_htab, section_kind
237 (create_all_comp_units): Read type units.
239 2021-04-30 Tom Tromey <tom@tromey.com>
241 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
242 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
243 <get_cu>: Now inline.
244 <all_type_units>: Remove.
245 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
246 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
247 (dwarf2_per_bfd::get_tu): Remove.
248 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
249 (create_signatured_type_table_from_index)
250 (create_signatured_type_table_from_debug_names)
251 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
252 (dwarf2_base_index_functions::expand_all_symtabs)
253 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
254 (dwarf2_base_index_functions::map_symbol_filenames)
255 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
256 (add_signatured_type_cu_to_table, create_all_type_units)
257 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
258 (create_all_comp_units): Update.
259 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
260 (write_debug_names): Update.
262 2021-04-30 Tom Tromey <tom@tromey.com>
264 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
265 allocate_signatured_type>: Change return type.
266 <all_comp_units, all_type_units>: Hold unique pointers.
267 (struct dwarf2_per_cu_data): Add constructor and initializers.
268 (struct signatured_type): Derive from dwarf2_per_cu_data.
269 * dwarf2/read.c (type_unit_group): Derive from
271 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
272 (dwarf2_per_bfd::get_tu)
273 (dwarf2_per_bfd::allocate_signatured_type)
274 (dwarf2_per_bfd::allocate_signatured_type)
275 (create_cu_from_index_list, create_cus_from_index_list)
276 (create_signatured_type_table_from_index)
277 (create_signatured_type_table_from_debug_names)
278 (create_addrmap_from_aranges)
279 (dwarf2_base_index_functions::find_last_source_symtab)
280 (dw_expand_symtabs_matching_file_matcher)
281 (dwarf2_gdb_index::expand_symtabs_matching)
282 (dwarf2_base_index_functions::map_symbol_filenames)
283 (create_cus_from_debug_names_list)
284 (dw2_debug_names_iterator::next)
285 (dwarf2_debug_names_index::expand_symtabs_matching)
286 (create_debug_type_hash_table, add_type_unit)
287 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
289 (allocate_type_unit_groups_table): Use delete.
290 (create_type_unit_group): Change return type. Use new.
291 (get_type_unit_group, build_type_psymtabs_1)
292 (build_type_psymtab_dependencies)
293 (process_skeletonless_type_unit, set_partial_user)
294 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
295 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
296 (read_signatured_type): Update.
297 (dwarf2_find_containing_comp_unit): Change type of
300 (dwarf2_per_bfd::allocate_per_cu)
301 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
303 (add_signatured_type_cu_to_table): Update.
304 * dwarf2/index-write.c (write_one_signatured_type)
305 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
306 (write_debug_names): Update.
308 2021-04-30 Tom Tromey <tromey@adacore.com>
310 * nat/windows-nat.h (get_image_name): Don't declare.
311 * nat/windows-nat.c (get_image_name): Now static.
313 2021-04-30 Tom Tromey <tromey@adacore.com>
315 * windows-nat.c (windows_nat::handle_load_dll): Update.
316 (windows_nat_target::get_windows_debug_event): Call
318 (windows_add_all_dlls, windows_add_dll): Move to
320 * nat/windows-nat.h (handle_load_dll): Change parameters.
321 (dll_loaded_event, windows_add_all_dlls): Declare.
322 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
324 (dll_loaded_event): New function.
326 2021-04-30 Tom Tromey <tromey@adacore.com>
328 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
329 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
331 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
332 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
334 2021-04-30 Tom Tromey <tromey@adacore.com>
336 * windows-nat.c: Move code to nat/windows-nat.[ch].
337 (_initialize_windows_nat): Call initialize_loadable.
338 * nat/windows-nat.h (AdjustTokenPrivileges)
339 (DebugActiveProcessStop, DebugBreakProcess)
340 (DebugSetProcessKillOnExit, EnumProcessModules)
341 (EnumProcessModulesEx, GetModuleInformation)
342 (GetModuleFileNameExA, GetModuleFileNameExW)
343 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
344 (GetCurrentConsoleFont, Wow64SuspendThread)
345 (Wow64GetThreadContext, Wow64SetThreadContext)
346 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
347 (AdjustTokenPrivileges_ftype)
348 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
349 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
350 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
351 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
352 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
353 (GetConsoleFontSize_ftype)
354 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
355 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
356 (Wow64GetThreadSelectorEntry_ftype): Likewise.
357 (initialize_loadable): Declare.
358 * nat/windows-nat.c (AdjustTokenPrivileges)
359 (DebugActiveProcessStop, DebugBreakProcess)
360 (DebugSetProcessKillOnExit, EnumProcessModules)
361 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
362 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
363 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
364 (Wow64GetThreadContext, Wow64SetThreadContext)
365 (Wow64GetThreadSelectorEntry): Define.
366 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
368 (initialize_loadable): Likewise, and rename.
370 2021-04-30 Tom Tromey <tromey@adacore.com>
372 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
373 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
374 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
375 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
376 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
377 (bad): New template functions.
378 (_initialize_loadable): Update.
380 2021-04-30 Tom Tromey <tromey@adacore.com>
382 * ada-lang.c (ada_index_type): Use ada_check_typedef.
384 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
386 * auto-load.h: Split namespace declaration.
388 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
390 * infrun.c (save_waitstatus): Move variables to inner scope.
392 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
394 * NEWS: Fix typo and stray full stop.
396 2021-04-28 Tom Tromey <tromey@adacore.com>
398 * ada-exp.y (primary): Use new type for null pointer.
399 * ada-lang.c (ada_type_match): Remove "may_deref"
400 parameter. Handle null pointer.
401 (ada_args_match): Update.
402 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
405 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
407 * NEWS: Mention new commands.
408 * python/python.c (python_ignore_environment): New static global.
409 (show_python_ignore_environment): New function.
410 (set_python_ignore_environment): New function.
411 (python_dont_write_bytecode): New static global.
412 (show_python_dont_write_bytecode): New function.
413 (set_python_dont_write_bytecode): New function.
414 (_initialize_python): Register new commands.
416 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
418 * extension-priv.h (struct extension_language_ops): Rename
419 'finish_initialization' to 'initialize'.
420 * extension.c (finish_ext_lang_initialization): Renamed to...
421 (ext_lang_initialization): ...this, update comment, and updated
422 the calls to reflect the change in struct extension_language_ops.
423 * extension.h (finish_ext_lang_initialization): Renamed to...
424 (ext_lang_initialization): ...this.
425 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
426 (gdbscm_initialize): ...this, update comment at definition.
427 (guile_extension_ops): Update.
428 * main.c (captured_main_1): Update call to
429 finish_ext_lang_initialization.
430 * python/python.c (gdbpy_finish_initialization): Rename to...
431 (gdbpy_initialize): ...this, update comment at definition, and
432 update call to do_finish_initialization.
433 (python_extension_ops): Update.
434 (do_finish_initialization): Rename to...
435 (do_initialize): ...this, and update comment.
437 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
439 * main.c (captured_main_1): Add a call to
440 finish_ext_lang_initialization.
441 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
443 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
445 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
446 (gdbscm_finish_initialization): Add code moved from
448 (_initialize_guile): Move code to gdbscm_finish_initialization.
449 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
450 _initialize_scm_arch.
451 (_initialize_scm_arch): New function.
452 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
453 into _initialize_scm_block.
454 (_initialize_scm_block): New function.
455 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
456 into _initialize_scm_frame.
457 (_initialize_scm_frame): New function.
458 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
459 into _initialize_scm_objfile.
460 (_initialize_scm_objfile): New function.
461 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
462 code into _initialize_scm_progspace.
463 (_initialize_scm_progspace): New function.
464 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
465 into _initialize_scm_symbol.
466 (_initialize_scm_symbol): New function.
467 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
468 into _initialize_scm_symtab.
469 (_initialize_scm_symtab): New function.
470 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
471 _initialize_scm_type.
472 (_initialize_scm_type): New function.
474 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
476 * python/py-arch.c (_initialize_py_arch): New function.
477 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
478 * python/py-block.c (_initialize_py_block): New function.
479 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
480 * python/py-inferior.c (_initialize_py_inferior): New function.
481 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
482 * python/py-objfile.c (_initialize_py_objfile): New function.
483 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
484 * python/py-progspace.c (_initialize_py_progspace): New function.
485 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
486 * python/py-registers.c (_initialize_py_registers): New function.
487 (gdbpy_initialize_registers): Move code to
488 _initialize_py_registers.
489 * python/py-symbol.c (_initialize_py_symbol): New function.
490 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
491 * python/py-symtab.c (_initialize_py_symtab): New function.
492 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
493 * python/py-type.c (_initialize_py_type): New function.
494 (gdbpy_initialize_types): Move code to _initialize_py_type.
495 * python/py-unwind.c (_initialize_py_unwind): New function.
496 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
497 * python/python.c (_initialize_python): Move call to
498 do_start_initialization to gdbpy_finish_initialization.
499 (gdbpy_finish_initialization): Add call to
500 do_start_initialization.
502 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
504 * extension.c (struct scoped_default_signal): New struct.
505 (scoped_default_sigint): New typedef.
506 (finish_ext_lang_initialization): Make use of
507 scoped_default_sigint.
509 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
511 * main.c (captured_main_1): Don't pass argument to gdb_init.
512 * top.c (gdb_init): Remove unused argument, and add header
514 * top.h (gdb_init): Remove argument.
516 2021-04-27 Luis Machado <luis.machado@linaro.org>
518 * psymtab.c (psymbol_functions::dump): Output newline.
520 * symmisc.c (dump_objfile): Likewise.
522 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
523 Simon Marchi <simon.marchi@polymtl.ca>
525 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
526 when attaching the 'auto_load_new_objfile' observer, so
527 other observers can specify it as a dependency.
528 * gdb/auto-load.h (struct token): Declare
529 'auto_load_new_objfile_observer_token' as token to be used
530 for the 'auto_load_new_objfile' observer.
531 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
532 'python_new_objfile' observer depend on 'auto_load_new_objfile'
533 observer, so it gets notified after the latter.
535 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
536 Simon Marchi <simon.marchi@polymtl.ca>
538 * unittests/observable-selftests.c (dependency_test_counters):
540 (observer_token0, observer_token1, observer_token2,
541 observer_token3, observer_token4, observer_token5): New.
542 (struct dependency_observer_data): New struct.
543 (observer_dependency_test_callback): New function.
544 (test_observers): New.
545 (run_dependency_test): New function.
546 (test_dependency): New.
547 (_initialize_observer_selftest): Register dependency test.
549 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
552 * cli/cli-dump.c (dump_binary_file): Check result of
555 2021-04-25 Sergei Trofimovich <siarheit@google.com>
557 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
558 by passing `process_stratum_target*` parameter.
560 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
563 * typeprint.h (struct type_print_options): Add print_in_hex
565 (struct print_offset_data): Add print_in_hex flag, add a
566 constructor accepting a type_print_options* argument.
567 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
568 default value for print_in_hex.
569 (print_offset_data::indentation): Allow more horizontal space.
570 (print_offset_data::print_offset_data): Add ctor.
571 (print_offset_data::maybe_print_hole, print_offset_data::update):
572 Handle the print_in_hex flag.
573 (whatis_exp): Handle 'x' and 'd' flags.
574 (print_offsets_and_sizes_in_hex): Declare.
575 (set_print_offsets_and_sizes_in_hex): Create.
576 (show_print_offsets_and_sizes_in_hex): Create.
577 (_initialize_typeprint): Update help message for the ptype
578 command, register the 'set print type hex' and 'show print type
580 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
581 (c_type_print_base): Construct the print_offset_data
582 object using the type_print_optons parameter.
583 * rust-lang.c (rust_language::print_type): Construct the
584 print_offset_data object using the type_print_optons parameter.
585 * NEWS: Mention the new flags of the ptype command.
587 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
589 * typeprint.h (struct type_print_options): Move before
592 2021-04-25 Joel Brobecker <brobecker@adacore.com>
596 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
598 * observable.c (observer_debug): Change to bool.
600 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
602 * dwarf2/read.c: Add 'unordered_set' include.
603 (dwarf2_base_index_functions::map_symbol_filenames): Replace
604 'visited' hash table with 'qfn_cache' unordered_set. Remove use
605 of per_Bfd->filenames_cache cache, and use function local
606 filenames_cache instead. Reindent.
607 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
609 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
611 * breakpoint.c (iterate_over_bp_locations): Change callback to
612 function view, remove data parameter.
613 * breakpoint.h (iterate_over_bp_locations): Likewise.
614 * record-full.c (record_full_sync_record_breakpoints): Remove
617 2021-04-22 Tom Tromey <tom@tromey.com>
619 * c-typeprint.c (c_type_print_base_struct_union): Use
620 print_spaces_filtered_with_print_options.
622 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
625 * python/py-type.c (typy_range): Check that bounds are constant
626 before accessing them as such.
627 * guile/scm-type.c (gdbscm_type_range): Likewise.
629 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
631 * Makefile.in (COMMON_SFILES): Remove continuations.c.
632 * inferior.c (inferior::add_continuation): New method, adapted
633 from 'add_inferior_continuation'.
634 (inferior::do_all_continuations): New method, adapted from
635 'do_all_inferior_continuations'.
636 (inferior::~inferior): Clear the list of continuations directly.
637 * inferior.h (class inferior) <continuations>: Rename into...
638 <m_continuations>: ...this and make private.
639 * continuations.c: Remove.
640 * continuations.h: Remove.
641 * event-top.c: Don't include "continuations.h".
643 Update the users below.
644 * inf-loop.c (inferior_event_handler)
645 * infcmd.c (attach_command)
646 (notice_new_inferior): Update.
648 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
650 * inferior.h (class inferior) <continuations>: Change the type
651 to be an std::list of std::function's.
652 Update the references and uses below.
653 * continuations.c (struct continuation): Delete.
654 (make_continuation): Delete.
655 (do_my_continuations_1): Delete.
656 (do_my_continuations): Delete.
657 (discard_my_continuations_1): Delete.
658 (discard_my_continuations): Delete.
659 (add_inferior_continuation): Update.
660 (do_all_inferior_continuations): Update.
661 (discard_all_inferior_continuations): Update.
662 * continuations.h (add_inferior_continuation): Update to take
663 an std::function as the parameter.
664 * infcmd.c (struct attach_command_continuation_args): Delete.
665 (attach_command_continuation): Delete.
666 (attach_command_continuation_free_args): Delete.
667 (attach_command): Update.
668 (notice_new_inferior): Update.
670 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
672 * continuations.h: Update the general comment.
673 * inferior.h (class inferior) <continuations>: Update the comment.
674 * interps.c: Do not include "continuations.h".
676 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
678 * continuations.h (do_all_inferior_continuations): Remove the 'err'
679 parameter. Update the references below.
680 * continuations.c (do_my_continuations_1)
681 (do_my_continuations)
682 (do_all_inferior_continuations): Update.
683 * inf-loop.c (inferior_event_handler): Update.
684 * infcmd.c (attach_command_continuation): Update.
686 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
688 * infcmd.c (attach_post_wait): Update the function comment.
690 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
692 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
693 Update the references below.
694 (struct attach_command_continuation_args)
695 (attach_command_continuation)
696 (attach_command_continuation_free_args)
698 (notice_new_inferior): Update to remove the reference to 'args'.
700 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
701 Tom de Vries <tdevries@suse.de>
704 * remote.c (remote_target_is_non_stop_p): New function.
705 * remote.h (remote_target_is_non_stop_p): Declare.
706 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
707 to check non-stopness using notif_state->remote rather current target.
709 2021-04-22 Tom Tromey <tom@tromey.com>
711 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
712 (struct typed_val_int) <val>: Now ULONGEST.
713 (rust_parser::parse_array_type): Remove negative check.
714 (rust_lex_int_test): Change 'value' to ULONGEST.
716 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
718 * arch-utils.c (default_addressable_memory_unit_size): Return a
719 value based on bfd's bits per byte.
721 2021-04-21 Tom Tromey <tom@tromey.com>
723 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
725 (struct dwarf2_per_cu_data): Rearrange.
726 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
728 (struct comp_unit_head): Rearrange.
729 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
731 2021-04-21 Tom de Vries <tdevries@suse.de>
734 * configure.ac: Remove --without-included-regex/--with-included-regex.
735 * config.in: Regenerate.
736 * configure: Regenerate.
737 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
739 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
741 * breakpoint.h (create_breakpoint): Add a new parameter,
743 * breakpoint.c (create_breakpoint): Use the 'force_condition'
744 argument when 'parse_extra' is false to check if the condition
745 is invalid at all of the breakpoint locations.
746 Update the users below.
752 (create_tracepoint_from_upload): Update.
753 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
754 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
755 * python/py-breakpoint.c (bppy_init): Update.
756 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
758 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
760 * breakpoint.c (print_one_breakpoint_location): Display "N" for
761 disabled-by-condition locations on MI-like output.
762 (breakpoint_1): Do not display the disabled-by-condition footnote
763 if the output is MI-like.
765 2021-04-21 Frederic Cambus <fred@statdns.com>
767 * syscalls/update-netbsd.sh: Fix script name display in usage, and
768 update year range in generated copyright notices.
770 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
772 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
775 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
777 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
779 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
781 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
782 (producer_is_icc): Replace use of std::regex with gdb's
785 2021-04-17 Tom Tromey <tom@tromey.com>
788 * dwarf2/read.c (class offset_view): New.
789 (struct symbol_table_slot): Remove.
790 (struct mapped_index) <symbol_table, constant_pool>: Change type.
791 <symbol_name_index, symbol_vec_index>: New methods.
792 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
794 (read_gdb_index_from_buffer): Update.
795 (struct dw2_symtab_iterator) <vec>: Change type.
796 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
797 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
798 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
799 <append_array, append_offset>: New methods.
800 (write_hash_table, add_address_entry, write_gdbindex_1)
801 (write_debug_names): Update.
802 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
804 2021-04-17 Tom Tromey <tom@tromey.com>
806 * dwarf2/index-write.c (write_psymtabs_to_index): Check
809 2021-04-17 Tom Tromey <tom@tromey.com>
811 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
812 from map_matching_symbols. Change parameters.
813 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
814 Rename from map_matching_symbols. Change parameters.
815 * dwarf2/read.c (struct dwarf2_gdb_index)
816 <expand_matching_symbols>: Rename from map_matching_symbols.
818 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
819 Rename from map_matching_symbols. Change parameters.
820 (dwarf2_gdb_index::expand_matching_symbols): Rename from
821 dw2_map_matching_symbols. Change parameters.
822 (dwarf2_gdb_index::expand_matching_symbols): Remove old
824 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
825 map_matching_symbols. Change parameters.
826 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
827 from map_matching_symbols. Change parameters.
828 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
829 map_matching_symbols. Change parameters.
830 * ada-lang.c (map_matching_symbols): New function.
831 (add_nonlocal_symbols): Update.
833 2021-04-17 Tom Tromey <tom@tromey.com>
835 * quick-symbol.h (struct quick_symbol_functions)
836 <expand_symtabs_with_fullname>: Remove.
837 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
839 * psympriv.h (struct psymbol_functions)
840 <expand_symtabs_with_fullname>: Remove.
841 * dwarf2/read.c (struct dwarf2_base_index_functions)
842 <expand_symtabs_with_fullname>: Remove.
843 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
845 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
847 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
850 2021-04-17 Tom Tromey <tom@tromey.com>
852 * symfile-debug.c (objfile::expand_symtabs_for_function):
854 * quick-symbol.h (struct quick_symbol_functions)
855 <expand_symtabs_for_function>: Remove.
856 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
858 * psympriv.h (struct psymbol_functions)
859 <expand_symtabs_for_function>: Remove.
860 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
862 * dwarf2/read.c (struct dwarf2_gdb_index)
863 <expand_symtabs_for_function>: Remove.
864 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
866 (find_slot_in_mapped_hash): Remove.
867 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
868 (dw2_symtab_iter_init): Remove one overload.
869 (dwarf2_gdb_index::expand_symtabs_for_function)
870 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
872 2021-04-17 Tom Tromey <tom@tromey.com>
874 * symfile-debug.c (objfile::map_symtabs_matching_filename):
876 * quick-symbol.h (struct quick_symbol_functions)
877 <map_symtabs_matching_filename>: Remove.
878 * psymtab.c (partial_map_expand_apply)
879 (psymbol_functions::map_symtabs_matching_filename): Remove.
880 * psympriv.h (struct psymbol_functions)
881 <map_symtabs_matching_filename>: Remove.
882 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
884 * dwarf2/read.c (struct dwarf2_base_index_functions)
885 <map_symtabs_matching_filename>: Remove.
886 (dw2_map_expand_apply)
887 (dwarf2_base_index_functions::map_symtabs_matching_filename):
890 2021-04-17 Tom Tromey <tom@tromey.com>
892 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
893 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
895 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
896 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
897 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
898 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
900 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
901 (dwarf2_gdb_index::lookup_symbol)
902 (dwarf2_debug_names_index::lookup_symbol): Remove.
904 2021-04-17 Tom Tromey <tom@tromey.com>
906 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
907 * symmisc.c (maintenance_expand_symtabs): Update.
908 * symfile.c (expand_symtabs_matching): Update.
909 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
911 * quick-symbol.h (struct quick_symbol_functions)
912 <expand_symtabs_matching>: Add 'domain' parameter.
913 * psymtab.c (recursively_search_psymtabs)
914 (psymbol_functions::expand_symtabs_matching): Add 'domain'
916 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
917 Add 'domain' parameter.
918 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
920 * linespec.c (iterate_over_all_matching_symtabs): Update.
921 * dwarf2/read.c (struct dwarf2_gdb_index)
922 <expand_symtabs_matching>: Add 'domain' parameter.
923 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
925 (dw2_expand_symtabs_matching)
926 (dwarf2_gdb_index::expand_symtabs_matching)
927 (dw2_debug_names_iterator)
928 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
931 2021-04-17 Tom Tromey <tom@tromey.com>
933 * symtab.c (global_symbol_searcher::expand_symtabs)
934 (default_collect_symbol_completion_matches_break_on): Update.
935 * symmisc.c (maintenance_expand_symtabs): Update.
936 * symfile.h (expand_symtabs_matching): Add search_flags
938 * symfile.c (expand_symtabs_matching): Add search_flags
940 * symfile-debug.c (objfile::expand_symtabs_matching): Add
941 search_flags parameter.
942 * quick-symbol.h (struct quick_symbol_functions)
943 <expand_symtabs_matching>: Add search_flags parameter.
944 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
945 * psymtab.c (recursively_search_psymtabs)
946 (psymbol_functions::expand_symtabs_matching): Add search_flags
948 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
949 Add search_flags parameter.
950 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
951 search_flags parameter.
952 * linespec.c (iterate_over_all_matching_symtabs): Update.
953 * dwarf2/read.c (struct dwarf2_gdb_index)
954 <expand_symtabs_matching>: Add search_flags parameter.
955 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
956 search_flags parameter.
957 (dw2_map_matching_symbols): Update.
958 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
959 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
961 (dw2_debug_names_iterator): Change block_index to search flags.
962 <m_block_index>: Likewise.
963 (dw2_debug_names_iterator::next)
964 (dwarf2_debug_names_index::lookup_symbol)
965 (dwarf2_debug_names_index::expand_symtabs_for_function)
966 (dwarf2_debug_names_index::map_matching_symbols)
967 (dwarf2_debug_names_index::map_matching_symbols): Update.
968 (dwarf2_debug_names_index::expand_symtabs_matching): Add
969 search_flags parameter.
970 * ada-lang.c (ada_add_global_exceptions)
971 (collect_symbol_completion_matches): Update.
973 2021-04-17 Tom Tromey <tom@tromey.com>
975 * symtab.c (default_collect_symbol_completion_matches_break_on):
977 * symfile.h (expand_symtabs_matching): Return bool.
978 * symfile.c (expand_symtabs_matching): Return bool.
979 * symfile-debug.c (objfile::expand_symtabs_matching): Return
981 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
982 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
984 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
986 * psympriv.h (struct psymbol_functions)
987 <expand_symtabs_matching>: Return bool.
988 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
990 * dwarf2/read.c (struct dwarf2_gdb_index)
991 <expand_symtabs_matching>: Return bool.
992 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
994 (dw2_expand_symtabs_matching_symbol): Return bool.
995 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
996 (dw2_expand_symtabs_matching)
997 (dwarf2_gdb_index::expand_symtabs_matching)
998 (dwarf2_debug_names_index::expand_symtabs_matching)
999 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1001 2021-04-17 Tom Tromey <tom@tromey.com>
1003 * quick-symbol.h (enum block_search_flag_values): New.
1004 (block_search_flags): New enum flags type.
1006 2021-04-16 Tom Tromey <tom@tromey.com>
1008 * rust-parse.c: New file.
1009 * rust-exp.y: Remove.
1010 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1011 (SFILES): Remove rust-exp.y.
1012 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1014 2021-04-16 Luis Machado <luis.machado@linaro.org>
1016 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1018 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1020 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1021 use throughout file.
1023 2021-04-15 Tom Tromey <tromey@adacore.com>
1025 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1028 2021-04-15 Tom Tromey <tromey@adacore.com>
1030 * printcmd.c (print_variable_and_value): Use
1031 common_val_print_checked.
1033 2021-04-15 Tom Tromey <tromey@adacore.com>
1035 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1036 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1038 * p-exp.y (variable): Update.
1039 * m2-exp.y (variable): Update.
1040 * go-exp.y (variable): Update.
1041 * expprint.c (dump_for_expression): New overload.
1042 * expop.h (check_objfile): New overload.
1043 (check_constant): New overload.
1044 (class var_value_operation): Use block_symbol.
1045 <get_symbol>: Rewrite.
1046 * eval.c (var_value_operation::evaluate)
1047 (var_value_operation::evaluate_funcall)
1048 (var_value_operation::evaluate_for_address)
1049 (var_value_operation::evaluate_for_address)
1050 (var_value_operation::evaluate_with_coercion)
1051 (var_value_operation::evaluate_for_sizeof)
1052 (var_value_operation::evaluate_for_cast): Update.
1053 * d-exp.y (PrimaryExpression): Update.
1054 * c-exp.y (variable): Update.
1055 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1056 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1057 (ada_var_value_operation::evaluate)
1058 (ada_var_value_operation::resolve)
1059 (ada_funcall_operation::resolve): Update.
1060 * ada-exp.y (write_var_from_sym, write_object_renaming)
1061 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1062 (maybe_overload): Update.
1063 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1065 2021-04-15 Tom Tromey <tom@tromey.com>
1066 Andrew Burgess <andrew.burgess@embecosm.com>
1069 * main.c (captured_main_1): Call check_quiet_mode.
1070 * top.c (startup_quiet): New global.
1071 (check_quiet_mode): New function.
1072 (show_startup_quiet): New function.
1073 (init_main): Register new command.
1074 * top.h (check_quiet_mode): Declare.
1076 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1079 * NEWS: Mention new early init files and command line options.
1080 * config.in: Regenerate.
1081 * configure: Regenerate.
1082 * configure.ac: Define GDBEARLYINIT.
1083 * main.c (get_earlyinit_files): New function.
1084 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1085 CMDARG_EARLYINIT_COMMAND.
1086 (captured_main_1): Add support for new command line flags, and for
1087 processing startup files.
1088 (print_gdb_help): Include startup files in the output.
1090 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1092 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1093 (relocate_file_path_maybe_in_datadir): ...this.
1094 (class gdb_initfile_finder): New class.
1095 (get_init_files): Now uses gdb_initfile_finder.
1096 (print_gdb_help): Print 'None found' when there are no init files.
1098 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1100 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1101 corresponding child of the abstract DIE when iterating the
1102 children of the concrete DIE.
1104 2021-04-13 Tom de Vries <tdevries@suse.de>
1106 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1109 2021-04-13 Luis Machado <luis.machado@linaro.org>
1111 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1114 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1116 * rs6000-tdep.c: Add support for single-stepping of
1117 prefixed instructions.
1119 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1122 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1123 handle the addpcis/lnia instruction.
1125 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1127 * MAINTAINERS (Write After Approval): Add myself.
1129 2021-4-12 Carl Love <cel@us.ibm.com>
1131 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1132 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1135 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1137 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1138 * nat/windows-nat.h: Likewise.
1140 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1142 * windows-nat.c (windows_nat::handle_load_dll): Call
1143 windows_add_dll if get_image_name failed to glean the name of the
1144 DLL by using the lpImageName pointer.
1145 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1146 (windows_add_dll): Now does what windows_add_all_dlls did before,
1147 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1148 specifies the address where the DLL was loaded into the inferior,
1149 and looks for the single DLL loaded at that address.
1151 2021-04-09 Luis Machado <luis.machado@linaro.org>
1153 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1155 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1157 * darwin-nat.c (darwin_nat_target::resume): Remove status
1160 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1162 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1163 prologue end for Intel compilers.
1164 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1165 * producer.c (producer_is_icc_ge_19): New function.
1166 * producer.h (producer_is_icc_ge_19): New declaration.
1168 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1170 * producer.c: (producer_is_icc): Update for new version scheme.
1171 (producer_parsing_tests): Update names and expected results.
1172 * producer.h: (producer_is_icc): Update comment accordingly.
1174 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1176 * target.h (struct target_ops) <follow_fork>: Return void.
1177 (target_follow_fork): Likewise.
1178 * target.c (default_follow_fork): Likewise.
1179 (target_follow_fork): Likewise.
1180 * infrun.c (follow_fork_inferior): Adjust.
1181 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1182 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1183 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1184 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1185 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1186 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1187 * remote.c (class remote_target) <follow_fork>: Likewise.
1188 (remote_target::follow_fork): Likewise.
1189 * target-delegates.c: Re-generate.
1191 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1193 * ctfread.c (fetch_tid_type): New function, use throughout file.
1194 (read_forward_type): New function.
1195 (read_type_record): Call read_forward_type.
1197 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1199 * f-exp.h (class fortran_structop_operation): New class.
1200 * f-exp.y (exp): Create fortran_structop_operation instead of the
1201 generic structop_operation.
1202 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1203 expression as EVAL_NORMAL if the result type was dynamic so we can
1204 extract the actual array bounds.
1205 (fortran_structop_operation::evaluate): New function.
1207 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1209 * eval.c (evaluate_subexp_standard): Remove
1210 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1213 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1215 * valops.c (value_cast): Call value_deeply_equal before performing
1218 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1220 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1223 2021-04-07 Caroline Tice <cmtice@google.com>
1225 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1226 the search paths used resolve relative location of .dwo file.
1228 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1230 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1232 (dwarf2_section_info::get_file_name): Add an assert.
1233 (dwarf2_section_info::read_string): Display a minimal, sane error
1234 when the dwarf2_section_info is not associated with a bfd section.
1236 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1238 * top.c (staged_gdb_datadir): Update comment.
1239 (set_gdb_datadir): Copy the value of gdb_datadir back into
1241 (init_main): Initialise staged_gdb_datadir.
1243 2021-04-06 Tom de Vries <tdevries@suse.de>
1245 PR breakpoints/25884
1246 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1249 2021-04-06 Tom de Vries <tdevries@suse.de>
1252 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1255 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1257 * avr-tdep.c (avr_frame_unwind_cache): Use
1258 trad_frame_saved_reg::is_addr.
1260 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1262 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1265 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1267 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1268 objfile parameter for objfile_per_bfd_storage, adjust callers.
1269 (struct standard_psymtab) <standard_psymtab>: Likewise.
1270 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1271 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1272 * ctfread.c (struct ctf_psymtab): Likewise.
1273 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1274 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1275 (dwarf2_create_include_psymtab): Likewise.
1276 * objfiles.h (struct objfile_per_bfd_storage)
1277 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1278 <get_bfd>: New method.
1280 * objfiles.c (get_objfile_bfd_data): Adjust.
1282 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1284 * psymtab.c (partial_symtab::partial_symtab): Change
1285 last_objfile_name to be an std::string.
1286 * symfile.c (allocate_symtab): Likewise.
1288 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1290 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1292 (struct objfile) <intern>: Use
1293 objfile::objfile_per_bfd_storage::intern.
1295 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1297 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1298 with type::is_flag_enum.
1300 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1302 * gdbtypes.h (struct type) <is_flag_enum,
1303 set_is_flag_enum>: New methods.
1304 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1305 write call sites to use type::set_is_flag_enum.
1307 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1309 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1310 with type::is_declared_class.
1312 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1314 * gdbtypes.h (struct type) <is_declared_class,
1315 set_is_declared_class>: New methods.
1316 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1317 write call sites to use type::set_is_declared_class.
1319 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1321 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1322 to avoid deprecation warnings.
1324 2021-04-01 Martin Liska <mliska@suse.cz>
1326 * cp-name-parser.y: Use startswith instead of strncmp.
1327 * m2-exp.y: Likewise.
1328 * macroexp.c (substitute_args): Likewise.
1329 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1330 * rust-exp.y: Likewise.
1332 2021-03-31 Tom Tromey <tom@tromey.com>
1334 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1335 with dw2_map_matching_symbols.
1336 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1337 dw2_expand_symtabs_matching.
1339 2021-03-31 Tom Tromey <tromey@adacore.com>
1341 * dwarf2/stringify.h: Fix typo.
1343 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1346 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1347 with objfiles using READNOW.
1349 2021-03-29 Tom Tromey <tromey@adacore.com>
1351 * top.c (check_frame_language_change): Update.
1352 * language.c (language_info): Remove parameter.
1353 * language.h (language_info): Remove parameter.
1355 2021-03-29 Luis Machado <luis.machado@linaro.org>
1357 * compile/compile.c (get_args): Don't add empty argv entries.
1359 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1362 * procfs.c (procfs_target::attach): Define inf.
1364 (procfs_target::create_inferior): Likewise.
1366 2021-03-28 Tom Tromey <tom@tromey.com>
1368 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1369 (elf_symfile_read): Simplify.
1370 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1371 (make_lazy_dwarf_reader): New function.
1372 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1373 (dwarf2_initialize_objfile): Return void. Remove index_kind
1374 parameter. Push on 'qf' list.
1375 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1376 type. Remove 'index_kind' parameter.
1377 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1379 2021-03-27 Tom Tromey <tom@tromey.com>
1381 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1383 2021-03-27 Tom Tromey <tom@tromey.com>
1385 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1387 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1389 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1392 2021-03-26 Tom Tromey <tom@tromey.com>
1394 * symtab.c (struct output_source_filename_data): Add 'output'
1395 method and operator().
1396 (output_source_filename_data::output): Rename from
1397 output_source_filename.
1398 (output_partial_symbol_filename): Remove.
1399 (info_sources_command): Update.
1400 (struct add_partial_filename_data): Add operator().
1401 (add_partial_filename_data::operator()): Rename from
1402 maybe_add_partial_symtab_filename.
1403 (make_source_files_completion_list): Update.
1404 * symfile.c (quick_symbol_functions): Update.
1405 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1406 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1407 'need_fullname'. Remove 'data' parameter.
1408 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1409 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1410 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1411 Change type of 'fun' and 'need_fullname'. Remove 'data'
1413 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1414 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1415 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1417 (mi_cmd_file_list_exec_source_files): Update.
1419 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1421 2021-03-26 Tom Tromey <tom@tromey.com>
1423 * ada-lang.c (struct match_data): Add operator().
1424 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1425 (callback): Remove 'callback'.
1427 2021-03-26 Tom Tromey <tom@tromey.com>
1429 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1430 call make_ignore_params once.
1432 2021-03-26 Tom Tromey <tom@tromey.com>
1434 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1437 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1438 Pedro Alves <pedro@palves.net>
1440 * async-event.c: Include "infrun.h".
1441 (async_event_handler_marked): New.
1442 * async-event.h (async_event_handler_marked): Declare.
1443 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1444 inferior before calling target method. Don't commit-resumed if
1445 target_has_pending_events is true.
1446 * remote.c (remote_target::has_pending_events): New.
1447 * target-delegates.c: Regenerate.
1448 * target.c (target_has_pending_events): New.
1449 * target.h (target_ops::has_pending_events): New target method.
1450 (target_has_pending_events): New.
1452 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1453 Pedro Alves <pedro@palves.net>
1455 * infcmd.c (run_command_1, attach_command, detach_command)
1456 (interrupt_target_1): Use scoped_disable_commit_resumed.
1457 * infrun.c (do_target_resume): Remove
1458 target_commit_resume call.
1459 (commit_resume_all_targets): Remove.
1460 (maybe_set_commit_resumed_all_targets): New.
1461 (maybe_call_commit_resumed_all_targets): New.
1462 (enable_commit_resumed): New.
1463 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1464 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1465 (scoped_disable_commit_resumed::reset)
1466 (scoped_disable_commit_resumed::reset_and_commit)
1467 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1468 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1470 (proceed): Use scoped_disable_commit_resumed and
1471 maybe_call_commit_resumed_all_targets.
1472 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1473 * infrun.h (struct scoped_disable_commit_resumed): New.
1474 (maybe_call_commit_resumed_all_process_targets): New.
1475 (struct scoped_enable_commit_resumed): New.
1476 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1477 * process-stratum-target.h (class process_stratum_target):
1478 <commit_resumed_state>: New.
1479 * record-full.c (record_full_wait_1): Change commit_resumed_state
1480 around calling commit_resumed.
1481 * remote.c (class remote_target) <commit_resume>: Rename to...
1482 <commit_resumed>: ... this.
1483 (struct stop_reply): Move up.
1484 (remote_target::commit_resume): Rename to...
1485 (remote_target::commit_resumed): ... this. Check if there is any
1486 thread pending vCont resume.
1487 (remote_target::remote_stop_ns): Generate stop replies for resumed
1488 but pending vCont threads.
1489 (remote_target::wait_ns): Add gdb_assert.
1490 * target-delegates.c: Regenerate.
1491 * target.c (target_wait, target_resume): Assert that the current
1492 process_stratum target isn't in commit-resumed state.
1493 (defer_target_commit_resume): Remove.
1494 (target_commit_resume): Remove.
1495 (target_commit_resumed): New.
1496 (make_scoped_defer_target_commit_resume): Remove.
1497 (target_stop): Assert that the current process_stratum target
1498 isn't in commit-resumed state.
1499 * target.h (struct target_ops) <commit_resume>: Rename to ...
1500 <commit_resumed>: ... this.
1501 (target_commit_resume): Remove.
1502 (target_commit_resumed): New.
1503 (make_scoped_defer_target_commit_resume): Remove.
1504 * top.c (wait_sync_command_done): Use
1505 scoped_enable_commit_resumed.
1507 2021-03-26 Pedro Alves <pedro@palves.net>
1509 * target.c (target_always_non_stop_p): Also check whether the
1512 2021-03-26 Tom Tromey <tom@tromey.com>
1514 * dwarf2/read.c (dwarf2_read_debug_names)
1515 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1516 (dw2_debug_names_iterator::next, create_type_unit_group):
1519 2021-03-25 Pedro Alves <pedro@palves.net>
1521 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1522 around setting the breakpoint.
1524 2021-03-25 Pedro Alves <pedro@palves.net>
1527 (remote_target::check_pending_events_prevent_wildcard_vcont):
1528 Check whether the event's ptid is not null_ptid before looking up
1529 the corresponding inferior.
1531 2021-03-24 Changbin Du <changbin.du@gmail.com>
1533 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1536 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1538 * target.h (current_top_target): Remove, make callers use the
1539 current inferior instead.
1540 * target.c (current_top_target): Remove.
1542 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1544 * target.h (target_shortname): Change to function declaration.
1545 (target_longname): Likewise.
1546 (target_attach_no_wait): Likewise.
1547 (target_post_attach): Likewise.
1548 (target_prepare_to_store): Likewise.
1549 (target_supports_enable_disable_tracepoint): Likewise.
1550 (target_supports_string_tracing): Likewise.
1551 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1552 (target_supports_dumpcore): Likewise.
1553 (target_dumpcore): Likewise.
1554 (target_can_run_breakpoint_commands): Likewise.
1555 (target_files_info): Likewise.
1556 (target_post_startup_inferior): Likewise.
1557 (target_insert_fork_catchpoint): Likewise.
1558 (target_remove_fork_catchpoint): Likewise.
1559 (target_insert_vfork_catchpoint): Likewise.
1560 (target_remove_vfork_catchpoint): Likewise.
1561 (target_insert_exec_catchpoint): Likewise.
1562 (target_remove_exec_catchpoint): Likewise.
1563 (target_set_syscall_catchpoint): Likewise.
1564 (target_rcmd): Likewise.
1565 (target_can_lock_scheduler): Likewise.
1566 (target_can_async_p): Likewise.
1567 (target_is_async_p): Likewise.
1568 (target_execution_direction): Likewise.
1569 (target_extra_thread_info): Likewise.
1570 (target_pid_to_exec_file): Likewise.
1571 (target_thread_architecture): Likewise.
1572 (target_find_memory_regions): Likewise.
1573 (target_make_corefile_notes): Likewise.
1574 (target_get_bookmark): Likewise.
1575 (target_goto_bookmark): Likewise.
1576 (target_stopped_by_watchpoint): Likewise.
1577 (target_stopped_by_sw_breakpoint): Likewise.
1578 (target_supports_stopped_by_sw_breakpoint): Likewise.
1579 (target_stopped_by_hw_breakpoint): Likewise.
1580 (target_supports_stopped_by_hw_breakpoint): Likewise.
1581 (target_have_steppable_watchpoint): Likewise.
1582 (target_can_use_hardware_watchpoint): Likewise.
1583 (target_region_ok_for_hw_watchpoint): Likewise.
1584 (target_can_do_single_step): Likewise.
1585 (target_insert_watchpoint): Likewise.
1586 (target_remove_watchpoint): Likewise.
1587 (target_insert_hw_breakpoint): Likewise.
1588 (target_remove_hw_breakpoint): Likewise.
1589 (target_can_accel_watchpoint_condition): Likewise.
1590 (target_can_execute_reverse): Likewise.
1591 (target_get_ada_task_ptid): Likewise.
1592 (target_filesystem_is_local): Likewise.
1593 (target_trace_init): Likewise.
1594 (target_download_tracepoint): Likewise.
1595 (target_can_download_tracepoint): Likewise.
1596 (target_download_trace_state_variable): Likewise.
1597 (target_enable_tracepoint): Likewise.
1598 (target_disable_tracepoint): Likewise.
1599 (target_trace_start): Likewise.
1600 (target_trace_set_readonly_regions): Likewise.
1601 (target_get_trace_status): Likewise.
1602 (target_get_tracepoint_status): Likewise.
1603 (target_trace_stop): Likewise.
1604 (target_trace_find): Likewise.
1605 (target_get_trace_state_variable_value): Likewise.
1606 (target_save_trace_data): Likewise.
1607 (target_upload_tracepoints): Likewise.
1608 (target_upload_trace_state_variables): Likewise.
1609 (target_get_raw_trace_data): Likewise.
1610 (target_get_min_fast_tracepoint_insn_len): Likewise.
1611 (target_set_disconnected_tracing): Likewise.
1612 (target_set_circular_trace_buffer): Likewise.
1613 (target_set_trace_buffer_size): Likewise.
1614 (target_set_trace_notes): Likewise.
1615 (target_get_tib_address): Likewise.
1616 (target_set_permissions): Likewise.
1617 (target_static_tracepoint_marker_at): Likewise.
1618 (target_static_tracepoint_markers_by_strid): Likewise.
1619 (target_traceframe_info): Likewise.
1620 (target_use_agent): Likewise.
1621 (target_can_use_agent): Likewise.
1622 (target_augmented_libraries_svr4_read): Likewise.
1623 (target_log_command): Likewise.
1624 * target.c (target_shortname): New.
1625 (target_longname): New.
1626 (target_attach_no_wait): New.
1627 (target_post_attach): New.
1628 (target_prepare_to_store): New.
1629 (target_supports_enable_disable_tracepoint): New.
1630 (target_supports_string_tracing): New.
1631 (target_supports_evaluation_of_breakpoint_conditions): New.
1632 (target_supports_dumpcore): New.
1633 (target_dumpcore): New.
1634 (target_can_run_breakpoint_commands): New.
1635 (target_files_info): New.
1636 (target_post_startup_inferior): New.
1637 (target_insert_fork_catchpoint): New.
1638 (target_remove_fork_catchpoint): New.
1639 (target_insert_vfork_catchpoint): New.
1640 (target_remove_vfork_catchpoint): New.
1641 (target_insert_exec_catchpoint): New.
1642 (target_remove_exec_catchpoint): New.
1643 (target_set_syscall_catchpoint): New.
1645 (target_can_lock_scheduler): New.
1646 (target_can_async_p): New.
1647 (target_is_async_p): New.
1648 (target_execution_direction): New.
1649 (target_extra_thread_info): New.
1650 (target_pid_to_exec_file): New.
1651 (target_thread_architecture): New.
1652 (target_find_memory_regions): New.
1653 (target_make_corefile_notes): New.
1654 (target_get_bookmark): New.
1655 (target_goto_bookmark): New.
1656 (target_stopped_by_watchpoint): New.
1657 (target_stopped_by_sw_breakpoint): New.
1658 (target_supports_stopped_by_sw_breakpoint): New.
1659 (target_stopped_by_hw_breakpoint): New.
1660 (target_supports_stopped_by_hw_breakpoint): New.
1661 (target_have_steppable_watchpoint): New.
1662 (target_can_use_hardware_watchpoint): New.
1663 (target_region_ok_for_hw_watchpoint): New.
1664 (target_can_do_single_step): New.
1665 (target_insert_watchpoint): New.
1666 (target_remove_watchpoint): New.
1667 (target_insert_hw_breakpoint): New.
1668 (target_remove_hw_breakpoint): New.
1669 (target_can_accel_watchpoint_condition): New.
1670 (target_can_execute_reverse): New.
1671 (target_get_ada_task_ptid): New.
1672 (target_filesystem_is_local): New.
1673 (target_trace_init): New.
1674 (target_download_tracepoint): New.
1675 (target_can_download_tracepoint): New.
1676 (target_download_trace_state_variable): New.
1677 (target_enable_tracepoint): New.
1678 (target_disable_tracepoint): New.
1679 (target_trace_start): New.
1680 (target_trace_set_readonly_regions): New.
1681 (target_get_trace_status): New.
1682 (target_get_tracepoint_status): New.
1683 (target_trace_stop): New.
1684 (target_trace_find): New.
1685 (target_get_trace_state_variable_value): New.
1686 (target_save_trace_data): New.
1687 (target_upload_tracepoints): New.
1688 (target_upload_trace_state_variables): New.
1689 (target_get_raw_trace_data): New.
1690 (target_get_min_fast_tracepoint_insn_len): New.
1691 (target_set_disconnected_tracing): New.
1692 (target_set_circular_trace_buffer): New.
1693 (target_set_trace_buffer_size): New.
1694 (target_set_trace_notes): New.
1695 (target_get_tib_address): New.
1696 (target_set_permissions): New.
1697 (target_static_tracepoint_marker_at): New.
1698 (target_static_tracepoint_markers_by_strid): New.
1699 (target_traceframe_info): New.
1700 (target_use_agent): New.
1701 (target_can_use_agent): New.
1702 (target_augmented_libraries_svr4_read): New.
1703 (target_log_command): New.
1704 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1705 * infrun.c (set_schedlock_func): Adjust.
1706 * mi/mi-main.c (exec_reverse_continue): Adjust.
1707 * reverse.c (exec_reverse_once): Adjust.
1708 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1709 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1710 * remote-sim.c (gdbsim_target::detach): Adjust.
1711 (gdbsim_target::files_info): Adjust.
1713 2021-03-24 Tom Tromey <tom@tromey.com>
1715 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1716 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1717 (check_match, dw2_expand_symtabs_matching)
1718 (dwarf2_debug_names_index::map_matching_symbols)
1719 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1721 2021-03-24 Keith Seitz <keiths@redhat.com>
1723 * compile/compile-cplus-types.c
1724 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1727 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1729 * gdbarch.sh (gdbarch_data_registry): Make static.
1730 * gdbarch.c: Re-generate.
1732 2021-03-24 Luis Machado <luis.machado@linaro.org>
1734 * NEWS: Mention memory tagging changes.
1736 2021-03-24 Luis Machado <luis.machado@linaro.org>
1738 * printcmd.c (decode_format): Handle the 'm' modifier.
1739 (do_examine): Display allocation tags when required/supported.
1740 (should_validate_memtags): New function.
1741 (print_command_1): Display memory tag mismatches.
1742 * valprint.c (show_memory_tag_violations): New function.
1743 (value_print_option_defs): Add new option "memory-tag-violations".
1744 (user_print_options) <memory_tag_violations>: Initialize to 1.
1745 * valprint.h (struct format_data) <print_tags>: New field.
1746 (value_print_options) <memory_tag_violations>: New field.
1748 2021-03-24 Luis Machado <luis.machado@linaro.org>
1750 * printcmd.c: Include gdbsupport/rsp-low.h.
1751 (memory_tag_list): New static global.
1752 (process_print_command_args): Factored out of
1754 (print_command_1): Use process_print_command_args.
1755 (show_addr_not_tagged, show_memory_tagging_unsupported)
1756 (memory_tag_command, memory_tag_print_tag_command)
1757 (memory_tag_print_logical_tag_command)
1758 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1759 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1760 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1762 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1764 2021-03-24 Luis Machado <luis.machado@linaro.org>
1766 * aarch64-linux-tdep.c
1767 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1768 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1770 2021-03-24 Luis Machado <luis.machado@linaro.org>
1772 * aarch64-linux-tdep.c
1773 (aarch64_linux_report_signal_info): New function.
1774 (aarch64_linux_init_abi): Register
1775 aarch64_linux_report_signal_info as the report_signal_info hook.
1776 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1777 (SEGV_MTESERR): Define.
1779 2021-03-24 Luis Machado <luis.machado@linaro.org>
1781 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1782 (aarch64_linux_ltag_tests): New function.
1783 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1785 2021-03-24 Luis Machado <luis.machado@linaro.org>
1787 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1788 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1789 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1790 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1792 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1793 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1794 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1795 (aarch64_linux_get_ltag): New functions.
1796 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1797 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1798 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1799 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1801 2021-03-24 Luis Machado <luis.machado@linaro.org>
1803 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1805 (struct smaps_data): New struct.
1806 (decode_vmflags): Handle the 'mt' flag.
1807 (parse_smaps_data): New function, refactored from
1808 linux_find_memory_regions_full.
1809 (linux_address_in_memtag_page): New function.
1810 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1811 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1813 2021-03-24 Luis Machado <luis.machado@linaro.org>
1815 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1816 instead of char arrays.
1818 2021-03-24 Luis Machado <luis.machado@linaro.org>
1820 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1821 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1822 nat/aarch64-mte-linux-ptrace.h.
1823 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1824 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1826 <fetch_memtags>: New method override.
1827 <store_memtags>: New method override.
1828 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1829 (aarch64_linux_nat_target::fetch_memtags): New method.
1830 (aarch64_linux_nat_target::store_memtags): New method.
1831 * arch/aarch64-mte-linux.c: New file.
1832 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1833 (AARCH64_MTE_GRANULE_SIZE): Define.
1834 (aarch64_memtag_type): New enum.
1835 (aarch64_mte_get_tag_granules): New prototype.
1836 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1837 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1838 * nat/aarch64-mte-linux-ptrace.c: New file.
1839 * nat/aarch64-mte-linux-ptrace.h: New file.
1841 2021-03-24 Luis Machado <luis.machado@linaro.org>
1843 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1844 * nat/aarch64-mte-linux-ptrace.h: New file.
1846 2021-03-24 Luis Machado <luis.machado@linaro.org>
1848 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1849 (store_mteregs_to_thread): New function.
1850 (aarch64_linux_nat_target::fetch_registers): Update to call
1851 fetch_mteregs_from_thread.
1852 (aarch64_linux_nat_target::store_registers): Update to call
1853 store_mteregs_to_thread.
1854 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1855 (aarch64_cannot_store_register): Handle MTE registers.
1856 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1857 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1858 <has_mte>: New method.
1859 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1861 2021-03-24 Luis Machado <luis.machado@linaro.org>
1863 * aarch64-linux-nat.c
1864 (aarch64_linux_nat_target::read_description): Take MTE flag into
1866 Slight refactor to hwcap flag checking.
1867 * aarch64-linux-tdep.c
1868 (aarch64_linux_core_read_description): Likewise.
1869 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1871 (aarch64_read_description): Add mte_p parameter and update to use it.
1872 Update the documentation.
1873 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1874 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1875 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1876 (aarch64_create_target_description): Add mte_p parameter and update
1878 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1880 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1881 * features/aarch64-mte.c: New file, generated.
1882 * features/aarch64-mte.xml: New file.
1884 2021-03-24 Luis Machado <luis.machado@linaro.org>
1886 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1887 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1888 * aarch64-linux-tdep.c: Likewise
1889 * arch/aarch64-mte-linux.h: New file.
1891 2021-03-24 Luis Machado <luis.machado@linaro.org>
1893 * remote: Include gdbsupport/selftest.h.
1894 (test_memory_tagging_functions): New function.
1895 (_initialize_remote): Register test_memory_tagging_functions.
1897 2021-03-24 Luis Machado <luis.machado@linaro.org>
1899 * remote.c (PACKET_memory_tagging_feature): New enum.
1900 (remote_memory_tagging_p): New function.
1901 (remote_protocol_features): New "memory-tagging" entry.
1902 (remote_target::remote_query_supported): Handle memory tagging
1904 (remote_target::supports_memory_tagging): Implement.
1905 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1906 (create_store_memtags_request): New functions.
1907 (remote_target::fetch_memtags): Implement.
1908 (remote_target::store_memtags): Implement.
1909 (_initialize_remote): Add new "memory-tagging-feature"
1912 2021-03-24 Luis Machado <luis.machado@linaro.org>
1914 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1915 (default_memtag_matches_p, default_set_memtags)
1916 (default_get_memtag): New functions.
1917 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1918 (default_memtag_matches_p, default_set_memtags)
1919 (default_get_memtag): New prototypes.
1920 * gdbarch.c: Regenerate.
1921 * gdbarch.h: Regenerate.
1922 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1923 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1924 (enum memtag_type): New enum.
1926 2021-03-24 Luis Machado <luis.machado@linaro.org>
1928 * remote.c (remote_target) <supports_memory_tagging>: New method
1930 <fetch_memtags>: New method override.
1931 <store_memtags>: New method override.
1932 (remote_target::supports_memory_tagging): New method.
1933 (remote_target::fetch_memtags): New method.
1934 (remote_target::store_memtags): New method.
1935 * target-delegates.c: Regenerate.
1936 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1938 <fetch_memtags>: New virtual method.
1939 <store_memtags>: New virtual method.
1940 (target_supports_memory_tagging): Define.
1941 (target_fetch_memtags): Define.
1942 (target_store_memtags): Define.
1943 * target-debug.h (target_debug_print_size_t)
1944 (target_debug_print_const_gdb_byte_vector_r)
1945 (target_debug_print_gdb_byte_vector_r): New functions.
1947 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1949 * target.h (target_longname): Remove.
1951 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1953 * target.h (target_is_pushed): Remove, update callers to use
1954 inferior::target_is_pushed instead.
1955 * target.c (target_is_pushed): Remove.
1957 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1959 * target.h (push_target): Remove, update callers to use
1960 inferior::push_target.
1961 * target.c (push_target): Remove.
1962 * inferior.h (class inferior) <push_target>: New overload.
1964 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1966 * target.h (unpush_target): Remove, update all callers
1967 to use `inferior::unpush_target` instead.
1968 (struct target_unpusher) <operator()>: Just declare.
1969 * target.c (unpush_target): Remove.
1970 (target_unpusher::operator()): New.
1972 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1974 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1976 (process_full_comp_unit): Validate the top-level tag before
1977 processing the first DIE.
1978 (read_func_scope): Ensure we have a valid builder.
1980 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1982 * objc-lang.c (objc_demangle): Renamed to
1983 objc_language::demangle_symbol, and moved later in the file.
1984 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1986 (objc_language::demangle_symbol): Defined outside of class
1987 declaration. The definition is the old objc_demangle with NULL
1988 changed to nullptr, and if conditions relating to nullptr pointers
1989 or null character checks made explicit.
1990 * objc-lang.h (objc_demangle): Delete declaration.
1992 2021-03-22 Martin Liska <mliska@suse.cz>
1994 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1995 (_initialize_arm_tdep): Likewise.
1997 2021-03-20 Tom Tromey <tom@tromey.com>
1999 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2000 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2001 * psymtab.h (make_psymbol_functions): Don't declare.
2002 * psymtab.c (make_psymbol_functions): Remove.
2003 (maintenance_print_psymbols): Update.
2004 * psympriv.h (struct psymbol_functions): Add no-argument
2006 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2007 <partial_symtabs>: Remove.
2008 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2009 * elfread.c (read_partial_symbols): Update.
2010 (elf_symfile_read): Remove check for existing partial symbols.
2012 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2014 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2016 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2018 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2019 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2021 2021-03-20 Tom Tromey <tom@tromey.com>
2023 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2024 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2025 * symfile-debug.c (objfile::has_partial_symbols)
2026 (objfile::find_last_source_symtab)
2027 (objfile::forget_cached_source_info)
2028 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2029 (objfile::print_stats, objfile::dump)
2030 (objfile::expand_symtabs_for_function)
2031 (objfile::expand_all_symtabs)
2032 (objfile::expand_symtabs_with_fullname)
2033 (objfile::map_matching_symbols)
2034 (objfile::expand_symtabs_matching)
2035 (objfile::find_pc_sect_compunit_symtab)
2036 (objfile::map_symbol_filenames)
2037 (objfile::find_compunit_symtab_by_address)
2038 (objfile::lookup_global_symbol_language)
2039 (objfile::require_partial_symbols): Update.
2040 * psymtab.c (maintenance_print_psymbols)
2041 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2042 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2043 * objfiles.c (objfile_relocate1): Update.
2044 * elfread.c (elf_symfile_read): Update.
2046 2021-03-20 Tom Tromey <tom@tromey.com>
2048 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2050 2021-03-20 Tom Tromey <tom@tromey.com>
2052 * psymtab.c (psymbol_functions::count_psyms): Rename.
2053 (psymbol_functions::print_stats): Update.
2054 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2057 2021-03-20 Tom Tromey <tom@tromey.com>
2059 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2060 (psymbol_functions::find_pc_sect_psymtab): Rename.
2061 (psymbol_functions::find_pc_sect_compunit_symtab)
2062 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2063 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2065 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2067 2021-03-20 Tom Tromey <tom@tromey.com>
2069 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2070 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2071 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2073 (add_psymbol_to_bcache): Remove.
2074 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2075 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2077 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2078 <add_psymbol>: Likewise.
2079 (standard_psymtab, legacy_psymtab): Likewise.
2080 * mdebugread.c (parse_partial_symbols): Update.
2081 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2082 (handle_psymbol_enumerators): Update.
2083 (new_psymtab): Add partial_symtabs parameter.
2084 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2085 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2087 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2088 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2090 * dbxread.c (read_dbx_symtab): Update.
2091 (start_psymtab): Add partial_symtabs parameter.
2092 (dbx_end_psymtab): Update.
2093 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2094 (ctf_psymtab): Add partial_symtabs parameter.
2095 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2097 (scan_partial_symbols): Add partial_symtabs parameter.
2098 (scan_partial_symbols, elfctf_build_psymtabs)
2099 (ctf_psymtab_add_enums): Update.
2101 2021-03-20 Tom Tromey <tom@tromey.com>
2103 * symfile.c (read_symbols): Use objfile method.
2104 * symfile-debug.c (objfile::require_partial_symbols): New method.
2105 * psymtab.h (require_partial_symbols): Don't declare.
2106 * psymtab.c (require_partial_symbols): Use objfile method. Now
2108 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2109 (psymbol_functions::lookup_symbol)
2110 (psymbol_functions::lookup_global_symbol_language)
2111 (psymbol_functions::find_last_source_symtab)
2112 (psymbol_functions::forget_cached_source_info)
2113 (psymbol_functions::print_stats)
2114 (psymbol_functions::expand_symtabs_for_function)
2115 (psymbol_functions::expand_all_symtabs)
2116 (psymbol_functions::expand_symtabs_with_fullname)
2117 (psymbol_functions::map_symbol_filenames)
2118 (psymbol_functions::map_matching_symbols)
2119 (psymbol_functions::expand_symtabs_matching)
2120 (psymbol_functions::find_compunit_symtab_by_address)
2121 (maintenance_print_psymbols, maintenance_info_psymtabs)
2122 (maintenance_check_psymtabs): Update.
2123 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2126 2021-03-20 Tom Tromey <tom@tromey.com>
2128 * xcoffread.c (xcoff_sym_fns): Update.
2129 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2130 * symfile-debug.c (objfile::has_partial_symbols): Use
2131 can_lazily_read_symbols.
2132 (debug_sym_read_psymbols): Remove.
2133 (debug_sym_fns, install_symfile_debug_logging): Update.
2134 * quick-symbol.h (struct quick_symbol_functions)
2135 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2136 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2137 * mipsread.c (ecoff_sym_fns): Update.
2138 * machoread.c (macho_sym_fns): Update.
2139 * elfread.c (struct lazy_dwarf_reader): New.
2140 (elf_symfile_read): Update.
2141 (read_psyms): Now a method of lazy_dwarf_reader.
2142 (elf_sym_fns): Update.
2143 (elf_sym_fns_lazy_psyms): Remove.
2144 * dbxread.c (aout_sym_fns): Update.
2145 * coffread.c (coff_sym_fns): Update.
2147 2021-03-20 Tom Tromey <tom@tromey.com>
2149 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2150 (reread_symbols): Move reset_psymtabs call later.
2151 * objfiles.c (objfile::objfile): Don't initialize
2154 2021-03-20 Tom Tromey <tom@tromey.com>
2156 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2157 set_partial_symtabs.
2158 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2159 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2161 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2163 (psymbol_functions::find_pc_sect_compunit_symtab)
2164 (psymbol_functions::print_stats, psymbol_functions::dump)
2165 (psymbol_functions::has_symbols): Update.
2166 (make_psymbol_functions, dump_psymtab_addrmap): Add
2167 partial_symtabs parameter.
2168 (maintenance_print_psymbols): Update.
2169 (psymbol_functions::expand_symtabs_matching): Update.
2170 * psympriv.h (struct psymbol_functions): Add constructor.
2171 <m_partial_symtabs>: New member.
2172 <set_partial_symtabs>: New method.
2174 2021-03-20 Tom Tromey <tom@tromey.com>
2176 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2178 (process_psymtab_comp_unit_reader)
2179 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2180 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2181 Reference psymtabs via per_bfd.
2183 2021-03-20 Tom Tromey <tom@tromey.com>
2185 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2187 (add_address_entry): Remove objfile parameter.
2188 (add_address_entry_worker): Update.
2189 (write_address_map): Replace objfile parameter with per_bfd.
2190 (write_gdbindex, write_psymtabs_to_index): Update.
2192 2021-03-20 Tom Tromey <tom@tromey.com>
2194 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2195 print_bcache parameter.
2196 * symfile-debug.c (objfile::print_stats): Add print_bcache
2198 * quick-symbol.h (struct quick_symbol_functions)
2199 <print_stats>: Add print_bcache parameter.
2200 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2202 (print_objfile_statistics): Move psymtab code to psymtab.c.
2203 * psymtab.c (count_psyms): Move from symmisc.c.
2204 (psymbol_functions::print_stats): Print partial symbol and bcache
2205 statistics. Add print_bcache parameter.
2206 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2207 (struct objfile) <print_stats>: Add print_bcache parameter.
2208 * maint.c (maintenance_print_statistics): Update.
2210 2021-03-20 Tom Tromey <tom@tromey.com>
2212 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2214 * dwarf2/read.c (create_addrmap_from_index)
2215 (create_addrmap_from_aranges): Set per_bfd addrmap.
2216 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2217 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2219 (dwarf2_read_debug_names): Don't set partial_symtabs.
2220 (dwarf2_initialize_objfile): Likewise.
2222 2021-03-20 Tom Tromey <tom@tromey.com>
2224 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2227 2021-03-20 Tom Tromey <tom@tromey.com>
2229 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2230 (~psymtab_discarder, keep): Update.
2231 <m_objfile>: Remove.
2232 <m_partial_symtabs>: New member.
2233 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2235 2021-03-20 Tom Tromey <tom@tromey.com>
2237 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2238 (xcoff_end_psymtab): Update.
2239 (scan_xcoff_symtab): Add partial_symtabs parameter.
2240 (xcoff_initial_scan): Update.
2241 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2242 * mdebugread.c (mdebug_build_psymtabs): Update.
2243 (parse_partial_symbols): Add partial_symtabs parameter.
2244 * dbxread.c (dbx_symfile_read): Update.
2245 (read_dbx_symtab): Add partial_symtabs parameter.
2246 (read_dbx_symtab): Update.
2247 (dbx_end_psymtab): Add partial_symtabs parameter.
2249 2021-03-20 Tom Tromey <tom@tromey.com>
2251 * quick-symbol.h (struct quick_symbol_functions)
2252 <relocated>: New method.
2253 * psymtab.h (struct psymbol_functions) <relocated>: New
2255 <fill_psymbol_map>: Declare method.
2256 <m_psymbol_map>: New member.
2257 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2258 (psymbol_functions::find_compunit_symtab_by_address): Update.
2259 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2260 (struct objfile) <psymbol_map>: Remove.
2261 * objfiles.c (objfile_relocate1): Update.
2263 2021-03-20 Tom Tromey <tom@tromey.com>
2265 * psympriv.h (struct psymbol_functions): New.
2266 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2267 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2268 (objfile::lookup_global_symbol_language): Update.
2269 * quick-symbol.h (struct quick_symbol_functions): Convert function
2270 pointers to methods. Add virtual destructor.
2271 (quick_symbol_functions_up): New typedef.
2272 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2273 (dwarf2_debug_names_functions): Don't declare.
2274 (make_psymbol_functions): Declare.
2275 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2276 (psymbol_functions::find_pc_sect_compunit_symtab)
2277 (psymbol_functions::lookup_symbol)
2278 (psymbol_functions::lookup_global_symbol_language)
2279 (psymbol_functions::find_last_source_symtab)
2280 (psymbol_functions::forget_cached_source_info)
2281 (psymbol_functions::print_stats, psymbol_functions::dump)
2282 (psymbol_functions::expand_symtabs_for_function)
2283 (psymbol_functions::expand_all_symtabs)
2284 (psymbol_functions::expand_symtabs_with_fullname)
2285 (psymbol_functions::map_symbol_filenames)
2286 (psymbol_functions::map_matching_symbols)
2287 (psymbol_functions::expand_symtabs_matching)
2288 (psymbol_functions::has_symbols)
2289 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2290 (psym_functions): Remove.
2291 (make_psymbol_functions): New function.
2292 * objfiles.h (struct objfile) <qf>: Change type.
2293 * elfread.c (elf_symfile_read): Update.
2294 * dwarf2/read.c (struct dwarf2_base_index_functions)
2295 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2296 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2297 (dwarf2_base_index_functions::find_last_source_symtab)
2298 (dwarf2_base_index_functions::forget_cached_source_info)
2299 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2300 (dwarf2_gdb_index::lookup_symbol)
2301 (dwarf2_base_index_functions::print_stats)
2302 (dwarf2_gdb_index::dump)
2303 (dwarf2_gdb_index::expand_symtabs_for_function)
2304 (dwarf2_base_index_functions::expand_all_symtabs)
2305 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2307 (dwarf2_gdb_index::map_matching_symbols): New method.
2308 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2309 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2310 (dwarf2_base_index_functions::map_symbol_filenames)
2311 (dwarf2_base_index_functions::has_symbols): Rename.
2312 (dwarf2_gdb_index_functions): Remove.
2313 (dwarf2_debug_names_index::lookup_symbol)
2314 (dwarf2_debug_names_index::dump)
2315 (dwarf2_debug_names_index::expand_symtabs_for_function)
2316 (dwarf2_debug_names_index::map_matching_symbols)
2317 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2318 (dwarf2_debug_names_functions): Remove.
2319 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2322 2021-03-20 Tom Tromey <tom@tromey.com>
2324 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2326 * xcoffread.c (xcoff_sym_fns): Update.
2327 * symfile.h (struct sym_fns) <qf>: Remove.
2328 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2329 * symfile-debug.c (objfile::has_partial_symbols)
2330 (objfile::find_last_source_symtab)
2331 (objfile::forget_cached_source_info)
2332 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2333 (objfile::print_stats, objfile::dump)
2334 (objfile::expand_symtabs_for_function)
2335 (objfile::expand_all_symtabs)
2336 (objfile::expand_symtabs_with_fullname)
2337 (objfile::map_matching_symbols)
2338 (objfile::expand_symtabs_matching)
2339 (objfile::find_pc_sect_compunit_symtab)
2340 (objfile::map_symbol_filenames)
2341 (objfile::find_compunit_symtab_by_address)
2342 (objfile::lookup_global_symbol_language, debug_sym_fns)
2343 (install_symfile_debug_logging): Update.
2344 * objfiles.h (struct objfile) <qf>: New member.
2345 * mipsread.c (ecoff_sym_fns): Update.
2346 * machoread.c (macho_sym_fns): Update.
2347 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2349 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2350 * dbxread.c (aout_sym_fns): Update.
2351 * coffread.c (coff_sym_fns): Update.
2353 2021-03-20 Tom Tromey <tom@tromey.com>
2355 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2356 (expand_symtabs_file_matcher_ftype)
2357 (expand_symtabs_symbol_matcher_ftype)
2358 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2359 Move to quick-symbol.h.
2360 * quick-symbol.h: New file.
2362 2021-03-20 Tom Tromey <tom@tromey.com>
2364 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2365 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2366 (basic_lookup_transparent_type_quick)
2367 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2368 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2370 * symmisc.c (print_objfile_statistics, dump_objfile)
2371 (maintenance_expand_symtabs): Update.
2372 * symfile.c (symbol_file_add_with_addrs)
2373 (expand_symtabs_matching, map_symbol_filenames): Update.
2374 * symfile-debug.c (objfile::has_partial_symbols)
2375 (objfile::find_last_source_symtab)
2376 (objfile::forget_cached_source_info)
2377 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2378 (objfile::print_stats, objfile::dump)
2379 (objfile::expand_symtabs_for_function)
2380 (objfile::expand_all_symtabs)
2381 (objfile::expand_symtabs_with_fullname)
2382 (objfile::map_matching_symbols)
2383 (objfile::expand_symtabs_matching)
2384 (objfile::find_pc_sect_compunit_symtab)
2385 (objfile::map_symbol_filenames)
2386 (objfile::find_compunit_symtab_by_address)
2387 (objfile::lookup_global_symbol_language): New methods.
2388 (debug_sym_quick_functions): Remove.
2389 (debug_sym_fns, install_symfile_debug_logging): Update.
2390 * source.c (forget_cached_source_info_for_objfile)
2391 (select_source_symtab): Update.
2392 * objfiles.h (struct objfile): Add methods corresponding to
2393 quick_symbol_functions.
2394 * objfiles.c (objfile::has_partial_symbols): Move to
2396 * linespec.c (iterate_over_all_matching_symtabs): Update.
2397 * cp-support.c (add_symbol_overload_list_qualified): Update.
2398 * ada-lang.c (add_nonlocal_symbols): Update.
2400 2021-03-20 Tom Tromey <tom@tromey.com>
2402 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2403 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2405 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2406 * psymtab.c (psym_has_symbols): Return bool.
2407 * objfiles.c (objfile::has_partial_symbols): Return bool.
2408 * dwarf2/read.c (dw2_has_symbols): Return bool.
2410 2021-03-20 Tom Tromey <tom@tromey.com>
2412 * symfile.c (read_symbols): Update.
2413 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2414 (objfile_has_partial_symbols): Don't declare.
2415 * objfiles.c (objfile::has_partial_symbols): Rename from
2416 objfile_has_partial_symbols.
2417 (objfile_has_symbols, have_partial_symbols): Update.
2418 * elfread.c (elf_symfile_read): Update.
2419 * dwarf2/read.c (dwarf2_has_info): Update.
2420 * coffread.c (coff_symfile_read): Update.
2422 2021-03-20 Tom Tromey <tom@tromey.com>
2424 * coffread.c: Include dwarf2/public.h.
2425 * dwarf2/frame.c: Include dwarf2/public.h.
2426 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2427 * dwarf2/public.h: New file.
2428 * dwarf2/read.c: Include dwarf2/public.h.
2429 * elfread.c: Include dwarf2/public.h.
2430 * machoread.c: Include dwarf2/public.h.
2431 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2432 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2433 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2434 * xcoffread.c: Include dwarf2/public.h.
2436 2021-03-20 Tom Tromey <tom@tromey.com>
2438 * symfile.h (enum dwarf2_section_enum)
2439 (dwarf2_get_section_info): Move to dwarf2/read.h.
2440 * dwarf2/read.h (enum dwarf2_section_enum)
2441 (dwarf2_get_section_info): Move from symfile.h.
2443 2021-03-19 Pedro Alves <pedro@palves.net>
2445 * thread.c (any_thread_of_inferior): Check if there's a selected
2446 thread before calling inferior_thread().
2448 2021-03-18 Tom Tromey <tromey@adacore.com>
2450 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2452 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2453 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2455 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2457 * python/py-param.c (get_set_value): Update header comment.
2459 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2461 * infrun.c (check_multi_target_resumption): Remove argument to
2462 all_non_exited_inferiors.
2464 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2466 * windows-nat.c (windows_init_thread_list): Add message to
2469 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2471 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2472 well as PyLong_Check for Python 2.
2474 2021-03-15 Tom Tromey <tromey@adacore.com>
2477 * rust-exp.y (maker_map): Use gdb::hash_enum.
2478 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2480 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2482 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2485 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2487 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2488 parameter, adjust caller.
2490 2021-03-15 Tom Tromey <tromey@adacore.com>
2492 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2494 2021-03-15 Tom Tromey <tromey@adacore.com>
2496 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2497 ada_ensure_varsize_limit.
2499 2021-03-15 Tom Tromey <tromey@adacore.com>
2501 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2503 * ada-exp.y (maybe_overload): New function.
2504 (ada_wrap_overload): New function.
2505 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2506 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2507 (or_else_exp, xor_exp, primary): Update.
2509 2021-03-15 Tom Tromey <tromey@adacore.com>
2512 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2513 call for tagged type.
2515 2021-03-15 Tom Tromey <tromey@adacore.com>
2517 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2520 2021-03-15 Tom Tromey <tromey@adacore.com>
2522 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2524 (ada_assign_operation::evaluate): Update.
2525 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2528 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2530 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2532 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2534 * python/python.c (gdbpy_source_objfile_script): Use
2535 make_scoped_restore to restore gdbpy_current_objfile.
2536 (gdbpy_execute_objfile_script): Likewise.
2538 2021-03-14 Tom Tromey <tom@tromey.com>
2540 * dwarf2/read.c (read_attribute_value): Use cu_header
2543 2021-03-14 Tom Tromey <tom@tromey.com>
2545 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2546 (peek_die_abbrev): Use reader.abfd.
2548 2021-03-14 Tom Tromey <tom@tromey.com>
2550 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2553 2021-03-13 Tom Tromey <tom@tromey.com>
2555 * dwarf2/read.c (struct partial_die_info): Update.
2556 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2557 (load_partial_dies, partial_die_info::partial_die_info): Update.
2558 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2560 2021-03-13 Tom Tromey <tom@tromey.com>
2562 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2564 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2567 * cp-support.c: Use scoped_segv_handler_restore.
2568 * event-top.c (thread_local_segv_handler): Made static.
2569 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2571 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2573 * event-top.h (class scoped_segv_handler_restore): New class.
2574 (thread_local_segv_handler): Removed.
2576 2021-03-10 Tom Tromey <tromey@adacore.com>
2578 * parser-defs.h (parser_state): Change completion to bool.
2579 <parse_completion>: Likewise.
2580 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2581 (ada_resolve_variable, ada_resolve_function): Update.
2582 * ada-lang.c (ada_find_operator_symbol): Change
2583 parse_completion to bool.
2584 (ada_resolve_funcall, ada_resolve_variable)
2585 (ada_resolve_function): Likewise.
2587 2021-03-09 Tom Tromey <tromey@adacore.com>
2589 * eval.c (operation::evaluate_funcall): Use function formal
2590 parameter types when evaluating.
2592 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2594 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2595 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2596 and owner to m_owner.
2598 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2600 * f-exp.h (eval_op_f_loc): Declare.
2601 (expr::fortran_loc_operation): New typedef.
2602 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2604 (f77_keywords): Add LOC keyword.
2605 * f-lang.c (eval_op_f_loc): New function.
2606 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2608 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2610 * f-exp.h (eval_op_f_array_shape): Declare.
2611 (fortran_array_shape_operation): New type.
2612 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2614 (f77_keywords): Add "shape" keyword.
2615 * f-lang.c (fortran_array_shape): New function.
2616 (eval_op_f_array_shape): New function.
2617 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2619 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2621 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2623 (expr::fortran_array_size_1arg): New type.
2624 (expr::fortran_array_size_2arg): Likewise.
2625 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2626 UNOP_OR_BINOP_INTRINSIC.
2627 (f77_keywords): Add "size" keyword.
2628 * f-lang.c (fortran_array_size): New function.
2629 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2630 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2632 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2634 * f-exp.h (eval_op_f_rank): Declare.
2635 (expr::fortran_rank_operation): New typedef.
2636 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2638 (f77_keywords): Add "rank" keyword.
2639 * f-lang.c (eval_op_f_rank): New function.
2640 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2642 2021-03-08 Tom Tromey <tom@tromey.com>
2644 * printcmd.c (set_command): Remove null check.
2645 * value.c (init_if_undefined_command): Remove null check.
2647 2021-03-08 Tom Tromey <tom@tromey.com>
2649 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2651 * p-exp.y (variable): Update.
2652 * go-exp.y (variable): Update.
2653 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2654 Remove overload for objfile.
2655 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2657 (check_objfile): Likewise.
2658 (dump_for_expression): Likewise. Remove overload for objfile.
2659 (class var_msym_value_operation): Use bound_minimal_symbol.
2660 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2662 (var_msym_value_operation::evaluate_for_address)
2663 (var_msym_value_operation::evaluate_for_sizeof)
2664 (var_msym_value_operation::evaluate_for_cast): Update.
2665 * d-exp.y (PrimaryExpression): Update.
2666 * c-exp.y (variable): Update.
2667 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2668 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2670 * ada-exp.y (write_var_or_type): Update.
2672 2021-03-08 Tom Tromey <tom@tromey.com>
2674 * parser-defs.h (exp_uses_objfile): Return bool.
2675 * parse.c (exp_uses_objfile): Return bool.
2677 2021-03-08 Tom Tromey <tom@tromey.com>
2679 * value.h (eval_skip_value): Don't declare.
2680 * opencl-lang.c (eval_opencl_assign): Update.
2681 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2682 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2683 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2684 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2685 * expop.h (typeof_operation::evaluate)
2686 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2687 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2688 (cxx_cast_operation::evaluate): Update.
2689 * eval.c (eval_skip_value): Remove.
2690 (eval_op_scope, eval_op_var_entry_value)
2691 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2692 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2693 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2694 (eval_op_binary, eval_op_subscript, eval_op_equal)
2695 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2696 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2697 (eval_op_complement, eval_op_lognot, eval_op_ind)
2698 (eval_op_memval, eval_op_preinc, eval_op_predec)
2699 (eval_op_postinc, eval_op_postdec, eval_op_type)
2700 (eval_binop_assign_modify, eval_op_objc_msgcall)
2701 (eval_multi_subscript, logical_and_operation::evaluate)
2702 (logical_or_operation::evaluate, array_operation::evaluate)
2703 (operation::evaluate_for_cast)
2704 (var_msym_value_operation::evaluate_for_cast)
2705 (var_value_operation::evaluate_for_cast): Update.
2706 * c-lang.c (c_string_operation::evaluate): Update.
2707 * c-exp.h (objc_nsstring_operation::evaluate)
2708 (objc_selector_operation::evaluate): Update.
2709 * ada-lang.c (ada_assign_operation::evaluate)
2710 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2711 (ada_atr_size): Update.
2713 2021-03-08 Tom Tromey <tom@tromey.com>
2715 * eval.c: Merge "namespace" scopes.
2717 2021-03-08 Tom Tromey <tom@tromey.com>
2719 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2721 * parse.c (expr_builder::expr_builder, expr_builder::release):
2724 2021-03-08 Tom Tromey <tom@tromey.com>
2726 * parse.c (expression::expression, expression::~expression):
2728 * expression.h (struct expression): Inline constructor. Remove
2731 2021-03-08 Tom Tromey <tom@tromey.com>
2733 * std-operator.def (BINOP_END): Remove.
2734 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2735 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2736 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2737 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2738 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2741 2021-03-08 Tom Tromey <tom@tromey.com>
2743 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2745 2021-03-08 Tom Tromey <tom@tromey.com>
2747 * std-operator.def (OP_EXTENDED0): Remove.
2749 2021-03-08 Tom Tromey <tom@tromey.com>
2751 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2752 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2755 2021-03-08 Tom Tromey <tom@tromey.com>
2757 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2758 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2760 2021-03-08 Tom Tromey <tom@tromey.com>
2762 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2763 * ada-lang.c (ada_binop_minmax): Update.
2764 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2765 Use BINOP_MIN and BINOP_MAX.
2767 2021-03-08 Tom Tromey <tom@tromey.com>
2769 * value.h (evaluate_subexp_with_coercion): Don't declare.
2770 * parse.c (exp_descriptor_standard): Remove.
2771 (expr_builder::expr_builder, expr_builder::release): Update.
2772 (expression::expression): Remove size_t parameter.
2773 (expression::~expression): Simplify.
2774 (expression::resize): Remove.
2775 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2776 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2777 (write_exp_elt_longcst, write_exp_elt_floatcst)
2778 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2779 (write_exp_string_vector, write_exp_bitstring): Remove.
2780 * p-lang.h (class pascal_language) <opcode_print_table,
2781 op_print_tab>: Remove.
2782 * p-lang.c (pascal_language::op_print_tab): Remove.
2783 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2785 * objc-lang.c (objc_op_print_tab): Remove.
2786 (class objc_language) <opcode_print_table>: Remove.
2787 * m2-lang.h (class m2_language) <opcode_print_table,
2788 op_print_tab>: Remove.
2789 * m2-lang.c (m2_language::op_print_tab): Remove.
2790 * language.h (struct language_defn) <post_parser, expression_ops,
2791 opcode_print_table>: Remove.
2792 * language.c (language_defn::expression_ops)
2793 (auto_or_unknown_language::opcode_print_table): Remove.
2794 * go-lang.h (class go_language) <opcode_print_table,
2795 op_print_tab>: Remove.
2796 * go-lang.c (go_language::op_print_tab): Remove.
2797 * f-lang.h (class f_language) <opcode_print_table>: Remove
2798 <op_print_tab>: Remove.
2799 * f-lang.c (f_language::op_print_tab): Remove.
2800 * expression.h (union exp_element): Remove.
2801 (struct expression): Remove size_t parameter from constructor.
2803 <first_opcode>: Update.
2804 <nelts, elts>: Remove.
2805 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2806 (evaluate_subexp_standard, print_expression, op_string)
2807 (dump_raw_expression): Don't declare.
2808 * expprint.c (print_expression, print_subexp)
2809 (print_subexp_funcall, print_subexp_standard, op_string)
2810 (dump_raw_expression, dump_subexp, dump_subexp_body)
2811 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2812 (dump_prefix_expression): Update.
2813 * eval.c (evaluate_subexp): Remove.
2814 (evaluate_expression, evaluate_type): Update.
2815 (evaluate_subexpression_type): Remove.
2816 (fetch_subexp_value): Remove "pc" parameter. Update.
2817 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2818 (evaluate_subexp_standard, evaluate_subexp_for_address)
2819 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2820 (evaluate_subexp_for_cast): Remove.
2821 (parse_and_eval_type): Update.
2822 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2823 * d-lang.c (d_op_print_tab): Remove.
2824 (class d_language) <opcode_print_table>: Remove.
2825 * c-lang.h (c_op_print_tab): Don't declare.
2826 * c-lang.c (c_op_print_tab): Remove.
2827 (class c_language, class cplus_language, class asm_language, class
2828 minimal_language) <opcode_print_table>: Remove.
2829 * breakpoint.c (update_watchpoint, watchpoint_check)
2830 (watchpoint_exp_is_const, watch_command_1): Update.
2831 * ax-gdb.h (union exp_element): Don't declare.
2832 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2833 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2834 (gen_expr_binop_rest): Remove.
2835 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2836 * ada-lang.c (ada_op_print_tab): Remove.
2837 (class ada_language) <post_parser, opcode_print_table>: Remove.
2839 2021-03-08 Tom Tromey <tom@tromey.com>
2841 * go-lang.c (go_language::expression_ops): Don't declare.
2842 * go-lang.h (class go_language) <expression_ops>: Remove.
2843 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2845 (class opencl_language) <expression_ops>: Remove.
2846 * d-lang.c (class d_language) <expression_ops>: Remove.
2847 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2848 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2849 (class c_language, class cplus_language, class asm_language)
2850 (class minimal_language) <expression_ops>: Remove.
2852 2021-03-08 Tom Tromey <tom@tromey.com>
2854 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2855 (evaluate_subexp_type, assign_aggregate)
2856 (aggregate_assign_positional, aggregate_assign_from_choices)
2857 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2858 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2859 (ada_operator_check, ada_forward_operator_length)
2860 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2862 (post_parser): Update.
2863 (class ada_language) <expresssion_ops>: Remove.
2865 2021-03-08 Tom Tromey <tom@tromey.com>
2867 * m2-lang.h (class m2_language) <expresssion_ops,
2868 exp_descriptor_modula2>: Remove.
2869 * m2-lang.c (evaluate_subexp_modula2)
2870 (m2_language::exp_descriptor_modula2): Remove.
2872 2021-03-08 Tom Tromey <tom@tromey.com>
2874 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2875 <exp_descriptor_tab>: Remove.
2876 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2877 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2878 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2879 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2882 2021-03-08 Tom Tromey <tom@tromey.com>
2884 * rust-lang.h (class rust_language) <expression_ops,
2885 exp_descriptor_tab>: Remove.
2886 * rust-lang.c (rust_evaluate_funcall): Remove.
2887 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2889 (rust_evaluate_subexp): Remove.
2890 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2891 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2892 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2894 2021-03-08 Tom Tromey <tom@tromey.com>
2896 * ada-exp.y: Create operations.
2897 (empty_stoken): Remove.
2898 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2899 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2900 (components): New global.
2901 (push_component, choice_component, pop_component, pop_components):
2903 (associations): New global
2904 (push_association, pop_association, pop_associations): New
2906 (ada_parse): Update.
2907 (write_var_from_sym, write_int): Create operations.
2908 (write_exp_op_with_string): Remove.
2909 (write_object_renaming, write_selectors, write_ambiguous_var)
2910 (write_var_or_type, write_name_assoc): Create operations.
2911 * ada-lang.h (ada_index_type): Declare.
2912 * ada-lang.c (ada_index_type): No longer static.
2914 2021-03-08 Tom Tromey <tom@tromey.com>
2916 * f-exp.y: Create operations.
2917 (f_language::parser): Update.
2919 2021-03-08 Tom Tromey <tom@tromey.com>
2921 * m2-exp.y: Create operations.
2922 (m2_language::parser): Update.
2924 2021-03-08 Tom Tromey <tom@tromey.com>
2926 * p-exp.y: Create operations.
2927 (pascal_language::parser): Update.
2929 2021-03-08 Tom Tromey <tom@tromey.com>
2931 * d-exp.y: Create operations.
2934 2021-03-08 Tom Tromey <tom@tromey.com>
2936 * go-exp.y: Create operations.
2937 (go_language::parser): Update.
2939 2021-03-08 Tom Tromey <tom@tromey.com>
2941 * objc-lang.c (end_msglist): Create operations.
2942 * c-exp.y: Change parser to create operations.
2943 (write_destructor_name): Remove.
2946 2021-03-08 Tom Tromey <tom@tromey.com>
2948 * rust-exp.y: Create operations.
2949 (rust_parser::convert_params_to_expression): Change return type.
2950 (binop_maker_ftype): New typedef.
2951 (maker_map): New global.
2952 (rust_parser::convert_ast_to_expression): Change return type.
2953 (rust_language::parser): Update.
2954 (_initialize_rust_exp): Initialize maker_map.
2956 2021-03-08 Tom Tromey <tom@tromey.com>
2958 * stap-probe.c (binop_maker_ftype): New typedef.
2959 (stap_maker_map): New global.
2960 (stap_make_binop): New function.
2961 (stap_parse_register_operand): Return operation_up.
2962 (stap_parse_single_operand, stap_parse_argument_conditionally)
2963 (stap_parse_argument_1): Likewise.
2964 (stap_parse_argument): Create operations.
2965 (stap_probe::parse_arguments): Update.
2966 (_initialize_stap_probe): Initialize stap_maker_map.
2967 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2969 * i386-tdep.h (i386_stap_parse_special_token): Change return
2971 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2972 (i386_stap_parse_special_token_three_arg_disp)
2973 (i386_stap_parse_special_token): Change return type.
2974 * gdbarch.sh (stap_parse_special_token): Change return type.
2975 * gdbarch.c: Rebuild.
2976 * gdbarch.h: Rebuild.
2977 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2979 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2982 2021-03-08 Tom Tromey <tom@tromey.com>
2984 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2985 * gdbarch.h: Rebuild.
2986 * gdbarch.c: Rebuild.
2987 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2988 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2990 (amd64_dtrace_parse_probe_argument): Update.
2992 2021-03-08 Tom Tromey <tom@tromey.com>
2994 * parser-defs.h (struct parser_state) <push, push_new,
2995 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2996 wrap2>: New methods.
2997 <m_operations>: New member.
2998 * parse.c (parser_state::push_c_string)
2999 (parser_state::push_symbol, parser_state::push_dollar): New
3002 2021-03-08 Tom Tromey <tom@tromey.com>
3004 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3006 (struct parser_state) <mark_struct_expression>: New method.
3007 * parse.c (parser_state::mark_struct_expression): Update assert.
3008 (parser_state::mark_struct_expression): New method.
3009 (parser_state::mark_completion_tag): Update assert.
3010 (parse_expression_for_completion): Handle expout_last_op.
3012 2021-03-08 Tom Tromey <tom@tromey.com>
3014 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3016 * value.h (fetch_subexp_value): Add "op" parameter.
3017 * value.c (init_if_undefined_command): Update.
3018 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3019 * stap-probe.c (stap_probe::compile_to_ax): Update.
3020 * printcmd.c (set_command): Update.
3021 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3023 * parser-defs.h (struct expr_builder) <set_operation>: New
3025 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3026 * expression.h (struct expression) <first_opcode>: Update.
3028 * expprint.c (dump_raw_expression, dump_prefix_expression):
3030 * expop.h (class var_value_operation) <get_symbol>: New method.
3031 (class register_operation) <get_name>: New method.
3032 (class equal_operation): No longer a typedef, now a subclass.
3033 (class unop_memval_operation) <get_type>: New method.
3034 (class assign_operation) <get_lhs>: New method.
3035 (class unop_cast_operation) <get_type>: New method.
3036 * eval.c (evaluate_expression, evaluate_type)
3037 (evaluate_subexpression_type): Update.
3038 (fetch_subexp_value): Add "op" parameter.
3039 (parse_and_eval_type): Update.
3040 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3041 * breakpoint.c (update_watchpoint, watchpoint_check)
3042 (watchpoint_exp_is_const, watch_command_1): Update.
3043 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3046 2021-03-08 Tom Tromey <tom@tromey.com>
3048 * ada-lang.c (ada_value_binop): Do not use op_string.
3050 2021-03-08 Tom Tromey <tom@tromey.com>
3052 * expprint.c (dump_for_expression): New overload.
3053 * expop.h (check_objfile, dump_for_expression): Declare new
3055 * ada-lang.c (check_objfile): New overload.
3056 (assign_component, ada_aggregate_component::uses_objfile)
3057 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3058 (ada_aggregate_component::assign_aggregate)
3059 (ada_positional_component::uses_objfile)
3060 (ada_positional_component::dump, ada_positional_component::assign)
3061 (ada_discrete_range_association::uses_objfile)
3062 (ada_discrete_range_association::dump)
3063 (ada_discrete_range_association::assign)
3064 (ada_name_association::uses_objfile, ada_name_association::dump)
3065 (ada_name_association::assign)
3066 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3067 (ada_choices_component::assign)
3068 (ada_others_component::uses_objfile, ada_others_component::dump)
3069 (ada_others_component::assign, ada_assign_operation::evaluate):
3071 * ada-exp.h (ada_string_operation) <get_name>: New method.
3072 (class ada_assign_operation): New.
3073 (class ada_component): New.
3074 (ada_component_up): New typedef.
3075 (class ada_aggregate_operation, class ada_aggregate_component)
3076 (class ada_positional_component, class ada_others_component)
3077 (class ada_association): New.
3078 (ada_association_up): New typedef.
3079 (class ada_choices_component)
3080 (class ada_discrete_range_association)
3081 (class ada_name_association): New.
3083 2021-03-08 Tom Tromey <tom@tromey.com>
3085 * ada-lang.c (ada_var_value_operation::resolve)
3086 (ada_funcall_operation::resolve)
3087 (ada_ternop_slice_operation::resolve): New methods.
3088 * ada-exp.h (struct ada_resolvable): New.
3089 (class ada_var_value_operation): Derive from ada_resolvable.
3090 <get_block, resolve>: New methods.
3091 (class ada_funcall_operation): Derive from ada_resolvable.
3092 <resolve>: New method.
3093 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3094 <resolve>: New method.
3096 2021-03-08 Tom Tromey <tom@tromey.com>
3098 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3099 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3101 (class ada_funcall_operation): New.
3103 2021-03-08 Tom Tromey <tom@tromey.com>
3105 * ada-lang.c (ada_structop_operation::evaluate): New method.
3106 * ada-exp.h (class ada_structop_operation): New.
3108 2021-03-08 Tom Tromey <tom@tromey.com>
3110 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3111 * ada-exp.h (class ada_unop_ind_operation): New.
3113 2021-03-08 Tom Tromey <tom@tromey.com>
3115 * ada-lang.c (ada_binop_exp): No longer static.
3116 * ada-exp.h (ada_binop_exp_operation): New typedef.
3118 2021-03-08 Tom Tromey <tom@tromey.com>
3120 * ada-lang.c (ada_val_atr): No longer static.
3121 (ada_atr_val_operation::evaluate): New method.
3122 * ada-exp.h (class ada_atr_val_operation): New.
3124 2021-03-08 Tom Tromey <tom@tromey.com>
3126 * ada-lang.c (ada_pos_atr): No longer static.
3127 * ada-exp.h (ada_pos_operation): New typedef.
3129 2021-03-08 Tom Tromey <tom@tromey.com>
3131 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3133 (ada_evaluate_subexp): Use it.
3135 2021-03-08 Tom Tromey <tom@tromey.com>
3137 * ada-lang.c (ada_binop_minmax): No longer static.
3138 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3141 2021-03-08 Tom Tromey <tom@tromey.com>
3143 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3145 * ada-exp.h (class ada_var_msym_value_operation): New.
3147 2021-03-08 Tom Tromey <tom@tromey.com>
3149 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3150 (ada_var_value_operation::evaluate): New methods.
3151 * ada-exp.h (class ada_var_value_operation): New.
3153 2021-03-08 Tom Tromey <tom@tromey.com>
3155 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3156 * ada-exp.h (class ada_unop_atr_operation): New.
3158 2021-03-08 Tom Tromey <tom@tromey.com>
3160 * ada-lang.c (ada_binop_in_bounds): No longer static.
3161 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3163 2021-03-08 Tom Tromey <tom@tromey.com>
3165 * ada-lang.c (ada_ternop_slice): No longer static.
3166 * ada-exp.h (class ada_ternop_slice_operation): New.
3168 2021-03-08 Tom Tromey <tom@tromey.com>
3170 * ada-exp.h (ada_bitwise_operation): New template class.
3171 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3172 (ada_bitwise_xor_operation): New typedefs.
3174 2021-03-08 Tom Tromey <tom@tromey.com>
3176 * ada-lang.c (ada_equal_binop): No longer static.
3177 * ada-exp.h (class ada_binop_equal_operation): New.
3179 2021-03-08 Tom Tromey <tom@tromey.com>
3181 * ada-lang.c (ada_mult_binop): No longer static.
3182 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3183 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3185 2021-03-08 Tom Tromey <tom@tromey.com>
3187 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3188 * ada-exp.h (class ada_binop_addsub_operation): New.
3190 2021-03-08 Tom Tromey <tom@tromey.com>
3192 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3193 (ada_resolve_variable): Declare.
3194 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3195 (ada_resolve_variable): New functions.
3196 (resolve_subexp): Update.
3198 2021-03-08 Tom Tromey <tom@tromey.com>
3200 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3202 * c-exp.h (class opencl_ternop_cond_operation): New.
3204 2021-03-08 Tom Tromey <tom@tromey.com>
3206 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3208 * c-exp.h (class opencl_logical_binop_operation): New.
3210 2021-03-08 Tom Tromey <tom@tromey.com>
3212 * opencl-lang.c (opencl_structop_operation::evaluate): New
3214 * c-exp.h (class opencl_structop_operation): New.
3216 2021-03-08 Tom Tromey <tom@tromey.com>
3218 * opencl-lang.c (opencl_logical_not): No longer static. Change
3220 (evaluate_subexp_opencl): Update.
3221 * c-exp.h (opencl_notequal_operation): New typedef.
3223 2021-03-08 Tom Tromey <tom@tromey.com>
3225 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3226 static. Change parameters.
3227 (eval_opencl_assign): No longer static. Add "op" parameter.
3228 (evaluate_subexp_opencl): Update.
3229 * c-exp.h (opencl_binop_operation): New template class.
3230 (opencl_assign_operation, opencl_equal_operation)
3231 (opencl_notequal_operation, opencl_less_operation)
3232 (opencl_gtr_operation, opencl_geq_operation)
3233 (opencl_leq_operation): New typedefs.
3235 2021-03-08 Tom Tromey <tom@tromey.com>
3237 * opencl-lang.c (opencl_value_cast): No longer static.
3238 * c-exp.h (opencl_cast_type_operation): New typedef.
3240 2021-03-08 Tom Tromey <tom@tromey.com>
3242 * f-exp.h (eval_op_f_allocated): Declare.
3243 (fortran_allocated_operation): New typedef.
3244 * f-lang.c (eval_op_f_allocated): No longer static.
3246 2021-03-08 Tom Tromey <tom@tromey.com>
3248 * f-lang.c (eval_op_f_associated): New functions.
3249 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3252 2021-03-08 Tom Tromey <tom@tromey.com>
3254 * f-lang.c (fortran_bound_1arg::evaluate)
3255 (fortran_bound_2arg::evaluate): New methods.
3256 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3259 2021-03-08 Tom Tromey <tom@tromey.com>
3261 * expop.h (class unop_addr_operation) <get_expression>: New
3263 * f-lang.c (fortran_undetermined::value_subarray)
3264 (fortran_undetermined::evaluate): New methods.
3265 (fortran_prepare_argument): New overload.
3266 * f-exp.h (class fortran_range_operation)
3267 (class fortran_undetermined): New classes.
3269 2021-03-08 Tom Tromey <tom@tromey.com>
3271 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3272 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3275 2021-03-08 Tom Tromey <tom@tromey.com>
3277 * expression.h (class operation) <evaluate_funcall>: New methods.
3278 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3279 (class var_value_operation) <evaluate_funcall>: New method.
3280 (class structop_base_operation) <evaluate_funcall>: New method.
3281 (class var_msym_value_operation) <evaluate_funcall>: New method.
3282 (class structop_member_base): New class.
3283 (class structop_member_operation): Derive from
3284 structop_member_base.
3285 (class structop_mptr_operation): Derive from
3286 structop_member_base.
3287 (class funcall_operation): New class.
3288 * eval.c (operation::evaluate_funcall)
3289 (var_value_operation::evaluate_funcall)
3290 (scope_operation::evaluate_funcall)
3291 (structop_member_base::evaluate_funcall)
3292 (structop_base_operation::evaluate_funcall): New methods.
3294 2021-03-08 Tom Tromey <tom@tromey.com>
3296 * expop.h (class array_operation): New.
3297 * eval.c (array_operation::evaluate_struct_tuple)
3298 (array_operation::evaluate): New methods.
3300 2021-03-08 Tom Tromey <tom@tromey.com>
3302 * expop.h (class adl_func_operation): New.
3303 * eval.c (adl_func_operation::evaluate): New method.
3305 2021-03-08 Tom Tromey <tom@tromey.com>
3307 * ada-lang.c (ada_unop_in_range): No longer static.
3308 * ada-exp.h (class ada_unop_range_operation): New.
3310 2021-03-08 Tom Tromey <tom@tromey.com>
3312 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3314 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3315 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3317 2021-03-08 Tom Tromey <tom@tromey.com>
3319 * expop.h (class logical_and_operation)
3320 (class logical_or_operation): New.
3321 * eval.c (logical_and_operation::evaluate)
3322 (logical_or_operation::evaluate): New methods.
3323 * ax-gdb.c (logical_and_operation::do_generate_ax)
3324 (logical_or_operation::do_generate_ax): New methods.
3326 2021-03-08 Tom Tromey <tom@tromey.com>
3328 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3330 * m2-exp.h: New file.
3332 2021-03-08 Tom Tromey <tom@tromey.com>
3334 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3335 * rust-exp.h (class rust_aggregate_operation): New.
3337 2021-03-08 Tom Tromey <tom@tromey.com>
3339 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3341 * rust-exp.h (class rust_struct_anon): New.
3342 (class rust_structop): New.
3344 2021-03-08 Tom Tromey <tom@tromey.com>
3346 * rust-lang.c (rust_range): No longer static.
3347 * rust-exp.h (class rust_range_operation): New.
3349 2021-03-08 Tom Tromey <tom@tromey.com>
3351 * rust-lang.c (rust_subscript): No longer static.
3352 * rust-exp.h (class rust_subscript_operation): New.
3354 2021-03-08 Tom Tromey <tom@tromey.com>
3356 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3358 (rust_evaluate_subexp): Update.
3359 * rust-exp.h (class rust_unop_ind_operation): New.
3361 2021-03-08 Tom Tromey <tom@tromey.com>
3363 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3364 longer static. Add "opcode" parameter.
3365 (rust_evaluate_subexp): Update.
3366 * rust-exp.h: New file.
3368 2021-03-08 Tom Tromey <tom@tromey.com>
3370 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3371 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3372 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3373 (evaluate_subexp_f): Update.
3374 * f-exp.h: New file.
3376 2021-03-08 Tom Tromey <tom@tromey.com>
3378 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3379 * ada-exp.h (class ada_ternop_range_operation): New.
3381 2021-03-08 Tom Tromey <tom@tromey.com>
3383 * ada-lang.c (ada_qual_operation::evaluate): New method.
3384 * ada-exp.h (class ada_qual_operation): New.
3386 2021-03-08 Tom Tromey <tom@tromey.com>
3388 * ada-lang.c (ada_string_operation::evaluate): New method.
3389 * ada-exp.h (class ada_string_operation): New.
3391 2021-03-08 Tom Tromey <tom@tromey.com>
3393 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3394 * ada-exp.h: New file.
3396 2021-03-08 Tom Tromey <tom@tromey.com>
3398 * expop.h (class multi_subscript_operation): New.
3399 * eval.c (multi_subscript_operation::evaluate): New method.
3401 2021-03-08 Tom Tromey <tom@tromey.com>
3403 * eval.c (objc_msgcall_operation::evaluate): New method.
3404 * c-exp.h (class objc_msgcall_operation): New.
3406 2021-03-08 Tom Tromey <tom@tromey.com>
3408 * expop.h (class var_value_operation): New.
3409 * eval.c (var_value_operation::evaluate)
3410 (var_value_operation::evaluate_for_address)
3411 (var_value_operation::evaluate_with_coercion)
3412 (var_value_operation::evaluate_for_sizeof)
3413 (var_value_operation::evaluate_for_cast): New methods.
3414 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3416 2021-03-08 Tom Tromey <tom@tromey.com>
3418 * expop.h (cxx_cast_ftype): New typedef.
3419 (cxx_cast_operation): New template.
3420 (dynamic_cast_operation, reinterpret_cast_operation): New
3423 2021-03-08 Tom Tromey <tom@tromey.com>
3425 * expop.h (class unop_cast_type_operation): New.
3426 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3429 2021-03-08 Tom Tromey <tom@tromey.com>
3431 * expop.h (class unop_cast_operation): New.
3432 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3434 2021-03-08 Tom Tromey <tom@tromey.com>
3436 * expop.h (class assign_modify_operation): New.
3437 * eval.c (eval_binop_assign_modify): No longer static.
3438 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3440 2021-03-08 Tom Tromey <tom@tromey.com>
3442 * expop.h (class assign_operation): New.
3443 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3445 2021-03-08 Tom Tromey <tom@tromey.com>
3447 * expop.h (class type_instance_operation): New.
3448 * eval.c (type_instance_operation::evaluate): New method.
3450 2021-03-08 Tom Tromey <tom@tromey.com>
3452 * expop.h (class op_this_operation): New.
3453 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3455 2021-03-08 Tom Tromey <tom@tromey.com>
3457 * expop.h (class unop_memval_operation)
3458 (class unop_memval_type_operation): New.
3459 * eval.c (eval_op_memval): No longer static.
3460 (unop_memval_operation::evaluate_for_address)
3461 (unop_memval_type_operation::evaluate_for_address)
3462 (unop_memval_operation::evaluate_for_sizeof)
3463 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3464 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3465 (unop_memval_type_operation::do_generate_ax): New methods.
3467 2021-03-08 Tom Tromey <tom@tromey.com>
3469 * expop.h (class unop_alignof_operation): New.
3470 * eval.c (eval_op_alignof): No longer static.
3472 2021-03-08 Tom Tromey <tom@tromey.com>
3474 * expop.h (class unop_sizeof_operation): New.
3475 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3477 2021-03-08 Tom Tromey <tom@tromey.com>
3479 * expop.h (class unop_addr_operation): New.
3480 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3482 2021-03-08 Tom Tromey <tom@tromey.com>
3484 * expop.h (class typeid_operation): New.
3486 2021-03-08 Tom Tromey <tom@tromey.com>
3488 * expop.h (class decltype_operation): New.
3490 2021-03-08 Tom Tromey <tom@tromey.com>
3492 * expop.h (class typeof_operation): New.
3494 2021-03-08 Tom Tromey <tom@tromey.com>
3496 * expop.h (class type_operation): New.
3497 * eval.c (eval_op_type): No longer static.
3499 2021-03-08 Tom Tromey <tom@tromey.com>
3501 * expop.h (class unop_ind_base_operation)
3502 (class unop_ind_operation): New.
3503 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3504 (unop_ind_base_operation::evaluate_for_address)
3505 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3506 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3508 2021-03-08 Tom Tromey <tom@tromey.com>
3510 * expop.h (unop_incr_operation): New template.
3511 (preinc_operation, predec_operation, postinc_operation)
3512 (postdec_operation): New typedefs.
3513 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3514 (eval_op_postdec): No longer static.
3516 2021-03-08 Tom Tromey <tom@tromey.com>
3518 * expop.h (unary_ftype): New typedef.
3519 (unop_operation, usual_ax_binop_operation): New templates.
3520 (unary_plus_operation, unary_neg_operation)
3521 (unary_complement_operation, unary_logical_not_operation): New
3523 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3524 (eval_op_lognot): No longer static.
3525 * ax-gdb.c (gen_expr_unop): New function.
3527 2021-03-08 Tom Tromey <tom@tromey.com>
3529 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3531 2021-03-08 Tom Tromey <tom@tromey.com>
3533 * expop.h (class repeat_operation): New.
3534 * eval.c (eval_op_repeat): No longer static. Remove "op"
3536 (evaluate_subexp_standard): Update.
3537 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3539 2021-03-08 Tom Tromey <tom@tromey.com>
3541 * expop.h (class comparison_operation): New.
3542 (equal_operation, notequal_operation, less_operation)
3543 (gtr_operation, geq_operation, leq_operation): New typedefs.
3544 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3545 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3547 2021-03-08 Tom Tromey <tom@tromey.com>
3549 * expop.h (class subscript_operation): New.
3550 * eval.c (eval_op_subscript): No longer static.
3552 2021-03-08 Tom Tromey <tom@tromey.com>
3554 * expop.h (class binop_operation, class usual_ax_binop_operation):
3556 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3557 (div_operation, rem_operation, lsh_operation, rsh_operation)
3558 (bitwise_and_operation, bitwise_ior_operation)
3559 (bitwise_xor_operation): New typedefs.
3560 * eval.c (eval_op_binary): No longer static.
3562 2021-03-08 Tom Tromey <tom@tromey.com>
3564 * expop.h (class sub_operation): New.
3565 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3566 (evaluate_subexp_standard): Update.
3568 2021-03-08 Tom Tromey <tom@tromey.com>
3570 * expop.h (class add_operation): New.
3571 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3572 (evaluate_subexp_standard): Update.
3574 2021-03-08 Tom Tromey <tom@tromey.com>
3576 * expop.h (class concat_operation): New.
3577 * eval.c (eval_op_concat): No longer static. Remove "op"
3579 (evaluate_subexp_standard): Update.
3581 2021-03-08 Tom Tromey <tom@tromey.com>
3583 * expop.h (class structop_member_operation)
3584 (class structop_mptr_operation): New.
3585 * eval.c (eval_op_member): No longer static.
3587 2021-03-08 Tom Tromey <tom@tromey.com>
3589 * expop.h (class structop_ptr_operation): New.
3590 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3593 2021-03-08 Tom Tromey <tom@tromey.com>
3595 * expop.h (class structop_base_operation)
3596 (class structop_operation): New.
3597 * eval.c (eval_op_structop_struct): No longer static.
3599 2021-03-08 Tom Tromey <tom@tromey.com>
3601 * expop.h (class complex_operation): New.
3603 2021-03-08 Tom Tromey <tom@tromey.com>
3605 * eval.c (eval_op_objc_selector): No longer static.
3606 * c-exp.h (class objc_selector_operation): New.
3608 2021-03-08 Tom Tromey <tom@tromey.com>
3610 * eval.c: Include c-exp.h.
3611 * c-exp.h (class objc_nsstring_operation): New.
3613 2021-03-08 Tom Tromey <tom@tromey.com>
3615 * c-lang.c (c_string_operation::evaluate): New method.
3616 * c-exp.h: New file.
3618 2021-03-08 Tom Tromey <tom@tromey.com>
3620 * expop.h (class ternop_cond_operation): New.
3621 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3623 2021-03-08 Tom Tromey <tom@tromey.com>
3625 * expop.h (class ternop_slice_operation): New.
3626 * eval.c (eval_op_ternop): No longer static.
3628 2021-03-08 Tom Tromey <tom@tromey.com>
3630 * expop.h (class string_operation): New.
3631 * eval.c (eval_op_string): No longer static.
3633 2021-03-08 Tom Tromey <tom@tromey.com>
3635 * expop.h (class internalvar_operation): New.
3636 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3638 2021-03-08 Tom Tromey <tom@tromey.com>
3640 * expop.h (class bool_operation): New.
3642 2021-03-08 Tom Tromey <tom@tromey.com>
3644 * expop.h (class register_operation): New.
3645 * eval.c (eval_op_register): No longer static.
3646 * ax-gdb.c (register_operation::do_generate_ax): New method.
3648 2021-03-08 Tom Tromey <tom@tromey.com>
3650 * expop.h (class last_operation): New.
3652 2021-03-08 Tom Tromey <tom@tromey.com>
3654 * expop.h (class func_static_var_operation): New.
3655 * eval.c (eval_op_func_static_var): No longer static.
3657 2021-03-08 Tom Tromey <tom@tromey.com>
3659 * expop.h (class var_entry_value_operation): New.
3660 * eval.c (eval_op_var_entry_value): No longer static.
3662 2021-03-08 Tom Tromey <tom@tromey.com>
3664 * expression.h (class operation) <set_outermost>: New method.
3665 * expop.h (class var_msym_value_operation): New.
3666 * eval.c (eval_op_var_msym_value): No longer static.
3667 (var_msym_value_operation::evaluate_for_address)
3668 (var_msym_value_operation::evaluate_for_sizeof)
3669 (var_msym_value_operation::evaluate_for_cast): New methods.
3670 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3673 2021-03-08 Tom Tromey <tom@tromey.com>
3675 * expop.h (class long_const_operation): New.
3676 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3678 2021-03-08 Tom Tromey <tom@tromey.com>
3680 * expop.h (class scope_operation): New.
3681 * eval.c (eval_op_scope): No longer static.
3682 (scope_operation::evaluate_for_address): New method.
3683 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3685 2021-03-08 Tom Tromey <tom@tromey.com>
3687 * expprint.c (float_const_operation::dump): New method.
3688 * expop.h (float_data): New typedef.
3689 (class float_const_operation): New.
3691 2021-03-08 Tom Tromey <tom@tromey.com>
3693 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3694 * ax-gdb.c (gen_expr_binop): New function.
3695 (gen_expr_structop): Likewise.
3697 2021-03-08 Tom Tromey <tom@tromey.com>
3699 * expprint.c (expr::dump_for_expression): New functions.
3700 * expop.h (dump_for_expression): New overloads.
3701 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3704 2021-03-08 Tom Tromey <tom@tromey.com>
3706 * expression.h (expr::operation): New class.
3707 (expr::make_operation): New function.
3708 (expr::operation_up): New typedef.
3709 * expop.h: New file.
3710 * eval.c (operation::evaluate_for_cast)
3711 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3713 * ax-gdb.c (operation::generate_ax): New method.
3715 2021-03-08 Tom Tromey <tom@tromey.com>
3717 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3718 (gen_expr_binop_rest): New overload.
3720 2021-03-08 Tom Tromey <tom@tromey.com>
3722 * eval.c (eval_multi_subscript): New function.
3723 (evaluate_subexp_standard): Use it.
3725 2021-03-08 Tom Tromey <tom@tromey.com>
3727 * ada-lang.c (ada_binop_exp): New function.
3728 (ada_evaluate_subexp): Use it.
3730 2021-03-08 Tom Tromey <tom@tromey.com>
3732 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3734 (ada_evaluate_subexp): Use it.
3736 2021-03-08 Tom Tromey <tom@tromey.com>
3738 * ada-lang.c (ada_binop_minmax): New function.
3739 (ada_evaluate_subexp): Use it.
3741 2021-03-08 Tom Tromey <tom@tromey.com>
3743 * ada-lang.c (ada_unop_atr): New function.
3744 (ada_evaluate_subexp): Use it.
3746 2021-03-08 Tom Tromey <tom@tromey.com>
3748 * ada-lang.c (ada_binop_in_bounds): New function.
3749 (ada_evaluate_subexp): Use it.
3751 2021-03-08 Tom Tromey <tom@tromey.com>
3753 * ada-lang.c (ada_ternop_slice): New function.
3754 (ada_evaluate_subexp): Use it.
3756 2021-03-08 Tom Tromey <tom@tromey.com>
3758 * ada-lang.c (ada_equal_binop): New function.
3759 (ada_evaluate_subexp): Use it.
3761 2021-03-08 Tom Tromey <tom@tromey.com>
3763 * ada-lang.c (ada_mult_binop): New function.
3764 (ada_evaluate_subexp): Use it.
3766 2021-03-08 Tom Tromey <tom@tromey.com>
3768 * ada-lang.c (ada_abs): New function.
3769 (ada_evaluate_subexp): Use it.
3771 2021-03-08 Tom Tromey <tom@tromey.com>
3773 * ada-lang.c (ada_atr_size): New function.
3774 (ada_evaluate_subexp): Use it.
3776 2021-03-08 Tom Tromey <tom@tromey.com>
3778 * ada-lang.c (ada_atr_tag): New function.
3779 (ada_evaluate_subexp): Use it.
3781 2021-03-08 Tom Tromey <tom@tromey.com>
3783 * ada-lang.c (ada_unop_in_range): New function.
3784 (ada_evaluate_subexp): Use it.
3786 2021-03-08 Tom Tromey <tom@tromey.com>
3788 * ada-lang.c (ada_unop_neg): New function.
3789 (ada_evaluate_subexp): Use it.
3791 2021-03-08 Tom Tromey <tom@tromey.com>
3793 * ada-lang.c (eval_ternop_in_range): New function.
3794 (ada_evaluate_subexp): Use it.
3796 2021-03-08 Tom Tromey <tom@tromey.com>
3798 * opencl-lang.c (eval_opencl_assign): New function.
3799 (evaluate_subexp_opencl): Use it.
3801 2021-03-08 Tom Tromey <tom@tromey.com>
3803 * eval.c (eval_op_objc_msgcall): New function.
3804 (evaluate_subexp_standard): Use it.
3806 2021-03-08 Tom Tromey <tom@tromey.com>
3808 * eval.c (eval_binop_assign_modify): New function.
3809 (evaluate_subexp_standard): Use it.
3811 2021-03-08 Tom Tromey <tom@tromey.com>
3813 * m2-lang.c (eval_op_m2_subscript): New function.
3814 (evaluate_subexp_modula2): Use it.
3816 2021-03-08 Tom Tromey <tom@tromey.com>
3818 * m2-lang.c (eval_op_m2_high): New function.
3819 (evaluate_subexp_modula2): Use it.
3821 2021-03-08 Tom Tromey <tom@tromey.com>
3823 * eval.c (evaluate_subexp_for_address_base): New function.
3824 (evaluate_subexp_for_address): Use it.
3825 (evaluate_subexp_for_sizeof_base): New function.
3826 (evaluate_subexp_for_sizeof): Use it.
3828 2021-03-08 Tom Tromey <tom@tromey.com>
3830 * rust-lang.c (eval_op_rust_structop): New function.
3831 (rust_evaluate_subexp): Use it.
3833 2021-03-08 Tom Tromey <tom@tromey.com>
3835 * rust-lang.c (eval_op_rust_struct_anon): New function.
3836 (rust_evaluate_subexp): Use it.
3838 2021-03-08 Tom Tromey <tom@tromey.com>
3840 * rust-lang.c (eval_op_rust_array): New function.
3841 (rust_evaluate_subexp): Use it.
3843 2021-03-08 Tom Tromey <tom@tromey.com>
3845 * rust-lang.c (eval_op_rust_complement): New function.
3846 (rust_evaluate_subexp): Use it.
3848 2021-03-08 Tom Tromey <tom@tromey.com>
3850 * rust-lang.c (eval_op_rust_ind): New function.
3851 (rust_evaluate_subexp): Use it.
3853 2021-03-08 Tom Tromey <tom@tromey.com>
3855 * rust-lang.c (rust_subscript): Change parameters.
3856 (rust_evaluate_subexp): Update.
3858 2021-03-08 Tom Tromey <tom@tromey.com>
3860 * rust-lang.c (rust_range): Change parameters.
3861 (rust_evaluate_subexp): Update.
3863 2021-03-08 Tom Tromey <tom@tromey.com>
3865 * f-lang.c (eval_op_f_allocated): New function.
3866 (evaluate_subexp_f): Use it.
3868 2021-03-08 Tom Tromey <tom@tromey.com>
3870 * f-lang.c (fortran_require_array): New function.
3871 (evaluate_subexp_f): Use it.
3873 2021-03-08 Tom Tromey <tom@tromey.com>
3875 * f-lang.c (eval_op_f_kind): New function.
3876 (evaluate_subexp_f): Use it.
3878 2021-03-08 Tom Tromey <tom@tromey.com>
3880 * f-lang.c (eval_op_f_cmplx): New function.
3881 (evaluate_subexp_f): Use it.
3883 2021-03-08 Tom Tromey <tom@tromey.com>
3885 * f-lang.c (eval_op_f_modulo): New function.
3886 (evaluate_subexp_f): Use it.
3888 2021-03-08 Tom Tromey <tom@tromey.com>
3890 * f-lang.c (eval_op_f_floor): New function.
3891 (evaluate_subexp_f): Use it.
3893 2021-03-08 Tom Tromey <tom@tromey.com>
3895 * f-lang.c (eval_op_f_ceil): New function.
3896 (evaluate_subexp_f): Use it.
3898 2021-03-08 Tom Tromey <tom@tromey.com>
3900 * f-lang.c (eval_op_f_mod): New function.
3901 (evaluate_subexp_f): Use it.
3903 2021-03-08 Tom Tromey <tom@tromey.com>
3905 * f-lang.c (eval_op_f_abs): New function.
3906 (evaluate_subexp_f): Use it.
3908 2021-03-08 Tom Tromey <tom@tromey.com>
3910 * eval.c (eval_op_type): New function.
3911 (evaluate_subexp_standard): Use it.
3913 2021-03-08 Tom Tromey <tom@tromey.com>
3915 * eval.c (eval_op_postdec): New function.
3916 (evaluate_subexp_standard): Use it.
3918 2021-03-08 Tom Tromey <tom@tromey.com>
3920 * eval.c (eval_op_postinc): New function.
3921 (evaluate_subexp_standard): Use it.
3923 2021-03-08 Tom Tromey <tom@tromey.com>
3925 * eval.c (eval_op_predec): New file.
3926 (evaluate_subexp_standard): Use it.
3928 2021-03-08 Tom Tromey <tom@tromey.com>
3930 * eval.c (eval_op_preinc): New function.
3931 (evaluate_subexp_standard): Use it.
3933 2021-03-08 Tom Tromey <tom@tromey.com>
3935 * eval.c (eval_op_memval): New function.
3936 (evaluate_subexp_standard): Use it.
3938 2021-03-08 Tom Tromey <tom@tromey.com>
3940 * eval.c (eval_op_alignof): New function.
3941 (evaluate_subexp_standard): Use it.
3943 2021-03-08 Tom Tromey <tom@tromey.com>
3945 * eval.c (eval_op_ind): New function.
3946 (evaluate_subexp_standard): Use it.
3948 2021-03-08 Tom Tromey <tom@tromey.com>
3950 * eval.c (eval_op_lognot): New function.
3951 (evaluate_subexp_standard): Use it.
3953 2021-03-08 Tom Tromey <tom@tromey.com>
3955 * eval.c (eval_op_complement): New function.
3956 (evaluate_subexp_standard): Use it.
3958 2021-03-08 Tom Tromey <tom@tromey.com>
3960 * eval.c (eval_op_neg): New function.
3961 (evaluate_subexp_standard): Use it.
3963 2021-03-08 Tom Tromey <tom@tromey.com>
3965 * eval.c (eval_op_plus): New function.
3966 (evaluate_subexp_standard): Use it.
3968 2021-03-08 Tom Tromey <tom@tromey.com>
3970 * eval.c (eval_op_repeat): New function.
3971 (evaluate_subexp_standard): Use it.
3973 2021-03-08 Tom Tromey <tom@tromey.com>
3975 * eval.c (eval_op_leq): New function.
3976 (evaluate_subexp_standard): Use it.
3978 2021-03-08 Tom Tromey <tom@tromey.com>
3980 * eval.c (eval_op_geq): New function.
3981 (evaluate_subexp_standard): Use it.
3983 2021-03-08 Tom Tromey <tom@tromey.com>
3985 * eval.c (eval_op_gtr): New function.
3986 (evaluate_subexp_standard): Use it.
3988 2021-03-08 Tom Tromey <tom@tromey.com>
3990 * eval.c (eval_op_less): New function.
3991 (evaluate_subexp_standard): Use it.
3993 2021-03-08 Tom Tromey <tom@tromey.com>
3995 * eval.c (eval_op_notequal): New function.
3996 (evaluate_subexp_standard): Use it.
3998 2021-03-08 Tom Tromey <tom@tromey.com>
4000 * eval.c (eval_op_equal): New function.
4001 (evaluate_subexp_standard): Use it.
4003 2021-03-08 Tom Tromey <tom@tromey.com>
4005 * eval.c (eval_op_subscript): New function.
4006 (evaluate_subexp_standard): Use it.
4008 2021-03-08 Tom Tromey <tom@tromey.com>
4010 * eval.c (eval_op_binary): New function.
4011 (evaluate_subexp_standard): Use it.
4013 2021-03-08 Tom Tromey <tom@tromey.com>
4015 * eval.c (eval_op_sub): New function.
4016 (evaluate_subexp_standard): Use it.
4018 2021-03-08 Tom Tromey <tom@tromey.com>
4020 * eval.c (eval_op_add): New function.
4021 (evaluate_subexp_standard): Use it.
4023 2021-03-08 Tom Tromey <tom@tromey.com>
4025 * eval.c (eval_op_member): New function.
4026 (evaluate_subexp_standard): Use it.
4028 2021-03-08 Tom Tromey <tom@tromey.com>
4030 * eval.c (eval_op_structop_ptr): New function.
4031 (evaluate_subexp_standard): Use it.
4033 2021-03-08 Tom Tromey <tom@tromey.com>
4035 * eval.c (eval_op_structop_struct): New function.
4036 (evaluate_subexp_standard): Use it.
4038 2021-03-08 Tom Tromey <tom@tromey.com>
4040 * eval.c (eval_op_ternop): New function.
4041 (evaluate_subexp_standard): Use it.
4043 2021-03-08 Tom Tromey <tom@tromey.com>
4045 * eval.c (eval_op_concat): New function.
4046 (evaluate_subexp_standard): Use it.
4048 2021-03-08 Tom Tromey <tom@tromey.com>
4050 * eval.c (eval_op_objc_selector): New function.
4051 (evaluate_subexp_standard): Use it.
4053 2021-03-08 Tom Tromey <tom@tromey.com>
4055 * eval.c (eval_op_string): New function.
4056 (evaluate_subexp_standard): Use it.
4058 2021-03-08 Tom Tromey <tom@tromey.com>
4060 * eval.c (eval_op_register): New function.
4061 (evaluate_subexp_standard): Use it.
4063 2021-03-08 Tom Tromey <tom@tromey.com>
4065 * eval.c (eval_op_func_static_var): New function.
4066 (evaluate_subexp_standard): Use it.
4068 2021-03-08 Tom Tromey <tom@tromey.com>
4070 * eval.c (eval_op_var_msym_value): New function.
4071 (evaluate_subexp_standard): Use it.
4073 2021-03-08 Tom Tromey <tom@tromey.com>
4075 * eval.c (eval_op_var_entry_value): New function.
4076 (evaluate_subexp_standard): Use it.
4078 2021-03-08 Tom Tromey <tom@tromey.com>
4080 * eval.c (eval_op_scope): New function.
4081 (evaluate_subexp_standard): Use it.
4083 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4086 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4088 2021-03-06 Tom Tromey <tom@tromey.com>
4090 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4091 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4092 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4093 (locate_dwz_sections, dwz_search_other_debugdirs)
4094 (dwarf2_get_dwz_file): Move to dwz.c.
4095 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4097 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4098 (dwarf2_get_dwz_file): Move from read.c.
4100 2021-03-06 Tom Tromey <tom@tromey.com>
4102 * debuginfod-support.h: Include scoped_fd.h.
4104 2021-03-06 Tom Tromey <tom@tromey.com>
4106 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4107 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4108 (get_abbrev_section_for_cu, read_attribute_value)
4109 (get_debug_line_section): Update.
4110 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4112 2021-03-06 Tom Tromey <tom@tromey.com>
4114 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4116 * dwarf2/read.c (section_is_p): Remove.
4117 (dwarf2_per_bfd::locate_sections)
4118 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4119 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4120 (dwarf2_locate_common_dwp_sections)
4121 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4124 2021-03-06 Tom Tromey <tom@tromey.com>
4126 * xcoffread.c: Include sect-names.h.
4127 * symfile.h (struct dwarf2_section_names, struct
4128 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4129 * dwarf2/sect-names.h: New file, from symfile.h.
4130 * dwarf2/read.c: Include sect-names.h.
4132 2021-03-06 Tom Tromey <tom@tromey.com>
4134 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4135 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4136 (abbrev_table::read): Update.
4137 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4138 (struct abbrev_info): Reformat.
4139 <attrs>: Now an array.
4140 (struct abbrev_table) <alloc_abbrev>: Remove.
4142 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4144 * ctfread.c (ctf_psymtab_add_enums): New function.
4145 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4147 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4149 * ctfread.c (read_func_kind_type): Set up function arguments.
4151 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4152 Andrew Burgess <andrew.burgess@embecosm.com>
4154 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4156 (riscv_csrset): New static global.
4157 (riscv_update_csrmap): New function.
4158 (riscv_iterate_over_regset_sections): Process CSRs.
4160 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4162 * riscv-tdep.c (riscv_feature_name_csr): Define.
4163 (riscv_feature_name_cpu): Define.
4164 (riscv_feature_name_fpu): Define.
4165 (riscv_feature_name_virtual): Define.
4166 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4167 (riscv_freg_feature): Use riscv_feature_name_fpu.
4168 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4169 (riscv_csr_feature): Use riscv_feature_name_csr.
4170 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4172 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4173 Craig Blackmore <craig.blackmore@embecosm.com>
4175 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4176 (ALLDEPFILES): Add riscv-none-tdep.c.
4177 * configure: Regenerate.
4178 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4180 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4181 * elf-none-tdep.c: New file.
4182 * elf-none-tdep.h: New file.
4183 * riscv-none-tdep.c: New file.
4185 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4186 Andrew Burgess <andrew.burgess@embecosm.com>
4188 * corelow.c: Add 'xml-tdesc.h' include.
4189 (core_target::read_description): Load the target description from
4190 the core file when possible.
4191 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4193 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4194 (gcore_elf_make_tdesc_note): New function.
4195 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4196 * linux-tdep.c (linux_make_corefile_notes): Add target description
4199 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4201 * Makefile.in (SFILES): Add gcore-elf.c.
4202 (HFILES_NO_SRCDIR): Add gcore-elf.h
4203 * configure: Regenerate.
4204 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4206 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4207 (struct fbsd_collect_regset_section_cb_data): Delete.
4208 (fbsd_collect_regset_section_cb): Delete.
4209 (fbsd_collect_thread_registers): Delete.
4210 (struct fbsd_corefile_thread_data): Delete.
4211 (fbsd_corefile_thread): Delete.
4212 (fbsd_make_corefile_notes): Call
4213 gcore_elf_build_thread_register_notes instead of the now deleted
4215 * gcore-elf.c: New file, the content was moved here from
4216 linux-tdep.c, functions were renamed and given minor cleanup.
4217 * gcore-elf.h: New file.
4218 * gcore.c (gcore_find_signalled_thread): Moved here from
4219 linux-tdep.c and given a new name. Minor cleanups.
4220 * gcore.h (gcore_find_signalled_thread): Declare.
4221 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4222 (struct linux_collect_regset_section_cb_data): Delete.
4223 (linux_collect_regset_section_cb): Delete.
4224 (linux_collect_thread_registers): Delete.
4225 (linux_corefile_thread): Call
4226 gcore_elf_build_thread_register_notes.
4227 (find_signalled_thread): Delete.
4228 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4230 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4233 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4234 process_stratum_target parameter,
4235 sparc_store_inferior_registers): update callers.
4236 * sparc-nat.c (sparc_fetch_inferior_registers,
4237 sparc_store_inferior_registers): Add process_stratum_target
4238 parameter. Switch current thread before calling
4239 sparc_supply_gregset / sparc_collect_rwindow.
4240 (sparc_store_inferior_registers): Likewise.
4241 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4242 (sparc32obsd_collect_uthread): Likewise.
4243 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4245 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4246 sparc64obsd_supply_uthread): Add assertion.
4248 2021-03-04 Tom Tromey <tromey@adacore.com>
4250 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4251 (aux_add_nonlocal_symbols): Update.
4252 (ada_add_block_symbols): Change "found_sym" to bool.
4254 2021-03-03 Tom Tromey <tromey@adacore.com>
4256 * ada-lang.c (ada_resolve_function): Update comment.
4257 (is_nonfunction, add_symbols_from_enclosing_procs)
4258 (remove_extra_symbols): Likewise.
4259 (struct match_data): Add constructor, initializers.
4260 (add_nonlocal_symbols): Remove memset.
4261 (aux_add_nonlocal_symbols): Update comment.
4262 (ada_add_block_renamings, add_nonlocal_symbols)
4263 (ada_add_all_symbols): Likewise.
4264 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4266 2021-03-02 Tom Tromey <tromey@adacore.com>
4268 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4269 (cast_to_gnat_encoded_fixed_point_type): Remove.
4270 (ada_value_cast, ada_evaluate_subexp): Update.
4271 (gnat_encoded_fixed_point_type_info)
4272 (ada_is_gnat_encoded_fixed_point_type)
4273 (gnat_encoded_fixed_point_delta)
4274 (gnat_encoded_fixed_point_scaling_factor): Remove.
4275 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4276 (gnat_encoded_fixed_point_delta)
4277 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4278 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4279 (ada_print_type): Update.
4280 * ada-valprint.c (ada_value_print_num): Update.
4281 * dwarf2/read.c (ada_get_gnat_encoded_number)
4282 (ada_get_gnat_encoded_ratio): New functions.
4283 (finish_fixed_point_type): Use them. Add parameters.
4284 (GNAT_FIXED_POINT_SUFFIX): New define.
4285 (gnat_encoded_fixed_point_type_info): New function.
4286 (read_base_type): Handle gnat encodings.
4288 2021-03-02 Tom Tromey <tromey@adacore.com>
4290 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4291 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4293 (GROW_VECT): Remove.
4294 (grow_vect): Remove.
4296 2021-03-02 Tom Tromey <tromey@adacore.com>
4298 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4299 * ada-lang.c (resolve_subexp): Update.
4300 (ada_resolve_function): Accept a vector.
4301 (is_nonfunction, add_defn_to_vec)
4302 (add_symbols_from_enclosing_procs): Likewise.
4303 (num_defns_collected, defns_collected): Remove.
4304 (remove_extra_symbols): Return a vector.
4305 (remove_irrelevant_renamings): Return void.
4306 (ada_add_local_symbols): Accept a vector.
4307 (struct match_data) <obstackp>: Remove.
4308 <resultp>: New member.
4309 (aux_add_nonlocal_symbols): Update.
4310 (ada_add_block_renamings, add_nonlocal_symbols)
4311 (ada_add_all_symbols): Accept a vector.
4312 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4314 (ada_lookup_symbol): Update.
4315 (ada_add_block_symbols): Accept a vector.
4316 (get_var_value, iterate_over_symbols): Update.
4317 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4320 2021-03-02 Tom Tromey <tromey@adacore.com>
4322 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4324 2021-03-02 Tom Tromey <tromey@adacore.com>
4326 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4329 (ada_pspace_data): Remove destructor.
4330 <sym_cache>: Now a unique_ptr.
4331 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4332 (ada_get_symbol_cache): Use 'new'.
4333 (ada_clear_symbol_cache): Rewrite.
4335 2021-03-02 Tom Tromey <tromey@adacore.com>
4337 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4340 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4343 * source.c (add_path): Skip empty dirnames.
4345 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4347 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4348 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4350 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4353 * target.c (target_mourn_inferior): Only compare pids in
4354 target_mourn_inferior.
4356 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4359 * remote.c (remote_target::start_remote): Ensure the single
4360 thread, automatically added for remote targets without the
4361 concept of threading, is initially in set to the "resumed"
4363 * remote.c (remote_target::add_current_inferior_and_thread):
4364 Add return value - return the main thread.
4366 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4368 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4369 (mi_tsv_created): Likewise.
4370 (mi_tsv_deleted): Likewise.
4372 2021-02-25 Tom de Vries <tdevries@suse.de>
4375 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4376 section_kind for &dwo_file->sections.info.
4378 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4381 * f-lang.c (fortran_argument_convert): Delete declaration.
4382 (fortran_prepare_argument): New function.
4383 (evaluate_subexp_f): Move logic to new function
4384 fortran_prepare_argument.
4386 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4388 * f-exp.y (f77_keywords): Add 'associated'.
4389 * f-lang.c (fortran_associated): New function.
4390 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4391 (operator_length_f): Likewise.
4392 (print_unop_or_binop_subexp_f): New function.
4393 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4394 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4395 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4396 (operator_check_f): Likewise.
4397 * std-operator.def: Add FORTRAN_ASSOCIATED.
4399 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4401 * f-exp.y (fortran_operators): Add ".xor.".
4403 2021-02-24 Tom de Vries <tdevries@suse.de>
4406 * dwarf2/attribute.c (attribute::form_is_signed): New function
4408 * dwarf2/attribute.h (attribute::as_signed): ... here.
4409 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4410 (attribute::form_is_signed): Declare.
4411 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4412 for DW_AT_decl_file.
4414 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4416 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4417 order for <sys/ptrace.h> and <asm/ptrace.h>.
4419 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4421 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4424 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4426 * exec.c (set_section_command): Move variable declarations into
4427 the function body, and use std::string instead of a fixed size
4430 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4432 * exec.c (exec_target::get_section_table): Delete member function.
4433 (section_table_read_available_memory): Use current_top_target, not
4434 just the exec_ops target.
4435 * target-delegates.c: Regenerate.
4436 * target.c (default_get_section_table): New function.
4437 * target.h (target_ops::get_section_table): Change default
4438 behaviour to call default_get_section_table.
4439 (default_get_section_table): Declare.
4441 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4443 * exec.c (exec_target::close): Call new clear_target_sections
4445 (program_space::add_target_sections): Update name of member
4447 (program_space::add_target_sections): Update name of member
4449 (program_space::remove_target_sections): Likewise.
4450 (exec_one_fork): Use new target_sections member function.
4451 (exec_target::get_section_table): Likewise.
4452 (exec_target::files_info): Likewise.
4453 (set_section_command): Likewise.
4454 (exec_set_section_address): Likewise.
4455 (exec_target::has_memory): Use new target_sections member
4457 * progspace.h (program_space::clear_target_sections): New member
4459 (program_space::target_sections): Rename member variable to
4460 m_target_sections, replace with a new member function.
4461 (program_space::m_target_sections): New member variable.
4462 * solib-dsbt.c (scan_dyntag): Use new member function.
4463 * solib-svr4.c (scan_dyntag): Likewise.
4465 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4467 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4469 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4470 (section_table_read_available_memory): Make local const.
4471 (exec_target::xfer_partial): Make local const.
4472 (print_section_info): Make parameter const.
4473 * gdb/exec.h (print_section_info): Likewise.
4474 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4476 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4478 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4480 * gdb/s390-tdep.c (s390_load): Likewise.
4481 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4482 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4483 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4485 (target_debug_print_const_target_section_table_p): ...this.
4486 * gdb/target-delegates.c: Regenerate.
4487 * gdb/target.c (target_get_section_table): Make return type const.
4488 (target_section_by_addr): Likewise. Also make some locals const.
4489 (memory_xfer_partial_1): Make some locals const.
4490 * gdb/target.h (struct target_ops) <get_section_table>: Make
4492 (target_section_by_addr): Likewise.
4493 (target_get_section_table): Likewise.
4495 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4497 * NEWS: Mention new 'maint info target-sections' command.
4498 * maint.c (maintenance_info_target_sections): New function.
4499 (_initialize_maint_cmds): Register new command.
4501 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4503 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4504 (riscv_features_from_bfd): ...this. Change parameter type to
4505 'bfd*', and update as required.
4506 (riscv_find_default_target_description): Update call to
4507 riscv_features_from_bfd. Select a default xlen based on
4509 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4511 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4513 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4514 dynamic types in UNOP_IND.
4516 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4519 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4521 (~dwarf2_queue_guard): Clear queue.
4522 (queue_comp_unit): Assert that queue is
4524 (process_queue): Adjust.
4525 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4527 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4530 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4531 to decide whether or not to enqueue it for expansion.
4532 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4533 after calling maybe_queue_comp_unit.
4535 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4537 * linux-nat.c (linux_nat_filter_event): Return void.
4539 2021-02-22 Tom Tromey <tromey@adacore.com>
4541 * solib-svr4.c (enable_break): Update.
4542 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4544 (target_bfd_reopen): Change parameter type.
4545 * bfd-target.h (target_bfd_reopen): Change parameter type.
4547 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4549 * thread.c (add_thread_silent): Add assert.
4550 (find_thread_ptid): Add assert.
4552 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4555 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4556 (target_unpush_up): Likewise.
4557 * procfs.c (procfs_target::attach): Push target early. Use
4558 target_unpush_up to unpush target in case of error.
4559 * target.h (struct target_unpusher): Move here.
4560 (target_unpush_up): Likewise.
4562 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4564 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4565 (which in turn includes <gnulib/config.h>) before include
4568 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4571 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4572 (decode_j_type_insn): Likewise.
4573 (decode_cj_type_insn): Likewise.
4574 (decode_b_type_insn): Likewise.
4577 2021-02-18 Tom Tromey <tom@tromey.com>
4579 * expression.h (struct expression) <evaluate>: Declare method.
4580 * eval.c (evaluate_subexp): Simplify.
4581 (expression::evaluate): New method.
4582 (evaluate_expression, evaluate_type): Use expression::evaluate.
4584 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4586 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4588 (ada_lookup_name_info): Likewise.
4590 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4592 * aclocal.m4: Regenerate.
4594 2021-02-12 Tom de Vries <tdevries@suse.de>
4597 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4598 (lin_thread_signals): New static var.
4599 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4601 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4602 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4604 * linux-thread-db.c (check_thread_signals): Use
4605 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4607 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4609 * f-exp.y (f77_keywords): Add allocated.
4610 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4611 (operator_length_f): Likewise.
4612 (print_subexp_f): Likewise.
4613 (dump_subexp_body_f): Likewise.
4614 (operator_check_f): Likewise.
4615 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4617 2021-02-11 Tom de Vries <tdevries@suse.de>
4620 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4621 Return true for DW_FORM_strx.
4623 2021-02-11 Tom Tromey <tromey@adacore.com>
4626 * parse.c (write_exp_symbol_reference): Write sym.block.
4628 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4630 * NEWS: Mention changes to 'maint info sections'.
4631 * maint.c (match_substring): Return a bool, fix whitespace issue.
4632 (struct single_bfd_flag_info): New struct.
4633 (bfd_flag_info): New static global.
4634 (match_bfd_flags): Return a bool, use bfd_flag_info.
4635 (print_bfd_flags): Use bfd_flag_info.
4636 (maint_print_section_info): Delete trailing whitespace.
4637 (struct maint_info_sections_opts): New struct.
4638 (maint_info_sections_option_defs): New static global.
4639 (maint_info_sections_completer): New function.
4640 (maintenance_info_sections): Use option parsing mechanism.
4641 (_initialize_maint_cmds): Update command help text for 'maint info
4642 sections' and register a command completer.
4644 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4646 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4647 functionality merged into...
4648 (maint_print_all_sections): ...this new function.
4649 (maintenance_info_sections): Make use of maint_print_all_sections,
4650 allow all objects to be printed even where there's no executable.
4652 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4654 * breakpoint.c (resolve_sal_pc): Make use of
4655 bound_minimal_symbol::obj_section.
4656 * maint.c (maintenance_translate_address): Likewise.
4657 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4658 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4660 * printcmd.c (info_address_command): Make use of
4661 bound_minimal_symbol::obj_section.
4663 2021-02-11 Alan Modra <amodra@gmail.com>
4665 * arm-symbian-tdep.c: Delete.
4666 * NEWS: Mention arm-symbian removal.
4667 * Makefile.in: Remove arm-symbian-tdep entries.
4668 * configure.tgt: Remove arm*-*-symbianelf*.
4669 * doc/gdb.texinfo: Remove mention of SymbianOS.
4670 * osabi.c (gdb_osabi_names): Remove "Symbian".
4671 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4672 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4673 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4675 * testsuite/gdb.base/dup-sect.exp: Likewise.
4676 * testsuite/gdb.base/long_long.exp: Likewise.
4677 * testsuite/gdb.base/solib-weak.exp: Likewise.
4678 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4679 * testsuite/gdb.python/py-section-script.exp: Likewise.
4680 * testsuite/lib/dwarf.exp: Likewise.
4681 * testsuite/lib/gdb.exp: Likewise.
4683 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4685 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4686 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4687 (one_or_two_args): New pattern.
4688 (f77_keywords): Add lbound and ubound.
4689 * f-lang.c (fortran_bounds_all_dims): New function.
4690 (fortran_bounds_for_dimension): New function.
4691 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4692 (operator_length_f): Likewise.
4693 (print_subexp_f): Likewise.
4694 (dump_subexp_body_f): Likewise.
4695 (operator_check_f): Likewise.
4696 * std-operator.def (FORTRAN_LBOUND): Define.
4697 (FORTRAN_UBOUND): Define.
4699 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4701 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4702 and set_section_index member functions where appropriate.
4703 * coffread.c (coff_symtab_read): Likewise.
4704 (process_coff_symbol): Likewise.
4705 * ctfread.c (set_symbol_address): Likewise.
4706 * dwarf2/read.c (add_partial_symbol): Likewise.
4707 (var_decode_location): Likewise.
4708 * language.c: Likewise.
4709 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4710 (compact_minimal_symbols): Likewise.
4711 (minimal_symbol_upper_bound): Likewise.
4712 * objfiles.c (relocate_one_symbol): Likewise.
4713 * psympriv.h (partial_symbol::obj_section): Likewise.
4714 (partial_symbol::address): Likewise.
4715 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4716 * stabsread.c (scan_file_globals): Likewise.
4717 * symmisc.c (dump_msymbols): Likewise.
4718 * symtab.c (general_symbol_info::obj_section): Likewise.
4719 (fixup_section): Likewise.
4720 (get_msymbol_address): Likewise.
4721 * symtab.h (general_symbol_info::section): Rename to...
4722 (general_symbol_info::m_section): ...this.
4723 (general_symbol_info::set_section_index): New member function.
4724 (general_symbol_info::section_index): Likewise.
4725 (SYMBOL_SECTION): Delete.
4726 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4727 set_section_index member functions where appropriate.
4728 (MSYMBOL_SECTION): Delete.
4729 (symbol::symbol): Update to initialize 'm_section'.
4730 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4731 (process_xcoff_symbol): Likewise.
4733 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4735 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4736 MSYMBOL_OBJ_SECTION.
4737 * findvar.c (language_defn::read_var_value): Likewise.
4738 * infcmd.c (jump_command): Likewise.
4739 * linespec.c (minsym_found): Likewise.
4740 * maint.c (maintenance_translate_address): Likewise.
4741 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4742 (minimal_symbol_upper_bound): Likewise.
4743 * parse.c (find_minsym_type_and_address): Likewise.
4744 (operator_check_standard): Likewise.
4745 * printcmd.c (info_address_command): Likewise.
4746 * symmisc.c (dump_msymbols): Likewise.
4747 (print_symbol): Likewise.
4748 * symtab.c (general_symbol_info::obj_section): Define new
4750 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4751 (find_pc_sect_compunit_symtab): Likewise.
4752 (find_function_start_sal): Likewise.
4753 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4754 MSYMBOL_OBJ_SECTION.
4755 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4757 (SYMBOL_OBJ_SECTION): Delete.
4758 (MSYMBOL_OBJ_SECTION): Delete.
4760 2021-02-09 Tom Tromey <tom@tromey.com>
4762 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4764 2021-02-09 Tom de Vries <tdevries@suse.de>
4767 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4768 construct an array type. Add assert to ensure that element_type is
4771 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4773 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4774 (gcore_collect_regset_section_cb): Delete.
4775 (gcore_collect_thread_registers): Delete.
4776 (gcore_build_thread_register_notes): Delete.
4777 (gcore_find_signalled_thread): Delete.
4778 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4779 'gdbarch' and 'thread_info' declarations.
4780 (gcore_build_thread_register_notes): Delete declaration.
4781 (gcore_find_signalled_thread): Likewise.
4782 * fbsd-tdep.c: Remove 'gcore.h' include.
4783 (struct fbsd_collect_regset_section_cb_data): New struct.
4784 (fbsd_collect_regset_section_cb): New function.
4785 (fbsd_collect_thread_registers): New function.
4786 (struct fbsd_corefile_thread_data): New struct.
4787 (fbsd_corefile_thread): New function.
4788 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4789 * linux-tdep.c: Remove 'gcore.h' include.
4790 (struct linux_collect_regset_section_cb_data): New struct.
4791 (linux_collect_regset_section_cb): New function.
4792 (linux_collect_thread_registers): New function.
4793 (linux_corefile_thread): Call Linux specific code.
4794 (find_signalled_thread): New function.
4795 (linux_make_corefile_notes): Call find_signalled_thread.
4797 2021-02-09 Tom Tromey <tromey@adacore.com>
4799 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4801 * value.c (value_contents_copy_raw): Now static.
4802 * value.h (value_contents_copy_raw): Don't declare.
4804 2021-02-09 Tom Tromey <tromey@adacore.com>
4806 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4809 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4812 * arc-linux-tdep.c (handle_atomic_sequence): New.
4813 (arc_linux_software_single_step): Call handle_atomic_sequence().
4815 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4817 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4819 (REQUIRE_WINDOW): Call is_valid member function.
4820 (REQUIRE_WINDOW_FOR_SETTER): New define.
4821 (gdbpy_tui_is_valid): Call is_valid member function.
4822 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4823 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4825 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4826 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4829 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4831 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4832 for the title is not nullptr.
4834 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4836 * tui-layout.c (saved_tui_windows): Delete.
4837 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4838 call new get_windows member function instead.
4839 (tui_get_window_by_name): Check in tui_windows.
4840 (tui_layout_window::apply): Don't add to tui_windows.
4841 * tui-layout.h (tui_layout_base::get_windows): New member function.
4842 (tui_layout_window::get_windows): Likewise.
4843 (tui_layout_split::get_windows): Likewise.
4845 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4847 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4848 of the window objects.
4850 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4852 * python/python.c (gdbpy_print_stack): Reformat an error message.
4854 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4856 * tui/tui-interp.c (tui_command_line_handler): New function.
4857 (tui_interp::resume): Register tui_command_line_handler as the
4859 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4861 (tui_getc_1): Delete handling of '\n' and '\r'.
4862 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4864 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4866 * tui/tui-regs.c (tui_data_window::display_registers_from):
4867 Mark invisible register sub windows.
4868 (tui_data_window::check_register_values): Ignore invisible
4869 register sub windows.
4871 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4873 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4874 n_spaces with a negative value.
4876 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4878 * tui/tui-regs.c (tui_data_window::display_registers_from):
4879 Add refresh_window call.
4881 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4883 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4885 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4887 * symmisc.c (std_in, std_out, std_err): Remove.
4888 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4890 2021-02-05 Tom de Vries <tdevries@suse.de>
4892 PR breakpoints/27330
4893 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4894 glibc object file has debug info.
4896 2021-02-05 Tom de Vries <tdevries@suse.de>
4899 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4901 2021-02-05 Tom de Vries <tdevries@suse.de>
4903 PR breakpoints/27313
4904 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4907 2021-02-05 Tom Tromey <tom@tromey.com>
4909 * compile/compile-c-support.c (get_compile_context)
4910 (c_get_compile_context, cplus_get_compile_context): Change return
4912 * language.c (language_defn::get_compile_instance): New method.
4913 * language.h (language_defn::get_compile_instance): Change return
4914 type. No longer inline.
4915 * c-lang.c (c_language::get_compile_instance): Change return type.
4916 (cplus_language::get_compile_instance): Change return type.
4917 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4919 * compile/compile.c (compile_to_object): Update.
4921 2021-02-05 Tom Tromey <tom@tromey.com>
4923 * parser-defs.h (write_exp_symbol_reference): Declare.
4924 * parse.c (write_exp_symbol_reference): New function.
4925 * p-exp.y (variable): Use write_exp_symbol_reference.
4926 * m2-exp.y (variable): Use write_exp_symbol_reference.
4927 * f-exp.y (variable): Use write_exp_symbol_reference.
4928 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4929 * c-exp.y (variable): Use write_exp_symbol_reference.
4931 2021-02-05 Tom de Vries <tdevries@suse.de>
4934 * valarith.c (complex_binop): Throw an error if complex type can't
4937 2021-02-05 Tom de Vries <tdevries@suse.de>
4940 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4943 2021-02-05 Tom de Vries <tdevries@suse.de>
4945 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4947 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4949 * configure.tgt (riscv*-*-*): Set gdb_sim.
4951 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4953 * target.c (target_is_non_stop_p): Return bool.
4954 * target.h (target_is_non_stop_p): Return bool.
4956 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4958 * record-full.c (record_full_async_inferior_event_handler):
4959 Don't clear async event handler.
4960 (record_full_base_target::wait): Clear async event handler at
4963 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4965 * record-btrace.c (record_btrace_handle_async_inferior_event):
4966 Don't clear async event handler.
4967 (record_btrace_target::wait): Clear async event handler at
4970 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4972 * remote.c (remote_target::wait): Clear async event handler at
4973 beginning, mark if needed at the end.
4974 (remote_async_inferior_event_handler): Don't set or clear async
4977 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4979 * async-event.h (async_event_handler_func): Add documentation.
4980 * async-event.c (check_async_event_handlers): Don't clear
4981 async_event_handler ready flag.
4982 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4984 * record-btrace.c (record_btrace_handle_async_inferior_event):
4986 * record-full.c (record_full_async_inferior_event_handler):
4988 * remote-notif.c (remote_async_get_pending_events_handler):
4990 * remote.c (remote_async_inferior_event_handler): Likewise.
4992 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4994 * infrun.c (handle_inferior_event): Move stop_soon variable to
4997 2021-02-03 Pedro Alves <pedro@palves.net>
4999 * infcmd.c (detach_command): Hold strong reference to target, and
5000 if all-stop on entry, restart threads on exit.
5001 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5002 (restart_stepped_thread): ... this new function. Also handle
5004 (restart_after_all_stop_detach): New function.
5005 * infrun.h (restart_after_all_stop_detach): Declare.
5007 2021-02-03 Pedro Alves <pedro@palves.net>
5009 * infrun.c (struct step_over_info): Initialize fields.
5010 (prepare_for_detach): Handle ongoing in-line step over.
5012 2021-02-03 Pedro Alves <pedro@palves.net>
5014 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5016 * remote.c (remote_target::remote_detach_1): ... and here ...
5017 * target.c (target_detach): ... instead of here.
5018 * target.h (target_ops::detach): Add comment.
5020 2021-02-03 Pedro Alves <pedro@palves.net>
5022 * infrun.c (struct wait_one_event): Move higher up.
5023 (prepare_for_detach): Abort in-progress displaced steps instead of
5024 letting them complete.
5025 (handle_one): If the inferior is detaching, don't add the thread
5026 back to the global step-over chain.
5027 (restart_threads): Don't restart threads if detaching.
5028 (handle_signal_stop): Remove inferior::detaching reference.
5030 2021-02-03 Pedro Alves <pedro@palves.net>
5032 * infrun.c (prepare_for_detach): Don't release scoped_restore
5035 2021-02-03 Pedro Alves <pedro@palves.net>
5037 * infrun.c (handle_one): New function, factored out from ...
5038 (stop_all_threads): ... here.
5040 2021-02-03 Pedro Alves <pedro@palves.net>
5042 * remote.c (remote_notif_stop_ack): Don't error out on
5043 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5044 (remote_target::discard_pending_stop_replies): Don't delete
5045 in-flight notification; instead, clear its contents.
5047 2021-02-03 Pedro Alves <pedro@palves.net>
5049 * remote.c (extended_remote_target::attach): Set target async in
5050 the target-non-stop path too.
5052 2021-02-03 Pedro Alves <pedro@palves.net>
5055 * infrun.c (handle_signal_stop): Move main context_switch call
5056 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5058 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5060 * NEWS (Changed commands): Add entry for the behavior change of
5061 the inferior command.
5062 * inferior.c (inferior_command): When no argument is given to the
5063 inferior command, display info about the currently selected
5066 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5068 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5070 (read_attribute_reprocess): Adjust.
5072 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5074 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5075 <gnu_ranges_base>: ... this...
5076 <rnglists_base>: ... and this.
5077 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5078 <gnu_ranges_base>: ... this...
5079 <rnglists_base>: ... and this.
5080 (read_cutu_die_from_dwo): Adjust
5081 (dwarf2_get_pc_bounds): Adjust
5082 (dwarf2_record_block_ranges): Adjust.
5083 (read_full_die_1): Adjust
5084 (partial_die_info::read): Adjust.
5085 (read_rnglist_index): Adjust.
5087 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5090 * dwarf2/read.c (read_loclists_rnglists_header): Add
5091 header_offset parameter and use it.
5092 (read_loclist_index): Read header of the current contribution,
5093 not the one at the beginning of the section.
5094 (read_rnglist_index): Likewise.
5096 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5099 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5100 requires_reprocessing flag.
5101 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5103 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5104 and DW_FORM_loclistx.
5105 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5106 instead of set_address for DW_FORM_loclistx and
5109 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5111 * dwarf2/read.c (read_loclist_index): Remove bound check for
5113 (read_rnglist_index): Likewise.
5115 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5117 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5120 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5122 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5124 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5126 * dwarf2/read.c (read_loclist_index): Change complaints into
5129 2021-02-02 Tom de Vries <tdevries@suse.de>
5132 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5135 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5137 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5138 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5139 here from linux-tdep.c and given a new name. Minor cleanups.
5140 (gcore_collect_regset_section_cb): Likewise.
5141 (gcore_collect_thread_registers): Likewise.
5142 (gcore_build_thread_register_notes): Likewise.
5143 (gcore_find_signalled_thread): Likewise.
5144 * gcore.h (gcore_build_thread_register_notes): Declare.
5145 (gcore_find_signalled_thread): Declare.
5146 * fbsd-tdep.c: Add 'gcore.h' include.
5147 (struct fbsd_collect_regset_section_cb_data): Delete.
5148 (fbsd_collect_regset_section_cb): Delete.
5149 (fbsd_collect_thread_registers): Delete.
5150 (struct fbsd_corefile_thread_data): Delete.
5151 (fbsd_corefile_thread): Delete.
5152 (fbsd_make_corefile_notes): Call
5153 gcore_build_thread_register_notes instead of the now deleted
5155 * linux-tdep.c: Add 'gcore.h' include.
5156 (struct linux_collect_regset_section_cb_data): Delete.
5157 (linux_collect_regset_section_cb): Delete.
5158 (linux_collect_thread_registers): Delete.
5159 (linux_corefile_thread): Call
5160 gcore_build_thread_register_notes.
5161 (find_signalled_thread): Delete.
5162 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5164 2021-01-29 Tom de Vries <tdevries@suse.de>
5166 PR breakpoints/26063
5167 * infrun.c (process_event_stop_test): Reset
5168 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5171 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5173 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5174 assert. Extend the header comment.
5176 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5178 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5179 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5180 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5181 (tui_locator_win_info_ptr): Delete declaration.
5182 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5183 (tui_disasm_window::set_contents): Fetch state from tui_location
5185 (tui_get_begin_asm_address): Likewise.
5186 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5188 (get_locator_window): Delete.
5189 (initialize_known_windows): Treat locator window just like all the
5191 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5192 (tui_source_window::set_contents): Fetch state from tui_location
5194 (tui_source_window::showing_source_p): Likewise.
5195 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5197 (tui_locator_win_info_ptr): Delete.
5198 (tui_locator_window::make_status_line): Fetch state from
5199 tui_location global.
5200 (tui_locator_window::rerender): Remove check of 'handle',
5201 reindent function body.
5202 (tui_locator_window::set_locator_fullname): Delete.
5203 (tui_locator_window::set_locator_info): Delete.
5204 (tui_update_locator_fullname): Delete.
5205 (tui_show_frame_info): Likewise.
5206 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5207 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5208 tui/tui-location.h and renamed to
5209 tui_location_tracker::set_location.
5210 (tui_locator_window::set_locator_fullname): Moved to
5211 tui/tui-location.h and renamed to
5212 tui_location_tracker::set_fullname.
5213 (tui_locator_window::full_name): Delete.
5214 (tui_locator_window::proc_name): Delete.
5215 (tui_locator_window::line_no): Delete.
5216 (tui_locator_window::addr): Delete.
5217 (tui_locator_window::gdbarch): Delete.
5218 (tui_update_locator_fullname): Delete declaration.
5219 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5221 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5222 (tui_display_main): Call function on tui_location directly.
5223 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5224 * tui/tui-location.c: New file.
5225 * tui/tui-location.h: New file.
5227 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5229 * gdbtypes.h (get_type_arch): Rename to...
5230 (struct type) <arch>: ... this, update all users.
5232 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5234 * gdbtypes.h (struct type) <arch>: Rename to...
5235 <arch_owner>: ... this, update all users.
5236 <objfile>: Rename to...
5237 <objfile_owner>: ... this, update all users.
5239 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5241 * gdbcmd.h (execute_command_to_string): Update comment.
5242 * top.c (execute_command_to_string): Update header comment.
5244 2021-01-28 Tom de Vries <tdevries@suse.de>
5246 PR breakpoints/27205
5247 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5248 (create_longjmp_master_breakpoint_names): New function, factored out
5250 (create_longjmp_master_breakpoint): ... here. Only try to install
5251 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5252 breakpoint in libc.so failed.
5254 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5257 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5258 unique_ptr is released when the wrapped pointer is kept for later
5261 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5263 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5264 BLR and BR instructions.
5265 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5266 (enum aarch64_masks): New.
5268 2021-01-26 Tom Tromey <tromey@adacore.com>
5270 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5271 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5272 (windows_init_thread_list, windows_nat::handle_load_dll)
5273 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5274 (windows_nat_target::resume)
5275 (windows_nat_target::get_windows_debug_event)
5276 (windows_nat_target::interrupt, windows_xfer_memory)
5277 (windows_nat_target::close): Update.
5278 * nat/windows-nat.c (DEBUG_EVENTS): Use
5279 debug_prefixed_printf_cond.
5280 (matching_pending_stop, fetch_pending_stop)
5281 (continue_last_debug_event): Update.
5283 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5285 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5286 elfcore_write_file_note.
5288 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5290 * arc-tdep.c (arc_add_reggroups): New function.
5291 (arc_gdbarch_init): Call arc_add_reggroups.
5293 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5295 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5297 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5298 Simon Marchi <simon.marchi@polymtl.ca>
5299 Tom de Vries <tdevries@suse.de>
5301 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5304 2021-01-25 Tom Tromey <tromey@adacore.com>
5306 * dwarf2/read.c (get_mpz): New function.
5307 (get_dwarf2_rational_constant): Use it.
5309 2021-01-25 Tom Tromey <tromey@adacore.com>
5311 * ada-lang.c (resolve_subexp): Handle array context.
5313 2021-01-23 Tom Tromey <tom@tromey.com>
5316 * compile/compile-loc2c.c (note_register): New function.
5317 (pushf_register_address, pushf_register): Use it.
5319 2021-01-23 Tom Tromey <tom@tromey.com>
5321 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5322 Change type of "registers_used".
5323 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5324 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5325 (locexpr_generate_c_location, loclist_generate_c_location): Change
5326 type of "registers_used".
5327 * compile/compile.h (compile_dwarf_expr_to_c)
5328 (compile_dwarf_bounds_to_c): Update.
5329 * compile/compile-loc2c.c (pushf_register_address)
5330 (pushf_register, do_compile_dwarf_expr_to_c)
5331 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5332 of "registers_used".
5333 * compile/compile-c.h (generate_c_for_variable_locations):
5335 * compile/compile-c-symbols.c (generate_vla_size)
5336 (generate_c_for_for_one_variable): Change type of
5338 (generate_c_for_variable_locations): Return std::vector.
5339 * compile/compile-c-support.c (generate_register_struct): Change
5340 type of "registers_used".
5343 2021-01-23 Tom Tromey <tom@tromey.com>
5345 * compile/compile-internal.h (class compile_instance)
5346 <set_arguments>: Change return type.
5347 * compile/compile.c (compile_to_object): Remove call to reset.
5348 (compile_instance::set_arguments): Change return type.
5350 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5352 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5353 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5355 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5357 * Makefile.in (SELFTESTS_SRCS): Add
5358 unittests/gdb_tilde_expand-selftests.c.
5359 * unittests/gdb_tilde_expand-selftests.c: New file.
5361 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5364 * NEWS: Mention new command.
5365 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5366 (version_style): Define.
5367 (cli_style_option::cli_style_option): Add intensity parameter, and
5369 (_initialize_cli_style): Register version style set/show commands.
5370 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5371 (version_style): Declare.
5372 * top.c (print_gdb_version): Use version_stype, and styled_string
5373 to print the GDB version string.
5375 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5377 * utils.c (emit_style_escape): Only emit an escape sequence if the
5378 requested style is different than the current applied style.
5379 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5380 current applied_style.
5381 (fputs_styled): Remove is_default check.
5382 (fputs_styled_unfiltered): Likewise.
5383 (vfprintf_styled_no_gdbfmt): Likewise.
5385 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5387 * remote.h (remote_debug_printf): New.
5388 (remote_debug_printf_nofunc): New.
5389 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5390 * remote.c: Use above macros throughout file.
5392 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5394 * remote.h (remote_debug): Change to bool.
5395 * remote.c (remote_debug): Change to bool.
5396 (_initialize_remote): Adjust.
5398 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5400 * target.h (remote_debug): Move to...
5401 * remote.h (remote_debug): ... here.
5402 * top.c (remote_debug): Move to...
5403 * remote.c (remote_debug): ... here.
5404 * remote-sim.c: Include remote.h.
5406 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5408 * cli/cli-cmds.c (show_remote_debug): Remove.
5409 (show_remote_timeout): Remove.
5410 (_initialize_cli_cmds): Don't register commands.
5411 * remote.c (show_remote_debug): Move here.
5412 (show_remote_timeout): Move here.
5413 (_initialize_remote): Register commands.
5415 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5417 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5418 type::objfile method instead.
5420 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5422 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5423 use the type::is_objfile_owned method.
5425 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5427 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5428 (TYPE_OWNER): Remove.
5429 (TYPE_OBJFILE): Adjust.
5430 (struct main_type) <flag_objfile_owned>: Rename to...
5431 <m_flag_objfile_owned>: ... this.
5432 <owner>: Rename to...
5433 <m_owner>: ... this.
5434 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5436 (TYPE_ALLOC): Adjust.
5437 * gdbtypes.c (alloc_type): Adjust.
5438 (alloc_type_arch): Adjust.
5439 (alloc_type_copy): Adjust.
5440 (get_type_arch): Adjust.
5441 (smash_type): Adjust.
5442 (lookup_array_range_type): Adjust.
5443 (recursive_dump_type): Adjust.
5444 (copy_type_recursive): Adjust.
5445 * compile/compile-c-types.c (convert_func): Adjust.
5446 (convert_type_basic): Adjust.
5447 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5450 (language_arch_info::type_and_symbol::alloc_type_symbol):
5453 2021-01-21 Luis Machado <luis.machado@linaro.org>
5455 * coffread.c (enter_linenos): Passing string to complaint.
5456 * valops.c (value_assign): Make array view.
5458 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5460 * auto-load.h (debug_auto_load): Move here.
5461 (auto_load_debug_printf): New.
5462 * auto-load.c: Use auto_load_debug_printf.
5463 (debug_auto_load): Move to header.
5464 * linux-thread-db.c (try_thread_db_load): Use
5465 auto_load_debug_printf.
5466 * main.c (captured_main_1): Likewise.
5468 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5470 * f-valprint.c (f77_array_offset_tbl): Remove.
5472 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5474 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5476 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5478 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5481 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5484 * python/py-breakpoint.c (bppy_get_location): Handle
5485 bp_hardware_breakpoint.
5486 (bppy_init): Likewise.
5487 (gdbpy_breakpoint_created): Likewise.
5489 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5491 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5493 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5495 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5496 (_initialize_gdb_bfd): Adjust.
5498 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5501 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5503 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5505 * dwarf2/read.c (follow_die_offset): Add logging.
5506 (dwarf2_per_objfile::age_comp_units): Add logging.
5508 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5510 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5511 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5512 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5513 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5514 * arm-tdep.c (struct frame_unwind): Make static.
5515 * auto-load.c (auto_load_safe_path_vec): Make static.
5516 * csky-tdep.c (csky_stub_unwind): Make static.
5517 * gdbarch.c (gdbarch_data_registry): Make static.
5518 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5519 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5520 * i386-tdep.c (i386_frame_setup_skip_insns,
5521 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5523 * infrun.c (observer_mode): Make static.
5524 * linux-nat.c (sigchld_action): Make static.
5525 * linux-thread-db.c (thread_db_list): Make static.
5526 * maint-test-options.c (maintenance_test_options_list):
5527 * mep-tdep.c (mep_csr_registers): Make static.
5528 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5529 (stats): Make static.
5530 * nat/linux-osdata.c (struct osdata_type): Make static.
5531 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5532 * progspace.c (last_program_space_num): Make static.
5533 * python/py-param.c (struct parm_constant): Remove struct type
5535 (parm_constants): Make static.
5536 * python/py-record-btrace.c (btpy_list_methods): Make static.
5537 * python/py-record.c (recpy_gap_type): Make static.
5538 * record.c (record_goto_cmdlist): Make static.
5539 * regcache.c (regcache_descr_handle): Make static.
5540 * registry.h (DEFINE_REGISTRY): Make definition static.
5541 * symmisc.c (std_in, std_out, std_err): Make static.
5542 * top.c (previous_saved_command_line): Make static.
5543 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5545 * unittests/command-def-selftests.c (nr_duplicates,
5546 nr_invalid_prefixcmd, lists): Make static.
5547 * unittests/observable-selftests.c (test_notification): Make
5549 * unittests/optional/assignment/1.cc (counter): Make static.
5550 * unittests/optional/assignment/2.cc (counter): Make static.
5551 * unittests/optional/assignment/3.cc (counter): Make static.
5552 * unittests/optional/assignment/4.cc (counter): Make static.
5553 * unittests/optional/assignment/5.cc (counter): Make static.
5554 * unittests/optional/assignment/6.cc (counter): Make static.
5556 2021-01-20 Joel Sherrill <joel@rtems.org>
5559 * remote.c (struct remote_thread_info) <resume_state>: Rename
5561 <get_resume_state>: ... this.
5562 (remote_target::resume): Adjust.
5563 (remote_target::commit_resume): Adjust.
5564 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5566 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5567 Tom Tromey <tom@tromey.com>
5569 * stap-probe.c (stap_parse_single_operand): Handle '!'
5571 (stap_parse_argument_conditionally): Likewise.
5572 Skip spaces after processing open-parenthesis sub-expression.
5573 (stap_parse_argument_1): Skip spaces after call to
5574 stap_parse_argument_conditionally.
5575 Handle case when right-side expression is a parenthesized
5577 Skip spaces after call to stap_parse_argument_1.
5579 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5581 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5583 2021-01-19 Luis Machado <luis.machado@linaro.org>
5585 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5586 memory and save data.
5587 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5588 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5589 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5590 (trad_frame_value_bytes_p): Remove.
5591 (trad_frame_reset_saved_regs): Adjust documentation.
5592 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5593 constructor and reset the state of the registers.
5594 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5595 (trad_frame_value_bytes_p, trad_frame_set_value)
5596 (trad_frame_set_realreg, trad_frame_set_addr)
5597 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5598 (trad_frame_set_reg_realreg): Update to call member function.
5599 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5600 (trad_frame_get_prev_register): Likewise.
5602 * aarch64-tdep.c (aarch64_analyze_prologue)
5603 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5604 (aarch64_prologue_prev_register): Update to use member functions.
5605 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5606 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5607 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5608 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5609 (arm_make_epilogue_frame_cache): Likewise.
5610 * avr-tdep.c (avr_frame_unwind_cache)
5611 (avr_frame_prev_register): Likewise.
5612 * cris-tdep.c (cris_scan_prologue): Likewise.
5613 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5614 * frv-tdep.c (frv_analyze_prologue): Likewise.
5615 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5616 * lm32-tdep.c (lm32_frame_cache): Likewise.
5617 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5618 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5619 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5620 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5621 (reset_saved_regs): Adjust to set realreg.
5622 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5623 call member functions.
5624 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5625 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5626 (s390_backchain_frame_unwind_cache): Likewise.
5627 * score-tdep.c (score7_analyze_prologue)
5628 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5629 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5630 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5631 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5632 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5633 * tilegx-tdep.c (tilegx_analyze_prologue)
5634 (tilegx_frame_cache): Likewise.
5635 * v850-tdep.c (v850_frame_cache): Likewise.
5636 * vax-tdep.c (vax_frame_cache): Likewise.
5638 2021-01-19 Luis Machado <luis.machado@linaro.org>
5640 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5642 (put_frame_register_bytes): Likewise.
5643 Adjust documentation.
5644 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5645 (safe_frame_unwind_memory): Likewise.
5646 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5647 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5649 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5650 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5651 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5652 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5653 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5654 * dwarf2/loc.c (rw_pieced_value): Likewise.
5655 * hppa-tdep.c (hppa_frame_cache): Likewise.
5656 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5657 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5658 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5659 (i386_linux_rt_sigtramp_start): Likewise.
5660 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5661 * i386-tdep.c (i386_register_to_value): Likewise.
5662 * i387-tdep.c (i387_register_to_value): Likewise.
5663 * ia64-tdep.c (ia64_register_to_value): Likewise.
5664 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5665 (m32r_linux_rt_sigtramp_start): Likewise.
5666 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5667 * m68k-tdep.c (m68k_register_to_value): Likewise.
5668 * mips-tdep.c (mips_register_to_value)
5669 (mips_value_to_register): Likewise.
5670 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5671 (ppcfbsd_sigtramp_frame_cache): Likewise.
5672 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5673 (ppcobsd_sigtramp_frame_cache): Likewise.
5674 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5675 (rs6000_register_to_value): Likewise.
5676 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5677 * tramp-frame.c (tramp_frame_start): Likewise.
5678 * valops.c (value_assign): Likewise.
5680 2021-01-19 Luis Machado <luis.machado@linaro.org>
5682 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5684 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5685 instead of buffer and size.
5686 (trad_frame_set_reg_value_bytes): Likewise.
5687 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5688 (trad_frame_set_value_bytes): Likewise.
5690 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5692 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5694 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5696 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5697 (riscv_fbsd_gregset): Use riscv_supply_regset.
5698 (riscv_fbsd_fpregset): Likewise.
5699 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5700 (riscv_linux_fregset): Likewise.
5701 * riscv-tdep.c (riscv_supply_regset): Define new function.
5702 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5704 2021-01-18 Tom de Vries <tdevries@suse.de>
5707 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5709 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5712 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5714 * remote.c (class remote_target) <remote_hostio_send_command,
5715 remote_hostio_parse_result>: Constify parameter.
5716 (remote_hostio_parse_result): Likewise.
5717 (remote_target::remote_hostio_send_command): Adjust.
5718 (remote_target::remote_hostio_pread_vFile): Adjust.
5719 (remote_target::fileio_readlink): Adjust.
5720 (remote_target::fileio_fstat): Adjust.
5722 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5724 * remote.c (remote_target::start_remote): Move wait_status to
5727 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5729 * remote.c (class remote_target):
5730 <add_current_inferior_and_thread>: Constify parameter.
5731 (stop_reply_extract_thread): Likewise.
5732 (remote_target::get_current_thread): Likewise.
5733 (remote_target::add_current_inferior_and_thread): Likewise.
5735 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5737 * remote.c (class remote_target)
5738 <remote_unpack_thread_info_response,
5739 parse_threadlist_response>: Constify parameter and/or return
5740 value and or local variable.
5741 (stub_unpack_int): Likewise.
5742 (unpack_nibble): Likewise.
5743 (unpack_byte): Likewise.
5744 (unpack_int): Likewise.
5745 (unpack_string): Likewise.
5746 (unpack_threadid): Likewise.
5747 (remote_target::remote_unpack_thread_info_response): Likewise.
5748 (remote_target::parse_threadlist_response): Likewise.
5750 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5752 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5754 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5756 * MAINTAINERS (Write After Approval): Add myself.
5758 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5760 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5761 because is_trivially_default_constructible was first implemented with
5764 2021-01-14 Tom de Vries <tdevries@suse.de>
5766 PR breakpoints/27151
5767 * objfiles.h (in_plt_section): Handle .plt.sec.
5769 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5773 (remote_target::select_thread_for_ambiguous_stop_reply): New
5775 (remote_target::process_stop_reply): Call
5776 select_thread_for_ambiguous_stop_reply.
5778 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5780 * record-btrace.c (class record_btrace_target): Remove.
5781 (record_btrace_target::commit_resume): Remove.
5782 * record-full.c (class record_full_target): Remove.
5783 (record_full_target::commit_resume): Remove.
5785 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5787 * remote.c (enum class resume_state): New.
5788 (struct resumed_pending_vcont_info): New.
5789 (struct remote_thread_info) <resume_state, set_not_resumed,
5790 set_resumed_pending_vcont, resumed_pending_vcont_info,
5791 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5793 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5794 (remote_target::remote_add_thread): Adjust.
5795 (remote_target::process_initial_stop_replies): Adjust.
5796 (remote_target::resume): Adjust.
5797 (remote_target::commit_resume): Rely on state in
5798 remote_thread_info and not on tp->executing.
5799 (remote_target::process_stop_reply): Adjust.
5801 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5803 * arc-tdep.h (arc_debug_printf): New.
5804 * arc-tdep.c: Use arc_debug_printf.
5805 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5806 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5807 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5809 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5811 * arc-tdep.h (arc_debug): Change type to bool.
5812 * arc-tdep.c (arc_debug): Change type to bool.
5813 (arc_analyze_prologue): Adjust.
5814 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5815 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5817 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5819 * auto-load.c (auto_load_objfile_script_1): Use bool.
5820 (execute_script_contents): Use bool.
5822 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5824 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5826 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5828 * extension-priv.h (struct extension_language_script_ops)
5829 <auto_load_enabled>: Return bool.
5830 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5832 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5834 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5836 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5837 move comment to header.
5838 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5840 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5841 move comment to header.
5843 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5845 * auto-load.h (file_is_auto_load_safe): Change return type to
5846 bool, move comment here.
5847 * auto-load.c (file_is_auto_load_safe): Change return type and
5848 advice_printed to bool. Move comment to header.
5850 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5852 * jit.c (jit_debug_printf): New, use throughout file.
5854 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5856 * infrun.c (normal_stop): Fix indentation.
5858 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5860 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5862 * symfile.h: ... here.
5863 * symfile.c: Update doc.
5865 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5867 * target.h (baud_rate, serial_parity): Move declarations...
5868 * serial.h: ... here.
5869 * main.c: Include serial.h.
5870 * serial.c (baud_rate, serial_parity): Update doc.
5872 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5874 * top.c (pre_init_ui_hook): Remove.
5876 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5878 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5879 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5880 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5881 * features/aarch64-fpu.xml: Add bfloat16 type.
5883 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5885 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5887 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5889 * f-exp.y (dot_ops): Rename to...
5890 (fortran_operators): ...this. Add a header comment. Add symbol
5892 (yylex): Update to use fortran_operators not dot_ops. Remove
5893 special handling for '**', this is now included in
5896 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5898 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5899 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5900 * aarch64-tdep.c: Use aarch64_debug_printf.
5902 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5904 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5907 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5909 * jit.c (jit_debug): Change type to bool.
5910 (_initialize_jit): Adjust.
5912 2021-01-09 Tom Tromey <tom@tromey.com>
5915 * compile/compile.c (compile_to_object): Avoid crash when
5916 osabi_triplet_regexp returns NULL.
5918 2021-01-09 Tom Tromey <tom@tromey.com>
5920 * tracepoint.h (class collection_list) <append_exp>: Take a
5922 * tracepoint.c (collection_list::append_exp): Take a std::string.
5923 (encode_actions_1): Update.
5925 2021-01-08 Tom Tromey <tromey@adacore.com>
5927 * parse.c (parse_expression): Add void_context_p parameter. Use
5928 parse_exp_in_context.
5929 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5931 (print_command, call_command): Update.
5932 * expression.h (parse_expression): Add void_context_p parameter.
5934 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5936 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5937 for internalvar components that have a dynamic location.
5939 2021-01-08 Tom de Vries <tdevries@suse.de>
5942 * breakpoint.c (create_exception_master_breakpoint_probe)
5943 (create_exception_master_breakpoint_hook): Factor out
5945 (create_exception_master_breakpoint): ... here. Only try to install
5946 the master exception breakpoint in objfile.debug using the
5947 _Unwind_DebugHook method, if the install using probes in objfile
5950 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5952 * f-lang.c (fortran_value_subarray): Call value_from_component.
5954 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5956 * remote-sim.c: Include memory-map.h.
5957 (gdbsim_target): Define memory_map override.
5958 (gdbsim_target::memory_map): Define.
5960 2021-01-07 Tom Tromey <tromey@adacore.com>
5962 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5964 2021-01-07 Tom Tromey <tromey@adacore.com>
5966 * ada-lang.c (add_component_interval): Start loop using vector's
5969 2021-01-06 Tom Tromey <tromey@adacore.com>
5971 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5973 * valarith.c (fixed_point_binop): Handle multiplication
5974 and division specially.
5975 * valops.c (value_to_gdb_mpq): New function.
5976 (value_cast_to_fixed_point): Use it.
5978 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5980 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5981 Call wnoutrefresh instead of tui_win_info::refresh_window.
5983 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5985 * tui/tui-source.c (tui_source_window::show_line_number):
5986 Redraw second space after line number.
5988 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5991 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5992 Fix source pad size in prefresh.
5993 (tui_source_window_base::show_source_content): Grow source pad
5996 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5998 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5999 (bfin_frame_align): Use align_down.
6001 2021-01-04 Tom de Vries <tdevries@suse.de>
6003 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6004 terminators that do not terminate anything.
6006 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6008 * debug.c (debug_print_depth): New.
6009 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6010 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6011 * infrun.c (start_step_over): Use
6012 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6013 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6014 INFRUN_SCOPED_DEBUG_START_END.
6015 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6017 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6019 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6021 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6023 * utils.c (vfprintf_unfiltered): Print timestamp only when
6024 previous debug output ended with a newline.
6026 2021-01-04 Luis Machado <luis.machado@linaro.org>
6028 Update all users of trad_frame_saved_reg to use the new member
6031 Remote all struct keywords from declarations of trad_frame_saved_reg
6032 types, except on forward declarations.
6034 * aarch64-tdep.c: Update.
6035 * alpha-mdebug-tdep.c: Update.
6036 * alpha-tdep.c: Update.
6037 * arc-tdep.c: Update.
6038 * arm-tdep.c: Update.
6039 * avr-tdep.c: Update.
6040 * cris-tdep.c: Update.
6041 * csky-tdep.c: Update.
6042 * frv-tdep.c: Update.
6043 * hppa-linux-tdep.c: Update.
6044 * hppa-tdep.c: Update.
6045 * hppa-tdep.h: Update.
6046 * lm32-tdep.c: Update.
6047 * m32r-linux-tdep.c: Update.
6048 * m32r-tdep.c: Update.
6049 * m68hc11-tdep.c: Update.
6050 * mips-tdep.c: Update.
6051 * moxie-tdep.c: Update.
6052 * riscv-tdep.c: Update.
6053 * rs6000-tdep.c: Update.
6054 * s390-linux-tdep.c: Update.
6055 * s390-tdep.c: Update.
6056 * score-tdep.c: Update.
6057 * sparc-netbsd-tdep.c: Update.
6058 * sparc-sol2-tdep.c: Update.
6059 * sparc64-fbsd-tdep.c: Update.
6060 * sparc64-netbsd-tdep.c: Update.
6061 * sparc64-obsd-tdep.c: Update.
6062 * sparc64-sol2-tdep.c: Update.
6063 * tilegx-tdep.c: Update.
6064 * v850-tdep.c: Update.
6065 * vax-tdep.c: Update.
6067 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6068 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6070 * trad-frame.c: Update.
6071 Remove TF_REG_* enum.
6072 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6073 a trivially-constructible struct.
6074 (trad_frame_reset_saved_regs): Adjust to use member function.
6075 (trad_frame_value_p): Likewise.
6076 (trad_frame_addr_p): Likewise.
6077 (trad_frame_realreg_p): Likewise.
6078 (trad_frame_value_bytes_p): Likewise.
6079 (trad_frame_set_value): Likewise.
6080 (trad_frame_set_realreg): Likewise.
6081 (trad_frame_set_addr): Likewise.
6082 (trad_frame_set_unknown): Likewise.
6083 (trad_frame_set_value_bytes): Likewise.
6084 (trad_frame_get_prev_register): Likewise.
6085 * trad-frame.h: Update.
6086 (trad_frame_saved_reg_kind): New enum.
6087 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6088 <m_kind, m_reg>: New member fields.
6089 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6090 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6091 <is_addr, is_unknown, is_value_bytes>: New member functions.
6093 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6095 * target-float.c: Fix typos.
6097 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6099 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6101 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6103 * gdbarch.sh: Update copyright year range.
6105 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6107 Update copyright year range in copyright header of all GDB files.
6109 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6111 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6112 to the list of directories to update.
6114 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6116 * top.c (print_gdb_version): Update copyright year.
6118 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6120 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6122 For older changes see ChangeLog-2020.
6128 version-control: never