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