1 2021-03-08 Tom Tromey <tom@tromey.com>
3 * expop.h (class sub_operation): New.
4 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
5 (evaluate_subexp_standard): Update.
7 2021-03-08 Tom Tromey <tom@tromey.com>
9 * expop.h (class add_operation): New.
10 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
11 (evaluate_subexp_standard): Update.
13 2021-03-08 Tom Tromey <tom@tromey.com>
15 * expop.h (class concat_operation): New.
16 * eval.c (eval_op_concat): No longer static. Remove "op"
18 (evaluate_subexp_standard): Update.
20 2021-03-08 Tom Tromey <tom@tromey.com>
22 * expop.h (class structop_member_operation)
23 (class structop_mptr_operation): New.
24 * eval.c (eval_op_member): No longer static.
26 2021-03-08 Tom Tromey <tom@tromey.com>
28 * expop.h (class structop_ptr_operation): New.
29 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
32 2021-03-08 Tom Tromey <tom@tromey.com>
34 * expop.h (class structop_base_operation)
35 (class structop_operation): New.
36 * eval.c (eval_op_structop_struct): No longer static.
38 2021-03-08 Tom Tromey <tom@tromey.com>
40 * expop.h (class complex_operation): New.
42 2021-03-08 Tom Tromey <tom@tromey.com>
44 * eval.c (eval_op_objc_selector): No longer static.
45 * c-exp.h (class objc_selector_operation): New.
47 2021-03-08 Tom Tromey <tom@tromey.com>
49 * eval.c: Include c-exp.h.
50 * c-exp.h (class objc_nsstring_operation): New.
52 2021-03-08 Tom Tromey <tom@tromey.com>
54 * c-lang.c (c_string_operation::evaluate): New method.
57 2021-03-08 Tom Tromey <tom@tromey.com>
59 * expop.h (class ternop_cond_operation): New.
60 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
62 2021-03-08 Tom Tromey <tom@tromey.com>
64 * expop.h (class ternop_slice_operation): New.
65 * eval.c (eval_op_ternop): No longer static.
67 2021-03-08 Tom Tromey <tom@tromey.com>
69 * expop.h (class string_operation): New.
70 * eval.c (eval_op_string): No longer static.
72 2021-03-08 Tom Tromey <tom@tromey.com>
74 * expop.h (class internalvar_operation): New.
75 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
77 2021-03-08 Tom Tromey <tom@tromey.com>
79 * expop.h (class bool_operation): New.
81 2021-03-08 Tom Tromey <tom@tromey.com>
83 * expop.h (class register_operation): New.
84 * eval.c (eval_op_register): No longer static.
85 * ax-gdb.c (register_operation::do_generate_ax): New method.
87 2021-03-08 Tom Tromey <tom@tromey.com>
89 * expop.h (class last_operation): New.
91 2021-03-08 Tom Tromey <tom@tromey.com>
93 * expop.h (class func_static_var_operation): New.
94 * eval.c (eval_op_func_static_var): No longer static.
96 2021-03-08 Tom Tromey <tom@tromey.com>
98 * expop.h (class var_entry_value_operation): New.
99 * eval.c (eval_op_var_entry_value): No longer static.
101 2021-03-08 Tom Tromey <tom@tromey.com>
103 * expression.h (class operation) <set_outermost>: New method.
104 * expop.h (class var_msym_value_operation): New.
105 * eval.c (eval_op_var_msym_value): No longer static.
106 (var_msym_value_operation::evaluate_for_address)
107 (var_msym_value_operation::evaluate_for_sizeof)
108 (var_msym_value_operation::evaluate_for_cast): New methods.
109 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
112 2021-03-08 Tom Tromey <tom@tromey.com>
114 * expop.h (class long_const_operation): New.
115 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
117 2021-03-08 Tom Tromey <tom@tromey.com>
119 * expop.h (class scope_operation): New.
120 * eval.c (eval_op_scope): No longer static.
121 (scope_operation::evaluate_for_address): New method.
122 * ax-gdb.c (scope_operation::do_generate_ax): New method.
124 2021-03-08 Tom Tromey <tom@tromey.com>
126 * expprint.c (float_const_operation::dump): New method.
127 * expop.h (float_data): New typedef.
128 (class float_const_operation): New.
130 2021-03-08 Tom Tromey <tom@tromey.com>
132 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
133 * ax-gdb.c (gen_expr_binop): New function.
134 (gen_expr_structop): Likewise.
136 2021-03-08 Tom Tromey <tom@tromey.com>
138 * expprint.c (expr::dump_for_expression): New functions.
139 * expop.h (dump_for_expression): New overloads.
140 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
143 2021-03-08 Tom Tromey <tom@tromey.com>
145 * expression.h (expr::operation): New class.
146 (expr::make_operation): New function.
147 (expr::operation_up): New typedef.
149 * eval.c (operation::evaluate_for_cast)
150 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
152 * ax-gdb.c (operation::generate_ax): New method.
154 2021-03-08 Tom Tromey <tom@tromey.com>
156 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
157 (gen_expr_binop_rest): New overload.
159 2021-03-08 Tom Tromey <tom@tromey.com>
161 * eval.c (eval_multi_subscript): New function.
162 (evaluate_subexp_standard): Use it.
164 2021-03-08 Tom Tromey <tom@tromey.com>
166 * ada-lang.c (ada_binop_exp): New function.
167 (ada_evaluate_subexp): Use it.
169 2021-03-08 Tom Tromey <tom@tromey.com>
171 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
173 (ada_evaluate_subexp): Use it.
175 2021-03-08 Tom Tromey <tom@tromey.com>
177 * ada-lang.c (ada_binop_minmax): New function.
178 (ada_evaluate_subexp): Use it.
180 2021-03-08 Tom Tromey <tom@tromey.com>
182 * ada-lang.c (ada_unop_atr): New function.
183 (ada_evaluate_subexp): Use it.
185 2021-03-08 Tom Tromey <tom@tromey.com>
187 * ada-lang.c (ada_binop_in_bounds): New function.
188 (ada_evaluate_subexp): Use it.
190 2021-03-08 Tom Tromey <tom@tromey.com>
192 * ada-lang.c (ada_ternop_slice): New function.
193 (ada_evaluate_subexp): Use it.
195 2021-03-08 Tom Tromey <tom@tromey.com>
197 * ada-lang.c (ada_equal_binop): New function.
198 (ada_evaluate_subexp): Use it.
200 2021-03-08 Tom Tromey <tom@tromey.com>
202 * ada-lang.c (ada_mult_binop): New function.
203 (ada_evaluate_subexp): Use it.
205 2021-03-08 Tom Tromey <tom@tromey.com>
207 * ada-lang.c (ada_abs): New function.
208 (ada_evaluate_subexp): Use it.
210 2021-03-08 Tom Tromey <tom@tromey.com>
212 * ada-lang.c (ada_atr_size): New function.
213 (ada_evaluate_subexp): Use it.
215 2021-03-08 Tom Tromey <tom@tromey.com>
217 * ada-lang.c (ada_atr_tag): New function.
218 (ada_evaluate_subexp): Use it.
220 2021-03-08 Tom Tromey <tom@tromey.com>
222 * ada-lang.c (ada_unop_in_range): New function.
223 (ada_evaluate_subexp): Use it.
225 2021-03-08 Tom Tromey <tom@tromey.com>
227 * ada-lang.c (ada_unop_neg): New function.
228 (ada_evaluate_subexp): Use it.
230 2021-03-08 Tom Tromey <tom@tromey.com>
232 * ada-lang.c (eval_ternop_in_range): New function.
233 (ada_evaluate_subexp): Use it.
235 2021-03-08 Tom Tromey <tom@tromey.com>
237 * opencl-lang.c (eval_opencl_assign): New function.
238 (evaluate_subexp_opencl): Use it.
240 2021-03-08 Tom Tromey <tom@tromey.com>
242 * eval.c (eval_op_objc_msgcall): New function.
243 (evaluate_subexp_standard): Use it.
245 2021-03-08 Tom Tromey <tom@tromey.com>
247 * eval.c (eval_binop_assign_modify): New function.
248 (evaluate_subexp_standard): Use it.
250 2021-03-08 Tom Tromey <tom@tromey.com>
252 * m2-lang.c (eval_op_m2_subscript): New function.
253 (evaluate_subexp_modula2): Use it.
255 2021-03-08 Tom Tromey <tom@tromey.com>
257 * m2-lang.c (eval_op_m2_high): New function.
258 (evaluate_subexp_modula2): Use it.
260 2021-03-08 Tom Tromey <tom@tromey.com>
262 * eval.c (evaluate_subexp_for_address_base): New function.
263 (evaluate_subexp_for_address): Use it.
264 (evaluate_subexp_for_sizeof_base): New function.
265 (evaluate_subexp_for_sizeof): Use it.
267 2021-03-08 Tom Tromey <tom@tromey.com>
269 * rust-lang.c (eval_op_rust_structop): New function.
270 (rust_evaluate_subexp): Use it.
272 2021-03-08 Tom Tromey <tom@tromey.com>
274 * rust-lang.c (eval_op_rust_struct_anon): New function.
275 (rust_evaluate_subexp): Use it.
277 2021-03-08 Tom Tromey <tom@tromey.com>
279 * rust-lang.c (eval_op_rust_array): New function.
280 (rust_evaluate_subexp): Use it.
282 2021-03-08 Tom Tromey <tom@tromey.com>
284 * rust-lang.c (eval_op_rust_complement): New function.
285 (rust_evaluate_subexp): Use it.
287 2021-03-08 Tom Tromey <tom@tromey.com>
289 * rust-lang.c (eval_op_rust_ind): New function.
290 (rust_evaluate_subexp): Use it.
292 2021-03-08 Tom Tromey <tom@tromey.com>
294 * rust-lang.c (rust_subscript): Change parameters.
295 (rust_evaluate_subexp): Update.
297 2021-03-08 Tom Tromey <tom@tromey.com>
299 * rust-lang.c (rust_range): Change parameters.
300 (rust_evaluate_subexp): Update.
302 2021-03-08 Tom Tromey <tom@tromey.com>
304 * f-lang.c (eval_op_f_allocated): New function.
305 (evaluate_subexp_f): Use it.
307 2021-03-08 Tom Tromey <tom@tromey.com>
309 * f-lang.c (fortran_require_array): New function.
310 (evaluate_subexp_f): Use it.
312 2021-03-08 Tom Tromey <tom@tromey.com>
314 * f-lang.c (eval_op_f_kind): New function.
315 (evaluate_subexp_f): Use it.
317 2021-03-08 Tom Tromey <tom@tromey.com>
319 * f-lang.c (eval_op_f_cmplx): New function.
320 (evaluate_subexp_f): Use it.
322 2021-03-08 Tom Tromey <tom@tromey.com>
324 * f-lang.c (eval_op_f_modulo): New function.
325 (evaluate_subexp_f): Use it.
327 2021-03-08 Tom Tromey <tom@tromey.com>
329 * f-lang.c (eval_op_f_floor): New function.
330 (evaluate_subexp_f): Use it.
332 2021-03-08 Tom Tromey <tom@tromey.com>
334 * f-lang.c (eval_op_f_ceil): New function.
335 (evaluate_subexp_f): Use it.
337 2021-03-08 Tom Tromey <tom@tromey.com>
339 * f-lang.c (eval_op_f_mod): New function.
340 (evaluate_subexp_f): Use it.
342 2021-03-08 Tom Tromey <tom@tromey.com>
344 * f-lang.c (eval_op_f_abs): New function.
345 (evaluate_subexp_f): Use it.
347 2021-03-08 Tom Tromey <tom@tromey.com>
349 * eval.c (eval_op_type): New function.
350 (evaluate_subexp_standard): Use it.
352 2021-03-08 Tom Tromey <tom@tromey.com>
354 * eval.c (eval_op_postdec): New function.
355 (evaluate_subexp_standard): Use it.
357 2021-03-08 Tom Tromey <tom@tromey.com>
359 * eval.c (eval_op_postinc): New function.
360 (evaluate_subexp_standard): Use it.
362 2021-03-08 Tom Tromey <tom@tromey.com>
364 * eval.c (eval_op_predec): New file.
365 (evaluate_subexp_standard): Use it.
367 2021-03-08 Tom Tromey <tom@tromey.com>
369 * eval.c (eval_op_preinc): New function.
370 (evaluate_subexp_standard): Use it.
372 2021-03-08 Tom Tromey <tom@tromey.com>
374 * eval.c (eval_op_memval): New function.
375 (evaluate_subexp_standard): Use it.
377 2021-03-08 Tom Tromey <tom@tromey.com>
379 * eval.c (eval_op_alignof): New function.
380 (evaluate_subexp_standard): Use it.
382 2021-03-08 Tom Tromey <tom@tromey.com>
384 * eval.c (eval_op_ind): New function.
385 (evaluate_subexp_standard): Use it.
387 2021-03-08 Tom Tromey <tom@tromey.com>
389 * eval.c (eval_op_lognot): New function.
390 (evaluate_subexp_standard): Use it.
392 2021-03-08 Tom Tromey <tom@tromey.com>
394 * eval.c (eval_op_complement): New function.
395 (evaluate_subexp_standard): Use it.
397 2021-03-08 Tom Tromey <tom@tromey.com>
399 * eval.c (eval_op_neg): New function.
400 (evaluate_subexp_standard): Use it.
402 2021-03-08 Tom Tromey <tom@tromey.com>
404 * eval.c (eval_op_plus): New function.
405 (evaluate_subexp_standard): Use it.
407 2021-03-08 Tom Tromey <tom@tromey.com>
409 * eval.c (eval_op_repeat): New function.
410 (evaluate_subexp_standard): Use it.
412 2021-03-08 Tom Tromey <tom@tromey.com>
414 * eval.c (eval_op_leq): New function.
415 (evaluate_subexp_standard): Use it.
417 2021-03-08 Tom Tromey <tom@tromey.com>
419 * eval.c (eval_op_geq): New function.
420 (evaluate_subexp_standard): Use it.
422 2021-03-08 Tom Tromey <tom@tromey.com>
424 * eval.c (eval_op_gtr): New function.
425 (evaluate_subexp_standard): Use it.
427 2021-03-08 Tom Tromey <tom@tromey.com>
429 * eval.c (eval_op_less): New function.
430 (evaluate_subexp_standard): Use it.
432 2021-03-08 Tom Tromey <tom@tromey.com>
434 * eval.c (eval_op_notequal): New function.
435 (evaluate_subexp_standard): Use it.
437 2021-03-08 Tom Tromey <tom@tromey.com>
439 * eval.c (eval_op_equal): New function.
440 (evaluate_subexp_standard): Use it.
442 2021-03-08 Tom Tromey <tom@tromey.com>
444 * eval.c (eval_op_subscript): New function.
445 (evaluate_subexp_standard): Use it.
447 2021-03-08 Tom Tromey <tom@tromey.com>
449 * eval.c (eval_op_binary): New function.
450 (evaluate_subexp_standard): Use it.
452 2021-03-08 Tom Tromey <tom@tromey.com>
454 * eval.c (eval_op_sub): New function.
455 (evaluate_subexp_standard): Use it.
457 2021-03-08 Tom Tromey <tom@tromey.com>
459 * eval.c (eval_op_add): New function.
460 (evaluate_subexp_standard): Use it.
462 2021-03-08 Tom Tromey <tom@tromey.com>
464 * eval.c (eval_op_member): New function.
465 (evaluate_subexp_standard): Use it.
467 2021-03-08 Tom Tromey <tom@tromey.com>
469 * eval.c (eval_op_structop_ptr): New function.
470 (evaluate_subexp_standard): Use it.
472 2021-03-08 Tom Tromey <tom@tromey.com>
474 * eval.c (eval_op_structop_struct): New function.
475 (evaluate_subexp_standard): Use it.
477 2021-03-08 Tom Tromey <tom@tromey.com>
479 * eval.c (eval_op_ternop): New function.
480 (evaluate_subexp_standard): Use it.
482 2021-03-08 Tom Tromey <tom@tromey.com>
484 * eval.c (eval_op_concat): New function.
485 (evaluate_subexp_standard): Use it.
487 2021-03-08 Tom Tromey <tom@tromey.com>
489 * eval.c (eval_op_objc_selector): New function.
490 (evaluate_subexp_standard): Use it.
492 2021-03-08 Tom Tromey <tom@tromey.com>
494 * eval.c (eval_op_string): New function.
495 (evaluate_subexp_standard): Use it.
497 2021-03-08 Tom Tromey <tom@tromey.com>
499 * eval.c (eval_op_register): New function.
500 (evaluate_subexp_standard): Use it.
502 2021-03-08 Tom Tromey <tom@tromey.com>
504 * eval.c (eval_op_func_static_var): New function.
505 (evaluate_subexp_standard): Use it.
507 2021-03-08 Tom Tromey <tom@tromey.com>
509 * eval.c (eval_op_var_msym_value): New function.
510 (evaluate_subexp_standard): Use it.
512 2021-03-08 Tom Tromey <tom@tromey.com>
514 * eval.c (eval_op_var_entry_value): New function.
515 (evaluate_subexp_standard): Use it.
517 2021-03-08 Tom Tromey <tom@tromey.com>
519 * eval.c (eval_op_scope): New function.
520 (evaluate_subexp_standard): Use it.
522 2021-03-06 Chernov Sergey <klen_s@mail.ru>
525 * ada-lang.c (ada_fold_name): Use gdb::to_string.
527 2021-03-06 Tom Tromey <tom@tromey.com>
529 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
530 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
531 * dwarf2/read.c (dwarf2_elf_names): No longer static.
532 (locate_dwz_sections, dwz_search_other_debugdirs)
533 (dwarf2_get_dwz_file): Move to dwz.c.
534 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
536 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
537 (dwarf2_get_dwz_file): Move from read.c.
539 2021-03-06 Tom Tromey <tom@tromey.com>
541 * debuginfod-support.h: Include scoped_fd.h.
543 2021-03-06 Tom Tromey <tom@tromey.com>
545 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
546 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
547 (get_abbrev_section_for_cu, read_attribute_value)
548 (get_debug_line_section): Update.
549 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
551 2021-03-06 Tom Tromey <tom@tromey.com>
553 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
555 * dwarf2/read.c (section_is_p): Remove.
556 (dwarf2_per_bfd::locate_sections)
557 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
558 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
559 (dwarf2_locate_common_dwp_sections)
560 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
563 2021-03-06 Tom Tromey <tom@tromey.com>
565 * xcoffread.c: Include sect-names.h.
566 * symfile.h (struct dwarf2_section_names, struct
567 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
568 * dwarf2/sect-names.h: New file, from symfile.h.
569 * dwarf2/read.c: Include sect-names.h.
571 2021-03-06 Tom Tromey <tom@tromey.com>
573 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
574 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
575 (abbrev_table::read): Update.
576 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
577 (struct abbrev_info): Reformat.
578 <attrs>: Now an array.
579 (struct abbrev_table) <alloc_abbrev>: Remove.
581 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
583 * ctfread.c (ctf_psymtab_add_enums): New function.
584 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
586 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
588 * ctfread.c (read_func_kind_type): Set up function arguments.
590 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
591 Andrew Burgess <andrew.burgess@embecosm.com>
593 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
595 (riscv_csrset): New static global.
596 (riscv_update_csrmap): New function.
597 (riscv_iterate_over_regset_sections): Process CSRs.
599 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
601 * riscv-tdep.c (riscv_feature_name_csr): Define.
602 (riscv_feature_name_cpu): Define.
603 (riscv_feature_name_fpu): Define.
604 (riscv_feature_name_virtual): Define.
605 (riscv_xreg_feature): Use riscv_feature_name_cpu.
606 (riscv_freg_feature): Use riscv_feature_name_fpu.
607 (riscv_virtual_feature): Use riscv_feature_name_virtual.
608 (riscv_csr_feature): Use riscv_feature_name_csr.
609 * riscv-tdep.h (riscv_feature_name_csr): Declare.
611 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
612 Craig Blackmore <craig.blackmore@embecosm.com>
614 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
615 (ALLDEPFILES): Add riscv-none-tdep.c.
616 * configure: Regenerate.
617 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
619 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
620 * elf-none-tdep.c: New file.
621 * elf-none-tdep.h: New file.
622 * riscv-none-tdep.c: New file.
624 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
625 Andrew Burgess <andrew.burgess@embecosm.com>
627 * corelow.c: Add 'xml-tdesc.h' include.
628 (core_target::read_description): Load the target description from
629 the core file when possible.
630 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
632 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
633 (gcore_elf_make_tdesc_note): New function.
634 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
635 * linux-tdep.c (linux_make_corefile_notes): Add target description
638 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
640 * Makefile.in (SFILES): Add gcore-elf.c.
641 (HFILES_NO_SRCDIR): Add gcore-elf.h
642 * configure: Regenerate.
643 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
645 * fbsd-tdep.c: Add 'gcore-elf.h' include.
646 (struct fbsd_collect_regset_section_cb_data): Delete.
647 (fbsd_collect_regset_section_cb): Delete.
648 (fbsd_collect_thread_registers): Delete.
649 (struct fbsd_corefile_thread_data): Delete.
650 (fbsd_corefile_thread): Delete.
651 (fbsd_make_corefile_notes): Call
652 gcore_elf_build_thread_register_notes instead of the now deleted
654 * gcore-elf.c: New file, the content was moved here from
655 linux-tdep.c, functions were renamed and given minor cleanup.
656 * gcore-elf.h: New file.
657 * gcore.c (gcore_find_signalled_thread): Moved here from
658 linux-tdep.c and given a new name. Minor cleanups.
659 * gcore.h (gcore_find_signalled_thread): Declare.
660 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
661 (struct linux_collect_regset_section_cb_data): Delete.
662 (linux_collect_regset_section_cb): Delete.
663 (linux_collect_thread_registers): Delete.
664 (linux_corefile_thread): Call
665 gcore_elf_build_thread_register_notes.
666 (find_signalled_thread): Delete.
667 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
669 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
672 * sparc-nat.h (sparc_fetch_inferior_registers): Add
673 process_stratum_target parameter,
674 sparc_store_inferior_registers): update callers.
675 * sparc-nat.c (sparc_fetch_inferior_registers,
676 sparc_store_inferior_registers): Add process_stratum_target
677 parameter. Switch current thread before calling
678 sparc_supply_gregset / sparc_collect_rwindow.
679 (sparc_store_inferior_registers): Likewise.
680 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
681 (sparc32obsd_collect_uthread): Likewise.
682 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
684 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
685 sparc64obsd_supply_uthread): Add assertion.
687 2021-03-04 Tom Tromey <tromey@adacore.com>
689 * ada-lang.c (struct match_data) <found_sym>: Now bool.
690 (aux_add_nonlocal_symbols): Update.
691 (ada_add_block_symbols): Change "found_sym" to bool.
693 2021-03-03 Tom Tromey <tromey@adacore.com>
695 * ada-lang.c (ada_resolve_function): Update comment.
696 (is_nonfunction, add_symbols_from_enclosing_procs)
697 (remove_extra_symbols): Likewise.
698 (struct match_data): Add constructor, initializers.
699 (add_nonlocal_symbols): Remove memset.
700 (aux_add_nonlocal_symbols): Update comment.
701 (ada_add_block_renamings, add_nonlocal_symbols)
702 (ada_add_all_symbols): Likewise.
703 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
705 2021-03-02 Tom Tromey <tromey@adacore.com>
707 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
708 (cast_to_gnat_encoded_fixed_point_type): Remove.
709 (ada_value_cast, ada_evaluate_subexp): Update.
710 (gnat_encoded_fixed_point_type_info)
711 (ada_is_gnat_encoded_fixed_point_type)
712 (gnat_encoded_fixed_point_delta)
713 (gnat_encoded_fixed_point_scaling_factor): Remove.
714 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
715 (gnat_encoded_fixed_point_delta)
716 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
717 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
718 (ada_print_type): Update.
719 * ada-valprint.c (ada_value_print_num): Update.
720 * dwarf2/read.c (ada_get_gnat_encoded_number)
721 (ada_get_gnat_encoded_ratio): New functions.
722 (finish_fixed_point_type): Use them. Add parameters.
723 (GNAT_FIXED_POINT_SUFFIX): New define.
724 (gnat_encoded_fixed_point_type_info): New function.
725 (read_base_type): Handle gnat encodings.
727 2021-03-02 Tom Tromey <tromey@adacore.com>
729 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
730 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
735 2021-03-02 Tom Tromey <tromey@adacore.com>
737 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
738 * ada-lang.c (resolve_subexp): Update.
739 (ada_resolve_function): Accept a vector.
740 (is_nonfunction, add_defn_to_vec)
741 (add_symbols_from_enclosing_procs): Likewise.
742 (num_defns_collected, defns_collected): Remove.
743 (remove_extra_symbols): Return a vector.
744 (remove_irrelevant_renamings): Return void.
745 (ada_add_local_symbols): Accept a vector.
746 (struct match_data) <obstackp>: Remove.
747 <resultp>: New member.
748 (aux_add_nonlocal_symbols): Update.
749 (ada_add_block_renamings, add_nonlocal_symbols)
750 (ada_add_all_symbols): Accept a vector.
751 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
753 (ada_lookup_symbol): Update.
754 (ada_add_block_symbols): Accept a vector.
755 (get_var_value, iterate_over_symbols): Update.
756 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
759 2021-03-02 Tom Tromey <tromey@adacore.com>
761 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
763 2021-03-02 Tom Tromey <tromey@adacore.com>
765 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
768 (ada_pspace_data): Remove destructor.
769 <sym_cache>: Now a unique_ptr.
770 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
771 (ada_get_symbol_cache): Use 'new'.
772 (ada_clear_symbol_cache): Rewrite.
774 2021-03-02 Tom Tromey <tromey@adacore.com>
776 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
779 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
782 * source.c (add_path): Skip empty dirnames.
784 2021-02-25 Kevin Buettner <kevinb@redhat.com>
786 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
787 include order for <sys/ptrace.h> and <asm/ptrace.h>.
789 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
792 * target.c (target_mourn_inferior): Only compare pids in
793 target_mourn_inferior.
795 2021-02-25 Jan Matyas <jmatyas@codasip.com>
798 * remote.c (remote_target::start_remote): Ensure the single
799 thread, automatically added for remote targets without the
800 concept of threading, is initially in set to the "resumed"
802 * remote.c (remote_target::add_current_inferior_and_thread):
803 Add return value - return the main thread.
805 2021-02-25 Jan Vrany <jan.vrany@labware.com>
807 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
808 (mi_tsv_created): Likewise.
809 (mi_tsv_deleted): Likewise.
811 2021-02-25 Tom de Vries <tdevries@suse.de>
814 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
815 section_kind for &dwo_file->sections.info.
817 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
820 * f-lang.c (fortran_argument_convert): Delete declaration.
821 (fortran_prepare_argument): New function.
822 (evaluate_subexp_f): Move logic to new function
823 fortran_prepare_argument.
825 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
827 * f-exp.y (f77_keywords): Add 'associated'.
828 * f-lang.c (fortran_associated): New function.
829 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
830 (operator_length_f): Likewise.
831 (print_unop_or_binop_subexp_f): New function.
832 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
833 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
834 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
835 (operator_check_f): Likewise.
836 * std-operator.def: Add FORTRAN_ASSOCIATED.
838 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
840 * f-exp.y (fortran_operators): Add ".xor.".
842 2021-02-24 Tom de Vries <tdevries@suse.de>
845 * dwarf2/attribute.c (attribute::form_is_signed): New function
847 * dwarf2/attribute.h (attribute::as_signed): ... here.
848 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
849 (attribute::form_is_signed): Declare.
850 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
853 2021-02-24 Kevin Buettner <kevinb@redhat.com>
855 * nat/aarch64-linux-hw-point.c: Add comment regarding include
856 order for <sys/ptrace.h> and <asm/ptrace.h>.
858 2021-02-24 Kevin Buettner <kevinb@redhat.com>
860 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
863 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
865 * exec.c (set_section_command): Move variable declarations into
866 the function body, and use std::string instead of a fixed size
869 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
871 * exec.c (exec_target::get_section_table): Delete member function.
872 (section_table_read_available_memory): Use current_top_target, not
873 just the exec_ops target.
874 * target-delegates.c: Regenerate.
875 * target.c (default_get_section_table): New function.
876 * target.h (target_ops::get_section_table): Change default
877 behaviour to call default_get_section_table.
878 (default_get_section_table): Declare.
880 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
882 * exec.c (exec_target::close): Call new clear_target_sections
884 (program_space::add_target_sections): Update name of member
886 (program_space::add_target_sections): Update name of member
888 (program_space::remove_target_sections): Likewise.
889 (exec_one_fork): Use new target_sections member function.
890 (exec_target::get_section_table): Likewise.
891 (exec_target::files_info): Likewise.
892 (set_section_command): Likewise.
893 (exec_set_section_address): Likewise.
894 (exec_target::has_memory): Use new target_sections member
896 * progspace.h (program_space::clear_target_sections): New member
898 (program_space::target_sections): Rename member variable to
899 m_target_sections, replace with a new member function.
900 (program_space::m_target_sections): New member variable.
901 * solib-dsbt.c (scan_dyntag): Use new member function.
902 * solib-svr4.c (scan_dyntag): Likewise.
904 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
906 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
908 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
909 (section_table_read_available_memory): Make local const.
910 (exec_target::xfer_partial): Make local const.
911 (print_section_info): Make parameter const.
912 * gdb/exec.h (print_section_info): Likewise.
913 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
915 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
917 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
919 * gdb/s390-tdep.c (s390_load): Likewise.
920 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
921 * gdb/solib-svr4.c (scan_dyntag): Likewise.
922 * gdb/target-debug.h (target_debug_print_target_section_table_p):
924 (target_debug_print_const_target_section_table_p): ...this.
925 * gdb/target-delegates.c: Regenerate.
926 * gdb/target.c (target_get_section_table): Make return type const.
927 (target_section_by_addr): Likewise. Also make some locals const.
928 (memory_xfer_partial_1): Make some locals const.
929 * gdb/target.h (struct target_ops) <get_section_table>: Make
931 (target_section_by_addr): Likewise.
932 (target_get_section_table): Likewise.
934 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
936 * NEWS: Mention new 'maint info target-sections' command.
937 * maint.c (maintenance_info_target_sections): New function.
938 (_initialize_maint_cmds): Register new command.
940 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
942 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
943 (riscv_features_from_bfd): ...this. Change parameter type to
944 'bfd*', and update as required.
945 (riscv_find_default_target_description): Update call to
946 riscv_features_from_bfd. Select a default xlen based on
948 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
950 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
952 * eval.c (evaluate_subexp_standard): Call value_ind for points to
953 dynamic types in UNOP_IND.
955 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
958 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
960 (~dwarf2_queue_guard): Clear queue.
961 (queue_comp_unit): Assert that queue is
963 (process_queue): Adjust.
964 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
966 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
969 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
970 to decide whether or not to enqueue it for expansion.
971 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
972 after calling maybe_queue_comp_unit.
974 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
976 * linux-nat.c (linux_nat_filter_event): Return void.
978 2021-02-22 Tom Tromey <tromey@adacore.com>
980 * solib-svr4.c (enable_break): Update.
981 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
983 (target_bfd_reopen): Change parameter type.
984 * bfd-target.h (target_bfd_reopen): Change parameter type.
986 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
988 * thread.c (add_thread_silent): Add assert.
989 (find_thread_ptid): Add assert.
991 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
994 * inf-ptrace.c (struct target_unpusher): Move to target.h.
995 (target_unpush_up): Likewise.
996 * procfs.c (procfs_target::attach): Push target early. Use
997 target_unpush_up to unpush target in case of error.
998 * target.h (struct target_unpusher): Move here.
999 (target_unpush_up): Likewise.
1001 2021-02-19 Kevin Buettner <kevinb@redhat.com>
1003 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1004 (which in turn includes <gnulib/config.h>) before include
1007 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1010 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1011 (decode_j_type_insn): Likewise.
1012 (decode_cj_type_insn): Likewise.
1013 (decode_b_type_insn): Likewise.
1016 2021-02-18 Tom Tromey <tom@tromey.com>
1018 * expression.h (struct expression) <evaluate>: Declare method.
1019 * eval.c (evaluate_subexp): Simplify.
1020 (expression::evaluate): New method.
1021 (evaluate_expression, evaluate_type): Use expression::evaluate.
1023 2021-02-17 Kevin Buettner <kevinb@redhat.com>
1025 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1027 (ada_lookup_name_info): Likewise.
1029 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1031 * aclocal.m4: Regenerate.
1033 2021-02-12 Tom de Vries <tdevries@suse.de>
1036 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1037 (lin_thread_signals): New static var.
1038 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1040 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1041 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1043 * linux-thread-db.c (check_thread_signals): Use
1044 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1046 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1048 * f-exp.y (f77_keywords): Add allocated.
1049 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1050 (operator_length_f): Likewise.
1051 (print_subexp_f): Likewise.
1052 (dump_subexp_body_f): Likewise.
1053 (operator_check_f): Likewise.
1054 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1056 2021-02-11 Tom de Vries <tdevries@suse.de>
1059 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1060 Return true for DW_FORM_strx.
1062 2021-02-11 Tom Tromey <tromey@adacore.com>
1065 * parse.c (write_exp_symbol_reference): Write sym.block.
1067 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1069 * NEWS: Mention changes to 'maint info sections'.
1070 * maint.c (match_substring): Return a bool, fix whitespace issue.
1071 (struct single_bfd_flag_info): New struct.
1072 (bfd_flag_info): New static global.
1073 (match_bfd_flags): Return a bool, use bfd_flag_info.
1074 (print_bfd_flags): Use bfd_flag_info.
1075 (maint_print_section_info): Delete trailing whitespace.
1076 (struct maint_info_sections_opts): New struct.
1077 (maint_info_sections_option_defs): New static global.
1078 (maint_info_sections_completer): New function.
1079 (maintenance_info_sections): Use option parsing mechanism.
1080 (_initialize_maint_cmds): Update command help text for 'maint info
1081 sections' and register a command completer.
1083 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1085 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1086 functionality merged into...
1087 (maint_print_all_sections): ...this new function.
1088 (maintenance_info_sections): Make use of maint_print_all_sections,
1089 allow all objects to be printed even where there's no executable.
1091 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1093 * breakpoint.c (resolve_sal_pc): Make use of
1094 bound_minimal_symbol::obj_section.
1095 * maint.c (maintenance_translate_address): Likewise.
1096 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1097 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1099 * printcmd.c (info_address_command): Make use of
1100 bound_minimal_symbol::obj_section.
1102 2021-02-11 Alan Modra <amodra@gmail.com>
1104 * arm-symbian-tdep.c: Delete.
1105 * NEWS: Mention arm-symbian removal.
1106 * Makefile.in: Remove arm-symbian-tdep entries.
1107 * configure.tgt: Remove arm*-*-symbianelf*.
1108 * doc/gdb.texinfo: Remove mention of SymbianOS.
1109 * osabi.c (gdb_osabi_names): Remove "Symbian".
1110 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1111 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1112 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1114 * testsuite/gdb.base/dup-sect.exp: Likewise.
1115 * testsuite/gdb.base/long_long.exp: Likewise.
1116 * testsuite/gdb.base/solib-weak.exp: Likewise.
1117 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1118 * testsuite/gdb.python/py-section-script.exp: Likewise.
1119 * testsuite/lib/dwarf.exp: Likewise.
1120 * testsuite/lib/gdb.exp: Likewise.
1122 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1124 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1125 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1126 (one_or_two_args): New pattern.
1127 (f77_keywords): Add lbound and ubound.
1128 * f-lang.c (fortran_bounds_all_dims): New function.
1129 (fortran_bounds_for_dimension): New function.
1130 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1131 (operator_length_f): Likewise.
1132 (print_subexp_f): Likewise.
1133 (dump_subexp_body_f): Likewise.
1134 (operator_check_f): Likewise.
1135 * std-operator.def (FORTRAN_LBOUND): Define.
1136 (FORTRAN_UBOUND): Define.
1138 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1140 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1141 and set_section_index member functions where appropriate.
1142 * coffread.c (coff_symtab_read): Likewise.
1143 (process_coff_symbol): Likewise.
1144 * ctfread.c (set_symbol_address): Likewise.
1145 * dwarf2/read.c (add_partial_symbol): Likewise.
1146 (var_decode_location): Likewise.
1147 * language.c: Likewise.
1148 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1149 (compact_minimal_symbols): Likewise.
1150 (minimal_symbol_upper_bound): Likewise.
1151 * objfiles.c (relocate_one_symbol): Likewise.
1152 * psympriv.h (partial_symbol::obj_section): Likewise.
1153 (partial_symbol::address): Likewise.
1154 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1155 * stabsread.c (scan_file_globals): Likewise.
1156 * symmisc.c (dump_msymbols): Likewise.
1157 * symtab.c (general_symbol_info::obj_section): Likewise.
1158 (fixup_section): Likewise.
1159 (get_msymbol_address): Likewise.
1160 * symtab.h (general_symbol_info::section): Rename to...
1161 (general_symbol_info::m_section): ...this.
1162 (general_symbol_info::set_section_index): New member function.
1163 (general_symbol_info::section_index): Likewise.
1164 (SYMBOL_SECTION): Delete.
1165 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1166 set_section_index member functions where appropriate.
1167 (MSYMBOL_SECTION): Delete.
1168 (symbol::symbol): Update to initialize 'm_section'.
1169 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1170 (process_xcoff_symbol): Likewise.
1172 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1174 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1175 MSYMBOL_OBJ_SECTION.
1176 * findvar.c (language_defn::read_var_value): Likewise.
1177 * infcmd.c (jump_command): Likewise.
1178 * linespec.c (minsym_found): Likewise.
1179 * maint.c (maintenance_translate_address): Likewise.
1180 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1181 (minimal_symbol_upper_bound): Likewise.
1182 * parse.c (find_minsym_type_and_address): Likewise.
1183 (operator_check_standard): Likewise.
1184 * printcmd.c (info_address_command): Likewise.
1185 * symmisc.c (dump_msymbols): Likewise.
1186 (print_symbol): Likewise.
1187 * symtab.c (general_symbol_info::obj_section): Define new
1189 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1190 (find_pc_sect_compunit_symtab): Likewise.
1191 (find_function_start_sal): Likewise.
1192 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1193 MSYMBOL_OBJ_SECTION.
1194 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1196 (SYMBOL_OBJ_SECTION): Delete.
1197 (MSYMBOL_OBJ_SECTION): Delete.
1199 2021-02-09 Tom Tromey <tom@tromey.com>
1201 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1203 2021-02-09 Tom de Vries <tdevries@suse.de>
1206 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1207 construct an array type. Add assert to ensure that element_type is
1210 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1212 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1213 (gcore_collect_regset_section_cb): Delete.
1214 (gcore_collect_thread_registers): Delete.
1215 (gcore_build_thread_register_notes): Delete.
1216 (gcore_find_signalled_thread): Delete.
1217 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1218 'gdbarch' and 'thread_info' declarations.
1219 (gcore_build_thread_register_notes): Delete declaration.
1220 (gcore_find_signalled_thread): Likewise.
1221 * fbsd-tdep.c: Remove 'gcore.h' include.
1222 (struct fbsd_collect_regset_section_cb_data): New struct.
1223 (fbsd_collect_regset_section_cb): New function.
1224 (fbsd_collect_thread_registers): New function.
1225 (struct fbsd_corefile_thread_data): New struct.
1226 (fbsd_corefile_thread): New function.
1227 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1228 * linux-tdep.c: Remove 'gcore.h' include.
1229 (struct linux_collect_regset_section_cb_data): New struct.
1230 (linux_collect_regset_section_cb): New function.
1231 (linux_collect_thread_registers): New function.
1232 (linux_corefile_thread): Call Linux specific code.
1233 (find_signalled_thread): New function.
1234 (linux_make_corefile_notes): Call find_signalled_thread.
1236 2021-02-09 Tom Tromey <tromey@adacore.com>
1238 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1240 * value.c (value_contents_copy_raw): Now static.
1241 * value.h (value_contents_copy_raw): Don't declare.
1243 2021-02-09 Tom Tromey <tromey@adacore.com>
1245 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1248 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
1251 * arc-linux-tdep.c (handle_atomic_sequence): New.
1252 (arc_linux_software_single_step): Call handle_atomic_sequence().
1254 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1256 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1258 (REQUIRE_WINDOW): Call is_valid member function.
1259 (REQUIRE_WINDOW_FOR_SETTER): New define.
1260 (gdbpy_tui_is_valid): Call is_valid member function.
1261 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1262 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1264 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1265 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1268 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1270 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1271 for the title is not nullptr.
1273 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1275 * tui-layout.c (saved_tui_windows): Delete.
1276 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1277 call new get_windows member function instead.
1278 (tui_get_window_by_name): Check in tui_windows.
1279 (tui_layout_window::apply): Don't add to tui_windows.
1280 * tui-layout.h (tui_layout_base::get_windows): New member function.
1281 (tui_layout_window::get_windows): Likewise.
1282 (tui_layout_split::get_windows): Likewise.
1284 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1286 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1287 of the window objects.
1289 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1291 * python/python.c (gdbpy_print_stack): Reformat an error message.
1293 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1295 * tui/tui-interp.c (tui_command_line_handler): New function.
1296 (tui_interp::resume): Register tui_command_line_handler as the
1298 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1300 (tui_getc_1): Delete handling of '\n' and '\r'.
1301 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1303 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1305 * tui/tui-regs.c (tui_data_window::display_registers_from):
1306 Mark invisible register sub windows.
1307 (tui_data_window::check_register_values): Ignore invisible
1308 register sub windows.
1310 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1312 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1313 n_spaces with a negative value.
1315 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1317 * tui/tui-regs.c (tui_data_window::display_registers_from):
1318 Add refresh_window call.
1320 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1322 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1324 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1326 * symmisc.c (std_in, std_out, std_err): Remove.
1327 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1329 2021-02-05 Tom de Vries <tdevries@suse.de>
1331 PR breakpoints/27330
1332 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1333 glibc object file has debug info.
1335 2021-02-05 Tom de Vries <tdevries@suse.de>
1338 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1340 2021-02-05 Tom de Vries <tdevries@suse.de>
1342 PR breakpoints/27313
1343 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1346 2021-02-05 Tom Tromey <tom@tromey.com>
1348 * compile/compile-c-support.c (get_compile_context)
1349 (c_get_compile_context, cplus_get_compile_context): Change return
1351 * language.c (language_defn::get_compile_instance): New method.
1352 * language.h (language_defn::get_compile_instance): Change return
1353 type. No longer inline.
1354 * c-lang.c (c_language::get_compile_instance): Change return type.
1355 (cplus_language::get_compile_instance): Change return type.
1356 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1358 * compile/compile.c (compile_to_object): Update.
1360 2021-02-05 Tom Tromey <tom@tromey.com>
1362 * parser-defs.h (write_exp_symbol_reference): Declare.
1363 * parse.c (write_exp_symbol_reference): New function.
1364 * p-exp.y (variable): Use write_exp_symbol_reference.
1365 * m2-exp.y (variable): Use write_exp_symbol_reference.
1366 * f-exp.y (variable): Use write_exp_symbol_reference.
1367 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1368 * c-exp.y (variable): Use write_exp_symbol_reference.
1370 2021-02-05 Tom de Vries <tdevries@suse.de>
1373 * valarith.c (complex_binop): Throw an error if complex type can't
1376 2021-02-05 Tom de Vries <tdevries@suse.de>
1379 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1382 2021-02-05 Tom de Vries <tdevries@suse.de>
1384 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1386 2021-02-04 Mike Frysinger <vapier@gentoo.org>
1388 * configure.tgt (riscv*-*-*): Set gdb_sim.
1390 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1392 * target.c (target_is_non_stop_p): Return bool.
1393 * target.h (target_is_non_stop_p): Return bool.
1395 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1397 * record-full.c (record_full_async_inferior_event_handler):
1398 Don't clear async event handler.
1399 (record_full_base_target::wait): Clear async event handler at
1402 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1404 * record-btrace.c (record_btrace_handle_async_inferior_event):
1405 Don't clear async event handler.
1406 (record_btrace_target::wait): Clear async event handler at
1409 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1411 * remote.c (remote_target::wait): Clear async event handler at
1412 beginning, mark if needed at the end.
1413 (remote_async_inferior_event_handler): Don't set or clear async
1416 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1418 * async-event.h (async_event_handler_func): Add documentation.
1419 * async-event.c (check_async_event_handlers): Don't clear
1420 async_event_handler ready flag.
1421 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1423 * record-btrace.c (record_btrace_handle_async_inferior_event):
1425 * record-full.c (record_full_async_inferior_event_handler):
1427 * remote-notif.c (remote_async_get_pending_events_handler):
1429 * remote.c (remote_async_inferior_event_handler): Likewise.
1431 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1433 * infrun.c (handle_inferior_event): Move stop_soon variable to
1436 2021-02-03 Pedro Alves <pedro@palves.net>
1438 * infcmd.c (detach_command): Hold strong reference to target, and
1439 if all-stop on entry, restart threads on exit.
1440 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1441 (restart_stepped_thread): ... this new function. Also handle
1443 (restart_after_all_stop_detach): New function.
1444 * infrun.h (restart_after_all_stop_detach): Declare.
1446 2021-02-03 Pedro Alves <pedro@palves.net>
1448 * infrun.c (struct step_over_info): Initialize fields.
1449 (prepare_for_detach): Handle ongoing in-line step over.
1451 2021-02-03 Pedro Alves <pedro@palves.net>
1453 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1455 * remote.c (remote_target::remote_detach_1): ... and here ...
1456 * target.c (target_detach): ... instead of here.
1457 * target.h (target_ops::detach): Add comment.
1459 2021-02-03 Pedro Alves <pedro@palves.net>
1461 * infrun.c (struct wait_one_event): Move higher up.
1462 (prepare_for_detach): Abort in-progress displaced steps instead of
1463 letting them complete.
1464 (handle_one): If the inferior is detaching, don't add the thread
1465 back to the global step-over chain.
1466 (restart_threads): Don't restart threads if detaching.
1467 (handle_signal_stop): Remove inferior::detaching reference.
1469 2021-02-03 Pedro Alves <pedro@palves.net>
1471 * infrun.c (prepare_for_detach): Don't release scoped_restore
1474 2021-02-03 Pedro Alves <pedro@palves.net>
1476 * infrun.c (handle_one): New function, factored out from ...
1477 (stop_all_threads): ... here.
1479 2021-02-03 Pedro Alves <pedro@palves.net>
1481 * remote.c (remote_notif_stop_ack): Don't error out on
1482 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1483 (remote_target::discard_pending_stop_replies): Don't delete
1484 in-flight notification; instead, clear its contents.
1486 2021-02-03 Pedro Alves <pedro@palves.net>
1488 * remote.c (extended_remote_target::attach): Set target async in
1489 the target-non-stop path too.
1491 2021-02-03 Pedro Alves <pedro@palves.net>
1494 * infrun.c (handle_signal_stop): Move main context_switch call
1495 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1497 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1499 * NEWS (Changed commands): Add entry for the behavior change of
1500 the inferior command.
1501 * inferior.c (inferior_command): When no argument is given to the
1502 inferior command, display info about the currently selected
1505 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1507 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1509 (read_attribute_reprocess): Adjust.
1511 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1513 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1514 <gnu_ranges_base>: ... this...
1515 <rnglists_base>: ... and this.
1516 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1517 <gnu_ranges_base>: ... this...
1518 <rnglists_base>: ... and this.
1519 (read_cutu_die_from_dwo): Adjust
1520 (dwarf2_get_pc_bounds): Adjust
1521 (dwarf2_record_block_ranges): Adjust.
1522 (read_full_die_1): Adjust
1523 (partial_die_info::read): Adjust.
1524 (read_rnglist_index): Adjust.
1526 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1529 * dwarf2/read.c (read_loclists_rnglists_header): Add
1530 header_offset parameter and use it.
1531 (read_loclist_index): Read header of the current contribution,
1532 not the one at the beginning of the section.
1533 (read_rnglist_index): Likewise.
1535 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1538 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1539 requires_reprocessing flag.
1540 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1542 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1543 and DW_FORM_loclistx.
1544 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1545 instead of set_address for DW_FORM_loclistx and
1548 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1550 * dwarf2/read.c (read_loclist_index): Remove bound check for
1552 (read_rnglist_index): Likewise.
1554 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1556 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1559 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1561 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1563 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
1565 * dwarf2/read.c (read_loclist_index): Change complaints into
1568 2021-02-02 Tom de Vries <tdevries@suse.de>
1571 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1574 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1576 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1577 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1578 here from linux-tdep.c and given a new name. Minor cleanups.
1579 (gcore_collect_regset_section_cb): Likewise.
1580 (gcore_collect_thread_registers): Likewise.
1581 (gcore_build_thread_register_notes): Likewise.
1582 (gcore_find_signalled_thread): Likewise.
1583 * gcore.h (gcore_build_thread_register_notes): Declare.
1584 (gcore_find_signalled_thread): Declare.
1585 * fbsd-tdep.c: Add 'gcore.h' include.
1586 (struct fbsd_collect_regset_section_cb_data): Delete.
1587 (fbsd_collect_regset_section_cb): Delete.
1588 (fbsd_collect_thread_registers): Delete.
1589 (struct fbsd_corefile_thread_data): Delete.
1590 (fbsd_corefile_thread): Delete.
1591 (fbsd_make_corefile_notes): Call
1592 gcore_build_thread_register_notes instead of the now deleted
1594 * linux-tdep.c: Add 'gcore.h' include.
1595 (struct linux_collect_regset_section_cb_data): Delete.
1596 (linux_collect_regset_section_cb): Delete.
1597 (linux_collect_thread_registers): Delete.
1598 (linux_corefile_thread): Call
1599 gcore_build_thread_register_notes.
1600 (find_signalled_thread): Delete.
1601 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1603 2021-01-29 Tom de Vries <tdevries@suse.de>
1605 PR breakpoints/26063
1606 * infrun.c (process_event_stop_test): Reset
1607 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1610 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1612 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1613 assert. Extend the header comment.
1615 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1617 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1618 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1619 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1620 (tui_locator_win_info_ptr): Delete declaration.
1621 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1622 (tui_disasm_window::set_contents): Fetch state from tui_location
1624 (tui_get_begin_asm_address): Likewise.
1625 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1627 (get_locator_window): Delete.
1628 (initialize_known_windows): Treat locator window just like all the
1630 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1631 (tui_source_window::set_contents): Fetch state from tui_location
1633 (tui_source_window::showing_source_p): Likewise.
1634 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1636 (tui_locator_win_info_ptr): Delete.
1637 (tui_locator_window::make_status_line): Fetch state from
1638 tui_location global.
1639 (tui_locator_window::rerender): Remove check of 'handle',
1640 reindent function body.
1641 (tui_locator_window::set_locator_fullname): Delete.
1642 (tui_locator_window::set_locator_info): Delete.
1643 (tui_update_locator_fullname): Delete.
1644 (tui_show_frame_info): Likewise.
1645 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1646 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1647 tui/tui-location.h and renamed to
1648 tui_location_tracker::set_location.
1649 (tui_locator_window::set_locator_fullname): Moved to
1650 tui/tui-location.h and renamed to
1651 tui_location_tracker::set_fullname.
1652 (tui_locator_window::full_name): Delete.
1653 (tui_locator_window::proc_name): Delete.
1654 (tui_locator_window::line_no): Delete.
1655 (tui_locator_window::addr): Delete.
1656 (tui_locator_window::gdbarch): Delete.
1657 (tui_update_locator_fullname): Delete declaration.
1658 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1660 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1661 (tui_display_main): Call function on tui_location directly.
1662 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1663 * tui/tui-location.c: New file.
1664 * tui/tui-location.h: New file.
1666 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1668 * gdbtypes.h (get_type_arch): Rename to...
1669 (struct type) <arch>: ... this, update all users.
1671 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1673 * gdbtypes.h (struct type) <arch>: Rename to...
1674 <arch_owner>: ... this, update all users.
1675 <objfile>: Rename to...
1676 <objfile_owner>: ... this, update all users.
1678 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1680 * gdbcmd.h (execute_command_to_string): Update comment.
1681 * top.c (execute_command_to_string): Update header comment.
1683 2021-01-28 Tom de Vries <tdevries@suse.de>
1685 PR breakpoints/27205
1686 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1687 (create_longjmp_master_breakpoint_names): New function, factored out
1689 (create_longjmp_master_breakpoint): ... here. Only try to install
1690 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1691 breakpoint in libc.so failed.
1693 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1696 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1697 unique_ptr is released when the wrapped pointer is kept for later
1700 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1702 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1703 BLR and BR instructions.
1704 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1705 (enum aarch64_masks): New.
1707 2021-01-26 Tom Tromey <tromey@adacore.com>
1709 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1710 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1711 (windows_init_thread_list, windows_nat::handle_load_dll)
1712 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1713 (windows_nat_target::resume)
1714 (windows_nat_target::get_windows_debug_event)
1715 (windows_nat_target::interrupt, windows_xfer_memory)
1716 (windows_nat_target::close): Update.
1717 * nat/windows-nat.c (DEBUG_EVENTS): Use
1718 debug_prefixed_printf_cond.
1719 (matching_pending_stop, fetch_pending_stop)
1720 (continue_last_debug_event): Update.
1722 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1724 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1725 elfcore_write_file_note.
1727 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
1729 * arc-tdep.c (arc_add_reggroups): New function.
1730 (arc_gdbarch_init): Call arc_add_reggroups.
1732 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
1734 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1736 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1737 Simon Marchi <simon.marchi@polymtl.ca>
1738 Tom de Vries <tdevries@suse.de>
1740 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1743 2021-01-25 Tom Tromey <tromey@adacore.com>
1745 * dwarf2/read.c (get_mpz): New function.
1746 (get_dwarf2_rational_constant): Use it.
1748 2021-01-25 Tom Tromey <tromey@adacore.com>
1750 * ada-lang.c (resolve_subexp): Handle array context.
1752 2021-01-23 Tom Tromey <tom@tromey.com>
1755 * compile/compile-loc2c.c (note_register): New function.
1756 (pushf_register_address, pushf_register): Use it.
1758 2021-01-23 Tom Tromey <tom@tromey.com>
1760 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1761 Change type of "registers_used".
1762 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1763 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1764 (locexpr_generate_c_location, loclist_generate_c_location): Change
1765 type of "registers_used".
1766 * compile/compile.h (compile_dwarf_expr_to_c)
1767 (compile_dwarf_bounds_to_c): Update.
1768 * compile/compile-loc2c.c (pushf_register_address)
1769 (pushf_register, do_compile_dwarf_expr_to_c)
1770 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
1771 of "registers_used".
1772 * compile/compile-c.h (generate_c_for_variable_locations):
1774 * compile/compile-c-symbols.c (generate_vla_size)
1775 (generate_c_for_for_one_variable): Change type of
1777 (generate_c_for_variable_locations): Return std::vector.
1778 * compile/compile-c-support.c (generate_register_struct): Change
1779 type of "registers_used".
1782 2021-01-23 Tom Tromey <tom@tromey.com>
1784 * compile/compile-internal.h (class compile_instance)
1785 <set_arguments>: Change return type.
1786 * compile/compile.c (compile_to_object): Remove call to reset.
1787 (compile_instance::set_arguments): Change return type.
1789 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1791 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1792 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1794 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1796 * Makefile.in (SELFTESTS_SRCS): Add
1797 unittests/gdb_tilde_expand-selftests.c.
1798 * unittests/gdb_tilde_expand-selftests.c: New file.
1800 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1803 * NEWS: Mention new command.
1804 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1805 (version_style): Define.
1806 (cli_style_option::cli_style_option): Add intensity parameter, and
1808 (_initialize_cli_style): Register version style set/show commands.
1809 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1810 (version_style): Declare.
1811 * top.c (print_gdb_version): Use version_stype, and styled_string
1812 to print the GDB version string.
1814 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1816 * utils.c (emit_style_escape): Only emit an escape sequence if the
1817 requested style is different than the current applied style.
1818 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1819 current applied_style.
1820 (fputs_styled): Remove is_default check.
1821 (fputs_styled_unfiltered): Likewise.
1822 (vfprintf_styled_no_gdbfmt): Likewise.
1824 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1826 * remote.h (remote_debug_printf): New.
1827 (remote_debug_printf_nofunc): New.
1828 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1829 * remote.c: Use above macros throughout file.
1831 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1833 * remote.h (remote_debug): Change to bool.
1834 * remote.c (remote_debug): Change to bool.
1835 (_initialize_remote): Adjust.
1837 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1839 * target.h (remote_debug): Move to...
1840 * remote.h (remote_debug): ... here.
1841 * top.c (remote_debug): Move to...
1842 * remote.c (remote_debug): ... here.
1843 * remote-sim.c: Include remote.h.
1845 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1847 * cli/cli-cmds.c (show_remote_debug): Remove.
1848 (show_remote_timeout): Remove.
1849 (_initialize_cli_cmds): Don't register commands.
1850 * remote.c (show_remote_debug): Move here.
1851 (show_remote_timeout): Move here.
1852 (_initialize_remote): Register commands.
1854 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1856 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
1857 type::objfile method instead.
1859 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1861 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
1862 use the type::is_objfile_owned method.
1864 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
1866 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
1867 (TYPE_OWNER): Remove.
1868 (TYPE_OBJFILE): Adjust.
1869 (struct main_type) <flag_objfile_owned>: Rename to...
1870 <m_flag_objfile_owned>: ... this.
1871 <owner>: Rename to...
1872 <m_owner>: ... this.
1873 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
1875 (TYPE_ALLOC): Adjust.
1876 * gdbtypes.c (alloc_type): Adjust.
1877 (alloc_type_arch): Adjust.
1878 (alloc_type_copy): Adjust.
1879 (get_type_arch): Adjust.
1880 (smash_type): Adjust.
1881 (lookup_array_range_type): Adjust.
1882 (recursive_dump_type): Adjust.
1883 (copy_type_recursive): Adjust.
1884 * compile/compile-c-types.c (convert_func): Adjust.
1885 (convert_type_basic): Adjust.
1886 * compile/compile-cplus-types.c (compile_cplus_convert_func):
1889 (language_arch_info::type_and_symbol::alloc_type_symbol):
1892 2021-01-21 Luis Machado <luis.machado@linaro.org>
1894 * coffread.c (enter_linenos): Passing string to complaint.
1895 * valops.c (value_assign): Make array view.
1897 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1899 * auto-load.h (debug_auto_load): Move here.
1900 (auto_load_debug_printf): New.
1901 * auto-load.c: Use auto_load_debug_printf.
1902 (debug_auto_load): Move to header.
1903 * linux-thread-db.c (try_thread_db_load): Use
1904 auto_load_debug_printf.
1905 * main.c (captured_main_1): Likewise.
1907 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1909 * f-valprint.c (f77_array_offset_tbl): Remove.
1911 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1913 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1915 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1917 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1920 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
1923 * python/py-breakpoint.c (bppy_get_location): Handle
1924 bp_hardware_breakpoint.
1925 (bppy_init): Likewise.
1926 (gdbpy_breakpoint_created): Likewise.
1928 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1930 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1932 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1934 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1935 (_initialize_gdb_bfd): Adjust.
1937 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1940 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1942 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1944 * dwarf2/read.c (follow_die_offset): Add logging.
1945 (dwarf2_per_objfile::age_comp_units): Add logging.
1947 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1949 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1950 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1951 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1952 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1953 * arm-tdep.c (struct frame_unwind): Make static.
1954 * auto-load.c (auto_load_safe_path_vec): Make static.
1955 * csky-tdep.c (csky_stub_unwind): Make static.
1956 * gdbarch.c (gdbarch_data_registry): Make static.
1957 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1958 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1959 * i386-tdep.c (i386_frame_setup_skip_insns,
1960 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1962 * infrun.c (observer_mode): Make static.
1963 * linux-nat.c (sigchld_action): Make static.
1964 * linux-thread-db.c (thread_db_list): Make static.
1965 * maint-test-options.c (maintenance_test_options_list):
1966 * mep-tdep.c (mep_csr_registers): Make static.
1967 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1968 (stats): Make static.
1969 * nat/linux-osdata.c (struct osdata_type): Make static.
1970 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1971 * progspace.c (last_program_space_num): Make static.
1972 * python/py-param.c (struct parm_constant): Remove struct type
1974 (parm_constants): Make static.
1975 * python/py-record-btrace.c (btpy_list_methods): Make static.
1976 * python/py-record.c (recpy_gap_type): Make static.
1977 * record.c (record_goto_cmdlist): Make static.
1978 * regcache.c (regcache_descr_handle): Make static.
1979 * registry.h (DEFINE_REGISTRY): Make definition static.
1980 * symmisc.c (std_in, std_out, std_err): Make static.
1981 * top.c (previous_saved_command_line): Make static.
1982 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1984 * unittests/command-def-selftests.c (nr_duplicates,
1985 nr_invalid_prefixcmd, lists): Make static.
1986 * unittests/observable-selftests.c (test_notification): Make
1988 * unittests/optional/assignment/1.cc (counter): Make static.
1989 * unittests/optional/assignment/2.cc (counter): Make static.
1990 * unittests/optional/assignment/3.cc (counter): Make static.
1991 * unittests/optional/assignment/4.cc (counter): Make static.
1992 * unittests/optional/assignment/5.cc (counter): Make static.
1993 * unittests/optional/assignment/6.cc (counter): Make static.
1995 2021-01-20 Joel Sherrill <joel@rtems.org>
1998 * remote.c (struct remote_thread_info) <resume_state>: Rename
2000 <get_resume_state>: ... this.
2001 (remote_target::resume): Adjust.
2002 (remote_target::commit_resume): Adjust.
2003 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2005 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2006 Tom Tromey <tom@tromey.com>
2008 * stap-probe.c (stap_parse_single_operand): Handle '!'
2010 (stap_parse_argument_conditionally): Likewise.
2011 Skip spaces after processing open-parenthesis sub-expression.
2012 (stap_parse_argument_1): Skip spaces after call to
2013 stap_parse_argument_conditionally.
2014 Handle case when right-side expression is a parenthesized
2016 Skip spaces after call to stap_parse_argument_1.
2018 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2020 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2022 2021-01-19 Luis Machado <luis.machado@linaro.org>
2024 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2025 memory and save data.
2026 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2027 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2028 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2029 (trad_frame_value_bytes_p): Remove.
2030 (trad_frame_reset_saved_regs): Adjust documentation.
2031 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2032 constructor and reset the state of the registers.
2033 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2034 (trad_frame_value_bytes_p, trad_frame_set_value)
2035 (trad_frame_set_realreg, trad_frame_set_addr)
2036 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2037 (trad_frame_set_reg_realreg): Update to call member function.
2038 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2039 (trad_frame_get_prev_register): Likewise.
2041 * aarch64-tdep.c (aarch64_analyze_prologue)
2042 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2043 (aarch64_prologue_prev_register): Update to use member functions.
2044 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2045 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2046 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2047 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2048 (arm_make_epilogue_frame_cache): Likewise.
2049 * avr-tdep.c (avr_frame_unwind_cache)
2050 (avr_frame_prev_register): Likewise.
2051 * cris-tdep.c (cris_scan_prologue): Likewise.
2052 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2053 * frv-tdep.c (frv_analyze_prologue): Likewise.
2054 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2055 * lm32-tdep.c (lm32_frame_cache): Likewise.
2056 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2057 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2058 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2059 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2060 (reset_saved_regs): Adjust to set realreg.
2061 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2062 call member functions.
2063 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2064 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2065 (s390_backchain_frame_unwind_cache): Likewise.
2066 * score-tdep.c (score7_analyze_prologue)
2067 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2068 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2069 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2070 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2071 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2072 * tilegx-tdep.c (tilegx_analyze_prologue)
2073 (tilegx_frame_cache): Likewise.
2074 * v850-tdep.c (v850_frame_cache): Likewise.
2075 * vax-tdep.c (vax_frame_cache): Likewise.
2077 2021-01-19 Luis Machado <luis.machado@linaro.org>
2079 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2081 (put_frame_register_bytes): Likewise.
2082 Adjust documentation.
2083 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2084 (safe_frame_unwind_memory): Likewise.
2085 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2086 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2088 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2089 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2090 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2091 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2092 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2093 * dwarf2/loc.c (rw_pieced_value): Likewise.
2094 * hppa-tdep.c (hppa_frame_cache): Likewise.
2095 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2096 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2097 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2098 (i386_linux_rt_sigtramp_start): Likewise.
2099 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2100 * i386-tdep.c (i386_register_to_value): Likewise.
2101 * i387-tdep.c (i387_register_to_value): Likewise.
2102 * ia64-tdep.c (ia64_register_to_value): Likewise.
2103 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2104 (m32r_linux_rt_sigtramp_start): Likewise.
2105 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2106 * m68k-tdep.c (m68k_register_to_value): Likewise.
2107 * mips-tdep.c (mips_register_to_value)
2108 (mips_value_to_register): Likewise.
2109 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2110 (ppcfbsd_sigtramp_frame_cache): Likewise.
2111 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2112 (ppcobsd_sigtramp_frame_cache): Likewise.
2113 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2114 (rs6000_register_to_value): Likewise.
2115 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2116 * tramp-frame.c (tramp_frame_start): Likewise.
2117 * valops.c (value_assign): Likewise.
2119 2021-01-19 Luis Machado <luis.machado@linaro.org>
2121 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2123 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2124 instead of buffer and size.
2125 (trad_frame_set_reg_value_bytes): Likewise.
2126 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2127 (trad_frame_set_value_bytes): Likewise.
2129 2021-01-18 Mike Frysinger <vapier@gentoo.org>
2131 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2133 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2135 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2136 (riscv_fbsd_gregset): Use riscv_supply_regset.
2137 (riscv_fbsd_fpregset): Likewise.
2138 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2139 (riscv_linux_fregset): Likewise.
2140 * riscv-tdep.c (riscv_supply_regset): Define new function.
2141 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2143 2021-01-18 Tom de Vries <tdevries@suse.de>
2146 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2148 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2151 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2153 * remote.c (class remote_target) <remote_hostio_send_command,
2154 remote_hostio_parse_result>: Constify parameter.
2155 (remote_hostio_parse_result): Likewise.
2156 (remote_target::remote_hostio_send_command): Adjust.
2157 (remote_target::remote_hostio_pread_vFile): Adjust.
2158 (remote_target::fileio_readlink): Adjust.
2159 (remote_target::fileio_fstat): Adjust.
2161 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2163 * remote.c (remote_target::start_remote): Move wait_status to
2166 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2168 * remote.c (class remote_target):
2169 <add_current_inferior_and_thread>: Constify parameter.
2170 (stop_reply_extract_thread): Likewise.
2171 (remote_target::get_current_thread): Likewise.
2172 (remote_target::add_current_inferior_and_thread): Likewise.
2174 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2176 * remote.c (class remote_target)
2177 <remote_unpack_thread_info_response,
2178 parse_threadlist_response>: Constify parameter and/or return
2179 value and or local variable.
2180 (stub_unpack_int): Likewise.
2181 (unpack_nibble): Likewise.
2182 (unpack_byte): Likewise.
2183 (unpack_int): Likewise.
2184 (unpack_string): Likewise.
2185 (unpack_threadid): Likewise.
2186 (remote_target::remote_unpack_thread_info_response): Likewise.
2187 (remote_target::parse_threadlist_response): Likewise.
2189 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2191 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2193 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
2195 * MAINTAINERS (Write After Approval): Add myself.
2197 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2199 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2200 because is_trivially_default_constructible was first implemented with
2203 2021-01-14 Tom de Vries <tdevries@suse.de>
2205 PR breakpoints/27151
2206 * objfiles.h (in_plt_section): Handle .plt.sec.
2208 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2212 (remote_target::select_thread_for_ambiguous_stop_reply): New
2214 (remote_target::process_stop_reply): Call
2215 select_thread_for_ambiguous_stop_reply.
2217 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2219 * record-btrace.c (class record_btrace_target): Remove.
2220 (record_btrace_target::commit_resume): Remove.
2221 * record-full.c (class record_full_target): Remove.
2222 (record_full_target::commit_resume): Remove.
2224 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2226 * remote.c (enum class resume_state): New.
2227 (struct resumed_pending_vcont_info): New.
2228 (struct remote_thread_info) <resume_state, set_not_resumed,
2229 set_resumed_pending_vcont, resumed_pending_vcont_info,
2230 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2232 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2233 (remote_target::remote_add_thread): Adjust.
2234 (remote_target::process_initial_stop_replies): Adjust.
2235 (remote_target::resume): Adjust.
2236 (remote_target::commit_resume): Rely on state in
2237 remote_thread_info and not on tp->executing.
2238 (remote_target::process_stop_reply): Adjust.
2240 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2242 * arc-tdep.h (arc_debug_printf): New.
2243 * arc-tdep.c: Use arc_debug_printf.
2244 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2245 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2246 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2248 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2250 * arc-tdep.h (arc_debug): Change type to bool.
2251 * arc-tdep.c (arc_debug): Change type to bool.
2252 (arc_analyze_prologue): Adjust.
2253 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2254 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2256 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2258 * auto-load.c (auto_load_objfile_script_1): Use bool.
2259 (execute_script_contents): Use bool.
2261 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2263 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2265 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2267 * extension-priv.h (struct extension_language_script_ops)
2268 <auto_load_enabled>: Return bool.
2269 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2271 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2273 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2275 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2276 move comment to header.
2277 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2279 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2280 move comment to header.
2282 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2284 * auto-load.h (file_is_auto_load_safe): Change return type to
2285 bool, move comment here.
2286 * auto-load.c (file_is_auto_load_safe): Change return type and
2287 advice_printed to bool. Move comment to header.
2289 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2291 * jit.c (jit_debug_printf): New, use throughout file.
2293 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2295 * infrun.c (normal_stop): Fix indentation.
2297 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2299 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2301 * symfile.h: ... here.
2302 * symfile.c: Update doc.
2304 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2306 * target.h (baud_rate, serial_parity): Move declarations...
2307 * serial.h: ... here.
2308 * main.c: Include serial.h.
2309 * serial.c (baud_rate, serial_parity): Update doc.
2311 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2313 * top.c (pre_init_ui_hook): Remove.
2315 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2317 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2318 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2319 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2320 * features/aarch64-fpu.xml: Add bfloat16 type.
2322 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2324 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2326 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2328 * f-exp.y (dot_ops): Rename to...
2329 (fortran_operators): ...this. Add a header comment. Add symbol
2331 (yylex): Update to use fortran_operators not dot_ops. Remove
2332 special handling for '**', this is now included in
2335 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2337 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2338 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2339 * aarch64-tdep.c: Use aarch64_debug_printf.
2341 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2343 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2346 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2348 * jit.c (jit_debug): Change type to bool.
2349 (_initialize_jit): Adjust.
2351 2021-01-09 Tom Tromey <tom@tromey.com>
2354 * compile/compile.c (compile_to_object): Avoid crash when
2355 osabi_triplet_regexp returns NULL.
2357 2021-01-09 Tom Tromey <tom@tromey.com>
2359 * tracepoint.h (class collection_list) <append_exp>: Take a
2361 * tracepoint.c (collection_list::append_exp): Take a std::string.
2362 (encode_actions_1): Update.
2364 2021-01-08 Tom Tromey <tromey@adacore.com>
2366 * parse.c (parse_expression): Add void_context_p parameter. Use
2367 parse_exp_in_context.
2368 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2370 (print_command, call_command): Update.
2371 * expression.h (parse_expression): Add void_context_p parameter.
2373 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2375 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2376 for internalvar components that have a dynamic location.
2378 2021-01-08 Tom de Vries <tdevries@suse.de>
2381 * breakpoint.c (create_exception_master_breakpoint_probe)
2382 (create_exception_master_breakpoint_hook): Factor out
2384 (create_exception_master_breakpoint): ... here. Only try to install
2385 the master exception breakpoint in objfile.debug using the
2386 _Unwind_DebugHook method, if the install using probes in objfile
2389 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2391 * f-lang.c (fortran_value_subarray): Call value_from_component.
2393 2021-01-07 Mike Frysinger <vapier@gentoo.org>
2395 * remote-sim.c: Include memory-map.h.
2396 (gdbsim_target): Define memory_map override.
2397 (gdbsim_target::memory_map): Define.
2399 2021-01-07 Tom Tromey <tromey@adacore.com>
2401 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2403 2021-01-07 Tom Tromey <tromey@adacore.com>
2405 * ada-lang.c (add_component_interval): Start loop using vector's
2408 2021-01-06 Tom Tromey <tromey@adacore.com>
2410 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2412 * valarith.c (fixed_point_binop): Handle multiplication
2413 and division specially.
2414 * valops.c (value_to_gdb_mpq): New function.
2415 (value_cast_to_fixed_point): Use it.
2417 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2419 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2420 Call wnoutrefresh instead of tui_win_info::refresh_window.
2422 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2424 * tui/tui-source.c (tui_source_window::show_line_number):
2425 Redraw second space after line number.
2427 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2430 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2431 Fix source pad size in prefresh.
2432 (tui_source_window_base::show_source_content): Grow source pad
2435 2021-01-04 Mike Frysinger <vapier@gentoo.org>
2437 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2438 (bfin_frame_align): Use align_down.
2440 2021-01-04 Tom de Vries <tdevries@suse.de>
2442 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2443 terminators that do not terminate anything.
2445 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2447 * debug.c (debug_print_depth): New.
2448 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2449 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2450 * infrun.c (start_step_over): Use
2451 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2452 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2453 INFRUN_SCOPED_DEBUG_START_END.
2454 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2456 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2458 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2460 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2462 * utils.c (vfprintf_unfiltered): Print timestamp only when
2463 previous debug output ended with a newline.
2465 2021-01-04 Luis Machado <luis.machado@linaro.org>
2467 Update all users of trad_frame_saved_reg to use the new member
2470 Remote all struct keywords from declarations of trad_frame_saved_reg
2471 types, except on forward declarations.
2473 * aarch64-tdep.c: Update.
2474 * alpha-mdebug-tdep.c: Update.
2475 * alpha-tdep.c: Update.
2476 * arc-tdep.c: Update.
2477 * arm-tdep.c: Update.
2478 * avr-tdep.c: Update.
2479 * cris-tdep.c: Update.
2480 * csky-tdep.c: Update.
2481 * frv-tdep.c: Update.
2482 * hppa-linux-tdep.c: Update.
2483 * hppa-tdep.c: Update.
2484 * hppa-tdep.h: Update.
2485 * lm32-tdep.c: Update.
2486 * m32r-linux-tdep.c: Update.
2487 * m32r-tdep.c: Update.
2488 * m68hc11-tdep.c: Update.
2489 * mips-tdep.c: Update.
2490 * moxie-tdep.c: Update.
2491 * riscv-tdep.c: Update.
2492 * rs6000-tdep.c: Update.
2493 * s390-linux-tdep.c: Update.
2494 * s390-tdep.c: Update.
2495 * score-tdep.c: Update.
2496 * sparc-netbsd-tdep.c: Update.
2497 * sparc-sol2-tdep.c: Update.
2498 * sparc64-fbsd-tdep.c: Update.
2499 * sparc64-netbsd-tdep.c: Update.
2500 * sparc64-obsd-tdep.c: Update.
2501 * sparc64-sol2-tdep.c: Update.
2502 * tilegx-tdep.c: Update.
2503 * v850-tdep.c: Update.
2504 * vax-tdep.c: Update.
2506 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2507 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2509 * trad-frame.c: Update.
2510 Remove TF_REG_* enum.
2511 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2512 a trivially-constructible struct.
2513 (trad_frame_reset_saved_regs): Adjust to use member function.
2514 (trad_frame_value_p): Likewise.
2515 (trad_frame_addr_p): Likewise.
2516 (trad_frame_realreg_p): Likewise.
2517 (trad_frame_value_bytes_p): Likewise.
2518 (trad_frame_set_value): Likewise.
2519 (trad_frame_set_realreg): Likewise.
2520 (trad_frame_set_addr): Likewise.
2521 (trad_frame_set_unknown): Likewise.
2522 (trad_frame_set_value_bytes): Likewise.
2523 (trad_frame_get_prev_register): Likewise.
2524 * trad-frame.h: Update.
2525 (trad_frame_saved_reg_kind): New enum.
2526 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2527 <m_kind, m_reg>: New member fields.
2528 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2529 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2530 <is_addr, is_unknown, is_value_bytes>: New member functions.
2532 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2534 * target-float.c: Fix typos.
2536 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
2538 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2540 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2542 * gdbarch.sh: Update copyright year range.
2544 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2546 Update copyright year range in copyright header of all GDB files.
2548 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2550 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2551 to the list of directories to update.
2553 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2555 * top.c (print_gdb_version): Update copyright year.
2557 2021-01-01 Joel Brobecker <brobecker@adacore.com>
2559 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
2561 For older changes see ChangeLog-2020.
2567 version-control: never