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