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