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