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