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