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