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