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