gdb: fix some indentation issues
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
01add95b
SM
12021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * Fix some indentation mistakes throughout.
4
055c879f
SM
52021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * breakpoint.h (iterate_over_bp_locations): Remove. Update
8 users to use all_bp_locations.
9 (all_bp_locations): New.
10 * breakpoint.c (all_bp_locations): Make non-static.
11 (iterate_over_bp_locations): Remove.
12
240edef6
SM
132021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
14
15 * breakpoint.h (iterate_over_breakpoints): Remove. Update
16 callers to use all_breakpoints or all_breakpoints_safe.
17 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
18 all_breakpoints_safe): Move here.
19 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
20 non-static.
21 (iterate_over_breakpoints): Remove.
22 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
23 Return void.
24 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
25 return value logic.
26 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
27
e0d9a270
SM
282021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * breakpoint.c (get_first_locp_gte_addr): Remove.
31 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
32 all_bp_locations_at_addr.
33 (struct bp_locations_at_addr_range): New.
34 (all_bp_locations_at_addr): New.
35 (bp_locations_compare_addrs): New.
36
48d7020b
SM
372021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
38
39 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
40 all_bp_locations.
41 (all_bp_locations): New.
42
5d51cd5d
SM
432021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
44
45 * breakpoint.c (bp_locations): Change to std::vector, update all
46 users.
47 (bp_locations_count): Remove.
48 (update_global_location_list): Change to work with indices
49 rather than bp_location**.
50
40cb8ca5
SM
512021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * breakpoint.h (bp_locations_range): New.
54 (struct breakpoint) <locations>: New. Use where possible.
55
f6d17b2b
SM
562021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * breakpoint.h (all_tracepoints): Remove.
59 (breakpoint_iterator): Move here.
60 (struct tracepoint_filter): New.
61 (tracepoint_iterator): New.
62 (tracepoint_range): New.
63 (all_tracepoints): New.
64 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
65 all_tracepoints.
66 (breakpoint_iterator): Move to header.
67 (all_tracepoints): New.
68 * tracepoint.c (start_tracing): Adjust.
69
1428b37a
SM
702021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * breakpoint.c (breakpoint_safe_range): New.
73 (all_breakpoints_safe): New. Use instead of
74 ALL_BREAKPOINTS_SAFE where possible.
75
43892fdf
SM
762021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
79 all_breakpoints.
80 (breakpoint_iterator): New.
81 (breakpoint_range): New.
82 (all_breakpoints): New.
83
bdef5723
HD
842021-05-27 Hannes Domani <ssbssa@yahoo.de>
85
86 * python/py-tui.c (tui_py_window::output): Add full_window
87 argument.
88 (gdbpy_tui_write): Parse "full_window" argument.
89
d5a6313e
SM
902021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * make-init-c: Add option to reverse function calls.
93
f39632d9
SM
942021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * Makefile.in (INIT_FILES_FILTER_OUT): New.
97 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
98 (stamp-init): Use make-init-c.
99 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
100 * silent-rules.mk (ECHO_INIT_C): Change.
101 * make-init-c: New file.
102
5e84b7ee
SM
1032021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * command.h (add_alias_cmd): Accept target as
106 cmd_list_element. Update callers.
107
e0f25bd9
SM
1082021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * command.h (add_info_alias): Accept target as
111 cmd_list_element. Update callers.
112
3947f654
SM
1132021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
114
115 * command.h (add_com_alias): Accept target as
116 cmd_list_element. Update callers.
117
7bd22f56
SM
1182021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * python/py-param.c (add_setshow_generic): Use return values of
121 add_setshow functions.
122
9f260536
SM
1232021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
124
125 * mi/mi-main.c (_initialize_mi_main):
126 * python/py-auto-load.c (gdbpy_initialize_auto_load):
127 * remote.c (_initialize_remote):
128
af7f8f52
SM
1292021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
130
131 * command.h (set_show_commands): New.
132 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
133 add_setshow_boolean_cmd, add_setshow_filename_cmd,
134 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
135 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
136 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
137 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
138 Return set_show_commands. Adjust callers.
139 * cli/cli-decode.c (add_setshow_cmd_full): Return
140 set_show_commands, remove result parameters, adjust callers.
141
248f7165
TV
1422021-05-27 Tom de Vries <tdevries@suse.de>
143
144 PR symtab/27919
145 * dwarf2/read.c (process_psymtab_comp_unit):
146
2152b4fd
TV
1472021-05-27 Tom de Vries <tdevries@suse.de>
148
149 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
150 error.
151
6dcd1193
TV
1522021-05-27 Tom de Vries <tdevries@suse.de>
153
154 PR symtab/27898
155 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
156 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
157 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
158 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
159 load_all_dies init.
160 (dwarf2_per_cu_data): Remove load_all_dies field.
161
11bb5c41
SM
1622021-05-26 Simon Marchi <simon.marchi@efficios.com>
163
164 * regcache.c (reg_buffer::reg_buffer): Default-initialize
165 m_registers array.
166
ef5f598c
TT
1672021-05-26 Tom Tromey <tom@tromey.com>
168
169 * dwarf2/read.c (allocate_type_unit_groups_table)
170 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
171 htab_delete_entry.
172 (free_line_header_voidp): Remove.
173 * completer.c
174 (completion_tracker::completion_hash_entry::deleter): Remove.
175 (completion_tracker::discard_completions): Use htab_delete_entry.
176 * utils.h (htab_delete_entry): New template function.
177
a56889ae
HD
1782021-05-24 Hannes Domani <ssbssa@yahoo.de>
179
180 * python/py-tui.c (tui_py_window::refresh_window):
181 Avoid flickering.
182
fbf3c4b9
TV
1832021-05-23 Tom de Vries <tdevries@suse.de>
184
185 PR tdep/27822
186 * target.h (struct target_ops): Mention target_thread_architecture in
187 read_description comment.
188 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
189 pid to determine if process is 64-bit or 32-bit.
190 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
191 Same.
192 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
193 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
194 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
195 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
196 Likewise, use pid to determine if kernel supports reading VFP
197 registers.
198
8569d6e1
PW
1992021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
200
201 * main.c (enum cmdarg_kind): Fix option type comments for
202 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
203
778ae9cc
TV
2042021-05-21 Tom de Vries <tdevries@suse.de>
205
206 PR testsuite/25047
207 * contrib/cc-with-tweaks.sh: Handle -l.
208
6d1a09b7
TV
2092021-05-21 Tom de Vries <tdevries@suse.de>
210
211 PR breakpoint/27889
212 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
213 objects. Call get_jiter_objfile_data with the_objfile.
214
1487a14e
SM
2152021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * linespec.c (linespec_p): Remove. Replace all uses with
218 "linespec *".
219
bb6203bf
AH
2202021-05-20 Alexandra Hájková <ahajkova@redhat.com>
221 Pedro Alves <pedro@palves.net>
222
223 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
224 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
225 command_line_up instead of struct command_line.
226 (build_command_line): Likewise.
227 (get_command_line): Update the cmd function call parameter.
228 (process_next_line): Use unique_ptr command_line_up instead
229 of struct command_line.
230 (recurse_read_control_structure): Change the the type of
231 next to command_line_up.
232 (read_command_lines_1): Change type of `next' to be
233 command_line_up and update all references of `next'
234 accordingly.
235
ed3130b7
AH
2362021-05-20 Alexandra Hájková <ahajkova@redhat.com>
237
238 * MAINTAINERS (Write After Approval): Add myself.
239
5433e20e
JB
2402021-05-19 John Baldwin <jhb@FreeBSD.org>
241
242 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
243
a5523cc3
AH
2442021-05-18 Alexandra Hájková <ahajkova@redhat.com>
245
246 * inflow.c (new_tty): Do not leak tty.
247
cd53fa40
TT
2482021-05-17 Tom Tromey <tom@tromey.com>
249
250 * dwarf2/read.h: Update include.
251 * dwarf2/read.c: Update include.
252 * dwarf2/line-header.c: Update include.
253 * dwarf2/cu.h: Update include.
254 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
255 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
256 * Makefile.in (COMMON_SFILES): Update.
257
347212b8
TT
2582021-05-17 Tom Tromey <tom@tromey.com>
259
260 * dwarf2/read.c (maybe_queue_comp_unit)
261 (dwarf2_per_objfile::age_comp_units): Update.
262 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
263 dwarf2_cu methods.
264 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
265 add_dependence>: New methods.
266 <m_dependencies>: Add "m_" prefix. Now private.
267 <m_mark>: Add "m_" prefix.
268 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
269 (dwarf2_mark_helper): New function.
270 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
271
839118f9
TT
2722021-05-17 Tom Tromey <tom@tromey.com>
273
274 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
275 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
276 (dwarf2_cu::dwarf2_cu): Move to cu.c.
277 * dwarf2/cu.c: New file.
278 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
279
8ae78a44
TT
2802021-05-17 Tom Tromey <tom@tromey.com>
281
282 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
283 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
284 Move to cu.h.
285 * dwarf2/cu.h: New file.
286
c1c0a7e1
AB
2872021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * .dir-locals.el: Set sentence-end-double-space for all modes, and
290 set brace-list-open to 0 for C and C++ modes.
291
9e541c79
TT
2922021-05-17 Tom Tromey <tromey@adacore.com>
293
294 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
295 if frame is null.
296
59173216
TT
2972021-05-17 Tom Tromey <tromey@adacore.com>
298
299 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
300 (group_from_gid): Subtract one from strncpy length.
301
baea2f9d
TT
3022021-05-17 Tom Tromey <tromey@adacore.com>
303
304 * source.c (add_path): Check 'p' before using 'p[-1]'.
305
473ab964
TT
3062021-05-17 Tom Tromey <tromey@adacore.com>
307
308 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
309 (dwarf2_per_cu_data_up): New typedef.
310 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
311 <all_comp_units>: Use dwarf2_per_cu_data_up.
312 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
313 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
314 (create_cu_from_index_list): Likewise.
315 (create_signatured_type_table_from_index)
316 (create_cus_from_debug_names_list, add_type_unit)
317 (read_comp_units_from_section): Update.
318 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
319 (run_test): Update.
320
16e0020b
TT
3212021-05-17 Tom Tromey <tom@tromey.com>
322
323 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
324 (sort_tu_by_abbrev_offset): Remove.
325 (build_type_psymtabs): Update.
326
91e159e9
SM
3272021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * py-project.toml: New.
330 * gdb-gdb.py.in: Re-format.
331
034dce7a
SM
3322021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
335 New, use it.
336 * command.h (cmd_func_p): Remove.
337 * cli/cli-decode.c (cmd_func_p): Remove.
338
1be99b11
SM
3392021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
342
99858724
SM
3432021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
344
345 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
346 to...
347 <alias_target>: ... this.
348 (add_alias_cmd): Rename old to target.
349 (add_info_alias): Rename old_name to target_name.
350 (add_com_alias): Likewise.
351
14b42fc4
SM
3522021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
353
354 * Rename "prefixlist" parameters to "subcommands" throughout.
355 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
356 <subcommands>: ... this.
357 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
358 (lookup_cmd_with_subcommands): ... this.
359
ecd0a6b3
SM
3602021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
363
413b49c2
SM
3642021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * cli/cli-decode.h (prefixname): Make const, move implementation
367 to cli/cli-decode.c.
368 * cli/cli-decode.c (cmd_list_element::prefixname): New.
369
ea11a98d
WP
3702021-05-16 Weimin Pan <weimin.pan@oracle.com>
371
372 * ctfread.c (new_symbol): Set function address.
373 (read_func_kind_type): Remove incorrect type name setting.
374 Don't copy name returned from ctf_type_ame_raw throughout file.
375
887e7158
TT
3762021-05-14 Tom Tromey <tom@tromey.com>
377
378 * rust-lang.c (rust_language::val_print_struct)
379 (rust_language::print_enum): Use common_val_print, not
380 value_print_inner.
381
55789354
TBA
3822021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
383
384 * python/py-inferior.c (infpy_get_connection_num): New function.
385 (inferior_object_getset): Add a new element for 'connection_num'.
386 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
387
2f63ec5c
AB
3882021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
389
390 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
391 argument type, update and re-wrap, header comment.
392 (remote_target::commit_resumed): Convert any_process_wildcard and
393 may_global_wildcard_vcont from int to bool.
394
ecf25064
KC
3952021-05-14 Kent Cheung <kent.cheung@arm.com>
396
397 * cp-valprint.c (cp_print_value): Replaced duplicate code.
398 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
399 just before printing child values.
400 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
401 printing string representation.
402 * python/py-prettyprint.c (print_children): Check max_depth just
403 before printing child values.
404 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
405 printing string representation.
406
df68e12b
MF
4072021-05-14 Mike Frysinger <vapier@gentoo.org>
408
409 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
410 sim/callback.h & sim/sim.h.
411
183aaaf7
MF
4122021-05-13 Mike Frysinger <vapier@gentoo.org>
413
414 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
415 sim-regno.h include.
416
737358ba
SM
4172021-05-13 Simon Marchi <simon.marchi@efficios.com>
418
419 * inf-child.h (inf_child_target) <follow_exec>: New.
420 * inf-child.c (inf_child_target::follow_exec): New.
421
294c36eb
SM
4222021-05-13 Simon Marchi <simon.marchi@efficios.com>
423
424 * target.h (struct target_ops) <follow_exec>: Add ptid_t
425 parameter.
426 (target_follow_exec): Likewise.
427 * target.c (target_follow_exec): Add ptid_t parameter.
428 * infrun.c (follow_exec): Adjust call to target_follow_exec,
429 don't push target nor create thread.
430 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
431 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
432 (thread_db_target::follow_exec): New.
433 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
434 (remote_target::follow_exec): Call
435 process_stratum_target::follow_exec.
436 * target-delegates.c: Re-generate.
437
2af87c85
SM
4382021-05-13 Simon Marchi <simon.marchi@efficios.com>
439
440 * infrun.c (follow_exec): Call target_follow_fork when
441 follow-exec-mode is same.
442 * target.h (target_follow_fork): Improve doc.
443
0b2256f7
SM
4442021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
447 Remove.
448 * cli/cli-setshow.c (do_show_command): Adjust.
449
0746f49b
LM
4502021-05-13 Luis Machado <luis.machado@linaro.org>
451
452 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
453 include the last address in the range.
454
4b8cb9dd
SM
4552021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
456
457 * python/python-internal.h (gdbpy_parse_command_name): Return
458 gdb::unique_xmalloc_ptr.
459 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
460 (cmdpy_init): Adjust.
461 * python/py-param.c (parmpy_init): Adjust.
462 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
463 when done.
464
ee35ce82
GB
4652021-05-12 George Barrett <bob@bob131.so>
466
467 * NEWS (Guile API): Note the addition of the new procedure.
468 * guile/scm-value.c (gdbscm_value_const_value): Add
469 implementation of value-const-value procedure.
470 (value_functions): Add value-const-value procedure.
471
9d4fc61d
GB
4722021-05-12 George Barrett <bob@bob131.so>
473
474 * NEWS (Guile API): Note the addition of new procedures.
475 * guile/scm-value.c (gdbscm_reference_value): Add helper function
476 for reference value creation.
477 (gdbscm_value_reference_value): Add implementation of
478 value-reference-value procedure.
479 (gdbscm_value_rvalue_reference_value): Add implementation of
480 value-rvalue-reference-value procedure.
481 (value_functions): Add value-reference-value procedure. Add
482 value-rvalue-reference-value procedure.
483
97cef6b7
GB
4842021-05-12 George Barrett <bob@bob131.so>
485
486 * guile/scm-type.c (type_integer_constants): Add binding for
487 TYPE_CODE_RVALUE_REF.
488 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
489 dereferencing of rvalue references.
490 * NEWS (Guile API): Note improvements in rvalue reference support.
491
d51344c9
MM
4922021-05-12 Markus Metzger <markus.t.metzger@intel.com>
493
494 * btrace.c (handle_pt_insn_events): Ignore status update enable
495 events.
496
f2a883a8
SM
4972021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
500 indentation.
501
64f30eb0
SM
5022021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
503
504 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
505
db1f6cd6
LS
5062021-05-10 Lancelot Six <lsix@lancelotsix.com>
507
508 PR gdb/27614
509 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
510 argument.
511
31aceaef
SM
5122021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
513
514 * nat/linux-waitpid.c (status_to_str): Show signal name.
515
75140e3b
AB
5162021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
517
518 * python/py-breakpoint.c (pybp_debug): New static global.
519 (show_pybp_debug): New function.
520 (pybp_debug_printf): Define.
521 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
522 (gdbpy_breakpoint_created): Add some debugging.
523 (gdbpy_breakpoint_deleted): Likewise.
524 (gdbpy_breakpoint_modified): Likewise.
525 (_initialize_py_breakpoint): New function.
526
1ef40c13
AB
5272021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
528
529 * python/py-unwind.c (pyuw_debug): Convert to bool.
530 (show_pyuw_debug): New function.
531 (pyuw_debug_printf): Define.
532 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
533 (pyuw_this_id): Convert to new debug print macros.
534 (pyuw_prev_register): Likewise.
535 (pyuw_sniffer): Likewise.
536 (pyuw_dealloc_cache): Likewise.
537 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
538 show function when registering.
539
927c4e35
AB
5402021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * dummy-frame.c (fprint_dummy_frames): Convert use of
543 fprint_frame_id to use frame_id::to_string.
544 * frame.c (fprint_field): Delete.
545 (fprint_frame_id): Moved to...
546 (frame_id::to_string): ...this, rewritten to return a string.
547 (fprint_frame): Convert use of fprint_frame_id to use
548 frame_id::to_string.
549 (compute_frame_id): Likewise.
550 (frame_id_p): Likewise.
551 (frame_id_eq): Likewise.
552 (frame_id_inner): Likewise.
553 * frame.h (struct frame_id) <to_string>: New member function.
554 (fprint_frame_id): Delete declaration.
555 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
556 fprint_frame_id to use frame_id::to_string.
557 * python/py-frame.c (frame_object_to_frame_info): Likewise.
558 * python/py-unwind.c (unwind_infopy_str): Likewise.
559 (pyuw_this_id): Likewise.
560
8d06918f
SM
5612021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * nat/linux-waitpid.c (status_to_str): Return std::string.
564 * nat/linux-waitpid.h (status_to_str): Likewise.
565 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
566 (linux_nat_target::attach): Adjust.
567 (linux_handle_extended_wait): Adjust.
568 (wait_lwp): Adjust.
569 (stop_wait_callback): Adjust.
570 (linux_nat_filter_event): Adjust.
571 (linux_nat_wait_1): Adjust.
572 * nat/linux-waitpid.c (status_to_str): Adjust.
573 * nat/linux-waitpid.h (status_to_str): Adjust.
574
550e9289
SM
5752021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * infrun.h (infrun_debug_printf): Add missing space.
578
4655f850
PA
5792021-05-08 Pedro Alves <pedro@palves.net>
580
581 * linux-nat.c (linux_nat_target::supports_disable_randomization):
582 Remove references to HAVE_PERSONALITY.
583 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
584 (maybe_disable_address_space_randomization)
585 (~maybe_disable_address_space_randomizatio): Remove references to
586 HAVE_PERSONALITY.
587 * config.in, configure: Regenerate.
588
1845e254
AB
5892021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
592 include.
593 (source_script_with_search): Perform tilde expansion.
594
91e3c425
SM
5952021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
596
597 * target-descriptions.c (struct target_desc_info) <filename>:
598 Make std::string.
599 (copy_inferior_target_desc_info): Adjust.
600 (target_desc_info_free): Adjust.
601 (target_find_description): Adjust.
602 (set_tdesc_filename_cmd): Adjust.
603 (show_tdesc_filename_cmd): Adjust.
604 (unset_tdesc_filename_cmd): Adjust.
605 (maint_print_c_tdesc_cmd): Adjust.
606
0b2f7ade
SM
6072021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
608
609 * target-descriptions.c (struct target_desc_info): Initialize
610 fields.
611 (get_tdesc_info): Use new.
612 (target_desc_info_free): Use delete.
613
820c4490
SM
6142021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
615
616 * target-descriptions.c (struct target_desc_info) <fetched>:
617 bool.
618 (target_find_description): Adjust.
619 (target_clear_description): Adjust.
620
c2962e6a
SM
6212021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
622
623 * target-descriptions.c (struct target_desc_info) <tdesc>:
624 Adjust doc.
625 (target_desc_fetched): Remove.
626 (current_target_desc): Remove.
627 (target_description_filename): Remove.
628 (target_find_description): Adjust.
629 (target_clear_description): Adjust.
630 (target_current_description): Adjust.
631 (set_tdesc_filename_cmd): Adjust.
632 (show_tdesc_filename_cmd): Adjust.
633 (unset_tdesc_filename_cmd): Adjust.
634 (maint_print_c_tdesc_cmd): Adjust.
635 (maint_print_xml_tdesc_cmd): Adjust.
636
8a82de58
AB
6372021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * infcmd.c (notice_new_inferior): Change parameter type.
640 * inferior.h (notice_new_inferior): Change parameter type.
641 * remote.c (remote_notice_new_inferior): Change parameter type to
642 bool. Also update type of local variable to bool.
643 (remote_target::update_thread_list): Change type of local variable
644 to bool.
645 (remote_target::process_stop_reply): Pass bool instead of int to
646 remote_notice_new_inferior.
647
bedc4734
SM
6482021-05-07 Simon Marchi <simon.marchi@efficios.com>
649
650 * target.c (target_stack::unpush): Call target_ops::find_beneath
651 to get the target beneath `t`.
652
27f0a431
SM
6532021-05-07 Simon Marchi <simon.marchi@efficios.com>
654
655 * target.c (target_close): Check in all inferiors that the
656 target is not pushed.
657
1d1669e4
AM
6582021-05-07 Aaron Merey <amerey@redhat.com>
659
660 * debuginfod-support.c (debuginfod_init): Remove.
661 (get_debuginfod_client): New function.
662
2698f5ea
TT
6632021-05-07 Tom Tromey <tom@tromey.com>
664
665 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
666 * utils.c (streq_hash): Remove.
667 * utils.h (streq_hash): Don't declare.
668 * completer.c (completion_tracker::discard_completions): Update
669 comment.
670 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
671
13123da8
SM
6722021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * Re-format all Python files using black.
675
9589edb8
AB
6762021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
677
678 * guile/guile-internal.h (gdbscm_safe_source_script): Change
679 function return type.
680 * guile/guile.c (gdbscm_source_script): Update to handle change in
681 gdbscm_safe_source_script.
682 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
683 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
684 type.
685
ec66d6ea
SM
6862021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
687
688 * inferior.h (class inferior) <args>: Change type to
689 unique_xmalloc_ptr.
690 * inferior.c (inferior::~inferior): Don't free args.
691 * infcmd.c (get_inferior_args): Adjust.
692 (set_inferior_args): Adjust.
693
0618ecf6
AB
6942021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
697 breakpoint locations when the breakpoint actually has a location.
698
79aabb73
TBA
6992021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
700
701 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
702 * mi/mi-cmds.c: Change the binding of "-break-condition" to
703 mi_cmd_break_condition.
704 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
705 * breakpoint.h (set_breakpoint_condition): Declare a new
706 overload.
707 * breakpoint.c (set_breakpoint_condition): New overloaded function
708 extracted out from ...
709 (condition_command): ... this.
710 * NEWS: Mention the change.
711
10e578d7
TBA
7122021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
713
714 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
715 '--force-condition' flag to force the condition in the
716 '-break-insert' and '-dprintf-insert' commands.
717 * NEWS: Mention the change.
718
225bda24
TV
7192021-05-04 Tom de Vries <tdevries@suse.de>
720
721 PR guile/27806
722 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
723 memory functions.
724
b8efb248
TT
7252021-04-30 Tom Tromey <tom@tromey.com>
726
727 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
728 (add_signatured_type_cu_to_table): Remove.
729 (create_debug_type_hash_table): Assume dwo_file is non-null.
730 (create_debug_types_hash_table): Update comment.
731 (create_all_type_units): Remove.
732 (sort_tu_by_abbrev_offset): Update comment.
733 (build_type_psymtabs): Rename from build_type_psymtabs_1.
734 (build_type_psymtabs): Remove.
735 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
736 Update.
737 (read_comp_units_from_section): Add types_htab, section_kind
738 parameters.
739 (create_all_comp_units): Read type units.
740
91eea9cc
TT
7412021-04-30 Tom Tromey <tom@tromey.com>
742
743 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
744 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
745 <get_cu>: Now inline.
746 <all_type_units>: Remove.
747 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
748 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
749 (dwarf2_per_bfd::get_tu): Remove.
750 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
751 (create_signatured_type_table_from_index)
752 (create_signatured_type_table_from_debug_names)
753 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
754 (dwarf2_base_index_functions::expand_all_symtabs)
755 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
756 (dwarf2_base_index_functions::map_symbol_filenames)
757 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
758 (add_signatured_type_cu_to_table, create_all_type_units)
759 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
760 (create_all_comp_units): Update.
761 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
762 (write_debug_names): Update.
763
0d305d5c
TT
7642021-04-30 Tom Tromey <tom@tromey.com>
765
766 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
767 allocate_signatured_type>: Change return type.
768 <all_comp_units, all_type_units>: Hold unique pointers.
769 (struct dwarf2_per_cu_data): Add constructor and initializers.
770 (struct signatured_type): Derive from dwarf2_per_cu_data.
771 * dwarf2/read.c (type_unit_group): Derive from
772 dwarf2_per_cu_data.
773 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
774 (dwarf2_per_bfd::get_tu)
775 (dwarf2_per_bfd::allocate_signatured_type)
776 (dwarf2_per_bfd::allocate_signatured_type)
777 (create_cu_from_index_list, create_cus_from_index_list)
778 (create_signatured_type_table_from_index)
779 (create_signatured_type_table_from_debug_names)
780 (create_addrmap_from_aranges)
781 (dwarf2_base_index_functions::find_last_source_symtab)
782 (dw_expand_symtabs_matching_file_matcher)
783 (dwarf2_gdb_index::expand_symtabs_matching)
784 (dwarf2_base_index_functions::map_symbol_filenames)
785 (create_cus_from_debug_names_list)
786 (dw2_debug_names_iterator::next)
787 (dwarf2_debug_names_index::expand_symtabs_matching)
788 (create_debug_type_hash_table, add_type_unit)
789 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
790 Update.
791 (allocate_type_unit_groups_table): Use delete.
792 (create_type_unit_group): Change return type. Use new.
793 (get_type_unit_group, build_type_psymtabs_1)
794 (build_type_psymtab_dependencies)
795 (process_skeletonless_type_unit, set_partial_user)
796 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
797 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
798 (read_signatured_type): Update.
799 (dwarf2_find_containing_comp_unit): Change type of
800 'all_comp_units'.
801 (run_test): Update.
802 (dwarf2_per_bfd::allocate_per_cu)
803 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
804 Use new.
805 (add_signatured_type_cu_to_table): Update.
806 * dwarf2/index-write.c (write_one_signatured_type)
807 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
808 (write_debug_names): Update.
809
1bee48c7
TT
8102021-04-30 Tom Tromey <tromey@adacore.com>
811
812 * nat/windows-nat.h (get_image_name): Don't declare.
813 * nat/windows-nat.c (get_image_name): Now static.
814
e228ef97
TT
8152021-04-30 Tom Tromey <tromey@adacore.com>
816
817 * windows-nat.c (windows_nat::handle_load_dll): Update.
818 (windows_nat_target::get_windows_debug_event): Call
819 dll_loaded_event.
820 (windows_add_all_dlls, windows_add_dll): Move to
821 nat/windows-nat.c.
822 * nat/windows-nat.h (handle_load_dll): Change parameters.
823 (dll_loaded_event, windows_add_all_dlls): Declare.
824 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
825 from windows-nat.c.
826 (dll_loaded_event): New function.
827
de071872
TT
8282021-04-30 Tom Tromey <tromey@adacore.com>
829
830 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
831 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
832 Declare.
833 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
834 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
835
9e439f00
TT
8362021-04-30 Tom Tromey <tromey@adacore.com>
837
838 * windows-nat.c: Move code to nat/windows-nat.[ch].
839 (_initialize_windows_nat): Call initialize_loadable.
840 * nat/windows-nat.h (AdjustTokenPrivileges)
841 (DebugActiveProcessStop, DebugBreakProcess)
842 (DebugSetProcessKillOnExit, EnumProcessModules)
843 (EnumProcessModulesEx, GetModuleInformation)
844 (GetModuleFileNameExA, GetModuleFileNameExW)
845 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
846 (GetCurrentConsoleFont, Wow64SuspendThread)
847 (Wow64GetThreadContext, Wow64SetThreadContext)
848 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
849 (AdjustTokenPrivileges_ftype)
850 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
851 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
852 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
853 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
854 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
855 (GetConsoleFontSize_ftype)
856 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
857 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
858 (Wow64GetThreadSelectorEntry_ftype): Likewise.
859 (initialize_loadable): Declare.
860 * nat/windows-nat.c (AdjustTokenPrivileges)
861 (DebugActiveProcessStop, DebugBreakProcess)
862 (DebugSetProcessKillOnExit, EnumProcessModules)
863 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
864 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
865 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
866 (Wow64GetThreadContext, Wow64SetThreadContext)
867 (Wow64GetThreadSelectorEntry): Define.
868 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
869 from windows-nat.c.
870 (initialize_loadable): Likewise, and rename.
871
1053c638
TT
8722021-04-30 Tom Tromey <tromey@adacore.com>
873
874 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
875 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
876 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
877 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
878 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
879 (bad): New template functions.
880 (_initialize_loadable): Update.
881
2869ac4b
TT
8822021-04-30 Tom Tromey <tromey@adacore.com>
883
884 * ada-lang.c (ada_index_type): Use ada_check_typedef.
885
e197dfae
SM
8862021-04-29 Simon Marchi <simon.marchi@efficios.com>
887
888 * auto-load.h: Split namespace declaration.
889
89ba430c
SM
8902021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * infrun.c (save_waitstatus): Move variables to inner scope.
893
8eb82ba1
AB
8942021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
895
896 * NEWS: Fix typo and stray full stop.
897
db2534b7
TT
8982021-04-28 Tom Tromey <tromey@adacore.com>
899
900 * ada-exp.y (primary): Use new type for null pointer.
901 * ada-lang.c (ada_type_match): Remove "may_deref"
902 parameter. Handle null pointer.
903 (ada_args_match): Update.
904 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
905 Handle null pointer.
906
edeaceda
AB
9072021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
908
909 * NEWS: Mention new commands.
910 * python/python.c (python_ignore_environment): New static global.
911 (show_python_ignore_environment): New function.
912 (set_python_ignore_environment): New function.
913 (python_dont_write_bytecode): New static global.
914 (show_python_dont_write_bytecode): New function.
915 (set_python_dont_write_bytecode): New function.
916 (_initialize_python): Register new commands.
917
041ca48e
AB
9182021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * extension-priv.h (struct extension_language_ops): Rename
921 'finish_initialization' to 'initialize'.
922 * extension.c (finish_ext_lang_initialization): Renamed to...
923 (ext_lang_initialization): ...this, update comment, and updated
924 the calls to reflect the change in struct extension_language_ops.
925 * extension.h (finish_ext_lang_initialization): Renamed to...
926 (ext_lang_initialization): ...this.
927 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
928 (gdbscm_initialize): ...this, update comment at definition.
929 (guile_extension_ops): Update.
930 * main.c (captured_main_1): Update call to
931 finish_ext_lang_initialization.
932 * python/python.c (gdbpy_finish_initialization): Rename to...
933 (gdbpy_initialize): ...this, update comment at definition, and
934 update call to do_finish_initialization.
935 (python_extension_ops): Update.
936 (do_finish_initialization): Rename to...
937 (do_initialize): ...this, and update comment.
938
1178f01a
AB
9392021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 * main.c (captured_main_1): Add a call to
942 finish_ext_lang_initialization.
943 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
944
880ae75a
AB
9452021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
946
947 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
948 (gdbscm_finish_initialization): Add code moved from
949 _initialize_guile.
950 (_initialize_guile): Move code to gdbscm_finish_initialization.
951 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
952 _initialize_scm_arch.
953 (_initialize_scm_arch): New function.
954 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
955 into _initialize_scm_block.
956 (_initialize_scm_block): New function.
957 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
958 into _initialize_scm_frame.
959 (_initialize_scm_frame): New function.
960 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
961 into _initialize_scm_objfile.
962 (_initialize_scm_objfile): New function.
963 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
964 code into _initialize_scm_progspace.
965 (_initialize_scm_progspace): New function.
966 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
967 into _initialize_scm_symbol.
968 (_initialize_scm_symbol): New function.
969 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
970 into _initialize_scm_symtab.
971 (_initialize_scm_symtab): New function.
972 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
973 _initialize_scm_type.
974 (_initialize_scm_type): New function.
975
8e3685bf
AB
9762021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
977
978 * python/py-arch.c (_initialize_py_arch): New function.
979 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
980 * python/py-block.c (_initialize_py_block): New function.
981 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
982 * python/py-inferior.c (_initialize_py_inferior): New function.
983 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
984 * python/py-objfile.c (_initialize_py_objfile): New function.
985 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
986 * python/py-progspace.c (_initialize_py_progspace): New function.
987 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
988 * python/py-registers.c (_initialize_py_registers): New function.
989 (gdbpy_initialize_registers): Move code to
990 _initialize_py_registers.
991 * python/py-symbol.c (_initialize_py_symbol): New function.
992 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
993 * python/py-symtab.c (_initialize_py_symtab): New function.
994 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
995 * python/py-type.c (_initialize_py_type): New function.
996 (gdbpy_initialize_types): Move code to _initialize_py_type.
997 * python/py-unwind.c (_initialize_py_unwind): New function.
998 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
999 * python/python.c (_initialize_python): Move call to
1000 do_start_initialization to gdbpy_finish_initialization.
1001 (gdbpy_finish_initialization): Add call to
1002 do_start_initialization.
1003
913832e9
AB
10042021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * extension.c (struct scoped_default_signal): New struct.
1007 (scoped_default_sigint): New typedef.
1008 (finish_ext_lang_initialization): Make use of
1009 scoped_default_sigint.
1010
a3b5ef3e
AB
10112021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * main.c (captured_main_1): Don't pass argument to gdb_init.
1014 * top.c (gdb_init): Remove unused argument, and add header
1015 comment.
1016 * top.h (gdb_init): Remove argument.
1017
b9f90c72
LM
10182021-04-27 Luis Machado <luis.machado@linaro.org>
1019
1020 * psymtab.c (psymbol_functions::dump): Output newline.
1021 Remove wrap.
1022 * symmisc.c (dump_objfile): Likewise.
1023
2c473def
MW
10242021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1025 Simon Marchi <simon.marchi@polymtl.ca>
1026
1027 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1028 when attaching the 'auto_load_new_objfile' observer, so
1029 other observers can specify it as a dependency.
1030 * gdb/auto-load.h (struct token): Declare
1031 'auto_load_new_objfile_observer_token' as token to be used
1032 for the 'auto_load_new_objfile' observer.
1033 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1034 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1035 observer, so it gets notified after the latter.
1036
9a6e099f
MW
10372021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1038 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * unittests/observable-selftests.c (dependency_test_counters):
1041 New.
1042 (observer_token0, observer_token1, observer_token2,
1043 observer_token3, observer_token4, observer_token5): New.
1044 (struct dependency_observer_data): New struct.
1045 (observer_dependency_test_callback): New function.
1046 (test_observers): New.
1047 (run_dependency_test): New function.
1048 (test_dependency): New.
1049 (_initialize_observer_selftest): Register dependency test.
1050
bea3329b
SM
10512021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 PR gdb/27773
1054 * cli/cli-dump.c (dump_binary_file): Check result of
1055 gdb_fopen_cloexec.
1056
c290cb01
ST
10572021-04-25 Sergei Trofimovich <siarheit@google.com>
1058
1059 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1060 by passing `process_stratum_target*` parameter.
1061
fbb46296
LS
10622021-04-25 Lancelot Six <lsix@lancelotsix.com>
1063
1064 PR gdb/22640
1065 * typeprint.h (struct type_print_options): Add print_in_hex
1066 flag.
1067 (struct print_offset_data): Add print_in_hex flag, add a
1068 constructor accepting a type_print_options* argument.
1069 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1070 default value for print_in_hex.
1071 (print_offset_data::indentation): Allow more horizontal space.
1072 (print_offset_data::print_offset_data): Add ctor.
1073 (print_offset_data::maybe_print_hole, print_offset_data::update):
1074 Handle the print_in_hex flag.
1075 (whatis_exp): Handle 'x' and 'd' flags.
1076 (print_offsets_and_sizes_in_hex): Declare.
1077 (set_print_offsets_and_sizes_in_hex): Create.
1078 (show_print_offsets_and_sizes_in_hex): Create.
1079 (_initialize_typeprint): Update help message for the ptype
1080 command, register the 'set print type hex' and 'show print type
1081 hex' commands.
1082 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1083 (c_type_print_base): Construct the print_offset_data
1084 object using the type_print_optons parameter.
1085 * rust-lang.c (rust_language::print_type): Construct the
1086 print_offset_data object using the type_print_optons parameter.
1087 * NEWS: Mention the new flags of the ptype command.
1088
18bbba46
LS
10892021-04-25 Lancelot Six <lsix@lancelotsix.com>
1090
1091 * typeprint.h (struct type_print_options): Move before
1092 print_offset_data.
1093
77393c9b
JB
10942021-04-25 Joel Brobecker <brobecker@adacore.com>
1095
1096 GDB 10.2 released.
1097
98c897e3
SM
10982021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1099
1100 * observable.c (observer_debug): Change to bool.
1101
9fc29955
AB
11022021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * dwarf2/read.c: Add 'unordered_set' include.
1105 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1106 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1107 of per_Bfd->filenames_cache cache, and use function local
1108 filenames_cache instead. Reindent.
1109 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1110
0406545d
SM
11112021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1112
1113 * breakpoint.c (iterate_over_bp_locations): Change callback to
1114 function view, remove data parameter.
1115 * breakpoint.h (iterate_over_bp_locations): Likewise.
1116 * record-full.c (record_full_sync_record_breakpoints): Remove
1117 data parameter.
1118
432ce4cf
TT
11192021-04-22 Tom Tromey <tom@tromey.com>
1120
1121 * c-typeprint.c (c_type_print_base_struct_union): Use
1122 print_spaces_filtered_with_print_options.
1123
e25d6d93
SM
11242021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1125
1126 PR gdb/27757
1127 * python/py-type.c (typy_range): Check that bounds are constant
1128 before accessing them as such.
1129 * guile/scm-type.c (gdbscm_type_range): Likewise.
1130
4efeb0d3
TBA
11312021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1132
1133 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1134 * inferior.c (inferior::add_continuation): New method, adapted
1135 from 'add_inferior_continuation'.
1136 (inferior::do_all_continuations): New method, adapted from
1137 'do_all_inferior_continuations'.
1138 (inferior::~inferior): Clear the list of continuations directly.
1139 * inferior.h (class inferior) <continuations>: Rename into...
1140 <m_continuations>: ...this and make private.
1141 * continuations.c: Remove.
1142 * continuations.h: Remove.
1143 * event-top.c: Don't include "continuations.h".
1144
1145 Update the users below.
1146 * inf-loop.c (inferior_event_handler)
1147 * infcmd.c (attach_command)
1148 (notice_new_inferior): Update.
1149
c4c493de
TBA
11502021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1151
1152 * inferior.h (class inferior) <continuations>: Change the type
1153 to be an std::list of std::function's.
1154 Update the references and uses below.
1155 * continuations.c (struct continuation): Delete.
1156 (make_continuation): Delete.
1157 (do_my_continuations_1): Delete.
1158 (do_my_continuations): Delete.
1159 (discard_my_continuations_1): Delete.
1160 (discard_my_continuations): Delete.
1161 (add_inferior_continuation): Update.
1162 (do_all_inferior_continuations): Update.
1163 (discard_all_inferior_continuations): Update.
1164 * continuations.h (add_inferior_continuation): Update to take
1165 an std::function as the parameter.
1166 * infcmd.c (struct attach_command_continuation_args): Delete.
1167 (attach_command_continuation): Delete.
1168 (attach_command_continuation_free_args): Delete.
1169 (attach_command): Update.
1170 (notice_new_inferior): Update.
1171
1194676e
TBA
11722021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1173
1174 * continuations.h: Update the general comment.
1175 * inferior.h (class inferior) <continuations>: Update the comment.
1176 * interps.c: Do not include "continuations.h".
1177
35682f0a
TBA
11782021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1179
1180 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1181 parameter. Update the references below.
1182 * continuations.c (do_my_continuations_1)
1183 (do_my_continuations)
1184 (do_all_inferior_continuations): Update.
1185 * inf-loop.c (inferior_event_handler): Update.
1186 * infcmd.c (attach_command_continuation): Update.
1187
6fee5eee
TBA
11882021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189
1190 * infcmd.c (attach_post_wait): Update the function comment.
1191
27d0790a
TBA
11922021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1193
1194 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1195 Update the references below.
1196 (struct attach_command_continuation_args)
1197 (attach_command_continuation)
1198 (attach_command_continuation_free_args)
1199 (attach_command)
1200 (notice_new_inferior): Update to remove the reference to 'args'.
1201
c39ebbf4
TV
12022021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1203 Tom de Vries <tdevries@suse.de>
1204
1205 PR remote/27710
1206 * remote.c (remote_target_is_non_stop_p): New function.
1207 * remote.h (remote_target_is_non_stop_p): Declare.
1208 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1209 to check non-stopness using notif_state->remote rather current target.
1210
22f80c0f
TT
12112021-04-22 Tom Tromey <tom@tromey.com>
1212
1213 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1214 (struct typed_val_int) <val>: Now ULONGEST.
1215 (rust_parser::parse_array_type): Remove negative check.
1216 (rust_lex_int_test): Change 'value' to ULONGEST.
1217
05f3c0f0
AB
12182021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * arch-utils.c (default_addressable_memory_unit_size): Return a
1221 value based on bfd's bits per byte.
1222
7e7a35fb
TT
12232021-04-21 Tom Tromey <tom@tromey.com>
1224
1225 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1226 unsigned char.
1227 (struct dwarf2_per_cu_data): Rearrange.
1228 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1229 unsigned char.
1230 (struct comp_unit_head): Rearrange.
1231 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1232
ff507520
TV
12332021-04-21 Tom de Vries <tdevries@suse.de>
1234
1235 PR build/27681
1236 * configure.ac: Remove --without-included-regex/--with-included-regex.
1237 * config.in: Regenerate.
1238 * configure: Regenerate.
1239 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1240
10a636cc
TBA
12412021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1242
1243 * breakpoint.h (create_breakpoint): Add a new parameter,
1244 'force_condition'.
1245 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1246 argument when 'parse_extra' is false to check if the condition
1247 is invalid at all of the breakpoint locations.
1248 Update the users below.
1249 (break_command_1)
1250 (dprintf_command)
1251 (trace_command)
1252 (ftrace_command)
1253 (strace_command)
1254 (create_tracepoint_from_upload): Update.
1255 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1256 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1257 * python/py-breakpoint.c (bppy_init): Update.
1258 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1259
85c88e2a
TBA
12602021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1261
1262 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1263 disabled-by-condition locations on MI-like output.
1264 (breakpoint_1): Do not display the disabled-by-condition footnote
1265 if the output is MI-like.
1266
fd34472c
FC
12672021-04-21 Frederic Cambus <fred@statdns.com>
1268
1269 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1270 update year range in generated copyright notices.
1271
184dcd81
FW
12722021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1273
1274 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1275 qualifier_seq_noopt.
1276
525174e8
FW
12772021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1278
1279 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1280
f5dc2ee3
AB
12812021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1284 (producer_is_icc): Replace use of std::regex with gdb's
1285 compiled_regex.
1286
42c2c694
TT
12872021-04-17 Tom Tromey <tom@tromey.com>
1288
1289 PR gdb/23743:
1290 * dwarf2/read.c (class offset_view): New.
1291 (struct symbol_table_slot): Remove.
1292 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1293 <symbol_name_index, symbol_vec_index>: New methods.
1294 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1295 Rewrite.
1296 (read_gdb_index_from_buffer): Update.
1297 (struct dw2_symtab_iterator) <vec>: Change type.
1298 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1299 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1300 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1301 <append_array, append_offset>: New methods.
1302 (write_hash_table, add_address_entry, write_gdbindex_1)
1303 (write_debug_names): Update.
1304 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1305
da314dd3
TT
13062021-04-17 Tom Tromey <tom@tromey.com>
1307
1308 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1309 partial_symtabs.
1310
0b7b2c2a
TT
13112021-04-17 Tom Tromey <tom@tromey.com>
1312
1313 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1314 from map_matching_symbols. Change parameters.
1315 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1316 Rename from map_matching_symbols. Change parameters.
1317 * dwarf2/read.c (struct dwarf2_gdb_index)
1318 <expand_matching_symbols>: Rename from map_matching_symbols.
1319 Change parameters.
1320 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1321 Rename from map_matching_symbols. Change parameters.
1322 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1323 dw2_map_matching_symbols. Change parameters.
1324 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1325 implementation.
1326 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1327 map_matching_symbols. Change parameters.
1328 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1329 from map_matching_symbols. Change parameters.
1330 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1331 map_matching_symbols. Change parameters.
1332 * ada-lang.c (map_matching_symbols): New function.
1333 (add_nonlocal_symbols): Update.
1334
90160b57
TT
13352021-04-17 Tom Tromey <tom@tromey.com>
1336
1337 * quick-symbol.h (struct quick_symbol_functions)
1338 <expand_symtabs_with_fullname>: Remove.
1339 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1340 Remove.
1341 * psympriv.h (struct psymbol_functions)
1342 <expand_symtabs_with_fullname>: Remove.
1343 * dwarf2/read.c (struct dwarf2_base_index_functions)
1344 <expand_symtabs_with_fullname>: Remove.
1345 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1346 Remove.
1347 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1348 Update comment.
1349 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1350 Rewrite.
1351
7089bd88
TT
13522021-04-17 Tom Tromey <tom@tromey.com>
1353
1354 * symfile-debug.c (objfile::expand_symtabs_for_function):
1355 Rewrite.
1356 * quick-symbol.h (struct quick_symbol_functions)
1357 <expand_symtabs_for_function>: Remove.
1358 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1359 Remove.
1360 * psympriv.h (struct psymbol_functions)
1361 <expand_symtabs_for_function>: Remove.
1362 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1363 Update comment.
1364 * dwarf2/read.c (struct dwarf2_gdb_index)
1365 <expand_symtabs_for_function>: Remove.
1366 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1367 Remove.
1368 (find_slot_in_mapped_hash): Remove.
1369 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1370 (dw2_symtab_iter_init): Remove one overload.
1371 (dwarf2_gdb_index::expand_symtabs_for_function)
1372 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1373
536a40f3
TT
13742021-04-17 Tom Tromey <tom@tromey.com>
1375
1376 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1377 Rewrite.
1378 * quick-symbol.h (struct quick_symbol_functions)
1379 <map_symtabs_matching_filename>: Remove.
1380 * psymtab.c (partial_map_expand_apply)
1381 (psymbol_functions::map_symtabs_matching_filename): Remove.
1382 * psympriv.h (struct psymbol_functions)
1383 <map_symtabs_matching_filename>: Remove.
1384 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1385 Update comment.
1386 * dwarf2/read.c (struct dwarf2_base_index_functions)
1387 <map_symtabs_matching_filename>: Remove.
1388 (dw2_map_expand_apply)
1389 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1390 Remove.
1391
84d865e3
TT
13922021-04-17 Tom Tromey <tom@tromey.com>
1393
1394 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1395 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1396 Remove.
1397 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1398 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1399 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1400 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1401 Remove.
1402 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1403 (dwarf2_gdb_index::lookup_symbol)
1404 (dwarf2_debug_names_index::lookup_symbol): Remove.
1405
3bfa51a7
TT
14062021-04-17 Tom Tromey <tom@tromey.com>
1407
1408 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1409 * symmisc.c (maintenance_expand_symtabs): Update.
1410 * symfile.c (expand_symtabs_matching): Update.
1411 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1412 parameter.
1413 * quick-symbol.h (struct quick_symbol_functions)
1414 <expand_symtabs_matching>: Add 'domain' parameter.
1415 * psymtab.c (recursively_search_psymtabs)
1416 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1417 parameter.
1418 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1419 Add 'domain' parameter.
1420 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1421 'domain' parameter.
1422 * linespec.c (iterate_over_all_matching_symtabs): Update.
1423 * dwarf2/read.c (struct dwarf2_gdb_index)
1424 <expand_symtabs_matching>: Add 'domain' parameter.
1425 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1426 'domain' parameter.
1427 (dw2_expand_symtabs_matching)
1428 (dwarf2_gdb_index::expand_symtabs_matching)
1429 (dw2_debug_names_iterator)
1430 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1431 parameter.
1432
03a8ea51
TT
14332021-04-17 Tom Tromey <tom@tromey.com>
1434
1435 * symtab.c (global_symbol_searcher::expand_symtabs)
1436 (default_collect_symbol_completion_matches_break_on): Update.
1437 * symmisc.c (maintenance_expand_symtabs): Update.
1438 * symfile.h (expand_symtabs_matching): Add search_flags
1439 parameter.
1440 * symfile.c (expand_symtabs_matching): Add search_flags
1441 parameter.
1442 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1443 search_flags parameter.
1444 * quick-symbol.h (struct quick_symbol_functions)
1445 <expand_symtabs_matching>: Add search_flags parameter.
1446 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1447 * psymtab.c (recursively_search_psymtabs)
1448 (psymbol_functions::expand_symtabs_matching): Add search_flags
1449 parameter.
1450 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1451 Add search_flags parameter.
1452 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1453 search_flags parameter.
1454 * linespec.c (iterate_over_all_matching_symtabs): Update.
1455 * dwarf2/read.c (struct dwarf2_gdb_index)
1456 <expand_symtabs_matching>: Add search_flags parameter.
1457 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1458 search_flags parameter.
1459 (dw2_map_matching_symbols): Update.
1460 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1461 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1462 parameter.
1463 (dw2_debug_names_iterator): Change block_index to search flags.
1464 <m_block_index>: Likewise.
1465 (dw2_debug_names_iterator::next)
1466 (dwarf2_debug_names_index::lookup_symbol)
1467 (dwarf2_debug_names_index::expand_symtabs_for_function)
1468 (dwarf2_debug_names_index::map_matching_symbols)
1469 (dwarf2_debug_names_index::map_matching_symbols): Update.
1470 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1471 search_flags parameter.
1472 * ada-lang.c (ada_add_global_exceptions)
1473 (collect_symbol_completion_matches): Update.
1474
df35e626
TT
14752021-04-17 Tom Tromey <tom@tromey.com>
1476
1477 * symtab.c (default_collect_symbol_completion_matches_break_on):
1478 Update.
1479 * symfile.h (expand_symtabs_matching): Return bool.
1480 * symfile.c (expand_symtabs_matching): Return bool.
1481 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1482 bool.
1483 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1484 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1485 bool.
1486 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1487 bool.
1488 * psympriv.h (struct psymbol_functions)
1489 <expand_symtabs_matching>: Return bool.
1490 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1491 bool.
1492 * dwarf2/read.c (struct dwarf2_gdb_index)
1493 <expand_symtabs_matching>: Return bool.
1494 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1495 Return bool.
1496 (dw2_expand_symtabs_matching_symbol): Return bool.
1497 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1498 (dw2_expand_symtabs_matching)
1499 (dwarf2_gdb_index::expand_symtabs_matching)
1500 (dwarf2_debug_names_index::expand_symtabs_matching)
1501 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1502
e357e990
TT
15032021-04-17 Tom Tromey <tom@tromey.com>
1504
1505 * quick-symbol.h (enum block_search_flag_values): New.
1506 (block_search_flags): New enum flags type.
1507
3cbc7ac3
TT
15082021-04-16 Tom Tromey <tom@tromey.com>
1509
1510 * rust-parse.c: New file.
1511 * rust-exp.y: Remove.
1512 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1513 (SFILES): Remove rust-exp.y.
1514 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1515
1b6b755e
LM
15162021-04-16 Luis Machado <luis.machado@linaro.org>
1517
1518 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1519
c45ecc9d
JB
15202021-04-15 John Baldwin <jhb@FreeBSD.org>
1521
1522 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1523 use throughout file.
1524
a15a276b
TT
15252021-04-15 Tom Tromey <tromey@adacore.com>
1526
1527 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1528 arrays.
1529
644a2e75
TT
15302021-04-15 Tom Tromey <tromey@adacore.com>
1531
1532 * printcmd.c (print_variable_and_value): Use
1533 common_val_print_checked.
1534
9e5e03df
TT
15352021-04-15 Tom Tromey <tromey@adacore.com>
1536
1537 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1538 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1539 Update.
1540 * p-exp.y (variable): Update.
1541 * m2-exp.y (variable): Update.
1542 * go-exp.y (variable): Update.
1543 * expprint.c (dump_for_expression): New overload.
1544 * expop.h (check_objfile): New overload.
1545 (check_constant): New overload.
1546 (class var_value_operation): Use block_symbol.
1547 <get_symbol>: Rewrite.
1548 * eval.c (var_value_operation::evaluate)
1549 (var_value_operation::evaluate_funcall)
1550 (var_value_operation::evaluate_for_address)
1551 (var_value_operation::evaluate_for_address)
1552 (var_value_operation::evaluate_with_coercion)
1553 (var_value_operation::evaluate_for_sizeof)
1554 (var_value_operation::evaluate_for_cast): Update.
1555 * d-exp.y (PrimaryExpression): Update.
1556 * c-exp.y (variable): Update.
1557 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1558 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1559 (ada_var_value_operation::evaluate)
1560 (ada_var_value_operation::resolve)
1561 (ada_funcall_operation::resolve): Update.
1562 * ada-exp.y (write_var_from_sym, write_object_renaming)
1563 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1564 (maybe_overload): Update.
1565 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1566
5809fbf2
TT
15672021-04-15 Tom Tromey <tom@tromey.com>
1568 Andrew Burgess <andrew.burgess@embecosm.com>
1569
1570 * NEWS: Add entry.
1571 * main.c (captured_main_1): Call check_quiet_mode.
1572 * top.c (startup_quiet): New global.
1573 (check_quiet_mode): New function.
1574 (show_startup_quiet): New function.
1575 (init_main): Register new command.
1576 * top.h (check_quiet_mode): Declare.
1577
92e4e97a
AB
15782021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1579
1580 PR cli/25956
1581 * NEWS: Mention new early init files and command line options.
1582 * config.in: Regenerate.
1583 * configure: Regenerate.
1584 * configure.ac: Define GDBEARLYINIT.
1585 * main.c (get_earlyinit_files): New function.
1586 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1587 CMDARG_EARLYINIT_COMMAND.
1588 (captured_main_1): Add support for new command line flags, and for
1589 processing startup files.
1590 (print_gdb_help): Include startup files in the output.
1591
54b4dcc5
AB
15922021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1595 (relocate_file_path_maybe_in_datadir): ...this.
1596 (class gdb_initfile_finder): New class.
1597 (get_init_files): Now uses gdb_initfile_finder.
1598 (print_gdb_help): Print 'None found' when there are no init files.
1599
34dc0f95
TBA
16002021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1601
1602 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1603 corresponding child of the abstract DIE when iterating the
1604 children of the concrete DIE.
1605
329534fd
TV
16062021-04-13 Tom de Vries <tdevries@suse.de>
1607
1608 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1609 type to regoff_t *.
1610
d9d2ef05
LM
16112021-04-13 Luis Machado <luis.machado@linaro.org>
1612
1613 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1614 hex values.
1615
c8a37944
WS
16162021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1617
1618 * rs6000-tdep.c: Add support for single-stepping of
1619 prefixed instructions.
1620
b722acca
WS
16212021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1622
e3d528d7
WS
1623 PR gdb/27525
1624 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1625 handle the addpcis/lnia instruction.
1626
16272021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1628
b722acca
WS
1629 * MAINTAINERS (Write After Approval): Add myself.
1630
6ba4cb84
CL
16312021-4-12 Carl Love <cel@us.ibm.com>
1632
1633 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1634 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1635 float128.
1636
d4717483
SM
16372021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1638
1639 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1640 * nat/windows-nat.h: Likewise.
1641
b3885679
EZ
16422021-04-10 Eli Zaretskii <eliz@gnu.org>
1643
1644 * windows-nat.c (windows_nat::handle_load_dll): Call
1645 windows_add_dll if get_image_name failed to glean the name of the
1646 DLL by using the lpImageName pointer.
1647 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1648 (windows_add_dll): Now does what windows_add_all_dlls did before,
1649 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1650 specifies the address where the DLL was loaded into the inferior,
1651 and looks for the single DLL loaded at that address.
1652
1ef6a596
LM
16532021-04-09 Luis Machado <luis.machado@linaro.org>
1654
1655 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1656
83a559f7
DQ
16572021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1658
1659 * darwin-nat.c (darwin_nat_target::resume): Remove status
1660 variable.
1661
16e311ab
FW
16622021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1663
1664 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1665 prologue end for Intel compilers.
1666 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1667 * producer.c (producer_is_icc_ge_19): New function.
1668 * producer.h (producer_is_icc_ge_19): New declaration.
1669
fbb3bcfc
FW
16702021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1671
1672 * producer.c: (producer_is_icc): Update for new version scheme.
1673 (producer_parsing_tests): Update names and expected results.
1674 * producer.h: (producer_is_icc): Update comment accordingly.
1675
e97007b6
SM
16762021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1677
1678 * target.h (struct target_ops) <follow_fork>: Return void.
1679 (target_follow_fork): Likewise.
1680 * target.c (default_follow_fork): Likewise.
1681 (target_follow_fork): Likewise.
1682 * infrun.c (follow_fork_inferior): Adjust.
1683 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1684 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1685 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1686 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1687 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1688 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1689 * remote.c (class remote_target) <follow_fork>: Likewise.
1690 (remote_target::follow_fork): Likewise.
1691 * target-delegates.c: Re-generate.
1692
dc2b480f
WP
16932021-04-07 Weimin Pan <weimin.pan@oracle.com>
1694
1695 * ctfread.c (fetch_tid_type): New function, use throughout file.
1696 (read_forward_type): New function.
1697 (read_type_record): Call read_forward_type.
1698
0a703a4c
AB
16992021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1700
1701 * f-exp.h (class fortran_structop_operation): New class.
1702 * f-exp.y (exp): Create fortran_structop_operation instead of the
1703 generic structop_operation.
1704 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1705 expression as EVAL_NORMAL if the result type was dynamic so we can
1706 extract the actual array bounds.
1707 (fortran_structop_operation::evaluate): New function.
1708
17092021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1710
1711 * eval.c (evaluate_subexp_standard): Remove
1712 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1713 STRUCTOP_PTR.
1714
30ab3586
AB
17152021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * valops.c (value_cast): Call value_deeply_equal before performing
1718 any cast.
1719
5e18990f
AB
17202021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1723 the function.
1724
56d467f4
CT
17252021-04-07 Caroline Tice <cmtice@google.com>
1726
1727 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1728 the search paths used resolve relative location of .dwo file.
1729
1fd999d9
AB
17302021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1733 assert.
1734 (dwarf2_section_info::get_file_name): Add an assert.
1735 (dwarf2_section_info::read_string): Display a minimal, sane error
1736 when the dwarf2_section_info is not associated with a bfd section.
1737
79c02443
AB
17382021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 * top.c (staged_gdb_datadir): Update comment.
1741 (set_gdb_datadir): Copy the value of gdb_datadir back into
1742 staged_datadir.
1743 (init_main): Initialise staged_gdb_datadir.
1744
340d00fb
TV
17452021-04-06 Tom de Vries <tdevries@suse.de>
1746
1747 PR breakpoints/25884
1748 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1749 stepping range.
1750
d811a7cf
TV
17512021-04-06 Tom de Vries <tdevries@suse.de>
1752
1753 PR tui/27680
1754 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1755 to style.parse.
1756
306b445a
SM
17572021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1758
1759 * avr-tdep.c (avr_frame_unwind_cache): Use
1760 trad_frame_saved_reg::is_addr.
1761
9161c89a
SM
17622021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1763
1764 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1765 adjust callers.
1766
0072c873
SM
17672021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1768
1769 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1770 objfile parameter for objfile_per_bfd_storage, adjust callers.
1771 (struct standard_psymtab) <standard_psymtab>: Likewise.
1772 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1773 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1774 * ctfread.c (struct ctf_psymtab): Likewise.
1775 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1776 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1777 (dwarf2_create_include_psymtab): Likewise.
1778 * objfiles.h (struct objfile_per_bfd_storage)
1779 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1780 <get_bfd>: New method.
1781 <m_bfd>: New field.
1782 * objfiles.c (get_objfile_bfd_data): Adjust.
1783
9984dd99
SM
17842021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1785
1786 * psymtab.c (partial_symtab::partial_symtab): Change
1787 last_objfile_name to be an std::string.
1788 * symfile.c (allocate_symtab): Likewise.
1789
4a4f97c1
SM
17902021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1791
1792 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1793 methods.
1794 (struct objfile) <intern>: Use
1795 objfile::objfile_per_bfd_storage::intern.
1796
0672875f
SM
17972021-04-01 Simon Marchi <simon.marchi@efficios.com>
1798
1799 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1800 with type::is_flag_enum.
1801
9902b327
SM
18022021-04-01 Simon Marchi <simon.marchi@efficios.com>
1803
1804 * gdbtypes.h (struct type) <is_flag_enum,
1805 set_is_flag_enum>: New methods.
1806 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1807 write call sites to use type::set_is_flag_enum.
1808
3bc440a2
SM
18092021-04-01 Simon Marchi <simon.marchi@efficios.com>
1810
1811 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1812 with type::is_declared_class.
1813
aa70e35c
SM
18142021-04-01 Simon Marchi <simon.marchi@efficios.com>
1815
1816 * gdbtypes.h (struct type) <is_declared_class,
1817 set_is_declared_class>: New methods.
1818 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1819 write call sites to use type::set_is_declared_class.
1820
bfb9f5dc
BS
18212021-02-28 Boris Staletic <boris.staletic@gmail.com>
1822
1823 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1824 to avoid deprecation warnings.
1825
733f5eea
ML
18262021-04-01 Martin Liska <mliska@suse.cz>
1827
1828 * cp-name-parser.y: Use startswith instead of strncmp.
1829 * m2-exp.y: Likewise.
1830 * macroexp.c (substitute_args): Likewise.
1831 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1832 * rust-exp.y: Likewise.
1833
af82f89d
TT
18342021-03-31 Tom Tromey <tom@tromey.com>
1835
1836 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1837 with dw2_map_matching_symbols.
1838 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1839 dw2_expand_symtabs_matching.
1840
3570682a
TT
18412021-03-31 Tom Tromey <tromey@adacore.com>
1842
1843 * dwarf2/stringify.h: Fix typo.
1844
8a91fbdf
SM
18452021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 PR gdb/27541
1848 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1849 with objfiles using READNOW.
1850
9f67fc59
TT
18512021-03-29 Tom Tromey <tromey@adacore.com>
1852
1853 * top.c (check_frame_language_change): Update.
1854 * language.c (language_info): Remove parameter.
1855 * language.h (language_info): Remove parameter.
1856
9b8ffbf4
LM
18572021-03-29 Luis Machado <luis.machado@linaro.org>
1858
1859 * compile/compile.c (get_args): Don't add empty argv entries.
1860
25b48839
RO
18612021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1862
1863 gdb:
1864 * procfs.c (procfs_target::attach): Define inf.
1865 Use it.
1866 (procfs_target::create_inferior): Likewise.
1867
edc02ceb
TT
18682021-03-28 Tom Tromey <tom@tromey.com>
1869
1870 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1871 (elf_symfile_read): Simplify.
1872 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1873 (make_lazy_dwarf_reader): New function.
1874 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1875 (dwarf2_initialize_objfile): Return void. Remove index_kind
1876 parameter. Push on 'qf' list.
1877 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1878 type. Remove 'index_kind' parameter.
1879 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1880
6e23d91a
TT
18812021-03-27 Tom Tromey <tom@tromey.com>
1882
1883 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1884
594b8948
TT
18852021-03-27 Tom Tromey <tom@tromey.com>
1886
1887 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1888
efe1ecd8
LS
18892021-03-26 Lancelot Six <lsix@lancelotsix.com>
1890
1891 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1892 rid of 'local'.
1893
f4655dee
TT
18942021-03-26 Tom Tromey <tom@tromey.com>
1895
1896 * symtab.c (struct output_source_filename_data): Add 'output'
1897 method and operator().
1898 (output_source_filename_data::output): Rename from
1899 output_source_filename.
1900 (output_partial_symbol_filename): Remove.
1901 (info_sources_command): Update.
1902 (struct add_partial_filename_data): Add operator().
1903 (add_partial_filename_data::operator()): Rename from
1904 maybe_add_partial_symtab_filename.
1905 (make_source_files_completion_list): Update.
1906 * symfile.c (quick_symbol_functions): Update.
1907 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1908 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1909 'need_fullname'. Remove 'data' parameter.
1910 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1911 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1912 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1913 Change type of 'fun' and 'need_fullname'. Remove 'data'
1914 parameter.
1915 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1916 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1917 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1918 parameter.
1919 (mi_cmd_file_list_exec_source_files): Update.
1920 * dwarf2/read.c
1921 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1922
2315bb2d
TT
19232021-03-26 Tom Tromey <tom@tromey.com>
1924
1925 * ada-lang.c (struct match_data): Add operator().
1926 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1927 (callback): Remove 'callback'.
1928
e2cd5ca4
TT
19292021-03-26 Tom Tromey <tom@tromey.com>
1930
1931 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1932 call make_ignore_params once.
1933
cd43f63e
TT
19342021-03-26 Tom Tromey <tom@tromey.com>
1935
1936 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1937 "user" check.
1938
b4b1a226
SM
19392021-03-26 Simon Marchi <simon.marchi@efficios.com>
1940 Pedro Alves <pedro@palves.net>
1941
1942 * async-event.c: Include "infrun.h".
1943 (async_event_handler_marked): New.
1944 * async-event.h (async_event_handler_marked): Declare.
1945 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1946 inferior before calling target method. Don't commit-resumed if
1947 target_has_pending_events is true.
1948 * remote.c (remote_target::has_pending_events): New.
1949 * target-delegates.c: Regenerate.
1950 * target.c (target_has_pending_events): New.
1951 * target.h (target_ops::has_pending_events): New target method.
1952 (target_has_pending_events): New.
1953
1192f124
SM
19542021-03-26 Simon Marchi <simon.marchi@efficios.com>
1955 Pedro Alves <pedro@palves.net>
1956
1957 * infcmd.c (run_command_1, attach_command, detach_command)
1958 (interrupt_target_1): Use scoped_disable_commit_resumed.
1959 * infrun.c (do_target_resume): Remove
1960 target_commit_resume call.
1961 (commit_resume_all_targets): Remove.
1962 (maybe_set_commit_resumed_all_targets): New.
1963 (maybe_call_commit_resumed_all_targets): New.
1964 (enable_commit_resumed): New.
1965 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1966 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1967 (scoped_disable_commit_resumed::reset)
1968 (scoped_disable_commit_resumed::reset_and_commit)
1969 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1970 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1971 New.
1972 (proceed): Use scoped_disable_commit_resumed and
1973 maybe_call_commit_resumed_all_targets.
1974 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1975 * infrun.h (struct scoped_disable_commit_resumed): New.
1976 (maybe_call_commit_resumed_all_process_targets): New.
1977 (struct scoped_enable_commit_resumed): New.
1978 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1979 * process-stratum-target.h (class process_stratum_target):
1980 <commit_resumed_state>: New.
1981 * record-full.c (record_full_wait_1): Change commit_resumed_state
1982 around calling commit_resumed.
1983 * remote.c (class remote_target) <commit_resume>: Rename to...
1984 <commit_resumed>: ... this.
1985 (struct stop_reply): Move up.
1986 (remote_target::commit_resume): Rename to...
1987 (remote_target::commit_resumed): ... this. Check if there is any
1988 thread pending vCont resume.
1989 (remote_target::remote_stop_ns): Generate stop replies for resumed
1990 but pending vCont threads.
1991 (remote_target::wait_ns): Add gdb_assert.
1992 * target-delegates.c: Regenerate.
1993 * target.c (target_wait, target_resume): Assert that the current
1994 process_stratum target isn't in commit-resumed state.
1995 (defer_target_commit_resume): Remove.
1996 (target_commit_resume): Remove.
1997 (target_commit_resumed): New.
1998 (make_scoped_defer_target_commit_resume): Remove.
1999 (target_stop): Assert that the current process_stratum target
2000 isn't in commit-resumed state.
2001 * target.h (struct target_ops) <commit_resume>: Rename to ...
2002 <commit_resumed>: ... this.
2003 (target_commit_resume): Remove.
2004 (target_commit_resumed): New.
2005 (make_scoped_defer_target_commit_resume): Remove.
2006 * top.c (wait_sync_command_done): Use
2007 scoped_enable_commit_resumed.
2008
e5b9b39f
PA
20092021-03-26 Pedro Alves <pedro@palves.net>
2010
2011 * target.c (target_always_non_stop_p): Also check whether the
2012 target can async.
2013
bab287cd
TT
20142021-03-26 Tom Tromey <tom@tromey.com>
2015
2016 * dwarf2/read.c (dwarf2_read_debug_names)
2017 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2018 (dw2_debug_names_iterator::next, create_type_unit_group):
2019 Simplify.
2020
eff4f69d
PA
20212021-03-25 Pedro Alves <pedro@palves.net>
2022
2023 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2024 around setting the breakpoint.
2025
323fd5b9
PA
20262021-03-25 Pedro Alves <pedro@palves.net>
2027
2028 * remote.c
2029 (remote_target::check_pending_events_prevent_wildcard_vcont):
2030 Check whether the event's ptid is not null_ptid before looking up
2031 the corresponding inferior.
2032
d3cbca38
CD
20332021-03-24 Changbin Du <changbin.du@gmail.com>
2034
2035 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2036 read_code.
2037
328d42d8
SM
20382021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2039
2040 * target.h (current_top_target): Remove, make callers use the
2041 current inferior instead.
2042 * target.c (current_top_target): Remove.
2043
d777bf0d
SM
20442021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * target.h (target_shortname): Change to function declaration.
2047 (target_longname): Likewise.
2048 (target_attach_no_wait): Likewise.
2049 (target_post_attach): Likewise.
2050 (target_prepare_to_store): Likewise.
2051 (target_supports_enable_disable_tracepoint): Likewise.
2052 (target_supports_string_tracing): Likewise.
2053 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2054 (target_supports_dumpcore): Likewise.
2055 (target_dumpcore): Likewise.
2056 (target_can_run_breakpoint_commands): Likewise.
2057 (target_files_info): Likewise.
2058 (target_post_startup_inferior): Likewise.
2059 (target_insert_fork_catchpoint): Likewise.
2060 (target_remove_fork_catchpoint): Likewise.
2061 (target_insert_vfork_catchpoint): Likewise.
2062 (target_remove_vfork_catchpoint): Likewise.
2063 (target_insert_exec_catchpoint): Likewise.
2064 (target_remove_exec_catchpoint): Likewise.
2065 (target_set_syscall_catchpoint): Likewise.
2066 (target_rcmd): Likewise.
2067 (target_can_lock_scheduler): Likewise.
2068 (target_can_async_p): Likewise.
2069 (target_is_async_p): Likewise.
2070 (target_execution_direction): Likewise.
2071 (target_extra_thread_info): Likewise.
2072 (target_pid_to_exec_file): Likewise.
2073 (target_thread_architecture): Likewise.
2074 (target_find_memory_regions): Likewise.
2075 (target_make_corefile_notes): Likewise.
2076 (target_get_bookmark): Likewise.
2077 (target_goto_bookmark): Likewise.
2078 (target_stopped_by_watchpoint): Likewise.
2079 (target_stopped_by_sw_breakpoint): Likewise.
2080 (target_supports_stopped_by_sw_breakpoint): Likewise.
2081 (target_stopped_by_hw_breakpoint): Likewise.
2082 (target_supports_stopped_by_hw_breakpoint): Likewise.
2083 (target_have_steppable_watchpoint): Likewise.
2084 (target_can_use_hardware_watchpoint): Likewise.
2085 (target_region_ok_for_hw_watchpoint): Likewise.
2086 (target_can_do_single_step): Likewise.
2087 (target_insert_watchpoint): Likewise.
2088 (target_remove_watchpoint): Likewise.
2089 (target_insert_hw_breakpoint): Likewise.
2090 (target_remove_hw_breakpoint): Likewise.
2091 (target_can_accel_watchpoint_condition): Likewise.
2092 (target_can_execute_reverse): Likewise.
2093 (target_get_ada_task_ptid): Likewise.
2094 (target_filesystem_is_local): Likewise.
2095 (target_trace_init): Likewise.
2096 (target_download_tracepoint): Likewise.
2097 (target_can_download_tracepoint): Likewise.
2098 (target_download_trace_state_variable): Likewise.
2099 (target_enable_tracepoint): Likewise.
2100 (target_disable_tracepoint): Likewise.
2101 (target_trace_start): Likewise.
2102 (target_trace_set_readonly_regions): Likewise.
2103 (target_get_trace_status): Likewise.
2104 (target_get_tracepoint_status): Likewise.
2105 (target_trace_stop): Likewise.
2106 (target_trace_find): Likewise.
2107 (target_get_trace_state_variable_value): Likewise.
2108 (target_save_trace_data): Likewise.
2109 (target_upload_tracepoints): Likewise.
2110 (target_upload_trace_state_variables): Likewise.
2111 (target_get_raw_trace_data): Likewise.
2112 (target_get_min_fast_tracepoint_insn_len): Likewise.
2113 (target_set_disconnected_tracing): Likewise.
2114 (target_set_circular_trace_buffer): Likewise.
2115 (target_set_trace_buffer_size): Likewise.
2116 (target_set_trace_notes): Likewise.
2117 (target_get_tib_address): Likewise.
2118 (target_set_permissions): Likewise.
2119 (target_static_tracepoint_marker_at): Likewise.
2120 (target_static_tracepoint_markers_by_strid): Likewise.
2121 (target_traceframe_info): Likewise.
2122 (target_use_agent): Likewise.
2123 (target_can_use_agent): Likewise.
2124 (target_augmented_libraries_svr4_read): Likewise.
2125 (target_log_command): Likewise.
2126 * target.c (target_shortname): New.
2127 (target_longname): New.
2128 (target_attach_no_wait): New.
2129 (target_post_attach): New.
2130 (target_prepare_to_store): New.
2131 (target_supports_enable_disable_tracepoint): New.
2132 (target_supports_string_tracing): New.
2133 (target_supports_evaluation_of_breakpoint_conditions): New.
2134 (target_supports_dumpcore): New.
2135 (target_dumpcore): New.
2136 (target_can_run_breakpoint_commands): New.
2137 (target_files_info): New.
2138 (target_post_startup_inferior): New.
2139 (target_insert_fork_catchpoint): New.
2140 (target_remove_fork_catchpoint): New.
2141 (target_insert_vfork_catchpoint): New.
2142 (target_remove_vfork_catchpoint): New.
2143 (target_insert_exec_catchpoint): New.
2144 (target_remove_exec_catchpoint): New.
2145 (target_set_syscall_catchpoint): New.
2146 (target_rcmd): New.
2147 (target_can_lock_scheduler): New.
2148 (target_can_async_p): New.
2149 (target_is_async_p): New.
2150 (target_execution_direction): New.
2151 (target_extra_thread_info): New.
2152 (target_pid_to_exec_file): New.
2153 (target_thread_architecture): New.
2154 (target_find_memory_regions): New.
2155 (target_make_corefile_notes): New.
2156 (target_get_bookmark): New.
2157 (target_goto_bookmark): New.
2158 (target_stopped_by_watchpoint): New.
2159 (target_stopped_by_sw_breakpoint): New.
2160 (target_supports_stopped_by_sw_breakpoint): New.
2161 (target_stopped_by_hw_breakpoint): New.
2162 (target_supports_stopped_by_hw_breakpoint): New.
2163 (target_have_steppable_watchpoint): New.
2164 (target_can_use_hardware_watchpoint): New.
2165 (target_region_ok_for_hw_watchpoint): New.
2166 (target_can_do_single_step): New.
2167 (target_insert_watchpoint): New.
2168 (target_remove_watchpoint): New.
2169 (target_insert_hw_breakpoint): New.
2170 (target_remove_hw_breakpoint): New.
2171 (target_can_accel_watchpoint_condition): New.
2172 (target_can_execute_reverse): New.
2173 (target_get_ada_task_ptid): New.
2174 (target_filesystem_is_local): New.
2175 (target_trace_init): New.
2176 (target_download_tracepoint): New.
2177 (target_can_download_tracepoint): New.
2178 (target_download_trace_state_variable): New.
2179 (target_enable_tracepoint): New.
2180 (target_disable_tracepoint): New.
2181 (target_trace_start): New.
2182 (target_trace_set_readonly_regions): New.
2183 (target_get_trace_status): New.
2184 (target_get_tracepoint_status): New.
2185 (target_trace_stop): New.
2186 (target_trace_find): New.
2187 (target_get_trace_state_variable_value): New.
2188 (target_save_trace_data): New.
2189 (target_upload_tracepoints): New.
2190 (target_upload_trace_state_variables): New.
2191 (target_get_raw_trace_data): New.
2192 (target_get_min_fast_tracepoint_insn_len): New.
2193 (target_set_disconnected_tracing): New.
2194 (target_set_circular_trace_buffer): New.
2195 (target_set_trace_buffer_size): New.
2196 (target_set_trace_notes): New.
2197 (target_get_tib_address): New.
2198 (target_set_permissions): New.
2199 (target_static_tracepoint_marker_at): New.
2200 (target_static_tracepoint_markers_by_strid): New.
2201 (target_traceframe_info): New.
2202 (target_use_agent): New.
2203 (target_can_use_agent): New.
2204 (target_augmented_libraries_svr4_read): New.
2205 (target_log_command): New.
2206 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2207 * infrun.c (set_schedlock_func): Adjust.
2208 * mi/mi-main.c (exec_reverse_continue): Adjust.
2209 * reverse.c (exec_reverse_once): Adjust.
2210 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2211 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2212 * remote-sim.c (gdbsim_target::detach): Adjust.
2213 (gdbsim_target::files_info): Adjust.
2214
b64f703b
TT
22152021-03-24 Tom Tromey <tom@tromey.com>
2216
2217 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2218 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2219 (check_match, dw2_expand_symtabs_matching)
2220 (dwarf2_debug_names_index::map_matching_symbols)
2221 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2222
68f115f8
KS
22232021-03-24 Keith Seitz <keiths@redhat.com>
2224
2225 * compile/compile-cplus-types.c
2226 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2227 thinko.
2228
41c0087b
SM
22292021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2230
2231 * gdbarch.sh (gdbarch_data_registry): Make static.
2232 * gdbarch.c: Re-generate.
2233
ce192338
LM
22342021-03-24 Luis Machado <luis.machado@linaro.org>
2235
2236 * NEWS: Mention memory tagging changes.
2237
bef382e6
LM
22382021-03-24 Luis Machado <luis.machado@linaro.org>
2239
2240 * printcmd.c (decode_format): Handle the 'm' modifier.
2241 (do_examine): Display allocation tags when required/supported.
2242 (should_validate_memtags): New function.
2243 (print_command_1): Display memory tag mismatches.
2244 * valprint.c (show_memory_tag_violations): New function.
2245 (value_print_option_defs): Add new option "memory-tag-violations".
2246 (user_print_options) <memory_tag_violations>: Initialize to 1.
2247 * valprint.h (struct format_data) <print_tags>: New field.
2248 (value_print_options) <memory_tag_violations>: New field.
2249
48136e00
LM
22502021-03-24 Luis Machado <luis.machado@linaro.org>
2251
2252 * printcmd.c: Include gdbsupport/rsp-low.h.
2253 (memory_tag_list): New static global.
2254 (process_print_command_args): Factored out of
2255 print_command_1.
2256 (print_command_1): Use process_print_command_args.
2257 (show_addr_not_tagged, show_memory_tagging_unsupported)
2258 (memory_tag_command, memory_tag_print_tag_command)
2259 (memory_tag_print_logical_tag_command)
2260 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2261 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2262 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2263 functions.
2264 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2265
ffcc2a15
LM
22662021-03-24 Luis Machado <luis.machado@linaro.org>
2267
2268 * aarch64-linux-tdep.c
2269 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2270 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2271
cf44c9fa
LM
22722021-03-24 Luis Machado <luis.machado@linaro.org>
2273
2274 * aarch64-linux-tdep.c
2275 (aarch64_linux_report_signal_info): New function.
2276 (aarch64_linux_init_abi): Register
2277 aarch64_linux_report_signal_info as the report_signal_info hook.
2278 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2279 (SEGV_MTESERR): Define.
2280
b4a7d4fc
LM
22812021-03-24 Luis Machado <luis.machado@linaro.org>
2282
2283 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2284 (aarch64_linux_ltag_tests): New function.
2285 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2286
c7782e50
LM
22872021-03-24 Luis Machado <luis.machado@linaro.org>
2288
2289 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2290 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2291 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2292 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2293 functions.
2294 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2295 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2296 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2297 (aarch64_linux_get_ltag): New functions.
2298 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2299 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2300 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2301 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2302
1e735120
LM
23032021-03-24 Luis Machado <luis.machado@linaro.org>
2304
2305 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2306 bit.
2307 (struct smaps_data): New struct.
2308 (decode_vmflags): Handle the 'mt' flag.
2309 (parse_smaps_data): New function, refactored from
2310 linux_find_memory_regions_full.
2311 (linux_address_in_memtag_page): New function.
2312 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2313 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2314
93e447c6
LM
23152021-03-24 Luis Machado <luis.machado@linaro.org>
2316
2317 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2318 instead of char arrays.
2319
4601818e
LM
23202021-03-24 Luis Machado <luis.machado@linaro.org>
2321
2322 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2323 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2324 nat/aarch64-mte-linux-ptrace.h.
2325 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2326 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2327 override.
2328 <fetch_memtags>: New method override.
2329 <store_memtags>: New method override.
2330 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2331 (aarch64_linux_nat_target::fetch_memtags): New method.
2332 (aarch64_linux_nat_target::store_memtags): New method.
2333 * arch/aarch64-mte-linux.c: New file.
2334 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2335 (AARCH64_MTE_GRANULE_SIZE): Define.
2336 (aarch64_memtag_type): New enum.
2337 (aarch64_mte_get_tag_granules): New prototype.
2338 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2339 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2340 * nat/aarch64-mte-linux-ptrace.c: New file.
2341 * nat/aarch64-mte-linux-ptrace.h: New file.
2342
3f3bd8b8
LM
23432021-03-24 Luis Machado <luis.machado@linaro.org>
2344
2345 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2346 * nat/aarch64-mte-linux-ptrace.h: New file.
2347
5e984dbf
LM
23482021-03-24 Luis Machado <luis.machado@linaro.org>
2349
2350 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2351 (store_mteregs_to_thread): New function.
2352 (aarch64_linux_nat_target::fetch_registers): Update to call
2353 fetch_mteregs_from_thread.
2354 (aarch64_linux_nat_target::store_registers): Update to call
2355 store_mteregs_to_thread.
2356 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2357 (aarch64_cannot_store_register): Handle MTE registers.
2358 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2359 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2360 <has_mte>: New method.
2361 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2362
c1bd443b
LM
23632021-03-24 Luis Machado <luis.machado@linaro.org>
2364
2365 * aarch64-linux-nat.c
2366 (aarch64_linux_nat_target::read_description): Take MTE flag into
2367 account.
2368 Slight refactor to hwcap flag checking.
2369 * aarch64-linux-tdep.c
2370 (aarch64_linux_core_read_description): Likewise.
2371 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2372 MTE.
2373 (aarch64_read_description): Add mte_p parameter and update to use it.
2374 Update the documentation.
2375 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2376 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2377 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2378 (aarch64_create_target_description): Add mte_p parameter and update
2379 the code to use it.
2380 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2381 parameter.
2382 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2383 * features/aarch64-mte.c: New file, generated.
2384 * features/aarch64-mte.xml: New file.
2385
04245125
LM
23862021-03-24 Luis Machado <luis.machado@linaro.org>
2387
2388 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2389 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2390 * aarch64-linux-tdep.c: Likewise
2391 * arch/aarch64-mte-linux.h: New file.
2392
754487e2
LM
23932021-03-24 Luis Machado <luis.machado@linaro.org>
2394
2395 * remote: Include gdbsupport/selftest.h.
2396 (test_memory_tagging_functions): New function.
2397 (_initialize_remote): Register test_memory_tagging_functions.
2398
2c2e7f87
LM
23992021-03-24 Luis Machado <luis.machado@linaro.org>
2400
2401 * remote.c (PACKET_memory_tagging_feature): New enum.
2402 (remote_memory_tagging_p): New function.
2403 (remote_protocol_features): New "memory-tagging" entry.
2404 (remote_target::remote_query_supported): Handle memory tagging
2405 support.
2406 (remote_target::supports_memory_tagging): Implement.
2407 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2408 (create_store_memtags_request): New functions.
2409 (remote_target::fetch_memtags): Implement.
2410 (remote_target::store_memtags): Implement.
2411 (_initialize_remote): Add new "memory-tagging-feature"
2412 config command.
2413
c193949e
LM
24142021-03-24 Luis Machado <luis.machado@linaro.org>
2415
2416 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2417 (default_memtag_matches_p, default_set_memtags)
2418 (default_get_memtag): New functions.
2419 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2420 (default_memtag_matches_p, default_set_memtags)
2421 (default_get_memtag): New prototypes.
2422 * gdbarch.c: Regenerate.
2423 * gdbarch.h: Regenerate.
2424 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2425 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2426 (enum memtag_type): New enum.
2427
dbe692af
LM
24282021-03-24 Luis Machado <luis.machado@linaro.org>
2429
2430 * remote.c (remote_target) <supports_memory_tagging>: New method
2431 override.
2432 <fetch_memtags>: New method override.
2433 <store_memtags>: New method override.
2434 (remote_target::supports_memory_tagging): New method.
2435 (remote_target::fetch_memtags): New method.
2436 (remote_target::store_memtags): New method.
2437 * target-delegates.c: Regenerate.
2438 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2439 method.
2440 <fetch_memtags>: New virtual method.
2441 <store_memtags>: New virtual method.
2442 (target_supports_memory_tagging): Define.
2443 (target_fetch_memtags): Define.
2444 (target_store_memtags): Define.
2445 * target-debug.h (target_debug_print_size_t)
2446 (target_debug_print_const_gdb_byte_vector_r)
2447 (target_debug_print_gdb_byte_vector_r): New functions.
2448
66848ebc
SM
24492021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2450
2451 * target.h (target_longname): Remove.
2452
c8fbd44a
SM
24532021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2454
2455 * target.h (target_is_pushed): Remove, update callers to use
2456 inferior::target_is_pushed instead.
2457 * target.c (target_is_pushed): Remove.
2458
02980c56
SM
24592021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2460
2461 * target.h (push_target): Remove, update callers to use
2462 inferior::push_target.
2463 * target.c (push_target): Remove.
2464 * inferior.h (class inferior) <push_target>: New overload.
2465
fadf6add
SM
24662021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2467
2468 * target.h (unpush_target): Remove, update all callers
2469 to use `inferior::unpush_target` instead.
2470 (struct target_unpusher) <operator()>: Just declare.
2471 * target.c (unpush_target): Remove.
2472 (target_unpusher::operator()): New.
2473
702cf3f5
AB
24742021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2477 error.
2478 (process_full_comp_unit): Validate the top-level tag before
2479 processing the first DIE.
2480 (read_func_scope): Ensure we have a valid builder.
2481
46fec642
AB
24822021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * objc-lang.c (objc_demangle): Renamed to
2485 objc_language::demangle_symbol, and moved later in the file.
2486 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2487 member function.
2488 (objc_language::demangle_symbol): Defined outside of class
2489 declaration. The definition is the old objc_demangle with NULL
2490 changed to nullptr, and if conditions relating to nullptr pointers
2491 or null character checks made explicit.
2492 * objc-lang.h (objc_demangle): Delete declaration.
2493
08dedd66
ML
24942021-03-22 Martin Liska <mliska@suse.cz>
2495
2496 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2497 (_initialize_arm_tdep): Likewise.
2498
eb36a3eb
TT
24992021-03-20 Tom Tromey <tom@tromey.com>
2500
2501 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2502 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2503 * psymtab.h (make_psymbol_functions): Don't declare.
2504 * psymtab.c (make_psymbol_functions): Remove.
2505 (maintenance_print_psymbols): Update.
2506 * psympriv.h (struct psymbol_functions): Add no-argument
2507 constructor.
2508 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2509 <partial_symtabs>: Remove.
2510 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2511 * elfread.c (read_partial_symbols): Update.
2512 (elf_symfile_read): Remove check for existing partial symbols.
2513 Don't clear "qf".
2514 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2515 partial symbols.
2516 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2517 partial symtabs.
2518 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2519 parameter.
2520 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2521 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2522
e1114590
TT
25232021-03-20 Tom Tromey <tom@tromey.com>
2524
2525 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2526 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2527 * symfile-debug.c (objfile::has_partial_symbols)
2528 (objfile::find_last_source_symtab)
2529 (objfile::forget_cached_source_info)
2530 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2531 (objfile::print_stats, objfile::dump)
2532 (objfile::expand_symtabs_for_function)
2533 (objfile::expand_all_symtabs)
2534 (objfile::expand_symtabs_with_fullname)
2535 (objfile::map_matching_symbols)
2536 (objfile::expand_symtabs_matching)
2537 (objfile::find_pc_sect_compunit_symtab)
2538 (objfile::map_symbol_filenames)
2539 (objfile::find_compunit_symtab_by_address)
2540 (objfile::lookup_global_symbol_language)
2541 (objfile::require_partial_symbols): Update.
2542 * psymtab.c (maintenance_print_psymbols)
2543 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2544 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2545 * objfiles.c (objfile_relocate1): Update.
2546 * elfread.c (elf_symfile_read): Update.
2547
de909f0b
TT
25482021-03-20 Tom Tromey <tom@tromey.com>
2549
2550 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2551
caf8c1e5
TT
25522021-03-20 Tom Tromey <tom@tromey.com>
2553
2554 * psymtab.c (psymbol_functions::count_psyms): Rename.
2555 (psymbol_functions::print_stats): Update.
2556 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2557 method.
2558
3aa31ce7
TT
25592021-03-20 Tom Tromey <tom@tromey.com>
2560
2561 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2562 (psymbol_functions::find_pc_sect_psymtab): Rename.
2563 (psymbol_functions::find_pc_sect_compunit_symtab)
2564 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2565 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2566 Declare new method.
2567 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2568
7b249e47
TT
25692021-03-20 Tom Tromey <tom@tromey.com>
2570
2571 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2572 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2573 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2574 parameter.
2575 (add_psymbol_to_bcache): Remove.
2576 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2577 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2578 Likewise.
2579 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2580 <add_psymbol>: Likewise.
2581 (standard_psymtab, legacy_psymtab): Likewise.
2582 * mdebugread.c (parse_partial_symbols): Update.
2583 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2584 (handle_psymbol_enumerators): Update.
2585 (new_psymtab): Add partial_symtabs parameter.
2586 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2587 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2588 parameter.
2589 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2590 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2591 Update.
2592 * dbxread.c (read_dbx_symtab): Update.
2593 (start_psymtab): Add partial_symtabs parameter.
2594 (dbx_end_psymtab): Update.
2595 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2596 (ctf_psymtab): Add partial_symtabs parameter.
2597 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2598 Update.
2599 (scan_partial_symbols): Add partial_symtabs parameter.
2600 (scan_partial_symbols, elfctf_build_psymtabs)
2601 (ctf_psymtab_add_enums): Update.
2602
d1eef86d
TT
26032021-03-20 Tom Tromey <tom@tromey.com>
2604
2605 * symfile.c (read_symbols): Use objfile method.
2606 * symfile-debug.c (objfile::require_partial_symbols): New method.
2607 * psymtab.h (require_partial_symbols): Don't declare.
2608 * psymtab.c (require_partial_symbols): Use objfile method. Now
2609 static.
2610 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2611 (psymbol_functions::lookup_symbol)
2612 (psymbol_functions::lookup_global_symbol_language)
2613 (psymbol_functions::find_last_source_symtab)
2614 (psymbol_functions::forget_cached_source_info)
2615 (psymbol_functions::print_stats)
2616 (psymbol_functions::expand_symtabs_for_function)
2617 (psymbol_functions::expand_all_symtabs)
2618 (psymbol_functions::expand_symtabs_with_fullname)
2619 (psymbol_functions::map_symbol_filenames)
2620 (psymbol_functions::map_matching_symbols)
2621 (psymbol_functions::expand_symtabs_matching)
2622 (psymbol_functions::find_compunit_symtab_by_address)
2623 (maintenance_print_psymbols, maintenance_info_psymtabs)
2624 (maintenance_check_psymtabs): Update.
2625 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2626 new method.
2627
eb00e468
TT
26282021-03-20 Tom Tromey <tom@tromey.com>
2629
2630 * xcoffread.c (xcoff_sym_fns): Update.
2631 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2632 * symfile-debug.c (objfile::has_partial_symbols): Use
2633 can_lazily_read_symbols.
2634 (debug_sym_read_psymbols): Remove.
2635 (debug_sym_fns, install_symfile_debug_logging): Update.
2636 * quick-symbol.h (struct quick_symbol_functions)
2637 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2638 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2639 * mipsread.c (ecoff_sym_fns): Update.
2640 * machoread.c (macho_sym_fns): Update.
2641 * elfread.c (struct lazy_dwarf_reader): New.
2642 (elf_symfile_read): Update.
2643 (read_psyms): Now a method of lazy_dwarf_reader.
2644 (elf_sym_fns): Update.
2645 (elf_sym_fns_lazy_psyms): Remove.
2646 * dbxread.c (aout_sym_fns): Update.
2647 * coffread.c (coff_sym_fns): Update.
2648
b29b98cf
TT
26492021-03-20 Tom Tromey <tom@tromey.com>
2650
2651 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2652 (reread_symbols): Move reset_psymtabs call later.
2653 * objfiles.c (objfile::objfile): Don't initialize
2654 partial_symtabs.
2655
17d66340
TT
26562021-03-20 Tom Tromey <tom@tromey.com>
2657
2658 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2659 set_partial_symtabs.
2660 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2661 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2662 parameter.
2663 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2664 parameter.
2665 (psymbol_functions::find_pc_sect_compunit_symtab)
2666 (psymbol_functions::print_stats, psymbol_functions::dump)
2667 (psymbol_functions::has_symbols): Update.
2668 (make_psymbol_functions, dump_psymtab_addrmap): Add
2669 partial_symtabs parameter.
2670 (maintenance_print_psymbols): Update.
2671 (psymbol_functions::expand_symtabs_matching): Update.
2672 * psympriv.h (struct psymbol_functions): Add constructor.
2673 <m_partial_symtabs>: New member.
2674 <set_partial_symtabs>: New method.
2675
84685904
TT
26762021-03-20 Tom Tromey <tom@tromey.com>
2677
2678 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2679 parameter.
2680 (process_psymtab_comp_unit_reader)
2681 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2682 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2683 Reference psymtabs via per_bfd.
2684
79cc99f6
TT
26852021-03-20 Tom Tromey <tom@tromey.com>
2686
2687 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2688 Remove.
2689 (add_address_entry): Remove objfile parameter.
2690 (add_address_entry_worker): Update.
2691 (write_address_map): Replace objfile parameter with per_bfd.
2692 (write_gdbindex, write_psymtabs_to_index): Update.
2693
4829711b
TT
26942021-03-20 Tom Tromey <tom@tromey.com>
2695
2696 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2697 print_bcache parameter.
2698 * symfile-debug.c (objfile::print_stats): Add print_bcache
2699 parameter.
2700 * quick-symbol.h (struct quick_symbol_functions)
2701 <print_stats>: Add print_bcache parameter.
2702 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2703 code to psymtab.c.
2704 (print_objfile_statistics): Move psymtab code to psymtab.c.
2705 * psymtab.c (count_psyms): Move from symmisc.c.
2706 (psymbol_functions::print_stats): Print partial symbol and bcache
2707 statistics. Add print_bcache parameter.
2708 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2709 (struct objfile) <print_stats>: Add print_bcache parameter.
2710 * maint.c (maintenance_print_statistics): Update.
2711
efd7398e
TT
27122021-03-20 Tom Tromey <tom@tromey.com>
2713
2714 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2715 member.
2716 * dwarf2/read.c (create_addrmap_from_index)
2717 (create_addrmap_from_aranges): Set per_bfd addrmap.
2718 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2719 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2720 per_bfd addrmap.
2721 (dwarf2_read_debug_names): Don't set partial_symtabs.
2722 (dwarf2_initialize_objfile): Likewise.
2723
51962708
TT
27242021-03-20 Tom Tromey <tom@tromey.com>
2725
2726 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2727 earlier.
2728
484b1090
TT
27292021-03-20 Tom Tromey <tom@tromey.com>
2730
2731 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2732 (~psymtab_discarder, keep): Update.
2733 <m_objfile>: Remove.
2734 <m_partial_symtabs>: New member.
2735 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2736
7e9c0476
TT
27372021-03-20 Tom Tromey <tom@tromey.com>
2738
2739 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2740 (xcoff_end_psymtab): Update.
2741 (scan_xcoff_symtab): Add partial_symtabs parameter.
2742 (xcoff_initial_scan): Update.
2743 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2744 * mdebugread.c (mdebug_build_psymtabs): Update.
2745 (parse_partial_symbols): Add partial_symtabs parameter.
2746 * dbxread.c (dbx_symfile_read): Update.
2747 (read_dbx_symtab): Add partial_symtabs parameter.
2748 (read_dbx_symtab): Update.
2749 (dbx_end_psymtab): Add partial_symtabs parameter.
2750
75336a5a
TT
27512021-03-20 Tom Tromey <tom@tromey.com>
2752
2753 * quick-symbol.h (struct quick_symbol_functions)
2754 <relocated>: New method.
2755 * psymtab.h (struct psymbol_functions) <relocated>: New
2756 method.
2757 <fill_psymbol_map>: Declare method.
2758 <m_psymbol_map>: New member.
2759 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2760 (psymbol_functions::find_compunit_symtab_by_address): Update.
2761 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2762 (struct objfile) <psymbol_map>: Remove.
2763 * objfiles.c (objfile_relocate1): Update.
2764
39298a5d
TT
27652021-03-20 Tom Tromey <tom@tromey.com>
2766
2767 * psympriv.h (struct psymbol_functions): New.
2768 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2769 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2770 (objfile::lookup_global_symbol_language): Update.
2771 * quick-symbol.h (struct quick_symbol_functions): Convert function
2772 pointers to methods. Add virtual destructor.
2773 (quick_symbol_functions_up): New typedef.
2774 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2775 (dwarf2_debug_names_functions): Don't declare.
2776 (make_psymbol_functions): Declare.
2777 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2778 (psymbol_functions::find_pc_sect_compunit_symtab)
2779 (psymbol_functions::lookup_symbol)
2780 (psymbol_functions::lookup_global_symbol_language)
2781 (psymbol_functions::find_last_source_symtab)
2782 (psymbol_functions::forget_cached_source_info)
2783 (psymbol_functions::print_stats, psymbol_functions::dump)
2784 (psymbol_functions::expand_symtabs_for_function)
2785 (psymbol_functions::expand_all_symtabs)
2786 (psymbol_functions::expand_symtabs_with_fullname)
2787 (psymbol_functions::map_symbol_filenames)
2788 (psymbol_functions::map_matching_symbols)
2789 (psymbol_functions::expand_symtabs_matching)
2790 (psymbol_functions::has_symbols)
2791 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2792 (psym_functions): Remove.
2793 (make_psymbol_functions): New function.
2794 * objfiles.h (struct objfile) <qf>: Change type.
2795 * elfread.c (elf_symfile_read): Update.
2796 * dwarf2/read.c (struct dwarf2_base_index_functions)
2797 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2798 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2799 (dwarf2_base_index_functions::find_last_source_symtab)
2800 (dwarf2_base_index_functions::forget_cached_source_info)
2801 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2802 (dwarf2_gdb_index::lookup_symbol)
2803 (dwarf2_base_index_functions::print_stats)
2804 (dwarf2_gdb_index::dump)
2805 (dwarf2_gdb_index::expand_symtabs_for_function)
2806 (dwarf2_base_index_functions::expand_all_symtabs)
2807 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2808 Rename.
2809 (dwarf2_gdb_index::map_matching_symbols): New method.
2810 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2811 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2812 (dwarf2_base_index_functions::map_symbol_filenames)
2813 (dwarf2_base_index_functions::has_symbols): Rename.
2814 (dwarf2_gdb_index_functions): Remove.
2815 (dwarf2_debug_names_index::lookup_symbol)
2816 (dwarf2_debug_names_index::dump)
2817 (dwarf2_debug_names_index::expand_symtabs_for_function)
2818 (dwarf2_debug_names_index::map_matching_symbols)
2819 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2820 (dwarf2_debug_names_functions): Remove.
2821 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2822 Declare.
2823
5c3f1e5b
TT
28242021-03-20 Tom Tromey <tom@tromey.com>
2825
2826 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2827 null.
2828 * xcoffread.c (xcoff_sym_fns): Update.
2829 * symfile.h (struct sym_fns) <qf>: Remove.
2830 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2831 * symfile-debug.c (objfile::has_partial_symbols)
2832 (objfile::find_last_source_symtab)
2833 (objfile::forget_cached_source_info)
2834 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2835 (objfile::print_stats, objfile::dump)
2836 (objfile::expand_symtabs_for_function)
2837 (objfile::expand_all_symtabs)
2838 (objfile::expand_symtabs_with_fullname)
2839 (objfile::map_matching_symbols)
2840 (objfile::expand_symtabs_matching)
2841 (objfile::find_pc_sect_compunit_symtab)
2842 (objfile::map_symbol_filenames)
2843 (objfile::find_compunit_symtab_by_address)
2844 (objfile::lookup_global_symbol_language, debug_sym_fns)
2845 (install_symfile_debug_logging): Update.
2846 * objfiles.h (struct objfile) <qf>: New member.
2847 * mipsread.c (ecoff_sym_fns): Update.
2848 * machoread.c (macho_sym_fns): Update.
2849 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2850 Don't declare.
2851 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2852 * dbxread.c (aout_sym_fns): Update.
2853 * coffread.c (coff_sym_fns): Update.
2854
9b99dcc8
TT
28552021-03-20 Tom Tromey <tom@tromey.com>
2856
2857 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2858 (expand_symtabs_file_matcher_ftype)
2859 (expand_symtabs_symbol_matcher_ftype)
2860 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2861 Move to quick-symbol.h.
2862 * quick-symbol.h: New file.
2863
4d080b46
TT
28642021-03-20 Tom Tromey <tom@tromey.com>
2865
2866 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2867 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2868 (basic_lookup_transparent_type_quick)
2869 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2870 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2871 Update.
2872 * symmisc.c (print_objfile_statistics, dump_objfile)
2873 (maintenance_expand_symtabs): Update.
2874 * symfile.c (symbol_file_add_with_addrs)
2875 (expand_symtabs_matching, map_symbol_filenames): Update.
2876 * symfile-debug.c (objfile::has_partial_symbols)
2877 (objfile::find_last_source_symtab)
2878 (objfile::forget_cached_source_info)
2879 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2880 (objfile::print_stats, objfile::dump)
2881 (objfile::expand_symtabs_for_function)
2882 (objfile::expand_all_symtabs)
2883 (objfile::expand_symtabs_with_fullname)
2884 (objfile::map_matching_symbols)
2885 (objfile::expand_symtabs_matching)
2886 (objfile::find_pc_sect_compunit_symtab)
2887 (objfile::map_symbol_filenames)
2888 (objfile::find_compunit_symtab_by_address)
2889 (objfile::lookup_global_symbol_language): New methods.
2890 (debug_sym_quick_functions): Remove.
2891 (debug_sym_fns, install_symfile_debug_logging): Update.
2892 * source.c (forget_cached_source_info_for_objfile)
2893 (select_source_symtab): Update.
2894 * objfiles.h (struct objfile): Add methods corresponding to
2895 quick_symbol_functions.
2896 * objfiles.c (objfile::has_partial_symbols): Move to
2897 symfile-debug.c.
2898 * linespec.c (iterate_over_all_matching_symtabs): Update.
2899 * cp-support.c (add_symbol_overload_list_qualified): Update.
2900 * ada-lang.c (add_nonlocal_symbols): Update.
2901
fae2120b
TT
29022021-03-20 Tom Tromey <tom@tromey.com>
2903
2904 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2905 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2906 bool.
2907 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2908 * psymtab.c (psym_has_symbols): Return bool.
2909 * objfiles.c (objfile::has_partial_symbols): Return bool.
2910 * dwarf2/read.c (dw2_has_symbols): Return bool.
2911
a8ad4f3c
TT
29122021-03-20 Tom Tromey <tom@tromey.com>
2913
2914 * symfile.c (read_symbols): Update.
2915 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2916 (objfile_has_partial_symbols): Don't declare.
2917 * objfiles.c (objfile::has_partial_symbols): Rename from
2918 objfile_has_partial_symbols.
2919 (objfile_has_symbols, have_partial_symbols): Update.
2920 * elfread.c (elf_symfile_read): Update.
2921 * dwarf2/read.c (dwarf2_has_info): Update.
2922 * coffread.c (coff_symfile_read): Update.
2923
70182375
TT
29242021-03-20 Tom Tromey <tom@tromey.com>
2925
2926 * coffread.c: Include dwarf2/public.h.
2927 * dwarf2/frame.c: Include dwarf2/public.h.
2928 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2929 * dwarf2/public.h: New file.
2930 * dwarf2/read.c: Include dwarf2/public.h.
2931 * elfread.c: Include dwarf2/public.h.
2932 * machoread.c: Include dwarf2/public.h.
2933 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2934 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2935 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2936 * xcoffread.c: Include dwarf2/public.h.
2937
18038e63
TT
29382021-03-20 Tom Tromey <tom@tromey.com>
2939
2940 * symfile.h (enum dwarf2_section_enum)
2941 (dwarf2_get_section_info): Move to dwarf2/read.h.
2942 * dwarf2/read.h (enum dwarf2_section_enum)
2943 (dwarf2_get_section_info): Move from symfile.h.
2944
219f56b4
PA
29452021-03-19 Pedro Alves <pedro@palves.net>
2946
2947 * thread.c (any_thread_of_inferior): Check if there's a selected
2948 thread before calling inferior_thread().
2949
15310fd4
TT
29502021-03-18 Tom Tromey <tromey@adacore.com>
2951
2952 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2953 get_DW_UT_name.
2954 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2955 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2956
763b8efd
AB
29572021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 * python/py-param.c (get_set_value): Update header comment.
2960
f058c521
SM
29612021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2962
2963 * infrun.c (check_multi_target_resumption): Remove argument to
2964 all_non_exited_inferiors.
2965
383228bc
CB
29662021-03-16 Christian Biesinger <cbiesinger@google.com>
2967
2968 * windows-nat.c (windows_init_thread_list): Add message to
2969 debug log.
2970
7807d76a
AB
29712021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2972
2973 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2974 well as PyLong_Check for Python 2.
2975
675da9a5
TT
29762021-03-15 Tom Tromey <tromey@adacore.com>
2977
2978 PR build/27579:
2979 * rust-exp.y (maker_map): Use gdb::hash_enum.
2980 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2981
4800761a
SM
29822021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2985 end of debug print.
2986
eb5dd737
SM
29872021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2988
2989 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2990 parameter, adjust caller.
2991
6813ceb0
TT
29922021-03-15 Tom Tromey <tromey@adacore.com>
2993
2994 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2995
3b5c4de0
TT
29962021-03-15 Tom Tromey <tromey@adacore.com>
2997
2998 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2999 ada_ensure_varsize_limit.
3000
c04da66c
TT
30012021-03-15 Tom Tromey <tromey@adacore.com>
3002
3003 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3004 fixed-point.
3005 * ada-exp.y (maybe_overload): New function.
3006 (ada_wrap_overload): New function.
3007 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3008 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3009 (or_else_exp, xor_exp, primary): Update.
3010
9863c3b5
TT
30112021-03-15 Tom Tromey <tromey@adacore.com>
3012
3013 PR ada/27545:
3014 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3015 call for tagged type.
3016
1ac74522
TT
30172021-03-15 Tom Tromey <tromey@adacore.com>
3018
3019 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3020 assignment.
3021
207582c0
TT
30222021-03-15 Tom Tromey <tromey@adacore.com>
3023
3024 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3025 container.
3026 (ada_assign_operation::evaluate): Update.
3027 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3028 Change return type.
3029
8d624a9d
FW
30302021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3031
3032 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3033
ba6a0ef3
AB
30342021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3035
3036 * python/python.c (gdbpy_source_objfile_script): Use
3037 make_scoped_restore to restore gdbpy_current_objfile.
3038 (gdbpy_execute_objfile_script): Likewise.
3039
7c290a04
TT
30402021-03-14 Tom Tromey <tom@tromey.com>
3041
3042 * dwarf2/read.c (read_attribute_value): Use cu_header
3043 consistently.
3044
0280fdcc
TT
30452021-03-14 Tom Tromey <tom@tromey.com>
3046
3047 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3048 (peek_die_abbrev): Use reader.abfd.
3049
a9f172c6
TT
30502021-03-14 Tom Tromey <tom@tromey.com>
3051
3052 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3053 m_header_read_in.
3054
7c32eebb
TT
30552021-03-13 Tom Tromey <tom@tromey.com>
3056
3057 * dwarf2/read.c (struct partial_die_info): Update.
3058 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3059 (load_partial_dies, partial_die_info::partial_die_info): Update.
3060 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3061
27012aba
TT
30622021-03-13 Tom Tromey <tom@tromey.com>
3063
3064 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3065
fece451c
CB
30662021-03-12 Christian Biesinger <cbiesinger@google.com>
3067
3068 PR threads/27239
3069 * cp-support.c: Use scoped_segv_handler_restore.
3070 * event-top.c (thread_local_segv_handler): Made static.
3071 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3072 New function.
3073 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3074 function.
3075 * event-top.h (class scoped_segv_handler_restore): New class.
3076 (thread_local_segv_handler): Removed.
3077
7056f312
TT
30782021-03-10 Tom Tromey <tromey@adacore.com>
3079
3080 * parser-defs.h (parser_state): Change completion to bool.
3081 <parse_completion>: Likewise.
3082 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3083 (ada_resolve_variable, ada_resolve_function): Update.
3084 * ada-lang.c (ada_find_operator_symbol): Change
3085 parse_completion to bool.
3086 (ada_resolve_funcall, ada_resolve_variable)
3087 (ada_resolve_function): Likewise.
3088
ccdc02ed
TT
30892021-03-09 Tom Tromey <tromey@adacore.com>
3090
3091 * eval.c (operation::evaluate_funcall): Use function formal
3092 parameter types when evaluating.
3093
fbb1aace
AB
30942021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3097 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3098 and owner to m_owner.
3099
611aa09d
FW
31002021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3101
3102 * f-exp.h (eval_op_f_loc): Declare.
3103 (expr::fortran_loc_operation): New typedef.
3104 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3105 UNOP_INTRINSIC.
3106 (f77_keywords): Add LOC keyword.
3107 * f-lang.c (eval_op_f_loc): New function.
3108 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3109
eef32f59
AB
31102021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * f-exp.h (eval_op_f_array_shape): Declare.
3113 (fortran_array_shape_operation): New type.
3114 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3115 UNOP_INTRINSIC.
3116 (f77_keywords): Add "shape" keyword.
3117 * f-lang.c (fortran_array_shape): New function.
3118 (eval_op_f_array_shape): New function.
3119 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3120
7ba155b3
AB
31212021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3122
3123 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3124 of this function.
3125 (expr::fortran_array_size_1arg): New type.
3126 (expr::fortran_array_size_2arg): Likewise.
3127 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3128 UNOP_OR_BINOP_INTRINSIC.
3129 (f77_keywords): Add "size" keyword.
3130 * f-lang.c (fortran_array_size): New function.
3131 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3132 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3133
e14816a8
AB
31342021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3135
3136 * f-exp.h (eval_op_f_rank): Declare.
3137 (expr::fortran_rank_operation): New typedef.
3138 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3139 UNOP_INTRINSIC.
3140 (f77_keywords): Add "rank" keyword.
3141 * f-lang.c (eval_op_f_rank): New function.
3142 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3143
3dd93bf8
TT
31442021-03-08 Tom Tromey <tom@tromey.com>
3145
3146 * printcmd.c (set_command): Remove null check.
3147 * value.c (init_if_undefined_command): Remove null check.
3148
9c79936b
TT
31492021-03-08 Tom Tromey <tom@tromey.com>
3150
3151 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3152 Update.
3153 * p-exp.y (variable): Update.
3154 * go-exp.y (variable): Update.
3155 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3156 Remove overload for objfile.
3157 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3158 parameter.
3159 (check_objfile): Likewise.
3160 (dump_for_expression): Likewise. Remove overload for objfile.
3161 (class var_msym_value_operation): Use bound_minimal_symbol.
3162 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3163 parameter.
3164 (var_msym_value_operation::evaluate_for_address)
3165 (var_msym_value_operation::evaluate_for_sizeof)
3166 (var_msym_value_operation::evaluate_for_cast): Update.
3167 * d-exp.y (PrimaryExpression): Update.
3168 * c-exp.y (variable): Update.
3169 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3170 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3171 Update.
3172 * ada-exp.y (write_var_or_type): Update.
3173
40d07d07
TT
31742021-03-08 Tom Tromey <tom@tromey.com>
3175
3176 * parser-defs.h (exp_uses_objfile): Return bool.
3177 * parse.c (exp_uses_objfile): Return bool.
3178
0b2b0b82
TT
31792021-03-08 Tom Tromey <tom@tromey.com>
3180
3181 * value.h (eval_skip_value): Don't declare.
3182 * opencl-lang.c (eval_opencl_assign): Update.
3183 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3184 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3185 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3186 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3187 * expop.h (typeof_operation::evaluate)
3188 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3189 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3190 (cxx_cast_operation::evaluate): Update.
3191 * eval.c (eval_skip_value): Remove.
3192 (eval_op_scope, eval_op_var_entry_value)
3193 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3194 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3195 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3196 (eval_op_binary, eval_op_subscript, eval_op_equal)
3197 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3198 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3199 (eval_op_complement, eval_op_lognot, eval_op_ind)
3200 (eval_op_memval, eval_op_preinc, eval_op_predec)
3201 (eval_op_postinc, eval_op_postdec, eval_op_type)
3202 (eval_binop_assign_modify, eval_op_objc_msgcall)
3203 (eval_multi_subscript, logical_and_operation::evaluate)
3204 (logical_or_operation::evaluate, array_operation::evaluate)
3205 (operation::evaluate_for_cast)
3206 (var_msym_value_operation::evaluate_for_cast)
3207 (var_value_operation::evaluate_for_cast): Update.
3208 * c-lang.c (c_string_operation::evaluate): Update.
3209 * c-exp.h (objc_nsstring_operation::evaluate)
3210 (objc_selector_operation::evaluate): Update.
3211 * ada-lang.c (ada_assign_operation::evaluate)
3212 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3213 (ada_atr_size): Update.
3214
96db551d
TT
32152021-03-08 Tom Tromey <tom@tromey.com>
3216
3217 * eval.c: Merge "namespace" scopes.
3218
ce284361
TT
32192021-03-08 Tom Tromey <tom@tromey.com>
3220
3221 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3222 <release>: Inline.
3223 * parse.c (expr_builder::expr_builder, expr_builder::release):
3224 Remove.
3225
b9d06571
TT
32262021-03-08 Tom Tromey <tom@tromey.com>
3227
3228 * parse.c (expression::expression, expression::~expression):
3229 Remove.
3230 * expression.h (struct expression): Inline constructor. Remove
3231 destructor.
3232
79ab486e
TT
32332021-03-08 Tom Tromey <tom@tromey.com>
3234
3235 * std-operator.def (BINOP_END): Remove.
3236 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3237 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3238 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3239 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3240 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3241 BINOP_END.
3242
48fa6f23
TT
32432021-03-08 Tom Tromey <tom@tromey.com>
3244
3245 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3246
43f542e3
TT
32472021-03-08 Tom Tromey <tom@tromey.com>
3248
3249 * std-operator.def (OP_EXTENDED0): Remove.
3250
5d9ba982
TT
32512021-03-08 Tom Tromey <tom@tromey.com>
3252
3253 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3254 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3255 Remove.
3256
d357570d
TT
32572021-03-08 Tom Tromey <tom@tromey.com>
3258
3259 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3260 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3261
0922dc84
TT
32622021-03-08 Tom Tromey <tom@tromey.com>
3263
3264 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3265 * ada-lang.c (ada_binop_minmax): Update.
3266 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3267 Use BINOP_MIN and BINOP_MAX.
3268
1eaebe02
TT
32692021-03-08 Tom Tromey <tom@tromey.com>
3270
3271 * value.h (evaluate_subexp_with_coercion): Don't declare.
3272 * parse.c (exp_descriptor_standard): Remove.
3273 (expr_builder::expr_builder, expr_builder::release): Update.
3274 (expression::expression): Remove size_t parameter.
3275 (expression::~expression): Simplify.
3276 (expression::resize): Remove.
3277 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3278 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3279 (write_exp_elt_longcst, write_exp_elt_floatcst)
3280 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3281 (write_exp_string_vector, write_exp_bitstring): Remove.
3282 * p-lang.h (class pascal_language) <opcode_print_table,
3283 op_print_tab>: Remove.
3284 * p-lang.c (pascal_language::op_print_tab): Remove.
3285 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3286 Remove.
3287 * objc-lang.c (objc_op_print_tab): Remove.
3288 (class objc_language) <opcode_print_table>: Remove.
3289 * m2-lang.h (class m2_language) <opcode_print_table,
3290 op_print_tab>: Remove.
3291 * m2-lang.c (m2_language::op_print_tab): Remove.
3292 * language.h (struct language_defn) <post_parser, expression_ops,
3293 opcode_print_table>: Remove.
3294 * language.c (language_defn::expression_ops)
3295 (auto_or_unknown_language::opcode_print_table): Remove.
3296 * go-lang.h (class go_language) <opcode_print_table,
3297 op_print_tab>: Remove.
3298 * go-lang.c (go_language::op_print_tab): Remove.
3299 * f-lang.h (class f_language) <opcode_print_table>: Remove
3300 <op_print_tab>: Remove.
3301 * f-lang.c (f_language::op_print_tab): Remove.
3302 * expression.h (union exp_element): Remove.
3303 (struct expression): Remove size_t parameter from constructor.
3304 <resize>: Remove.
3305 <first_opcode>: Update.
3306 <nelts, elts>: Remove.
3307 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3308 (evaluate_subexp_standard, print_expression, op_string)
3309 (dump_raw_expression): Don't declare.
3310 * expprint.c (print_expression, print_subexp)
3311 (print_subexp_funcall, print_subexp_standard, op_string)
3312 (dump_raw_expression, dump_subexp, dump_subexp_body)
3313 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3314 (dump_prefix_expression): Update.
3315 * eval.c (evaluate_subexp): Remove.
3316 (evaluate_expression, evaluate_type): Update.
3317 (evaluate_subexpression_type): Remove.
3318 (fetch_subexp_value): Remove "pc" parameter. Update.
3319 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3320 (evaluate_subexp_standard, evaluate_subexp_for_address)
3321 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3322 (evaluate_subexp_for_cast): Remove.
3323 (parse_and_eval_type): Update.
3324 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3325 * d-lang.c (d_op_print_tab): Remove.
3326 (class d_language) <opcode_print_table>: Remove.
3327 * c-lang.h (c_op_print_tab): Don't declare.
3328 * c-lang.c (c_op_print_tab): Remove.
3329 (class c_language, class cplus_language, class asm_language, class
3330 minimal_language) <opcode_print_table>: Remove.
3331 * breakpoint.c (update_watchpoint, watchpoint_check)
3332 (watchpoint_exp_is_const, watch_command_1): Update.
3333 * ax-gdb.h (union exp_element): Don't declare.
3334 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3335 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3336 (gen_expr_binop_rest): Remove.
3337 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3338 * ada-lang.c (ada_op_print_tab): Remove.
3339 (class ada_language) <post_parser, opcode_print_table>: Remove.
3340
f2a98603
TT
33412021-03-08 Tom Tromey <tom@tromey.com>
3342
3343 * go-lang.c (go_language::expression_ops): Don't declare.
3344 * go-lang.h (class go_language) <expression_ops>: Remove.
3345 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3346 Remove.
3347 (class opencl_language) <expression_ops>: Remove.
3348 * d-lang.c (class d_language) <expression_ops>: Remove.
3349 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3350 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3351 (class c_language, class cplus_language, class asm_language)
3352 (class minimal_language) <expression_ops>: Remove.
3353
d3c54a1c
TT
33542021-03-08 Tom Tromey <tom@tromey.com>
3355
3356 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3357 (evaluate_subexp_type, assign_aggregate)
3358 (aggregate_assign_positional, aggregate_assign_from_choices)
3359 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3360 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3361 (ada_operator_check, ada_forward_operator_length)
3362 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3363 Remove.
3364 (post_parser): Update.
3365 (class ada_language) <expresssion_ops>: Remove.
3366
5871f0a3
TT
33672021-03-08 Tom Tromey <tom@tromey.com>
3368
3369 * m2-lang.h (class m2_language) <expresssion_ops,
3370 exp_descriptor_modula2>: Remove.
3371 * m2-lang.c (evaluate_subexp_modula2)
3372 (m2_language::exp_descriptor_modula2): Remove.
3373
a99be8c1
TT
33742021-03-08 Tom Tromey <tom@tromey.com>
3375
3376 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3377 <exp_descriptor_tab>: Remove.
3378 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3379 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3380 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3381 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3382 Remove.
3383
aa1da9ed
TT
33842021-03-08 Tom Tromey <tom@tromey.com>
3385
3386 * rust-lang.h (class rust_language) <expression_ops,
3387 exp_descriptor_tab>: Remove.
3388 * rust-lang.c (rust_evaluate_funcall): Remove.
3389 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3390 EVAL_SKIP.
3391 (rust_evaluate_subexp): Remove.
3392 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3393 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3394 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3395
08a057e6
TT
33962021-03-08 Tom Tromey <tom@tromey.com>
3397
3398 * ada-exp.y: Create operations.
3399 (empty_stoken): Remove.
3400 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3401 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3402 (components): New global.
3403 (push_component, choice_component, pop_component, pop_components):
3404 New functions.
3405 (associations): New global
3406 (push_association, pop_association, pop_associations): New
3407 functions.
3408 (ada_parse): Update.
3409 (write_var_from_sym, write_int): Create operations.
3410 (write_exp_op_with_string): Remove.
3411 (write_object_renaming, write_selectors, write_ambiguous_var)
3412 (write_var_or_type, write_name_assoc): Create operations.
3413 * ada-lang.h (ada_index_type): Declare.
3414 * ada-lang.c (ada_index_type): No longer static.
3415
d308ba78
TT
34162021-03-08 Tom Tromey <tom@tromey.com>
3417
3418 * f-exp.y: Create operations.
3419 (f_language::parser): Update.
3420
f1b8ceef
TT
34212021-03-08 Tom Tromey <tom@tromey.com>
3422
3423 * m2-exp.y: Create operations.
3424 (m2_language::parser): Update.
3425
3163898e
TT
34262021-03-08 Tom Tromey <tom@tromey.com>
3427
3428 * p-exp.y: Create operations.
3429 (pascal_language::parser): Update.
3430
9412fdcc
TT
34312021-03-08 Tom Tromey <tom@tromey.com>
3432
3433 * d-exp.y: Create operations.
3434 (d_parse): Update.
3435
bb4e0574
TT
34362021-03-08 Tom Tromey <tom@tromey.com>
3437
3438 * go-exp.y: Create operations.
3439 (go_language::parser): Update.
3440
d182f279
TT
34412021-03-08 Tom Tromey <tom@tromey.com>
3442
3443 * objc-lang.c (end_msglist): Create operations.
3444 * c-exp.y: Change parser to create operations.
3445 (write_destructor_name): Remove.
3446 (c_parse): Update.
3447
c1299a23
TT
34482021-03-08 Tom Tromey <tom@tromey.com>
3449
3450 * rust-exp.y: Create operations.
3451 (rust_parser::convert_params_to_expression): Change return type.
3452 (binop_maker_ftype): New typedef.
3453 (maker_map): New global.
3454 (rust_parser::convert_ast_to_expression): Change return type.
3455 (rust_language::parser): Update.
3456 (_initialize_rust_exp): Initialize maker_map.
3457
4c5e7a93
TT
34582021-03-08 Tom Tromey <tom@tromey.com>
3459
3460 * stap-probe.c (binop_maker_ftype): New typedef.
3461 (stap_maker_map): New global.
3462 (stap_make_binop): New function.
3463 (stap_parse_register_operand): Return operation_up.
3464 (stap_parse_single_operand, stap_parse_argument_conditionally)
3465 (stap_parse_argument_1): Likewise.
3466 (stap_parse_argument): Create operations.
3467 (stap_probe::parse_arguments): Update.
3468 (_initialize_stap_probe): Initialize stap_maker_map.
3469 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3470 type.
3471 * i386-tdep.h (i386_stap_parse_special_token): Change return
3472 type.
3473 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3474 (i386_stap_parse_special_token_three_arg_disp)
3475 (i386_stap_parse_special_token): Change return type.
3476 * gdbarch.sh (stap_parse_special_token): Change return type.
3477 * gdbarch.c: Rebuild.
3478 * gdbarch.h: Rebuild.
3479 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3480 type.
3481 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3482 return type.
3483
482ddd69
TT
34842021-03-08 Tom Tromey <tom@tromey.com>
3485
3486 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3487 * gdbarch.h: Rebuild.
3488 * gdbarch.c: Rebuild.
3489 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3490 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3491 return type.
3492 (amd64_dtrace_parse_probe_argument): Update.
3493
8227d9e2
TT
34942021-03-08 Tom Tromey <tom@tromey.com>
3495
3496 * parser-defs.h (struct parser_state) <push, push_new,
3497 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3498 wrap2>: New methods.
3499 <m_operations>: New member.
3500 * parse.c (parser_state::push_c_string)
3501 (parser_state::push_symbol, parser_state::push_dollar): New
3502 methods.
3503
4933522d
TT
35042021-03-08 Tom Tromey <tom@tromey.com>
3505
3506 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3507 New member.
3508 (struct parser_state) <mark_struct_expression>: New method.
3509 * parse.c (parser_state::mark_struct_expression): Update assert.
3510 (parser_state::mark_struct_expression): New method.
3511 (parser_state::mark_completion_tag): Update assert.
3512 (parse_expression_for_completion): Handle expout_last_op.
3513
413403fc
TT
35142021-03-08 Tom Tromey <tom@tromey.com>
3515
3516 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3517 now in superclass.
3518 * value.h (fetch_subexp_value): Add "op" parameter.
3519 * value.c (init_if_undefined_command): Update.
3520 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3521 * stap-probe.c (stap_probe::compile_to_ax): Update.
3522 * printcmd.c (set_command): Update.
3523 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3524 Update.
3525 * parser-defs.h (struct expr_builder) <set_operation>: New
3526 method.
3527 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3528 * expression.h (struct expression) <first_opcode>: Update.
3529 <op>: New member.
3530 * expprint.c (dump_raw_expression, dump_prefix_expression):
3531 Update.
3532 * expop.h (class var_value_operation) <get_symbol>: New method.
3533 (class register_operation) <get_name>: New method.
3534 (class equal_operation): No longer a typedef, now a subclass.
3535 (class unop_memval_operation) <get_type>: New method.
3536 (class assign_operation) <get_lhs>: New method.
3537 (class unop_cast_operation) <get_type>: New method.
3538 * eval.c (evaluate_expression, evaluate_type)
3539 (evaluate_subexpression_type): Update.
3540 (fetch_subexp_value): Add "op" parameter.
3541 (parse_and_eval_type): Update.
3542 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3543 * breakpoint.c (update_watchpoint, watchpoint_check)
3544 (watchpoint_exp_is_const, watch_command_1): Update.
3545 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3546 Update.
3547
b0f9164c
TT
35482021-03-08 Tom Tromey <tom@tromey.com>
3549
3550 * ada-lang.c (ada_value_binop): Do not use op_string.
3551
a88c4354
TT
35522021-03-08 Tom Tromey <tom@tromey.com>
3553
3554 * expprint.c (dump_for_expression): New overload.
3555 * expop.h (check_objfile, dump_for_expression): Declare new
3556 overloads.
3557 * ada-lang.c (check_objfile): New overload.
3558 (assign_component, ada_aggregate_component::uses_objfile)
3559 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3560 (ada_aggregate_component::assign_aggregate)
3561 (ada_positional_component::uses_objfile)
3562 (ada_positional_component::dump, ada_positional_component::assign)
3563 (ada_discrete_range_association::uses_objfile)
3564 (ada_discrete_range_association::dump)
3565 (ada_discrete_range_association::assign)
3566 (ada_name_association::uses_objfile, ada_name_association::dump)
3567 (ada_name_association::assign)
3568 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3569 (ada_choices_component::assign)
3570 (ada_others_component::uses_objfile, ada_others_component::dump)
3571 (ada_others_component::assign, ada_assign_operation::evaluate):
3572 New methods.
3573 * ada-exp.h (ada_string_operation) <get_name>: New method.
3574 (class ada_assign_operation): New.
3575 (class ada_component): New.
3576 (ada_component_up): New typedef.
3577 (class ada_aggregate_operation, class ada_aggregate_component)
3578 (class ada_positional_component, class ada_others_component)
3579 (class ada_association): New.
3580 (ada_association_up): New typedef.
3581 (class ada_choices_component)
3582 (class ada_discrete_range_association)
3583 (class ada_name_association): New.
3584
d8a4ed8a
TT
35852021-03-08 Tom Tromey <tom@tromey.com>
3586
3587 * ada-lang.c (ada_var_value_operation::resolve)
3588 (ada_funcall_operation::resolve)
3589 (ada_ternop_slice_operation::resolve): New methods.
3590 * ada-exp.h (struct ada_resolvable): New.
3591 (class ada_var_value_operation): Derive from ada_resolvable.
3592 <get_block, resolve>: New methods.
3593 (class ada_funcall_operation): Derive from ada_resolvable.
3594 <resolve>: New method.
3595 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3596 <resolve>: New method.
3597
efe3af2f
TT
35982021-03-08 Tom Tromey <tom@tromey.com>
3599
3600 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3601 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3602 method.
3603 (class ada_funcall_operation): New.
3604
ebc06ad8
TT
36052021-03-08 Tom Tromey <tom@tromey.com>
3606
3607 * ada-lang.c (ada_structop_operation::evaluate): New method.
3608 * ada-exp.h (class ada_structop_operation): New.
3609
e8c33fa1
TT
36102021-03-08 Tom Tromey <tom@tromey.com>
3611
3612 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3613 * ada-exp.h (class ada_unop_ind_operation): New.
3614
065ec826
TT
36152021-03-08 Tom Tromey <tom@tromey.com>
3616
3617 * ada-lang.c (ada_binop_exp): No longer static.
3618 * ada-exp.h (ada_binop_exp_operation): New typedef.
3619
9e99f48f
TT
36202021-03-08 Tom Tromey <tom@tromey.com>
3621
3622 * ada-lang.c (ada_val_atr): No longer static.
3623 (ada_atr_val_operation::evaluate): New method.
3624 * ada-exp.h (class ada_atr_val_operation): New.
3625
7631cf6c
TT
36262021-03-08 Tom Tromey <tom@tromey.com>
3627
3628 * ada-lang.c (ada_pos_atr): No longer static.
3629 * ada-exp.h (ada_pos_operation): New typedef.
3630
7992accc
TT
36312021-03-08 Tom Tromey <tom@tromey.com>
3632
3633 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3634 parameters.
3635 (ada_evaluate_subexp): Use it.
3636
6ad3b8bf
TT
36372021-03-08 Tom Tromey <tom@tromey.com>
3638
3639 * ada-lang.c (ada_binop_minmax): No longer static.
3640 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3641 New typedefs.
3642
3f4a0053
TT
36432021-03-08 Tom Tromey <tom@tromey.com>
3644
3645 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3646 New method.
3647 * ada-exp.h (class ada_var_msym_value_operation): New.
3648
99a3b1e7
TT
36492021-03-08 Tom Tromey <tom@tromey.com>
3650
3651 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3652 (ada_var_value_operation::evaluate): New methods.
3653 * ada-exp.h (class ada_var_value_operation): New.
3654
60fa02ca
TT
36552021-03-08 Tom Tromey <tom@tromey.com>
3656
3657 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3658 * ada-exp.h (class ada_unop_atr_operation): New.
3659
82c3886e
TT
36602021-03-08 Tom Tromey <tom@tromey.com>
3661
3662 * ada-lang.c (ada_binop_in_bounds): No longer static.
3663 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3664
1b1ebfab
TT
36652021-03-08 Tom Tromey <tom@tromey.com>
3666
3667 * ada-lang.c (ada_ternop_slice): No longer static.
3668 * ada-exp.h (class ada_ternop_slice_operation): New.
3669
039e4b76
TT
36702021-03-08 Tom Tromey <tom@tromey.com>
3671
3672 * ada-exp.h (ada_bitwise_operation): New template class.
3673 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3674 (ada_bitwise_xor_operation): New typedefs.
3675
6e8fb7b7
TT
36762021-03-08 Tom Tromey <tom@tromey.com>
3677
3678 * ada-lang.c (ada_equal_binop): No longer static.
3679 * ada-exp.h (class ada_binop_equal_operation): New.
3680
d9e7db06
TT
36812021-03-08 Tom Tromey <tom@tromey.com>
3682
3683 * ada-lang.c (ada_mult_binop): No longer static.
3684 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3685 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3686
73796c73
TT
36872021-03-08 Tom Tromey <tom@tromey.com>
3688
3689 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3690 * ada-exp.h (class ada_binop_addsub_operation): New.
3691
cd9a3148
TT
36922021-03-08 Tom Tromey <tom@tromey.com>
3693
3694 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3695 (ada_resolve_variable): Declare.
3696 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3697 (ada_resolve_variable): New functions.
3698 (resolve_subexp): Update.
3699
cf12b17f
TT
37002021-03-08 Tom Tromey <tom@tromey.com>
3701
3702 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3703 method.
3704 * c-exp.h (class opencl_ternop_cond_operation): New.
3705
944fd3b8
TT
37062021-03-08 Tom Tromey <tom@tromey.com>
3707
3708 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3709 method.
3710 * c-exp.h (class opencl_logical_binop_operation): New.
3711
33b79214
TT
37122021-03-08 Tom Tromey <tom@tromey.com>
3713
3714 * opencl-lang.c (opencl_structop_operation::evaluate): New
3715 method.
3716 * c-exp.h (class opencl_structop_operation): New.
3717
2492ba36
TT
37182021-03-08 Tom Tromey <tom@tromey.com>
3719
3720 * opencl-lang.c (opencl_logical_not): No longer static. Change
3721 parameters.
3722 (evaluate_subexp_opencl): Update.
3723 * c-exp.h (opencl_notequal_operation): New typedef.
3724
a88c3c8d
TT
37252021-03-08 Tom Tromey <tom@tromey.com>
3726
3727 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3728 static. Change parameters.
3729 (eval_opencl_assign): No longer static. Add "op" parameter.
3730 (evaluate_subexp_opencl): Update.
3731 * c-exp.h (opencl_binop_operation): New template class.
3732 (opencl_assign_operation, opencl_equal_operation)
3733 (opencl_notequal_operation, opencl_less_operation)
3734 (opencl_gtr_operation, opencl_geq_operation)
3735 (opencl_leq_operation): New typedefs.
3736
e9677704
TT
37372021-03-08 Tom Tromey <tom@tromey.com>
3738
3739 * opencl-lang.c (opencl_value_cast): No longer static.
3740 * c-exp.h (opencl_cast_type_operation): New typedef.
3741
f403a4e4
TT
37422021-03-08 Tom Tromey <tom@tromey.com>
3743
3744 * f-exp.h (eval_op_f_allocated): Declare.
3745 (fortran_allocated_operation): New typedef.
3746 * f-lang.c (eval_op_f_allocated): No longer static.
3747
eb4c9271
TT
37482021-03-08 Tom Tromey <tom@tromey.com>
3749
3750 * f-lang.c (eval_op_f_associated): New functions.
3751 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3752 typedefs.
3753
58a76c72
TT
37542021-03-08 Tom Tromey <tom@tromey.com>
3755
3756 * f-lang.c (fortran_bound_1arg::evaluate)
3757 (fortran_bound_2arg::evaluate): New methods.
3758 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3759 New.
3760
2f98abe1
TT
37612021-03-08 Tom Tromey <tom@tromey.com>
3762
3763 * expop.h (class unop_addr_operation) <get_expression>: New
3764 method.
3765 * f-lang.c (fortran_undetermined::value_subarray)
3766 (fortran_undetermined::evaluate): New methods.
3767 (fortran_prepare_argument): New overload.
3768 * f-exp.h (class fortran_range_operation)
3769 (class fortran_undetermined): New classes.
3770
638fd74a
TT
37712021-03-08 Tom Tromey <tom@tromey.com>
3772
3773 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3774 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3775 method.
3776
a00b7254
TT
37772021-03-08 Tom Tromey <tom@tromey.com>
3778
3779 * expression.h (class operation) <evaluate_funcall>: New methods.
3780 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3781 (class var_value_operation) <evaluate_funcall>: New method.
3782 (class structop_base_operation) <evaluate_funcall>: New method.
3783 (class var_msym_value_operation) <evaluate_funcall>: New method.
3784 (class structop_member_base): New class.
3785 (class structop_member_operation): Derive from
3786 structop_member_base.
3787 (class structop_mptr_operation): Derive from
3788 structop_member_base.
3789 (class funcall_operation): New class.
3790 * eval.c (operation::evaluate_funcall)
3791 (var_value_operation::evaluate_funcall)
3792 (scope_operation::evaluate_funcall)
3793 (structop_member_base::evaluate_funcall)
3794 (structop_base_operation::evaluate_funcall): New methods.
3795
1c02eb30
TT
37962021-03-08 Tom Tromey <tom@tromey.com>
3797
3798 * expop.h (class array_operation): New.
3799 * eval.c (array_operation::evaluate_struct_tuple)
3800 (array_operation::evaluate): New methods.
3801
e4479080
TT
38022021-03-08 Tom Tromey <tom@tromey.com>
3803
3804 * expop.h (class adl_func_operation): New.
3805 * eval.c (adl_func_operation::evaluate): New method.
3806
95d49dfb
TT
38072021-03-08 Tom Tromey <tom@tromey.com>
3808
3809 * ada-lang.c (ada_unop_in_range): No longer static.
3810 * ada-exp.h (class ada_unop_range_operation): New.
3811
7c15d377
TT
38122021-03-08 Tom Tromey <tom@tromey.com>
3813
3814 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3815 No longer static.
3816 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3817 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3818
5019124b
TT
38192021-03-08 Tom Tromey <tom@tromey.com>
3820
3821 * expop.h (class logical_and_operation)
3822 (class logical_or_operation): New.
3823 * eval.c (logical_and_operation::evaluate)
3824 (logical_or_operation::evaluate): New methods.
3825 * ax-gdb.c (logical_and_operation::do_generate_ax)
3826 (logical_or_operation::do_generate_ax): New methods.
3827
2bc9b40c
TT
38282021-03-08 Tom Tromey <tom@tromey.com>
3829
3830 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3831 static.
3832 * m2-exp.h: New file.
3833
5947d337
TT
38342021-03-08 Tom Tromey <tom@tromey.com>
3835
3836 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3837 * rust-exp.h (class rust_aggregate_operation): New.
3838
e4407a20
TT
38392021-03-08 Tom Tromey <tom@tromey.com>
3840
3841 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3842 No longer static.
3843 * rust-exp.h (class rust_struct_anon): New.
3844 (class rust_structop): New.
3845
9db6b6dd
TT
38462021-03-08 Tom Tromey <tom@tromey.com>
3847
3848 * rust-lang.c (rust_range): No longer static.
3849 * rust-exp.h (class rust_range_operation): New.
3850
6ce1ad67
TT
38512021-03-08 Tom Tromey <tom@tromey.com>
3852
3853 * rust-lang.c (rust_subscript): No longer static.
3854 * rust-exp.h (class rust_subscript_operation): New.
3855
11dd3dce
TT
38562021-03-08 Tom Tromey <tom@tromey.com>
3857
3858 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3859 parameter.
3860 (rust_evaluate_subexp): Update.
3861 * rust-exp.h (class rust_unop_ind_operation): New.
3862
6fab4359
TT
38632021-03-08 Tom Tromey <tom@tromey.com>
3864
3865 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3866 longer static. Add "opcode" parameter.
3867 (rust_evaluate_subexp): Update.
3868 * rust-exp.h: New file.
3869
9dcd3e29
TT
38702021-03-08 Tom Tromey <tom@tromey.com>
3871
3872 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3873 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3874 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3875 (evaluate_subexp_f): Update.
3876 * f-exp.h: New file.
3877
fc715eb2
TT
38782021-03-08 Tom Tromey <tom@tromey.com>
3879
3880 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3881 * ada-exp.h (class ada_ternop_range_operation): New.
3882
cc6bd32e
TT
38832021-03-08 Tom Tromey <tom@tromey.com>
3884
3885 * ada-lang.c (ada_qual_operation::evaluate): New method.
3886 * ada-exp.h (class ada_qual_operation): New.
3887
42fecb61
TT
38882021-03-08 Tom Tromey <tom@tromey.com>
3889
3890 * ada-lang.c (ada_string_operation::evaluate): New method.
3891 * ada-exp.h (class ada_string_operation): New.
3892
03070ee9
TT
38932021-03-08 Tom Tromey <tom@tromey.com>
3894
3895 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3896 * ada-exp.h: New file.
3897
821e72d7
TT
38982021-03-08 Tom Tromey <tom@tromey.com>
3899
3900 * expop.h (class multi_subscript_operation): New.
3901 * eval.c (multi_subscript_operation::evaluate): New method.
3902
085734dd
TT
39032021-03-08 Tom Tromey <tom@tromey.com>
3904
3905 * eval.c (objc_msgcall_operation::evaluate): New method.
3906 * c-exp.h (class objc_msgcall_operation): New.
3907
e82a5afc
TT
39082021-03-08 Tom Tromey <tom@tromey.com>
3909
3910 * expop.h (class var_value_operation): New.
3911 * eval.c (var_value_operation::evaluate)
3912 (var_value_operation::evaluate_for_address)
3913 (var_value_operation::evaluate_with_coercion)
3914 (var_value_operation::evaluate_for_sizeof)
3915 (var_value_operation::evaluate_for_cast): New methods.
3916 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3917
d9ad79d8
TT
39182021-03-08 Tom Tromey <tom@tromey.com>
3919
3920 * expop.h (cxx_cast_ftype): New typedef.
3921 (cxx_cast_operation): New template.
3922 (dynamic_cast_operation, reinterpret_cast_operation): New
3923 typedefs.
3924
292382f4
TT
39252021-03-08 Tom Tromey <tom@tromey.com>
3926
3927 * expop.h (class unop_cast_type_operation): New.
3928 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3929 method.
3930
165a813a
TT
39312021-03-08 Tom Tromey <tom@tromey.com>
3932
3933 * expop.h (class unop_cast_operation): New.
3934 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3935
e5946e16
TT
39362021-03-08 Tom Tromey <tom@tromey.com>
3937
3938 * expop.h (class assign_modify_operation): New.
3939 * eval.c (eval_binop_assign_modify): No longer static.
3940 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3941
40786782
TT
39422021-03-08 Tom Tromey <tom@tromey.com>
3943
3944 * expop.h (class assign_operation): New.
3945 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3946
44b675c8
TT
39472021-03-08 Tom Tromey <tom@tromey.com>
3948
3949 * expop.h (class type_instance_operation): New.
3950 * eval.c (type_instance_operation::evaluate): New method.
3951
f6b42326
TT
39522021-03-08 Tom Tromey <tom@tromey.com>
3953
3954 * expop.h (class op_this_operation): New.
3955 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3956
cbc18219
TT
39572021-03-08 Tom Tromey <tom@tromey.com>
3958
3959 * expop.h (class unop_memval_operation)
3960 (class unop_memval_type_operation): New.
3961 * eval.c (eval_op_memval): No longer static.
3962 (unop_memval_operation::evaluate_for_address)
3963 (unop_memval_type_operation::evaluate_for_address)
3964 (unop_memval_operation::evaluate_for_sizeof)
3965 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3966 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3967 (unop_memval_type_operation::do_generate_ax): New methods.
3968
ae4bb61e
TT
39692021-03-08 Tom Tromey <tom@tromey.com>
3970
3971 * expop.h (class unop_alignof_operation): New.
3972 * eval.c (eval_op_alignof): No longer static.
3973
85d23bda
TT
39742021-03-08 Tom Tromey <tom@tromey.com>
3975
3976 * expop.h (class unop_sizeof_operation): New.
3977 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3978
14aff815
TT
39792021-03-08 Tom Tromey <tom@tromey.com>
3980
3981 * expop.h (class unop_addr_operation): New.
3982 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3983
929f3aa7
TT
39842021-03-08 Tom Tromey <tom@tromey.com>
3985
3986 * expop.h (class typeid_operation): New.
3987
0af8829e
TT
39882021-03-08 Tom Tromey <tom@tromey.com>
3989
3990 * expop.h (class decltype_operation): New.
3991
4efc574c
TT
39922021-03-08 Tom Tromey <tom@tromey.com>
3993
3994 * expop.h (class typeof_operation): New.
3995
5b5f5140
TT
39962021-03-08 Tom Tromey <tom@tromey.com>
3997
3998 * expop.h (class type_operation): New.
3999 * eval.c (eval_op_type): No longer static.
4000
876469ff
TT
40012021-03-08 Tom Tromey <tom@tromey.com>
4002
4003 * expop.h (class unop_ind_base_operation)
4004 (class unop_ind_operation): New.
4005 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4006 (unop_ind_base_operation::evaluate_for_address)
4007 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4008 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4009
6d89e296
TT
40102021-03-08 Tom Tromey <tom@tromey.com>
4011
4012 * expop.h (unop_incr_operation): New template.
4013 (preinc_operation, predec_operation, postinc_operation)
4014 (postdec_operation): New typedefs.
4015 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4016 (eval_op_postdec): No longer static.
4017
9307d17b
TT
40182021-03-08 Tom Tromey <tom@tromey.com>
4019
4020 * expop.h (unary_ftype): New typedef.
4021 (unop_operation, usual_ax_binop_operation): New templates.
4022 (unary_plus_operation, unary_neg_operation)
4023 (unary_complement_operation, unary_logical_not_operation): New
4024 typedefs.
4025 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4026 (eval_op_lognot): No longer static.
4027 * ax-gdb.c (gen_expr_unop): New function.
4028
ae64ba58
TT
40292021-03-08 Tom Tromey <tom@tromey.com>
4030
4031 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4032
d4eff4c1
TT
40332021-03-08 Tom Tromey <tom@tromey.com>
4034
4035 * expop.h (class repeat_operation): New.
4036 * eval.c (eval_op_repeat): No longer static. Remove "op"
4037 parameter.
4038 (evaluate_subexp_standard): Update.
4039 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4040
46916f2b
TT
40412021-03-08 Tom Tromey <tom@tromey.com>
4042
4043 * expop.h (class comparison_operation): New.
4044 (equal_operation, notequal_operation, less_operation)
4045 (gtr_operation, geq_operation, leq_operation): New typedefs.
4046 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4047 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4048
224d6424
TT
40492021-03-08 Tom Tromey <tom@tromey.com>
4050
4051 * expop.h (class subscript_operation): New.
4052 * eval.c (eval_op_subscript): No longer static.
4053
373907ff
TT
40542021-03-08 Tom Tromey <tom@tromey.com>
4055
4056 * expop.h (class binop_operation, class usual_ax_binop_operation):
4057 New.
4058 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4059 (div_operation, rem_operation, lsh_operation, rsh_operation)
4060 (bitwise_and_operation, bitwise_ior_operation)
4061 (bitwise_xor_operation): New typedefs.
4062 * eval.c (eval_op_binary): No longer static.
4063
5133d78b
TT
40642021-03-08 Tom Tromey <tom@tromey.com>
4065
4066 * expop.h (class sub_operation): New.
4067 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4068 (evaluate_subexp_standard): Update.
4069
a94323b6
TT
40702021-03-08 Tom Tromey <tom@tromey.com>
4071
4072 * expop.h (class add_operation): New.
4073 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4074 (evaluate_subexp_standard): Update.
4075
e51e26a0
TT
40762021-03-08 Tom Tromey <tom@tromey.com>
4077
4078 * expop.h (class concat_operation): New.
4079 * eval.c (eval_op_concat): No longer static. Remove "op"
4080 parameter.
4081 (evaluate_subexp_standard): Update.
4082
07f724a8
TT
40832021-03-08 Tom Tromey <tom@tromey.com>
4084
4085 * expop.h (class structop_member_operation)
4086 (class structop_mptr_operation): New.
4087 * eval.c (eval_op_member): No longer static.
4088
ab0609be
TT
40892021-03-08 Tom Tromey <tom@tromey.com>
4090
4091 * expop.h (class structop_ptr_operation): New.
4092 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4093 parameter.
4094
808b22cf
TT
40952021-03-08 Tom Tromey <tom@tromey.com>
4096
4097 * expop.h (class structop_base_operation)
4098 (class structop_operation): New.
4099 * eval.c (eval_op_structop_struct): No longer static.
4100
8cfd3e95
TT
41012021-03-08 Tom Tromey <tom@tromey.com>
4102
4103 * expop.h (class complex_operation): New.
4104
09db3700
TT
41052021-03-08 Tom Tromey <tom@tromey.com>
4106
4107 * eval.c (eval_op_objc_selector): No longer static.
4108 * c-exp.h (class objc_selector_operation): New.
4109
06dc61b9
TT
41102021-03-08 Tom Tromey <tom@tromey.com>
4111
4112 * eval.c: Include c-exp.h.
4113 * c-exp.h (class objc_nsstring_operation): New.
4114
72d0a711
TT
41152021-03-08 Tom Tromey <tom@tromey.com>
4116
4117 * c-lang.c (c_string_operation::evaluate): New method.
4118 * c-exp.h: New file.
4119
9186293f
TT
41202021-03-08 Tom Tromey <tom@tromey.com>
4121
4122 * expop.h (class ternop_cond_operation): New.
4123 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4124
1594e0bb
TT
41252021-03-08 Tom Tromey <tom@tromey.com>
4126
4127 * expop.h (class ternop_slice_operation): New.
4128 * eval.c (eval_op_ternop): No longer static.
4129
b50db09f
TT
41302021-03-08 Tom Tromey <tom@tromey.com>
4131
4132 * expop.h (class string_operation): New.
4133 * eval.c (eval_op_string): No longer static.
4134
e6e01e16
TT
41352021-03-08 Tom Tromey <tom@tromey.com>
4136
4137 * expop.h (class internalvar_operation): New.
4138 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4139
e6985c5e
TT
41402021-03-08 Tom Tromey <tom@tromey.com>
4141
4142 * expop.h (class bool_operation): New.
4143
55bdbff8
TT
41442021-03-08 Tom Tromey <tom@tromey.com>
4145
4146 * expop.h (class register_operation): New.
4147 * eval.c (eval_op_register): No longer static.
4148 * ax-gdb.c (register_operation::do_generate_ax): New method.
4149
247d935b
TT
41502021-03-08 Tom Tromey <tom@tromey.com>
4151
4152 * expop.h (class last_operation): New.
4153
17679395
TT
41542021-03-08 Tom Tromey <tom@tromey.com>
4155
4156 * expop.h (class func_static_var_operation): New.
4157 * eval.c (eval_op_func_static_var): No longer static.
4158
b5cc3923
TT
41592021-03-08 Tom Tromey <tom@tromey.com>
4160
4161 * expop.h (class var_entry_value_operation): New.
4162 * eval.c (eval_op_var_entry_value): No longer static.
4163
0c8effa3
TT
41642021-03-08 Tom Tromey <tom@tromey.com>
4165
4166 * expression.h (class operation) <set_outermost>: New method.
4167 * expop.h (class var_msym_value_operation): New.
4168 * eval.c (eval_op_var_msym_value): No longer static.
4169 (var_msym_value_operation::evaluate_for_address)
4170 (var_msym_value_operation::evaluate_for_sizeof)
4171 (var_msym_value_operation::evaluate_for_cast): New methods.
4172 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4173 method.
4174
d336c29e
TT
41752021-03-08 Tom Tromey <tom@tromey.com>
4176
4177 * expop.h (class long_const_operation): New.
4178 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4179
d5ab122c
TT
41802021-03-08 Tom Tromey <tom@tromey.com>
4181
4182 * expop.h (class scope_operation): New.
4183 * eval.c (eval_op_scope): No longer static.
4184 (scope_operation::evaluate_for_address): New method.
4185 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4186
cae26a0c
TT
41872021-03-08 Tom Tromey <tom@tromey.com>
4188
4189 * expprint.c (float_const_operation::dump): New method.
4190 * expop.h (float_data): New typedef.
4191 (class float_const_operation): New.
4192
75f9892d
TT
41932021-03-08 Tom Tromey <tom@tromey.com>
4194
4195 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4196 * ax-gdb.c (gen_expr_binop): New function.
4197 (gen_expr_structop): Likewise.
4198
de401988
TT
41992021-03-08 Tom Tromey <tom@tromey.com>
4200
4201 * expprint.c (expr::dump_for_expression): New functions.
4202 * expop.h (dump_for_expression): New overloads.
4203 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4204 Update.
4205
e2803273
TT
42062021-03-08 Tom Tromey <tom@tromey.com>
4207
4208 * expression.h (expr::operation): New class.
4209 (expr::make_operation): New function.
4210 (expr::operation_up): New typedef.
4211 * expop.h: New file.
4212 * eval.c (operation::evaluate_for_cast)
4213 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4214 New methods.
4215 * ax-gdb.c (operation::generate_ax): New method.
4216
e18c58f2
TT
42172021-03-08 Tom Tromey <tom@tromey.com>
4218
4219 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4220 (gen_expr_binop_rest): New overload.
4221
c0d7ed8c
TT
42222021-03-08 Tom Tromey <tom@tromey.com>
4223
4224 * eval.c (eval_multi_subscript): New function.
4225 (evaluate_subexp_standard): Use it.
4226
dd5fd283
TT
42272021-03-08 Tom Tromey <tom@tromey.com>
4228
4229 * ada-lang.c (ada_binop_exp): New function.
4230 (ada_evaluate_subexp): Use it.
4231
3848abd6
TT
42322021-03-08 Tom Tromey <tom@tromey.com>
4233
4234 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4235 parameters.
4236 (ada_evaluate_subexp): Use it.
4237
38dc70cf
TT
42382021-03-08 Tom Tromey <tom@tromey.com>
4239
4240 * ada-lang.c (ada_binop_minmax): New function.
4241 (ada_evaluate_subexp): Use it.
4242
b84564fc
TT
42432021-03-08 Tom Tromey <tom@tromey.com>
4244
4245 * ada-lang.c (ada_unop_atr): New function.
4246 (ada_evaluate_subexp): Use it.
4247
b467efaa
TT
42482021-03-08 Tom Tromey <tom@tromey.com>
4249
4250 * ada-lang.c (ada_binop_in_bounds): New function.
4251 (ada_evaluate_subexp): Use it.
4252
5ce19db8
TT
42532021-03-08 Tom Tromey <tom@tromey.com>
4254
4255 * ada-lang.c (ada_ternop_slice): New function.
4256 (ada_evaluate_subexp): Use it.
4257
214b13ac
TT
42582021-03-08 Tom Tromey <tom@tromey.com>
4259
4260 * ada-lang.c (ada_equal_binop): New function.
4261 (ada_evaluate_subexp): Use it.
4262
faa1dfd7
TT
42632021-03-08 Tom Tromey <tom@tromey.com>
4264
4265 * ada-lang.c (ada_mult_binop): New function.
4266 (ada_evaluate_subexp): Use it.
4267
d05e24e6
TT
42682021-03-08 Tom Tromey <tom@tromey.com>
4269
4270 * ada-lang.c (ada_abs): New function.
4271 (ada_evaluate_subexp): Use it.
4272
68c75735
TT
42732021-03-08 Tom Tromey <tom@tromey.com>
4274
4275 * ada-lang.c (ada_atr_size): New function.
4276 (ada_evaluate_subexp): Use it.
4277
020dbabe
TT
42782021-03-08 Tom Tromey <tom@tromey.com>
4279
4280 * ada-lang.c (ada_atr_tag): New function.
4281 (ada_evaluate_subexp): Use it.
4282
7efc87ff
TT
42832021-03-08 Tom Tromey <tom@tromey.com>
4284
4285 * ada-lang.c (ada_unop_in_range): New function.
4286 (ada_evaluate_subexp): Use it.
4287
82390ab8
TT
42882021-03-08 Tom Tromey <tom@tromey.com>
4289
4290 * ada-lang.c (ada_unop_neg): New function.
4291 (ada_evaluate_subexp): Use it.
4292
62d4bd94
TT
42932021-03-08 Tom Tromey <tom@tromey.com>
4294
4295 * ada-lang.c (eval_ternop_in_range): New function.
4296 (ada_evaluate_subexp): Use it.
4297
3634f669
TT
42982021-03-08 Tom Tromey <tom@tromey.com>
4299
4300 * opencl-lang.c (eval_opencl_assign): New function.
4301 (evaluate_subexp_opencl): Use it.
4302
5e80600e
TT
43032021-03-08 Tom Tromey <tom@tromey.com>
4304
4305 * eval.c (eval_op_objc_msgcall): New function.
4306 (evaluate_subexp_standard): Use it.
4307
fb5ba2ab
TT
43082021-03-08 Tom Tromey <tom@tromey.com>
4309
4310 * eval.c (eval_binop_assign_modify): New function.
4311 (evaluate_subexp_standard): Use it.
4312
a49881f7
TT
43132021-03-08 Tom Tromey <tom@tromey.com>
4314
4315 * m2-lang.c (eval_op_m2_subscript): New function.
4316 (evaluate_subexp_modula2): Use it.
4317
41bdced5
TT
43182021-03-08 Tom Tromey <tom@tromey.com>
4319
4320 * m2-lang.c (eval_op_m2_high): New function.
4321 (evaluate_subexp_modula2): Use it.
4322
13ea014a
TT
43232021-03-08 Tom Tromey <tom@tromey.com>
4324
4325 * eval.c (evaluate_subexp_for_address_base): New function.
4326 (evaluate_subexp_for_address): Use it.
4327 (evaluate_subexp_for_sizeof_base): New function.
4328 (evaluate_subexp_for_sizeof): Use it.
4329
1fa41fc7
TT
43302021-03-08 Tom Tromey <tom@tromey.com>
4331
4332 * rust-lang.c (eval_op_rust_structop): New function.
4333 (rust_evaluate_subexp): Use it.
4334
575cae23
TT
43352021-03-08 Tom Tromey <tom@tromey.com>
4336
4337 * rust-lang.c (eval_op_rust_struct_anon): New function.
4338 (rust_evaluate_subexp): Use it.
4339
05104233
TT
43402021-03-08 Tom Tromey <tom@tromey.com>
4341
4342 * rust-lang.c (eval_op_rust_array): New function.
4343 (rust_evaluate_subexp): Use it.
4344
6fa9831f
TT
43452021-03-08 Tom Tromey <tom@tromey.com>
4346
4347 * rust-lang.c (eval_op_rust_complement): New function.
4348 (rust_evaluate_subexp): Use it.
4349
d123f9e4
TT
43502021-03-08 Tom Tromey <tom@tromey.com>
4351
4352 * rust-lang.c (eval_op_rust_ind): New function.
4353 (rust_evaluate_subexp): Use it.
4354
984af2cb
TT
43552021-03-08 Tom Tromey <tom@tromey.com>
4356
4357 * rust-lang.c (rust_subscript): Change parameters.
4358 (rust_evaluate_subexp): Update.
4359
d148f803
TT
43602021-03-08 Tom Tromey <tom@tromey.com>
4361
4362 * rust-lang.c (rust_range): Change parameters.
4363 (rust_evaluate_subexp): Update.
4364
9cbd1c20
TT
43652021-03-08 Tom Tromey <tom@tromey.com>
4366
4367 * f-lang.c (eval_op_f_allocated): New function.
4368 (evaluate_subexp_f): Use it.
4369
3c18c49c
TT
43702021-03-08 Tom Tromey <tom@tromey.com>
4371
4372 * f-lang.c (fortran_require_array): New function.
4373 (evaluate_subexp_f): Use it.
4374
216f6fcb
TT
43752021-03-08 Tom Tromey <tom@tromey.com>
4376
4377 * f-lang.c (eval_op_f_kind): New function.
4378 (evaluate_subexp_f): Use it.
4379
00f2db6f
TT
43802021-03-08 Tom Tromey <tom@tromey.com>
4381
4382 * f-lang.c (eval_op_f_cmplx): New function.
4383 (evaluate_subexp_f): Use it.
4384
93b2b5fa
TT
43852021-03-08 Tom Tromey <tom@tromey.com>
4386
4387 * f-lang.c (eval_op_f_modulo): New function.
4388 (evaluate_subexp_f): Use it.
4389
9f1a1f3c
TT
43902021-03-08 Tom Tromey <tom@tromey.com>
4391
4392 * f-lang.c (eval_op_f_floor): New function.
4393 (evaluate_subexp_f): Use it.
4394
3dc41f3c
TT
43952021-03-08 Tom Tromey <tom@tromey.com>
4396
4397 * f-lang.c (eval_op_f_ceil): New function.
4398 (evaluate_subexp_f): Use it.
4399
e08109f2
TT
44002021-03-08 Tom Tromey <tom@tromey.com>
4401
4402 * f-lang.c (eval_op_f_mod): New function.
4403 (evaluate_subexp_f): Use it.
4404
cc05c68e
TT
44052021-03-08 Tom Tromey <tom@tromey.com>
4406
4407 * f-lang.c (eval_op_f_abs): New function.
4408 (evaluate_subexp_f): Use it.
4409
aec95807
TT
44102021-03-08 Tom Tromey <tom@tromey.com>
4411
4412 * eval.c (eval_op_type): New function.
4413 (evaluate_subexp_standard): Use it.
4414
a220ead5
TT
44152021-03-08 Tom Tromey <tom@tromey.com>
4416
4417 * eval.c (eval_op_postdec): New function.
4418 (evaluate_subexp_standard): Use it.
4419
abffe116
TT
44202021-03-08 Tom Tromey <tom@tromey.com>
4421
4422 * eval.c (eval_op_postinc): New function.
4423 (evaluate_subexp_standard): Use it.
4424
9e1361b7
TT
44252021-03-08 Tom Tromey <tom@tromey.com>
4426
4427 * eval.c (eval_op_predec): New file.
4428 (evaluate_subexp_standard): Use it.
4429
00f50884
TT
44302021-03-08 Tom Tromey <tom@tromey.com>
4431
4432 * eval.c (eval_op_preinc): New function.
4433 (evaluate_subexp_standard): Use it.
4434
3aef2a07
TT
44352021-03-08 Tom Tromey <tom@tromey.com>
4436
4437 * eval.c (eval_op_memval): New function.
4438 (evaluate_subexp_standard): Use it.
4439
acee9468
TT
44402021-03-08 Tom Tromey <tom@tromey.com>
4441
4442 * eval.c (eval_op_alignof): New function.
4443 (evaluate_subexp_standard): Use it.
4444
786f70ee
TT
44452021-03-08 Tom Tromey <tom@tromey.com>
4446
4447 * eval.c (eval_op_ind): New function.
4448 (evaluate_subexp_standard): Use it.
4449
24338fb9
TT
44502021-03-08 Tom Tromey <tom@tromey.com>
4451
4452 * eval.c (eval_op_lognot): New function.
4453 (evaluate_subexp_standard): Use it.
4454
1f09ec81
TT
44552021-03-08 Tom Tromey <tom@tromey.com>
4456
4457 * eval.c (eval_op_complement): New function.
4458 (evaluate_subexp_standard): Use it.
4459
606d105f
TT
44602021-03-08 Tom Tromey <tom@tromey.com>
4461
4462 * eval.c (eval_op_neg): New function.
4463 (evaluate_subexp_standard): Use it.
4464
39f288be
TT
44652021-03-08 Tom Tromey <tom@tromey.com>
4466
4467 * eval.c (eval_op_plus): New function.
4468 (evaluate_subexp_standard): Use it.
4469
eed70b1c
TT
44702021-03-08 Tom Tromey <tom@tromey.com>
4471
4472 * eval.c (eval_op_repeat): New function.
4473 (evaluate_subexp_standard): Use it.
4474
60cdd487
TT
44752021-03-08 Tom Tromey <tom@tromey.com>
4476
4477 * eval.c (eval_op_leq): New function.
4478 (evaluate_subexp_standard): Use it.
4479
96e3efd9
TT
44802021-03-08 Tom Tromey <tom@tromey.com>
4481
4482 * eval.c (eval_op_geq): New function.
4483 (evaluate_subexp_standard): Use it.
4484
1f78d732
TT
44852021-03-08 Tom Tromey <tom@tromey.com>
4486
4487 * eval.c (eval_op_gtr): New function.
4488 (evaluate_subexp_standard): Use it.
4489
6cad1349
TT
44902021-03-08 Tom Tromey <tom@tromey.com>
4491
4492 * eval.c (eval_op_less): New function.
4493 (evaluate_subexp_standard): Use it.
4494
1fcb3559
TT
44952021-03-08 Tom Tromey <tom@tromey.com>
4496
4497 * eval.c (eval_op_notequal): New function.
4498 (evaluate_subexp_standard): Use it.
4499
0cc96de8
TT
45002021-03-08 Tom Tromey <tom@tromey.com>
4501
4502 * eval.c (eval_op_equal): New function.
4503 (evaluate_subexp_standard): Use it.
4504
288d26bc
TT
45052021-03-08 Tom Tromey <tom@tromey.com>
4506
4507 * eval.c (eval_op_subscript): New function.
4508 (evaluate_subexp_standard): Use it.
4509
7cdcdd02
TT
45102021-03-08 Tom Tromey <tom@tromey.com>
4511
4512 * eval.c (eval_op_binary): New function.
4513 (evaluate_subexp_standard): Use it.
4514
d9790e22
TT
45152021-03-08 Tom Tromey <tom@tromey.com>
4516
4517 * eval.c (eval_op_sub): New function.
4518 (evaluate_subexp_standard): Use it.
4519
aedaf9ac
TT
45202021-03-08 Tom Tromey <tom@tromey.com>
4521
4522 * eval.c (eval_op_add): New function.
4523 (evaluate_subexp_standard): Use it.
4524
b7a96ed2
TT
45252021-03-08 Tom Tromey <tom@tromey.com>
4526
4527 * eval.c (eval_op_member): New function.
4528 (evaluate_subexp_standard): Use it.
4529
fb461aa3
TT
45302021-03-08 Tom Tromey <tom@tromey.com>
4531
4532 * eval.c (eval_op_structop_ptr): New function.
4533 (evaluate_subexp_standard): Use it.
4534
3e96c4fc
TT
45352021-03-08 Tom Tromey <tom@tromey.com>
4536
4537 * eval.c (eval_op_structop_struct): New function.
4538 (evaluate_subexp_standard): Use it.
4539
f960a617
TT
45402021-03-08 Tom Tromey <tom@tromey.com>
4541
4542 * eval.c (eval_op_ternop): New function.
4543 (evaluate_subexp_standard): Use it.
4544
5c2f201e
TT
45452021-03-08 Tom Tromey <tom@tromey.com>
4546
4547 * eval.c (eval_op_concat): New function.
4548 (evaluate_subexp_standard): Use it.
4549
f871bae1
TT
45502021-03-08 Tom Tromey <tom@tromey.com>
4551
4552 * eval.c (eval_op_objc_selector): New function.
4553 (evaluate_subexp_standard): Use it.
4554
14a1c64a
TT
45552021-03-08 Tom Tromey <tom@tromey.com>
4556
4557 * eval.c (eval_op_string): New function.
4558 (evaluate_subexp_standard): Use it.
4559
ffff730b
TT
45602021-03-08 Tom Tromey <tom@tromey.com>
4561
4562 * eval.c (eval_op_register): New function.
4563 (evaluate_subexp_standard): Use it.
4564
9b1d8af6
TT
45652021-03-08 Tom Tromey <tom@tromey.com>
4566
4567 * eval.c (eval_op_func_static_var): New function.
4568 (evaluate_subexp_standard): Use it.
4569
c0df9289
TT
45702021-03-08 Tom Tromey <tom@tromey.com>
4571
4572 * eval.c (eval_op_var_msym_value): New function.
4573 (evaluate_subexp_standard): Use it.
4574
50b98adc
TT
45752021-03-08 Tom Tromey <tom@tromey.com>
4576
4577 * eval.c (eval_op_var_entry_value): New function.
4578 (evaluate_subexp_standard): Use it.
4579
ea2d29f7
TT
45802021-03-08 Tom Tromey <tom@tromey.com>
4581
4582 * eval.c (eval_op_scope): New function.
4583 (evaluate_subexp_standard): Use it.
4584
01573d73
TT
45852021-03-06 Chernov Sergey <klen_s@mail.ru>
4586
4587 PR gdb/27528:
4588 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4589
9938d15a
TT
45902021-03-06 Tom Tromey <tom@tromey.com>
4591
4592 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4593 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4594 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4595 (locate_dwz_sections, dwz_search_other_debugdirs)
4596 (dwarf2_get_dwz_file): Move to dwz.c.
4597 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4598 read.h.
4599 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4600 (dwarf2_get_dwz_file): Move from read.c.
4601
18035655
TT
46022021-03-06 Tom Tromey <tom@tromey.com>
4603
4604 * debuginfod-support.h: Include scoped_fd.h.
4605
a7308ce0
TT
46062021-03-06 Tom Tromey <tom@tromey.com>
4607
4608 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4609 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4610 (get_abbrev_section_for_cu, read_attribute_value)
4611 (get_debug_line_section): Update.
4612 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4613
fbedd546
TT
46142021-03-06 Tom Tromey <tom@tromey.com>
4615
4616 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4617 method.
4618 * dwarf2/read.c (section_is_p): Remove.
4619 (dwarf2_per_bfd::locate_sections)
4620 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4621 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4622 (dwarf2_locate_common_dwp_sections)
4623 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4624 Update.
4625
c2a62a3d
TT
46262021-03-06 Tom Tromey <tom@tromey.com>
4627
4628 * xcoffread.c: Include sect-names.h.
4629 * symfile.h (struct dwarf2_section_names, struct
4630 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4631 * dwarf2/sect-names.h: New file, from symfile.h.
4632 * dwarf2/read.c: Include sect-names.h.
4633
4444f407
TT
46342021-03-06 Tom Tromey <tom@tromey.com>
4635
4636 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4637 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4638 (abbrev_table::read): Update.
4639 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4640 (struct abbrev_info): Reformat.
4641 <attrs>: Now an array.
4642 (struct abbrev_table) <alloc_abbrev>: Remove.
4643
dd99cf0c
WP
46442021-03-06 Weimin Pan <weimin.pan@oracle.com>
4645
4646 * ctfread.c (ctf_psymtab_add_enums): New function.
4647 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4648
844be3f2
WP
46492021-03-06 Weimin Pan <weimin.pan@oracle.com>
4650
4651 * ctfread.c (read_func_kind_type): Set up function arguments.
4652
b2668f28
AB
46532021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4654 Andrew Burgess <andrew.burgess@embecosm.com>
4655
4656 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4657 includes.
4658 (riscv_csrset): New static global.
4659 (riscv_update_csrmap): New function.
4660 (riscv_iterate_over_regset_sections): Process CSRs.
4661
d782d24b
AB
46622021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * riscv-tdep.c (riscv_feature_name_csr): Define.
4665 (riscv_feature_name_cpu): Define.
4666 (riscv_feature_name_fpu): Define.
4667 (riscv_feature_name_virtual): Define.
4668 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4669 (riscv_freg_feature): Use riscv_feature_name_fpu.
4670 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4671 (riscv_csr_feature): Use riscv_feature_name_csr.
4672 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4673
fb8f3fc0
AB
46742021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4675 Craig Blackmore <craig.blackmore@embecosm.com>
4676
4677 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4678 (ALLDEPFILES): Add riscv-none-tdep.c.
4679 * configure: Regenerate.
4680 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4681 support.
4682 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4683 * elf-none-tdep.c: New file.
4684 * elf-none-tdep.h: New file.
4685 * riscv-none-tdep.c: New file.
4686
95ce627a
AB
46872021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4688 Andrew Burgess <andrew.burgess@embecosm.com>
4689
4690 * corelow.c: Add 'xml-tdesc.h' include.
4691 (core_target::read_description): Load the target description from
4692 the core file when possible.
4693 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4694 note.
4695 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4696 (gcore_elf_make_tdesc_note): New function.
4697 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4698 * linux-tdep.c (linux_make_corefile_notes): Add target description
4699 note.
4700
f3a5df7b
AB
47012021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4702
4703 * Makefile.in (SFILES): Add gcore-elf.c.
4704 (HFILES_NO_SRCDIR): Add gcore-elf.h
4705 * configure: Regenerate.
4706 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4707 support.
4708 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4709 (struct fbsd_collect_regset_section_cb_data): Delete.
4710 (fbsd_collect_regset_section_cb): Delete.
4711 (fbsd_collect_thread_registers): Delete.
4712 (struct fbsd_corefile_thread_data): Delete.
4713 (fbsd_corefile_thread): Delete.
4714 (fbsd_make_corefile_notes): Call
4715 gcore_elf_build_thread_register_notes instead of the now deleted
4716 FreeBSD code.
4717 * gcore-elf.c: New file, the content was moved here from
4718 linux-tdep.c, functions were renamed and given minor cleanup.
4719 * gcore-elf.h: New file.
4720 * gcore.c (gcore_find_signalled_thread): Moved here from
4721 linux-tdep.c and given a new name. Minor cleanups.
4722 * gcore.h (gcore_find_signalled_thread): Declare.
4723 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4724 (struct linux_collect_regset_section_cb_data): Delete.
4725 (linux_collect_regset_section_cb): Delete.
4726 (linux_collect_thread_registers): Delete.
4727 (linux_corefile_thread): Call
4728 gcore_elf_build_thread_register_notes.
4729 (find_signalled_thread): Delete.
4730 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4731
d1e93af6
SM
47322021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4733
4734 PR gdb/27147
4735 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4736 process_stratum_target parameter,
4737 sparc_store_inferior_registers): update callers.
4738 * sparc-nat.c (sparc_fetch_inferior_registers,
4739 sparc_store_inferior_registers): Add process_stratum_target
4740 parameter. Switch current thread before calling
4741 sparc_supply_gregset / sparc_collect_rwindow.
4742 (sparc_store_inferior_registers): Likewise.
4743 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4744 (sparc32obsd_collect_uthread): Likewise.
4745 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4746 Add assertion.
4747 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4748 sparc64obsd_supply_uthread): Add assertion.
4749
1178743e
TT
47502021-03-04 Tom Tromey <tromey@adacore.com>
4751
4752 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4753 (aux_add_nonlocal_symbols): Update.
4754 (ada_add_block_symbols): Change "found_sym" to bool.
4755
1bfa81ac
TT
47562021-03-03 Tom Tromey <tromey@adacore.com>
4757
4758 * ada-lang.c (ada_resolve_function): Update comment.
4759 (is_nonfunction, add_symbols_from_enclosing_procs)
4760 (remove_extra_symbols): Likewise.
4761 (struct match_data): Add constructor, initializers.
4762 (add_nonlocal_symbols): Remove memset.
4763 (aux_add_nonlocal_symbols): Update comment.
4764 (ada_add_block_renamings, add_nonlocal_symbols)
4765 (ada_add_all_symbols): Likewise.
4766 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4767
bbcdf9ab
TT
47682021-03-02 Tom Tromey <tromey@adacore.com>
4769
4770 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4771 (cast_to_gnat_encoded_fixed_point_type): Remove.
4772 (ada_value_cast, ada_evaluate_subexp): Update.
4773 (gnat_encoded_fixed_point_type_info)
4774 (ada_is_gnat_encoded_fixed_point_type)
4775 (gnat_encoded_fixed_point_delta)
4776 (gnat_encoded_fixed_point_scaling_factor): Remove.
4777 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4778 (gnat_encoded_fixed_point_delta)
4779 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4780 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4781 (ada_print_type): Update.
4782 * ada-valprint.c (ada_value_print_num): Update.
4783 * dwarf2/read.c (ada_get_gnat_encoded_number)
4784 (ada_get_gnat_encoded_ratio): New functions.
4785 (finish_fixed_point_type): Use them. Add parameters.
4786 (GNAT_FIXED_POINT_SUFFIX): New define.
4787 (gnat_encoded_fixed_point_type_info): New function.
4788 (read_base_type): Handle gnat encodings.
4789
5f9febe0
TT
47902021-03-02 Tom Tromey <tromey@adacore.com>
4791
4792 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4793 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4794 std::string.
4795 (GROW_VECT): Remove.
4796 (grow_vect): Remove.
4797
d1183b06
TT
47982021-03-02 Tom Tromey <tromey@adacore.com>
4799
4800 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4801 * ada-lang.c (resolve_subexp): Update.
4802 (ada_resolve_function): Accept a vector.
4803 (is_nonfunction, add_defn_to_vec)
4804 (add_symbols_from_enclosing_procs): Likewise.
4805 (num_defns_collected, defns_collected): Remove.
4806 (remove_extra_symbols): Return a vector.
4807 (remove_irrelevant_renamings): Return void.
4808 (ada_add_local_symbols): Accept a vector.
4809 (struct match_data) <obstackp>: Remove.
4810 <resultp>: New member.
4811 (aux_add_nonlocal_symbols): Update.
4812 (ada_add_block_renamings, add_nonlocal_symbols)
4813 (ada_add_all_symbols): Accept a vector.
4814 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4815 vector.
4816 (ada_lookup_symbol): Update.
4817 (ada_add_block_symbols): Accept a vector.
4818 (get_var_value, iterate_over_symbols): Update.
4819 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4820 Update.
4821
886d459f
TT
48222021-03-02 Tom Tromey <tromey@adacore.com>
4823
4824 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4825
bdcccc56
TT
48262021-03-02 Tom Tromey <tromey@adacore.com>
4827
4828 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4829 auto_obstack.
4830 <root>: Initialize.
4831 (ada_pspace_data): Remove destructor.
4832 <sym_cache>: Now a unique_ptr.
4833 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4834 (ada_get_symbol_cache): Use 'new'.
4835 (ada_clear_symbol_cache): Rewrite.
4836
1228719f
TT
48372021-03-02 Tom Tromey <tromey@adacore.com>
4838
4839 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4840 is null.
4841
bb3a4efe
LS
48422021-02-27 Lancelot Six <lsix@lancelotsix.com>
4843
4844 PR gdb/27393
4845 * source.c (add_path): Skip empty dirnames.
4846
26b43ca6 48472021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4848
4849 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4850 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4851
dffdd8b5
SM
48522021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4853
4854 PR gdb/26861
4855 * target.c (target_mourn_inferior): Only compare pids in
4856 target_mourn_inferior.
4857
64d38fdd
JM
48582021-02-25 Jan Matyas <jmatyas@codasip.com>
4859
4860 PR gdb/26819
4861 * remote.c (remote_target::start_remote): Ensure the single
4862 thread, automatically added for remote targets without the
4863 concept of threading, is initially in set to the "resumed"
4864 state.
4865 * remote.c (remote_target::add_current_inferior_and_thread):
4866 Add return value - return the main thread.
4867
2450ad54
JV
48682021-02-25 Jan Vrany <jan.vrany@labware.com>
4869
4870 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4871 (mi_tsv_created): Likewise.
4872 (mi_tsv_deleted): Likewise.
4873
30c80d88
TV
48742021-02-25 Tom de Vries <tdevries@suse.de>
4875
4876 PR symtab/27354
4877 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4878 section_kind for &dwo_file->sections.info.
4879
68337b8b
AB
48802021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4881
4882 PR fortran/26155
4883 * f-lang.c (fortran_argument_convert): Delete declaration.
4884 (fortran_prepare_argument): New function.
4885 (evaluate_subexp_f): Move logic to new function
4886 fortran_prepare_argument.
4887
faeb9f13
AB
48882021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4889
4890 * f-exp.y (f77_keywords): Add 'associated'.
4891 * f-lang.c (fortran_associated): New function.
4892 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4893 (operator_length_f): Likewise.
4894 (print_unop_or_binop_subexp_f): New function.
4895 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4896 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4897 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4898 (operator_check_f): Likewise.
4899 * std-operator.def: Add FORTRAN_ASSOCIATED.
4900
170f4b23
AB
49012021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4902
4903 * f-exp.y (fortran_operators): Add ".xor.".
4904
aa659cfa
TV
49052021-02-24 Tom de Vries <tdevries@suse.de>
4906
4907 PR symtab/27336
4908 * dwarf2/attribute.c (attribute::form_is_signed): New function
4909 factored out of ...
4910 * dwarf2/attribute.h (attribute::as_signed): ... here.
4911 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4912 (attribute::form_is_signed): Declare.
4913 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4914 for DW_AT_decl_file.
4915
268c77c1
KB
49162021-02-24 Kevin Buettner <kevinb@redhat.com>
4917
4918 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4919 order for <sys/ptrace.h> and <asm/ptrace.h>.
4920
665af52e
KB
49212021-02-24 Kevin Buettner <kevinb@redhat.com>
4922
4923 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4924 <sys/ptrace.h>.
4925
dd80d750
AB
49262021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * exec.c (set_section_command): Move variable declarations into
4929 the function body, and use std::string instead of a fixed size
4930 buffer.
4931
336aa7b7
AB
49322021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * exec.c (exec_target::get_section_table): Delete member function.
4935 (section_table_read_available_memory): Use current_top_target, not
4936 just the exec_ops target.
4937 * target-delegates.c: Regenerate.
4938 * target.c (default_get_section_table): New function.
4939 * target.h (target_ops::get_section_table): Change default
4940 behaviour to call default_get_section_table.
4941 (default_get_section_table): Declare.
4942
02f7d26b
AB
49432021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4944
4945 * exec.c (exec_target::close): Call new clear_target_sections
4946 function.
4947 (program_space::add_target_sections): Update name of member
4948 variable.
4949 (program_space::add_target_sections): Update name of member
4950 variable.
4951 (program_space::remove_target_sections): Likewise.
4952 (exec_one_fork): Use new target_sections member function.
4953 (exec_target::get_section_table): Likewise.
4954 (exec_target::files_info): Likewise.
4955 (set_section_command): Likewise.
4956 (exec_set_section_address): Likewise.
4957 (exec_target::has_memory): Use new target_sections member
4958 function.
4959 * progspace.h (program_space::clear_target_sections): New member
4960 function.
4961 (program_space::target_sections): Rename member variable to
4962 m_target_sections, replace with a new member function.
4963 (program_space::m_target_sections): New member variable.
4964 * solib-dsbt.c (scan_dyntag): Use new member function.
4965 * solib-svr4.c (scan_dyntag): Likewise.
4966
19cf757a
AB
49672021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4970 return type const.
4971 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4972 (section_table_read_available_memory): Make local const.
4973 (exec_target::xfer_partial): Make local const.
4974 (print_section_info): Make parameter const.
4975 * gdb/exec.h (print_section_info): Likewise.
4976 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4977 const.
4978 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4979 Likewise.
4980 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4981 Likewise.
4982 * gdb/s390-tdep.c (s390_load): Likewise.
4983 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4984 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4985 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4986 Rename to...
4987 (target_debug_print_const_target_section_table_p): ...this.
4988 * gdb/target-delegates.c: Regenerate.
4989 * gdb/target.c (target_get_section_table): Make return type const.
4990 (target_section_by_addr): Likewise. Also make some locals const.
4991 (memory_xfer_partial_1): Make some locals const.
4992 * gdb/target.h (struct target_ops) <get_section_table>: Make
4993 return type const.
4994 (target_section_by_addr): Likewise.
4995 (target_get_section_table): Likewise.
4996
02a79309
AB
49972021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4998
4999 * NEWS: Mention new 'maint info target-sections' command.
5000 * maint.c (maintenance_info_target_sections): New function.
5001 (_initialize_maint_cmds): Register new command.
5002
895b7b4e
AB
50032021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5004
5005 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5006 (riscv_features_from_bfd): ...this. Change parameter type to
5007 'bfd*', and update as required.
5008 (riscv_find_default_target_description): Update call to
5009 riscv_features_from_bfd. Select a default xlen based on
5010 info.bfd_arch_info.
5011 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5012
bc3c0632
AB
50132021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5014
5015 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5016 dynamic types in UNOP_IND.
5017
08ac5771
SM
50182021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5019
5020 PR gdb/26828
5021 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5022 Instantiate queue.
5023 (~dwarf2_queue_guard): Clear queue.
5024 (queue_comp_unit): Assert that queue is
5025 instantiated.
5026 (process_queue): Adjust.
5027 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5028
616c069a
SM
50292021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5030
5031 PR gdb/26828
5032 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5033 to decide whether or not to enqueue it for expansion.
5034 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5035 after calling maybe_queue_comp_unit.
5036
897608ed
SM
50372021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5038
5039 * linux-nat.c (linux_nat_filter_event): Return void.
5040
15908a11
TT
50412021-02-22 Tom Tromey <tromey@adacore.com>
5042
5043 * solib-svr4.c (enable_break): Update.
5044 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5045 type.
5046 (target_bfd_reopen): Change parameter type.
5047 * bfd-target.h (target_bfd_reopen): Change parameter type.
5048
f53fc427
SM
50492021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5050
5051 * thread.c (add_thread_silent): Add assert.
5052 (find_thread_ptid): Add assert.
5053
de146e19
SM
50542021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5055
5056 PR gdb/27435
5057 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5058 (target_unpush_up): Likewise.
5059 * procfs.c (procfs_target::attach): Push target early. Use
5060 target_unpush_up to unpush target in case of error.
5061 * target.h (struct target_unpusher): Move here.
5062 (target_unpush_up): Likewise.
5063
8488c357
KB
50642021-02-19 Kevin Buettner <kevinb@redhat.com>
5065
5066 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5067 (which in turn includes <gnulib/config.h>) before include
5068 of <signal.h>.
5069
5a9f5403
NC
50702021-02-19 Nelson Chu <nelson.chu@sifive.com>
5071
5072 PR 27158
5073 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5074 (decode_j_type_insn): Likewise.
5075 (decode_cj_type_insn): Likewise.
5076 (decode_b_type_insn): Likewise.
5077 (decode): Likewise.
5078
26f53cd3
TT
50792021-02-18 Tom Tromey <tom@tromey.com>
5080
5081 * expression.h (struct expression) <evaluate>: Declare method.
5082 * eval.c (evaluate_subexp): Simplify.
5083 (expression::evaluate): New method.
5084 (evaluate_expression, evaluate_type): Use expression::evaluate.
5085
6a780b67
KB
50862021-02-17 Kevin Buettner <kevinb@redhat.com>
5087
5088 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5089 to accessing it.
5090 (ada_lookup_name_info): Likewise.
5091
adeab0c5
MF
50922021-02-13 Mike Frysinger <vapier@gentoo.org>
5093
5094 * aclocal.m4: Regenerate.
5095
089436f7
TV
50962021-02-12 Tom de Vries <tdevries@suse.de>
5097
5098 PR threads/26228
5099 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5100 (lin_thread_signals): New static var.
5101 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5102 New function.
5103 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5104 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5105 Declare.
5106 * linux-thread-db.c (check_thread_signals): Use
5107 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5108
96df3e28
AB
51092021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5110
5111 * f-exp.y (f77_keywords): Add allocated.
5112 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5113 (operator_length_f): Likewise.
5114 (print_subexp_f): Likewise.
5115 (dump_subexp_body_f): Likewise.
5116 (operator_check_f): Likewise.
5117 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5118
05f68f52
TV
51192021-02-11 Tom de Vries <tdevries@suse.de>
5120
5121 PR symtab/27353
5122 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5123 Return true for DW_FORM_strx.
5124
b260f8d6
TT
51252021-02-11 Tom Tromey <tromey@adacore.com>
5126
5127 PR gdb/27383:
5128 * parse.c (write_exp_symbol_reference): Write sym.block.
5129
bf3386f0
AB
51302021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5131
5132 * NEWS: Mention changes to 'maint info sections'.
5133 * maint.c (match_substring): Return a bool, fix whitespace issue.
5134 (struct single_bfd_flag_info): New struct.
5135 (bfd_flag_info): New static global.
5136 (match_bfd_flags): Return a bool, use bfd_flag_info.
5137 (print_bfd_flags): Use bfd_flag_info.
5138 (maint_print_section_info): Delete trailing whitespace.
5139 (struct maint_info_sections_opts): New struct.
5140 (maint_info_sections_option_defs): New static global.
5141 (maint_info_sections_completer): New function.
5142 (maintenance_info_sections): Use option parsing mechanism.
5143 (_initialize_maint_cmds): Update command help text for 'maint info
5144 sections' and register a command completer.
5145
4790db14
AB
51462021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5147
5148 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5149 functionality merged into...
5150 (maint_print_all_sections): ...this new function.
5151 (maintenance_info_sections): Make use of maint_print_all_sections,
5152 allow all objects to be printed even where there's no executable.
5153
1db66e34
AB
51542021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5155
5156 * breakpoint.c (resolve_sal_pc): Make use of
5157 bound_minimal_symbol::obj_section.
5158 * maint.c (maintenance_translate_address): Likewise.
5159 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5160 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5161 member function.
5162 * printcmd.c (info_address_command): Make use of
5163 bound_minimal_symbol::obj_section.
5164
18b8df43
AM
51652021-02-11 Alan Modra <amodra@gmail.com>
5166
5167 * arm-symbian-tdep.c: Delete.
5168 * NEWS: Mention arm-symbian removal.
5169 * Makefile.in: Remove arm-symbian-tdep entries.
5170 * configure.tgt: Remove arm*-*-symbianelf*.
5171 * doc/gdb.texinfo: Remove mention of SymbianOS.
5172 * osabi.c (gdb_osabi_names): Remove "Symbian".
5173 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5174 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5175 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5176 handling.
5177 * testsuite/gdb.base/dup-sect.exp: Likewise.
5178 * testsuite/gdb.base/long_long.exp: Likewise.
5179 * testsuite/gdb.base/solib-weak.exp: Likewise.
5180 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5181 * testsuite/gdb.python/py-section-script.exp: Likewise.
5182 * testsuite/lib/dwarf.exp: Likewise.
5183 * testsuite/lib/gdb.exp: Likewise.
5184
e92c8eb8
AB
51852021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5186
5187 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5188 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5189 (one_or_two_args): New pattern.
5190 (f77_keywords): Add lbound and ubound.
5191 * f-lang.c (fortran_bounds_all_dims): New function.
5192 (fortran_bounds_for_dimension): New function.
5193 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5194 (operator_length_f): Likewise.
5195 (print_subexp_f): Likewise.
5196 (dump_subexp_body_f): Likewise.
5197 (operator_check_f): Likewise.
5198 * std-operator.def (FORTRAN_LBOUND): Define.
5199 (FORTRAN_UBOUND): Define.
5200
a52d653e
AB
52012021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5202
5203 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5204 and set_section_index member functions where appropriate.
5205 * coffread.c (coff_symtab_read): Likewise.
5206 (process_coff_symbol): Likewise.
5207 * ctfread.c (set_symbol_address): Likewise.
5208 * dwarf2/read.c (add_partial_symbol): Likewise.
5209 (var_decode_location): Likewise.
5210 * language.c: Likewise.
5211 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5212 (compact_minimal_symbols): Likewise.
5213 (minimal_symbol_upper_bound): Likewise.
5214 * objfiles.c (relocate_one_symbol): Likewise.
5215 * psympriv.h (partial_symbol::obj_section): Likewise.
5216 (partial_symbol::address): Likewise.
5217 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5218 * stabsread.c (scan_file_globals): Likewise.
5219 * symmisc.c (dump_msymbols): Likewise.
5220 * symtab.c (general_symbol_info::obj_section): Likewise.
5221 (fixup_section): Likewise.
5222 (get_msymbol_address): Likewise.
5223 * symtab.h (general_symbol_info::section): Rename to...
5224 (general_symbol_info::m_section): ...this.
5225 (general_symbol_info::set_section_index): New member function.
5226 (general_symbol_info::section_index): Likewise.
5227 (SYMBOL_SECTION): Delete.
5228 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5229 set_section_index member functions where appropriate.
5230 (MSYMBOL_SECTION): Delete.
5231 (symbol::symbol): Update to initialize 'm_section'.
5232 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5233 (process_xcoff_symbol): Likewise.
5234
ebbc3a7d
AB
52352021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5236
5237 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5238 MSYMBOL_OBJ_SECTION.
5239 * findvar.c (language_defn::read_var_value): Likewise.
5240 * infcmd.c (jump_command): Likewise.
5241 * linespec.c (minsym_found): Likewise.
5242 * maint.c (maintenance_translate_address): Likewise.
5243 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5244 (minimal_symbol_upper_bound): Likewise.
5245 * parse.c (find_minsym_type_and_address): Likewise.
5246 (operator_check_standard): Likewise.
5247 * printcmd.c (info_address_command): Likewise.
5248 * symmisc.c (dump_msymbols): Likewise.
5249 (print_symbol): Likewise.
5250 * symtab.c (general_symbol_info::obj_section): Define new
5251 function.
5252 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5253 (find_pc_sect_compunit_symtab): Likewise.
5254 (find_function_start_sal): Likewise.
5255 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5256 MSYMBOL_OBJ_SECTION.
5257 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5258 function.
5259 (SYMBOL_OBJ_SECTION): Delete.
5260 (MSYMBOL_OBJ_SECTION): Delete.
5261
9bb305b3
TT
52622021-02-09 Tom Tromey <tom@tromey.com>
5263
5264 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5265
cf2b2075
TV
52662021-02-09 Tom de Vries <tdevries@suse.de>
5267
5268 PR symtab/27341
5269 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5270 construct an array type. Add assert to ensure that element_type is
5271 not being modified.
5272
03642b71
AB
52732021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5274
5275 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5276 (gcore_collect_regset_section_cb): Delete.
5277 (gcore_collect_thread_registers): Delete.
5278 (gcore_build_thread_register_notes): Delete.
5279 (gcore_find_signalled_thread): Delete.
5280 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5281 'gdbarch' and 'thread_info' declarations.
5282 (gcore_build_thread_register_notes): Delete declaration.
5283 (gcore_find_signalled_thread): Likewise.
5284 * fbsd-tdep.c: Remove 'gcore.h' include.
5285 (struct fbsd_collect_regset_section_cb_data): New struct.
5286 (fbsd_collect_regset_section_cb): New function.
5287 (fbsd_collect_thread_registers): New function.
5288 (struct fbsd_corefile_thread_data): New struct.
5289 (fbsd_corefile_thread): New function.
5290 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5291 * linux-tdep.c: Remove 'gcore.h' include.
5292 (struct linux_collect_regset_section_cb_data): New struct.
5293 (linux_collect_regset_section_cb): New function.
5294 (linux_collect_thread_registers): New function.
5295 (linux_corefile_thread): Call Linux specific code.
5296 (find_signalled_thread): New function.
5297 (linux_make_corefile_notes): Call find_signalled_thread.
5298
f73e424f
TT
52992021-02-09 Tom Tromey <tromey@adacore.com>
5300
5301 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5302 not_lval value.
5303 * value.c (value_contents_copy_raw): Now static.
5304 * value.h (value_contents_copy_raw): Don't declare.
5305
a4f0544b
TT
53062021-02-09 Tom Tromey <tromey@adacore.com>
5307
5308 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5309 fields.
5310
9b3e4b5d
SV
53112021-02-08 Shahab Vahedi <shahab@synopsys.com>
5312
5313 PR tdep/27369
5314 * arc-linux-tdep.c (handle_atomic_sequence): New.
5315 (arc_linux_software_single_step): Call handle_atomic_sequence().
5316
29db1eb3
AB
53172021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5318
5319 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5320 function.
5321 (REQUIRE_WINDOW): Call is_valid member function.
5322 (REQUIRE_WINDOW_FOR_SETTER): New define.
5323 (gdbpy_tui_is_valid): Call is_valid member function.
5324 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5325 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5326 tui_active too.
5327 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5328 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5329 the function.
5330
e0c23e11
AB
53312021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5334 for the title is not nullptr.
5335
1cf23996
AB
53362021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5337
5338 * tui-layout.c (saved_tui_windows): Delete.
5339 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5340 call new get_windows member function instead.
5341 (tui_get_window_by_name): Check in tui_windows.
5342 (tui_layout_window::apply): Don't add to tui_windows.
5343 * tui-layout.h (tui_layout_base::get_windows): New member function.
5344 (tui_layout_window::get_windows): Likewise.
5345 (tui_layout_split::get_windows): Likewise.
5346
a53a2657
AB
53472021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5348
5349 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5350 of the window objects.
5351
2708dbbd
AB
53522021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5353
5354 * python/python.c (gdbpy_print_stack): Reformat an error message.
5355
cd074e04
AB
53562021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5357
5358 * tui/tui-interp.c (tui_command_line_handler): New function.
5359 (tui_interp::resume): Register tui_command_line_handler as the
5360 input_handler.
5361 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5362 function.
5363 (tui_getc_1): Delete handling of '\n' and '\r'.
5364 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5365
4cf28e91
HD
53662021-02-07 Hannes Domani <ssbssa@yahoo.de>
5367
5368 * tui/tui-regs.c (tui_data_window::display_registers_from):
5369 Mark invisible register sub windows.
5370 (tui_data_window::check_register_values): Ignore invisible
5371 register sub windows.
5372
3537bc23
HD
53732021-02-07 Hannes Domani <ssbssa@yahoo.de>
5374
5375 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5376 n_spaces with a negative value.
5377
5fc2d6aa
HD
53782021-02-07 Hannes Domani <ssbssa@yahoo.de>
5379
5380 * tui/tui-regs.c (tui_data_window::display_registers_from):
5381 Add refresh_window call.
5382
83962f83
HD
53832021-02-07 Hannes Domani <ssbssa@yahoo.de>
5384
5385 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5386
0110ec82
SM
53872021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5388
5389 * symmisc.c (std_in, std_out, std_err): Remove.
5390 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5391
7c6944ab
TV
53922021-02-05 Tom de Vries <tdevries@suse.de>
5393
5394 PR breakpoints/27330
5395 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5396 glibc object file has debug info.
5397
e77b0004
TV
53982021-02-05 Tom de Vries <tdevries@suse.de>
5399
5400 PR symtab/27333
5401 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5402
0e857c82
TV
54032021-02-05 Tom de Vries <tdevries@suse.de>
5404
5405 PR breakpoints/27313
5406 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5407 syscall numbers.
5408
bdfea17e
TT
54092021-02-05 Tom Tromey <tom@tromey.com>
5410
5411 * compile/compile-c-support.c (get_compile_context)
5412 (c_get_compile_context, cplus_get_compile_context): Change return
5413 type.
5414 * language.c (language_defn::get_compile_instance): New method.
5415 * language.h (language_defn::get_compile_instance): Change return
5416 type. No longer inline.
5417 * c-lang.c (c_language::get_compile_instance): Change return type.
5418 (cplus_language::get_compile_instance): Change return type.
5419 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5420 Change return type.
5421 * compile/compile.c (compile_to_object): Update.
5422
1b30f421
TT
54232021-02-05 Tom Tromey <tom@tromey.com>
5424
5425 * parser-defs.h (write_exp_symbol_reference): Declare.
5426 * parse.c (write_exp_symbol_reference): New function.
5427 * p-exp.y (variable): Use write_exp_symbol_reference.
5428 * m2-exp.y (variable): Use write_exp_symbol_reference.
5429 * f-exp.y (variable): Use write_exp_symbol_reference.
5430 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5431 * c-exp.y (variable): Use write_exp_symbol_reference.
5432
ae710496
TV
54332021-02-05 Tom de Vries <tdevries@suse.de>
5434
5435 PR exp/27265
5436 * valarith.c (complex_binop): Throw an error if complex type can't
5437 be created.
5438
d3b54e63
TV
54392021-02-05 Tom de Vries <tdevries@suse.de>
5440
5441 PR symtab/27307
5442 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5443 return.
5444
fc9a13fb
TV
54452021-02-05 Tom de Vries <tdevries@suse.de>
5446
5447 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5448
04b4939b
MF
54492021-02-04 Mike Frysinger <vapier@gentoo.org>
5450
5451 * configure.tgt (riscv*-*-*): Set gdb_sim.
5452
6ff267e1
SM
54532021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5454
5455 * target.c (target_is_non_stop_p): Return bool.
5456 * target.h (target_is_non_stop_p): Return bool.
5457
fdbc5215
SM
54582021-02-04 Simon Marchi <simon.marchi@efficios.com>
5459
5460 * record-full.c (record_full_async_inferior_event_handler):
5461 Don't clear async event handler.
5462 (record_full_base_target::wait): Clear async event handler at
5463 beginning.
5464
85d3ad8e
SM
54652021-02-04 Simon Marchi <simon.marchi@efficios.com>
5466
5467 * record-btrace.c (record_btrace_handle_async_inferior_event):
5468 Don't clear async event handler.
5469 (record_btrace_target::wait): Clear async event handler at
5470 beginning.
5471
baa8575b
SM
54722021-02-04 Simon Marchi <simon.marchi@efficios.com>
5473
5474 * remote.c (remote_target::wait): Clear async event handler at
5475 beginning, mark if needed at the end.
5476 (remote_async_inferior_event_handler): Don't set or clear async
5477 event handler.
5478
6b36ddeb
SM
54792021-02-04 Simon Marchi <simon.marchi@efficios.com>
5480
5481 * async-event.h (async_event_handler_func): Add documentation.
5482 * async-event.c (check_async_event_handlers): Don't clear
5483 async_event_handler ready flag.
5484 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5485 flag.
5486 * record-btrace.c (record_btrace_handle_async_inferior_event):
5487 Likewise.
5488 * record-full.c (record_full_async_inferior_event_handler):
5489 Likewise.
5490 * remote-notif.c (remote_async_get_pending_events_handler):
5491 Likewise.
5492 * remote.c (remote_async_inferior_event_handler): Likewise.
5493
72d383bb
SM
54942021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5495
5496 * infrun.c (handle_inferior_event): Move stop_soon variable to
5497 inner scope.
5498
408f6686
PA
54992021-02-03 Pedro Alves <pedro@palves.net>
5500
5501 * infcmd.c (detach_command): Hold strong reference to target, and
5502 if all-stop on entry, restart threads on exit.
5503 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5504 (restart_stepped_thread): ... this new function. Also handle
5505 trap_expected.
5506 (restart_after_all_stop_detach): New function.
5507 * infrun.h (restart_after_all_stop_detach): Declare.
5508
ac7d717c
PA
55092021-02-03 Pedro Alves <pedro@palves.net>
5510
5511 * infrun.c (struct step_over_info): Initialize fields.
5512 (prepare_for_detach): Handle ongoing in-line step over.
5513
e87f0fe8
PA
55142021-02-03 Pedro Alves <pedro@palves.net>
5515
5516 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5517 here...
5518 * remote.c (remote_target::remote_detach_1): ... and here ...
5519 * target.c (target_detach): ... instead of here.
5520 * target.h (target_ops::detach): Add comment.
5521
8ff53139
PA
55222021-02-03 Pedro Alves <pedro@palves.net>
5523
5524 * infrun.c (struct wait_one_event): Move higher up.
5525 (prepare_for_detach): Abort in-progress displaced steps instead of
5526 letting them complete.
5527 (handle_one): If the inferior is detaching, don't add the thread
5528 back to the global step-over chain.
5529 (restart_threads): Don't restart threads if detaching.
5530 (handle_signal_stop): Remove inferior::detaching reference.
5531
91475068
PA
55322021-02-03 Pedro Alves <pedro@palves.net>
5533
5534 * infrun.c (prepare_for_detach): Don't release scoped_restore
5535 before returning.
5536
d758e62c
PA
55372021-02-03 Pedro Alves <pedro@palves.net>
5538
5539 * infrun.c (handle_one): New function, factored out from ...
5540 (stop_all_threads): ... here.
5541
b0083dd7
PA
55422021-02-03 Pedro Alves <pedro@palves.net>
5543
5544 * remote.c (remote_notif_stop_ack): Don't error out on
5545 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5546 (remote_target::discard_pending_stop_replies): Don't delete
5547 in-flight notification; instead, clear its contents.
5548
621cc310
PA
55492021-02-03 Pedro Alves <pedro@palves.net>
5550
5551 * remote.c (extended_remote_target::attach): Set target async in
5552 the target-non-stop path too.
5553
2ab76a18
PA
55542021-02-03 Pedro Alves <pedro@palves.net>
5555
5556 PR gdb/27055
5557 * infrun.c (handle_signal_stop): Move main context_switch call
5558 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5559
2e3773ff
LS
55602021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5561
5562 * NEWS (Changed commands): Add entry for the behavior change of
5563 the inferior command.
5564 * inferior.c (inferior_command): When no argument is given to the
5565 inferior command, display info about the currently selected
5566 inferior.
5567
e57933dc
SM
55682021-02-02 Simon Marchi <simon.marchi@efficios.com>
5569
5570 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5571 a sect_offset.
5572 (read_attribute_reprocess): Adjust.
5573
2b0c7f41
SM
55742021-02-02 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5577 <gnu_ranges_base>: ... this...
5578 <rnglists_base>: ... and this.
5579 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5580 <gnu_ranges_base>: ... this...
5581 <rnglists_base>: ... and this.
5582 (read_cutu_die_from_dwo): Adjust
5583 (dwarf2_get_pc_bounds): Adjust
5584 (dwarf2_record_block_ranges): Adjust.
5585 (read_full_die_1): Adjust
5586 (partial_die_info::read): Adjust.
5587 (read_rnglist_index): Adjust.
5588
a1c40103
SM
55892021-02-02 Simon Marchi <simon.marchi@efficios.com>
5590
5591 PR gdb/26813
5592 * dwarf2/read.c (read_loclists_rnglists_header): Add
5593 header_offset parameter and use it.
5594 (read_loclist_index): Read header of the current contribution,
5595 not the one at the beginning of the section.
5596 (read_rnglist_index): Likewise.
5597
b1829e1b
SM
55982021-02-02 Simon Marchi <simon.marchi@efficios.com>
5599
5600 PR gdb/26813
5601 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5602 requires_reprocessing flag.
5603 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5604 DW_FORM_loclistx.
5605 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5606 and DW_FORM_loclistx.
5607 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5608 instead of set_address for DW_FORM_loclistx and
5609 DW_FORM_rnglistx.
5610
0c800c6e
SM
56112021-02-02 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * dwarf2/read.c (read_loclist_index): Remove bound check for
5614 start of offset.
5615 (read_rnglist_index): Likewise.
5616
05787bad
SM
56172021-02-02 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5620 of the offset.
5621
5e4d9bbc
SM
56222021-02-02 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5625
a0c1eeba
SM
56262021-02-02 Simon Marchi <simon.marchi@efficios.com>
5627
5628 * dwarf2/read.c (read_loclist_index): Change complaints into
5629 errors.
5630
2bd3e4b8
TV
56312021-02-02 Tom de Vries <tdevries@suse.de>
5632
5633 PR symtab/24620
5634 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5635 psymtab == nullptr.
5636
82a1fd3a
AB
56372021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5638
5639 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5640 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5641 here from linux-tdep.c and given a new name. Minor cleanups.
5642 (gcore_collect_regset_section_cb): Likewise.
5643 (gcore_collect_thread_registers): Likewise.
5644 (gcore_build_thread_register_notes): Likewise.
5645 (gcore_find_signalled_thread): Likewise.
5646 * gcore.h (gcore_build_thread_register_notes): Declare.
5647 (gcore_find_signalled_thread): Declare.
5648 * fbsd-tdep.c: Add 'gcore.h' include.
5649 (struct fbsd_collect_regset_section_cb_data): Delete.
5650 (fbsd_collect_regset_section_cb): Delete.
5651 (fbsd_collect_thread_registers): Delete.
5652 (struct fbsd_corefile_thread_data): Delete.
5653 (fbsd_corefile_thread): Delete.
5654 (fbsd_make_corefile_notes): Call
5655 gcore_build_thread_register_notes instead of the now deleted
5656 FreeBSD code.
5657 * linux-tdep.c: Add 'gcore.h' include.
5658 (struct linux_collect_regset_section_cb_data): Delete.
5659 (linux_collect_regset_section_cb): Delete.
5660 (linux_collect_thread_registers): Delete.
5661 (linux_corefile_thread): Call
5662 gcore_build_thread_register_notes.
5663 (find_signalled_thread): Delete.
5664 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5665
ebde6f2d
TV
56662021-01-29 Tom de Vries <tdevries@suse.de>
5667
5668 PR breakpoints/26063
5669 * infrun.c (process_event_stop_test): Reset
5670 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5671 changed.
5672
0f93c3a2
AB
56732021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5674
5675 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5676 assert. Extend the header comment.
5677
f237f998
AB
56782021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5679
5680 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5681 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5682 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5683 (tui_locator_win_info_ptr): Delete declaration.
5684 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5685 (tui_disasm_window::set_contents): Fetch state from tui_location
5686 global.
5687 (tui_get_begin_asm_address): Likewise.
5688 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5689 for locator window.
5690 (get_locator_window): Delete.
5691 (initialize_known_windows): Treat locator window just like all the
5692 rest.
5693 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5694 (tui_source_window::set_contents): Fetch state from tui_location
5695 global.
5696 (tui_source_window::showing_source_p): Likewise.
5697 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5698 (_locator): Delete.
5699 (tui_locator_win_info_ptr): Delete.
5700 (tui_locator_window::make_status_line): Fetch state from
5701 tui_location global.
5702 (tui_locator_window::rerender): Remove check of 'handle',
5703 reindent function body.
5704 (tui_locator_window::set_locator_fullname): Delete.
5705 (tui_locator_window::set_locator_info): Delete.
5706 (tui_update_locator_fullname): Delete.
5707 (tui_show_frame_info): Likewise.
5708 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5709 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5710 tui/tui-location.h and renamed to
5711 tui_location_tracker::set_location.
5712 (tui_locator_window::set_locator_fullname): Moved to
5713 tui/tui-location.h and renamed to
5714 tui_location_tracker::set_fullname.
5715 (tui_locator_window::full_name): Delete.
5716 (tui_locator_window::proc_name): Delete.
5717 (tui_locator_window::line_no): Delete.
5718 (tui_locator_window::addr): Delete.
5719 (tui_locator_window::gdbarch): Delete.
5720 (tui_update_locator_fullname): Delete declaration.
5721 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5722 for locator window.
5723 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5724 (tui_display_main): Call function on tui_location directly.
5725 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5726 * tui/tui-location.c: New file.
5727 * tui/tui-location.h: New file.
5728
8ee511af
SM
57292021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * gdbtypes.h (get_type_arch): Rename to...
5732 (struct type) <arch>: ... this, update all users.
5733
6ac37371
SM
57342021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5735
5736 * gdbtypes.h (struct type) <arch>: Rename to...
5737 <arch_owner>: ... this, update all users.
5738 <objfile>: Rename to...
5739 <objfile_owner>: ... this, update all users.
5740
24cf6389
AB
57412021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5742
5743 * gdbcmd.h (execute_command_to_string): Update comment.
5744 * top.c (execute_command_to_string): Update header comment.
5745
2a7f6487
TV
57462021-01-28 Tom de Vries <tdevries@suse.de>
5747
5748 PR breakpoints/27205
5749 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5750 (create_longjmp_master_breakpoint_names): New function, factored out
5751 of ...
5752 (create_longjmp_master_breakpoint): ... here. Only try to install
5753 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5754 breakpoint in libc.so failed.
5755
59b59f08
LS
57562021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5757
5758 PR gdb/27133
5759 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5760 unique_ptr is released when the wrapped pointer is kept for later
5761 use.
5762
807f647c
MM
57632021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5764
5765 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5766 BLR and BR instructions.
5767 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5768 (enum aarch64_masks): New.
5769
4ef367bf
TT
57702021-01-26 Tom Tromey <tromey@adacore.com>
5771
5772 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5773 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5774 (windows_init_thread_list, windows_nat::handle_load_dll)
5775 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5776 (windows_nat_target::resume)
5777 (windows_nat_target::get_windows_debug_event)
5778 (windows_nat_target::interrupt, windows_xfer_memory)
5779 (windows_nat_target::close): Update.
5780 * nat/windows-nat.c (DEBUG_EVENTS): Use
5781 debug_prefixed_printf_cond.
5782 (matching_pending_stop, fetch_pending_stop)
5783 (continue_last_debug_event): Update.
5784
4cb1265b
MS
57852020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5786
5787 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5788 elfcore_write_file_note.
5789
d0cc52bd
SV
57902021-01-26 Shahab Vahedi <shahab@synopsys.com>
5791
5792 * arc-tdep.c (arc_add_reggroups): New function.
5793 (arc_gdbarch_init): Call arc_add_reggroups.
5794
ac3571d9 57952021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5796
5797 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5798
9f6c202e
TV
57992021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5800 Simon Marchi <simon.marchi@polymtl.ca>
5801 Tom de Vries <tdevries@suse.de>
5802
5803 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5804 DW_AT_ranges.
5805
a625a8c9
TT
58062021-01-25 Tom Tromey <tromey@adacore.com>
5807
5808 * dwarf2/read.c (get_mpz): New function.
5809 (get_dwarf2_rational_constant): Use it.
5810
19184910
TT
58112021-01-25 Tom Tromey <tromey@adacore.com>
5812
5813 * ada-lang.c (resolve_subexp): Handle array context.
5814
b10bae18
TT
58152021-01-23 Tom Tromey <tom@tromey.com>
5816
5817 PR compile/25575
5818 * compile/compile-loc2c.c (note_register): New function.
5819 (pushf_register_address, pushf_register): Use it.
5820
3637a558
TT
58212021-01-23 Tom Tromey <tom@tromey.com>
5822
5823 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5824 Change type of "registers_used".
5825 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5826 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5827 (locexpr_generate_c_location, loclist_generate_c_location): Change
5828 type of "registers_used".
5829 * compile/compile.h (compile_dwarf_expr_to_c)
5830 (compile_dwarf_bounds_to_c): Update.
5831 * compile/compile-loc2c.c (pushf_register_address)
5832 (pushf_register, do_compile_dwarf_expr_to_c)
5833 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5834 of "registers_used".
5835 * compile/compile-c.h (generate_c_for_variable_locations):
5836 Update.
5837 * compile/compile-c-symbols.c (generate_vla_size)
5838 (generate_c_for_for_one_variable): Change type of
5839 "registers_used".
5840 (generate_c_for_variable_locations): Return std::vector.
5841 * compile/compile-c-support.c (generate_register_struct): Change
5842 type of "registers_used".
5843 (compute): Update.
5844
9f7f6cb8
TT
58452021-01-23 Tom Tromey <tom@tromey.com>
5846
5847 * compile/compile-internal.h (class compile_instance)
5848 <set_arguments>: Change return type.
5849 * compile/compile.c (compile_to_object): Remove call to reset.
5850 (compile_instance::set_arguments): Change return type.
5851
dd5ca05f
SM
58522021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5853
5854 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5855 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5856
d3ee35db
LS
58572021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5858
5859 * Makefile.in (SELFTESTS_SRCS): Add
5860 unittests/gdb_tilde_expand-selftests.c.
5861 * unittests/gdb_tilde_expand-selftests.c: New file.
5862
9d2d8a16
AB
58632021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5864
5865 PR cli/25956
5866 * NEWS: Mention new command.
5867 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5868 (version_style): Define.
5869 (cli_style_option::cli_style_option): Add intensity parameter, and
5870 use as appropriate.
5871 (_initialize_cli_style): Register version style set/show commands.
5872 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5873 (version_style): Declare.
5874 * top.c (print_gdb_version): Use version_stype, and styled_string
5875 to print the GDB version string.
5876
e7b43072
AB
58772021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * utils.c (emit_style_escape): Only emit an escape sequence if the
5880 requested style is different than the current applied style.
5881 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5882 current applied_style.
5883 (fputs_styled): Remove is_default check.
5884 (fputs_styled_unfiltered): Likewise.
5885 (vfprintf_styled_no_gdbfmt): Likewise.
5886
2189c312
SM
58872021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5888
5889 * remote.h (remote_debug_printf): New.
5890 (remote_debug_printf_nofunc): New.
5891 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5892 * remote.c: Use above macros throughout file.
5893
02349803
SM
58942021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5895
5896 * remote.h (remote_debug): Change to bool.
5897 * remote.c (remote_debug): Change to bool.
5898 (_initialize_remote): Adjust.
5899
cda09ec9
SM
59002021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5901
5902 * target.h (remote_debug): Move to...
5903 * remote.h (remote_debug): ... here.
5904 * top.c (remote_debug): Move to...
5905 * remote.c (remote_debug): ... here.
5906 * remote-sim.c: Include remote.h.
5907
baf2b57f
SM
59082021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5909
5910 * cli/cli-cmds.c (show_remote_debug): Remove.
5911 (show_remote_timeout): Remove.
5912 (_initialize_cli_cmds): Don't register commands.
5913 * remote.c (show_remote_debug): Move here.
5914 (show_remote_timeout): Move here.
5915 (_initialize_remote): Register commands.
5916
344e9841
SM
59172021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5918
5919 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5920 type::objfile method instead.
5921
30625020
SM
59222021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5925 use the type::is_objfile_owned method.
5926
5b7d941b
SM
59272021-01-22 Simon Marchi <simon.marchi@efficios.com>
5928
5929 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5930 (TYPE_OWNER): Remove.
5931 (TYPE_OBJFILE): Adjust.
5932 (struct main_type) <flag_objfile_owned>: Rename to...
5933 <m_flag_objfile_owned>: ... this.
5934 <owner>: Rename to...
5935 <m_owner>: ... this.
5936 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5937 methods.
5938 (TYPE_ALLOC): Adjust.
5939 * gdbtypes.c (alloc_type): Adjust.
5940 (alloc_type_arch): Adjust.
5941 (alloc_type_copy): Adjust.
5942 (get_type_arch): Adjust.
5943 (smash_type): Adjust.
5944 (lookup_array_range_type): Adjust.
5945 (recursive_dump_type): Adjust.
5946 (copy_type_recursive): Adjust.
5947 * compile/compile-c-types.c (convert_func): Adjust.
5948 (convert_type_basic): Adjust.
5949 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5950 Adjust.
5951 * language.c
5952 (language_arch_info::type_and_symbol::alloc_type_symbol):
5953 Adjust.
5954
d5d24e12
LM
59552021-01-21 Luis Machado <luis.machado@linaro.org>
5956
5957 * coffread.c (enter_linenos): Passing string to complaint.
5958 * valops.c (value_assign): Make array view.
5959
a59902a7
SM
59602021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5961
5962 * auto-load.h (debug_auto_load): Move here.
5963 (auto_load_debug_printf): New.
5964 * auto-load.c: Use auto_load_debug_printf.
5965 (debug_auto_load): Move to header.
5966 * linux-thread-db.c (try_thread_db_load): Use
5967 auto_load_debug_printf.
5968 * main.c (captured_main_1): Likewise.
5969
d3abc0ce
SM
59702021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * f-valprint.c (f77_array_offset_tbl): Remove.
5973
1e15fcac
SM
59742021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5975
5976 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5977
439706e6
SM
59782021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5981 of gdb_select.
5982
325d39e4
HD
59832021-01-21 Hannes Domani <ssbssa@yahoo.de>
5984
5985 PR python/19151
5986 * python/py-breakpoint.c (bppy_get_location): Handle
5987 bp_hardware_breakpoint.
5988 (bppy_init): Likewise.
5989 (gdbpy_breakpoint_created): Likewise.
5990
7cb6d92a
SM
59912021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5992
5993 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5994
d4dd4fca
SM
59952021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5996
5997 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5998 (_initialize_gdb_bfd): Adjust.
5999
de53369b
SM
60002021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6001
6002 PR gdb/26828
6003 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6004
17e593e9
SM
60052021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6006
6007 * dwarf2/read.c (follow_die_offset): Add logging.
6008 (dwarf2_per_objfile::age_comp_units): Add logging.
6009
6bd434d6
SM
60102021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6011
6012 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6013 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6014 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6015 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6016 * arm-tdep.c (struct frame_unwind): Make static.
6017 * auto-load.c (auto_load_safe_path_vec): Make static.
6018 * csky-tdep.c (csky_stub_unwind): Make static.
6019 * gdbarch.c (gdbarch_data_registry): Make static.
6020 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6021 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6022 * i386-tdep.c (i386_frame_setup_skip_insns,
6023 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6024 Make static.
6025 * infrun.c (observer_mode): Make static.
6026 * linux-nat.c (sigchld_action): Make static.
6027 * linux-thread-db.c (thread_db_list): Make static.
6028 * maint-test-options.c (maintenance_test_options_list):
6029 * mep-tdep.c (mep_csr_registers): Make static.
6030 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6031 (stats): Make static.
6032 * nat/linux-osdata.c (struct osdata_type): Make static.
6033 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6034 * progspace.c (last_program_space_num): Make static.
6035 * python/py-param.c (struct parm_constant): Remove struct type
6036 name.
6037 (parm_constants): Make static.
6038 * python/py-record-btrace.c (btpy_list_methods): Make static.
6039 * python/py-record.c (recpy_gap_type): Make static.
6040 * record.c (record_goto_cmdlist): Make static.
6041 * regcache.c (regcache_descr_handle): Make static.
6042 * registry.h (DEFINE_REGISTRY): Make definition static.
6043 * symmisc.c (std_in, std_out, std_err): Make static.
6044 * top.c (previous_saved_command_line): Make static.
6045 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6046 static.
6047 * unittests/command-def-selftests.c (nr_duplicates,
6048 nr_invalid_prefixcmd, lists): Make static.
6049 * unittests/observable-selftests.c (test_notification): Make
6050 static.
6051 * unittests/optional/assignment/1.cc (counter): Make static.
6052 * unittests/optional/assignment/2.cc (counter): Make static.
6053 * unittests/optional/assignment/3.cc (counter): Make static.
6054 * unittests/optional/assignment/4.cc (counter): Make static.
6055 * unittests/optional/assignment/5.cc (counter): Make static.
6056 * unittests/optional/assignment/6.cc (counter): Make static.
6057
a6c11cbb
JS
60582021-01-20 Joel Sherrill <joel@rtems.org>
6059
6060 PR gdb/27219
6061 * remote.c (struct remote_thread_info) <resume_state>: Rename
6062 to...
6063 <get_resume_state>: ... this.
6064 (remote_target::resume): Adjust.
6065 (remote_target::commit_resume): Adjust.
6066 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6067
6f52fdf4
SDJ
60682021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6069 Tom Tromey <tom@tromey.com>
6070
6071 * stap-probe.c (stap_parse_single_operand): Handle '!'
6072 operator.
6073 (stap_parse_argument_conditionally): Likewise.
6074 Skip spaces after processing open-parenthesis sub-expression.
6075 (stap_parse_argument_1): Skip spaces after call to
6076 stap_parse_argument_conditionally.
6077 Handle case when right-side expression is a parenthesized
6078 sub-expression.
6079 Skip spaces after call to stap_parse_argument_1.
6080
1c3b85ad
LS
60812021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6082
6083 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6084
a9a87d35
LM
60852021-01-19 Luis Machado <luis.machado@linaro.org>
6086
6087 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6088 memory and save data.
6089 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6090 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6091 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6092 (trad_frame_value_bytes_p): Remove.
6093 (trad_frame_reset_saved_regs): Adjust documentation.
6094 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6095 constructor and reset the state of the registers.
6096 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6097 (trad_frame_value_bytes_p, trad_frame_set_value)
6098 (trad_frame_set_realreg, trad_frame_set_addr)
6099 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6100 (trad_frame_set_reg_realreg): Update to call member function.
6101 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6102 (trad_frame_get_prev_register): Likewise.
6103
6104 * aarch64-tdep.c (aarch64_analyze_prologue)
6105 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6106 (aarch64_prologue_prev_register): Update to use member functions.
6107 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6108 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6109 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6110 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6111 (arm_make_epilogue_frame_cache): Likewise.
6112 * avr-tdep.c (avr_frame_unwind_cache)
6113 (avr_frame_prev_register): Likewise.
6114 * cris-tdep.c (cris_scan_prologue): Likewise.
6115 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6116 * frv-tdep.c (frv_analyze_prologue): Likewise.
6117 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6118 * lm32-tdep.c (lm32_frame_cache): Likewise.
6119 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6120 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6121 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6122 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6123 (reset_saved_regs): Adjust to set realreg.
6124 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6125 call member functions.
6126 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6127 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6128 (s390_backchain_frame_unwind_cache): Likewise.
6129 * score-tdep.c (score7_analyze_prologue)
6130 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6131 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6132 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6133 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6134 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6135 * tilegx-tdep.c (tilegx_analyze_prologue)
6136 (tilegx_frame_cache): Likewise.
6137 * v850-tdep.c (v850_frame_cache): Likewise.
6138 * vax-tdep.c (vax_frame_cache): Likewise.
6139
bdec2917
LM
61402021-01-19 Luis Machado <luis.machado@linaro.org>
6141
6142 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6143 of buffer + length.
6144 (put_frame_register_bytes): Likewise.
6145 Adjust documentation.
6146 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6147 (safe_frame_unwind_memory): Likewise.
6148 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6149 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6150 gdb::array_view.
6151 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6152 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6153 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6154 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6155 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6156 * dwarf2/loc.c (rw_pieced_value): Likewise.
6157 * hppa-tdep.c (hppa_frame_cache): Likewise.
6158 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6159 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6160 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6161 (i386_linux_rt_sigtramp_start): Likewise.
6162 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6163 * i386-tdep.c (i386_register_to_value): Likewise.
6164 * i387-tdep.c (i387_register_to_value): Likewise.
6165 * ia64-tdep.c (ia64_register_to_value): Likewise.
6166 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6167 (m32r_linux_rt_sigtramp_start): Likewise.
6168 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6169 * m68k-tdep.c (m68k_register_to_value): Likewise.
6170 * mips-tdep.c (mips_register_to_value)
6171 (mips_value_to_register): Likewise.
6172 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6173 (ppcfbsd_sigtramp_frame_cache): Likewise.
6174 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6175 (ppcobsd_sigtramp_frame_cache): Likewise.
6176 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6177 (rs6000_register_to_value): Likewise.
6178 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6179 * tramp-frame.c (tramp_frame_start): Likewise.
6180 * valops.c (value_assign): Likewise.
6181
ccbe4c82
LM
61822021-01-19 Luis Machado <luis.machado@linaro.org>
6183
6184 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6185 array_view.
6186 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6187 instead of buffer and size.
6188 (trad_frame_set_reg_value_bytes): Likewise.
6189 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6190 (trad_frame_set_value_bytes): Likewise.
6191
0e7620dc
MF
61922021-01-18 Mike Frysinger <vapier@gentoo.org>
6193
6194 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6195
6a9ad81c
AB
61962021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6197
6198 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6199 (riscv_fbsd_gregset): Use riscv_supply_regset.
6200 (riscv_fbsd_fpregset): Likewise.
6201 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6202 (riscv_linux_fregset): Likewise.
6203 * riscv-tdep.c (riscv_supply_regset): Define new function.
6204 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6205
d3d7d1ba
TV
62062021-01-18 Tom de Vries <tdevries@suse.de>
6207
6208 PR tdep/27172
6209 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6210 New macro.
6211 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6212 for SEGV_BNDERR.
6213
aa2838cc
SM
62142021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6215
6216 * remote.c (class remote_target) <remote_hostio_send_command,
6217 remote_hostio_parse_result>: Constify parameter.
6218 (remote_hostio_parse_result): Likewise.
6219 (remote_target::remote_hostio_send_command): Adjust.
6220 (remote_target::remote_hostio_pread_vFile): Adjust.
6221 (remote_target::fileio_readlink): Adjust.
6222 (remote_target::fileio_fstat): Adjust.
6223
b5c8f22d
SM
62242021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6225
6226 * remote.c (remote_target::start_remote): Move wait_status to
6227 narrower scope.
6228
e3b2741b
SM
62292021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * remote.c (class remote_target):
6232 <add_current_inferior_and_thread>: Constify parameter.
6233 (stop_reply_extract_thread): Likewise.
6234 (remote_target::get_current_thread): Likewise.
6235 (remote_target::add_current_inferior_and_thread): Likewise.
6236
cecb1912
SM
62372021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * remote.c (class remote_target)
6240 <remote_unpack_thread_info_response,
6241 parse_threadlist_response>: Constify parameter and/or return
6242 value and or local variable.
6243 (stub_unpack_int): Likewise.
6244 (unpack_nibble): Likewise.
6245 (unpack_byte): Likewise.
6246 (unpack_int): Likewise.
6247 (unpack_string): Likewise.
6248 (unpack_threadid): Likewise.
6249 (remote_target::remote_unpack_thread_info_response): Likewise.
6250 (remote_target::parse_threadlist_response): Likewise.
6251
5a11fff0
AB
62522021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6253
6254 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6255
17e89137
LS
62562021-01-14 Lancelot Six <lsix@lancelotsix.com>
6257
6258 * MAINTAINERS (Write After Approval): Add myself.
6259
58eadc4b
BE
62602021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6261
6262 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6263 because is_trivially_default_constructible was first implemented with
6264 gcc-5.
6265
5fae2a2c
TV
62662021-01-14 Tom de Vries <tdevries@suse.de>
6267
6268 PR breakpoints/27151
6269 * objfiles.h (in_plt_section): Handle .plt.sec.
6270
8f66807b
AB
62712021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6272
6273 PR gdb/26819
6274 * remote.c
6275 (remote_target::select_thread_for_ambiguous_stop_reply): New
6276 member function.
6277 (remote_target::process_stop_reply): Call
6278 select_thread_for_ambiguous_stop_reply.
6279
bd497355
SM
62802021-01-13 Simon Marchi <simon.marchi@efficios.com>
6281
6282 * record-btrace.c (class record_btrace_target): Remove.
6283 (record_btrace_target::commit_resume): Remove.
6284 * record-full.c (class record_full_target): Remove.
6285 (record_full_target::commit_resume): Remove.
6286
c9d22089
SM
62872021-01-13 Simon Marchi <simon.marchi@efficios.com>
6288
6289 * remote.c (enum class resume_state): New.
6290 (struct resumed_pending_vcont_info): New.
6291 (struct remote_thread_info) <resume_state, set_not_resumed,
6292 set_resumed_pending_vcont, resumed_pending_vcont_info,
6293 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6294 New.
6295 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6296 (remote_target::remote_add_thread): Adjust.
6297 (remote_target::process_initial_stop_replies): Adjust.
6298 (remote_target::resume): Adjust.
6299 (remote_target::commit_resume): Rely on state in
6300 remote_thread_info and not on tp->executing.
6301 (remote_target::process_stop_reply): Adjust.
6302
d8d1feb4
SM
63032021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6304
6305 * arc-tdep.h (arc_debug_printf): New.
6306 * arc-tdep.c: Use arc_debug_printf.
6307 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6308 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6309 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6310
fb0f5031
SM
63112021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6312
6313 * arc-tdep.h (arc_debug): Change type to bool.
6314 * arc-tdep.c (arc_debug): Change type to bool.
6315 (arc_analyze_prologue): Adjust.
6316 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6317 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6318
5bf7e91b
SM
63192021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6320
6321 * auto-load.c (auto_load_objfile_script_1): Use bool.
6322 (execute_script_contents): Use bool.
6323
db972fce
SM
63242021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6325
6326 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6327 comment here.
6328 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6329 comment to header.
6330 * extension-priv.h (struct extension_language_script_ops)
6331 <auto_load_enabled>: Return bool.
6332 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6333 comment here.
6334 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6335 comment to header.
6336 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6337 move comment here.
6338 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6339 move comment to header.
6340 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6341 move comment here.
6342 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6343 move comment to header.
6344
5e12f48f
SM
63452021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6346
6347 * auto-load.h (file_is_auto_load_safe): Change return type to
6348 bool, move comment here.
6349 * auto-load.c (file_is_auto_load_safe): Change return type and
6350 advice_printed to bool. Move comment to header.
6351
54ca9002
SM
63522021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6353
6354 * jit.c (jit_debug_printf): New, use throughout file.
6355
24a7f1b5
SM
63562021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6357
6358 * infrun.c (normal_stop): Fix indentation.
6359
fe7a351a
SM
63602021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6361
6362 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6363 declarations to ...
6364 * symfile.h: ... here.
6365 * symfile.c: Update doc.
6366
16e9019e
SM
63672021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6368
6369 * target.h (baud_rate, serial_parity): Move declarations...
6370 * serial.h: ... here.
6371 * main.c: Include serial.h.
6372 * serial.c (baud_rate, serial_parity): Update doc.
6373
b2f2ae0d
SM
63742021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6375
6376 * top.c (pre_init_ui_hook): Remove.
6377
5291fe3c
SP
63782021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6379
6380 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6381 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6382 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6383 * features/aarch64-fpu.xml: Add bfloat16 type.
6384
ce38f5ed
AB
63852021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6388
7c654b71
AB
63892021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6390
6391 * f-exp.y (dot_ops): Rename to...
6392 (fortran_operators): ...this. Add a header comment. Add symbol
6393 based operators.
6394 (yylex): Update to use fortran_operators not dot_ops. Remove
6395 special handling for '**', this is now included in
6396 fortran_operators.
6397
c6185dce
SM
63982021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6399
6400 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6401 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6402 * aarch64-tdep.c: Use aarch64_debug_printf.
6403
eef401dc
SM
64042021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6405
6406 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6407 file.
6408
062eaacb
SM
64092021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6410
6411 * jit.c (jit_debug): Change type to bool.
6412 (_initialize_jit): Adjust.
6413
54585eee
TT
64142021-01-09 Tom Tromey <tom@tromey.com>
6415
6416 PR compile/23672
6417 * compile/compile.c (compile_to_object): Avoid crash when
6418 osabi_triplet_regexp returns NULL.
6419
bc167b6b
TT
64202021-01-09 Tom Tromey <tom@tromey.com>
6421
6422 * tracepoint.h (class collection_list) <append_exp>: Take a
6423 std::string.
6424 * tracepoint.c (collection_list::append_exp): Take a std::string.
6425 (encode_actions_1): Update.
6426
8fc48b79
TT
64272021-01-08 Tom Tromey <tromey@adacore.com>
6428
6429 * parse.c (parse_expression): Add void_context_p parameter. Use
6430 parse_exp_in_context.
6431 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6432 parse_expression.
6433 (print_command, call_command): Update.
6434 * expression.h (parse_expression): Add void_context_p parameter.
6435
3c8c6de2
AB
64362021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6439 for internalvar components that have a dynamic location.
6440
1940319c
TV
64412021-01-08 Tom de Vries <tdevries@suse.de>
6442
6443 PR gdb/26881
6444 * breakpoint.c (create_exception_master_breakpoint_probe)
6445 (create_exception_master_breakpoint_hook): Factor out
6446 of ...
6447 (create_exception_master_breakpoint): ... here. Only try to install
6448 the master exception breakpoint in objfile.debug using the
6449 _Unwind_DebugHook method, if the install using probes in objfile
6450 failed.
6451
e3436813
AB
64522021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6453
6454 * f-lang.c (fortran_value_subarray): Call value_from_component.
6455
e904f56d
MF
64562021-01-07 Mike Frysinger <vapier@gentoo.org>
6457
6458 * remote-sim.c: Include memory-map.h.
6459 (gdbsim_target): Define memory_map override.
6460 (gdbsim_target::memory_map): Define.
6461
959d6a67
TT
64622021-01-07 Tom Tromey <tromey@adacore.com>
6463
6464 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6465
d4813f10
TT
64662021-01-07 Tom Tromey <tromey@adacore.com>
6467
6468 * ada-lang.c (add_component_interval): Start loop using vector's
6469 updated size.
6470
b49180ac
TT
64712021-01-06 Tom Tromey <tromey@adacore.com>
6472
6473 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6474 Do not cast result.
6475 * valarith.c (fixed_point_binop): Handle multiplication
6476 and division specially.
6477 * valops.c (value_to_gdb_mpq): New function.
6478 (value_cast_to_fixed_point): Use it.
6479
55195361
HD
64802021-01-05 Hannes Domani <ssbssa@yahoo.de>
6481
6482 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6483 Call wnoutrefresh instead of tui_win_info::refresh_window.
6484
1b6d4bb2
HD
64852021-01-05 Hannes Domani <ssbssa@yahoo.de>
6486
6487 * tui/tui-source.c (tui_source_window::show_line_number):
6488 Redraw second space after line number.
6489
b5ff370e
HD
64902021-01-05 Hannes Domani <ssbssa@yahoo.de>
6491
6492 PR tui/26927
6493 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6494 Fix source pad size in prefresh.
6495 (tui_source_window_base::show_source_content): Grow source pad
6496 if necessary.
6497
c68ea49f
MF
64982021-01-04 Mike Frysinger <vapier@gentoo.org>
6499
6500 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6501 (bfin_frame_align): Use align_down.
6502
e4ad960a
TV
65032021-01-04 Tom de Vries <tdevries@suse.de>
6504
6505 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6506 terminators that do not terminate anything.
6507
3ec3145c
SM
65082021-01-04 Simon Marchi <simon.marchi@efficios.com>
6509
6510 * debug.c (debug_print_depth): New.
6511 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6512 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6513 * infrun.c (start_step_over): Use
6514 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6515 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6516 INFRUN_SCOPED_DEBUG_START_END.
6517 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6518
e71daf80
SM
65192021-01-04 Simon Marchi <simon.marchi@efficios.com>
6520
6521 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6522
335709bc
SM
65232021-01-04 Simon Marchi <simon.marchi@efficios.com>
6524
6525 * utils.c (vfprintf_unfiltered): Print timestamp only when
6526 previous debug output ended with a newline.
6527
098caef4
LM
65282021-01-04 Luis Machado <luis.machado@linaro.org>
6529
6530 Update all users of trad_frame_saved_reg to use the new member
6531 functions.
6532
6533 Remote all struct keywords from declarations of trad_frame_saved_reg
6534 types, except on forward declarations.
6535
6536 * aarch64-tdep.c: Update.
6537 * alpha-mdebug-tdep.c: Update.
6538 * alpha-tdep.c: Update.
6539 * arc-tdep.c: Update.
6540 * arm-tdep.c: Update.
6541 * avr-tdep.c: Update.
6542 * cris-tdep.c: Update.
6543 * csky-tdep.c: Update.
6544 * frv-tdep.c: Update.
6545 * hppa-linux-tdep.c: Update.
6546 * hppa-tdep.c: Update.
6547 * hppa-tdep.h: Update.
6548 * lm32-tdep.c: Update.
6549 * m32r-linux-tdep.c: Update.
6550 * m32r-tdep.c: Update.
6551 * m68hc11-tdep.c: Update.
6552 * mips-tdep.c: Update.
6553 * moxie-tdep.c: Update.
6554 * riscv-tdep.c: Update.
6555 * rs6000-tdep.c: Update.
6556 * s390-linux-tdep.c: Update.
6557 * s390-tdep.c: Update.
6558 * score-tdep.c: Update.
6559 * sparc-netbsd-tdep.c: Update.
6560 * sparc-sol2-tdep.c: Update.
6561 * sparc64-fbsd-tdep.c: Update.
6562 * sparc64-netbsd-tdep.c: Update.
6563 * sparc64-obsd-tdep.c: Update.
6564 * sparc64-sol2-tdep.c: Update.
6565 * tilegx-tdep.c: Update.
6566 * v850-tdep.c: Update.
6567 * vax-tdep.c: Update.
6568
6569 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6570 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6571
6572 * trad-frame.c: Update.
6573 Remove TF_REG_* enum.
6574 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6575 a trivially-constructible struct.
6576 (trad_frame_reset_saved_regs): Adjust to use member function.
6577 (trad_frame_value_p): Likewise.
6578 (trad_frame_addr_p): Likewise.
6579 (trad_frame_realreg_p): Likewise.
6580 (trad_frame_value_bytes_p): Likewise.
6581 (trad_frame_set_value): Likewise.
6582 (trad_frame_set_realreg): Likewise.
6583 (trad_frame_set_addr): Likewise.
6584 (trad_frame_set_unknown): Likewise.
6585 (trad_frame_set_value_bytes): Likewise.
6586 (trad_frame_get_prev_register): Likewise.
6587 * trad-frame.h: Update.
6588 (trad_frame_saved_reg_kind): New enum.
6589 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6590 <m_kind, m_reg>: New member fields.
6591 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6592 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6593 <is_addr, is_unknown, is_value_bytes>: New member functions.
6594
9898e882
SM
65952021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6596
6597 * target-float.c: Fix typos.
6598
b66b4e65
HD
65992021-01-02 Hannes Domani <ssbssa@yahoo.de>
6600
6601 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6602
b5b5650a
JB
66032021-01-01 Joel Brobecker <brobecker@adacore.com>
6604
6605 * gdbarch.sh: Update copyright year range.
6606
3666a048
JB
66072021-01-01 Joel Brobecker <brobecker@adacore.com>
6608
6609 Update copyright year range in copyright header of all GDB files.
6610
ff7e39b6
JB
66112021-01-01 Joel Brobecker <brobecker@adacore.com>
6612
6613 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6614 to the list of directories to update.
6615
2b47c078
JB
66162021-01-01 Joel Brobecker <brobecker@adacore.com>
6617
6618 * top.c (print_gdb_version): Update copyright year.
6619
9e5e03df 66202021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6621
476923f1 6622 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6623
476923f1 6624For older changes see ChangeLog-2020.
c906108c
SS
6625\f
6626Local Variables:
6627mode: change-log
6628left-margin: 8
6629fill-column: 74
6630version-control: never
57da7796 6631coding: utf-8
c906108c 6632End:
This page took 2.728071 seconds and 4 git commands to generate.