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