]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Introduce rust_aggregate_operation
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5947d337
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4 * rust-exp.h (class rust_aggregate_operation): New.
5
e4407a20
TT
62021-03-08 Tom Tromey <tom@tromey.com>
7
8 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
9 No longer static.
10 * rust-exp.h (class rust_struct_anon): New.
11 (class rust_structop): New.
12
9db6b6dd
TT
132021-03-08 Tom Tromey <tom@tromey.com>
14
15 * rust-lang.c (rust_range): No longer static.
16 * rust-exp.h (class rust_range_operation): New.
17
6ce1ad67
TT
182021-03-08 Tom Tromey <tom@tromey.com>
19
20 * rust-lang.c (rust_subscript): No longer static.
21 * rust-exp.h (class rust_subscript_operation): New.
22
11dd3dce
TT
232021-03-08 Tom Tromey <tom@tromey.com>
24
25 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
26 parameter.
27 (rust_evaluate_subexp): Update.
28 * rust-exp.h (class rust_unop_ind_operation): New.
29
6fab4359
TT
302021-03-08 Tom Tromey <tom@tromey.com>
31
32 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
33 longer static. Add "opcode" parameter.
34 (rust_evaluate_subexp): Update.
35 * rust-exp.h: New file.
36
9dcd3e29
TT
372021-03-08 Tom Tromey <tom@tromey.com>
38
39 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
40 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
41 (eval_op_f_kind): No longer static. Add "opcode" parameter.
42 (evaluate_subexp_f): Update.
43 * f-exp.h: New file.
44
fc715eb2
TT
452021-03-08 Tom Tromey <tom@tromey.com>
46
47 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
48 * ada-exp.h (class ada_ternop_range_operation): New.
49
cc6bd32e
TT
502021-03-08 Tom Tromey <tom@tromey.com>
51
52 * ada-lang.c (ada_qual_operation::evaluate): New method.
53 * ada-exp.h (class ada_qual_operation): New.
54
42fecb61
TT
552021-03-08 Tom Tromey <tom@tromey.com>
56
57 * ada-lang.c (ada_string_operation::evaluate): New method.
58 * ada-exp.h (class ada_string_operation): New.
59
03070ee9
TT
602021-03-08 Tom Tromey <tom@tromey.com>
61
62 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
63 * ada-exp.h: New file.
64
821e72d7
TT
652021-03-08 Tom Tromey <tom@tromey.com>
66
67 * expop.h (class multi_subscript_operation): New.
68 * eval.c (multi_subscript_operation::evaluate): New method.
69
085734dd
TT
702021-03-08 Tom Tromey <tom@tromey.com>
71
72 * eval.c (objc_msgcall_operation::evaluate): New method.
73 * c-exp.h (class objc_msgcall_operation): New.
74
e82a5afc
TT
752021-03-08 Tom Tromey <tom@tromey.com>
76
77 * expop.h (class var_value_operation): New.
78 * eval.c (var_value_operation::evaluate)
79 (var_value_operation::evaluate_for_address)
80 (var_value_operation::evaluate_with_coercion)
81 (var_value_operation::evaluate_for_sizeof)
82 (var_value_operation::evaluate_for_cast): New methods.
83 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
84
d9ad79d8
TT
852021-03-08 Tom Tromey <tom@tromey.com>
86
87 * expop.h (cxx_cast_ftype): New typedef.
88 (cxx_cast_operation): New template.
89 (dynamic_cast_operation, reinterpret_cast_operation): New
90 typedefs.
91
292382f4
TT
922021-03-08 Tom Tromey <tom@tromey.com>
93
94 * expop.h (class unop_cast_type_operation): New.
95 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
96 method.
97
165a813a
TT
982021-03-08 Tom Tromey <tom@tromey.com>
99
100 * expop.h (class unop_cast_operation): New.
101 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
102
e5946e16
TT
1032021-03-08 Tom Tromey <tom@tromey.com>
104
105 * expop.h (class assign_modify_operation): New.
106 * eval.c (eval_binop_assign_modify): No longer static.
107 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
108
40786782
TT
1092021-03-08 Tom Tromey <tom@tromey.com>
110
111 * expop.h (class assign_operation): New.
112 * ax-gdb.c (assign_operation::do_generate_ax): New method.
113
44b675c8
TT
1142021-03-08 Tom Tromey <tom@tromey.com>
115
116 * expop.h (class type_instance_operation): New.
117 * eval.c (type_instance_operation::evaluate): New method.
118
f6b42326
TT
1192021-03-08 Tom Tromey <tom@tromey.com>
120
121 * expop.h (class op_this_operation): New.
122 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
123
cbc18219
TT
1242021-03-08 Tom Tromey <tom@tromey.com>
125
126 * expop.h (class unop_memval_operation)
127 (class unop_memval_type_operation): New.
128 * eval.c (eval_op_memval): No longer static.
129 (unop_memval_operation::evaluate_for_address)
130 (unop_memval_type_operation::evaluate_for_address)
131 (unop_memval_operation::evaluate_for_sizeof)
132 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
133 * ax-gdb.c (unop_memval_operation::do_generate_ax)
134 (unop_memval_type_operation::do_generate_ax): New methods.
135
ae4bb61e
TT
1362021-03-08 Tom Tromey <tom@tromey.com>
137
138 * expop.h (class unop_alignof_operation): New.
139 * eval.c (eval_op_alignof): No longer static.
140
85d23bda
TT
1412021-03-08 Tom Tromey <tom@tromey.com>
142
143 * expop.h (class unop_sizeof_operation): New.
144 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
145
14aff815
TT
1462021-03-08 Tom Tromey <tom@tromey.com>
147
148 * expop.h (class unop_addr_operation): New.
149 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
150
929f3aa7
TT
1512021-03-08 Tom Tromey <tom@tromey.com>
152
153 * expop.h (class typeid_operation): New.
154
0af8829e
TT
1552021-03-08 Tom Tromey <tom@tromey.com>
156
157 * expop.h (class decltype_operation): New.
158
4efc574c
TT
1592021-03-08 Tom Tromey <tom@tromey.com>
160
161 * expop.h (class typeof_operation): New.
162
5b5f5140
TT
1632021-03-08 Tom Tromey <tom@tromey.com>
164
165 * expop.h (class type_operation): New.
166 * eval.c (eval_op_type): No longer static.
167
876469ff
TT
1682021-03-08 Tom Tromey <tom@tromey.com>
169
170 * expop.h (class unop_ind_base_operation)
171 (class unop_ind_operation): New.
172 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
173 (unop_ind_base_operation::evaluate_for_address)
174 (unop_ind_base_operation::evaluate_for_sizeof): New method.
175 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
176
6d89e296
TT
1772021-03-08 Tom Tromey <tom@tromey.com>
178
179 * expop.h (unop_incr_operation): New template.
180 (preinc_operation, predec_operation, postinc_operation)
181 (postdec_operation): New typedefs.
182 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
183 (eval_op_postdec): No longer static.
184
9307d17b
TT
1852021-03-08 Tom Tromey <tom@tromey.com>
186
187 * expop.h (unary_ftype): New typedef.
188 (unop_operation, usual_ax_binop_operation): New templates.
189 (unary_plus_operation, unary_neg_operation)
190 (unary_complement_operation, unary_logical_not_operation): New
191 typedefs.
192 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
193 (eval_op_lognot): No longer static.
194 * ax-gdb.c (gen_expr_unop): New function.
195
ae64ba58
TT
1962021-03-08 Tom Tromey <tom@tromey.com>
197
198 * ax-gdb.c (comma_operation::do_generate_ax): New method.
199
d4eff4c1
TT
2002021-03-08 Tom Tromey <tom@tromey.com>
201
202 * expop.h (class repeat_operation): New.
203 * eval.c (eval_op_repeat): No longer static. Remove "op"
204 parameter.
205 (evaluate_subexp_standard): Update.
206 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
207
46916f2b
TT
2082021-03-08 Tom Tromey <tom@tromey.com>
209
210 * expop.h (class comparison_operation): New.
211 (equal_operation, notequal_operation, less_operation)
212 (gtr_operation, geq_operation, leq_operation): New typedefs.
213 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
214 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
215
224d6424
TT
2162021-03-08 Tom Tromey <tom@tromey.com>
217
218 * expop.h (class subscript_operation): New.
219 * eval.c (eval_op_subscript): No longer static.
220
373907ff
TT
2212021-03-08 Tom Tromey <tom@tromey.com>
222
223 * expop.h (class binop_operation, class usual_ax_binop_operation):
224 New.
225 (exp_operation, intdiv_operation, mod_operation, mul_operation)
226 (div_operation, rem_operation, lsh_operation, rsh_operation)
227 (bitwise_and_operation, bitwise_ior_operation)
228 (bitwise_xor_operation): New typedefs.
229 * eval.c (eval_op_binary): No longer static.
230
5133d78b
TT
2312021-03-08 Tom Tromey <tom@tromey.com>
232
233 * expop.h (class sub_operation): New.
234 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
235 (evaluate_subexp_standard): Update.
236
a94323b6
TT
2372021-03-08 Tom Tromey <tom@tromey.com>
238
239 * expop.h (class add_operation): New.
240 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
241 (evaluate_subexp_standard): Update.
242
e51e26a0
TT
2432021-03-08 Tom Tromey <tom@tromey.com>
244
245 * expop.h (class concat_operation): New.
246 * eval.c (eval_op_concat): No longer static. Remove "op"
247 parameter.
248 (evaluate_subexp_standard): Update.
249
07f724a8
TT
2502021-03-08 Tom Tromey <tom@tromey.com>
251
252 * expop.h (class structop_member_operation)
253 (class structop_mptr_operation): New.
254 * eval.c (eval_op_member): No longer static.
255
ab0609be
TT
2562021-03-08 Tom Tromey <tom@tromey.com>
257
258 * expop.h (class structop_ptr_operation): New.
259 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
260 parameter.
261
808b22cf
TT
2622021-03-08 Tom Tromey <tom@tromey.com>
263
264 * expop.h (class structop_base_operation)
265 (class structop_operation): New.
266 * eval.c (eval_op_structop_struct): No longer static.
267
8cfd3e95
TT
2682021-03-08 Tom Tromey <tom@tromey.com>
269
270 * expop.h (class complex_operation): New.
271
09db3700
TT
2722021-03-08 Tom Tromey <tom@tromey.com>
273
274 * eval.c (eval_op_objc_selector): No longer static.
275 * c-exp.h (class objc_selector_operation): New.
276
06dc61b9
TT
2772021-03-08 Tom Tromey <tom@tromey.com>
278
279 * eval.c: Include c-exp.h.
280 * c-exp.h (class objc_nsstring_operation): New.
281
72d0a711
TT
2822021-03-08 Tom Tromey <tom@tromey.com>
283
284 * c-lang.c (c_string_operation::evaluate): New method.
285 * c-exp.h: New file.
286
9186293f
TT
2872021-03-08 Tom Tromey <tom@tromey.com>
288
289 * expop.h (class ternop_cond_operation): New.
290 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
291
1594e0bb
TT
2922021-03-08 Tom Tromey <tom@tromey.com>
293
294 * expop.h (class ternop_slice_operation): New.
295 * eval.c (eval_op_ternop): No longer static.
296
b50db09f
TT
2972021-03-08 Tom Tromey <tom@tromey.com>
298
299 * expop.h (class string_operation): New.
300 * eval.c (eval_op_string): No longer static.
301
e6e01e16
TT
3022021-03-08 Tom Tromey <tom@tromey.com>
303
304 * expop.h (class internalvar_operation): New.
305 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
306
e6985c5e
TT
3072021-03-08 Tom Tromey <tom@tromey.com>
308
309 * expop.h (class bool_operation): New.
310
55bdbff8
TT
3112021-03-08 Tom Tromey <tom@tromey.com>
312
313 * expop.h (class register_operation): New.
314 * eval.c (eval_op_register): No longer static.
315 * ax-gdb.c (register_operation::do_generate_ax): New method.
316
247d935b
TT
3172021-03-08 Tom Tromey <tom@tromey.com>
318
319 * expop.h (class last_operation): New.
320
17679395
TT
3212021-03-08 Tom Tromey <tom@tromey.com>
322
323 * expop.h (class func_static_var_operation): New.
324 * eval.c (eval_op_func_static_var): No longer static.
325
b5cc3923
TT
3262021-03-08 Tom Tromey <tom@tromey.com>
327
328 * expop.h (class var_entry_value_operation): New.
329 * eval.c (eval_op_var_entry_value): No longer static.
330
0c8effa3
TT
3312021-03-08 Tom Tromey <tom@tromey.com>
332
333 * expression.h (class operation) <set_outermost>: New method.
334 * expop.h (class var_msym_value_operation): New.
335 * eval.c (eval_op_var_msym_value): No longer static.
336 (var_msym_value_operation::evaluate_for_address)
337 (var_msym_value_operation::evaluate_for_sizeof)
338 (var_msym_value_operation::evaluate_for_cast): New methods.
339 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
340 method.
341
d336c29e
TT
3422021-03-08 Tom Tromey <tom@tromey.com>
343
344 * expop.h (class long_const_operation): New.
345 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
346
d5ab122c
TT
3472021-03-08 Tom Tromey <tom@tromey.com>
348
349 * expop.h (class scope_operation): New.
350 * eval.c (eval_op_scope): No longer static.
351 (scope_operation::evaluate_for_address): New method.
352 * ax-gdb.c (scope_operation::do_generate_ax): New method.
353
cae26a0c
TT
3542021-03-08 Tom Tromey <tom@tromey.com>
355
356 * expprint.c (float_const_operation::dump): New method.
357 * expop.h (float_data): New typedef.
358 (class float_const_operation): New.
359
75f9892d
TT
3602021-03-08 Tom Tromey <tom@tromey.com>
361
362 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
363 * ax-gdb.c (gen_expr_binop): New function.
364 (gen_expr_structop): Likewise.
365
de401988
TT
3662021-03-08 Tom Tromey <tom@tromey.com>
367
368 * expprint.c (expr::dump_for_expression): New functions.
369 * expop.h (dump_for_expression): New overloads.
370 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
371 Update.
372
e2803273
TT
3732021-03-08 Tom Tromey <tom@tromey.com>
374
375 * expression.h (expr::operation): New class.
376 (expr::make_operation): New function.
377 (expr::operation_up): New typedef.
378 * expop.h: New file.
379 * eval.c (operation::evaluate_for_cast)
380 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
381 New methods.
382 * ax-gdb.c (operation::generate_ax): New method.
383
e18c58f2
TT
3842021-03-08 Tom Tromey <tom@tromey.com>
385
386 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
387 (gen_expr_binop_rest): New overload.
388
c0d7ed8c
TT
3892021-03-08 Tom Tromey <tom@tromey.com>
390
391 * eval.c (eval_multi_subscript): New function.
392 (evaluate_subexp_standard): Use it.
393
dd5fd283
TT
3942021-03-08 Tom Tromey <tom@tromey.com>
395
396 * ada-lang.c (ada_binop_exp): New function.
397 (ada_evaluate_subexp): Use it.
398
3848abd6
TT
3992021-03-08 Tom Tromey <tom@tromey.com>
400
401 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
402 parameters.
403 (ada_evaluate_subexp): Use it.
404
38dc70cf
TT
4052021-03-08 Tom Tromey <tom@tromey.com>
406
407 * ada-lang.c (ada_binop_minmax): New function.
408 (ada_evaluate_subexp): Use it.
409
b84564fc
TT
4102021-03-08 Tom Tromey <tom@tromey.com>
411
412 * ada-lang.c (ada_unop_atr): New function.
413 (ada_evaluate_subexp): Use it.
414
b467efaa
TT
4152021-03-08 Tom Tromey <tom@tromey.com>
416
417 * ada-lang.c (ada_binop_in_bounds): New function.
418 (ada_evaluate_subexp): Use it.
419
5ce19db8
TT
4202021-03-08 Tom Tromey <tom@tromey.com>
421
422 * ada-lang.c (ada_ternop_slice): New function.
423 (ada_evaluate_subexp): Use it.
424
214b13ac
TT
4252021-03-08 Tom Tromey <tom@tromey.com>
426
427 * ada-lang.c (ada_equal_binop): New function.
428 (ada_evaluate_subexp): Use it.
429
faa1dfd7
TT
4302021-03-08 Tom Tromey <tom@tromey.com>
431
432 * ada-lang.c (ada_mult_binop): New function.
433 (ada_evaluate_subexp): Use it.
434
d05e24e6
TT
4352021-03-08 Tom Tromey <tom@tromey.com>
436
437 * ada-lang.c (ada_abs): New function.
438 (ada_evaluate_subexp): Use it.
439
68c75735
TT
4402021-03-08 Tom Tromey <tom@tromey.com>
441
442 * ada-lang.c (ada_atr_size): New function.
443 (ada_evaluate_subexp): Use it.
444
020dbabe
TT
4452021-03-08 Tom Tromey <tom@tromey.com>
446
447 * ada-lang.c (ada_atr_tag): New function.
448 (ada_evaluate_subexp): Use it.
449
7efc87ff
TT
4502021-03-08 Tom Tromey <tom@tromey.com>
451
452 * ada-lang.c (ada_unop_in_range): New function.
453 (ada_evaluate_subexp): Use it.
454
82390ab8
TT
4552021-03-08 Tom Tromey <tom@tromey.com>
456
457 * ada-lang.c (ada_unop_neg): New function.
458 (ada_evaluate_subexp): Use it.
459
62d4bd94
TT
4602021-03-08 Tom Tromey <tom@tromey.com>
461
462 * ada-lang.c (eval_ternop_in_range): New function.
463 (ada_evaluate_subexp): Use it.
464
3634f669
TT
4652021-03-08 Tom Tromey <tom@tromey.com>
466
467 * opencl-lang.c (eval_opencl_assign): New function.
468 (evaluate_subexp_opencl): Use it.
469
5e80600e
TT
4702021-03-08 Tom Tromey <tom@tromey.com>
471
472 * eval.c (eval_op_objc_msgcall): New function.
473 (evaluate_subexp_standard): Use it.
474
fb5ba2ab
TT
4752021-03-08 Tom Tromey <tom@tromey.com>
476
477 * eval.c (eval_binop_assign_modify): New function.
478 (evaluate_subexp_standard): Use it.
479
a49881f7
TT
4802021-03-08 Tom Tromey <tom@tromey.com>
481
482 * m2-lang.c (eval_op_m2_subscript): New function.
483 (evaluate_subexp_modula2): Use it.
484
41bdced5
TT
4852021-03-08 Tom Tromey <tom@tromey.com>
486
487 * m2-lang.c (eval_op_m2_high): New function.
488 (evaluate_subexp_modula2): Use it.
489
13ea014a
TT
4902021-03-08 Tom Tromey <tom@tromey.com>
491
492 * eval.c (evaluate_subexp_for_address_base): New function.
493 (evaluate_subexp_for_address): Use it.
494 (evaluate_subexp_for_sizeof_base): New function.
495 (evaluate_subexp_for_sizeof): Use it.
496
1fa41fc7
TT
4972021-03-08 Tom Tromey <tom@tromey.com>
498
499 * rust-lang.c (eval_op_rust_structop): New function.
500 (rust_evaluate_subexp): Use it.
501
575cae23
TT
5022021-03-08 Tom Tromey <tom@tromey.com>
503
504 * rust-lang.c (eval_op_rust_struct_anon): New function.
505 (rust_evaluate_subexp): Use it.
506
05104233
TT
5072021-03-08 Tom Tromey <tom@tromey.com>
508
509 * rust-lang.c (eval_op_rust_array): New function.
510 (rust_evaluate_subexp): Use it.
511
6fa9831f
TT
5122021-03-08 Tom Tromey <tom@tromey.com>
513
514 * rust-lang.c (eval_op_rust_complement): New function.
515 (rust_evaluate_subexp): Use it.
516
d123f9e4
TT
5172021-03-08 Tom Tromey <tom@tromey.com>
518
519 * rust-lang.c (eval_op_rust_ind): New function.
520 (rust_evaluate_subexp): Use it.
521
984af2cb
TT
5222021-03-08 Tom Tromey <tom@tromey.com>
523
524 * rust-lang.c (rust_subscript): Change parameters.
525 (rust_evaluate_subexp): Update.
526
d148f803
TT
5272021-03-08 Tom Tromey <tom@tromey.com>
528
529 * rust-lang.c (rust_range): Change parameters.
530 (rust_evaluate_subexp): Update.
531
9cbd1c20
TT
5322021-03-08 Tom Tromey <tom@tromey.com>
533
534 * f-lang.c (eval_op_f_allocated): New function.
535 (evaluate_subexp_f): Use it.
536
3c18c49c
TT
5372021-03-08 Tom Tromey <tom@tromey.com>
538
539 * f-lang.c (fortran_require_array): New function.
540 (evaluate_subexp_f): Use it.
541
216f6fcb
TT
5422021-03-08 Tom Tromey <tom@tromey.com>
543
544 * f-lang.c (eval_op_f_kind): New function.
545 (evaluate_subexp_f): Use it.
546
00f2db6f
TT
5472021-03-08 Tom Tromey <tom@tromey.com>
548
549 * f-lang.c (eval_op_f_cmplx): New function.
550 (evaluate_subexp_f): Use it.
551
93b2b5fa
TT
5522021-03-08 Tom Tromey <tom@tromey.com>
553
554 * f-lang.c (eval_op_f_modulo): New function.
555 (evaluate_subexp_f): Use it.
556
9f1a1f3c
TT
5572021-03-08 Tom Tromey <tom@tromey.com>
558
559 * f-lang.c (eval_op_f_floor): New function.
560 (evaluate_subexp_f): Use it.
561
3dc41f3c
TT
5622021-03-08 Tom Tromey <tom@tromey.com>
563
564 * f-lang.c (eval_op_f_ceil): New function.
565 (evaluate_subexp_f): Use it.
566
e08109f2
TT
5672021-03-08 Tom Tromey <tom@tromey.com>
568
569 * f-lang.c (eval_op_f_mod): New function.
570 (evaluate_subexp_f): Use it.
571
cc05c68e
TT
5722021-03-08 Tom Tromey <tom@tromey.com>
573
574 * f-lang.c (eval_op_f_abs): New function.
575 (evaluate_subexp_f): Use it.
576
aec95807
TT
5772021-03-08 Tom Tromey <tom@tromey.com>
578
579 * eval.c (eval_op_type): New function.
580 (evaluate_subexp_standard): Use it.
581
a220ead5
TT
5822021-03-08 Tom Tromey <tom@tromey.com>
583
584 * eval.c (eval_op_postdec): New function.
585 (evaluate_subexp_standard): Use it.
586
abffe116
TT
5872021-03-08 Tom Tromey <tom@tromey.com>
588
589 * eval.c (eval_op_postinc): New function.
590 (evaluate_subexp_standard): Use it.
591
9e1361b7
TT
5922021-03-08 Tom Tromey <tom@tromey.com>
593
594 * eval.c (eval_op_predec): New file.
595 (evaluate_subexp_standard): Use it.
596
00f50884
TT
5972021-03-08 Tom Tromey <tom@tromey.com>
598
599 * eval.c (eval_op_preinc): New function.
600 (evaluate_subexp_standard): Use it.
601
3aef2a07
TT
6022021-03-08 Tom Tromey <tom@tromey.com>
603
604 * eval.c (eval_op_memval): New function.
605 (evaluate_subexp_standard): Use it.
606
acee9468
TT
6072021-03-08 Tom Tromey <tom@tromey.com>
608
609 * eval.c (eval_op_alignof): New function.
610 (evaluate_subexp_standard): Use it.
611
786f70ee
TT
6122021-03-08 Tom Tromey <tom@tromey.com>
613
614 * eval.c (eval_op_ind): New function.
615 (evaluate_subexp_standard): Use it.
616
24338fb9
TT
6172021-03-08 Tom Tromey <tom@tromey.com>
618
619 * eval.c (eval_op_lognot): New function.
620 (evaluate_subexp_standard): Use it.
621
1f09ec81
TT
6222021-03-08 Tom Tromey <tom@tromey.com>
623
624 * eval.c (eval_op_complement): New function.
625 (evaluate_subexp_standard): Use it.
626
606d105f
TT
6272021-03-08 Tom Tromey <tom@tromey.com>
628
629 * eval.c (eval_op_neg): New function.
630 (evaluate_subexp_standard): Use it.
631
39f288be
TT
6322021-03-08 Tom Tromey <tom@tromey.com>
633
634 * eval.c (eval_op_plus): New function.
635 (evaluate_subexp_standard): Use it.
636
eed70b1c
TT
6372021-03-08 Tom Tromey <tom@tromey.com>
638
639 * eval.c (eval_op_repeat): New function.
640 (evaluate_subexp_standard): Use it.
641
60cdd487
TT
6422021-03-08 Tom Tromey <tom@tromey.com>
643
644 * eval.c (eval_op_leq): New function.
645 (evaluate_subexp_standard): Use it.
646
96e3efd9
TT
6472021-03-08 Tom Tromey <tom@tromey.com>
648
649 * eval.c (eval_op_geq): New function.
650 (evaluate_subexp_standard): Use it.
651
1f78d732
TT
6522021-03-08 Tom Tromey <tom@tromey.com>
653
654 * eval.c (eval_op_gtr): New function.
655 (evaluate_subexp_standard): Use it.
656
6cad1349
TT
6572021-03-08 Tom Tromey <tom@tromey.com>
658
659 * eval.c (eval_op_less): New function.
660 (evaluate_subexp_standard): Use it.
661
1fcb3559
TT
6622021-03-08 Tom Tromey <tom@tromey.com>
663
664 * eval.c (eval_op_notequal): New function.
665 (evaluate_subexp_standard): Use it.
666
0cc96de8
TT
6672021-03-08 Tom Tromey <tom@tromey.com>
668
669 * eval.c (eval_op_equal): New function.
670 (evaluate_subexp_standard): Use it.
671
288d26bc
TT
6722021-03-08 Tom Tromey <tom@tromey.com>
673
674 * eval.c (eval_op_subscript): New function.
675 (evaluate_subexp_standard): Use it.
676
7cdcdd02
TT
6772021-03-08 Tom Tromey <tom@tromey.com>
678
679 * eval.c (eval_op_binary): New function.
680 (evaluate_subexp_standard): Use it.
681
d9790e22
TT
6822021-03-08 Tom Tromey <tom@tromey.com>
683
684 * eval.c (eval_op_sub): New function.
685 (evaluate_subexp_standard): Use it.
686
aedaf9ac
TT
6872021-03-08 Tom Tromey <tom@tromey.com>
688
689 * eval.c (eval_op_add): New function.
690 (evaluate_subexp_standard): Use it.
691
b7a96ed2
TT
6922021-03-08 Tom Tromey <tom@tromey.com>
693
694 * eval.c (eval_op_member): New function.
695 (evaluate_subexp_standard): Use it.
696
fb461aa3
TT
6972021-03-08 Tom Tromey <tom@tromey.com>
698
699 * eval.c (eval_op_structop_ptr): New function.
700 (evaluate_subexp_standard): Use it.
701
3e96c4fc
TT
7022021-03-08 Tom Tromey <tom@tromey.com>
703
704 * eval.c (eval_op_structop_struct): New function.
705 (evaluate_subexp_standard): Use it.
706
f960a617
TT
7072021-03-08 Tom Tromey <tom@tromey.com>
708
709 * eval.c (eval_op_ternop): New function.
710 (evaluate_subexp_standard): Use it.
711
5c2f201e
TT
7122021-03-08 Tom Tromey <tom@tromey.com>
713
714 * eval.c (eval_op_concat): New function.
715 (evaluate_subexp_standard): Use it.
716
f871bae1
TT
7172021-03-08 Tom Tromey <tom@tromey.com>
718
719 * eval.c (eval_op_objc_selector): New function.
720 (evaluate_subexp_standard): Use it.
721
14a1c64a
TT
7222021-03-08 Tom Tromey <tom@tromey.com>
723
724 * eval.c (eval_op_string): New function.
725 (evaluate_subexp_standard): Use it.
726
ffff730b
TT
7272021-03-08 Tom Tromey <tom@tromey.com>
728
729 * eval.c (eval_op_register): New function.
730 (evaluate_subexp_standard): Use it.
731
9b1d8af6
TT
7322021-03-08 Tom Tromey <tom@tromey.com>
733
734 * eval.c (eval_op_func_static_var): New function.
735 (evaluate_subexp_standard): Use it.
736
c0df9289
TT
7372021-03-08 Tom Tromey <tom@tromey.com>
738
739 * eval.c (eval_op_var_msym_value): New function.
740 (evaluate_subexp_standard): Use it.
741
50b98adc
TT
7422021-03-08 Tom Tromey <tom@tromey.com>
743
744 * eval.c (eval_op_var_entry_value): New function.
745 (evaluate_subexp_standard): Use it.
746
ea2d29f7
TT
7472021-03-08 Tom Tromey <tom@tromey.com>
748
749 * eval.c (eval_op_scope): New function.
750 (evaluate_subexp_standard): Use it.
751
01573d73
TT
7522021-03-06 Chernov Sergey <klen_s@mail.ru>
753
754 PR gdb/27528:
755 * ada-lang.c (ada_fold_name): Use gdb::to_string.
756
9938d15a
TT
7572021-03-06 Tom Tromey <tom@tromey.com>
758
759 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
760 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
761 * dwarf2/read.c (dwarf2_elf_names): No longer static.
762 (locate_dwz_sections, dwz_search_other_debugdirs)
763 (dwarf2_get_dwz_file): Move to dwz.c.
764 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
765 read.h.
766 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
767 (dwarf2_get_dwz_file): Move from read.c.
768
18035655
TT
7692021-03-06 Tom Tromey <tom@tromey.com>
770
771 * debuginfod-support.h: Include scoped_fd.h.
772
a7308ce0
TT
7732021-03-06 Tom Tromey <tom@tromey.com>
774
775 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
776 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
777 (get_abbrev_section_for_cu, read_attribute_value)
778 (get_debug_line_section): Update.
779 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
780
fbedd546
TT
7812021-03-06 Tom Tromey <tom@tromey.com>
782
783 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
784 method.
785 * dwarf2/read.c (section_is_p): Remove.
786 (dwarf2_per_bfd::locate_sections)
787 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
788 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
789 (dwarf2_locate_common_dwp_sections)
790 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
791 Update.
792
c2a62a3d
TT
7932021-03-06 Tom Tromey <tom@tromey.com>
794
795 * xcoffread.c: Include sect-names.h.
796 * symfile.h (struct dwarf2_section_names, struct
797 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
798 * dwarf2/sect-names.h: New file, from symfile.h.
799 * dwarf2/read.c: Include sect-names.h.
800
4444f407
TT
8012021-03-06 Tom Tromey <tom@tromey.com>
802
803 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
804 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
805 (abbrev_table::read): Update.
806 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
807 (struct abbrev_info): Reformat.
808 <attrs>: Now an array.
809 (struct abbrev_table) <alloc_abbrev>: Remove.
810
dd99cf0c
WP
8112021-03-06 Weimin Pan <weimin.pan@oracle.com>
812
813 * ctfread.c (ctf_psymtab_add_enums): New function.
814 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
815
844be3f2
WP
8162021-03-06 Weimin Pan <weimin.pan@oracle.com>
817
818 * ctfread.c (read_func_kind_type): Set up function arguments.
819
b2668f28
AB
8202021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
821 Andrew Burgess <andrew.burgess@embecosm.com>
822
823 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
824 includes.
825 (riscv_csrset): New static global.
826 (riscv_update_csrmap): New function.
827 (riscv_iterate_over_regset_sections): Process CSRs.
828
d782d24b
AB
8292021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
830
831 * riscv-tdep.c (riscv_feature_name_csr): Define.
832 (riscv_feature_name_cpu): Define.
833 (riscv_feature_name_fpu): Define.
834 (riscv_feature_name_virtual): Define.
835 (riscv_xreg_feature): Use riscv_feature_name_cpu.
836 (riscv_freg_feature): Use riscv_feature_name_fpu.
837 (riscv_virtual_feature): Use riscv_feature_name_virtual.
838 (riscv_csr_feature): Use riscv_feature_name_csr.
839 * riscv-tdep.h (riscv_feature_name_csr): Declare.
840
fb8f3fc0
AB
8412021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
842 Craig Blackmore <craig.blackmore@embecosm.com>
843
844 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
845 (ALLDEPFILES): Add riscv-none-tdep.c.
846 * configure: Regenerate.
847 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
848 support.
849 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
850 * elf-none-tdep.c: New file.
851 * elf-none-tdep.h: New file.
852 * riscv-none-tdep.c: New file.
853
95ce627a
AB
8542021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
855 Andrew Burgess <andrew.burgess@embecosm.com>
856
857 * corelow.c: Add 'xml-tdesc.h' include.
858 (core_target::read_description): Load the target description from
859 the core file when possible.
860 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
861 note.
862 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
863 (gcore_elf_make_tdesc_note): New function.
864 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
865 * linux-tdep.c (linux_make_corefile_notes): Add target description
866 note.
867
f3a5df7b
AB
8682021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
869
870 * Makefile.in (SFILES): Add gcore-elf.c.
871 (HFILES_NO_SRCDIR): Add gcore-elf.h
872 * configure: Regenerate.
873 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
874 support.
875 * fbsd-tdep.c: Add 'gcore-elf.h' include.
876 (struct fbsd_collect_regset_section_cb_data): Delete.
877 (fbsd_collect_regset_section_cb): Delete.
878 (fbsd_collect_thread_registers): Delete.
879 (struct fbsd_corefile_thread_data): Delete.
880 (fbsd_corefile_thread): Delete.
881 (fbsd_make_corefile_notes): Call
882 gcore_elf_build_thread_register_notes instead of the now deleted
883 FreeBSD code.
884 * gcore-elf.c: New file, the content was moved here from
885 linux-tdep.c, functions were renamed and given minor cleanup.
886 * gcore-elf.h: New file.
887 * gcore.c (gcore_find_signalled_thread): Moved here from
888 linux-tdep.c and given a new name. Minor cleanups.
889 * gcore.h (gcore_find_signalled_thread): Declare.
890 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
891 (struct linux_collect_regset_section_cb_data): Delete.
892 (linux_collect_regset_section_cb): Delete.
893 (linux_collect_thread_registers): Delete.
894 (linux_corefile_thread): Call
895 gcore_elf_build_thread_register_notes.
896 (find_signalled_thread): Delete.
897 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
898
d1e93af6
SM
8992021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
900
901 PR gdb/27147
902 * sparc-nat.h (sparc_fetch_inferior_registers): Add
903 process_stratum_target parameter,
904 sparc_store_inferior_registers): update callers.
905 * sparc-nat.c (sparc_fetch_inferior_registers,
906 sparc_store_inferior_registers): Add process_stratum_target
907 parameter. Switch current thread before calling
908 sparc_supply_gregset / sparc_collect_rwindow.
909 (sparc_store_inferior_registers): Likewise.
910 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
911 (sparc32obsd_collect_uthread): Likewise.
912 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
913 Add assertion.
914 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
915 sparc64obsd_supply_uthread): Add assertion.
916
1178743e
TT
9172021-03-04 Tom Tromey <tromey@adacore.com>
918
919 * ada-lang.c (struct match_data) <found_sym>: Now bool.
920 (aux_add_nonlocal_symbols): Update.
921 (ada_add_block_symbols): Change "found_sym" to bool.
922
1bfa81ac
TT
9232021-03-03 Tom Tromey <tromey@adacore.com>
924
925 * ada-lang.c (ada_resolve_function): Update comment.
926 (is_nonfunction, add_symbols_from_enclosing_procs)
927 (remove_extra_symbols): Likewise.
928 (struct match_data): Add constructor, initializers.
929 (add_nonlocal_symbols): Remove memset.
930 (aux_add_nonlocal_symbols): Update comment.
931 (ada_add_block_renamings, add_nonlocal_symbols)
932 (ada_add_all_symbols): Likewise.
933 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
934
bbcdf9ab
TT
9352021-03-02 Tom Tromey <tromey@adacore.com>
936
937 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
938 (cast_to_gnat_encoded_fixed_point_type): Remove.
939 (ada_value_cast, ada_evaluate_subexp): Update.
940 (gnat_encoded_fixed_point_type_info)
941 (ada_is_gnat_encoded_fixed_point_type)
942 (gnat_encoded_fixed_point_delta)
943 (gnat_encoded_fixed_point_scaling_factor): Remove.
944 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
945 (gnat_encoded_fixed_point_delta)
946 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
947 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
948 (ada_print_type): Update.
949 * ada-valprint.c (ada_value_print_num): Update.
950 * dwarf2/read.c (ada_get_gnat_encoded_number)
951 (ada_get_gnat_encoded_ratio): New functions.
952 (finish_fixed_point_type): Use them. Add parameters.
953 (GNAT_FIXED_POINT_SUFFIX): New define.
954 (gnat_encoded_fixed_point_type_info): New function.
955 (read_base_type): Handle gnat encodings.
956
5f9febe0
TT
9572021-03-02 Tom Tromey <tromey@adacore.com>
958
959 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
960 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
961 std::string.
962 (GROW_VECT): Remove.
963 (grow_vect): Remove.
964
d1183b06
TT
9652021-03-02 Tom Tromey <tromey@adacore.com>
966
967 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
968 * ada-lang.c (resolve_subexp): Update.
969 (ada_resolve_function): Accept a vector.
970 (is_nonfunction, add_defn_to_vec)
971 (add_symbols_from_enclosing_procs): Likewise.
972 (num_defns_collected, defns_collected): Remove.
973 (remove_extra_symbols): Return a vector.
974 (remove_irrelevant_renamings): Return void.
975 (ada_add_local_symbols): Accept a vector.
976 (struct match_data) <obstackp>: Remove.
977 <resultp>: New member.
978 (aux_add_nonlocal_symbols): Update.
979 (ada_add_block_renamings, add_nonlocal_symbols)
980 (ada_add_all_symbols): Accept a vector.
981 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
982 vector.
983 (ada_lookup_symbol): Update.
984 (ada_add_block_symbols): Accept a vector.
985 (get_var_value, iterate_over_symbols): Update.
986 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
987 Update.
988
886d459f
TT
9892021-03-02 Tom Tromey <tromey@adacore.com>
990
991 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
992
bdcccc56
TT
9932021-03-02 Tom Tromey <tromey@adacore.com>
994
995 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
996 auto_obstack.
997 <root>: Initialize.
998 (ada_pspace_data): Remove destructor.
999 <sym_cache>: Now a unique_ptr.
1000 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1001 (ada_get_symbol_cache): Use 'new'.
1002 (ada_clear_symbol_cache): Rewrite.
1003
1228719f
TT
10042021-03-02 Tom Tromey <tromey@adacore.com>
1005
1006 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1007 is null.
1008
bb3a4efe
LS
10092021-02-27 Lancelot Six <lsix@lancelotsix.com>
1010
1011 PR gdb/27393
1012 * source.c (add_path): Skip empty dirnames.
1013
26b43ca6 10142021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1015
1016 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1017 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1018
dffdd8b5
SM
10192021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1020
1021 PR gdb/26861
1022 * target.c (target_mourn_inferior): Only compare pids in
1023 target_mourn_inferior.
1024
64d38fdd
JM
10252021-02-25 Jan Matyas <jmatyas@codasip.com>
1026
1027 PR gdb/26819
1028 * remote.c (remote_target::start_remote): Ensure the single
1029 thread, automatically added for remote targets without the
1030 concept of threading, is initially in set to the "resumed"
1031 state.
1032 * remote.c (remote_target::add_current_inferior_and_thread):
1033 Add return value - return the main thread.
1034
2450ad54
JV
10352021-02-25 Jan Vrany <jan.vrany@labware.com>
1036
1037 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1038 (mi_tsv_created): Likewise.
1039 (mi_tsv_deleted): Likewise.
1040
30c80d88
TV
10412021-02-25 Tom de Vries <tdevries@suse.de>
1042
1043 PR symtab/27354
1044 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1045 section_kind for &dwo_file->sections.info.
1046
68337b8b
AB
10472021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1048
1049 PR fortran/26155
1050 * f-lang.c (fortran_argument_convert): Delete declaration.
1051 (fortran_prepare_argument): New function.
1052 (evaluate_subexp_f): Move logic to new function
1053 fortran_prepare_argument.
1054
faeb9f13
AB
10552021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1056
1057 * f-exp.y (f77_keywords): Add 'associated'.
1058 * f-lang.c (fortran_associated): New function.
1059 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1060 (operator_length_f): Likewise.
1061 (print_unop_or_binop_subexp_f): New function.
1062 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1063 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1064 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1065 (operator_check_f): Likewise.
1066 * std-operator.def: Add FORTRAN_ASSOCIATED.
1067
170f4b23
AB
10682021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * f-exp.y (fortran_operators): Add ".xor.".
1071
aa659cfa
TV
10722021-02-24 Tom de Vries <tdevries@suse.de>
1073
1074 PR symtab/27336
1075 * dwarf2/attribute.c (attribute::form_is_signed): New function
1076 factored out of ...
1077 * dwarf2/attribute.h (attribute::as_signed): ... here.
1078 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1079 (attribute::form_is_signed): Declare.
1080 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1081 for DW_AT_decl_file.
1082
268c77c1
KB
10832021-02-24 Kevin Buettner <kevinb@redhat.com>
1084
1085 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1086 order for <sys/ptrace.h> and <asm/ptrace.h>.
1087
665af52e
KB
10882021-02-24 Kevin Buettner <kevinb@redhat.com>
1089
1090 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1091 <sys/ptrace.h>.
1092
dd80d750
AB
10932021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * exec.c (set_section_command): Move variable declarations into
1096 the function body, and use std::string instead of a fixed size
1097 buffer.
1098
336aa7b7
AB
10992021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1100
1101 * exec.c (exec_target::get_section_table): Delete member function.
1102 (section_table_read_available_memory): Use current_top_target, not
1103 just the exec_ops target.
1104 * target-delegates.c: Regenerate.
1105 * target.c (default_get_section_table): New function.
1106 * target.h (target_ops::get_section_table): Change default
1107 behaviour to call default_get_section_table.
1108 (default_get_section_table): Declare.
1109
02f7d26b
AB
11102021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * exec.c (exec_target::close): Call new clear_target_sections
1113 function.
1114 (program_space::add_target_sections): Update name of member
1115 variable.
1116 (program_space::add_target_sections): Update name of member
1117 variable.
1118 (program_space::remove_target_sections): Likewise.
1119 (exec_one_fork): Use new target_sections member function.
1120 (exec_target::get_section_table): Likewise.
1121 (exec_target::files_info): Likewise.
1122 (set_section_command): Likewise.
1123 (exec_set_section_address): Likewise.
1124 (exec_target::has_memory): Use new target_sections member
1125 function.
1126 * progspace.h (program_space::clear_target_sections): New member
1127 function.
1128 (program_space::target_sections): Rename member variable to
1129 m_target_sections, replace with a new member function.
1130 (program_space::m_target_sections): New member variable.
1131 * solib-dsbt.c (scan_dyntag): Use new member function.
1132 * solib-svr4.c (scan_dyntag): Likewise.
1133
19cf757a
AB
11342021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1137 return type const.
1138 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1139 (section_table_read_available_memory): Make local const.
1140 (exec_target::xfer_partial): Make local const.
1141 (print_section_info): Make parameter const.
1142 * gdb/exec.h (print_section_info): Likewise.
1143 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1144 const.
1145 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1146 Likewise.
1147 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1148 Likewise.
1149 * gdb/s390-tdep.c (s390_load): Likewise.
1150 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1151 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1152 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1153 Rename to...
1154 (target_debug_print_const_target_section_table_p): ...this.
1155 * gdb/target-delegates.c: Regenerate.
1156 * gdb/target.c (target_get_section_table): Make return type const.
1157 (target_section_by_addr): Likewise. Also make some locals const.
1158 (memory_xfer_partial_1): Make some locals const.
1159 * gdb/target.h (struct target_ops) <get_section_table>: Make
1160 return type const.
1161 (target_section_by_addr): Likewise.
1162 (target_get_section_table): Likewise.
1163
02a79309
AB
11642021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * NEWS: Mention new 'maint info target-sections' command.
1167 * maint.c (maintenance_info_target_sections): New function.
1168 (_initialize_maint_cmds): Register new command.
1169
895b7b4e
AB
11702021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1173 (riscv_features_from_bfd): ...this. Change parameter type to
1174 'bfd*', and update as required.
1175 (riscv_find_default_target_description): Update call to
1176 riscv_features_from_bfd. Select a default xlen based on
1177 info.bfd_arch_info.
1178 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1179
bc3c0632
AB
11802021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1183 dynamic types in UNOP_IND.
1184
08ac5771
SM
11852021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 PR gdb/26828
1188 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1189 Instantiate queue.
1190 (~dwarf2_queue_guard): Clear queue.
1191 (queue_comp_unit): Assert that queue is
1192 instantiated.
1193 (process_queue): Adjust.
1194 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1195
616c069a
SM
11962021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1197
1198 PR gdb/26828
1199 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1200 to decide whether or not to enqueue it for expansion.
1201 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1202 after calling maybe_queue_comp_unit.
1203
897608ed
SM
12042021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * linux-nat.c (linux_nat_filter_event): Return void.
1207
15908a11
TT
12082021-02-22 Tom Tromey <tromey@adacore.com>
1209
1210 * solib-svr4.c (enable_break): Update.
1211 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1212 type.
1213 (target_bfd_reopen): Change parameter type.
1214 * bfd-target.h (target_bfd_reopen): Change parameter type.
1215
f53fc427
SM
12162021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1217
1218 * thread.c (add_thread_silent): Add assert.
1219 (find_thread_ptid): Add assert.
1220
de146e19
SM
12212021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1222
1223 PR gdb/27435
1224 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1225 (target_unpush_up): Likewise.
1226 * procfs.c (procfs_target::attach): Push target early. Use
1227 target_unpush_up to unpush target in case of error.
1228 * target.h (struct target_unpusher): Move here.
1229 (target_unpush_up): Likewise.
1230
8488c357
KB
12312021-02-19 Kevin Buettner <kevinb@redhat.com>
1232
1233 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1234 (which in turn includes <gnulib/config.h>) before include
1235 of <signal.h>.
1236
5a9f5403
NC
12372021-02-19 Nelson Chu <nelson.chu@sifive.com>
1238
1239 PR 27158
1240 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1241 (decode_j_type_insn): Likewise.
1242 (decode_cj_type_insn): Likewise.
1243 (decode_b_type_insn): Likewise.
1244 (decode): Likewise.
1245
26f53cd3
TT
12462021-02-18 Tom Tromey <tom@tromey.com>
1247
1248 * expression.h (struct expression) <evaluate>: Declare method.
1249 * eval.c (evaluate_subexp): Simplify.
1250 (expression::evaluate): New method.
1251 (evaluate_expression, evaluate_type): Use expression::evaluate.
1252
6a780b67
KB
12532021-02-17 Kevin Buettner <kevinb@redhat.com>
1254
1255 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1256 to accessing it.
1257 (ada_lookup_name_info): Likewise.
1258
adeab0c5
MF
12592021-02-13 Mike Frysinger <vapier@gentoo.org>
1260
1261 * aclocal.m4: Regenerate.
1262
089436f7
TV
12632021-02-12 Tom de Vries <tdevries@suse.de>
1264
1265 PR threads/26228
1266 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1267 (lin_thread_signals): New static var.
1268 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1269 New function.
1270 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1271 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1272 Declare.
1273 * linux-thread-db.c (check_thread_signals): Use
1274 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1275
96df3e28
AB
12762021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * f-exp.y (f77_keywords): Add allocated.
1279 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1280 (operator_length_f): Likewise.
1281 (print_subexp_f): Likewise.
1282 (dump_subexp_body_f): Likewise.
1283 (operator_check_f): Likewise.
1284 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1285
05f68f52
TV
12862021-02-11 Tom de Vries <tdevries@suse.de>
1287
1288 PR symtab/27353
1289 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1290 Return true for DW_FORM_strx.
1291
b260f8d6
TT
12922021-02-11 Tom Tromey <tromey@adacore.com>
1293
1294 PR gdb/27383:
1295 * parse.c (write_exp_symbol_reference): Write sym.block.
1296
bf3386f0
AB
12972021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1298
1299 * NEWS: Mention changes to 'maint info sections'.
1300 * maint.c (match_substring): Return a bool, fix whitespace issue.
1301 (struct single_bfd_flag_info): New struct.
1302 (bfd_flag_info): New static global.
1303 (match_bfd_flags): Return a bool, use bfd_flag_info.
1304 (print_bfd_flags): Use bfd_flag_info.
1305 (maint_print_section_info): Delete trailing whitespace.
1306 (struct maint_info_sections_opts): New struct.
1307 (maint_info_sections_option_defs): New static global.
1308 (maint_info_sections_completer): New function.
1309 (maintenance_info_sections): Use option parsing mechanism.
1310 (_initialize_maint_cmds): Update command help text for 'maint info
1311 sections' and register a command completer.
1312
4790db14
AB
13132021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1316 functionality merged into...
1317 (maint_print_all_sections): ...this new function.
1318 (maintenance_info_sections): Make use of maint_print_all_sections,
1319 allow all objects to be printed even where there's no executable.
1320
1db66e34
AB
13212021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 * breakpoint.c (resolve_sal_pc): Make use of
1324 bound_minimal_symbol::obj_section.
1325 * maint.c (maintenance_translate_address): Likewise.
1326 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1327 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1328 member function.
1329 * printcmd.c (info_address_command): Make use of
1330 bound_minimal_symbol::obj_section.
1331
18b8df43
AM
13322021-02-11 Alan Modra <amodra@gmail.com>
1333
1334 * arm-symbian-tdep.c: Delete.
1335 * NEWS: Mention arm-symbian removal.
1336 * Makefile.in: Remove arm-symbian-tdep entries.
1337 * configure.tgt: Remove arm*-*-symbianelf*.
1338 * doc/gdb.texinfo: Remove mention of SymbianOS.
1339 * osabi.c (gdb_osabi_names): Remove "Symbian".
1340 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1341 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1342 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1343 handling.
1344 * testsuite/gdb.base/dup-sect.exp: Likewise.
1345 * testsuite/gdb.base/long_long.exp: Likewise.
1346 * testsuite/gdb.base/solib-weak.exp: Likewise.
1347 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1348 * testsuite/gdb.python/py-section-script.exp: Likewise.
1349 * testsuite/lib/dwarf.exp: Likewise.
1350 * testsuite/lib/gdb.exp: Likewise.
1351
e92c8eb8
AB
13522021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1355 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1356 (one_or_two_args): New pattern.
1357 (f77_keywords): Add lbound and ubound.
1358 * f-lang.c (fortran_bounds_all_dims): New function.
1359 (fortran_bounds_for_dimension): New function.
1360 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1361 (operator_length_f): Likewise.
1362 (print_subexp_f): Likewise.
1363 (dump_subexp_body_f): Likewise.
1364 (operator_check_f): Likewise.
1365 * std-operator.def (FORTRAN_LBOUND): Define.
1366 (FORTRAN_UBOUND): Define.
1367
a52d653e
AB
13682021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1371 and set_section_index member functions where appropriate.
1372 * coffread.c (coff_symtab_read): Likewise.
1373 (process_coff_symbol): Likewise.
1374 * ctfread.c (set_symbol_address): Likewise.
1375 * dwarf2/read.c (add_partial_symbol): Likewise.
1376 (var_decode_location): Likewise.
1377 * language.c: Likewise.
1378 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1379 (compact_minimal_symbols): Likewise.
1380 (minimal_symbol_upper_bound): Likewise.
1381 * objfiles.c (relocate_one_symbol): Likewise.
1382 * psympriv.h (partial_symbol::obj_section): Likewise.
1383 (partial_symbol::address): Likewise.
1384 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1385 * stabsread.c (scan_file_globals): Likewise.
1386 * symmisc.c (dump_msymbols): Likewise.
1387 * symtab.c (general_symbol_info::obj_section): Likewise.
1388 (fixup_section): Likewise.
1389 (get_msymbol_address): Likewise.
1390 * symtab.h (general_symbol_info::section): Rename to...
1391 (general_symbol_info::m_section): ...this.
1392 (general_symbol_info::set_section_index): New member function.
1393 (general_symbol_info::section_index): Likewise.
1394 (SYMBOL_SECTION): Delete.
1395 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1396 set_section_index member functions where appropriate.
1397 (MSYMBOL_SECTION): Delete.
1398 (symbol::symbol): Update to initialize 'm_section'.
1399 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1400 (process_xcoff_symbol): Likewise.
1401
ebbc3a7d
AB
14022021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1405 MSYMBOL_OBJ_SECTION.
1406 * findvar.c (language_defn::read_var_value): Likewise.
1407 * infcmd.c (jump_command): Likewise.
1408 * linespec.c (minsym_found): Likewise.
1409 * maint.c (maintenance_translate_address): Likewise.
1410 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1411 (minimal_symbol_upper_bound): Likewise.
1412 * parse.c (find_minsym_type_and_address): Likewise.
1413 (operator_check_standard): Likewise.
1414 * printcmd.c (info_address_command): Likewise.
1415 * symmisc.c (dump_msymbols): Likewise.
1416 (print_symbol): Likewise.
1417 * symtab.c (general_symbol_info::obj_section): Define new
1418 function.
1419 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1420 (find_pc_sect_compunit_symtab): Likewise.
1421 (find_function_start_sal): Likewise.
1422 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1423 MSYMBOL_OBJ_SECTION.
1424 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1425 function.
1426 (SYMBOL_OBJ_SECTION): Delete.
1427 (MSYMBOL_OBJ_SECTION): Delete.
1428
9bb305b3
TT
14292021-02-09 Tom Tromey <tom@tromey.com>
1430
1431 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1432
cf2b2075
TV
14332021-02-09 Tom de Vries <tdevries@suse.de>
1434
1435 PR symtab/27341
1436 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1437 construct an array type. Add assert to ensure that element_type is
1438 not being modified.
1439
03642b71
AB
14402021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1443 (gcore_collect_regset_section_cb): Delete.
1444 (gcore_collect_thread_registers): Delete.
1445 (gcore_build_thread_register_notes): Delete.
1446 (gcore_find_signalled_thread): Delete.
1447 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1448 'gdbarch' and 'thread_info' declarations.
1449 (gcore_build_thread_register_notes): Delete declaration.
1450 (gcore_find_signalled_thread): Likewise.
1451 * fbsd-tdep.c: Remove 'gcore.h' include.
1452 (struct fbsd_collect_regset_section_cb_data): New struct.
1453 (fbsd_collect_regset_section_cb): New function.
1454 (fbsd_collect_thread_registers): New function.
1455 (struct fbsd_corefile_thread_data): New struct.
1456 (fbsd_corefile_thread): New function.
1457 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1458 * linux-tdep.c: Remove 'gcore.h' include.
1459 (struct linux_collect_regset_section_cb_data): New struct.
1460 (linux_collect_regset_section_cb): New function.
1461 (linux_collect_thread_registers): New function.
1462 (linux_corefile_thread): Call Linux specific code.
1463 (find_signalled_thread): New function.
1464 (linux_make_corefile_notes): Call find_signalled_thread.
1465
f73e424f
TT
14662021-02-09 Tom Tromey <tromey@adacore.com>
1467
1468 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1469 not_lval value.
1470 * value.c (value_contents_copy_raw): Now static.
1471 * value.h (value_contents_copy_raw): Don't declare.
1472
a4f0544b
TT
14732021-02-09 Tom Tromey <tromey@adacore.com>
1474
1475 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1476 fields.
1477
9b3e4b5d
SV
14782021-02-08 Shahab Vahedi <shahab@synopsys.com>
1479
1480 PR tdep/27369
1481 * arc-linux-tdep.c (handle_atomic_sequence): New.
1482 (arc_linux_software_single_step): Call handle_atomic_sequence().
1483
29db1eb3
AB
14842021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1485
1486 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1487 function.
1488 (REQUIRE_WINDOW): Call is_valid member function.
1489 (REQUIRE_WINDOW_FOR_SETTER): New define.
1490 (gdbpy_tui_is_valid): Call is_valid member function.
1491 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1492 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1493 tui_active too.
1494 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1495 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1496 the function.
1497
e0c23e11
AB
14982021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1501 for the title is not nullptr.
1502
1cf23996
AB
15032021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1504
1505 * tui-layout.c (saved_tui_windows): Delete.
1506 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1507 call new get_windows member function instead.
1508 (tui_get_window_by_name): Check in tui_windows.
1509 (tui_layout_window::apply): Don't add to tui_windows.
1510 * tui-layout.h (tui_layout_base::get_windows): New member function.
1511 (tui_layout_window::get_windows): Likewise.
1512 (tui_layout_split::get_windows): Likewise.
1513
a53a2657
AB
15142021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1517 of the window objects.
1518
2708dbbd
AB
15192021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1520
1521 * python/python.c (gdbpy_print_stack): Reformat an error message.
1522
cd074e04
AB
15232021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1524
1525 * tui/tui-interp.c (tui_command_line_handler): New function.
1526 (tui_interp::resume): Register tui_command_line_handler as the
1527 input_handler.
1528 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1529 function.
1530 (tui_getc_1): Delete handling of '\n' and '\r'.
1531 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1532
4cf28e91
HD
15332021-02-07 Hannes Domani <ssbssa@yahoo.de>
1534
1535 * tui/tui-regs.c (tui_data_window::display_registers_from):
1536 Mark invisible register sub windows.
1537 (tui_data_window::check_register_values): Ignore invisible
1538 register sub windows.
1539
3537bc23
HD
15402021-02-07 Hannes Domani <ssbssa@yahoo.de>
1541
1542 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1543 n_spaces with a negative value.
1544
5fc2d6aa
HD
15452021-02-07 Hannes Domani <ssbssa@yahoo.de>
1546
1547 * tui/tui-regs.c (tui_data_window::display_registers_from):
1548 Add refresh_window call.
1549
83962f83
HD
15502021-02-07 Hannes Domani <ssbssa@yahoo.de>
1551
1552 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1553
0110ec82
SM
15542021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1555
1556 * symmisc.c (std_in, std_out, std_err): Remove.
1557 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1558
7c6944ab
TV
15592021-02-05 Tom de Vries <tdevries@suse.de>
1560
1561 PR breakpoints/27330
1562 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1563 glibc object file has debug info.
1564
e77b0004
TV
15652021-02-05 Tom de Vries <tdevries@suse.de>
1566
1567 PR symtab/27333
1568 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1569
0e857c82
TV
15702021-02-05 Tom de Vries <tdevries@suse.de>
1571
1572 PR breakpoints/27313
1573 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1574 syscall numbers.
1575
bdfea17e
TT
15762021-02-05 Tom Tromey <tom@tromey.com>
1577
1578 * compile/compile-c-support.c (get_compile_context)
1579 (c_get_compile_context, cplus_get_compile_context): Change return
1580 type.
1581 * language.c (language_defn::get_compile_instance): New method.
1582 * language.h (language_defn::get_compile_instance): Change return
1583 type. No longer inline.
1584 * c-lang.c (c_language::get_compile_instance): Change return type.
1585 (cplus_language::get_compile_instance): Change return type.
1586 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1587 Change return type.
1588 * compile/compile.c (compile_to_object): Update.
1589
1b30f421
TT
15902021-02-05 Tom Tromey <tom@tromey.com>
1591
1592 * parser-defs.h (write_exp_symbol_reference): Declare.
1593 * parse.c (write_exp_symbol_reference): New function.
1594 * p-exp.y (variable): Use write_exp_symbol_reference.
1595 * m2-exp.y (variable): Use write_exp_symbol_reference.
1596 * f-exp.y (variable): Use write_exp_symbol_reference.
1597 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1598 * c-exp.y (variable): Use write_exp_symbol_reference.
1599
ae710496
TV
16002021-02-05 Tom de Vries <tdevries@suse.de>
1601
1602 PR exp/27265
1603 * valarith.c (complex_binop): Throw an error if complex type can't
1604 be created.
1605
d3b54e63
TV
16062021-02-05 Tom de Vries <tdevries@suse.de>
1607
1608 PR symtab/27307
1609 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1610 return.
1611
fc9a13fb
TV
16122021-02-05 Tom de Vries <tdevries@suse.de>
1613
1614 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1615
04b4939b
MF
16162021-02-04 Mike Frysinger <vapier@gentoo.org>
1617
1618 * configure.tgt (riscv*-*-*): Set gdb_sim.
1619
6ff267e1
SM
16202021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1621
1622 * target.c (target_is_non_stop_p): Return bool.
1623 * target.h (target_is_non_stop_p): Return bool.
1624
fdbc5215
SM
16252021-02-04 Simon Marchi <simon.marchi@efficios.com>
1626
1627 * record-full.c (record_full_async_inferior_event_handler):
1628 Don't clear async event handler.
1629 (record_full_base_target::wait): Clear async event handler at
1630 beginning.
1631
85d3ad8e
SM
16322021-02-04 Simon Marchi <simon.marchi@efficios.com>
1633
1634 * record-btrace.c (record_btrace_handle_async_inferior_event):
1635 Don't clear async event handler.
1636 (record_btrace_target::wait): Clear async event handler at
1637 beginning.
1638
baa8575b
SM
16392021-02-04 Simon Marchi <simon.marchi@efficios.com>
1640
1641 * remote.c (remote_target::wait): Clear async event handler at
1642 beginning, mark if needed at the end.
1643 (remote_async_inferior_event_handler): Don't set or clear async
1644 event handler.
1645
6b36ddeb
SM
16462021-02-04 Simon Marchi <simon.marchi@efficios.com>
1647
1648 * async-event.h (async_event_handler_func): Add documentation.
1649 * async-event.c (check_async_event_handlers): Don't clear
1650 async_event_handler ready flag.
1651 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1652 flag.
1653 * record-btrace.c (record_btrace_handle_async_inferior_event):
1654 Likewise.
1655 * record-full.c (record_full_async_inferior_event_handler):
1656 Likewise.
1657 * remote-notif.c (remote_async_get_pending_events_handler):
1658 Likewise.
1659 * remote.c (remote_async_inferior_event_handler): Likewise.
1660
72d383bb
SM
16612021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1662
1663 * infrun.c (handle_inferior_event): Move stop_soon variable to
1664 inner scope.
1665
408f6686
PA
16662021-02-03 Pedro Alves <pedro@palves.net>
1667
1668 * infcmd.c (detach_command): Hold strong reference to target, and
1669 if all-stop on entry, restart threads on exit.
1670 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1671 (restart_stepped_thread): ... this new function. Also handle
1672 trap_expected.
1673 (restart_after_all_stop_detach): New function.
1674 * infrun.h (restart_after_all_stop_detach): Declare.
1675
ac7d717c
PA
16762021-02-03 Pedro Alves <pedro@palves.net>
1677
1678 * infrun.c (struct step_over_info): Initialize fields.
1679 (prepare_for_detach): Handle ongoing in-line step over.
1680
e87f0fe8
PA
16812021-02-03 Pedro Alves <pedro@palves.net>
1682
1683 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1684 here...
1685 * remote.c (remote_target::remote_detach_1): ... and here ...
1686 * target.c (target_detach): ... instead of here.
1687 * target.h (target_ops::detach): Add comment.
1688
8ff53139
PA
16892021-02-03 Pedro Alves <pedro@palves.net>
1690
1691 * infrun.c (struct wait_one_event): Move higher up.
1692 (prepare_for_detach): Abort in-progress displaced steps instead of
1693 letting them complete.
1694 (handle_one): If the inferior is detaching, don't add the thread
1695 back to the global step-over chain.
1696 (restart_threads): Don't restart threads if detaching.
1697 (handle_signal_stop): Remove inferior::detaching reference.
1698
91475068
PA
16992021-02-03 Pedro Alves <pedro@palves.net>
1700
1701 * infrun.c (prepare_for_detach): Don't release scoped_restore
1702 before returning.
1703
d758e62c
PA
17042021-02-03 Pedro Alves <pedro@palves.net>
1705
1706 * infrun.c (handle_one): New function, factored out from ...
1707 (stop_all_threads): ... here.
1708
b0083dd7
PA
17092021-02-03 Pedro Alves <pedro@palves.net>
1710
1711 * remote.c (remote_notif_stop_ack): Don't error out on
1712 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1713 (remote_target::discard_pending_stop_replies): Don't delete
1714 in-flight notification; instead, clear its contents.
1715
621cc310
PA
17162021-02-03 Pedro Alves <pedro@palves.net>
1717
1718 * remote.c (extended_remote_target::attach): Set target async in
1719 the target-non-stop path too.
1720
2ab76a18
PA
17212021-02-03 Pedro Alves <pedro@palves.net>
1722
1723 PR gdb/27055
1724 * infrun.c (handle_signal_stop): Move main context_switch call
1725 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1726
2e3773ff
LS
17272021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1728
1729 * NEWS (Changed commands): Add entry for the behavior change of
1730 the inferior command.
1731 * inferior.c (inferior_command): When no argument is given to the
1732 inferior command, display info about the currently selected
1733 inferior.
1734
e57933dc
SM
17352021-02-02 Simon Marchi <simon.marchi@efficios.com>
1736
1737 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1738 a sect_offset.
1739 (read_attribute_reprocess): Adjust.
1740
2b0c7f41
SM
17412021-02-02 Simon Marchi <simon.marchi@efficios.com>
1742
1743 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1744 <gnu_ranges_base>: ... this...
1745 <rnglists_base>: ... and this.
1746 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1747 <gnu_ranges_base>: ... this...
1748 <rnglists_base>: ... and this.
1749 (read_cutu_die_from_dwo): Adjust
1750 (dwarf2_get_pc_bounds): Adjust
1751 (dwarf2_record_block_ranges): Adjust.
1752 (read_full_die_1): Adjust
1753 (partial_die_info::read): Adjust.
1754 (read_rnglist_index): Adjust.
1755
a1c40103
SM
17562021-02-02 Simon Marchi <simon.marchi@efficios.com>
1757
1758 PR gdb/26813
1759 * dwarf2/read.c (read_loclists_rnglists_header): Add
1760 header_offset parameter and use it.
1761 (read_loclist_index): Read header of the current contribution,
1762 not the one at the beginning of the section.
1763 (read_rnglist_index): Likewise.
1764
b1829e1b
SM
17652021-02-02 Simon Marchi <simon.marchi@efficios.com>
1766
1767 PR gdb/26813
1768 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1769 requires_reprocessing flag.
1770 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1771 DW_FORM_loclistx.
1772 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1773 and DW_FORM_loclistx.
1774 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1775 instead of set_address for DW_FORM_loclistx and
1776 DW_FORM_rnglistx.
1777
0c800c6e
SM
17782021-02-02 Simon Marchi <simon.marchi@efficios.com>
1779
1780 * dwarf2/read.c (read_loclist_index): Remove bound check for
1781 start of offset.
1782 (read_rnglist_index): Likewise.
1783
05787bad
SM
17842021-02-02 Simon Marchi <simon.marchi@efficios.com>
1785
1786 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1787 of the offset.
1788
5e4d9bbc
SM
17892021-02-02 Simon Marchi <simon.marchi@efficios.com>
1790
1791 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1792
a0c1eeba
SM
17932021-02-02 Simon Marchi <simon.marchi@efficios.com>
1794
1795 * dwarf2/read.c (read_loclist_index): Change complaints into
1796 errors.
1797
2bd3e4b8
TV
17982021-02-02 Tom de Vries <tdevries@suse.de>
1799
1800 PR symtab/24620
1801 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1802 psymtab == nullptr.
1803
82a1fd3a
AB
18042021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1805
1806 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1807 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1808 here from linux-tdep.c and given a new name. Minor cleanups.
1809 (gcore_collect_regset_section_cb): Likewise.
1810 (gcore_collect_thread_registers): Likewise.
1811 (gcore_build_thread_register_notes): Likewise.
1812 (gcore_find_signalled_thread): Likewise.
1813 * gcore.h (gcore_build_thread_register_notes): Declare.
1814 (gcore_find_signalled_thread): Declare.
1815 * fbsd-tdep.c: Add 'gcore.h' include.
1816 (struct fbsd_collect_regset_section_cb_data): Delete.
1817 (fbsd_collect_regset_section_cb): Delete.
1818 (fbsd_collect_thread_registers): Delete.
1819 (struct fbsd_corefile_thread_data): Delete.
1820 (fbsd_corefile_thread): Delete.
1821 (fbsd_make_corefile_notes): Call
1822 gcore_build_thread_register_notes instead of the now deleted
1823 FreeBSD code.
1824 * linux-tdep.c: Add 'gcore.h' include.
1825 (struct linux_collect_regset_section_cb_data): Delete.
1826 (linux_collect_regset_section_cb): Delete.
1827 (linux_collect_thread_registers): Delete.
1828 (linux_corefile_thread): Call
1829 gcore_build_thread_register_notes.
1830 (find_signalled_thread): Delete.
1831 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1832
ebde6f2d
TV
18332021-01-29 Tom de Vries <tdevries@suse.de>
1834
1835 PR breakpoints/26063
1836 * infrun.c (process_event_stop_test): Reset
1837 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1838 changed.
1839
0f93c3a2
AB
18402021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1843 assert. Extend the header comment.
1844
f237f998
AB
18452021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1846
1847 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1848 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1849 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1850 (tui_locator_win_info_ptr): Delete declaration.
1851 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1852 (tui_disasm_window::set_contents): Fetch state from tui_location
1853 global.
1854 (tui_get_begin_asm_address): Likewise.
1855 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1856 for locator window.
1857 (get_locator_window): Delete.
1858 (initialize_known_windows): Treat locator window just like all the
1859 rest.
1860 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1861 (tui_source_window::set_contents): Fetch state from tui_location
1862 global.
1863 (tui_source_window::showing_source_p): Likewise.
1864 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1865 (_locator): Delete.
1866 (tui_locator_win_info_ptr): Delete.
1867 (tui_locator_window::make_status_line): Fetch state from
1868 tui_location global.
1869 (tui_locator_window::rerender): Remove check of 'handle',
1870 reindent function body.
1871 (tui_locator_window::set_locator_fullname): Delete.
1872 (tui_locator_window::set_locator_info): Delete.
1873 (tui_update_locator_fullname): Delete.
1874 (tui_show_frame_info): Likewise.
1875 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1876 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1877 tui/tui-location.h and renamed to
1878 tui_location_tracker::set_location.
1879 (tui_locator_window::set_locator_fullname): Moved to
1880 tui/tui-location.h and renamed to
1881 tui_location_tracker::set_fullname.
1882 (tui_locator_window::full_name): Delete.
1883 (tui_locator_window::proc_name): Delete.
1884 (tui_locator_window::line_no): Delete.
1885 (tui_locator_window::addr): Delete.
1886 (tui_locator_window::gdbarch): Delete.
1887 (tui_update_locator_fullname): Delete declaration.
1888 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1889 for locator window.
1890 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1891 (tui_display_main): Call function on tui_location directly.
1892 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1893 * tui/tui-location.c: New file.
1894 * tui/tui-location.h: New file.
1895
8ee511af
SM
18962021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1897
1898 * gdbtypes.h (get_type_arch): Rename to...
1899 (struct type) <arch>: ... this, update all users.
1900
6ac37371
SM
19012021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1902
1903 * gdbtypes.h (struct type) <arch>: Rename to...
1904 <arch_owner>: ... this, update all users.
1905 <objfile>: Rename to...
1906 <objfile_owner>: ... this, update all users.
1907
24cf6389
AB
19082021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * gdbcmd.h (execute_command_to_string): Update comment.
1911 * top.c (execute_command_to_string): Update header comment.
1912
2a7f6487
TV
19132021-01-28 Tom de Vries <tdevries@suse.de>
1914
1915 PR breakpoints/27205
1916 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1917 (create_longjmp_master_breakpoint_names): New function, factored out
1918 of ...
1919 (create_longjmp_master_breakpoint): ... here. Only try to install
1920 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1921 breakpoint in libc.so failed.
1922
59b59f08
LS
19232021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1924
1925 PR gdb/27133
1926 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1927 unique_ptr is released when the wrapped pointer is kept for later
1928 use.
1929
807f647c
MM
19302021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1931
1932 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1933 BLR and BR instructions.
1934 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1935 (enum aarch64_masks): New.
1936
4ef367bf
TT
19372021-01-26 Tom Tromey <tromey@adacore.com>
1938
1939 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1940 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1941 (windows_init_thread_list, windows_nat::handle_load_dll)
1942 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1943 (windows_nat_target::resume)
1944 (windows_nat_target::get_windows_debug_event)
1945 (windows_nat_target::interrupt, windows_xfer_memory)
1946 (windows_nat_target::close): Update.
1947 * nat/windows-nat.c (DEBUG_EVENTS): Use
1948 debug_prefixed_printf_cond.
1949 (matching_pending_stop, fetch_pending_stop)
1950 (continue_last_debug_event): Update.
1951
4cb1265b
MS
19522020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1953
1954 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1955 elfcore_write_file_note.
1956
d0cc52bd
SV
19572021-01-26 Shahab Vahedi <shahab@synopsys.com>
1958
1959 * arc-tdep.c (arc_add_reggroups): New function.
1960 (arc_gdbarch_init): Call arc_add_reggroups.
1961
ac3571d9 19622021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
1963
1964 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1965
9f6c202e
TV
19662021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1967 Simon Marchi <simon.marchi@polymtl.ca>
1968 Tom de Vries <tdevries@suse.de>
1969
1970 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1971 DW_AT_ranges.
1972
a625a8c9
TT
19732021-01-25 Tom Tromey <tromey@adacore.com>
1974
1975 * dwarf2/read.c (get_mpz): New function.
1976 (get_dwarf2_rational_constant): Use it.
1977
19184910
TT
19782021-01-25 Tom Tromey <tromey@adacore.com>
1979
1980 * ada-lang.c (resolve_subexp): Handle array context.
1981
b10bae18
TT
19822021-01-23 Tom Tromey <tom@tromey.com>
1983
1984 PR compile/25575
1985 * compile/compile-loc2c.c (note_register): New function.
1986 (pushf_register_address, pushf_register): Use it.
1987
3637a558
TT
19882021-01-23 Tom Tromey <tom@tromey.com>
1989
1990 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1991 Change type of "registers_used".
1992 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1993 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1994 (locexpr_generate_c_location, loclist_generate_c_location): Change
1995 type of "registers_used".
1996 * compile/compile.h (compile_dwarf_expr_to_c)
1997 (compile_dwarf_bounds_to_c): Update.
1998 * compile/compile-loc2c.c (pushf_register_address)
1999 (pushf_register, do_compile_dwarf_expr_to_c)
2000 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2001 of "registers_used".
2002 * compile/compile-c.h (generate_c_for_variable_locations):
2003 Update.
2004 * compile/compile-c-symbols.c (generate_vla_size)
2005 (generate_c_for_for_one_variable): Change type of
2006 "registers_used".
2007 (generate_c_for_variable_locations): Return std::vector.
2008 * compile/compile-c-support.c (generate_register_struct): Change
2009 type of "registers_used".
2010 (compute): Update.
2011
9f7f6cb8
TT
20122021-01-23 Tom Tromey <tom@tromey.com>
2013
2014 * compile/compile-internal.h (class compile_instance)
2015 <set_arguments>: Change return type.
2016 * compile/compile.c (compile_to_object): Remove call to reset.
2017 (compile_instance::set_arguments): Change return type.
2018
dd5ca05f
SM
20192021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2022 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2023
d3ee35db
LS
20242021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2025
2026 * Makefile.in (SELFTESTS_SRCS): Add
2027 unittests/gdb_tilde_expand-selftests.c.
2028 * unittests/gdb_tilde_expand-selftests.c: New file.
2029
9d2d8a16
AB
20302021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 PR cli/25956
2033 * NEWS: Mention new command.
2034 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2035 (version_style): Define.
2036 (cli_style_option::cli_style_option): Add intensity parameter, and
2037 use as appropriate.
2038 (_initialize_cli_style): Register version style set/show commands.
2039 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2040 (version_style): Declare.
2041 * top.c (print_gdb_version): Use version_stype, and styled_string
2042 to print the GDB version string.
2043
e7b43072
AB
20442021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * utils.c (emit_style_escape): Only emit an escape sequence if the
2047 requested style is different than the current applied style.
2048 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2049 current applied_style.
2050 (fputs_styled): Remove is_default check.
2051 (fputs_styled_unfiltered): Likewise.
2052 (vfprintf_styled_no_gdbfmt): Likewise.
2053
2189c312
SM
20542021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2055
2056 * remote.h (remote_debug_printf): New.
2057 (remote_debug_printf_nofunc): New.
2058 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2059 * remote.c: Use above macros throughout file.
2060
02349803
SM
20612021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * remote.h (remote_debug): Change to bool.
2064 * remote.c (remote_debug): Change to bool.
2065 (_initialize_remote): Adjust.
2066
cda09ec9
SM
20672021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 * target.h (remote_debug): Move to...
2070 * remote.h (remote_debug): ... here.
2071 * top.c (remote_debug): Move to...
2072 * remote.c (remote_debug): ... here.
2073 * remote-sim.c: Include remote.h.
2074
baf2b57f
SM
20752021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2076
2077 * cli/cli-cmds.c (show_remote_debug): Remove.
2078 (show_remote_timeout): Remove.
2079 (_initialize_cli_cmds): Don't register commands.
2080 * remote.c (show_remote_debug): Move here.
2081 (show_remote_timeout): Move here.
2082 (_initialize_remote): Register commands.
2083
344e9841
SM
20842021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2087 type::objfile method instead.
2088
30625020
SM
20892021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2090
2091 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2092 use the type::is_objfile_owned method.
2093
5b7d941b
SM
20942021-01-22 Simon Marchi <simon.marchi@efficios.com>
2095
2096 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2097 (TYPE_OWNER): Remove.
2098 (TYPE_OBJFILE): Adjust.
2099 (struct main_type) <flag_objfile_owned>: Rename to...
2100 <m_flag_objfile_owned>: ... this.
2101 <owner>: Rename to...
2102 <m_owner>: ... this.
2103 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2104 methods.
2105 (TYPE_ALLOC): Adjust.
2106 * gdbtypes.c (alloc_type): Adjust.
2107 (alloc_type_arch): Adjust.
2108 (alloc_type_copy): Adjust.
2109 (get_type_arch): Adjust.
2110 (smash_type): Adjust.
2111 (lookup_array_range_type): Adjust.
2112 (recursive_dump_type): Adjust.
2113 (copy_type_recursive): Adjust.
2114 * compile/compile-c-types.c (convert_func): Adjust.
2115 (convert_type_basic): Adjust.
2116 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2117 Adjust.
2118 * language.c
2119 (language_arch_info::type_and_symbol::alloc_type_symbol):
2120 Adjust.
2121
d5d24e12
LM
21222021-01-21 Luis Machado <luis.machado@linaro.org>
2123
2124 * coffread.c (enter_linenos): Passing string to complaint.
2125 * valops.c (value_assign): Make array view.
2126
a59902a7
SM
21272021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2128
2129 * auto-load.h (debug_auto_load): Move here.
2130 (auto_load_debug_printf): New.
2131 * auto-load.c: Use auto_load_debug_printf.
2132 (debug_auto_load): Move to header.
2133 * linux-thread-db.c (try_thread_db_load): Use
2134 auto_load_debug_printf.
2135 * main.c (captured_main_1): Likewise.
2136
d3abc0ce
SM
21372021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2138
2139 * f-valprint.c (f77_array_offset_tbl): Remove.
2140
1e15fcac
SM
21412021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2142
2143 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2144
439706e6
SM
21452021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2146
2147 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2148 of gdb_select.
2149
325d39e4
HD
21502021-01-21 Hannes Domani <ssbssa@yahoo.de>
2151
2152 PR python/19151
2153 * python/py-breakpoint.c (bppy_get_location): Handle
2154 bp_hardware_breakpoint.
2155 (bppy_init): Likewise.
2156 (gdbpy_breakpoint_created): Likewise.
2157
7cb6d92a
SM
21582021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2159
2160 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2161
d4dd4fca
SM
21622021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2163
2164 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2165 (_initialize_gdb_bfd): Adjust.
2166
de53369b
SM
21672021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2168
2169 PR gdb/26828
2170 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2171
17e593e9
SM
21722021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * dwarf2/read.c (follow_die_offset): Add logging.
2175 (dwarf2_per_objfile::age_comp_units): Add logging.
2176
6bd434d6
SM
21772021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2178
2179 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2180 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2181 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2182 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2183 * arm-tdep.c (struct frame_unwind): Make static.
2184 * auto-load.c (auto_load_safe_path_vec): Make static.
2185 * csky-tdep.c (csky_stub_unwind): Make static.
2186 * gdbarch.c (gdbarch_data_registry): Make static.
2187 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2188 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2189 * i386-tdep.c (i386_frame_setup_skip_insns,
2190 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2191 Make static.
2192 * infrun.c (observer_mode): Make static.
2193 * linux-nat.c (sigchld_action): Make static.
2194 * linux-thread-db.c (thread_db_list): Make static.
2195 * maint-test-options.c (maintenance_test_options_list):
2196 * mep-tdep.c (mep_csr_registers): Make static.
2197 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2198 (stats): Make static.
2199 * nat/linux-osdata.c (struct osdata_type): Make static.
2200 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2201 * progspace.c (last_program_space_num): Make static.
2202 * python/py-param.c (struct parm_constant): Remove struct type
2203 name.
2204 (parm_constants): Make static.
2205 * python/py-record-btrace.c (btpy_list_methods): Make static.
2206 * python/py-record.c (recpy_gap_type): Make static.
2207 * record.c (record_goto_cmdlist): Make static.
2208 * regcache.c (regcache_descr_handle): Make static.
2209 * registry.h (DEFINE_REGISTRY): Make definition static.
2210 * symmisc.c (std_in, std_out, std_err): Make static.
2211 * top.c (previous_saved_command_line): Make static.
2212 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2213 static.
2214 * unittests/command-def-selftests.c (nr_duplicates,
2215 nr_invalid_prefixcmd, lists): Make static.
2216 * unittests/observable-selftests.c (test_notification): Make
2217 static.
2218 * unittests/optional/assignment/1.cc (counter): Make static.
2219 * unittests/optional/assignment/2.cc (counter): Make static.
2220 * unittests/optional/assignment/3.cc (counter): Make static.
2221 * unittests/optional/assignment/4.cc (counter): Make static.
2222 * unittests/optional/assignment/5.cc (counter): Make static.
2223 * unittests/optional/assignment/6.cc (counter): Make static.
2224
a6c11cbb
JS
22252021-01-20 Joel Sherrill <joel@rtems.org>
2226
2227 PR gdb/27219
2228 * remote.c (struct remote_thread_info) <resume_state>: Rename
2229 to...
2230 <get_resume_state>: ... this.
2231 (remote_target::resume): Adjust.
2232 (remote_target::commit_resume): Adjust.
2233 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2234
6f52fdf4
SDJ
22352021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2236 Tom Tromey <tom@tromey.com>
2237
2238 * stap-probe.c (stap_parse_single_operand): Handle '!'
2239 operator.
2240 (stap_parse_argument_conditionally): Likewise.
2241 Skip spaces after processing open-parenthesis sub-expression.
2242 (stap_parse_argument_1): Skip spaces after call to
2243 stap_parse_argument_conditionally.
2244 Handle case when right-side expression is a parenthesized
2245 sub-expression.
2246 Skip spaces after call to stap_parse_argument_1.
2247
1c3b85ad
LS
22482021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2249
2250 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2251
a9a87d35
LM
22522021-01-19 Luis Machado <luis.machado@linaro.org>
2253
2254 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2255 memory and save data.
2256 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2257 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2258 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2259 (trad_frame_value_bytes_p): Remove.
2260 (trad_frame_reset_saved_regs): Adjust documentation.
2261 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2262 constructor and reset the state of the registers.
2263 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2264 (trad_frame_value_bytes_p, trad_frame_set_value)
2265 (trad_frame_set_realreg, trad_frame_set_addr)
2266 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2267 (trad_frame_set_reg_realreg): Update to call member function.
2268 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2269 (trad_frame_get_prev_register): Likewise.
2270
2271 * aarch64-tdep.c (aarch64_analyze_prologue)
2272 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2273 (aarch64_prologue_prev_register): Update to use member functions.
2274 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2275 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2276 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2277 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2278 (arm_make_epilogue_frame_cache): Likewise.
2279 * avr-tdep.c (avr_frame_unwind_cache)
2280 (avr_frame_prev_register): Likewise.
2281 * cris-tdep.c (cris_scan_prologue): Likewise.
2282 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2283 * frv-tdep.c (frv_analyze_prologue): Likewise.
2284 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2285 * lm32-tdep.c (lm32_frame_cache): Likewise.
2286 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2287 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2288 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2289 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2290 (reset_saved_regs): Adjust to set realreg.
2291 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2292 call member functions.
2293 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2294 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2295 (s390_backchain_frame_unwind_cache): Likewise.
2296 * score-tdep.c (score7_analyze_prologue)
2297 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2298 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2299 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2300 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2301 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2302 * tilegx-tdep.c (tilegx_analyze_prologue)
2303 (tilegx_frame_cache): Likewise.
2304 * v850-tdep.c (v850_frame_cache): Likewise.
2305 * vax-tdep.c (vax_frame_cache): Likewise.
2306
bdec2917
LM
23072021-01-19 Luis Machado <luis.machado@linaro.org>
2308
2309 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2310 of buffer + length.
2311 (put_frame_register_bytes): Likewise.
2312 Adjust documentation.
2313 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2314 (safe_frame_unwind_memory): Likewise.
2315 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2316 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2317 gdb::array_view.
2318 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2319 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2320 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2321 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2322 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2323 * dwarf2/loc.c (rw_pieced_value): Likewise.
2324 * hppa-tdep.c (hppa_frame_cache): Likewise.
2325 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2326 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2327 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2328 (i386_linux_rt_sigtramp_start): Likewise.
2329 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2330 * i386-tdep.c (i386_register_to_value): Likewise.
2331 * i387-tdep.c (i387_register_to_value): Likewise.
2332 * ia64-tdep.c (ia64_register_to_value): Likewise.
2333 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2334 (m32r_linux_rt_sigtramp_start): Likewise.
2335 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2336 * m68k-tdep.c (m68k_register_to_value): Likewise.
2337 * mips-tdep.c (mips_register_to_value)
2338 (mips_value_to_register): Likewise.
2339 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2340 (ppcfbsd_sigtramp_frame_cache): Likewise.
2341 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2342 (ppcobsd_sigtramp_frame_cache): Likewise.
2343 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2344 (rs6000_register_to_value): Likewise.
2345 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2346 * tramp-frame.c (tramp_frame_start): Likewise.
2347 * valops.c (value_assign): Likewise.
2348
ccbe4c82
LM
23492021-01-19 Luis Machado <luis.machado@linaro.org>
2350
2351 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2352 array_view.
2353 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2354 instead of buffer and size.
2355 (trad_frame_set_reg_value_bytes): Likewise.
2356 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2357 (trad_frame_set_value_bytes): Likewise.
2358
0e7620dc
MF
23592021-01-18 Mike Frysinger <vapier@gentoo.org>
2360
2361 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2362
6a9ad81c
AB
23632021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2364
2365 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2366 (riscv_fbsd_gregset): Use riscv_supply_regset.
2367 (riscv_fbsd_fpregset): Likewise.
2368 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2369 (riscv_linux_fregset): Likewise.
2370 * riscv-tdep.c (riscv_supply_regset): Define new function.
2371 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2372
d3d7d1ba
TV
23732021-01-18 Tom de Vries <tdevries@suse.de>
2374
2375 PR tdep/27172
2376 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2377 New macro.
2378 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2379 for SEGV_BNDERR.
2380
aa2838cc
SM
23812021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2382
2383 * remote.c (class remote_target) <remote_hostio_send_command,
2384 remote_hostio_parse_result>: Constify parameter.
2385 (remote_hostio_parse_result): Likewise.
2386 (remote_target::remote_hostio_send_command): Adjust.
2387 (remote_target::remote_hostio_pread_vFile): Adjust.
2388 (remote_target::fileio_readlink): Adjust.
2389 (remote_target::fileio_fstat): Adjust.
2390
b5c8f22d
SM
23912021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2392
2393 * remote.c (remote_target::start_remote): Move wait_status to
2394 narrower scope.
2395
e3b2741b
SM
23962021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2397
2398 * remote.c (class remote_target):
2399 <add_current_inferior_and_thread>: Constify parameter.
2400 (stop_reply_extract_thread): Likewise.
2401 (remote_target::get_current_thread): Likewise.
2402 (remote_target::add_current_inferior_and_thread): Likewise.
2403
cecb1912
SM
24042021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2405
2406 * remote.c (class remote_target)
2407 <remote_unpack_thread_info_response,
2408 parse_threadlist_response>: Constify parameter and/or return
2409 value and or local variable.
2410 (stub_unpack_int): Likewise.
2411 (unpack_nibble): Likewise.
2412 (unpack_byte): Likewise.
2413 (unpack_int): Likewise.
2414 (unpack_string): Likewise.
2415 (unpack_threadid): Likewise.
2416 (remote_target::remote_unpack_thread_info_response): Likewise.
2417 (remote_target::parse_threadlist_response): Likewise.
2418
5a11fff0
AB
24192021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2422
17e89137
LS
24232021-01-14 Lancelot Six <lsix@lancelotsix.com>
2424
2425 * MAINTAINERS (Write After Approval): Add myself.
2426
58eadc4b
BE
24272021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2428
2429 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2430 because is_trivially_default_constructible was first implemented with
2431 gcc-5.
2432
5fae2a2c
TV
24332021-01-14 Tom de Vries <tdevries@suse.de>
2434
2435 PR breakpoints/27151
2436 * objfiles.h (in_plt_section): Handle .plt.sec.
2437
8f66807b
AB
24382021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 PR gdb/26819
2441 * remote.c
2442 (remote_target::select_thread_for_ambiguous_stop_reply): New
2443 member function.
2444 (remote_target::process_stop_reply): Call
2445 select_thread_for_ambiguous_stop_reply.
2446
bd497355
SM
24472021-01-13 Simon Marchi <simon.marchi@efficios.com>
2448
2449 * record-btrace.c (class record_btrace_target): Remove.
2450 (record_btrace_target::commit_resume): Remove.
2451 * record-full.c (class record_full_target): Remove.
2452 (record_full_target::commit_resume): Remove.
2453
c9d22089
SM
24542021-01-13 Simon Marchi <simon.marchi@efficios.com>
2455
2456 * remote.c (enum class resume_state): New.
2457 (struct resumed_pending_vcont_info): New.
2458 (struct remote_thread_info) <resume_state, set_not_resumed,
2459 set_resumed_pending_vcont, resumed_pending_vcont_info,
2460 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2461 New.
2462 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2463 (remote_target::remote_add_thread): Adjust.
2464 (remote_target::process_initial_stop_replies): Adjust.
2465 (remote_target::resume): Adjust.
2466 (remote_target::commit_resume): Rely on state in
2467 remote_thread_info and not on tp->executing.
2468 (remote_target::process_stop_reply): Adjust.
2469
d8d1feb4
SM
24702021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2471
2472 * arc-tdep.h (arc_debug_printf): New.
2473 * arc-tdep.c: Use arc_debug_printf.
2474 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2475 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2476 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2477
fb0f5031
SM
24782021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2479
2480 * arc-tdep.h (arc_debug): Change type to bool.
2481 * arc-tdep.c (arc_debug): Change type to bool.
2482 (arc_analyze_prologue): Adjust.
2483 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2484 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2485
5bf7e91b
SM
24862021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 * auto-load.c (auto_load_objfile_script_1): Use bool.
2489 (execute_script_contents): Use bool.
2490
db972fce
SM
24912021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2492
2493 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2494 comment here.
2495 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2496 comment to header.
2497 * extension-priv.h (struct extension_language_script_ops)
2498 <auto_load_enabled>: Return bool.
2499 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2500 comment here.
2501 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2502 comment to header.
2503 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2504 move comment here.
2505 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2506 move comment to header.
2507 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2508 move comment here.
2509 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2510 move comment to header.
2511
5e12f48f
SM
25122021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2513
2514 * auto-load.h (file_is_auto_load_safe): Change return type to
2515 bool, move comment here.
2516 * auto-load.c (file_is_auto_load_safe): Change return type and
2517 advice_printed to bool. Move comment to header.
2518
54ca9002
SM
25192021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2520
2521 * jit.c (jit_debug_printf): New, use throughout file.
2522
24a7f1b5
SM
25232021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2524
2525 * infrun.c (normal_stop): Fix indentation.
2526
fe7a351a
SM
25272021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2528
2529 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2530 declarations to ...
2531 * symfile.h: ... here.
2532 * symfile.c: Update doc.
2533
16e9019e
SM
25342021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2535
2536 * target.h (baud_rate, serial_parity): Move declarations...
2537 * serial.h: ... here.
2538 * main.c: Include serial.h.
2539 * serial.c (baud_rate, serial_parity): Update doc.
2540
b2f2ae0d
SM
25412021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2542
2543 * top.c (pre_init_ui_hook): Remove.
2544
5291fe3c
SP
25452021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2546
2547 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2548 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2549 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2550 * features/aarch64-fpu.xml: Add bfloat16 type.
2551
ce38f5ed
AB
25522021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2553
2554 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2555
7c654b71
AB
25562021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * f-exp.y (dot_ops): Rename to...
2559 (fortran_operators): ...this. Add a header comment. Add symbol
2560 based operators.
2561 (yylex): Update to use fortran_operators not dot_ops. Remove
2562 special handling for '**', this is now included in
2563 fortran_operators.
2564
c6185dce
SM
25652021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2566
2567 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2568 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2569 * aarch64-tdep.c: Use aarch64_debug_printf.
2570
eef401dc
SM
25712021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2572
2573 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2574 file.
2575
062eaacb
SM
25762021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * jit.c (jit_debug): Change type to bool.
2579 (_initialize_jit): Adjust.
2580
54585eee
TT
25812021-01-09 Tom Tromey <tom@tromey.com>
2582
2583 PR compile/23672
2584 * compile/compile.c (compile_to_object): Avoid crash when
2585 osabi_triplet_regexp returns NULL.
2586
bc167b6b
TT
25872021-01-09 Tom Tromey <tom@tromey.com>
2588
2589 * tracepoint.h (class collection_list) <append_exp>: Take a
2590 std::string.
2591 * tracepoint.c (collection_list::append_exp): Take a std::string.
2592 (encode_actions_1): Update.
2593
8fc48b79
TT
25942021-01-08 Tom Tromey <tromey@adacore.com>
2595
2596 * parse.c (parse_expression): Add void_context_p parameter. Use
2597 parse_exp_in_context.
2598 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2599 parse_expression.
2600 (print_command, call_command): Update.
2601 * expression.h (parse_expression): Add void_context_p parameter.
2602
3c8c6de2
AB
26032021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2606 for internalvar components that have a dynamic location.
2607
1940319c
TV
26082021-01-08 Tom de Vries <tdevries@suse.de>
2609
2610 PR gdb/26881
2611 * breakpoint.c (create_exception_master_breakpoint_probe)
2612 (create_exception_master_breakpoint_hook): Factor out
2613 of ...
2614 (create_exception_master_breakpoint): ... here. Only try to install
2615 the master exception breakpoint in objfile.debug using the
2616 _Unwind_DebugHook method, if the install using probes in objfile
2617 failed.
2618
e3436813
AB
26192021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 * f-lang.c (fortran_value_subarray): Call value_from_component.
2622
e904f56d
MF
26232021-01-07 Mike Frysinger <vapier@gentoo.org>
2624
2625 * remote-sim.c: Include memory-map.h.
2626 (gdbsim_target): Define memory_map override.
2627 (gdbsim_target::memory_map): Define.
2628
959d6a67
TT
26292021-01-07 Tom Tromey <tromey@adacore.com>
2630
2631 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2632
d4813f10
TT
26332021-01-07 Tom Tromey <tromey@adacore.com>
2634
2635 * ada-lang.c (add_component_interval): Start loop using vector's
2636 updated size.
2637
b49180ac
TT
26382021-01-06 Tom Tromey <tromey@adacore.com>
2639
2640 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2641 Do not cast result.
2642 * valarith.c (fixed_point_binop): Handle multiplication
2643 and division specially.
2644 * valops.c (value_to_gdb_mpq): New function.
2645 (value_cast_to_fixed_point): Use it.
2646
55195361
HD
26472021-01-05 Hannes Domani <ssbssa@yahoo.de>
2648
2649 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2650 Call wnoutrefresh instead of tui_win_info::refresh_window.
2651
1b6d4bb2
HD
26522021-01-05 Hannes Domani <ssbssa@yahoo.de>
2653
2654 * tui/tui-source.c (tui_source_window::show_line_number):
2655 Redraw second space after line number.
2656
b5ff370e
HD
26572021-01-05 Hannes Domani <ssbssa@yahoo.de>
2658
2659 PR tui/26927
2660 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2661 Fix source pad size in prefresh.
2662 (tui_source_window_base::show_source_content): Grow source pad
2663 if necessary.
2664
c68ea49f
MF
26652021-01-04 Mike Frysinger <vapier@gentoo.org>
2666
2667 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2668 (bfin_frame_align): Use align_down.
2669
e4ad960a
TV
26702021-01-04 Tom de Vries <tdevries@suse.de>
2671
2672 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2673 terminators that do not terminate anything.
2674
3ec3145c
SM
26752021-01-04 Simon Marchi <simon.marchi@efficios.com>
2676
2677 * debug.c (debug_print_depth): New.
2678 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2679 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2680 * infrun.c (start_step_over): Use
2681 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2682 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2683 INFRUN_SCOPED_DEBUG_START_END.
2684 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2685
e71daf80
SM
26862021-01-04 Simon Marchi <simon.marchi@efficios.com>
2687
2688 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2689
335709bc
SM
26902021-01-04 Simon Marchi <simon.marchi@efficios.com>
2691
2692 * utils.c (vfprintf_unfiltered): Print timestamp only when
2693 previous debug output ended with a newline.
2694
098caef4
LM
26952021-01-04 Luis Machado <luis.machado@linaro.org>
2696
2697 Update all users of trad_frame_saved_reg to use the new member
2698 functions.
2699
2700 Remote all struct keywords from declarations of trad_frame_saved_reg
2701 types, except on forward declarations.
2702
2703 * aarch64-tdep.c: Update.
2704 * alpha-mdebug-tdep.c: Update.
2705 * alpha-tdep.c: Update.
2706 * arc-tdep.c: Update.
2707 * arm-tdep.c: Update.
2708 * avr-tdep.c: Update.
2709 * cris-tdep.c: Update.
2710 * csky-tdep.c: Update.
2711 * frv-tdep.c: Update.
2712 * hppa-linux-tdep.c: Update.
2713 * hppa-tdep.c: Update.
2714 * hppa-tdep.h: Update.
2715 * lm32-tdep.c: Update.
2716 * m32r-linux-tdep.c: Update.
2717 * m32r-tdep.c: Update.
2718 * m68hc11-tdep.c: Update.
2719 * mips-tdep.c: Update.
2720 * moxie-tdep.c: Update.
2721 * riscv-tdep.c: Update.
2722 * rs6000-tdep.c: Update.
2723 * s390-linux-tdep.c: Update.
2724 * s390-tdep.c: Update.
2725 * score-tdep.c: Update.
2726 * sparc-netbsd-tdep.c: Update.
2727 * sparc-sol2-tdep.c: Update.
2728 * sparc64-fbsd-tdep.c: Update.
2729 * sparc64-netbsd-tdep.c: Update.
2730 * sparc64-obsd-tdep.c: Update.
2731 * sparc64-sol2-tdep.c: Update.
2732 * tilegx-tdep.c: Update.
2733 * v850-tdep.c: Update.
2734 * vax-tdep.c: Update.
2735
2736 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2737 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2738
2739 * trad-frame.c: Update.
2740 Remove TF_REG_* enum.
2741 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2742 a trivially-constructible struct.
2743 (trad_frame_reset_saved_regs): Adjust to use member function.
2744 (trad_frame_value_p): Likewise.
2745 (trad_frame_addr_p): Likewise.
2746 (trad_frame_realreg_p): Likewise.
2747 (trad_frame_value_bytes_p): Likewise.
2748 (trad_frame_set_value): Likewise.
2749 (trad_frame_set_realreg): Likewise.
2750 (trad_frame_set_addr): Likewise.
2751 (trad_frame_set_unknown): Likewise.
2752 (trad_frame_set_value_bytes): Likewise.
2753 (trad_frame_get_prev_register): Likewise.
2754 * trad-frame.h: Update.
2755 (trad_frame_saved_reg_kind): New enum.
2756 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2757 <m_kind, m_reg>: New member fields.
2758 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2759 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2760 <is_addr, is_unknown, is_value_bytes>: New member functions.
2761
9898e882
SM
27622021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2763
2764 * target-float.c: Fix typos.
2765
b66b4e65
HD
27662021-01-02 Hannes Domani <ssbssa@yahoo.de>
2767
2768 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2769
b5b5650a
JB
27702021-01-01 Joel Brobecker <brobecker@adacore.com>
2771
2772 * gdbarch.sh: Update copyright year range.
2773
3666a048
JB
27742021-01-01 Joel Brobecker <brobecker@adacore.com>
2775
2776 Update copyright year range in copyright header of all GDB files.
2777
ff7e39b6
JB
27782021-01-01 Joel Brobecker <brobecker@adacore.com>
2779
2780 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2781 to the list of directories to update.
2782
2b47c078
JB
27832021-01-01 Joel Brobecker <brobecker@adacore.com>
2784
2785 * top.c (print_gdb_version): Update copyright year.
2786
476923f1 27872021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2788
476923f1 2789 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2790
476923f1 2791For older changes see ChangeLog-2020.
c906108c
SS
2792\f
2793Local Variables:
2794mode: change-log
2795left-margin: 8
2796fill-column: 74
2797version-control: never
57da7796 2798coding: utf-8
c906108c 2799End: