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