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