]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add two simple Modula-2 operations
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2bc9b40c
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4 static.
5 * m2-exp.h: New file.
6
5947d337
TT
72021-03-08 Tom Tromey <tom@tromey.com>
8
9 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
10 * rust-exp.h (class rust_aggregate_operation): New.
11
e4407a20
TT
122021-03-08 Tom Tromey <tom@tromey.com>
13
14 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
15 No longer static.
16 * rust-exp.h (class rust_struct_anon): New.
17 (class rust_structop): New.
18
9db6b6dd
TT
192021-03-08 Tom Tromey <tom@tromey.com>
20
21 * rust-lang.c (rust_range): No longer static.
22 * rust-exp.h (class rust_range_operation): New.
23
6ce1ad67
TT
242021-03-08 Tom Tromey <tom@tromey.com>
25
26 * rust-lang.c (rust_subscript): No longer static.
27 * rust-exp.h (class rust_subscript_operation): New.
28
11dd3dce
TT
292021-03-08 Tom Tromey <tom@tromey.com>
30
31 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
32 parameter.
33 (rust_evaluate_subexp): Update.
34 * rust-exp.h (class rust_unop_ind_operation): New.
35
6fab4359
TT
362021-03-08 Tom Tromey <tom@tromey.com>
37
38 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
39 longer static. Add "opcode" parameter.
40 (rust_evaluate_subexp): Update.
41 * rust-exp.h: New file.
42
9dcd3e29
TT
432021-03-08 Tom Tromey <tom@tromey.com>
44
45 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
46 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
47 (eval_op_f_kind): No longer static. Add "opcode" parameter.
48 (evaluate_subexp_f): Update.
49 * f-exp.h: New file.
50
fc715eb2
TT
512021-03-08 Tom Tromey <tom@tromey.com>
52
53 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
54 * ada-exp.h (class ada_ternop_range_operation): New.
55
cc6bd32e
TT
562021-03-08 Tom Tromey <tom@tromey.com>
57
58 * ada-lang.c (ada_qual_operation::evaluate): New method.
59 * ada-exp.h (class ada_qual_operation): New.
60
42fecb61
TT
612021-03-08 Tom Tromey <tom@tromey.com>
62
63 * ada-lang.c (ada_string_operation::evaluate): New method.
64 * ada-exp.h (class ada_string_operation): New.
65
03070ee9
TT
662021-03-08 Tom Tromey <tom@tromey.com>
67
68 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
69 * ada-exp.h: New file.
70
821e72d7
TT
712021-03-08 Tom Tromey <tom@tromey.com>
72
73 * expop.h (class multi_subscript_operation): New.
74 * eval.c (multi_subscript_operation::evaluate): New method.
75
085734dd
TT
762021-03-08 Tom Tromey <tom@tromey.com>
77
78 * eval.c (objc_msgcall_operation::evaluate): New method.
79 * c-exp.h (class objc_msgcall_operation): New.
80
e82a5afc
TT
812021-03-08 Tom Tromey <tom@tromey.com>
82
83 * expop.h (class var_value_operation): New.
84 * eval.c (var_value_operation::evaluate)
85 (var_value_operation::evaluate_for_address)
86 (var_value_operation::evaluate_with_coercion)
87 (var_value_operation::evaluate_for_sizeof)
88 (var_value_operation::evaluate_for_cast): New methods.
89 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
90
d9ad79d8
TT
912021-03-08 Tom Tromey <tom@tromey.com>
92
93 * expop.h (cxx_cast_ftype): New typedef.
94 (cxx_cast_operation): New template.
95 (dynamic_cast_operation, reinterpret_cast_operation): New
96 typedefs.
97
292382f4
TT
982021-03-08 Tom Tromey <tom@tromey.com>
99
100 * expop.h (class unop_cast_type_operation): New.
101 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
102 method.
103
165a813a
TT
1042021-03-08 Tom Tromey <tom@tromey.com>
105
106 * expop.h (class unop_cast_operation): New.
107 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
108
e5946e16
TT
1092021-03-08 Tom Tromey <tom@tromey.com>
110
111 * expop.h (class assign_modify_operation): New.
112 * eval.c (eval_binop_assign_modify): No longer static.
113 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
114
40786782
TT
1152021-03-08 Tom Tromey <tom@tromey.com>
116
117 * expop.h (class assign_operation): New.
118 * ax-gdb.c (assign_operation::do_generate_ax): New method.
119
44b675c8
TT
1202021-03-08 Tom Tromey <tom@tromey.com>
121
122 * expop.h (class type_instance_operation): New.
123 * eval.c (type_instance_operation::evaluate): New method.
124
f6b42326
TT
1252021-03-08 Tom Tromey <tom@tromey.com>
126
127 * expop.h (class op_this_operation): New.
128 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
129
cbc18219
TT
1302021-03-08 Tom Tromey <tom@tromey.com>
131
132 * expop.h (class unop_memval_operation)
133 (class unop_memval_type_operation): New.
134 * eval.c (eval_op_memval): No longer static.
135 (unop_memval_operation::evaluate_for_address)
136 (unop_memval_type_operation::evaluate_for_address)
137 (unop_memval_operation::evaluate_for_sizeof)
138 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
139 * ax-gdb.c (unop_memval_operation::do_generate_ax)
140 (unop_memval_type_operation::do_generate_ax): New methods.
141
ae4bb61e
TT
1422021-03-08 Tom Tromey <tom@tromey.com>
143
144 * expop.h (class unop_alignof_operation): New.
145 * eval.c (eval_op_alignof): No longer static.
146
85d23bda
TT
1472021-03-08 Tom Tromey <tom@tromey.com>
148
149 * expop.h (class unop_sizeof_operation): New.
150 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
151
14aff815
TT
1522021-03-08 Tom Tromey <tom@tromey.com>
153
154 * expop.h (class unop_addr_operation): New.
155 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
156
929f3aa7
TT
1572021-03-08 Tom Tromey <tom@tromey.com>
158
159 * expop.h (class typeid_operation): New.
160
0af8829e
TT
1612021-03-08 Tom Tromey <tom@tromey.com>
162
163 * expop.h (class decltype_operation): New.
164
4efc574c
TT
1652021-03-08 Tom Tromey <tom@tromey.com>
166
167 * expop.h (class typeof_operation): New.
168
5b5f5140
TT
1692021-03-08 Tom Tromey <tom@tromey.com>
170
171 * expop.h (class type_operation): New.
172 * eval.c (eval_op_type): No longer static.
173
876469ff
TT
1742021-03-08 Tom Tromey <tom@tromey.com>
175
176 * expop.h (class unop_ind_base_operation)
177 (class unop_ind_operation): New.
178 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
179 (unop_ind_base_operation::evaluate_for_address)
180 (unop_ind_base_operation::evaluate_for_sizeof): New method.
181 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
182
6d89e296
TT
1832021-03-08 Tom Tromey <tom@tromey.com>
184
185 * expop.h (unop_incr_operation): New template.
186 (preinc_operation, predec_operation, postinc_operation)
187 (postdec_operation): New typedefs.
188 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
189 (eval_op_postdec): No longer static.
190
9307d17b
TT
1912021-03-08 Tom Tromey <tom@tromey.com>
192
193 * expop.h (unary_ftype): New typedef.
194 (unop_operation, usual_ax_binop_operation): New templates.
195 (unary_plus_operation, unary_neg_operation)
196 (unary_complement_operation, unary_logical_not_operation): New
197 typedefs.
198 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
199 (eval_op_lognot): No longer static.
200 * ax-gdb.c (gen_expr_unop): New function.
201
ae64ba58
TT
2022021-03-08 Tom Tromey <tom@tromey.com>
203
204 * ax-gdb.c (comma_operation::do_generate_ax): New method.
205
d4eff4c1
TT
2062021-03-08 Tom Tromey <tom@tromey.com>
207
208 * expop.h (class repeat_operation): New.
209 * eval.c (eval_op_repeat): No longer static. Remove "op"
210 parameter.
211 (evaluate_subexp_standard): Update.
212 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
213
46916f2b
TT
2142021-03-08 Tom Tromey <tom@tromey.com>
215
216 * expop.h (class comparison_operation): New.
217 (equal_operation, notequal_operation, less_operation)
218 (gtr_operation, geq_operation, leq_operation): New typedefs.
219 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
220 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
221
224d6424
TT
2222021-03-08 Tom Tromey <tom@tromey.com>
223
224 * expop.h (class subscript_operation): New.
225 * eval.c (eval_op_subscript): No longer static.
226
373907ff
TT
2272021-03-08 Tom Tromey <tom@tromey.com>
228
229 * expop.h (class binop_operation, class usual_ax_binop_operation):
230 New.
231 (exp_operation, intdiv_operation, mod_operation, mul_operation)
232 (div_operation, rem_operation, lsh_operation, rsh_operation)
233 (bitwise_and_operation, bitwise_ior_operation)
234 (bitwise_xor_operation): New typedefs.
235 * eval.c (eval_op_binary): No longer static.
236
5133d78b
TT
2372021-03-08 Tom Tromey <tom@tromey.com>
238
239 * expop.h (class sub_operation): New.
240 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
241 (evaluate_subexp_standard): Update.
242
a94323b6
TT
2432021-03-08 Tom Tromey <tom@tromey.com>
244
245 * expop.h (class add_operation): New.
246 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
247 (evaluate_subexp_standard): Update.
248
e51e26a0
TT
2492021-03-08 Tom Tromey <tom@tromey.com>
250
251 * expop.h (class concat_operation): New.
252 * eval.c (eval_op_concat): No longer static. Remove "op"
253 parameter.
254 (evaluate_subexp_standard): Update.
255
07f724a8
TT
2562021-03-08 Tom Tromey <tom@tromey.com>
257
258 * expop.h (class structop_member_operation)
259 (class structop_mptr_operation): New.
260 * eval.c (eval_op_member): No longer static.
261
ab0609be
TT
2622021-03-08 Tom Tromey <tom@tromey.com>
263
264 * expop.h (class structop_ptr_operation): New.
265 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
266 parameter.
267
808b22cf
TT
2682021-03-08 Tom Tromey <tom@tromey.com>
269
270 * expop.h (class structop_base_operation)
271 (class structop_operation): New.
272 * eval.c (eval_op_structop_struct): No longer static.
273
8cfd3e95
TT
2742021-03-08 Tom Tromey <tom@tromey.com>
275
276 * expop.h (class complex_operation): New.
277
09db3700
TT
2782021-03-08 Tom Tromey <tom@tromey.com>
279
280 * eval.c (eval_op_objc_selector): No longer static.
281 * c-exp.h (class objc_selector_operation): New.
282
06dc61b9
TT
2832021-03-08 Tom Tromey <tom@tromey.com>
284
285 * eval.c: Include c-exp.h.
286 * c-exp.h (class objc_nsstring_operation): New.
287
72d0a711
TT
2882021-03-08 Tom Tromey <tom@tromey.com>
289
290 * c-lang.c (c_string_operation::evaluate): New method.
291 * c-exp.h: New file.
292
9186293f
TT
2932021-03-08 Tom Tromey <tom@tromey.com>
294
295 * expop.h (class ternop_cond_operation): New.
296 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
297
1594e0bb
TT
2982021-03-08 Tom Tromey <tom@tromey.com>
299
300 * expop.h (class ternop_slice_operation): New.
301 * eval.c (eval_op_ternop): No longer static.
302
b50db09f
TT
3032021-03-08 Tom Tromey <tom@tromey.com>
304
305 * expop.h (class string_operation): New.
306 * eval.c (eval_op_string): No longer static.
307
e6e01e16
TT
3082021-03-08 Tom Tromey <tom@tromey.com>
309
310 * expop.h (class internalvar_operation): New.
311 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
312
e6985c5e
TT
3132021-03-08 Tom Tromey <tom@tromey.com>
314
315 * expop.h (class bool_operation): New.
316
55bdbff8
TT
3172021-03-08 Tom Tromey <tom@tromey.com>
318
319 * expop.h (class register_operation): New.
320 * eval.c (eval_op_register): No longer static.
321 * ax-gdb.c (register_operation::do_generate_ax): New method.
322
247d935b
TT
3232021-03-08 Tom Tromey <tom@tromey.com>
324
325 * expop.h (class last_operation): New.
326
17679395
TT
3272021-03-08 Tom Tromey <tom@tromey.com>
328
329 * expop.h (class func_static_var_operation): New.
330 * eval.c (eval_op_func_static_var): No longer static.
331
b5cc3923
TT
3322021-03-08 Tom Tromey <tom@tromey.com>
333
334 * expop.h (class var_entry_value_operation): New.
335 * eval.c (eval_op_var_entry_value): No longer static.
336
0c8effa3
TT
3372021-03-08 Tom Tromey <tom@tromey.com>
338
339 * expression.h (class operation) <set_outermost>: New method.
340 * expop.h (class var_msym_value_operation): New.
341 * eval.c (eval_op_var_msym_value): No longer static.
342 (var_msym_value_operation::evaluate_for_address)
343 (var_msym_value_operation::evaluate_for_sizeof)
344 (var_msym_value_operation::evaluate_for_cast): New methods.
345 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
346 method.
347
d336c29e
TT
3482021-03-08 Tom Tromey <tom@tromey.com>
349
350 * expop.h (class long_const_operation): New.
351 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
352
d5ab122c
TT
3532021-03-08 Tom Tromey <tom@tromey.com>
354
355 * expop.h (class scope_operation): New.
356 * eval.c (eval_op_scope): No longer static.
357 (scope_operation::evaluate_for_address): New method.
358 * ax-gdb.c (scope_operation::do_generate_ax): New method.
359
cae26a0c
TT
3602021-03-08 Tom Tromey <tom@tromey.com>
361
362 * expprint.c (float_const_operation::dump): New method.
363 * expop.h (float_data): New typedef.
364 (class float_const_operation): New.
365
75f9892d
TT
3662021-03-08 Tom Tromey <tom@tromey.com>
367
368 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
369 * ax-gdb.c (gen_expr_binop): New function.
370 (gen_expr_structop): Likewise.
371
de401988
TT
3722021-03-08 Tom Tromey <tom@tromey.com>
373
374 * expprint.c (expr::dump_for_expression): New functions.
375 * expop.h (dump_for_expression): New overloads.
376 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
377 Update.
378
e2803273
TT
3792021-03-08 Tom Tromey <tom@tromey.com>
380
381 * expression.h (expr::operation): New class.
382 (expr::make_operation): New function.
383 (expr::operation_up): New typedef.
384 * expop.h: New file.
385 * eval.c (operation::evaluate_for_cast)
386 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
387 New methods.
388 * ax-gdb.c (operation::generate_ax): New method.
389
e18c58f2
TT
3902021-03-08 Tom Tromey <tom@tromey.com>
391
392 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
393 (gen_expr_binop_rest): New overload.
394
c0d7ed8c
TT
3952021-03-08 Tom Tromey <tom@tromey.com>
396
397 * eval.c (eval_multi_subscript): New function.
398 (evaluate_subexp_standard): Use it.
399
dd5fd283
TT
4002021-03-08 Tom Tromey <tom@tromey.com>
401
402 * ada-lang.c (ada_binop_exp): New function.
403 (ada_evaluate_subexp): Use it.
404
3848abd6
TT
4052021-03-08 Tom Tromey <tom@tromey.com>
406
407 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
408 parameters.
409 (ada_evaluate_subexp): Use it.
410
38dc70cf
TT
4112021-03-08 Tom Tromey <tom@tromey.com>
412
413 * ada-lang.c (ada_binop_minmax): New function.
414 (ada_evaluate_subexp): Use it.
415
b84564fc
TT
4162021-03-08 Tom Tromey <tom@tromey.com>
417
418 * ada-lang.c (ada_unop_atr): New function.
419 (ada_evaluate_subexp): Use it.
420
b467efaa
TT
4212021-03-08 Tom Tromey <tom@tromey.com>
422
423 * ada-lang.c (ada_binop_in_bounds): New function.
424 (ada_evaluate_subexp): Use it.
425
5ce19db8
TT
4262021-03-08 Tom Tromey <tom@tromey.com>
427
428 * ada-lang.c (ada_ternop_slice): New function.
429 (ada_evaluate_subexp): Use it.
430
214b13ac
TT
4312021-03-08 Tom Tromey <tom@tromey.com>
432
433 * ada-lang.c (ada_equal_binop): New function.
434 (ada_evaluate_subexp): Use it.
435
faa1dfd7
TT
4362021-03-08 Tom Tromey <tom@tromey.com>
437
438 * ada-lang.c (ada_mult_binop): New function.
439 (ada_evaluate_subexp): Use it.
440
d05e24e6
TT
4412021-03-08 Tom Tromey <tom@tromey.com>
442
443 * ada-lang.c (ada_abs): New function.
444 (ada_evaluate_subexp): Use it.
445
68c75735
TT
4462021-03-08 Tom Tromey <tom@tromey.com>
447
448 * ada-lang.c (ada_atr_size): New function.
449 (ada_evaluate_subexp): Use it.
450
020dbabe
TT
4512021-03-08 Tom Tromey <tom@tromey.com>
452
453 * ada-lang.c (ada_atr_tag): New function.
454 (ada_evaluate_subexp): Use it.
455
7efc87ff
TT
4562021-03-08 Tom Tromey <tom@tromey.com>
457
458 * ada-lang.c (ada_unop_in_range): New function.
459 (ada_evaluate_subexp): Use it.
460
82390ab8
TT
4612021-03-08 Tom Tromey <tom@tromey.com>
462
463 * ada-lang.c (ada_unop_neg): New function.
464 (ada_evaluate_subexp): Use it.
465
62d4bd94
TT
4662021-03-08 Tom Tromey <tom@tromey.com>
467
468 * ada-lang.c (eval_ternop_in_range): New function.
469 (ada_evaluate_subexp): Use it.
470
3634f669
TT
4712021-03-08 Tom Tromey <tom@tromey.com>
472
473 * opencl-lang.c (eval_opencl_assign): New function.
474 (evaluate_subexp_opencl): Use it.
475
5e80600e
TT
4762021-03-08 Tom Tromey <tom@tromey.com>
477
478 * eval.c (eval_op_objc_msgcall): New function.
479 (evaluate_subexp_standard): Use it.
480
fb5ba2ab
TT
4812021-03-08 Tom Tromey <tom@tromey.com>
482
483 * eval.c (eval_binop_assign_modify): New function.
484 (evaluate_subexp_standard): Use it.
485
a49881f7
TT
4862021-03-08 Tom Tromey <tom@tromey.com>
487
488 * m2-lang.c (eval_op_m2_subscript): New function.
489 (evaluate_subexp_modula2): Use it.
490
41bdced5
TT
4912021-03-08 Tom Tromey <tom@tromey.com>
492
493 * m2-lang.c (eval_op_m2_high): New function.
494 (evaluate_subexp_modula2): Use it.
495
13ea014a
TT
4962021-03-08 Tom Tromey <tom@tromey.com>
497
498 * eval.c (evaluate_subexp_for_address_base): New function.
499 (evaluate_subexp_for_address): Use it.
500 (evaluate_subexp_for_sizeof_base): New function.
501 (evaluate_subexp_for_sizeof): Use it.
502
1fa41fc7
TT
5032021-03-08 Tom Tromey <tom@tromey.com>
504
505 * rust-lang.c (eval_op_rust_structop): New function.
506 (rust_evaluate_subexp): Use it.
507
575cae23
TT
5082021-03-08 Tom Tromey <tom@tromey.com>
509
510 * rust-lang.c (eval_op_rust_struct_anon): New function.
511 (rust_evaluate_subexp): Use it.
512
05104233
TT
5132021-03-08 Tom Tromey <tom@tromey.com>
514
515 * rust-lang.c (eval_op_rust_array): New function.
516 (rust_evaluate_subexp): Use it.
517
6fa9831f
TT
5182021-03-08 Tom Tromey <tom@tromey.com>
519
520 * rust-lang.c (eval_op_rust_complement): New function.
521 (rust_evaluate_subexp): Use it.
522
d123f9e4
TT
5232021-03-08 Tom Tromey <tom@tromey.com>
524
525 * rust-lang.c (eval_op_rust_ind): New function.
526 (rust_evaluate_subexp): Use it.
527
984af2cb
TT
5282021-03-08 Tom Tromey <tom@tromey.com>
529
530 * rust-lang.c (rust_subscript): Change parameters.
531 (rust_evaluate_subexp): Update.
532
d148f803
TT
5332021-03-08 Tom Tromey <tom@tromey.com>
534
535 * rust-lang.c (rust_range): Change parameters.
536 (rust_evaluate_subexp): Update.
537
9cbd1c20
TT
5382021-03-08 Tom Tromey <tom@tromey.com>
539
540 * f-lang.c (eval_op_f_allocated): New function.
541 (evaluate_subexp_f): Use it.
542
3c18c49c
TT
5432021-03-08 Tom Tromey <tom@tromey.com>
544
545 * f-lang.c (fortran_require_array): New function.
546 (evaluate_subexp_f): Use it.
547
216f6fcb
TT
5482021-03-08 Tom Tromey <tom@tromey.com>
549
550 * f-lang.c (eval_op_f_kind): New function.
551 (evaluate_subexp_f): Use it.
552
00f2db6f
TT
5532021-03-08 Tom Tromey <tom@tromey.com>
554
555 * f-lang.c (eval_op_f_cmplx): New function.
556 (evaluate_subexp_f): Use it.
557
93b2b5fa
TT
5582021-03-08 Tom Tromey <tom@tromey.com>
559
560 * f-lang.c (eval_op_f_modulo): New function.
561 (evaluate_subexp_f): Use it.
562
9f1a1f3c
TT
5632021-03-08 Tom Tromey <tom@tromey.com>
564
565 * f-lang.c (eval_op_f_floor): New function.
566 (evaluate_subexp_f): Use it.
567
3dc41f3c
TT
5682021-03-08 Tom Tromey <tom@tromey.com>
569
570 * f-lang.c (eval_op_f_ceil): New function.
571 (evaluate_subexp_f): Use it.
572
e08109f2
TT
5732021-03-08 Tom Tromey <tom@tromey.com>
574
575 * f-lang.c (eval_op_f_mod): New function.
576 (evaluate_subexp_f): Use it.
577
cc05c68e
TT
5782021-03-08 Tom Tromey <tom@tromey.com>
579
580 * f-lang.c (eval_op_f_abs): New function.
581 (evaluate_subexp_f): Use it.
582
aec95807
TT
5832021-03-08 Tom Tromey <tom@tromey.com>
584
585 * eval.c (eval_op_type): New function.
586 (evaluate_subexp_standard): Use it.
587
a220ead5
TT
5882021-03-08 Tom Tromey <tom@tromey.com>
589
590 * eval.c (eval_op_postdec): New function.
591 (evaluate_subexp_standard): Use it.
592
abffe116
TT
5932021-03-08 Tom Tromey <tom@tromey.com>
594
595 * eval.c (eval_op_postinc): New function.
596 (evaluate_subexp_standard): Use it.
597
9e1361b7
TT
5982021-03-08 Tom Tromey <tom@tromey.com>
599
600 * eval.c (eval_op_predec): New file.
601 (evaluate_subexp_standard): Use it.
602
00f50884
TT
6032021-03-08 Tom Tromey <tom@tromey.com>
604
605 * eval.c (eval_op_preinc): New function.
606 (evaluate_subexp_standard): Use it.
607
3aef2a07
TT
6082021-03-08 Tom Tromey <tom@tromey.com>
609
610 * eval.c (eval_op_memval): New function.
611 (evaluate_subexp_standard): Use it.
612
acee9468
TT
6132021-03-08 Tom Tromey <tom@tromey.com>
614
615 * eval.c (eval_op_alignof): New function.
616 (evaluate_subexp_standard): Use it.
617
786f70ee
TT
6182021-03-08 Tom Tromey <tom@tromey.com>
619
620 * eval.c (eval_op_ind): New function.
621 (evaluate_subexp_standard): Use it.
622
24338fb9
TT
6232021-03-08 Tom Tromey <tom@tromey.com>
624
625 * eval.c (eval_op_lognot): New function.
626 (evaluate_subexp_standard): Use it.
627
1f09ec81
TT
6282021-03-08 Tom Tromey <tom@tromey.com>
629
630 * eval.c (eval_op_complement): New function.
631 (evaluate_subexp_standard): Use it.
632
606d105f
TT
6332021-03-08 Tom Tromey <tom@tromey.com>
634
635 * eval.c (eval_op_neg): New function.
636 (evaluate_subexp_standard): Use it.
637
39f288be
TT
6382021-03-08 Tom Tromey <tom@tromey.com>
639
640 * eval.c (eval_op_plus): New function.
641 (evaluate_subexp_standard): Use it.
642
eed70b1c
TT
6432021-03-08 Tom Tromey <tom@tromey.com>
644
645 * eval.c (eval_op_repeat): New function.
646 (evaluate_subexp_standard): Use it.
647
60cdd487
TT
6482021-03-08 Tom Tromey <tom@tromey.com>
649
650 * eval.c (eval_op_leq): New function.
651 (evaluate_subexp_standard): Use it.
652
96e3efd9
TT
6532021-03-08 Tom Tromey <tom@tromey.com>
654
655 * eval.c (eval_op_geq): New function.
656 (evaluate_subexp_standard): Use it.
657
1f78d732
TT
6582021-03-08 Tom Tromey <tom@tromey.com>
659
660 * eval.c (eval_op_gtr): New function.
661 (evaluate_subexp_standard): Use it.
662
6cad1349
TT
6632021-03-08 Tom Tromey <tom@tromey.com>
664
665 * eval.c (eval_op_less): New function.
666 (evaluate_subexp_standard): Use it.
667
1fcb3559
TT
6682021-03-08 Tom Tromey <tom@tromey.com>
669
670 * eval.c (eval_op_notequal): New function.
671 (evaluate_subexp_standard): Use it.
672
0cc96de8
TT
6732021-03-08 Tom Tromey <tom@tromey.com>
674
675 * eval.c (eval_op_equal): New function.
676 (evaluate_subexp_standard): Use it.
677
288d26bc
TT
6782021-03-08 Tom Tromey <tom@tromey.com>
679
680 * eval.c (eval_op_subscript): New function.
681 (evaluate_subexp_standard): Use it.
682
7cdcdd02
TT
6832021-03-08 Tom Tromey <tom@tromey.com>
684
685 * eval.c (eval_op_binary): New function.
686 (evaluate_subexp_standard): Use it.
687
d9790e22
TT
6882021-03-08 Tom Tromey <tom@tromey.com>
689
690 * eval.c (eval_op_sub): New function.
691 (evaluate_subexp_standard): Use it.
692
aedaf9ac
TT
6932021-03-08 Tom Tromey <tom@tromey.com>
694
695 * eval.c (eval_op_add): New function.
696 (evaluate_subexp_standard): Use it.
697
b7a96ed2
TT
6982021-03-08 Tom Tromey <tom@tromey.com>
699
700 * eval.c (eval_op_member): New function.
701 (evaluate_subexp_standard): Use it.
702
fb461aa3
TT
7032021-03-08 Tom Tromey <tom@tromey.com>
704
705 * eval.c (eval_op_structop_ptr): New function.
706 (evaluate_subexp_standard): Use it.
707
3e96c4fc
TT
7082021-03-08 Tom Tromey <tom@tromey.com>
709
710 * eval.c (eval_op_structop_struct): New function.
711 (evaluate_subexp_standard): Use it.
712
f960a617
TT
7132021-03-08 Tom Tromey <tom@tromey.com>
714
715 * eval.c (eval_op_ternop): New function.
716 (evaluate_subexp_standard): Use it.
717
5c2f201e
TT
7182021-03-08 Tom Tromey <tom@tromey.com>
719
720 * eval.c (eval_op_concat): New function.
721 (evaluate_subexp_standard): Use it.
722
f871bae1
TT
7232021-03-08 Tom Tromey <tom@tromey.com>
724
725 * eval.c (eval_op_objc_selector): New function.
726 (evaluate_subexp_standard): Use it.
727
14a1c64a
TT
7282021-03-08 Tom Tromey <tom@tromey.com>
729
730 * eval.c (eval_op_string): New function.
731 (evaluate_subexp_standard): Use it.
732
ffff730b
TT
7332021-03-08 Tom Tromey <tom@tromey.com>
734
735 * eval.c (eval_op_register): New function.
736 (evaluate_subexp_standard): Use it.
737
9b1d8af6
TT
7382021-03-08 Tom Tromey <tom@tromey.com>
739
740 * eval.c (eval_op_func_static_var): New function.
741 (evaluate_subexp_standard): Use it.
742
c0df9289
TT
7432021-03-08 Tom Tromey <tom@tromey.com>
744
745 * eval.c (eval_op_var_msym_value): New function.
746 (evaluate_subexp_standard): Use it.
747
50b98adc
TT
7482021-03-08 Tom Tromey <tom@tromey.com>
749
750 * eval.c (eval_op_var_entry_value): New function.
751 (evaluate_subexp_standard): Use it.
752
ea2d29f7
TT
7532021-03-08 Tom Tromey <tom@tromey.com>
754
755 * eval.c (eval_op_scope): New function.
756 (evaluate_subexp_standard): Use it.
757
01573d73
TT
7582021-03-06 Chernov Sergey <klen_s@mail.ru>
759
760 PR gdb/27528:
761 * ada-lang.c (ada_fold_name): Use gdb::to_string.
762
9938d15a
TT
7632021-03-06 Tom Tromey <tom@tromey.com>
764
765 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
766 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
767 * dwarf2/read.c (dwarf2_elf_names): No longer static.
768 (locate_dwz_sections, dwz_search_other_debugdirs)
769 (dwarf2_get_dwz_file): Move to dwz.c.
770 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
771 read.h.
772 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
773 (dwarf2_get_dwz_file): Move from read.c.
774
18035655
TT
7752021-03-06 Tom Tromey <tom@tromey.com>
776
777 * debuginfod-support.h: Include scoped_fd.h.
778
a7308ce0
TT
7792021-03-06 Tom Tromey <tom@tromey.com>
780
781 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
782 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
783 (get_abbrev_section_for_cu, read_attribute_value)
784 (get_debug_line_section): Update.
785 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
786
fbedd546
TT
7872021-03-06 Tom Tromey <tom@tromey.com>
788
789 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
790 method.
791 * dwarf2/read.c (section_is_p): Remove.
792 (dwarf2_per_bfd::locate_sections)
793 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
794 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
795 (dwarf2_locate_common_dwp_sections)
796 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
797 Update.
798
c2a62a3d
TT
7992021-03-06 Tom Tromey <tom@tromey.com>
800
801 * xcoffread.c: Include sect-names.h.
802 * symfile.h (struct dwarf2_section_names, struct
803 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
804 * dwarf2/sect-names.h: New file, from symfile.h.
805 * dwarf2/read.c: Include sect-names.h.
806
4444f407
TT
8072021-03-06 Tom Tromey <tom@tromey.com>
808
809 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
810 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
811 (abbrev_table::read): Update.
812 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
813 (struct abbrev_info): Reformat.
814 <attrs>: Now an array.
815 (struct abbrev_table) <alloc_abbrev>: Remove.
816
dd99cf0c
WP
8172021-03-06 Weimin Pan <weimin.pan@oracle.com>
818
819 * ctfread.c (ctf_psymtab_add_enums): New function.
820 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
821
844be3f2
WP
8222021-03-06 Weimin Pan <weimin.pan@oracle.com>
823
824 * ctfread.c (read_func_kind_type): Set up function arguments.
825
b2668f28
AB
8262021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
827 Andrew Burgess <andrew.burgess@embecosm.com>
828
829 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
830 includes.
831 (riscv_csrset): New static global.
832 (riscv_update_csrmap): New function.
833 (riscv_iterate_over_regset_sections): Process CSRs.
834
d782d24b
AB
8352021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
836
837 * riscv-tdep.c (riscv_feature_name_csr): Define.
838 (riscv_feature_name_cpu): Define.
839 (riscv_feature_name_fpu): Define.
840 (riscv_feature_name_virtual): Define.
841 (riscv_xreg_feature): Use riscv_feature_name_cpu.
842 (riscv_freg_feature): Use riscv_feature_name_fpu.
843 (riscv_virtual_feature): Use riscv_feature_name_virtual.
844 (riscv_csr_feature): Use riscv_feature_name_csr.
845 * riscv-tdep.h (riscv_feature_name_csr): Declare.
846
fb8f3fc0
AB
8472021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
848 Craig Blackmore <craig.blackmore@embecosm.com>
849
850 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
851 (ALLDEPFILES): Add riscv-none-tdep.c.
852 * configure: Regenerate.
853 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
854 support.
855 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
856 * elf-none-tdep.c: New file.
857 * elf-none-tdep.h: New file.
858 * riscv-none-tdep.c: New file.
859
95ce627a
AB
8602021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
861 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * corelow.c: Add 'xml-tdesc.h' include.
864 (core_target::read_description): Load the target description from
865 the core file when possible.
866 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
867 note.
868 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
869 (gcore_elf_make_tdesc_note): New function.
870 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
871 * linux-tdep.c (linux_make_corefile_notes): Add target description
872 note.
873
f3a5df7b
AB
8742021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * Makefile.in (SFILES): Add gcore-elf.c.
877 (HFILES_NO_SRCDIR): Add gcore-elf.h
878 * configure: Regenerate.
879 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
880 support.
881 * fbsd-tdep.c: Add 'gcore-elf.h' include.
882 (struct fbsd_collect_regset_section_cb_data): Delete.
883 (fbsd_collect_regset_section_cb): Delete.
884 (fbsd_collect_thread_registers): Delete.
885 (struct fbsd_corefile_thread_data): Delete.
886 (fbsd_corefile_thread): Delete.
887 (fbsd_make_corefile_notes): Call
888 gcore_elf_build_thread_register_notes instead of the now deleted
889 FreeBSD code.
890 * gcore-elf.c: New file, the content was moved here from
891 linux-tdep.c, functions were renamed and given minor cleanup.
892 * gcore-elf.h: New file.
893 * gcore.c (gcore_find_signalled_thread): Moved here from
894 linux-tdep.c and given a new name. Minor cleanups.
895 * gcore.h (gcore_find_signalled_thread): Declare.
896 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
897 (struct linux_collect_regset_section_cb_data): Delete.
898 (linux_collect_regset_section_cb): Delete.
899 (linux_collect_thread_registers): Delete.
900 (linux_corefile_thread): Call
901 gcore_elf_build_thread_register_notes.
902 (find_signalled_thread): Delete.
903 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
904
d1e93af6
SM
9052021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
906
907 PR gdb/27147
908 * sparc-nat.h (sparc_fetch_inferior_registers): Add
909 process_stratum_target parameter,
910 sparc_store_inferior_registers): update callers.
911 * sparc-nat.c (sparc_fetch_inferior_registers,
912 sparc_store_inferior_registers): Add process_stratum_target
913 parameter. Switch current thread before calling
914 sparc_supply_gregset / sparc_collect_rwindow.
915 (sparc_store_inferior_registers): Likewise.
916 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
917 (sparc32obsd_collect_uthread): Likewise.
918 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
919 Add assertion.
920 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
921 sparc64obsd_supply_uthread): Add assertion.
922
1178743e
TT
9232021-03-04 Tom Tromey <tromey@adacore.com>
924
925 * ada-lang.c (struct match_data) <found_sym>: Now bool.
926 (aux_add_nonlocal_symbols): Update.
927 (ada_add_block_symbols): Change "found_sym" to bool.
928
1bfa81ac
TT
9292021-03-03 Tom Tromey <tromey@adacore.com>
930
931 * ada-lang.c (ada_resolve_function): Update comment.
932 (is_nonfunction, add_symbols_from_enclosing_procs)
933 (remove_extra_symbols): Likewise.
934 (struct match_data): Add constructor, initializers.
935 (add_nonlocal_symbols): Remove memset.
936 (aux_add_nonlocal_symbols): Update comment.
937 (ada_add_block_renamings, add_nonlocal_symbols)
938 (ada_add_all_symbols): Likewise.
939 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
940
bbcdf9ab
TT
9412021-03-02 Tom Tromey <tromey@adacore.com>
942
943 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
944 (cast_to_gnat_encoded_fixed_point_type): Remove.
945 (ada_value_cast, ada_evaluate_subexp): Update.
946 (gnat_encoded_fixed_point_type_info)
947 (ada_is_gnat_encoded_fixed_point_type)
948 (gnat_encoded_fixed_point_delta)
949 (gnat_encoded_fixed_point_scaling_factor): Remove.
950 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
951 (gnat_encoded_fixed_point_delta)
952 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
953 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
954 (ada_print_type): Update.
955 * ada-valprint.c (ada_value_print_num): Update.
956 * dwarf2/read.c (ada_get_gnat_encoded_number)
957 (ada_get_gnat_encoded_ratio): New functions.
958 (finish_fixed_point_type): Use them. Add parameters.
959 (GNAT_FIXED_POINT_SUFFIX): New define.
960 (gnat_encoded_fixed_point_type_info): New function.
961 (read_base_type): Handle gnat encodings.
962
5f9febe0
TT
9632021-03-02 Tom Tromey <tromey@adacore.com>
964
965 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
966 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
967 std::string.
968 (GROW_VECT): Remove.
969 (grow_vect): Remove.
970
d1183b06
TT
9712021-03-02 Tom Tromey <tromey@adacore.com>
972
973 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
974 * ada-lang.c (resolve_subexp): Update.
975 (ada_resolve_function): Accept a vector.
976 (is_nonfunction, add_defn_to_vec)
977 (add_symbols_from_enclosing_procs): Likewise.
978 (num_defns_collected, defns_collected): Remove.
979 (remove_extra_symbols): Return a vector.
980 (remove_irrelevant_renamings): Return void.
981 (ada_add_local_symbols): Accept a vector.
982 (struct match_data) <obstackp>: Remove.
983 <resultp>: New member.
984 (aux_add_nonlocal_symbols): Update.
985 (ada_add_block_renamings, add_nonlocal_symbols)
986 (ada_add_all_symbols): Accept a vector.
987 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
988 vector.
989 (ada_lookup_symbol): Update.
990 (ada_add_block_symbols): Accept a vector.
991 (get_var_value, iterate_over_symbols): Update.
992 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
993 Update.
994
886d459f
TT
9952021-03-02 Tom Tromey <tromey@adacore.com>
996
997 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
998
bdcccc56
TT
9992021-03-02 Tom Tromey <tromey@adacore.com>
1000
1001 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1002 auto_obstack.
1003 <root>: Initialize.
1004 (ada_pspace_data): Remove destructor.
1005 <sym_cache>: Now a unique_ptr.
1006 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1007 (ada_get_symbol_cache): Use 'new'.
1008 (ada_clear_symbol_cache): Rewrite.
1009
1228719f
TT
10102021-03-02 Tom Tromey <tromey@adacore.com>
1011
1012 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1013 is null.
1014
bb3a4efe
LS
10152021-02-27 Lancelot Six <lsix@lancelotsix.com>
1016
1017 PR gdb/27393
1018 * source.c (add_path): Skip empty dirnames.
1019
26b43ca6 10202021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1021
1022 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1023 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1024
dffdd8b5
SM
10252021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1026
1027 PR gdb/26861
1028 * target.c (target_mourn_inferior): Only compare pids in
1029 target_mourn_inferior.
1030
64d38fdd
JM
10312021-02-25 Jan Matyas <jmatyas@codasip.com>
1032
1033 PR gdb/26819
1034 * remote.c (remote_target::start_remote): Ensure the single
1035 thread, automatically added for remote targets without the
1036 concept of threading, is initially in set to the "resumed"
1037 state.
1038 * remote.c (remote_target::add_current_inferior_and_thread):
1039 Add return value - return the main thread.
1040
2450ad54
JV
10412021-02-25 Jan Vrany <jan.vrany@labware.com>
1042
1043 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1044 (mi_tsv_created): Likewise.
1045 (mi_tsv_deleted): Likewise.
1046
30c80d88
TV
10472021-02-25 Tom de Vries <tdevries@suse.de>
1048
1049 PR symtab/27354
1050 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1051 section_kind for &dwo_file->sections.info.
1052
68337b8b
AB
10532021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 PR fortran/26155
1056 * f-lang.c (fortran_argument_convert): Delete declaration.
1057 (fortran_prepare_argument): New function.
1058 (evaluate_subexp_f): Move logic to new function
1059 fortran_prepare_argument.
1060
faeb9f13
AB
10612021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1062
1063 * f-exp.y (f77_keywords): Add 'associated'.
1064 * f-lang.c (fortran_associated): New function.
1065 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1066 (operator_length_f): Likewise.
1067 (print_unop_or_binop_subexp_f): New function.
1068 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1069 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1070 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1071 (operator_check_f): Likewise.
1072 * std-operator.def: Add FORTRAN_ASSOCIATED.
1073
170f4b23
AB
10742021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * f-exp.y (fortran_operators): Add ".xor.".
1077
aa659cfa
TV
10782021-02-24 Tom de Vries <tdevries@suse.de>
1079
1080 PR symtab/27336
1081 * dwarf2/attribute.c (attribute::form_is_signed): New function
1082 factored out of ...
1083 * dwarf2/attribute.h (attribute::as_signed): ... here.
1084 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1085 (attribute::form_is_signed): Declare.
1086 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1087 for DW_AT_decl_file.
1088
268c77c1
KB
10892021-02-24 Kevin Buettner <kevinb@redhat.com>
1090
1091 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1092 order for <sys/ptrace.h> and <asm/ptrace.h>.
1093
665af52e
KB
10942021-02-24 Kevin Buettner <kevinb@redhat.com>
1095
1096 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1097 <sys/ptrace.h>.
1098
dd80d750
AB
10992021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1100
1101 * exec.c (set_section_command): Move variable declarations into
1102 the function body, and use std::string instead of a fixed size
1103 buffer.
1104
336aa7b7
AB
11052021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1106
1107 * exec.c (exec_target::get_section_table): Delete member function.
1108 (section_table_read_available_memory): Use current_top_target, not
1109 just the exec_ops target.
1110 * target-delegates.c: Regenerate.
1111 * target.c (default_get_section_table): New function.
1112 * target.h (target_ops::get_section_table): Change default
1113 behaviour to call default_get_section_table.
1114 (default_get_section_table): Declare.
1115
02f7d26b
AB
11162021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 * exec.c (exec_target::close): Call new clear_target_sections
1119 function.
1120 (program_space::add_target_sections): Update name of member
1121 variable.
1122 (program_space::add_target_sections): Update name of member
1123 variable.
1124 (program_space::remove_target_sections): Likewise.
1125 (exec_one_fork): Use new target_sections member function.
1126 (exec_target::get_section_table): Likewise.
1127 (exec_target::files_info): Likewise.
1128 (set_section_command): Likewise.
1129 (exec_set_section_address): Likewise.
1130 (exec_target::has_memory): Use new target_sections member
1131 function.
1132 * progspace.h (program_space::clear_target_sections): New member
1133 function.
1134 (program_space::target_sections): Rename member variable to
1135 m_target_sections, replace with a new member function.
1136 (program_space::m_target_sections): New member variable.
1137 * solib-dsbt.c (scan_dyntag): Use new member function.
1138 * solib-svr4.c (scan_dyntag): Likewise.
1139
19cf757a
AB
11402021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1143 return type const.
1144 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1145 (section_table_read_available_memory): Make local const.
1146 (exec_target::xfer_partial): Make local const.
1147 (print_section_info): Make parameter const.
1148 * gdb/exec.h (print_section_info): Likewise.
1149 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1150 const.
1151 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1152 Likewise.
1153 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1154 Likewise.
1155 * gdb/s390-tdep.c (s390_load): Likewise.
1156 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1157 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1158 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1159 Rename to...
1160 (target_debug_print_const_target_section_table_p): ...this.
1161 * gdb/target-delegates.c: Regenerate.
1162 * gdb/target.c (target_get_section_table): Make return type const.
1163 (target_section_by_addr): Likewise. Also make some locals const.
1164 (memory_xfer_partial_1): Make some locals const.
1165 * gdb/target.h (struct target_ops) <get_section_table>: Make
1166 return type const.
1167 (target_section_by_addr): Likewise.
1168 (target_get_section_table): Likewise.
1169
02a79309
AB
11702021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * NEWS: Mention new 'maint info target-sections' command.
1173 * maint.c (maintenance_info_target_sections): New function.
1174 (_initialize_maint_cmds): Register new command.
1175
895b7b4e
AB
11762021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1179 (riscv_features_from_bfd): ...this. Change parameter type to
1180 'bfd*', and update as required.
1181 (riscv_find_default_target_description): Update call to
1182 riscv_features_from_bfd. Select a default xlen based on
1183 info.bfd_arch_info.
1184 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1185
bc3c0632
AB
11862021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1189 dynamic types in UNOP_IND.
1190
08ac5771
SM
11912021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 PR gdb/26828
1194 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1195 Instantiate queue.
1196 (~dwarf2_queue_guard): Clear queue.
1197 (queue_comp_unit): Assert that queue is
1198 instantiated.
1199 (process_queue): Adjust.
1200 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1201
616c069a
SM
12022021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1203
1204 PR gdb/26828
1205 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1206 to decide whether or not to enqueue it for expansion.
1207 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1208 after calling maybe_queue_comp_unit.
1209
897608ed
SM
12102021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1211
1212 * linux-nat.c (linux_nat_filter_event): Return void.
1213
15908a11
TT
12142021-02-22 Tom Tromey <tromey@adacore.com>
1215
1216 * solib-svr4.c (enable_break): Update.
1217 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1218 type.
1219 (target_bfd_reopen): Change parameter type.
1220 * bfd-target.h (target_bfd_reopen): Change parameter type.
1221
f53fc427
SM
12222021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * thread.c (add_thread_silent): Add assert.
1225 (find_thread_ptid): Add assert.
1226
de146e19
SM
12272021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1228
1229 PR gdb/27435
1230 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1231 (target_unpush_up): Likewise.
1232 * procfs.c (procfs_target::attach): Push target early. Use
1233 target_unpush_up to unpush target in case of error.
1234 * target.h (struct target_unpusher): Move here.
1235 (target_unpush_up): Likewise.
1236
8488c357
KB
12372021-02-19 Kevin Buettner <kevinb@redhat.com>
1238
1239 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1240 (which in turn includes <gnulib/config.h>) before include
1241 of <signal.h>.
1242
5a9f5403
NC
12432021-02-19 Nelson Chu <nelson.chu@sifive.com>
1244
1245 PR 27158
1246 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1247 (decode_j_type_insn): Likewise.
1248 (decode_cj_type_insn): Likewise.
1249 (decode_b_type_insn): Likewise.
1250 (decode): Likewise.
1251
26f53cd3
TT
12522021-02-18 Tom Tromey <tom@tromey.com>
1253
1254 * expression.h (struct expression) <evaluate>: Declare method.
1255 * eval.c (evaluate_subexp): Simplify.
1256 (expression::evaluate): New method.
1257 (evaluate_expression, evaluate_type): Use expression::evaluate.
1258
6a780b67
KB
12592021-02-17 Kevin Buettner <kevinb@redhat.com>
1260
1261 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1262 to accessing it.
1263 (ada_lookup_name_info): Likewise.
1264
adeab0c5
MF
12652021-02-13 Mike Frysinger <vapier@gentoo.org>
1266
1267 * aclocal.m4: Regenerate.
1268
089436f7
TV
12692021-02-12 Tom de Vries <tdevries@suse.de>
1270
1271 PR threads/26228
1272 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1273 (lin_thread_signals): New static var.
1274 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1275 New function.
1276 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1277 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1278 Declare.
1279 * linux-thread-db.c (check_thread_signals): Use
1280 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1281
96df3e28
AB
12822021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1283
1284 * f-exp.y (f77_keywords): Add allocated.
1285 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1286 (operator_length_f): Likewise.
1287 (print_subexp_f): Likewise.
1288 (dump_subexp_body_f): Likewise.
1289 (operator_check_f): Likewise.
1290 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1291
05f68f52
TV
12922021-02-11 Tom de Vries <tdevries@suse.de>
1293
1294 PR symtab/27353
1295 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1296 Return true for DW_FORM_strx.
1297
b260f8d6
TT
12982021-02-11 Tom Tromey <tromey@adacore.com>
1299
1300 PR gdb/27383:
1301 * parse.c (write_exp_symbol_reference): Write sym.block.
1302
bf3386f0
AB
13032021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * NEWS: Mention changes to 'maint info sections'.
1306 * maint.c (match_substring): Return a bool, fix whitespace issue.
1307 (struct single_bfd_flag_info): New struct.
1308 (bfd_flag_info): New static global.
1309 (match_bfd_flags): Return a bool, use bfd_flag_info.
1310 (print_bfd_flags): Use bfd_flag_info.
1311 (maint_print_section_info): Delete trailing whitespace.
1312 (struct maint_info_sections_opts): New struct.
1313 (maint_info_sections_option_defs): New static global.
1314 (maint_info_sections_completer): New function.
1315 (maintenance_info_sections): Use option parsing mechanism.
1316 (_initialize_maint_cmds): Update command help text for 'maint info
1317 sections' and register a command completer.
1318
4790db14
AB
13192021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1322 functionality merged into...
1323 (maint_print_all_sections): ...this new function.
1324 (maintenance_info_sections): Make use of maint_print_all_sections,
1325 allow all objects to be printed even where there's no executable.
1326
1db66e34
AB
13272021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * breakpoint.c (resolve_sal_pc): Make use of
1330 bound_minimal_symbol::obj_section.
1331 * maint.c (maintenance_translate_address): Likewise.
1332 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1333 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1334 member function.
1335 * printcmd.c (info_address_command): Make use of
1336 bound_minimal_symbol::obj_section.
1337
18b8df43
AM
13382021-02-11 Alan Modra <amodra@gmail.com>
1339
1340 * arm-symbian-tdep.c: Delete.
1341 * NEWS: Mention arm-symbian removal.
1342 * Makefile.in: Remove arm-symbian-tdep entries.
1343 * configure.tgt: Remove arm*-*-symbianelf*.
1344 * doc/gdb.texinfo: Remove mention of SymbianOS.
1345 * osabi.c (gdb_osabi_names): Remove "Symbian".
1346 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1347 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1348 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1349 handling.
1350 * testsuite/gdb.base/dup-sect.exp: Likewise.
1351 * testsuite/gdb.base/long_long.exp: Likewise.
1352 * testsuite/gdb.base/solib-weak.exp: Likewise.
1353 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1354 * testsuite/gdb.python/py-section-script.exp: Likewise.
1355 * testsuite/lib/dwarf.exp: Likewise.
1356 * testsuite/lib/gdb.exp: Likewise.
1357
e92c8eb8
AB
13582021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1359
1360 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1361 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1362 (one_or_two_args): New pattern.
1363 (f77_keywords): Add lbound and ubound.
1364 * f-lang.c (fortran_bounds_all_dims): New function.
1365 (fortran_bounds_for_dimension): New function.
1366 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1367 (operator_length_f): Likewise.
1368 (print_subexp_f): Likewise.
1369 (dump_subexp_body_f): Likewise.
1370 (operator_check_f): Likewise.
1371 * std-operator.def (FORTRAN_LBOUND): Define.
1372 (FORTRAN_UBOUND): Define.
1373
a52d653e
AB
13742021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1377 and set_section_index member functions where appropriate.
1378 * coffread.c (coff_symtab_read): Likewise.
1379 (process_coff_symbol): Likewise.
1380 * ctfread.c (set_symbol_address): Likewise.
1381 * dwarf2/read.c (add_partial_symbol): Likewise.
1382 (var_decode_location): Likewise.
1383 * language.c: Likewise.
1384 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1385 (compact_minimal_symbols): Likewise.
1386 (minimal_symbol_upper_bound): Likewise.
1387 * objfiles.c (relocate_one_symbol): Likewise.
1388 * psympriv.h (partial_symbol::obj_section): Likewise.
1389 (partial_symbol::address): Likewise.
1390 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1391 * stabsread.c (scan_file_globals): Likewise.
1392 * symmisc.c (dump_msymbols): Likewise.
1393 * symtab.c (general_symbol_info::obj_section): Likewise.
1394 (fixup_section): Likewise.
1395 (get_msymbol_address): Likewise.
1396 * symtab.h (general_symbol_info::section): Rename to...
1397 (general_symbol_info::m_section): ...this.
1398 (general_symbol_info::set_section_index): New member function.
1399 (general_symbol_info::section_index): Likewise.
1400 (SYMBOL_SECTION): Delete.
1401 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1402 set_section_index member functions where appropriate.
1403 (MSYMBOL_SECTION): Delete.
1404 (symbol::symbol): Update to initialize 'm_section'.
1405 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1406 (process_xcoff_symbol): Likewise.
1407
ebbc3a7d
AB
14082021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1411 MSYMBOL_OBJ_SECTION.
1412 * findvar.c (language_defn::read_var_value): Likewise.
1413 * infcmd.c (jump_command): Likewise.
1414 * linespec.c (minsym_found): Likewise.
1415 * maint.c (maintenance_translate_address): Likewise.
1416 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1417 (minimal_symbol_upper_bound): Likewise.
1418 * parse.c (find_minsym_type_and_address): Likewise.
1419 (operator_check_standard): Likewise.
1420 * printcmd.c (info_address_command): Likewise.
1421 * symmisc.c (dump_msymbols): Likewise.
1422 (print_symbol): Likewise.
1423 * symtab.c (general_symbol_info::obj_section): Define new
1424 function.
1425 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1426 (find_pc_sect_compunit_symtab): Likewise.
1427 (find_function_start_sal): Likewise.
1428 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1429 MSYMBOL_OBJ_SECTION.
1430 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1431 function.
1432 (SYMBOL_OBJ_SECTION): Delete.
1433 (MSYMBOL_OBJ_SECTION): Delete.
1434
9bb305b3
TT
14352021-02-09 Tom Tromey <tom@tromey.com>
1436
1437 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1438
cf2b2075
TV
14392021-02-09 Tom de Vries <tdevries@suse.de>
1440
1441 PR symtab/27341
1442 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1443 construct an array type. Add assert to ensure that element_type is
1444 not being modified.
1445
03642b71
AB
14462021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1449 (gcore_collect_regset_section_cb): Delete.
1450 (gcore_collect_thread_registers): Delete.
1451 (gcore_build_thread_register_notes): Delete.
1452 (gcore_find_signalled_thread): Delete.
1453 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1454 'gdbarch' and 'thread_info' declarations.
1455 (gcore_build_thread_register_notes): Delete declaration.
1456 (gcore_find_signalled_thread): Likewise.
1457 * fbsd-tdep.c: Remove 'gcore.h' include.
1458 (struct fbsd_collect_regset_section_cb_data): New struct.
1459 (fbsd_collect_regset_section_cb): New function.
1460 (fbsd_collect_thread_registers): New function.
1461 (struct fbsd_corefile_thread_data): New struct.
1462 (fbsd_corefile_thread): New function.
1463 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1464 * linux-tdep.c: Remove 'gcore.h' include.
1465 (struct linux_collect_regset_section_cb_data): New struct.
1466 (linux_collect_regset_section_cb): New function.
1467 (linux_collect_thread_registers): New function.
1468 (linux_corefile_thread): Call Linux specific code.
1469 (find_signalled_thread): New function.
1470 (linux_make_corefile_notes): Call find_signalled_thread.
1471
f73e424f
TT
14722021-02-09 Tom Tromey <tromey@adacore.com>
1473
1474 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1475 not_lval value.
1476 * value.c (value_contents_copy_raw): Now static.
1477 * value.h (value_contents_copy_raw): Don't declare.
1478
a4f0544b
TT
14792021-02-09 Tom Tromey <tromey@adacore.com>
1480
1481 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1482 fields.
1483
9b3e4b5d
SV
14842021-02-08 Shahab Vahedi <shahab@synopsys.com>
1485
1486 PR tdep/27369
1487 * arc-linux-tdep.c (handle_atomic_sequence): New.
1488 (arc_linux_software_single_step): Call handle_atomic_sequence().
1489
29db1eb3
AB
14902021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1493 function.
1494 (REQUIRE_WINDOW): Call is_valid member function.
1495 (REQUIRE_WINDOW_FOR_SETTER): New define.
1496 (gdbpy_tui_is_valid): Call is_valid member function.
1497 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1498 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1499 tui_active too.
1500 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1501 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1502 the function.
1503
e0c23e11
AB
15042021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1505
1506 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1507 for the title is not nullptr.
1508
1cf23996
AB
15092021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 * tui-layout.c (saved_tui_windows): Delete.
1512 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1513 call new get_windows member function instead.
1514 (tui_get_window_by_name): Check in tui_windows.
1515 (tui_layout_window::apply): Don't add to tui_windows.
1516 * tui-layout.h (tui_layout_base::get_windows): New member function.
1517 (tui_layout_window::get_windows): Likewise.
1518 (tui_layout_split::get_windows): Likewise.
1519
a53a2657
AB
15202021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1521
1522 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1523 of the window objects.
1524
2708dbbd
AB
15252021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1526
1527 * python/python.c (gdbpy_print_stack): Reformat an error message.
1528
cd074e04
AB
15292021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1530
1531 * tui/tui-interp.c (tui_command_line_handler): New function.
1532 (tui_interp::resume): Register tui_command_line_handler as the
1533 input_handler.
1534 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1535 function.
1536 (tui_getc_1): Delete handling of '\n' and '\r'.
1537 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1538
4cf28e91
HD
15392021-02-07 Hannes Domani <ssbssa@yahoo.de>
1540
1541 * tui/tui-regs.c (tui_data_window::display_registers_from):
1542 Mark invisible register sub windows.
1543 (tui_data_window::check_register_values): Ignore invisible
1544 register sub windows.
1545
3537bc23
HD
15462021-02-07 Hannes Domani <ssbssa@yahoo.de>
1547
1548 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1549 n_spaces with a negative value.
1550
5fc2d6aa
HD
15512021-02-07 Hannes Domani <ssbssa@yahoo.de>
1552
1553 * tui/tui-regs.c (tui_data_window::display_registers_from):
1554 Add refresh_window call.
1555
83962f83
HD
15562021-02-07 Hannes Domani <ssbssa@yahoo.de>
1557
1558 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1559
0110ec82
SM
15602021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1561
1562 * symmisc.c (std_in, std_out, std_err): Remove.
1563 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1564
7c6944ab
TV
15652021-02-05 Tom de Vries <tdevries@suse.de>
1566
1567 PR breakpoints/27330
1568 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1569 glibc object file has debug info.
1570
e77b0004
TV
15712021-02-05 Tom de Vries <tdevries@suse.de>
1572
1573 PR symtab/27333
1574 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1575
0e857c82
TV
15762021-02-05 Tom de Vries <tdevries@suse.de>
1577
1578 PR breakpoints/27313
1579 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1580 syscall numbers.
1581
bdfea17e
TT
15822021-02-05 Tom Tromey <tom@tromey.com>
1583
1584 * compile/compile-c-support.c (get_compile_context)
1585 (c_get_compile_context, cplus_get_compile_context): Change return
1586 type.
1587 * language.c (language_defn::get_compile_instance): New method.
1588 * language.h (language_defn::get_compile_instance): Change return
1589 type. No longer inline.
1590 * c-lang.c (c_language::get_compile_instance): Change return type.
1591 (cplus_language::get_compile_instance): Change return type.
1592 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1593 Change return type.
1594 * compile/compile.c (compile_to_object): Update.
1595
1b30f421
TT
15962021-02-05 Tom Tromey <tom@tromey.com>
1597
1598 * parser-defs.h (write_exp_symbol_reference): Declare.
1599 * parse.c (write_exp_symbol_reference): New function.
1600 * p-exp.y (variable): Use write_exp_symbol_reference.
1601 * m2-exp.y (variable): Use write_exp_symbol_reference.
1602 * f-exp.y (variable): Use write_exp_symbol_reference.
1603 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1604 * c-exp.y (variable): Use write_exp_symbol_reference.
1605
ae710496
TV
16062021-02-05 Tom de Vries <tdevries@suse.de>
1607
1608 PR exp/27265
1609 * valarith.c (complex_binop): Throw an error if complex type can't
1610 be created.
1611
d3b54e63
TV
16122021-02-05 Tom de Vries <tdevries@suse.de>
1613
1614 PR symtab/27307
1615 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1616 return.
1617
fc9a13fb
TV
16182021-02-05 Tom de Vries <tdevries@suse.de>
1619
1620 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1621
04b4939b
MF
16222021-02-04 Mike Frysinger <vapier@gentoo.org>
1623
1624 * configure.tgt (riscv*-*-*): Set gdb_sim.
1625
6ff267e1
SM
16262021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1627
1628 * target.c (target_is_non_stop_p): Return bool.
1629 * target.h (target_is_non_stop_p): Return bool.
1630
fdbc5215
SM
16312021-02-04 Simon Marchi <simon.marchi@efficios.com>
1632
1633 * record-full.c (record_full_async_inferior_event_handler):
1634 Don't clear async event handler.
1635 (record_full_base_target::wait): Clear async event handler at
1636 beginning.
1637
85d3ad8e
SM
16382021-02-04 Simon Marchi <simon.marchi@efficios.com>
1639
1640 * record-btrace.c (record_btrace_handle_async_inferior_event):
1641 Don't clear async event handler.
1642 (record_btrace_target::wait): Clear async event handler at
1643 beginning.
1644
baa8575b
SM
16452021-02-04 Simon Marchi <simon.marchi@efficios.com>
1646
1647 * remote.c (remote_target::wait): Clear async event handler at
1648 beginning, mark if needed at the end.
1649 (remote_async_inferior_event_handler): Don't set or clear async
1650 event handler.
1651
6b36ddeb
SM
16522021-02-04 Simon Marchi <simon.marchi@efficios.com>
1653
1654 * async-event.h (async_event_handler_func): Add documentation.
1655 * async-event.c (check_async_event_handlers): Don't clear
1656 async_event_handler ready flag.
1657 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1658 flag.
1659 * record-btrace.c (record_btrace_handle_async_inferior_event):
1660 Likewise.
1661 * record-full.c (record_full_async_inferior_event_handler):
1662 Likewise.
1663 * remote-notif.c (remote_async_get_pending_events_handler):
1664 Likewise.
1665 * remote.c (remote_async_inferior_event_handler): Likewise.
1666
72d383bb
SM
16672021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1668
1669 * infrun.c (handle_inferior_event): Move stop_soon variable to
1670 inner scope.
1671
408f6686
PA
16722021-02-03 Pedro Alves <pedro@palves.net>
1673
1674 * infcmd.c (detach_command): Hold strong reference to target, and
1675 if all-stop on entry, restart threads on exit.
1676 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1677 (restart_stepped_thread): ... this new function. Also handle
1678 trap_expected.
1679 (restart_after_all_stop_detach): New function.
1680 * infrun.h (restart_after_all_stop_detach): Declare.
1681
ac7d717c
PA
16822021-02-03 Pedro Alves <pedro@palves.net>
1683
1684 * infrun.c (struct step_over_info): Initialize fields.
1685 (prepare_for_detach): Handle ongoing in-line step over.
1686
e87f0fe8
PA
16872021-02-03 Pedro Alves <pedro@palves.net>
1688
1689 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1690 here...
1691 * remote.c (remote_target::remote_detach_1): ... and here ...
1692 * target.c (target_detach): ... instead of here.
1693 * target.h (target_ops::detach): Add comment.
1694
8ff53139
PA
16952021-02-03 Pedro Alves <pedro@palves.net>
1696
1697 * infrun.c (struct wait_one_event): Move higher up.
1698 (prepare_for_detach): Abort in-progress displaced steps instead of
1699 letting them complete.
1700 (handle_one): If the inferior is detaching, don't add the thread
1701 back to the global step-over chain.
1702 (restart_threads): Don't restart threads if detaching.
1703 (handle_signal_stop): Remove inferior::detaching reference.
1704
91475068
PA
17052021-02-03 Pedro Alves <pedro@palves.net>
1706
1707 * infrun.c (prepare_for_detach): Don't release scoped_restore
1708 before returning.
1709
d758e62c
PA
17102021-02-03 Pedro Alves <pedro@palves.net>
1711
1712 * infrun.c (handle_one): New function, factored out from ...
1713 (stop_all_threads): ... here.
1714
b0083dd7
PA
17152021-02-03 Pedro Alves <pedro@palves.net>
1716
1717 * remote.c (remote_notif_stop_ack): Don't error out on
1718 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1719 (remote_target::discard_pending_stop_replies): Don't delete
1720 in-flight notification; instead, clear its contents.
1721
621cc310
PA
17222021-02-03 Pedro Alves <pedro@palves.net>
1723
1724 * remote.c (extended_remote_target::attach): Set target async in
1725 the target-non-stop path too.
1726
2ab76a18
PA
17272021-02-03 Pedro Alves <pedro@palves.net>
1728
1729 PR gdb/27055
1730 * infrun.c (handle_signal_stop): Move main context_switch call
1731 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1732
2e3773ff
LS
17332021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1734
1735 * NEWS (Changed commands): Add entry for the behavior change of
1736 the inferior command.
1737 * inferior.c (inferior_command): When no argument is given to the
1738 inferior command, display info about the currently selected
1739 inferior.
1740
e57933dc
SM
17412021-02-02 Simon Marchi <simon.marchi@efficios.com>
1742
1743 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1744 a sect_offset.
1745 (read_attribute_reprocess): Adjust.
1746
2b0c7f41
SM
17472021-02-02 Simon Marchi <simon.marchi@efficios.com>
1748
1749 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1750 <gnu_ranges_base>: ... this...
1751 <rnglists_base>: ... and this.
1752 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1753 <gnu_ranges_base>: ... this...
1754 <rnglists_base>: ... and this.
1755 (read_cutu_die_from_dwo): Adjust
1756 (dwarf2_get_pc_bounds): Adjust
1757 (dwarf2_record_block_ranges): Adjust.
1758 (read_full_die_1): Adjust
1759 (partial_die_info::read): Adjust.
1760 (read_rnglist_index): Adjust.
1761
a1c40103
SM
17622021-02-02 Simon Marchi <simon.marchi@efficios.com>
1763
1764 PR gdb/26813
1765 * dwarf2/read.c (read_loclists_rnglists_header): Add
1766 header_offset parameter and use it.
1767 (read_loclist_index): Read header of the current contribution,
1768 not the one at the beginning of the section.
1769 (read_rnglist_index): Likewise.
1770
b1829e1b
SM
17712021-02-02 Simon Marchi <simon.marchi@efficios.com>
1772
1773 PR gdb/26813
1774 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1775 requires_reprocessing flag.
1776 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1777 DW_FORM_loclistx.
1778 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1779 and DW_FORM_loclistx.
1780 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1781 instead of set_address for DW_FORM_loclistx and
1782 DW_FORM_rnglistx.
1783
0c800c6e
SM
17842021-02-02 Simon Marchi <simon.marchi@efficios.com>
1785
1786 * dwarf2/read.c (read_loclist_index): Remove bound check for
1787 start of offset.
1788 (read_rnglist_index): Likewise.
1789
05787bad
SM
17902021-02-02 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1793 of the offset.
1794
5e4d9bbc
SM
17952021-02-02 Simon Marchi <simon.marchi@efficios.com>
1796
1797 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1798
a0c1eeba
SM
17992021-02-02 Simon Marchi <simon.marchi@efficios.com>
1800
1801 * dwarf2/read.c (read_loclist_index): Change complaints into
1802 errors.
1803
2bd3e4b8
TV
18042021-02-02 Tom de Vries <tdevries@suse.de>
1805
1806 PR symtab/24620
1807 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1808 psymtab == nullptr.
1809
82a1fd3a
AB
18102021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1811
1812 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1813 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1814 here from linux-tdep.c and given a new name. Minor cleanups.
1815 (gcore_collect_regset_section_cb): Likewise.
1816 (gcore_collect_thread_registers): Likewise.
1817 (gcore_build_thread_register_notes): Likewise.
1818 (gcore_find_signalled_thread): Likewise.
1819 * gcore.h (gcore_build_thread_register_notes): Declare.
1820 (gcore_find_signalled_thread): Declare.
1821 * fbsd-tdep.c: Add 'gcore.h' include.
1822 (struct fbsd_collect_regset_section_cb_data): Delete.
1823 (fbsd_collect_regset_section_cb): Delete.
1824 (fbsd_collect_thread_registers): Delete.
1825 (struct fbsd_corefile_thread_data): Delete.
1826 (fbsd_corefile_thread): Delete.
1827 (fbsd_make_corefile_notes): Call
1828 gcore_build_thread_register_notes instead of the now deleted
1829 FreeBSD code.
1830 * linux-tdep.c: Add 'gcore.h' include.
1831 (struct linux_collect_regset_section_cb_data): Delete.
1832 (linux_collect_regset_section_cb): Delete.
1833 (linux_collect_thread_registers): Delete.
1834 (linux_corefile_thread): Call
1835 gcore_build_thread_register_notes.
1836 (find_signalled_thread): Delete.
1837 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1838
ebde6f2d
TV
18392021-01-29 Tom de Vries <tdevries@suse.de>
1840
1841 PR breakpoints/26063
1842 * infrun.c (process_event_stop_test): Reset
1843 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1844 changed.
1845
0f93c3a2
AB
18462021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1849 assert. Extend the header comment.
1850
f237f998
AB
18512021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1854 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1855 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1856 (tui_locator_win_info_ptr): Delete declaration.
1857 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1858 (tui_disasm_window::set_contents): Fetch state from tui_location
1859 global.
1860 (tui_get_begin_asm_address): Likewise.
1861 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1862 for locator window.
1863 (get_locator_window): Delete.
1864 (initialize_known_windows): Treat locator window just like all the
1865 rest.
1866 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1867 (tui_source_window::set_contents): Fetch state from tui_location
1868 global.
1869 (tui_source_window::showing_source_p): Likewise.
1870 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1871 (_locator): Delete.
1872 (tui_locator_win_info_ptr): Delete.
1873 (tui_locator_window::make_status_line): Fetch state from
1874 tui_location global.
1875 (tui_locator_window::rerender): Remove check of 'handle',
1876 reindent function body.
1877 (tui_locator_window::set_locator_fullname): Delete.
1878 (tui_locator_window::set_locator_info): Delete.
1879 (tui_update_locator_fullname): Delete.
1880 (tui_show_frame_info): Likewise.
1881 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1882 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1883 tui/tui-location.h and renamed to
1884 tui_location_tracker::set_location.
1885 (tui_locator_window::set_locator_fullname): Moved to
1886 tui/tui-location.h and renamed to
1887 tui_location_tracker::set_fullname.
1888 (tui_locator_window::full_name): Delete.
1889 (tui_locator_window::proc_name): Delete.
1890 (tui_locator_window::line_no): Delete.
1891 (tui_locator_window::addr): Delete.
1892 (tui_locator_window::gdbarch): Delete.
1893 (tui_update_locator_fullname): Delete declaration.
1894 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1895 for locator window.
1896 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1897 (tui_display_main): Call function on tui_location directly.
1898 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1899 * tui/tui-location.c: New file.
1900 * tui/tui-location.h: New file.
1901
8ee511af
SM
19022021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * gdbtypes.h (get_type_arch): Rename to...
1905 (struct type) <arch>: ... this, update all users.
1906
6ac37371
SM
19072021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * gdbtypes.h (struct type) <arch>: Rename to...
1910 <arch_owner>: ... this, update all users.
1911 <objfile>: Rename to...
1912 <objfile_owner>: ... this, update all users.
1913
24cf6389
AB
19142021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * gdbcmd.h (execute_command_to_string): Update comment.
1917 * top.c (execute_command_to_string): Update header comment.
1918
2a7f6487
TV
19192021-01-28 Tom de Vries <tdevries@suse.de>
1920
1921 PR breakpoints/27205
1922 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1923 (create_longjmp_master_breakpoint_names): New function, factored out
1924 of ...
1925 (create_longjmp_master_breakpoint): ... here. Only try to install
1926 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1927 breakpoint in libc.so failed.
1928
59b59f08
LS
19292021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1930
1931 PR gdb/27133
1932 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1933 unique_ptr is released when the wrapped pointer is kept for later
1934 use.
1935
807f647c
MM
19362021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1937
1938 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1939 BLR and BR instructions.
1940 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1941 (enum aarch64_masks): New.
1942
4ef367bf
TT
19432021-01-26 Tom Tromey <tromey@adacore.com>
1944
1945 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1946 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1947 (windows_init_thread_list, windows_nat::handle_load_dll)
1948 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1949 (windows_nat_target::resume)
1950 (windows_nat_target::get_windows_debug_event)
1951 (windows_nat_target::interrupt, windows_xfer_memory)
1952 (windows_nat_target::close): Update.
1953 * nat/windows-nat.c (DEBUG_EVENTS): Use
1954 debug_prefixed_printf_cond.
1955 (matching_pending_stop, fetch_pending_stop)
1956 (continue_last_debug_event): Update.
1957
4cb1265b
MS
19582020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1959
1960 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1961 elfcore_write_file_note.
1962
d0cc52bd
SV
19632021-01-26 Shahab Vahedi <shahab@synopsys.com>
1964
1965 * arc-tdep.c (arc_add_reggroups): New function.
1966 (arc_gdbarch_init): Call arc_add_reggroups.
1967
ac3571d9 19682021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
1969
1970 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1971
9f6c202e
TV
19722021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1973 Simon Marchi <simon.marchi@polymtl.ca>
1974 Tom de Vries <tdevries@suse.de>
1975
1976 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1977 DW_AT_ranges.
1978
a625a8c9
TT
19792021-01-25 Tom Tromey <tromey@adacore.com>
1980
1981 * dwarf2/read.c (get_mpz): New function.
1982 (get_dwarf2_rational_constant): Use it.
1983
19184910
TT
19842021-01-25 Tom Tromey <tromey@adacore.com>
1985
1986 * ada-lang.c (resolve_subexp): Handle array context.
1987
b10bae18
TT
19882021-01-23 Tom Tromey <tom@tromey.com>
1989
1990 PR compile/25575
1991 * compile/compile-loc2c.c (note_register): New function.
1992 (pushf_register_address, pushf_register): Use it.
1993
3637a558
TT
19942021-01-23 Tom Tromey <tom@tromey.com>
1995
1996 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1997 Change type of "registers_used".
1998 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1999 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2000 (locexpr_generate_c_location, loclist_generate_c_location): Change
2001 type of "registers_used".
2002 * compile/compile.h (compile_dwarf_expr_to_c)
2003 (compile_dwarf_bounds_to_c): Update.
2004 * compile/compile-loc2c.c (pushf_register_address)
2005 (pushf_register, do_compile_dwarf_expr_to_c)
2006 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2007 of "registers_used".
2008 * compile/compile-c.h (generate_c_for_variable_locations):
2009 Update.
2010 * compile/compile-c-symbols.c (generate_vla_size)
2011 (generate_c_for_for_one_variable): Change type of
2012 "registers_used".
2013 (generate_c_for_variable_locations): Return std::vector.
2014 * compile/compile-c-support.c (generate_register_struct): Change
2015 type of "registers_used".
2016 (compute): Update.
2017
9f7f6cb8
TT
20182021-01-23 Tom Tromey <tom@tromey.com>
2019
2020 * compile/compile-internal.h (class compile_instance)
2021 <set_arguments>: Change return type.
2022 * compile/compile.c (compile_to_object): Remove call to reset.
2023 (compile_instance::set_arguments): Change return type.
2024
dd5ca05f
SM
20252021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2028 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2029
d3ee35db
LS
20302021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2031
2032 * Makefile.in (SELFTESTS_SRCS): Add
2033 unittests/gdb_tilde_expand-selftests.c.
2034 * unittests/gdb_tilde_expand-selftests.c: New file.
2035
9d2d8a16
AB
20362021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 PR cli/25956
2039 * NEWS: Mention new command.
2040 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2041 (version_style): Define.
2042 (cli_style_option::cli_style_option): Add intensity parameter, and
2043 use as appropriate.
2044 (_initialize_cli_style): Register version style set/show commands.
2045 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2046 (version_style): Declare.
2047 * top.c (print_gdb_version): Use version_stype, and styled_string
2048 to print the GDB version string.
2049
e7b43072
AB
20502021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2051
2052 * utils.c (emit_style_escape): Only emit an escape sequence if the
2053 requested style is different than the current applied style.
2054 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2055 current applied_style.
2056 (fputs_styled): Remove is_default check.
2057 (fputs_styled_unfiltered): Likewise.
2058 (vfprintf_styled_no_gdbfmt): Likewise.
2059
2189c312
SM
20602021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2061
2062 * remote.h (remote_debug_printf): New.
2063 (remote_debug_printf_nofunc): New.
2064 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2065 * remote.c: Use above macros throughout file.
2066
02349803
SM
20672021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 * remote.h (remote_debug): Change to bool.
2070 * remote.c (remote_debug): Change to bool.
2071 (_initialize_remote): Adjust.
2072
cda09ec9
SM
20732021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2074
2075 * target.h (remote_debug): Move to...
2076 * remote.h (remote_debug): ... here.
2077 * top.c (remote_debug): Move to...
2078 * remote.c (remote_debug): ... here.
2079 * remote-sim.c: Include remote.h.
2080
baf2b57f
SM
20812021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 * cli/cli-cmds.c (show_remote_debug): Remove.
2084 (show_remote_timeout): Remove.
2085 (_initialize_cli_cmds): Don't register commands.
2086 * remote.c (show_remote_debug): Move here.
2087 (show_remote_timeout): Move here.
2088 (_initialize_remote): Register commands.
2089
344e9841
SM
20902021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2091
2092 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2093 type::objfile method instead.
2094
30625020
SM
20952021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2096
2097 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2098 use the type::is_objfile_owned method.
2099
5b7d941b
SM
21002021-01-22 Simon Marchi <simon.marchi@efficios.com>
2101
2102 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2103 (TYPE_OWNER): Remove.
2104 (TYPE_OBJFILE): Adjust.
2105 (struct main_type) <flag_objfile_owned>: Rename to...
2106 <m_flag_objfile_owned>: ... this.
2107 <owner>: Rename to...
2108 <m_owner>: ... this.
2109 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2110 methods.
2111 (TYPE_ALLOC): Adjust.
2112 * gdbtypes.c (alloc_type): Adjust.
2113 (alloc_type_arch): Adjust.
2114 (alloc_type_copy): Adjust.
2115 (get_type_arch): Adjust.
2116 (smash_type): Adjust.
2117 (lookup_array_range_type): Adjust.
2118 (recursive_dump_type): Adjust.
2119 (copy_type_recursive): Adjust.
2120 * compile/compile-c-types.c (convert_func): Adjust.
2121 (convert_type_basic): Adjust.
2122 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2123 Adjust.
2124 * language.c
2125 (language_arch_info::type_and_symbol::alloc_type_symbol):
2126 Adjust.
2127
d5d24e12
LM
21282021-01-21 Luis Machado <luis.machado@linaro.org>
2129
2130 * coffread.c (enter_linenos): Passing string to complaint.
2131 * valops.c (value_assign): Make array view.
2132
a59902a7
SM
21332021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2134
2135 * auto-load.h (debug_auto_load): Move here.
2136 (auto_load_debug_printf): New.
2137 * auto-load.c: Use auto_load_debug_printf.
2138 (debug_auto_load): Move to header.
2139 * linux-thread-db.c (try_thread_db_load): Use
2140 auto_load_debug_printf.
2141 * main.c (captured_main_1): Likewise.
2142
d3abc0ce
SM
21432021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2144
2145 * f-valprint.c (f77_array_offset_tbl): Remove.
2146
1e15fcac
SM
21472021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2148
2149 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2150
439706e6
SM
21512021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2152
2153 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2154 of gdb_select.
2155
325d39e4
HD
21562021-01-21 Hannes Domani <ssbssa@yahoo.de>
2157
2158 PR python/19151
2159 * python/py-breakpoint.c (bppy_get_location): Handle
2160 bp_hardware_breakpoint.
2161 (bppy_init): Likewise.
2162 (gdbpy_breakpoint_created): Likewise.
2163
7cb6d92a
SM
21642021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2165
2166 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2167
d4dd4fca
SM
21682021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2171 (_initialize_gdb_bfd): Adjust.
2172
de53369b
SM
21732021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2174
2175 PR gdb/26828
2176 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2177
17e593e9
SM
21782021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * dwarf2/read.c (follow_die_offset): Add logging.
2181 (dwarf2_per_objfile::age_comp_units): Add logging.
2182
6bd434d6
SM
21832021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2186 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2187 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2188 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2189 * arm-tdep.c (struct frame_unwind): Make static.
2190 * auto-load.c (auto_load_safe_path_vec): Make static.
2191 * csky-tdep.c (csky_stub_unwind): Make static.
2192 * gdbarch.c (gdbarch_data_registry): Make static.
2193 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2194 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2195 * i386-tdep.c (i386_frame_setup_skip_insns,
2196 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2197 Make static.
2198 * infrun.c (observer_mode): Make static.
2199 * linux-nat.c (sigchld_action): Make static.
2200 * linux-thread-db.c (thread_db_list): Make static.
2201 * maint-test-options.c (maintenance_test_options_list):
2202 * mep-tdep.c (mep_csr_registers): Make static.
2203 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2204 (stats): Make static.
2205 * nat/linux-osdata.c (struct osdata_type): Make static.
2206 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2207 * progspace.c (last_program_space_num): Make static.
2208 * python/py-param.c (struct parm_constant): Remove struct type
2209 name.
2210 (parm_constants): Make static.
2211 * python/py-record-btrace.c (btpy_list_methods): Make static.
2212 * python/py-record.c (recpy_gap_type): Make static.
2213 * record.c (record_goto_cmdlist): Make static.
2214 * regcache.c (regcache_descr_handle): Make static.
2215 * registry.h (DEFINE_REGISTRY): Make definition static.
2216 * symmisc.c (std_in, std_out, std_err): Make static.
2217 * top.c (previous_saved_command_line): Make static.
2218 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2219 static.
2220 * unittests/command-def-selftests.c (nr_duplicates,
2221 nr_invalid_prefixcmd, lists): Make static.
2222 * unittests/observable-selftests.c (test_notification): Make
2223 static.
2224 * unittests/optional/assignment/1.cc (counter): Make static.
2225 * unittests/optional/assignment/2.cc (counter): Make static.
2226 * unittests/optional/assignment/3.cc (counter): Make static.
2227 * unittests/optional/assignment/4.cc (counter): Make static.
2228 * unittests/optional/assignment/5.cc (counter): Make static.
2229 * unittests/optional/assignment/6.cc (counter): Make static.
2230
a6c11cbb
JS
22312021-01-20 Joel Sherrill <joel@rtems.org>
2232
2233 PR gdb/27219
2234 * remote.c (struct remote_thread_info) <resume_state>: Rename
2235 to...
2236 <get_resume_state>: ... this.
2237 (remote_target::resume): Adjust.
2238 (remote_target::commit_resume): Adjust.
2239 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2240
6f52fdf4
SDJ
22412021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2242 Tom Tromey <tom@tromey.com>
2243
2244 * stap-probe.c (stap_parse_single_operand): Handle '!'
2245 operator.
2246 (stap_parse_argument_conditionally): Likewise.
2247 Skip spaces after processing open-parenthesis sub-expression.
2248 (stap_parse_argument_1): Skip spaces after call to
2249 stap_parse_argument_conditionally.
2250 Handle case when right-side expression is a parenthesized
2251 sub-expression.
2252 Skip spaces after call to stap_parse_argument_1.
2253
1c3b85ad
LS
22542021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2255
2256 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2257
a9a87d35
LM
22582021-01-19 Luis Machado <luis.machado@linaro.org>
2259
2260 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2261 memory and save data.
2262 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2263 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2264 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2265 (trad_frame_value_bytes_p): Remove.
2266 (trad_frame_reset_saved_regs): Adjust documentation.
2267 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2268 constructor and reset the state of the registers.
2269 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2270 (trad_frame_value_bytes_p, trad_frame_set_value)
2271 (trad_frame_set_realreg, trad_frame_set_addr)
2272 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2273 (trad_frame_set_reg_realreg): Update to call member function.
2274 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2275 (trad_frame_get_prev_register): Likewise.
2276
2277 * aarch64-tdep.c (aarch64_analyze_prologue)
2278 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2279 (aarch64_prologue_prev_register): Update to use member functions.
2280 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2281 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2282 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2283 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2284 (arm_make_epilogue_frame_cache): Likewise.
2285 * avr-tdep.c (avr_frame_unwind_cache)
2286 (avr_frame_prev_register): Likewise.
2287 * cris-tdep.c (cris_scan_prologue): Likewise.
2288 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2289 * frv-tdep.c (frv_analyze_prologue): Likewise.
2290 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2291 * lm32-tdep.c (lm32_frame_cache): Likewise.
2292 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2293 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2294 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2295 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2296 (reset_saved_regs): Adjust to set realreg.
2297 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2298 call member functions.
2299 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2300 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2301 (s390_backchain_frame_unwind_cache): Likewise.
2302 * score-tdep.c (score7_analyze_prologue)
2303 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2304 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2305 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2306 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2307 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2308 * tilegx-tdep.c (tilegx_analyze_prologue)
2309 (tilegx_frame_cache): Likewise.
2310 * v850-tdep.c (v850_frame_cache): Likewise.
2311 * vax-tdep.c (vax_frame_cache): Likewise.
2312
bdec2917
LM
23132021-01-19 Luis Machado <luis.machado@linaro.org>
2314
2315 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2316 of buffer + length.
2317 (put_frame_register_bytes): Likewise.
2318 Adjust documentation.
2319 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2320 (safe_frame_unwind_memory): Likewise.
2321 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2322 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2323 gdb::array_view.
2324 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2325 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2326 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2327 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2328 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2329 * dwarf2/loc.c (rw_pieced_value): Likewise.
2330 * hppa-tdep.c (hppa_frame_cache): Likewise.
2331 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2332 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2333 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2334 (i386_linux_rt_sigtramp_start): Likewise.
2335 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2336 * i386-tdep.c (i386_register_to_value): Likewise.
2337 * i387-tdep.c (i387_register_to_value): Likewise.
2338 * ia64-tdep.c (ia64_register_to_value): Likewise.
2339 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2340 (m32r_linux_rt_sigtramp_start): Likewise.
2341 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2342 * m68k-tdep.c (m68k_register_to_value): Likewise.
2343 * mips-tdep.c (mips_register_to_value)
2344 (mips_value_to_register): Likewise.
2345 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2346 (ppcfbsd_sigtramp_frame_cache): Likewise.
2347 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2348 (ppcobsd_sigtramp_frame_cache): Likewise.
2349 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2350 (rs6000_register_to_value): Likewise.
2351 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2352 * tramp-frame.c (tramp_frame_start): Likewise.
2353 * valops.c (value_assign): Likewise.
2354
ccbe4c82
LM
23552021-01-19 Luis Machado <luis.machado@linaro.org>
2356
2357 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2358 array_view.
2359 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2360 instead of buffer and size.
2361 (trad_frame_set_reg_value_bytes): Likewise.
2362 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2363 (trad_frame_set_value_bytes): Likewise.
2364
0e7620dc
MF
23652021-01-18 Mike Frysinger <vapier@gentoo.org>
2366
2367 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2368
6a9ad81c
AB
23692021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2372 (riscv_fbsd_gregset): Use riscv_supply_regset.
2373 (riscv_fbsd_fpregset): Likewise.
2374 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2375 (riscv_linux_fregset): Likewise.
2376 * riscv-tdep.c (riscv_supply_regset): Define new function.
2377 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2378
d3d7d1ba
TV
23792021-01-18 Tom de Vries <tdevries@suse.de>
2380
2381 PR tdep/27172
2382 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2383 New macro.
2384 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2385 for SEGV_BNDERR.
2386
aa2838cc
SM
23872021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * remote.c (class remote_target) <remote_hostio_send_command,
2390 remote_hostio_parse_result>: Constify parameter.
2391 (remote_hostio_parse_result): Likewise.
2392 (remote_target::remote_hostio_send_command): Adjust.
2393 (remote_target::remote_hostio_pread_vFile): Adjust.
2394 (remote_target::fileio_readlink): Adjust.
2395 (remote_target::fileio_fstat): Adjust.
2396
b5c8f22d
SM
23972021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2398
2399 * remote.c (remote_target::start_remote): Move wait_status to
2400 narrower scope.
2401
e3b2741b
SM
24022021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2403
2404 * remote.c (class remote_target):
2405 <add_current_inferior_and_thread>: Constify parameter.
2406 (stop_reply_extract_thread): Likewise.
2407 (remote_target::get_current_thread): Likewise.
2408 (remote_target::add_current_inferior_and_thread): Likewise.
2409
cecb1912
SM
24102021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * remote.c (class remote_target)
2413 <remote_unpack_thread_info_response,
2414 parse_threadlist_response>: Constify parameter and/or return
2415 value and or local variable.
2416 (stub_unpack_int): Likewise.
2417 (unpack_nibble): Likewise.
2418 (unpack_byte): Likewise.
2419 (unpack_int): Likewise.
2420 (unpack_string): Likewise.
2421 (unpack_threadid): Likewise.
2422 (remote_target::remote_unpack_thread_info_response): Likewise.
2423 (remote_target::parse_threadlist_response): Likewise.
2424
5a11fff0
AB
24252021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2426
2427 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2428
17e89137
LS
24292021-01-14 Lancelot Six <lsix@lancelotsix.com>
2430
2431 * MAINTAINERS (Write After Approval): Add myself.
2432
58eadc4b
BE
24332021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2434
2435 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2436 because is_trivially_default_constructible was first implemented with
2437 gcc-5.
2438
5fae2a2c
TV
24392021-01-14 Tom de Vries <tdevries@suse.de>
2440
2441 PR breakpoints/27151
2442 * objfiles.h (in_plt_section): Handle .plt.sec.
2443
8f66807b
AB
24442021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 PR gdb/26819
2447 * remote.c
2448 (remote_target::select_thread_for_ambiguous_stop_reply): New
2449 member function.
2450 (remote_target::process_stop_reply): Call
2451 select_thread_for_ambiguous_stop_reply.
2452
bd497355
SM
24532021-01-13 Simon Marchi <simon.marchi@efficios.com>
2454
2455 * record-btrace.c (class record_btrace_target): Remove.
2456 (record_btrace_target::commit_resume): Remove.
2457 * record-full.c (class record_full_target): Remove.
2458 (record_full_target::commit_resume): Remove.
2459
c9d22089
SM
24602021-01-13 Simon Marchi <simon.marchi@efficios.com>
2461
2462 * remote.c (enum class resume_state): New.
2463 (struct resumed_pending_vcont_info): New.
2464 (struct remote_thread_info) <resume_state, set_not_resumed,
2465 set_resumed_pending_vcont, resumed_pending_vcont_info,
2466 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2467 New.
2468 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2469 (remote_target::remote_add_thread): Adjust.
2470 (remote_target::process_initial_stop_replies): Adjust.
2471 (remote_target::resume): Adjust.
2472 (remote_target::commit_resume): Rely on state in
2473 remote_thread_info and not on tp->executing.
2474 (remote_target::process_stop_reply): Adjust.
2475
d8d1feb4
SM
24762021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2477
2478 * arc-tdep.h (arc_debug_printf): New.
2479 * arc-tdep.c: Use arc_debug_printf.
2480 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2481 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2482 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2483
fb0f5031
SM
24842021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2485
2486 * arc-tdep.h (arc_debug): Change type to bool.
2487 * arc-tdep.c (arc_debug): Change type to bool.
2488 (arc_analyze_prologue): Adjust.
2489 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2490 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2491
5bf7e91b
SM
24922021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2493
2494 * auto-load.c (auto_load_objfile_script_1): Use bool.
2495 (execute_script_contents): Use bool.
2496
db972fce
SM
24972021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2498
2499 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2500 comment here.
2501 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2502 comment to header.
2503 * extension-priv.h (struct extension_language_script_ops)
2504 <auto_load_enabled>: Return bool.
2505 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2506 comment here.
2507 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2508 comment to header.
2509 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2510 move comment here.
2511 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2512 move comment to header.
2513 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2514 move comment here.
2515 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2516 move comment to header.
2517
5e12f48f
SM
25182021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2519
2520 * auto-load.h (file_is_auto_load_safe): Change return type to
2521 bool, move comment here.
2522 * auto-load.c (file_is_auto_load_safe): Change return type and
2523 advice_printed to bool. Move comment to header.
2524
54ca9002
SM
25252021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * jit.c (jit_debug_printf): New, use throughout file.
2528
24a7f1b5
SM
25292021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2530
2531 * infrun.c (normal_stop): Fix indentation.
2532
fe7a351a
SM
25332021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2534
2535 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2536 declarations to ...
2537 * symfile.h: ... here.
2538 * symfile.c: Update doc.
2539
16e9019e
SM
25402021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 * target.h (baud_rate, serial_parity): Move declarations...
2543 * serial.h: ... here.
2544 * main.c: Include serial.h.
2545 * serial.c (baud_rate, serial_parity): Update doc.
2546
b2f2ae0d
SM
25472021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2548
2549 * top.c (pre_init_ui_hook): Remove.
2550
5291fe3c
SP
25512021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2552
2553 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2554 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2555 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2556 * features/aarch64-fpu.xml: Add bfloat16 type.
2557
ce38f5ed
AB
25582021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2559
2560 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2561
7c654b71
AB
25622021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2563
2564 * f-exp.y (dot_ops): Rename to...
2565 (fortran_operators): ...this. Add a header comment. Add symbol
2566 based operators.
2567 (yylex): Update to use fortran_operators not dot_ops. Remove
2568 special handling for '**', this is now included in
2569 fortran_operators.
2570
c6185dce
SM
25712021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2572
2573 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2574 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2575 * aarch64-tdep.c: Use aarch64_debug_printf.
2576
eef401dc
SM
25772021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2578
2579 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2580 file.
2581
062eaacb
SM
25822021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2583
2584 * jit.c (jit_debug): Change type to bool.
2585 (_initialize_jit): Adjust.
2586
54585eee
TT
25872021-01-09 Tom Tromey <tom@tromey.com>
2588
2589 PR compile/23672
2590 * compile/compile.c (compile_to_object): Avoid crash when
2591 osabi_triplet_regexp returns NULL.
2592
bc167b6b
TT
25932021-01-09 Tom Tromey <tom@tromey.com>
2594
2595 * tracepoint.h (class collection_list) <append_exp>: Take a
2596 std::string.
2597 * tracepoint.c (collection_list::append_exp): Take a std::string.
2598 (encode_actions_1): Update.
2599
8fc48b79
TT
26002021-01-08 Tom Tromey <tromey@adacore.com>
2601
2602 * parse.c (parse_expression): Add void_context_p parameter. Use
2603 parse_exp_in_context.
2604 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2605 parse_expression.
2606 (print_command, call_command): Update.
2607 * expression.h (parse_expression): Add void_context_p parameter.
2608
3c8c6de2
AB
26092021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2610
2611 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2612 for internalvar components that have a dynamic location.
2613
1940319c
TV
26142021-01-08 Tom de Vries <tdevries@suse.de>
2615
2616 PR gdb/26881
2617 * breakpoint.c (create_exception_master_breakpoint_probe)
2618 (create_exception_master_breakpoint_hook): Factor out
2619 of ...
2620 (create_exception_master_breakpoint): ... here. Only try to install
2621 the master exception breakpoint in objfile.debug using the
2622 _Unwind_DebugHook method, if the install using probes in objfile
2623 failed.
2624
e3436813
AB
26252021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * f-lang.c (fortran_value_subarray): Call value_from_component.
2628
e904f56d
MF
26292021-01-07 Mike Frysinger <vapier@gentoo.org>
2630
2631 * remote-sim.c: Include memory-map.h.
2632 (gdbsim_target): Define memory_map override.
2633 (gdbsim_target::memory_map): Define.
2634
959d6a67
TT
26352021-01-07 Tom Tromey <tromey@adacore.com>
2636
2637 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2638
d4813f10
TT
26392021-01-07 Tom Tromey <tromey@adacore.com>
2640
2641 * ada-lang.c (add_component_interval): Start loop using vector's
2642 updated size.
2643
b49180ac
TT
26442021-01-06 Tom Tromey <tromey@adacore.com>
2645
2646 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2647 Do not cast result.
2648 * valarith.c (fixed_point_binop): Handle multiplication
2649 and division specially.
2650 * valops.c (value_to_gdb_mpq): New function.
2651 (value_cast_to_fixed_point): Use it.
2652
55195361
HD
26532021-01-05 Hannes Domani <ssbssa@yahoo.de>
2654
2655 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2656 Call wnoutrefresh instead of tui_win_info::refresh_window.
2657
1b6d4bb2
HD
26582021-01-05 Hannes Domani <ssbssa@yahoo.de>
2659
2660 * tui/tui-source.c (tui_source_window::show_line_number):
2661 Redraw second space after line number.
2662
b5ff370e
HD
26632021-01-05 Hannes Domani <ssbssa@yahoo.de>
2664
2665 PR tui/26927
2666 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2667 Fix source pad size in prefresh.
2668 (tui_source_window_base::show_source_content): Grow source pad
2669 if necessary.
2670
c68ea49f
MF
26712021-01-04 Mike Frysinger <vapier@gentoo.org>
2672
2673 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2674 (bfin_frame_align): Use align_down.
2675
e4ad960a
TV
26762021-01-04 Tom de Vries <tdevries@suse.de>
2677
2678 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2679 terminators that do not terminate anything.
2680
3ec3145c
SM
26812021-01-04 Simon Marchi <simon.marchi@efficios.com>
2682
2683 * debug.c (debug_print_depth): New.
2684 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2685 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2686 * infrun.c (start_step_over): Use
2687 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2688 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2689 INFRUN_SCOPED_DEBUG_START_END.
2690 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2691
e71daf80
SM
26922021-01-04 Simon Marchi <simon.marchi@efficios.com>
2693
2694 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2695
335709bc
SM
26962021-01-04 Simon Marchi <simon.marchi@efficios.com>
2697
2698 * utils.c (vfprintf_unfiltered): Print timestamp only when
2699 previous debug output ended with a newline.
2700
098caef4
LM
27012021-01-04 Luis Machado <luis.machado@linaro.org>
2702
2703 Update all users of trad_frame_saved_reg to use the new member
2704 functions.
2705
2706 Remote all struct keywords from declarations of trad_frame_saved_reg
2707 types, except on forward declarations.
2708
2709 * aarch64-tdep.c: Update.
2710 * alpha-mdebug-tdep.c: Update.
2711 * alpha-tdep.c: Update.
2712 * arc-tdep.c: Update.
2713 * arm-tdep.c: Update.
2714 * avr-tdep.c: Update.
2715 * cris-tdep.c: Update.
2716 * csky-tdep.c: Update.
2717 * frv-tdep.c: Update.
2718 * hppa-linux-tdep.c: Update.
2719 * hppa-tdep.c: Update.
2720 * hppa-tdep.h: Update.
2721 * lm32-tdep.c: Update.
2722 * m32r-linux-tdep.c: Update.
2723 * m32r-tdep.c: Update.
2724 * m68hc11-tdep.c: Update.
2725 * mips-tdep.c: Update.
2726 * moxie-tdep.c: Update.
2727 * riscv-tdep.c: Update.
2728 * rs6000-tdep.c: Update.
2729 * s390-linux-tdep.c: Update.
2730 * s390-tdep.c: Update.
2731 * score-tdep.c: Update.
2732 * sparc-netbsd-tdep.c: Update.
2733 * sparc-sol2-tdep.c: Update.
2734 * sparc64-fbsd-tdep.c: Update.
2735 * sparc64-netbsd-tdep.c: Update.
2736 * sparc64-obsd-tdep.c: Update.
2737 * sparc64-sol2-tdep.c: Update.
2738 * tilegx-tdep.c: Update.
2739 * v850-tdep.c: Update.
2740 * vax-tdep.c: Update.
2741
2742 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2743 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2744
2745 * trad-frame.c: Update.
2746 Remove TF_REG_* enum.
2747 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2748 a trivially-constructible struct.
2749 (trad_frame_reset_saved_regs): Adjust to use member function.
2750 (trad_frame_value_p): Likewise.
2751 (trad_frame_addr_p): Likewise.
2752 (trad_frame_realreg_p): Likewise.
2753 (trad_frame_value_bytes_p): Likewise.
2754 (trad_frame_set_value): Likewise.
2755 (trad_frame_set_realreg): Likewise.
2756 (trad_frame_set_addr): Likewise.
2757 (trad_frame_set_unknown): Likewise.
2758 (trad_frame_set_value_bytes): Likewise.
2759 (trad_frame_get_prev_register): Likewise.
2760 * trad-frame.h: Update.
2761 (trad_frame_saved_reg_kind): New enum.
2762 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2763 <m_kind, m_reg>: New member fields.
2764 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2765 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2766 <is_addr, is_unknown, is_value_bytes>: New member functions.
2767
9898e882
SM
27682021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2769
2770 * target-float.c: Fix typos.
2771
b66b4e65
HD
27722021-01-02 Hannes Domani <ssbssa@yahoo.de>
2773
2774 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2775
b5b5650a
JB
27762021-01-01 Joel Brobecker <brobecker@adacore.com>
2777
2778 * gdbarch.sh: Update copyright year range.
2779
3666a048
JB
27802021-01-01 Joel Brobecker <brobecker@adacore.com>
2781
2782 Update copyright year range in copyright header of all GDB files.
2783
ff7e39b6
JB
27842021-01-01 Joel Brobecker <brobecker@adacore.com>
2785
2786 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2787 to the list of directories to update.
2788
2b47c078
JB
27892021-01-01 Joel Brobecker <brobecker@adacore.com>
2790
2791 * top.c (print_gdb_version): Update copyright year.
2792
476923f1 27932021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2794
476923f1 2795 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2796
476923f1 2797For older changes see ChangeLog-2020.
c906108c
SS
2798\f
2799Local Variables:
2800mode: change-log
2801left-margin: 8
2802fill-column: 74
2803version-control: never
57da7796 2804coding: utf-8
c906108c 2805End: