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