]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
bfd/elf: Don't read non-existing secondary relocs
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1b453aed
PA
12021-06-07 Pedro Alves <pedro@palves.net>
2
3 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
4 ctor.
5 * symtab.h (struct symbol): Add defaulted copy assignment
6 operator.
7
fa6ec8ef
PA
82021-06-07 Pedro Alves <pedro@palves.net>
9
10 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
11 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
12 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
13 local.
14
c57eb1a2
PA
152021-06-07 Pedro Alves <pedro@palves.net>
16
17 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
18 (nat_sigval_t): ... this and remove typedef of same name.
19 (struct nat_siginfo): Rename to ...
20 (nat_siginfo_t): ... this and remove typedef of same name.
21 (struct compat_sigval): Rename to ...
22 (compat_sigval_t): ... this and remove typedef of same name.
23 (struct compat_siginfo): Rename to ...
24 (compat_siginfo_t): ... this and remove typedef of same name.
25 (struct compat_x32_siginfo): Rename to ...
26 (compat_x32_siginfo_t): ... this and remove typedef of same name.
27 (amd64_linux_siginfo_fixup_common): Adjust.
28
d8ca8e9f
PA
292021-06-07 Pedro Alves <pedro@palves.net>
30
31 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
32 __attribute__ __aligned__ from the typedef to the struct.
33
a12a15e7
AB
342021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 PR gdb/27847
37 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
38 type_align, and spot case where the alignment is unknown.
39
ecac8d1c
CL
402021-06-07 Carl Love <cel@us.ibm.com>
41
42 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
43 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
44 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
45 ppc64_pcrel_linkage2_target): New functions.
46 (ppc64_standard_linkage9, ppc64_standard_linkage10,
47 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
48 instruction patterns.
49 (ppc64_standard_linkage9, ppc64_standard_linkage10,
50 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
51 in define MAX expression.
52 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
53 ppc64_standard_linkage10, ppc64_standard_linkage11,
54 ppc64_standard_linkage12.
55 * (ppc_insn_prefix_dform): New function.
56
cfa8e270
SM
572021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
58
59 PR gdb/27899
60 * sparc-nat.c (sparc_fetch_inferior_registers): Set
61 inferior_ptid instead of using switch_to_thread.
62 (sparc_store_inferior_registers): Likewise.
63
4a977544
BE
642021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
65
66 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
67 (compile_to_object): Ignore SIGPIPE before calling the plugin.
68
8ff8c543
TT
692021-06-05 Tom Tromey <tom@tromey.com>
70
71 * data-directory/Makefile.in (Makefile): Use correct directory
72 name.
73
19d6d783
TT
742021-06-05 Tom Tromey <tom@tromey.com>
75
76 * data-directory/Makefile.in (Makefile): Rewrite.
77
b316465f
TT
782021-06-05 Tom Tromey <tromey@adacore.com>
79
80 * configure: Rebuild.
81 * configure.ac: Add ACX_NONCANONICAL_TARGET.
82
ae61ef2c
SV
832021-06-05 Shahab Vahedi <shahab@synopsys.com>
84
85 * NEWS: Document 'set disassembler-options' support for the ARC
86 target.
87 * arc-tdep.c (arc_gdbarch_init): Set
88 'gdbarch_valid_disassembler_options'.
89
386de171
TT
902021-06-04 Tom Tromey <tromey@adacore.com>
91
92 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
93 parameter.
94 * dwarf2/loc.c (dwarf2_evaluate_property) <case
95 PROP_VARIABLE_NAME>: New case.
96 (compute_var_value): New function.
97 (sect_variable_value): Use compute_var_value.
98 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
99 (var_decl_name): New function.
100 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
101 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
102 constant.
103 (union dynamic_prop_data) <variable_name>: New member.
104 (struct dynamic_prop) <variable_name, set_variable_name>: New
105 methods.
106
4351271e
AB
1072021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
108
109 * remote.c (remote_target)
110 <select_thread_for_ambiguous_stop_reply>: Add additional debug
111 output.
112
a5375566
HD
1132021-06-04 Hannes Domani <ssbssa@yahoo.de>
114
115 * python/py-tui.c (class tui_py_window): Add click function.
116 (tui_py_window::click): Likewise.
117
1bace02a
HD
1182021-06-04 Hannes Domani <ssbssa@yahoo.de>
119
120 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
121 * tui/tui-data.h (struct tui_win_info): Add click function.
122 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
123 (tui_deprep_terminal): Disable mouse events.
124 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
125 * tui/tui.c (tui_disable): Disable mouse events.
126
df5bc734
MH
1272021-06-03 Magne Hov <mhov@undo.io>
128
129 PR python/27841
130 * eval.c (expression::evaluate): Check inferior_ptid.
131
415c8100
PA
1322021-06-03 Pedro Alves <pedro@palves.net>
133
134 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
135 affiliation.
136 (Global Maintainers): Update my address.
137 (Write After Approval): Remove stale entry.
138
83810881
JB
1392021-06-03 John Baldwin <jhb@FreeBSD.org>
140
141 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
142 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
143 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
144 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
145 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
146 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
147 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
148 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
149 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
150 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
151 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
152 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
153 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
154 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
155 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
156 (fbsd_report_signal_info): New.
157 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
158 report_signal_info method.
159
4c958d79
MH
1602021-06-03 Magne Hov <mhov@undo.io>
161
162 * MAINTAINERS (Write After Approval): Add Magne Hov.
163
6ac5237c
HD
1642021-06-03 Hannes Domani <ssbssa@yahoo.de>
165
166 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
167 gdb.SYMBOL_LABEL_DOMAIN constant.
168
aeeb758d
JB
1692021-06-01 John Baldwin <jhb@FreeBSD.org>
170
171 * infrun.c (handle_inferior_event): Only call
172 gdbarch_displaced_step_restore_all_in_ptid if
173 gdbarch_supports_displaced_stepping is true.
174
906f72d4
TT
1752021-06-01 Tom Tromey <tromey@adacore.com>
176
177 * Makefile.in (all-data-directory): Remove.
178 (data-directory/Makefile): Remove.
179
ba56237d
TT
1802021-06-01 Tom Tromey <tromey@adacore.com>
181
182 * configure: Rebuild.
183 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
184
2adf1781
TT
1852021-06-01 Tom Tromey <tromey@adacore.com>
186
187 * silent-rules.mk (ECHO_CC): New variable.
188
bdbbcd57
TT
1892021-06-01 Tom Tromey <tromey@adacore.com>
190
191 * Makefile.in (SUBDIRS): Add testsuite.
192 (all): Don't exclude testsuite.
193
f99d1d37
TT
1942021-06-01 Tom Tromey <tromey@adacore.com>
195
196 * configure.ac: Copy some code from testsuite/configure.ac.
197 (enable_libctf): Subst this, not ENABLE_LIBCTF.
198 * configure: Rebuild.
199
17d305ef
TV
2002021-06-01 Tom de Vries <tdevries@suse.de>
201
202 PR symtab/26096
203 * minsyms.c (msymbol_is_cold_clone): New function.
204 (msymbol_is_function): Use msymbol_is_cold_clone.
205
9b715c68
AB
2062021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
207 Andrew Burgess <andrew.burgess@embecosm.com>
208
209 PR gdb/14383
210 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
211 (ALLDEPFILES): Add arm-none-tdep.c
212 * arm-none-tdep.c: New file.
213 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
214
b4b3e2de
AB
2152021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
216 Richard Bunt <richard.bunt@arm.com>
217
218 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
219 check for why the backtrace stopped.
220
9ea36493
SM
2212021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
224 Update all callers.
225 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
226 signature parameter, update all callers.
227 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
228 signature parameter.
229
46c6bcf6
SM
2302021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
231
232 * dwarf2/read.h (signatured_type_up): New, use where possible.
233
4631503b
SM
2342021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
237
cc653233
TT
2382021-05-30 Tom Tromey <tom@tromey.com>
239
240 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
241 is_debug_types.
242 (create_signatured_type_table_from_index)
243 (create_signatured_type_table_from_debug_names, add_type_unit)
244 (read_comp_units_from_section): Update.
245
c96e8b04
TT
2462021-05-30 Tom Tromey <tom@tromey.com>
247
248 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
249 m_num_psymtabs>: Remove.
250 (resize_symtabs): Update.
251 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
252 (dwarf2_per_bfd::allocate_signatured_type): Update.
253
24b21115
SM
2542021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * Fix tab after space indentation issues throughout.
257
01add95b
SM
2582021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * Fix some indentation mistakes throughout.
261
055c879f
SM
2622021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
263
264 * breakpoint.h (iterate_over_bp_locations): Remove. Update
265 users to use all_bp_locations.
266 (all_bp_locations): New.
267 * breakpoint.c (all_bp_locations): Make non-static.
268 (iterate_over_bp_locations): Remove.
269
240edef6
SM
2702021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
271
272 * breakpoint.h (iterate_over_breakpoints): Remove. Update
273 callers to use all_breakpoints or all_breakpoints_safe.
274 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
275 all_breakpoints_safe): Move here.
276 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
277 non-static.
278 (iterate_over_breakpoints): Remove.
279 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
280 Return void.
281 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
282 return value logic.
283 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
284
e0d9a270
SM
2852021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
286
287 * breakpoint.c (get_first_locp_gte_addr): Remove.
288 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
289 all_bp_locations_at_addr.
290 (struct bp_locations_at_addr_range): New.
291 (all_bp_locations_at_addr): New.
292 (bp_locations_compare_addrs): New.
293
48d7020b
SM
2942021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
297 all_bp_locations.
298 (all_bp_locations): New.
299
5d51cd5d
SM
3002021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
301
302 * breakpoint.c (bp_locations): Change to std::vector, update all
303 users.
304 (bp_locations_count): Remove.
305 (update_global_location_list): Change to work with indices
306 rather than bp_location**.
307
40cb8ca5
SM
3082021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
309
310 * breakpoint.h (bp_locations_range): New.
311 (struct breakpoint) <locations>: New. Use where possible.
312
f6d17b2b
SM
3132021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * breakpoint.h (all_tracepoints): Remove.
316 (breakpoint_iterator): Move here.
317 (struct tracepoint_filter): New.
318 (tracepoint_iterator): New.
319 (tracepoint_range): New.
320 (all_tracepoints): New.
321 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
322 all_tracepoints.
323 (breakpoint_iterator): Move to header.
324 (all_tracepoints): New.
325 * tracepoint.c (start_tracing): Adjust.
326
1428b37a
SM
3272021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * breakpoint.c (breakpoint_safe_range): New.
330 (all_breakpoints_safe): New. Use instead of
331 ALL_BREAKPOINTS_SAFE where possible.
332
43892fdf
SM
3332021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
334
335 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
336 all_breakpoints.
337 (breakpoint_iterator): New.
338 (breakpoint_range): New.
339 (all_breakpoints): New.
340
bdef5723
HD
3412021-05-27 Hannes Domani <ssbssa@yahoo.de>
342
343 * python/py-tui.c (tui_py_window::output): Add full_window
344 argument.
345 (gdbpy_tui_write): Parse "full_window" argument.
346
d5a6313e
SM
3472021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * make-init-c: Add option to reverse function calls.
350
f39632d9
SM
3512021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * Makefile.in (INIT_FILES_FILTER_OUT): New.
354 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
355 (stamp-init): Use make-init-c.
356 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
357 * silent-rules.mk (ECHO_INIT_C): Change.
358 * make-init-c: New file.
359
5e84b7ee
SM
3602021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * command.h (add_alias_cmd): Accept target as
363 cmd_list_element. Update callers.
364
e0f25bd9
SM
3652021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * command.h (add_info_alias): Accept target as
368 cmd_list_element. Update callers.
369
3947f654
SM
3702021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * command.h (add_com_alias): Accept target as
373 cmd_list_element. Update callers.
374
7bd22f56
SM
3752021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
376
377 * python/py-param.c (add_setshow_generic): Use return values of
378 add_setshow functions.
379
9f260536
SM
3802021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
381
382 * mi/mi-main.c (_initialize_mi_main):
383 * python/py-auto-load.c (gdbpy_initialize_auto_load):
384 * remote.c (_initialize_remote):
385
af7f8f52
SM
3862021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
387
388 * command.h (set_show_commands): New.
389 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
390 add_setshow_boolean_cmd, add_setshow_filename_cmd,
391 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
392 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
393 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
394 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
395 Return set_show_commands. Adjust callers.
396 * cli/cli-decode.c (add_setshow_cmd_full): Return
397 set_show_commands, remove result parameters, adjust callers.
398
248f7165
TV
3992021-05-27 Tom de Vries <tdevries@suse.de>
400
401 PR symtab/27919
402 * dwarf2/read.c (process_psymtab_comp_unit):
403
2152b4fd
TV
4042021-05-27 Tom de Vries <tdevries@suse.de>
405
406 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
407 error.
408
6dcd1193
TV
4092021-05-27 Tom de Vries <tdevries@suse.de>
410
411 PR symtab/27898
412 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
413 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
414 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
415 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
416 load_all_dies init.
417 (dwarf2_per_cu_data): Remove load_all_dies field.
418
11bb5c41
SM
4192021-05-26 Simon Marchi <simon.marchi@efficios.com>
420
421 * regcache.c (reg_buffer::reg_buffer): Default-initialize
422 m_registers array.
423
ef5f598c
TT
4242021-05-26 Tom Tromey <tom@tromey.com>
425
426 * dwarf2/read.c (allocate_type_unit_groups_table)
427 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
428 htab_delete_entry.
429 (free_line_header_voidp): Remove.
430 * completer.c
431 (completion_tracker::completion_hash_entry::deleter): Remove.
432 (completion_tracker::discard_completions): Use htab_delete_entry.
433 * utils.h (htab_delete_entry): New template function.
434
a56889ae
HD
4352021-05-24 Hannes Domani <ssbssa@yahoo.de>
436
437 * python/py-tui.c (tui_py_window::refresh_window):
438 Avoid flickering.
439
fbf3c4b9
TV
4402021-05-23 Tom de Vries <tdevries@suse.de>
441
442 PR tdep/27822
443 * target.h (struct target_ops): Mention target_thread_architecture in
444 read_description comment.
445 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
446 pid to determine if process is 64-bit or 32-bit.
447 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
448 Same.
449 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
450 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
451 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
452 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
453 Likewise, use pid to determine if kernel supports reading VFP
454 registers.
455
8569d6e1
PW
4562021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
457
458 * main.c (enum cmdarg_kind): Fix option type comments for
459 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
460
778ae9cc
TV
4612021-05-21 Tom de Vries <tdevries@suse.de>
462
463 PR testsuite/25047
464 * contrib/cc-with-tweaks.sh: Handle -l.
465
6d1a09b7
TV
4662021-05-21 Tom de Vries <tdevries@suse.de>
467
468 PR breakpoint/27889
469 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
470 objects. Call get_jiter_objfile_data with the_objfile.
471
1487a14e
SM
4722021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * linespec.c (linespec_p): Remove. Replace all uses with
475 "linespec *".
476
bb6203bf
AH
4772021-05-20 Alexandra Hájková <ahajkova@redhat.com>
478 Pedro Alves <pedro@palves.net>
479
480 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
481 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
482 command_line_up instead of struct command_line.
483 (build_command_line): Likewise.
484 (get_command_line): Update the cmd function call parameter.
485 (process_next_line): Use unique_ptr command_line_up instead
486 of struct command_line.
487 (recurse_read_control_structure): Change the the type of
488 next to command_line_up.
489 (read_command_lines_1): Change type of `next' to be
490 command_line_up and update all references of `next'
491 accordingly.
492
ed3130b7
AH
4932021-05-20 Alexandra Hájková <ahajkova@redhat.com>
494
495 * MAINTAINERS (Write After Approval): Add myself.
496
5433e20e
JB
4972021-05-19 John Baldwin <jhb@FreeBSD.org>
498
499 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
500
a5523cc3
AH
5012021-05-18 Alexandra Hájková <ahajkova@redhat.com>
502
503 * inflow.c (new_tty): Do not leak tty.
504
cd53fa40
TT
5052021-05-17 Tom Tromey <tom@tromey.com>
506
507 * dwarf2/read.h: Update include.
508 * dwarf2/read.c: Update include.
509 * dwarf2/line-header.c: Update include.
510 * dwarf2/cu.h: Update include.
511 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
512 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
513 * Makefile.in (COMMON_SFILES): Update.
514
347212b8
TT
5152021-05-17 Tom Tromey <tom@tromey.com>
516
517 * dwarf2/read.c (maybe_queue_comp_unit)
518 (dwarf2_per_objfile::age_comp_units): Update.
519 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
520 dwarf2_cu methods.
521 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
522 add_dependence>: New methods.
523 <m_dependencies>: Add "m_" prefix. Now private.
524 <m_mark>: Add "m_" prefix.
525 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
526 (dwarf2_mark_helper): New function.
527 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
528
839118f9
TT
5292021-05-17 Tom Tromey <tom@tromey.com>
530
531 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
532 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
533 (dwarf2_cu::dwarf2_cu): Move to cu.c.
534 * dwarf2/cu.c: New file.
535 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
536
8ae78a44
TT
5372021-05-17 Tom Tromey <tom@tromey.com>
538
539 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
540 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
541 Move to cu.h.
542 * dwarf2/cu.h: New file.
543
c1c0a7e1
AB
5442021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
545
546 * .dir-locals.el: Set sentence-end-double-space for all modes, and
547 set brace-list-open to 0 for C and C++ modes.
548
9e541c79
TT
5492021-05-17 Tom Tromey <tromey@adacore.com>
550
551 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
552 if frame is null.
553
59173216
TT
5542021-05-17 Tom Tromey <tromey@adacore.com>
555
556 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
557 (group_from_gid): Subtract one from strncpy length.
558
baea2f9d
TT
5592021-05-17 Tom Tromey <tromey@adacore.com>
560
561 * source.c (add_path): Check 'p' before using 'p[-1]'.
562
473ab964
TT
5632021-05-17 Tom Tromey <tromey@adacore.com>
564
565 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
566 (dwarf2_per_cu_data_up): New typedef.
567 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
568 <all_comp_units>: Use dwarf2_per_cu_data_up.
569 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
570 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
571 (create_cu_from_index_list): Likewise.
572 (create_signatured_type_table_from_index)
573 (create_cus_from_debug_names_list, add_type_unit)
574 (read_comp_units_from_section): Update.
575 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
576 (run_test): Update.
577
16e0020b
TT
5782021-05-17 Tom Tromey <tom@tromey.com>
579
580 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
581 (sort_tu_by_abbrev_offset): Remove.
582 (build_type_psymtabs): Update.
583
91e159e9
SM
5842021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * py-project.toml: New.
587 * gdb-gdb.py.in: Re-format.
588
034dce7a
SM
5892021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
590
591 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
592 New, use it.
593 * command.h (cmd_func_p): Remove.
594 * cli/cli-decode.c (cmd_func_p): Remove.
595
1be99b11
SM
5962021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
597
598 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
599
99858724
SM
6002021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
601
602 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
603 to...
604 <alias_target>: ... this.
605 (add_alias_cmd): Rename old to target.
606 (add_info_alias): Rename old_name to target_name.
607 (add_com_alias): Likewise.
608
14b42fc4
SM
6092021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
610
611 * Rename "prefixlist" parameters to "subcommands" throughout.
612 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
613 <subcommands>: ... this.
614 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
615 (lookup_cmd_with_subcommands): ... this.
616
ecd0a6b3
SM
6172021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
620
413b49c2
SM
6212021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
622
623 * cli/cli-decode.h (prefixname): Make const, move implementation
624 to cli/cli-decode.c.
625 * cli/cli-decode.c (cmd_list_element::prefixname): New.
626
ea11a98d
WP
6272021-05-16 Weimin Pan <weimin.pan@oracle.com>
628
629 * ctfread.c (new_symbol): Set function address.
630 (read_func_kind_type): Remove incorrect type name setting.
631 Don't copy name returned from ctf_type_ame_raw throughout file.
632
887e7158
TT
6332021-05-14 Tom Tromey <tom@tromey.com>
634
635 * rust-lang.c (rust_language::val_print_struct)
636 (rust_language::print_enum): Use common_val_print, not
637 value_print_inner.
638
55789354
TBA
6392021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
640
641 * python/py-inferior.c (infpy_get_connection_num): New function.
642 (inferior_object_getset): Add a new element for 'connection_num'.
643 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
644
2f63ec5c
AB
6452021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
646
647 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
648 argument type, update and re-wrap, header comment.
649 (remote_target::commit_resumed): Convert any_process_wildcard and
650 may_global_wildcard_vcont from int to bool.
651
ecf25064
KC
6522021-05-14 Kent Cheung <kent.cheung@arm.com>
653
654 * cp-valprint.c (cp_print_value): Replaced duplicate code.
655 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
656 just before printing child values.
657 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
658 printing string representation.
659 * python/py-prettyprint.c (print_children): Check max_depth just
660 before printing child values.
661 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
662 printing string representation.
663
df68e12b
MF
6642021-05-14 Mike Frysinger <vapier@gentoo.org>
665
666 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
667 sim/callback.h & sim/sim.h.
668
183aaaf7
MF
6692021-05-13 Mike Frysinger <vapier@gentoo.org>
670
671 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
672 sim-regno.h include.
673
737358ba
SM
6742021-05-13 Simon Marchi <simon.marchi@efficios.com>
675
676 * inf-child.h (inf_child_target) <follow_exec>: New.
677 * inf-child.c (inf_child_target::follow_exec): New.
678
294c36eb
SM
6792021-05-13 Simon Marchi <simon.marchi@efficios.com>
680
681 * target.h (struct target_ops) <follow_exec>: Add ptid_t
682 parameter.
683 (target_follow_exec): Likewise.
684 * target.c (target_follow_exec): Add ptid_t parameter.
685 * infrun.c (follow_exec): Adjust call to target_follow_exec,
686 don't push target nor create thread.
687 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
688 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
689 (thread_db_target::follow_exec): New.
690 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
691 (remote_target::follow_exec): Call
692 process_stratum_target::follow_exec.
693 * target-delegates.c: Re-generate.
694
2af87c85
SM
6952021-05-13 Simon Marchi <simon.marchi@efficios.com>
696
697 * infrun.c (follow_exec): Call target_follow_fork when
698 follow-exec-mode is same.
699 * target.h (target_follow_fork): Improve doc.
700
0b2256f7
SM
7012021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
702
703 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
704 Remove.
705 * cli/cli-setshow.c (do_show_command): Adjust.
706
0746f49b
LM
7072021-05-13 Luis Machado <luis.machado@linaro.org>
708
709 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
710 include the last address in the range.
711
4b8cb9dd
SM
7122021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
713
714 * python/python-internal.h (gdbpy_parse_command_name): Return
715 gdb::unique_xmalloc_ptr.
716 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
717 (cmdpy_init): Adjust.
718 * python/py-param.c (parmpy_init): Adjust.
719 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
720 when done.
721
ee35ce82
GB
7222021-05-12 George Barrett <bob@bob131.so>
723
724 * NEWS (Guile API): Note the addition of the new procedure.
725 * guile/scm-value.c (gdbscm_value_const_value): Add
726 implementation of value-const-value procedure.
727 (value_functions): Add value-const-value procedure.
728
9d4fc61d
GB
7292021-05-12 George Barrett <bob@bob131.so>
730
731 * NEWS (Guile API): Note the addition of new procedures.
732 * guile/scm-value.c (gdbscm_reference_value): Add helper function
733 for reference value creation.
734 (gdbscm_value_reference_value): Add implementation of
735 value-reference-value procedure.
736 (gdbscm_value_rvalue_reference_value): Add implementation of
737 value-rvalue-reference-value procedure.
738 (value_functions): Add value-reference-value procedure. Add
739 value-rvalue-reference-value procedure.
740
97cef6b7
GB
7412021-05-12 George Barrett <bob@bob131.so>
742
743 * guile/scm-type.c (type_integer_constants): Add binding for
744 TYPE_CODE_RVALUE_REF.
745 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
746 dereferencing of rvalue references.
747 * NEWS (Guile API): Note improvements in rvalue reference support.
748
d51344c9
MM
7492021-05-12 Markus Metzger <markus.t.metzger@intel.com>
750
751 * btrace.c (handle_pt_insn_events): Ignore status update enable
752 events.
753
f2a883a8
SM
7542021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
757 indentation.
758
64f30eb0
SM
7592021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
760
761 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
762
db1f6cd6
LS
7632021-05-10 Lancelot Six <lsix@lancelotsix.com>
764
765 PR gdb/27614
766 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
767 argument.
768
31aceaef
SM
7692021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * nat/linux-waitpid.c (status_to_str): Show signal name.
772
75140e3b
AB
7732021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
774
775 * python/py-breakpoint.c (pybp_debug): New static global.
776 (show_pybp_debug): New function.
777 (pybp_debug_printf): Define.
778 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
779 (gdbpy_breakpoint_created): Add some debugging.
780 (gdbpy_breakpoint_deleted): Likewise.
781 (gdbpy_breakpoint_modified): Likewise.
782 (_initialize_py_breakpoint): New function.
783
1ef40c13
AB
7842021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
785
786 * python/py-unwind.c (pyuw_debug): Convert to bool.
787 (show_pyuw_debug): New function.
788 (pyuw_debug_printf): Define.
789 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
790 (pyuw_this_id): Convert to new debug print macros.
791 (pyuw_prev_register): Likewise.
792 (pyuw_sniffer): Likewise.
793 (pyuw_dealloc_cache): Likewise.
794 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
795 show function when registering.
796
927c4e35
AB
7972021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
798
799 * dummy-frame.c (fprint_dummy_frames): Convert use of
800 fprint_frame_id to use frame_id::to_string.
801 * frame.c (fprint_field): Delete.
802 (fprint_frame_id): Moved to...
803 (frame_id::to_string): ...this, rewritten to return a string.
804 (fprint_frame): Convert use of fprint_frame_id to use
805 frame_id::to_string.
806 (compute_frame_id): Likewise.
807 (frame_id_p): Likewise.
808 (frame_id_eq): Likewise.
809 (frame_id_inner): Likewise.
810 * frame.h (struct frame_id) <to_string>: New member function.
811 (fprint_frame_id): Delete declaration.
812 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
813 fprint_frame_id to use frame_id::to_string.
814 * python/py-frame.c (frame_object_to_frame_info): Likewise.
815 * python/py-unwind.c (unwind_infopy_str): Likewise.
816 (pyuw_this_id): Likewise.
817
8d06918f
SM
8182021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * nat/linux-waitpid.c (status_to_str): Return std::string.
821 * nat/linux-waitpid.h (status_to_str): Likewise.
822 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
823 (linux_nat_target::attach): Adjust.
824 (linux_handle_extended_wait): Adjust.
825 (wait_lwp): Adjust.
826 (stop_wait_callback): Adjust.
827 (linux_nat_filter_event): Adjust.
828 (linux_nat_wait_1): Adjust.
829 * nat/linux-waitpid.c (status_to_str): Adjust.
830 * nat/linux-waitpid.h (status_to_str): Adjust.
831
550e9289
SM
8322021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
833
834 * infrun.h (infrun_debug_printf): Add missing space.
835
4655f850
PA
8362021-05-08 Pedro Alves <pedro@palves.net>
837
838 * linux-nat.c (linux_nat_target::supports_disable_randomization):
839 Remove references to HAVE_PERSONALITY.
840 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
841 (maybe_disable_address_space_randomization)
842 (~maybe_disable_address_space_randomizatio): Remove references to
843 HAVE_PERSONALITY.
844 * config.in, configure: Regenerate.
845
1845e254
AB
8462021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
847
848 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
849 include.
850 (source_script_with_search): Perform tilde expansion.
851
91e3c425
SM
8522021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
853
854 * target-descriptions.c (struct target_desc_info) <filename>:
855 Make std::string.
856 (copy_inferior_target_desc_info): Adjust.
857 (target_desc_info_free): Adjust.
858 (target_find_description): Adjust.
859 (set_tdesc_filename_cmd): Adjust.
860 (show_tdesc_filename_cmd): Adjust.
861 (unset_tdesc_filename_cmd): Adjust.
862 (maint_print_c_tdesc_cmd): Adjust.
863
0b2f7ade
SM
8642021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
865
866 * target-descriptions.c (struct target_desc_info): Initialize
867 fields.
868 (get_tdesc_info): Use new.
869 (target_desc_info_free): Use delete.
870
820c4490
SM
8712021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
872
873 * target-descriptions.c (struct target_desc_info) <fetched>:
874 bool.
875 (target_find_description): Adjust.
876 (target_clear_description): Adjust.
877
c2962e6a
SM
8782021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
879
880 * target-descriptions.c (struct target_desc_info) <tdesc>:
881 Adjust doc.
882 (target_desc_fetched): Remove.
883 (current_target_desc): Remove.
884 (target_description_filename): Remove.
885 (target_find_description): Adjust.
886 (target_clear_description): Adjust.
887 (target_current_description): Adjust.
888 (set_tdesc_filename_cmd): Adjust.
889 (show_tdesc_filename_cmd): Adjust.
890 (unset_tdesc_filename_cmd): Adjust.
891 (maint_print_c_tdesc_cmd): Adjust.
892 (maint_print_xml_tdesc_cmd): Adjust.
893
8a82de58
AB
8942021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
895
896 * infcmd.c (notice_new_inferior): Change parameter type.
897 * inferior.h (notice_new_inferior): Change parameter type.
898 * remote.c (remote_notice_new_inferior): Change parameter type to
899 bool. Also update type of local variable to bool.
900 (remote_target::update_thread_list): Change type of local variable
901 to bool.
902 (remote_target::process_stop_reply): Pass bool instead of int to
903 remote_notice_new_inferior.
904
bedc4734
SM
9052021-05-07 Simon Marchi <simon.marchi@efficios.com>
906
907 * target.c (target_stack::unpush): Call target_ops::find_beneath
908 to get the target beneath `t`.
909
27f0a431
SM
9102021-05-07 Simon Marchi <simon.marchi@efficios.com>
911
912 * target.c (target_close): Check in all inferiors that the
913 target is not pushed.
914
1d1669e4
AM
9152021-05-07 Aaron Merey <amerey@redhat.com>
916
917 * debuginfod-support.c (debuginfod_init): Remove.
918 (get_debuginfod_client): New function.
919
2698f5ea
TT
9202021-05-07 Tom Tromey <tom@tromey.com>
921
922 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
923 * utils.c (streq_hash): Remove.
924 * utils.h (streq_hash): Don't declare.
925 * completer.c (completion_tracker::discard_completions): Update
926 comment.
927 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
928
13123da8
SM
9292021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * Re-format all Python files using black.
932
9589edb8
AB
9332021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * guile/guile-internal.h (gdbscm_safe_source_script): Change
936 function return type.
937 * guile/guile.c (gdbscm_source_script): Update to handle change in
938 gdbscm_safe_source_script.
939 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
940 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
941 type.
942
ec66d6ea
SM
9432021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
944
945 * inferior.h (class inferior) <args>: Change type to
946 unique_xmalloc_ptr.
947 * inferior.c (inferior::~inferior): Don't free args.
948 * infcmd.c (get_inferior_args): Adjust.
949 (set_inferior_args): Adjust.
950
0618ecf6
AB
9512021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
952
953 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
954 breakpoint locations when the breakpoint actually has a location.
955
79aabb73
TBA
9562021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
957
958 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
959 * mi/mi-cmds.c: Change the binding of "-break-condition" to
960 mi_cmd_break_condition.
961 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
962 * breakpoint.h (set_breakpoint_condition): Declare a new
963 overload.
964 * breakpoint.c (set_breakpoint_condition): New overloaded function
965 extracted out from ...
966 (condition_command): ... this.
967 * NEWS: Mention the change.
968
10e578d7
TBA
9692021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
970
971 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
972 '--force-condition' flag to force the condition in the
973 '-break-insert' and '-dprintf-insert' commands.
974 * NEWS: Mention the change.
975
225bda24
TV
9762021-05-04 Tom de Vries <tdevries@suse.de>
977
978 PR guile/27806
979 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
980 memory functions.
981
b8efb248
TT
9822021-04-30 Tom Tromey <tom@tromey.com>
983
984 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
985 (add_signatured_type_cu_to_table): Remove.
986 (create_debug_type_hash_table): Assume dwo_file is non-null.
987 (create_debug_types_hash_table): Update comment.
988 (create_all_type_units): Remove.
989 (sort_tu_by_abbrev_offset): Update comment.
990 (build_type_psymtabs): Rename from build_type_psymtabs_1.
991 (build_type_psymtabs): Remove.
992 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
993 Update.
994 (read_comp_units_from_section): Add types_htab, section_kind
995 parameters.
996 (create_all_comp_units): Read type units.
997
91eea9cc
TT
9982021-04-30 Tom Tromey <tom@tromey.com>
999
1000 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1001 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1002 <get_cu>: Now inline.
1003 <all_type_units>: Remove.
1004 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1005 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1006 (dwarf2_per_bfd::get_tu): Remove.
1007 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1008 (create_signatured_type_table_from_index)
1009 (create_signatured_type_table_from_debug_names)
1010 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1011 (dwarf2_base_index_functions::expand_all_symtabs)
1012 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1013 (dwarf2_base_index_functions::map_symbol_filenames)
1014 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1015 (add_signatured_type_cu_to_table, create_all_type_units)
1016 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1017 (create_all_comp_units): Update.
1018 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1019 (write_debug_names): Update.
1020
0d305d5c
TT
10212021-04-30 Tom Tromey <tom@tromey.com>
1022
1023 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1024 allocate_signatured_type>: Change return type.
1025 <all_comp_units, all_type_units>: Hold unique pointers.
1026 (struct dwarf2_per_cu_data): Add constructor and initializers.
1027 (struct signatured_type): Derive from dwarf2_per_cu_data.
1028 * dwarf2/read.c (type_unit_group): Derive from
1029 dwarf2_per_cu_data.
1030 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1031 (dwarf2_per_bfd::get_tu)
1032 (dwarf2_per_bfd::allocate_signatured_type)
1033 (dwarf2_per_bfd::allocate_signatured_type)
1034 (create_cu_from_index_list, create_cus_from_index_list)
1035 (create_signatured_type_table_from_index)
1036 (create_signatured_type_table_from_debug_names)
1037 (create_addrmap_from_aranges)
1038 (dwarf2_base_index_functions::find_last_source_symtab)
1039 (dw_expand_symtabs_matching_file_matcher)
1040 (dwarf2_gdb_index::expand_symtabs_matching)
1041 (dwarf2_base_index_functions::map_symbol_filenames)
1042 (create_cus_from_debug_names_list)
1043 (dw2_debug_names_iterator::next)
1044 (dwarf2_debug_names_index::expand_symtabs_matching)
1045 (create_debug_type_hash_table, add_type_unit)
1046 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1047 Update.
1048 (allocate_type_unit_groups_table): Use delete.
1049 (create_type_unit_group): Change return type. Use new.
1050 (get_type_unit_group, build_type_psymtabs_1)
1051 (build_type_psymtab_dependencies)
1052 (process_skeletonless_type_unit, set_partial_user)
1053 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1054 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1055 (read_signatured_type): Update.
1056 (dwarf2_find_containing_comp_unit): Change type of
1057 'all_comp_units'.
1058 (run_test): Update.
1059 (dwarf2_per_bfd::allocate_per_cu)
1060 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1061 Use new.
1062 (add_signatured_type_cu_to_table): Update.
1063 * dwarf2/index-write.c (write_one_signatured_type)
1064 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1065 (write_debug_names): Update.
1066
1bee48c7
TT
10672021-04-30 Tom Tromey <tromey@adacore.com>
1068
1069 * nat/windows-nat.h (get_image_name): Don't declare.
1070 * nat/windows-nat.c (get_image_name): Now static.
1071
e228ef97
TT
10722021-04-30 Tom Tromey <tromey@adacore.com>
1073
1074 * windows-nat.c (windows_nat::handle_load_dll): Update.
1075 (windows_nat_target::get_windows_debug_event): Call
1076 dll_loaded_event.
1077 (windows_add_all_dlls, windows_add_dll): Move to
1078 nat/windows-nat.c.
1079 * nat/windows-nat.h (handle_load_dll): Change parameters.
1080 (dll_loaded_event, windows_add_all_dlls): Declare.
1081 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1082 from windows-nat.c.
1083 (dll_loaded_event): New function.
1084
de071872
TT
10852021-04-30 Tom Tromey <tromey@adacore.com>
1086
1087 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1088 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1089 Declare.
1090 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1091 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1092
9e439f00
TT
10932021-04-30 Tom Tromey <tromey@adacore.com>
1094
1095 * windows-nat.c: Move code to nat/windows-nat.[ch].
1096 (_initialize_windows_nat): Call initialize_loadable.
1097 * nat/windows-nat.h (AdjustTokenPrivileges)
1098 (DebugActiveProcessStop, DebugBreakProcess)
1099 (DebugSetProcessKillOnExit, EnumProcessModules)
1100 (EnumProcessModulesEx, GetModuleInformation)
1101 (GetModuleFileNameExA, GetModuleFileNameExW)
1102 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1103 (GetCurrentConsoleFont, Wow64SuspendThread)
1104 (Wow64GetThreadContext, Wow64SetThreadContext)
1105 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1106 (AdjustTokenPrivileges_ftype)
1107 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1108 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1109 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1110 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1111 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1112 (GetConsoleFontSize_ftype)
1113 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1114 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1115 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1116 (initialize_loadable): Declare.
1117 * nat/windows-nat.c (AdjustTokenPrivileges)
1118 (DebugActiveProcessStop, DebugBreakProcess)
1119 (DebugSetProcessKillOnExit, EnumProcessModules)
1120 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1121 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1122 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1123 (Wow64GetThreadContext, Wow64SetThreadContext)
1124 (Wow64GetThreadSelectorEntry): Define.
1125 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1126 from windows-nat.c.
1127 (initialize_loadable): Likewise, and rename.
1128
1053c638
TT
11292021-04-30 Tom Tromey <tromey@adacore.com>
1130
1131 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1132 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1133 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1134 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1135 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1136 (bad): New template functions.
1137 (_initialize_loadable): Update.
1138
2869ac4b
TT
11392021-04-30 Tom Tromey <tromey@adacore.com>
1140
1141 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1142
e197dfae
SM
11432021-04-29 Simon Marchi <simon.marchi@efficios.com>
1144
1145 * auto-load.h: Split namespace declaration.
1146
89ba430c
SM
11472021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1148
1149 * infrun.c (save_waitstatus): Move variables to inner scope.
1150
8eb82ba1
AB
11512021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1152
1153 * NEWS: Fix typo and stray full stop.
1154
db2534b7
TT
11552021-04-28 Tom Tromey <tromey@adacore.com>
1156
1157 * ada-exp.y (primary): Use new type for null pointer.
1158 * ada-lang.c (ada_type_match): Remove "may_deref"
1159 parameter. Handle null pointer.
1160 (ada_args_match): Update.
1161 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1162 Handle null pointer.
1163
edeaceda
AB
11642021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * NEWS: Mention new commands.
1167 * python/python.c (python_ignore_environment): New static global.
1168 (show_python_ignore_environment): New function.
1169 (set_python_ignore_environment): New function.
1170 (python_dont_write_bytecode): New static global.
1171 (show_python_dont_write_bytecode): New function.
1172 (set_python_dont_write_bytecode): New function.
1173 (_initialize_python): Register new commands.
1174
041ca48e
AB
11752021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * extension-priv.h (struct extension_language_ops): Rename
1178 'finish_initialization' to 'initialize'.
1179 * extension.c (finish_ext_lang_initialization): Renamed to...
1180 (ext_lang_initialization): ...this, update comment, and updated
1181 the calls to reflect the change in struct extension_language_ops.
1182 * extension.h (finish_ext_lang_initialization): Renamed to...
1183 (ext_lang_initialization): ...this.
1184 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1185 (gdbscm_initialize): ...this, update comment at definition.
1186 (guile_extension_ops): Update.
1187 * main.c (captured_main_1): Update call to
1188 finish_ext_lang_initialization.
1189 * python/python.c (gdbpy_finish_initialization): Rename to...
1190 (gdbpy_initialize): ...this, update comment at definition, and
1191 update call to do_finish_initialization.
1192 (python_extension_ops): Update.
1193 (do_finish_initialization): Rename to...
1194 (do_initialize): ...this, and update comment.
1195
1178f01a
AB
11962021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1197
1198 * main.c (captured_main_1): Add a call to
1199 finish_ext_lang_initialization.
1200 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1201
880ae75a
AB
12022021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1205 (gdbscm_finish_initialization): Add code moved from
1206 _initialize_guile.
1207 (_initialize_guile): Move code to gdbscm_finish_initialization.
1208 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1209 _initialize_scm_arch.
1210 (_initialize_scm_arch): New function.
1211 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1212 into _initialize_scm_block.
1213 (_initialize_scm_block): New function.
1214 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1215 into _initialize_scm_frame.
1216 (_initialize_scm_frame): New function.
1217 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1218 into _initialize_scm_objfile.
1219 (_initialize_scm_objfile): New function.
1220 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1221 code into _initialize_scm_progspace.
1222 (_initialize_scm_progspace): New function.
1223 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1224 into _initialize_scm_symbol.
1225 (_initialize_scm_symbol): New function.
1226 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1227 into _initialize_scm_symtab.
1228 (_initialize_scm_symtab): New function.
1229 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1230 _initialize_scm_type.
1231 (_initialize_scm_type): New function.
1232
8e3685bf
AB
12332021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * python/py-arch.c (_initialize_py_arch): New function.
1236 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1237 * python/py-block.c (_initialize_py_block): New function.
1238 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1239 * python/py-inferior.c (_initialize_py_inferior): New function.
1240 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1241 * python/py-objfile.c (_initialize_py_objfile): New function.
1242 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1243 * python/py-progspace.c (_initialize_py_progspace): New function.
1244 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1245 * python/py-registers.c (_initialize_py_registers): New function.
1246 (gdbpy_initialize_registers): Move code to
1247 _initialize_py_registers.
1248 * python/py-symbol.c (_initialize_py_symbol): New function.
1249 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1250 * python/py-symtab.c (_initialize_py_symtab): New function.
1251 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1252 * python/py-type.c (_initialize_py_type): New function.
1253 (gdbpy_initialize_types): Move code to _initialize_py_type.
1254 * python/py-unwind.c (_initialize_py_unwind): New function.
1255 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1256 * python/python.c (_initialize_python): Move call to
1257 do_start_initialization to gdbpy_finish_initialization.
1258 (gdbpy_finish_initialization): Add call to
1259 do_start_initialization.
1260
913832e9
AB
12612021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1262
1263 * extension.c (struct scoped_default_signal): New struct.
1264 (scoped_default_sigint): New typedef.
1265 (finish_ext_lang_initialization): Make use of
1266 scoped_default_sigint.
1267
a3b5ef3e
AB
12682021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * main.c (captured_main_1): Don't pass argument to gdb_init.
1271 * top.c (gdb_init): Remove unused argument, and add header
1272 comment.
1273 * top.h (gdb_init): Remove argument.
1274
b9f90c72
LM
12752021-04-27 Luis Machado <luis.machado@linaro.org>
1276
1277 * psymtab.c (psymbol_functions::dump): Output newline.
1278 Remove wrap.
1279 * symmisc.c (dump_objfile): Likewise.
1280
2c473def
MW
12812021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1282 Simon Marchi <simon.marchi@polymtl.ca>
1283
1284 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1285 when attaching the 'auto_load_new_objfile' observer, so
1286 other observers can specify it as a dependency.
1287 * gdb/auto-load.h (struct token): Declare
1288 'auto_load_new_objfile_observer_token' as token to be used
1289 for the 'auto_load_new_objfile' observer.
1290 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1291 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1292 observer, so it gets notified after the latter.
1293
9a6e099f
MW
12942021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1295 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * unittests/observable-selftests.c (dependency_test_counters):
1298 New.
1299 (observer_token0, observer_token1, observer_token2,
1300 observer_token3, observer_token4, observer_token5): New.
1301 (struct dependency_observer_data): New struct.
1302 (observer_dependency_test_callback): New function.
1303 (test_observers): New.
1304 (run_dependency_test): New function.
1305 (test_dependency): New.
1306 (_initialize_observer_selftest): Register dependency test.
1307
bea3329b
SM
13082021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1309
1310 PR gdb/27773
1311 * cli/cli-dump.c (dump_binary_file): Check result of
1312 gdb_fopen_cloexec.
1313
c290cb01
ST
13142021-04-25 Sergei Trofimovich <siarheit@google.com>
1315
1316 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1317 by passing `process_stratum_target*` parameter.
1318
fbb46296
LS
13192021-04-25 Lancelot Six <lsix@lancelotsix.com>
1320
1321 PR gdb/22640
1322 * typeprint.h (struct type_print_options): Add print_in_hex
1323 flag.
1324 (struct print_offset_data): Add print_in_hex flag, add a
1325 constructor accepting a type_print_options* argument.
1326 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1327 default value for print_in_hex.
1328 (print_offset_data::indentation): Allow more horizontal space.
1329 (print_offset_data::print_offset_data): Add ctor.
1330 (print_offset_data::maybe_print_hole, print_offset_data::update):
1331 Handle the print_in_hex flag.
1332 (whatis_exp): Handle 'x' and 'd' flags.
1333 (print_offsets_and_sizes_in_hex): Declare.
1334 (set_print_offsets_and_sizes_in_hex): Create.
1335 (show_print_offsets_and_sizes_in_hex): Create.
1336 (_initialize_typeprint): Update help message for the ptype
1337 command, register the 'set print type hex' and 'show print type
1338 hex' commands.
1339 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1340 (c_type_print_base): Construct the print_offset_data
1341 object using the type_print_optons parameter.
1342 * rust-lang.c (rust_language::print_type): Construct the
1343 print_offset_data object using the type_print_optons parameter.
1344 * NEWS: Mention the new flags of the ptype command.
1345
18bbba46
LS
13462021-04-25 Lancelot Six <lsix@lancelotsix.com>
1347
1348 * typeprint.h (struct type_print_options): Move before
1349 print_offset_data.
1350
77393c9b
JB
13512021-04-25 Joel Brobecker <brobecker@adacore.com>
1352
1353 GDB 10.2 released.
1354
98c897e3
SM
13552021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1356
1357 * observable.c (observer_debug): Change to bool.
1358
9fc29955
AB
13592021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * dwarf2/read.c: Add 'unordered_set' include.
1362 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1363 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1364 of per_Bfd->filenames_cache cache, and use function local
1365 filenames_cache instead. Reindent.
1366 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1367
0406545d
SM
13682021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1369
1370 * breakpoint.c (iterate_over_bp_locations): Change callback to
1371 function view, remove data parameter.
1372 * breakpoint.h (iterate_over_bp_locations): Likewise.
1373 * record-full.c (record_full_sync_record_breakpoints): Remove
1374 data parameter.
1375
432ce4cf
TT
13762021-04-22 Tom Tromey <tom@tromey.com>
1377
1378 * c-typeprint.c (c_type_print_base_struct_union): Use
1379 print_spaces_filtered_with_print_options.
1380
e25d6d93
SM
13812021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1382
1383 PR gdb/27757
1384 * python/py-type.c (typy_range): Check that bounds are constant
1385 before accessing them as such.
1386 * guile/scm-type.c (gdbscm_type_range): Likewise.
1387
4efeb0d3
TBA
13882021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1389
1390 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1391 * inferior.c (inferior::add_continuation): New method, adapted
1392 from 'add_inferior_continuation'.
1393 (inferior::do_all_continuations): New method, adapted from
1394 'do_all_inferior_continuations'.
1395 (inferior::~inferior): Clear the list of continuations directly.
1396 * inferior.h (class inferior) <continuations>: Rename into...
1397 <m_continuations>: ...this and make private.
1398 * continuations.c: Remove.
1399 * continuations.h: Remove.
1400 * event-top.c: Don't include "continuations.h".
1401
1402 Update the users below.
1403 * inf-loop.c (inferior_event_handler)
1404 * infcmd.c (attach_command)
1405 (notice_new_inferior): Update.
1406
c4c493de
TBA
14072021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1408
1409 * inferior.h (class inferior) <continuations>: Change the type
1410 to be an std::list of std::function's.
1411 Update the references and uses below.
1412 * continuations.c (struct continuation): Delete.
1413 (make_continuation): Delete.
1414 (do_my_continuations_1): Delete.
1415 (do_my_continuations): Delete.
1416 (discard_my_continuations_1): Delete.
1417 (discard_my_continuations): Delete.
1418 (add_inferior_continuation): Update.
1419 (do_all_inferior_continuations): Update.
1420 (discard_all_inferior_continuations): Update.
1421 * continuations.h (add_inferior_continuation): Update to take
1422 an std::function as the parameter.
1423 * infcmd.c (struct attach_command_continuation_args): Delete.
1424 (attach_command_continuation): Delete.
1425 (attach_command_continuation_free_args): Delete.
1426 (attach_command): Update.
1427 (notice_new_inferior): Update.
1428
1194676e
TBA
14292021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1430
1431 * continuations.h: Update the general comment.
1432 * inferior.h (class inferior) <continuations>: Update the comment.
1433 * interps.c: Do not include "continuations.h".
1434
35682f0a
TBA
14352021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1436
1437 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1438 parameter. Update the references below.
1439 * continuations.c (do_my_continuations_1)
1440 (do_my_continuations)
1441 (do_all_inferior_continuations): Update.
1442 * inf-loop.c (inferior_event_handler): Update.
1443 * infcmd.c (attach_command_continuation): Update.
1444
6fee5eee
TBA
14452021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1446
1447 * infcmd.c (attach_post_wait): Update the function comment.
1448
27d0790a
TBA
14492021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1450
1451 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1452 Update the references below.
1453 (struct attach_command_continuation_args)
1454 (attach_command_continuation)
1455 (attach_command_continuation_free_args)
1456 (attach_command)
1457 (notice_new_inferior): Update to remove the reference to 'args'.
1458
c39ebbf4
TV
14592021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1460 Tom de Vries <tdevries@suse.de>
1461
1462 PR remote/27710
1463 * remote.c (remote_target_is_non_stop_p): New function.
1464 * remote.h (remote_target_is_non_stop_p): Declare.
1465 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1466 to check non-stopness using notif_state->remote rather current target.
1467
22f80c0f
TT
14682021-04-22 Tom Tromey <tom@tromey.com>
1469
1470 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1471 (struct typed_val_int) <val>: Now ULONGEST.
1472 (rust_parser::parse_array_type): Remove negative check.
1473 (rust_lex_int_test): Change 'value' to ULONGEST.
1474
05f3c0f0
AB
14752021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1476
1477 * arch-utils.c (default_addressable_memory_unit_size): Return a
1478 value based on bfd's bits per byte.
1479
7e7a35fb
TT
14802021-04-21 Tom Tromey <tom@tromey.com>
1481
1482 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1483 unsigned char.
1484 (struct dwarf2_per_cu_data): Rearrange.
1485 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1486 unsigned char.
1487 (struct comp_unit_head): Rearrange.
1488 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1489
ff507520
TV
14902021-04-21 Tom de Vries <tdevries@suse.de>
1491
1492 PR build/27681
1493 * configure.ac: Remove --without-included-regex/--with-included-regex.
1494 * config.in: Regenerate.
1495 * configure: Regenerate.
1496 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1497
10a636cc
TBA
14982021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1499
1500 * breakpoint.h (create_breakpoint): Add a new parameter,
1501 'force_condition'.
1502 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1503 argument when 'parse_extra' is false to check if the condition
1504 is invalid at all of the breakpoint locations.
1505 Update the users below.
1506 (break_command_1)
1507 (dprintf_command)
1508 (trace_command)
1509 (ftrace_command)
1510 (strace_command)
1511 (create_tracepoint_from_upload): Update.
1512 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1513 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1514 * python/py-breakpoint.c (bppy_init): Update.
1515 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1516
85c88e2a
TBA
15172021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1518
1519 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1520 disabled-by-condition locations on MI-like output.
1521 (breakpoint_1): Do not display the disabled-by-condition footnote
1522 if the output is MI-like.
1523
fd34472c
FC
15242021-04-21 Frederic Cambus <fred@statdns.com>
1525
1526 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1527 update year range in generated copyright notices.
1528
184dcd81
FW
15292021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1530
1531 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1532 qualifier_seq_noopt.
1533
525174e8
FW
15342021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1535
1536 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1537
f5dc2ee3
AB
15382021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1541 (producer_is_icc): Replace use of std::regex with gdb's
1542 compiled_regex.
1543
42c2c694
TT
15442021-04-17 Tom Tromey <tom@tromey.com>
1545
1546 PR gdb/23743:
1547 * dwarf2/read.c (class offset_view): New.
1548 (struct symbol_table_slot): Remove.
1549 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1550 <symbol_name_index, symbol_vec_index>: New methods.
1551 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1552 Rewrite.
1553 (read_gdb_index_from_buffer): Update.
1554 (struct dw2_symtab_iterator) <vec>: Change type.
1555 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1556 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1557 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1558 <append_array, append_offset>: New methods.
1559 (write_hash_table, add_address_entry, write_gdbindex_1)
1560 (write_debug_names): Update.
1561 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1562
da314dd3
TT
15632021-04-17 Tom Tromey <tom@tromey.com>
1564
1565 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1566 partial_symtabs.
1567
0b7b2c2a
TT
15682021-04-17 Tom Tromey <tom@tromey.com>
1569
1570 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1571 from map_matching_symbols. Change parameters.
1572 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1573 Rename from map_matching_symbols. Change parameters.
1574 * dwarf2/read.c (struct dwarf2_gdb_index)
1575 <expand_matching_symbols>: Rename from map_matching_symbols.
1576 Change parameters.
1577 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1578 Rename from map_matching_symbols. Change parameters.
1579 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1580 dw2_map_matching_symbols. Change parameters.
1581 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1582 implementation.
1583 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1584 map_matching_symbols. Change parameters.
1585 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1586 from map_matching_symbols. Change parameters.
1587 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1588 map_matching_symbols. Change parameters.
1589 * ada-lang.c (map_matching_symbols): New function.
1590 (add_nonlocal_symbols): Update.
1591
90160b57
TT
15922021-04-17 Tom Tromey <tom@tromey.com>
1593
1594 * quick-symbol.h (struct quick_symbol_functions)
1595 <expand_symtabs_with_fullname>: Remove.
1596 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1597 Remove.
1598 * psympriv.h (struct psymbol_functions)
1599 <expand_symtabs_with_fullname>: Remove.
1600 * dwarf2/read.c (struct dwarf2_base_index_functions)
1601 <expand_symtabs_with_fullname>: Remove.
1602 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1603 Remove.
1604 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1605 Update comment.
1606 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1607 Rewrite.
1608
7089bd88
TT
16092021-04-17 Tom Tromey <tom@tromey.com>
1610
1611 * symfile-debug.c (objfile::expand_symtabs_for_function):
1612 Rewrite.
1613 * quick-symbol.h (struct quick_symbol_functions)
1614 <expand_symtabs_for_function>: Remove.
1615 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1616 Remove.
1617 * psympriv.h (struct psymbol_functions)
1618 <expand_symtabs_for_function>: Remove.
1619 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1620 Update comment.
1621 * dwarf2/read.c (struct dwarf2_gdb_index)
1622 <expand_symtabs_for_function>: Remove.
1623 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1624 Remove.
1625 (find_slot_in_mapped_hash): Remove.
1626 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1627 (dw2_symtab_iter_init): Remove one overload.
1628 (dwarf2_gdb_index::expand_symtabs_for_function)
1629 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1630
536a40f3
TT
16312021-04-17 Tom Tromey <tom@tromey.com>
1632
1633 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1634 Rewrite.
1635 * quick-symbol.h (struct quick_symbol_functions)
1636 <map_symtabs_matching_filename>: Remove.
1637 * psymtab.c (partial_map_expand_apply)
1638 (psymbol_functions::map_symtabs_matching_filename): Remove.
1639 * psympriv.h (struct psymbol_functions)
1640 <map_symtabs_matching_filename>: Remove.
1641 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1642 Update comment.
1643 * dwarf2/read.c (struct dwarf2_base_index_functions)
1644 <map_symtabs_matching_filename>: Remove.
1645 (dw2_map_expand_apply)
1646 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1647 Remove.
1648
84d865e3
TT
16492021-04-17 Tom Tromey <tom@tromey.com>
1650
1651 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1652 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1653 Remove.
1654 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1655 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1656 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1657 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1658 Remove.
1659 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1660 (dwarf2_gdb_index::lookup_symbol)
1661 (dwarf2_debug_names_index::lookup_symbol): Remove.
1662
3bfa51a7
TT
16632021-04-17 Tom Tromey <tom@tromey.com>
1664
1665 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1666 * symmisc.c (maintenance_expand_symtabs): Update.
1667 * symfile.c (expand_symtabs_matching): Update.
1668 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1669 parameter.
1670 * quick-symbol.h (struct quick_symbol_functions)
1671 <expand_symtabs_matching>: Add 'domain' parameter.
1672 * psymtab.c (recursively_search_psymtabs)
1673 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1674 parameter.
1675 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1676 Add 'domain' parameter.
1677 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1678 'domain' parameter.
1679 * linespec.c (iterate_over_all_matching_symtabs): Update.
1680 * dwarf2/read.c (struct dwarf2_gdb_index)
1681 <expand_symtabs_matching>: Add 'domain' parameter.
1682 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1683 'domain' parameter.
1684 (dw2_expand_symtabs_matching)
1685 (dwarf2_gdb_index::expand_symtabs_matching)
1686 (dw2_debug_names_iterator)
1687 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1688 parameter.
1689
03a8ea51
TT
16902021-04-17 Tom Tromey <tom@tromey.com>
1691
1692 * symtab.c (global_symbol_searcher::expand_symtabs)
1693 (default_collect_symbol_completion_matches_break_on): Update.
1694 * symmisc.c (maintenance_expand_symtabs): Update.
1695 * symfile.h (expand_symtabs_matching): Add search_flags
1696 parameter.
1697 * symfile.c (expand_symtabs_matching): Add search_flags
1698 parameter.
1699 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1700 search_flags parameter.
1701 * quick-symbol.h (struct quick_symbol_functions)
1702 <expand_symtabs_matching>: Add search_flags parameter.
1703 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1704 * psymtab.c (recursively_search_psymtabs)
1705 (psymbol_functions::expand_symtabs_matching): Add search_flags
1706 parameter.
1707 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1708 Add search_flags parameter.
1709 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1710 search_flags parameter.
1711 * linespec.c (iterate_over_all_matching_symtabs): Update.
1712 * dwarf2/read.c (struct dwarf2_gdb_index)
1713 <expand_symtabs_matching>: Add search_flags parameter.
1714 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1715 search_flags parameter.
1716 (dw2_map_matching_symbols): Update.
1717 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1718 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1719 parameter.
1720 (dw2_debug_names_iterator): Change block_index to search flags.
1721 <m_block_index>: Likewise.
1722 (dw2_debug_names_iterator::next)
1723 (dwarf2_debug_names_index::lookup_symbol)
1724 (dwarf2_debug_names_index::expand_symtabs_for_function)
1725 (dwarf2_debug_names_index::map_matching_symbols)
1726 (dwarf2_debug_names_index::map_matching_symbols): Update.
1727 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1728 search_flags parameter.
1729 * ada-lang.c (ada_add_global_exceptions)
1730 (collect_symbol_completion_matches): Update.
1731
df35e626
TT
17322021-04-17 Tom Tromey <tom@tromey.com>
1733
1734 * symtab.c (default_collect_symbol_completion_matches_break_on):
1735 Update.
1736 * symfile.h (expand_symtabs_matching): Return bool.
1737 * symfile.c (expand_symtabs_matching): Return bool.
1738 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1739 bool.
1740 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1741 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1742 bool.
1743 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1744 bool.
1745 * psympriv.h (struct psymbol_functions)
1746 <expand_symtabs_matching>: Return bool.
1747 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1748 bool.
1749 * dwarf2/read.c (struct dwarf2_gdb_index)
1750 <expand_symtabs_matching>: Return bool.
1751 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1752 Return bool.
1753 (dw2_expand_symtabs_matching_symbol): Return bool.
1754 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1755 (dw2_expand_symtabs_matching)
1756 (dwarf2_gdb_index::expand_symtabs_matching)
1757 (dwarf2_debug_names_index::expand_symtabs_matching)
1758 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1759
e357e990
TT
17602021-04-17 Tom Tromey <tom@tromey.com>
1761
1762 * quick-symbol.h (enum block_search_flag_values): New.
1763 (block_search_flags): New enum flags type.
1764
3cbc7ac3
TT
17652021-04-16 Tom Tromey <tom@tromey.com>
1766
1767 * rust-parse.c: New file.
1768 * rust-exp.y: Remove.
1769 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1770 (SFILES): Remove rust-exp.y.
1771 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1772
1b6b755e
LM
17732021-04-16 Luis Machado <luis.machado@linaro.org>
1774
1775 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1776
c45ecc9d
JB
17772021-04-15 John Baldwin <jhb@FreeBSD.org>
1778
1779 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1780 use throughout file.
1781
a15a276b
TT
17822021-04-15 Tom Tromey <tromey@adacore.com>
1783
1784 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1785 arrays.
1786
644a2e75
TT
17872021-04-15 Tom Tromey <tromey@adacore.com>
1788
1789 * printcmd.c (print_variable_and_value): Use
1790 common_val_print_checked.
1791
9e5e03df
TT
17922021-04-15 Tom Tromey <tromey@adacore.com>
1793
1794 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1795 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1796 Update.
1797 * p-exp.y (variable): Update.
1798 * m2-exp.y (variable): Update.
1799 * go-exp.y (variable): Update.
1800 * expprint.c (dump_for_expression): New overload.
1801 * expop.h (check_objfile): New overload.
1802 (check_constant): New overload.
1803 (class var_value_operation): Use block_symbol.
1804 <get_symbol>: Rewrite.
1805 * eval.c (var_value_operation::evaluate)
1806 (var_value_operation::evaluate_funcall)
1807 (var_value_operation::evaluate_for_address)
1808 (var_value_operation::evaluate_for_address)
1809 (var_value_operation::evaluate_with_coercion)
1810 (var_value_operation::evaluate_for_sizeof)
1811 (var_value_operation::evaluate_for_cast): Update.
1812 * d-exp.y (PrimaryExpression): Update.
1813 * c-exp.y (variable): Update.
1814 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1815 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1816 (ada_var_value_operation::evaluate)
1817 (ada_var_value_operation::resolve)
1818 (ada_funcall_operation::resolve): Update.
1819 * ada-exp.y (write_var_from_sym, write_object_renaming)
1820 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1821 (maybe_overload): Update.
1822 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1823
5809fbf2
TT
18242021-04-15 Tom Tromey <tom@tromey.com>
1825 Andrew Burgess <andrew.burgess@embecosm.com>
1826
1827 * NEWS: Add entry.
1828 * main.c (captured_main_1): Call check_quiet_mode.
1829 * top.c (startup_quiet): New global.
1830 (check_quiet_mode): New function.
1831 (show_startup_quiet): New function.
1832 (init_main): Register new command.
1833 * top.h (check_quiet_mode): Declare.
1834
92e4e97a
AB
18352021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1836
1837 PR cli/25956
1838 * NEWS: Mention new early init files and command line options.
1839 * config.in: Regenerate.
1840 * configure: Regenerate.
1841 * configure.ac: Define GDBEARLYINIT.
1842 * main.c (get_earlyinit_files): New function.
1843 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1844 CMDARG_EARLYINIT_COMMAND.
1845 (captured_main_1): Add support for new command line flags, and for
1846 processing startup files.
1847 (print_gdb_help): Include startup files in the output.
1848
54b4dcc5
AB
18492021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1852 (relocate_file_path_maybe_in_datadir): ...this.
1853 (class gdb_initfile_finder): New class.
1854 (get_init_files): Now uses gdb_initfile_finder.
1855 (print_gdb_help): Print 'None found' when there are no init files.
1856
34dc0f95
TBA
18572021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1858
1859 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1860 corresponding child of the abstract DIE when iterating the
1861 children of the concrete DIE.
1862
329534fd
TV
18632021-04-13 Tom de Vries <tdevries@suse.de>
1864
1865 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1866 type to regoff_t *.
1867
d9d2ef05
LM
18682021-04-13 Luis Machado <luis.machado@linaro.org>
1869
1870 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1871 hex values.
1872
c8a37944
WS
18732021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1874
1875 * rs6000-tdep.c: Add support for single-stepping of
1876 prefixed instructions.
1877
b722acca
WS
18782021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1879
e3d528d7
WS
1880 PR gdb/27525
1881 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1882 handle the addpcis/lnia instruction.
1883
18842021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1885
b722acca
WS
1886 * MAINTAINERS (Write After Approval): Add myself.
1887
6ba4cb84
CL
18882021-4-12 Carl Love <cel@us.ibm.com>
1889
1890 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1891 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1892 float128.
1893
d4717483
SM
18942021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1897 * nat/windows-nat.h: Likewise.
1898
b3885679
EZ
18992021-04-10 Eli Zaretskii <eliz@gnu.org>
1900
1901 * windows-nat.c (windows_nat::handle_load_dll): Call
1902 windows_add_dll if get_image_name failed to glean the name of the
1903 DLL by using the lpImageName pointer.
1904 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1905 (windows_add_dll): Now does what windows_add_all_dlls did before,
1906 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1907 specifies the address where the DLL was loaded into the inferior,
1908 and looks for the single DLL loaded at that address.
1909
1ef6a596
LM
19102021-04-09 Luis Machado <luis.machado@linaro.org>
1911
1912 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1913
83a559f7
DQ
19142021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1915
1916 * darwin-nat.c (darwin_nat_target::resume): Remove status
1917 variable.
1918
16e311ab
FW
19192021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1920
1921 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1922 prologue end for Intel compilers.
1923 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1924 * producer.c (producer_is_icc_ge_19): New function.
1925 * producer.h (producer_is_icc_ge_19): New declaration.
1926
fbb3bcfc
FW
19272021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1928
1929 * producer.c: (producer_is_icc): Update for new version scheme.
1930 (producer_parsing_tests): Update names and expected results.
1931 * producer.h: (producer_is_icc): Update comment accordingly.
1932
e97007b6
SM
19332021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1934
1935 * target.h (struct target_ops) <follow_fork>: Return void.
1936 (target_follow_fork): Likewise.
1937 * target.c (default_follow_fork): Likewise.
1938 (target_follow_fork): Likewise.
1939 * infrun.c (follow_fork_inferior): Adjust.
1940 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1941 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1942 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1943 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1944 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1945 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1946 * remote.c (class remote_target) <follow_fork>: Likewise.
1947 (remote_target::follow_fork): Likewise.
1948 * target-delegates.c: Re-generate.
1949
dc2b480f
WP
19502021-04-07 Weimin Pan <weimin.pan@oracle.com>
1951
1952 * ctfread.c (fetch_tid_type): New function, use throughout file.
1953 (read_forward_type): New function.
1954 (read_type_record): Call read_forward_type.
1955
0a703a4c
AB
19562021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * f-exp.h (class fortran_structop_operation): New class.
1959 * f-exp.y (exp): Create fortran_structop_operation instead of the
1960 generic structop_operation.
1961 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1962 expression as EVAL_NORMAL if the result type was dynamic so we can
1963 extract the actual array bounds.
1964 (fortran_structop_operation::evaluate): New function.
1965
19662021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1967
1968 * eval.c (evaluate_subexp_standard): Remove
1969 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1970 STRUCTOP_PTR.
1971
30ab3586
AB
19722021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * valops.c (value_cast): Call value_deeply_equal before performing
1975 any cast.
1976
5e18990f
AB
19772021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1978
1979 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1980 the function.
1981
56d467f4
CT
19822021-04-07 Caroline Tice <cmtice@google.com>
1983
1984 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1985 the search paths used resolve relative location of .dwo file.
1986
1fd999d9
AB
19872021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1990 assert.
1991 (dwarf2_section_info::get_file_name): Add an assert.
1992 (dwarf2_section_info::read_string): Display a minimal, sane error
1993 when the dwarf2_section_info is not associated with a bfd section.
1994
79c02443
AB
19952021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * top.c (staged_gdb_datadir): Update comment.
1998 (set_gdb_datadir): Copy the value of gdb_datadir back into
1999 staged_datadir.
2000 (init_main): Initialise staged_gdb_datadir.
2001
340d00fb
TV
20022021-04-06 Tom de Vries <tdevries@suse.de>
2003
2004 PR breakpoints/25884
2005 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2006 stepping range.
2007
d811a7cf
TV
20082021-04-06 Tom de Vries <tdevries@suse.de>
2009
2010 PR tui/27680
2011 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2012 to style.parse.
2013
306b445a
SM
20142021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2015
2016 * avr-tdep.c (avr_frame_unwind_cache): Use
2017 trad_frame_saved_reg::is_addr.
2018
9161c89a
SM
20192021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2022 adjust callers.
2023
0072c873
SM
20242021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2025
2026 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2027 objfile parameter for objfile_per_bfd_storage, adjust callers.
2028 (struct standard_psymtab) <standard_psymtab>: Likewise.
2029 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2030 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2031 * ctfread.c (struct ctf_psymtab): Likewise.
2032 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2033 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2034 (dwarf2_create_include_psymtab): Likewise.
2035 * objfiles.h (struct objfile_per_bfd_storage)
2036 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2037 <get_bfd>: New method.
2038 <m_bfd>: New field.
2039 * objfiles.c (get_objfile_bfd_data): Adjust.
2040
9984dd99
SM
20412021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2042
2043 * psymtab.c (partial_symtab::partial_symtab): Change
2044 last_objfile_name to be an std::string.
2045 * symfile.c (allocate_symtab): Likewise.
2046
4a4f97c1
SM
20472021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2048
2049 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2050 methods.
2051 (struct objfile) <intern>: Use
2052 objfile::objfile_per_bfd_storage::intern.
2053
0672875f
SM
20542021-04-01 Simon Marchi <simon.marchi@efficios.com>
2055
2056 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2057 with type::is_flag_enum.
2058
9902b327
SM
20592021-04-01 Simon Marchi <simon.marchi@efficios.com>
2060
2061 * gdbtypes.h (struct type) <is_flag_enum,
2062 set_is_flag_enum>: New methods.
2063 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2064 write call sites to use type::set_is_flag_enum.
2065
3bc440a2
SM
20662021-04-01 Simon Marchi <simon.marchi@efficios.com>
2067
2068 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2069 with type::is_declared_class.
2070
aa70e35c
SM
20712021-04-01 Simon Marchi <simon.marchi@efficios.com>
2072
2073 * gdbtypes.h (struct type) <is_declared_class,
2074 set_is_declared_class>: New methods.
2075 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2076 write call sites to use type::set_is_declared_class.
2077
bfb9f5dc
BS
20782021-02-28 Boris Staletic <boris.staletic@gmail.com>
2079
2080 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2081 to avoid deprecation warnings.
2082
733f5eea
ML
20832021-04-01 Martin Liska <mliska@suse.cz>
2084
2085 * cp-name-parser.y: Use startswith instead of strncmp.
2086 * m2-exp.y: Likewise.
2087 * macroexp.c (substitute_args): Likewise.
2088 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2089 * rust-exp.y: Likewise.
2090
af82f89d
TT
20912021-03-31 Tom Tromey <tom@tromey.com>
2092
2093 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2094 with dw2_map_matching_symbols.
2095 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2096 dw2_expand_symtabs_matching.
2097
3570682a
TT
20982021-03-31 Tom Tromey <tromey@adacore.com>
2099
2100 * dwarf2/stringify.h: Fix typo.
2101
8a91fbdf
SM
21022021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2103
2104 PR gdb/27541
2105 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2106 with objfiles using READNOW.
2107
9f67fc59
TT
21082021-03-29 Tom Tromey <tromey@adacore.com>
2109
2110 * top.c (check_frame_language_change): Update.
2111 * language.c (language_info): Remove parameter.
2112 * language.h (language_info): Remove parameter.
2113
9b8ffbf4
LM
21142021-03-29 Luis Machado <luis.machado@linaro.org>
2115
2116 * compile/compile.c (get_args): Don't add empty argv entries.
2117
25b48839
RO
21182021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2119
2120 gdb:
2121 * procfs.c (procfs_target::attach): Define inf.
2122 Use it.
2123 (procfs_target::create_inferior): Likewise.
2124
edc02ceb
TT
21252021-03-28 Tom Tromey <tom@tromey.com>
2126
2127 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2128 (elf_symfile_read): Simplify.
2129 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2130 (make_lazy_dwarf_reader): New function.
2131 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2132 (dwarf2_initialize_objfile): Return void. Remove index_kind
2133 parameter. Push on 'qf' list.
2134 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2135 type. Remove 'index_kind' parameter.
2136 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2137
6e23d91a
TT
21382021-03-27 Tom Tromey <tom@tromey.com>
2139
2140 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2141
594b8948
TT
21422021-03-27 Tom Tromey <tom@tromey.com>
2143
2144 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2145
efe1ecd8
LS
21462021-03-26 Lancelot Six <lsix@lancelotsix.com>
2147
2148 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2149 rid of 'local'.
2150
f4655dee
TT
21512021-03-26 Tom Tromey <tom@tromey.com>
2152
2153 * symtab.c (struct output_source_filename_data): Add 'output'
2154 method and operator().
2155 (output_source_filename_data::output): Rename from
2156 output_source_filename.
2157 (output_partial_symbol_filename): Remove.
2158 (info_sources_command): Update.
2159 (struct add_partial_filename_data): Add operator().
2160 (add_partial_filename_data::operator()): Rename from
2161 maybe_add_partial_symtab_filename.
2162 (make_source_files_completion_list): Update.
2163 * symfile.c (quick_symbol_functions): Update.
2164 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2165 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2166 'need_fullname'. Remove 'data' parameter.
2167 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2168 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2169 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2170 Change type of 'fun' and 'need_fullname'. Remove 'data'
2171 parameter.
2172 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2173 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2174 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2175 parameter.
2176 (mi_cmd_file_list_exec_source_files): Update.
2177 * dwarf2/read.c
2178 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2179
2315bb2d
TT
21802021-03-26 Tom Tromey <tom@tromey.com>
2181
2182 * ada-lang.c (struct match_data): Add operator().
2183 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2184 (callback): Remove 'callback'.
2185
e2cd5ca4
TT
21862021-03-26 Tom Tromey <tom@tromey.com>
2187
2188 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2189 call make_ignore_params once.
2190
cd43f63e
TT
21912021-03-26 Tom Tromey <tom@tromey.com>
2192
2193 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2194 "user" check.
2195
b4b1a226
SM
21962021-03-26 Simon Marchi <simon.marchi@efficios.com>
2197 Pedro Alves <pedro@palves.net>
2198
2199 * async-event.c: Include "infrun.h".
2200 (async_event_handler_marked): New.
2201 * async-event.h (async_event_handler_marked): Declare.
2202 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2203 inferior before calling target method. Don't commit-resumed if
2204 target_has_pending_events is true.
2205 * remote.c (remote_target::has_pending_events): New.
2206 * target-delegates.c: Regenerate.
2207 * target.c (target_has_pending_events): New.
2208 * target.h (target_ops::has_pending_events): New target method.
2209 (target_has_pending_events): New.
2210
1192f124
SM
22112021-03-26 Simon Marchi <simon.marchi@efficios.com>
2212 Pedro Alves <pedro@palves.net>
2213
2214 * infcmd.c (run_command_1, attach_command, detach_command)
2215 (interrupt_target_1): Use scoped_disable_commit_resumed.
2216 * infrun.c (do_target_resume): Remove
2217 target_commit_resume call.
2218 (commit_resume_all_targets): Remove.
2219 (maybe_set_commit_resumed_all_targets): New.
2220 (maybe_call_commit_resumed_all_targets): New.
2221 (enable_commit_resumed): New.
2222 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2223 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2224 (scoped_disable_commit_resumed::reset)
2225 (scoped_disable_commit_resumed::reset_and_commit)
2226 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2227 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2228 New.
2229 (proceed): Use scoped_disable_commit_resumed and
2230 maybe_call_commit_resumed_all_targets.
2231 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2232 * infrun.h (struct scoped_disable_commit_resumed): New.
2233 (maybe_call_commit_resumed_all_process_targets): New.
2234 (struct scoped_enable_commit_resumed): New.
2235 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2236 * process-stratum-target.h (class process_stratum_target):
2237 <commit_resumed_state>: New.
2238 * record-full.c (record_full_wait_1): Change commit_resumed_state
2239 around calling commit_resumed.
2240 * remote.c (class remote_target) <commit_resume>: Rename to...
2241 <commit_resumed>: ... this.
2242 (struct stop_reply): Move up.
2243 (remote_target::commit_resume): Rename to...
2244 (remote_target::commit_resumed): ... this. Check if there is any
2245 thread pending vCont resume.
2246 (remote_target::remote_stop_ns): Generate stop replies for resumed
2247 but pending vCont threads.
2248 (remote_target::wait_ns): Add gdb_assert.
2249 * target-delegates.c: Regenerate.
2250 * target.c (target_wait, target_resume): Assert that the current
2251 process_stratum target isn't in commit-resumed state.
2252 (defer_target_commit_resume): Remove.
2253 (target_commit_resume): Remove.
2254 (target_commit_resumed): New.
2255 (make_scoped_defer_target_commit_resume): Remove.
2256 (target_stop): Assert that the current process_stratum target
2257 isn't in commit-resumed state.
2258 * target.h (struct target_ops) <commit_resume>: Rename to ...
2259 <commit_resumed>: ... this.
2260 (target_commit_resume): Remove.
2261 (target_commit_resumed): New.
2262 (make_scoped_defer_target_commit_resume): Remove.
2263 * top.c (wait_sync_command_done): Use
2264 scoped_enable_commit_resumed.
2265
e5b9b39f
PA
22662021-03-26 Pedro Alves <pedro@palves.net>
2267
2268 * target.c (target_always_non_stop_p): Also check whether the
2269 target can async.
2270
bab287cd
TT
22712021-03-26 Tom Tromey <tom@tromey.com>
2272
2273 * dwarf2/read.c (dwarf2_read_debug_names)
2274 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2275 (dw2_debug_names_iterator::next, create_type_unit_group):
2276 Simplify.
2277
eff4f69d
PA
22782021-03-25 Pedro Alves <pedro@palves.net>
2279
2280 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2281 around setting the breakpoint.
2282
323fd5b9
PA
22832021-03-25 Pedro Alves <pedro@palves.net>
2284
2285 * remote.c
2286 (remote_target::check_pending_events_prevent_wildcard_vcont):
2287 Check whether the event's ptid is not null_ptid before looking up
2288 the corresponding inferior.
2289
d3cbca38
CD
22902021-03-24 Changbin Du <changbin.du@gmail.com>
2291
2292 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2293 read_code.
2294
328d42d8
SM
22952021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2296
2297 * target.h (current_top_target): Remove, make callers use the
2298 current inferior instead.
2299 * target.c (current_top_target): Remove.
2300
d777bf0d
SM
23012021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * target.h (target_shortname): Change to function declaration.
2304 (target_longname): Likewise.
2305 (target_attach_no_wait): Likewise.
2306 (target_post_attach): Likewise.
2307 (target_prepare_to_store): Likewise.
2308 (target_supports_enable_disable_tracepoint): Likewise.
2309 (target_supports_string_tracing): Likewise.
2310 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2311 (target_supports_dumpcore): Likewise.
2312 (target_dumpcore): Likewise.
2313 (target_can_run_breakpoint_commands): Likewise.
2314 (target_files_info): Likewise.
2315 (target_post_startup_inferior): Likewise.
2316 (target_insert_fork_catchpoint): Likewise.
2317 (target_remove_fork_catchpoint): Likewise.
2318 (target_insert_vfork_catchpoint): Likewise.
2319 (target_remove_vfork_catchpoint): Likewise.
2320 (target_insert_exec_catchpoint): Likewise.
2321 (target_remove_exec_catchpoint): Likewise.
2322 (target_set_syscall_catchpoint): Likewise.
2323 (target_rcmd): Likewise.
2324 (target_can_lock_scheduler): Likewise.
2325 (target_can_async_p): Likewise.
2326 (target_is_async_p): Likewise.
2327 (target_execution_direction): Likewise.
2328 (target_extra_thread_info): Likewise.
2329 (target_pid_to_exec_file): Likewise.
2330 (target_thread_architecture): Likewise.
2331 (target_find_memory_regions): Likewise.
2332 (target_make_corefile_notes): Likewise.
2333 (target_get_bookmark): Likewise.
2334 (target_goto_bookmark): Likewise.
2335 (target_stopped_by_watchpoint): Likewise.
2336 (target_stopped_by_sw_breakpoint): Likewise.
2337 (target_supports_stopped_by_sw_breakpoint): Likewise.
2338 (target_stopped_by_hw_breakpoint): Likewise.
2339 (target_supports_stopped_by_hw_breakpoint): Likewise.
2340 (target_have_steppable_watchpoint): Likewise.
2341 (target_can_use_hardware_watchpoint): Likewise.
2342 (target_region_ok_for_hw_watchpoint): Likewise.
2343 (target_can_do_single_step): Likewise.
2344 (target_insert_watchpoint): Likewise.
2345 (target_remove_watchpoint): Likewise.
2346 (target_insert_hw_breakpoint): Likewise.
2347 (target_remove_hw_breakpoint): Likewise.
2348 (target_can_accel_watchpoint_condition): Likewise.
2349 (target_can_execute_reverse): Likewise.
2350 (target_get_ada_task_ptid): Likewise.
2351 (target_filesystem_is_local): Likewise.
2352 (target_trace_init): Likewise.
2353 (target_download_tracepoint): Likewise.
2354 (target_can_download_tracepoint): Likewise.
2355 (target_download_trace_state_variable): Likewise.
2356 (target_enable_tracepoint): Likewise.
2357 (target_disable_tracepoint): Likewise.
2358 (target_trace_start): Likewise.
2359 (target_trace_set_readonly_regions): Likewise.
2360 (target_get_trace_status): Likewise.
2361 (target_get_tracepoint_status): Likewise.
2362 (target_trace_stop): Likewise.
2363 (target_trace_find): Likewise.
2364 (target_get_trace_state_variable_value): Likewise.
2365 (target_save_trace_data): Likewise.
2366 (target_upload_tracepoints): Likewise.
2367 (target_upload_trace_state_variables): Likewise.
2368 (target_get_raw_trace_data): Likewise.
2369 (target_get_min_fast_tracepoint_insn_len): Likewise.
2370 (target_set_disconnected_tracing): Likewise.
2371 (target_set_circular_trace_buffer): Likewise.
2372 (target_set_trace_buffer_size): Likewise.
2373 (target_set_trace_notes): Likewise.
2374 (target_get_tib_address): Likewise.
2375 (target_set_permissions): Likewise.
2376 (target_static_tracepoint_marker_at): Likewise.
2377 (target_static_tracepoint_markers_by_strid): Likewise.
2378 (target_traceframe_info): Likewise.
2379 (target_use_agent): Likewise.
2380 (target_can_use_agent): Likewise.
2381 (target_augmented_libraries_svr4_read): Likewise.
2382 (target_log_command): Likewise.
2383 * target.c (target_shortname): New.
2384 (target_longname): New.
2385 (target_attach_no_wait): New.
2386 (target_post_attach): New.
2387 (target_prepare_to_store): New.
2388 (target_supports_enable_disable_tracepoint): New.
2389 (target_supports_string_tracing): New.
2390 (target_supports_evaluation_of_breakpoint_conditions): New.
2391 (target_supports_dumpcore): New.
2392 (target_dumpcore): New.
2393 (target_can_run_breakpoint_commands): New.
2394 (target_files_info): New.
2395 (target_post_startup_inferior): New.
2396 (target_insert_fork_catchpoint): New.
2397 (target_remove_fork_catchpoint): New.
2398 (target_insert_vfork_catchpoint): New.
2399 (target_remove_vfork_catchpoint): New.
2400 (target_insert_exec_catchpoint): New.
2401 (target_remove_exec_catchpoint): New.
2402 (target_set_syscall_catchpoint): New.
2403 (target_rcmd): New.
2404 (target_can_lock_scheduler): New.
2405 (target_can_async_p): New.
2406 (target_is_async_p): New.
2407 (target_execution_direction): New.
2408 (target_extra_thread_info): New.
2409 (target_pid_to_exec_file): New.
2410 (target_thread_architecture): New.
2411 (target_find_memory_regions): New.
2412 (target_make_corefile_notes): New.
2413 (target_get_bookmark): New.
2414 (target_goto_bookmark): New.
2415 (target_stopped_by_watchpoint): New.
2416 (target_stopped_by_sw_breakpoint): New.
2417 (target_supports_stopped_by_sw_breakpoint): New.
2418 (target_stopped_by_hw_breakpoint): New.
2419 (target_supports_stopped_by_hw_breakpoint): New.
2420 (target_have_steppable_watchpoint): New.
2421 (target_can_use_hardware_watchpoint): New.
2422 (target_region_ok_for_hw_watchpoint): New.
2423 (target_can_do_single_step): New.
2424 (target_insert_watchpoint): New.
2425 (target_remove_watchpoint): New.
2426 (target_insert_hw_breakpoint): New.
2427 (target_remove_hw_breakpoint): New.
2428 (target_can_accel_watchpoint_condition): New.
2429 (target_can_execute_reverse): New.
2430 (target_get_ada_task_ptid): New.
2431 (target_filesystem_is_local): New.
2432 (target_trace_init): New.
2433 (target_download_tracepoint): New.
2434 (target_can_download_tracepoint): New.
2435 (target_download_trace_state_variable): New.
2436 (target_enable_tracepoint): New.
2437 (target_disable_tracepoint): New.
2438 (target_trace_start): New.
2439 (target_trace_set_readonly_regions): New.
2440 (target_get_trace_status): New.
2441 (target_get_tracepoint_status): New.
2442 (target_trace_stop): New.
2443 (target_trace_find): New.
2444 (target_get_trace_state_variable_value): New.
2445 (target_save_trace_data): New.
2446 (target_upload_tracepoints): New.
2447 (target_upload_trace_state_variables): New.
2448 (target_get_raw_trace_data): New.
2449 (target_get_min_fast_tracepoint_insn_len): New.
2450 (target_set_disconnected_tracing): New.
2451 (target_set_circular_trace_buffer): New.
2452 (target_set_trace_buffer_size): New.
2453 (target_set_trace_notes): New.
2454 (target_get_tib_address): New.
2455 (target_set_permissions): New.
2456 (target_static_tracepoint_marker_at): New.
2457 (target_static_tracepoint_markers_by_strid): New.
2458 (target_traceframe_info): New.
2459 (target_use_agent): New.
2460 (target_can_use_agent): New.
2461 (target_augmented_libraries_svr4_read): New.
2462 (target_log_command): New.
2463 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2464 * infrun.c (set_schedlock_func): Adjust.
2465 * mi/mi-main.c (exec_reverse_continue): Adjust.
2466 * reverse.c (exec_reverse_once): Adjust.
2467 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2468 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2469 * remote-sim.c (gdbsim_target::detach): Adjust.
2470 (gdbsim_target::files_info): Adjust.
2471
b64f703b
TT
24722021-03-24 Tom Tromey <tom@tromey.com>
2473
2474 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2475 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2476 (check_match, dw2_expand_symtabs_matching)
2477 (dwarf2_debug_names_index::map_matching_symbols)
2478 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2479
68f115f8
KS
24802021-03-24 Keith Seitz <keiths@redhat.com>
2481
2482 * compile/compile-cplus-types.c
2483 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2484 thinko.
2485
41c0087b
SM
24862021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 * gdbarch.sh (gdbarch_data_registry): Make static.
2489 * gdbarch.c: Re-generate.
2490
ce192338
LM
24912021-03-24 Luis Machado <luis.machado@linaro.org>
2492
2493 * NEWS: Mention memory tagging changes.
2494
bef382e6
LM
24952021-03-24 Luis Machado <luis.machado@linaro.org>
2496
2497 * printcmd.c (decode_format): Handle the 'm' modifier.
2498 (do_examine): Display allocation tags when required/supported.
2499 (should_validate_memtags): New function.
2500 (print_command_1): Display memory tag mismatches.
2501 * valprint.c (show_memory_tag_violations): New function.
2502 (value_print_option_defs): Add new option "memory-tag-violations".
2503 (user_print_options) <memory_tag_violations>: Initialize to 1.
2504 * valprint.h (struct format_data) <print_tags>: New field.
2505 (value_print_options) <memory_tag_violations>: New field.
2506
48136e00
LM
25072021-03-24 Luis Machado <luis.machado@linaro.org>
2508
2509 * printcmd.c: Include gdbsupport/rsp-low.h.
2510 (memory_tag_list): New static global.
2511 (process_print_command_args): Factored out of
2512 print_command_1.
2513 (print_command_1): Use process_print_command_args.
2514 (show_addr_not_tagged, show_memory_tagging_unsupported)
2515 (memory_tag_command, memory_tag_print_tag_command)
2516 (memory_tag_print_logical_tag_command)
2517 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2518 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2519 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2520 functions.
2521 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2522
ffcc2a15
LM
25232021-03-24 Luis Machado <luis.machado@linaro.org>
2524
2525 * aarch64-linux-tdep.c
2526 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2527 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2528
cf44c9fa
LM
25292021-03-24 Luis Machado <luis.machado@linaro.org>
2530
2531 * aarch64-linux-tdep.c
2532 (aarch64_linux_report_signal_info): New function.
2533 (aarch64_linux_init_abi): Register
2534 aarch64_linux_report_signal_info as the report_signal_info hook.
2535 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2536 (SEGV_MTESERR): Define.
2537
b4a7d4fc
LM
25382021-03-24 Luis Machado <luis.machado@linaro.org>
2539
2540 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2541 (aarch64_linux_ltag_tests): New function.
2542 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2543
c7782e50
LM
25442021-03-24 Luis Machado <luis.machado@linaro.org>
2545
2546 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2547 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2548 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2549 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2550 functions.
2551 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2552 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2553 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2554 (aarch64_linux_get_ltag): New functions.
2555 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2556 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2557 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2558 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2559
1e735120
LM
25602021-03-24 Luis Machado <luis.machado@linaro.org>
2561
2562 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2563 bit.
2564 (struct smaps_data): New struct.
2565 (decode_vmflags): Handle the 'mt' flag.
2566 (parse_smaps_data): New function, refactored from
2567 linux_find_memory_regions_full.
2568 (linux_address_in_memtag_page): New function.
2569 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2570 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2571
93e447c6
LM
25722021-03-24 Luis Machado <luis.machado@linaro.org>
2573
2574 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2575 instead of char arrays.
2576
4601818e
LM
25772021-03-24 Luis Machado <luis.machado@linaro.org>
2578
2579 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2580 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2581 nat/aarch64-mte-linux-ptrace.h.
2582 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2583 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2584 override.
2585 <fetch_memtags>: New method override.
2586 <store_memtags>: New method override.
2587 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2588 (aarch64_linux_nat_target::fetch_memtags): New method.
2589 (aarch64_linux_nat_target::store_memtags): New method.
2590 * arch/aarch64-mte-linux.c: New file.
2591 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2592 (AARCH64_MTE_GRANULE_SIZE): Define.
2593 (aarch64_memtag_type): New enum.
2594 (aarch64_mte_get_tag_granules): New prototype.
2595 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2596 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2597 * nat/aarch64-mte-linux-ptrace.c: New file.
2598 * nat/aarch64-mte-linux-ptrace.h: New file.
2599
3f3bd8b8
LM
26002021-03-24 Luis Machado <luis.machado@linaro.org>
2601
2602 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2603 * nat/aarch64-mte-linux-ptrace.h: New file.
2604
5e984dbf
LM
26052021-03-24 Luis Machado <luis.machado@linaro.org>
2606
2607 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2608 (store_mteregs_to_thread): New function.
2609 (aarch64_linux_nat_target::fetch_registers): Update to call
2610 fetch_mteregs_from_thread.
2611 (aarch64_linux_nat_target::store_registers): Update to call
2612 store_mteregs_to_thread.
2613 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2614 (aarch64_cannot_store_register): Handle MTE registers.
2615 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2616 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2617 <has_mte>: New method.
2618 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2619
c1bd443b
LM
26202021-03-24 Luis Machado <luis.machado@linaro.org>
2621
2622 * aarch64-linux-nat.c
2623 (aarch64_linux_nat_target::read_description): Take MTE flag into
2624 account.
2625 Slight refactor to hwcap flag checking.
2626 * aarch64-linux-tdep.c
2627 (aarch64_linux_core_read_description): Likewise.
2628 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2629 MTE.
2630 (aarch64_read_description): Add mte_p parameter and update to use it.
2631 Update the documentation.
2632 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2633 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2634 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2635 (aarch64_create_target_description): Add mte_p parameter and update
2636 the code to use it.
2637 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2638 parameter.
2639 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2640 * features/aarch64-mte.c: New file, generated.
2641 * features/aarch64-mte.xml: New file.
2642
04245125
LM
26432021-03-24 Luis Machado <luis.machado@linaro.org>
2644
2645 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2646 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2647 * aarch64-linux-tdep.c: Likewise
2648 * arch/aarch64-mte-linux.h: New file.
2649
754487e2
LM
26502021-03-24 Luis Machado <luis.machado@linaro.org>
2651
2652 * remote: Include gdbsupport/selftest.h.
2653 (test_memory_tagging_functions): New function.
2654 (_initialize_remote): Register test_memory_tagging_functions.
2655
2c2e7f87
LM
26562021-03-24 Luis Machado <luis.machado@linaro.org>
2657
2658 * remote.c (PACKET_memory_tagging_feature): New enum.
2659 (remote_memory_tagging_p): New function.
2660 (remote_protocol_features): New "memory-tagging" entry.
2661 (remote_target::remote_query_supported): Handle memory tagging
2662 support.
2663 (remote_target::supports_memory_tagging): Implement.
2664 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2665 (create_store_memtags_request): New functions.
2666 (remote_target::fetch_memtags): Implement.
2667 (remote_target::store_memtags): Implement.
2668 (_initialize_remote): Add new "memory-tagging-feature"
2669 config command.
2670
c193949e
LM
26712021-03-24 Luis Machado <luis.machado@linaro.org>
2672
2673 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2674 (default_memtag_matches_p, default_set_memtags)
2675 (default_get_memtag): New functions.
2676 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2677 (default_memtag_matches_p, default_set_memtags)
2678 (default_get_memtag): New prototypes.
2679 * gdbarch.c: Regenerate.
2680 * gdbarch.h: Regenerate.
2681 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2682 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2683 (enum memtag_type): New enum.
2684
dbe692af
LM
26852021-03-24 Luis Machado <luis.machado@linaro.org>
2686
2687 * remote.c (remote_target) <supports_memory_tagging>: New method
2688 override.
2689 <fetch_memtags>: New method override.
2690 <store_memtags>: New method override.
2691 (remote_target::supports_memory_tagging): New method.
2692 (remote_target::fetch_memtags): New method.
2693 (remote_target::store_memtags): New method.
2694 * target-delegates.c: Regenerate.
2695 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2696 method.
2697 <fetch_memtags>: New virtual method.
2698 <store_memtags>: New virtual method.
2699 (target_supports_memory_tagging): Define.
2700 (target_fetch_memtags): Define.
2701 (target_store_memtags): Define.
2702 * target-debug.h (target_debug_print_size_t)
2703 (target_debug_print_const_gdb_byte_vector_r)
2704 (target_debug_print_gdb_byte_vector_r): New functions.
2705
66848ebc
SM
27062021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2707
2708 * target.h (target_longname): Remove.
2709
c8fbd44a
SM
27102021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2711
2712 * target.h (target_is_pushed): Remove, update callers to use
2713 inferior::target_is_pushed instead.
2714 * target.c (target_is_pushed): Remove.
2715
02980c56
SM
27162021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * target.h (push_target): Remove, update callers to use
2719 inferior::push_target.
2720 * target.c (push_target): Remove.
2721 * inferior.h (class inferior) <push_target>: New overload.
2722
fadf6add
SM
27232021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2724
2725 * target.h (unpush_target): Remove, update all callers
2726 to use `inferior::unpush_target` instead.
2727 (struct target_unpusher) <operator()>: Just declare.
2728 * target.c (unpush_target): Remove.
2729 (target_unpusher::operator()): New.
2730
702cf3f5
AB
27312021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2732
2733 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2734 error.
2735 (process_full_comp_unit): Validate the top-level tag before
2736 processing the first DIE.
2737 (read_func_scope): Ensure we have a valid builder.
2738
46fec642
AB
27392021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * objc-lang.c (objc_demangle): Renamed to
2742 objc_language::demangle_symbol, and moved later in the file.
2743 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2744 member function.
2745 (objc_language::demangle_symbol): Defined outside of class
2746 declaration. The definition is the old objc_demangle with NULL
2747 changed to nullptr, and if conditions relating to nullptr pointers
2748 or null character checks made explicit.
2749 * objc-lang.h (objc_demangle): Delete declaration.
2750
08dedd66
ML
27512021-03-22 Martin Liska <mliska@suse.cz>
2752
2753 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2754 (_initialize_arm_tdep): Likewise.
2755
eb36a3eb
TT
27562021-03-20 Tom Tromey <tom@tromey.com>
2757
2758 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2759 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2760 * psymtab.h (make_psymbol_functions): Don't declare.
2761 * psymtab.c (make_psymbol_functions): Remove.
2762 (maintenance_print_psymbols): Update.
2763 * psympriv.h (struct psymbol_functions): Add no-argument
2764 constructor.
2765 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2766 <partial_symtabs>: Remove.
2767 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2768 * elfread.c (read_partial_symbols): Update.
2769 (elf_symfile_read): Remove check for existing partial symbols.
2770 Don't clear "qf".
2771 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2772 partial symbols.
2773 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2774 partial symtabs.
2775 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2776 parameter.
2777 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2778 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2779
e1114590
TT
27802021-03-20 Tom Tromey <tom@tromey.com>
2781
2782 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2783 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2784 * symfile-debug.c (objfile::has_partial_symbols)
2785 (objfile::find_last_source_symtab)
2786 (objfile::forget_cached_source_info)
2787 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2788 (objfile::print_stats, objfile::dump)
2789 (objfile::expand_symtabs_for_function)
2790 (objfile::expand_all_symtabs)
2791 (objfile::expand_symtabs_with_fullname)
2792 (objfile::map_matching_symbols)
2793 (objfile::expand_symtabs_matching)
2794 (objfile::find_pc_sect_compunit_symtab)
2795 (objfile::map_symbol_filenames)
2796 (objfile::find_compunit_symtab_by_address)
2797 (objfile::lookup_global_symbol_language)
2798 (objfile::require_partial_symbols): Update.
2799 * psymtab.c (maintenance_print_psymbols)
2800 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2801 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2802 * objfiles.c (objfile_relocate1): Update.
2803 * elfread.c (elf_symfile_read): Update.
2804
de909f0b
TT
28052021-03-20 Tom Tromey <tom@tromey.com>
2806
2807 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2808
caf8c1e5
TT
28092021-03-20 Tom Tromey <tom@tromey.com>
2810
2811 * psymtab.c (psymbol_functions::count_psyms): Rename.
2812 (psymbol_functions::print_stats): Update.
2813 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2814 method.
2815
3aa31ce7
TT
28162021-03-20 Tom Tromey <tom@tromey.com>
2817
2818 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2819 (psymbol_functions::find_pc_sect_psymtab): Rename.
2820 (psymbol_functions::find_pc_sect_compunit_symtab)
2821 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2822 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2823 Declare new method.
2824 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2825
7b249e47
TT
28262021-03-20 Tom Tromey <tom@tromey.com>
2827
2828 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2829 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2830 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2831 parameter.
2832 (add_psymbol_to_bcache): Remove.
2833 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2834 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2835 Likewise.
2836 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2837 <add_psymbol>: Likewise.
2838 (standard_psymtab, legacy_psymtab): Likewise.
2839 * mdebugread.c (parse_partial_symbols): Update.
2840 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2841 (handle_psymbol_enumerators): Update.
2842 (new_psymtab): Add partial_symtabs parameter.
2843 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2844 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2845 parameter.
2846 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2847 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2848 Update.
2849 * dbxread.c (read_dbx_symtab): Update.
2850 (start_psymtab): Add partial_symtabs parameter.
2851 (dbx_end_psymtab): Update.
2852 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2853 (ctf_psymtab): Add partial_symtabs parameter.
2854 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2855 Update.
2856 (scan_partial_symbols): Add partial_symtabs parameter.
2857 (scan_partial_symbols, elfctf_build_psymtabs)
2858 (ctf_psymtab_add_enums): Update.
2859
d1eef86d
TT
28602021-03-20 Tom Tromey <tom@tromey.com>
2861
2862 * symfile.c (read_symbols): Use objfile method.
2863 * symfile-debug.c (objfile::require_partial_symbols): New method.
2864 * psymtab.h (require_partial_symbols): Don't declare.
2865 * psymtab.c (require_partial_symbols): Use objfile method. Now
2866 static.
2867 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2868 (psymbol_functions::lookup_symbol)
2869 (psymbol_functions::lookup_global_symbol_language)
2870 (psymbol_functions::find_last_source_symtab)
2871 (psymbol_functions::forget_cached_source_info)
2872 (psymbol_functions::print_stats)
2873 (psymbol_functions::expand_symtabs_for_function)
2874 (psymbol_functions::expand_all_symtabs)
2875 (psymbol_functions::expand_symtabs_with_fullname)
2876 (psymbol_functions::map_symbol_filenames)
2877 (psymbol_functions::map_matching_symbols)
2878 (psymbol_functions::expand_symtabs_matching)
2879 (psymbol_functions::find_compunit_symtab_by_address)
2880 (maintenance_print_psymbols, maintenance_info_psymtabs)
2881 (maintenance_check_psymtabs): Update.
2882 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2883 new method.
2884
eb00e468
TT
28852021-03-20 Tom Tromey <tom@tromey.com>
2886
2887 * xcoffread.c (xcoff_sym_fns): Update.
2888 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2889 * symfile-debug.c (objfile::has_partial_symbols): Use
2890 can_lazily_read_symbols.
2891 (debug_sym_read_psymbols): Remove.
2892 (debug_sym_fns, install_symfile_debug_logging): Update.
2893 * quick-symbol.h (struct quick_symbol_functions)
2894 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2895 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2896 * mipsread.c (ecoff_sym_fns): Update.
2897 * machoread.c (macho_sym_fns): Update.
2898 * elfread.c (struct lazy_dwarf_reader): New.
2899 (elf_symfile_read): Update.
2900 (read_psyms): Now a method of lazy_dwarf_reader.
2901 (elf_sym_fns): Update.
2902 (elf_sym_fns_lazy_psyms): Remove.
2903 * dbxread.c (aout_sym_fns): Update.
2904 * coffread.c (coff_sym_fns): Update.
2905
b29b98cf
TT
29062021-03-20 Tom Tromey <tom@tromey.com>
2907
2908 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2909 (reread_symbols): Move reset_psymtabs call later.
2910 * objfiles.c (objfile::objfile): Don't initialize
2911 partial_symtabs.
2912
17d66340
TT
29132021-03-20 Tom Tromey <tom@tromey.com>
2914
2915 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2916 set_partial_symtabs.
2917 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2918 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2919 parameter.
2920 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2921 parameter.
2922 (psymbol_functions::find_pc_sect_compunit_symtab)
2923 (psymbol_functions::print_stats, psymbol_functions::dump)
2924 (psymbol_functions::has_symbols): Update.
2925 (make_psymbol_functions, dump_psymtab_addrmap): Add
2926 partial_symtabs parameter.
2927 (maintenance_print_psymbols): Update.
2928 (psymbol_functions::expand_symtabs_matching): Update.
2929 * psympriv.h (struct psymbol_functions): Add constructor.
2930 <m_partial_symtabs>: New member.
2931 <set_partial_symtabs>: New method.
2932
84685904
TT
29332021-03-20 Tom Tromey <tom@tromey.com>
2934
2935 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2936 parameter.
2937 (process_psymtab_comp_unit_reader)
2938 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2939 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2940 Reference psymtabs via per_bfd.
2941
79cc99f6
TT
29422021-03-20 Tom Tromey <tom@tromey.com>
2943
2944 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2945 Remove.
2946 (add_address_entry): Remove objfile parameter.
2947 (add_address_entry_worker): Update.
2948 (write_address_map): Replace objfile parameter with per_bfd.
2949 (write_gdbindex, write_psymtabs_to_index): Update.
2950
4829711b
TT
29512021-03-20 Tom Tromey <tom@tromey.com>
2952
2953 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2954 print_bcache parameter.
2955 * symfile-debug.c (objfile::print_stats): Add print_bcache
2956 parameter.
2957 * quick-symbol.h (struct quick_symbol_functions)
2958 <print_stats>: Add print_bcache parameter.
2959 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2960 code to psymtab.c.
2961 (print_objfile_statistics): Move psymtab code to psymtab.c.
2962 * psymtab.c (count_psyms): Move from symmisc.c.
2963 (psymbol_functions::print_stats): Print partial symbol and bcache
2964 statistics. Add print_bcache parameter.
2965 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2966 (struct objfile) <print_stats>: Add print_bcache parameter.
2967 * maint.c (maintenance_print_statistics): Update.
2968
efd7398e
TT
29692021-03-20 Tom Tromey <tom@tromey.com>
2970
2971 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2972 member.
2973 * dwarf2/read.c (create_addrmap_from_index)
2974 (create_addrmap_from_aranges): Set per_bfd addrmap.
2975 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2976 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2977 per_bfd addrmap.
2978 (dwarf2_read_debug_names): Don't set partial_symtabs.
2979 (dwarf2_initialize_objfile): Likewise.
2980
51962708
TT
29812021-03-20 Tom Tromey <tom@tromey.com>
2982
2983 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2984 earlier.
2985
484b1090
TT
29862021-03-20 Tom Tromey <tom@tromey.com>
2987
2988 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2989 (~psymtab_discarder, keep): Update.
2990 <m_objfile>: Remove.
2991 <m_partial_symtabs>: New member.
2992 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2993
7e9c0476
TT
29942021-03-20 Tom Tromey <tom@tromey.com>
2995
2996 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2997 (xcoff_end_psymtab): Update.
2998 (scan_xcoff_symtab): Add partial_symtabs parameter.
2999 (xcoff_initial_scan): Update.
3000 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3001 * mdebugread.c (mdebug_build_psymtabs): Update.
3002 (parse_partial_symbols): Add partial_symtabs parameter.
3003 * dbxread.c (dbx_symfile_read): Update.
3004 (read_dbx_symtab): Add partial_symtabs parameter.
3005 (read_dbx_symtab): Update.
3006 (dbx_end_psymtab): Add partial_symtabs parameter.
3007
75336a5a
TT
30082021-03-20 Tom Tromey <tom@tromey.com>
3009
3010 * quick-symbol.h (struct quick_symbol_functions)
3011 <relocated>: New method.
3012 * psymtab.h (struct psymbol_functions) <relocated>: New
3013 method.
3014 <fill_psymbol_map>: Declare method.
3015 <m_psymbol_map>: New member.
3016 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3017 (psymbol_functions::find_compunit_symtab_by_address): Update.
3018 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3019 (struct objfile) <psymbol_map>: Remove.
3020 * objfiles.c (objfile_relocate1): Update.
3021
39298a5d
TT
30222021-03-20 Tom Tromey <tom@tromey.com>
3023
3024 * psympriv.h (struct psymbol_functions): New.
3025 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3026 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3027 (objfile::lookup_global_symbol_language): Update.
3028 * quick-symbol.h (struct quick_symbol_functions): Convert function
3029 pointers to methods. Add virtual destructor.
3030 (quick_symbol_functions_up): New typedef.
3031 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3032 (dwarf2_debug_names_functions): Don't declare.
3033 (make_psymbol_functions): Declare.
3034 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3035 (psymbol_functions::find_pc_sect_compunit_symtab)
3036 (psymbol_functions::lookup_symbol)
3037 (psymbol_functions::lookup_global_symbol_language)
3038 (psymbol_functions::find_last_source_symtab)
3039 (psymbol_functions::forget_cached_source_info)
3040 (psymbol_functions::print_stats, psymbol_functions::dump)
3041 (psymbol_functions::expand_symtabs_for_function)
3042 (psymbol_functions::expand_all_symtabs)
3043 (psymbol_functions::expand_symtabs_with_fullname)
3044 (psymbol_functions::map_symbol_filenames)
3045 (psymbol_functions::map_matching_symbols)
3046 (psymbol_functions::expand_symtabs_matching)
3047 (psymbol_functions::has_symbols)
3048 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3049 (psym_functions): Remove.
3050 (make_psymbol_functions): New function.
3051 * objfiles.h (struct objfile) <qf>: Change type.
3052 * elfread.c (elf_symfile_read): Update.
3053 * dwarf2/read.c (struct dwarf2_base_index_functions)
3054 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3055 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3056 (dwarf2_base_index_functions::find_last_source_symtab)
3057 (dwarf2_base_index_functions::forget_cached_source_info)
3058 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3059 (dwarf2_gdb_index::lookup_symbol)
3060 (dwarf2_base_index_functions::print_stats)
3061 (dwarf2_gdb_index::dump)
3062 (dwarf2_gdb_index::expand_symtabs_for_function)
3063 (dwarf2_base_index_functions::expand_all_symtabs)
3064 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3065 Rename.
3066 (dwarf2_gdb_index::map_matching_symbols): New method.
3067 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3068 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3069 (dwarf2_base_index_functions::map_symbol_filenames)
3070 (dwarf2_base_index_functions::has_symbols): Rename.
3071 (dwarf2_gdb_index_functions): Remove.
3072 (dwarf2_debug_names_index::lookup_symbol)
3073 (dwarf2_debug_names_index::dump)
3074 (dwarf2_debug_names_index::expand_symtabs_for_function)
3075 (dwarf2_debug_names_index::map_matching_symbols)
3076 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3077 (dwarf2_debug_names_functions): Remove.
3078 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3079 Declare.
3080
5c3f1e5b
TT
30812021-03-20 Tom Tromey <tom@tromey.com>
3082
3083 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3084 null.
3085 * xcoffread.c (xcoff_sym_fns): Update.
3086 * symfile.h (struct sym_fns) <qf>: Remove.
3087 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3088 * symfile-debug.c (objfile::has_partial_symbols)
3089 (objfile::find_last_source_symtab)
3090 (objfile::forget_cached_source_info)
3091 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3092 (objfile::print_stats, objfile::dump)
3093 (objfile::expand_symtabs_for_function)
3094 (objfile::expand_all_symtabs)
3095 (objfile::expand_symtabs_with_fullname)
3096 (objfile::map_matching_symbols)
3097 (objfile::expand_symtabs_matching)
3098 (objfile::find_pc_sect_compunit_symtab)
3099 (objfile::map_symbol_filenames)
3100 (objfile::find_compunit_symtab_by_address)
3101 (objfile::lookup_global_symbol_language, debug_sym_fns)
3102 (install_symfile_debug_logging): Update.
3103 * objfiles.h (struct objfile) <qf>: New member.
3104 * mipsread.c (ecoff_sym_fns): Update.
3105 * machoread.c (macho_sym_fns): Update.
3106 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3107 Don't declare.
3108 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3109 * dbxread.c (aout_sym_fns): Update.
3110 * coffread.c (coff_sym_fns): Update.
3111
9b99dcc8
TT
31122021-03-20 Tom Tromey <tom@tromey.com>
3113
3114 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3115 (expand_symtabs_file_matcher_ftype)
3116 (expand_symtabs_symbol_matcher_ftype)
3117 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3118 Move to quick-symbol.h.
3119 * quick-symbol.h: New file.
3120
4d080b46
TT
31212021-03-20 Tom Tromey <tom@tromey.com>
3122
3123 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3124 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3125 (basic_lookup_transparent_type_quick)
3126 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3127 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3128 Update.
3129 * symmisc.c (print_objfile_statistics, dump_objfile)
3130 (maintenance_expand_symtabs): Update.
3131 * symfile.c (symbol_file_add_with_addrs)
3132 (expand_symtabs_matching, map_symbol_filenames): Update.
3133 * symfile-debug.c (objfile::has_partial_symbols)
3134 (objfile::find_last_source_symtab)
3135 (objfile::forget_cached_source_info)
3136 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3137 (objfile::print_stats, objfile::dump)
3138 (objfile::expand_symtabs_for_function)
3139 (objfile::expand_all_symtabs)
3140 (objfile::expand_symtabs_with_fullname)
3141 (objfile::map_matching_symbols)
3142 (objfile::expand_symtabs_matching)
3143 (objfile::find_pc_sect_compunit_symtab)
3144 (objfile::map_symbol_filenames)
3145 (objfile::find_compunit_symtab_by_address)
3146 (objfile::lookup_global_symbol_language): New methods.
3147 (debug_sym_quick_functions): Remove.
3148 (debug_sym_fns, install_symfile_debug_logging): Update.
3149 * source.c (forget_cached_source_info_for_objfile)
3150 (select_source_symtab): Update.
3151 * objfiles.h (struct objfile): Add methods corresponding to
3152 quick_symbol_functions.
3153 * objfiles.c (objfile::has_partial_symbols): Move to
3154 symfile-debug.c.
3155 * linespec.c (iterate_over_all_matching_symtabs): Update.
3156 * cp-support.c (add_symbol_overload_list_qualified): Update.
3157 * ada-lang.c (add_nonlocal_symbols): Update.
3158
fae2120b
TT
31592021-03-20 Tom Tromey <tom@tromey.com>
3160
3161 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3162 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3163 bool.
3164 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3165 * psymtab.c (psym_has_symbols): Return bool.
3166 * objfiles.c (objfile::has_partial_symbols): Return bool.
3167 * dwarf2/read.c (dw2_has_symbols): Return bool.
3168
a8ad4f3c
TT
31692021-03-20 Tom Tromey <tom@tromey.com>
3170
3171 * symfile.c (read_symbols): Update.
3172 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3173 (objfile_has_partial_symbols): Don't declare.
3174 * objfiles.c (objfile::has_partial_symbols): Rename from
3175 objfile_has_partial_symbols.
3176 (objfile_has_symbols, have_partial_symbols): Update.
3177 * elfread.c (elf_symfile_read): Update.
3178 * dwarf2/read.c (dwarf2_has_info): Update.
3179 * coffread.c (coff_symfile_read): Update.
3180
70182375
TT
31812021-03-20 Tom Tromey <tom@tromey.com>
3182
3183 * coffread.c: Include dwarf2/public.h.
3184 * dwarf2/frame.c: Include dwarf2/public.h.
3185 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3186 * dwarf2/public.h: New file.
3187 * dwarf2/read.c: Include dwarf2/public.h.
3188 * elfread.c: Include dwarf2/public.h.
3189 * machoread.c: Include dwarf2/public.h.
3190 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3191 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3192 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3193 * xcoffread.c: Include dwarf2/public.h.
3194
18038e63
TT
31952021-03-20 Tom Tromey <tom@tromey.com>
3196
3197 * symfile.h (enum dwarf2_section_enum)
3198 (dwarf2_get_section_info): Move to dwarf2/read.h.
3199 * dwarf2/read.h (enum dwarf2_section_enum)
3200 (dwarf2_get_section_info): Move from symfile.h.
3201
219f56b4
PA
32022021-03-19 Pedro Alves <pedro@palves.net>
3203
3204 * thread.c (any_thread_of_inferior): Check if there's a selected
3205 thread before calling inferior_thread().
3206
15310fd4
TT
32072021-03-18 Tom Tromey <tromey@adacore.com>
3208
3209 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3210 get_DW_UT_name.
3211 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3212 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3213
763b8efd
AB
32142021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3215
3216 * python/py-param.c (get_set_value): Update header comment.
3217
f058c521
SM
32182021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3219
3220 * infrun.c (check_multi_target_resumption): Remove argument to
3221 all_non_exited_inferiors.
3222
383228bc
CB
32232021-03-16 Christian Biesinger <cbiesinger@google.com>
3224
3225 * windows-nat.c (windows_init_thread_list): Add message to
3226 debug log.
3227
7807d76a
AB
32282021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3231 well as PyLong_Check for Python 2.
3232
675da9a5
TT
32332021-03-15 Tom Tromey <tromey@adacore.com>
3234
3235 PR build/27579:
3236 * rust-exp.y (maker_map): Use gdb::hash_enum.
3237 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3238
4800761a
SM
32392021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3240
3241 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3242 end of debug print.
3243
eb5dd737
SM
32442021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3245
3246 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3247 parameter, adjust caller.
3248
6813ceb0
TT
32492021-03-15 Tom Tromey <tromey@adacore.com>
3250
3251 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3252
3b5c4de0
TT
32532021-03-15 Tom Tromey <tromey@adacore.com>
3254
3255 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3256 ada_ensure_varsize_limit.
3257
c04da66c
TT
32582021-03-15 Tom Tromey <tromey@adacore.com>
3259
3260 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3261 fixed-point.
3262 * ada-exp.y (maybe_overload): New function.
3263 (ada_wrap_overload): New function.
3264 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3265 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3266 (or_else_exp, xor_exp, primary): Update.
3267
9863c3b5
TT
32682021-03-15 Tom Tromey <tromey@adacore.com>
3269
3270 PR ada/27545:
3271 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3272 call for tagged type.
3273
1ac74522
TT
32742021-03-15 Tom Tromey <tromey@adacore.com>
3275
3276 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3277 assignment.
3278
207582c0
TT
32792021-03-15 Tom Tromey <tromey@adacore.com>
3280
3281 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3282 container.
3283 (ada_assign_operation::evaluate): Update.
3284 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3285 Change return type.
3286
8d624a9d
FW
32872021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3288
3289 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3290
ba6a0ef3
AB
32912021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3292
3293 * python/python.c (gdbpy_source_objfile_script): Use
3294 make_scoped_restore to restore gdbpy_current_objfile.
3295 (gdbpy_execute_objfile_script): Likewise.
3296
7c290a04
TT
32972021-03-14 Tom Tromey <tom@tromey.com>
3298
3299 * dwarf2/read.c (read_attribute_value): Use cu_header
3300 consistently.
3301
0280fdcc
TT
33022021-03-14 Tom Tromey <tom@tromey.com>
3303
3304 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3305 (peek_die_abbrev): Use reader.abfd.
3306
a9f172c6
TT
33072021-03-14 Tom Tromey <tom@tromey.com>
3308
3309 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3310 m_header_read_in.
3311
7c32eebb
TT
33122021-03-13 Tom Tromey <tom@tromey.com>
3313
3314 * dwarf2/read.c (struct partial_die_info): Update.
3315 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3316 (load_partial_dies, partial_die_info::partial_die_info): Update.
3317 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3318
27012aba
TT
33192021-03-13 Tom Tromey <tom@tromey.com>
3320
3321 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3322
fece451c
CB
33232021-03-12 Christian Biesinger <cbiesinger@google.com>
3324
3325 PR threads/27239
3326 * cp-support.c: Use scoped_segv_handler_restore.
3327 * event-top.c (thread_local_segv_handler): Made static.
3328 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3329 New function.
3330 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3331 function.
3332 * event-top.h (class scoped_segv_handler_restore): New class.
3333 (thread_local_segv_handler): Removed.
3334
7056f312
TT
33352021-03-10 Tom Tromey <tromey@adacore.com>
3336
3337 * parser-defs.h (parser_state): Change completion to bool.
3338 <parse_completion>: Likewise.
3339 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3340 (ada_resolve_variable, ada_resolve_function): Update.
3341 * ada-lang.c (ada_find_operator_symbol): Change
3342 parse_completion to bool.
3343 (ada_resolve_funcall, ada_resolve_variable)
3344 (ada_resolve_function): Likewise.
3345
ccdc02ed
TT
33462021-03-09 Tom Tromey <tromey@adacore.com>
3347
3348 * eval.c (operation::evaluate_funcall): Use function formal
3349 parameter types when evaluating.
3350
fbb1aace
AB
33512021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3354 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3355 and owner to m_owner.
3356
611aa09d
FW
33572021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3358
3359 * f-exp.h (eval_op_f_loc): Declare.
3360 (expr::fortran_loc_operation): New typedef.
3361 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3362 UNOP_INTRINSIC.
3363 (f77_keywords): Add LOC keyword.
3364 * f-lang.c (eval_op_f_loc): New function.
3365 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3366
eef32f59
AB
33672021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3368
3369 * f-exp.h (eval_op_f_array_shape): Declare.
3370 (fortran_array_shape_operation): New type.
3371 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3372 UNOP_INTRINSIC.
3373 (f77_keywords): Add "shape" keyword.
3374 * f-lang.c (fortran_array_shape): New function.
3375 (eval_op_f_array_shape): New function.
3376 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3377
7ba155b3
AB
33782021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3381 of this function.
3382 (expr::fortran_array_size_1arg): New type.
3383 (expr::fortran_array_size_2arg): Likewise.
3384 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3385 UNOP_OR_BINOP_INTRINSIC.
3386 (f77_keywords): Add "size" keyword.
3387 * f-lang.c (fortran_array_size): New function.
3388 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3389 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3390
e14816a8
AB
33912021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3392
3393 * f-exp.h (eval_op_f_rank): Declare.
3394 (expr::fortran_rank_operation): New typedef.
3395 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3396 UNOP_INTRINSIC.
3397 (f77_keywords): Add "rank" keyword.
3398 * f-lang.c (eval_op_f_rank): New function.
3399 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3400
3dd93bf8
TT
34012021-03-08 Tom Tromey <tom@tromey.com>
3402
3403 * printcmd.c (set_command): Remove null check.
3404 * value.c (init_if_undefined_command): Remove null check.
3405
9c79936b
TT
34062021-03-08 Tom Tromey <tom@tromey.com>
3407
3408 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3409 Update.
3410 * p-exp.y (variable): Update.
3411 * go-exp.y (variable): Update.
3412 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3413 Remove overload for objfile.
3414 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3415 parameter.
3416 (check_objfile): Likewise.
3417 (dump_for_expression): Likewise. Remove overload for objfile.
3418 (class var_msym_value_operation): Use bound_minimal_symbol.
3419 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3420 parameter.
3421 (var_msym_value_operation::evaluate_for_address)
3422 (var_msym_value_operation::evaluate_for_sizeof)
3423 (var_msym_value_operation::evaluate_for_cast): Update.
3424 * d-exp.y (PrimaryExpression): Update.
3425 * c-exp.y (variable): Update.
3426 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3427 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3428 Update.
3429 * ada-exp.y (write_var_or_type): Update.
3430
40d07d07
TT
34312021-03-08 Tom Tromey <tom@tromey.com>
3432
3433 * parser-defs.h (exp_uses_objfile): Return bool.
3434 * parse.c (exp_uses_objfile): Return bool.
3435
0b2b0b82
TT
34362021-03-08 Tom Tromey <tom@tromey.com>
3437
3438 * value.h (eval_skip_value): Don't declare.
3439 * opencl-lang.c (eval_opencl_assign): Update.
3440 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3441 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3442 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3443 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3444 * expop.h (typeof_operation::evaluate)
3445 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3446 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3447 (cxx_cast_operation::evaluate): Update.
3448 * eval.c (eval_skip_value): Remove.
3449 (eval_op_scope, eval_op_var_entry_value)
3450 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3451 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3452 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3453 (eval_op_binary, eval_op_subscript, eval_op_equal)
3454 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3455 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3456 (eval_op_complement, eval_op_lognot, eval_op_ind)
3457 (eval_op_memval, eval_op_preinc, eval_op_predec)
3458 (eval_op_postinc, eval_op_postdec, eval_op_type)
3459 (eval_binop_assign_modify, eval_op_objc_msgcall)
3460 (eval_multi_subscript, logical_and_operation::evaluate)
3461 (logical_or_operation::evaluate, array_operation::evaluate)
3462 (operation::evaluate_for_cast)
3463 (var_msym_value_operation::evaluate_for_cast)
3464 (var_value_operation::evaluate_for_cast): Update.
3465 * c-lang.c (c_string_operation::evaluate): Update.
3466 * c-exp.h (objc_nsstring_operation::evaluate)
3467 (objc_selector_operation::evaluate): Update.
3468 * ada-lang.c (ada_assign_operation::evaluate)
3469 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3470 (ada_atr_size): Update.
3471
96db551d
TT
34722021-03-08 Tom Tromey <tom@tromey.com>
3473
3474 * eval.c: Merge "namespace" scopes.
3475
ce284361
TT
34762021-03-08 Tom Tromey <tom@tromey.com>
3477
3478 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3479 <release>: Inline.
3480 * parse.c (expr_builder::expr_builder, expr_builder::release):
3481 Remove.
3482
b9d06571
TT
34832021-03-08 Tom Tromey <tom@tromey.com>
3484
3485 * parse.c (expression::expression, expression::~expression):
3486 Remove.
3487 * expression.h (struct expression): Inline constructor. Remove
3488 destructor.
3489
79ab486e
TT
34902021-03-08 Tom Tromey <tom@tromey.com>
3491
3492 * std-operator.def (BINOP_END): Remove.
3493 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3494 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3495 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3496 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3497 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3498 BINOP_END.
3499
48fa6f23
TT
35002021-03-08 Tom Tromey <tom@tromey.com>
3501
3502 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3503
43f542e3
TT
35042021-03-08 Tom Tromey <tom@tromey.com>
3505
3506 * std-operator.def (OP_EXTENDED0): Remove.
3507
5d9ba982
TT
35082021-03-08 Tom Tromey <tom@tromey.com>
3509
3510 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3511 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3512 Remove.
3513
d357570d
TT
35142021-03-08 Tom Tromey <tom@tromey.com>
3515
3516 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3517 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3518
0922dc84
TT
35192021-03-08 Tom Tromey <tom@tromey.com>
3520
3521 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3522 * ada-lang.c (ada_binop_minmax): Update.
3523 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3524 Use BINOP_MIN and BINOP_MAX.
3525
1eaebe02
TT
35262021-03-08 Tom Tromey <tom@tromey.com>
3527
3528 * value.h (evaluate_subexp_with_coercion): Don't declare.
3529 * parse.c (exp_descriptor_standard): Remove.
3530 (expr_builder::expr_builder, expr_builder::release): Update.
3531 (expression::expression): Remove size_t parameter.
3532 (expression::~expression): Simplify.
3533 (expression::resize): Remove.
3534 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3535 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3536 (write_exp_elt_longcst, write_exp_elt_floatcst)
3537 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3538 (write_exp_string_vector, write_exp_bitstring): Remove.
3539 * p-lang.h (class pascal_language) <opcode_print_table,
3540 op_print_tab>: Remove.
3541 * p-lang.c (pascal_language::op_print_tab): Remove.
3542 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3543 Remove.
3544 * objc-lang.c (objc_op_print_tab): Remove.
3545 (class objc_language) <opcode_print_table>: Remove.
3546 * m2-lang.h (class m2_language) <opcode_print_table,
3547 op_print_tab>: Remove.
3548 * m2-lang.c (m2_language::op_print_tab): Remove.
3549 * language.h (struct language_defn) <post_parser, expression_ops,
3550 opcode_print_table>: Remove.
3551 * language.c (language_defn::expression_ops)
3552 (auto_or_unknown_language::opcode_print_table): Remove.
3553 * go-lang.h (class go_language) <opcode_print_table,
3554 op_print_tab>: Remove.
3555 * go-lang.c (go_language::op_print_tab): Remove.
3556 * f-lang.h (class f_language) <opcode_print_table>: Remove
3557 <op_print_tab>: Remove.
3558 * f-lang.c (f_language::op_print_tab): Remove.
3559 * expression.h (union exp_element): Remove.
3560 (struct expression): Remove size_t parameter from constructor.
3561 <resize>: Remove.
3562 <first_opcode>: Update.
3563 <nelts, elts>: Remove.
3564 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3565 (evaluate_subexp_standard, print_expression, op_string)
3566 (dump_raw_expression): Don't declare.
3567 * expprint.c (print_expression, print_subexp)
3568 (print_subexp_funcall, print_subexp_standard, op_string)
3569 (dump_raw_expression, dump_subexp, dump_subexp_body)
3570 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3571 (dump_prefix_expression): Update.
3572 * eval.c (evaluate_subexp): Remove.
3573 (evaluate_expression, evaluate_type): Update.
3574 (evaluate_subexpression_type): Remove.
3575 (fetch_subexp_value): Remove "pc" parameter. Update.
3576 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3577 (evaluate_subexp_standard, evaluate_subexp_for_address)
3578 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3579 (evaluate_subexp_for_cast): Remove.
3580 (parse_and_eval_type): Update.
3581 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3582 * d-lang.c (d_op_print_tab): Remove.
3583 (class d_language) <opcode_print_table>: Remove.
3584 * c-lang.h (c_op_print_tab): Don't declare.
3585 * c-lang.c (c_op_print_tab): Remove.
3586 (class c_language, class cplus_language, class asm_language, class
3587 minimal_language) <opcode_print_table>: Remove.
3588 * breakpoint.c (update_watchpoint, watchpoint_check)
3589 (watchpoint_exp_is_const, watch_command_1): Update.
3590 * ax-gdb.h (union exp_element): Don't declare.
3591 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3592 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3593 (gen_expr_binop_rest): Remove.
3594 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3595 * ada-lang.c (ada_op_print_tab): Remove.
3596 (class ada_language) <post_parser, opcode_print_table>: Remove.
3597
f2a98603
TT
35982021-03-08 Tom Tromey <tom@tromey.com>
3599
3600 * go-lang.c (go_language::expression_ops): Don't declare.
3601 * go-lang.h (class go_language) <expression_ops>: Remove.
3602 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3603 Remove.
3604 (class opencl_language) <expression_ops>: Remove.
3605 * d-lang.c (class d_language) <expression_ops>: Remove.
3606 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3607 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3608 (class c_language, class cplus_language, class asm_language)
3609 (class minimal_language) <expression_ops>: Remove.
3610
d3c54a1c
TT
36112021-03-08 Tom Tromey <tom@tromey.com>
3612
3613 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3614 (evaluate_subexp_type, assign_aggregate)
3615 (aggregate_assign_positional, aggregate_assign_from_choices)
3616 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3617 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3618 (ada_operator_check, ada_forward_operator_length)
3619 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3620 Remove.
3621 (post_parser): Update.
3622 (class ada_language) <expresssion_ops>: Remove.
3623
5871f0a3
TT
36242021-03-08 Tom Tromey <tom@tromey.com>
3625
3626 * m2-lang.h (class m2_language) <expresssion_ops,
3627 exp_descriptor_modula2>: Remove.
3628 * m2-lang.c (evaluate_subexp_modula2)
3629 (m2_language::exp_descriptor_modula2): Remove.
3630
a99be8c1
TT
36312021-03-08 Tom Tromey <tom@tromey.com>
3632
3633 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3634 <exp_descriptor_tab>: Remove.
3635 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3636 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3637 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3638 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3639 Remove.
3640
aa1da9ed
TT
36412021-03-08 Tom Tromey <tom@tromey.com>
3642
3643 * rust-lang.h (class rust_language) <expression_ops,
3644 exp_descriptor_tab>: Remove.
3645 * rust-lang.c (rust_evaluate_funcall): Remove.
3646 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3647 EVAL_SKIP.
3648 (rust_evaluate_subexp): Remove.
3649 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3650 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3651 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3652
08a057e6
TT
36532021-03-08 Tom Tromey <tom@tromey.com>
3654
3655 * ada-exp.y: Create operations.
3656 (empty_stoken): Remove.
3657 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3658 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3659 (components): New global.
3660 (push_component, choice_component, pop_component, pop_components):
3661 New functions.
3662 (associations): New global
3663 (push_association, pop_association, pop_associations): New
3664 functions.
3665 (ada_parse): Update.
3666 (write_var_from_sym, write_int): Create operations.
3667 (write_exp_op_with_string): Remove.
3668 (write_object_renaming, write_selectors, write_ambiguous_var)
3669 (write_var_or_type, write_name_assoc): Create operations.
3670 * ada-lang.h (ada_index_type): Declare.
3671 * ada-lang.c (ada_index_type): No longer static.
3672
d308ba78
TT
36732021-03-08 Tom Tromey <tom@tromey.com>
3674
3675 * f-exp.y: Create operations.
3676 (f_language::parser): Update.
3677
f1b8ceef
TT
36782021-03-08 Tom Tromey <tom@tromey.com>
3679
3680 * m2-exp.y: Create operations.
3681 (m2_language::parser): Update.
3682
3163898e
TT
36832021-03-08 Tom Tromey <tom@tromey.com>
3684
3685 * p-exp.y: Create operations.
3686 (pascal_language::parser): Update.
3687
9412fdcc
TT
36882021-03-08 Tom Tromey <tom@tromey.com>
3689
3690 * d-exp.y: Create operations.
3691 (d_parse): Update.
3692
bb4e0574
TT
36932021-03-08 Tom Tromey <tom@tromey.com>
3694
3695 * go-exp.y: Create operations.
3696 (go_language::parser): Update.
3697
d182f279
TT
36982021-03-08 Tom Tromey <tom@tromey.com>
3699
3700 * objc-lang.c (end_msglist): Create operations.
3701 * c-exp.y: Change parser to create operations.
3702 (write_destructor_name): Remove.
3703 (c_parse): Update.
3704
c1299a23
TT
37052021-03-08 Tom Tromey <tom@tromey.com>
3706
3707 * rust-exp.y: Create operations.
3708 (rust_parser::convert_params_to_expression): Change return type.
3709 (binop_maker_ftype): New typedef.
3710 (maker_map): New global.
3711 (rust_parser::convert_ast_to_expression): Change return type.
3712 (rust_language::parser): Update.
3713 (_initialize_rust_exp): Initialize maker_map.
3714
4c5e7a93
TT
37152021-03-08 Tom Tromey <tom@tromey.com>
3716
3717 * stap-probe.c (binop_maker_ftype): New typedef.
3718 (stap_maker_map): New global.
3719 (stap_make_binop): New function.
3720 (stap_parse_register_operand): Return operation_up.
3721 (stap_parse_single_operand, stap_parse_argument_conditionally)
3722 (stap_parse_argument_1): Likewise.
3723 (stap_parse_argument): Create operations.
3724 (stap_probe::parse_arguments): Update.
3725 (_initialize_stap_probe): Initialize stap_maker_map.
3726 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3727 type.
3728 * i386-tdep.h (i386_stap_parse_special_token): Change return
3729 type.
3730 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3731 (i386_stap_parse_special_token_three_arg_disp)
3732 (i386_stap_parse_special_token): Change return type.
3733 * gdbarch.sh (stap_parse_special_token): Change return type.
3734 * gdbarch.c: Rebuild.
3735 * gdbarch.h: Rebuild.
3736 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3737 type.
3738 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3739 return type.
3740
482ddd69
TT
37412021-03-08 Tom Tromey <tom@tromey.com>
3742
3743 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3744 * gdbarch.h: Rebuild.
3745 * gdbarch.c: Rebuild.
3746 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3747 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3748 return type.
3749 (amd64_dtrace_parse_probe_argument): Update.
3750
8227d9e2
TT
37512021-03-08 Tom Tromey <tom@tromey.com>
3752
3753 * parser-defs.h (struct parser_state) <push, push_new,
3754 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3755 wrap2>: New methods.
3756 <m_operations>: New member.
3757 * parse.c (parser_state::push_c_string)
3758 (parser_state::push_symbol, parser_state::push_dollar): New
3759 methods.
3760
4933522d
TT
37612021-03-08 Tom Tromey <tom@tromey.com>
3762
3763 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3764 New member.
3765 (struct parser_state) <mark_struct_expression>: New method.
3766 * parse.c (parser_state::mark_struct_expression): Update assert.
3767 (parser_state::mark_struct_expression): New method.
3768 (parser_state::mark_completion_tag): Update assert.
3769 (parse_expression_for_completion): Handle expout_last_op.
3770
413403fc
TT
37712021-03-08 Tom Tromey <tom@tromey.com>
3772
3773 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3774 now in superclass.
3775 * value.h (fetch_subexp_value): Add "op" parameter.
3776 * value.c (init_if_undefined_command): Update.
3777 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3778 * stap-probe.c (stap_probe::compile_to_ax): Update.
3779 * printcmd.c (set_command): Update.
3780 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3781 Update.
3782 * parser-defs.h (struct expr_builder) <set_operation>: New
3783 method.
3784 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3785 * expression.h (struct expression) <first_opcode>: Update.
3786 <op>: New member.
3787 * expprint.c (dump_raw_expression, dump_prefix_expression):
3788 Update.
3789 * expop.h (class var_value_operation) <get_symbol>: New method.
3790 (class register_operation) <get_name>: New method.
3791 (class equal_operation): No longer a typedef, now a subclass.
3792 (class unop_memval_operation) <get_type>: New method.
3793 (class assign_operation) <get_lhs>: New method.
3794 (class unop_cast_operation) <get_type>: New method.
3795 * eval.c (evaluate_expression, evaluate_type)
3796 (evaluate_subexpression_type): Update.
3797 (fetch_subexp_value): Add "op" parameter.
3798 (parse_and_eval_type): Update.
3799 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3800 * breakpoint.c (update_watchpoint, watchpoint_check)
3801 (watchpoint_exp_is_const, watch_command_1): Update.
3802 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3803 Update.
3804
b0f9164c
TT
38052021-03-08 Tom Tromey <tom@tromey.com>
3806
3807 * ada-lang.c (ada_value_binop): Do not use op_string.
3808
a88c4354
TT
38092021-03-08 Tom Tromey <tom@tromey.com>
3810
3811 * expprint.c (dump_for_expression): New overload.
3812 * expop.h (check_objfile, dump_for_expression): Declare new
3813 overloads.
3814 * ada-lang.c (check_objfile): New overload.
3815 (assign_component, ada_aggregate_component::uses_objfile)
3816 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3817 (ada_aggregate_component::assign_aggregate)
3818 (ada_positional_component::uses_objfile)
3819 (ada_positional_component::dump, ada_positional_component::assign)
3820 (ada_discrete_range_association::uses_objfile)
3821 (ada_discrete_range_association::dump)
3822 (ada_discrete_range_association::assign)
3823 (ada_name_association::uses_objfile, ada_name_association::dump)
3824 (ada_name_association::assign)
3825 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3826 (ada_choices_component::assign)
3827 (ada_others_component::uses_objfile, ada_others_component::dump)
3828 (ada_others_component::assign, ada_assign_operation::evaluate):
3829 New methods.
3830 * ada-exp.h (ada_string_operation) <get_name>: New method.
3831 (class ada_assign_operation): New.
3832 (class ada_component): New.
3833 (ada_component_up): New typedef.
3834 (class ada_aggregate_operation, class ada_aggregate_component)
3835 (class ada_positional_component, class ada_others_component)
3836 (class ada_association): New.
3837 (ada_association_up): New typedef.
3838 (class ada_choices_component)
3839 (class ada_discrete_range_association)
3840 (class ada_name_association): New.
3841
d8a4ed8a
TT
38422021-03-08 Tom Tromey <tom@tromey.com>
3843
3844 * ada-lang.c (ada_var_value_operation::resolve)
3845 (ada_funcall_operation::resolve)
3846 (ada_ternop_slice_operation::resolve): New methods.
3847 * ada-exp.h (struct ada_resolvable): New.
3848 (class ada_var_value_operation): Derive from ada_resolvable.
3849 <get_block, resolve>: New methods.
3850 (class ada_funcall_operation): Derive from ada_resolvable.
3851 <resolve>: New method.
3852 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3853 <resolve>: New method.
3854
efe3af2f
TT
38552021-03-08 Tom Tromey <tom@tromey.com>
3856
3857 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3858 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3859 method.
3860 (class ada_funcall_operation): New.
3861
ebc06ad8
TT
38622021-03-08 Tom Tromey <tom@tromey.com>
3863
3864 * ada-lang.c (ada_structop_operation::evaluate): New method.
3865 * ada-exp.h (class ada_structop_operation): New.
3866
e8c33fa1
TT
38672021-03-08 Tom Tromey <tom@tromey.com>
3868
3869 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3870 * ada-exp.h (class ada_unop_ind_operation): New.
3871
065ec826
TT
38722021-03-08 Tom Tromey <tom@tromey.com>
3873
3874 * ada-lang.c (ada_binop_exp): No longer static.
3875 * ada-exp.h (ada_binop_exp_operation): New typedef.
3876
9e99f48f
TT
38772021-03-08 Tom Tromey <tom@tromey.com>
3878
3879 * ada-lang.c (ada_val_atr): No longer static.
3880 (ada_atr_val_operation::evaluate): New method.
3881 * ada-exp.h (class ada_atr_val_operation): New.
3882
7631cf6c
TT
38832021-03-08 Tom Tromey <tom@tromey.com>
3884
3885 * ada-lang.c (ada_pos_atr): No longer static.
3886 * ada-exp.h (ada_pos_operation): New typedef.
3887
7992accc
TT
38882021-03-08 Tom Tromey <tom@tromey.com>
3889
3890 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3891 parameters.
3892 (ada_evaluate_subexp): Use it.
3893
6ad3b8bf
TT
38942021-03-08 Tom Tromey <tom@tromey.com>
3895
3896 * ada-lang.c (ada_binop_minmax): No longer static.
3897 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3898 New typedefs.
3899
3f4a0053
TT
39002021-03-08 Tom Tromey <tom@tromey.com>
3901
3902 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3903 New method.
3904 * ada-exp.h (class ada_var_msym_value_operation): New.
3905
99a3b1e7
TT
39062021-03-08 Tom Tromey <tom@tromey.com>
3907
3908 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3909 (ada_var_value_operation::evaluate): New methods.
3910 * ada-exp.h (class ada_var_value_operation): New.
3911
60fa02ca
TT
39122021-03-08 Tom Tromey <tom@tromey.com>
3913
3914 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3915 * ada-exp.h (class ada_unop_atr_operation): New.
3916
82c3886e
TT
39172021-03-08 Tom Tromey <tom@tromey.com>
3918
3919 * ada-lang.c (ada_binop_in_bounds): No longer static.
3920 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3921
1b1ebfab
TT
39222021-03-08 Tom Tromey <tom@tromey.com>
3923
3924 * ada-lang.c (ada_ternop_slice): No longer static.
3925 * ada-exp.h (class ada_ternop_slice_operation): New.
3926
039e4b76
TT
39272021-03-08 Tom Tromey <tom@tromey.com>
3928
3929 * ada-exp.h (ada_bitwise_operation): New template class.
3930 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3931 (ada_bitwise_xor_operation): New typedefs.
3932
6e8fb7b7
TT
39332021-03-08 Tom Tromey <tom@tromey.com>
3934
3935 * ada-lang.c (ada_equal_binop): No longer static.
3936 * ada-exp.h (class ada_binop_equal_operation): New.
3937
d9e7db06
TT
39382021-03-08 Tom Tromey <tom@tromey.com>
3939
3940 * ada-lang.c (ada_mult_binop): No longer static.
3941 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3942 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3943
73796c73
TT
39442021-03-08 Tom Tromey <tom@tromey.com>
3945
3946 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3947 * ada-exp.h (class ada_binop_addsub_operation): New.
3948
cd9a3148
TT
39492021-03-08 Tom Tromey <tom@tromey.com>
3950
3951 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3952 (ada_resolve_variable): Declare.
3953 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3954 (ada_resolve_variable): New functions.
3955 (resolve_subexp): Update.
3956
cf12b17f
TT
39572021-03-08 Tom Tromey <tom@tromey.com>
3958
3959 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3960 method.
3961 * c-exp.h (class opencl_ternop_cond_operation): New.
3962
944fd3b8
TT
39632021-03-08 Tom Tromey <tom@tromey.com>
3964
3965 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3966 method.
3967 * c-exp.h (class opencl_logical_binop_operation): New.
3968
33b79214
TT
39692021-03-08 Tom Tromey <tom@tromey.com>
3970
3971 * opencl-lang.c (opencl_structop_operation::evaluate): New
3972 method.
3973 * c-exp.h (class opencl_structop_operation): New.
3974
2492ba36
TT
39752021-03-08 Tom Tromey <tom@tromey.com>
3976
3977 * opencl-lang.c (opencl_logical_not): No longer static. Change
3978 parameters.
3979 (evaluate_subexp_opencl): Update.
3980 * c-exp.h (opencl_notequal_operation): New typedef.
3981
a88c3c8d
TT
39822021-03-08 Tom Tromey <tom@tromey.com>
3983
3984 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3985 static. Change parameters.
3986 (eval_opencl_assign): No longer static. Add "op" parameter.
3987 (evaluate_subexp_opencl): Update.
3988 * c-exp.h (opencl_binop_operation): New template class.
3989 (opencl_assign_operation, opencl_equal_operation)
3990 (opencl_notequal_operation, opencl_less_operation)
3991 (opencl_gtr_operation, opencl_geq_operation)
3992 (opencl_leq_operation): New typedefs.
3993
e9677704
TT
39942021-03-08 Tom Tromey <tom@tromey.com>
3995
3996 * opencl-lang.c (opencl_value_cast): No longer static.
3997 * c-exp.h (opencl_cast_type_operation): New typedef.
3998
f403a4e4
TT
39992021-03-08 Tom Tromey <tom@tromey.com>
4000
4001 * f-exp.h (eval_op_f_allocated): Declare.
4002 (fortran_allocated_operation): New typedef.
4003 * f-lang.c (eval_op_f_allocated): No longer static.
4004
eb4c9271
TT
40052021-03-08 Tom Tromey <tom@tromey.com>
4006
4007 * f-lang.c (eval_op_f_associated): New functions.
4008 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4009 typedefs.
4010
58a76c72
TT
40112021-03-08 Tom Tromey <tom@tromey.com>
4012
4013 * f-lang.c (fortran_bound_1arg::evaluate)
4014 (fortran_bound_2arg::evaluate): New methods.
4015 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4016 New.
4017
2f98abe1
TT
40182021-03-08 Tom Tromey <tom@tromey.com>
4019
4020 * expop.h (class unop_addr_operation) <get_expression>: New
4021 method.
4022 * f-lang.c (fortran_undetermined::value_subarray)
4023 (fortran_undetermined::evaluate): New methods.
4024 (fortran_prepare_argument): New overload.
4025 * f-exp.h (class fortran_range_operation)
4026 (class fortran_undetermined): New classes.
4027
638fd74a
TT
40282021-03-08 Tom Tromey <tom@tromey.com>
4029
4030 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4031 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4032 method.
4033
a00b7254
TT
40342021-03-08 Tom Tromey <tom@tromey.com>
4035
4036 * expression.h (class operation) <evaluate_funcall>: New methods.
4037 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4038 (class var_value_operation) <evaluate_funcall>: New method.
4039 (class structop_base_operation) <evaluate_funcall>: New method.
4040 (class var_msym_value_operation) <evaluate_funcall>: New method.
4041 (class structop_member_base): New class.
4042 (class structop_member_operation): Derive from
4043 structop_member_base.
4044 (class structop_mptr_operation): Derive from
4045 structop_member_base.
4046 (class funcall_operation): New class.
4047 * eval.c (operation::evaluate_funcall)
4048 (var_value_operation::evaluate_funcall)
4049 (scope_operation::evaluate_funcall)
4050 (structop_member_base::evaluate_funcall)
4051 (structop_base_operation::evaluate_funcall): New methods.
4052
1c02eb30
TT
40532021-03-08 Tom Tromey <tom@tromey.com>
4054
4055 * expop.h (class array_operation): New.
4056 * eval.c (array_operation::evaluate_struct_tuple)
4057 (array_operation::evaluate): New methods.
4058
e4479080
TT
40592021-03-08 Tom Tromey <tom@tromey.com>
4060
4061 * expop.h (class adl_func_operation): New.
4062 * eval.c (adl_func_operation::evaluate): New method.
4063
95d49dfb
TT
40642021-03-08 Tom Tromey <tom@tromey.com>
4065
4066 * ada-lang.c (ada_unop_in_range): No longer static.
4067 * ada-exp.h (class ada_unop_range_operation): New.
4068
7c15d377
TT
40692021-03-08 Tom Tromey <tom@tromey.com>
4070
4071 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4072 No longer static.
4073 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4074 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4075
5019124b
TT
40762021-03-08 Tom Tromey <tom@tromey.com>
4077
4078 * expop.h (class logical_and_operation)
4079 (class logical_or_operation): New.
4080 * eval.c (logical_and_operation::evaluate)
4081 (logical_or_operation::evaluate): New methods.
4082 * ax-gdb.c (logical_and_operation::do_generate_ax)
4083 (logical_or_operation::do_generate_ax): New methods.
4084
2bc9b40c
TT
40852021-03-08 Tom Tromey <tom@tromey.com>
4086
4087 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4088 static.
4089 * m2-exp.h: New file.
4090
5947d337
TT
40912021-03-08 Tom Tromey <tom@tromey.com>
4092
4093 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4094 * rust-exp.h (class rust_aggregate_operation): New.
4095
e4407a20
TT
40962021-03-08 Tom Tromey <tom@tromey.com>
4097
4098 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4099 No longer static.
4100 * rust-exp.h (class rust_struct_anon): New.
4101 (class rust_structop): New.
4102
9db6b6dd
TT
41032021-03-08 Tom Tromey <tom@tromey.com>
4104
4105 * rust-lang.c (rust_range): No longer static.
4106 * rust-exp.h (class rust_range_operation): New.
4107
6ce1ad67
TT
41082021-03-08 Tom Tromey <tom@tromey.com>
4109
4110 * rust-lang.c (rust_subscript): No longer static.
4111 * rust-exp.h (class rust_subscript_operation): New.
4112
11dd3dce
TT
41132021-03-08 Tom Tromey <tom@tromey.com>
4114
4115 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4116 parameter.
4117 (rust_evaluate_subexp): Update.
4118 * rust-exp.h (class rust_unop_ind_operation): New.
4119
6fab4359
TT
41202021-03-08 Tom Tromey <tom@tromey.com>
4121
4122 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4123 longer static. Add "opcode" parameter.
4124 (rust_evaluate_subexp): Update.
4125 * rust-exp.h: New file.
4126
9dcd3e29
TT
41272021-03-08 Tom Tromey <tom@tromey.com>
4128
4129 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4130 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4131 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4132 (evaluate_subexp_f): Update.
4133 * f-exp.h: New file.
4134
fc715eb2
TT
41352021-03-08 Tom Tromey <tom@tromey.com>
4136
4137 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4138 * ada-exp.h (class ada_ternop_range_operation): New.
4139
cc6bd32e
TT
41402021-03-08 Tom Tromey <tom@tromey.com>
4141
4142 * ada-lang.c (ada_qual_operation::evaluate): New method.
4143 * ada-exp.h (class ada_qual_operation): New.
4144
42fecb61
TT
41452021-03-08 Tom Tromey <tom@tromey.com>
4146
4147 * ada-lang.c (ada_string_operation::evaluate): New method.
4148 * ada-exp.h (class ada_string_operation): New.
4149
03070ee9
TT
41502021-03-08 Tom Tromey <tom@tromey.com>
4151
4152 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4153 * ada-exp.h: New file.
4154
821e72d7
TT
41552021-03-08 Tom Tromey <tom@tromey.com>
4156
4157 * expop.h (class multi_subscript_operation): New.
4158 * eval.c (multi_subscript_operation::evaluate): New method.
4159
085734dd
TT
41602021-03-08 Tom Tromey <tom@tromey.com>
4161
4162 * eval.c (objc_msgcall_operation::evaluate): New method.
4163 * c-exp.h (class objc_msgcall_operation): New.
4164
e82a5afc
TT
41652021-03-08 Tom Tromey <tom@tromey.com>
4166
4167 * expop.h (class var_value_operation): New.
4168 * eval.c (var_value_operation::evaluate)
4169 (var_value_operation::evaluate_for_address)
4170 (var_value_operation::evaluate_with_coercion)
4171 (var_value_operation::evaluate_for_sizeof)
4172 (var_value_operation::evaluate_for_cast): New methods.
4173 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4174
d9ad79d8
TT
41752021-03-08 Tom Tromey <tom@tromey.com>
4176
4177 * expop.h (cxx_cast_ftype): New typedef.
4178 (cxx_cast_operation): New template.
4179 (dynamic_cast_operation, reinterpret_cast_operation): New
4180 typedefs.
4181
292382f4
TT
41822021-03-08 Tom Tromey <tom@tromey.com>
4183
4184 * expop.h (class unop_cast_type_operation): New.
4185 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4186 method.
4187
165a813a
TT
41882021-03-08 Tom Tromey <tom@tromey.com>
4189
4190 * expop.h (class unop_cast_operation): New.
4191 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4192
e5946e16
TT
41932021-03-08 Tom Tromey <tom@tromey.com>
4194
4195 * expop.h (class assign_modify_operation): New.
4196 * eval.c (eval_binop_assign_modify): No longer static.
4197 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4198
40786782
TT
41992021-03-08 Tom Tromey <tom@tromey.com>
4200
4201 * expop.h (class assign_operation): New.
4202 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4203
44b675c8
TT
42042021-03-08 Tom Tromey <tom@tromey.com>
4205
4206 * expop.h (class type_instance_operation): New.
4207 * eval.c (type_instance_operation::evaluate): New method.
4208
f6b42326
TT
42092021-03-08 Tom Tromey <tom@tromey.com>
4210
4211 * expop.h (class op_this_operation): New.
4212 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4213
cbc18219
TT
42142021-03-08 Tom Tromey <tom@tromey.com>
4215
4216 * expop.h (class unop_memval_operation)
4217 (class unop_memval_type_operation): New.
4218 * eval.c (eval_op_memval): No longer static.
4219 (unop_memval_operation::evaluate_for_address)
4220 (unop_memval_type_operation::evaluate_for_address)
4221 (unop_memval_operation::evaluate_for_sizeof)
4222 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4223 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4224 (unop_memval_type_operation::do_generate_ax): New methods.
4225
ae4bb61e
TT
42262021-03-08 Tom Tromey <tom@tromey.com>
4227
4228 * expop.h (class unop_alignof_operation): New.
4229 * eval.c (eval_op_alignof): No longer static.
4230
85d23bda
TT
42312021-03-08 Tom Tromey <tom@tromey.com>
4232
4233 * expop.h (class unop_sizeof_operation): New.
4234 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4235
14aff815
TT
42362021-03-08 Tom Tromey <tom@tromey.com>
4237
4238 * expop.h (class unop_addr_operation): New.
4239 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4240
929f3aa7
TT
42412021-03-08 Tom Tromey <tom@tromey.com>
4242
4243 * expop.h (class typeid_operation): New.
4244
0af8829e
TT
42452021-03-08 Tom Tromey <tom@tromey.com>
4246
4247 * expop.h (class decltype_operation): New.
4248
4efc574c
TT
42492021-03-08 Tom Tromey <tom@tromey.com>
4250
4251 * expop.h (class typeof_operation): New.
4252
5b5f5140
TT
42532021-03-08 Tom Tromey <tom@tromey.com>
4254
4255 * expop.h (class type_operation): New.
4256 * eval.c (eval_op_type): No longer static.
4257
876469ff
TT
42582021-03-08 Tom Tromey <tom@tromey.com>
4259
4260 * expop.h (class unop_ind_base_operation)
4261 (class unop_ind_operation): New.
4262 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4263 (unop_ind_base_operation::evaluate_for_address)
4264 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4265 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4266
6d89e296
TT
42672021-03-08 Tom Tromey <tom@tromey.com>
4268
4269 * expop.h (unop_incr_operation): New template.
4270 (preinc_operation, predec_operation, postinc_operation)
4271 (postdec_operation): New typedefs.
4272 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4273 (eval_op_postdec): No longer static.
4274
9307d17b
TT
42752021-03-08 Tom Tromey <tom@tromey.com>
4276
4277 * expop.h (unary_ftype): New typedef.
4278 (unop_operation, usual_ax_binop_operation): New templates.
4279 (unary_plus_operation, unary_neg_operation)
4280 (unary_complement_operation, unary_logical_not_operation): New
4281 typedefs.
4282 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4283 (eval_op_lognot): No longer static.
4284 * ax-gdb.c (gen_expr_unop): New function.
4285
ae64ba58
TT
42862021-03-08 Tom Tromey <tom@tromey.com>
4287
4288 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4289
d4eff4c1
TT
42902021-03-08 Tom Tromey <tom@tromey.com>
4291
4292 * expop.h (class repeat_operation): New.
4293 * eval.c (eval_op_repeat): No longer static. Remove "op"
4294 parameter.
4295 (evaluate_subexp_standard): Update.
4296 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4297
46916f2b
TT
42982021-03-08 Tom Tromey <tom@tromey.com>
4299
4300 * expop.h (class comparison_operation): New.
4301 (equal_operation, notequal_operation, less_operation)
4302 (gtr_operation, geq_operation, leq_operation): New typedefs.
4303 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4304 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4305
224d6424
TT
43062021-03-08 Tom Tromey <tom@tromey.com>
4307
4308 * expop.h (class subscript_operation): New.
4309 * eval.c (eval_op_subscript): No longer static.
4310
373907ff
TT
43112021-03-08 Tom Tromey <tom@tromey.com>
4312
4313 * expop.h (class binop_operation, class usual_ax_binop_operation):
4314 New.
4315 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4316 (div_operation, rem_operation, lsh_operation, rsh_operation)
4317 (bitwise_and_operation, bitwise_ior_operation)
4318 (bitwise_xor_operation): New typedefs.
4319 * eval.c (eval_op_binary): No longer static.
4320
5133d78b
TT
43212021-03-08 Tom Tromey <tom@tromey.com>
4322
4323 * expop.h (class sub_operation): New.
4324 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4325 (evaluate_subexp_standard): Update.
4326
a94323b6
TT
43272021-03-08 Tom Tromey <tom@tromey.com>
4328
4329 * expop.h (class add_operation): New.
4330 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4331 (evaluate_subexp_standard): Update.
4332
e51e26a0
TT
43332021-03-08 Tom Tromey <tom@tromey.com>
4334
4335 * expop.h (class concat_operation): New.
4336 * eval.c (eval_op_concat): No longer static. Remove "op"
4337 parameter.
4338 (evaluate_subexp_standard): Update.
4339
07f724a8
TT
43402021-03-08 Tom Tromey <tom@tromey.com>
4341
4342 * expop.h (class structop_member_operation)
4343 (class structop_mptr_operation): New.
4344 * eval.c (eval_op_member): No longer static.
4345
ab0609be
TT
43462021-03-08 Tom Tromey <tom@tromey.com>
4347
4348 * expop.h (class structop_ptr_operation): New.
4349 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4350 parameter.
4351
808b22cf
TT
43522021-03-08 Tom Tromey <tom@tromey.com>
4353
4354 * expop.h (class structop_base_operation)
4355 (class structop_operation): New.
4356 * eval.c (eval_op_structop_struct): No longer static.
4357
8cfd3e95
TT
43582021-03-08 Tom Tromey <tom@tromey.com>
4359
4360 * expop.h (class complex_operation): New.
4361
09db3700
TT
43622021-03-08 Tom Tromey <tom@tromey.com>
4363
4364 * eval.c (eval_op_objc_selector): No longer static.
4365 * c-exp.h (class objc_selector_operation): New.
4366
06dc61b9
TT
43672021-03-08 Tom Tromey <tom@tromey.com>
4368
4369 * eval.c: Include c-exp.h.
4370 * c-exp.h (class objc_nsstring_operation): New.
4371
72d0a711
TT
43722021-03-08 Tom Tromey <tom@tromey.com>
4373
4374 * c-lang.c (c_string_operation::evaluate): New method.
4375 * c-exp.h: New file.
4376
9186293f
TT
43772021-03-08 Tom Tromey <tom@tromey.com>
4378
4379 * expop.h (class ternop_cond_operation): New.
4380 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4381
1594e0bb
TT
43822021-03-08 Tom Tromey <tom@tromey.com>
4383
4384 * expop.h (class ternop_slice_operation): New.
4385 * eval.c (eval_op_ternop): No longer static.
4386
b50db09f
TT
43872021-03-08 Tom Tromey <tom@tromey.com>
4388
4389 * expop.h (class string_operation): New.
4390 * eval.c (eval_op_string): No longer static.
4391
e6e01e16
TT
43922021-03-08 Tom Tromey <tom@tromey.com>
4393
4394 * expop.h (class internalvar_operation): New.
4395 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4396
e6985c5e
TT
43972021-03-08 Tom Tromey <tom@tromey.com>
4398
4399 * expop.h (class bool_operation): New.
4400
55bdbff8
TT
44012021-03-08 Tom Tromey <tom@tromey.com>
4402
4403 * expop.h (class register_operation): New.
4404 * eval.c (eval_op_register): No longer static.
4405 * ax-gdb.c (register_operation::do_generate_ax): New method.
4406
247d935b
TT
44072021-03-08 Tom Tromey <tom@tromey.com>
4408
4409 * expop.h (class last_operation): New.
4410
17679395
TT
44112021-03-08 Tom Tromey <tom@tromey.com>
4412
4413 * expop.h (class func_static_var_operation): New.
4414 * eval.c (eval_op_func_static_var): No longer static.
4415
b5cc3923
TT
44162021-03-08 Tom Tromey <tom@tromey.com>
4417
4418 * expop.h (class var_entry_value_operation): New.
4419 * eval.c (eval_op_var_entry_value): No longer static.
4420
0c8effa3
TT
44212021-03-08 Tom Tromey <tom@tromey.com>
4422
4423 * expression.h (class operation) <set_outermost>: New method.
4424 * expop.h (class var_msym_value_operation): New.
4425 * eval.c (eval_op_var_msym_value): No longer static.
4426 (var_msym_value_operation::evaluate_for_address)
4427 (var_msym_value_operation::evaluate_for_sizeof)
4428 (var_msym_value_operation::evaluate_for_cast): New methods.
4429 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4430 method.
4431
d336c29e
TT
44322021-03-08 Tom Tromey <tom@tromey.com>
4433
4434 * expop.h (class long_const_operation): New.
4435 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4436
d5ab122c
TT
44372021-03-08 Tom Tromey <tom@tromey.com>
4438
4439 * expop.h (class scope_operation): New.
4440 * eval.c (eval_op_scope): No longer static.
4441 (scope_operation::evaluate_for_address): New method.
4442 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4443
cae26a0c
TT
44442021-03-08 Tom Tromey <tom@tromey.com>
4445
4446 * expprint.c (float_const_operation::dump): New method.
4447 * expop.h (float_data): New typedef.
4448 (class float_const_operation): New.
4449
75f9892d
TT
44502021-03-08 Tom Tromey <tom@tromey.com>
4451
4452 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4453 * ax-gdb.c (gen_expr_binop): New function.
4454 (gen_expr_structop): Likewise.
4455
de401988
TT
44562021-03-08 Tom Tromey <tom@tromey.com>
4457
4458 * expprint.c (expr::dump_for_expression): New functions.
4459 * expop.h (dump_for_expression): New overloads.
4460 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4461 Update.
4462
e2803273
TT
44632021-03-08 Tom Tromey <tom@tromey.com>
4464
4465 * expression.h (expr::operation): New class.
4466 (expr::make_operation): New function.
4467 (expr::operation_up): New typedef.
4468 * expop.h: New file.
4469 * eval.c (operation::evaluate_for_cast)
4470 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4471 New methods.
4472 * ax-gdb.c (operation::generate_ax): New method.
4473
e18c58f2
TT
44742021-03-08 Tom Tromey <tom@tromey.com>
4475
4476 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4477 (gen_expr_binop_rest): New overload.
4478
c0d7ed8c
TT
44792021-03-08 Tom Tromey <tom@tromey.com>
4480
4481 * eval.c (eval_multi_subscript): New function.
4482 (evaluate_subexp_standard): Use it.
4483
dd5fd283
TT
44842021-03-08 Tom Tromey <tom@tromey.com>
4485
4486 * ada-lang.c (ada_binop_exp): New function.
4487 (ada_evaluate_subexp): Use it.
4488
3848abd6
TT
44892021-03-08 Tom Tromey <tom@tromey.com>
4490
4491 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4492 parameters.
4493 (ada_evaluate_subexp): Use it.
4494
38dc70cf
TT
44952021-03-08 Tom Tromey <tom@tromey.com>
4496
4497 * ada-lang.c (ada_binop_minmax): New function.
4498 (ada_evaluate_subexp): Use it.
4499
b84564fc
TT
45002021-03-08 Tom Tromey <tom@tromey.com>
4501
4502 * ada-lang.c (ada_unop_atr): New function.
4503 (ada_evaluate_subexp): Use it.
4504
b467efaa
TT
45052021-03-08 Tom Tromey <tom@tromey.com>
4506
4507 * ada-lang.c (ada_binop_in_bounds): New function.
4508 (ada_evaluate_subexp): Use it.
4509
5ce19db8
TT
45102021-03-08 Tom Tromey <tom@tromey.com>
4511
4512 * ada-lang.c (ada_ternop_slice): New function.
4513 (ada_evaluate_subexp): Use it.
4514
214b13ac
TT
45152021-03-08 Tom Tromey <tom@tromey.com>
4516
4517 * ada-lang.c (ada_equal_binop): New function.
4518 (ada_evaluate_subexp): Use it.
4519
faa1dfd7
TT
45202021-03-08 Tom Tromey <tom@tromey.com>
4521
4522 * ada-lang.c (ada_mult_binop): New function.
4523 (ada_evaluate_subexp): Use it.
4524
d05e24e6
TT
45252021-03-08 Tom Tromey <tom@tromey.com>
4526
4527 * ada-lang.c (ada_abs): New function.
4528 (ada_evaluate_subexp): Use it.
4529
68c75735
TT
45302021-03-08 Tom Tromey <tom@tromey.com>
4531
4532 * ada-lang.c (ada_atr_size): New function.
4533 (ada_evaluate_subexp): Use it.
4534
020dbabe
TT
45352021-03-08 Tom Tromey <tom@tromey.com>
4536
4537 * ada-lang.c (ada_atr_tag): New function.
4538 (ada_evaluate_subexp): Use it.
4539
7efc87ff
TT
45402021-03-08 Tom Tromey <tom@tromey.com>
4541
4542 * ada-lang.c (ada_unop_in_range): New function.
4543 (ada_evaluate_subexp): Use it.
4544
82390ab8
TT
45452021-03-08 Tom Tromey <tom@tromey.com>
4546
4547 * ada-lang.c (ada_unop_neg): New function.
4548 (ada_evaluate_subexp): Use it.
4549
62d4bd94
TT
45502021-03-08 Tom Tromey <tom@tromey.com>
4551
4552 * ada-lang.c (eval_ternop_in_range): New function.
4553 (ada_evaluate_subexp): Use it.
4554
3634f669
TT
45552021-03-08 Tom Tromey <tom@tromey.com>
4556
4557 * opencl-lang.c (eval_opencl_assign): New function.
4558 (evaluate_subexp_opencl): Use it.
4559
5e80600e
TT
45602021-03-08 Tom Tromey <tom@tromey.com>
4561
4562 * eval.c (eval_op_objc_msgcall): New function.
4563 (evaluate_subexp_standard): Use it.
4564
fb5ba2ab
TT
45652021-03-08 Tom Tromey <tom@tromey.com>
4566
4567 * eval.c (eval_binop_assign_modify): New function.
4568 (evaluate_subexp_standard): Use it.
4569
a49881f7
TT
45702021-03-08 Tom Tromey <tom@tromey.com>
4571
4572 * m2-lang.c (eval_op_m2_subscript): New function.
4573 (evaluate_subexp_modula2): Use it.
4574
41bdced5
TT
45752021-03-08 Tom Tromey <tom@tromey.com>
4576
4577 * m2-lang.c (eval_op_m2_high): New function.
4578 (evaluate_subexp_modula2): Use it.
4579
13ea014a
TT
45802021-03-08 Tom Tromey <tom@tromey.com>
4581
4582 * eval.c (evaluate_subexp_for_address_base): New function.
4583 (evaluate_subexp_for_address): Use it.
4584 (evaluate_subexp_for_sizeof_base): New function.
4585 (evaluate_subexp_for_sizeof): Use it.
4586
1fa41fc7
TT
45872021-03-08 Tom Tromey <tom@tromey.com>
4588
4589 * rust-lang.c (eval_op_rust_structop): New function.
4590 (rust_evaluate_subexp): Use it.
4591
575cae23
TT
45922021-03-08 Tom Tromey <tom@tromey.com>
4593
4594 * rust-lang.c (eval_op_rust_struct_anon): New function.
4595 (rust_evaluate_subexp): Use it.
4596
05104233
TT
45972021-03-08 Tom Tromey <tom@tromey.com>
4598
4599 * rust-lang.c (eval_op_rust_array): New function.
4600 (rust_evaluate_subexp): Use it.
4601
6fa9831f
TT
46022021-03-08 Tom Tromey <tom@tromey.com>
4603
4604 * rust-lang.c (eval_op_rust_complement): New function.
4605 (rust_evaluate_subexp): Use it.
4606
d123f9e4
TT
46072021-03-08 Tom Tromey <tom@tromey.com>
4608
4609 * rust-lang.c (eval_op_rust_ind): New function.
4610 (rust_evaluate_subexp): Use it.
4611
984af2cb
TT
46122021-03-08 Tom Tromey <tom@tromey.com>
4613
4614 * rust-lang.c (rust_subscript): Change parameters.
4615 (rust_evaluate_subexp): Update.
4616
d148f803
TT
46172021-03-08 Tom Tromey <tom@tromey.com>
4618
4619 * rust-lang.c (rust_range): Change parameters.
4620 (rust_evaluate_subexp): Update.
4621
9cbd1c20
TT
46222021-03-08 Tom Tromey <tom@tromey.com>
4623
4624 * f-lang.c (eval_op_f_allocated): New function.
4625 (evaluate_subexp_f): Use it.
4626
3c18c49c
TT
46272021-03-08 Tom Tromey <tom@tromey.com>
4628
4629 * f-lang.c (fortran_require_array): New function.
4630 (evaluate_subexp_f): Use it.
4631
216f6fcb
TT
46322021-03-08 Tom Tromey <tom@tromey.com>
4633
4634 * f-lang.c (eval_op_f_kind): New function.
4635 (evaluate_subexp_f): Use it.
4636
00f2db6f
TT
46372021-03-08 Tom Tromey <tom@tromey.com>
4638
4639 * f-lang.c (eval_op_f_cmplx): New function.
4640 (evaluate_subexp_f): Use it.
4641
93b2b5fa
TT
46422021-03-08 Tom Tromey <tom@tromey.com>
4643
4644 * f-lang.c (eval_op_f_modulo): New function.
4645 (evaluate_subexp_f): Use it.
4646
9f1a1f3c
TT
46472021-03-08 Tom Tromey <tom@tromey.com>
4648
4649 * f-lang.c (eval_op_f_floor): New function.
4650 (evaluate_subexp_f): Use it.
4651
3dc41f3c
TT
46522021-03-08 Tom Tromey <tom@tromey.com>
4653
4654 * f-lang.c (eval_op_f_ceil): New function.
4655 (evaluate_subexp_f): Use it.
4656
e08109f2
TT
46572021-03-08 Tom Tromey <tom@tromey.com>
4658
4659 * f-lang.c (eval_op_f_mod): New function.
4660 (evaluate_subexp_f): Use it.
4661
cc05c68e
TT
46622021-03-08 Tom Tromey <tom@tromey.com>
4663
4664 * f-lang.c (eval_op_f_abs): New function.
4665 (evaluate_subexp_f): Use it.
4666
aec95807
TT
46672021-03-08 Tom Tromey <tom@tromey.com>
4668
4669 * eval.c (eval_op_type): New function.
4670 (evaluate_subexp_standard): Use it.
4671
a220ead5
TT
46722021-03-08 Tom Tromey <tom@tromey.com>
4673
4674 * eval.c (eval_op_postdec): New function.
4675 (evaluate_subexp_standard): Use it.
4676
abffe116
TT
46772021-03-08 Tom Tromey <tom@tromey.com>
4678
4679 * eval.c (eval_op_postinc): New function.
4680 (evaluate_subexp_standard): Use it.
4681
9e1361b7
TT
46822021-03-08 Tom Tromey <tom@tromey.com>
4683
4684 * eval.c (eval_op_predec): New file.
4685 (evaluate_subexp_standard): Use it.
4686
00f50884
TT
46872021-03-08 Tom Tromey <tom@tromey.com>
4688
4689 * eval.c (eval_op_preinc): New function.
4690 (evaluate_subexp_standard): Use it.
4691
3aef2a07
TT
46922021-03-08 Tom Tromey <tom@tromey.com>
4693
4694 * eval.c (eval_op_memval): New function.
4695 (evaluate_subexp_standard): Use it.
4696
acee9468
TT
46972021-03-08 Tom Tromey <tom@tromey.com>
4698
4699 * eval.c (eval_op_alignof): New function.
4700 (evaluate_subexp_standard): Use it.
4701
786f70ee
TT
47022021-03-08 Tom Tromey <tom@tromey.com>
4703
4704 * eval.c (eval_op_ind): New function.
4705 (evaluate_subexp_standard): Use it.
4706
24338fb9
TT
47072021-03-08 Tom Tromey <tom@tromey.com>
4708
4709 * eval.c (eval_op_lognot): New function.
4710 (evaluate_subexp_standard): Use it.
4711
1f09ec81
TT
47122021-03-08 Tom Tromey <tom@tromey.com>
4713
4714 * eval.c (eval_op_complement): New function.
4715 (evaluate_subexp_standard): Use it.
4716
606d105f
TT
47172021-03-08 Tom Tromey <tom@tromey.com>
4718
4719 * eval.c (eval_op_neg): New function.
4720 (evaluate_subexp_standard): Use it.
4721
39f288be
TT
47222021-03-08 Tom Tromey <tom@tromey.com>
4723
4724 * eval.c (eval_op_plus): New function.
4725 (evaluate_subexp_standard): Use it.
4726
eed70b1c
TT
47272021-03-08 Tom Tromey <tom@tromey.com>
4728
4729 * eval.c (eval_op_repeat): New function.
4730 (evaluate_subexp_standard): Use it.
4731
60cdd487
TT
47322021-03-08 Tom Tromey <tom@tromey.com>
4733
4734 * eval.c (eval_op_leq): New function.
4735 (evaluate_subexp_standard): Use it.
4736
96e3efd9
TT
47372021-03-08 Tom Tromey <tom@tromey.com>
4738
4739 * eval.c (eval_op_geq): New function.
4740 (evaluate_subexp_standard): Use it.
4741
1f78d732
TT
47422021-03-08 Tom Tromey <tom@tromey.com>
4743
4744 * eval.c (eval_op_gtr): New function.
4745 (evaluate_subexp_standard): Use it.
4746
6cad1349
TT
47472021-03-08 Tom Tromey <tom@tromey.com>
4748
4749 * eval.c (eval_op_less): New function.
4750 (evaluate_subexp_standard): Use it.
4751
1fcb3559
TT
47522021-03-08 Tom Tromey <tom@tromey.com>
4753
4754 * eval.c (eval_op_notequal): New function.
4755 (evaluate_subexp_standard): Use it.
4756
0cc96de8
TT
47572021-03-08 Tom Tromey <tom@tromey.com>
4758
4759 * eval.c (eval_op_equal): New function.
4760 (evaluate_subexp_standard): Use it.
4761
288d26bc
TT
47622021-03-08 Tom Tromey <tom@tromey.com>
4763
4764 * eval.c (eval_op_subscript): New function.
4765 (evaluate_subexp_standard): Use it.
4766
7cdcdd02
TT
47672021-03-08 Tom Tromey <tom@tromey.com>
4768
4769 * eval.c (eval_op_binary): New function.
4770 (evaluate_subexp_standard): Use it.
4771
d9790e22
TT
47722021-03-08 Tom Tromey <tom@tromey.com>
4773
4774 * eval.c (eval_op_sub): New function.
4775 (evaluate_subexp_standard): Use it.
4776
aedaf9ac
TT
47772021-03-08 Tom Tromey <tom@tromey.com>
4778
4779 * eval.c (eval_op_add): New function.
4780 (evaluate_subexp_standard): Use it.
4781
b7a96ed2
TT
47822021-03-08 Tom Tromey <tom@tromey.com>
4783
4784 * eval.c (eval_op_member): New function.
4785 (evaluate_subexp_standard): Use it.
4786
fb461aa3
TT
47872021-03-08 Tom Tromey <tom@tromey.com>
4788
4789 * eval.c (eval_op_structop_ptr): New function.
4790 (evaluate_subexp_standard): Use it.
4791
3e96c4fc
TT
47922021-03-08 Tom Tromey <tom@tromey.com>
4793
4794 * eval.c (eval_op_structop_struct): New function.
4795 (evaluate_subexp_standard): Use it.
4796
f960a617
TT
47972021-03-08 Tom Tromey <tom@tromey.com>
4798
4799 * eval.c (eval_op_ternop): New function.
4800 (evaluate_subexp_standard): Use it.
4801
5c2f201e
TT
48022021-03-08 Tom Tromey <tom@tromey.com>
4803
4804 * eval.c (eval_op_concat): New function.
4805 (evaluate_subexp_standard): Use it.
4806
f871bae1
TT
48072021-03-08 Tom Tromey <tom@tromey.com>
4808
4809 * eval.c (eval_op_objc_selector): New function.
4810 (evaluate_subexp_standard): Use it.
4811
14a1c64a
TT
48122021-03-08 Tom Tromey <tom@tromey.com>
4813
4814 * eval.c (eval_op_string): New function.
4815 (evaluate_subexp_standard): Use it.
4816
ffff730b
TT
48172021-03-08 Tom Tromey <tom@tromey.com>
4818
4819 * eval.c (eval_op_register): New function.
4820 (evaluate_subexp_standard): Use it.
4821
9b1d8af6
TT
48222021-03-08 Tom Tromey <tom@tromey.com>
4823
4824 * eval.c (eval_op_func_static_var): New function.
4825 (evaluate_subexp_standard): Use it.
4826
c0df9289
TT
48272021-03-08 Tom Tromey <tom@tromey.com>
4828
4829 * eval.c (eval_op_var_msym_value): New function.
4830 (evaluate_subexp_standard): Use it.
4831
50b98adc
TT
48322021-03-08 Tom Tromey <tom@tromey.com>
4833
4834 * eval.c (eval_op_var_entry_value): New function.
4835 (evaluate_subexp_standard): Use it.
4836
ea2d29f7
TT
48372021-03-08 Tom Tromey <tom@tromey.com>
4838
4839 * eval.c (eval_op_scope): New function.
4840 (evaluate_subexp_standard): Use it.
4841
01573d73
TT
48422021-03-06 Chernov Sergey <klen_s@mail.ru>
4843
4844 PR gdb/27528:
4845 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4846
9938d15a
TT
48472021-03-06 Tom Tromey <tom@tromey.com>
4848
4849 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4850 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4851 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4852 (locate_dwz_sections, dwz_search_other_debugdirs)
4853 (dwarf2_get_dwz_file): Move to dwz.c.
4854 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4855 read.h.
4856 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4857 (dwarf2_get_dwz_file): Move from read.c.
4858
18035655
TT
48592021-03-06 Tom Tromey <tom@tromey.com>
4860
4861 * debuginfod-support.h: Include scoped_fd.h.
4862
a7308ce0
TT
48632021-03-06 Tom Tromey <tom@tromey.com>
4864
4865 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4866 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4867 (get_abbrev_section_for_cu, read_attribute_value)
4868 (get_debug_line_section): Update.
4869 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4870
fbedd546
TT
48712021-03-06 Tom Tromey <tom@tromey.com>
4872
4873 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4874 method.
4875 * dwarf2/read.c (section_is_p): Remove.
4876 (dwarf2_per_bfd::locate_sections)
4877 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4878 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4879 (dwarf2_locate_common_dwp_sections)
4880 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4881 Update.
4882
c2a62a3d
TT
48832021-03-06 Tom Tromey <tom@tromey.com>
4884
4885 * xcoffread.c: Include sect-names.h.
4886 * symfile.h (struct dwarf2_section_names, struct
4887 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4888 * dwarf2/sect-names.h: New file, from symfile.h.
4889 * dwarf2/read.c: Include sect-names.h.
4890
4444f407
TT
48912021-03-06 Tom Tromey <tom@tromey.com>
4892
4893 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4894 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4895 (abbrev_table::read): Update.
4896 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4897 (struct abbrev_info): Reformat.
4898 <attrs>: Now an array.
4899 (struct abbrev_table) <alloc_abbrev>: Remove.
4900
dd99cf0c
WP
49012021-03-06 Weimin Pan <weimin.pan@oracle.com>
4902
4903 * ctfread.c (ctf_psymtab_add_enums): New function.
4904 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4905
844be3f2
WP
49062021-03-06 Weimin Pan <weimin.pan@oracle.com>
4907
4908 * ctfread.c (read_func_kind_type): Set up function arguments.
4909
b2668f28
AB
49102021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4911 Andrew Burgess <andrew.burgess@embecosm.com>
4912
4913 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4914 includes.
4915 (riscv_csrset): New static global.
4916 (riscv_update_csrmap): New function.
4917 (riscv_iterate_over_regset_sections): Process CSRs.
4918
d782d24b
AB
49192021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4920
4921 * riscv-tdep.c (riscv_feature_name_csr): Define.
4922 (riscv_feature_name_cpu): Define.
4923 (riscv_feature_name_fpu): Define.
4924 (riscv_feature_name_virtual): Define.
4925 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4926 (riscv_freg_feature): Use riscv_feature_name_fpu.
4927 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4928 (riscv_csr_feature): Use riscv_feature_name_csr.
4929 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4930
fb8f3fc0
AB
49312021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4932 Craig Blackmore <craig.blackmore@embecosm.com>
4933
4934 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4935 (ALLDEPFILES): Add riscv-none-tdep.c.
4936 * configure: Regenerate.
4937 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4938 support.
4939 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4940 * elf-none-tdep.c: New file.
4941 * elf-none-tdep.h: New file.
4942 * riscv-none-tdep.c: New file.
4943
95ce627a
AB
49442021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4945 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * corelow.c: Add 'xml-tdesc.h' include.
4948 (core_target::read_description): Load the target description from
4949 the core file when possible.
4950 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4951 note.
4952 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4953 (gcore_elf_make_tdesc_note): New function.
4954 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4955 * linux-tdep.c (linux_make_corefile_notes): Add target description
4956 note.
4957
f3a5df7b
AB
49582021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4959
4960 * Makefile.in (SFILES): Add gcore-elf.c.
4961 (HFILES_NO_SRCDIR): Add gcore-elf.h
4962 * configure: Regenerate.
4963 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4964 support.
4965 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4966 (struct fbsd_collect_regset_section_cb_data): Delete.
4967 (fbsd_collect_regset_section_cb): Delete.
4968 (fbsd_collect_thread_registers): Delete.
4969 (struct fbsd_corefile_thread_data): Delete.
4970 (fbsd_corefile_thread): Delete.
4971 (fbsd_make_corefile_notes): Call
4972 gcore_elf_build_thread_register_notes instead of the now deleted
4973 FreeBSD code.
4974 * gcore-elf.c: New file, the content was moved here from
4975 linux-tdep.c, functions were renamed and given minor cleanup.
4976 * gcore-elf.h: New file.
4977 * gcore.c (gcore_find_signalled_thread): Moved here from
4978 linux-tdep.c and given a new name. Minor cleanups.
4979 * gcore.h (gcore_find_signalled_thread): Declare.
4980 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4981 (struct linux_collect_regset_section_cb_data): Delete.
4982 (linux_collect_regset_section_cb): Delete.
4983 (linux_collect_thread_registers): Delete.
4984 (linux_corefile_thread): Call
4985 gcore_elf_build_thread_register_notes.
4986 (find_signalled_thread): Delete.
4987 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4988
d1e93af6
SM
49892021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4990
4991 PR gdb/27147
4992 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4993 process_stratum_target parameter,
4994 sparc_store_inferior_registers): update callers.
4995 * sparc-nat.c (sparc_fetch_inferior_registers,
4996 sparc_store_inferior_registers): Add process_stratum_target
4997 parameter. Switch current thread before calling
4998 sparc_supply_gregset / sparc_collect_rwindow.
4999 (sparc_store_inferior_registers): Likewise.
5000 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5001 (sparc32obsd_collect_uthread): Likewise.
5002 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5003 Add assertion.
5004 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5005 sparc64obsd_supply_uthread): Add assertion.
5006
1178743e
TT
50072021-03-04 Tom Tromey <tromey@adacore.com>
5008
5009 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5010 (aux_add_nonlocal_symbols): Update.
5011 (ada_add_block_symbols): Change "found_sym" to bool.
5012
1bfa81ac
TT
50132021-03-03 Tom Tromey <tromey@adacore.com>
5014
5015 * ada-lang.c (ada_resolve_function): Update comment.
5016 (is_nonfunction, add_symbols_from_enclosing_procs)
5017 (remove_extra_symbols): Likewise.
5018 (struct match_data): Add constructor, initializers.
5019 (add_nonlocal_symbols): Remove memset.
5020 (aux_add_nonlocal_symbols): Update comment.
5021 (ada_add_block_renamings, add_nonlocal_symbols)
5022 (ada_add_all_symbols): Likewise.
5023 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5024
bbcdf9ab
TT
50252021-03-02 Tom Tromey <tromey@adacore.com>
5026
5027 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5028 (cast_to_gnat_encoded_fixed_point_type): Remove.
5029 (ada_value_cast, ada_evaluate_subexp): Update.
5030 (gnat_encoded_fixed_point_type_info)
5031 (ada_is_gnat_encoded_fixed_point_type)
5032 (gnat_encoded_fixed_point_delta)
5033 (gnat_encoded_fixed_point_scaling_factor): Remove.
5034 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5035 (gnat_encoded_fixed_point_delta)
5036 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5037 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5038 (ada_print_type): Update.
5039 * ada-valprint.c (ada_value_print_num): Update.
5040 * dwarf2/read.c (ada_get_gnat_encoded_number)
5041 (ada_get_gnat_encoded_ratio): New functions.
5042 (finish_fixed_point_type): Use them. Add parameters.
5043 (GNAT_FIXED_POINT_SUFFIX): New define.
5044 (gnat_encoded_fixed_point_type_info): New function.
5045 (read_base_type): Handle gnat encodings.
5046
5f9febe0
TT
50472021-03-02 Tom Tromey <tromey@adacore.com>
5048
5049 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5050 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5051 std::string.
5052 (GROW_VECT): Remove.
5053 (grow_vect): Remove.
5054
d1183b06
TT
50552021-03-02 Tom Tromey <tromey@adacore.com>
5056
5057 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5058 * ada-lang.c (resolve_subexp): Update.
5059 (ada_resolve_function): Accept a vector.
5060 (is_nonfunction, add_defn_to_vec)
5061 (add_symbols_from_enclosing_procs): Likewise.
5062 (num_defns_collected, defns_collected): Remove.
5063 (remove_extra_symbols): Return a vector.
5064 (remove_irrelevant_renamings): Return void.
5065 (ada_add_local_symbols): Accept a vector.
5066 (struct match_data) <obstackp>: Remove.
5067 <resultp>: New member.
5068 (aux_add_nonlocal_symbols): Update.
5069 (ada_add_block_renamings, add_nonlocal_symbols)
5070 (ada_add_all_symbols): Accept a vector.
5071 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5072 vector.
5073 (ada_lookup_symbol): Update.
5074 (ada_add_block_symbols): Accept a vector.
5075 (get_var_value, iterate_over_symbols): Update.
5076 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5077 Update.
5078
886d459f
TT
50792021-03-02 Tom Tromey <tromey@adacore.com>
5080
5081 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5082
bdcccc56
TT
50832021-03-02 Tom Tromey <tromey@adacore.com>
5084
5085 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5086 auto_obstack.
5087 <root>: Initialize.
5088 (ada_pspace_data): Remove destructor.
5089 <sym_cache>: Now a unique_ptr.
5090 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5091 (ada_get_symbol_cache): Use 'new'.
5092 (ada_clear_symbol_cache): Rewrite.
5093
1228719f
TT
50942021-03-02 Tom Tromey <tromey@adacore.com>
5095
5096 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5097 is null.
5098
bb3a4efe
LS
50992021-02-27 Lancelot Six <lsix@lancelotsix.com>
5100
5101 PR gdb/27393
5102 * source.c (add_path): Skip empty dirnames.
5103
26b43ca6 51042021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5105
5106 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5107 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5108
dffdd8b5
SM
51092021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5110
5111 PR gdb/26861
5112 * target.c (target_mourn_inferior): Only compare pids in
5113 target_mourn_inferior.
5114
64d38fdd
JM
51152021-02-25 Jan Matyas <jmatyas@codasip.com>
5116
5117 PR gdb/26819
5118 * remote.c (remote_target::start_remote): Ensure the single
5119 thread, automatically added for remote targets without the
5120 concept of threading, is initially in set to the "resumed"
5121 state.
5122 * remote.c (remote_target::add_current_inferior_and_thread):
5123 Add return value - return the main thread.
5124
2450ad54
JV
51252021-02-25 Jan Vrany <jan.vrany@labware.com>
5126
5127 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5128 (mi_tsv_created): Likewise.
5129 (mi_tsv_deleted): Likewise.
5130
30c80d88
TV
51312021-02-25 Tom de Vries <tdevries@suse.de>
5132
5133 PR symtab/27354
5134 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5135 section_kind for &dwo_file->sections.info.
5136
68337b8b
AB
51372021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 PR fortran/26155
5140 * f-lang.c (fortran_argument_convert): Delete declaration.
5141 (fortran_prepare_argument): New function.
5142 (evaluate_subexp_f): Move logic to new function
5143 fortran_prepare_argument.
5144
faeb9f13
AB
51452021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5146
5147 * f-exp.y (f77_keywords): Add 'associated'.
5148 * f-lang.c (fortran_associated): New function.
5149 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5150 (operator_length_f): Likewise.
5151 (print_unop_or_binop_subexp_f): New function.
5152 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5153 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5154 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5155 (operator_check_f): Likewise.
5156 * std-operator.def: Add FORTRAN_ASSOCIATED.
5157
170f4b23
AB
51582021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5159
5160 * f-exp.y (fortran_operators): Add ".xor.".
5161
aa659cfa
TV
51622021-02-24 Tom de Vries <tdevries@suse.de>
5163
5164 PR symtab/27336
5165 * dwarf2/attribute.c (attribute::form_is_signed): New function
5166 factored out of ...
5167 * dwarf2/attribute.h (attribute::as_signed): ... here.
5168 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5169 (attribute::form_is_signed): Declare.
5170 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5171 for DW_AT_decl_file.
5172
268c77c1
KB
51732021-02-24 Kevin Buettner <kevinb@redhat.com>
5174
5175 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5176 order for <sys/ptrace.h> and <asm/ptrace.h>.
5177
665af52e
KB
51782021-02-24 Kevin Buettner <kevinb@redhat.com>
5179
5180 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5181 <sys/ptrace.h>.
5182
dd80d750
AB
51832021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5184
5185 * exec.c (set_section_command): Move variable declarations into
5186 the function body, and use std::string instead of a fixed size
5187 buffer.
5188
336aa7b7
AB
51892021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5190
5191 * exec.c (exec_target::get_section_table): Delete member function.
5192 (section_table_read_available_memory): Use current_top_target, not
5193 just the exec_ops target.
5194 * target-delegates.c: Regenerate.
5195 * target.c (default_get_section_table): New function.
5196 * target.h (target_ops::get_section_table): Change default
5197 behaviour to call default_get_section_table.
5198 (default_get_section_table): Declare.
5199
02f7d26b
AB
52002021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 * exec.c (exec_target::close): Call new clear_target_sections
5203 function.
5204 (program_space::add_target_sections): Update name of member
5205 variable.
5206 (program_space::add_target_sections): Update name of member
5207 variable.
5208 (program_space::remove_target_sections): Likewise.
5209 (exec_one_fork): Use new target_sections member function.
5210 (exec_target::get_section_table): Likewise.
5211 (exec_target::files_info): Likewise.
5212 (set_section_command): Likewise.
5213 (exec_set_section_address): Likewise.
5214 (exec_target::has_memory): Use new target_sections member
5215 function.
5216 * progspace.h (program_space::clear_target_sections): New member
5217 function.
5218 (program_space::target_sections): Rename member variable to
5219 m_target_sections, replace with a new member function.
5220 (program_space::m_target_sections): New member variable.
5221 * solib-dsbt.c (scan_dyntag): Use new member function.
5222 * solib-svr4.c (scan_dyntag): Likewise.
5223
19cf757a
AB
52242021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5225
5226 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5227 return type const.
5228 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5229 (section_table_read_available_memory): Make local const.
5230 (exec_target::xfer_partial): Make local const.
5231 (print_section_info): Make parameter const.
5232 * gdb/exec.h (print_section_info): Likewise.
5233 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5234 const.
5235 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5236 Likewise.
5237 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5238 Likewise.
5239 * gdb/s390-tdep.c (s390_load): Likewise.
5240 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5241 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5242 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5243 Rename to...
5244 (target_debug_print_const_target_section_table_p): ...this.
5245 * gdb/target-delegates.c: Regenerate.
5246 * gdb/target.c (target_get_section_table): Make return type const.
5247 (target_section_by_addr): Likewise. Also make some locals const.
5248 (memory_xfer_partial_1): Make some locals const.
5249 * gdb/target.h (struct target_ops) <get_section_table>: Make
5250 return type const.
5251 (target_section_by_addr): Likewise.
5252 (target_get_section_table): Likewise.
5253
02a79309
AB
52542021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5255
5256 * NEWS: Mention new 'maint info target-sections' command.
5257 * maint.c (maintenance_info_target_sections): New function.
5258 (_initialize_maint_cmds): Register new command.
5259
895b7b4e
AB
52602021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5261
5262 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5263 (riscv_features_from_bfd): ...this. Change parameter type to
5264 'bfd*', and update as required.
5265 (riscv_find_default_target_description): Update call to
5266 riscv_features_from_bfd. Select a default xlen based on
5267 info.bfd_arch_info.
5268 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5269
bc3c0632
AB
52702021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5271
5272 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5273 dynamic types in UNOP_IND.
5274
08ac5771
SM
52752021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5276
5277 PR gdb/26828
5278 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5279 Instantiate queue.
5280 (~dwarf2_queue_guard): Clear queue.
5281 (queue_comp_unit): Assert that queue is
5282 instantiated.
5283 (process_queue): Adjust.
5284 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5285
616c069a
SM
52862021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5287
5288 PR gdb/26828
5289 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5290 to decide whether or not to enqueue it for expansion.
5291 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5292 after calling maybe_queue_comp_unit.
5293
897608ed
SM
52942021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5295
5296 * linux-nat.c (linux_nat_filter_event): Return void.
5297
15908a11
TT
52982021-02-22 Tom Tromey <tromey@adacore.com>
5299
5300 * solib-svr4.c (enable_break): Update.
5301 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5302 type.
5303 (target_bfd_reopen): Change parameter type.
5304 * bfd-target.h (target_bfd_reopen): Change parameter type.
5305
f53fc427
SM
53062021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5307
5308 * thread.c (add_thread_silent): Add assert.
5309 (find_thread_ptid): Add assert.
5310
de146e19
SM
53112021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 PR gdb/27435
5314 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5315 (target_unpush_up): Likewise.
5316 * procfs.c (procfs_target::attach): Push target early. Use
5317 target_unpush_up to unpush target in case of error.
5318 * target.h (struct target_unpusher): Move here.
5319 (target_unpush_up): Likewise.
5320
8488c357
KB
53212021-02-19 Kevin Buettner <kevinb@redhat.com>
5322
5323 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5324 (which in turn includes <gnulib/config.h>) before include
5325 of <signal.h>.
5326
5a9f5403
NC
53272021-02-19 Nelson Chu <nelson.chu@sifive.com>
5328
5329 PR 27158
5330 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5331 (decode_j_type_insn): Likewise.
5332 (decode_cj_type_insn): Likewise.
5333 (decode_b_type_insn): Likewise.
5334 (decode): Likewise.
5335
26f53cd3
TT
53362021-02-18 Tom Tromey <tom@tromey.com>
5337
5338 * expression.h (struct expression) <evaluate>: Declare method.
5339 * eval.c (evaluate_subexp): Simplify.
5340 (expression::evaluate): New method.
5341 (evaluate_expression, evaluate_type): Use expression::evaluate.
5342
6a780b67
KB
53432021-02-17 Kevin Buettner <kevinb@redhat.com>
5344
5345 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5346 to accessing it.
5347 (ada_lookup_name_info): Likewise.
5348
adeab0c5
MF
53492021-02-13 Mike Frysinger <vapier@gentoo.org>
5350
5351 * aclocal.m4: Regenerate.
5352
089436f7
TV
53532021-02-12 Tom de Vries <tdevries@suse.de>
5354
5355 PR threads/26228
5356 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5357 (lin_thread_signals): New static var.
5358 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5359 New function.
5360 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5361 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5362 Declare.
5363 * linux-thread-db.c (check_thread_signals): Use
5364 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5365
96df3e28
AB
53662021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5367
5368 * f-exp.y (f77_keywords): Add allocated.
5369 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5370 (operator_length_f): Likewise.
5371 (print_subexp_f): Likewise.
5372 (dump_subexp_body_f): Likewise.
5373 (operator_check_f): Likewise.
5374 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5375
05f68f52
TV
53762021-02-11 Tom de Vries <tdevries@suse.de>
5377
5378 PR symtab/27353
5379 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5380 Return true for DW_FORM_strx.
5381
b260f8d6
TT
53822021-02-11 Tom Tromey <tromey@adacore.com>
5383
5384 PR gdb/27383:
5385 * parse.c (write_exp_symbol_reference): Write sym.block.
5386
bf3386f0
AB
53872021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5388
5389 * NEWS: Mention changes to 'maint info sections'.
5390 * maint.c (match_substring): Return a bool, fix whitespace issue.
5391 (struct single_bfd_flag_info): New struct.
5392 (bfd_flag_info): New static global.
5393 (match_bfd_flags): Return a bool, use bfd_flag_info.
5394 (print_bfd_flags): Use bfd_flag_info.
5395 (maint_print_section_info): Delete trailing whitespace.
5396 (struct maint_info_sections_opts): New struct.
5397 (maint_info_sections_option_defs): New static global.
5398 (maint_info_sections_completer): New function.
5399 (maintenance_info_sections): Use option parsing mechanism.
5400 (_initialize_maint_cmds): Update command help text for 'maint info
5401 sections' and register a command completer.
5402
4790db14
AB
54032021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5404
5405 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5406 functionality merged into...
5407 (maint_print_all_sections): ...this new function.
5408 (maintenance_info_sections): Make use of maint_print_all_sections,
5409 allow all objects to be printed even where there's no executable.
5410
1db66e34
AB
54112021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5412
5413 * breakpoint.c (resolve_sal_pc): Make use of
5414 bound_minimal_symbol::obj_section.
5415 * maint.c (maintenance_translate_address): Likewise.
5416 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5417 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5418 member function.
5419 * printcmd.c (info_address_command): Make use of
5420 bound_minimal_symbol::obj_section.
5421
18b8df43
AM
54222021-02-11 Alan Modra <amodra@gmail.com>
5423
5424 * arm-symbian-tdep.c: Delete.
5425 * NEWS: Mention arm-symbian removal.
5426 * Makefile.in: Remove arm-symbian-tdep entries.
5427 * configure.tgt: Remove arm*-*-symbianelf*.
5428 * doc/gdb.texinfo: Remove mention of SymbianOS.
5429 * osabi.c (gdb_osabi_names): Remove "Symbian".
5430 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5431 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5432 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5433 handling.
5434 * testsuite/gdb.base/dup-sect.exp: Likewise.
5435 * testsuite/gdb.base/long_long.exp: Likewise.
5436 * testsuite/gdb.base/solib-weak.exp: Likewise.
5437 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5438 * testsuite/gdb.python/py-section-script.exp: Likewise.
5439 * testsuite/lib/dwarf.exp: Likewise.
5440 * testsuite/lib/gdb.exp: Likewise.
5441
e92c8eb8
AB
54422021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5443
5444 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5445 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5446 (one_or_two_args): New pattern.
5447 (f77_keywords): Add lbound and ubound.
5448 * f-lang.c (fortran_bounds_all_dims): New function.
5449 (fortran_bounds_for_dimension): New function.
5450 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5451 (operator_length_f): Likewise.
5452 (print_subexp_f): Likewise.
5453 (dump_subexp_body_f): Likewise.
5454 (operator_check_f): Likewise.
5455 * std-operator.def (FORTRAN_LBOUND): Define.
5456 (FORTRAN_UBOUND): Define.
5457
a52d653e
AB
54582021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5459
5460 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5461 and set_section_index member functions where appropriate.
5462 * coffread.c (coff_symtab_read): Likewise.
5463 (process_coff_symbol): Likewise.
5464 * ctfread.c (set_symbol_address): Likewise.
5465 * dwarf2/read.c (add_partial_symbol): Likewise.
5466 (var_decode_location): Likewise.
5467 * language.c: Likewise.
5468 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5469 (compact_minimal_symbols): Likewise.
5470 (minimal_symbol_upper_bound): Likewise.
5471 * objfiles.c (relocate_one_symbol): Likewise.
5472 * psympriv.h (partial_symbol::obj_section): Likewise.
5473 (partial_symbol::address): Likewise.
5474 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5475 * stabsread.c (scan_file_globals): Likewise.
5476 * symmisc.c (dump_msymbols): Likewise.
5477 * symtab.c (general_symbol_info::obj_section): Likewise.
5478 (fixup_section): Likewise.
5479 (get_msymbol_address): Likewise.
5480 * symtab.h (general_symbol_info::section): Rename to...
5481 (general_symbol_info::m_section): ...this.
5482 (general_symbol_info::set_section_index): New member function.
5483 (general_symbol_info::section_index): Likewise.
5484 (SYMBOL_SECTION): Delete.
5485 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5486 set_section_index member functions where appropriate.
5487 (MSYMBOL_SECTION): Delete.
5488 (symbol::symbol): Update to initialize 'm_section'.
5489 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5490 (process_xcoff_symbol): Likewise.
5491
ebbc3a7d
AB
54922021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5493
5494 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5495 MSYMBOL_OBJ_SECTION.
5496 * findvar.c (language_defn::read_var_value): Likewise.
5497 * infcmd.c (jump_command): Likewise.
5498 * linespec.c (minsym_found): Likewise.
5499 * maint.c (maintenance_translate_address): Likewise.
5500 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5501 (minimal_symbol_upper_bound): Likewise.
5502 * parse.c (find_minsym_type_and_address): Likewise.
5503 (operator_check_standard): Likewise.
5504 * printcmd.c (info_address_command): Likewise.
5505 * symmisc.c (dump_msymbols): Likewise.
5506 (print_symbol): Likewise.
5507 * symtab.c (general_symbol_info::obj_section): Define new
5508 function.
5509 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5510 (find_pc_sect_compunit_symtab): Likewise.
5511 (find_function_start_sal): Likewise.
5512 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5513 MSYMBOL_OBJ_SECTION.
5514 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5515 function.
5516 (SYMBOL_OBJ_SECTION): Delete.
5517 (MSYMBOL_OBJ_SECTION): Delete.
5518
9bb305b3
TT
55192021-02-09 Tom Tromey <tom@tromey.com>
5520
5521 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5522
cf2b2075
TV
55232021-02-09 Tom de Vries <tdevries@suse.de>
5524
5525 PR symtab/27341
5526 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5527 construct an array type. Add assert to ensure that element_type is
5528 not being modified.
5529
03642b71
AB
55302021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5531
5532 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5533 (gcore_collect_regset_section_cb): Delete.
5534 (gcore_collect_thread_registers): Delete.
5535 (gcore_build_thread_register_notes): Delete.
5536 (gcore_find_signalled_thread): Delete.
5537 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5538 'gdbarch' and 'thread_info' declarations.
5539 (gcore_build_thread_register_notes): Delete declaration.
5540 (gcore_find_signalled_thread): Likewise.
5541 * fbsd-tdep.c: Remove 'gcore.h' include.
5542 (struct fbsd_collect_regset_section_cb_data): New struct.
5543 (fbsd_collect_regset_section_cb): New function.
5544 (fbsd_collect_thread_registers): New function.
5545 (struct fbsd_corefile_thread_data): New struct.
5546 (fbsd_corefile_thread): New function.
5547 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5548 * linux-tdep.c: Remove 'gcore.h' include.
5549 (struct linux_collect_regset_section_cb_data): New struct.
5550 (linux_collect_regset_section_cb): New function.
5551 (linux_collect_thread_registers): New function.
5552 (linux_corefile_thread): Call Linux specific code.
5553 (find_signalled_thread): New function.
5554 (linux_make_corefile_notes): Call find_signalled_thread.
5555
f73e424f
TT
55562021-02-09 Tom Tromey <tromey@adacore.com>
5557
5558 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5559 not_lval value.
5560 * value.c (value_contents_copy_raw): Now static.
5561 * value.h (value_contents_copy_raw): Don't declare.
5562
a4f0544b
TT
55632021-02-09 Tom Tromey <tromey@adacore.com>
5564
5565 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5566 fields.
5567
9b3e4b5d
SV
55682021-02-08 Shahab Vahedi <shahab@synopsys.com>
5569
5570 PR tdep/27369
5571 * arc-linux-tdep.c (handle_atomic_sequence): New.
5572 (arc_linux_software_single_step): Call handle_atomic_sequence().
5573
29db1eb3
AB
55742021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5575
5576 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5577 function.
5578 (REQUIRE_WINDOW): Call is_valid member function.
5579 (REQUIRE_WINDOW_FOR_SETTER): New define.
5580 (gdbpy_tui_is_valid): Call is_valid member function.
5581 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5582 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5583 tui_active too.
5584 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5585 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5586 the function.
5587
e0c23e11
AB
55882021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5589
5590 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5591 for the title is not nullptr.
5592
1cf23996
AB
55932021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5594
5595 * tui-layout.c (saved_tui_windows): Delete.
5596 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5597 call new get_windows member function instead.
5598 (tui_get_window_by_name): Check in tui_windows.
5599 (tui_layout_window::apply): Don't add to tui_windows.
5600 * tui-layout.h (tui_layout_base::get_windows): New member function.
5601 (tui_layout_window::get_windows): Likewise.
5602 (tui_layout_split::get_windows): Likewise.
5603
a53a2657
AB
56042021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5605
5606 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5607 of the window objects.
5608
2708dbbd
AB
56092021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5610
5611 * python/python.c (gdbpy_print_stack): Reformat an error message.
5612
cd074e04
AB
56132021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5614
5615 * tui/tui-interp.c (tui_command_line_handler): New function.
5616 (tui_interp::resume): Register tui_command_line_handler as the
5617 input_handler.
5618 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5619 function.
5620 (tui_getc_1): Delete handling of '\n' and '\r'.
5621 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5622
4cf28e91
HD
56232021-02-07 Hannes Domani <ssbssa@yahoo.de>
5624
5625 * tui/tui-regs.c (tui_data_window::display_registers_from):
5626 Mark invisible register sub windows.
5627 (tui_data_window::check_register_values): Ignore invisible
5628 register sub windows.
5629
3537bc23
HD
56302021-02-07 Hannes Domani <ssbssa@yahoo.de>
5631
5632 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5633 n_spaces with a negative value.
5634
5fc2d6aa
HD
56352021-02-07 Hannes Domani <ssbssa@yahoo.de>
5636
5637 * tui/tui-regs.c (tui_data_window::display_registers_from):
5638 Add refresh_window call.
5639
83962f83
HD
56402021-02-07 Hannes Domani <ssbssa@yahoo.de>
5641
5642 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5643
0110ec82
SM
56442021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5645
5646 * symmisc.c (std_in, std_out, std_err): Remove.
5647 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5648
7c6944ab
TV
56492021-02-05 Tom de Vries <tdevries@suse.de>
5650
5651 PR breakpoints/27330
5652 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5653 glibc object file has debug info.
5654
e77b0004
TV
56552021-02-05 Tom de Vries <tdevries@suse.de>
5656
5657 PR symtab/27333
5658 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5659
0e857c82
TV
56602021-02-05 Tom de Vries <tdevries@suse.de>
5661
5662 PR breakpoints/27313
5663 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5664 syscall numbers.
5665
bdfea17e
TT
56662021-02-05 Tom Tromey <tom@tromey.com>
5667
5668 * compile/compile-c-support.c (get_compile_context)
5669 (c_get_compile_context, cplus_get_compile_context): Change return
5670 type.
5671 * language.c (language_defn::get_compile_instance): New method.
5672 * language.h (language_defn::get_compile_instance): Change return
5673 type. No longer inline.
5674 * c-lang.c (c_language::get_compile_instance): Change return type.
5675 (cplus_language::get_compile_instance): Change return type.
5676 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5677 Change return type.
5678 * compile/compile.c (compile_to_object): Update.
5679
1b30f421
TT
56802021-02-05 Tom Tromey <tom@tromey.com>
5681
5682 * parser-defs.h (write_exp_symbol_reference): Declare.
5683 * parse.c (write_exp_symbol_reference): New function.
5684 * p-exp.y (variable): Use write_exp_symbol_reference.
5685 * m2-exp.y (variable): Use write_exp_symbol_reference.
5686 * f-exp.y (variable): Use write_exp_symbol_reference.
5687 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5688 * c-exp.y (variable): Use write_exp_symbol_reference.
5689
ae710496
TV
56902021-02-05 Tom de Vries <tdevries@suse.de>
5691
5692 PR exp/27265
5693 * valarith.c (complex_binop): Throw an error if complex type can't
5694 be created.
5695
d3b54e63
TV
56962021-02-05 Tom de Vries <tdevries@suse.de>
5697
5698 PR symtab/27307
5699 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5700 return.
5701
fc9a13fb
TV
57022021-02-05 Tom de Vries <tdevries@suse.de>
5703
5704 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5705
04b4939b
MF
57062021-02-04 Mike Frysinger <vapier@gentoo.org>
5707
5708 * configure.tgt (riscv*-*-*): Set gdb_sim.
5709
6ff267e1
SM
57102021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5711
5712 * target.c (target_is_non_stop_p): Return bool.
5713 * target.h (target_is_non_stop_p): Return bool.
5714
fdbc5215
SM
57152021-02-04 Simon Marchi <simon.marchi@efficios.com>
5716
5717 * record-full.c (record_full_async_inferior_event_handler):
5718 Don't clear async event handler.
5719 (record_full_base_target::wait): Clear async event handler at
5720 beginning.
5721
85d3ad8e
SM
57222021-02-04 Simon Marchi <simon.marchi@efficios.com>
5723
5724 * record-btrace.c (record_btrace_handle_async_inferior_event):
5725 Don't clear async event handler.
5726 (record_btrace_target::wait): Clear async event handler at
5727 beginning.
5728
baa8575b
SM
57292021-02-04 Simon Marchi <simon.marchi@efficios.com>
5730
5731 * remote.c (remote_target::wait): Clear async event handler at
5732 beginning, mark if needed at the end.
5733 (remote_async_inferior_event_handler): Don't set or clear async
5734 event handler.
5735
6b36ddeb
SM
57362021-02-04 Simon Marchi <simon.marchi@efficios.com>
5737
5738 * async-event.h (async_event_handler_func): Add documentation.
5739 * async-event.c (check_async_event_handlers): Don't clear
5740 async_event_handler ready flag.
5741 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5742 flag.
5743 * record-btrace.c (record_btrace_handle_async_inferior_event):
5744 Likewise.
5745 * record-full.c (record_full_async_inferior_event_handler):
5746 Likewise.
5747 * remote-notif.c (remote_async_get_pending_events_handler):
5748 Likewise.
5749 * remote.c (remote_async_inferior_event_handler): Likewise.
5750
72d383bb
SM
57512021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5752
5753 * infrun.c (handle_inferior_event): Move stop_soon variable to
5754 inner scope.
5755
408f6686
PA
57562021-02-03 Pedro Alves <pedro@palves.net>
5757
5758 * infcmd.c (detach_command): Hold strong reference to target, and
5759 if all-stop on entry, restart threads on exit.
5760 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5761 (restart_stepped_thread): ... this new function. Also handle
5762 trap_expected.
5763 (restart_after_all_stop_detach): New function.
5764 * infrun.h (restart_after_all_stop_detach): Declare.
5765
ac7d717c
PA
57662021-02-03 Pedro Alves <pedro@palves.net>
5767
5768 * infrun.c (struct step_over_info): Initialize fields.
5769 (prepare_for_detach): Handle ongoing in-line step over.
5770
e87f0fe8
PA
57712021-02-03 Pedro Alves <pedro@palves.net>
5772
5773 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5774 here...
5775 * remote.c (remote_target::remote_detach_1): ... and here ...
5776 * target.c (target_detach): ... instead of here.
5777 * target.h (target_ops::detach): Add comment.
5778
8ff53139
PA
57792021-02-03 Pedro Alves <pedro@palves.net>
5780
5781 * infrun.c (struct wait_one_event): Move higher up.
5782 (prepare_for_detach): Abort in-progress displaced steps instead of
5783 letting them complete.
5784 (handle_one): If the inferior is detaching, don't add the thread
5785 back to the global step-over chain.
5786 (restart_threads): Don't restart threads if detaching.
5787 (handle_signal_stop): Remove inferior::detaching reference.
5788
91475068
PA
57892021-02-03 Pedro Alves <pedro@palves.net>
5790
5791 * infrun.c (prepare_for_detach): Don't release scoped_restore
5792 before returning.
5793
d758e62c
PA
57942021-02-03 Pedro Alves <pedro@palves.net>
5795
5796 * infrun.c (handle_one): New function, factored out from ...
5797 (stop_all_threads): ... here.
5798
b0083dd7
PA
57992021-02-03 Pedro Alves <pedro@palves.net>
5800
5801 * remote.c (remote_notif_stop_ack): Don't error out on
5802 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5803 (remote_target::discard_pending_stop_replies): Don't delete
5804 in-flight notification; instead, clear its contents.
5805
621cc310
PA
58062021-02-03 Pedro Alves <pedro@palves.net>
5807
5808 * remote.c (extended_remote_target::attach): Set target async in
5809 the target-non-stop path too.
5810
2ab76a18
PA
58112021-02-03 Pedro Alves <pedro@palves.net>
5812
5813 PR gdb/27055
5814 * infrun.c (handle_signal_stop): Move main context_switch call
5815 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5816
2e3773ff
LS
58172021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5818
5819 * NEWS (Changed commands): Add entry for the behavior change of
5820 the inferior command.
5821 * inferior.c (inferior_command): When no argument is given to the
5822 inferior command, display info about the currently selected
5823 inferior.
5824
e57933dc
SM
58252021-02-02 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5828 a sect_offset.
5829 (read_attribute_reprocess): Adjust.
5830
2b0c7f41
SM
58312021-02-02 Simon Marchi <simon.marchi@efficios.com>
5832
5833 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5834 <gnu_ranges_base>: ... this...
5835 <rnglists_base>: ... and this.
5836 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5837 <gnu_ranges_base>: ... this...
5838 <rnglists_base>: ... and this.
5839 (read_cutu_die_from_dwo): Adjust
5840 (dwarf2_get_pc_bounds): Adjust
5841 (dwarf2_record_block_ranges): Adjust.
5842 (read_full_die_1): Adjust
5843 (partial_die_info::read): Adjust.
5844 (read_rnglist_index): Adjust.
5845
a1c40103
SM
58462021-02-02 Simon Marchi <simon.marchi@efficios.com>
5847
5848 PR gdb/26813
5849 * dwarf2/read.c (read_loclists_rnglists_header): Add
5850 header_offset parameter and use it.
5851 (read_loclist_index): Read header of the current contribution,
5852 not the one at the beginning of the section.
5853 (read_rnglist_index): Likewise.
5854
b1829e1b
SM
58552021-02-02 Simon Marchi <simon.marchi@efficios.com>
5856
5857 PR gdb/26813
5858 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5859 requires_reprocessing flag.
5860 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5861 DW_FORM_loclistx.
5862 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5863 and DW_FORM_loclistx.
5864 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5865 instead of set_address for DW_FORM_loclistx and
5866 DW_FORM_rnglistx.
5867
0c800c6e
SM
58682021-02-02 Simon Marchi <simon.marchi@efficios.com>
5869
5870 * dwarf2/read.c (read_loclist_index): Remove bound check for
5871 start of offset.
5872 (read_rnglist_index): Likewise.
5873
05787bad
SM
58742021-02-02 Simon Marchi <simon.marchi@efficios.com>
5875
5876 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5877 of the offset.
5878
5e4d9bbc
SM
58792021-02-02 Simon Marchi <simon.marchi@efficios.com>
5880
5881 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5882
a0c1eeba
SM
58832021-02-02 Simon Marchi <simon.marchi@efficios.com>
5884
5885 * dwarf2/read.c (read_loclist_index): Change complaints into
5886 errors.
5887
2bd3e4b8
TV
58882021-02-02 Tom de Vries <tdevries@suse.de>
5889
5890 PR symtab/24620
5891 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5892 psymtab == nullptr.
5893
82a1fd3a
AB
58942021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5895
5896 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5897 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5898 here from linux-tdep.c and given a new name. Minor cleanups.
5899 (gcore_collect_regset_section_cb): Likewise.
5900 (gcore_collect_thread_registers): Likewise.
5901 (gcore_build_thread_register_notes): Likewise.
5902 (gcore_find_signalled_thread): Likewise.
5903 * gcore.h (gcore_build_thread_register_notes): Declare.
5904 (gcore_find_signalled_thread): Declare.
5905 * fbsd-tdep.c: Add 'gcore.h' include.
5906 (struct fbsd_collect_regset_section_cb_data): Delete.
5907 (fbsd_collect_regset_section_cb): Delete.
5908 (fbsd_collect_thread_registers): Delete.
5909 (struct fbsd_corefile_thread_data): Delete.
5910 (fbsd_corefile_thread): Delete.
5911 (fbsd_make_corefile_notes): Call
5912 gcore_build_thread_register_notes instead of the now deleted
5913 FreeBSD code.
5914 * linux-tdep.c: Add 'gcore.h' include.
5915 (struct linux_collect_regset_section_cb_data): Delete.
5916 (linux_collect_regset_section_cb): Delete.
5917 (linux_collect_thread_registers): Delete.
5918 (linux_corefile_thread): Call
5919 gcore_build_thread_register_notes.
5920 (find_signalled_thread): Delete.
5921 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5922
ebde6f2d
TV
59232021-01-29 Tom de Vries <tdevries@suse.de>
5924
5925 PR breakpoints/26063
5926 * infrun.c (process_event_stop_test): Reset
5927 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5928 changed.
5929
0f93c3a2
AB
59302021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5931
5932 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5933 assert. Extend the header comment.
5934
f237f998
AB
59352021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5936
5937 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5938 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5939 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5940 (tui_locator_win_info_ptr): Delete declaration.
5941 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5942 (tui_disasm_window::set_contents): Fetch state from tui_location
5943 global.
5944 (tui_get_begin_asm_address): Likewise.
5945 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5946 for locator window.
5947 (get_locator_window): Delete.
5948 (initialize_known_windows): Treat locator window just like all the
5949 rest.
5950 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5951 (tui_source_window::set_contents): Fetch state from tui_location
5952 global.
5953 (tui_source_window::showing_source_p): Likewise.
5954 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5955 (_locator): Delete.
5956 (tui_locator_win_info_ptr): Delete.
5957 (tui_locator_window::make_status_line): Fetch state from
5958 tui_location global.
5959 (tui_locator_window::rerender): Remove check of 'handle',
5960 reindent function body.
5961 (tui_locator_window::set_locator_fullname): Delete.
5962 (tui_locator_window::set_locator_info): Delete.
5963 (tui_update_locator_fullname): Delete.
5964 (tui_show_frame_info): Likewise.
5965 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5966 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5967 tui/tui-location.h and renamed to
5968 tui_location_tracker::set_location.
5969 (tui_locator_window::set_locator_fullname): Moved to
5970 tui/tui-location.h and renamed to
5971 tui_location_tracker::set_fullname.
5972 (tui_locator_window::full_name): Delete.
5973 (tui_locator_window::proc_name): Delete.
5974 (tui_locator_window::line_no): Delete.
5975 (tui_locator_window::addr): Delete.
5976 (tui_locator_window::gdbarch): Delete.
5977 (tui_update_locator_fullname): Delete declaration.
5978 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5979 for locator window.
5980 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5981 (tui_display_main): Call function on tui_location directly.
5982 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5983 * tui/tui-location.c: New file.
5984 * tui/tui-location.h: New file.
5985
8ee511af
SM
59862021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * gdbtypes.h (get_type_arch): Rename to...
5989 (struct type) <arch>: ... this, update all users.
5990
6ac37371
SM
59912021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5992
5993 * gdbtypes.h (struct type) <arch>: Rename to...
5994 <arch_owner>: ... this, update all users.
5995 <objfile>: Rename to...
5996 <objfile_owner>: ... this, update all users.
5997
24cf6389
AB
59982021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5999
6000 * gdbcmd.h (execute_command_to_string): Update comment.
6001 * top.c (execute_command_to_string): Update header comment.
6002
2a7f6487
TV
60032021-01-28 Tom de Vries <tdevries@suse.de>
6004
6005 PR breakpoints/27205
6006 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6007 (create_longjmp_master_breakpoint_names): New function, factored out
6008 of ...
6009 (create_longjmp_master_breakpoint): ... here. Only try to install
6010 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6011 breakpoint in libc.so failed.
6012
59b59f08
LS
60132021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6014
6015 PR gdb/27133
6016 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6017 unique_ptr is released when the wrapped pointer is kept for later
6018 use.
6019
807f647c
MM
60202021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6021
6022 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6023 BLR and BR instructions.
6024 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6025 (enum aarch64_masks): New.
6026
4ef367bf
TT
60272021-01-26 Tom Tromey <tromey@adacore.com>
6028
6029 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6030 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6031 (windows_init_thread_list, windows_nat::handle_load_dll)
6032 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6033 (windows_nat_target::resume)
6034 (windows_nat_target::get_windows_debug_event)
6035 (windows_nat_target::interrupt, windows_xfer_memory)
6036 (windows_nat_target::close): Update.
6037 * nat/windows-nat.c (DEBUG_EVENTS): Use
6038 debug_prefixed_printf_cond.
6039 (matching_pending_stop, fetch_pending_stop)
6040 (continue_last_debug_event): Update.
6041
4cb1265b
MS
60422020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6043
6044 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6045 elfcore_write_file_note.
6046
d0cc52bd
SV
60472021-01-26 Shahab Vahedi <shahab@synopsys.com>
6048
6049 * arc-tdep.c (arc_add_reggroups): New function.
6050 (arc_gdbarch_init): Call arc_add_reggroups.
6051
ac3571d9 60522021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6053
6054 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6055
9f6c202e
TV
60562021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6057 Simon Marchi <simon.marchi@polymtl.ca>
6058 Tom de Vries <tdevries@suse.de>
6059
6060 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6061 DW_AT_ranges.
6062
a625a8c9
TT
60632021-01-25 Tom Tromey <tromey@adacore.com>
6064
6065 * dwarf2/read.c (get_mpz): New function.
6066 (get_dwarf2_rational_constant): Use it.
6067
19184910
TT
60682021-01-25 Tom Tromey <tromey@adacore.com>
6069
6070 * ada-lang.c (resolve_subexp): Handle array context.
6071
b10bae18
TT
60722021-01-23 Tom Tromey <tom@tromey.com>
6073
6074 PR compile/25575
6075 * compile/compile-loc2c.c (note_register): New function.
6076 (pushf_register_address, pushf_register): Use it.
6077
3637a558
TT
60782021-01-23 Tom Tromey <tom@tromey.com>
6079
6080 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6081 Change type of "registers_used".
6082 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6083 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6084 (locexpr_generate_c_location, loclist_generate_c_location): Change
6085 type of "registers_used".
6086 * compile/compile.h (compile_dwarf_expr_to_c)
6087 (compile_dwarf_bounds_to_c): Update.
6088 * compile/compile-loc2c.c (pushf_register_address)
6089 (pushf_register, do_compile_dwarf_expr_to_c)
6090 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6091 of "registers_used".
6092 * compile/compile-c.h (generate_c_for_variable_locations):
6093 Update.
6094 * compile/compile-c-symbols.c (generate_vla_size)
6095 (generate_c_for_for_one_variable): Change type of
6096 "registers_used".
6097 (generate_c_for_variable_locations): Return std::vector.
6098 * compile/compile-c-support.c (generate_register_struct): Change
6099 type of "registers_used".
6100 (compute): Update.
6101
9f7f6cb8
TT
61022021-01-23 Tom Tromey <tom@tromey.com>
6103
6104 * compile/compile-internal.h (class compile_instance)
6105 <set_arguments>: Change return type.
6106 * compile/compile.c (compile_to_object): Remove call to reset.
6107 (compile_instance::set_arguments): Change return type.
6108
dd5ca05f
SM
61092021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6110
6111 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6112 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6113
d3ee35db
LS
61142021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6115
6116 * Makefile.in (SELFTESTS_SRCS): Add
6117 unittests/gdb_tilde_expand-selftests.c.
6118 * unittests/gdb_tilde_expand-selftests.c: New file.
6119
9d2d8a16
AB
61202021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6121
6122 PR cli/25956
6123 * NEWS: Mention new command.
6124 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6125 (version_style): Define.
6126 (cli_style_option::cli_style_option): Add intensity parameter, and
6127 use as appropriate.
6128 (_initialize_cli_style): Register version style set/show commands.
6129 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6130 (version_style): Declare.
6131 * top.c (print_gdb_version): Use version_stype, and styled_string
6132 to print the GDB version string.
6133
e7b43072
AB
61342021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6135
6136 * utils.c (emit_style_escape): Only emit an escape sequence if the
6137 requested style is different than the current applied style.
6138 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6139 current applied_style.
6140 (fputs_styled): Remove is_default check.
6141 (fputs_styled_unfiltered): Likewise.
6142 (vfprintf_styled_no_gdbfmt): Likewise.
6143
2189c312
SM
61442021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6145
6146 * remote.h (remote_debug_printf): New.
6147 (remote_debug_printf_nofunc): New.
6148 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6149 * remote.c: Use above macros throughout file.
6150
02349803
SM
61512021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6152
6153 * remote.h (remote_debug): Change to bool.
6154 * remote.c (remote_debug): Change to bool.
6155 (_initialize_remote): Adjust.
6156
cda09ec9
SM
61572021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * target.h (remote_debug): Move to...
6160 * remote.h (remote_debug): ... here.
6161 * top.c (remote_debug): Move to...
6162 * remote.c (remote_debug): ... here.
6163 * remote-sim.c: Include remote.h.
6164
baf2b57f
SM
61652021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * cli/cli-cmds.c (show_remote_debug): Remove.
6168 (show_remote_timeout): Remove.
6169 (_initialize_cli_cmds): Don't register commands.
6170 * remote.c (show_remote_debug): Move here.
6171 (show_remote_timeout): Move here.
6172 (_initialize_remote): Register commands.
6173
344e9841
SM
61742021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6175
6176 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6177 type::objfile method instead.
6178
30625020
SM
61792021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6182 use the type::is_objfile_owned method.
6183
5b7d941b
SM
61842021-01-22 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6187 (TYPE_OWNER): Remove.
6188 (TYPE_OBJFILE): Adjust.
6189 (struct main_type) <flag_objfile_owned>: Rename to...
6190 <m_flag_objfile_owned>: ... this.
6191 <owner>: Rename to...
6192 <m_owner>: ... this.
6193 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6194 methods.
6195 (TYPE_ALLOC): Adjust.
6196 * gdbtypes.c (alloc_type): Adjust.
6197 (alloc_type_arch): Adjust.
6198 (alloc_type_copy): Adjust.
6199 (get_type_arch): Adjust.
6200 (smash_type): Adjust.
6201 (lookup_array_range_type): Adjust.
6202 (recursive_dump_type): Adjust.
6203 (copy_type_recursive): Adjust.
6204 * compile/compile-c-types.c (convert_func): Adjust.
6205 (convert_type_basic): Adjust.
6206 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6207 Adjust.
6208 * language.c
6209 (language_arch_info::type_and_symbol::alloc_type_symbol):
6210 Adjust.
6211
d5d24e12
LM
62122021-01-21 Luis Machado <luis.machado@linaro.org>
6213
6214 * coffread.c (enter_linenos): Passing string to complaint.
6215 * valops.c (value_assign): Make array view.
6216
a59902a7
SM
62172021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6218
6219 * auto-load.h (debug_auto_load): Move here.
6220 (auto_load_debug_printf): New.
6221 * auto-load.c: Use auto_load_debug_printf.
6222 (debug_auto_load): Move to header.
6223 * linux-thread-db.c (try_thread_db_load): Use
6224 auto_load_debug_printf.
6225 * main.c (captured_main_1): Likewise.
6226
d3abc0ce
SM
62272021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6228
6229 * f-valprint.c (f77_array_offset_tbl): Remove.
6230
1e15fcac
SM
62312021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6232
6233 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6234
439706e6
SM
62352021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6236
6237 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6238 of gdb_select.
6239
325d39e4
HD
62402021-01-21 Hannes Domani <ssbssa@yahoo.de>
6241
6242 PR python/19151
6243 * python/py-breakpoint.c (bppy_get_location): Handle
6244 bp_hardware_breakpoint.
6245 (bppy_init): Likewise.
6246 (gdbpy_breakpoint_created): Likewise.
6247
7cb6d92a
SM
62482021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6249
6250 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6251
d4dd4fca
SM
62522021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6253
6254 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6255 (_initialize_gdb_bfd): Adjust.
6256
de53369b
SM
62572021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6258
6259 PR gdb/26828
6260 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6261
17e593e9
SM
62622021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6263
6264 * dwarf2/read.c (follow_die_offset): Add logging.
6265 (dwarf2_per_objfile::age_comp_units): Add logging.
6266
6bd434d6
SM
62672021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6270 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6271 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6272 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6273 * arm-tdep.c (struct frame_unwind): Make static.
6274 * auto-load.c (auto_load_safe_path_vec): Make static.
6275 * csky-tdep.c (csky_stub_unwind): Make static.
6276 * gdbarch.c (gdbarch_data_registry): Make static.
6277 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6278 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6279 * i386-tdep.c (i386_frame_setup_skip_insns,
6280 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6281 Make static.
6282 * infrun.c (observer_mode): Make static.
6283 * linux-nat.c (sigchld_action): Make static.
6284 * linux-thread-db.c (thread_db_list): Make static.
6285 * maint-test-options.c (maintenance_test_options_list):
6286 * mep-tdep.c (mep_csr_registers): Make static.
6287 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6288 (stats): Make static.
6289 * nat/linux-osdata.c (struct osdata_type): Make static.
6290 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6291 * progspace.c (last_program_space_num): Make static.
6292 * python/py-param.c (struct parm_constant): Remove struct type
6293 name.
6294 (parm_constants): Make static.
6295 * python/py-record-btrace.c (btpy_list_methods): Make static.
6296 * python/py-record.c (recpy_gap_type): Make static.
6297 * record.c (record_goto_cmdlist): Make static.
6298 * regcache.c (regcache_descr_handle): Make static.
6299 * registry.h (DEFINE_REGISTRY): Make definition static.
6300 * symmisc.c (std_in, std_out, std_err): Make static.
6301 * top.c (previous_saved_command_line): Make static.
6302 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6303 static.
6304 * unittests/command-def-selftests.c (nr_duplicates,
6305 nr_invalid_prefixcmd, lists): Make static.
6306 * unittests/observable-selftests.c (test_notification): Make
6307 static.
6308 * unittests/optional/assignment/1.cc (counter): Make static.
6309 * unittests/optional/assignment/2.cc (counter): Make static.
6310 * unittests/optional/assignment/3.cc (counter): Make static.
6311 * unittests/optional/assignment/4.cc (counter): Make static.
6312 * unittests/optional/assignment/5.cc (counter): Make static.
6313 * unittests/optional/assignment/6.cc (counter): Make static.
6314
a6c11cbb
JS
63152021-01-20 Joel Sherrill <joel@rtems.org>
6316
6317 PR gdb/27219
6318 * remote.c (struct remote_thread_info) <resume_state>: Rename
6319 to...
6320 <get_resume_state>: ... this.
6321 (remote_target::resume): Adjust.
6322 (remote_target::commit_resume): Adjust.
6323 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6324
6f52fdf4
SDJ
63252021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6326 Tom Tromey <tom@tromey.com>
6327
6328 * stap-probe.c (stap_parse_single_operand): Handle '!'
6329 operator.
6330 (stap_parse_argument_conditionally): Likewise.
6331 Skip spaces after processing open-parenthesis sub-expression.
6332 (stap_parse_argument_1): Skip spaces after call to
6333 stap_parse_argument_conditionally.
6334 Handle case when right-side expression is a parenthesized
6335 sub-expression.
6336 Skip spaces after call to stap_parse_argument_1.
6337
1c3b85ad
LS
63382021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6339
6340 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6341
a9a87d35
LM
63422021-01-19 Luis Machado <luis.machado@linaro.org>
6343
6344 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6345 memory and save data.
6346 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6347 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6348 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6349 (trad_frame_value_bytes_p): Remove.
6350 (trad_frame_reset_saved_regs): Adjust documentation.
6351 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6352 constructor and reset the state of the registers.
6353 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6354 (trad_frame_value_bytes_p, trad_frame_set_value)
6355 (trad_frame_set_realreg, trad_frame_set_addr)
6356 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6357 (trad_frame_set_reg_realreg): Update to call member function.
6358 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6359 (trad_frame_get_prev_register): Likewise.
6360
6361 * aarch64-tdep.c (aarch64_analyze_prologue)
6362 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6363 (aarch64_prologue_prev_register): Update to use member functions.
6364 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6365 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6366 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6367 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6368 (arm_make_epilogue_frame_cache): Likewise.
6369 * avr-tdep.c (avr_frame_unwind_cache)
6370 (avr_frame_prev_register): Likewise.
6371 * cris-tdep.c (cris_scan_prologue): Likewise.
6372 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6373 * frv-tdep.c (frv_analyze_prologue): Likewise.
6374 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6375 * lm32-tdep.c (lm32_frame_cache): Likewise.
6376 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6377 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6378 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6379 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6380 (reset_saved_regs): Adjust to set realreg.
6381 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6382 call member functions.
6383 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6384 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6385 (s390_backchain_frame_unwind_cache): Likewise.
6386 * score-tdep.c (score7_analyze_prologue)
6387 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6388 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6389 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6390 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6391 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6392 * tilegx-tdep.c (tilegx_analyze_prologue)
6393 (tilegx_frame_cache): Likewise.
6394 * v850-tdep.c (v850_frame_cache): Likewise.
6395 * vax-tdep.c (vax_frame_cache): Likewise.
6396
bdec2917
LM
63972021-01-19 Luis Machado <luis.machado@linaro.org>
6398
6399 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6400 of buffer + length.
6401 (put_frame_register_bytes): Likewise.
6402 Adjust documentation.
6403 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6404 (safe_frame_unwind_memory): Likewise.
6405 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6406 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6407 gdb::array_view.
6408 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6409 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6410 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6411 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6412 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6413 * dwarf2/loc.c (rw_pieced_value): Likewise.
6414 * hppa-tdep.c (hppa_frame_cache): Likewise.
6415 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6416 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6417 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6418 (i386_linux_rt_sigtramp_start): Likewise.
6419 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6420 * i386-tdep.c (i386_register_to_value): Likewise.
6421 * i387-tdep.c (i387_register_to_value): Likewise.
6422 * ia64-tdep.c (ia64_register_to_value): Likewise.
6423 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6424 (m32r_linux_rt_sigtramp_start): Likewise.
6425 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6426 * m68k-tdep.c (m68k_register_to_value): Likewise.
6427 * mips-tdep.c (mips_register_to_value)
6428 (mips_value_to_register): Likewise.
6429 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6430 (ppcfbsd_sigtramp_frame_cache): Likewise.
6431 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6432 (ppcobsd_sigtramp_frame_cache): Likewise.
6433 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6434 (rs6000_register_to_value): Likewise.
6435 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6436 * tramp-frame.c (tramp_frame_start): Likewise.
6437 * valops.c (value_assign): Likewise.
6438
ccbe4c82
LM
64392021-01-19 Luis Machado <luis.machado@linaro.org>
6440
6441 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6442 array_view.
6443 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6444 instead of buffer and size.
6445 (trad_frame_set_reg_value_bytes): Likewise.
6446 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6447 (trad_frame_set_value_bytes): Likewise.
6448
0e7620dc
MF
64492021-01-18 Mike Frysinger <vapier@gentoo.org>
6450
6451 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6452
6a9ad81c
AB
64532021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6454
6455 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6456 (riscv_fbsd_gregset): Use riscv_supply_regset.
6457 (riscv_fbsd_fpregset): Likewise.
6458 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6459 (riscv_linux_fregset): Likewise.
6460 * riscv-tdep.c (riscv_supply_regset): Define new function.
6461 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6462
d3d7d1ba
TV
64632021-01-18 Tom de Vries <tdevries@suse.de>
6464
6465 PR tdep/27172
6466 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6467 New macro.
6468 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6469 for SEGV_BNDERR.
6470
aa2838cc
SM
64712021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6472
6473 * remote.c (class remote_target) <remote_hostio_send_command,
6474 remote_hostio_parse_result>: Constify parameter.
6475 (remote_hostio_parse_result): Likewise.
6476 (remote_target::remote_hostio_send_command): Adjust.
6477 (remote_target::remote_hostio_pread_vFile): Adjust.
6478 (remote_target::fileio_readlink): Adjust.
6479 (remote_target::fileio_fstat): Adjust.
6480
b5c8f22d
SM
64812021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6482
6483 * remote.c (remote_target::start_remote): Move wait_status to
6484 narrower scope.
6485
e3b2741b
SM
64862021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6487
6488 * remote.c (class remote_target):
6489 <add_current_inferior_and_thread>: Constify parameter.
6490 (stop_reply_extract_thread): Likewise.
6491 (remote_target::get_current_thread): Likewise.
6492 (remote_target::add_current_inferior_and_thread): Likewise.
6493
cecb1912
SM
64942021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6495
6496 * remote.c (class remote_target)
6497 <remote_unpack_thread_info_response,
6498 parse_threadlist_response>: Constify parameter and/or return
6499 value and or local variable.
6500 (stub_unpack_int): Likewise.
6501 (unpack_nibble): Likewise.
6502 (unpack_byte): Likewise.
6503 (unpack_int): Likewise.
6504 (unpack_string): Likewise.
6505 (unpack_threadid): Likewise.
6506 (remote_target::remote_unpack_thread_info_response): Likewise.
6507 (remote_target::parse_threadlist_response): Likewise.
6508
5a11fff0
AB
65092021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6512
17e89137
LS
65132021-01-14 Lancelot Six <lsix@lancelotsix.com>
6514
6515 * MAINTAINERS (Write After Approval): Add myself.
6516
58eadc4b
BE
65172021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6518
6519 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6520 because is_trivially_default_constructible was first implemented with
6521 gcc-5.
6522
5fae2a2c
TV
65232021-01-14 Tom de Vries <tdevries@suse.de>
6524
6525 PR breakpoints/27151
6526 * objfiles.h (in_plt_section): Handle .plt.sec.
6527
8f66807b
AB
65282021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6529
6530 PR gdb/26819
6531 * remote.c
6532 (remote_target::select_thread_for_ambiguous_stop_reply): New
6533 member function.
6534 (remote_target::process_stop_reply): Call
6535 select_thread_for_ambiguous_stop_reply.
6536
bd497355
SM
65372021-01-13 Simon Marchi <simon.marchi@efficios.com>
6538
6539 * record-btrace.c (class record_btrace_target): Remove.
6540 (record_btrace_target::commit_resume): Remove.
6541 * record-full.c (class record_full_target): Remove.
6542 (record_full_target::commit_resume): Remove.
6543
c9d22089
SM
65442021-01-13 Simon Marchi <simon.marchi@efficios.com>
6545
6546 * remote.c (enum class resume_state): New.
6547 (struct resumed_pending_vcont_info): New.
6548 (struct remote_thread_info) <resume_state, set_not_resumed,
6549 set_resumed_pending_vcont, resumed_pending_vcont_info,
6550 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6551 New.
6552 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6553 (remote_target::remote_add_thread): Adjust.
6554 (remote_target::process_initial_stop_replies): Adjust.
6555 (remote_target::resume): Adjust.
6556 (remote_target::commit_resume): Rely on state in
6557 remote_thread_info and not on tp->executing.
6558 (remote_target::process_stop_reply): Adjust.
6559
d8d1feb4
SM
65602021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6561
6562 * arc-tdep.h (arc_debug_printf): New.
6563 * arc-tdep.c: Use arc_debug_printf.
6564 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6565 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6566 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6567
fb0f5031
SM
65682021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6569
6570 * arc-tdep.h (arc_debug): Change type to bool.
6571 * arc-tdep.c (arc_debug): Change type to bool.
6572 (arc_analyze_prologue): Adjust.
6573 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6574 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6575
5bf7e91b
SM
65762021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6577
6578 * auto-load.c (auto_load_objfile_script_1): Use bool.
6579 (execute_script_contents): Use bool.
6580
db972fce
SM
65812021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6582
6583 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6584 comment here.
6585 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6586 comment to header.
6587 * extension-priv.h (struct extension_language_script_ops)
6588 <auto_load_enabled>: Return bool.
6589 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6590 comment here.
6591 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6592 comment to header.
6593 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6594 move comment here.
6595 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6596 move comment to header.
6597 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6598 move comment here.
6599 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6600 move comment to header.
6601
5e12f48f
SM
66022021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6603
6604 * auto-load.h (file_is_auto_load_safe): Change return type to
6605 bool, move comment here.
6606 * auto-load.c (file_is_auto_load_safe): Change return type and
6607 advice_printed to bool. Move comment to header.
6608
54ca9002
SM
66092021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6610
6611 * jit.c (jit_debug_printf): New, use throughout file.
6612
24a7f1b5
SM
66132021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6614
6615 * infrun.c (normal_stop): Fix indentation.
6616
fe7a351a
SM
66172021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6618
6619 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6620 declarations to ...
6621 * symfile.h: ... here.
6622 * symfile.c: Update doc.
6623
16e9019e
SM
66242021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6625
6626 * target.h (baud_rate, serial_parity): Move declarations...
6627 * serial.h: ... here.
6628 * main.c: Include serial.h.
6629 * serial.c (baud_rate, serial_parity): Update doc.
6630
b2f2ae0d
SM
66312021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6632
6633 * top.c (pre_init_ui_hook): Remove.
6634
5291fe3c
SP
66352021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6636
6637 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6638 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6639 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6640 * features/aarch64-fpu.xml: Add bfloat16 type.
6641
ce38f5ed
AB
66422021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6643
6644 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6645
7c654b71
AB
66462021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 * f-exp.y (dot_ops): Rename to...
6649 (fortran_operators): ...this. Add a header comment. Add symbol
6650 based operators.
6651 (yylex): Update to use fortran_operators not dot_ops. Remove
6652 special handling for '**', this is now included in
6653 fortran_operators.
6654
c6185dce
SM
66552021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6656
6657 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6658 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6659 * aarch64-tdep.c: Use aarch64_debug_printf.
6660
eef401dc
SM
66612021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6662
6663 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6664 file.
6665
062eaacb
SM
66662021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6667
6668 * jit.c (jit_debug): Change type to bool.
6669 (_initialize_jit): Adjust.
6670
54585eee
TT
66712021-01-09 Tom Tromey <tom@tromey.com>
6672
6673 PR compile/23672
6674 * compile/compile.c (compile_to_object): Avoid crash when
6675 osabi_triplet_regexp returns NULL.
6676
bc167b6b
TT
66772021-01-09 Tom Tromey <tom@tromey.com>
6678
6679 * tracepoint.h (class collection_list) <append_exp>: Take a
6680 std::string.
6681 * tracepoint.c (collection_list::append_exp): Take a std::string.
6682 (encode_actions_1): Update.
6683
8fc48b79
TT
66842021-01-08 Tom Tromey <tromey@adacore.com>
6685
6686 * parse.c (parse_expression): Add void_context_p parameter. Use
6687 parse_exp_in_context.
6688 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6689 parse_expression.
6690 (print_command, call_command): Update.
6691 * expression.h (parse_expression): Add void_context_p parameter.
6692
3c8c6de2
AB
66932021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6694
6695 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6696 for internalvar components that have a dynamic location.
6697
1940319c
TV
66982021-01-08 Tom de Vries <tdevries@suse.de>
6699
6700 PR gdb/26881
6701 * breakpoint.c (create_exception_master_breakpoint_probe)
6702 (create_exception_master_breakpoint_hook): Factor out
6703 of ...
6704 (create_exception_master_breakpoint): ... here. Only try to install
6705 the master exception breakpoint in objfile.debug using the
6706 _Unwind_DebugHook method, if the install using probes in objfile
6707 failed.
6708
e3436813
AB
67092021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6710
6711 * f-lang.c (fortran_value_subarray): Call value_from_component.
6712
e904f56d
MF
67132021-01-07 Mike Frysinger <vapier@gentoo.org>
6714
6715 * remote-sim.c: Include memory-map.h.
6716 (gdbsim_target): Define memory_map override.
6717 (gdbsim_target::memory_map): Define.
6718
959d6a67
TT
67192021-01-07 Tom Tromey <tromey@adacore.com>
6720
6721 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6722
d4813f10
TT
67232021-01-07 Tom Tromey <tromey@adacore.com>
6724
6725 * ada-lang.c (add_component_interval): Start loop using vector's
6726 updated size.
6727
b49180ac
TT
67282021-01-06 Tom Tromey <tromey@adacore.com>
6729
6730 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6731 Do not cast result.
6732 * valarith.c (fixed_point_binop): Handle multiplication
6733 and division specially.
6734 * valops.c (value_to_gdb_mpq): New function.
6735 (value_cast_to_fixed_point): Use it.
6736
55195361
HD
67372021-01-05 Hannes Domani <ssbssa@yahoo.de>
6738
6739 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6740 Call wnoutrefresh instead of tui_win_info::refresh_window.
6741
1b6d4bb2
HD
67422021-01-05 Hannes Domani <ssbssa@yahoo.de>
6743
6744 * tui/tui-source.c (tui_source_window::show_line_number):
6745 Redraw second space after line number.
6746
b5ff370e
HD
67472021-01-05 Hannes Domani <ssbssa@yahoo.de>
6748
6749 PR tui/26927
6750 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6751 Fix source pad size in prefresh.
6752 (tui_source_window_base::show_source_content): Grow source pad
6753 if necessary.
6754
c68ea49f
MF
67552021-01-04 Mike Frysinger <vapier@gentoo.org>
6756
6757 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6758 (bfin_frame_align): Use align_down.
6759
e4ad960a
TV
67602021-01-04 Tom de Vries <tdevries@suse.de>
6761
6762 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6763 terminators that do not terminate anything.
6764
3ec3145c
SM
67652021-01-04 Simon Marchi <simon.marchi@efficios.com>
6766
6767 * debug.c (debug_print_depth): New.
6768 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6769 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6770 * infrun.c (start_step_over): Use
6771 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6772 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6773 INFRUN_SCOPED_DEBUG_START_END.
6774 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6775
e71daf80
SM
67762021-01-04 Simon Marchi <simon.marchi@efficios.com>
6777
6778 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6779
335709bc
SM
67802021-01-04 Simon Marchi <simon.marchi@efficios.com>
6781
6782 * utils.c (vfprintf_unfiltered): Print timestamp only when
6783 previous debug output ended with a newline.
6784
098caef4
LM
67852021-01-04 Luis Machado <luis.machado@linaro.org>
6786
6787 Update all users of trad_frame_saved_reg to use the new member
6788 functions.
6789
6790 Remote all struct keywords from declarations of trad_frame_saved_reg
6791 types, except on forward declarations.
6792
6793 * aarch64-tdep.c: Update.
6794 * alpha-mdebug-tdep.c: Update.
6795 * alpha-tdep.c: Update.
6796 * arc-tdep.c: Update.
6797 * arm-tdep.c: Update.
6798 * avr-tdep.c: Update.
6799 * cris-tdep.c: Update.
6800 * csky-tdep.c: Update.
6801 * frv-tdep.c: Update.
6802 * hppa-linux-tdep.c: Update.
6803 * hppa-tdep.c: Update.
6804 * hppa-tdep.h: Update.
6805 * lm32-tdep.c: Update.
6806 * m32r-linux-tdep.c: Update.
6807 * m32r-tdep.c: Update.
6808 * m68hc11-tdep.c: Update.
6809 * mips-tdep.c: Update.
6810 * moxie-tdep.c: Update.
6811 * riscv-tdep.c: Update.
6812 * rs6000-tdep.c: Update.
6813 * s390-linux-tdep.c: Update.
6814 * s390-tdep.c: Update.
6815 * score-tdep.c: Update.
6816 * sparc-netbsd-tdep.c: Update.
6817 * sparc-sol2-tdep.c: Update.
6818 * sparc64-fbsd-tdep.c: Update.
6819 * sparc64-netbsd-tdep.c: Update.
6820 * sparc64-obsd-tdep.c: Update.
6821 * sparc64-sol2-tdep.c: Update.
6822 * tilegx-tdep.c: Update.
6823 * v850-tdep.c: Update.
6824 * vax-tdep.c: Update.
6825
6826 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6827 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6828
6829 * trad-frame.c: Update.
6830 Remove TF_REG_* enum.
6831 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6832 a trivially-constructible struct.
6833 (trad_frame_reset_saved_regs): Adjust to use member function.
6834 (trad_frame_value_p): Likewise.
6835 (trad_frame_addr_p): Likewise.
6836 (trad_frame_realreg_p): Likewise.
6837 (trad_frame_value_bytes_p): Likewise.
6838 (trad_frame_set_value): Likewise.
6839 (trad_frame_set_realreg): Likewise.
6840 (trad_frame_set_addr): Likewise.
6841 (trad_frame_set_unknown): Likewise.
6842 (trad_frame_set_value_bytes): Likewise.
6843 (trad_frame_get_prev_register): Likewise.
6844 * trad-frame.h: Update.
6845 (trad_frame_saved_reg_kind): New enum.
6846 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6847 <m_kind, m_reg>: New member fields.
6848 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6849 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6850 <is_addr, is_unknown, is_value_bytes>: New member functions.
6851
9898e882
SM
68522021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6853
6854 * target-float.c: Fix typos.
6855
b66b4e65
HD
68562021-01-02 Hannes Domani <ssbssa@yahoo.de>
6857
6858 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6859
b5b5650a
JB
68602021-01-01 Joel Brobecker <brobecker@adacore.com>
6861
6862 * gdbarch.sh: Update copyright year range.
6863
3666a048
JB
68642021-01-01 Joel Brobecker <brobecker@adacore.com>
6865
6866 Update copyright year range in copyright header of all GDB files.
6867
ff7e39b6
JB
68682021-01-01 Joel Brobecker <brobecker@adacore.com>
6869
6870 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6871 to the list of directories to update.
6872
2b47c078
JB
68732021-01-01 Joel Brobecker <brobecker@adacore.com>
6874
6875 * top.c (print_gdb_version): Update copyright year.
6876
9e5e03df 68772021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6878
476923f1 6879 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6880
476923f1 6881For older changes see ChangeLog-2020.
c906108c
SS
6882\f
6883Local Variables:
6884mode: change-log
6885left-margin: 8
6886fill-column: 74
6887version-control: never
57da7796 6888coding: utf-8
c906108c 6889End: