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