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