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