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