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