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