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