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