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