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