Remove gdb/testsuite/configure
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f99d1d37
TT
12021-06-01 Tom Tromey <tromey@adacore.com>
2
3 * configure.ac: Copy some code from testsuite/configure.ac.
4 (enable_libctf): Subst this, not ENABLE_LIBCTF.
5 * configure: Rebuild.
6
17d305ef
TV
72021-06-01 Tom de Vries <tdevries@suse.de>
8
9 PR symtab/26096
10 * minsyms.c (msymbol_is_cold_clone): New function.
11 (msymbol_is_function): Use msymbol_is_cold_clone.
12
9b715c68
AB
132021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
14 Andrew Burgess <andrew.burgess@embecosm.com>
15
16 PR gdb/14383
17 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
18 (ALLDEPFILES): Add arm-none-tdep.c
19 * arm-none-tdep.c: New file.
20 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
21
b4b3e2de
AB
222021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
23 Richard Bunt <richard.bunt@arm.com>
24
25 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
26 check for why the backtrace stopped.
27
9ea36493
SM
282021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
31 Update all callers.
32 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
33 signature parameter, update all callers.
34 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
35 signature parameter.
36
46c6bcf6
SM
372021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
38
39 * dwarf2/read.h (signatured_type_up): New, use where possible.
40
4631503b
SM
412021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
44
cc653233
TT
452021-05-30 Tom Tromey <tom@tromey.com>
46
47 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
48 is_debug_types.
49 (create_signatured_type_table_from_index)
50 (create_signatured_type_table_from_debug_names, add_type_unit)
51 (read_comp_units_from_section): Update.
52
c96e8b04
TT
532021-05-30 Tom Tromey <tom@tromey.com>
54
55 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
56 m_num_psymtabs>: Remove.
57 (resize_symtabs): Update.
58 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
59 (dwarf2_per_bfd::allocate_signatured_type): Update.
60
24b21115
SM
612021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
62
63 * Fix tab after space indentation issues throughout.
64
01add95b
SM
652021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * Fix some indentation mistakes throughout.
68
055c879f
SM
692021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * breakpoint.h (iterate_over_bp_locations): Remove. Update
72 users to use all_bp_locations.
73 (all_bp_locations): New.
74 * breakpoint.c (all_bp_locations): Make non-static.
75 (iterate_over_bp_locations): Remove.
76
240edef6
SM
772021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * breakpoint.h (iterate_over_breakpoints): Remove. Update
80 callers to use all_breakpoints or all_breakpoints_safe.
81 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
82 all_breakpoints_safe): Move here.
83 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
84 non-static.
85 (iterate_over_breakpoints): Remove.
86 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
87 Return void.
88 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
89 return value logic.
90 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
91
e0d9a270
SM
922021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * breakpoint.c (get_first_locp_gte_addr): Remove.
95 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
96 all_bp_locations_at_addr.
97 (struct bp_locations_at_addr_range): New.
98 (all_bp_locations_at_addr): New.
99 (bp_locations_compare_addrs): New.
100
48d7020b
SM
1012021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
102
103 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
104 all_bp_locations.
105 (all_bp_locations): New.
106
5d51cd5d
SM
1072021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * breakpoint.c (bp_locations): Change to std::vector, update all
110 users.
111 (bp_locations_count): Remove.
112 (update_global_location_list): Change to work with indices
113 rather than bp_location**.
114
40cb8ca5
SM
1152021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
116
117 * breakpoint.h (bp_locations_range): New.
118 (struct breakpoint) <locations>: New. Use where possible.
119
f6d17b2b
SM
1202021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
121
122 * breakpoint.h (all_tracepoints): Remove.
123 (breakpoint_iterator): Move here.
124 (struct tracepoint_filter): New.
125 (tracepoint_iterator): New.
126 (tracepoint_range): New.
127 (all_tracepoints): New.
128 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
129 all_tracepoints.
130 (breakpoint_iterator): Move to header.
131 (all_tracepoints): New.
132 * tracepoint.c (start_tracing): Adjust.
133
1428b37a
SM
1342021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * breakpoint.c (breakpoint_safe_range): New.
137 (all_breakpoints_safe): New. Use instead of
138 ALL_BREAKPOINTS_SAFE where possible.
139
43892fdf
SM
1402021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
141
142 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
143 all_breakpoints.
144 (breakpoint_iterator): New.
145 (breakpoint_range): New.
146 (all_breakpoints): New.
147
bdef5723
HD
1482021-05-27 Hannes Domani <ssbssa@yahoo.de>
149
150 * python/py-tui.c (tui_py_window::output): Add full_window
151 argument.
152 (gdbpy_tui_write): Parse "full_window" argument.
153
d5a6313e
SM
1542021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
155
156 * make-init-c: Add option to reverse function calls.
157
f39632d9
SM
1582021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
159
160 * Makefile.in (INIT_FILES_FILTER_OUT): New.
161 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
162 (stamp-init): Use make-init-c.
163 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
164 * silent-rules.mk (ECHO_INIT_C): Change.
165 * make-init-c: New file.
166
5e84b7ee
SM
1672021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * command.h (add_alias_cmd): Accept target as
170 cmd_list_element. Update callers.
171
e0f25bd9
SM
1722021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
173
174 * command.h (add_info_alias): Accept target as
175 cmd_list_element. Update callers.
176
3947f654
SM
1772021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
178
179 * command.h (add_com_alias): Accept target as
180 cmd_list_element. Update callers.
181
7bd22f56
SM
1822021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
183
184 * python/py-param.c (add_setshow_generic): Use return values of
185 add_setshow functions.
186
9f260536
SM
1872021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * mi/mi-main.c (_initialize_mi_main):
190 * python/py-auto-load.c (gdbpy_initialize_auto_load):
191 * remote.c (_initialize_remote):
192
af7f8f52
SM
1932021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * command.h (set_show_commands): New.
196 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
197 add_setshow_boolean_cmd, add_setshow_filename_cmd,
198 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
199 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
200 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
201 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
202 Return set_show_commands. Adjust callers.
203 * cli/cli-decode.c (add_setshow_cmd_full): Return
204 set_show_commands, remove result parameters, adjust callers.
205
248f7165
TV
2062021-05-27 Tom de Vries <tdevries@suse.de>
207
208 PR symtab/27919
209 * dwarf2/read.c (process_psymtab_comp_unit):
210
2152b4fd
TV
2112021-05-27 Tom de Vries <tdevries@suse.de>
212
213 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
214 error.
215
6dcd1193
TV
2162021-05-27 Tom de Vries <tdevries@suse.de>
217
218 PR symtab/27898
219 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
220 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
221 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
222 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
223 load_all_dies init.
224 (dwarf2_per_cu_data): Remove load_all_dies field.
225
11bb5c41
SM
2262021-05-26 Simon Marchi <simon.marchi@efficios.com>
227
228 * regcache.c (reg_buffer::reg_buffer): Default-initialize
229 m_registers array.
230
ef5f598c
TT
2312021-05-26 Tom Tromey <tom@tromey.com>
232
233 * dwarf2/read.c (allocate_type_unit_groups_table)
234 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
235 htab_delete_entry.
236 (free_line_header_voidp): Remove.
237 * completer.c
238 (completion_tracker::completion_hash_entry::deleter): Remove.
239 (completion_tracker::discard_completions): Use htab_delete_entry.
240 * utils.h (htab_delete_entry): New template function.
241
a56889ae
HD
2422021-05-24 Hannes Domani <ssbssa@yahoo.de>
243
244 * python/py-tui.c (tui_py_window::refresh_window):
245 Avoid flickering.
246
fbf3c4b9
TV
2472021-05-23 Tom de Vries <tdevries@suse.de>
248
249 PR tdep/27822
250 * target.h (struct target_ops): Mention target_thread_architecture in
251 read_description comment.
252 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
253 pid to determine if process is 64-bit or 32-bit.
254 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
255 Same.
256 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
257 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
258 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
259 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
260 Likewise, use pid to determine if kernel supports reading VFP
261 registers.
262
8569d6e1
PW
2632021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
264
265 * main.c (enum cmdarg_kind): Fix option type comments for
266 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
267
778ae9cc
TV
2682021-05-21 Tom de Vries <tdevries@suse.de>
269
270 PR testsuite/25047
271 * contrib/cc-with-tweaks.sh: Handle -l.
272
6d1a09b7
TV
2732021-05-21 Tom de Vries <tdevries@suse.de>
274
275 PR breakpoint/27889
276 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
277 objects. Call get_jiter_objfile_data with the_objfile.
278
1487a14e
SM
2792021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
280
281 * linespec.c (linespec_p): Remove. Replace all uses with
282 "linespec *".
283
bb6203bf
AH
2842021-05-20 Alexandra Hájková <ahajkova@redhat.com>
285 Pedro Alves <pedro@palves.net>
286
287 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
288 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
289 command_line_up instead of struct command_line.
290 (build_command_line): Likewise.
291 (get_command_line): Update the cmd function call parameter.
292 (process_next_line): Use unique_ptr command_line_up instead
293 of struct command_line.
294 (recurse_read_control_structure): Change the the type of
295 next to command_line_up.
296 (read_command_lines_1): Change type of `next' to be
297 command_line_up and update all references of `next'
298 accordingly.
299
ed3130b7
AH
3002021-05-20 Alexandra Hájková <ahajkova@redhat.com>
301
302 * MAINTAINERS (Write After Approval): Add myself.
303
5433e20e
JB
3042021-05-19 John Baldwin <jhb@FreeBSD.org>
305
306 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
307
a5523cc3
AH
3082021-05-18 Alexandra Hájková <ahajkova@redhat.com>
309
310 * inflow.c (new_tty): Do not leak tty.
311
cd53fa40
TT
3122021-05-17 Tom Tromey <tom@tromey.com>
313
314 * dwarf2/read.h: Update include.
315 * dwarf2/read.c: Update include.
316 * dwarf2/line-header.c: Update include.
317 * dwarf2/cu.h: Update include.
318 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
319 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
320 * Makefile.in (COMMON_SFILES): Update.
321
347212b8
TT
3222021-05-17 Tom Tromey <tom@tromey.com>
323
324 * dwarf2/read.c (maybe_queue_comp_unit)
325 (dwarf2_per_objfile::age_comp_units): Update.
326 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
327 dwarf2_cu methods.
328 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
329 add_dependence>: New methods.
330 <m_dependencies>: Add "m_" prefix. Now private.
331 <m_mark>: Add "m_" prefix.
332 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
333 (dwarf2_mark_helper): New function.
334 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
335
839118f9
TT
3362021-05-17 Tom Tromey <tom@tromey.com>
337
338 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
339 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
340 (dwarf2_cu::dwarf2_cu): Move to cu.c.
341 * dwarf2/cu.c: New file.
342 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
343
8ae78a44
TT
3442021-05-17 Tom Tromey <tom@tromey.com>
345
346 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
347 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
348 Move to cu.h.
349 * dwarf2/cu.h: New file.
350
c1c0a7e1
AB
3512021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * .dir-locals.el: Set sentence-end-double-space for all modes, and
354 set brace-list-open to 0 for C and C++ modes.
355
9e541c79
TT
3562021-05-17 Tom Tromey <tromey@adacore.com>
357
358 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
359 if frame is null.
360
59173216
TT
3612021-05-17 Tom Tromey <tromey@adacore.com>
362
363 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
364 (group_from_gid): Subtract one from strncpy length.
365
baea2f9d
TT
3662021-05-17 Tom Tromey <tromey@adacore.com>
367
368 * source.c (add_path): Check 'p' before using 'p[-1]'.
369
473ab964
TT
3702021-05-17 Tom Tromey <tromey@adacore.com>
371
372 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
373 (dwarf2_per_cu_data_up): New typedef.
374 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
375 <all_comp_units>: Use dwarf2_per_cu_data_up.
376 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
377 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
378 (create_cu_from_index_list): Likewise.
379 (create_signatured_type_table_from_index)
380 (create_cus_from_debug_names_list, add_type_unit)
381 (read_comp_units_from_section): Update.
382 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
383 (run_test): Update.
384
16e0020b
TT
3852021-05-17 Tom Tromey <tom@tromey.com>
386
387 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
388 (sort_tu_by_abbrev_offset): Remove.
389 (build_type_psymtabs): Update.
390
91e159e9
SM
3912021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * py-project.toml: New.
394 * gdb-gdb.py.in: Re-format.
395
034dce7a
SM
3962021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
397
398 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
399 New, use it.
400 * command.h (cmd_func_p): Remove.
401 * cli/cli-decode.c (cmd_func_p): Remove.
402
1be99b11
SM
4032021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
404
405 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
406
99858724
SM
4072021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
408
409 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
410 to...
411 <alias_target>: ... this.
412 (add_alias_cmd): Rename old to target.
413 (add_info_alias): Rename old_name to target_name.
414 (add_com_alias): Likewise.
415
14b42fc4
SM
4162021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
417
418 * Rename "prefixlist" parameters to "subcommands" throughout.
419 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
420 <subcommands>: ... this.
421 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
422 (lookup_cmd_with_subcommands): ... this.
423
ecd0a6b3
SM
4242021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
427
413b49c2
SM
4282021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
429
430 * cli/cli-decode.h (prefixname): Make const, move implementation
431 to cli/cli-decode.c.
432 * cli/cli-decode.c (cmd_list_element::prefixname): New.
433
ea11a98d
WP
4342021-05-16 Weimin Pan <weimin.pan@oracle.com>
435
436 * ctfread.c (new_symbol): Set function address.
437 (read_func_kind_type): Remove incorrect type name setting.
438 Don't copy name returned from ctf_type_ame_raw throughout file.
439
887e7158
TT
4402021-05-14 Tom Tromey <tom@tromey.com>
441
442 * rust-lang.c (rust_language::val_print_struct)
443 (rust_language::print_enum): Use common_val_print, not
444 value_print_inner.
445
55789354
TBA
4462021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
447
448 * python/py-inferior.c (infpy_get_connection_num): New function.
449 (inferior_object_getset): Add a new element for 'connection_num'.
450 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
451
2f63ec5c
AB
4522021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
455 argument type, update and re-wrap, header comment.
456 (remote_target::commit_resumed): Convert any_process_wildcard and
457 may_global_wildcard_vcont from int to bool.
458
ecf25064
KC
4592021-05-14 Kent Cheung <kent.cheung@arm.com>
460
461 * cp-valprint.c (cp_print_value): Replaced duplicate code.
462 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
463 just before printing child values.
464 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
465 printing string representation.
466 * python/py-prettyprint.c (print_children): Check max_depth just
467 before printing child values.
468 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
469 printing string representation.
470
df68e12b
MF
4712021-05-14 Mike Frysinger <vapier@gentoo.org>
472
473 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
474 sim/callback.h & sim/sim.h.
475
183aaaf7
MF
4762021-05-13 Mike Frysinger <vapier@gentoo.org>
477
478 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
479 sim-regno.h include.
480
737358ba
SM
4812021-05-13 Simon Marchi <simon.marchi@efficios.com>
482
483 * inf-child.h (inf_child_target) <follow_exec>: New.
484 * inf-child.c (inf_child_target::follow_exec): New.
485
294c36eb
SM
4862021-05-13 Simon Marchi <simon.marchi@efficios.com>
487
488 * target.h (struct target_ops) <follow_exec>: Add ptid_t
489 parameter.
490 (target_follow_exec): Likewise.
491 * target.c (target_follow_exec): Add ptid_t parameter.
492 * infrun.c (follow_exec): Adjust call to target_follow_exec,
493 don't push target nor create thread.
494 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
495 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
496 (thread_db_target::follow_exec): New.
497 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
498 (remote_target::follow_exec): Call
499 process_stratum_target::follow_exec.
500 * target-delegates.c: Re-generate.
501
2af87c85
SM
5022021-05-13 Simon Marchi <simon.marchi@efficios.com>
503
504 * infrun.c (follow_exec): Call target_follow_fork when
505 follow-exec-mode is same.
506 * target.h (target_follow_fork): Improve doc.
507
0b2256f7
SM
5082021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
511 Remove.
512 * cli/cli-setshow.c (do_show_command): Adjust.
513
0746f49b
LM
5142021-05-13 Luis Machado <luis.machado@linaro.org>
515
516 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
517 include the last address in the range.
518
4b8cb9dd
SM
5192021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * python/python-internal.h (gdbpy_parse_command_name): Return
522 gdb::unique_xmalloc_ptr.
523 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
524 (cmdpy_init): Adjust.
525 * python/py-param.c (parmpy_init): Adjust.
526 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
527 when done.
528
ee35ce82
GB
5292021-05-12 George Barrett <bob@bob131.so>
530
531 * NEWS (Guile API): Note the addition of the new procedure.
532 * guile/scm-value.c (gdbscm_value_const_value): Add
533 implementation of value-const-value procedure.
534 (value_functions): Add value-const-value procedure.
535
9d4fc61d
GB
5362021-05-12 George Barrett <bob@bob131.so>
537
538 * NEWS (Guile API): Note the addition of new procedures.
539 * guile/scm-value.c (gdbscm_reference_value): Add helper function
540 for reference value creation.
541 (gdbscm_value_reference_value): Add implementation of
542 value-reference-value procedure.
543 (gdbscm_value_rvalue_reference_value): Add implementation of
544 value-rvalue-reference-value procedure.
545 (value_functions): Add value-reference-value procedure. Add
546 value-rvalue-reference-value procedure.
547
97cef6b7
GB
5482021-05-12 George Barrett <bob@bob131.so>
549
550 * guile/scm-type.c (type_integer_constants): Add binding for
551 TYPE_CODE_RVALUE_REF.
552 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
553 dereferencing of rvalue references.
554 * NEWS (Guile API): Note improvements in rvalue reference support.
555
d51344c9
MM
5562021-05-12 Markus Metzger <markus.t.metzger@intel.com>
557
558 * btrace.c (handle_pt_insn_events): Ignore status update enable
559 events.
560
f2a883a8
SM
5612021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
564 indentation.
565
64f30eb0
SM
5662021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
567
568 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
569
db1f6cd6
LS
5702021-05-10 Lancelot Six <lsix@lancelotsix.com>
571
572 PR gdb/27614
573 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
574 argument.
575
31aceaef
SM
5762021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * nat/linux-waitpid.c (status_to_str): Show signal name.
579
75140e3b
AB
5802021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
581
582 * python/py-breakpoint.c (pybp_debug): New static global.
583 (show_pybp_debug): New function.
584 (pybp_debug_printf): Define.
585 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
586 (gdbpy_breakpoint_created): Add some debugging.
587 (gdbpy_breakpoint_deleted): Likewise.
588 (gdbpy_breakpoint_modified): Likewise.
589 (_initialize_py_breakpoint): New function.
590
1ef40c13
AB
5912021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 * python/py-unwind.c (pyuw_debug): Convert to bool.
594 (show_pyuw_debug): New function.
595 (pyuw_debug_printf): Define.
596 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
597 (pyuw_this_id): Convert to new debug print macros.
598 (pyuw_prev_register): Likewise.
599 (pyuw_sniffer): Likewise.
600 (pyuw_dealloc_cache): Likewise.
601 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
602 show function when registering.
603
927c4e35
AB
6042021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * dummy-frame.c (fprint_dummy_frames): Convert use of
607 fprint_frame_id to use frame_id::to_string.
608 * frame.c (fprint_field): Delete.
609 (fprint_frame_id): Moved to...
610 (frame_id::to_string): ...this, rewritten to return a string.
611 (fprint_frame): Convert use of fprint_frame_id to use
612 frame_id::to_string.
613 (compute_frame_id): Likewise.
614 (frame_id_p): Likewise.
615 (frame_id_eq): Likewise.
616 (frame_id_inner): Likewise.
617 * frame.h (struct frame_id) <to_string>: New member function.
618 (fprint_frame_id): Delete declaration.
619 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
620 fprint_frame_id to use frame_id::to_string.
621 * python/py-frame.c (frame_object_to_frame_info): Likewise.
622 * python/py-unwind.c (unwind_infopy_str): Likewise.
623 (pyuw_this_id): Likewise.
624
8d06918f
SM
6252021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
626
627 * nat/linux-waitpid.c (status_to_str): Return std::string.
628 * nat/linux-waitpid.h (status_to_str): Likewise.
629 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
630 (linux_nat_target::attach): Adjust.
631 (linux_handle_extended_wait): Adjust.
632 (wait_lwp): Adjust.
633 (stop_wait_callback): Adjust.
634 (linux_nat_filter_event): Adjust.
635 (linux_nat_wait_1): Adjust.
636 * nat/linux-waitpid.c (status_to_str): Adjust.
637 * nat/linux-waitpid.h (status_to_str): Adjust.
638
550e9289
SM
6392021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * infrun.h (infrun_debug_printf): Add missing space.
642
4655f850
PA
6432021-05-08 Pedro Alves <pedro@palves.net>
644
645 * linux-nat.c (linux_nat_target::supports_disable_randomization):
646 Remove references to HAVE_PERSONALITY.
647 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
648 (maybe_disable_address_space_randomization)
649 (~maybe_disable_address_space_randomizatio): Remove references to
650 HAVE_PERSONALITY.
651 * config.in, configure: Regenerate.
652
1845e254
AB
6532021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
656 include.
657 (source_script_with_search): Perform tilde expansion.
658
91e3c425
SM
6592021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
660
661 * target-descriptions.c (struct target_desc_info) <filename>:
662 Make std::string.
663 (copy_inferior_target_desc_info): Adjust.
664 (target_desc_info_free): Adjust.
665 (target_find_description): Adjust.
666 (set_tdesc_filename_cmd): Adjust.
667 (show_tdesc_filename_cmd): Adjust.
668 (unset_tdesc_filename_cmd): Adjust.
669 (maint_print_c_tdesc_cmd): Adjust.
670
0b2f7ade
SM
6712021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
672
673 * target-descriptions.c (struct target_desc_info): Initialize
674 fields.
675 (get_tdesc_info): Use new.
676 (target_desc_info_free): Use delete.
677
820c4490
SM
6782021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
679
680 * target-descriptions.c (struct target_desc_info) <fetched>:
681 bool.
682 (target_find_description): Adjust.
683 (target_clear_description): Adjust.
684
c2962e6a
SM
6852021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
686
687 * target-descriptions.c (struct target_desc_info) <tdesc>:
688 Adjust doc.
689 (target_desc_fetched): Remove.
690 (current_target_desc): Remove.
691 (target_description_filename): Remove.
692 (target_find_description): Adjust.
693 (target_clear_description): Adjust.
694 (target_current_description): Adjust.
695 (set_tdesc_filename_cmd): Adjust.
696 (show_tdesc_filename_cmd): Adjust.
697 (unset_tdesc_filename_cmd): Adjust.
698 (maint_print_c_tdesc_cmd): Adjust.
699 (maint_print_xml_tdesc_cmd): Adjust.
700
8a82de58
AB
7012021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
702
703 * infcmd.c (notice_new_inferior): Change parameter type.
704 * inferior.h (notice_new_inferior): Change parameter type.
705 * remote.c (remote_notice_new_inferior): Change parameter type to
706 bool. Also update type of local variable to bool.
707 (remote_target::update_thread_list): Change type of local variable
708 to bool.
709 (remote_target::process_stop_reply): Pass bool instead of int to
710 remote_notice_new_inferior.
711
bedc4734
SM
7122021-05-07 Simon Marchi <simon.marchi@efficios.com>
713
714 * target.c (target_stack::unpush): Call target_ops::find_beneath
715 to get the target beneath `t`.
716
27f0a431
SM
7172021-05-07 Simon Marchi <simon.marchi@efficios.com>
718
719 * target.c (target_close): Check in all inferiors that the
720 target is not pushed.
721
1d1669e4
AM
7222021-05-07 Aaron Merey <amerey@redhat.com>
723
724 * debuginfod-support.c (debuginfod_init): Remove.
725 (get_debuginfod_client): New function.
726
2698f5ea
TT
7272021-05-07 Tom Tromey <tom@tromey.com>
728
729 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
730 * utils.c (streq_hash): Remove.
731 * utils.h (streq_hash): Don't declare.
732 * completer.c (completion_tracker::discard_completions): Update
733 comment.
734 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
735
13123da8
SM
7362021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * Re-format all Python files using black.
739
9589edb8
AB
7402021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
741
742 * guile/guile-internal.h (gdbscm_safe_source_script): Change
743 function return type.
744 * guile/guile.c (gdbscm_source_script): Update to handle change in
745 gdbscm_safe_source_script.
746 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
747 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
748 type.
749
ec66d6ea
SM
7502021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * inferior.h (class inferior) <args>: Change type to
753 unique_xmalloc_ptr.
754 * inferior.c (inferior::~inferior): Don't free args.
755 * infcmd.c (get_inferior_args): Adjust.
756 (set_inferior_args): Adjust.
757
0618ecf6
AB
7582021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
759
760 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
761 breakpoint locations when the breakpoint actually has a location.
762
79aabb73
TBA
7632021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
764
765 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
766 * mi/mi-cmds.c: Change the binding of "-break-condition" to
767 mi_cmd_break_condition.
768 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
769 * breakpoint.h (set_breakpoint_condition): Declare a new
770 overload.
771 * breakpoint.c (set_breakpoint_condition): New overloaded function
772 extracted out from ...
773 (condition_command): ... this.
774 * NEWS: Mention the change.
775
10e578d7
TBA
7762021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
777
778 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
779 '--force-condition' flag to force the condition in the
780 '-break-insert' and '-dprintf-insert' commands.
781 * NEWS: Mention the change.
782
225bda24
TV
7832021-05-04 Tom de Vries <tdevries@suse.de>
784
785 PR guile/27806
786 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
787 memory functions.
788
b8efb248
TT
7892021-04-30 Tom Tromey <tom@tromey.com>
790
791 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
792 (add_signatured_type_cu_to_table): Remove.
793 (create_debug_type_hash_table): Assume dwo_file is non-null.
794 (create_debug_types_hash_table): Update comment.
795 (create_all_type_units): Remove.
796 (sort_tu_by_abbrev_offset): Update comment.
797 (build_type_psymtabs): Rename from build_type_psymtabs_1.
798 (build_type_psymtabs): Remove.
799 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
800 Update.
801 (read_comp_units_from_section): Add types_htab, section_kind
802 parameters.
803 (create_all_comp_units): Read type units.
804
91eea9cc
TT
8052021-04-30 Tom Tromey <tom@tromey.com>
806
807 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
808 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
809 <get_cu>: Now inline.
810 <all_type_units>: Remove.
811 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
812 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
813 (dwarf2_per_bfd::get_tu): Remove.
814 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
815 (create_signatured_type_table_from_index)
816 (create_signatured_type_table_from_debug_names)
817 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
818 (dwarf2_base_index_functions::expand_all_symtabs)
819 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
820 (dwarf2_base_index_functions::map_symbol_filenames)
821 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
822 (add_signatured_type_cu_to_table, create_all_type_units)
823 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
824 (create_all_comp_units): Update.
825 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
826 (write_debug_names): Update.
827
0d305d5c
TT
8282021-04-30 Tom Tromey <tom@tromey.com>
829
830 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
831 allocate_signatured_type>: Change return type.
832 <all_comp_units, all_type_units>: Hold unique pointers.
833 (struct dwarf2_per_cu_data): Add constructor and initializers.
834 (struct signatured_type): Derive from dwarf2_per_cu_data.
835 * dwarf2/read.c (type_unit_group): Derive from
836 dwarf2_per_cu_data.
837 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
838 (dwarf2_per_bfd::get_tu)
839 (dwarf2_per_bfd::allocate_signatured_type)
840 (dwarf2_per_bfd::allocate_signatured_type)
841 (create_cu_from_index_list, create_cus_from_index_list)
842 (create_signatured_type_table_from_index)
843 (create_signatured_type_table_from_debug_names)
844 (create_addrmap_from_aranges)
845 (dwarf2_base_index_functions::find_last_source_symtab)
846 (dw_expand_symtabs_matching_file_matcher)
847 (dwarf2_gdb_index::expand_symtabs_matching)
848 (dwarf2_base_index_functions::map_symbol_filenames)
849 (create_cus_from_debug_names_list)
850 (dw2_debug_names_iterator::next)
851 (dwarf2_debug_names_index::expand_symtabs_matching)
852 (create_debug_type_hash_table, add_type_unit)
853 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
854 Update.
855 (allocate_type_unit_groups_table): Use delete.
856 (create_type_unit_group): Change return type. Use new.
857 (get_type_unit_group, build_type_psymtabs_1)
858 (build_type_psymtab_dependencies)
859 (process_skeletonless_type_unit, set_partial_user)
860 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
861 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
862 (read_signatured_type): Update.
863 (dwarf2_find_containing_comp_unit): Change type of
864 'all_comp_units'.
865 (run_test): Update.
866 (dwarf2_per_bfd::allocate_per_cu)
867 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
868 Use new.
869 (add_signatured_type_cu_to_table): Update.
870 * dwarf2/index-write.c (write_one_signatured_type)
871 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
872 (write_debug_names): Update.
873
1bee48c7
TT
8742021-04-30 Tom Tromey <tromey@adacore.com>
875
876 * nat/windows-nat.h (get_image_name): Don't declare.
877 * nat/windows-nat.c (get_image_name): Now static.
878
e228ef97
TT
8792021-04-30 Tom Tromey <tromey@adacore.com>
880
881 * windows-nat.c (windows_nat::handle_load_dll): Update.
882 (windows_nat_target::get_windows_debug_event): Call
883 dll_loaded_event.
884 (windows_add_all_dlls, windows_add_dll): Move to
885 nat/windows-nat.c.
886 * nat/windows-nat.h (handle_load_dll): Change parameters.
887 (dll_loaded_event, windows_add_all_dlls): Declare.
888 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
889 from windows-nat.c.
890 (dll_loaded_event): New function.
891
de071872
TT
8922021-04-30 Tom Tromey <tromey@adacore.com>
893
894 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
895 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
896 Declare.
897 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
898 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
899
9e439f00
TT
9002021-04-30 Tom Tromey <tromey@adacore.com>
901
902 * windows-nat.c: Move code to nat/windows-nat.[ch].
903 (_initialize_windows_nat): Call initialize_loadable.
904 * nat/windows-nat.h (AdjustTokenPrivileges)
905 (DebugActiveProcessStop, DebugBreakProcess)
906 (DebugSetProcessKillOnExit, EnumProcessModules)
907 (EnumProcessModulesEx, GetModuleInformation)
908 (GetModuleFileNameExA, GetModuleFileNameExW)
909 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
910 (GetCurrentConsoleFont, Wow64SuspendThread)
911 (Wow64GetThreadContext, Wow64SetThreadContext)
912 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
913 (AdjustTokenPrivileges_ftype)
914 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
915 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
916 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
917 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
918 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
919 (GetConsoleFontSize_ftype)
920 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
921 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
922 (Wow64GetThreadSelectorEntry_ftype): Likewise.
923 (initialize_loadable): Declare.
924 * nat/windows-nat.c (AdjustTokenPrivileges)
925 (DebugActiveProcessStop, DebugBreakProcess)
926 (DebugSetProcessKillOnExit, EnumProcessModules)
927 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
928 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
929 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
930 (Wow64GetThreadContext, Wow64SetThreadContext)
931 (Wow64GetThreadSelectorEntry): Define.
932 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
933 from windows-nat.c.
934 (initialize_loadable): Likewise, and rename.
935
1053c638
TT
9362021-04-30 Tom Tromey <tromey@adacore.com>
937
938 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
939 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
940 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
941 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
942 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
943 (bad): New template functions.
944 (_initialize_loadable): Update.
945
2869ac4b
TT
9462021-04-30 Tom Tromey <tromey@adacore.com>
947
948 * ada-lang.c (ada_index_type): Use ada_check_typedef.
949
e197dfae
SM
9502021-04-29 Simon Marchi <simon.marchi@efficios.com>
951
952 * auto-load.h: Split namespace declaration.
953
89ba430c
SM
9542021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
955
956 * infrun.c (save_waitstatus): Move variables to inner scope.
957
8eb82ba1
AB
9582021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * NEWS: Fix typo and stray full stop.
961
db2534b7
TT
9622021-04-28 Tom Tromey <tromey@adacore.com>
963
964 * ada-exp.y (primary): Use new type for null pointer.
965 * ada-lang.c (ada_type_match): Remove "may_deref"
966 parameter. Handle null pointer.
967 (ada_args_match): Update.
968 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
969 Handle null pointer.
970
edeaceda
AB
9712021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
972
973 * NEWS: Mention new commands.
974 * python/python.c (python_ignore_environment): New static global.
975 (show_python_ignore_environment): New function.
976 (set_python_ignore_environment): New function.
977 (python_dont_write_bytecode): New static global.
978 (show_python_dont_write_bytecode): New function.
979 (set_python_dont_write_bytecode): New function.
980 (_initialize_python): Register new commands.
981
041ca48e
AB
9822021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * extension-priv.h (struct extension_language_ops): Rename
985 'finish_initialization' to 'initialize'.
986 * extension.c (finish_ext_lang_initialization): Renamed to...
987 (ext_lang_initialization): ...this, update comment, and updated
988 the calls to reflect the change in struct extension_language_ops.
989 * extension.h (finish_ext_lang_initialization): Renamed to...
990 (ext_lang_initialization): ...this.
991 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
992 (gdbscm_initialize): ...this, update comment at definition.
993 (guile_extension_ops): Update.
994 * main.c (captured_main_1): Update call to
995 finish_ext_lang_initialization.
996 * python/python.c (gdbpy_finish_initialization): Rename to...
997 (gdbpy_initialize): ...this, update comment at definition, and
998 update call to do_finish_initialization.
999 (python_extension_ops): Update.
1000 (do_finish_initialization): Rename to...
1001 (do_initialize): ...this, and update comment.
1002
1178f01a
AB
10032021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1004
1005 * main.c (captured_main_1): Add a call to
1006 finish_ext_lang_initialization.
1007 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1008
880ae75a
AB
10092021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1012 (gdbscm_finish_initialization): Add code moved from
1013 _initialize_guile.
1014 (_initialize_guile): Move code to gdbscm_finish_initialization.
1015 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1016 _initialize_scm_arch.
1017 (_initialize_scm_arch): New function.
1018 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1019 into _initialize_scm_block.
1020 (_initialize_scm_block): New function.
1021 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1022 into _initialize_scm_frame.
1023 (_initialize_scm_frame): New function.
1024 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1025 into _initialize_scm_objfile.
1026 (_initialize_scm_objfile): New function.
1027 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1028 code into _initialize_scm_progspace.
1029 (_initialize_scm_progspace): New function.
1030 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1031 into _initialize_scm_symbol.
1032 (_initialize_scm_symbol): New function.
1033 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1034 into _initialize_scm_symtab.
1035 (_initialize_scm_symtab): New function.
1036 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1037 _initialize_scm_type.
1038 (_initialize_scm_type): New function.
1039
8e3685bf
AB
10402021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * python/py-arch.c (_initialize_py_arch): New function.
1043 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1044 * python/py-block.c (_initialize_py_block): New function.
1045 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1046 * python/py-inferior.c (_initialize_py_inferior): New function.
1047 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1048 * python/py-objfile.c (_initialize_py_objfile): New function.
1049 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1050 * python/py-progspace.c (_initialize_py_progspace): New function.
1051 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1052 * python/py-registers.c (_initialize_py_registers): New function.
1053 (gdbpy_initialize_registers): Move code to
1054 _initialize_py_registers.
1055 * python/py-symbol.c (_initialize_py_symbol): New function.
1056 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1057 * python/py-symtab.c (_initialize_py_symtab): New function.
1058 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1059 * python/py-type.c (_initialize_py_type): New function.
1060 (gdbpy_initialize_types): Move code to _initialize_py_type.
1061 * python/py-unwind.c (_initialize_py_unwind): New function.
1062 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1063 * python/python.c (_initialize_python): Move call to
1064 do_start_initialization to gdbpy_finish_initialization.
1065 (gdbpy_finish_initialization): Add call to
1066 do_start_initialization.
1067
913832e9
AB
10682021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * extension.c (struct scoped_default_signal): New struct.
1071 (scoped_default_sigint): New typedef.
1072 (finish_ext_lang_initialization): Make use of
1073 scoped_default_sigint.
1074
a3b5ef3e
AB
10752021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1076
1077 * main.c (captured_main_1): Don't pass argument to gdb_init.
1078 * top.c (gdb_init): Remove unused argument, and add header
1079 comment.
1080 * top.h (gdb_init): Remove argument.
1081
b9f90c72
LM
10822021-04-27 Luis Machado <luis.machado@linaro.org>
1083
1084 * psymtab.c (psymbol_functions::dump): Output newline.
1085 Remove wrap.
1086 * symmisc.c (dump_objfile): Likewise.
1087
2c473def
MW
10882021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1089 Simon Marchi <simon.marchi@polymtl.ca>
1090
1091 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1092 when attaching the 'auto_load_new_objfile' observer, so
1093 other observers can specify it as a dependency.
1094 * gdb/auto-load.h (struct token): Declare
1095 'auto_load_new_objfile_observer_token' as token to be used
1096 for the 'auto_load_new_objfile' observer.
1097 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1098 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1099 observer, so it gets notified after the latter.
1100
9a6e099f
MW
11012021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1102 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * unittests/observable-selftests.c (dependency_test_counters):
1105 New.
1106 (observer_token0, observer_token1, observer_token2,
1107 observer_token3, observer_token4, observer_token5): New.
1108 (struct dependency_observer_data): New struct.
1109 (observer_dependency_test_callback): New function.
1110 (test_observers): New.
1111 (run_dependency_test): New function.
1112 (test_dependency): New.
1113 (_initialize_observer_selftest): Register dependency test.
1114
bea3329b
SM
11152021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1116
1117 PR gdb/27773
1118 * cli/cli-dump.c (dump_binary_file): Check result of
1119 gdb_fopen_cloexec.
1120
c290cb01
ST
11212021-04-25 Sergei Trofimovich <siarheit@google.com>
1122
1123 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1124 by passing `process_stratum_target*` parameter.
1125
fbb46296
LS
11262021-04-25 Lancelot Six <lsix@lancelotsix.com>
1127
1128 PR gdb/22640
1129 * typeprint.h (struct type_print_options): Add print_in_hex
1130 flag.
1131 (struct print_offset_data): Add print_in_hex flag, add a
1132 constructor accepting a type_print_options* argument.
1133 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1134 default value for print_in_hex.
1135 (print_offset_data::indentation): Allow more horizontal space.
1136 (print_offset_data::print_offset_data): Add ctor.
1137 (print_offset_data::maybe_print_hole, print_offset_data::update):
1138 Handle the print_in_hex flag.
1139 (whatis_exp): Handle 'x' and 'd' flags.
1140 (print_offsets_and_sizes_in_hex): Declare.
1141 (set_print_offsets_and_sizes_in_hex): Create.
1142 (show_print_offsets_and_sizes_in_hex): Create.
1143 (_initialize_typeprint): Update help message for the ptype
1144 command, register the 'set print type hex' and 'show print type
1145 hex' commands.
1146 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1147 (c_type_print_base): Construct the print_offset_data
1148 object using the type_print_optons parameter.
1149 * rust-lang.c (rust_language::print_type): Construct the
1150 print_offset_data object using the type_print_optons parameter.
1151 * NEWS: Mention the new flags of the ptype command.
1152
18bbba46
LS
11532021-04-25 Lancelot Six <lsix@lancelotsix.com>
1154
1155 * typeprint.h (struct type_print_options): Move before
1156 print_offset_data.
1157
77393c9b
JB
11582021-04-25 Joel Brobecker <brobecker@adacore.com>
1159
1160 GDB 10.2 released.
1161
98c897e3
SM
11622021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1163
1164 * observable.c (observer_debug): Change to bool.
1165
9fc29955
AB
11662021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * dwarf2/read.c: Add 'unordered_set' include.
1169 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1170 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1171 of per_Bfd->filenames_cache cache, and use function local
1172 filenames_cache instead. Reindent.
1173 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1174
0406545d
SM
11752021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * breakpoint.c (iterate_over_bp_locations): Change callback to
1178 function view, remove data parameter.
1179 * breakpoint.h (iterate_over_bp_locations): Likewise.
1180 * record-full.c (record_full_sync_record_breakpoints): Remove
1181 data parameter.
1182
432ce4cf
TT
11832021-04-22 Tom Tromey <tom@tromey.com>
1184
1185 * c-typeprint.c (c_type_print_base_struct_union): Use
1186 print_spaces_filtered_with_print_options.
1187
e25d6d93
SM
11882021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1189
1190 PR gdb/27757
1191 * python/py-type.c (typy_range): Check that bounds are constant
1192 before accessing them as such.
1193 * guile/scm-type.c (gdbscm_type_range): Likewise.
1194
4efeb0d3
TBA
11952021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1196
1197 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1198 * inferior.c (inferior::add_continuation): New method, adapted
1199 from 'add_inferior_continuation'.
1200 (inferior::do_all_continuations): New method, adapted from
1201 'do_all_inferior_continuations'.
1202 (inferior::~inferior): Clear the list of continuations directly.
1203 * inferior.h (class inferior) <continuations>: Rename into...
1204 <m_continuations>: ...this and make private.
1205 * continuations.c: Remove.
1206 * continuations.h: Remove.
1207 * event-top.c: Don't include "continuations.h".
1208
1209 Update the users below.
1210 * inf-loop.c (inferior_event_handler)
1211 * infcmd.c (attach_command)
1212 (notice_new_inferior): Update.
1213
c4c493de
TBA
12142021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1215
1216 * inferior.h (class inferior) <continuations>: Change the type
1217 to be an std::list of std::function's.
1218 Update the references and uses below.
1219 * continuations.c (struct continuation): Delete.
1220 (make_continuation): Delete.
1221 (do_my_continuations_1): Delete.
1222 (do_my_continuations): Delete.
1223 (discard_my_continuations_1): Delete.
1224 (discard_my_continuations): Delete.
1225 (add_inferior_continuation): Update.
1226 (do_all_inferior_continuations): Update.
1227 (discard_all_inferior_continuations): Update.
1228 * continuations.h (add_inferior_continuation): Update to take
1229 an std::function as the parameter.
1230 * infcmd.c (struct attach_command_continuation_args): Delete.
1231 (attach_command_continuation): Delete.
1232 (attach_command_continuation_free_args): Delete.
1233 (attach_command): Update.
1234 (notice_new_inferior): Update.
1235
1194676e
TBA
12362021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1237
1238 * continuations.h: Update the general comment.
1239 * inferior.h (class inferior) <continuations>: Update the comment.
1240 * interps.c: Do not include "continuations.h".
1241
35682f0a
TBA
12422021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1243
1244 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1245 parameter. Update the references below.
1246 * continuations.c (do_my_continuations_1)
1247 (do_my_continuations)
1248 (do_all_inferior_continuations): Update.
1249 * inf-loop.c (inferior_event_handler): Update.
1250 * infcmd.c (attach_command_continuation): Update.
1251
6fee5eee
TBA
12522021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1253
1254 * infcmd.c (attach_post_wait): Update the function comment.
1255
27d0790a
TBA
12562021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1257
1258 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1259 Update the references below.
1260 (struct attach_command_continuation_args)
1261 (attach_command_continuation)
1262 (attach_command_continuation_free_args)
1263 (attach_command)
1264 (notice_new_inferior): Update to remove the reference to 'args'.
1265
c39ebbf4
TV
12662021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1267 Tom de Vries <tdevries@suse.de>
1268
1269 PR remote/27710
1270 * remote.c (remote_target_is_non_stop_p): New function.
1271 * remote.h (remote_target_is_non_stop_p): Declare.
1272 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1273 to check non-stopness using notif_state->remote rather current target.
1274
22f80c0f
TT
12752021-04-22 Tom Tromey <tom@tromey.com>
1276
1277 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1278 (struct typed_val_int) <val>: Now ULONGEST.
1279 (rust_parser::parse_array_type): Remove negative check.
1280 (rust_lex_int_test): Change 'value' to ULONGEST.
1281
05f3c0f0
AB
12822021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1283
1284 * arch-utils.c (default_addressable_memory_unit_size): Return a
1285 value based on bfd's bits per byte.
1286
7e7a35fb
TT
12872021-04-21 Tom Tromey <tom@tromey.com>
1288
1289 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1290 unsigned char.
1291 (struct dwarf2_per_cu_data): Rearrange.
1292 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1293 unsigned char.
1294 (struct comp_unit_head): Rearrange.
1295 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1296
ff507520
TV
12972021-04-21 Tom de Vries <tdevries@suse.de>
1298
1299 PR build/27681
1300 * configure.ac: Remove --without-included-regex/--with-included-regex.
1301 * config.in: Regenerate.
1302 * configure: Regenerate.
1303 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1304
10a636cc
TBA
13052021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1306
1307 * breakpoint.h (create_breakpoint): Add a new parameter,
1308 'force_condition'.
1309 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1310 argument when 'parse_extra' is false to check if the condition
1311 is invalid at all of the breakpoint locations.
1312 Update the users below.
1313 (break_command_1)
1314 (dprintf_command)
1315 (trace_command)
1316 (ftrace_command)
1317 (strace_command)
1318 (create_tracepoint_from_upload): Update.
1319 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1320 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1321 * python/py-breakpoint.c (bppy_init): Update.
1322 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1323
85c88e2a
TBA
13242021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1325
1326 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1327 disabled-by-condition locations on MI-like output.
1328 (breakpoint_1): Do not display the disabled-by-condition footnote
1329 if the output is MI-like.
1330
fd34472c
FC
13312021-04-21 Frederic Cambus <fred@statdns.com>
1332
1333 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1334 update year range in generated copyright notices.
1335
184dcd81
FW
13362021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1337
1338 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1339 qualifier_seq_noopt.
1340
525174e8
FW
13412021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1342
1343 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1344
f5dc2ee3
AB
13452021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1348 (producer_is_icc): Replace use of std::regex with gdb's
1349 compiled_regex.
1350
42c2c694
TT
13512021-04-17 Tom Tromey <tom@tromey.com>
1352
1353 PR gdb/23743:
1354 * dwarf2/read.c (class offset_view): New.
1355 (struct symbol_table_slot): Remove.
1356 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1357 <symbol_name_index, symbol_vec_index>: New methods.
1358 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1359 Rewrite.
1360 (read_gdb_index_from_buffer): Update.
1361 (struct dw2_symtab_iterator) <vec>: Change type.
1362 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1363 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1364 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1365 <append_array, append_offset>: New methods.
1366 (write_hash_table, add_address_entry, write_gdbindex_1)
1367 (write_debug_names): Update.
1368 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1369
da314dd3
TT
13702021-04-17 Tom Tromey <tom@tromey.com>
1371
1372 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1373 partial_symtabs.
1374
0b7b2c2a
TT
13752021-04-17 Tom Tromey <tom@tromey.com>
1376
1377 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1378 from map_matching_symbols. Change parameters.
1379 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1380 Rename from map_matching_symbols. Change parameters.
1381 * dwarf2/read.c (struct dwarf2_gdb_index)
1382 <expand_matching_symbols>: Rename from map_matching_symbols.
1383 Change parameters.
1384 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1385 Rename from map_matching_symbols. Change parameters.
1386 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1387 dw2_map_matching_symbols. Change parameters.
1388 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1389 implementation.
1390 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1391 map_matching_symbols. Change parameters.
1392 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1393 from map_matching_symbols. Change parameters.
1394 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1395 map_matching_symbols. Change parameters.
1396 * ada-lang.c (map_matching_symbols): New function.
1397 (add_nonlocal_symbols): Update.
1398
90160b57
TT
13992021-04-17 Tom Tromey <tom@tromey.com>
1400
1401 * quick-symbol.h (struct quick_symbol_functions)
1402 <expand_symtabs_with_fullname>: Remove.
1403 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1404 Remove.
1405 * psympriv.h (struct psymbol_functions)
1406 <expand_symtabs_with_fullname>: Remove.
1407 * dwarf2/read.c (struct dwarf2_base_index_functions)
1408 <expand_symtabs_with_fullname>: Remove.
1409 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1410 Remove.
1411 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1412 Update comment.
1413 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1414 Rewrite.
1415
7089bd88
TT
14162021-04-17 Tom Tromey <tom@tromey.com>
1417
1418 * symfile-debug.c (objfile::expand_symtabs_for_function):
1419 Rewrite.
1420 * quick-symbol.h (struct quick_symbol_functions)
1421 <expand_symtabs_for_function>: Remove.
1422 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1423 Remove.
1424 * psympriv.h (struct psymbol_functions)
1425 <expand_symtabs_for_function>: Remove.
1426 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1427 Update comment.
1428 * dwarf2/read.c (struct dwarf2_gdb_index)
1429 <expand_symtabs_for_function>: Remove.
1430 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1431 Remove.
1432 (find_slot_in_mapped_hash): Remove.
1433 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1434 (dw2_symtab_iter_init): Remove one overload.
1435 (dwarf2_gdb_index::expand_symtabs_for_function)
1436 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1437
536a40f3
TT
14382021-04-17 Tom Tromey <tom@tromey.com>
1439
1440 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1441 Rewrite.
1442 * quick-symbol.h (struct quick_symbol_functions)
1443 <map_symtabs_matching_filename>: Remove.
1444 * psymtab.c (partial_map_expand_apply)
1445 (psymbol_functions::map_symtabs_matching_filename): Remove.
1446 * psympriv.h (struct psymbol_functions)
1447 <map_symtabs_matching_filename>: Remove.
1448 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1449 Update comment.
1450 * dwarf2/read.c (struct dwarf2_base_index_functions)
1451 <map_symtabs_matching_filename>: Remove.
1452 (dw2_map_expand_apply)
1453 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1454 Remove.
1455
84d865e3
TT
14562021-04-17 Tom Tromey <tom@tromey.com>
1457
1458 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1459 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1460 Remove.
1461 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1462 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1463 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1464 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1465 Remove.
1466 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1467 (dwarf2_gdb_index::lookup_symbol)
1468 (dwarf2_debug_names_index::lookup_symbol): Remove.
1469
3bfa51a7
TT
14702021-04-17 Tom Tromey <tom@tromey.com>
1471
1472 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1473 * symmisc.c (maintenance_expand_symtabs): Update.
1474 * symfile.c (expand_symtabs_matching): Update.
1475 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1476 parameter.
1477 * quick-symbol.h (struct quick_symbol_functions)
1478 <expand_symtabs_matching>: Add 'domain' parameter.
1479 * psymtab.c (recursively_search_psymtabs)
1480 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1481 parameter.
1482 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1483 Add 'domain' parameter.
1484 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1485 'domain' parameter.
1486 * linespec.c (iterate_over_all_matching_symtabs): Update.
1487 * dwarf2/read.c (struct dwarf2_gdb_index)
1488 <expand_symtabs_matching>: Add 'domain' parameter.
1489 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1490 'domain' parameter.
1491 (dw2_expand_symtabs_matching)
1492 (dwarf2_gdb_index::expand_symtabs_matching)
1493 (dw2_debug_names_iterator)
1494 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1495 parameter.
1496
03a8ea51
TT
14972021-04-17 Tom Tromey <tom@tromey.com>
1498
1499 * symtab.c (global_symbol_searcher::expand_symtabs)
1500 (default_collect_symbol_completion_matches_break_on): Update.
1501 * symmisc.c (maintenance_expand_symtabs): Update.
1502 * symfile.h (expand_symtabs_matching): Add search_flags
1503 parameter.
1504 * symfile.c (expand_symtabs_matching): Add search_flags
1505 parameter.
1506 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1507 search_flags parameter.
1508 * quick-symbol.h (struct quick_symbol_functions)
1509 <expand_symtabs_matching>: Add search_flags parameter.
1510 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1511 * psymtab.c (recursively_search_psymtabs)
1512 (psymbol_functions::expand_symtabs_matching): Add search_flags
1513 parameter.
1514 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1515 Add search_flags parameter.
1516 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1517 search_flags parameter.
1518 * linespec.c (iterate_over_all_matching_symtabs): Update.
1519 * dwarf2/read.c (struct dwarf2_gdb_index)
1520 <expand_symtabs_matching>: Add search_flags parameter.
1521 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1522 search_flags parameter.
1523 (dw2_map_matching_symbols): Update.
1524 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1525 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1526 parameter.
1527 (dw2_debug_names_iterator): Change block_index to search flags.
1528 <m_block_index>: Likewise.
1529 (dw2_debug_names_iterator::next)
1530 (dwarf2_debug_names_index::lookup_symbol)
1531 (dwarf2_debug_names_index::expand_symtabs_for_function)
1532 (dwarf2_debug_names_index::map_matching_symbols)
1533 (dwarf2_debug_names_index::map_matching_symbols): Update.
1534 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1535 search_flags parameter.
1536 * ada-lang.c (ada_add_global_exceptions)
1537 (collect_symbol_completion_matches): Update.
1538
df35e626
TT
15392021-04-17 Tom Tromey <tom@tromey.com>
1540
1541 * symtab.c (default_collect_symbol_completion_matches_break_on):
1542 Update.
1543 * symfile.h (expand_symtabs_matching): Return bool.
1544 * symfile.c (expand_symtabs_matching): Return bool.
1545 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1546 bool.
1547 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1548 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1549 bool.
1550 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1551 bool.
1552 * psympriv.h (struct psymbol_functions)
1553 <expand_symtabs_matching>: Return bool.
1554 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1555 bool.
1556 * dwarf2/read.c (struct dwarf2_gdb_index)
1557 <expand_symtabs_matching>: Return bool.
1558 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1559 Return bool.
1560 (dw2_expand_symtabs_matching_symbol): Return bool.
1561 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1562 (dw2_expand_symtabs_matching)
1563 (dwarf2_gdb_index::expand_symtabs_matching)
1564 (dwarf2_debug_names_index::expand_symtabs_matching)
1565 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1566
e357e990
TT
15672021-04-17 Tom Tromey <tom@tromey.com>
1568
1569 * quick-symbol.h (enum block_search_flag_values): New.
1570 (block_search_flags): New enum flags type.
1571
3cbc7ac3
TT
15722021-04-16 Tom Tromey <tom@tromey.com>
1573
1574 * rust-parse.c: New file.
1575 * rust-exp.y: Remove.
1576 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1577 (SFILES): Remove rust-exp.y.
1578 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1579
1b6b755e
LM
15802021-04-16 Luis Machado <luis.machado@linaro.org>
1581
1582 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1583
c45ecc9d
JB
15842021-04-15 John Baldwin <jhb@FreeBSD.org>
1585
1586 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1587 use throughout file.
1588
a15a276b
TT
15892021-04-15 Tom Tromey <tromey@adacore.com>
1590
1591 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1592 arrays.
1593
644a2e75
TT
15942021-04-15 Tom Tromey <tromey@adacore.com>
1595
1596 * printcmd.c (print_variable_and_value): Use
1597 common_val_print_checked.
1598
9e5e03df
TT
15992021-04-15 Tom Tromey <tromey@adacore.com>
1600
1601 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1602 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1603 Update.
1604 * p-exp.y (variable): Update.
1605 * m2-exp.y (variable): Update.
1606 * go-exp.y (variable): Update.
1607 * expprint.c (dump_for_expression): New overload.
1608 * expop.h (check_objfile): New overload.
1609 (check_constant): New overload.
1610 (class var_value_operation): Use block_symbol.
1611 <get_symbol>: Rewrite.
1612 * eval.c (var_value_operation::evaluate)
1613 (var_value_operation::evaluate_funcall)
1614 (var_value_operation::evaluate_for_address)
1615 (var_value_operation::evaluate_for_address)
1616 (var_value_operation::evaluate_with_coercion)
1617 (var_value_operation::evaluate_for_sizeof)
1618 (var_value_operation::evaluate_for_cast): Update.
1619 * d-exp.y (PrimaryExpression): Update.
1620 * c-exp.y (variable): Update.
1621 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1622 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1623 (ada_var_value_operation::evaluate)
1624 (ada_var_value_operation::resolve)
1625 (ada_funcall_operation::resolve): Update.
1626 * ada-exp.y (write_var_from_sym, write_object_renaming)
1627 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1628 (maybe_overload): Update.
1629 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1630
5809fbf2
TT
16312021-04-15 Tom Tromey <tom@tromey.com>
1632 Andrew Burgess <andrew.burgess@embecosm.com>
1633
1634 * NEWS: Add entry.
1635 * main.c (captured_main_1): Call check_quiet_mode.
1636 * top.c (startup_quiet): New global.
1637 (check_quiet_mode): New function.
1638 (show_startup_quiet): New function.
1639 (init_main): Register new command.
1640 * top.h (check_quiet_mode): Declare.
1641
92e4e97a
AB
16422021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1643
1644 PR cli/25956
1645 * NEWS: Mention new early init files and command line options.
1646 * config.in: Regenerate.
1647 * configure: Regenerate.
1648 * configure.ac: Define GDBEARLYINIT.
1649 * main.c (get_earlyinit_files): New function.
1650 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1651 CMDARG_EARLYINIT_COMMAND.
1652 (captured_main_1): Add support for new command line flags, and for
1653 processing startup files.
1654 (print_gdb_help): Include startup files in the output.
1655
54b4dcc5
AB
16562021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1659 (relocate_file_path_maybe_in_datadir): ...this.
1660 (class gdb_initfile_finder): New class.
1661 (get_init_files): Now uses gdb_initfile_finder.
1662 (print_gdb_help): Print 'None found' when there are no init files.
1663
34dc0f95
TBA
16642021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1665
1666 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1667 corresponding child of the abstract DIE when iterating the
1668 children of the concrete DIE.
1669
329534fd
TV
16702021-04-13 Tom de Vries <tdevries@suse.de>
1671
1672 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1673 type to regoff_t *.
1674
d9d2ef05
LM
16752021-04-13 Luis Machado <luis.machado@linaro.org>
1676
1677 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1678 hex values.
1679
c8a37944
WS
16802021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1681
1682 * rs6000-tdep.c: Add support for single-stepping of
1683 prefixed instructions.
1684
b722acca
WS
16852021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1686
e3d528d7
WS
1687 PR gdb/27525
1688 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1689 handle the addpcis/lnia instruction.
1690
16912021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1692
b722acca
WS
1693 * MAINTAINERS (Write After Approval): Add myself.
1694
6ba4cb84
CL
16952021-4-12 Carl Love <cel@us.ibm.com>
1696
1697 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1698 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1699 float128.
1700
d4717483
SM
17012021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1702
1703 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1704 * nat/windows-nat.h: Likewise.
1705
b3885679
EZ
17062021-04-10 Eli Zaretskii <eliz@gnu.org>
1707
1708 * windows-nat.c (windows_nat::handle_load_dll): Call
1709 windows_add_dll if get_image_name failed to glean the name of the
1710 DLL by using the lpImageName pointer.
1711 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1712 (windows_add_dll): Now does what windows_add_all_dlls did before,
1713 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1714 specifies the address where the DLL was loaded into the inferior,
1715 and looks for the single DLL loaded at that address.
1716
1ef6a596
LM
17172021-04-09 Luis Machado <luis.machado@linaro.org>
1718
1719 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1720
83a559f7
DQ
17212021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1722
1723 * darwin-nat.c (darwin_nat_target::resume): Remove status
1724 variable.
1725
16e311ab
FW
17262021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1727
1728 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1729 prologue end for Intel compilers.
1730 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1731 * producer.c (producer_is_icc_ge_19): New function.
1732 * producer.h (producer_is_icc_ge_19): New declaration.
1733
fbb3bcfc
FW
17342021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1735
1736 * producer.c: (producer_is_icc): Update for new version scheme.
1737 (producer_parsing_tests): Update names and expected results.
1738 * producer.h: (producer_is_icc): Update comment accordingly.
1739
e97007b6
SM
17402021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1741
1742 * target.h (struct target_ops) <follow_fork>: Return void.
1743 (target_follow_fork): Likewise.
1744 * target.c (default_follow_fork): Likewise.
1745 (target_follow_fork): Likewise.
1746 * infrun.c (follow_fork_inferior): Adjust.
1747 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1748 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1749 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1750 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1751 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1752 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1753 * remote.c (class remote_target) <follow_fork>: Likewise.
1754 (remote_target::follow_fork): Likewise.
1755 * target-delegates.c: Re-generate.
1756
dc2b480f
WP
17572021-04-07 Weimin Pan <weimin.pan@oracle.com>
1758
1759 * ctfread.c (fetch_tid_type): New function, use throughout file.
1760 (read_forward_type): New function.
1761 (read_type_record): Call read_forward_type.
1762
0a703a4c
AB
17632021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1764
1765 * f-exp.h (class fortran_structop_operation): New class.
1766 * f-exp.y (exp): Create fortran_structop_operation instead of the
1767 generic structop_operation.
1768 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1769 expression as EVAL_NORMAL if the result type was dynamic so we can
1770 extract the actual array bounds.
1771 (fortran_structop_operation::evaluate): New function.
1772
17732021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * eval.c (evaluate_subexp_standard): Remove
1776 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1777 STRUCTOP_PTR.
1778
30ab3586
AB
17792021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * valops.c (value_cast): Call value_deeply_equal before performing
1782 any cast.
1783
5e18990f
AB
17842021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1787 the function.
1788
56d467f4
CT
17892021-04-07 Caroline Tice <cmtice@google.com>
1790
1791 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1792 the search paths used resolve relative location of .dwo file.
1793
1fd999d9
AB
17942021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1797 assert.
1798 (dwarf2_section_info::get_file_name): Add an assert.
1799 (dwarf2_section_info::read_string): Display a minimal, sane error
1800 when the dwarf2_section_info is not associated with a bfd section.
1801
79c02443
AB
18022021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * top.c (staged_gdb_datadir): Update comment.
1805 (set_gdb_datadir): Copy the value of gdb_datadir back into
1806 staged_datadir.
1807 (init_main): Initialise staged_gdb_datadir.
1808
340d00fb
TV
18092021-04-06 Tom de Vries <tdevries@suse.de>
1810
1811 PR breakpoints/25884
1812 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1813 stepping range.
1814
d811a7cf
TV
18152021-04-06 Tom de Vries <tdevries@suse.de>
1816
1817 PR tui/27680
1818 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1819 to style.parse.
1820
306b445a
SM
18212021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * avr-tdep.c (avr_frame_unwind_cache): Use
1824 trad_frame_saved_reg::is_addr.
1825
9161c89a
SM
18262021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1827
1828 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1829 adjust callers.
1830
0072c873
SM
18312021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1832
1833 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1834 objfile parameter for objfile_per_bfd_storage, adjust callers.
1835 (struct standard_psymtab) <standard_psymtab>: Likewise.
1836 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1837 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1838 * ctfread.c (struct ctf_psymtab): Likewise.
1839 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1840 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1841 (dwarf2_create_include_psymtab): Likewise.
1842 * objfiles.h (struct objfile_per_bfd_storage)
1843 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1844 <get_bfd>: New method.
1845 <m_bfd>: New field.
1846 * objfiles.c (get_objfile_bfd_data): Adjust.
1847
9984dd99
SM
18482021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1849
1850 * psymtab.c (partial_symtab::partial_symtab): Change
1851 last_objfile_name to be an std::string.
1852 * symfile.c (allocate_symtab): Likewise.
1853
4a4f97c1
SM
18542021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1855
1856 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1857 methods.
1858 (struct objfile) <intern>: Use
1859 objfile::objfile_per_bfd_storage::intern.
1860
0672875f
SM
18612021-04-01 Simon Marchi <simon.marchi@efficios.com>
1862
1863 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1864 with type::is_flag_enum.
1865
9902b327
SM
18662021-04-01 Simon Marchi <simon.marchi@efficios.com>
1867
1868 * gdbtypes.h (struct type) <is_flag_enum,
1869 set_is_flag_enum>: New methods.
1870 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1871 write call sites to use type::set_is_flag_enum.
1872
3bc440a2
SM
18732021-04-01 Simon Marchi <simon.marchi@efficios.com>
1874
1875 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1876 with type::is_declared_class.
1877
aa70e35c
SM
18782021-04-01 Simon Marchi <simon.marchi@efficios.com>
1879
1880 * gdbtypes.h (struct type) <is_declared_class,
1881 set_is_declared_class>: New methods.
1882 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1883 write call sites to use type::set_is_declared_class.
1884
bfb9f5dc
BS
18852021-02-28 Boris Staletic <boris.staletic@gmail.com>
1886
1887 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1888 to avoid deprecation warnings.
1889
733f5eea
ML
18902021-04-01 Martin Liska <mliska@suse.cz>
1891
1892 * cp-name-parser.y: Use startswith instead of strncmp.
1893 * m2-exp.y: Likewise.
1894 * macroexp.c (substitute_args): Likewise.
1895 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1896 * rust-exp.y: Likewise.
1897
af82f89d
TT
18982021-03-31 Tom Tromey <tom@tromey.com>
1899
1900 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1901 with dw2_map_matching_symbols.
1902 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1903 dw2_expand_symtabs_matching.
1904
3570682a
TT
19052021-03-31 Tom Tromey <tromey@adacore.com>
1906
1907 * dwarf2/stringify.h: Fix typo.
1908
8a91fbdf
SM
19092021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 PR gdb/27541
1912 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1913 with objfiles using READNOW.
1914
9f67fc59
TT
19152021-03-29 Tom Tromey <tromey@adacore.com>
1916
1917 * top.c (check_frame_language_change): Update.
1918 * language.c (language_info): Remove parameter.
1919 * language.h (language_info): Remove parameter.
1920
9b8ffbf4
LM
19212021-03-29 Luis Machado <luis.machado@linaro.org>
1922
1923 * compile/compile.c (get_args): Don't add empty argv entries.
1924
25b48839
RO
19252021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1926
1927 gdb:
1928 * procfs.c (procfs_target::attach): Define inf.
1929 Use it.
1930 (procfs_target::create_inferior): Likewise.
1931
edc02ceb
TT
19322021-03-28 Tom Tromey <tom@tromey.com>
1933
1934 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1935 (elf_symfile_read): Simplify.
1936 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1937 (make_lazy_dwarf_reader): New function.
1938 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1939 (dwarf2_initialize_objfile): Return void. Remove index_kind
1940 parameter. Push on 'qf' list.
1941 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1942 type. Remove 'index_kind' parameter.
1943 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1944
6e23d91a
TT
19452021-03-27 Tom Tromey <tom@tromey.com>
1946
1947 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1948
594b8948
TT
19492021-03-27 Tom Tromey <tom@tromey.com>
1950
1951 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1952
efe1ecd8
LS
19532021-03-26 Lancelot Six <lsix@lancelotsix.com>
1954
1955 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1956 rid of 'local'.
1957
f4655dee
TT
19582021-03-26 Tom Tromey <tom@tromey.com>
1959
1960 * symtab.c (struct output_source_filename_data): Add 'output'
1961 method and operator().
1962 (output_source_filename_data::output): Rename from
1963 output_source_filename.
1964 (output_partial_symbol_filename): Remove.
1965 (info_sources_command): Update.
1966 (struct add_partial_filename_data): Add operator().
1967 (add_partial_filename_data::operator()): Rename from
1968 maybe_add_partial_symtab_filename.
1969 (make_source_files_completion_list): Update.
1970 * symfile.c (quick_symbol_functions): Update.
1971 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1972 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1973 'need_fullname'. Remove 'data' parameter.
1974 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1975 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1976 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1977 Change type of 'fun' and 'need_fullname'. Remove 'data'
1978 parameter.
1979 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1980 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1981 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1982 parameter.
1983 (mi_cmd_file_list_exec_source_files): Update.
1984 * dwarf2/read.c
1985 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1986
2315bb2d
TT
19872021-03-26 Tom Tromey <tom@tromey.com>
1988
1989 * ada-lang.c (struct match_data): Add operator().
1990 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1991 (callback): Remove 'callback'.
1992
e2cd5ca4
TT
19932021-03-26 Tom Tromey <tom@tromey.com>
1994
1995 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1996 call make_ignore_params once.
1997
cd43f63e
TT
19982021-03-26 Tom Tromey <tom@tromey.com>
1999
2000 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2001 "user" check.
2002
b4b1a226
SM
20032021-03-26 Simon Marchi <simon.marchi@efficios.com>
2004 Pedro Alves <pedro@palves.net>
2005
2006 * async-event.c: Include "infrun.h".
2007 (async_event_handler_marked): New.
2008 * async-event.h (async_event_handler_marked): Declare.
2009 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2010 inferior before calling target method. Don't commit-resumed if
2011 target_has_pending_events is true.
2012 * remote.c (remote_target::has_pending_events): New.
2013 * target-delegates.c: Regenerate.
2014 * target.c (target_has_pending_events): New.
2015 * target.h (target_ops::has_pending_events): New target method.
2016 (target_has_pending_events): New.
2017
1192f124
SM
20182021-03-26 Simon Marchi <simon.marchi@efficios.com>
2019 Pedro Alves <pedro@palves.net>
2020
2021 * infcmd.c (run_command_1, attach_command, detach_command)
2022 (interrupt_target_1): Use scoped_disable_commit_resumed.
2023 * infrun.c (do_target_resume): Remove
2024 target_commit_resume call.
2025 (commit_resume_all_targets): Remove.
2026 (maybe_set_commit_resumed_all_targets): New.
2027 (maybe_call_commit_resumed_all_targets): New.
2028 (enable_commit_resumed): New.
2029 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2030 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2031 (scoped_disable_commit_resumed::reset)
2032 (scoped_disable_commit_resumed::reset_and_commit)
2033 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2034 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2035 New.
2036 (proceed): Use scoped_disable_commit_resumed and
2037 maybe_call_commit_resumed_all_targets.
2038 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2039 * infrun.h (struct scoped_disable_commit_resumed): New.
2040 (maybe_call_commit_resumed_all_process_targets): New.
2041 (struct scoped_enable_commit_resumed): New.
2042 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2043 * process-stratum-target.h (class process_stratum_target):
2044 <commit_resumed_state>: New.
2045 * record-full.c (record_full_wait_1): Change commit_resumed_state
2046 around calling commit_resumed.
2047 * remote.c (class remote_target) <commit_resume>: Rename to...
2048 <commit_resumed>: ... this.
2049 (struct stop_reply): Move up.
2050 (remote_target::commit_resume): Rename to...
2051 (remote_target::commit_resumed): ... this. Check if there is any
2052 thread pending vCont resume.
2053 (remote_target::remote_stop_ns): Generate stop replies for resumed
2054 but pending vCont threads.
2055 (remote_target::wait_ns): Add gdb_assert.
2056 * target-delegates.c: Regenerate.
2057 * target.c (target_wait, target_resume): Assert that the current
2058 process_stratum target isn't in commit-resumed state.
2059 (defer_target_commit_resume): Remove.
2060 (target_commit_resume): Remove.
2061 (target_commit_resumed): New.
2062 (make_scoped_defer_target_commit_resume): Remove.
2063 (target_stop): Assert that the current process_stratum target
2064 isn't in commit-resumed state.
2065 * target.h (struct target_ops) <commit_resume>: Rename to ...
2066 <commit_resumed>: ... this.
2067 (target_commit_resume): Remove.
2068 (target_commit_resumed): New.
2069 (make_scoped_defer_target_commit_resume): Remove.
2070 * top.c (wait_sync_command_done): Use
2071 scoped_enable_commit_resumed.
2072
e5b9b39f
PA
20732021-03-26 Pedro Alves <pedro@palves.net>
2074
2075 * target.c (target_always_non_stop_p): Also check whether the
2076 target can async.
2077
bab287cd
TT
20782021-03-26 Tom Tromey <tom@tromey.com>
2079
2080 * dwarf2/read.c (dwarf2_read_debug_names)
2081 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2082 (dw2_debug_names_iterator::next, create_type_unit_group):
2083 Simplify.
2084
eff4f69d
PA
20852021-03-25 Pedro Alves <pedro@palves.net>
2086
2087 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2088 around setting the breakpoint.
2089
323fd5b9
PA
20902021-03-25 Pedro Alves <pedro@palves.net>
2091
2092 * remote.c
2093 (remote_target::check_pending_events_prevent_wildcard_vcont):
2094 Check whether the event's ptid is not null_ptid before looking up
2095 the corresponding inferior.
2096
d3cbca38
CD
20972021-03-24 Changbin Du <changbin.du@gmail.com>
2098
2099 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2100 read_code.
2101
328d42d8
SM
21022021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2103
2104 * target.h (current_top_target): Remove, make callers use the
2105 current inferior instead.
2106 * target.c (current_top_target): Remove.
2107
d777bf0d
SM
21082021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2109
2110 * target.h (target_shortname): Change to function declaration.
2111 (target_longname): Likewise.
2112 (target_attach_no_wait): Likewise.
2113 (target_post_attach): Likewise.
2114 (target_prepare_to_store): Likewise.
2115 (target_supports_enable_disable_tracepoint): Likewise.
2116 (target_supports_string_tracing): Likewise.
2117 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2118 (target_supports_dumpcore): Likewise.
2119 (target_dumpcore): Likewise.
2120 (target_can_run_breakpoint_commands): Likewise.
2121 (target_files_info): Likewise.
2122 (target_post_startup_inferior): Likewise.
2123 (target_insert_fork_catchpoint): Likewise.
2124 (target_remove_fork_catchpoint): Likewise.
2125 (target_insert_vfork_catchpoint): Likewise.
2126 (target_remove_vfork_catchpoint): Likewise.
2127 (target_insert_exec_catchpoint): Likewise.
2128 (target_remove_exec_catchpoint): Likewise.
2129 (target_set_syscall_catchpoint): Likewise.
2130 (target_rcmd): Likewise.
2131 (target_can_lock_scheduler): Likewise.
2132 (target_can_async_p): Likewise.
2133 (target_is_async_p): Likewise.
2134 (target_execution_direction): Likewise.
2135 (target_extra_thread_info): Likewise.
2136 (target_pid_to_exec_file): Likewise.
2137 (target_thread_architecture): Likewise.
2138 (target_find_memory_regions): Likewise.
2139 (target_make_corefile_notes): Likewise.
2140 (target_get_bookmark): Likewise.
2141 (target_goto_bookmark): Likewise.
2142 (target_stopped_by_watchpoint): Likewise.
2143 (target_stopped_by_sw_breakpoint): Likewise.
2144 (target_supports_stopped_by_sw_breakpoint): Likewise.
2145 (target_stopped_by_hw_breakpoint): Likewise.
2146 (target_supports_stopped_by_hw_breakpoint): Likewise.
2147 (target_have_steppable_watchpoint): Likewise.
2148 (target_can_use_hardware_watchpoint): Likewise.
2149 (target_region_ok_for_hw_watchpoint): Likewise.
2150 (target_can_do_single_step): Likewise.
2151 (target_insert_watchpoint): Likewise.
2152 (target_remove_watchpoint): Likewise.
2153 (target_insert_hw_breakpoint): Likewise.
2154 (target_remove_hw_breakpoint): Likewise.
2155 (target_can_accel_watchpoint_condition): Likewise.
2156 (target_can_execute_reverse): Likewise.
2157 (target_get_ada_task_ptid): Likewise.
2158 (target_filesystem_is_local): Likewise.
2159 (target_trace_init): Likewise.
2160 (target_download_tracepoint): Likewise.
2161 (target_can_download_tracepoint): Likewise.
2162 (target_download_trace_state_variable): Likewise.
2163 (target_enable_tracepoint): Likewise.
2164 (target_disable_tracepoint): Likewise.
2165 (target_trace_start): Likewise.
2166 (target_trace_set_readonly_regions): Likewise.
2167 (target_get_trace_status): Likewise.
2168 (target_get_tracepoint_status): Likewise.
2169 (target_trace_stop): Likewise.
2170 (target_trace_find): Likewise.
2171 (target_get_trace_state_variable_value): Likewise.
2172 (target_save_trace_data): Likewise.
2173 (target_upload_tracepoints): Likewise.
2174 (target_upload_trace_state_variables): Likewise.
2175 (target_get_raw_trace_data): Likewise.
2176 (target_get_min_fast_tracepoint_insn_len): Likewise.
2177 (target_set_disconnected_tracing): Likewise.
2178 (target_set_circular_trace_buffer): Likewise.
2179 (target_set_trace_buffer_size): Likewise.
2180 (target_set_trace_notes): Likewise.
2181 (target_get_tib_address): Likewise.
2182 (target_set_permissions): Likewise.
2183 (target_static_tracepoint_marker_at): Likewise.
2184 (target_static_tracepoint_markers_by_strid): Likewise.
2185 (target_traceframe_info): Likewise.
2186 (target_use_agent): Likewise.
2187 (target_can_use_agent): Likewise.
2188 (target_augmented_libraries_svr4_read): Likewise.
2189 (target_log_command): Likewise.
2190 * target.c (target_shortname): New.
2191 (target_longname): New.
2192 (target_attach_no_wait): New.
2193 (target_post_attach): New.
2194 (target_prepare_to_store): New.
2195 (target_supports_enable_disable_tracepoint): New.
2196 (target_supports_string_tracing): New.
2197 (target_supports_evaluation_of_breakpoint_conditions): New.
2198 (target_supports_dumpcore): New.
2199 (target_dumpcore): New.
2200 (target_can_run_breakpoint_commands): New.
2201 (target_files_info): New.
2202 (target_post_startup_inferior): New.
2203 (target_insert_fork_catchpoint): New.
2204 (target_remove_fork_catchpoint): New.
2205 (target_insert_vfork_catchpoint): New.
2206 (target_remove_vfork_catchpoint): New.
2207 (target_insert_exec_catchpoint): New.
2208 (target_remove_exec_catchpoint): New.
2209 (target_set_syscall_catchpoint): New.
2210 (target_rcmd): New.
2211 (target_can_lock_scheduler): New.
2212 (target_can_async_p): New.
2213 (target_is_async_p): New.
2214 (target_execution_direction): New.
2215 (target_extra_thread_info): New.
2216 (target_pid_to_exec_file): New.
2217 (target_thread_architecture): New.
2218 (target_find_memory_regions): New.
2219 (target_make_corefile_notes): New.
2220 (target_get_bookmark): New.
2221 (target_goto_bookmark): New.
2222 (target_stopped_by_watchpoint): New.
2223 (target_stopped_by_sw_breakpoint): New.
2224 (target_supports_stopped_by_sw_breakpoint): New.
2225 (target_stopped_by_hw_breakpoint): New.
2226 (target_supports_stopped_by_hw_breakpoint): New.
2227 (target_have_steppable_watchpoint): New.
2228 (target_can_use_hardware_watchpoint): New.
2229 (target_region_ok_for_hw_watchpoint): New.
2230 (target_can_do_single_step): New.
2231 (target_insert_watchpoint): New.
2232 (target_remove_watchpoint): New.
2233 (target_insert_hw_breakpoint): New.
2234 (target_remove_hw_breakpoint): New.
2235 (target_can_accel_watchpoint_condition): New.
2236 (target_can_execute_reverse): New.
2237 (target_get_ada_task_ptid): New.
2238 (target_filesystem_is_local): New.
2239 (target_trace_init): New.
2240 (target_download_tracepoint): New.
2241 (target_can_download_tracepoint): New.
2242 (target_download_trace_state_variable): New.
2243 (target_enable_tracepoint): New.
2244 (target_disable_tracepoint): New.
2245 (target_trace_start): New.
2246 (target_trace_set_readonly_regions): New.
2247 (target_get_trace_status): New.
2248 (target_get_tracepoint_status): New.
2249 (target_trace_stop): New.
2250 (target_trace_find): New.
2251 (target_get_trace_state_variable_value): New.
2252 (target_save_trace_data): New.
2253 (target_upload_tracepoints): New.
2254 (target_upload_trace_state_variables): New.
2255 (target_get_raw_trace_data): New.
2256 (target_get_min_fast_tracepoint_insn_len): New.
2257 (target_set_disconnected_tracing): New.
2258 (target_set_circular_trace_buffer): New.
2259 (target_set_trace_buffer_size): New.
2260 (target_set_trace_notes): New.
2261 (target_get_tib_address): New.
2262 (target_set_permissions): New.
2263 (target_static_tracepoint_marker_at): New.
2264 (target_static_tracepoint_markers_by_strid): New.
2265 (target_traceframe_info): New.
2266 (target_use_agent): New.
2267 (target_can_use_agent): New.
2268 (target_augmented_libraries_svr4_read): New.
2269 (target_log_command): New.
2270 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2271 * infrun.c (set_schedlock_func): Adjust.
2272 * mi/mi-main.c (exec_reverse_continue): Adjust.
2273 * reverse.c (exec_reverse_once): Adjust.
2274 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2275 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2276 * remote-sim.c (gdbsim_target::detach): Adjust.
2277 (gdbsim_target::files_info): Adjust.
2278
b64f703b
TT
22792021-03-24 Tom Tromey <tom@tromey.com>
2280
2281 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2282 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2283 (check_match, dw2_expand_symtabs_matching)
2284 (dwarf2_debug_names_index::map_matching_symbols)
2285 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2286
68f115f8
KS
22872021-03-24 Keith Seitz <keiths@redhat.com>
2288
2289 * compile/compile-cplus-types.c
2290 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2291 thinko.
2292
41c0087b
SM
22932021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2294
2295 * gdbarch.sh (gdbarch_data_registry): Make static.
2296 * gdbarch.c: Re-generate.
2297
ce192338
LM
22982021-03-24 Luis Machado <luis.machado@linaro.org>
2299
2300 * NEWS: Mention memory tagging changes.
2301
bef382e6
LM
23022021-03-24 Luis Machado <luis.machado@linaro.org>
2303
2304 * printcmd.c (decode_format): Handle the 'm' modifier.
2305 (do_examine): Display allocation tags when required/supported.
2306 (should_validate_memtags): New function.
2307 (print_command_1): Display memory tag mismatches.
2308 * valprint.c (show_memory_tag_violations): New function.
2309 (value_print_option_defs): Add new option "memory-tag-violations".
2310 (user_print_options) <memory_tag_violations>: Initialize to 1.
2311 * valprint.h (struct format_data) <print_tags>: New field.
2312 (value_print_options) <memory_tag_violations>: New field.
2313
48136e00
LM
23142021-03-24 Luis Machado <luis.machado@linaro.org>
2315
2316 * printcmd.c: Include gdbsupport/rsp-low.h.
2317 (memory_tag_list): New static global.
2318 (process_print_command_args): Factored out of
2319 print_command_1.
2320 (print_command_1): Use process_print_command_args.
2321 (show_addr_not_tagged, show_memory_tagging_unsupported)
2322 (memory_tag_command, memory_tag_print_tag_command)
2323 (memory_tag_print_logical_tag_command)
2324 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2325 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2326 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2327 functions.
2328 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2329
ffcc2a15
LM
23302021-03-24 Luis Machado <luis.machado@linaro.org>
2331
2332 * aarch64-linux-tdep.c
2333 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2334 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2335
cf44c9fa
LM
23362021-03-24 Luis Machado <luis.machado@linaro.org>
2337
2338 * aarch64-linux-tdep.c
2339 (aarch64_linux_report_signal_info): New function.
2340 (aarch64_linux_init_abi): Register
2341 aarch64_linux_report_signal_info as the report_signal_info hook.
2342 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2343 (SEGV_MTESERR): Define.
2344
b4a7d4fc
LM
23452021-03-24 Luis Machado <luis.machado@linaro.org>
2346
2347 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2348 (aarch64_linux_ltag_tests): New function.
2349 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2350
c7782e50
LM
23512021-03-24 Luis Machado <luis.machado@linaro.org>
2352
2353 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2354 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2355 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2356 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2357 functions.
2358 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2359 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2360 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2361 (aarch64_linux_get_ltag): New functions.
2362 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2363 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2364 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2365 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2366
1e735120
LM
23672021-03-24 Luis Machado <luis.machado@linaro.org>
2368
2369 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2370 bit.
2371 (struct smaps_data): New struct.
2372 (decode_vmflags): Handle the 'mt' flag.
2373 (parse_smaps_data): New function, refactored from
2374 linux_find_memory_regions_full.
2375 (linux_address_in_memtag_page): New function.
2376 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2377 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2378
93e447c6
LM
23792021-03-24 Luis Machado <luis.machado@linaro.org>
2380
2381 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2382 instead of char arrays.
2383
4601818e
LM
23842021-03-24 Luis Machado <luis.machado@linaro.org>
2385
2386 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2387 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2388 nat/aarch64-mte-linux-ptrace.h.
2389 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2390 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2391 override.
2392 <fetch_memtags>: New method override.
2393 <store_memtags>: New method override.
2394 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2395 (aarch64_linux_nat_target::fetch_memtags): New method.
2396 (aarch64_linux_nat_target::store_memtags): New method.
2397 * arch/aarch64-mte-linux.c: New file.
2398 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2399 (AARCH64_MTE_GRANULE_SIZE): Define.
2400 (aarch64_memtag_type): New enum.
2401 (aarch64_mte_get_tag_granules): New prototype.
2402 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2403 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2404 * nat/aarch64-mte-linux-ptrace.c: New file.
2405 * nat/aarch64-mte-linux-ptrace.h: New file.
2406
3f3bd8b8
LM
24072021-03-24 Luis Machado <luis.machado@linaro.org>
2408
2409 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2410 * nat/aarch64-mte-linux-ptrace.h: New file.
2411
5e984dbf
LM
24122021-03-24 Luis Machado <luis.machado@linaro.org>
2413
2414 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2415 (store_mteregs_to_thread): New function.
2416 (aarch64_linux_nat_target::fetch_registers): Update to call
2417 fetch_mteregs_from_thread.
2418 (aarch64_linux_nat_target::store_registers): Update to call
2419 store_mteregs_to_thread.
2420 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2421 (aarch64_cannot_store_register): Handle MTE registers.
2422 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2423 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2424 <has_mte>: New method.
2425 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2426
c1bd443b
LM
24272021-03-24 Luis Machado <luis.machado@linaro.org>
2428
2429 * aarch64-linux-nat.c
2430 (aarch64_linux_nat_target::read_description): Take MTE flag into
2431 account.
2432 Slight refactor to hwcap flag checking.
2433 * aarch64-linux-tdep.c
2434 (aarch64_linux_core_read_description): Likewise.
2435 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2436 MTE.
2437 (aarch64_read_description): Add mte_p parameter and update to use it.
2438 Update the documentation.
2439 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2440 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2441 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2442 (aarch64_create_target_description): Add mte_p parameter and update
2443 the code to use it.
2444 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2445 parameter.
2446 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2447 * features/aarch64-mte.c: New file, generated.
2448 * features/aarch64-mte.xml: New file.
2449
04245125
LM
24502021-03-24 Luis Machado <luis.machado@linaro.org>
2451
2452 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2453 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2454 * aarch64-linux-tdep.c: Likewise
2455 * arch/aarch64-mte-linux.h: New file.
2456
754487e2
LM
24572021-03-24 Luis Machado <luis.machado@linaro.org>
2458
2459 * remote: Include gdbsupport/selftest.h.
2460 (test_memory_tagging_functions): New function.
2461 (_initialize_remote): Register test_memory_tagging_functions.
2462
2c2e7f87
LM
24632021-03-24 Luis Machado <luis.machado@linaro.org>
2464
2465 * remote.c (PACKET_memory_tagging_feature): New enum.
2466 (remote_memory_tagging_p): New function.
2467 (remote_protocol_features): New "memory-tagging" entry.
2468 (remote_target::remote_query_supported): Handle memory tagging
2469 support.
2470 (remote_target::supports_memory_tagging): Implement.
2471 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2472 (create_store_memtags_request): New functions.
2473 (remote_target::fetch_memtags): Implement.
2474 (remote_target::store_memtags): Implement.
2475 (_initialize_remote): Add new "memory-tagging-feature"
2476 config command.
2477
c193949e
LM
24782021-03-24 Luis Machado <luis.machado@linaro.org>
2479
2480 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2481 (default_memtag_matches_p, default_set_memtags)
2482 (default_get_memtag): New functions.
2483 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2484 (default_memtag_matches_p, default_set_memtags)
2485 (default_get_memtag): New prototypes.
2486 * gdbarch.c: Regenerate.
2487 * gdbarch.h: Regenerate.
2488 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2489 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2490 (enum memtag_type): New enum.
2491
dbe692af
LM
24922021-03-24 Luis Machado <luis.machado@linaro.org>
2493
2494 * remote.c (remote_target) <supports_memory_tagging>: New method
2495 override.
2496 <fetch_memtags>: New method override.
2497 <store_memtags>: New method override.
2498 (remote_target::supports_memory_tagging): New method.
2499 (remote_target::fetch_memtags): New method.
2500 (remote_target::store_memtags): New method.
2501 * target-delegates.c: Regenerate.
2502 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2503 method.
2504 <fetch_memtags>: New virtual method.
2505 <store_memtags>: New virtual method.
2506 (target_supports_memory_tagging): Define.
2507 (target_fetch_memtags): Define.
2508 (target_store_memtags): Define.
2509 * target-debug.h (target_debug_print_size_t)
2510 (target_debug_print_const_gdb_byte_vector_r)
2511 (target_debug_print_gdb_byte_vector_r): New functions.
2512
66848ebc
SM
25132021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2514
2515 * target.h (target_longname): Remove.
2516
c8fbd44a
SM
25172021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2518
2519 * target.h (target_is_pushed): Remove, update callers to use
2520 inferior::target_is_pushed instead.
2521 * target.c (target_is_pushed): Remove.
2522
02980c56
SM
25232021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2524
2525 * target.h (push_target): Remove, update callers to use
2526 inferior::push_target.
2527 * target.c (push_target): Remove.
2528 * inferior.h (class inferior) <push_target>: New overload.
2529
fadf6add
SM
25302021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2531
2532 * target.h (unpush_target): Remove, update all callers
2533 to use `inferior::unpush_target` instead.
2534 (struct target_unpusher) <operator()>: Just declare.
2535 * target.c (unpush_target): Remove.
2536 (target_unpusher::operator()): New.
2537
702cf3f5
AB
25382021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2541 error.
2542 (process_full_comp_unit): Validate the top-level tag before
2543 processing the first DIE.
2544 (read_func_scope): Ensure we have a valid builder.
2545
46fec642
AB
25462021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2547
2548 * objc-lang.c (objc_demangle): Renamed to
2549 objc_language::demangle_symbol, and moved later in the file.
2550 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2551 member function.
2552 (objc_language::demangle_symbol): Defined outside of class
2553 declaration. The definition is the old objc_demangle with NULL
2554 changed to nullptr, and if conditions relating to nullptr pointers
2555 or null character checks made explicit.
2556 * objc-lang.h (objc_demangle): Delete declaration.
2557
08dedd66
ML
25582021-03-22 Martin Liska <mliska@suse.cz>
2559
2560 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2561 (_initialize_arm_tdep): Likewise.
2562
eb36a3eb
TT
25632021-03-20 Tom Tromey <tom@tromey.com>
2564
2565 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2566 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2567 * psymtab.h (make_psymbol_functions): Don't declare.
2568 * psymtab.c (make_psymbol_functions): Remove.
2569 (maintenance_print_psymbols): Update.
2570 * psympriv.h (struct psymbol_functions): Add no-argument
2571 constructor.
2572 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2573 <partial_symtabs>: Remove.
2574 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2575 * elfread.c (read_partial_symbols): Update.
2576 (elf_symfile_read): Remove check for existing partial symbols.
2577 Don't clear "qf".
2578 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2579 partial symbols.
2580 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2581 partial symtabs.
2582 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2583 parameter.
2584 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2585 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2586
e1114590
TT
25872021-03-20 Tom Tromey <tom@tromey.com>
2588
2589 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2590 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2591 * symfile-debug.c (objfile::has_partial_symbols)
2592 (objfile::find_last_source_symtab)
2593 (objfile::forget_cached_source_info)
2594 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2595 (objfile::print_stats, objfile::dump)
2596 (objfile::expand_symtabs_for_function)
2597 (objfile::expand_all_symtabs)
2598 (objfile::expand_symtabs_with_fullname)
2599 (objfile::map_matching_symbols)
2600 (objfile::expand_symtabs_matching)
2601 (objfile::find_pc_sect_compunit_symtab)
2602 (objfile::map_symbol_filenames)
2603 (objfile::find_compunit_symtab_by_address)
2604 (objfile::lookup_global_symbol_language)
2605 (objfile::require_partial_symbols): Update.
2606 * psymtab.c (maintenance_print_psymbols)
2607 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2608 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2609 * objfiles.c (objfile_relocate1): Update.
2610 * elfread.c (elf_symfile_read): Update.
2611
de909f0b
TT
26122021-03-20 Tom Tromey <tom@tromey.com>
2613
2614 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2615
caf8c1e5
TT
26162021-03-20 Tom Tromey <tom@tromey.com>
2617
2618 * psymtab.c (psymbol_functions::count_psyms): Rename.
2619 (psymbol_functions::print_stats): Update.
2620 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2621 method.
2622
3aa31ce7
TT
26232021-03-20 Tom Tromey <tom@tromey.com>
2624
2625 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2626 (psymbol_functions::find_pc_sect_psymtab): Rename.
2627 (psymbol_functions::find_pc_sect_compunit_symtab)
2628 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2629 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2630 Declare new method.
2631 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2632
7b249e47
TT
26332021-03-20 Tom Tromey <tom@tromey.com>
2634
2635 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2636 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2637 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2638 parameter.
2639 (add_psymbol_to_bcache): Remove.
2640 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2641 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2642 Likewise.
2643 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2644 <add_psymbol>: Likewise.
2645 (standard_psymtab, legacy_psymtab): Likewise.
2646 * mdebugread.c (parse_partial_symbols): Update.
2647 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2648 (handle_psymbol_enumerators): Update.
2649 (new_psymtab): Add partial_symtabs parameter.
2650 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2651 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2652 parameter.
2653 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2654 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2655 Update.
2656 * dbxread.c (read_dbx_symtab): Update.
2657 (start_psymtab): Add partial_symtabs parameter.
2658 (dbx_end_psymtab): Update.
2659 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2660 (ctf_psymtab): Add partial_symtabs parameter.
2661 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2662 Update.
2663 (scan_partial_symbols): Add partial_symtabs parameter.
2664 (scan_partial_symbols, elfctf_build_psymtabs)
2665 (ctf_psymtab_add_enums): Update.
2666
d1eef86d
TT
26672021-03-20 Tom Tromey <tom@tromey.com>
2668
2669 * symfile.c (read_symbols): Use objfile method.
2670 * symfile-debug.c (objfile::require_partial_symbols): New method.
2671 * psymtab.h (require_partial_symbols): Don't declare.
2672 * psymtab.c (require_partial_symbols): Use objfile method. Now
2673 static.
2674 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2675 (psymbol_functions::lookup_symbol)
2676 (psymbol_functions::lookup_global_symbol_language)
2677 (psymbol_functions::find_last_source_symtab)
2678 (psymbol_functions::forget_cached_source_info)
2679 (psymbol_functions::print_stats)
2680 (psymbol_functions::expand_symtabs_for_function)
2681 (psymbol_functions::expand_all_symtabs)
2682 (psymbol_functions::expand_symtabs_with_fullname)
2683 (psymbol_functions::map_symbol_filenames)
2684 (psymbol_functions::map_matching_symbols)
2685 (psymbol_functions::expand_symtabs_matching)
2686 (psymbol_functions::find_compunit_symtab_by_address)
2687 (maintenance_print_psymbols, maintenance_info_psymtabs)
2688 (maintenance_check_psymtabs): Update.
2689 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2690 new method.
2691
eb00e468
TT
26922021-03-20 Tom Tromey <tom@tromey.com>
2693
2694 * xcoffread.c (xcoff_sym_fns): Update.
2695 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2696 * symfile-debug.c (objfile::has_partial_symbols): Use
2697 can_lazily_read_symbols.
2698 (debug_sym_read_psymbols): Remove.
2699 (debug_sym_fns, install_symfile_debug_logging): Update.
2700 * quick-symbol.h (struct quick_symbol_functions)
2701 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2702 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2703 * mipsread.c (ecoff_sym_fns): Update.
2704 * machoread.c (macho_sym_fns): Update.
2705 * elfread.c (struct lazy_dwarf_reader): New.
2706 (elf_symfile_read): Update.
2707 (read_psyms): Now a method of lazy_dwarf_reader.
2708 (elf_sym_fns): Update.
2709 (elf_sym_fns_lazy_psyms): Remove.
2710 * dbxread.c (aout_sym_fns): Update.
2711 * coffread.c (coff_sym_fns): Update.
2712
b29b98cf
TT
27132021-03-20 Tom Tromey <tom@tromey.com>
2714
2715 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2716 (reread_symbols): Move reset_psymtabs call later.
2717 * objfiles.c (objfile::objfile): Don't initialize
2718 partial_symtabs.
2719
17d66340
TT
27202021-03-20 Tom Tromey <tom@tromey.com>
2721
2722 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2723 set_partial_symtabs.
2724 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2725 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2726 parameter.
2727 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2728 parameter.
2729 (psymbol_functions::find_pc_sect_compunit_symtab)
2730 (psymbol_functions::print_stats, psymbol_functions::dump)
2731 (psymbol_functions::has_symbols): Update.
2732 (make_psymbol_functions, dump_psymtab_addrmap): Add
2733 partial_symtabs parameter.
2734 (maintenance_print_psymbols): Update.
2735 (psymbol_functions::expand_symtabs_matching): Update.
2736 * psympriv.h (struct psymbol_functions): Add constructor.
2737 <m_partial_symtabs>: New member.
2738 <set_partial_symtabs>: New method.
2739
84685904
TT
27402021-03-20 Tom Tromey <tom@tromey.com>
2741
2742 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2743 parameter.
2744 (process_psymtab_comp_unit_reader)
2745 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2746 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2747 Reference psymtabs via per_bfd.
2748
79cc99f6
TT
27492021-03-20 Tom Tromey <tom@tromey.com>
2750
2751 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2752 Remove.
2753 (add_address_entry): Remove objfile parameter.
2754 (add_address_entry_worker): Update.
2755 (write_address_map): Replace objfile parameter with per_bfd.
2756 (write_gdbindex, write_psymtabs_to_index): Update.
2757
4829711b
TT
27582021-03-20 Tom Tromey <tom@tromey.com>
2759
2760 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2761 print_bcache parameter.
2762 * symfile-debug.c (objfile::print_stats): Add print_bcache
2763 parameter.
2764 * quick-symbol.h (struct quick_symbol_functions)
2765 <print_stats>: Add print_bcache parameter.
2766 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2767 code to psymtab.c.
2768 (print_objfile_statistics): Move psymtab code to psymtab.c.
2769 * psymtab.c (count_psyms): Move from symmisc.c.
2770 (psymbol_functions::print_stats): Print partial symbol and bcache
2771 statistics. Add print_bcache parameter.
2772 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2773 (struct objfile) <print_stats>: Add print_bcache parameter.
2774 * maint.c (maintenance_print_statistics): Update.
2775
efd7398e
TT
27762021-03-20 Tom Tromey <tom@tromey.com>
2777
2778 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2779 member.
2780 * dwarf2/read.c (create_addrmap_from_index)
2781 (create_addrmap_from_aranges): Set per_bfd addrmap.
2782 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2783 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2784 per_bfd addrmap.
2785 (dwarf2_read_debug_names): Don't set partial_symtabs.
2786 (dwarf2_initialize_objfile): Likewise.
2787
51962708
TT
27882021-03-20 Tom Tromey <tom@tromey.com>
2789
2790 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2791 earlier.
2792
484b1090
TT
27932021-03-20 Tom Tromey <tom@tromey.com>
2794
2795 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2796 (~psymtab_discarder, keep): Update.
2797 <m_objfile>: Remove.
2798 <m_partial_symtabs>: New member.
2799 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2800
7e9c0476
TT
28012021-03-20 Tom Tromey <tom@tromey.com>
2802
2803 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2804 (xcoff_end_psymtab): Update.
2805 (scan_xcoff_symtab): Add partial_symtabs parameter.
2806 (xcoff_initial_scan): Update.
2807 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2808 * mdebugread.c (mdebug_build_psymtabs): Update.
2809 (parse_partial_symbols): Add partial_symtabs parameter.
2810 * dbxread.c (dbx_symfile_read): Update.
2811 (read_dbx_symtab): Add partial_symtabs parameter.
2812 (read_dbx_symtab): Update.
2813 (dbx_end_psymtab): Add partial_symtabs parameter.
2814
75336a5a
TT
28152021-03-20 Tom Tromey <tom@tromey.com>
2816
2817 * quick-symbol.h (struct quick_symbol_functions)
2818 <relocated>: New method.
2819 * psymtab.h (struct psymbol_functions) <relocated>: New
2820 method.
2821 <fill_psymbol_map>: Declare method.
2822 <m_psymbol_map>: New member.
2823 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2824 (psymbol_functions::find_compunit_symtab_by_address): Update.
2825 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2826 (struct objfile) <psymbol_map>: Remove.
2827 * objfiles.c (objfile_relocate1): Update.
2828
39298a5d
TT
28292021-03-20 Tom Tromey <tom@tromey.com>
2830
2831 * psympriv.h (struct psymbol_functions): New.
2832 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2833 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2834 (objfile::lookup_global_symbol_language): Update.
2835 * quick-symbol.h (struct quick_symbol_functions): Convert function
2836 pointers to methods. Add virtual destructor.
2837 (quick_symbol_functions_up): New typedef.
2838 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2839 (dwarf2_debug_names_functions): Don't declare.
2840 (make_psymbol_functions): Declare.
2841 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2842 (psymbol_functions::find_pc_sect_compunit_symtab)
2843 (psymbol_functions::lookup_symbol)
2844 (psymbol_functions::lookup_global_symbol_language)
2845 (psymbol_functions::find_last_source_symtab)
2846 (psymbol_functions::forget_cached_source_info)
2847 (psymbol_functions::print_stats, psymbol_functions::dump)
2848 (psymbol_functions::expand_symtabs_for_function)
2849 (psymbol_functions::expand_all_symtabs)
2850 (psymbol_functions::expand_symtabs_with_fullname)
2851 (psymbol_functions::map_symbol_filenames)
2852 (psymbol_functions::map_matching_symbols)
2853 (psymbol_functions::expand_symtabs_matching)
2854 (psymbol_functions::has_symbols)
2855 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2856 (psym_functions): Remove.
2857 (make_psymbol_functions): New function.
2858 * objfiles.h (struct objfile) <qf>: Change type.
2859 * elfread.c (elf_symfile_read): Update.
2860 * dwarf2/read.c (struct dwarf2_base_index_functions)
2861 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2862 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2863 (dwarf2_base_index_functions::find_last_source_symtab)
2864 (dwarf2_base_index_functions::forget_cached_source_info)
2865 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2866 (dwarf2_gdb_index::lookup_symbol)
2867 (dwarf2_base_index_functions::print_stats)
2868 (dwarf2_gdb_index::dump)
2869 (dwarf2_gdb_index::expand_symtabs_for_function)
2870 (dwarf2_base_index_functions::expand_all_symtabs)
2871 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2872 Rename.
2873 (dwarf2_gdb_index::map_matching_symbols): New method.
2874 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2875 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2876 (dwarf2_base_index_functions::map_symbol_filenames)
2877 (dwarf2_base_index_functions::has_symbols): Rename.
2878 (dwarf2_gdb_index_functions): Remove.
2879 (dwarf2_debug_names_index::lookup_symbol)
2880 (dwarf2_debug_names_index::dump)
2881 (dwarf2_debug_names_index::expand_symtabs_for_function)
2882 (dwarf2_debug_names_index::map_matching_symbols)
2883 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2884 (dwarf2_debug_names_functions): Remove.
2885 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2886 Declare.
2887
5c3f1e5b
TT
28882021-03-20 Tom Tromey <tom@tromey.com>
2889
2890 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2891 null.
2892 * xcoffread.c (xcoff_sym_fns): Update.
2893 * symfile.h (struct sym_fns) <qf>: Remove.
2894 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2895 * symfile-debug.c (objfile::has_partial_symbols)
2896 (objfile::find_last_source_symtab)
2897 (objfile::forget_cached_source_info)
2898 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2899 (objfile::print_stats, objfile::dump)
2900 (objfile::expand_symtabs_for_function)
2901 (objfile::expand_all_symtabs)
2902 (objfile::expand_symtabs_with_fullname)
2903 (objfile::map_matching_symbols)
2904 (objfile::expand_symtabs_matching)
2905 (objfile::find_pc_sect_compunit_symtab)
2906 (objfile::map_symbol_filenames)
2907 (objfile::find_compunit_symtab_by_address)
2908 (objfile::lookup_global_symbol_language, debug_sym_fns)
2909 (install_symfile_debug_logging): Update.
2910 * objfiles.h (struct objfile) <qf>: New member.
2911 * mipsread.c (ecoff_sym_fns): Update.
2912 * machoread.c (macho_sym_fns): Update.
2913 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2914 Don't declare.
2915 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2916 * dbxread.c (aout_sym_fns): Update.
2917 * coffread.c (coff_sym_fns): Update.
2918
9b99dcc8
TT
29192021-03-20 Tom Tromey <tom@tromey.com>
2920
2921 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2922 (expand_symtabs_file_matcher_ftype)
2923 (expand_symtabs_symbol_matcher_ftype)
2924 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2925 Move to quick-symbol.h.
2926 * quick-symbol.h: New file.
2927
4d080b46
TT
29282021-03-20 Tom Tromey <tom@tromey.com>
2929
2930 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2931 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2932 (basic_lookup_transparent_type_quick)
2933 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2934 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2935 Update.
2936 * symmisc.c (print_objfile_statistics, dump_objfile)
2937 (maintenance_expand_symtabs): Update.
2938 * symfile.c (symbol_file_add_with_addrs)
2939 (expand_symtabs_matching, map_symbol_filenames): Update.
2940 * symfile-debug.c (objfile::has_partial_symbols)
2941 (objfile::find_last_source_symtab)
2942 (objfile::forget_cached_source_info)
2943 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2944 (objfile::print_stats, objfile::dump)
2945 (objfile::expand_symtabs_for_function)
2946 (objfile::expand_all_symtabs)
2947 (objfile::expand_symtabs_with_fullname)
2948 (objfile::map_matching_symbols)
2949 (objfile::expand_symtabs_matching)
2950 (objfile::find_pc_sect_compunit_symtab)
2951 (objfile::map_symbol_filenames)
2952 (objfile::find_compunit_symtab_by_address)
2953 (objfile::lookup_global_symbol_language): New methods.
2954 (debug_sym_quick_functions): Remove.
2955 (debug_sym_fns, install_symfile_debug_logging): Update.
2956 * source.c (forget_cached_source_info_for_objfile)
2957 (select_source_symtab): Update.
2958 * objfiles.h (struct objfile): Add methods corresponding to
2959 quick_symbol_functions.
2960 * objfiles.c (objfile::has_partial_symbols): Move to
2961 symfile-debug.c.
2962 * linespec.c (iterate_over_all_matching_symtabs): Update.
2963 * cp-support.c (add_symbol_overload_list_qualified): Update.
2964 * ada-lang.c (add_nonlocal_symbols): Update.
2965
fae2120b
TT
29662021-03-20 Tom Tromey <tom@tromey.com>
2967
2968 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2969 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2970 bool.
2971 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2972 * psymtab.c (psym_has_symbols): Return bool.
2973 * objfiles.c (objfile::has_partial_symbols): Return bool.
2974 * dwarf2/read.c (dw2_has_symbols): Return bool.
2975
a8ad4f3c
TT
29762021-03-20 Tom Tromey <tom@tromey.com>
2977
2978 * symfile.c (read_symbols): Update.
2979 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2980 (objfile_has_partial_symbols): Don't declare.
2981 * objfiles.c (objfile::has_partial_symbols): Rename from
2982 objfile_has_partial_symbols.
2983 (objfile_has_symbols, have_partial_symbols): Update.
2984 * elfread.c (elf_symfile_read): Update.
2985 * dwarf2/read.c (dwarf2_has_info): Update.
2986 * coffread.c (coff_symfile_read): Update.
2987
70182375
TT
29882021-03-20 Tom Tromey <tom@tromey.com>
2989
2990 * coffread.c: Include dwarf2/public.h.
2991 * dwarf2/frame.c: Include dwarf2/public.h.
2992 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2993 * dwarf2/public.h: New file.
2994 * dwarf2/read.c: Include dwarf2/public.h.
2995 * elfread.c: Include dwarf2/public.h.
2996 * machoread.c: Include dwarf2/public.h.
2997 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2998 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2999 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3000 * xcoffread.c: Include dwarf2/public.h.
3001
18038e63
TT
30022021-03-20 Tom Tromey <tom@tromey.com>
3003
3004 * symfile.h (enum dwarf2_section_enum)
3005 (dwarf2_get_section_info): Move to dwarf2/read.h.
3006 * dwarf2/read.h (enum dwarf2_section_enum)
3007 (dwarf2_get_section_info): Move from symfile.h.
3008
219f56b4
PA
30092021-03-19 Pedro Alves <pedro@palves.net>
3010
3011 * thread.c (any_thread_of_inferior): Check if there's a selected
3012 thread before calling inferior_thread().
3013
15310fd4
TT
30142021-03-18 Tom Tromey <tromey@adacore.com>
3015
3016 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3017 get_DW_UT_name.
3018 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3019 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3020
763b8efd
AB
30212021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3022
3023 * python/py-param.c (get_set_value): Update header comment.
3024
f058c521
SM
30252021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3026
3027 * infrun.c (check_multi_target_resumption): Remove argument to
3028 all_non_exited_inferiors.
3029
383228bc
CB
30302021-03-16 Christian Biesinger <cbiesinger@google.com>
3031
3032 * windows-nat.c (windows_init_thread_list): Add message to
3033 debug log.
3034
7807d76a
AB
30352021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3038 well as PyLong_Check for Python 2.
3039
675da9a5
TT
30402021-03-15 Tom Tromey <tromey@adacore.com>
3041
3042 PR build/27579:
3043 * rust-exp.y (maker_map): Use gdb::hash_enum.
3044 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3045
4800761a
SM
30462021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3047
3048 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3049 end of debug print.
3050
eb5dd737
SM
30512021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3052
3053 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3054 parameter, adjust caller.
3055
6813ceb0
TT
30562021-03-15 Tom Tromey <tromey@adacore.com>
3057
3058 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3059
3b5c4de0
TT
30602021-03-15 Tom Tromey <tromey@adacore.com>
3061
3062 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3063 ada_ensure_varsize_limit.
3064
c04da66c
TT
30652021-03-15 Tom Tromey <tromey@adacore.com>
3066
3067 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3068 fixed-point.
3069 * ada-exp.y (maybe_overload): New function.
3070 (ada_wrap_overload): New function.
3071 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3072 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3073 (or_else_exp, xor_exp, primary): Update.
3074
9863c3b5
TT
30752021-03-15 Tom Tromey <tromey@adacore.com>
3076
3077 PR ada/27545:
3078 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3079 call for tagged type.
3080
1ac74522
TT
30812021-03-15 Tom Tromey <tromey@adacore.com>
3082
3083 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3084 assignment.
3085
207582c0
TT
30862021-03-15 Tom Tromey <tromey@adacore.com>
3087
3088 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3089 container.
3090 (ada_assign_operation::evaluate): Update.
3091 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3092 Change return type.
3093
8d624a9d
FW
30942021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3095
3096 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3097
ba6a0ef3
AB
30982021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3099
3100 * python/python.c (gdbpy_source_objfile_script): Use
3101 make_scoped_restore to restore gdbpy_current_objfile.
3102 (gdbpy_execute_objfile_script): Likewise.
3103
7c290a04
TT
31042021-03-14 Tom Tromey <tom@tromey.com>
3105
3106 * dwarf2/read.c (read_attribute_value): Use cu_header
3107 consistently.
3108
0280fdcc
TT
31092021-03-14 Tom Tromey <tom@tromey.com>
3110
3111 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3112 (peek_die_abbrev): Use reader.abfd.
3113
a9f172c6
TT
31142021-03-14 Tom Tromey <tom@tromey.com>
3115
3116 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3117 m_header_read_in.
3118
7c32eebb
TT
31192021-03-13 Tom Tromey <tom@tromey.com>
3120
3121 * dwarf2/read.c (struct partial_die_info): Update.
3122 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3123 (load_partial_dies, partial_die_info::partial_die_info): Update.
3124 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3125
27012aba
TT
31262021-03-13 Tom Tromey <tom@tromey.com>
3127
3128 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3129
fece451c
CB
31302021-03-12 Christian Biesinger <cbiesinger@google.com>
3131
3132 PR threads/27239
3133 * cp-support.c: Use scoped_segv_handler_restore.
3134 * event-top.c (thread_local_segv_handler): Made static.
3135 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3136 New function.
3137 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3138 function.
3139 * event-top.h (class scoped_segv_handler_restore): New class.
3140 (thread_local_segv_handler): Removed.
3141
7056f312
TT
31422021-03-10 Tom Tromey <tromey@adacore.com>
3143
3144 * parser-defs.h (parser_state): Change completion to bool.
3145 <parse_completion>: Likewise.
3146 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3147 (ada_resolve_variable, ada_resolve_function): Update.
3148 * ada-lang.c (ada_find_operator_symbol): Change
3149 parse_completion to bool.
3150 (ada_resolve_funcall, ada_resolve_variable)
3151 (ada_resolve_function): Likewise.
3152
ccdc02ed
TT
31532021-03-09 Tom Tromey <tromey@adacore.com>
3154
3155 * eval.c (operation::evaluate_funcall): Use function formal
3156 parameter types when evaluating.
3157
fbb1aace
AB
31582021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3159
3160 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3161 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3162 and owner to m_owner.
3163
611aa09d
FW
31642021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3165
3166 * f-exp.h (eval_op_f_loc): Declare.
3167 (expr::fortran_loc_operation): New typedef.
3168 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3169 UNOP_INTRINSIC.
3170 (f77_keywords): Add LOC keyword.
3171 * f-lang.c (eval_op_f_loc): New function.
3172 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3173
eef32f59
AB
31742021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3175
3176 * f-exp.h (eval_op_f_array_shape): Declare.
3177 (fortran_array_shape_operation): New type.
3178 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3179 UNOP_INTRINSIC.
3180 (f77_keywords): Add "shape" keyword.
3181 * f-lang.c (fortran_array_shape): New function.
3182 (eval_op_f_array_shape): New function.
3183 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3184
7ba155b3
AB
31852021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3186
3187 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3188 of this function.
3189 (expr::fortran_array_size_1arg): New type.
3190 (expr::fortran_array_size_2arg): Likewise.
3191 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3192 UNOP_OR_BINOP_INTRINSIC.
3193 (f77_keywords): Add "size" keyword.
3194 * f-lang.c (fortran_array_size): New function.
3195 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3196 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3197
e14816a8
AB
31982021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3199
3200 * f-exp.h (eval_op_f_rank): Declare.
3201 (expr::fortran_rank_operation): New typedef.
3202 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3203 UNOP_INTRINSIC.
3204 (f77_keywords): Add "rank" keyword.
3205 * f-lang.c (eval_op_f_rank): New function.
3206 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3207
3dd93bf8
TT
32082021-03-08 Tom Tromey <tom@tromey.com>
3209
3210 * printcmd.c (set_command): Remove null check.
3211 * value.c (init_if_undefined_command): Remove null check.
3212
9c79936b
TT
32132021-03-08 Tom Tromey <tom@tromey.com>
3214
3215 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3216 Update.
3217 * p-exp.y (variable): Update.
3218 * go-exp.y (variable): Update.
3219 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3220 Remove overload for objfile.
3221 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3222 parameter.
3223 (check_objfile): Likewise.
3224 (dump_for_expression): Likewise. Remove overload for objfile.
3225 (class var_msym_value_operation): Use bound_minimal_symbol.
3226 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3227 parameter.
3228 (var_msym_value_operation::evaluate_for_address)
3229 (var_msym_value_operation::evaluate_for_sizeof)
3230 (var_msym_value_operation::evaluate_for_cast): Update.
3231 * d-exp.y (PrimaryExpression): Update.
3232 * c-exp.y (variable): Update.
3233 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3234 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3235 Update.
3236 * ada-exp.y (write_var_or_type): Update.
3237
40d07d07
TT
32382021-03-08 Tom Tromey <tom@tromey.com>
3239
3240 * parser-defs.h (exp_uses_objfile): Return bool.
3241 * parse.c (exp_uses_objfile): Return bool.
3242
0b2b0b82
TT
32432021-03-08 Tom Tromey <tom@tromey.com>
3244
3245 * value.h (eval_skip_value): Don't declare.
3246 * opencl-lang.c (eval_opencl_assign): Update.
3247 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3248 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3249 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3250 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3251 * expop.h (typeof_operation::evaluate)
3252 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3253 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3254 (cxx_cast_operation::evaluate): Update.
3255 * eval.c (eval_skip_value): Remove.
3256 (eval_op_scope, eval_op_var_entry_value)
3257 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3258 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3259 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3260 (eval_op_binary, eval_op_subscript, eval_op_equal)
3261 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3262 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3263 (eval_op_complement, eval_op_lognot, eval_op_ind)
3264 (eval_op_memval, eval_op_preinc, eval_op_predec)
3265 (eval_op_postinc, eval_op_postdec, eval_op_type)
3266 (eval_binop_assign_modify, eval_op_objc_msgcall)
3267 (eval_multi_subscript, logical_and_operation::evaluate)
3268 (logical_or_operation::evaluate, array_operation::evaluate)
3269 (operation::evaluate_for_cast)
3270 (var_msym_value_operation::evaluate_for_cast)
3271 (var_value_operation::evaluate_for_cast): Update.
3272 * c-lang.c (c_string_operation::evaluate): Update.
3273 * c-exp.h (objc_nsstring_operation::evaluate)
3274 (objc_selector_operation::evaluate): Update.
3275 * ada-lang.c (ada_assign_operation::evaluate)
3276 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3277 (ada_atr_size): Update.
3278
96db551d
TT
32792021-03-08 Tom Tromey <tom@tromey.com>
3280
3281 * eval.c: Merge "namespace" scopes.
3282
ce284361
TT
32832021-03-08 Tom Tromey <tom@tromey.com>
3284
3285 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3286 <release>: Inline.
3287 * parse.c (expr_builder::expr_builder, expr_builder::release):
3288 Remove.
3289
b9d06571
TT
32902021-03-08 Tom Tromey <tom@tromey.com>
3291
3292 * parse.c (expression::expression, expression::~expression):
3293 Remove.
3294 * expression.h (struct expression): Inline constructor. Remove
3295 destructor.
3296
79ab486e
TT
32972021-03-08 Tom Tromey <tom@tromey.com>
3298
3299 * std-operator.def (BINOP_END): Remove.
3300 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3301 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3302 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3303 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3304 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3305 BINOP_END.
3306
48fa6f23
TT
33072021-03-08 Tom Tromey <tom@tromey.com>
3308
3309 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3310
43f542e3
TT
33112021-03-08 Tom Tromey <tom@tromey.com>
3312
3313 * std-operator.def (OP_EXTENDED0): Remove.
3314
5d9ba982
TT
33152021-03-08 Tom Tromey <tom@tromey.com>
3316
3317 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3318 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3319 Remove.
3320
d357570d
TT
33212021-03-08 Tom Tromey <tom@tromey.com>
3322
3323 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3324 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3325
0922dc84
TT
33262021-03-08 Tom Tromey <tom@tromey.com>
3327
3328 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3329 * ada-lang.c (ada_binop_minmax): Update.
3330 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3331 Use BINOP_MIN and BINOP_MAX.
3332
1eaebe02
TT
33332021-03-08 Tom Tromey <tom@tromey.com>
3334
3335 * value.h (evaluate_subexp_with_coercion): Don't declare.
3336 * parse.c (exp_descriptor_standard): Remove.
3337 (expr_builder::expr_builder, expr_builder::release): Update.
3338 (expression::expression): Remove size_t parameter.
3339 (expression::~expression): Simplify.
3340 (expression::resize): Remove.
3341 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3342 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3343 (write_exp_elt_longcst, write_exp_elt_floatcst)
3344 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3345 (write_exp_string_vector, write_exp_bitstring): Remove.
3346 * p-lang.h (class pascal_language) <opcode_print_table,
3347 op_print_tab>: Remove.
3348 * p-lang.c (pascal_language::op_print_tab): Remove.
3349 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3350 Remove.
3351 * objc-lang.c (objc_op_print_tab): Remove.
3352 (class objc_language) <opcode_print_table>: Remove.
3353 * m2-lang.h (class m2_language) <opcode_print_table,
3354 op_print_tab>: Remove.
3355 * m2-lang.c (m2_language::op_print_tab): Remove.
3356 * language.h (struct language_defn) <post_parser, expression_ops,
3357 opcode_print_table>: Remove.
3358 * language.c (language_defn::expression_ops)
3359 (auto_or_unknown_language::opcode_print_table): Remove.
3360 * go-lang.h (class go_language) <opcode_print_table,
3361 op_print_tab>: Remove.
3362 * go-lang.c (go_language::op_print_tab): Remove.
3363 * f-lang.h (class f_language) <opcode_print_table>: Remove
3364 <op_print_tab>: Remove.
3365 * f-lang.c (f_language::op_print_tab): Remove.
3366 * expression.h (union exp_element): Remove.
3367 (struct expression): Remove size_t parameter from constructor.
3368 <resize>: Remove.
3369 <first_opcode>: Update.
3370 <nelts, elts>: Remove.
3371 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3372 (evaluate_subexp_standard, print_expression, op_string)
3373 (dump_raw_expression): Don't declare.
3374 * expprint.c (print_expression, print_subexp)
3375 (print_subexp_funcall, print_subexp_standard, op_string)
3376 (dump_raw_expression, dump_subexp, dump_subexp_body)
3377 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3378 (dump_prefix_expression): Update.
3379 * eval.c (evaluate_subexp): Remove.
3380 (evaluate_expression, evaluate_type): Update.
3381 (evaluate_subexpression_type): Remove.
3382 (fetch_subexp_value): Remove "pc" parameter. Update.
3383 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3384 (evaluate_subexp_standard, evaluate_subexp_for_address)
3385 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3386 (evaluate_subexp_for_cast): Remove.
3387 (parse_and_eval_type): Update.
3388 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3389 * d-lang.c (d_op_print_tab): Remove.
3390 (class d_language) <opcode_print_table>: Remove.
3391 * c-lang.h (c_op_print_tab): Don't declare.
3392 * c-lang.c (c_op_print_tab): Remove.
3393 (class c_language, class cplus_language, class asm_language, class
3394 minimal_language) <opcode_print_table>: Remove.
3395 * breakpoint.c (update_watchpoint, watchpoint_check)
3396 (watchpoint_exp_is_const, watch_command_1): Update.
3397 * ax-gdb.h (union exp_element): Don't declare.
3398 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3399 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3400 (gen_expr_binop_rest): Remove.
3401 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3402 * ada-lang.c (ada_op_print_tab): Remove.
3403 (class ada_language) <post_parser, opcode_print_table>: Remove.
3404
f2a98603
TT
34052021-03-08 Tom Tromey <tom@tromey.com>
3406
3407 * go-lang.c (go_language::expression_ops): Don't declare.
3408 * go-lang.h (class go_language) <expression_ops>: Remove.
3409 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3410 Remove.
3411 (class opencl_language) <expression_ops>: Remove.
3412 * d-lang.c (class d_language) <expression_ops>: Remove.
3413 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3414 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3415 (class c_language, class cplus_language, class asm_language)
3416 (class minimal_language) <expression_ops>: Remove.
3417
d3c54a1c
TT
34182021-03-08 Tom Tromey <tom@tromey.com>
3419
3420 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3421 (evaluate_subexp_type, assign_aggregate)
3422 (aggregate_assign_positional, aggregate_assign_from_choices)
3423 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3424 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3425 (ada_operator_check, ada_forward_operator_length)
3426 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3427 Remove.
3428 (post_parser): Update.
3429 (class ada_language) <expresssion_ops>: Remove.
3430
5871f0a3
TT
34312021-03-08 Tom Tromey <tom@tromey.com>
3432
3433 * m2-lang.h (class m2_language) <expresssion_ops,
3434 exp_descriptor_modula2>: Remove.
3435 * m2-lang.c (evaluate_subexp_modula2)
3436 (m2_language::exp_descriptor_modula2): Remove.
3437
a99be8c1
TT
34382021-03-08 Tom Tromey <tom@tromey.com>
3439
3440 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3441 <exp_descriptor_tab>: Remove.
3442 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3443 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3444 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3445 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3446 Remove.
3447
aa1da9ed
TT
34482021-03-08 Tom Tromey <tom@tromey.com>
3449
3450 * rust-lang.h (class rust_language) <expression_ops,
3451 exp_descriptor_tab>: Remove.
3452 * rust-lang.c (rust_evaluate_funcall): Remove.
3453 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3454 EVAL_SKIP.
3455 (rust_evaluate_subexp): Remove.
3456 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3457 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3458 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3459
08a057e6
TT
34602021-03-08 Tom Tromey <tom@tromey.com>
3461
3462 * ada-exp.y: Create operations.
3463 (empty_stoken): Remove.
3464 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3465 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3466 (components): New global.
3467 (push_component, choice_component, pop_component, pop_components):
3468 New functions.
3469 (associations): New global
3470 (push_association, pop_association, pop_associations): New
3471 functions.
3472 (ada_parse): Update.
3473 (write_var_from_sym, write_int): Create operations.
3474 (write_exp_op_with_string): Remove.
3475 (write_object_renaming, write_selectors, write_ambiguous_var)
3476 (write_var_or_type, write_name_assoc): Create operations.
3477 * ada-lang.h (ada_index_type): Declare.
3478 * ada-lang.c (ada_index_type): No longer static.
3479
d308ba78
TT
34802021-03-08 Tom Tromey <tom@tromey.com>
3481
3482 * f-exp.y: Create operations.
3483 (f_language::parser): Update.
3484
f1b8ceef
TT
34852021-03-08 Tom Tromey <tom@tromey.com>
3486
3487 * m2-exp.y: Create operations.
3488 (m2_language::parser): Update.
3489
3163898e
TT
34902021-03-08 Tom Tromey <tom@tromey.com>
3491
3492 * p-exp.y: Create operations.
3493 (pascal_language::parser): Update.
3494
9412fdcc
TT
34952021-03-08 Tom Tromey <tom@tromey.com>
3496
3497 * d-exp.y: Create operations.
3498 (d_parse): Update.
3499
bb4e0574
TT
35002021-03-08 Tom Tromey <tom@tromey.com>
3501
3502 * go-exp.y: Create operations.
3503 (go_language::parser): Update.
3504
d182f279
TT
35052021-03-08 Tom Tromey <tom@tromey.com>
3506
3507 * objc-lang.c (end_msglist): Create operations.
3508 * c-exp.y: Change parser to create operations.
3509 (write_destructor_name): Remove.
3510 (c_parse): Update.
3511
c1299a23
TT
35122021-03-08 Tom Tromey <tom@tromey.com>
3513
3514 * rust-exp.y: Create operations.
3515 (rust_parser::convert_params_to_expression): Change return type.
3516 (binop_maker_ftype): New typedef.
3517 (maker_map): New global.
3518 (rust_parser::convert_ast_to_expression): Change return type.
3519 (rust_language::parser): Update.
3520 (_initialize_rust_exp): Initialize maker_map.
3521
4c5e7a93
TT
35222021-03-08 Tom Tromey <tom@tromey.com>
3523
3524 * stap-probe.c (binop_maker_ftype): New typedef.
3525 (stap_maker_map): New global.
3526 (stap_make_binop): New function.
3527 (stap_parse_register_operand): Return operation_up.
3528 (stap_parse_single_operand, stap_parse_argument_conditionally)
3529 (stap_parse_argument_1): Likewise.
3530 (stap_parse_argument): Create operations.
3531 (stap_probe::parse_arguments): Update.
3532 (_initialize_stap_probe): Initialize stap_maker_map.
3533 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3534 type.
3535 * i386-tdep.h (i386_stap_parse_special_token): Change return
3536 type.
3537 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3538 (i386_stap_parse_special_token_three_arg_disp)
3539 (i386_stap_parse_special_token): Change return type.
3540 * gdbarch.sh (stap_parse_special_token): Change return type.
3541 * gdbarch.c: Rebuild.
3542 * gdbarch.h: Rebuild.
3543 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3544 type.
3545 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3546 return type.
3547
482ddd69
TT
35482021-03-08 Tom Tromey <tom@tromey.com>
3549
3550 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3551 * gdbarch.h: Rebuild.
3552 * gdbarch.c: Rebuild.
3553 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3554 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3555 return type.
3556 (amd64_dtrace_parse_probe_argument): Update.
3557
8227d9e2
TT
35582021-03-08 Tom Tromey <tom@tromey.com>
3559
3560 * parser-defs.h (struct parser_state) <push, push_new,
3561 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3562 wrap2>: New methods.
3563 <m_operations>: New member.
3564 * parse.c (parser_state::push_c_string)
3565 (parser_state::push_symbol, parser_state::push_dollar): New
3566 methods.
3567
4933522d
TT
35682021-03-08 Tom Tromey <tom@tromey.com>
3569
3570 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3571 New member.
3572 (struct parser_state) <mark_struct_expression>: New method.
3573 * parse.c (parser_state::mark_struct_expression): Update assert.
3574 (parser_state::mark_struct_expression): New method.
3575 (parser_state::mark_completion_tag): Update assert.
3576 (parse_expression_for_completion): Handle expout_last_op.
3577
413403fc
TT
35782021-03-08 Tom Tromey <tom@tromey.com>
3579
3580 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3581 now in superclass.
3582 * value.h (fetch_subexp_value): Add "op" parameter.
3583 * value.c (init_if_undefined_command): Update.
3584 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3585 * stap-probe.c (stap_probe::compile_to_ax): Update.
3586 * printcmd.c (set_command): Update.
3587 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3588 Update.
3589 * parser-defs.h (struct expr_builder) <set_operation>: New
3590 method.
3591 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3592 * expression.h (struct expression) <first_opcode>: Update.
3593 <op>: New member.
3594 * expprint.c (dump_raw_expression, dump_prefix_expression):
3595 Update.
3596 * expop.h (class var_value_operation) <get_symbol>: New method.
3597 (class register_operation) <get_name>: New method.
3598 (class equal_operation): No longer a typedef, now a subclass.
3599 (class unop_memval_operation) <get_type>: New method.
3600 (class assign_operation) <get_lhs>: New method.
3601 (class unop_cast_operation) <get_type>: New method.
3602 * eval.c (evaluate_expression, evaluate_type)
3603 (evaluate_subexpression_type): Update.
3604 (fetch_subexp_value): Add "op" parameter.
3605 (parse_and_eval_type): Update.
3606 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3607 * breakpoint.c (update_watchpoint, watchpoint_check)
3608 (watchpoint_exp_is_const, watch_command_1): Update.
3609 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3610 Update.
3611
b0f9164c
TT
36122021-03-08 Tom Tromey <tom@tromey.com>
3613
3614 * ada-lang.c (ada_value_binop): Do not use op_string.
3615
a88c4354
TT
36162021-03-08 Tom Tromey <tom@tromey.com>
3617
3618 * expprint.c (dump_for_expression): New overload.
3619 * expop.h (check_objfile, dump_for_expression): Declare new
3620 overloads.
3621 * ada-lang.c (check_objfile): New overload.
3622 (assign_component, ada_aggregate_component::uses_objfile)
3623 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3624 (ada_aggregate_component::assign_aggregate)
3625 (ada_positional_component::uses_objfile)
3626 (ada_positional_component::dump, ada_positional_component::assign)
3627 (ada_discrete_range_association::uses_objfile)
3628 (ada_discrete_range_association::dump)
3629 (ada_discrete_range_association::assign)
3630 (ada_name_association::uses_objfile, ada_name_association::dump)
3631 (ada_name_association::assign)
3632 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3633 (ada_choices_component::assign)
3634 (ada_others_component::uses_objfile, ada_others_component::dump)
3635 (ada_others_component::assign, ada_assign_operation::evaluate):
3636 New methods.
3637 * ada-exp.h (ada_string_operation) <get_name>: New method.
3638 (class ada_assign_operation): New.
3639 (class ada_component): New.
3640 (ada_component_up): New typedef.
3641 (class ada_aggregate_operation, class ada_aggregate_component)
3642 (class ada_positional_component, class ada_others_component)
3643 (class ada_association): New.
3644 (ada_association_up): New typedef.
3645 (class ada_choices_component)
3646 (class ada_discrete_range_association)
3647 (class ada_name_association): New.
3648
d8a4ed8a
TT
36492021-03-08 Tom Tromey <tom@tromey.com>
3650
3651 * ada-lang.c (ada_var_value_operation::resolve)
3652 (ada_funcall_operation::resolve)
3653 (ada_ternop_slice_operation::resolve): New methods.
3654 * ada-exp.h (struct ada_resolvable): New.
3655 (class ada_var_value_operation): Derive from ada_resolvable.
3656 <get_block, resolve>: New methods.
3657 (class ada_funcall_operation): Derive from ada_resolvable.
3658 <resolve>: New method.
3659 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3660 <resolve>: New method.
3661
efe3af2f
TT
36622021-03-08 Tom Tromey <tom@tromey.com>
3663
3664 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3665 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3666 method.
3667 (class ada_funcall_operation): New.
3668
ebc06ad8
TT
36692021-03-08 Tom Tromey <tom@tromey.com>
3670
3671 * ada-lang.c (ada_structop_operation::evaluate): New method.
3672 * ada-exp.h (class ada_structop_operation): New.
3673
e8c33fa1
TT
36742021-03-08 Tom Tromey <tom@tromey.com>
3675
3676 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3677 * ada-exp.h (class ada_unop_ind_operation): New.
3678
065ec826
TT
36792021-03-08 Tom Tromey <tom@tromey.com>
3680
3681 * ada-lang.c (ada_binop_exp): No longer static.
3682 * ada-exp.h (ada_binop_exp_operation): New typedef.
3683
9e99f48f
TT
36842021-03-08 Tom Tromey <tom@tromey.com>
3685
3686 * ada-lang.c (ada_val_atr): No longer static.
3687 (ada_atr_val_operation::evaluate): New method.
3688 * ada-exp.h (class ada_atr_val_operation): New.
3689
7631cf6c
TT
36902021-03-08 Tom Tromey <tom@tromey.com>
3691
3692 * ada-lang.c (ada_pos_atr): No longer static.
3693 * ada-exp.h (ada_pos_operation): New typedef.
3694
7992accc
TT
36952021-03-08 Tom Tromey <tom@tromey.com>
3696
3697 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3698 parameters.
3699 (ada_evaluate_subexp): Use it.
3700
6ad3b8bf
TT
37012021-03-08 Tom Tromey <tom@tromey.com>
3702
3703 * ada-lang.c (ada_binop_minmax): No longer static.
3704 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3705 New typedefs.
3706
3f4a0053
TT
37072021-03-08 Tom Tromey <tom@tromey.com>
3708
3709 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3710 New method.
3711 * ada-exp.h (class ada_var_msym_value_operation): New.
3712
99a3b1e7
TT
37132021-03-08 Tom Tromey <tom@tromey.com>
3714
3715 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3716 (ada_var_value_operation::evaluate): New methods.
3717 * ada-exp.h (class ada_var_value_operation): New.
3718
60fa02ca
TT
37192021-03-08 Tom Tromey <tom@tromey.com>
3720
3721 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3722 * ada-exp.h (class ada_unop_atr_operation): New.
3723
82c3886e
TT
37242021-03-08 Tom Tromey <tom@tromey.com>
3725
3726 * ada-lang.c (ada_binop_in_bounds): No longer static.
3727 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3728
1b1ebfab
TT
37292021-03-08 Tom Tromey <tom@tromey.com>
3730
3731 * ada-lang.c (ada_ternop_slice): No longer static.
3732 * ada-exp.h (class ada_ternop_slice_operation): New.
3733
039e4b76
TT
37342021-03-08 Tom Tromey <tom@tromey.com>
3735
3736 * ada-exp.h (ada_bitwise_operation): New template class.
3737 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3738 (ada_bitwise_xor_operation): New typedefs.
3739
6e8fb7b7
TT
37402021-03-08 Tom Tromey <tom@tromey.com>
3741
3742 * ada-lang.c (ada_equal_binop): No longer static.
3743 * ada-exp.h (class ada_binop_equal_operation): New.
3744
d9e7db06
TT
37452021-03-08 Tom Tromey <tom@tromey.com>
3746
3747 * ada-lang.c (ada_mult_binop): No longer static.
3748 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3749 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3750
73796c73
TT
37512021-03-08 Tom Tromey <tom@tromey.com>
3752
3753 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3754 * ada-exp.h (class ada_binop_addsub_operation): New.
3755
cd9a3148
TT
37562021-03-08 Tom Tromey <tom@tromey.com>
3757
3758 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3759 (ada_resolve_variable): Declare.
3760 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3761 (ada_resolve_variable): New functions.
3762 (resolve_subexp): Update.
3763
cf12b17f
TT
37642021-03-08 Tom Tromey <tom@tromey.com>
3765
3766 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3767 method.
3768 * c-exp.h (class opencl_ternop_cond_operation): New.
3769
944fd3b8
TT
37702021-03-08 Tom Tromey <tom@tromey.com>
3771
3772 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3773 method.
3774 * c-exp.h (class opencl_logical_binop_operation): New.
3775
33b79214
TT
37762021-03-08 Tom Tromey <tom@tromey.com>
3777
3778 * opencl-lang.c (opencl_structop_operation::evaluate): New
3779 method.
3780 * c-exp.h (class opencl_structop_operation): New.
3781
2492ba36
TT
37822021-03-08 Tom Tromey <tom@tromey.com>
3783
3784 * opencl-lang.c (opencl_logical_not): No longer static. Change
3785 parameters.
3786 (evaluate_subexp_opencl): Update.
3787 * c-exp.h (opencl_notequal_operation): New typedef.
3788
a88c3c8d
TT
37892021-03-08 Tom Tromey <tom@tromey.com>
3790
3791 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3792 static. Change parameters.
3793 (eval_opencl_assign): No longer static. Add "op" parameter.
3794 (evaluate_subexp_opencl): Update.
3795 * c-exp.h (opencl_binop_operation): New template class.
3796 (opencl_assign_operation, opencl_equal_operation)
3797 (opencl_notequal_operation, opencl_less_operation)
3798 (opencl_gtr_operation, opencl_geq_operation)
3799 (opencl_leq_operation): New typedefs.
3800
e9677704
TT
38012021-03-08 Tom Tromey <tom@tromey.com>
3802
3803 * opencl-lang.c (opencl_value_cast): No longer static.
3804 * c-exp.h (opencl_cast_type_operation): New typedef.
3805
f403a4e4
TT
38062021-03-08 Tom Tromey <tom@tromey.com>
3807
3808 * f-exp.h (eval_op_f_allocated): Declare.
3809 (fortran_allocated_operation): New typedef.
3810 * f-lang.c (eval_op_f_allocated): No longer static.
3811
eb4c9271
TT
38122021-03-08 Tom Tromey <tom@tromey.com>
3813
3814 * f-lang.c (eval_op_f_associated): New functions.
3815 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3816 typedefs.
3817
58a76c72
TT
38182021-03-08 Tom Tromey <tom@tromey.com>
3819
3820 * f-lang.c (fortran_bound_1arg::evaluate)
3821 (fortran_bound_2arg::evaluate): New methods.
3822 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3823 New.
3824
2f98abe1
TT
38252021-03-08 Tom Tromey <tom@tromey.com>
3826
3827 * expop.h (class unop_addr_operation) <get_expression>: New
3828 method.
3829 * f-lang.c (fortran_undetermined::value_subarray)
3830 (fortran_undetermined::evaluate): New methods.
3831 (fortran_prepare_argument): New overload.
3832 * f-exp.h (class fortran_range_operation)
3833 (class fortran_undetermined): New classes.
3834
638fd74a
TT
38352021-03-08 Tom Tromey <tom@tromey.com>
3836
3837 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3838 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3839 method.
3840
a00b7254
TT
38412021-03-08 Tom Tromey <tom@tromey.com>
3842
3843 * expression.h (class operation) <evaluate_funcall>: New methods.
3844 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3845 (class var_value_operation) <evaluate_funcall>: New method.
3846 (class structop_base_operation) <evaluate_funcall>: New method.
3847 (class var_msym_value_operation) <evaluate_funcall>: New method.
3848 (class structop_member_base): New class.
3849 (class structop_member_operation): Derive from
3850 structop_member_base.
3851 (class structop_mptr_operation): Derive from
3852 structop_member_base.
3853 (class funcall_operation): New class.
3854 * eval.c (operation::evaluate_funcall)
3855 (var_value_operation::evaluate_funcall)
3856 (scope_operation::evaluate_funcall)
3857 (structop_member_base::evaluate_funcall)
3858 (structop_base_operation::evaluate_funcall): New methods.
3859
1c02eb30
TT
38602021-03-08 Tom Tromey <tom@tromey.com>
3861
3862 * expop.h (class array_operation): New.
3863 * eval.c (array_operation::evaluate_struct_tuple)
3864 (array_operation::evaluate): New methods.
3865
e4479080
TT
38662021-03-08 Tom Tromey <tom@tromey.com>
3867
3868 * expop.h (class adl_func_operation): New.
3869 * eval.c (adl_func_operation::evaluate): New method.
3870
95d49dfb
TT
38712021-03-08 Tom Tromey <tom@tromey.com>
3872
3873 * ada-lang.c (ada_unop_in_range): No longer static.
3874 * ada-exp.h (class ada_unop_range_operation): New.
3875
7c15d377
TT
38762021-03-08 Tom Tromey <tom@tromey.com>
3877
3878 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3879 No longer static.
3880 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3881 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3882
5019124b
TT
38832021-03-08 Tom Tromey <tom@tromey.com>
3884
3885 * expop.h (class logical_and_operation)
3886 (class logical_or_operation): New.
3887 * eval.c (logical_and_operation::evaluate)
3888 (logical_or_operation::evaluate): New methods.
3889 * ax-gdb.c (logical_and_operation::do_generate_ax)
3890 (logical_or_operation::do_generate_ax): New methods.
3891
2bc9b40c
TT
38922021-03-08 Tom Tromey <tom@tromey.com>
3893
3894 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3895 static.
3896 * m2-exp.h: New file.
3897
5947d337
TT
38982021-03-08 Tom Tromey <tom@tromey.com>
3899
3900 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3901 * rust-exp.h (class rust_aggregate_operation): New.
3902
e4407a20
TT
39032021-03-08 Tom Tromey <tom@tromey.com>
3904
3905 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3906 No longer static.
3907 * rust-exp.h (class rust_struct_anon): New.
3908 (class rust_structop): New.
3909
9db6b6dd
TT
39102021-03-08 Tom Tromey <tom@tromey.com>
3911
3912 * rust-lang.c (rust_range): No longer static.
3913 * rust-exp.h (class rust_range_operation): New.
3914
6ce1ad67
TT
39152021-03-08 Tom Tromey <tom@tromey.com>
3916
3917 * rust-lang.c (rust_subscript): No longer static.
3918 * rust-exp.h (class rust_subscript_operation): New.
3919
11dd3dce
TT
39202021-03-08 Tom Tromey <tom@tromey.com>
3921
3922 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3923 parameter.
3924 (rust_evaluate_subexp): Update.
3925 * rust-exp.h (class rust_unop_ind_operation): New.
3926
6fab4359
TT
39272021-03-08 Tom Tromey <tom@tromey.com>
3928
3929 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3930 longer static. Add "opcode" parameter.
3931 (rust_evaluate_subexp): Update.
3932 * rust-exp.h: New file.
3933
9dcd3e29
TT
39342021-03-08 Tom Tromey <tom@tromey.com>
3935
3936 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3937 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3938 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3939 (evaluate_subexp_f): Update.
3940 * f-exp.h: New file.
3941
fc715eb2
TT
39422021-03-08 Tom Tromey <tom@tromey.com>
3943
3944 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3945 * ada-exp.h (class ada_ternop_range_operation): New.
3946
cc6bd32e
TT
39472021-03-08 Tom Tromey <tom@tromey.com>
3948
3949 * ada-lang.c (ada_qual_operation::evaluate): New method.
3950 * ada-exp.h (class ada_qual_operation): New.
3951
42fecb61
TT
39522021-03-08 Tom Tromey <tom@tromey.com>
3953
3954 * ada-lang.c (ada_string_operation::evaluate): New method.
3955 * ada-exp.h (class ada_string_operation): New.
3956
03070ee9
TT
39572021-03-08 Tom Tromey <tom@tromey.com>
3958
3959 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3960 * ada-exp.h: New file.
3961
821e72d7
TT
39622021-03-08 Tom Tromey <tom@tromey.com>
3963
3964 * expop.h (class multi_subscript_operation): New.
3965 * eval.c (multi_subscript_operation::evaluate): New method.
3966
085734dd
TT
39672021-03-08 Tom Tromey <tom@tromey.com>
3968
3969 * eval.c (objc_msgcall_operation::evaluate): New method.
3970 * c-exp.h (class objc_msgcall_operation): New.
3971
e82a5afc
TT
39722021-03-08 Tom Tromey <tom@tromey.com>
3973
3974 * expop.h (class var_value_operation): New.
3975 * eval.c (var_value_operation::evaluate)
3976 (var_value_operation::evaluate_for_address)
3977 (var_value_operation::evaluate_with_coercion)
3978 (var_value_operation::evaluate_for_sizeof)
3979 (var_value_operation::evaluate_for_cast): New methods.
3980 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3981
d9ad79d8
TT
39822021-03-08 Tom Tromey <tom@tromey.com>
3983
3984 * expop.h (cxx_cast_ftype): New typedef.
3985 (cxx_cast_operation): New template.
3986 (dynamic_cast_operation, reinterpret_cast_operation): New
3987 typedefs.
3988
292382f4
TT
39892021-03-08 Tom Tromey <tom@tromey.com>
3990
3991 * expop.h (class unop_cast_type_operation): New.
3992 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3993 method.
3994
165a813a
TT
39952021-03-08 Tom Tromey <tom@tromey.com>
3996
3997 * expop.h (class unop_cast_operation): New.
3998 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3999
e5946e16
TT
40002021-03-08 Tom Tromey <tom@tromey.com>
4001
4002 * expop.h (class assign_modify_operation): New.
4003 * eval.c (eval_binop_assign_modify): No longer static.
4004 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4005
40786782
TT
40062021-03-08 Tom Tromey <tom@tromey.com>
4007
4008 * expop.h (class assign_operation): New.
4009 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4010
44b675c8
TT
40112021-03-08 Tom Tromey <tom@tromey.com>
4012
4013 * expop.h (class type_instance_operation): New.
4014 * eval.c (type_instance_operation::evaluate): New method.
4015
f6b42326
TT
40162021-03-08 Tom Tromey <tom@tromey.com>
4017
4018 * expop.h (class op_this_operation): New.
4019 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4020
cbc18219
TT
40212021-03-08 Tom Tromey <tom@tromey.com>
4022
4023 * expop.h (class unop_memval_operation)
4024 (class unop_memval_type_operation): New.
4025 * eval.c (eval_op_memval): No longer static.
4026 (unop_memval_operation::evaluate_for_address)
4027 (unop_memval_type_operation::evaluate_for_address)
4028 (unop_memval_operation::evaluate_for_sizeof)
4029 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4030 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4031 (unop_memval_type_operation::do_generate_ax): New methods.
4032
ae4bb61e
TT
40332021-03-08 Tom Tromey <tom@tromey.com>
4034
4035 * expop.h (class unop_alignof_operation): New.
4036 * eval.c (eval_op_alignof): No longer static.
4037
85d23bda
TT
40382021-03-08 Tom Tromey <tom@tromey.com>
4039
4040 * expop.h (class unop_sizeof_operation): New.
4041 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4042
14aff815
TT
40432021-03-08 Tom Tromey <tom@tromey.com>
4044
4045 * expop.h (class unop_addr_operation): New.
4046 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4047
929f3aa7
TT
40482021-03-08 Tom Tromey <tom@tromey.com>
4049
4050 * expop.h (class typeid_operation): New.
4051
0af8829e
TT
40522021-03-08 Tom Tromey <tom@tromey.com>
4053
4054 * expop.h (class decltype_operation): New.
4055
4efc574c
TT
40562021-03-08 Tom Tromey <tom@tromey.com>
4057
4058 * expop.h (class typeof_operation): New.
4059
5b5f5140
TT
40602021-03-08 Tom Tromey <tom@tromey.com>
4061
4062 * expop.h (class type_operation): New.
4063 * eval.c (eval_op_type): No longer static.
4064
876469ff
TT
40652021-03-08 Tom Tromey <tom@tromey.com>
4066
4067 * expop.h (class unop_ind_base_operation)
4068 (class unop_ind_operation): New.
4069 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4070 (unop_ind_base_operation::evaluate_for_address)
4071 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4072 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4073
6d89e296
TT
40742021-03-08 Tom Tromey <tom@tromey.com>
4075
4076 * expop.h (unop_incr_operation): New template.
4077 (preinc_operation, predec_operation, postinc_operation)
4078 (postdec_operation): New typedefs.
4079 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4080 (eval_op_postdec): No longer static.
4081
9307d17b
TT
40822021-03-08 Tom Tromey <tom@tromey.com>
4083
4084 * expop.h (unary_ftype): New typedef.
4085 (unop_operation, usual_ax_binop_operation): New templates.
4086 (unary_plus_operation, unary_neg_operation)
4087 (unary_complement_operation, unary_logical_not_operation): New
4088 typedefs.
4089 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4090 (eval_op_lognot): No longer static.
4091 * ax-gdb.c (gen_expr_unop): New function.
4092
ae64ba58
TT
40932021-03-08 Tom Tromey <tom@tromey.com>
4094
4095 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4096
d4eff4c1
TT
40972021-03-08 Tom Tromey <tom@tromey.com>
4098
4099 * expop.h (class repeat_operation): New.
4100 * eval.c (eval_op_repeat): No longer static. Remove "op"
4101 parameter.
4102 (evaluate_subexp_standard): Update.
4103 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4104
46916f2b
TT
41052021-03-08 Tom Tromey <tom@tromey.com>
4106
4107 * expop.h (class comparison_operation): New.
4108 (equal_operation, notequal_operation, less_operation)
4109 (gtr_operation, geq_operation, leq_operation): New typedefs.
4110 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4111 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4112
224d6424
TT
41132021-03-08 Tom Tromey <tom@tromey.com>
4114
4115 * expop.h (class subscript_operation): New.
4116 * eval.c (eval_op_subscript): No longer static.
4117
373907ff
TT
41182021-03-08 Tom Tromey <tom@tromey.com>
4119
4120 * expop.h (class binop_operation, class usual_ax_binop_operation):
4121 New.
4122 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4123 (div_operation, rem_operation, lsh_operation, rsh_operation)
4124 (bitwise_and_operation, bitwise_ior_operation)
4125 (bitwise_xor_operation): New typedefs.
4126 * eval.c (eval_op_binary): No longer static.
4127
5133d78b
TT
41282021-03-08 Tom Tromey <tom@tromey.com>
4129
4130 * expop.h (class sub_operation): New.
4131 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4132 (evaluate_subexp_standard): Update.
4133
a94323b6
TT
41342021-03-08 Tom Tromey <tom@tromey.com>
4135
4136 * expop.h (class add_operation): New.
4137 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4138 (evaluate_subexp_standard): Update.
4139
e51e26a0
TT
41402021-03-08 Tom Tromey <tom@tromey.com>
4141
4142 * expop.h (class concat_operation): New.
4143 * eval.c (eval_op_concat): No longer static. Remove "op"
4144 parameter.
4145 (evaluate_subexp_standard): Update.
4146
07f724a8
TT
41472021-03-08 Tom Tromey <tom@tromey.com>
4148
4149 * expop.h (class structop_member_operation)
4150 (class structop_mptr_operation): New.
4151 * eval.c (eval_op_member): No longer static.
4152
ab0609be
TT
41532021-03-08 Tom Tromey <tom@tromey.com>
4154
4155 * expop.h (class structop_ptr_operation): New.
4156 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4157 parameter.
4158
808b22cf
TT
41592021-03-08 Tom Tromey <tom@tromey.com>
4160
4161 * expop.h (class structop_base_operation)
4162 (class structop_operation): New.
4163 * eval.c (eval_op_structop_struct): No longer static.
4164
8cfd3e95
TT
41652021-03-08 Tom Tromey <tom@tromey.com>
4166
4167 * expop.h (class complex_operation): New.
4168
09db3700
TT
41692021-03-08 Tom Tromey <tom@tromey.com>
4170
4171 * eval.c (eval_op_objc_selector): No longer static.
4172 * c-exp.h (class objc_selector_operation): New.
4173
06dc61b9
TT
41742021-03-08 Tom Tromey <tom@tromey.com>
4175
4176 * eval.c: Include c-exp.h.
4177 * c-exp.h (class objc_nsstring_operation): New.
4178
72d0a711
TT
41792021-03-08 Tom Tromey <tom@tromey.com>
4180
4181 * c-lang.c (c_string_operation::evaluate): New method.
4182 * c-exp.h: New file.
4183
9186293f
TT
41842021-03-08 Tom Tromey <tom@tromey.com>
4185
4186 * expop.h (class ternop_cond_operation): New.
4187 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4188
1594e0bb
TT
41892021-03-08 Tom Tromey <tom@tromey.com>
4190
4191 * expop.h (class ternop_slice_operation): New.
4192 * eval.c (eval_op_ternop): No longer static.
4193
b50db09f
TT
41942021-03-08 Tom Tromey <tom@tromey.com>
4195
4196 * expop.h (class string_operation): New.
4197 * eval.c (eval_op_string): No longer static.
4198
e6e01e16
TT
41992021-03-08 Tom Tromey <tom@tromey.com>
4200
4201 * expop.h (class internalvar_operation): New.
4202 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4203
e6985c5e
TT
42042021-03-08 Tom Tromey <tom@tromey.com>
4205
4206 * expop.h (class bool_operation): New.
4207
55bdbff8
TT
42082021-03-08 Tom Tromey <tom@tromey.com>
4209
4210 * expop.h (class register_operation): New.
4211 * eval.c (eval_op_register): No longer static.
4212 * ax-gdb.c (register_operation::do_generate_ax): New method.
4213
247d935b
TT
42142021-03-08 Tom Tromey <tom@tromey.com>
4215
4216 * expop.h (class last_operation): New.
4217
17679395
TT
42182021-03-08 Tom Tromey <tom@tromey.com>
4219
4220 * expop.h (class func_static_var_operation): New.
4221 * eval.c (eval_op_func_static_var): No longer static.
4222
b5cc3923
TT
42232021-03-08 Tom Tromey <tom@tromey.com>
4224
4225 * expop.h (class var_entry_value_operation): New.
4226 * eval.c (eval_op_var_entry_value): No longer static.
4227
0c8effa3
TT
42282021-03-08 Tom Tromey <tom@tromey.com>
4229
4230 * expression.h (class operation) <set_outermost>: New method.
4231 * expop.h (class var_msym_value_operation): New.
4232 * eval.c (eval_op_var_msym_value): No longer static.
4233 (var_msym_value_operation::evaluate_for_address)
4234 (var_msym_value_operation::evaluate_for_sizeof)
4235 (var_msym_value_operation::evaluate_for_cast): New methods.
4236 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4237 method.
4238
d336c29e
TT
42392021-03-08 Tom Tromey <tom@tromey.com>
4240
4241 * expop.h (class long_const_operation): New.
4242 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4243
d5ab122c
TT
42442021-03-08 Tom Tromey <tom@tromey.com>
4245
4246 * expop.h (class scope_operation): New.
4247 * eval.c (eval_op_scope): No longer static.
4248 (scope_operation::evaluate_for_address): New method.
4249 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4250
cae26a0c
TT
42512021-03-08 Tom Tromey <tom@tromey.com>
4252
4253 * expprint.c (float_const_operation::dump): New method.
4254 * expop.h (float_data): New typedef.
4255 (class float_const_operation): New.
4256
75f9892d
TT
42572021-03-08 Tom Tromey <tom@tromey.com>
4258
4259 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4260 * ax-gdb.c (gen_expr_binop): New function.
4261 (gen_expr_structop): Likewise.
4262
de401988
TT
42632021-03-08 Tom Tromey <tom@tromey.com>
4264
4265 * expprint.c (expr::dump_for_expression): New functions.
4266 * expop.h (dump_for_expression): New overloads.
4267 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4268 Update.
4269
e2803273
TT
42702021-03-08 Tom Tromey <tom@tromey.com>
4271
4272 * expression.h (expr::operation): New class.
4273 (expr::make_operation): New function.
4274 (expr::operation_up): New typedef.
4275 * expop.h: New file.
4276 * eval.c (operation::evaluate_for_cast)
4277 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4278 New methods.
4279 * ax-gdb.c (operation::generate_ax): New method.
4280
e18c58f2
TT
42812021-03-08 Tom Tromey <tom@tromey.com>
4282
4283 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4284 (gen_expr_binop_rest): New overload.
4285
c0d7ed8c
TT
42862021-03-08 Tom Tromey <tom@tromey.com>
4287
4288 * eval.c (eval_multi_subscript): New function.
4289 (evaluate_subexp_standard): Use it.
4290
dd5fd283
TT
42912021-03-08 Tom Tromey <tom@tromey.com>
4292
4293 * ada-lang.c (ada_binop_exp): New function.
4294 (ada_evaluate_subexp): Use it.
4295
3848abd6
TT
42962021-03-08 Tom Tromey <tom@tromey.com>
4297
4298 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4299 parameters.
4300 (ada_evaluate_subexp): Use it.
4301
38dc70cf
TT
43022021-03-08 Tom Tromey <tom@tromey.com>
4303
4304 * ada-lang.c (ada_binop_minmax): New function.
4305 (ada_evaluate_subexp): Use it.
4306
b84564fc
TT
43072021-03-08 Tom Tromey <tom@tromey.com>
4308
4309 * ada-lang.c (ada_unop_atr): New function.
4310 (ada_evaluate_subexp): Use it.
4311
b467efaa
TT
43122021-03-08 Tom Tromey <tom@tromey.com>
4313
4314 * ada-lang.c (ada_binop_in_bounds): New function.
4315 (ada_evaluate_subexp): Use it.
4316
5ce19db8
TT
43172021-03-08 Tom Tromey <tom@tromey.com>
4318
4319 * ada-lang.c (ada_ternop_slice): New function.
4320 (ada_evaluate_subexp): Use it.
4321
214b13ac
TT
43222021-03-08 Tom Tromey <tom@tromey.com>
4323
4324 * ada-lang.c (ada_equal_binop): New function.
4325 (ada_evaluate_subexp): Use it.
4326
faa1dfd7
TT
43272021-03-08 Tom Tromey <tom@tromey.com>
4328
4329 * ada-lang.c (ada_mult_binop): New function.
4330 (ada_evaluate_subexp): Use it.
4331
d05e24e6
TT
43322021-03-08 Tom Tromey <tom@tromey.com>
4333
4334 * ada-lang.c (ada_abs): New function.
4335 (ada_evaluate_subexp): Use it.
4336
68c75735
TT
43372021-03-08 Tom Tromey <tom@tromey.com>
4338
4339 * ada-lang.c (ada_atr_size): New function.
4340 (ada_evaluate_subexp): Use it.
4341
020dbabe
TT
43422021-03-08 Tom Tromey <tom@tromey.com>
4343
4344 * ada-lang.c (ada_atr_tag): New function.
4345 (ada_evaluate_subexp): Use it.
4346
7efc87ff
TT
43472021-03-08 Tom Tromey <tom@tromey.com>
4348
4349 * ada-lang.c (ada_unop_in_range): New function.
4350 (ada_evaluate_subexp): Use it.
4351
82390ab8
TT
43522021-03-08 Tom Tromey <tom@tromey.com>
4353
4354 * ada-lang.c (ada_unop_neg): New function.
4355 (ada_evaluate_subexp): Use it.
4356
62d4bd94
TT
43572021-03-08 Tom Tromey <tom@tromey.com>
4358
4359 * ada-lang.c (eval_ternop_in_range): New function.
4360 (ada_evaluate_subexp): Use it.
4361
3634f669
TT
43622021-03-08 Tom Tromey <tom@tromey.com>
4363
4364 * opencl-lang.c (eval_opencl_assign): New function.
4365 (evaluate_subexp_opencl): Use it.
4366
5e80600e
TT
43672021-03-08 Tom Tromey <tom@tromey.com>
4368
4369 * eval.c (eval_op_objc_msgcall): New function.
4370 (evaluate_subexp_standard): Use it.
4371
fb5ba2ab
TT
43722021-03-08 Tom Tromey <tom@tromey.com>
4373
4374 * eval.c (eval_binop_assign_modify): New function.
4375 (evaluate_subexp_standard): Use it.
4376
a49881f7
TT
43772021-03-08 Tom Tromey <tom@tromey.com>
4378
4379 * m2-lang.c (eval_op_m2_subscript): New function.
4380 (evaluate_subexp_modula2): Use it.
4381
41bdced5
TT
43822021-03-08 Tom Tromey <tom@tromey.com>
4383
4384 * m2-lang.c (eval_op_m2_high): New function.
4385 (evaluate_subexp_modula2): Use it.
4386
13ea014a
TT
43872021-03-08 Tom Tromey <tom@tromey.com>
4388
4389 * eval.c (evaluate_subexp_for_address_base): New function.
4390 (evaluate_subexp_for_address): Use it.
4391 (evaluate_subexp_for_sizeof_base): New function.
4392 (evaluate_subexp_for_sizeof): Use it.
4393
1fa41fc7
TT
43942021-03-08 Tom Tromey <tom@tromey.com>
4395
4396 * rust-lang.c (eval_op_rust_structop): New function.
4397 (rust_evaluate_subexp): Use it.
4398
575cae23
TT
43992021-03-08 Tom Tromey <tom@tromey.com>
4400
4401 * rust-lang.c (eval_op_rust_struct_anon): New function.
4402 (rust_evaluate_subexp): Use it.
4403
05104233
TT
44042021-03-08 Tom Tromey <tom@tromey.com>
4405
4406 * rust-lang.c (eval_op_rust_array): New function.
4407 (rust_evaluate_subexp): Use it.
4408
6fa9831f
TT
44092021-03-08 Tom Tromey <tom@tromey.com>
4410
4411 * rust-lang.c (eval_op_rust_complement): New function.
4412 (rust_evaluate_subexp): Use it.
4413
d123f9e4
TT
44142021-03-08 Tom Tromey <tom@tromey.com>
4415
4416 * rust-lang.c (eval_op_rust_ind): New function.
4417 (rust_evaluate_subexp): Use it.
4418
984af2cb
TT
44192021-03-08 Tom Tromey <tom@tromey.com>
4420
4421 * rust-lang.c (rust_subscript): Change parameters.
4422 (rust_evaluate_subexp): Update.
4423
d148f803
TT
44242021-03-08 Tom Tromey <tom@tromey.com>
4425
4426 * rust-lang.c (rust_range): Change parameters.
4427 (rust_evaluate_subexp): Update.
4428
9cbd1c20
TT
44292021-03-08 Tom Tromey <tom@tromey.com>
4430
4431 * f-lang.c (eval_op_f_allocated): New function.
4432 (evaluate_subexp_f): Use it.
4433
3c18c49c
TT
44342021-03-08 Tom Tromey <tom@tromey.com>
4435
4436 * f-lang.c (fortran_require_array): New function.
4437 (evaluate_subexp_f): Use it.
4438
216f6fcb
TT
44392021-03-08 Tom Tromey <tom@tromey.com>
4440
4441 * f-lang.c (eval_op_f_kind): New function.
4442 (evaluate_subexp_f): Use it.
4443
00f2db6f
TT
44442021-03-08 Tom Tromey <tom@tromey.com>
4445
4446 * f-lang.c (eval_op_f_cmplx): New function.
4447 (evaluate_subexp_f): Use it.
4448
93b2b5fa
TT
44492021-03-08 Tom Tromey <tom@tromey.com>
4450
4451 * f-lang.c (eval_op_f_modulo): New function.
4452 (evaluate_subexp_f): Use it.
4453
9f1a1f3c
TT
44542021-03-08 Tom Tromey <tom@tromey.com>
4455
4456 * f-lang.c (eval_op_f_floor): New function.
4457 (evaluate_subexp_f): Use it.
4458
3dc41f3c
TT
44592021-03-08 Tom Tromey <tom@tromey.com>
4460
4461 * f-lang.c (eval_op_f_ceil): New function.
4462 (evaluate_subexp_f): Use it.
4463
e08109f2
TT
44642021-03-08 Tom Tromey <tom@tromey.com>
4465
4466 * f-lang.c (eval_op_f_mod): New function.
4467 (evaluate_subexp_f): Use it.
4468
cc05c68e
TT
44692021-03-08 Tom Tromey <tom@tromey.com>
4470
4471 * f-lang.c (eval_op_f_abs): New function.
4472 (evaluate_subexp_f): Use it.
4473
aec95807
TT
44742021-03-08 Tom Tromey <tom@tromey.com>
4475
4476 * eval.c (eval_op_type): New function.
4477 (evaluate_subexp_standard): Use it.
4478
a220ead5
TT
44792021-03-08 Tom Tromey <tom@tromey.com>
4480
4481 * eval.c (eval_op_postdec): New function.
4482 (evaluate_subexp_standard): Use it.
4483
abffe116
TT
44842021-03-08 Tom Tromey <tom@tromey.com>
4485
4486 * eval.c (eval_op_postinc): New function.
4487 (evaluate_subexp_standard): Use it.
4488
9e1361b7
TT
44892021-03-08 Tom Tromey <tom@tromey.com>
4490
4491 * eval.c (eval_op_predec): New file.
4492 (evaluate_subexp_standard): Use it.
4493
00f50884
TT
44942021-03-08 Tom Tromey <tom@tromey.com>
4495
4496 * eval.c (eval_op_preinc): New function.
4497 (evaluate_subexp_standard): Use it.
4498
3aef2a07
TT
44992021-03-08 Tom Tromey <tom@tromey.com>
4500
4501 * eval.c (eval_op_memval): New function.
4502 (evaluate_subexp_standard): Use it.
4503
acee9468
TT
45042021-03-08 Tom Tromey <tom@tromey.com>
4505
4506 * eval.c (eval_op_alignof): New function.
4507 (evaluate_subexp_standard): Use it.
4508
786f70ee
TT
45092021-03-08 Tom Tromey <tom@tromey.com>
4510
4511 * eval.c (eval_op_ind): New function.
4512 (evaluate_subexp_standard): Use it.
4513
24338fb9
TT
45142021-03-08 Tom Tromey <tom@tromey.com>
4515
4516 * eval.c (eval_op_lognot): New function.
4517 (evaluate_subexp_standard): Use it.
4518
1f09ec81
TT
45192021-03-08 Tom Tromey <tom@tromey.com>
4520
4521 * eval.c (eval_op_complement): New function.
4522 (evaluate_subexp_standard): Use it.
4523
606d105f
TT
45242021-03-08 Tom Tromey <tom@tromey.com>
4525
4526 * eval.c (eval_op_neg): New function.
4527 (evaluate_subexp_standard): Use it.
4528
39f288be
TT
45292021-03-08 Tom Tromey <tom@tromey.com>
4530
4531 * eval.c (eval_op_plus): New function.
4532 (evaluate_subexp_standard): Use it.
4533
eed70b1c
TT
45342021-03-08 Tom Tromey <tom@tromey.com>
4535
4536 * eval.c (eval_op_repeat): New function.
4537 (evaluate_subexp_standard): Use it.
4538
60cdd487
TT
45392021-03-08 Tom Tromey <tom@tromey.com>
4540
4541 * eval.c (eval_op_leq): New function.
4542 (evaluate_subexp_standard): Use it.
4543
96e3efd9
TT
45442021-03-08 Tom Tromey <tom@tromey.com>
4545
4546 * eval.c (eval_op_geq): New function.
4547 (evaluate_subexp_standard): Use it.
4548
1f78d732
TT
45492021-03-08 Tom Tromey <tom@tromey.com>
4550
4551 * eval.c (eval_op_gtr): New function.
4552 (evaluate_subexp_standard): Use it.
4553
6cad1349
TT
45542021-03-08 Tom Tromey <tom@tromey.com>
4555
4556 * eval.c (eval_op_less): New function.
4557 (evaluate_subexp_standard): Use it.
4558
1fcb3559
TT
45592021-03-08 Tom Tromey <tom@tromey.com>
4560
4561 * eval.c (eval_op_notequal): New function.
4562 (evaluate_subexp_standard): Use it.
4563
0cc96de8
TT
45642021-03-08 Tom Tromey <tom@tromey.com>
4565
4566 * eval.c (eval_op_equal): New function.
4567 (evaluate_subexp_standard): Use it.
4568
288d26bc
TT
45692021-03-08 Tom Tromey <tom@tromey.com>
4570
4571 * eval.c (eval_op_subscript): New function.
4572 (evaluate_subexp_standard): Use it.
4573
7cdcdd02
TT
45742021-03-08 Tom Tromey <tom@tromey.com>
4575
4576 * eval.c (eval_op_binary): New function.
4577 (evaluate_subexp_standard): Use it.
4578
d9790e22
TT
45792021-03-08 Tom Tromey <tom@tromey.com>
4580
4581 * eval.c (eval_op_sub): New function.
4582 (evaluate_subexp_standard): Use it.
4583
aedaf9ac
TT
45842021-03-08 Tom Tromey <tom@tromey.com>
4585
4586 * eval.c (eval_op_add): New function.
4587 (evaluate_subexp_standard): Use it.
4588
b7a96ed2
TT
45892021-03-08 Tom Tromey <tom@tromey.com>
4590
4591 * eval.c (eval_op_member): New function.
4592 (evaluate_subexp_standard): Use it.
4593
fb461aa3
TT
45942021-03-08 Tom Tromey <tom@tromey.com>
4595
4596 * eval.c (eval_op_structop_ptr): New function.
4597 (evaluate_subexp_standard): Use it.
4598
3e96c4fc
TT
45992021-03-08 Tom Tromey <tom@tromey.com>
4600
4601 * eval.c (eval_op_structop_struct): New function.
4602 (evaluate_subexp_standard): Use it.
4603
f960a617
TT
46042021-03-08 Tom Tromey <tom@tromey.com>
4605
4606 * eval.c (eval_op_ternop): New function.
4607 (evaluate_subexp_standard): Use it.
4608
5c2f201e
TT
46092021-03-08 Tom Tromey <tom@tromey.com>
4610
4611 * eval.c (eval_op_concat): New function.
4612 (evaluate_subexp_standard): Use it.
4613
f871bae1
TT
46142021-03-08 Tom Tromey <tom@tromey.com>
4615
4616 * eval.c (eval_op_objc_selector): New function.
4617 (evaluate_subexp_standard): Use it.
4618
14a1c64a
TT
46192021-03-08 Tom Tromey <tom@tromey.com>
4620
4621 * eval.c (eval_op_string): New function.
4622 (evaluate_subexp_standard): Use it.
4623
ffff730b
TT
46242021-03-08 Tom Tromey <tom@tromey.com>
4625
4626 * eval.c (eval_op_register): New function.
4627 (evaluate_subexp_standard): Use it.
4628
9b1d8af6
TT
46292021-03-08 Tom Tromey <tom@tromey.com>
4630
4631 * eval.c (eval_op_func_static_var): New function.
4632 (evaluate_subexp_standard): Use it.
4633
c0df9289
TT
46342021-03-08 Tom Tromey <tom@tromey.com>
4635
4636 * eval.c (eval_op_var_msym_value): New function.
4637 (evaluate_subexp_standard): Use it.
4638
50b98adc
TT
46392021-03-08 Tom Tromey <tom@tromey.com>
4640
4641 * eval.c (eval_op_var_entry_value): New function.
4642 (evaluate_subexp_standard): Use it.
4643
ea2d29f7
TT
46442021-03-08 Tom Tromey <tom@tromey.com>
4645
4646 * eval.c (eval_op_scope): New function.
4647 (evaluate_subexp_standard): Use it.
4648
01573d73
TT
46492021-03-06 Chernov Sergey <klen_s@mail.ru>
4650
4651 PR gdb/27528:
4652 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4653
9938d15a
TT
46542021-03-06 Tom Tromey <tom@tromey.com>
4655
4656 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4657 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4658 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4659 (locate_dwz_sections, dwz_search_other_debugdirs)
4660 (dwarf2_get_dwz_file): Move to dwz.c.
4661 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4662 read.h.
4663 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4664 (dwarf2_get_dwz_file): Move from read.c.
4665
18035655
TT
46662021-03-06 Tom Tromey <tom@tromey.com>
4667
4668 * debuginfod-support.h: Include scoped_fd.h.
4669
a7308ce0
TT
46702021-03-06 Tom Tromey <tom@tromey.com>
4671
4672 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4673 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4674 (get_abbrev_section_for_cu, read_attribute_value)
4675 (get_debug_line_section): Update.
4676 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4677
fbedd546
TT
46782021-03-06 Tom Tromey <tom@tromey.com>
4679
4680 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4681 method.
4682 * dwarf2/read.c (section_is_p): Remove.
4683 (dwarf2_per_bfd::locate_sections)
4684 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4685 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4686 (dwarf2_locate_common_dwp_sections)
4687 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4688 Update.
4689
c2a62a3d
TT
46902021-03-06 Tom Tromey <tom@tromey.com>
4691
4692 * xcoffread.c: Include sect-names.h.
4693 * symfile.h (struct dwarf2_section_names, struct
4694 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4695 * dwarf2/sect-names.h: New file, from symfile.h.
4696 * dwarf2/read.c: Include sect-names.h.
4697
4444f407
TT
46982021-03-06 Tom Tromey <tom@tromey.com>
4699
4700 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4701 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4702 (abbrev_table::read): Update.
4703 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4704 (struct abbrev_info): Reformat.
4705 <attrs>: Now an array.
4706 (struct abbrev_table) <alloc_abbrev>: Remove.
4707
dd99cf0c
WP
47082021-03-06 Weimin Pan <weimin.pan@oracle.com>
4709
4710 * ctfread.c (ctf_psymtab_add_enums): New function.
4711 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4712
844be3f2
WP
47132021-03-06 Weimin Pan <weimin.pan@oracle.com>
4714
4715 * ctfread.c (read_func_kind_type): Set up function arguments.
4716
b2668f28
AB
47172021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4718 Andrew Burgess <andrew.burgess@embecosm.com>
4719
4720 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4721 includes.
4722 (riscv_csrset): New static global.
4723 (riscv_update_csrmap): New function.
4724 (riscv_iterate_over_regset_sections): Process CSRs.
4725
d782d24b
AB
47262021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4727
4728 * riscv-tdep.c (riscv_feature_name_csr): Define.
4729 (riscv_feature_name_cpu): Define.
4730 (riscv_feature_name_fpu): Define.
4731 (riscv_feature_name_virtual): Define.
4732 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4733 (riscv_freg_feature): Use riscv_feature_name_fpu.
4734 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4735 (riscv_csr_feature): Use riscv_feature_name_csr.
4736 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4737
fb8f3fc0
AB
47382021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4739 Craig Blackmore <craig.blackmore@embecosm.com>
4740
4741 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4742 (ALLDEPFILES): Add riscv-none-tdep.c.
4743 * configure: Regenerate.
4744 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4745 support.
4746 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4747 * elf-none-tdep.c: New file.
4748 * elf-none-tdep.h: New file.
4749 * riscv-none-tdep.c: New file.
4750
95ce627a
AB
47512021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4752 Andrew Burgess <andrew.burgess@embecosm.com>
4753
4754 * corelow.c: Add 'xml-tdesc.h' include.
4755 (core_target::read_description): Load the target description from
4756 the core file when possible.
4757 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4758 note.
4759 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4760 (gcore_elf_make_tdesc_note): New function.
4761 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4762 * linux-tdep.c (linux_make_corefile_notes): Add target description
4763 note.
4764
f3a5df7b
AB
47652021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4766
4767 * Makefile.in (SFILES): Add gcore-elf.c.
4768 (HFILES_NO_SRCDIR): Add gcore-elf.h
4769 * configure: Regenerate.
4770 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4771 support.
4772 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4773 (struct fbsd_collect_regset_section_cb_data): Delete.
4774 (fbsd_collect_regset_section_cb): Delete.
4775 (fbsd_collect_thread_registers): Delete.
4776 (struct fbsd_corefile_thread_data): Delete.
4777 (fbsd_corefile_thread): Delete.
4778 (fbsd_make_corefile_notes): Call
4779 gcore_elf_build_thread_register_notes instead of the now deleted
4780 FreeBSD code.
4781 * gcore-elf.c: New file, the content was moved here from
4782 linux-tdep.c, functions were renamed and given minor cleanup.
4783 * gcore-elf.h: New file.
4784 * gcore.c (gcore_find_signalled_thread): Moved here from
4785 linux-tdep.c and given a new name. Minor cleanups.
4786 * gcore.h (gcore_find_signalled_thread): Declare.
4787 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4788 (struct linux_collect_regset_section_cb_data): Delete.
4789 (linux_collect_regset_section_cb): Delete.
4790 (linux_collect_thread_registers): Delete.
4791 (linux_corefile_thread): Call
4792 gcore_elf_build_thread_register_notes.
4793 (find_signalled_thread): Delete.
4794 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4795
d1e93af6
SM
47962021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4797
4798 PR gdb/27147
4799 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4800 process_stratum_target parameter,
4801 sparc_store_inferior_registers): update callers.
4802 * sparc-nat.c (sparc_fetch_inferior_registers,
4803 sparc_store_inferior_registers): Add process_stratum_target
4804 parameter. Switch current thread before calling
4805 sparc_supply_gregset / sparc_collect_rwindow.
4806 (sparc_store_inferior_registers): Likewise.
4807 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4808 (sparc32obsd_collect_uthread): Likewise.
4809 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4810 Add assertion.
4811 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4812 sparc64obsd_supply_uthread): Add assertion.
4813
1178743e
TT
48142021-03-04 Tom Tromey <tromey@adacore.com>
4815
4816 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4817 (aux_add_nonlocal_symbols): Update.
4818 (ada_add_block_symbols): Change "found_sym" to bool.
4819
1bfa81ac
TT
48202021-03-03 Tom Tromey <tromey@adacore.com>
4821
4822 * ada-lang.c (ada_resolve_function): Update comment.
4823 (is_nonfunction, add_symbols_from_enclosing_procs)
4824 (remove_extra_symbols): Likewise.
4825 (struct match_data): Add constructor, initializers.
4826 (add_nonlocal_symbols): Remove memset.
4827 (aux_add_nonlocal_symbols): Update comment.
4828 (ada_add_block_renamings, add_nonlocal_symbols)
4829 (ada_add_all_symbols): Likewise.
4830 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4831
bbcdf9ab
TT
48322021-03-02 Tom Tromey <tromey@adacore.com>
4833
4834 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4835 (cast_to_gnat_encoded_fixed_point_type): Remove.
4836 (ada_value_cast, ada_evaluate_subexp): Update.
4837 (gnat_encoded_fixed_point_type_info)
4838 (ada_is_gnat_encoded_fixed_point_type)
4839 (gnat_encoded_fixed_point_delta)
4840 (gnat_encoded_fixed_point_scaling_factor): Remove.
4841 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4842 (gnat_encoded_fixed_point_delta)
4843 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4844 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4845 (ada_print_type): Update.
4846 * ada-valprint.c (ada_value_print_num): Update.
4847 * dwarf2/read.c (ada_get_gnat_encoded_number)
4848 (ada_get_gnat_encoded_ratio): New functions.
4849 (finish_fixed_point_type): Use them. Add parameters.
4850 (GNAT_FIXED_POINT_SUFFIX): New define.
4851 (gnat_encoded_fixed_point_type_info): New function.
4852 (read_base_type): Handle gnat encodings.
4853
5f9febe0
TT
48542021-03-02 Tom Tromey <tromey@adacore.com>
4855
4856 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4857 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4858 std::string.
4859 (GROW_VECT): Remove.
4860 (grow_vect): Remove.
4861
d1183b06
TT
48622021-03-02 Tom Tromey <tromey@adacore.com>
4863
4864 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4865 * ada-lang.c (resolve_subexp): Update.
4866 (ada_resolve_function): Accept a vector.
4867 (is_nonfunction, add_defn_to_vec)
4868 (add_symbols_from_enclosing_procs): Likewise.
4869 (num_defns_collected, defns_collected): Remove.
4870 (remove_extra_symbols): Return a vector.
4871 (remove_irrelevant_renamings): Return void.
4872 (ada_add_local_symbols): Accept a vector.
4873 (struct match_data) <obstackp>: Remove.
4874 <resultp>: New member.
4875 (aux_add_nonlocal_symbols): Update.
4876 (ada_add_block_renamings, add_nonlocal_symbols)
4877 (ada_add_all_symbols): Accept a vector.
4878 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4879 vector.
4880 (ada_lookup_symbol): Update.
4881 (ada_add_block_symbols): Accept a vector.
4882 (get_var_value, iterate_over_symbols): Update.
4883 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4884 Update.
4885
886d459f
TT
48862021-03-02 Tom Tromey <tromey@adacore.com>
4887
4888 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4889
bdcccc56
TT
48902021-03-02 Tom Tromey <tromey@adacore.com>
4891
4892 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4893 auto_obstack.
4894 <root>: Initialize.
4895 (ada_pspace_data): Remove destructor.
4896 <sym_cache>: Now a unique_ptr.
4897 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4898 (ada_get_symbol_cache): Use 'new'.
4899 (ada_clear_symbol_cache): Rewrite.
4900
1228719f
TT
49012021-03-02 Tom Tromey <tromey@adacore.com>
4902
4903 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4904 is null.
4905
bb3a4efe
LS
49062021-02-27 Lancelot Six <lsix@lancelotsix.com>
4907
4908 PR gdb/27393
4909 * source.c (add_path): Skip empty dirnames.
4910
26b43ca6 49112021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4912
4913 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4914 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4915
dffdd8b5
SM
49162021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4917
4918 PR gdb/26861
4919 * target.c (target_mourn_inferior): Only compare pids in
4920 target_mourn_inferior.
4921
64d38fdd
JM
49222021-02-25 Jan Matyas <jmatyas@codasip.com>
4923
4924 PR gdb/26819
4925 * remote.c (remote_target::start_remote): Ensure the single
4926 thread, automatically added for remote targets without the
4927 concept of threading, is initially in set to the "resumed"
4928 state.
4929 * remote.c (remote_target::add_current_inferior_and_thread):
4930 Add return value - return the main thread.
4931
2450ad54
JV
49322021-02-25 Jan Vrany <jan.vrany@labware.com>
4933
4934 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4935 (mi_tsv_created): Likewise.
4936 (mi_tsv_deleted): Likewise.
4937
30c80d88
TV
49382021-02-25 Tom de Vries <tdevries@suse.de>
4939
4940 PR symtab/27354
4941 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4942 section_kind for &dwo_file->sections.info.
4943
68337b8b
AB
49442021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4945
4946 PR fortran/26155
4947 * f-lang.c (fortran_argument_convert): Delete declaration.
4948 (fortran_prepare_argument): New function.
4949 (evaluate_subexp_f): Move logic to new function
4950 fortran_prepare_argument.
4951
faeb9f13
AB
49522021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4953
4954 * f-exp.y (f77_keywords): Add 'associated'.
4955 * f-lang.c (fortran_associated): New function.
4956 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4957 (operator_length_f): Likewise.
4958 (print_unop_or_binop_subexp_f): New function.
4959 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4960 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4961 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4962 (operator_check_f): Likewise.
4963 * std-operator.def: Add FORTRAN_ASSOCIATED.
4964
170f4b23
AB
49652021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4966
4967 * f-exp.y (fortran_operators): Add ".xor.".
4968
aa659cfa
TV
49692021-02-24 Tom de Vries <tdevries@suse.de>
4970
4971 PR symtab/27336
4972 * dwarf2/attribute.c (attribute::form_is_signed): New function
4973 factored out of ...
4974 * dwarf2/attribute.h (attribute::as_signed): ... here.
4975 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4976 (attribute::form_is_signed): Declare.
4977 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4978 for DW_AT_decl_file.
4979
268c77c1
KB
49802021-02-24 Kevin Buettner <kevinb@redhat.com>
4981
4982 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4983 order for <sys/ptrace.h> and <asm/ptrace.h>.
4984
665af52e
KB
49852021-02-24 Kevin Buettner <kevinb@redhat.com>
4986
4987 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4988 <sys/ptrace.h>.
4989
dd80d750
AB
49902021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * exec.c (set_section_command): Move variable declarations into
4993 the function body, and use std::string instead of a fixed size
4994 buffer.
4995
336aa7b7
AB
49962021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4997
4998 * exec.c (exec_target::get_section_table): Delete member function.
4999 (section_table_read_available_memory): Use current_top_target, not
5000 just the exec_ops target.
5001 * target-delegates.c: Regenerate.
5002 * target.c (default_get_section_table): New function.
5003 * target.h (target_ops::get_section_table): Change default
5004 behaviour to call default_get_section_table.
5005 (default_get_section_table): Declare.
5006
02f7d26b
AB
50072021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 * exec.c (exec_target::close): Call new clear_target_sections
5010 function.
5011 (program_space::add_target_sections): Update name of member
5012 variable.
5013 (program_space::add_target_sections): Update name of member
5014 variable.
5015 (program_space::remove_target_sections): Likewise.
5016 (exec_one_fork): Use new target_sections member function.
5017 (exec_target::get_section_table): Likewise.
5018 (exec_target::files_info): Likewise.
5019 (set_section_command): Likewise.
5020 (exec_set_section_address): Likewise.
5021 (exec_target::has_memory): Use new target_sections member
5022 function.
5023 * progspace.h (program_space::clear_target_sections): New member
5024 function.
5025 (program_space::target_sections): Rename member variable to
5026 m_target_sections, replace with a new member function.
5027 (program_space::m_target_sections): New member variable.
5028 * solib-dsbt.c (scan_dyntag): Use new member function.
5029 * solib-svr4.c (scan_dyntag): Likewise.
5030
19cf757a
AB
50312021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5032
5033 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5034 return type const.
5035 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5036 (section_table_read_available_memory): Make local const.
5037 (exec_target::xfer_partial): Make local const.
5038 (print_section_info): Make parameter const.
5039 * gdb/exec.h (print_section_info): Likewise.
5040 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5041 const.
5042 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5043 Likewise.
5044 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5045 Likewise.
5046 * gdb/s390-tdep.c (s390_load): Likewise.
5047 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5048 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5049 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5050 Rename to...
5051 (target_debug_print_const_target_section_table_p): ...this.
5052 * gdb/target-delegates.c: Regenerate.
5053 * gdb/target.c (target_get_section_table): Make return type const.
5054 (target_section_by_addr): Likewise. Also make some locals const.
5055 (memory_xfer_partial_1): Make some locals const.
5056 * gdb/target.h (struct target_ops) <get_section_table>: Make
5057 return type const.
5058 (target_section_by_addr): Likewise.
5059 (target_get_section_table): Likewise.
5060
02a79309
AB
50612021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5062
5063 * NEWS: Mention new 'maint info target-sections' command.
5064 * maint.c (maintenance_info_target_sections): New function.
5065 (_initialize_maint_cmds): Register new command.
5066
895b7b4e
AB
50672021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5068
5069 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5070 (riscv_features_from_bfd): ...this. Change parameter type to
5071 'bfd*', and update as required.
5072 (riscv_find_default_target_description): Update call to
5073 riscv_features_from_bfd. Select a default xlen based on
5074 info.bfd_arch_info.
5075 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5076
bc3c0632
AB
50772021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5078
5079 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5080 dynamic types in UNOP_IND.
5081
08ac5771
SM
50822021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5083
5084 PR gdb/26828
5085 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5086 Instantiate queue.
5087 (~dwarf2_queue_guard): Clear queue.
5088 (queue_comp_unit): Assert that queue is
5089 instantiated.
5090 (process_queue): Adjust.
5091 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5092
616c069a
SM
50932021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5094
5095 PR gdb/26828
5096 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5097 to decide whether or not to enqueue it for expansion.
5098 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5099 after calling maybe_queue_comp_unit.
5100
897608ed
SM
51012021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5102
5103 * linux-nat.c (linux_nat_filter_event): Return void.
5104
15908a11
TT
51052021-02-22 Tom Tromey <tromey@adacore.com>
5106
5107 * solib-svr4.c (enable_break): Update.
5108 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5109 type.
5110 (target_bfd_reopen): Change parameter type.
5111 * bfd-target.h (target_bfd_reopen): Change parameter type.
5112
f53fc427
SM
51132021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5114
5115 * thread.c (add_thread_silent): Add assert.
5116 (find_thread_ptid): Add assert.
5117
de146e19
SM
51182021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5119
5120 PR gdb/27435
5121 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5122 (target_unpush_up): Likewise.
5123 * procfs.c (procfs_target::attach): Push target early. Use
5124 target_unpush_up to unpush target in case of error.
5125 * target.h (struct target_unpusher): Move here.
5126 (target_unpush_up): Likewise.
5127
8488c357
KB
51282021-02-19 Kevin Buettner <kevinb@redhat.com>
5129
5130 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5131 (which in turn includes <gnulib/config.h>) before include
5132 of <signal.h>.
5133
5a9f5403
NC
51342021-02-19 Nelson Chu <nelson.chu@sifive.com>
5135
5136 PR 27158
5137 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5138 (decode_j_type_insn): Likewise.
5139 (decode_cj_type_insn): Likewise.
5140 (decode_b_type_insn): Likewise.
5141 (decode): Likewise.
5142
26f53cd3
TT
51432021-02-18 Tom Tromey <tom@tromey.com>
5144
5145 * expression.h (struct expression) <evaluate>: Declare method.
5146 * eval.c (evaluate_subexp): Simplify.
5147 (expression::evaluate): New method.
5148 (evaluate_expression, evaluate_type): Use expression::evaluate.
5149
6a780b67
KB
51502021-02-17 Kevin Buettner <kevinb@redhat.com>
5151
5152 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5153 to accessing it.
5154 (ada_lookup_name_info): Likewise.
5155
adeab0c5
MF
51562021-02-13 Mike Frysinger <vapier@gentoo.org>
5157
5158 * aclocal.m4: Regenerate.
5159
089436f7
TV
51602021-02-12 Tom de Vries <tdevries@suse.de>
5161
5162 PR threads/26228
5163 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5164 (lin_thread_signals): New static var.
5165 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5166 New function.
5167 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5168 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5169 Declare.
5170 * linux-thread-db.c (check_thread_signals): Use
5171 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5172
96df3e28
AB
51732021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5174
5175 * f-exp.y (f77_keywords): Add allocated.
5176 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5177 (operator_length_f): Likewise.
5178 (print_subexp_f): Likewise.
5179 (dump_subexp_body_f): Likewise.
5180 (operator_check_f): Likewise.
5181 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5182
05f68f52
TV
51832021-02-11 Tom de Vries <tdevries@suse.de>
5184
5185 PR symtab/27353
5186 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5187 Return true for DW_FORM_strx.
5188
b260f8d6
TT
51892021-02-11 Tom Tromey <tromey@adacore.com>
5190
5191 PR gdb/27383:
5192 * parse.c (write_exp_symbol_reference): Write sym.block.
5193
bf3386f0
AB
51942021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 * NEWS: Mention changes to 'maint info sections'.
5197 * maint.c (match_substring): Return a bool, fix whitespace issue.
5198 (struct single_bfd_flag_info): New struct.
5199 (bfd_flag_info): New static global.
5200 (match_bfd_flags): Return a bool, use bfd_flag_info.
5201 (print_bfd_flags): Use bfd_flag_info.
5202 (maint_print_section_info): Delete trailing whitespace.
5203 (struct maint_info_sections_opts): New struct.
5204 (maint_info_sections_option_defs): New static global.
5205 (maint_info_sections_completer): New function.
5206 (maintenance_info_sections): Use option parsing mechanism.
5207 (_initialize_maint_cmds): Update command help text for 'maint info
5208 sections' and register a command completer.
5209
4790db14
AB
52102021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5211
5212 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5213 functionality merged into...
5214 (maint_print_all_sections): ...this new function.
5215 (maintenance_info_sections): Make use of maint_print_all_sections,
5216 allow all objects to be printed even where there's no executable.
5217
1db66e34
AB
52182021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5219
5220 * breakpoint.c (resolve_sal_pc): Make use of
5221 bound_minimal_symbol::obj_section.
5222 * maint.c (maintenance_translate_address): Likewise.
5223 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5224 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5225 member function.
5226 * printcmd.c (info_address_command): Make use of
5227 bound_minimal_symbol::obj_section.
5228
18b8df43
AM
52292021-02-11 Alan Modra <amodra@gmail.com>
5230
5231 * arm-symbian-tdep.c: Delete.
5232 * NEWS: Mention arm-symbian removal.
5233 * Makefile.in: Remove arm-symbian-tdep entries.
5234 * configure.tgt: Remove arm*-*-symbianelf*.
5235 * doc/gdb.texinfo: Remove mention of SymbianOS.
5236 * osabi.c (gdb_osabi_names): Remove "Symbian".
5237 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5238 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5239 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5240 handling.
5241 * testsuite/gdb.base/dup-sect.exp: Likewise.
5242 * testsuite/gdb.base/long_long.exp: Likewise.
5243 * testsuite/gdb.base/solib-weak.exp: Likewise.
5244 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5245 * testsuite/gdb.python/py-section-script.exp: Likewise.
5246 * testsuite/lib/dwarf.exp: Likewise.
5247 * testsuite/lib/gdb.exp: Likewise.
5248
e92c8eb8
AB
52492021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5250
5251 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5252 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5253 (one_or_two_args): New pattern.
5254 (f77_keywords): Add lbound and ubound.
5255 * f-lang.c (fortran_bounds_all_dims): New function.
5256 (fortran_bounds_for_dimension): New function.
5257 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5258 (operator_length_f): Likewise.
5259 (print_subexp_f): Likewise.
5260 (dump_subexp_body_f): Likewise.
5261 (operator_check_f): Likewise.
5262 * std-operator.def (FORTRAN_LBOUND): Define.
5263 (FORTRAN_UBOUND): Define.
5264
a52d653e
AB
52652021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5266
5267 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5268 and set_section_index member functions where appropriate.
5269 * coffread.c (coff_symtab_read): Likewise.
5270 (process_coff_symbol): Likewise.
5271 * ctfread.c (set_symbol_address): Likewise.
5272 * dwarf2/read.c (add_partial_symbol): Likewise.
5273 (var_decode_location): Likewise.
5274 * language.c: Likewise.
5275 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5276 (compact_minimal_symbols): Likewise.
5277 (minimal_symbol_upper_bound): Likewise.
5278 * objfiles.c (relocate_one_symbol): Likewise.
5279 * psympriv.h (partial_symbol::obj_section): Likewise.
5280 (partial_symbol::address): Likewise.
5281 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5282 * stabsread.c (scan_file_globals): Likewise.
5283 * symmisc.c (dump_msymbols): Likewise.
5284 * symtab.c (general_symbol_info::obj_section): Likewise.
5285 (fixup_section): Likewise.
5286 (get_msymbol_address): Likewise.
5287 * symtab.h (general_symbol_info::section): Rename to...
5288 (general_symbol_info::m_section): ...this.
5289 (general_symbol_info::set_section_index): New member function.
5290 (general_symbol_info::section_index): Likewise.
5291 (SYMBOL_SECTION): Delete.
5292 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5293 set_section_index member functions where appropriate.
5294 (MSYMBOL_SECTION): Delete.
5295 (symbol::symbol): Update to initialize 'm_section'.
5296 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5297 (process_xcoff_symbol): Likewise.
5298
ebbc3a7d
AB
52992021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5300
5301 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5302 MSYMBOL_OBJ_SECTION.
5303 * findvar.c (language_defn::read_var_value): Likewise.
5304 * infcmd.c (jump_command): Likewise.
5305 * linespec.c (minsym_found): Likewise.
5306 * maint.c (maintenance_translate_address): Likewise.
5307 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5308 (minimal_symbol_upper_bound): Likewise.
5309 * parse.c (find_minsym_type_and_address): Likewise.
5310 (operator_check_standard): Likewise.
5311 * printcmd.c (info_address_command): Likewise.
5312 * symmisc.c (dump_msymbols): Likewise.
5313 (print_symbol): Likewise.
5314 * symtab.c (general_symbol_info::obj_section): Define new
5315 function.
5316 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5317 (find_pc_sect_compunit_symtab): Likewise.
5318 (find_function_start_sal): Likewise.
5319 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5320 MSYMBOL_OBJ_SECTION.
5321 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5322 function.
5323 (SYMBOL_OBJ_SECTION): Delete.
5324 (MSYMBOL_OBJ_SECTION): Delete.
5325
9bb305b3
TT
53262021-02-09 Tom Tromey <tom@tromey.com>
5327
5328 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5329
cf2b2075
TV
53302021-02-09 Tom de Vries <tdevries@suse.de>
5331
5332 PR symtab/27341
5333 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5334 construct an array type. Add assert to ensure that element_type is
5335 not being modified.
5336
03642b71
AB
53372021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5338
5339 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5340 (gcore_collect_regset_section_cb): Delete.
5341 (gcore_collect_thread_registers): Delete.
5342 (gcore_build_thread_register_notes): Delete.
5343 (gcore_find_signalled_thread): Delete.
5344 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5345 'gdbarch' and 'thread_info' declarations.
5346 (gcore_build_thread_register_notes): Delete declaration.
5347 (gcore_find_signalled_thread): Likewise.
5348 * fbsd-tdep.c: Remove 'gcore.h' include.
5349 (struct fbsd_collect_regset_section_cb_data): New struct.
5350 (fbsd_collect_regset_section_cb): New function.
5351 (fbsd_collect_thread_registers): New function.
5352 (struct fbsd_corefile_thread_data): New struct.
5353 (fbsd_corefile_thread): New function.
5354 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5355 * linux-tdep.c: Remove 'gcore.h' include.
5356 (struct linux_collect_regset_section_cb_data): New struct.
5357 (linux_collect_regset_section_cb): New function.
5358 (linux_collect_thread_registers): New function.
5359 (linux_corefile_thread): Call Linux specific code.
5360 (find_signalled_thread): New function.
5361 (linux_make_corefile_notes): Call find_signalled_thread.
5362
f73e424f
TT
53632021-02-09 Tom Tromey <tromey@adacore.com>
5364
5365 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5366 not_lval value.
5367 * value.c (value_contents_copy_raw): Now static.
5368 * value.h (value_contents_copy_raw): Don't declare.
5369
a4f0544b
TT
53702021-02-09 Tom Tromey <tromey@adacore.com>
5371
5372 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5373 fields.
5374
9b3e4b5d
SV
53752021-02-08 Shahab Vahedi <shahab@synopsys.com>
5376
5377 PR tdep/27369
5378 * arc-linux-tdep.c (handle_atomic_sequence): New.
5379 (arc_linux_software_single_step): Call handle_atomic_sequence().
5380
29db1eb3
AB
53812021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5382
5383 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5384 function.
5385 (REQUIRE_WINDOW): Call is_valid member function.
5386 (REQUIRE_WINDOW_FOR_SETTER): New define.
5387 (gdbpy_tui_is_valid): Call is_valid member function.
5388 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5389 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5390 tui_active too.
5391 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5392 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5393 the function.
5394
e0c23e11
AB
53952021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5398 for the title is not nullptr.
5399
1cf23996
AB
54002021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * tui-layout.c (saved_tui_windows): Delete.
5403 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5404 call new get_windows member function instead.
5405 (tui_get_window_by_name): Check in tui_windows.
5406 (tui_layout_window::apply): Don't add to tui_windows.
5407 * tui-layout.h (tui_layout_base::get_windows): New member function.
5408 (tui_layout_window::get_windows): Likewise.
5409 (tui_layout_split::get_windows): Likewise.
5410
a53a2657
AB
54112021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5412
5413 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5414 of the window objects.
5415
2708dbbd
AB
54162021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5417
5418 * python/python.c (gdbpy_print_stack): Reformat an error message.
5419
cd074e04
AB
54202021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5421
5422 * tui/tui-interp.c (tui_command_line_handler): New function.
5423 (tui_interp::resume): Register tui_command_line_handler as the
5424 input_handler.
5425 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5426 function.
5427 (tui_getc_1): Delete handling of '\n' and '\r'.
5428 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5429
4cf28e91
HD
54302021-02-07 Hannes Domani <ssbssa@yahoo.de>
5431
5432 * tui/tui-regs.c (tui_data_window::display_registers_from):
5433 Mark invisible register sub windows.
5434 (tui_data_window::check_register_values): Ignore invisible
5435 register sub windows.
5436
3537bc23
HD
54372021-02-07 Hannes Domani <ssbssa@yahoo.de>
5438
5439 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5440 n_spaces with a negative value.
5441
5fc2d6aa
HD
54422021-02-07 Hannes Domani <ssbssa@yahoo.de>
5443
5444 * tui/tui-regs.c (tui_data_window::display_registers_from):
5445 Add refresh_window call.
5446
83962f83
HD
54472021-02-07 Hannes Domani <ssbssa@yahoo.de>
5448
5449 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5450
0110ec82
SM
54512021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5452
5453 * symmisc.c (std_in, std_out, std_err): Remove.
5454 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5455
7c6944ab
TV
54562021-02-05 Tom de Vries <tdevries@suse.de>
5457
5458 PR breakpoints/27330
5459 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5460 glibc object file has debug info.
5461
e77b0004
TV
54622021-02-05 Tom de Vries <tdevries@suse.de>
5463
5464 PR symtab/27333
5465 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5466
0e857c82
TV
54672021-02-05 Tom de Vries <tdevries@suse.de>
5468
5469 PR breakpoints/27313
5470 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5471 syscall numbers.
5472
bdfea17e
TT
54732021-02-05 Tom Tromey <tom@tromey.com>
5474
5475 * compile/compile-c-support.c (get_compile_context)
5476 (c_get_compile_context, cplus_get_compile_context): Change return
5477 type.
5478 * language.c (language_defn::get_compile_instance): New method.
5479 * language.h (language_defn::get_compile_instance): Change return
5480 type. No longer inline.
5481 * c-lang.c (c_language::get_compile_instance): Change return type.
5482 (cplus_language::get_compile_instance): Change return type.
5483 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5484 Change return type.
5485 * compile/compile.c (compile_to_object): Update.
5486
1b30f421
TT
54872021-02-05 Tom Tromey <tom@tromey.com>
5488
5489 * parser-defs.h (write_exp_symbol_reference): Declare.
5490 * parse.c (write_exp_symbol_reference): New function.
5491 * p-exp.y (variable): Use write_exp_symbol_reference.
5492 * m2-exp.y (variable): Use write_exp_symbol_reference.
5493 * f-exp.y (variable): Use write_exp_symbol_reference.
5494 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5495 * c-exp.y (variable): Use write_exp_symbol_reference.
5496
ae710496
TV
54972021-02-05 Tom de Vries <tdevries@suse.de>
5498
5499 PR exp/27265
5500 * valarith.c (complex_binop): Throw an error if complex type can't
5501 be created.
5502
d3b54e63
TV
55032021-02-05 Tom de Vries <tdevries@suse.de>
5504
5505 PR symtab/27307
5506 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5507 return.
5508
fc9a13fb
TV
55092021-02-05 Tom de Vries <tdevries@suse.de>
5510
5511 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5512
04b4939b
MF
55132021-02-04 Mike Frysinger <vapier@gentoo.org>
5514
5515 * configure.tgt (riscv*-*-*): Set gdb_sim.
5516
6ff267e1
SM
55172021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5518
5519 * target.c (target_is_non_stop_p): Return bool.
5520 * target.h (target_is_non_stop_p): Return bool.
5521
fdbc5215
SM
55222021-02-04 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * record-full.c (record_full_async_inferior_event_handler):
5525 Don't clear async event handler.
5526 (record_full_base_target::wait): Clear async event handler at
5527 beginning.
5528
85d3ad8e
SM
55292021-02-04 Simon Marchi <simon.marchi@efficios.com>
5530
5531 * record-btrace.c (record_btrace_handle_async_inferior_event):
5532 Don't clear async event handler.
5533 (record_btrace_target::wait): Clear async event handler at
5534 beginning.
5535
baa8575b
SM
55362021-02-04 Simon Marchi <simon.marchi@efficios.com>
5537
5538 * remote.c (remote_target::wait): Clear async event handler at
5539 beginning, mark if needed at the end.
5540 (remote_async_inferior_event_handler): Don't set or clear async
5541 event handler.
5542
6b36ddeb
SM
55432021-02-04 Simon Marchi <simon.marchi@efficios.com>
5544
5545 * async-event.h (async_event_handler_func): Add documentation.
5546 * async-event.c (check_async_event_handlers): Don't clear
5547 async_event_handler ready flag.
5548 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5549 flag.
5550 * record-btrace.c (record_btrace_handle_async_inferior_event):
5551 Likewise.
5552 * record-full.c (record_full_async_inferior_event_handler):
5553 Likewise.
5554 * remote-notif.c (remote_async_get_pending_events_handler):
5555 Likewise.
5556 * remote.c (remote_async_inferior_event_handler): Likewise.
5557
72d383bb
SM
55582021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5559
5560 * infrun.c (handle_inferior_event): Move stop_soon variable to
5561 inner scope.
5562
408f6686
PA
55632021-02-03 Pedro Alves <pedro@palves.net>
5564
5565 * infcmd.c (detach_command): Hold strong reference to target, and
5566 if all-stop on entry, restart threads on exit.
5567 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5568 (restart_stepped_thread): ... this new function. Also handle
5569 trap_expected.
5570 (restart_after_all_stop_detach): New function.
5571 * infrun.h (restart_after_all_stop_detach): Declare.
5572
ac7d717c
PA
55732021-02-03 Pedro Alves <pedro@palves.net>
5574
5575 * infrun.c (struct step_over_info): Initialize fields.
5576 (prepare_for_detach): Handle ongoing in-line step over.
5577
e87f0fe8
PA
55782021-02-03 Pedro Alves <pedro@palves.net>
5579
5580 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5581 here...
5582 * remote.c (remote_target::remote_detach_1): ... and here ...
5583 * target.c (target_detach): ... instead of here.
5584 * target.h (target_ops::detach): Add comment.
5585
8ff53139
PA
55862021-02-03 Pedro Alves <pedro@palves.net>
5587
5588 * infrun.c (struct wait_one_event): Move higher up.
5589 (prepare_for_detach): Abort in-progress displaced steps instead of
5590 letting them complete.
5591 (handle_one): If the inferior is detaching, don't add the thread
5592 back to the global step-over chain.
5593 (restart_threads): Don't restart threads if detaching.
5594 (handle_signal_stop): Remove inferior::detaching reference.
5595
91475068
PA
55962021-02-03 Pedro Alves <pedro@palves.net>
5597
5598 * infrun.c (prepare_for_detach): Don't release scoped_restore
5599 before returning.
5600
d758e62c
PA
56012021-02-03 Pedro Alves <pedro@palves.net>
5602
5603 * infrun.c (handle_one): New function, factored out from ...
5604 (stop_all_threads): ... here.
5605
b0083dd7
PA
56062021-02-03 Pedro Alves <pedro@palves.net>
5607
5608 * remote.c (remote_notif_stop_ack): Don't error out on
5609 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5610 (remote_target::discard_pending_stop_replies): Don't delete
5611 in-flight notification; instead, clear its contents.
5612
621cc310
PA
56132021-02-03 Pedro Alves <pedro@palves.net>
5614
5615 * remote.c (extended_remote_target::attach): Set target async in
5616 the target-non-stop path too.
5617
2ab76a18
PA
56182021-02-03 Pedro Alves <pedro@palves.net>
5619
5620 PR gdb/27055
5621 * infrun.c (handle_signal_stop): Move main context_switch call
5622 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5623
2e3773ff
LS
56242021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5625
5626 * NEWS (Changed commands): Add entry for the behavior change of
5627 the inferior command.
5628 * inferior.c (inferior_command): When no argument is given to the
5629 inferior command, display info about the currently selected
5630 inferior.
5631
e57933dc
SM
56322021-02-02 Simon Marchi <simon.marchi@efficios.com>
5633
5634 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5635 a sect_offset.
5636 (read_attribute_reprocess): Adjust.
5637
2b0c7f41
SM
56382021-02-02 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5641 <gnu_ranges_base>: ... this...
5642 <rnglists_base>: ... and this.
5643 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5644 <gnu_ranges_base>: ... this...
5645 <rnglists_base>: ... and this.
5646 (read_cutu_die_from_dwo): Adjust
5647 (dwarf2_get_pc_bounds): Adjust
5648 (dwarf2_record_block_ranges): Adjust.
5649 (read_full_die_1): Adjust
5650 (partial_die_info::read): Adjust.
5651 (read_rnglist_index): Adjust.
5652
a1c40103
SM
56532021-02-02 Simon Marchi <simon.marchi@efficios.com>
5654
5655 PR gdb/26813
5656 * dwarf2/read.c (read_loclists_rnglists_header): Add
5657 header_offset parameter and use it.
5658 (read_loclist_index): Read header of the current contribution,
5659 not the one at the beginning of the section.
5660 (read_rnglist_index): Likewise.
5661
b1829e1b
SM
56622021-02-02 Simon Marchi <simon.marchi@efficios.com>
5663
5664 PR gdb/26813
5665 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5666 requires_reprocessing flag.
5667 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5668 DW_FORM_loclistx.
5669 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5670 and DW_FORM_loclistx.
5671 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5672 instead of set_address for DW_FORM_loclistx and
5673 DW_FORM_rnglistx.
5674
0c800c6e
SM
56752021-02-02 Simon Marchi <simon.marchi@efficios.com>
5676
5677 * dwarf2/read.c (read_loclist_index): Remove bound check for
5678 start of offset.
5679 (read_rnglist_index): Likewise.
5680
05787bad
SM
56812021-02-02 Simon Marchi <simon.marchi@efficios.com>
5682
5683 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5684 of the offset.
5685
5e4d9bbc
SM
56862021-02-02 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5689
a0c1eeba
SM
56902021-02-02 Simon Marchi <simon.marchi@efficios.com>
5691
5692 * dwarf2/read.c (read_loclist_index): Change complaints into
5693 errors.
5694
2bd3e4b8
TV
56952021-02-02 Tom de Vries <tdevries@suse.de>
5696
5697 PR symtab/24620
5698 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5699 psymtab == nullptr.
5700
82a1fd3a
AB
57012021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5702
5703 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5704 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5705 here from linux-tdep.c and given a new name. Minor cleanups.
5706 (gcore_collect_regset_section_cb): Likewise.
5707 (gcore_collect_thread_registers): Likewise.
5708 (gcore_build_thread_register_notes): Likewise.
5709 (gcore_find_signalled_thread): Likewise.
5710 * gcore.h (gcore_build_thread_register_notes): Declare.
5711 (gcore_find_signalled_thread): Declare.
5712 * fbsd-tdep.c: Add 'gcore.h' include.
5713 (struct fbsd_collect_regset_section_cb_data): Delete.
5714 (fbsd_collect_regset_section_cb): Delete.
5715 (fbsd_collect_thread_registers): Delete.
5716 (struct fbsd_corefile_thread_data): Delete.
5717 (fbsd_corefile_thread): Delete.
5718 (fbsd_make_corefile_notes): Call
5719 gcore_build_thread_register_notes instead of the now deleted
5720 FreeBSD code.
5721 * linux-tdep.c: Add 'gcore.h' include.
5722 (struct linux_collect_regset_section_cb_data): Delete.
5723 (linux_collect_regset_section_cb): Delete.
5724 (linux_collect_thread_registers): Delete.
5725 (linux_corefile_thread): Call
5726 gcore_build_thread_register_notes.
5727 (find_signalled_thread): Delete.
5728 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5729
ebde6f2d
TV
57302021-01-29 Tom de Vries <tdevries@suse.de>
5731
5732 PR breakpoints/26063
5733 * infrun.c (process_event_stop_test): Reset
5734 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5735 changed.
5736
0f93c3a2
AB
57372021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5738
5739 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5740 assert. Extend the header comment.
5741
f237f998
AB
57422021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5743
5744 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5745 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5746 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5747 (tui_locator_win_info_ptr): Delete declaration.
5748 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5749 (tui_disasm_window::set_contents): Fetch state from tui_location
5750 global.
5751 (tui_get_begin_asm_address): Likewise.
5752 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5753 for locator window.
5754 (get_locator_window): Delete.
5755 (initialize_known_windows): Treat locator window just like all the
5756 rest.
5757 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5758 (tui_source_window::set_contents): Fetch state from tui_location
5759 global.
5760 (tui_source_window::showing_source_p): Likewise.
5761 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5762 (_locator): Delete.
5763 (tui_locator_win_info_ptr): Delete.
5764 (tui_locator_window::make_status_line): Fetch state from
5765 tui_location global.
5766 (tui_locator_window::rerender): Remove check of 'handle',
5767 reindent function body.
5768 (tui_locator_window::set_locator_fullname): Delete.
5769 (tui_locator_window::set_locator_info): Delete.
5770 (tui_update_locator_fullname): Delete.
5771 (tui_show_frame_info): Likewise.
5772 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5773 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5774 tui/tui-location.h and renamed to
5775 tui_location_tracker::set_location.
5776 (tui_locator_window::set_locator_fullname): Moved to
5777 tui/tui-location.h and renamed to
5778 tui_location_tracker::set_fullname.
5779 (tui_locator_window::full_name): Delete.
5780 (tui_locator_window::proc_name): Delete.
5781 (tui_locator_window::line_no): Delete.
5782 (tui_locator_window::addr): Delete.
5783 (tui_locator_window::gdbarch): Delete.
5784 (tui_update_locator_fullname): Delete declaration.
5785 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5786 for locator window.
5787 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5788 (tui_display_main): Call function on tui_location directly.
5789 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5790 * tui/tui-location.c: New file.
5791 * tui/tui-location.h: New file.
5792
8ee511af
SM
57932021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * gdbtypes.h (get_type_arch): Rename to...
5796 (struct type) <arch>: ... this, update all users.
5797
6ac37371
SM
57982021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5799
5800 * gdbtypes.h (struct type) <arch>: Rename to...
5801 <arch_owner>: ... this, update all users.
5802 <objfile>: Rename to...
5803 <objfile_owner>: ... this, update all users.
5804
24cf6389
AB
58052021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5806
5807 * gdbcmd.h (execute_command_to_string): Update comment.
5808 * top.c (execute_command_to_string): Update header comment.
5809
2a7f6487
TV
58102021-01-28 Tom de Vries <tdevries@suse.de>
5811
5812 PR breakpoints/27205
5813 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5814 (create_longjmp_master_breakpoint_names): New function, factored out
5815 of ...
5816 (create_longjmp_master_breakpoint): ... here. Only try to install
5817 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5818 breakpoint in libc.so failed.
5819
59b59f08
LS
58202021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5821
5822 PR gdb/27133
5823 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5824 unique_ptr is released when the wrapped pointer is kept for later
5825 use.
5826
807f647c
MM
58272021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5828
5829 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5830 BLR and BR instructions.
5831 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5832 (enum aarch64_masks): New.
5833
4ef367bf
TT
58342021-01-26 Tom Tromey <tromey@adacore.com>
5835
5836 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5837 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5838 (windows_init_thread_list, windows_nat::handle_load_dll)
5839 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5840 (windows_nat_target::resume)
5841 (windows_nat_target::get_windows_debug_event)
5842 (windows_nat_target::interrupt, windows_xfer_memory)
5843 (windows_nat_target::close): Update.
5844 * nat/windows-nat.c (DEBUG_EVENTS): Use
5845 debug_prefixed_printf_cond.
5846 (matching_pending_stop, fetch_pending_stop)
5847 (continue_last_debug_event): Update.
5848
4cb1265b
MS
58492020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5850
5851 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5852 elfcore_write_file_note.
5853
d0cc52bd
SV
58542021-01-26 Shahab Vahedi <shahab@synopsys.com>
5855
5856 * arc-tdep.c (arc_add_reggroups): New function.
5857 (arc_gdbarch_init): Call arc_add_reggroups.
5858
ac3571d9 58592021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5860
5861 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5862
9f6c202e
TV
58632021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5864 Simon Marchi <simon.marchi@polymtl.ca>
5865 Tom de Vries <tdevries@suse.de>
5866
5867 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5868 DW_AT_ranges.
5869
a625a8c9
TT
58702021-01-25 Tom Tromey <tromey@adacore.com>
5871
5872 * dwarf2/read.c (get_mpz): New function.
5873 (get_dwarf2_rational_constant): Use it.
5874
19184910
TT
58752021-01-25 Tom Tromey <tromey@adacore.com>
5876
5877 * ada-lang.c (resolve_subexp): Handle array context.
5878
b10bae18
TT
58792021-01-23 Tom Tromey <tom@tromey.com>
5880
5881 PR compile/25575
5882 * compile/compile-loc2c.c (note_register): New function.
5883 (pushf_register_address, pushf_register): Use it.
5884
3637a558
TT
58852021-01-23 Tom Tromey <tom@tromey.com>
5886
5887 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5888 Change type of "registers_used".
5889 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5890 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5891 (locexpr_generate_c_location, loclist_generate_c_location): Change
5892 type of "registers_used".
5893 * compile/compile.h (compile_dwarf_expr_to_c)
5894 (compile_dwarf_bounds_to_c): Update.
5895 * compile/compile-loc2c.c (pushf_register_address)
5896 (pushf_register, do_compile_dwarf_expr_to_c)
5897 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5898 of "registers_used".
5899 * compile/compile-c.h (generate_c_for_variable_locations):
5900 Update.
5901 * compile/compile-c-symbols.c (generate_vla_size)
5902 (generate_c_for_for_one_variable): Change type of
5903 "registers_used".
5904 (generate_c_for_variable_locations): Return std::vector.
5905 * compile/compile-c-support.c (generate_register_struct): Change
5906 type of "registers_used".
5907 (compute): Update.
5908
9f7f6cb8
TT
59092021-01-23 Tom Tromey <tom@tromey.com>
5910
5911 * compile/compile-internal.h (class compile_instance)
5912 <set_arguments>: Change return type.
5913 * compile/compile.c (compile_to_object): Remove call to reset.
5914 (compile_instance::set_arguments): Change return type.
5915
dd5ca05f
SM
59162021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5919 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5920
d3ee35db
LS
59212021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5922
5923 * Makefile.in (SELFTESTS_SRCS): Add
5924 unittests/gdb_tilde_expand-selftests.c.
5925 * unittests/gdb_tilde_expand-selftests.c: New file.
5926
9d2d8a16
AB
59272021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5928
5929 PR cli/25956
5930 * NEWS: Mention new command.
5931 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5932 (version_style): Define.
5933 (cli_style_option::cli_style_option): Add intensity parameter, and
5934 use as appropriate.
5935 (_initialize_cli_style): Register version style set/show commands.
5936 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5937 (version_style): Declare.
5938 * top.c (print_gdb_version): Use version_stype, and styled_string
5939 to print the GDB version string.
5940
e7b43072
AB
59412021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5942
5943 * utils.c (emit_style_escape): Only emit an escape sequence if the
5944 requested style is different than the current applied style.
5945 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5946 current applied_style.
5947 (fputs_styled): Remove is_default check.
5948 (fputs_styled_unfiltered): Likewise.
5949 (vfprintf_styled_no_gdbfmt): Likewise.
5950
2189c312
SM
59512021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * remote.h (remote_debug_printf): New.
5954 (remote_debug_printf_nofunc): New.
5955 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5956 * remote.c: Use above macros throughout file.
5957
02349803
SM
59582021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5959
5960 * remote.h (remote_debug): Change to bool.
5961 * remote.c (remote_debug): Change to bool.
5962 (_initialize_remote): Adjust.
5963
cda09ec9
SM
59642021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5965
5966 * target.h (remote_debug): Move to...
5967 * remote.h (remote_debug): ... here.
5968 * top.c (remote_debug): Move to...
5969 * remote.c (remote_debug): ... here.
5970 * remote-sim.c: Include remote.h.
5971
baf2b57f
SM
59722021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * cli/cli-cmds.c (show_remote_debug): Remove.
5975 (show_remote_timeout): Remove.
5976 (_initialize_cli_cmds): Don't register commands.
5977 * remote.c (show_remote_debug): Move here.
5978 (show_remote_timeout): Move here.
5979 (_initialize_remote): Register commands.
5980
344e9841
SM
59812021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5984 type::objfile method instead.
5985
30625020
SM
59862021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5989 use the type::is_objfile_owned method.
5990
5b7d941b
SM
59912021-01-22 Simon Marchi <simon.marchi@efficios.com>
5992
5993 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5994 (TYPE_OWNER): Remove.
5995 (TYPE_OBJFILE): Adjust.
5996 (struct main_type) <flag_objfile_owned>: Rename to...
5997 <m_flag_objfile_owned>: ... this.
5998 <owner>: Rename to...
5999 <m_owner>: ... this.
6000 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6001 methods.
6002 (TYPE_ALLOC): Adjust.
6003 * gdbtypes.c (alloc_type): Adjust.
6004 (alloc_type_arch): Adjust.
6005 (alloc_type_copy): Adjust.
6006 (get_type_arch): Adjust.
6007 (smash_type): Adjust.
6008 (lookup_array_range_type): Adjust.
6009 (recursive_dump_type): Adjust.
6010 (copy_type_recursive): Adjust.
6011 * compile/compile-c-types.c (convert_func): Adjust.
6012 (convert_type_basic): Adjust.
6013 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6014 Adjust.
6015 * language.c
6016 (language_arch_info::type_and_symbol::alloc_type_symbol):
6017 Adjust.
6018
d5d24e12
LM
60192021-01-21 Luis Machado <luis.machado@linaro.org>
6020
6021 * coffread.c (enter_linenos): Passing string to complaint.
6022 * valops.c (value_assign): Make array view.
6023
a59902a7
SM
60242021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6025
6026 * auto-load.h (debug_auto_load): Move here.
6027 (auto_load_debug_printf): New.
6028 * auto-load.c: Use auto_load_debug_printf.
6029 (debug_auto_load): Move to header.
6030 * linux-thread-db.c (try_thread_db_load): Use
6031 auto_load_debug_printf.
6032 * main.c (captured_main_1): Likewise.
6033
d3abc0ce
SM
60342021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6035
6036 * f-valprint.c (f77_array_offset_tbl): Remove.
6037
1e15fcac
SM
60382021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6039
6040 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6041
439706e6
SM
60422021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6043
6044 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6045 of gdb_select.
6046
325d39e4
HD
60472021-01-21 Hannes Domani <ssbssa@yahoo.de>
6048
6049 PR python/19151
6050 * python/py-breakpoint.c (bppy_get_location): Handle
6051 bp_hardware_breakpoint.
6052 (bppy_init): Likewise.
6053 (gdbpy_breakpoint_created): Likewise.
6054
7cb6d92a
SM
60552021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6058
d4dd4fca
SM
60592021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6060
6061 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6062 (_initialize_gdb_bfd): Adjust.
6063
de53369b
SM
60642021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6065
6066 PR gdb/26828
6067 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6068
17e593e9
SM
60692021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6070
6071 * dwarf2/read.c (follow_die_offset): Add logging.
6072 (dwarf2_per_objfile::age_comp_units): Add logging.
6073
6bd434d6
SM
60742021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6075
6076 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6077 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6078 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6079 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6080 * arm-tdep.c (struct frame_unwind): Make static.
6081 * auto-load.c (auto_load_safe_path_vec): Make static.
6082 * csky-tdep.c (csky_stub_unwind): Make static.
6083 * gdbarch.c (gdbarch_data_registry): Make static.
6084 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6085 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6086 * i386-tdep.c (i386_frame_setup_skip_insns,
6087 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6088 Make static.
6089 * infrun.c (observer_mode): Make static.
6090 * linux-nat.c (sigchld_action): Make static.
6091 * linux-thread-db.c (thread_db_list): Make static.
6092 * maint-test-options.c (maintenance_test_options_list):
6093 * mep-tdep.c (mep_csr_registers): Make static.
6094 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6095 (stats): Make static.
6096 * nat/linux-osdata.c (struct osdata_type): Make static.
6097 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6098 * progspace.c (last_program_space_num): Make static.
6099 * python/py-param.c (struct parm_constant): Remove struct type
6100 name.
6101 (parm_constants): Make static.
6102 * python/py-record-btrace.c (btpy_list_methods): Make static.
6103 * python/py-record.c (recpy_gap_type): Make static.
6104 * record.c (record_goto_cmdlist): Make static.
6105 * regcache.c (regcache_descr_handle): Make static.
6106 * registry.h (DEFINE_REGISTRY): Make definition static.
6107 * symmisc.c (std_in, std_out, std_err): Make static.
6108 * top.c (previous_saved_command_line): Make static.
6109 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6110 static.
6111 * unittests/command-def-selftests.c (nr_duplicates,
6112 nr_invalid_prefixcmd, lists): Make static.
6113 * unittests/observable-selftests.c (test_notification): Make
6114 static.
6115 * unittests/optional/assignment/1.cc (counter): Make static.
6116 * unittests/optional/assignment/2.cc (counter): Make static.
6117 * unittests/optional/assignment/3.cc (counter): Make static.
6118 * unittests/optional/assignment/4.cc (counter): Make static.
6119 * unittests/optional/assignment/5.cc (counter): Make static.
6120 * unittests/optional/assignment/6.cc (counter): Make static.
6121
a6c11cbb
JS
61222021-01-20 Joel Sherrill <joel@rtems.org>
6123
6124 PR gdb/27219
6125 * remote.c (struct remote_thread_info) <resume_state>: Rename
6126 to...
6127 <get_resume_state>: ... this.
6128 (remote_target::resume): Adjust.
6129 (remote_target::commit_resume): Adjust.
6130 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6131
6f52fdf4
SDJ
61322021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6133 Tom Tromey <tom@tromey.com>
6134
6135 * stap-probe.c (stap_parse_single_operand): Handle '!'
6136 operator.
6137 (stap_parse_argument_conditionally): Likewise.
6138 Skip spaces after processing open-parenthesis sub-expression.
6139 (stap_parse_argument_1): Skip spaces after call to
6140 stap_parse_argument_conditionally.
6141 Handle case when right-side expression is a parenthesized
6142 sub-expression.
6143 Skip spaces after call to stap_parse_argument_1.
6144
1c3b85ad
LS
61452021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6146
6147 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6148
a9a87d35
LM
61492021-01-19 Luis Machado <luis.machado@linaro.org>
6150
6151 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6152 memory and save data.
6153 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6154 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6155 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6156 (trad_frame_value_bytes_p): Remove.
6157 (trad_frame_reset_saved_regs): Adjust documentation.
6158 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6159 constructor and reset the state of the registers.
6160 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6161 (trad_frame_value_bytes_p, trad_frame_set_value)
6162 (trad_frame_set_realreg, trad_frame_set_addr)
6163 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6164 (trad_frame_set_reg_realreg): Update to call member function.
6165 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6166 (trad_frame_get_prev_register): Likewise.
6167
6168 * aarch64-tdep.c (aarch64_analyze_prologue)
6169 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6170 (aarch64_prologue_prev_register): Update to use member functions.
6171 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6172 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6173 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6174 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6175 (arm_make_epilogue_frame_cache): Likewise.
6176 * avr-tdep.c (avr_frame_unwind_cache)
6177 (avr_frame_prev_register): Likewise.
6178 * cris-tdep.c (cris_scan_prologue): Likewise.
6179 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6180 * frv-tdep.c (frv_analyze_prologue): Likewise.
6181 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6182 * lm32-tdep.c (lm32_frame_cache): Likewise.
6183 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6184 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6185 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6186 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6187 (reset_saved_regs): Adjust to set realreg.
6188 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6189 call member functions.
6190 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6191 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6192 (s390_backchain_frame_unwind_cache): Likewise.
6193 * score-tdep.c (score7_analyze_prologue)
6194 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6195 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6196 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6197 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6198 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6199 * tilegx-tdep.c (tilegx_analyze_prologue)
6200 (tilegx_frame_cache): Likewise.
6201 * v850-tdep.c (v850_frame_cache): Likewise.
6202 * vax-tdep.c (vax_frame_cache): Likewise.
6203
bdec2917
LM
62042021-01-19 Luis Machado <luis.machado@linaro.org>
6205
6206 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6207 of buffer + length.
6208 (put_frame_register_bytes): Likewise.
6209 Adjust documentation.
6210 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6211 (safe_frame_unwind_memory): Likewise.
6212 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6213 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6214 gdb::array_view.
6215 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6216 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6217 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6218 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6219 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6220 * dwarf2/loc.c (rw_pieced_value): Likewise.
6221 * hppa-tdep.c (hppa_frame_cache): Likewise.
6222 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6223 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6224 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6225 (i386_linux_rt_sigtramp_start): Likewise.
6226 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6227 * i386-tdep.c (i386_register_to_value): Likewise.
6228 * i387-tdep.c (i387_register_to_value): Likewise.
6229 * ia64-tdep.c (ia64_register_to_value): Likewise.
6230 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6231 (m32r_linux_rt_sigtramp_start): Likewise.
6232 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6233 * m68k-tdep.c (m68k_register_to_value): Likewise.
6234 * mips-tdep.c (mips_register_to_value)
6235 (mips_value_to_register): Likewise.
6236 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6237 (ppcfbsd_sigtramp_frame_cache): Likewise.
6238 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6239 (ppcobsd_sigtramp_frame_cache): Likewise.
6240 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6241 (rs6000_register_to_value): Likewise.
6242 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6243 * tramp-frame.c (tramp_frame_start): Likewise.
6244 * valops.c (value_assign): Likewise.
6245
ccbe4c82
LM
62462021-01-19 Luis Machado <luis.machado@linaro.org>
6247
6248 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6249 array_view.
6250 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6251 instead of buffer and size.
6252 (trad_frame_set_reg_value_bytes): Likewise.
6253 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6254 (trad_frame_set_value_bytes): Likewise.
6255
0e7620dc
MF
62562021-01-18 Mike Frysinger <vapier@gentoo.org>
6257
6258 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6259
6a9ad81c
AB
62602021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6261
6262 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6263 (riscv_fbsd_gregset): Use riscv_supply_regset.
6264 (riscv_fbsd_fpregset): Likewise.
6265 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6266 (riscv_linux_fregset): Likewise.
6267 * riscv-tdep.c (riscv_supply_regset): Define new function.
6268 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6269
d3d7d1ba
TV
62702021-01-18 Tom de Vries <tdevries@suse.de>
6271
6272 PR tdep/27172
6273 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6274 New macro.
6275 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6276 for SEGV_BNDERR.
6277
aa2838cc
SM
62782021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6279
6280 * remote.c (class remote_target) <remote_hostio_send_command,
6281 remote_hostio_parse_result>: Constify parameter.
6282 (remote_hostio_parse_result): Likewise.
6283 (remote_target::remote_hostio_send_command): Adjust.
6284 (remote_target::remote_hostio_pread_vFile): Adjust.
6285 (remote_target::fileio_readlink): Adjust.
6286 (remote_target::fileio_fstat): Adjust.
6287
b5c8f22d
SM
62882021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6289
6290 * remote.c (remote_target::start_remote): Move wait_status to
6291 narrower scope.
6292
e3b2741b
SM
62932021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6294
6295 * remote.c (class remote_target):
6296 <add_current_inferior_and_thread>: Constify parameter.
6297 (stop_reply_extract_thread): Likewise.
6298 (remote_target::get_current_thread): Likewise.
6299 (remote_target::add_current_inferior_and_thread): Likewise.
6300
cecb1912
SM
63012021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6302
6303 * remote.c (class remote_target)
6304 <remote_unpack_thread_info_response,
6305 parse_threadlist_response>: Constify parameter and/or return
6306 value and or local variable.
6307 (stub_unpack_int): Likewise.
6308 (unpack_nibble): Likewise.
6309 (unpack_byte): Likewise.
6310 (unpack_int): Likewise.
6311 (unpack_string): Likewise.
6312 (unpack_threadid): Likewise.
6313 (remote_target::remote_unpack_thread_info_response): Likewise.
6314 (remote_target::parse_threadlist_response): Likewise.
6315
5a11fff0
AB
63162021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6317
6318 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6319
17e89137
LS
63202021-01-14 Lancelot Six <lsix@lancelotsix.com>
6321
6322 * MAINTAINERS (Write After Approval): Add myself.
6323
58eadc4b
BE
63242021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6325
6326 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6327 because is_trivially_default_constructible was first implemented with
6328 gcc-5.
6329
5fae2a2c
TV
63302021-01-14 Tom de Vries <tdevries@suse.de>
6331
6332 PR breakpoints/27151
6333 * objfiles.h (in_plt_section): Handle .plt.sec.
6334
8f66807b
AB
63352021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6336
6337 PR gdb/26819
6338 * remote.c
6339 (remote_target::select_thread_for_ambiguous_stop_reply): New
6340 member function.
6341 (remote_target::process_stop_reply): Call
6342 select_thread_for_ambiguous_stop_reply.
6343
bd497355
SM
63442021-01-13 Simon Marchi <simon.marchi@efficios.com>
6345
6346 * record-btrace.c (class record_btrace_target): Remove.
6347 (record_btrace_target::commit_resume): Remove.
6348 * record-full.c (class record_full_target): Remove.
6349 (record_full_target::commit_resume): Remove.
6350
c9d22089
SM
63512021-01-13 Simon Marchi <simon.marchi@efficios.com>
6352
6353 * remote.c (enum class resume_state): New.
6354 (struct resumed_pending_vcont_info): New.
6355 (struct remote_thread_info) <resume_state, set_not_resumed,
6356 set_resumed_pending_vcont, resumed_pending_vcont_info,
6357 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6358 New.
6359 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6360 (remote_target::remote_add_thread): Adjust.
6361 (remote_target::process_initial_stop_replies): Adjust.
6362 (remote_target::resume): Adjust.
6363 (remote_target::commit_resume): Rely on state in
6364 remote_thread_info and not on tp->executing.
6365 (remote_target::process_stop_reply): Adjust.
6366
d8d1feb4
SM
63672021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6368
6369 * arc-tdep.h (arc_debug_printf): New.
6370 * arc-tdep.c: Use arc_debug_printf.
6371 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6372 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6373 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6374
fb0f5031
SM
63752021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6376
6377 * arc-tdep.h (arc_debug): Change type to bool.
6378 * arc-tdep.c (arc_debug): Change type to bool.
6379 (arc_analyze_prologue): Adjust.
6380 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6381 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6382
5bf7e91b
SM
63832021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6384
6385 * auto-load.c (auto_load_objfile_script_1): Use bool.
6386 (execute_script_contents): Use bool.
6387
db972fce
SM
63882021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6389
6390 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6391 comment here.
6392 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6393 comment to header.
6394 * extension-priv.h (struct extension_language_script_ops)
6395 <auto_load_enabled>: Return bool.
6396 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6397 comment here.
6398 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6399 comment to header.
6400 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6401 move comment here.
6402 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6403 move comment to header.
6404 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6405 move comment here.
6406 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6407 move comment to header.
6408
5e12f48f
SM
64092021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6410
6411 * auto-load.h (file_is_auto_load_safe): Change return type to
6412 bool, move comment here.
6413 * auto-load.c (file_is_auto_load_safe): Change return type and
6414 advice_printed to bool. Move comment to header.
6415
54ca9002
SM
64162021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6417
6418 * jit.c (jit_debug_printf): New, use throughout file.
6419
24a7f1b5
SM
64202021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6421
6422 * infrun.c (normal_stop): Fix indentation.
6423
fe7a351a
SM
64242021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6425
6426 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6427 declarations to ...
6428 * symfile.h: ... here.
6429 * symfile.c: Update doc.
6430
16e9019e
SM
64312021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6432
6433 * target.h (baud_rate, serial_parity): Move declarations...
6434 * serial.h: ... here.
6435 * main.c: Include serial.h.
6436 * serial.c (baud_rate, serial_parity): Update doc.
6437
b2f2ae0d
SM
64382021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6439
6440 * top.c (pre_init_ui_hook): Remove.
6441
5291fe3c
SP
64422021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6443
6444 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6445 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6446 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6447 * features/aarch64-fpu.xml: Add bfloat16 type.
6448
ce38f5ed
AB
64492021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6450
6451 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6452
7c654b71
AB
64532021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6454
6455 * f-exp.y (dot_ops): Rename to...
6456 (fortran_operators): ...this. Add a header comment. Add symbol
6457 based operators.
6458 (yylex): Update to use fortran_operators not dot_ops. Remove
6459 special handling for '**', this is now included in
6460 fortran_operators.
6461
c6185dce
SM
64622021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6463
6464 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6465 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6466 * aarch64-tdep.c: Use aarch64_debug_printf.
6467
eef401dc
SM
64682021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6469
6470 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6471 file.
6472
062eaacb
SM
64732021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6474
6475 * jit.c (jit_debug): Change type to bool.
6476 (_initialize_jit): Adjust.
6477
54585eee
TT
64782021-01-09 Tom Tromey <tom@tromey.com>
6479
6480 PR compile/23672
6481 * compile/compile.c (compile_to_object): Avoid crash when
6482 osabi_triplet_regexp returns NULL.
6483
bc167b6b
TT
64842021-01-09 Tom Tromey <tom@tromey.com>
6485
6486 * tracepoint.h (class collection_list) <append_exp>: Take a
6487 std::string.
6488 * tracepoint.c (collection_list::append_exp): Take a std::string.
6489 (encode_actions_1): Update.
6490
8fc48b79
TT
64912021-01-08 Tom Tromey <tromey@adacore.com>
6492
6493 * parse.c (parse_expression): Add void_context_p parameter. Use
6494 parse_exp_in_context.
6495 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6496 parse_expression.
6497 (print_command, call_command): Update.
6498 * expression.h (parse_expression): Add void_context_p parameter.
6499
3c8c6de2
AB
65002021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6501
6502 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6503 for internalvar components that have a dynamic location.
6504
1940319c
TV
65052021-01-08 Tom de Vries <tdevries@suse.de>
6506
6507 PR gdb/26881
6508 * breakpoint.c (create_exception_master_breakpoint_probe)
6509 (create_exception_master_breakpoint_hook): Factor out
6510 of ...
6511 (create_exception_master_breakpoint): ... here. Only try to install
6512 the master exception breakpoint in objfile.debug using the
6513 _Unwind_DebugHook method, if the install using probes in objfile
6514 failed.
6515
e3436813
AB
65162021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6517
6518 * f-lang.c (fortran_value_subarray): Call value_from_component.
6519
e904f56d
MF
65202021-01-07 Mike Frysinger <vapier@gentoo.org>
6521
6522 * remote-sim.c: Include memory-map.h.
6523 (gdbsim_target): Define memory_map override.
6524 (gdbsim_target::memory_map): Define.
6525
959d6a67
TT
65262021-01-07 Tom Tromey <tromey@adacore.com>
6527
6528 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6529
d4813f10
TT
65302021-01-07 Tom Tromey <tromey@adacore.com>
6531
6532 * ada-lang.c (add_component_interval): Start loop using vector's
6533 updated size.
6534
b49180ac
TT
65352021-01-06 Tom Tromey <tromey@adacore.com>
6536
6537 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6538 Do not cast result.
6539 * valarith.c (fixed_point_binop): Handle multiplication
6540 and division specially.
6541 * valops.c (value_to_gdb_mpq): New function.
6542 (value_cast_to_fixed_point): Use it.
6543
55195361
HD
65442021-01-05 Hannes Domani <ssbssa@yahoo.de>
6545
6546 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6547 Call wnoutrefresh instead of tui_win_info::refresh_window.
6548
1b6d4bb2
HD
65492021-01-05 Hannes Domani <ssbssa@yahoo.de>
6550
6551 * tui/tui-source.c (tui_source_window::show_line_number):
6552 Redraw second space after line number.
6553
b5ff370e
HD
65542021-01-05 Hannes Domani <ssbssa@yahoo.de>
6555
6556 PR tui/26927
6557 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6558 Fix source pad size in prefresh.
6559 (tui_source_window_base::show_source_content): Grow source pad
6560 if necessary.
6561
c68ea49f
MF
65622021-01-04 Mike Frysinger <vapier@gentoo.org>
6563
6564 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6565 (bfin_frame_align): Use align_down.
6566
e4ad960a
TV
65672021-01-04 Tom de Vries <tdevries@suse.de>
6568
6569 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6570 terminators that do not terminate anything.
6571
3ec3145c
SM
65722021-01-04 Simon Marchi <simon.marchi@efficios.com>
6573
6574 * debug.c (debug_print_depth): New.
6575 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6576 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6577 * infrun.c (start_step_over): Use
6578 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6579 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6580 INFRUN_SCOPED_DEBUG_START_END.
6581 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6582
e71daf80
SM
65832021-01-04 Simon Marchi <simon.marchi@efficios.com>
6584
6585 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6586
335709bc
SM
65872021-01-04 Simon Marchi <simon.marchi@efficios.com>
6588
6589 * utils.c (vfprintf_unfiltered): Print timestamp only when
6590 previous debug output ended with a newline.
6591
098caef4
LM
65922021-01-04 Luis Machado <luis.machado@linaro.org>
6593
6594 Update all users of trad_frame_saved_reg to use the new member
6595 functions.
6596
6597 Remote all struct keywords from declarations of trad_frame_saved_reg
6598 types, except on forward declarations.
6599
6600 * aarch64-tdep.c: Update.
6601 * alpha-mdebug-tdep.c: Update.
6602 * alpha-tdep.c: Update.
6603 * arc-tdep.c: Update.
6604 * arm-tdep.c: Update.
6605 * avr-tdep.c: Update.
6606 * cris-tdep.c: Update.
6607 * csky-tdep.c: Update.
6608 * frv-tdep.c: Update.
6609 * hppa-linux-tdep.c: Update.
6610 * hppa-tdep.c: Update.
6611 * hppa-tdep.h: Update.
6612 * lm32-tdep.c: Update.
6613 * m32r-linux-tdep.c: Update.
6614 * m32r-tdep.c: Update.
6615 * m68hc11-tdep.c: Update.
6616 * mips-tdep.c: Update.
6617 * moxie-tdep.c: Update.
6618 * riscv-tdep.c: Update.
6619 * rs6000-tdep.c: Update.
6620 * s390-linux-tdep.c: Update.
6621 * s390-tdep.c: Update.
6622 * score-tdep.c: Update.
6623 * sparc-netbsd-tdep.c: Update.
6624 * sparc-sol2-tdep.c: Update.
6625 * sparc64-fbsd-tdep.c: Update.
6626 * sparc64-netbsd-tdep.c: Update.
6627 * sparc64-obsd-tdep.c: Update.
6628 * sparc64-sol2-tdep.c: Update.
6629 * tilegx-tdep.c: Update.
6630 * v850-tdep.c: Update.
6631 * vax-tdep.c: Update.
6632
6633 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6634 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6635
6636 * trad-frame.c: Update.
6637 Remove TF_REG_* enum.
6638 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6639 a trivially-constructible struct.
6640 (trad_frame_reset_saved_regs): Adjust to use member function.
6641 (trad_frame_value_p): Likewise.
6642 (trad_frame_addr_p): Likewise.
6643 (trad_frame_realreg_p): Likewise.
6644 (trad_frame_value_bytes_p): Likewise.
6645 (trad_frame_set_value): Likewise.
6646 (trad_frame_set_realreg): Likewise.
6647 (trad_frame_set_addr): Likewise.
6648 (trad_frame_set_unknown): Likewise.
6649 (trad_frame_set_value_bytes): Likewise.
6650 (trad_frame_get_prev_register): Likewise.
6651 * trad-frame.h: Update.
6652 (trad_frame_saved_reg_kind): New enum.
6653 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6654 <m_kind, m_reg>: New member fields.
6655 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6656 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6657 <is_addr, is_unknown, is_value_bytes>: New member functions.
6658
9898e882
SM
66592021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6660
6661 * target-float.c: Fix typos.
6662
b66b4e65
HD
66632021-01-02 Hannes Domani <ssbssa@yahoo.de>
6664
6665 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6666
b5b5650a
JB
66672021-01-01 Joel Brobecker <brobecker@adacore.com>
6668
6669 * gdbarch.sh: Update copyright year range.
6670
3666a048
JB
66712021-01-01 Joel Brobecker <brobecker@adacore.com>
6672
6673 Update copyright year range in copyright header of all GDB files.
6674
ff7e39b6
JB
66752021-01-01 Joel Brobecker <brobecker@adacore.com>
6676
6677 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6678 to the list of directories to update.
6679
2b47c078
JB
66802021-01-01 Joel Brobecker <brobecker@adacore.com>
6681
6682 * top.c (print_gdb_version): Update copyright year.
6683
9e5e03df 66842021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6685
476923f1 6686 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6687
476923f1 6688For older changes see ChangeLog-2020.
c906108c
SS
6689\f
6690Local Variables:
6691mode: change-log
6692left-margin: 8
6693fill-column: 74
6694version-control: never
57da7796 6695coding: utf-8
c906108c 6696End:
This page took 2.752767 seconds and 4 git commands to generate.