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