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