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