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