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