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