Split out ada_unop_atr
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b84564fc
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * ada-lang.c (ada_unop_atr): New function.
4 (ada_evaluate_subexp): Use it.
5
b467efaa
TT
62021-03-08 Tom Tromey <tom@tromey.com>
7
8 * ada-lang.c (ada_binop_in_bounds): New function.
9 (ada_evaluate_subexp): Use it.
10
5ce19db8
TT
112021-03-08 Tom Tromey <tom@tromey.com>
12
13 * ada-lang.c (ada_ternop_slice): New function.
14 (ada_evaluate_subexp): Use it.
15
214b13ac
TT
162021-03-08 Tom Tromey <tom@tromey.com>
17
18 * ada-lang.c (ada_equal_binop): New function.
19 (ada_evaluate_subexp): Use it.
20
faa1dfd7
TT
212021-03-08 Tom Tromey <tom@tromey.com>
22
23 * ada-lang.c (ada_mult_binop): New function.
24 (ada_evaluate_subexp): Use it.
25
d05e24e6
TT
262021-03-08 Tom Tromey <tom@tromey.com>
27
28 * ada-lang.c (ada_abs): New function.
29 (ada_evaluate_subexp): Use it.
30
68c75735
TT
312021-03-08 Tom Tromey <tom@tromey.com>
32
33 * ada-lang.c (ada_atr_size): New function.
34 (ada_evaluate_subexp): Use it.
35
020dbabe
TT
362021-03-08 Tom Tromey <tom@tromey.com>
37
38 * ada-lang.c (ada_atr_tag): New function.
39 (ada_evaluate_subexp): Use it.
40
7efc87ff
TT
412021-03-08 Tom Tromey <tom@tromey.com>
42
43 * ada-lang.c (ada_unop_in_range): New function.
44 (ada_evaluate_subexp): Use it.
45
82390ab8
TT
462021-03-08 Tom Tromey <tom@tromey.com>
47
48 * ada-lang.c (ada_unop_neg): New function.
49 (ada_evaluate_subexp): Use it.
50
62d4bd94
TT
512021-03-08 Tom Tromey <tom@tromey.com>
52
53 * ada-lang.c (eval_ternop_in_range): New function.
54 (ada_evaluate_subexp): Use it.
55
3634f669
TT
562021-03-08 Tom Tromey <tom@tromey.com>
57
58 * opencl-lang.c (eval_opencl_assign): New function.
59 (evaluate_subexp_opencl): Use it.
60
5e80600e
TT
612021-03-08 Tom Tromey <tom@tromey.com>
62
63 * eval.c (eval_op_objc_msgcall): New function.
64 (evaluate_subexp_standard): Use it.
65
fb5ba2ab
TT
662021-03-08 Tom Tromey <tom@tromey.com>
67
68 * eval.c (eval_binop_assign_modify): New function.
69 (evaluate_subexp_standard): Use it.
70
a49881f7
TT
712021-03-08 Tom Tromey <tom@tromey.com>
72
73 * m2-lang.c (eval_op_m2_subscript): New function.
74 (evaluate_subexp_modula2): Use it.
75
41bdced5
TT
762021-03-08 Tom Tromey <tom@tromey.com>
77
78 * m2-lang.c (eval_op_m2_high): New function.
79 (evaluate_subexp_modula2): Use it.
80
13ea014a
TT
812021-03-08 Tom Tromey <tom@tromey.com>
82
83 * eval.c (evaluate_subexp_for_address_base): New function.
84 (evaluate_subexp_for_address): Use it.
85 (evaluate_subexp_for_sizeof_base): New function.
86 (evaluate_subexp_for_sizeof): Use it.
87
1fa41fc7
TT
882021-03-08 Tom Tromey <tom@tromey.com>
89
90 * rust-lang.c (eval_op_rust_structop): New function.
91 (rust_evaluate_subexp): Use it.
92
575cae23
TT
932021-03-08 Tom Tromey <tom@tromey.com>
94
95 * rust-lang.c (eval_op_rust_struct_anon): New function.
96 (rust_evaluate_subexp): Use it.
97
05104233
TT
982021-03-08 Tom Tromey <tom@tromey.com>
99
100 * rust-lang.c (eval_op_rust_array): New function.
101 (rust_evaluate_subexp): Use it.
102
6fa9831f
TT
1032021-03-08 Tom Tromey <tom@tromey.com>
104
105 * rust-lang.c (eval_op_rust_complement): New function.
106 (rust_evaluate_subexp): Use it.
107
d123f9e4
TT
1082021-03-08 Tom Tromey <tom@tromey.com>
109
110 * rust-lang.c (eval_op_rust_ind): New function.
111 (rust_evaluate_subexp): Use it.
112
984af2cb
TT
1132021-03-08 Tom Tromey <tom@tromey.com>
114
115 * rust-lang.c (rust_subscript): Change parameters.
116 (rust_evaluate_subexp): Update.
117
d148f803
TT
1182021-03-08 Tom Tromey <tom@tromey.com>
119
120 * rust-lang.c (rust_range): Change parameters.
121 (rust_evaluate_subexp): Update.
122
9cbd1c20
TT
1232021-03-08 Tom Tromey <tom@tromey.com>
124
125 * f-lang.c (eval_op_f_allocated): New function.
126 (evaluate_subexp_f): Use it.
127
3c18c49c
TT
1282021-03-08 Tom Tromey <tom@tromey.com>
129
130 * f-lang.c (fortran_require_array): New function.
131 (evaluate_subexp_f): Use it.
132
216f6fcb
TT
1332021-03-08 Tom Tromey <tom@tromey.com>
134
135 * f-lang.c (eval_op_f_kind): New function.
136 (evaluate_subexp_f): Use it.
137
00f2db6f
TT
1382021-03-08 Tom Tromey <tom@tromey.com>
139
140 * f-lang.c (eval_op_f_cmplx): New function.
141 (evaluate_subexp_f): Use it.
142
93b2b5fa
TT
1432021-03-08 Tom Tromey <tom@tromey.com>
144
145 * f-lang.c (eval_op_f_modulo): New function.
146 (evaluate_subexp_f): Use it.
147
9f1a1f3c
TT
1482021-03-08 Tom Tromey <tom@tromey.com>
149
150 * f-lang.c (eval_op_f_floor): New function.
151 (evaluate_subexp_f): Use it.
152
3dc41f3c
TT
1532021-03-08 Tom Tromey <tom@tromey.com>
154
155 * f-lang.c (eval_op_f_ceil): New function.
156 (evaluate_subexp_f): Use it.
157
e08109f2
TT
1582021-03-08 Tom Tromey <tom@tromey.com>
159
160 * f-lang.c (eval_op_f_mod): New function.
161 (evaluate_subexp_f): Use it.
162
cc05c68e
TT
1632021-03-08 Tom Tromey <tom@tromey.com>
164
165 * f-lang.c (eval_op_f_abs): New function.
166 (evaluate_subexp_f): Use it.
167
aec95807
TT
1682021-03-08 Tom Tromey <tom@tromey.com>
169
170 * eval.c (eval_op_type): New function.
171 (evaluate_subexp_standard): Use it.
172
a220ead5
TT
1732021-03-08 Tom Tromey <tom@tromey.com>
174
175 * eval.c (eval_op_postdec): New function.
176 (evaluate_subexp_standard): Use it.
177
abffe116
TT
1782021-03-08 Tom Tromey <tom@tromey.com>
179
180 * eval.c (eval_op_postinc): New function.
181 (evaluate_subexp_standard): Use it.
182
9e1361b7
TT
1832021-03-08 Tom Tromey <tom@tromey.com>
184
185 * eval.c (eval_op_predec): New file.
186 (evaluate_subexp_standard): Use it.
187
00f50884
TT
1882021-03-08 Tom Tromey <tom@tromey.com>
189
190 * eval.c (eval_op_preinc): New function.
191 (evaluate_subexp_standard): Use it.
192
3aef2a07
TT
1932021-03-08 Tom Tromey <tom@tromey.com>
194
195 * eval.c (eval_op_memval): New function.
196 (evaluate_subexp_standard): Use it.
197
acee9468
TT
1982021-03-08 Tom Tromey <tom@tromey.com>
199
200 * eval.c (eval_op_alignof): New function.
201 (evaluate_subexp_standard): Use it.
202
786f70ee
TT
2032021-03-08 Tom Tromey <tom@tromey.com>
204
205 * eval.c (eval_op_ind): New function.
206 (evaluate_subexp_standard): Use it.
207
24338fb9
TT
2082021-03-08 Tom Tromey <tom@tromey.com>
209
210 * eval.c (eval_op_lognot): New function.
211 (evaluate_subexp_standard): Use it.
212
1f09ec81
TT
2132021-03-08 Tom Tromey <tom@tromey.com>
214
215 * eval.c (eval_op_complement): New function.
216 (evaluate_subexp_standard): Use it.
217
606d105f
TT
2182021-03-08 Tom Tromey <tom@tromey.com>
219
220 * eval.c (eval_op_neg): New function.
221 (evaluate_subexp_standard): Use it.
222
39f288be
TT
2232021-03-08 Tom Tromey <tom@tromey.com>
224
225 * eval.c (eval_op_plus): New function.
226 (evaluate_subexp_standard): Use it.
227
eed70b1c
TT
2282021-03-08 Tom Tromey <tom@tromey.com>
229
230 * eval.c (eval_op_repeat): New function.
231 (evaluate_subexp_standard): Use it.
232
60cdd487
TT
2332021-03-08 Tom Tromey <tom@tromey.com>
234
235 * eval.c (eval_op_leq): New function.
236 (evaluate_subexp_standard): Use it.
237
96e3efd9
TT
2382021-03-08 Tom Tromey <tom@tromey.com>
239
240 * eval.c (eval_op_geq): New function.
241 (evaluate_subexp_standard): Use it.
242
1f78d732
TT
2432021-03-08 Tom Tromey <tom@tromey.com>
244
245 * eval.c (eval_op_gtr): New function.
246 (evaluate_subexp_standard): Use it.
247
6cad1349
TT
2482021-03-08 Tom Tromey <tom@tromey.com>
249
250 * eval.c (eval_op_less): New function.
251 (evaluate_subexp_standard): Use it.
252
1fcb3559
TT
2532021-03-08 Tom Tromey <tom@tromey.com>
254
255 * eval.c (eval_op_notequal): New function.
256 (evaluate_subexp_standard): Use it.
257
0cc96de8
TT
2582021-03-08 Tom Tromey <tom@tromey.com>
259
260 * eval.c (eval_op_equal): New function.
261 (evaluate_subexp_standard): Use it.
262
288d26bc
TT
2632021-03-08 Tom Tromey <tom@tromey.com>
264
265 * eval.c (eval_op_subscript): New function.
266 (evaluate_subexp_standard): Use it.
267
7cdcdd02
TT
2682021-03-08 Tom Tromey <tom@tromey.com>
269
270 * eval.c (eval_op_binary): New function.
271 (evaluate_subexp_standard): Use it.
272
d9790e22
TT
2732021-03-08 Tom Tromey <tom@tromey.com>
274
275 * eval.c (eval_op_sub): New function.
276 (evaluate_subexp_standard): Use it.
277
aedaf9ac
TT
2782021-03-08 Tom Tromey <tom@tromey.com>
279
280 * eval.c (eval_op_add): New function.
281 (evaluate_subexp_standard): Use it.
282
b7a96ed2
TT
2832021-03-08 Tom Tromey <tom@tromey.com>
284
285 * eval.c (eval_op_member): New function.
286 (evaluate_subexp_standard): Use it.
287
fb461aa3
TT
2882021-03-08 Tom Tromey <tom@tromey.com>
289
290 * eval.c (eval_op_structop_ptr): New function.
291 (evaluate_subexp_standard): Use it.
292
3e96c4fc
TT
2932021-03-08 Tom Tromey <tom@tromey.com>
294
295 * eval.c (eval_op_structop_struct): New function.
296 (evaluate_subexp_standard): Use it.
297
f960a617
TT
2982021-03-08 Tom Tromey <tom@tromey.com>
299
300 * eval.c (eval_op_ternop): New function.
301 (evaluate_subexp_standard): Use it.
302
5c2f201e
TT
3032021-03-08 Tom Tromey <tom@tromey.com>
304
305 * eval.c (eval_op_concat): New function.
306 (evaluate_subexp_standard): Use it.
307
f871bae1
TT
3082021-03-08 Tom Tromey <tom@tromey.com>
309
310 * eval.c (eval_op_objc_selector): New function.
311 (evaluate_subexp_standard): Use it.
312
14a1c64a
TT
3132021-03-08 Tom Tromey <tom@tromey.com>
314
315 * eval.c (eval_op_string): New function.
316 (evaluate_subexp_standard): Use it.
317
ffff730b
TT
3182021-03-08 Tom Tromey <tom@tromey.com>
319
320 * eval.c (eval_op_register): New function.
321 (evaluate_subexp_standard): Use it.
322
9b1d8af6
TT
3232021-03-08 Tom Tromey <tom@tromey.com>
324
325 * eval.c (eval_op_func_static_var): New function.
326 (evaluate_subexp_standard): Use it.
327
c0df9289
TT
3282021-03-08 Tom Tromey <tom@tromey.com>
329
330 * eval.c (eval_op_var_msym_value): New function.
331 (evaluate_subexp_standard): Use it.
332
50b98adc
TT
3332021-03-08 Tom Tromey <tom@tromey.com>
334
335 * eval.c (eval_op_var_entry_value): New function.
336 (evaluate_subexp_standard): Use it.
337
ea2d29f7
TT
3382021-03-08 Tom Tromey <tom@tromey.com>
339
340 * eval.c (eval_op_scope): New function.
341 (evaluate_subexp_standard): Use it.
342
01573d73
TT
3432021-03-06 Chernov Sergey <klen_s@mail.ru>
344
345 PR gdb/27528:
346 * ada-lang.c (ada_fold_name): Use gdb::to_string.
347
9938d15a
TT
3482021-03-06 Tom Tromey <tom@tromey.com>
349
350 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
351 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
352 * dwarf2/read.c (dwarf2_elf_names): No longer static.
353 (locate_dwz_sections, dwz_search_other_debugdirs)
354 (dwarf2_get_dwz_file): Move to dwz.c.
355 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
356 read.h.
357 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
358 (dwarf2_get_dwz_file): Move from read.c.
359
18035655
TT
3602021-03-06 Tom Tromey <tom@tromey.com>
361
362 * debuginfod-support.h: Include scoped_fd.h.
363
a7308ce0
TT
3642021-03-06 Tom Tromey <tom@tromey.com>
365
366 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
367 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
368 (get_abbrev_section_for_cu, read_attribute_value)
369 (get_debug_line_section): Update.
370 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
371
fbedd546
TT
3722021-03-06 Tom Tromey <tom@tromey.com>
373
374 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
375 method.
376 * dwarf2/read.c (section_is_p): Remove.
377 (dwarf2_per_bfd::locate_sections)
378 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
379 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
380 (dwarf2_locate_common_dwp_sections)
381 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
382 Update.
383
c2a62a3d
TT
3842021-03-06 Tom Tromey <tom@tromey.com>
385
386 * xcoffread.c: Include sect-names.h.
387 * symfile.h (struct dwarf2_section_names, struct
388 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
389 * dwarf2/sect-names.h: New file, from symfile.h.
390 * dwarf2/read.c: Include sect-names.h.
391
4444f407
TT
3922021-03-06 Tom Tromey <tom@tromey.com>
393
394 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
395 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
396 (abbrev_table::read): Update.
397 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
398 (struct abbrev_info): Reformat.
399 <attrs>: Now an array.
400 (struct abbrev_table) <alloc_abbrev>: Remove.
401
dd99cf0c
WP
4022021-03-06 Weimin Pan <weimin.pan@oracle.com>
403
404 * ctfread.c (ctf_psymtab_add_enums): New function.
405 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
406
844be3f2
WP
4072021-03-06 Weimin Pan <weimin.pan@oracle.com>
408
409 * ctfread.c (read_func_kind_type): Set up function arguments.
410
b2668f28
AB
4112021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
412 Andrew Burgess <andrew.burgess@embecosm.com>
413
414 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
415 includes.
416 (riscv_csrset): New static global.
417 (riscv_update_csrmap): New function.
418 (riscv_iterate_over_regset_sections): Process CSRs.
419
d782d24b
AB
4202021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * riscv-tdep.c (riscv_feature_name_csr): Define.
423 (riscv_feature_name_cpu): Define.
424 (riscv_feature_name_fpu): Define.
425 (riscv_feature_name_virtual): Define.
426 (riscv_xreg_feature): Use riscv_feature_name_cpu.
427 (riscv_freg_feature): Use riscv_feature_name_fpu.
428 (riscv_virtual_feature): Use riscv_feature_name_virtual.
429 (riscv_csr_feature): Use riscv_feature_name_csr.
430 * riscv-tdep.h (riscv_feature_name_csr): Declare.
431
fb8f3fc0
AB
4322021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
433 Craig Blackmore <craig.blackmore@embecosm.com>
434
435 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
436 (ALLDEPFILES): Add riscv-none-tdep.c.
437 * configure: Regenerate.
438 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
439 support.
440 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
441 * elf-none-tdep.c: New file.
442 * elf-none-tdep.h: New file.
443 * riscv-none-tdep.c: New file.
444
95ce627a
AB
4452021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
446 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * corelow.c: Add 'xml-tdesc.h' include.
449 (core_target::read_description): Load the target description from
450 the core file when possible.
451 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
452 note.
453 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
454 (gcore_elf_make_tdesc_note): New function.
455 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
456 * linux-tdep.c (linux_make_corefile_notes): Add target description
457 note.
458
f3a5df7b
AB
4592021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 * Makefile.in (SFILES): Add gcore-elf.c.
462 (HFILES_NO_SRCDIR): Add gcore-elf.h
463 * configure: Regenerate.
464 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
465 support.
466 * fbsd-tdep.c: Add 'gcore-elf.h' include.
467 (struct fbsd_collect_regset_section_cb_data): Delete.
468 (fbsd_collect_regset_section_cb): Delete.
469 (fbsd_collect_thread_registers): Delete.
470 (struct fbsd_corefile_thread_data): Delete.
471 (fbsd_corefile_thread): Delete.
472 (fbsd_make_corefile_notes): Call
473 gcore_elf_build_thread_register_notes instead of the now deleted
474 FreeBSD code.
475 * gcore-elf.c: New file, the content was moved here from
476 linux-tdep.c, functions were renamed and given minor cleanup.
477 * gcore-elf.h: New file.
478 * gcore.c (gcore_find_signalled_thread): Moved here from
479 linux-tdep.c and given a new name. Minor cleanups.
480 * gcore.h (gcore_find_signalled_thread): Declare.
481 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
482 (struct linux_collect_regset_section_cb_data): Delete.
483 (linux_collect_regset_section_cb): Delete.
484 (linux_collect_thread_registers): Delete.
485 (linux_corefile_thread): Call
486 gcore_elf_build_thread_register_notes.
487 (find_signalled_thread): Delete.
488 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
489
d1e93af6
SM
4902021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
491
492 PR gdb/27147
493 * sparc-nat.h (sparc_fetch_inferior_registers): Add
494 process_stratum_target parameter,
495 sparc_store_inferior_registers): update callers.
496 * sparc-nat.c (sparc_fetch_inferior_registers,
497 sparc_store_inferior_registers): Add process_stratum_target
498 parameter. Switch current thread before calling
499 sparc_supply_gregset / sparc_collect_rwindow.
500 (sparc_store_inferior_registers): Likewise.
501 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
502 (sparc32obsd_collect_uthread): Likewise.
503 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
504 Add assertion.
505 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
506 sparc64obsd_supply_uthread): Add assertion.
507
1178743e
TT
5082021-03-04 Tom Tromey <tromey@adacore.com>
509
510 * ada-lang.c (struct match_data) <found_sym>: Now bool.
511 (aux_add_nonlocal_symbols): Update.
512 (ada_add_block_symbols): Change "found_sym" to bool.
513
1bfa81ac
TT
5142021-03-03 Tom Tromey <tromey@adacore.com>
515
516 * ada-lang.c (ada_resolve_function): Update comment.
517 (is_nonfunction, add_symbols_from_enclosing_procs)
518 (remove_extra_symbols): Likewise.
519 (struct match_data): Add constructor, initializers.
520 (add_nonlocal_symbols): Remove memset.
521 (aux_add_nonlocal_symbols): Update comment.
522 (ada_add_block_renamings, add_nonlocal_symbols)
523 (ada_add_all_symbols): Likewise.
524 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
525
bbcdf9ab
TT
5262021-03-02 Tom Tromey <tromey@adacore.com>
527
528 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
529 (cast_to_gnat_encoded_fixed_point_type): Remove.
530 (ada_value_cast, ada_evaluate_subexp): Update.
531 (gnat_encoded_fixed_point_type_info)
532 (ada_is_gnat_encoded_fixed_point_type)
533 (gnat_encoded_fixed_point_delta)
534 (gnat_encoded_fixed_point_scaling_factor): Remove.
535 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
536 (gnat_encoded_fixed_point_delta)
537 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
538 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
539 (ada_print_type): Update.
540 * ada-valprint.c (ada_value_print_num): Update.
541 * dwarf2/read.c (ada_get_gnat_encoded_number)
542 (ada_get_gnat_encoded_ratio): New functions.
543 (finish_fixed_point_type): Use them. Add parameters.
544 (GNAT_FIXED_POINT_SUFFIX): New define.
545 (gnat_encoded_fixed_point_type_info): New function.
546 (read_base_type): Handle gnat encodings.
547
5f9febe0
TT
5482021-03-02 Tom Tromey <tromey@adacore.com>
549
550 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
551 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
552 std::string.
553 (GROW_VECT): Remove.
554 (grow_vect): Remove.
555
d1183b06
TT
5562021-03-02 Tom Tromey <tromey@adacore.com>
557
558 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
559 * ada-lang.c (resolve_subexp): Update.
560 (ada_resolve_function): Accept a vector.
561 (is_nonfunction, add_defn_to_vec)
562 (add_symbols_from_enclosing_procs): Likewise.
563 (num_defns_collected, defns_collected): Remove.
564 (remove_extra_symbols): Return a vector.
565 (remove_irrelevant_renamings): Return void.
566 (ada_add_local_symbols): Accept a vector.
567 (struct match_data) <obstackp>: Remove.
568 <resultp>: New member.
569 (aux_add_nonlocal_symbols): Update.
570 (ada_add_block_renamings, add_nonlocal_symbols)
571 (ada_add_all_symbols): Accept a vector.
572 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
573 vector.
574 (ada_lookup_symbol): Update.
575 (ada_add_block_symbols): Accept a vector.
576 (get_var_value, iterate_over_symbols): Update.
577 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
578 Update.
579
886d459f
TT
5802021-03-02 Tom Tromey <tromey@adacore.com>
581
582 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
583
bdcccc56
TT
5842021-03-02 Tom Tromey <tromey@adacore.com>
585
586 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
587 auto_obstack.
588 <root>: Initialize.
589 (ada_pspace_data): Remove destructor.
590 <sym_cache>: Now a unique_ptr.
591 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
592 (ada_get_symbol_cache): Use 'new'.
593 (ada_clear_symbol_cache): Rewrite.
594
1228719f
TT
5952021-03-02 Tom Tromey <tromey@adacore.com>
596
597 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
598 is null.
599
bb3a4efe
LS
6002021-02-27 Lancelot Six <lsix@lancelotsix.com>
601
602 PR gdb/27393
603 * source.c (add_path): Skip empty dirnames.
604
26b43ca6 6052021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
606
607 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
608 include order for <sys/ptrace.h> and <asm/ptrace.h>.
609
dffdd8b5
SM
6102021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
611
612 PR gdb/26861
613 * target.c (target_mourn_inferior): Only compare pids in
614 target_mourn_inferior.
615
64d38fdd
JM
6162021-02-25 Jan Matyas <jmatyas@codasip.com>
617
618 PR gdb/26819
619 * remote.c (remote_target::start_remote): Ensure the single
620 thread, automatically added for remote targets without the
621 concept of threading, is initially in set to the "resumed"
622 state.
623 * remote.c (remote_target::add_current_inferior_and_thread):
624 Add return value - return the main thread.
625
2450ad54
JV
6262021-02-25 Jan Vrany <jan.vrany@labware.com>
627
628 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
629 (mi_tsv_created): Likewise.
630 (mi_tsv_deleted): Likewise.
631
30c80d88
TV
6322021-02-25 Tom de Vries <tdevries@suse.de>
633
634 PR symtab/27354
635 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
636 section_kind for &dwo_file->sections.info.
637
68337b8b
AB
6382021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 PR fortran/26155
641 * f-lang.c (fortran_argument_convert): Delete declaration.
642 (fortran_prepare_argument): New function.
643 (evaluate_subexp_f): Move logic to new function
644 fortran_prepare_argument.
645
faeb9f13
AB
6462021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * f-exp.y (f77_keywords): Add 'associated'.
649 * f-lang.c (fortran_associated): New function.
650 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
651 (operator_length_f): Likewise.
652 (print_unop_or_binop_subexp_f): New function.
653 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
654 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
655 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
656 (operator_check_f): Likewise.
657 * std-operator.def: Add FORTRAN_ASSOCIATED.
658
170f4b23
AB
6592021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * f-exp.y (fortran_operators): Add ".xor.".
662
aa659cfa
TV
6632021-02-24 Tom de Vries <tdevries@suse.de>
664
665 PR symtab/27336
666 * dwarf2/attribute.c (attribute::form_is_signed): New function
667 factored out of ...
668 * dwarf2/attribute.h (attribute::as_signed): ... here.
669 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
670 (attribute::form_is_signed): Declare.
671 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
672 for DW_AT_decl_file.
673
268c77c1
KB
6742021-02-24 Kevin Buettner <kevinb@redhat.com>
675
676 * nat/aarch64-linux-hw-point.c: Add comment regarding include
677 order for <sys/ptrace.h> and <asm/ptrace.h>.
678
665af52e
KB
6792021-02-24 Kevin Buettner <kevinb@redhat.com>
680
681 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
682 <sys/ptrace.h>.
683
dd80d750
AB
6842021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * exec.c (set_section_command): Move variable declarations into
687 the function body, and use std::string instead of a fixed size
688 buffer.
689
336aa7b7
AB
6902021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * exec.c (exec_target::get_section_table): Delete member function.
693 (section_table_read_available_memory): Use current_top_target, not
694 just the exec_ops target.
695 * target-delegates.c: Regenerate.
696 * target.c (default_get_section_table): New function.
697 * target.h (target_ops::get_section_table): Change default
698 behaviour to call default_get_section_table.
699 (default_get_section_table): Declare.
700
02f7d26b
AB
7012021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
702
703 * exec.c (exec_target::close): Call new clear_target_sections
704 function.
705 (program_space::add_target_sections): Update name of member
706 variable.
707 (program_space::add_target_sections): Update name of member
708 variable.
709 (program_space::remove_target_sections): Likewise.
710 (exec_one_fork): Use new target_sections member function.
711 (exec_target::get_section_table): Likewise.
712 (exec_target::files_info): Likewise.
713 (set_section_command): Likewise.
714 (exec_set_section_address): Likewise.
715 (exec_target::has_memory): Use new target_sections member
716 function.
717 * progspace.h (program_space::clear_target_sections): New member
718 function.
719 (program_space::target_sections): Rename member variable to
720 m_target_sections, replace with a new member function.
721 (program_space::m_target_sections): New member variable.
722 * solib-dsbt.c (scan_dyntag): Use new member function.
723 * solib-svr4.c (scan_dyntag): Likewise.
724
19cf757a
AB
7252021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
726
727 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
728 return type const.
729 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
730 (section_table_read_available_memory): Make local const.
731 (exec_target::xfer_partial): Make local const.
732 (print_section_info): Make parameter const.
733 * gdb/exec.h (print_section_info): Likewise.
734 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
735 const.
736 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
737 Likewise.
738 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
739 Likewise.
740 * gdb/s390-tdep.c (s390_load): Likewise.
741 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
742 * gdb/solib-svr4.c (scan_dyntag): Likewise.
743 * gdb/target-debug.h (target_debug_print_target_section_table_p):
744 Rename to...
745 (target_debug_print_const_target_section_table_p): ...this.
746 * gdb/target-delegates.c: Regenerate.
747 * gdb/target.c (target_get_section_table): Make return type const.
748 (target_section_by_addr): Likewise. Also make some locals const.
749 (memory_xfer_partial_1): Make some locals const.
750 * gdb/target.h (struct target_ops) <get_section_table>: Make
751 return type const.
752 (target_section_by_addr): Likewise.
753 (target_get_section_table): Likewise.
754
02a79309
AB
7552021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * NEWS: Mention new 'maint info target-sections' command.
758 * maint.c (maintenance_info_target_sections): New function.
759 (_initialize_maint_cmds): Register new command.
760
895b7b4e
AB
7612021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
762
763 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
764 (riscv_features_from_bfd): ...this. Change parameter type to
765 'bfd*', and update as required.
766 (riscv_find_default_target_description): Update call to
767 riscv_features_from_bfd. Select a default xlen based on
768 info.bfd_arch_info.
769 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
770
bc3c0632
AB
7712021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
772
773 * eval.c (evaluate_subexp_standard): Call value_ind for points to
774 dynamic types in UNOP_IND.
775
08ac5771
SM
7762021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
777
778 PR gdb/26828
779 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
780 Instantiate queue.
781 (~dwarf2_queue_guard): Clear queue.
782 (queue_comp_unit): Assert that queue is
783 instantiated.
784 (process_queue): Adjust.
785 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
786
616c069a
SM
7872021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
788
789 PR gdb/26828
790 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
791 to decide whether or not to enqueue it for expansion.
792 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
793 after calling maybe_queue_comp_unit.
794
897608ed
SM
7952021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * linux-nat.c (linux_nat_filter_event): Return void.
798
15908a11
TT
7992021-02-22 Tom Tromey <tromey@adacore.com>
800
801 * solib-svr4.c (enable_break): Update.
802 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
803 type.
804 (target_bfd_reopen): Change parameter type.
805 * bfd-target.h (target_bfd_reopen): Change parameter type.
806
f53fc427
SM
8072021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * thread.c (add_thread_silent): Add assert.
810 (find_thread_ptid): Add assert.
811
de146e19
SM
8122021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
813
814 PR gdb/27435
815 * inf-ptrace.c (struct target_unpusher): Move to target.h.
816 (target_unpush_up): Likewise.
817 * procfs.c (procfs_target::attach): Push target early. Use
818 target_unpush_up to unpush target in case of error.
819 * target.h (struct target_unpusher): Move here.
820 (target_unpush_up): Likewise.
821
8488c357
KB
8222021-02-19 Kevin Buettner <kevinb@redhat.com>
823
824 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
825 (which in turn includes <gnulib/config.h>) before include
826 of <signal.h>.
827
5a9f5403
NC
8282021-02-19 Nelson Chu <nelson.chu@sifive.com>
829
830 PR 27158
831 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
832 (decode_j_type_insn): Likewise.
833 (decode_cj_type_insn): Likewise.
834 (decode_b_type_insn): Likewise.
835 (decode): Likewise.
836
26f53cd3
TT
8372021-02-18 Tom Tromey <tom@tromey.com>
838
839 * expression.h (struct expression) <evaluate>: Declare method.
840 * eval.c (evaluate_subexp): Simplify.
841 (expression::evaluate): New method.
842 (evaluate_expression, evaluate_type): Use expression::evaluate.
843
6a780b67
KB
8442021-02-17 Kevin Buettner <kevinb@redhat.com>
845
846 * ada-lang.c (ada_fold_name): Check for non-empty string prior
847 to accessing it.
848 (ada_lookup_name_info): Likewise.
849
adeab0c5
MF
8502021-02-13 Mike Frysinger <vapier@gentoo.org>
851
852 * aclocal.m4: Regenerate.
853
089436f7
TV
8542021-02-12 Tom de Vries <tdevries@suse.de>
855
856 PR threads/26228
857 * linux-nat.c (lin_thread_get_thread_signals): Remove.
858 (lin_thread_signals): New static var.
859 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
860 New function.
861 * linux-nat.h (lin_thread_get_thread_signals): Remove.
862 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
863 Declare.
864 * linux-thread-db.c (check_thread_signals): Use
865 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
866
96df3e28
AB
8672021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * f-exp.y (f77_keywords): Add allocated.
870 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
871 (operator_length_f): Likewise.
872 (print_subexp_f): Likewise.
873 (dump_subexp_body_f): Likewise.
874 (operator_check_f): Likewise.
875 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
876
05f68f52
TV
8772021-02-11 Tom de Vries <tdevries@suse.de>
878
879 PR symtab/27353
880 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
881 Return true for DW_FORM_strx.
882
b260f8d6
TT
8832021-02-11 Tom Tromey <tromey@adacore.com>
884
885 PR gdb/27383:
886 * parse.c (write_exp_symbol_reference): Write sym.block.
887
bf3386f0
AB
8882021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
889
890 * NEWS: Mention changes to 'maint info sections'.
891 * maint.c (match_substring): Return a bool, fix whitespace issue.
892 (struct single_bfd_flag_info): New struct.
893 (bfd_flag_info): New static global.
894 (match_bfd_flags): Return a bool, use bfd_flag_info.
895 (print_bfd_flags): Use bfd_flag_info.
896 (maint_print_section_info): Delete trailing whitespace.
897 (struct maint_info_sections_opts): New struct.
898 (maint_info_sections_option_defs): New static global.
899 (maint_info_sections_completer): New function.
900 (maintenance_info_sections): Use option parsing mechanism.
901 (_initialize_maint_cmds): Update command help text for 'maint info
902 sections' and register a command completer.
903
4790db14
AB
9042021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
905
906 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
907 functionality merged into...
908 (maint_print_all_sections): ...this new function.
909 (maintenance_info_sections): Make use of maint_print_all_sections,
910 allow all objects to be printed even where there's no executable.
911
1db66e34
AB
9122021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
913
914 * breakpoint.c (resolve_sal_pc): Make use of
915 bound_minimal_symbol::obj_section.
916 * maint.c (maintenance_translate_address): Likewise.
917 * minsyms.c (minimal_symbol_upper_bound): Likewise.
918 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
919 member function.
920 * printcmd.c (info_address_command): Make use of
921 bound_minimal_symbol::obj_section.
922
18b8df43
AM
9232021-02-11 Alan Modra <amodra@gmail.com>
924
925 * arm-symbian-tdep.c: Delete.
926 * NEWS: Mention arm-symbian removal.
927 * Makefile.in: Remove arm-symbian-tdep entries.
928 * configure.tgt: Remove arm*-*-symbianelf*.
929 * doc/gdb.texinfo: Remove mention of SymbianOS.
930 * osabi.c (gdb_osabi_names): Remove "Symbian".
931 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
932 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
933 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
934 handling.
935 * testsuite/gdb.base/dup-sect.exp: Likewise.
936 * testsuite/gdb.base/long_long.exp: Likewise.
937 * testsuite/gdb.base/solib-weak.exp: Likewise.
938 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
939 * testsuite/gdb.python/py-section-script.exp: Likewise.
940 * testsuite/lib/dwarf.exp: Likewise.
941 * testsuite/lib/gdb.exp: Likewise.
942
e92c8eb8
AB
9432021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
944
945 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
946 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
947 (one_or_two_args): New pattern.
948 (f77_keywords): Add lbound and ubound.
949 * f-lang.c (fortran_bounds_all_dims): New function.
950 (fortran_bounds_for_dimension): New function.
951 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
952 (operator_length_f): Likewise.
953 (print_subexp_f): Likewise.
954 (dump_subexp_body_f): Likewise.
955 (operator_check_f): Likewise.
956 * std-operator.def (FORTRAN_LBOUND): Define.
957 (FORTRAN_UBOUND): Define.
958
a52d653e
AB
9592021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
960
961 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
962 and set_section_index member functions where appropriate.
963 * coffread.c (coff_symtab_read): Likewise.
964 (process_coff_symbol): Likewise.
965 * ctfread.c (set_symbol_address): Likewise.
966 * dwarf2/read.c (add_partial_symbol): Likewise.
967 (var_decode_location): Likewise.
968 * language.c: Likewise.
969 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
970 (compact_minimal_symbols): Likewise.
971 (minimal_symbol_upper_bound): Likewise.
972 * objfiles.c (relocate_one_symbol): Likewise.
973 * psympriv.h (partial_symbol::obj_section): Likewise.
974 (partial_symbol::address): Likewise.
975 * psymtab.c (partial_symtab::add_psymbol): Likewise.
976 * stabsread.c (scan_file_globals): Likewise.
977 * symmisc.c (dump_msymbols): Likewise.
978 * symtab.c (general_symbol_info::obj_section): Likewise.
979 (fixup_section): Likewise.
980 (get_msymbol_address): Likewise.
981 * symtab.h (general_symbol_info::section): Rename to...
982 (general_symbol_info::m_section): ...this.
983 (general_symbol_info::set_section_index): New member function.
984 (general_symbol_info::section_index): Likewise.
985 (SYMBOL_SECTION): Delete.
986 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
987 set_section_index member functions where appropriate.
988 (MSYMBOL_SECTION): Delete.
989 (symbol::symbol): Update to initialize 'm_section'.
990 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
991 (process_xcoff_symbol): Likewise.
992
ebbc3a7d
AB
9932021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
994
995 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
996 MSYMBOL_OBJ_SECTION.
997 * findvar.c (language_defn::read_var_value): Likewise.
998 * infcmd.c (jump_command): Likewise.
999 * linespec.c (minsym_found): Likewise.
1000 * maint.c (maintenance_translate_address): Likewise.
1001 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1002 (minimal_symbol_upper_bound): Likewise.
1003 * parse.c (find_minsym_type_and_address): Likewise.
1004 (operator_check_standard): Likewise.
1005 * printcmd.c (info_address_command): Likewise.
1006 * symmisc.c (dump_msymbols): Likewise.
1007 (print_symbol): Likewise.
1008 * symtab.c (general_symbol_info::obj_section): Define new
1009 function.
1010 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1011 (find_pc_sect_compunit_symtab): Likewise.
1012 (find_function_start_sal): Likewise.
1013 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1014 MSYMBOL_OBJ_SECTION.
1015 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1016 function.
1017 (SYMBOL_OBJ_SECTION): Delete.
1018 (MSYMBOL_OBJ_SECTION): Delete.
1019
9bb305b3
TT
10202021-02-09 Tom Tromey <tom@tromey.com>
1021
1022 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1023
cf2b2075
TV
10242021-02-09 Tom de Vries <tdevries@suse.de>
1025
1026 PR symtab/27341
1027 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1028 construct an array type. Add assert to ensure that element_type is
1029 not being modified.
1030
03642b71
AB
10312021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1032
1033 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1034 (gcore_collect_regset_section_cb): Delete.
1035 (gcore_collect_thread_registers): Delete.
1036 (gcore_build_thread_register_notes): Delete.
1037 (gcore_find_signalled_thread): Delete.
1038 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1039 'gdbarch' and 'thread_info' declarations.
1040 (gcore_build_thread_register_notes): Delete declaration.
1041 (gcore_find_signalled_thread): Likewise.
1042 * fbsd-tdep.c: Remove 'gcore.h' include.
1043 (struct fbsd_collect_regset_section_cb_data): New struct.
1044 (fbsd_collect_regset_section_cb): New function.
1045 (fbsd_collect_thread_registers): New function.
1046 (struct fbsd_corefile_thread_data): New struct.
1047 (fbsd_corefile_thread): New function.
1048 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1049 * linux-tdep.c: Remove 'gcore.h' include.
1050 (struct linux_collect_regset_section_cb_data): New struct.
1051 (linux_collect_regset_section_cb): New function.
1052 (linux_collect_thread_registers): New function.
1053 (linux_corefile_thread): Call Linux specific code.
1054 (find_signalled_thread): New function.
1055 (linux_make_corefile_notes): Call find_signalled_thread.
1056
f73e424f
TT
10572021-02-09 Tom Tromey <tromey@adacore.com>
1058
1059 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1060 not_lval value.
1061 * value.c (value_contents_copy_raw): Now static.
1062 * value.h (value_contents_copy_raw): Don't declare.
1063
a4f0544b
TT
10642021-02-09 Tom Tromey <tromey@adacore.com>
1065
1066 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1067 fields.
1068
9b3e4b5d
SV
10692021-02-08 Shahab Vahedi <shahab@synopsys.com>
1070
1071 PR tdep/27369
1072 * arc-linux-tdep.c (handle_atomic_sequence): New.
1073 (arc_linux_software_single_step): Call handle_atomic_sequence().
1074
29db1eb3
AB
10752021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1076
1077 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1078 function.
1079 (REQUIRE_WINDOW): Call is_valid member function.
1080 (REQUIRE_WINDOW_FOR_SETTER): New define.
1081 (gdbpy_tui_is_valid): Call is_valid member function.
1082 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1083 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1084 tui_active too.
1085 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1086 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1087 the function.
1088
e0c23e11
AB
10892021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1092 for the title is not nullptr.
1093
1cf23996
AB
10942021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1095
1096 * tui-layout.c (saved_tui_windows): Delete.
1097 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1098 call new get_windows member function instead.
1099 (tui_get_window_by_name): Check in tui_windows.
1100 (tui_layout_window::apply): Don't add to tui_windows.
1101 * tui-layout.h (tui_layout_base::get_windows): New member function.
1102 (tui_layout_window::get_windows): Likewise.
1103 (tui_layout_split::get_windows): Likewise.
1104
a53a2657
AB
11052021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1106
1107 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1108 of the window objects.
1109
2708dbbd
AB
11102021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * python/python.c (gdbpy_print_stack): Reformat an error message.
1113
cd074e04
AB
11142021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * tui/tui-interp.c (tui_command_line_handler): New function.
1117 (tui_interp::resume): Register tui_command_line_handler as the
1118 input_handler.
1119 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1120 function.
1121 (tui_getc_1): Delete handling of '\n' and '\r'.
1122 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1123
4cf28e91
HD
11242021-02-07 Hannes Domani <ssbssa@yahoo.de>
1125
1126 * tui/tui-regs.c (tui_data_window::display_registers_from):
1127 Mark invisible register sub windows.
1128 (tui_data_window::check_register_values): Ignore invisible
1129 register sub windows.
1130
3537bc23
HD
11312021-02-07 Hannes Domani <ssbssa@yahoo.de>
1132
1133 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1134 n_spaces with a negative value.
1135
5fc2d6aa
HD
11362021-02-07 Hannes Domani <ssbssa@yahoo.de>
1137
1138 * tui/tui-regs.c (tui_data_window::display_registers_from):
1139 Add refresh_window call.
1140
83962f83
HD
11412021-02-07 Hannes Domani <ssbssa@yahoo.de>
1142
1143 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1144
0110ec82
SM
11452021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1146
1147 * symmisc.c (std_in, std_out, std_err): Remove.
1148 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1149
7c6944ab
TV
11502021-02-05 Tom de Vries <tdevries@suse.de>
1151
1152 PR breakpoints/27330
1153 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1154 glibc object file has debug info.
1155
e77b0004
TV
11562021-02-05 Tom de Vries <tdevries@suse.de>
1157
1158 PR symtab/27333
1159 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1160
0e857c82
TV
11612021-02-05 Tom de Vries <tdevries@suse.de>
1162
1163 PR breakpoints/27313
1164 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1165 syscall numbers.
1166
bdfea17e
TT
11672021-02-05 Tom Tromey <tom@tromey.com>
1168
1169 * compile/compile-c-support.c (get_compile_context)
1170 (c_get_compile_context, cplus_get_compile_context): Change return
1171 type.
1172 * language.c (language_defn::get_compile_instance): New method.
1173 * language.h (language_defn::get_compile_instance): Change return
1174 type. No longer inline.
1175 * c-lang.c (c_language::get_compile_instance): Change return type.
1176 (cplus_language::get_compile_instance): Change return type.
1177 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1178 Change return type.
1179 * compile/compile.c (compile_to_object): Update.
1180
1b30f421
TT
11812021-02-05 Tom Tromey <tom@tromey.com>
1182
1183 * parser-defs.h (write_exp_symbol_reference): Declare.
1184 * parse.c (write_exp_symbol_reference): New function.
1185 * p-exp.y (variable): Use write_exp_symbol_reference.
1186 * m2-exp.y (variable): Use write_exp_symbol_reference.
1187 * f-exp.y (variable): Use write_exp_symbol_reference.
1188 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1189 * c-exp.y (variable): Use write_exp_symbol_reference.
1190
ae710496
TV
11912021-02-05 Tom de Vries <tdevries@suse.de>
1192
1193 PR exp/27265
1194 * valarith.c (complex_binop): Throw an error if complex type can't
1195 be created.
1196
d3b54e63
TV
11972021-02-05 Tom de Vries <tdevries@suse.de>
1198
1199 PR symtab/27307
1200 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1201 return.
1202
fc9a13fb
TV
12032021-02-05 Tom de Vries <tdevries@suse.de>
1204
1205 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1206
04b4939b
MF
12072021-02-04 Mike Frysinger <vapier@gentoo.org>
1208
1209 * configure.tgt (riscv*-*-*): Set gdb_sim.
1210
6ff267e1
SM
12112021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * target.c (target_is_non_stop_p): Return bool.
1214 * target.h (target_is_non_stop_p): Return bool.
1215
fdbc5215
SM
12162021-02-04 Simon Marchi <simon.marchi@efficios.com>
1217
1218 * record-full.c (record_full_async_inferior_event_handler):
1219 Don't clear async event handler.
1220 (record_full_base_target::wait): Clear async event handler at
1221 beginning.
1222
85d3ad8e
SM
12232021-02-04 Simon Marchi <simon.marchi@efficios.com>
1224
1225 * record-btrace.c (record_btrace_handle_async_inferior_event):
1226 Don't clear async event handler.
1227 (record_btrace_target::wait): Clear async event handler at
1228 beginning.
1229
baa8575b
SM
12302021-02-04 Simon Marchi <simon.marchi@efficios.com>
1231
1232 * remote.c (remote_target::wait): Clear async event handler at
1233 beginning, mark if needed at the end.
1234 (remote_async_inferior_event_handler): Don't set or clear async
1235 event handler.
1236
6b36ddeb
SM
12372021-02-04 Simon Marchi <simon.marchi@efficios.com>
1238
1239 * async-event.h (async_event_handler_func): Add documentation.
1240 * async-event.c (check_async_event_handlers): Don't clear
1241 async_event_handler ready flag.
1242 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1243 flag.
1244 * record-btrace.c (record_btrace_handle_async_inferior_event):
1245 Likewise.
1246 * record-full.c (record_full_async_inferior_event_handler):
1247 Likewise.
1248 * remote-notif.c (remote_async_get_pending_events_handler):
1249 Likewise.
1250 * remote.c (remote_async_inferior_event_handler): Likewise.
1251
72d383bb
SM
12522021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1253
1254 * infrun.c (handle_inferior_event): Move stop_soon variable to
1255 inner scope.
1256
408f6686
PA
12572021-02-03 Pedro Alves <pedro@palves.net>
1258
1259 * infcmd.c (detach_command): Hold strong reference to target, and
1260 if all-stop on entry, restart threads on exit.
1261 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1262 (restart_stepped_thread): ... this new function. Also handle
1263 trap_expected.
1264 (restart_after_all_stop_detach): New function.
1265 * infrun.h (restart_after_all_stop_detach): Declare.
1266
ac7d717c
PA
12672021-02-03 Pedro Alves <pedro@palves.net>
1268
1269 * infrun.c (struct step_over_info): Initialize fields.
1270 (prepare_for_detach): Handle ongoing in-line step over.
1271
e87f0fe8
PA
12722021-02-03 Pedro Alves <pedro@palves.net>
1273
1274 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1275 here...
1276 * remote.c (remote_target::remote_detach_1): ... and here ...
1277 * target.c (target_detach): ... instead of here.
1278 * target.h (target_ops::detach): Add comment.
1279
8ff53139
PA
12802021-02-03 Pedro Alves <pedro@palves.net>
1281
1282 * infrun.c (struct wait_one_event): Move higher up.
1283 (prepare_for_detach): Abort in-progress displaced steps instead of
1284 letting them complete.
1285 (handle_one): If the inferior is detaching, don't add the thread
1286 back to the global step-over chain.
1287 (restart_threads): Don't restart threads if detaching.
1288 (handle_signal_stop): Remove inferior::detaching reference.
1289
91475068
PA
12902021-02-03 Pedro Alves <pedro@palves.net>
1291
1292 * infrun.c (prepare_for_detach): Don't release scoped_restore
1293 before returning.
1294
d758e62c
PA
12952021-02-03 Pedro Alves <pedro@palves.net>
1296
1297 * infrun.c (handle_one): New function, factored out from ...
1298 (stop_all_threads): ... here.
1299
b0083dd7
PA
13002021-02-03 Pedro Alves <pedro@palves.net>
1301
1302 * remote.c (remote_notif_stop_ack): Don't error out on
1303 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1304 (remote_target::discard_pending_stop_replies): Don't delete
1305 in-flight notification; instead, clear its contents.
1306
621cc310
PA
13072021-02-03 Pedro Alves <pedro@palves.net>
1308
1309 * remote.c (extended_remote_target::attach): Set target async in
1310 the target-non-stop path too.
1311
2ab76a18
PA
13122021-02-03 Pedro Alves <pedro@palves.net>
1313
1314 PR gdb/27055
1315 * infrun.c (handle_signal_stop): Move main context_switch call
1316 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1317
2e3773ff
LS
13182021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1319
1320 * NEWS (Changed commands): Add entry for the behavior change of
1321 the inferior command.
1322 * inferior.c (inferior_command): When no argument is given to the
1323 inferior command, display info about the currently selected
1324 inferior.
1325
e57933dc
SM
13262021-02-02 Simon Marchi <simon.marchi@efficios.com>
1327
1328 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1329 a sect_offset.
1330 (read_attribute_reprocess): Adjust.
1331
2b0c7f41
SM
13322021-02-02 Simon Marchi <simon.marchi@efficios.com>
1333
1334 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1335 <gnu_ranges_base>: ... this...
1336 <rnglists_base>: ... and this.
1337 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1338 <gnu_ranges_base>: ... this...
1339 <rnglists_base>: ... and this.
1340 (read_cutu_die_from_dwo): Adjust
1341 (dwarf2_get_pc_bounds): Adjust
1342 (dwarf2_record_block_ranges): Adjust.
1343 (read_full_die_1): Adjust
1344 (partial_die_info::read): Adjust.
1345 (read_rnglist_index): Adjust.
1346
a1c40103
SM
13472021-02-02 Simon Marchi <simon.marchi@efficios.com>
1348
1349 PR gdb/26813
1350 * dwarf2/read.c (read_loclists_rnglists_header): Add
1351 header_offset parameter and use it.
1352 (read_loclist_index): Read header of the current contribution,
1353 not the one at the beginning of the section.
1354 (read_rnglist_index): Likewise.
1355
b1829e1b
SM
13562021-02-02 Simon Marchi <simon.marchi@efficios.com>
1357
1358 PR gdb/26813
1359 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1360 requires_reprocessing flag.
1361 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1362 DW_FORM_loclistx.
1363 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1364 and DW_FORM_loclistx.
1365 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1366 instead of set_address for DW_FORM_loclistx and
1367 DW_FORM_rnglistx.
1368
0c800c6e
SM
13692021-02-02 Simon Marchi <simon.marchi@efficios.com>
1370
1371 * dwarf2/read.c (read_loclist_index): Remove bound check for
1372 start of offset.
1373 (read_rnglist_index): Likewise.
1374
05787bad
SM
13752021-02-02 Simon Marchi <simon.marchi@efficios.com>
1376
1377 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1378 of the offset.
1379
5e4d9bbc
SM
13802021-02-02 Simon Marchi <simon.marchi@efficios.com>
1381
1382 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1383
a0c1eeba
SM
13842021-02-02 Simon Marchi <simon.marchi@efficios.com>
1385
1386 * dwarf2/read.c (read_loclist_index): Change complaints into
1387 errors.
1388
2bd3e4b8
TV
13892021-02-02 Tom de Vries <tdevries@suse.de>
1390
1391 PR symtab/24620
1392 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1393 psymtab == nullptr.
1394
82a1fd3a
AB
13952021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1398 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1399 here from linux-tdep.c and given a new name. Minor cleanups.
1400 (gcore_collect_regset_section_cb): Likewise.
1401 (gcore_collect_thread_registers): Likewise.
1402 (gcore_build_thread_register_notes): Likewise.
1403 (gcore_find_signalled_thread): Likewise.
1404 * gcore.h (gcore_build_thread_register_notes): Declare.
1405 (gcore_find_signalled_thread): Declare.
1406 * fbsd-tdep.c: Add 'gcore.h' include.
1407 (struct fbsd_collect_regset_section_cb_data): Delete.
1408 (fbsd_collect_regset_section_cb): Delete.
1409 (fbsd_collect_thread_registers): Delete.
1410 (struct fbsd_corefile_thread_data): Delete.
1411 (fbsd_corefile_thread): Delete.
1412 (fbsd_make_corefile_notes): Call
1413 gcore_build_thread_register_notes instead of the now deleted
1414 FreeBSD code.
1415 * linux-tdep.c: Add 'gcore.h' include.
1416 (struct linux_collect_regset_section_cb_data): Delete.
1417 (linux_collect_regset_section_cb): Delete.
1418 (linux_collect_thread_registers): Delete.
1419 (linux_corefile_thread): Call
1420 gcore_build_thread_register_notes.
1421 (find_signalled_thread): Delete.
1422 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1423
ebde6f2d
TV
14242021-01-29 Tom de Vries <tdevries@suse.de>
1425
1426 PR breakpoints/26063
1427 * infrun.c (process_event_stop_test): Reset
1428 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1429 changed.
1430
0f93c3a2
AB
14312021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1434 assert. Extend the header comment.
1435
f237f998
AB
14362021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1439 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1440 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1441 (tui_locator_win_info_ptr): Delete declaration.
1442 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1443 (tui_disasm_window::set_contents): Fetch state from tui_location
1444 global.
1445 (tui_get_begin_asm_address): Likewise.
1446 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1447 for locator window.
1448 (get_locator_window): Delete.
1449 (initialize_known_windows): Treat locator window just like all the
1450 rest.
1451 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1452 (tui_source_window::set_contents): Fetch state from tui_location
1453 global.
1454 (tui_source_window::showing_source_p): Likewise.
1455 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1456 (_locator): Delete.
1457 (tui_locator_win_info_ptr): Delete.
1458 (tui_locator_window::make_status_line): Fetch state from
1459 tui_location global.
1460 (tui_locator_window::rerender): Remove check of 'handle',
1461 reindent function body.
1462 (tui_locator_window::set_locator_fullname): Delete.
1463 (tui_locator_window::set_locator_info): Delete.
1464 (tui_update_locator_fullname): Delete.
1465 (tui_show_frame_info): Likewise.
1466 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1467 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1468 tui/tui-location.h and renamed to
1469 tui_location_tracker::set_location.
1470 (tui_locator_window::set_locator_fullname): Moved to
1471 tui/tui-location.h and renamed to
1472 tui_location_tracker::set_fullname.
1473 (tui_locator_window::full_name): Delete.
1474 (tui_locator_window::proc_name): Delete.
1475 (tui_locator_window::line_no): Delete.
1476 (tui_locator_window::addr): Delete.
1477 (tui_locator_window::gdbarch): Delete.
1478 (tui_update_locator_fullname): Delete declaration.
1479 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1480 for locator window.
1481 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1482 (tui_display_main): Call function on tui_location directly.
1483 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1484 * tui/tui-location.c: New file.
1485 * tui/tui-location.h: New file.
1486
8ee511af
SM
14872021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 * gdbtypes.h (get_type_arch): Rename to...
1490 (struct type) <arch>: ... this, update all users.
1491
6ac37371
SM
14922021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1493
1494 * gdbtypes.h (struct type) <arch>: Rename to...
1495 <arch_owner>: ... this, update all users.
1496 <objfile>: Rename to...
1497 <objfile_owner>: ... this, update all users.
1498
24cf6389
AB
14992021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1500
1501 * gdbcmd.h (execute_command_to_string): Update comment.
1502 * top.c (execute_command_to_string): Update header comment.
1503
2a7f6487
TV
15042021-01-28 Tom de Vries <tdevries@suse.de>
1505
1506 PR breakpoints/27205
1507 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1508 (create_longjmp_master_breakpoint_names): New function, factored out
1509 of ...
1510 (create_longjmp_master_breakpoint): ... here. Only try to install
1511 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1512 breakpoint in libc.so failed.
1513
59b59f08
LS
15142021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1515
1516 PR gdb/27133
1517 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1518 unique_ptr is released when the wrapped pointer is kept for later
1519 use.
1520
807f647c
MM
15212021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1522
1523 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1524 BLR and BR instructions.
1525 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1526 (enum aarch64_masks): New.
1527
4ef367bf
TT
15282021-01-26 Tom Tromey <tromey@adacore.com>
1529
1530 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1531 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1532 (windows_init_thread_list, windows_nat::handle_load_dll)
1533 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1534 (windows_nat_target::resume)
1535 (windows_nat_target::get_windows_debug_event)
1536 (windows_nat_target::interrupt, windows_xfer_memory)
1537 (windows_nat_target::close): Update.
1538 * nat/windows-nat.c (DEBUG_EVENTS): Use
1539 debug_prefixed_printf_cond.
1540 (matching_pending_stop, fetch_pending_stop)
1541 (continue_last_debug_event): Update.
1542
4cb1265b
MS
15432020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1544
1545 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1546 elfcore_write_file_note.
1547
d0cc52bd
SV
15482021-01-26 Shahab Vahedi <shahab@synopsys.com>
1549
1550 * arc-tdep.c (arc_add_reggroups): New function.
1551 (arc_gdbarch_init): Call arc_add_reggroups.
1552
ac3571d9 15532021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
1554
1555 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1556
9f6c202e
TV
15572021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1558 Simon Marchi <simon.marchi@polymtl.ca>
1559 Tom de Vries <tdevries@suse.de>
1560
1561 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1562 DW_AT_ranges.
1563
a625a8c9
TT
15642021-01-25 Tom Tromey <tromey@adacore.com>
1565
1566 * dwarf2/read.c (get_mpz): New function.
1567 (get_dwarf2_rational_constant): Use it.
1568
19184910
TT
15692021-01-25 Tom Tromey <tromey@adacore.com>
1570
1571 * ada-lang.c (resolve_subexp): Handle array context.
1572
b10bae18
TT
15732021-01-23 Tom Tromey <tom@tromey.com>
1574
1575 PR compile/25575
1576 * compile/compile-loc2c.c (note_register): New function.
1577 (pushf_register_address, pushf_register): Use it.
1578
3637a558
TT
15792021-01-23 Tom Tromey <tom@tromey.com>
1580
1581 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1582 Change type of "registers_used".
1583 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1584 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1585 (locexpr_generate_c_location, loclist_generate_c_location): Change
1586 type of "registers_used".
1587 * compile/compile.h (compile_dwarf_expr_to_c)
1588 (compile_dwarf_bounds_to_c): Update.
1589 * compile/compile-loc2c.c (pushf_register_address)
1590 (pushf_register, do_compile_dwarf_expr_to_c)
1591 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
1592 of "registers_used".
1593 * compile/compile-c.h (generate_c_for_variable_locations):
1594 Update.
1595 * compile/compile-c-symbols.c (generate_vla_size)
1596 (generate_c_for_for_one_variable): Change type of
1597 "registers_used".
1598 (generate_c_for_variable_locations): Return std::vector.
1599 * compile/compile-c-support.c (generate_register_struct): Change
1600 type of "registers_used".
1601 (compute): Update.
1602
9f7f6cb8
TT
16032021-01-23 Tom Tromey <tom@tromey.com>
1604
1605 * compile/compile-internal.h (class compile_instance)
1606 <set_arguments>: Change return type.
1607 * compile/compile.c (compile_to_object): Remove call to reset.
1608 (compile_instance::set_arguments): Change return type.
1609
dd5ca05f
SM
16102021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1611
1612 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1613 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1614
d3ee35db
LS
16152021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1616
1617 * Makefile.in (SELFTESTS_SRCS): Add
1618 unittests/gdb_tilde_expand-selftests.c.
1619 * unittests/gdb_tilde_expand-selftests.c: New file.
1620
9d2d8a16
AB
16212021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1622
1623 PR cli/25956
1624 * NEWS: Mention new command.
1625 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1626 (version_style): Define.
1627 (cli_style_option::cli_style_option): Add intensity parameter, and
1628 use as appropriate.
1629 (_initialize_cli_style): Register version style set/show commands.
1630 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1631 (version_style): Declare.
1632 * top.c (print_gdb_version): Use version_stype, and styled_string
1633 to print the GDB version string.
1634
e7b43072
AB
16352021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1636
1637 * utils.c (emit_style_escape): Only emit an escape sequence if the
1638 requested style is different than the current applied style.
1639 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1640 current applied_style.
1641 (fputs_styled): Remove is_default check.
1642 (fputs_styled_unfiltered): Likewise.
1643 (vfprintf_styled_no_gdbfmt): Likewise.
1644
2189c312
SM
16452021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * remote.h (remote_debug_printf): New.
1648 (remote_debug_printf_nofunc): New.
1649 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1650 * remote.c: Use above macros throughout file.
1651
02349803
SM
16522021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1653
1654 * remote.h (remote_debug): Change to bool.
1655 * remote.c (remote_debug): Change to bool.
1656 (_initialize_remote): Adjust.
1657
cda09ec9
SM
16582021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1659
1660 * target.h (remote_debug): Move to...
1661 * remote.h (remote_debug): ... here.
1662 * top.c (remote_debug): Move to...
1663 * remote.c (remote_debug): ... here.
1664 * remote-sim.c: Include remote.h.
1665
baf2b57f
SM
16662021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * cli/cli-cmds.c (show_remote_debug): Remove.
1669 (show_remote_timeout): Remove.
1670 (_initialize_cli_cmds): Don't register commands.
1671 * remote.c (show_remote_debug): Move here.
1672 (show_remote_timeout): Move here.
1673 (_initialize_remote): Register commands.
1674
344e9841
SM
16752021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1676
1677 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
1678 type::objfile method instead.
1679
30625020
SM
16802021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1681
1682 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
1683 use the type::is_objfile_owned method.
1684
5b7d941b
SM
16852021-01-22 Simon Marchi <simon.marchi@efficios.com>
1686
1687 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
1688 (TYPE_OWNER): Remove.
1689 (TYPE_OBJFILE): Adjust.
1690 (struct main_type) <flag_objfile_owned>: Rename to...
1691 <m_flag_objfile_owned>: ... this.
1692 <owner>: Rename to...
1693 <m_owner>: ... this.
1694 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
1695 methods.
1696 (TYPE_ALLOC): Adjust.
1697 * gdbtypes.c (alloc_type): Adjust.
1698 (alloc_type_arch): Adjust.
1699 (alloc_type_copy): Adjust.
1700 (get_type_arch): Adjust.
1701 (smash_type): Adjust.
1702 (lookup_array_range_type): Adjust.
1703 (recursive_dump_type): Adjust.
1704 (copy_type_recursive): Adjust.
1705 * compile/compile-c-types.c (convert_func): Adjust.
1706 (convert_type_basic): Adjust.
1707 * compile/compile-cplus-types.c (compile_cplus_convert_func):
1708 Adjust.
1709 * language.c
1710 (language_arch_info::type_and_symbol::alloc_type_symbol):
1711 Adjust.
1712
d5d24e12
LM
17132021-01-21 Luis Machado <luis.machado@linaro.org>
1714
1715 * coffread.c (enter_linenos): Passing string to complaint.
1716 * valops.c (value_assign): Make array view.
1717
a59902a7
SM
17182021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1719
1720 * auto-load.h (debug_auto_load): Move here.
1721 (auto_load_debug_printf): New.
1722 * auto-load.c: Use auto_load_debug_printf.
1723 (debug_auto_load): Move to header.
1724 * linux-thread-db.c (try_thread_db_load): Use
1725 auto_load_debug_printf.
1726 * main.c (captured_main_1): Likewise.
1727
d3abc0ce
SM
17282021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1729
1730 * f-valprint.c (f77_array_offset_tbl): Remove.
1731
1e15fcac
SM
17322021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1733
1734 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1735
439706e6
SM
17362021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1739 of gdb_select.
1740
325d39e4
HD
17412021-01-21 Hannes Domani <ssbssa@yahoo.de>
1742
1743 PR python/19151
1744 * python/py-breakpoint.c (bppy_get_location): Handle
1745 bp_hardware_breakpoint.
1746 (bppy_init): Likewise.
1747 (gdbpy_breakpoint_created): Likewise.
1748
7cb6d92a
SM
17492021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1750
1751 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1752
d4dd4fca
SM
17532021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1754
1755 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1756 (_initialize_gdb_bfd): Adjust.
1757
de53369b
SM
17582021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1759
1760 PR gdb/26828
1761 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1762
17e593e9
SM
17632021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1764
1765 * dwarf2/read.c (follow_die_offset): Add logging.
1766 (dwarf2_per_objfile::age_comp_units): Add logging.
1767
6bd434d6
SM
17682021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1771 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1772 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1773 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1774 * arm-tdep.c (struct frame_unwind): Make static.
1775 * auto-load.c (auto_load_safe_path_vec): Make static.
1776 * csky-tdep.c (csky_stub_unwind): Make static.
1777 * gdbarch.c (gdbarch_data_registry): Make static.
1778 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1779 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1780 * i386-tdep.c (i386_frame_setup_skip_insns,
1781 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1782 Make static.
1783 * infrun.c (observer_mode): Make static.
1784 * linux-nat.c (sigchld_action): Make static.
1785 * linux-thread-db.c (thread_db_list): Make static.
1786 * maint-test-options.c (maintenance_test_options_list):
1787 * mep-tdep.c (mep_csr_registers): Make static.
1788 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1789 (stats): Make static.
1790 * nat/linux-osdata.c (struct osdata_type): Make static.
1791 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1792 * progspace.c (last_program_space_num): Make static.
1793 * python/py-param.c (struct parm_constant): Remove struct type
1794 name.
1795 (parm_constants): Make static.
1796 * python/py-record-btrace.c (btpy_list_methods): Make static.
1797 * python/py-record.c (recpy_gap_type): Make static.
1798 * record.c (record_goto_cmdlist): Make static.
1799 * regcache.c (regcache_descr_handle): Make static.
1800 * registry.h (DEFINE_REGISTRY): Make definition static.
1801 * symmisc.c (std_in, std_out, std_err): Make static.
1802 * top.c (previous_saved_command_line): Make static.
1803 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1804 static.
1805 * unittests/command-def-selftests.c (nr_duplicates,
1806 nr_invalid_prefixcmd, lists): Make static.
1807 * unittests/observable-selftests.c (test_notification): Make
1808 static.
1809 * unittests/optional/assignment/1.cc (counter): Make static.
1810 * unittests/optional/assignment/2.cc (counter): Make static.
1811 * unittests/optional/assignment/3.cc (counter): Make static.
1812 * unittests/optional/assignment/4.cc (counter): Make static.
1813 * unittests/optional/assignment/5.cc (counter): Make static.
1814 * unittests/optional/assignment/6.cc (counter): Make static.
1815
a6c11cbb
JS
18162021-01-20 Joel Sherrill <joel@rtems.org>
1817
1818 PR gdb/27219
1819 * remote.c (struct remote_thread_info) <resume_state>: Rename
1820 to...
1821 <get_resume_state>: ... this.
1822 (remote_target::resume): Adjust.
1823 (remote_target::commit_resume): Adjust.
1824 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
1825
6f52fdf4
SDJ
18262021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
1827 Tom Tromey <tom@tromey.com>
1828
1829 * stap-probe.c (stap_parse_single_operand): Handle '!'
1830 operator.
1831 (stap_parse_argument_conditionally): Likewise.
1832 Skip spaces after processing open-parenthesis sub-expression.
1833 (stap_parse_argument_1): Skip spaces after call to
1834 stap_parse_argument_conditionally.
1835 Handle case when right-side expression is a parenthesized
1836 sub-expression.
1837 Skip spaces after call to stap_parse_argument_1.
1838
1c3b85ad
LS
18392021-01-19 Lancelot SIX <lsix@lancelotsix.com>
1840
1841 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
1842
a9a87d35
LM
18432021-01-19 Luis Machado <luis.machado@linaro.org>
1844
1845 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
1846 memory and save data.
1847 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
1848 (trad_frame_set_unknown, trad_frame_set_value_bytes)
1849 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1850 (trad_frame_value_bytes_p): Remove.
1851 (trad_frame_reset_saved_regs): Adjust documentation.
1852 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
1853 constructor and reset the state of the registers.
1854 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1855 (trad_frame_value_bytes_p, trad_frame_set_value)
1856 (trad_frame_set_realreg, trad_frame_set_addr)
1857 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
1858 (trad_frame_set_reg_realreg): Update to call member function.
1859 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
1860 (trad_frame_get_prev_register): Likewise.
1861
1862 * aarch64-tdep.c (aarch64_analyze_prologue)
1863 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
1864 (aarch64_prologue_prev_register): Update to use member functions.
1865 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1866 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
1867 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
1868 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
1869 (arm_make_epilogue_frame_cache): Likewise.
1870 * avr-tdep.c (avr_frame_unwind_cache)
1871 (avr_frame_prev_register): Likewise.
1872 * cris-tdep.c (cris_scan_prologue): Likewise.
1873 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
1874 * frv-tdep.c (frv_analyze_prologue): Likewise.
1875 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
1876 * lm32-tdep.c (lm32_frame_cache): Likewise.
1877 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1878 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1879 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
1880 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
1881 (reset_saved_regs): Adjust to set realreg.
1882 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
1883 call member functions.
1884 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
1885 * s390-tdep.c (s390_prologue_frame_unwind_cache)
1886 (s390_backchain_frame_unwind_cache): Likewise.
1887 * score-tdep.c (score7_analyze_prologue)
1888 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
1889 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
1890 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1891 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
1892 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1893 * tilegx-tdep.c (tilegx_analyze_prologue)
1894 (tilegx_frame_cache): Likewise.
1895 * v850-tdep.c (v850_frame_cache): Likewise.
1896 * vax-tdep.c (vax_frame_cache): Likewise.
1897
bdec2917
LM
18982021-01-19 Luis Machado <luis.machado@linaro.org>
1899
1900 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
1901 of buffer + length.
1902 (put_frame_register_bytes): Likewise.
1903 Adjust documentation.
1904 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
1905 (safe_frame_unwind_memory): Likewise.
1906 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
1907 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
1908 gdb::array_view.
1909 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
1910 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
1911 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1912 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
1913 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
1914 * dwarf2/loc.c (rw_pieced_value): Likewise.
1915 * hppa-tdep.c (hppa_frame_cache): Likewise.
1916 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
1917 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
1918 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1919 (i386_linux_rt_sigtramp_start): Likewise.
1920 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1921 * i386-tdep.c (i386_register_to_value): Likewise.
1922 * i387-tdep.c (i387_register_to_value): Likewise.
1923 * ia64-tdep.c (ia64_register_to_value): Likewise.
1924 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
1925 (m32r_linux_rt_sigtramp_start): Likewise.
1926 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
1927 * m68k-tdep.c (m68k_register_to_value): Likewise.
1928 * mips-tdep.c (mips_register_to_value)
1929 (mips_value_to_register): Likewise.
1930 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
1931 (ppcfbsd_sigtramp_frame_cache): Likewise.
1932 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
1933 (ppcobsd_sigtramp_frame_cache): Likewise.
1934 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
1935 (rs6000_register_to_value): Likewise.
1936 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
1937 * tramp-frame.c (tramp_frame_start): Likewise.
1938 * valops.c (value_assign): Likewise.
1939
ccbe4c82
LM
19402021-01-19 Luis Machado <luis.machado@linaro.org>
1941
1942 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
1943 array_view.
1944 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
1945 instead of buffer and size.
1946 (trad_frame_set_reg_value_bytes): Likewise.
1947 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
1948 (trad_frame_set_value_bytes): Likewise.
1949
0e7620dc
MF
19502021-01-18 Mike Frysinger <vapier@gentoo.org>
1951
1952 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
1953
6a9ad81c
AB
19542021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
1955
1956 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
1957 (riscv_fbsd_gregset): Use riscv_supply_regset.
1958 (riscv_fbsd_fpregset): Likewise.
1959 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
1960 (riscv_linux_fregset): Likewise.
1961 * riscv-tdep.c (riscv_supply_regset): Define new function.
1962 * riscv-tdep.h (riscv_supply_regset): Declare new function.
1963
d3d7d1ba
TV
19642021-01-18 Tom de Vries <tdevries@suse.de>
1965
1966 PR tdep/27172
1967 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
1968 New macro.
1969 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
1970 for SEGV_BNDERR.
1971
aa2838cc
SM
19722021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1973
1974 * remote.c (class remote_target) <remote_hostio_send_command,
1975 remote_hostio_parse_result>: Constify parameter.
1976 (remote_hostio_parse_result): Likewise.
1977 (remote_target::remote_hostio_send_command): Adjust.
1978 (remote_target::remote_hostio_pread_vFile): Adjust.
1979 (remote_target::fileio_readlink): Adjust.
1980 (remote_target::fileio_fstat): Adjust.
1981
b5c8f22d
SM
19822021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1983
1984 * remote.c (remote_target::start_remote): Move wait_status to
1985 narrower scope.
1986
e3b2741b
SM
19872021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1988
1989 * remote.c (class remote_target):
1990 <add_current_inferior_and_thread>: Constify parameter.
1991 (stop_reply_extract_thread): Likewise.
1992 (remote_target::get_current_thread): Likewise.
1993 (remote_target::add_current_inferior_and_thread): Likewise.
1994
cecb1912
SM
19952021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1996
1997 * remote.c (class remote_target)
1998 <remote_unpack_thread_info_response,
1999 parse_threadlist_response>: Constify parameter and/or return
2000 value and or local variable.
2001 (stub_unpack_int): Likewise.
2002 (unpack_nibble): Likewise.
2003 (unpack_byte): Likewise.
2004 (unpack_int): Likewise.
2005 (unpack_string): Likewise.
2006 (unpack_threadid): Likewise.
2007 (remote_target::remote_unpack_thread_info_response): Likewise.
2008 (remote_target::parse_threadlist_response): Likewise.
2009
5a11fff0
AB
20102021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2011
2012 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2013
17e89137
LS
20142021-01-14 Lancelot Six <lsix@lancelotsix.com>
2015
2016 * MAINTAINERS (Write After Approval): Add myself.
2017
58eadc4b
BE
20182021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2019
2020 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2021 because is_trivially_default_constructible was first implemented with
2022 gcc-5.
2023
5fae2a2c
TV
20242021-01-14 Tom de Vries <tdevries@suse.de>
2025
2026 PR breakpoints/27151
2027 * objfiles.h (in_plt_section): Handle .plt.sec.
2028
8f66807b
AB
20292021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2030
2031 PR gdb/26819
2032 * remote.c
2033 (remote_target::select_thread_for_ambiguous_stop_reply): New
2034 member function.
2035 (remote_target::process_stop_reply): Call
2036 select_thread_for_ambiguous_stop_reply.
2037
bd497355
SM
20382021-01-13 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * record-btrace.c (class record_btrace_target): Remove.
2041 (record_btrace_target::commit_resume): Remove.
2042 * record-full.c (class record_full_target): Remove.
2043 (record_full_target::commit_resume): Remove.
2044
c9d22089
SM
20452021-01-13 Simon Marchi <simon.marchi@efficios.com>
2046
2047 * remote.c (enum class resume_state): New.
2048 (struct resumed_pending_vcont_info): New.
2049 (struct remote_thread_info) <resume_state, set_not_resumed,
2050 set_resumed_pending_vcont, resumed_pending_vcont_info,
2051 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2052 New.
2053 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2054 (remote_target::remote_add_thread): Adjust.
2055 (remote_target::process_initial_stop_replies): Adjust.
2056 (remote_target::resume): Adjust.
2057 (remote_target::commit_resume): Rely on state in
2058 remote_thread_info and not on tp->executing.
2059 (remote_target::process_stop_reply): Adjust.
2060
d8d1feb4
SM
20612021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * arc-tdep.h (arc_debug_printf): New.
2064 * arc-tdep.c: Use arc_debug_printf.
2065 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2066 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2067 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2068
fb0f5031
SM
20692021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2070
2071 * arc-tdep.h (arc_debug): Change type to bool.
2072 * arc-tdep.c (arc_debug): Change type to bool.
2073 (arc_analyze_prologue): Adjust.
2074 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2075 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2076
5bf7e91b
SM
20772021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2078
2079 * auto-load.c (auto_load_objfile_script_1): Use bool.
2080 (execute_script_contents): Use bool.
2081
db972fce
SM
20822021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2083
2084 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2085 comment here.
2086 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2087 comment to header.
2088 * extension-priv.h (struct extension_language_script_ops)
2089 <auto_load_enabled>: Return bool.
2090 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2091 comment here.
2092 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2093 comment to header.
2094 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2095 move comment here.
2096 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2097 move comment to header.
2098 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2099 move comment here.
2100 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2101 move comment to header.
2102
5e12f48f
SM
21032021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2104
2105 * auto-load.h (file_is_auto_load_safe): Change return type to
2106 bool, move comment here.
2107 * auto-load.c (file_is_auto_load_safe): Change return type and
2108 advice_printed to bool. Move comment to header.
2109
54ca9002
SM
21102021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2111
2112 * jit.c (jit_debug_printf): New, use throughout file.
2113
24a7f1b5
SM
21142021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 * infrun.c (normal_stop): Fix indentation.
2117
fe7a351a
SM
21182021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2119
2120 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2121 declarations to ...
2122 * symfile.h: ... here.
2123 * symfile.c: Update doc.
2124
16e9019e
SM
21252021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2126
2127 * target.h (baud_rate, serial_parity): Move declarations...
2128 * serial.h: ... here.
2129 * main.c: Include serial.h.
2130 * serial.c (baud_rate, serial_parity): Update doc.
2131
b2f2ae0d
SM
21322021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2133
2134 * top.c (pre_init_ui_hook): Remove.
2135
5291fe3c
SP
21362021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2137
2138 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2139 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2140 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2141 * features/aarch64-fpu.xml: Add bfloat16 type.
2142
ce38f5ed
AB
21432021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2144
2145 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2146
7c654b71
AB
21472021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * f-exp.y (dot_ops): Rename to...
2150 (fortran_operators): ...this. Add a header comment. Add symbol
2151 based operators.
2152 (yylex): Update to use fortran_operators not dot_ops. Remove
2153 special handling for '**', this is now included in
2154 fortran_operators.
2155
c6185dce
SM
21562021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2157
2158 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2159 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2160 * aarch64-tdep.c: Use aarch64_debug_printf.
2161
eef401dc
SM
21622021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2163
2164 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2165 file.
2166
062eaacb
SM
21672021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2168
2169 * jit.c (jit_debug): Change type to bool.
2170 (_initialize_jit): Adjust.
2171
54585eee
TT
21722021-01-09 Tom Tromey <tom@tromey.com>
2173
2174 PR compile/23672
2175 * compile/compile.c (compile_to_object): Avoid crash when
2176 osabi_triplet_regexp returns NULL.
2177
bc167b6b
TT
21782021-01-09 Tom Tromey <tom@tromey.com>
2179
2180 * tracepoint.h (class collection_list) <append_exp>: Take a
2181 std::string.
2182 * tracepoint.c (collection_list::append_exp): Take a std::string.
2183 (encode_actions_1): Update.
2184
8fc48b79
TT
21852021-01-08 Tom Tromey <tromey@adacore.com>
2186
2187 * parse.c (parse_expression): Add void_context_p parameter. Use
2188 parse_exp_in_context.
2189 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2190 parse_expression.
2191 (print_command, call_command): Update.
2192 * expression.h (parse_expression): Add void_context_p parameter.
2193
3c8c6de2
AB
21942021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2195
2196 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2197 for internalvar components that have a dynamic location.
2198
1940319c
TV
21992021-01-08 Tom de Vries <tdevries@suse.de>
2200
2201 PR gdb/26881
2202 * breakpoint.c (create_exception_master_breakpoint_probe)
2203 (create_exception_master_breakpoint_hook): Factor out
2204 of ...
2205 (create_exception_master_breakpoint): ... here. Only try to install
2206 the master exception breakpoint in objfile.debug using the
2207 _Unwind_DebugHook method, if the install using probes in objfile
2208 failed.
2209
e3436813
AB
22102021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2211
2212 * f-lang.c (fortran_value_subarray): Call value_from_component.
2213
e904f56d
MF
22142021-01-07 Mike Frysinger <vapier@gentoo.org>
2215
2216 * remote-sim.c: Include memory-map.h.
2217 (gdbsim_target): Define memory_map override.
2218 (gdbsim_target::memory_map): Define.
2219
959d6a67
TT
22202021-01-07 Tom Tromey <tromey@adacore.com>
2221
2222 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2223
d4813f10
TT
22242021-01-07 Tom Tromey <tromey@adacore.com>
2225
2226 * ada-lang.c (add_component_interval): Start loop using vector's
2227 updated size.
2228
b49180ac
TT
22292021-01-06 Tom Tromey <tromey@adacore.com>
2230
2231 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2232 Do not cast result.
2233 * valarith.c (fixed_point_binop): Handle multiplication
2234 and division specially.
2235 * valops.c (value_to_gdb_mpq): New function.
2236 (value_cast_to_fixed_point): Use it.
2237
55195361
HD
22382021-01-05 Hannes Domani <ssbssa@yahoo.de>
2239
2240 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2241 Call wnoutrefresh instead of tui_win_info::refresh_window.
2242
1b6d4bb2
HD
22432021-01-05 Hannes Domani <ssbssa@yahoo.de>
2244
2245 * tui/tui-source.c (tui_source_window::show_line_number):
2246 Redraw second space after line number.
2247
b5ff370e
HD
22482021-01-05 Hannes Domani <ssbssa@yahoo.de>
2249
2250 PR tui/26927
2251 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2252 Fix source pad size in prefresh.
2253 (tui_source_window_base::show_source_content): Grow source pad
2254 if necessary.
2255
c68ea49f
MF
22562021-01-04 Mike Frysinger <vapier@gentoo.org>
2257
2258 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2259 (bfin_frame_align): Use align_down.
2260
e4ad960a
TV
22612021-01-04 Tom de Vries <tdevries@suse.de>
2262
2263 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2264 terminators that do not terminate anything.
2265
3ec3145c
SM
22662021-01-04 Simon Marchi <simon.marchi@efficios.com>
2267
2268 * debug.c (debug_print_depth): New.
2269 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2270 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2271 * infrun.c (start_step_over): Use
2272 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2273 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2274 INFRUN_SCOPED_DEBUG_START_END.
2275 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2276
e71daf80
SM
22772021-01-04 Simon Marchi <simon.marchi@efficios.com>
2278
2279 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2280
335709bc
SM
22812021-01-04 Simon Marchi <simon.marchi@efficios.com>
2282
2283 * utils.c (vfprintf_unfiltered): Print timestamp only when
2284 previous debug output ended with a newline.
2285
098caef4
LM
22862021-01-04 Luis Machado <luis.machado@linaro.org>
2287
2288 Update all users of trad_frame_saved_reg to use the new member
2289 functions.
2290
2291 Remote all struct keywords from declarations of trad_frame_saved_reg
2292 types, except on forward declarations.
2293
2294 * aarch64-tdep.c: Update.
2295 * alpha-mdebug-tdep.c: Update.
2296 * alpha-tdep.c: Update.
2297 * arc-tdep.c: Update.
2298 * arm-tdep.c: Update.
2299 * avr-tdep.c: Update.
2300 * cris-tdep.c: Update.
2301 * csky-tdep.c: Update.
2302 * frv-tdep.c: Update.
2303 * hppa-linux-tdep.c: Update.
2304 * hppa-tdep.c: Update.
2305 * hppa-tdep.h: Update.
2306 * lm32-tdep.c: Update.
2307 * m32r-linux-tdep.c: Update.
2308 * m32r-tdep.c: Update.
2309 * m68hc11-tdep.c: Update.
2310 * mips-tdep.c: Update.
2311 * moxie-tdep.c: Update.
2312 * riscv-tdep.c: Update.
2313 * rs6000-tdep.c: Update.
2314 * s390-linux-tdep.c: Update.
2315 * s390-tdep.c: Update.
2316 * score-tdep.c: Update.
2317 * sparc-netbsd-tdep.c: Update.
2318 * sparc-sol2-tdep.c: Update.
2319 * sparc64-fbsd-tdep.c: Update.
2320 * sparc64-netbsd-tdep.c: Update.
2321 * sparc64-obsd-tdep.c: Update.
2322 * sparc64-sol2-tdep.c: Update.
2323 * tilegx-tdep.c: Update.
2324 * v850-tdep.c: Update.
2325 * vax-tdep.c: Update.
2326
2327 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2328 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2329
2330 * trad-frame.c: Update.
2331 Remove TF_REG_* enum.
2332 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2333 a trivially-constructible struct.
2334 (trad_frame_reset_saved_regs): Adjust to use member function.
2335 (trad_frame_value_p): Likewise.
2336 (trad_frame_addr_p): Likewise.
2337 (trad_frame_realreg_p): Likewise.
2338 (trad_frame_value_bytes_p): Likewise.
2339 (trad_frame_set_value): Likewise.
2340 (trad_frame_set_realreg): Likewise.
2341 (trad_frame_set_addr): Likewise.
2342 (trad_frame_set_unknown): Likewise.
2343 (trad_frame_set_value_bytes): Likewise.
2344 (trad_frame_get_prev_register): Likewise.
2345 * trad-frame.h: Update.
2346 (trad_frame_saved_reg_kind): New enum.
2347 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2348 <m_kind, m_reg>: New member fields.
2349 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2350 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2351 <is_addr, is_unknown, is_value_bytes>: New member functions.
2352
9898e882
SM
23532021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2354
2355 * target-float.c: Fix typos.
2356
b66b4e65
HD
23572021-01-02 Hannes Domani <ssbssa@yahoo.de>
2358
2359 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2360
b5b5650a
JB
23612021-01-01 Joel Brobecker <brobecker@adacore.com>
2362
2363 * gdbarch.sh: Update copyright year range.
2364
3666a048
JB
23652021-01-01 Joel Brobecker <brobecker@adacore.com>
2366
2367 Update copyright year range in copyright header of all GDB files.
2368
ff7e39b6
JB
23692021-01-01 Joel Brobecker <brobecker@adacore.com>
2370
2371 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2372 to the list of directories to update.
2373
2b47c078
JB
23742021-01-01 Joel Brobecker <brobecker@adacore.com>
2375
2376 * top.c (print_gdb_version): Update copyright year.
2377
476923f1 23782021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2379
476923f1 2380 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2381
476923f1 2382For older changes see ChangeLog-2020.
c906108c
SS
2383\f
2384Local Variables:
2385mode: change-log
2386left-margin: 8
2387fill-column: 74
2388version-control: never
57da7796 2389coding: utf-8
c906108c 2390End:
This page took 2.741655 seconds and 4 git commands to generate.