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