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