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