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