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