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