Use ACX_NONCANONICAL_TARGET in gdb/configure
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b316465f
TT
12021-06-05 Tom Tromey <tromey@adacore.com>
2
3 * configure: Rebuild.
4 * configure.ac: Add ACX_NONCANONICAL_TARGET.
5
ae61ef2c
SV
62021-06-05 Shahab Vahedi <shahab@synopsys.com>
7
8 * NEWS: Document 'set disassembler-options' support for the ARC
9 target.
10 * arc-tdep.c (arc_gdbarch_init): Set
11 'gdbarch_valid_disassembler_options'.
12
386de171
TT
132021-06-04 Tom Tromey <tromey@adacore.com>
14
15 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
16 parameter.
17 * dwarf2/loc.c (dwarf2_evaluate_property) <case
18 PROP_VARIABLE_NAME>: New case.
19 (compute_var_value): New function.
20 (sect_variable_value): Use compute_var_value.
21 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
22 (var_decl_name): New function.
23 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
24 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
25 constant.
26 (union dynamic_prop_data) <variable_name>: New member.
27 (struct dynamic_prop) <variable_name, set_variable_name>: New
28 methods.
29
4351271e
AB
302021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * remote.c (remote_target)
33 <select_thread_for_ambiguous_stop_reply>: Add additional debug
34 output.
35
a5375566
HD
362021-06-04 Hannes Domani <ssbssa@yahoo.de>
37
38 * python/py-tui.c (class tui_py_window): Add click function.
39 (tui_py_window::click): Likewise.
40
1bace02a
HD
412021-06-04 Hannes Domani <ssbssa@yahoo.de>
42
43 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
44 * tui/tui-data.h (struct tui_win_info): Add click function.
45 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
46 (tui_deprep_terminal): Disable mouse events.
47 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
48 * tui/tui.c (tui_disable): Disable mouse events.
49
df5bc734
MH
502021-06-03 Magne Hov <mhov@undo.io>
51
52 PR python/27841
53 * eval.c (expression::evaluate): Check inferior_ptid.
54
415c8100
PA
552021-06-03 Pedro Alves <pedro@palves.net>
56
57 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
58 affiliation.
59 (Global Maintainers): Update my address.
60 (Write After Approval): Remove stale entry.
61
83810881
JB
622021-06-03 John Baldwin <jhb@FreeBSD.org>
63
64 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
65 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
66 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
67 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
68 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
69 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
70 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
71 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
72 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
73 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
74 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
75 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
76 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
77 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
78 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
79 (fbsd_report_signal_info): New.
80 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
81 report_signal_info method.
82
4c958d79
MH
832021-06-03 Magne Hov <mhov@undo.io>
84
85 * MAINTAINERS (Write After Approval): Add Magne Hov.
86
6ac5237c
HD
872021-06-03 Hannes Domani <ssbssa@yahoo.de>
88
89 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
90 gdb.SYMBOL_LABEL_DOMAIN constant.
91
aeeb758d
JB
922021-06-01 John Baldwin <jhb@FreeBSD.org>
93
94 * infrun.c (handle_inferior_event): Only call
95 gdbarch_displaced_step_restore_all_in_ptid if
96 gdbarch_supports_displaced_stepping is true.
97
906f72d4
TT
982021-06-01 Tom Tromey <tromey@adacore.com>
99
100 * Makefile.in (all-data-directory): Remove.
101 (data-directory/Makefile): Remove.
102
ba56237d
TT
1032021-06-01 Tom Tromey <tromey@adacore.com>
104
105 * configure: Rebuild.
106 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
107
2adf1781
TT
1082021-06-01 Tom Tromey <tromey@adacore.com>
109
110 * silent-rules.mk (ECHO_CC): New variable.
111
bdbbcd57
TT
1122021-06-01 Tom Tromey <tromey@adacore.com>
113
114 * Makefile.in (SUBDIRS): Add testsuite.
115 (all): Don't exclude testsuite.
116
f99d1d37
TT
1172021-06-01 Tom Tromey <tromey@adacore.com>
118
119 * configure.ac: Copy some code from testsuite/configure.ac.
120 (enable_libctf): Subst this, not ENABLE_LIBCTF.
121 * configure: Rebuild.
122
17d305ef
TV
1232021-06-01 Tom de Vries <tdevries@suse.de>
124
125 PR symtab/26096
126 * minsyms.c (msymbol_is_cold_clone): New function.
127 (msymbol_is_function): Use msymbol_is_cold_clone.
128
9b715c68
AB
1292021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
130 Andrew Burgess <andrew.burgess@embecosm.com>
131
132 PR gdb/14383
133 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
134 (ALLDEPFILES): Add arm-none-tdep.c
135 * arm-none-tdep.c: New file.
136 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
137
b4b3e2de
AB
1382021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
139 Richard Bunt <richard.bunt@arm.com>
140
141 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
142 check for why the backtrace stopped.
143
9ea36493
SM
1442021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
147 Update all callers.
148 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
149 signature parameter, update all callers.
150 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
151 signature parameter.
152
46c6bcf6
SM
1532021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * dwarf2/read.h (signatured_type_up): New, use where possible.
156
4631503b
SM
1572021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
160
cc653233
TT
1612021-05-30 Tom Tromey <tom@tromey.com>
162
163 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
164 is_debug_types.
165 (create_signatured_type_table_from_index)
166 (create_signatured_type_table_from_debug_names, add_type_unit)
167 (read_comp_units_from_section): Update.
168
c96e8b04
TT
1692021-05-30 Tom Tromey <tom@tromey.com>
170
171 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
172 m_num_psymtabs>: Remove.
173 (resize_symtabs): Update.
174 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
175 (dwarf2_per_bfd::allocate_signatured_type): Update.
176
24b21115
SM
1772021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
178
179 * Fix tab after space indentation issues throughout.
180
01add95b
SM
1812021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
182
183 * Fix some indentation mistakes throughout.
184
055c879f
SM
1852021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * breakpoint.h (iterate_over_bp_locations): Remove. Update
188 users to use all_bp_locations.
189 (all_bp_locations): New.
190 * breakpoint.c (all_bp_locations): Make non-static.
191 (iterate_over_bp_locations): Remove.
192
240edef6
SM
1932021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * breakpoint.h (iterate_over_breakpoints): Remove. Update
196 callers to use all_breakpoints or all_breakpoints_safe.
197 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
198 all_breakpoints_safe): Move here.
199 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
200 non-static.
201 (iterate_over_breakpoints): Remove.
202 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
203 Return void.
204 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
205 return value logic.
206 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
207
e0d9a270
SM
2082021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * breakpoint.c (get_first_locp_gte_addr): Remove.
211 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
212 all_bp_locations_at_addr.
213 (struct bp_locations_at_addr_range): New.
214 (all_bp_locations_at_addr): New.
215 (bp_locations_compare_addrs): New.
216
48d7020b
SM
2172021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
218
219 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
220 all_bp_locations.
221 (all_bp_locations): New.
222
5d51cd5d
SM
2232021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * breakpoint.c (bp_locations): Change to std::vector, update all
226 users.
227 (bp_locations_count): Remove.
228 (update_global_location_list): Change to work with indices
229 rather than bp_location**.
230
40cb8ca5
SM
2312021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
232
233 * breakpoint.h (bp_locations_range): New.
234 (struct breakpoint) <locations>: New. Use where possible.
235
f6d17b2b
SM
2362021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * breakpoint.h (all_tracepoints): Remove.
239 (breakpoint_iterator): Move here.
240 (struct tracepoint_filter): New.
241 (tracepoint_iterator): New.
242 (tracepoint_range): New.
243 (all_tracepoints): New.
244 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
245 all_tracepoints.
246 (breakpoint_iterator): Move to header.
247 (all_tracepoints): New.
248 * tracepoint.c (start_tracing): Adjust.
249
1428b37a
SM
2502021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * breakpoint.c (breakpoint_safe_range): New.
253 (all_breakpoints_safe): New. Use instead of
254 ALL_BREAKPOINTS_SAFE where possible.
255
43892fdf
SM
2562021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
257
258 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
259 all_breakpoints.
260 (breakpoint_iterator): New.
261 (breakpoint_range): New.
262 (all_breakpoints): New.
263
bdef5723
HD
2642021-05-27 Hannes Domani <ssbssa@yahoo.de>
265
266 * python/py-tui.c (tui_py_window::output): Add full_window
267 argument.
268 (gdbpy_tui_write): Parse "full_window" argument.
269
d5a6313e
SM
2702021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
271
272 * make-init-c: Add option to reverse function calls.
273
f39632d9
SM
2742021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * Makefile.in (INIT_FILES_FILTER_OUT): New.
277 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
278 (stamp-init): Use make-init-c.
279 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
280 * silent-rules.mk (ECHO_INIT_C): Change.
281 * make-init-c: New file.
282
5e84b7ee
SM
2832021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * command.h (add_alias_cmd): Accept target as
286 cmd_list_element. Update callers.
287
e0f25bd9
SM
2882021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * command.h (add_info_alias): Accept target as
291 cmd_list_element. Update callers.
292
3947f654
SM
2932021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
294
295 * command.h (add_com_alias): Accept target as
296 cmd_list_element. Update callers.
297
7bd22f56
SM
2982021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * python/py-param.c (add_setshow_generic): Use return values of
301 add_setshow functions.
302
9f260536
SM
3032021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
304
305 * mi/mi-main.c (_initialize_mi_main):
306 * python/py-auto-load.c (gdbpy_initialize_auto_load):
307 * remote.c (_initialize_remote):
308
af7f8f52
SM
3092021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * command.h (set_show_commands): New.
312 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
313 add_setshow_boolean_cmd, add_setshow_filename_cmd,
314 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
315 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
316 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
317 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
318 Return set_show_commands. Adjust callers.
319 * cli/cli-decode.c (add_setshow_cmd_full): Return
320 set_show_commands, remove result parameters, adjust callers.
321
248f7165
TV
3222021-05-27 Tom de Vries <tdevries@suse.de>
323
324 PR symtab/27919
325 * dwarf2/read.c (process_psymtab_comp_unit):
326
2152b4fd
TV
3272021-05-27 Tom de Vries <tdevries@suse.de>
328
329 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
330 error.
331
6dcd1193
TV
3322021-05-27 Tom de Vries <tdevries@suse.de>
333
334 PR symtab/27898
335 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
336 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
337 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
338 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
339 load_all_dies init.
340 (dwarf2_per_cu_data): Remove load_all_dies field.
341
11bb5c41
SM
3422021-05-26 Simon Marchi <simon.marchi@efficios.com>
343
344 * regcache.c (reg_buffer::reg_buffer): Default-initialize
345 m_registers array.
346
ef5f598c
TT
3472021-05-26 Tom Tromey <tom@tromey.com>
348
349 * dwarf2/read.c (allocate_type_unit_groups_table)
350 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
351 htab_delete_entry.
352 (free_line_header_voidp): Remove.
353 * completer.c
354 (completion_tracker::completion_hash_entry::deleter): Remove.
355 (completion_tracker::discard_completions): Use htab_delete_entry.
356 * utils.h (htab_delete_entry): New template function.
357
a56889ae
HD
3582021-05-24 Hannes Domani <ssbssa@yahoo.de>
359
360 * python/py-tui.c (tui_py_window::refresh_window):
361 Avoid flickering.
362
fbf3c4b9
TV
3632021-05-23 Tom de Vries <tdevries@suse.de>
364
365 PR tdep/27822
366 * target.h (struct target_ops): Mention target_thread_architecture in
367 read_description comment.
368 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
369 pid to determine if process is 64-bit or 32-bit.
370 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
371 Same.
372 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
373 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
374 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
375 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
376 Likewise, use pid to determine if kernel supports reading VFP
377 registers.
378
8569d6e1
PW
3792021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
380
381 * main.c (enum cmdarg_kind): Fix option type comments for
382 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
383
778ae9cc
TV
3842021-05-21 Tom de Vries <tdevries@suse.de>
385
386 PR testsuite/25047
387 * contrib/cc-with-tweaks.sh: Handle -l.
388
6d1a09b7
TV
3892021-05-21 Tom de Vries <tdevries@suse.de>
390
391 PR breakpoint/27889
392 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
393 objects. Call get_jiter_objfile_data with the_objfile.
394
1487a14e
SM
3952021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * linespec.c (linespec_p): Remove. Replace all uses with
398 "linespec *".
399
bb6203bf
AH
4002021-05-20 Alexandra Hájková <ahajkova@redhat.com>
401 Pedro Alves <pedro@palves.net>
402
403 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
404 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
405 command_line_up instead of struct command_line.
406 (build_command_line): Likewise.
407 (get_command_line): Update the cmd function call parameter.
408 (process_next_line): Use unique_ptr command_line_up instead
409 of struct command_line.
410 (recurse_read_control_structure): Change the the type of
411 next to command_line_up.
412 (read_command_lines_1): Change type of `next' to be
413 command_line_up and update all references of `next'
414 accordingly.
415
ed3130b7
AH
4162021-05-20 Alexandra Hájková <ahajkova@redhat.com>
417
418 * MAINTAINERS (Write After Approval): Add myself.
419
5433e20e
JB
4202021-05-19 John Baldwin <jhb@FreeBSD.org>
421
422 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
423
a5523cc3
AH
4242021-05-18 Alexandra Hájková <ahajkova@redhat.com>
425
426 * inflow.c (new_tty): Do not leak tty.
427
cd53fa40
TT
4282021-05-17 Tom Tromey <tom@tromey.com>
429
430 * dwarf2/read.h: Update include.
431 * dwarf2/read.c: Update include.
432 * dwarf2/line-header.c: Update include.
433 * dwarf2/cu.h: Update include.
434 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
435 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
436 * Makefile.in (COMMON_SFILES): Update.
437
347212b8
TT
4382021-05-17 Tom Tromey <tom@tromey.com>
439
440 * dwarf2/read.c (maybe_queue_comp_unit)
441 (dwarf2_per_objfile::age_comp_units): Update.
442 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
443 dwarf2_cu methods.
444 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
445 add_dependence>: New methods.
446 <m_dependencies>: Add "m_" prefix. Now private.
447 <m_mark>: Add "m_" prefix.
448 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
449 (dwarf2_mark_helper): New function.
450 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
451
839118f9
TT
4522021-05-17 Tom Tromey <tom@tromey.com>
453
454 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
455 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
456 (dwarf2_cu::dwarf2_cu): Move to cu.c.
457 * dwarf2/cu.c: New file.
458 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
459
8ae78a44
TT
4602021-05-17 Tom Tromey <tom@tromey.com>
461
462 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
463 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
464 Move to cu.h.
465 * dwarf2/cu.h: New file.
466
c1c0a7e1
AB
4672021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * .dir-locals.el: Set sentence-end-double-space for all modes, and
470 set brace-list-open to 0 for C and C++ modes.
471
9e541c79
TT
4722021-05-17 Tom Tromey <tromey@adacore.com>
473
474 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
475 if frame is null.
476
59173216
TT
4772021-05-17 Tom Tromey <tromey@adacore.com>
478
479 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
480 (group_from_gid): Subtract one from strncpy length.
481
baea2f9d
TT
4822021-05-17 Tom Tromey <tromey@adacore.com>
483
484 * source.c (add_path): Check 'p' before using 'p[-1]'.
485
473ab964
TT
4862021-05-17 Tom Tromey <tromey@adacore.com>
487
488 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
489 (dwarf2_per_cu_data_up): New typedef.
490 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
491 <all_comp_units>: Use dwarf2_per_cu_data_up.
492 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
493 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
494 (create_cu_from_index_list): Likewise.
495 (create_signatured_type_table_from_index)
496 (create_cus_from_debug_names_list, add_type_unit)
497 (read_comp_units_from_section): Update.
498 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
499 (run_test): Update.
500
16e0020b
TT
5012021-05-17 Tom Tromey <tom@tromey.com>
502
503 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
504 (sort_tu_by_abbrev_offset): Remove.
505 (build_type_psymtabs): Update.
506
91e159e9
SM
5072021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
508
509 * py-project.toml: New.
510 * gdb-gdb.py.in: Re-format.
511
034dce7a
SM
5122021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
513
514 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
515 New, use it.
516 * command.h (cmd_func_p): Remove.
517 * cli/cli-decode.c (cmd_func_p): Remove.
518
1be99b11
SM
5192021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
522
99858724
SM
5232021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
524
525 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
526 to...
527 <alias_target>: ... this.
528 (add_alias_cmd): Rename old to target.
529 (add_info_alias): Rename old_name to target_name.
530 (add_com_alias): Likewise.
531
14b42fc4
SM
5322021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
533
534 * Rename "prefixlist" parameters to "subcommands" throughout.
535 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
536 <subcommands>: ... this.
537 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
538 (lookup_cmd_with_subcommands): ... this.
539
ecd0a6b3
SM
5402021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
541
542 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
543
413b49c2
SM
5442021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
545
546 * cli/cli-decode.h (prefixname): Make const, move implementation
547 to cli/cli-decode.c.
548 * cli/cli-decode.c (cmd_list_element::prefixname): New.
549
ea11a98d
WP
5502021-05-16 Weimin Pan <weimin.pan@oracle.com>
551
552 * ctfread.c (new_symbol): Set function address.
553 (read_func_kind_type): Remove incorrect type name setting.
554 Don't copy name returned from ctf_type_ame_raw throughout file.
555
887e7158
TT
5562021-05-14 Tom Tromey <tom@tromey.com>
557
558 * rust-lang.c (rust_language::val_print_struct)
559 (rust_language::print_enum): Use common_val_print, not
560 value_print_inner.
561
55789354
TBA
5622021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
563
564 * python/py-inferior.c (infpy_get_connection_num): New function.
565 (inferior_object_getset): Add a new element for 'connection_num'.
566 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
567
2f63ec5c
AB
5682021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
571 argument type, update and re-wrap, header comment.
572 (remote_target::commit_resumed): Convert any_process_wildcard and
573 may_global_wildcard_vcont from int to bool.
574
ecf25064
KC
5752021-05-14 Kent Cheung <kent.cheung@arm.com>
576
577 * cp-valprint.c (cp_print_value): Replaced duplicate code.
578 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
579 just before printing child values.
580 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
581 printing string representation.
582 * python/py-prettyprint.c (print_children): Check max_depth just
583 before printing child values.
584 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
585 printing string representation.
586
df68e12b
MF
5872021-05-14 Mike Frysinger <vapier@gentoo.org>
588
589 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
590 sim/callback.h & sim/sim.h.
591
183aaaf7
MF
5922021-05-13 Mike Frysinger <vapier@gentoo.org>
593
594 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
595 sim-regno.h include.
596
737358ba
SM
5972021-05-13 Simon Marchi <simon.marchi@efficios.com>
598
599 * inf-child.h (inf_child_target) <follow_exec>: New.
600 * inf-child.c (inf_child_target::follow_exec): New.
601
294c36eb
SM
6022021-05-13 Simon Marchi <simon.marchi@efficios.com>
603
604 * target.h (struct target_ops) <follow_exec>: Add ptid_t
605 parameter.
606 (target_follow_exec): Likewise.
607 * target.c (target_follow_exec): Add ptid_t parameter.
608 * infrun.c (follow_exec): Adjust call to target_follow_exec,
609 don't push target nor create thread.
610 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
611 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
612 (thread_db_target::follow_exec): New.
613 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
614 (remote_target::follow_exec): Call
615 process_stratum_target::follow_exec.
616 * target-delegates.c: Re-generate.
617
2af87c85
SM
6182021-05-13 Simon Marchi <simon.marchi@efficios.com>
619
620 * infrun.c (follow_exec): Call target_follow_fork when
621 follow-exec-mode is same.
622 * target.h (target_follow_fork): Improve doc.
623
0b2256f7
SM
6242021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
625
626 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
627 Remove.
628 * cli/cli-setshow.c (do_show_command): Adjust.
629
0746f49b
LM
6302021-05-13 Luis Machado <luis.machado@linaro.org>
631
632 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
633 include the last address in the range.
634
4b8cb9dd
SM
6352021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * python/python-internal.h (gdbpy_parse_command_name): Return
638 gdb::unique_xmalloc_ptr.
639 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
640 (cmdpy_init): Adjust.
641 * python/py-param.c (parmpy_init): Adjust.
642 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
643 when done.
644
ee35ce82
GB
6452021-05-12 George Barrett <bob@bob131.so>
646
647 * NEWS (Guile API): Note the addition of the new procedure.
648 * guile/scm-value.c (gdbscm_value_const_value): Add
649 implementation of value-const-value procedure.
650 (value_functions): Add value-const-value procedure.
651
9d4fc61d
GB
6522021-05-12 George Barrett <bob@bob131.so>
653
654 * NEWS (Guile API): Note the addition of new procedures.
655 * guile/scm-value.c (gdbscm_reference_value): Add helper function
656 for reference value creation.
657 (gdbscm_value_reference_value): Add implementation of
658 value-reference-value procedure.
659 (gdbscm_value_rvalue_reference_value): Add implementation of
660 value-rvalue-reference-value procedure.
661 (value_functions): Add value-reference-value procedure. Add
662 value-rvalue-reference-value procedure.
663
97cef6b7
GB
6642021-05-12 George Barrett <bob@bob131.so>
665
666 * guile/scm-type.c (type_integer_constants): Add binding for
667 TYPE_CODE_RVALUE_REF.
668 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
669 dereferencing of rvalue references.
670 * NEWS (Guile API): Note improvements in rvalue reference support.
671
d51344c9
MM
6722021-05-12 Markus Metzger <markus.t.metzger@intel.com>
673
674 * btrace.c (handle_pt_insn_events): Ignore status update enable
675 events.
676
f2a883a8
SM
6772021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
680 indentation.
681
64f30eb0
SM
6822021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
685
db1f6cd6
LS
6862021-05-10 Lancelot Six <lsix@lancelotsix.com>
687
688 PR gdb/27614
689 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
690 argument.
691
31aceaef
SM
6922021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * nat/linux-waitpid.c (status_to_str): Show signal name.
695
75140e3b
AB
6962021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
697
698 * python/py-breakpoint.c (pybp_debug): New static global.
699 (show_pybp_debug): New function.
700 (pybp_debug_printf): Define.
701 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
702 (gdbpy_breakpoint_created): Add some debugging.
703 (gdbpy_breakpoint_deleted): Likewise.
704 (gdbpy_breakpoint_modified): Likewise.
705 (_initialize_py_breakpoint): New function.
706
1ef40c13
AB
7072021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
708
709 * python/py-unwind.c (pyuw_debug): Convert to bool.
710 (show_pyuw_debug): New function.
711 (pyuw_debug_printf): Define.
712 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
713 (pyuw_this_id): Convert to new debug print macros.
714 (pyuw_prev_register): Likewise.
715 (pyuw_sniffer): Likewise.
716 (pyuw_dealloc_cache): Likewise.
717 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
718 show function when registering.
719
927c4e35
AB
7202021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * dummy-frame.c (fprint_dummy_frames): Convert use of
723 fprint_frame_id to use frame_id::to_string.
724 * frame.c (fprint_field): Delete.
725 (fprint_frame_id): Moved to...
726 (frame_id::to_string): ...this, rewritten to return a string.
727 (fprint_frame): Convert use of fprint_frame_id to use
728 frame_id::to_string.
729 (compute_frame_id): Likewise.
730 (frame_id_p): Likewise.
731 (frame_id_eq): Likewise.
732 (frame_id_inner): Likewise.
733 * frame.h (struct frame_id) <to_string>: New member function.
734 (fprint_frame_id): Delete declaration.
735 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
736 fprint_frame_id to use frame_id::to_string.
737 * python/py-frame.c (frame_object_to_frame_info): Likewise.
738 * python/py-unwind.c (unwind_infopy_str): Likewise.
739 (pyuw_this_id): Likewise.
740
8d06918f
SM
7412021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
742
743 * nat/linux-waitpid.c (status_to_str): Return std::string.
744 * nat/linux-waitpid.h (status_to_str): Likewise.
745 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
746 (linux_nat_target::attach): Adjust.
747 (linux_handle_extended_wait): Adjust.
748 (wait_lwp): Adjust.
749 (stop_wait_callback): Adjust.
750 (linux_nat_filter_event): Adjust.
751 (linux_nat_wait_1): Adjust.
752 * nat/linux-waitpid.c (status_to_str): Adjust.
753 * nat/linux-waitpid.h (status_to_str): Adjust.
754
550e9289
SM
7552021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
756
757 * infrun.h (infrun_debug_printf): Add missing space.
758
4655f850
PA
7592021-05-08 Pedro Alves <pedro@palves.net>
760
761 * linux-nat.c (linux_nat_target::supports_disable_randomization):
762 Remove references to HAVE_PERSONALITY.
763 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
764 (maybe_disable_address_space_randomization)
765 (~maybe_disable_address_space_randomizatio): Remove references to
766 HAVE_PERSONALITY.
767 * config.in, configure: Regenerate.
768
1845e254
AB
7692021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
772 include.
773 (source_script_with_search): Perform tilde expansion.
774
91e3c425
SM
7752021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * target-descriptions.c (struct target_desc_info) <filename>:
778 Make std::string.
779 (copy_inferior_target_desc_info): Adjust.
780 (target_desc_info_free): Adjust.
781 (target_find_description): Adjust.
782 (set_tdesc_filename_cmd): Adjust.
783 (show_tdesc_filename_cmd): Adjust.
784 (unset_tdesc_filename_cmd): Adjust.
785 (maint_print_c_tdesc_cmd): Adjust.
786
0b2f7ade
SM
7872021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
788
789 * target-descriptions.c (struct target_desc_info): Initialize
790 fields.
791 (get_tdesc_info): Use new.
792 (target_desc_info_free): Use delete.
793
820c4490
SM
7942021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
795
796 * target-descriptions.c (struct target_desc_info) <fetched>:
797 bool.
798 (target_find_description): Adjust.
799 (target_clear_description): Adjust.
800
c2962e6a
SM
8012021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * target-descriptions.c (struct target_desc_info) <tdesc>:
804 Adjust doc.
805 (target_desc_fetched): Remove.
806 (current_target_desc): Remove.
807 (target_description_filename): Remove.
808 (target_find_description): Adjust.
809 (target_clear_description): Adjust.
810 (target_current_description): Adjust.
811 (set_tdesc_filename_cmd): Adjust.
812 (show_tdesc_filename_cmd): Adjust.
813 (unset_tdesc_filename_cmd): Adjust.
814 (maint_print_c_tdesc_cmd): Adjust.
815 (maint_print_xml_tdesc_cmd): Adjust.
816
8a82de58
AB
8172021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * infcmd.c (notice_new_inferior): Change parameter type.
820 * inferior.h (notice_new_inferior): Change parameter type.
821 * remote.c (remote_notice_new_inferior): Change parameter type to
822 bool. Also update type of local variable to bool.
823 (remote_target::update_thread_list): Change type of local variable
824 to bool.
825 (remote_target::process_stop_reply): Pass bool instead of int to
826 remote_notice_new_inferior.
827
bedc4734
SM
8282021-05-07 Simon Marchi <simon.marchi@efficios.com>
829
830 * target.c (target_stack::unpush): Call target_ops::find_beneath
831 to get the target beneath `t`.
832
27f0a431
SM
8332021-05-07 Simon Marchi <simon.marchi@efficios.com>
834
835 * target.c (target_close): Check in all inferiors that the
836 target is not pushed.
837
1d1669e4
AM
8382021-05-07 Aaron Merey <amerey@redhat.com>
839
840 * debuginfod-support.c (debuginfod_init): Remove.
841 (get_debuginfod_client): New function.
842
2698f5ea
TT
8432021-05-07 Tom Tromey <tom@tromey.com>
844
845 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
846 * utils.c (streq_hash): Remove.
847 * utils.h (streq_hash): Don't declare.
848 * completer.c (completion_tracker::discard_completions): Update
849 comment.
850 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
851
13123da8
SM
8522021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
853
854 * Re-format all Python files using black.
855
9589edb8
AB
8562021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * guile/guile-internal.h (gdbscm_safe_source_script): Change
859 function return type.
860 * guile/guile.c (gdbscm_source_script): Update to handle change in
861 gdbscm_safe_source_script.
862 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
863 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
864 type.
865
ec66d6ea
SM
8662021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * inferior.h (class inferior) <args>: Change type to
869 unique_xmalloc_ptr.
870 * inferior.c (inferior::~inferior): Don't free args.
871 * infcmd.c (get_inferior_args): Adjust.
872 (set_inferior_args): Adjust.
873
0618ecf6
AB
8742021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
877 breakpoint locations when the breakpoint actually has a location.
878
79aabb73
TBA
8792021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
880
881 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
882 * mi/mi-cmds.c: Change the binding of "-break-condition" to
883 mi_cmd_break_condition.
884 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
885 * breakpoint.h (set_breakpoint_condition): Declare a new
886 overload.
887 * breakpoint.c (set_breakpoint_condition): New overloaded function
888 extracted out from ...
889 (condition_command): ... this.
890 * NEWS: Mention the change.
891
10e578d7
TBA
8922021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
893
894 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
895 '--force-condition' flag to force the condition in the
896 '-break-insert' and '-dprintf-insert' commands.
897 * NEWS: Mention the change.
898
225bda24
TV
8992021-05-04 Tom de Vries <tdevries@suse.de>
900
901 PR guile/27806
902 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
903 memory functions.
904
b8efb248
TT
9052021-04-30 Tom Tromey <tom@tromey.com>
906
907 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
908 (add_signatured_type_cu_to_table): Remove.
909 (create_debug_type_hash_table): Assume dwo_file is non-null.
910 (create_debug_types_hash_table): Update comment.
911 (create_all_type_units): Remove.
912 (sort_tu_by_abbrev_offset): Update comment.
913 (build_type_psymtabs): Rename from build_type_psymtabs_1.
914 (build_type_psymtabs): Remove.
915 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
916 Update.
917 (read_comp_units_from_section): Add types_htab, section_kind
918 parameters.
919 (create_all_comp_units): Read type units.
920
91eea9cc
TT
9212021-04-30 Tom Tromey <tom@tromey.com>
922
923 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
924 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
925 <get_cu>: Now inline.
926 <all_type_units>: Remove.
927 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
928 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
929 (dwarf2_per_bfd::get_tu): Remove.
930 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
931 (create_signatured_type_table_from_index)
932 (create_signatured_type_table_from_debug_names)
933 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
934 (dwarf2_base_index_functions::expand_all_symtabs)
935 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
936 (dwarf2_base_index_functions::map_symbol_filenames)
937 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
938 (add_signatured_type_cu_to_table, create_all_type_units)
939 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
940 (create_all_comp_units): Update.
941 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
942 (write_debug_names): Update.
943
0d305d5c
TT
9442021-04-30 Tom Tromey <tom@tromey.com>
945
946 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
947 allocate_signatured_type>: Change return type.
948 <all_comp_units, all_type_units>: Hold unique pointers.
949 (struct dwarf2_per_cu_data): Add constructor and initializers.
950 (struct signatured_type): Derive from dwarf2_per_cu_data.
951 * dwarf2/read.c (type_unit_group): Derive from
952 dwarf2_per_cu_data.
953 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
954 (dwarf2_per_bfd::get_tu)
955 (dwarf2_per_bfd::allocate_signatured_type)
956 (dwarf2_per_bfd::allocate_signatured_type)
957 (create_cu_from_index_list, create_cus_from_index_list)
958 (create_signatured_type_table_from_index)
959 (create_signatured_type_table_from_debug_names)
960 (create_addrmap_from_aranges)
961 (dwarf2_base_index_functions::find_last_source_symtab)
962 (dw_expand_symtabs_matching_file_matcher)
963 (dwarf2_gdb_index::expand_symtabs_matching)
964 (dwarf2_base_index_functions::map_symbol_filenames)
965 (create_cus_from_debug_names_list)
966 (dw2_debug_names_iterator::next)
967 (dwarf2_debug_names_index::expand_symtabs_matching)
968 (create_debug_type_hash_table, add_type_unit)
969 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
970 Update.
971 (allocate_type_unit_groups_table): Use delete.
972 (create_type_unit_group): Change return type. Use new.
973 (get_type_unit_group, build_type_psymtabs_1)
974 (build_type_psymtab_dependencies)
975 (process_skeletonless_type_unit, set_partial_user)
976 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
977 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
978 (read_signatured_type): Update.
979 (dwarf2_find_containing_comp_unit): Change type of
980 'all_comp_units'.
981 (run_test): Update.
982 (dwarf2_per_bfd::allocate_per_cu)
983 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
984 Use new.
985 (add_signatured_type_cu_to_table): Update.
986 * dwarf2/index-write.c (write_one_signatured_type)
987 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
988 (write_debug_names): Update.
989
1bee48c7
TT
9902021-04-30 Tom Tromey <tromey@adacore.com>
991
992 * nat/windows-nat.h (get_image_name): Don't declare.
993 * nat/windows-nat.c (get_image_name): Now static.
994
e228ef97
TT
9952021-04-30 Tom Tromey <tromey@adacore.com>
996
997 * windows-nat.c (windows_nat::handle_load_dll): Update.
998 (windows_nat_target::get_windows_debug_event): Call
999 dll_loaded_event.
1000 (windows_add_all_dlls, windows_add_dll): Move to
1001 nat/windows-nat.c.
1002 * nat/windows-nat.h (handle_load_dll): Change parameters.
1003 (dll_loaded_event, windows_add_all_dlls): Declare.
1004 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1005 from windows-nat.c.
1006 (dll_loaded_event): New function.
1007
de071872
TT
10082021-04-30 Tom Tromey <tromey@adacore.com>
1009
1010 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1011 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1012 Declare.
1013 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1014 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1015
9e439f00
TT
10162021-04-30 Tom Tromey <tromey@adacore.com>
1017
1018 * windows-nat.c: Move code to nat/windows-nat.[ch].
1019 (_initialize_windows_nat): Call initialize_loadable.
1020 * nat/windows-nat.h (AdjustTokenPrivileges)
1021 (DebugActiveProcessStop, DebugBreakProcess)
1022 (DebugSetProcessKillOnExit, EnumProcessModules)
1023 (EnumProcessModulesEx, GetModuleInformation)
1024 (GetModuleFileNameExA, GetModuleFileNameExW)
1025 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1026 (GetCurrentConsoleFont, Wow64SuspendThread)
1027 (Wow64GetThreadContext, Wow64SetThreadContext)
1028 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1029 (AdjustTokenPrivileges_ftype)
1030 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1031 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1032 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1033 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1034 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1035 (GetConsoleFontSize_ftype)
1036 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1037 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1038 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1039 (initialize_loadable): Declare.
1040 * nat/windows-nat.c (AdjustTokenPrivileges)
1041 (DebugActiveProcessStop, DebugBreakProcess)
1042 (DebugSetProcessKillOnExit, EnumProcessModules)
1043 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1044 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1045 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1046 (Wow64GetThreadContext, Wow64SetThreadContext)
1047 (Wow64GetThreadSelectorEntry): Define.
1048 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1049 from windows-nat.c.
1050 (initialize_loadable): Likewise, and rename.
1051
1053c638
TT
10522021-04-30 Tom Tromey <tromey@adacore.com>
1053
1054 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1055 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1056 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1057 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1058 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1059 (bad): New template functions.
1060 (_initialize_loadable): Update.
1061
2869ac4b
TT
10622021-04-30 Tom Tromey <tromey@adacore.com>
1063
1064 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1065
e197dfae
SM
10662021-04-29 Simon Marchi <simon.marchi@efficios.com>
1067
1068 * auto-load.h: Split namespace declaration.
1069
89ba430c
SM
10702021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1071
1072 * infrun.c (save_waitstatus): Move variables to inner scope.
1073
8eb82ba1
AB
10742021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * NEWS: Fix typo and stray full stop.
1077
db2534b7
TT
10782021-04-28 Tom Tromey <tromey@adacore.com>
1079
1080 * ada-exp.y (primary): Use new type for null pointer.
1081 * ada-lang.c (ada_type_match): Remove "may_deref"
1082 parameter. Handle null pointer.
1083 (ada_args_match): Update.
1084 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1085 Handle null pointer.
1086
edeaceda
AB
10872021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * NEWS: Mention new commands.
1090 * python/python.c (python_ignore_environment): New static global.
1091 (show_python_ignore_environment): New function.
1092 (set_python_ignore_environment): New function.
1093 (python_dont_write_bytecode): New static global.
1094 (show_python_dont_write_bytecode): New function.
1095 (set_python_dont_write_bytecode): New function.
1096 (_initialize_python): Register new commands.
1097
041ca48e
AB
10982021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * extension-priv.h (struct extension_language_ops): Rename
1101 'finish_initialization' to 'initialize'.
1102 * extension.c (finish_ext_lang_initialization): Renamed to...
1103 (ext_lang_initialization): ...this, update comment, and updated
1104 the calls to reflect the change in struct extension_language_ops.
1105 * extension.h (finish_ext_lang_initialization): Renamed to...
1106 (ext_lang_initialization): ...this.
1107 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1108 (gdbscm_initialize): ...this, update comment at definition.
1109 (guile_extension_ops): Update.
1110 * main.c (captured_main_1): Update call to
1111 finish_ext_lang_initialization.
1112 * python/python.c (gdbpy_finish_initialization): Rename to...
1113 (gdbpy_initialize): ...this, update comment at definition, and
1114 update call to do_finish_initialization.
1115 (python_extension_ops): Update.
1116 (do_finish_initialization): Rename to...
1117 (do_initialize): ...this, and update comment.
1118
1178f01a
AB
11192021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * main.c (captured_main_1): Add a call to
1122 finish_ext_lang_initialization.
1123 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1124
880ae75a
AB
11252021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1128 (gdbscm_finish_initialization): Add code moved from
1129 _initialize_guile.
1130 (_initialize_guile): Move code to gdbscm_finish_initialization.
1131 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1132 _initialize_scm_arch.
1133 (_initialize_scm_arch): New function.
1134 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1135 into _initialize_scm_block.
1136 (_initialize_scm_block): New function.
1137 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1138 into _initialize_scm_frame.
1139 (_initialize_scm_frame): New function.
1140 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1141 into _initialize_scm_objfile.
1142 (_initialize_scm_objfile): New function.
1143 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1144 code into _initialize_scm_progspace.
1145 (_initialize_scm_progspace): New function.
1146 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1147 into _initialize_scm_symbol.
1148 (_initialize_scm_symbol): New function.
1149 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1150 into _initialize_scm_symtab.
1151 (_initialize_scm_symtab): New function.
1152 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1153 _initialize_scm_type.
1154 (_initialize_scm_type): New function.
1155
8e3685bf
AB
11562021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1157
1158 * python/py-arch.c (_initialize_py_arch): New function.
1159 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1160 * python/py-block.c (_initialize_py_block): New function.
1161 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1162 * python/py-inferior.c (_initialize_py_inferior): New function.
1163 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1164 * python/py-objfile.c (_initialize_py_objfile): New function.
1165 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1166 * python/py-progspace.c (_initialize_py_progspace): New function.
1167 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1168 * python/py-registers.c (_initialize_py_registers): New function.
1169 (gdbpy_initialize_registers): Move code to
1170 _initialize_py_registers.
1171 * python/py-symbol.c (_initialize_py_symbol): New function.
1172 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1173 * python/py-symtab.c (_initialize_py_symtab): New function.
1174 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1175 * python/py-type.c (_initialize_py_type): New function.
1176 (gdbpy_initialize_types): Move code to _initialize_py_type.
1177 * python/py-unwind.c (_initialize_py_unwind): New function.
1178 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1179 * python/python.c (_initialize_python): Move call to
1180 do_start_initialization to gdbpy_finish_initialization.
1181 (gdbpy_finish_initialization): Add call to
1182 do_start_initialization.
1183
913832e9
AB
11842021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * extension.c (struct scoped_default_signal): New struct.
1187 (scoped_default_sigint): New typedef.
1188 (finish_ext_lang_initialization): Make use of
1189 scoped_default_sigint.
1190
a3b5ef3e
AB
11912021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * main.c (captured_main_1): Don't pass argument to gdb_init.
1194 * top.c (gdb_init): Remove unused argument, and add header
1195 comment.
1196 * top.h (gdb_init): Remove argument.
1197
b9f90c72
LM
11982021-04-27 Luis Machado <luis.machado@linaro.org>
1199
1200 * psymtab.c (psymbol_functions::dump): Output newline.
1201 Remove wrap.
1202 * symmisc.c (dump_objfile): Likewise.
1203
2c473def
MW
12042021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1205 Simon Marchi <simon.marchi@polymtl.ca>
1206
1207 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1208 when attaching the 'auto_load_new_objfile' observer, so
1209 other observers can specify it as a dependency.
1210 * gdb/auto-load.h (struct token): Declare
1211 'auto_load_new_objfile_observer_token' as token to be used
1212 for the 'auto_load_new_objfile' observer.
1213 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1214 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1215 observer, so it gets notified after the latter.
1216
9a6e099f
MW
12172021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1218 Simon Marchi <simon.marchi@polymtl.ca>
1219
1220 * unittests/observable-selftests.c (dependency_test_counters):
1221 New.
1222 (observer_token0, observer_token1, observer_token2,
1223 observer_token3, observer_token4, observer_token5): New.
1224 (struct dependency_observer_data): New struct.
1225 (observer_dependency_test_callback): New function.
1226 (test_observers): New.
1227 (run_dependency_test): New function.
1228 (test_dependency): New.
1229 (_initialize_observer_selftest): Register dependency test.
1230
bea3329b
SM
12312021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 PR gdb/27773
1234 * cli/cli-dump.c (dump_binary_file): Check result of
1235 gdb_fopen_cloexec.
1236
c290cb01
ST
12372021-04-25 Sergei Trofimovich <siarheit@google.com>
1238
1239 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1240 by passing `process_stratum_target*` parameter.
1241
fbb46296
LS
12422021-04-25 Lancelot Six <lsix@lancelotsix.com>
1243
1244 PR gdb/22640
1245 * typeprint.h (struct type_print_options): Add print_in_hex
1246 flag.
1247 (struct print_offset_data): Add print_in_hex flag, add a
1248 constructor accepting a type_print_options* argument.
1249 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1250 default value for print_in_hex.
1251 (print_offset_data::indentation): Allow more horizontal space.
1252 (print_offset_data::print_offset_data): Add ctor.
1253 (print_offset_data::maybe_print_hole, print_offset_data::update):
1254 Handle the print_in_hex flag.
1255 (whatis_exp): Handle 'x' and 'd' flags.
1256 (print_offsets_and_sizes_in_hex): Declare.
1257 (set_print_offsets_and_sizes_in_hex): Create.
1258 (show_print_offsets_and_sizes_in_hex): Create.
1259 (_initialize_typeprint): Update help message for the ptype
1260 command, register the 'set print type hex' and 'show print type
1261 hex' commands.
1262 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1263 (c_type_print_base): Construct the print_offset_data
1264 object using the type_print_optons parameter.
1265 * rust-lang.c (rust_language::print_type): Construct the
1266 print_offset_data object using the type_print_optons parameter.
1267 * NEWS: Mention the new flags of the ptype command.
1268
18bbba46
LS
12692021-04-25 Lancelot Six <lsix@lancelotsix.com>
1270
1271 * typeprint.h (struct type_print_options): Move before
1272 print_offset_data.
1273
77393c9b
JB
12742021-04-25 Joel Brobecker <brobecker@adacore.com>
1275
1276 GDB 10.2 released.
1277
98c897e3
SM
12782021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1279
1280 * observable.c (observer_debug): Change to bool.
1281
9fc29955
AB
12822021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1283
1284 * dwarf2/read.c: Add 'unordered_set' include.
1285 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1286 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1287 of per_Bfd->filenames_cache cache, and use function local
1288 filenames_cache instead. Reindent.
1289 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1290
0406545d
SM
12912021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * breakpoint.c (iterate_over_bp_locations): Change callback to
1294 function view, remove data parameter.
1295 * breakpoint.h (iterate_over_bp_locations): Likewise.
1296 * record-full.c (record_full_sync_record_breakpoints): Remove
1297 data parameter.
1298
432ce4cf
TT
12992021-04-22 Tom Tromey <tom@tromey.com>
1300
1301 * c-typeprint.c (c_type_print_base_struct_union): Use
1302 print_spaces_filtered_with_print_options.
1303
e25d6d93
SM
13042021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1305
1306 PR gdb/27757
1307 * python/py-type.c (typy_range): Check that bounds are constant
1308 before accessing them as such.
1309 * guile/scm-type.c (gdbscm_type_range): Likewise.
1310
4efeb0d3
TBA
13112021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1312
1313 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1314 * inferior.c (inferior::add_continuation): New method, adapted
1315 from 'add_inferior_continuation'.
1316 (inferior::do_all_continuations): New method, adapted from
1317 'do_all_inferior_continuations'.
1318 (inferior::~inferior): Clear the list of continuations directly.
1319 * inferior.h (class inferior) <continuations>: Rename into...
1320 <m_continuations>: ...this and make private.
1321 * continuations.c: Remove.
1322 * continuations.h: Remove.
1323 * event-top.c: Don't include "continuations.h".
1324
1325 Update the users below.
1326 * inf-loop.c (inferior_event_handler)
1327 * infcmd.c (attach_command)
1328 (notice_new_inferior): Update.
1329
c4c493de
TBA
13302021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1331
1332 * inferior.h (class inferior) <continuations>: Change the type
1333 to be an std::list of std::function's.
1334 Update the references and uses below.
1335 * continuations.c (struct continuation): Delete.
1336 (make_continuation): Delete.
1337 (do_my_continuations_1): Delete.
1338 (do_my_continuations): Delete.
1339 (discard_my_continuations_1): Delete.
1340 (discard_my_continuations): Delete.
1341 (add_inferior_continuation): Update.
1342 (do_all_inferior_continuations): Update.
1343 (discard_all_inferior_continuations): Update.
1344 * continuations.h (add_inferior_continuation): Update to take
1345 an std::function as the parameter.
1346 * infcmd.c (struct attach_command_continuation_args): Delete.
1347 (attach_command_continuation): Delete.
1348 (attach_command_continuation_free_args): Delete.
1349 (attach_command): Update.
1350 (notice_new_inferior): Update.
1351
1194676e
TBA
13522021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1353
1354 * continuations.h: Update the general comment.
1355 * inferior.h (class inferior) <continuations>: Update the comment.
1356 * interps.c: Do not include "continuations.h".
1357
35682f0a
TBA
13582021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1359
1360 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1361 parameter. Update the references below.
1362 * continuations.c (do_my_continuations_1)
1363 (do_my_continuations)
1364 (do_all_inferior_continuations): Update.
1365 * inf-loop.c (inferior_event_handler): Update.
1366 * infcmd.c (attach_command_continuation): Update.
1367
6fee5eee
TBA
13682021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1369
1370 * infcmd.c (attach_post_wait): Update the function comment.
1371
27d0790a
TBA
13722021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1373
1374 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1375 Update the references below.
1376 (struct attach_command_continuation_args)
1377 (attach_command_continuation)
1378 (attach_command_continuation_free_args)
1379 (attach_command)
1380 (notice_new_inferior): Update to remove the reference to 'args'.
1381
c39ebbf4
TV
13822021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1383 Tom de Vries <tdevries@suse.de>
1384
1385 PR remote/27710
1386 * remote.c (remote_target_is_non_stop_p): New function.
1387 * remote.h (remote_target_is_non_stop_p): Declare.
1388 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1389 to check non-stopness using notif_state->remote rather current target.
1390
22f80c0f
TT
13912021-04-22 Tom Tromey <tom@tromey.com>
1392
1393 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1394 (struct typed_val_int) <val>: Now ULONGEST.
1395 (rust_parser::parse_array_type): Remove negative check.
1396 (rust_lex_int_test): Change 'value' to ULONGEST.
1397
05f3c0f0
AB
13982021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * arch-utils.c (default_addressable_memory_unit_size): Return a
1401 value based on bfd's bits per byte.
1402
7e7a35fb
TT
14032021-04-21 Tom Tromey <tom@tromey.com>
1404
1405 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1406 unsigned char.
1407 (struct dwarf2_per_cu_data): Rearrange.
1408 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1409 unsigned char.
1410 (struct comp_unit_head): Rearrange.
1411 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1412
ff507520
TV
14132021-04-21 Tom de Vries <tdevries@suse.de>
1414
1415 PR build/27681
1416 * configure.ac: Remove --without-included-regex/--with-included-regex.
1417 * config.in: Regenerate.
1418 * configure: Regenerate.
1419 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1420
10a636cc
TBA
14212021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1422
1423 * breakpoint.h (create_breakpoint): Add a new parameter,
1424 'force_condition'.
1425 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1426 argument when 'parse_extra' is false to check if the condition
1427 is invalid at all of the breakpoint locations.
1428 Update the users below.
1429 (break_command_1)
1430 (dprintf_command)
1431 (trace_command)
1432 (ftrace_command)
1433 (strace_command)
1434 (create_tracepoint_from_upload): Update.
1435 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1436 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1437 * python/py-breakpoint.c (bppy_init): Update.
1438 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1439
85c88e2a
TBA
14402021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1441
1442 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1443 disabled-by-condition locations on MI-like output.
1444 (breakpoint_1): Do not display the disabled-by-condition footnote
1445 if the output is MI-like.
1446
fd34472c
FC
14472021-04-21 Frederic Cambus <fred@statdns.com>
1448
1449 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1450 update year range in generated copyright notices.
1451
184dcd81
FW
14522021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1453
1454 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1455 qualifier_seq_noopt.
1456
525174e8
FW
14572021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1458
1459 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1460
f5dc2ee3
AB
14612021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1462
1463 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1464 (producer_is_icc): Replace use of std::regex with gdb's
1465 compiled_regex.
1466
42c2c694
TT
14672021-04-17 Tom Tromey <tom@tromey.com>
1468
1469 PR gdb/23743:
1470 * dwarf2/read.c (class offset_view): New.
1471 (struct symbol_table_slot): Remove.
1472 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1473 <symbol_name_index, symbol_vec_index>: New methods.
1474 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1475 Rewrite.
1476 (read_gdb_index_from_buffer): Update.
1477 (struct dw2_symtab_iterator) <vec>: Change type.
1478 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1479 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1480 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1481 <append_array, append_offset>: New methods.
1482 (write_hash_table, add_address_entry, write_gdbindex_1)
1483 (write_debug_names): Update.
1484 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1485
da314dd3
TT
14862021-04-17 Tom Tromey <tom@tromey.com>
1487
1488 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1489 partial_symtabs.
1490
0b7b2c2a
TT
14912021-04-17 Tom Tromey <tom@tromey.com>
1492
1493 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1494 from map_matching_symbols. Change parameters.
1495 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1496 Rename from map_matching_symbols. Change parameters.
1497 * dwarf2/read.c (struct dwarf2_gdb_index)
1498 <expand_matching_symbols>: Rename from map_matching_symbols.
1499 Change parameters.
1500 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1501 Rename from map_matching_symbols. Change parameters.
1502 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1503 dw2_map_matching_symbols. Change parameters.
1504 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1505 implementation.
1506 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1507 map_matching_symbols. Change parameters.
1508 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1509 from map_matching_symbols. Change parameters.
1510 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1511 map_matching_symbols. Change parameters.
1512 * ada-lang.c (map_matching_symbols): New function.
1513 (add_nonlocal_symbols): Update.
1514
90160b57
TT
15152021-04-17 Tom Tromey <tom@tromey.com>
1516
1517 * quick-symbol.h (struct quick_symbol_functions)
1518 <expand_symtabs_with_fullname>: Remove.
1519 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1520 Remove.
1521 * psympriv.h (struct psymbol_functions)
1522 <expand_symtabs_with_fullname>: Remove.
1523 * dwarf2/read.c (struct dwarf2_base_index_functions)
1524 <expand_symtabs_with_fullname>: Remove.
1525 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1526 Remove.
1527 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1528 Update comment.
1529 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1530 Rewrite.
1531
7089bd88
TT
15322021-04-17 Tom Tromey <tom@tromey.com>
1533
1534 * symfile-debug.c (objfile::expand_symtabs_for_function):
1535 Rewrite.
1536 * quick-symbol.h (struct quick_symbol_functions)
1537 <expand_symtabs_for_function>: Remove.
1538 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1539 Remove.
1540 * psympriv.h (struct psymbol_functions)
1541 <expand_symtabs_for_function>: Remove.
1542 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1543 Update comment.
1544 * dwarf2/read.c (struct dwarf2_gdb_index)
1545 <expand_symtabs_for_function>: Remove.
1546 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1547 Remove.
1548 (find_slot_in_mapped_hash): Remove.
1549 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1550 (dw2_symtab_iter_init): Remove one overload.
1551 (dwarf2_gdb_index::expand_symtabs_for_function)
1552 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1553
536a40f3
TT
15542021-04-17 Tom Tromey <tom@tromey.com>
1555
1556 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1557 Rewrite.
1558 * quick-symbol.h (struct quick_symbol_functions)
1559 <map_symtabs_matching_filename>: Remove.
1560 * psymtab.c (partial_map_expand_apply)
1561 (psymbol_functions::map_symtabs_matching_filename): Remove.
1562 * psympriv.h (struct psymbol_functions)
1563 <map_symtabs_matching_filename>: Remove.
1564 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1565 Update comment.
1566 * dwarf2/read.c (struct dwarf2_base_index_functions)
1567 <map_symtabs_matching_filename>: Remove.
1568 (dw2_map_expand_apply)
1569 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1570 Remove.
1571
84d865e3
TT
15722021-04-17 Tom Tromey <tom@tromey.com>
1573
1574 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1575 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1576 Remove.
1577 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1578 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1579 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1580 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1581 Remove.
1582 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1583 (dwarf2_gdb_index::lookup_symbol)
1584 (dwarf2_debug_names_index::lookup_symbol): Remove.
1585
3bfa51a7
TT
15862021-04-17 Tom Tromey <tom@tromey.com>
1587
1588 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1589 * symmisc.c (maintenance_expand_symtabs): Update.
1590 * symfile.c (expand_symtabs_matching): Update.
1591 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1592 parameter.
1593 * quick-symbol.h (struct quick_symbol_functions)
1594 <expand_symtabs_matching>: Add 'domain' parameter.
1595 * psymtab.c (recursively_search_psymtabs)
1596 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1597 parameter.
1598 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1599 Add 'domain' parameter.
1600 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1601 'domain' parameter.
1602 * linespec.c (iterate_over_all_matching_symtabs): Update.
1603 * dwarf2/read.c (struct dwarf2_gdb_index)
1604 <expand_symtabs_matching>: Add 'domain' parameter.
1605 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1606 'domain' parameter.
1607 (dw2_expand_symtabs_matching)
1608 (dwarf2_gdb_index::expand_symtabs_matching)
1609 (dw2_debug_names_iterator)
1610 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1611 parameter.
1612
03a8ea51
TT
16132021-04-17 Tom Tromey <tom@tromey.com>
1614
1615 * symtab.c (global_symbol_searcher::expand_symtabs)
1616 (default_collect_symbol_completion_matches_break_on): Update.
1617 * symmisc.c (maintenance_expand_symtabs): Update.
1618 * symfile.h (expand_symtabs_matching): Add search_flags
1619 parameter.
1620 * symfile.c (expand_symtabs_matching): Add search_flags
1621 parameter.
1622 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1623 search_flags parameter.
1624 * quick-symbol.h (struct quick_symbol_functions)
1625 <expand_symtabs_matching>: Add search_flags parameter.
1626 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1627 * psymtab.c (recursively_search_psymtabs)
1628 (psymbol_functions::expand_symtabs_matching): Add search_flags
1629 parameter.
1630 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1631 Add search_flags parameter.
1632 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1633 search_flags parameter.
1634 * linespec.c (iterate_over_all_matching_symtabs): Update.
1635 * dwarf2/read.c (struct dwarf2_gdb_index)
1636 <expand_symtabs_matching>: Add search_flags parameter.
1637 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1638 search_flags parameter.
1639 (dw2_map_matching_symbols): Update.
1640 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1641 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1642 parameter.
1643 (dw2_debug_names_iterator): Change block_index to search flags.
1644 <m_block_index>: Likewise.
1645 (dw2_debug_names_iterator::next)
1646 (dwarf2_debug_names_index::lookup_symbol)
1647 (dwarf2_debug_names_index::expand_symtabs_for_function)
1648 (dwarf2_debug_names_index::map_matching_symbols)
1649 (dwarf2_debug_names_index::map_matching_symbols): Update.
1650 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1651 search_flags parameter.
1652 * ada-lang.c (ada_add_global_exceptions)
1653 (collect_symbol_completion_matches): Update.
1654
df35e626
TT
16552021-04-17 Tom Tromey <tom@tromey.com>
1656
1657 * symtab.c (default_collect_symbol_completion_matches_break_on):
1658 Update.
1659 * symfile.h (expand_symtabs_matching): Return bool.
1660 * symfile.c (expand_symtabs_matching): Return bool.
1661 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1662 bool.
1663 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1664 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1665 bool.
1666 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1667 bool.
1668 * psympriv.h (struct psymbol_functions)
1669 <expand_symtabs_matching>: Return bool.
1670 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1671 bool.
1672 * dwarf2/read.c (struct dwarf2_gdb_index)
1673 <expand_symtabs_matching>: Return bool.
1674 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1675 Return bool.
1676 (dw2_expand_symtabs_matching_symbol): Return bool.
1677 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1678 (dw2_expand_symtabs_matching)
1679 (dwarf2_gdb_index::expand_symtabs_matching)
1680 (dwarf2_debug_names_index::expand_symtabs_matching)
1681 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1682
e357e990
TT
16832021-04-17 Tom Tromey <tom@tromey.com>
1684
1685 * quick-symbol.h (enum block_search_flag_values): New.
1686 (block_search_flags): New enum flags type.
1687
3cbc7ac3
TT
16882021-04-16 Tom Tromey <tom@tromey.com>
1689
1690 * rust-parse.c: New file.
1691 * rust-exp.y: Remove.
1692 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1693 (SFILES): Remove rust-exp.y.
1694 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1695
1b6b755e
LM
16962021-04-16 Luis Machado <luis.machado@linaro.org>
1697
1698 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1699
c45ecc9d
JB
17002021-04-15 John Baldwin <jhb@FreeBSD.org>
1701
1702 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1703 use throughout file.
1704
a15a276b
TT
17052021-04-15 Tom Tromey <tromey@adacore.com>
1706
1707 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1708 arrays.
1709
644a2e75
TT
17102021-04-15 Tom Tromey <tromey@adacore.com>
1711
1712 * printcmd.c (print_variable_and_value): Use
1713 common_val_print_checked.
1714
9e5e03df
TT
17152021-04-15 Tom Tromey <tromey@adacore.com>
1716
1717 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1718 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1719 Update.
1720 * p-exp.y (variable): Update.
1721 * m2-exp.y (variable): Update.
1722 * go-exp.y (variable): Update.
1723 * expprint.c (dump_for_expression): New overload.
1724 * expop.h (check_objfile): New overload.
1725 (check_constant): New overload.
1726 (class var_value_operation): Use block_symbol.
1727 <get_symbol>: Rewrite.
1728 * eval.c (var_value_operation::evaluate)
1729 (var_value_operation::evaluate_funcall)
1730 (var_value_operation::evaluate_for_address)
1731 (var_value_operation::evaluate_for_address)
1732 (var_value_operation::evaluate_with_coercion)
1733 (var_value_operation::evaluate_for_sizeof)
1734 (var_value_operation::evaluate_for_cast): Update.
1735 * d-exp.y (PrimaryExpression): Update.
1736 * c-exp.y (variable): Update.
1737 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1738 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1739 (ada_var_value_operation::evaluate)
1740 (ada_var_value_operation::resolve)
1741 (ada_funcall_operation::resolve): Update.
1742 * ada-exp.y (write_var_from_sym, write_object_renaming)
1743 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1744 (maybe_overload): Update.
1745 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1746
5809fbf2
TT
17472021-04-15 Tom Tromey <tom@tromey.com>
1748 Andrew Burgess <andrew.burgess@embecosm.com>
1749
1750 * NEWS: Add entry.
1751 * main.c (captured_main_1): Call check_quiet_mode.
1752 * top.c (startup_quiet): New global.
1753 (check_quiet_mode): New function.
1754 (show_startup_quiet): New function.
1755 (init_main): Register new command.
1756 * top.h (check_quiet_mode): Declare.
1757
92e4e97a
AB
17582021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 PR cli/25956
1761 * NEWS: Mention new early init files and command line options.
1762 * config.in: Regenerate.
1763 * configure: Regenerate.
1764 * configure.ac: Define GDBEARLYINIT.
1765 * main.c (get_earlyinit_files): New function.
1766 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1767 CMDARG_EARLYINIT_COMMAND.
1768 (captured_main_1): Add support for new command line flags, and for
1769 processing startup files.
1770 (print_gdb_help): Include startup files in the output.
1771
54b4dcc5
AB
17722021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1773
1774 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1775 (relocate_file_path_maybe_in_datadir): ...this.
1776 (class gdb_initfile_finder): New class.
1777 (get_init_files): Now uses gdb_initfile_finder.
1778 (print_gdb_help): Print 'None found' when there are no init files.
1779
34dc0f95
TBA
17802021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1781
1782 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1783 corresponding child of the abstract DIE when iterating the
1784 children of the concrete DIE.
1785
329534fd
TV
17862021-04-13 Tom de Vries <tdevries@suse.de>
1787
1788 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1789 type to regoff_t *.
1790
d9d2ef05
LM
17912021-04-13 Luis Machado <luis.machado@linaro.org>
1792
1793 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1794 hex values.
1795
c8a37944
WS
17962021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1797
1798 * rs6000-tdep.c: Add support for single-stepping of
1799 prefixed instructions.
1800
b722acca
WS
18012021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1802
e3d528d7
WS
1803 PR gdb/27525
1804 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1805 handle the addpcis/lnia instruction.
1806
18072021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1808
b722acca
WS
1809 * MAINTAINERS (Write After Approval): Add myself.
1810
6ba4cb84
CL
18112021-4-12 Carl Love <cel@us.ibm.com>
1812
1813 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1814 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1815 float128.
1816
d4717483
SM
18172021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1818
1819 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1820 * nat/windows-nat.h: Likewise.
1821
b3885679
EZ
18222021-04-10 Eli Zaretskii <eliz@gnu.org>
1823
1824 * windows-nat.c (windows_nat::handle_load_dll): Call
1825 windows_add_dll if get_image_name failed to glean the name of the
1826 DLL by using the lpImageName pointer.
1827 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1828 (windows_add_dll): Now does what windows_add_all_dlls did before,
1829 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1830 specifies the address where the DLL was loaded into the inferior,
1831 and looks for the single DLL loaded at that address.
1832
1ef6a596
LM
18332021-04-09 Luis Machado <luis.machado@linaro.org>
1834
1835 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1836
83a559f7
DQ
18372021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1838
1839 * darwin-nat.c (darwin_nat_target::resume): Remove status
1840 variable.
1841
16e311ab
FW
18422021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1843
1844 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1845 prologue end for Intel compilers.
1846 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1847 * producer.c (producer_is_icc_ge_19): New function.
1848 * producer.h (producer_is_icc_ge_19): New declaration.
1849
fbb3bcfc
FW
18502021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1851
1852 * producer.c: (producer_is_icc): Update for new version scheme.
1853 (producer_parsing_tests): Update names and expected results.
1854 * producer.h: (producer_is_icc): Update comment accordingly.
1855
e97007b6
SM
18562021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1857
1858 * target.h (struct target_ops) <follow_fork>: Return void.
1859 (target_follow_fork): Likewise.
1860 * target.c (default_follow_fork): Likewise.
1861 (target_follow_fork): Likewise.
1862 * infrun.c (follow_fork_inferior): Adjust.
1863 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1864 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1865 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1866 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1867 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1868 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1869 * remote.c (class remote_target) <follow_fork>: Likewise.
1870 (remote_target::follow_fork): Likewise.
1871 * target-delegates.c: Re-generate.
1872
dc2b480f
WP
18732021-04-07 Weimin Pan <weimin.pan@oracle.com>
1874
1875 * ctfread.c (fetch_tid_type): New function, use throughout file.
1876 (read_forward_type): New function.
1877 (read_type_record): Call read_forward_type.
1878
0a703a4c
AB
18792021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * f-exp.h (class fortran_structop_operation): New class.
1882 * f-exp.y (exp): Create fortran_structop_operation instead of the
1883 generic structop_operation.
1884 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1885 expression as EVAL_NORMAL if the result type was dynamic so we can
1886 extract the actual array bounds.
1887 (fortran_structop_operation::evaluate): New function.
1888
18892021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1890
1891 * eval.c (evaluate_subexp_standard): Remove
1892 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1893 STRUCTOP_PTR.
1894
30ab3586
AB
18952021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1896
1897 * valops.c (value_cast): Call value_deeply_equal before performing
1898 any cast.
1899
5e18990f
AB
19002021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1901
1902 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1903 the function.
1904
56d467f4
CT
19052021-04-07 Caroline Tice <cmtice@google.com>
1906
1907 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1908 the search paths used resolve relative location of .dwo file.
1909
1fd999d9
AB
19102021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1913 assert.
1914 (dwarf2_section_info::get_file_name): Add an assert.
1915 (dwarf2_section_info::read_string): Display a minimal, sane error
1916 when the dwarf2_section_info is not associated with a bfd section.
1917
79c02443
AB
19182021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * top.c (staged_gdb_datadir): Update comment.
1921 (set_gdb_datadir): Copy the value of gdb_datadir back into
1922 staged_datadir.
1923 (init_main): Initialise staged_gdb_datadir.
1924
340d00fb
TV
19252021-04-06 Tom de Vries <tdevries@suse.de>
1926
1927 PR breakpoints/25884
1928 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1929 stepping range.
1930
d811a7cf
TV
19312021-04-06 Tom de Vries <tdevries@suse.de>
1932
1933 PR tui/27680
1934 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1935 to style.parse.
1936
306b445a
SM
19372021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * avr-tdep.c (avr_frame_unwind_cache): Use
1940 trad_frame_saved_reg::is_addr.
1941
9161c89a
SM
19422021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1943
1944 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1945 adjust callers.
1946
0072c873
SM
19472021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1948
1949 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1950 objfile parameter for objfile_per_bfd_storage, adjust callers.
1951 (struct standard_psymtab) <standard_psymtab>: Likewise.
1952 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1953 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1954 * ctfread.c (struct ctf_psymtab): Likewise.
1955 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1956 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1957 (dwarf2_create_include_psymtab): Likewise.
1958 * objfiles.h (struct objfile_per_bfd_storage)
1959 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1960 <get_bfd>: New method.
1961 <m_bfd>: New field.
1962 * objfiles.c (get_objfile_bfd_data): Adjust.
1963
9984dd99
SM
19642021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * psymtab.c (partial_symtab::partial_symtab): Change
1967 last_objfile_name to be an std::string.
1968 * symfile.c (allocate_symtab): Likewise.
1969
4a4f97c1
SM
19702021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1971
1972 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1973 methods.
1974 (struct objfile) <intern>: Use
1975 objfile::objfile_per_bfd_storage::intern.
1976
0672875f
SM
19772021-04-01 Simon Marchi <simon.marchi@efficios.com>
1978
1979 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1980 with type::is_flag_enum.
1981
9902b327
SM
19822021-04-01 Simon Marchi <simon.marchi@efficios.com>
1983
1984 * gdbtypes.h (struct type) <is_flag_enum,
1985 set_is_flag_enum>: New methods.
1986 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1987 write call sites to use type::set_is_flag_enum.
1988
3bc440a2
SM
19892021-04-01 Simon Marchi <simon.marchi@efficios.com>
1990
1991 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1992 with type::is_declared_class.
1993
aa70e35c
SM
19942021-04-01 Simon Marchi <simon.marchi@efficios.com>
1995
1996 * gdbtypes.h (struct type) <is_declared_class,
1997 set_is_declared_class>: New methods.
1998 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1999 write call sites to use type::set_is_declared_class.
2000
bfb9f5dc
BS
20012021-02-28 Boris Staletic <boris.staletic@gmail.com>
2002
2003 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2004 to avoid deprecation warnings.
2005
733f5eea
ML
20062021-04-01 Martin Liska <mliska@suse.cz>
2007
2008 * cp-name-parser.y: Use startswith instead of strncmp.
2009 * m2-exp.y: Likewise.
2010 * macroexp.c (substitute_args): Likewise.
2011 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2012 * rust-exp.y: Likewise.
2013
af82f89d
TT
20142021-03-31 Tom Tromey <tom@tromey.com>
2015
2016 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2017 with dw2_map_matching_symbols.
2018 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2019 dw2_expand_symtabs_matching.
2020
3570682a
TT
20212021-03-31 Tom Tromey <tromey@adacore.com>
2022
2023 * dwarf2/stringify.h: Fix typo.
2024
8a91fbdf
SM
20252021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 PR gdb/27541
2028 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2029 with objfiles using READNOW.
2030
9f67fc59
TT
20312021-03-29 Tom Tromey <tromey@adacore.com>
2032
2033 * top.c (check_frame_language_change): Update.
2034 * language.c (language_info): Remove parameter.
2035 * language.h (language_info): Remove parameter.
2036
9b8ffbf4
LM
20372021-03-29 Luis Machado <luis.machado@linaro.org>
2038
2039 * compile/compile.c (get_args): Don't add empty argv entries.
2040
25b48839
RO
20412021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2042
2043 gdb:
2044 * procfs.c (procfs_target::attach): Define inf.
2045 Use it.
2046 (procfs_target::create_inferior): Likewise.
2047
edc02ceb
TT
20482021-03-28 Tom Tromey <tom@tromey.com>
2049
2050 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2051 (elf_symfile_read): Simplify.
2052 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2053 (make_lazy_dwarf_reader): New function.
2054 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2055 (dwarf2_initialize_objfile): Return void. Remove index_kind
2056 parameter. Push on 'qf' list.
2057 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2058 type. Remove 'index_kind' parameter.
2059 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2060
6e23d91a
TT
20612021-03-27 Tom Tromey <tom@tromey.com>
2062
2063 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2064
594b8948
TT
20652021-03-27 Tom Tromey <tom@tromey.com>
2066
2067 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2068
efe1ecd8
LS
20692021-03-26 Lancelot Six <lsix@lancelotsix.com>
2070
2071 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2072 rid of 'local'.
2073
f4655dee
TT
20742021-03-26 Tom Tromey <tom@tromey.com>
2075
2076 * symtab.c (struct output_source_filename_data): Add 'output'
2077 method and operator().
2078 (output_source_filename_data::output): Rename from
2079 output_source_filename.
2080 (output_partial_symbol_filename): Remove.
2081 (info_sources_command): Update.
2082 (struct add_partial_filename_data): Add operator().
2083 (add_partial_filename_data::operator()): Rename from
2084 maybe_add_partial_symtab_filename.
2085 (make_source_files_completion_list): Update.
2086 * symfile.c (quick_symbol_functions): Update.
2087 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2088 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2089 'need_fullname'. Remove 'data' parameter.
2090 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2091 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2092 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2093 Change type of 'fun' and 'need_fullname'. Remove 'data'
2094 parameter.
2095 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2096 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2097 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2098 parameter.
2099 (mi_cmd_file_list_exec_source_files): Update.
2100 * dwarf2/read.c
2101 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2102
2315bb2d
TT
21032021-03-26 Tom Tromey <tom@tromey.com>
2104
2105 * ada-lang.c (struct match_data): Add operator().
2106 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2107 (callback): Remove 'callback'.
2108
e2cd5ca4
TT
21092021-03-26 Tom Tromey <tom@tromey.com>
2110
2111 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2112 call make_ignore_params once.
2113
cd43f63e
TT
21142021-03-26 Tom Tromey <tom@tromey.com>
2115
2116 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2117 "user" check.
2118
b4b1a226
SM
21192021-03-26 Simon Marchi <simon.marchi@efficios.com>
2120 Pedro Alves <pedro@palves.net>
2121
2122 * async-event.c: Include "infrun.h".
2123 (async_event_handler_marked): New.
2124 * async-event.h (async_event_handler_marked): Declare.
2125 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2126 inferior before calling target method. Don't commit-resumed if
2127 target_has_pending_events is true.
2128 * remote.c (remote_target::has_pending_events): New.
2129 * target-delegates.c: Regenerate.
2130 * target.c (target_has_pending_events): New.
2131 * target.h (target_ops::has_pending_events): New target method.
2132 (target_has_pending_events): New.
2133
1192f124
SM
21342021-03-26 Simon Marchi <simon.marchi@efficios.com>
2135 Pedro Alves <pedro@palves.net>
2136
2137 * infcmd.c (run_command_1, attach_command, detach_command)
2138 (interrupt_target_1): Use scoped_disable_commit_resumed.
2139 * infrun.c (do_target_resume): Remove
2140 target_commit_resume call.
2141 (commit_resume_all_targets): Remove.
2142 (maybe_set_commit_resumed_all_targets): New.
2143 (maybe_call_commit_resumed_all_targets): New.
2144 (enable_commit_resumed): New.
2145 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2146 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2147 (scoped_disable_commit_resumed::reset)
2148 (scoped_disable_commit_resumed::reset_and_commit)
2149 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2150 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2151 New.
2152 (proceed): Use scoped_disable_commit_resumed and
2153 maybe_call_commit_resumed_all_targets.
2154 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2155 * infrun.h (struct scoped_disable_commit_resumed): New.
2156 (maybe_call_commit_resumed_all_process_targets): New.
2157 (struct scoped_enable_commit_resumed): New.
2158 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2159 * process-stratum-target.h (class process_stratum_target):
2160 <commit_resumed_state>: New.
2161 * record-full.c (record_full_wait_1): Change commit_resumed_state
2162 around calling commit_resumed.
2163 * remote.c (class remote_target) <commit_resume>: Rename to...
2164 <commit_resumed>: ... this.
2165 (struct stop_reply): Move up.
2166 (remote_target::commit_resume): Rename to...
2167 (remote_target::commit_resumed): ... this. Check if there is any
2168 thread pending vCont resume.
2169 (remote_target::remote_stop_ns): Generate stop replies for resumed
2170 but pending vCont threads.
2171 (remote_target::wait_ns): Add gdb_assert.
2172 * target-delegates.c: Regenerate.
2173 * target.c (target_wait, target_resume): Assert that the current
2174 process_stratum target isn't in commit-resumed state.
2175 (defer_target_commit_resume): Remove.
2176 (target_commit_resume): Remove.
2177 (target_commit_resumed): New.
2178 (make_scoped_defer_target_commit_resume): Remove.
2179 (target_stop): Assert that the current process_stratum target
2180 isn't in commit-resumed state.
2181 * target.h (struct target_ops) <commit_resume>: Rename to ...
2182 <commit_resumed>: ... this.
2183 (target_commit_resume): Remove.
2184 (target_commit_resumed): New.
2185 (make_scoped_defer_target_commit_resume): Remove.
2186 * top.c (wait_sync_command_done): Use
2187 scoped_enable_commit_resumed.
2188
e5b9b39f
PA
21892021-03-26 Pedro Alves <pedro@palves.net>
2190
2191 * target.c (target_always_non_stop_p): Also check whether the
2192 target can async.
2193
bab287cd
TT
21942021-03-26 Tom Tromey <tom@tromey.com>
2195
2196 * dwarf2/read.c (dwarf2_read_debug_names)
2197 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2198 (dw2_debug_names_iterator::next, create_type_unit_group):
2199 Simplify.
2200
eff4f69d
PA
22012021-03-25 Pedro Alves <pedro@palves.net>
2202
2203 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2204 around setting the breakpoint.
2205
323fd5b9
PA
22062021-03-25 Pedro Alves <pedro@palves.net>
2207
2208 * remote.c
2209 (remote_target::check_pending_events_prevent_wildcard_vcont):
2210 Check whether the event's ptid is not null_ptid before looking up
2211 the corresponding inferior.
2212
d3cbca38
CD
22132021-03-24 Changbin Du <changbin.du@gmail.com>
2214
2215 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2216 read_code.
2217
328d42d8
SM
22182021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2219
2220 * target.h (current_top_target): Remove, make callers use the
2221 current inferior instead.
2222 * target.c (current_top_target): Remove.
2223
d777bf0d
SM
22242021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2225
2226 * target.h (target_shortname): Change to function declaration.
2227 (target_longname): Likewise.
2228 (target_attach_no_wait): Likewise.
2229 (target_post_attach): Likewise.
2230 (target_prepare_to_store): Likewise.
2231 (target_supports_enable_disable_tracepoint): Likewise.
2232 (target_supports_string_tracing): Likewise.
2233 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2234 (target_supports_dumpcore): Likewise.
2235 (target_dumpcore): Likewise.
2236 (target_can_run_breakpoint_commands): Likewise.
2237 (target_files_info): Likewise.
2238 (target_post_startup_inferior): Likewise.
2239 (target_insert_fork_catchpoint): Likewise.
2240 (target_remove_fork_catchpoint): Likewise.
2241 (target_insert_vfork_catchpoint): Likewise.
2242 (target_remove_vfork_catchpoint): Likewise.
2243 (target_insert_exec_catchpoint): Likewise.
2244 (target_remove_exec_catchpoint): Likewise.
2245 (target_set_syscall_catchpoint): Likewise.
2246 (target_rcmd): Likewise.
2247 (target_can_lock_scheduler): Likewise.
2248 (target_can_async_p): Likewise.
2249 (target_is_async_p): Likewise.
2250 (target_execution_direction): Likewise.
2251 (target_extra_thread_info): Likewise.
2252 (target_pid_to_exec_file): Likewise.
2253 (target_thread_architecture): Likewise.
2254 (target_find_memory_regions): Likewise.
2255 (target_make_corefile_notes): Likewise.
2256 (target_get_bookmark): Likewise.
2257 (target_goto_bookmark): Likewise.
2258 (target_stopped_by_watchpoint): Likewise.
2259 (target_stopped_by_sw_breakpoint): Likewise.
2260 (target_supports_stopped_by_sw_breakpoint): Likewise.
2261 (target_stopped_by_hw_breakpoint): Likewise.
2262 (target_supports_stopped_by_hw_breakpoint): Likewise.
2263 (target_have_steppable_watchpoint): Likewise.
2264 (target_can_use_hardware_watchpoint): Likewise.
2265 (target_region_ok_for_hw_watchpoint): Likewise.
2266 (target_can_do_single_step): Likewise.
2267 (target_insert_watchpoint): Likewise.
2268 (target_remove_watchpoint): Likewise.
2269 (target_insert_hw_breakpoint): Likewise.
2270 (target_remove_hw_breakpoint): Likewise.
2271 (target_can_accel_watchpoint_condition): Likewise.
2272 (target_can_execute_reverse): Likewise.
2273 (target_get_ada_task_ptid): Likewise.
2274 (target_filesystem_is_local): Likewise.
2275 (target_trace_init): Likewise.
2276 (target_download_tracepoint): Likewise.
2277 (target_can_download_tracepoint): Likewise.
2278 (target_download_trace_state_variable): Likewise.
2279 (target_enable_tracepoint): Likewise.
2280 (target_disable_tracepoint): Likewise.
2281 (target_trace_start): Likewise.
2282 (target_trace_set_readonly_regions): Likewise.
2283 (target_get_trace_status): Likewise.
2284 (target_get_tracepoint_status): Likewise.
2285 (target_trace_stop): Likewise.
2286 (target_trace_find): Likewise.
2287 (target_get_trace_state_variable_value): Likewise.
2288 (target_save_trace_data): Likewise.
2289 (target_upload_tracepoints): Likewise.
2290 (target_upload_trace_state_variables): Likewise.
2291 (target_get_raw_trace_data): Likewise.
2292 (target_get_min_fast_tracepoint_insn_len): Likewise.
2293 (target_set_disconnected_tracing): Likewise.
2294 (target_set_circular_trace_buffer): Likewise.
2295 (target_set_trace_buffer_size): Likewise.
2296 (target_set_trace_notes): Likewise.
2297 (target_get_tib_address): Likewise.
2298 (target_set_permissions): Likewise.
2299 (target_static_tracepoint_marker_at): Likewise.
2300 (target_static_tracepoint_markers_by_strid): Likewise.
2301 (target_traceframe_info): Likewise.
2302 (target_use_agent): Likewise.
2303 (target_can_use_agent): Likewise.
2304 (target_augmented_libraries_svr4_read): Likewise.
2305 (target_log_command): Likewise.
2306 * target.c (target_shortname): New.
2307 (target_longname): New.
2308 (target_attach_no_wait): New.
2309 (target_post_attach): New.
2310 (target_prepare_to_store): New.
2311 (target_supports_enable_disable_tracepoint): New.
2312 (target_supports_string_tracing): New.
2313 (target_supports_evaluation_of_breakpoint_conditions): New.
2314 (target_supports_dumpcore): New.
2315 (target_dumpcore): New.
2316 (target_can_run_breakpoint_commands): New.
2317 (target_files_info): New.
2318 (target_post_startup_inferior): New.
2319 (target_insert_fork_catchpoint): New.
2320 (target_remove_fork_catchpoint): New.
2321 (target_insert_vfork_catchpoint): New.
2322 (target_remove_vfork_catchpoint): New.
2323 (target_insert_exec_catchpoint): New.
2324 (target_remove_exec_catchpoint): New.
2325 (target_set_syscall_catchpoint): New.
2326 (target_rcmd): New.
2327 (target_can_lock_scheduler): New.
2328 (target_can_async_p): New.
2329 (target_is_async_p): New.
2330 (target_execution_direction): New.
2331 (target_extra_thread_info): New.
2332 (target_pid_to_exec_file): New.
2333 (target_thread_architecture): New.
2334 (target_find_memory_regions): New.
2335 (target_make_corefile_notes): New.
2336 (target_get_bookmark): New.
2337 (target_goto_bookmark): New.
2338 (target_stopped_by_watchpoint): New.
2339 (target_stopped_by_sw_breakpoint): New.
2340 (target_supports_stopped_by_sw_breakpoint): New.
2341 (target_stopped_by_hw_breakpoint): New.
2342 (target_supports_stopped_by_hw_breakpoint): New.
2343 (target_have_steppable_watchpoint): New.
2344 (target_can_use_hardware_watchpoint): New.
2345 (target_region_ok_for_hw_watchpoint): New.
2346 (target_can_do_single_step): New.
2347 (target_insert_watchpoint): New.
2348 (target_remove_watchpoint): New.
2349 (target_insert_hw_breakpoint): New.
2350 (target_remove_hw_breakpoint): New.
2351 (target_can_accel_watchpoint_condition): New.
2352 (target_can_execute_reverse): New.
2353 (target_get_ada_task_ptid): New.
2354 (target_filesystem_is_local): New.
2355 (target_trace_init): New.
2356 (target_download_tracepoint): New.
2357 (target_can_download_tracepoint): New.
2358 (target_download_trace_state_variable): New.
2359 (target_enable_tracepoint): New.
2360 (target_disable_tracepoint): New.
2361 (target_trace_start): New.
2362 (target_trace_set_readonly_regions): New.
2363 (target_get_trace_status): New.
2364 (target_get_tracepoint_status): New.
2365 (target_trace_stop): New.
2366 (target_trace_find): New.
2367 (target_get_trace_state_variable_value): New.
2368 (target_save_trace_data): New.
2369 (target_upload_tracepoints): New.
2370 (target_upload_trace_state_variables): New.
2371 (target_get_raw_trace_data): New.
2372 (target_get_min_fast_tracepoint_insn_len): New.
2373 (target_set_disconnected_tracing): New.
2374 (target_set_circular_trace_buffer): New.
2375 (target_set_trace_buffer_size): New.
2376 (target_set_trace_notes): New.
2377 (target_get_tib_address): New.
2378 (target_set_permissions): New.
2379 (target_static_tracepoint_marker_at): New.
2380 (target_static_tracepoint_markers_by_strid): New.
2381 (target_traceframe_info): New.
2382 (target_use_agent): New.
2383 (target_can_use_agent): New.
2384 (target_augmented_libraries_svr4_read): New.
2385 (target_log_command): New.
2386 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2387 * infrun.c (set_schedlock_func): Adjust.
2388 * mi/mi-main.c (exec_reverse_continue): Adjust.
2389 * reverse.c (exec_reverse_once): Adjust.
2390 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2391 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2392 * remote-sim.c (gdbsim_target::detach): Adjust.
2393 (gdbsim_target::files_info): Adjust.
2394
b64f703b
TT
23952021-03-24 Tom Tromey <tom@tromey.com>
2396
2397 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2398 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2399 (check_match, dw2_expand_symtabs_matching)
2400 (dwarf2_debug_names_index::map_matching_symbols)
2401 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2402
68f115f8
KS
24032021-03-24 Keith Seitz <keiths@redhat.com>
2404
2405 * compile/compile-cplus-types.c
2406 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2407 thinko.
2408
41c0087b
SM
24092021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2410
2411 * gdbarch.sh (gdbarch_data_registry): Make static.
2412 * gdbarch.c: Re-generate.
2413
ce192338
LM
24142021-03-24 Luis Machado <luis.machado@linaro.org>
2415
2416 * NEWS: Mention memory tagging changes.
2417
bef382e6
LM
24182021-03-24 Luis Machado <luis.machado@linaro.org>
2419
2420 * printcmd.c (decode_format): Handle the 'm' modifier.
2421 (do_examine): Display allocation tags when required/supported.
2422 (should_validate_memtags): New function.
2423 (print_command_1): Display memory tag mismatches.
2424 * valprint.c (show_memory_tag_violations): New function.
2425 (value_print_option_defs): Add new option "memory-tag-violations".
2426 (user_print_options) <memory_tag_violations>: Initialize to 1.
2427 * valprint.h (struct format_data) <print_tags>: New field.
2428 (value_print_options) <memory_tag_violations>: New field.
2429
48136e00
LM
24302021-03-24 Luis Machado <luis.machado@linaro.org>
2431
2432 * printcmd.c: Include gdbsupport/rsp-low.h.
2433 (memory_tag_list): New static global.
2434 (process_print_command_args): Factored out of
2435 print_command_1.
2436 (print_command_1): Use process_print_command_args.
2437 (show_addr_not_tagged, show_memory_tagging_unsupported)
2438 (memory_tag_command, memory_tag_print_tag_command)
2439 (memory_tag_print_logical_tag_command)
2440 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2441 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2442 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2443 functions.
2444 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2445
ffcc2a15
LM
24462021-03-24 Luis Machado <luis.machado@linaro.org>
2447
2448 * aarch64-linux-tdep.c
2449 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2450 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2451
cf44c9fa
LM
24522021-03-24 Luis Machado <luis.machado@linaro.org>
2453
2454 * aarch64-linux-tdep.c
2455 (aarch64_linux_report_signal_info): New function.
2456 (aarch64_linux_init_abi): Register
2457 aarch64_linux_report_signal_info as the report_signal_info hook.
2458 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2459 (SEGV_MTESERR): Define.
2460
b4a7d4fc
LM
24612021-03-24 Luis Machado <luis.machado@linaro.org>
2462
2463 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2464 (aarch64_linux_ltag_tests): New function.
2465 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2466
c7782e50
LM
24672021-03-24 Luis Machado <luis.machado@linaro.org>
2468
2469 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2470 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2471 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2472 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2473 functions.
2474 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2475 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2476 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2477 (aarch64_linux_get_ltag): New functions.
2478 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2479 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2480 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2481 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2482
1e735120
LM
24832021-03-24 Luis Machado <luis.machado@linaro.org>
2484
2485 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2486 bit.
2487 (struct smaps_data): New struct.
2488 (decode_vmflags): Handle the 'mt' flag.
2489 (parse_smaps_data): New function, refactored from
2490 linux_find_memory_regions_full.
2491 (linux_address_in_memtag_page): New function.
2492 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2493 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2494
93e447c6
LM
24952021-03-24 Luis Machado <luis.machado@linaro.org>
2496
2497 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2498 instead of char arrays.
2499
4601818e
LM
25002021-03-24 Luis Machado <luis.machado@linaro.org>
2501
2502 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2503 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2504 nat/aarch64-mte-linux-ptrace.h.
2505 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2506 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2507 override.
2508 <fetch_memtags>: New method override.
2509 <store_memtags>: New method override.
2510 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2511 (aarch64_linux_nat_target::fetch_memtags): New method.
2512 (aarch64_linux_nat_target::store_memtags): New method.
2513 * arch/aarch64-mte-linux.c: New file.
2514 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2515 (AARCH64_MTE_GRANULE_SIZE): Define.
2516 (aarch64_memtag_type): New enum.
2517 (aarch64_mte_get_tag_granules): New prototype.
2518 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2519 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2520 * nat/aarch64-mte-linux-ptrace.c: New file.
2521 * nat/aarch64-mte-linux-ptrace.h: New file.
2522
3f3bd8b8
LM
25232021-03-24 Luis Machado <luis.machado@linaro.org>
2524
2525 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2526 * nat/aarch64-mte-linux-ptrace.h: New file.
2527
5e984dbf
LM
25282021-03-24 Luis Machado <luis.machado@linaro.org>
2529
2530 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2531 (store_mteregs_to_thread): New function.
2532 (aarch64_linux_nat_target::fetch_registers): Update to call
2533 fetch_mteregs_from_thread.
2534 (aarch64_linux_nat_target::store_registers): Update to call
2535 store_mteregs_to_thread.
2536 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2537 (aarch64_cannot_store_register): Handle MTE registers.
2538 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2539 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2540 <has_mte>: New method.
2541 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2542
c1bd443b
LM
25432021-03-24 Luis Machado <luis.machado@linaro.org>
2544
2545 * aarch64-linux-nat.c
2546 (aarch64_linux_nat_target::read_description): Take MTE flag into
2547 account.
2548 Slight refactor to hwcap flag checking.
2549 * aarch64-linux-tdep.c
2550 (aarch64_linux_core_read_description): Likewise.
2551 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2552 MTE.
2553 (aarch64_read_description): Add mte_p parameter and update to use it.
2554 Update the documentation.
2555 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2556 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2557 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2558 (aarch64_create_target_description): Add mte_p parameter and update
2559 the code to use it.
2560 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2561 parameter.
2562 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2563 * features/aarch64-mte.c: New file, generated.
2564 * features/aarch64-mte.xml: New file.
2565
04245125
LM
25662021-03-24 Luis Machado <luis.machado@linaro.org>
2567
2568 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2569 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2570 * aarch64-linux-tdep.c: Likewise
2571 * arch/aarch64-mte-linux.h: New file.
2572
754487e2
LM
25732021-03-24 Luis Machado <luis.machado@linaro.org>
2574
2575 * remote: Include gdbsupport/selftest.h.
2576 (test_memory_tagging_functions): New function.
2577 (_initialize_remote): Register test_memory_tagging_functions.
2578
2c2e7f87
LM
25792021-03-24 Luis Machado <luis.machado@linaro.org>
2580
2581 * remote.c (PACKET_memory_tagging_feature): New enum.
2582 (remote_memory_tagging_p): New function.
2583 (remote_protocol_features): New "memory-tagging" entry.
2584 (remote_target::remote_query_supported): Handle memory tagging
2585 support.
2586 (remote_target::supports_memory_tagging): Implement.
2587 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2588 (create_store_memtags_request): New functions.
2589 (remote_target::fetch_memtags): Implement.
2590 (remote_target::store_memtags): Implement.
2591 (_initialize_remote): Add new "memory-tagging-feature"
2592 config command.
2593
c193949e
LM
25942021-03-24 Luis Machado <luis.machado@linaro.org>
2595
2596 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2597 (default_memtag_matches_p, default_set_memtags)
2598 (default_get_memtag): New functions.
2599 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2600 (default_memtag_matches_p, default_set_memtags)
2601 (default_get_memtag): New prototypes.
2602 * gdbarch.c: Regenerate.
2603 * gdbarch.h: Regenerate.
2604 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2605 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2606 (enum memtag_type): New enum.
2607
dbe692af
LM
26082021-03-24 Luis Machado <luis.machado@linaro.org>
2609
2610 * remote.c (remote_target) <supports_memory_tagging>: New method
2611 override.
2612 <fetch_memtags>: New method override.
2613 <store_memtags>: New method override.
2614 (remote_target::supports_memory_tagging): New method.
2615 (remote_target::fetch_memtags): New method.
2616 (remote_target::store_memtags): New method.
2617 * target-delegates.c: Regenerate.
2618 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2619 method.
2620 <fetch_memtags>: New virtual method.
2621 <store_memtags>: New virtual method.
2622 (target_supports_memory_tagging): Define.
2623 (target_fetch_memtags): Define.
2624 (target_store_memtags): Define.
2625 * target-debug.h (target_debug_print_size_t)
2626 (target_debug_print_const_gdb_byte_vector_r)
2627 (target_debug_print_gdb_byte_vector_r): New functions.
2628
66848ebc
SM
26292021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2630
2631 * target.h (target_longname): Remove.
2632
c8fbd44a
SM
26332021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2634
2635 * target.h (target_is_pushed): Remove, update callers to use
2636 inferior::target_is_pushed instead.
2637 * target.c (target_is_pushed): Remove.
2638
02980c56
SM
26392021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2640
2641 * target.h (push_target): Remove, update callers to use
2642 inferior::push_target.
2643 * target.c (push_target): Remove.
2644 * inferior.h (class inferior) <push_target>: New overload.
2645
fadf6add
SM
26462021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2647
2648 * target.h (unpush_target): Remove, update all callers
2649 to use `inferior::unpush_target` instead.
2650 (struct target_unpusher) <operator()>: Just declare.
2651 * target.c (unpush_target): Remove.
2652 (target_unpusher::operator()): New.
2653
702cf3f5
AB
26542021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2655
2656 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2657 error.
2658 (process_full_comp_unit): Validate the top-level tag before
2659 processing the first DIE.
2660 (read_func_scope): Ensure we have a valid builder.
2661
46fec642
AB
26622021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * objc-lang.c (objc_demangle): Renamed to
2665 objc_language::demangle_symbol, and moved later in the file.
2666 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2667 member function.
2668 (objc_language::demangle_symbol): Defined outside of class
2669 declaration. The definition is the old objc_demangle with NULL
2670 changed to nullptr, and if conditions relating to nullptr pointers
2671 or null character checks made explicit.
2672 * objc-lang.h (objc_demangle): Delete declaration.
2673
08dedd66
ML
26742021-03-22 Martin Liska <mliska@suse.cz>
2675
2676 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2677 (_initialize_arm_tdep): Likewise.
2678
eb36a3eb
TT
26792021-03-20 Tom Tromey <tom@tromey.com>
2680
2681 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2682 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2683 * psymtab.h (make_psymbol_functions): Don't declare.
2684 * psymtab.c (make_psymbol_functions): Remove.
2685 (maintenance_print_psymbols): Update.
2686 * psympriv.h (struct psymbol_functions): Add no-argument
2687 constructor.
2688 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2689 <partial_symtabs>: Remove.
2690 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2691 * elfread.c (read_partial_symbols): Update.
2692 (elf_symfile_read): Remove check for existing partial symbols.
2693 Don't clear "qf".
2694 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2695 partial symbols.
2696 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2697 partial symtabs.
2698 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2699 parameter.
2700 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2701 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2702
e1114590
TT
27032021-03-20 Tom Tromey <tom@tromey.com>
2704
2705 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2706 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2707 * symfile-debug.c (objfile::has_partial_symbols)
2708 (objfile::find_last_source_symtab)
2709 (objfile::forget_cached_source_info)
2710 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2711 (objfile::print_stats, objfile::dump)
2712 (objfile::expand_symtabs_for_function)
2713 (objfile::expand_all_symtabs)
2714 (objfile::expand_symtabs_with_fullname)
2715 (objfile::map_matching_symbols)
2716 (objfile::expand_symtabs_matching)
2717 (objfile::find_pc_sect_compunit_symtab)
2718 (objfile::map_symbol_filenames)
2719 (objfile::find_compunit_symtab_by_address)
2720 (objfile::lookup_global_symbol_language)
2721 (objfile::require_partial_symbols): Update.
2722 * psymtab.c (maintenance_print_psymbols)
2723 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2724 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2725 * objfiles.c (objfile_relocate1): Update.
2726 * elfread.c (elf_symfile_read): Update.
2727
de909f0b
TT
27282021-03-20 Tom Tromey <tom@tromey.com>
2729
2730 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2731
caf8c1e5
TT
27322021-03-20 Tom Tromey <tom@tromey.com>
2733
2734 * psymtab.c (psymbol_functions::count_psyms): Rename.
2735 (psymbol_functions::print_stats): Update.
2736 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2737 method.
2738
3aa31ce7
TT
27392021-03-20 Tom Tromey <tom@tromey.com>
2740
2741 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2742 (psymbol_functions::find_pc_sect_psymtab): Rename.
2743 (psymbol_functions::find_pc_sect_compunit_symtab)
2744 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2745 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2746 Declare new method.
2747 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2748
7b249e47
TT
27492021-03-20 Tom Tromey <tom@tromey.com>
2750
2751 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2752 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2753 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2754 parameter.
2755 (add_psymbol_to_bcache): Remove.
2756 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2757 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2758 Likewise.
2759 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2760 <add_psymbol>: Likewise.
2761 (standard_psymtab, legacy_psymtab): Likewise.
2762 * mdebugread.c (parse_partial_symbols): Update.
2763 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2764 (handle_psymbol_enumerators): Update.
2765 (new_psymtab): Add partial_symtabs parameter.
2766 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2767 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2768 parameter.
2769 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2770 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2771 Update.
2772 * dbxread.c (read_dbx_symtab): Update.
2773 (start_psymtab): Add partial_symtabs parameter.
2774 (dbx_end_psymtab): Update.
2775 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2776 (ctf_psymtab): Add partial_symtabs parameter.
2777 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2778 Update.
2779 (scan_partial_symbols): Add partial_symtabs parameter.
2780 (scan_partial_symbols, elfctf_build_psymtabs)
2781 (ctf_psymtab_add_enums): Update.
2782
d1eef86d
TT
27832021-03-20 Tom Tromey <tom@tromey.com>
2784
2785 * symfile.c (read_symbols): Use objfile method.
2786 * symfile-debug.c (objfile::require_partial_symbols): New method.
2787 * psymtab.h (require_partial_symbols): Don't declare.
2788 * psymtab.c (require_partial_symbols): Use objfile method. Now
2789 static.
2790 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2791 (psymbol_functions::lookup_symbol)
2792 (psymbol_functions::lookup_global_symbol_language)
2793 (psymbol_functions::find_last_source_symtab)
2794 (psymbol_functions::forget_cached_source_info)
2795 (psymbol_functions::print_stats)
2796 (psymbol_functions::expand_symtabs_for_function)
2797 (psymbol_functions::expand_all_symtabs)
2798 (psymbol_functions::expand_symtabs_with_fullname)
2799 (psymbol_functions::map_symbol_filenames)
2800 (psymbol_functions::map_matching_symbols)
2801 (psymbol_functions::expand_symtabs_matching)
2802 (psymbol_functions::find_compunit_symtab_by_address)
2803 (maintenance_print_psymbols, maintenance_info_psymtabs)
2804 (maintenance_check_psymtabs): Update.
2805 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2806 new method.
2807
eb00e468
TT
28082021-03-20 Tom Tromey <tom@tromey.com>
2809
2810 * xcoffread.c (xcoff_sym_fns): Update.
2811 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2812 * symfile-debug.c (objfile::has_partial_symbols): Use
2813 can_lazily_read_symbols.
2814 (debug_sym_read_psymbols): Remove.
2815 (debug_sym_fns, install_symfile_debug_logging): Update.
2816 * quick-symbol.h (struct quick_symbol_functions)
2817 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2818 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2819 * mipsread.c (ecoff_sym_fns): Update.
2820 * machoread.c (macho_sym_fns): Update.
2821 * elfread.c (struct lazy_dwarf_reader): New.
2822 (elf_symfile_read): Update.
2823 (read_psyms): Now a method of lazy_dwarf_reader.
2824 (elf_sym_fns): Update.
2825 (elf_sym_fns_lazy_psyms): Remove.
2826 * dbxread.c (aout_sym_fns): Update.
2827 * coffread.c (coff_sym_fns): Update.
2828
b29b98cf
TT
28292021-03-20 Tom Tromey <tom@tromey.com>
2830
2831 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2832 (reread_symbols): Move reset_psymtabs call later.
2833 * objfiles.c (objfile::objfile): Don't initialize
2834 partial_symtabs.
2835
17d66340
TT
28362021-03-20 Tom Tromey <tom@tromey.com>
2837
2838 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2839 set_partial_symtabs.
2840 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2841 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2842 parameter.
2843 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2844 parameter.
2845 (psymbol_functions::find_pc_sect_compunit_symtab)
2846 (psymbol_functions::print_stats, psymbol_functions::dump)
2847 (psymbol_functions::has_symbols): Update.
2848 (make_psymbol_functions, dump_psymtab_addrmap): Add
2849 partial_symtabs parameter.
2850 (maintenance_print_psymbols): Update.
2851 (psymbol_functions::expand_symtabs_matching): Update.
2852 * psympriv.h (struct psymbol_functions): Add constructor.
2853 <m_partial_symtabs>: New member.
2854 <set_partial_symtabs>: New method.
2855
84685904
TT
28562021-03-20 Tom Tromey <tom@tromey.com>
2857
2858 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2859 parameter.
2860 (process_psymtab_comp_unit_reader)
2861 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2862 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2863 Reference psymtabs via per_bfd.
2864
79cc99f6
TT
28652021-03-20 Tom Tromey <tom@tromey.com>
2866
2867 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2868 Remove.
2869 (add_address_entry): Remove objfile parameter.
2870 (add_address_entry_worker): Update.
2871 (write_address_map): Replace objfile parameter with per_bfd.
2872 (write_gdbindex, write_psymtabs_to_index): Update.
2873
4829711b
TT
28742021-03-20 Tom Tromey <tom@tromey.com>
2875
2876 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2877 print_bcache parameter.
2878 * symfile-debug.c (objfile::print_stats): Add print_bcache
2879 parameter.
2880 * quick-symbol.h (struct quick_symbol_functions)
2881 <print_stats>: Add print_bcache parameter.
2882 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2883 code to psymtab.c.
2884 (print_objfile_statistics): Move psymtab code to psymtab.c.
2885 * psymtab.c (count_psyms): Move from symmisc.c.
2886 (psymbol_functions::print_stats): Print partial symbol and bcache
2887 statistics. Add print_bcache parameter.
2888 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2889 (struct objfile) <print_stats>: Add print_bcache parameter.
2890 * maint.c (maintenance_print_statistics): Update.
2891
efd7398e
TT
28922021-03-20 Tom Tromey <tom@tromey.com>
2893
2894 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2895 member.
2896 * dwarf2/read.c (create_addrmap_from_index)
2897 (create_addrmap_from_aranges): Set per_bfd addrmap.
2898 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2899 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2900 per_bfd addrmap.
2901 (dwarf2_read_debug_names): Don't set partial_symtabs.
2902 (dwarf2_initialize_objfile): Likewise.
2903
51962708
TT
29042021-03-20 Tom Tromey <tom@tromey.com>
2905
2906 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2907 earlier.
2908
484b1090
TT
29092021-03-20 Tom Tromey <tom@tromey.com>
2910
2911 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2912 (~psymtab_discarder, keep): Update.
2913 <m_objfile>: Remove.
2914 <m_partial_symtabs>: New member.
2915 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2916
7e9c0476
TT
29172021-03-20 Tom Tromey <tom@tromey.com>
2918
2919 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2920 (xcoff_end_psymtab): Update.
2921 (scan_xcoff_symtab): Add partial_symtabs parameter.
2922 (xcoff_initial_scan): Update.
2923 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2924 * mdebugread.c (mdebug_build_psymtabs): Update.
2925 (parse_partial_symbols): Add partial_symtabs parameter.
2926 * dbxread.c (dbx_symfile_read): Update.
2927 (read_dbx_symtab): Add partial_symtabs parameter.
2928 (read_dbx_symtab): Update.
2929 (dbx_end_psymtab): Add partial_symtabs parameter.
2930
75336a5a
TT
29312021-03-20 Tom Tromey <tom@tromey.com>
2932
2933 * quick-symbol.h (struct quick_symbol_functions)
2934 <relocated>: New method.
2935 * psymtab.h (struct psymbol_functions) <relocated>: New
2936 method.
2937 <fill_psymbol_map>: Declare method.
2938 <m_psymbol_map>: New member.
2939 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2940 (psymbol_functions::find_compunit_symtab_by_address): Update.
2941 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2942 (struct objfile) <psymbol_map>: Remove.
2943 * objfiles.c (objfile_relocate1): Update.
2944
39298a5d
TT
29452021-03-20 Tom Tromey <tom@tromey.com>
2946
2947 * psympriv.h (struct psymbol_functions): New.
2948 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2949 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2950 (objfile::lookup_global_symbol_language): Update.
2951 * quick-symbol.h (struct quick_symbol_functions): Convert function
2952 pointers to methods. Add virtual destructor.
2953 (quick_symbol_functions_up): New typedef.
2954 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2955 (dwarf2_debug_names_functions): Don't declare.
2956 (make_psymbol_functions): Declare.
2957 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2958 (psymbol_functions::find_pc_sect_compunit_symtab)
2959 (psymbol_functions::lookup_symbol)
2960 (psymbol_functions::lookup_global_symbol_language)
2961 (psymbol_functions::find_last_source_symtab)
2962 (psymbol_functions::forget_cached_source_info)
2963 (psymbol_functions::print_stats, psymbol_functions::dump)
2964 (psymbol_functions::expand_symtabs_for_function)
2965 (psymbol_functions::expand_all_symtabs)
2966 (psymbol_functions::expand_symtabs_with_fullname)
2967 (psymbol_functions::map_symbol_filenames)
2968 (psymbol_functions::map_matching_symbols)
2969 (psymbol_functions::expand_symtabs_matching)
2970 (psymbol_functions::has_symbols)
2971 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2972 (psym_functions): Remove.
2973 (make_psymbol_functions): New function.
2974 * objfiles.h (struct objfile) <qf>: Change type.
2975 * elfread.c (elf_symfile_read): Update.
2976 * dwarf2/read.c (struct dwarf2_base_index_functions)
2977 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2978 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2979 (dwarf2_base_index_functions::find_last_source_symtab)
2980 (dwarf2_base_index_functions::forget_cached_source_info)
2981 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2982 (dwarf2_gdb_index::lookup_symbol)
2983 (dwarf2_base_index_functions::print_stats)
2984 (dwarf2_gdb_index::dump)
2985 (dwarf2_gdb_index::expand_symtabs_for_function)
2986 (dwarf2_base_index_functions::expand_all_symtabs)
2987 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2988 Rename.
2989 (dwarf2_gdb_index::map_matching_symbols): New method.
2990 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2991 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2992 (dwarf2_base_index_functions::map_symbol_filenames)
2993 (dwarf2_base_index_functions::has_symbols): Rename.
2994 (dwarf2_gdb_index_functions): Remove.
2995 (dwarf2_debug_names_index::lookup_symbol)
2996 (dwarf2_debug_names_index::dump)
2997 (dwarf2_debug_names_index::expand_symtabs_for_function)
2998 (dwarf2_debug_names_index::map_matching_symbols)
2999 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3000 (dwarf2_debug_names_functions): Remove.
3001 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3002 Declare.
3003
5c3f1e5b
TT
30042021-03-20 Tom Tromey <tom@tromey.com>
3005
3006 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3007 null.
3008 * xcoffread.c (xcoff_sym_fns): Update.
3009 * symfile.h (struct sym_fns) <qf>: Remove.
3010 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3011 * symfile-debug.c (objfile::has_partial_symbols)
3012 (objfile::find_last_source_symtab)
3013 (objfile::forget_cached_source_info)
3014 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3015 (objfile::print_stats, objfile::dump)
3016 (objfile::expand_symtabs_for_function)
3017 (objfile::expand_all_symtabs)
3018 (objfile::expand_symtabs_with_fullname)
3019 (objfile::map_matching_symbols)
3020 (objfile::expand_symtabs_matching)
3021 (objfile::find_pc_sect_compunit_symtab)
3022 (objfile::map_symbol_filenames)
3023 (objfile::find_compunit_symtab_by_address)
3024 (objfile::lookup_global_symbol_language, debug_sym_fns)
3025 (install_symfile_debug_logging): Update.
3026 * objfiles.h (struct objfile) <qf>: New member.
3027 * mipsread.c (ecoff_sym_fns): Update.
3028 * machoread.c (macho_sym_fns): Update.
3029 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3030 Don't declare.
3031 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3032 * dbxread.c (aout_sym_fns): Update.
3033 * coffread.c (coff_sym_fns): Update.
3034
9b99dcc8
TT
30352021-03-20 Tom Tromey <tom@tromey.com>
3036
3037 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3038 (expand_symtabs_file_matcher_ftype)
3039 (expand_symtabs_symbol_matcher_ftype)
3040 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3041 Move to quick-symbol.h.
3042 * quick-symbol.h: New file.
3043
4d080b46
TT
30442021-03-20 Tom Tromey <tom@tromey.com>
3045
3046 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3047 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3048 (basic_lookup_transparent_type_quick)
3049 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3050 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3051 Update.
3052 * symmisc.c (print_objfile_statistics, dump_objfile)
3053 (maintenance_expand_symtabs): Update.
3054 * symfile.c (symbol_file_add_with_addrs)
3055 (expand_symtabs_matching, map_symbol_filenames): Update.
3056 * symfile-debug.c (objfile::has_partial_symbols)
3057 (objfile::find_last_source_symtab)
3058 (objfile::forget_cached_source_info)
3059 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3060 (objfile::print_stats, objfile::dump)
3061 (objfile::expand_symtabs_for_function)
3062 (objfile::expand_all_symtabs)
3063 (objfile::expand_symtabs_with_fullname)
3064 (objfile::map_matching_symbols)
3065 (objfile::expand_symtabs_matching)
3066 (objfile::find_pc_sect_compunit_symtab)
3067 (objfile::map_symbol_filenames)
3068 (objfile::find_compunit_symtab_by_address)
3069 (objfile::lookup_global_symbol_language): New methods.
3070 (debug_sym_quick_functions): Remove.
3071 (debug_sym_fns, install_symfile_debug_logging): Update.
3072 * source.c (forget_cached_source_info_for_objfile)
3073 (select_source_symtab): Update.
3074 * objfiles.h (struct objfile): Add methods corresponding to
3075 quick_symbol_functions.
3076 * objfiles.c (objfile::has_partial_symbols): Move to
3077 symfile-debug.c.
3078 * linespec.c (iterate_over_all_matching_symtabs): Update.
3079 * cp-support.c (add_symbol_overload_list_qualified): Update.
3080 * ada-lang.c (add_nonlocal_symbols): Update.
3081
fae2120b
TT
30822021-03-20 Tom Tromey <tom@tromey.com>
3083
3084 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3085 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3086 bool.
3087 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3088 * psymtab.c (psym_has_symbols): Return bool.
3089 * objfiles.c (objfile::has_partial_symbols): Return bool.
3090 * dwarf2/read.c (dw2_has_symbols): Return bool.
3091
a8ad4f3c
TT
30922021-03-20 Tom Tromey <tom@tromey.com>
3093
3094 * symfile.c (read_symbols): Update.
3095 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3096 (objfile_has_partial_symbols): Don't declare.
3097 * objfiles.c (objfile::has_partial_symbols): Rename from
3098 objfile_has_partial_symbols.
3099 (objfile_has_symbols, have_partial_symbols): Update.
3100 * elfread.c (elf_symfile_read): Update.
3101 * dwarf2/read.c (dwarf2_has_info): Update.
3102 * coffread.c (coff_symfile_read): Update.
3103
70182375
TT
31042021-03-20 Tom Tromey <tom@tromey.com>
3105
3106 * coffread.c: Include dwarf2/public.h.
3107 * dwarf2/frame.c: Include dwarf2/public.h.
3108 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3109 * dwarf2/public.h: New file.
3110 * dwarf2/read.c: Include dwarf2/public.h.
3111 * elfread.c: Include dwarf2/public.h.
3112 * machoread.c: Include dwarf2/public.h.
3113 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3114 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3115 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3116 * xcoffread.c: Include dwarf2/public.h.
3117
18038e63
TT
31182021-03-20 Tom Tromey <tom@tromey.com>
3119
3120 * symfile.h (enum dwarf2_section_enum)
3121 (dwarf2_get_section_info): Move to dwarf2/read.h.
3122 * dwarf2/read.h (enum dwarf2_section_enum)
3123 (dwarf2_get_section_info): Move from symfile.h.
3124
219f56b4
PA
31252021-03-19 Pedro Alves <pedro@palves.net>
3126
3127 * thread.c (any_thread_of_inferior): Check if there's a selected
3128 thread before calling inferior_thread().
3129
15310fd4
TT
31302021-03-18 Tom Tromey <tromey@adacore.com>
3131
3132 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3133 get_DW_UT_name.
3134 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3135 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3136
763b8efd
AB
31372021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3138
3139 * python/py-param.c (get_set_value): Update header comment.
3140
f058c521
SM
31412021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3142
3143 * infrun.c (check_multi_target_resumption): Remove argument to
3144 all_non_exited_inferiors.
3145
383228bc
CB
31462021-03-16 Christian Biesinger <cbiesinger@google.com>
3147
3148 * windows-nat.c (windows_init_thread_list): Add message to
3149 debug log.
3150
7807d76a
AB
31512021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3152
3153 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3154 well as PyLong_Check for Python 2.
3155
675da9a5
TT
31562021-03-15 Tom Tromey <tromey@adacore.com>
3157
3158 PR build/27579:
3159 * rust-exp.y (maker_map): Use gdb::hash_enum.
3160 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3161
4800761a
SM
31622021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3163
3164 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3165 end of debug print.
3166
eb5dd737
SM
31672021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3168
3169 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3170 parameter, adjust caller.
3171
6813ceb0
TT
31722021-03-15 Tom Tromey <tromey@adacore.com>
3173
3174 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3175
3b5c4de0
TT
31762021-03-15 Tom Tromey <tromey@adacore.com>
3177
3178 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3179 ada_ensure_varsize_limit.
3180
c04da66c
TT
31812021-03-15 Tom Tromey <tromey@adacore.com>
3182
3183 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3184 fixed-point.
3185 * ada-exp.y (maybe_overload): New function.
3186 (ada_wrap_overload): New function.
3187 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3188 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3189 (or_else_exp, xor_exp, primary): Update.
3190
9863c3b5
TT
31912021-03-15 Tom Tromey <tromey@adacore.com>
3192
3193 PR ada/27545:
3194 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3195 call for tagged type.
3196
1ac74522
TT
31972021-03-15 Tom Tromey <tromey@adacore.com>
3198
3199 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3200 assignment.
3201
207582c0
TT
32022021-03-15 Tom Tromey <tromey@adacore.com>
3203
3204 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3205 container.
3206 (ada_assign_operation::evaluate): Update.
3207 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3208 Change return type.
3209
8d624a9d
FW
32102021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3211
3212 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3213
ba6a0ef3
AB
32142021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3215
3216 * python/python.c (gdbpy_source_objfile_script): Use
3217 make_scoped_restore to restore gdbpy_current_objfile.
3218 (gdbpy_execute_objfile_script): Likewise.
3219
7c290a04
TT
32202021-03-14 Tom Tromey <tom@tromey.com>
3221
3222 * dwarf2/read.c (read_attribute_value): Use cu_header
3223 consistently.
3224
0280fdcc
TT
32252021-03-14 Tom Tromey <tom@tromey.com>
3226
3227 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3228 (peek_die_abbrev): Use reader.abfd.
3229
a9f172c6
TT
32302021-03-14 Tom Tromey <tom@tromey.com>
3231
3232 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3233 m_header_read_in.
3234
7c32eebb
TT
32352021-03-13 Tom Tromey <tom@tromey.com>
3236
3237 * dwarf2/read.c (struct partial_die_info): Update.
3238 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3239 (load_partial_dies, partial_die_info::partial_die_info): Update.
3240 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3241
27012aba
TT
32422021-03-13 Tom Tromey <tom@tromey.com>
3243
3244 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3245
fece451c
CB
32462021-03-12 Christian Biesinger <cbiesinger@google.com>
3247
3248 PR threads/27239
3249 * cp-support.c: Use scoped_segv_handler_restore.
3250 * event-top.c (thread_local_segv_handler): Made static.
3251 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3252 New function.
3253 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3254 function.
3255 * event-top.h (class scoped_segv_handler_restore): New class.
3256 (thread_local_segv_handler): Removed.
3257
7056f312
TT
32582021-03-10 Tom Tromey <tromey@adacore.com>
3259
3260 * parser-defs.h (parser_state): Change completion to bool.
3261 <parse_completion>: Likewise.
3262 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3263 (ada_resolve_variable, ada_resolve_function): Update.
3264 * ada-lang.c (ada_find_operator_symbol): Change
3265 parse_completion to bool.
3266 (ada_resolve_funcall, ada_resolve_variable)
3267 (ada_resolve_function): Likewise.
3268
ccdc02ed
TT
32692021-03-09 Tom Tromey <tromey@adacore.com>
3270
3271 * eval.c (operation::evaluate_funcall): Use function formal
3272 parameter types when evaluating.
3273
fbb1aace
AB
32742021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3275
3276 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3277 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3278 and owner to m_owner.
3279
611aa09d
FW
32802021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3281
3282 * f-exp.h (eval_op_f_loc): Declare.
3283 (expr::fortran_loc_operation): New typedef.
3284 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3285 UNOP_INTRINSIC.
3286 (f77_keywords): Add LOC keyword.
3287 * f-lang.c (eval_op_f_loc): New function.
3288 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3289
eef32f59
AB
32902021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3291
3292 * f-exp.h (eval_op_f_array_shape): Declare.
3293 (fortran_array_shape_operation): New type.
3294 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3295 UNOP_INTRINSIC.
3296 (f77_keywords): Add "shape" keyword.
3297 * f-lang.c (fortran_array_shape): New function.
3298 (eval_op_f_array_shape): New function.
3299 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3300
7ba155b3
AB
33012021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3304 of this function.
3305 (expr::fortran_array_size_1arg): New type.
3306 (expr::fortran_array_size_2arg): Likewise.
3307 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3308 UNOP_OR_BINOP_INTRINSIC.
3309 (f77_keywords): Add "size" keyword.
3310 * f-lang.c (fortran_array_size): New function.
3311 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3312 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3313
e14816a8
AB
33142021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * f-exp.h (eval_op_f_rank): Declare.
3317 (expr::fortran_rank_operation): New typedef.
3318 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3319 UNOP_INTRINSIC.
3320 (f77_keywords): Add "rank" keyword.
3321 * f-lang.c (eval_op_f_rank): New function.
3322 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3323
3dd93bf8
TT
33242021-03-08 Tom Tromey <tom@tromey.com>
3325
3326 * printcmd.c (set_command): Remove null check.
3327 * value.c (init_if_undefined_command): Remove null check.
3328
9c79936b
TT
33292021-03-08 Tom Tromey <tom@tromey.com>
3330
3331 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3332 Update.
3333 * p-exp.y (variable): Update.
3334 * go-exp.y (variable): Update.
3335 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3336 Remove overload for objfile.
3337 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3338 parameter.
3339 (check_objfile): Likewise.
3340 (dump_for_expression): Likewise. Remove overload for objfile.
3341 (class var_msym_value_operation): Use bound_minimal_symbol.
3342 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3343 parameter.
3344 (var_msym_value_operation::evaluate_for_address)
3345 (var_msym_value_operation::evaluate_for_sizeof)
3346 (var_msym_value_operation::evaluate_for_cast): Update.
3347 * d-exp.y (PrimaryExpression): Update.
3348 * c-exp.y (variable): Update.
3349 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3350 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3351 Update.
3352 * ada-exp.y (write_var_or_type): Update.
3353
40d07d07
TT
33542021-03-08 Tom Tromey <tom@tromey.com>
3355
3356 * parser-defs.h (exp_uses_objfile): Return bool.
3357 * parse.c (exp_uses_objfile): Return bool.
3358
0b2b0b82
TT
33592021-03-08 Tom Tromey <tom@tromey.com>
3360
3361 * value.h (eval_skip_value): Don't declare.
3362 * opencl-lang.c (eval_opencl_assign): Update.
3363 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3364 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3365 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3366 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3367 * expop.h (typeof_operation::evaluate)
3368 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3369 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3370 (cxx_cast_operation::evaluate): Update.
3371 * eval.c (eval_skip_value): Remove.
3372 (eval_op_scope, eval_op_var_entry_value)
3373 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3374 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3375 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3376 (eval_op_binary, eval_op_subscript, eval_op_equal)
3377 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3378 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3379 (eval_op_complement, eval_op_lognot, eval_op_ind)
3380 (eval_op_memval, eval_op_preinc, eval_op_predec)
3381 (eval_op_postinc, eval_op_postdec, eval_op_type)
3382 (eval_binop_assign_modify, eval_op_objc_msgcall)
3383 (eval_multi_subscript, logical_and_operation::evaluate)
3384 (logical_or_operation::evaluate, array_operation::evaluate)
3385 (operation::evaluate_for_cast)
3386 (var_msym_value_operation::evaluate_for_cast)
3387 (var_value_operation::evaluate_for_cast): Update.
3388 * c-lang.c (c_string_operation::evaluate): Update.
3389 * c-exp.h (objc_nsstring_operation::evaluate)
3390 (objc_selector_operation::evaluate): Update.
3391 * ada-lang.c (ada_assign_operation::evaluate)
3392 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3393 (ada_atr_size): Update.
3394
96db551d
TT
33952021-03-08 Tom Tromey <tom@tromey.com>
3396
3397 * eval.c: Merge "namespace" scopes.
3398
ce284361
TT
33992021-03-08 Tom Tromey <tom@tromey.com>
3400
3401 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3402 <release>: Inline.
3403 * parse.c (expr_builder::expr_builder, expr_builder::release):
3404 Remove.
3405
b9d06571
TT
34062021-03-08 Tom Tromey <tom@tromey.com>
3407
3408 * parse.c (expression::expression, expression::~expression):
3409 Remove.
3410 * expression.h (struct expression): Inline constructor. Remove
3411 destructor.
3412
79ab486e
TT
34132021-03-08 Tom Tromey <tom@tromey.com>
3414
3415 * std-operator.def (BINOP_END): Remove.
3416 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3417 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3418 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3419 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3420 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3421 BINOP_END.
3422
48fa6f23
TT
34232021-03-08 Tom Tromey <tom@tromey.com>
3424
3425 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3426
43f542e3
TT
34272021-03-08 Tom Tromey <tom@tromey.com>
3428
3429 * std-operator.def (OP_EXTENDED0): Remove.
3430
5d9ba982
TT
34312021-03-08 Tom Tromey <tom@tromey.com>
3432
3433 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3434 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3435 Remove.
3436
d357570d
TT
34372021-03-08 Tom Tromey <tom@tromey.com>
3438
3439 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3440 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3441
0922dc84
TT
34422021-03-08 Tom Tromey <tom@tromey.com>
3443
3444 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3445 * ada-lang.c (ada_binop_minmax): Update.
3446 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3447 Use BINOP_MIN and BINOP_MAX.
3448
1eaebe02
TT
34492021-03-08 Tom Tromey <tom@tromey.com>
3450
3451 * value.h (evaluate_subexp_with_coercion): Don't declare.
3452 * parse.c (exp_descriptor_standard): Remove.
3453 (expr_builder::expr_builder, expr_builder::release): Update.
3454 (expression::expression): Remove size_t parameter.
3455 (expression::~expression): Simplify.
3456 (expression::resize): Remove.
3457 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3458 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3459 (write_exp_elt_longcst, write_exp_elt_floatcst)
3460 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3461 (write_exp_string_vector, write_exp_bitstring): Remove.
3462 * p-lang.h (class pascal_language) <opcode_print_table,
3463 op_print_tab>: Remove.
3464 * p-lang.c (pascal_language::op_print_tab): Remove.
3465 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3466 Remove.
3467 * objc-lang.c (objc_op_print_tab): Remove.
3468 (class objc_language) <opcode_print_table>: Remove.
3469 * m2-lang.h (class m2_language) <opcode_print_table,
3470 op_print_tab>: Remove.
3471 * m2-lang.c (m2_language::op_print_tab): Remove.
3472 * language.h (struct language_defn) <post_parser, expression_ops,
3473 opcode_print_table>: Remove.
3474 * language.c (language_defn::expression_ops)
3475 (auto_or_unknown_language::opcode_print_table): Remove.
3476 * go-lang.h (class go_language) <opcode_print_table,
3477 op_print_tab>: Remove.
3478 * go-lang.c (go_language::op_print_tab): Remove.
3479 * f-lang.h (class f_language) <opcode_print_table>: Remove
3480 <op_print_tab>: Remove.
3481 * f-lang.c (f_language::op_print_tab): Remove.
3482 * expression.h (union exp_element): Remove.
3483 (struct expression): Remove size_t parameter from constructor.
3484 <resize>: Remove.
3485 <first_opcode>: Update.
3486 <nelts, elts>: Remove.
3487 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3488 (evaluate_subexp_standard, print_expression, op_string)
3489 (dump_raw_expression): Don't declare.
3490 * expprint.c (print_expression, print_subexp)
3491 (print_subexp_funcall, print_subexp_standard, op_string)
3492 (dump_raw_expression, dump_subexp, dump_subexp_body)
3493 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3494 (dump_prefix_expression): Update.
3495 * eval.c (evaluate_subexp): Remove.
3496 (evaluate_expression, evaluate_type): Update.
3497 (evaluate_subexpression_type): Remove.
3498 (fetch_subexp_value): Remove "pc" parameter. Update.
3499 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3500 (evaluate_subexp_standard, evaluate_subexp_for_address)
3501 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3502 (evaluate_subexp_for_cast): Remove.
3503 (parse_and_eval_type): Update.
3504 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3505 * d-lang.c (d_op_print_tab): Remove.
3506 (class d_language) <opcode_print_table>: Remove.
3507 * c-lang.h (c_op_print_tab): Don't declare.
3508 * c-lang.c (c_op_print_tab): Remove.
3509 (class c_language, class cplus_language, class asm_language, class
3510 minimal_language) <opcode_print_table>: Remove.
3511 * breakpoint.c (update_watchpoint, watchpoint_check)
3512 (watchpoint_exp_is_const, watch_command_1): Update.
3513 * ax-gdb.h (union exp_element): Don't declare.
3514 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3515 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3516 (gen_expr_binop_rest): Remove.
3517 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3518 * ada-lang.c (ada_op_print_tab): Remove.
3519 (class ada_language) <post_parser, opcode_print_table>: Remove.
3520
f2a98603
TT
35212021-03-08 Tom Tromey <tom@tromey.com>
3522
3523 * go-lang.c (go_language::expression_ops): Don't declare.
3524 * go-lang.h (class go_language) <expression_ops>: Remove.
3525 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3526 Remove.
3527 (class opencl_language) <expression_ops>: Remove.
3528 * d-lang.c (class d_language) <expression_ops>: Remove.
3529 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3530 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3531 (class c_language, class cplus_language, class asm_language)
3532 (class minimal_language) <expression_ops>: Remove.
3533
d3c54a1c
TT
35342021-03-08 Tom Tromey <tom@tromey.com>
3535
3536 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3537 (evaluate_subexp_type, assign_aggregate)
3538 (aggregate_assign_positional, aggregate_assign_from_choices)
3539 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3540 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3541 (ada_operator_check, ada_forward_operator_length)
3542 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3543 Remove.
3544 (post_parser): Update.
3545 (class ada_language) <expresssion_ops>: Remove.
3546
5871f0a3
TT
35472021-03-08 Tom Tromey <tom@tromey.com>
3548
3549 * m2-lang.h (class m2_language) <expresssion_ops,
3550 exp_descriptor_modula2>: Remove.
3551 * m2-lang.c (evaluate_subexp_modula2)
3552 (m2_language::exp_descriptor_modula2): Remove.
3553
a99be8c1
TT
35542021-03-08 Tom Tromey <tom@tromey.com>
3555
3556 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3557 <exp_descriptor_tab>: Remove.
3558 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3559 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3560 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3561 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3562 Remove.
3563
aa1da9ed
TT
35642021-03-08 Tom Tromey <tom@tromey.com>
3565
3566 * rust-lang.h (class rust_language) <expression_ops,
3567 exp_descriptor_tab>: Remove.
3568 * rust-lang.c (rust_evaluate_funcall): Remove.
3569 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3570 EVAL_SKIP.
3571 (rust_evaluate_subexp): Remove.
3572 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3573 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3574 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3575
08a057e6
TT
35762021-03-08 Tom Tromey <tom@tromey.com>
3577
3578 * ada-exp.y: Create operations.
3579 (empty_stoken): Remove.
3580 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3581 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3582 (components): New global.
3583 (push_component, choice_component, pop_component, pop_components):
3584 New functions.
3585 (associations): New global
3586 (push_association, pop_association, pop_associations): New
3587 functions.
3588 (ada_parse): Update.
3589 (write_var_from_sym, write_int): Create operations.
3590 (write_exp_op_with_string): Remove.
3591 (write_object_renaming, write_selectors, write_ambiguous_var)
3592 (write_var_or_type, write_name_assoc): Create operations.
3593 * ada-lang.h (ada_index_type): Declare.
3594 * ada-lang.c (ada_index_type): No longer static.
3595
d308ba78
TT
35962021-03-08 Tom Tromey <tom@tromey.com>
3597
3598 * f-exp.y: Create operations.
3599 (f_language::parser): Update.
3600
f1b8ceef
TT
36012021-03-08 Tom Tromey <tom@tromey.com>
3602
3603 * m2-exp.y: Create operations.
3604 (m2_language::parser): Update.
3605
3163898e
TT
36062021-03-08 Tom Tromey <tom@tromey.com>
3607
3608 * p-exp.y: Create operations.
3609 (pascal_language::parser): Update.
3610
9412fdcc
TT
36112021-03-08 Tom Tromey <tom@tromey.com>
3612
3613 * d-exp.y: Create operations.
3614 (d_parse): Update.
3615
bb4e0574
TT
36162021-03-08 Tom Tromey <tom@tromey.com>
3617
3618 * go-exp.y: Create operations.
3619 (go_language::parser): Update.
3620
d182f279
TT
36212021-03-08 Tom Tromey <tom@tromey.com>
3622
3623 * objc-lang.c (end_msglist): Create operations.
3624 * c-exp.y: Change parser to create operations.
3625 (write_destructor_name): Remove.
3626 (c_parse): Update.
3627
c1299a23
TT
36282021-03-08 Tom Tromey <tom@tromey.com>
3629
3630 * rust-exp.y: Create operations.
3631 (rust_parser::convert_params_to_expression): Change return type.
3632 (binop_maker_ftype): New typedef.
3633 (maker_map): New global.
3634 (rust_parser::convert_ast_to_expression): Change return type.
3635 (rust_language::parser): Update.
3636 (_initialize_rust_exp): Initialize maker_map.
3637
4c5e7a93
TT
36382021-03-08 Tom Tromey <tom@tromey.com>
3639
3640 * stap-probe.c (binop_maker_ftype): New typedef.
3641 (stap_maker_map): New global.
3642 (stap_make_binop): New function.
3643 (stap_parse_register_operand): Return operation_up.
3644 (stap_parse_single_operand, stap_parse_argument_conditionally)
3645 (stap_parse_argument_1): Likewise.
3646 (stap_parse_argument): Create operations.
3647 (stap_probe::parse_arguments): Update.
3648 (_initialize_stap_probe): Initialize stap_maker_map.
3649 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3650 type.
3651 * i386-tdep.h (i386_stap_parse_special_token): Change return
3652 type.
3653 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3654 (i386_stap_parse_special_token_three_arg_disp)
3655 (i386_stap_parse_special_token): Change return type.
3656 * gdbarch.sh (stap_parse_special_token): Change return type.
3657 * gdbarch.c: Rebuild.
3658 * gdbarch.h: Rebuild.
3659 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3660 type.
3661 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3662 return type.
3663
482ddd69
TT
36642021-03-08 Tom Tromey <tom@tromey.com>
3665
3666 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3667 * gdbarch.h: Rebuild.
3668 * gdbarch.c: Rebuild.
3669 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3670 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3671 return type.
3672 (amd64_dtrace_parse_probe_argument): Update.
3673
8227d9e2
TT
36742021-03-08 Tom Tromey <tom@tromey.com>
3675
3676 * parser-defs.h (struct parser_state) <push, push_new,
3677 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3678 wrap2>: New methods.
3679 <m_operations>: New member.
3680 * parse.c (parser_state::push_c_string)
3681 (parser_state::push_symbol, parser_state::push_dollar): New
3682 methods.
3683
4933522d
TT
36842021-03-08 Tom Tromey <tom@tromey.com>
3685
3686 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3687 New member.
3688 (struct parser_state) <mark_struct_expression>: New method.
3689 * parse.c (parser_state::mark_struct_expression): Update assert.
3690 (parser_state::mark_struct_expression): New method.
3691 (parser_state::mark_completion_tag): Update assert.
3692 (parse_expression_for_completion): Handle expout_last_op.
3693
413403fc
TT
36942021-03-08 Tom Tromey <tom@tromey.com>
3695
3696 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3697 now in superclass.
3698 * value.h (fetch_subexp_value): Add "op" parameter.
3699 * value.c (init_if_undefined_command): Update.
3700 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3701 * stap-probe.c (stap_probe::compile_to_ax): Update.
3702 * printcmd.c (set_command): Update.
3703 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3704 Update.
3705 * parser-defs.h (struct expr_builder) <set_operation>: New
3706 method.
3707 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3708 * expression.h (struct expression) <first_opcode>: Update.
3709 <op>: New member.
3710 * expprint.c (dump_raw_expression, dump_prefix_expression):
3711 Update.
3712 * expop.h (class var_value_operation) <get_symbol>: New method.
3713 (class register_operation) <get_name>: New method.
3714 (class equal_operation): No longer a typedef, now a subclass.
3715 (class unop_memval_operation) <get_type>: New method.
3716 (class assign_operation) <get_lhs>: New method.
3717 (class unop_cast_operation) <get_type>: New method.
3718 * eval.c (evaluate_expression, evaluate_type)
3719 (evaluate_subexpression_type): Update.
3720 (fetch_subexp_value): Add "op" parameter.
3721 (parse_and_eval_type): Update.
3722 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3723 * breakpoint.c (update_watchpoint, watchpoint_check)
3724 (watchpoint_exp_is_const, watch_command_1): Update.
3725 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3726 Update.
3727
b0f9164c
TT
37282021-03-08 Tom Tromey <tom@tromey.com>
3729
3730 * ada-lang.c (ada_value_binop): Do not use op_string.
3731
a88c4354
TT
37322021-03-08 Tom Tromey <tom@tromey.com>
3733
3734 * expprint.c (dump_for_expression): New overload.
3735 * expop.h (check_objfile, dump_for_expression): Declare new
3736 overloads.
3737 * ada-lang.c (check_objfile): New overload.
3738 (assign_component, ada_aggregate_component::uses_objfile)
3739 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3740 (ada_aggregate_component::assign_aggregate)
3741 (ada_positional_component::uses_objfile)
3742 (ada_positional_component::dump, ada_positional_component::assign)
3743 (ada_discrete_range_association::uses_objfile)
3744 (ada_discrete_range_association::dump)
3745 (ada_discrete_range_association::assign)
3746 (ada_name_association::uses_objfile, ada_name_association::dump)
3747 (ada_name_association::assign)
3748 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3749 (ada_choices_component::assign)
3750 (ada_others_component::uses_objfile, ada_others_component::dump)
3751 (ada_others_component::assign, ada_assign_operation::evaluate):
3752 New methods.
3753 * ada-exp.h (ada_string_operation) <get_name>: New method.
3754 (class ada_assign_operation): New.
3755 (class ada_component): New.
3756 (ada_component_up): New typedef.
3757 (class ada_aggregate_operation, class ada_aggregate_component)
3758 (class ada_positional_component, class ada_others_component)
3759 (class ada_association): New.
3760 (ada_association_up): New typedef.
3761 (class ada_choices_component)
3762 (class ada_discrete_range_association)
3763 (class ada_name_association): New.
3764
d8a4ed8a
TT
37652021-03-08 Tom Tromey <tom@tromey.com>
3766
3767 * ada-lang.c (ada_var_value_operation::resolve)
3768 (ada_funcall_operation::resolve)
3769 (ada_ternop_slice_operation::resolve): New methods.
3770 * ada-exp.h (struct ada_resolvable): New.
3771 (class ada_var_value_operation): Derive from ada_resolvable.
3772 <get_block, resolve>: New methods.
3773 (class ada_funcall_operation): Derive from ada_resolvable.
3774 <resolve>: New method.
3775 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3776 <resolve>: New method.
3777
efe3af2f
TT
37782021-03-08 Tom Tromey <tom@tromey.com>
3779
3780 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3781 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3782 method.
3783 (class ada_funcall_operation): New.
3784
ebc06ad8
TT
37852021-03-08 Tom Tromey <tom@tromey.com>
3786
3787 * ada-lang.c (ada_structop_operation::evaluate): New method.
3788 * ada-exp.h (class ada_structop_operation): New.
3789
e8c33fa1
TT
37902021-03-08 Tom Tromey <tom@tromey.com>
3791
3792 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3793 * ada-exp.h (class ada_unop_ind_operation): New.
3794
065ec826
TT
37952021-03-08 Tom Tromey <tom@tromey.com>
3796
3797 * ada-lang.c (ada_binop_exp): No longer static.
3798 * ada-exp.h (ada_binop_exp_operation): New typedef.
3799
9e99f48f
TT
38002021-03-08 Tom Tromey <tom@tromey.com>
3801
3802 * ada-lang.c (ada_val_atr): No longer static.
3803 (ada_atr_val_operation::evaluate): New method.
3804 * ada-exp.h (class ada_atr_val_operation): New.
3805
7631cf6c
TT
38062021-03-08 Tom Tromey <tom@tromey.com>
3807
3808 * ada-lang.c (ada_pos_atr): No longer static.
3809 * ada-exp.h (ada_pos_operation): New typedef.
3810
7992accc
TT
38112021-03-08 Tom Tromey <tom@tromey.com>
3812
3813 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3814 parameters.
3815 (ada_evaluate_subexp): Use it.
3816
6ad3b8bf
TT
38172021-03-08 Tom Tromey <tom@tromey.com>
3818
3819 * ada-lang.c (ada_binop_minmax): No longer static.
3820 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3821 New typedefs.
3822
3f4a0053
TT
38232021-03-08 Tom Tromey <tom@tromey.com>
3824
3825 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3826 New method.
3827 * ada-exp.h (class ada_var_msym_value_operation): New.
3828
99a3b1e7
TT
38292021-03-08 Tom Tromey <tom@tromey.com>
3830
3831 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3832 (ada_var_value_operation::evaluate): New methods.
3833 * ada-exp.h (class ada_var_value_operation): New.
3834
60fa02ca
TT
38352021-03-08 Tom Tromey <tom@tromey.com>
3836
3837 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3838 * ada-exp.h (class ada_unop_atr_operation): New.
3839
82c3886e
TT
38402021-03-08 Tom Tromey <tom@tromey.com>
3841
3842 * ada-lang.c (ada_binop_in_bounds): No longer static.
3843 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3844
1b1ebfab
TT
38452021-03-08 Tom Tromey <tom@tromey.com>
3846
3847 * ada-lang.c (ada_ternop_slice): No longer static.
3848 * ada-exp.h (class ada_ternop_slice_operation): New.
3849
039e4b76
TT
38502021-03-08 Tom Tromey <tom@tromey.com>
3851
3852 * ada-exp.h (ada_bitwise_operation): New template class.
3853 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3854 (ada_bitwise_xor_operation): New typedefs.
3855
6e8fb7b7
TT
38562021-03-08 Tom Tromey <tom@tromey.com>
3857
3858 * ada-lang.c (ada_equal_binop): No longer static.
3859 * ada-exp.h (class ada_binop_equal_operation): New.
3860
d9e7db06
TT
38612021-03-08 Tom Tromey <tom@tromey.com>
3862
3863 * ada-lang.c (ada_mult_binop): No longer static.
3864 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3865 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3866
73796c73
TT
38672021-03-08 Tom Tromey <tom@tromey.com>
3868
3869 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3870 * ada-exp.h (class ada_binop_addsub_operation): New.
3871
cd9a3148
TT
38722021-03-08 Tom Tromey <tom@tromey.com>
3873
3874 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3875 (ada_resolve_variable): Declare.
3876 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3877 (ada_resolve_variable): New functions.
3878 (resolve_subexp): Update.
3879
cf12b17f
TT
38802021-03-08 Tom Tromey <tom@tromey.com>
3881
3882 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3883 method.
3884 * c-exp.h (class opencl_ternop_cond_operation): New.
3885
944fd3b8
TT
38862021-03-08 Tom Tromey <tom@tromey.com>
3887
3888 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3889 method.
3890 * c-exp.h (class opencl_logical_binop_operation): New.
3891
33b79214
TT
38922021-03-08 Tom Tromey <tom@tromey.com>
3893
3894 * opencl-lang.c (opencl_structop_operation::evaluate): New
3895 method.
3896 * c-exp.h (class opencl_structop_operation): New.
3897
2492ba36
TT
38982021-03-08 Tom Tromey <tom@tromey.com>
3899
3900 * opencl-lang.c (opencl_logical_not): No longer static. Change
3901 parameters.
3902 (evaluate_subexp_opencl): Update.
3903 * c-exp.h (opencl_notequal_operation): New typedef.
3904
a88c3c8d
TT
39052021-03-08 Tom Tromey <tom@tromey.com>
3906
3907 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3908 static. Change parameters.
3909 (eval_opencl_assign): No longer static. Add "op" parameter.
3910 (evaluate_subexp_opencl): Update.
3911 * c-exp.h (opencl_binop_operation): New template class.
3912 (opencl_assign_operation, opencl_equal_operation)
3913 (opencl_notequal_operation, opencl_less_operation)
3914 (opencl_gtr_operation, opencl_geq_operation)
3915 (opencl_leq_operation): New typedefs.
3916
e9677704
TT
39172021-03-08 Tom Tromey <tom@tromey.com>
3918
3919 * opencl-lang.c (opencl_value_cast): No longer static.
3920 * c-exp.h (opencl_cast_type_operation): New typedef.
3921
f403a4e4
TT
39222021-03-08 Tom Tromey <tom@tromey.com>
3923
3924 * f-exp.h (eval_op_f_allocated): Declare.
3925 (fortran_allocated_operation): New typedef.
3926 * f-lang.c (eval_op_f_allocated): No longer static.
3927
eb4c9271
TT
39282021-03-08 Tom Tromey <tom@tromey.com>
3929
3930 * f-lang.c (eval_op_f_associated): New functions.
3931 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3932 typedefs.
3933
58a76c72
TT
39342021-03-08 Tom Tromey <tom@tromey.com>
3935
3936 * f-lang.c (fortran_bound_1arg::evaluate)
3937 (fortran_bound_2arg::evaluate): New methods.
3938 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3939 New.
3940
2f98abe1
TT
39412021-03-08 Tom Tromey <tom@tromey.com>
3942
3943 * expop.h (class unop_addr_operation) <get_expression>: New
3944 method.
3945 * f-lang.c (fortran_undetermined::value_subarray)
3946 (fortran_undetermined::evaluate): New methods.
3947 (fortran_prepare_argument): New overload.
3948 * f-exp.h (class fortran_range_operation)
3949 (class fortran_undetermined): New classes.
3950
638fd74a
TT
39512021-03-08 Tom Tromey <tom@tromey.com>
3952
3953 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3954 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3955 method.
3956
a00b7254
TT
39572021-03-08 Tom Tromey <tom@tromey.com>
3958
3959 * expression.h (class operation) <evaluate_funcall>: New methods.
3960 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3961 (class var_value_operation) <evaluate_funcall>: New method.
3962 (class structop_base_operation) <evaluate_funcall>: New method.
3963 (class var_msym_value_operation) <evaluate_funcall>: New method.
3964 (class structop_member_base): New class.
3965 (class structop_member_operation): Derive from
3966 structop_member_base.
3967 (class structop_mptr_operation): Derive from
3968 structop_member_base.
3969 (class funcall_operation): New class.
3970 * eval.c (operation::evaluate_funcall)
3971 (var_value_operation::evaluate_funcall)
3972 (scope_operation::evaluate_funcall)
3973 (structop_member_base::evaluate_funcall)
3974 (structop_base_operation::evaluate_funcall): New methods.
3975
1c02eb30
TT
39762021-03-08 Tom Tromey <tom@tromey.com>
3977
3978 * expop.h (class array_operation): New.
3979 * eval.c (array_operation::evaluate_struct_tuple)
3980 (array_operation::evaluate): New methods.
3981
e4479080
TT
39822021-03-08 Tom Tromey <tom@tromey.com>
3983
3984 * expop.h (class adl_func_operation): New.
3985 * eval.c (adl_func_operation::evaluate): New method.
3986
95d49dfb
TT
39872021-03-08 Tom Tromey <tom@tromey.com>
3988
3989 * ada-lang.c (ada_unop_in_range): No longer static.
3990 * ada-exp.h (class ada_unop_range_operation): New.
3991
7c15d377
TT
39922021-03-08 Tom Tromey <tom@tromey.com>
3993
3994 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3995 No longer static.
3996 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3997 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3998
5019124b
TT
39992021-03-08 Tom Tromey <tom@tromey.com>
4000
4001 * expop.h (class logical_and_operation)
4002 (class logical_or_operation): New.
4003 * eval.c (logical_and_operation::evaluate)
4004 (logical_or_operation::evaluate): New methods.
4005 * ax-gdb.c (logical_and_operation::do_generate_ax)
4006 (logical_or_operation::do_generate_ax): New methods.
4007
2bc9b40c
TT
40082021-03-08 Tom Tromey <tom@tromey.com>
4009
4010 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4011 static.
4012 * m2-exp.h: New file.
4013
5947d337
TT
40142021-03-08 Tom Tromey <tom@tromey.com>
4015
4016 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4017 * rust-exp.h (class rust_aggregate_operation): New.
4018
e4407a20
TT
40192021-03-08 Tom Tromey <tom@tromey.com>
4020
4021 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4022 No longer static.
4023 * rust-exp.h (class rust_struct_anon): New.
4024 (class rust_structop): New.
4025
9db6b6dd
TT
40262021-03-08 Tom Tromey <tom@tromey.com>
4027
4028 * rust-lang.c (rust_range): No longer static.
4029 * rust-exp.h (class rust_range_operation): New.
4030
6ce1ad67
TT
40312021-03-08 Tom Tromey <tom@tromey.com>
4032
4033 * rust-lang.c (rust_subscript): No longer static.
4034 * rust-exp.h (class rust_subscript_operation): New.
4035
11dd3dce
TT
40362021-03-08 Tom Tromey <tom@tromey.com>
4037
4038 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4039 parameter.
4040 (rust_evaluate_subexp): Update.
4041 * rust-exp.h (class rust_unop_ind_operation): New.
4042
6fab4359
TT
40432021-03-08 Tom Tromey <tom@tromey.com>
4044
4045 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4046 longer static. Add "opcode" parameter.
4047 (rust_evaluate_subexp): Update.
4048 * rust-exp.h: New file.
4049
9dcd3e29
TT
40502021-03-08 Tom Tromey <tom@tromey.com>
4051
4052 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4053 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4054 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4055 (evaluate_subexp_f): Update.
4056 * f-exp.h: New file.
4057
fc715eb2
TT
40582021-03-08 Tom Tromey <tom@tromey.com>
4059
4060 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4061 * ada-exp.h (class ada_ternop_range_operation): New.
4062
cc6bd32e
TT
40632021-03-08 Tom Tromey <tom@tromey.com>
4064
4065 * ada-lang.c (ada_qual_operation::evaluate): New method.
4066 * ada-exp.h (class ada_qual_operation): New.
4067
42fecb61
TT
40682021-03-08 Tom Tromey <tom@tromey.com>
4069
4070 * ada-lang.c (ada_string_operation::evaluate): New method.
4071 * ada-exp.h (class ada_string_operation): New.
4072
03070ee9
TT
40732021-03-08 Tom Tromey <tom@tromey.com>
4074
4075 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4076 * ada-exp.h: New file.
4077
821e72d7
TT
40782021-03-08 Tom Tromey <tom@tromey.com>
4079
4080 * expop.h (class multi_subscript_operation): New.
4081 * eval.c (multi_subscript_operation::evaluate): New method.
4082
085734dd
TT
40832021-03-08 Tom Tromey <tom@tromey.com>
4084
4085 * eval.c (objc_msgcall_operation::evaluate): New method.
4086 * c-exp.h (class objc_msgcall_operation): New.
4087
e82a5afc
TT
40882021-03-08 Tom Tromey <tom@tromey.com>
4089
4090 * expop.h (class var_value_operation): New.
4091 * eval.c (var_value_operation::evaluate)
4092 (var_value_operation::evaluate_for_address)
4093 (var_value_operation::evaluate_with_coercion)
4094 (var_value_operation::evaluate_for_sizeof)
4095 (var_value_operation::evaluate_for_cast): New methods.
4096 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4097
d9ad79d8
TT
40982021-03-08 Tom Tromey <tom@tromey.com>
4099
4100 * expop.h (cxx_cast_ftype): New typedef.
4101 (cxx_cast_operation): New template.
4102 (dynamic_cast_operation, reinterpret_cast_operation): New
4103 typedefs.
4104
292382f4
TT
41052021-03-08 Tom Tromey <tom@tromey.com>
4106
4107 * expop.h (class unop_cast_type_operation): New.
4108 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4109 method.
4110
165a813a
TT
41112021-03-08 Tom Tromey <tom@tromey.com>
4112
4113 * expop.h (class unop_cast_operation): New.
4114 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4115
e5946e16
TT
41162021-03-08 Tom Tromey <tom@tromey.com>
4117
4118 * expop.h (class assign_modify_operation): New.
4119 * eval.c (eval_binop_assign_modify): No longer static.
4120 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4121
40786782
TT
41222021-03-08 Tom Tromey <tom@tromey.com>
4123
4124 * expop.h (class assign_operation): New.
4125 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4126
44b675c8
TT
41272021-03-08 Tom Tromey <tom@tromey.com>
4128
4129 * expop.h (class type_instance_operation): New.
4130 * eval.c (type_instance_operation::evaluate): New method.
4131
f6b42326
TT
41322021-03-08 Tom Tromey <tom@tromey.com>
4133
4134 * expop.h (class op_this_operation): New.
4135 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4136
cbc18219
TT
41372021-03-08 Tom Tromey <tom@tromey.com>
4138
4139 * expop.h (class unop_memval_operation)
4140 (class unop_memval_type_operation): New.
4141 * eval.c (eval_op_memval): No longer static.
4142 (unop_memval_operation::evaluate_for_address)
4143 (unop_memval_type_operation::evaluate_for_address)
4144 (unop_memval_operation::evaluate_for_sizeof)
4145 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4146 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4147 (unop_memval_type_operation::do_generate_ax): New methods.
4148
ae4bb61e
TT
41492021-03-08 Tom Tromey <tom@tromey.com>
4150
4151 * expop.h (class unop_alignof_operation): New.
4152 * eval.c (eval_op_alignof): No longer static.
4153
85d23bda
TT
41542021-03-08 Tom Tromey <tom@tromey.com>
4155
4156 * expop.h (class unop_sizeof_operation): New.
4157 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4158
14aff815
TT
41592021-03-08 Tom Tromey <tom@tromey.com>
4160
4161 * expop.h (class unop_addr_operation): New.
4162 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4163
929f3aa7
TT
41642021-03-08 Tom Tromey <tom@tromey.com>
4165
4166 * expop.h (class typeid_operation): New.
4167
0af8829e
TT
41682021-03-08 Tom Tromey <tom@tromey.com>
4169
4170 * expop.h (class decltype_operation): New.
4171
4efc574c
TT
41722021-03-08 Tom Tromey <tom@tromey.com>
4173
4174 * expop.h (class typeof_operation): New.
4175
5b5f5140
TT
41762021-03-08 Tom Tromey <tom@tromey.com>
4177
4178 * expop.h (class type_operation): New.
4179 * eval.c (eval_op_type): No longer static.
4180
876469ff
TT
41812021-03-08 Tom Tromey <tom@tromey.com>
4182
4183 * expop.h (class unop_ind_base_operation)
4184 (class unop_ind_operation): New.
4185 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4186 (unop_ind_base_operation::evaluate_for_address)
4187 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4188 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4189
6d89e296
TT
41902021-03-08 Tom Tromey <tom@tromey.com>
4191
4192 * expop.h (unop_incr_operation): New template.
4193 (preinc_operation, predec_operation, postinc_operation)
4194 (postdec_operation): New typedefs.
4195 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4196 (eval_op_postdec): No longer static.
4197
9307d17b
TT
41982021-03-08 Tom Tromey <tom@tromey.com>
4199
4200 * expop.h (unary_ftype): New typedef.
4201 (unop_operation, usual_ax_binop_operation): New templates.
4202 (unary_plus_operation, unary_neg_operation)
4203 (unary_complement_operation, unary_logical_not_operation): New
4204 typedefs.
4205 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4206 (eval_op_lognot): No longer static.
4207 * ax-gdb.c (gen_expr_unop): New function.
4208
ae64ba58
TT
42092021-03-08 Tom Tromey <tom@tromey.com>
4210
4211 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4212
d4eff4c1
TT
42132021-03-08 Tom Tromey <tom@tromey.com>
4214
4215 * expop.h (class repeat_operation): New.
4216 * eval.c (eval_op_repeat): No longer static. Remove "op"
4217 parameter.
4218 (evaluate_subexp_standard): Update.
4219 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4220
46916f2b
TT
42212021-03-08 Tom Tromey <tom@tromey.com>
4222
4223 * expop.h (class comparison_operation): New.
4224 (equal_operation, notequal_operation, less_operation)
4225 (gtr_operation, geq_operation, leq_operation): New typedefs.
4226 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4227 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4228
224d6424
TT
42292021-03-08 Tom Tromey <tom@tromey.com>
4230
4231 * expop.h (class subscript_operation): New.
4232 * eval.c (eval_op_subscript): No longer static.
4233
373907ff
TT
42342021-03-08 Tom Tromey <tom@tromey.com>
4235
4236 * expop.h (class binop_operation, class usual_ax_binop_operation):
4237 New.
4238 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4239 (div_operation, rem_operation, lsh_operation, rsh_operation)
4240 (bitwise_and_operation, bitwise_ior_operation)
4241 (bitwise_xor_operation): New typedefs.
4242 * eval.c (eval_op_binary): No longer static.
4243
5133d78b
TT
42442021-03-08 Tom Tromey <tom@tromey.com>
4245
4246 * expop.h (class sub_operation): New.
4247 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4248 (evaluate_subexp_standard): Update.
4249
a94323b6
TT
42502021-03-08 Tom Tromey <tom@tromey.com>
4251
4252 * expop.h (class add_operation): New.
4253 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4254 (evaluate_subexp_standard): Update.
4255
e51e26a0
TT
42562021-03-08 Tom Tromey <tom@tromey.com>
4257
4258 * expop.h (class concat_operation): New.
4259 * eval.c (eval_op_concat): No longer static. Remove "op"
4260 parameter.
4261 (evaluate_subexp_standard): Update.
4262
07f724a8
TT
42632021-03-08 Tom Tromey <tom@tromey.com>
4264
4265 * expop.h (class structop_member_operation)
4266 (class structop_mptr_operation): New.
4267 * eval.c (eval_op_member): No longer static.
4268
ab0609be
TT
42692021-03-08 Tom Tromey <tom@tromey.com>
4270
4271 * expop.h (class structop_ptr_operation): New.
4272 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4273 parameter.
4274
808b22cf
TT
42752021-03-08 Tom Tromey <tom@tromey.com>
4276
4277 * expop.h (class structop_base_operation)
4278 (class structop_operation): New.
4279 * eval.c (eval_op_structop_struct): No longer static.
4280
8cfd3e95
TT
42812021-03-08 Tom Tromey <tom@tromey.com>
4282
4283 * expop.h (class complex_operation): New.
4284
09db3700
TT
42852021-03-08 Tom Tromey <tom@tromey.com>
4286
4287 * eval.c (eval_op_objc_selector): No longer static.
4288 * c-exp.h (class objc_selector_operation): New.
4289
06dc61b9
TT
42902021-03-08 Tom Tromey <tom@tromey.com>
4291
4292 * eval.c: Include c-exp.h.
4293 * c-exp.h (class objc_nsstring_operation): New.
4294
72d0a711
TT
42952021-03-08 Tom Tromey <tom@tromey.com>
4296
4297 * c-lang.c (c_string_operation::evaluate): New method.
4298 * c-exp.h: New file.
4299
9186293f
TT
43002021-03-08 Tom Tromey <tom@tromey.com>
4301
4302 * expop.h (class ternop_cond_operation): New.
4303 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4304
1594e0bb
TT
43052021-03-08 Tom Tromey <tom@tromey.com>
4306
4307 * expop.h (class ternop_slice_operation): New.
4308 * eval.c (eval_op_ternop): No longer static.
4309
b50db09f
TT
43102021-03-08 Tom Tromey <tom@tromey.com>
4311
4312 * expop.h (class string_operation): New.
4313 * eval.c (eval_op_string): No longer static.
4314
e6e01e16
TT
43152021-03-08 Tom Tromey <tom@tromey.com>
4316
4317 * expop.h (class internalvar_operation): New.
4318 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4319
e6985c5e
TT
43202021-03-08 Tom Tromey <tom@tromey.com>
4321
4322 * expop.h (class bool_operation): New.
4323
55bdbff8
TT
43242021-03-08 Tom Tromey <tom@tromey.com>
4325
4326 * expop.h (class register_operation): New.
4327 * eval.c (eval_op_register): No longer static.
4328 * ax-gdb.c (register_operation::do_generate_ax): New method.
4329
247d935b
TT
43302021-03-08 Tom Tromey <tom@tromey.com>
4331
4332 * expop.h (class last_operation): New.
4333
17679395
TT
43342021-03-08 Tom Tromey <tom@tromey.com>
4335
4336 * expop.h (class func_static_var_operation): New.
4337 * eval.c (eval_op_func_static_var): No longer static.
4338
b5cc3923
TT
43392021-03-08 Tom Tromey <tom@tromey.com>
4340
4341 * expop.h (class var_entry_value_operation): New.
4342 * eval.c (eval_op_var_entry_value): No longer static.
4343
0c8effa3
TT
43442021-03-08 Tom Tromey <tom@tromey.com>
4345
4346 * expression.h (class operation) <set_outermost>: New method.
4347 * expop.h (class var_msym_value_operation): New.
4348 * eval.c (eval_op_var_msym_value): No longer static.
4349 (var_msym_value_operation::evaluate_for_address)
4350 (var_msym_value_operation::evaluate_for_sizeof)
4351 (var_msym_value_operation::evaluate_for_cast): New methods.
4352 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4353 method.
4354
d336c29e
TT
43552021-03-08 Tom Tromey <tom@tromey.com>
4356
4357 * expop.h (class long_const_operation): New.
4358 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4359
d5ab122c
TT
43602021-03-08 Tom Tromey <tom@tromey.com>
4361
4362 * expop.h (class scope_operation): New.
4363 * eval.c (eval_op_scope): No longer static.
4364 (scope_operation::evaluate_for_address): New method.
4365 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4366
cae26a0c
TT
43672021-03-08 Tom Tromey <tom@tromey.com>
4368
4369 * expprint.c (float_const_operation::dump): New method.
4370 * expop.h (float_data): New typedef.
4371 (class float_const_operation): New.
4372
75f9892d
TT
43732021-03-08 Tom Tromey <tom@tromey.com>
4374
4375 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4376 * ax-gdb.c (gen_expr_binop): New function.
4377 (gen_expr_structop): Likewise.
4378
de401988
TT
43792021-03-08 Tom Tromey <tom@tromey.com>
4380
4381 * expprint.c (expr::dump_for_expression): New functions.
4382 * expop.h (dump_for_expression): New overloads.
4383 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4384 Update.
4385
e2803273
TT
43862021-03-08 Tom Tromey <tom@tromey.com>
4387
4388 * expression.h (expr::operation): New class.
4389 (expr::make_operation): New function.
4390 (expr::operation_up): New typedef.
4391 * expop.h: New file.
4392 * eval.c (operation::evaluate_for_cast)
4393 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4394 New methods.
4395 * ax-gdb.c (operation::generate_ax): New method.
4396
e18c58f2
TT
43972021-03-08 Tom Tromey <tom@tromey.com>
4398
4399 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4400 (gen_expr_binop_rest): New overload.
4401
c0d7ed8c
TT
44022021-03-08 Tom Tromey <tom@tromey.com>
4403
4404 * eval.c (eval_multi_subscript): New function.
4405 (evaluate_subexp_standard): Use it.
4406
dd5fd283
TT
44072021-03-08 Tom Tromey <tom@tromey.com>
4408
4409 * ada-lang.c (ada_binop_exp): New function.
4410 (ada_evaluate_subexp): Use it.
4411
3848abd6
TT
44122021-03-08 Tom Tromey <tom@tromey.com>
4413
4414 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4415 parameters.
4416 (ada_evaluate_subexp): Use it.
4417
38dc70cf
TT
44182021-03-08 Tom Tromey <tom@tromey.com>
4419
4420 * ada-lang.c (ada_binop_minmax): New function.
4421 (ada_evaluate_subexp): Use it.
4422
b84564fc
TT
44232021-03-08 Tom Tromey <tom@tromey.com>
4424
4425 * ada-lang.c (ada_unop_atr): New function.
4426 (ada_evaluate_subexp): Use it.
4427
b467efaa
TT
44282021-03-08 Tom Tromey <tom@tromey.com>
4429
4430 * ada-lang.c (ada_binop_in_bounds): New function.
4431 (ada_evaluate_subexp): Use it.
4432
5ce19db8
TT
44332021-03-08 Tom Tromey <tom@tromey.com>
4434
4435 * ada-lang.c (ada_ternop_slice): New function.
4436 (ada_evaluate_subexp): Use it.
4437
214b13ac
TT
44382021-03-08 Tom Tromey <tom@tromey.com>
4439
4440 * ada-lang.c (ada_equal_binop): New function.
4441 (ada_evaluate_subexp): Use it.
4442
faa1dfd7
TT
44432021-03-08 Tom Tromey <tom@tromey.com>
4444
4445 * ada-lang.c (ada_mult_binop): New function.
4446 (ada_evaluate_subexp): Use it.
4447
d05e24e6
TT
44482021-03-08 Tom Tromey <tom@tromey.com>
4449
4450 * ada-lang.c (ada_abs): New function.
4451 (ada_evaluate_subexp): Use it.
4452
68c75735
TT
44532021-03-08 Tom Tromey <tom@tromey.com>
4454
4455 * ada-lang.c (ada_atr_size): New function.
4456 (ada_evaluate_subexp): Use it.
4457
020dbabe
TT
44582021-03-08 Tom Tromey <tom@tromey.com>
4459
4460 * ada-lang.c (ada_atr_tag): New function.
4461 (ada_evaluate_subexp): Use it.
4462
7efc87ff
TT
44632021-03-08 Tom Tromey <tom@tromey.com>
4464
4465 * ada-lang.c (ada_unop_in_range): New function.
4466 (ada_evaluate_subexp): Use it.
4467
82390ab8
TT
44682021-03-08 Tom Tromey <tom@tromey.com>
4469
4470 * ada-lang.c (ada_unop_neg): New function.
4471 (ada_evaluate_subexp): Use it.
4472
62d4bd94
TT
44732021-03-08 Tom Tromey <tom@tromey.com>
4474
4475 * ada-lang.c (eval_ternop_in_range): New function.
4476 (ada_evaluate_subexp): Use it.
4477
3634f669
TT
44782021-03-08 Tom Tromey <tom@tromey.com>
4479
4480 * opencl-lang.c (eval_opencl_assign): New function.
4481 (evaluate_subexp_opencl): Use it.
4482
5e80600e
TT
44832021-03-08 Tom Tromey <tom@tromey.com>
4484
4485 * eval.c (eval_op_objc_msgcall): New function.
4486 (evaluate_subexp_standard): Use it.
4487
fb5ba2ab
TT
44882021-03-08 Tom Tromey <tom@tromey.com>
4489
4490 * eval.c (eval_binop_assign_modify): New function.
4491 (evaluate_subexp_standard): Use it.
4492
a49881f7
TT
44932021-03-08 Tom Tromey <tom@tromey.com>
4494
4495 * m2-lang.c (eval_op_m2_subscript): New function.
4496 (evaluate_subexp_modula2): Use it.
4497
41bdced5
TT
44982021-03-08 Tom Tromey <tom@tromey.com>
4499
4500 * m2-lang.c (eval_op_m2_high): New function.
4501 (evaluate_subexp_modula2): Use it.
4502
13ea014a
TT
45032021-03-08 Tom Tromey <tom@tromey.com>
4504
4505 * eval.c (evaluate_subexp_for_address_base): New function.
4506 (evaluate_subexp_for_address): Use it.
4507 (evaluate_subexp_for_sizeof_base): New function.
4508 (evaluate_subexp_for_sizeof): Use it.
4509
1fa41fc7
TT
45102021-03-08 Tom Tromey <tom@tromey.com>
4511
4512 * rust-lang.c (eval_op_rust_structop): New function.
4513 (rust_evaluate_subexp): Use it.
4514
575cae23
TT
45152021-03-08 Tom Tromey <tom@tromey.com>
4516
4517 * rust-lang.c (eval_op_rust_struct_anon): New function.
4518 (rust_evaluate_subexp): Use it.
4519
05104233
TT
45202021-03-08 Tom Tromey <tom@tromey.com>
4521
4522 * rust-lang.c (eval_op_rust_array): New function.
4523 (rust_evaluate_subexp): Use it.
4524
6fa9831f
TT
45252021-03-08 Tom Tromey <tom@tromey.com>
4526
4527 * rust-lang.c (eval_op_rust_complement): New function.
4528 (rust_evaluate_subexp): Use it.
4529
d123f9e4
TT
45302021-03-08 Tom Tromey <tom@tromey.com>
4531
4532 * rust-lang.c (eval_op_rust_ind): New function.
4533 (rust_evaluate_subexp): Use it.
4534
984af2cb
TT
45352021-03-08 Tom Tromey <tom@tromey.com>
4536
4537 * rust-lang.c (rust_subscript): Change parameters.
4538 (rust_evaluate_subexp): Update.
4539
d148f803
TT
45402021-03-08 Tom Tromey <tom@tromey.com>
4541
4542 * rust-lang.c (rust_range): Change parameters.
4543 (rust_evaluate_subexp): Update.
4544
9cbd1c20
TT
45452021-03-08 Tom Tromey <tom@tromey.com>
4546
4547 * f-lang.c (eval_op_f_allocated): New function.
4548 (evaluate_subexp_f): Use it.
4549
3c18c49c
TT
45502021-03-08 Tom Tromey <tom@tromey.com>
4551
4552 * f-lang.c (fortran_require_array): New function.
4553 (evaluate_subexp_f): Use it.
4554
216f6fcb
TT
45552021-03-08 Tom Tromey <tom@tromey.com>
4556
4557 * f-lang.c (eval_op_f_kind): New function.
4558 (evaluate_subexp_f): Use it.
4559
00f2db6f
TT
45602021-03-08 Tom Tromey <tom@tromey.com>
4561
4562 * f-lang.c (eval_op_f_cmplx): New function.
4563 (evaluate_subexp_f): Use it.
4564
93b2b5fa
TT
45652021-03-08 Tom Tromey <tom@tromey.com>
4566
4567 * f-lang.c (eval_op_f_modulo): New function.
4568 (evaluate_subexp_f): Use it.
4569
9f1a1f3c
TT
45702021-03-08 Tom Tromey <tom@tromey.com>
4571
4572 * f-lang.c (eval_op_f_floor): New function.
4573 (evaluate_subexp_f): Use it.
4574
3dc41f3c
TT
45752021-03-08 Tom Tromey <tom@tromey.com>
4576
4577 * f-lang.c (eval_op_f_ceil): New function.
4578 (evaluate_subexp_f): Use it.
4579
e08109f2
TT
45802021-03-08 Tom Tromey <tom@tromey.com>
4581
4582 * f-lang.c (eval_op_f_mod): New function.
4583 (evaluate_subexp_f): Use it.
4584
cc05c68e
TT
45852021-03-08 Tom Tromey <tom@tromey.com>
4586
4587 * f-lang.c (eval_op_f_abs): New function.
4588 (evaluate_subexp_f): Use it.
4589
aec95807
TT
45902021-03-08 Tom Tromey <tom@tromey.com>
4591
4592 * eval.c (eval_op_type): New function.
4593 (evaluate_subexp_standard): Use it.
4594
a220ead5
TT
45952021-03-08 Tom Tromey <tom@tromey.com>
4596
4597 * eval.c (eval_op_postdec): New function.
4598 (evaluate_subexp_standard): Use it.
4599
abffe116
TT
46002021-03-08 Tom Tromey <tom@tromey.com>
4601
4602 * eval.c (eval_op_postinc): New function.
4603 (evaluate_subexp_standard): Use it.
4604
9e1361b7
TT
46052021-03-08 Tom Tromey <tom@tromey.com>
4606
4607 * eval.c (eval_op_predec): New file.
4608 (evaluate_subexp_standard): Use it.
4609
00f50884
TT
46102021-03-08 Tom Tromey <tom@tromey.com>
4611
4612 * eval.c (eval_op_preinc): New function.
4613 (evaluate_subexp_standard): Use it.
4614
3aef2a07
TT
46152021-03-08 Tom Tromey <tom@tromey.com>
4616
4617 * eval.c (eval_op_memval): New function.
4618 (evaluate_subexp_standard): Use it.
4619
acee9468
TT
46202021-03-08 Tom Tromey <tom@tromey.com>
4621
4622 * eval.c (eval_op_alignof): New function.
4623 (evaluate_subexp_standard): Use it.
4624
786f70ee
TT
46252021-03-08 Tom Tromey <tom@tromey.com>
4626
4627 * eval.c (eval_op_ind): New function.
4628 (evaluate_subexp_standard): Use it.
4629
24338fb9
TT
46302021-03-08 Tom Tromey <tom@tromey.com>
4631
4632 * eval.c (eval_op_lognot): New function.
4633 (evaluate_subexp_standard): Use it.
4634
1f09ec81
TT
46352021-03-08 Tom Tromey <tom@tromey.com>
4636
4637 * eval.c (eval_op_complement): New function.
4638 (evaluate_subexp_standard): Use it.
4639
606d105f
TT
46402021-03-08 Tom Tromey <tom@tromey.com>
4641
4642 * eval.c (eval_op_neg): New function.
4643 (evaluate_subexp_standard): Use it.
4644
39f288be
TT
46452021-03-08 Tom Tromey <tom@tromey.com>
4646
4647 * eval.c (eval_op_plus): New function.
4648 (evaluate_subexp_standard): Use it.
4649
eed70b1c
TT
46502021-03-08 Tom Tromey <tom@tromey.com>
4651
4652 * eval.c (eval_op_repeat): New function.
4653 (evaluate_subexp_standard): Use it.
4654
60cdd487
TT
46552021-03-08 Tom Tromey <tom@tromey.com>
4656
4657 * eval.c (eval_op_leq): New function.
4658 (evaluate_subexp_standard): Use it.
4659
96e3efd9
TT
46602021-03-08 Tom Tromey <tom@tromey.com>
4661
4662 * eval.c (eval_op_geq): New function.
4663 (evaluate_subexp_standard): Use it.
4664
1f78d732
TT
46652021-03-08 Tom Tromey <tom@tromey.com>
4666
4667 * eval.c (eval_op_gtr): New function.
4668 (evaluate_subexp_standard): Use it.
4669
6cad1349
TT
46702021-03-08 Tom Tromey <tom@tromey.com>
4671
4672 * eval.c (eval_op_less): New function.
4673 (evaluate_subexp_standard): Use it.
4674
1fcb3559
TT
46752021-03-08 Tom Tromey <tom@tromey.com>
4676
4677 * eval.c (eval_op_notequal): New function.
4678 (evaluate_subexp_standard): Use it.
4679
0cc96de8
TT
46802021-03-08 Tom Tromey <tom@tromey.com>
4681
4682 * eval.c (eval_op_equal): New function.
4683 (evaluate_subexp_standard): Use it.
4684
288d26bc
TT
46852021-03-08 Tom Tromey <tom@tromey.com>
4686
4687 * eval.c (eval_op_subscript): New function.
4688 (evaluate_subexp_standard): Use it.
4689
7cdcdd02
TT
46902021-03-08 Tom Tromey <tom@tromey.com>
4691
4692 * eval.c (eval_op_binary): New function.
4693 (evaluate_subexp_standard): Use it.
4694
d9790e22
TT
46952021-03-08 Tom Tromey <tom@tromey.com>
4696
4697 * eval.c (eval_op_sub): New function.
4698 (evaluate_subexp_standard): Use it.
4699
aedaf9ac
TT
47002021-03-08 Tom Tromey <tom@tromey.com>
4701
4702 * eval.c (eval_op_add): New function.
4703 (evaluate_subexp_standard): Use it.
4704
b7a96ed2
TT
47052021-03-08 Tom Tromey <tom@tromey.com>
4706
4707 * eval.c (eval_op_member): New function.
4708 (evaluate_subexp_standard): Use it.
4709
fb461aa3
TT
47102021-03-08 Tom Tromey <tom@tromey.com>
4711
4712 * eval.c (eval_op_structop_ptr): New function.
4713 (evaluate_subexp_standard): Use it.
4714
3e96c4fc
TT
47152021-03-08 Tom Tromey <tom@tromey.com>
4716
4717 * eval.c (eval_op_structop_struct): New function.
4718 (evaluate_subexp_standard): Use it.
4719
f960a617
TT
47202021-03-08 Tom Tromey <tom@tromey.com>
4721
4722 * eval.c (eval_op_ternop): New function.
4723 (evaluate_subexp_standard): Use it.
4724
5c2f201e
TT
47252021-03-08 Tom Tromey <tom@tromey.com>
4726
4727 * eval.c (eval_op_concat): New function.
4728 (evaluate_subexp_standard): Use it.
4729
f871bae1
TT
47302021-03-08 Tom Tromey <tom@tromey.com>
4731
4732 * eval.c (eval_op_objc_selector): New function.
4733 (evaluate_subexp_standard): Use it.
4734
14a1c64a
TT
47352021-03-08 Tom Tromey <tom@tromey.com>
4736
4737 * eval.c (eval_op_string): New function.
4738 (evaluate_subexp_standard): Use it.
4739
ffff730b
TT
47402021-03-08 Tom Tromey <tom@tromey.com>
4741
4742 * eval.c (eval_op_register): New function.
4743 (evaluate_subexp_standard): Use it.
4744
9b1d8af6
TT
47452021-03-08 Tom Tromey <tom@tromey.com>
4746
4747 * eval.c (eval_op_func_static_var): New function.
4748 (evaluate_subexp_standard): Use it.
4749
c0df9289
TT
47502021-03-08 Tom Tromey <tom@tromey.com>
4751
4752 * eval.c (eval_op_var_msym_value): New function.
4753 (evaluate_subexp_standard): Use it.
4754
50b98adc
TT
47552021-03-08 Tom Tromey <tom@tromey.com>
4756
4757 * eval.c (eval_op_var_entry_value): New function.
4758 (evaluate_subexp_standard): Use it.
4759
ea2d29f7
TT
47602021-03-08 Tom Tromey <tom@tromey.com>
4761
4762 * eval.c (eval_op_scope): New function.
4763 (evaluate_subexp_standard): Use it.
4764
01573d73
TT
47652021-03-06 Chernov Sergey <klen_s@mail.ru>
4766
4767 PR gdb/27528:
4768 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4769
9938d15a
TT
47702021-03-06 Tom Tromey <tom@tromey.com>
4771
4772 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4773 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4774 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4775 (locate_dwz_sections, dwz_search_other_debugdirs)
4776 (dwarf2_get_dwz_file): Move to dwz.c.
4777 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4778 read.h.
4779 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4780 (dwarf2_get_dwz_file): Move from read.c.
4781
18035655
TT
47822021-03-06 Tom Tromey <tom@tromey.com>
4783
4784 * debuginfod-support.h: Include scoped_fd.h.
4785
a7308ce0
TT
47862021-03-06 Tom Tromey <tom@tromey.com>
4787
4788 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4789 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4790 (get_abbrev_section_for_cu, read_attribute_value)
4791 (get_debug_line_section): Update.
4792 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4793
fbedd546
TT
47942021-03-06 Tom Tromey <tom@tromey.com>
4795
4796 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4797 method.
4798 * dwarf2/read.c (section_is_p): Remove.
4799 (dwarf2_per_bfd::locate_sections)
4800 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4801 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4802 (dwarf2_locate_common_dwp_sections)
4803 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4804 Update.
4805
c2a62a3d
TT
48062021-03-06 Tom Tromey <tom@tromey.com>
4807
4808 * xcoffread.c: Include sect-names.h.
4809 * symfile.h (struct dwarf2_section_names, struct
4810 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4811 * dwarf2/sect-names.h: New file, from symfile.h.
4812 * dwarf2/read.c: Include sect-names.h.
4813
4444f407
TT
48142021-03-06 Tom Tromey <tom@tromey.com>
4815
4816 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4817 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4818 (abbrev_table::read): Update.
4819 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4820 (struct abbrev_info): Reformat.
4821 <attrs>: Now an array.
4822 (struct abbrev_table) <alloc_abbrev>: Remove.
4823
dd99cf0c
WP
48242021-03-06 Weimin Pan <weimin.pan@oracle.com>
4825
4826 * ctfread.c (ctf_psymtab_add_enums): New function.
4827 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4828
844be3f2
WP
48292021-03-06 Weimin Pan <weimin.pan@oracle.com>
4830
4831 * ctfread.c (read_func_kind_type): Set up function arguments.
4832
b2668f28
AB
48332021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4834 Andrew Burgess <andrew.burgess@embecosm.com>
4835
4836 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4837 includes.
4838 (riscv_csrset): New static global.
4839 (riscv_update_csrmap): New function.
4840 (riscv_iterate_over_regset_sections): Process CSRs.
4841
d782d24b
AB
48422021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4843
4844 * riscv-tdep.c (riscv_feature_name_csr): Define.
4845 (riscv_feature_name_cpu): Define.
4846 (riscv_feature_name_fpu): Define.
4847 (riscv_feature_name_virtual): Define.
4848 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4849 (riscv_freg_feature): Use riscv_feature_name_fpu.
4850 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4851 (riscv_csr_feature): Use riscv_feature_name_csr.
4852 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4853
fb8f3fc0
AB
48542021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4855 Craig Blackmore <craig.blackmore@embecosm.com>
4856
4857 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4858 (ALLDEPFILES): Add riscv-none-tdep.c.
4859 * configure: Regenerate.
4860 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4861 support.
4862 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4863 * elf-none-tdep.c: New file.
4864 * elf-none-tdep.h: New file.
4865 * riscv-none-tdep.c: New file.
4866
95ce627a
AB
48672021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4868 Andrew Burgess <andrew.burgess@embecosm.com>
4869
4870 * corelow.c: Add 'xml-tdesc.h' include.
4871 (core_target::read_description): Load the target description from
4872 the core file when possible.
4873 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4874 note.
4875 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4876 (gcore_elf_make_tdesc_note): New function.
4877 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4878 * linux-tdep.c (linux_make_corefile_notes): Add target description
4879 note.
4880
f3a5df7b
AB
48812021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4882
4883 * Makefile.in (SFILES): Add gcore-elf.c.
4884 (HFILES_NO_SRCDIR): Add gcore-elf.h
4885 * configure: Regenerate.
4886 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4887 support.
4888 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4889 (struct fbsd_collect_regset_section_cb_data): Delete.
4890 (fbsd_collect_regset_section_cb): Delete.
4891 (fbsd_collect_thread_registers): Delete.
4892 (struct fbsd_corefile_thread_data): Delete.
4893 (fbsd_corefile_thread): Delete.
4894 (fbsd_make_corefile_notes): Call
4895 gcore_elf_build_thread_register_notes instead of the now deleted
4896 FreeBSD code.
4897 * gcore-elf.c: New file, the content was moved here from
4898 linux-tdep.c, functions were renamed and given minor cleanup.
4899 * gcore-elf.h: New file.
4900 * gcore.c (gcore_find_signalled_thread): Moved here from
4901 linux-tdep.c and given a new name. Minor cleanups.
4902 * gcore.h (gcore_find_signalled_thread): Declare.
4903 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4904 (struct linux_collect_regset_section_cb_data): Delete.
4905 (linux_collect_regset_section_cb): Delete.
4906 (linux_collect_thread_registers): Delete.
4907 (linux_corefile_thread): Call
4908 gcore_elf_build_thread_register_notes.
4909 (find_signalled_thread): Delete.
4910 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4911
d1e93af6
SM
49122021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4913
4914 PR gdb/27147
4915 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4916 process_stratum_target parameter,
4917 sparc_store_inferior_registers): update callers.
4918 * sparc-nat.c (sparc_fetch_inferior_registers,
4919 sparc_store_inferior_registers): Add process_stratum_target
4920 parameter. Switch current thread before calling
4921 sparc_supply_gregset / sparc_collect_rwindow.
4922 (sparc_store_inferior_registers): Likewise.
4923 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4924 (sparc32obsd_collect_uthread): Likewise.
4925 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4926 Add assertion.
4927 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4928 sparc64obsd_supply_uthread): Add assertion.
4929
1178743e
TT
49302021-03-04 Tom Tromey <tromey@adacore.com>
4931
4932 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4933 (aux_add_nonlocal_symbols): Update.
4934 (ada_add_block_symbols): Change "found_sym" to bool.
4935
1bfa81ac
TT
49362021-03-03 Tom Tromey <tromey@adacore.com>
4937
4938 * ada-lang.c (ada_resolve_function): Update comment.
4939 (is_nonfunction, add_symbols_from_enclosing_procs)
4940 (remove_extra_symbols): Likewise.
4941 (struct match_data): Add constructor, initializers.
4942 (add_nonlocal_symbols): Remove memset.
4943 (aux_add_nonlocal_symbols): Update comment.
4944 (ada_add_block_renamings, add_nonlocal_symbols)
4945 (ada_add_all_symbols): Likewise.
4946 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4947
bbcdf9ab
TT
49482021-03-02 Tom Tromey <tromey@adacore.com>
4949
4950 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4951 (cast_to_gnat_encoded_fixed_point_type): Remove.
4952 (ada_value_cast, ada_evaluate_subexp): Update.
4953 (gnat_encoded_fixed_point_type_info)
4954 (ada_is_gnat_encoded_fixed_point_type)
4955 (gnat_encoded_fixed_point_delta)
4956 (gnat_encoded_fixed_point_scaling_factor): Remove.
4957 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4958 (gnat_encoded_fixed_point_delta)
4959 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4960 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4961 (ada_print_type): Update.
4962 * ada-valprint.c (ada_value_print_num): Update.
4963 * dwarf2/read.c (ada_get_gnat_encoded_number)
4964 (ada_get_gnat_encoded_ratio): New functions.
4965 (finish_fixed_point_type): Use them. Add parameters.
4966 (GNAT_FIXED_POINT_SUFFIX): New define.
4967 (gnat_encoded_fixed_point_type_info): New function.
4968 (read_base_type): Handle gnat encodings.
4969
5f9febe0
TT
49702021-03-02 Tom Tromey <tromey@adacore.com>
4971
4972 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4973 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4974 std::string.
4975 (GROW_VECT): Remove.
4976 (grow_vect): Remove.
4977
d1183b06
TT
49782021-03-02 Tom Tromey <tromey@adacore.com>
4979
4980 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4981 * ada-lang.c (resolve_subexp): Update.
4982 (ada_resolve_function): Accept a vector.
4983 (is_nonfunction, add_defn_to_vec)
4984 (add_symbols_from_enclosing_procs): Likewise.
4985 (num_defns_collected, defns_collected): Remove.
4986 (remove_extra_symbols): Return a vector.
4987 (remove_irrelevant_renamings): Return void.
4988 (ada_add_local_symbols): Accept a vector.
4989 (struct match_data) <obstackp>: Remove.
4990 <resultp>: New member.
4991 (aux_add_nonlocal_symbols): Update.
4992 (ada_add_block_renamings, add_nonlocal_symbols)
4993 (ada_add_all_symbols): Accept a vector.
4994 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4995 vector.
4996 (ada_lookup_symbol): Update.
4997 (ada_add_block_symbols): Accept a vector.
4998 (get_var_value, iterate_over_symbols): Update.
4999 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5000 Update.
5001
886d459f
TT
50022021-03-02 Tom Tromey <tromey@adacore.com>
5003
5004 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5005
bdcccc56
TT
50062021-03-02 Tom Tromey <tromey@adacore.com>
5007
5008 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5009 auto_obstack.
5010 <root>: Initialize.
5011 (ada_pspace_data): Remove destructor.
5012 <sym_cache>: Now a unique_ptr.
5013 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5014 (ada_get_symbol_cache): Use 'new'.
5015 (ada_clear_symbol_cache): Rewrite.
5016
1228719f
TT
50172021-03-02 Tom Tromey <tromey@adacore.com>
5018
5019 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5020 is null.
5021
bb3a4efe
LS
50222021-02-27 Lancelot Six <lsix@lancelotsix.com>
5023
5024 PR gdb/27393
5025 * source.c (add_path): Skip empty dirnames.
5026
26b43ca6 50272021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5028
5029 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5030 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5031
dffdd8b5
SM
50322021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5033
5034 PR gdb/26861
5035 * target.c (target_mourn_inferior): Only compare pids in
5036 target_mourn_inferior.
5037
64d38fdd
JM
50382021-02-25 Jan Matyas <jmatyas@codasip.com>
5039
5040 PR gdb/26819
5041 * remote.c (remote_target::start_remote): Ensure the single
5042 thread, automatically added for remote targets without the
5043 concept of threading, is initially in set to the "resumed"
5044 state.
5045 * remote.c (remote_target::add_current_inferior_and_thread):
5046 Add return value - return the main thread.
5047
2450ad54
JV
50482021-02-25 Jan Vrany <jan.vrany@labware.com>
5049
5050 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5051 (mi_tsv_created): Likewise.
5052 (mi_tsv_deleted): Likewise.
5053
30c80d88
TV
50542021-02-25 Tom de Vries <tdevries@suse.de>
5055
5056 PR symtab/27354
5057 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5058 section_kind for &dwo_file->sections.info.
5059
68337b8b
AB
50602021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 PR fortran/26155
5063 * f-lang.c (fortran_argument_convert): Delete declaration.
5064 (fortran_prepare_argument): New function.
5065 (evaluate_subexp_f): Move logic to new function
5066 fortran_prepare_argument.
5067
faeb9f13
AB
50682021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5069
5070 * f-exp.y (f77_keywords): Add 'associated'.
5071 * f-lang.c (fortran_associated): New function.
5072 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5073 (operator_length_f): Likewise.
5074 (print_unop_or_binop_subexp_f): New function.
5075 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5076 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5077 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5078 (operator_check_f): Likewise.
5079 * std-operator.def: Add FORTRAN_ASSOCIATED.
5080
170f4b23
AB
50812021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5082
5083 * f-exp.y (fortran_operators): Add ".xor.".
5084
aa659cfa
TV
50852021-02-24 Tom de Vries <tdevries@suse.de>
5086
5087 PR symtab/27336
5088 * dwarf2/attribute.c (attribute::form_is_signed): New function
5089 factored out of ...
5090 * dwarf2/attribute.h (attribute::as_signed): ... here.
5091 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5092 (attribute::form_is_signed): Declare.
5093 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5094 for DW_AT_decl_file.
5095
268c77c1
KB
50962021-02-24 Kevin Buettner <kevinb@redhat.com>
5097
5098 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5099 order for <sys/ptrace.h> and <asm/ptrace.h>.
5100
665af52e
KB
51012021-02-24 Kevin Buettner <kevinb@redhat.com>
5102
5103 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5104 <sys/ptrace.h>.
5105
dd80d750
AB
51062021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 * exec.c (set_section_command): Move variable declarations into
5109 the function body, and use std::string instead of a fixed size
5110 buffer.
5111
336aa7b7
AB
51122021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5113
5114 * exec.c (exec_target::get_section_table): Delete member function.
5115 (section_table_read_available_memory): Use current_top_target, not
5116 just the exec_ops target.
5117 * target-delegates.c: Regenerate.
5118 * target.c (default_get_section_table): New function.
5119 * target.h (target_ops::get_section_table): Change default
5120 behaviour to call default_get_section_table.
5121 (default_get_section_table): Declare.
5122
02f7d26b
AB
51232021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5124
5125 * exec.c (exec_target::close): Call new clear_target_sections
5126 function.
5127 (program_space::add_target_sections): Update name of member
5128 variable.
5129 (program_space::add_target_sections): Update name of member
5130 variable.
5131 (program_space::remove_target_sections): Likewise.
5132 (exec_one_fork): Use new target_sections member function.
5133 (exec_target::get_section_table): Likewise.
5134 (exec_target::files_info): Likewise.
5135 (set_section_command): Likewise.
5136 (exec_set_section_address): Likewise.
5137 (exec_target::has_memory): Use new target_sections member
5138 function.
5139 * progspace.h (program_space::clear_target_sections): New member
5140 function.
5141 (program_space::target_sections): Rename member variable to
5142 m_target_sections, replace with a new member function.
5143 (program_space::m_target_sections): New member variable.
5144 * solib-dsbt.c (scan_dyntag): Use new member function.
5145 * solib-svr4.c (scan_dyntag): Likewise.
5146
19cf757a
AB
51472021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5148
5149 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5150 return type const.
5151 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5152 (section_table_read_available_memory): Make local const.
5153 (exec_target::xfer_partial): Make local const.
5154 (print_section_info): Make parameter const.
5155 * gdb/exec.h (print_section_info): Likewise.
5156 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5157 const.
5158 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5159 Likewise.
5160 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5161 Likewise.
5162 * gdb/s390-tdep.c (s390_load): Likewise.
5163 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5164 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5165 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5166 Rename to...
5167 (target_debug_print_const_target_section_table_p): ...this.
5168 * gdb/target-delegates.c: Regenerate.
5169 * gdb/target.c (target_get_section_table): Make return type const.
5170 (target_section_by_addr): Likewise. Also make some locals const.
5171 (memory_xfer_partial_1): Make some locals const.
5172 * gdb/target.h (struct target_ops) <get_section_table>: Make
5173 return type const.
5174 (target_section_by_addr): Likewise.
5175 (target_get_section_table): Likewise.
5176
02a79309
AB
51772021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5178
5179 * NEWS: Mention new 'maint info target-sections' command.
5180 * maint.c (maintenance_info_target_sections): New function.
5181 (_initialize_maint_cmds): Register new command.
5182
895b7b4e
AB
51832021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5184
5185 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5186 (riscv_features_from_bfd): ...this. Change parameter type to
5187 'bfd*', and update as required.
5188 (riscv_find_default_target_description): Update call to
5189 riscv_features_from_bfd. Select a default xlen based on
5190 info.bfd_arch_info.
5191 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5192
bc3c0632
AB
51932021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5194
5195 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5196 dynamic types in UNOP_IND.
5197
08ac5771
SM
51982021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5199
5200 PR gdb/26828
5201 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5202 Instantiate queue.
5203 (~dwarf2_queue_guard): Clear queue.
5204 (queue_comp_unit): Assert that queue is
5205 instantiated.
5206 (process_queue): Adjust.
5207 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5208
616c069a
SM
52092021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5210
5211 PR gdb/26828
5212 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5213 to decide whether or not to enqueue it for expansion.
5214 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5215 after calling maybe_queue_comp_unit.
5216
897608ed
SM
52172021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5218
5219 * linux-nat.c (linux_nat_filter_event): Return void.
5220
15908a11
TT
52212021-02-22 Tom Tromey <tromey@adacore.com>
5222
5223 * solib-svr4.c (enable_break): Update.
5224 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5225 type.
5226 (target_bfd_reopen): Change parameter type.
5227 * bfd-target.h (target_bfd_reopen): Change parameter type.
5228
f53fc427
SM
52292021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5230
5231 * thread.c (add_thread_silent): Add assert.
5232 (find_thread_ptid): Add assert.
5233
de146e19
SM
52342021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5235
5236 PR gdb/27435
5237 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5238 (target_unpush_up): Likewise.
5239 * procfs.c (procfs_target::attach): Push target early. Use
5240 target_unpush_up to unpush target in case of error.
5241 * target.h (struct target_unpusher): Move here.
5242 (target_unpush_up): Likewise.
5243
8488c357
KB
52442021-02-19 Kevin Buettner <kevinb@redhat.com>
5245
5246 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5247 (which in turn includes <gnulib/config.h>) before include
5248 of <signal.h>.
5249
5a9f5403
NC
52502021-02-19 Nelson Chu <nelson.chu@sifive.com>
5251
5252 PR 27158
5253 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5254 (decode_j_type_insn): Likewise.
5255 (decode_cj_type_insn): Likewise.
5256 (decode_b_type_insn): Likewise.
5257 (decode): Likewise.
5258
26f53cd3
TT
52592021-02-18 Tom Tromey <tom@tromey.com>
5260
5261 * expression.h (struct expression) <evaluate>: Declare method.
5262 * eval.c (evaluate_subexp): Simplify.
5263 (expression::evaluate): New method.
5264 (evaluate_expression, evaluate_type): Use expression::evaluate.
5265
6a780b67
KB
52662021-02-17 Kevin Buettner <kevinb@redhat.com>
5267
5268 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5269 to accessing it.
5270 (ada_lookup_name_info): Likewise.
5271
adeab0c5
MF
52722021-02-13 Mike Frysinger <vapier@gentoo.org>
5273
5274 * aclocal.m4: Regenerate.
5275
089436f7
TV
52762021-02-12 Tom de Vries <tdevries@suse.de>
5277
5278 PR threads/26228
5279 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5280 (lin_thread_signals): New static var.
5281 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5282 New function.
5283 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5284 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5285 Declare.
5286 * linux-thread-db.c (check_thread_signals): Use
5287 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5288
96df3e28
AB
52892021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5290
5291 * f-exp.y (f77_keywords): Add allocated.
5292 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5293 (operator_length_f): Likewise.
5294 (print_subexp_f): Likewise.
5295 (dump_subexp_body_f): Likewise.
5296 (operator_check_f): Likewise.
5297 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5298
05f68f52
TV
52992021-02-11 Tom de Vries <tdevries@suse.de>
5300
5301 PR symtab/27353
5302 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5303 Return true for DW_FORM_strx.
5304
b260f8d6
TT
53052021-02-11 Tom Tromey <tromey@adacore.com>
5306
5307 PR gdb/27383:
5308 * parse.c (write_exp_symbol_reference): Write sym.block.
5309
bf3386f0
AB
53102021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 * NEWS: Mention changes to 'maint info sections'.
5313 * maint.c (match_substring): Return a bool, fix whitespace issue.
5314 (struct single_bfd_flag_info): New struct.
5315 (bfd_flag_info): New static global.
5316 (match_bfd_flags): Return a bool, use bfd_flag_info.
5317 (print_bfd_flags): Use bfd_flag_info.
5318 (maint_print_section_info): Delete trailing whitespace.
5319 (struct maint_info_sections_opts): New struct.
5320 (maint_info_sections_option_defs): New static global.
5321 (maint_info_sections_completer): New function.
5322 (maintenance_info_sections): Use option parsing mechanism.
5323 (_initialize_maint_cmds): Update command help text for 'maint info
5324 sections' and register a command completer.
5325
4790db14
AB
53262021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5329 functionality merged into...
5330 (maint_print_all_sections): ...this new function.
5331 (maintenance_info_sections): Make use of maint_print_all_sections,
5332 allow all objects to be printed even where there's no executable.
5333
1db66e34
AB
53342021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5335
5336 * breakpoint.c (resolve_sal_pc): Make use of
5337 bound_minimal_symbol::obj_section.
5338 * maint.c (maintenance_translate_address): Likewise.
5339 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5340 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5341 member function.
5342 * printcmd.c (info_address_command): Make use of
5343 bound_minimal_symbol::obj_section.
5344
18b8df43
AM
53452021-02-11 Alan Modra <amodra@gmail.com>
5346
5347 * arm-symbian-tdep.c: Delete.
5348 * NEWS: Mention arm-symbian removal.
5349 * Makefile.in: Remove arm-symbian-tdep entries.
5350 * configure.tgt: Remove arm*-*-symbianelf*.
5351 * doc/gdb.texinfo: Remove mention of SymbianOS.
5352 * osabi.c (gdb_osabi_names): Remove "Symbian".
5353 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5354 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5355 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5356 handling.
5357 * testsuite/gdb.base/dup-sect.exp: Likewise.
5358 * testsuite/gdb.base/long_long.exp: Likewise.
5359 * testsuite/gdb.base/solib-weak.exp: Likewise.
5360 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5361 * testsuite/gdb.python/py-section-script.exp: Likewise.
5362 * testsuite/lib/dwarf.exp: Likewise.
5363 * testsuite/lib/gdb.exp: Likewise.
5364
e92c8eb8
AB
53652021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5366
5367 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5368 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5369 (one_or_two_args): New pattern.
5370 (f77_keywords): Add lbound and ubound.
5371 * f-lang.c (fortran_bounds_all_dims): New function.
5372 (fortran_bounds_for_dimension): New function.
5373 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5374 (operator_length_f): Likewise.
5375 (print_subexp_f): Likewise.
5376 (dump_subexp_body_f): Likewise.
5377 (operator_check_f): Likewise.
5378 * std-operator.def (FORTRAN_LBOUND): Define.
5379 (FORTRAN_UBOUND): Define.
5380
a52d653e
AB
53812021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5382
5383 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5384 and set_section_index member functions where appropriate.
5385 * coffread.c (coff_symtab_read): Likewise.
5386 (process_coff_symbol): Likewise.
5387 * ctfread.c (set_symbol_address): Likewise.
5388 * dwarf2/read.c (add_partial_symbol): Likewise.
5389 (var_decode_location): Likewise.
5390 * language.c: Likewise.
5391 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5392 (compact_minimal_symbols): Likewise.
5393 (minimal_symbol_upper_bound): Likewise.
5394 * objfiles.c (relocate_one_symbol): Likewise.
5395 * psympriv.h (partial_symbol::obj_section): Likewise.
5396 (partial_symbol::address): Likewise.
5397 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5398 * stabsread.c (scan_file_globals): Likewise.
5399 * symmisc.c (dump_msymbols): Likewise.
5400 * symtab.c (general_symbol_info::obj_section): Likewise.
5401 (fixup_section): Likewise.
5402 (get_msymbol_address): Likewise.
5403 * symtab.h (general_symbol_info::section): Rename to...
5404 (general_symbol_info::m_section): ...this.
5405 (general_symbol_info::set_section_index): New member function.
5406 (general_symbol_info::section_index): Likewise.
5407 (SYMBOL_SECTION): Delete.
5408 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5409 set_section_index member functions where appropriate.
5410 (MSYMBOL_SECTION): Delete.
5411 (symbol::symbol): Update to initialize 'm_section'.
5412 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5413 (process_xcoff_symbol): Likewise.
5414
ebbc3a7d
AB
54152021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5416
5417 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5418 MSYMBOL_OBJ_SECTION.
5419 * findvar.c (language_defn::read_var_value): Likewise.
5420 * infcmd.c (jump_command): Likewise.
5421 * linespec.c (minsym_found): Likewise.
5422 * maint.c (maintenance_translate_address): Likewise.
5423 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5424 (minimal_symbol_upper_bound): Likewise.
5425 * parse.c (find_minsym_type_and_address): Likewise.
5426 (operator_check_standard): Likewise.
5427 * printcmd.c (info_address_command): Likewise.
5428 * symmisc.c (dump_msymbols): Likewise.
5429 (print_symbol): Likewise.
5430 * symtab.c (general_symbol_info::obj_section): Define new
5431 function.
5432 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5433 (find_pc_sect_compunit_symtab): Likewise.
5434 (find_function_start_sal): Likewise.
5435 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5436 MSYMBOL_OBJ_SECTION.
5437 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5438 function.
5439 (SYMBOL_OBJ_SECTION): Delete.
5440 (MSYMBOL_OBJ_SECTION): Delete.
5441
9bb305b3
TT
54422021-02-09 Tom Tromey <tom@tromey.com>
5443
5444 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5445
cf2b2075
TV
54462021-02-09 Tom de Vries <tdevries@suse.de>
5447
5448 PR symtab/27341
5449 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5450 construct an array type. Add assert to ensure that element_type is
5451 not being modified.
5452
03642b71
AB
54532021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5454
5455 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5456 (gcore_collect_regset_section_cb): Delete.
5457 (gcore_collect_thread_registers): Delete.
5458 (gcore_build_thread_register_notes): Delete.
5459 (gcore_find_signalled_thread): Delete.
5460 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5461 'gdbarch' and 'thread_info' declarations.
5462 (gcore_build_thread_register_notes): Delete declaration.
5463 (gcore_find_signalled_thread): Likewise.
5464 * fbsd-tdep.c: Remove 'gcore.h' include.
5465 (struct fbsd_collect_regset_section_cb_data): New struct.
5466 (fbsd_collect_regset_section_cb): New function.
5467 (fbsd_collect_thread_registers): New function.
5468 (struct fbsd_corefile_thread_data): New struct.
5469 (fbsd_corefile_thread): New function.
5470 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5471 * linux-tdep.c: Remove 'gcore.h' include.
5472 (struct linux_collect_regset_section_cb_data): New struct.
5473 (linux_collect_regset_section_cb): New function.
5474 (linux_collect_thread_registers): New function.
5475 (linux_corefile_thread): Call Linux specific code.
5476 (find_signalled_thread): New function.
5477 (linux_make_corefile_notes): Call find_signalled_thread.
5478
f73e424f
TT
54792021-02-09 Tom Tromey <tromey@adacore.com>
5480
5481 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5482 not_lval value.
5483 * value.c (value_contents_copy_raw): Now static.
5484 * value.h (value_contents_copy_raw): Don't declare.
5485
a4f0544b
TT
54862021-02-09 Tom Tromey <tromey@adacore.com>
5487
5488 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5489 fields.
5490
9b3e4b5d
SV
54912021-02-08 Shahab Vahedi <shahab@synopsys.com>
5492
5493 PR tdep/27369
5494 * arc-linux-tdep.c (handle_atomic_sequence): New.
5495 (arc_linux_software_single_step): Call handle_atomic_sequence().
5496
29db1eb3
AB
54972021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5498
5499 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5500 function.
5501 (REQUIRE_WINDOW): Call is_valid member function.
5502 (REQUIRE_WINDOW_FOR_SETTER): New define.
5503 (gdbpy_tui_is_valid): Call is_valid member function.
5504 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5505 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5506 tui_active too.
5507 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5508 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5509 the function.
5510
e0c23e11
AB
55112021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5512
5513 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5514 for the title is not nullptr.
5515
1cf23996
AB
55162021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5517
5518 * tui-layout.c (saved_tui_windows): Delete.
5519 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5520 call new get_windows member function instead.
5521 (tui_get_window_by_name): Check in tui_windows.
5522 (tui_layout_window::apply): Don't add to tui_windows.
5523 * tui-layout.h (tui_layout_base::get_windows): New member function.
5524 (tui_layout_window::get_windows): Likewise.
5525 (tui_layout_split::get_windows): Likewise.
5526
a53a2657
AB
55272021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5528
5529 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5530 of the window objects.
5531
2708dbbd
AB
55322021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5533
5534 * python/python.c (gdbpy_print_stack): Reformat an error message.
5535
cd074e04
AB
55362021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5537
5538 * tui/tui-interp.c (tui_command_line_handler): New function.
5539 (tui_interp::resume): Register tui_command_line_handler as the
5540 input_handler.
5541 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5542 function.
5543 (tui_getc_1): Delete handling of '\n' and '\r'.
5544 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5545
4cf28e91
HD
55462021-02-07 Hannes Domani <ssbssa@yahoo.de>
5547
5548 * tui/tui-regs.c (tui_data_window::display_registers_from):
5549 Mark invisible register sub windows.
5550 (tui_data_window::check_register_values): Ignore invisible
5551 register sub windows.
5552
3537bc23
HD
55532021-02-07 Hannes Domani <ssbssa@yahoo.de>
5554
5555 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5556 n_spaces with a negative value.
5557
5fc2d6aa
HD
55582021-02-07 Hannes Domani <ssbssa@yahoo.de>
5559
5560 * tui/tui-regs.c (tui_data_window::display_registers_from):
5561 Add refresh_window call.
5562
83962f83
HD
55632021-02-07 Hannes Domani <ssbssa@yahoo.de>
5564
5565 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5566
0110ec82
SM
55672021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5568
5569 * symmisc.c (std_in, std_out, std_err): Remove.
5570 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5571
7c6944ab
TV
55722021-02-05 Tom de Vries <tdevries@suse.de>
5573
5574 PR breakpoints/27330
5575 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5576 glibc object file has debug info.
5577
e77b0004
TV
55782021-02-05 Tom de Vries <tdevries@suse.de>
5579
5580 PR symtab/27333
5581 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5582
0e857c82
TV
55832021-02-05 Tom de Vries <tdevries@suse.de>
5584
5585 PR breakpoints/27313
5586 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5587 syscall numbers.
5588
bdfea17e
TT
55892021-02-05 Tom Tromey <tom@tromey.com>
5590
5591 * compile/compile-c-support.c (get_compile_context)
5592 (c_get_compile_context, cplus_get_compile_context): Change return
5593 type.
5594 * language.c (language_defn::get_compile_instance): New method.
5595 * language.h (language_defn::get_compile_instance): Change return
5596 type. No longer inline.
5597 * c-lang.c (c_language::get_compile_instance): Change return type.
5598 (cplus_language::get_compile_instance): Change return type.
5599 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5600 Change return type.
5601 * compile/compile.c (compile_to_object): Update.
5602
1b30f421
TT
56032021-02-05 Tom Tromey <tom@tromey.com>
5604
5605 * parser-defs.h (write_exp_symbol_reference): Declare.
5606 * parse.c (write_exp_symbol_reference): New function.
5607 * p-exp.y (variable): Use write_exp_symbol_reference.
5608 * m2-exp.y (variable): Use write_exp_symbol_reference.
5609 * f-exp.y (variable): Use write_exp_symbol_reference.
5610 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5611 * c-exp.y (variable): Use write_exp_symbol_reference.
5612
ae710496
TV
56132021-02-05 Tom de Vries <tdevries@suse.de>
5614
5615 PR exp/27265
5616 * valarith.c (complex_binop): Throw an error if complex type can't
5617 be created.
5618
d3b54e63
TV
56192021-02-05 Tom de Vries <tdevries@suse.de>
5620
5621 PR symtab/27307
5622 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5623 return.
5624
fc9a13fb
TV
56252021-02-05 Tom de Vries <tdevries@suse.de>
5626
5627 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5628
04b4939b
MF
56292021-02-04 Mike Frysinger <vapier@gentoo.org>
5630
5631 * configure.tgt (riscv*-*-*): Set gdb_sim.
5632
6ff267e1
SM
56332021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5634
5635 * target.c (target_is_non_stop_p): Return bool.
5636 * target.h (target_is_non_stop_p): Return bool.
5637
fdbc5215
SM
56382021-02-04 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * record-full.c (record_full_async_inferior_event_handler):
5641 Don't clear async event handler.
5642 (record_full_base_target::wait): Clear async event handler at
5643 beginning.
5644
85d3ad8e
SM
56452021-02-04 Simon Marchi <simon.marchi@efficios.com>
5646
5647 * record-btrace.c (record_btrace_handle_async_inferior_event):
5648 Don't clear async event handler.
5649 (record_btrace_target::wait): Clear async event handler at
5650 beginning.
5651
baa8575b
SM
56522021-02-04 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * remote.c (remote_target::wait): Clear async event handler at
5655 beginning, mark if needed at the end.
5656 (remote_async_inferior_event_handler): Don't set or clear async
5657 event handler.
5658
6b36ddeb
SM
56592021-02-04 Simon Marchi <simon.marchi@efficios.com>
5660
5661 * async-event.h (async_event_handler_func): Add documentation.
5662 * async-event.c (check_async_event_handlers): Don't clear
5663 async_event_handler ready flag.
5664 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5665 flag.
5666 * record-btrace.c (record_btrace_handle_async_inferior_event):
5667 Likewise.
5668 * record-full.c (record_full_async_inferior_event_handler):
5669 Likewise.
5670 * remote-notif.c (remote_async_get_pending_events_handler):
5671 Likewise.
5672 * remote.c (remote_async_inferior_event_handler): Likewise.
5673
72d383bb
SM
56742021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5675
5676 * infrun.c (handle_inferior_event): Move stop_soon variable to
5677 inner scope.
5678
408f6686
PA
56792021-02-03 Pedro Alves <pedro@palves.net>
5680
5681 * infcmd.c (detach_command): Hold strong reference to target, and
5682 if all-stop on entry, restart threads on exit.
5683 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5684 (restart_stepped_thread): ... this new function. Also handle
5685 trap_expected.
5686 (restart_after_all_stop_detach): New function.
5687 * infrun.h (restart_after_all_stop_detach): Declare.
5688
ac7d717c
PA
56892021-02-03 Pedro Alves <pedro@palves.net>
5690
5691 * infrun.c (struct step_over_info): Initialize fields.
5692 (prepare_for_detach): Handle ongoing in-line step over.
5693
e87f0fe8
PA
56942021-02-03 Pedro Alves <pedro@palves.net>
5695
5696 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5697 here...
5698 * remote.c (remote_target::remote_detach_1): ... and here ...
5699 * target.c (target_detach): ... instead of here.
5700 * target.h (target_ops::detach): Add comment.
5701
8ff53139
PA
57022021-02-03 Pedro Alves <pedro@palves.net>
5703
5704 * infrun.c (struct wait_one_event): Move higher up.
5705 (prepare_for_detach): Abort in-progress displaced steps instead of
5706 letting them complete.
5707 (handle_one): If the inferior is detaching, don't add the thread
5708 back to the global step-over chain.
5709 (restart_threads): Don't restart threads if detaching.
5710 (handle_signal_stop): Remove inferior::detaching reference.
5711
91475068
PA
57122021-02-03 Pedro Alves <pedro@palves.net>
5713
5714 * infrun.c (prepare_for_detach): Don't release scoped_restore
5715 before returning.
5716
d758e62c
PA
57172021-02-03 Pedro Alves <pedro@palves.net>
5718
5719 * infrun.c (handle_one): New function, factored out from ...
5720 (stop_all_threads): ... here.
5721
b0083dd7
PA
57222021-02-03 Pedro Alves <pedro@palves.net>
5723
5724 * remote.c (remote_notif_stop_ack): Don't error out on
5725 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5726 (remote_target::discard_pending_stop_replies): Don't delete
5727 in-flight notification; instead, clear its contents.
5728
621cc310
PA
57292021-02-03 Pedro Alves <pedro@palves.net>
5730
5731 * remote.c (extended_remote_target::attach): Set target async in
5732 the target-non-stop path too.
5733
2ab76a18
PA
57342021-02-03 Pedro Alves <pedro@palves.net>
5735
5736 PR gdb/27055
5737 * infrun.c (handle_signal_stop): Move main context_switch call
5738 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5739
2e3773ff
LS
57402021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5741
5742 * NEWS (Changed commands): Add entry for the behavior change of
5743 the inferior command.
5744 * inferior.c (inferior_command): When no argument is given to the
5745 inferior command, display info about the currently selected
5746 inferior.
5747
e57933dc
SM
57482021-02-02 Simon Marchi <simon.marchi@efficios.com>
5749
5750 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5751 a sect_offset.
5752 (read_attribute_reprocess): Adjust.
5753
2b0c7f41
SM
57542021-02-02 Simon Marchi <simon.marchi@efficios.com>
5755
5756 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5757 <gnu_ranges_base>: ... this...
5758 <rnglists_base>: ... and this.
5759 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5760 <gnu_ranges_base>: ... this...
5761 <rnglists_base>: ... and this.
5762 (read_cutu_die_from_dwo): Adjust
5763 (dwarf2_get_pc_bounds): Adjust
5764 (dwarf2_record_block_ranges): Adjust.
5765 (read_full_die_1): Adjust
5766 (partial_die_info::read): Adjust.
5767 (read_rnglist_index): Adjust.
5768
a1c40103
SM
57692021-02-02 Simon Marchi <simon.marchi@efficios.com>
5770
5771 PR gdb/26813
5772 * dwarf2/read.c (read_loclists_rnglists_header): Add
5773 header_offset parameter and use it.
5774 (read_loclist_index): Read header of the current contribution,
5775 not the one at the beginning of the section.
5776 (read_rnglist_index): Likewise.
5777
b1829e1b
SM
57782021-02-02 Simon Marchi <simon.marchi@efficios.com>
5779
5780 PR gdb/26813
5781 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5782 requires_reprocessing flag.
5783 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5784 DW_FORM_loclistx.
5785 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5786 and DW_FORM_loclistx.
5787 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5788 instead of set_address for DW_FORM_loclistx and
5789 DW_FORM_rnglistx.
5790
0c800c6e
SM
57912021-02-02 Simon Marchi <simon.marchi@efficios.com>
5792
5793 * dwarf2/read.c (read_loclist_index): Remove bound check for
5794 start of offset.
5795 (read_rnglist_index): Likewise.
5796
05787bad
SM
57972021-02-02 Simon Marchi <simon.marchi@efficios.com>
5798
5799 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5800 of the offset.
5801
5e4d9bbc
SM
58022021-02-02 Simon Marchi <simon.marchi@efficios.com>
5803
5804 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5805
a0c1eeba
SM
58062021-02-02 Simon Marchi <simon.marchi@efficios.com>
5807
5808 * dwarf2/read.c (read_loclist_index): Change complaints into
5809 errors.
5810
2bd3e4b8
TV
58112021-02-02 Tom de Vries <tdevries@suse.de>
5812
5813 PR symtab/24620
5814 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5815 psymtab == nullptr.
5816
82a1fd3a
AB
58172021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5818
5819 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5820 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5821 here from linux-tdep.c and given a new name. Minor cleanups.
5822 (gcore_collect_regset_section_cb): Likewise.
5823 (gcore_collect_thread_registers): Likewise.
5824 (gcore_build_thread_register_notes): Likewise.
5825 (gcore_find_signalled_thread): Likewise.
5826 * gcore.h (gcore_build_thread_register_notes): Declare.
5827 (gcore_find_signalled_thread): Declare.
5828 * fbsd-tdep.c: Add 'gcore.h' include.
5829 (struct fbsd_collect_regset_section_cb_data): Delete.
5830 (fbsd_collect_regset_section_cb): Delete.
5831 (fbsd_collect_thread_registers): Delete.
5832 (struct fbsd_corefile_thread_data): Delete.
5833 (fbsd_corefile_thread): Delete.
5834 (fbsd_make_corefile_notes): Call
5835 gcore_build_thread_register_notes instead of the now deleted
5836 FreeBSD code.
5837 * linux-tdep.c: Add 'gcore.h' include.
5838 (struct linux_collect_regset_section_cb_data): Delete.
5839 (linux_collect_regset_section_cb): Delete.
5840 (linux_collect_thread_registers): Delete.
5841 (linux_corefile_thread): Call
5842 gcore_build_thread_register_notes.
5843 (find_signalled_thread): Delete.
5844 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5845
ebde6f2d
TV
58462021-01-29 Tom de Vries <tdevries@suse.de>
5847
5848 PR breakpoints/26063
5849 * infrun.c (process_event_stop_test): Reset
5850 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5851 changed.
5852
0f93c3a2
AB
58532021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5854
5855 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5856 assert. Extend the header comment.
5857
f237f998
AB
58582021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5859
5860 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5861 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5862 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5863 (tui_locator_win_info_ptr): Delete declaration.
5864 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5865 (tui_disasm_window::set_contents): Fetch state from tui_location
5866 global.
5867 (tui_get_begin_asm_address): Likewise.
5868 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5869 for locator window.
5870 (get_locator_window): Delete.
5871 (initialize_known_windows): Treat locator window just like all the
5872 rest.
5873 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5874 (tui_source_window::set_contents): Fetch state from tui_location
5875 global.
5876 (tui_source_window::showing_source_p): Likewise.
5877 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5878 (_locator): Delete.
5879 (tui_locator_win_info_ptr): Delete.
5880 (tui_locator_window::make_status_line): Fetch state from
5881 tui_location global.
5882 (tui_locator_window::rerender): Remove check of 'handle',
5883 reindent function body.
5884 (tui_locator_window::set_locator_fullname): Delete.
5885 (tui_locator_window::set_locator_info): Delete.
5886 (tui_update_locator_fullname): Delete.
5887 (tui_show_frame_info): Likewise.
5888 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5889 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5890 tui/tui-location.h and renamed to
5891 tui_location_tracker::set_location.
5892 (tui_locator_window::set_locator_fullname): Moved to
5893 tui/tui-location.h and renamed to
5894 tui_location_tracker::set_fullname.
5895 (tui_locator_window::full_name): Delete.
5896 (tui_locator_window::proc_name): Delete.
5897 (tui_locator_window::line_no): Delete.
5898 (tui_locator_window::addr): Delete.
5899 (tui_locator_window::gdbarch): Delete.
5900 (tui_update_locator_fullname): Delete declaration.
5901 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5902 for locator window.
5903 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5904 (tui_display_main): Call function on tui_location directly.
5905 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5906 * tui/tui-location.c: New file.
5907 * tui/tui-location.h: New file.
5908
8ee511af
SM
59092021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * gdbtypes.h (get_type_arch): Rename to...
5912 (struct type) <arch>: ... this, update all users.
5913
6ac37371
SM
59142021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5915
5916 * gdbtypes.h (struct type) <arch>: Rename to...
5917 <arch_owner>: ... this, update all users.
5918 <objfile>: Rename to...
5919 <objfile_owner>: ... this, update all users.
5920
24cf6389
AB
59212021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5922
5923 * gdbcmd.h (execute_command_to_string): Update comment.
5924 * top.c (execute_command_to_string): Update header comment.
5925
2a7f6487
TV
59262021-01-28 Tom de Vries <tdevries@suse.de>
5927
5928 PR breakpoints/27205
5929 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5930 (create_longjmp_master_breakpoint_names): New function, factored out
5931 of ...
5932 (create_longjmp_master_breakpoint): ... here. Only try to install
5933 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5934 breakpoint in libc.so failed.
5935
59b59f08
LS
59362021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5937
5938 PR gdb/27133
5939 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5940 unique_ptr is released when the wrapped pointer is kept for later
5941 use.
5942
807f647c
MM
59432021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5944
5945 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5946 BLR and BR instructions.
5947 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5948 (enum aarch64_masks): New.
5949
4ef367bf
TT
59502021-01-26 Tom Tromey <tromey@adacore.com>
5951
5952 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5953 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5954 (windows_init_thread_list, windows_nat::handle_load_dll)
5955 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5956 (windows_nat_target::resume)
5957 (windows_nat_target::get_windows_debug_event)
5958 (windows_nat_target::interrupt, windows_xfer_memory)
5959 (windows_nat_target::close): Update.
5960 * nat/windows-nat.c (DEBUG_EVENTS): Use
5961 debug_prefixed_printf_cond.
5962 (matching_pending_stop, fetch_pending_stop)
5963 (continue_last_debug_event): Update.
5964
4cb1265b
MS
59652020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5966
5967 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5968 elfcore_write_file_note.
5969
d0cc52bd
SV
59702021-01-26 Shahab Vahedi <shahab@synopsys.com>
5971
5972 * arc-tdep.c (arc_add_reggroups): New function.
5973 (arc_gdbarch_init): Call arc_add_reggroups.
5974
ac3571d9 59752021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5976
5977 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5978
9f6c202e
TV
59792021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5980 Simon Marchi <simon.marchi@polymtl.ca>
5981 Tom de Vries <tdevries@suse.de>
5982
5983 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5984 DW_AT_ranges.
5985
a625a8c9
TT
59862021-01-25 Tom Tromey <tromey@adacore.com>
5987
5988 * dwarf2/read.c (get_mpz): New function.
5989 (get_dwarf2_rational_constant): Use it.
5990
19184910
TT
59912021-01-25 Tom Tromey <tromey@adacore.com>
5992
5993 * ada-lang.c (resolve_subexp): Handle array context.
5994
b10bae18
TT
59952021-01-23 Tom Tromey <tom@tromey.com>
5996
5997 PR compile/25575
5998 * compile/compile-loc2c.c (note_register): New function.
5999 (pushf_register_address, pushf_register): Use it.
6000
3637a558
TT
60012021-01-23 Tom Tromey <tom@tromey.com>
6002
6003 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6004 Change type of "registers_used".
6005 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6006 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6007 (locexpr_generate_c_location, loclist_generate_c_location): Change
6008 type of "registers_used".
6009 * compile/compile.h (compile_dwarf_expr_to_c)
6010 (compile_dwarf_bounds_to_c): Update.
6011 * compile/compile-loc2c.c (pushf_register_address)
6012 (pushf_register, do_compile_dwarf_expr_to_c)
6013 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6014 of "registers_used".
6015 * compile/compile-c.h (generate_c_for_variable_locations):
6016 Update.
6017 * compile/compile-c-symbols.c (generate_vla_size)
6018 (generate_c_for_for_one_variable): Change type of
6019 "registers_used".
6020 (generate_c_for_variable_locations): Return std::vector.
6021 * compile/compile-c-support.c (generate_register_struct): Change
6022 type of "registers_used".
6023 (compute): Update.
6024
9f7f6cb8
TT
60252021-01-23 Tom Tromey <tom@tromey.com>
6026
6027 * compile/compile-internal.h (class compile_instance)
6028 <set_arguments>: Change return type.
6029 * compile/compile.c (compile_to_object): Remove call to reset.
6030 (compile_instance::set_arguments): Change return type.
6031
dd5ca05f
SM
60322021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6035 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6036
d3ee35db
LS
60372021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6038
6039 * Makefile.in (SELFTESTS_SRCS): Add
6040 unittests/gdb_tilde_expand-selftests.c.
6041 * unittests/gdb_tilde_expand-selftests.c: New file.
6042
9d2d8a16
AB
60432021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6044
6045 PR cli/25956
6046 * NEWS: Mention new command.
6047 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6048 (version_style): Define.
6049 (cli_style_option::cli_style_option): Add intensity parameter, and
6050 use as appropriate.
6051 (_initialize_cli_style): Register version style set/show commands.
6052 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6053 (version_style): Declare.
6054 * top.c (print_gdb_version): Use version_stype, and styled_string
6055 to print the GDB version string.
6056
e7b43072
AB
60572021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6058
6059 * utils.c (emit_style_escape): Only emit an escape sequence if the
6060 requested style is different than the current applied style.
6061 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6062 current applied_style.
6063 (fputs_styled): Remove is_default check.
6064 (fputs_styled_unfiltered): Likewise.
6065 (vfprintf_styled_no_gdbfmt): Likewise.
6066
2189c312
SM
60672021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6068
6069 * remote.h (remote_debug_printf): New.
6070 (remote_debug_printf_nofunc): New.
6071 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6072 * remote.c: Use above macros throughout file.
6073
02349803
SM
60742021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6075
6076 * remote.h (remote_debug): Change to bool.
6077 * remote.c (remote_debug): Change to bool.
6078 (_initialize_remote): Adjust.
6079
cda09ec9
SM
60802021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6081
6082 * target.h (remote_debug): Move to...
6083 * remote.h (remote_debug): ... here.
6084 * top.c (remote_debug): Move to...
6085 * remote.c (remote_debug): ... here.
6086 * remote-sim.c: Include remote.h.
6087
baf2b57f
SM
60882021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6089
6090 * cli/cli-cmds.c (show_remote_debug): Remove.
6091 (show_remote_timeout): Remove.
6092 (_initialize_cli_cmds): Don't register commands.
6093 * remote.c (show_remote_debug): Move here.
6094 (show_remote_timeout): Move here.
6095 (_initialize_remote): Register commands.
6096
344e9841
SM
60972021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6098
6099 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6100 type::objfile method instead.
6101
30625020
SM
61022021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6103
6104 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6105 use the type::is_objfile_owned method.
6106
5b7d941b
SM
61072021-01-22 Simon Marchi <simon.marchi@efficios.com>
6108
6109 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6110 (TYPE_OWNER): Remove.
6111 (TYPE_OBJFILE): Adjust.
6112 (struct main_type) <flag_objfile_owned>: Rename to...
6113 <m_flag_objfile_owned>: ... this.
6114 <owner>: Rename to...
6115 <m_owner>: ... this.
6116 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6117 methods.
6118 (TYPE_ALLOC): Adjust.
6119 * gdbtypes.c (alloc_type): Adjust.
6120 (alloc_type_arch): Adjust.
6121 (alloc_type_copy): Adjust.
6122 (get_type_arch): Adjust.
6123 (smash_type): Adjust.
6124 (lookup_array_range_type): Adjust.
6125 (recursive_dump_type): Adjust.
6126 (copy_type_recursive): Adjust.
6127 * compile/compile-c-types.c (convert_func): Adjust.
6128 (convert_type_basic): Adjust.
6129 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6130 Adjust.
6131 * language.c
6132 (language_arch_info::type_and_symbol::alloc_type_symbol):
6133 Adjust.
6134
d5d24e12
LM
61352021-01-21 Luis Machado <luis.machado@linaro.org>
6136
6137 * coffread.c (enter_linenos): Passing string to complaint.
6138 * valops.c (value_assign): Make array view.
6139
a59902a7
SM
61402021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6141
6142 * auto-load.h (debug_auto_load): Move here.
6143 (auto_load_debug_printf): New.
6144 * auto-load.c: Use auto_load_debug_printf.
6145 (debug_auto_load): Move to header.
6146 * linux-thread-db.c (try_thread_db_load): Use
6147 auto_load_debug_printf.
6148 * main.c (captured_main_1): Likewise.
6149
d3abc0ce
SM
61502021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6151
6152 * f-valprint.c (f77_array_offset_tbl): Remove.
6153
1e15fcac
SM
61542021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6155
6156 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6157
439706e6
SM
61582021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6159
6160 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6161 of gdb_select.
6162
325d39e4
HD
61632021-01-21 Hannes Domani <ssbssa@yahoo.de>
6164
6165 PR python/19151
6166 * python/py-breakpoint.c (bppy_get_location): Handle
6167 bp_hardware_breakpoint.
6168 (bppy_init): Likewise.
6169 (gdbpy_breakpoint_created): Likewise.
6170
7cb6d92a
SM
61712021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6172
6173 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6174
d4dd4fca
SM
61752021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6176
6177 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6178 (_initialize_gdb_bfd): Adjust.
6179
de53369b
SM
61802021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6181
6182 PR gdb/26828
6183 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6184
17e593e9
SM
61852021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6186
6187 * dwarf2/read.c (follow_die_offset): Add logging.
6188 (dwarf2_per_objfile::age_comp_units): Add logging.
6189
6bd434d6
SM
61902021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6191
6192 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6193 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6194 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6195 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6196 * arm-tdep.c (struct frame_unwind): Make static.
6197 * auto-load.c (auto_load_safe_path_vec): Make static.
6198 * csky-tdep.c (csky_stub_unwind): Make static.
6199 * gdbarch.c (gdbarch_data_registry): Make static.
6200 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6201 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6202 * i386-tdep.c (i386_frame_setup_skip_insns,
6203 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6204 Make static.
6205 * infrun.c (observer_mode): Make static.
6206 * linux-nat.c (sigchld_action): Make static.
6207 * linux-thread-db.c (thread_db_list): Make static.
6208 * maint-test-options.c (maintenance_test_options_list):
6209 * mep-tdep.c (mep_csr_registers): Make static.
6210 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6211 (stats): Make static.
6212 * nat/linux-osdata.c (struct osdata_type): Make static.
6213 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6214 * progspace.c (last_program_space_num): Make static.
6215 * python/py-param.c (struct parm_constant): Remove struct type
6216 name.
6217 (parm_constants): Make static.
6218 * python/py-record-btrace.c (btpy_list_methods): Make static.
6219 * python/py-record.c (recpy_gap_type): Make static.
6220 * record.c (record_goto_cmdlist): Make static.
6221 * regcache.c (regcache_descr_handle): Make static.
6222 * registry.h (DEFINE_REGISTRY): Make definition static.
6223 * symmisc.c (std_in, std_out, std_err): Make static.
6224 * top.c (previous_saved_command_line): Make static.
6225 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6226 static.
6227 * unittests/command-def-selftests.c (nr_duplicates,
6228 nr_invalid_prefixcmd, lists): Make static.
6229 * unittests/observable-selftests.c (test_notification): Make
6230 static.
6231 * unittests/optional/assignment/1.cc (counter): Make static.
6232 * unittests/optional/assignment/2.cc (counter): Make static.
6233 * unittests/optional/assignment/3.cc (counter): Make static.
6234 * unittests/optional/assignment/4.cc (counter): Make static.
6235 * unittests/optional/assignment/5.cc (counter): Make static.
6236 * unittests/optional/assignment/6.cc (counter): Make static.
6237
a6c11cbb
JS
62382021-01-20 Joel Sherrill <joel@rtems.org>
6239
6240 PR gdb/27219
6241 * remote.c (struct remote_thread_info) <resume_state>: Rename
6242 to...
6243 <get_resume_state>: ... this.
6244 (remote_target::resume): Adjust.
6245 (remote_target::commit_resume): Adjust.
6246 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6247
6f52fdf4
SDJ
62482021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6249 Tom Tromey <tom@tromey.com>
6250
6251 * stap-probe.c (stap_parse_single_operand): Handle '!'
6252 operator.
6253 (stap_parse_argument_conditionally): Likewise.
6254 Skip spaces after processing open-parenthesis sub-expression.
6255 (stap_parse_argument_1): Skip spaces after call to
6256 stap_parse_argument_conditionally.
6257 Handle case when right-side expression is a parenthesized
6258 sub-expression.
6259 Skip spaces after call to stap_parse_argument_1.
6260
1c3b85ad
LS
62612021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6262
6263 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6264
a9a87d35
LM
62652021-01-19 Luis Machado <luis.machado@linaro.org>
6266
6267 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6268 memory and save data.
6269 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6270 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6271 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6272 (trad_frame_value_bytes_p): Remove.
6273 (trad_frame_reset_saved_regs): Adjust documentation.
6274 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6275 constructor and reset the state of the registers.
6276 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6277 (trad_frame_value_bytes_p, trad_frame_set_value)
6278 (trad_frame_set_realreg, trad_frame_set_addr)
6279 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6280 (trad_frame_set_reg_realreg): Update to call member function.
6281 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6282 (trad_frame_get_prev_register): Likewise.
6283
6284 * aarch64-tdep.c (aarch64_analyze_prologue)
6285 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6286 (aarch64_prologue_prev_register): Update to use member functions.
6287 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6288 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6289 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6290 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6291 (arm_make_epilogue_frame_cache): Likewise.
6292 * avr-tdep.c (avr_frame_unwind_cache)
6293 (avr_frame_prev_register): Likewise.
6294 * cris-tdep.c (cris_scan_prologue): Likewise.
6295 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6296 * frv-tdep.c (frv_analyze_prologue): Likewise.
6297 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6298 * lm32-tdep.c (lm32_frame_cache): Likewise.
6299 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6300 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6301 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6302 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6303 (reset_saved_regs): Adjust to set realreg.
6304 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6305 call member functions.
6306 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6307 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6308 (s390_backchain_frame_unwind_cache): Likewise.
6309 * score-tdep.c (score7_analyze_prologue)
6310 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6311 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6312 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6313 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6314 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6315 * tilegx-tdep.c (tilegx_analyze_prologue)
6316 (tilegx_frame_cache): Likewise.
6317 * v850-tdep.c (v850_frame_cache): Likewise.
6318 * vax-tdep.c (vax_frame_cache): Likewise.
6319
bdec2917
LM
63202021-01-19 Luis Machado <luis.machado@linaro.org>
6321
6322 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6323 of buffer + length.
6324 (put_frame_register_bytes): Likewise.
6325 Adjust documentation.
6326 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6327 (safe_frame_unwind_memory): Likewise.
6328 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6329 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6330 gdb::array_view.
6331 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6332 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6333 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6334 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6335 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6336 * dwarf2/loc.c (rw_pieced_value): Likewise.
6337 * hppa-tdep.c (hppa_frame_cache): Likewise.
6338 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6339 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6340 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6341 (i386_linux_rt_sigtramp_start): Likewise.
6342 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6343 * i386-tdep.c (i386_register_to_value): Likewise.
6344 * i387-tdep.c (i387_register_to_value): Likewise.
6345 * ia64-tdep.c (ia64_register_to_value): Likewise.
6346 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6347 (m32r_linux_rt_sigtramp_start): Likewise.
6348 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6349 * m68k-tdep.c (m68k_register_to_value): Likewise.
6350 * mips-tdep.c (mips_register_to_value)
6351 (mips_value_to_register): Likewise.
6352 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6353 (ppcfbsd_sigtramp_frame_cache): Likewise.
6354 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6355 (ppcobsd_sigtramp_frame_cache): Likewise.
6356 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6357 (rs6000_register_to_value): Likewise.
6358 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6359 * tramp-frame.c (tramp_frame_start): Likewise.
6360 * valops.c (value_assign): Likewise.
6361
ccbe4c82
LM
63622021-01-19 Luis Machado <luis.machado@linaro.org>
6363
6364 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6365 array_view.
6366 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6367 instead of buffer and size.
6368 (trad_frame_set_reg_value_bytes): Likewise.
6369 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6370 (trad_frame_set_value_bytes): Likewise.
6371
0e7620dc
MF
63722021-01-18 Mike Frysinger <vapier@gentoo.org>
6373
6374 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6375
6a9ad81c
AB
63762021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6377
6378 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6379 (riscv_fbsd_gregset): Use riscv_supply_regset.
6380 (riscv_fbsd_fpregset): Likewise.
6381 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6382 (riscv_linux_fregset): Likewise.
6383 * riscv-tdep.c (riscv_supply_regset): Define new function.
6384 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6385
d3d7d1ba
TV
63862021-01-18 Tom de Vries <tdevries@suse.de>
6387
6388 PR tdep/27172
6389 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6390 New macro.
6391 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6392 for SEGV_BNDERR.
6393
aa2838cc
SM
63942021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6395
6396 * remote.c (class remote_target) <remote_hostio_send_command,
6397 remote_hostio_parse_result>: Constify parameter.
6398 (remote_hostio_parse_result): Likewise.
6399 (remote_target::remote_hostio_send_command): Adjust.
6400 (remote_target::remote_hostio_pread_vFile): Adjust.
6401 (remote_target::fileio_readlink): Adjust.
6402 (remote_target::fileio_fstat): Adjust.
6403
b5c8f22d
SM
64042021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6405
6406 * remote.c (remote_target::start_remote): Move wait_status to
6407 narrower scope.
6408
e3b2741b
SM
64092021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6410
6411 * remote.c (class remote_target):
6412 <add_current_inferior_and_thread>: Constify parameter.
6413 (stop_reply_extract_thread): Likewise.
6414 (remote_target::get_current_thread): Likewise.
6415 (remote_target::add_current_inferior_and_thread): Likewise.
6416
cecb1912
SM
64172021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6418
6419 * remote.c (class remote_target)
6420 <remote_unpack_thread_info_response,
6421 parse_threadlist_response>: Constify parameter and/or return
6422 value and or local variable.
6423 (stub_unpack_int): Likewise.
6424 (unpack_nibble): Likewise.
6425 (unpack_byte): Likewise.
6426 (unpack_int): Likewise.
6427 (unpack_string): Likewise.
6428 (unpack_threadid): Likewise.
6429 (remote_target::remote_unpack_thread_info_response): Likewise.
6430 (remote_target::parse_threadlist_response): Likewise.
6431
5a11fff0
AB
64322021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6433
6434 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6435
17e89137
LS
64362021-01-14 Lancelot Six <lsix@lancelotsix.com>
6437
6438 * MAINTAINERS (Write After Approval): Add myself.
6439
58eadc4b
BE
64402021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6441
6442 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6443 because is_trivially_default_constructible was first implemented with
6444 gcc-5.
6445
5fae2a2c
TV
64462021-01-14 Tom de Vries <tdevries@suse.de>
6447
6448 PR breakpoints/27151
6449 * objfiles.h (in_plt_section): Handle .plt.sec.
6450
8f66807b
AB
64512021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6452
6453 PR gdb/26819
6454 * remote.c
6455 (remote_target::select_thread_for_ambiguous_stop_reply): New
6456 member function.
6457 (remote_target::process_stop_reply): Call
6458 select_thread_for_ambiguous_stop_reply.
6459
bd497355
SM
64602021-01-13 Simon Marchi <simon.marchi@efficios.com>
6461
6462 * record-btrace.c (class record_btrace_target): Remove.
6463 (record_btrace_target::commit_resume): Remove.
6464 * record-full.c (class record_full_target): Remove.
6465 (record_full_target::commit_resume): Remove.
6466
c9d22089
SM
64672021-01-13 Simon Marchi <simon.marchi@efficios.com>
6468
6469 * remote.c (enum class resume_state): New.
6470 (struct resumed_pending_vcont_info): New.
6471 (struct remote_thread_info) <resume_state, set_not_resumed,
6472 set_resumed_pending_vcont, resumed_pending_vcont_info,
6473 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6474 New.
6475 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6476 (remote_target::remote_add_thread): Adjust.
6477 (remote_target::process_initial_stop_replies): Adjust.
6478 (remote_target::resume): Adjust.
6479 (remote_target::commit_resume): Rely on state in
6480 remote_thread_info and not on tp->executing.
6481 (remote_target::process_stop_reply): Adjust.
6482
d8d1feb4
SM
64832021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6484
6485 * arc-tdep.h (arc_debug_printf): New.
6486 * arc-tdep.c: Use arc_debug_printf.
6487 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6488 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6489 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6490
fb0f5031
SM
64912021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6492
6493 * arc-tdep.h (arc_debug): Change type to bool.
6494 * arc-tdep.c (arc_debug): Change type to bool.
6495 (arc_analyze_prologue): Adjust.
6496 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6497 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6498
5bf7e91b
SM
64992021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6500
6501 * auto-load.c (auto_load_objfile_script_1): Use bool.
6502 (execute_script_contents): Use bool.
6503
db972fce
SM
65042021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6505
6506 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6507 comment here.
6508 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6509 comment to header.
6510 * extension-priv.h (struct extension_language_script_ops)
6511 <auto_load_enabled>: Return bool.
6512 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6513 comment here.
6514 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6515 comment to header.
6516 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6517 move comment here.
6518 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6519 move comment to header.
6520 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6521 move comment here.
6522 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6523 move comment to header.
6524
5e12f48f
SM
65252021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6526
6527 * auto-load.h (file_is_auto_load_safe): Change return type to
6528 bool, move comment here.
6529 * auto-load.c (file_is_auto_load_safe): Change return type and
6530 advice_printed to bool. Move comment to header.
6531
54ca9002
SM
65322021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6533
6534 * jit.c (jit_debug_printf): New, use throughout file.
6535
24a7f1b5
SM
65362021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * infrun.c (normal_stop): Fix indentation.
6539
fe7a351a
SM
65402021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6543 declarations to ...
6544 * symfile.h: ... here.
6545 * symfile.c: Update doc.
6546
16e9019e
SM
65472021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6548
6549 * target.h (baud_rate, serial_parity): Move declarations...
6550 * serial.h: ... here.
6551 * main.c: Include serial.h.
6552 * serial.c (baud_rate, serial_parity): Update doc.
6553
b2f2ae0d
SM
65542021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6555
6556 * top.c (pre_init_ui_hook): Remove.
6557
5291fe3c
SP
65582021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6559
6560 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6561 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6562 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6563 * features/aarch64-fpu.xml: Add bfloat16 type.
6564
ce38f5ed
AB
65652021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6566
6567 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6568
7c654b71
AB
65692021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6570
6571 * f-exp.y (dot_ops): Rename to...
6572 (fortran_operators): ...this. Add a header comment. Add symbol
6573 based operators.
6574 (yylex): Update to use fortran_operators not dot_ops. Remove
6575 special handling for '**', this is now included in
6576 fortran_operators.
6577
c6185dce
SM
65782021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6581 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6582 * aarch64-tdep.c: Use aarch64_debug_printf.
6583
eef401dc
SM
65842021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6585
6586 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6587 file.
6588
062eaacb
SM
65892021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6590
6591 * jit.c (jit_debug): Change type to bool.
6592 (_initialize_jit): Adjust.
6593
54585eee
TT
65942021-01-09 Tom Tromey <tom@tromey.com>
6595
6596 PR compile/23672
6597 * compile/compile.c (compile_to_object): Avoid crash when
6598 osabi_triplet_regexp returns NULL.
6599
bc167b6b
TT
66002021-01-09 Tom Tromey <tom@tromey.com>
6601
6602 * tracepoint.h (class collection_list) <append_exp>: Take a
6603 std::string.
6604 * tracepoint.c (collection_list::append_exp): Take a std::string.
6605 (encode_actions_1): Update.
6606
8fc48b79
TT
66072021-01-08 Tom Tromey <tromey@adacore.com>
6608
6609 * parse.c (parse_expression): Add void_context_p parameter. Use
6610 parse_exp_in_context.
6611 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6612 parse_expression.
6613 (print_command, call_command): Update.
6614 * expression.h (parse_expression): Add void_context_p parameter.
6615
3c8c6de2
AB
66162021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6617
6618 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6619 for internalvar components that have a dynamic location.
6620
1940319c
TV
66212021-01-08 Tom de Vries <tdevries@suse.de>
6622
6623 PR gdb/26881
6624 * breakpoint.c (create_exception_master_breakpoint_probe)
6625 (create_exception_master_breakpoint_hook): Factor out
6626 of ...
6627 (create_exception_master_breakpoint): ... here. Only try to install
6628 the master exception breakpoint in objfile.debug using the
6629 _Unwind_DebugHook method, if the install using probes in objfile
6630 failed.
6631
e3436813
AB
66322021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6633
6634 * f-lang.c (fortran_value_subarray): Call value_from_component.
6635
e904f56d
MF
66362021-01-07 Mike Frysinger <vapier@gentoo.org>
6637
6638 * remote-sim.c: Include memory-map.h.
6639 (gdbsim_target): Define memory_map override.
6640 (gdbsim_target::memory_map): Define.
6641
959d6a67
TT
66422021-01-07 Tom Tromey <tromey@adacore.com>
6643
6644 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6645
d4813f10
TT
66462021-01-07 Tom Tromey <tromey@adacore.com>
6647
6648 * ada-lang.c (add_component_interval): Start loop using vector's
6649 updated size.
6650
b49180ac
TT
66512021-01-06 Tom Tromey <tromey@adacore.com>
6652
6653 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6654 Do not cast result.
6655 * valarith.c (fixed_point_binop): Handle multiplication
6656 and division specially.
6657 * valops.c (value_to_gdb_mpq): New function.
6658 (value_cast_to_fixed_point): Use it.
6659
55195361
HD
66602021-01-05 Hannes Domani <ssbssa@yahoo.de>
6661
6662 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6663 Call wnoutrefresh instead of tui_win_info::refresh_window.
6664
1b6d4bb2
HD
66652021-01-05 Hannes Domani <ssbssa@yahoo.de>
6666
6667 * tui/tui-source.c (tui_source_window::show_line_number):
6668 Redraw second space after line number.
6669
b5ff370e
HD
66702021-01-05 Hannes Domani <ssbssa@yahoo.de>
6671
6672 PR tui/26927
6673 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6674 Fix source pad size in prefresh.
6675 (tui_source_window_base::show_source_content): Grow source pad
6676 if necessary.
6677
c68ea49f
MF
66782021-01-04 Mike Frysinger <vapier@gentoo.org>
6679
6680 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6681 (bfin_frame_align): Use align_down.
6682
e4ad960a
TV
66832021-01-04 Tom de Vries <tdevries@suse.de>
6684
6685 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6686 terminators that do not terminate anything.
6687
3ec3145c
SM
66882021-01-04 Simon Marchi <simon.marchi@efficios.com>
6689
6690 * debug.c (debug_print_depth): New.
6691 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6692 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6693 * infrun.c (start_step_over): Use
6694 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6695 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6696 INFRUN_SCOPED_DEBUG_START_END.
6697 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6698
e71daf80
SM
66992021-01-04 Simon Marchi <simon.marchi@efficios.com>
6700
6701 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6702
335709bc
SM
67032021-01-04 Simon Marchi <simon.marchi@efficios.com>
6704
6705 * utils.c (vfprintf_unfiltered): Print timestamp only when
6706 previous debug output ended with a newline.
6707
098caef4
LM
67082021-01-04 Luis Machado <luis.machado@linaro.org>
6709
6710 Update all users of trad_frame_saved_reg to use the new member
6711 functions.
6712
6713 Remote all struct keywords from declarations of trad_frame_saved_reg
6714 types, except on forward declarations.
6715
6716 * aarch64-tdep.c: Update.
6717 * alpha-mdebug-tdep.c: Update.
6718 * alpha-tdep.c: Update.
6719 * arc-tdep.c: Update.
6720 * arm-tdep.c: Update.
6721 * avr-tdep.c: Update.
6722 * cris-tdep.c: Update.
6723 * csky-tdep.c: Update.
6724 * frv-tdep.c: Update.
6725 * hppa-linux-tdep.c: Update.
6726 * hppa-tdep.c: Update.
6727 * hppa-tdep.h: Update.
6728 * lm32-tdep.c: Update.
6729 * m32r-linux-tdep.c: Update.
6730 * m32r-tdep.c: Update.
6731 * m68hc11-tdep.c: Update.
6732 * mips-tdep.c: Update.
6733 * moxie-tdep.c: Update.
6734 * riscv-tdep.c: Update.
6735 * rs6000-tdep.c: Update.
6736 * s390-linux-tdep.c: Update.
6737 * s390-tdep.c: Update.
6738 * score-tdep.c: Update.
6739 * sparc-netbsd-tdep.c: Update.
6740 * sparc-sol2-tdep.c: Update.
6741 * sparc64-fbsd-tdep.c: Update.
6742 * sparc64-netbsd-tdep.c: Update.
6743 * sparc64-obsd-tdep.c: Update.
6744 * sparc64-sol2-tdep.c: Update.
6745 * tilegx-tdep.c: Update.
6746 * v850-tdep.c: Update.
6747 * vax-tdep.c: Update.
6748
6749 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6750 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6751
6752 * trad-frame.c: Update.
6753 Remove TF_REG_* enum.
6754 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6755 a trivially-constructible struct.
6756 (trad_frame_reset_saved_regs): Adjust to use member function.
6757 (trad_frame_value_p): Likewise.
6758 (trad_frame_addr_p): Likewise.
6759 (trad_frame_realreg_p): Likewise.
6760 (trad_frame_value_bytes_p): Likewise.
6761 (trad_frame_set_value): Likewise.
6762 (trad_frame_set_realreg): Likewise.
6763 (trad_frame_set_addr): Likewise.
6764 (trad_frame_set_unknown): Likewise.
6765 (trad_frame_set_value_bytes): Likewise.
6766 (trad_frame_get_prev_register): Likewise.
6767 * trad-frame.h: Update.
6768 (trad_frame_saved_reg_kind): New enum.
6769 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6770 <m_kind, m_reg>: New member fields.
6771 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6772 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6773 <is_addr, is_unknown, is_value_bytes>: New member functions.
6774
9898e882
SM
67752021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6776
6777 * target-float.c: Fix typos.
6778
b66b4e65
HD
67792021-01-02 Hannes Domani <ssbssa@yahoo.de>
6780
6781 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6782
b5b5650a
JB
67832021-01-01 Joel Brobecker <brobecker@adacore.com>
6784
6785 * gdbarch.sh: Update copyright year range.
6786
3666a048
JB
67872021-01-01 Joel Brobecker <brobecker@adacore.com>
6788
6789 Update copyright year range in copyright header of all GDB files.
6790
ff7e39b6
JB
67912021-01-01 Joel Brobecker <brobecker@adacore.com>
6792
6793 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6794 to the list of directories to update.
6795
2b47c078
JB
67962021-01-01 Joel Brobecker <brobecker@adacore.com>
6797
6798 * top.c (print_gdb_version): Update copyright year.
6799
9e5e03df 68002021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6801
476923f1 6802 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6803
476923f1 6804For older changes see ChangeLog-2020.
c906108c
SS
6805\f
6806Local Variables:
6807mode: change-log
6808left-margin: 8
6809fill-column: 74
6810version-control: never
57da7796 6811coding: utf-8
c906108c 6812End:
This page took 2.882406 seconds and 4 git commands to generate.