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