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