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