]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Introduce var_entry_value_operation
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b5cc3923
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * expop.h (class var_entry_value_operation): New.
4 * eval.c (eval_op_var_entry_value): No longer static.
5
0c8effa3
TT
62021-03-08 Tom Tromey <tom@tromey.com>
7
8 * expression.h (class operation) <set_outermost>: New method.
9 * expop.h (class var_msym_value_operation): New.
10 * eval.c (eval_op_var_msym_value): No longer static.
11 (var_msym_value_operation::evaluate_for_address)
12 (var_msym_value_operation::evaluate_for_sizeof)
13 (var_msym_value_operation::evaluate_for_cast): New methods.
14 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
15 method.
16
d336c29e
TT
172021-03-08 Tom Tromey <tom@tromey.com>
18
19 * expop.h (class long_const_operation): New.
20 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
21
d5ab122c
TT
222021-03-08 Tom Tromey <tom@tromey.com>
23
24 * expop.h (class scope_operation): New.
25 * eval.c (eval_op_scope): No longer static.
26 (scope_operation::evaluate_for_address): New method.
27 * ax-gdb.c (scope_operation::do_generate_ax): New method.
28
cae26a0c
TT
292021-03-08 Tom Tromey <tom@tromey.com>
30
31 * expprint.c (float_const_operation::dump): New method.
32 * expop.h (float_data): New typedef.
33 (class float_const_operation): New.
34
75f9892d
TT
352021-03-08 Tom Tromey <tom@tromey.com>
36
37 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
38 * ax-gdb.c (gen_expr_binop): New function.
39 (gen_expr_structop): Likewise.
40
de401988
TT
412021-03-08 Tom Tromey <tom@tromey.com>
42
43 * expprint.c (expr::dump_for_expression): New functions.
44 * expop.h (dump_for_expression): New overloads.
45 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
46 Update.
47
e2803273
TT
482021-03-08 Tom Tromey <tom@tromey.com>
49
50 * expression.h (expr::operation): New class.
51 (expr::make_operation): New function.
52 (expr::operation_up): New typedef.
53 * expop.h: New file.
54 * eval.c (operation::evaluate_for_cast)
55 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
56 New methods.
57 * ax-gdb.c (operation::generate_ax): New method.
58
e18c58f2
TT
592021-03-08 Tom Tromey <tom@tromey.com>
60
61 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
62 (gen_expr_binop_rest): New overload.
63
c0d7ed8c
TT
642021-03-08 Tom Tromey <tom@tromey.com>
65
66 * eval.c (eval_multi_subscript): New function.
67 (evaluate_subexp_standard): Use it.
68
dd5fd283
TT
692021-03-08 Tom Tromey <tom@tromey.com>
70
71 * ada-lang.c (ada_binop_exp): New function.
72 (ada_evaluate_subexp): Use it.
73
3848abd6
TT
742021-03-08 Tom Tromey <tom@tromey.com>
75
76 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
77 parameters.
78 (ada_evaluate_subexp): Use it.
79
38dc70cf
TT
802021-03-08 Tom Tromey <tom@tromey.com>
81
82 * ada-lang.c (ada_binop_minmax): New function.
83 (ada_evaluate_subexp): Use it.
84
b84564fc
TT
852021-03-08 Tom Tromey <tom@tromey.com>
86
87 * ada-lang.c (ada_unop_atr): New function.
88 (ada_evaluate_subexp): Use it.
89
b467efaa
TT
902021-03-08 Tom Tromey <tom@tromey.com>
91
92 * ada-lang.c (ada_binop_in_bounds): New function.
93 (ada_evaluate_subexp): Use it.
94
5ce19db8
TT
952021-03-08 Tom Tromey <tom@tromey.com>
96
97 * ada-lang.c (ada_ternop_slice): New function.
98 (ada_evaluate_subexp): Use it.
99
214b13ac
TT
1002021-03-08 Tom Tromey <tom@tromey.com>
101
102 * ada-lang.c (ada_equal_binop): New function.
103 (ada_evaluate_subexp): Use it.
104
faa1dfd7
TT
1052021-03-08 Tom Tromey <tom@tromey.com>
106
107 * ada-lang.c (ada_mult_binop): New function.
108 (ada_evaluate_subexp): Use it.
109
d05e24e6
TT
1102021-03-08 Tom Tromey <tom@tromey.com>
111
112 * ada-lang.c (ada_abs): New function.
113 (ada_evaluate_subexp): Use it.
114
68c75735
TT
1152021-03-08 Tom Tromey <tom@tromey.com>
116
117 * ada-lang.c (ada_atr_size): New function.
118 (ada_evaluate_subexp): Use it.
119
020dbabe
TT
1202021-03-08 Tom Tromey <tom@tromey.com>
121
122 * ada-lang.c (ada_atr_tag): New function.
123 (ada_evaluate_subexp): Use it.
124
7efc87ff
TT
1252021-03-08 Tom Tromey <tom@tromey.com>
126
127 * ada-lang.c (ada_unop_in_range): New function.
128 (ada_evaluate_subexp): Use it.
129
82390ab8
TT
1302021-03-08 Tom Tromey <tom@tromey.com>
131
132 * ada-lang.c (ada_unop_neg): New function.
133 (ada_evaluate_subexp): Use it.
134
62d4bd94
TT
1352021-03-08 Tom Tromey <tom@tromey.com>
136
137 * ada-lang.c (eval_ternop_in_range): New function.
138 (ada_evaluate_subexp): Use it.
139
3634f669
TT
1402021-03-08 Tom Tromey <tom@tromey.com>
141
142 * opencl-lang.c (eval_opencl_assign): New function.
143 (evaluate_subexp_opencl): Use it.
144
5e80600e
TT
1452021-03-08 Tom Tromey <tom@tromey.com>
146
147 * eval.c (eval_op_objc_msgcall): New function.
148 (evaluate_subexp_standard): Use it.
149
fb5ba2ab
TT
1502021-03-08 Tom Tromey <tom@tromey.com>
151
152 * eval.c (eval_binop_assign_modify): New function.
153 (evaluate_subexp_standard): Use it.
154
a49881f7
TT
1552021-03-08 Tom Tromey <tom@tromey.com>
156
157 * m2-lang.c (eval_op_m2_subscript): New function.
158 (evaluate_subexp_modula2): Use it.
159
41bdced5
TT
1602021-03-08 Tom Tromey <tom@tromey.com>
161
162 * m2-lang.c (eval_op_m2_high): New function.
163 (evaluate_subexp_modula2): Use it.
164
13ea014a
TT
1652021-03-08 Tom Tromey <tom@tromey.com>
166
167 * eval.c (evaluate_subexp_for_address_base): New function.
168 (evaluate_subexp_for_address): Use it.
169 (evaluate_subexp_for_sizeof_base): New function.
170 (evaluate_subexp_for_sizeof): Use it.
171
1fa41fc7
TT
1722021-03-08 Tom Tromey <tom@tromey.com>
173
174 * rust-lang.c (eval_op_rust_structop): New function.
175 (rust_evaluate_subexp): Use it.
176
575cae23
TT
1772021-03-08 Tom Tromey <tom@tromey.com>
178
179 * rust-lang.c (eval_op_rust_struct_anon): New function.
180 (rust_evaluate_subexp): Use it.
181
05104233
TT
1822021-03-08 Tom Tromey <tom@tromey.com>
183
184 * rust-lang.c (eval_op_rust_array): New function.
185 (rust_evaluate_subexp): Use it.
186
6fa9831f
TT
1872021-03-08 Tom Tromey <tom@tromey.com>
188
189 * rust-lang.c (eval_op_rust_complement): New function.
190 (rust_evaluate_subexp): Use it.
191
d123f9e4
TT
1922021-03-08 Tom Tromey <tom@tromey.com>
193
194 * rust-lang.c (eval_op_rust_ind): New function.
195 (rust_evaluate_subexp): Use it.
196
984af2cb
TT
1972021-03-08 Tom Tromey <tom@tromey.com>
198
199 * rust-lang.c (rust_subscript): Change parameters.
200 (rust_evaluate_subexp): Update.
201
d148f803
TT
2022021-03-08 Tom Tromey <tom@tromey.com>
203
204 * rust-lang.c (rust_range): Change parameters.
205 (rust_evaluate_subexp): Update.
206
9cbd1c20
TT
2072021-03-08 Tom Tromey <tom@tromey.com>
208
209 * f-lang.c (eval_op_f_allocated): New function.
210 (evaluate_subexp_f): Use it.
211
3c18c49c
TT
2122021-03-08 Tom Tromey <tom@tromey.com>
213
214 * f-lang.c (fortran_require_array): New function.
215 (evaluate_subexp_f): Use it.
216
216f6fcb
TT
2172021-03-08 Tom Tromey <tom@tromey.com>
218
219 * f-lang.c (eval_op_f_kind): New function.
220 (evaluate_subexp_f): Use it.
221
00f2db6f
TT
2222021-03-08 Tom Tromey <tom@tromey.com>
223
224 * f-lang.c (eval_op_f_cmplx): New function.
225 (evaluate_subexp_f): Use it.
226
93b2b5fa
TT
2272021-03-08 Tom Tromey <tom@tromey.com>
228
229 * f-lang.c (eval_op_f_modulo): New function.
230 (evaluate_subexp_f): Use it.
231
9f1a1f3c
TT
2322021-03-08 Tom Tromey <tom@tromey.com>
233
234 * f-lang.c (eval_op_f_floor): New function.
235 (evaluate_subexp_f): Use it.
236
3dc41f3c
TT
2372021-03-08 Tom Tromey <tom@tromey.com>
238
239 * f-lang.c (eval_op_f_ceil): New function.
240 (evaluate_subexp_f): Use it.
241
e08109f2
TT
2422021-03-08 Tom Tromey <tom@tromey.com>
243
244 * f-lang.c (eval_op_f_mod): New function.
245 (evaluate_subexp_f): Use it.
246
cc05c68e
TT
2472021-03-08 Tom Tromey <tom@tromey.com>
248
249 * f-lang.c (eval_op_f_abs): New function.
250 (evaluate_subexp_f): Use it.
251
aec95807
TT
2522021-03-08 Tom Tromey <tom@tromey.com>
253
254 * eval.c (eval_op_type): New function.
255 (evaluate_subexp_standard): Use it.
256
a220ead5
TT
2572021-03-08 Tom Tromey <tom@tromey.com>
258
259 * eval.c (eval_op_postdec): New function.
260 (evaluate_subexp_standard): Use it.
261
abffe116
TT
2622021-03-08 Tom Tromey <tom@tromey.com>
263
264 * eval.c (eval_op_postinc): New function.
265 (evaluate_subexp_standard): Use it.
266
9e1361b7
TT
2672021-03-08 Tom Tromey <tom@tromey.com>
268
269 * eval.c (eval_op_predec): New file.
270 (evaluate_subexp_standard): Use it.
271
00f50884
TT
2722021-03-08 Tom Tromey <tom@tromey.com>
273
274 * eval.c (eval_op_preinc): New function.
275 (evaluate_subexp_standard): Use it.
276
3aef2a07
TT
2772021-03-08 Tom Tromey <tom@tromey.com>
278
279 * eval.c (eval_op_memval): New function.
280 (evaluate_subexp_standard): Use it.
281
acee9468
TT
2822021-03-08 Tom Tromey <tom@tromey.com>
283
284 * eval.c (eval_op_alignof): New function.
285 (evaluate_subexp_standard): Use it.
286
786f70ee
TT
2872021-03-08 Tom Tromey <tom@tromey.com>
288
289 * eval.c (eval_op_ind): New function.
290 (evaluate_subexp_standard): Use it.
291
24338fb9
TT
2922021-03-08 Tom Tromey <tom@tromey.com>
293
294 * eval.c (eval_op_lognot): New function.
295 (evaluate_subexp_standard): Use it.
296
1f09ec81
TT
2972021-03-08 Tom Tromey <tom@tromey.com>
298
299 * eval.c (eval_op_complement): New function.
300 (evaluate_subexp_standard): Use it.
301
606d105f
TT
3022021-03-08 Tom Tromey <tom@tromey.com>
303
304 * eval.c (eval_op_neg): New function.
305 (evaluate_subexp_standard): Use it.
306
39f288be
TT
3072021-03-08 Tom Tromey <tom@tromey.com>
308
309 * eval.c (eval_op_plus): New function.
310 (evaluate_subexp_standard): Use it.
311
eed70b1c
TT
3122021-03-08 Tom Tromey <tom@tromey.com>
313
314 * eval.c (eval_op_repeat): New function.
315 (evaluate_subexp_standard): Use it.
316
60cdd487
TT
3172021-03-08 Tom Tromey <tom@tromey.com>
318
319 * eval.c (eval_op_leq): New function.
320 (evaluate_subexp_standard): Use it.
321
96e3efd9
TT
3222021-03-08 Tom Tromey <tom@tromey.com>
323
324 * eval.c (eval_op_geq): New function.
325 (evaluate_subexp_standard): Use it.
326
1f78d732
TT
3272021-03-08 Tom Tromey <tom@tromey.com>
328
329 * eval.c (eval_op_gtr): New function.
330 (evaluate_subexp_standard): Use it.
331
6cad1349
TT
3322021-03-08 Tom Tromey <tom@tromey.com>
333
334 * eval.c (eval_op_less): New function.
335 (evaluate_subexp_standard): Use it.
336
1fcb3559
TT
3372021-03-08 Tom Tromey <tom@tromey.com>
338
339 * eval.c (eval_op_notequal): New function.
340 (evaluate_subexp_standard): Use it.
341
0cc96de8
TT
3422021-03-08 Tom Tromey <tom@tromey.com>
343
344 * eval.c (eval_op_equal): New function.
345 (evaluate_subexp_standard): Use it.
346
288d26bc
TT
3472021-03-08 Tom Tromey <tom@tromey.com>
348
349 * eval.c (eval_op_subscript): New function.
350 (evaluate_subexp_standard): Use it.
351
7cdcdd02
TT
3522021-03-08 Tom Tromey <tom@tromey.com>
353
354 * eval.c (eval_op_binary): New function.
355 (evaluate_subexp_standard): Use it.
356
d9790e22
TT
3572021-03-08 Tom Tromey <tom@tromey.com>
358
359 * eval.c (eval_op_sub): New function.
360 (evaluate_subexp_standard): Use it.
361
aedaf9ac
TT
3622021-03-08 Tom Tromey <tom@tromey.com>
363
364 * eval.c (eval_op_add): New function.
365 (evaluate_subexp_standard): Use it.
366
b7a96ed2
TT
3672021-03-08 Tom Tromey <tom@tromey.com>
368
369 * eval.c (eval_op_member): New function.
370 (evaluate_subexp_standard): Use it.
371
fb461aa3
TT
3722021-03-08 Tom Tromey <tom@tromey.com>
373
374 * eval.c (eval_op_structop_ptr): New function.
375 (evaluate_subexp_standard): Use it.
376
3e96c4fc
TT
3772021-03-08 Tom Tromey <tom@tromey.com>
378
379 * eval.c (eval_op_structop_struct): New function.
380 (evaluate_subexp_standard): Use it.
381
f960a617
TT
3822021-03-08 Tom Tromey <tom@tromey.com>
383
384 * eval.c (eval_op_ternop): New function.
385 (evaluate_subexp_standard): Use it.
386
5c2f201e
TT
3872021-03-08 Tom Tromey <tom@tromey.com>
388
389 * eval.c (eval_op_concat): New function.
390 (evaluate_subexp_standard): Use it.
391
f871bae1
TT
3922021-03-08 Tom Tromey <tom@tromey.com>
393
394 * eval.c (eval_op_objc_selector): New function.
395 (evaluate_subexp_standard): Use it.
396
14a1c64a
TT
3972021-03-08 Tom Tromey <tom@tromey.com>
398
399 * eval.c (eval_op_string): New function.
400 (evaluate_subexp_standard): Use it.
401
ffff730b
TT
4022021-03-08 Tom Tromey <tom@tromey.com>
403
404 * eval.c (eval_op_register): New function.
405 (evaluate_subexp_standard): Use it.
406
9b1d8af6
TT
4072021-03-08 Tom Tromey <tom@tromey.com>
408
409 * eval.c (eval_op_func_static_var): New function.
410 (evaluate_subexp_standard): Use it.
411
c0df9289
TT
4122021-03-08 Tom Tromey <tom@tromey.com>
413
414 * eval.c (eval_op_var_msym_value): New function.
415 (evaluate_subexp_standard): Use it.
416
50b98adc
TT
4172021-03-08 Tom Tromey <tom@tromey.com>
418
419 * eval.c (eval_op_var_entry_value): New function.
420 (evaluate_subexp_standard): Use it.
421
ea2d29f7
TT
4222021-03-08 Tom Tromey <tom@tromey.com>
423
424 * eval.c (eval_op_scope): New function.
425 (evaluate_subexp_standard): Use it.
426
01573d73
TT
4272021-03-06 Chernov Sergey <klen_s@mail.ru>
428
429 PR gdb/27528:
430 * ada-lang.c (ada_fold_name): Use gdb::to_string.
431
9938d15a
TT
4322021-03-06 Tom Tromey <tom@tromey.com>
433
434 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
435 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
436 * dwarf2/read.c (dwarf2_elf_names): No longer static.
437 (locate_dwz_sections, dwz_search_other_debugdirs)
438 (dwarf2_get_dwz_file): Move to dwz.c.
439 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
440 read.h.
441 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
442 (dwarf2_get_dwz_file): Move from read.c.
443
18035655
TT
4442021-03-06 Tom Tromey <tom@tromey.com>
445
446 * debuginfod-support.h: Include scoped_fd.h.
447
a7308ce0
TT
4482021-03-06 Tom Tromey <tom@tromey.com>
449
450 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
451 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
452 (get_abbrev_section_for_cu, read_attribute_value)
453 (get_debug_line_section): Update.
454 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
455
fbedd546
TT
4562021-03-06 Tom Tromey <tom@tromey.com>
457
458 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
459 method.
460 * dwarf2/read.c (section_is_p): Remove.
461 (dwarf2_per_bfd::locate_sections)
462 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
463 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
464 (dwarf2_locate_common_dwp_sections)
465 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
466 Update.
467
c2a62a3d
TT
4682021-03-06 Tom Tromey <tom@tromey.com>
469
470 * xcoffread.c: Include sect-names.h.
471 * symfile.h (struct dwarf2_section_names, struct
472 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
473 * dwarf2/sect-names.h: New file, from symfile.h.
474 * dwarf2/read.c: Include sect-names.h.
475
4444f407
TT
4762021-03-06 Tom Tromey <tom@tromey.com>
477
478 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
479 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
480 (abbrev_table::read): Update.
481 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
482 (struct abbrev_info): Reformat.
483 <attrs>: Now an array.
484 (struct abbrev_table) <alloc_abbrev>: Remove.
485
dd99cf0c
WP
4862021-03-06 Weimin Pan <weimin.pan@oracle.com>
487
488 * ctfread.c (ctf_psymtab_add_enums): New function.
489 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
490
844be3f2
WP
4912021-03-06 Weimin Pan <weimin.pan@oracle.com>
492
493 * ctfread.c (read_func_kind_type): Set up function arguments.
494
b2668f28
AB
4952021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
496 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
499 includes.
500 (riscv_csrset): New static global.
501 (riscv_update_csrmap): New function.
502 (riscv_iterate_over_regset_sections): Process CSRs.
503
d782d24b
AB
5042021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
505
506 * riscv-tdep.c (riscv_feature_name_csr): Define.
507 (riscv_feature_name_cpu): Define.
508 (riscv_feature_name_fpu): Define.
509 (riscv_feature_name_virtual): Define.
510 (riscv_xreg_feature): Use riscv_feature_name_cpu.
511 (riscv_freg_feature): Use riscv_feature_name_fpu.
512 (riscv_virtual_feature): Use riscv_feature_name_virtual.
513 (riscv_csr_feature): Use riscv_feature_name_csr.
514 * riscv-tdep.h (riscv_feature_name_csr): Declare.
515
fb8f3fc0
AB
5162021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
517 Craig Blackmore <craig.blackmore@embecosm.com>
518
519 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
520 (ALLDEPFILES): Add riscv-none-tdep.c.
521 * configure: Regenerate.
522 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
523 support.
524 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
525 * elf-none-tdep.c: New file.
526 * elf-none-tdep.h: New file.
527 * riscv-none-tdep.c: New file.
528
95ce627a
AB
5292021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
530 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * corelow.c: Add 'xml-tdesc.h' include.
533 (core_target::read_description): Load the target description from
534 the core file when possible.
535 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
536 note.
537 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
538 (gcore_elf_make_tdesc_note): New function.
539 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
540 * linux-tdep.c (linux_make_corefile_notes): Add target description
541 note.
542
f3a5df7b
AB
5432021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * Makefile.in (SFILES): Add gcore-elf.c.
546 (HFILES_NO_SRCDIR): Add gcore-elf.h
547 * configure: Regenerate.
548 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
549 support.
550 * fbsd-tdep.c: Add 'gcore-elf.h' include.
551 (struct fbsd_collect_regset_section_cb_data): Delete.
552 (fbsd_collect_regset_section_cb): Delete.
553 (fbsd_collect_thread_registers): Delete.
554 (struct fbsd_corefile_thread_data): Delete.
555 (fbsd_corefile_thread): Delete.
556 (fbsd_make_corefile_notes): Call
557 gcore_elf_build_thread_register_notes instead of the now deleted
558 FreeBSD code.
559 * gcore-elf.c: New file, the content was moved here from
560 linux-tdep.c, functions were renamed and given minor cleanup.
561 * gcore-elf.h: New file.
562 * gcore.c (gcore_find_signalled_thread): Moved here from
563 linux-tdep.c and given a new name. Minor cleanups.
564 * gcore.h (gcore_find_signalled_thread): Declare.
565 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
566 (struct linux_collect_regset_section_cb_data): Delete.
567 (linux_collect_regset_section_cb): Delete.
568 (linux_collect_thread_registers): Delete.
569 (linux_corefile_thread): Call
570 gcore_elf_build_thread_register_notes.
571 (find_signalled_thread): Delete.
572 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
573
d1e93af6
SM
5742021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
575
576 PR gdb/27147
577 * sparc-nat.h (sparc_fetch_inferior_registers): Add
578 process_stratum_target parameter,
579 sparc_store_inferior_registers): update callers.
580 * sparc-nat.c (sparc_fetch_inferior_registers,
581 sparc_store_inferior_registers): Add process_stratum_target
582 parameter. Switch current thread before calling
583 sparc_supply_gregset / sparc_collect_rwindow.
584 (sparc_store_inferior_registers): Likewise.
585 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
586 (sparc32obsd_collect_uthread): Likewise.
587 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
588 Add assertion.
589 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
590 sparc64obsd_supply_uthread): Add assertion.
591
1178743e
TT
5922021-03-04 Tom Tromey <tromey@adacore.com>
593
594 * ada-lang.c (struct match_data) <found_sym>: Now bool.
595 (aux_add_nonlocal_symbols): Update.
596 (ada_add_block_symbols): Change "found_sym" to bool.
597
1bfa81ac
TT
5982021-03-03 Tom Tromey <tromey@adacore.com>
599
600 * ada-lang.c (ada_resolve_function): Update comment.
601 (is_nonfunction, add_symbols_from_enclosing_procs)
602 (remove_extra_symbols): Likewise.
603 (struct match_data): Add constructor, initializers.
604 (add_nonlocal_symbols): Remove memset.
605 (aux_add_nonlocal_symbols): Update comment.
606 (ada_add_block_renamings, add_nonlocal_symbols)
607 (ada_add_all_symbols): Likewise.
608 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
609
bbcdf9ab
TT
6102021-03-02 Tom Tromey <tromey@adacore.com>
611
612 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
613 (cast_to_gnat_encoded_fixed_point_type): Remove.
614 (ada_value_cast, ada_evaluate_subexp): Update.
615 (gnat_encoded_fixed_point_type_info)
616 (ada_is_gnat_encoded_fixed_point_type)
617 (gnat_encoded_fixed_point_delta)
618 (gnat_encoded_fixed_point_scaling_factor): Remove.
619 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
620 (gnat_encoded_fixed_point_delta)
621 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
622 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
623 (ada_print_type): Update.
624 * ada-valprint.c (ada_value_print_num): Update.
625 * dwarf2/read.c (ada_get_gnat_encoded_number)
626 (ada_get_gnat_encoded_ratio): New functions.
627 (finish_fixed_point_type): Use them. Add parameters.
628 (GNAT_FIXED_POINT_SUFFIX): New define.
629 (gnat_encoded_fixed_point_type_info): New function.
630 (read_base_type): Handle gnat encodings.
631
5f9febe0
TT
6322021-03-02 Tom Tromey <tromey@adacore.com>
633
634 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
635 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
636 std::string.
637 (GROW_VECT): Remove.
638 (grow_vect): Remove.
639
d1183b06
TT
6402021-03-02 Tom Tromey <tromey@adacore.com>
641
642 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
643 * ada-lang.c (resolve_subexp): Update.
644 (ada_resolve_function): Accept a vector.
645 (is_nonfunction, add_defn_to_vec)
646 (add_symbols_from_enclosing_procs): Likewise.
647 (num_defns_collected, defns_collected): Remove.
648 (remove_extra_symbols): Return a vector.
649 (remove_irrelevant_renamings): Return void.
650 (ada_add_local_symbols): Accept a vector.
651 (struct match_data) <obstackp>: Remove.
652 <resultp>: New member.
653 (aux_add_nonlocal_symbols): Update.
654 (ada_add_block_renamings, add_nonlocal_symbols)
655 (ada_add_all_symbols): Accept a vector.
656 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
657 vector.
658 (ada_lookup_symbol): Update.
659 (ada_add_block_symbols): Accept a vector.
660 (get_var_value, iterate_over_symbols): Update.
661 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
662 Update.
663
886d459f
TT
6642021-03-02 Tom Tromey <tromey@adacore.com>
665
666 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
667
bdcccc56
TT
6682021-03-02 Tom Tromey <tromey@adacore.com>
669
670 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
671 auto_obstack.
672 <root>: Initialize.
673 (ada_pspace_data): Remove destructor.
674 <sym_cache>: Now a unique_ptr.
675 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
676 (ada_get_symbol_cache): Use 'new'.
677 (ada_clear_symbol_cache): Rewrite.
678
1228719f
TT
6792021-03-02 Tom Tromey <tromey@adacore.com>
680
681 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
682 is null.
683
bb3a4efe
LS
6842021-02-27 Lancelot Six <lsix@lancelotsix.com>
685
686 PR gdb/27393
687 * source.c (add_path): Skip empty dirnames.
688
26b43ca6 6892021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
690
691 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
692 include order for <sys/ptrace.h> and <asm/ptrace.h>.
693
dffdd8b5
SM
6942021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
695
696 PR gdb/26861
697 * target.c (target_mourn_inferior): Only compare pids in
698 target_mourn_inferior.
699
64d38fdd
JM
7002021-02-25 Jan Matyas <jmatyas@codasip.com>
701
702 PR gdb/26819
703 * remote.c (remote_target::start_remote): Ensure the single
704 thread, automatically added for remote targets without the
705 concept of threading, is initially in set to the "resumed"
706 state.
707 * remote.c (remote_target::add_current_inferior_and_thread):
708 Add return value - return the main thread.
709
2450ad54
JV
7102021-02-25 Jan Vrany <jan.vrany@labware.com>
711
712 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
713 (mi_tsv_created): Likewise.
714 (mi_tsv_deleted): Likewise.
715
30c80d88
TV
7162021-02-25 Tom de Vries <tdevries@suse.de>
717
718 PR symtab/27354
719 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
720 section_kind for &dwo_file->sections.info.
721
68337b8b
AB
7222021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 PR fortran/26155
725 * f-lang.c (fortran_argument_convert): Delete declaration.
726 (fortran_prepare_argument): New function.
727 (evaluate_subexp_f): Move logic to new function
728 fortran_prepare_argument.
729
faeb9f13
AB
7302021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * f-exp.y (f77_keywords): Add 'associated'.
733 * f-lang.c (fortran_associated): New function.
734 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
735 (operator_length_f): Likewise.
736 (print_unop_or_binop_subexp_f): New function.
737 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
738 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
739 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
740 (operator_check_f): Likewise.
741 * std-operator.def: Add FORTRAN_ASSOCIATED.
742
170f4b23
AB
7432021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
744
745 * f-exp.y (fortran_operators): Add ".xor.".
746
aa659cfa
TV
7472021-02-24 Tom de Vries <tdevries@suse.de>
748
749 PR symtab/27336
750 * dwarf2/attribute.c (attribute::form_is_signed): New function
751 factored out of ...
752 * dwarf2/attribute.h (attribute::as_signed): ... here.
753 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
754 (attribute::form_is_signed): Declare.
755 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
756 for DW_AT_decl_file.
757
268c77c1
KB
7582021-02-24 Kevin Buettner <kevinb@redhat.com>
759
760 * nat/aarch64-linux-hw-point.c: Add comment regarding include
761 order for <sys/ptrace.h> and <asm/ptrace.h>.
762
665af52e
KB
7632021-02-24 Kevin Buettner <kevinb@redhat.com>
764
765 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
766 <sys/ptrace.h>.
767
dd80d750
AB
7682021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * exec.c (set_section_command): Move variable declarations into
771 the function body, and use std::string instead of a fixed size
772 buffer.
773
336aa7b7
AB
7742021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * exec.c (exec_target::get_section_table): Delete member function.
777 (section_table_read_available_memory): Use current_top_target, not
778 just the exec_ops target.
779 * target-delegates.c: Regenerate.
780 * target.c (default_get_section_table): New function.
781 * target.h (target_ops::get_section_table): Change default
782 behaviour to call default_get_section_table.
783 (default_get_section_table): Declare.
784
02f7d26b
AB
7852021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
786
787 * exec.c (exec_target::close): Call new clear_target_sections
788 function.
789 (program_space::add_target_sections): Update name of member
790 variable.
791 (program_space::add_target_sections): Update name of member
792 variable.
793 (program_space::remove_target_sections): Likewise.
794 (exec_one_fork): Use new target_sections member function.
795 (exec_target::get_section_table): Likewise.
796 (exec_target::files_info): Likewise.
797 (set_section_command): Likewise.
798 (exec_set_section_address): Likewise.
799 (exec_target::has_memory): Use new target_sections member
800 function.
801 * progspace.h (program_space::clear_target_sections): New member
802 function.
803 (program_space::target_sections): Rename member variable to
804 m_target_sections, replace with a new member function.
805 (program_space::m_target_sections): New member variable.
806 * solib-dsbt.c (scan_dyntag): Use new member function.
807 * solib-svr4.c (scan_dyntag): Likewise.
808
19cf757a
AB
8092021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
810
811 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
812 return type const.
813 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
814 (section_table_read_available_memory): Make local const.
815 (exec_target::xfer_partial): Make local const.
816 (print_section_info): Make parameter const.
817 * gdb/exec.h (print_section_info): Likewise.
818 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
819 const.
820 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
821 Likewise.
822 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
823 Likewise.
824 * gdb/s390-tdep.c (s390_load): Likewise.
825 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
826 * gdb/solib-svr4.c (scan_dyntag): Likewise.
827 * gdb/target-debug.h (target_debug_print_target_section_table_p):
828 Rename to...
829 (target_debug_print_const_target_section_table_p): ...this.
830 * gdb/target-delegates.c: Regenerate.
831 * gdb/target.c (target_get_section_table): Make return type const.
832 (target_section_by_addr): Likewise. Also make some locals const.
833 (memory_xfer_partial_1): Make some locals const.
834 * gdb/target.h (struct target_ops) <get_section_table>: Make
835 return type const.
836 (target_section_by_addr): Likewise.
837 (target_get_section_table): Likewise.
838
02a79309
AB
8392021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
840
841 * NEWS: Mention new 'maint info target-sections' command.
842 * maint.c (maintenance_info_target_sections): New function.
843 (_initialize_maint_cmds): Register new command.
844
895b7b4e
AB
8452021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
848 (riscv_features_from_bfd): ...this. Change parameter type to
849 'bfd*', and update as required.
850 (riscv_find_default_target_description): Update call to
851 riscv_features_from_bfd. Select a default xlen based on
852 info.bfd_arch_info.
853 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
854
bc3c0632
AB
8552021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
856
857 * eval.c (evaluate_subexp_standard): Call value_ind for points to
858 dynamic types in UNOP_IND.
859
08ac5771
SM
8602021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
861
862 PR gdb/26828
863 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
864 Instantiate queue.
865 (~dwarf2_queue_guard): Clear queue.
866 (queue_comp_unit): Assert that queue is
867 instantiated.
868 (process_queue): Adjust.
869 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
870
616c069a
SM
8712021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
872
873 PR gdb/26828
874 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
875 to decide whether or not to enqueue it for expansion.
876 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
877 after calling maybe_queue_comp_unit.
878
897608ed
SM
8792021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
880
881 * linux-nat.c (linux_nat_filter_event): Return void.
882
15908a11
TT
8832021-02-22 Tom Tromey <tromey@adacore.com>
884
885 * solib-svr4.c (enable_break): Update.
886 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
887 type.
888 (target_bfd_reopen): Change parameter type.
889 * bfd-target.h (target_bfd_reopen): Change parameter type.
890
f53fc427
SM
8912021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
892
893 * thread.c (add_thread_silent): Add assert.
894 (find_thread_ptid): Add assert.
895
de146e19
SM
8962021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
897
898 PR gdb/27435
899 * inf-ptrace.c (struct target_unpusher): Move to target.h.
900 (target_unpush_up): Likewise.
901 * procfs.c (procfs_target::attach): Push target early. Use
902 target_unpush_up to unpush target in case of error.
903 * target.h (struct target_unpusher): Move here.
904 (target_unpush_up): Likewise.
905
8488c357
KB
9062021-02-19 Kevin Buettner <kevinb@redhat.com>
907
908 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
909 (which in turn includes <gnulib/config.h>) before include
910 of <signal.h>.
911
5a9f5403
NC
9122021-02-19 Nelson Chu <nelson.chu@sifive.com>
913
914 PR 27158
915 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
916 (decode_j_type_insn): Likewise.
917 (decode_cj_type_insn): Likewise.
918 (decode_b_type_insn): Likewise.
919 (decode): Likewise.
920
26f53cd3
TT
9212021-02-18 Tom Tromey <tom@tromey.com>
922
923 * expression.h (struct expression) <evaluate>: Declare method.
924 * eval.c (evaluate_subexp): Simplify.
925 (expression::evaluate): New method.
926 (evaluate_expression, evaluate_type): Use expression::evaluate.
927
6a780b67
KB
9282021-02-17 Kevin Buettner <kevinb@redhat.com>
929
930 * ada-lang.c (ada_fold_name): Check for non-empty string prior
931 to accessing it.
932 (ada_lookup_name_info): Likewise.
933
adeab0c5
MF
9342021-02-13 Mike Frysinger <vapier@gentoo.org>
935
936 * aclocal.m4: Regenerate.
937
089436f7
TV
9382021-02-12 Tom de Vries <tdevries@suse.de>
939
940 PR threads/26228
941 * linux-nat.c (lin_thread_get_thread_signals): Remove.
942 (lin_thread_signals): New static var.
943 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
944 New function.
945 * linux-nat.h (lin_thread_get_thread_signals): Remove.
946 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
947 Declare.
948 * linux-thread-db.c (check_thread_signals): Use
949 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
950
96df3e28
AB
9512021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
952
953 * f-exp.y (f77_keywords): Add allocated.
954 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
955 (operator_length_f): Likewise.
956 (print_subexp_f): Likewise.
957 (dump_subexp_body_f): Likewise.
958 (operator_check_f): Likewise.
959 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
960
05f68f52
TV
9612021-02-11 Tom de Vries <tdevries@suse.de>
962
963 PR symtab/27353
964 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
965 Return true for DW_FORM_strx.
966
b260f8d6
TT
9672021-02-11 Tom Tromey <tromey@adacore.com>
968
969 PR gdb/27383:
970 * parse.c (write_exp_symbol_reference): Write sym.block.
971
bf3386f0
AB
9722021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * NEWS: Mention changes to 'maint info sections'.
975 * maint.c (match_substring): Return a bool, fix whitespace issue.
976 (struct single_bfd_flag_info): New struct.
977 (bfd_flag_info): New static global.
978 (match_bfd_flags): Return a bool, use bfd_flag_info.
979 (print_bfd_flags): Use bfd_flag_info.
980 (maint_print_section_info): Delete trailing whitespace.
981 (struct maint_info_sections_opts): New struct.
982 (maint_info_sections_option_defs): New static global.
983 (maint_info_sections_completer): New function.
984 (maintenance_info_sections): Use option parsing mechanism.
985 (_initialize_maint_cmds): Update command help text for 'maint info
986 sections' and register a command completer.
987
4790db14
AB
9882021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
989
990 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
991 functionality merged into...
992 (maint_print_all_sections): ...this new function.
993 (maintenance_info_sections): Make use of maint_print_all_sections,
994 allow all objects to be printed even where there's no executable.
995
1db66e34
AB
9962021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
997
998 * breakpoint.c (resolve_sal_pc): Make use of
999 bound_minimal_symbol::obj_section.
1000 * maint.c (maintenance_translate_address): Likewise.
1001 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1002 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1003 member function.
1004 * printcmd.c (info_address_command): Make use of
1005 bound_minimal_symbol::obj_section.
1006
18b8df43
AM
10072021-02-11 Alan Modra <amodra@gmail.com>
1008
1009 * arm-symbian-tdep.c: Delete.
1010 * NEWS: Mention arm-symbian removal.
1011 * Makefile.in: Remove arm-symbian-tdep entries.
1012 * configure.tgt: Remove arm*-*-symbianelf*.
1013 * doc/gdb.texinfo: Remove mention of SymbianOS.
1014 * osabi.c (gdb_osabi_names): Remove "Symbian".
1015 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1016 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1017 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1018 handling.
1019 * testsuite/gdb.base/dup-sect.exp: Likewise.
1020 * testsuite/gdb.base/long_long.exp: Likewise.
1021 * testsuite/gdb.base/solib-weak.exp: Likewise.
1022 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1023 * testsuite/gdb.python/py-section-script.exp: Likewise.
1024 * testsuite/lib/dwarf.exp: Likewise.
1025 * testsuite/lib/gdb.exp: Likewise.
1026
e92c8eb8
AB
10272021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1030 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1031 (one_or_two_args): New pattern.
1032 (f77_keywords): Add lbound and ubound.
1033 * f-lang.c (fortran_bounds_all_dims): New function.
1034 (fortran_bounds_for_dimension): New function.
1035 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1036 (operator_length_f): Likewise.
1037 (print_subexp_f): Likewise.
1038 (dump_subexp_body_f): Likewise.
1039 (operator_check_f): Likewise.
1040 * std-operator.def (FORTRAN_LBOUND): Define.
1041 (FORTRAN_UBOUND): Define.
1042
a52d653e
AB
10432021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1044
1045 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1046 and set_section_index member functions where appropriate.
1047 * coffread.c (coff_symtab_read): Likewise.
1048 (process_coff_symbol): Likewise.
1049 * ctfread.c (set_symbol_address): Likewise.
1050 * dwarf2/read.c (add_partial_symbol): Likewise.
1051 (var_decode_location): Likewise.
1052 * language.c: Likewise.
1053 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1054 (compact_minimal_symbols): Likewise.
1055 (minimal_symbol_upper_bound): Likewise.
1056 * objfiles.c (relocate_one_symbol): Likewise.
1057 * psympriv.h (partial_symbol::obj_section): Likewise.
1058 (partial_symbol::address): Likewise.
1059 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1060 * stabsread.c (scan_file_globals): Likewise.
1061 * symmisc.c (dump_msymbols): Likewise.
1062 * symtab.c (general_symbol_info::obj_section): Likewise.
1063 (fixup_section): Likewise.
1064 (get_msymbol_address): Likewise.
1065 * symtab.h (general_symbol_info::section): Rename to...
1066 (general_symbol_info::m_section): ...this.
1067 (general_symbol_info::set_section_index): New member function.
1068 (general_symbol_info::section_index): Likewise.
1069 (SYMBOL_SECTION): Delete.
1070 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1071 set_section_index member functions where appropriate.
1072 (MSYMBOL_SECTION): Delete.
1073 (symbol::symbol): Update to initialize 'm_section'.
1074 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1075 (process_xcoff_symbol): Likewise.
1076
ebbc3a7d
AB
10772021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1080 MSYMBOL_OBJ_SECTION.
1081 * findvar.c (language_defn::read_var_value): Likewise.
1082 * infcmd.c (jump_command): Likewise.
1083 * linespec.c (minsym_found): Likewise.
1084 * maint.c (maintenance_translate_address): Likewise.
1085 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1086 (minimal_symbol_upper_bound): Likewise.
1087 * parse.c (find_minsym_type_and_address): Likewise.
1088 (operator_check_standard): Likewise.
1089 * printcmd.c (info_address_command): Likewise.
1090 * symmisc.c (dump_msymbols): Likewise.
1091 (print_symbol): Likewise.
1092 * symtab.c (general_symbol_info::obj_section): Define new
1093 function.
1094 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1095 (find_pc_sect_compunit_symtab): Likewise.
1096 (find_function_start_sal): Likewise.
1097 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1098 MSYMBOL_OBJ_SECTION.
1099 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1100 function.
1101 (SYMBOL_OBJ_SECTION): Delete.
1102 (MSYMBOL_OBJ_SECTION): Delete.
1103
9bb305b3
TT
11042021-02-09 Tom Tromey <tom@tromey.com>
1105
1106 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1107
cf2b2075
TV
11082021-02-09 Tom de Vries <tdevries@suse.de>
1109
1110 PR symtab/27341
1111 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1112 construct an array type. Add assert to ensure that element_type is
1113 not being modified.
1114
03642b71
AB
11152021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1118 (gcore_collect_regset_section_cb): Delete.
1119 (gcore_collect_thread_registers): Delete.
1120 (gcore_build_thread_register_notes): Delete.
1121 (gcore_find_signalled_thread): Delete.
1122 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1123 'gdbarch' and 'thread_info' declarations.
1124 (gcore_build_thread_register_notes): Delete declaration.
1125 (gcore_find_signalled_thread): Likewise.
1126 * fbsd-tdep.c: Remove 'gcore.h' include.
1127 (struct fbsd_collect_regset_section_cb_data): New struct.
1128 (fbsd_collect_regset_section_cb): New function.
1129 (fbsd_collect_thread_registers): New function.
1130 (struct fbsd_corefile_thread_data): New struct.
1131 (fbsd_corefile_thread): New function.
1132 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1133 * linux-tdep.c: Remove 'gcore.h' include.
1134 (struct linux_collect_regset_section_cb_data): New struct.
1135 (linux_collect_regset_section_cb): New function.
1136 (linux_collect_thread_registers): New function.
1137 (linux_corefile_thread): Call Linux specific code.
1138 (find_signalled_thread): New function.
1139 (linux_make_corefile_notes): Call find_signalled_thread.
1140
f73e424f
TT
11412021-02-09 Tom Tromey <tromey@adacore.com>
1142
1143 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1144 not_lval value.
1145 * value.c (value_contents_copy_raw): Now static.
1146 * value.h (value_contents_copy_raw): Don't declare.
1147
a4f0544b
TT
11482021-02-09 Tom Tromey <tromey@adacore.com>
1149
1150 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1151 fields.
1152
9b3e4b5d
SV
11532021-02-08 Shahab Vahedi <shahab@synopsys.com>
1154
1155 PR tdep/27369
1156 * arc-linux-tdep.c (handle_atomic_sequence): New.
1157 (arc_linux_software_single_step): Call handle_atomic_sequence().
1158
29db1eb3
AB
11592021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1162 function.
1163 (REQUIRE_WINDOW): Call is_valid member function.
1164 (REQUIRE_WINDOW_FOR_SETTER): New define.
1165 (gdbpy_tui_is_valid): Call is_valid member function.
1166 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1167 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1168 tui_active too.
1169 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1170 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1171 the function.
1172
e0c23e11
AB
11732021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1176 for the title is not nullptr.
1177
1cf23996
AB
11782021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1179
1180 * tui-layout.c (saved_tui_windows): Delete.
1181 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1182 call new get_windows member function instead.
1183 (tui_get_window_by_name): Check in tui_windows.
1184 (tui_layout_window::apply): Don't add to tui_windows.
1185 * tui-layout.h (tui_layout_base::get_windows): New member function.
1186 (tui_layout_window::get_windows): Likewise.
1187 (tui_layout_split::get_windows): Likewise.
1188
a53a2657
AB
11892021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1190
1191 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1192 of the window objects.
1193
2708dbbd
AB
11942021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * python/python.c (gdbpy_print_stack): Reformat an error message.
1197
cd074e04
AB
11982021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1199
1200 * tui/tui-interp.c (tui_command_line_handler): New function.
1201 (tui_interp::resume): Register tui_command_line_handler as the
1202 input_handler.
1203 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1204 function.
1205 (tui_getc_1): Delete handling of '\n' and '\r'.
1206 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1207
4cf28e91
HD
12082021-02-07 Hannes Domani <ssbssa@yahoo.de>
1209
1210 * tui/tui-regs.c (tui_data_window::display_registers_from):
1211 Mark invisible register sub windows.
1212 (tui_data_window::check_register_values): Ignore invisible
1213 register sub windows.
1214
3537bc23
HD
12152021-02-07 Hannes Domani <ssbssa@yahoo.de>
1216
1217 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1218 n_spaces with a negative value.
1219
5fc2d6aa
HD
12202021-02-07 Hannes Domani <ssbssa@yahoo.de>
1221
1222 * tui/tui-regs.c (tui_data_window::display_registers_from):
1223 Add refresh_window call.
1224
83962f83
HD
12252021-02-07 Hannes Domani <ssbssa@yahoo.de>
1226
1227 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1228
0110ec82
SM
12292021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * symmisc.c (std_in, std_out, std_err): Remove.
1232 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1233
7c6944ab
TV
12342021-02-05 Tom de Vries <tdevries@suse.de>
1235
1236 PR breakpoints/27330
1237 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1238 glibc object file has debug info.
1239
e77b0004
TV
12402021-02-05 Tom de Vries <tdevries@suse.de>
1241
1242 PR symtab/27333
1243 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1244
0e857c82
TV
12452021-02-05 Tom de Vries <tdevries@suse.de>
1246
1247 PR breakpoints/27313
1248 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1249 syscall numbers.
1250
bdfea17e
TT
12512021-02-05 Tom Tromey <tom@tromey.com>
1252
1253 * compile/compile-c-support.c (get_compile_context)
1254 (c_get_compile_context, cplus_get_compile_context): Change return
1255 type.
1256 * language.c (language_defn::get_compile_instance): New method.
1257 * language.h (language_defn::get_compile_instance): Change return
1258 type. No longer inline.
1259 * c-lang.c (c_language::get_compile_instance): Change return type.
1260 (cplus_language::get_compile_instance): Change return type.
1261 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1262 Change return type.
1263 * compile/compile.c (compile_to_object): Update.
1264
1b30f421
TT
12652021-02-05 Tom Tromey <tom@tromey.com>
1266
1267 * parser-defs.h (write_exp_symbol_reference): Declare.
1268 * parse.c (write_exp_symbol_reference): New function.
1269 * p-exp.y (variable): Use write_exp_symbol_reference.
1270 * m2-exp.y (variable): Use write_exp_symbol_reference.
1271 * f-exp.y (variable): Use write_exp_symbol_reference.
1272 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1273 * c-exp.y (variable): Use write_exp_symbol_reference.
1274
ae710496
TV
12752021-02-05 Tom de Vries <tdevries@suse.de>
1276
1277 PR exp/27265
1278 * valarith.c (complex_binop): Throw an error if complex type can't
1279 be created.
1280
d3b54e63
TV
12812021-02-05 Tom de Vries <tdevries@suse.de>
1282
1283 PR symtab/27307
1284 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1285 return.
1286
fc9a13fb
TV
12872021-02-05 Tom de Vries <tdevries@suse.de>
1288
1289 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1290
04b4939b
MF
12912021-02-04 Mike Frysinger <vapier@gentoo.org>
1292
1293 * configure.tgt (riscv*-*-*): Set gdb_sim.
1294
6ff267e1
SM
12952021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * target.c (target_is_non_stop_p): Return bool.
1298 * target.h (target_is_non_stop_p): Return bool.
1299
fdbc5215
SM
13002021-02-04 Simon Marchi <simon.marchi@efficios.com>
1301
1302 * record-full.c (record_full_async_inferior_event_handler):
1303 Don't clear async event handler.
1304 (record_full_base_target::wait): Clear async event handler at
1305 beginning.
1306
85d3ad8e
SM
13072021-02-04 Simon Marchi <simon.marchi@efficios.com>
1308
1309 * record-btrace.c (record_btrace_handle_async_inferior_event):
1310 Don't clear async event handler.
1311 (record_btrace_target::wait): Clear async event handler at
1312 beginning.
1313
baa8575b
SM
13142021-02-04 Simon Marchi <simon.marchi@efficios.com>
1315
1316 * remote.c (remote_target::wait): Clear async event handler at
1317 beginning, mark if needed at the end.
1318 (remote_async_inferior_event_handler): Don't set or clear async
1319 event handler.
1320
6b36ddeb
SM
13212021-02-04 Simon Marchi <simon.marchi@efficios.com>
1322
1323 * async-event.h (async_event_handler_func): Add documentation.
1324 * async-event.c (check_async_event_handlers): Don't clear
1325 async_event_handler ready flag.
1326 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1327 flag.
1328 * record-btrace.c (record_btrace_handle_async_inferior_event):
1329 Likewise.
1330 * record-full.c (record_full_async_inferior_event_handler):
1331 Likewise.
1332 * remote-notif.c (remote_async_get_pending_events_handler):
1333 Likewise.
1334 * remote.c (remote_async_inferior_event_handler): Likewise.
1335
72d383bb
SM
13362021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * infrun.c (handle_inferior_event): Move stop_soon variable to
1339 inner scope.
1340
408f6686
PA
13412021-02-03 Pedro Alves <pedro@palves.net>
1342
1343 * infcmd.c (detach_command): Hold strong reference to target, and
1344 if all-stop on entry, restart threads on exit.
1345 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1346 (restart_stepped_thread): ... this new function. Also handle
1347 trap_expected.
1348 (restart_after_all_stop_detach): New function.
1349 * infrun.h (restart_after_all_stop_detach): Declare.
1350
ac7d717c
PA
13512021-02-03 Pedro Alves <pedro@palves.net>
1352
1353 * infrun.c (struct step_over_info): Initialize fields.
1354 (prepare_for_detach): Handle ongoing in-line step over.
1355
e87f0fe8
PA
13562021-02-03 Pedro Alves <pedro@palves.net>
1357
1358 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1359 here...
1360 * remote.c (remote_target::remote_detach_1): ... and here ...
1361 * target.c (target_detach): ... instead of here.
1362 * target.h (target_ops::detach): Add comment.
1363
8ff53139
PA
13642021-02-03 Pedro Alves <pedro@palves.net>
1365
1366 * infrun.c (struct wait_one_event): Move higher up.
1367 (prepare_for_detach): Abort in-progress displaced steps instead of
1368 letting them complete.
1369 (handle_one): If the inferior is detaching, don't add the thread
1370 back to the global step-over chain.
1371 (restart_threads): Don't restart threads if detaching.
1372 (handle_signal_stop): Remove inferior::detaching reference.
1373
91475068
PA
13742021-02-03 Pedro Alves <pedro@palves.net>
1375
1376 * infrun.c (prepare_for_detach): Don't release scoped_restore
1377 before returning.
1378
d758e62c
PA
13792021-02-03 Pedro Alves <pedro@palves.net>
1380
1381 * infrun.c (handle_one): New function, factored out from ...
1382 (stop_all_threads): ... here.
1383
b0083dd7
PA
13842021-02-03 Pedro Alves <pedro@palves.net>
1385
1386 * remote.c (remote_notif_stop_ack): Don't error out on
1387 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1388 (remote_target::discard_pending_stop_replies): Don't delete
1389 in-flight notification; instead, clear its contents.
1390
621cc310
PA
13912021-02-03 Pedro Alves <pedro@palves.net>
1392
1393 * remote.c (extended_remote_target::attach): Set target async in
1394 the target-non-stop path too.
1395
2ab76a18
PA
13962021-02-03 Pedro Alves <pedro@palves.net>
1397
1398 PR gdb/27055
1399 * infrun.c (handle_signal_stop): Move main context_switch call
1400 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1401
2e3773ff
LS
14022021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1403
1404 * NEWS (Changed commands): Add entry for the behavior change of
1405 the inferior command.
1406 * inferior.c (inferior_command): When no argument is given to the
1407 inferior command, display info about the currently selected
1408 inferior.
1409
e57933dc
SM
14102021-02-02 Simon Marchi <simon.marchi@efficios.com>
1411
1412 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1413 a sect_offset.
1414 (read_attribute_reprocess): Adjust.
1415
2b0c7f41
SM
14162021-02-02 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1419 <gnu_ranges_base>: ... this...
1420 <rnglists_base>: ... and this.
1421 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1422 <gnu_ranges_base>: ... this...
1423 <rnglists_base>: ... and this.
1424 (read_cutu_die_from_dwo): Adjust
1425 (dwarf2_get_pc_bounds): Adjust
1426 (dwarf2_record_block_ranges): Adjust.
1427 (read_full_die_1): Adjust
1428 (partial_die_info::read): Adjust.
1429 (read_rnglist_index): Adjust.
1430
a1c40103
SM
14312021-02-02 Simon Marchi <simon.marchi@efficios.com>
1432
1433 PR gdb/26813
1434 * dwarf2/read.c (read_loclists_rnglists_header): Add
1435 header_offset parameter and use it.
1436 (read_loclist_index): Read header of the current contribution,
1437 not the one at the beginning of the section.
1438 (read_rnglist_index): Likewise.
1439
b1829e1b
SM
14402021-02-02 Simon Marchi <simon.marchi@efficios.com>
1441
1442 PR gdb/26813
1443 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1444 requires_reprocessing flag.
1445 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1446 DW_FORM_loclistx.
1447 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1448 and DW_FORM_loclistx.
1449 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1450 instead of set_address for DW_FORM_loclistx and
1451 DW_FORM_rnglistx.
1452
0c800c6e
SM
14532021-02-02 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * dwarf2/read.c (read_loclist_index): Remove bound check for
1456 start of offset.
1457 (read_rnglist_index): Likewise.
1458
05787bad
SM
14592021-02-02 Simon Marchi <simon.marchi@efficios.com>
1460
1461 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1462 of the offset.
1463
5e4d9bbc
SM
14642021-02-02 Simon Marchi <simon.marchi@efficios.com>
1465
1466 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1467
a0c1eeba
SM
14682021-02-02 Simon Marchi <simon.marchi@efficios.com>
1469
1470 * dwarf2/read.c (read_loclist_index): Change complaints into
1471 errors.
1472
2bd3e4b8
TV
14732021-02-02 Tom de Vries <tdevries@suse.de>
1474
1475 PR symtab/24620
1476 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1477 psymtab == nullptr.
1478
82a1fd3a
AB
14792021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1482 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1483 here from linux-tdep.c and given a new name. Minor cleanups.
1484 (gcore_collect_regset_section_cb): Likewise.
1485 (gcore_collect_thread_registers): Likewise.
1486 (gcore_build_thread_register_notes): Likewise.
1487 (gcore_find_signalled_thread): Likewise.
1488 * gcore.h (gcore_build_thread_register_notes): Declare.
1489 (gcore_find_signalled_thread): Declare.
1490 * fbsd-tdep.c: Add 'gcore.h' include.
1491 (struct fbsd_collect_regset_section_cb_data): Delete.
1492 (fbsd_collect_regset_section_cb): Delete.
1493 (fbsd_collect_thread_registers): Delete.
1494 (struct fbsd_corefile_thread_data): Delete.
1495 (fbsd_corefile_thread): Delete.
1496 (fbsd_make_corefile_notes): Call
1497 gcore_build_thread_register_notes instead of the now deleted
1498 FreeBSD code.
1499 * linux-tdep.c: Add 'gcore.h' include.
1500 (struct linux_collect_regset_section_cb_data): Delete.
1501 (linux_collect_regset_section_cb): Delete.
1502 (linux_collect_thread_registers): Delete.
1503 (linux_corefile_thread): Call
1504 gcore_build_thread_register_notes.
1505 (find_signalled_thread): Delete.
1506 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1507
ebde6f2d
TV
15082021-01-29 Tom de Vries <tdevries@suse.de>
1509
1510 PR breakpoints/26063
1511 * infrun.c (process_event_stop_test): Reset
1512 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1513 changed.
1514
0f93c3a2
AB
15152021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1516
1517 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1518 assert. Extend the header comment.
1519
f237f998
AB
15202021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1521
1522 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1523 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1524 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1525 (tui_locator_win_info_ptr): Delete declaration.
1526 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1527 (tui_disasm_window::set_contents): Fetch state from tui_location
1528 global.
1529 (tui_get_begin_asm_address): Likewise.
1530 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1531 for locator window.
1532 (get_locator_window): Delete.
1533 (initialize_known_windows): Treat locator window just like all the
1534 rest.
1535 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1536 (tui_source_window::set_contents): Fetch state from tui_location
1537 global.
1538 (tui_source_window::showing_source_p): Likewise.
1539 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1540 (_locator): Delete.
1541 (tui_locator_win_info_ptr): Delete.
1542 (tui_locator_window::make_status_line): Fetch state from
1543 tui_location global.
1544 (tui_locator_window::rerender): Remove check of 'handle',
1545 reindent function body.
1546 (tui_locator_window::set_locator_fullname): Delete.
1547 (tui_locator_window::set_locator_info): Delete.
1548 (tui_update_locator_fullname): Delete.
1549 (tui_show_frame_info): Likewise.
1550 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1551 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1552 tui/tui-location.h and renamed to
1553 tui_location_tracker::set_location.
1554 (tui_locator_window::set_locator_fullname): Moved to
1555 tui/tui-location.h and renamed to
1556 tui_location_tracker::set_fullname.
1557 (tui_locator_window::full_name): Delete.
1558 (tui_locator_window::proc_name): Delete.
1559 (tui_locator_window::line_no): Delete.
1560 (tui_locator_window::addr): Delete.
1561 (tui_locator_window::gdbarch): Delete.
1562 (tui_update_locator_fullname): Delete declaration.
1563 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1564 for locator window.
1565 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1566 (tui_display_main): Call function on tui_location directly.
1567 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1568 * tui/tui-location.c: New file.
1569 * tui/tui-location.h: New file.
1570
8ee511af
SM
15712021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * gdbtypes.h (get_type_arch): Rename to...
1574 (struct type) <arch>: ... this, update all users.
1575
6ac37371
SM
15762021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1577
1578 * gdbtypes.h (struct type) <arch>: Rename to...
1579 <arch_owner>: ... this, update all users.
1580 <objfile>: Rename to...
1581 <objfile_owner>: ... this, update all users.
1582
24cf6389
AB
15832021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1584
1585 * gdbcmd.h (execute_command_to_string): Update comment.
1586 * top.c (execute_command_to_string): Update header comment.
1587
2a7f6487
TV
15882021-01-28 Tom de Vries <tdevries@suse.de>
1589
1590 PR breakpoints/27205
1591 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1592 (create_longjmp_master_breakpoint_names): New function, factored out
1593 of ...
1594 (create_longjmp_master_breakpoint): ... here. Only try to install
1595 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1596 breakpoint in libc.so failed.
1597
59b59f08
LS
15982021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1599
1600 PR gdb/27133
1601 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1602 unique_ptr is released when the wrapped pointer is kept for later
1603 use.
1604
807f647c
MM
16052021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1606
1607 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1608 BLR and BR instructions.
1609 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1610 (enum aarch64_masks): New.
1611
4ef367bf
TT
16122021-01-26 Tom Tromey <tromey@adacore.com>
1613
1614 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1615 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1616 (windows_init_thread_list, windows_nat::handle_load_dll)
1617 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1618 (windows_nat_target::resume)
1619 (windows_nat_target::get_windows_debug_event)
1620 (windows_nat_target::interrupt, windows_xfer_memory)
1621 (windows_nat_target::close): Update.
1622 * nat/windows-nat.c (DEBUG_EVENTS): Use
1623 debug_prefixed_printf_cond.
1624 (matching_pending_stop, fetch_pending_stop)
1625 (continue_last_debug_event): Update.
1626
4cb1265b
MS
16272020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1628
1629 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1630 elfcore_write_file_note.
1631
d0cc52bd
SV
16322021-01-26 Shahab Vahedi <shahab@synopsys.com>
1633
1634 * arc-tdep.c (arc_add_reggroups): New function.
1635 (arc_gdbarch_init): Call arc_add_reggroups.
1636
ac3571d9 16372021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
1638
1639 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1640
9f6c202e
TV
16412021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1642 Simon Marchi <simon.marchi@polymtl.ca>
1643 Tom de Vries <tdevries@suse.de>
1644
1645 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1646 DW_AT_ranges.
1647
a625a8c9
TT
16482021-01-25 Tom Tromey <tromey@adacore.com>
1649
1650 * dwarf2/read.c (get_mpz): New function.
1651 (get_dwarf2_rational_constant): Use it.
1652
19184910
TT
16532021-01-25 Tom Tromey <tromey@adacore.com>
1654
1655 * ada-lang.c (resolve_subexp): Handle array context.
1656
b10bae18
TT
16572021-01-23 Tom Tromey <tom@tromey.com>
1658
1659 PR compile/25575
1660 * compile/compile-loc2c.c (note_register): New function.
1661 (pushf_register_address, pushf_register): Use it.
1662
3637a558
TT
16632021-01-23 Tom Tromey <tom@tromey.com>
1664
1665 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1666 Change type of "registers_used".
1667 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1668 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1669 (locexpr_generate_c_location, loclist_generate_c_location): Change
1670 type of "registers_used".
1671 * compile/compile.h (compile_dwarf_expr_to_c)
1672 (compile_dwarf_bounds_to_c): Update.
1673 * compile/compile-loc2c.c (pushf_register_address)
1674 (pushf_register, do_compile_dwarf_expr_to_c)
1675 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
1676 of "registers_used".
1677 * compile/compile-c.h (generate_c_for_variable_locations):
1678 Update.
1679 * compile/compile-c-symbols.c (generate_vla_size)
1680 (generate_c_for_for_one_variable): Change type of
1681 "registers_used".
1682 (generate_c_for_variable_locations): Return std::vector.
1683 * compile/compile-c-support.c (generate_register_struct): Change
1684 type of "registers_used".
1685 (compute): Update.
1686
9f7f6cb8
TT
16872021-01-23 Tom Tromey <tom@tromey.com>
1688
1689 * compile/compile-internal.h (class compile_instance)
1690 <set_arguments>: Change return type.
1691 * compile/compile.c (compile_to_object): Remove call to reset.
1692 (compile_instance::set_arguments): Change return type.
1693
dd5ca05f
SM
16942021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1695
1696 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1697 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1698
d3ee35db
LS
16992021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1700
1701 * Makefile.in (SELFTESTS_SRCS): Add
1702 unittests/gdb_tilde_expand-selftests.c.
1703 * unittests/gdb_tilde_expand-selftests.c: New file.
1704
9d2d8a16
AB
17052021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 PR cli/25956
1708 * NEWS: Mention new command.
1709 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1710 (version_style): Define.
1711 (cli_style_option::cli_style_option): Add intensity parameter, and
1712 use as appropriate.
1713 (_initialize_cli_style): Register version style set/show commands.
1714 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1715 (version_style): Declare.
1716 * top.c (print_gdb_version): Use version_stype, and styled_string
1717 to print the GDB version string.
1718
e7b43072
AB
17192021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1720
1721 * utils.c (emit_style_escape): Only emit an escape sequence if the
1722 requested style is different than the current applied style.
1723 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1724 current applied_style.
1725 (fputs_styled): Remove is_default check.
1726 (fputs_styled_unfiltered): Likewise.
1727 (vfprintf_styled_no_gdbfmt): Likewise.
1728
2189c312
SM
17292021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1730
1731 * remote.h (remote_debug_printf): New.
1732 (remote_debug_printf_nofunc): New.
1733 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1734 * remote.c: Use above macros throughout file.
1735
02349803
SM
17362021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * remote.h (remote_debug): Change to bool.
1739 * remote.c (remote_debug): Change to bool.
1740 (_initialize_remote): Adjust.
1741
cda09ec9
SM
17422021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1743
1744 * target.h (remote_debug): Move to...
1745 * remote.h (remote_debug): ... here.
1746 * top.c (remote_debug): Move to...
1747 * remote.c (remote_debug): ... here.
1748 * remote-sim.c: Include remote.h.
1749
baf2b57f
SM
17502021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 * cli/cli-cmds.c (show_remote_debug): Remove.
1753 (show_remote_timeout): Remove.
1754 (_initialize_cli_cmds): Don't register commands.
1755 * remote.c (show_remote_debug): Move here.
1756 (show_remote_timeout): Move here.
1757 (_initialize_remote): Register commands.
1758
344e9841
SM
17592021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1760
1761 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
1762 type::objfile method instead.
1763
30625020
SM
17642021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1765
1766 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
1767 use the type::is_objfile_owned method.
1768
5b7d941b
SM
17692021-01-22 Simon Marchi <simon.marchi@efficios.com>
1770
1771 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
1772 (TYPE_OWNER): Remove.
1773 (TYPE_OBJFILE): Adjust.
1774 (struct main_type) <flag_objfile_owned>: Rename to...
1775 <m_flag_objfile_owned>: ... this.
1776 <owner>: Rename to...
1777 <m_owner>: ... this.
1778 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
1779 methods.
1780 (TYPE_ALLOC): Adjust.
1781 * gdbtypes.c (alloc_type): Adjust.
1782 (alloc_type_arch): Adjust.
1783 (alloc_type_copy): Adjust.
1784 (get_type_arch): Adjust.
1785 (smash_type): Adjust.
1786 (lookup_array_range_type): Adjust.
1787 (recursive_dump_type): Adjust.
1788 (copy_type_recursive): Adjust.
1789 * compile/compile-c-types.c (convert_func): Adjust.
1790 (convert_type_basic): Adjust.
1791 * compile/compile-cplus-types.c (compile_cplus_convert_func):
1792 Adjust.
1793 * language.c
1794 (language_arch_info::type_and_symbol::alloc_type_symbol):
1795 Adjust.
1796
d5d24e12
LM
17972021-01-21 Luis Machado <luis.machado@linaro.org>
1798
1799 * coffread.c (enter_linenos): Passing string to complaint.
1800 * valops.c (value_assign): Make array view.
1801
a59902a7
SM
18022021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1803
1804 * auto-load.h (debug_auto_load): Move here.
1805 (auto_load_debug_printf): New.
1806 * auto-load.c: Use auto_load_debug_printf.
1807 (debug_auto_load): Move to header.
1808 * linux-thread-db.c (try_thread_db_load): Use
1809 auto_load_debug_printf.
1810 * main.c (captured_main_1): Likewise.
1811
d3abc0ce
SM
18122021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1813
1814 * f-valprint.c (f77_array_offset_tbl): Remove.
1815
1e15fcac
SM
18162021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1817
1818 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1819
439706e6
SM
18202021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1821
1822 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1823 of gdb_select.
1824
325d39e4
HD
18252021-01-21 Hannes Domani <ssbssa@yahoo.de>
1826
1827 PR python/19151
1828 * python/py-breakpoint.c (bppy_get_location): Handle
1829 bp_hardware_breakpoint.
1830 (bppy_init): Likewise.
1831 (gdbpy_breakpoint_created): Likewise.
1832
7cb6d92a
SM
18332021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1834
1835 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1836
d4dd4fca
SM
18372021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1838
1839 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1840 (_initialize_gdb_bfd): Adjust.
1841
de53369b
SM
18422021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1843
1844 PR gdb/26828
1845 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1846
17e593e9
SM
18472021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1848
1849 * dwarf2/read.c (follow_die_offset): Add logging.
1850 (dwarf2_per_objfile::age_comp_units): Add logging.
1851
6bd434d6
SM
18522021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1853
1854 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1855 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1856 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1857 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1858 * arm-tdep.c (struct frame_unwind): Make static.
1859 * auto-load.c (auto_load_safe_path_vec): Make static.
1860 * csky-tdep.c (csky_stub_unwind): Make static.
1861 * gdbarch.c (gdbarch_data_registry): Make static.
1862 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1863 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1864 * i386-tdep.c (i386_frame_setup_skip_insns,
1865 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1866 Make static.
1867 * infrun.c (observer_mode): Make static.
1868 * linux-nat.c (sigchld_action): Make static.
1869 * linux-thread-db.c (thread_db_list): Make static.
1870 * maint-test-options.c (maintenance_test_options_list):
1871 * mep-tdep.c (mep_csr_registers): Make static.
1872 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1873 (stats): Make static.
1874 * nat/linux-osdata.c (struct osdata_type): Make static.
1875 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1876 * progspace.c (last_program_space_num): Make static.
1877 * python/py-param.c (struct parm_constant): Remove struct type
1878 name.
1879 (parm_constants): Make static.
1880 * python/py-record-btrace.c (btpy_list_methods): Make static.
1881 * python/py-record.c (recpy_gap_type): Make static.
1882 * record.c (record_goto_cmdlist): Make static.
1883 * regcache.c (regcache_descr_handle): Make static.
1884 * registry.h (DEFINE_REGISTRY): Make definition static.
1885 * symmisc.c (std_in, std_out, std_err): Make static.
1886 * top.c (previous_saved_command_line): Make static.
1887 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1888 static.
1889 * unittests/command-def-selftests.c (nr_duplicates,
1890 nr_invalid_prefixcmd, lists): Make static.
1891 * unittests/observable-selftests.c (test_notification): Make
1892 static.
1893 * unittests/optional/assignment/1.cc (counter): Make static.
1894 * unittests/optional/assignment/2.cc (counter): Make static.
1895 * unittests/optional/assignment/3.cc (counter): Make static.
1896 * unittests/optional/assignment/4.cc (counter): Make static.
1897 * unittests/optional/assignment/5.cc (counter): Make static.
1898 * unittests/optional/assignment/6.cc (counter): Make static.
1899
a6c11cbb
JS
19002021-01-20 Joel Sherrill <joel@rtems.org>
1901
1902 PR gdb/27219
1903 * remote.c (struct remote_thread_info) <resume_state>: Rename
1904 to...
1905 <get_resume_state>: ... this.
1906 (remote_target::resume): Adjust.
1907 (remote_target::commit_resume): Adjust.
1908 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
1909
6f52fdf4
SDJ
19102021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
1911 Tom Tromey <tom@tromey.com>
1912
1913 * stap-probe.c (stap_parse_single_operand): Handle '!'
1914 operator.
1915 (stap_parse_argument_conditionally): Likewise.
1916 Skip spaces after processing open-parenthesis sub-expression.
1917 (stap_parse_argument_1): Skip spaces after call to
1918 stap_parse_argument_conditionally.
1919 Handle case when right-side expression is a parenthesized
1920 sub-expression.
1921 Skip spaces after call to stap_parse_argument_1.
1922
1c3b85ad
LS
19232021-01-19 Lancelot SIX <lsix@lancelotsix.com>
1924
1925 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
1926
a9a87d35
LM
19272021-01-19 Luis Machado <luis.machado@linaro.org>
1928
1929 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
1930 memory and save data.
1931 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
1932 (trad_frame_set_unknown, trad_frame_set_value_bytes)
1933 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1934 (trad_frame_value_bytes_p): Remove.
1935 (trad_frame_reset_saved_regs): Adjust documentation.
1936 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
1937 constructor and reset the state of the registers.
1938 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1939 (trad_frame_value_bytes_p, trad_frame_set_value)
1940 (trad_frame_set_realreg, trad_frame_set_addr)
1941 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
1942 (trad_frame_set_reg_realreg): Update to call member function.
1943 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
1944 (trad_frame_get_prev_register): Likewise.
1945
1946 * aarch64-tdep.c (aarch64_analyze_prologue)
1947 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
1948 (aarch64_prologue_prev_register): Update to use member functions.
1949 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1950 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
1951 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
1952 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
1953 (arm_make_epilogue_frame_cache): Likewise.
1954 * avr-tdep.c (avr_frame_unwind_cache)
1955 (avr_frame_prev_register): Likewise.
1956 * cris-tdep.c (cris_scan_prologue): Likewise.
1957 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
1958 * frv-tdep.c (frv_analyze_prologue): Likewise.
1959 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
1960 * lm32-tdep.c (lm32_frame_cache): Likewise.
1961 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1962 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1963 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
1964 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
1965 (reset_saved_regs): Adjust to set realreg.
1966 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
1967 call member functions.
1968 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
1969 * s390-tdep.c (s390_prologue_frame_unwind_cache)
1970 (s390_backchain_frame_unwind_cache): Likewise.
1971 * score-tdep.c (score7_analyze_prologue)
1972 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
1973 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
1974 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1975 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
1976 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1977 * tilegx-tdep.c (tilegx_analyze_prologue)
1978 (tilegx_frame_cache): Likewise.
1979 * v850-tdep.c (v850_frame_cache): Likewise.
1980 * vax-tdep.c (vax_frame_cache): Likewise.
1981
bdec2917
LM
19822021-01-19 Luis Machado <luis.machado@linaro.org>
1983
1984 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
1985 of buffer + length.
1986 (put_frame_register_bytes): Likewise.
1987 Adjust documentation.
1988 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
1989 (safe_frame_unwind_memory): Likewise.
1990 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
1991 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
1992 gdb::array_view.
1993 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
1994 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
1995 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1996 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
1997 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
1998 * dwarf2/loc.c (rw_pieced_value): Likewise.
1999 * hppa-tdep.c (hppa_frame_cache): Likewise.
2000 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2001 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2002 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2003 (i386_linux_rt_sigtramp_start): Likewise.
2004 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2005 * i386-tdep.c (i386_register_to_value): Likewise.
2006 * i387-tdep.c (i387_register_to_value): Likewise.
2007 * ia64-tdep.c (ia64_register_to_value): Likewise.
2008 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2009 (m32r_linux_rt_sigtramp_start): Likewise.
2010 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2011 * m68k-tdep.c (m68k_register_to_value): Likewise.
2012 * mips-tdep.c (mips_register_to_value)
2013 (mips_value_to_register): Likewise.
2014 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2015 (ppcfbsd_sigtramp_frame_cache): Likewise.
2016 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2017 (ppcobsd_sigtramp_frame_cache): Likewise.
2018 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2019 (rs6000_register_to_value): Likewise.
2020 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2021 * tramp-frame.c (tramp_frame_start): Likewise.
2022 * valops.c (value_assign): Likewise.
2023
ccbe4c82
LM
20242021-01-19 Luis Machado <luis.machado@linaro.org>
2025
2026 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2027 array_view.
2028 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2029 instead of buffer and size.
2030 (trad_frame_set_reg_value_bytes): Likewise.
2031 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2032 (trad_frame_set_value_bytes): Likewise.
2033
0e7620dc
MF
20342021-01-18 Mike Frysinger <vapier@gentoo.org>
2035
2036 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2037
6a9ad81c
AB
20382021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2039
2040 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2041 (riscv_fbsd_gregset): Use riscv_supply_regset.
2042 (riscv_fbsd_fpregset): Likewise.
2043 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2044 (riscv_linux_fregset): Likewise.
2045 * riscv-tdep.c (riscv_supply_regset): Define new function.
2046 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2047
d3d7d1ba
TV
20482021-01-18 Tom de Vries <tdevries@suse.de>
2049
2050 PR tdep/27172
2051 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2052 New macro.
2053 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2054 for SEGV_BNDERR.
2055
aa2838cc
SM
20562021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2057
2058 * remote.c (class remote_target) <remote_hostio_send_command,
2059 remote_hostio_parse_result>: Constify parameter.
2060 (remote_hostio_parse_result): Likewise.
2061 (remote_target::remote_hostio_send_command): Adjust.
2062 (remote_target::remote_hostio_pread_vFile): Adjust.
2063 (remote_target::fileio_readlink): Adjust.
2064 (remote_target::fileio_fstat): Adjust.
2065
b5c8f22d
SM
20662021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * remote.c (remote_target::start_remote): Move wait_status to
2069 narrower scope.
2070
e3b2741b
SM
20712021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * remote.c (class remote_target):
2074 <add_current_inferior_and_thread>: Constify parameter.
2075 (stop_reply_extract_thread): Likewise.
2076 (remote_target::get_current_thread): Likewise.
2077 (remote_target::add_current_inferior_and_thread): Likewise.
2078
cecb1912
SM
20792021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2080
2081 * remote.c (class remote_target)
2082 <remote_unpack_thread_info_response,
2083 parse_threadlist_response>: Constify parameter and/or return
2084 value and or local variable.
2085 (stub_unpack_int): Likewise.
2086 (unpack_nibble): Likewise.
2087 (unpack_byte): Likewise.
2088 (unpack_int): Likewise.
2089 (unpack_string): Likewise.
2090 (unpack_threadid): Likewise.
2091 (remote_target::remote_unpack_thread_info_response): Likewise.
2092 (remote_target::parse_threadlist_response): Likewise.
2093
5a11fff0
AB
20942021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2097
17e89137
LS
20982021-01-14 Lancelot Six <lsix@lancelotsix.com>
2099
2100 * MAINTAINERS (Write After Approval): Add myself.
2101
58eadc4b
BE
21022021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2103
2104 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2105 because is_trivially_default_constructible was first implemented with
2106 gcc-5.
2107
5fae2a2c
TV
21082021-01-14 Tom de Vries <tdevries@suse.de>
2109
2110 PR breakpoints/27151
2111 * objfiles.h (in_plt_section): Handle .plt.sec.
2112
8f66807b
AB
21132021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 PR gdb/26819
2116 * remote.c
2117 (remote_target::select_thread_for_ambiguous_stop_reply): New
2118 member function.
2119 (remote_target::process_stop_reply): Call
2120 select_thread_for_ambiguous_stop_reply.
2121
bd497355
SM
21222021-01-13 Simon Marchi <simon.marchi@efficios.com>
2123
2124 * record-btrace.c (class record_btrace_target): Remove.
2125 (record_btrace_target::commit_resume): Remove.
2126 * record-full.c (class record_full_target): Remove.
2127 (record_full_target::commit_resume): Remove.
2128
c9d22089
SM
21292021-01-13 Simon Marchi <simon.marchi@efficios.com>
2130
2131 * remote.c (enum class resume_state): New.
2132 (struct resumed_pending_vcont_info): New.
2133 (struct remote_thread_info) <resume_state, set_not_resumed,
2134 set_resumed_pending_vcont, resumed_pending_vcont_info,
2135 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2136 New.
2137 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2138 (remote_target::remote_add_thread): Adjust.
2139 (remote_target::process_initial_stop_replies): Adjust.
2140 (remote_target::resume): Adjust.
2141 (remote_target::commit_resume): Rely on state in
2142 remote_thread_info and not on tp->executing.
2143 (remote_target::process_stop_reply): Adjust.
2144
d8d1feb4
SM
21452021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2146
2147 * arc-tdep.h (arc_debug_printf): New.
2148 * arc-tdep.c: Use arc_debug_printf.
2149 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2150 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2151 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2152
fb0f5031
SM
21532021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2154
2155 * arc-tdep.h (arc_debug): Change type to bool.
2156 * arc-tdep.c (arc_debug): Change type to bool.
2157 (arc_analyze_prologue): Adjust.
2158 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2159 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2160
5bf7e91b
SM
21612021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2162
2163 * auto-load.c (auto_load_objfile_script_1): Use bool.
2164 (execute_script_contents): Use bool.
2165
db972fce
SM
21662021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2167
2168 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2169 comment here.
2170 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2171 comment to header.
2172 * extension-priv.h (struct extension_language_script_ops)
2173 <auto_load_enabled>: Return bool.
2174 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2175 comment here.
2176 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2177 comment to header.
2178 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2179 move comment here.
2180 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2181 move comment to header.
2182 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2183 move comment here.
2184 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2185 move comment to header.
2186
5e12f48f
SM
21872021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2188
2189 * auto-load.h (file_is_auto_load_safe): Change return type to
2190 bool, move comment here.
2191 * auto-load.c (file_is_auto_load_safe): Change return type and
2192 advice_printed to bool. Move comment to header.
2193
54ca9002
SM
21942021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2195
2196 * jit.c (jit_debug_printf): New, use throughout file.
2197
24a7f1b5
SM
21982021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2199
2200 * infrun.c (normal_stop): Fix indentation.
2201
fe7a351a
SM
22022021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2205 declarations to ...
2206 * symfile.h: ... here.
2207 * symfile.c: Update doc.
2208
16e9019e
SM
22092021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2210
2211 * target.h (baud_rate, serial_parity): Move declarations...
2212 * serial.h: ... here.
2213 * main.c: Include serial.h.
2214 * serial.c (baud_rate, serial_parity): Update doc.
2215
b2f2ae0d
SM
22162021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2217
2218 * top.c (pre_init_ui_hook): Remove.
2219
5291fe3c
SP
22202021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2221
2222 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2223 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2224 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2225 * features/aarch64-fpu.xml: Add bfloat16 type.
2226
ce38f5ed
AB
22272021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2230
7c654b71
AB
22312021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2232
2233 * f-exp.y (dot_ops): Rename to...
2234 (fortran_operators): ...this. Add a header comment. Add symbol
2235 based operators.
2236 (yylex): Update to use fortran_operators not dot_ops. Remove
2237 special handling for '**', this is now included in
2238 fortran_operators.
2239
c6185dce
SM
22402021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2241
2242 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2243 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2244 * aarch64-tdep.c: Use aarch64_debug_printf.
2245
eef401dc
SM
22462021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2247
2248 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2249 file.
2250
062eaacb
SM
22512021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2252
2253 * jit.c (jit_debug): Change type to bool.
2254 (_initialize_jit): Adjust.
2255
54585eee
TT
22562021-01-09 Tom Tromey <tom@tromey.com>
2257
2258 PR compile/23672
2259 * compile/compile.c (compile_to_object): Avoid crash when
2260 osabi_triplet_regexp returns NULL.
2261
bc167b6b
TT
22622021-01-09 Tom Tromey <tom@tromey.com>
2263
2264 * tracepoint.h (class collection_list) <append_exp>: Take a
2265 std::string.
2266 * tracepoint.c (collection_list::append_exp): Take a std::string.
2267 (encode_actions_1): Update.
2268
8fc48b79
TT
22692021-01-08 Tom Tromey <tromey@adacore.com>
2270
2271 * parse.c (parse_expression): Add void_context_p parameter. Use
2272 parse_exp_in_context.
2273 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2274 parse_expression.
2275 (print_command, call_command): Update.
2276 * expression.h (parse_expression): Add void_context_p parameter.
2277
3c8c6de2
AB
22782021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2281 for internalvar components that have a dynamic location.
2282
1940319c
TV
22832021-01-08 Tom de Vries <tdevries@suse.de>
2284
2285 PR gdb/26881
2286 * breakpoint.c (create_exception_master_breakpoint_probe)
2287 (create_exception_master_breakpoint_hook): Factor out
2288 of ...
2289 (create_exception_master_breakpoint): ... here. Only try to install
2290 the master exception breakpoint in objfile.debug using the
2291 _Unwind_DebugHook method, if the install using probes in objfile
2292 failed.
2293
e3436813
AB
22942021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * f-lang.c (fortran_value_subarray): Call value_from_component.
2297
e904f56d
MF
22982021-01-07 Mike Frysinger <vapier@gentoo.org>
2299
2300 * remote-sim.c: Include memory-map.h.
2301 (gdbsim_target): Define memory_map override.
2302 (gdbsim_target::memory_map): Define.
2303
959d6a67
TT
23042021-01-07 Tom Tromey <tromey@adacore.com>
2305
2306 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2307
d4813f10
TT
23082021-01-07 Tom Tromey <tromey@adacore.com>
2309
2310 * ada-lang.c (add_component_interval): Start loop using vector's
2311 updated size.
2312
b49180ac
TT
23132021-01-06 Tom Tromey <tromey@adacore.com>
2314
2315 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2316 Do not cast result.
2317 * valarith.c (fixed_point_binop): Handle multiplication
2318 and division specially.
2319 * valops.c (value_to_gdb_mpq): New function.
2320 (value_cast_to_fixed_point): Use it.
2321
55195361
HD
23222021-01-05 Hannes Domani <ssbssa@yahoo.de>
2323
2324 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2325 Call wnoutrefresh instead of tui_win_info::refresh_window.
2326
1b6d4bb2
HD
23272021-01-05 Hannes Domani <ssbssa@yahoo.de>
2328
2329 * tui/tui-source.c (tui_source_window::show_line_number):
2330 Redraw second space after line number.
2331
b5ff370e
HD
23322021-01-05 Hannes Domani <ssbssa@yahoo.de>
2333
2334 PR tui/26927
2335 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2336 Fix source pad size in prefresh.
2337 (tui_source_window_base::show_source_content): Grow source pad
2338 if necessary.
2339
c68ea49f
MF
23402021-01-04 Mike Frysinger <vapier@gentoo.org>
2341
2342 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2343 (bfin_frame_align): Use align_down.
2344
e4ad960a
TV
23452021-01-04 Tom de Vries <tdevries@suse.de>
2346
2347 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2348 terminators that do not terminate anything.
2349
3ec3145c
SM
23502021-01-04 Simon Marchi <simon.marchi@efficios.com>
2351
2352 * debug.c (debug_print_depth): New.
2353 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2354 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2355 * infrun.c (start_step_over): Use
2356 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2357 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2358 INFRUN_SCOPED_DEBUG_START_END.
2359 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2360
e71daf80
SM
23612021-01-04 Simon Marchi <simon.marchi@efficios.com>
2362
2363 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2364
335709bc
SM
23652021-01-04 Simon Marchi <simon.marchi@efficios.com>
2366
2367 * utils.c (vfprintf_unfiltered): Print timestamp only when
2368 previous debug output ended with a newline.
2369
098caef4
LM
23702021-01-04 Luis Machado <luis.machado@linaro.org>
2371
2372 Update all users of trad_frame_saved_reg to use the new member
2373 functions.
2374
2375 Remote all struct keywords from declarations of trad_frame_saved_reg
2376 types, except on forward declarations.
2377
2378 * aarch64-tdep.c: Update.
2379 * alpha-mdebug-tdep.c: Update.
2380 * alpha-tdep.c: Update.
2381 * arc-tdep.c: Update.
2382 * arm-tdep.c: Update.
2383 * avr-tdep.c: Update.
2384 * cris-tdep.c: Update.
2385 * csky-tdep.c: Update.
2386 * frv-tdep.c: Update.
2387 * hppa-linux-tdep.c: Update.
2388 * hppa-tdep.c: Update.
2389 * hppa-tdep.h: Update.
2390 * lm32-tdep.c: Update.
2391 * m32r-linux-tdep.c: Update.
2392 * m32r-tdep.c: Update.
2393 * m68hc11-tdep.c: Update.
2394 * mips-tdep.c: Update.
2395 * moxie-tdep.c: Update.
2396 * riscv-tdep.c: Update.
2397 * rs6000-tdep.c: Update.
2398 * s390-linux-tdep.c: Update.
2399 * s390-tdep.c: Update.
2400 * score-tdep.c: Update.
2401 * sparc-netbsd-tdep.c: Update.
2402 * sparc-sol2-tdep.c: Update.
2403 * sparc64-fbsd-tdep.c: Update.
2404 * sparc64-netbsd-tdep.c: Update.
2405 * sparc64-obsd-tdep.c: Update.
2406 * sparc64-sol2-tdep.c: Update.
2407 * tilegx-tdep.c: Update.
2408 * v850-tdep.c: Update.
2409 * vax-tdep.c: Update.
2410
2411 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2412 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2413
2414 * trad-frame.c: Update.
2415 Remove TF_REG_* enum.
2416 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2417 a trivially-constructible struct.
2418 (trad_frame_reset_saved_regs): Adjust to use member function.
2419 (trad_frame_value_p): Likewise.
2420 (trad_frame_addr_p): Likewise.
2421 (trad_frame_realreg_p): Likewise.
2422 (trad_frame_value_bytes_p): Likewise.
2423 (trad_frame_set_value): Likewise.
2424 (trad_frame_set_realreg): Likewise.
2425 (trad_frame_set_addr): Likewise.
2426 (trad_frame_set_unknown): Likewise.
2427 (trad_frame_set_value_bytes): Likewise.
2428 (trad_frame_get_prev_register): Likewise.
2429 * trad-frame.h: Update.
2430 (trad_frame_saved_reg_kind): New enum.
2431 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2432 <m_kind, m_reg>: New member fields.
2433 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2434 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2435 <is_addr, is_unknown, is_value_bytes>: New member functions.
2436
9898e882
SM
24372021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2438
2439 * target-float.c: Fix typos.
2440
b66b4e65
HD
24412021-01-02 Hannes Domani <ssbssa@yahoo.de>
2442
2443 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2444
b5b5650a
JB
24452021-01-01 Joel Brobecker <brobecker@adacore.com>
2446
2447 * gdbarch.sh: Update copyright year range.
2448
3666a048
JB
24492021-01-01 Joel Brobecker <brobecker@adacore.com>
2450
2451 Update copyright year range in copyright header of all GDB files.
2452
ff7e39b6
JB
24532021-01-01 Joel Brobecker <brobecker@adacore.com>
2454
2455 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2456 to the list of directories to update.
2457
2b47c078
JB
24582021-01-01 Joel Brobecker <brobecker@adacore.com>
2459
2460 * top.c (print_gdb_version): Update copyright year.
2461
476923f1 24622021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2463
476923f1 2464 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2465
476923f1 2466For older changes see ChangeLog-2020.
c906108c
SS
2467\f
2468Local Variables:
2469mode: change-log
2470left-margin: 8
2471fill-column: 74
2472version-control: never
57da7796 2473coding: utf-8
c906108c 2474End: