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