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