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