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