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