Clean up gdb's --enable-shared
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ba56237d
TT
12021-06-01 Tom Tromey <tromey@adacore.com>
2
3 * configure: Rebuild.
4 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
5
2adf1781
TT
62021-06-01 Tom Tromey <tromey@adacore.com>
7
8 * silent-rules.mk (ECHO_CC): New variable.
9
bdbbcd57
TT
102021-06-01 Tom Tromey <tromey@adacore.com>
11
12 * Makefile.in (SUBDIRS): Add testsuite.
13 (all): Don't exclude testsuite.
14
f99d1d37
TT
152021-06-01 Tom Tromey <tromey@adacore.com>
16
17 * configure.ac: Copy some code from testsuite/configure.ac.
18 (enable_libctf): Subst this, not ENABLE_LIBCTF.
19 * configure: Rebuild.
20
17d305ef
TV
212021-06-01 Tom de Vries <tdevries@suse.de>
22
23 PR symtab/26096
24 * minsyms.c (msymbol_is_cold_clone): New function.
25 (msymbol_is_function): Use msymbol_is_cold_clone.
26
9b715c68
AB
272021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
28 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 PR gdb/14383
31 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
32 (ALLDEPFILES): Add arm-none-tdep.c
33 * arm-none-tdep.c: New file.
34 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
35
b4b3e2de
AB
362021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
37 Richard Bunt <richard.bunt@arm.com>
38
39 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
40 check for why the backtrace stopped.
41
9ea36493
SM
422021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
45 Update all callers.
46 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
47 signature parameter, update all callers.
48 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
49 signature parameter.
50
46c6bcf6
SM
512021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * dwarf2/read.h (signatured_type_up): New, use where possible.
54
4631503b
SM
552021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
58
cc653233
TT
592021-05-30 Tom Tromey <tom@tromey.com>
60
61 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
62 is_debug_types.
63 (create_signatured_type_table_from_index)
64 (create_signatured_type_table_from_debug_names, add_type_unit)
65 (read_comp_units_from_section): Update.
66
c96e8b04
TT
672021-05-30 Tom Tromey <tom@tromey.com>
68
69 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
70 m_num_psymtabs>: Remove.
71 (resize_symtabs): Update.
72 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
73 (dwarf2_per_bfd::allocate_signatured_type): Update.
74
24b21115
SM
752021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * Fix tab after space indentation issues throughout.
78
01add95b
SM
792021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * Fix some indentation mistakes throughout.
82
055c879f
SM
832021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * breakpoint.h (iterate_over_bp_locations): Remove. Update
86 users to use all_bp_locations.
87 (all_bp_locations): New.
88 * breakpoint.c (all_bp_locations): Make non-static.
89 (iterate_over_bp_locations): Remove.
90
240edef6
SM
912021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
92
93 * breakpoint.h (iterate_over_breakpoints): Remove. Update
94 callers to use all_breakpoints or all_breakpoints_safe.
95 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
96 all_breakpoints_safe): Move here.
97 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
98 non-static.
99 (iterate_over_breakpoints): Remove.
100 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
101 Return void.
102 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
103 return value logic.
104 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
105
e0d9a270
SM
1062021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * breakpoint.c (get_first_locp_gte_addr): Remove.
109 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
110 all_bp_locations_at_addr.
111 (struct bp_locations_at_addr_range): New.
112 (all_bp_locations_at_addr): New.
113 (bp_locations_compare_addrs): New.
114
48d7020b
SM
1152021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
116
117 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
118 all_bp_locations.
119 (all_bp_locations): New.
120
5d51cd5d
SM
1212021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * breakpoint.c (bp_locations): Change to std::vector, update all
124 users.
125 (bp_locations_count): Remove.
126 (update_global_location_list): Change to work with indices
127 rather than bp_location**.
128
40cb8ca5
SM
1292021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
130
131 * breakpoint.h (bp_locations_range): New.
132 (struct breakpoint) <locations>: New. Use where possible.
133
f6d17b2b
SM
1342021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * breakpoint.h (all_tracepoints): Remove.
137 (breakpoint_iterator): Move here.
138 (struct tracepoint_filter): New.
139 (tracepoint_iterator): New.
140 (tracepoint_range): New.
141 (all_tracepoints): New.
142 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
143 all_tracepoints.
144 (breakpoint_iterator): Move to header.
145 (all_tracepoints): New.
146 * tracepoint.c (start_tracing): Adjust.
147
1428b37a
SM
1482021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * breakpoint.c (breakpoint_safe_range): New.
151 (all_breakpoints_safe): New. Use instead of
152 ALL_BREAKPOINTS_SAFE where possible.
153
43892fdf
SM
1542021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
155
156 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
157 all_breakpoints.
158 (breakpoint_iterator): New.
159 (breakpoint_range): New.
160 (all_breakpoints): New.
161
bdef5723
HD
1622021-05-27 Hannes Domani <ssbssa@yahoo.de>
163
164 * python/py-tui.c (tui_py_window::output): Add full_window
165 argument.
166 (gdbpy_tui_write): Parse "full_window" argument.
167
d5a6313e
SM
1682021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * make-init-c: Add option to reverse function calls.
171
f39632d9
SM
1722021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
173
174 * Makefile.in (INIT_FILES_FILTER_OUT): New.
175 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
176 (stamp-init): Use make-init-c.
177 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
178 * silent-rules.mk (ECHO_INIT_C): Change.
179 * make-init-c: New file.
180
5e84b7ee
SM
1812021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
182
183 * command.h (add_alias_cmd): Accept target as
184 cmd_list_element. Update callers.
185
e0f25bd9
SM
1862021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
187
188 * command.h (add_info_alias): Accept target as
189 cmd_list_element. Update callers.
190
3947f654
SM
1912021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * command.h (add_com_alias): Accept target as
194 cmd_list_element. Update callers.
195
7bd22f56
SM
1962021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
197
198 * python/py-param.c (add_setshow_generic): Use return values of
199 add_setshow functions.
200
9f260536
SM
2012021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * mi/mi-main.c (_initialize_mi_main):
204 * python/py-auto-load.c (gdbpy_initialize_auto_load):
205 * remote.c (_initialize_remote):
206
af7f8f52
SM
2072021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
208
209 * command.h (set_show_commands): New.
210 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
211 add_setshow_boolean_cmd, add_setshow_filename_cmd,
212 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
213 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
214 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
215 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
216 Return set_show_commands. Adjust callers.
217 * cli/cli-decode.c (add_setshow_cmd_full): Return
218 set_show_commands, remove result parameters, adjust callers.
219
248f7165
TV
2202021-05-27 Tom de Vries <tdevries@suse.de>
221
222 PR symtab/27919
223 * dwarf2/read.c (process_psymtab_comp_unit):
224
2152b4fd
TV
2252021-05-27 Tom de Vries <tdevries@suse.de>
226
227 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
228 error.
229
6dcd1193
TV
2302021-05-27 Tom de Vries <tdevries@suse.de>
231
232 PR symtab/27898
233 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
234 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
235 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
236 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
237 load_all_dies init.
238 (dwarf2_per_cu_data): Remove load_all_dies field.
239
11bb5c41
SM
2402021-05-26 Simon Marchi <simon.marchi@efficios.com>
241
242 * regcache.c (reg_buffer::reg_buffer): Default-initialize
243 m_registers array.
244
ef5f598c
TT
2452021-05-26 Tom Tromey <tom@tromey.com>
246
247 * dwarf2/read.c (allocate_type_unit_groups_table)
248 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
249 htab_delete_entry.
250 (free_line_header_voidp): Remove.
251 * completer.c
252 (completion_tracker::completion_hash_entry::deleter): Remove.
253 (completion_tracker::discard_completions): Use htab_delete_entry.
254 * utils.h (htab_delete_entry): New template function.
255
a56889ae
HD
2562021-05-24 Hannes Domani <ssbssa@yahoo.de>
257
258 * python/py-tui.c (tui_py_window::refresh_window):
259 Avoid flickering.
260
fbf3c4b9
TV
2612021-05-23 Tom de Vries <tdevries@suse.de>
262
263 PR tdep/27822
264 * target.h (struct target_ops): Mention target_thread_architecture in
265 read_description comment.
266 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
267 pid to determine if process is 64-bit or 32-bit.
268 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
269 Same.
270 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
271 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
272 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
273 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
274 Likewise, use pid to determine if kernel supports reading VFP
275 registers.
276
8569d6e1
PW
2772021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
278
279 * main.c (enum cmdarg_kind): Fix option type comments for
280 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
281
778ae9cc
TV
2822021-05-21 Tom de Vries <tdevries@suse.de>
283
284 PR testsuite/25047
285 * contrib/cc-with-tweaks.sh: Handle -l.
286
6d1a09b7
TV
2872021-05-21 Tom de Vries <tdevries@suse.de>
288
289 PR breakpoint/27889
290 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
291 objects. Call get_jiter_objfile_data with the_objfile.
292
1487a14e
SM
2932021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
294
295 * linespec.c (linespec_p): Remove. Replace all uses with
296 "linespec *".
297
bb6203bf
AH
2982021-05-20 Alexandra Hájková <ahajkova@redhat.com>
299 Pedro Alves <pedro@palves.net>
300
301 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
302 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
303 command_line_up instead of struct command_line.
304 (build_command_line): Likewise.
305 (get_command_line): Update the cmd function call parameter.
306 (process_next_line): Use unique_ptr command_line_up instead
307 of struct command_line.
308 (recurse_read_control_structure): Change the the type of
309 next to command_line_up.
310 (read_command_lines_1): Change type of `next' to be
311 command_line_up and update all references of `next'
312 accordingly.
313
ed3130b7
AH
3142021-05-20 Alexandra Hájková <ahajkova@redhat.com>
315
316 * MAINTAINERS (Write After Approval): Add myself.
317
5433e20e
JB
3182021-05-19 John Baldwin <jhb@FreeBSD.org>
319
320 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
321
a5523cc3
AH
3222021-05-18 Alexandra Hájková <ahajkova@redhat.com>
323
324 * inflow.c (new_tty): Do not leak tty.
325
cd53fa40
TT
3262021-05-17 Tom Tromey <tom@tromey.com>
327
328 * dwarf2/read.h: Update include.
329 * dwarf2/read.c: Update include.
330 * dwarf2/line-header.c: Update include.
331 * dwarf2/cu.h: Update include.
332 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
333 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
334 * Makefile.in (COMMON_SFILES): Update.
335
347212b8
TT
3362021-05-17 Tom Tromey <tom@tromey.com>
337
338 * dwarf2/read.c (maybe_queue_comp_unit)
339 (dwarf2_per_objfile::age_comp_units): Update.
340 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
341 dwarf2_cu methods.
342 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
343 add_dependence>: New methods.
344 <m_dependencies>: Add "m_" prefix. Now private.
345 <m_mark>: Add "m_" prefix.
346 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
347 (dwarf2_mark_helper): New function.
348 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
349
839118f9
TT
3502021-05-17 Tom Tromey <tom@tromey.com>
351
352 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
353 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
354 (dwarf2_cu::dwarf2_cu): Move to cu.c.
355 * dwarf2/cu.c: New file.
356 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
357
8ae78a44
TT
3582021-05-17 Tom Tromey <tom@tromey.com>
359
360 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
361 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
362 Move to cu.h.
363 * dwarf2/cu.h: New file.
364
c1c0a7e1
AB
3652021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
366
367 * .dir-locals.el: Set sentence-end-double-space for all modes, and
368 set brace-list-open to 0 for C and C++ modes.
369
9e541c79
TT
3702021-05-17 Tom Tromey <tromey@adacore.com>
371
372 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
373 if frame is null.
374
59173216
TT
3752021-05-17 Tom Tromey <tromey@adacore.com>
376
377 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
378 (group_from_gid): Subtract one from strncpy length.
379
baea2f9d
TT
3802021-05-17 Tom Tromey <tromey@adacore.com>
381
382 * source.c (add_path): Check 'p' before using 'p[-1]'.
383
473ab964
TT
3842021-05-17 Tom Tromey <tromey@adacore.com>
385
386 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
387 (dwarf2_per_cu_data_up): New typedef.
388 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
389 <all_comp_units>: Use dwarf2_per_cu_data_up.
390 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
391 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
392 (create_cu_from_index_list): Likewise.
393 (create_signatured_type_table_from_index)
394 (create_cus_from_debug_names_list, add_type_unit)
395 (read_comp_units_from_section): Update.
396 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
397 (run_test): Update.
398
16e0020b
TT
3992021-05-17 Tom Tromey <tom@tromey.com>
400
401 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
402 (sort_tu_by_abbrev_offset): Remove.
403 (build_type_psymtabs): Update.
404
91e159e9
SM
4052021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
406
407 * py-project.toml: New.
408 * gdb-gdb.py.in: Re-format.
409
034dce7a
SM
4102021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
411
412 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
413 New, use it.
414 * command.h (cmd_func_p): Remove.
415 * cli/cli-decode.c (cmd_func_p): Remove.
416
1be99b11
SM
4172021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
420
99858724
SM
4212021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
424 to...
425 <alias_target>: ... this.
426 (add_alias_cmd): Rename old to target.
427 (add_info_alias): Rename old_name to target_name.
428 (add_com_alias): Likewise.
429
14b42fc4
SM
4302021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * Rename "prefixlist" parameters to "subcommands" throughout.
433 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
434 <subcommands>: ... this.
435 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
436 (lookup_cmd_with_subcommands): ... this.
437
ecd0a6b3
SM
4382021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
439
440 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
441
413b49c2
SM
4422021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
443
444 * cli/cli-decode.h (prefixname): Make const, move implementation
445 to cli/cli-decode.c.
446 * cli/cli-decode.c (cmd_list_element::prefixname): New.
447
ea11a98d
WP
4482021-05-16 Weimin Pan <weimin.pan@oracle.com>
449
450 * ctfread.c (new_symbol): Set function address.
451 (read_func_kind_type): Remove incorrect type name setting.
452 Don't copy name returned from ctf_type_ame_raw throughout file.
453
887e7158
TT
4542021-05-14 Tom Tromey <tom@tromey.com>
455
456 * rust-lang.c (rust_language::val_print_struct)
457 (rust_language::print_enum): Use common_val_print, not
458 value_print_inner.
459
55789354
TBA
4602021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
461
462 * python/py-inferior.c (infpy_get_connection_num): New function.
463 (inferior_object_getset): Add a new element for 'connection_num'.
464 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
465
2f63ec5c
AB
4662021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
469 argument type, update and re-wrap, header comment.
470 (remote_target::commit_resumed): Convert any_process_wildcard and
471 may_global_wildcard_vcont from int to bool.
472
ecf25064
KC
4732021-05-14 Kent Cheung <kent.cheung@arm.com>
474
475 * cp-valprint.c (cp_print_value): Replaced duplicate code.
476 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
477 just before printing child values.
478 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
479 printing string representation.
480 * python/py-prettyprint.c (print_children): Check max_depth just
481 before printing child values.
482 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
483 printing string representation.
484
df68e12b
MF
4852021-05-14 Mike Frysinger <vapier@gentoo.org>
486
487 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
488 sim/callback.h & sim/sim.h.
489
183aaaf7
MF
4902021-05-13 Mike Frysinger <vapier@gentoo.org>
491
492 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
493 sim-regno.h include.
494
737358ba
SM
4952021-05-13 Simon Marchi <simon.marchi@efficios.com>
496
497 * inf-child.h (inf_child_target) <follow_exec>: New.
498 * inf-child.c (inf_child_target::follow_exec): New.
499
294c36eb
SM
5002021-05-13 Simon Marchi <simon.marchi@efficios.com>
501
502 * target.h (struct target_ops) <follow_exec>: Add ptid_t
503 parameter.
504 (target_follow_exec): Likewise.
505 * target.c (target_follow_exec): Add ptid_t parameter.
506 * infrun.c (follow_exec): Adjust call to target_follow_exec,
507 don't push target nor create thread.
508 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
509 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
510 (thread_db_target::follow_exec): New.
511 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
512 (remote_target::follow_exec): Call
513 process_stratum_target::follow_exec.
514 * target-delegates.c: Re-generate.
515
2af87c85
SM
5162021-05-13 Simon Marchi <simon.marchi@efficios.com>
517
518 * infrun.c (follow_exec): Call target_follow_fork when
519 follow-exec-mode is same.
520 * target.h (target_follow_fork): Improve doc.
521
0b2256f7
SM
5222021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
523
524 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
525 Remove.
526 * cli/cli-setshow.c (do_show_command): Adjust.
527
0746f49b
LM
5282021-05-13 Luis Machado <luis.machado@linaro.org>
529
530 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
531 include the last address in the range.
532
4b8cb9dd
SM
5332021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
534
535 * python/python-internal.h (gdbpy_parse_command_name): Return
536 gdb::unique_xmalloc_ptr.
537 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
538 (cmdpy_init): Adjust.
539 * python/py-param.c (parmpy_init): Adjust.
540 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
541 when done.
542
ee35ce82
GB
5432021-05-12 George Barrett <bob@bob131.so>
544
545 * NEWS (Guile API): Note the addition of the new procedure.
546 * guile/scm-value.c (gdbscm_value_const_value): Add
547 implementation of value-const-value procedure.
548 (value_functions): Add value-const-value procedure.
549
9d4fc61d
GB
5502021-05-12 George Barrett <bob@bob131.so>
551
552 * NEWS (Guile API): Note the addition of new procedures.
553 * guile/scm-value.c (gdbscm_reference_value): Add helper function
554 for reference value creation.
555 (gdbscm_value_reference_value): Add implementation of
556 value-reference-value procedure.
557 (gdbscm_value_rvalue_reference_value): Add implementation of
558 value-rvalue-reference-value procedure.
559 (value_functions): Add value-reference-value procedure. Add
560 value-rvalue-reference-value procedure.
561
97cef6b7
GB
5622021-05-12 George Barrett <bob@bob131.so>
563
564 * guile/scm-type.c (type_integer_constants): Add binding for
565 TYPE_CODE_RVALUE_REF.
566 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
567 dereferencing of rvalue references.
568 * NEWS (Guile API): Note improvements in rvalue reference support.
569
d51344c9
MM
5702021-05-12 Markus Metzger <markus.t.metzger@intel.com>
571
572 * btrace.c (handle_pt_insn_events): Ignore status update enable
573 events.
574
f2a883a8
SM
5752021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
578 indentation.
579
64f30eb0
SM
5802021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
581
582 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
583
db1f6cd6
LS
5842021-05-10 Lancelot Six <lsix@lancelotsix.com>
585
586 PR gdb/27614
587 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
588 argument.
589
31aceaef
SM
5902021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
591
592 * nat/linux-waitpid.c (status_to_str): Show signal name.
593
75140e3b
AB
5942021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
595
596 * python/py-breakpoint.c (pybp_debug): New static global.
597 (show_pybp_debug): New function.
598 (pybp_debug_printf): Define.
599 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
600 (gdbpy_breakpoint_created): Add some debugging.
601 (gdbpy_breakpoint_deleted): Likewise.
602 (gdbpy_breakpoint_modified): Likewise.
603 (_initialize_py_breakpoint): New function.
604
1ef40c13
AB
6052021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
606
607 * python/py-unwind.c (pyuw_debug): Convert to bool.
608 (show_pyuw_debug): New function.
609 (pyuw_debug_printf): Define.
610 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
611 (pyuw_this_id): Convert to new debug print macros.
612 (pyuw_prev_register): Likewise.
613 (pyuw_sniffer): Likewise.
614 (pyuw_dealloc_cache): Likewise.
615 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
616 show function when registering.
617
927c4e35
AB
6182021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * dummy-frame.c (fprint_dummy_frames): Convert use of
621 fprint_frame_id to use frame_id::to_string.
622 * frame.c (fprint_field): Delete.
623 (fprint_frame_id): Moved to...
624 (frame_id::to_string): ...this, rewritten to return a string.
625 (fprint_frame): Convert use of fprint_frame_id to use
626 frame_id::to_string.
627 (compute_frame_id): Likewise.
628 (frame_id_p): Likewise.
629 (frame_id_eq): Likewise.
630 (frame_id_inner): Likewise.
631 * frame.h (struct frame_id) <to_string>: New member function.
632 (fprint_frame_id): Delete declaration.
633 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
634 fprint_frame_id to use frame_id::to_string.
635 * python/py-frame.c (frame_object_to_frame_info): Likewise.
636 * python/py-unwind.c (unwind_infopy_str): Likewise.
637 (pyuw_this_id): Likewise.
638
8d06918f
SM
6392021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * nat/linux-waitpid.c (status_to_str): Return std::string.
642 * nat/linux-waitpid.h (status_to_str): Likewise.
643 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
644 (linux_nat_target::attach): Adjust.
645 (linux_handle_extended_wait): Adjust.
646 (wait_lwp): Adjust.
647 (stop_wait_callback): Adjust.
648 (linux_nat_filter_event): Adjust.
649 (linux_nat_wait_1): Adjust.
650 * nat/linux-waitpid.c (status_to_str): Adjust.
651 * nat/linux-waitpid.h (status_to_str): Adjust.
652
550e9289
SM
6532021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
654
655 * infrun.h (infrun_debug_printf): Add missing space.
656
4655f850
PA
6572021-05-08 Pedro Alves <pedro@palves.net>
658
659 * linux-nat.c (linux_nat_target::supports_disable_randomization):
660 Remove references to HAVE_PERSONALITY.
661 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
662 (maybe_disable_address_space_randomization)
663 (~maybe_disable_address_space_randomizatio): Remove references to
664 HAVE_PERSONALITY.
665 * config.in, configure: Regenerate.
666
1845e254
AB
6672021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
670 include.
671 (source_script_with_search): Perform tilde expansion.
672
91e3c425
SM
6732021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * target-descriptions.c (struct target_desc_info) <filename>:
676 Make std::string.
677 (copy_inferior_target_desc_info): Adjust.
678 (target_desc_info_free): Adjust.
679 (target_find_description): Adjust.
680 (set_tdesc_filename_cmd): Adjust.
681 (show_tdesc_filename_cmd): Adjust.
682 (unset_tdesc_filename_cmd): Adjust.
683 (maint_print_c_tdesc_cmd): Adjust.
684
0b2f7ade
SM
6852021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
686
687 * target-descriptions.c (struct target_desc_info): Initialize
688 fields.
689 (get_tdesc_info): Use new.
690 (target_desc_info_free): Use delete.
691
820c4490
SM
6922021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * target-descriptions.c (struct target_desc_info) <fetched>:
695 bool.
696 (target_find_description): Adjust.
697 (target_clear_description): Adjust.
698
c2962e6a
SM
6992021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
700
701 * target-descriptions.c (struct target_desc_info) <tdesc>:
702 Adjust doc.
703 (target_desc_fetched): Remove.
704 (current_target_desc): Remove.
705 (target_description_filename): Remove.
706 (target_find_description): Adjust.
707 (target_clear_description): Adjust.
708 (target_current_description): Adjust.
709 (set_tdesc_filename_cmd): Adjust.
710 (show_tdesc_filename_cmd): Adjust.
711 (unset_tdesc_filename_cmd): Adjust.
712 (maint_print_c_tdesc_cmd): Adjust.
713 (maint_print_xml_tdesc_cmd): Adjust.
714
8a82de58
AB
7152021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
716
717 * infcmd.c (notice_new_inferior): Change parameter type.
718 * inferior.h (notice_new_inferior): Change parameter type.
719 * remote.c (remote_notice_new_inferior): Change parameter type to
720 bool. Also update type of local variable to bool.
721 (remote_target::update_thread_list): Change type of local variable
722 to bool.
723 (remote_target::process_stop_reply): Pass bool instead of int to
724 remote_notice_new_inferior.
725
bedc4734
SM
7262021-05-07 Simon Marchi <simon.marchi@efficios.com>
727
728 * target.c (target_stack::unpush): Call target_ops::find_beneath
729 to get the target beneath `t`.
730
27f0a431
SM
7312021-05-07 Simon Marchi <simon.marchi@efficios.com>
732
733 * target.c (target_close): Check in all inferiors that the
734 target is not pushed.
735
1d1669e4
AM
7362021-05-07 Aaron Merey <amerey@redhat.com>
737
738 * debuginfod-support.c (debuginfod_init): Remove.
739 (get_debuginfod_client): New function.
740
2698f5ea
TT
7412021-05-07 Tom Tromey <tom@tromey.com>
742
743 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
744 * utils.c (streq_hash): Remove.
745 * utils.h (streq_hash): Don't declare.
746 * completer.c (completion_tracker::discard_completions): Update
747 comment.
748 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
749
13123da8
SM
7502021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * Re-format all Python files using black.
753
9589edb8
AB
7542021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * guile/guile-internal.h (gdbscm_safe_source_script): Change
757 function return type.
758 * guile/guile.c (gdbscm_source_script): Update to handle change in
759 gdbscm_safe_source_script.
760 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
761 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
762 type.
763
ec66d6ea
SM
7642021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
765
766 * inferior.h (class inferior) <args>: Change type to
767 unique_xmalloc_ptr.
768 * inferior.c (inferior::~inferior): Don't free args.
769 * infcmd.c (get_inferior_args): Adjust.
770 (set_inferior_args): Adjust.
771
0618ecf6
AB
7722021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
773
774 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
775 breakpoint locations when the breakpoint actually has a location.
776
79aabb73
TBA
7772021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
778
779 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
780 * mi/mi-cmds.c: Change the binding of "-break-condition" to
781 mi_cmd_break_condition.
782 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
783 * breakpoint.h (set_breakpoint_condition): Declare a new
784 overload.
785 * breakpoint.c (set_breakpoint_condition): New overloaded function
786 extracted out from ...
787 (condition_command): ... this.
788 * NEWS: Mention the change.
789
10e578d7
TBA
7902021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
791
792 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
793 '--force-condition' flag to force the condition in the
794 '-break-insert' and '-dprintf-insert' commands.
795 * NEWS: Mention the change.
796
225bda24
TV
7972021-05-04 Tom de Vries <tdevries@suse.de>
798
799 PR guile/27806
800 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
801 memory functions.
802
b8efb248
TT
8032021-04-30 Tom Tromey <tom@tromey.com>
804
805 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
806 (add_signatured_type_cu_to_table): Remove.
807 (create_debug_type_hash_table): Assume dwo_file is non-null.
808 (create_debug_types_hash_table): Update comment.
809 (create_all_type_units): Remove.
810 (sort_tu_by_abbrev_offset): Update comment.
811 (build_type_psymtabs): Rename from build_type_psymtabs_1.
812 (build_type_psymtabs): Remove.
813 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
814 Update.
815 (read_comp_units_from_section): Add types_htab, section_kind
816 parameters.
817 (create_all_comp_units): Read type units.
818
91eea9cc
TT
8192021-04-30 Tom Tromey <tom@tromey.com>
820
821 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
822 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
823 <get_cu>: Now inline.
824 <all_type_units>: Remove.
825 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
826 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
827 (dwarf2_per_bfd::get_tu): Remove.
828 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
829 (create_signatured_type_table_from_index)
830 (create_signatured_type_table_from_debug_names)
831 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
832 (dwarf2_base_index_functions::expand_all_symtabs)
833 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
834 (dwarf2_base_index_functions::map_symbol_filenames)
835 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
836 (add_signatured_type_cu_to_table, create_all_type_units)
837 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
838 (create_all_comp_units): Update.
839 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
840 (write_debug_names): Update.
841
0d305d5c
TT
8422021-04-30 Tom Tromey <tom@tromey.com>
843
844 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
845 allocate_signatured_type>: Change return type.
846 <all_comp_units, all_type_units>: Hold unique pointers.
847 (struct dwarf2_per_cu_data): Add constructor and initializers.
848 (struct signatured_type): Derive from dwarf2_per_cu_data.
849 * dwarf2/read.c (type_unit_group): Derive from
850 dwarf2_per_cu_data.
851 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
852 (dwarf2_per_bfd::get_tu)
853 (dwarf2_per_bfd::allocate_signatured_type)
854 (dwarf2_per_bfd::allocate_signatured_type)
855 (create_cu_from_index_list, create_cus_from_index_list)
856 (create_signatured_type_table_from_index)
857 (create_signatured_type_table_from_debug_names)
858 (create_addrmap_from_aranges)
859 (dwarf2_base_index_functions::find_last_source_symtab)
860 (dw_expand_symtabs_matching_file_matcher)
861 (dwarf2_gdb_index::expand_symtabs_matching)
862 (dwarf2_base_index_functions::map_symbol_filenames)
863 (create_cus_from_debug_names_list)
864 (dw2_debug_names_iterator::next)
865 (dwarf2_debug_names_index::expand_symtabs_matching)
866 (create_debug_type_hash_table, add_type_unit)
867 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
868 Update.
869 (allocate_type_unit_groups_table): Use delete.
870 (create_type_unit_group): Change return type. Use new.
871 (get_type_unit_group, build_type_psymtabs_1)
872 (build_type_psymtab_dependencies)
873 (process_skeletonless_type_unit, set_partial_user)
874 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
875 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
876 (read_signatured_type): Update.
877 (dwarf2_find_containing_comp_unit): Change type of
878 'all_comp_units'.
879 (run_test): Update.
880 (dwarf2_per_bfd::allocate_per_cu)
881 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
882 Use new.
883 (add_signatured_type_cu_to_table): Update.
884 * dwarf2/index-write.c (write_one_signatured_type)
885 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
886 (write_debug_names): Update.
887
1bee48c7
TT
8882021-04-30 Tom Tromey <tromey@adacore.com>
889
890 * nat/windows-nat.h (get_image_name): Don't declare.
891 * nat/windows-nat.c (get_image_name): Now static.
892
e228ef97
TT
8932021-04-30 Tom Tromey <tromey@adacore.com>
894
895 * windows-nat.c (windows_nat::handle_load_dll): Update.
896 (windows_nat_target::get_windows_debug_event): Call
897 dll_loaded_event.
898 (windows_add_all_dlls, windows_add_dll): Move to
899 nat/windows-nat.c.
900 * nat/windows-nat.h (handle_load_dll): Change parameters.
901 (dll_loaded_event, windows_add_all_dlls): Declare.
902 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
903 from windows-nat.c.
904 (dll_loaded_event): New function.
905
de071872
TT
9062021-04-30 Tom Tromey <tromey@adacore.com>
907
908 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
909 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
910 Declare.
911 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
912 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
913
9e439f00
TT
9142021-04-30 Tom Tromey <tromey@adacore.com>
915
916 * windows-nat.c: Move code to nat/windows-nat.[ch].
917 (_initialize_windows_nat): Call initialize_loadable.
918 * nat/windows-nat.h (AdjustTokenPrivileges)
919 (DebugActiveProcessStop, DebugBreakProcess)
920 (DebugSetProcessKillOnExit, EnumProcessModules)
921 (EnumProcessModulesEx, GetModuleInformation)
922 (GetModuleFileNameExA, GetModuleFileNameExW)
923 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
924 (GetCurrentConsoleFont, Wow64SuspendThread)
925 (Wow64GetThreadContext, Wow64SetThreadContext)
926 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
927 (AdjustTokenPrivileges_ftype)
928 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
929 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
930 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
931 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
932 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
933 (GetConsoleFontSize_ftype)
934 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
935 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
936 (Wow64GetThreadSelectorEntry_ftype): Likewise.
937 (initialize_loadable): Declare.
938 * nat/windows-nat.c (AdjustTokenPrivileges)
939 (DebugActiveProcessStop, DebugBreakProcess)
940 (DebugSetProcessKillOnExit, EnumProcessModules)
941 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
942 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
943 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
944 (Wow64GetThreadContext, Wow64SetThreadContext)
945 (Wow64GetThreadSelectorEntry): Define.
946 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
947 from windows-nat.c.
948 (initialize_loadable): Likewise, and rename.
949
1053c638
TT
9502021-04-30 Tom Tromey <tromey@adacore.com>
951
952 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
953 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
954 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
955 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
956 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
957 (bad): New template functions.
958 (_initialize_loadable): Update.
959
2869ac4b
TT
9602021-04-30 Tom Tromey <tromey@adacore.com>
961
962 * ada-lang.c (ada_index_type): Use ada_check_typedef.
963
e197dfae
SM
9642021-04-29 Simon Marchi <simon.marchi@efficios.com>
965
966 * auto-load.h: Split namespace declaration.
967
89ba430c
SM
9682021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
969
970 * infrun.c (save_waitstatus): Move variables to inner scope.
971
8eb82ba1
AB
9722021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * NEWS: Fix typo and stray full stop.
975
db2534b7
TT
9762021-04-28 Tom Tromey <tromey@adacore.com>
977
978 * ada-exp.y (primary): Use new type for null pointer.
979 * ada-lang.c (ada_type_match): Remove "may_deref"
980 parameter. Handle null pointer.
981 (ada_args_match): Update.
982 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
983 Handle null pointer.
984
edeaceda
AB
9852021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * NEWS: Mention new commands.
988 * python/python.c (python_ignore_environment): New static global.
989 (show_python_ignore_environment): New function.
990 (set_python_ignore_environment): New function.
991 (python_dont_write_bytecode): New static global.
992 (show_python_dont_write_bytecode): New function.
993 (set_python_dont_write_bytecode): New function.
994 (_initialize_python): Register new commands.
995
041ca48e
AB
9962021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
997
998 * extension-priv.h (struct extension_language_ops): Rename
999 'finish_initialization' to 'initialize'.
1000 * extension.c (finish_ext_lang_initialization): Renamed to...
1001 (ext_lang_initialization): ...this, update comment, and updated
1002 the calls to reflect the change in struct extension_language_ops.
1003 * extension.h (finish_ext_lang_initialization): Renamed to...
1004 (ext_lang_initialization): ...this.
1005 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1006 (gdbscm_initialize): ...this, update comment at definition.
1007 (guile_extension_ops): Update.
1008 * main.c (captured_main_1): Update call to
1009 finish_ext_lang_initialization.
1010 * python/python.c (gdbpy_finish_initialization): Rename to...
1011 (gdbpy_initialize): ...this, update comment at definition, and
1012 update call to do_finish_initialization.
1013 (python_extension_ops): Update.
1014 (do_finish_initialization): Rename to...
1015 (do_initialize): ...this, and update comment.
1016
1178f01a
AB
10172021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1018
1019 * main.c (captured_main_1): Add a call to
1020 finish_ext_lang_initialization.
1021 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1022
880ae75a
AB
10232021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1024
1025 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1026 (gdbscm_finish_initialization): Add code moved from
1027 _initialize_guile.
1028 (_initialize_guile): Move code to gdbscm_finish_initialization.
1029 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1030 _initialize_scm_arch.
1031 (_initialize_scm_arch): New function.
1032 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1033 into _initialize_scm_block.
1034 (_initialize_scm_block): New function.
1035 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1036 into _initialize_scm_frame.
1037 (_initialize_scm_frame): New function.
1038 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1039 into _initialize_scm_objfile.
1040 (_initialize_scm_objfile): New function.
1041 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1042 code into _initialize_scm_progspace.
1043 (_initialize_scm_progspace): New function.
1044 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1045 into _initialize_scm_symbol.
1046 (_initialize_scm_symbol): New function.
1047 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1048 into _initialize_scm_symtab.
1049 (_initialize_scm_symtab): New function.
1050 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1051 _initialize_scm_type.
1052 (_initialize_scm_type): New function.
1053
8e3685bf
AB
10542021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * python/py-arch.c (_initialize_py_arch): New function.
1057 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1058 * python/py-block.c (_initialize_py_block): New function.
1059 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1060 * python/py-inferior.c (_initialize_py_inferior): New function.
1061 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1062 * python/py-objfile.c (_initialize_py_objfile): New function.
1063 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1064 * python/py-progspace.c (_initialize_py_progspace): New function.
1065 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1066 * python/py-registers.c (_initialize_py_registers): New function.
1067 (gdbpy_initialize_registers): Move code to
1068 _initialize_py_registers.
1069 * python/py-symbol.c (_initialize_py_symbol): New function.
1070 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1071 * python/py-symtab.c (_initialize_py_symtab): New function.
1072 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1073 * python/py-type.c (_initialize_py_type): New function.
1074 (gdbpy_initialize_types): Move code to _initialize_py_type.
1075 * python/py-unwind.c (_initialize_py_unwind): New function.
1076 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1077 * python/python.c (_initialize_python): Move call to
1078 do_start_initialization to gdbpy_finish_initialization.
1079 (gdbpy_finish_initialization): Add call to
1080 do_start_initialization.
1081
913832e9
AB
10822021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1083
1084 * extension.c (struct scoped_default_signal): New struct.
1085 (scoped_default_sigint): New typedef.
1086 (finish_ext_lang_initialization): Make use of
1087 scoped_default_sigint.
1088
a3b5ef3e
AB
10892021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * main.c (captured_main_1): Don't pass argument to gdb_init.
1092 * top.c (gdb_init): Remove unused argument, and add header
1093 comment.
1094 * top.h (gdb_init): Remove argument.
1095
b9f90c72
LM
10962021-04-27 Luis Machado <luis.machado@linaro.org>
1097
1098 * psymtab.c (psymbol_functions::dump): Output newline.
1099 Remove wrap.
1100 * symmisc.c (dump_objfile): Likewise.
1101
2c473def
MW
11022021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1103 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1106 when attaching the 'auto_load_new_objfile' observer, so
1107 other observers can specify it as a dependency.
1108 * gdb/auto-load.h (struct token): Declare
1109 'auto_load_new_objfile_observer_token' as token to be used
1110 for the 'auto_load_new_objfile' observer.
1111 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1112 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1113 observer, so it gets notified after the latter.
1114
9a6e099f
MW
11152021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1116 Simon Marchi <simon.marchi@polymtl.ca>
1117
1118 * unittests/observable-selftests.c (dependency_test_counters):
1119 New.
1120 (observer_token0, observer_token1, observer_token2,
1121 observer_token3, observer_token4, observer_token5): New.
1122 (struct dependency_observer_data): New struct.
1123 (observer_dependency_test_callback): New function.
1124 (test_observers): New.
1125 (run_dependency_test): New function.
1126 (test_dependency): New.
1127 (_initialize_observer_selftest): Register dependency test.
1128
bea3329b
SM
11292021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 PR gdb/27773
1132 * cli/cli-dump.c (dump_binary_file): Check result of
1133 gdb_fopen_cloexec.
1134
c290cb01
ST
11352021-04-25 Sergei Trofimovich <siarheit@google.com>
1136
1137 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1138 by passing `process_stratum_target*` parameter.
1139
fbb46296
LS
11402021-04-25 Lancelot Six <lsix@lancelotsix.com>
1141
1142 PR gdb/22640
1143 * typeprint.h (struct type_print_options): Add print_in_hex
1144 flag.
1145 (struct print_offset_data): Add print_in_hex flag, add a
1146 constructor accepting a type_print_options* argument.
1147 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1148 default value for print_in_hex.
1149 (print_offset_data::indentation): Allow more horizontal space.
1150 (print_offset_data::print_offset_data): Add ctor.
1151 (print_offset_data::maybe_print_hole, print_offset_data::update):
1152 Handle the print_in_hex flag.
1153 (whatis_exp): Handle 'x' and 'd' flags.
1154 (print_offsets_and_sizes_in_hex): Declare.
1155 (set_print_offsets_and_sizes_in_hex): Create.
1156 (show_print_offsets_and_sizes_in_hex): Create.
1157 (_initialize_typeprint): Update help message for the ptype
1158 command, register the 'set print type hex' and 'show print type
1159 hex' commands.
1160 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1161 (c_type_print_base): Construct the print_offset_data
1162 object using the type_print_optons parameter.
1163 * rust-lang.c (rust_language::print_type): Construct the
1164 print_offset_data object using the type_print_optons parameter.
1165 * NEWS: Mention the new flags of the ptype command.
1166
18bbba46
LS
11672021-04-25 Lancelot Six <lsix@lancelotsix.com>
1168
1169 * typeprint.h (struct type_print_options): Move before
1170 print_offset_data.
1171
77393c9b
JB
11722021-04-25 Joel Brobecker <brobecker@adacore.com>
1173
1174 GDB 10.2 released.
1175
98c897e3
SM
11762021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1177
1178 * observable.c (observer_debug): Change to bool.
1179
9fc29955
AB
11802021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * dwarf2/read.c: Add 'unordered_set' include.
1183 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1184 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1185 of per_Bfd->filenames_cache cache, and use function local
1186 filenames_cache instead. Reindent.
1187 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1188
0406545d
SM
11892021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1190
1191 * breakpoint.c (iterate_over_bp_locations): Change callback to
1192 function view, remove data parameter.
1193 * breakpoint.h (iterate_over_bp_locations): Likewise.
1194 * record-full.c (record_full_sync_record_breakpoints): Remove
1195 data parameter.
1196
432ce4cf
TT
11972021-04-22 Tom Tromey <tom@tromey.com>
1198
1199 * c-typeprint.c (c_type_print_base_struct_union): Use
1200 print_spaces_filtered_with_print_options.
1201
e25d6d93
SM
12022021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1203
1204 PR gdb/27757
1205 * python/py-type.c (typy_range): Check that bounds are constant
1206 before accessing them as such.
1207 * guile/scm-type.c (gdbscm_type_range): Likewise.
1208
4efeb0d3
TBA
12092021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1210
1211 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1212 * inferior.c (inferior::add_continuation): New method, adapted
1213 from 'add_inferior_continuation'.
1214 (inferior::do_all_continuations): New method, adapted from
1215 'do_all_inferior_continuations'.
1216 (inferior::~inferior): Clear the list of continuations directly.
1217 * inferior.h (class inferior) <continuations>: Rename into...
1218 <m_continuations>: ...this and make private.
1219 * continuations.c: Remove.
1220 * continuations.h: Remove.
1221 * event-top.c: Don't include "continuations.h".
1222
1223 Update the users below.
1224 * inf-loop.c (inferior_event_handler)
1225 * infcmd.c (attach_command)
1226 (notice_new_inferior): Update.
1227
c4c493de
TBA
12282021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1229
1230 * inferior.h (class inferior) <continuations>: Change the type
1231 to be an std::list of std::function's.
1232 Update the references and uses below.
1233 * continuations.c (struct continuation): Delete.
1234 (make_continuation): Delete.
1235 (do_my_continuations_1): Delete.
1236 (do_my_continuations): Delete.
1237 (discard_my_continuations_1): Delete.
1238 (discard_my_continuations): Delete.
1239 (add_inferior_continuation): Update.
1240 (do_all_inferior_continuations): Update.
1241 (discard_all_inferior_continuations): Update.
1242 * continuations.h (add_inferior_continuation): Update to take
1243 an std::function as the parameter.
1244 * infcmd.c (struct attach_command_continuation_args): Delete.
1245 (attach_command_continuation): Delete.
1246 (attach_command_continuation_free_args): Delete.
1247 (attach_command): Update.
1248 (notice_new_inferior): Update.
1249
1194676e
TBA
12502021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1251
1252 * continuations.h: Update the general comment.
1253 * inferior.h (class inferior) <continuations>: Update the comment.
1254 * interps.c: Do not include "continuations.h".
1255
35682f0a
TBA
12562021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1257
1258 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1259 parameter. Update the references below.
1260 * continuations.c (do_my_continuations_1)
1261 (do_my_continuations)
1262 (do_all_inferior_continuations): Update.
1263 * inf-loop.c (inferior_event_handler): Update.
1264 * infcmd.c (attach_command_continuation): Update.
1265
6fee5eee
TBA
12662021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1267
1268 * infcmd.c (attach_post_wait): Update the function comment.
1269
27d0790a
TBA
12702021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1271
1272 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1273 Update the references below.
1274 (struct attach_command_continuation_args)
1275 (attach_command_continuation)
1276 (attach_command_continuation_free_args)
1277 (attach_command)
1278 (notice_new_inferior): Update to remove the reference to 'args'.
1279
c39ebbf4
TV
12802021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1281 Tom de Vries <tdevries@suse.de>
1282
1283 PR remote/27710
1284 * remote.c (remote_target_is_non_stop_p): New function.
1285 * remote.h (remote_target_is_non_stop_p): Declare.
1286 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1287 to check non-stopness using notif_state->remote rather current target.
1288
22f80c0f
TT
12892021-04-22 Tom Tromey <tom@tromey.com>
1290
1291 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1292 (struct typed_val_int) <val>: Now ULONGEST.
1293 (rust_parser::parse_array_type): Remove negative check.
1294 (rust_lex_int_test): Change 'value' to ULONGEST.
1295
05f3c0f0
AB
12962021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1297
1298 * arch-utils.c (default_addressable_memory_unit_size): Return a
1299 value based on bfd's bits per byte.
1300
7e7a35fb
TT
13012021-04-21 Tom Tromey <tom@tromey.com>
1302
1303 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1304 unsigned char.
1305 (struct dwarf2_per_cu_data): Rearrange.
1306 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1307 unsigned char.
1308 (struct comp_unit_head): Rearrange.
1309 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1310
ff507520
TV
13112021-04-21 Tom de Vries <tdevries@suse.de>
1312
1313 PR build/27681
1314 * configure.ac: Remove --without-included-regex/--with-included-regex.
1315 * config.in: Regenerate.
1316 * configure: Regenerate.
1317 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1318
10a636cc
TBA
13192021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1320
1321 * breakpoint.h (create_breakpoint): Add a new parameter,
1322 'force_condition'.
1323 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1324 argument when 'parse_extra' is false to check if the condition
1325 is invalid at all of the breakpoint locations.
1326 Update the users below.
1327 (break_command_1)
1328 (dprintf_command)
1329 (trace_command)
1330 (ftrace_command)
1331 (strace_command)
1332 (create_tracepoint_from_upload): Update.
1333 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1334 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1335 * python/py-breakpoint.c (bppy_init): Update.
1336 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1337
85c88e2a
TBA
13382021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1339
1340 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1341 disabled-by-condition locations on MI-like output.
1342 (breakpoint_1): Do not display the disabled-by-condition footnote
1343 if the output is MI-like.
1344
fd34472c
FC
13452021-04-21 Frederic Cambus <fred@statdns.com>
1346
1347 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1348 update year range in generated copyright notices.
1349
184dcd81
FW
13502021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1351
1352 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1353 qualifier_seq_noopt.
1354
525174e8
FW
13552021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1356
1357 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1358
f5dc2ee3
AB
13592021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1362 (producer_is_icc): Replace use of std::regex with gdb's
1363 compiled_regex.
1364
42c2c694
TT
13652021-04-17 Tom Tromey <tom@tromey.com>
1366
1367 PR gdb/23743:
1368 * dwarf2/read.c (class offset_view): New.
1369 (struct symbol_table_slot): Remove.
1370 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1371 <symbol_name_index, symbol_vec_index>: New methods.
1372 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1373 Rewrite.
1374 (read_gdb_index_from_buffer): Update.
1375 (struct dw2_symtab_iterator) <vec>: Change type.
1376 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1377 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1378 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1379 <append_array, append_offset>: New methods.
1380 (write_hash_table, add_address_entry, write_gdbindex_1)
1381 (write_debug_names): Update.
1382 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1383
da314dd3
TT
13842021-04-17 Tom Tromey <tom@tromey.com>
1385
1386 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1387 partial_symtabs.
1388
0b7b2c2a
TT
13892021-04-17 Tom Tromey <tom@tromey.com>
1390
1391 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1392 from map_matching_symbols. Change parameters.
1393 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1394 Rename from map_matching_symbols. Change parameters.
1395 * dwarf2/read.c (struct dwarf2_gdb_index)
1396 <expand_matching_symbols>: Rename from map_matching_symbols.
1397 Change parameters.
1398 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1399 Rename from map_matching_symbols. Change parameters.
1400 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1401 dw2_map_matching_symbols. Change parameters.
1402 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1403 implementation.
1404 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1405 map_matching_symbols. Change parameters.
1406 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1407 from map_matching_symbols. Change parameters.
1408 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1409 map_matching_symbols. Change parameters.
1410 * ada-lang.c (map_matching_symbols): New function.
1411 (add_nonlocal_symbols): Update.
1412
90160b57
TT
14132021-04-17 Tom Tromey <tom@tromey.com>
1414
1415 * quick-symbol.h (struct quick_symbol_functions)
1416 <expand_symtabs_with_fullname>: Remove.
1417 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1418 Remove.
1419 * psympriv.h (struct psymbol_functions)
1420 <expand_symtabs_with_fullname>: Remove.
1421 * dwarf2/read.c (struct dwarf2_base_index_functions)
1422 <expand_symtabs_with_fullname>: Remove.
1423 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1424 Remove.
1425 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1426 Update comment.
1427 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1428 Rewrite.
1429
7089bd88
TT
14302021-04-17 Tom Tromey <tom@tromey.com>
1431
1432 * symfile-debug.c (objfile::expand_symtabs_for_function):
1433 Rewrite.
1434 * quick-symbol.h (struct quick_symbol_functions)
1435 <expand_symtabs_for_function>: Remove.
1436 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1437 Remove.
1438 * psympriv.h (struct psymbol_functions)
1439 <expand_symtabs_for_function>: Remove.
1440 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1441 Update comment.
1442 * dwarf2/read.c (struct dwarf2_gdb_index)
1443 <expand_symtabs_for_function>: Remove.
1444 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1445 Remove.
1446 (find_slot_in_mapped_hash): Remove.
1447 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1448 (dw2_symtab_iter_init): Remove one overload.
1449 (dwarf2_gdb_index::expand_symtabs_for_function)
1450 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1451
536a40f3
TT
14522021-04-17 Tom Tromey <tom@tromey.com>
1453
1454 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1455 Rewrite.
1456 * quick-symbol.h (struct quick_symbol_functions)
1457 <map_symtabs_matching_filename>: Remove.
1458 * psymtab.c (partial_map_expand_apply)
1459 (psymbol_functions::map_symtabs_matching_filename): Remove.
1460 * psympriv.h (struct psymbol_functions)
1461 <map_symtabs_matching_filename>: Remove.
1462 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1463 Update comment.
1464 * dwarf2/read.c (struct dwarf2_base_index_functions)
1465 <map_symtabs_matching_filename>: Remove.
1466 (dw2_map_expand_apply)
1467 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1468 Remove.
1469
84d865e3
TT
14702021-04-17 Tom Tromey <tom@tromey.com>
1471
1472 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1473 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1474 Remove.
1475 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1476 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1477 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1478 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1479 Remove.
1480 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1481 (dwarf2_gdb_index::lookup_symbol)
1482 (dwarf2_debug_names_index::lookup_symbol): Remove.
1483
3bfa51a7
TT
14842021-04-17 Tom Tromey <tom@tromey.com>
1485
1486 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1487 * symmisc.c (maintenance_expand_symtabs): Update.
1488 * symfile.c (expand_symtabs_matching): Update.
1489 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1490 parameter.
1491 * quick-symbol.h (struct quick_symbol_functions)
1492 <expand_symtabs_matching>: Add 'domain' parameter.
1493 * psymtab.c (recursively_search_psymtabs)
1494 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1495 parameter.
1496 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1497 Add 'domain' parameter.
1498 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1499 'domain' parameter.
1500 * linespec.c (iterate_over_all_matching_symtabs): Update.
1501 * dwarf2/read.c (struct dwarf2_gdb_index)
1502 <expand_symtabs_matching>: Add 'domain' parameter.
1503 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1504 'domain' parameter.
1505 (dw2_expand_symtabs_matching)
1506 (dwarf2_gdb_index::expand_symtabs_matching)
1507 (dw2_debug_names_iterator)
1508 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1509 parameter.
1510
03a8ea51
TT
15112021-04-17 Tom Tromey <tom@tromey.com>
1512
1513 * symtab.c (global_symbol_searcher::expand_symtabs)
1514 (default_collect_symbol_completion_matches_break_on): Update.
1515 * symmisc.c (maintenance_expand_symtabs): Update.
1516 * symfile.h (expand_symtabs_matching): Add search_flags
1517 parameter.
1518 * symfile.c (expand_symtabs_matching): Add search_flags
1519 parameter.
1520 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1521 search_flags parameter.
1522 * quick-symbol.h (struct quick_symbol_functions)
1523 <expand_symtabs_matching>: Add search_flags parameter.
1524 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1525 * psymtab.c (recursively_search_psymtabs)
1526 (psymbol_functions::expand_symtabs_matching): Add search_flags
1527 parameter.
1528 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1529 Add search_flags parameter.
1530 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1531 search_flags parameter.
1532 * linespec.c (iterate_over_all_matching_symtabs): Update.
1533 * dwarf2/read.c (struct dwarf2_gdb_index)
1534 <expand_symtabs_matching>: Add search_flags parameter.
1535 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1536 search_flags parameter.
1537 (dw2_map_matching_symbols): Update.
1538 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1539 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1540 parameter.
1541 (dw2_debug_names_iterator): Change block_index to search flags.
1542 <m_block_index>: Likewise.
1543 (dw2_debug_names_iterator::next)
1544 (dwarf2_debug_names_index::lookup_symbol)
1545 (dwarf2_debug_names_index::expand_symtabs_for_function)
1546 (dwarf2_debug_names_index::map_matching_symbols)
1547 (dwarf2_debug_names_index::map_matching_symbols): Update.
1548 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1549 search_flags parameter.
1550 * ada-lang.c (ada_add_global_exceptions)
1551 (collect_symbol_completion_matches): Update.
1552
df35e626
TT
15532021-04-17 Tom Tromey <tom@tromey.com>
1554
1555 * symtab.c (default_collect_symbol_completion_matches_break_on):
1556 Update.
1557 * symfile.h (expand_symtabs_matching): Return bool.
1558 * symfile.c (expand_symtabs_matching): Return bool.
1559 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1560 bool.
1561 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1562 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1563 bool.
1564 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1565 bool.
1566 * psympriv.h (struct psymbol_functions)
1567 <expand_symtabs_matching>: Return bool.
1568 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1569 bool.
1570 * dwarf2/read.c (struct dwarf2_gdb_index)
1571 <expand_symtabs_matching>: Return bool.
1572 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1573 Return bool.
1574 (dw2_expand_symtabs_matching_symbol): Return bool.
1575 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1576 (dw2_expand_symtabs_matching)
1577 (dwarf2_gdb_index::expand_symtabs_matching)
1578 (dwarf2_debug_names_index::expand_symtabs_matching)
1579 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1580
e357e990
TT
15812021-04-17 Tom Tromey <tom@tromey.com>
1582
1583 * quick-symbol.h (enum block_search_flag_values): New.
1584 (block_search_flags): New enum flags type.
1585
3cbc7ac3
TT
15862021-04-16 Tom Tromey <tom@tromey.com>
1587
1588 * rust-parse.c: New file.
1589 * rust-exp.y: Remove.
1590 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1591 (SFILES): Remove rust-exp.y.
1592 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1593
1b6b755e
LM
15942021-04-16 Luis Machado <luis.machado@linaro.org>
1595
1596 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1597
c45ecc9d
JB
15982021-04-15 John Baldwin <jhb@FreeBSD.org>
1599
1600 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1601 use throughout file.
1602
a15a276b
TT
16032021-04-15 Tom Tromey <tromey@adacore.com>
1604
1605 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1606 arrays.
1607
644a2e75
TT
16082021-04-15 Tom Tromey <tromey@adacore.com>
1609
1610 * printcmd.c (print_variable_and_value): Use
1611 common_val_print_checked.
1612
9e5e03df
TT
16132021-04-15 Tom Tromey <tromey@adacore.com>
1614
1615 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1616 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1617 Update.
1618 * p-exp.y (variable): Update.
1619 * m2-exp.y (variable): Update.
1620 * go-exp.y (variable): Update.
1621 * expprint.c (dump_for_expression): New overload.
1622 * expop.h (check_objfile): New overload.
1623 (check_constant): New overload.
1624 (class var_value_operation): Use block_symbol.
1625 <get_symbol>: Rewrite.
1626 * eval.c (var_value_operation::evaluate)
1627 (var_value_operation::evaluate_funcall)
1628 (var_value_operation::evaluate_for_address)
1629 (var_value_operation::evaluate_for_address)
1630 (var_value_operation::evaluate_with_coercion)
1631 (var_value_operation::evaluate_for_sizeof)
1632 (var_value_operation::evaluate_for_cast): Update.
1633 * d-exp.y (PrimaryExpression): Update.
1634 * c-exp.y (variable): Update.
1635 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1636 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1637 (ada_var_value_operation::evaluate)
1638 (ada_var_value_operation::resolve)
1639 (ada_funcall_operation::resolve): Update.
1640 * ada-exp.y (write_var_from_sym, write_object_renaming)
1641 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1642 (maybe_overload): Update.
1643 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1644
5809fbf2
TT
16452021-04-15 Tom Tromey <tom@tromey.com>
1646 Andrew Burgess <andrew.burgess@embecosm.com>
1647
1648 * NEWS: Add entry.
1649 * main.c (captured_main_1): Call check_quiet_mode.
1650 * top.c (startup_quiet): New global.
1651 (check_quiet_mode): New function.
1652 (show_startup_quiet): New function.
1653 (init_main): Register new command.
1654 * top.h (check_quiet_mode): Declare.
1655
92e4e97a
AB
16562021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 PR cli/25956
1659 * NEWS: Mention new early init files and command line options.
1660 * config.in: Regenerate.
1661 * configure: Regenerate.
1662 * configure.ac: Define GDBEARLYINIT.
1663 * main.c (get_earlyinit_files): New function.
1664 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1665 CMDARG_EARLYINIT_COMMAND.
1666 (captured_main_1): Add support for new command line flags, and for
1667 processing startup files.
1668 (print_gdb_help): Include startup files in the output.
1669
54b4dcc5
AB
16702021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1673 (relocate_file_path_maybe_in_datadir): ...this.
1674 (class gdb_initfile_finder): New class.
1675 (get_init_files): Now uses gdb_initfile_finder.
1676 (print_gdb_help): Print 'None found' when there are no init files.
1677
34dc0f95
TBA
16782021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1679
1680 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1681 corresponding child of the abstract DIE when iterating the
1682 children of the concrete DIE.
1683
329534fd
TV
16842021-04-13 Tom de Vries <tdevries@suse.de>
1685
1686 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1687 type to regoff_t *.
1688
d9d2ef05
LM
16892021-04-13 Luis Machado <luis.machado@linaro.org>
1690
1691 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1692 hex values.
1693
c8a37944
WS
16942021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1695
1696 * rs6000-tdep.c: Add support for single-stepping of
1697 prefixed instructions.
1698
b722acca
WS
16992021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1700
e3d528d7
WS
1701 PR gdb/27525
1702 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1703 handle the addpcis/lnia instruction.
1704
17052021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1706
b722acca
WS
1707 * MAINTAINERS (Write After Approval): Add myself.
1708
6ba4cb84
CL
17092021-4-12 Carl Love <cel@us.ibm.com>
1710
1711 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1712 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1713 float128.
1714
d4717483
SM
17152021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1716
1717 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1718 * nat/windows-nat.h: Likewise.
1719
b3885679
EZ
17202021-04-10 Eli Zaretskii <eliz@gnu.org>
1721
1722 * windows-nat.c (windows_nat::handle_load_dll): Call
1723 windows_add_dll if get_image_name failed to glean the name of the
1724 DLL by using the lpImageName pointer.
1725 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1726 (windows_add_dll): Now does what windows_add_all_dlls did before,
1727 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1728 specifies the address where the DLL was loaded into the inferior,
1729 and looks for the single DLL loaded at that address.
1730
1ef6a596
LM
17312021-04-09 Luis Machado <luis.machado@linaro.org>
1732
1733 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1734
83a559f7
DQ
17352021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1736
1737 * darwin-nat.c (darwin_nat_target::resume): Remove status
1738 variable.
1739
16e311ab
FW
17402021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1741
1742 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1743 prologue end for Intel compilers.
1744 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1745 * producer.c (producer_is_icc_ge_19): New function.
1746 * producer.h (producer_is_icc_ge_19): New declaration.
1747
fbb3bcfc
FW
17482021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1749
1750 * producer.c: (producer_is_icc): Update for new version scheme.
1751 (producer_parsing_tests): Update names and expected results.
1752 * producer.h: (producer_is_icc): Update comment accordingly.
1753
e97007b6
SM
17542021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * target.h (struct target_ops) <follow_fork>: Return void.
1757 (target_follow_fork): Likewise.
1758 * target.c (default_follow_fork): Likewise.
1759 (target_follow_fork): Likewise.
1760 * infrun.c (follow_fork_inferior): Adjust.
1761 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1762 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1763 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1764 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1765 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1766 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1767 * remote.c (class remote_target) <follow_fork>: Likewise.
1768 (remote_target::follow_fork): Likewise.
1769 * target-delegates.c: Re-generate.
1770
dc2b480f
WP
17712021-04-07 Weimin Pan <weimin.pan@oracle.com>
1772
1773 * ctfread.c (fetch_tid_type): New function, use throughout file.
1774 (read_forward_type): New function.
1775 (read_type_record): Call read_forward_type.
1776
0a703a4c
AB
17772021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * f-exp.h (class fortran_structop_operation): New class.
1780 * f-exp.y (exp): Create fortran_structop_operation instead of the
1781 generic structop_operation.
1782 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1783 expression as EVAL_NORMAL if the result type was dynamic so we can
1784 extract the actual array bounds.
1785 (fortran_structop_operation::evaluate): New function.
1786
17872021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * eval.c (evaluate_subexp_standard): Remove
1790 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1791 STRUCTOP_PTR.
1792
30ab3586
AB
17932021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1794
1795 * valops.c (value_cast): Call value_deeply_equal before performing
1796 any cast.
1797
5e18990f
AB
17982021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1799
1800 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1801 the function.
1802
56d467f4
CT
18032021-04-07 Caroline Tice <cmtice@google.com>
1804
1805 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1806 the search paths used resolve relative location of .dwo file.
1807
1fd999d9
AB
18082021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1811 assert.
1812 (dwarf2_section_info::get_file_name): Add an assert.
1813 (dwarf2_section_info::read_string): Display a minimal, sane error
1814 when the dwarf2_section_info is not associated with a bfd section.
1815
79c02443
AB
18162021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * top.c (staged_gdb_datadir): Update comment.
1819 (set_gdb_datadir): Copy the value of gdb_datadir back into
1820 staged_datadir.
1821 (init_main): Initialise staged_gdb_datadir.
1822
340d00fb
TV
18232021-04-06 Tom de Vries <tdevries@suse.de>
1824
1825 PR breakpoints/25884
1826 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1827 stepping range.
1828
d811a7cf
TV
18292021-04-06 Tom de Vries <tdevries@suse.de>
1830
1831 PR tui/27680
1832 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1833 to style.parse.
1834
306b445a
SM
18352021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 * avr-tdep.c (avr_frame_unwind_cache): Use
1838 trad_frame_saved_reg::is_addr.
1839
9161c89a
SM
18402021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1843 adjust callers.
1844
0072c873
SM
18452021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1848 objfile parameter for objfile_per_bfd_storage, adjust callers.
1849 (struct standard_psymtab) <standard_psymtab>: Likewise.
1850 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1851 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1852 * ctfread.c (struct ctf_psymtab): Likewise.
1853 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1854 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1855 (dwarf2_create_include_psymtab): Likewise.
1856 * objfiles.h (struct objfile_per_bfd_storage)
1857 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1858 <get_bfd>: New method.
1859 <m_bfd>: New field.
1860 * objfiles.c (get_objfile_bfd_data): Adjust.
1861
9984dd99
SM
18622021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 * psymtab.c (partial_symtab::partial_symtab): Change
1865 last_objfile_name to be an std::string.
1866 * symfile.c (allocate_symtab): Likewise.
1867
4a4f97c1
SM
18682021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1871 methods.
1872 (struct objfile) <intern>: Use
1873 objfile::objfile_per_bfd_storage::intern.
1874
0672875f
SM
18752021-04-01 Simon Marchi <simon.marchi@efficios.com>
1876
1877 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1878 with type::is_flag_enum.
1879
9902b327
SM
18802021-04-01 Simon Marchi <simon.marchi@efficios.com>
1881
1882 * gdbtypes.h (struct type) <is_flag_enum,
1883 set_is_flag_enum>: New methods.
1884 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1885 write call sites to use type::set_is_flag_enum.
1886
3bc440a2
SM
18872021-04-01 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1890 with type::is_declared_class.
1891
aa70e35c
SM
18922021-04-01 Simon Marchi <simon.marchi@efficios.com>
1893
1894 * gdbtypes.h (struct type) <is_declared_class,
1895 set_is_declared_class>: New methods.
1896 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1897 write call sites to use type::set_is_declared_class.
1898
bfb9f5dc
BS
18992021-02-28 Boris Staletic <boris.staletic@gmail.com>
1900
1901 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1902 to avoid deprecation warnings.
1903
733f5eea
ML
19042021-04-01 Martin Liska <mliska@suse.cz>
1905
1906 * cp-name-parser.y: Use startswith instead of strncmp.
1907 * m2-exp.y: Likewise.
1908 * macroexp.c (substitute_args): Likewise.
1909 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1910 * rust-exp.y: Likewise.
1911
af82f89d
TT
19122021-03-31 Tom Tromey <tom@tromey.com>
1913
1914 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1915 with dw2_map_matching_symbols.
1916 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1917 dw2_expand_symtabs_matching.
1918
3570682a
TT
19192021-03-31 Tom Tromey <tromey@adacore.com>
1920
1921 * dwarf2/stringify.h: Fix typo.
1922
8a91fbdf
SM
19232021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1924
1925 PR gdb/27541
1926 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1927 with objfiles using READNOW.
1928
9f67fc59
TT
19292021-03-29 Tom Tromey <tromey@adacore.com>
1930
1931 * top.c (check_frame_language_change): Update.
1932 * language.c (language_info): Remove parameter.
1933 * language.h (language_info): Remove parameter.
1934
9b8ffbf4
LM
19352021-03-29 Luis Machado <luis.machado@linaro.org>
1936
1937 * compile/compile.c (get_args): Don't add empty argv entries.
1938
25b48839
RO
19392021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1940
1941 gdb:
1942 * procfs.c (procfs_target::attach): Define inf.
1943 Use it.
1944 (procfs_target::create_inferior): Likewise.
1945
edc02ceb
TT
19462021-03-28 Tom Tromey <tom@tromey.com>
1947
1948 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1949 (elf_symfile_read): Simplify.
1950 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1951 (make_lazy_dwarf_reader): New function.
1952 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1953 (dwarf2_initialize_objfile): Return void. Remove index_kind
1954 parameter. Push on 'qf' list.
1955 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1956 type. Remove 'index_kind' parameter.
1957 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1958
6e23d91a
TT
19592021-03-27 Tom Tromey <tom@tromey.com>
1960
1961 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1962
594b8948
TT
19632021-03-27 Tom Tromey <tom@tromey.com>
1964
1965 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1966
efe1ecd8
LS
19672021-03-26 Lancelot Six <lsix@lancelotsix.com>
1968
1969 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1970 rid of 'local'.
1971
f4655dee
TT
19722021-03-26 Tom Tromey <tom@tromey.com>
1973
1974 * symtab.c (struct output_source_filename_data): Add 'output'
1975 method and operator().
1976 (output_source_filename_data::output): Rename from
1977 output_source_filename.
1978 (output_partial_symbol_filename): Remove.
1979 (info_sources_command): Update.
1980 (struct add_partial_filename_data): Add operator().
1981 (add_partial_filename_data::operator()): Rename from
1982 maybe_add_partial_symtab_filename.
1983 (make_source_files_completion_list): Update.
1984 * symfile.c (quick_symbol_functions): Update.
1985 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1986 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1987 'need_fullname'. Remove 'data' parameter.
1988 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1989 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1990 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1991 Change type of 'fun' and 'need_fullname'. Remove 'data'
1992 parameter.
1993 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1994 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1995 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1996 parameter.
1997 (mi_cmd_file_list_exec_source_files): Update.
1998 * dwarf2/read.c
1999 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2000
2315bb2d
TT
20012021-03-26 Tom Tromey <tom@tromey.com>
2002
2003 * ada-lang.c (struct match_data): Add operator().
2004 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2005 (callback): Remove 'callback'.
2006
e2cd5ca4
TT
20072021-03-26 Tom Tromey <tom@tromey.com>
2008
2009 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2010 call make_ignore_params once.
2011
cd43f63e
TT
20122021-03-26 Tom Tromey <tom@tromey.com>
2013
2014 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2015 "user" check.
2016
b4b1a226
SM
20172021-03-26 Simon Marchi <simon.marchi@efficios.com>
2018 Pedro Alves <pedro@palves.net>
2019
2020 * async-event.c: Include "infrun.h".
2021 (async_event_handler_marked): New.
2022 * async-event.h (async_event_handler_marked): Declare.
2023 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2024 inferior before calling target method. Don't commit-resumed if
2025 target_has_pending_events is true.
2026 * remote.c (remote_target::has_pending_events): New.
2027 * target-delegates.c: Regenerate.
2028 * target.c (target_has_pending_events): New.
2029 * target.h (target_ops::has_pending_events): New target method.
2030 (target_has_pending_events): New.
2031
1192f124
SM
20322021-03-26 Simon Marchi <simon.marchi@efficios.com>
2033 Pedro Alves <pedro@palves.net>
2034
2035 * infcmd.c (run_command_1, attach_command, detach_command)
2036 (interrupt_target_1): Use scoped_disable_commit_resumed.
2037 * infrun.c (do_target_resume): Remove
2038 target_commit_resume call.
2039 (commit_resume_all_targets): Remove.
2040 (maybe_set_commit_resumed_all_targets): New.
2041 (maybe_call_commit_resumed_all_targets): New.
2042 (enable_commit_resumed): New.
2043 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2044 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2045 (scoped_disable_commit_resumed::reset)
2046 (scoped_disable_commit_resumed::reset_and_commit)
2047 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2048 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2049 New.
2050 (proceed): Use scoped_disable_commit_resumed and
2051 maybe_call_commit_resumed_all_targets.
2052 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2053 * infrun.h (struct scoped_disable_commit_resumed): New.
2054 (maybe_call_commit_resumed_all_process_targets): New.
2055 (struct scoped_enable_commit_resumed): New.
2056 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2057 * process-stratum-target.h (class process_stratum_target):
2058 <commit_resumed_state>: New.
2059 * record-full.c (record_full_wait_1): Change commit_resumed_state
2060 around calling commit_resumed.
2061 * remote.c (class remote_target) <commit_resume>: Rename to...
2062 <commit_resumed>: ... this.
2063 (struct stop_reply): Move up.
2064 (remote_target::commit_resume): Rename to...
2065 (remote_target::commit_resumed): ... this. Check if there is any
2066 thread pending vCont resume.
2067 (remote_target::remote_stop_ns): Generate stop replies for resumed
2068 but pending vCont threads.
2069 (remote_target::wait_ns): Add gdb_assert.
2070 * target-delegates.c: Regenerate.
2071 * target.c (target_wait, target_resume): Assert that the current
2072 process_stratum target isn't in commit-resumed state.
2073 (defer_target_commit_resume): Remove.
2074 (target_commit_resume): Remove.
2075 (target_commit_resumed): New.
2076 (make_scoped_defer_target_commit_resume): Remove.
2077 (target_stop): Assert that the current process_stratum target
2078 isn't in commit-resumed state.
2079 * target.h (struct target_ops) <commit_resume>: Rename to ...
2080 <commit_resumed>: ... this.
2081 (target_commit_resume): Remove.
2082 (target_commit_resumed): New.
2083 (make_scoped_defer_target_commit_resume): Remove.
2084 * top.c (wait_sync_command_done): Use
2085 scoped_enable_commit_resumed.
2086
e5b9b39f
PA
20872021-03-26 Pedro Alves <pedro@palves.net>
2088
2089 * target.c (target_always_non_stop_p): Also check whether the
2090 target can async.
2091
bab287cd
TT
20922021-03-26 Tom Tromey <tom@tromey.com>
2093
2094 * dwarf2/read.c (dwarf2_read_debug_names)
2095 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2096 (dw2_debug_names_iterator::next, create_type_unit_group):
2097 Simplify.
2098
eff4f69d
PA
20992021-03-25 Pedro Alves <pedro@palves.net>
2100
2101 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2102 around setting the breakpoint.
2103
323fd5b9
PA
21042021-03-25 Pedro Alves <pedro@palves.net>
2105
2106 * remote.c
2107 (remote_target::check_pending_events_prevent_wildcard_vcont):
2108 Check whether the event's ptid is not null_ptid before looking up
2109 the corresponding inferior.
2110
d3cbca38
CD
21112021-03-24 Changbin Du <changbin.du@gmail.com>
2112
2113 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2114 read_code.
2115
328d42d8
SM
21162021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2117
2118 * target.h (current_top_target): Remove, make callers use the
2119 current inferior instead.
2120 * target.c (current_top_target): Remove.
2121
d777bf0d
SM
21222021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2123
2124 * target.h (target_shortname): Change to function declaration.
2125 (target_longname): Likewise.
2126 (target_attach_no_wait): Likewise.
2127 (target_post_attach): Likewise.
2128 (target_prepare_to_store): Likewise.
2129 (target_supports_enable_disable_tracepoint): Likewise.
2130 (target_supports_string_tracing): Likewise.
2131 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2132 (target_supports_dumpcore): Likewise.
2133 (target_dumpcore): Likewise.
2134 (target_can_run_breakpoint_commands): Likewise.
2135 (target_files_info): Likewise.
2136 (target_post_startup_inferior): Likewise.
2137 (target_insert_fork_catchpoint): Likewise.
2138 (target_remove_fork_catchpoint): Likewise.
2139 (target_insert_vfork_catchpoint): Likewise.
2140 (target_remove_vfork_catchpoint): Likewise.
2141 (target_insert_exec_catchpoint): Likewise.
2142 (target_remove_exec_catchpoint): Likewise.
2143 (target_set_syscall_catchpoint): Likewise.
2144 (target_rcmd): Likewise.
2145 (target_can_lock_scheduler): Likewise.
2146 (target_can_async_p): Likewise.
2147 (target_is_async_p): Likewise.
2148 (target_execution_direction): Likewise.
2149 (target_extra_thread_info): Likewise.
2150 (target_pid_to_exec_file): Likewise.
2151 (target_thread_architecture): Likewise.
2152 (target_find_memory_regions): Likewise.
2153 (target_make_corefile_notes): Likewise.
2154 (target_get_bookmark): Likewise.
2155 (target_goto_bookmark): Likewise.
2156 (target_stopped_by_watchpoint): Likewise.
2157 (target_stopped_by_sw_breakpoint): Likewise.
2158 (target_supports_stopped_by_sw_breakpoint): Likewise.
2159 (target_stopped_by_hw_breakpoint): Likewise.
2160 (target_supports_stopped_by_hw_breakpoint): Likewise.
2161 (target_have_steppable_watchpoint): Likewise.
2162 (target_can_use_hardware_watchpoint): Likewise.
2163 (target_region_ok_for_hw_watchpoint): Likewise.
2164 (target_can_do_single_step): Likewise.
2165 (target_insert_watchpoint): Likewise.
2166 (target_remove_watchpoint): Likewise.
2167 (target_insert_hw_breakpoint): Likewise.
2168 (target_remove_hw_breakpoint): Likewise.
2169 (target_can_accel_watchpoint_condition): Likewise.
2170 (target_can_execute_reverse): Likewise.
2171 (target_get_ada_task_ptid): Likewise.
2172 (target_filesystem_is_local): Likewise.
2173 (target_trace_init): Likewise.
2174 (target_download_tracepoint): Likewise.
2175 (target_can_download_tracepoint): Likewise.
2176 (target_download_trace_state_variable): Likewise.
2177 (target_enable_tracepoint): Likewise.
2178 (target_disable_tracepoint): Likewise.
2179 (target_trace_start): Likewise.
2180 (target_trace_set_readonly_regions): Likewise.
2181 (target_get_trace_status): Likewise.
2182 (target_get_tracepoint_status): Likewise.
2183 (target_trace_stop): Likewise.
2184 (target_trace_find): Likewise.
2185 (target_get_trace_state_variable_value): Likewise.
2186 (target_save_trace_data): Likewise.
2187 (target_upload_tracepoints): Likewise.
2188 (target_upload_trace_state_variables): Likewise.
2189 (target_get_raw_trace_data): Likewise.
2190 (target_get_min_fast_tracepoint_insn_len): Likewise.
2191 (target_set_disconnected_tracing): Likewise.
2192 (target_set_circular_trace_buffer): Likewise.
2193 (target_set_trace_buffer_size): Likewise.
2194 (target_set_trace_notes): Likewise.
2195 (target_get_tib_address): Likewise.
2196 (target_set_permissions): Likewise.
2197 (target_static_tracepoint_marker_at): Likewise.
2198 (target_static_tracepoint_markers_by_strid): Likewise.
2199 (target_traceframe_info): Likewise.
2200 (target_use_agent): Likewise.
2201 (target_can_use_agent): Likewise.
2202 (target_augmented_libraries_svr4_read): Likewise.
2203 (target_log_command): Likewise.
2204 * target.c (target_shortname): New.
2205 (target_longname): New.
2206 (target_attach_no_wait): New.
2207 (target_post_attach): New.
2208 (target_prepare_to_store): New.
2209 (target_supports_enable_disable_tracepoint): New.
2210 (target_supports_string_tracing): New.
2211 (target_supports_evaluation_of_breakpoint_conditions): New.
2212 (target_supports_dumpcore): New.
2213 (target_dumpcore): New.
2214 (target_can_run_breakpoint_commands): New.
2215 (target_files_info): New.
2216 (target_post_startup_inferior): New.
2217 (target_insert_fork_catchpoint): New.
2218 (target_remove_fork_catchpoint): New.
2219 (target_insert_vfork_catchpoint): New.
2220 (target_remove_vfork_catchpoint): New.
2221 (target_insert_exec_catchpoint): New.
2222 (target_remove_exec_catchpoint): New.
2223 (target_set_syscall_catchpoint): New.
2224 (target_rcmd): New.
2225 (target_can_lock_scheduler): New.
2226 (target_can_async_p): New.
2227 (target_is_async_p): New.
2228 (target_execution_direction): New.
2229 (target_extra_thread_info): New.
2230 (target_pid_to_exec_file): New.
2231 (target_thread_architecture): New.
2232 (target_find_memory_regions): New.
2233 (target_make_corefile_notes): New.
2234 (target_get_bookmark): New.
2235 (target_goto_bookmark): New.
2236 (target_stopped_by_watchpoint): New.
2237 (target_stopped_by_sw_breakpoint): New.
2238 (target_supports_stopped_by_sw_breakpoint): New.
2239 (target_stopped_by_hw_breakpoint): New.
2240 (target_supports_stopped_by_hw_breakpoint): New.
2241 (target_have_steppable_watchpoint): New.
2242 (target_can_use_hardware_watchpoint): New.
2243 (target_region_ok_for_hw_watchpoint): New.
2244 (target_can_do_single_step): New.
2245 (target_insert_watchpoint): New.
2246 (target_remove_watchpoint): New.
2247 (target_insert_hw_breakpoint): New.
2248 (target_remove_hw_breakpoint): New.
2249 (target_can_accel_watchpoint_condition): New.
2250 (target_can_execute_reverse): New.
2251 (target_get_ada_task_ptid): New.
2252 (target_filesystem_is_local): New.
2253 (target_trace_init): New.
2254 (target_download_tracepoint): New.
2255 (target_can_download_tracepoint): New.
2256 (target_download_trace_state_variable): New.
2257 (target_enable_tracepoint): New.
2258 (target_disable_tracepoint): New.
2259 (target_trace_start): New.
2260 (target_trace_set_readonly_regions): New.
2261 (target_get_trace_status): New.
2262 (target_get_tracepoint_status): New.
2263 (target_trace_stop): New.
2264 (target_trace_find): New.
2265 (target_get_trace_state_variable_value): New.
2266 (target_save_trace_data): New.
2267 (target_upload_tracepoints): New.
2268 (target_upload_trace_state_variables): New.
2269 (target_get_raw_trace_data): New.
2270 (target_get_min_fast_tracepoint_insn_len): New.
2271 (target_set_disconnected_tracing): New.
2272 (target_set_circular_trace_buffer): New.
2273 (target_set_trace_buffer_size): New.
2274 (target_set_trace_notes): New.
2275 (target_get_tib_address): New.
2276 (target_set_permissions): New.
2277 (target_static_tracepoint_marker_at): New.
2278 (target_static_tracepoint_markers_by_strid): New.
2279 (target_traceframe_info): New.
2280 (target_use_agent): New.
2281 (target_can_use_agent): New.
2282 (target_augmented_libraries_svr4_read): New.
2283 (target_log_command): New.
2284 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2285 * infrun.c (set_schedlock_func): Adjust.
2286 * mi/mi-main.c (exec_reverse_continue): Adjust.
2287 * reverse.c (exec_reverse_once): Adjust.
2288 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2289 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2290 * remote-sim.c (gdbsim_target::detach): Adjust.
2291 (gdbsim_target::files_info): Adjust.
2292
b64f703b
TT
22932021-03-24 Tom Tromey <tom@tromey.com>
2294
2295 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2296 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2297 (check_match, dw2_expand_symtabs_matching)
2298 (dwarf2_debug_names_index::map_matching_symbols)
2299 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2300
68f115f8
KS
23012021-03-24 Keith Seitz <keiths@redhat.com>
2302
2303 * compile/compile-cplus-types.c
2304 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2305 thinko.
2306
41c0087b
SM
23072021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2308
2309 * gdbarch.sh (gdbarch_data_registry): Make static.
2310 * gdbarch.c: Re-generate.
2311
ce192338
LM
23122021-03-24 Luis Machado <luis.machado@linaro.org>
2313
2314 * NEWS: Mention memory tagging changes.
2315
bef382e6
LM
23162021-03-24 Luis Machado <luis.machado@linaro.org>
2317
2318 * printcmd.c (decode_format): Handle the 'm' modifier.
2319 (do_examine): Display allocation tags when required/supported.
2320 (should_validate_memtags): New function.
2321 (print_command_1): Display memory tag mismatches.
2322 * valprint.c (show_memory_tag_violations): New function.
2323 (value_print_option_defs): Add new option "memory-tag-violations".
2324 (user_print_options) <memory_tag_violations>: Initialize to 1.
2325 * valprint.h (struct format_data) <print_tags>: New field.
2326 (value_print_options) <memory_tag_violations>: New field.
2327
48136e00
LM
23282021-03-24 Luis Machado <luis.machado@linaro.org>
2329
2330 * printcmd.c: Include gdbsupport/rsp-low.h.
2331 (memory_tag_list): New static global.
2332 (process_print_command_args): Factored out of
2333 print_command_1.
2334 (print_command_1): Use process_print_command_args.
2335 (show_addr_not_tagged, show_memory_tagging_unsupported)
2336 (memory_tag_command, memory_tag_print_tag_command)
2337 (memory_tag_print_logical_tag_command)
2338 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2339 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2340 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2341 functions.
2342 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2343
ffcc2a15
LM
23442021-03-24 Luis Machado <luis.machado@linaro.org>
2345
2346 * aarch64-linux-tdep.c
2347 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2348 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2349
cf44c9fa
LM
23502021-03-24 Luis Machado <luis.machado@linaro.org>
2351
2352 * aarch64-linux-tdep.c
2353 (aarch64_linux_report_signal_info): New function.
2354 (aarch64_linux_init_abi): Register
2355 aarch64_linux_report_signal_info as the report_signal_info hook.
2356 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2357 (SEGV_MTESERR): Define.
2358
b4a7d4fc
LM
23592021-03-24 Luis Machado <luis.machado@linaro.org>
2360
2361 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2362 (aarch64_linux_ltag_tests): New function.
2363 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2364
c7782e50
LM
23652021-03-24 Luis Machado <luis.machado@linaro.org>
2366
2367 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2368 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2369 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2370 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2371 functions.
2372 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2373 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2374 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2375 (aarch64_linux_get_ltag): New functions.
2376 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2377 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2378 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2379 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2380
1e735120
LM
23812021-03-24 Luis Machado <luis.machado@linaro.org>
2382
2383 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2384 bit.
2385 (struct smaps_data): New struct.
2386 (decode_vmflags): Handle the 'mt' flag.
2387 (parse_smaps_data): New function, refactored from
2388 linux_find_memory_regions_full.
2389 (linux_address_in_memtag_page): New function.
2390 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2391 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2392
93e447c6
LM
23932021-03-24 Luis Machado <luis.machado@linaro.org>
2394
2395 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2396 instead of char arrays.
2397
4601818e
LM
23982021-03-24 Luis Machado <luis.machado@linaro.org>
2399
2400 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2401 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2402 nat/aarch64-mte-linux-ptrace.h.
2403 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2404 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2405 override.
2406 <fetch_memtags>: New method override.
2407 <store_memtags>: New method override.
2408 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2409 (aarch64_linux_nat_target::fetch_memtags): New method.
2410 (aarch64_linux_nat_target::store_memtags): New method.
2411 * arch/aarch64-mte-linux.c: New file.
2412 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2413 (AARCH64_MTE_GRANULE_SIZE): Define.
2414 (aarch64_memtag_type): New enum.
2415 (aarch64_mte_get_tag_granules): New prototype.
2416 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2417 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2418 * nat/aarch64-mte-linux-ptrace.c: New file.
2419 * nat/aarch64-mte-linux-ptrace.h: New file.
2420
3f3bd8b8
LM
24212021-03-24 Luis Machado <luis.machado@linaro.org>
2422
2423 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2424 * nat/aarch64-mte-linux-ptrace.h: New file.
2425
5e984dbf
LM
24262021-03-24 Luis Machado <luis.machado@linaro.org>
2427
2428 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2429 (store_mteregs_to_thread): New function.
2430 (aarch64_linux_nat_target::fetch_registers): Update to call
2431 fetch_mteregs_from_thread.
2432 (aarch64_linux_nat_target::store_registers): Update to call
2433 store_mteregs_to_thread.
2434 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2435 (aarch64_cannot_store_register): Handle MTE registers.
2436 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2437 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2438 <has_mte>: New method.
2439 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2440
c1bd443b
LM
24412021-03-24 Luis Machado <luis.machado@linaro.org>
2442
2443 * aarch64-linux-nat.c
2444 (aarch64_linux_nat_target::read_description): Take MTE flag into
2445 account.
2446 Slight refactor to hwcap flag checking.
2447 * aarch64-linux-tdep.c
2448 (aarch64_linux_core_read_description): Likewise.
2449 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2450 MTE.
2451 (aarch64_read_description): Add mte_p parameter and update to use it.
2452 Update the documentation.
2453 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2454 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2455 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2456 (aarch64_create_target_description): Add mte_p parameter and update
2457 the code to use it.
2458 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2459 parameter.
2460 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2461 * features/aarch64-mte.c: New file, generated.
2462 * features/aarch64-mte.xml: New file.
2463
04245125
LM
24642021-03-24 Luis Machado <luis.machado@linaro.org>
2465
2466 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2467 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2468 * aarch64-linux-tdep.c: Likewise
2469 * arch/aarch64-mte-linux.h: New file.
2470
754487e2
LM
24712021-03-24 Luis Machado <luis.machado@linaro.org>
2472
2473 * remote: Include gdbsupport/selftest.h.
2474 (test_memory_tagging_functions): New function.
2475 (_initialize_remote): Register test_memory_tagging_functions.
2476
2c2e7f87
LM
24772021-03-24 Luis Machado <luis.machado@linaro.org>
2478
2479 * remote.c (PACKET_memory_tagging_feature): New enum.
2480 (remote_memory_tagging_p): New function.
2481 (remote_protocol_features): New "memory-tagging" entry.
2482 (remote_target::remote_query_supported): Handle memory tagging
2483 support.
2484 (remote_target::supports_memory_tagging): Implement.
2485 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2486 (create_store_memtags_request): New functions.
2487 (remote_target::fetch_memtags): Implement.
2488 (remote_target::store_memtags): Implement.
2489 (_initialize_remote): Add new "memory-tagging-feature"
2490 config command.
2491
c193949e
LM
24922021-03-24 Luis Machado <luis.machado@linaro.org>
2493
2494 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2495 (default_memtag_matches_p, default_set_memtags)
2496 (default_get_memtag): New functions.
2497 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2498 (default_memtag_matches_p, default_set_memtags)
2499 (default_get_memtag): New prototypes.
2500 * gdbarch.c: Regenerate.
2501 * gdbarch.h: Regenerate.
2502 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2503 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2504 (enum memtag_type): New enum.
2505
dbe692af
LM
25062021-03-24 Luis Machado <luis.machado@linaro.org>
2507
2508 * remote.c (remote_target) <supports_memory_tagging>: New method
2509 override.
2510 <fetch_memtags>: New method override.
2511 <store_memtags>: New method override.
2512 (remote_target::supports_memory_tagging): New method.
2513 (remote_target::fetch_memtags): New method.
2514 (remote_target::store_memtags): New method.
2515 * target-delegates.c: Regenerate.
2516 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2517 method.
2518 <fetch_memtags>: New virtual method.
2519 <store_memtags>: New virtual method.
2520 (target_supports_memory_tagging): Define.
2521 (target_fetch_memtags): Define.
2522 (target_store_memtags): Define.
2523 * target-debug.h (target_debug_print_size_t)
2524 (target_debug_print_const_gdb_byte_vector_r)
2525 (target_debug_print_gdb_byte_vector_r): New functions.
2526
66848ebc
SM
25272021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2528
2529 * target.h (target_longname): Remove.
2530
c8fbd44a
SM
25312021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 * target.h (target_is_pushed): Remove, update callers to use
2534 inferior::target_is_pushed instead.
2535 * target.c (target_is_pushed): Remove.
2536
02980c56
SM
25372021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2538
2539 * target.h (push_target): Remove, update callers to use
2540 inferior::push_target.
2541 * target.c (push_target): Remove.
2542 * inferior.h (class inferior) <push_target>: New overload.
2543
fadf6add
SM
25442021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * target.h (unpush_target): Remove, update all callers
2547 to use `inferior::unpush_target` instead.
2548 (struct target_unpusher) <operator()>: Just declare.
2549 * target.c (unpush_target): Remove.
2550 (target_unpusher::operator()): New.
2551
702cf3f5
AB
25522021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2553
2554 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2555 error.
2556 (process_full_comp_unit): Validate the top-level tag before
2557 processing the first DIE.
2558 (read_func_scope): Ensure we have a valid builder.
2559
46fec642
AB
25602021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 * objc-lang.c (objc_demangle): Renamed to
2563 objc_language::demangle_symbol, and moved later in the file.
2564 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2565 member function.
2566 (objc_language::demangle_symbol): Defined outside of class
2567 declaration. The definition is the old objc_demangle with NULL
2568 changed to nullptr, and if conditions relating to nullptr pointers
2569 or null character checks made explicit.
2570 * objc-lang.h (objc_demangle): Delete declaration.
2571
08dedd66
ML
25722021-03-22 Martin Liska <mliska@suse.cz>
2573
2574 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2575 (_initialize_arm_tdep): Likewise.
2576
eb36a3eb
TT
25772021-03-20 Tom Tromey <tom@tromey.com>
2578
2579 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2580 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2581 * psymtab.h (make_psymbol_functions): Don't declare.
2582 * psymtab.c (make_psymbol_functions): Remove.
2583 (maintenance_print_psymbols): Update.
2584 * psympriv.h (struct psymbol_functions): Add no-argument
2585 constructor.
2586 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2587 <partial_symtabs>: Remove.
2588 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2589 * elfread.c (read_partial_symbols): Update.
2590 (elf_symfile_read): Remove check for existing partial symbols.
2591 Don't clear "qf".
2592 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2593 partial symbols.
2594 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2595 partial symtabs.
2596 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2597 parameter.
2598 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2599 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2600
e1114590
TT
26012021-03-20 Tom Tromey <tom@tromey.com>
2602
2603 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2604 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2605 * symfile-debug.c (objfile::has_partial_symbols)
2606 (objfile::find_last_source_symtab)
2607 (objfile::forget_cached_source_info)
2608 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2609 (objfile::print_stats, objfile::dump)
2610 (objfile::expand_symtabs_for_function)
2611 (objfile::expand_all_symtabs)
2612 (objfile::expand_symtabs_with_fullname)
2613 (objfile::map_matching_symbols)
2614 (objfile::expand_symtabs_matching)
2615 (objfile::find_pc_sect_compunit_symtab)
2616 (objfile::map_symbol_filenames)
2617 (objfile::find_compunit_symtab_by_address)
2618 (objfile::lookup_global_symbol_language)
2619 (objfile::require_partial_symbols): Update.
2620 * psymtab.c (maintenance_print_psymbols)
2621 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2622 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2623 * objfiles.c (objfile_relocate1): Update.
2624 * elfread.c (elf_symfile_read): Update.
2625
de909f0b
TT
26262021-03-20 Tom Tromey <tom@tromey.com>
2627
2628 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2629
caf8c1e5
TT
26302021-03-20 Tom Tromey <tom@tromey.com>
2631
2632 * psymtab.c (psymbol_functions::count_psyms): Rename.
2633 (psymbol_functions::print_stats): Update.
2634 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2635 method.
2636
3aa31ce7
TT
26372021-03-20 Tom Tromey <tom@tromey.com>
2638
2639 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2640 (psymbol_functions::find_pc_sect_psymtab): Rename.
2641 (psymbol_functions::find_pc_sect_compunit_symtab)
2642 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2643 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2644 Declare new method.
2645 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2646
7b249e47
TT
26472021-03-20 Tom Tromey <tom@tromey.com>
2648
2649 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2650 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2651 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2652 parameter.
2653 (add_psymbol_to_bcache): Remove.
2654 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2655 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2656 Likewise.
2657 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2658 <add_psymbol>: Likewise.
2659 (standard_psymtab, legacy_psymtab): Likewise.
2660 * mdebugread.c (parse_partial_symbols): Update.
2661 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2662 (handle_psymbol_enumerators): Update.
2663 (new_psymtab): Add partial_symtabs parameter.
2664 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2665 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2666 parameter.
2667 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2668 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2669 Update.
2670 * dbxread.c (read_dbx_symtab): Update.
2671 (start_psymtab): Add partial_symtabs parameter.
2672 (dbx_end_psymtab): Update.
2673 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2674 (ctf_psymtab): Add partial_symtabs parameter.
2675 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2676 Update.
2677 (scan_partial_symbols): Add partial_symtabs parameter.
2678 (scan_partial_symbols, elfctf_build_psymtabs)
2679 (ctf_psymtab_add_enums): Update.
2680
d1eef86d
TT
26812021-03-20 Tom Tromey <tom@tromey.com>
2682
2683 * symfile.c (read_symbols): Use objfile method.
2684 * symfile-debug.c (objfile::require_partial_symbols): New method.
2685 * psymtab.h (require_partial_symbols): Don't declare.
2686 * psymtab.c (require_partial_symbols): Use objfile method. Now
2687 static.
2688 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2689 (psymbol_functions::lookup_symbol)
2690 (psymbol_functions::lookup_global_symbol_language)
2691 (psymbol_functions::find_last_source_symtab)
2692 (psymbol_functions::forget_cached_source_info)
2693 (psymbol_functions::print_stats)
2694 (psymbol_functions::expand_symtabs_for_function)
2695 (psymbol_functions::expand_all_symtabs)
2696 (psymbol_functions::expand_symtabs_with_fullname)
2697 (psymbol_functions::map_symbol_filenames)
2698 (psymbol_functions::map_matching_symbols)
2699 (psymbol_functions::expand_symtabs_matching)
2700 (psymbol_functions::find_compunit_symtab_by_address)
2701 (maintenance_print_psymbols, maintenance_info_psymtabs)
2702 (maintenance_check_psymtabs): Update.
2703 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2704 new method.
2705
eb00e468
TT
27062021-03-20 Tom Tromey <tom@tromey.com>
2707
2708 * xcoffread.c (xcoff_sym_fns): Update.
2709 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2710 * symfile-debug.c (objfile::has_partial_symbols): Use
2711 can_lazily_read_symbols.
2712 (debug_sym_read_psymbols): Remove.
2713 (debug_sym_fns, install_symfile_debug_logging): Update.
2714 * quick-symbol.h (struct quick_symbol_functions)
2715 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2716 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2717 * mipsread.c (ecoff_sym_fns): Update.
2718 * machoread.c (macho_sym_fns): Update.
2719 * elfread.c (struct lazy_dwarf_reader): New.
2720 (elf_symfile_read): Update.
2721 (read_psyms): Now a method of lazy_dwarf_reader.
2722 (elf_sym_fns): Update.
2723 (elf_sym_fns_lazy_psyms): Remove.
2724 * dbxread.c (aout_sym_fns): Update.
2725 * coffread.c (coff_sym_fns): Update.
2726
b29b98cf
TT
27272021-03-20 Tom Tromey <tom@tromey.com>
2728
2729 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2730 (reread_symbols): Move reset_psymtabs call later.
2731 * objfiles.c (objfile::objfile): Don't initialize
2732 partial_symtabs.
2733
17d66340
TT
27342021-03-20 Tom Tromey <tom@tromey.com>
2735
2736 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2737 set_partial_symtabs.
2738 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2739 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2740 parameter.
2741 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2742 parameter.
2743 (psymbol_functions::find_pc_sect_compunit_symtab)
2744 (psymbol_functions::print_stats, psymbol_functions::dump)
2745 (psymbol_functions::has_symbols): Update.
2746 (make_psymbol_functions, dump_psymtab_addrmap): Add
2747 partial_symtabs parameter.
2748 (maintenance_print_psymbols): Update.
2749 (psymbol_functions::expand_symtabs_matching): Update.
2750 * psympriv.h (struct psymbol_functions): Add constructor.
2751 <m_partial_symtabs>: New member.
2752 <set_partial_symtabs>: New method.
2753
84685904
TT
27542021-03-20 Tom Tromey <tom@tromey.com>
2755
2756 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2757 parameter.
2758 (process_psymtab_comp_unit_reader)
2759 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2760 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2761 Reference psymtabs via per_bfd.
2762
79cc99f6
TT
27632021-03-20 Tom Tromey <tom@tromey.com>
2764
2765 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2766 Remove.
2767 (add_address_entry): Remove objfile parameter.
2768 (add_address_entry_worker): Update.
2769 (write_address_map): Replace objfile parameter with per_bfd.
2770 (write_gdbindex, write_psymtabs_to_index): Update.
2771
4829711b
TT
27722021-03-20 Tom Tromey <tom@tromey.com>
2773
2774 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2775 print_bcache parameter.
2776 * symfile-debug.c (objfile::print_stats): Add print_bcache
2777 parameter.
2778 * quick-symbol.h (struct quick_symbol_functions)
2779 <print_stats>: Add print_bcache parameter.
2780 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2781 code to psymtab.c.
2782 (print_objfile_statistics): Move psymtab code to psymtab.c.
2783 * psymtab.c (count_psyms): Move from symmisc.c.
2784 (psymbol_functions::print_stats): Print partial symbol and bcache
2785 statistics. Add print_bcache parameter.
2786 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2787 (struct objfile) <print_stats>: Add print_bcache parameter.
2788 * maint.c (maintenance_print_statistics): Update.
2789
efd7398e
TT
27902021-03-20 Tom Tromey <tom@tromey.com>
2791
2792 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2793 member.
2794 * dwarf2/read.c (create_addrmap_from_index)
2795 (create_addrmap_from_aranges): Set per_bfd addrmap.
2796 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2797 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2798 per_bfd addrmap.
2799 (dwarf2_read_debug_names): Don't set partial_symtabs.
2800 (dwarf2_initialize_objfile): Likewise.
2801
51962708
TT
28022021-03-20 Tom Tromey <tom@tromey.com>
2803
2804 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2805 earlier.
2806
484b1090
TT
28072021-03-20 Tom Tromey <tom@tromey.com>
2808
2809 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2810 (~psymtab_discarder, keep): Update.
2811 <m_objfile>: Remove.
2812 <m_partial_symtabs>: New member.
2813 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2814
7e9c0476
TT
28152021-03-20 Tom Tromey <tom@tromey.com>
2816
2817 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2818 (xcoff_end_psymtab): Update.
2819 (scan_xcoff_symtab): Add partial_symtabs parameter.
2820 (xcoff_initial_scan): Update.
2821 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2822 * mdebugread.c (mdebug_build_psymtabs): Update.
2823 (parse_partial_symbols): Add partial_symtabs parameter.
2824 * dbxread.c (dbx_symfile_read): Update.
2825 (read_dbx_symtab): Add partial_symtabs parameter.
2826 (read_dbx_symtab): Update.
2827 (dbx_end_psymtab): Add partial_symtabs parameter.
2828
75336a5a
TT
28292021-03-20 Tom Tromey <tom@tromey.com>
2830
2831 * quick-symbol.h (struct quick_symbol_functions)
2832 <relocated>: New method.
2833 * psymtab.h (struct psymbol_functions) <relocated>: New
2834 method.
2835 <fill_psymbol_map>: Declare method.
2836 <m_psymbol_map>: New member.
2837 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2838 (psymbol_functions::find_compunit_symtab_by_address): Update.
2839 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2840 (struct objfile) <psymbol_map>: Remove.
2841 * objfiles.c (objfile_relocate1): Update.
2842
39298a5d
TT
28432021-03-20 Tom Tromey <tom@tromey.com>
2844
2845 * psympriv.h (struct psymbol_functions): New.
2846 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2847 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2848 (objfile::lookup_global_symbol_language): Update.
2849 * quick-symbol.h (struct quick_symbol_functions): Convert function
2850 pointers to methods. Add virtual destructor.
2851 (quick_symbol_functions_up): New typedef.
2852 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2853 (dwarf2_debug_names_functions): Don't declare.
2854 (make_psymbol_functions): Declare.
2855 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2856 (psymbol_functions::find_pc_sect_compunit_symtab)
2857 (psymbol_functions::lookup_symbol)
2858 (psymbol_functions::lookup_global_symbol_language)
2859 (psymbol_functions::find_last_source_symtab)
2860 (psymbol_functions::forget_cached_source_info)
2861 (psymbol_functions::print_stats, psymbol_functions::dump)
2862 (psymbol_functions::expand_symtabs_for_function)
2863 (psymbol_functions::expand_all_symtabs)
2864 (psymbol_functions::expand_symtabs_with_fullname)
2865 (psymbol_functions::map_symbol_filenames)
2866 (psymbol_functions::map_matching_symbols)
2867 (psymbol_functions::expand_symtabs_matching)
2868 (psymbol_functions::has_symbols)
2869 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2870 (psym_functions): Remove.
2871 (make_psymbol_functions): New function.
2872 * objfiles.h (struct objfile) <qf>: Change type.
2873 * elfread.c (elf_symfile_read): Update.
2874 * dwarf2/read.c (struct dwarf2_base_index_functions)
2875 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2876 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2877 (dwarf2_base_index_functions::find_last_source_symtab)
2878 (dwarf2_base_index_functions::forget_cached_source_info)
2879 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2880 (dwarf2_gdb_index::lookup_symbol)
2881 (dwarf2_base_index_functions::print_stats)
2882 (dwarf2_gdb_index::dump)
2883 (dwarf2_gdb_index::expand_symtabs_for_function)
2884 (dwarf2_base_index_functions::expand_all_symtabs)
2885 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2886 Rename.
2887 (dwarf2_gdb_index::map_matching_symbols): New method.
2888 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2889 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2890 (dwarf2_base_index_functions::map_symbol_filenames)
2891 (dwarf2_base_index_functions::has_symbols): Rename.
2892 (dwarf2_gdb_index_functions): Remove.
2893 (dwarf2_debug_names_index::lookup_symbol)
2894 (dwarf2_debug_names_index::dump)
2895 (dwarf2_debug_names_index::expand_symtabs_for_function)
2896 (dwarf2_debug_names_index::map_matching_symbols)
2897 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2898 (dwarf2_debug_names_functions): Remove.
2899 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2900 Declare.
2901
5c3f1e5b
TT
29022021-03-20 Tom Tromey <tom@tromey.com>
2903
2904 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2905 null.
2906 * xcoffread.c (xcoff_sym_fns): Update.
2907 * symfile.h (struct sym_fns) <qf>: Remove.
2908 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2909 * symfile-debug.c (objfile::has_partial_symbols)
2910 (objfile::find_last_source_symtab)
2911 (objfile::forget_cached_source_info)
2912 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2913 (objfile::print_stats, objfile::dump)
2914 (objfile::expand_symtabs_for_function)
2915 (objfile::expand_all_symtabs)
2916 (objfile::expand_symtabs_with_fullname)
2917 (objfile::map_matching_symbols)
2918 (objfile::expand_symtabs_matching)
2919 (objfile::find_pc_sect_compunit_symtab)
2920 (objfile::map_symbol_filenames)
2921 (objfile::find_compunit_symtab_by_address)
2922 (objfile::lookup_global_symbol_language, debug_sym_fns)
2923 (install_symfile_debug_logging): Update.
2924 * objfiles.h (struct objfile) <qf>: New member.
2925 * mipsread.c (ecoff_sym_fns): Update.
2926 * machoread.c (macho_sym_fns): Update.
2927 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2928 Don't declare.
2929 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2930 * dbxread.c (aout_sym_fns): Update.
2931 * coffread.c (coff_sym_fns): Update.
2932
9b99dcc8
TT
29332021-03-20 Tom Tromey <tom@tromey.com>
2934
2935 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2936 (expand_symtabs_file_matcher_ftype)
2937 (expand_symtabs_symbol_matcher_ftype)
2938 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2939 Move to quick-symbol.h.
2940 * quick-symbol.h: New file.
2941
4d080b46
TT
29422021-03-20 Tom Tromey <tom@tromey.com>
2943
2944 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2945 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2946 (basic_lookup_transparent_type_quick)
2947 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2948 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2949 Update.
2950 * symmisc.c (print_objfile_statistics, dump_objfile)
2951 (maintenance_expand_symtabs): Update.
2952 * symfile.c (symbol_file_add_with_addrs)
2953 (expand_symtabs_matching, map_symbol_filenames): Update.
2954 * symfile-debug.c (objfile::has_partial_symbols)
2955 (objfile::find_last_source_symtab)
2956 (objfile::forget_cached_source_info)
2957 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2958 (objfile::print_stats, objfile::dump)
2959 (objfile::expand_symtabs_for_function)
2960 (objfile::expand_all_symtabs)
2961 (objfile::expand_symtabs_with_fullname)
2962 (objfile::map_matching_symbols)
2963 (objfile::expand_symtabs_matching)
2964 (objfile::find_pc_sect_compunit_symtab)
2965 (objfile::map_symbol_filenames)
2966 (objfile::find_compunit_symtab_by_address)
2967 (objfile::lookup_global_symbol_language): New methods.
2968 (debug_sym_quick_functions): Remove.
2969 (debug_sym_fns, install_symfile_debug_logging): Update.
2970 * source.c (forget_cached_source_info_for_objfile)
2971 (select_source_symtab): Update.
2972 * objfiles.h (struct objfile): Add methods corresponding to
2973 quick_symbol_functions.
2974 * objfiles.c (objfile::has_partial_symbols): Move to
2975 symfile-debug.c.
2976 * linespec.c (iterate_over_all_matching_symtabs): Update.
2977 * cp-support.c (add_symbol_overload_list_qualified): Update.
2978 * ada-lang.c (add_nonlocal_symbols): Update.
2979
fae2120b
TT
29802021-03-20 Tom Tromey <tom@tromey.com>
2981
2982 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2983 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2984 bool.
2985 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2986 * psymtab.c (psym_has_symbols): Return bool.
2987 * objfiles.c (objfile::has_partial_symbols): Return bool.
2988 * dwarf2/read.c (dw2_has_symbols): Return bool.
2989
a8ad4f3c
TT
29902021-03-20 Tom Tromey <tom@tromey.com>
2991
2992 * symfile.c (read_symbols): Update.
2993 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2994 (objfile_has_partial_symbols): Don't declare.
2995 * objfiles.c (objfile::has_partial_symbols): Rename from
2996 objfile_has_partial_symbols.
2997 (objfile_has_symbols, have_partial_symbols): Update.
2998 * elfread.c (elf_symfile_read): Update.
2999 * dwarf2/read.c (dwarf2_has_info): Update.
3000 * coffread.c (coff_symfile_read): Update.
3001
70182375
TT
30022021-03-20 Tom Tromey <tom@tromey.com>
3003
3004 * coffread.c: Include dwarf2/public.h.
3005 * dwarf2/frame.c: Include dwarf2/public.h.
3006 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3007 * dwarf2/public.h: New file.
3008 * dwarf2/read.c: Include dwarf2/public.h.
3009 * elfread.c: Include dwarf2/public.h.
3010 * machoread.c: Include dwarf2/public.h.
3011 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3012 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3013 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3014 * xcoffread.c: Include dwarf2/public.h.
3015
18038e63
TT
30162021-03-20 Tom Tromey <tom@tromey.com>
3017
3018 * symfile.h (enum dwarf2_section_enum)
3019 (dwarf2_get_section_info): Move to dwarf2/read.h.
3020 * dwarf2/read.h (enum dwarf2_section_enum)
3021 (dwarf2_get_section_info): Move from symfile.h.
3022
219f56b4
PA
30232021-03-19 Pedro Alves <pedro@palves.net>
3024
3025 * thread.c (any_thread_of_inferior): Check if there's a selected
3026 thread before calling inferior_thread().
3027
15310fd4
TT
30282021-03-18 Tom Tromey <tromey@adacore.com>
3029
3030 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3031 get_DW_UT_name.
3032 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3033 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3034
763b8efd
AB
30352021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * python/py-param.c (get_set_value): Update header comment.
3038
f058c521
SM
30392021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3040
3041 * infrun.c (check_multi_target_resumption): Remove argument to
3042 all_non_exited_inferiors.
3043
383228bc
CB
30442021-03-16 Christian Biesinger <cbiesinger@google.com>
3045
3046 * windows-nat.c (windows_init_thread_list): Add message to
3047 debug log.
3048
7807d76a
AB
30492021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3050
3051 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3052 well as PyLong_Check for Python 2.
3053
675da9a5
TT
30542021-03-15 Tom Tromey <tromey@adacore.com>
3055
3056 PR build/27579:
3057 * rust-exp.y (maker_map): Use gdb::hash_enum.
3058 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3059
4800761a
SM
30602021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3061
3062 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3063 end of debug print.
3064
eb5dd737
SM
30652021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3066
3067 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3068 parameter, adjust caller.
3069
6813ceb0
TT
30702021-03-15 Tom Tromey <tromey@adacore.com>
3071
3072 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3073
3b5c4de0
TT
30742021-03-15 Tom Tromey <tromey@adacore.com>
3075
3076 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3077 ada_ensure_varsize_limit.
3078
c04da66c
TT
30792021-03-15 Tom Tromey <tromey@adacore.com>
3080
3081 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3082 fixed-point.
3083 * ada-exp.y (maybe_overload): New function.
3084 (ada_wrap_overload): New function.
3085 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3086 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3087 (or_else_exp, xor_exp, primary): Update.
3088
9863c3b5
TT
30892021-03-15 Tom Tromey <tromey@adacore.com>
3090
3091 PR ada/27545:
3092 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3093 call for tagged type.
3094
1ac74522
TT
30952021-03-15 Tom Tromey <tromey@adacore.com>
3096
3097 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3098 assignment.
3099
207582c0
TT
31002021-03-15 Tom Tromey <tromey@adacore.com>
3101
3102 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3103 container.
3104 (ada_assign_operation::evaluate): Update.
3105 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3106 Change return type.
3107
8d624a9d
FW
31082021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3109
3110 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3111
ba6a0ef3
AB
31122021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3113
3114 * python/python.c (gdbpy_source_objfile_script): Use
3115 make_scoped_restore to restore gdbpy_current_objfile.
3116 (gdbpy_execute_objfile_script): Likewise.
3117
7c290a04
TT
31182021-03-14 Tom Tromey <tom@tromey.com>
3119
3120 * dwarf2/read.c (read_attribute_value): Use cu_header
3121 consistently.
3122
0280fdcc
TT
31232021-03-14 Tom Tromey <tom@tromey.com>
3124
3125 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3126 (peek_die_abbrev): Use reader.abfd.
3127
a9f172c6
TT
31282021-03-14 Tom Tromey <tom@tromey.com>
3129
3130 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3131 m_header_read_in.
3132
7c32eebb
TT
31332021-03-13 Tom Tromey <tom@tromey.com>
3134
3135 * dwarf2/read.c (struct partial_die_info): Update.
3136 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3137 (load_partial_dies, partial_die_info::partial_die_info): Update.
3138 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3139
27012aba
TT
31402021-03-13 Tom Tromey <tom@tromey.com>
3141
3142 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3143
fece451c
CB
31442021-03-12 Christian Biesinger <cbiesinger@google.com>
3145
3146 PR threads/27239
3147 * cp-support.c: Use scoped_segv_handler_restore.
3148 * event-top.c (thread_local_segv_handler): Made static.
3149 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3150 New function.
3151 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3152 function.
3153 * event-top.h (class scoped_segv_handler_restore): New class.
3154 (thread_local_segv_handler): Removed.
3155
7056f312
TT
31562021-03-10 Tom Tromey <tromey@adacore.com>
3157
3158 * parser-defs.h (parser_state): Change completion to bool.
3159 <parse_completion>: Likewise.
3160 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3161 (ada_resolve_variable, ada_resolve_function): Update.
3162 * ada-lang.c (ada_find_operator_symbol): Change
3163 parse_completion to bool.
3164 (ada_resolve_funcall, ada_resolve_variable)
3165 (ada_resolve_function): Likewise.
3166
ccdc02ed
TT
31672021-03-09 Tom Tromey <tromey@adacore.com>
3168
3169 * eval.c (operation::evaluate_funcall): Use function formal
3170 parameter types when evaluating.
3171
fbb1aace
AB
31722021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3173
3174 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3175 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3176 and owner to m_owner.
3177
611aa09d
FW
31782021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3179
3180 * f-exp.h (eval_op_f_loc): Declare.
3181 (expr::fortran_loc_operation): New typedef.
3182 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3183 UNOP_INTRINSIC.
3184 (f77_keywords): Add LOC keyword.
3185 * f-lang.c (eval_op_f_loc): New function.
3186 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3187
eef32f59
AB
31882021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * f-exp.h (eval_op_f_array_shape): Declare.
3191 (fortran_array_shape_operation): New type.
3192 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3193 UNOP_INTRINSIC.
3194 (f77_keywords): Add "shape" keyword.
3195 * f-lang.c (fortran_array_shape): New function.
3196 (eval_op_f_array_shape): New function.
3197 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3198
7ba155b3
AB
31992021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3200
3201 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3202 of this function.
3203 (expr::fortran_array_size_1arg): New type.
3204 (expr::fortran_array_size_2arg): Likewise.
3205 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3206 UNOP_OR_BINOP_INTRINSIC.
3207 (f77_keywords): Add "size" keyword.
3208 * f-lang.c (fortran_array_size): New function.
3209 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3210 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3211
e14816a8
AB
32122021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3213
3214 * f-exp.h (eval_op_f_rank): Declare.
3215 (expr::fortran_rank_operation): New typedef.
3216 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3217 UNOP_INTRINSIC.
3218 (f77_keywords): Add "rank" keyword.
3219 * f-lang.c (eval_op_f_rank): New function.
3220 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3221
3dd93bf8
TT
32222021-03-08 Tom Tromey <tom@tromey.com>
3223
3224 * printcmd.c (set_command): Remove null check.
3225 * value.c (init_if_undefined_command): Remove null check.
3226
9c79936b
TT
32272021-03-08 Tom Tromey <tom@tromey.com>
3228
3229 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3230 Update.
3231 * p-exp.y (variable): Update.
3232 * go-exp.y (variable): Update.
3233 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3234 Remove overload for objfile.
3235 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3236 parameter.
3237 (check_objfile): Likewise.
3238 (dump_for_expression): Likewise. Remove overload for objfile.
3239 (class var_msym_value_operation): Use bound_minimal_symbol.
3240 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3241 parameter.
3242 (var_msym_value_operation::evaluate_for_address)
3243 (var_msym_value_operation::evaluate_for_sizeof)
3244 (var_msym_value_operation::evaluate_for_cast): Update.
3245 * d-exp.y (PrimaryExpression): Update.
3246 * c-exp.y (variable): Update.
3247 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3248 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3249 Update.
3250 * ada-exp.y (write_var_or_type): Update.
3251
40d07d07
TT
32522021-03-08 Tom Tromey <tom@tromey.com>
3253
3254 * parser-defs.h (exp_uses_objfile): Return bool.
3255 * parse.c (exp_uses_objfile): Return bool.
3256
0b2b0b82
TT
32572021-03-08 Tom Tromey <tom@tromey.com>
3258
3259 * value.h (eval_skip_value): Don't declare.
3260 * opencl-lang.c (eval_opencl_assign): Update.
3261 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3262 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3263 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3264 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3265 * expop.h (typeof_operation::evaluate)
3266 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3267 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3268 (cxx_cast_operation::evaluate): Update.
3269 * eval.c (eval_skip_value): Remove.
3270 (eval_op_scope, eval_op_var_entry_value)
3271 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3272 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3273 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3274 (eval_op_binary, eval_op_subscript, eval_op_equal)
3275 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3276 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3277 (eval_op_complement, eval_op_lognot, eval_op_ind)
3278 (eval_op_memval, eval_op_preinc, eval_op_predec)
3279 (eval_op_postinc, eval_op_postdec, eval_op_type)
3280 (eval_binop_assign_modify, eval_op_objc_msgcall)
3281 (eval_multi_subscript, logical_and_operation::evaluate)
3282 (logical_or_operation::evaluate, array_operation::evaluate)
3283 (operation::evaluate_for_cast)
3284 (var_msym_value_operation::evaluate_for_cast)
3285 (var_value_operation::evaluate_for_cast): Update.
3286 * c-lang.c (c_string_operation::evaluate): Update.
3287 * c-exp.h (objc_nsstring_operation::evaluate)
3288 (objc_selector_operation::evaluate): Update.
3289 * ada-lang.c (ada_assign_operation::evaluate)
3290 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3291 (ada_atr_size): Update.
3292
96db551d
TT
32932021-03-08 Tom Tromey <tom@tromey.com>
3294
3295 * eval.c: Merge "namespace" scopes.
3296
ce284361
TT
32972021-03-08 Tom Tromey <tom@tromey.com>
3298
3299 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3300 <release>: Inline.
3301 * parse.c (expr_builder::expr_builder, expr_builder::release):
3302 Remove.
3303
b9d06571
TT
33042021-03-08 Tom Tromey <tom@tromey.com>
3305
3306 * parse.c (expression::expression, expression::~expression):
3307 Remove.
3308 * expression.h (struct expression): Inline constructor. Remove
3309 destructor.
3310
79ab486e
TT
33112021-03-08 Tom Tromey <tom@tromey.com>
3312
3313 * std-operator.def (BINOP_END): Remove.
3314 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3315 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3316 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3317 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3318 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3319 BINOP_END.
3320
48fa6f23
TT
33212021-03-08 Tom Tromey <tom@tromey.com>
3322
3323 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3324
43f542e3
TT
33252021-03-08 Tom Tromey <tom@tromey.com>
3326
3327 * std-operator.def (OP_EXTENDED0): Remove.
3328
5d9ba982
TT
33292021-03-08 Tom Tromey <tom@tromey.com>
3330
3331 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3332 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3333 Remove.
3334
d357570d
TT
33352021-03-08 Tom Tromey <tom@tromey.com>
3336
3337 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3338 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3339
0922dc84
TT
33402021-03-08 Tom Tromey <tom@tromey.com>
3341
3342 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3343 * ada-lang.c (ada_binop_minmax): Update.
3344 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3345 Use BINOP_MIN and BINOP_MAX.
3346
1eaebe02
TT
33472021-03-08 Tom Tromey <tom@tromey.com>
3348
3349 * value.h (evaluate_subexp_with_coercion): Don't declare.
3350 * parse.c (exp_descriptor_standard): Remove.
3351 (expr_builder::expr_builder, expr_builder::release): Update.
3352 (expression::expression): Remove size_t parameter.
3353 (expression::~expression): Simplify.
3354 (expression::resize): Remove.
3355 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3356 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3357 (write_exp_elt_longcst, write_exp_elt_floatcst)
3358 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3359 (write_exp_string_vector, write_exp_bitstring): Remove.
3360 * p-lang.h (class pascal_language) <opcode_print_table,
3361 op_print_tab>: Remove.
3362 * p-lang.c (pascal_language::op_print_tab): Remove.
3363 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3364 Remove.
3365 * objc-lang.c (objc_op_print_tab): Remove.
3366 (class objc_language) <opcode_print_table>: Remove.
3367 * m2-lang.h (class m2_language) <opcode_print_table,
3368 op_print_tab>: Remove.
3369 * m2-lang.c (m2_language::op_print_tab): Remove.
3370 * language.h (struct language_defn) <post_parser, expression_ops,
3371 opcode_print_table>: Remove.
3372 * language.c (language_defn::expression_ops)
3373 (auto_or_unknown_language::opcode_print_table): Remove.
3374 * go-lang.h (class go_language) <opcode_print_table,
3375 op_print_tab>: Remove.
3376 * go-lang.c (go_language::op_print_tab): Remove.
3377 * f-lang.h (class f_language) <opcode_print_table>: Remove
3378 <op_print_tab>: Remove.
3379 * f-lang.c (f_language::op_print_tab): Remove.
3380 * expression.h (union exp_element): Remove.
3381 (struct expression): Remove size_t parameter from constructor.
3382 <resize>: Remove.
3383 <first_opcode>: Update.
3384 <nelts, elts>: Remove.
3385 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3386 (evaluate_subexp_standard, print_expression, op_string)
3387 (dump_raw_expression): Don't declare.
3388 * expprint.c (print_expression, print_subexp)
3389 (print_subexp_funcall, print_subexp_standard, op_string)
3390 (dump_raw_expression, dump_subexp, dump_subexp_body)
3391 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3392 (dump_prefix_expression): Update.
3393 * eval.c (evaluate_subexp): Remove.
3394 (evaluate_expression, evaluate_type): Update.
3395 (evaluate_subexpression_type): Remove.
3396 (fetch_subexp_value): Remove "pc" parameter. Update.
3397 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3398 (evaluate_subexp_standard, evaluate_subexp_for_address)
3399 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3400 (evaluate_subexp_for_cast): Remove.
3401 (parse_and_eval_type): Update.
3402 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3403 * d-lang.c (d_op_print_tab): Remove.
3404 (class d_language) <opcode_print_table>: Remove.
3405 * c-lang.h (c_op_print_tab): Don't declare.
3406 * c-lang.c (c_op_print_tab): Remove.
3407 (class c_language, class cplus_language, class asm_language, class
3408 minimal_language) <opcode_print_table>: Remove.
3409 * breakpoint.c (update_watchpoint, watchpoint_check)
3410 (watchpoint_exp_is_const, watch_command_1): Update.
3411 * ax-gdb.h (union exp_element): Don't declare.
3412 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3413 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3414 (gen_expr_binop_rest): Remove.
3415 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3416 * ada-lang.c (ada_op_print_tab): Remove.
3417 (class ada_language) <post_parser, opcode_print_table>: Remove.
3418
f2a98603
TT
34192021-03-08 Tom Tromey <tom@tromey.com>
3420
3421 * go-lang.c (go_language::expression_ops): Don't declare.
3422 * go-lang.h (class go_language) <expression_ops>: Remove.
3423 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3424 Remove.
3425 (class opencl_language) <expression_ops>: Remove.
3426 * d-lang.c (class d_language) <expression_ops>: Remove.
3427 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3428 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3429 (class c_language, class cplus_language, class asm_language)
3430 (class minimal_language) <expression_ops>: Remove.
3431
d3c54a1c
TT
34322021-03-08 Tom Tromey <tom@tromey.com>
3433
3434 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3435 (evaluate_subexp_type, assign_aggregate)
3436 (aggregate_assign_positional, aggregate_assign_from_choices)
3437 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3438 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3439 (ada_operator_check, ada_forward_operator_length)
3440 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3441 Remove.
3442 (post_parser): Update.
3443 (class ada_language) <expresssion_ops>: Remove.
3444
5871f0a3
TT
34452021-03-08 Tom Tromey <tom@tromey.com>
3446
3447 * m2-lang.h (class m2_language) <expresssion_ops,
3448 exp_descriptor_modula2>: Remove.
3449 * m2-lang.c (evaluate_subexp_modula2)
3450 (m2_language::exp_descriptor_modula2): Remove.
3451
a99be8c1
TT
34522021-03-08 Tom Tromey <tom@tromey.com>
3453
3454 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3455 <exp_descriptor_tab>: Remove.
3456 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3457 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3458 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3459 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3460 Remove.
3461
aa1da9ed
TT
34622021-03-08 Tom Tromey <tom@tromey.com>
3463
3464 * rust-lang.h (class rust_language) <expression_ops,
3465 exp_descriptor_tab>: Remove.
3466 * rust-lang.c (rust_evaluate_funcall): Remove.
3467 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3468 EVAL_SKIP.
3469 (rust_evaluate_subexp): Remove.
3470 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3471 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3472 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3473
08a057e6
TT
34742021-03-08 Tom Tromey <tom@tromey.com>
3475
3476 * ada-exp.y: Create operations.
3477 (empty_stoken): Remove.
3478 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3479 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3480 (components): New global.
3481 (push_component, choice_component, pop_component, pop_components):
3482 New functions.
3483 (associations): New global
3484 (push_association, pop_association, pop_associations): New
3485 functions.
3486 (ada_parse): Update.
3487 (write_var_from_sym, write_int): Create operations.
3488 (write_exp_op_with_string): Remove.
3489 (write_object_renaming, write_selectors, write_ambiguous_var)
3490 (write_var_or_type, write_name_assoc): Create operations.
3491 * ada-lang.h (ada_index_type): Declare.
3492 * ada-lang.c (ada_index_type): No longer static.
3493
d308ba78
TT
34942021-03-08 Tom Tromey <tom@tromey.com>
3495
3496 * f-exp.y: Create operations.
3497 (f_language::parser): Update.
3498
f1b8ceef
TT
34992021-03-08 Tom Tromey <tom@tromey.com>
3500
3501 * m2-exp.y: Create operations.
3502 (m2_language::parser): Update.
3503
3163898e
TT
35042021-03-08 Tom Tromey <tom@tromey.com>
3505
3506 * p-exp.y: Create operations.
3507 (pascal_language::parser): Update.
3508
9412fdcc
TT
35092021-03-08 Tom Tromey <tom@tromey.com>
3510
3511 * d-exp.y: Create operations.
3512 (d_parse): Update.
3513
bb4e0574
TT
35142021-03-08 Tom Tromey <tom@tromey.com>
3515
3516 * go-exp.y: Create operations.
3517 (go_language::parser): Update.
3518
d182f279
TT
35192021-03-08 Tom Tromey <tom@tromey.com>
3520
3521 * objc-lang.c (end_msglist): Create operations.
3522 * c-exp.y: Change parser to create operations.
3523 (write_destructor_name): Remove.
3524 (c_parse): Update.
3525
c1299a23
TT
35262021-03-08 Tom Tromey <tom@tromey.com>
3527
3528 * rust-exp.y: Create operations.
3529 (rust_parser::convert_params_to_expression): Change return type.
3530 (binop_maker_ftype): New typedef.
3531 (maker_map): New global.
3532 (rust_parser::convert_ast_to_expression): Change return type.
3533 (rust_language::parser): Update.
3534 (_initialize_rust_exp): Initialize maker_map.
3535
4c5e7a93
TT
35362021-03-08 Tom Tromey <tom@tromey.com>
3537
3538 * stap-probe.c (binop_maker_ftype): New typedef.
3539 (stap_maker_map): New global.
3540 (stap_make_binop): New function.
3541 (stap_parse_register_operand): Return operation_up.
3542 (stap_parse_single_operand, stap_parse_argument_conditionally)
3543 (stap_parse_argument_1): Likewise.
3544 (stap_parse_argument): Create operations.
3545 (stap_probe::parse_arguments): Update.
3546 (_initialize_stap_probe): Initialize stap_maker_map.
3547 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3548 type.
3549 * i386-tdep.h (i386_stap_parse_special_token): Change return
3550 type.
3551 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3552 (i386_stap_parse_special_token_three_arg_disp)
3553 (i386_stap_parse_special_token): Change return type.
3554 * gdbarch.sh (stap_parse_special_token): Change return type.
3555 * gdbarch.c: Rebuild.
3556 * gdbarch.h: Rebuild.
3557 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3558 type.
3559 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3560 return type.
3561
482ddd69
TT
35622021-03-08 Tom Tromey <tom@tromey.com>
3563
3564 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3565 * gdbarch.h: Rebuild.
3566 * gdbarch.c: Rebuild.
3567 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3568 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3569 return type.
3570 (amd64_dtrace_parse_probe_argument): Update.
3571
8227d9e2
TT
35722021-03-08 Tom Tromey <tom@tromey.com>
3573
3574 * parser-defs.h (struct parser_state) <push, push_new,
3575 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3576 wrap2>: New methods.
3577 <m_operations>: New member.
3578 * parse.c (parser_state::push_c_string)
3579 (parser_state::push_symbol, parser_state::push_dollar): New
3580 methods.
3581
4933522d
TT
35822021-03-08 Tom Tromey <tom@tromey.com>
3583
3584 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3585 New member.
3586 (struct parser_state) <mark_struct_expression>: New method.
3587 * parse.c (parser_state::mark_struct_expression): Update assert.
3588 (parser_state::mark_struct_expression): New method.
3589 (parser_state::mark_completion_tag): Update assert.
3590 (parse_expression_for_completion): Handle expout_last_op.
3591
413403fc
TT
35922021-03-08 Tom Tromey <tom@tromey.com>
3593
3594 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3595 now in superclass.
3596 * value.h (fetch_subexp_value): Add "op" parameter.
3597 * value.c (init_if_undefined_command): Update.
3598 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3599 * stap-probe.c (stap_probe::compile_to_ax): Update.
3600 * printcmd.c (set_command): Update.
3601 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3602 Update.
3603 * parser-defs.h (struct expr_builder) <set_operation>: New
3604 method.
3605 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3606 * expression.h (struct expression) <first_opcode>: Update.
3607 <op>: New member.
3608 * expprint.c (dump_raw_expression, dump_prefix_expression):
3609 Update.
3610 * expop.h (class var_value_operation) <get_symbol>: New method.
3611 (class register_operation) <get_name>: New method.
3612 (class equal_operation): No longer a typedef, now a subclass.
3613 (class unop_memval_operation) <get_type>: New method.
3614 (class assign_operation) <get_lhs>: New method.
3615 (class unop_cast_operation) <get_type>: New method.
3616 * eval.c (evaluate_expression, evaluate_type)
3617 (evaluate_subexpression_type): Update.
3618 (fetch_subexp_value): Add "op" parameter.
3619 (parse_and_eval_type): Update.
3620 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3621 * breakpoint.c (update_watchpoint, watchpoint_check)
3622 (watchpoint_exp_is_const, watch_command_1): Update.
3623 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3624 Update.
3625
b0f9164c
TT
36262021-03-08 Tom Tromey <tom@tromey.com>
3627
3628 * ada-lang.c (ada_value_binop): Do not use op_string.
3629
a88c4354
TT
36302021-03-08 Tom Tromey <tom@tromey.com>
3631
3632 * expprint.c (dump_for_expression): New overload.
3633 * expop.h (check_objfile, dump_for_expression): Declare new
3634 overloads.
3635 * ada-lang.c (check_objfile): New overload.
3636 (assign_component, ada_aggregate_component::uses_objfile)
3637 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3638 (ada_aggregate_component::assign_aggregate)
3639 (ada_positional_component::uses_objfile)
3640 (ada_positional_component::dump, ada_positional_component::assign)
3641 (ada_discrete_range_association::uses_objfile)
3642 (ada_discrete_range_association::dump)
3643 (ada_discrete_range_association::assign)
3644 (ada_name_association::uses_objfile, ada_name_association::dump)
3645 (ada_name_association::assign)
3646 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3647 (ada_choices_component::assign)
3648 (ada_others_component::uses_objfile, ada_others_component::dump)
3649 (ada_others_component::assign, ada_assign_operation::evaluate):
3650 New methods.
3651 * ada-exp.h (ada_string_operation) <get_name>: New method.
3652 (class ada_assign_operation): New.
3653 (class ada_component): New.
3654 (ada_component_up): New typedef.
3655 (class ada_aggregate_operation, class ada_aggregate_component)
3656 (class ada_positional_component, class ada_others_component)
3657 (class ada_association): New.
3658 (ada_association_up): New typedef.
3659 (class ada_choices_component)
3660 (class ada_discrete_range_association)
3661 (class ada_name_association): New.
3662
d8a4ed8a
TT
36632021-03-08 Tom Tromey <tom@tromey.com>
3664
3665 * ada-lang.c (ada_var_value_operation::resolve)
3666 (ada_funcall_operation::resolve)
3667 (ada_ternop_slice_operation::resolve): New methods.
3668 * ada-exp.h (struct ada_resolvable): New.
3669 (class ada_var_value_operation): Derive from ada_resolvable.
3670 <get_block, resolve>: New methods.
3671 (class ada_funcall_operation): Derive from ada_resolvable.
3672 <resolve>: New method.
3673 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3674 <resolve>: New method.
3675
efe3af2f
TT
36762021-03-08 Tom Tromey <tom@tromey.com>
3677
3678 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3679 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3680 method.
3681 (class ada_funcall_operation): New.
3682
ebc06ad8
TT
36832021-03-08 Tom Tromey <tom@tromey.com>
3684
3685 * ada-lang.c (ada_structop_operation::evaluate): New method.
3686 * ada-exp.h (class ada_structop_operation): New.
3687
e8c33fa1
TT
36882021-03-08 Tom Tromey <tom@tromey.com>
3689
3690 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3691 * ada-exp.h (class ada_unop_ind_operation): New.
3692
065ec826
TT
36932021-03-08 Tom Tromey <tom@tromey.com>
3694
3695 * ada-lang.c (ada_binop_exp): No longer static.
3696 * ada-exp.h (ada_binop_exp_operation): New typedef.
3697
9e99f48f
TT
36982021-03-08 Tom Tromey <tom@tromey.com>
3699
3700 * ada-lang.c (ada_val_atr): No longer static.
3701 (ada_atr_val_operation::evaluate): New method.
3702 * ada-exp.h (class ada_atr_val_operation): New.
3703
7631cf6c
TT
37042021-03-08 Tom Tromey <tom@tromey.com>
3705
3706 * ada-lang.c (ada_pos_atr): No longer static.
3707 * ada-exp.h (ada_pos_operation): New typedef.
3708
7992accc
TT
37092021-03-08 Tom Tromey <tom@tromey.com>
3710
3711 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3712 parameters.
3713 (ada_evaluate_subexp): Use it.
3714
6ad3b8bf
TT
37152021-03-08 Tom Tromey <tom@tromey.com>
3716
3717 * ada-lang.c (ada_binop_minmax): No longer static.
3718 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3719 New typedefs.
3720
3f4a0053
TT
37212021-03-08 Tom Tromey <tom@tromey.com>
3722
3723 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3724 New method.
3725 * ada-exp.h (class ada_var_msym_value_operation): New.
3726
99a3b1e7
TT
37272021-03-08 Tom Tromey <tom@tromey.com>
3728
3729 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3730 (ada_var_value_operation::evaluate): New methods.
3731 * ada-exp.h (class ada_var_value_operation): New.
3732
60fa02ca
TT
37332021-03-08 Tom Tromey <tom@tromey.com>
3734
3735 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3736 * ada-exp.h (class ada_unop_atr_operation): New.
3737
82c3886e
TT
37382021-03-08 Tom Tromey <tom@tromey.com>
3739
3740 * ada-lang.c (ada_binop_in_bounds): No longer static.
3741 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3742
1b1ebfab
TT
37432021-03-08 Tom Tromey <tom@tromey.com>
3744
3745 * ada-lang.c (ada_ternop_slice): No longer static.
3746 * ada-exp.h (class ada_ternop_slice_operation): New.
3747
039e4b76
TT
37482021-03-08 Tom Tromey <tom@tromey.com>
3749
3750 * ada-exp.h (ada_bitwise_operation): New template class.
3751 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3752 (ada_bitwise_xor_operation): New typedefs.
3753
6e8fb7b7
TT
37542021-03-08 Tom Tromey <tom@tromey.com>
3755
3756 * ada-lang.c (ada_equal_binop): No longer static.
3757 * ada-exp.h (class ada_binop_equal_operation): New.
3758
d9e7db06
TT
37592021-03-08 Tom Tromey <tom@tromey.com>
3760
3761 * ada-lang.c (ada_mult_binop): No longer static.
3762 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3763 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3764
73796c73
TT
37652021-03-08 Tom Tromey <tom@tromey.com>
3766
3767 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3768 * ada-exp.h (class ada_binop_addsub_operation): New.
3769
cd9a3148
TT
37702021-03-08 Tom Tromey <tom@tromey.com>
3771
3772 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3773 (ada_resolve_variable): Declare.
3774 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3775 (ada_resolve_variable): New functions.
3776 (resolve_subexp): Update.
3777
cf12b17f
TT
37782021-03-08 Tom Tromey <tom@tromey.com>
3779
3780 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3781 method.
3782 * c-exp.h (class opencl_ternop_cond_operation): New.
3783
944fd3b8
TT
37842021-03-08 Tom Tromey <tom@tromey.com>
3785
3786 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3787 method.
3788 * c-exp.h (class opencl_logical_binop_operation): New.
3789
33b79214
TT
37902021-03-08 Tom Tromey <tom@tromey.com>
3791
3792 * opencl-lang.c (opencl_structop_operation::evaluate): New
3793 method.
3794 * c-exp.h (class opencl_structop_operation): New.
3795
2492ba36
TT
37962021-03-08 Tom Tromey <tom@tromey.com>
3797
3798 * opencl-lang.c (opencl_logical_not): No longer static. Change
3799 parameters.
3800 (evaluate_subexp_opencl): Update.
3801 * c-exp.h (opencl_notequal_operation): New typedef.
3802
a88c3c8d
TT
38032021-03-08 Tom Tromey <tom@tromey.com>
3804
3805 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3806 static. Change parameters.
3807 (eval_opencl_assign): No longer static. Add "op" parameter.
3808 (evaluate_subexp_opencl): Update.
3809 * c-exp.h (opencl_binop_operation): New template class.
3810 (opencl_assign_operation, opencl_equal_operation)
3811 (opencl_notequal_operation, opencl_less_operation)
3812 (opencl_gtr_operation, opencl_geq_operation)
3813 (opencl_leq_operation): New typedefs.
3814
e9677704
TT
38152021-03-08 Tom Tromey <tom@tromey.com>
3816
3817 * opencl-lang.c (opencl_value_cast): No longer static.
3818 * c-exp.h (opencl_cast_type_operation): New typedef.
3819
f403a4e4
TT
38202021-03-08 Tom Tromey <tom@tromey.com>
3821
3822 * f-exp.h (eval_op_f_allocated): Declare.
3823 (fortran_allocated_operation): New typedef.
3824 * f-lang.c (eval_op_f_allocated): No longer static.
3825
eb4c9271
TT
38262021-03-08 Tom Tromey <tom@tromey.com>
3827
3828 * f-lang.c (eval_op_f_associated): New functions.
3829 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3830 typedefs.
3831
58a76c72
TT
38322021-03-08 Tom Tromey <tom@tromey.com>
3833
3834 * f-lang.c (fortran_bound_1arg::evaluate)
3835 (fortran_bound_2arg::evaluate): New methods.
3836 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3837 New.
3838
2f98abe1
TT
38392021-03-08 Tom Tromey <tom@tromey.com>
3840
3841 * expop.h (class unop_addr_operation) <get_expression>: New
3842 method.
3843 * f-lang.c (fortran_undetermined::value_subarray)
3844 (fortran_undetermined::evaluate): New methods.
3845 (fortran_prepare_argument): New overload.
3846 * f-exp.h (class fortran_range_operation)
3847 (class fortran_undetermined): New classes.
3848
638fd74a
TT
38492021-03-08 Tom Tromey <tom@tromey.com>
3850
3851 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3852 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3853 method.
3854
a00b7254
TT
38552021-03-08 Tom Tromey <tom@tromey.com>
3856
3857 * expression.h (class operation) <evaluate_funcall>: New methods.
3858 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3859 (class var_value_operation) <evaluate_funcall>: New method.
3860 (class structop_base_operation) <evaluate_funcall>: New method.
3861 (class var_msym_value_operation) <evaluate_funcall>: New method.
3862 (class structop_member_base): New class.
3863 (class structop_member_operation): Derive from
3864 structop_member_base.
3865 (class structop_mptr_operation): Derive from
3866 structop_member_base.
3867 (class funcall_operation): New class.
3868 * eval.c (operation::evaluate_funcall)
3869 (var_value_operation::evaluate_funcall)
3870 (scope_operation::evaluate_funcall)
3871 (structop_member_base::evaluate_funcall)
3872 (structop_base_operation::evaluate_funcall): New methods.
3873
1c02eb30
TT
38742021-03-08 Tom Tromey <tom@tromey.com>
3875
3876 * expop.h (class array_operation): New.
3877 * eval.c (array_operation::evaluate_struct_tuple)
3878 (array_operation::evaluate): New methods.
3879
e4479080
TT
38802021-03-08 Tom Tromey <tom@tromey.com>
3881
3882 * expop.h (class adl_func_operation): New.
3883 * eval.c (adl_func_operation::evaluate): New method.
3884
95d49dfb
TT
38852021-03-08 Tom Tromey <tom@tromey.com>
3886
3887 * ada-lang.c (ada_unop_in_range): No longer static.
3888 * ada-exp.h (class ada_unop_range_operation): New.
3889
7c15d377
TT
38902021-03-08 Tom Tromey <tom@tromey.com>
3891
3892 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3893 No longer static.
3894 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3895 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3896
5019124b
TT
38972021-03-08 Tom Tromey <tom@tromey.com>
3898
3899 * expop.h (class logical_and_operation)
3900 (class logical_or_operation): New.
3901 * eval.c (logical_and_operation::evaluate)
3902 (logical_or_operation::evaluate): New methods.
3903 * ax-gdb.c (logical_and_operation::do_generate_ax)
3904 (logical_or_operation::do_generate_ax): New methods.
3905
2bc9b40c
TT
39062021-03-08 Tom Tromey <tom@tromey.com>
3907
3908 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3909 static.
3910 * m2-exp.h: New file.
3911
5947d337
TT
39122021-03-08 Tom Tromey <tom@tromey.com>
3913
3914 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3915 * rust-exp.h (class rust_aggregate_operation): New.
3916
e4407a20
TT
39172021-03-08 Tom Tromey <tom@tromey.com>
3918
3919 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3920 No longer static.
3921 * rust-exp.h (class rust_struct_anon): New.
3922 (class rust_structop): New.
3923
9db6b6dd
TT
39242021-03-08 Tom Tromey <tom@tromey.com>
3925
3926 * rust-lang.c (rust_range): No longer static.
3927 * rust-exp.h (class rust_range_operation): New.
3928
6ce1ad67
TT
39292021-03-08 Tom Tromey <tom@tromey.com>
3930
3931 * rust-lang.c (rust_subscript): No longer static.
3932 * rust-exp.h (class rust_subscript_operation): New.
3933
11dd3dce
TT
39342021-03-08 Tom Tromey <tom@tromey.com>
3935
3936 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3937 parameter.
3938 (rust_evaluate_subexp): Update.
3939 * rust-exp.h (class rust_unop_ind_operation): New.
3940
6fab4359
TT
39412021-03-08 Tom Tromey <tom@tromey.com>
3942
3943 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3944 longer static. Add "opcode" parameter.
3945 (rust_evaluate_subexp): Update.
3946 * rust-exp.h: New file.
3947
9dcd3e29
TT
39482021-03-08 Tom Tromey <tom@tromey.com>
3949
3950 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3951 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3952 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3953 (evaluate_subexp_f): Update.
3954 * f-exp.h: New file.
3955
fc715eb2
TT
39562021-03-08 Tom Tromey <tom@tromey.com>
3957
3958 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3959 * ada-exp.h (class ada_ternop_range_operation): New.
3960
cc6bd32e
TT
39612021-03-08 Tom Tromey <tom@tromey.com>
3962
3963 * ada-lang.c (ada_qual_operation::evaluate): New method.
3964 * ada-exp.h (class ada_qual_operation): New.
3965
42fecb61
TT
39662021-03-08 Tom Tromey <tom@tromey.com>
3967
3968 * ada-lang.c (ada_string_operation::evaluate): New method.
3969 * ada-exp.h (class ada_string_operation): New.
3970
03070ee9
TT
39712021-03-08 Tom Tromey <tom@tromey.com>
3972
3973 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3974 * ada-exp.h: New file.
3975
821e72d7
TT
39762021-03-08 Tom Tromey <tom@tromey.com>
3977
3978 * expop.h (class multi_subscript_operation): New.
3979 * eval.c (multi_subscript_operation::evaluate): New method.
3980
085734dd
TT
39812021-03-08 Tom Tromey <tom@tromey.com>
3982
3983 * eval.c (objc_msgcall_operation::evaluate): New method.
3984 * c-exp.h (class objc_msgcall_operation): New.
3985
e82a5afc
TT
39862021-03-08 Tom Tromey <tom@tromey.com>
3987
3988 * expop.h (class var_value_operation): New.
3989 * eval.c (var_value_operation::evaluate)
3990 (var_value_operation::evaluate_for_address)
3991 (var_value_operation::evaluate_with_coercion)
3992 (var_value_operation::evaluate_for_sizeof)
3993 (var_value_operation::evaluate_for_cast): New methods.
3994 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3995
d9ad79d8
TT
39962021-03-08 Tom Tromey <tom@tromey.com>
3997
3998 * expop.h (cxx_cast_ftype): New typedef.
3999 (cxx_cast_operation): New template.
4000 (dynamic_cast_operation, reinterpret_cast_operation): New
4001 typedefs.
4002
292382f4
TT
40032021-03-08 Tom Tromey <tom@tromey.com>
4004
4005 * expop.h (class unop_cast_type_operation): New.
4006 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4007 method.
4008
165a813a
TT
40092021-03-08 Tom Tromey <tom@tromey.com>
4010
4011 * expop.h (class unop_cast_operation): New.
4012 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4013
e5946e16
TT
40142021-03-08 Tom Tromey <tom@tromey.com>
4015
4016 * expop.h (class assign_modify_operation): New.
4017 * eval.c (eval_binop_assign_modify): No longer static.
4018 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4019
40786782
TT
40202021-03-08 Tom Tromey <tom@tromey.com>
4021
4022 * expop.h (class assign_operation): New.
4023 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4024
44b675c8
TT
40252021-03-08 Tom Tromey <tom@tromey.com>
4026
4027 * expop.h (class type_instance_operation): New.
4028 * eval.c (type_instance_operation::evaluate): New method.
4029
f6b42326
TT
40302021-03-08 Tom Tromey <tom@tromey.com>
4031
4032 * expop.h (class op_this_operation): New.
4033 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4034
cbc18219
TT
40352021-03-08 Tom Tromey <tom@tromey.com>
4036
4037 * expop.h (class unop_memval_operation)
4038 (class unop_memval_type_operation): New.
4039 * eval.c (eval_op_memval): No longer static.
4040 (unop_memval_operation::evaluate_for_address)
4041 (unop_memval_type_operation::evaluate_for_address)
4042 (unop_memval_operation::evaluate_for_sizeof)
4043 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4044 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4045 (unop_memval_type_operation::do_generate_ax): New methods.
4046
ae4bb61e
TT
40472021-03-08 Tom Tromey <tom@tromey.com>
4048
4049 * expop.h (class unop_alignof_operation): New.
4050 * eval.c (eval_op_alignof): No longer static.
4051
85d23bda
TT
40522021-03-08 Tom Tromey <tom@tromey.com>
4053
4054 * expop.h (class unop_sizeof_operation): New.
4055 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4056
14aff815
TT
40572021-03-08 Tom Tromey <tom@tromey.com>
4058
4059 * expop.h (class unop_addr_operation): New.
4060 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4061
929f3aa7
TT
40622021-03-08 Tom Tromey <tom@tromey.com>
4063
4064 * expop.h (class typeid_operation): New.
4065
0af8829e
TT
40662021-03-08 Tom Tromey <tom@tromey.com>
4067
4068 * expop.h (class decltype_operation): New.
4069
4efc574c
TT
40702021-03-08 Tom Tromey <tom@tromey.com>
4071
4072 * expop.h (class typeof_operation): New.
4073
5b5f5140
TT
40742021-03-08 Tom Tromey <tom@tromey.com>
4075
4076 * expop.h (class type_operation): New.
4077 * eval.c (eval_op_type): No longer static.
4078
876469ff
TT
40792021-03-08 Tom Tromey <tom@tromey.com>
4080
4081 * expop.h (class unop_ind_base_operation)
4082 (class unop_ind_operation): New.
4083 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4084 (unop_ind_base_operation::evaluate_for_address)
4085 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4086 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4087
6d89e296
TT
40882021-03-08 Tom Tromey <tom@tromey.com>
4089
4090 * expop.h (unop_incr_operation): New template.
4091 (preinc_operation, predec_operation, postinc_operation)
4092 (postdec_operation): New typedefs.
4093 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4094 (eval_op_postdec): No longer static.
4095
9307d17b
TT
40962021-03-08 Tom Tromey <tom@tromey.com>
4097
4098 * expop.h (unary_ftype): New typedef.
4099 (unop_operation, usual_ax_binop_operation): New templates.
4100 (unary_plus_operation, unary_neg_operation)
4101 (unary_complement_operation, unary_logical_not_operation): New
4102 typedefs.
4103 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4104 (eval_op_lognot): No longer static.
4105 * ax-gdb.c (gen_expr_unop): New function.
4106
ae64ba58
TT
41072021-03-08 Tom Tromey <tom@tromey.com>
4108
4109 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4110
d4eff4c1
TT
41112021-03-08 Tom Tromey <tom@tromey.com>
4112
4113 * expop.h (class repeat_operation): New.
4114 * eval.c (eval_op_repeat): No longer static. Remove "op"
4115 parameter.
4116 (evaluate_subexp_standard): Update.
4117 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4118
46916f2b
TT
41192021-03-08 Tom Tromey <tom@tromey.com>
4120
4121 * expop.h (class comparison_operation): New.
4122 (equal_operation, notequal_operation, less_operation)
4123 (gtr_operation, geq_operation, leq_operation): New typedefs.
4124 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4125 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4126
224d6424
TT
41272021-03-08 Tom Tromey <tom@tromey.com>
4128
4129 * expop.h (class subscript_operation): New.
4130 * eval.c (eval_op_subscript): No longer static.
4131
373907ff
TT
41322021-03-08 Tom Tromey <tom@tromey.com>
4133
4134 * expop.h (class binop_operation, class usual_ax_binop_operation):
4135 New.
4136 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4137 (div_operation, rem_operation, lsh_operation, rsh_operation)
4138 (bitwise_and_operation, bitwise_ior_operation)
4139 (bitwise_xor_operation): New typedefs.
4140 * eval.c (eval_op_binary): No longer static.
4141
5133d78b
TT
41422021-03-08 Tom Tromey <tom@tromey.com>
4143
4144 * expop.h (class sub_operation): New.
4145 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4146 (evaluate_subexp_standard): Update.
4147
a94323b6
TT
41482021-03-08 Tom Tromey <tom@tromey.com>
4149
4150 * expop.h (class add_operation): New.
4151 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4152 (evaluate_subexp_standard): Update.
4153
e51e26a0
TT
41542021-03-08 Tom Tromey <tom@tromey.com>
4155
4156 * expop.h (class concat_operation): New.
4157 * eval.c (eval_op_concat): No longer static. Remove "op"
4158 parameter.
4159 (evaluate_subexp_standard): Update.
4160
07f724a8
TT
41612021-03-08 Tom Tromey <tom@tromey.com>
4162
4163 * expop.h (class structop_member_operation)
4164 (class structop_mptr_operation): New.
4165 * eval.c (eval_op_member): No longer static.
4166
ab0609be
TT
41672021-03-08 Tom Tromey <tom@tromey.com>
4168
4169 * expop.h (class structop_ptr_operation): New.
4170 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4171 parameter.
4172
808b22cf
TT
41732021-03-08 Tom Tromey <tom@tromey.com>
4174
4175 * expop.h (class structop_base_operation)
4176 (class structop_operation): New.
4177 * eval.c (eval_op_structop_struct): No longer static.
4178
8cfd3e95
TT
41792021-03-08 Tom Tromey <tom@tromey.com>
4180
4181 * expop.h (class complex_operation): New.
4182
09db3700
TT
41832021-03-08 Tom Tromey <tom@tromey.com>
4184
4185 * eval.c (eval_op_objc_selector): No longer static.
4186 * c-exp.h (class objc_selector_operation): New.
4187
06dc61b9
TT
41882021-03-08 Tom Tromey <tom@tromey.com>
4189
4190 * eval.c: Include c-exp.h.
4191 * c-exp.h (class objc_nsstring_operation): New.
4192
72d0a711
TT
41932021-03-08 Tom Tromey <tom@tromey.com>
4194
4195 * c-lang.c (c_string_operation::evaluate): New method.
4196 * c-exp.h: New file.
4197
9186293f
TT
41982021-03-08 Tom Tromey <tom@tromey.com>
4199
4200 * expop.h (class ternop_cond_operation): New.
4201 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4202
1594e0bb
TT
42032021-03-08 Tom Tromey <tom@tromey.com>
4204
4205 * expop.h (class ternop_slice_operation): New.
4206 * eval.c (eval_op_ternop): No longer static.
4207
b50db09f
TT
42082021-03-08 Tom Tromey <tom@tromey.com>
4209
4210 * expop.h (class string_operation): New.
4211 * eval.c (eval_op_string): No longer static.
4212
e6e01e16
TT
42132021-03-08 Tom Tromey <tom@tromey.com>
4214
4215 * expop.h (class internalvar_operation): New.
4216 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4217
e6985c5e
TT
42182021-03-08 Tom Tromey <tom@tromey.com>
4219
4220 * expop.h (class bool_operation): New.
4221
55bdbff8
TT
42222021-03-08 Tom Tromey <tom@tromey.com>
4223
4224 * expop.h (class register_operation): New.
4225 * eval.c (eval_op_register): No longer static.
4226 * ax-gdb.c (register_operation::do_generate_ax): New method.
4227
247d935b
TT
42282021-03-08 Tom Tromey <tom@tromey.com>
4229
4230 * expop.h (class last_operation): New.
4231
17679395
TT
42322021-03-08 Tom Tromey <tom@tromey.com>
4233
4234 * expop.h (class func_static_var_operation): New.
4235 * eval.c (eval_op_func_static_var): No longer static.
4236
b5cc3923
TT
42372021-03-08 Tom Tromey <tom@tromey.com>
4238
4239 * expop.h (class var_entry_value_operation): New.
4240 * eval.c (eval_op_var_entry_value): No longer static.
4241
0c8effa3
TT
42422021-03-08 Tom Tromey <tom@tromey.com>
4243
4244 * expression.h (class operation) <set_outermost>: New method.
4245 * expop.h (class var_msym_value_operation): New.
4246 * eval.c (eval_op_var_msym_value): No longer static.
4247 (var_msym_value_operation::evaluate_for_address)
4248 (var_msym_value_operation::evaluate_for_sizeof)
4249 (var_msym_value_operation::evaluate_for_cast): New methods.
4250 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4251 method.
4252
d336c29e
TT
42532021-03-08 Tom Tromey <tom@tromey.com>
4254
4255 * expop.h (class long_const_operation): New.
4256 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4257
d5ab122c
TT
42582021-03-08 Tom Tromey <tom@tromey.com>
4259
4260 * expop.h (class scope_operation): New.
4261 * eval.c (eval_op_scope): No longer static.
4262 (scope_operation::evaluate_for_address): New method.
4263 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4264
cae26a0c
TT
42652021-03-08 Tom Tromey <tom@tromey.com>
4266
4267 * expprint.c (float_const_operation::dump): New method.
4268 * expop.h (float_data): New typedef.
4269 (class float_const_operation): New.
4270
75f9892d
TT
42712021-03-08 Tom Tromey <tom@tromey.com>
4272
4273 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4274 * ax-gdb.c (gen_expr_binop): New function.
4275 (gen_expr_structop): Likewise.
4276
de401988
TT
42772021-03-08 Tom Tromey <tom@tromey.com>
4278
4279 * expprint.c (expr::dump_for_expression): New functions.
4280 * expop.h (dump_for_expression): New overloads.
4281 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4282 Update.
4283
e2803273
TT
42842021-03-08 Tom Tromey <tom@tromey.com>
4285
4286 * expression.h (expr::operation): New class.
4287 (expr::make_operation): New function.
4288 (expr::operation_up): New typedef.
4289 * expop.h: New file.
4290 * eval.c (operation::evaluate_for_cast)
4291 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4292 New methods.
4293 * ax-gdb.c (operation::generate_ax): New method.
4294
e18c58f2
TT
42952021-03-08 Tom Tromey <tom@tromey.com>
4296
4297 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4298 (gen_expr_binop_rest): New overload.
4299
c0d7ed8c
TT
43002021-03-08 Tom Tromey <tom@tromey.com>
4301
4302 * eval.c (eval_multi_subscript): New function.
4303 (evaluate_subexp_standard): Use it.
4304
dd5fd283
TT
43052021-03-08 Tom Tromey <tom@tromey.com>
4306
4307 * ada-lang.c (ada_binop_exp): New function.
4308 (ada_evaluate_subexp): Use it.
4309
3848abd6
TT
43102021-03-08 Tom Tromey <tom@tromey.com>
4311
4312 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4313 parameters.
4314 (ada_evaluate_subexp): Use it.
4315
38dc70cf
TT
43162021-03-08 Tom Tromey <tom@tromey.com>
4317
4318 * ada-lang.c (ada_binop_minmax): New function.
4319 (ada_evaluate_subexp): Use it.
4320
b84564fc
TT
43212021-03-08 Tom Tromey <tom@tromey.com>
4322
4323 * ada-lang.c (ada_unop_atr): New function.
4324 (ada_evaluate_subexp): Use it.
4325
b467efaa
TT
43262021-03-08 Tom Tromey <tom@tromey.com>
4327
4328 * ada-lang.c (ada_binop_in_bounds): New function.
4329 (ada_evaluate_subexp): Use it.
4330
5ce19db8
TT
43312021-03-08 Tom Tromey <tom@tromey.com>
4332
4333 * ada-lang.c (ada_ternop_slice): New function.
4334 (ada_evaluate_subexp): Use it.
4335
214b13ac
TT
43362021-03-08 Tom Tromey <tom@tromey.com>
4337
4338 * ada-lang.c (ada_equal_binop): New function.
4339 (ada_evaluate_subexp): Use it.
4340
faa1dfd7
TT
43412021-03-08 Tom Tromey <tom@tromey.com>
4342
4343 * ada-lang.c (ada_mult_binop): New function.
4344 (ada_evaluate_subexp): Use it.
4345
d05e24e6
TT
43462021-03-08 Tom Tromey <tom@tromey.com>
4347
4348 * ada-lang.c (ada_abs): New function.
4349 (ada_evaluate_subexp): Use it.
4350
68c75735
TT
43512021-03-08 Tom Tromey <tom@tromey.com>
4352
4353 * ada-lang.c (ada_atr_size): New function.
4354 (ada_evaluate_subexp): Use it.
4355
020dbabe
TT
43562021-03-08 Tom Tromey <tom@tromey.com>
4357
4358 * ada-lang.c (ada_atr_tag): New function.
4359 (ada_evaluate_subexp): Use it.
4360
7efc87ff
TT
43612021-03-08 Tom Tromey <tom@tromey.com>
4362
4363 * ada-lang.c (ada_unop_in_range): New function.
4364 (ada_evaluate_subexp): Use it.
4365
82390ab8
TT
43662021-03-08 Tom Tromey <tom@tromey.com>
4367
4368 * ada-lang.c (ada_unop_neg): New function.
4369 (ada_evaluate_subexp): Use it.
4370
62d4bd94
TT
43712021-03-08 Tom Tromey <tom@tromey.com>
4372
4373 * ada-lang.c (eval_ternop_in_range): New function.
4374 (ada_evaluate_subexp): Use it.
4375
3634f669
TT
43762021-03-08 Tom Tromey <tom@tromey.com>
4377
4378 * opencl-lang.c (eval_opencl_assign): New function.
4379 (evaluate_subexp_opencl): Use it.
4380
5e80600e
TT
43812021-03-08 Tom Tromey <tom@tromey.com>
4382
4383 * eval.c (eval_op_objc_msgcall): New function.
4384 (evaluate_subexp_standard): Use it.
4385
fb5ba2ab
TT
43862021-03-08 Tom Tromey <tom@tromey.com>
4387
4388 * eval.c (eval_binop_assign_modify): New function.
4389 (evaluate_subexp_standard): Use it.
4390
a49881f7
TT
43912021-03-08 Tom Tromey <tom@tromey.com>
4392
4393 * m2-lang.c (eval_op_m2_subscript): New function.
4394 (evaluate_subexp_modula2): Use it.
4395
41bdced5
TT
43962021-03-08 Tom Tromey <tom@tromey.com>
4397
4398 * m2-lang.c (eval_op_m2_high): New function.
4399 (evaluate_subexp_modula2): Use it.
4400
13ea014a
TT
44012021-03-08 Tom Tromey <tom@tromey.com>
4402
4403 * eval.c (evaluate_subexp_for_address_base): New function.
4404 (evaluate_subexp_for_address): Use it.
4405 (evaluate_subexp_for_sizeof_base): New function.
4406 (evaluate_subexp_for_sizeof): Use it.
4407
1fa41fc7
TT
44082021-03-08 Tom Tromey <tom@tromey.com>
4409
4410 * rust-lang.c (eval_op_rust_structop): New function.
4411 (rust_evaluate_subexp): Use it.
4412
575cae23
TT
44132021-03-08 Tom Tromey <tom@tromey.com>
4414
4415 * rust-lang.c (eval_op_rust_struct_anon): New function.
4416 (rust_evaluate_subexp): Use it.
4417
05104233
TT
44182021-03-08 Tom Tromey <tom@tromey.com>
4419
4420 * rust-lang.c (eval_op_rust_array): New function.
4421 (rust_evaluate_subexp): Use it.
4422
6fa9831f
TT
44232021-03-08 Tom Tromey <tom@tromey.com>
4424
4425 * rust-lang.c (eval_op_rust_complement): New function.
4426 (rust_evaluate_subexp): Use it.
4427
d123f9e4
TT
44282021-03-08 Tom Tromey <tom@tromey.com>
4429
4430 * rust-lang.c (eval_op_rust_ind): New function.
4431 (rust_evaluate_subexp): Use it.
4432
984af2cb
TT
44332021-03-08 Tom Tromey <tom@tromey.com>
4434
4435 * rust-lang.c (rust_subscript): Change parameters.
4436 (rust_evaluate_subexp): Update.
4437
d148f803
TT
44382021-03-08 Tom Tromey <tom@tromey.com>
4439
4440 * rust-lang.c (rust_range): Change parameters.
4441 (rust_evaluate_subexp): Update.
4442
9cbd1c20
TT
44432021-03-08 Tom Tromey <tom@tromey.com>
4444
4445 * f-lang.c (eval_op_f_allocated): New function.
4446 (evaluate_subexp_f): Use it.
4447
3c18c49c
TT
44482021-03-08 Tom Tromey <tom@tromey.com>
4449
4450 * f-lang.c (fortran_require_array): New function.
4451 (evaluate_subexp_f): Use it.
4452
216f6fcb
TT
44532021-03-08 Tom Tromey <tom@tromey.com>
4454
4455 * f-lang.c (eval_op_f_kind): New function.
4456 (evaluate_subexp_f): Use it.
4457
00f2db6f
TT
44582021-03-08 Tom Tromey <tom@tromey.com>
4459
4460 * f-lang.c (eval_op_f_cmplx): New function.
4461 (evaluate_subexp_f): Use it.
4462
93b2b5fa
TT
44632021-03-08 Tom Tromey <tom@tromey.com>
4464
4465 * f-lang.c (eval_op_f_modulo): New function.
4466 (evaluate_subexp_f): Use it.
4467
9f1a1f3c
TT
44682021-03-08 Tom Tromey <tom@tromey.com>
4469
4470 * f-lang.c (eval_op_f_floor): New function.
4471 (evaluate_subexp_f): Use it.
4472
3dc41f3c
TT
44732021-03-08 Tom Tromey <tom@tromey.com>
4474
4475 * f-lang.c (eval_op_f_ceil): New function.
4476 (evaluate_subexp_f): Use it.
4477
e08109f2
TT
44782021-03-08 Tom Tromey <tom@tromey.com>
4479
4480 * f-lang.c (eval_op_f_mod): New function.
4481 (evaluate_subexp_f): Use it.
4482
cc05c68e
TT
44832021-03-08 Tom Tromey <tom@tromey.com>
4484
4485 * f-lang.c (eval_op_f_abs): New function.
4486 (evaluate_subexp_f): Use it.
4487
aec95807
TT
44882021-03-08 Tom Tromey <tom@tromey.com>
4489
4490 * eval.c (eval_op_type): New function.
4491 (evaluate_subexp_standard): Use it.
4492
a220ead5
TT
44932021-03-08 Tom Tromey <tom@tromey.com>
4494
4495 * eval.c (eval_op_postdec): New function.
4496 (evaluate_subexp_standard): Use it.
4497
abffe116
TT
44982021-03-08 Tom Tromey <tom@tromey.com>
4499
4500 * eval.c (eval_op_postinc): New function.
4501 (evaluate_subexp_standard): Use it.
4502
9e1361b7
TT
45032021-03-08 Tom Tromey <tom@tromey.com>
4504
4505 * eval.c (eval_op_predec): New file.
4506 (evaluate_subexp_standard): Use it.
4507
00f50884
TT
45082021-03-08 Tom Tromey <tom@tromey.com>
4509
4510 * eval.c (eval_op_preinc): New function.
4511 (evaluate_subexp_standard): Use it.
4512
3aef2a07
TT
45132021-03-08 Tom Tromey <tom@tromey.com>
4514
4515 * eval.c (eval_op_memval): New function.
4516 (evaluate_subexp_standard): Use it.
4517
acee9468
TT
45182021-03-08 Tom Tromey <tom@tromey.com>
4519
4520 * eval.c (eval_op_alignof): New function.
4521 (evaluate_subexp_standard): Use it.
4522
786f70ee
TT
45232021-03-08 Tom Tromey <tom@tromey.com>
4524
4525 * eval.c (eval_op_ind): New function.
4526 (evaluate_subexp_standard): Use it.
4527
24338fb9
TT
45282021-03-08 Tom Tromey <tom@tromey.com>
4529
4530 * eval.c (eval_op_lognot): New function.
4531 (evaluate_subexp_standard): Use it.
4532
1f09ec81
TT
45332021-03-08 Tom Tromey <tom@tromey.com>
4534
4535 * eval.c (eval_op_complement): New function.
4536 (evaluate_subexp_standard): Use it.
4537
606d105f
TT
45382021-03-08 Tom Tromey <tom@tromey.com>
4539
4540 * eval.c (eval_op_neg): New function.
4541 (evaluate_subexp_standard): Use it.
4542
39f288be
TT
45432021-03-08 Tom Tromey <tom@tromey.com>
4544
4545 * eval.c (eval_op_plus): New function.
4546 (evaluate_subexp_standard): Use it.
4547
eed70b1c
TT
45482021-03-08 Tom Tromey <tom@tromey.com>
4549
4550 * eval.c (eval_op_repeat): New function.
4551 (evaluate_subexp_standard): Use it.
4552
60cdd487
TT
45532021-03-08 Tom Tromey <tom@tromey.com>
4554
4555 * eval.c (eval_op_leq): New function.
4556 (evaluate_subexp_standard): Use it.
4557
96e3efd9
TT
45582021-03-08 Tom Tromey <tom@tromey.com>
4559
4560 * eval.c (eval_op_geq): New function.
4561 (evaluate_subexp_standard): Use it.
4562
1f78d732
TT
45632021-03-08 Tom Tromey <tom@tromey.com>
4564
4565 * eval.c (eval_op_gtr): New function.
4566 (evaluate_subexp_standard): Use it.
4567
6cad1349
TT
45682021-03-08 Tom Tromey <tom@tromey.com>
4569
4570 * eval.c (eval_op_less): New function.
4571 (evaluate_subexp_standard): Use it.
4572
1fcb3559
TT
45732021-03-08 Tom Tromey <tom@tromey.com>
4574
4575 * eval.c (eval_op_notequal): New function.
4576 (evaluate_subexp_standard): Use it.
4577
0cc96de8
TT
45782021-03-08 Tom Tromey <tom@tromey.com>
4579
4580 * eval.c (eval_op_equal): New function.
4581 (evaluate_subexp_standard): Use it.
4582
288d26bc
TT
45832021-03-08 Tom Tromey <tom@tromey.com>
4584
4585 * eval.c (eval_op_subscript): New function.
4586 (evaluate_subexp_standard): Use it.
4587
7cdcdd02
TT
45882021-03-08 Tom Tromey <tom@tromey.com>
4589
4590 * eval.c (eval_op_binary): New function.
4591 (evaluate_subexp_standard): Use it.
4592
d9790e22
TT
45932021-03-08 Tom Tromey <tom@tromey.com>
4594
4595 * eval.c (eval_op_sub): New function.
4596 (evaluate_subexp_standard): Use it.
4597
aedaf9ac
TT
45982021-03-08 Tom Tromey <tom@tromey.com>
4599
4600 * eval.c (eval_op_add): New function.
4601 (evaluate_subexp_standard): Use it.
4602
b7a96ed2
TT
46032021-03-08 Tom Tromey <tom@tromey.com>
4604
4605 * eval.c (eval_op_member): New function.
4606 (evaluate_subexp_standard): Use it.
4607
fb461aa3
TT
46082021-03-08 Tom Tromey <tom@tromey.com>
4609
4610 * eval.c (eval_op_structop_ptr): New function.
4611 (evaluate_subexp_standard): Use it.
4612
3e96c4fc
TT
46132021-03-08 Tom Tromey <tom@tromey.com>
4614
4615 * eval.c (eval_op_structop_struct): New function.
4616 (evaluate_subexp_standard): Use it.
4617
f960a617
TT
46182021-03-08 Tom Tromey <tom@tromey.com>
4619
4620 * eval.c (eval_op_ternop): New function.
4621 (evaluate_subexp_standard): Use it.
4622
5c2f201e
TT
46232021-03-08 Tom Tromey <tom@tromey.com>
4624
4625 * eval.c (eval_op_concat): New function.
4626 (evaluate_subexp_standard): Use it.
4627
f871bae1
TT
46282021-03-08 Tom Tromey <tom@tromey.com>
4629
4630 * eval.c (eval_op_objc_selector): New function.
4631 (evaluate_subexp_standard): Use it.
4632
14a1c64a
TT
46332021-03-08 Tom Tromey <tom@tromey.com>
4634
4635 * eval.c (eval_op_string): New function.
4636 (evaluate_subexp_standard): Use it.
4637
ffff730b
TT
46382021-03-08 Tom Tromey <tom@tromey.com>
4639
4640 * eval.c (eval_op_register): New function.
4641 (evaluate_subexp_standard): Use it.
4642
9b1d8af6
TT
46432021-03-08 Tom Tromey <tom@tromey.com>
4644
4645 * eval.c (eval_op_func_static_var): New function.
4646 (evaluate_subexp_standard): Use it.
4647
c0df9289
TT
46482021-03-08 Tom Tromey <tom@tromey.com>
4649
4650 * eval.c (eval_op_var_msym_value): New function.
4651 (evaluate_subexp_standard): Use it.
4652
50b98adc
TT
46532021-03-08 Tom Tromey <tom@tromey.com>
4654
4655 * eval.c (eval_op_var_entry_value): New function.
4656 (evaluate_subexp_standard): Use it.
4657
ea2d29f7
TT
46582021-03-08 Tom Tromey <tom@tromey.com>
4659
4660 * eval.c (eval_op_scope): New function.
4661 (evaluate_subexp_standard): Use it.
4662
01573d73
TT
46632021-03-06 Chernov Sergey <klen_s@mail.ru>
4664
4665 PR gdb/27528:
4666 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4667
9938d15a
TT
46682021-03-06 Tom Tromey <tom@tromey.com>
4669
4670 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4671 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4672 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4673 (locate_dwz_sections, dwz_search_other_debugdirs)
4674 (dwarf2_get_dwz_file): Move to dwz.c.
4675 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4676 read.h.
4677 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4678 (dwarf2_get_dwz_file): Move from read.c.
4679
18035655
TT
46802021-03-06 Tom Tromey <tom@tromey.com>
4681
4682 * debuginfod-support.h: Include scoped_fd.h.
4683
a7308ce0
TT
46842021-03-06 Tom Tromey <tom@tromey.com>
4685
4686 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4687 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4688 (get_abbrev_section_for_cu, read_attribute_value)
4689 (get_debug_line_section): Update.
4690 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4691
fbedd546
TT
46922021-03-06 Tom Tromey <tom@tromey.com>
4693
4694 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4695 method.
4696 * dwarf2/read.c (section_is_p): Remove.
4697 (dwarf2_per_bfd::locate_sections)
4698 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4699 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4700 (dwarf2_locate_common_dwp_sections)
4701 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4702 Update.
4703
c2a62a3d
TT
47042021-03-06 Tom Tromey <tom@tromey.com>
4705
4706 * xcoffread.c: Include sect-names.h.
4707 * symfile.h (struct dwarf2_section_names, struct
4708 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4709 * dwarf2/sect-names.h: New file, from symfile.h.
4710 * dwarf2/read.c: Include sect-names.h.
4711
4444f407
TT
47122021-03-06 Tom Tromey <tom@tromey.com>
4713
4714 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4715 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4716 (abbrev_table::read): Update.
4717 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4718 (struct abbrev_info): Reformat.
4719 <attrs>: Now an array.
4720 (struct abbrev_table) <alloc_abbrev>: Remove.
4721
dd99cf0c
WP
47222021-03-06 Weimin Pan <weimin.pan@oracle.com>
4723
4724 * ctfread.c (ctf_psymtab_add_enums): New function.
4725 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4726
844be3f2
WP
47272021-03-06 Weimin Pan <weimin.pan@oracle.com>
4728
4729 * ctfread.c (read_func_kind_type): Set up function arguments.
4730
b2668f28
AB
47312021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4732 Andrew Burgess <andrew.burgess@embecosm.com>
4733
4734 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4735 includes.
4736 (riscv_csrset): New static global.
4737 (riscv_update_csrmap): New function.
4738 (riscv_iterate_over_regset_sections): Process CSRs.
4739
d782d24b
AB
47402021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4741
4742 * riscv-tdep.c (riscv_feature_name_csr): Define.
4743 (riscv_feature_name_cpu): Define.
4744 (riscv_feature_name_fpu): Define.
4745 (riscv_feature_name_virtual): Define.
4746 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4747 (riscv_freg_feature): Use riscv_feature_name_fpu.
4748 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4749 (riscv_csr_feature): Use riscv_feature_name_csr.
4750 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4751
fb8f3fc0
AB
47522021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4753 Craig Blackmore <craig.blackmore@embecosm.com>
4754
4755 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4756 (ALLDEPFILES): Add riscv-none-tdep.c.
4757 * configure: Regenerate.
4758 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4759 support.
4760 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4761 * elf-none-tdep.c: New file.
4762 * elf-none-tdep.h: New file.
4763 * riscv-none-tdep.c: New file.
4764
95ce627a
AB
47652021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4766 Andrew Burgess <andrew.burgess@embecosm.com>
4767
4768 * corelow.c: Add 'xml-tdesc.h' include.
4769 (core_target::read_description): Load the target description from
4770 the core file when possible.
4771 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4772 note.
4773 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4774 (gcore_elf_make_tdesc_note): New function.
4775 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4776 * linux-tdep.c (linux_make_corefile_notes): Add target description
4777 note.
4778
f3a5df7b
AB
47792021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4780
4781 * Makefile.in (SFILES): Add gcore-elf.c.
4782 (HFILES_NO_SRCDIR): Add gcore-elf.h
4783 * configure: Regenerate.
4784 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4785 support.
4786 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4787 (struct fbsd_collect_regset_section_cb_data): Delete.
4788 (fbsd_collect_regset_section_cb): Delete.
4789 (fbsd_collect_thread_registers): Delete.
4790 (struct fbsd_corefile_thread_data): Delete.
4791 (fbsd_corefile_thread): Delete.
4792 (fbsd_make_corefile_notes): Call
4793 gcore_elf_build_thread_register_notes instead of the now deleted
4794 FreeBSD code.
4795 * gcore-elf.c: New file, the content was moved here from
4796 linux-tdep.c, functions were renamed and given minor cleanup.
4797 * gcore-elf.h: New file.
4798 * gcore.c (gcore_find_signalled_thread): Moved here from
4799 linux-tdep.c and given a new name. Minor cleanups.
4800 * gcore.h (gcore_find_signalled_thread): Declare.
4801 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4802 (struct linux_collect_regset_section_cb_data): Delete.
4803 (linux_collect_regset_section_cb): Delete.
4804 (linux_collect_thread_registers): Delete.
4805 (linux_corefile_thread): Call
4806 gcore_elf_build_thread_register_notes.
4807 (find_signalled_thread): Delete.
4808 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4809
d1e93af6
SM
48102021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 PR gdb/27147
4813 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4814 process_stratum_target parameter,
4815 sparc_store_inferior_registers): update callers.
4816 * sparc-nat.c (sparc_fetch_inferior_registers,
4817 sparc_store_inferior_registers): Add process_stratum_target
4818 parameter. Switch current thread before calling
4819 sparc_supply_gregset / sparc_collect_rwindow.
4820 (sparc_store_inferior_registers): Likewise.
4821 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4822 (sparc32obsd_collect_uthread): Likewise.
4823 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4824 Add assertion.
4825 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4826 sparc64obsd_supply_uthread): Add assertion.
4827
1178743e
TT
48282021-03-04 Tom Tromey <tromey@adacore.com>
4829
4830 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4831 (aux_add_nonlocal_symbols): Update.
4832 (ada_add_block_symbols): Change "found_sym" to bool.
4833
1bfa81ac
TT
48342021-03-03 Tom Tromey <tromey@adacore.com>
4835
4836 * ada-lang.c (ada_resolve_function): Update comment.
4837 (is_nonfunction, add_symbols_from_enclosing_procs)
4838 (remove_extra_symbols): Likewise.
4839 (struct match_data): Add constructor, initializers.
4840 (add_nonlocal_symbols): Remove memset.
4841 (aux_add_nonlocal_symbols): Update comment.
4842 (ada_add_block_renamings, add_nonlocal_symbols)
4843 (ada_add_all_symbols): Likewise.
4844 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4845
bbcdf9ab
TT
48462021-03-02 Tom Tromey <tromey@adacore.com>
4847
4848 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4849 (cast_to_gnat_encoded_fixed_point_type): Remove.
4850 (ada_value_cast, ada_evaluate_subexp): Update.
4851 (gnat_encoded_fixed_point_type_info)
4852 (ada_is_gnat_encoded_fixed_point_type)
4853 (gnat_encoded_fixed_point_delta)
4854 (gnat_encoded_fixed_point_scaling_factor): Remove.
4855 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4856 (gnat_encoded_fixed_point_delta)
4857 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4858 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4859 (ada_print_type): Update.
4860 * ada-valprint.c (ada_value_print_num): Update.
4861 * dwarf2/read.c (ada_get_gnat_encoded_number)
4862 (ada_get_gnat_encoded_ratio): New functions.
4863 (finish_fixed_point_type): Use them. Add parameters.
4864 (GNAT_FIXED_POINT_SUFFIX): New define.
4865 (gnat_encoded_fixed_point_type_info): New function.
4866 (read_base_type): Handle gnat encodings.
4867
5f9febe0
TT
48682021-03-02 Tom Tromey <tromey@adacore.com>
4869
4870 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4871 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4872 std::string.
4873 (GROW_VECT): Remove.
4874 (grow_vect): Remove.
4875
d1183b06
TT
48762021-03-02 Tom Tromey <tromey@adacore.com>
4877
4878 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4879 * ada-lang.c (resolve_subexp): Update.
4880 (ada_resolve_function): Accept a vector.
4881 (is_nonfunction, add_defn_to_vec)
4882 (add_symbols_from_enclosing_procs): Likewise.
4883 (num_defns_collected, defns_collected): Remove.
4884 (remove_extra_symbols): Return a vector.
4885 (remove_irrelevant_renamings): Return void.
4886 (ada_add_local_symbols): Accept a vector.
4887 (struct match_data) <obstackp>: Remove.
4888 <resultp>: New member.
4889 (aux_add_nonlocal_symbols): Update.
4890 (ada_add_block_renamings, add_nonlocal_symbols)
4891 (ada_add_all_symbols): Accept a vector.
4892 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4893 vector.
4894 (ada_lookup_symbol): Update.
4895 (ada_add_block_symbols): Accept a vector.
4896 (get_var_value, iterate_over_symbols): Update.
4897 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4898 Update.
4899
886d459f
TT
49002021-03-02 Tom Tromey <tromey@adacore.com>
4901
4902 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4903
bdcccc56
TT
49042021-03-02 Tom Tromey <tromey@adacore.com>
4905
4906 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4907 auto_obstack.
4908 <root>: Initialize.
4909 (ada_pspace_data): Remove destructor.
4910 <sym_cache>: Now a unique_ptr.
4911 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4912 (ada_get_symbol_cache): Use 'new'.
4913 (ada_clear_symbol_cache): Rewrite.
4914
1228719f
TT
49152021-03-02 Tom Tromey <tromey@adacore.com>
4916
4917 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4918 is null.
4919
bb3a4efe
LS
49202021-02-27 Lancelot Six <lsix@lancelotsix.com>
4921
4922 PR gdb/27393
4923 * source.c (add_path): Skip empty dirnames.
4924
26b43ca6 49252021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4926
4927 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4928 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4929
dffdd8b5
SM
49302021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4931
4932 PR gdb/26861
4933 * target.c (target_mourn_inferior): Only compare pids in
4934 target_mourn_inferior.
4935
64d38fdd
JM
49362021-02-25 Jan Matyas <jmatyas@codasip.com>
4937
4938 PR gdb/26819
4939 * remote.c (remote_target::start_remote): Ensure the single
4940 thread, automatically added for remote targets without the
4941 concept of threading, is initially in set to the "resumed"
4942 state.
4943 * remote.c (remote_target::add_current_inferior_and_thread):
4944 Add return value - return the main thread.
4945
2450ad54
JV
49462021-02-25 Jan Vrany <jan.vrany@labware.com>
4947
4948 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4949 (mi_tsv_created): Likewise.
4950 (mi_tsv_deleted): Likewise.
4951
30c80d88
TV
49522021-02-25 Tom de Vries <tdevries@suse.de>
4953
4954 PR symtab/27354
4955 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4956 section_kind for &dwo_file->sections.info.
4957
68337b8b
AB
49582021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4959
4960 PR fortran/26155
4961 * f-lang.c (fortran_argument_convert): Delete declaration.
4962 (fortran_prepare_argument): New function.
4963 (evaluate_subexp_f): Move logic to new function
4964 fortran_prepare_argument.
4965
faeb9f13
AB
49662021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4967
4968 * f-exp.y (f77_keywords): Add 'associated'.
4969 * f-lang.c (fortran_associated): New function.
4970 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4971 (operator_length_f): Likewise.
4972 (print_unop_or_binop_subexp_f): New function.
4973 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4974 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4975 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4976 (operator_check_f): Likewise.
4977 * std-operator.def: Add FORTRAN_ASSOCIATED.
4978
170f4b23
AB
49792021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4980
4981 * f-exp.y (fortran_operators): Add ".xor.".
4982
aa659cfa
TV
49832021-02-24 Tom de Vries <tdevries@suse.de>
4984
4985 PR symtab/27336
4986 * dwarf2/attribute.c (attribute::form_is_signed): New function
4987 factored out of ...
4988 * dwarf2/attribute.h (attribute::as_signed): ... here.
4989 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4990 (attribute::form_is_signed): Declare.
4991 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4992 for DW_AT_decl_file.
4993
268c77c1
KB
49942021-02-24 Kevin Buettner <kevinb@redhat.com>
4995
4996 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4997 order for <sys/ptrace.h> and <asm/ptrace.h>.
4998
665af52e
KB
49992021-02-24 Kevin Buettner <kevinb@redhat.com>
5000
5001 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5002 <sys/ptrace.h>.
5003
dd80d750
AB
50042021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5005
5006 * exec.c (set_section_command): Move variable declarations into
5007 the function body, and use std::string instead of a fixed size
5008 buffer.
5009
336aa7b7
AB
50102021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5011
5012 * exec.c (exec_target::get_section_table): Delete member function.
5013 (section_table_read_available_memory): Use current_top_target, not
5014 just the exec_ops target.
5015 * target-delegates.c: Regenerate.
5016 * target.c (default_get_section_table): New function.
5017 * target.h (target_ops::get_section_table): Change default
5018 behaviour to call default_get_section_table.
5019 (default_get_section_table): Declare.
5020
02f7d26b
AB
50212021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * exec.c (exec_target::close): Call new clear_target_sections
5024 function.
5025 (program_space::add_target_sections): Update name of member
5026 variable.
5027 (program_space::add_target_sections): Update name of member
5028 variable.
5029 (program_space::remove_target_sections): Likewise.
5030 (exec_one_fork): Use new target_sections member function.
5031 (exec_target::get_section_table): Likewise.
5032 (exec_target::files_info): Likewise.
5033 (set_section_command): Likewise.
5034 (exec_set_section_address): Likewise.
5035 (exec_target::has_memory): Use new target_sections member
5036 function.
5037 * progspace.h (program_space::clear_target_sections): New member
5038 function.
5039 (program_space::target_sections): Rename member variable to
5040 m_target_sections, replace with a new member function.
5041 (program_space::m_target_sections): New member variable.
5042 * solib-dsbt.c (scan_dyntag): Use new member function.
5043 * solib-svr4.c (scan_dyntag): Likewise.
5044
19cf757a
AB
50452021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5046
5047 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5048 return type const.
5049 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5050 (section_table_read_available_memory): Make local const.
5051 (exec_target::xfer_partial): Make local const.
5052 (print_section_info): Make parameter const.
5053 * gdb/exec.h (print_section_info): Likewise.
5054 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5055 const.
5056 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5057 Likewise.
5058 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5059 Likewise.
5060 * gdb/s390-tdep.c (s390_load): Likewise.
5061 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5062 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5063 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5064 Rename to...
5065 (target_debug_print_const_target_section_table_p): ...this.
5066 * gdb/target-delegates.c: Regenerate.
5067 * gdb/target.c (target_get_section_table): Make return type const.
5068 (target_section_by_addr): Likewise. Also make some locals const.
5069 (memory_xfer_partial_1): Make some locals const.
5070 * gdb/target.h (struct target_ops) <get_section_table>: Make
5071 return type const.
5072 (target_section_by_addr): Likewise.
5073 (target_get_section_table): Likewise.
5074
02a79309
AB
50752021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5076
5077 * NEWS: Mention new 'maint info target-sections' command.
5078 * maint.c (maintenance_info_target_sections): New function.
5079 (_initialize_maint_cmds): Register new command.
5080
895b7b4e
AB
50812021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5082
5083 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5084 (riscv_features_from_bfd): ...this. Change parameter type to
5085 'bfd*', and update as required.
5086 (riscv_find_default_target_description): Update call to
5087 riscv_features_from_bfd. Select a default xlen based on
5088 info.bfd_arch_info.
5089 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5090
bc3c0632
AB
50912021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5092
5093 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5094 dynamic types in UNOP_IND.
5095
08ac5771
SM
50962021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5097
5098 PR gdb/26828
5099 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5100 Instantiate queue.
5101 (~dwarf2_queue_guard): Clear queue.
5102 (queue_comp_unit): Assert that queue is
5103 instantiated.
5104 (process_queue): Adjust.
5105 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5106
616c069a
SM
51072021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5108
5109 PR gdb/26828
5110 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5111 to decide whether or not to enqueue it for expansion.
5112 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5113 after calling maybe_queue_comp_unit.
5114
897608ed
SM
51152021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5116
5117 * linux-nat.c (linux_nat_filter_event): Return void.
5118
15908a11
TT
51192021-02-22 Tom Tromey <tromey@adacore.com>
5120
5121 * solib-svr4.c (enable_break): Update.
5122 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5123 type.
5124 (target_bfd_reopen): Change parameter type.
5125 * bfd-target.h (target_bfd_reopen): Change parameter type.
5126
f53fc427
SM
51272021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5128
5129 * thread.c (add_thread_silent): Add assert.
5130 (find_thread_ptid): Add assert.
5131
de146e19
SM
51322021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5133
5134 PR gdb/27435
5135 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5136 (target_unpush_up): Likewise.
5137 * procfs.c (procfs_target::attach): Push target early. Use
5138 target_unpush_up to unpush target in case of error.
5139 * target.h (struct target_unpusher): Move here.
5140 (target_unpush_up): Likewise.
5141
8488c357
KB
51422021-02-19 Kevin Buettner <kevinb@redhat.com>
5143
5144 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5145 (which in turn includes <gnulib/config.h>) before include
5146 of <signal.h>.
5147
5a9f5403
NC
51482021-02-19 Nelson Chu <nelson.chu@sifive.com>
5149
5150 PR 27158
5151 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5152 (decode_j_type_insn): Likewise.
5153 (decode_cj_type_insn): Likewise.
5154 (decode_b_type_insn): Likewise.
5155 (decode): Likewise.
5156
26f53cd3
TT
51572021-02-18 Tom Tromey <tom@tromey.com>
5158
5159 * expression.h (struct expression) <evaluate>: Declare method.
5160 * eval.c (evaluate_subexp): Simplify.
5161 (expression::evaluate): New method.
5162 (evaluate_expression, evaluate_type): Use expression::evaluate.
5163
6a780b67
KB
51642021-02-17 Kevin Buettner <kevinb@redhat.com>
5165
5166 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5167 to accessing it.
5168 (ada_lookup_name_info): Likewise.
5169
adeab0c5
MF
51702021-02-13 Mike Frysinger <vapier@gentoo.org>
5171
5172 * aclocal.m4: Regenerate.
5173
089436f7
TV
51742021-02-12 Tom de Vries <tdevries@suse.de>
5175
5176 PR threads/26228
5177 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5178 (lin_thread_signals): New static var.
5179 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5180 New function.
5181 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5182 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5183 Declare.
5184 * linux-thread-db.c (check_thread_signals): Use
5185 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5186
96df3e28
AB
51872021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5188
5189 * f-exp.y (f77_keywords): Add allocated.
5190 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5191 (operator_length_f): Likewise.
5192 (print_subexp_f): Likewise.
5193 (dump_subexp_body_f): Likewise.
5194 (operator_check_f): Likewise.
5195 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5196
05f68f52
TV
51972021-02-11 Tom de Vries <tdevries@suse.de>
5198
5199 PR symtab/27353
5200 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5201 Return true for DW_FORM_strx.
5202
b260f8d6
TT
52032021-02-11 Tom Tromey <tromey@adacore.com>
5204
5205 PR gdb/27383:
5206 * parse.c (write_exp_symbol_reference): Write sym.block.
5207
bf3386f0
AB
52082021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5209
5210 * NEWS: Mention changes to 'maint info sections'.
5211 * maint.c (match_substring): Return a bool, fix whitespace issue.
5212 (struct single_bfd_flag_info): New struct.
5213 (bfd_flag_info): New static global.
5214 (match_bfd_flags): Return a bool, use bfd_flag_info.
5215 (print_bfd_flags): Use bfd_flag_info.
5216 (maint_print_section_info): Delete trailing whitespace.
5217 (struct maint_info_sections_opts): New struct.
5218 (maint_info_sections_option_defs): New static global.
5219 (maint_info_sections_completer): New function.
5220 (maintenance_info_sections): Use option parsing mechanism.
5221 (_initialize_maint_cmds): Update command help text for 'maint info
5222 sections' and register a command completer.
5223
4790db14
AB
52242021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5225
5226 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5227 functionality merged into...
5228 (maint_print_all_sections): ...this new function.
5229 (maintenance_info_sections): Make use of maint_print_all_sections,
5230 allow all objects to be printed even where there's no executable.
5231
1db66e34
AB
52322021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5233
5234 * breakpoint.c (resolve_sal_pc): Make use of
5235 bound_minimal_symbol::obj_section.
5236 * maint.c (maintenance_translate_address): Likewise.
5237 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5238 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5239 member function.
5240 * printcmd.c (info_address_command): Make use of
5241 bound_minimal_symbol::obj_section.
5242
18b8df43
AM
52432021-02-11 Alan Modra <amodra@gmail.com>
5244
5245 * arm-symbian-tdep.c: Delete.
5246 * NEWS: Mention arm-symbian removal.
5247 * Makefile.in: Remove arm-symbian-tdep entries.
5248 * configure.tgt: Remove arm*-*-symbianelf*.
5249 * doc/gdb.texinfo: Remove mention of SymbianOS.
5250 * osabi.c (gdb_osabi_names): Remove "Symbian".
5251 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5252 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5253 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5254 handling.
5255 * testsuite/gdb.base/dup-sect.exp: Likewise.
5256 * testsuite/gdb.base/long_long.exp: Likewise.
5257 * testsuite/gdb.base/solib-weak.exp: Likewise.
5258 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5259 * testsuite/gdb.python/py-section-script.exp: Likewise.
5260 * testsuite/lib/dwarf.exp: Likewise.
5261 * testsuite/lib/gdb.exp: Likewise.
5262
e92c8eb8
AB
52632021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5264
5265 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5266 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5267 (one_or_two_args): New pattern.
5268 (f77_keywords): Add lbound and ubound.
5269 * f-lang.c (fortran_bounds_all_dims): New function.
5270 (fortran_bounds_for_dimension): New function.
5271 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5272 (operator_length_f): Likewise.
5273 (print_subexp_f): Likewise.
5274 (dump_subexp_body_f): Likewise.
5275 (operator_check_f): Likewise.
5276 * std-operator.def (FORTRAN_LBOUND): Define.
5277 (FORTRAN_UBOUND): Define.
5278
a52d653e
AB
52792021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5280
5281 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5282 and set_section_index member functions where appropriate.
5283 * coffread.c (coff_symtab_read): Likewise.
5284 (process_coff_symbol): Likewise.
5285 * ctfread.c (set_symbol_address): Likewise.
5286 * dwarf2/read.c (add_partial_symbol): Likewise.
5287 (var_decode_location): Likewise.
5288 * language.c: Likewise.
5289 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5290 (compact_minimal_symbols): Likewise.
5291 (minimal_symbol_upper_bound): Likewise.
5292 * objfiles.c (relocate_one_symbol): Likewise.
5293 * psympriv.h (partial_symbol::obj_section): Likewise.
5294 (partial_symbol::address): Likewise.
5295 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5296 * stabsread.c (scan_file_globals): Likewise.
5297 * symmisc.c (dump_msymbols): Likewise.
5298 * symtab.c (general_symbol_info::obj_section): Likewise.
5299 (fixup_section): Likewise.
5300 (get_msymbol_address): Likewise.
5301 * symtab.h (general_symbol_info::section): Rename to...
5302 (general_symbol_info::m_section): ...this.
5303 (general_symbol_info::set_section_index): New member function.
5304 (general_symbol_info::section_index): Likewise.
5305 (SYMBOL_SECTION): Delete.
5306 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5307 set_section_index member functions where appropriate.
5308 (MSYMBOL_SECTION): Delete.
5309 (symbol::symbol): Update to initialize 'm_section'.
5310 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5311 (process_xcoff_symbol): Likewise.
5312
ebbc3a7d
AB
53132021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5314
5315 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5316 MSYMBOL_OBJ_SECTION.
5317 * findvar.c (language_defn::read_var_value): Likewise.
5318 * infcmd.c (jump_command): Likewise.
5319 * linespec.c (minsym_found): Likewise.
5320 * maint.c (maintenance_translate_address): Likewise.
5321 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5322 (minimal_symbol_upper_bound): Likewise.
5323 * parse.c (find_minsym_type_and_address): Likewise.
5324 (operator_check_standard): Likewise.
5325 * printcmd.c (info_address_command): Likewise.
5326 * symmisc.c (dump_msymbols): Likewise.
5327 (print_symbol): Likewise.
5328 * symtab.c (general_symbol_info::obj_section): Define new
5329 function.
5330 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5331 (find_pc_sect_compunit_symtab): Likewise.
5332 (find_function_start_sal): Likewise.
5333 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5334 MSYMBOL_OBJ_SECTION.
5335 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5336 function.
5337 (SYMBOL_OBJ_SECTION): Delete.
5338 (MSYMBOL_OBJ_SECTION): Delete.
5339
9bb305b3
TT
53402021-02-09 Tom Tromey <tom@tromey.com>
5341
5342 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5343
cf2b2075
TV
53442021-02-09 Tom de Vries <tdevries@suse.de>
5345
5346 PR symtab/27341
5347 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5348 construct an array type. Add assert to ensure that element_type is
5349 not being modified.
5350
03642b71
AB
53512021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5352
5353 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5354 (gcore_collect_regset_section_cb): Delete.
5355 (gcore_collect_thread_registers): Delete.
5356 (gcore_build_thread_register_notes): Delete.
5357 (gcore_find_signalled_thread): Delete.
5358 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5359 'gdbarch' and 'thread_info' declarations.
5360 (gcore_build_thread_register_notes): Delete declaration.
5361 (gcore_find_signalled_thread): Likewise.
5362 * fbsd-tdep.c: Remove 'gcore.h' include.
5363 (struct fbsd_collect_regset_section_cb_data): New struct.
5364 (fbsd_collect_regset_section_cb): New function.
5365 (fbsd_collect_thread_registers): New function.
5366 (struct fbsd_corefile_thread_data): New struct.
5367 (fbsd_corefile_thread): New function.
5368 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5369 * linux-tdep.c: Remove 'gcore.h' include.
5370 (struct linux_collect_regset_section_cb_data): New struct.
5371 (linux_collect_regset_section_cb): New function.
5372 (linux_collect_thread_registers): New function.
5373 (linux_corefile_thread): Call Linux specific code.
5374 (find_signalled_thread): New function.
5375 (linux_make_corefile_notes): Call find_signalled_thread.
5376
f73e424f
TT
53772021-02-09 Tom Tromey <tromey@adacore.com>
5378
5379 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5380 not_lval value.
5381 * value.c (value_contents_copy_raw): Now static.
5382 * value.h (value_contents_copy_raw): Don't declare.
5383
a4f0544b
TT
53842021-02-09 Tom Tromey <tromey@adacore.com>
5385
5386 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5387 fields.
5388
9b3e4b5d
SV
53892021-02-08 Shahab Vahedi <shahab@synopsys.com>
5390
5391 PR tdep/27369
5392 * arc-linux-tdep.c (handle_atomic_sequence): New.
5393 (arc_linux_software_single_step): Call handle_atomic_sequence().
5394
29db1eb3
AB
53952021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5398 function.
5399 (REQUIRE_WINDOW): Call is_valid member function.
5400 (REQUIRE_WINDOW_FOR_SETTER): New define.
5401 (gdbpy_tui_is_valid): Call is_valid member function.
5402 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5403 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5404 tui_active too.
5405 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5406 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5407 the function.
5408
e0c23e11
AB
54092021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5410
5411 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5412 for the title is not nullptr.
5413
1cf23996
AB
54142021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5415
5416 * tui-layout.c (saved_tui_windows): Delete.
5417 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5418 call new get_windows member function instead.
5419 (tui_get_window_by_name): Check in tui_windows.
5420 (tui_layout_window::apply): Don't add to tui_windows.
5421 * tui-layout.h (tui_layout_base::get_windows): New member function.
5422 (tui_layout_window::get_windows): Likewise.
5423 (tui_layout_split::get_windows): Likewise.
5424
a53a2657
AB
54252021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5426
5427 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5428 of the window objects.
5429
2708dbbd
AB
54302021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5431
5432 * python/python.c (gdbpy_print_stack): Reformat an error message.
5433
cd074e04
AB
54342021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5435
5436 * tui/tui-interp.c (tui_command_line_handler): New function.
5437 (tui_interp::resume): Register tui_command_line_handler as the
5438 input_handler.
5439 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5440 function.
5441 (tui_getc_1): Delete handling of '\n' and '\r'.
5442 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5443
4cf28e91
HD
54442021-02-07 Hannes Domani <ssbssa@yahoo.de>
5445
5446 * tui/tui-regs.c (tui_data_window::display_registers_from):
5447 Mark invisible register sub windows.
5448 (tui_data_window::check_register_values): Ignore invisible
5449 register sub windows.
5450
3537bc23
HD
54512021-02-07 Hannes Domani <ssbssa@yahoo.de>
5452
5453 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5454 n_spaces with a negative value.
5455
5fc2d6aa
HD
54562021-02-07 Hannes Domani <ssbssa@yahoo.de>
5457
5458 * tui/tui-regs.c (tui_data_window::display_registers_from):
5459 Add refresh_window call.
5460
83962f83
HD
54612021-02-07 Hannes Domani <ssbssa@yahoo.de>
5462
5463 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5464
0110ec82
SM
54652021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5466
5467 * symmisc.c (std_in, std_out, std_err): Remove.
5468 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5469
7c6944ab
TV
54702021-02-05 Tom de Vries <tdevries@suse.de>
5471
5472 PR breakpoints/27330
5473 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5474 glibc object file has debug info.
5475
e77b0004
TV
54762021-02-05 Tom de Vries <tdevries@suse.de>
5477
5478 PR symtab/27333
5479 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5480
0e857c82
TV
54812021-02-05 Tom de Vries <tdevries@suse.de>
5482
5483 PR breakpoints/27313
5484 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5485 syscall numbers.
5486
bdfea17e
TT
54872021-02-05 Tom Tromey <tom@tromey.com>
5488
5489 * compile/compile-c-support.c (get_compile_context)
5490 (c_get_compile_context, cplus_get_compile_context): Change return
5491 type.
5492 * language.c (language_defn::get_compile_instance): New method.
5493 * language.h (language_defn::get_compile_instance): Change return
5494 type. No longer inline.
5495 * c-lang.c (c_language::get_compile_instance): Change return type.
5496 (cplus_language::get_compile_instance): Change return type.
5497 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5498 Change return type.
5499 * compile/compile.c (compile_to_object): Update.
5500
1b30f421
TT
55012021-02-05 Tom Tromey <tom@tromey.com>
5502
5503 * parser-defs.h (write_exp_symbol_reference): Declare.
5504 * parse.c (write_exp_symbol_reference): New function.
5505 * p-exp.y (variable): Use write_exp_symbol_reference.
5506 * m2-exp.y (variable): Use write_exp_symbol_reference.
5507 * f-exp.y (variable): Use write_exp_symbol_reference.
5508 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5509 * c-exp.y (variable): Use write_exp_symbol_reference.
5510
ae710496
TV
55112021-02-05 Tom de Vries <tdevries@suse.de>
5512
5513 PR exp/27265
5514 * valarith.c (complex_binop): Throw an error if complex type can't
5515 be created.
5516
d3b54e63
TV
55172021-02-05 Tom de Vries <tdevries@suse.de>
5518
5519 PR symtab/27307
5520 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5521 return.
5522
fc9a13fb
TV
55232021-02-05 Tom de Vries <tdevries@suse.de>
5524
5525 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5526
04b4939b
MF
55272021-02-04 Mike Frysinger <vapier@gentoo.org>
5528
5529 * configure.tgt (riscv*-*-*): Set gdb_sim.
5530
6ff267e1
SM
55312021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5532
5533 * target.c (target_is_non_stop_p): Return bool.
5534 * target.h (target_is_non_stop_p): Return bool.
5535
fdbc5215
SM
55362021-02-04 Simon Marchi <simon.marchi@efficios.com>
5537
5538 * record-full.c (record_full_async_inferior_event_handler):
5539 Don't clear async event handler.
5540 (record_full_base_target::wait): Clear async event handler at
5541 beginning.
5542
85d3ad8e
SM
55432021-02-04 Simon Marchi <simon.marchi@efficios.com>
5544
5545 * record-btrace.c (record_btrace_handle_async_inferior_event):
5546 Don't clear async event handler.
5547 (record_btrace_target::wait): Clear async event handler at
5548 beginning.
5549
baa8575b
SM
55502021-02-04 Simon Marchi <simon.marchi@efficios.com>
5551
5552 * remote.c (remote_target::wait): Clear async event handler at
5553 beginning, mark if needed at the end.
5554 (remote_async_inferior_event_handler): Don't set or clear async
5555 event handler.
5556
6b36ddeb
SM
55572021-02-04 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * async-event.h (async_event_handler_func): Add documentation.
5560 * async-event.c (check_async_event_handlers): Don't clear
5561 async_event_handler ready flag.
5562 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5563 flag.
5564 * record-btrace.c (record_btrace_handle_async_inferior_event):
5565 Likewise.
5566 * record-full.c (record_full_async_inferior_event_handler):
5567 Likewise.
5568 * remote-notif.c (remote_async_get_pending_events_handler):
5569 Likewise.
5570 * remote.c (remote_async_inferior_event_handler): Likewise.
5571
72d383bb
SM
55722021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5573
5574 * infrun.c (handle_inferior_event): Move stop_soon variable to
5575 inner scope.
5576
408f6686
PA
55772021-02-03 Pedro Alves <pedro@palves.net>
5578
5579 * infcmd.c (detach_command): Hold strong reference to target, and
5580 if all-stop on entry, restart threads on exit.
5581 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5582 (restart_stepped_thread): ... this new function. Also handle
5583 trap_expected.
5584 (restart_after_all_stop_detach): New function.
5585 * infrun.h (restart_after_all_stop_detach): Declare.
5586
ac7d717c
PA
55872021-02-03 Pedro Alves <pedro@palves.net>
5588
5589 * infrun.c (struct step_over_info): Initialize fields.
5590 (prepare_for_detach): Handle ongoing in-line step over.
5591
e87f0fe8
PA
55922021-02-03 Pedro Alves <pedro@palves.net>
5593
5594 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5595 here...
5596 * remote.c (remote_target::remote_detach_1): ... and here ...
5597 * target.c (target_detach): ... instead of here.
5598 * target.h (target_ops::detach): Add comment.
5599
8ff53139
PA
56002021-02-03 Pedro Alves <pedro@palves.net>
5601
5602 * infrun.c (struct wait_one_event): Move higher up.
5603 (prepare_for_detach): Abort in-progress displaced steps instead of
5604 letting them complete.
5605 (handle_one): If the inferior is detaching, don't add the thread
5606 back to the global step-over chain.
5607 (restart_threads): Don't restart threads if detaching.
5608 (handle_signal_stop): Remove inferior::detaching reference.
5609
91475068
PA
56102021-02-03 Pedro Alves <pedro@palves.net>
5611
5612 * infrun.c (prepare_for_detach): Don't release scoped_restore
5613 before returning.
5614
d758e62c
PA
56152021-02-03 Pedro Alves <pedro@palves.net>
5616
5617 * infrun.c (handle_one): New function, factored out from ...
5618 (stop_all_threads): ... here.
5619
b0083dd7
PA
56202021-02-03 Pedro Alves <pedro@palves.net>
5621
5622 * remote.c (remote_notif_stop_ack): Don't error out on
5623 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5624 (remote_target::discard_pending_stop_replies): Don't delete
5625 in-flight notification; instead, clear its contents.
5626
621cc310
PA
56272021-02-03 Pedro Alves <pedro@palves.net>
5628
5629 * remote.c (extended_remote_target::attach): Set target async in
5630 the target-non-stop path too.
5631
2ab76a18
PA
56322021-02-03 Pedro Alves <pedro@palves.net>
5633
5634 PR gdb/27055
5635 * infrun.c (handle_signal_stop): Move main context_switch call
5636 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5637
2e3773ff
LS
56382021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5639
5640 * NEWS (Changed commands): Add entry for the behavior change of
5641 the inferior command.
5642 * inferior.c (inferior_command): When no argument is given to the
5643 inferior command, display info about the currently selected
5644 inferior.
5645
e57933dc
SM
56462021-02-02 Simon Marchi <simon.marchi@efficios.com>
5647
5648 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5649 a sect_offset.
5650 (read_attribute_reprocess): Adjust.
5651
2b0c7f41
SM
56522021-02-02 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5655 <gnu_ranges_base>: ... this...
5656 <rnglists_base>: ... and this.
5657 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5658 <gnu_ranges_base>: ... this...
5659 <rnglists_base>: ... and this.
5660 (read_cutu_die_from_dwo): Adjust
5661 (dwarf2_get_pc_bounds): Adjust
5662 (dwarf2_record_block_ranges): Adjust.
5663 (read_full_die_1): Adjust
5664 (partial_die_info::read): Adjust.
5665 (read_rnglist_index): Adjust.
5666
a1c40103
SM
56672021-02-02 Simon Marchi <simon.marchi@efficios.com>
5668
5669 PR gdb/26813
5670 * dwarf2/read.c (read_loclists_rnglists_header): Add
5671 header_offset parameter and use it.
5672 (read_loclist_index): Read header of the current contribution,
5673 not the one at the beginning of the section.
5674 (read_rnglist_index): Likewise.
5675
b1829e1b
SM
56762021-02-02 Simon Marchi <simon.marchi@efficios.com>
5677
5678 PR gdb/26813
5679 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5680 requires_reprocessing flag.
5681 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5682 DW_FORM_loclistx.
5683 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5684 and DW_FORM_loclistx.
5685 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5686 instead of set_address for DW_FORM_loclistx and
5687 DW_FORM_rnglistx.
5688
0c800c6e
SM
56892021-02-02 Simon Marchi <simon.marchi@efficios.com>
5690
5691 * dwarf2/read.c (read_loclist_index): Remove bound check for
5692 start of offset.
5693 (read_rnglist_index): Likewise.
5694
05787bad
SM
56952021-02-02 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5698 of the offset.
5699
5e4d9bbc
SM
57002021-02-02 Simon Marchi <simon.marchi@efficios.com>
5701
5702 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5703
a0c1eeba
SM
57042021-02-02 Simon Marchi <simon.marchi@efficios.com>
5705
5706 * dwarf2/read.c (read_loclist_index): Change complaints into
5707 errors.
5708
2bd3e4b8
TV
57092021-02-02 Tom de Vries <tdevries@suse.de>
5710
5711 PR symtab/24620
5712 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5713 psymtab == nullptr.
5714
82a1fd3a
AB
57152021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5716
5717 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5718 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5719 here from linux-tdep.c and given a new name. Minor cleanups.
5720 (gcore_collect_regset_section_cb): Likewise.
5721 (gcore_collect_thread_registers): Likewise.
5722 (gcore_build_thread_register_notes): Likewise.
5723 (gcore_find_signalled_thread): Likewise.
5724 * gcore.h (gcore_build_thread_register_notes): Declare.
5725 (gcore_find_signalled_thread): Declare.
5726 * fbsd-tdep.c: Add 'gcore.h' include.
5727 (struct fbsd_collect_regset_section_cb_data): Delete.
5728 (fbsd_collect_regset_section_cb): Delete.
5729 (fbsd_collect_thread_registers): Delete.
5730 (struct fbsd_corefile_thread_data): Delete.
5731 (fbsd_corefile_thread): Delete.
5732 (fbsd_make_corefile_notes): Call
5733 gcore_build_thread_register_notes instead of the now deleted
5734 FreeBSD code.
5735 * linux-tdep.c: Add 'gcore.h' include.
5736 (struct linux_collect_regset_section_cb_data): Delete.
5737 (linux_collect_regset_section_cb): Delete.
5738 (linux_collect_thread_registers): Delete.
5739 (linux_corefile_thread): Call
5740 gcore_build_thread_register_notes.
5741 (find_signalled_thread): Delete.
5742 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5743
ebde6f2d
TV
57442021-01-29 Tom de Vries <tdevries@suse.de>
5745
5746 PR breakpoints/26063
5747 * infrun.c (process_event_stop_test): Reset
5748 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5749 changed.
5750
0f93c3a2
AB
57512021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5754 assert. Extend the header comment.
5755
f237f998
AB
57562021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5759 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5760 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5761 (tui_locator_win_info_ptr): Delete declaration.
5762 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5763 (tui_disasm_window::set_contents): Fetch state from tui_location
5764 global.
5765 (tui_get_begin_asm_address): Likewise.
5766 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5767 for locator window.
5768 (get_locator_window): Delete.
5769 (initialize_known_windows): Treat locator window just like all the
5770 rest.
5771 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5772 (tui_source_window::set_contents): Fetch state from tui_location
5773 global.
5774 (tui_source_window::showing_source_p): Likewise.
5775 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5776 (_locator): Delete.
5777 (tui_locator_win_info_ptr): Delete.
5778 (tui_locator_window::make_status_line): Fetch state from
5779 tui_location global.
5780 (tui_locator_window::rerender): Remove check of 'handle',
5781 reindent function body.
5782 (tui_locator_window::set_locator_fullname): Delete.
5783 (tui_locator_window::set_locator_info): Delete.
5784 (tui_update_locator_fullname): Delete.
5785 (tui_show_frame_info): Likewise.
5786 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5787 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5788 tui/tui-location.h and renamed to
5789 tui_location_tracker::set_location.
5790 (tui_locator_window::set_locator_fullname): Moved to
5791 tui/tui-location.h and renamed to
5792 tui_location_tracker::set_fullname.
5793 (tui_locator_window::full_name): Delete.
5794 (tui_locator_window::proc_name): Delete.
5795 (tui_locator_window::line_no): Delete.
5796 (tui_locator_window::addr): Delete.
5797 (tui_locator_window::gdbarch): Delete.
5798 (tui_update_locator_fullname): Delete declaration.
5799 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5800 for locator window.
5801 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5802 (tui_display_main): Call function on tui_location directly.
5803 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5804 * tui/tui-location.c: New file.
5805 * tui/tui-location.h: New file.
5806
8ee511af
SM
58072021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5808
5809 * gdbtypes.h (get_type_arch): Rename to...
5810 (struct type) <arch>: ... this, update all users.
5811
6ac37371
SM
58122021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5813
5814 * gdbtypes.h (struct type) <arch>: Rename to...
5815 <arch_owner>: ... this, update all users.
5816 <objfile>: Rename to...
5817 <objfile_owner>: ... this, update all users.
5818
24cf6389
AB
58192021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5820
5821 * gdbcmd.h (execute_command_to_string): Update comment.
5822 * top.c (execute_command_to_string): Update header comment.
5823
2a7f6487
TV
58242021-01-28 Tom de Vries <tdevries@suse.de>
5825
5826 PR breakpoints/27205
5827 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5828 (create_longjmp_master_breakpoint_names): New function, factored out
5829 of ...
5830 (create_longjmp_master_breakpoint): ... here. Only try to install
5831 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5832 breakpoint in libc.so failed.
5833
59b59f08
LS
58342021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5835
5836 PR gdb/27133
5837 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5838 unique_ptr is released when the wrapped pointer is kept for later
5839 use.
5840
807f647c
MM
58412021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5842
5843 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5844 BLR and BR instructions.
5845 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5846 (enum aarch64_masks): New.
5847
4ef367bf
TT
58482021-01-26 Tom Tromey <tromey@adacore.com>
5849
5850 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5851 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5852 (windows_init_thread_list, windows_nat::handle_load_dll)
5853 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5854 (windows_nat_target::resume)
5855 (windows_nat_target::get_windows_debug_event)
5856 (windows_nat_target::interrupt, windows_xfer_memory)
5857 (windows_nat_target::close): Update.
5858 * nat/windows-nat.c (DEBUG_EVENTS): Use
5859 debug_prefixed_printf_cond.
5860 (matching_pending_stop, fetch_pending_stop)
5861 (continue_last_debug_event): Update.
5862
4cb1265b
MS
58632020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5864
5865 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5866 elfcore_write_file_note.
5867
d0cc52bd
SV
58682021-01-26 Shahab Vahedi <shahab@synopsys.com>
5869
5870 * arc-tdep.c (arc_add_reggroups): New function.
5871 (arc_gdbarch_init): Call arc_add_reggroups.
5872
ac3571d9 58732021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5874
5875 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5876
9f6c202e
TV
58772021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5878 Simon Marchi <simon.marchi@polymtl.ca>
5879 Tom de Vries <tdevries@suse.de>
5880
5881 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5882 DW_AT_ranges.
5883
a625a8c9
TT
58842021-01-25 Tom Tromey <tromey@adacore.com>
5885
5886 * dwarf2/read.c (get_mpz): New function.
5887 (get_dwarf2_rational_constant): Use it.
5888
19184910
TT
58892021-01-25 Tom Tromey <tromey@adacore.com>
5890
5891 * ada-lang.c (resolve_subexp): Handle array context.
5892
b10bae18
TT
58932021-01-23 Tom Tromey <tom@tromey.com>
5894
5895 PR compile/25575
5896 * compile/compile-loc2c.c (note_register): New function.
5897 (pushf_register_address, pushf_register): Use it.
5898
3637a558
TT
58992021-01-23 Tom Tromey <tom@tromey.com>
5900
5901 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5902 Change type of "registers_used".
5903 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5904 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5905 (locexpr_generate_c_location, loclist_generate_c_location): Change
5906 type of "registers_used".
5907 * compile/compile.h (compile_dwarf_expr_to_c)
5908 (compile_dwarf_bounds_to_c): Update.
5909 * compile/compile-loc2c.c (pushf_register_address)
5910 (pushf_register, do_compile_dwarf_expr_to_c)
5911 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5912 of "registers_used".
5913 * compile/compile-c.h (generate_c_for_variable_locations):
5914 Update.
5915 * compile/compile-c-symbols.c (generate_vla_size)
5916 (generate_c_for_for_one_variable): Change type of
5917 "registers_used".
5918 (generate_c_for_variable_locations): Return std::vector.
5919 * compile/compile-c-support.c (generate_register_struct): Change
5920 type of "registers_used".
5921 (compute): Update.
5922
9f7f6cb8
TT
59232021-01-23 Tom Tromey <tom@tromey.com>
5924
5925 * compile/compile-internal.h (class compile_instance)
5926 <set_arguments>: Change return type.
5927 * compile/compile.c (compile_to_object): Remove call to reset.
5928 (compile_instance::set_arguments): Change return type.
5929
dd5ca05f
SM
59302021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5931
5932 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5933 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5934
d3ee35db
LS
59352021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5936
5937 * Makefile.in (SELFTESTS_SRCS): Add
5938 unittests/gdb_tilde_expand-selftests.c.
5939 * unittests/gdb_tilde_expand-selftests.c: New file.
5940
9d2d8a16
AB
59412021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5942
5943 PR cli/25956
5944 * NEWS: Mention new command.
5945 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5946 (version_style): Define.
5947 (cli_style_option::cli_style_option): Add intensity parameter, and
5948 use as appropriate.
5949 (_initialize_cli_style): Register version style set/show commands.
5950 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5951 (version_style): Declare.
5952 * top.c (print_gdb_version): Use version_stype, and styled_string
5953 to print the GDB version string.
5954
e7b43072
AB
59552021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5956
5957 * utils.c (emit_style_escape): Only emit an escape sequence if the
5958 requested style is different than the current applied style.
5959 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5960 current applied_style.
5961 (fputs_styled): Remove is_default check.
5962 (fputs_styled_unfiltered): Likewise.
5963 (vfprintf_styled_no_gdbfmt): Likewise.
5964
2189c312
SM
59652021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5966
5967 * remote.h (remote_debug_printf): New.
5968 (remote_debug_printf_nofunc): New.
5969 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5970 * remote.c: Use above macros throughout file.
5971
02349803
SM
59722021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * remote.h (remote_debug): Change to bool.
5975 * remote.c (remote_debug): Change to bool.
5976 (_initialize_remote): Adjust.
5977
cda09ec9
SM
59782021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * target.h (remote_debug): Move to...
5981 * remote.h (remote_debug): ... here.
5982 * top.c (remote_debug): Move to...
5983 * remote.c (remote_debug): ... here.
5984 * remote-sim.c: Include remote.h.
5985
baf2b57f
SM
59862021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * cli/cli-cmds.c (show_remote_debug): Remove.
5989 (show_remote_timeout): Remove.
5990 (_initialize_cli_cmds): Don't register commands.
5991 * remote.c (show_remote_debug): Move here.
5992 (show_remote_timeout): Move here.
5993 (_initialize_remote): Register commands.
5994
344e9841
SM
59952021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5996
5997 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5998 type::objfile method instead.
5999
30625020
SM
60002021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6001
6002 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6003 use the type::is_objfile_owned method.
6004
5b7d941b
SM
60052021-01-22 Simon Marchi <simon.marchi@efficios.com>
6006
6007 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6008 (TYPE_OWNER): Remove.
6009 (TYPE_OBJFILE): Adjust.
6010 (struct main_type) <flag_objfile_owned>: Rename to...
6011 <m_flag_objfile_owned>: ... this.
6012 <owner>: Rename to...
6013 <m_owner>: ... this.
6014 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6015 methods.
6016 (TYPE_ALLOC): Adjust.
6017 * gdbtypes.c (alloc_type): Adjust.
6018 (alloc_type_arch): Adjust.
6019 (alloc_type_copy): Adjust.
6020 (get_type_arch): Adjust.
6021 (smash_type): Adjust.
6022 (lookup_array_range_type): Adjust.
6023 (recursive_dump_type): Adjust.
6024 (copy_type_recursive): Adjust.
6025 * compile/compile-c-types.c (convert_func): Adjust.
6026 (convert_type_basic): Adjust.
6027 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6028 Adjust.
6029 * language.c
6030 (language_arch_info::type_and_symbol::alloc_type_symbol):
6031 Adjust.
6032
d5d24e12
LM
60332021-01-21 Luis Machado <luis.machado@linaro.org>
6034
6035 * coffread.c (enter_linenos): Passing string to complaint.
6036 * valops.c (value_assign): Make array view.
6037
a59902a7
SM
60382021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6039
6040 * auto-load.h (debug_auto_load): Move here.
6041 (auto_load_debug_printf): New.
6042 * auto-load.c: Use auto_load_debug_printf.
6043 (debug_auto_load): Move to header.
6044 * linux-thread-db.c (try_thread_db_load): Use
6045 auto_load_debug_printf.
6046 * main.c (captured_main_1): Likewise.
6047
d3abc0ce
SM
60482021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6049
6050 * f-valprint.c (f77_array_offset_tbl): Remove.
6051
1e15fcac
SM
60522021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6053
6054 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6055
439706e6
SM
60562021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6059 of gdb_select.
6060
325d39e4
HD
60612021-01-21 Hannes Domani <ssbssa@yahoo.de>
6062
6063 PR python/19151
6064 * python/py-breakpoint.c (bppy_get_location): Handle
6065 bp_hardware_breakpoint.
6066 (bppy_init): Likewise.
6067 (gdbpy_breakpoint_created): Likewise.
6068
7cb6d92a
SM
60692021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6070
6071 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6072
d4dd4fca
SM
60732021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6074
6075 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6076 (_initialize_gdb_bfd): Adjust.
6077
de53369b
SM
60782021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6079
6080 PR gdb/26828
6081 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6082
17e593e9
SM
60832021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6084
6085 * dwarf2/read.c (follow_die_offset): Add logging.
6086 (dwarf2_per_objfile::age_comp_units): Add logging.
6087
6bd434d6
SM
60882021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6089
6090 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6091 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6092 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6093 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6094 * arm-tdep.c (struct frame_unwind): Make static.
6095 * auto-load.c (auto_load_safe_path_vec): Make static.
6096 * csky-tdep.c (csky_stub_unwind): Make static.
6097 * gdbarch.c (gdbarch_data_registry): Make static.
6098 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6099 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6100 * i386-tdep.c (i386_frame_setup_skip_insns,
6101 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6102 Make static.
6103 * infrun.c (observer_mode): Make static.
6104 * linux-nat.c (sigchld_action): Make static.
6105 * linux-thread-db.c (thread_db_list): Make static.
6106 * maint-test-options.c (maintenance_test_options_list):
6107 * mep-tdep.c (mep_csr_registers): Make static.
6108 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6109 (stats): Make static.
6110 * nat/linux-osdata.c (struct osdata_type): Make static.
6111 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6112 * progspace.c (last_program_space_num): Make static.
6113 * python/py-param.c (struct parm_constant): Remove struct type
6114 name.
6115 (parm_constants): Make static.
6116 * python/py-record-btrace.c (btpy_list_methods): Make static.
6117 * python/py-record.c (recpy_gap_type): Make static.
6118 * record.c (record_goto_cmdlist): Make static.
6119 * regcache.c (regcache_descr_handle): Make static.
6120 * registry.h (DEFINE_REGISTRY): Make definition static.
6121 * symmisc.c (std_in, std_out, std_err): Make static.
6122 * top.c (previous_saved_command_line): Make static.
6123 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6124 static.
6125 * unittests/command-def-selftests.c (nr_duplicates,
6126 nr_invalid_prefixcmd, lists): Make static.
6127 * unittests/observable-selftests.c (test_notification): Make
6128 static.
6129 * unittests/optional/assignment/1.cc (counter): Make static.
6130 * unittests/optional/assignment/2.cc (counter): Make static.
6131 * unittests/optional/assignment/3.cc (counter): Make static.
6132 * unittests/optional/assignment/4.cc (counter): Make static.
6133 * unittests/optional/assignment/5.cc (counter): Make static.
6134 * unittests/optional/assignment/6.cc (counter): Make static.
6135
a6c11cbb
JS
61362021-01-20 Joel Sherrill <joel@rtems.org>
6137
6138 PR gdb/27219
6139 * remote.c (struct remote_thread_info) <resume_state>: Rename
6140 to...
6141 <get_resume_state>: ... this.
6142 (remote_target::resume): Adjust.
6143 (remote_target::commit_resume): Adjust.
6144 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6145
6f52fdf4
SDJ
61462021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6147 Tom Tromey <tom@tromey.com>
6148
6149 * stap-probe.c (stap_parse_single_operand): Handle '!'
6150 operator.
6151 (stap_parse_argument_conditionally): Likewise.
6152 Skip spaces after processing open-parenthesis sub-expression.
6153 (stap_parse_argument_1): Skip spaces after call to
6154 stap_parse_argument_conditionally.
6155 Handle case when right-side expression is a parenthesized
6156 sub-expression.
6157 Skip spaces after call to stap_parse_argument_1.
6158
1c3b85ad
LS
61592021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6160
6161 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6162
a9a87d35
LM
61632021-01-19 Luis Machado <luis.machado@linaro.org>
6164
6165 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6166 memory and save data.
6167 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6168 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6169 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6170 (trad_frame_value_bytes_p): Remove.
6171 (trad_frame_reset_saved_regs): Adjust documentation.
6172 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6173 constructor and reset the state of the registers.
6174 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6175 (trad_frame_value_bytes_p, trad_frame_set_value)
6176 (trad_frame_set_realreg, trad_frame_set_addr)
6177 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6178 (trad_frame_set_reg_realreg): Update to call member function.
6179 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6180 (trad_frame_get_prev_register): Likewise.
6181
6182 * aarch64-tdep.c (aarch64_analyze_prologue)
6183 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6184 (aarch64_prologue_prev_register): Update to use member functions.
6185 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6186 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6187 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6188 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6189 (arm_make_epilogue_frame_cache): Likewise.
6190 * avr-tdep.c (avr_frame_unwind_cache)
6191 (avr_frame_prev_register): Likewise.
6192 * cris-tdep.c (cris_scan_prologue): Likewise.
6193 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6194 * frv-tdep.c (frv_analyze_prologue): Likewise.
6195 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6196 * lm32-tdep.c (lm32_frame_cache): Likewise.
6197 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6198 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6199 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6200 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6201 (reset_saved_regs): Adjust to set realreg.
6202 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6203 call member functions.
6204 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6205 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6206 (s390_backchain_frame_unwind_cache): Likewise.
6207 * score-tdep.c (score7_analyze_prologue)
6208 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6209 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6210 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6211 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6212 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6213 * tilegx-tdep.c (tilegx_analyze_prologue)
6214 (tilegx_frame_cache): Likewise.
6215 * v850-tdep.c (v850_frame_cache): Likewise.
6216 * vax-tdep.c (vax_frame_cache): Likewise.
6217
bdec2917
LM
62182021-01-19 Luis Machado <luis.machado@linaro.org>
6219
6220 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6221 of buffer + length.
6222 (put_frame_register_bytes): Likewise.
6223 Adjust documentation.
6224 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6225 (safe_frame_unwind_memory): Likewise.
6226 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6227 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6228 gdb::array_view.
6229 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6230 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6231 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6232 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6233 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6234 * dwarf2/loc.c (rw_pieced_value): Likewise.
6235 * hppa-tdep.c (hppa_frame_cache): Likewise.
6236 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6237 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6238 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6239 (i386_linux_rt_sigtramp_start): Likewise.
6240 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6241 * i386-tdep.c (i386_register_to_value): Likewise.
6242 * i387-tdep.c (i387_register_to_value): Likewise.
6243 * ia64-tdep.c (ia64_register_to_value): Likewise.
6244 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6245 (m32r_linux_rt_sigtramp_start): Likewise.
6246 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6247 * m68k-tdep.c (m68k_register_to_value): Likewise.
6248 * mips-tdep.c (mips_register_to_value)
6249 (mips_value_to_register): Likewise.
6250 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6251 (ppcfbsd_sigtramp_frame_cache): Likewise.
6252 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6253 (ppcobsd_sigtramp_frame_cache): Likewise.
6254 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6255 (rs6000_register_to_value): Likewise.
6256 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6257 * tramp-frame.c (tramp_frame_start): Likewise.
6258 * valops.c (value_assign): Likewise.
6259
ccbe4c82
LM
62602021-01-19 Luis Machado <luis.machado@linaro.org>
6261
6262 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6263 array_view.
6264 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6265 instead of buffer and size.
6266 (trad_frame_set_reg_value_bytes): Likewise.
6267 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6268 (trad_frame_set_value_bytes): Likewise.
6269
0e7620dc
MF
62702021-01-18 Mike Frysinger <vapier@gentoo.org>
6271
6272 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6273
6a9ad81c
AB
62742021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6275
6276 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6277 (riscv_fbsd_gregset): Use riscv_supply_regset.
6278 (riscv_fbsd_fpregset): Likewise.
6279 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6280 (riscv_linux_fregset): Likewise.
6281 * riscv-tdep.c (riscv_supply_regset): Define new function.
6282 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6283
d3d7d1ba
TV
62842021-01-18 Tom de Vries <tdevries@suse.de>
6285
6286 PR tdep/27172
6287 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6288 New macro.
6289 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6290 for SEGV_BNDERR.
6291
aa2838cc
SM
62922021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * remote.c (class remote_target) <remote_hostio_send_command,
6295 remote_hostio_parse_result>: Constify parameter.
6296 (remote_hostio_parse_result): Likewise.
6297 (remote_target::remote_hostio_send_command): Adjust.
6298 (remote_target::remote_hostio_pread_vFile): Adjust.
6299 (remote_target::fileio_readlink): Adjust.
6300 (remote_target::fileio_fstat): Adjust.
6301
b5c8f22d
SM
63022021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6303
6304 * remote.c (remote_target::start_remote): Move wait_status to
6305 narrower scope.
6306
e3b2741b
SM
63072021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6308
6309 * remote.c (class remote_target):
6310 <add_current_inferior_and_thread>: Constify parameter.
6311 (stop_reply_extract_thread): Likewise.
6312 (remote_target::get_current_thread): Likewise.
6313 (remote_target::add_current_inferior_and_thread): Likewise.
6314
cecb1912
SM
63152021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6316
6317 * remote.c (class remote_target)
6318 <remote_unpack_thread_info_response,
6319 parse_threadlist_response>: Constify parameter and/or return
6320 value and or local variable.
6321 (stub_unpack_int): Likewise.
6322 (unpack_nibble): Likewise.
6323 (unpack_byte): Likewise.
6324 (unpack_int): Likewise.
6325 (unpack_string): Likewise.
6326 (unpack_threadid): Likewise.
6327 (remote_target::remote_unpack_thread_info_response): Likewise.
6328 (remote_target::parse_threadlist_response): Likewise.
6329
5a11fff0
AB
63302021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6331
6332 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6333
17e89137
LS
63342021-01-14 Lancelot Six <lsix@lancelotsix.com>
6335
6336 * MAINTAINERS (Write After Approval): Add myself.
6337
58eadc4b
BE
63382021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6339
6340 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6341 because is_trivially_default_constructible was first implemented with
6342 gcc-5.
6343
5fae2a2c
TV
63442021-01-14 Tom de Vries <tdevries@suse.de>
6345
6346 PR breakpoints/27151
6347 * objfiles.h (in_plt_section): Handle .plt.sec.
6348
8f66807b
AB
63492021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6350
6351 PR gdb/26819
6352 * remote.c
6353 (remote_target::select_thread_for_ambiguous_stop_reply): New
6354 member function.
6355 (remote_target::process_stop_reply): Call
6356 select_thread_for_ambiguous_stop_reply.
6357
bd497355
SM
63582021-01-13 Simon Marchi <simon.marchi@efficios.com>
6359
6360 * record-btrace.c (class record_btrace_target): Remove.
6361 (record_btrace_target::commit_resume): Remove.
6362 * record-full.c (class record_full_target): Remove.
6363 (record_full_target::commit_resume): Remove.
6364
c9d22089
SM
63652021-01-13 Simon Marchi <simon.marchi@efficios.com>
6366
6367 * remote.c (enum class resume_state): New.
6368 (struct resumed_pending_vcont_info): New.
6369 (struct remote_thread_info) <resume_state, set_not_resumed,
6370 set_resumed_pending_vcont, resumed_pending_vcont_info,
6371 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6372 New.
6373 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6374 (remote_target::remote_add_thread): Adjust.
6375 (remote_target::process_initial_stop_replies): Adjust.
6376 (remote_target::resume): Adjust.
6377 (remote_target::commit_resume): Rely on state in
6378 remote_thread_info and not on tp->executing.
6379 (remote_target::process_stop_reply): Adjust.
6380
d8d1feb4
SM
63812021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6382
6383 * arc-tdep.h (arc_debug_printf): New.
6384 * arc-tdep.c: Use arc_debug_printf.
6385 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6386 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6387 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6388
fb0f5031
SM
63892021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6390
6391 * arc-tdep.h (arc_debug): Change type to bool.
6392 * arc-tdep.c (arc_debug): Change type to bool.
6393 (arc_analyze_prologue): Adjust.
6394 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6395 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6396
5bf7e91b
SM
63972021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6398
6399 * auto-load.c (auto_load_objfile_script_1): Use bool.
6400 (execute_script_contents): Use bool.
6401
db972fce
SM
64022021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6403
6404 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6405 comment here.
6406 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6407 comment to header.
6408 * extension-priv.h (struct extension_language_script_ops)
6409 <auto_load_enabled>: Return bool.
6410 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6411 comment here.
6412 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6413 comment to header.
6414 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6415 move comment here.
6416 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6417 move comment to header.
6418 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6419 move comment here.
6420 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6421 move comment to header.
6422
5e12f48f
SM
64232021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6424
6425 * auto-load.h (file_is_auto_load_safe): Change return type to
6426 bool, move comment here.
6427 * auto-load.c (file_is_auto_load_safe): Change return type and
6428 advice_printed to bool. Move comment to header.
6429
54ca9002
SM
64302021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6431
6432 * jit.c (jit_debug_printf): New, use throughout file.
6433
24a7f1b5
SM
64342021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6435
6436 * infrun.c (normal_stop): Fix indentation.
6437
fe7a351a
SM
64382021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6439
6440 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6441 declarations to ...
6442 * symfile.h: ... here.
6443 * symfile.c: Update doc.
6444
16e9019e
SM
64452021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6446
6447 * target.h (baud_rate, serial_parity): Move declarations...
6448 * serial.h: ... here.
6449 * main.c: Include serial.h.
6450 * serial.c (baud_rate, serial_parity): Update doc.
6451
b2f2ae0d
SM
64522021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6453
6454 * top.c (pre_init_ui_hook): Remove.
6455
5291fe3c
SP
64562021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6457
6458 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6459 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6460 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6461 * features/aarch64-fpu.xml: Add bfloat16 type.
6462
ce38f5ed
AB
64632021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6464
6465 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6466
7c654b71
AB
64672021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6468
6469 * f-exp.y (dot_ops): Rename to...
6470 (fortran_operators): ...this. Add a header comment. Add symbol
6471 based operators.
6472 (yylex): Update to use fortran_operators not dot_ops. Remove
6473 special handling for '**', this is now included in
6474 fortran_operators.
6475
c6185dce
SM
64762021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6479 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6480 * aarch64-tdep.c: Use aarch64_debug_printf.
6481
eef401dc
SM
64822021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6485 file.
6486
062eaacb
SM
64872021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6488
6489 * jit.c (jit_debug): Change type to bool.
6490 (_initialize_jit): Adjust.
6491
54585eee
TT
64922021-01-09 Tom Tromey <tom@tromey.com>
6493
6494 PR compile/23672
6495 * compile/compile.c (compile_to_object): Avoid crash when
6496 osabi_triplet_regexp returns NULL.
6497
bc167b6b
TT
64982021-01-09 Tom Tromey <tom@tromey.com>
6499
6500 * tracepoint.h (class collection_list) <append_exp>: Take a
6501 std::string.
6502 * tracepoint.c (collection_list::append_exp): Take a std::string.
6503 (encode_actions_1): Update.
6504
8fc48b79
TT
65052021-01-08 Tom Tromey <tromey@adacore.com>
6506
6507 * parse.c (parse_expression): Add void_context_p parameter. Use
6508 parse_exp_in_context.
6509 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6510 parse_expression.
6511 (print_command, call_command): Update.
6512 * expression.h (parse_expression): Add void_context_p parameter.
6513
3c8c6de2
AB
65142021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6515
6516 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6517 for internalvar components that have a dynamic location.
6518
1940319c
TV
65192021-01-08 Tom de Vries <tdevries@suse.de>
6520
6521 PR gdb/26881
6522 * breakpoint.c (create_exception_master_breakpoint_probe)
6523 (create_exception_master_breakpoint_hook): Factor out
6524 of ...
6525 (create_exception_master_breakpoint): ... here. Only try to install
6526 the master exception breakpoint in objfile.debug using the
6527 _Unwind_DebugHook method, if the install using probes in objfile
6528 failed.
6529
e3436813
AB
65302021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6531
6532 * f-lang.c (fortran_value_subarray): Call value_from_component.
6533
e904f56d
MF
65342021-01-07 Mike Frysinger <vapier@gentoo.org>
6535
6536 * remote-sim.c: Include memory-map.h.
6537 (gdbsim_target): Define memory_map override.
6538 (gdbsim_target::memory_map): Define.
6539
959d6a67
TT
65402021-01-07 Tom Tromey <tromey@adacore.com>
6541
6542 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6543
d4813f10
TT
65442021-01-07 Tom Tromey <tromey@adacore.com>
6545
6546 * ada-lang.c (add_component_interval): Start loop using vector's
6547 updated size.
6548
b49180ac
TT
65492021-01-06 Tom Tromey <tromey@adacore.com>
6550
6551 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6552 Do not cast result.
6553 * valarith.c (fixed_point_binop): Handle multiplication
6554 and division specially.
6555 * valops.c (value_to_gdb_mpq): New function.
6556 (value_cast_to_fixed_point): Use it.
6557
55195361
HD
65582021-01-05 Hannes Domani <ssbssa@yahoo.de>
6559
6560 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6561 Call wnoutrefresh instead of tui_win_info::refresh_window.
6562
1b6d4bb2
HD
65632021-01-05 Hannes Domani <ssbssa@yahoo.de>
6564
6565 * tui/tui-source.c (tui_source_window::show_line_number):
6566 Redraw second space after line number.
6567
b5ff370e
HD
65682021-01-05 Hannes Domani <ssbssa@yahoo.de>
6569
6570 PR tui/26927
6571 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6572 Fix source pad size in prefresh.
6573 (tui_source_window_base::show_source_content): Grow source pad
6574 if necessary.
6575
c68ea49f
MF
65762021-01-04 Mike Frysinger <vapier@gentoo.org>
6577
6578 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6579 (bfin_frame_align): Use align_down.
6580
e4ad960a
TV
65812021-01-04 Tom de Vries <tdevries@suse.de>
6582
6583 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6584 terminators that do not terminate anything.
6585
3ec3145c
SM
65862021-01-04 Simon Marchi <simon.marchi@efficios.com>
6587
6588 * debug.c (debug_print_depth): New.
6589 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6590 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6591 * infrun.c (start_step_over): Use
6592 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6593 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6594 INFRUN_SCOPED_DEBUG_START_END.
6595 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6596
e71daf80
SM
65972021-01-04 Simon Marchi <simon.marchi@efficios.com>
6598
6599 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6600
335709bc
SM
66012021-01-04 Simon Marchi <simon.marchi@efficios.com>
6602
6603 * utils.c (vfprintf_unfiltered): Print timestamp only when
6604 previous debug output ended with a newline.
6605
098caef4
LM
66062021-01-04 Luis Machado <luis.machado@linaro.org>
6607
6608 Update all users of trad_frame_saved_reg to use the new member
6609 functions.
6610
6611 Remote all struct keywords from declarations of trad_frame_saved_reg
6612 types, except on forward declarations.
6613
6614 * aarch64-tdep.c: Update.
6615 * alpha-mdebug-tdep.c: Update.
6616 * alpha-tdep.c: Update.
6617 * arc-tdep.c: Update.
6618 * arm-tdep.c: Update.
6619 * avr-tdep.c: Update.
6620 * cris-tdep.c: Update.
6621 * csky-tdep.c: Update.
6622 * frv-tdep.c: Update.
6623 * hppa-linux-tdep.c: Update.
6624 * hppa-tdep.c: Update.
6625 * hppa-tdep.h: Update.
6626 * lm32-tdep.c: Update.
6627 * m32r-linux-tdep.c: Update.
6628 * m32r-tdep.c: Update.
6629 * m68hc11-tdep.c: Update.
6630 * mips-tdep.c: Update.
6631 * moxie-tdep.c: Update.
6632 * riscv-tdep.c: Update.
6633 * rs6000-tdep.c: Update.
6634 * s390-linux-tdep.c: Update.
6635 * s390-tdep.c: Update.
6636 * score-tdep.c: Update.
6637 * sparc-netbsd-tdep.c: Update.
6638 * sparc-sol2-tdep.c: Update.
6639 * sparc64-fbsd-tdep.c: Update.
6640 * sparc64-netbsd-tdep.c: Update.
6641 * sparc64-obsd-tdep.c: Update.
6642 * sparc64-sol2-tdep.c: Update.
6643 * tilegx-tdep.c: Update.
6644 * v850-tdep.c: Update.
6645 * vax-tdep.c: Update.
6646
6647 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6648 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6649
6650 * trad-frame.c: Update.
6651 Remove TF_REG_* enum.
6652 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6653 a trivially-constructible struct.
6654 (trad_frame_reset_saved_regs): Adjust to use member function.
6655 (trad_frame_value_p): Likewise.
6656 (trad_frame_addr_p): Likewise.
6657 (trad_frame_realreg_p): Likewise.
6658 (trad_frame_value_bytes_p): Likewise.
6659 (trad_frame_set_value): Likewise.
6660 (trad_frame_set_realreg): Likewise.
6661 (trad_frame_set_addr): Likewise.
6662 (trad_frame_set_unknown): Likewise.
6663 (trad_frame_set_value_bytes): Likewise.
6664 (trad_frame_get_prev_register): Likewise.
6665 * trad-frame.h: Update.
6666 (trad_frame_saved_reg_kind): New enum.
6667 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6668 <m_kind, m_reg>: New member fields.
6669 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6670 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6671 <is_addr, is_unknown, is_value_bytes>: New member functions.
6672
9898e882
SM
66732021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6674
6675 * target-float.c: Fix typos.
6676
b66b4e65
HD
66772021-01-02 Hannes Domani <ssbssa@yahoo.de>
6678
6679 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6680
b5b5650a
JB
66812021-01-01 Joel Brobecker <brobecker@adacore.com>
6682
6683 * gdbarch.sh: Update copyright year range.
6684
3666a048
JB
66852021-01-01 Joel Brobecker <brobecker@adacore.com>
6686
6687 Update copyright year range in copyright header of all GDB files.
6688
ff7e39b6
JB
66892021-01-01 Joel Brobecker <brobecker@adacore.com>
6690
6691 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6692 to the list of directories to update.
6693
2b47c078
JB
66942021-01-01 Joel Brobecker <brobecker@adacore.com>
6695
6696 * top.c (print_gdb_version): Update copyright year.
6697
9e5e03df 66982021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6699
476923f1 6700 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6701
476923f1 6702For older changes see ChangeLog-2020.
c906108c
SS
6703\f
6704Local Variables:
6705mode: change-log
6706left-margin: 8
6707fill-column: 74
6708version-control: never
57da7796 6709coding: utf-8
c906108c 6710End:
This page took 2.743174 seconds and 4 git commands to generate.