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