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