1 2021-03-08 Tom Tromey <tom@tromey.com>
3 * ada-lang.c (ada_binop_in_bounds): New function.
4 (ada_evaluate_subexp): Use it.
6 2021-03-08 Tom Tromey <tom@tromey.com>
8 * ada-lang.c (ada_ternop_slice): New function.
9 (ada_evaluate_subexp): Use it.
11 2021-03-08 Tom Tromey <tom@tromey.com>
13 * ada-lang.c (ada_equal_binop): New function.
14 (ada_evaluate_subexp): Use it.
16 2021-03-08 Tom Tromey <tom@tromey.com>
18 * ada-lang.c (ada_mult_binop): New function.
19 (ada_evaluate_subexp): Use it.
21 2021-03-08 Tom Tromey <tom@tromey.com>
23 * ada-lang.c (ada_abs): New function.
24 (ada_evaluate_subexp): Use it.
26 2021-03-08 Tom Tromey <tom@tromey.com>
28 * ada-lang.c (ada_atr_size): New function.
29 (ada_evaluate_subexp): Use it.
31 2021-03-08 Tom Tromey <tom@tromey.com>
33 * ada-lang.c (ada_atr_tag): New function.
34 (ada_evaluate_subexp): Use it.
36 2021-03-08 Tom Tromey <tom@tromey.com>
38 * ada-lang.c (ada_unop_in_range): New function.
39 (ada_evaluate_subexp): Use it.
41 2021-03-08 Tom Tromey <tom@tromey.com>
43 * ada-lang.c (ada_unop_neg): New function.
44 (ada_evaluate_subexp): Use it.
46 2021-03-08 Tom Tromey <tom@tromey.com>
48 * ada-lang.c (eval_ternop_in_range): New function.
49 (ada_evaluate_subexp): Use it.
51 2021-03-08 Tom Tromey <tom@tromey.com>
53 * opencl-lang.c (eval_opencl_assign): New function.
54 (evaluate_subexp_opencl): Use it.
56 2021-03-08 Tom Tromey <tom@tromey.com>
58 * eval.c (eval_op_objc_msgcall): New function.
59 (evaluate_subexp_standard): Use it.
61 2021-03-08 Tom Tromey <tom@tromey.com>
63 * eval.c (eval_binop_assign_modify): New function.
64 (evaluate_subexp_standard): Use it.
66 2021-03-08 Tom Tromey <tom@tromey.com>
68 * m2-lang.c (eval_op_m2_subscript): New function.
69 (evaluate_subexp_modula2): Use it.
71 2021-03-08 Tom Tromey <tom@tromey.com>
73 * m2-lang.c (eval_op_m2_high): New function.
74 (evaluate_subexp_modula2): Use it.
76 2021-03-08 Tom Tromey <tom@tromey.com>
78 * eval.c (evaluate_subexp_for_address_base): New function.
79 (evaluate_subexp_for_address): Use it.
80 (evaluate_subexp_for_sizeof_base): New function.
81 (evaluate_subexp_for_sizeof): Use it.
83 2021-03-08 Tom Tromey <tom@tromey.com>
85 * rust-lang.c (eval_op_rust_structop): New function.
86 (rust_evaluate_subexp): Use it.
88 2021-03-08 Tom Tromey <tom@tromey.com>
90 * rust-lang.c (eval_op_rust_struct_anon): New function.
91 (rust_evaluate_subexp): Use it.
93 2021-03-08 Tom Tromey <tom@tromey.com>
95 * rust-lang.c (eval_op_rust_array): New function.
96 (rust_evaluate_subexp): Use it.
98 2021-03-08 Tom Tromey <tom@tromey.com>
100 * rust-lang.c (eval_op_rust_complement): New function.
101 (rust_evaluate_subexp): Use it.
103 2021-03-08 Tom Tromey <tom@tromey.com>
105 * rust-lang.c (eval_op_rust_ind): New function.
106 (rust_evaluate_subexp): Use it.
108 2021-03-08 Tom Tromey <tom@tromey.com>
110 * rust-lang.c (rust_subscript): Change parameters.
111 (rust_evaluate_subexp): Update.
113 2021-03-08 Tom Tromey <tom@tromey.com>
115 * rust-lang.c (rust_range): Change parameters.
116 (rust_evaluate_subexp): Update.
118 2021-03-08 Tom Tromey <tom@tromey.com>
120 * f-lang.c (eval_op_f_allocated): New function.
121 (evaluate_subexp_f): Use it.
123 2021-03-08 Tom Tromey <tom@tromey.com>
125 * f-lang.c (fortran_require_array): New function.
126 (evaluate_subexp_f): Use it.
128 2021-03-08 Tom Tromey <tom@tromey.com>
130 * f-lang.c (eval_op_f_kind): New function.
131 (evaluate_subexp_f): Use it.
133 2021-03-08 Tom Tromey <tom@tromey.com>
135 * f-lang.c (eval_op_f_cmplx): New function.
136 (evaluate_subexp_f): Use it.
138 2021-03-08 Tom Tromey <tom@tromey.com>
140 * f-lang.c (eval_op_f_modulo): New function.
141 (evaluate_subexp_f): Use it.
143 2021-03-08 Tom Tromey <tom@tromey.com>
145 * f-lang.c (eval_op_f_floor): New function.
146 (evaluate_subexp_f): Use it.
148 2021-03-08 Tom Tromey <tom@tromey.com>
150 * f-lang.c (eval_op_f_ceil): New function.
151 (evaluate_subexp_f): Use it.
153 2021-03-08 Tom Tromey <tom@tromey.com>
155 * f-lang.c (eval_op_f_mod): New function.
156 (evaluate_subexp_f): Use it.
158 2021-03-08 Tom Tromey <tom@tromey.com>
160 * f-lang.c (eval_op_f_abs): New function.
161 (evaluate_subexp_f): Use it.
163 2021-03-08 Tom Tromey <tom@tromey.com>
165 * eval.c (eval_op_type): New function.
166 (evaluate_subexp_standard): Use it.
168 2021-03-08 Tom Tromey <tom@tromey.com>
170 * eval.c (eval_op_postdec): New function.
171 (evaluate_subexp_standard): Use it.
173 2021-03-08 Tom Tromey <tom@tromey.com>
175 * eval.c (eval_op_postinc): New function.
176 (evaluate_subexp_standard): Use it.
178 2021-03-08 Tom Tromey <tom@tromey.com>
180 * eval.c (eval_op_predec): New file.
181 (evaluate_subexp_standard): Use it.
183 2021-03-08 Tom Tromey <tom@tromey.com>
185 * eval.c (eval_op_preinc): New function.
186 (evaluate_subexp_standard): Use it.
188 2021-03-08 Tom Tromey <tom@tromey.com>
190 * eval.c (eval_op_memval): New function.
191 (evaluate_subexp_standard): Use it.
193 2021-03-08 Tom Tromey <tom@tromey.com>
195 * eval.c (eval_op_alignof): New function.
196 (evaluate_subexp_standard): Use it.
198 2021-03-08 Tom Tromey <tom@tromey.com>
200 * eval.c (eval_op_ind): New function.
201 (evaluate_subexp_standard): Use it.
203 2021-03-08 Tom Tromey <tom@tromey.com>
205 * eval.c (eval_op_lognot): New function.
206 (evaluate_subexp_standard): Use it.
208 2021-03-08 Tom Tromey <tom@tromey.com>
210 * eval.c (eval_op_complement): New function.
211 (evaluate_subexp_standard): Use it.
213 2021-03-08 Tom Tromey <tom@tromey.com>
215 * eval.c (eval_op_neg): New function.
216 (evaluate_subexp_standard): Use it.
218 2021-03-08 Tom Tromey <tom@tromey.com>
220 * eval.c (eval_op_plus): New function.
221 (evaluate_subexp_standard): Use it.
223 2021-03-08 Tom Tromey <tom@tromey.com>
225 * eval.c (eval_op_repeat): New function.
226 (evaluate_subexp_standard): Use it.
228 2021-03-08 Tom Tromey <tom@tromey.com>
230 * eval.c (eval_op_leq): New function.
231 (evaluate_subexp_standard): Use it.
233 2021-03-08 Tom Tromey <tom@tromey.com>
235 * eval.c (eval_op_geq): New function.
236 (evaluate_subexp_standard): Use it.
238 2021-03-08 Tom Tromey <tom@tromey.com>
240 * eval.c (eval_op_gtr): New function.
241 (evaluate_subexp_standard): Use it.
243 2021-03-08 Tom Tromey <tom@tromey.com>
245 * eval.c (eval_op_less): New function.
246 (evaluate_subexp_standard): Use it.
248 2021-03-08 Tom Tromey <tom@tromey.com>
250 * eval.c (eval_op_notequal): New function.
251 (evaluate_subexp_standard): Use it.
253 2021-03-08 Tom Tromey <tom@tromey.com>
255 * eval.c (eval_op_equal): New function.
256 (evaluate_subexp_standard): Use it.
258 2021-03-08 Tom Tromey <tom@tromey.com>
260 * eval.c (eval_op_subscript): New function.
261 (evaluate_subexp_standard): Use it.
263 2021-03-08 Tom Tromey <tom@tromey.com>
265 * eval.c (eval_op_binary): New function.
266 (evaluate_subexp_standard): Use it.
268 2021-03-08 Tom Tromey <tom@tromey.com>
270 * eval.c (eval_op_sub): New function.
271 (evaluate_subexp_standard): Use it.
273 2021-03-08 Tom Tromey <tom@tromey.com>
275 * eval.c (eval_op_add): New function.
276 (evaluate_subexp_standard): Use it.
278 2021-03-08 Tom Tromey <tom@tromey.com>
280 * eval.c (eval_op_member): New function.
281 (evaluate_subexp_standard): Use it.
283 2021-03-08 Tom Tromey <tom@tromey.com>
285 * eval.c (eval_op_structop_ptr): New function.
286 (evaluate_subexp_standard): Use it.
288 2021-03-08 Tom Tromey <tom@tromey.com>
290 * eval.c (eval_op_structop_struct): New function.
291 (evaluate_subexp_standard): Use it.
293 2021-03-08 Tom Tromey <tom@tromey.com>
295 * eval.c (eval_op_ternop): New function.
296 (evaluate_subexp_standard): Use it.
298 2021-03-08 Tom Tromey <tom@tromey.com>
300 * eval.c (eval_op_concat): New function.
301 (evaluate_subexp_standard): Use it.
303 2021-03-08 Tom Tromey <tom@tromey.com>
305 * eval.c (eval_op_objc_selector): New function.
306 (evaluate_subexp_standard): Use it.
308 2021-03-08 Tom Tromey <tom@tromey.com>
310 * eval.c (eval_op_string): New function.
311 (evaluate_subexp_standard): Use it.
313 2021-03-08 Tom Tromey <tom@tromey.com>
315 * eval.c (eval_op_register): New function.
316 (evaluate_subexp_standard): Use it.
318 2021-03-08 Tom Tromey <tom@tromey.com>
320 * eval.c (eval_op_func_static_var): New function.
321 (evaluate_subexp_standard): Use it.
323 2021-03-08 Tom Tromey <tom@tromey.com>
325 * eval.c (eval_op_var_msym_value): New function.
326 (evaluate_subexp_standard): Use it.
328 2021-03-08 Tom Tromey <tom@tromey.com>
330 * eval.c (eval_op_var_entry_value): New function.
331 (evaluate_subexp_standard): Use it.
333 2021-03-08 Tom Tromey <tom@tromey.com>
335 * eval.c (eval_op_scope): New function.
336 (evaluate_subexp_standard): Use it.
338 2021-03-06 Chernov Sergey <klen_s@mail.ru>
341 * ada-lang.c (ada_fold_name): Use gdb::to_string.
343 2021-03-06 Tom Tromey <tom@tromey.com>
345 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
346 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
347 * dwarf2/read.c (dwarf2_elf_names): No longer static.
348 (locate_dwz_sections, dwz_search_other_debugdirs)
349 (dwarf2_get_dwz_file): Move to dwz.c.
350 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
352 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
353 (dwarf2_get_dwz_file): Move from read.c.
355 2021-03-06 Tom Tromey <tom@tromey.com>
357 * debuginfod-support.h: Include scoped_fd.h.
359 2021-03-06 Tom Tromey <tom@tromey.com>
361 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
362 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
363 (get_abbrev_section_for_cu, read_attribute_value)
364 (get_debug_line_section): Update.
365 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
367 2021-03-06 Tom Tromey <tom@tromey.com>
369 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
371 * dwarf2/read.c (section_is_p): Remove.
372 (dwarf2_per_bfd::locate_sections)
373 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
374 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
375 (dwarf2_locate_common_dwp_sections)
376 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
379 2021-03-06 Tom Tromey <tom@tromey.com>
381 * xcoffread.c: Include sect-names.h.
382 * symfile.h (struct dwarf2_section_names, struct
383 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
384 * dwarf2/sect-names.h: New file, from symfile.h.
385 * dwarf2/read.c: Include sect-names.h.
387 2021-03-06 Tom Tromey <tom@tromey.com>
389 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
390 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
391 (abbrev_table::read): Update.
392 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
393 (struct abbrev_info): Reformat.
394 <attrs>: Now an array.
395 (struct abbrev_table) <alloc_abbrev>: Remove.
397 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
399 * ctfread.c (ctf_psymtab_add_enums): New function.
400 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
402 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
404 * ctfread.c (read_func_kind_type): Set up function arguments.
406 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
407 Andrew Burgess <andrew.burgess@embecosm.com>
409 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
411 (riscv_csrset): New static global.
412 (riscv_update_csrmap): New function.
413 (riscv_iterate_over_regset_sections): Process CSRs.
415 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
417 * riscv-tdep.c (riscv_feature_name_csr): Define.
418 (riscv_feature_name_cpu): Define.
419 (riscv_feature_name_fpu): Define.
420 (riscv_feature_name_virtual): Define.
421 (riscv_xreg_feature): Use riscv_feature_name_cpu.
422 (riscv_freg_feature): Use riscv_feature_name_fpu.
423 (riscv_virtual_feature): Use riscv_feature_name_virtual.
424 (riscv_csr_feature): Use riscv_feature_name_csr.
425 * riscv-tdep.h (riscv_feature_name_csr): Declare.
427 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
428 Craig Blackmore <craig.blackmore@embecosm.com>
430 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
431 (ALLDEPFILES): Add riscv-none-tdep.c.
432 * configure: Regenerate.
433 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
435 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
436 * elf-none-tdep.c: New file.
437 * elf-none-tdep.h: New file.
438 * riscv-none-tdep.c: New file.
440 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
441 Andrew Burgess <andrew.burgess@embecosm.com>
443 * corelow.c: Add 'xml-tdesc.h' include.
444 (core_target::read_description): Load the target description from
445 the core file when possible.
446 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
448 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
449 (gcore_elf_make_tdesc_note): New function.
450 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
451 * linux-tdep.c (linux_make_corefile_notes): Add target description
454 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
456 * Makefile.in (SFILES): Add gcore-elf.c.
457 (HFILES_NO_SRCDIR): Add gcore-elf.h
458 * configure: Regenerate.
459 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
461 * fbsd-tdep.c: Add 'gcore-elf.h' include.
462 (struct fbsd_collect_regset_section_cb_data): Delete.
463 (fbsd_collect_regset_section_cb): Delete.
464 (fbsd_collect_thread_registers): Delete.
465 (struct fbsd_corefile_thread_data): Delete.
466 (fbsd_corefile_thread): Delete.
467 (fbsd_make_corefile_notes): Call
468 gcore_elf_build_thread_register_notes instead of the now deleted
470 * gcore-elf.c: New file, the content was moved here from
471 linux-tdep.c, functions were renamed and given minor cleanup.
472 * gcore-elf.h: New file.
473 * gcore.c (gcore_find_signalled_thread): Moved here from
474 linux-tdep.c and given a new name. Minor cleanups.
475 * gcore.h (gcore_find_signalled_thread): Declare.
476 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
477 (struct linux_collect_regset_section_cb_data): Delete.
478 (linux_collect_regset_section_cb): Delete.
479 (linux_collect_thread_registers): Delete.
480 (linux_corefile_thread): Call
481 gcore_elf_build_thread_register_notes.
482 (find_signalled_thread): Delete.
483 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
485 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
488 * sparc-nat.h (sparc_fetch_inferior_registers): Add
489 process_stratum_target parameter,
490 sparc_store_inferior_registers): update callers.
491 * sparc-nat.c (sparc_fetch_inferior_registers,
492 sparc_store_inferior_registers): Add process_stratum_target
493 parameter. Switch current thread before calling
494 sparc_supply_gregset / sparc_collect_rwindow.
495 (sparc_store_inferior_registers): Likewise.
496 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
497 (sparc32obsd_collect_uthread): Likewise.
498 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
500 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
501 sparc64obsd_supply_uthread): Add assertion.
503 2021-03-04 Tom Tromey <tromey@adacore.com>
505 * ada-lang.c (struct match_data) <found_sym>: Now bool.
506 (aux_add_nonlocal_symbols): Update.
507 (ada_add_block_symbols): Change "found_sym" to bool.
509 2021-03-03 Tom Tromey <tromey@adacore.com>
511 * ada-lang.c (ada_resolve_function): Update comment.
512 (is_nonfunction, add_symbols_from_enclosing_procs)
513 (remove_extra_symbols): Likewise.
514 (struct match_data): Add constructor, initializers.
515 (add_nonlocal_symbols): Remove memset.
516 (aux_add_nonlocal_symbols): Update comment.
517 (ada_add_block_renamings, add_nonlocal_symbols)
518 (ada_add_all_symbols): Likewise.
519 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
521 2021-03-02 Tom Tromey <tromey@adacore.com>
523 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
524 (cast_to_gnat_encoded_fixed_point_type): Remove.
525 (ada_value_cast, ada_evaluate_subexp): Update.
526 (gnat_encoded_fixed_point_type_info)
527 (ada_is_gnat_encoded_fixed_point_type)
528 (gnat_encoded_fixed_point_delta)
529 (gnat_encoded_fixed_point_scaling_factor): Remove.
530 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
531 (gnat_encoded_fixed_point_delta)
532 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
533 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
534 (ada_print_type): Update.
535 * ada-valprint.c (ada_value_print_num): Update.
536 * dwarf2/read.c (ada_get_gnat_encoded_number)
537 (ada_get_gnat_encoded_ratio): New functions.
538 (finish_fixed_point_type): Use them. Add parameters.
539 (GNAT_FIXED_POINT_SUFFIX): New define.
540 (gnat_encoded_fixed_point_type_info): New function.
541 (read_base_type): Handle gnat encodings.
543 2021-03-02 Tom Tromey <tromey@adacore.com>
545 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
546 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
551 2021-03-02 Tom Tromey <tromey@adacore.com>
553 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
554 * ada-lang.c (resolve_subexp): Update.
555 (ada_resolve_function): Accept a vector.
556 (is_nonfunction, add_defn_to_vec)
557 (add_symbols_from_enclosing_procs): Likewise.
558 (num_defns_collected, defns_collected): Remove.
559 (remove_extra_symbols): Return a vector.
560 (remove_irrelevant_renamings): Return void.
561 (ada_add_local_symbols): Accept a vector.
562 (struct match_data) <obstackp>: Remove.
563 <resultp>: New member.
564 (aux_add_nonlocal_symbols): Update.
565 (ada_add_block_renamings, add_nonlocal_symbols)
566 (ada_add_all_symbols): Accept a vector.
567 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
569 (ada_lookup_symbol): Update.
570 (ada_add_block_symbols): Accept a vector.
571 (get_var_value, iterate_over_symbols): Update.
572 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
575 2021-03-02 Tom Tromey <tromey@adacore.com>
577 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
579 2021-03-02 Tom Tromey <tromey@adacore.com>
581 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
584 (ada_pspace_data): Remove destructor.
585 <sym_cache>: Now a unique_ptr.
586 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
587 (ada_get_symbol_cache): Use 'new'.
588 (ada_clear_symbol_cache): Rewrite.
590 2021-03-02 Tom Tromey <tromey@adacore.com>
592 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
595 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
598 * source.c (add_path): Skip empty dirnames.
600 2021-02-25 Kevin Buettner <kevinb@redhat.com>
602 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
603 include order for <sys/ptrace.h> and <asm/ptrace.h>.
605 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
608 * target.c (target_mourn_inferior): Only compare pids in
609 target_mourn_inferior.
611 2021-02-25 Jan Matyas <jmatyas@codasip.com>
614 * remote.c (remote_target::start_remote): Ensure the single
615 thread, automatically added for remote targets without the
616 concept of threading, is initially in set to the "resumed"
618 * remote.c (remote_target::add_current_inferior_and_thread):
619 Add return value - return the main thread.
621 2021-02-25 Jan Vrany <jan.vrany@labware.com>
623 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
624 (mi_tsv_created): Likewise.
625 (mi_tsv_deleted): Likewise.
627 2021-02-25 Tom de Vries <tdevries@suse.de>
630 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
631 section_kind for &dwo_file->sections.info.
633 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
636 * f-lang.c (fortran_argument_convert): Delete declaration.
637 (fortran_prepare_argument): New function.
638 (evaluate_subexp_f): Move logic to new function
639 fortran_prepare_argument.
641 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
643 * f-exp.y (f77_keywords): Add 'associated'.
644 * f-lang.c (fortran_associated): New function.
645 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
646 (operator_length_f): Likewise.
647 (print_unop_or_binop_subexp_f): New function.
648 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
649 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
650 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
651 (operator_check_f): Likewise.
652 * std-operator.def: Add FORTRAN_ASSOCIATED.
654 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
656 * f-exp.y (fortran_operators): Add ".xor.".
658 2021-02-24 Tom de Vries <tdevries@suse.de>
661 * dwarf2/attribute.c (attribute::form_is_signed): New function
663 * dwarf2/attribute.h (attribute::as_signed): ... here.
664 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
665 (attribute::form_is_signed): Declare.
666 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
669 2021-02-24 Kevin Buettner <kevinb@redhat.com>
671 * nat/aarch64-linux-hw-point.c: Add comment regarding include
672 order for <sys/ptrace.h> and <asm/ptrace.h>.
674 2021-02-24 Kevin Buettner <kevinb@redhat.com>
676 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
679 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
681 * exec.c (set_section_command): Move variable declarations into
682 the function body, and use std::string instead of a fixed size
685 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
687 * exec.c (exec_target::get_section_table): Delete member function.
688 (section_table_read_available_memory): Use current_top_target, not
689 just the exec_ops target.
690 * target-delegates.c: Regenerate.
691 * target.c (default_get_section_table): New function.
692 * target.h (target_ops::get_section_table): Change default
693 behaviour to call default_get_section_table.
694 (default_get_section_table): Declare.
696 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
698 * exec.c (exec_target::close): Call new clear_target_sections
700 (program_space::add_target_sections): Update name of member
702 (program_space::add_target_sections): Update name of member
704 (program_space::remove_target_sections): Likewise.
705 (exec_one_fork): Use new target_sections member function.
706 (exec_target::get_section_table): Likewise.
707 (exec_target::files_info): Likewise.
708 (set_section_command): Likewise.
709 (exec_set_section_address): Likewise.
710 (exec_target::has_memory): Use new target_sections member
712 * progspace.h (program_space::clear_target_sections): New member
714 (program_space::target_sections): Rename member variable to
715 m_target_sections, replace with a new member function.
716 (program_space::m_target_sections): New member variable.
717 * solib-dsbt.c (scan_dyntag): Use new member function.
718 * solib-svr4.c (scan_dyntag): Likewise.
720 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
722 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
724 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
725 (section_table_read_available_memory): Make local const.
726 (exec_target::xfer_partial): Make local const.
727 (print_section_info): Make parameter const.
728 * gdb/exec.h (print_section_info): Likewise.
729 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
731 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
733 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
735 * gdb/s390-tdep.c (s390_load): Likewise.
736 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
737 * gdb/solib-svr4.c (scan_dyntag): Likewise.
738 * gdb/target-debug.h (target_debug_print_target_section_table_p):
740 (target_debug_print_const_target_section_table_p): ...this.
741 * gdb/target-delegates.c: Regenerate.
742 * gdb/target.c (target_get_section_table): Make return type const.
743 (target_section_by_addr): Likewise. Also make some locals const.
744 (memory_xfer_partial_1): Make some locals const.
745 * gdb/target.h (struct target_ops) <get_section_table>: Make
747 (target_section_by_addr): Likewise.
748 (target_get_section_table): Likewise.
750 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
752 * NEWS: Mention new 'maint info target-sections' command.
753 * maint.c (maintenance_info_target_sections): New function.
754 (_initialize_maint_cmds): Register new command.
756 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
758 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
759 (riscv_features_from_bfd): ...this. Change parameter type to
760 'bfd*', and update as required.
761 (riscv_find_default_target_description): Update call to
762 riscv_features_from_bfd. Select a default xlen based on
764 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
766 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
768 * eval.c (evaluate_subexp_standard): Call value_ind for points to
769 dynamic types in UNOP_IND.
771 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
774 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
776 (~dwarf2_queue_guard): Clear queue.
777 (queue_comp_unit): Assert that queue is
779 (process_queue): Adjust.
780 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
782 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
785 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
786 to decide whether or not to enqueue it for expansion.
787 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
788 after calling maybe_queue_comp_unit.
790 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
792 * linux-nat.c (linux_nat_filter_event): Return void.
794 2021-02-22 Tom Tromey <tromey@adacore.com>
796 * solib-svr4.c (enable_break): Update.
797 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
799 (target_bfd_reopen): Change parameter type.
800 * bfd-target.h (target_bfd_reopen): Change parameter type.
802 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
804 * thread.c (add_thread_silent): Add assert.
805 (find_thread_ptid): Add assert.
807 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
810 * inf-ptrace.c (struct target_unpusher): Move to target.h.
811 (target_unpush_up): Likewise.
812 * procfs.c (procfs_target::attach): Push target early. Use
813 target_unpush_up to unpush target in case of error.
814 * target.h (struct target_unpusher): Move here.
815 (target_unpush_up): Likewise.
817 2021-02-19 Kevin Buettner <kevinb@redhat.com>
819 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
820 (which in turn includes <gnulib/config.h>) before include
823 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
826 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
827 (decode_j_type_insn): Likewise.
828 (decode_cj_type_insn): Likewise.
829 (decode_b_type_insn): Likewise.
832 2021-02-18 Tom Tromey <tom@tromey.com>
834 * expression.h (struct expression) <evaluate>: Declare method.
835 * eval.c (evaluate_subexp): Simplify.
836 (expression::evaluate): New method.
837 (evaluate_expression, evaluate_type): Use expression::evaluate.
839 2021-02-17 Kevin Buettner <kevinb@redhat.com>
841 * ada-lang.c (ada_fold_name): Check for non-empty string prior
843 (ada_lookup_name_info): Likewise.
845 2021-02-13 Mike Frysinger <vapier@gentoo.org>
847 * aclocal.m4: Regenerate.
849 2021-02-12 Tom de Vries <tdevries@suse.de>
852 * linux-nat.c (lin_thread_get_thread_signals): Remove.
853 (lin_thread_signals): New static var.
854 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
856 * linux-nat.h (lin_thread_get_thread_signals): Remove.
857 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
859 * linux-thread-db.c (check_thread_signals): Use
860 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
862 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
864 * f-exp.y (f77_keywords): Add allocated.
865 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
866 (operator_length_f): Likewise.
867 (print_subexp_f): Likewise.
868 (dump_subexp_body_f): Likewise.
869 (operator_check_f): Likewise.
870 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
872 2021-02-11 Tom de Vries <tdevries@suse.de>
875 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
876 Return true for DW_FORM_strx.
878 2021-02-11 Tom Tromey <tromey@adacore.com>
881 * parse.c (write_exp_symbol_reference): Write sym.block.
883 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
885 * NEWS: Mention changes to 'maint info sections'.
886 * maint.c (match_substring): Return a bool, fix whitespace issue.
887 (struct single_bfd_flag_info): New struct.
888 (bfd_flag_info): New static global.
889 (match_bfd_flags): Return a bool, use bfd_flag_info.
890 (print_bfd_flags): Use bfd_flag_info.
891 (maint_print_section_info): Delete trailing whitespace.
892 (struct maint_info_sections_opts): New struct.
893 (maint_info_sections_option_defs): New static global.
894 (maint_info_sections_completer): New function.
895 (maintenance_info_sections): Use option parsing mechanism.
896 (_initialize_maint_cmds): Update command help text for 'maint info
897 sections' and register a command completer.
899 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
901 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
902 functionality merged into...
903 (maint_print_all_sections): ...this new function.
904 (maintenance_info_sections): Make use of maint_print_all_sections,
905 allow all objects to be printed even where there's no executable.
907 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
909 * breakpoint.c (resolve_sal_pc): Make use of
910 bound_minimal_symbol::obj_section.
911 * maint.c (maintenance_translate_address): Likewise.
912 * minsyms.c (minimal_symbol_upper_bound): Likewise.
913 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
915 * printcmd.c (info_address_command): Make use of
916 bound_minimal_symbol::obj_section.
918 2021-02-11 Alan Modra <amodra@gmail.com>
920 * arm-symbian-tdep.c: Delete.
921 * NEWS: Mention arm-symbian removal.
922 * Makefile.in: Remove arm-symbian-tdep entries.
923 * configure.tgt: Remove arm*-*-symbianelf*.
924 * doc/gdb.texinfo: Remove mention of SymbianOS.
925 * osabi.c (gdb_osabi_names): Remove "Symbian".
926 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
927 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
928 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
930 * testsuite/gdb.base/dup-sect.exp: Likewise.
931 * testsuite/gdb.base/long_long.exp: Likewise.
932 * testsuite/gdb.base/solib-weak.exp: Likewise.
933 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
934 * testsuite/gdb.python/py-section-script.exp: Likewise.
935 * testsuite/lib/dwarf.exp: Likewise.
936 * testsuite/lib/gdb.exp: Likewise.
938 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
940 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
941 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
942 (one_or_two_args): New pattern.
943 (f77_keywords): Add lbound and ubound.
944 * f-lang.c (fortran_bounds_all_dims): New function.
945 (fortran_bounds_for_dimension): New function.
946 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
947 (operator_length_f): Likewise.
948 (print_subexp_f): Likewise.
949 (dump_subexp_body_f): Likewise.
950 (operator_check_f): Likewise.
951 * std-operator.def (FORTRAN_LBOUND): Define.
952 (FORTRAN_UBOUND): Define.
954 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
956 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
957 and set_section_index member functions where appropriate.
958 * coffread.c (coff_symtab_read): Likewise.
959 (process_coff_symbol): Likewise.
960 * ctfread.c (set_symbol_address): Likewise.
961 * dwarf2/read.c (add_partial_symbol): Likewise.
962 (var_decode_location): Likewise.
963 * language.c: Likewise.
964 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
965 (compact_minimal_symbols): Likewise.
966 (minimal_symbol_upper_bound): Likewise.
967 * objfiles.c (relocate_one_symbol): Likewise.
968 * psympriv.h (partial_symbol::obj_section): Likewise.
969 (partial_symbol::address): Likewise.
970 * psymtab.c (partial_symtab::add_psymbol): Likewise.
971 * stabsread.c (scan_file_globals): Likewise.
972 * symmisc.c (dump_msymbols): Likewise.
973 * symtab.c (general_symbol_info::obj_section): Likewise.
974 (fixup_section): Likewise.
975 (get_msymbol_address): Likewise.
976 * symtab.h (general_symbol_info::section): Rename to...
977 (general_symbol_info::m_section): ...this.
978 (general_symbol_info::set_section_index): New member function.
979 (general_symbol_info::section_index): Likewise.
980 (SYMBOL_SECTION): Delete.
981 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
982 set_section_index member functions where appropriate.
983 (MSYMBOL_SECTION): Delete.
984 (symbol::symbol): Update to initialize 'm_section'.
985 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
986 (process_xcoff_symbol): Likewise.
988 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
990 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
992 * findvar.c (language_defn::read_var_value): Likewise.
993 * infcmd.c (jump_command): Likewise.
994 * linespec.c (minsym_found): Likewise.
995 * maint.c (maintenance_translate_address): Likewise.
996 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
997 (minimal_symbol_upper_bound): Likewise.
998 * parse.c (find_minsym_type_and_address): Likewise.
999 (operator_check_standard): Likewise.
1000 * printcmd.c (info_address_command): Likewise.
1001 * symmisc.c (dump_msymbols): Likewise.
1002 (print_symbol): Likewise.
1003 * symtab.c (general_symbol_info::obj_section): Define new
1005 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1006 (find_pc_sect_compunit_symtab): Likewise.
1007 (find_function_start_sal): Likewise.
1008 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1009 MSYMBOL_OBJ_SECTION.
1010 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1012 (SYMBOL_OBJ_SECTION): Delete.
1013 (MSYMBOL_OBJ_SECTION): Delete.
1015 2021-02-09 Tom Tromey <tom@tromey.com>
1017 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1019 2021-02-09 Tom de Vries <tdevries@suse.de>
1022 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1023 construct an array type. Add assert to ensure that element_type is
1026 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1028 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1029 (gcore_collect_regset_section_cb): Delete.
1030 (gcore_collect_thread_registers): Delete.
1031 (gcore_build_thread_register_notes): Delete.
1032 (gcore_find_signalled_thread): Delete.
1033 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1034 'gdbarch' and 'thread_info' declarations.
1035 (gcore_build_thread_register_notes): Delete declaration.
1036 (gcore_find_signalled_thread): Likewise.
1037 * fbsd-tdep.c: Remove 'gcore.h' include.
1038 (struct fbsd_collect_regset_section_cb_data): New struct.
1039 (fbsd_collect_regset_section_cb): New function.
1040 (fbsd_collect_thread_registers): New function.
1041 (struct fbsd_corefile_thread_data): New struct.
1042 (fbsd_corefile_thread): New function.
1043 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1044 * linux-tdep.c: Remove 'gcore.h' include.
1045 (struct linux_collect_regset_section_cb_data): New struct.
1046 (linux_collect_regset_section_cb): New function.
1047 (linux_collect_thread_registers): New function.
1048 (linux_corefile_thread): Call Linux specific code.
1049 (find_signalled_thread): New function.
1050 (linux_make_corefile_notes): Call find_signalled_thread.
1052 2021-02-09 Tom Tromey <tromey@adacore.com>
1054 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1056 * value.c (value_contents_copy_raw): Now static.
1057 * value.h (value_contents_copy_raw): Don't declare.
1059 2021-02-09 Tom Tromey <tromey@adacore.com>
1061 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1064 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
1067 * arc-linux-tdep.c (handle_atomic_sequence): New.
1068 (arc_linux_software_single_step): Call handle_atomic_sequence().
1070 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1072 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1074 (REQUIRE_WINDOW): Call is_valid member function.
1075 (REQUIRE_WINDOW_FOR_SETTER): New define.
1076 (gdbpy_tui_is_valid): Call is_valid member function.
1077 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1078 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1080 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1081 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1084 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1086 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1087 for the title is not nullptr.
1089 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1091 * tui-layout.c (saved_tui_windows): Delete.
1092 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1093 call new get_windows member function instead.
1094 (tui_get_window_by_name): Check in tui_windows.
1095 (tui_layout_window::apply): Don't add to tui_windows.
1096 * tui-layout.h (tui_layout_base::get_windows): New member function.
1097 (tui_layout_window::get_windows): Likewise.
1098 (tui_layout_split::get_windows): Likewise.
1100 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1102 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1103 of the window objects.
1105 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1107 * python/python.c (gdbpy_print_stack): Reformat an error message.
1109 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1111 * tui/tui-interp.c (tui_command_line_handler): New function.
1112 (tui_interp::resume): Register tui_command_line_handler as the
1114 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1116 (tui_getc_1): Delete handling of '\n' and '\r'.
1117 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1119 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1121 * tui/tui-regs.c (tui_data_window::display_registers_from):
1122 Mark invisible register sub windows.
1123 (tui_data_window::check_register_values): Ignore invisible
1124 register sub windows.
1126 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1128 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1129 n_spaces with a negative value.
1131 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1133 * tui/tui-regs.c (tui_data_window::display_registers_from):
1134 Add refresh_window call.
1136 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1138 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1140 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1142 * symmisc.c (std_in, std_out, std_err): Remove.
1143 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1145 2021-02-05 Tom de Vries <tdevries@suse.de>
1147 PR breakpoints/27330
1148 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1149 glibc object file has debug info.
1151 2021-02-05 Tom de Vries <tdevries@suse.de>
1154 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1156 2021-02-05 Tom de Vries <tdevries@suse.de>
1158 PR breakpoints/27313
1159 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1162 2021-02-05 Tom Tromey <tom@tromey.com>
1164 * compile/compile-c-support.c (get_compile_context)
1165 (c_get_compile_context, cplus_get_compile_context): Change return
1167 * language.c (language_defn::get_compile_instance): New method.
1168 * language.h (language_defn::get_compile_instance): Change return
1169 type. No longer inline.
1170 * c-lang.c (c_language::get_compile_instance): Change return type.
1171 (cplus_language::get_compile_instance): Change return type.
1172 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1174 * compile/compile.c (compile_to_object): Update.
1176 2021-02-05 Tom Tromey <tom@tromey.com>
1178 * parser-defs.h (write_exp_symbol_reference): Declare.
1179 * parse.c (write_exp_symbol_reference): New function.
1180 * p-exp.y (variable): Use write_exp_symbol_reference.
1181 * m2-exp.y (variable): Use write_exp_symbol_reference.
1182 * f-exp.y (variable): Use write_exp_symbol_reference.
1183 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1184 * c-exp.y (variable): Use write_exp_symbol_reference.
1186 2021-02-05 Tom de Vries <tdevries@suse.de>
1189 * valarith.c (complex_binop): Throw an error if complex type can't
1192 2021-02-05 Tom de Vries <tdevries@suse.de>
1195 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1198 2021-02-05 Tom de Vries <tdevries@suse.de>
1200 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1202 2021-02-04 Mike Frysinger <vapier@gentoo.org>
1204 * configure.tgt (riscv*-*-*): Set gdb_sim.
1206 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1208 * target.c (target_is_non_stop_p): Return bool.
1209 * target.h (target_is_non_stop_p): Return bool.
1211 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1213 * record-full.c (record_full_async_inferior_event_handler):
1214 Don't clear async event handler.
1215 (record_full_base_target::wait): Clear async event handler at
1218 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1220 * record-btrace.c (record_btrace_handle_async_inferior_event):
1221 Don't clear async event handler.
1222 (record_btrace_target::wait): Clear async event handler at
1225 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1227 * remote.c (remote_target::wait): Clear async event handler at
1228 beginning, mark if needed at the end.
1229 (remote_async_inferior_event_handler): Don't set or clear async
1232 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1234 * async-event.h (async_event_handler_func): Add documentation.
1235 * async-event.c (check_async_event_handlers): Don't clear
1236 async_event_handler ready flag.
1237 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1239 * record-btrace.c (record_btrace_handle_async_inferior_event):
1241 * record-full.c (record_full_async_inferior_event_handler):
1243 * remote-notif.c (remote_async_get_pending_events_handler):
1245 * remote.c (remote_async_inferior_event_handler): Likewise.
1247 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1249 * infrun.c (handle_inferior_event): Move stop_soon variable to
1252 2021-02-03 Pedro Alves <pedro@palves.net>
1254 * infcmd.c (detach_command): Hold strong reference to target, and
1255 if all-stop on entry, restart threads on exit.
1256 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1257 (restart_stepped_thread): ... this new function. Also handle
1259 (restart_after_all_stop_detach): New function.
1260 * infrun.h (restart_after_all_stop_detach): Declare.
1262 2021-02-03 Pedro Alves <pedro@palves.net>
1264 * infrun.c (struct step_over_info): Initialize fields.
1265 (prepare_for_detach): Handle ongoing in-line step over.
1267 2021-02-03 Pedro Alves <pedro@palves.net>
1269 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1271 * remote.c (remote_target::remote_detach_1): ... and here ...
1272 * target.c (target_detach): ... instead of here.
1273 * target.h (target_ops::detach): Add comment.
1275 2021-02-03 Pedro Alves <pedro@palves.net>
1277 * infrun.c (struct wait_one_event): Move higher up.
1278 (prepare_for_detach): Abort in-progress displaced steps instead of
1279 letting them complete.
1280 (handle_one): If the inferior is detaching, don't add the thread
1281 back to the global step-over chain.
1282 (restart_threads): Don't restart threads if detaching.
1283 (handle_signal_stop): Remove inferior::detaching reference.
1285 2021-02-03 Pedro Alves <pedro@palves.net>
1287 * infrun.c (prepare_for_detach): Don't release scoped_restore
1290 2021-02-03 Pedro Alves <pedro@palves.net>
1292 * infrun.c (handle_one): New function, factored out from ...
1293 (stop_all_threads): ... here.
1295 2021-02-03 Pedro Alves <pedro@palves.net>
1297 * remote.c (remote_notif_stop_ack): Don't error out on
1298 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1299 (remote_target::discard_pending_stop_replies): Don't delete
1300 in-flight notification; instead, clear its contents.
1302 2021-02-03 Pedro Alves <pedro@palves.net>
1304 * remote.c (extended_remote_target::attach): Set target async in
1305 the target-non-stop path too.
1307 2021-02-03 Pedro Alves <pedro@palves.net>
1310 * infrun.c (handle_signal_stop): Move main context_switch call
1311 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1313 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1315 * NEWS (Changed commands): Add entry for the behavior change of
1316 the inferior command.
1317 * inferior.c (inferior_command): When no argument is given to the
1318 inferior command, display info about the currently selected
1321 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1323 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1325 (read_attribute_reprocess): Adjust.
1327 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1329 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1330 <gnu_ranges_base>: ... this...
1331 <rnglists_base>: ... and this.
1332 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1333 <gnu_ranges_base>: ... this...
1334 <rnglists_base>: ... and this.
1335 (read_cutu_die_from_dwo): Adjust
1336 (dwarf2_get_pc_bounds): Adjust
1337 (dwarf2_record_block_ranges): Adjust.
1338 (read_full_die_1): Adjust
1339 (partial_die_info::read): Adjust.
1340 (read_rnglist_index): Adjust.
1342 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1345 * dwarf2/read.c (read_loclists_rnglists_header): Add
1346 header_offset parameter and use it.
1347 (read_loclist_index): Read header of the current contribution,
1348 not the one at the beginning of the section.
1349 (read_rnglist_index): Likewise.
1351 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1354 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1355 requires_reprocessing flag.
1356 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1358 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1359 and DW_FORM_loclistx.
1360 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1361 instead of set_address for DW_FORM_loclistx and
1364 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1366 * dwarf2/read.c (read_loclist_index): Remove bound check for
1368 (read_rnglist_index): Likewise.
1370 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1372 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1375 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1377 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1379 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1381 * dwarf2/read.c (read_loclist_index): Change complaints into
1384 2021-02-02 Tom de Vries <tdevries@suse.de>
1387 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1390 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1392 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1393 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1394 here from linux-tdep.c and given a new name. Minor cleanups.
1395 (gcore_collect_regset_section_cb): Likewise.
1396 (gcore_collect_thread_registers): Likewise.
1397 (gcore_build_thread_register_notes): Likewise.
1398 (gcore_find_signalled_thread): Likewise.
1399 * gcore.h (gcore_build_thread_register_notes): Declare.
1400 (gcore_find_signalled_thread): Declare.
1401 * fbsd-tdep.c: Add 'gcore.h' include.
1402 (struct fbsd_collect_regset_section_cb_data): Delete.
1403 (fbsd_collect_regset_section_cb): Delete.
1404 (fbsd_collect_thread_registers): Delete.
1405 (struct fbsd_corefile_thread_data): Delete.
1406 (fbsd_corefile_thread): Delete.
1407 (fbsd_make_corefile_notes): Call
1408 gcore_build_thread_register_notes instead of the now deleted
1410 * linux-tdep.c: Add 'gcore.h' include.
1411 (struct linux_collect_regset_section_cb_data): Delete.
1412 (linux_collect_regset_section_cb): Delete.
1413 (linux_collect_thread_registers): Delete.
1414 (linux_corefile_thread): Call
1415 gcore_build_thread_register_notes.
1416 (find_signalled_thread): Delete.
1417 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1419 2021-01-29 Tom de Vries <tdevries@suse.de>
1421 PR breakpoints/26063
1422 * infrun.c (process_event_stop_test): Reset
1423 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1426 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1428 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1429 assert. Extend the header comment.
1431 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1433 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1434 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1435 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1436 (tui_locator_win_info_ptr): Delete declaration.
1437 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1438 (tui_disasm_window::set_contents): Fetch state from tui_location
1440 (tui_get_begin_asm_address): Likewise.
1441 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1443 (get_locator_window): Delete.
1444 (initialize_known_windows): Treat locator window just like all the
1446 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1447 (tui_source_window::set_contents): Fetch state from tui_location
1449 (tui_source_window::showing_source_p): Likewise.
1450 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1452 (tui_locator_win_info_ptr): Delete.
1453 (tui_locator_window::make_status_line): Fetch state from
1454 tui_location global.
1455 (tui_locator_window::rerender): Remove check of 'handle',
1456 reindent function body.
1457 (tui_locator_window::set_locator_fullname): Delete.
1458 (tui_locator_window::set_locator_info): Delete.
1459 (tui_update_locator_fullname): Delete.
1460 (tui_show_frame_info): Likewise.
1461 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1462 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1463 tui/tui-location.h and renamed to
1464 tui_location_tracker::set_location.
1465 (tui_locator_window::set_locator_fullname): Moved to
1466 tui/tui-location.h and renamed to
1467 tui_location_tracker::set_fullname.
1468 (tui_locator_window::full_name): Delete.
1469 (tui_locator_window::proc_name): Delete.
1470 (tui_locator_window::line_no): Delete.
1471 (tui_locator_window::addr): Delete.
1472 (tui_locator_window::gdbarch): Delete.
1473 (tui_update_locator_fullname): Delete declaration.
1474 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1476 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1477 (tui_display_main): Call function on tui_location directly.
1478 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1479 * tui/tui-location.c: New file.
1480 * tui/tui-location.h: New file.
1482 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1484 * gdbtypes.h (get_type_arch): Rename to...
1485 (struct type) <arch>: ... this, update all users.
1487 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1489 * gdbtypes.h (struct type) <arch>: Rename to...
1490 <arch_owner>: ... this, update all users.
1491 <objfile>: Rename to...
1492 <objfile_owner>: ... this, update all users.
1494 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1496 * gdbcmd.h (execute_command_to_string): Update comment.
1497 * top.c (execute_command_to_string): Update header comment.
1499 2021-01-28 Tom de Vries <tdevries@suse.de>
1501 PR breakpoints/27205
1502 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1503 (create_longjmp_master_breakpoint_names): New function, factored out
1505 (create_longjmp_master_breakpoint): ... here. Only try to install
1506 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1507 breakpoint in libc.so failed.
1509 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1512 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1513 unique_ptr is released when the wrapped pointer is kept for later
1516 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1518 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1519 BLR and BR instructions.
1520 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1521 (enum aarch64_masks): New.
1523 2021-01-26 Tom Tromey <tromey@adacore.com>
1525 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1526 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1527 (windows_init_thread_list, windows_nat::handle_load_dll)
1528 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1529 (windows_nat_target::resume)
1530 (windows_nat_target::get_windows_debug_event)
1531 (windows_nat_target::interrupt, windows_xfer_memory)
1532 (windows_nat_target::close): Update.
1533 * nat/windows-nat.c (DEBUG_EVENTS): Use
1534 debug_prefixed_printf_cond.
1535 (matching_pending_stop, fetch_pending_stop)
1536 (continue_last_debug_event): Update.
1538 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1540 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1541 elfcore_write_file_note.
1543 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
1545 * arc-tdep.c (arc_add_reggroups): New function.
1546 (arc_gdbarch_init): Call arc_add_reggroups.
1548 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
1550 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1552 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1553 Simon Marchi <simon.marchi@polymtl.ca>
1554 Tom de Vries <tdevries@suse.de>
1556 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1559 2021-01-25 Tom Tromey <tromey@adacore.com>
1561 * dwarf2/read.c (get_mpz): New function.
1562 (get_dwarf2_rational_constant): Use it.
1564 2021-01-25 Tom Tromey <tromey@adacore.com>
1566 * ada-lang.c (resolve_subexp): Handle array context.
1568 2021-01-23 Tom Tromey <tom@tromey.com>
1571 * compile/compile-loc2c.c (note_register): New function.
1572 (pushf_register_address, pushf_register): Use it.
1574 2021-01-23 Tom Tromey <tom@tromey.com>
1576 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1577 Change type of "registers_used".
1578 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1579 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1580 (locexpr_generate_c_location, loclist_generate_c_location): Change
1581 type of "registers_used".
1582 * compile/compile.h (compile_dwarf_expr_to_c)
1583 (compile_dwarf_bounds_to_c): Update.
1584 * compile/compile-loc2c.c (pushf_register_address)
1585 (pushf_register, do_compile_dwarf_expr_to_c)
1586 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
1587 of "registers_used".
1588 * compile/compile-c.h (generate_c_for_variable_locations):
1590 * compile/compile-c-symbols.c (generate_vla_size)
1591 (generate_c_for_for_one_variable): Change type of
1593 (generate_c_for_variable_locations): Return std::vector.
1594 * compile/compile-c-support.c (generate_register_struct): Change
1595 type of "registers_used".
1598 2021-01-23 Tom Tromey <tom@tromey.com>
1600 * compile/compile-internal.h (class compile_instance)
1601 <set_arguments>: Change return type.
1602 * compile/compile.c (compile_to_object): Remove call to reset.
1603 (compile_instance::set_arguments): Change return type.
1605 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1607 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1608 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1610 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1612 * Makefile.in (SELFTESTS_SRCS): Add
1613 unittests/gdb_tilde_expand-selftests.c.
1614 * unittests/gdb_tilde_expand-selftests.c: New file.
1616 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1619 * NEWS: Mention new command.
1620 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1621 (version_style): Define.
1622 (cli_style_option::cli_style_option): Add intensity parameter, and
1624 (_initialize_cli_style): Register version style set/show commands.
1625 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1626 (version_style): Declare.
1627 * top.c (print_gdb_version): Use version_stype, and styled_string
1628 to print the GDB version string.
1630 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1632 * utils.c (emit_style_escape): Only emit an escape sequence if the
1633 requested style is different than the current applied style.
1634 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1635 current applied_style.
1636 (fputs_styled): Remove is_default check.
1637 (fputs_styled_unfiltered): Likewise.
1638 (vfprintf_styled_no_gdbfmt): Likewise.
1640 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1642 * remote.h (remote_debug_printf): New.
1643 (remote_debug_printf_nofunc): New.
1644 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1645 * remote.c: Use above macros throughout file.
1647 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1649 * remote.h (remote_debug): Change to bool.
1650 * remote.c (remote_debug): Change to bool.
1651 (_initialize_remote): Adjust.
1653 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1655 * target.h (remote_debug): Move to...
1656 * remote.h (remote_debug): ... here.
1657 * top.c (remote_debug): Move to...
1658 * remote.c (remote_debug): ... here.
1659 * remote-sim.c: Include remote.h.
1661 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1663 * cli/cli-cmds.c (show_remote_debug): Remove.
1664 (show_remote_timeout): Remove.
1665 (_initialize_cli_cmds): Don't register commands.
1666 * remote.c (show_remote_debug): Move here.
1667 (show_remote_timeout): Move here.
1668 (_initialize_remote): Register commands.
1670 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1672 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
1673 type::objfile method instead.
1675 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1677 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
1678 use the type::is_objfile_owned method.
1680 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
1682 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
1683 (TYPE_OWNER): Remove.
1684 (TYPE_OBJFILE): Adjust.
1685 (struct main_type) <flag_objfile_owned>: Rename to...
1686 <m_flag_objfile_owned>: ... this.
1687 <owner>: Rename to...
1688 <m_owner>: ... this.
1689 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
1691 (TYPE_ALLOC): Adjust.
1692 * gdbtypes.c (alloc_type): Adjust.
1693 (alloc_type_arch): Adjust.
1694 (alloc_type_copy): Adjust.
1695 (get_type_arch): Adjust.
1696 (smash_type): Adjust.
1697 (lookup_array_range_type): Adjust.
1698 (recursive_dump_type): Adjust.
1699 (copy_type_recursive): Adjust.
1700 * compile/compile-c-types.c (convert_func): Adjust.
1701 (convert_type_basic): Adjust.
1702 * compile/compile-cplus-types.c (compile_cplus_convert_func):
1705 (language_arch_info::type_and_symbol::alloc_type_symbol):
1708 2021-01-21 Luis Machado <luis.machado@linaro.org>
1710 * coffread.c (enter_linenos): Passing string to complaint.
1711 * valops.c (value_assign): Make array view.
1713 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1715 * auto-load.h (debug_auto_load): Move here.
1716 (auto_load_debug_printf): New.
1717 * auto-load.c: Use auto_load_debug_printf.
1718 (debug_auto_load): Move to header.
1719 * linux-thread-db.c (try_thread_db_load): Use
1720 auto_load_debug_printf.
1721 * main.c (captured_main_1): Likewise.
1723 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1725 * f-valprint.c (f77_array_offset_tbl): Remove.
1727 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1729 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1731 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1733 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1736 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
1739 * python/py-breakpoint.c (bppy_get_location): Handle
1740 bp_hardware_breakpoint.
1741 (bppy_init): Likewise.
1742 (gdbpy_breakpoint_created): Likewise.
1744 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1746 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1748 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1750 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1751 (_initialize_gdb_bfd): Adjust.
1753 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1756 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1758 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1760 * dwarf2/read.c (follow_die_offset): Add logging.
1761 (dwarf2_per_objfile::age_comp_units): Add logging.
1763 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1765 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1766 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1767 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1768 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1769 * arm-tdep.c (struct frame_unwind): Make static.
1770 * auto-load.c (auto_load_safe_path_vec): Make static.
1771 * csky-tdep.c (csky_stub_unwind): Make static.
1772 * gdbarch.c (gdbarch_data_registry): Make static.
1773 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1774 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1775 * i386-tdep.c (i386_frame_setup_skip_insns,
1776 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1778 * infrun.c (observer_mode): Make static.
1779 * linux-nat.c (sigchld_action): Make static.
1780 * linux-thread-db.c (thread_db_list): Make static.
1781 * maint-test-options.c (maintenance_test_options_list):
1782 * mep-tdep.c (mep_csr_registers): Make static.
1783 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1784 (stats): Make static.
1785 * nat/linux-osdata.c (struct osdata_type): Make static.
1786 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1787 * progspace.c (last_program_space_num): Make static.
1788 * python/py-param.c (struct parm_constant): Remove struct type
1790 (parm_constants): Make static.
1791 * python/py-record-btrace.c (btpy_list_methods): Make static.
1792 * python/py-record.c (recpy_gap_type): Make static.
1793 * record.c (record_goto_cmdlist): Make static.
1794 * regcache.c (regcache_descr_handle): Make static.
1795 * registry.h (DEFINE_REGISTRY): Make definition static.
1796 * symmisc.c (std_in, std_out, std_err): Make static.
1797 * top.c (previous_saved_command_line): Make static.
1798 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1800 * unittests/command-def-selftests.c (nr_duplicates,
1801 nr_invalid_prefixcmd, lists): Make static.
1802 * unittests/observable-selftests.c (test_notification): Make
1804 * unittests/optional/assignment/1.cc (counter): Make static.
1805 * unittests/optional/assignment/2.cc (counter): Make static.
1806 * unittests/optional/assignment/3.cc (counter): Make static.
1807 * unittests/optional/assignment/4.cc (counter): Make static.
1808 * unittests/optional/assignment/5.cc (counter): Make static.
1809 * unittests/optional/assignment/6.cc (counter): Make static.
1811 2021-01-20 Joel Sherrill <joel@rtems.org>
1814 * remote.c (struct remote_thread_info) <resume_state>: Rename
1816 <get_resume_state>: ... this.
1817 (remote_target::resume): Adjust.
1818 (remote_target::commit_resume): Adjust.
1819 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
1821 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
1822 Tom Tromey <tom@tromey.com>
1824 * stap-probe.c (stap_parse_single_operand): Handle '!'
1826 (stap_parse_argument_conditionally): Likewise.
1827 Skip spaces after processing open-parenthesis sub-expression.
1828 (stap_parse_argument_1): Skip spaces after call to
1829 stap_parse_argument_conditionally.
1830 Handle case when right-side expression is a parenthesized
1832 Skip spaces after call to stap_parse_argument_1.
1834 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
1836 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
1838 2021-01-19 Luis Machado <luis.machado@linaro.org>
1840 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
1841 memory and save data.
1842 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
1843 (trad_frame_set_unknown, trad_frame_set_value_bytes)
1844 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1845 (trad_frame_value_bytes_p): Remove.
1846 (trad_frame_reset_saved_regs): Adjust documentation.
1847 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
1848 constructor and reset the state of the registers.
1849 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1850 (trad_frame_value_bytes_p, trad_frame_set_value)
1851 (trad_frame_set_realreg, trad_frame_set_addr)
1852 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
1853 (trad_frame_set_reg_realreg): Update to call member function.
1854 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
1855 (trad_frame_get_prev_register): Likewise.
1857 * aarch64-tdep.c (aarch64_analyze_prologue)
1858 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
1859 (aarch64_prologue_prev_register): Update to use member functions.
1860 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1861 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
1862 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
1863 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
1864 (arm_make_epilogue_frame_cache): Likewise.
1865 * avr-tdep.c (avr_frame_unwind_cache)
1866 (avr_frame_prev_register): Likewise.
1867 * cris-tdep.c (cris_scan_prologue): Likewise.
1868 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
1869 * frv-tdep.c (frv_analyze_prologue): Likewise.
1870 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
1871 * lm32-tdep.c (lm32_frame_cache): Likewise.
1872 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1873 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1874 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
1875 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
1876 (reset_saved_regs): Adjust to set realreg.
1877 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
1878 call member functions.
1879 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
1880 * s390-tdep.c (s390_prologue_frame_unwind_cache)
1881 (s390_backchain_frame_unwind_cache): Likewise.
1882 * score-tdep.c (score7_analyze_prologue)
1883 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
1884 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
1885 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1886 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
1887 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1888 * tilegx-tdep.c (tilegx_analyze_prologue)
1889 (tilegx_frame_cache): Likewise.
1890 * v850-tdep.c (v850_frame_cache): Likewise.
1891 * vax-tdep.c (vax_frame_cache): Likewise.
1893 2021-01-19 Luis Machado <luis.machado@linaro.org>
1895 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
1897 (put_frame_register_bytes): Likewise.
1898 Adjust documentation.
1899 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
1900 (safe_frame_unwind_memory): Likewise.
1901 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
1902 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
1904 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
1905 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
1906 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1907 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
1908 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
1909 * dwarf2/loc.c (rw_pieced_value): Likewise.
1910 * hppa-tdep.c (hppa_frame_cache): Likewise.
1911 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
1912 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
1913 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1914 (i386_linux_rt_sigtramp_start): Likewise.
1915 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1916 * i386-tdep.c (i386_register_to_value): Likewise.
1917 * i387-tdep.c (i387_register_to_value): Likewise.
1918 * ia64-tdep.c (ia64_register_to_value): Likewise.
1919 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
1920 (m32r_linux_rt_sigtramp_start): Likewise.
1921 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
1922 * m68k-tdep.c (m68k_register_to_value): Likewise.
1923 * mips-tdep.c (mips_register_to_value)
1924 (mips_value_to_register): Likewise.
1925 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
1926 (ppcfbsd_sigtramp_frame_cache): Likewise.
1927 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
1928 (ppcobsd_sigtramp_frame_cache): Likewise.
1929 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
1930 (rs6000_register_to_value): Likewise.
1931 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
1932 * tramp-frame.c (tramp_frame_start): Likewise.
1933 * valops.c (value_assign): Likewise.
1935 2021-01-19 Luis Machado <luis.machado@linaro.org>
1937 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
1939 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
1940 instead of buffer and size.
1941 (trad_frame_set_reg_value_bytes): Likewise.
1942 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
1943 (trad_frame_set_value_bytes): Likewise.
1945 2021-01-18 Mike Frysinger <vapier@gentoo.org>
1947 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
1949 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
1951 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
1952 (riscv_fbsd_gregset): Use riscv_supply_regset.
1953 (riscv_fbsd_fpregset): Likewise.
1954 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
1955 (riscv_linux_fregset): Likewise.
1956 * riscv-tdep.c (riscv_supply_regset): Define new function.
1957 * riscv-tdep.h (riscv_supply_regset): Declare new function.
1959 2021-01-18 Tom de Vries <tdevries@suse.de>
1962 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
1964 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
1967 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1969 * remote.c (class remote_target) <remote_hostio_send_command,
1970 remote_hostio_parse_result>: Constify parameter.
1971 (remote_hostio_parse_result): Likewise.
1972 (remote_target::remote_hostio_send_command): Adjust.
1973 (remote_target::remote_hostio_pread_vFile): Adjust.
1974 (remote_target::fileio_readlink): Adjust.
1975 (remote_target::fileio_fstat): Adjust.
1977 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1979 * remote.c (remote_target::start_remote): Move wait_status to
1982 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1984 * remote.c (class remote_target):
1985 <add_current_inferior_and_thread>: Constify parameter.
1986 (stop_reply_extract_thread): Likewise.
1987 (remote_target::get_current_thread): Likewise.
1988 (remote_target::add_current_inferior_and_thread): Likewise.
1990 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1992 * remote.c (class remote_target)
1993 <remote_unpack_thread_info_response,
1994 parse_threadlist_response>: Constify parameter and/or return
1995 value and or local variable.
1996 (stub_unpack_int): Likewise.
1997 (unpack_nibble): Likewise.
1998 (unpack_byte): Likewise.
1999 (unpack_int): Likewise.
2000 (unpack_string): Likewise.
2001 (unpack_threadid): Likewise.
2002 (remote_target::remote_unpack_thread_info_response): Likewise.
2003 (remote_target::parse_threadlist_response): Likewise.
2005 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2007 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2009 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
2011 * MAINTAINERS (Write After Approval): Add myself.
2013 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2015 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2016 because is_trivially_default_constructible was first implemented with
2019 2021-01-14 Tom de Vries <tdevries@suse.de>
2021 PR breakpoints/27151
2022 * objfiles.h (in_plt_section): Handle .plt.sec.
2024 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2028 (remote_target::select_thread_for_ambiguous_stop_reply): New
2030 (remote_target::process_stop_reply): Call
2031 select_thread_for_ambiguous_stop_reply.
2033 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2035 * record-btrace.c (class record_btrace_target): Remove.
2036 (record_btrace_target::commit_resume): Remove.
2037 * record-full.c (class record_full_target): Remove.
2038 (record_full_target::commit_resume): Remove.
2040 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2042 * remote.c (enum class resume_state): New.
2043 (struct resumed_pending_vcont_info): New.
2044 (struct remote_thread_info) <resume_state, set_not_resumed,
2045 set_resumed_pending_vcont, resumed_pending_vcont_info,
2046 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2048 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2049 (remote_target::remote_add_thread): Adjust.
2050 (remote_target::process_initial_stop_replies): Adjust.
2051 (remote_target::resume): Adjust.
2052 (remote_target::commit_resume): Rely on state in
2053 remote_thread_info and not on tp->executing.
2054 (remote_target::process_stop_reply): Adjust.
2056 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2058 * arc-tdep.h (arc_debug_printf): New.
2059 * arc-tdep.c: Use arc_debug_printf.
2060 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2061 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2062 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2064 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2066 * arc-tdep.h (arc_debug): Change type to bool.
2067 * arc-tdep.c (arc_debug): Change type to bool.
2068 (arc_analyze_prologue): Adjust.
2069 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2070 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2072 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2074 * auto-load.c (auto_load_objfile_script_1): Use bool.
2075 (execute_script_contents): Use bool.
2077 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2079 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2081 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2083 * extension-priv.h (struct extension_language_script_ops)
2084 <auto_load_enabled>: Return bool.
2085 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2087 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2089 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2091 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2092 move comment to header.
2093 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2095 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2096 move comment to header.
2098 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2100 * auto-load.h (file_is_auto_load_safe): Change return type to
2101 bool, move comment here.
2102 * auto-load.c (file_is_auto_load_safe): Change return type and
2103 advice_printed to bool. Move comment to header.
2105 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2107 * jit.c (jit_debug_printf): New, use throughout file.
2109 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2111 * infrun.c (normal_stop): Fix indentation.
2113 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2115 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2117 * symfile.h: ... here.
2118 * symfile.c: Update doc.
2120 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2122 * target.h (baud_rate, serial_parity): Move declarations...
2123 * serial.h: ... here.
2124 * main.c: Include serial.h.
2125 * serial.c (baud_rate, serial_parity): Update doc.
2127 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2129 * top.c (pre_init_ui_hook): Remove.
2131 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2133 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2134 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2135 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2136 * features/aarch64-fpu.xml: Add bfloat16 type.
2138 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2140 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2142 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2144 * f-exp.y (dot_ops): Rename to...
2145 (fortran_operators): ...this. Add a header comment. Add symbol
2147 (yylex): Update to use fortran_operators not dot_ops. Remove
2148 special handling for '**', this is now included in
2151 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2153 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2154 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2155 * aarch64-tdep.c: Use aarch64_debug_printf.
2157 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2159 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2162 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2164 * jit.c (jit_debug): Change type to bool.
2165 (_initialize_jit): Adjust.
2167 2021-01-09 Tom Tromey <tom@tromey.com>
2170 * compile/compile.c (compile_to_object): Avoid crash when
2171 osabi_triplet_regexp returns NULL.
2173 2021-01-09 Tom Tromey <tom@tromey.com>
2175 * tracepoint.h (class collection_list) <append_exp>: Take a
2177 * tracepoint.c (collection_list::append_exp): Take a std::string.
2178 (encode_actions_1): Update.
2180 2021-01-08 Tom Tromey <tromey@adacore.com>
2182 * parse.c (parse_expression): Add void_context_p parameter. Use
2183 parse_exp_in_context.
2184 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2186 (print_command, call_command): Update.
2187 * expression.h (parse_expression): Add void_context_p parameter.
2189 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2191 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2192 for internalvar components that have a dynamic location.
2194 2021-01-08 Tom de Vries <tdevries@suse.de>
2197 * breakpoint.c (create_exception_master_breakpoint_probe)
2198 (create_exception_master_breakpoint_hook): Factor out
2200 (create_exception_master_breakpoint): ... here. Only try to install
2201 the master exception breakpoint in objfile.debug using the
2202 _Unwind_DebugHook method, if the install using probes in objfile
2205 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2207 * f-lang.c (fortran_value_subarray): Call value_from_component.
2209 2021-01-07 Mike Frysinger <vapier@gentoo.org>
2211 * remote-sim.c: Include memory-map.h.
2212 (gdbsim_target): Define memory_map override.
2213 (gdbsim_target::memory_map): Define.
2215 2021-01-07 Tom Tromey <tromey@adacore.com>
2217 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2219 2021-01-07 Tom Tromey <tromey@adacore.com>
2221 * ada-lang.c (add_component_interval): Start loop using vector's
2224 2021-01-06 Tom Tromey <tromey@adacore.com>
2226 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2228 * valarith.c (fixed_point_binop): Handle multiplication
2229 and division specially.
2230 * valops.c (value_to_gdb_mpq): New function.
2231 (value_cast_to_fixed_point): Use it.
2233 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2235 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2236 Call wnoutrefresh instead of tui_win_info::refresh_window.
2238 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2240 * tui/tui-source.c (tui_source_window::show_line_number):
2241 Redraw second space after line number.
2243 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2246 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2247 Fix source pad size in prefresh.
2248 (tui_source_window_base::show_source_content): Grow source pad
2251 2021-01-04 Mike Frysinger <vapier@gentoo.org>
2253 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2254 (bfin_frame_align): Use align_down.
2256 2021-01-04 Tom de Vries <tdevries@suse.de>
2258 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2259 terminators that do not terminate anything.
2261 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2263 * debug.c (debug_print_depth): New.
2264 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2265 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2266 * infrun.c (start_step_over): Use
2267 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2268 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2269 INFRUN_SCOPED_DEBUG_START_END.
2270 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2272 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2274 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2276 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2278 * utils.c (vfprintf_unfiltered): Print timestamp only when
2279 previous debug output ended with a newline.
2281 2021-01-04 Luis Machado <luis.machado@linaro.org>
2283 Update all users of trad_frame_saved_reg to use the new member
2286 Remote all struct keywords from declarations of trad_frame_saved_reg
2287 types, except on forward declarations.
2289 * aarch64-tdep.c: Update.
2290 * alpha-mdebug-tdep.c: Update.
2291 * alpha-tdep.c: Update.
2292 * arc-tdep.c: Update.
2293 * arm-tdep.c: Update.
2294 * avr-tdep.c: Update.
2295 * cris-tdep.c: Update.
2296 * csky-tdep.c: Update.
2297 * frv-tdep.c: Update.
2298 * hppa-linux-tdep.c: Update.
2299 * hppa-tdep.c: Update.
2300 * hppa-tdep.h: Update.
2301 * lm32-tdep.c: Update.
2302 * m32r-linux-tdep.c: Update.
2303 * m32r-tdep.c: Update.
2304 * m68hc11-tdep.c: Update.
2305 * mips-tdep.c: Update.
2306 * moxie-tdep.c: Update.
2307 * riscv-tdep.c: Update.
2308 * rs6000-tdep.c: Update.
2309 * s390-linux-tdep.c: Update.
2310 * s390-tdep.c: Update.
2311 * score-tdep.c: Update.
2312 * sparc-netbsd-tdep.c: Update.
2313 * sparc-sol2-tdep.c: Update.
2314 * sparc64-fbsd-tdep.c: Update.
2315 * sparc64-netbsd-tdep.c: Update.
2316 * sparc64-obsd-tdep.c: Update.
2317 * sparc64-sol2-tdep.c: Update.
2318 * tilegx-tdep.c: Update.
2319 * v850-tdep.c: Update.
2320 * vax-tdep.c: Update.
2322 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2323 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2325 * trad-frame.c: Update.
2326 Remove TF_REG_* enum.
2327 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2328 a trivially-constructible struct.
2329 (trad_frame_reset_saved_regs): Adjust to use member function.
2330 (trad_frame_value_p): Likewise.
2331 (trad_frame_addr_p): Likewise.
2332 (trad_frame_realreg_p): Likewise.
2333 (trad_frame_value_bytes_p): Likewise.
2334 (trad_frame_set_value): Likewise.
2335 (trad_frame_set_realreg): Likewise.
2336 (trad_frame_set_addr): Likewise.
2337 (trad_frame_set_unknown): Likewise.
2338 (trad_frame_set_value_bytes): Likewise.
2339 (trad_frame_get_prev_register): Likewise.
2340 * trad-frame.h: Update.
2341 (trad_frame_saved_reg_kind): New enum.
2342 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2343 <m_kind, m_reg>: New member fields.
2344 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2345 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2346 <is_addr, is_unknown, is_value_bytes>: New member functions.
2348 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2350 * target-float.c: Fix typos.
2352 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
2354 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2356 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2358 * gdbarch.sh: Update copyright year range.
2360 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2362 Update copyright year range in copyright header of all GDB files.
2364 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2366 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2367 to the list of directories to update.
2369 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2371 * top.c (print_gdb_version): Update copyright year.
2373 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2375 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
2377 For older changes see ChangeLog-2020.
2383 version-control: never