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