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