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