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