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