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