1 2021-03-08 Tom Tromey <tom@tromey.com>
3 * ada-lang.c (ada_binop_exp): New function.
4 (ada_evaluate_subexp): Use it.
6 2021-03-08 Tom Tromey <tom@tromey.com>
8 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
10 (ada_evaluate_subexp): Use it.
12 2021-03-08 Tom Tromey <tom@tromey.com>
14 * ada-lang.c (ada_binop_minmax): New function.
15 (ada_evaluate_subexp): Use it.
17 2021-03-08 Tom Tromey <tom@tromey.com>
19 * ada-lang.c (ada_unop_atr): New function.
20 (ada_evaluate_subexp): Use it.
22 2021-03-08 Tom Tromey <tom@tromey.com>
24 * ada-lang.c (ada_binop_in_bounds): New function.
25 (ada_evaluate_subexp): Use it.
27 2021-03-08 Tom Tromey <tom@tromey.com>
29 * ada-lang.c (ada_ternop_slice): New function.
30 (ada_evaluate_subexp): Use it.
32 2021-03-08 Tom Tromey <tom@tromey.com>
34 * ada-lang.c (ada_equal_binop): New function.
35 (ada_evaluate_subexp): Use it.
37 2021-03-08 Tom Tromey <tom@tromey.com>
39 * ada-lang.c (ada_mult_binop): New function.
40 (ada_evaluate_subexp): Use it.
42 2021-03-08 Tom Tromey <tom@tromey.com>
44 * ada-lang.c (ada_abs): New function.
45 (ada_evaluate_subexp): Use it.
47 2021-03-08 Tom Tromey <tom@tromey.com>
49 * ada-lang.c (ada_atr_size): New function.
50 (ada_evaluate_subexp): Use it.
52 2021-03-08 Tom Tromey <tom@tromey.com>
54 * ada-lang.c (ada_atr_tag): New function.
55 (ada_evaluate_subexp): Use it.
57 2021-03-08 Tom Tromey <tom@tromey.com>
59 * ada-lang.c (ada_unop_in_range): New function.
60 (ada_evaluate_subexp): Use it.
62 2021-03-08 Tom Tromey <tom@tromey.com>
64 * ada-lang.c (ada_unop_neg): New function.
65 (ada_evaluate_subexp): Use it.
67 2021-03-08 Tom Tromey <tom@tromey.com>
69 * ada-lang.c (eval_ternop_in_range): New function.
70 (ada_evaluate_subexp): Use it.
72 2021-03-08 Tom Tromey <tom@tromey.com>
74 * opencl-lang.c (eval_opencl_assign): New function.
75 (evaluate_subexp_opencl): Use it.
77 2021-03-08 Tom Tromey <tom@tromey.com>
79 * eval.c (eval_op_objc_msgcall): New function.
80 (evaluate_subexp_standard): Use it.
82 2021-03-08 Tom Tromey <tom@tromey.com>
84 * eval.c (eval_binop_assign_modify): New function.
85 (evaluate_subexp_standard): Use it.
87 2021-03-08 Tom Tromey <tom@tromey.com>
89 * m2-lang.c (eval_op_m2_subscript): New function.
90 (evaluate_subexp_modula2): Use it.
92 2021-03-08 Tom Tromey <tom@tromey.com>
94 * m2-lang.c (eval_op_m2_high): New function.
95 (evaluate_subexp_modula2): Use it.
97 2021-03-08 Tom Tromey <tom@tromey.com>
99 * eval.c (evaluate_subexp_for_address_base): New function.
100 (evaluate_subexp_for_address): Use it.
101 (evaluate_subexp_for_sizeof_base): New function.
102 (evaluate_subexp_for_sizeof): Use it.
104 2021-03-08 Tom Tromey <tom@tromey.com>
106 * rust-lang.c (eval_op_rust_structop): New function.
107 (rust_evaluate_subexp): Use it.
109 2021-03-08 Tom Tromey <tom@tromey.com>
111 * rust-lang.c (eval_op_rust_struct_anon): New function.
112 (rust_evaluate_subexp): Use it.
114 2021-03-08 Tom Tromey <tom@tromey.com>
116 * rust-lang.c (eval_op_rust_array): New function.
117 (rust_evaluate_subexp): Use it.
119 2021-03-08 Tom Tromey <tom@tromey.com>
121 * rust-lang.c (eval_op_rust_complement): New function.
122 (rust_evaluate_subexp): Use it.
124 2021-03-08 Tom Tromey <tom@tromey.com>
126 * rust-lang.c (eval_op_rust_ind): New function.
127 (rust_evaluate_subexp): Use it.
129 2021-03-08 Tom Tromey <tom@tromey.com>
131 * rust-lang.c (rust_subscript): Change parameters.
132 (rust_evaluate_subexp): Update.
134 2021-03-08 Tom Tromey <tom@tromey.com>
136 * rust-lang.c (rust_range): Change parameters.
137 (rust_evaluate_subexp): Update.
139 2021-03-08 Tom Tromey <tom@tromey.com>
141 * f-lang.c (eval_op_f_allocated): New function.
142 (evaluate_subexp_f): Use it.
144 2021-03-08 Tom Tromey <tom@tromey.com>
146 * f-lang.c (fortran_require_array): New function.
147 (evaluate_subexp_f): Use it.
149 2021-03-08 Tom Tromey <tom@tromey.com>
151 * f-lang.c (eval_op_f_kind): New function.
152 (evaluate_subexp_f): Use it.
154 2021-03-08 Tom Tromey <tom@tromey.com>
156 * f-lang.c (eval_op_f_cmplx): New function.
157 (evaluate_subexp_f): Use it.
159 2021-03-08 Tom Tromey <tom@tromey.com>
161 * f-lang.c (eval_op_f_modulo): New function.
162 (evaluate_subexp_f): Use it.
164 2021-03-08 Tom Tromey <tom@tromey.com>
166 * f-lang.c (eval_op_f_floor): New function.
167 (evaluate_subexp_f): Use it.
169 2021-03-08 Tom Tromey <tom@tromey.com>
171 * f-lang.c (eval_op_f_ceil): New function.
172 (evaluate_subexp_f): Use it.
174 2021-03-08 Tom Tromey <tom@tromey.com>
176 * f-lang.c (eval_op_f_mod): New function.
177 (evaluate_subexp_f): Use it.
179 2021-03-08 Tom Tromey <tom@tromey.com>
181 * f-lang.c (eval_op_f_abs): New function.
182 (evaluate_subexp_f): Use it.
184 2021-03-08 Tom Tromey <tom@tromey.com>
186 * eval.c (eval_op_type): New function.
187 (evaluate_subexp_standard): Use it.
189 2021-03-08 Tom Tromey <tom@tromey.com>
191 * eval.c (eval_op_postdec): New function.
192 (evaluate_subexp_standard): Use it.
194 2021-03-08 Tom Tromey <tom@tromey.com>
196 * eval.c (eval_op_postinc): New function.
197 (evaluate_subexp_standard): Use it.
199 2021-03-08 Tom Tromey <tom@tromey.com>
201 * eval.c (eval_op_predec): New file.
202 (evaluate_subexp_standard): Use it.
204 2021-03-08 Tom Tromey <tom@tromey.com>
206 * eval.c (eval_op_preinc): New function.
207 (evaluate_subexp_standard): Use it.
209 2021-03-08 Tom Tromey <tom@tromey.com>
211 * eval.c (eval_op_memval): New function.
212 (evaluate_subexp_standard): Use it.
214 2021-03-08 Tom Tromey <tom@tromey.com>
216 * eval.c (eval_op_alignof): New function.
217 (evaluate_subexp_standard): Use it.
219 2021-03-08 Tom Tromey <tom@tromey.com>
221 * eval.c (eval_op_ind): New function.
222 (evaluate_subexp_standard): Use it.
224 2021-03-08 Tom Tromey <tom@tromey.com>
226 * eval.c (eval_op_lognot): New function.
227 (evaluate_subexp_standard): Use it.
229 2021-03-08 Tom Tromey <tom@tromey.com>
231 * eval.c (eval_op_complement): New function.
232 (evaluate_subexp_standard): Use it.
234 2021-03-08 Tom Tromey <tom@tromey.com>
236 * eval.c (eval_op_neg): New function.
237 (evaluate_subexp_standard): Use it.
239 2021-03-08 Tom Tromey <tom@tromey.com>
241 * eval.c (eval_op_plus): New function.
242 (evaluate_subexp_standard): Use it.
244 2021-03-08 Tom Tromey <tom@tromey.com>
246 * eval.c (eval_op_repeat): New function.
247 (evaluate_subexp_standard): Use it.
249 2021-03-08 Tom Tromey <tom@tromey.com>
251 * eval.c (eval_op_leq): New function.
252 (evaluate_subexp_standard): Use it.
254 2021-03-08 Tom Tromey <tom@tromey.com>
256 * eval.c (eval_op_geq): New function.
257 (evaluate_subexp_standard): Use it.
259 2021-03-08 Tom Tromey <tom@tromey.com>
261 * eval.c (eval_op_gtr): New function.
262 (evaluate_subexp_standard): Use it.
264 2021-03-08 Tom Tromey <tom@tromey.com>
266 * eval.c (eval_op_less): New function.
267 (evaluate_subexp_standard): Use it.
269 2021-03-08 Tom Tromey <tom@tromey.com>
271 * eval.c (eval_op_notequal): New function.
272 (evaluate_subexp_standard): Use it.
274 2021-03-08 Tom Tromey <tom@tromey.com>
276 * eval.c (eval_op_equal): New function.
277 (evaluate_subexp_standard): Use it.
279 2021-03-08 Tom Tromey <tom@tromey.com>
281 * eval.c (eval_op_subscript): New function.
282 (evaluate_subexp_standard): Use it.
284 2021-03-08 Tom Tromey <tom@tromey.com>
286 * eval.c (eval_op_binary): New function.
287 (evaluate_subexp_standard): Use it.
289 2021-03-08 Tom Tromey <tom@tromey.com>
291 * eval.c (eval_op_sub): New function.
292 (evaluate_subexp_standard): Use it.
294 2021-03-08 Tom Tromey <tom@tromey.com>
296 * eval.c (eval_op_add): New function.
297 (evaluate_subexp_standard): Use it.
299 2021-03-08 Tom Tromey <tom@tromey.com>
301 * eval.c (eval_op_member): New function.
302 (evaluate_subexp_standard): Use it.
304 2021-03-08 Tom Tromey <tom@tromey.com>
306 * eval.c (eval_op_structop_ptr): New function.
307 (evaluate_subexp_standard): Use it.
309 2021-03-08 Tom Tromey <tom@tromey.com>
311 * eval.c (eval_op_structop_struct): New function.
312 (evaluate_subexp_standard): Use it.
314 2021-03-08 Tom Tromey <tom@tromey.com>
316 * eval.c (eval_op_ternop): New function.
317 (evaluate_subexp_standard): Use it.
319 2021-03-08 Tom Tromey <tom@tromey.com>
321 * eval.c (eval_op_concat): New function.
322 (evaluate_subexp_standard): Use it.
324 2021-03-08 Tom Tromey <tom@tromey.com>
326 * eval.c (eval_op_objc_selector): New function.
327 (evaluate_subexp_standard): Use it.
329 2021-03-08 Tom Tromey <tom@tromey.com>
331 * eval.c (eval_op_string): New function.
332 (evaluate_subexp_standard): Use it.
334 2021-03-08 Tom Tromey <tom@tromey.com>
336 * eval.c (eval_op_register): New function.
337 (evaluate_subexp_standard): Use it.
339 2021-03-08 Tom Tromey <tom@tromey.com>
341 * eval.c (eval_op_func_static_var): New function.
342 (evaluate_subexp_standard): Use it.
344 2021-03-08 Tom Tromey <tom@tromey.com>
346 * eval.c (eval_op_var_msym_value): New function.
347 (evaluate_subexp_standard): Use it.
349 2021-03-08 Tom Tromey <tom@tromey.com>
351 * eval.c (eval_op_var_entry_value): New function.
352 (evaluate_subexp_standard): Use it.
354 2021-03-08 Tom Tromey <tom@tromey.com>
356 * eval.c (eval_op_scope): New function.
357 (evaluate_subexp_standard): Use it.
359 2021-03-06 Chernov Sergey <klen_s@mail.ru>
362 * ada-lang.c (ada_fold_name): Use gdb::to_string.
364 2021-03-06 Tom Tromey <tom@tromey.com>
366 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
367 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
368 * dwarf2/read.c (dwarf2_elf_names): No longer static.
369 (locate_dwz_sections, dwz_search_other_debugdirs)
370 (dwarf2_get_dwz_file): Move to dwz.c.
371 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
373 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
374 (dwarf2_get_dwz_file): Move from read.c.
376 2021-03-06 Tom Tromey <tom@tromey.com>
378 * debuginfod-support.h: Include scoped_fd.h.
380 2021-03-06 Tom Tromey <tom@tromey.com>
382 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
383 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
384 (get_abbrev_section_for_cu, read_attribute_value)
385 (get_debug_line_section): Update.
386 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
388 2021-03-06 Tom Tromey <tom@tromey.com>
390 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
392 * dwarf2/read.c (section_is_p): Remove.
393 (dwarf2_per_bfd::locate_sections)
394 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
395 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
396 (dwarf2_locate_common_dwp_sections)
397 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
400 2021-03-06 Tom Tromey <tom@tromey.com>
402 * xcoffread.c: Include sect-names.h.
403 * symfile.h (struct dwarf2_section_names, struct
404 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
405 * dwarf2/sect-names.h: New file, from symfile.h.
406 * dwarf2/read.c: Include sect-names.h.
408 2021-03-06 Tom Tromey <tom@tromey.com>
410 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
411 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
412 (abbrev_table::read): Update.
413 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
414 (struct abbrev_info): Reformat.
415 <attrs>: Now an array.
416 (struct abbrev_table) <alloc_abbrev>: Remove.
418 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
420 * ctfread.c (ctf_psymtab_add_enums): New function.
421 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
423 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
425 * ctfread.c (read_func_kind_type): Set up function arguments.
427 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
428 Andrew Burgess <andrew.burgess@embecosm.com>
430 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
432 (riscv_csrset): New static global.
433 (riscv_update_csrmap): New function.
434 (riscv_iterate_over_regset_sections): Process CSRs.
436 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
438 * riscv-tdep.c (riscv_feature_name_csr): Define.
439 (riscv_feature_name_cpu): Define.
440 (riscv_feature_name_fpu): Define.
441 (riscv_feature_name_virtual): Define.
442 (riscv_xreg_feature): Use riscv_feature_name_cpu.
443 (riscv_freg_feature): Use riscv_feature_name_fpu.
444 (riscv_virtual_feature): Use riscv_feature_name_virtual.
445 (riscv_csr_feature): Use riscv_feature_name_csr.
446 * riscv-tdep.h (riscv_feature_name_csr): Declare.
448 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
449 Craig Blackmore <craig.blackmore@embecosm.com>
451 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
452 (ALLDEPFILES): Add riscv-none-tdep.c.
453 * configure: Regenerate.
454 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
456 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
457 * elf-none-tdep.c: New file.
458 * elf-none-tdep.h: New file.
459 * riscv-none-tdep.c: New file.
461 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
462 Andrew Burgess <andrew.burgess@embecosm.com>
464 * corelow.c: Add 'xml-tdesc.h' include.
465 (core_target::read_description): Load the target description from
466 the core file when possible.
467 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
469 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
470 (gcore_elf_make_tdesc_note): New function.
471 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
472 * linux-tdep.c (linux_make_corefile_notes): Add target description
475 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
477 * Makefile.in (SFILES): Add gcore-elf.c.
478 (HFILES_NO_SRCDIR): Add gcore-elf.h
479 * configure: Regenerate.
480 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
482 * fbsd-tdep.c: Add 'gcore-elf.h' include.
483 (struct fbsd_collect_regset_section_cb_data): Delete.
484 (fbsd_collect_regset_section_cb): Delete.
485 (fbsd_collect_thread_registers): Delete.
486 (struct fbsd_corefile_thread_data): Delete.
487 (fbsd_corefile_thread): Delete.
488 (fbsd_make_corefile_notes): Call
489 gcore_elf_build_thread_register_notes instead of the now deleted
491 * gcore-elf.c: New file, the content was moved here from
492 linux-tdep.c, functions were renamed and given minor cleanup.
493 * gcore-elf.h: New file.
494 * gcore.c (gcore_find_signalled_thread): Moved here from
495 linux-tdep.c and given a new name. Minor cleanups.
496 * gcore.h (gcore_find_signalled_thread): Declare.
497 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
498 (struct linux_collect_regset_section_cb_data): Delete.
499 (linux_collect_regset_section_cb): Delete.
500 (linux_collect_thread_registers): Delete.
501 (linux_corefile_thread): Call
502 gcore_elf_build_thread_register_notes.
503 (find_signalled_thread): Delete.
504 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
506 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
509 * sparc-nat.h (sparc_fetch_inferior_registers): Add
510 process_stratum_target parameter,
511 sparc_store_inferior_registers): update callers.
512 * sparc-nat.c (sparc_fetch_inferior_registers,
513 sparc_store_inferior_registers): Add process_stratum_target
514 parameter. Switch current thread before calling
515 sparc_supply_gregset / sparc_collect_rwindow.
516 (sparc_store_inferior_registers): Likewise.
517 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
518 (sparc32obsd_collect_uthread): Likewise.
519 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
521 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
522 sparc64obsd_supply_uthread): Add assertion.
524 2021-03-04 Tom Tromey <tromey@adacore.com>
526 * ada-lang.c (struct match_data) <found_sym>: Now bool.
527 (aux_add_nonlocal_symbols): Update.
528 (ada_add_block_symbols): Change "found_sym" to bool.
530 2021-03-03 Tom Tromey <tromey@adacore.com>
532 * ada-lang.c (ada_resolve_function): Update comment.
533 (is_nonfunction, add_symbols_from_enclosing_procs)
534 (remove_extra_symbols): Likewise.
535 (struct match_data): Add constructor, initializers.
536 (add_nonlocal_symbols): Remove memset.
537 (aux_add_nonlocal_symbols): Update comment.
538 (ada_add_block_renamings, add_nonlocal_symbols)
539 (ada_add_all_symbols): Likewise.
540 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
542 2021-03-02 Tom Tromey <tromey@adacore.com>
544 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
545 (cast_to_gnat_encoded_fixed_point_type): Remove.
546 (ada_value_cast, ada_evaluate_subexp): Update.
547 (gnat_encoded_fixed_point_type_info)
548 (ada_is_gnat_encoded_fixed_point_type)
549 (gnat_encoded_fixed_point_delta)
550 (gnat_encoded_fixed_point_scaling_factor): Remove.
551 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
552 (gnat_encoded_fixed_point_delta)
553 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
554 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
555 (ada_print_type): Update.
556 * ada-valprint.c (ada_value_print_num): Update.
557 * dwarf2/read.c (ada_get_gnat_encoded_number)
558 (ada_get_gnat_encoded_ratio): New functions.
559 (finish_fixed_point_type): Use them. Add parameters.
560 (GNAT_FIXED_POINT_SUFFIX): New define.
561 (gnat_encoded_fixed_point_type_info): New function.
562 (read_base_type): Handle gnat encodings.
564 2021-03-02 Tom Tromey <tromey@adacore.com>
566 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
567 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
572 2021-03-02 Tom Tromey <tromey@adacore.com>
574 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
575 * ada-lang.c (resolve_subexp): Update.
576 (ada_resolve_function): Accept a vector.
577 (is_nonfunction, add_defn_to_vec)
578 (add_symbols_from_enclosing_procs): Likewise.
579 (num_defns_collected, defns_collected): Remove.
580 (remove_extra_symbols): Return a vector.
581 (remove_irrelevant_renamings): Return void.
582 (ada_add_local_symbols): Accept a vector.
583 (struct match_data) <obstackp>: Remove.
584 <resultp>: New member.
585 (aux_add_nonlocal_symbols): Update.
586 (ada_add_block_renamings, add_nonlocal_symbols)
587 (ada_add_all_symbols): Accept a vector.
588 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
590 (ada_lookup_symbol): Update.
591 (ada_add_block_symbols): Accept a vector.
592 (get_var_value, iterate_over_symbols): Update.
593 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
596 2021-03-02 Tom Tromey <tromey@adacore.com>
598 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
600 2021-03-02 Tom Tromey <tromey@adacore.com>
602 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
605 (ada_pspace_data): Remove destructor.
606 <sym_cache>: Now a unique_ptr.
607 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
608 (ada_get_symbol_cache): Use 'new'.
609 (ada_clear_symbol_cache): Rewrite.
611 2021-03-02 Tom Tromey <tromey@adacore.com>
613 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
616 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
619 * source.c (add_path): Skip empty dirnames.
621 2021-02-25 Kevin Buettner <kevinb@redhat.com>
623 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
624 include order for <sys/ptrace.h> and <asm/ptrace.h>.
626 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
629 * target.c (target_mourn_inferior): Only compare pids in
630 target_mourn_inferior.
632 2021-02-25 Jan Matyas <jmatyas@codasip.com>
635 * remote.c (remote_target::start_remote): Ensure the single
636 thread, automatically added for remote targets without the
637 concept of threading, is initially in set to the "resumed"
639 * remote.c (remote_target::add_current_inferior_and_thread):
640 Add return value - return the main thread.
642 2021-02-25 Jan Vrany <jan.vrany@labware.com>
644 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
645 (mi_tsv_created): Likewise.
646 (mi_tsv_deleted): Likewise.
648 2021-02-25 Tom de Vries <tdevries@suse.de>
651 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
652 section_kind for &dwo_file->sections.info.
654 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
657 * f-lang.c (fortran_argument_convert): Delete declaration.
658 (fortran_prepare_argument): New function.
659 (evaluate_subexp_f): Move logic to new function
660 fortran_prepare_argument.
662 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
664 * f-exp.y (f77_keywords): Add 'associated'.
665 * f-lang.c (fortran_associated): New function.
666 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
667 (operator_length_f): Likewise.
668 (print_unop_or_binop_subexp_f): New function.
669 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
670 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
671 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
672 (operator_check_f): Likewise.
673 * std-operator.def: Add FORTRAN_ASSOCIATED.
675 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
677 * f-exp.y (fortran_operators): Add ".xor.".
679 2021-02-24 Tom de Vries <tdevries@suse.de>
682 * dwarf2/attribute.c (attribute::form_is_signed): New function
684 * dwarf2/attribute.h (attribute::as_signed): ... here.
685 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
686 (attribute::form_is_signed): Declare.
687 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
690 2021-02-24 Kevin Buettner <kevinb@redhat.com>
692 * nat/aarch64-linux-hw-point.c: Add comment regarding include
693 order for <sys/ptrace.h> and <asm/ptrace.h>.
695 2021-02-24 Kevin Buettner <kevinb@redhat.com>
697 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
700 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
702 * exec.c (set_section_command): Move variable declarations into
703 the function body, and use std::string instead of a fixed size
706 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
708 * exec.c (exec_target::get_section_table): Delete member function.
709 (section_table_read_available_memory): Use current_top_target, not
710 just the exec_ops target.
711 * target-delegates.c: Regenerate.
712 * target.c (default_get_section_table): New function.
713 * target.h (target_ops::get_section_table): Change default
714 behaviour to call default_get_section_table.
715 (default_get_section_table): Declare.
717 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
719 * exec.c (exec_target::close): Call new clear_target_sections
721 (program_space::add_target_sections): Update name of member
723 (program_space::add_target_sections): Update name of member
725 (program_space::remove_target_sections): Likewise.
726 (exec_one_fork): Use new target_sections member function.
727 (exec_target::get_section_table): Likewise.
728 (exec_target::files_info): Likewise.
729 (set_section_command): Likewise.
730 (exec_set_section_address): Likewise.
731 (exec_target::has_memory): Use new target_sections member
733 * progspace.h (program_space::clear_target_sections): New member
735 (program_space::target_sections): Rename member variable to
736 m_target_sections, replace with a new member function.
737 (program_space::m_target_sections): New member variable.
738 * solib-dsbt.c (scan_dyntag): Use new member function.
739 * solib-svr4.c (scan_dyntag): Likewise.
741 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
743 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
745 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
746 (section_table_read_available_memory): Make local const.
747 (exec_target::xfer_partial): Make local const.
748 (print_section_info): Make parameter const.
749 * gdb/exec.h (print_section_info): Likewise.
750 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
752 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
754 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
756 * gdb/s390-tdep.c (s390_load): Likewise.
757 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
758 * gdb/solib-svr4.c (scan_dyntag): Likewise.
759 * gdb/target-debug.h (target_debug_print_target_section_table_p):
761 (target_debug_print_const_target_section_table_p): ...this.
762 * gdb/target-delegates.c: Regenerate.
763 * gdb/target.c (target_get_section_table): Make return type const.
764 (target_section_by_addr): Likewise. Also make some locals const.
765 (memory_xfer_partial_1): Make some locals const.
766 * gdb/target.h (struct target_ops) <get_section_table>: Make
768 (target_section_by_addr): Likewise.
769 (target_get_section_table): Likewise.
771 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
773 * NEWS: Mention new 'maint info target-sections' command.
774 * maint.c (maintenance_info_target_sections): New function.
775 (_initialize_maint_cmds): Register new command.
777 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
779 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
780 (riscv_features_from_bfd): ...this. Change parameter type to
781 'bfd*', and update as required.
782 (riscv_find_default_target_description): Update call to
783 riscv_features_from_bfd. Select a default xlen based on
785 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
787 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
789 * eval.c (evaluate_subexp_standard): Call value_ind for points to
790 dynamic types in UNOP_IND.
792 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
795 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
797 (~dwarf2_queue_guard): Clear queue.
798 (queue_comp_unit): Assert that queue is
800 (process_queue): Adjust.
801 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
803 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
806 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
807 to decide whether or not to enqueue it for expansion.
808 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
809 after calling maybe_queue_comp_unit.
811 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
813 * linux-nat.c (linux_nat_filter_event): Return void.
815 2021-02-22 Tom Tromey <tromey@adacore.com>
817 * solib-svr4.c (enable_break): Update.
818 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
820 (target_bfd_reopen): Change parameter type.
821 * bfd-target.h (target_bfd_reopen): Change parameter type.
823 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
825 * thread.c (add_thread_silent): Add assert.
826 (find_thread_ptid): Add assert.
828 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
831 * inf-ptrace.c (struct target_unpusher): Move to target.h.
832 (target_unpush_up): Likewise.
833 * procfs.c (procfs_target::attach): Push target early. Use
834 target_unpush_up to unpush target in case of error.
835 * target.h (struct target_unpusher): Move here.
836 (target_unpush_up): Likewise.
838 2021-02-19 Kevin Buettner <kevinb@redhat.com>
840 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
841 (which in turn includes <gnulib/config.h>) before include
844 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
847 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
848 (decode_j_type_insn): Likewise.
849 (decode_cj_type_insn): Likewise.
850 (decode_b_type_insn): Likewise.
853 2021-02-18 Tom Tromey <tom@tromey.com>
855 * expression.h (struct expression) <evaluate>: Declare method.
856 * eval.c (evaluate_subexp): Simplify.
857 (expression::evaluate): New method.
858 (evaluate_expression, evaluate_type): Use expression::evaluate.
860 2021-02-17 Kevin Buettner <kevinb@redhat.com>
862 * ada-lang.c (ada_fold_name): Check for non-empty string prior
864 (ada_lookup_name_info): Likewise.
866 2021-02-13 Mike Frysinger <vapier@gentoo.org>
868 * aclocal.m4: Regenerate.
870 2021-02-12 Tom de Vries <tdevries@suse.de>
873 * linux-nat.c (lin_thread_get_thread_signals): Remove.
874 (lin_thread_signals): New static var.
875 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
877 * linux-nat.h (lin_thread_get_thread_signals): Remove.
878 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
880 * linux-thread-db.c (check_thread_signals): Use
881 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
883 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
885 * f-exp.y (f77_keywords): Add allocated.
886 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
887 (operator_length_f): Likewise.
888 (print_subexp_f): Likewise.
889 (dump_subexp_body_f): Likewise.
890 (operator_check_f): Likewise.
891 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
893 2021-02-11 Tom de Vries <tdevries@suse.de>
896 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
897 Return true for DW_FORM_strx.
899 2021-02-11 Tom Tromey <tromey@adacore.com>
902 * parse.c (write_exp_symbol_reference): Write sym.block.
904 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
906 * NEWS: Mention changes to 'maint info sections'.
907 * maint.c (match_substring): Return a bool, fix whitespace issue.
908 (struct single_bfd_flag_info): New struct.
909 (bfd_flag_info): New static global.
910 (match_bfd_flags): Return a bool, use bfd_flag_info.
911 (print_bfd_flags): Use bfd_flag_info.
912 (maint_print_section_info): Delete trailing whitespace.
913 (struct maint_info_sections_opts): New struct.
914 (maint_info_sections_option_defs): New static global.
915 (maint_info_sections_completer): New function.
916 (maintenance_info_sections): Use option parsing mechanism.
917 (_initialize_maint_cmds): Update command help text for 'maint info
918 sections' and register a command completer.
920 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
922 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
923 functionality merged into...
924 (maint_print_all_sections): ...this new function.
925 (maintenance_info_sections): Make use of maint_print_all_sections,
926 allow all objects to be printed even where there's no executable.
928 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
930 * breakpoint.c (resolve_sal_pc): Make use of
931 bound_minimal_symbol::obj_section.
932 * maint.c (maintenance_translate_address): Likewise.
933 * minsyms.c (minimal_symbol_upper_bound): Likewise.
934 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
936 * printcmd.c (info_address_command): Make use of
937 bound_minimal_symbol::obj_section.
939 2021-02-11 Alan Modra <amodra@gmail.com>
941 * arm-symbian-tdep.c: Delete.
942 * NEWS: Mention arm-symbian removal.
943 * Makefile.in: Remove arm-symbian-tdep entries.
944 * configure.tgt: Remove arm*-*-symbianelf*.
945 * doc/gdb.texinfo: Remove mention of SymbianOS.
946 * osabi.c (gdb_osabi_names): Remove "Symbian".
947 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
948 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
949 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
951 * testsuite/gdb.base/dup-sect.exp: Likewise.
952 * testsuite/gdb.base/long_long.exp: Likewise.
953 * testsuite/gdb.base/solib-weak.exp: Likewise.
954 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
955 * testsuite/gdb.python/py-section-script.exp: Likewise.
956 * testsuite/lib/dwarf.exp: Likewise.
957 * testsuite/lib/gdb.exp: Likewise.
959 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
961 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
962 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
963 (one_or_two_args): New pattern.
964 (f77_keywords): Add lbound and ubound.
965 * f-lang.c (fortran_bounds_all_dims): New function.
966 (fortran_bounds_for_dimension): New function.
967 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
968 (operator_length_f): Likewise.
969 (print_subexp_f): Likewise.
970 (dump_subexp_body_f): Likewise.
971 (operator_check_f): Likewise.
972 * std-operator.def (FORTRAN_LBOUND): Define.
973 (FORTRAN_UBOUND): Define.
975 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
977 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
978 and set_section_index member functions where appropriate.
979 * coffread.c (coff_symtab_read): Likewise.
980 (process_coff_symbol): Likewise.
981 * ctfread.c (set_symbol_address): Likewise.
982 * dwarf2/read.c (add_partial_symbol): Likewise.
983 (var_decode_location): Likewise.
984 * language.c: Likewise.
985 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
986 (compact_minimal_symbols): Likewise.
987 (minimal_symbol_upper_bound): Likewise.
988 * objfiles.c (relocate_one_symbol): Likewise.
989 * psympriv.h (partial_symbol::obj_section): Likewise.
990 (partial_symbol::address): Likewise.
991 * psymtab.c (partial_symtab::add_psymbol): Likewise.
992 * stabsread.c (scan_file_globals): Likewise.
993 * symmisc.c (dump_msymbols): Likewise.
994 * symtab.c (general_symbol_info::obj_section): Likewise.
995 (fixup_section): Likewise.
996 (get_msymbol_address): Likewise.
997 * symtab.h (general_symbol_info::section): Rename to...
998 (general_symbol_info::m_section): ...this.
999 (general_symbol_info::set_section_index): New member function.
1000 (general_symbol_info::section_index): Likewise.
1001 (SYMBOL_SECTION): Delete.
1002 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1003 set_section_index member functions where appropriate.
1004 (MSYMBOL_SECTION): Delete.
1005 (symbol::symbol): Update to initialize 'm_section'.
1006 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1007 (process_xcoff_symbol): Likewise.
1009 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1011 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1012 MSYMBOL_OBJ_SECTION.
1013 * findvar.c (language_defn::read_var_value): Likewise.
1014 * infcmd.c (jump_command): Likewise.
1015 * linespec.c (minsym_found): Likewise.
1016 * maint.c (maintenance_translate_address): Likewise.
1017 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1018 (minimal_symbol_upper_bound): Likewise.
1019 * parse.c (find_minsym_type_and_address): Likewise.
1020 (operator_check_standard): Likewise.
1021 * printcmd.c (info_address_command): Likewise.
1022 * symmisc.c (dump_msymbols): Likewise.
1023 (print_symbol): Likewise.
1024 * symtab.c (general_symbol_info::obj_section): Define new
1026 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1027 (find_pc_sect_compunit_symtab): Likewise.
1028 (find_function_start_sal): Likewise.
1029 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1030 MSYMBOL_OBJ_SECTION.
1031 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1033 (SYMBOL_OBJ_SECTION): Delete.
1034 (MSYMBOL_OBJ_SECTION): Delete.
1036 2021-02-09 Tom Tromey <tom@tromey.com>
1038 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1040 2021-02-09 Tom de Vries <tdevries@suse.de>
1043 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1044 construct an array type. Add assert to ensure that element_type is
1047 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1049 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1050 (gcore_collect_regset_section_cb): Delete.
1051 (gcore_collect_thread_registers): Delete.
1052 (gcore_build_thread_register_notes): Delete.
1053 (gcore_find_signalled_thread): Delete.
1054 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1055 'gdbarch' and 'thread_info' declarations.
1056 (gcore_build_thread_register_notes): Delete declaration.
1057 (gcore_find_signalled_thread): Likewise.
1058 * fbsd-tdep.c: Remove 'gcore.h' include.
1059 (struct fbsd_collect_regset_section_cb_data): New struct.
1060 (fbsd_collect_regset_section_cb): New function.
1061 (fbsd_collect_thread_registers): New function.
1062 (struct fbsd_corefile_thread_data): New struct.
1063 (fbsd_corefile_thread): New function.
1064 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1065 * linux-tdep.c: Remove 'gcore.h' include.
1066 (struct linux_collect_regset_section_cb_data): New struct.
1067 (linux_collect_regset_section_cb): New function.
1068 (linux_collect_thread_registers): New function.
1069 (linux_corefile_thread): Call Linux specific code.
1070 (find_signalled_thread): New function.
1071 (linux_make_corefile_notes): Call find_signalled_thread.
1073 2021-02-09 Tom Tromey <tromey@adacore.com>
1075 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1077 * value.c (value_contents_copy_raw): Now static.
1078 * value.h (value_contents_copy_raw): Don't declare.
1080 2021-02-09 Tom Tromey <tromey@adacore.com>
1082 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1085 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
1088 * arc-linux-tdep.c (handle_atomic_sequence): New.
1089 (arc_linux_software_single_step): Call handle_atomic_sequence().
1091 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1093 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1095 (REQUIRE_WINDOW): Call is_valid member function.
1096 (REQUIRE_WINDOW_FOR_SETTER): New define.
1097 (gdbpy_tui_is_valid): Call is_valid member function.
1098 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1099 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1101 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1102 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1105 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1107 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1108 for the title is not nullptr.
1110 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1112 * tui-layout.c (saved_tui_windows): Delete.
1113 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1114 call new get_windows member function instead.
1115 (tui_get_window_by_name): Check in tui_windows.
1116 (tui_layout_window::apply): Don't add to tui_windows.
1117 * tui-layout.h (tui_layout_base::get_windows): New member function.
1118 (tui_layout_window::get_windows): Likewise.
1119 (tui_layout_split::get_windows): Likewise.
1121 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1123 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1124 of the window objects.
1126 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1128 * python/python.c (gdbpy_print_stack): Reformat an error message.
1130 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1132 * tui/tui-interp.c (tui_command_line_handler): New function.
1133 (tui_interp::resume): Register tui_command_line_handler as the
1135 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1137 (tui_getc_1): Delete handling of '\n' and '\r'.
1138 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1140 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1142 * tui/tui-regs.c (tui_data_window::display_registers_from):
1143 Mark invisible register sub windows.
1144 (tui_data_window::check_register_values): Ignore invisible
1145 register sub windows.
1147 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1149 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1150 n_spaces with a negative value.
1152 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1154 * tui/tui-regs.c (tui_data_window::display_registers_from):
1155 Add refresh_window call.
1157 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1159 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1161 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1163 * symmisc.c (std_in, std_out, std_err): Remove.
1164 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1166 2021-02-05 Tom de Vries <tdevries@suse.de>
1168 PR breakpoints/27330
1169 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1170 glibc object file has debug info.
1172 2021-02-05 Tom de Vries <tdevries@suse.de>
1175 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1177 2021-02-05 Tom de Vries <tdevries@suse.de>
1179 PR breakpoints/27313
1180 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1183 2021-02-05 Tom Tromey <tom@tromey.com>
1185 * compile/compile-c-support.c (get_compile_context)
1186 (c_get_compile_context, cplus_get_compile_context): Change return
1188 * language.c (language_defn::get_compile_instance): New method.
1189 * language.h (language_defn::get_compile_instance): Change return
1190 type. No longer inline.
1191 * c-lang.c (c_language::get_compile_instance): Change return type.
1192 (cplus_language::get_compile_instance): Change return type.
1193 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1195 * compile/compile.c (compile_to_object): Update.
1197 2021-02-05 Tom Tromey <tom@tromey.com>
1199 * parser-defs.h (write_exp_symbol_reference): Declare.
1200 * parse.c (write_exp_symbol_reference): New function.
1201 * p-exp.y (variable): Use write_exp_symbol_reference.
1202 * m2-exp.y (variable): Use write_exp_symbol_reference.
1203 * f-exp.y (variable): Use write_exp_symbol_reference.
1204 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1205 * c-exp.y (variable): Use write_exp_symbol_reference.
1207 2021-02-05 Tom de Vries <tdevries@suse.de>
1210 * valarith.c (complex_binop): Throw an error if complex type can't
1213 2021-02-05 Tom de Vries <tdevries@suse.de>
1216 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1219 2021-02-05 Tom de Vries <tdevries@suse.de>
1221 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1223 2021-02-04 Mike Frysinger <vapier@gentoo.org>
1225 * configure.tgt (riscv*-*-*): Set gdb_sim.
1227 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1229 * target.c (target_is_non_stop_p): Return bool.
1230 * target.h (target_is_non_stop_p): Return bool.
1232 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1234 * record-full.c (record_full_async_inferior_event_handler):
1235 Don't clear async event handler.
1236 (record_full_base_target::wait): Clear async event handler at
1239 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1241 * record-btrace.c (record_btrace_handle_async_inferior_event):
1242 Don't clear async event handler.
1243 (record_btrace_target::wait): Clear async event handler at
1246 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1248 * remote.c (remote_target::wait): Clear async event handler at
1249 beginning, mark if needed at the end.
1250 (remote_async_inferior_event_handler): Don't set or clear async
1253 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1255 * async-event.h (async_event_handler_func): Add documentation.
1256 * async-event.c (check_async_event_handlers): Don't clear
1257 async_event_handler ready flag.
1258 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1260 * record-btrace.c (record_btrace_handle_async_inferior_event):
1262 * record-full.c (record_full_async_inferior_event_handler):
1264 * remote-notif.c (remote_async_get_pending_events_handler):
1266 * remote.c (remote_async_inferior_event_handler): Likewise.
1268 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1270 * infrun.c (handle_inferior_event): Move stop_soon variable to
1273 2021-02-03 Pedro Alves <pedro@palves.net>
1275 * infcmd.c (detach_command): Hold strong reference to target, and
1276 if all-stop on entry, restart threads on exit.
1277 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1278 (restart_stepped_thread): ... this new function. Also handle
1280 (restart_after_all_stop_detach): New function.
1281 * infrun.h (restart_after_all_stop_detach): Declare.
1283 2021-02-03 Pedro Alves <pedro@palves.net>
1285 * infrun.c (struct step_over_info): Initialize fields.
1286 (prepare_for_detach): Handle ongoing in-line step over.
1288 2021-02-03 Pedro Alves <pedro@palves.net>
1290 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1292 * remote.c (remote_target::remote_detach_1): ... and here ...
1293 * target.c (target_detach): ... instead of here.
1294 * target.h (target_ops::detach): Add comment.
1296 2021-02-03 Pedro Alves <pedro@palves.net>
1298 * infrun.c (struct wait_one_event): Move higher up.
1299 (prepare_for_detach): Abort in-progress displaced steps instead of
1300 letting them complete.
1301 (handle_one): If the inferior is detaching, don't add the thread
1302 back to the global step-over chain.
1303 (restart_threads): Don't restart threads if detaching.
1304 (handle_signal_stop): Remove inferior::detaching reference.
1306 2021-02-03 Pedro Alves <pedro@palves.net>
1308 * infrun.c (prepare_for_detach): Don't release scoped_restore
1311 2021-02-03 Pedro Alves <pedro@palves.net>
1313 * infrun.c (handle_one): New function, factored out from ...
1314 (stop_all_threads): ... here.
1316 2021-02-03 Pedro Alves <pedro@palves.net>
1318 * remote.c (remote_notif_stop_ack): Don't error out on
1319 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1320 (remote_target::discard_pending_stop_replies): Don't delete
1321 in-flight notification; instead, clear its contents.
1323 2021-02-03 Pedro Alves <pedro@palves.net>
1325 * remote.c (extended_remote_target::attach): Set target async in
1326 the target-non-stop path too.
1328 2021-02-03 Pedro Alves <pedro@palves.net>
1331 * infrun.c (handle_signal_stop): Move main context_switch call
1332 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1334 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1336 * NEWS (Changed commands): Add entry for the behavior change of
1337 the inferior command.
1338 * inferior.c (inferior_command): When no argument is given to the
1339 inferior command, display info about the currently selected
1342 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1344 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1346 (read_attribute_reprocess): Adjust.
1348 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1350 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1351 <gnu_ranges_base>: ... this...
1352 <rnglists_base>: ... and this.
1353 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1354 <gnu_ranges_base>: ... this...
1355 <rnglists_base>: ... and this.
1356 (read_cutu_die_from_dwo): Adjust
1357 (dwarf2_get_pc_bounds): Adjust
1358 (dwarf2_record_block_ranges): Adjust.
1359 (read_full_die_1): Adjust
1360 (partial_die_info::read): Adjust.
1361 (read_rnglist_index): Adjust.
1363 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1366 * dwarf2/read.c (read_loclists_rnglists_header): Add
1367 header_offset parameter and use it.
1368 (read_loclist_index): Read header of the current contribution,
1369 not the one at the beginning of the section.
1370 (read_rnglist_index): Likewise.
1372 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1375 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1376 requires_reprocessing flag.
1377 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1379 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1380 and DW_FORM_loclistx.
1381 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1382 instead of set_address for DW_FORM_loclistx and
1385 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1387 * dwarf2/read.c (read_loclist_index): Remove bound check for
1389 (read_rnglist_index): Likewise.
1391 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1393 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1396 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1398 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1400 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1402 * dwarf2/read.c (read_loclist_index): Change complaints into
1405 2021-02-02 Tom de Vries <tdevries@suse.de>
1408 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1411 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1413 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1414 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1415 here from linux-tdep.c and given a new name. Minor cleanups.
1416 (gcore_collect_regset_section_cb): Likewise.
1417 (gcore_collect_thread_registers): Likewise.
1418 (gcore_build_thread_register_notes): Likewise.
1419 (gcore_find_signalled_thread): Likewise.
1420 * gcore.h (gcore_build_thread_register_notes): Declare.
1421 (gcore_find_signalled_thread): Declare.
1422 * fbsd-tdep.c: Add 'gcore.h' include.
1423 (struct fbsd_collect_regset_section_cb_data): Delete.
1424 (fbsd_collect_regset_section_cb): Delete.
1425 (fbsd_collect_thread_registers): Delete.
1426 (struct fbsd_corefile_thread_data): Delete.
1427 (fbsd_corefile_thread): Delete.
1428 (fbsd_make_corefile_notes): Call
1429 gcore_build_thread_register_notes instead of the now deleted
1431 * linux-tdep.c: Add 'gcore.h' include.
1432 (struct linux_collect_regset_section_cb_data): Delete.
1433 (linux_collect_regset_section_cb): Delete.
1434 (linux_collect_thread_registers): Delete.
1435 (linux_corefile_thread): Call
1436 gcore_build_thread_register_notes.
1437 (find_signalled_thread): Delete.
1438 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1440 2021-01-29 Tom de Vries <tdevries@suse.de>
1442 PR breakpoints/26063
1443 * infrun.c (process_event_stop_test): Reset
1444 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1447 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1449 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1450 assert. Extend the header comment.
1452 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1454 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1455 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1456 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1457 (tui_locator_win_info_ptr): Delete declaration.
1458 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1459 (tui_disasm_window::set_contents): Fetch state from tui_location
1461 (tui_get_begin_asm_address): Likewise.
1462 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1464 (get_locator_window): Delete.
1465 (initialize_known_windows): Treat locator window just like all the
1467 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1468 (tui_source_window::set_contents): Fetch state from tui_location
1470 (tui_source_window::showing_source_p): Likewise.
1471 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1473 (tui_locator_win_info_ptr): Delete.
1474 (tui_locator_window::make_status_line): Fetch state from
1475 tui_location global.
1476 (tui_locator_window::rerender): Remove check of 'handle',
1477 reindent function body.
1478 (tui_locator_window::set_locator_fullname): Delete.
1479 (tui_locator_window::set_locator_info): Delete.
1480 (tui_update_locator_fullname): Delete.
1481 (tui_show_frame_info): Likewise.
1482 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1483 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1484 tui/tui-location.h and renamed to
1485 tui_location_tracker::set_location.
1486 (tui_locator_window::set_locator_fullname): Moved to
1487 tui/tui-location.h and renamed to
1488 tui_location_tracker::set_fullname.
1489 (tui_locator_window::full_name): Delete.
1490 (tui_locator_window::proc_name): Delete.
1491 (tui_locator_window::line_no): Delete.
1492 (tui_locator_window::addr): Delete.
1493 (tui_locator_window::gdbarch): Delete.
1494 (tui_update_locator_fullname): Delete declaration.
1495 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1497 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1498 (tui_display_main): Call function on tui_location directly.
1499 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1500 * tui/tui-location.c: New file.
1501 * tui/tui-location.h: New file.
1503 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1505 * gdbtypes.h (get_type_arch): Rename to...
1506 (struct type) <arch>: ... this, update all users.
1508 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1510 * gdbtypes.h (struct type) <arch>: Rename to...
1511 <arch_owner>: ... this, update all users.
1512 <objfile>: Rename to...
1513 <objfile_owner>: ... this, update all users.
1515 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1517 * gdbcmd.h (execute_command_to_string): Update comment.
1518 * top.c (execute_command_to_string): Update header comment.
1520 2021-01-28 Tom de Vries <tdevries@suse.de>
1522 PR breakpoints/27205
1523 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1524 (create_longjmp_master_breakpoint_names): New function, factored out
1526 (create_longjmp_master_breakpoint): ... here. Only try to install
1527 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1528 breakpoint in libc.so failed.
1530 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1533 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1534 unique_ptr is released when the wrapped pointer is kept for later
1537 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1539 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1540 BLR and BR instructions.
1541 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1542 (enum aarch64_masks): New.
1544 2021-01-26 Tom Tromey <tromey@adacore.com>
1546 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1547 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1548 (windows_init_thread_list, windows_nat::handle_load_dll)
1549 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1550 (windows_nat_target::resume)
1551 (windows_nat_target::get_windows_debug_event)
1552 (windows_nat_target::interrupt, windows_xfer_memory)
1553 (windows_nat_target::close): Update.
1554 * nat/windows-nat.c (DEBUG_EVENTS): Use
1555 debug_prefixed_printf_cond.
1556 (matching_pending_stop, fetch_pending_stop)
1557 (continue_last_debug_event): Update.
1559 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1561 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1562 elfcore_write_file_note.
1564 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
1566 * arc-tdep.c (arc_add_reggroups): New function.
1567 (arc_gdbarch_init): Call arc_add_reggroups.
1569 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
1571 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1573 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1574 Simon Marchi <simon.marchi@polymtl.ca>
1575 Tom de Vries <tdevries@suse.de>
1577 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1580 2021-01-25 Tom Tromey <tromey@adacore.com>
1582 * dwarf2/read.c (get_mpz): New function.
1583 (get_dwarf2_rational_constant): Use it.
1585 2021-01-25 Tom Tromey <tromey@adacore.com>
1587 * ada-lang.c (resolve_subexp): Handle array context.
1589 2021-01-23 Tom Tromey <tom@tromey.com>
1592 * compile/compile-loc2c.c (note_register): New function.
1593 (pushf_register_address, pushf_register): Use it.
1595 2021-01-23 Tom Tromey <tom@tromey.com>
1597 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1598 Change type of "registers_used".
1599 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1600 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1601 (locexpr_generate_c_location, loclist_generate_c_location): Change
1602 type of "registers_used".
1603 * compile/compile.h (compile_dwarf_expr_to_c)
1604 (compile_dwarf_bounds_to_c): Update.
1605 * compile/compile-loc2c.c (pushf_register_address)
1606 (pushf_register, do_compile_dwarf_expr_to_c)
1607 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
1608 of "registers_used".
1609 * compile/compile-c.h (generate_c_for_variable_locations):
1611 * compile/compile-c-symbols.c (generate_vla_size)
1612 (generate_c_for_for_one_variable): Change type of
1614 (generate_c_for_variable_locations): Return std::vector.
1615 * compile/compile-c-support.c (generate_register_struct): Change
1616 type of "registers_used".
1619 2021-01-23 Tom Tromey <tom@tromey.com>
1621 * compile/compile-internal.h (class compile_instance)
1622 <set_arguments>: Change return type.
1623 * compile/compile.c (compile_to_object): Remove call to reset.
1624 (compile_instance::set_arguments): Change return type.
1626 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1628 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1629 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1631 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1633 * Makefile.in (SELFTESTS_SRCS): Add
1634 unittests/gdb_tilde_expand-selftests.c.
1635 * unittests/gdb_tilde_expand-selftests.c: New file.
1637 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1640 * NEWS: Mention new command.
1641 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1642 (version_style): Define.
1643 (cli_style_option::cli_style_option): Add intensity parameter, and
1645 (_initialize_cli_style): Register version style set/show commands.
1646 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1647 (version_style): Declare.
1648 * top.c (print_gdb_version): Use version_stype, and styled_string
1649 to print the GDB version string.
1651 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1653 * utils.c (emit_style_escape): Only emit an escape sequence if the
1654 requested style is different than the current applied style.
1655 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1656 current applied_style.
1657 (fputs_styled): Remove is_default check.
1658 (fputs_styled_unfiltered): Likewise.
1659 (vfprintf_styled_no_gdbfmt): Likewise.
1661 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1663 * remote.h (remote_debug_printf): New.
1664 (remote_debug_printf_nofunc): New.
1665 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1666 * remote.c: Use above macros throughout file.
1668 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1670 * remote.h (remote_debug): Change to bool.
1671 * remote.c (remote_debug): Change to bool.
1672 (_initialize_remote): Adjust.
1674 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1676 * target.h (remote_debug): Move to...
1677 * remote.h (remote_debug): ... here.
1678 * top.c (remote_debug): Move to...
1679 * remote.c (remote_debug): ... here.
1680 * remote-sim.c: Include remote.h.
1682 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1684 * cli/cli-cmds.c (show_remote_debug): Remove.
1685 (show_remote_timeout): Remove.
1686 (_initialize_cli_cmds): Don't register commands.
1687 * remote.c (show_remote_debug): Move here.
1688 (show_remote_timeout): Move here.
1689 (_initialize_remote): Register commands.
1691 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1693 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
1694 type::objfile method instead.
1696 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1698 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
1699 use the type::is_objfile_owned method.
1701 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
1703 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
1704 (TYPE_OWNER): Remove.
1705 (TYPE_OBJFILE): Adjust.
1706 (struct main_type) <flag_objfile_owned>: Rename to...
1707 <m_flag_objfile_owned>: ... this.
1708 <owner>: Rename to...
1709 <m_owner>: ... this.
1710 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
1712 (TYPE_ALLOC): Adjust.
1713 * gdbtypes.c (alloc_type): Adjust.
1714 (alloc_type_arch): Adjust.
1715 (alloc_type_copy): Adjust.
1716 (get_type_arch): Adjust.
1717 (smash_type): Adjust.
1718 (lookup_array_range_type): Adjust.
1719 (recursive_dump_type): Adjust.
1720 (copy_type_recursive): Adjust.
1721 * compile/compile-c-types.c (convert_func): Adjust.
1722 (convert_type_basic): Adjust.
1723 * compile/compile-cplus-types.c (compile_cplus_convert_func):
1726 (language_arch_info::type_and_symbol::alloc_type_symbol):
1729 2021-01-21 Luis Machado <luis.machado@linaro.org>
1731 * coffread.c (enter_linenos): Passing string to complaint.
1732 * valops.c (value_assign): Make array view.
1734 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1736 * auto-load.h (debug_auto_load): Move here.
1737 (auto_load_debug_printf): New.
1738 * auto-load.c: Use auto_load_debug_printf.
1739 (debug_auto_load): Move to header.
1740 * linux-thread-db.c (try_thread_db_load): Use
1741 auto_load_debug_printf.
1742 * main.c (captured_main_1): Likewise.
1744 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1746 * f-valprint.c (f77_array_offset_tbl): Remove.
1748 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1750 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1752 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1754 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1757 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
1760 * python/py-breakpoint.c (bppy_get_location): Handle
1761 bp_hardware_breakpoint.
1762 (bppy_init): Likewise.
1763 (gdbpy_breakpoint_created): Likewise.
1765 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1767 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1769 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1771 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1772 (_initialize_gdb_bfd): Adjust.
1774 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1777 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1779 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1781 * dwarf2/read.c (follow_die_offset): Add logging.
1782 (dwarf2_per_objfile::age_comp_units): Add logging.
1784 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1786 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1787 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1788 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1789 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1790 * arm-tdep.c (struct frame_unwind): Make static.
1791 * auto-load.c (auto_load_safe_path_vec): Make static.
1792 * csky-tdep.c (csky_stub_unwind): Make static.
1793 * gdbarch.c (gdbarch_data_registry): Make static.
1794 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1795 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1796 * i386-tdep.c (i386_frame_setup_skip_insns,
1797 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1799 * infrun.c (observer_mode): Make static.
1800 * linux-nat.c (sigchld_action): Make static.
1801 * linux-thread-db.c (thread_db_list): Make static.
1802 * maint-test-options.c (maintenance_test_options_list):
1803 * mep-tdep.c (mep_csr_registers): Make static.
1804 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1805 (stats): Make static.
1806 * nat/linux-osdata.c (struct osdata_type): Make static.
1807 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1808 * progspace.c (last_program_space_num): Make static.
1809 * python/py-param.c (struct parm_constant): Remove struct type
1811 (parm_constants): Make static.
1812 * python/py-record-btrace.c (btpy_list_methods): Make static.
1813 * python/py-record.c (recpy_gap_type): Make static.
1814 * record.c (record_goto_cmdlist): Make static.
1815 * regcache.c (regcache_descr_handle): Make static.
1816 * registry.h (DEFINE_REGISTRY): Make definition static.
1817 * symmisc.c (std_in, std_out, std_err): Make static.
1818 * top.c (previous_saved_command_line): Make static.
1819 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1821 * unittests/command-def-selftests.c (nr_duplicates,
1822 nr_invalid_prefixcmd, lists): Make static.
1823 * unittests/observable-selftests.c (test_notification): Make
1825 * unittests/optional/assignment/1.cc (counter): Make static.
1826 * unittests/optional/assignment/2.cc (counter): Make static.
1827 * unittests/optional/assignment/3.cc (counter): Make static.
1828 * unittests/optional/assignment/4.cc (counter): Make static.
1829 * unittests/optional/assignment/5.cc (counter): Make static.
1830 * unittests/optional/assignment/6.cc (counter): Make static.
1832 2021-01-20 Joel Sherrill <joel@rtems.org>
1835 * remote.c (struct remote_thread_info) <resume_state>: Rename
1837 <get_resume_state>: ... this.
1838 (remote_target::resume): Adjust.
1839 (remote_target::commit_resume): Adjust.
1840 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
1842 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
1843 Tom Tromey <tom@tromey.com>
1845 * stap-probe.c (stap_parse_single_operand): Handle '!'
1847 (stap_parse_argument_conditionally): Likewise.
1848 Skip spaces after processing open-parenthesis sub-expression.
1849 (stap_parse_argument_1): Skip spaces after call to
1850 stap_parse_argument_conditionally.
1851 Handle case when right-side expression is a parenthesized
1853 Skip spaces after call to stap_parse_argument_1.
1855 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
1857 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
1859 2021-01-19 Luis Machado <luis.machado@linaro.org>
1861 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
1862 memory and save data.
1863 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
1864 (trad_frame_set_unknown, trad_frame_set_value_bytes)
1865 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1866 (trad_frame_value_bytes_p): Remove.
1867 (trad_frame_reset_saved_regs): Adjust documentation.
1868 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
1869 constructor and reset the state of the registers.
1870 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1871 (trad_frame_value_bytes_p, trad_frame_set_value)
1872 (trad_frame_set_realreg, trad_frame_set_addr)
1873 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
1874 (trad_frame_set_reg_realreg): Update to call member function.
1875 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
1876 (trad_frame_get_prev_register): Likewise.
1878 * aarch64-tdep.c (aarch64_analyze_prologue)
1879 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
1880 (aarch64_prologue_prev_register): Update to use member functions.
1881 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1882 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
1883 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
1884 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
1885 (arm_make_epilogue_frame_cache): Likewise.
1886 * avr-tdep.c (avr_frame_unwind_cache)
1887 (avr_frame_prev_register): Likewise.
1888 * cris-tdep.c (cris_scan_prologue): Likewise.
1889 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
1890 * frv-tdep.c (frv_analyze_prologue): Likewise.
1891 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
1892 * lm32-tdep.c (lm32_frame_cache): Likewise.
1893 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1894 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1895 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
1896 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
1897 (reset_saved_regs): Adjust to set realreg.
1898 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
1899 call member functions.
1900 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
1901 * s390-tdep.c (s390_prologue_frame_unwind_cache)
1902 (s390_backchain_frame_unwind_cache): Likewise.
1903 * score-tdep.c (score7_analyze_prologue)
1904 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
1905 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
1906 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1907 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
1908 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1909 * tilegx-tdep.c (tilegx_analyze_prologue)
1910 (tilegx_frame_cache): Likewise.
1911 * v850-tdep.c (v850_frame_cache): Likewise.
1912 * vax-tdep.c (vax_frame_cache): Likewise.
1914 2021-01-19 Luis Machado <luis.machado@linaro.org>
1916 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
1918 (put_frame_register_bytes): Likewise.
1919 Adjust documentation.
1920 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
1921 (safe_frame_unwind_memory): Likewise.
1922 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
1923 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
1925 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
1926 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
1927 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1928 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
1929 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
1930 * dwarf2/loc.c (rw_pieced_value): Likewise.
1931 * hppa-tdep.c (hppa_frame_cache): Likewise.
1932 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
1933 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
1934 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1935 (i386_linux_rt_sigtramp_start): Likewise.
1936 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1937 * i386-tdep.c (i386_register_to_value): Likewise.
1938 * i387-tdep.c (i387_register_to_value): Likewise.
1939 * ia64-tdep.c (ia64_register_to_value): Likewise.
1940 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
1941 (m32r_linux_rt_sigtramp_start): Likewise.
1942 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
1943 * m68k-tdep.c (m68k_register_to_value): Likewise.
1944 * mips-tdep.c (mips_register_to_value)
1945 (mips_value_to_register): Likewise.
1946 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
1947 (ppcfbsd_sigtramp_frame_cache): Likewise.
1948 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
1949 (ppcobsd_sigtramp_frame_cache): Likewise.
1950 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
1951 (rs6000_register_to_value): Likewise.
1952 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
1953 * tramp-frame.c (tramp_frame_start): Likewise.
1954 * valops.c (value_assign): Likewise.
1956 2021-01-19 Luis Machado <luis.machado@linaro.org>
1958 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
1960 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
1961 instead of buffer and size.
1962 (trad_frame_set_reg_value_bytes): Likewise.
1963 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
1964 (trad_frame_set_value_bytes): Likewise.
1966 2021-01-18 Mike Frysinger <vapier@gentoo.org>
1968 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
1970 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
1972 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
1973 (riscv_fbsd_gregset): Use riscv_supply_regset.
1974 (riscv_fbsd_fpregset): Likewise.
1975 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
1976 (riscv_linux_fregset): Likewise.
1977 * riscv-tdep.c (riscv_supply_regset): Define new function.
1978 * riscv-tdep.h (riscv_supply_regset): Declare new function.
1980 2021-01-18 Tom de Vries <tdevries@suse.de>
1983 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
1985 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
1988 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1990 * remote.c (class remote_target) <remote_hostio_send_command,
1991 remote_hostio_parse_result>: Constify parameter.
1992 (remote_hostio_parse_result): Likewise.
1993 (remote_target::remote_hostio_send_command): Adjust.
1994 (remote_target::remote_hostio_pread_vFile): Adjust.
1995 (remote_target::fileio_readlink): Adjust.
1996 (remote_target::fileio_fstat): Adjust.
1998 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2000 * remote.c (remote_target::start_remote): Move wait_status to
2003 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2005 * remote.c (class remote_target):
2006 <add_current_inferior_and_thread>: Constify parameter.
2007 (stop_reply_extract_thread): Likewise.
2008 (remote_target::get_current_thread): Likewise.
2009 (remote_target::add_current_inferior_and_thread): Likewise.
2011 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2013 * remote.c (class remote_target)
2014 <remote_unpack_thread_info_response,
2015 parse_threadlist_response>: Constify parameter and/or return
2016 value and or local variable.
2017 (stub_unpack_int): Likewise.
2018 (unpack_nibble): Likewise.
2019 (unpack_byte): Likewise.
2020 (unpack_int): Likewise.
2021 (unpack_string): Likewise.
2022 (unpack_threadid): Likewise.
2023 (remote_target::remote_unpack_thread_info_response): Likewise.
2024 (remote_target::parse_threadlist_response): Likewise.
2026 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2028 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2030 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
2032 * MAINTAINERS (Write After Approval): Add myself.
2034 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2036 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2037 because is_trivially_default_constructible was first implemented with
2040 2021-01-14 Tom de Vries <tdevries@suse.de>
2042 PR breakpoints/27151
2043 * objfiles.h (in_plt_section): Handle .plt.sec.
2045 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2049 (remote_target::select_thread_for_ambiguous_stop_reply): New
2051 (remote_target::process_stop_reply): Call
2052 select_thread_for_ambiguous_stop_reply.
2054 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2056 * record-btrace.c (class record_btrace_target): Remove.
2057 (record_btrace_target::commit_resume): Remove.
2058 * record-full.c (class record_full_target): Remove.
2059 (record_full_target::commit_resume): Remove.
2061 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2063 * remote.c (enum class resume_state): New.
2064 (struct resumed_pending_vcont_info): New.
2065 (struct remote_thread_info) <resume_state, set_not_resumed,
2066 set_resumed_pending_vcont, resumed_pending_vcont_info,
2067 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2069 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2070 (remote_target::remote_add_thread): Adjust.
2071 (remote_target::process_initial_stop_replies): Adjust.
2072 (remote_target::resume): Adjust.
2073 (remote_target::commit_resume): Rely on state in
2074 remote_thread_info and not on tp->executing.
2075 (remote_target::process_stop_reply): Adjust.
2077 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2079 * arc-tdep.h (arc_debug_printf): New.
2080 * arc-tdep.c: Use arc_debug_printf.
2081 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2082 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2083 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2085 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2087 * arc-tdep.h (arc_debug): Change type to bool.
2088 * arc-tdep.c (arc_debug): Change type to bool.
2089 (arc_analyze_prologue): Adjust.
2090 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2091 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2093 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2095 * auto-load.c (auto_load_objfile_script_1): Use bool.
2096 (execute_script_contents): Use bool.
2098 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2100 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2102 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2104 * extension-priv.h (struct extension_language_script_ops)
2105 <auto_load_enabled>: Return bool.
2106 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2108 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2110 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2112 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2113 move comment to header.
2114 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2116 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2117 move comment to header.
2119 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2121 * auto-load.h (file_is_auto_load_safe): Change return type to
2122 bool, move comment here.
2123 * auto-load.c (file_is_auto_load_safe): Change return type and
2124 advice_printed to bool. Move comment to header.
2126 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2128 * jit.c (jit_debug_printf): New, use throughout file.
2130 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2132 * infrun.c (normal_stop): Fix indentation.
2134 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2136 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2138 * symfile.h: ... here.
2139 * symfile.c: Update doc.
2141 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2143 * target.h (baud_rate, serial_parity): Move declarations...
2144 * serial.h: ... here.
2145 * main.c: Include serial.h.
2146 * serial.c (baud_rate, serial_parity): Update doc.
2148 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2150 * top.c (pre_init_ui_hook): Remove.
2152 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2154 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2155 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2156 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2157 * features/aarch64-fpu.xml: Add bfloat16 type.
2159 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2161 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2163 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2165 * f-exp.y (dot_ops): Rename to...
2166 (fortran_operators): ...this. Add a header comment. Add symbol
2168 (yylex): Update to use fortran_operators not dot_ops. Remove
2169 special handling for '**', this is now included in
2172 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2174 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2175 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2176 * aarch64-tdep.c: Use aarch64_debug_printf.
2178 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2180 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2183 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2185 * jit.c (jit_debug): Change type to bool.
2186 (_initialize_jit): Adjust.
2188 2021-01-09 Tom Tromey <tom@tromey.com>
2191 * compile/compile.c (compile_to_object): Avoid crash when
2192 osabi_triplet_regexp returns NULL.
2194 2021-01-09 Tom Tromey <tom@tromey.com>
2196 * tracepoint.h (class collection_list) <append_exp>: Take a
2198 * tracepoint.c (collection_list::append_exp): Take a std::string.
2199 (encode_actions_1): Update.
2201 2021-01-08 Tom Tromey <tromey@adacore.com>
2203 * parse.c (parse_expression): Add void_context_p parameter. Use
2204 parse_exp_in_context.
2205 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2207 (print_command, call_command): Update.
2208 * expression.h (parse_expression): Add void_context_p parameter.
2210 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2212 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2213 for internalvar components that have a dynamic location.
2215 2021-01-08 Tom de Vries <tdevries@suse.de>
2218 * breakpoint.c (create_exception_master_breakpoint_probe)
2219 (create_exception_master_breakpoint_hook): Factor out
2221 (create_exception_master_breakpoint): ... here. Only try to install
2222 the master exception breakpoint in objfile.debug using the
2223 _Unwind_DebugHook method, if the install using probes in objfile
2226 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2228 * f-lang.c (fortran_value_subarray): Call value_from_component.
2230 2021-01-07 Mike Frysinger <vapier@gentoo.org>
2232 * remote-sim.c: Include memory-map.h.
2233 (gdbsim_target): Define memory_map override.
2234 (gdbsim_target::memory_map): Define.
2236 2021-01-07 Tom Tromey <tromey@adacore.com>
2238 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2240 2021-01-07 Tom Tromey <tromey@adacore.com>
2242 * ada-lang.c (add_component_interval): Start loop using vector's
2245 2021-01-06 Tom Tromey <tromey@adacore.com>
2247 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2249 * valarith.c (fixed_point_binop): Handle multiplication
2250 and division specially.
2251 * valops.c (value_to_gdb_mpq): New function.
2252 (value_cast_to_fixed_point): Use it.
2254 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2256 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2257 Call wnoutrefresh instead of tui_win_info::refresh_window.
2259 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2261 * tui/tui-source.c (tui_source_window::show_line_number):
2262 Redraw second space after line number.
2264 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2267 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2268 Fix source pad size in prefresh.
2269 (tui_source_window_base::show_source_content): Grow source pad
2272 2021-01-04 Mike Frysinger <vapier@gentoo.org>
2274 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2275 (bfin_frame_align): Use align_down.
2277 2021-01-04 Tom de Vries <tdevries@suse.de>
2279 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2280 terminators that do not terminate anything.
2282 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2284 * debug.c (debug_print_depth): New.
2285 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2286 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2287 * infrun.c (start_step_over): Use
2288 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2289 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2290 INFRUN_SCOPED_DEBUG_START_END.
2291 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2293 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2295 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2297 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2299 * utils.c (vfprintf_unfiltered): Print timestamp only when
2300 previous debug output ended with a newline.
2302 2021-01-04 Luis Machado <luis.machado@linaro.org>
2304 Update all users of trad_frame_saved_reg to use the new member
2307 Remote all struct keywords from declarations of trad_frame_saved_reg
2308 types, except on forward declarations.
2310 * aarch64-tdep.c: Update.
2311 * alpha-mdebug-tdep.c: Update.
2312 * alpha-tdep.c: Update.
2313 * arc-tdep.c: Update.
2314 * arm-tdep.c: Update.
2315 * avr-tdep.c: Update.
2316 * cris-tdep.c: Update.
2317 * csky-tdep.c: Update.
2318 * frv-tdep.c: Update.
2319 * hppa-linux-tdep.c: Update.
2320 * hppa-tdep.c: Update.
2321 * hppa-tdep.h: Update.
2322 * lm32-tdep.c: Update.
2323 * m32r-linux-tdep.c: Update.
2324 * m32r-tdep.c: Update.
2325 * m68hc11-tdep.c: Update.
2326 * mips-tdep.c: Update.
2327 * moxie-tdep.c: Update.
2328 * riscv-tdep.c: Update.
2329 * rs6000-tdep.c: Update.
2330 * s390-linux-tdep.c: Update.
2331 * s390-tdep.c: Update.
2332 * score-tdep.c: Update.
2333 * sparc-netbsd-tdep.c: Update.
2334 * sparc-sol2-tdep.c: Update.
2335 * sparc64-fbsd-tdep.c: Update.
2336 * sparc64-netbsd-tdep.c: Update.
2337 * sparc64-obsd-tdep.c: Update.
2338 * sparc64-sol2-tdep.c: Update.
2339 * tilegx-tdep.c: Update.
2340 * v850-tdep.c: Update.
2341 * vax-tdep.c: Update.
2343 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2344 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2346 * trad-frame.c: Update.
2347 Remove TF_REG_* enum.
2348 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2349 a trivially-constructible struct.
2350 (trad_frame_reset_saved_regs): Adjust to use member function.
2351 (trad_frame_value_p): Likewise.
2352 (trad_frame_addr_p): Likewise.
2353 (trad_frame_realreg_p): Likewise.
2354 (trad_frame_value_bytes_p): Likewise.
2355 (trad_frame_set_value): Likewise.
2356 (trad_frame_set_realreg): Likewise.
2357 (trad_frame_set_addr): Likewise.
2358 (trad_frame_set_unknown): Likewise.
2359 (trad_frame_set_value_bytes): Likewise.
2360 (trad_frame_get_prev_register): Likewise.
2361 * trad-frame.h: Update.
2362 (trad_frame_saved_reg_kind): New enum.
2363 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2364 <m_kind, m_reg>: New member fields.
2365 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2366 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2367 <is_addr, is_unknown, is_value_bytes>: New member functions.
2369 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2371 * target-float.c: Fix typos.
2373 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
2375 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2377 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2379 * gdbarch.sh: Update copyright year range.
2381 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2383 Update copyright year range in copyright header of all GDB files.
2385 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2387 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2388 to the list of directories to update.
2390 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2392 * top.c (print_gdb_version): Update copyright year.
2394 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2396 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
2398 For older changes see ChangeLog-2020.
2404 version-control: never