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