1 2021-03-08 Tom Tromey <tom@tromey.com>
3 * expop.h (class structop_member_operation)
4 (class structop_mptr_operation): New.
5 * eval.c (eval_op_member): No longer static.
7 2021-03-08 Tom Tromey <tom@tromey.com>
9 * expop.h (class structop_ptr_operation): New.
10 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
13 2021-03-08 Tom Tromey <tom@tromey.com>
15 * expop.h (class structop_base_operation)
16 (class structop_operation): New.
17 * eval.c (eval_op_structop_struct): No longer static.
19 2021-03-08 Tom Tromey <tom@tromey.com>
21 * expop.h (class complex_operation): New.
23 2021-03-08 Tom Tromey <tom@tromey.com>
25 * eval.c (eval_op_objc_selector): No longer static.
26 * c-exp.h (class objc_selector_operation): New.
28 2021-03-08 Tom Tromey <tom@tromey.com>
30 * eval.c: Include c-exp.h.
31 * c-exp.h (class objc_nsstring_operation): New.
33 2021-03-08 Tom Tromey <tom@tromey.com>
35 * c-lang.c (c_string_operation::evaluate): New method.
38 2021-03-08 Tom Tromey <tom@tromey.com>
40 * expop.h (class ternop_cond_operation): New.
41 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
43 2021-03-08 Tom Tromey <tom@tromey.com>
45 * expop.h (class ternop_slice_operation): New.
46 * eval.c (eval_op_ternop): No longer static.
48 2021-03-08 Tom Tromey <tom@tromey.com>
50 * expop.h (class string_operation): New.
51 * eval.c (eval_op_string): No longer static.
53 2021-03-08 Tom Tromey <tom@tromey.com>
55 * expop.h (class internalvar_operation): New.
56 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
58 2021-03-08 Tom Tromey <tom@tromey.com>
60 * expop.h (class bool_operation): New.
62 2021-03-08 Tom Tromey <tom@tromey.com>
64 * expop.h (class register_operation): New.
65 * eval.c (eval_op_register): No longer static.
66 * ax-gdb.c (register_operation::do_generate_ax): New method.
68 2021-03-08 Tom Tromey <tom@tromey.com>
70 * expop.h (class last_operation): New.
72 2021-03-08 Tom Tromey <tom@tromey.com>
74 * expop.h (class func_static_var_operation): New.
75 * eval.c (eval_op_func_static_var): No longer static.
77 2021-03-08 Tom Tromey <tom@tromey.com>
79 * expop.h (class var_entry_value_operation): New.
80 * eval.c (eval_op_var_entry_value): No longer static.
82 2021-03-08 Tom Tromey <tom@tromey.com>
84 * expression.h (class operation) <set_outermost>: New method.
85 * expop.h (class var_msym_value_operation): New.
86 * eval.c (eval_op_var_msym_value): No longer static.
87 (var_msym_value_operation::evaluate_for_address)
88 (var_msym_value_operation::evaluate_for_sizeof)
89 (var_msym_value_operation::evaluate_for_cast): New methods.
90 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
93 2021-03-08 Tom Tromey <tom@tromey.com>
95 * expop.h (class long_const_operation): New.
96 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
98 2021-03-08 Tom Tromey <tom@tromey.com>
100 * expop.h (class scope_operation): New.
101 * eval.c (eval_op_scope): No longer static.
102 (scope_operation::evaluate_for_address): New method.
103 * ax-gdb.c (scope_operation::do_generate_ax): New method.
105 2021-03-08 Tom Tromey <tom@tromey.com>
107 * expprint.c (float_const_operation::dump): New method.
108 * expop.h (float_data): New typedef.
109 (class float_const_operation): New.
111 2021-03-08 Tom Tromey <tom@tromey.com>
113 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
114 * ax-gdb.c (gen_expr_binop): New function.
115 (gen_expr_structop): Likewise.
117 2021-03-08 Tom Tromey <tom@tromey.com>
119 * expprint.c (expr::dump_for_expression): New functions.
120 * expop.h (dump_for_expression): New overloads.
121 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
124 2021-03-08 Tom Tromey <tom@tromey.com>
126 * expression.h (expr::operation): New class.
127 (expr::make_operation): New function.
128 (expr::operation_up): New typedef.
130 * eval.c (operation::evaluate_for_cast)
131 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
133 * ax-gdb.c (operation::generate_ax): New method.
135 2021-03-08 Tom Tromey <tom@tromey.com>
137 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
138 (gen_expr_binop_rest): New overload.
140 2021-03-08 Tom Tromey <tom@tromey.com>
142 * eval.c (eval_multi_subscript): New function.
143 (evaluate_subexp_standard): Use it.
145 2021-03-08 Tom Tromey <tom@tromey.com>
147 * ada-lang.c (ada_binop_exp): New function.
148 (ada_evaluate_subexp): Use it.
150 2021-03-08 Tom Tromey <tom@tromey.com>
152 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
154 (ada_evaluate_subexp): Use it.
156 2021-03-08 Tom Tromey <tom@tromey.com>
158 * ada-lang.c (ada_binop_minmax): New function.
159 (ada_evaluate_subexp): Use it.
161 2021-03-08 Tom Tromey <tom@tromey.com>
163 * ada-lang.c (ada_unop_atr): New function.
164 (ada_evaluate_subexp): Use it.
166 2021-03-08 Tom Tromey <tom@tromey.com>
168 * ada-lang.c (ada_binop_in_bounds): New function.
169 (ada_evaluate_subexp): Use it.
171 2021-03-08 Tom Tromey <tom@tromey.com>
173 * ada-lang.c (ada_ternop_slice): New function.
174 (ada_evaluate_subexp): Use it.
176 2021-03-08 Tom Tromey <tom@tromey.com>
178 * ada-lang.c (ada_equal_binop): New function.
179 (ada_evaluate_subexp): Use it.
181 2021-03-08 Tom Tromey <tom@tromey.com>
183 * ada-lang.c (ada_mult_binop): New function.
184 (ada_evaluate_subexp): Use it.
186 2021-03-08 Tom Tromey <tom@tromey.com>
188 * ada-lang.c (ada_abs): New function.
189 (ada_evaluate_subexp): Use it.
191 2021-03-08 Tom Tromey <tom@tromey.com>
193 * ada-lang.c (ada_atr_size): New function.
194 (ada_evaluate_subexp): Use it.
196 2021-03-08 Tom Tromey <tom@tromey.com>
198 * ada-lang.c (ada_atr_tag): New function.
199 (ada_evaluate_subexp): Use it.
201 2021-03-08 Tom Tromey <tom@tromey.com>
203 * ada-lang.c (ada_unop_in_range): New function.
204 (ada_evaluate_subexp): Use it.
206 2021-03-08 Tom Tromey <tom@tromey.com>
208 * ada-lang.c (ada_unop_neg): New function.
209 (ada_evaluate_subexp): Use it.
211 2021-03-08 Tom Tromey <tom@tromey.com>
213 * ada-lang.c (eval_ternop_in_range): New function.
214 (ada_evaluate_subexp): Use it.
216 2021-03-08 Tom Tromey <tom@tromey.com>
218 * opencl-lang.c (eval_opencl_assign): New function.
219 (evaluate_subexp_opencl): Use it.
221 2021-03-08 Tom Tromey <tom@tromey.com>
223 * eval.c (eval_op_objc_msgcall): New function.
224 (evaluate_subexp_standard): Use it.
226 2021-03-08 Tom Tromey <tom@tromey.com>
228 * eval.c (eval_binop_assign_modify): New function.
229 (evaluate_subexp_standard): Use it.
231 2021-03-08 Tom Tromey <tom@tromey.com>
233 * m2-lang.c (eval_op_m2_subscript): New function.
234 (evaluate_subexp_modula2): Use it.
236 2021-03-08 Tom Tromey <tom@tromey.com>
238 * m2-lang.c (eval_op_m2_high): New function.
239 (evaluate_subexp_modula2): Use it.
241 2021-03-08 Tom Tromey <tom@tromey.com>
243 * eval.c (evaluate_subexp_for_address_base): New function.
244 (evaluate_subexp_for_address): Use it.
245 (evaluate_subexp_for_sizeof_base): New function.
246 (evaluate_subexp_for_sizeof): Use it.
248 2021-03-08 Tom Tromey <tom@tromey.com>
250 * rust-lang.c (eval_op_rust_structop): New function.
251 (rust_evaluate_subexp): Use it.
253 2021-03-08 Tom Tromey <tom@tromey.com>
255 * rust-lang.c (eval_op_rust_struct_anon): New function.
256 (rust_evaluate_subexp): Use it.
258 2021-03-08 Tom Tromey <tom@tromey.com>
260 * rust-lang.c (eval_op_rust_array): New function.
261 (rust_evaluate_subexp): Use it.
263 2021-03-08 Tom Tromey <tom@tromey.com>
265 * rust-lang.c (eval_op_rust_complement): New function.
266 (rust_evaluate_subexp): Use it.
268 2021-03-08 Tom Tromey <tom@tromey.com>
270 * rust-lang.c (eval_op_rust_ind): New function.
271 (rust_evaluate_subexp): Use it.
273 2021-03-08 Tom Tromey <tom@tromey.com>
275 * rust-lang.c (rust_subscript): Change parameters.
276 (rust_evaluate_subexp): Update.
278 2021-03-08 Tom Tromey <tom@tromey.com>
280 * rust-lang.c (rust_range): Change parameters.
281 (rust_evaluate_subexp): Update.
283 2021-03-08 Tom Tromey <tom@tromey.com>
285 * f-lang.c (eval_op_f_allocated): New function.
286 (evaluate_subexp_f): Use it.
288 2021-03-08 Tom Tromey <tom@tromey.com>
290 * f-lang.c (fortran_require_array): New function.
291 (evaluate_subexp_f): Use it.
293 2021-03-08 Tom Tromey <tom@tromey.com>
295 * f-lang.c (eval_op_f_kind): New function.
296 (evaluate_subexp_f): Use it.
298 2021-03-08 Tom Tromey <tom@tromey.com>
300 * f-lang.c (eval_op_f_cmplx): New function.
301 (evaluate_subexp_f): Use it.
303 2021-03-08 Tom Tromey <tom@tromey.com>
305 * f-lang.c (eval_op_f_modulo): New function.
306 (evaluate_subexp_f): Use it.
308 2021-03-08 Tom Tromey <tom@tromey.com>
310 * f-lang.c (eval_op_f_floor): New function.
311 (evaluate_subexp_f): Use it.
313 2021-03-08 Tom Tromey <tom@tromey.com>
315 * f-lang.c (eval_op_f_ceil): New function.
316 (evaluate_subexp_f): Use it.
318 2021-03-08 Tom Tromey <tom@tromey.com>
320 * f-lang.c (eval_op_f_mod): New function.
321 (evaluate_subexp_f): Use it.
323 2021-03-08 Tom Tromey <tom@tromey.com>
325 * f-lang.c (eval_op_f_abs): New function.
326 (evaluate_subexp_f): Use it.
328 2021-03-08 Tom Tromey <tom@tromey.com>
330 * eval.c (eval_op_type): New function.
331 (evaluate_subexp_standard): Use it.
333 2021-03-08 Tom Tromey <tom@tromey.com>
335 * eval.c (eval_op_postdec): New function.
336 (evaluate_subexp_standard): Use it.
338 2021-03-08 Tom Tromey <tom@tromey.com>
340 * eval.c (eval_op_postinc): New function.
341 (evaluate_subexp_standard): Use it.
343 2021-03-08 Tom Tromey <tom@tromey.com>
345 * eval.c (eval_op_predec): New file.
346 (evaluate_subexp_standard): Use it.
348 2021-03-08 Tom Tromey <tom@tromey.com>
350 * eval.c (eval_op_preinc): New function.
351 (evaluate_subexp_standard): Use it.
353 2021-03-08 Tom Tromey <tom@tromey.com>
355 * eval.c (eval_op_memval): New function.
356 (evaluate_subexp_standard): Use it.
358 2021-03-08 Tom Tromey <tom@tromey.com>
360 * eval.c (eval_op_alignof): New function.
361 (evaluate_subexp_standard): Use it.
363 2021-03-08 Tom Tromey <tom@tromey.com>
365 * eval.c (eval_op_ind): New function.
366 (evaluate_subexp_standard): Use it.
368 2021-03-08 Tom Tromey <tom@tromey.com>
370 * eval.c (eval_op_lognot): New function.
371 (evaluate_subexp_standard): Use it.
373 2021-03-08 Tom Tromey <tom@tromey.com>
375 * eval.c (eval_op_complement): New function.
376 (evaluate_subexp_standard): Use it.
378 2021-03-08 Tom Tromey <tom@tromey.com>
380 * eval.c (eval_op_neg): New function.
381 (evaluate_subexp_standard): Use it.
383 2021-03-08 Tom Tromey <tom@tromey.com>
385 * eval.c (eval_op_plus): New function.
386 (evaluate_subexp_standard): Use it.
388 2021-03-08 Tom Tromey <tom@tromey.com>
390 * eval.c (eval_op_repeat): New function.
391 (evaluate_subexp_standard): Use it.
393 2021-03-08 Tom Tromey <tom@tromey.com>
395 * eval.c (eval_op_leq): New function.
396 (evaluate_subexp_standard): Use it.
398 2021-03-08 Tom Tromey <tom@tromey.com>
400 * eval.c (eval_op_geq): New function.
401 (evaluate_subexp_standard): Use it.
403 2021-03-08 Tom Tromey <tom@tromey.com>
405 * eval.c (eval_op_gtr): New function.
406 (evaluate_subexp_standard): Use it.
408 2021-03-08 Tom Tromey <tom@tromey.com>
410 * eval.c (eval_op_less): New function.
411 (evaluate_subexp_standard): Use it.
413 2021-03-08 Tom Tromey <tom@tromey.com>
415 * eval.c (eval_op_notequal): New function.
416 (evaluate_subexp_standard): Use it.
418 2021-03-08 Tom Tromey <tom@tromey.com>
420 * eval.c (eval_op_equal): New function.
421 (evaluate_subexp_standard): Use it.
423 2021-03-08 Tom Tromey <tom@tromey.com>
425 * eval.c (eval_op_subscript): New function.
426 (evaluate_subexp_standard): Use it.
428 2021-03-08 Tom Tromey <tom@tromey.com>
430 * eval.c (eval_op_binary): New function.
431 (evaluate_subexp_standard): Use it.
433 2021-03-08 Tom Tromey <tom@tromey.com>
435 * eval.c (eval_op_sub): New function.
436 (evaluate_subexp_standard): Use it.
438 2021-03-08 Tom Tromey <tom@tromey.com>
440 * eval.c (eval_op_add): New function.
441 (evaluate_subexp_standard): Use it.
443 2021-03-08 Tom Tromey <tom@tromey.com>
445 * eval.c (eval_op_member): New function.
446 (evaluate_subexp_standard): Use it.
448 2021-03-08 Tom Tromey <tom@tromey.com>
450 * eval.c (eval_op_structop_ptr): New function.
451 (evaluate_subexp_standard): Use it.
453 2021-03-08 Tom Tromey <tom@tromey.com>
455 * eval.c (eval_op_structop_struct): New function.
456 (evaluate_subexp_standard): Use it.
458 2021-03-08 Tom Tromey <tom@tromey.com>
460 * eval.c (eval_op_ternop): New function.
461 (evaluate_subexp_standard): Use it.
463 2021-03-08 Tom Tromey <tom@tromey.com>
465 * eval.c (eval_op_concat): New function.
466 (evaluate_subexp_standard): Use it.
468 2021-03-08 Tom Tromey <tom@tromey.com>
470 * eval.c (eval_op_objc_selector): New function.
471 (evaluate_subexp_standard): Use it.
473 2021-03-08 Tom Tromey <tom@tromey.com>
475 * eval.c (eval_op_string): New function.
476 (evaluate_subexp_standard): Use it.
478 2021-03-08 Tom Tromey <tom@tromey.com>
480 * eval.c (eval_op_register): New function.
481 (evaluate_subexp_standard): Use it.
483 2021-03-08 Tom Tromey <tom@tromey.com>
485 * eval.c (eval_op_func_static_var): New function.
486 (evaluate_subexp_standard): Use it.
488 2021-03-08 Tom Tromey <tom@tromey.com>
490 * eval.c (eval_op_var_msym_value): New function.
491 (evaluate_subexp_standard): Use it.
493 2021-03-08 Tom Tromey <tom@tromey.com>
495 * eval.c (eval_op_var_entry_value): New function.
496 (evaluate_subexp_standard): Use it.
498 2021-03-08 Tom Tromey <tom@tromey.com>
500 * eval.c (eval_op_scope): New function.
501 (evaluate_subexp_standard): Use it.
503 2021-03-06 Chernov Sergey <klen_s@mail.ru>
506 * ada-lang.c (ada_fold_name): Use gdb::to_string.
508 2021-03-06 Tom Tromey <tom@tromey.com>
510 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
511 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
512 * dwarf2/read.c (dwarf2_elf_names): No longer static.
513 (locate_dwz_sections, dwz_search_other_debugdirs)
514 (dwarf2_get_dwz_file): Move to dwz.c.
515 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
517 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
518 (dwarf2_get_dwz_file): Move from read.c.
520 2021-03-06 Tom Tromey <tom@tromey.com>
522 * debuginfod-support.h: Include scoped_fd.h.
524 2021-03-06 Tom Tromey <tom@tromey.com>
526 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
527 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
528 (get_abbrev_section_for_cu, read_attribute_value)
529 (get_debug_line_section): Update.
530 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
532 2021-03-06 Tom Tromey <tom@tromey.com>
534 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
536 * dwarf2/read.c (section_is_p): Remove.
537 (dwarf2_per_bfd::locate_sections)
538 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
539 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
540 (dwarf2_locate_common_dwp_sections)
541 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
544 2021-03-06 Tom Tromey <tom@tromey.com>
546 * xcoffread.c: Include sect-names.h.
547 * symfile.h (struct dwarf2_section_names, struct
548 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
549 * dwarf2/sect-names.h: New file, from symfile.h.
550 * dwarf2/read.c: Include sect-names.h.
552 2021-03-06 Tom Tromey <tom@tromey.com>
554 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
555 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
556 (abbrev_table::read): Update.
557 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
558 (struct abbrev_info): Reformat.
559 <attrs>: Now an array.
560 (struct abbrev_table) <alloc_abbrev>: Remove.
562 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
564 * ctfread.c (ctf_psymtab_add_enums): New function.
565 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
567 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
569 * ctfread.c (read_func_kind_type): Set up function arguments.
571 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
572 Andrew Burgess <andrew.burgess@embecosm.com>
574 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
576 (riscv_csrset): New static global.
577 (riscv_update_csrmap): New function.
578 (riscv_iterate_over_regset_sections): Process CSRs.
580 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
582 * riscv-tdep.c (riscv_feature_name_csr): Define.
583 (riscv_feature_name_cpu): Define.
584 (riscv_feature_name_fpu): Define.
585 (riscv_feature_name_virtual): Define.
586 (riscv_xreg_feature): Use riscv_feature_name_cpu.
587 (riscv_freg_feature): Use riscv_feature_name_fpu.
588 (riscv_virtual_feature): Use riscv_feature_name_virtual.
589 (riscv_csr_feature): Use riscv_feature_name_csr.
590 * riscv-tdep.h (riscv_feature_name_csr): Declare.
592 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
593 Craig Blackmore <craig.blackmore@embecosm.com>
595 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
596 (ALLDEPFILES): Add riscv-none-tdep.c.
597 * configure: Regenerate.
598 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
600 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
601 * elf-none-tdep.c: New file.
602 * elf-none-tdep.h: New file.
603 * riscv-none-tdep.c: New file.
605 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
606 Andrew Burgess <andrew.burgess@embecosm.com>
608 * corelow.c: Add 'xml-tdesc.h' include.
609 (core_target::read_description): Load the target description from
610 the core file when possible.
611 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
613 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
614 (gcore_elf_make_tdesc_note): New function.
615 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
616 * linux-tdep.c (linux_make_corefile_notes): Add target description
619 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
621 * Makefile.in (SFILES): Add gcore-elf.c.
622 (HFILES_NO_SRCDIR): Add gcore-elf.h
623 * configure: Regenerate.
624 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
626 * fbsd-tdep.c: Add 'gcore-elf.h' include.
627 (struct fbsd_collect_regset_section_cb_data): Delete.
628 (fbsd_collect_regset_section_cb): Delete.
629 (fbsd_collect_thread_registers): Delete.
630 (struct fbsd_corefile_thread_data): Delete.
631 (fbsd_corefile_thread): Delete.
632 (fbsd_make_corefile_notes): Call
633 gcore_elf_build_thread_register_notes instead of the now deleted
635 * gcore-elf.c: New file, the content was moved here from
636 linux-tdep.c, functions were renamed and given minor cleanup.
637 * gcore-elf.h: New file.
638 * gcore.c (gcore_find_signalled_thread): Moved here from
639 linux-tdep.c and given a new name. Minor cleanups.
640 * gcore.h (gcore_find_signalled_thread): Declare.
641 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
642 (struct linux_collect_regset_section_cb_data): Delete.
643 (linux_collect_regset_section_cb): Delete.
644 (linux_collect_thread_registers): Delete.
645 (linux_corefile_thread): Call
646 gcore_elf_build_thread_register_notes.
647 (find_signalled_thread): Delete.
648 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
650 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
653 * sparc-nat.h (sparc_fetch_inferior_registers): Add
654 process_stratum_target parameter,
655 sparc_store_inferior_registers): update callers.
656 * sparc-nat.c (sparc_fetch_inferior_registers,
657 sparc_store_inferior_registers): Add process_stratum_target
658 parameter. Switch current thread before calling
659 sparc_supply_gregset / sparc_collect_rwindow.
660 (sparc_store_inferior_registers): Likewise.
661 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
662 (sparc32obsd_collect_uthread): Likewise.
663 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
665 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
666 sparc64obsd_supply_uthread): Add assertion.
668 2021-03-04 Tom Tromey <tromey@adacore.com>
670 * ada-lang.c (struct match_data) <found_sym>: Now bool.
671 (aux_add_nonlocal_symbols): Update.
672 (ada_add_block_symbols): Change "found_sym" to bool.
674 2021-03-03 Tom Tromey <tromey@adacore.com>
676 * ada-lang.c (ada_resolve_function): Update comment.
677 (is_nonfunction, add_symbols_from_enclosing_procs)
678 (remove_extra_symbols): Likewise.
679 (struct match_data): Add constructor, initializers.
680 (add_nonlocal_symbols): Remove memset.
681 (aux_add_nonlocal_symbols): Update comment.
682 (ada_add_block_renamings, add_nonlocal_symbols)
683 (ada_add_all_symbols): Likewise.
684 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
686 2021-03-02 Tom Tromey <tromey@adacore.com>
688 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
689 (cast_to_gnat_encoded_fixed_point_type): Remove.
690 (ada_value_cast, ada_evaluate_subexp): Update.
691 (gnat_encoded_fixed_point_type_info)
692 (ada_is_gnat_encoded_fixed_point_type)
693 (gnat_encoded_fixed_point_delta)
694 (gnat_encoded_fixed_point_scaling_factor): Remove.
695 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
696 (gnat_encoded_fixed_point_delta)
697 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
698 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
699 (ada_print_type): Update.
700 * ada-valprint.c (ada_value_print_num): Update.
701 * dwarf2/read.c (ada_get_gnat_encoded_number)
702 (ada_get_gnat_encoded_ratio): New functions.
703 (finish_fixed_point_type): Use them. Add parameters.
704 (GNAT_FIXED_POINT_SUFFIX): New define.
705 (gnat_encoded_fixed_point_type_info): New function.
706 (read_base_type): Handle gnat encodings.
708 2021-03-02 Tom Tromey <tromey@adacore.com>
710 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
711 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
716 2021-03-02 Tom Tromey <tromey@adacore.com>
718 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
719 * ada-lang.c (resolve_subexp): Update.
720 (ada_resolve_function): Accept a vector.
721 (is_nonfunction, add_defn_to_vec)
722 (add_symbols_from_enclosing_procs): Likewise.
723 (num_defns_collected, defns_collected): Remove.
724 (remove_extra_symbols): Return a vector.
725 (remove_irrelevant_renamings): Return void.
726 (ada_add_local_symbols): Accept a vector.
727 (struct match_data) <obstackp>: Remove.
728 <resultp>: New member.
729 (aux_add_nonlocal_symbols): Update.
730 (ada_add_block_renamings, add_nonlocal_symbols)
731 (ada_add_all_symbols): Accept a vector.
732 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
734 (ada_lookup_symbol): Update.
735 (ada_add_block_symbols): Accept a vector.
736 (get_var_value, iterate_over_symbols): Update.
737 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
740 2021-03-02 Tom Tromey <tromey@adacore.com>
742 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
744 2021-03-02 Tom Tromey <tromey@adacore.com>
746 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
749 (ada_pspace_data): Remove destructor.
750 <sym_cache>: Now a unique_ptr.
751 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
752 (ada_get_symbol_cache): Use 'new'.
753 (ada_clear_symbol_cache): Rewrite.
755 2021-03-02 Tom Tromey <tromey@adacore.com>
757 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
760 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
763 * source.c (add_path): Skip empty dirnames.
765 2021-02-25 Kevin Buettner <kevinb@redhat.com>
767 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
768 include order for <sys/ptrace.h> and <asm/ptrace.h>.
770 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
773 * target.c (target_mourn_inferior): Only compare pids in
774 target_mourn_inferior.
776 2021-02-25 Jan Matyas <jmatyas@codasip.com>
779 * remote.c (remote_target::start_remote): Ensure the single
780 thread, automatically added for remote targets without the
781 concept of threading, is initially in set to the "resumed"
783 * remote.c (remote_target::add_current_inferior_and_thread):
784 Add return value - return the main thread.
786 2021-02-25 Jan Vrany <jan.vrany@labware.com>
788 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
789 (mi_tsv_created): Likewise.
790 (mi_tsv_deleted): Likewise.
792 2021-02-25 Tom de Vries <tdevries@suse.de>
795 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
796 section_kind for &dwo_file->sections.info.
798 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
801 * f-lang.c (fortran_argument_convert): Delete declaration.
802 (fortran_prepare_argument): New function.
803 (evaluate_subexp_f): Move logic to new function
804 fortran_prepare_argument.
806 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
808 * f-exp.y (f77_keywords): Add 'associated'.
809 * f-lang.c (fortran_associated): New function.
810 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
811 (operator_length_f): Likewise.
812 (print_unop_or_binop_subexp_f): New function.
813 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
814 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
815 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
816 (operator_check_f): Likewise.
817 * std-operator.def: Add FORTRAN_ASSOCIATED.
819 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
821 * f-exp.y (fortran_operators): Add ".xor.".
823 2021-02-24 Tom de Vries <tdevries@suse.de>
826 * dwarf2/attribute.c (attribute::form_is_signed): New function
828 * dwarf2/attribute.h (attribute::as_signed): ... here.
829 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
830 (attribute::form_is_signed): Declare.
831 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
834 2021-02-24 Kevin Buettner <kevinb@redhat.com>
836 * nat/aarch64-linux-hw-point.c: Add comment regarding include
837 order for <sys/ptrace.h> and <asm/ptrace.h>.
839 2021-02-24 Kevin Buettner <kevinb@redhat.com>
841 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
844 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
846 * exec.c (set_section_command): Move variable declarations into
847 the function body, and use std::string instead of a fixed size
850 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
852 * exec.c (exec_target::get_section_table): Delete member function.
853 (section_table_read_available_memory): Use current_top_target, not
854 just the exec_ops target.
855 * target-delegates.c: Regenerate.
856 * target.c (default_get_section_table): New function.
857 * target.h (target_ops::get_section_table): Change default
858 behaviour to call default_get_section_table.
859 (default_get_section_table): Declare.
861 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
863 * exec.c (exec_target::close): Call new clear_target_sections
865 (program_space::add_target_sections): Update name of member
867 (program_space::add_target_sections): Update name of member
869 (program_space::remove_target_sections): Likewise.
870 (exec_one_fork): Use new target_sections member function.
871 (exec_target::get_section_table): Likewise.
872 (exec_target::files_info): Likewise.
873 (set_section_command): Likewise.
874 (exec_set_section_address): Likewise.
875 (exec_target::has_memory): Use new target_sections member
877 * progspace.h (program_space::clear_target_sections): New member
879 (program_space::target_sections): Rename member variable to
880 m_target_sections, replace with a new member function.
881 (program_space::m_target_sections): New member variable.
882 * solib-dsbt.c (scan_dyntag): Use new member function.
883 * solib-svr4.c (scan_dyntag): Likewise.
885 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
887 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
889 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
890 (section_table_read_available_memory): Make local const.
891 (exec_target::xfer_partial): Make local const.
892 (print_section_info): Make parameter const.
893 * gdb/exec.h (print_section_info): Likewise.
894 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
896 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
898 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
900 * gdb/s390-tdep.c (s390_load): Likewise.
901 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
902 * gdb/solib-svr4.c (scan_dyntag): Likewise.
903 * gdb/target-debug.h (target_debug_print_target_section_table_p):
905 (target_debug_print_const_target_section_table_p): ...this.
906 * gdb/target-delegates.c: Regenerate.
907 * gdb/target.c (target_get_section_table): Make return type const.
908 (target_section_by_addr): Likewise. Also make some locals const.
909 (memory_xfer_partial_1): Make some locals const.
910 * gdb/target.h (struct target_ops) <get_section_table>: Make
912 (target_section_by_addr): Likewise.
913 (target_get_section_table): Likewise.
915 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
917 * NEWS: Mention new 'maint info target-sections' command.
918 * maint.c (maintenance_info_target_sections): New function.
919 (_initialize_maint_cmds): Register new command.
921 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
923 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
924 (riscv_features_from_bfd): ...this. Change parameter type to
925 'bfd*', and update as required.
926 (riscv_find_default_target_description): Update call to
927 riscv_features_from_bfd. Select a default xlen based on
929 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
931 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
933 * eval.c (evaluate_subexp_standard): Call value_ind for points to
934 dynamic types in UNOP_IND.
936 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
939 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
941 (~dwarf2_queue_guard): Clear queue.
942 (queue_comp_unit): Assert that queue is
944 (process_queue): Adjust.
945 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
947 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
950 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
951 to decide whether or not to enqueue it for expansion.
952 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
953 after calling maybe_queue_comp_unit.
955 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
957 * linux-nat.c (linux_nat_filter_event): Return void.
959 2021-02-22 Tom Tromey <tromey@adacore.com>
961 * solib-svr4.c (enable_break): Update.
962 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
964 (target_bfd_reopen): Change parameter type.
965 * bfd-target.h (target_bfd_reopen): Change parameter type.
967 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
969 * thread.c (add_thread_silent): Add assert.
970 (find_thread_ptid): Add assert.
972 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
975 * inf-ptrace.c (struct target_unpusher): Move to target.h.
976 (target_unpush_up): Likewise.
977 * procfs.c (procfs_target::attach): Push target early. Use
978 target_unpush_up to unpush target in case of error.
979 * target.h (struct target_unpusher): Move here.
980 (target_unpush_up): Likewise.
982 2021-02-19 Kevin Buettner <kevinb@redhat.com>
984 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
985 (which in turn includes <gnulib/config.h>) before include
988 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
991 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
992 (decode_j_type_insn): Likewise.
993 (decode_cj_type_insn): Likewise.
994 (decode_b_type_insn): Likewise.
997 2021-02-18 Tom Tromey <tom@tromey.com>
999 * expression.h (struct expression) <evaluate>: Declare method.
1000 * eval.c (evaluate_subexp): Simplify.
1001 (expression::evaluate): New method.
1002 (evaluate_expression, evaluate_type): Use expression::evaluate.
1004 2021-02-17 Kevin Buettner <kevinb@redhat.com>
1006 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1008 (ada_lookup_name_info): Likewise.
1010 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1012 * aclocal.m4: Regenerate.
1014 2021-02-12 Tom de Vries <tdevries@suse.de>
1017 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1018 (lin_thread_signals): New static var.
1019 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1021 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1022 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1024 * linux-thread-db.c (check_thread_signals): Use
1025 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1027 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1029 * f-exp.y (f77_keywords): Add allocated.
1030 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1031 (operator_length_f): Likewise.
1032 (print_subexp_f): Likewise.
1033 (dump_subexp_body_f): Likewise.
1034 (operator_check_f): Likewise.
1035 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1037 2021-02-11 Tom de Vries <tdevries@suse.de>
1040 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1041 Return true for DW_FORM_strx.
1043 2021-02-11 Tom Tromey <tromey@adacore.com>
1046 * parse.c (write_exp_symbol_reference): Write sym.block.
1048 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1050 * NEWS: Mention changes to 'maint info sections'.
1051 * maint.c (match_substring): Return a bool, fix whitespace issue.
1052 (struct single_bfd_flag_info): New struct.
1053 (bfd_flag_info): New static global.
1054 (match_bfd_flags): Return a bool, use bfd_flag_info.
1055 (print_bfd_flags): Use bfd_flag_info.
1056 (maint_print_section_info): Delete trailing whitespace.
1057 (struct maint_info_sections_opts): New struct.
1058 (maint_info_sections_option_defs): New static global.
1059 (maint_info_sections_completer): New function.
1060 (maintenance_info_sections): Use option parsing mechanism.
1061 (_initialize_maint_cmds): Update command help text for 'maint info
1062 sections' and register a command completer.
1064 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1066 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1067 functionality merged into...
1068 (maint_print_all_sections): ...this new function.
1069 (maintenance_info_sections): Make use of maint_print_all_sections,
1070 allow all objects to be printed even where there's no executable.
1072 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1074 * breakpoint.c (resolve_sal_pc): Make use of
1075 bound_minimal_symbol::obj_section.
1076 * maint.c (maintenance_translate_address): Likewise.
1077 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1078 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1080 * printcmd.c (info_address_command): Make use of
1081 bound_minimal_symbol::obj_section.
1083 2021-02-11 Alan Modra <amodra@gmail.com>
1085 * arm-symbian-tdep.c: Delete.
1086 * NEWS: Mention arm-symbian removal.
1087 * Makefile.in: Remove arm-symbian-tdep entries.
1088 * configure.tgt: Remove arm*-*-symbianelf*.
1089 * doc/gdb.texinfo: Remove mention of SymbianOS.
1090 * osabi.c (gdb_osabi_names): Remove "Symbian".
1091 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1092 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1093 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1095 * testsuite/gdb.base/dup-sect.exp: Likewise.
1096 * testsuite/gdb.base/long_long.exp: Likewise.
1097 * testsuite/gdb.base/solib-weak.exp: Likewise.
1098 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1099 * testsuite/gdb.python/py-section-script.exp: Likewise.
1100 * testsuite/lib/dwarf.exp: Likewise.
1101 * testsuite/lib/gdb.exp: Likewise.
1103 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1105 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1106 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1107 (one_or_two_args): New pattern.
1108 (f77_keywords): Add lbound and ubound.
1109 * f-lang.c (fortran_bounds_all_dims): New function.
1110 (fortran_bounds_for_dimension): New function.
1111 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1112 (operator_length_f): Likewise.
1113 (print_subexp_f): Likewise.
1114 (dump_subexp_body_f): Likewise.
1115 (operator_check_f): Likewise.
1116 * std-operator.def (FORTRAN_LBOUND): Define.
1117 (FORTRAN_UBOUND): Define.
1119 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1121 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1122 and set_section_index member functions where appropriate.
1123 * coffread.c (coff_symtab_read): Likewise.
1124 (process_coff_symbol): Likewise.
1125 * ctfread.c (set_symbol_address): Likewise.
1126 * dwarf2/read.c (add_partial_symbol): Likewise.
1127 (var_decode_location): Likewise.
1128 * language.c: Likewise.
1129 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1130 (compact_minimal_symbols): Likewise.
1131 (minimal_symbol_upper_bound): Likewise.
1132 * objfiles.c (relocate_one_symbol): Likewise.
1133 * psympriv.h (partial_symbol::obj_section): Likewise.
1134 (partial_symbol::address): Likewise.
1135 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1136 * stabsread.c (scan_file_globals): Likewise.
1137 * symmisc.c (dump_msymbols): Likewise.
1138 * symtab.c (general_symbol_info::obj_section): Likewise.
1139 (fixup_section): Likewise.
1140 (get_msymbol_address): Likewise.
1141 * symtab.h (general_symbol_info::section): Rename to...
1142 (general_symbol_info::m_section): ...this.
1143 (general_symbol_info::set_section_index): New member function.
1144 (general_symbol_info::section_index): Likewise.
1145 (SYMBOL_SECTION): Delete.
1146 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1147 set_section_index member functions where appropriate.
1148 (MSYMBOL_SECTION): Delete.
1149 (symbol::symbol): Update to initialize 'm_section'.
1150 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1151 (process_xcoff_symbol): Likewise.
1153 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1155 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1156 MSYMBOL_OBJ_SECTION.
1157 * findvar.c (language_defn::read_var_value): Likewise.
1158 * infcmd.c (jump_command): Likewise.
1159 * linespec.c (minsym_found): Likewise.
1160 * maint.c (maintenance_translate_address): Likewise.
1161 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1162 (minimal_symbol_upper_bound): Likewise.
1163 * parse.c (find_minsym_type_and_address): Likewise.
1164 (operator_check_standard): Likewise.
1165 * printcmd.c (info_address_command): Likewise.
1166 * symmisc.c (dump_msymbols): Likewise.
1167 (print_symbol): Likewise.
1168 * symtab.c (general_symbol_info::obj_section): Define new
1170 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1171 (find_pc_sect_compunit_symtab): Likewise.
1172 (find_function_start_sal): Likewise.
1173 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1174 MSYMBOL_OBJ_SECTION.
1175 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1177 (SYMBOL_OBJ_SECTION): Delete.
1178 (MSYMBOL_OBJ_SECTION): Delete.
1180 2021-02-09 Tom Tromey <tom@tromey.com>
1182 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1184 2021-02-09 Tom de Vries <tdevries@suse.de>
1187 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1188 construct an array type. Add assert to ensure that element_type is
1191 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1193 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1194 (gcore_collect_regset_section_cb): Delete.
1195 (gcore_collect_thread_registers): Delete.
1196 (gcore_build_thread_register_notes): Delete.
1197 (gcore_find_signalled_thread): Delete.
1198 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1199 'gdbarch' and 'thread_info' declarations.
1200 (gcore_build_thread_register_notes): Delete declaration.
1201 (gcore_find_signalled_thread): Likewise.
1202 * fbsd-tdep.c: Remove 'gcore.h' include.
1203 (struct fbsd_collect_regset_section_cb_data): New struct.
1204 (fbsd_collect_regset_section_cb): New function.
1205 (fbsd_collect_thread_registers): New function.
1206 (struct fbsd_corefile_thread_data): New struct.
1207 (fbsd_corefile_thread): New function.
1208 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1209 * linux-tdep.c: Remove 'gcore.h' include.
1210 (struct linux_collect_regset_section_cb_data): New struct.
1211 (linux_collect_regset_section_cb): New function.
1212 (linux_collect_thread_registers): New function.
1213 (linux_corefile_thread): Call Linux specific code.
1214 (find_signalled_thread): New function.
1215 (linux_make_corefile_notes): Call find_signalled_thread.
1217 2021-02-09 Tom Tromey <tromey@adacore.com>
1219 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1221 * value.c (value_contents_copy_raw): Now static.
1222 * value.h (value_contents_copy_raw): Don't declare.
1224 2021-02-09 Tom Tromey <tromey@adacore.com>
1226 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1229 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
1232 * arc-linux-tdep.c (handle_atomic_sequence): New.
1233 (arc_linux_software_single_step): Call handle_atomic_sequence().
1235 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1237 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1239 (REQUIRE_WINDOW): Call is_valid member function.
1240 (REQUIRE_WINDOW_FOR_SETTER): New define.
1241 (gdbpy_tui_is_valid): Call is_valid member function.
1242 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1243 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1245 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1246 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1249 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1251 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1252 for the title is not nullptr.
1254 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1256 * tui-layout.c (saved_tui_windows): Delete.
1257 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1258 call new get_windows member function instead.
1259 (tui_get_window_by_name): Check in tui_windows.
1260 (tui_layout_window::apply): Don't add to tui_windows.
1261 * tui-layout.h (tui_layout_base::get_windows): New member function.
1262 (tui_layout_window::get_windows): Likewise.
1263 (tui_layout_split::get_windows): Likewise.
1265 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1267 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1268 of the window objects.
1270 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1272 * python/python.c (gdbpy_print_stack): Reformat an error message.
1274 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1276 * tui/tui-interp.c (tui_command_line_handler): New function.
1277 (tui_interp::resume): Register tui_command_line_handler as the
1279 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1281 (tui_getc_1): Delete handling of '\n' and '\r'.
1282 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1284 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1286 * tui/tui-regs.c (tui_data_window::display_registers_from):
1287 Mark invisible register sub windows.
1288 (tui_data_window::check_register_values): Ignore invisible
1289 register sub windows.
1291 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1293 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1294 n_spaces with a negative value.
1296 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1298 * tui/tui-regs.c (tui_data_window::display_registers_from):
1299 Add refresh_window call.
1301 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1303 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1305 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1307 * symmisc.c (std_in, std_out, std_err): Remove.
1308 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1310 2021-02-05 Tom de Vries <tdevries@suse.de>
1312 PR breakpoints/27330
1313 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1314 glibc object file has debug info.
1316 2021-02-05 Tom de Vries <tdevries@suse.de>
1319 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1321 2021-02-05 Tom de Vries <tdevries@suse.de>
1323 PR breakpoints/27313
1324 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1327 2021-02-05 Tom Tromey <tom@tromey.com>
1329 * compile/compile-c-support.c (get_compile_context)
1330 (c_get_compile_context, cplus_get_compile_context): Change return
1332 * language.c (language_defn::get_compile_instance): New method.
1333 * language.h (language_defn::get_compile_instance): Change return
1334 type. No longer inline.
1335 * c-lang.c (c_language::get_compile_instance): Change return type.
1336 (cplus_language::get_compile_instance): Change return type.
1337 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1339 * compile/compile.c (compile_to_object): Update.
1341 2021-02-05 Tom Tromey <tom@tromey.com>
1343 * parser-defs.h (write_exp_symbol_reference): Declare.
1344 * parse.c (write_exp_symbol_reference): New function.
1345 * p-exp.y (variable): Use write_exp_symbol_reference.
1346 * m2-exp.y (variable): Use write_exp_symbol_reference.
1347 * f-exp.y (variable): Use write_exp_symbol_reference.
1348 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1349 * c-exp.y (variable): Use write_exp_symbol_reference.
1351 2021-02-05 Tom de Vries <tdevries@suse.de>
1354 * valarith.c (complex_binop): Throw an error if complex type can't
1357 2021-02-05 Tom de Vries <tdevries@suse.de>
1360 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1363 2021-02-05 Tom de Vries <tdevries@suse.de>
1365 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1367 2021-02-04 Mike Frysinger <vapier@gentoo.org>
1369 * configure.tgt (riscv*-*-*): Set gdb_sim.
1371 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1373 * target.c (target_is_non_stop_p): Return bool.
1374 * target.h (target_is_non_stop_p): Return bool.
1376 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1378 * record-full.c (record_full_async_inferior_event_handler):
1379 Don't clear async event handler.
1380 (record_full_base_target::wait): Clear async event handler at
1383 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1385 * record-btrace.c (record_btrace_handle_async_inferior_event):
1386 Don't clear async event handler.
1387 (record_btrace_target::wait): Clear async event handler at
1390 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1392 * remote.c (remote_target::wait): Clear async event handler at
1393 beginning, mark if needed at the end.
1394 (remote_async_inferior_event_handler): Don't set or clear async
1397 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1399 * async-event.h (async_event_handler_func): Add documentation.
1400 * async-event.c (check_async_event_handlers): Don't clear
1401 async_event_handler ready flag.
1402 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1404 * record-btrace.c (record_btrace_handle_async_inferior_event):
1406 * record-full.c (record_full_async_inferior_event_handler):
1408 * remote-notif.c (remote_async_get_pending_events_handler):
1410 * remote.c (remote_async_inferior_event_handler): Likewise.
1412 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1414 * infrun.c (handle_inferior_event): Move stop_soon variable to
1417 2021-02-03 Pedro Alves <pedro@palves.net>
1419 * infcmd.c (detach_command): Hold strong reference to target, and
1420 if all-stop on entry, restart threads on exit.
1421 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1422 (restart_stepped_thread): ... this new function. Also handle
1424 (restart_after_all_stop_detach): New function.
1425 * infrun.h (restart_after_all_stop_detach): Declare.
1427 2021-02-03 Pedro Alves <pedro@palves.net>
1429 * infrun.c (struct step_over_info): Initialize fields.
1430 (prepare_for_detach): Handle ongoing in-line step over.
1432 2021-02-03 Pedro Alves <pedro@palves.net>
1434 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1436 * remote.c (remote_target::remote_detach_1): ... and here ...
1437 * target.c (target_detach): ... instead of here.
1438 * target.h (target_ops::detach): Add comment.
1440 2021-02-03 Pedro Alves <pedro@palves.net>
1442 * infrun.c (struct wait_one_event): Move higher up.
1443 (prepare_for_detach): Abort in-progress displaced steps instead of
1444 letting them complete.
1445 (handle_one): If the inferior is detaching, don't add the thread
1446 back to the global step-over chain.
1447 (restart_threads): Don't restart threads if detaching.
1448 (handle_signal_stop): Remove inferior::detaching reference.
1450 2021-02-03 Pedro Alves <pedro@palves.net>
1452 * infrun.c (prepare_for_detach): Don't release scoped_restore
1455 2021-02-03 Pedro Alves <pedro@palves.net>
1457 * infrun.c (handle_one): New function, factored out from ...
1458 (stop_all_threads): ... here.
1460 2021-02-03 Pedro Alves <pedro@palves.net>
1462 * remote.c (remote_notif_stop_ack): Don't error out on
1463 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1464 (remote_target::discard_pending_stop_replies): Don't delete
1465 in-flight notification; instead, clear its contents.
1467 2021-02-03 Pedro Alves <pedro@palves.net>
1469 * remote.c (extended_remote_target::attach): Set target async in
1470 the target-non-stop path too.
1472 2021-02-03 Pedro Alves <pedro@palves.net>
1475 * infrun.c (handle_signal_stop): Move main context_switch call
1476 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1478 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1480 * NEWS (Changed commands): Add entry for the behavior change of
1481 the inferior command.
1482 * inferior.c (inferior_command): When no argument is given to the
1483 inferior command, display info about the currently selected
1486 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1488 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1490 (read_attribute_reprocess): Adjust.
1492 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1494 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1495 <gnu_ranges_base>: ... this...
1496 <rnglists_base>: ... and this.
1497 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1498 <gnu_ranges_base>: ... this...
1499 <rnglists_base>: ... and this.
1500 (read_cutu_die_from_dwo): Adjust
1501 (dwarf2_get_pc_bounds): Adjust
1502 (dwarf2_record_block_ranges): Adjust.
1503 (read_full_die_1): Adjust
1504 (partial_die_info::read): Adjust.
1505 (read_rnglist_index): Adjust.
1507 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1510 * dwarf2/read.c (read_loclists_rnglists_header): Add
1511 header_offset parameter and use it.
1512 (read_loclist_index): Read header of the current contribution,
1513 not the one at the beginning of the section.
1514 (read_rnglist_index): Likewise.
1516 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1519 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1520 requires_reprocessing flag.
1521 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1523 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1524 and DW_FORM_loclistx.
1525 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1526 instead of set_address for DW_FORM_loclistx and
1529 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1531 * dwarf2/read.c (read_loclist_index): Remove bound check for
1533 (read_rnglist_index): Likewise.
1535 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1537 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1540 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1542 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1544 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1546 * dwarf2/read.c (read_loclist_index): Change complaints into
1549 2021-02-02 Tom de Vries <tdevries@suse.de>
1552 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1555 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1557 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1558 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1559 here from linux-tdep.c and given a new name. Minor cleanups.
1560 (gcore_collect_regset_section_cb): Likewise.
1561 (gcore_collect_thread_registers): Likewise.
1562 (gcore_build_thread_register_notes): Likewise.
1563 (gcore_find_signalled_thread): Likewise.
1564 * gcore.h (gcore_build_thread_register_notes): Declare.
1565 (gcore_find_signalled_thread): Declare.
1566 * fbsd-tdep.c: Add 'gcore.h' include.
1567 (struct fbsd_collect_regset_section_cb_data): Delete.
1568 (fbsd_collect_regset_section_cb): Delete.
1569 (fbsd_collect_thread_registers): Delete.
1570 (struct fbsd_corefile_thread_data): Delete.
1571 (fbsd_corefile_thread): Delete.
1572 (fbsd_make_corefile_notes): Call
1573 gcore_build_thread_register_notes instead of the now deleted
1575 * linux-tdep.c: Add 'gcore.h' include.
1576 (struct linux_collect_regset_section_cb_data): Delete.
1577 (linux_collect_regset_section_cb): Delete.
1578 (linux_collect_thread_registers): Delete.
1579 (linux_corefile_thread): Call
1580 gcore_build_thread_register_notes.
1581 (find_signalled_thread): Delete.
1582 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1584 2021-01-29 Tom de Vries <tdevries@suse.de>
1586 PR breakpoints/26063
1587 * infrun.c (process_event_stop_test): Reset
1588 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1591 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1593 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1594 assert. Extend the header comment.
1596 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1598 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1599 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1600 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1601 (tui_locator_win_info_ptr): Delete declaration.
1602 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1603 (tui_disasm_window::set_contents): Fetch state from tui_location
1605 (tui_get_begin_asm_address): Likewise.
1606 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1608 (get_locator_window): Delete.
1609 (initialize_known_windows): Treat locator window just like all the
1611 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1612 (tui_source_window::set_contents): Fetch state from tui_location
1614 (tui_source_window::showing_source_p): Likewise.
1615 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1617 (tui_locator_win_info_ptr): Delete.
1618 (tui_locator_window::make_status_line): Fetch state from
1619 tui_location global.
1620 (tui_locator_window::rerender): Remove check of 'handle',
1621 reindent function body.
1622 (tui_locator_window::set_locator_fullname): Delete.
1623 (tui_locator_window::set_locator_info): Delete.
1624 (tui_update_locator_fullname): Delete.
1625 (tui_show_frame_info): Likewise.
1626 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1627 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1628 tui/tui-location.h and renamed to
1629 tui_location_tracker::set_location.
1630 (tui_locator_window::set_locator_fullname): Moved to
1631 tui/tui-location.h and renamed to
1632 tui_location_tracker::set_fullname.
1633 (tui_locator_window::full_name): Delete.
1634 (tui_locator_window::proc_name): Delete.
1635 (tui_locator_window::line_no): Delete.
1636 (tui_locator_window::addr): Delete.
1637 (tui_locator_window::gdbarch): Delete.
1638 (tui_update_locator_fullname): Delete declaration.
1639 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1641 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1642 (tui_display_main): Call function on tui_location directly.
1643 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1644 * tui/tui-location.c: New file.
1645 * tui/tui-location.h: New file.
1647 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1649 * gdbtypes.h (get_type_arch): Rename to...
1650 (struct type) <arch>: ... this, update all users.
1652 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1654 * gdbtypes.h (struct type) <arch>: Rename to...
1655 <arch_owner>: ... this, update all users.
1656 <objfile>: Rename to...
1657 <objfile_owner>: ... this, update all users.
1659 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1661 * gdbcmd.h (execute_command_to_string): Update comment.
1662 * top.c (execute_command_to_string): Update header comment.
1664 2021-01-28 Tom de Vries <tdevries@suse.de>
1666 PR breakpoints/27205
1667 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1668 (create_longjmp_master_breakpoint_names): New function, factored out
1670 (create_longjmp_master_breakpoint): ... here. Only try to install
1671 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1672 breakpoint in libc.so failed.
1674 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1677 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1678 unique_ptr is released when the wrapped pointer is kept for later
1681 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1683 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1684 BLR and BR instructions.
1685 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1686 (enum aarch64_masks): New.
1688 2021-01-26 Tom Tromey <tromey@adacore.com>
1690 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1691 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1692 (windows_init_thread_list, windows_nat::handle_load_dll)
1693 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1694 (windows_nat_target::resume)
1695 (windows_nat_target::get_windows_debug_event)
1696 (windows_nat_target::interrupt, windows_xfer_memory)
1697 (windows_nat_target::close): Update.
1698 * nat/windows-nat.c (DEBUG_EVENTS): Use
1699 debug_prefixed_printf_cond.
1700 (matching_pending_stop, fetch_pending_stop)
1701 (continue_last_debug_event): Update.
1703 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1705 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1706 elfcore_write_file_note.
1708 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
1710 * arc-tdep.c (arc_add_reggroups): New function.
1711 (arc_gdbarch_init): Call arc_add_reggroups.
1713 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
1715 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1717 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1718 Simon Marchi <simon.marchi@polymtl.ca>
1719 Tom de Vries <tdevries@suse.de>
1721 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1724 2021-01-25 Tom Tromey <tromey@adacore.com>
1726 * dwarf2/read.c (get_mpz): New function.
1727 (get_dwarf2_rational_constant): Use it.
1729 2021-01-25 Tom Tromey <tromey@adacore.com>
1731 * ada-lang.c (resolve_subexp): Handle array context.
1733 2021-01-23 Tom Tromey <tom@tromey.com>
1736 * compile/compile-loc2c.c (note_register): New function.
1737 (pushf_register_address, pushf_register): Use it.
1739 2021-01-23 Tom Tromey <tom@tromey.com>
1741 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1742 Change type of "registers_used".
1743 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1744 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1745 (locexpr_generate_c_location, loclist_generate_c_location): Change
1746 type of "registers_used".
1747 * compile/compile.h (compile_dwarf_expr_to_c)
1748 (compile_dwarf_bounds_to_c): Update.
1749 * compile/compile-loc2c.c (pushf_register_address)
1750 (pushf_register, do_compile_dwarf_expr_to_c)
1751 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
1752 of "registers_used".
1753 * compile/compile-c.h (generate_c_for_variable_locations):
1755 * compile/compile-c-symbols.c (generate_vla_size)
1756 (generate_c_for_for_one_variable): Change type of
1758 (generate_c_for_variable_locations): Return std::vector.
1759 * compile/compile-c-support.c (generate_register_struct): Change
1760 type of "registers_used".
1763 2021-01-23 Tom Tromey <tom@tromey.com>
1765 * compile/compile-internal.h (class compile_instance)
1766 <set_arguments>: Change return type.
1767 * compile/compile.c (compile_to_object): Remove call to reset.
1768 (compile_instance::set_arguments): Change return type.
1770 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1772 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1773 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1775 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1777 * Makefile.in (SELFTESTS_SRCS): Add
1778 unittests/gdb_tilde_expand-selftests.c.
1779 * unittests/gdb_tilde_expand-selftests.c: New file.
1781 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1784 * NEWS: Mention new command.
1785 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1786 (version_style): Define.
1787 (cli_style_option::cli_style_option): Add intensity parameter, and
1789 (_initialize_cli_style): Register version style set/show commands.
1790 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1791 (version_style): Declare.
1792 * top.c (print_gdb_version): Use version_stype, and styled_string
1793 to print the GDB version string.
1795 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1797 * utils.c (emit_style_escape): Only emit an escape sequence if the
1798 requested style is different than the current applied style.
1799 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1800 current applied_style.
1801 (fputs_styled): Remove is_default check.
1802 (fputs_styled_unfiltered): Likewise.
1803 (vfprintf_styled_no_gdbfmt): Likewise.
1805 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1807 * remote.h (remote_debug_printf): New.
1808 (remote_debug_printf_nofunc): New.
1809 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1810 * remote.c: Use above macros throughout file.
1812 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1814 * remote.h (remote_debug): Change to bool.
1815 * remote.c (remote_debug): Change to bool.
1816 (_initialize_remote): Adjust.
1818 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1820 * target.h (remote_debug): Move to...
1821 * remote.h (remote_debug): ... here.
1822 * top.c (remote_debug): Move to...
1823 * remote.c (remote_debug): ... here.
1824 * remote-sim.c: Include remote.h.
1826 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1828 * cli/cli-cmds.c (show_remote_debug): Remove.
1829 (show_remote_timeout): Remove.
1830 (_initialize_cli_cmds): Don't register commands.
1831 * remote.c (show_remote_debug): Move here.
1832 (show_remote_timeout): Move here.
1833 (_initialize_remote): Register commands.
1835 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1837 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
1838 type::objfile method instead.
1840 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1842 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
1843 use the type::is_objfile_owned method.
1845 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
1847 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
1848 (TYPE_OWNER): Remove.
1849 (TYPE_OBJFILE): Adjust.
1850 (struct main_type) <flag_objfile_owned>: Rename to...
1851 <m_flag_objfile_owned>: ... this.
1852 <owner>: Rename to...
1853 <m_owner>: ... this.
1854 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
1856 (TYPE_ALLOC): Adjust.
1857 * gdbtypes.c (alloc_type): Adjust.
1858 (alloc_type_arch): Adjust.
1859 (alloc_type_copy): Adjust.
1860 (get_type_arch): Adjust.
1861 (smash_type): Adjust.
1862 (lookup_array_range_type): Adjust.
1863 (recursive_dump_type): Adjust.
1864 (copy_type_recursive): Adjust.
1865 * compile/compile-c-types.c (convert_func): Adjust.
1866 (convert_type_basic): Adjust.
1867 * compile/compile-cplus-types.c (compile_cplus_convert_func):
1870 (language_arch_info::type_and_symbol::alloc_type_symbol):
1873 2021-01-21 Luis Machado <luis.machado@linaro.org>
1875 * coffread.c (enter_linenos): Passing string to complaint.
1876 * valops.c (value_assign): Make array view.
1878 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1880 * auto-load.h (debug_auto_load): Move here.
1881 (auto_load_debug_printf): New.
1882 * auto-load.c: Use auto_load_debug_printf.
1883 (debug_auto_load): Move to header.
1884 * linux-thread-db.c (try_thread_db_load): Use
1885 auto_load_debug_printf.
1886 * main.c (captured_main_1): Likewise.
1888 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1890 * f-valprint.c (f77_array_offset_tbl): Remove.
1892 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1894 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1896 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1898 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1901 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
1904 * python/py-breakpoint.c (bppy_get_location): Handle
1905 bp_hardware_breakpoint.
1906 (bppy_init): Likewise.
1907 (gdbpy_breakpoint_created): Likewise.
1909 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1911 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1913 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1915 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1916 (_initialize_gdb_bfd): Adjust.
1918 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1921 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1923 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1925 * dwarf2/read.c (follow_die_offset): Add logging.
1926 (dwarf2_per_objfile::age_comp_units): Add logging.
1928 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1930 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1931 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1932 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1933 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1934 * arm-tdep.c (struct frame_unwind): Make static.
1935 * auto-load.c (auto_load_safe_path_vec): Make static.
1936 * csky-tdep.c (csky_stub_unwind): Make static.
1937 * gdbarch.c (gdbarch_data_registry): Make static.
1938 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1939 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1940 * i386-tdep.c (i386_frame_setup_skip_insns,
1941 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1943 * infrun.c (observer_mode): Make static.
1944 * linux-nat.c (sigchld_action): Make static.
1945 * linux-thread-db.c (thread_db_list): Make static.
1946 * maint-test-options.c (maintenance_test_options_list):
1947 * mep-tdep.c (mep_csr_registers): Make static.
1948 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1949 (stats): Make static.
1950 * nat/linux-osdata.c (struct osdata_type): Make static.
1951 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1952 * progspace.c (last_program_space_num): Make static.
1953 * python/py-param.c (struct parm_constant): Remove struct type
1955 (parm_constants): Make static.
1956 * python/py-record-btrace.c (btpy_list_methods): Make static.
1957 * python/py-record.c (recpy_gap_type): Make static.
1958 * record.c (record_goto_cmdlist): Make static.
1959 * regcache.c (regcache_descr_handle): Make static.
1960 * registry.h (DEFINE_REGISTRY): Make definition static.
1961 * symmisc.c (std_in, std_out, std_err): Make static.
1962 * top.c (previous_saved_command_line): Make static.
1963 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1965 * unittests/command-def-selftests.c (nr_duplicates,
1966 nr_invalid_prefixcmd, lists): Make static.
1967 * unittests/observable-selftests.c (test_notification): Make
1969 * unittests/optional/assignment/1.cc (counter): Make static.
1970 * unittests/optional/assignment/2.cc (counter): Make static.
1971 * unittests/optional/assignment/3.cc (counter): Make static.
1972 * unittests/optional/assignment/4.cc (counter): Make static.
1973 * unittests/optional/assignment/5.cc (counter): Make static.
1974 * unittests/optional/assignment/6.cc (counter): Make static.
1976 2021-01-20 Joel Sherrill <joel@rtems.org>
1979 * remote.c (struct remote_thread_info) <resume_state>: Rename
1981 <get_resume_state>: ... this.
1982 (remote_target::resume): Adjust.
1983 (remote_target::commit_resume): Adjust.
1984 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
1986 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
1987 Tom Tromey <tom@tromey.com>
1989 * stap-probe.c (stap_parse_single_operand): Handle '!'
1991 (stap_parse_argument_conditionally): Likewise.
1992 Skip spaces after processing open-parenthesis sub-expression.
1993 (stap_parse_argument_1): Skip spaces after call to
1994 stap_parse_argument_conditionally.
1995 Handle case when right-side expression is a parenthesized
1997 Skip spaces after call to stap_parse_argument_1.
1999 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2001 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2003 2021-01-19 Luis Machado <luis.machado@linaro.org>
2005 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2006 memory and save data.
2007 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2008 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2009 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2010 (trad_frame_value_bytes_p): Remove.
2011 (trad_frame_reset_saved_regs): Adjust documentation.
2012 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2013 constructor and reset the state of the registers.
2014 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2015 (trad_frame_value_bytes_p, trad_frame_set_value)
2016 (trad_frame_set_realreg, trad_frame_set_addr)
2017 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2018 (trad_frame_set_reg_realreg): Update to call member function.
2019 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2020 (trad_frame_get_prev_register): Likewise.
2022 * aarch64-tdep.c (aarch64_analyze_prologue)
2023 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2024 (aarch64_prologue_prev_register): Update to use member functions.
2025 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2026 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2027 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2028 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2029 (arm_make_epilogue_frame_cache): Likewise.
2030 * avr-tdep.c (avr_frame_unwind_cache)
2031 (avr_frame_prev_register): Likewise.
2032 * cris-tdep.c (cris_scan_prologue): Likewise.
2033 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2034 * frv-tdep.c (frv_analyze_prologue): Likewise.
2035 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2036 * lm32-tdep.c (lm32_frame_cache): Likewise.
2037 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2038 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2039 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2040 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2041 (reset_saved_regs): Adjust to set realreg.
2042 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2043 call member functions.
2044 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2045 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2046 (s390_backchain_frame_unwind_cache): Likewise.
2047 * score-tdep.c (score7_analyze_prologue)
2048 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2049 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2050 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2051 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2052 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2053 * tilegx-tdep.c (tilegx_analyze_prologue)
2054 (tilegx_frame_cache): Likewise.
2055 * v850-tdep.c (v850_frame_cache): Likewise.
2056 * vax-tdep.c (vax_frame_cache): Likewise.
2058 2021-01-19 Luis Machado <luis.machado@linaro.org>
2060 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2062 (put_frame_register_bytes): Likewise.
2063 Adjust documentation.
2064 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2065 (safe_frame_unwind_memory): Likewise.
2066 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2067 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2069 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2070 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2071 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2072 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2073 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2074 * dwarf2/loc.c (rw_pieced_value): Likewise.
2075 * hppa-tdep.c (hppa_frame_cache): Likewise.
2076 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2077 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2078 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2079 (i386_linux_rt_sigtramp_start): Likewise.
2080 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2081 * i386-tdep.c (i386_register_to_value): Likewise.
2082 * i387-tdep.c (i387_register_to_value): Likewise.
2083 * ia64-tdep.c (ia64_register_to_value): Likewise.
2084 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2085 (m32r_linux_rt_sigtramp_start): Likewise.
2086 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2087 * m68k-tdep.c (m68k_register_to_value): Likewise.
2088 * mips-tdep.c (mips_register_to_value)
2089 (mips_value_to_register): Likewise.
2090 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2091 (ppcfbsd_sigtramp_frame_cache): Likewise.
2092 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2093 (ppcobsd_sigtramp_frame_cache): Likewise.
2094 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2095 (rs6000_register_to_value): Likewise.
2096 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2097 * tramp-frame.c (tramp_frame_start): Likewise.
2098 * valops.c (value_assign): Likewise.
2100 2021-01-19 Luis Machado <luis.machado@linaro.org>
2102 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2104 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2105 instead of buffer and size.
2106 (trad_frame_set_reg_value_bytes): Likewise.
2107 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2108 (trad_frame_set_value_bytes): Likewise.
2110 2021-01-18 Mike Frysinger <vapier@gentoo.org>
2112 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2114 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2116 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2117 (riscv_fbsd_gregset): Use riscv_supply_regset.
2118 (riscv_fbsd_fpregset): Likewise.
2119 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2120 (riscv_linux_fregset): Likewise.
2121 * riscv-tdep.c (riscv_supply_regset): Define new function.
2122 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2124 2021-01-18 Tom de Vries <tdevries@suse.de>
2127 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2129 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2132 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2134 * remote.c (class remote_target) <remote_hostio_send_command,
2135 remote_hostio_parse_result>: Constify parameter.
2136 (remote_hostio_parse_result): Likewise.
2137 (remote_target::remote_hostio_send_command): Adjust.
2138 (remote_target::remote_hostio_pread_vFile): Adjust.
2139 (remote_target::fileio_readlink): Adjust.
2140 (remote_target::fileio_fstat): Adjust.
2142 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2144 * remote.c (remote_target::start_remote): Move wait_status to
2147 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2149 * remote.c (class remote_target):
2150 <add_current_inferior_and_thread>: Constify parameter.
2151 (stop_reply_extract_thread): Likewise.
2152 (remote_target::get_current_thread): Likewise.
2153 (remote_target::add_current_inferior_and_thread): Likewise.
2155 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2157 * remote.c (class remote_target)
2158 <remote_unpack_thread_info_response,
2159 parse_threadlist_response>: Constify parameter and/or return
2160 value and or local variable.
2161 (stub_unpack_int): Likewise.
2162 (unpack_nibble): Likewise.
2163 (unpack_byte): Likewise.
2164 (unpack_int): Likewise.
2165 (unpack_string): Likewise.
2166 (unpack_threadid): Likewise.
2167 (remote_target::remote_unpack_thread_info_response): Likewise.
2168 (remote_target::parse_threadlist_response): Likewise.
2170 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2172 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2174 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
2176 * MAINTAINERS (Write After Approval): Add myself.
2178 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2180 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2181 because is_trivially_default_constructible was first implemented with
2184 2021-01-14 Tom de Vries <tdevries@suse.de>
2186 PR breakpoints/27151
2187 * objfiles.h (in_plt_section): Handle .plt.sec.
2189 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2193 (remote_target::select_thread_for_ambiguous_stop_reply): New
2195 (remote_target::process_stop_reply): Call
2196 select_thread_for_ambiguous_stop_reply.
2198 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2200 * record-btrace.c (class record_btrace_target): Remove.
2201 (record_btrace_target::commit_resume): Remove.
2202 * record-full.c (class record_full_target): Remove.
2203 (record_full_target::commit_resume): Remove.
2205 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2207 * remote.c (enum class resume_state): New.
2208 (struct resumed_pending_vcont_info): New.
2209 (struct remote_thread_info) <resume_state, set_not_resumed,
2210 set_resumed_pending_vcont, resumed_pending_vcont_info,
2211 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2213 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2214 (remote_target::remote_add_thread): Adjust.
2215 (remote_target::process_initial_stop_replies): Adjust.
2216 (remote_target::resume): Adjust.
2217 (remote_target::commit_resume): Rely on state in
2218 remote_thread_info and not on tp->executing.
2219 (remote_target::process_stop_reply): Adjust.
2221 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2223 * arc-tdep.h (arc_debug_printf): New.
2224 * arc-tdep.c: Use arc_debug_printf.
2225 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2226 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2227 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2229 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2231 * arc-tdep.h (arc_debug): Change type to bool.
2232 * arc-tdep.c (arc_debug): Change type to bool.
2233 (arc_analyze_prologue): Adjust.
2234 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2235 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2237 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2239 * auto-load.c (auto_load_objfile_script_1): Use bool.
2240 (execute_script_contents): Use bool.
2242 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2244 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2246 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2248 * extension-priv.h (struct extension_language_script_ops)
2249 <auto_load_enabled>: Return bool.
2250 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2252 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2254 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2256 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2257 move comment to header.
2258 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2260 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2261 move comment to header.
2263 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2265 * auto-load.h (file_is_auto_load_safe): Change return type to
2266 bool, move comment here.
2267 * auto-load.c (file_is_auto_load_safe): Change return type and
2268 advice_printed to bool. Move comment to header.
2270 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2272 * jit.c (jit_debug_printf): New, use throughout file.
2274 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2276 * infrun.c (normal_stop): Fix indentation.
2278 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2280 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2282 * symfile.h: ... here.
2283 * symfile.c: Update doc.
2285 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2287 * target.h (baud_rate, serial_parity): Move declarations...
2288 * serial.h: ... here.
2289 * main.c: Include serial.h.
2290 * serial.c (baud_rate, serial_parity): Update doc.
2292 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2294 * top.c (pre_init_ui_hook): Remove.
2296 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2298 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2299 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2300 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2301 * features/aarch64-fpu.xml: Add bfloat16 type.
2303 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2305 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2307 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2309 * f-exp.y (dot_ops): Rename to...
2310 (fortran_operators): ...this. Add a header comment. Add symbol
2312 (yylex): Update to use fortran_operators not dot_ops. Remove
2313 special handling for '**', this is now included in
2316 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2318 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2319 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2320 * aarch64-tdep.c: Use aarch64_debug_printf.
2322 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2324 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2327 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2329 * jit.c (jit_debug): Change type to bool.
2330 (_initialize_jit): Adjust.
2332 2021-01-09 Tom Tromey <tom@tromey.com>
2335 * compile/compile.c (compile_to_object): Avoid crash when
2336 osabi_triplet_regexp returns NULL.
2338 2021-01-09 Tom Tromey <tom@tromey.com>
2340 * tracepoint.h (class collection_list) <append_exp>: Take a
2342 * tracepoint.c (collection_list::append_exp): Take a std::string.
2343 (encode_actions_1): Update.
2345 2021-01-08 Tom Tromey <tromey@adacore.com>
2347 * parse.c (parse_expression): Add void_context_p parameter. Use
2348 parse_exp_in_context.
2349 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2351 (print_command, call_command): Update.
2352 * expression.h (parse_expression): Add void_context_p parameter.
2354 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2356 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2357 for internalvar components that have a dynamic location.
2359 2021-01-08 Tom de Vries <tdevries@suse.de>
2362 * breakpoint.c (create_exception_master_breakpoint_probe)
2363 (create_exception_master_breakpoint_hook): Factor out
2365 (create_exception_master_breakpoint): ... here. Only try to install
2366 the master exception breakpoint in objfile.debug using the
2367 _Unwind_DebugHook method, if the install using probes in objfile
2370 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2372 * f-lang.c (fortran_value_subarray): Call value_from_component.
2374 2021-01-07 Mike Frysinger <vapier@gentoo.org>
2376 * remote-sim.c: Include memory-map.h.
2377 (gdbsim_target): Define memory_map override.
2378 (gdbsim_target::memory_map): Define.
2380 2021-01-07 Tom Tromey <tromey@adacore.com>
2382 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2384 2021-01-07 Tom Tromey <tromey@adacore.com>
2386 * ada-lang.c (add_component_interval): Start loop using vector's
2389 2021-01-06 Tom Tromey <tromey@adacore.com>
2391 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2393 * valarith.c (fixed_point_binop): Handle multiplication
2394 and division specially.
2395 * valops.c (value_to_gdb_mpq): New function.
2396 (value_cast_to_fixed_point): Use it.
2398 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2400 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2401 Call wnoutrefresh instead of tui_win_info::refresh_window.
2403 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2405 * tui/tui-source.c (tui_source_window::show_line_number):
2406 Redraw second space after line number.
2408 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2411 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2412 Fix source pad size in prefresh.
2413 (tui_source_window_base::show_source_content): Grow source pad
2416 2021-01-04 Mike Frysinger <vapier@gentoo.org>
2418 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2419 (bfin_frame_align): Use align_down.
2421 2021-01-04 Tom de Vries <tdevries@suse.de>
2423 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2424 terminators that do not terminate anything.
2426 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2428 * debug.c (debug_print_depth): New.
2429 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2430 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2431 * infrun.c (start_step_over): Use
2432 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2433 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2434 INFRUN_SCOPED_DEBUG_START_END.
2435 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2437 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2439 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2441 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2443 * utils.c (vfprintf_unfiltered): Print timestamp only when
2444 previous debug output ended with a newline.
2446 2021-01-04 Luis Machado <luis.machado@linaro.org>
2448 Update all users of trad_frame_saved_reg to use the new member
2451 Remote all struct keywords from declarations of trad_frame_saved_reg
2452 types, except on forward declarations.
2454 * aarch64-tdep.c: Update.
2455 * alpha-mdebug-tdep.c: Update.
2456 * alpha-tdep.c: Update.
2457 * arc-tdep.c: Update.
2458 * arm-tdep.c: Update.
2459 * avr-tdep.c: Update.
2460 * cris-tdep.c: Update.
2461 * csky-tdep.c: Update.
2462 * frv-tdep.c: Update.
2463 * hppa-linux-tdep.c: Update.
2464 * hppa-tdep.c: Update.
2465 * hppa-tdep.h: Update.
2466 * lm32-tdep.c: Update.
2467 * m32r-linux-tdep.c: Update.
2468 * m32r-tdep.c: Update.
2469 * m68hc11-tdep.c: Update.
2470 * mips-tdep.c: Update.
2471 * moxie-tdep.c: Update.
2472 * riscv-tdep.c: Update.
2473 * rs6000-tdep.c: Update.
2474 * s390-linux-tdep.c: Update.
2475 * s390-tdep.c: Update.
2476 * score-tdep.c: Update.
2477 * sparc-netbsd-tdep.c: Update.
2478 * sparc-sol2-tdep.c: Update.
2479 * sparc64-fbsd-tdep.c: Update.
2480 * sparc64-netbsd-tdep.c: Update.
2481 * sparc64-obsd-tdep.c: Update.
2482 * sparc64-sol2-tdep.c: Update.
2483 * tilegx-tdep.c: Update.
2484 * v850-tdep.c: Update.
2485 * vax-tdep.c: Update.
2487 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2488 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2490 * trad-frame.c: Update.
2491 Remove TF_REG_* enum.
2492 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2493 a trivially-constructible struct.
2494 (trad_frame_reset_saved_regs): Adjust to use member function.
2495 (trad_frame_value_p): Likewise.
2496 (trad_frame_addr_p): Likewise.
2497 (trad_frame_realreg_p): Likewise.
2498 (trad_frame_value_bytes_p): Likewise.
2499 (trad_frame_set_value): Likewise.
2500 (trad_frame_set_realreg): Likewise.
2501 (trad_frame_set_addr): Likewise.
2502 (trad_frame_set_unknown): Likewise.
2503 (trad_frame_set_value_bytes): Likewise.
2504 (trad_frame_get_prev_register): Likewise.
2505 * trad-frame.h: Update.
2506 (trad_frame_saved_reg_kind): New enum.
2507 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2508 <m_kind, m_reg>: New member fields.
2509 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2510 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2511 <is_addr, is_unknown, is_value_bytes>: New member functions.
2513 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2515 * target-float.c: Fix typos.
2517 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
2519 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2521 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2523 * gdbarch.sh: Update copyright year range.
2525 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2527 Update copyright year range in copyright header of all GDB files.
2529 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2531 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2532 to the list of directories to update.
2534 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2536 * top.c (print_gdb_version): Update copyright year.
2538 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2540 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
2542 For older changes see ChangeLog-2020.
2548 version-control: never