]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove unused struct call_site_stuff forward declaration
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
873793ae
SM
12021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * dwarf2/loc.h (struct call_site_stuff): Remove.
4
48ec4c05
TT
52021-06-11 Tom Tromey <tom@tromey.com>
6
7 PR rust/23427
8 * rust-parse.c (rust_parser::lex_identifier): Handle raw
9 identifiers.
10 (rust_lex_tests): Add raw identifier tests.
11
9edb1e01
SM
122021-06-10 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * lib/gdb.exp (default_gdb_exit): Unset gdb_tty_name.
15 (spawn_capture_tty_name): New, override builtin spawn.
16 (default_gdb_spawn): Capture GDB's TTY name.
17 * lib/tuiterm.exp (tuiterm_spawn): Remove.
18 (tuiterm_env_init, tuiterm_env_finish): Remove spawn override.
19 (Term) <resize>: Use new variable name.
20 (tuiterm_env_init, tuiterm_env_finish): Remove.
21 (tuiterm_env): Don't call tuiterm_env_init and register
22 tuiterm_env_finish in gdb_finish_hooks.
23 (gdb_finish_hooks): Remove.
24 (gdb_finish): Don't call finish hooks.
25
f9e59d06
LS
262021-06-08 Lancelot Six <lsix@lancelotsix.com>
27
28 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
29 instead of '== None'.
30 (FrameVars): Use 'is not None' instead of '!= None'.
31 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
32 Use 'is None' instead of '== None' and 'is not None' instead of '!=
33 None'.
34
122373f7
SM
352021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * inferior.h (class inferior) <in_initial_library_scan>: New.
38 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
39 * infrun.c (follow_fork_inferior): Likewise.
40 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
41 by try_thread_db_load_1
42 (thread_db_load): Return early if in_initial_library_scan is
43 set.
44 * remote.c (remote_new_objfile): Return early if
45 in_initial_library_scan is set.
46
1b453aed
PA
472021-06-07 Pedro Alves <pedro@palves.net>
48
49 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
50 ctor.
51 * symtab.h (struct symbol): Add defaulted copy assignment
52 operator.
53
fa6ec8ef
PA
542021-06-07 Pedro Alves <pedro@palves.net>
55
56 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
57 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
58 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
59 local.
60
c57eb1a2
PA
612021-06-07 Pedro Alves <pedro@palves.net>
62
63 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
64 (nat_sigval_t): ... this and remove typedef of same name.
65 (struct nat_siginfo): Rename to ...
66 (nat_siginfo_t): ... this and remove typedef of same name.
67 (struct compat_sigval): Rename to ...
68 (compat_sigval_t): ... this and remove typedef of same name.
69 (struct compat_siginfo): Rename to ...
70 (compat_siginfo_t): ... this and remove typedef of same name.
71 (struct compat_x32_siginfo): Rename to ...
72 (compat_x32_siginfo_t): ... this and remove typedef of same name.
73 (amd64_linux_siginfo_fixup_common): Adjust.
74
d8ca8e9f
PA
752021-06-07 Pedro Alves <pedro@palves.net>
76
77 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
78 __attribute__ __aligned__ from the typedef to the struct.
79
a12a15e7
AB
802021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
81
82 PR gdb/27847
83 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
84 type_align, and spot case where the alignment is unknown.
85
ecac8d1c
CL
862021-06-07 Carl Love <cel@us.ibm.com>
87
88 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
89 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
90 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
91 ppc64_pcrel_linkage2_target): New functions.
92 (ppc64_standard_linkage9, ppc64_standard_linkage10,
93 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
94 instruction patterns.
95 (ppc64_standard_linkage9, ppc64_standard_linkage10,
96 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
97 in define MAX expression.
98 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
99 ppc64_standard_linkage10, ppc64_standard_linkage11,
100 ppc64_standard_linkage12.
101 * (ppc_insn_prefix_dform): New function.
102
cfa8e270
SM
1032021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
104
105 PR gdb/27899
106 * sparc-nat.c (sparc_fetch_inferior_registers): Set
107 inferior_ptid instead of using switch_to_thread.
108 (sparc_store_inferior_registers): Likewise.
109
4a977544
BE
1102021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
111
112 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
113 (compile_to_object): Ignore SIGPIPE before calling the plugin.
114
8ff8c543
TT
1152021-06-05 Tom Tromey <tom@tromey.com>
116
117 * data-directory/Makefile.in (Makefile): Use correct directory
118 name.
119
19d6d783
TT
1202021-06-05 Tom Tromey <tom@tromey.com>
121
122 * data-directory/Makefile.in (Makefile): Rewrite.
123
b316465f
TT
1242021-06-05 Tom Tromey <tromey@adacore.com>
125
126 * configure: Rebuild.
127 * configure.ac: Add ACX_NONCANONICAL_TARGET.
128
ae61ef2c
SV
1292021-06-05 Shahab Vahedi <shahab@synopsys.com>
130
131 * NEWS: Document 'set disassembler-options' support for the ARC
132 target.
133 * arc-tdep.c (arc_gdbarch_init): Set
134 'gdbarch_valid_disassembler_options'.
135
386de171
TT
1362021-06-04 Tom Tromey <tromey@adacore.com>
137
138 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
139 parameter.
140 * dwarf2/loc.c (dwarf2_evaluate_property) <case
141 PROP_VARIABLE_NAME>: New case.
142 (compute_var_value): New function.
143 (sect_variable_value): Use compute_var_value.
144 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
145 (var_decl_name): New function.
146 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
147 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
148 constant.
149 (union dynamic_prop_data) <variable_name>: New member.
150 (struct dynamic_prop) <variable_name, set_variable_name>: New
151 methods.
152
4351271e
AB
1532021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
154
155 * remote.c (remote_target)
156 <select_thread_for_ambiguous_stop_reply>: Add additional debug
157 output.
158
a5375566
HD
1592021-06-04 Hannes Domani <ssbssa@yahoo.de>
160
161 * python/py-tui.c (class tui_py_window): Add click function.
162 (tui_py_window::click): Likewise.
163
1bace02a
HD
1642021-06-04 Hannes Domani <ssbssa@yahoo.de>
165
166 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
167 * tui/tui-data.h (struct tui_win_info): Add click function.
168 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
169 (tui_deprep_terminal): Disable mouse events.
170 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
171 * tui/tui.c (tui_disable): Disable mouse events.
172
df5bc734
MH
1732021-06-03 Magne Hov <mhov@undo.io>
174
175 PR python/27841
176 * eval.c (expression::evaluate): Check inferior_ptid.
177
415c8100
PA
1782021-06-03 Pedro Alves <pedro@palves.net>
179
180 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
181 affiliation.
182 (Global Maintainers): Update my address.
183 (Write After Approval): Remove stale entry.
184
83810881
JB
1852021-06-03 John Baldwin <jhb@FreeBSD.org>
186
187 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
188 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
189 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
190 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
191 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
192 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
193 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
194 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
195 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
196 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
197 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
198 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
199 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
200 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
201 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
202 (fbsd_report_signal_info): New.
203 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
204 report_signal_info method.
205
4c958d79
MH
2062021-06-03 Magne Hov <mhov@undo.io>
207
208 * MAINTAINERS (Write After Approval): Add Magne Hov.
209
6ac5237c
HD
2102021-06-03 Hannes Domani <ssbssa@yahoo.de>
211
212 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
213 gdb.SYMBOL_LABEL_DOMAIN constant.
214
aeeb758d
JB
2152021-06-01 John Baldwin <jhb@FreeBSD.org>
216
217 * infrun.c (handle_inferior_event): Only call
218 gdbarch_displaced_step_restore_all_in_ptid if
219 gdbarch_supports_displaced_stepping is true.
220
906f72d4
TT
2212021-06-01 Tom Tromey <tromey@adacore.com>
222
223 * Makefile.in (all-data-directory): Remove.
224 (data-directory/Makefile): Remove.
225
ba56237d
TT
2262021-06-01 Tom Tromey <tromey@adacore.com>
227
228 * configure: Rebuild.
229 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
230
2adf1781
TT
2312021-06-01 Tom Tromey <tromey@adacore.com>
232
233 * silent-rules.mk (ECHO_CC): New variable.
234
bdbbcd57
TT
2352021-06-01 Tom Tromey <tromey@adacore.com>
236
237 * Makefile.in (SUBDIRS): Add testsuite.
238 (all): Don't exclude testsuite.
239
f99d1d37
TT
2402021-06-01 Tom Tromey <tromey@adacore.com>
241
242 * configure.ac: Copy some code from testsuite/configure.ac.
243 (enable_libctf): Subst this, not ENABLE_LIBCTF.
244 * configure: Rebuild.
245
17d305ef
TV
2462021-06-01 Tom de Vries <tdevries@suse.de>
247
248 PR symtab/26096
249 * minsyms.c (msymbol_is_cold_clone): New function.
250 (msymbol_is_function): Use msymbol_is_cold_clone.
251
9b715c68
AB
2522021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
253 Andrew Burgess <andrew.burgess@embecosm.com>
254
255 PR gdb/14383
256 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
257 (ALLDEPFILES): Add arm-none-tdep.c
258 * arm-none-tdep.c: New file.
259 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
260
b4b3e2de
AB
2612021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
262 Richard Bunt <richard.bunt@arm.com>
263
264 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
265 check for why the backtrace stopped.
266
9ea36493
SM
2672021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
270 Update all callers.
271 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
272 signature parameter, update all callers.
273 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
274 signature parameter.
275
46c6bcf6
SM
2762021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * dwarf2/read.h (signatured_type_up): New, use where possible.
279
4631503b
SM
2802021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
281
282 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
283
cc653233
TT
2842021-05-30 Tom Tromey <tom@tromey.com>
285
286 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
287 is_debug_types.
288 (create_signatured_type_table_from_index)
289 (create_signatured_type_table_from_debug_names, add_type_unit)
290 (read_comp_units_from_section): Update.
291
c96e8b04
TT
2922021-05-30 Tom Tromey <tom@tromey.com>
293
294 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
295 m_num_psymtabs>: Remove.
296 (resize_symtabs): Update.
297 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
298 (dwarf2_per_bfd::allocate_signatured_type): Update.
299
24b21115
SM
3002021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
301
302 * Fix tab after space indentation issues throughout.
303
01add95b
SM
3042021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
305
306 * Fix some indentation mistakes throughout.
307
055c879f
SM
3082021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
309
310 * breakpoint.h (iterate_over_bp_locations): Remove. Update
311 users to use all_bp_locations.
312 (all_bp_locations): New.
313 * breakpoint.c (all_bp_locations): Make non-static.
314 (iterate_over_bp_locations): Remove.
315
240edef6
SM
3162021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * breakpoint.h (iterate_over_breakpoints): Remove. Update
319 callers to use all_breakpoints or all_breakpoints_safe.
320 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
321 all_breakpoints_safe): Move here.
322 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
323 non-static.
324 (iterate_over_breakpoints): Remove.
325 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
326 Return void.
327 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
328 return value logic.
329 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
330
e0d9a270
SM
3312021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * breakpoint.c (get_first_locp_gte_addr): Remove.
334 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
335 all_bp_locations_at_addr.
336 (struct bp_locations_at_addr_range): New.
337 (all_bp_locations_at_addr): New.
338 (bp_locations_compare_addrs): New.
339
48d7020b
SM
3402021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
343 all_bp_locations.
344 (all_bp_locations): New.
345
5d51cd5d
SM
3462021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * breakpoint.c (bp_locations): Change to std::vector, update all
349 users.
350 (bp_locations_count): Remove.
351 (update_global_location_list): Change to work with indices
352 rather than bp_location**.
353
40cb8ca5
SM
3542021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
355
356 * breakpoint.h (bp_locations_range): New.
357 (struct breakpoint) <locations>: New. Use where possible.
358
f6d17b2b
SM
3592021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * breakpoint.h (all_tracepoints): Remove.
362 (breakpoint_iterator): Move here.
363 (struct tracepoint_filter): New.
364 (tracepoint_iterator): New.
365 (tracepoint_range): New.
366 (all_tracepoints): New.
367 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
368 all_tracepoints.
369 (breakpoint_iterator): Move to header.
370 (all_tracepoints): New.
371 * tracepoint.c (start_tracing): Adjust.
372
1428b37a
SM
3732021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * breakpoint.c (breakpoint_safe_range): New.
376 (all_breakpoints_safe): New. Use instead of
377 ALL_BREAKPOINTS_SAFE where possible.
378
43892fdf
SM
3792021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
382 all_breakpoints.
383 (breakpoint_iterator): New.
384 (breakpoint_range): New.
385 (all_breakpoints): New.
386
bdef5723
HD
3872021-05-27 Hannes Domani <ssbssa@yahoo.de>
388
389 * python/py-tui.c (tui_py_window::output): Add full_window
390 argument.
391 (gdbpy_tui_write): Parse "full_window" argument.
392
d5a6313e
SM
3932021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
394
395 * make-init-c: Add option to reverse function calls.
396
f39632d9
SM
3972021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
398
399 * Makefile.in (INIT_FILES_FILTER_OUT): New.
400 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
401 (stamp-init): Use make-init-c.
402 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
403 * silent-rules.mk (ECHO_INIT_C): Change.
404 * make-init-c: New file.
405
5e84b7ee
SM
4062021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * command.h (add_alias_cmd): Accept target as
409 cmd_list_element. Update callers.
410
e0f25bd9
SM
4112021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
412
413 * command.h (add_info_alias): Accept target as
414 cmd_list_element. Update callers.
415
3947f654
SM
4162021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
417
418 * command.h (add_com_alias): Accept target as
419 cmd_list_element. Update callers.
420
7bd22f56
SM
4212021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * python/py-param.c (add_setshow_generic): Use return values of
424 add_setshow functions.
425
9f260536
SM
4262021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
427
428 * mi/mi-main.c (_initialize_mi_main):
429 * python/py-auto-load.c (gdbpy_initialize_auto_load):
430 * remote.c (_initialize_remote):
431
af7f8f52
SM
4322021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * command.h (set_show_commands): New.
435 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
436 add_setshow_boolean_cmd, add_setshow_filename_cmd,
437 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
438 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
439 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
440 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
441 Return set_show_commands. Adjust callers.
442 * cli/cli-decode.c (add_setshow_cmd_full): Return
443 set_show_commands, remove result parameters, adjust callers.
444
248f7165
TV
4452021-05-27 Tom de Vries <tdevries@suse.de>
446
447 PR symtab/27919
448 * dwarf2/read.c (process_psymtab_comp_unit):
449
2152b4fd
TV
4502021-05-27 Tom de Vries <tdevries@suse.de>
451
452 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
453 error.
454
6dcd1193
TV
4552021-05-27 Tom de Vries <tdevries@suse.de>
456
457 PR symtab/27898
458 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
459 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
460 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
461 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
462 load_all_dies init.
463 (dwarf2_per_cu_data): Remove load_all_dies field.
464
11bb5c41
SM
4652021-05-26 Simon Marchi <simon.marchi@efficios.com>
466
467 * regcache.c (reg_buffer::reg_buffer): Default-initialize
468 m_registers array.
469
ef5f598c
TT
4702021-05-26 Tom Tromey <tom@tromey.com>
471
472 * dwarf2/read.c (allocate_type_unit_groups_table)
473 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
474 htab_delete_entry.
475 (free_line_header_voidp): Remove.
476 * completer.c
477 (completion_tracker::completion_hash_entry::deleter): Remove.
478 (completion_tracker::discard_completions): Use htab_delete_entry.
479 * utils.h (htab_delete_entry): New template function.
480
a56889ae
HD
4812021-05-24 Hannes Domani <ssbssa@yahoo.de>
482
483 * python/py-tui.c (tui_py_window::refresh_window):
484 Avoid flickering.
485
fbf3c4b9
TV
4862021-05-23 Tom de Vries <tdevries@suse.de>
487
488 PR tdep/27822
489 * target.h (struct target_ops): Mention target_thread_architecture in
490 read_description comment.
491 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
492 pid to determine if process is 64-bit or 32-bit.
493 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
494 Same.
495 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
496 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
497 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
498 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
499 Likewise, use pid to determine if kernel supports reading VFP
500 registers.
501
8569d6e1
PW
5022021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
503
504 * main.c (enum cmdarg_kind): Fix option type comments for
505 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
506
778ae9cc
TV
5072021-05-21 Tom de Vries <tdevries@suse.de>
508
509 PR testsuite/25047
510 * contrib/cc-with-tweaks.sh: Handle -l.
511
6d1a09b7
TV
5122021-05-21 Tom de Vries <tdevries@suse.de>
513
514 PR breakpoint/27889
515 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
516 objects. Call get_jiter_objfile_data with the_objfile.
517
1487a14e
SM
5182021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * linespec.c (linespec_p): Remove. Replace all uses with
521 "linespec *".
522
bb6203bf
AH
5232021-05-20 Alexandra Hájková <ahajkova@redhat.com>
524 Pedro Alves <pedro@palves.net>
525
526 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
527 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
528 command_line_up instead of struct command_line.
529 (build_command_line): Likewise.
530 (get_command_line): Update the cmd function call parameter.
531 (process_next_line): Use unique_ptr command_line_up instead
532 of struct command_line.
533 (recurse_read_control_structure): Change the the type of
534 next to command_line_up.
535 (read_command_lines_1): Change type of `next' to be
536 command_line_up and update all references of `next'
537 accordingly.
538
ed3130b7
AH
5392021-05-20 Alexandra Hájková <ahajkova@redhat.com>
540
541 * MAINTAINERS (Write After Approval): Add myself.
542
5433e20e
JB
5432021-05-19 John Baldwin <jhb@FreeBSD.org>
544
545 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
546
a5523cc3
AH
5472021-05-18 Alexandra Hájková <ahajkova@redhat.com>
548
549 * inflow.c (new_tty): Do not leak tty.
550
cd53fa40
TT
5512021-05-17 Tom Tromey <tom@tromey.com>
552
553 * dwarf2/read.h: Update include.
554 * dwarf2/read.c: Update include.
555 * dwarf2/line-header.c: Update include.
556 * dwarf2/cu.h: Update include.
557 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
558 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
559 * Makefile.in (COMMON_SFILES): Update.
560
347212b8
TT
5612021-05-17 Tom Tromey <tom@tromey.com>
562
563 * dwarf2/read.c (maybe_queue_comp_unit)
564 (dwarf2_per_objfile::age_comp_units): Update.
565 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
566 dwarf2_cu methods.
567 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
568 add_dependence>: New methods.
569 <m_dependencies>: Add "m_" prefix. Now private.
570 <m_mark>: Add "m_" prefix.
571 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
572 (dwarf2_mark_helper): New function.
573 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
574
839118f9
TT
5752021-05-17 Tom Tromey <tom@tromey.com>
576
577 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
578 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
579 (dwarf2_cu::dwarf2_cu): Move to cu.c.
580 * dwarf2/cu.c: New file.
581 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
582
8ae78a44
TT
5832021-05-17 Tom Tromey <tom@tromey.com>
584
585 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
586 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
587 Move to cu.h.
588 * dwarf2/cu.h: New file.
589
c1c0a7e1
AB
5902021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
591
592 * .dir-locals.el: Set sentence-end-double-space for all modes, and
593 set brace-list-open to 0 for C and C++ modes.
594
9e541c79
TT
5952021-05-17 Tom Tromey <tromey@adacore.com>
596
597 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
598 if frame is null.
599
59173216
TT
6002021-05-17 Tom Tromey <tromey@adacore.com>
601
602 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
603 (group_from_gid): Subtract one from strncpy length.
604
baea2f9d
TT
6052021-05-17 Tom Tromey <tromey@adacore.com>
606
607 * source.c (add_path): Check 'p' before using 'p[-1]'.
608
473ab964
TT
6092021-05-17 Tom Tromey <tromey@adacore.com>
610
611 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
612 (dwarf2_per_cu_data_up): New typedef.
613 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
614 <all_comp_units>: Use dwarf2_per_cu_data_up.
615 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
616 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
617 (create_cu_from_index_list): Likewise.
618 (create_signatured_type_table_from_index)
619 (create_cus_from_debug_names_list, add_type_unit)
620 (read_comp_units_from_section): Update.
621 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
622 (run_test): Update.
623
16e0020b
TT
6242021-05-17 Tom Tromey <tom@tromey.com>
625
626 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
627 (sort_tu_by_abbrev_offset): Remove.
628 (build_type_psymtabs): Update.
629
91e159e9
SM
6302021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
631
632 * py-project.toml: New.
633 * gdb-gdb.py.in: Re-format.
634
034dce7a
SM
6352021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
638 New, use it.
639 * command.h (cmd_func_p): Remove.
640 * cli/cli-decode.c (cmd_func_p): Remove.
641
1be99b11
SM
6422021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
645
99858724
SM
6462021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
647
648 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
649 to...
650 <alias_target>: ... this.
651 (add_alias_cmd): Rename old to target.
652 (add_info_alias): Rename old_name to target_name.
653 (add_com_alias): Likewise.
654
14b42fc4
SM
6552021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * Rename "prefixlist" parameters to "subcommands" throughout.
658 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
659 <subcommands>: ... this.
660 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
661 (lookup_cmd_with_subcommands): ... this.
662
ecd0a6b3
SM
6632021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
664
665 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
666
413b49c2
SM
6672021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * cli/cli-decode.h (prefixname): Make const, move implementation
670 to cli/cli-decode.c.
671 * cli/cli-decode.c (cmd_list_element::prefixname): New.
672
ea11a98d
WP
6732021-05-16 Weimin Pan <weimin.pan@oracle.com>
674
675 * ctfread.c (new_symbol): Set function address.
676 (read_func_kind_type): Remove incorrect type name setting.
677 Don't copy name returned from ctf_type_ame_raw throughout file.
678
887e7158
TT
6792021-05-14 Tom Tromey <tom@tromey.com>
680
681 * rust-lang.c (rust_language::val_print_struct)
682 (rust_language::print_enum): Use common_val_print, not
683 value_print_inner.
684
55789354
TBA
6852021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
686
687 * python/py-inferior.c (infpy_get_connection_num): New function.
688 (inferior_object_getset): Add a new element for 'connection_num'.
689 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
690
2f63ec5c
AB
6912021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
694 argument type, update and re-wrap, header comment.
695 (remote_target::commit_resumed): Convert any_process_wildcard and
696 may_global_wildcard_vcont from int to bool.
697
ecf25064
KC
6982021-05-14 Kent Cheung <kent.cheung@arm.com>
699
700 * cp-valprint.c (cp_print_value): Replaced duplicate code.
701 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
702 just before printing child values.
703 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
704 printing string representation.
705 * python/py-prettyprint.c (print_children): Check max_depth just
706 before printing child values.
707 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
708 printing string representation.
709
df68e12b
MF
7102021-05-14 Mike Frysinger <vapier@gentoo.org>
711
712 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
713 sim/callback.h & sim/sim.h.
714
183aaaf7
MF
7152021-05-13 Mike Frysinger <vapier@gentoo.org>
716
717 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
718 sim-regno.h include.
719
737358ba
SM
7202021-05-13 Simon Marchi <simon.marchi@efficios.com>
721
722 * inf-child.h (inf_child_target) <follow_exec>: New.
723 * inf-child.c (inf_child_target::follow_exec): New.
724
294c36eb
SM
7252021-05-13 Simon Marchi <simon.marchi@efficios.com>
726
727 * target.h (struct target_ops) <follow_exec>: Add ptid_t
728 parameter.
729 (target_follow_exec): Likewise.
730 * target.c (target_follow_exec): Add ptid_t parameter.
731 * infrun.c (follow_exec): Adjust call to target_follow_exec,
732 don't push target nor create thread.
733 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
734 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
735 (thread_db_target::follow_exec): New.
736 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
737 (remote_target::follow_exec): Call
738 process_stratum_target::follow_exec.
739 * target-delegates.c: Re-generate.
740
2af87c85
SM
7412021-05-13 Simon Marchi <simon.marchi@efficios.com>
742
743 * infrun.c (follow_exec): Call target_follow_fork when
744 follow-exec-mode is same.
745 * target.h (target_follow_fork): Improve doc.
746
0b2256f7
SM
7472021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
748
749 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
750 Remove.
751 * cli/cli-setshow.c (do_show_command): Adjust.
752
0746f49b
LM
7532021-05-13 Luis Machado <luis.machado@linaro.org>
754
755 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
756 include the last address in the range.
757
4b8cb9dd
SM
7582021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * python/python-internal.h (gdbpy_parse_command_name): Return
761 gdb::unique_xmalloc_ptr.
762 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
763 (cmdpy_init): Adjust.
764 * python/py-param.c (parmpy_init): Adjust.
765 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
766 when done.
767
ee35ce82
GB
7682021-05-12 George Barrett <bob@bob131.so>
769
770 * NEWS (Guile API): Note the addition of the new procedure.
771 * guile/scm-value.c (gdbscm_value_const_value): Add
772 implementation of value-const-value procedure.
773 (value_functions): Add value-const-value procedure.
774
9d4fc61d
GB
7752021-05-12 George Barrett <bob@bob131.so>
776
777 * NEWS (Guile API): Note the addition of new procedures.
778 * guile/scm-value.c (gdbscm_reference_value): Add helper function
779 for reference value creation.
780 (gdbscm_value_reference_value): Add implementation of
781 value-reference-value procedure.
782 (gdbscm_value_rvalue_reference_value): Add implementation of
783 value-rvalue-reference-value procedure.
784 (value_functions): Add value-reference-value procedure. Add
785 value-rvalue-reference-value procedure.
786
97cef6b7
GB
7872021-05-12 George Barrett <bob@bob131.so>
788
789 * guile/scm-type.c (type_integer_constants): Add binding for
790 TYPE_CODE_RVALUE_REF.
791 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
792 dereferencing of rvalue references.
793 * NEWS (Guile API): Note improvements in rvalue reference support.
794
d51344c9
MM
7952021-05-12 Markus Metzger <markus.t.metzger@intel.com>
796
797 * btrace.c (handle_pt_insn_events): Ignore status update enable
798 events.
799
f2a883a8
SM
8002021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
803 indentation.
804
64f30eb0
SM
8052021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
806
807 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
808
db1f6cd6
LS
8092021-05-10 Lancelot Six <lsix@lancelotsix.com>
810
811 PR gdb/27614
812 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
813 argument.
814
31aceaef
SM
8152021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
816
817 * nat/linux-waitpid.c (status_to_str): Show signal name.
818
75140e3b
AB
8192021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
820
821 * python/py-breakpoint.c (pybp_debug): New static global.
822 (show_pybp_debug): New function.
823 (pybp_debug_printf): Define.
824 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
825 (gdbpy_breakpoint_created): Add some debugging.
826 (gdbpy_breakpoint_deleted): Likewise.
827 (gdbpy_breakpoint_modified): Likewise.
828 (_initialize_py_breakpoint): New function.
829
1ef40c13
AB
8302021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
831
832 * python/py-unwind.c (pyuw_debug): Convert to bool.
833 (show_pyuw_debug): New function.
834 (pyuw_debug_printf): Define.
835 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
836 (pyuw_this_id): Convert to new debug print macros.
837 (pyuw_prev_register): Likewise.
838 (pyuw_sniffer): Likewise.
839 (pyuw_dealloc_cache): Likewise.
840 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
841 show function when registering.
842
927c4e35
AB
8432021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 * dummy-frame.c (fprint_dummy_frames): Convert use of
846 fprint_frame_id to use frame_id::to_string.
847 * frame.c (fprint_field): Delete.
848 (fprint_frame_id): Moved to...
849 (frame_id::to_string): ...this, rewritten to return a string.
850 (fprint_frame): Convert use of fprint_frame_id to use
851 frame_id::to_string.
852 (compute_frame_id): Likewise.
853 (frame_id_p): Likewise.
854 (frame_id_eq): Likewise.
855 (frame_id_inner): Likewise.
856 * frame.h (struct frame_id) <to_string>: New member function.
857 (fprint_frame_id): Delete declaration.
858 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
859 fprint_frame_id to use frame_id::to_string.
860 * python/py-frame.c (frame_object_to_frame_info): Likewise.
861 * python/py-unwind.c (unwind_infopy_str): Likewise.
862 (pyuw_this_id): Likewise.
863
8d06918f
SM
8642021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
865
866 * nat/linux-waitpid.c (status_to_str): Return std::string.
867 * nat/linux-waitpid.h (status_to_str): Likewise.
868 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
869 (linux_nat_target::attach): Adjust.
870 (linux_handle_extended_wait): Adjust.
871 (wait_lwp): Adjust.
872 (stop_wait_callback): Adjust.
873 (linux_nat_filter_event): Adjust.
874 (linux_nat_wait_1): Adjust.
875 * nat/linux-waitpid.c (status_to_str): Adjust.
876 * nat/linux-waitpid.h (status_to_str): Adjust.
877
550e9289
SM
8782021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
879
880 * infrun.h (infrun_debug_printf): Add missing space.
881
4655f850
PA
8822021-05-08 Pedro Alves <pedro@palves.net>
883
884 * linux-nat.c (linux_nat_target::supports_disable_randomization):
885 Remove references to HAVE_PERSONALITY.
886 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
887 (maybe_disable_address_space_randomization)
888 (~maybe_disable_address_space_randomizatio): Remove references to
889 HAVE_PERSONALITY.
890 * config.in, configure: Regenerate.
891
1845e254
AB
8922021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
893
894 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
895 include.
896 (source_script_with_search): Perform tilde expansion.
897
91e3c425
SM
8982021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
899
900 * target-descriptions.c (struct target_desc_info) <filename>:
901 Make std::string.
902 (copy_inferior_target_desc_info): Adjust.
903 (target_desc_info_free): Adjust.
904 (target_find_description): Adjust.
905 (set_tdesc_filename_cmd): Adjust.
906 (show_tdesc_filename_cmd): Adjust.
907 (unset_tdesc_filename_cmd): Adjust.
908 (maint_print_c_tdesc_cmd): Adjust.
909
0b2f7ade
SM
9102021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
911
912 * target-descriptions.c (struct target_desc_info): Initialize
913 fields.
914 (get_tdesc_info): Use new.
915 (target_desc_info_free): Use delete.
916
820c4490
SM
9172021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
918
919 * target-descriptions.c (struct target_desc_info) <fetched>:
920 bool.
921 (target_find_description): Adjust.
922 (target_clear_description): Adjust.
923
c2962e6a
SM
9242021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * target-descriptions.c (struct target_desc_info) <tdesc>:
927 Adjust doc.
928 (target_desc_fetched): Remove.
929 (current_target_desc): Remove.
930 (target_description_filename): Remove.
931 (target_find_description): Adjust.
932 (target_clear_description): Adjust.
933 (target_current_description): Adjust.
934 (set_tdesc_filename_cmd): Adjust.
935 (show_tdesc_filename_cmd): Adjust.
936 (unset_tdesc_filename_cmd): Adjust.
937 (maint_print_c_tdesc_cmd): Adjust.
938 (maint_print_xml_tdesc_cmd): Adjust.
939
8a82de58
AB
9402021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * infcmd.c (notice_new_inferior): Change parameter type.
943 * inferior.h (notice_new_inferior): Change parameter type.
944 * remote.c (remote_notice_new_inferior): Change parameter type to
945 bool. Also update type of local variable to bool.
946 (remote_target::update_thread_list): Change type of local variable
947 to bool.
948 (remote_target::process_stop_reply): Pass bool instead of int to
949 remote_notice_new_inferior.
950
bedc4734
SM
9512021-05-07 Simon Marchi <simon.marchi@efficios.com>
952
953 * target.c (target_stack::unpush): Call target_ops::find_beneath
954 to get the target beneath `t`.
955
27f0a431
SM
9562021-05-07 Simon Marchi <simon.marchi@efficios.com>
957
958 * target.c (target_close): Check in all inferiors that the
959 target is not pushed.
960
1d1669e4
AM
9612021-05-07 Aaron Merey <amerey@redhat.com>
962
963 * debuginfod-support.c (debuginfod_init): Remove.
964 (get_debuginfod_client): New function.
965
2698f5ea
TT
9662021-05-07 Tom Tromey <tom@tromey.com>
967
968 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
969 * utils.c (streq_hash): Remove.
970 * utils.h (streq_hash): Don't declare.
971 * completer.c (completion_tracker::discard_completions): Update
972 comment.
973 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
974
13123da8
SM
9752021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
976
977 * Re-format all Python files using black.
978
9589edb8
AB
9792021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * guile/guile-internal.h (gdbscm_safe_source_script): Change
982 function return type.
983 * guile/guile.c (gdbscm_source_script): Update to handle change in
984 gdbscm_safe_source_script.
985 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
986 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
987 type.
988
ec66d6ea
SM
9892021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
990
991 * inferior.h (class inferior) <args>: Change type to
992 unique_xmalloc_ptr.
993 * inferior.c (inferior::~inferior): Don't free args.
994 * infcmd.c (get_inferior_args): Adjust.
995 (set_inferior_args): Adjust.
996
0618ecf6
AB
9972021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
998
999 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1000 breakpoint locations when the breakpoint actually has a location.
1001
79aabb73
TBA
10022021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1003
1004 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1005 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1006 mi_cmd_break_condition.
1007 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1008 * breakpoint.h (set_breakpoint_condition): Declare a new
1009 overload.
1010 * breakpoint.c (set_breakpoint_condition): New overloaded function
1011 extracted out from ...
1012 (condition_command): ... this.
1013 * NEWS: Mention the change.
1014
10e578d7
TBA
10152021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1016
1017 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1018 '--force-condition' flag to force the condition in the
1019 '-break-insert' and '-dprintf-insert' commands.
1020 * NEWS: Mention the change.
1021
225bda24
TV
10222021-05-04 Tom de Vries <tdevries@suse.de>
1023
1024 PR guile/27806
1025 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1026 memory functions.
1027
b8efb248
TT
10282021-04-30 Tom Tromey <tom@tromey.com>
1029
1030 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1031 (add_signatured_type_cu_to_table): Remove.
1032 (create_debug_type_hash_table): Assume dwo_file is non-null.
1033 (create_debug_types_hash_table): Update comment.
1034 (create_all_type_units): Remove.
1035 (sort_tu_by_abbrev_offset): Update comment.
1036 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1037 (build_type_psymtabs): Remove.
1038 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1039 Update.
1040 (read_comp_units_from_section): Add types_htab, section_kind
1041 parameters.
1042 (create_all_comp_units): Read type units.
1043
91eea9cc
TT
10442021-04-30 Tom Tromey <tom@tromey.com>
1045
1046 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1047 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1048 <get_cu>: Now inline.
1049 <all_type_units>: Remove.
1050 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1051 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1052 (dwarf2_per_bfd::get_tu): Remove.
1053 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1054 (create_signatured_type_table_from_index)
1055 (create_signatured_type_table_from_debug_names)
1056 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1057 (dwarf2_base_index_functions::expand_all_symtabs)
1058 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1059 (dwarf2_base_index_functions::map_symbol_filenames)
1060 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1061 (add_signatured_type_cu_to_table, create_all_type_units)
1062 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1063 (create_all_comp_units): Update.
1064 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1065 (write_debug_names): Update.
1066
0d305d5c
TT
10672021-04-30 Tom Tromey <tom@tromey.com>
1068
1069 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1070 allocate_signatured_type>: Change return type.
1071 <all_comp_units, all_type_units>: Hold unique pointers.
1072 (struct dwarf2_per_cu_data): Add constructor and initializers.
1073 (struct signatured_type): Derive from dwarf2_per_cu_data.
1074 * dwarf2/read.c (type_unit_group): Derive from
1075 dwarf2_per_cu_data.
1076 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1077 (dwarf2_per_bfd::get_tu)
1078 (dwarf2_per_bfd::allocate_signatured_type)
1079 (dwarf2_per_bfd::allocate_signatured_type)
1080 (create_cu_from_index_list, create_cus_from_index_list)
1081 (create_signatured_type_table_from_index)
1082 (create_signatured_type_table_from_debug_names)
1083 (create_addrmap_from_aranges)
1084 (dwarf2_base_index_functions::find_last_source_symtab)
1085 (dw_expand_symtabs_matching_file_matcher)
1086 (dwarf2_gdb_index::expand_symtabs_matching)
1087 (dwarf2_base_index_functions::map_symbol_filenames)
1088 (create_cus_from_debug_names_list)
1089 (dw2_debug_names_iterator::next)
1090 (dwarf2_debug_names_index::expand_symtabs_matching)
1091 (create_debug_type_hash_table, add_type_unit)
1092 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1093 Update.
1094 (allocate_type_unit_groups_table): Use delete.
1095 (create_type_unit_group): Change return type. Use new.
1096 (get_type_unit_group, build_type_psymtabs_1)
1097 (build_type_psymtab_dependencies)
1098 (process_skeletonless_type_unit, set_partial_user)
1099 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1100 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1101 (read_signatured_type): Update.
1102 (dwarf2_find_containing_comp_unit): Change type of
1103 'all_comp_units'.
1104 (run_test): Update.
1105 (dwarf2_per_bfd::allocate_per_cu)
1106 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1107 Use new.
1108 (add_signatured_type_cu_to_table): Update.
1109 * dwarf2/index-write.c (write_one_signatured_type)
1110 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1111 (write_debug_names): Update.
1112
1bee48c7
TT
11132021-04-30 Tom Tromey <tromey@adacore.com>
1114
1115 * nat/windows-nat.h (get_image_name): Don't declare.
1116 * nat/windows-nat.c (get_image_name): Now static.
1117
e228ef97
TT
11182021-04-30 Tom Tromey <tromey@adacore.com>
1119
1120 * windows-nat.c (windows_nat::handle_load_dll): Update.
1121 (windows_nat_target::get_windows_debug_event): Call
1122 dll_loaded_event.
1123 (windows_add_all_dlls, windows_add_dll): Move to
1124 nat/windows-nat.c.
1125 * nat/windows-nat.h (handle_load_dll): Change parameters.
1126 (dll_loaded_event, windows_add_all_dlls): Declare.
1127 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1128 from windows-nat.c.
1129 (dll_loaded_event): New function.
1130
de071872
TT
11312021-04-30 Tom Tromey <tromey@adacore.com>
1132
1133 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1134 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1135 Declare.
1136 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1137 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1138
9e439f00
TT
11392021-04-30 Tom Tromey <tromey@adacore.com>
1140
1141 * windows-nat.c: Move code to nat/windows-nat.[ch].
1142 (_initialize_windows_nat): Call initialize_loadable.
1143 * nat/windows-nat.h (AdjustTokenPrivileges)
1144 (DebugActiveProcessStop, DebugBreakProcess)
1145 (DebugSetProcessKillOnExit, EnumProcessModules)
1146 (EnumProcessModulesEx, GetModuleInformation)
1147 (GetModuleFileNameExA, GetModuleFileNameExW)
1148 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1149 (GetCurrentConsoleFont, Wow64SuspendThread)
1150 (Wow64GetThreadContext, Wow64SetThreadContext)
1151 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1152 (AdjustTokenPrivileges_ftype)
1153 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1154 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1155 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1156 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1157 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1158 (GetConsoleFontSize_ftype)
1159 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1160 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1161 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1162 (initialize_loadable): Declare.
1163 * nat/windows-nat.c (AdjustTokenPrivileges)
1164 (DebugActiveProcessStop, DebugBreakProcess)
1165 (DebugSetProcessKillOnExit, EnumProcessModules)
1166 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1167 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1168 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1169 (Wow64GetThreadContext, Wow64SetThreadContext)
1170 (Wow64GetThreadSelectorEntry): Define.
1171 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1172 from windows-nat.c.
1173 (initialize_loadable): Likewise, and rename.
1174
1053c638
TT
11752021-04-30 Tom Tromey <tromey@adacore.com>
1176
1177 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1178 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1179 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1180 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1181 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1182 (bad): New template functions.
1183 (_initialize_loadable): Update.
1184
2869ac4b
TT
11852021-04-30 Tom Tromey <tromey@adacore.com>
1186
1187 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1188
e197dfae
SM
11892021-04-29 Simon Marchi <simon.marchi@efficios.com>
1190
1191 * auto-load.h: Split namespace declaration.
1192
89ba430c
SM
11932021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1194
1195 * infrun.c (save_waitstatus): Move variables to inner scope.
1196
8eb82ba1
AB
11972021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * NEWS: Fix typo and stray full stop.
1200
db2534b7
TT
12012021-04-28 Tom Tromey <tromey@adacore.com>
1202
1203 * ada-exp.y (primary): Use new type for null pointer.
1204 * ada-lang.c (ada_type_match): Remove "may_deref"
1205 parameter. Handle null pointer.
1206 (ada_args_match): Update.
1207 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1208 Handle null pointer.
1209
edeaceda
AB
12102021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1211
1212 * NEWS: Mention new commands.
1213 * python/python.c (python_ignore_environment): New static global.
1214 (show_python_ignore_environment): New function.
1215 (set_python_ignore_environment): New function.
1216 (python_dont_write_bytecode): New static global.
1217 (show_python_dont_write_bytecode): New function.
1218 (set_python_dont_write_bytecode): New function.
1219 (_initialize_python): Register new commands.
1220
041ca48e
AB
12212021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * extension-priv.h (struct extension_language_ops): Rename
1224 'finish_initialization' to 'initialize'.
1225 * extension.c (finish_ext_lang_initialization): Renamed to...
1226 (ext_lang_initialization): ...this, update comment, and updated
1227 the calls to reflect the change in struct extension_language_ops.
1228 * extension.h (finish_ext_lang_initialization): Renamed to...
1229 (ext_lang_initialization): ...this.
1230 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1231 (gdbscm_initialize): ...this, update comment at definition.
1232 (guile_extension_ops): Update.
1233 * main.c (captured_main_1): Update call to
1234 finish_ext_lang_initialization.
1235 * python/python.c (gdbpy_finish_initialization): Rename to...
1236 (gdbpy_initialize): ...this, update comment at definition, and
1237 update call to do_finish_initialization.
1238 (python_extension_ops): Update.
1239 (do_finish_initialization): Rename to...
1240 (do_initialize): ...this, and update comment.
1241
1178f01a
AB
12422021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * main.c (captured_main_1): Add a call to
1245 finish_ext_lang_initialization.
1246 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1247
880ae75a
AB
12482021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1249
1250 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1251 (gdbscm_finish_initialization): Add code moved from
1252 _initialize_guile.
1253 (_initialize_guile): Move code to gdbscm_finish_initialization.
1254 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1255 _initialize_scm_arch.
1256 (_initialize_scm_arch): New function.
1257 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1258 into _initialize_scm_block.
1259 (_initialize_scm_block): New function.
1260 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1261 into _initialize_scm_frame.
1262 (_initialize_scm_frame): New function.
1263 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1264 into _initialize_scm_objfile.
1265 (_initialize_scm_objfile): New function.
1266 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1267 code into _initialize_scm_progspace.
1268 (_initialize_scm_progspace): New function.
1269 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1270 into _initialize_scm_symbol.
1271 (_initialize_scm_symbol): New function.
1272 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1273 into _initialize_scm_symtab.
1274 (_initialize_scm_symtab): New function.
1275 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1276 _initialize_scm_type.
1277 (_initialize_scm_type): New function.
1278
8e3685bf
AB
12792021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1280
1281 * python/py-arch.c (_initialize_py_arch): New function.
1282 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1283 * python/py-block.c (_initialize_py_block): New function.
1284 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1285 * python/py-inferior.c (_initialize_py_inferior): New function.
1286 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1287 * python/py-objfile.c (_initialize_py_objfile): New function.
1288 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1289 * python/py-progspace.c (_initialize_py_progspace): New function.
1290 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1291 * python/py-registers.c (_initialize_py_registers): New function.
1292 (gdbpy_initialize_registers): Move code to
1293 _initialize_py_registers.
1294 * python/py-symbol.c (_initialize_py_symbol): New function.
1295 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1296 * python/py-symtab.c (_initialize_py_symtab): New function.
1297 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1298 * python/py-type.c (_initialize_py_type): New function.
1299 (gdbpy_initialize_types): Move code to _initialize_py_type.
1300 * python/py-unwind.c (_initialize_py_unwind): New function.
1301 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1302 * python/python.c (_initialize_python): Move call to
1303 do_start_initialization to gdbpy_finish_initialization.
1304 (gdbpy_finish_initialization): Add call to
1305 do_start_initialization.
1306
913832e9
AB
13072021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * extension.c (struct scoped_default_signal): New struct.
1310 (scoped_default_sigint): New typedef.
1311 (finish_ext_lang_initialization): Make use of
1312 scoped_default_sigint.
1313
a3b5ef3e
AB
13142021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * main.c (captured_main_1): Don't pass argument to gdb_init.
1317 * top.c (gdb_init): Remove unused argument, and add header
1318 comment.
1319 * top.h (gdb_init): Remove argument.
1320
b9f90c72
LM
13212021-04-27 Luis Machado <luis.machado@linaro.org>
1322
1323 * psymtab.c (psymbol_functions::dump): Output newline.
1324 Remove wrap.
1325 * symmisc.c (dump_objfile): Likewise.
1326
2c473def
MW
13272021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1328 Simon Marchi <simon.marchi@polymtl.ca>
1329
1330 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1331 when attaching the 'auto_load_new_objfile' observer, so
1332 other observers can specify it as a dependency.
1333 * gdb/auto-load.h (struct token): Declare
1334 'auto_load_new_objfile_observer_token' as token to be used
1335 for the 'auto_load_new_objfile' observer.
1336 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1337 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1338 observer, so it gets notified after the latter.
1339
9a6e099f
MW
13402021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1341 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * unittests/observable-selftests.c (dependency_test_counters):
1344 New.
1345 (observer_token0, observer_token1, observer_token2,
1346 observer_token3, observer_token4, observer_token5): New.
1347 (struct dependency_observer_data): New struct.
1348 (observer_dependency_test_callback): New function.
1349 (test_observers): New.
1350 (run_dependency_test): New function.
1351 (test_dependency): New.
1352 (_initialize_observer_selftest): Register dependency test.
1353
bea3329b
SM
13542021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1355
1356 PR gdb/27773
1357 * cli/cli-dump.c (dump_binary_file): Check result of
1358 gdb_fopen_cloexec.
1359
c290cb01
ST
13602021-04-25 Sergei Trofimovich <siarheit@google.com>
1361
1362 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1363 by passing `process_stratum_target*` parameter.
1364
fbb46296
LS
13652021-04-25 Lancelot Six <lsix@lancelotsix.com>
1366
1367 PR gdb/22640
1368 * typeprint.h (struct type_print_options): Add print_in_hex
1369 flag.
1370 (struct print_offset_data): Add print_in_hex flag, add a
1371 constructor accepting a type_print_options* argument.
1372 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1373 default value for print_in_hex.
1374 (print_offset_data::indentation): Allow more horizontal space.
1375 (print_offset_data::print_offset_data): Add ctor.
1376 (print_offset_data::maybe_print_hole, print_offset_data::update):
1377 Handle the print_in_hex flag.
1378 (whatis_exp): Handle 'x' and 'd' flags.
1379 (print_offsets_and_sizes_in_hex): Declare.
1380 (set_print_offsets_and_sizes_in_hex): Create.
1381 (show_print_offsets_and_sizes_in_hex): Create.
1382 (_initialize_typeprint): Update help message for the ptype
1383 command, register the 'set print type hex' and 'show print type
1384 hex' commands.
1385 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1386 (c_type_print_base): Construct the print_offset_data
1387 object using the type_print_optons parameter.
1388 * rust-lang.c (rust_language::print_type): Construct the
1389 print_offset_data object using the type_print_optons parameter.
1390 * NEWS: Mention the new flags of the ptype command.
1391
18bbba46
LS
13922021-04-25 Lancelot Six <lsix@lancelotsix.com>
1393
1394 * typeprint.h (struct type_print_options): Move before
1395 print_offset_data.
1396
77393c9b
JB
13972021-04-25 Joel Brobecker <brobecker@adacore.com>
1398
1399 GDB 10.2 released.
1400
98c897e3
SM
14012021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * observable.c (observer_debug): Change to bool.
1404
9fc29955
AB
14052021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1406
1407 * dwarf2/read.c: Add 'unordered_set' include.
1408 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1409 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1410 of per_Bfd->filenames_cache cache, and use function local
1411 filenames_cache instead. Reindent.
1412 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1413
0406545d
SM
14142021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1415
1416 * breakpoint.c (iterate_over_bp_locations): Change callback to
1417 function view, remove data parameter.
1418 * breakpoint.h (iterate_over_bp_locations): Likewise.
1419 * record-full.c (record_full_sync_record_breakpoints): Remove
1420 data parameter.
1421
432ce4cf
TT
14222021-04-22 Tom Tromey <tom@tromey.com>
1423
1424 * c-typeprint.c (c_type_print_base_struct_union): Use
1425 print_spaces_filtered_with_print_options.
1426
e25d6d93
SM
14272021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1428
1429 PR gdb/27757
1430 * python/py-type.c (typy_range): Check that bounds are constant
1431 before accessing them as such.
1432 * guile/scm-type.c (gdbscm_type_range): Likewise.
1433
4efeb0d3
TBA
14342021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1435
1436 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1437 * inferior.c (inferior::add_continuation): New method, adapted
1438 from 'add_inferior_continuation'.
1439 (inferior::do_all_continuations): New method, adapted from
1440 'do_all_inferior_continuations'.
1441 (inferior::~inferior): Clear the list of continuations directly.
1442 * inferior.h (class inferior) <continuations>: Rename into...
1443 <m_continuations>: ...this and make private.
1444 * continuations.c: Remove.
1445 * continuations.h: Remove.
1446 * event-top.c: Don't include "continuations.h".
1447
1448 Update the users below.
1449 * inf-loop.c (inferior_event_handler)
1450 * infcmd.c (attach_command)
1451 (notice_new_inferior): Update.
1452
c4c493de
TBA
14532021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1454
1455 * inferior.h (class inferior) <continuations>: Change the type
1456 to be an std::list of std::function's.
1457 Update the references and uses below.
1458 * continuations.c (struct continuation): Delete.
1459 (make_continuation): Delete.
1460 (do_my_continuations_1): Delete.
1461 (do_my_continuations): Delete.
1462 (discard_my_continuations_1): Delete.
1463 (discard_my_continuations): Delete.
1464 (add_inferior_continuation): Update.
1465 (do_all_inferior_continuations): Update.
1466 (discard_all_inferior_continuations): Update.
1467 * continuations.h (add_inferior_continuation): Update to take
1468 an std::function as the parameter.
1469 * infcmd.c (struct attach_command_continuation_args): Delete.
1470 (attach_command_continuation): Delete.
1471 (attach_command_continuation_free_args): Delete.
1472 (attach_command): Update.
1473 (notice_new_inferior): Update.
1474
1194676e
TBA
14752021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1476
1477 * continuations.h: Update the general comment.
1478 * inferior.h (class inferior) <continuations>: Update the comment.
1479 * interps.c: Do not include "continuations.h".
1480
35682f0a
TBA
14812021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1482
1483 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1484 parameter. Update the references below.
1485 * continuations.c (do_my_continuations_1)
1486 (do_my_continuations)
1487 (do_all_inferior_continuations): Update.
1488 * inf-loop.c (inferior_event_handler): Update.
1489 * infcmd.c (attach_command_continuation): Update.
1490
6fee5eee
TBA
14912021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1492
1493 * infcmd.c (attach_post_wait): Update the function comment.
1494
27d0790a
TBA
14952021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1496
1497 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1498 Update the references below.
1499 (struct attach_command_continuation_args)
1500 (attach_command_continuation)
1501 (attach_command_continuation_free_args)
1502 (attach_command)
1503 (notice_new_inferior): Update to remove the reference to 'args'.
1504
c39ebbf4
TV
15052021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1506 Tom de Vries <tdevries@suse.de>
1507
1508 PR remote/27710
1509 * remote.c (remote_target_is_non_stop_p): New function.
1510 * remote.h (remote_target_is_non_stop_p): Declare.
1511 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1512 to check non-stopness using notif_state->remote rather current target.
1513
22f80c0f
TT
15142021-04-22 Tom Tromey <tom@tromey.com>
1515
1516 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1517 (struct typed_val_int) <val>: Now ULONGEST.
1518 (rust_parser::parse_array_type): Remove negative check.
1519 (rust_lex_int_test): Change 'value' to ULONGEST.
1520
05f3c0f0
AB
15212021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1522
1523 * arch-utils.c (default_addressable_memory_unit_size): Return a
1524 value based on bfd's bits per byte.
1525
7e7a35fb
TT
15262021-04-21 Tom Tromey <tom@tromey.com>
1527
1528 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1529 unsigned char.
1530 (struct dwarf2_per_cu_data): Rearrange.
1531 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1532 unsigned char.
1533 (struct comp_unit_head): Rearrange.
1534 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1535
ff507520
TV
15362021-04-21 Tom de Vries <tdevries@suse.de>
1537
1538 PR build/27681
1539 * configure.ac: Remove --without-included-regex/--with-included-regex.
1540 * config.in: Regenerate.
1541 * configure: Regenerate.
1542 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1543
10a636cc
TBA
15442021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1545
1546 * breakpoint.h (create_breakpoint): Add a new parameter,
1547 'force_condition'.
1548 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1549 argument when 'parse_extra' is false to check if the condition
1550 is invalid at all of the breakpoint locations.
1551 Update the users below.
1552 (break_command_1)
1553 (dprintf_command)
1554 (trace_command)
1555 (ftrace_command)
1556 (strace_command)
1557 (create_tracepoint_from_upload): Update.
1558 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1559 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1560 * python/py-breakpoint.c (bppy_init): Update.
1561 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1562
85c88e2a
TBA
15632021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1564
1565 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1566 disabled-by-condition locations on MI-like output.
1567 (breakpoint_1): Do not display the disabled-by-condition footnote
1568 if the output is MI-like.
1569
fd34472c
FC
15702021-04-21 Frederic Cambus <fred@statdns.com>
1571
1572 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1573 update year range in generated copyright notices.
1574
184dcd81
FW
15752021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1576
1577 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1578 qualifier_seq_noopt.
1579
525174e8
FW
15802021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1581
1582 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1583
f5dc2ee3
AB
15842021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1585
1586 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1587 (producer_is_icc): Replace use of std::regex with gdb's
1588 compiled_regex.
1589
42c2c694
TT
15902021-04-17 Tom Tromey <tom@tromey.com>
1591
1592 PR gdb/23743:
1593 * dwarf2/read.c (class offset_view): New.
1594 (struct symbol_table_slot): Remove.
1595 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1596 <symbol_name_index, symbol_vec_index>: New methods.
1597 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1598 Rewrite.
1599 (read_gdb_index_from_buffer): Update.
1600 (struct dw2_symtab_iterator) <vec>: Change type.
1601 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1602 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1603 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1604 <append_array, append_offset>: New methods.
1605 (write_hash_table, add_address_entry, write_gdbindex_1)
1606 (write_debug_names): Update.
1607 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1608
da314dd3
TT
16092021-04-17 Tom Tromey <tom@tromey.com>
1610
1611 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1612 partial_symtabs.
1613
0b7b2c2a
TT
16142021-04-17 Tom Tromey <tom@tromey.com>
1615
1616 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1617 from map_matching_symbols. Change parameters.
1618 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1619 Rename from map_matching_symbols. Change parameters.
1620 * dwarf2/read.c (struct dwarf2_gdb_index)
1621 <expand_matching_symbols>: Rename from map_matching_symbols.
1622 Change parameters.
1623 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1624 Rename from map_matching_symbols. Change parameters.
1625 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1626 dw2_map_matching_symbols. Change parameters.
1627 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1628 implementation.
1629 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1630 map_matching_symbols. Change parameters.
1631 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1632 from map_matching_symbols. Change parameters.
1633 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1634 map_matching_symbols. Change parameters.
1635 * ada-lang.c (map_matching_symbols): New function.
1636 (add_nonlocal_symbols): Update.
1637
90160b57
TT
16382021-04-17 Tom Tromey <tom@tromey.com>
1639
1640 * quick-symbol.h (struct quick_symbol_functions)
1641 <expand_symtabs_with_fullname>: Remove.
1642 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1643 Remove.
1644 * psympriv.h (struct psymbol_functions)
1645 <expand_symtabs_with_fullname>: Remove.
1646 * dwarf2/read.c (struct dwarf2_base_index_functions)
1647 <expand_symtabs_with_fullname>: Remove.
1648 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1649 Remove.
1650 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1651 Update comment.
1652 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1653 Rewrite.
1654
7089bd88
TT
16552021-04-17 Tom Tromey <tom@tromey.com>
1656
1657 * symfile-debug.c (objfile::expand_symtabs_for_function):
1658 Rewrite.
1659 * quick-symbol.h (struct quick_symbol_functions)
1660 <expand_symtabs_for_function>: Remove.
1661 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1662 Remove.
1663 * psympriv.h (struct psymbol_functions)
1664 <expand_symtabs_for_function>: Remove.
1665 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1666 Update comment.
1667 * dwarf2/read.c (struct dwarf2_gdb_index)
1668 <expand_symtabs_for_function>: Remove.
1669 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1670 Remove.
1671 (find_slot_in_mapped_hash): Remove.
1672 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1673 (dw2_symtab_iter_init): Remove one overload.
1674 (dwarf2_gdb_index::expand_symtabs_for_function)
1675 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1676
536a40f3
TT
16772021-04-17 Tom Tromey <tom@tromey.com>
1678
1679 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1680 Rewrite.
1681 * quick-symbol.h (struct quick_symbol_functions)
1682 <map_symtabs_matching_filename>: Remove.
1683 * psymtab.c (partial_map_expand_apply)
1684 (psymbol_functions::map_symtabs_matching_filename): Remove.
1685 * psympriv.h (struct psymbol_functions)
1686 <map_symtabs_matching_filename>: Remove.
1687 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1688 Update comment.
1689 * dwarf2/read.c (struct dwarf2_base_index_functions)
1690 <map_symtabs_matching_filename>: Remove.
1691 (dw2_map_expand_apply)
1692 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1693 Remove.
1694
84d865e3
TT
16952021-04-17 Tom Tromey <tom@tromey.com>
1696
1697 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1698 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1699 Remove.
1700 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1701 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1702 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1703 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1704 Remove.
1705 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1706 (dwarf2_gdb_index::lookup_symbol)
1707 (dwarf2_debug_names_index::lookup_symbol): Remove.
1708
3bfa51a7
TT
17092021-04-17 Tom Tromey <tom@tromey.com>
1710
1711 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1712 * symmisc.c (maintenance_expand_symtabs): Update.
1713 * symfile.c (expand_symtabs_matching): Update.
1714 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1715 parameter.
1716 * quick-symbol.h (struct quick_symbol_functions)
1717 <expand_symtabs_matching>: Add 'domain' parameter.
1718 * psymtab.c (recursively_search_psymtabs)
1719 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1720 parameter.
1721 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1722 Add 'domain' parameter.
1723 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1724 'domain' parameter.
1725 * linespec.c (iterate_over_all_matching_symtabs): Update.
1726 * dwarf2/read.c (struct dwarf2_gdb_index)
1727 <expand_symtabs_matching>: Add 'domain' parameter.
1728 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1729 'domain' parameter.
1730 (dw2_expand_symtabs_matching)
1731 (dwarf2_gdb_index::expand_symtabs_matching)
1732 (dw2_debug_names_iterator)
1733 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1734 parameter.
1735
03a8ea51
TT
17362021-04-17 Tom Tromey <tom@tromey.com>
1737
1738 * symtab.c (global_symbol_searcher::expand_symtabs)
1739 (default_collect_symbol_completion_matches_break_on): Update.
1740 * symmisc.c (maintenance_expand_symtabs): Update.
1741 * symfile.h (expand_symtabs_matching): Add search_flags
1742 parameter.
1743 * symfile.c (expand_symtabs_matching): Add search_flags
1744 parameter.
1745 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1746 search_flags parameter.
1747 * quick-symbol.h (struct quick_symbol_functions)
1748 <expand_symtabs_matching>: Add search_flags parameter.
1749 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1750 * psymtab.c (recursively_search_psymtabs)
1751 (psymbol_functions::expand_symtabs_matching): Add search_flags
1752 parameter.
1753 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1754 Add search_flags parameter.
1755 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1756 search_flags parameter.
1757 * linespec.c (iterate_over_all_matching_symtabs): Update.
1758 * dwarf2/read.c (struct dwarf2_gdb_index)
1759 <expand_symtabs_matching>: Add search_flags parameter.
1760 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1761 search_flags parameter.
1762 (dw2_map_matching_symbols): Update.
1763 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1764 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1765 parameter.
1766 (dw2_debug_names_iterator): Change block_index to search flags.
1767 <m_block_index>: Likewise.
1768 (dw2_debug_names_iterator::next)
1769 (dwarf2_debug_names_index::lookup_symbol)
1770 (dwarf2_debug_names_index::expand_symtabs_for_function)
1771 (dwarf2_debug_names_index::map_matching_symbols)
1772 (dwarf2_debug_names_index::map_matching_symbols): Update.
1773 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1774 search_flags parameter.
1775 * ada-lang.c (ada_add_global_exceptions)
1776 (collect_symbol_completion_matches): Update.
1777
df35e626
TT
17782021-04-17 Tom Tromey <tom@tromey.com>
1779
1780 * symtab.c (default_collect_symbol_completion_matches_break_on):
1781 Update.
1782 * symfile.h (expand_symtabs_matching): Return bool.
1783 * symfile.c (expand_symtabs_matching): Return bool.
1784 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1785 bool.
1786 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1787 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1788 bool.
1789 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1790 bool.
1791 * psympriv.h (struct psymbol_functions)
1792 <expand_symtabs_matching>: Return bool.
1793 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1794 bool.
1795 * dwarf2/read.c (struct dwarf2_gdb_index)
1796 <expand_symtabs_matching>: Return bool.
1797 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1798 Return bool.
1799 (dw2_expand_symtabs_matching_symbol): Return bool.
1800 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1801 (dw2_expand_symtabs_matching)
1802 (dwarf2_gdb_index::expand_symtabs_matching)
1803 (dwarf2_debug_names_index::expand_symtabs_matching)
1804 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1805
e357e990
TT
18062021-04-17 Tom Tromey <tom@tromey.com>
1807
1808 * quick-symbol.h (enum block_search_flag_values): New.
1809 (block_search_flags): New enum flags type.
1810
3cbc7ac3
TT
18112021-04-16 Tom Tromey <tom@tromey.com>
1812
1813 * rust-parse.c: New file.
1814 * rust-exp.y: Remove.
1815 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1816 (SFILES): Remove rust-exp.y.
1817 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1818
1b6b755e
LM
18192021-04-16 Luis Machado <luis.machado@linaro.org>
1820
1821 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1822
c45ecc9d
JB
18232021-04-15 John Baldwin <jhb@FreeBSD.org>
1824
1825 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1826 use throughout file.
1827
a15a276b
TT
18282021-04-15 Tom Tromey <tromey@adacore.com>
1829
1830 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1831 arrays.
1832
644a2e75
TT
18332021-04-15 Tom Tromey <tromey@adacore.com>
1834
1835 * printcmd.c (print_variable_and_value): Use
1836 common_val_print_checked.
1837
9e5e03df
TT
18382021-04-15 Tom Tromey <tromey@adacore.com>
1839
1840 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1841 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1842 Update.
1843 * p-exp.y (variable): Update.
1844 * m2-exp.y (variable): Update.
1845 * go-exp.y (variable): Update.
1846 * expprint.c (dump_for_expression): New overload.
1847 * expop.h (check_objfile): New overload.
1848 (check_constant): New overload.
1849 (class var_value_operation): Use block_symbol.
1850 <get_symbol>: Rewrite.
1851 * eval.c (var_value_operation::evaluate)
1852 (var_value_operation::evaluate_funcall)
1853 (var_value_operation::evaluate_for_address)
1854 (var_value_operation::evaluate_for_address)
1855 (var_value_operation::evaluate_with_coercion)
1856 (var_value_operation::evaluate_for_sizeof)
1857 (var_value_operation::evaluate_for_cast): Update.
1858 * d-exp.y (PrimaryExpression): Update.
1859 * c-exp.y (variable): Update.
1860 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1861 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1862 (ada_var_value_operation::evaluate)
1863 (ada_var_value_operation::resolve)
1864 (ada_funcall_operation::resolve): Update.
1865 * ada-exp.y (write_var_from_sym, write_object_renaming)
1866 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1867 (maybe_overload): Update.
1868 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1869
5809fbf2
TT
18702021-04-15 Tom Tromey <tom@tromey.com>
1871 Andrew Burgess <andrew.burgess@embecosm.com>
1872
1873 * NEWS: Add entry.
1874 * main.c (captured_main_1): Call check_quiet_mode.
1875 * top.c (startup_quiet): New global.
1876 (check_quiet_mode): New function.
1877 (show_startup_quiet): New function.
1878 (init_main): Register new command.
1879 * top.h (check_quiet_mode): Declare.
1880
92e4e97a
AB
18812021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1882
1883 PR cli/25956
1884 * NEWS: Mention new early init files and command line options.
1885 * config.in: Regenerate.
1886 * configure: Regenerate.
1887 * configure.ac: Define GDBEARLYINIT.
1888 * main.c (get_earlyinit_files): New function.
1889 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1890 CMDARG_EARLYINIT_COMMAND.
1891 (captured_main_1): Add support for new command line flags, and for
1892 processing startup files.
1893 (print_gdb_help): Include startup files in the output.
1894
54b4dcc5
AB
18952021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1896
1897 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1898 (relocate_file_path_maybe_in_datadir): ...this.
1899 (class gdb_initfile_finder): New class.
1900 (get_init_files): Now uses gdb_initfile_finder.
1901 (print_gdb_help): Print 'None found' when there are no init files.
1902
34dc0f95
TBA
19032021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1904
1905 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1906 corresponding child of the abstract DIE when iterating the
1907 children of the concrete DIE.
1908
329534fd
TV
19092021-04-13 Tom de Vries <tdevries@suse.de>
1910
1911 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1912 type to regoff_t *.
1913
d9d2ef05
LM
19142021-04-13 Luis Machado <luis.machado@linaro.org>
1915
1916 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1917 hex values.
1918
c8a37944
WS
19192021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1920
1921 * rs6000-tdep.c: Add support for single-stepping of
1922 prefixed instructions.
1923
b722acca
WS
19242021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1925
e3d528d7
WS
1926 PR gdb/27525
1927 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1928 handle the addpcis/lnia instruction.
1929
19302021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1931
b722acca
WS
1932 * MAINTAINERS (Write After Approval): Add myself.
1933
6ba4cb84
CL
19342021-4-12 Carl Love <cel@us.ibm.com>
1935
1936 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1937 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1938 float128.
1939
d4717483
SM
19402021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1941
1942 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1943 * nat/windows-nat.h: Likewise.
1944
b3885679
EZ
19452021-04-10 Eli Zaretskii <eliz@gnu.org>
1946
1947 * windows-nat.c (windows_nat::handle_load_dll): Call
1948 windows_add_dll if get_image_name failed to glean the name of the
1949 DLL by using the lpImageName pointer.
1950 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1951 (windows_add_dll): Now does what windows_add_all_dlls did before,
1952 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1953 specifies the address where the DLL was loaded into the inferior,
1954 and looks for the single DLL loaded at that address.
1955
1ef6a596
LM
19562021-04-09 Luis Machado <luis.machado@linaro.org>
1957
1958 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1959
83a559f7
DQ
19602021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1961
1962 * darwin-nat.c (darwin_nat_target::resume): Remove status
1963 variable.
1964
16e311ab
FW
19652021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1966
1967 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1968 prologue end for Intel compilers.
1969 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1970 * producer.c (producer_is_icc_ge_19): New function.
1971 * producer.h (producer_is_icc_ge_19): New declaration.
1972
fbb3bcfc
FW
19732021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1974
1975 * producer.c: (producer_is_icc): Update for new version scheme.
1976 (producer_parsing_tests): Update names and expected results.
1977 * producer.h: (producer_is_icc): Update comment accordingly.
1978
e97007b6
SM
19792021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1980
1981 * target.h (struct target_ops) <follow_fork>: Return void.
1982 (target_follow_fork): Likewise.
1983 * target.c (default_follow_fork): Likewise.
1984 (target_follow_fork): Likewise.
1985 * infrun.c (follow_fork_inferior): Adjust.
1986 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1987 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1988 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1989 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1990 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1991 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1992 * remote.c (class remote_target) <follow_fork>: Likewise.
1993 (remote_target::follow_fork): Likewise.
1994 * target-delegates.c: Re-generate.
1995
dc2b480f
WP
19962021-04-07 Weimin Pan <weimin.pan@oracle.com>
1997
1998 * ctfread.c (fetch_tid_type): New function, use throughout file.
1999 (read_forward_type): New function.
2000 (read_type_record): Call read_forward_type.
2001
0a703a4c
AB
20022021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2003
2004 * f-exp.h (class fortran_structop_operation): New class.
2005 * f-exp.y (exp): Create fortran_structop_operation instead of the
2006 generic structop_operation.
2007 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2008 expression as EVAL_NORMAL if the result type was dynamic so we can
2009 extract the actual array bounds.
2010 (fortran_structop_operation::evaluate): New function.
2011
20122021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2013
2014 * eval.c (evaluate_subexp_standard): Remove
2015 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2016 STRUCTOP_PTR.
2017
30ab3586
AB
20182021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * valops.c (value_cast): Call value_deeply_equal before performing
2021 any cast.
2022
5e18990f
AB
20232021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2026 the function.
2027
56d467f4
CT
20282021-04-07 Caroline Tice <cmtice@google.com>
2029
2030 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2031 the search paths used resolve relative location of .dwo file.
2032
1fd999d9
AB
20332021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2034
2035 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2036 assert.
2037 (dwarf2_section_info::get_file_name): Add an assert.
2038 (dwarf2_section_info::read_string): Display a minimal, sane error
2039 when the dwarf2_section_info is not associated with a bfd section.
2040
79c02443
AB
20412021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * top.c (staged_gdb_datadir): Update comment.
2044 (set_gdb_datadir): Copy the value of gdb_datadir back into
2045 staged_datadir.
2046 (init_main): Initialise staged_gdb_datadir.
2047
340d00fb
TV
20482021-04-06 Tom de Vries <tdevries@suse.de>
2049
2050 PR breakpoints/25884
2051 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2052 stepping range.
2053
d811a7cf
TV
20542021-04-06 Tom de Vries <tdevries@suse.de>
2055
2056 PR tui/27680
2057 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2058 to style.parse.
2059
306b445a
SM
20602021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2061
2062 * avr-tdep.c (avr_frame_unwind_cache): Use
2063 trad_frame_saved_reg::is_addr.
2064
9161c89a
SM
20652021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2068 adjust callers.
2069
0072c873
SM
20702021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2071
2072 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2073 objfile parameter for objfile_per_bfd_storage, adjust callers.
2074 (struct standard_psymtab) <standard_psymtab>: Likewise.
2075 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2076 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2077 * ctfread.c (struct ctf_psymtab): Likewise.
2078 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2079 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2080 (dwarf2_create_include_psymtab): Likewise.
2081 * objfiles.h (struct objfile_per_bfd_storage)
2082 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2083 <get_bfd>: New method.
2084 <m_bfd>: New field.
2085 * objfiles.c (get_objfile_bfd_data): Adjust.
2086
9984dd99
SM
20872021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2088
2089 * psymtab.c (partial_symtab::partial_symtab): Change
2090 last_objfile_name to be an std::string.
2091 * symfile.c (allocate_symtab): Likewise.
2092
4a4f97c1
SM
20932021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2096 methods.
2097 (struct objfile) <intern>: Use
2098 objfile::objfile_per_bfd_storage::intern.
2099
0672875f
SM
21002021-04-01 Simon Marchi <simon.marchi@efficios.com>
2101
2102 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2103 with type::is_flag_enum.
2104
9902b327
SM
21052021-04-01 Simon Marchi <simon.marchi@efficios.com>
2106
2107 * gdbtypes.h (struct type) <is_flag_enum,
2108 set_is_flag_enum>: New methods.
2109 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2110 write call sites to use type::set_is_flag_enum.
2111
3bc440a2
SM
21122021-04-01 Simon Marchi <simon.marchi@efficios.com>
2113
2114 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2115 with type::is_declared_class.
2116
aa70e35c
SM
21172021-04-01 Simon Marchi <simon.marchi@efficios.com>
2118
2119 * gdbtypes.h (struct type) <is_declared_class,
2120 set_is_declared_class>: New methods.
2121 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2122 write call sites to use type::set_is_declared_class.
2123
bfb9f5dc
BS
21242021-02-28 Boris Staletic <boris.staletic@gmail.com>
2125
2126 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2127 to avoid deprecation warnings.
2128
733f5eea
ML
21292021-04-01 Martin Liska <mliska@suse.cz>
2130
2131 * cp-name-parser.y: Use startswith instead of strncmp.
2132 * m2-exp.y: Likewise.
2133 * macroexp.c (substitute_args): Likewise.
2134 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2135 * rust-exp.y: Likewise.
2136
af82f89d
TT
21372021-03-31 Tom Tromey <tom@tromey.com>
2138
2139 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2140 with dw2_map_matching_symbols.
2141 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2142 dw2_expand_symtabs_matching.
2143
3570682a
TT
21442021-03-31 Tom Tromey <tromey@adacore.com>
2145
2146 * dwarf2/stringify.h: Fix typo.
2147
8a91fbdf
SM
21482021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2149
2150 PR gdb/27541
2151 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2152 with objfiles using READNOW.
2153
9f67fc59
TT
21542021-03-29 Tom Tromey <tromey@adacore.com>
2155
2156 * top.c (check_frame_language_change): Update.
2157 * language.c (language_info): Remove parameter.
2158 * language.h (language_info): Remove parameter.
2159
9b8ffbf4
LM
21602021-03-29 Luis Machado <luis.machado@linaro.org>
2161
2162 * compile/compile.c (get_args): Don't add empty argv entries.
2163
25b48839
RO
21642021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2165
2166 gdb:
2167 * procfs.c (procfs_target::attach): Define inf.
2168 Use it.
2169 (procfs_target::create_inferior): Likewise.
2170
edc02ceb
TT
21712021-03-28 Tom Tromey <tom@tromey.com>
2172
2173 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2174 (elf_symfile_read): Simplify.
2175 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2176 (make_lazy_dwarf_reader): New function.
2177 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2178 (dwarf2_initialize_objfile): Return void. Remove index_kind
2179 parameter. Push on 'qf' list.
2180 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2181 type. Remove 'index_kind' parameter.
2182 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2183
6e23d91a
TT
21842021-03-27 Tom Tromey <tom@tromey.com>
2185
2186 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2187
594b8948
TT
21882021-03-27 Tom Tromey <tom@tromey.com>
2189
2190 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2191
efe1ecd8
LS
21922021-03-26 Lancelot Six <lsix@lancelotsix.com>
2193
2194 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2195 rid of 'local'.
2196
f4655dee
TT
21972021-03-26 Tom Tromey <tom@tromey.com>
2198
2199 * symtab.c (struct output_source_filename_data): Add 'output'
2200 method and operator().
2201 (output_source_filename_data::output): Rename from
2202 output_source_filename.
2203 (output_partial_symbol_filename): Remove.
2204 (info_sources_command): Update.
2205 (struct add_partial_filename_data): Add operator().
2206 (add_partial_filename_data::operator()): Rename from
2207 maybe_add_partial_symtab_filename.
2208 (make_source_files_completion_list): Update.
2209 * symfile.c (quick_symbol_functions): Update.
2210 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2211 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2212 'need_fullname'. Remove 'data' parameter.
2213 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2214 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2215 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2216 Change type of 'fun' and 'need_fullname'. Remove 'data'
2217 parameter.
2218 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2219 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2220 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2221 parameter.
2222 (mi_cmd_file_list_exec_source_files): Update.
2223 * dwarf2/read.c
2224 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2225
2315bb2d
TT
22262021-03-26 Tom Tromey <tom@tromey.com>
2227
2228 * ada-lang.c (struct match_data): Add operator().
2229 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2230 (callback): Remove 'callback'.
2231
e2cd5ca4
TT
22322021-03-26 Tom Tromey <tom@tromey.com>
2233
2234 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2235 call make_ignore_params once.
2236
cd43f63e
TT
22372021-03-26 Tom Tromey <tom@tromey.com>
2238
2239 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2240 "user" check.
2241
b4b1a226
SM
22422021-03-26 Simon Marchi <simon.marchi@efficios.com>
2243 Pedro Alves <pedro@palves.net>
2244
2245 * async-event.c: Include "infrun.h".
2246 (async_event_handler_marked): New.
2247 * async-event.h (async_event_handler_marked): Declare.
2248 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2249 inferior before calling target method. Don't commit-resumed if
2250 target_has_pending_events is true.
2251 * remote.c (remote_target::has_pending_events): New.
2252 * target-delegates.c: Regenerate.
2253 * target.c (target_has_pending_events): New.
2254 * target.h (target_ops::has_pending_events): New target method.
2255 (target_has_pending_events): New.
2256
1192f124
SM
22572021-03-26 Simon Marchi <simon.marchi@efficios.com>
2258 Pedro Alves <pedro@palves.net>
2259
2260 * infcmd.c (run_command_1, attach_command, detach_command)
2261 (interrupt_target_1): Use scoped_disable_commit_resumed.
2262 * infrun.c (do_target_resume): Remove
2263 target_commit_resume call.
2264 (commit_resume_all_targets): Remove.
2265 (maybe_set_commit_resumed_all_targets): New.
2266 (maybe_call_commit_resumed_all_targets): New.
2267 (enable_commit_resumed): New.
2268 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2269 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2270 (scoped_disable_commit_resumed::reset)
2271 (scoped_disable_commit_resumed::reset_and_commit)
2272 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2273 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2274 New.
2275 (proceed): Use scoped_disable_commit_resumed and
2276 maybe_call_commit_resumed_all_targets.
2277 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2278 * infrun.h (struct scoped_disable_commit_resumed): New.
2279 (maybe_call_commit_resumed_all_process_targets): New.
2280 (struct scoped_enable_commit_resumed): New.
2281 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2282 * process-stratum-target.h (class process_stratum_target):
2283 <commit_resumed_state>: New.
2284 * record-full.c (record_full_wait_1): Change commit_resumed_state
2285 around calling commit_resumed.
2286 * remote.c (class remote_target) <commit_resume>: Rename to...
2287 <commit_resumed>: ... this.
2288 (struct stop_reply): Move up.
2289 (remote_target::commit_resume): Rename to...
2290 (remote_target::commit_resumed): ... this. Check if there is any
2291 thread pending vCont resume.
2292 (remote_target::remote_stop_ns): Generate stop replies for resumed
2293 but pending vCont threads.
2294 (remote_target::wait_ns): Add gdb_assert.
2295 * target-delegates.c: Regenerate.
2296 * target.c (target_wait, target_resume): Assert that the current
2297 process_stratum target isn't in commit-resumed state.
2298 (defer_target_commit_resume): Remove.
2299 (target_commit_resume): Remove.
2300 (target_commit_resumed): New.
2301 (make_scoped_defer_target_commit_resume): Remove.
2302 (target_stop): Assert that the current process_stratum target
2303 isn't in commit-resumed state.
2304 * target.h (struct target_ops) <commit_resume>: Rename to ...
2305 <commit_resumed>: ... this.
2306 (target_commit_resume): Remove.
2307 (target_commit_resumed): New.
2308 (make_scoped_defer_target_commit_resume): Remove.
2309 * top.c (wait_sync_command_done): Use
2310 scoped_enable_commit_resumed.
2311
e5b9b39f
PA
23122021-03-26 Pedro Alves <pedro@palves.net>
2313
2314 * target.c (target_always_non_stop_p): Also check whether the
2315 target can async.
2316
bab287cd
TT
23172021-03-26 Tom Tromey <tom@tromey.com>
2318
2319 * dwarf2/read.c (dwarf2_read_debug_names)
2320 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2321 (dw2_debug_names_iterator::next, create_type_unit_group):
2322 Simplify.
2323
eff4f69d
PA
23242021-03-25 Pedro Alves <pedro@palves.net>
2325
2326 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2327 around setting the breakpoint.
2328
323fd5b9
PA
23292021-03-25 Pedro Alves <pedro@palves.net>
2330
2331 * remote.c
2332 (remote_target::check_pending_events_prevent_wildcard_vcont):
2333 Check whether the event's ptid is not null_ptid before looking up
2334 the corresponding inferior.
2335
d3cbca38
CD
23362021-03-24 Changbin Du <changbin.du@gmail.com>
2337
2338 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2339 read_code.
2340
328d42d8
SM
23412021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2342
2343 * target.h (current_top_target): Remove, make callers use the
2344 current inferior instead.
2345 * target.c (current_top_target): Remove.
2346
d777bf0d
SM
23472021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2348
2349 * target.h (target_shortname): Change to function declaration.
2350 (target_longname): Likewise.
2351 (target_attach_no_wait): Likewise.
2352 (target_post_attach): Likewise.
2353 (target_prepare_to_store): Likewise.
2354 (target_supports_enable_disable_tracepoint): Likewise.
2355 (target_supports_string_tracing): Likewise.
2356 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2357 (target_supports_dumpcore): Likewise.
2358 (target_dumpcore): Likewise.
2359 (target_can_run_breakpoint_commands): Likewise.
2360 (target_files_info): Likewise.
2361 (target_post_startup_inferior): Likewise.
2362 (target_insert_fork_catchpoint): Likewise.
2363 (target_remove_fork_catchpoint): Likewise.
2364 (target_insert_vfork_catchpoint): Likewise.
2365 (target_remove_vfork_catchpoint): Likewise.
2366 (target_insert_exec_catchpoint): Likewise.
2367 (target_remove_exec_catchpoint): Likewise.
2368 (target_set_syscall_catchpoint): Likewise.
2369 (target_rcmd): Likewise.
2370 (target_can_lock_scheduler): Likewise.
2371 (target_can_async_p): Likewise.
2372 (target_is_async_p): Likewise.
2373 (target_execution_direction): Likewise.
2374 (target_extra_thread_info): Likewise.
2375 (target_pid_to_exec_file): Likewise.
2376 (target_thread_architecture): Likewise.
2377 (target_find_memory_regions): Likewise.
2378 (target_make_corefile_notes): Likewise.
2379 (target_get_bookmark): Likewise.
2380 (target_goto_bookmark): Likewise.
2381 (target_stopped_by_watchpoint): Likewise.
2382 (target_stopped_by_sw_breakpoint): Likewise.
2383 (target_supports_stopped_by_sw_breakpoint): Likewise.
2384 (target_stopped_by_hw_breakpoint): Likewise.
2385 (target_supports_stopped_by_hw_breakpoint): Likewise.
2386 (target_have_steppable_watchpoint): Likewise.
2387 (target_can_use_hardware_watchpoint): Likewise.
2388 (target_region_ok_for_hw_watchpoint): Likewise.
2389 (target_can_do_single_step): Likewise.
2390 (target_insert_watchpoint): Likewise.
2391 (target_remove_watchpoint): Likewise.
2392 (target_insert_hw_breakpoint): Likewise.
2393 (target_remove_hw_breakpoint): Likewise.
2394 (target_can_accel_watchpoint_condition): Likewise.
2395 (target_can_execute_reverse): Likewise.
2396 (target_get_ada_task_ptid): Likewise.
2397 (target_filesystem_is_local): Likewise.
2398 (target_trace_init): Likewise.
2399 (target_download_tracepoint): Likewise.
2400 (target_can_download_tracepoint): Likewise.
2401 (target_download_trace_state_variable): Likewise.
2402 (target_enable_tracepoint): Likewise.
2403 (target_disable_tracepoint): Likewise.
2404 (target_trace_start): Likewise.
2405 (target_trace_set_readonly_regions): Likewise.
2406 (target_get_trace_status): Likewise.
2407 (target_get_tracepoint_status): Likewise.
2408 (target_trace_stop): Likewise.
2409 (target_trace_find): Likewise.
2410 (target_get_trace_state_variable_value): Likewise.
2411 (target_save_trace_data): Likewise.
2412 (target_upload_tracepoints): Likewise.
2413 (target_upload_trace_state_variables): Likewise.
2414 (target_get_raw_trace_data): Likewise.
2415 (target_get_min_fast_tracepoint_insn_len): Likewise.
2416 (target_set_disconnected_tracing): Likewise.
2417 (target_set_circular_trace_buffer): Likewise.
2418 (target_set_trace_buffer_size): Likewise.
2419 (target_set_trace_notes): Likewise.
2420 (target_get_tib_address): Likewise.
2421 (target_set_permissions): Likewise.
2422 (target_static_tracepoint_marker_at): Likewise.
2423 (target_static_tracepoint_markers_by_strid): Likewise.
2424 (target_traceframe_info): Likewise.
2425 (target_use_agent): Likewise.
2426 (target_can_use_agent): Likewise.
2427 (target_augmented_libraries_svr4_read): Likewise.
2428 (target_log_command): Likewise.
2429 * target.c (target_shortname): New.
2430 (target_longname): New.
2431 (target_attach_no_wait): New.
2432 (target_post_attach): New.
2433 (target_prepare_to_store): New.
2434 (target_supports_enable_disable_tracepoint): New.
2435 (target_supports_string_tracing): New.
2436 (target_supports_evaluation_of_breakpoint_conditions): New.
2437 (target_supports_dumpcore): New.
2438 (target_dumpcore): New.
2439 (target_can_run_breakpoint_commands): New.
2440 (target_files_info): New.
2441 (target_post_startup_inferior): New.
2442 (target_insert_fork_catchpoint): New.
2443 (target_remove_fork_catchpoint): New.
2444 (target_insert_vfork_catchpoint): New.
2445 (target_remove_vfork_catchpoint): New.
2446 (target_insert_exec_catchpoint): New.
2447 (target_remove_exec_catchpoint): New.
2448 (target_set_syscall_catchpoint): New.
2449 (target_rcmd): New.
2450 (target_can_lock_scheduler): New.
2451 (target_can_async_p): New.
2452 (target_is_async_p): New.
2453 (target_execution_direction): New.
2454 (target_extra_thread_info): New.
2455 (target_pid_to_exec_file): New.
2456 (target_thread_architecture): New.
2457 (target_find_memory_regions): New.
2458 (target_make_corefile_notes): New.
2459 (target_get_bookmark): New.
2460 (target_goto_bookmark): New.
2461 (target_stopped_by_watchpoint): New.
2462 (target_stopped_by_sw_breakpoint): New.
2463 (target_supports_stopped_by_sw_breakpoint): New.
2464 (target_stopped_by_hw_breakpoint): New.
2465 (target_supports_stopped_by_hw_breakpoint): New.
2466 (target_have_steppable_watchpoint): New.
2467 (target_can_use_hardware_watchpoint): New.
2468 (target_region_ok_for_hw_watchpoint): New.
2469 (target_can_do_single_step): New.
2470 (target_insert_watchpoint): New.
2471 (target_remove_watchpoint): New.
2472 (target_insert_hw_breakpoint): New.
2473 (target_remove_hw_breakpoint): New.
2474 (target_can_accel_watchpoint_condition): New.
2475 (target_can_execute_reverse): New.
2476 (target_get_ada_task_ptid): New.
2477 (target_filesystem_is_local): New.
2478 (target_trace_init): New.
2479 (target_download_tracepoint): New.
2480 (target_can_download_tracepoint): New.
2481 (target_download_trace_state_variable): New.
2482 (target_enable_tracepoint): New.
2483 (target_disable_tracepoint): New.
2484 (target_trace_start): New.
2485 (target_trace_set_readonly_regions): New.
2486 (target_get_trace_status): New.
2487 (target_get_tracepoint_status): New.
2488 (target_trace_stop): New.
2489 (target_trace_find): New.
2490 (target_get_trace_state_variable_value): New.
2491 (target_save_trace_data): New.
2492 (target_upload_tracepoints): New.
2493 (target_upload_trace_state_variables): New.
2494 (target_get_raw_trace_data): New.
2495 (target_get_min_fast_tracepoint_insn_len): New.
2496 (target_set_disconnected_tracing): New.
2497 (target_set_circular_trace_buffer): New.
2498 (target_set_trace_buffer_size): New.
2499 (target_set_trace_notes): New.
2500 (target_get_tib_address): New.
2501 (target_set_permissions): New.
2502 (target_static_tracepoint_marker_at): New.
2503 (target_static_tracepoint_markers_by_strid): New.
2504 (target_traceframe_info): New.
2505 (target_use_agent): New.
2506 (target_can_use_agent): New.
2507 (target_augmented_libraries_svr4_read): New.
2508 (target_log_command): New.
2509 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2510 * infrun.c (set_schedlock_func): Adjust.
2511 * mi/mi-main.c (exec_reverse_continue): Adjust.
2512 * reverse.c (exec_reverse_once): Adjust.
2513 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2514 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2515 * remote-sim.c (gdbsim_target::detach): Adjust.
2516 (gdbsim_target::files_info): Adjust.
2517
b64f703b
TT
25182021-03-24 Tom Tromey <tom@tromey.com>
2519
2520 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2521 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2522 (check_match, dw2_expand_symtabs_matching)
2523 (dwarf2_debug_names_index::map_matching_symbols)
2524 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2525
68f115f8
KS
25262021-03-24 Keith Seitz <keiths@redhat.com>
2527
2528 * compile/compile-cplus-types.c
2529 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2530 thinko.
2531
41c0087b
SM
25322021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2533
2534 * gdbarch.sh (gdbarch_data_registry): Make static.
2535 * gdbarch.c: Re-generate.
2536
ce192338
LM
25372021-03-24 Luis Machado <luis.machado@linaro.org>
2538
2539 * NEWS: Mention memory tagging changes.
2540
bef382e6
LM
25412021-03-24 Luis Machado <luis.machado@linaro.org>
2542
2543 * printcmd.c (decode_format): Handle the 'm' modifier.
2544 (do_examine): Display allocation tags when required/supported.
2545 (should_validate_memtags): New function.
2546 (print_command_1): Display memory tag mismatches.
2547 * valprint.c (show_memory_tag_violations): New function.
2548 (value_print_option_defs): Add new option "memory-tag-violations".
2549 (user_print_options) <memory_tag_violations>: Initialize to 1.
2550 * valprint.h (struct format_data) <print_tags>: New field.
2551 (value_print_options) <memory_tag_violations>: New field.
2552
48136e00
LM
25532021-03-24 Luis Machado <luis.machado@linaro.org>
2554
2555 * printcmd.c: Include gdbsupport/rsp-low.h.
2556 (memory_tag_list): New static global.
2557 (process_print_command_args): Factored out of
2558 print_command_1.
2559 (print_command_1): Use process_print_command_args.
2560 (show_addr_not_tagged, show_memory_tagging_unsupported)
2561 (memory_tag_command, memory_tag_print_tag_command)
2562 (memory_tag_print_logical_tag_command)
2563 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2564 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2565 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2566 functions.
2567 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2568
ffcc2a15
LM
25692021-03-24 Luis Machado <luis.machado@linaro.org>
2570
2571 * aarch64-linux-tdep.c
2572 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2573 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2574
cf44c9fa
LM
25752021-03-24 Luis Machado <luis.machado@linaro.org>
2576
2577 * aarch64-linux-tdep.c
2578 (aarch64_linux_report_signal_info): New function.
2579 (aarch64_linux_init_abi): Register
2580 aarch64_linux_report_signal_info as the report_signal_info hook.
2581 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2582 (SEGV_MTESERR): Define.
2583
b4a7d4fc
LM
25842021-03-24 Luis Machado <luis.machado@linaro.org>
2585
2586 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2587 (aarch64_linux_ltag_tests): New function.
2588 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2589
c7782e50
LM
25902021-03-24 Luis Machado <luis.machado@linaro.org>
2591
2592 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2593 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2594 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2595 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2596 functions.
2597 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2598 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2599 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2600 (aarch64_linux_get_ltag): New functions.
2601 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2602 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2603 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2604 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2605
1e735120
LM
26062021-03-24 Luis Machado <luis.machado@linaro.org>
2607
2608 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2609 bit.
2610 (struct smaps_data): New struct.
2611 (decode_vmflags): Handle the 'mt' flag.
2612 (parse_smaps_data): New function, refactored from
2613 linux_find_memory_regions_full.
2614 (linux_address_in_memtag_page): New function.
2615 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2616 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2617
93e447c6
LM
26182021-03-24 Luis Machado <luis.machado@linaro.org>
2619
2620 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2621 instead of char arrays.
2622
4601818e
LM
26232021-03-24 Luis Machado <luis.machado@linaro.org>
2624
2625 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2626 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2627 nat/aarch64-mte-linux-ptrace.h.
2628 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2629 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2630 override.
2631 <fetch_memtags>: New method override.
2632 <store_memtags>: New method override.
2633 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2634 (aarch64_linux_nat_target::fetch_memtags): New method.
2635 (aarch64_linux_nat_target::store_memtags): New method.
2636 * arch/aarch64-mte-linux.c: New file.
2637 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2638 (AARCH64_MTE_GRANULE_SIZE): Define.
2639 (aarch64_memtag_type): New enum.
2640 (aarch64_mte_get_tag_granules): New prototype.
2641 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2642 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2643 * nat/aarch64-mte-linux-ptrace.c: New file.
2644 * nat/aarch64-mte-linux-ptrace.h: New file.
2645
3f3bd8b8
LM
26462021-03-24 Luis Machado <luis.machado@linaro.org>
2647
2648 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2649 * nat/aarch64-mte-linux-ptrace.h: New file.
2650
5e984dbf
LM
26512021-03-24 Luis Machado <luis.machado@linaro.org>
2652
2653 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2654 (store_mteregs_to_thread): New function.
2655 (aarch64_linux_nat_target::fetch_registers): Update to call
2656 fetch_mteregs_from_thread.
2657 (aarch64_linux_nat_target::store_registers): Update to call
2658 store_mteregs_to_thread.
2659 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2660 (aarch64_cannot_store_register): Handle MTE registers.
2661 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2662 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2663 <has_mte>: New method.
2664 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2665
c1bd443b
LM
26662021-03-24 Luis Machado <luis.machado@linaro.org>
2667
2668 * aarch64-linux-nat.c
2669 (aarch64_linux_nat_target::read_description): Take MTE flag into
2670 account.
2671 Slight refactor to hwcap flag checking.
2672 * aarch64-linux-tdep.c
2673 (aarch64_linux_core_read_description): Likewise.
2674 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2675 MTE.
2676 (aarch64_read_description): Add mte_p parameter and update to use it.
2677 Update the documentation.
2678 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2679 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2680 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2681 (aarch64_create_target_description): Add mte_p parameter and update
2682 the code to use it.
2683 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2684 parameter.
2685 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2686 * features/aarch64-mte.c: New file, generated.
2687 * features/aarch64-mte.xml: New file.
2688
04245125
LM
26892021-03-24 Luis Machado <luis.machado@linaro.org>
2690
2691 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2692 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2693 * aarch64-linux-tdep.c: Likewise
2694 * arch/aarch64-mte-linux.h: New file.
2695
754487e2
LM
26962021-03-24 Luis Machado <luis.machado@linaro.org>
2697
2698 * remote: Include gdbsupport/selftest.h.
2699 (test_memory_tagging_functions): New function.
2700 (_initialize_remote): Register test_memory_tagging_functions.
2701
2c2e7f87
LM
27022021-03-24 Luis Machado <luis.machado@linaro.org>
2703
2704 * remote.c (PACKET_memory_tagging_feature): New enum.
2705 (remote_memory_tagging_p): New function.
2706 (remote_protocol_features): New "memory-tagging" entry.
2707 (remote_target::remote_query_supported): Handle memory tagging
2708 support.
2709 (remote_target::supports_memory_tagging): Implement.
2710 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2711 (create_store_memtags_request): New functions.
2712 (remote_target::fetch_memtags): Implement.
2713 (remote_target::store_memtags): Implement.
2714 (_initialize_remote): Add new "memory-tagging-feature"
2715 config command.
2716
c193949e
LM
27172021-03-24 Luis Machado <luis.machado@linaro.org>
2718
2719 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2720 (default_memtag_matches_p, default_set_memtags)
2721 (default_get_memtag): New functions.
2722 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2723 (default_memtag_matches_p, default_set_memtags)
2724 (default_get_memtag): New prototypes.
2725 * gdbarch.c: Regenerate.
2726 * gdbarch.h: Regenerate.
2727 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2728 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2729 (enum memtag_type): New enum.
2730
dbe692af
LM
27312021-03-24 Luis Machado <luis.machado@linaro.org>
2732
2733 * remote.c (remote_target) <supports_memory_tagging>: New method
2734 override.
2735 <fetch_memtags>: New method override.
2736 <store_memtags>: New method override.
2737 (remote_target::supports_memory_tagging): New method.
2738 (remote_target::fetch_memtags): New method.
2739 (remote_target::store_memtags): New method.
2740 * target-delegates.c: Regenerate.
2741 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2742 method.
2743 <fetch_memtags>: New virtual method.
2744 <store_memtags>: New virtual method.
2745 (target_supports_memory_tagging): Define.
2746 (target_fetch_memtags): Define.
2747 (target_store_memtags): Define.
2748 * target-debug.h (target_debug_print_size_t)
2749 (target_debug_print_const_gdb_byte_vector_r)
2750 (target_debug_print_gdb_byte_vector_r): New functions.
2751
66848ebc
SM
27522021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2753
2754 * target.h (target_longname): Remove.
2755
c8fbd44a
SM
27562021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2757
2758 * target.h (target_is_pushed): Remove, update callers to use
2759 inferior::target_is_pushed instead.
2760 * target.c (target_is_pushed): Remove.
2761
02980c56
SM
27622021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2763
2764 * target.h (push_target): Remove, update callers to use
2765 inferior::push_target.
2766 * target.c (push_target): Remove.
2767 * inferior.h (class inferior) <push_target>: New overload.
2768
fadf6add
SM
27692021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2770
2771 * target.h (unpush_target): Remove, update all callers
2772 to use `inferior::unpush_target` instead.
2773 (struct target_unpusher) <operator()>: Just declare.
2774 * target.c (unpush_target): Remove.
2775 (target_unpusher::operator()): New.
2776
702cf3f5
AB
27772021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2780 error.
2781 (process_full_comp_unit): Validate the top-level tag before
2782 processing the first DIE.
2783 (read_func_scope): Ensure we have a valid builder.
2784
46fec642
AB
27852021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2786
2787 * objc-lang.c (objc_demangle): Renamed to
2788 objc_language::demangle_symbol, and moved later in the file.
2789 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2790 member function.
2791 (objc_language::demangle_symbol): Defined outside of class
2792 declaration. The definition is the old objc_demangle with NULL
2793 changed to nullptr, and if conditions relating to nullptr pointers
2794 or null character checks made explicit.
2795 * objc-lang.h (objc_demangle): Delete declaration.
2796
08dedd66
ML
27972021-03-22 Martin Liska <mliska@suse.cz>
2798
2799 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2800 (_initialize_arm_tdep): Likewise.
2801
eb36a3eb
TT
28022021-03-20 Tom Tromey <tom@tromey.com>
2803
2804 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2805 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2806 * psymtab.h (make_psymbol_functions): Don't declare.
2807 * psymtab.c (make_psymbol_functions): Remove.
2808 (maintenance_print_psymbols): Update.
2809 * psympriv.h (struct psymbol_functions): Add no-argument
2810 constructor.
2811 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2812 <partial_symtabs>: Remove.
2813 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2814 * elfread.c (read_partial_symbols): Update.
2815 (elf_symfile_read): Remove check for existing partial symbols.
2816 Don't clear "qf".
2817 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2818 partial symbols.
2819 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2820 partial symtabs.
2821 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2822 parameter.
2823 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2824 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2825
e1114590
TT
28262021-03-20 Tom Tromey <tom@tromey.com>
2827
2828 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2829 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2830 * symfile-debug.c (objfile::has_partial_symbols)
2831 (objfile::find_last_source_symtab)
2832 (objfile::forget_cached_source_info)
2833 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2834 (objfile::print_stats, objfile::dump)
2835 (objfile::expand_symtabs_for_function)
2836 (objfile::expand_all_symtabs)
2837 (objfile::expand_symtabs_with_fullname)
2838 (objfile::map_matching_symbols)
2839 (objfile::expand_symtabs_matching)
2840 (objfile::find_pc_sect_compunit_symtab)
2841 (objfile::map_symbol_filenames)
2842 (objfile::find_compunit_symtab_by_address)
2843 (objfile::lookup_global_symbol_language)
2844 (objfile::require_partial_symbols): Update.
2845 * psymtab.c (maintenance_print_psymbols)
2846 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2847 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2848 * objfiles.c (objfile_relocate1): Update.
2849 * elfread.c (elf_symfile_read): Update.
2850
de909f0b
TT
28512021-03-20 Tom Tromey <tom@tromey.com>
2852
2853 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2854
caf8c1e5
TT
28552021-03-20 Tom Tromey <tom@tromey.com>
2856
2857 * psymtab.c (psymbol_functions::count_psyms): Rename.
2858 (psymbol_functions::print_stats): Update.
2859 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2860 method.
2861
3aa31ce7
TT
28622021-03-20 Tom Tromey <tom@tromey.com>
2863
2864 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2865 (psymbol_functions::find_pc_sect_psymtab): Rename.
2866 (psymbol_functions::find_pc_sect_compunit_symtab)
2867 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2868 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2869 Declare new method.
2870 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2871
7b249e47
TT
28722021-03-20 Tom Tromey <tom@tromey.com>
2873
2874 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2875 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2876 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2877 parameter.
2878 (add_psymbol_to_bcache): Remove.
2879 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2880 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2881 Likewise.
2882 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2883 <add_psymbol>: Likewise.
2884 (standard_psymtab, legacy_psymtab): Likewise.
2885 * mdebugread.c (parse_partial_symbols): Update.
2886 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2887 (handle_psymbol_enumerators): Update.
2888 (new_psymtab): Add partial_symtabs parameter.
2889 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2890 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2891 parameter.
2892 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2893 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2894 Update.
2895 * dbxread.c (read_dbx_symtab): Update.
2896 (start_psymtab): Add partial_symtabs parameter.
2897 (dbx_end_psymtab): Update.
2898 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2899 (ctf_psymtab): Add partial_symtabs parameter.
2900 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2901 Update.
2902 (scan_partial_symbols): Add partial_symtabs parameter.
2903 (scan_partial_symbols, elfctf_build_psymtabs)
2904 (ctf_psymtab_add_enums): Update.
2905
d1eef86d
TT
29062021-03-20 Tom Tromey <tom@tromey.com>
2907
2908 * symfile.c (read_symbols): Use objfile method.
2909 * symfile-debug.c (objfile::require_partial_symbols): New method.
2910 * psymtab.h (require_partial_symbols): Don't declare.
2911 * psymtab.c (require_partial_symbols): Use objfile method. Now
2912 static.
2913 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2914 (psymbol_functions::lookup_symbol)
2915 (psymbol_functions::lookup_global_symbol_language)
2916 (psymbol_functions::find_last_source_symtab)
2917 (psymbol_functions::forget_cached_source_info)
2918 (psymbol_functions::print_stats)
2919 (psymbol_functions::expand_symtabs_for_function)
2920 (psymbol_functions::expand_all_symtabs)
2921 (psymbol_functions::expand_symtabs_with_fullname)
2922 (psymbol_functions::map_symbol_filenames)
2923 (psymbol_functions::map_matching_symbols)
2924 (psymbol_functions::expand_symtabs_matching)
2925 (psymbol_functions::find_compunit_symtab_by_address)
2926 (maintenance_print_psymbols, maintenance_info_psymtabs)
2927 (maintenance_check_psymtabs): Update.
2928 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2929 new method.
2930
eb00e468
TT
29312021-03-20 Tom Tromey <tom@tromey.com>
2932
2933 * xcoffread.c (xcoff_sym_fns): Update.
2934 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2935 * symfile-debug.c (objfile::has_partial_symbols): Use
2936 can_lazily_read_symbols.
2937 (debug_sym_read_psymbols): Remove.
2938 (debug_sym_fns, install_symfile_debug_logging): Update.
2939 * quick-symbol.h (struct quick_symbol_functions)
2940 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2941 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2942 * mipsread.c (ecoff_sym_fns): Update.
2943 * machoread.c (macho_sym_fns): Update.
2944 * elfread.c (struct lazy_dwarf_reader): New.
2945 (elf_symfile_read): Update.
2946 (read_psyms): Now a method of lazy_dwarf_reader.
2947 (elf_sym_fns): Update.
2948 (elf_sym_fns_lazy_psyms): Remove.
2949 * dbxread.c (aout_sym_fns): Update.
2950 * coffread.c (coff_sym_fns): Update.
2951
b29b98cf
TT
29522021-03-20 Tom Tromey <tom@tromey.com>
2953
2954 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2955 (reread_symbols): Move reset_psymtabs call later.
2956 * objfiles.c (objfile::objfile): Don't initialize
2957 partial_symtabs.
2958
17d66340
TT
29592021-03-20 Tom Tromey <tom@tromey.com>
2960
2961 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2962 set_partial_symtabs.
2963 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2964 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2965 parameter.
2966 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2967 parameter.
2968 (psymbol_functions::find_pc_sect_compunit_symtab)
2969 (psymbol_functions::print_stats, psymbol_functions::dump)
2970 (psymbol_functions::has_symbols): Update.
2971 (make_psymbol_functions, dump_psymtab_addrmap): Add
2972 partial_symtabs parameter.
2973 (maintenance_print_psymbols): Update.
2974 (psymbol_functions::expand_symtabs_matching): Update.
2975 * psympriv.h (struct psymbol_functions): Add constructor.
2976 <m_partial_symtabs>: New member.
2977 <set_partial_symtabs>: New method.
2978
84685904
TT
29792021-03-20 Tom Tromey <tom@tromey.com>
2980
2981 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2982 parameter.
2983 (process_psymtab_comp_unit_reader)
2984 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2985 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2986 Reference psymtabs via per_bfd.
2987
79cc99f6
TT
29882021-03-20 Tom Tromey <tom@tromey.com>
2989
2990 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2991 Remove.
2992 (add_address_entry): Remove objfile parameter.
2993 (add_address_entry_worker): Update.
2994 (write_address_map): Replace objfile parameter with per_bfd.
2995 (write_gdbindex, write_psymtabs_to_index): Update.
2996
4829711b
TT
29972021-03-20 Tom Tromey <tom@tromey.com>
2998
2999 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3000 print_bcache parameter.
3001 * symfile-debug.c (objfile::print_stats): Add print_bcache
3002 parameter.
3003 * quick-symbol.h (struct quick_symbol_functions)
3004 <print_stats>: Add print_bcache parameter.
3005 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3006 code to psymtab.c.
3007 (print_objfile_statistics): Move psymtab code to psymtab.c.
3008 * psymtab.c (count_psyms): Move from symmisc.c.
3009 (psymbol_functions::print_stats): Print partial symbol and bcache
3010 statistics. Add print_bcache parameter.
3011 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3012 (struct objfile) <print_stats>: Add print_bcache parameter.
3013 * maint.c (maintenance_print_statistics): Update.
3014
efd7398e
TT
30152021-03-20 Tom Tromey <tom@tromey.com>
3016
3017 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3018 member.
3019 * dwarf2/read.c (create_addrmap_from_index)
3020 (create_addrmap_from_aranges): Set per_bfd addrmap.
3021 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3022 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3023 per_bfd addrmap.
3024 (dwarf2_read_debug_names): Don't set partial_symtabs.
3025 (dwarf2_initialize_objfile): Likewise.
3026
51962708
TT
30272021-03-20 Tom Tromey <tom@tromey.com>
3028
3029 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3030 earlier.
3031
484b1090
TT
30322021-03-20 Tom Tromey <tom@tromey.com>
3033
3034 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3035 (~psymtab_discarder, keep): Update.
3036 <m_objfile>: Remove.
3037 <m_partial_symtabs>: New member.
3038 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3039
7e9c0476
TT
30402021-03-20 Tom Tromey <tom@tromey.com>
3041
3042 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3043 (xcoff_end_psymtab): Update.
3044 (scan_xcoff_symtab): Add partial_symtabs parameter.
3045 (xcoff_initial_scan): Update.
3046 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3047 * mdebugread.c (mdebug_build_psymtabs): Update.
3048 (parse_partial_symbols): Add partial_symtabs parameter.
3049 * dbxread.c (dbx_symfile_read): Update.
3050 (read_dbx_symtab): Add partial_symtabs parameter.
3051 (read_dbx_symtab): Update.
3052 (dbx_end_psymtab): Add partial_symtabs parameter.
3053
75336a5a
TT
30542021-03-20 Tom Tromey <tom@tromey.com>
3055
3056 * quick-symbol.h (struct quick_symbol_functions)
3057 <relocated>: New method.
3058 * psymtab.h (struct psymbol_functions) <relocated>: New
3059 method.
3060 <fill_psymbol_map>: Declare method.
3061 <m_psymbol_map>: New member.
3062 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3063 (psymbol_functions::find_compunit_symtab_by_address): Update.
3064 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3065 (struct objfile) <psymbol_map>: Remove.
3066 * objfiles.c (objfile_relocate1): Update.
3067
39298a5d
TT
30682021-03-20 Tom Tromey <tom@tromey.com>
3069
3070 * psympriv.h (struct psymbol_functions): New.
3071 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3072 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3073 (objfile::lookup_global_symbol_language): Update.
3074 * quick-symbol.h (struct quick_symbol_functions): Convert function
3075 pointers to methods. Add virtual destructor.
3076 (quick_symbol_functions_up): New typedef.
3077 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3078 (dwarf2_debug_names_functions): Don't declare.
3079 (make_psymbol_functions): Declare.
3080 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3081 (psymbol_functions::find_pc_sect_compunit_symtab)
3082 (psymbol_functions::lookup_symbol)
3083 (psymbol_functions::lookup_global_symbol_language)
3084 (psymbol_functions::find_last_source_symtab)
3085 (psymbol_functions::forget_cached_source_info)
3086 (psymbol_functions::print_stats, psymbol_functions::dump)
3087 (psymbol_functions::expand_symtabs_for_function)
3088 (psymbol_functions::expand_all_symtabs)
3089 (psymbol_functions::expand_symtabs_with_fullname)
3090 (psymbol_functions::map_symbol_filenames)
3091 (psymbol_functions::map_matching_symbols)
3092 (psymbol_functions::expand_symtabs_matching)
3093 (psymbol_functions::has_symbols)
3094 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3095 (psym_functions): Remove.
3096 (make_psymbol_functions): New function.
3097 * objfiles.h (struct objfile) <qf>: Change type.
3098 * elfread.c (elf_symfile_read): Update.
3099 * dwarf2/read.c (struct dwarf2_base_index_functions)
3100 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3101 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3102 (dwarf2_base_index_functions::find_last_source_symtab)
3103 (dwarf2_base_index_functions::forget_cached_source_info)
3104 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3105 (dwarf2_gdb_index::lookup_symbol)
3106 (dwarf2_base_index_functions::print_stats)
3107 (dwarf2_gdb_index::dump)
3108 (dwarf2_gdb_index::expand_symtabs_for_function)
3109 (dwarf2_base_index_functions::expand_all_symtabs)
3110 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3111 Rename.
3112 (dwarf2_gdb_index::map_matching_symbols): New method.
3113 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3114 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3115 (dwarf2_base_index_functions::map_symbol_filenames)
3116 (dwarf2_base_index_functions::has_symbols): Rename.
3117 (dwarf2_gdb_index_functions): Remove.
3118 (dwarf2_debug_names_index::lookup_symbol)
3119 (dwarf2_debug_names_index::dump)
3120 (dwarf2_debug_names_index::expand_symtabs_for_function)
3121 (dwarf2_debug_names_index::map_matching_symbols)
3122 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3123 (dwarf2_debug_names_functions): Remove.
3124 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3125 Declare.
3126
5c3f1e5b
TT
31272021-03-20 Tom Tromey <tom@tromey.com>
3128
3129 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3130 null.
3131 * xcoffread.c (xcoff_sym_fns): Update.
3132 * symfile.h (struct sym_fns) <qf>: Remove.
3133 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3134 * symfile-debug.c (objfile::has_partial_symbols)
3135 (objfile::find_last_source_symtab)
3136 (objfile::forget_cached_source_info)
3137 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3138 (objfile::print_stats, objfile::dump)
3139 (objfile::expand_symtabs_for_function)
3140 (objfile::expand_all_symtabs)
3141 (objfile::expand_symtabs_with_fullname)
3142 (objfile::map_matching_symbols)
3143 (objfile::expand_symtabs_matching)
3144 (objfile::find_pc_sect_compunit_symtab)
3145 (objfile::map_symbol_filenames)
3146 (objfile::find_compunit_symtab_by_address)
3147 (objfile::lookup_global_symbol_language, debug_sym_fns)
3148 (install_symfile_debug_logging): Update.
3149 * objfiles.h (struct objfile) <qf>: New member.
3150 * mipsread.c (ecoff_sym_fns): Update.
3151 * machoread.c (macho_sym_fns): Update.
3152 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3153 Don't declare.
3154 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3155 * dbxread.c (aout_sym_fns): Update.
3156 * coffread.c (coff_sym_fns): Update.
3157
9b99dcc8
TT
31582021-03-20 Tom Tromey <tom@tromey.com>
3159
3160 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3161 (expand_symtabs_file_matcher_ftype)
3162 (expand_symtabs_symbol_matcher_ftype)
3163 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3164 Move to quick-symbol.h.
3165 * quick-symbol.h: New file.
3166
4d080b46
TT
31672021-03-20 Tom Tromey <tom@tromey.com>
3168
3169 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3170 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3171 (basic_lookup_transparent_type_quick)
3172 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3173 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3174 Update.
3175 * symmisc.c (print_objfile_statistics, dump_objfile)
3176 (maintenance_expand_symtabs): Update.
3177 * symfile.c (symbol_file_add_with_addrs)
3178 (expand_symtabs_matching, map_symbol_filenames): Update.
3179 * symfile-debug.c (objfile::has_partial_symbols)
3180 (objfile::find_last_source_symtab)
3181 (objfile::forget_cached_source_info)
3182 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3183 (objfile::print_stats, objfile::dump)
3184 (objfile::expand_symtabs_for_function)
3185 (objfile::expand_all_symtabs)
3186 (objfile::expand_symtabs_with_fullname)
3187 (objfile::map_matching_symbols)
3188 (objfile::expand_symtabs_matching)
3189 (objfile::find_pc_sect_compunit_symtab)
3190 (objfile::map_symbol_filenames)
3191 (objfile::find_compunit_symtab_by_address)
3192 (objfile::lookup_global_symbol_language): New methods.
3193 (debug_sym_quick_functions): Remove.
3194 (debug_sym_fns, install_symfile_debug_logging): Update.
3195 * source.c (forget_cached_source_info_for_objfile)
3196 (select_source_symtab): Update.
3197 * objfiles.h (struct objfile): Add methods corresponding to
3198 quick_symbol_functions.
3199 * objfiles.c (objfile::has_partial_symbols): Move to
3200 symfile-debug.c.
3201 * linespec.c (iterate_over_all_matching_symtabs): Update.
3202 * cp-support.c (add_symbol_overload_list_qualified): Update.
3203 * ada-lang.c (add_nonlocal_symbols): Update.
3204
fae2120b
TT
32052021-03-20 Tom Tromey <tom@tromey.com>
3206
3207 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3208 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3209 bool.
3210 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3211 * psymtab.c (psym_has_symbols): Return bool.
3212 * objfiles.c (objfile::has_partial_symbols): Return bool.
3213 * dwarf2/read.c (dw2_has_symbols): Return bool.
3214
a8ad4f3c
TT
32152021-03-20 Tom Tromey <tom@tromey.com>
3216
3217 * symfile.c (read_symbols): Update.
3218 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3219 (objfile_has_partial_symbols): Don't declare.
3220 * objfiles.c (objfile::has_partial_symbols): Rename from
3221 objfile_has_partial_symbols.
3222 (objfile_has_symbols, have_partial_symbols): Update.
3223 * elfread.c (elf_symfile_read): Update.
3224 * dwarf2/read.c (dwarf2_has_info): Update.
3225 * coffread.c (coff_symfile_read): Update.
3226
70182375
TT
32272021-03-20 Tom Tromey <tom@tromey.com>
3228
3229 * coffread.c: Include dwarf2/public.h.
3230 * dwarf2/frame.c: Include dwarf2/public.h.
3231 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3232 * dwarf2/public.h: New file.
3233 * dwarf2/read.c: Include dwarf2/public.h.
3234 * elfread.c: Include dwarf2/public.h.
3235 * machoread.c: Include dwarf2/public.h.
3236 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3237 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3238 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3239 * xcoffread.c: Include dwarf2/public.h.
3240
18038e63
TT
32412021-03-20 Tom Tromey <tom@tromey.com>
3242
3243 * symfile.h (enum dwarf2_section_enum)
3244 (dwarf2_get_section_info): Move to dwarf2/read.h.
3245 * dwarf2/read.h (enum dwarf2_section_enum)
3246 (dwarf2_get_section_info): Move from symfile.h.
3247
219f56b4
PA
32482021-03-19 Pedro Alves <pedro@palves.net>
3249
3250 * thread.c (any_thread_of_inferior): Check if there's a selected
3251 thread before calling inferior_thread().
3252
15310fd4
TT
32532021-03-18 Tom Tromey <tromey@adacore.com>
3254
3255 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3256 get_DW_UT_name.
3257 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3258 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3259
763b8efd
AB
32602021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * python/py-param.c (get_set_value): Update header comment.
3263
f058c521
SM
32642021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3265
3266 * infrun.c (check_multi_target_resumption): Remove argument to
3267 all_non_exited_inferiors.
3268
383228bc
CB
32692021-03-16 Christian Biesinger <cbiesinger@google.com>
3270
3271 * windows-nat.c (windows_init_thread_list): Add message to
3272 debug log.
3273
7807d76a
AB
32742021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3275
3276 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3277 well as PyLong_Check for Python 2.
3278
675da9a5
TT
32792021-03-15 Tom Tromey <tromey@adacore.com>
3280
3281 PR build/27579:
3282 * rust-exp.y (maker_map): Use gdb::hash_enum.
3283 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3284
4800761a
SM
32852021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3286
3287 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3288 end of debug print.
3289
eb5dd737
SM
32902021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3291
3292 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3293 parameter, adjust caller.
3294
6813ceb0
TT
32952021-03-15 Tom Tromey <tromey@adacore.com>
3296
3297 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3298
3b5c4de0
TT
32992021-03-15 Tom Tromey <tromey@adacore.com>
3300
3301 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3302 ada_ensure_varsize_limit.
3303
c04da66c
TT
33042021-03-15 Tom Tromey <tromey@adacore.com>
3305
3306 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3307 fixed-point.
3308 * ada-exp.y (maybe_overload): New function.
3309 (ada_wrap_overload): New function.
3310 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3311 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3312 (or_else_exp, xor_exp, primary): Update.
3313
9863c3b5
TT
33142021-03-15 Tom Tromey <tromey@adacore.com>
3315
3316 PR ada/27545:
3317 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3318 call for tagged type.
3319
1ac74522
TT
33202021-03-15 Tom Tromey <tromey@adacore.com>
3321
3322 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3323 assignment.
3324
207582c0
TT
33252021-03-15 Tom Tromey <tromey@adacore.com>
3326
3327 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3328 container.
3329 (ada_assign_operation::evaluate): Update.
3330 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3331 Change return type.
3332
8d624a9d
FW
33332021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3334
3335 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3336
ba6a0ef3
AB
33372021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * python/python.c (gdbpy_source_objfile_script): Use
3340 make_scoped_restore to restore gdbpy_current_objfile.
3341 (gdbpy_execute_objfile_script): Likewise.
3342
7c290a04
TT
33432021-03-14 Tom Tromey <tom@tromey.com>
3344
3345 * dwarf2/read.c (read_attribute_value): Use cu_header
3346 consistently.
3347
0280fdcc
TT
33482021-03-14 Tom Tromey <tom@tromey.com>
3349
3350 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3351 (peek_die_abbrev): Use reader.abfd.
3352
a9f172c6
TT
33532021-03-14 Tom Tromey <tom@tromey.com>
3354
3355 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3356 m_header_read_in.
3357
7c32eebb
TT
33582021-03-13 Tom Tromey <tom@tromey.com>
3359
3360 * dwarf2/read.c (struct partial_die_info): Update.
3361 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3362 (load_partial_dies, partial_die_info::partial_die_info): Update.
3363 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3364
27012aba
TT
33652021-03-13 Tom Tromey <tom@tromey.com>
3366
3367 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3368
fece451c
CB
33692021-03-12 Christian Biesinger <cbiesinger@google.com>
3370
3371 PR threads/27239
3372 * cp-support.c: Use scoped_segv_handler_restore.
3373 * event-top.c (thread_local_segv_handler): Made static.
3374 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3375 New function.
3376 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3377 function.
3378 * event-top.h (class scoped_segv_handler_restore): New class.
3379 (thread_local_segv_handler): Removed.
3380
7056f312
TT
33812021-03-10 Tom Tromey <tromey@adacore.com>
3382
3383 * parser-defs.h (parser_state): Change completion to bool.
3384 <parse_completion>: Likewise.
3385 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3386 (ada_resolve_variable, ada_resolve_function): Update.
3387 * ada-lang.c (ada_find_operator_symbol): Change
3388 parse_completion to bool.
3389 (ada_resolve_funcall, ada_resolve_variable)
3390 (ada_resolve_function): Likewise.
3391
ccdc02ed
TT
33922021-03-09 Tom Tromey <tromey@adacore.com>
3393
3394 * eval.c (operation::evaluate_funcall): Use function formal
3395 parameter types when evaluating.
3396
fbb1aace
AB
33972021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3400 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3401 and owner to m_owner.
3402
611aa09d
FW
34032021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3404
3405 * f-exp.h (eval_op_f_loc): Declare.
3406 (expr::fortran_loc_operation): New typedef.
3407 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3408 UNOP_INTRINSIC.
3409 (f77_keywords): Add LOC keyword.
3410 * f-lang.c (eval_op_f_loc): New function.
3411 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3412
eef32f59
AB
34132021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * f-exp.h (eval_op_f_array_shape): Declare.
3416 (fortran_array_shape_operation): New type.
3417 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3418 UNOP_INTRINSIC.
3419 (f77_keywords): Add "shape" keyword.
3420 * f-lang.c (fortran_array_shape): New function.
3421 (eval_op_f_array_shape): New function.
3422 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3423
7ba155b3
AB
34242021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3427 of this function.
3428 (expr::fortran_array_size_1arg): New type.
3429 (expr::fortran_array_size_2arg): Likewise.
3430 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3431 UNOP_OR_BINOP_INTRINSIC.
3432 (f77_keywords): Add "size" keyword.
3433 * f-lang.c (fortran_array_size): New function.
3434 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3435 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3436
e14816a8
AB
34372021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3438
3439 * f-exp.h (eval_op_f_rank): Declare.
3440 (expr::fortran_rank_operation): New typedef.
3441 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3442 UNOP_INTRINSIC.
3443 (f77_keywords): Add "rank" keyword.
3444 * f-lang.c (eval_op_f_rank): New function.
3445 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3446
3dd93bf8
TT
34472021-03-08 Tom Tromey <tom@tromey.com>
3448
3449 * printcmd.c (set_command): Remove null check.
3450 * value.c (init_if_undefined_command): Remove null check.
3451
9c79936b
TT
34522021-03-08 Tom Tromey <tom@tromey.com>
3453
3454 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3455 Update.
3456 * p-exp.y (variable): Update.
3457 * go-exp.y (variable): Update.
3458 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3459 Remove overload for objfile.
3460 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3461 parameter.
3462 (check_objfile): Likewise.
3463 (dump_for_expression): Likewise. Remove overload for objfile.
3464 (class var_msym_value_operation): Use bound_minimal_symbol.
3465 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3466 parameter.
3467 (var_msym_value_operation::evaluate_for_address)
3468 (var_msym_value_operation::evaluate_for_sizeof)
3469 (var_msym_value_operation::evaluate_for_cast): Update.
3470 * d-exp.y (PrimaryExpression): Update.
3471 * c-exp.y (variable): Update.
3472 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3473 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3474 Update.
3475 * ada-exp.y (write_var_or_type): Update.
3476
40d07d07
TT
34772021-03-08 Tom Tromey <tom@tromey.com>
3478
3479 * parser-defs.h (exp_uses_objfile): Return bool.
3480 * parse.c (exp_uses_objfile): Return bool.
3481
0b2b0b82
TT
34822021-03-08 Tom Tromey <tom@tromey.com>
3483
3484 * value.h (eval_skip_value): Don't declare.
3485 * opencl-lang.c (eval_opencl_assign): Update.
3486 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3487 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3488 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3489 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3490 * expop.h (typeof_operation::evaluate)
3491 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3492 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3493 (cxx_cast_operation::evaluate): Update.
3494 * eval.c (eval_skip_value): Remove.
3495 (eval_op_scope, eval_op_var_entry_value)
3496 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3497 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3498 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3499 (eval_op_binary, eval_op_subscript, eval_op_equal)
3500 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3501 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3502 (eval_op_complement, eval_op_lognot, eval_op_ind)
3503 (eval_op_memval, eval_op_preinc, eval_op_predec)
3504 (eval_op_postinc, eval_op_postdec, eval_op_type)
3505 (eval_binop_assign_modify, eval_op_objc_msgcall)
3506 (eval_multi_subscript, logical_and_operation::evaluate)
3507 (logical_or_operation::evaluate, array_operation::evaluate)
3508 (operation::evaluate_for_cast)
3509 (var_msym_value_operation::evaluate_for_cast)
3510 (var_value_operation::evaluate_for_cast): Update.
3511 * c-lang.c (c_string_operation::evaluate): Update.
3512 * c-exp.h (objc_nsstring_operation::evaluate)
3513 (objc_selector_operation::evaluate): Update.
3514 * ada-lang.c (ada_assign_operation::evaluate)
3515 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3516 (ada_atr_size): Update.
3517
96db551d
TT
35182021-03-08 Tom Tromey <tom@tromey.com>
3519
3520 * eval.c: Merge "namespace" scopes.
3521
ce284361
TT
35222021-03-08 Tom Tromey <tom@tromey.com>
3523
3524 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3525 <release>: Inline.
3526 * parse.c (expr_builder::expr_builder, expr_builder::release):
3527 Remove.
3528
b9d06571
TT
35292021-03-08 Tom Tromey <tom@tromey.com>
3530
3531 * parse.c (expression::expression, expression::~expression):
3532 Remove.
3533 * expression.h (struct expression): Inline constructor. Remove
3534 destructor.
3535
79ab486e
TT
35362021-03-08 Tom Tromey <tom@tromey.com>
3537
3538 * std-operator.def (BINOP_END): Remove.
3539 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3540 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3541 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3542 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3543 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3544 BINOP_END.
3545
48fa6f23
TT
35462021-03-08 Tom Tromey <tom@tromey.com>
3547
3548 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3549
43f542e3
TT
35502021-03-08 Tom Tromey <tom@tromey.com>
3551
3552 * std-operator.def (OP_EXTENDED0): Remove.
3553
5d9ba982
TT
35542021-03-08 Tom Tromey <tom@tromey.com>
3555
3556 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3557 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3558 Remove.
3559
d357570d
TT
35602021-03-08 Tom Tromey <tom@tromey.com>
3561
3562 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3563 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3564
0922dc84
TT
35652021-03-08 Tom Tromey <tom@tromey.com>
3566
3567 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3568 * ada-lang.c (ada_binop_minmax): Update.
3569 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3570 Use BINOP_MIN and BINOP_MAX.
3571
1eaebe02
TT
35722021-03-08 Tom Tromey <tom@tromey.com>
3573
3574 * value.h (evaluate_subexp_with_coercion): Don't declare.
3575 * parse.c (exp_descriptor_standard): Remove.
3576 (expr_builder::expr_builder, expr_builder::release): Update.
3577 (expression::expression): Remove size_t parameter.
3578 (expression::~expression): Simplify.
3579 (expression::resize): Remove.
3580 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3581 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3582 (write_exp_elt_longcst, write_exp_elt_floatcst)
3583 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3584 (write_exp_string_vector, write_exp_bitstring): Remove.
3585 * p-lang.h (class pascal_language) <opcode_print_table,
3586 op_print_tab>: Remove.
3587 * p-lang.c (pascal_language::op_print_tab): Remove.
3588 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3589 Remove.
3590 * objc-lang.c (objc_op_print_tab): Remove.
3591 (class objc_language) <opcode_print_table>: Remove.
3592 * m2-lang.h (class m2_language) <opcode_print_table,
3593 op_print_tab>: Remove.
3594 * m2-lang.c (m2_language::op_print_tab): Remove.
3595 * language.h (struct language_defn) <post_parser, expression_ops,
3596 opcode_print_table>: Remove.
3597 * language.c (language_defn::expression_ops)
3598 (auto_or_unknown_language::opcode_print_table): Remove.
3599 * go-lang.h (class go_language) <opcode_print_table,
3600 op_print_tab>: Remove.
3601 * go-lang.c (go_language::op_print_tab): Remove.
3602 * f-lang.h (class f_language) <opcode_print_table>: Remove
3603 <op_print_tab>: Remove.
3604 * f-lang.c (f_language::op_print_tab): Remove.
3605 * expression.h (union exp_element): Remove.
3606 (struct expression): Remove size_t parameter from constructor.
3607 <resize>: Remove.
3608 <first_opcode>: Update.
3609 <nelts, elts>: Remove.
3610 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3611 (evaluate_subexp_standard, print_expression, op_string)
3612 (dump_raw_expression): Don't declare.
3613 * expprint.c (print_expression, print_subexp)
3614 (print_subexp_funcall, print_subexp_standard, op_string)
3615 (dump_raw_expression, dump_subexp, dump_subexp_body)
3616 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3617 (dump_prefix_expression): Update.
3618 * eval.c (evaluate_subexp): Remove.
3619 (evaluate_expression, evaluate_type): Update.
3620 (evaluate_subexpression_type): Remove.
3621 (fetch_subexp_value): Remove "pc" parameter. Update.
3622 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3623 (evaluate_subexp_standard, evaluate_subexp_for_address)
3624 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3625 (evaluate_subexp_for_cast): Remove.
3626 (parse_and_eval_type): Update.
3627 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3628 * d-lang.c (d_op_print_tab): Remove.
3629 (class d_language) <opcode_print_table>: Remove.
3630 * c-lang.h (c_op_print_tab): Don't declare.
3631 * c-lang.c (c_op_print_tab): Remove.
3632 (class c_language, class cplus_language, class asm_language, class
3633 minimal_language) <opcode_print_table>: Remove.
3634 * breakpoint.c (update_watchpoint, watchpoint_check)
3635 (watchpoint_exp_is_const, watch_command_1): Update.
3636 * ax-gdb.h (union exp_element): Don't declare.
3637 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3638 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3639 (gen_expr_binop_rest): Remove.
3640 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3641 * ada-lang.c (ada_op_print_tab): Remove.
3642 (class ada_language) <post_parser, opcode_print_table>: Remove.
3643
f2a98603
TT
36442021-03-08 Tom Tromey <tom@tromey.com>
3645
3646 * go-lang.c (go_language::expression_ops): Don't declare.
3647 * go-lang.h (class go_language) <expression_ops>: Remove.
3648 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3649 Remove.
3650 (class opencl_language) <expression_ops>: Remove.
3651 * d-lang.c (class d_language) <expression_ops>: Remove.
3652 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3653 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3654 (class c_language, class cplus_language, class asm_language)
3655 (class minimal_language) <expression_ops>: Remove.
3656
d3c54a1c
TT
36572021-03-08 Tom Tromey <tom@tromey.com>
3658
3659 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3660 (evaluate_subexp_type, assign_aggregate)
3661 (aggregate_assign_positional, aggregate_assign_from_choices)
3662 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3663 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3664 (ada_operator_check, ada_forward_operator_length)
3665 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3666 Remove.
3667 (post_parser): Update.
3668 (class ada_language) <expresssion_ops>: Remove.
3669
5871f0a3
TT
36702021-03-08 Tom Tromey <tom@tromey.com>
3671
3672 * m2-lang.h (class m2_language) <expresssion_ops,
3673 exp_descriptor_modula2>: Remove.
3674 * m2-lang.c (evaluate_subexp_modula2)
3675 (m2_language::exp_descriptor_modula2): Remove.
3676
a99be8c1
TT
36772021-03-08 Tom Tromey <tom@tromey.com>
3678
3679 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3680 <exp_descriptor_tab>: Remove.
3681 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3682 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3683 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3684 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3685 Remove.
3686
aa1da9ed
TT
36872021-03-08 Tom Tromey <tom@tromey.com>
3688
3689 * rust-lang.h (class rust_language) <expression_ops,
3690 exp_descriptor_tab>: Remove.
3691 * rust-lang.c (rust_evaluate_funcall): Remove.
3692 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3693 EVAL_SKIP.
3694 (rust_evaluate_subexp): Remove.
3695 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3696 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3697 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3698
08a057e6
TT
36992021-03-08 Tom Tromey <tom@tromey.com>
3700
3701 * ada-exp.y: Create operations.
3702 (empty_stoken): Remove.
3703 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3704 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3705 (components): New global.
3706 (push_component, choice_component, pop_component, pop_components):
3707 New functions.
3708 (associations): New global
3709 (push_association, pop_association, pop_associations): New
3710 functions.
3711 (ada_parse): Update.
3712 (write_var_from_sym, write_int): Create operations.
3713 (write_exp_op_with_string): Remove.
3714 (write_object_renaming, write_selectors, write_ambiguous_var)
3715 (write_var_or_type, write_name_assoc): Create operations.
3716 * ada-lang.h (ada_index_type): Declare.
3717 * ada-lang.c (ada_index_type): No longer static.
3718
d308ba78
TT
37192021-03-08 Tom Tromey <tom@tromey.com>
3720
3721 * f-exp.y: Create operations.
3722 (f_language::parser): Update.
3723
f1b8ceef
TT
37242021-03-08 Tom Tromey <tom@tromey.com>
3725
3726 * m2-exp.y: Create operations.
3727 (m2_language::parser): Update.
3728
3163898e
TT
37292021-03-08 Tom Tromey <tom@tromey.com>
3730
3731 * p-exp.y: Create operations.
3732 (pascal_language::parser): Update.
3733
9412fdcc
TT
37342021-03-08 Tom Tromey <tom@tromey.com>
3735
3736 * d-exp.y: Create operations.
3737 (d_parse): Update.
3738
bb4e0574
TT
37392021-03-08 Tom Tromey <tom@tromey.com>
3740
3741 * go-exp.y: Create operations.
3742 (go_language::parser): Update.
3743
d182f279
TT
37442021-03-08 Tom Tromey <tom@tromey.com>
3745
3746 * objc-lang.c (end_msglist): Create operations.
3747 * c-exp.y: Change parser to create operations.
3748 (write_destructor_name): Remove.
3749 (c_parse): Update.
3750
c1299a23
TT
37512021-03-08 Tom Tromey <tom@tromey.com>
3752
3753 * rust-exp.y: Create operations.
3754 (rust_parser::convert_params_to_expression): Change return type.
3755 (binop_maker_ftype): New typedef.
3756 (maker_map): New global.
3757 (rust_parser::convert_ast_to_expression): Change return type.
3758 (rust_language::parser): Update.
3759 (_initialize_rust_exp): Initialize maker_map.
3760
4c5e7a93
TT
37612021-03-08 Tom Tromey <tom@tromey.com>
3762
3763 * stap-probe.c (binop_maker_ftype): New typedef.
3764 (stap_maker_map): New global.
3765 (stap_make_binop): New function.
3766 (stap_parse_register_operand): Return operation_up.
3767 (stap_parse_single_operand, stap_parse_argument_conditionally)
3768 (stap_parse_argument_1): Likewise.
3769 (stap_parse_argument): Create operations.
3770 (stap_probe::parse_arguments): Update.
3771 (_initialize_stap_probe): Initialize stap_maker_map.
3772 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3773 type.
3774 * i386-tdep.h (i386_stap_parse_special_token): Change return
3775 type.
3776 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3777 (i386_stap_parse_special_token_three_arg_disp)
3778 (i386_stap_parse_special_token): Change return type.
3779 * gdbarch.sh (stap_parse_special_token): Change return type.
3780 * gdbarch.c: Rebuild.
3781 * gdbarch.h: Rebuild.
3782 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3783 type.
3784 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3785 return type.
3786
482ddd69
TT
37872021-03-08 Tom Tromey <tom@tromey.com>
3788
3789 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3790 * gdbarch.h: Rebuild.
3791 * gdbarch.c: Rebuild.
3792 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3793 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3794 return type.
3795 (amd64_dtrace_parse_probe_argument): Update.
3796
8227d9e2
TT
37972021-03-08 Tom Tromey <tom@tromey.com>
3798
3799 * parser-defs.h (struct parser_state) <push, push_new,
3800 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3801 wrap2>: New methods.
3802 <m_operations>: New member.
3803 * parse.c (parser_state::push_c_string)
3804 (parser_state::push_symbol, parser_state::push_dollar): New
3805 methods.
3806
4933522d
TT
38072021-03-08 Tom Tromey <tom@tromey.com>
3808
3809 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3810 New member.
3811 (struct parser_state) <mark_struct_expression>: New method.
3812 * parse.c (parser_state::mark_struct_expression): Update assert.
3813 (parser_state::mark_struct_expression): New method.
3814 (parser_state::mark_completion_tag): Update assert.
3815 (parse_expression_for_completion): Handle expout_last_op.
3816
413403fc
TT
38172021-03-08 Tom Tromey <tom@tromey.com>
3818
3819 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3820 now in superclass.
3821 * value.h (fetch_subexp_value): Add "op" parameter.
3822 * value.c (init_if_undefined_command): Update.
3823 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3824 * stap-probe.c (stap_probe::compile_to_ax): Update.
3825 * printcmd.c (set_command): Update.
3826 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3827 Update.
3828 * parser-defs.h (struct expr_builder) <set_operation>: New
3829 method.
3830 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3831 * expression.h (struct expression) <first_opcode>: Update.
3832 <op>: New member.
3833 * expprint.c (dump_raw_expression, dump_prefix_expression):
3834 Update.
3835 * expop.h (class var_value_operation) <get_symbol>: New method.
3836 (class register_operation) <get_name>: New method.
3837 (class equal_operation): No longer a typedef, now a subclass.
3838 (class unop_memval_operation) <get_type>: New method.
3839 (class assign_operation) <get_lhs>: New method.
3840 (class unop_cast_operation) <get_type>: New method.
3841 * eval.c (evaluate_expression, evaluate_type)
3842 (evaluate_subexpression_type): Update.
3843 (fetch_subexp_value): Add "op" parameter.
3844 (parse_and_eval_type): Update.
3845 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3846 * breakpoint.c (update_watchpoint, watchpoint_check)
3847 (watchpoint_exp_is_const, watch_command_1): Update.
3848 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3849 Update.
3850
b0f9164c
TT
38512021-03-08 Tom Tromey <tom@tromey.com>
3852
3853 * ada-lang.c (ada_value_binop): Do not use op_string.
3854
a88c4354
TT
38552021-03-08 Tom Tromey <tom@tromey.com>
3856
3857 * expprint.c (dump_for_expression): New overload.
3858 * expop.h (check_objfile, dump_for_expression): Declare new
3859 overloads.
3860 * ada-lang.c (check_objfile): New overload.
3861 (assign_component, ada_aggregate_component::uses_objfile)
3862 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3863 (ada_aggregate_component::assign_aggregate)
3864 (ada_positional_component::uses_objfile)
3865 (ada_positional_component::dump, ada_positional_component::assign)
3866 (ada_discrete_range_association::uses_objfile)
3867 (ada_discrete_range_association::dump)
3868 (ada_discrete_range_association::assign)
3869 (ada_name_association::uses_objfile, ada_name_association::dump)
3870 (ada_name_association::assign)
3871 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3872 (ada_choices_component::assign)
3873 (ada_others_component::uses_objfile, ada_others_component::dump)
3874 (ada_others_component::assign, ada_assign_operation::evaluate):
3875 New methods.
3876 * ada-exp.h (ada_string_operation) <get_name>: New method.
3877 (class ada_assign_operation): New.
3878 (class ada_component): New.
3879 (ada_component_up): New typedef.
3880 (class ada_aggregate_operation, class ada_aggregate_component)
3881 (class ada_positional_component, class ada_others_component)
3882 (class ada_association): New.
3883 (ada_association_up): New typedef.
3884 (class ada_choices_component)
3885 (class ada_discrete_range_association)
3886 (class ada_name_association): New.
3887
d8a4ed8a
TT
38882021-03-08 Tom Tromey <tom@tromey.com>
3889
3890 * ada-lang.c (ada_var_value_operation::resolve)
3891 (ada_funcall_operation::resolve)
3892 (ada_ternop_slice_operation::resolve): New methods.
3893 * ada-exp.h (struct ada_resolvable): New.
3894 (class ada_var_value_operation): Derive from ada_resolvable.
3895 <get_block, resolve>: New methods.
3896 (class ada_funcall_operation): Derive from ada_resolvable.
3897 <resolve>: New method.
3898 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3899 <resolve>: New method.
3900
efe3af2f
TT
39012021-03-08 Tom Tromey <tom@tromey.com>
3902
3903 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3904 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3905 method.
3906 (class ada_funcall_operation): New.
3907
ebc06ad8
TT
39082021-03-08 Tom Tromey <tom@tromey.com>
3909
3910 * ada-lang.c (ada_structop_operation::evaluate): New method.
3911 * ada-exp.h (class ada_structop_operation): New.
3912
e8c33fa1
TT
39132021-03-08 Tom Tromey <tom@tromey.com>
3914
3915 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3916 * ada-exp.h (class ada_unop_ind_operation): New.
3917
065ec826
TT
39182021-03-08 Tom Tromey <tom@tromey.com>
3919
3920 * ada-lang.c (ada_binop_exp): No longer static.
3921 * ada-exp.h (ada_binop_exp_operation): New typedef.
3922
9e99f48f
TT
39232021-03-08 Tom Tromey <tom@tromey.com>
3924
3925 * ada-lang.c (ada_val_atr): No longer static.
3926 (ada_atr_val_operation::evaluate): New method.
3927 * ada-exp.h (class ada_atr_val_operation): New.
3928
7631cf6c
TT
39292021-03-08 Tom Tromey <tom@tromey.com>
3930
3931 * ada-lang.c (ada_pos_atr): No longer static.
3932 * ada-exp.h (ada_pos_operation): New typedef.
3933
7992accc
TT
39342021-03-08 Tom Tromey <tom@tromey.com>
3935
3936 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3937 parameters.
3938 (ada_evaluate_subexp): Use it.
3939
6ad3b8bf
TT
39402021-03-08 Tom Tromey <tom@tromey.com>
3941
3942 * ada-lang.c (ada_binop_minmax): No longer static.
3943 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3944 New typedefs.
3945
3f4a0053
TT
39462021-03-08 Tom Tromey <tom@tromey.com>
3947
3948 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3949 New method.
3950 * ada-exp.h (class ada_var_msym_value_operation): New.
3951
99a3b1e7
TT
39522021-03-08 Tom Tromey <tom@tromey.com>
3953
3954 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3955 (ada_var_value_operation::evaluate): New methods.
3956 * ada-exp.h (class ada_var_value_operation): New.
3957
60fa02ca
TT
39582021-03-08 Tom Tromey <tom@tromey.com>
3959
3960 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3961 * ada-exp.h (class ada_unop_atr_operation): New.
3962
82c3886e
TT
39632021-03-08 Tom Tromey <tom@tromey.com>
3964
3965 * ada-lang.c (ada_binop_in_bounds): No longer static.
3966 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3967
1b1ebfab
TT
39682021-03-08 Tom Tromey <tom@tromey.com>
3969
3970 * ada-lang.c (ada_ternop_slice): No longer static.
3971 * ada-exp.h (class ada_ternop_slice_operation): New.
3972
039e4b76
TT
39732021-03-08 Tom Tromey <tom@tromey.com>
3974
3975 * ada-exp.h (ada_bitwise_operation): New template class.
3976 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3977 (ada_bitwise_xor_operation): New typedefs.
3978
6e8fb7b7
TT
39792021-03-08 Tom Tromey <tom@tromey.com>
3980
3981 * ada-lang.c (ada_equal_binop): No longer static.
3982 * ada-exp.h (class ada_binop_equal_operation): New.
3983
d9e7db06
TT
39842021-03-08 Tom Tromey <tom@tromey.com>
3985
3986 * ada-lang.c (ada_mult_binop): No longer static.
3987 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3988 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3989
73796c73
TT
39902021-03-08 Tom Tromey <tom@tromey.com>
3991
3992 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3993 * ada-exp.h (class ada_binop_addsub_operation): New.
3994
cd9a3148
TT
39952021-03-08 Tom Tromey <tom@tromey.com>
3996
3997 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3998 (ada_resolve_variable): Declare.
3999 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4000 (ada_resolve_variable): New functions.
4001 (resolve_subexp): Update.
4002
cf12b17f
TT
40032021-03-08 Tom Tromey <tom@tromey.com>
4004
4005 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4006 method.
4007 * c-exp.h (class opencl_ternop_cond_operation): New.
4008
944fd3b8
TT
40092021-03-08 Tom Tromey <tom@tromey.com>
4010
4011 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4012 method.
4013 * c-exp.h (class opencl_logical_binop_operation): New.
4014
33b79214
TT
40152021-03-08 Tom Tromey <tom@tromey.com>
4016
4017 * opencl-lang.c (opencl_structop_operation::evaluate): New
4018 method.
4019 * c-exp.h (class opencl_structop_operation): New.
4020
2492ba36
TT
40212021-03-08 Tom Tromey <tom@tromey.com>
4022
4023 * opencl-lang.c (opencl_logical_not): No longer static. Change
4024 parameters.
4025 (evaluate_subexp_opencl): Update.
4026 * c-exp.h (opencl_notequal_operation): New typedef.
4027
a88c3c8d
TT
40282021-03-08 Tom Tromey <tom@tromey.com>
4029
4030 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4031 static. Change parameters.
4032 (eval_opencl_assign): No longer static. Add "op" parameter.
4033 (evaluate_subexp_opencl): Update.
4034 * c-exp.h (opencl_binop_operation): New template class.
4035 (opencl_assign_operation, opencl_equal_operation)
4036 (opencl_notequal_operation, opencl_less_operation)
4037 (opencl_gtr_operation, opencl_geq_operation)
4038 (opencl_leq_operation): New typedefs.
4039
e9677704
TT
40402021-03-08 Tom Tromey <tom@tromey.com>
4041
4042 * opencl-lang.c (opencl_value_cast): No longer static.
4043 * c-exp.h (opencl_cast_type_operation): New typedef.
4044
f403a4e4
TT
40452021-03-08 Tom Tromey <tom@tromey.com>
4046
4047 * f-exp.h (eval_op_f_allocated): Declare.
4048 (fortran_allocated_operation): New typedef.
4049 * f-lang.c (eval_op_f_allocated): No longer static.
4050
eb4c9271
TT
40512021-03-08 Tom Tromey <tom@tromey.com>
4052
4053 * f-lang.c (eval_op_f_associated): New functions.
4054 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4055 typedefs.
4056
58a76c72
TT
40572021-03-08 Tom Tromey <tom@tromey.com>
4058
4059 * f-lang.c (fortran_bound_1arg::evaluate)
4060 (fortran_bound_2arg::evaluate): New methods.
4061 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4062 New.
4063
2f98abe1
TT
40642021-03-08 Tom Tromey <tom@tromey.com>
4065
4066 * expop.h (class unop_addr_operation) <get_expression>: New
4067 method.
4068 * f-lang.c (fortran_undetermined::value_subarray)
4069 (fortran_undetermined::evaluate): New methods.
4070 (fortran_prepare_argument): New overload.
4071 * f-exp.h (class fortran_range_operation)
4072 (class fortran_undetermined): New classes.
4073
638fd74a
TT
40742021-03-08 Tom Tromey <tom@tromey.com>
4075
4076 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4077 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4078 method.
4079
a00b7254
TT
40802021-03-08 Tom Tromey <tom@tromey.com>
4081
4082 * expression.h (class operation) <evaluate_funcall>: New methods.
4083 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4084 (class var_value_operation) <evaluate_funcall>: New method.
4085 (class structop_base_operation) <evaluate_funcall>: New method.
4086 (class var_msym_value_operation) <evaluate_funcall>: New method.
4087 (class structop_member_base): New class.
4088 (class structop_member_operation): Derive from
4089 structop_member_base.
4090 (class structop_mptr_operation): Derive from
4091 structop_member_base.
4092 (class funcall_operation): New class.
4093 * eval.c (operation::evaluate_funcall)
4094 (var_value_operation::evaluate_funcall)
4095 (scope_operation::evaluate_funcall)
4096 (structop_member_base::evaluate_funcall)
4097 (structop_base_operation::evaluate_funcall): New methods.
4098
1c02eb30
TT
40992021-03-08 Tom Tromey <tom@tromey.com>
4100
4101 * expop.h (class array_operation): New.
4102 * eval.c (array_operation::evaluate_struct_tuple)
4103 (array_operation::evaluate): New methods.
4104
e4479080
TT
41052021-03-08 Tom Tromey <tom@tromey.com>
4106
4107 * expop.h (class adl_func_operation): New.
4108 * eval.c (adl_func_operation::evaluate): New method.
4109
95d49dfb
TT
41102021-03-08 Tom Tromey <tom@tromey.com>
4111
4112 * ada-lang.c (ada_unop_in_range): No longer static.
4113 * ada-exp.h (class ada_unop_range_operation): New.
4114
7c15d377
TT
41152021-03-08 Tom Tromey <tom@tromey.com>
4116
4117 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4118 No longer static.
4119 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4120 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4121
5019124b
TT
41222021-03-08 Tom Tromey <tom@tromey.com>
4123
4124 * expop.h (class logical_and_operation)
4125 (class logical_or_operation): New.
4126 * eval.c (logical_and_operation::evaluate)
4127 (logical_or_operation::evaluate): New methods.
4128 * ax-gdb.c (logical_and_operation::do_generate_ax)
4129 (logical_or_operation::do_generate_ax): New methods.
4130
2bc9b40c
TT
41312021-03-08 Tom Tromey <tom@tromey.com>
4132
4133 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4134 static.
4135 * m2-exp.h: New file.
4136
5947d337
TT
41372021-03-08 Tom Tromey <tom@tromey.com>
4138
4139 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4140 * rust-exp.h (class rust_aggregate_operation): New.
4141
e4407a20
TT
41422021-03-08 Tom Tromey <tom@tromey.com>
4143
4144 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4145 No longer static.
4146 * rust-exp.h (class rust_struct_anon): New.
4147 (class rust_structop): New.
4148
9db6b6dd
TT
41492021-03-08 Tom Tromey <tom@tromey.com>
4150
4151 * rust-lang.c (rust_range): No longer static.
4152 * rust-exp.h (class rust_range_operation): New.
4153
6ce1ad67
TT
41542021-03-08 Tom Tromey <tom@tromey.com>
4155
4156 * rust-lang.c (rust_subscript): No longer static.
4157 * rust-exp.h (class rust_subscript_operation): New.
4158
11dd3dce
TT
41592021-03-08 Tom Tromey <tom@tromey.com>
4160
4161 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4162 parameter.
4163 (rust_evaluate_subexp): Update.
4164 * rust-exp.h (class rust_unop_ind_operation): New.
4165
6fab4359
TT
41662021-03-08 Tom Tromey <tom@tromey.com>
4167
4168 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4169 longer static. Add "opcode" parameter.
4170 (rust_evaluate_subexp): Update.
4171 * rust-exp.h: New file.
4172
9dcd3e29
TT
41732021-03-08 Tom Tromey <tom@tromey.com>
4174
4175 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4176 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4177 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4178 (evaluate_subexp_f): Update.
4179 * f-exp.h: New file.
4180
fc715eb2
TT
41812021-03-08 Tom Tromey <tom@tromey.com>
4182
4183 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4184 * ada-exp.h (class ada_ternop_range_operation): New.
4185
cc6bd32e
TT
41862021-03-08 Tom Tromey <tom@tromey.com>
4187
4188 * ada-lang.c (ada_qual_operation::evaluate): New method.
4189 * ada-exp.h (class ada_qual_operation): New.
4190
42fecb61
TT
41912021-03-08 Tom Tromey <tom@tromey.com>
4192
4193 * ada-lang.c (ada_string_operation::evaluate): New method.
4194 * ada-exp.h (class ada_string_operation): New.
4195
03070ee9
TT
41962021-03-08 Tom Tromey <tom@tromey.com>
4197
4198 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4199 * ada-exp.h: New file.
4200
821e72d7
TT
42012021-03-08 Tom Tromey <tom@tromey.com>
4202
4203 * expop.h (class multi_subscript_operation): New.
4204 * eval.c (multi_subscript_operation::evaluate): New method.
4205
085734dd
TT
42062021-03-08 Tom Tromey <tom@tromey.com>
4207
4208 * eval.c (objc_msgcall_operation::evaluate): New method.
4209 * c-exp.h (class objc_msgcall_operation): New.
4210
e82a5afc
TT
42112021-03-08 Tom Tromey <tom@tromey.com>
4212
4213 * expop.h (class var_value_operation): New.
4214 * eval.c (var_value_operation::evaluate)
4215 (var_value_operation::evaluate_for_address)
4216 (var_value_operation::evaluate_with_coercion)
4217 (var_value_operation::evaluate_for_sizeof)
4218 (var_value_operation::evaluate_for_cast): New methods.
4219 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4220
d9ad79d8
TT
42212021-03-08 Tom Tromey <tom@tromey.com>
4222
4223 * expop.h (cxx_cast_ftype): New typedef.
4224 (cxx_cast_operation): New template.
4225 (dynamic_cast_operation, reinterpret_cast_operation): New
4226 typedefs.
4227
292382f4
TT
42282021-03-08 Tom Tromey <tom@tromey.com>
4229
4230 * expop.h (class unop_cast_type_operation): New.
4231 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4232 method.
4233
165a813a
TT
42342021-03-08 Tom Tromey <tom@tromey.com>
4235
4236 * expop.h (class unop_cast_operation): New.
4237 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4238
e5946e16
TT
42392021-03-08 Tom Tromey <tom@tromey.com>
4240
4241 * expop.h (class assign_modify_operation): New.
4242 * eval.c (eval_binop_assign_modify): No longer static.
4243 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4244
40786782
TT
42452021-03-08 Tom Tromey <tom@tromey.com>
4246
4247 * expop.h (class assign_operation): New.
4248 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4249
44b675c8
TT
42502021-03-08 Tom Tromey <tom@tromey.com>
4251
4252 * expop.h (class type_instance_operation): New.
4253 * eval.c (type_instance_operation::evaluate): New method.
4254
f6b42326
TT
42552021-03-08 Tom Tromey <tom@tromey.com>
4256
4257 * expop.h (class op_this_operation): New.
4258 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4259
cbc18219
TT
42602021-03-08 Tom Tromey <tom@tromey.com>
4261
4262 * expop.h (class unop_memval_operation)
4263 (class unop_memval_type_operation): New.
4264 * eval.c (eval_op_memval): No longer static.
4265 (unop_memval_operation::evaluate_for_address)
4266 (unop_memval_type_operation::evaluate_for_address)
4267 (unop_memval_operation::evaluate_for_sizeof)
4268 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4269 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4270 (unop_memval_type_operation::do_generate_ax): New methods.
4271
ae4bb61e
TT
42722021-03-08 Tom Tromey <tom@tromey.com>
4273
4274 * expop.h (class unop_alignof_operation): New.
4275 * eval.c (eval_op_alignof): No longer static.
4276
85d23bda
TT
42772021-03-08 Tom Tromey <tom@tromey.com>
4278
4279 * expop.h (class unop_sizeof_operation): New.
4280 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4281
14aff815
TT
42822021-03-08 Tom Tromey <tom@tromey.com>
4283
4284 * expop.h (class unop_addr_operation): New.
4285 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4286
929f3aa7
TT
42872021-03-08 Tom Tromey <tom@tromey.com>
4288
4289 * expop.h (class typeid_operation): New.
4290
0af8829e
TT
42912021-03-08 Tom Tromey <tom@tromey.com>
4292
4293 * expop.h (class decltype_operation): New.
4294
4efc574c
TT
42952021-03-08 Tom Tromey <tom@tromey.com>
4296
4297 * expop.h (class typeof_operation): New.
4298
5b5f5140
TT
42992021-03-08 Tom Tromey <tom@tromey.com>
4300
4301 * expop.h (class type_operation): New.
4302 * eval.c (eval_op_type): No longer static.
4303
876469ff
TT
43042021-03-08 Tom Tromey <tom@tromey.com>
4305
4306 * expop.h (class unop_ind_base_operation)
4307 (class unop_ind_operation): New.
4308 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4309 (unop_ind_base_operation::evaluate_for_address)
4310 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4311 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4312
6d89e296
TT
43132021-03-08 Tom Tromey <tom@tromey.com>
4314
4315 * expop.h (unop_incr_operation): New template.
4316 (preinc_operation, predec_operation, postinc_operation)
4317 (postdec_operation): New typedefs.
4318 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4319 (eval_op_postdec): No longer static.
4320
9307d17b
TT
43212021-03-08 Tom Tromey <tom@tromey.com>
4322
4323 * expop.h (unary_ftype): New typedef.
4324 (unop_operation, usual_ax_binop_operation): New templates.
4325 (unary_plus_operation, unary_neg_operation)
4326 (unary_complement_operation, unary_logical_not_operation): New
4327 typedefs.
4328 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4329 (eval_op_lognot): No longer static.
4330 * ax-gdb.c (gen_expr_unop): New function.
4331
ae64ba58
TT
43322021-03-08 Tom Tromey <tom@tromey.com>
4333
4334 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4335
d4eff4c1
TT
43362021-03-08 Tom Tromey <tom@tromey.com>
4337
4338 * expop.h (class repeat_operation): New.
4339 * eval.c (eval_op_repeat): No longer static. Remove "op"
4340 parameter.
4341 (evaluate_subexp_standard): Update.
4342 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4343
46916f2b
TT
43442021-03-08 Tom Tromey <tom@tromey.com>
4345
4346 * expop.h (class comparison_operation): New.
4347 (equal_operation, notequal_operation, less_operation)
4348 (gtr_operation, geq_operation, leq_operation): New typedefs.
4349 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4350 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4351
224d6424
TT
43522021-03-08 Tom Tromey <tom@tromey.com>
4353
4354 * expop.h (class subscript_operation): New.
4355 * eval.c (eval_op_subscript): No longer static.
4356
373907ff
TT
43572021-03-08 Tom Tromey <tom@tromey.com>
4358
4359 * expop.h (class binop_operation, class usual_ax_binop_operation):
4360 New.
4361 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4362 (div_operation, rem_operation, lsh_operation, rsh_operation)
4363 (bitwise_and_operation, bitwise_ior_operation)
4364 (bitwise_xor_operation): New typedefs.
4365 * eval.c (eval_op_binary): No longer static.
4366
5133d78b
TT
43672021-03-08 Tom Tromey <tom@tromey.com>
4368
4369 * expop.h (class sub_operation): New.
4370 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4371 (evaluate_subexp_standard): Update.
4372
a94323b6
TT
43732021-03-08 Tom Tromey <tom@tromey.com>
4374
4375 * expop.h (class add_operation): New.
4376 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4377 (evaluate_subexp_standard): Update.
4378
e51e26a0
TT
43792021-03-08 Tom Tromey <tom@tromey.com>
4380
4381 * expop.h (class concat_operation): New.
4382 * eval.c (eval_op_concat): No longer static. Remove "op"
4383 parameter.
4384 (evaluate_subexp_standard): Update.
4385
07f724a8
TT
43862021-03-08 Tom Tromey <tom@tromey.com>
4387
4388 * expop.h (class structop_member_operation)
4389 (class structop_mptr_operation): New.
4390 * eval.c (eval_op_member): No longer static.
4391
ab0609be
TT
43922021-03-08 Tom Tromey <tom@tromey.com>
4393
4394 * expop.h (class structop_ptr_operation): New.
4395 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4396 parameter.
4397
808b22cf
TT
43982021-03-08 Tom Tromey <tom@tromey.com>
4399
4400 * expop.h (class structop_base_operation)
4401 (class structop_operation): New.
4402 * eval.c (eval_op_structop_struct): No longer static.
4403
8cfd3e95
TT
44042021-03-08 Tom Tromey <tom@tromey.com>
4405
4406 * expop.h (class complex_operation): New.
4407
09db3700
TT
44082021-03-08 Tom Tromey <tom@tromey.com>
4409
4410 * eval.c (eval_op_objc_selector): No longer static.
4411 * c-exp.h (class objc_selector_operation): New.
4412
06dc61b9
TT
44132021-03-08 Tom Tromey <tom@tromey.com>
4414
4415 * eval.c: Include c-exp.h.
4416 * c-exp.h (class objc_nsstring_operation): New.
4417
72d0a711
TT
44182021-03-08 Tom Tromey <tom@tromey.com>
4419
4420 * c-lang.c (c_string_operation::evaluate): New method.
4421 * c-exp.h: New file.
4422
9186293f
TT
44232021-03-08 Tom Tromey <tom@tromey.com>
4424
4425 * expop.h (class ternop_cond_operation): New.
4426 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4427
1594e0bb
TT
44282021-03-08 Tom Tromey <tom@tromey.com>
4429
4430 * expop.h (class ternop_slice_operation): New.
4431 * eval.c (eval_op_ternop): No longer static.
4432
b50db09f
TT
44332021-03-08 Tom Tromey <tom@tromey.com>
4434
4435 * expop.h (class string_operation): New.
4436 * eval.c (eval_op_string): No longer static.
4437
e6e01e16
TT
44382021-03-08 Tom Tromey <tom@tromey.com>
4439
4440 * expop.h (class internalvar_operation): New.
4441 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4442
e6985c5e
TT
44432021-03-08 Tom Tromey <tom@tromey.com>
4444
4445 * expop.h (class bool_operation): New.
4446
55bdbff8
TT
44472021-03-08 Tom Tromey <tom@tromey.com>
4448
4449 * expop.h (class register_operation): New.
4450 * eval.c (eval_op_register): No longer static.
4451 * ax-gdb.c (register_operation::do_generate_ax): New method.
4452
247d935b
TT
44532021-03-08 Tom Tromey <tom@tromey.com>
4454
4455 * expop.h (class last_operation): New.
4456
17679395
TT
44572021-03-08 Tom Tromey <tom@tromey.com>
4458
4459 * expop.h (class func_static_var_operation): New.
4460 * eval.c (eval_op_func_static_var): No longer static.
4461
b5cc3923
TT
44622021-03-08 Tom Tromey <tom@tromey.com>
4463
4464 * expop.h (class var_entry_value_operation): New.
4465 * eval.c (eval_op_var_entry_value): No longer static.
4466
0c8effa3
TT
44672021-03-08 Tom Tromey <tom@tromey.com>
4468
4469 * expression.h (class operation) <set_outermost>: New method.
4470 * expop.h (class var_msym_value_operation): New.
4471 * eval.c (eval_op_var_msym_value): No longer static.
4472 (var_msym_value_operation::evaluate_for_address)
4473 (var_msym_value_operation::evaluate_for_sizeof)
4474 (var_msym_value_operation::evaluate_for_cast): New methods.
4475 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4476 method.
4477
d336c29e
TT
44782021-03-08 Tom Tromey <tom@tromey.com>
4479
4480 * expop.h (class long_const_operation): New.
4481 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4482
d5ab122c
TT
44832021-03-08 Tom Tromey <tom@tromey.com>
4484
4485 * expop.h (class scope_operation): New.
4486 * eval.c (eval_op_scope): No longer static.
4487 (scope_operation::evaluate_for_address): New method.
4488 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4489
cae26a0c
TT
44902021-03-08 Tom Tromey <tom@tromey.com>
4491
4492 * expprint.c (float_const_operation::dump): New method.
4493 * expop.h (float_data): New typedef.
4494 (class float_const_operation): New.
4495
75f9892d
TT
44962021-03-08 Tom Tromey <tom@tromey.com>
4497
4498 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4499 * ax-gdb.c (gen_expr_binop): New function.
4500 (gen_expr_structop): Likewise.
4501
de401988
TT
45022021-03-08 Tom Tromey <tom@tromey.com>
4503
4504 * expprint.c (expr::dump_for_expression): New functions.
4505 * expop.h (dump_for_expression): New overloads.
4506 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4507 Update.
4508
e2803273
TT
45092021-03-08 Tom Tromey <tom@tromey.com>
4510
4511 * expression.h (expr::operation): New class.
4512 (expr::make_operation): New function.
4513 (expr::operation_up): New typedef.
4514 * expop.h: New file.
4515 * eval.c (operation::evaluate_for_cast)
4516 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4517 New methods.
4518 * ax-gdb.c (operation::generate_ax): New method.
4519
e18c58f2
TT
45202021-03-08 Tom Tromey <tom@tromey.com>
4521
4522 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4523 (gen_expr_binop_rest): New overload.
4524
c0d7ed8c
TT
45252021-03-08 Tom Tromey <tom@tromey.com>
4526
4527 * eval.c (eval_multi_subscript): New function.
4528 (evaluate_subexp_standard): Use it.
4529
dd5fd283
TT
45302021-03-08 Tom Tromey <tom@tromey.com>
4531
4532 * ada-lang.c (ada_binop_exp): New function.
4533 (ada_evaluate_subexp): Use it.
4534
3848abd6
TT
45352021-03-08 Tom Tromey <tom@tromey.com>
4536
4537 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4538 parameters.
4539 (ada_evaluate_subexp): Use it.
4540
38dc70cf
TT
45412021-03-08 Tom Tromey <tom@tromey.com>
4542
4543 * ada-lang.c (ada_binop_minmax): New function.
4544 (ada_evaluate_subexp): Use it.
4545
b84564fc
TT
45462021-03-08 Tom Tromey <tom@tromey.com>
4547
4548 * ada-lang.c (ada_unop_atr): New function.
4549 (ada_evaluate_subexp): Use it.
4550
b467efaa
TT
45512021-03-08 Tom Tromey <tom@tromey.com>
4552
4553 * ada-lang.c (ada_binop_in_bounds): New function.
4554 (ada_evaluate_subexp): Use it.
4555
5ce19db8
TT
45562021-03-08 Tom Tromey <tom@tromey.com>
4557
4558 * ada-lang.c (ada_ternop_slice): New function.
4559 (ada_evaluate_subexp): Use it.
4560
214b13ac
TT
45612021-03-08 Tom Tromey <tom@tromey.com>
4562
4563 * ada-lang.c (ada_equal_binop): New function.
4564 (ada_evaluate_subexp): Use it.
4565
faa1dfd7
TT
45662021-03-08 Tom Tromey <tom@tromey.com>
4567
4568 * ada-lang.c (ada_mult_binop): New function.
4569 (ada_evaluate_subexp): Use it.
4570
d05e24e6
TT
45712021-03-08 Tom Tromey <tom@tromey.com>
4572
4573 * ada-lang.c (ada_abs): New function.
4574 (ada_evaluate_subexp): Use it.
4575
68c75735
TT
45762021-03-08 Tom Tromey <tom@tromey.com>
4577
4578 * ada-lang.c (ada_atr_size): New function.
4579 (ada_evaluate_subexp): Use it.
4580
020dbabe
TT
45812021-03-08 Tom Tromey <tom@tromey.com>
4582
4583 * ada-lang.c (ada_atr_tag): New function.
4584 (ada_evaluate_subexp): Use it.
4585
7efc87ff
TT
45862021-03-08 Tom Tromey <tom@tromey.com>
4587
4588 * ada-lang.c (ada_unop_in_range): New function.
4589 (ada_evaluate_subexp): Use it.
4590
82390ab8
TT
45912021-03-08 Tom Tromey <tom@tromey.com>
4592
4593 * ada-lang.c (ada_unop_neg): New function.
4594 (ada_evaluate_subexp): Use it.
4595
62d4bd94
TT
45962021-03-08 Tom Tromey <tom@tromey.com>
4597
4598 * ada-lang.c (eval_ternop_in_range): New function.
4599 (ada_evaluate_subexp): Use it.
4600
3634f669
TT
46012021-03-08 Tom Tromey <tom@tromey.com>
4602
4603 * opencl-lang.c (eval_opencl_assign): New function.
4604 (evaluate_subexp_opencl): Use it.
4605
5e80600e
TT
46062021-03-08 Tom Tromey <tom@tromey.com>
4607
4608 * eval.c (eval_op_objc_msgcall): New function.
4609 (evaluate_subexp_standard): Use it.
4610
fb5ba2ab
TT
46112021-03-08 Tom Tromey <tom@tromey.com>
4612
4613 * eval.c (eval_binop_assign_modify): New function.
4614 (evaluate_subexp_standard): Use it.
4615
a49881f7
TT
46162021-03-08 Tom Tromey <tom@tromey.com>
4617
4618 * m2-lang.c (eval_op_m2_subscript): New function.
4619 (evaluate_subexp_modula2): Use it.
4620
41bdced5
TT
46212021-03-08 Tom Tromey <tom@tromey.com>
4622
4623 * m2-lang.c (eval_op_m2_high): New function.
4624 (evaluate_subexp_modula2): Use it.
4625
13ea014a
TT
46262021-03-08 Tom Tromey <tom@tromey.com>
4627
4628 * eval.c (evaluate_subexp_for_address_base): New function.
4629 (evaluate_subexp_for_address): Use it.
4630 (evaluate_subexp_for_sizeof_base): New function.
4631 (evaluate_subexp_for_sizeof): Use it.
4632
1fa41fc7
TT
46332021-03-08 Tom Tromey <tom@tromey.com>
4634
4635 * rust-lang.c (eval_op_rust_structop): New function.
4636 (rust_evaluate_subexp): Use it.
4637
575cae23
TT
46382021-03-08 Tom Tromey <tom@tromey.com>
4639
4640 * rust-lang.c (eval_op_rust_struct_anon): New function.
4641 (rust_evaluate_subexp): Use it.
4642
05104233
TT
46432021-03-08 Tom Tromey <tom@tromey.com>
4644
4645 * rust-lang.c (eval_op_rust_array): New function.
4646 (rust_evaluate_subexp): Use it.
4647
6fa9831f
TT
46482021-03-08 Tom Tromey <tom@tromey.com>
4649
4650 * rust-lang.c (eval_op_rust_complement): New function.
4651 (rust_evaluate_subexp): Use it.
4652
d123f9e4
TT
46532021-03-08 Tom Tromey <tom@tromey.com>
4654
4655 * rust-lang.c (eval_op_rust_ind): New function.
4656 (rust_evaluate_subexp): Use it.
4657
984af2cb
TT
46582021-03-08 Tom Tromey <tom@tromey.com>
4659
4660 * rust-lang.c (rust_subscript): Change parameters.
4661 (rust_evaluate_subexp): Update.
4662
d148f803
TT
46632021-03-08 Tom Tromey <tom@tromey.com>
4664
4665 * rust-lang.c (rust_range): Change parameters.
4666 (rust_evaluate_subexp): Update.
4667
9cbd1c20
TT
46682021-03-08 Tom Tromey <tom@tromey.com>
4669
4670 * f-lang.c (eval_op_f_allocated): New function.
4671 (evaluate_subexp_f): Use it.
4672
3c18c49c
TT
46732021-03-08 Tom Tromey <tom@tromey.com>
4674
4675 * f-lang.c (fortran_require_array): New function.
4676 (evaluate_subexp_f): Use it.
4677
216f6fcb
TT
46782021-03-08 Tom Tromey <tom@tromey.com>
4679
4680 * f-lang.c (eval_op_f_kind): New function.
4681 (evaluate_subexp_f): Use it.
4682
00f2db6f
TT
46832021-03-08 Tom Tromey <tom@tromey.com>
4684
4685 * f-lang.c (eval_op_f_cmplx): New function.
4686 (evaluate_subexp_f): Use it.
4687
93b2b5fa
TT
46882021-03-08 Tom Tromey <tom@tromey.com>
4689
4690 * f-lang.c (eval_op_f_modulo): New function.
4691 (evaluate_subexp_f): Use it.
4692
9f1a1f3c
TT
46932021-03-08 Tom Tromey <tom@tromey.com>
4694
4695 * f-lang.c (eval_op_f_floor): New function.
4696 (evaluate_subexp_f): Use it.
4697
3dc41f3c
TT
46982021-03-08 Tom Tromey <tom@tromey.com>
4699
4700 * f-lang.c (eval_op_f_ceil): New function.
4701 (evaluate_subexp_f): Use it.
4702
e08109f2
TT
47032021-03-08 Tom Tromey <tom@tromey.com>
4704
4705 * f-lang.c (eval_op_f_mod): New function.
4706 (evaluate_subexp_f): Use it.
4707
cc05c68e
TT
47082021-03-08 Tom Tromey <tom@tromey.com>
4709
4710 * f-lang.c (eval_op_f_abs): New function.
4711 (evaluate_subexp_f): Use it.
4712
aec95807
TT
47132021-03-08 Tom Tromey <tom@tromey.com>
4714
4715 * eval.c (eval_op_type): New function.
4716 (evaluate_subexp_standard): Use it.
4717
a220ead5
TT
47182021-03-08 Tom Tromey <tom@tromey.com>
4719
4720 * eval.c (eval_op_postdec): New function.
4721 (evaluate_subexp_standard): Use it.
4722
abffe116
TT
47232021-03-08 Tom Tromey <tom@tromey.com>
4724
4725 * eval.c (eval_op_postinc): New function.
4726 (evaluate_subexp_standard): Use it.
4727
9e1361b7
TT
47282021-03-08 Tom Tromey <tom@tromey.com>
4729
4730 * eval.c (eval_op_predec): New file.
4731 (evaluate_subexp_standard): Use it.
4732
00f50884
TT
47332021-03-08 Tom Tromey <tom@tromey.com>
4734
4735 * eval.c (eval_op_preinc): New function.
4736 (evaluate_subexp_standard): Use it.
4737
3aef2a07
TT
47382021-03-08 Tom Tromey <tom@tromey.com>
4739
4740 * eval.c (eval_op_memval): New function.
4741 (evaluate_subexp_standard): Use it.
4742
acee9468
TT
47432021-03-08 Tom Tromey <tom@tromey.com>
4744
4745 * eval.c (eval_op_alignof): New function.
4746 (evaluate_subexp_standard): Use it.
4747
786f70ee
TT
47482021-03-08 Tom Tromey <tom@tromey.com>
4749
4750 * eval.c (eval_op_ind): New function.
4751 (evaluate_subexp_standard): Use it.
4752
24338fb9
TT
47532021-03-08 Tom Tromey <tom@tromey.com>
4754
4755 * eval.c (eval_op_lognot): New function.
4756 (evaluate_subexp_standard): Use it.
4757
1f09ec81
TT
47582021-03-08 Tom Tromey <tom@tromey.com>
4759
4760 * eval.c (eval_op_complement): New function.
4761 (evaluate_subexp_standard): Use it.
4762
606d105f
TT
47632021-03-08 Tom Tromey <tom@tromey.com>
4764
4765 * eval.c (eval_op_neg): New function.
4766 (evaluate_subexp_standard): Use it.
4767
39f288be
TT
47682021-03-08 Tom Tromey <tom@tromey.com>
4769
4770 * eval.c (eval_op_plus): New function.
4771 (evaluate_subexp_standard): Use it.
4772
eed70b1c
TT
47732021-03-08 Tom Tromey <tom@tromey.com>
4774
4775 * eval.c (eval_op_repeat): New function.
4776 (evaluate_subexp_standard): Use it.
4777
60cdd487
TT
47782021-03-08 Tom Tromey <tom@tromey.com>
4779
4780 * eval.c (eval_op_leq): New function.
4781 (evaluate_subexp_standard): Use it.
4782
96e3efd9
TT
47832021-03-08 Tom Tromey <tom@tromey.com>
4784
4785 * eval.c (eval_op_geq): New function.
4786 (evaluate_subexp_standard): Use it.
4787
1f78d732
TT
47882021-03-08 Tom Tromey <tom@tromey.com>
4789
4790 * eval.c (eval_op_gtr): New function.
4791 (evaluate_subexp_standard): Use it.
4792
6cad1349
TT
47932021-03-08 Tom Tromey <tom@tromey.com>
4794
4795 * eval.c (eval_op_less): New function.
4796 (evaluate_subexp_standard): Use it.
4797
1fcb3559
TT
47982021-03-08 Tom Tromey <tom@tromey.com>
4799
4800 * eval.c (eval_op_notequal): New function.
4801 (evaluate_subexp_standard): Use it.
4802
0cc96de8
TT
48032021-03-08 Tom Tromey <tom@tromey.com>
4804
4805 * eval.c (eval_op_equal): New function.
4806 (evaluate_subexp_standard): Use it.
4807
288d26bc
TT
48082021-03-08 Tom Tromey <tom@tromey.com>
4809
4810 * eval.c (eval_op_subscript): New function.
4811 (evaluate_subexp_standard): Use it.
4812
7cdcdd02
TT
48132021-03-08 Tom Tromey <tom@tromey.com>
4814
4815 * eval.c (eval_op_binary): New function.
4816 (evaluate_subexp_standard): Use it.
4817
d9790e22
TT
48182021-03-08 Tom Tromey <tom@tromey.com>
4819
4820 * eval.c (eval_op_sub): New function.
4821 (evaluate_subexp_standard): Use it.
4822
aedaf9ac
TT
48232021-03-08 Tom Tromey <tom@tromey.com>
4824
4825 * eval.c (eval_op_add): New function.
4826 (evaluate_subexp_standard): Use it.
4827
b7a96ed2
TT
48282021-03-08 Tom Tromey <tom@tromey.com>
4829
4830 * eval.c (eval_op_member): New function.
4831 (evaluate_subexp_standard): Use it.
4832
fb461aa3
TT
48332021-03-08 Tom Tromey <tom@tromey.com>
4834
4835 * eval.c (eval_op_structop_ptr): New function.
4836 (evaluate_subexp_standard): Use it.
4837
3e96c4fc
TT
48382021-03-08 Tom Tromey <tom@tromey.com>
4839
4840 * eval.c (eval_op_structop_struct): New function.
4841 (evaluate_subexp_standard): Use it.
4842
f960a617
TT
48432021-03-08 Tom Tromey <tom@tromey.com>
4844
4845 * eval.c (eval_op_ternop): New function.
4846 (evaluate_subexp_standard): Use it.
4847
5c2f201e
TT
48482021-03-08 Tom Tromey <tom@tromey.com>
4849
4850 * eval.c (eval_op_concat): New function.
4851 (evaluate_subexp_standard): Use it.
4852
f871bae1
TT
48532021-03-08 Tom Tromey <tom@tromey.com>
4854
4855 * eval.c (eval_op_objc_selector): New function.
4856 (evaluate_subexp_standard): Use it.
4857
14a1c64a
TT
48582021-03-08 Tom Tromey <tom@tromey.com>
4859
4860 * eval.c (eval_op_string): New function.
4861 (evaluate_subexp_standard): Use it.
4862
ffff730b
TT
48632021-03-08 Tom Tromey <tom@tromey.com>
4864
4865 * eval.c (eval_op_register): New function.
4866 (evaluate_subexp_standard): Use it.
4867
9b1d8af6
TT
48682021-03-08 Tom Tromey <tom@tromey.com>
4869
4870 * eval.c (eval_op_func_static_var): New function.
4871 (evaluate_subexp_standard): Use it.
4872
c0df9289
TT
48732021-03-08 Tom Tromey <tom@tromey.com>
4874
4875 * eval.c (eval_op_var_msym_value): New function.
4876 (evaluate_subexp_standard): Use it.
4877
50b98adc
TT
48782021-03-08 Tom Tromey <tom@tromey.com>
4879
4880 * eval.c (eval_op_var_entry_value): New function.
4881 (evaluate_subexp_standard): Use it.
4882
ea2d29f7
TT
48832021-03-08 Tom Tromey <tom@tromey.com>
4884
4885 * eval.c (eval_op_scope): New function.
4886 (evaluate_subexp_standard): Use it.
4887
01573d73
TT
48882021-03-06 Chernov Sergey <klen_s@mail.ru>
4889
4890 PR gdb/27528:
4891 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4892
9938d15a
TT
48932021-03-06 Tom Tromey <tom@tromey.com>
4894
4895 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4896 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4897 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4898 (locate_dwz_sections, dwz_search_other_debugdirs)
4899 (dwarf2_get_dwz_file): Move to dwz.c.
4900 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4901 read.h.
4902 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4903 (dwarf2_get_dwz_file): Move from read.c.
4904
18035655
TT
49052021-03-06 Tom Tromey <tom@tromey.com>
4906
4907 * debuginfod-support.h: Include scoped_fd.h.
4908
a7308ce0
TT
49092021-03-06 Tom Tromey <tom@tromey.com>
4910
4911 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4912 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4913 (get_abbrev_section_for_cu, read_attribute_value)
4914 (get_debug_line_section): Update.
4915 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4916
fbedd546
TT
49172021-03-06 Tom Tromey <tom@tromey.com>
4918
4919 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4920 method.
4921 * dwarf2/read.c (section_is_p): Remove.
4922 (dwarf2_per_bfd::locate_sections)
4923 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4924 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4925 (dwarf2_locate_common_dwp_sections)
4926 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4927 Update.
4928
c2a62a3d
TT
49292021-03-06 Tom Tromey <tom@tromey.com>
4930
4931 * xcoffread.c: Include sect-names.h.
4932 * symfile.h (struct dwarf2_section_names, struct
4933 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4934 * dwarf2/sect-names.h: New file, from symfile.h.
4935 * dwarf2/read.c: Include sect-names.h.
4936
4444f407
TT
49372021-03-06 Tom Tromey <tom@tromey.com>
4938
4939 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4940 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4941 (abbrev_table::read): Update.
4942 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4943 (struct abbrev_info): Reformat.
4944 <attrs>: Now an array.
4945 (struct abbrev_table) <alloc_abbrev>: Remove.
4946
dd99cf0c
WP
49472021-03-06 Weimin Pan <weimin.pan@oracle.com>
4948
4949 * ctfread.c (ctf_psymtab_add_enums): New function.
4950 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4951
844be3f2
WP
49522021-03-06 Weimin Pan <weimin.pan@oracle.com>
4953
4954 * ctfread.c (read_func_kind_type): Set up function arguments.
4955
b2668f28
AB
49562021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4957 Andrew Burgess <andrew.burgess@embecosm.com>
4958
4959 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4960 includes.
4961 (riscv_csrset): New static global.
4962 (riscv_update_csrmap): New function.
4963 (riscv_iterate_over_regset_sections): Process CSRs.
4964
d782d24b
AB
49652021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4966
4967 * riscv-tdep.c (riscv_feature_name_csr): Define.
4968 (riscv_feature_name_cpu): Define.
4969 (riscv_feature_name_fpu): Define.
4970 (riscv_feature_name_virtual): Define.
4971 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4972 (riscv_freg_feature): Use riscv_feature_name_fpu.
4973 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4974 (riscv_csr_feature): Use riscv_feature_name_csr.
4975 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4976
fb8f3fc0
AB
49772021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4978 Craig Blackmore <craig.blackmore@embecosm.com>
4979
4980 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4981 (ALLDEPFILES): Add riscv-none-tdep.c.
4982 * configure: Regenerate.
4983 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4984 support.
4985 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4986 * elf-none-tdep.c: New file.
4987 * elf-none-tdep.h: New file.
4988 * riscv-none-tdep.c: New file.
4989
95ce627a
AB
49902021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4991 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 * corelow.c: Add 'xml-tdesc.h' include.
4994 (core_target::read_description): Load the target description from
4995 the core file when possible.
4996 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4997 note.
4998 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4999 (gcore_elf_make_tdesc_note): New function.
5000 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5001 * linux-tdep.c (linux_make_corefile_notes): Add target description
5002 note.
5003
f3a5df7b
AB
50042021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5005
5006 * Makefile.in (SFILES): Add gcore-elf.c.
5007 (HFILES_NO_SRCDIR): Add gcore-elf.h
5008 * configure: Regenerate.
5009 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5010 support.
5011 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5012 (struct fbsd_collect_regset_section_cb_data): Delete.
5013 (fbsd_collect_regset_section_cb): Delete.
5014 (fbsd_collect_thread_registers): Delete.
5015 (struct fbsd_corefile_thread_data): Delete.
5016 (fbsd_corefile_thread): Delete.
5017 (fbsd_make_corefile_notes): Call
5018 gcore_elf_build_thread_register_notes instead of the now deleted
5019 FreeBSD code.
5020 * gcore-elf.c: New file, the content was moved here from
5021 linux-tdep.c, functions were renamed and given minor cleanup.
5022 * gcore-elf.h: New file.
5023 * gcore.c (gcore_find_signalled_thread): Moved here from
5024 linux-tdep.c and given a new name. Minor cleanups.
5025 * gcore.h (gcore_find_signalled_thread): Declare.
5026 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5027 (struct linux_collect_regset_section_cb_data): Delete.
5028 (linux_collect_regset_section_cb): Delete.
5029 (linux_collect_thread_registers): Delete.
5030 (linux_corefile_thread): Call
5031 gcore_elf_build_thread_register_notes.
5032 (find_signalled_thread): Delete.
5033 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5034
d1e93af6
SM
50352021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5036
5037 PR gdb/27147
5038 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5039 process_stratum_target parameter,
5040 sparc_store_inferior_registers): update callers.
5041 * sparc-nat.c (sparc_fetch_inferior_registers,
5042 sparc_store_inferior_registers): Add process_stratum_target
5043 parameter. Switch current thread before calling
5044 sparc_supply_gregset / sparc_collect_rwindow.
5045 (sparc_store_inferior_registers): Likewise.
5046 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5047 (sparc32obsd_collect_uthread): Likewise.
5048 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5049 Add assertion.
5050 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5051 sparc64obsd_supply_uthread): Add assertion.
5052
1178743e
TT
50532021-03-04 Tom Tromey <tromey@adacore.com>
5054
5055 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5056 (aux_add_nonlocal_symbols): Update.
5057 (ada_add_block_symbols): Change "found_sym" to bool.
5058
1bfa81ac
TT
50592021-03-03 Tom Tromey <tromey@adacore.com>
5060
5061 * ada-lang.c (ada_resolve_function): Update comment.
5062 (is_nonfunction, add_symbols_from_enclosing_procs)
5063 (remove_extra_symbols): Likewise.
5064 (struct match_data): Add constructor, initializers.
5065 (add_nonlocal_symbols): Remove memset.
5066 (aux_add_nonlocal_symbols): Update comment.
5067 (ada_add_block_renamings, add_nonlocal_symbols)
5068 (ada_add_all_symbols): Likewise.
5069 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5070
bbcdf9ab
TT
50712021-03-02 Tom Tromey <tromey@adacore.com>
5072
5073 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5074 (cast_to_gnat_encoded_fixed_point_type): Remove.
5075 (ada_value_cast, ada_evaluate_subexp): Update.
5076 (gnat_encoded_fixed_point_type_info)
5077 (ada_is_gnat_encoded_fixed_point_type)
5078 (gnat_encoded_fixed_point_delta)
5079 (gnat_encoded_fixed_point_scaling_factor): Remove.
5080 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5081 (gnat_encoded_fixed_point_delta)
5082 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5083 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5084 (ada_print_type): Update.
5085 * ada-valprint.c (ada_value_print_num): Update.
5086 * dwarf2/read.c (ada_get_gnat_encoded_number)
5087 (ada_get_gnat_encoded_ratio): New functions.
5088 (finish_fixed_point_type): Use them. Add parameters.
5089 (GNAT_FIXED_POINT_SUFFIX): New define.
5090 (gnat_encoded_fixed_point_type_info): New function.
5091 (read_base_type): Handle gnat encodings.
5092
5f9febe0
TT
50932021-03-02 Tom Tromey <tromey@adacore.com>
5094
5095 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5096 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5097 std::string.
5098 (GROW_VECT): Remove.
5099 (grow_vect): Remove.
5100
d1183b06
TT
51012021-03-02 Tom Tromey <tromey@adacore.com>
5102
5103 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5104 * ada-lang.c (resolve_subexp): Update.
5105 (ada_resolve_function): Accept a vector.
5106 (is_nonfunction, add_defn_to_vec)
5107 (add_symbols_from_enclosing_procs): Likewise.
5108 (num_defns_collected, defns_collected): Remove.
5109 (remove_extra_symbols): Return a vector.
5110 (remove_irrelevant_renamings): Return void.
5111 (ada_add_local_symbols): Accept a vector.
5112 (struct match_data) <obstackp>: Remove.
5113 <resultp>: New member.
5114 (aux_add_nonlocal_symbols): Update.
5115 (ada_add_block_renamings, add_nonlocal_symbols)
5116 (ada_add_all_symbols): Accept a vector.
5117 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5118 vector.
5119 (ada_lookup_symbol): Update.
5120 (ada_add_block_symbols): Accept a vector.
5121 (get_var_value, iterate_over_symbols): Update.
5122 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5123 Update.
5124
886d459f
TT
51252021-03-02 Tom Tromey <tromey@adacore.com>
5126
5127 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5128
bdcccc56
TT
51292021-03-02 Tom Tromey <tromey@adacore.com>
5130
5131 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5132 auto_obstack.
5133 <root>: Initialize.
5134 (ada_pspace_data): Remove destructor.
5135 <sym_cache>: Now a unique_ptr.
5136 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5137 (ada_get_symbol_cache): Use 'new'.
5138 (ada_clear_symbol_cache): Rewrite.
5139
1228719f
TT
51402021-03-02 Tom Tromey <tromey@adacore.com>
5141
5142 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5143 is null.
5144
bb3a4efe
LS
51452021-02-27 Lancelot Six <lsix@lancelotsix.com>
5146
5147 PR gdb/27393
5148 * source.c (add_path): Skip empty dirnames.
5149
26b43ca6 51502021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5151
5152 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5153 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5154
dffdd8b5
SM
51552021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5156
5157 PR gdb/26861
5158 * target.c (target_mourn_inferior): Only compare pids in
5159 target_mourn_inferior.
5160
64d38fdd
JM
51612021-02-25 Jan Matyas <jmatyas@codasip.com>
5162
5163 PR gdb/26819
5164 * remote.c (remote_target::start_remote): Ensure the single
5165 thread, automatically added for remote targets without the
5166 concept of threading, is initially in set to the "resumed"
5167 state.
5168 * remote.c (remote_target::add_current_inferior_and_thread):
5169 Add return value - return the main thread.
5170
2450ad54
JV
51712021-02-25 Jan Vrany <jan.vrany@labware.com>
5172
5173 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5174 (mi_tsv_created): Likewise.
5175 (mi_tsv_deleted): Likewise.
5176
30c80d88
TV
51772021-02-25 Tom de Vries <tdevries@suse.de>
5178
5179 PR symtab/27354
5180 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5181 section_kind for &dwo_file->sections.info.
5182
68337b8b
AB
51832021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5184
5185 PR fortran/26155
5186 * f-lang.c (fortran_argument_convert): Delete declaration.
5187 (fortran_prepare_argument): New function.
5188 (evaluate_subexp_f): Move logic to new function
5189 fortran_prepare_argument.
5190
faeb9f13
AB
51912021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5192
5193 * f-exp.y (f77_keywords): Add 'associated'.
5194 * f-lang.c (fortran_associated): New function.
5195 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5196 (operator_length_f): Likewise.
5197 (print_unop_or_binop_subexp_f): New function.
5198 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5199 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5200 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5201 (operator_check_f): Likewise.
5202 * std-operator.def: Add FORTRAN_ASSOCIATED.
5203
170f4b23
AB
52042021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5205
5206 * f-exp.y (fortran_operators): Add ".xor.".
5207
aa659cfa
TV
52082021-02-24 Tom de Vries <tdevries@suse.de>
5209
5210 PR symtab/27336
5211 * dwarf2/attribute.c (attribute::form_is_signed): New function
5212 factored out of ...
5213 * dwarf2/attribute.h (attribute::as_signed): ... here.
5214 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5215 (attribute::form_is_signed): Declare.
5216 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5217 for DW_AT_decl_file.
5218
268c77c1
KB
52192021-02-24 Kevin Buettner <kevinb@redhat.com>
5220
5221 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5222 order for <sys/ptrace.h> and <asm/ptrace.h>.
5223
665af52e
KB
52242021-02-24 Kevin Buettner <kevinb@redhat.com>
5225
5226 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5227 <sys/ptrace.h>.
5228
dd80d750
AB
52292021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5230
5231 * exec.c (set_section_command): Move variable declarations into
5232 the function body, and use std::string instead of a fixed size
5233 buffer.
5234
336aa7b7
AB
52352021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5236
5237 * exec.c (exec_target::get_section_table): Delete member function.
5238 (section_table_read_available_memory): Use current_top_target, not
5239 just the exec_ops target.
5240 * target-delegates.c: Regenerate.
5241 * target.c (default_get_section_table): New function.
5242 * target.h (target_ops::get_section_table): Change default
5243 behaviour to call default_get_section_table.
5244 (default_get_section_table): Declare.
5245
02f7d26b
AB
52462021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 * exec.c (exec_target::close): Call new clear_target_sections
5249 function.
5250 (program_space::add_target_sections): Update name of member
5251 variable.
5252 (program_space::add_target_sections): Update name of member
5253 variable.
5254 (program_space::remove_target_sections): Likewise.
5255 (exec_one_fork): Use new target_sections member function.
5256 (exec_target::get_section_table): Likewise.
5257 (exec_target::files_info): Likewise.
5258 (set_section_command): Likewise.
5259 (exec_set_section_address): Likewise.
5260 (exec_target::has_memory): Use new target_sections member
5261 function.
5262 * progspace.h (program_space::clear_target_sections): New member
5263 function.
5264 (program_space::target_sections): Rename member variable to
5265 m_target_sections, replace with a new member function.
5266 (program_space::m_target_sections): New member variable.
5267 * solib-dsbt.c (scan_dyntag): Use new member function.
5268 * solib-svr4.c (scan_dyntag): Likewise.
5269
19cf757a
AB
52702021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5271
5272 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5273 return type const.
5274 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5275 (section_table_read_available_memory): Make local const.
5276 (exec_target::xfer_partial): Make local const.
5277 (print_section_info): Make parameter const.
5278 * gdb/exec.h (print_section_info): Likewise.
5279 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5280 const.
5281 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5282 Likewise.
5283 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5284 Likewise.
5285 * gdb/s390-tdep.c (s390_load): Likewise.
5286 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5287 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5288 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5289 Rename to...
5290 (target_debug_print_const_target_section_table_p): ...this.
5291 * gdb/target-delegates.c: Regenerate.
5292 * gdb/target.c (target_get_section_table): Make return type const.
5293 (target_section_by_addr): Likewise. Also make some locals const.
5294 (memory_xfer_partial_1): Make some locals const.
5295 * gdb/target.h (struct target_ops) <get_section_table>: Make
5296 return type const.
5297 (target_section_by_addr): Likewise.
5298 (target_get_section_table): Likewise.
5299
02a79309
AB
53002021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5301
5302 * NEWS: Mention new 'maint info target-sections' command.
5303 * maint.c (maintenance_info_target_sections): New function.
5304 (_initialize_maint_cmds): Register new command.
5305
895b7b4e
AB
53062021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5307
5308 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5309 (riscv_features_from_bfd): ...this. Change parameter type to
5310 'bfd*', and update as required.
5311 (riscv_find_default_target_description): Update call to
5312 riscv_features_from_bfd. Select a default xlen based on
5313 info.bfd_arch_info.
5314 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5315
bc3c0632
AB
53162021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5317
5318 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5319 dynamic types in UNOP_IND.
5320
08ac5771
SM
53212021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5322
5323 PR gdb/26828
5324 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5325 Instantiate queue.
5326 (~dwarf2_queue_guard): Clear queue.
5327 (queue_comp_unit): Assert that queue is
5328 instantiated.
5329 (process_queue): Adjust.
5330 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5331
616c069a
SM
53322021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5333
5334 PR gdb/26828
5335 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5336 to decide whether or not to enqueue it for expansion.
5337 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5338 after calling maybe_queue_comp_unit.
5339
897608ed
SM
53402021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5341
5342 * linux-nat.c (linux_nat_filter_event): Return void.
5343
15908a11
TT
53442021-02-22 Tom Tromey <tromey@adacore.com>
5345
5346 * solib-svr4.c (enable_break): Update.
5347 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5348 type.
5349 (target_bfd_reopen): Change parameter type.
5350 * bfd-target.h (target_bfd_reopen): Change parameter type.
5351
f53fc427
SM
53522021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5353
5354 * thread.c (add_thread_silent): Add assert.
5355 (find_thread_ptid): Add assert.
5356
de146e19
SM
53572021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5358
5359 PR gdb/27435
5360 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5361 (target_unpush_up): Likewise.
5362 * procfs.c (procfs_target::attach): Push target early. Use
5363 target_unpush_up to unpush target in case of error.
5364 * target.h (struct target_unpusher): Move here.
5365 (target_unpush_up): Likewise.
5366
8488c357
KB
53672021-02-19 Kevin Buettner <kevinb@redhat.com>
5368
5369 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5370 (which in turn includes <gnulib/config.h>) before include
5371 of <signal.h>.
5372
5a9f5403
NC
53732021-02-19 Nelson Chu <nelson.chu@sifive.com>
5374
5375 PR 27158
5376 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5377 (decode_j_type_insn): Likewise.
5378 (decode_cj_type_insn): Likewise.
5379 (decode_b_type_insn): Likewise.
5380 (decode): Likewise.
5381
26f53cd3
TT
53822021-02-18 Tom Tromey <tom@tromey.com>
5383
5384 * expression.h (struct expression) <evaluate>: Declare method.
5385 * eval.c (evaluate_subexp): Simplify.
5386 (expression::evaluate): New method.
5387 (evaluate_expression, evaluate_type): Use expression::evaluate.
5388
6a780b67
KB
53892021-02-17 Kevin Buettner <kevinb@redhat.com>
5390
5391 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5392 to accessing it.
5393 (ada_lookup_name_info): Likewise.
5394
adeab0c5
MF
53952021-02-13 Mike Frysinger <vapier@gentoo.org>
5396
5397 * aclocal.m4: Regenerate.
5398
089436f7
TV
53992021-02-12 Tom de Vries <tdevries@suse.de>
5400
5401 PR threads/26228
5402 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5403 (lin_thread_signals): New static var.
5404 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5405 New function.
5406 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5407 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5408 Declare.
5409 * linux-thread-db.c (check_thread_signals): Use
5410 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5411
96df3e28
AB
54122021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5413
5414 * f-exp.y (f77_keywords): Add allocated.
5415 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5416 (operator_length_f): Likewise.
5417 (print_subexp_f): Likewise.
5418 (dump_subexp_body_f): Likewise.
5419 (operator_check_f): Likewise.
5420 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5421
05f68f52
TV
54222021-02-11 Tom de Vries <tdevries@suse.de>
5423
5424 PR symtab/27353
5425 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5426 Return true for DW_FORM_strx.
5427
b260f8d6
TT
54282021-02-11 Tom Tromey <tromey@adacore.com>
5429
5430 PR gdb/27383:
5431 * parse.c (write_exp_symbol_reference): Write sym.block.
5432
bf3386f0
AB
54332021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5434
5435 * NEWS: Mention changes to 'maint info sections'.
5436 * maint.c (match_substring): Return a bool, fix whitespace issue.
5437 (struct single_bfd_flag_info): New struct.
5438 (bfd_flag_info): New static global.
5439 (match_bfd_flags): Return a bool, use bfd_flag_info.
5440 (print_bfd_flags): Use bfd_flag_info.
5441 (maint_print_section_info): Delete trailing whitespace.
5442 (struct maint_info_sections_opts): New struct.
5443 (maint_info_sections_option_defs): New static global.
5444 (maint_info_sections_completer): New function.
5445 (maintenance_info_sections): Use option parsing mechanism.
5446 (_initialize_maint_cmds): Update command help text for 'maint info
5447 sections' and register a command completer.
5448
4790db14
AB
54492021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5450
5451 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5452 functionality merged into...
5453 (maint_print_all_sections): ...this new function.
5454 (maintenance_info_sections): Make use of maint_print_all_sections,
5455 allow all objects to be printed even where there's no executable.
5456
1db66e34
AB
54572021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5458
5459 * breakpoint.c (resolve_sal_pc): Make use of
5460 bound_minimal_symbol::obj_section.
5461 * maint.c (maintenance_translate_address): Likewise.
5462 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5463 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5464 member function.
5465 * printcmd.c (info_address_command): Make use of
5466 bound_minimal_symbol::obj_section.
5467
18b8df43
AM
54682021-02-11 Alan Modra <amodra@gmail.com>
5469
5470 * arm-symbian-tdep.c: Delete.
5471 * NEWS: Mention arm-symbian removal.
5472 * Makefile.in: Remove arm-symbian-tdep entries.
5473 * configure.tgt: Remove arm*-*-symbianelf*.
5474 * doc/gdb.texinfo: Remove mention of SymbianOS.
5475 * osabi.c (gdb_osabi_names): Remove "Symbian".
5476 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5477 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5478 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5479 handling.
5480 * testsuite/gdb.base/dup-sect.exp: Likewise.
5481 * testsuite/gdb.base/long_long.exp: Likewise.
5482 * testsuite/gdb.base/solib-weak.exp: Likewise.
5483 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5484 * testsuite/gdb.python/py-section-script.exp: Likewise.
5485 * testsuite/lib/dwarf.exp: Likewise.
5486 * testsuite/lib/gdb.exp: Likewise.
5487
e92c8eb8
AB
54882021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5489
5490 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5491 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5492 (one_or_two_args): New pattern.
5493 (f77_keywords): Add lbound and ubound.
5494 * f-lang.c (fortran_bounds_all_dims): New function.
5495 (fortran_bounds_for_dimension): New function.
5496 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5497 (operator_length_f): Likewise.
5498 (print_subexp_f): Likewise.
5499 (dump_subexp_body_f): Likewise.
5500 (operator_check_f): Likewise.
5501 * std-operator.def (FORTRAN_LBOUND): Define.
5502 (FORTRAN_UBOUND): Define.
5503
a52d653e
AB
55042021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5505
5506 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5507 and set_section_index member functions where appropriate.
5508 * coffread.c (coff_symtab_read): Likewise.
5509 (process_coff_symbol): Likewise.
5510 * ctfread.c (set_symbol_address): Likewise.
5511 * dwarf2/read.c (add_partial_symbol): Likewise.
5512 (var_decode_location): Likewise.
5513 * language.c: Likewise.
5514 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5515 (compact_minimal_symbols): Likewise.
5516 (minimal_symbol_upper_bound): Likewise.
5517 * objfiles.c (relocate_one_symbol): Likewise.
5518 * psympriv.h (partial_symbol::obj_section): Likewise.
5519 (partial_symbol::address): Likewise.
5520 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5521 * stabsread.c (scan_file_globals): Likewise.
5522 * symmisc.c (dump_msymbols): Likewise.
5523 * symtab.c (general_symbol_info::obj_section): Likewise.
5524 (fixup_section): Likewise.
5525 (get_msymbol_address): Likewise.
5526 * symtab.h (general_symbol_info::section): Rename to...
5527 (general_symbol_info::m_section): ...this.
5528 (general_symbol_info::set_section_index): New member function.
5529 (general_symbol_info::section_index): Likewise.
5530 (SYMBOL_SECTION): Delete.
5531 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5532 set_section_index member functions where appropriate.
5533 (MSYMBOL_SECTION): Delete.
5534 (symbol::symbol): Update to initialize 'm_section'.
5535 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5536 (process_xcoff_symbol): Likewise.
5537
ebbc3a7d
AB
55382021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5541 MSYMBOL_OBJ_SECTION.
5542 * findvar.c (language_defn::read_var_value): Likewise.
5543 * infcmd.c (jump_command): Likewise.
5544 * linespec.c (minsym_found): Likewise.
5545 * maint.c (maintenance_translate_address): Likewise.
5546 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5547 (minimal_symbol_upper_bound): Likewise.
5548 * parse.c (find_minsym_type_and_address): Likewise.
5549 (operator_check_standard): Likewise.
5550 * printcmd.c (info_address_command): Likewise.
5551 * symmisc.c (dump_msymbols): Likewise.
5552 (print_symbol): Likewise.
5553 * symtab.c (general_symbol_info::obj_section): Define new
5554 function.
5555 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5556 (find_pc_sect_compunit_symtab): Likewise.
5557 (find_function_start_sal): Likewise.
5558 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5559 MSYMBOL_OBJ_SECTION.
5560 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5561 function.
5562 (SYMBOL_OBJ_SECTION): Delete.
5563 (MSYMBOL_OBJ_SECTION): Delete.
5564
9bb305b3
TT
55652021-02-09 Tom Tromey <tom@tromey.com>
5566
5567 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5568
cf2b2075
TV
55692021-02-09 Tom de Vries <tdevries@suse.de>
5570
5571 PR symtab/27341
5572 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5573 construct an array type. Add assert to ensure that element_type is
5574 not being modified.
5575
03642b71
AB
55762021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5577
5578 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5579 (gcore_collect_regset_section_cb): Delete.
5580 (gcore_collect_thread_registers): Delete.
5581 (gcore_build_thread_register_notes): Delete.
5582 (gcore_find_signalled_thread): Delete.
5583 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5584 'gdbarch' and 'thread_info' declarations.
5585 (gcore_build_thread_register_notes): Delete declaration.
5586 (gcore_find_signalled_thread): Likewise.
5587 * fbsd-tdep.c: Remove 'gcore.h' include.
5588 (struct fbsd_collect_regset_section_cb_data): New struct.
5589 (fbsd_collect_regset_section_cb): New function.
5590 (fbsd_collect_thread_registers): New function.
5591 (struct fbsd_corefile_thread_data): New struct.
5592 (fbsd_corefile_thread): New function.
5593 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5594 * linux-tdep.c: Remove 'gcore.h' include.
5595 (struct linux_collect_regset_section_cb_data): New struct.
5596 (linux_collect_regset_section_cb): New function.
5597 (linux_collect_thread_registers): New function.
5598 (linux_corefile_thread): Call Linux specific code.
5599 (find_signalled_thread): New function.
5600 (linux_make_corefile_notes): Call find_signalled_thread.
5601
f73e424f
TT
56022021-02-09 Tom Tromey <tromey@adacore.com>
5603
5604 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5605 not_lval value.
5606 * value.c (value_contents_copy_raw): Now static.
5607 * value.h (value_contents_copy_raw): Don't declare.
5608
a4f0544b
TT
56092021-02-09 Tom Tromey <tromey@adacore.com>
5610
5611 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5612 fields.
5613
9b3e4b5d
SV
56142021-02-08 Shahab Vahedi <shahab@synopsys.com>
5615
5616 PR tdep/27369
5617 * arc-linux-tdep.c (handle_atomic_sequence): New.
5618 (arc_linux_software_single_step): Call handle_atomic_sequence().
5619
29db1eb3
AB
56202021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5621
5622 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5623 function.
5624 (REQUIRE_WINDOW): Call is_valid member function.
5625 (REQUIRE_WINDOW_FOR_SETTER): New define.
5626 (gdbpy_tui_is_valid): Call is_valid member function.
5627 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5628 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5629 tui_active too.
5630 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5631 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5632 the function.
5633
e0c23e11
AB
56342021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5635
5636 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5637 for the title is not nullptr.
5638
1cf23996
AB
56392021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5640
5641 * tui-layout.c (saved_tui_windows): Delete.
5642 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5643 call new get_windows member function instead.
5644 (tui_get_window_by_name): Check in tui_windows.
5645 (tui_layout_window::apply): Don't add to tui_windows.
5646 * tui-layout.h (tui_layout_base::get_windows): New member function.
5647 (tui_layout_window::get_windows): Likewise.
5648 (tui_layout_split::get_windows): Likewise.
5649
a53a2657
AB
56502021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5651
5652 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5653 of the window objects.
5654
2708dbbd
AB
56552021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5656
5657 * python/python.c (gdbpy_print_stack): Reformat an error message.
5658
cd074e04
AB
56592021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5660
5661 * tui/tui-interp.c (tui_command_line_handler): New function.
5662 (tui_interp::resume): Register tui_command_line_handler as the
5663 input_handler.
5664 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5665 function.
5666 (tui_getc_1): Delete handling of '\n' and '\r'.
5667 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5668
4cf28e91
HD
56692021-02-07 Hannes Domani <ssbssa@yahoo.de>
5670
5671 * tui/tui-regs.c (tui_data_window::display_registers_from):
5672 Mark invisible register sub windows.
5673 (tui_data_window::check_register_values): Ignore invisible
5674 register sub windows.
5675
3537bc23
HD
56762021-02-07 Hannes Domani <ssbssa@yahoo.de>
5677
5678 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5679 n_spaces with a negative value.
5680
5fc2d6aa
HD
56812021-02-07 Hannes Domani <ssbssa@yahoo.de>
5682
5683 * tui/tui-regs.c (tui_data_window::display_registers_from):
5684 Add refresh_window call.
5685
83962f83
HD
56862021-02-07 Hannes Domani <ssbssa@yahoo.de>
5687
5688 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5689
0110ec82
SM
56902021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5691
5692 * symmisc.c (std_in, std_out, std_err): Remove.
5693 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5694
7c6944ab
TV
56952021-02-05 Tom de Vries <tdevries@suse.de>
5696
5697 PR breakpoints/27330
5698 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5699 glibc object file has debug info.
5700
e77b0004
TV
57012021-02-05 Tom de Vries <tdevries@suse.de>
5702
5703 PR symtab/27333
5704 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5705
0e857c82
TV
57062021-02-05 Tom de Vries <tdevries@suse.de>
5707
5708 PR breakpoints/27313
5709 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5710 syscall numbers.
5711
bdfea17e
TT
57122021-02-05 Tom Tromey <tom@tromey.com>
5713
5714 * compile/compile-c-support.c (get_compile_context)
5715 (c_get_compile_context, cplus_get_compile_context): Change return
5716 type.
5717 * language.c (language_defn::get_compile_instance): New method.
5718 * language.h (language_defn::get_compile_instance): Change return
5719 type. No longer inline.
5720 * c-lang.c (c_language::get_compile_instance): Change return type.
5721 (cplus_language::get_compile_instance): Change return type.
5722 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5723 Change return type.
5724 * compile/compile.c (compile_to_object): Update.
5725
1b30f421
TT
57262021-02-05 Tom Tromey <tom@tromey.com>
5727
5728 * parser-defs.h (write_exp_symbol_reference): Declare.
5729 * parse.c (write_exp_symbol_reference): New function.
5730 * p-exp.y (variable): Use write_exp_symbol_reference.
5731 * m2-exp.y (variable): Use write_exp_symbol_reference.
5732 * f-exp.y (variable): Use write_exp_symbol_reference.
5733 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5734 * c-exp.y (variable): Use write_exp_symbol_reference.
5735
ae710496
TV
57362021-02-05 Tom de Vries <tdevries@suse.de>
5737
5738 PR exp/27265
5739 * valarith.c (complex_binop): Throw an error if complex type can't
5740 be created.
5741
d3b54e63
TV
57422021-02-05 Tom de Vries <tdevries@suse.de>
5743
5744 PR symtab/27307
5745 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5746 return.
5747
fc9a13fb
TV
57482021-02-05 Tom de Vries <tdevries@suse.de>
5749
5750 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5751
04b4939b
MF
57522021-02-04 Mike Frysinger <vapier@gentoo.org>
5753
5754 * configure.tgt (riscv*-*-*): Set gdb_sim.
5755
6ff267e1
SM
57562021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5757
5758 * target.c (target_is_non_stop_p): Return bool.
5759 * target.h (target_is_non_stop_p): Return bool.
5760
fdbc5215
SM
57612021-02-04 Simon Marchi <simon.marchi@efficios.com>
5762
5763 * record-full.c (record_full_async_inferior_event_handler):
5764 Don't clear async event handler.
5765 (record_full_base_target::wait): Clear async event handler at
5766 beginning.
5767
85d3ad8e
SM
57682021-02-04 Simon Marchi <simon.marchi@efficios.com>
5769
5770 * record-btrace.c (record_btrace_handle_async_inferior_event):
5771 Don't clear async event handler.
5772 (record_btrace_target::wait): Clear async event handler at
5773 beginning.
5774
baa8575b
SM
57752021-02-04 Simon Marchi <simon.marchi@efficios.com>
5776
5777 * remote.c (remote_target::wait): Clear async event handler at
5778 beginning, mark if needed at the end.
5779 (remote_async_inferior_event_handler): Don't set or clear async
5780 event handler.
5781
6b36ddeb
SM
57822021-02-04 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * async-event.h (async_event_handler_func): Add documentation.
5785 * async-event.c (check_async_event_handlers): Don't clear
5786 async_event_handler ready flag.
5787 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5788 flag.
5789 * record-btrace.c (record_btrace_handle_async_inferior_event):
5790 Likewise.
5791 * record-full.c (record_full_async_inferior_event_handler):
5792 Likewise.
5793 * remote-notif.c (remote_async_get_pending_events_handler):
5794 Likewise.
5795 * remote.c (remote_async_inferior_event_handler): Likewise.
5796
72d383bb
SM
57972021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * infrun.c (handle_inferior_event): Move stop_soon variable to
5800 inner scope.
5801
408f6686
PA
58022021-02-03 Pedro Alves <pedro@palves.net>
5803
5804 * infcmd.c (detach_command): Hold strong reference to target, and
5805 if all-stop on entry, restart threads on exit.
5806 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5807 (restart_stepped_thread): ... this new function. Also handle
5808 trap_expected.
5809 (restart_after_all_stop_detach): New function.
5810 * infrun.h (restart_after_all_stop_detach): Declare.
5811
ac7d717c
PA
58122021-02-03 Pedro Alves <pedro@palves.net>
5813
5814 * infrun.c (struct step_over_info): Initialize fields.
5815 (prepare_for_detach): Handle ongoing in-line step over.
5816
e87f0fe8
PA
58172021-02-03 Pedro Alves <pedro@palves.net>
5818
5819 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5820 here...
5821 * remote.c (remote_target::remote_detach_1): ... and here ...
5822 * target.c (target_detach): ... instead of here.
5823 * target.h (target_ops::detach): Add comment.
5824
8ff53139
PA
58252021-02-03 Pedro Alves <pedro@palves.net>
5826
5827 * infrun.c (struct wait_one_event): Move higher up.
5828 (prepare_for_detach): Abort in-progress displaced steps instead of
5829 letting them complete.
5830 (handle_one): If the inferior is detaching, don't add the thread
5831 back to the global step-over chain.
5832 (restart_threads): Don't restart threads if detaching.
5833 (handle_signal_stop): Remove inferior::detaching reference.
5834
91475068
PA
58352021-02-03 Pedro Alves <pedro@palves.net>
5836
5837 * infrun.c (prepare_for_detach): Don't release scoped_restore
5838 before returning.
5839
d758e62c
PA
58402021-02-03 Pedro Alves <pedro@palves.net>
5841
5842 * infrun.c (handle_one): New function, factored out from ...
5843 (stop_all_threads): ... here.
5844
b0083dd7
PA
58452021-02-03 Pedro Alves <pedro@palves.net>
5846
5847 * remote.c (remote_notif_stop_ack): Don't error out on
5848 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5849 (remote_target::discard_pending_stop_replies): Don't delete
5850 in-flight notification; instead, clear its contents.
5851
621cc310
PA
58522021-02-03 Pedro Alves <pedro@palves.net>
5853
5854 * remote.c (extended_remote_target::attach): Set target async in
5855 the target-non-stop path too.
5856
2ab76a18
PA
58572021-02-03 Pedro Alves <pedro@palves.net>
5858
5859 PR gdb/27055
5860 * infrun.c (handle_signal_stop): Move main context_switch call
5861 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5862
2e3773ff
LS
58632021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5864
5865 * NEWS (Changed commands): Add entry for the behavior change of
5866 the inferior command.
5867 * inferior.c (inferior_command): When no argument is given to the
5868 inferior command, display info about the currently selected
5869 inferior.
5870
e57933dc
SM
58712021-02-02 Simon Marchi <simon.marchi@efficios.com>
5872
5873 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5874 a sect_offset.
5875 (read_attribute_reprocess): Adjust.
5876
2b0c7f41
SM
58772021-02-02 Simon Marchi <simon.marchi@efficios.com>
5878
5879 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5880 <gnu_ranges_base>: ... this...
5881 <rnglists_base>: ... and this.
5882 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5883 <gnu_ranges_base>: ... this...
5884 <rnglists_base>: ... and this.
5885 (read_cutu_die_from_dwo): Adjust
5886 (dwarf2_get_pc_bounds): Adjust
5887 (dwarf2_record_block_ranges): Adjust.
5888 (read_full_die_1): Adjust
5889 (partial_die_info::read): Adjust.
5890 (read_rnglist_index): Adjust.
5891
a1c40103
SM
58922021-02-02 Simon Marchi <simon.marchi@efficios.com>
5893
5894 PR gdb/26813
5895 * dwarf2/read.c (read_loclists_rnglists_header): Add
5896 header_offset parameter and use it.
5897 (read_loclist_index): Read header of the current contribution,
5898 not the one at the beginning of the section.
5899 (read_rnglist_index): Likewise.
5900
b1829e1b
SM
59012021-02-02 Simon Marchi <simon.marchi@efficios.com>
5902
5903 PR gdb/26813
5904 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5905 requires_reprocessing flag.
5906 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5907 DW_FORM_loclistx.
5908 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5909 and DW_FORM_loclistx.
5910 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5911 instead of set_address for DW_FORM_loclistx and
5912 DW_FORM_rnglistx.
5913
0c800c6e
SM
59142021-02-02 Simon Marchi <simon.marchi@efficios.com>
5915
5916 * dwarf2/read.c (read_loclist_index): Remove bound check for
5917 start of offset.
5918 (read_rnglist_index): Likewise.
5919
05787bad
SM
59202021-02-02 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5923 of the offset.
5924
5e4d9bbc
SM
59252021-02-02 Simon Marchi <simon.marchi@efficios.com>
5926
5927 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5928
a0c1eeba
SM
59292021-02-02 Simon Marchi <simon.marchi@efficios.com>
5930
5931 * dwarf2/read.c (read_loclist_index): Change complaints into
5932 errors.
5933
2bd3e4b8
TV
59342021-02-02 Tom de Vries <tdevries@suse.de>
5935
5936 PR symtab/24620
5937 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5938 psymtab == nullptr.
5939
82a1fd3a
AB
59402021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5941
5942 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5943 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5944 here from linux-tdep.c and given a new name. Minor cleanups.
5945 (gcore_collect_regset_section_cb): Likewise.
5946 (gcore_collect_thread_registers): Likewise.
5947 (gcore_build_thread_register_notes): Likewise.
5948 (gcore_find_signalled_thread): Likewise.
5949 * gcore.h (gcore_build_thread_register_notes): Declare.
5950 (gcore_find_signalled_thread): Declare.
5951 * fbsd-tdep.c: Add 'gcore.h' include.
5952 (struct fbsd_collect_regset_section_cb_data): Delete.
5953 (fbsd_collect_regset_section_cb): Delete.
5954 (fbsd_collect_thread_registers): Delete.
5955 (struct fbsd_corefile_thread_data): Delete.
5956 (fbsd_corefile_thread): Delete.
5957 (fbsd_make_corefile_notes): Call
5958 gcore_build_thread_register_notes instead of the now deleted
5959 FreeBSD code.
5960 * linux-tdep.c: Add 'gcore.h' include.
5961 (struct linux_collect_regset_section_cb_data): Delete.
5962 (linux_collect_regset_section_cb): Delete.
5963 (linux_collect_thread_registers): Delete.
5964 (linux_corefile_thread): Call
5965 gcore_build_thread_register_notes.
5966 (find_signalled_thread): Delete.
5967 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5968
ebde6f2d
TV
59692021-01-29 Tom de Vries <tdevries@suse.de>
5970
5971 PR breakpoints/26063
5972 * infrun.c (process_event_stop_test): Reset
5973 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5974 changed.
5975
0f93c3a2
AB
59762021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5977
5978 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5979 assert. Extend the header comment.
5980
f237f998
AB
59812021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5982
5983 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5984 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5985 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5986 (tui_locator_win_info_ptr): Delete declaration.
5987 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5988 (tui_disasm_window::set_contents): Fetch state from tui_location
5989 global.
5990 (tui_get_begin_asm_address): Likewise.
5991 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5992 for locator window.
5993 (get_locator_window): Delete.
5994 (initialize_known_windows): Treat locator window just like all the
5995 rest.
5996 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5997 (tui_source_window::set_contents): Fetch state from tui_location
5998 global.
5999 (tui_source_window::showing_source_p): Likewise.
6000 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6001 (_locator): Delete.
6002 (tui_locator_win_info_ptr): Delete.
6003 (tui_locator_window::make_status_line): Fetch state from
6004 tui_location global.
6005 (tui_locator_window::rerender): Remove check of 'handle',
6006 reindent function body.
6007 (tui_locator_window::set_locator_fullname): Delete.
6008 (tui_locator_window::set_locator_info): Delete.
6009 (tui_update_locator_fullname): Delete.
6010 (tui_show_frame_info): Likewise.
6011 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6012 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6013 tui/tui-location.h and renamed to
6014 tui_location_tracker::set_location.
6015 (tui_locator_window::set_locator_fullname): Moved to
6016 tui/tui-location.h and renamed to
6017 tui_location_tracker::set_fullname.
6018 (tui_locator_window::full_name): Delete.
6019 (tui_locator_window::proc_name): Delete.
6020 (tui_locator_window::line_no): Delete.
6021 (tui_locator_window::addr): Delete.
6022 (tui_locator_window::gdbarch): Delete.
6023 (tui_update_locator_fullname): Delete declaration.
6024 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6025 for locator window.
6026 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6027 (tui_display_main): Call function on tui_location directly.
6028 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6029 * tui/tui-location.c: New file.
6030 * tui/tui-location.h: New file.
6031
8ee511af
SM
60322021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 * gdbtypes.h (get_type_arch): Rename to...
6035 (struct type) <arch>: ... this, update all users.
6036
6ac37371
SM
60372021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6038
6039 * gdbtypes.h (struct type) <arch>: Rename to...
6040 <arch_owner>: ... this, update all users.
6041 <objfile>: Rename to...
6042 <objfile_owner>: ... this, update all users.
6043
24cf6389
AB
60442021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6045
6046 * gdbcmd.h (execute_command_to_string): Update comment.
6047 * top.c (execute_command_to_string): Update header comment.
6048
2a7f6487
TV
60492021-01-28 Tom de Vries <tdevries@suse.de>
6050
6051 PR breakpoints/27205
6052 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6053 (create_longjmp_master_breakpoint_names): New function, factored out
6054 of ...
6055 (create_longjmp_master_breakpoint): ... here. Only try to install
6056 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6057 breakpoint in libc.so failed.
6058
59b59f08
LS
60592021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6060
6061 PR gdb/27133
6062 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6063 unique_ptr is released when the wrapped pointer is kept for later
6064 use.
6065
807f647c
MM
60662021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6067
6068 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6069 BLR and BR instructions.
6070 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6071 (enum aarch64_masks): New.
6072
4ef367bf
TT
60732021-01-26 Tom Tromey <tromey@adacore.com>
6074
6075 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6076 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6077 (windows_init_thread_list, windows_nat::handle_load_dll)
6078 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6079 (windows_nat_target::resume)
6080 (windows_nat_target::get_windows_debug_event)
6081 (windows_nat_target::interrupt, windows_xfer_memory)
6082 (windows_nat_target::close): Update.
6083 * nat/windows-nat.c (DEBUG_EVENTS): Use
6084 debug_prefixed_printf_cond.
6085 (matching_pending_stop, fetch_pending_stop)
6086 (continue_last_debug_event): Update.
6087
4cb1265b
MS
60882020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6089
6090 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6091 elfcore_write_file_note.
6092
d0cc52bd
SV
60932021-01-26 Shahab Vahedi <shahab@synopsys.com>
6094
6095 * arc-tdep.c (arc_add_reggroups): New function.
6096 (arc_gdbarch_init): Call arc_add_reggroups.
6097
ac3571d9 60982021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6099
6100 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6101
9f6c202e
TV
61022021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6103 Simon Marchi <simon.marchi@polymtl.ca>
6104 Tom de Vries <tdevries@suse.de>
6105
6106 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6107 DW_AT_ranges.
6108
a625a8c9
TT
61092021-01-25 Tom Tromey <tromey@adacore.com>
6110
6111 * dwarf2/read.c (get_mpz): New function.
6112 (get_dwarf2_rational_constant): Use it.
6113
19184910
TT
61142021-01-25 Tom Tromey <tromey@adacore.com>
6115
6116 * ada-lang.c (resolve_subexp): Handle array context.
6117
b10bae18
TT
61182021-01-23 Tom Tromey <tom@tromey.com>
6119
6120 PR compile/25575
6121 * compile/compile-loc2c.c (note_register): New function.
6122 (pushf_register_address, pushf_register): Use it.
6123
3637a558
TT
61242021-01-23 Tom Tromey <tom@tromey.com>
6125
6126 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6127 Change type of "registers_used".
6128 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6129 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6130 (locexpr_generate_c_location, loclist_generate_c_location): Change
6131 type of "registers_used".
6132 * compile/compile.h (compile_dwarf_expr_to_c)
6133 (compile_dwarf_bounds_to_c): Update.
6134 * compile/compile-loc2c.c (pushf_register_address)
6135 (pushf_register, do_compile_dwarf_expr_to_c)
6136 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6137 of "registers_used".
6138 * compile/compile-c.h (generate_c_for_variable_locations):
6139 Update.
6140 * compile/compile-c-symbols.c (generate_vla_size)
6141 (generate_c_for_for_one_variable): Change type of
6142 "registers_used".
6143 (generate_c_for_variable_locations): Return std::vector.
6144 * compile/compile-c-support.c (generate_register_struct): Change
6145 type of "registers_used".
6146 (compute): Update.
6147
9f7f6cb8
TT
61482021-01-23 Tom Tromey <tom@tromey.com>
6149
6150 * compile/compile-internal.h (class compile_instance)
6151 <set_arguments>: Change return type.
6152 * compile/compile.c (compile_to_object): Remove call to reset.
6153 (compile_instance::set_arguments): Change return type.
6154
dd5ca05f
SM
61552021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6158 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6159
d3ee35db
LS
61602021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6161
6162 * Makefile.in (SELFTESTS_SRCS): Add
6163 unittests/gdb_tilde_expand-selftests.c.
6164 * unittests/gdb_tilde_expand-selftests.c: New file.
6165
9d2d8a16
AB
61662021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6167
6168 PR cli/25956
6169 * NEWS: Mention new command.
6170 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6171 (version_style): Define.
6172 (cli_style_option::cli_style_option): Add intensity parameter, and
6173 use as appropriate.
6174 (_initialize_cli_style): Register version style set/show commands.
6175 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6176 (version_style): Declare.
6177 * top.c (print_gdb_version): Use version_stype, and styled_string
6178 to print the GDB version string.
6179
e7b43072
AB
61802021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6181
6182 * utils.c (emit_style_escape): Only emit an escape sequence if the
6183 requested style is different than the current applied style.
6184 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6185 current applied_style.
6186 (fputs_styled): Remove is_default check.
6187 (fputs_styled_unfiltered): Likewise.
6188 (vfprintf_styled_no_gdbfmt): Likewise.
6189
2189c312
SM
61902021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6191
6192 * remote.h (remote_debug_printf): New.
6193 (remote_debug_printf_nofunc): New.
6194 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6195 * remote.c: Use above macros throughout file.
6196
02349803
SM
61972021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * remote.h (remote_debug): Change to bool.
6200 * remote.c (remote_debug): Change to bool.
6201 (_initialize_remote): Adjust.
6202
cda09ec9
SM
62032021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6204
6205 * target.h (remote_debug): Move to...
6206 * remote.h (remote_debug): ... here.
6207 * top.c (remote_debug): Move to...
6208 * remote.c (remote_debug): ... here.
6209 * remote-sim.c: Include remote.h.
6210
baf2b57f
SM
62112021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * cli/cli-cmds.c (show_remote_debug): Remove.
6214 (show_remote_timeout): Remove.
6215 (_initialize_cli_cmds): Don't register commands.
6216 * remote.c (show_remote_debug): Move here.
6217 (show_remote_timeout): Move here.
6218 (_initialize_remote): Register commands.
6219
344e9841
SM
62202021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6221
6222 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6223 type::objfile method instead.
6224
30625020
SM
62252021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6226
6227 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6228 use the type::is_objfile_owned method.
6229
5b7d941b
SM
62302021-01-22 Simon Marchi <simon.marchi@efficios.com>
6231
6232 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6233 (TYPE_OWNER): Remove.
6234 (TYPE_OBJFILE): Adjust.
6235 (struct main_type) <flag_objfile_owned>: Rename to...
6236 <m_flag_objfile_owned>: ... this.
6237 <owner>: Rename to...
6238 <m_owner>: ... this.
6239 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6240 methods.
6241 (TYPE_ALLOC): Adjust.
6242 * gdbtypes.c (alloc_type): Adjust.
6243 (alloc_type_arch): Adjust.
6244 (alloc_type_copy): Adjust.
6245 (get_type_arch): Adjust.
6246 (smash_type): Adjust.
6247 (lookup_array_range_type): Adjust.
6248 (recursive_dump_type): Adjust.
6249 (copy_type_recursive): Adjust.
6250 * compile/compile-c-types.c (convert_func): Adjust.
6251 (convert_type_basic): Adjust.
6252 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6253 Adjust.
6254 * language.c
6255 (language_arch_info::type_and_symbol::alloc_type_symbol):
6256 Adjust.
6257
d5d24e12
LM
62582021-01-21 Luis Machado <luis.machado@linaro.org>
6259
6260 * coffread.c (enter_linenos): Passing string to complaint.
6261 * valops.c (value_assign): Make array view.
6262
a59902a7
SM
62632021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * auto-load.h (debug_auto_load): Move here.
6266 (auto_load_debug_printf): New.
6267 * auto-load.c: Use auto_load_debug_printf.
6268 (debug_auto_load): Move to header.
6269 * linux-thread-db.c (try_thread_db_load): Use
6270 auto_load_debug_printf.
6271 * main.c (captured_main_1): Likewise.
6272
d3abc0ce
SM
62732021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6274
6275 * f-valprint.c (f77_array_offset_tbl): Remove.
6276
1e15fcac
SM
62772021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6278
6279 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6280
439706e6
SM
62812021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6282
6283 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6284 of gdb_select.
6285
325d39e4
HD
62862021-01-21 Hannes Domani <ssbssa@yahoo.de>
6287
6288 PR python/19151
6289 * python/py-breakpoint.c (bppy_get_location): Handle
6290 bp_hardware_breakpoint.
6291 (bppy_init): Likewise.
6292 (gdbpy_breakpoint_created): Likewise.
6293
7cb6d92a
SM
62942021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6295
6296 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6297
d4dd4fca
SM
62982021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6299
6300 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6301 (_initialize_gdb_bfd): Adjust.
6302
de53369b
SM
63032021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6304
6305 PR gdb/26828
6306 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6307
17e593e9
SM
63082021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6309
6310 * dwarf2/read.c (follow_die_offset): Add logging.
6311 (dwarf2_per_objfile::age_comp_units): Add logging.
6312
6bd434d6
SM
63132021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6314
6315 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6316 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6317 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6318 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6319 * arm-tdep.c (struct frame_unwind): Make static.
6320 * auto-load.c (auto_load_safe_path_vec): Make static.
6321 * csky-tdep.c (csky_stub_unwind): Make static.
6322 * gdbarch.c (gdbarch_data_registry): Make static.
6323 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6324 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6325 * i386-tdep.c (i386_frame_setup_skip_insns,
6326 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6327 Make static.
6328 * infrun.c (observer_mode): Make static.
6329 * linux-nat.c (sigchld_action): Make static.
6330 * linux-thread-db.c (thread_db_list): Make static.
6331 * maint-test-options.c (maintenance_test_options_list):
6332 * mep-tdep.c (mep_csr_registers): Make static.
6333 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6334 (stats): Make static.
6335 * nat/linux-osdata.c (struct osdata_type): Make static.
6336 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6337 * progspace.c (last_program_space_num): Make static.
6338 * python/py-param.c (struct parm_constant): Remove struct type
6339 name.
6340 (parm_constants): Make static.
6341 * python/py-record-btrace.c (btpy_list_methods): Make static.
6342 * python/py-record.c (recpy_gap_type): Make static.
6343 * record.c (record_goto_cmdlist): Make static.
6344 * regcache.c (regcache_descr_handle): Make static.
6345 * registry.h (DEFINE_REGISTRY): Make definition static.
6346 * symmisc.c (std_in, std_out, std_err): Make static.
6347 * top.c (previous_saved_command_line): Make static.
6348 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6349 static.
6350 * unittests/command-def-selftests.c (nr_duplicates,
6351 nr_invalid_prefixcmd, lists): Make static.
6352 * unittests/observable-selftests.c (test_notification): Make
6353 static.
6354 * unittests/optional/assignment/1.cc (counter): Make static.
6355 * unittests/optional/assignment/2.cc (counter): Make static.
6356 * unittests/optional/assignment/3.cc (counter): Make static.
6357 * unittests/optional/assignment/4.cc (counter): Make static.
6358 * unittests/optional/assignment/5.cc (counter): Make static.
6359 * unittests/optional/assignment/6.cc (counter): Make static.
6360
a6c11cbb
JS
63612021-01-20 Joel Sherrill <joel@rtems.org>
6362
6363 PR gdb/27219
6364 * remote.c (struct remote_thread_info) <resume_state>: Rename
6365 to...
6366 <get_resume_state>: ... this.
6367 (remote_target::resume): Adjust.
6368 (remote_target::commit_resume): Adjust.
6369 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6370
6f52fdf4
SDJ
63712021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6372 Tom Tromey <tom@tromey.com>
6373
6374 * stap-probe.c (stap_parse_single_operand): Handle '!'
6375 operator.
6376 (stap_parse_argument_conditionally): Likewise.
6377 Skip spaces after processing open-parenthesis sub-expression.
6378 (stap_parse_argument_1): Skip spaces after call to
6379 stap_parse_argument_conditionally.
6380 Handle case when right-side expression is a parenthesized
6381 sub-expression.
6382 Skip spaces after call to stap_parse_argument_1.
6383
1c3b85ad
LS
63842021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6385
6386 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6387
a9a87d35
LM
63882021-01-19 Luis Machado <luis.machado@linaro.org>
6389
6390 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6391 memory and save data.
6392 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6393 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6394 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6395 (trad_frame_value_bytes_p): Remove.
6396 (trad_frame_reset_saved_regs): Adjust documentation.
6397 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6398 constructor and reset the state of the registers.
6399 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6400 (trad_frame_value_bytes_p, trad_frame_set_value)
6401 (trad_frame_set_realreg, trad_frame_set_addr)
6402 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6403 (trad_frame_set_reg_realreg): Update to call member function.
6404 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6405 (trad_frame_get_prev_register): Likewise.
6406
6407 * aarch64-tdep.c (aarch64_analyze_prologue)
6408 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6409 (aarch64_prologue_prev_register): Update to use member functions.
6410 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6411 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6412 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6413 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6414 (arm_make_epilogue_frame_cache): Likewise.
6415 * avr-tdep.c (avr_frame_unwind_cache)
6416 (avr_frame_prev_register): Likewise.
6417 * cris-tdep.c (cris_scan_prologue): Likewise.
6418 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6419 * frv-tdep.c (frv_analyze_prologue): Likewise.
6420 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6421 * lm32-tdep.c (lm32_frame_cache): Likewise.
6422 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6423 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6424 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6425 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6426 (reset_saved_regs): Adjust to set realreg.
6427 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6428 call member functions.
6429 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6430 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6431 (s390_backchain_frame_unwind_cache): Likewise.
6432 * score-tdep.c (score7_analyze_prologue)
6433 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6434 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6435 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6436 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6437 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6438 * tilegx-tdep.c (tilegx_analyze_prologue)
6439 (tilegx_frame_cache): Likewise.
6440 * v850-tdep.c (v850_frame_cache): Likewise.
6441 * vax-tdep.c (vax_frame_cache): Likewise.
6442
bdec2917
LM
64432021-01-19 Luis Machado <luis.machado@linaro.org>
6444
6445 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6446 of buffer + length.
6447 (put_frame_register_bytes): Likewise.
6448 Adjust documentation.
6449 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6450 (safe_frame_unwind_memory): Likewise.
6451 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6452 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6453 gdb::array_view.
6454 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6455 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6456 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6457 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6458 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6459 * dwarf2/loc.c (rw_pieced_value): Likewise.
6460 * hppa-tdep.c (hppa_frame_cache): Likewise.
6461 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6462 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6463 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6464 (i386_linux_rt_sigtramp_start): Likewise.
6465 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6466 * i386-tdep.c (i386_register_to_value): Likewise.
6467 * i387-tdep.c (i387_register_to_value): Likewise.
6468 * ia64-tdep.c (ia64_register_to_value): Likewise.
6469 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6470 (m32r_linux_rt_sigtramp_start): Likewise.
6471 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6472 * m68k-tdep.c (m68k_register_to_value): Likewise.
6473 * mips-tdep.c (mips_register_to_value)
6474 (mips_value_to_register): Likewise.
6475 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6476 (ppcfbsd_sigtramp_frame_cache): Likewise.
6477 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6478 (ppcobsd_sigtramp_frame_cache): Likewise.
6479 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6480 (rs6000_register_to_value): Likewise.
6481 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6482 * tramp-frame.c (tramp_frame_start): Likewise.
6483 * valops.c (value_assign): Likewise.
6484
ccbe4c82
LM
64852021-01-19 Luis Machado <luis.machado@linaro.org>
6486
6487 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6488 array_view.
6489 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6490 instead of buffer and size.
6491 (trad_frame_set_reg_value_bytes): Likewise.
6492 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6493 (trad_frame_set_value_bytes): Likewise.
6494
0e7620dc
MF
64952021-01-18 Mike Frysinger <vapier@gentoo.org>
6496
6497 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6498
6a9ad81c
AB
64992021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6500
6501 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6502 (riscv_fbsd_gregset): Use riscv_supply_regset.
6503 (riscv_fbsd_fpregset): Likewise.
6504 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6505 (riscv_linux_fregset): Likewise.
6506 * riscv-tdep.c (riscv_supply_regset): Define new function.
6507 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6508
d3d7d1ba
TV
65092021-01-18 Tom de Vries <tdevries@suse.de>
6510
6511 PR tdep/27172
6512 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6513 New macro.
6514 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6515 for SEGV_BNDERR.
6516
aa2838cc
SM
65172021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6518
6519 * remote.c (class remote_target) <remote_hostio_send_command,
6520 remote_hostio_parse_result>: Constify parameter.
6521 (remote_hostio_parse_result): Likewise.
6522 (remote_target::remote_hostio_send_command): Adjust.
6523 (remote_target::remote_hostio_pread_vFile): Adjust.
6524 (remote_target::fileio_readlink): Adjust.
6525 (remote_target::fileio_fstat): Adjust.
6526
b5c8f22d
SM
65272021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6528
6529 * remote.c (remote_target::start_remote): Move wait_status to
6530 narrower scope.
6531
e3b2741b
SM
65322021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6533
6534 * remote.c (class remote_target):
6535 <add_current_inferior_and_thread>: Constify parameter.
6536 (stop_reply_extract_thread): Likewise.
6537 (remote_target::get_current_thread): Likewise.
6538 (remote_target::add_current_inferior_and_thread): Likewise.
6539
cecb1912
SM
65402021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * remote.c (class remote_target)
6543 <remote_unpack_thread_info_response,
6544 parse_threadlist_response>: Constify parameter and/or return
6545 value and or local variable.
6546 (stub_unpack_int): Likewise.
6547 (unpack_nibble): Likewise.
6548 (unpack_byte): Likewise.
6549 (unpack_int): Likewise.
6550 (unpack_string): Likewise.
6551 (unpack_threadid): Likewise.
6552 (remote_target::remote_unpack_thread_info_response): Likewise.
6553 (remote_target::parse_threadlist_response): Likewise.
6554
5a11fff0
AB
65552021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6556
6557 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6558
17e89137
LS
65592021-01-14 Lancelot Six <lsix@lancelotsix.com>
6560
6561 * MAINTAINERS (Write After Approval): Add myself.
6562
58eadc4b
BE
65632021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6564
6565 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6566 because is_trivially_default_constructible was first implemented with
6567 gcc-5.
6568
5fae2a2c
TV
65692021-01-14 Tom de Vries <tdevries@suse.de>
6570
6571 PR breakpoints/27151
6572 * objfiles.h (in_plt_section): Handle .plt.sec.
6573
8f66807b
AB
65742021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6575
6576 PR gdb/26819
6577 * remote.c
6578 (remote_target::select_thread_for_ambiguous_stop_reply): New
6579 member function.
6580 (remote_target::process_stop_reply): Call
6581 select_thread_for_ambiguous_stop_reply.
6582
bd497355
SM
65832021-01-13 Simon Marchi <simon.marchi@efficios.com>
6584
6585 * record-btrace.c (class record_btrace_target): Remove.
6586 (record_btrace_target::commit_resume): Remove.
6587 * record-full.c (class record_full_target): Remove.
6588 (record_full_target::commit_resume): Remove.
6589
c9d22089
SM
65902021-01-13 Simon Marchi <simon.marchi@efficios.com>
6591
6592 * remote.c (enum class resume_state): New.
6593 (struct resumed_pending_vcont_info): New.
6594 (struct remote_thread_info) <resume_state, set_not_resumed,
6595 set_resumed_pending_vcont, resumed_pending_vcont_info,
6596 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6597 New.
6598 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6599 (remote_target::remote_add_thread): Adjust.
6600 (remote_target::process_initial_stop_replies): Adjust.
6601 (remote_target::resume): Adjust.
6602 (remote_target::commit_resume): Rely on state in
6603 remote_thread_info and not on tp->executing.
6604 (remote_target::process_stop_reply): Adjust.
6605
d8d1feb4
SM
66062021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6607
6608 * arc-tdep.h (arc_debug_printf): New.
6609 * arc-tdep.c: Use arc_debug_printf.
6610 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6611 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6612 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6613
fb0f5031
SM
66142021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6615
6616 * arc-tdep.h (arc_debug): Change type to bool.
6617 * arc-tdep.c (arc_debug): Change type to bool.
6618 (arc_analyze_prologue): Adjust.
6619 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6620 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6621
5bf7e91b
SM
66222021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6623
6624 * auto-load.c (auto_load_objfile_script_1): Use bool.
6625 (execute_script_contents): Use bool.
6626
db972fce
SM
66272021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6628
6629 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6630 comment here.
6631 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6632 comment to header.
6633 * extension-priv.h (struct extension_language_script_ops)
6634 <auto_load_enabled>: Return bool.
6635 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6636 comment here.
6637 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6638 comment to header.
6639 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6640 move comment here.
6641 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6642 move comment to header.
6643 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6644 move comment here.
6645 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6646 move comment to header.
6647
5e12f48f
SM
66482021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6649
6650 * auto-load.h (file_is_auto_load_safe): Change return type to
6651 bool, move comment here.
6652 * auto-load.c (file_is_auto_load_safe): Change return type and
6653 advice_printed to bool. Move comment to header.
6654
54ca9002
SM
66552021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6656
6657 * jit.c (jit_debug_printf): New, use throughout file.
6658
24a7f1b5
SM
66592021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6660
6661 * infrun.c (normal_stop): Fix indentation.
6662
fe7a351a
SM
66632021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6664
6665 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6666 declarations to ...
6667 * symfile.h: ... here.
6668 * symfile.c: Update doc.
6669
16e9019e
SM
66702021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6671
6672 * target.h (baud_rate, serial_parity): Move declarations...
6673 * serial.h: ... here.
6674 * main.c: Include serial.h.
6675 * serial.c (baud_rate, serial_parity): Update doc.
6676
b2f2ae0d
SM
66772021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6678
6679 * top.c (pre_init_ui_hook): Remove.
6680
5291fe3c
SP
66812021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6682
6683 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6684 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6685 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6686 * features/aarch64-fpu.xml: Add bfloat16 type.
6687
ce38f5ed
AB
66882021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6689
6690 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6691
7c654b71
AB
66922021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 * f-exp.y (dot_ops): Rename to...
6695 (fortran_operators): ...this. Add a header comment. Add symbol
6696 based operators.
6697 (yylex): Update to use fortran_operators not dot_ops. Remove
6698 special handling for '**', this is now included in
6699 fortran_operators.
6700
c6185dce
SM
67012021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6702
6703 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6704 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6705 * aarch64-tdep.c: Use aarch64_debug_printf.
6706
eef401dc
SM
67072021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6708
6709 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6710 file.
6711
062eaacb
SM
67122021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6713
6714 * jit.c (jit_debug): Change type to bool.
6715 (_initialize_jit): Adjust.
6716
54585eee
TT
67172021-01-09 Tom Tromey <tom@tromey.com>
6718
6719 PR compile/23672
6720 * compile/compile.c (compile_to_object): Avoid crash when
6721 osabi_triplet_regexp returns NULL.
6722
bc167b6b
TT
67232021-01-09 Tom Tromey <tom@tromey.com>
6724
6725 * tracepoint.h (class collection_list) <append_exp>: Take a
6726 std::string.
6727 * tracepoint.c (collection_list::append_exp): Take a std::string.
6728 (encode_actions_1): Update.
6729
8fc48b79
TT
67302021-01-08 Tom Tromey <tromey@adacore.com>
6731
6732 * parse.c (parse_expression): Add void_context_p parameter. Use
6733 parse_exp_in_context.
6734 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6735 parse_expression.
6736 (print_command, call_command): Update.
6737 * expression.h (parse_expression): Add void_context_p parameter.
6738
3c8c6de2
AB
67392021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6740
6741 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6742 for internalvar components that have a dynamic location.
6743
1940319c
TV
67442021-01-08 Tom de Vries <tdevries@suse.de>
6745
6746 PR gdb/26881
6747 * breakpoint.c (create_exception_master_breakpoint_probe)
6748 (create_exception_master_breakpoint_hook): Factor out
6749 of ...
6750 (create_exception_master_breakpoint): ... here. Only try to install
6751 the master exception breakpoint in objfile.debug using the
6752 _Unwind_DebugHook method, if the install using probes in objfile
6753 failed.
6754
e3436813
AB
67552021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6756
6757 * f-lang.c (fortran_value_subarray): Call value_from_component.
6758
e904f56d
MF
67592021-01-07 Mike Frysinger <vapier@gentoo.org>
6760
6761 * remote-sim.c: Include memory-map.h.
6762 (gdbsim_target): Define memory_map override.
6763 (gdbsim_target::memory_map): Define.
6764
959d6a67
TT
67652021-01-07 Tom Tromey <tromey@adacore.com>
6766
6767 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6768
d4813f10
TT
67692021-01-07 Tom Tromey <tromey@adacore.com>
6770
6771 * ada-lang.c (add_component_interval): Start loop using vector's
6772 updated size.
6773
b49180ac
TT
67742021-01-06 Tom Tromey <tromey@adacore.com>
6775
6776 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6777 Do not cast result.
6778 * valarith.c (fixed_point_binop): Handle multiplication
6779 and division specially.
6780 * valops.c (value_to_gdb_mpq): New function.
6781 (value_cast_to_fixed_point): Use it.
6782
55195361
HD
67832021-01-05 Hannes Domani <ssbssa@yahoo.de>
6784
6785 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6786 Call wnoutrefresh instead of tui_win_info::refresh_window.
6787
1b6d4bb2
HD
67882021-01-05 Hannes Domani <ssbssa@yahoo.de>
6789
6790 * tui/tui-source.c (tui_source_window::show_line_number):
6791 Redraw second space after line number.
6792
b5ff370e
HD
67932021-01-05 Hannes Domani <ssbssa@yahoo.de>
6794
6795 PR tui/26927
6796 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6797 Fix source pad size in prefresh.
6798 (tui_source_window_base::show_source_content): Grow source pad
6799 if necessary.
6800
c68ea49f
MF
68012021-01-04 Mike Frysinger <vapier@gentoo.org>
6802
6803 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6804 (bfin_frame_align): Use align_down.
6805
e4ad960a
TV
68062021-01-04 Tom de Vries <tdevries@suse.de>
6807
6808 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6809 terminators that do not terminate anything.
6810
3ec3145c
SM
68112021-01-04 Simon Marchi <simon.marchi@efficios.com>
6812
6813 * debug.c (debug_print_depth): New.
6814 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6815 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6816 * infrun.c (start_step_over): Use
6817 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6818 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6819 INFRUN_SCOPED_DEBUG_START_END.
6820 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6821
e71daf80
SM
68222021-01-04 Simon Marchi <simon.marchi@efficios.com>
6823
6824 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6825
335709bc
SM
68262021-01-04 Simon Marchi <simon.marchi@efficios.com>
6827
6828 * utils.c (vfprintf_unfiltered): Print timestamp only when
6829 previous debug output ended with a newline.
6830
098caef4
LM
68312021-01-04 Luis Machado <luis.machado@linaro.org>
6832
6833 Update all users of trad_frame_saved_reg to use the new member
6834 functions.
6835
6836 Remote all struct keywords from declarations of trad_frame_saved_reg
6837 types, except on forward declarations.
6838
6839 * aarch64-tdep.c: Update.
6840 * alpha-mdebug-tdep.c: Update.
6841 * alpha-tdep.c: Update.
6842 * arc-tdep.c: Update.
6843 * arm-tdep.c: Update.
6844 * avr-tdep.c: Update.
6845 * cris-tdep.c: Update.
6846 * csky-tdep.c: Update.
6847 * frv-tdep.c: Update.
6848 * hppa-linux-tdep.c: Update.
6849 * hppa-tdep.c: Update.
6850 * hppa-tdep.h: Update.
6851 * lm32-tdep.c: Update.
6852 * m32r-linux-tdep.c: Update.
6853 * m32r-tdep.c: Update.
6854 * m68hc11-tdep.c: Update.
6855 * mips-tdep.c: Update.
6856 * moxie-tdep.c: Update.
6857 * riscv-tdep.c: Update.
6858 * rs6000-tdep.c: Update.
6859 * s390-linux-tdep.c: Update.
6860 * s390-tdep.c: Update.
6861 * score-tdep.c: Update.
6862 * sparc-netbsd-tdep.c: Update.
6863 * sparc-sol2-tdep.c: Update.
6864 * sparc64-fbsd-tdep.c: Update.
6865 * sparc64-netbsd-tdep.c: Update.
6866 * sparc64-obsd-tdep.c: Update.
6867 * sparc64-sol2-tdep.c: Update.
6868 * tilegx-tdep.c: Update.
6869 * v850-tdep.c: Update.
6870 * vax-tdep.c: Update.
6871
6872 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6873 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6874
6875 * trad-frame.c: Update.
6876 Remove TF_REG_* enum.
6877 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6878 a trivially-constructible struct.
6879 (trad_frame_reset_saved_regs): Adjust to use member function.
6880 (trad_frame_value_p): Likewise.
6881 (trad_frame_addr_p): Likewise.
6882 (trad_frame_realreg_p): Likewise.
6883 (trad_frame_value_bytes_p): Likewise.
6884 (trad_frame_set_value): Likewise.
6885 (trad_frame_set_realreg): Likewise.
6886 (trad_frame_set_addr): Likewise.
6887 (trad_frame_set_unknown): Likewise.
6888 (trad_frame_set_value_bytes): Likewise.
6889 (trad_frame_get_prev_register): Likewise.
6890 * trad-frame.h: Update.
6891 (trad_frame_saved_reg_kind): New enum.
6892 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6893 <m_kind, m_reg>: New member fields.
6894 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6895 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6896 <is_addr, is_unknown, is_value_bytes>: New member functions.
6897
9898e882
SM
68982021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6899
6900 * target-float.c: Fix typos.
6901
b66b4e65
HD
69022021-01-02 Hannes Domani <ssbssa@yahoo.de>
6903
6904 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6905
b5b5650a
JB
69062021-01-01 Joel Brobecker <brobecker@adacore.com>
6907
6908 * gdbarch.sh: Update copyright year range.
6909
3666a048
JB
69102021-01-01 Joel Brobecker <brobecker@adacore.com>
6911
6912 Update copyright year range in copyright header of all GDB files.
6913
ff7e39b6
JB
69142021-01-01 Joel Brobecker <brobecker@adacore.com>
6915
6916 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6917 to the list of directories to update.
6918
2b47c078
JB
69192021-01-01 Joel Brobecker <brobecker@adacore.com>
6920
6921 * top.c (print_gdb_version): Update copyright year.
6922
9e5e03df 69232021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6924
476923f1 6925 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6926
476923f1 6927For older changes see ChangeLog-2020.
c906108c
SS
6928\f
6929Local Variables:
6930mode: change-log
6931left-margin: 8
6932fill-column: 74
6933version-control: never
57da7796 6934coding: utf-8
c906108c 6935End: