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