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