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