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