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