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