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