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