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