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