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