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