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