Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
df5bc734
MH
12021-06-03 Magne Hov <mhov@undo.io>
2
3 PR python/27841
4 * eval.c (expression::evaluate): Check inferior_ptid.
5
415c8100
PA
62021-06-03 Pedro Alves <pedro@palves.net>
7
8 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
9 affiliation.
10 (Global Maintainers): Update my address.
11 (Write After Approval): Remove stale entry.
12
83810881
JB
132021-06-03 John Baldwin <jhb@FreeBSD.org>
14
15 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
16 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
17 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
18 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
19 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
20 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
21 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
22 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
23 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
24 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
25 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
26 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
27 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
28 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
29 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
30 (fbsd_report_signal_info): New.
31 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
32 report_signal_info method.
33
4c958d79
MH
342021-06-03 Magne Hov <mhov@undo.io>
35
36 * MAINTAINERS (Write After Approval): Add Magne Hov.
37
6ac5237c
HD
382021-06-03 Hannes Domani <ssbssa@yahoo.de>
39
40 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
41 gdb.SYMBOL_LABEL_DOMAIN constant.
42
aeeb758d
JB
432021-06-01 John Baldwin <jhb@FreeBSD.org>
44
45 * infrun.c (handle_inferior_event): Only call
46 gdbarch_displaced_step_restore_all_in_ptid if
47 gdbarch_supports_displaced_stepping is true.
48
906f72d4
TT
492021-06-01 Tom Tromey <tromey@adacore.com>
50
51 * Makefile.in (all-data-directory): Remove.
52 (data-directory/Makefile): Remove.
53
ba56237d
TT
542021-06-01 Tom Tromey <tromey@adacore.com>
55
56 * configure: Rebuild.
57 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
58
2adf1781
TT
592021-06-01 Tom Tromey <tromey@adacore.com>
60
61 * silent-rules.mk (ECHO_CC): New variable.
62
bdbbcd57
TT
632021-06-01 Tom Tromey <tromey@adacore.com>
64
65 * Makefile.in (SUBDIRS): Add testsuite.
66 (all): Don't exclude testsuite.
67
f99d1d37
TT
682021-06-01 Tom Tromey <tromey@adacore.com>
69
70 * configure.ac: Copy some code from testsuite/configure.ac.
71 (enable_libctf): Subst this, not ENABLE_LIBCTF.
72 * configure: Rebuild.
73
17d305ef
TV
742021-06-01 Tom de Vries <tdevries@suse.de>
75
76 PR symtab/26096
77 * minsyms.c (msymbol_is_cold_clone): New function.
78 (msymbol_is_function): Use msymbol_is_cold_clone.
79
9b715c68
AB
802021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
81 Andrew Burgess <andrew.burgess@embecosm.com>
82
83 PR gdb/14383
84 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
85 (ALLDEPFILES): Add arm-none-tdep.c
86 * arm-none-tdep.c: New file.
87 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
88
b4b3e2de
AB
892021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
90 Richard Bunt <richard.bunt@arm.com>
91
92 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
93 check for why the backtrace stopped.
94
9ea36493
SM
952021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
98 Update all callers.
99 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
100 signature parameter, update all callers.
101 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
102 signature parameter.
103
46c6bcf6
SM
1042021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * dwarf2/read.h (signatured_type_up): New, use where possible.
107
4631503b
SM
1082021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
111
cc653233
TT
1122021-05-30 Tom Tromey <tom@tromey.com>
113
114 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
115 is_debug_types.
116 (create_signatured_type_table_from_index)
117 (create_signatured_type_table_from_debug_names, add_type_unit)
118 (read_comp_units_from_section): Update.
119
c96e8b04
TT
1202021-05-30 Tom Tromey <tom@tromey.com>
121
122 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
123 m_num_psymtabs>: Remove.
124 (resize_symtabs): Update.
125 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
126 (dwarf2_per_bfd::allocate_signatured_type): Update.
127
24b21115
SM
1282021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
129
130 * Fix tab after space indentation issues throughout.
131
01add95b
SM
1322021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * Fix some indentation mistakes throughout.
135
055c879f
SM
1362021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * breakpoint.h (iterate_over_bp_locations): Remove. Update
139 users to use all_bp_locations.
140 (all_bp_locations): New.
141 * breakpoint.c (all_bp_locations): Make non-static.
142 (iterate_over_bp_locations): Remove.
143
240edef6
SM
1442021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * breakpoint.h (iterate_over_breakpoints): Remove. Update
147 callers to use all_breakpoints or all_breakpoints_safe.
148 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
149 all_breakpoints_safe): Move here.
150 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
151 non-static.
152 (iterate_over_breakpoints): Remove.
153 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
154 Return void.
155 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
156 return value logic.
157 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
158
e0d9a270
SM
1592021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
160
161 * breakpoint.c (get_first_locp_gte_addr): Remove.
162 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
163 all_bp_locations_at_addr.
164 (struct bp_locations_at_addr_range): New.
165 (all_bp_locations_at_addr): New.
166 (bp_locations_compare_addrs): New.
167
48d7020b
SM
1682021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
171 all_bp_locations.
172 (all_bp_locations): New.
173
5d51cd5d
SM
1742021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * breakpoint.c (bp_locations): Change to std::vector, update all
177 users.
178 (bp_locations_count): Remove.
179 (update_global_location_list): Change to work with indices
180 rather than bp_location**.
181
40cb8ca5
SM
1822021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
183
184 * breakpoint.h (bp_locations_range): New.
185 (struct breakpoint) <locations>: New. Use where possible.
186
f6d17b2b
SM
1872021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * breakpoint.h (all_tracepoints): Remove.
190 (breakpoint_iterator): Move here.
191 (struct tracepoint_filter): New.
192 (tracepoint_iterator): New.
193 (tracepoint_range): New.
194 (all_tracepoints): New.
195 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
196 all_tracepoints.
197 (breakpoint_iterator): Move to header.
198 (all_tracepoints): New.
199 * tracepoint.c (start_tracing): Adjust.
200
1428b37a
SM
2012021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * breakpoint.c (breakpoint_safe_range): New.
204 (all_breakpoints_safe): New. Use instead of
205 ALL_BREAKPOINTS_SAFE where possible.
206
43892fdf
SM
2072021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
208
209 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
210 all_breakpoints.
211 (breakpoint_iterator): New.
212 (breakpoint_range): New.
213 (all_breakpoints): New.
214
bdef5723
HD
2152021-05-27 Hannes Domani <ssbssa@yahoo.de>
216
217 * python/py-tui.c (tui_py_window::output): Add full_window
218 argument.
219 (gdbpy_tui_write): Parse "full_window" argument.
220
d5a6313e
SM
2212021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * make-init-c: Add option to reverse function calls.
224
f39632d9
SM
2252021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
226
227 * Makefile.in (INIT_FILES_FILTER_OUT): New.
228 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
229 (stamp-init): Use make-init-c.
230 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
231 * silent-rules.mk (ECHO_INIT_C): Change.
232 * make-init-c: New file.
233
5e84b7ee
SM
2342021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * command.h (add_alias_cmd): Accept target as
237 cmd_list_element. Update callers.
238
e0f25bd9
SM
2392021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * command.h (add_info_alias): Accept target as
242 cmd_list_element. Update callers.
243
3947f654
SM
2442021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * command.h (add_com_alias): Accept target as
247 cmd_list_element. Update callers.
248
7bd22f56
SM
2492021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * python/py-param.c (add_setshow_generic): Use return values of
252 add_setshow functions.
253
9f260536
SM
2542021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * mi/mi-main.c (_initialize_mi_main):
257 * python/py-auto-load.c (gdbpy_initialize_auto_load):
258 * remote.c (_initialize_remote):
259
af7f8f52
SM
2602021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * command.h (set_show_commands): New.
263 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
264 add_setshow_boolean_cmd, add_setshow_filename_cmd,
265 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
266 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
267 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
268 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
269 Return set_show_commands. Adjust callers.
270 * cli/cli-decode.c (add_setshow_cmd_full): Return
271 set_show_commands, remove result parameters, adjust callers.
272
248f7165
TV
2732021-05-27 Tom de Vries <tdevries@suse.de>
274
275 PR symtab/27919
276 * dwarf2/read.c (process_psymtab_comp_unit):
277
2152b4fd
TV
2782021-05-27 Tom de Vries <tdevries@suse.de>
279
280 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
281 error.
282
6dcd1193
TV
2832021-05-27 Tom de Vries <tdevries@suse.de>
284
285 PR symtab/27898
286 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
287 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
288 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
289 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
290 load_all_dies init.
291 (dwarf2_per_cu_data): Remove load_all_dies field.
292
11bb5c41
SM
2932021-05-26 Simon Marchi <simon.marchi@efficios.com>
294
295 * regcache.c (reg_buffer::reg_buffer): Default-initialize
296 m_registers array.
297
ef5f598c
TT
2982021-05-26 Tom Tromey <tom@tromey.com>
299
300 * dwarf2/read.c (allocate_type_unit_groups_table)
301 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
302 htab_delete_entry.
303 (free_line_header_voidp): Remove.
304 * completer.c
305 (completion_tracker::completion_hash_entry::deleter): Remove.
306 (completion_tracker::discard_completions): Use htab_delete_entry.
307 * utils.h (htab_delete_entry): New template function.
308
a56889ae
HD
3092021-05-24 Hannes Domani <ssbssa@yahoo.de>
310
311 * python/py-tui.c (tui_py_window::refresh_window):
312 Avoid flickering.
313
fbf3c4b9
TV
3142021-05-23 Tom de Vries <tdevries@suse.de>
315
316 PR tdep/27822
317 * target.h (struct target_ops): Mention target_thread_architecture in
318 read_description comment.
319 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
320 pid to determine if process is 64-bit or 32-bit.
321 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
322 Same.
323 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
324 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
325 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
326 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
327 Likewise, use pid to determine if kernel supports reading VFP
328 registers.
329
8569d6e1
PW
3302021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
331
332 * main.c (enum cmdarg_kind): Fix option type comments for
333 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
334
778ae9cc
TV
3352021-05-21 Tom de Vries <tdevries@suse.de>
336
337 PR testsuite/25047
338 * contrib/cc-with-tweaks.sh: Handle -l.
339
6d1a09b7
TV
3402021-05-21 Tom de Vries <tdevries@suse.de>
341
342 PR breakpoint/27889
343 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
344 objects. Call get_jiter_objfile_data with the_objfile.
345
1487a14e
SM
3462021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * linespec.c (linespec_p): Remove. Replace all uses with
349 "linespec *".
350
bb6203bf
AH
3512021-05-20 Alexandra Hájková <ahajkova@redhat.com>
352 Pedro Alves <pedro@palves.net>
353
354 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
355 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
356 command_line_up instead of struct command_line.
357 (build_command_line): Likewise.
358 (get_command_line): Update the cmd function call parameter.
359 (process_next_line): Use unique_ptr command_line_up instead
360 of struct command_line.
361 (recurse_read_control_structure): Change the the type of
362 next to command_line_up.
363 (read_command_lines_1): Change type of `next' to be
364 command_line_up and update all references of `next'
365 accordingly.
366
ed3130b7
AH
3672021-05-20 Alexandra Hájková <ahajkova@redhat.com>
368
369 * MAINTAINERS (Write After Approval): Add myself.
370
5433e20e
JB
3712021-05-19 John Baldwin <jhb@FreeBSD.org>
372
373 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
374
a5523cc3
AH
3752021-05-18 Alexandra Hájková <ahajkova@redhat.com>
376
377 * inflow.c (new_tty): Do not leak tty.
378
cd53fa40
TT
3792021-05-17 Tom Tromey <tom@tromey.com>
380
381 * dwarf2/read.h: Update include.
382 * dwarf2/read.c: Update include.
383 * dwarf2/line-header.c: Update include.
384 * dwarf2/cu.h: Update include.
385 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
386 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
387 * Makefile.in (COMMON_SFILES): Update.
388
347212b8
TT
3892021-05-17 Tom Tromey <tom@tromey.com>
390
391 * dwarf2/read.c (maybe_queue_comp_unit)
392 (dwarf2_per_objfile::age_comp_units): Update.
393 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
394 dwarf2_cu methods.
395 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
396 add_dependence>: New methods.
397 <m_dependencies>: Add "m_" prefix. Now private.
398 <m_mark>: Add "m_" prefix.
399 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
400 (dwarf2_mark_helper): New function.
401 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
402
839118f9
TT
4032021-05-17 Tom Tromey <tom@tromey.com>
404
405 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
406 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
407 (dwarf2_cu::dwarf2_cu): Move to cu.c.
408 * dwarf2/cu.c: New file.
409 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
410
8ae78a44
TT
4112021-05-17 Tom Tromey <tom@tromey.com>
412
413 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
414 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
415 Move to cu.h.
416 * dwarf2/cu.h: New file.
417
c1c0a7e1
AB
4182021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
419
420 * .dir-locals.el: Set sentence-end-double-space for all modes, and
421 set brace-list-open to 0 for C and C++ modes.
422
9e541c79
TT
4232021-05-17 Tom Tromey <tromey@adacore.com>
424
425 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
426 if frame is null.
427
59173216
TT
4282021-05-17 Tom Tromey <tromey@adacore.com>
429
430 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
431 (group_from_gid): Subtract one from strncpy length.
432
baea2f9d
TT
4332021-05-17 Tom Tromey <tromey@adacore.com>
434
435 * source.c (add_path): Check 'p' before using 'p[-1]'.
436
473ab964
TT
4372021-05-17 Tom Tromey <tromey@adacore.com>
438
439 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
440 (dwarf2_per_cu_data_up): New typedef.
441 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
442 <all_comp_units>: Use dwarf2_per_cu_data_up.
443 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
444 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
445 (create_cu_from_index_list): Likewise.
446 (create_signatured_type_table_from_index)
447 (create_cus_from_debug_names_list, add_type_unit)
448 (read_comp_units_from_section): Update.
449 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
450 (run_test): Update.
451
16e0020b
TT
4522021-05-17 Tom Tromey <tom@tromey.com>
453
454 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
455 (sort_tu_by_abbrev_offset): Remove.
456 (build_type_psymtabs): Update.
457
91e159e9
SM
4582021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
459
460 * py-project.toml: New.
461 * gdb-gdb.py.in: Re-format.
462
034dce7a
SM
4632021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
466 New, use it.
467 * command.h (cmd_func_p): Remove.
468 * cli/cli-decode.c (cmd_func_p): Remove.
469
1be99b11
SM
4702021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
471
472 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
473
99858724
SM
4742021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
477 to...
478 <alias_target>: ... this.
479 (add_alias_cmd): Rename old to target.
480 (add_info_alias): Rename old_name to target_name.
481 (add_com_alias): Likewise.
482
14b42fc4
SM
4832021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
484
485 * Rename "prefixlist" parameters to "subcommands" throughout.
486 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
487 <subcommands>: ... this.
488 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
489 (lookup_cmd_with_subcommands): ... this.
490
ecd0a6b3
SM
4912021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
492
493 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
494
413b49c2
SM
4952021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
496
497 * cli/cli-decode.h (prefixname): Make const, move implementation
498 to cli/cli-decode.c.
499 * cli/cli-decode.c (cmd_list_element::prefixname): New.
500
ea11a98d
WP
5012021-05-16 Weimin Pan <weimin.pan@oracle.com>
502
503 * ctfread.c (new_symbol): Set function address.
504 (read_func_kind_type): Remove incorrect type name setting.
505 Don't copy name returned from ctf_type_ame_raw throughout file.
506
887e7158
TT
5072021-05-14 Tom Tromey <tom@tromey.com>
508
509 * rust-lang.c (rust_language::val_print_struct)
510 (rust_language::print_enum): Use common_val_print, not
511 value_print_inner.
512
55789354
TBA
5132021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
514
515 * python/py-inferior.c (infpy_get_connection_num): New function.
516 (inferior_object_getset): Add a new element for 'connection_num'.
517 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
518
2f63ec5c
AB
5192021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
520
521 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
522 argument type, update and re-wrap, header comment.
523 (remote_target::commit_resumed): Convert any_process_wildcard and
524 may_global_wildcard_vcont from int to bool.
525
ecf25064
KC
5262021-05-14 Kent Cheung <kent.cheung@arm.com>
527
528 * cp-valprint.c (cp_print_value): Replaced duplicate code.
529 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
530 just before printing child values.
531 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
532 printing string representation.
533 * python/py-prettyprint.c (print_children): Check max_depth just
534 before printing child values.
535 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
536 printing string representation.
537
df68e12b
MF
5382021-05-14 Mike Frysinger <vapier@gentoo.org>
539
540 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
541 sim/callback.h & sim/sim.h.
542
183aaaf7
MF
5432021-05-13 Mike Frysinger <vapier@gentoo.org>
544
545 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
546 sim-regno.h include.
547
737358ba
SM
5482021-05-13 Simon Marchi <simon.marchi@efficios.com>
549
550 * inf-child.h (inf_child_target) <follow_exec>: New.
551 * inf-child.c (inf_child_target::follow_exec): New.
552
294c36eb
SM
5532021-05-13 Simon Marchi <simon.marchi@efficios.com>
554
555 * target.h (struct target_ops) <follow_exec>: Add ptid_t
556 parameter.
557 (target_follow_exec): Likewise.
558 * target.c (target_follow_exec): Add ptid_t parameter.
559 * infrun.c (follow_exec): Adjust call to target_follow_exec,
560 don't push target nor create thread.
561 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
562 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
563 (thread_db_target::follow_exec): New.
564 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
565 (remote_target::follow_exec): Call
566 process_stratum_target::follow_exec.
567 * target-delegates.c: Re-generate.
568
2af87c85
SM
5692021-05-13 Simon Marchi <simon.marchi@efficios.com>
570
571 * infrun.c (follow_exec): Call target_follow_fork when
572 follow-exec-mode is same.
573 * target.h (target_follow_fork): Improve doc.
574
0b2256f7
SM
5752021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
578 Remove.
579 * cli/cli-setshow.c (do_show_command): Adjust.
580
0746f49b
LM
5812021-05-13 Luis Machado <luis.machado@linaro.org>
582
583 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
584 include the last address in the range.
585
4b8cb9dd
SM
5862021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * python/python-internal.h (gdbpy_parse_command_name): Return
589 gdb::unique_xmalloc_ptr.
590 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
591 (cmdpy_init): Adjust.
592 * python/py-param.c (parmpy_init): Adjust.
593 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
594 when done.
595
ee35ce82
GB
5962021-05-12 George Barrett <bob@bob131.so>
597
598 * NEWS (Guile API): Note the addition of the new procedure.
599 * guile/scm-value.c (gdbscm_value_const_value): Add
600 implementation of value-const-value procedure.
601 (value_functions): Add value-const-value procedure.
602
9d4fc61d
GB
6032021-05-12 George Barrett <bob@bob131.so>
604
605 * NEWS (Guile API): Note the addition of new procedures.
606 * guile/scm-value.c (gdbscm_reference_value): Add helper function
607 for reference value creation.
608 (gdbscm_value_reference_value): Add implementation of
609 value-reference-value procedure.
610 (gdbscm_value_rvalue_reference_value): Add implementation of
611 value-rvalue-reference-value procedure.
612 (value_functions): Add value-reference-value procedure. Add
613 value-rvalue-reference-value procedure.
614
97cef6b7
GB
6152021-05-12 George Barrett <bob@bob131.so>
616
617 * guile/scm-type.c (type_integer_constants): Add binding for
618 TYPE_CODE_RVALUE_REF.
619 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
620 dereferencing of rvalue references.
621 * NEWS (Guile API): Note improvements in rvalue reference support.
622
d51344c9
MM
6232021-05-12 Markus Metzger <markus.t.metzger@intel.com>
624
625 * btrace.c (handle_pt_insn_events): Ignore status update enable
626 events.
627
f2a883a8
SM
6282021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
629
630 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
631 indentation.
632
64f30eb0
SM
6332021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
636
db1f6cd6
LS
6372021-05-10 Lancelot Six <lsix@lancelotsix.com>
638
639 PR gdb/27614
640 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
641 argument.
642
31aceaef
SM
6432021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
644
645 * nat/linux-waitpid.c (status_to_str): Show signal name.
646
75140e3b
AB
6472021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
648
649 * python/py-breakpoint.c (pybp_debug): New static global.
650 (show_pybp_debug): New function.
651 (pybp_debug_printf): Define.
652 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
653 (gdbpy_breakpoint_created): Add some debugging.
654 (gdbpy_breakpoint_deleted): Likewise.
655 (gdbpy_breakpoint_modified): Likewise.
656 (_initialize_py_breakpoint): New function.
657
1ef40c13
AB
6582021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
659
660 * python/py-unwind.c (pyuw_debug): Convert to bool.
661 (show_pyuw_debug): New function.
662 (pyuw_debug_printf): Define.
663 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
664 (pyuw_this_id): Convert to new debug print macros.
665 (pyuw_prev_register): Likewise.
666 (pyuw_sniffer): Likewise.
667 (pyuw_dealloc_cache): Likewise.
668 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
669 show function when registering.
670
927c4e35
AB
6712021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * dummy-frame.c (fprint_dummy_frames): Convert use of
674 fprint_frame_id to use frame_id::to_string.
675 * frame.c (fprint_field): Delete.
676 (fprint_frame_id): Moved to...
677 (frame_id::to_string): ...this, rewritten to return a string.
678 (fprint_frame): Convert use of fprint_frame_id to use
679 frame_id::to_string.
680 (compute_frame_id): Likewise.
681 (frame_id_p): Likewise.
682 (frame_id_eq): Likewise.
683 (frame_id_inner): Likewise.
684 * frame.h (struct frame_id) <to_string>: New member function.
685 (fprint_frame_id): Delete declaration.
686 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
687 fprint_frame_id to use frame_id::to_string.
688 * python/py-frame.c (frame_object_to_frame_info): Likewise.
689 * python/py-unwind.c (unwind_infopy_str): Likewise.
690 (pyuw_this_id): Likewise.
691
8d06918f
SM
6922021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * nat/linux-waitpid.c (status_to_str): Return std::string.
695 * nat/linux-waitpid.h (status_to_str): Likewise.
696 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
697 (linux_nat_target::attach): Adjust.
698 (linux_handle_extended_wait): Adjust.
699 (wait_lwp): Adjust.
700 (stop_wait_callback): Adjust.
701 (linux_nat_filter_event): Adjust.
702 (linux_nat_wait_1): Adjust.
703 * nat/linux-waitpid.c (status_to_str): Adjust.
704 * nat/linux-waitpid.h (status_to_str): Adjust.
705
550e9289
SM
7062021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * infrun.h (infrun_debug_printf): Add missing space.
709
4655f850
PA
7102021-05-08 Pedro Alves <pedro@palves.net>
711
712 * linux-nat.c (linux_nat_target::supports_disable_randomization):
713 Remove references to HAVE_PERSONALITY.
714 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
715 (maybe_disable_address_space_randomization)
716 (~maybe_disable_address_space_randomizatio): Remove references to
717 HAVE_PERSONALITY.
718 * config.in, configure: Regenerate.
719
1845e254
AB
7202021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
723 include.
724 (source_script_with_search): Perform tilde expansion.
725
91e3c425
SM
7262021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
727
728 * target-descriptions.c (struct target_desc_info) <filename>:
729 Make std::string.
730 (copy_inferior_target_desc_info): Adjust.
731 (target_desc_info_free): Adjust.
732 (target_find_description): Adjust.
733 (set_tdesc_filename_cmd): Adjust.
734 (show_tdesc_filename_cmd): Adjust.
735 (unset_tdesc_filename_cmd): Adjust.
736 (maint_print_c_tdesc_cmd): Adjust.
737
0b2f7ade
SM
7382021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
739
740 * target-descriptions.c (struct target_desc_info): Initialize
741 fields.
742 (get_tdesc_info): Use new.
743 (target_desc_info_free): Use delete.
744
820c4490
SM
7452021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
746
747 * target-descriptions.c (struct target_desc_info) <fetched>:
748 bool.
749 (target_find_description): Adjust.
750 (target_clear_description): Adjust.
751
c2962e6a
SM
7522021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
753
754 * target-descriptions.c (struct target_desc_info) <tdesc>:
755 Adjust doc.
756 (target_desc_fetched): Remove.
757 (current_target_desc): Remove.
758 (target_description_filename): Remove.
759 (target_find_description): Adjust.
760 (target_clear_description): Adjust.
761 (target_current_description): Adjust.
762 (set_tdesc_filename_cmd): Adjust.
763 (show_tdesc_filename_cmd): Adjust.
764 (unset_tdesc_filename_cmd): Adjust.
765 (maint_print_c_tdesc_cmd): Adjust.
766 (maint_print_xml_tdesc_cmd): Adjust.
767
8a82de58
AB
7682021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * infcmd.c (notice_new_inferior): Change parameter type.
771 * inferior.h (notice_new_inferior): Change parameter type.
772 * remote.c (remote_notice_new_inferior): Change parameter type to
773 bool. Also update type of local variable to bool.
774 (remote_target::update_thread_list): Change type of local variable
775 to bool.
776 (remote_target::process_stop_reply): Pass bool instead of int to
777 remote_notice_new_inferior.
778
bedc4734
SM
7792021-05-07 Simon Marchi <simon.marchi@efficios.com>
780
781 * target.c (target_stack::unpush): Call target_ops::find_beneath
782 to get the target beneath `t`.
783
27f0a431
SM
7842021-05-07 Simon Marchi <simon.marchi@efficios.com>
785
786 * target.c (target_close): Check in all inferiors that the
787 target is not pushed.
788
1d1669e4
AM
7892021-05-07 Aaron Merey <amerey@redhat.com>
790
791 * debuginfod-support.c (debuginfod_init): Remove.
792 (get_debuginfod_client): New function.
793
2698f5ea
TT
7942021-05-07 Tom Tromey <tom@tromey.com>
795
796 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
797 * utils.c (streq_hash): Remove.
798 * utils.h (streq_hash): Don't declare.
799 * completer.c (completion_tracker::discard_completions): Update
800 comment.
801 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
802
13123da8
SM
8032021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * Re-format all Python files using black.
806
9589edb8
AB
8072021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
808
809 * guile/guile-internal.h (gdbscm_safe_source_script): Change
810 function return type.
811 * guile/guile.c (gdbscm_source_script): Update to handle change in
812 gdbscm_safe_source_script.
813 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
814 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
815 type.
816
ec66d6ea
SM
8172021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
818
819 * inferior.h (class inferior) <args>: Change type to
820 unique_xmalloc_ptr.
821 * inferior.c (inferior::~inferior): Don't free args.
822 * infcmd.c (get_inferior_args): Adjust.
823 (set_inferior_args): Adjust.
824
0618ecf6
AB
8252021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
826
827 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
828 breakpoint locations when the breakpoint actually has a location.
829
79aabb73
TBA
8302021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
831
832 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
833 * mi/mi-cmds.c: Change the binding of "-break-condition" to
834 mi_cmd_break_condition.
835 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
836 * breakpoint.h (set_breakpoint_condition): Declare a new
837 overload.
838 * breakpoint.c (set_breakpoint_condition): New overloaded function
839 extracted out from ...
840 (condition_command): ... this.
841 * NEWS: Mention the change.
842
10e578d7
TBA
8432021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
844
845 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
846 '--force-condition' flag to force the condition in the
847 '-break-insert' and '-dprintf-insert' commands.
848 * NEWS: Mention the change.
849
225bda24
TV
8502021-05-04 Tom de Vries <tdevries@suse.de>
851
852 PR guile/27806
853 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
854 memory functions.
855
b8efb248
TT
8562021-04-30 Tom Tromey <tom@tromey.com>
857
858 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
859 (add_signatured_type_cu_to_table): Remove.
860 (create_debug_type_hash_table): Assume dwo_file is non-null.
861 (create_debug_types_hash_table): Update comment.
862 (create_all_type_units): Remove.
863 (sort_tu_by_abbrev_offset): Update comment.
864 (build_type_psymtabs): Rename from build_type_psymtabs_1.
865 (build_type_psymtabs): Remove.
866 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
867 Update.
868 (read_comp_units_from_section): Add types_htab, section_kind
869 parameters.
870 (create_all_comp_units): Read type units.
871
91eea9cc
TT
8722021-04-30 Tom Tromey <tom@tromey.com>
873
874 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
875 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
876 <get_cu>: Now inline.
877 <all_type_units>: Remove.
878 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
879 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
880 (dwarf2_per_bfd::get_tu): Remove.
881 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
882 (create_signatured_type_table_from_index)
883 (create_signatured_type_table_from_debug_names)
884 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
885 (dwarf2_base_index_functions::expand_all_symtabs)
886 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
887 (dwarf2_base_index_functions::map_symbol_filenames)
888 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
889 (add_signatured_type_cu_to_table, create_all_type_units)
890 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
891 (create_all_comp_units): Update.
892 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
893 (write_debug_names): Update.
894
0d305d5c
TT
8952021-04-30 Tom Tromey <tom@tromey.com>
896
897 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
898 allocate_signatured_type>: Change return type.
899 <all_comp_units, all_type_units>: Hold unique pointers.
900 (struct dwarf2_per_cu_data): Add constructor and initializers.
901 (struct signatured_type): Derive from dwarf2_per_cu_data.
902 * dwarf2/read.c (type_unit_group): Derive from
903 dwarf2_per_cu_data.
904 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
905 (dwarf2_per_bfd::get_tu)
906 (dwarf2_per_bfd::allocate_signatured_type)
907 (dwarf2_per_bfd::allocate_signatured_type)
908 (create_cu_from_index_list, create_cus_from_index_list)
909 (create_signatured_type_table_from_index)
910 (create_signatured_type_table_from_debug_names)
911 (create_addrmap_from_aranges)
912 (dwarf2_base_index_functions::find_last_source_symtab)
913 (dw_expand_symtabs_matching_file_matcher)
914 (dwarf2_gdb_index::expand_symtabs_matching)
915 (dwarf2_base_index_functions::map_symbol_filenames)
916 (create_cus_from_debug_names_list)
917 (dw2_debug_names_iterator::next)
918 (dwarf2_debug_names_index::expand_symtabs_matching)
919 (create_debug_type_hash_table, add_type_unit)
920 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
921 Update.
922 (allocate_type_unit_groups_table): Use delete.
923 (create_type_unit_group): Change return type. Use new.
924 (get_type_unit_group, build_type_psymtabs_1)
925 (build_type_psymtab_dependencies)
926 (process_skeletonless_type_unit, set_partial_user)
927 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
928 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
929 (read_signatured_type): Update.
930 (dwarf2_find_containing_comp_unit): Change type of
931 'all_comp_units'.
932 (run_test): Update.
933 (dwarf2_per_bfd::allocate_per_cu)
934 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
935 Use new.
936 (add_signatured_type_cu_to_table): Update.
937 * dwarf2/index-write.c (write_one_signatured_type)
938 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
939 (write_debug_names): Update.
940
1bee48c7
TT
9412021-04-30 Tom Tromey <tromey@adacore.com>
942
943 * nat/windows-nat.h (get_image_name): Don't declare.
944 * nat/windows-nat.c (get_image_name): Now static.
945
e228ef97
TT
9462021-04-30 Tom Tromey <tromey@adacore.com>
947
948 * windows-nat.c (windows_nat::handle_load_dll): Update.
949 (windows_nat_target::get_windows_debug_event): Call
950 dll_loaded_event.
951 (windows_add_all_dlls, windows_add_dll): Move to
952 nat/windows-nat.c.
953 * nat/windows-nat.h (handle_load_dll): Change parameters.
954 (dll_loaded_event, windows_add_all_dlls): Declare.
955 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
956 from windows-nat.c.
957 (dll_loaded_event): New function.
958
de071872
TT
9592021-04-30 Tom Tromey <tromey@adacore.com>
960
961 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
962 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
963 Declare.
964 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
965 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
966
9e439f00
TT
9672021-04-30 Tom Tromey <tromey@adacore.com>
968
969 * windows-nat.c: Move code to nat/windows-nat.[ch].
970 (_initialize_windows_nat): Call initialize_loadable.
971 * nat/windows-nat.h (AdjustTokenPrivileges)
972 (DebugActiveProcessStop, DebugBreakProcess)
973 (DebugSetProcessKillOnExit, EnumProcessModules)
974 (EnumProcessModulesEx, GetModuleInformation)
975 (GetModuleFileNameExA, GetModuleFileNameExW)
976 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
977 (GetCurrentConsoleFont, Wow64SuspendThread)
978 (Wow64GetThreadContext, Wow64SetThreadContext)
979 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
980 (AdjustTokenPrivileges_ftype)
981 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
982 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
983 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
984 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
985 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
986 (GetConsoleFontSize_ftype)
987 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
988 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
989 (Wow64GetThreadSelectorEntry_ftype): Likewise.
990 (initialize_loadable): Declare.
991 * nat/windows-nat.c (AdjustTokenPrivileges)
992 (DebugActiveProcessStop, DebugBreakProcess)
993 (DebugSetProcessKillOnExit, EnumProcessModules)
994 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
995 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
996 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
997 (Wow64GetThreadContext, Wow64SetThreadContext)
998 (Wow64GetThreadSelectorEntry): Define.
999 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1000 from windows-nat.c.
1001 (initialize_loadable): Likewise, and rename.
1002
1053c638
TT
10032021-04-30 Tom Tromey <tromey@adacore.com>
1004
1005 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1006 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1007 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1008 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1009 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1010 (bad): New template functions.
1011 (_initialize_loadable): Update.
1012
2869ac4b
TT
10132021-04-30 Tom Tromey <tromey@adacore.com>
1014
1015 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1016
e197dfae
SM
10172021-04-29 Simon Marchi <simon.marchi@efficios.com>
1018
1019 * auto-load.h: Split namespace declaration.
1020
89ba430c
SM
10212021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1022
1023 * infrun.c (save_waitstatus): Move variables to inner scope.
1024
8eb82ba1
AB
10252021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1026
1027 * NEWS: Fix typo and stray full stop.
1028
db2534b7
TT
10292021-04-28 Tom Tromey <tromey@adacore.com>
1030
1031 * ada-exp.y (primary): Use new type for null pointer.
1032 * ada-lang.c (ada_type_match): Remove "may_deref"
1033 parameter. Handle null pointer.
1034 (ada_args_match): Update.
1035 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1036 Handle null pointer.
1037
edeaceda
AB
10382021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1039
1040 * NEWS: Mention new commands.
1041 * python/python.c (python_ignore_environment): New static global.
1042 (show_python_ignore_environment): New function.
1043 (set_python_ignore_environment): New function.
1044 (python_dont_write_bytecode): New static global.
1045 (show_python_dont_write_bytecode): New function.
1046 (set_python_dont_write_bytecode): New function.
1047 (_initialize_python): Register new commands.
1048
041ca48e
AB
10492021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * extension-priv.h (struct extension_language_ops): Rename
1052 'finish_initialization' to 'initialize'.
1053 * extension.c (finish_ext_lang_initialization): Renamed to...
1054 (ext_lang_initialization): ...this, update comment, and updated
1055 the calls to reflect the change in struct extension_language_ops.
1056 * extension.h (finish_ext_lang_initialization): Renamed to...
1057 (ext_lang_initialization): ...this.
1058 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1059 (gdbscm_initialize): ...this, update comment at definition.
1060 (guile_extension_ops): Update.
1061 * main.c (captured_main_1): Update call to
1062 finish_ext_lang_initialization.
1063 * python/python.c (gdbpy_finish_initialization): Rename to...
1064 (gdbpy_initialize): ...this, update comment at definition, and
1065 update call to do_finish_initialization.
1066 (python_extension_ops): Update.
1067 (do_finish_initialization): Rename to...
1068 (do_initialize): ...this, and update comment.
1069
1178f01a
AB
10702021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1071
1072 * main.c (captured_main_1): Add a call to
1073 finish_ext_lang_initialization.
1074 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1075
880ae75a
AB
10762021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1079 (gdbscm_finish_initialization): Add code moved from
1080 _initialize_guile.
1081 (_initialize_guile): Move code to gdbscm_finish_initialization.
1082 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1083 _initialize_scm_arch.
1084 (_initialize_scm_arch): New function.
1085 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1086 into _initialize_scm_block.
1087 (_initialize_scm_block): New function.
1088 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1089 into _initialize_scm_frame.
1090 (_initialize_scm_frame): New function.
1091 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1092 into _initialize_scm_objfile.
1093 (_initialize_scm_objfile): New function.
1094 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1095 code into _initialize_scm_progspace.
1096 (_initialize_scm_progspace): New function.
1097 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1098 into _initialize_scm_symbol.
1099 (_initialize_scm_symbol): New function.
1100 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1101 into _initialize_scm_symtab.
1102 (_initialize_scm_symtab): New function.
1103 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1104 _initialize_scm_type.
1105 (_initialize_scm_type): New function.
1106
8e3685bf
AB
11072021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1108
1109 * python/py-arch.c (_initialize_py_arch): New function.
1110 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1111 * python/py-block.c (_initialize_py_block): New function.
1112 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1113 * python/py-inferior.c (_initialize_py_inferior): New function.
1114 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1115 * python/py-objfile.c (_initialize_py_objfile): New function.
1116 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1117 * python/py-progspace.c (_initialize_py_progspace): New function.
1118 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1119 * python/py-registers.c (_initialize_py_registers): New function.
1120 (gdbpy_initialize_registers): Move code to
1121 _initialize_py_registers.
1122 * python/py-symbol.c (_initialize_py_symbol): New function.
1123 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1124 * python/py-symtab.c (_initialize_py_symtab): New function.
1125 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1126 * python/py-type.c (_initialize_py_type): New function.
1127 (gdbpy_initialize_types): Move code to _initialize_py_type.
1128 * python/py-unwind.c (_initialize_py_unwind): New function.
1129 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1130 * python/python.c (_initialize_python): Move call to
1131 do_start_initialization to gdbpy_finish_initialization.
1132 (gdbpy_finish_initialization): Add call to
1133 do_start_initialization.
1134
913832e9
AB
11352021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * extension.c (struct scoped_default_signal): New struct.
1138 (scoped_default_sigint): New typedef.
1139 (finish_ext_lang_initialization): Make use of
1140 scoped_default_sigint.
1141
a3b5ef3e
AB
11422021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1143
1144 * main.c (captured_main_1): Don't pass argument to gdb_init.
1145 * top.c (gdb_init): Remove unused argument, and add header
1146 comment.
1147 * top.h (gdb_init): Remove argument.
1148
b9f90c72
LM
11492021-04-27 Luis Machado <luis.machado@linaro.org>
1150
1151 * psymtab.c (psymbol_functions::dump): Output newline.
1152 Remove wrap.
1153 * symmisc.c (dump_objfile): Likewise.
1154
2c473def
MW
11552021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1156 Simon Marchi <simon.marchi@polymtl.ca>
1157
1158 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1159 when attaching the 'auto_load_new_objfile' observer, so
1160 other observers can specify it as a dependency.
1161 * gdb/auto-load.h (struct token): Declare
1162 'auto_load_new_objfile_observer_token' as token to be used
1163 for the 'auto_load_new_objfile' observer.
1164 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1165 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1166 observer, so it gets notified after the latter.
1167
9a6e099f
MW
11682021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1169 Simon Marchi <simon.marchi@polymtl.ca>
1170
1171 * unittests/observable-selftests.c (dependency_test_counters):
1172 New.
1173 (observer_token0, observer_token1, observer_token2,
1174 observer_token3, observer_token4, observer_token5): New.
1175 (struct dependency_observer_data): New struct.
1176 (observer_dependency_test_callback): New function.
1177 (test_observers): New.
1178 (run_dependency_test): New function.
1179 (test_dependency): New.
1180 (_initialize_observer_selftest): Register dependency test.
1181
bea3329b
SM
11822021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1183
1184 PR gdb/27773
1185 * cli/cli-dump.c (dump_binary_file): Check result of
1186 gdb_fopen_cloexec.
1187
c290cb01
ST
11882021-04-25 Sergei Trofimovich <siarheit@google.com>
1189
1190 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1191 by passing `process_stratum_target*` parameter.
1192
fbb46296
LS
11932021-04-25 Lancelot Six <lsix@lancelotsix.com>
1194
1195 PR gdb/22640
1196 * typeprint.h (struct type_print_options): Add print_in_hex
1197 flag.
1198 (struct print_offset_data): Add print_in_hex flag, add a
1199 constructor accepting a type_print_options* argument.
1200 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1201 default value for print_in_hex.
1202 (print_offset_data::indentation): Allow more horizontal space.
1203 (print_offset_data::print_offset_data): Add ctor.
1204 (print_offset_data::maybe_print_hole, print_offset_data::update):
1205 Handle the print_in_hex flag.
1206 (whatis_exp): Handle 'x' and 'd' flags.
1207 (print_offsets_and_sizes_in_hex): Declare.
1208 (set_print_offsets_and_sizes_in_hex): Create.
1209 (show_print_offsets_and_sizes_in_hex): Create.
1210 (_initialize_typeprint): Update help message for the ptype
1211 command, register the 'set print type hex' and 'show print type
1212 hex' commands.
1213 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1214 (c_type_print_base): Construct the print_offset_data
1215 object using the type_print_optons parameter.
1216 * rust-lang.c (rust_language::print_type): Construct the
1217 print_offset_data object using the type_print_optons parameter.
1218 * NEWS: Mention the new flags of the ptype command.
1219
18bbba46
LS
12202021-04-25 Lancelot Six <lsix@lancelotsix.com>
1221
1222 * typeprint.h (struct type_print_options): Move before
1223 print_offset_data.
1224
77393c9b
JB
12252021-04-25 Joel Brobecker <brobecker@adacore.com>
1226
1227 GDB 10.2 released.
1228
98c897e3
SM
12292021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * observable.c (observer_debug): Change to bool.
1232
9fc29955
AB
12332021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * dwarf2/read.c: Add 'unordered_set' include.
1236 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1237 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1238 of per_Bfd->filenames_cache cache, and use function local
1239 filenames_cache instead. Reindent.
1240 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1241
0406545d
SM
12422021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1243
1244 * breakpoint.c (iterate_over_bp_locations): Change callback to
1245 function view, remove data parameter.
1246 * breakpoint.h (iterate_over_bp_locations): Likewise.
1247 * record-full.c (record_full_sync_record_breakpoints): Remove
1248 data parameter.
1249
432ce4cf
TT
12502021-04-22 Tom Tromey <tom@tromey.com>
1251
1252 * c-typeprint.c (c_type_print_base_struct_union): Use
1253 print_spaces_filtered_with_print_options.
1254
e25d6d93
SM
12552021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1256
1257 PR gdb/27757
1258 * python/py-type.c (typy_range): Check that bounds are constant
1259 before accessing them as such.
1260 * guile/scm-type.c (gdbscm_type_range): Likewise.
1261
4efeb0d3
TBA
12622021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1263
1264 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1265 * inferior.c (inferior::add_continuation): New method, adapted
1266 from 'add_inferior_continuation'.
1267 (inferior::do_all_continuations): New method, adapted from
1268 'do_all_inferior_continuations'.
1269 (inferior::~inferior): Clear the list of continuations directly.
1270 * inferior.h (class inferior) <continuations>: Rename into...
1271 <m_continuations>: ...this and make private.
1272 * continuations.c: Remove.
1273 * continuations.h: Remove.
1274 * event-top.c: Don't include "continuations.h".
1275
1276 Update the users below.
1277 * inf-loop.c (inferior_event_handler)
1278 * infcmd.c (attach_command)
1279 (notice_new_inferior): Update.
1280
c4c493de
TBA
12812021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1282
1283 * inferior.h (class inferior) <continuations>: Change the type
1284 to be an std::list of std::function's.
1285 Update the references and uses below.
1286 * continuations.c (struct continuation): Delete.
1287 (make_continuation): Delete.
1288 (do_my_continuations_1): Delete.
1289 (do_my_continuations): Delete.
1290 (discard_my_continuations_1): Delete.
1291 (discard_my_continuations): Delete.
1292 (add_inferior_continuation): Update.
1293 (do_all_inferior_continuations): Update.
1294 (discard_all_inferior_continuations): Update.
1295 * continuations.h (add_inferior_continuation): Update to take
1296 an std::function as the parameter.
1297 * infcmd.c (struct attach_command_continuation_args): Delete.
1298 (attach_command_continuation): Delete.
1299 (attach_command_continuation_free_args): Delete.
1300 (attach_command): Update.
1301 (notice_new_inferior): Update.
1302
1194676e
TBA
13032021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1304
1305 * continuations.h: Update the general comment.
1306 * inferior.h (class inferior) <continuations>: Update the comment.
1307 * interps.c: Do not include "continuations.h".
1308
35682f0a
TBA
13092021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1310
1311 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1312 parameter. Update the references below.
1313 * continuations.c (do_my_continuations_1)
1314 (do_my_continuations)
1315 (do_all_inferior_continuations): Update.
1316 * inf-loop.c (inferior_event_handler): Update.
1317 * infcmd.c (attach_command_continuation): Update.
1318
6fee5eee
TBA
13192021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1320
1321 * infcmd.c (attach_post_wait): Update the function comment.
1322
27d0790a
TBA
13232021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1324
1325 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1326 Update the references below.
1327 (struct attach_command_continuation_args)
1328 (attach_command_continuation)
1329 (attach_command_continuation_free_args)
1330 (attach_command)
1331 (notice_new_inferior): Update to remove the reference to 'args'.
1332
c39ebbf4
TV
13332021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1334 Tom de Vries <tdevries@suse.de>
1335
1336 PR remote/27710
1337 * remote.c (remote_target_is_non_stop_p): New function.
1338 * remote.h (remote_target_is_non_stop_p): Declare.
1339 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1340 to check non-stopness using notif_state->remote rather current target.
1341
22f80c0f
TT
13422021-04-22 Tom Tromey <tom@tromey.com>
1343
1344 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1345 (struct typed_val_int) <val>: Now ULONGEST.
1346 (rust_parser::parse_array_type): Remove negative check.
1347 (rust_lex_int_test): Change 'value' to ULONGEST.
1348
05f3c0f0
AB
13492021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1350
1351 * arch-utils.c (default_addressable_memory_unit_size): Return a
1352 value based on bfd's bits per byte.
1353
7e7a35fb
TT
13542021-04-21 Tom Tromey <tom@tromey.com>
1355
1356 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1357 unsigned char.
1358 (struct dwarf2_per_cu_data): Rearrange.
1359 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1360 unsigned char.
1361 (struct comp_unit_head): Rearrange.
1362 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1363
ff507520
TV
13642021-04-21 Tom de Vries <tdevries@suse.de>
1365
1366 PR build/27681
1367 * configure.ac: Remove --without-included-regex/--with-included-regex.
1368 * config.in: Regenerate.
1369 * configure: Regenerate.
1370 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1371
10a636cc
TBA
13722021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1373
1374 * breakpoint.h (create_breakpoint): Add a new parameter,
1375 'force_condition'.
1376 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1377 argument when 'parse_extra' is false to check if the condition
1378 is invalid at all of the breakpoint locations.
1379 Update the users below.
1380 (break_command_1)
1381 (dprintf_command)
1382 (trace_command)
1383 (ftrace_command)
1384 (strace_command)
1385 (create_tracepoint_from_upload): Update.
1386 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1387 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1388 * python/py-breakpoint.c (bppy_init): Update.
1389 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1390
85c88e2a
TBA
13912021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1392
1393 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1394 disabled-by-condition locations on MI-like output.
1395 (breakpoint_1): Do not display the disabled-by-condition footnote
1396 if the output is MI-like.
1397
fd34472c
FC
13982021-04-21 Frederic Cambus <fred@statdns.com>
1399
1400 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1401 update year range in generated copyright notices.
1402
184dcd81
FW
14032021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1404
1405 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1406 qualifier_seq_noopt.
1407
525174e8
FW
14082021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1409
1410 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1411
f5dc2ee3
AB
14122021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1415 (producer_is_icc): Replace use of std::regex with gdb's
1416 compiled_regex.
1417
42c2c694
TT
14182021-04-17 Tom Tromey <tom@tromey.com>
1419
1420 PR gdb/23743:
1421 * dwarf2/read.c (class offset_view): New.
1422 (struct symbol_table_slot): Remove.
1423 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1424 <symbol_name_index, symbol_vec_index>: New methods.
1425 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1426 Rewrite.
1427 (read_gdb_index_from_buffer): Update.
1428 (struct dw2_symtab_iterator) <vec>: Change type.
1429 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1430 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1431 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1432 <append_array, append_offset>: New methods.
1433 (write_hash_table, add_address_entry, write_gdbindex_1)
1434 (write_debug_names): Update.
1435 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1436
da314dd3
TT
14372021-04-17 Tom Tromey <tom@tromey.com>
1438
1439 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1440 partial_symtabs.
1441
0b7b2c2a
TT
14422021-04-17 Tom Tromey <tom@tromey.com>
1443
1444 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1445 from map_matching_symbols. Change parameters.
1446 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1447 Rename from map_matching_symbols. Change parameters.
1448 * dwarf2/read.c (struct dwarf2_gdb_index)
1449 <expand_matching_symbols>: Rename from map_matching_symbols.
1450 Change parameters.
1451 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1452 Rename from map_matching_symbols. Change parameters.
1453 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1454 dw2_map_matching_symbols. Change parameters.
1455 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1456 implementation.
1457 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1458 map_matching_symbols. Change parameters.
1459 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1460 from map_matching_symbols. Change parameters.
1461 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1462 map_matching_symbols. Change parameters.
1463 * ada-lang.c (map_matching_symbols): New function.
1464 (add_nonlocal_symbols): Update.
1465
90160b57
TT
14662021-04-17 Tom Tromey <tom@tromey.com>
1467
1468 * quick-symbol.h (struct quick_symbol_functions)
1469 <expand_symtabs_with_fullname>: Remove.
1470 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1471 Remove.
1472 * psympriv.h (struct psymbol_functions)
1473 <expand_symtabs_with_fullname>: Remove.
1474 * dwarf2/read.c (struct dwarf2_base_index_functions)
1475 <expand_symtabs_with_fullname>: Remove.
1476 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1477 Remove.
1478 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1479 Update comment.
1480 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1481 Rewrite.
1482
7089bd88
TT
14832021-04-17 Tom Tromey <tom@tromey.com>
1484
1485 * symfile-debug.c (objfile::expand_symtabs_for_function):
1486 Rewrite.
1487 * quick-symbol.h (struct quick_symbol_functions)
1488 <expand_symtabs_for_function>: Remove.
1489 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1490 Remove.
1491 * psympriv.h (struct psymbol_functions)
1492 <expand_symtabs_for_function>: Remove.
1493 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1494 Update comment.
1495 * dwarf2/read.c (struct dwarf2_gdb_index)
1496 <expand_symtabs_for_function>: Remove.
1497 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1498 Remove.
1499 (find_slot_in_mapped_hash): Remove.
1500 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1501 (dw2_symtab_iter_init): Remove one overload.
1502 (dwarf2_gdb_index::expand_symtabs_for_function)
1503 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1504
536a40f3
TT
15052021-04-17 Tom Tromey <tom@tromey.com>
1506
1507 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1508 Rewrite.
1509 * quick-symbol.h (struct quick_symbol_functions)
1510 <map_symtabs_matching_filename>: Remove.
1511 * psymtab.c (partial_map_expand_apply)
1512 (psymbol_functions::map_symtabs_matching_filename): Remove.
1513 * psympriv.h (struct psymbol_functions)
1514 <map_symtabs_matching_filename>: Remove.
1515 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1516 Update comment.
1517 * dwarf2/read.c (struct dwarf2_base_index_functions)
1518 <map_symtabs_matching_filename>: Remove.
1519 (dw2_map_expand_apply)
1520 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1521 Remove.
1522
84d865e3
TT
15232021-04-17 Tom Tromey <tom@tromey.com>
1524
1525 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1526 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1527 Remove.
1528 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1529 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1530 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1531 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1532 Remove.
1533 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1534 (dwarf2_gdb_index::lookup_symbol)
1535 (dwarf2_debug_names_index::lookup_symbol): Remove.
1536
3bfa51a7
TT
15372021-04-17 Tom Tromey <tom@tromey.com>
1538
1539 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1540 * symmisc.c (maintenance_expand_symtabs): Update.
1541 * symfile.c (expand_symtabs_matching): Update.
1542 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1543 parameter.
1544 * quick-symbol.h (struct quick_symbol_functions)
1545 <expand_symtabs_matching>: Add 'domain' parameter.
1546 * psymtab.c (recursively_search_psymtabs)
1547 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1548 parameter.
1549 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1550 Add 'domain' parameter.
1551 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1552 'domain' parameter.
1553 * linespec.c (iterate_over_all_matching_symtabs): Update.
1554 * dwarf2/read.c (struct dwarf2_gdb_index)
1555 <expand_symtabs_matching>: Add 'domain' parameter.
1556 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1557 'domain' parameter.
1558 (dw2_expand_symtabs_matching)
1559 (dwarf2_gdb_index::expand_symtabs_matching)
1560 (dw2_debug_names_iterator)
1561 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1562 parameter.
1563
03a8ea51
TT
15642021-04-17 Tom Tromey <tom@tromey.com>
1565
1566 * symtab.c (global_symbol_searcher::expand_symtabs)
1567 (default_collect_symbol_completion_matches_break_on): Update.
1568 * symmisc.c (maintenance_expand_symtabs): Update.
1569 * symfile.h (expand_symtabs_matching): Add search_flags
1570 parameter.
1571 * symfile.c (expand_symtabs_matching): Add search_flags
1572 parameter.
1573 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1574 search_flags parameter.
1575 * quick-symbol.h (struct quick_symbol_functions)
1576 <expand_symtabs_matching>: Add search_flags parameter.
1577 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1578 * psymtab.c (recursively_search_psymtabs)
1579 (psymbol_functions::expand_symtabs_matching): Add search_flags
1580 parameter.
1581 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1582 Add search_flags parameter.
1583 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1584 search_flags parameter.
1585 * linespec.c (iterate_over_all_matching_symtabs): Update.
1586 * dwarf2/read.c (struct dwarf2_gdb_index)
1587 <expand_symtabs_matching>: Add search_flags parameter.
1588 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1589 search_flags parameter.
1590 (dw2_map_matching_symbols): Update.
1591 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1592 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1593 parameter.
1594 (dw2_debug_names_iterator): Change block_index to search flags.
1595 <m_block_index>: Likewise.
1596 (dw2_debug_names_iterator::next)
1597 (dwarf2_debug_names_index::lookup_symbol)
1598 (dwarf2_debug_names_index::expand_symtabs_for_function)
1599 (dwarf2_debug_names_index::map_matching_symbols)
1600 (dwarf2_debug_names_index::map_matching_symbols): Update.
1601 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1602 search_flags parameter.
1603 * ada-lang.c (ada_add_global_exceptions)
1604 (collect_symbol_completion_matches): Update.
1605
df35e626
TT
16062021-04-17 Tom Tromey <tom@tromey.com>
1607
1608 * symtab.c (default_collect_symbol_completion_matches_break_on):
1609 Update.
1610 * symfile.h (expand_symtabs_matching): Return bool.
1611 * symfile.c (expand_symtabs_matching): Return bool.
1612 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1613 bool.
1614 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1615 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1616 bool.
1617 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1618 bool.
1619 * psympriv.h (struct psymbol_functions)
1620 <expand_symtabs_matching>: Return bool.
1621 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1622 bool.
1623 * dwarf2/read.c (struct dwarf2_gdb_index)
1624 <expand_symtabs_matching>: Return bool.
1625 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1626 Return bool.
1627 (dw2_expand_symtabs_matching_symbol): Return bool.
1628 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1629 (dw2_expand_symtabs_matching)
1630 (dwarf2_gdb_index::expand_symtabs_matching)
1631 (dwarf2_debug_names_index::expand_symtabs_matching)
1632 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1633
e357e990
TT
16342021-04-17 Tom Tromey <tom@tromey.com>
1635
1636 * quick-symbol.h (enum block_search_flag_values): New.
1637 (block_search_flags): New enum flags type.
1638
3cbc7ac3
TT
16392021-04-16 Tom Tromey <tom@tromey.com>
1640
1641 * rust-parse.c: New file.
1642 * rust-exp.y: Remove.
1643 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1644 (SFILES): Remove rust-exp.y.
1645 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1646
1b6b755e
LM
16472021-04-16 Luis Machado <luis.machado@linaro.org>
1648
1649 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1650
c45ecc9d
JB
16512021-04-15 John Baldwin <jhb@FreeBSD.org>
1652
1653 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1654 use throughout file.
1655
a15a276b
TT
16562021-04-15 Tom Tromey <tromey@adacore.com>
1657
1658 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1659 arrays.
1660
644a2e75
TT
16612021-04-15 Tom Tromey <tromey@adacore.com>
1662
1663 * printcmd.c (print_variable_and_value): Use
1664 common_val_print_checked.
1665
9e5e03df
TT
16662021-04-15 Tom Tromey <tromey@adacore.com>
1667
1668 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1669 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1670 Update.
1671 * p-exp.y (variable): Update.
1672 * m2-exp.y (variable): Update.
1673 * go-exp.y (variable): Update.
1674 * expprint.c (dump_for_expression): New overload.
1675 * expop.h (check_objfile): New overload.
1676 (check_constant): New overload.
1677 (class var_value_operation): Use block_symbol.
1678 <get_symbol>: Rewrite.
1679 * eval.c (var_value_operation::evaluate)
1680 (var_value_operation::evaluate_funcall)
1681 (var_value_operation::evaluate_for_address)
1682 (var_value_operation::evaluate_for_address)
1683 (var_value_operation::evaluate_with_coercion)
1684 (var_value_operation::evaluate_for_sizeof)
1685 (var_value_operation::evaluate_for_cast): Update.
1686 * d-exp.y (PrimaryExpression): Update.
1687 * c-exp.y (variable): Update.
1688 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1689 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1690 (ada_var_value_operation::evaluate)
1691 (ada_var_value_operation::resolve)
1692 (ada_funcall_operation::resolve): Update.
1693 * ada-exp.y (write_var_from_sym, write_object_renaming)
1694 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1695 (maybe_overload): Update.
1696 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1697
5809fbf2
TT
16982021-04-15 Tom Tromey <tom@tromey.com>
1699 Andrew Burgess <andrew.burgess@embecosm.com>
1700
1701 * NEWS: Add entry.
1702 * main.c (captured_main_1): Call check_quiet_mode.
1703 * top.c (startup_quiet): New global.
1704 (check_quiet_mode): New function.
1705 (show_startup_quiet): New function.
1706 (init_main): Register new command.
1707 * top.h (check_quiet_mode): Declare.
1708
92e4e97a
AB
17092021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1710
1711 PR cli/25956
1712 * NEWS: Mention new early init files and command line options.
1713 * config.in: Regenerate.
1714 * configure: Regenerate.
1715 * configure.ac: Define GDBEARLYINIT.
1716 * main.c (get_earlyinit_files): New function.
1717 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1718 CMDARG_EARLYINIT_COMMAND.
1719 (captured_main_1): Add support for new command line flags, and for
1720 processing startup files.
1721 (print_gdb_help): Include startup files in the output.
1722
54b4dcc5
AB
17232021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1726 (relocate_file_path_maybe_in_datadir): ...this.
1727 (class gdb_initfile_finder): New class.
1728 (get_init_files): Now uses gdb_initfile_finder.
1729 (print_gdb_help): Print 'None found' when there are no init files.
1730
34dc0f95
TBA
17312021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1732
1733 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1734 corresponding child of the abstract DIE when iterating the
1735 children of the concrete DIE.
1736
329534fd
TV
17372021-04-13 Tom de Vries <tdevries@suse.de>
1738
1739 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1740 type to regoff_t *.
1741
d9d2ef05
LM
17422021-04-13 Luis Machado <luis.machado@linaro.org>
1743
1744 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1745 hex values.
1746
c8a37944
WS
17472021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1748
1749 * rs6000-tdep.c: Add support for single-stepping of
1750 prefixed instructions.
1751
b722acca
WS
17522021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1753
e3d528d7
WS
1754 PR gdb/27525
1755 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1756 handle the addpcis/lnia instruction.
1757
17582021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1759
b722acca
WS
1760 * MAINTAINERS (Write After Approval): Add myself.
1761
6ba4cb84
CL
17622021-4-12 Carl Love <cel@us.ibm.com>
1763
1764 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1765 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1766 float128.
1767
d4717483
SM
17682021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1771 * nat/windows-nat.h: Likewise.
1772
b3885679
EZ
17732021-04-10 Eli Zaretskii <eliz@gnu.org>
1774
1775 * windows-nat.c (windows_nat::handle_load_dll): Call
1776 windows_add_dll if get_image_name failed to glean the name of the
1777 DLL by using the lpImageName pointer.
1778 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1779 (windows_add_dll): Now does what windows_add_all_dlls did before,
1780 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1781 specifies the address where the DLL was loaded into the inferior,
1782 and looks for the single DLL loaded at that address.
1783
1ef6a596
LM
17842021-04-09 Luis Machado <luis.machado@linaro.org>
1785
1786 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1787
83a559f7
DQ
17882021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1789
1790 * darwin-nat.c (darwin_nat_target::resume): Remove status
1791 variable.
1792
16e311ab
FW
17932021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1794
1795 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1796 prologue end for Intel compilers.
1797 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1798 * producer.c (producer_is_icc_ge_19): New function.
1799 * producer.h (producer_is_icc_ge_19): New declaration.
1800
fbb3bcfc
FW
18012021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1802
1803 * producer.c: (producer_is_icc): Update for new version scheme.
1804 (producer_parsing_tests): Update names and expected results.
1805 * producer.h: (producer_is_icc): Update comment accordingly.
1806
e97007b6
SM
18072021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1808
1809 * target.h (struct target_ops) <follow_fork>: Return void.
1810 (target_follow_fork): Likewise.
1811 * target.c (default_follow_fork): Likewise.
1812 (target_follow_fork): Likewise.
1813 * infrun.c (follow_fork_inferior): Adjust.
1814 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1815 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1816 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1817 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1818 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1819 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1820 * remote.c (class remote_target) <follow_fork>: Likewise.
1821 (remote_target::follow_fork): Likewise.
1822 * target-delegates.c: Re-generate.
1823
dc2b480f
WP
18242021-04-07 Weimin Pan <weimin.pan@oracle.com>
1825
1826 * ctfread.c (fetch_tid_type): New function, use throughout file.
1827 (read_forward_type): New function.
1828 (read_type_record): Call read_forward_type.
1829
0a703a4c
AB
18302021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * f-exp.h (class fortran_structop_operation): New class.
1833 * f-exp.y (exp): Create fortran_structop_operation instead of the
1834 generic structop_operation.
1835 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1836 expression as EVAL_NORMAL if the result type was dynamic so we can
1837 extract the actual array bounds.
1838 (fortran_structop_operation::evaluate): New function.
1839
18402021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * eval.c (evaluate_subexp_standard): Remove
1843 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1844 STRUCTOP_PTR.
1845
30ab3586
AB
18462021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * valops.c (value_cast): Call value_deeply_equal before performing
1849 any cast.
1850
5e18990f
AB
18512021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1854 the function.
1855
56d467f4
CT
18562021-04-07 Caroline Tice <cmtice@google.com>
1857
1858 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1859 the search paths used resolve relative location of .dwo file.
1860
1fd999d9
AB
18612021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1862
1863 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1864 assert.
1865 (dwarf2_section_info::get_file_name): Add an assert.
1866 (dwarf2_section_info::read_string): Display a minimal, sane error
1867 when the dwarf2_section_info is not associated with a bfd section.
1868
79c02443
AB
18692021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * top.c (staged_gdb_datadir): Update comment.
1872 (set_gdb_datadir): Copy the value of gdb_datadir back into
1873 staged_datadir.
1874 (init_main): Initialise staged_gdb_datadir.
1875
340d00fb
TV
18762021-04-06 Tom de Vries <tdevries@suse.de>
1877
1878 PR breakpoints/25884
1879 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1880 stepping range.
1881
d811a7cf
TV
18822021-04-06 Tom de Vries <tdevries@suse.de>
1883
1884 PR tui/27680
1885 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1886 to style.parse.
1887
306b445a
SM
18882021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1889
1890 * avr-tdep.c (avr_frame_unwind_cache): Use
1891 trad_frame_saved_reg::is_addr.
1892
9161c89a
SM
18932021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1896 adjust callers.
1897
0072c873
SM
18982021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1899
1900 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1901 objfile parameter for objfile_per_bfd_storage, adjust callers.
1902 (struct standard_psymtab) <standard_psymtab>: Likewise.
1903 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1904 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1905 * ctfread.c (struct ctf_psymtab): Likewise.
1906 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1907 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1908 (dwarf2_create_include_psymtab): Likewise.
1909 * objfiles.h (struct objfile_per_bfd_storage)
1910 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1911 <get_bfd>: New method.
1912 <m_bfd>: New field.
1913 * objfiles.c (get_objfile_bfd_data): Adjust.
1914
9984dd99
SM
19152021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1916
1917 * psymtab.c (partial_symtab::partial_symtab): Change
1918 last_objfile_name to be an std::string.
1919 * symfile.c (allocate_symtab): Likewise.
1920
4a4f97c1
SM
19212021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1922
1923 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1924 methods.
1925 (struct objfile) <intern>: Use
1926 objfile::objfile_per_bfd_storage::intern.
1927
0672875f
SM
19282021-04-01 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1931 with type::is_flag_enum.
1932
9902b327
SM
19332021-04-01 Simon Marchi <simon.marchi@efficios.com>
1934
1935 * gdbtypes.h (struct type) <is_flag_enum,
1936 set_is_flag_enum>: New methods.
1937 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1938 write call sites to use type::set_is_flag_enum.
1939
3bc440a2
SM
19402021-04-01 Simon Marchi <simon.marchi@efficios.com>
1941
1942 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1943 with type::is_declared_class.
1944
aa70e35c
SM
19452021-04-01 Simon Marchi <simon.marchi@efficios.com>
1946
1947 * gdbtypes.h (struct type) <is_declared_class,
1948 set_is_declared_class>: New methods.
1949 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1950 write call sites to use type::set_is_declared_class.
1951
bfb9f5dc
BS
19522021-02-28 Boris Staletic <boris.staletic@gmail.com>
1953
1954 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1955 to avoid deprecation warnings.
1956
733f5eea
ML
19572021-04-01 Martin Liska <mliska@suse.cz>
1958
1959 * cp-name-parser.y: Use startswith instead of strncmp.
1960 * m2-exp.y: Likewise.
1961 * macroexp.c (substitute_args): Likewise.
1962 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1963 * rust-exp.y: Likewise.
1964
af82f89d
TT
19652021-03-31 Tom Tromey <tom@tromey.com>
1966
1967 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1968 with dw2_map_matching_symbols.
1969 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1970 dw2_expand_symtabs_matching.
1971
3570682a
TT
19722021-03-31 Tom Tromey <tromey@adacore.com>
1973
1974 * dwarf2/stringify.h: Fix typo.
1975
8a91fbdf
SM
19762021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1977
1978 PR gdb/27541
1979 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1980 with objfiles using READNOW.
1981
9f67fc59
TT
19822021-03-29 Tom Tromey <tromey@adacore.com>
1983
1984 * top.c (check_frame_language_change): Update.
1985 * language.c (language_info): Remove parameter.
1986 * language.h (language_info): Remove parameter.
1987
9b8ffbf4
LM
19882021-03-29 Luis Machado <luis.machado@linaro.org>
1989
1990 * compile/compile.c (get_args): Don't add empty argv entries.
1991
25b48839
RO
19922021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1993
1994 gdb:
1995 * procfs.c (procfs_target::attach): Define inf.
1996 Use it.
1997 (procfs_target::create_inferior): Likewise.
1998
edc02ceb
TT
19992021-03-28 Tom Tromey <tom@tromey.com>
2000
2001 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2002 (elf_symfile_read): Simplify.
2003 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2004 (make_lazy_dwarf_reader): New function.
2005 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2006 (dwarf2_initialize_objfile): Return void. Remove index_kind
2007 parameter. Push on 'qf' list.
2008 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2009 type. Remove 'index_kind' parameter.
2010 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2011
6e23d91a
TT
20122021-03-27 Tom Tromey <tom@tromey.com>
2013
2014 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2015
594b8948
TT
20162021-03-27 Tom Tromey <tom@tromey.com>
2017
2018 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2019
efe1ecd8
LS
20202021-03-26 Lancelot Six <lsix@lancelotsix.com>
2021
2022 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2023 rid of 'local'.
2024
f4655dee
TT
20252021-03-26 Tom Tromey <tom@tromey.com>
2026
2027 * symtab.c (struct output_source_filename_data): Add 'output'
2028 method and operator().
2029 (output_source_filename_data::output): Rename from
2030 output_source_filename.
2031 (output_partial_symbol_filename): Remove.
2032 (info_sources_command): Update.
2033 (struct add_partial_filename_data): Add operator().
2034 (add_partial_filename_data::operator()): Rename from
2035 maybe_add_partial_symtab_filename.
2036 (make_source_files_completion_list): Update.
2037 * symfile.c (quick_symbol_functions): Update.
2038 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2039 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2040 'need_fullname'. Remove 'data' parameter.
2041 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2042 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2043 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2044 Change type of 'fun' and 'need_fullname'. Remove 'data'
2045 parameter.
2046 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2047 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2048 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2049 parameter.
2050 (mi_cmd_file_list_exec_source_files): Update.
2051 * dwarf2/read.c
2052 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2053
2315bb2d
TT
20542021-03-26 Tom Tromey <tom@tromey.com>
2055
2056 * ada-lang.c (struct match_data): Add operator().
2057 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2058 (callback): Remove 'callback'.
2059
e2cd5ca4
TT
20602021-03-26 Tom Tromey <tom@tromey.com>
2061
2062 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2063 call make_ignore_params once.
2064
cd43f63e
TT
20652021-03-26 Tom Tromey <tom@tromey.com>
2066
2067 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2068 "user" check.
2069
b4b1a226
SM
20702021-03-26 Simon Marchi <simon.marchi@efficios.com>
2071 Pedro Alves <pedro@palves.net>
2072
2073 * async-event.c: Include "infrun.h".
2074 (async_event_handler_marked): New.
2075 * async-event.h (async_event_handler_marked): Declare.
2076 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2077 inferior before calling target method. Don't commit-resumed if
2078 target_has_pending_events is true.
2079 * remote.c (remote_target::has_pending_events): New.
2080 * target-delegates.c: Regenerate.
2081 * target.c (target_has_pending_events): New.
2082 * target.h (target_ops::has_pending_events): New target method.
2083 (target_has_pending_events): New.
2084
1192f124
SM
20852021-03-26 Simon Marchi <simon.marchi@efficios.com>
2086 Pedro Alves <pedro@palves.net>
2087
2088 * infcmd.c (run_command_1, attach_command, detach_command)
2089 (interrupt_target_1): Use scoped_disable_commit_resumed.
2090 * infrun.c (do_target_resume): Remove
2091 target_commit_resume call.
2092 (commit_resume_all_targets): Remove.
2093 (maybe_set_commit_resumed_all_targets): New.
2094 (maybe_call_commit_resumed_all_targets): New.
2095 (enable_commit_resumed): New.
2096 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2097 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2098 (scoped_disable_commit_resumed::reset)
2099 (scoped_disable_commit_resumed::reset_and_commit)
2100 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2101 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2102 New.
2103 (proceed): Use scoped_disable_commit_resumed and
2104 maybe_call_commit_resumed_all_targets.
2105 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2106 * infrun.h (struct scoped_disable_commit_resumed): New.
2107 (maybe_call_commit_resumed_all_process_targets): New.
2108 (struct scoped_enable_commit_resumed): New.
2109 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2110 * process-stratum-target.h (class process_stratum_target):
2111 <commit_resumed_state>: New.
2112 * record-full.c (record_full_wait_1): Change commit_resumed_state
2113 around calling commit_resumed.
2114 * remote.c (class remote_target) <commit_resume>: Rename to...
2115 <commit_resumed>: ... this.
2116 (struct stop_reply): Move up.
2117 (remote_target::commit_resume): Rename to...
2118 (remote_target::commit_resumed): ... this. Check if there is any
2119 thread pending vCont resume.
2120 (remote_target::remote_stop_ns): Generate stop replies for resumed
2121 but pending vCont threads.
2122 (remote_target::wait_ns): Add gdb_assert.
2123 * target-delegates.c: Regenerate.
2124 * target.c (target_wait, target_resume): Assert that the current
2125 process_stratum target isn't in commit-resumed state.
2126 (defer_target_commit_resume): Remove.
2127 (target_commit_resume): Remove.
2128 (target_commit_resumed): New.
2129 (make_scoped_defer_target_commit_resume): Remove.
2130 (target_stop): Assert that the current process_stratum target
2131 isn't in commit-resumed state.
2132 * target.h (struct target_ops) <commit_resume>: Rename to ...
2133 <commit_resumed>: ... this.
2134 (target_commit_resume): Remove.
2135 (target_commit_resumed): New.
2136 (make_scoped_defer_target_commit_resume): Remove.
2137 * top.c (wait_sync_command_done): Use
2138 scoped_enable_commit_resumed.
2139
e5b9b39f
PA
21402021-03-26 Pedro Alves <pedro@palves.net>
2141
2142 * target.c (target_always_non_stop_p): Also check whether the
2143 target can async.
2144
bab287cd
TT
21452021-03-26 Tom Tromey <tom@tromey.com>
2146
2147 * dwarf2/read.c (dwarf2_read_debug_names)
2148 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2149 (dw2_debug_names_iterator::next, create_type_unit_group):
2150 Simplify.
2151
eff4f69d
PA
21522021-03-25 Pedro Alves <pedro@palves.net>
2153
2154 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2155 around setting the breakpoint.
2156
323fd5b9
PA
21572021-03-25 Pedro Alves <pedro@palves.net>
2158
2159 * remote.c
2160 (remote_target::check_pending_events_prevent_wildcard_vcont):
2161 Check whether the event's ptid is not null_ptid before looking up
2162 the corresponding inferior.
2163
d3cbca38
CD
21642021-03-24 Changbin Du <changbin.du@gmail.com>
2165
2166 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2167 read_code.
2168
328d42d8
SM
21692021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2170
2171 * target.h (current_top_target): Remove, make callers use the
2172 current inferior instead.
2173 * target.c (current_top_target): Remove.
2174
d777bf0d
SM
21752021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2176
2177 * target.h (target_shortname): Change to function declaration.
2178 (target_longname): Likewise.
2179 (target_attach_no_wait): Likewise.
2180 (target_post_attach): Likewise.
2181 (target_prepare_to_store): Likewise.
2182 (target_supports_enable_disable_tracepoint): Likewise.
2183 (target_supports_string_tracing): Likewise.
2184 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2185 (target_supports_dumpcore): Likewise.
2186 (target_dumpcore): Likewise.
2187 (target_can_run_breakpoint_commands): Likewise.
2188 (target_files_info): Likewise.
2189 (target_post_startup_inferior): Likewise.
2190 (target_insert_fork_catchpoint): Likewise.
2191 (target_remove_fork_catchpoint): Likewise.
2192 (target_insert_vfork_catchpoint): Likewise.
2193 (target_remove_vfork_catchpoint): Likewise.
2194 (target_insert_exec_catchpoint): Likewise.
2195 (target_remove_exec_catchpoint): Likewise.
2196 (target_set_syscall_catchpoint): Likewise.
2197 (target_rcmd): Likewise.
2198 (target_can_lock_scheduler): Likewise.
2199 (target_can_async_p): Likewise.
2200 (target_is_async_p): Likewise.
2201 (target_execution_direction): Likewise.
2202 (target_extra_thread_info): Likewise.
2203 (target_pid_to_exec_file): Likewise.
2204 (target_thread_architecture): Likewise.
2205 (target_find_memory_regions): Likewise.
2206 (target_make_corefile_notes): Likewise.
2207 (target_get_bookmark): Likewise.
2208 (target_goto_bookmark): Likewise.
2209 (target_stopped_by_watchpoint): Likewise.
2210 (target_stopped_by_sw_breakpoint): Likewise.
2211 (target_supports_stopped_by_sw_breakpoint): Likewise.
2212 (target_stopped_by_hw_breakpoint): Likewise.
2213 (target_supports_stopped_by_hw_breakpoint): Likewise.
2214 (target_have_steppable_watchpoint): Likewise.
2215 (target_can_use_hardware_watchpoint): Likewise.
2216 (target_region_ok_for_hw_watchpoint): Likewise.
2217 (target_can_do_single_step): Likewise.
2218 (target_insert_watchpoint): Likewise.
2219 (target_remove_watchpoint): Likewise.
2220 (target_insert_hw_breakpoint): Likewise.
2221 (target_remove_hw_breakpoint): Likewise.
2222 (target_can_accel_watchpoint_condition): Likewise.
2223 (target_can_execute_reverse): Likewise.
2224 (target_get_ada_task_ptid): Likewise.
2225 (target_filesystem_is_local): Likewise.
2226 (target_trace_init): Likewise.
2227 (target_download_tracepoint): Likewise.
2228 (target_can_download_tracepoint): Likewise.
2229 (target_download_trace_state_variable): Likewise.
2230 (target_enable_tracepoint): Likewise.
2231 (target_disable_tracepoint): Likewise.
2232 (target_trace_start): Likewise.
2233 (target_trace_set_readonly_regions): Likewise.
2234 (target_get_trace_status): Likewise.
2235 (target_get_tracepoint_status): Likewise.
2236 (target_trace_stop): Likewise.
2237 (target_trace_find): Likewise.
2238 (target_get_trace_state_variable_value): Likewise.
2239 (target_save_trace_data): Likewise.
2240 (target_upload_tracepoints): Likewise.
2241 (target_upload_trace_state_variables): Likewise.
2242 (target_get_raw_trace_data): Likewise.
2243 (target_get_min_fast_tracepoint_insn_len): Likewise.
2244 (target_set_disconnected_tracing): Likewise.
2245 (target_set_circular_trace_buffer): Likewise.
2246 (target_set_trace_buffer_size): Likewise.
2247 (target_set_trace_notes): Likewise.
2248 (target_get_tib_address): Likewise.
2249 (target_set_permissions): Likewise.
2250 (target_static_tracepoint_marker_at): Likewise.
2251 (target_static_tracepoint_markers_by_strid): Likewise.
2252 (target_traceframe_info): Likewise.
2253 (target_use_agent): Likewise.
2254 (target_can_use_agent): Likewise.
2255 (target_augmented_libraries_svr4_read): Likewise.
2256 (target_log_command): Likewise.
2257 * target.c (target_shortname): New.
2258 (target_longname): New.
2259 (target_attach_no_wait): New.
2260 (target_post_attach): New.
2261 (target_prepare_to_store): New.
2262 (target_supports_enable_disable_tracepoint): New.
2263 (target_supports_string_tracing): New.
2264 (target_supports_evaluation_of_breakpoint_conditions): New.
2265 (target_supports_dumpcore): New.
2266 (target_dumpcore): New.
2267 (target_can_run_breakpoint_commands): New.
2268 (target_files_info): New.
2269 (target_post_startup_inferior): New.
2270 (target_insert_fork_catchpoint): New.
2271 (target_remove_fork_catchpoint): New.
2272 (target_insert_vfork_catchpoint): New.
2273 (target_remove_vfork_catchpoint): New.
2274 (target_insert_exec_catchpoint): New.
2275 (target_remove_exec_catchpoint): New.
2276 (target_set_syscall_catchpoint): New.
2277 (target_rcmd): New.
2278 (target_can_lock_scheduler): New.
2279 (target_can_async_p): New.
2280 (target_is_async_p): New.
2281 (target_execution_direction): New.
2282 (target_extra_thread_info): New.
2283 (target_pid_to_exec_file): New.
2284 (target_thread_architecture): New.
2285 (target_find_memory_regions): New.
2286 (target_make_corefile_notes): New.
2287 (target_get_bookmark): New.
2288 (target_goto_bookmark): New.
2289 (target_stopped_by_watchpoint): New.
2290 (target_stopped_by_sw_breakpoint): New.
2291 (target_supports_stopped_by_sw_breakpoint): New.
2292 (target_stopped_by_hw_breakpoint): New.
2293 (target_supports_stopped_by_hw_breakpoint): New.
2294 (target_have_steppable_watchpoint): New.
2295 (target_can_use_hardware_watchpoint): New.
2296 (target_region_ok_for_hw_watchpoint): New.
2297 (target_can_do_single_step): New.
2298 (target_insert_watchpoint): New.
2299 (target_remove_watchpoint): New.
2300 (target_insert_hw_breakpoint): New.
2301 (target_remove_hw_breakpoint): New.
2302 (target_can_accel_watchpoint_condition): New.
2303 (target_can_execute_reverse): New.
2304 (target_get_ada_task_ptid): New.
2305 (target_filesystem_is_local): New.
2306 (target_trace_init): New.
2307 (target_download_tracepoint): New.
2308 (target_can_download_tracepoint): New.
2309 (target_download_trace_state_variable): New.
2310 (target_enable_tracepoint): New.
2311 (target_disable_tracepoint): New.
2312 (target_trace_start): New.
2313 (target_trace_set_readonly_regions): New.
2314 (target_get_trace_status): New.
2315 (target_get_tracepoint_status): New.
2316 (target_trace_stop): New.
2317 (target_trace_find): New.
2318 (target_get_trace_state_variable_value): New.
2319 (target_save_trace_data): New.
2320 (target_upload_tracepoints): New.
2321 (target_upload_trace_state_variables): New.
2322 (target_get_raw_trace_data): New.
2323 (target_get_min_fast_tracepoint_insn_len): New.
2324 (target_set_disconnected_tracing): New.
2325 (target_set_circular_trace_buffer): New.
2326 (target_set_trace_buffer_size): New.
2327 (target_set_trace_notes): New.
2328 (target_get_tib_address): New.
2329 (target_set_permissions): New.
2330 (target_static_tracepoint_marker_at): New.
2331 (target_static_tracepoint_markers_by_strid): New.
2332 (target_traceframe_info): New.
2333 (target_use_agent): New.
2334 (target_can_use_agent): New.
2335 (target_augmented_libraries_svr4_read): New.
2336 (target_log_command): New.
2337 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2338 * infrun.c (set_schedlock_func): Adjust.
2339 * mi/mi-main.c (exec_reverse_continue): Adjust.
2340 * reverse.c (exec_reverse_once): Adjust.
2341 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2342 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2343 * remote-sim.c (gdbsim_target::detach): Adjust.
2344 (gdbsim_target::files_info): Adjust.
2345
b64f703b
TT
23462021-03-24 Tom Tromey <tom@tromey.com>
2347
2348 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2349 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2350 (check_match, dw2_expand_symtabs_matching)
2351 (dwarf2_debug_names_index::map_matching_symbols)
2352 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2353
68f115f8
KS
23542021-03-24 Keith Seitz <keiths@redhat.com>
2355
2356 * compile/compile-cplus-types.c
2357 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2358 thinko.
2359
41c0087b
SM
23602021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2361
2362 * gdbarch.sh (gdbarch_data_registry): Make static.
2363 * gdbarch.c: Re-generate.
2364
ce192338
LM
23652021-03-24 Luis Machado <luis.machado@linaro.org>
2366
2367 * NEWS: Mention memory tagging changes.
2368
bef382e6
LM
23692021-03-24 Luis Machado <luis.machado@linaro.org>
2370
2371 * printcmd.c (decode_format): Handle the 'm' modifier.
2372 (do_examine): Display allocation tags when required/supported.
2373 (should_validate_memtags): New function.
2374 (print_command_1): Display memory tag mismatches.
2375 * valprint.c (show_memory_tag_violations): New function.
2376 (value_print_option_defs): Add new option "memory-tag-violations".
2377 (user_print_options) <memory_tag_violations>: Initialize to 1.
2378 * valprint.h (struct format_data) <print_tags>: New field.
2379 (value_print_options) <memory_tag_violations>: New field.
2380
48136e00
LM
23812021-03-24 Luis Machado <luis.machado@linaro.org>
2382
2383 * printcmd.c: Include gdbsupport/rsp-low.h.
2384 (memory_tag_list): New static global.
2385 (process_print_command_args): Factored out of
2386 print_command_1.
2387 (print_command_1): Use process_print_command_args.
2388 (show_addr_not_tagged, show_memory_tagging_unsupported)
2389 (memory_tag_command, memory_tag_print_tag_command)
2390 (memory_tag_print_logical_tag_command)
2391 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2392 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2393 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2394 functions.
2395 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2396
ffcc2a15
LM
23972021-03-24 Luis Machado <luis.machado@linaro.org>
2398
2399 * aarch64-linux-tdep.c
2400 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2401 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2402
cf44c9fa
LM
24032021-03-24 Luis Machado <luis.machado@linaro.org>
2404
2405 * aarch64-linux-tdep.c
2406 (aarch64_linux_report_signal_info): New function.
2407 (aarch64_linux_init_abi): Register
2408 aarch64_linux_report_signal_info as the report_signal_info hook.
2409 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2410 (SEGV_MTESERR): Define.
2411
b4a7d4fc
LM
24122021-03-24 Luis Machado <luis.machado@linaro.org>
2413
2414 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2415 (aarch64_linux_ltag_tests): New function.
2416 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2417
c7782e50
LM
24182021-03-24 Luis Machado <luis.machado@linaro.org>
2419
2420 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2421 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2422 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2423 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2424 functions.
2425 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2426 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2427 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2428 (aarch64_linux_get_ltag): New functions.
2429 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2430 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2431 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2432 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2433
1e735120
LM
24342021-03-24 Luis Machado <luis.machado@linaro.org>
2435
2436 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2437 bit.
2438 (struct smaps_data): New struct.
2439 (decode_vmflags): Handle the 'mt' flag.
2440 (parse_smaps_data): New function, refactored from
2441 linux_find_memory_regions_full.
2442 (linux_address_in_memtag_page): New function.
2443 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2444 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2445
93e447c6
LM
24462021-03-24 Luis Machado <luis.machado@linaro.org>
2447
2448 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2449 instead of char arrays.
2450
4601818e
LM
24512021-03-24 Luis Machado <luis.machado@linaro.org>
2452
2453 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2454 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2455 nat/aarch64-mte-linux-ptrace.h.
2456 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2457 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2458 override.
2459 <fetch_memtags>: New method override.
2460 <store_memtags>: New method override.
2461 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2462 (aarch64_linux_nat_target::fetch_memtags): New method.
2463 (aarch64_linux_nat_target::store_memtags): New method.
2464 * arch/aarch64-mte-linux.c: New file.
2465 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2466 (AARCH64_MTE_GRANULE_SIZE): Define.
2467 (aarch64_memtag_type): New enum.
2468 (aarch64_mte_get_tag_granules): New prototype.
2469 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2470 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2471 * nat/aarch64-mte-linux-ptrace.c: New file.
2472 * nat/aarch64-mte-linux-ptrace.h: New file.
2473
3f3bd8b8
LM
24742021-03-24 Luis Machado <luis.machado@linaro.org>
2475
2476 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2477 * nat/aarch64-mte-linux-ptrace.h: New file.
2478
5e984dbf
LM
24792021-03-24 Luis Machado <luis.machado@linaro.org>
2480
2481 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2482 (store_mteregs_to_thread): New function.
2483 (aarch64_linux_nat_target::fetch_registers): Update to call
2484 fetch_mteregs_from_thread.
2485 (aarch64_linux_nat_target::store_registers): Update to call
2486 store_mteregs_to_thread.
2487 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2488 (aarch64_cannot_store_register): Handle MTE registers.
2489 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2490 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2491 <has_mte>: New method.
2492 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2493
c1bd443b
LM
24942021-03-24 Luis Machado <luis.machado@linaro.org>
2495
2496 * aarch64-linux-nat.c
2497 (aarch64_linux_nat_target::read_description): Take MTE flag into
2498 account.
2499 Slight refactor to hwcap flag checking.
2500 * aarch64-linux-tdep.c
2501 (aarch64_linux_core_read_description): Likewise.
2502 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2503 MTE.
2504 (aarch64_read_description): Add mte_p parameter and update to use it.
2505 Update the documentation.
2506 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2507 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2508 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2509 (aarch64_create_target_description): Add mte_p parameter and update
2510 the code to use it.
2511 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2512 parameter.
2513 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2514 * features/aarch64-mte.c: New file, generated.
2515 * features/aarch64-mte.xml: New file.
2516
04245125
LM
25172021-03-24 Luis Machado <luis.machado@linaro.org>
2518
2519 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2520 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2521 * aarch64-linux-tdep.c: Likewise
2522 * arch/aarch64-mte-linux.h: New file.
2523
754487e2
LM
25242021-03-24 Luis Machado <luis.machado@linaro.org>
2525
2526 * remote: Include gdbsupport/selftest.h.
2527 (test_memory_tagging_functions): New function.
2528 (_initialize_remote): Register test_memory_tagging_functions.
2529
2c2e7f87
LM
25302021-03-24 Luis Machado <luis.machado@linaro.org>
2531
2532 * remote.c (PACKET_memory_tagging_feature): New enum.
2533 (remote_memory_tagging_p): New function.
2534 (remote_protocol_features): New "memory-tagging" entry.
2535 (remote_target::remote_query_supported): Handle memory tagging
2536 support.
2537 (remote_target::supports_memory_tagging): Implement.
2538 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2539 (create_store_memtags_request): New functions.
2540 (remote_target::fetch_memtags): Implement.
2541 (remote_target::store_memtags): Implement.
2542 (_initialize_remote): Add new "memory-tagging-feature"
2543 config command.
2544
c193949e
LM
25452021-03-24 Luis Machado <luis.machado@linaro.org>
2546
2547 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2548 (default_memtag_matches_p, default_set_memtags)
2549 (default_get_memtag): New functions.
2550 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2551 (default_memtag_matches_p, default_set_memtags)
2552 (default_get_memtag): New prototypes.
2553 * gdbarch.c: Regenerate.
2554 * gdbarch.h: Regenerate.
2555 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2556 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2557 (enum memtag_type): New enum.
2558
dbe692af
LM
25592021-03-24 Luis Machado <luis.machado@linaro.org>
2560
2561 * remote.c (remote_target) <supports_memory_tagging>: New method
2562 override.
2563 <fetch_memtags>: New method override.
2564 <store_memtags>: New method override.
2565 (remote_target::supports_memory_tagging): New method.
2566 (remote_target::fetch_memtags): New method.
2567 (remote_target::store_memtags): New method.
2568 * target-delegates.c: Regenerate.
2569 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2570 method.
2571 <fetch_memtags>: New virtual method.
2572 <store_memtags>: New virtual method.
2573 (target_supports_memory_tagging): Define.
2574 (target_fetch_memtags): Define.
2575 (target_store_memtags): Define.
2576 * target-debug.h (target_debug_print_size_t)
2577 (target_debug_print_const_gdb_byte_vector_r)
2578 (target_debug_print_gdb_byte_vector_r): New functions.
2579
66848ebc
SM
25802021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * target.h (target_longname): Remove.
2583
c8fbd44a
SM
25842021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2585
2586 * target.h (target_is_pushed): Remove, update callers to use
2587 inferior::target_is_pushed instead.
2588 * target.c (target_is_pushed): Remove.
2589
02980c56
SM
25902021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * target.h (push_target): Remove, update callers to use
2593 inferior::push_target.
2594 * target.c (push_target): Remove.
2595 * inferior.h (class inferior) <push_target>: New overload.
2596
fadf6add
SM
25972021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2598
2599 * target.h (unpush_target): Remove, update all callers
2600 to use `inferior::unpush_target` instead.
2601 (struct target_unpusher) <operator()>: Just declare.
2602 * target.c (unpush_target): Remove.
2603 (target_unpusher::operator()): New.
2604
702cf3f5
AB
26052021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2606
2607 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2608 error.
2609 (process_full_comp_unit): Validate the top-level tag before
2610 processing the first DIE.
2611 (read_func_scope): Ensure we have a valid builder.
2612
46fec642
AB
26132021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2614
2615 * objc-lang.c (objc_demangle): Renamed to
2616 objc_language::demangle_symbol, and moved later in the file.
2617 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2618 member function.
2619 (objc_language::demangle_symbol): Defined outside of class
2620 declaration. The definition is the old objc_demangle with NULL
2621 changed to nullptr, and if conditions relating to nullptr pointers
2622 or null character checks made explicit.
2623 * objc-lang.h (objc_demangle): Delete declaration.
2624
08dedd66
ML
26252021-03-22 Martin Liska <mliska@suse.cz>
2626
2627 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2628 (_initialize_arm_tdep): Likewise.
2629
eb36a3eb
TT
26302021-03-20 Tom Tromey <tom@tromey.com>
2631
2632 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2633 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2634 * psymtab.h (make_psymbol_functions): Don't declare.
2635 * psymtab.c (make_psymbol_functions): Remove.
2636 (maintenance_print_psymbols): Update.
2637 * psympriv.h (struct psymbol_functions): Add no-argument
2638 constructor.
2639 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2640 <partial_symtabs>: Remove.
2641 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2642 * elfread.c (read_partial_symbols): Update.
2643 (elf_symfile_read): Remove check for existing partial symbols.
2644 Don't clear "qf".
2645 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2646 partial symbols.
2647 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2648 partial symtabs.
2649 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2650 parameter.
2651 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2652 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2653
e1114590
TT
26542021-03-20 Tom Tromey <tom@tromey.com>
2655
2656 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2657 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2658 * symfile-debug.c (objfile::has_partial_symbols)
2659 (objfile::find_last_source_symtab)
2660 (objfile::forget_cached_source_info)
2661 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2662 (objfile::print_stats, objfile::dump)
2663 (objfile::expand_symtabs_for_function)
2664 (objfile::expand_all_symtabs)
2665 (objfile::expand_symtabs_with_fullname)
2666 (objfile::map_matching_symbols)
2667 (objfile::expand_symtabs_matching)
2668 (objfile::find_pc_sect_compunit_symtab)
2669 (objfile::map_symbol_filenames)
2670 (objfile::find_compunit_symtab_by_address)
2671 (objfile::lookup_global_symbol_language)
2672 (objfile::require_partial_symbols): Update.
2673 * psymtab.c (maintenance_print_psymbols)
2674 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2675 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2676 * objfiles.c (objfile_relocate1): Update.
2677 * elfread.c (elf_symfile_read): Update.
2678
de909f0b
TT
26792021-03-20 Tom Tromey <tom@tromey.com>
2680
2681 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2682
caf8c1e5
TT
26832021-03-20 Tom Tromey <tom@tromey.com>
2684
2685 * psymtab.c (psymbol_functions::count_psyms): Rename.
2686 (psymbol_functions::print_stats): Update.
2687 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2688 method.
2689
3aa31ce7
TT
26902021-03-20 Tom Tromey <tom@tromey.com>
2691
2692 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2693 (psymbol_functions::find_pc_sect_psymtab): Rename.
2694 (psymbol_functions::find_pc_sect_compunit_symtab)
2695 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2696 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2697 Declare new method.
2698 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2699
7b249e47
TT
27002021-03-20 Tom Tromey <tom@tromey.com>
2701
2702 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2703 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2704 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2705 parameter.
2706 (add_psymbol_to_bcache): Remove.
2707 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2708 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2709 Likewise.
2710 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2711 <add_psymbol>: Likewise.
2712 (standard_psymtab, legacy_psymtab): Likewise.
2713 * mdebugread.c (parse_partial_symbols): Update.
2714 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2715 (handle_psymbol_enumerators): Update.
2716 (new_psymtab): Add partial_symtabs parameter.
2717 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2718 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2719 parameter.
2720 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2721 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2722 Update.
2723 * dbxread.c (read_dbx_symtab): Update.
2724 (start_psymtab): Add partial_symtabs parameter.
2725 (dbx_end_psymtab): Update.
2726 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2727 (ctf_psymtab): Add partial_symtabs parameter.
2728 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2729 Update.
2730 (scan_partial_symbols): Add partial_symtabs parameter.
2731 (scan_partial_symbols, elfctf_build_psymtabs)
2732 (ctf_psymtab_add_enums): Update.
2733
d1eef86d
TT
27342021-03-20 Tom Tromey <tom@tromey.com>
2735
2736 * symfile.c (read_symbols): Use objfile method.
2737 * symfile-debug.c (objfile::require_partial_symbols): New method.
2738 * psymtab.h (require_partial_symbols): Don't declare.
2739 * psymtab.c (require_partial_symbols): Use objfile method. Now
2740 static.
2741 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2742 (psymbol_functions::lookup_symbol)
2743 (psymbol_functions::lookup_global_symbol_language)
2744 (psymbol_functions::find_last_source_symtab)
2745 (psymbol_functions::forget_cached_source_info)
2746 (psymbol_functions::print_stats)
2747 (psymbol_functions::expand_symtabs_for_function)
2748 (psymbol_functions::expand_all_symtabs)
2749 (psymbol_functions::expand_symtabs_with_fullname)
2750 (psymbol_functions::map_symbol_filenames)
2751 (psymbol_functions::map_matching_symbols)
2752 (psymbol_functions::expand_symtabs_matching)
2753 (psymbol_functions::find_compunit_symtab_by_address)
2754 (maintenance_print_psymbols, maintenance_info_psymtabs)
2755 (maintenance_check_psymtabs): Update.
2756 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2757 new method.
2758
eb00e468
TT
27592021-03-20 Tom Tromey <tom@tromey.com>
2760
2761 * xcoffread.c (xcoff_sym_fns): Update.
2762 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2763 * symfile-debug.c (objfile::has_partial_symbols): Use
2764 can_lazily_read_symbols.
2765 (debug_sym_read_psymbols): Remove.
2766 (debug_sym_fns, install_symfile_debug_logging): Update.
2767 * quick-symbol.h (struct quick_symbol_functions)
2768 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2769 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2770 * mipsread.c (ecoff_sym_fns): Update.
2771 * machoread.c (macho_sym_fns): Update.
2772 * elfread.c (struct lazy_dwarf_reader): New.
2773 (elf_symfile_read): Update.
2774 (read_psyms): Now a method of lazy_dwarf_reader.
2775 (elf_sym_fns): Update.
2776 (elf_sym_fns_lazy_psyms): Remove.
2777 * dbxread.c (aout_sym_fns): Update.
2778 * coffread.c (coff_sym_fns): Update.
2779
b29b98cf
TT
27802021-03-20 Tom Tromey <tom@tromey.com>
2781
2782 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2783 (reread_symbols): Move reset_psymtabs call later.
2784 * objfiles.c (objfile::objfile): Don't initialize
2785 partial_symtabs.
2786
17d66340
TT
27872021-03-20 Tom Tromey <tom@tromey.com>
2788
2789 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2790 set_partial_symtabs.
2791 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2792 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2793 parameter.
2794 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2795 parameter.
2796 (psymbol_functions::find_pc_sect_compunit_symtab)
2797 (psymbol_functions::print_stats, psymbol_functions::dump)
2798 (psymbol_functions::has_symbols): Update.
2799 (make_psymbol_functions, dump_psymtab_addrmap): Add
2800 partial_symtabs parameter.
2801 (maintenance_print_psymbols): Update.
2802 (psymbol_functions::expand_symtabs_matching): Update.
2803 * psympriv.h (struct psymbol_functions): Add constructor.
2804 <m_partial_symtabs>: New member.
2805 <set_partial_symtabs>: New method.
2806
84685904
TT
28072021-03-20 Tom Tromey <tom@tromey.com>
2808
2809 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2810 parameter.
2811 (process_psymtab_comp_unit_reader)
2812 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2813 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2814 Reference psymtabs via per_bfd.
2815
79cc99f6
TT
28162021-03-20 Tom Tromey <tom@tromey.com>
2817
2818 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2819 Remove.
2820 (add_address_entry): Remove objfile parameter.
2821 (add_address_entry_worker): Update.
2822 (write_address_map): Replace objfile parameter with per_bfd.
2823 (write_gdbindex, write_psymtabs_to_index): Update.
2824
4829711b
TT
28252021-03-20 Tom Tromey <tom@tromey.com>
2826
2827 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2828 print_bcache parameter.
2829 * symfile-debug.c (objfile::print_stats): Add print_bcache
2830 parameter.
2831 * quick-symbol.h (struct quick_symbol_functions)
2832 <print_stats>: Add print_bcache parameter.
2833 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2834 code to psymtab.c.
2835 (print_objfile_statistics): Move psymtab code to psymtab.c.
2836 * psymtab.c (count_psyms): Move from symmisc.c.
2837 (psymbol_functions::print_stats): Print partial symbol and bcache
2838 statistics. Add print_bcache parameter.
2839 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2840 (struct objfile) <print_stats>: Add print_bcache parameter.
2841 * maint.c (maintenance_print_statistics): Update.
2842
efd7398e
TT
28432021-03-20 Tom Tromey <tom@tromey.com>
2844
2845 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2846 member.
2847 * dwarf2/read.c (create_addrmap_from_index)
2848 (create_addrmap_from_aranges): Set per_bfd addrmap.
2849 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2850 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2851 per_bfd addrmap.
2852 (dwarf2_read_debug_names): Don't set partial_symtabs.
2853 (dwarf2_initialize_objfile): Likewise.
2854
51962708
TT
28552021-03-20 Tom Tromey <tom@tromey.com>
2856
2857 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2858 earlier.
2859
484b1090
TT
28602021-03-20 Tom Tromey <tom@tromey.com>
2861
2862 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2863 (~psymtab_discarder, keep): Update.
2864 <m_objfile>: Remove.
2865 <m_partial_symtabs>: New member.
2866 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2867
7e9c0476
TT
28682021-03-20 Tom Tromey <tom@tromey.com>
2869
2870 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2871 (xcoff_end_psymtab): Update.
2872 (scan_xcoff_symtab): Add partial_symtabs parameter.
2873 (xcoff_initial_scan): Update.
2874 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2875 * mdebugread.c (mdebug_build_psymtabs): Update.
2876 (parse_partial_symbols): Add partial_symtabs parameter.
2877 * dbxread.c (dbx_symfile_read): Update.
2878 (read_dbx_symtab): Add partial_symtabs parameter.
2879 (read_dbx_symtab): Update.
2880 (dbx_end_psymtab): Add partial_symtabs parameter.
2881
75336a5a
TT
28822021-03-20 Tom Tromey <tom@tromey.com>
2883
2884 * quick-symbol.h (struct quick_symbol_functions)
2885 <relocated>: New method.
2886 * psymtab.h (struct psymbol_functions) <relocated>: New
2887 method.
2888 <fill_psymbol_map>: Declare method.
2889 <m_psymbol_map>: New member.
2890 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2891 (psymbol_functions::find_compunit_symtab_by_address): Update.
2892 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2893 (struct objfile) <psymbol_map>: Remove.
2894 * objfiles.c (objfile_relocate1): Update.
2895
39298a5d
TT
28962021-03-20 Tom Tromey <tom@tromey.com>
2897
2898 * psympriv.h (struct psymbol_functions): New.
2899 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2900 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2901 (objfile::lookup_global_symbol_language): Update.
2902 * quick-symbol.h (struct quick_symbol_functions): Convert function
2903 pointers to methods. Add virtual destructor.
2904 (quick_symbol_functions_up): New typedef.
2905 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2906 (dwarf2_debug_names_functions): Don't declare.
2907 (make_psymbol_functions): Declare.
2908 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2909 (psymbol_functions::find_pc_sect_compunit_symtab)
2910 (psymbol_functions::lookup_symbol)
2911 (psymbol_functions::lookup_global_symbol_language)
2912 (psymbol_functions::find_last_source_symtab)
2913 (psymbol_functions::forget_cached_source_info)
2914 (psymbol_functions::print_stats, psymbol_functions::dump)
2915 (psymbol_functions::expand_symtabs_for_function)
2916 (psymbol_functions::expand_all_symtabs)
2917 (psymbol_functions::expand_symtabs_with_fullname)
2918 (psymbol_functions::map_symbol_filenames)
2919 (psymbol_functions::map_matching_symbols)
2920 (psymbol_functions::expand_symtabs_matching)
2921 (psymbol_functions::has_symbols)
2922 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2923 (psym_functions): Remove.
2924 (make_psymbol_functions): New function.
2925 * objfiles.h (struct objfile) <qf>: Change type.
2926 * elfread.c (elf_symfile_read): Update.
2927 * dwarf2/read.c (struct dwarf2_base_index_functions)
2928 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2929 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2930 (dwarf2_base_index_functions::find_last_source_symtab)
2931 (dwarf2_base_index_functions::forget_cached_source_info)
2932 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2933 (dwarf2_gdb_index::lookup_symbol)
2934 (dwarf2_base_index_functions::print_stats)
2935 (dwarf2_gdb_index::dump)
2936 (dwarf2_gdb_index::expand_symtabs_for_function)
2937 (dwarf2_base_index_functions::expand_all_symtabs)
2938 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2939 Rename.
2940 (dwarf2_gdb_index::map_matching_symbols): New method.
2941 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2942 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2943 (dwarf2_base_index_functions::map_symbol_filenames)
2944 (dwarf2_base_index_functions::has_symbols): Rename.
2945 (dwarf2_gdb_index_functions): Remove.
2946 (dwarf2_debug_names_index::lookup_symbol)
2947 (dwarf2_debug_names_index::dump)
2948 (dwarf2_debug_names_index::expand_symtabs_for_function)
2949 (dwarf2_debug_names_index::map_matching_symbols)
2950 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2951 (dwarf2_debug_names_functions): Remove.
2952 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2953 Declare.
2954
5c3f1e5b
TT
29552021-03-20 Tom Tromey <tom@tromey.com>
2956
2957 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2958 null.
2959 * xcoffread.c (xcoff_sym_fns): Update.
2960 * symfile.h (struct sym_fns) <qf>: Remove.
2961 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2962 * symfile-debug.c (objfile::has_partial_symbols)
2963 (objfile::find_last_source_symtab)
2964 (objfile::forget_cached_source_info)
2965 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2966 (objfile::print_stats, objfile::dump)
2967 (objfile::expand_symtabs_for_function)
2968 (objfile::expand_all_symtabs)
2969 (objfile::expand_symtabs_with_fullname)
2970 (objfile::map_matching_symbols)
2971 (objfile::expand_symtabs_matching)
2972 (objfile::find_pc_sect_compunit_symtab)
2973 (objfile::map_symbol_filenames)
2974 (objfile::find_compunit_symtab_by_address)
2975 (objfile::lookup_global_symbol_language, debug_sym_fns)
2976 (install_symfile_debug_logging): Update.
2977 * objfiles.h (struct objfile) <qf>: New member.
2978 * mipsread.c (ecoff_sym_fns): Update.
2979 * machoread.c (macho_sym_fns): Update.
2980 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2981 Don't declare.
2982 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2983 * dbxread.c (aout_sym_fns): Update.
2984 * coffread.c (coff_sym_fns): Update.
2985
9b99dcc8
TT
29862021-03-20 Tom Tromey <tom@tromey.com>
2987
2988 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2989 (expand_symtabs_file_matcher_ftype)
2990 (expand_symtabs_symbol_matcher_ftype)
2991 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2992 Move to quick-symbol.h.
2993 * quick-symbol.h: New file.
2994
4d080b46
TT
29952021-03-20 Tom Tromey <tom@tromey.com>
2996
2997 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2998 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2999 (basic_lookup_transparent_type_quick)
3000 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3001 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3002 Update.
3003 * symmisc.c (print_objfile_statistics, dump_objfile)
3004 (maintenance_expand_symtabs): Update.
3005 * symfile.c (symbol_file_add_with_addrs)
3006 (expand_symtabs_matching, map_symbol_filenames): Update.
3007 * symfile-debug.c (objfile::has_partial_symbols)
3008 (objfile::find_last_source_symtab)
3009 (objfile::forget_cached_source_info)
3010 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3011 (objfile::print_stats, objfile::dump)
3012 (objfile::expand_symtabs_for_function)
3013 (objfile::expand_all_symtabs)
3014 (objfile::expand_symtabs_with_fullname)
3015 (objfile::map_matching_symbols)
3016 (objfile::expand_symtabs_matching)
3017 (objfile::find_pc_sect_compunit_symtab)
3018 (objfile::map_symbol_filenames)
3019 (objfile::find_compunit_symtab_by_address)
3020 (objfile::lookup_global_symbol_language): New methods.
3021 (debug_sym_quick_functions): Remove.
3022 (debug_sym_fns, install_symfile_debug_logging): Update.
3023 * source.c (forget_cached_source_info_for_objfile)
3024 (select_source_symtab): Update.
3025 * objfiles.h (struct objfile): Add methods corresponding to
3026 quick_symbol_functions.
3027 * objfiles.c (objfile::has_partial_symbols): Move to
3028 symfile-debug.c.
3029 * linespec.c (iterate_over_all_matching_symtabs): Update.
3030 * cp-support.c (add_symbol_overload_list_qualified): Update.
3031 * ada-lang.c (add_nonlocal_symbols): Update.
3032
fae2120b
TT
30332021-03-20 Tom Tromey <tom@tromey.com>
3034
3035 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3036 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3037 bool.
3038 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3039 * psymtab.c (psym_has_symbols): Return bool.
3040 * objfiles.c (objfile::has_partial_symbols): Return bool.
3041 * dwarf2/read.c (dw2_has_symbols): Return bool.
3042
a8ad4f3c
TT
30432021-03-20 Tom Tromey <tom@tromey.com>
3044
3045 * symfile.c (read_symbols): Update.
3046 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3047 (objfile_has_partial_symbols): Don't declare.
3048 * objfiles.c (objfile::has_partial_symbols): Rename from
3049 objfile_has_partial_symbols.
3050 (objfile_has_symbols, have_partial_symbols): Update.
3051 * elfread.c (elf_symfile_read): Update.
3052 * dwarf2/read.c (dwarf2_has_info): Update.
3053 * coffread.c (coff_symfile_read): Update.
3054
70182375
TT
30552021-03-20 Tom Tromey <tom@tromey.com>
3056
3057 * coffread.c: Include dwarf2/public.h.
3058 * dwarf2/frame.c: Include dwarf2/public.h.
3059 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3060 * dwarf2/public.h: New file.
3061 * dwarf2/read.c: Include dwarf2/public.h.
3062 * elfread.c: Include dwarf2/public.h.
3063 * machoread.c: Include dwarf2/public.h.
3064 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3065 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3066 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3067 * xcoffread.c: Include dwarf2/public.h.
3068
18038e63
TT
30692021-03-20 Tom Tromey <tom@tromey.com>
3070
3071 * symfile.h (enum dwarf2_section_enum)
3072 (dwarf2_get_section_info): Move to dwarf2/read.h.
3073 * dwarf2/read.h (enum dwarf2_section_enum)
3074 (dwarf2_get_section_info): Move from symfile.h.
3075
219f56b4
PA
30762021-03-19 Pedro Alves <pedro@palves.net>
3077
3078 * thread.c (any_thread_of_inferior): Check if there's a selected
3079 thread before calling inferior_thread().
3080
15310fd4
TT
30812021-03-18 Tom Tromey <tromey@adacore.com>
3082
3083 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3084 get_DW_UT_name.
3085 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3086 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3087
763b8efd
AB
30882021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3089
3090 * python/py-param.c (get_set_value): Update header comment.
3091
f058c521
SM
30922021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3093
3094 * infrun.c (check_multi_target_resumption): Remove argument to
3095 all_non_exited_inferiors.
3096
383228bc
CB
30972021-03-16 Christian Biesinger <cbiesinger@google.com>
3098
3099 * windows-nat.c (windows_init_thread_list): Add message to
3100 debug log.
3101
7807d76a
AB
31022021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3103
3104 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3105 well as PyLong_Check for Python 2.
3106
675da9a5
TT
31072021-03-15 Tom Tromey <tromey@adacore.com>
3108
3109 PR build/27579:
3110 * rust-exp.y (maker_map): Use gdb::hash_enum.
3111 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3112
4800761a
SM
31132021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3114
3115 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3116 end of debug print.
3117
eb5dd737
SM
31182021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3119
3120 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3121 parameter, adjust caller.
3122
6813ceb0
TT
31232021-03-15 Tom Tromey <tromey@adacore.com>
3124
3125 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3126
3b5c4de0
TT
31272021-03-15 Tom Tromey <tromey@adacore.com>
3128
3129 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3130 ada_ensure_varsize_limit.
3131
c04da66c
TT
31322021-03-15 Tom Tromey <tromey@adacore.com>
3133
3134 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3135 fixed-point.
3136 * ada-exp.y (maybe_overload): New function.
3137 (ada_wrap_overload): New function.
3138 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3139 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3140 (or_else_exp, xor_exp, primary): Update.
3141
9863c3b5
TT
31422021-03-15 Tom Tromey <tromey@adacore.com>
3143
3144 PR ada/27545:
3145 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3146 call for tagged type.
3147
1ac74522
TT
31482021-03-15 Tom Tromey <tromey@adacore.com>
3149
3150 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3151 assignment.
3152
207582c0
TT
31532021-03-15 Tom Tromey <tromey@adacore.com>
3154
3155 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3156 container.
3157 (ada_assign_operation::evaluate): Update.
3158 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3159 Change return type.
3160
8d624a9d
FW
31612021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3162
3163 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3164
ba6a0ef3
AB
31652021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3166
3167 * python/python.c (gdbpy_source_objfile_script): Use
3168 make_scoped_restore to restore gdbpy_current_objfile.
3169 (gdbpy_execute_objfile_script): Likewise.
3170
7c290a04
TT
31712021-03-14 Tom Tromey <tom@tromey.com>
3172
3173 * dwarf2/read.c (read_attribute_value): Use cu_header
3174 consistently.
3175
0280fdcc
TT
31762021-03-14 Tom Tromey <tom@tromey.com>
3177
3178 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3179 (peek_die_abbrev): Use reader.abfd.
3180
a9f172c6
TT
31812021-03-14 Tom Tromey <tom@tromey.com>
3182
3183 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3184 m_header_read_in.
3185
7c32eebb
TT
31862021-03-13 Tom Tromey <tom@tromey.com>
3187
3188 * dwarf2/read.c (struct partial_die_info): Update.
3189 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3190 (load_partial_dies, partial_die_info::partial_die_info): Update.
3191 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3192
27012aba
TT
31932021-03-13 Tom Tromey <tom@tromey.com>
3194
3195 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3196
fece451c
CB
31972021-03-12 Christian Biesinger <cbiesinger@google.com>
3198
3199 PR threads/27239
3200 * cp-support.c: Use scoped_segv_handler_restore.
3201 * event-top.c (thread_local_segv_handler): Made static.
3202 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3203 New function.
3204 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3205 function.
3206 * event-top.h (class scoped_segv_handler_restore): New class.
3207 (thread_local_segv_handler): Removed.
3208
7056f312
TT
32092021-03-10 Tom Tromey <tromey@adacore.com>
3210
3211 * parser-defs.h (parser_state): Change completion to bool.
3212 <parse_completion>: Likewise.
3213 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3214 (ada_resolve_variable, ada_resolve_function): Update.
3215 * ada-lang.c (ada_find_operator_symbol): Change
3216 parse_completion to bool.
3217 (ada_resolve_funcall, ada_resolve_variable)
3218 (ada_resolve_function): Likewise.
3219
ccdc02ed
TT
32202021-03-09 Tom Tromey <tromey@adacore.com>
3221
3222 * eval.c (operation::evaluate_funcall): Use function formal
3223 parameter types when evaluating.
3224
fbb1aace
AB
32252021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3226
3227 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3228 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3229 and owner to m_owner.
3230
611aa09d
FW
32312021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3232
3233 * f-exp.h (eval_op_f_loc): Declare.
3234 (expr::fortran_loc_operation): New typedef.
3235 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3236 UNOP_INTRINSIC.
3237 (f77_keywords): Add LOC keyword.
3238 * f-lang.c (eval_op_f_loc): New function.
3239 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3240
eef32f59
AB
32412021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * f-exp.h (eval_op_f_array_shape): Declare.
3244 (fortran_array_shape_operation): New type.
3245 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3246 UNOP_INTRINSIC.
3247 (f77_keywords): Add "shape" keyword.
3248 * f-lang.c (fortran_array_shape): New function.
3249 (eval_op_f_array_shape): New function.
3250 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3251
7ba155b3
AB
32522021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3255 of this function.
3256 (expr::fortran_array_size_1arg): New type.
3257 (expr::fortran_array_size_2arg): Likewise.
3258 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3259 UNOP_OR_BINOP_INTRINSIC.
3260 (f77_keywords): Add "size" keyword.
3261 * f-lang.c (fortran_array_size): New function.
3262 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3263 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3264
e14816a8
AB
32652021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3266
3267 * f-exp.h (eval_op_f_rank): Declare.
3268 (expr::fortran_rank_operation): New typedef.
3269 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3270 UNOP_INTRINSIC.
3271 (f77_keywords): Add "rank" keyword.
3272 * f-lang.c (eval_op_f_rank): New function.
3273 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3274
3dd93bf8
TT
32752021-03-08 Tom Tromey <tom@tromey.com>
3276
3277 * printcmd.c (set_command): Remove null check.
3278 * value.c (init_if_undefined_command): Remove null check.
3279
9c79936b
TT
32802021-03-08 Tom Tromey <tom@tromey.com>
3281
3282 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3283 Update.
3284 * p-exp.y (variable): Update.
3285 * go-exp.y (variable): Update.
3286 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3287 Remove overload for objfile.
3288 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3289 parameter.
3290 (check_objfile): Likewise.
3291 (dump_for_expression): Likewise. Remove overload for objfile.
3292 (class var_msym_value_operation): Use bound_minimal_symbol.
3293 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3294 parameter.
3295 (var_msym_value_operation::evaluate_for_address)
3296 (var_msym_value_operation::evaluate_for_sizeof)
3297 (var_msym_value_operation::evaluate_for_cast): Update.
3298 * d-exp.y (PrimaryExpression): Update.
3299 * c-exp.y (variable): Update.
3300 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3301 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3302 Update.
3303 * ada-exp.y (write_var_or_type): Update.
3304
40d07d07
TT
33052021-03-08 Tom Tromey <tom@tromey.com>
3306
3307 * parser-defs.h (exp_uses_objfile): Return bool.
3308 * parse.c (exp_uses_objfile): Return bool.
3309
0b2b0b82
TT
33102021-03-08 Tom Tromey <tom@tromey.com>
3311
3312 * value.h (eval_skip_value): Don't declare.
3313 * opencl-lang.c (eval_opencl_assign): Update.
3314 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3315 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3316 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3317 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3318 * expop.h (typeof_operation::evaluate)
3319 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3320 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3321 (cxx_cast_operation::evaluate): Update.
3322 * eval.c (eval_skip_value): Remove.
3323 (eval_op_scope, eval_op_var_entry_value)
3324 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3325 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3326 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3327 (eval_op_binary, eval_op_subscript, eval_op_equal)
3328 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3329 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3330 (eval_op_complement, eval_op_lognot, eval_op_ind)
3331 (eval_op_memval, eval_op_preinc, eval_op_predec)
3332 (eval_op_postinc, eval_op_postdec, eval_op_type)
3333 (eval_binop_assign_modify, eval_op_objc_msgcall)
3334 (eval_multi_subscript, logical_and_operation::evaluate)
3335 (logical_or_operation::evaluate, array_operation::evaluate)
3336 (operation::evaluate_for_cast)
3337 (var_msym_value_operation::evaluate_for_cast)
3338 (var_value_operation::evaluate_for_cast): Update.
3339 * c-lang.c (c_string_operation::evaluate): Update.
3340 * c-exp.h (objc_nsstring_operation::evaluate)
3341 (objc_selector_operation::evaluate): Update.
3342 * ada-lang.c (ada_assign_operation::evaluate)
3343 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3344 (ada_atr_size): Update.
3345
96db551d
TT
33462021-03-08 Tom Tromey <tom@tromey.com>
3347
3348 * eval.c: Merge "namespace" scopes.
3349
ce284361
TT
33502021-03-08 Tom Tromey <tom@tromey.com>
3351
3352 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3353 <release>: Inline.
3354 * parse.c (expr_builder::expr_builder, expr_builder::release):
3355 Remove.
3356
b9d06571
TT
33572021-03-08 Tom Tromey <tom@tromey.com>
3358
3359 * parse.c (expression::expression, expression::~expression):
3360 Remove.
3361 * expression.h (struct expression): Inline constructor. Remove
3362 destructor.
3363
79ab486e
TT
33642021-03-08 Tom Tromey <tom@tromey.com>
3365
3366 * std-operator.def (BINOP_END): Remove.
3367 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3368 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3369 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3370 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3371 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3372 BINOP_END.
3373
48fa6f23
TT
33742021-03-08 Tom Tromey <tom@tromey.com>
3375
3376 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3377
43f542e3
TT
33782021-03-08 Tom Tromey <tom@tromey.com>
3379
3380 * std-operator.def (OP_EXTENDED0): Remove.
3381
5d9ba982
TT
33822021-03-08 Tom Tromey <tom@tromey.com>
3383
3384 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3385 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3386 Remove.
3387
d357570d
TT
33882021-03-08 Tom Tromey <tom@tromey.com>
3389
3390 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3391 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3392
0922dc84
TT
33932021-03-08 Tom Tromey <tom@tromey.com>
3394
3395 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3396 * ada-lang.c (ada_binop_minmax): Update.
3397 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3398 Use BINOP_MIN and BINOP_MAX.
3399
1eaebe02
TT
34002021-03-08 Tom Tromey <tom@tromey.com>
3401
3402 * value.h (evaluate_subexp_with_coercion): Don't declare.
3403 * parse.c (exp_descriptor_standard): Remove.
3404 (expr_builder::expr_builder, expr_builder::release): Update.
3405 (expression::expression): Remove size_t parameter.
3406 (expression::~expression): Simplify.
3407 (expression::resize): Remove.
3408 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3409 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3410 (write_exp_elt_longcst, write_exp_elt_floatcst)
3411 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3412 (write_exp_string_vector, write_exp_bitstring): Remove.
3413 * p-lang.h (class pascal_language) <opcode_print_table,
3414 op_print_tab>: Remove.
3415 * p-lang.c (pascal_language::op_print_tab): Remove.
3416 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3417 Remove.
3418 * objc-lang.c (objc_op_print_tab): Remove.
3419 (class objc_language) <opcode_print_table>: Remove.
3420 * m2-lang.h (class m2_language) <opcode_print_table,
3421 op_print_tab>: Remove.
3422 * m2-lang.c (m2_language::op_print_tab): Remove.
3423 * language.h (struct language_defn) <post_parser, expression_ops,
3424 opcode_print_table>: Remove.
3425 * language.c (language_defn::expression_ops)
3426 (auto_or_unknown_language::opcode_print_table): Remove.
3427 * go-lang.h (class go_language) <opcode_print_table,
3428 op_print_tab>: Remove.
3429 * go-lang.c (go_language::op_print_tab): Remove.
3430 * f-lang.h (class f_language) <opcode_print_table>: Remove
3431 <op_print_tab>: Remove.
3432 * f-lang.c (f_language::op_print_tab): Remove.
3433 * expression.h (union exp_element): Remove.
3434 (struct expression): Remove size_t parameter from constructor.
3435 <resize>: Remove.
3436 <first_opcode>: Update.
3437 <nelts, elts>: Remove.
3438 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3439 (evaluate_subexp_standard, print_expression, op_string)
3440 (dump_raw_expression): Don't declare.
3441 * expprint.c (print_expression, print_subexp)
3442 (print_subexp_funcall, print_subexp_standard, op_string)
3443 (dump_raw_expression, dump_subexp, dump_subexp_body)
3444 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3445 (dump_prefix_expression): Update.
3446 * eval.c (evaluate_subexp): Remove.
3447 (evaluate_expression, evaluate_type): Update.
3448 (evaluate_subexpression_type): Remove.
3449 (fetch_subexp_value): Remove "pc" parameter. Update.
3450 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3451 (evaluate_subexp_standard, evaluate_subexp_for_address)
3452 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3453 (evaluate_subexp_for_cast): Remove.
3454 (parse_and_eval_type): Update.
3455 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3456 * d-lang.c (d_op_print_tab): Remove.
3457 (class d_language) <opcode_print_table>: Remove.
3458 * c-lang.h (c_op_print_tab): Don't declare.
3459 * c-lang.c (c_op_print_tab): Remove.
3460 (class c_language, class cplus_language, class asm_language, class
3461 minimal_language) <opcode_print_table>: Remove.
3462 * breakpoint.c (update_watchpoint, watchpoint_check)
3463 (watchpoint_exp_is_const, watch_command_1): Update.
3464 * ax-gdb.h (union exp_element): Don't declare.
3465 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3466 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3467 (gen_expr_binop_rest): Remove.
3468 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3469 * ada-lang.c (ada_op_print_tab): Remove.
3470 (class ada_language) <post_parser, opcode_print_table>: Remove.
3471
f2a98603
TT
34722021-03-08 Tom Tromey <tom@tromey.com>
3473
3474 * go-lang.c (go_language::expression_ops): Don't declare.
3475 * go-lang.h (class go_language) <expression_ops>: Remove.
3476 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3477 Remove.
3478 (class opencl_language) <expression_ops>: Remove.
3479 * d-lang.c (class d_language) <expression_ops>: Remove.
3480 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3481 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3482 (class c_language, class cplus_language, class asm_language)
3483 (class minimal_language) <expression_ops>: Remove.
3484
d3c54a1c
TT
34852021-03-08 Tom Tromey <tom@tromey.com>
3486
3487 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3488 (evaluate_subexp_type, assign_aggregate)
3489 (aggregate_assign_positional, aggregate_assign_from_choices)
3490 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3491 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3492 (ada_operator_check, ada_forward_operator_length)
3493 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3494 Remove.
3495 (post_parser): Update.
3496 (class ada_language) <expresssion_ops>: Remove.
3497
5871f0a3
TT
34982021-03-08 Tom Tromey <tom@tromey.com>
3499
3500 * m2-lang.h (class m2_language) <expresssion_ops,
3501 exp_descriptor_modula2>: Remove.
3502 * m2-lang.c (evaluate_subexp_modula2)
3503 (m2_language::exp_descriptor_modula2): Remove.
3504
a99be8c1
TT
35052021-03-08 Tom Tromey <tom@tromey.com>
3506
3507 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3508 <exp_descriptor_tab>: Remove.
3509 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3510 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3511 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3512 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3513 Remove.
3514
aa1da9ed
TT
35152021-03-08 Tom Tromey <tom@tromey.com>
3516
3517 * rust-lang.h (class rust_language) <expression_ops,
3518 exp_descriptor_tab>: Remove.
3519 * rust-lang.c (rust_evaluate_funcall): Remove.
3520 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3521 EVAL_SKIP.
3522 (rust_evaluate_subexp): Remove.
3523 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3524 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3525 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3526
08a057e6
TT
35272021-03-08 Tom Tromey <tom@tromey.com>
3528
3529 * ada-exp.y: Create operations.
3530 (empty_stoken): Remove.
3531 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3532 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3533 (components): New global.
3534 (push_component, choice_component, pop_component, pop_components):
3535 New functions.
3536 (associations): New global
3537 (push_association, pop_association, pop_associations): New
3538 functions.
3539 (ada_parse): Update.
3540 (write_var_from_sym, write_int): Create operations.
3541 (write_exp_op_with_string): Remove.
3542 (write_object_renaming, write_selectors, write_ambiguous_var)
3543 (write_var_or_type, write_name_assoc): Create operations.
3544 * ada-lang.h (ada_index_type): Declare.
3545 * ada-lang.c (ada_index_type): No longer static.
3546
d308ba78
TT
35472021-03-08 Tom Tromey <tom@tromey.com>
3548
3549 * f-exp.y: Create operations.
3550 (f_language::parser): Update.
3551
f1b8ceef
TT
35522021-03-08 Tom Tromey <tom@tromey.com>
3553
3554 * m2-exp.y: Create operations.
3555 (m2_language::parser): Update.
3556
3163898e
TT
35572021-03-08 Tom Tromey <tom@tromey.com>
3558
3559 * p-exp.y: Create operations.
3560 (pascal_language::parser): Update.
3561
9412fdcc
TT
35622021-03-08 Tom Tromey <tom@tromey.com>
3563
3564 * d-exp.y: Create operations.
3565 (d_parse): Update.
3566
bb4e0574
TT
35672021-03-08 Tom Tromey <tom@tromey.com>
3568
3569 * go-exp.y: Create operations.
3570 (go_language::parser): Update.
3571
d182f279
TT
35722021-03-08 Tom Tromey <tom@tromey.com>
3573
3574 * objc-lang.c (end_msglist): Create operations.
3575 * c-exp.y: Change parser to create operations.
3576 (write_destructor_name): Remove.
3577 (c_parse): Update.
3578
c1299a23
TT
35792021-03-08 Tom Tromey <tom@tromey.com>
3580
3581 * rust-exp.y: Create operations.
3582 (rust_parser::convert_params_to_expression): Change return type.
3583 (binop_maker_ftype): New typedef.
3584 (maker_map): New global.
3585 (rust_parser::convert_ast_to_expression): Change return type.
3586 (rust_language::parser): Update.
3587 (_initialize_rust_exp): Initialize maker_map.
3588
4c5e7a93
TT
35892021-03-08 Tom Tromey <tom@tromey.com>
3590
3591 * stap-probe.c (binop_maker_ftype): New typedef.
3592 (stap_maker_map): New global.
3593 (stap_make_binop): New function.
3594 (stap_parse_register_operand): Return operation_up.
3595 (stap_parse_single_operand, stap_parse_argument_conditionally)
3596 (stap_parse_argument_1): Likewise.
3597 (stap_parse_argument): Create operations.
3598 (stap_probe::parse_arguments): Update.
3599 (_initialize_stap_probe): Initialize stap_maker_map.
3600 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3601 type.
3602 * i386-tdep.h (i386_stap_parse_special_token): Change return
3603 type.
3604 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3605 (i386_stap_parse_special_token_three_arg_disp)
3606 (i386_stap_parse_special_token): Change return type.
3607 * gdbarch.sh (stap_parse_special_token): Change return type.
3608 * gdbarch.c: Rebuild.
3609 * gdbarch.h: Rebuild.
3610 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3611 type.
3612 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3613 return type.
3614
482ddd69
TT
36152021-03-08 Tom Tromey <tom@tromey.com>
3616
3617 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3618 * gdbarch.h: Rebuild.
3619 * gdbarch.c: Rebuild.
3620 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3621 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3622 return type.
3623 (amd64_dtrace_parse_probe_argument): Update.
3624
8227d9e2
TT
36252021-03-08 Tom Tromey <tom@tromey.com>
3626
3627 * parser-defs.h (struct parser_state) <push, push_new,
3628 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3629 wrap2>: New methods.
3630 <m_operations>: New member.
3631 * parse.c (parser_state::push_c_string)
3632 (parser_state::push_symbol, parser_state::push_dollar): New
3633 methods.
3634
4933522d
TT
36352021-03-08 Tom Tromey <tom@tromey.com>
3636
3637 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3638 New member.
3639 (struct parser_state) <mark_struct_expression>: New method.
3640 * parse.c (parser_state::mark_struct_expression): Update assert.
3641 (parser_state::mark_struct_expression): New method.
3642 (parser_state::mark_completion_tag): Update assert.
3643 (parse_expression_for_completion): Handle expout_last_op.
3644
413403fc
TT
36452021-03-08 Tom Tromey <tom@tromey.com>
3646
3647 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3648 now in superclass.
3649 * value.h (fetch_subexp_value): Add "op" parameter.
3650 * value.c (init_if_undefined_command): Update.
3651 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3652 * stap-probe.c (stap_probe::compile_to_ax): Update.
3653 * printcmd.c (set_command): Update.
3654 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3655 Update.
3656 * parser-defs.h (struct expr_builder) <set_operation>: New
3657 method.
3658 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3659 * expression.h (struct expression) <first_opcode>: Update.
3660 <op>: New member.
3661 * expprint.c (dump_raw_expression, dump_prefix_expression):
3662 Update.
3663 * expop.h (class var_value_operation) <get_symbol>: New method.
3664 (class register_operation) <get_name>: New method.
3665 (class equal_operation): No longer a typedef, now a subclass.
3666 (class unop_memval_operation) <get_type>: New method.
3667 (class assign_operation) <get_lhs>: New method.
3668 (class unop_cast_operation) <get_type>: New method.
3669 * eval.c (evaluate_expression, evaluate_type)
3670 (evaluate_subexpression_type): Update.
3671 (fetch_subexp_value): Add "op" parameter.
3672 (parse_and_eval_type): Update.
3673 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3674 * breakpoint.c (update_watchpoint, watchpoint_check)
3675 (watchpoint_exp_is_const, watch_command_1): Update.
3676 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3677 Update.
3678
b0f9164c
TT
36792021-03-08 Tom Tromey <tom@tromey.com>
3680
3681 * ada-lang.c (ada_value_binop): Do not use op_string.
3682
a88c4354
TT
36832021-03-08 Tom Tromey <tom@tromey.com>
3684
3685 * expprint.c (dump_for_expression): New overload.
3686 * expop.h (check_objfile, dump_for_expression): Declare new
3687 overloads.
3688 * ada-lang.c (check_objfile): New overload.
3689 (assign_component, ada_aggregate_component::uses_objfile)
3690 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3691 (ada_aggregate_component::assign_aggregate)
3692 (ada_positional_component::uses_objfile)
3693 (ada_positional_component::dump, ada_positional_component::assign)
3694 (ada_discrete_range_association::uses_objfile)
3695 (ada_discrete_range_association::dump)
3696 (ada_discrete_range_association::assign)
3697 (ada_name_association::uses_objfile, ada_name_association::dump)
3698 (ada_name_association::assign)
3699 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3700 (ada_choices_component::assign)
3701 (ada_others_component::uses_objfile, ada_others_component::dump)
3702 (ada_others_component::assign, ada_assign_operation::evaluate):
3703 New methods.
3704 * ada-exp.h (ada_string_operation) <get_name>: New method.
3705 (class ada_assign_operation): New.
3706 (class ada_component): New.
3707 (ada_component_up): New typedef.
3708 (class ada_aggregate_operation, class ada_aggregate_component)
3709 (class ada_positional_component, class ada_others_component)
3710 (class ada_association): New.
3711 (ada_association_up): New typedef.
3712 (class ada_choices_component)
3713 (class ada_discrete_range_association)
3714 (class ada_name_association): New.
3715
d8a4ed8a
TT
37162021-03-08 Tom Tromey <tom@tromey.com>
3717
3718 * ada-lang.c (ada_var_value_operation::resolve)
3719 (ada_funcall_operation::resolve)
3720 (ada_ternop_slice_operation::resolve): New methods.
3721 * ada-exp.h (struct ada_resolvable): New.
3722 (class ada_var_value_operation): Derive from ada_resolvable.
3723 <get_block, resolve>: New methods.
3724 (class ada_funcall_operation): Derive from ada_resolvable.
3725 <resolve>: New method.
3726 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3727 <resolve>: New method.
3728
efe3af2f
TT
37292021-03-08 Tom Tromey <tom@tromey.com>
3730
3731 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3732 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3733 method.
3734 (class ada_funcall_operation): New.
3735
ebc06ad8
TT
37362021-03-08 Tom Tromey <tom@tromey.com>
3737
3738 * ada-lang.c (ada_structop_operation::evaluate): New method.
3739 * ada-exp.h (class ada_structop_operation): New.
3740
e8c33fa1
TT
37412021-03-08 Tom Tromey <tom@tromey.com>
3742
3743 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3744 * ada-exp.h (class ada_unop_ind_operation): New.
3745
065ec826
TT
37462021-03-08 Tom Tromey <tom@tromey.com>
3747
3748 * ada-lang.c (ada_binop_exp): No longer static.
3749 * ada-exp.h (ada_binop_exp_operation): New typedef.
3750
9e99f48f
TT
37512021-03-08 Tom Tromey <tom@tromey.com>
3752
3753 * ada-lang.c (ada_val_atr): No longer static.
3754 (ada_atr_val_operation::evaluate): New method.
3755 * ada-exp.h (class ada_atr_val_operation): New.
3756
7631cf6c
TT
37572021-03-08 Tom Tromey <tom@tromey.com>
3758
3759 * ada-lang.c (ada_pos_atr): No longer static.
3760 * ada-exp.h (ada_pos_operation): New typedef.
3761
7992accc
TT
37622021-03-08 Tom Tromey <tom@tromey.com>
3763
3764 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3765 parameters.
3766 (ada_evaluate_subexp): Use it.
3767
6ad3b8bf
TT
37682021-03-08 Tom Tromey <tom@tromey.com>
3769
3770 * ada-lang.c (ada_binop_minmax): No longer static.
3771 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3772 New typedefs.
3773
3f4a0053
TT
37742021-03-08 Tom Tromey <tom@tromey.com>
3775
3776 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3777 New method.
3778 * ada-exp.h (class ada_var_msym_value_operation): New.
3779
99a3b1e7
TT
37802021-03-08 Tom Tromey <tom@tromey.com>
3781
3782 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3783 (ada_var_value_operation::evaluate): New methods.
3784 * ada-exp.h (class ada_var_value_operation): New.
3785
60fa02ca
TT
37862021-03-08 Tom Tromey <tom@tromey.com>
3787
3788 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3789 * ada-exp.h (class ada_unop_atr_operation): New.
3790
82c3886e
TT
37912021-03-08 Tom Tromey <tom@tromey.com>
3792
3793 * ada-lang.c (ada_binop_in_bounds): No longer static.
3794 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3795
1b1ebfab
TT
37962021-03-08 Tom Tromey <tom@tromey.com>
3797
3798 * ada-lang.c (ada_ternop_slice): No longer static.
3799 * ada-exp.h (class ada_ternop_slice_operation): New.
3800
039e4b76
TT
38012021-03-08 Tom Tromey <tom@tromey.com>
3802
3803 * ada-exp.h (ada_bitwise_operation): New template class.
3804 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3805 (ada_bitwise_xor_operation): New typedefs.
3806
6e8fb7b7
TT
38072021-03-08 Tom Tromey <tom@tromey.com>
3808
3809 * ada-lang.c (ada_equal_binop): No longer static.
3810 * ada-exp.h (class ada_binop_equal_operation): New.
3811
d9e7db06
TT
38122021-03-08 Tom Tromey <tom@tromey.com>
3813
3814 * ada-lang.c (ada_mult_binop): No longer static.
3815 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3816 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3817
73796c73
TT
38182021-03-08 Tom Tromey <tom@tromey.com>
3819
3820 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3821 * ada-exp.h (class ada_binop_addsub_operation): New.
3822
cd9a3148
TT
38232021-03-08 Tom Tromey <tom@tromey.com>
3824
3825 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3826 (ada_resolve_variable): Declare.
3827 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3828 (ada_resolve_variable): New functions.
3829 (resolve_subexp): Update.
3830
cf12b17f
TT
38312021-03-08 Tom Tromey <tom@tromey.com>
3832
3833 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3834 method.
3835 * c-exp.h (class opencl_ternop_cond_operation): New.
3836
944fd3b8
TT
38372021-03-08 Tom Tromey <tom@tromey.com>
3838
3839 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3840 method.
3841 * c-exp.h (class opencl_logical_binop_operation): New.
3842
33b79214
TT
38432021-03-08 Tom Tromey <tom@tromey.com>
3844
3845 * opencl-lang.c (opencl_structop_operation::evaluate): New
3846 method.
3847 * c-exp.h (class opencl_structop_operation): New.
3848
2492ba36
TT
38492021-03-08 Tom Tromey <tom@tromey.com>
3850
3851 * opencl-lang.c (opencl_logical_not): No longer static. Change
3852 parameters.
3853 (evaluate_subexp_opencl): Update.
3854 * c-exp.h (opencl_notequal_operation): New typedef.
3855
a88c3c8d
TT
38562021-03-08 Tom Tromey <tom@tromey.com>
3857
3858 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3859 static. Change parameters.
3860 (eval_opencl_assign): No longer static. Add "op" parameter.
3861 (evaluate_subexp_opencl): Update.
3862 * c-exp.h (opencl_binop_operation): New template class.
3863 (opencl_assign_operation, opencl_equal_operation)
3864 (opencl_notequal_operation, opencl_less_operation)
3865 (opencl_gtr_operation, opencl_geq_operation)
3866 (opencl_leq_operation): New typedefs.
3867
e9677704
TT
38682021-03-08 Tom Tromey <tom@tromey.com>
3869
3870 * opencl-lang.c (opencl_value_cast): No longer static.
3871 * c-exp.h (opencl_cast_type_operation): New typedef.
3872
f403a4e4
TT
38732021-03-08 Tom Tromey <tom@tromey.com>
3874
3875 * f-exp.h (eval_op_f_allocated): Declare.
3876 (fortran_allocated_operation): New typedef.
3877 * f-lang.c (eval_op_f_allocated): No longer static.
3878
eb4c9271
TT
38792021-03-08 Tom Tromey <tom@tromey.com>
3880
3881 * f-lang.c (eval_op_f_associated): New functions.
3882 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3883 typedefs.
3884
58a76c72
TT
38852021-03-08 Tom Tromey <tom@tromey.com>
3886
3887 * f-lang.c (fortran_bound_1arg::evaluate)
3888 (fortran_bound_2arg::evaluate): New methods.
3889 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3890 New.
3891
2f98abe1
TT
38922021-03-08 Tom Tromey <tom@tromey.com>
3893
3894 * expop.h (class unop_addr_operation) <get_expression>: New
3895 method.
3896 * f-lang.c (fortran_undetermined::value_subarray)
3897 (fortran_undetermined::evaluate): New methods.
3898 (fortran_prepare_argument): New overload.
3899 * f-exp.h (class fortran_range_operation)
3900 (class fortran_undetermined): New classes.
3901
638fd74a
TT
39022021-03-08 Tom Tromey <tom@tromey.com>
3903
3904 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3905 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3906 method.
3907
a00b7254
TT
39082021-03-08 Tom Tromey <tom@tromey.com>
3909
3910 * expression.h (class operation) <evaluate_funcall>: New methods.
3911 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3912 (class var_value_operation) <evaluate_funcall>: New method.
3913 (class structop_base_operation) <evaluate_funcall>: New method.
3914 (class var_msym_value_operation) <evaluate_funcall>: New method.
3915 (class structop_member_base): New class.
3916 (class structop_member_operation): Derive from
3917 structop_member_base.
3918 (class structop_mptr_operation): Derive from
3919 structop_member_base.
3920 (class funcall_operation): New class.
3921 * eval.c (operation::evaluate_funcall)
3922 (var_value_operation::evaluate_funcall)
3923 (scope_operation::evaluate_funcall)
3924 (structop_member_base::evaluate_funcall)
3925 (structop_base_operation::evaluate_funcall): New methods.
3926
1c02eb30
TT
39272021-03-08 Tom Tromey <tom@tromey.com>
3928
3929 * expop.h (class array_operation): New.
3930 * eval.c (array_operation::evaluate_struct_tuple)
3931 (array_operation::evaluate): New methods.
3932
e4479080
TT
39332021-03-08 Tom Tromey <tom@tromey.com>
3934
3935 * expop.h (class adl_func_operation): New.
3936 * eval.c (adl_func_operation::evaluate): New method.
3937
95d49dfb
TT
39382021-03-08 Tom Tromey <tom@tromey.com>
3939
3940 * ada-lang.c (ada_unop_in_range): No longer static.
3941 * ada-exp.h (class ada_unop_range_operation): New.
3942
7c15d377
TT
39432021-03-08 Tom Tromey <tom@tromey.com>
3944
3945 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3946 No longer static.
3947 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3948 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3949
5019124b
TT
39502021-03-08 Tom Tromey <tom@tromey.com>
3951
3952 * expop.h (class logical_and_operation)
3953 (class logical_or_operation): New.
3954 * eval.c (logical_and_operation::evaluate)
3955 (logical_or_operation::evaluate): New methods.
3956 * ax-gdb.c (logical_and_operation::do_generate_ax)
3957 (logical_or_operation::do_generate_ax): New methods.
3958
2bc9b40c
TT
39592021-03-08 Tom Tromey <tom@tromey.com>
3960
3961 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3962 static.
3963 * m2-exp.h: New file.
3964
5947d337
TT
39652021-03-08 Tom Tromey <tom@tromey.com>
3966
3967 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3968 * rust-exp.h (class rust_aggregate_operation): New.
3969
e4407a20
TT
39702021-03-08 Tom Tromey <tom@tromey.com>
3971
3972 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3973 No longer static.
3974 * rust-exp.h (class rust_struct_anon): New.
3975 (class rust_structop): New.
3976
9db6b6dd
TT
39772021-03-08 Tom Tromey <tom@tromey.com>
3978
3979 * rust-lang.c (rust_range): No longer static.
3980 * rust-exp.h (class rust_range_operation): New.
3981
6ce1ad67
TT
39822021-03-08 Tom Tromey <tom@tromey.com>
3983
3984 * rust-lang.c (rust_subscript): No longer static.
3985 * rust-exp.h (class rust_subscript_operation): New.
3986
11dd3dce
TT
39872021-03-08 Tom Tromey <tom@tromey.com>
3988
3989 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3990 parameter.
3991 (rust_evaluate_subexp): Update.
3992 * rust-exp.h (class rust_unop_ind_operation): New.
3993
6fab4359
TT
39942021-03-08 Tom Tromey <tom@tromey.com>
3995
3996 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3997 longer static. Add "opcode" parameter.
3998 (rust_evaluate_subexp): Update.
3999 * rust-exp.h: New file.
4000
9dcd3e29
TT
40012021-03-08 Tom Tromey <tom@tromey.com>
4002
4003 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4004 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4005 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4006 (evaluate_subexp_f): Update.
4007 * f-exp.h: New file.
4008
fc715eb2
TT
40092021-03-08 Tom Tromey <tom@tromey.com>
4010
4011 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4012 * ada-exp.h (class ada_ternop_range_operation): New.
4013
cc6bd32e
TT
40142021-03-08 Tom Tromey <tom@tromey.com>
4015
4016 * ada-lang.c (ada_qual_operation::evaluate): New method.
4017 * ada-exp.h (class ada_qual_operation): New.
4018
42fecb61
TT
40192021-03-08 Tom Tromey <tom@tromey.com>
4020
4021 * ada-lang.c (ada_string_operation::evaluate): New method.
4022 * ada-exp.h (class ada_string_operation): New.
4023
03070ee9
TT
40242021-03-08 Tom Tromey <tom@tromey.com>
4025
4026 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4027 * ada-exp.h: New file.
4028
821e72d7
TT
40292021-03-08 Tom Tromey <tom@tromey.com>
4030
4031 * expop.h (class multi_subscript_operation): New.
4032 * eval.c (multi_subscript_operation::evaluate): New method.
4033
085734dd
TT
40342021-03-08 Tom Tromey <tom@tromey.com>
4035
4036 * eval.c (objc_msgcall_operation::evaluate): New method.
4037 * c-exp.h (class objc_msgcall_operation): New.
4038
e82a5afc
TT
40392021-03-08 Tom Tromey <tom@tromey.com>
4040
4041 * expop.h (class var_value_operation): New.
4042 * eval.c (var_value_operation::evaluate)
4043 (var_value_operation::evaluate_for_address)
4044 (var_value_operation::evaluate_with_coercion)
4045 (var_value_operation::evaluate_for_sizeof)
4046 (var_value_operation::evaluate_for_cast): New methods.
4047 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4048
d9ad79d8
TT
40492021-03-08 Tom Tromey <tom@tromey.com>
4050
4051 * expop.h (cxx_cast_ftype): New typedef.
4052 (cxx_cast_operation): New template.
4053 (dynamic_cast_operation, reinterpret_cast_operation): New
4054 typedefs.
4055
292382f4
TT
40562021-03-08 Tom Tromey <tom@tromey.com>
4057
4058 * expop.h (class unop_cast_type_operation): New.
4059 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4060 method.
4061
165a813a
TT
40622021-03-08 Tom Tromey <tom@tromey.com>
4063
4064 * expop.h (class unop_cast_operation): New.
4065 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4066
e5946e16
TT
40672021-03-08 Tom Tromey <tom@tromey.com>
4068
4069 * expop.h (class assign_modify_operation): New.
4070 * eval.c (eval_binop_assign_modify): No longer static.
4071 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4072
40786782
TT
40732021-03-08 Tom Tromey <tom@tromey.com>
4074
4075 * expop.h (class assign_operation): New.
4076 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4077
44b675c8
TT
40782021-03-08 Tom Tromey <tom@tromey.com>
4079
4080 * expop.h (class type_instance_operation): New.
4081 * eval.c (type_instance_operation::evaluate): New method.
4082
f6b42326
TT
40832021-03-08 Tom Tromey <tom@tromey.com>
4084
4085 * expop.h (class op_this_operation): New.
4086 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4087
cbc18219
TT
40882021-03-08 Tom Tromey <tom@tromey.com>
4089
4090 * expop.h (class unop_memval_operation)
4091 (class unop_memval_type_operation): New.
4092 * eval.c (eval_op_memval): No longer static.
4093 (unop_memval_operation::evaluate_for_address)
4094 (unop_memval_type_operation::evaluate_for_address)
4095 (unop_memval_operation::evaluate_for_sizeof)
4096 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4097 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4098 (unop_memval_type_operation::do_generate_ax): New methods.
4099
ae4bb61e
TT
41002021-03-08 Tom Tromey <tom@tromey.com>
4101
4102 * expop.h (class unop_alignof_operation): New.
4103 * eval.c (eval_op_alignof): No longer static.
4104
85d23bda
TT
41052021-03-08 Tom Tromey <tom@tromey.com>
4106
4107 * expop.h (class unop_sizeof_operation): New.
4108 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4109
14aff815
TT
41102021-03-08 Tom Tromey <tom@tromey.com>
4111
4112 * expop.h (class unop_addr_operation): New.
4113 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4114
929f3aa7
TT
41152021-03-08 Tom Tromey <tom@tromey.com>
4116
4117 * expop.h (class typeid_operation): New.
4118
0af8829e
TT
41192021-03-08 Tom Tromey <tom@tromey.com>
4120
4121 * expop.h (class decltype_operation): New.
4122
4efc574c
TT
41232021-03-08 Tom Tromey <tom@tromey.com>
4124
4125 * expop.h (class typeof_operation): New.
4126
5b5f5140
TT
41272021-03-08 Tom Tromey <tom@tromey.com>
4128
4129 * expop.h (class type_operation): New.
4130 * eval.c (eval_op_type): No longer static.
4131
876469ff
TT
41322021-03-08 Tom Tromey <tom@tromey.com>
4133
4134 * expop.h (class unop_ind_base_operation)
4135 (class unop_ind_operation): New.
4136 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4137 (unop_ind_base_operation::evaluate_for_address)
4138 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4139 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4140
6d89e296
TT
41412021-03-08 Tom Tromey <tom@tromey.com>
4142
4143 * expop.h (unop_incr_operation): New template.
4144 (preinc_operation, predec_operation, postinc_operation)
4145 (postdec_operation): New typedefs.
4146 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4147 (eval_op_postdec): No longer static.
4148
9307d17b
TT
41492021-03-08 Tom Tromey <tom@tromey.com>
4150
4151 * expop.h (unary_ftype): New typedef.
4152 (unop_operation, usual_ax_binop_operation): New templates.
4153 (unary_plus_operation, unary_neg_operation)
4154 (unary_complement_operation, unary_logical_not_operation): New
4155 typedefs.
4156 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4157 (eval_op_lognot): No longer static.
4158 * ax-gdb.c (gen_expr_unop): New function.
4159
ae64ba58
TT
41602021-03-08 Tom Tromey <tom@tromey.com>
4161
4162 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4163
d4eff4c1
TT
41642021-03-08 Tom Tromey <tom@tromey.com>
4165
4166 * expop.h (class repeat_operation): New.
4167 * eval.c (eval_op_repeat): No longer static. Remove "op"
4168 parameter.
4169 (evaluate_subexp_standard): Update.
4170 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4171
46916f2b
TT
41722021-03-08 Tom Tromey <tom@tromey.com>
4173
4174 * expop.h (class comparison_operation): New.
4175 (equal_operation, notequal_operation, less_operation)
4176 (gtr_operation, geq_operation, leq_operation): New typedefs.
4177 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4178 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4179
224d6424
TT
41802021-03-08 Tom Tromey <tom@tromey.com>
4181
4182 * expop.h (class subscript_operation): New.
4183 * eval.c (eval_op_subscript): No longer static.
4184
373907ff
TT
41852021-03-08 Tom Tromey <tom@tromey.com>
4186
4187 * expop.h (class binop_operation, class usual_ax_binop_operation):
4188 New.
4189 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4190 (div_operation, rem_operation, lsh_operation, rsh_operation)
4191 (bitwise_and_operation, bitwise_ior_operation)
4192 (bitwise_xor_operation): New typedefs.
4193 * eval.c (eval_op_binary): No longer static.
4194
5133d78b
TT
41952021-03-08 Tom Tromey <tom@tromey.com>
4196
4197 * expop.h (class sub_operation): New.
4198 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4199 (evaluate_subexp_standard): Update.
4200
a94323b6
TT
42012021-03-08 Tom Tromey <tom@tromey.com>
4202
4203 * expop.h (class add_operation): New.
4204 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4205 (evaluate_subexp_standard): Update.
4206
e51e26a0
TT
42072021-03-08 Tom Tromey <tom@tromey.com>
4208
4209 * expop.h (class concat_operation): New.
4210 * eval.c (eval_op_concat): No longer static. Remove "op"
4211 parameter.
4212 (evaluate_subexp_standard): Update.
4213
07f724a8
TT
42142021-03-08 Tom Tromey <tom@tromey.com>
4215
4216 * expop.h (class structop_member_operation)
4217 (class structop_mptr_operation): New.
4218 * eval.c (eval_op_member): No longer static.
4219
ab0609be
TT
42202021-03-08 Tom Tromey <tom@tromey.com>
4221
4222 * expop.h (class structop_ptr_operation): New.
4223 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4224 parameter.
4225
808b22cf
TT
42262021-03-08 Tom Tromey <tom@tromey.com>
4227
4228 * expop.h (class structop_base_operation)
4229 (class structop_operation): New.
4230 * eval.c (eval_op_structop_struct): No longer static.
4231
8cfd3e95
TT
42322021-03-08 Tom Tromey <tom@tromey.com>
4233
4234 * expop.h (class complex_operation): New.
4235
09db3700
TT
42362021-03-08 Tom Tromey <tom@tromey.com>
4237
4238 * eval.c (eval_op_objc_selector): No longer static.
4239 * c-exp.h (class objc_selector_operation): New.
4240
06dc61b9
TT
42412021-03-08 Tom Tromey <tom@tromey.com>
4242
4243 * eval.c: Include c-exp.h.
4244 * c-exp.h (class objc_nsstring_operation): New.
4245
72d0a711
TT
42462021-03-08 Tom Tromey <tom@tromey.com>
4247
4248 * c-lang.c (c_string_operation::evaluate): New method.
4249 * c-exp.h: New file.
4250
9186293f
TT
42512021-03-08 Tom Tromey <tom@tromey.com>
4252
4253 * expop.h (class ternop_cond_operation): New.
4254 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4255
1594e0bb
TT
42562021-03-08 Tom Tromey <tom@tromey.com>
4257
4258 * expop.h (class ternop_slice_operation): New.
4259 * eval.c (eval_op_ternop): No longer static.
4260
b50db09f
TT
42612021-03-08 Tom Tromey <tom@tromey.com>
4262
4263 * expop.h (class string_operation): New.
4264 * eval.c (eval_op_string): No longer static.
4265
e6e01e16
TT
42662021-03-08 Tom Tromey <tom@tromey.com>
4267
4268 * expop.h (class internalvar_operation): New.
4269 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4270
e6985c5e
TT
42712021-03-08 Tom Tromey <tom@tromey.com>
4272
4273 * expop.h (class bool_operation): New.
4274
55bdbff8
TT
42752021-03-08 Tom Tromey <tom@tromey.com>
4276
4277 * expop.h (class register_operation): New.
4278 * eval.c (eval_op_register): No longer static.
4279 * ax-gdb.c (register_operation::do_generate_ax): New method.
4280
247d935b
TT
42812021-03-08 Tom Tromey <tom@tromey.com>
4282
4283 * expop.h (class last_operation): New.
4284
17679395
TT
42852021-03-08 Tom Tromey <tom@tromey.com>
4286
4287 * expop.h (class func_static_var_operation): New.
4288 * eval.c (eval_op_func_static_var): No longer static.
4289
b5cc3923
TT
42902021-03-08 Tom Tromey <tom@tromey.com>
4291
4292 * expop.h (class var_entry_value_operation): New.
4293 * eval.c (eval_op_var_entry_value): No longer static.
4294
0c8effa3
TT
42952021-03-08 Tom Tromey <tom@tromey.com>
4296
4297 * expression.h (class operation) <set_outermost>: New method.
4298 * expop.h (class var_msym_value_operation): New.
4299 * eval.c (eval_op_var_msym_value): No longer static.
4300 (var_msym_value_operation::evaluate_for_address)
4301 (var_msym_value_operation::evaluate_for_sizeof)
4302 (var_msym_value_operation::evaluate_for_cast): New methods.
4303 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4304 method.
4305
d336c29e
TT
43062021-03-08 Tom Tromey <tom@tromey.com>
4307
4308 * expop.h (class long_const_operation): New.
4309 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4310
d5ab122c
TT
43112021-03-08 Tom Tromey <tom@tromey.com>
4312
4313 * expop.h (class scope_operation): New.
4314 * eval.c (eval_op_scope): No longer static.
4315 (scope_operation::evaluate_for_address): New method.
4316 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4317
cae26a0c
TT
43182021-03-08 Tom Tromey <tom@tromey.com>
4319
4320 * expprint.c (float_const_operation::dump): New method.
4321 * expop.h (float_data): New typedef.
4322 (class float_const_operation): New.
4323
75f9892d
TT
43242021-03-08 Tom Tromey <tom@tromey.com>
4325
4326 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4327 * ax-gdb.c (gen_expr_binop): New function.
4328 (gen_expr_structop): Likewise.
4329
de401988
TT
43302021-03-08 Tom Tromey <tom@tromey.com>
4331
4332 * expprint.c (expr::dump_for_expression): New functions.
4333 * expop.h (dump_for_expression): New overloads.
4334 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4335 Update.
4336
e2803273
TT
43372021-03-08 Tom Tromey <tom@tromey.com>
4338
4339 * expression.h (expr::operation): New class.
4340 (expr::make_operation): New function.
4341 (expr::operation_up): New typedef.
4342 * expop.h: New file.
4343 * eval.c (operation::evaluate_for_cast)
4344 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4345 New methods.
4346 * ax-gdb.c (operation::generate_ax): New method.
4347
e18c58f2
TT
43482021-03-08 Tom Tromey <tom@tromey.com>
4349
4350 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4351 (gen_expr_binop_rest): New overload.
4352
c0d7ed8c
TT
43532021-03-08 Tom Tromey <tom@tromey.com>
4354
4355 * eval.c (eval_multi_subscript): New function.
4356 (evaluate_subexp_standard): Use it.
4357
dd5fd283
TT
43582021-03-08 Tom Tromey <tom@tromey.com>
4359
4360 * ada-lang.c (ada_binop_exp): New function.
4361 (ada_evaluate_subexp): Use it.
4362
3848abd6
TT
43632021-03-08 Tom Tromey <tom@tromey.com>
4364
4365 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4366 parameters.
4367 (ada_evaluate_subexp): Use it.
4368
38dc70cf
TT
43692021-03-08 Tom Tromey <tom@tromey.com>
4370
4371 * ada-lang.c (ada_binop_minmax): New function.
4372 (ada_evaluate_subexp): Use it.
4373
b84564fc
TT
43742021-03-08 Tom Tromey <tom@tromey.com>
4375
4376 * ada-lang.c (ada_unop_atr): New function.
4377 (ada_evaluate_subexp): Use it.
4378
b467efaa
TT
43792021-03-08 Tom Tromey <tom@tromey.com>
4380
4381 * ada-lang.c (ada_binop_in_bounds): New function.
4382 (ada_evaluate_subexp): Use it.
4383
5ce19db8
TT
43842021-03-08 Tom Tromey <tom@tromey.com>
4385
4386 * ada-lang.c (ada_ternop_slice): New function.
4387 (ada_evaluate_subexp): Use it.
4388
214b13ac
TT
43892021-03-08 Tom Tromey <tom@tromey.com>
4390
4391 * ada-lang.c (ada_equal_binop): New function.
4392 (ada_evaluate_subexp): Use it.
4393
faa1dfd7
TT
43942021-03-08 Tom Tromey <tom@tromey.com>
4395
4396 * ada-lang.c (ada_mult_binop): New function.
4397 (ada_evaluate_subexp): Use it.
4398
d05e24e6
TT
43992021-03-08 Tom Tromey <tom@tromey.com>
4400
4401 * ada-lang.c (ada_abs): New function.
4402 (ada_evaluate_subexp): Use it.
4403
68c75735
TT
44042021-03-08 Tom Tromey <tom@tromey.com>
4405
4406 * ada-lang.c (ada_atr_size): New function.
4407 (ada_evaluate_subexp): Use it.
4408
020dbabe
TT
44092021-03-08 Tom Tromey <tom@tromey.com>
4410
4411 * ada-lang.c (ada_atr_tag): New function.
4412 (ada_evaluate_subexp): Use it.
4413
7efc87ff
TT
44142021-03-08 Tom Tromey <tom@tromey.com>
4415
4416 * ada-lang.c (ada_unop_in_range): New function.
4417 (ada_evaluate_subexp): Use it.
4418
82390ab8
TT
44192021-03-08 Tom Tromey <tom@tromey.com>
4420
4421 * ada-lang.c (ada_unop_neg): New function.
4422 (ada_evaluate_subexp): Use it.
4423
62d4bd94
TT
44242021-03-08 Tom Tromey <tom@tromey.com>
4425
4426 * ada-lang.c (eval_ternop_in_range): New function.
4427 (ada_evaluate_subexp): Use it.
4428
3634f669
TT
44292021-03-08 Tom Tromey <tom@tromey.com>
4430
4431 * opencl-lang.c (eval_opencl_assign): New function.
4432 (evaluate_subexp_opencl): Use it.
4433
5e80600e
TT
44342021-03-08 Tom Tromey <tom@tromey.com>
4435
4436 * eval.c (eval_op_objc_msgcall): New function.
4437 (evaluate_subexp_standard): Use it.
4438
fb5ba2ab
TT
44392021-03-08 Tom Tromey <tom@tromey.com>
4440
4441 * eval.c (eval_binop_assign_modify): New function.
4442 (evaluate_subexp_standard): Use it.
4443
a49881f7
TT
44442021-03-08 Tom Tromey <tom@tromey.com>
4445
4446 * m2-lang.c (eval_op_m2_subscript): New function.
4447 (evaluate_subexp_modula2): Use it.
4448
41bdced5
TT
44492021-03-08 Tom Tromey <tom@tromey.com>
4450
4451 * m2-lang.c (eval_op_m2_high): New function.
4452 (evaluate_subexp_modula2): Use it.
4453
13ea014a
TT
44542021-03-08 Tom Tromey <tom@tromey.com>
4455
4456 * eval.c (evaluate_subexp_for_address_base): New function.
4457 (evaluate_subexp_for_address): Use it.
4458 (evaluate_subexp_for_sizeof_base): New function.
4459 (evaluate_subexp_for_sizeof): Use it.
4460
1fa41fc7
TT
44612021-03-08 Tom Tromey <tom@tromey.com>
4462
4463 * rust-lang.c (eval_op_rust_structop): New function.
4464 (rust_evaluate_subexp): Use it.
4465
575cae23
TT
44662021-03-08 Tom Tromey <tom@tromey.com>
4467
4468 * rust-lang.c (eval_op_rust_struct_anon): New function.
4469 (rust_evaluate_subexp): Use it.
4470
05104233
TT
44712021-03-08 Tom Tromey <tom@tromey.com>
4472
4473 * rust-lang.c (eval_op_rust_array): New function.
4474 (rust_evaluate_subexp): Use it.
4475
6fa9831f
TT
44762021-03-08 Tom Tromey <tom@tromey.com>
4477
4478 * rust-lang.c (eval_op_rust_complement): New function.
4479 (rust_evaluate_subexp): Use it.
4480
d123f9e4
TT
44812021-03-08 Tom Tromey <tom@tromey.com>
4482
4483 * rust-lang.c (eval_op_rust_ind): New function.
4484 (rust_evaluate_subexp): Use it.
4485
984af2cb
TT
44862021-03-08 Tom Tromey <tom@tromey.com>
4487
4488 * rust-lang.c (rust_subscript): Change parameters.
4489 (rust_evaluate_subexp): Update.
4490
d148f803
TT
44912021-03-08 Tom Tromey <tom@tromey.com>
4492
4493 * rust-lang.c (rust_range): Change parameters.
4494 (rust_evaluate_subexp): Update.
4495
9cbd1c20
TT
44962021-03-08 Tom Tromey <tom@tromey.com>
4497
4498 * f-lang.c (eval_op_f_allocated): New function.
4499 (evaluate_subexp_f): Use it.
4500
3c18c49c
TT
45012021-03-08 Tom Tromey <tom@tromey.com>
4502
4503 * f-lang.c (fortran_require_array): New function.
4504 (evaluate_subexp_f): Use it.
4505
216f6fcb
TT
45062021-03-08 Tom Tromey <tom@tromey.com>
4507
4508 * f-lang.c (eval_op_f_kind): New function.
4509 (evaluate_subexp_f): Use it.
4510
00f2db6f
TT
45112021-03-08 Tom Tromey <tom@tromey.com>
4512
4513 * f-lang.c (eval_op_f_cmplx): New function.
4514 (evaluate_subexp_f): Use it.
4515
93b2b5fa
TT
45162021-03-08 Tom Tromey <tom@tromey.com>
4517
4518 * f-lang.c (eval_op_f_modulo): New function.
4519 (evaluate_subexp_f): Use it.
4520
9f1a1f3c
TT
45212021-03-08 Tom Tromey <tom@tromey.com>
4522
4523 * f-lang.c (eval_op_f_floor): New function.
4524 (evaluate_subexp_f): Use it.
4525
3dc41f3c
TT
45262021-03-08 Tom Tromey <tom@tromey.com>
4527
4528 * f-lang.c (eval_op_f_ceil): New function.
4529 (evaluate_subexp_f): Use it.
4530
e08109f2
TT
45312021-03-08 Tom Tromey <tom@tromey.com>
4532
4533 * f-lang.c (eval_op_f_mod): New function.
4534 (evaluate_subexp_f): Use it.
4535
cc05c68e
TT
45362021-03-08 Tom Tromey <tom@tromey.com>
4537
4538 * f-lang.c (eval_op_f_abs): New function.
4539 (evaluate_subexp_f): Use it.
4540
aec95807
TT
45412021-03-08 Tom Tromey <tom@tromey.com>
4542
4543 * eval.c (eval_op_type): New function.
4544 (evaluate_subexp_standard): Use it.
4545
a220ead5
TT
45462021-03-08 Tom Tromey <tom@tromey.com>
4547
4548 * eval.c (eval_op_postdec): New function.
4549 (evaluate_subexp_standard): Use it.
4550
abffe116
TT
45512021-03-08 Tom Tromey <tom@tromey.com>
4552
4553 * eval.c (eval_op_postinc): New function.
4554 (evaluate_subexp_standard): Use it.
4555
9e1361b7
TT
45562021-03-08 Tom Tromey <tom@tromey.com>
4557
4558 * eval.c (eval_op_predec): New file.
4559 (evaluate_subexp_standard): Use it.
4560
00f50884
TT
45612021-03-08 Tom Tromey <tom@tromey.com>
4562
4563 * eval.c (eval_op_preinc): New function.
4564 (evaluate_subexp_standard): Use it.
4565
3aef2a07
TT
45662021-03-08 Tom Tromey <tom@tromey.com>
4567
4568 * eval.c (eval_op_memval): New function.
4569 (evaluate_subexp_standard): Use it.
4570
acee9468
TT
45712021-03-08 Tom Tromey <tom@tromey.com>
4572
4573 * eval.c (eval_op_alignof): New function.
4574 (evaluate_subexp_standard): Use it.
4575
786f70ee
TT
45762021-03-08 Tom Tromey <tom@tromey.com>
4577
4578 * eval.c (eval_op_ind): New function.
4579 (evaluate_subexp_standard): Use it.
4580
24338fb9
TT
45812021-03-08 Tom Tromey <tom@tromey.com>
4582
4583 * eval.c (eval_op_lognot): New function.
4584 (evaluate_subexp_standard): Use it.
4585
1f09ec81
TT
45862021-03-08 Tom Tromey <tom@tromey.com>
4587
4588 * eval.c (eval_op_complement): New function.
4589 (evaluate_subexp_standard): Use it.
4590
606d105f
TT
45912021-03-08 Tom Tromey <tom@tromey.com>
4592
4593 * eval.c (eval_op_neg): New function.
4594 (evaluate_subexp_standard): Use it.
4595
39f288be
TT
45962021-03-08 Tom Tromey <tom@tromey.com>
4597
4598 * eval.c (eval_op_plus): New function.
4599 (evaluate_subexp_standard): Use it.
4600
eed70b1c
TT
46012021-03-08 Tom Tromey <tom@tromey.com>
4602
4603 * eval.c (eval_op_repeat): New function.
4604 (evaluate_subexp_standard): Use it.
4605
60cdd487
TT
46062021-03-08 Tom Tromey <tom@tromey.com>
4607
4608 * eval.c (eval_op_leq): New function.
4609 (evaluate_subexp_standard): Use it.
4610
96e3efd9
TT
46112021-03-08 Tom Tromey <tom@tromey.com>
4612
4613 * eval.c (eval_op_geq): New function.
4614 (evaluate_subexp_standard): Use it.
4615
1f78d732
TT
46162021-03-08 Tom Tromey <tom@tromey.com>
4617
4618 * eval.c (eval_op_gtr): New function.
4619 (evaluate_subexp_standard): Use it.
4620
6cad1349
TT
46212021-03-08 Tom Tromey <tom@tromey.com>
4622
4623 * eval.c (eval_op_less): New function.
4624 (evaluate_subexp_standard): Use it.
4625
1fcb3559
TT
46262021-03-08 Tom Tromey <tom@tromey.com>
4627
4628 * eval.c (eval_op_notequal): New function.
4629 (evaluate_subexp_standard): Use it.
4630
0cc96de8
TT
46312021-03-08 Tom Tromey <tom@tromey.com>
4632
4633 * eval.c (eval_op_equal): New function.
4634 (evaluate_subexp_standard): Use it.
4635
288d26bc
TT
46362021-03-08 Tom Tromey <tom@tromey.com>
4637
4638 * eval.c (eval_op_subscript): New function.
4639 (evaluate_subexp_standard): Use it.
4640
7cdcdd02
TT
46412021-03-08 Tom Tromey <tom@tromey.com>
4642
4643 * eval.c (eval_op_binary): New function.
4644 (evaluate_subexp_standard): Use it.
4645
d9790e22
TT
46462021-03-08 Tom Tromey <tom@tromey.com>
4647
4648 * eval.c (eval_op_sub): New function.
4649 (evaluate_subexp_standard): Use it.
4650
aedaf9ac
TT
46512021-03-08 Tom Tromey <tom@tromey.com>
4652
4653 * eval.c (eval_op_add): New function.
4654 (evaluate_subexp_standard): Use it.
4655
b7a96ed2
TT
46562021-03-08 Tom Tromey <tom@tromey.com>
4657
4658 * eval.c (eval_op_member): New function.
4659 (evaluate_subexp_standard): Use it.
4660
fb461aa3
TT
46612021-03-08 Tom Tromey <tom@tromey.com>
4662
4663 * eval.c (eval_op_structop_ptr): New function.
4664 (evaluate_subexp_standard): Use it.
4665
3e96c4fc
TT
46662021-03-08 Tom Tromey <tom@tromey.com>
4667
4668 * eval.c (eval_op_structop_struct): New function.
4669 (evaluate_subexp_standard): Use it.
4670
f960a617
TT
46712021-03-08 Tom Tromey <tom@tromey.com>
4672
4673 * eval.c (eval_op_ternop): New function.
4674 (evaluate_subexp_standard): Use it.
4675
5c2f201e
TT
46762021-03-08 Tom Tromey <tom@tromey.com>
4677
4678 * eval.c (eval_op_concat): New function.
4679 (evaluate_subexp_standard): Use it.
4680
f871bae1
TT
46812021-03-08 Tom Tromey <tom@tromey.com>
4682
4683 * eval.c (eval_op_objc_selector): New function.
4684 (evaluate_subexp_standard): Use it.
4685
14a1c64a
TT
46862021-03-08 Tom Tromey <tom@tromey.com>
4687
4688 * eval.c (eval_op_string): New function.
4689 (evaluate_subexp_standard): Use it.
4690
ffff730b
TT
46912021-03-08 Tom Tromey <tom@tromey.com>
4692
4693 * eval.c (eval_op_register): New function.
4694 (evaluate_subexp_standard): Use it.
4695
9b1d8af6
TT
46962021-03-08 Tom Tromey <tom@tromey.com>
4697
4698 * eval.c (eval_op_func_static_var): New function.
4699 (evaluate_subexp_standard): Use it.
4700
c0df9289
TT
47012021-03-08 Tom Tromey <tom@tromey.com>
4702
4703 * eval.c (eval_op_var_msym_value): New function.
4704 (evaluate_subexp_standard): Use it.
4705
50b98adc
TT
47062021-03-08 Tom Tromey <tom@tromey.com>
4707
4708 * eval.c (eval_op_var_entry_value): New function.
4709 (evaluate_subexp_standard): Use it.
4710
ea2d29f7
TT
47112021-03-08 Tom Tromey <tom@tromey.com>
4712
4713 * eval.c (eval_op_scope): New function.
4714 (evaluate_subexp_standard): Use it.
4715
01573d73
TT
47162021-03-06 Chernov Sergey <klen_s@mail.ru>
4717
4718 PR gdb/27528:
4719 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4720
9938d15a
TT
47212021-03-06 Tom Tromey <tom@tromey.com>
4722
4723 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4724 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4725 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4726 (locate_dwz_sections, dwz_search_other_debugdirs)
4727 (dwarf2_get_dwz_file): Move to dwz.c.
4728 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4729 read.h.
4730 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4731 (dwarf2_get_dwz_file): Move from read.c.
4732
18035655
TT
47332021-03-06 Tom Tromey <tom@tromey.com>
4734
4735 * debuginfod-support.h: Include scoped_fd.h.
4736
a7308ce0
TT
47372021-03-06 Tom Tromey <tom@tromey.com>
4738
4739 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4740 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4741 (get_abbrev_section_for_cu, read_attribute_value)
4742 (get_debug_line_section): Update.
4743 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4744
fbedd546
TT
47452021-03-06 Tom Tromey <tom@tromey.com>
4746
4747 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4748 method.
4749 * dwarf2/read.c (section_is_p): Remove.
4750 (dwarf2_per_bfd::locate_sections)
4751 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4752 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4753 (dwarf2_locate_common_dwp_sections)
4754 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4755 Update.
4756
c2a62a3d
TT
47572021-03-06 Tom Tromey <tom@tromey.com>
4758
4759 * xcoffread.c: Include sect-names.h.
4760 * symfile.h (struct dwarf2_section_names, struct
4761 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4762 * dwarf2/sect-names.h: New file, from symfile.h.
4763 * dwarf2/read.c: Include sect-names.h.
4764
4444f407
TT
47652021-03-06 Tom Tromey <tom@tromey.com>
4766
4767 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4768 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4769 (abbrev_table::read): Update.
4770 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4771 (struct abbrev_info): Reformat.
4772 <attrs>: Now an array.
4773 (struct abbrev_table) <alloc_abbrev>: Remove.
4774
dd99cf0c
WP
47752021-03-06 Weimin Pan <weimin.pan@oracle.com>
4776
4777 * ctfread.c (ctf_psymtab_add_enums): New function.
4778 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4779
844be3f2
WP
47802021-03-06 Weimin Pan <weimin.pan@oracle.com>
4781
4782 * ctfread.c (read_func_kind_type): Set up function arguments.
4783
b2668f28
AB
47842021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4785 Andrew Burgess <andrew.burgess@embecosm.com>
4786
4787 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4788 includes.
4789 (riscv_csrset): New static global.
4790 (riscv_update_csrmap): New function.
4791 (riscv_iterate_over_regset_sections): Process CSRs.
4792
d782d24b
AB
47932021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4794
4795 * riscv-tdep.c (riscv_feature_name_csr): Define.
4796 (riscv_feature_name_cpu): Define.
4797 (riscv_feature_name_fpu): Define.
4798 (riscv_feature_name_virtual): Define.
4799 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4800 (riscv_freg_feature): Use riscv_feature_name_fpu.
4801 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4802 (riscv_csr_feature): Use riscv_feature_name_csr.
4803 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4804
fb8f3fc0
AB
48052021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4806 Craig Blackmore <craig.blackmore@embecosm.com>
4807
4808 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4809 (ALLDEPFILES): Add riscv-none-tdep.c.
4810 * configure: Regenerate.
4811 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4812 support.
4813 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4814 * elf-none-tdep.c: New file.
4815 * elf-none-tdep.h: New file.
4816 * riscv-none-tdep.c: New file.
4817
95ce627a
AB
48182021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4819 Andrew Burgess <andrew.burgess@embecosm.com>
4820
4821 * corelow.c: Add 'xml-tdesc.h' include.
4822 (core_target::read_description): Load the target description from
4823 the core file when possible.
4824 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4825 note.
4826 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4827 (gcore_elf_make_tdesc_note): New function.
4828 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4829 * linux-tdep.c (linux_make_corefile_notes): Add target description
4830 note.
4831
f3a5df7b
AB
48322021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4833
4834 * Makefile.in (SFILES): Add gcore-elf.c.
4835 (HFILES_NO_SRCDIR): Add gcore-elf.h
4836 * configure: Regenerate.
4837 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4838 support.
4839 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4840 (struct fbsd_collect_regset_section_cb_data): Delete.
4841 (fbsd_collect_regset_section_cb): Delete.
4842 (fbsd_collect_thread_registers): Delete.
4843 (struct fbsd_corefile_thread_data): Delete.
4844 (fbsd_corefile_thread): Delete.
4845 (fbsd_make_corefile_notes): Call
4846 gcore_elf_build_thread_register_notes instead of the now deleted
4847 FreeBSD code.
4848 * gcore-elf.c: New file, the content was moved here from
4849 linux-tdep.c, functions were renamed and given minor cleanup.
4850 * gcore-elf.h: New file.
4851 * gcore.c (gcore_find_signalled_thread): Moved here from
4852 linux-tdep.c and given a new name. Minor cleanups.
4853 * gcore.h (gcore_find_signalled_thread): Declare.
4854 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4855 (struct linux_collect_regset_section_cb_data): Delete.
4856 (linux_collect_regset_section_cb): Delete.
4857 (linux_collect_thread_registers): Delete.
4858 (linux_corefile_thread): Call
4859 gcore_elf_build_thread_register_notes.
4860 (find_signalled_thread): Delete.
4861 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4862
d1e93af6
SM
48632021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4864
4865 PR gdb/27147
4866 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4867 process_stratum_target parameter,
4868 sparc_store_inferior_registers): update callers.
4869 * sparc-nat.c (sparc_fetch_inferior_registers,
4870 sparc_store_inferior_registers): Add process_stratum_target
4871 parameter. Switch current thread before calling
4872 sparc_supply_gregset / sparc_collect_rwindow.
4873 (sparc_store_inferior_registers): Likewise.
4874 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4875 (sparc32obsd_collect_uthread): Likewise.
4876 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4877 Add assertion.
4878 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4879 sparc64obsd_supply_uthread): Add assertion.
4880
1178743e
TT
48812021-03-04 Tom Tromey <tromey@adacore.com>
4882
4883 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4884 (aux_add_nonlocal_symbols): Update.
4885 (ada_add_block_symbols): Change "found_sym" to bool.
4886
1bfa81ac
TT
48872021-03-03 Tom Tromey <tromey@adacore.com>
4888
4889 * ada-lang.c (ada_resolve_function): Update comment.
4890 (is_nonfunction, add_symbols_from_enclosing_procs)
4891 (remove_extra_symbols): Likewise.
4892 (struct match_data): Add constructor, initializers.
4893 (add_nonlocal_symbols): Remove memset.
4894 (aux_add_nonlocal_symbols): Update comment.
4895 (ada_add_block_renamings, add_nonlocal_symbols)
4896 (ada_add_all_symbols): Likewise.
4897 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4898
bbcdf9ab
TT
48992021-03-02 Tom Tromey <tromey@adacore.com>
4900
4901 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4902 (cast_to_gnat_encoded_fixed_point_type): Remove.
4903 (ada_value_cast, ada_evaluate_subexp): Update.
4904 (gnat_encoded_fixed_point_type_info)
4905 (ada_is_gnat_encoded_fixed_point_type)
4906 (gnat_encoded_fixed_point_delta)
4907 (gnat_encoded_fixed_point_scaling_factor): Remove.
4908 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4909 (gnat_encoded_fixed_point_delta)
4910 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4911 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4912 (ada_print_type): Update.
4913 * ada-valprint.c (ada_value_print_num): Update.
4914 * dwarf2/read.c (ada_get_gnat_encoded_number)
4915 (ada_get_gnat_encoded_ratio): New functions.
4916 (finish_fixed_point_type): Use them. Add parameters.
4917 (GNAT_FIXED_POINT_SUFFIX): New define.
4918 (gnat_encoded_fixed_point_type_info): New function.
4919 (read_base_type): Handle gnat encodings.
4920
5f9febe0
TT
49212021-03-02 Tom Tromey <tromey@adacore.com>
4922
4923 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4924 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4925 std::string.
4926 (GROW_VECT): Remove.
4927 (grow_vect): Remove.
4928
d1183b06
TT
49292021-03-02 Tom Tromey <tromey@adacore.com>
4930
4931 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4932 * ada-lang.c (resolve_subexp): Update.
4933 (ada_resolve_function): Accept a vector.
4934 (is_nonfunction, add_defn_to_vec)
4935 (add_symbols_from_enclosing_procs): Likewise.
4936 (num_defns_collected, defns_collected): Remove.
4937 (remove_extra_symbols): Return a vector.
4938 (remove_irrelevant_renamings): Return void.
4939 (ada_add_local_symbols): Accept a vector.
4940 (struct match_data) <obstackp>: Remove.
4941 <resultp>: New member.
4942 (aux_add_nonlocal_symbols): Update.
4943 (ada_add_block_renamings, add_nonlocal_symbols)
4944 (ada_add_all_symbols): Accept a vector.
4945 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4946 vector.
4947 (ada_lookup_symbol): Update.
4948 (ada_add_block_symbols): Accept a vector.
4949 (get_var_value, iterate_over_symbols): Update.
4950 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4951 Update.
4952
886d459f
TT
49532021-03-02 Tom Tromey <tromey@adacore.com>
4954
4955 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4956
bdcccc56
TT
49572021-03-02 Tom Tromey <tromey@adacore.com>
4958
4959 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4960 auto_obstack.
4961 <root>: Initialize.
4962 (ada_pspace_data): Remove destructor.
4963 <sym_cache>: Now a unique_ptr.
4964 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4965 (ada_get_symbol_cache): Use 'new'.
4966 (ada_clear_symbol_cache): Rewrite.
4967
1228719f
TT
49682021-03-02 Tom Tromey <tromey@adacore.com>
4969
4970 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4971 is null.
4972
bb3a4efe
LS
49732021-02-27 Lancelot Six <lsix@lancelotsix.com>
4974
4975 PR gdb/27393
4976 * source.c (add_path): Skip empty dirnames.
4977
26b43ca6 49782021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4979
4980 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4981 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4982
dffdd8b5
SM
49832021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4984
4985 PR gdb/26861
4986 * target.c (target_mourn_inferior): Only compare pids in
4987 target_mourn_inferior.
4988
64d38fdd
JM
49892021-02-25 Jan Matyas <jmatyas@codasip.com>
4990
4991 PR gdb/26819
4992 * remote.c (remote_target::start_remote): Ensure the single
4993 thread, automatically added for remote targets without the
4994 concept of threading, is initially in set to the "resumed"
4995 state.
4996 * remote.c (remote_target::add_current_inferior_and_thread):
4997 Add return value - return the main thread.
4998
2450ad54
JV
49992021-02-25 Jan Vrany <jan.vrany@labware.com>
5000
5001 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5002 (mi_tsv_created): Likewise.
5003 (mi_tsv_deleted): Likewise.
5004
30c80d88
TV
50052021-02-25 Tom de Vries <tdevries@suse.de>
5006
5007 PR symtab/27354
5008 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5009 section_kind for &dwo_file->sections.info.
5010
68337b8b
AB
50112021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5012
5013 PR fortran/26155
5014 * f-lang.c (fortran_argument_convert): Delete declaration.
5015 (fortran_prepare_argument): New function.
5016 (evaluate_subexp_f): Move logic to new function
5017 fortran_prepare_argument.
5018
faeb9f13
AB
50192021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5020
5021 * f-exp.y (f77_keywords): Add 'associated'.
5022 * f-lang.c (fortran_associated): New function.
5023 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5024 (operator_length_f): Likewise.
5025 (print_unop_or_binop_subexp_f): New function.
5026 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5027 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5028 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5029 (operator_check_f): Likewise.
5030 * std-operator.def: Add FORTRAN_ASSOCIATED.
5031
170f4b23
AB
50322021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5033
5034 * f-exp.y (fortran_operators): Add ".xor.".
5035
aa659cfa
TV
50362021-02-24 Tom de Vries <tdevries@suse.de>
5037
5038 PR symtab/27336
5039 * dwarf2/attribute.c (attribute::form_is_signed): New function
5040 factored out of ...
5041 * dwarf2/attribute.h (attribute::as_signed): ... here.
5042 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5043 (attribute::form_is_signed): Declare.
5044 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5045 for DW_AT_decl_file.
5046
268c77c1
KB
50472021-02-24 Kevin Buettner <kevinb@redhat.com>
5048
5049 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5050 order for <sys/ptrace.h> and <asm/ptrace.h>.
5051
665af52e
KB
50522021-02-24 Kevin Buettner <kevinb@redhat.com>
5053
5054 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5055 <sys/ptrace.h>.
5056
dd80d750
AB
50572021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5058
5059 * exec.c (set_section_command): Move variable declarations into
5060 the function body, and use std::string instead of a fixed size
5061 buffer.
5062
336aa7b7
AB
50632021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5064
5065 * exec.c (exec_target::get_section_table): Delete member function.
5066 (section_table_read_available_memory): Use current_top_target, not
5067 just the exec_ops target.
5068 * target-delegates.c: Regenerate.
5069 * target.c (default_get_section_table): New function.
5070 * target.h (target_ops::get_section_table): Change default
5071 behaviour to call default_get_section_table.
5072 (default_get_section_table): Declare.
5073
02f7d26b
AB
50742021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5075
5076 * exec.c (exec_target::close): Call new clear_target_sections
5077 function.
5078 (program_space::add_target_sections): Update name of member
5079 variable.
5080 (program_space::add_target_sections): Update name of member
5081 variable.
5082 (program_space::remove_target_sections): Likewise.
5083 (exec_one_fork): Use new target_sections member function.
5084 (exec_target::get_section_table): Likewise.
5085 (exec_target::files_info): Likewise.
5086 (set_section_command): Likewise.
5087 (exec_set_section_address): Likewise.
5088 (exec_target::has_memory): Use new target_sections member
5089 function.
5090 * progspace.h (program_space::clear_target_sections): New member
5091 function.
5092 (program_space::target_sections): Rename member variable to
5093 m_target_sections, replace with a new member function.
5094 (program_space::m_target_sections): New member variable.
5095 * solib-dsbt.c (scan_dyntag): Use new member function.
5096 * solib-svr4.c (scan_dyntag): Likewise.
5097
19cf757a
AB
50982021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5099
5100 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5101 return type const.
5102 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5103 (section_table_read_available_memory): Make local const.
5104 (exec_target::xfer_partial): Make local const.
5105 (print_section_info): Make parameter const.
5106 * gdb/exec.h (print_section_info): Likewise.
5107 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5108 const.
5109 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5110 Likewise.
5111 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5112 Likewise.
5113 * gdb/s390-tdep.c (s390_load): Likewise.
5114 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5115 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5116 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5117 Rename to...
5118 (target_debug_print_const_target_section_table_p): ...this.
5119 * gdb/target-delegates.c: Regenerate.
5120 * gdb/target.c (target_get_section_table): Make return type const.
5121 (target_section_by_addr): Likewise. Also make some locals const.
5122 (memory_xfer_partial_1): Make some locals const.
5123 * gdb/target.h (struct target_ops) <get_section_table>: Make
5124 return type const.
5125 (target_section_by_addr): Likewise.
5126 (target_get_section_table): Likewise.
5127
02a79309
AB
51282021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5129
5130 * NEWS: Mention new 'maint info target-sections' command.
5131 * maint.c (maintenance_info_target_sections): New function.
5132 (_initialize_maint_cmds): Register new command.
5133
895b7b4e
AB
51342021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5135
5136 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5137 (riscv_features_from_bfd): ...this. Change parameter type to
5138 'bfd*', and update as required.
5139 (riscv_find_default_target_description): Update call to
5140 riscv_features_from_bfd. Select a default xlen based on
5141 info.bfd_arch_info.
5142 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5143
bc3c0632
AB
51442021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5145
5146 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5147 dynamic types in UNOP_IND.
5148
08ac5771
SM
51492021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5150
5151 PR gdb/26828
5152 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5153 Instantiate queue.
5154 (~dwarf2_queue_guard): Clear queue.
5155 (queue_comp_unit): Assert that queue is
5156 instantiated.
5157 (process_queue): Adjust.
5158 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5159
616c069a
SM
51602021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5161
5162 PR gdb/26828
5163 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5164 to decide whether or not to enqueue it for expansion.
5165 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5166 after calling maybe_queue_comp_unit.
5167
897608ed
SM
51682021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5169
5170 * linux-nat.c (linux_nat_filter_event): Return void.
5171
15908a11
TT
51722021-02-22 Tom Tromey <tromey@adacore.com>
5173
5174 * solib-svr4.c (enable_break): Update.
5175 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5176 type.
5177 (target_bfd_reopen): Change parameter type.
5178 * bfd-target.h (target_bfd_reopen): Change parameter type.
5179
f53fc427
SM
51802021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5181
5182 * thread.c (add_thread_silent): Add assert.
5183 (find_thread_ptid): Add assert.
5184
de146e19
SM
51852021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5186
5187 PR gdb/27435
5188 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5189 (target_unpush_up): Likewise.
5190 * procfs.c (procfs_target::attach): Push target early. Use
5191 target_unpush_up to unpush target in case of error.
5192 * target.h (struct target_unpusher): Move here.
5193 (target_unpush_up): Likewise.
5194
8488c357
KB
51952021-02-19 Kevin Buettner <kevinb@redhat.com>
5196
5197 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5198 (which in turn includes <gnulib/config.h>) before include
5199 of <signal.h>.
5200
5a9f5403
NC
52012021-02-19 Nelson Chu <nelson.chu@sifive.com>
5202
5203 PR 27158
5204 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5205 (decode_j_type_insn): Likewise.
5206 (decode_cj_type_insn): Likewise.
5207 (decode_b_type_insn): Likewise.
5208 (decode): Likewise.
5209
26f53cd3
TT
52102021-02-18 Tom Tromey <tom@tromey.com>
5211
5212 * expression.h (struct expression) <evaluate>: Declare method.
5213 * eval.c (evaluate_subexp): Simplify.
5214 (expression::evaluate): New method.
5215 (evaluate_expression, evaluate_type): Use expression::evaluate.
5216
6a780b67
KB
52172021-02-17 Kevin Buettner <kevinb@redhat.com>
5218
5219 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5220 to accessing it.
5221 (ada_lookup_name_info): Likewise.
5222
adeab0c5
MF
52232021-02-13 Mike Frysinger <vapier@gentoo.org>
5224
5225 * aclocal.m4: Regenerate.
5226
089436f7
TV
52272021-02-12 Tom de Vries <tdevries@suse.de>
5228
5229 PR threads/26228
5230 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5231 (lin_thread_signals): New static var.
5232 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5233 New function.
5234 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5235 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5236 Declare.
5237 * linux-thread-db.c (check_thread_signals): Use
5238 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5239
96df3e28
AB
52402021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5241
5242 * f-exp.y (f77_keywords): Add allocated.
5243 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5244 (operator_length_f): Likewise.
5245 (print_subexp_f): Likewise.
5246 (dump_subexp_body_f): Likewise.
5247 (operator_check_f): Likewise.
5248 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5249
05f68f52
TV
52502021-02-11 Tom de Vries <tdevries@suse.de>
5251
5252 PR symtab/27353
5253 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5254 Return true for DW_FORM_strx.
5255
b260f8d6
TT
52562021-02-11 Tom Tromey <tromey@adacore.com>
5257
5258 PR gdb/27383:
5259 * parse.c (write_exp_symbol_reference): Write sym.block.
5260
bf3386f0
AB
52612021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5262
5263 * NEWS: Mention changes to 'maint info sections'.
5264 * maint.c (match_substring): Return a bool, fix whitespace issue.
5265 (struct single_bfd_flag_info): New struct.
5266 (bfd_flag_info): New static global.
5267 (match_bfd_flags): Return a bool, use bfd_flag_info.
5268 (print_bfd_flags): Use bfd_flag_info.
5269 (maint_print_section_info): Delete trailing whitespace.
5270 (struct maint_info_sections_opts): New struct.
5271 (maint_info_sections_option_defs): New static global.
5272 (maint_info_sections_completer): New function.
5273 (maintenance_info_sections): Use option parsing mechanism.
5274 (_initialize_maint_cmds): Update command help text for 'maint info
5275 sections' and register a command completer.
5276
4790db14
AB
52772021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5278
5279 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5280 functionality merged into...
5281 (maint_print_all_sections): ...this new function.
5282 (maintenance_info_sections): Make use of maint_print_all_sections,
5283 allow all objects to be printed even where there's no executable.
5284
1db66e34
AB
52852021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * breakpoint.c (resolve_sal_pc): Make use of
5288 bound_minimal_symbol::obj_section.
5289 * maint.c (maintenance_translate_address): Likewise.
5290 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5291 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5292 member function.
5293 * printcmd.c (info_address_command): Make use of
5294 bound_minimal_symbol::obj_section.
5295
18b8df43
AM
52962021-02-11 Alan Modra <amodra@gmail.com>
5297
5298 * arm-symbian-tdep.c: Delete.
5299 * NEWS: Mention arm-symbian removal.
5300 * Makefile.in: Remove arm-symbian-tdep entries.
5301 * configure.tgt: Remove arm*-*-symbianelf*.
5302 * doc/gdb.texinfo: Remove mention of SymbianOS.
5303 * osabi.c (gdb_osabi_names): Remove "Symbian".
5304 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5305 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5306 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5307 handling.
5308 * testsuite/gdb.base/dup-sect.exp: Likewise.
5309 * testsuite/gdb.base/long_long.exp: Likewise.
5310 * testsuite/gdb.base/solib-weak.exp: Likewise.
5311 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5312 * testsuite/gdb.python/py-section-script.exp: Likewise.
5313 * testsuite/lib/dwarf.exp: Likewise.
5314 * testsuite/lib/gdb.exp: Likewise.
5315
e92c8eb8
AB
53162021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5317
5318 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5319 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5320 (one_or_two_args): New pattern.
5321 (f77_keywords): Add lbound and ubound.
5322 * f-lang.c (fortran_bounds_all_dims): New function.
5323 (fortran_bounds_for_dimension): New function.
5324 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5325 (operator_length_f): Likewise.
5326 (print_subexp_f): Likewise.
5327 (dump_subexp_body_f): Likewise.
5328 (operator_check_f): Likewise.
5329 * std-operator.def (FORTRAN_LBOUND): Define.
5330 (FORTRAN_UBOUND): Define.
5331
a52d653e
AB
53322021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5333
5334 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5335 and set_section_index member functions where appropriate.
5336 * coffread.c (coff_symtab_read): Likewise.
5337 (process_coff_symbol): Likewise.
5338 * ctfread.c (set_symbol_address): Likewise.
5339 * dwarf2/read.c (add_partial_symbol): Likewise.
5340 (var_decode_location): Likewise.
5341 * language.c: Likewise.
5342 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5343 (compact_minimal_symbols): Likewise.
5344 (minimal_symbol_upper_bound): Likewise.
5345 * objfiles.c (relocate_one_symbol): Likewise.
5346 * psympriv.h (partial_symbol::obj_section): Likewise.
5347 (partial_symbol::address): Likewise.
5348 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5349 * stabsread.c (scan_file_globals): Likewise.
5350 * symmisc.c (dump_msymbols): Likewise.
5351 * symtab.c (general_symbol_info::obj_section): Likewise.
5352 (fixup_section): Likewise.
5353 (get_msymbol_address): Likewise.
5354 * symtab.h (general_symbol_info::section): Rename to...
5355 (general_symbol_info::m_section): ...this.
5356 (general_symbol_info::set_section_index): New member function.
5357 (general_symbol_info::section_index): Likewise.
5358 (SYMBOL_SECTION): Delete.
5359 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5360 set_section_index member functions where appropriate.
5361 (MSYMBOL_SECTION): Delete.
5362 (symbol::symbol): Update to initialize 'm_section'.
5363 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5364 (process_xcoff_symbol): Likewise.
5365
ebbc3a7d
AB
53662021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5367
5368 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5369 MSYMBOL_OBJ_SECTION.
5370 * findvar.c (language_defn::read_var_value): Likewise.
5371 * infcmd.c (jump_command): Likewise.
5372 * linespec.c (minsym_found): Likewise.
5373 * maint.c (maintenance_translate_address): Likewise.
5374 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5375 (minimal_symbol_upper_bound): Likewise.
5376 * parse.c (find_minsym_type_and_address): Likewise.
5377 (operator_check_standard): Likewise.
5378 * printcmd.c (info_address_command): Likewise.
5379 * symmisc.c (dump_msymbols): Likewise.
5380 (print_symbol): Likewise.
5381 * symtab.c (general_symbol_info::obj_section): Define new
5382 function.
5383 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5384 (find_pc_sect_compunit_symtab): Likewise.
5385 (find_function_start_sal): Likewise.
5386 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5387 MSYMBOL_OBJ_SECTION.
5388 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5389 function.
5390 (SYMBOL_OBJ_SECTION): Delete.
5391 (MSYMBOL_OBJ_SECTION): Delete.
5392
9bb305b3
TT
53932021-02-09 Tom Tromey <tom@tromey.com>
5394
5395 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5396
cf2b2075
TV
53972021-02-09 Tom de Vries <tdevries@suse.de>
5398
5399 PR symtab/27341
5400 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5401 construct an array type. Add assert to ensure that element_type is
5402 not being modified.
5403
03642b71
AB
54042021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5405
5406 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5407 (gcore_collect_regset_section_cb): Delete.
5408 (gcore_collect_thread_registers): Delete.
5409 (gcore_build_thread_register_notes): Delete.
5410 (gcore_find_signalled_thread): Delete.
5411 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5412 'gdbarch' and 'thread_info' declarations.
5413 (gcore_build_thread_register_notes): Delete declaration.
5414 (gcore_find_signalled_thread): Likewise.
5415 * fbsd-tdep.c: Remove 'gcore.h' include.
5416 (struct fbsd_collect_regset_section_cb_data): New struct.
5417 (fbsd_collect_regset_section_cb): New function.
5418 (fbsd_collect_thread_registers): New function.
5419 (struct fbsd_corefile_thread_data): New struct.
5420 (fbsd_corefile_thread): New function.
5421 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5422 * linux-tdep.c: Remove 'gcore.h' include.
5423 (struct linux_collect_regset_section_cb_data): New struct.
5424 (linux_collect_regset_section_cb): New function.
5425 (linux_collect_thread_registers): New function.
5426 (linux_corefile_thread): Call Linux specific code.
5427 (find_signalled_thread): New function.
5428 (linux_make_corefile_notes): Call find_signalled_thread.
5429
f73e424f
TT
54302021-02-09 Tom Tromey <tromey@adacore.com>
5431
5432 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5433 not_lval value.
5434 * value.c (value_contents_copy_raw): Now static.
5435 * value.h (value_contents_copy_raw): Don't declare.
5436
a4f0544b
TT
54372021-02-09 Tom Tromey <tromey@adacore.com>
5438
5439 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5440 fields.
5441
9b3e4b5d
SV
54422021-02-08 Shahab Vahedi <shahab@synopsys.com>
5443
5444 PR tdep/27369
5445 * arc-linux-tdep.c (handle_atomic_sequence): New.
5446 (arc_linux_software_single_step): Call handle_atomic_sequence().
5447
29db1eb3
AB
54482021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5449
5450 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5451 function.
5452 (REQUIRE_WINDOW): Call is_valid member function.
5453 (REQUIRE_WINDOW_FOR_SETTER): New define.
5454 (gdbpy_tui_is_valid): Call is_valid member function.
5455 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5456 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5457 tui_active too.
5458 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5459 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5460 the function.
5461
e0c23e11
AB
54622021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5463
5464 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5465 for the title is not nullptr.
5466
1cf23996
AB
54672021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5468
5469 * tui-layout.c (saved_tui_windows): Delete.
5470 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5471 call new get_windows member function instead.
5472 (tui_get_window_by_name): Check in tui_windows.
5473 (tui_layout_window::apply): Don't add to tui_windows.
5474 * tui-layout.h (tui_layout_base::get_windows): New member function.
5475 (tui_layout_window::get_windows): Likewise.
5476 (tui_layout_split::get_windows): Likewise.
5477
a53a2657
AB
54782021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5479
5480 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5481 of the window objects.
5482
2708dbbd
AB
54832021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5484
5485 * python/python.c (gdbpy_print_stack): Reformat an error message.
5486
cd074e04
AB
54872021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5488
5489 * tui/tui-interp.c (tui_command_line_handler): New function.
5490 (tui_interp::resume): Register tui_command_line_handler as the
5491 input_handler.
5492 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5493 function.
5494 (tui_getc_1): Delete handling of '\n' and '\r'.
5495 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5496
4cf28e91
HD
54972021-02-07 Hannes Domani <ssbssa@yahoo.de>
5498
5499 * tui/tui-regs.c (tui_data_window::display_registers_from):
5500 Mark invisible register sub windows.
5501 (tui_data_window::check_register_values): Ignore invisible
5502 register sub windows.
5503
3537bc23
HD
55042021-02-07 Hannes Domani <ssbssa@yahoo.de>
5505
5506 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5507 n_spaces with a negative value.
5508
5fc2d6aa
HD
55092021-02-07 Hannes Domani <ssbssa@yahoo.de>
5510
5511 * tui/tui-regs.c (tui_data_window::display_registers_from):
5512 Add refresh_window call.
5513
83962f83
HD
55142021-02-07 Hannes Domani <ssbssa@yahoo.de>
5515
5516 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5517
0110ec82
SM
55182021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5519
5520 * symmisc.c (std_in, std_out, std_err): Remove.
5521 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5522
7c6944ab
TV
55232021-02-05 Tom de Vries <tdevries@suse.de>
5524
5525 PR breakpoints/27330
5526 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5527 glibc object file has debug info.
5528
e77b0004
TV
55292021-02-05 Tom de Vries <tdevries@suse.de>
5530
5531 PR symtab/27333
5532 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5533
0e857c82
TV
55342021-02-05 Tom de Vries <tdevries@suse.de>
5535
5536 PR breakpoints/27313
5537 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5538 syscall numbers.
5539
bdfea17e
TT
55402021-02-05 Tom Tromey <tom@tromey.com>
5541
5542 * compile/compile-c-support.c (get_compile_context)
5543 (c_get_compile_context, cplus_get_compile_context): Change return
5544 type.
5545 * language.c (language_defn::get_compile_instance): New method.
5546 * language.h (language_defn::get_compile_instance): Change return
5547 type. No longer inline.
5548 * c-lang.c (c_language::get_compile_instance): Change return type.
5549 (cplus_language::get_compile_instance): Change return type.
5550 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5551 Change return type.
5552 * compile/compile.c (compile_to_object): Update.
5553
1b30f421
TT
55542021-02-05 Tom Tromey <tom@tromey.com>
5555
5556 * parser-defs.h (write_exp_symbol_reference): Declare.
5557 * parse.c (write_exp_symbol_reference): New function.
5558 * p-exp.y (variable): Use write_exp_symbol_reference.
5559 * m2-exp.y (variable): Use write_exp_symbol_reference.
5560 * f-exp.y (variable): Use write_exp_symbol_reference.
5561 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5562 * c-exp.y (variable): Use write_exp_symbol_reference.
5563
ae710496
TV
55642021-02-05 Tom de Vries <tdevries@suse.de>
5565
5566 PR exp/27265
5567 * valarith.c (complex_binop): Throw an error if complex type can't
5568 be created.
5569
d3b54e63
TV
55702021-02-05 Tom de Vries <tdevries@suse.de>
5571
5572 PR symtab/27307
5573 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5574 return.
5575
fc9a13fb
TV
55762021-02-05 Tom de Vries <tdevries@suse.de>
5577
5578 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5579
04b4939b
MF
55802021-02-04 Mike Frysinger <vapier@gentoo.org>
5581
5582 * configure.tgt (riscv*-*-*): Set gdb_sim.
5583
6ff267e1
SM
55842021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5585
5586 * target.c (target_is_non_stop_p): Return bool.
5587 * target.h (target_is_non_stop_p): Return bool.
5588
fdbc5215
SM
55892021-02-04 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * record-full.c (record_full_async_inferior_event_handler):
5592 Don't clear async event handler.
5593 (record_full_base_target::wait): Clear async event handler at
5594 beginning.
5595
85d3ad8e
SM
55962021-02-04 Simon Marchi <simon.marchi@efficios.com>
5597
5598 * record-btrace.c (record_btrace_handle_async_inferior_event):
5599 Don't clear async event handler.
5600 (record_btrace_target::wait): Clear async event handler at
5601 beginning.
5602
baa8575b
SM
56032021-02-04 Simon Marchi <simon.marchi@efficios.com>
5604
5605 * remote.c (remote_target::wait): Clear async event handler at
5606 beginning, mark if needed at the end.
5607 (remote_async_inferior_event_handler): Don't set or clear async
5608 event handler.
5609
6b36ddeb
SM
56102021-02-04 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * async-event.h (async_event_handler_func): Add documentation.
5613 * async-event.c (check_async_event_handlers): Don't clear
5614 async_event_handler ready flag.
5615 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5616 flag.
5617 * record-btrace.c (record_btrace_handle_async_inferior_event):
5618 Likewise.
5619 * record-full.c (record_full_async_inferior_event_handler):
5620 Likewise.
5621 * remote-notif.c (remote_async_get_pending_events_handler):
5622 Likewise.
5623 * remote.c (remote_async_inferior_event_handler): Likewise.
5624
72d383bb
SM
56252021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5626
5627 * infrun.c (handle_inferior_event): Move stop_soon variable to
5628 inner scope.
5629
408f6686
PA
56302021-02-03 Pedro Alves <pedro@palves.net>
5631
5632 * infcmd.c (detach_command): Hold strong reference to target, and
5633 if all-stop on entry, restart threads on exit.
5634 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5635 (restart_stepped_thread): ... this new function. Also handle
5636 trap_expected.
5637 (restart_after_all_stop_detach): New function.
5638 * infrun.h (restart_after_all_stop_detach): Declare.
5639
ac7d717c
PA
56402021-02-03 Pedro Alves <pedro@palves.net>
5641
5642 * infrun.c (struct step_over_info): Initialize fields.
5643 (prepare_for_detach): Handle ongoing in-line step over.
5644
e87f0fe8
PA
56452021-02-03 Pedro Alves <pedro@palves.net>
5646
5647 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5648 here...
5649 * remote.c (remote_target::remote_detach_1): ... and here ...
5650 * target.c (target_detach): ... instead of here.
5651 * target.h (target_ops::detach): Add comment.
5652
8ff53139
PA
56532021-02-03 Pedro Alves <pedro@palves.net>
5654
5655 * infrun.c (struct wait_one_event): Move higher up.
5656 (prepare_for_detach): Abort in-progress displaced steps instead of
5657 letting them complete.
5658 (handle_one): If the inferior is detaching, don't add the thread
5659 back to the global step-over chain.
5660 (restart_threads): Don't restart threads if detaching.
5661 (handle_signal_stop): Remove inferior::detaching reference.
5662
91475068
PA
56632021-02-03 Pedro Alves <pedro@palves.net>
5664
5665 * infrun.c (prepare_for_detach): Don't release scoped_restore
5666 before returning.
5667
d758e62c
PA
56682021-02-03 Pedro Alves <pedro@palves.net>
5669
5670 * infrun.c (handle_one): New function, factored out from ...
5671 (stop_all_threads): ... here.
5672
b0083dd7
PA
56732021-02-03 Pedro Alves <pedro@palves.net>
5674
5675 * remote.c (remote_notif_stop_ack): Don't error out on
5676 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5677 (remote_target::discard_pending_stop_replies): Don't delete
5678 in-flight notification; instead, clear its contents.
5679
621cc310
PA
56802021-02-03 Pedro Alves <pedro@palves.net>
5681
5682 * remote.c (extended_remote_target::attach): Set target async in
5683 the target-non-stop path too.
5684
2ab76a18
PA
56852021-02-03 Pedro Alves <pedro@palves.net>
5686
5687 PR gdb/27055
5688 * infrun.c (handle_signal_stop): Move main context_switch call
5689 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5690
2e3773ff
LS
56912021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5692
5693 * NEWS (Changed commands): Add entry for the behavior change of
5694 the inferior command.
5695 * inferior.c (inferior_command): When no argument is given to the
5696 inferior command, display info about the currently selected
5697 inferior.
5698
e57933dc
SM
56992021-02-02 Simon Marchi <simon.marchi@efficios.com>
5700
5701 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5702 a sect_offset.
5703 (read_attribute_reprocess): Adjust.
5704
2b0c7f41
SM
57052021-02-02 Simon Marchi <simon.marchi@efficios.com>
5706
5707 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5708 <gnu_ranges_base>: ... this...
5709 <rnglists_base>: ... and this.
5710 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5711 <gnu_ranges_base>: ... this...
5712 <rnglists_base>: ... and this.
5713 (read_cutu_die_from_dwo): Adjust
5714 (dwarf2_get_pc_bounds): Adjust
5715 (dwarf2_record_block_ranges): Adjust.
5716 (read_full_die_1): Adjust
5717 (partial_die_info::read): Adjust.
5718 (read_rnglist_index): Adjust.
5719
a1c40103
SM
57202021-02-02 Simon Marchi <simon.marchi@efficios.com>
5721
5722 PR gdb/26813
5723 * dwarf2/read.c (read_loclists_rnglists_header): Add
5724 header_offset parameter and use it.
5725 (read_loclist_index): Read header of the current contribution,
5726 not the one at the beginning of the section.
5727 (read_rnglist_index): Likewise.
5728
b1829e1b
SM
57292021-02-02 Simon Marchi <simon.marchi@efficios.com>
5730
5731 PR gdb/26813
5732 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5733 requires_reprocessing flag.
5734 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5735 DW_FORM_loclistx.
5736 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5737 and DW_FORM_loclistx.
5738 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5739 instead of set_address for DW_FORM_loclistx and
5740 DW_FORM_rnglistx.
5741
0c800c6e
SM
57422021-02-02 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * dwarf2/read.c (read_loclist_index): Remove bound check for
5745 start of offset.
5746 (read_rnglist_index): Likewise.
5747
05787bad
SM
57482021-02-02 Simon Marchi <simon.marchi@efficios.com>
5749
5750 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5751 of the offset.
5752
5e4d9bbc
SM
57532021-02-02 Simon Marchi <simon.marchi@efficios.com>
5754
5755 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5756
a0c1eeba
SM
57572021-02-02 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * dwarf2/read.c (read_loclist_index): Change complaints into
5760 errors.
5761
2bd3e4b8
TV
57622021-02-02 Tom de Vries <tdevries@suse.de>
5763
5764 PR symtab/24620
5765 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5766 psymtab == nullptr.
5767
82a1fd3a
AB
57682021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5769
5770 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5771 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5772 here from linux-tdep.c and given a new name. Minor cleanups.
5773 (gcore_collect_regset_section_cb): Likewise.
5774 (gcore_collect_thread_registers): Likewise.
5775 (gcore_build_thread_register_notes): Likewise.
5776 (gcore_find_signalled_thread): Likewise.
5777 * gcore.h (gcore_build_thread_register_notes): Declare.
5778 (gcore_find_signalled_thread): Declare.
5779 * fbsd-tdep.c: Add 'gcore.h' include.
5780 (struct fbsd_collect_regset_section_cb_data): Delete.
5781 (fbsd_collect_regset_section_cb): Delete.
5782 (fbsd_collect_thread_registers): Delete.
5783 (struct fbsd_corefile_thread_data): Delete.
5784 (fbsd_corefile_thread): Delete.
5785 (fbsd_make_corefile_notes): Call
5786 gcore_build_thread_register_notes instead of the now deleted
5787 FreeBSD code.
5788 * linux-tdep.c: Add 'gcore.h' include.
5789 (struct linux_collect_regset_section_cb_data): Delete.
5790 (linux_collect_regset_section_cb): Delete.
5791 (linux_collect_thread_registers): Delete.
5792 (linux_corefile_thread): Call
5793 gcore_build_thread_register_notes.
5794 (find_signalled_thread): Delete.
5795 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5796
ebde6f2d
TV
57972021-01-29 Tom de Vries <tdevries@suse.de>
5798
5799 PR breakpoints/26063
5800 * infrun.c (process_event_stop_test): Reset
5801 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5802 changed.
5803
0f93c3a2
AB
58042021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5805
5806 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5807 assert. Extend the header comment.
5808
f237f998
AB
58092021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5810
5811 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5812 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5813 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5814 (tui_locator_win_info_ptr): Delete declaration.
5815 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5816 (tui_disasm_window::set_contents): Fetch state from tui_location
5817 global.
5818 (tui_get_begin_asm_address): Likewise.
5819 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5820 for locator window.
5821 (get_locator_window): Delete.
5822 (initialize_known_windows): Treat locator window just like all the
5823 rest.
5824 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5825 (tui_source_window::set_contents): Fetch state from tui_location
5826 global.
5827 (tui_source_window::showing_source_p): Likewise.
5828 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5829 (_locator): Delete.
5830 (tui_locator_win_info_ptr): Delete.
5831 (tui_locator_window::make_status_line): Fetch state from
5832 tui_location global.
5833 (tui_locator_window::rerender): Remove check of 'handle',
5834 reindent function body.
5835 (tui_locator_window::set_locator_fullname): Delete.
5836 (tui_locator_window::set_locator_info): Delete.
5837 (tui_update_locator_fullname): Delete.
5838 (tui_show_frame_info): Likewise.
5839 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5840 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5841 tui/tui-location.h and renamed to
5842 tui_location_tracker::set_location.
5843 (tui_locator_window::set_locator_fullname): Moved to
5844 tui/tui-location.h and renamed to
5845 tui_location_tracker::set_fullname.
5846 (tui_locator_window::full_name): Delete.
5847 (tui_locator_window::proc_name): Delete.
5848 (tui_locator_window::line_no): Delete.
5849 (tui_locator_window::addr): Delete.
5850 (tui_locator_window::gdbarch): Delete.
5851 (tui_update_locator_fullname): Delete declaration.
5852 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5853 for locator window.
5854 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5855 (tui_display_main): Call function on tui_location directly.
5856 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5857 * tui/tui-location.c: New file.
5858 * tui/tui-location.h: New file.
5859
8ee511af
SM
58602021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * gdbtypes.h (get_type_arch): Rename to...
5863 (struct type) <arch>: ... this, update all users.
5864
6ac37371
SM
58652021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5866
5867 * gdbtypes.h (struct type) <arch>: Rename to...
5868 <arch_owner>: ... this, update all users.
5869 <objfile>: Rename to...
5870 <objfile_owner>: ... this, update all users.
5871
24cf6389
AB
58722021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * gdbcmd.h (execute_command_to_string): Update comment.
5875 * top.c (execute_command_to_string): Update header comment.
5876
2a7f6487
TV
58772021-01-28 Tom de Vries <tdevries@suse.de>
5878
5879 PR breakpoints/27205
5880 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5881 (create_longjmp_master_breakpoint_names): New function, factored out
5882 of ...
5883 (create_longjmp_master_breakpoint): ... here. Only try to install
5884 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5885 breakpoint in libc.so failed.
5886
59b59f08
LS
58872021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5888
5889 PR gdb/27133
5890 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5891 unique_ptr is released when the wrapped pointer is kept for later
5892 use.
5893
807f647c
MM
58942021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5895
5896 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5897 BLR and BR instructions.
5898 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5899 (enum aarch64_masks): New.
5900
4ef367bf
TT
59012021-01-26 Tom Tromey <tromey@adacore.com>
5902
5903 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5904 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5905 (windows_init_thread_list, windows_nat::handle_load_dll)
5906 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5907 (windows_nat_target::resume)
5908 (windows_nat_target::get_windows_debug_event)
5909 (windows_nat_target::interrupt, windows_xfer_memory)
5910 (windows_nat_target::close): Update.
5911 * nat/windows-nat.c (DEBUG_EVENTS): Use
5912 debug_prefixed_printf_cond.
5913 (matching_pending_stop, fetch_pending_stop)
5914 (continue_last_debug_event): Update.
5915
4cb1265b
MS
59162020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5917
5918 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5919 elfcore_write_file_note.
5920
d0cc52bd
SV
59212021-01-26 Shahab Vahedi <shahab@synopsys.com>
5922
5923 * arc-tdep.c (arc_add_reggroups): New function.
5924 (arc_gdbarch_init): Call arc_add_reggroups.
5925
ac3571d9 59262021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5927
5928 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5929
9f6c202e
TV
59302021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5931 Simon Marchi <simon.marchi@polymtl.ca>
5932 Tom de Vries <tdevries@suse.de>
5933
5934 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5935 DW_AT_ranges.
5936
a625a8c9
TT
59372021-01-25 Tom Tromey <tromey@adacore.com>
5938
5939 * dwarf2/read.c (get_mpz): New function.
5940 (get_dwarf2_rational_constant): Use it.
5941
19184910
TT
59422021-01-25 Tom Tromey <tromey@adacore.com>
5943
5944 * ada-lang.c (resolve_subexp): Handle array context.
5945
b10bae18
TT
59462021-01-23 Tom Tromey <tom@tromey.com>
5947
5948 PR compile/25575
5949 * compile/compile-loc2c.c (note_register): New function.
5950 (pushf_register_address, pushf_register): Use it.
5951
3637a558
TT
59522021-01-23 Tom Tromey <tom@tromey.com>
5953
5954 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5955 Change type of "registers_used".
5956 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5957 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5958 (locexpr_generate_c_location, loclist_generate_c_location): Change
5959 type of "registers_used".
5960 * compile/compile.h (compile_dwarf_expr_to_c)
5961 (compile_dwarf_bounds_to_c): Update.
5962 * compile/compile-loc2c.c (pushf_register_address)
5963 (pushf_register, do_compile_dwarf_expr_to_c)
5964 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5965 of "registers_used".
5966 * compile/compile-c.h (generate_c_for_variable_locations):
5967 Update.
5968 * compile/compile-c-symbols.c (generate_vla_size)
5969 (generate_c_for_for_one_variable): Change type of
5970 "registers_used".
5971 (generate_c_for_variable_locations): Return std::vector.
5972 * compile/compile-c-support.c (generate_register_struct): Change
5973 type of "registers_used".
5974 (compute): Update.
5975
9f7f6cb8
TT
59762021-01-23 Tom Tromey <tom@tromey.com>
5977
5978 * compile/compile-internal.h (class compile_instance)
5979 <set_arguments>: Change return type.
5980 * compile/compile.c (compile_to_object): Remove call to reset.
5981 (compile_instance::set_arguments): Change return type.
5982
dd5ca05f
SM
59832021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5984
5985 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5986 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5987
d3ee35db
LS
59882021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5989
5990 * Makefile.in (SELFTESTS_SRCS): Add
5991 unittests/gdb_tilde_expand-selftests.c.
5992 * unittests/gdb_tilde_expand-selftests.c: New file.
5993
9d2d8a16
AB
59942021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 PR cli/25956
5997 * NEWS: Mention new command.
5998 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5999 (version_style): Define.
6000 (cli_style_option::cli_style_option): Add intensity parameter, and
6001 use as appropriate.
6002 (_initialize_cli_style): Register version style set/show commands.
6003 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6004 (version_style): Declare.
6005 * top.c (print_gdb_version): Use version_stype, and styled_string
6006 to print the GDB version string.
6007
e7b43072
AB
60082021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6009
6010 * utils.c (emit_style_escape): Only emit an escape sequence if the
6011 requested style is different than the current applied style.
6012 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6013 current applied_style.
6014 (fputs_styled): Remove is_default check.
6015 (fputs_styled_unfiltered): Likewise.
6016 (vfprintf_styled_no_gdbfmt): Likewise.
6017
2189c312
SM
60182021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * remote.h (remote_debug_printf): New.
6021 (remote_debug_printf_nofunc): New.
6022 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6023 * remote.c: Use above macros throughout file.
6024
02349803
SM
60252021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6026
6027 * remote.h (remote_debug): Change to bool.
6028 * remote.c (remote_debug): Change to bool.
6029 (_initialize_remote): Adjust.
6030
cda09ec9
SM
60312021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * target.h (remote_debug): Move to...
6034 * remote.h (remote_debug): ... here.
6035 * top.c (remote_debug): Move to...
6036 * remote.c (remote_debug): ... here.
6037 * remote-sim.c: Include remote.h.
6038
baf2b57f
SM
60392021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6040
6041 * cli/cli-cmds.c (show_remote_debug): Remove.
6042 (show_remote_timeout): Remove.
6043 (_initialize_cli_cmds): Don't register commands.
6044 * remote.c (show_remote_debug): Move here.
6045 (show_remote_timeout): Move here.
6046 (_initialize_remote): Register commands.
6047
344e9841
SM
60482021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6049
6050 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6051 type::objfile method instead.
6052
30625020
SM
60532021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6056 use the type::is_objfile_owned method.
6057
5b7d941b
SM
60582021-01-22 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6061 (TYPE_OWNER): Remove.
6062 (TYPE_OBJFILE): Adjust.
6063 (struct main_type) <flag_objfile_owned>: Rename to...
6064 <m_flag_objfile_owned>: ... this.
6065 <owner>: Rename to...
6066 <m_owner>: ... this.
6067 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6068 methods.
6069 (TYPE_ALLOC): Adjust.
6070 * gdbtypes.c (alloc_type): Adjust.
6071 (alloc_type_arch): Adjust.
6072 (alloc_type_copy): Adjust.
6073 (get_type_arch): Adjust.
6074 (smash_type): Adjust.
6075 (lookup_array_range_type): Adjust.
6076 (recursive_dump_type): Adjust.
6077 (copy_type_recursive): Adjust.
6078 * compile/compile-c-types.c (convert_func): Adjust.
6079 (convert_type_basic): Adjust.
6080 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6081 Adjust.
6082 * language.c
6083 (language_arch_info::type_and_symbol::alloc_type_symbol):
6084 Adjust.
6085
d5d24e12
LM
60862021-01-21 Luis Machado <luis.machado@linaro.org>
6087
6088 * coffread.c (enter_linenos): Passing string to complaint.
6089 * valops.c (value_assign): Make array view.
6090
a59902a7
SM
60912021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6092
6093 * auto-load.h (debug_auto_load): Move here.
6094 (auto_load_debug_printf): New.
6095 * auto-load.c: Use auto_load_debug_printf.
6096 (debug_auto_load): Move to header.
6097 * linux-thread-db.c (try_thread_db_load): Use
6098 auto_load_debug_printf.
6099 * main.c (captured_main_1): Likewise.
6100
d3abc0ce
SM
61012021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * f-valprint.c (f77_array_offset_tbl): Remove.
6104
1e15fcac
SM
61052021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6106
6107 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6108
439706e6
SM
61092021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6110
6111 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6112 of gdb_select.
6113
325d39e4
HD
61142021-01-21 Hannes Domani <ssbssa@yahoo.de>
6115
6116 PR python/19151
6117 * python/py-breakpoint.c (bppy_get_location): Handle
6118 bp_hardware_breakpoint.
6119 (bppy_init): Likewise.
6120 (gdbpy_breakpoint_created): Likewise.
6121
7cb6d92a
SM
61222021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6123
6124 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6125
d4dd4fca
SM
61262021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6127
6128 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6129 (_initialize_gdb_bfd): Adjust.
6130
de53369b
SM
61312021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6132
6133 PR gdb/26828
6134 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6135
17e593e9
SM
61362021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6137
6138 * dwarf2/read.c (follow_die_offset): Add logging.
6139 (dwarf2_per_objfile::age_comp_units): Add logging.
6140
6bd434d6
SM
61412021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6144 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6145 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6146 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6147 * arm-tdep.c (struct frame_unwind): Make static.
6148 * auto-load.c (auto_load_safe_path_vec): Make static.
6149 * csky-tdep.c (csky_stub_unwind): Make static.
6150 * gdbarch.c (gdbarch_data_registry): Make static.
6151 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6152 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6153 * i386-tdep.c (i386_frame_setup_skip_insns,
6154 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6155 Make static.
6156 * infrun.c (observer_mode): Make static.
6157 * linux-nat.c (sigchld_action): Make static.
6158 * linux-thread-db.c (thread_db_list): Make static.
6159 * maint-test-options.c (maintenance_test_options_list):
6160 * mep-tdep.c (mep_csr_registers): Make static.
6161 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6162 (stats): Make static.
6163 * nat/linux-osdata.c (struct osdata_type): Make static.
6164 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6165 * progspace.c (last_program_space_num): Make static.
6166 * python/py-param.c (struct parm_constant): Remove struct type
6167 name.
6168 (parm_constants): Make static.
6169 * python/py-record-btrace.c (btpy_list_methods): Make static.
6170 * python/py-record.c (recpy_gap_type): Make static.
6171 * record.c (record_goto_cmdlist): Make static.
6172 * regcache.c (regcache_descr_handle): Make static.
6173 * registry.h (DEFINE_REGISTRY): Make definition static.
6174 * symmisc.c (std_in, std_out, std_err): Make static.
6175 * top.c (previous_saved_command_line): Make static.
6176 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6177 static.
6178 * unittests/command-def-selftests.c (nr_duplicates,
6179 nr_invalid_prefixcmd, lists): Make static.
6180 * unittests/observable-selftests.c (test_notification): Make
6181 static.
6182 * unittests/optional/assignment/1.cc (counter): Make static.
6183 * unittests/optional/assignment/2.cc (counter): Make static.
6184 * unittests/optional/assignment/3.cc (counter): Make static.
6185 * unittests/optional/assignment/4.cc (counter): Make static.
6186 * unittests/optional/assignment/5.cc (counter): Make static.
6187 * unittests/optional/assignment/6.cc (counter): Make static.
6188
a6c11cbb
JS
61892021-01-20 Joel Sherrill <joel@rtems.org>
6190
6191 PR gdb/27219
6192 * remote.c (struct remote_thread_info) <resume_state>: Rename
6193 to...
6194 <get_resume_state>: ... this.
6195 (remote_target::resume): Adjust.
6196 (remote_target::commit_resume): Adjust.
6197 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6198
6f52fdf4
SDJ
61992021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6200 Tom Tromey <tom@tromey.com>
6201
6202 * stap-probe.c (stap_parse_single_operand): Handle '!'
6203 operator.
6204 (stap_parse_argument_conditionally): Likewise.
6205 Skip spaces after processing open-parenthesis sub-expression.
6206 (stap_parse_argument_1): Skip spaces after call to
6207 stap_parse_argument_conditionally.
6208 Handle case when right-side expression is a parenthesized
6209 sub-expression.
6210 Skip spaces after call to stap_parse_argument_1.
6211
1c3b85ad
LS
62122021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6213
6214 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6215
a9a87d35
LM
62162021-01-19 Luis Machado <luis.machado@linaro.org>
6217
6218 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6219 memory and save data.
6220 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6221 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6222 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6223 (trad_frame_value_bytes_p): Remove.
6224 (trad_frame_reset_saved_regs): Adjust documentation.
6225 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6226 constructor and reset the state of the registers.
6227 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6228 (trad_frame_value_bytes_p, trad_frame_set_value)
6229 (trad_frame_set_realreg, trad_frame_set_addr)
6230 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6231 (trad_frame_set_reg_realreg): Update to call member function.
6232 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6233 (trad_frame_get_prev_register): Likewise.
6234
6235 * aarch64-tdep.c (aarch64_analyze_prologue)
6236 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6237 (aarch64_prologue_prev_register): Update to use member functions.
6238 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6239 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6240 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6241 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6242 (arm_make_epilogue_frame_cache): Likewise.
6243 * avr-tdep.c (avr_frame_unwind_cache)
6244 (avr_frame_prev_register): Likewise.
6245 * cris-tdep.c (cris_scan_prologue): Likewise.
6246 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6247 * frv-tdep.c (frv_analyze_prologue): Likewise.
6248 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6249 * lm32-tdep.c (lm32_frame_cache): Likewise.
6250 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6251 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6252 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6253 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6254 (reset_saved_regs): Adjust to set realreg.
6255 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6256 call member functions.
6257 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6258 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6259 (s390_backchain_frame_unwind_cache): Likewise.
6260 * score-tdep.c (score7_analyze_prologue)
6261 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6262 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6263 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6264 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6265 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6266 * tilegx-tdep.c (tilegx_analyze_prologue)
6267 (tilegx_frame_cache): Likewise.
6268 * v850-tdep.c (v850_frame_cache): Likewise.
6269 * vax-tdep.c (vax_frame_cache): Likewise.
6270
bdec2917
LM
62712021-01-19 Luis Machado <luis.machado@linaro.org>
6272
6273 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6274 of buffer + length.
6275 (put_frame_register_bytes): Likewise.
6276 Adjust documentation.
6277 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6278 (safe_frame_unwind_memory): Likewise.
6279 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6280 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6281 gdb::array_view.
6282 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6283 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6284 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6285 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6286 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6287 * dwarf2/loc.c (rw_pieced_value): Likewise.
6288 * hppa-tdep.c (hppa_frame_cache): Likewise.
6289 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6290 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6291 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6292 (i386_linux_rt_sigtramp_start): Likewise.
6293 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6294 * i386-tdep.c (i386_register_to_value): Likewise.
6295 * i387-tdep.c (i387_register_to_value): Likewise.
6296 * ia64-tdep.c (ia64_register_to_value): Likewise.
6297 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6298 (m32r_linux_rt_sigtramp_start): Likewise.
6299 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6300 * m68k-tdep.c (m68k_register_to_value): Likewise.
6301 * mips-tdep.c (mips_register_to_value)
6302 (mips_value_to_register): Likewise.
6303 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6304 (ppcfbsd_sigtramp_frame_cache): Likewise.
6305 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6306 (ppcobsd_sigtramp_frame_cache): Likewise.
6307 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6308 (rs6000_register_to_value): Likewise.
6309 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6310 * tramp-frame.c (tramp_frame_start): Likewise.
6311 * valops.c (value_assign): Likewise.
6312
ccbe4c82
LM
63132021-01-19 Luis Machado <luis.machado@linaro.org>
6314
6315 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6316 array_view.
6317 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6318 instead of buffer and size.
6319 (trad_frame_set_reg_value_bytes): Likewise.
6320 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6321 (trad_frame_set_value_bytes): Likewise.
6322
0e7620dc
MF
63232021-01-18 Mike Frysinger <vapier@gentoo.org>
6324
6325 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6326
6a9ad81c
AB
63272021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6328
6329 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6330 (riscv_fbsd_gregset): Use riscv_supply_regset.
6331 (riscv_fbsd_fpregset): Likewise.
6332 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6333 (riscv_linux_fregset): Likewise.
6334 * riscv-tdep.c (riscv_supply_regset): Define new function.
6335 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6336
d3d7d1ba
TV
63372021-01-18 Tom de Vries <tdevries@suse.de>
6338
6339 PR tdep/27172
6340 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6341 New macro.
6342 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6343 for SEGV_BNDERR.
6344
aa2838cc
SM
63452021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6346
6347 * remote.c (class remote_target) <remote_hostio_send_command,
6348 remote_hostio_parse_result>: Constify parameter.
6349 (remote_hostio_parse_result): Likewise.
6350 (remote_target::remote_hostio_send_command): Adjust.
6351 (remote_target::remote_hostio_pread_vFile): Adjust.
6352 (remote_target::fileio_readlink): Adjust.
6353 (remote_target::fileio_fstat): Adjust.
6354
b5c8f22d
SM
63552021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6356
6357 * remote.c (remote_target::start_remote): Move wait_status to
6358 narrower scope.
6359
e3b2741b
SM
63602021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6361
6362 * remote.c (class remote_target):
6363 <add_current_inferior_and_thread>: Constify parameter.
6364 (stop_reply_extract_thread): Likewise.
6365 (remote_target::get_current_thread): Likewise.
6366 (remote_target::add_current_inferior_and_thread): Likewise.
6367
cecb1912
SM
63682021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * remote.c (class remote_target)
6371 <remote_unpack_thread_info_response,
6372 parse_threadlist_response>: Constify parameter and/or return
6373 value and or local variable.
6374 (stub_unpack_int): Likewise.
6375 (unpack_nibble): Likewise.
6376 (unpack_byte): Likewise.
6377 (unpack_int): Likewise.
6378 (unpack_string): Likewise.
6379 (unpack_threadid): Likewise.
6380 (remote_target::remote_unpack_thread_info_response): Likewise.
6381 (remote_target::parse_threadlist_response): Likewise.
6382
5a11fff0
AB
63832021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6384
6385 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6386
17e89137
LS
63872021-01-14 Lancelot Six <lsix@lancelotsix.com>
6388
6389 * MAINTAINERS (Write After Approval): Add myself.
6390
58eadc4b
BE
63912021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6392
6393 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6394 because is_trivially_default_constructible was first implemented with
6395 gcc-5.
6396
5fae2a2c
TV
63972021-01-14 Tom de Vries <tdevries@suse.de>
6398
6399 PR breakpoints/27151
6400 * objfiles.h (in_plt_section): Handle .plt.sec.
6401
8f66807b
AB
64022021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6403
6404 PR gdb/26819
6405 * remote.c
6406 (remote_target::select_thread_for_ambiguous_stop_reply): New
6407 member function.
6408 (remote_target::process_stop_reply): Call
6409 select_thread_for_ambiguous_stop_reply.
6410
bd497355
SM
64112021-01-13 Simon Marchi <simon.marchi@efficios.com>
6412
6413 * record-btrace.c (class record_btrace_target): Remove.
6414 (record_btrace_target::commit_resume): Remove.
6415 * record-full.c (class record_full_target): Remove.
6416 (record_full_target::commit_resume): Remove.
6417
c9d22089
SM
64182021-01-13 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * remote.c (enum class resume_state): New.
6421 (struct resumed_pending_vcont_info): New.
6422 (struct remote_thread_info) <resume_state, set_not_resumed,
6423 set_resumed_pending_vcont, resumed_pending_vcont_info,
6424 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6425 New.
6426 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6427 (remote_target::remote_add_thread): Adjust.
6428 (remote_target::process_initial_stop_replies): Adjust.
6429 (remote_target::resume): Adjust.
6430 (remote_target::commit_resume): Rely on state in
6431 remote_thread_info and not on tp->executing.
6432 (remote_target::process_stop_reply): Adjust.
6433
d8d1feb4
SM
64342021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6435
6436 * arc-tdep.h (arc_debug_printf): New.
6437 * arc-tdep.c: Use arc_debug_printf.
6438 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6439 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6440 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6441
fb0f5031
SM
64422021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6443
6444 * arc-tdep.h (arc_debug): Change type to bool.
6445 * arc-tdep.c (arc_debug): Change type to bool.
6446 (arc_analyze_prologue): Adjust.
6447 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6448 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6449
5bf7e91b
SM
64502021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6451
6452 * auto-load.c (auto_load_objfile_script_1): Use bool.
6453 (execute_script_contents): Use bool.
6454
db972fce
SM
64552021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6456
6457 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6458 comment here.
6459 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6460 comment to header.
6461 * extension-priv.h (struct extension_language_script_ops)
6462 <auto_load_enabled>: Return bool.
6463 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6464 comment here.
6465 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6466 comment to header.
6467 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6468 move comment here.
6469 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6470 move comment to header.
6471 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6472 move comment here.
6473 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6474 move comment to header.
6475
5e12f48f
SM
64762021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * auto-load.h (file_is_auto_load_safe): Change return type to
6479 bool, move comment here.
6480 * auto-load.c (file_is_auto_load_safe): Change return type and
6481 advice_printed to bool. Move comment to header.
6482
54ca9002
SM
64832021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6484
6485 * jit.c (jit_debug_printf): New, use throughout file.
6486
24a7f1b5
SM
64872021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6488
6489 * infrun.c (normal_stop): Fix indentation.
6490
fe7a351a
SM
64912021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6492
6493 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6494 declarations to ...
6495 * symfile.h: ... here.
6496 * symfile.c: Update doc.
6497
16e9019e
SM
64982021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6499
6500 * target.h (baud_rate, serial_parity): Move declarations...
6501 * serial.h: ... here.
6502 * main.c: Include serial.h.
6503 * serial.c (baud_rate, serial_parity): Update doc.
6504
b2f2ae0d
SM
65052021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6506
6507 * top.c (pre_init_ui_hook): Remove.
6508
5291fe3c
SP
65092021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6510
6511 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6512 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6513 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6514 * features/aarch64-fpu.xml: Add bfloat16 type.
6515
ce38f5ed
AB
65162021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6517
6518 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6519
7c654b71
AB
65202021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6521
6522 * f-exp.y (dot_ops): Rename to...
6523 (fortran_operators): ...this. Add a header comment. Add symbol
6524 based operators.
6525 (yylex): Update to use fortran_operators not dot_ops. Remove
6526 special handling for '**', this is now included in
6527 fortran_operators.
6528
c6185dce
SM
65292021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6530
6531 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6532 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6533 * aarch64-tdep.c: Use aarch64_debug_printf.
6534
eef401dc
SM
65352021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6538 file.
6539
062eaacb
SM
65402021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * jit.c (jit_debug): Change type to bool.
6543 (_initialize_jit): Adjust.
6544
54585eee
TT
65452021-01-09 Tom Tromey <tom@tromey.com>
6546
6547 PR compile/23672
6548 * compile/compile.c (compile_to_object): Avoid crash when
6549 osabi_triplet_regexp returns NULL.
6550
bc167b6b
TT
65512021-01-09 Tom Tromey <tom@tromey.com>
6552
6553 * tracepoint.h (class collection_list) <append_exp>: Take a
6554 std::string.
6555 * tracepoint.c (collection_list::append_exp): Take a std::string.
6556 (encode_actions_1): Update.
6557
8fc48b79
TT
65582021-01-08 Tom Tromey <tromey@adacore.com>
6559
6560 * parse.c (parse_expression): Add void_context_p parameter. Use
6561 parse_exp_in_context.
6562 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6563 parse_expression.
6564 (print_command, call_command): Update.
6565 * expression.h (parse_expression): Add void_context_p parameter.
6566
3c8c6de2
AB
65672021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6568
6569 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6570 for internalvar components that have a dynamic location.
6571
1940319c
TV
65722021-01-08 Tom de Vries <tdevries@suse.de>
6573
6574 PR gdb/26881
6575 * breakpoint.c (create_exception_master_breakpoint_probe)
6576 (create_exception_master_breakpoint_hook): Factor out
6577 of ...
6578 (create_exception_master_breakpoint): ... here. Only try to install
6579 the master exception breakpoint in objfile.debug using the
6580 _Unwind_DebugHook method, if the install using probes in objfile
6581 failed.
6582
e3436813
AB
65832021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6584
6585 * f-lang.c (fortran_value_subarray): Call value_from_component.
6586
e904f56d
MF
65872021-01-07 Mike Frysinger <vapier@gentoo.org>
6588
6589 * remote-sim.c: Include memory-map.h.
6590 (gdbsim_target): Define memory_map override.
6591 (gdbsim_target::memory_map): Define.
6592
959d6a67
TT
65932021-01-07 Tom Tromey <tromey@adacore.com>
6594
6595 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6596
d4813f10
TT
65972021-01-07 Tom Tromey <tromey@adacore.com>
6598
6599 * ada-lang.c (add_component_interval): Start loop using vector's
6600 updated size.
6601
b49180ac
TT
66022021-01-06 Tom Tromey <tromey@adacore.com>
6603
6604 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6605 Do not cast result.
6606 * valarith.c (fixed_point_binop): Handle multiplication
6607 and division specially.
6608 * valops.c (value_to_gdb_mpq): New function.
6609 (value_cast_to_fixed_point): Use it.
6610
55195361
HD
66112021-01-05 Hannes Domani <ssbssa@yahoo.de>
6612
6613 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6614 Call wnoutrefresh instead of tui_win_info::refresh_window.
6615
1b6d4bb2
HD
66162021-01-05 Hannes Domani <ssbssa@yahoo.de>
6617
6618 * tui/tui-source.c (tui_source_window::show_line_number):
6619 Redraw second space after line number.
6620
b5ff370e
HD
66212021-01-05 Hannes Domani <ssbssa@yahoo.de>
6622
6623 PR tui/26927
6624 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6625 Fix source pad size in prefresh.
6626 (tui_source_window_base::show_source_content): Grow source pad
6627 if necessary.
6628
c68ea49f
MF
66292021-01-04 Mike Frysinger <vapier@gentoo.org>
6630
6631 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6632 (bfin_frame_align): Use align_down.
6633
e4ad960a
TV
66342021-01-04 Tom de Vries <tdevries@suse.de>
6635
6636 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6637 terminators that do not terminate anything.
6638
3ec3145c
SM
66392021-01-04 Simon Marchi <simon.marchi@efficios.com>
6640
6641 * debug.c (debug_print_depth): New.
6642 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6643 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6644 * infrun.c (start_step_over): Use
6645 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6646 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6647 INFRUN_SCOPED_DEBUG_START_END.
6648 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6649
e71daf80
SM
66502021-01-04 Simon Marchi <simon.marchi@efficios.com>
6651
6652 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6653
335709bc
SM
66542021-01-04 Simon Marchi <simon.marchi@efficios.com>
6655
6656 * utils.c (vfprintf_unfiltered): Print timestamp only when
6657 previous debug output ended with a newline.
6658
098caef4
LM
66592021-01-04 Luis Machado <luis.machado@linaro.org>
6660
6661 Update all users of trad_frame_saved_reg to use the new member
6662 functions.
6663
6664 Remote all struct keywords from declarations of trad_frame_saved_reg
6665 types, except on forward declarations.
6666
6667 * aarch64-tdep.c: Update.
6668 * alpha-mdebug-tdep.c: Update.
6669 * alpha-tdep.c: Update.
6670 * arc-tdep.c: Update.
6671 * arm-tdep.c: Update.
6672 * avr-tdep.c: Update.
6673 * cris-tdep.c: Update.
6674 * csky-tdep.c: Update.
6675 * frv-tdep.c: Update.
6676 * hppa-linux-tdep.c: Update.
6677 * hppa-tdep.c: Update.
6678 * hppa-tdep.h: Update.
6679 * lm32-tdep.c: Update.
6680 * m32r-linux-tdep.c: Update.
6681 * m32r-tdep.c: Update.
6682 * m68hc11-tdep.c: Update.
6683 * mips-tdep.c: Update.
6684 * moxie-tdep.c: Update.
6685 * riscv-tdep.c: Update.
6686 * rs6000-tdep.c: Update.
6687 * s390-linux-tdep.c: Update.
6688 * s390-tdep.c: Update.
6689 * score-tdep.c: Update.
6690 * sparc-netbsd-tdep.c: Update.
6691 * sparc-sol2-tdep.c: Update.
6692 * sparc64-fbsd-tdep.c: Update.
6693 * sparc64-netbsd-tdep.c: Update.
6694 * sparc64-obsd-tdep.c: Update.
6695 * sparc64-sol2-tdep.c: Update.
6696 * tilegx-tdep.c: Update.
6697 * v850-tdep.c: Update.
6698 * vax-tdep.c: Update.
6699
6700 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6701 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6702
6703 * trad-frame.c: Update.
6704 Remove TF_REG_* enum.
6705 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6706 a trivially-constructible struct.
6707 (trad_frame_reset_saved_regs): Adjust to use member function.
6708 (trad_frame_value_p): Likewise.
6709 (trad_frame_addr_p): Likewise.
6710 (trad_frame_realreg_p): Likewise.
6711 (trad_frame_value_bytes_p): Likewise.
6712 (trad_frame_set_value): Likewise.
6713 (trad_frame_set_realreg): Likewise.
6714 (trad_frame_set_addr): Likewise.
6715 (trad_frame_set_unknown): Likewise.
6716 (trad_frame_set_value_bytes): Likewise.
6717 (trad_frame_get_prev_register): Likewise.
6718 * trad-frame.h: Update.
6719 (trad_frame_saved_reg_kind): New enum.
6720 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6721 <m_kind, m_reg>: New member fields.
6722 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6723 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6724 <is_addr, is_unknown, is_value_bytes>: New member functions.
6725
9898e882
SM
67262021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6727
6728 * target-float.c: Fix typos.
6729
b66b4e65
HD
67302021-01-02 Hannes Domani <ssbssa@yahoo.de>
6731
6732 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6733
b5b5650a
JB
67342021-01-01 Joel Brobecker <brobecker@adacore.com>
6735
6736 * gdbarch.sh: Update copyright year range.
6737
3666a048
JB
67382021-01-01 Joel Brobecker <brobecker@adacore.com>
6739
6740 Update copyright year range in copyright header of all GDB files.
6741
ff7e39b6
JB
67422021-01-01 Joel Brobecker <brobecker@adacore.com>
6743
6744 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6745 to the list of directories to update.
6746
2b47c078
JB
67472021-01-01 Joel Brobecker <brobecker@adacore.com>
6748
6749 * top.c (print_gdb_version): Update copyright year.
6750
9e5e03df 67512021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6752
476923f1 6753 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6754
476923f1 6755For older changes see ChangeLog-2020.
c906108c
SS
6756\f
6757Local Variables:
6758mode: change-log
6759left-margin: 8
6760fill-column: 74
6761version-control: never
57da7796 6762coding: utf-8
c906108c 6763End:
This page took 2.771982 seconds and 4 git commands to generate.