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