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