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