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