]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Introduce last_operation
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
247d935b
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * expop.h (class last_operation): New.
4
17679395
TT
52021-03-08 Tom Tromey <tom@tromey.com>
6
7 * expop.h (class func_static_var_operation): New.
8 * eval.c (eval_op_func_static_var): No longer static.
9
b5cc3923
TT
102021-03-08 Tom Tromey <tom@tromey.com>
11
12 * expop.h (class var_entry_value_operation): New.
13 * eval.c (eval_op_var_entry_value): No longer static.
14
0c8effa3
TT
152021-03-08 Tom Tromey <tom@tromey.com>
16
17 * expression.h (class operation) <set_outermost>: New method.
18 * expop.h (class var_msym_value_operation): New.
19 * eval.c (eval_op_var_msym_value): No longer static.
20 (var_msym_value_operation::evaluate_for_address)
21 (var_msym_value_operation::evaluate_for_sizeof)
22 (var_msym_value_operation::evaluate_for_cast): New methods.
23 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
24 method.
25
d336c29e
TT
262021-03-08 Tom Tromey <tom@tromey.com>
27
28 * expop.h (class long_const_operation): New.
29 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
30
d5ab122c
TT
312021-03-08 Tom Tromey <tom@tromey.com>
32
33 * expop.h (class scope_operation): New.
34 * eval.c (eval_op_scope): No longer static.
35 (scope_operation::evaluate_for_address): New method.
36 * ax-gdb.c (scope_operation::do_generate_ax): New method.
37
cae26a0c
TT
382021-03-08 Tom Tromey <tom@tromey.com>
39
40 * expprint.c (float_const_operation::dump): New method.
41 * expop.h (float_data): New typedef.
42 (class float_const_operation): New.
43
75f9892d
TT
442021-03-08 Tom Tromey <tom@tromey.com>
45
46 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
47 * ax-gdb.c (gen_expr_binop): New function.
48 (gen_expr_structop): Likewise.
49
de401988
TT
502021-03-08 Tom Tromey <tom@tromey.com>
51
52 * expprint.c (expr::dump_for_expression): New functions.
53 * expop.h (dump_for_expression): New overloads.
54 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
55 Update.
56
e2803273
TT
572021-03-08 Tom Tromey <tom@tromey.com>
58
59 * expression.h (expr::operation): New class.
60 (expr::make_operation): New function.
61 (expr::operation_up): New typedef.
62 * expop.h: New file.
63 * eval.c (operation::evaluate_for_cast)
64 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
65 New methods.
66 * ax-gdb.c (operation::generate_ax): New method.
67
e18c58f2
TT
682021-03-08 Tom Tromey <tom@tromey.com>
69
70 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
71 (gen_expr_binop_rest): New overload.
72
c0d7ed8c
TT
732021-03-08 Tom Tromey <tom@tromey.com>
74
75 * eval.c (eval_multi_subscript): New function.
76 (evaluate_subexp_standard): Use it.
77
dd5fd283
TT
782021-03-08 Tom Tromey <tom@tromey.com>
79
80 * ada-lang.c (ada_binop_exp): New function.
81 (ada_evaluate_subexp): Use it.
82
3848abd6
TT
832021-03-08 Tom Tromey <tom@tromey.com>
84
85 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
86 parameters.
87 (ada_evaluate_subexp): Use it.
88
38dc70cf
TT
892021-03-08 Tom Tromey <tom@tromey.com>
90
91 * ada-lang.c (ada_binop_minmax): New function.
92 (ada_evaluate_subexp): Use it.
93
b84564fc
TT
942021-03-08 Tom Tromey <tom@tromey.com>
95
96 * ada-lang.c (ada_unop_atr): New function.
97 (ada_evaluate_subexp): Use it.
98
b467efaa
TT
992021-03-08 Tom Tromey <tom@tromey.com>
100
101 * ada-lang.c (ada_binop_in_bounds): New function.
102 (ada_evaluate_subexp): Use it.
103
5ce19db8
TT
1042021-03-08 Tom Tromey <tom@tromey.com>
105
106 * ada-lang.c (ada_ternop_slice): New function.
107 (ada_evaluate_subexp): Use it.
108
214b13ac
TT
1092021-03-08 Tom Tromey <tom@tromey.com>
110
111 * ada-lang.c (ada_equal_binop): New function.
112 (ada_evaluate_subexp): Use it.
113
faa1dfd7
TT
1142021-03-08 Tom Tromey <tom@tromey.com>
115
116 * ada-lang.c (ada_mult_binop): New function.
117 (ada_evaluate_subexp): Use it.
118
d05e24e6
TT
1192021-03-08 Tom Tromey <tom@tromey.com>
120
121 * ada-lang.c (ada_abs): New function.
122 (ada_evaluate_subexp): Use it.
123
68c75735
TT
1242021-03-08 Tom Tromey <tom@tromey.com>
125
126 * ada-lang.c (ada_atr_size): New function.
127 (ada_evaluate_subexp): Use it.
128
020dbabe
TT
1292021-03-08 Tom Tromey <tom@tromey.com>
130
131 * ada-lang.c (ada_atr_tag): New function.
132 (ada_evaluate_subexp): Use it.
133
7efc87ff
TT
1342021-03-08 Tom Tromey <tom@tromey.com>
135
136 * ada-lang.c (ada_unop_in_range): New function.
137 (ada_evaluate_subexp): Use it.
138
82390ab8
TT
1392021-03-08 Tom Tromey <tom@tromey.com>
140
141 * ada-lang.c (ada_unop_neg): New function.
142 (ada_evaluate_subexp): Use it.
143
62d4bd94
TT
1442021-03-08 Tom Tromey <tom@tromey.com>
145
146 * ada-lang.c (eval_ternop_in_range): New function.
147 (ada_evaluate_subexp): Use it.
148
3634f669
TT
1492021-03-08 Tom Tromey <tom@tromey.com>
150
151 * opencl-lang.c (eval_opencl_assign): New function.
152 (evaluate_subexp_opencl): Use it.
153
5e80600e
TT
1542021-03-08 Tom Tromey <tom@tromey.com>
155
156 * eval.c (eval_op_objc_msgcall): New function.
157 (evaluate_subexp_standard): Use it.
158
fb5ba2ab
TT
1592021-03-08 Tom Tromey <tom@tromey.com>
160
161 * eval.c (eval_binop_assign_modify): New function.
162 (evaluate_subexp_standard): Use it.
163
a49881f7
TT
1642021-03-08 Tom Tromey <tom@tromey.com>
165
166 * m2-lang.c (eval_op_m2_subscript): New function.
167 (evaluate_subexp_modula2): Use it.
168
41bdced5
TT
1692021-03-08 Tom Tromey <tom@tromey.com>
170
171 * m2-lang.c (eval_op_m2_high): New function.
172 (evaluate_subexp_modula2): Use it.
173
13ea014a
TT
1742021-03-08 Tom Tromey <tom@tromey.com>
175
176 * eval.c (evaluate_subexp_for_address_base): New function.
177 (evaluate_subexp_for_address): Use it.
178 (evaluate_subexp_for_sizeof_base): New function.
179 (evaluate_subexp_for_sizeof): Use it.
180
1fa41fc7
TT
1812021-03-08 Tom Tromey <tom@tromey.com>
182
183 * rust-lang.c (eval_op_rust_structop): New function.
184 (rust_evaluate_subexp): Use it.
185
575cae23
TT
1862021-03-08 Tom Tromey <tom@tromey.com>
187
188 * rust-lang.c (eval_op_rust_struct_anon): New function.
189 (rust_evaluate_subexp): Use it.
190
05104233
TT
1912021-03-08 Tom Tromey <tom@tromey.com>
192
193 * rust-lang.c (eval_op_rust_array): New function.
194 (rust_evaluate_subexp): Use it.
195
6fa9831f
TT
1962021-03-08 Tom Tromey <tom@tromey.com>
197
198 * rust-lang.c (eval_op_rust_complement): New function.
199 (rust_evaluate_subexp): Use it.
200
d123f9e4
TT
2012021-03-08 Tom Tromey <tom@tromey.com>
202
203 * rust-lang.c (eval_op_rust_ind): New function.
204 (rust_evaluate_subexp): Use it.
205
984af2cb
TT
2062021-03-08 Tom Tromey <tom@tromey.com>
207
208 * rust-lang.c (rust_subscript): Change parameters.
209 (rust_evaluate_subexp): Update.
210
d148f803
TT
2112021-03-08 Tom Tromey <tom@tromey.com>
212
213 * rust-lang.c (rust_range): Change parameters.
214 (rust_evaluate_subexp): Update.
215
9cbd1c20
TT
2162021-03-08 Tom Tromey <tom@tromey.com>
217
218 * f-lang.c (eval_op_f_allocated): New function.
219 (evaluate_subexp_f): Use it.
220
3c18c49c
TT
2212021-03-08 Tom Tromey <tom@tromey.com>
222
223 * f-lang.c (fortran_require_array): New function.
224 (evaluate_subexp_f): Use it.
225
216f6fcb
TT
2262021-03-08 Tom Tromey <tom@tromey.com>
227
228 * f-lang.c (eval_op_f_kind): New function.
229 (evaluate_subexp_f): Use it.
230
00f2db6f
TT
2312021-03-08 Tom Tromey <tom@tromey.com>
232
233 * f-lang.c (eval_op_f_cmplx): New function.
234 (evaluate_subexp_f): Use it.
235
93b2b5fa
TT
2362021-03-08 Tom Tromey <tom@tromey.com>
237
238 * f-lang.c (eval_op_f_modulo): New function.
239 (evaluate_subexp_f): Use it.
240
9f1a1f3c
TT
2412021-03-08 Tom Tromey <tom@tromey.com>
242
243 * f-lang.c (eval_op_f_floor): New function.
244 (evaluate_subexp_f): Use it.
245
3dc41f3c
TT
2462021-03-08 Tom Tromey <tom@tromey.com>
247
248 * f-lang.c (eval_op_f_ceil): New function.
249 (evaluate_subexp_f): Use it.
250
e08109f2
TT
2512021-03-08 Tom Tromey <tom@tromey.com>
252
253 * f-lang.c (eval_op_f_mod): New function.
254 (evaluate_subexp_f): Use it.
255
cc05c68e
TT
2562021-03-08 Tom Tromey <tom@tromey.com>
257
258 * f-lang.c (eval_op_f_abs): New function.
259 (evaluate_subexp_f): Use it.
260
aec95807
TT
2612021-03-08 Tom Tromey <tom@tromey.com>
262
263 * eval.c (eval_op_type): New function.
264 (evaluate_subexp_standard): Use it.
265
a220ead5
TT
2662021-03-08 Tom Tromey <tom@tromey.com>
267
268 * eval.c (eval_op_postdec): New function.
269 (evaluate_subexp_standard): Use it.
270
abffe116
TT
2712021-03-08 Tom Tromey <tom@tromey.com>
272
273 * eval.c (eval_op_postinc): New function.
274 (evaluate_subexp_standard): Use it.
275
9e1361b7
TT
2762021-03-08 Tom Tromey <tom@tromey.com>
277
278 * eval.c (eval_op_predec): New file.
279 (evaluate_subexp_standard): Use it.
280
00f50884
TT
2812021-03-08 Tom Tromey <tom@tromey.com>
282
283 * eval.c (eval_op_preinc): New function.
284 (evaluate_subexp_standard): Use it.
285
3aef2a07
TT
2862021-03-08 Tom Tromey <tom@tromey.com>
287
288 * eval.c (eval_op_memval): New function.
289 (evaluate_subexp_standard): Use it.
290
acee9468
TT
2912021-03-08 Tom Tromey <tom@tromey.com>
292
293 * eval.c (eval_op_alignof): New function.
294 (evaluate_subexp_standard): Use it.
295
786f70ee
TT
2962021-03-08 Tom Tromey <tom@tromey.com>
297
298 * eval.c (eval_op_ind): New function.
299 (evaluate_subexp_standard): Use it.
300
24338fb9
TT
3012021-03-08 Tom Tromey <tom@tromey.com>
302
303 * eval.c (eval_op_lognot): New function.
304 (evaluate_subexp_standard): Use it.
305
1f09ec81
TT
3062021-03-08 Tom Tromey <tom@tromey.com>
307
308 * eval.c (eval_op_complement): New function.
309 (evaluate_subexp_standard): Use it.
310
606d105f
TT
3112021-03-08 Tom Tromey <tom@tromey.com>
312
313 * eval.c (eval_op_neg): New function.
314 (evaluate_subexp_standard): Use it.
315
39f288be
TT
3162021-03-08 Tom Tromey <tom@tromey.com>
317
318 * eval.c (eval_op_plus): New function.
319 (evaluate_subexp_standard): Use it.
320
eed70b1c
TT
3212021-03-08 Tom Tromey <tom@tromey.com>
322
323 * eval.c (eval_op_repeat): New function.
324 (evaluate_subexp_standard): Use it.
325
60cdd487
TT
3262021-03-08 Tom Tromey <tom@tromey.com>
327
328 * eval.c (eval_op_leq): New function.
329 (evaluate_subexp_standard): Use it.
330
96e3efd9
TT
3312021-03-08 Tom Tromey <tom@tromey.com>
332
333 * eval.c (eval_op_geq): New function.
334 (evaluate_subexp_standard): Use it.
335
1f78d732
TT
3362021-03-08 Tom Tromey <tom@tromey.com>
337
338 * eval.c (eval_op_gtr): New function.
339 (evaluate_subexp_standard): Use it.
340
6cad1349
TT
3412021-03-08 Tom Tromey <tom@tromey.com>
342
343 * eval.c (eval_op_less): New function.
344 (evaluate_subexp_standard): Use it.
345
1fcb3559
TT
3462021-03-08 Tom Tromey <tom@tromey.com>
347
348 * eval.c (eval_op_notequal): New function.
349 (evaluate_subexp_standard): Use it.
350
0cc96de8
TT
3512021-03-08 Tom Tromey <tom@tromey.com>
352
353 * eval.c (eval_op_equal): New function.
354 (evaluate_subexp_standard): Use it.
355
288d26bc
TT
3562021-03-08 Tom Tromey <tom@tromey.com>
357
358 * eval.c (eval_op_subscript): New function.
359 (evaluate_subexp_standard): Use it.
360
7cdcdd02
TT
3612021-03-08 Tom Tromey <tom@tromey.com>
362
363 * eval.c (eval_op_binary): New function.
364 (evaluate_subexp_standard): Use it.
365
d9790e22
TT
3662021-03-08 Tom Tromey <tom@tromey.com>
367
368 * eval.c (eval_op_sub): New function.
369 (evaluate_subexp_standard): Use it.
370
aedaf9ac
TT
3712021-03-08 Tom Tromey <tom@tromey.com>
372
373 * eval.c (eval_op_add): New function.
374 (evaluate_subexp_standard): Use it.
375
b7a96ed2
TT
3762021-03-08 Tom Tromey <tom@tromey.com>
377
378 * eval.c (eval_op_member): New function.
379 (evaluate_subexp_standard): Use it.
380
fb461aa3
TT
3812021-03-08 Tom Tromey <tom@tromey.com>
382
383 * eval.c (eval_op_structop_ptr): New function.
384 (evaluate_subexp_standard): Use it.
385
3e96c4fc
TT
3862021-03-08 Tom Tromey <tom@tromey.com>
387
388 * eval.c (eval_op_structop_struct): New function.
389 (evaluate_subexp_standard): Use it.
390
f960a617
TT
3912021-03-08 Tom Tromey <tom@tromey.com>
392
393 * eval.c (eval_op_ternop): New function.
394 (evaluate_subexp_standard): Use it.
395
5c2f201e
TT
3962021-03-08 Tom Tromey <tom@tromey.com>
397
398 * eval.c (eval_op_concat): New function.
399 (evaluate_subexp_standard): Use it.
400
f871bae1
TT
4012021-03-08 Tom Tromey <tom@tromey.com>
402
403 * eval.c (eval_op_objc_selector): New function.
404 (evaluate_subexp_standard): Use it.
405
14a1c64a
TT
4062021-03-08 Tom Tromey <tom@tromey.com>
407
408 * eval.c (eval_op_string): New function.
409 (evaluate_subexp_standard): Use it.
410
ffff730b
TT
4112021-03-08 Tom Tromey <tom@tromey.com>
412
413 * eval.c (eval_op_register): New function.
414 (evaluate_subexp_standard): Use it.
415
9b1d8af6
TT
4162021-03-08 Tom Tromey <tom@tromey.com>
417
418 * eval.c (eval_op_func_static_var): New function.
419 (evaluate_subexp_standard): Use it.
420
c0df9289
TT
4212021-03-08 Tom Tromey <tom@tromey.com>
422
423 * eval.c (eval_op_var_msym_value): New function.
424 (evaluate_subexp_standard): Use it.
425
50b98adc
TT
4262021-03-08 Tom Tromey <tom@tromey.com>
427
428 * eval.c (eval_op_var_entry_value): New function.
429 (evaluate_subexp_standard): Use it.
430
ea2d29f7
TT
4312021-03-08 Tom Tromey <tom@tromey.com>
432
433 * eval.c (eval_op_scope): New function.
434 (evaluate_subexp_standard): Use it.
435
01573d73
TT
4362021-03-06 Chernov Sergey <klen_s@mail.ru>
437
438 PR gdb/27528:
439 * ada-lang.c (ada_fold_name): Use gdb::to_string.
440
9938d15a
TT
4412021-03-06 Tom Tromey <tom@tromey.com>
442
443 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
444 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
445 * dwarf2/read.c (dwarf2_elf_names): No longer static.
446 (locate_dwz_sections, dwz_search_other_debugdirs)
447 (dwarf2_get_dwz_file): Move to dwz.c.
448 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
449 read.h.
450 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
451 (dwarf2_get_dwz_file): Move from read.c.
452
18035655
TT
4532021-03-06 Tom Tromey <tom@tromey.com>
454
455 * debuginfod-support.h: Include scoped_fd.h.
456
a7308ce0
TT
4572021-03-06 Tom Tromey <tom@tromey.com>
458
459 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
460 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
461 (get_abbrev_section_for_cu, read_attribute_value)
462 (get_debug_line_section): Update.
463 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
464
fbedd546
TT
4652021-03-06 Tom Tromey <tom@tromey.com>
466
467 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
468 method.
469 * dwarf2/read.c (section_is_p): Remove.
470 (dwarf2_per_bfd::locate_sections)
471 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
472 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
473 (dwarf2_locate_common_dwp_sections)
474 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
475 Update.
476
c2a62a3d
TT
4772021-03-06 Tom Tromey <tom@tromey.com>
478
479 * xcoffread.c: Include sect-names.h.
480 * symfile.h (struct dwarf2_section_names, struct
481 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
482 * dwarf2/sect-names.h: New file, from symfile.h.
483 * dwarf2/read.c: Include sect-names.h.
484
4444f407
TT
4852021-03-06 Tom Tromey <tom@tromey.com>
486
487 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
488 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
489 (abbrev_table::read): Update.
490 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
491 (struct abbrev_info): Reformat.
492 <attrs>: Now an array.
493 (struct abbrev_table) <alloc_abbrev>: Remove.
494
dd99cf0c
WP
4952021-03-06 Weimin Pan <weimin.pan@oracle.com>
496
497 * ctfread.c (ctf_psymtab_add_enums): New function.
498 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
499
844be3f2
WP
5002021-03-06 Weimin Pan <weimin.pan@oracle.com>
501
502 * ctfread.c (read_func_kind_type): Set up function arguments.
503
b2668f28
AB
5042021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
505 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
508 includes.
509 (riscv_csrset): New static global.
510 (riscv_update_csrmap): New function.
511 (riscv_iterate_over_regset_sections): Process CSRs.
512
d782d24b
AB
5132021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * riscv-tdep.c (riscv_feature_name_csr): Define.
516 (riscv_feature_name_cpu): Define.
517 (riscv_feature_name_fpu): Define.
518 (riscv_feature_name_virtual): Define.
519 (riscv_xreg_feature): Use riscv_feature_name_cpu.
520 (riscv_freg_feature): Use riscv_feature_name_fpu.
521 (riscv_virtual_feature): Use riscv_feature_name_virtual.
522 (riscv_csr_feature): Use riscv_feature_name_csr.
523 * riscv-tdep.h (riscv_feature_name_csr): Declare.
524
fb8f3fc0
AB
5252021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
526 Craig Blackmore <craig.blackmore@embecosm.com>
527
528 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
529 (ALLDEPFILES): Add riscv-none-tdep.c.
530 * configure: Regenerate.
531 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
532 support.
533 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
534 * elf-none-tdep.c: New file.
535 * elf-none-tdep.h: New file.
536 * riscv-none-tdep.c: New file.
537
95ce627a
AB
5382021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
539 Andrew Burgess <andrew.burgess@embecosm.com>
540
541 * corelow.c: Add 'xml-tdesc.h' include.
542 (core_target::read_description): Load the target description from
543 the core file when possible.
544 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
545 note.
546 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
547 (gcore_elf_make_tdesc_note): New function.
548 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
549 * linux-tdep.c (linux_make_corefile_notes): Add target description
550 note.
551
f3a5df7b
AB
5522021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * Makefile.in (SFILES): Add gcore-elf.c.
555 (HFILES_NO_SRCDIR): Add gcore-elf.h
556 * configure: Regenerate.
557 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
558 support.
559 * fbsd-tdep.c: Add 'gcore-elf.h' include.
560 (struct fbsd_collect_regset_section_cb_data): Delete.
561 (fbsd_collect_regset_section_cb): Delete.
562 (fbsd_collect_thread_registers): Delete.
563 (struct fbsd_corefile_thread_data): Delete.
564 (fbsd_corefile_thread): Delete.
565 (fbsd_make_corefile_notes): Call
566 gcore_elf_build_thread_register_notes instead of the now deleted
567 FreeBSD code.
568 * gcore-elf.c: New file, the content was moved here from
569 linux-tdep.c, functions were renamed and given minor cleanup.
570 * gcore-elf.h: New file.
571 * gcore.c (gcore_find_signalled_thread): Moved here from
572 linux-tdep.c and given a new name. Minor cleanups.
573 * gcore.h (gcore_find_signalled_thread): Declare.
574 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
575 (struct linux_collect_regset_section_cb_data): Delete.
576 (linux_collect_regset_section_cb): Delete.
577 (linux_collect_thread_registers): Delete.
578 (linux_corefile_thread): Call
579 gcore_elf_build_thread_register_notes.
580 (find_signalled_thread): Delete.
581 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
582
d1e93af6
SM
5832021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
584
585 PR gdb/27147
586 * sparc-nat.h (sparc_fetch_inferior_registers): Add
587 process_stratum_target parameter,
588 sparc_store_inferior_registers): update callers.
589 * sparc-nat.c (sparc_fetch_inferior_registers,
590 sparc_store_inferior_registers): Add process_stratum_target
591 parameter. Switch current thread before calling
592 sparc_supply_gregset / sparc_collect_rwindow.
593 (sparc_store_inferior_registers): Likewise.
594 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
595 (sparc32obsd_collect_uthread): Likewise.
596 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
597 Add assertion.
598 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
599 sparc64obsd_supply_uthread): Add assertion.
600
1178743e
TT
6012021-03-04 Tom Tromey <tromey@adacore.com>
602
603 * ada-lang.c (struct match_data) <found_sym>: Now bool.
604 (aux_add_nonlocal_symbols): Update.
605 (ada_add_block_symbols): Change "found_sym" to bool.
606
1bfa81ac
TT
6072021-03-03 Tom Tromey <tromey@adacore.com>
608
609 * ada-lang.c (ada_resolve_function): Update comment.
610 (is_nonfunction, add_symbols_from_enclosing_procs)
611 (remove_extra_symbols): Likewise.
612 (struct match_data): Add constructor, initializers.
613 (add_nonlocal_symbols): Remove memset.
614 (aux_add_nonlocal_symbols): Update comment.
615 (ada_add_block_renamings, add_nonlocal_symbols)
616 (ada_add_all_symbols): Likewise.
617 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
618
bbcdf9ab
TT
6192021-03-02 Tom Tromey <tromey@adacore.com>
620
621 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
622 (cast_to_gnat_encoded_fixed_point_type): Remove.
623 (ada_value_cast, ada_evaluate_subexp): Update.
624 (gnat_encoded_fixed_point_type_info)
625 (ada_is_gnat_encoded_fixed_point_type)
626 (gnat_encoded_fixed_point_delta)
627 (gnat_encoded_fixed_point_scaling_factor): Remove.
628 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
629 (gnat_encoded_fixed_point_delta)
630 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
631 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
632 (ada_print_type): Update.
633 * ada-valprint.c (ada_value_print_num): Update.
634 * dwarf2/read.c (ada_get_gnat_encoded_number)
635 (ada_get_gnat_encoded_ratio): New functions.
636 (finish_fixed_point_type): Use them. Add parameters.
637 (GNAT_FIXED_POINT_SUFFIX): New define.
638 (gnat_encoded_fixed_point_type_info): New function.
639 (read_base_type): Handle gnat encodings.
640
5f9febe0
TT
6412021-03-02 Tom Tromey <tromey@adacore.com>
642
643 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
644 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
645 std::string.
646 (GROW_VECT): Remove.
647 (grow_vect): Remove.
648
d1183b06
TT
6492021-03-02 Tom Tromey <tromey@adacore.com>
650
651 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
652 * ada-lang.c (resolve_subexp): Update.
653 (ada_resolve_function): Accept a vector.
654 (is_nonfunction, add_defn_to_vec)
655 (add_symbols_from_enclosing_procs): Likewise.
656 (num_defns_collected, defns_collected): Remove.
657 (remove_extra_symbols): Return a vector.
658 (remove_irrelevant_renamings): Return void.
659 (ada_add_local_symbols): Accept a vector.
660 (struct match_data) <obstackp>: Remove.
661 <resultp>: New member.
662 (aux_add_nonlocal_symbols): Update.
663 (ada_add_block_renamings, add_nonlocal_symbols)
664 (ada_add_all_symbols): Accept a vector.
665 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
666 vector.
667 (ada_lookup_symbol): Update.
668 (ada_add_block_symbols): Accept a vector.
669 (get_var_value, iterate_over_symbols): Update.
670 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
671 Update.
672
886d459f
TT
6732021-03-02 Tom Tromey <tromey@adacore.com>
674
675 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
676
bdcccc56
TT
6772021-03-02 Tom Tromey <tromey@adacore.com>
678
679 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
680 auto_obstack.
681 <root>: Initialize.
682 (ada_pspace_data): Remove destructor.
683 <sym_cache>: Now a unique_ptr.
684 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
685 (ada_get_symbol_cache): Use 'new'.
686 (ada_clear_symbol_cache): Rewrite.
687
1228719f
TT
6882021-03-02 Tom Tromey <tromey@adacore.com>
689
690 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
691 is null.
692
bb3a4efe
LS
6932021-02-27 Lancelot Six <lsix@lancelotsix.com>
694
695 PR gdb/27393
696 * source.c (add_path): Skip empty dirnames.
697
26b43ca6 6982021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
699
700 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
701 include order for <sys/ptrace.h> and <asm/ptrace.h>.
702
dffdd8b5
SM
7032021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
704
705 PR gdb/26861
706 * target.c (target_mourn_inferior): Only compare pids in
707 target_mourn_inferior.
708
64d38fdd
JM
7092021-02-25 Jan Matyas <jmatyas@codasip.com>
710
711 PR gdb/26819
712 * remote.c (remote_target::start_remote): Ensure the single
713 thread, automatically added for remote targets without the
714 concept of threading, is initially in set to the "resumed"
715 state.
716 * remote.c (remote_target::add_current_inferior_and_thread):
717 Add return value - return the main thread.
718
2450ad54
JV
7192021-02-25 Jan Vrany <jan.vrany@labware.com>
720
721 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
722 (mi_tsv_created): Likewise.
723 (mi_tsv_deleted): Likewise.
724
30c80d88
TV
7252021-02-25 Tom de Vries <tdevries@suse.de>
726
727 PR symtab/27354
728 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
729 section_kind for &dwo_file->sections.info.
730
68337b8b
AB
7312021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
732
733 PR fortran/26155
734 * f-lang.c (fortran_argument_convert): Delete declaration.
735 (fortran_prepare_argument): New function.
736 (evaluate_subexp_f): Move logic to new function
737 fortran_prepare_argument.
738
faeb9f13
AB
7392021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * f-exp.y (f77_keywords): Add 'associated'.
742 * f-lang.c (fortran_associated): New function.
743 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
744 (operator_length_f): Likewise.
745 (print_unop_or_binop_subexp_f): New function.
746 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
747 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
748 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
749 (operator_check_f): Likewise.
750 * std-operator.def: Add FORTRAN_ASSOCIATED.
751
170f4b23
AB
7522021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
753
754 * f-exp.y (fortran_operators): Add ".xor.".
755
aa659cfa
TV
7562021-02-24 Tom de Vries <tdevries@suse.de>
757
758 PR symtab/27336
759 * dwarf2/attribute.c (attribute::form_is_signed): New function
760 factored out of ...
761 * dwarf2/attribute.h (attribute::as_signed): ... here.
762 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
763 (attribute::form_is_signed): Declare.
764 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
765 for DW_AT_decl_file.
766
268c77c1
KB
7672021-02-24 Kevin Buettner <kevinb@redhat.com>
768
769 * nat/aarch64-linux-hw-point.c: Add comment regarding include
770 order for <sys/ptrace.h> and <asm/ptrace.h>.
771
665af52e
KB
7722021-02-24 Kevin Buettner <kevinb@redhat.com>
773
774 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
775 <sys/ptrace.h>.
776
dd80d750
AB
7772021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
778
779 * exec.c (set_section_command): Move variable declarations into
780 the function body, and use std::string instead of a fixed size
781 buffer.
782
336aa7b7
AB
7832021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
784
785 * exec.c (exec_target::get_section_table): Delete member function.
786 (section_table_read_available_memory): Use current_top_target, not
787 just the exec_ops target.
788 * target-delegates.c: Regenerate.
789 * target.c (default_get_section_table): New function.
790 * target.h (target_ops::get_section_table): Change default
791 behaviour to call default_get_section_table.
792 (default_get_section_table): Declare.
793
02f7d26b
AB
7942021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * exec.c (exec_target::close): Call new clear_target_sections
797 function.
798 (program_space::add_target_sections): Update name of member
799 variable.
800 (program_space::add_target_sections): Update name of member
801 variable.
802 (program_space::remove_target_sections): Likewise.
803 (exec_one_fork): Use new target_sections member function.
804 (exec_target::get_section_table): Likewise.
805 (exec_target::files_info): Likewise.
806 (set_section_command): Likewise.
807 (exec_set_section_address): Likewise.
808 (exec_target::has_memory): Use new target_sections member
809 function.
810 * progspace.h (program_space::clear_target_sections): New member
811 function.
812 (program_space::target_sections): Rename member variable to
813 m_target_sections, replace with a new member function.
814 (program_space::m_target_sections): New member variable.
815 * solib-dsbt.c (scan_dyntag): Use new member function.
816 * solib-svr4.c (scan_dyntag): Likewise.
817
19cf757a
AB
8182021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
819
820 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
821 return type const.
822 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
823 (section_table_read_available_memory): Make local const.
824 (exec_target::xfer_partial): Make local const.
825 (print_section_info): Make parameter const.
826 * gdb/exec.h (print_section_info): Likewise.
827 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
828 const.
829 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
830 Likewise.
831 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
832 Likewise.
833 * gdb/s390-tdep.c (s390_load): Likewise.
834 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
835 * gdb/solib-svr4.c (scan_dyntag): Likewise.
836 * gdb/target-debug.h (target_debug_print_target_section_table_p):
837 Rename to...
838 (target_debug_print_const_target_section_table_p): ...this.
839 * gdb/target-delegates.c: Regenerate.
840 * gdb/target.c (target_get_section_table): Make return type const.
841 (target_section_by_addr): Likewise. Also make some locals const.
842 (memory_xfer_partial_1): Make some locals const.
843 * gdb/target.h (struct target_ops) <get_section_table>: Make
844 return type const.
845 (target_section_by_addr): Likewise.
846 (target_get_section_table): Likewise.
847
02a79309
AB
8482021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
849
850 * NEWS: Mention new 'maint info target-sections' command.
851 * maint.c (maintenance_info_target_sections): New function.
852 (_initialize_maint_cmds): Register new command.
853
895b7b4e
AB
8542021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
855
856 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
857 (riscv_features_from_bfd): ...this. Change parameter type to
858 'bfd*', and update as required.
859 (riscv_find_default_target_description): Update call to
860 riscv_features_from_bfd. Select a default xlen based on
861 info.bfd_arch_info.
862 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
863
bc3c0632
AB
8642021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * eval.c (evaluate_subexp_standard): Call value_ind for points to
867 dynamic types in UNOP_IND.
868
08ac5771
SM
8692021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
870
871 PR gdb/26828
872 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
873 Instantiate queue.
874 (~dwarf2_queue_guard): Clear queue.
875 (queue_comp_unit): Assert that queue is
876 instantiated.
877 (process_queue): Adjust.
878 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
879
616c069a
SM
8802021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
881
882 PR gdb/26828
883 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
884 to decide whether or not to enqueue it for expansion.
885 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
886 after calling maybe_queue_comp_unit.
887
897608ed
SM
8882021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
889
890 * linux-nat.c (linux_nat_filter_event): Return void.
891
15908a11
TT
8922021-02-22 Tom Tromey <tromey@adacore.com>
893
894 * solib-svr4.c (enable_break): Update.
895 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
896 type.
897 (target_bfd_reopen): Change parameter type.
898 * bfd-target.h (target_bfd_reopen): Change parameter type.
899
f53fc427
SM
9002021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
901
902 * thread.c (add_thread_silent): Add assert.
903 (find_thread_ptid): Add assert.
904
de146e19
SM
9052021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
906
907 PR gdb/27435
908 * inf-ptrace.c (struct target_unpusher): Move to target.h.
909 (target_unpush_up): Likewise.
910 * procfs.c (procfs_target::attach): Push target early. Use
911 target_unpush_up to unpush target in case of error.
912 * target.h (struct target_unpusher): Move here.
913 (target_unpush_up): Likewise.
914
8488c357
KB
9152021-02-19 Kevin Buettner <kevinb@redhat.com>
916
917 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
918 (which in turn includes <gnulib/config.h>) before include
919 of <signal.h>.
920
5a9f5403
NC
9212021-02-19 Nelson Chu <nelson.chu@sifive.com>
922
923 PR 27158
924 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
925 (decode_j_type_insn): Likewise.
926 (decode_cj_type_insn): Likewise.
927 (decode_b_type_insn): Likewise.
928 (decode): Likewise.
929
26f53cd3
TT
9302021-02-18 Tom Tromey <tom@tromey.com>
931
932 * expression.h (struct expression) <evaluate>: Declare method.
933 * eval.c (evaluate_subexp): Simplify.
934 (expression::evaluate): New method.
935 (evaluate_expression, evaluate_type): Use expression::evaluate.
936
6a780b67
KB
9372021-02-17 Kevin Buettner <kevinb@redhat.com>
938
939 * ada-lang.c (ada_fold_name): Check for non-empty string prior
940 to accessing it.
941 (ada_lookup_name_info): Likewise.
942
adeab0c5
MF
9432021-02-13 Mike Frysinger <vapier@gentoo.org>
944
945 * aclocal.m4: Regenerate.
946
089436f7
TV
9472021-02-12 Tom de Vries <tdevries@suse.de>
948
949 PR threads/26228
950 * linux-nat.c (lin_thread_get_thread_signals): Remove.
951 (lin_thread_signals): New static var.
952 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
953 New function.
954 * linux-nat.h (lin_thread_get_thread_signals): Remove.
955 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
956 Declare.
957 * linux-thread-db.c (check_thread_signals): Use
958 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
959
96df3e28
AB
9602021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
961
962 * f-exp.y (f77_keywords): Add allocated.
963 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
964 (operator_length_f): Likewise.
965 (print_subexp_f): Likewise.
966 (dump_subexp_body_f): Likewise.
967 (operator_check_f): Likewise.
968 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
969
05f68f52
TV
9702021-02-11 Tom de Vries <tdevries@suse.de>
971
972 PR symtab/27353
973 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
974 Return true for DW_FORM_strx.
975
b260f8d6
TT
9762021-02-11 Tom Tromey <tromey@adacore.com>
977
978 PR gdb/27383:
979 * parse.c (write_exp_symbol_reference): Write sym.block.
980
bf3386f0
AB
9812021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
982
983 * NEWS: Mention changes to 'maint info sections'.
984 * maint.c (match_substring): Return a bool, fix whitespace issue.
985 (struct single_bfd_flag_info): New struct.
986 (bfd_flag_info): New static global.
987 (match_bfd_flags): Return a bool, use bfd_flag_info.
988 (print_bfd_flags): Use bfd_flag_info.
989 (maint_print_section_info): Delete trailing whitespace.
990 (struct maint_info_sections_opts): New struct.
991 (maint_info_sections_option_defs): New static global.
992 (maint_info_sections_completer): New function.
993 (maintenance_info_sections): Use option parsing mechanism.
994 (_initialize_maint_cmds): Update command help text for 'maint info
995 sections' and register a command completer.
996
4790db14
AB
9972021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
998
999 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1000 functionality merged into...
1001 (maint_print_all_sections): ...this new function.
1002 (maintenance_info_sections): Make use of maint_print_all_sections,
1003 allow all objects to be printed even where there's no executable.
1004
1db66e34
AB
10052021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1006
1007 * breakpoint.c (resolve_sal_pc): Make use of
1008 bound_minimal_symbol::obj_section.
1009 * maint.c (maintenance_translate_address): Likewise.
1010 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1011 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1012 member function.
1013 * printcmd.c (info_address_command): Make use of
1014 bound_minimal_symbol::obj_section.
1015
18b8df43
AM
10162021-02-11 Alan Modra <amodra@gmail.com>
1017
1018 * arm-symbian-tdep.c: Delete.
1019 * NEWS: Mention arm-symbian removal.
1020 * Makefile.in: Remove arm-symbian-tdep entries.
1021 * configure.tgt: Remove arm*-*-symbianelf*.
1022 * doc/gdb.texinfo: Remove mention of SymbianOS.
1023 * osabi.c (gdb_osabi_names): Remove "Symbian".
1024 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1025 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1026 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1027 handling.
1028 * testsuite/gdb.base/dup-sect.exp: Likewise.
1029 * testsuite/gdb.base/long_long.exp: Likewise.
1030 * testsuite/gdb.base/solib-weak.exp: Likewise.
1031 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1032 * testsuite/gdb.python/py-section-script.exp: Likewise.
1033 * testsuite/lib/dwarf.exp: Likewise.
1034 * testsuite/lib/gdb.exp: Likewise.
1035
e92c8eb8
AB
10362021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1039 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1040 (one_or_two_args): New pattern.
1041 (f77_keywords): Add lbound and ubound.
1042 * f-lang.c (fortran_bounds_all_dims): New function.
1043 (fortran_bounds_for_dimension): New function.
1044 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1045 (operator_length_f): Likewise.
1046 (print_subexp_f): Likewise.
1047 (dump_subexp_body_f): Likewise.
1048 (operator_check_f): Likewise.
1049 * std-operator.def (FORTRAN_LBOUND): Define.
1050 (FORTRAN_UBOUND): Define.
1051
a52d653e
AB
10522021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1053
1054 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1055 and set_section_index member functions where appropriate.
1056 * coffread.c (coff_symtab_read): Likewise.
1057 (process_coff_symbol): Likewise.
1058 * ctfread.c (set_symbol_address): Likewise.
1059 * dwarf2/read.c (add_partial_symbol): Likewise.
1060 (var_decode_location): Likewise.
1061 * language.c: Likewise.
1062 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1063 (compact_minimal_symbols): Likewise.
1064 (minimal_symbol_upper_bound): Likewise.
1065 * objfiles.c (relocate_one_symbol): Likewise.
1066 * psympriv.h (partial_symbol::obj_section): Likewise.
1067 (partial_symbol::address): Likewise.
1068 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1069 * stabsread.c (scan_file_globals): Likewise.
1070 * symmisc.c (dump_msymbols): Likewise.
1071 * symtab.c (general_symbol_info::obj_section): Likewise.
1072 (fixup_section): Likewise.
1073 (get_msymbol_address): Likewise.
1074 * symtab.h (general_symbol_info::section): Rename to...
1075 (general_symbol_info::m_section): ...this.
1076 (general_symbol_info::set_section_index): New member function.
1077 (general_symbol_info::section_index): Likewise.
1078 (SYMBOL_SECTION): Delete.
1079 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1080 set_section_index member functions where appropriate.
1081 (MSYMBOL_SECTION): Delete.
1082 (symbol::symbol): Update to initialize 'm_section'.
1083 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1084 (process_xcoff_symbol): Likewise.
1085
ebbc3a7d
AB
10862021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1089 MSYMBOL_OBJ_SECTION.
1090 * findvar.c (language_defn::read_var_value): Likewise.
1091 * infcmd.c (jump_command): Likewise.
1092 * linespec.c (minsym_found): Likewise.
1093 * maint.c (maintenance_translate_address): Likewise.
1094 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1095 (minimal_symbol_upper_bound): Likewise.
1096 * parse.c (find_minsym_type_and_address): Likewise.
1097 (operator_check_standard): Likewise.
1098 * printcmd.c (info_address_command): Likewise.
1099 * symmisc.c (dump_msymbols): Likewise.
1100 (print_symbol): Likewise.
1101 * symtab.c (general_symbol_info::obj_section): Define new
1102 function.
1103 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1104 (find_pc_sect_compunit_symtab): Likewise.
1105 (find_function_start_sal): Likewise.
1106 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1107 MSYMBOL_OBJ_SECTION.
1108 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1109 function.
1110 (SYMBOL_OBJ_SECTION): Delete.
1111 (MSYMBOL_OBJ_SECTION): Delete.
1112
9bb305b3
TT
11132021-02-09 Tom Tromey <tom@tromey.com>
1114
1115 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1116
cf2b2075
TV
11172021-02-09 Tom de Vries <tdevries@suse.de>
1118
1119 PR symtab/27341
1120 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1121 construct an array type. Add assert to ensure that element_type is
1122 not being modified.
1123
03642b71
AB
11242021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1125
1126 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1127 (gcore_collect_regset_section_cb): Delete.
1128 (gcore_collect_thread_registers): Delete.
1129 (gcore_build_thread_register_notes): Delete.
1130 (gcore_find_signalled_thread): Delete.
1131 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1132 'gdbarch' and 'thread_info' declarations.
1133 (gcore_build_thread_register_notes): Delete declaration.
1134 (gcore_find_signalled_thread): Likewise.
1135 * fbsd-tdep.c: Remove 'gcore.h' include.
1136 (struct fbsd_collect_regset_section_cb_data): New struct.
1137 (fbsd_collect_regset_section_cb): New function.
1138 (fbsd_collect_thread_registers): New function.
1139 (struct fbsd_corefile_thread_data): New struct.
1140 (fbsd_corefile_thread): New function.
1141 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1142 * linux-tdep.c: Remove 'gcore.h' include.
1143 (struct linux_collect_regset_section_cb_data): New struct.
1144 (linux_collect_regset_section_cb): New function.
1145 (linux_collect_thread_registers): New function.
1146 (linux_corefile_thread): Call Linux specific code.
1147 (find_signalled_thread): New function.
1148 (linux_make_corefile_notes): Call find_signalled_thread.
1149
f73e424f
TT
11502021-02-09 Tom Tromey <tromey@adacore.com>
1151
1152 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1153 not_lval value.
1154 * value.c (value_contents_copy_raw): Now static.
1155 * value.h (value_contents_copy_raw): Don't declare.
1156
a4f0544b
TT
11572021-02-09 Tom Tromey <tromey@adacore.com>
1158
1159 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1160 fields.
1161
9b3e4b5d
SV
11622021-02-08 Shahab Vahedi <shahab@synopsys.com>
1163
1164 PR tdep/27369
1165 * arc-linux-tdep.c (handle_atomic_sequence): New.
1166 (arc_linux_software_single_step): Call handle_atomic_sequence().
1167
29db1eb3
AB
11682021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1169
1170 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1171 function.
1172 (REQUIRE_WINDOW): Call is_valid member function.
1173 (REQUIRE_WINDOW_FOR_SETTER): New define.
1174 (gdbpy_tui_is_valid): Call is_valid member function.
1175 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1176 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1177 tui_active too.
1178 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1179 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1180 the function.
1181
e0c23e11
AB
11822021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1183
1184 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1185 for the title is not nullptr.
1186
1cf23996
AB
11872021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * tui-layout.c (saved_tui_windows): Delete.
1190 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1191 call new get_windows member function instead.
1192 (tui_get_window_by_name): Check in tui_windows.
1193 (tui_layout_window::apply): Don't add to tui_windows.
1194 * tui-layout.h (tui_layout_base::get_windows): New member function.
1195 (tui_layout_window::get_windows): Likewise.
1196 (tui_layout_split::get_windows): Likewise.
1197
a53a2657
AB
11982021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1199
1200 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1201 of the window objects.
1202
2708dbbd
AB
12032021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * python/python.c (gdbpy_print_stack): Reformat an error message.
1206
cd074e04
AB
12072021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * tui/tui-interp.c (tui_command_line_handler): New function.
1210 (tui_interp::resume): Register tui_command_line_handler as the
1211 input_handler.
1212 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1213 function.
1214 (tui_getc_1): Delete handling of '\n' and '\r'.
1215 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1216
4cf28e91
HD
12172021-02-07 Hannes Domani <ssbssa@yahoo.de>
1218
1219 * tui/tui-regs.c (tui_data_window::display_registers_from):
1220 Mark invisible register sub windows.
1221 (tui_data_window::check_register_values): Ignore invisible
1222 register sub windows.
1223
3537bc23
HD
12242021-02-07 Hannes Domani <ssbssa@yahoo.de>
1225
1226 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1227 n_spaces with a negative value.
1228
5fc2d6aa
HD
12292021-02-07 Hannes Domani <ssbssa@yahoo.de>
1230
1231 * tui/tui-regs.c (tui_data_window::display_registers_from):
1232 Add refresh_window call.
1233
83962f83
HD
12342021-02-07 Hannes Domani <ssbssa@yahoo.de>
1235
1236 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1237
0110ec82
SM
12382021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * symmisc.c (std_in, std_out, std_err): Remove.
1241 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1242
7c6944ab
TV
12432021-02-05 Tom de Vries <tdevries@suse.de>
1244
1245 PR breakpoints/27330
1246 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1247 glibc object file has debug info.
1248
e77b0004
TV
12492021-02-05 Tom de Vries <tdevries@suse.de>
1250
1251 PR symtab/27333
1252 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1253
0e857c82
TV
12542021-02-05 Tom de Vries <tdevries@suse.de>
1255
1256 PR breakpoints/27313
1257 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1258 syscall numbers.
1259
bdfea17e
TT
12602021-02-05 Tom Tromey <tom@tromey.com>
1261
1262 * compile/compile-c-support.c (get_compile_context)
1263 (c_get_compile_context, cplus_get_compile_context): Change return
1264 type.
1265 * language.c (language_defn::get_compile_instance): New method.
1266 * language.h (language_defn::get_compile_instance): Change return
1267 type. No longer inline.
1268 * c-lang.c (c_language::get_compile_instance): Change return type.
1269 (cplus_language::get_compile_instance): Change return type.
1270 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1271 Change return type.
1272 * compile/compile.c (compile_to_object): Update.
1273
1b30f421
TT
12742021-02-05 Tom Tromey <tom@tromey.com>
1275
1276 * parser-defs.h (write_exp_symbol_reference): Declare.
1277 * parse.c (write_exp_symbol_reference): New function.
1278 * p-exp.y (variable): Use write_exp_symbol_reference.
1279 * m2-exp.y (variable): Use write_exp_symbol_reference.
1280 * f-exp.y (variable): Use write_exp_symbol_reference.
1281 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1282 * c-exp.y (variable): Use write_exp_symbol_reference.
1283
ae710496
TV
12842021-02-05 Tom de Vries <tdevries@suse.de>
1285
1286 PR exp/27265
1287 * valarith.c (complex_binop): Throw an error if complex type can't
1288 be created.
1289
d3b54e63
TV
12902021-02-05 Tom de Vries <tdevries@suse.de>
1291
1292 PR symtab/27307
1293 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1294 return.
1295
fc9a13fb
TV
12962021-02-05 Tom de Vries <tdevries@suse.de>
1297
1298 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1299
04b4939b
MF
13002021-02-04 Mike Frysinger <vapier@gentoo.org>
1301
1302 * configure.tgt (riscv*-*-*): Set gdb_sim.
1303
6ff267e1
SM
13042021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1305
1306 * target.c (target_is_non_stop_p): Return bool.
1307 * target.h (target_is_non_stop_p): Return bool.
1308
fdbc5215
SM
13092021-02-04 Simon Marchi <simon.marchi@efficios.com>
1310
1311 * record-full.c (record_full_async_inferior_event_handler):
1312 Don't clear async event handler.
1313 (record_full_base_target::wait): Clear async event handler at
1314 beginning.
1315
85d3ad8e
SM
13162021-02-04 Simon Marchi <simon.marchi@efficios.com>
1317
1318 * record-btrace.c (record_btrace_handle_async_inferior_event):
1319 Don't clear async event handler.
1320 (record_btrace_target::wait): Clear async event handler at
1321 beginning.
1322
baa8575b
SM
13232021-02-04 Simon Marchi <simon.marchi@efficios.com>
1324
1325 * remote.c (remote_target::wait): Clear async event handler at
1326 beginning, mark if needed at the end.
1327 (remote_async_inferior_event_handler): Don't set or clear async
1328 event handler.
1329
6b36ddeb
SM
13302021-02-04 Simon Marchi <simon.marchi@efficios.com>
1331
1332 * async-event.h (async_event_handler_func): Add documentation.
1333 * async-event.c (check_async_event_handlers): Don't clear
1334 async_event_handler ready flag.
1335 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1336 flag.
1337 * record-btrace.c (record_btrace_handle_async_inferior_event):
1338 Likewise.
1339 * record-full.c (record_full_async_inferior_event_handler):
1340 Likewise.
1341 * remote-notif.c (remote_async_get_pending_events_handler):
1342 Likewise.
1343 * remote.c (remote_async_inferior_event_handler): Likewise.
1344
72d383bb
SM
13452021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * infrun.c (handle_inferior_event): Move stop_soon variable to
1348 inner scope.
1349
408f6686
PA
13502021-02-03 Pedro Alves <pedro@palves.net>
1351
1352 * infcmd.c (detach_command): Hold strong reference to target, and
1353 if all-stop on entry, restart threads on exit.
1354 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1355 (restart_stepped_thread): ... this new function. Also handle
1356 trap_expected.
1357 (restart_after_all_stop_detach): New function.
1358 * infrun.h (restart_after_all_stop_detach): Declare.
1359
ac7d717c
PA
13602021-02-03 Pedro Alves <pedro@palves.net>
1361
1362 * infrun.c (struct step_over_info): Initialize fields.
1363 (prepare_for_detach): Handle ongoing in-line step over.
1364
e87f0fe8
PA
13652021-02-03 Pedro Alves <pedro@palves.net>
1366
1367 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1368 here...
1369 * remote.c (remote_target::remote_detach_1): ... and here ...
1370 * target.c (target_detach): ... instead of here.
1371 * target.h (target_ops::detach): Add comment.
1372
8ff53139
PA
13732021-02-03 Pedro Alves <pedro@palves.net>
1374
1375 * infrun.c (struct wait_one_event): Move higher up.
1376 (prepare_for_detach): Abort in-progress displaced steps instead of
1377 letting them complete.
1378 (handle_one): If the inferior is detaching, don't add the thread
1379 back to the global step-over chain.
1380 (restart_threads): Don't restart threads if detaching.
1381 (handle_signal_stop): Remove inferior::detaching reference.
1382
91475068
PA
13832021-02-03 Pedro Alves <pedro@palves.net>
1384
1385 * infrun.c (prepare_for_detach): Don't release scoped_restore
1386 before returning.
1387
d758e62c
PA
13882021-02-03 Pedro Alves <pedro@palves.net>
1389
1390 * infrun.c (handle_one): New function, factored out from ...
1391 (stop_all_threads): ... here.
1392
b0083dd7
PA
13932021-02-03 Pedro Alves <pedro@palves.net>
1394
1395 * remote.c (remote_notif_stop_ack): Don't error out on
1396 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1397 (remote_target::discard_pending_stop_replies): Don't delete
1398 in-flight notification; instead, clear its contents.
1399
621cc310
PA
14002021-02-03 Pedro Alves <pedro@palves.net>
1401
1402 * remote.c (extended_remote_target::attach): Set target async in
1403 the target-non-stop path too.
1404
2ab76a18
PA
14052021-02-03 Pedro Alves <pedro@palves.net>
1406
1407 PR gdb/27055
1408 * infrun.c (handle_signal_stop): Move main context_switch call
1409 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1410
2e3773ff
LS
14112021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1412
1413 * NEWS (Changed commands): Add entry for the behavior change of
1414 the inferior command.
1415 * inferior.c (inferior_command): When no argument is given to the
1416 inferior command, display info about the currently selected
1417 inferior.
1418
e57933dc
SM
14192021-02-02 Simon Marchi <simon.marchi@efficios.com>
1420
1421 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1422 a sect_offset.
1423 (read_attribute_reprocess): Adjust.
1424
2b0c7f41
SM
14252021-02-02 Simon Marchi <simon.marchi@efficios.com>
1426
1427 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1428 <gnu_ranges_base>: ... this...
1429 <rnglists_base>: ... and this.
1430 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1431 <gnu_ranges_base>: ... this...
1432 <rnglists_base>: ... and this.
1433 (read_cutu_die_from_dwo): Adjust
1434 (dwarf2_get_pc_bounds): Adjust
1435 (dwarf2_record_block_ranges): Adjust.
1436 (read_full_die_1): Adjust
1437 (partial_die_info::read): Adjust.
1438 (read_rnglist_index): Adjust.
1439
a1c40103
SM
14402021-02-02 Simon Marchi <simon.marchi@efficios.com>
1441
1442 PR gdb/26813
1443 * dwarf2/read.c (read_loclists_rnglists_header): Add
1444 header_offset parameter and use it.
1445 (read_loclist_index): Read header of the current contribution,
1446 not the one at the beginning of the section.
1447 (read_rnglist_index): Likewise.
1448
b1829e1b
SM
14492021-02-02 Simon Marchi <simon.marchi@efficios.com>
1450
1451 PR gdb/26813
1452 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1453 requires_reprocessing flag.
1454 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1455 DW_FORM_loclistx.
1456 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1457 and DW_FORM_loclistx.
1458 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1459 instead of set_address for DW_FORM_loclistx and
1460 DW_FORM_rnglistx.
1461
0c800c6e
SM
14622021-02-02 Simon Marchi <simon.marchi@efficios.com>
1463
1464 * dwarf2/read.c (read_loclist_index): Remove bound check for
1465 start of offset.
1466 (read_rnglist_index): Likewise.
1467
05787bad
SM
14682021-02-02 Simon Marchi <simon.marchi@efficios.com>
1469
1470 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1471 of the offset.
1472
5e4d9bbc
SM
14732021-02-02 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1476
a0c1eeba
SM
14772021-02-02 Simon Marchi <simon.marchi@efficios.com>
1478
1479 * dwarf2/read.c (read_loclist_index): Change complaints into
1480 errors.
1481
2bd3e4b8
TV
14822021-02-02 Tom de Vries <tdevries@suse.de>
1483
1484 PR symtab/24620
1485 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1486 psymtab == nullptr.
1487
82a1fd3a
AB
14882021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1489
1490 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1491 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1492 here from linux-tdep.c and given a new name. Minor cleanups.
1493 (gcore_collect_regset_section_cb): Likewise.
1494 (gcore_collect_thread_registers): Likewise.
1495 (gcore_build_thread_register_notes): Likewise.
1496 (gcore_find_signalled_thread): Likewise.
1497 * gcore.h (gcore_build_thread_register_notes): Declare.
1498 (gcore_find_signalled_thread): Declare.
1499 * fbsd-tdep.c: Add 'gcore.h' include.
1500 (struct fbsd_collect_regset_section_cb_data): Delete.
1501 (fbsd_collect_regset_section_cb): Delete.
1502 (fbsd_collect_thread_registers): Delete.
1503 (struct fbsd_corefile_thread_data): Delete.
1504 (fbsd_corefile_thread): Delete.
1505 (fbsd_make_corefile_notes): Call
1506 gcore_build_thread_register_notes instead of the now deleted
1507 FreeBSD code.
1508 * linux-tdep.c: Add 'gcore.h' include.
1509 (struct linux_collect_regset_section_cb_data): Delete.
1510 (linux_collect_regset_section_cb): Delete.
1511 (linux_collect_thread_registers): Delete.
1512 (linux_corefile_thread): Call
1513 gcore_build_thread_register_notes.
1514 (find_signalled_thread): Delete.
1515 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1516
ebde6f2d
TV
15172021-01-29 Tom de Vries <tdevries@suse.de>
1518
1519 PR breakpoints/26063
1520 * infrun.c (process_event_stop_test): Reset
1521 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1522 changed.
1523
0f93c3a2
AB
15242021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1527 assert. Extend the header comment.
1528
f237f998
AB
15292021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1530
1531 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1532 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1533 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1534 (tui_locator_win_info_ptr): Delete declaration.
1535 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1536 (tui_disasm_window::set_contents): Fetch state from tui_location
1537 global.
1538 (tui_get_begin_asm_address): Likewise.
1539 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1540 for locator window.
1541 (get_locator_window): Delete.
1542 (initialize_known_windows): Treat locator window just like all the
1543 rest.
1544 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1545 (tui_source_window::set_contents): Fetch state from tui_location
1546 global.
1547 (tui_source_window::showing_source_p): Likewise.
1548 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1549 (_locator): Delete.
1550 (tui_locator_win_info_ptr): Delete.
1551 (tui_locator_window::make_status_line): Fetch state from
1552 tui_location global.
1553 (tui_locator_window::rerender): Remove check of 'handle',
1554 reindent function body.
1555 (tui_locator_window::set_locator_fullname): Delete.
1556 (tui_locator_window::set_locator_info): Delete.
1557 (tui_update_locator_fullname): Delete.
1558 (tui_show_frame_info): Likewise.
1559 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1560 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1561 tui/tui-location.h and renamed to
1562 tui_location_tracker::set_location.
1563 (tui_locator_window::set_locator_fullname): Moved to
1564 tui/tui-location.h and renamed to
1565 tui_location_tracker::set_fullname.
1566 (tui_locator_window::full_name): Delete.
1567 (tui_locator_window::proc_name): Delete.
1568 (tui_locator_window::line_no): Delete.
1569 (tui_locator_window::addr): Delete.
1570 (tui_locator_window::gdbarch): Delete.
1571 (tui_update_locator_fullname): Delete declaration.
1572 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1573 for locator window.
1574 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1575 (tui_display_main): Call function on tui_location directly.
1576 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1577 * tui/tui-location.c: New file.
1578 * tui/tui-location.h: New file.
1579
8ee511af
SM
15802021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1581
1582 * gdbtypes.h (get_type_arch): Rename to...
1583 (struct type) <arch>: ... this, update all users.
1584
6ac37371
SM
15852021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1586
1587 * gdbtypes.h (struct type) <arch>: Rename to...
1588 <arch_owner>: ... this, update all users.
1589 <objfile>: Rename to...
1590 <objfile_owner>: ... this, update all users.
1591
24cf6389
AB
15922021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * gdbcmd.h (execute_command_to_string): Update comment.
1595 * top.c (execute_command_to_string): Update header comment.
1596
2a7f6487
TV
15972021-01-28 Tom de Vries <tdevries@suse.de>
1598
1599 PR breakpoints/27205
1600 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1601 (create_longjmp_master_breakpoint_names): New function, factored out
1602 of ...
1603 (create_longjmp_master_breakpoint): ... here. Only try to install
1604 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1605 breakpoint in libc.so failed.
1606
59b59f08
LS
16072021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1608
1609 PR gdb/27133
1610 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1611 unique_ptr is released when the wrapped pointer is kept for later
1612 use.
1613
807f647c
MM
16142021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1615
1616 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1617 BLR and BR instructions.
1618 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1619 (enum aarch64_masks): New.
1620
4ef367bf
TT
16212021-01-26 Tom Tromey <tromey@adacore.com>
1622
1623 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1624 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1625 (windows_init_thread_list, windows_nat::handle_load_dll)
1626 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1627 (windows_nat_target::resume)
1628 (windows_nat_target::get_windows_debug_event)
1629 (windows_nat_target::interrupt, windows_xfer_memory)
1630 (windows_nat_target::close): Update.
1631 * nat/windows-nat.c (DEBUG_EVENTS): Use
1632 debug_prefixed_printf_cond.
1633 (matching_pending_stop, fetch_pending_stop)
1634 (continue_last_debug_event): Update.
1635
4cb1265b
MS
16362020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1637
1638 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1639 elfcore_write_file_note.
1640
d0cc52bd
SV
16412021-01-26 Shahab Vahedi <shahab@synopsys.com>
1642
1643 * arc-tdep.c (arc_add_reggroups): New function.
1644 (arc_gdbarch_init): Call arc_add_reggroups.
1645
ac3571d9 16462021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
1647
1648 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1649
9f6c202e
TV
16502021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1651 Simon Marchi <simon.marchi@polymtl.ca>
1652 Tom de Vries <tdevries@suse.de>
1653
1654 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1655 DW_AT_ranges.
1656
a625a8c9
TT
16572021-01-25 Tom Tromey <tromey@adacore.com>
1658
1659 * dwarf2/read.c (get_mpz): New function.
1660 (get_dwarf2_rational_constant): Use it.
1661
19184910
TT
16622021-01-25 Tom Tromey <tromey@adacore.com>
1663
1664 * ada-lang.c (resolve_subexp): Handle array context.
1665
b10bae18
TT
16662021-01-23 Tom Tromey <tom@tromey.com>
1667
1668 PR compile/25575
1669 * compile/compile-loc2c.c (note_register): New function.
1670 (pushf_register_address, pushf_register): Use it.
1671
3637a558
TT
16722021-01-23 Tom Tromey <tom@tromey.com>
1673
1674 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1675 Change type of "registers_used".
1676 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1677 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1678 (locexpr_generate_c_location, loclist_generate_c_location): Change
1679 type of "registers_used".
1680 * compile/compile.h (compile_dwarf_expr_to_c)
1681 (compile_dwarf_bounds_to_c): Update.
1682 * compile/compile-loc2c.c (pushf_register_address)
1683 (pushf_register, do_compile_dwarf_expr_to_c)
1684 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
1685 of "registers_used".
1686 * compile/compile-c.h (generate_c_for_variable_locations):
1687 Update.
1688 * compile/compile-c-symbols.c (generate_vla_size)
1689 (generate_c_for_for_one_variable): Change type of
1690 "registers_used".
1691 (generate_c_for_variable_locations): Return std::vector.
1692 * compile/compile-c-support.c (generate_register_struct): Change
1693 type of "registers_used".
1694 (compute): Update.
1695
9f7f6cb8
TT
16962021-01-23 Tom Tromey <tom@tromey.com>
1697
1698 * compile/compile-internal.h (class compile_instance)
1699 <set_arguments>: Change return type.
1700 * compile/compile.c (compile_to_object): Remove call to reset.
1701 (compile_instance::set_arguments): Change return type.
1702
dd5ca05f
SM
17032021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1704
1705 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1706 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1707
d3ee35db
LS
17082021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1709
1710 * Makefile.in (SELFTESTS_SRCS): Add
1711 unittests/gdb_tilde_expand-selftests.c.
1712 * unittests/gdb_tilde_expand-selftests.c: New file.
1713
9d2d8a16
AB
17142021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 PR cli/25956
1717 * NEWS: Mention new command.
1718 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1719 (version_style): Define.
1720 (cli_style_option::cli_style_option): Add intensity parameter, and
1721 use as appropriate.
1722 (_initialize_cli_style): Register version style set/show commands.
1723 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1724 (version_style): Declare.
1725 * top.c (print_gdb_version): Use version_stype, and styled_string
1726 to print the GDB version string.
1727
e7b43072
AB
17282021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * utils.c (emit_style_escape): Only emit an escape sequence if the
1731 requested style is different than the current applied style.
1732 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1733 current applied_style.
1734 (fputs_styled): Remove is_default check.
1735 (fputs_styled_unfiltered): Likewise.
1736 (vfprintf_styled_no_gdbfmt): Likewise.
1737
2189c312
SM
17382021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1739
1740 * remote.h (remote_debug_printf): New.
1741 (remote_debug_printf_nofunc): New.
1742 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1743 * remote.c: Use above macros throughout file.
1744
02349803
SM
17452021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1746
1747 * remote.h (remote_debug): Change to bool.
1748 * remote.c (remote_debug): Change to bool.
1749 (_initialize_remote): Adjust.
1750
cda09ec9
SM
17512021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1752
1753 * target.h (remote_debug): Move to...
1754 * remote.h (remote_debug): ... here.
1755 * top.c (remote_debug): Move to...
1756 * remote.c (remote_debug): ... here.
1757 * remote-sim.c: Include remote.h.
1758
baf2b57f
SM
17592021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1760
1761 * cli/cli-cmds.c (show_remote_debug): Remove.
1762 (show_remote_timeout): Remove.
1763 (_initialize_cli_cmds): Don't register commands.
1764 * remote.c (show_remote_debug): Move here.
1765 (show_remote_timeout): Move here.
1766 (_initialize_remote): Register commands.
1767
344e9841
SM
17682021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
1771 type::objfile method instead.
1772
30625020
SM
17732021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1774
1775 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
1776 use the type::is_objfile_owned method.
1777
5b7d941b
SM
17782021-01-22 Simon Marchi <simon.marchi@efficios.com>
1779
1780 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
1781 (TYPE_OWNER): Remove.
1782 (TYPE_OBJFILE): Adjust.
1783 (struct main_type) <flag_objfile_owned>: Rename to...
1784 <m_flag_objfile_owned>: ... this.
1785 <owner>: Rename to...
1786 <m_owner>: ... this.
1787 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
1788 methods.
1789 (TYPE_ALLOC): Adjust.
1790 * gdbtypes.c (alloc_type): Adjust.
1791 (alloc_type_arch): Adjust.
1792 (alloc_type_copy): Adjust.
1793 (get_type_arch): Adjust.
1794 (smash_type): Adjust.
1795 (lookup_array_range_type): Adjust.
1796 (recursive_dump_type): Adjust.
1797 (copy_type_recursive): Adjust.
1798 * compile/compile-c-types.c (convert_func): Adjust.
1799 (convert_type_basic): Adjust.
1800 * compile/compile-cplus-types.c (compile_cplus_convert_func):
1801 Adjust.
1802 * language.c
1803 (language_arch_info::type_and_symbol::alloc_type_symbol):
1804 Adjust.
1805
d5d24e12
LM
18062021-01-21 Luis Machado <luis.machado@linaro.org>
1807
1808 * coffread.c (enter_linenos): Passing string to complaint.
1809 * valops.c (value_assign): Make array view.
1810
a59902a7
SM
18112021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1812
1813 * auto-load.h (debug_auto_load): Move here.
1814 (auto_load_debug_printf): New.
1815 * auto-load.c: Use auto_load_debug_printf.
1816 (debug_auto_load): Move to header.
1817 * linux-thread-db.c (try_thread_db_load): Use
1818 auto_load_debug_printf.
1819 * main.c (captured_main_1): Likewise.
1820
d3abc0ce
SM
18212021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * f-valprint.c (f77_array_offset_tbl): Remove.
1824
1e15fcac
SM
18252021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1826
1827 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1828
439706e6
SM
18292021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1830
1831 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1832 of gdb_select.
1833
325d39e4
HD
18342021-01-21 Hannes Domani <ssbssa@yahoo.de>
1835
1836 PR python/19151
1837 * python/py-breakpoint.c (bppy_get_location): Handle
1838 bp_hardware_breakpoint.
1839 (bppy_init): Likewise.
1840 (gdbpy_breakpoint_created): Likewise.
1841
7cb6d92a
SM
18422021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1843
1844 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1845
d4dd4fca
SM
18462021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1849 (_initialize_gdb_bfd): Adjust.
1850
de53369b
SM
18512021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1852
1853 PR gdb/26828
1854 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1855
17e593e9
SM
18562021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1857
1858 * dwarf2/read.c (follow_die_offset): Add logging.
1859 (dwarf2_per_objfile::age_comp_units): Add logging.
1860
6bd434d6
SM
18612021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1862
1863 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1864 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1865 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1866 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1867 * arm-tdep.c (struct frame_unwind): Make static.
1868 * auto-load.c (auto_load_safe_path_vec): Make static.
1869 * csky-tdep.c (csky_stub_unwind): Make static.
1870 * gdbarch.c (gdbarch_data_registry): Make static.
1871 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1872 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1873 * i386-tdep.c (i386_frame_setup_skip_insns,
1874 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1875 Make static.
1876 * infrun.c (observer_mode): Make static.
1877 * linux-nat.c (sigchld_action): Make static.
1878 * linux-thread-db.c (thread_db_list): Make static.
1879 * maint-test-options.c (maintenance_test_options_list):
1880 * mep-tdep.c (mep_csr_registers): Make static.
1881 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1882 (stats): Make static.
1883 * nat/linux-osdata.c (struct osdata_type): Make static.
1884 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1885 * progspace.c (last_program_space_num): Make static.
1886 * python/py-param.c (struct parm_constant): Remove struct type
1887 name.
1888 (parm_constants): Make static.
1889 * python/py-record-btrace.c (btpy_list_methods): Make static.
1890 * python/py-record.c (recpy_gap_type): Make static.
1891 * record.c (record_goto_cmdlist): Make static.
1892 * regcache.c (regcache_descr_handle): Make static.
1893 * registry.h (DEFINE_REGISTRY): Make definition static.
1894 * symmisc.c (std_in, std_out, std_err): Make static.
1895 * top.c (previous_saved_command_line): Make static.
1896 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1897 static.
1898 * unittests/command-def-selftests.c (nr_duplicates,
1899 nr_invalid_prefixcmd, lists): Make static.
1900 * unittests/observable-selftests.c (test_notification): Make
1901 static.
1902 * unittests/optional/assignment/1.cc (counter): Make static.
1903 * unittests/optional/assignment/2.cc (counter): Make static.
1904 * unittests/optional/assignment/3.cc (counter): Make static.
1905 * unittests/optional/assignment/4.cc (counter): Make static.
1906 * unittests/optional/assignment/5.cc (counter): Make static.
1907 * unittests/optional/assignment/6.cc (counter): Make static.
1908
a6c11cbb
JS
19092021-01-20 Joel Sherrill <joel@rtems.org>
1910
1911 PR gdb/27219
1912 * remote.c (struct remote_thread_info) <resume_state>: Rename
1913 to...
1914 <get_resume_state>: ... this.
1915 (remote_target::resume): Adjust.
1916 (remote_target::commit_resume): Adjust.
1917 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
1918
6f52fdf4
SDJ
19192021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
1920 Tom Tromey <tom@tromey.com>
1921
1922 * stap-probe.c (stap_parse_single_operand): Handle '!'
1923 operator.
1924 (stap_parse_argument_conditionally): Likewise.
1925 Skip spaces after processing open-parenthesis sub-expression.
1926 (stap_parse_argument_1): Skip spaces after call to
1927 stap_parse_argument_conditionally.
1928 Handle case when right-side expression is a parenthesized
1929 sub-expression.
1930 Skip spaces after call to stap_parse_argument_1.
1931
1c3b85ad
LS
19322021-01-19 Lancelot SIX <lsix@lancelotsix.com>
1933
1934 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
1935
a9a87d35
LM
19362021-01-19 Luis Machado <luis.machado@linaro.org>
1937
1938 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
1939 memory and save data.
1940 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
1941 (trad_frame_set_unknown, trad_frame_set_value_bytes)
1942 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1943 (trad_frame_value_bytes_p): Remove.
1944 (trad_frame_reset_saved_regs): Adjust documentation.
1945 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
1946 constructor and reset the state of the registers.
1947 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1948 (trad_frame_value_bytes_p, trad_frame_set_value)
1949 (trad_frame_set_realreg, trad_frame_set_addr)
1950 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
1951 (trad_frame_set_reg_realreg): Update to call member function.
1952 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
1953 (trad_frame_get_prev_register): Likewise.
1954
1955 * aarch64-tdep.c (aarch64_analyze_prologue)
1956 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
1957 (aarch64_prologue_prev_register): Update to use member functions.
1958 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1959 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
1960 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
1961 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
1962 (arm_make_epilogue_frame_cache): Likewise.
1963 * avr-tdep.c (avr_frame_unwind_cache)
1964 (avr_frame_prev_register): Likewise.
1965 * cris-tdep.c (cris_scan_prologue): Likewise.
1966 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
1967 * frv-tdep.c (frv_analyze_prologue): Likewise.
1968 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
1969 * lm32-tdep.c (lm32_frame_cache): Likewise.
1970 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1971 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1972 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
1973 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
1974 (reset_saved_regs): Adjust to set realreg.
1975 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
1976 call member functions.
1977 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
1978 * s390-tdep.c (s390_prologue_frame_unwind_cache)
1979 (s390_backchain_frame_unwind_cache): Likewise.
1980 * score-tdep.c (score7_analyze_prologue)
1981 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
1982 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
1983 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1984 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
1985 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1986 * tilegx-tdep.c (tilegx_analyze_prologue)
1987 (tilegx_frame_cache): Likewise.
1988 * v850-tdep.c (v850_frame_cache): Likewise.
1989 * vax-tdep.c (vax_frame_cache): Likewise.
1990
bdec2917
LM
19912021-01-19 Luis Machado <luis.machado@linaro.org>
1992
1993 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
1994 of buffer + length.
1995 (put_frame_register_bytes): Likewise.
1996 Adjust documentation.
1997 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
1998 (safe_frame_unwind_memory): Likewise.
1999 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2000 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2001 gdb::array_view.
2002 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2003 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2004 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2005 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2006 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2007 * dwarf2/loc.c (rw_pieced_value): Likewise.
2008 * hppa-tdep.c (hppa_frame_cache): Likewise.
2009 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2010 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2011 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2012 (i386_linux_rt_sigtramp_start): Likewise.
2013 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2014 * i386-tdep.c (i386_register_to_value): Likewise.
2015 * i387-tdep.c (i387_register_to_value): Likewise.
2016 * ia64-tdep.c (ia64_register_to_value): Likewise.
2017 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2018 (m32r_linux_rt_sigtramp_start): Likewise.
2019 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2020 * m68k-tdep.c (m68k_register_to_value): Likewise.
2021 * mips-tdep.c (mips_register_to_value)
2022 (mips_value_to_register): Likewise.
2023 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2024 (ppcfbsd_sigtramp_frame_cache): Likewise.
2025 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2026 (ppcobsd_sigtramp_frame_cache): Likewise.
2027 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2028 (rs6000_register_to_value): Likewise.
2029 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2030 * tramp-frame.c (tramp_frame_start): Likewise.
2031 * valops.c (value_assign): Likewise.
2032
ccbe4c82
LM
20332021-01-19 Luis Machado <luis.machado@linaro.org>
2034
2035 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2036 array_view.
2037 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2038 instead of buffer and size.
2039 (trad_frame_set_reg_value_bytes): Likewise.
2040 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2041 (trad_frame_set_value_bytes): Likewise.
2042
0e7620dc
MF
20432021-01-18 Mike Frysinger <vapier@gentoo.org>
2044
2045 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2046
6a9ad81c
AB
20472021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2050 (riscv_fbsd_gregset): Use riscv_supply_regset.
2051 (riscv_fbsd_fpregset): Likewise.
2052 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2053 (riscv_linux_fregset): Likewise.
2054 * riscv-tdep.c (riscv_supply_regset): Define new function.
2055 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2056
d3d7d1ba
TV
20572021-01-18 Tom de Vries <tdevries@suse.de>
2058
2059 PR tdep/27172
2060 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2061 New macro.
2062 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2063 for SEGV_BNDERR.
2064
aa2838cc
SM
20652021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * remote.c (class remote_target) <remote_hostio_send_command,
2068 remote_hostio_parse_result>: Constify parameter.
2069 (remote_hostio_parse_result): Likewise.
2070 (remote_target::remote_hostio_send_command): Adjust.
2071 (remote_target::remote_hostio_pread_vFile): Adjust.
2072 (remote_target::fileio_readlink): Adjust.
2073 (remote_target::fileio_fstat): Adjust.
2074
b5c8f22d
SM
20752021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2076
2077 * remote.c (remote_target::start_remote): Move wait_status to
2078 narrower scope.
2079
e3b2741b
SM
20802021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2081
2082 * remote.c (class remote_target):
2083 <add_current_inferior_and_thread>: Constify parameter.
2084 (stop_reply_extract_thread): Likewise.
2085 (remote_target::get_current_thread): Likewise.
2086 (remote_target::add_current_inferior_and_thread): Likewise.
2087
cecb1912
SM
20882021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2089
2090 * remote.c (class remote_target)
2091 <remote_unpack_thread_info_response,
2092 parse_threadlist_response>: Constify parameter and/or return
2093 value and or local variable.
2094 (stub_unpack_int): Likewise.
2095 (unpack_nibble): Likewise.
2096 (unpack_byte): Likewise.
2097 (unpack_int): Likewise.
2098 (unpack_string): Likewise.
2099 (unpack_threadid): Likewise.
2100 (remote_target::remote_unpack_thread_info_response): Likewise.
2101 (remote_target::parse_threadlist_response): Likewise.
2102
5a11fff0
AB
21032021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2104
2105 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2106
17e89137
LS
21072021-01-14 Lancelot Six <lsix@lancelotsix.com>
2108
2109 * MAINTAINERS (Write After Approval): Add myself.
2110
58eadc4b
BE
21112021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2112
2113 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2114 because is_trivially_default_constructible was first implemented with
2115 gcc-5.
2116
5fae2a2c
TV
21172021-01-14 Tom de Vries <tdevries@suse.de>
2118
2119 PR breakpoints/27151
2120 * objfiles.h (in_plt_section): Handle .plt.sec.
2121
8f66807b
AB
21222021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 PR gdb/26819
2125 * remote.c
2126 (remote_target::select_thread_for_ambiguous_stop_reply): New
2127 member function.
2128 (remote_target::process_stop_reply): Call
2129 select_thread_for_ambiguous_stop_reply.
2130
bd497355
SM
21312021-01-13 Simon Marchi <simon.marchi@efficios.com>
2132
2133 * record-btrace.c (class record_btrace_target): Remove.
2134 (record_btrace_target::commit_resume): Remove.
2135 * record-full.c (class record_full_target): Remove.
2136 (record_full_target::commit_resume): Remove.
2137
c9d22089
SM
21382021-01-13 Simon Marchi <simon.marchi@efficios.com>
2139
2140 * remote.c (enum class resume_state): New.
2141 (struct resumed_pending_vcont_info): New.
2142 (struct remote_thread_info) <resume_state, set_not_resumed,
2143 set_resumed_pending_vcont, resumed_pending_vcont_info,
2144 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2145 New.
2146 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2147 (remote_target::remote_add_thread): Adjust.
2148 (remote_target::process_initial_stop_replies): Adjust.
2149 (remote_target::resume): Adjust.
2150 (remote_target::commit_resume): Rely on state in
2151 remote_thread_info and not on tp->executing.
2152 (remote_target::process_stop_reply): Adjust.
2153
d8d1feb4
SM
21542021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2155
2156 * arc-tdep.h (arc_debug_printf): New.
2157 * arc-tdep.c: Use arc_debug_printf.
2158 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2159 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2160 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2161
fb0f5031
SM
21622021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2163
2164 * arc-tdep.h (arc_debug): Change type to bool.
2165 * arc-tdep.c (arc_debug): Change type to bool.
2166 (arc_analyze_prologue): Adjust.
2167 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2168 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2169
5bf7e91b
SM
21702021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2171
2172 * auto-load.c (auto_load_objfile_script_1): Use bool.
2173 (execute_script_contents): Use bool.
2174
db972fce
SM
21752021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2176
2177 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2178 comment here.
2179 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2180 comment to header.
2181 * extension-priv.h (struct extension_language_script_ops)
2182 <auto_load_enabled>: Return bool.
2183 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2184 comment here.
2185 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2186 comment to header.
2187 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2188 move comment here.
2189 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2190 move comment to header.
2191 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2192 move comment here.
2193 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2194 move comment to header.
2195
5e12f48f
SM
21962021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2197
2198 * auto-load.h (file_is_auto_load_safe): Change return type to
2199 bool, move comment here.
2200 * auto-load.c (file_is_auto_load_safe): Change return type and
2201 advice_printed to bool. Move comment to header.
2202
54ca9002
SM
22032021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2204
2205 * jit.c (jit_debug_printf): New, use throughout file.
2206
24a7f1b5
SM
22072021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2208
2209 * infrun.c (normal_stop): Fix indentation.
2210
fe7a351a
SM
22112021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2212
2213 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2214 declarations to ...
2215 * symfile.h: ... here.
2216 * symfile.c: Update doc.
2217
16e9019e
SM
22182021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2219
2220 * target.h (baud_rate, serial_parity): Move declarations...
2221 * serial.h: ... here.
2222 * main.c: Include serial.h.
2223 * serial.c (baud_rate, serial_parity): Update doc.
2224
b2f2ae0d
SM
22252021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * top.c (pre_init_ui_hook): Remove.
2228
5291fe3c
SP
22292021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2230
2231 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2232 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2233 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2234 * features/aarch64-fpu.xml: Add bfloat16 type.
2235
ce38f5ed
AB
22362021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2237
2238 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2239
7c654b71
AB
22402021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * f-exp.y (dot_ops): Rename to...
2243 (fortran_operators): ...this. Add a header comment. Add symbol
2244 based operators.
2245 (yylex): Update to use fortran_operators not dot_ops. Remove
2246 special handling for '**', this is now included in
2247 fortran_operators.
2248
c6185dce
SM
22492021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2250
2251 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2252 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2253 * aarch64-tdep.c: Use aarch64_debug_printf.
2254
eef401dc
SM
22552021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2256
2257 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2258 file.
2259
062eaacb
SM
22602021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2261
2262 * jit.c (jit_debug): Change type to bool.
2263 (_initialize_jit): Adjust.
2264
54585eee
TT
22652021-01-09 Tom Tromey <tom@tromey.com>
2266
2267 PR compile/23672
2268 * compile/compile.c (compile_to_object): Avoid crash when
2269 osabi_triplet_regexp returns NULL.
2270
bc167b6b
TT
22712021-01-09 Tom Tromey <tom@tromey.com>
2272
2273 * tracepoint.h (class collection_list) <append_exp>: Take a
2274 std::string.
2275 * tracepoint.c (collection_list::append_exp): Take a std::string.
2276 (encode_actions_1): Update.
2277
8fc48b79
TT
22782021-01-08 Tom Tromey <tromey@adacore.com>
2279
2280 * parse.c (parse_expression): Add void_context_p parameter. Use
2281 parse_exp_in_context.
2282 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2283 parse_expression.
2284 (print_command, call_command): Update.
2285 * expression.h (parse_expression): Add void_context_p parameter.
2286
3c8c6de2
AB
22872021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2288
2289 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2290 for internalvar components that have a dynamic location.
2291
1940319c
TV
22922021-01-08 Tom de Vries <tdevries@suse.de>
2293
2294 PR gdb/26881
2295 * breakpoint.c (create_exception_master_breakpoint_probe)
2296 (create_exception_master_breakpoint_hook): Factor out
2297 of ...
2298 (create_exception_master_breakpoint): ... here. Only try to install
2299 the master exception breakpoint in objfile.debug using the
2300 _Unwind_DebugHook method, if the install using probes in objfile
2301 failed.
2302
e3436813
AB
23032021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2304
2305 * f-lang.c (fortran_value_subarray): Call value_from_component.
2306
e904f56d
MF
23072021-01-07 Mike Frysinger <vapier@gentoo.org>
2308
2309 * remote-sim.c: Include memory-map.h.
2310 (gdbsim_target): Define memory_map override.
2311 (gdbsim_target::memory_map): Define.
2312
959d6a67
TT
23132021-01-07 Tom Tromey <tromey@adacore.com>
2314
2315 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2316
d4813f10
TT
23172021-01-07 Tom Tromey <tromey@adacore.com>
2318
2319 * ada-lang.c (add_component_interval): Start loop using vector's
2320 updated size.
2321
b49180ac
TT
23222021-01-06 Tom Tromey <tromey@adacore.com>
2323
2324 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2325 Do not cast result.
2326 * valarith.c (fixed_point_binop): Handle multiplication
2327 and division specially.
2328 * valops.c (value_to_gdb_mpq): New function.
2329 (value_cast_to_fixed_point): Use it.
2330
55195361
HD
23312021-01-05 Hannes Domani <ssbssa@yahoo.de>
2332
2333 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2334 Call wnoutrefresh instead of tui_win_info::refresh_window.
2335
1b6d4bb2
HD
23362021-01-05 Hannes Domani <ssbssa@yahoo.de>
2337
2338 * tui/tui-source.c (tui_source_window::show_line_number):
2339 Redraw second space after line number.
2340
b5ff370e
HD
23412021-01-05 Hannes Domani <ssbssa@yahoo.de>
2342
2343 PR tui/26927
2344 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2345 Fix source pad size in prefresh.
2346 (tui_source_window_base::show_source_content): Grow source pad
2347 if necessary.
2348
c68ea49f
MF
23492021-01-04 Mike Frysinger <vapier@gentoo.org>
2350
2351 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2352 (bfin_frame_align): Use align_down.
2353
e4ad960a
TV
23542021-01-04 Tom de Vries <tdevries@suse.de>
2355
2356 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2357 terminators that do not terminate anything.
2358
3ec3145c
SM
23592021-01-04 Simon Marchi <simon.marchi@efficios.com>
2360
2361 * debug.c (debug_print_depth): New.
2362 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2363 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2364 * infrun.c (start_step_over): Use
2365 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2366 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2367 INFRUN_SCOPED_DEBUG_START_END.
2368 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2369
e71daf80
SM
23702021-01-04 Simon Marchi <simon.marchi@efficios.com>
2371
2372 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2373
335709bc
SM
23742021-01-04 Simon Marchi <simon.marchi@efficios.com>
2375
2376 * utils.c (vfprintf_unfiltered): Print timestamp only when
2377 previous debug output ended with a newline.
2378
098caef4
LM
23792021-01-04 Luis Machado <luis.machado@linaro.org>
2380
2381 Update all users of trad_frame_saved_reg to use the new member
2382 functions.
2383
2384 Remote all struct keywords from declarations of trad_frame_saved_reg
2385 types, except on forward declarations.
2386
2387 * aarch64-tdep.c: Update.
2388 * alpha-mdebug-tdep.c: Update.
2389 * alpha-tdep.c: Update.
2390 * arc-tdep.c: Update.
2391 * arm-tdep.c: Update.
2392 * avr-tdep.c: Update.
2393 * cris-tdep.c: Update.
2394 * csky-tdep.c: Update.
2395 * frv-tdep.c: Update.
2396 * hppa-linux-tdep.c: Update.
2397 * hppa-tdep.c: Update.
2398 * hppa-tdep.h: Update.
2399 * lm32-tdep.c: Update.
2400 * m32r-linux-tdep.c: Update.
2401 * m32r-tdep.c: Update.
2402 * m68hc11-tdep.c: Update.
2403 * mips-tdep.c: Update.
2404 * moxie-tdep.c: Update.
2405 * riscv-tdep.c: Update.
2406 * rs6000-tdep.c: Update.
2407 * s390-linux-tdep.c: Update.
2408 * s390-tdep.c: Update.
2409 * score-tdep.c: Update.
2410 * sparc-netbsd-tdep.c: Update.
2411 * sparc-sol2-tdep.c: Update.
2412 * sparc64-fbsd-tdep.c: Update.
2413 * sparc64-netbsd-tdep.c: Update.
2414 * sparc64-obsd-tdep.c: Update.
2415 * sparc64-sol2-tdep.c: Update.
2416 * tilegx-tdep.c: Update.
2417 * v850-tdep.c: Update.
2418 * vax-tdep.c: Update.
2419
2420 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2421 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2422
2423 * trad-frame.c: Update.
2424 Remove TF_REG_* enum.
2425 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2426 a trivially-constructible struct.
2427 (trad_frame_reset_saved_regs): Adjust to use member function.
2428 (trad_frame_value_p): Likewise.
2429 (trad_frame_addr_p): Likewise.
2430 (trad_frame_realreg_p): Likewise.
2431 (trad_frame_value_bytes_p): Likewise.
2432 (trad_frame_set_value): Likewise.
2433 (trad_frame_set_realreg): Likewise.
2434 (trad_frame_set_addr): Likewise.
2435 (trad_frame_set_unknown): Likewise.
2436 (trad_frame_set_value_bytes): Likewise.
2437 (trad_frame_get_prev_register): Likewise.
2438 * trad-frame.h: Update.
2439 (trad_frame_saved_reg_kind): New enum.
2440 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2441 <m_kind, m_reg>: New member fields.
2442 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2443 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2444 <is_addr, is_unknown, is_value_bytes>: New member functions.
2445
9898e882
SM
24462021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2447
2448 * target-float.c: Fix typos.
2449
b66b4e65
HD
24502021-01-02 Hannes Domani <ssbssa@yahoo.de>
2451
2452 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2453
b5b5650a
JB
24542021-01-01 Joel Brobecker <brobecker@adacore.com>
2455
2456 * gdbarch.sh: Update copyright year range.
2457
3666a048
JB
24582021-01-01 Joel Brobecker <brobecker@adacore.com>
2459
2460 Update copyright year range in copyright header of all GDB files.
2461
ff7e39b6
JB
24622021-01-01 Joel Brobecker <brobecker@adacore.com>
2463
2464 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2465 to the list of directories to update.
2466
2b47c078
JB
24672021-01-01 Joel Brobecker <brobecker@adacore.com>
2468
2469 * top.c (print_gdb_version): Update copyright year.
2470
476923f1 24712021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2472
476923f1 2473 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2474
476923f1 2475For older changes see ChangeLog-2020.
c906108c
SS
2476\f
2477Local Variables:
2478mode: change-log
2479left-margin: 8
2480fill-column: 74
2481version-control: never
57da7796 2482coding: utf-8
c906108c 2483End: