]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Introduce type_instance_operation
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
44b675c8
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * expop.h (class type_instance_operation): New.
4 * eval.c (type_instance_operation::evaluate): New method.
5
f6b42326
TT
62021-03-08 Tom Tromey <tom@tromey.com>
7
8 * expop.h (class op_this_operation): New.
9 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
10
cbc18219
TT
112021-03-08 Tom Tromey <tom@tromey.com>
12
13 * expop.h (class unop_memval_operation)
14 (class unop_memval_type_operation): New.
15 * eval.c (eval_op_memval): No longer static.
16 (unop_memval_operation::evaluate_for_address)
17 (unop_memval_type_operation::evaluate_for_address)
18 (unop_memval_operation::evaluate_for_sizeof)
19 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
20 * ax-gdb.c (unop_memval_operation::do_generate_ax)
21 (unop_memval_type_operation::do_generate_ax): New methods.
22
ae4bb61e
TT
232021-03-08 Tom Tromey <tom@tromey.com>
24
25 * expop.h (class unop_alignof_operation): New.
26 * eval.c (eval_op_alignof): No longer static.
27
85d23bda
TT
282021-03-08 Tom Tromey <tom@tromey.com>
29
30 * expop.h (class unop_sizeof_operation): New.
31 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
32
14aff815
TT
332021-03-08 Tom Tromey <tom@tromey.com>
34
35 * expop.h (class unop_addr_operation): New.
36 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
37
929f3aa7
TT
382021-03-08 Tom Tromey <tom@tromey.com>
39
40 * expop.h (class typeid_operation): New.
41
0af8829e
TT
422021-03-08 Tom Tromey <tom@tromey.com>
43
44 * expop.h (class decltype_operation): New.
45
4efc574c
TT
462021-03-08 Tom Tromey <tom@tromey.com>
47
48 * expop.h (class typeof_operation): New.
49
5b5f5140
TT
502021-03-08 Tom Tromey <tom@tromey.com>
51
52 * expop.h (class type_operation): New.
53 * eval.c (eval_op_type): No longer static.
54
876469ff
TT
552021-03-08 Tom Tromey <tom@tromey.com>
56
57 * expop.h (class unop_ind_base_operation)
58 (class unop_ind_operation): New.
59 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
60 (unop_ind_base_operation::evaluate_for_address)
61 (unop_ind_base_operation::evaluate_for_sizeof): New method.
62 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
63
6d89e296
TT
642021-03-08 Tom Tromey <tom@tromey.com>
65
66 * expop.h (unop_incr_operation): New template.
67 (preinc_operation, predec_operation, postinc_operation)
68 (postdec_operation): New typedefs.
69 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
70 (eval_op_postdec): No longer static.
71
9307d17b
TT
722021-03-08 Tom Tromey <tom@tromey.com>
73
74 * expop.h (unary_ftype): New typedef.
75 (unop_operation, usual_ax_binop_operation): New templates.
76 (unary_plus_operation, unary_neg_operation)
77 (unary_complement_operation, unary_logical_not_operation): New
78 typedefs.
79 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
80 (eval_op_lognot): No longer static.
81 * ax-gdb.c (gen_expr_unop): New function.
82
ae64ba58
TT
832021-03-08 Tom Tromey <tom@tromey.com>
84
85 * ax-gdb.c (comma_operation::do_generate_ax): New method.
86
d4eff4c1
TT
872021-03-08 Tom Tromey <tom@tromey.com>
88
89 * expop.h (class repeat_operation): New.
90 * eval.c (eval_op_repeat): No longer static. Remove "op"
91 parameter.
92 (evaluate_subexp_standard): Update.
93 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
94
46916f2b
TT
952021-03-08 Tom Tromey <tom@tromey.com>
96
97 * expop.h (class comparison_operation): New.
98 (equal_operation, notequal_operation, less_operation)
99 (gtr_operation, geq_operation, leq_operation): New typedefs.
100 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
101 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
102
224d6424
TT
1032021-03-08 Tom Tromey <tom@tromey.com>
104
105 * expop.h (class subscript_operation): New.
106 * eval.c (eval_op_subscript): No longer static.
107
373907ff
TT
1082021-03-08 Tom Tromey <tom@tromey.com>
109
110 * expop.h (class binop_operation, class usual_ax_binop_operation):
111 New.
112 (exp_operation, intdiv_operation, mod_operation, mul_operation)
113 (div_operation, rem_operation, lsh_operation, rsh_operation)
114 (bitwise_and_operation, bitwise_ior_operation)
115 (bitwise_xor_operation): New typedefs.
116 * eval.c (eval_op_binary): No longer static.
117
5133d78b
TT
1182021-03-08 Tom Tromey <tom@tromey.com>
119
120 * expop.h (class sub_operation): New.
121 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
122 (evaluate_subexp_standard): Update.
123
a94323b6
TT
1242021-03-08 Tom Tromey <tom@tromey.com>
125
126 * expop.h (class add_operation): New.
127 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
128 (evaluate_subexp_standard): Update.
129
e51e26a0
TT
1302021-03-08 Tom Tromey <tom@tromey.com>
131
132 * expop.h (class concat_operation): New.
133 * eval.c (eval_op_concat): No longer static. Remove "op"
134 parameter.
135 (evaluate_subexp_standard): Update.
136
07f724a8
TT
1372021-03-08 Tom Tromey <tom@tromey.com>
138
139 * expop.h (class structop_member_operation)
140 (class structop_mptr_operation): New.
141 * eval.c (eval_op_member): No longer static.
142
ab0609be
TT
1432021-03-08 Tom Tromey <tom@tromey.com>
144
145 * expop.h (class structop_ptr_operation): New.
146 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
147 parameter.
148
808b22cf
TT
1492021-03-08 Tom Tromey <tom@tromey.com>
150
151 * expop.h (class structop_base_operation)
152 (class structop_operation): New.
153 * eval.c (eval_op_structop_struct): No longer static.
154
8cfd3e95
TT
1552021-03-08 Tom Tromey <tom@tromey.com>
156
157 * expop.h (class complex_operation): New.
158
09db3700
TT
1592021-03-08 Tom Tromey <tom@tromey.com>
160
161 * eval.c (eval_op_objc_selector): No longer static.
162 * c-exp.h (class objc_selector_operation): New.
163
06dc61b9
TT
1642021-03-08 Tom Tromey <tom@tromey.com>
165
166 * eval.c: Include c-exp.h.
167 * c-exp.h (class objc_nsstring_operation): New.
168
72d0a711
TT
1692021-03-08 Tom Tromey <tom@tromey.com>
170
171 * c-lang.c (c_string_operation::evaluate): New method.
172 * c-exp.h: New file.
173
9186293f
TT
1742021-03-08 Tom Tromey <tom@tromey.com>
175
176 * expop.h (class ternop_cond_operation): New.
177 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
178
1594e0bb
TT
1792021-03-08 Tom Tromey <tom@tromey.com>
180
181 * expop.h (class ternop_slice_operation): New.
182 * eval.c (eval_op_ternop): No longer static.
183
b50db09f
TT
1842021-03-08 Tom Tromey <tom@tromey.com>
185
186 * expop.h (class string_operation): New.
187 * eval.c (eval_op_string): No longer static.
188
e6e01e16
TT
1892021-03-08 Tom Tromey <tom@tromey.com>
190
191 * expop.h (class internalvar_operation): New.
192 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
193
e6985c5e
TT
1942021-03-08 Tom Tromey <tom@tromey.com>
195
196 * expop.h (class bool_operation): New.
197
55bdbff8
TT
1982021-03-08 Tom Tromey <tom@tromey.com>
199
200 * expop.h (class register_operation): New.
201 * eval.c (eval_op_register): No longer static.
202 * ax-gdb.c (register_operation::do_generate_ax): New method.
203
247d935b
TT
2042021-03-08 Tom Tromey <tom@tromey.com>
205
206 * expop.h (class last_operation): New.
207
17679395
TT
2082021-03-08 Tom Tromey <tom@tromey.com>
209
210 * expop.h (class func_static_var_operation): New.
211 * eval.c (eval_op_func_static_var): No longer static.
212
b5cc3923
TT
2132021-03-08 Tom Tromey <tom@tromey.com>
214
215 * expop.h (class var_entry_value_operation): New.
216 * eval.c (eval_op_var_entry_value): No longer static.
217
0c8effa3
TT
2182021-03-08 Tom Tromey <tom@tromey.com>
219
220 * expression.h (class operation) <set_outermost>: New method.
221 * expop.h (class var_msym_value_operation): New.
222 * eval.c (eval_op_var_msym_value): No longer static.
223 (var_msym_value_operation::evaluate_for_address)
224 (var_msym_value_operation::evaluate_for_sizeof)
225 (var_msym_value_operation::evaluate_for_cast): New methods.
226 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
227 method.
228
d336c29e
TT
2292021-03-08 Tom Tromey <tom@tromey.com>
230
231 * expop.h (class long_const_operation): New.
232 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
233
d5ab122c
TT
2342021-03-08 Tom Tromey <tom@tromey.com>
235
236 * expop.h (class scope_operation): New.
237 * eval.c (eval_op_scope): No longer static.
238 (scope_operation::evaluate_for_address): New method.
239 * ax-gdb.c (scope_operation::do_generate_ax): New method.
240
cae26a0c
TT
2412021-03-08 Tom Tromey <tom@tromey.com>
242
243 * expprint.c (float_const_operation::dump): New method.
244 * expop.h (float_data): New typedef.
245 (class float_const_operation): New.
246
75f9892d
TT
2472021-03-08 Tom Tromey <tom@tromey.com>
248
249 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
250 * ax-gdb.c (gen_expr_binop): New function.
251 (gen_expr_structop): Likewise.
252
de401988
TT
2532021-03-08 Tom Tromey <tom@tromey.com>
254
255 * expprint.c (expr::dump_for_expression): New functions.
256 * expop.h (dump_for_expression): New overloads.
257 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
258 Update.
259
e2803273
TT
2602021-03-08 Tom Tromey <tom@tromey.com>
261
262 * expression.h (expr::operation): New class.
263 (expr::make_operation): New function.
264 (expr::operation_up): New typedef.
265 * expop.h: New file.
266 * eval.c (operation::evaluate_for_cast)
267 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
268 New methods.
269 * ax-gdb.c (operation::generate_ax): New method.
270
e18c58f2
TT
2712021-03-08 Tom Tromey <tom@tromey.com>
272
273 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
274 (gen_expr_binop_rest): New overload.
275
c0d7ed8c
TT
2762021-03-08 Tom Tromey <tom@tromey.com>
277
278 * eval.c (eval_multi_subscript): New function.
279 (evaluate_subexp_standard): Use it.
280
dd5fd283
TT
2812021-03-08 Tom Tromey <tom@tromey.com>
282
283 * ada-lang.c (ada_binop_exp): New function.
284 (ada_evaluate_subexp): Use it.
285
3848abd6
TT
2862021-03-08 Tom Tromey <tom@tromey.com>
287
288 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
289 parameters.
290 (ada_evaluate_subexp): Use it.
291
38dc70cf
TT
2922021-03-08 Tom Tromey <tom@tromey.com>
293
294 * ada-lang.c (ada_binop_minmax): New function.
295 (ada_evaluate_subexp): Use it.
296
b84564fc
TT
2972021-03-08 Tom Tromey <tom@tromey.com>
298
299 * ada-lang.c (ada_unop_atr): New function.
300 (ada_evaluate_subexp): Use it.
301
b467efaa
TT
3022021-03-08 Tom Tromey <tom@tromey.com>
303
304 * ada-lang.c (ada_binop_in_bounds): New function.
305 (ada_evaluate_subexp): Use it.
306
5ce19db8
TT
3072021-03-08 Tom Tromey <tom@tromey.com>
308
309 * ada-lang.c (ada_ternop_slice): New function.
310 (ada_evaluate_subexp): Use it.
311
214b13ac
TT
3122021-03-08 Tom Tromey <tom@tromey.com>
313
314 * ada-lang.c (ada_equal_binop): New function.
315 (ada_evaluate_subexp): Use it.
316
faa1dfd7
TT
3172021-03-08 Tom Tromey <tom@tromey.com>
318
319 * ada-lang.c (ada_mult_binop): New function.
320 (ada_evaluate_subexp): Use it.
321
d05e24e6
TT
3222021-03-08 Tom Tromey <tom@tromey.com>
323
324 * ada-lang.c (ada_abs): New function.
325 (ada_evaluate_subexp): Use it.
326
68c75735
TT
3272021-03-08 Tom Tromey <tom@tromey.com>
328
329 * ada-lang.c (ada_atr_size): New function.
330 (ada_evaluate_subexp): Use it.
331
020dbabe
TT
3322021-03-08 Tom Tromey <tom@tromey.com>
333
334 * ada-lang.c (ada_atr_tag): New function.
335 (ada_evaluate_subexp): Use it.
336
7efc87ff
TT
3372021-03-08 Tom Tromey <tom@tromey.com>
338
339 * ada-lang.c (ada_unop_in_range): New function.
340 (ada_evaluate_subexp): Use it.
341
82390ab8
TT
3422021-03-08 Tom Tromey <tom@tromey.com>
343
344 * ada-lang.c (ada_unop_neg): New function.
345 (ada_evaluate_subexp): Use it.
346
62d4bd94
TT
3472021-03-08 Tom Tromey <tom@tromey.com>
348
349 * ada-lang.c (eval_ternop_in_range): New function.
350 (ada_evaluate_subexp): Use it.
351
3634f669
TT
3522021-03-08 Tom Tromey <tom@tromey.com>
353
354 * opencl-lang.c (eval_opencl_assign): New function.
355 (evaluate_subexp_opencl): Use it.
356
5e80600e
TT
3572021-03-08 Tom Tromey <tom@tromey.com>
358
359 * eval.c (eval_op_objc_msgcall): New function.
360 (evaluate_subexp_standard): Use it.
361
fb5ba2ab
TT
3622021-03-08 Tom Tromey <tom@tromey.com>
363
364 * eval.c (eval_binop_assign_modify): New function.
365 (evaluate_subexp_standard): Use it.
366
a49881f7
TT
3672021-03-08 Tom Tromey <tom@tromey.com>
368
369 * m2-lang.c (eval_op_m2_subscript): New function.
370 (evaluate_subexp_modula2): Use it.
371
41bdced5
TT
3722021-03-08 Tom Tromey <tom@tromey.com>
373
374 * m2-lang.c (eval_op_m2_high): New function.
375 (evaluate_subexp_modula2): Use it.
376
13ea014a
TT
3772021-03-08 Tom Tromey <tom@tromey.com>
378
379 * eval.c (evaluate_subexp_for_address_base): New function.
380 (evaluate_subexp_for_address): Use it.
381 (evaluate_subexp_for_sizeof_base): New function.
382 (evaluate_subexp_for_sizeof): Use it.
383
1fa41fc7
TT
3842021-03-08 Tom Tromey <tom@tromey.com>
385
386 * rust-lang.c (eval_op_rust_structop): New function.
387 (rust_evaluate_subexp): Use it.
388
575cae23
TT
3892021-03-08 Tom Tromey <tom@tromey.com>
390
391 * rust-lang.c (eval_op_rust_struct_anon): New function.
392 (rust_evaluate_subexp): Use it.
393
05104233
TT
3942021-03-08 Tom Tromey <tom@tromey.com>
395
396 * rust-lang.c (eval_op_rust_array): New function.
397 (rust_evaluate_subexp): Use it.
398
6fa9831f
TT
3992021-03-08 Tom Tromey <tom@tromey.com>
400
401 * rust-lang.c (eval_op_rust_complement): New function.
402 (rust_evaluate_subexp): Use it.
403
d123f9e4
TT
4042021-03-08 Tom Tromey <tom@tromey.com>
405
406 * rust-lang.c (eval_op_rust_ind): New function.
407 (rust_evaluate_subexp): Use it.
408
984af2cb
TT
4092021-03-08 Tom Tromey <tom@tromey.com>
410
411 * rust-lang.c (rust_subscript): Change parameters.
412 (rust_evaluate_subexp): Update.
413
d148f803
TT
4142021-03-08 Tom Tromey <tom@tromey.com>
415
416 * rust-lang.c (rust_range): Change parameters.
417 (rust_evaluate_subexp): Update.
418
9cbd1c20
TT
4192021-03-08 Tom Tromey <tom@tromey.com>
420
421 * f-lang.c (eval_op_f_allocated): New function.
422 (evaluate_subexp_f): Use it.
423
3c18c49c
TT
4242021-03-08 Tom Tromey <tom@tromey.com>
425
426 * f-lang.c (fortran_require_array): New function.
427 (evaluate_subexp_f): Use it.
428
216f6fcb
TT
4292021-03-08 Tom Tromey <tom@tromey.com>
430
431 * f-lang.c (eval_op_f_kind): New function.
432 (evaluate_subexp_f): Use it.
433
00f2db6f
TT
4342021-03-08 Tom Tromey <tom@tromey.com>
435
436 * f-lang.c (eval_op_f_cmplx): New function.
437 (evaluate_subexp_f): Use it.
438
93b2b5fa
TT
4392021-03-08 Tom Tromey <tom@tromey.com>
440
441 * f-lang.c (eval_op_f_modulo): New function.
442 (evaluate_subexp_f): Use it.
443
9f1a1f3c
TT
4442021-03-08 Tom Tromey <tom@tromey.com>
445
446 * f-lang.c (eval_op_f_floor): New function.
447 (evaluate_subexp_f): Use it.
448
3dc41f3c
TT
4492021-03-08 Tom Tromey <tom@tromey.com>
450
451 * f-lang.c (eval_op_f_ceil): New function.
452 (evaluate_subexp_f): Use it.
453
e08109f2
TT
4542021-03-08 Tom Tromey <tom@tromey.com>
455
456 * f-lang.c (eval_op_f_mod): New function.
457 (evaluate_subexp_f): Use it.
458
cc05c68e
TT
4592021-03-08 Tom Tromey <tom@tromey.com>
460
461 * f-lang.c (eval_op_f_abs): New function.
462 (evaluate_subexp_f): Use it.
463
aec95807
TT
4642021-03-08 Tom Tromey <tom@tromey.com>
465
466 * eval.c (eval_op_type): New function.
467 (evaluate_subexp_standard): Use it.
468
a220ead5
TT
4692021-03-08 Tom Tromey <tom@tromey.com>
470
471 * eval.c (eval_op_postdec): New function.
472 (evaluate_subexp_standard): Use it.
473
abffe116
TT
4742021-03-08 Tom Tromey <tom@tromey.com>
475
476 * eval.c (eval_op_postinc): New function.
477 (evaluate_subexp_standard): Use it.
478
9e1361b7
TT
4792021-03-08 Tom Tromey <tom@tromey.com>
480
481 * eval.c (eval_op_predec): New file.
482 (evaluate_subexp_standard): Use it.
483
00f50884
TT
4842021-03-08 Tom Tromey <tom@tromey.com>
485
486 * eval.c (eval_op_preinc): New function.
487 (evaluate_subexp_standard): Use it.
488
3aef2a07
TT
4892021-03-08 Tom Tromey <tom@tromey.com>
490
491 * eval.c (eval_op_memval): New function.
492 (evaluate_subexp_standard): Use it.
493
acee9468
TT
4942021-03-08 Tom Tromey <tom@tromey.com>
495
496 * eval.c (eval_op_alignof): New function.
497 (evaluate_subexp_standard): Use it.
498
786f70ee
TT
4992021-03-08 Tom Tromey <tom@tromey.com>
500
501 * eval.c (eval_op_ind): New function.
502 (evaluate_subexp_standard): Use it.
503
24338fb9
TT
5042021-03-08 Tom Tromey <tom@tromey.com>
505
506 * eval.c (eval_op_lognot): New function.
507 (evaluate_subexp_standard): Use it.
508
1f09ec81
TT
5092021-03-08 Tom Tromey <tom@tromey.com>
510
511 * eval.c (eval_op_complement): New function.
512 (evaluate_subexp_standard): Use it.
513
606d105f
TT
5142021-03-08 Tom Tromey <tom@tromey.com>
515
516 * eval.c (eval_op_neg): New function.
517 (evaluate_subexp_standard): Use it.
518
39f288be
TT
5192021-03-08 Tom Tromey <tom@tromey.com>
520
521 * eval.c (eval_op_plus): New function.
522 (evaluate_subexp_standard): Use it.
523
eed70b1c
TT
5242021-03-08 Tom Tromey <tom@tromey.com>
525
526 * eval.c (eval_op_repeat): New function.
527 (evaluate_subexp_standard): Use it.
528
60cdd487
TT
5292021-03-08 Tom Tromey <tom@tromey.com>
530
531 * eval.c (eval_op_leq): New function.
532 (evaluate_subexp_standard): Use it.
533
96e3efd9
TT
5342021-03-08 Tom Tromey <tom@tromey.com>
535
536 * eval.c (eval_op_geq): New function.
537 (evaluate_subexp_standard): Use it.
538
1f78d732
TT
5392021-03-08 Tom Tromey <tom@tromey.com>
540
541 * eval.c (eval_op_gtr): New function.
542 (evaluate_subexp_standard): Use it.
543
6cad1349
TT
5442021-03-08 Tom Tromey <tom@tromey.com>
545
546 * eval.c (eval_op_less): New function.
547 (evaluate_subexp_standard): Use it.
548
1fcb3559
TT
5492021-03-08 Tom Tromey <tom@tromey.com>
550
551 * eval.c (eval_op_notequal): New function.
552 (evaluate_subexp_standard): Use it.
553
0cc96de8
TT
5542021-03-08 Tom Tromey <tom@tromey.com>
555
556 * eval.c (eval_op_equal): New function.
557 (evaluate_subexp_standard): Use it.
558
288d26bc
TT
5592021-03-08 Tom Tromey <tom@tromey.com>
560
561 * eval.c (eval_op_subscript): New function.
562 (evaluate_subexp_standard): Use it.
563
7cdcdd02
TT
5642021-03-08 Tom Tromey <tom@tromey.com>
565
566 * eval.c (eval_op_binary): New function.
567 (evaluate_subexp_standard): Use it.
568
d9790e22
TT
5692021-03-08 Tom Tromey <tom@tromey.com>
570
571 * eval.c (eval_op_sub): New function.
572 (evaluate_subexp_standard): Use it.
573
aedaf9ac
TT
5742021-03-08 Tom Tromey <tom@tromey.com>
575
576 * eval.c (eval_op_add): New function.
577 (evaluate_subexp_standard): Use it.
578
b7a96ed2
TT
5792021-03-08 Tom Tromey <tom@tromey.com>
580
581 * eval.c (eval_op_member): New function.
582 (evaluate_subexp_standard): Use it.
583
fb461aa3
TT
5842021-03-08 Tom Tromey <tom@tromey.com>
585
586 * eval.c (eval_op_structop_ptr): New function.
587 (evaluate_subexp_standard): Use it.
588
3e96c4fc
TT
5892021-03-08 Tom Tromey <tom@tromey.com>
590
591 * eval.c (eval_op_structop_struct): New function.
592 (evaluate_subexp_standard): Use it.
593
f960a617
TT
5942021-03-08 Tom Tromey <tom@tromey.com>
595
596 * eval.c (eval_op_ternop): New function.
597 (evaluate_subexp_standard): Use it.
598
5c2f201e
TT
5992021-03-08 Tom Tromey <tom@tromey.com>
600
601 * eval.c (eval_op_concat): New function.
602 (evaluate_subexp_standard): Use it.
603
f871bae1
TT
6042021-03-08 Tom Tromey <tom@tromey.com>
605
606 * eval.c (eval_op_objc_selector): New function.
607 (evaluate_subexp_standard): Use it.
608
14a1c64a
TT
6092021-03-08 Tom Tromey <tom@tromey.com>
610
611 * eval.c (eval_op_string): New function.
612 (evaluate_subexp_standard): Use it.
613
ffff730b
TT
6142021-03-08 Tom Tromey <tom@tromey.com>
615
616 * eval.c (eval_op_register): New function.
617 (evaluate_subexp_standard): Use it.
618
9b1d8af6
TT
6192021-03-08 Tom Tromey <tom@tromey.com>
620
621 * eval.c (eval_op_func_static_var): New function.
622 (evaluate_subexp_standard): Use it.
623
c0df9289
TT
6242021-03-08 Tom Tromey <tom@tromey.com>
625
626 * eval.c (eval_op_var_msym_value): New function.
627 (evaluate_subexp_standard): Use it.
628
50b98adc
TT
6292021-03-08 Tom Tromey <tom@tromey.com>
630
631 * eval.c (eval_op_var_entry_value): New function.
632 (evaluate_subexp_standard): Use it.
633
ea2d29f7
TT
6342021-03-08 Tom Tromey <tom@tromey.com>
635
636 * eval.c (eval_op_scope): New function.
637 (evaluate_subexp_standard): Use it.
638
01573d73
TT
6392021-03-06 Chernov Sergey <klen_s@mail.ru>
640
641 PR gdb/27528:
642 * ada-lang.c (ada_fold_name): Use gdb::to_string.
643
9938d15a
TT
6442021-03-06 Tom Tromey <tom@tromey.com>
645
646 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
647 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
648 * dwarf2/read.c (dwarf2_elf_names): No longer static.
649 (locate_dwz_sections, dwz_search_other_debugdirs)
650 (dwarf2_get_dwz_file): Move to dwz.c.
651 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
652 read.h.
653 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
654 (dwarf2_get_dwz_file): Move from read.c.
655
18035655
TT
6562021-03-06 Tom Tromey <tom@tromey.com>
657
658 * debuginfod-support.h: Include scoped_fd.h.
659
a7308ce0
TT
6602021-03-06 Tom Tromey <tom@tromey.com>
661
662 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
663 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
664 (get_abbrev_section_for_cu, read_attribute_value)
665 (get_debug_line_section): Update.
666 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
667
fbedd546
TT
6682021-03-06 Tom Tromey <tom@tromey.com>
669
670 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
671 method.
672 * dwarf2/read.c (section_is_p): Remove.
673 (dwarf2_per_bfd::locate_sections)
674 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
675 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
676 (dwarf2_locate_common_dwp_sections)
677 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
678 Update.
679
c2a62a3d
TT
6802021-03-06 Tom Tromey <tom@tromey.com>
681
682 * xcoffread.c: Include sect-names.h.
683 * symfile.h (struct dwarf2_section_names, struct
684 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
685 * dwarf2/sect-names.h: New file, from symfile.h.
686 * dwarf2/read.c: Include sect-names.h.
687
4444f407
TT
6882021-03-06 Tom Tromey <tom@tromey.com>
689
690 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
691 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
692 (abbrev_table::read): Update.
693 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
694 (struct abbrev_info): Reformat.
695 <attrs>: Now an array.
696 (struct abbrev_table) <alloc_abbrev>: Remove.
697
dd99cf0c
WP
6982021-03-06 Weimin Pan <weimin.pan@oracle.com>
699
700 * ctfread.c (ctf_psymtab_add_enums): New function.
701 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
702
844be3f2
WP
7032021-03-06 Weimin Pan <weimin.pan@oracle.com>
704
705 * ctfread.c (read_func_kind_type): Set up function arguments.
706
b2668f28
AB
7072021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
708 Andrew Burgess <andrew.burgess@embecosm.com>
709
710 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
711 includes.
712 (riscv_csrset): New static global.
713 (riscv_update_csrmap): New function.
714 (riscv_iterate_over_regset_sections): Process CSRs.
715
d782d24b
AB
7162021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * riscv-tdep.c (riscv_feature_name_csr): Define.
719 (riscv_feature_name_cpu): Define.
720 (riscv_feature_name_fpu): Define.
721 (riscv_feature_name_virtual): Define.
722 (riscv_xreg_feature): Use riscv_feature_name_cpu.
723 (riscv_freg_feature): Use riscv_feature_name_fpu.
724 (riscv_virtual_feature): Use riscv_feature_name_virtual.
725 (riscv_csr_feature): Use riscv_feature_name_csr.
726 * riscv-tdep.h (riscv_feature_name_csr): Declare.
727
fb8f3fc0
AB
7282021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
729 Craig Blackmore <craig.blackmore@embecosm.com>
730
731 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
732 (ALLDEPFILES): Add riscv-none-tdep.c.
733 * configure: Regenerate.
734 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
735 support.
736 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
737 * elf-none-tdep.c: New file.
738 * elf-none-tdep.h: New file.
739 * riscv-none-tdep.c: New file.
740
95ce627a
AB
7412021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
742 Andrew Burgess <andrew.burgess@embecosm.com>
743
744 * corelow.c: Add 'xml-tdesc.h' include.
745 (core_target::read_description): Load the target description from
746 the core file when possible.
747 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
748 note.
749 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
750 (gcore_elf_make_tdesc_note): New function.
751 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
752 * linux-tdep.c (linux_make_corefile_notes): Add target description
753 note.
754
f3a5df7b
AB
7552021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * Makefile.in (SFILES): Add gcore-elf.c.
758 (HFILES_NO_SRCDIR): Add gcore-elf.h
759 * configure: Regenerate.
760 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
761 support.
762 * fbsd-tdep.c: Add 'gcore-elf.h' include.
763 (struct fbsd_collect_regset_section_cb_data): Delete.
764 (fbsd_collect_regset_section_cb): Delete.
765 (fbsd_collect_thread_registers): Delete.
766 (struct fbsd_corefile_thread_data): Delete.
767 (fbsd_corefile_thread): Delete.
768 (fbsd_make_corefile_notes): Call
769 gcore_elf_build_thread_register_notes instead of the now deleted
770 FreeBSD code.
771 * gcore-elf.c: New file, the content was moved here from
772 linux-tdep.c, functions were renamed and given minor cleanup.
773 * gcore-elf.h: New file.
774 * gcore.c (gcore_find_signalled_thread): Moved here from
775 linux-tdep.c and given a new name. Minor cleanups.
776 * gcore.h (gcore_find_signalled_thread): Declare.
777 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
778 (struct linux_collect_regset_section_cb_data): Delete.
779 (linux_collect_regset_section_cb): Delete.
780 (linux_collect_thread_registers): Delete.
781 (linux_corefile_thread): Call
782 gcore_elf_build_thread_register_notes.
783 (find_signalled_thread): Delete.
784 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
785
d1e93af6
SM
7862021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
787
788 PR gdb/27147
789 * sparc-nat.h (sparc_fetch_inferior_registers): Add
790 process_stratum_target parameter,
791 sparc_store_inferior_registers): update callers.
792 * sparc-nat.c (sparc_fetch_inferior_registers,
793 sparc_store_inferior_registers): Add process_stratum_target
794 parameter. Switch current thread before calling
795 sparc_supply_gregset / sparc_collect_rwindow.
796 (sparc_store_inferior_registers): Likewise.
797 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
798 (sparc32obsd_collect_uthread): Likewise.
799 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
800 Add assertion.
801 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
802 sparc64obsd_supply_uthread): Add assertion.
803
1178743e
TT
8042021-03-04 Tom Tromey <tromey@adacore.com>
805
806 * ada-lang.c (struct match_data) <found_sym>: Now bool.
807 (aux_add_nonlocal_symbols): Update.
808 (ada_add_block_symbols): Change "found_sym" to bool.
809
1bfa81ac
TT
8102021-03-03 Tom Tromey <tromey@adacore.com>
811
812 * ada-lang.c (ada_resolve_function): Update comment.
813 (is_nonfunction, add_symbols_from_enclosing_procs)
814 (remove_extra_symbols): Likewise.
815 (struct match_data): Add constructor, initializers.
816 (add_nonlocal_symbols): Remove memset.
817 (aux_add_nonlocal_symbols): Update comment.
818 (ada_add_block_renamings, add_nonlocal_symbols)
819 (ada_add_all_symbols): Likewise.
820 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
821
bbcdf9ab
TT
8222021-03-02 Tom Tromey <tromey@adacore.com>
823
824 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
825 (cast_to_gnat_encoded_fixed_point_type): Remove.
826 (ada_value_cast, ada_evaluate_subexp): Update.
827 (gnat_encoded_fixed_point_type_info)
828 (ada_is_gnat_encoded_fixed_point_type)
829 (gnat_encoded_fixed_point_delta)
830 (gnat_encoded_fixed_point_scaling_factor): Remove.
831 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
832 (gnat_encoded_fixed_point_delta)
833 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
834 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
835 (ada_print_type): Update.
836 * ada-valprint.c (ada_value_print_num): Update.
837 * dwarf2/read.c (ada_get_gnat_encoded_number)
838 (ada_get_gnat_encoded_ratio): New functions.
839 (finish_fixed_point_type): Use them. Add parameters.
840 (GNAT_FIXED_POINT_SUFFIX): New define.
841 (gnat_encoded_fixed_point_type_info): New function.
842 (read_base_type): Handle gnat encodings.
843
5f9febe0
TT
8442021-03-02 Tom Tromey <tromey@adacore.com>
845
846 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
847 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
848 std::string.
849 (GROW_VECT): Remove.
850 (grow_vect): Remove.
851
d1183b06
TT
8522021-03-02 Tom Tromey <tromey@adacore.com>
853
854 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
855 * ada-lang.c (resolve_subexp): Update.
856 (ada_resolve_function): Accept a vector.
857 (is_nonfunction, add_defn_to_vec)
858 (add_symbols_from_enclosing_procs): Likewise.
859 (num_defns_collected, defns_collected): Remove.
860 (remove_extra_symbols): Return a vector.
861 (remove_irrelevant_renamings): Return void.
862 (ada_add_local_symbols): Accept a vector.
863 (struct match_data) <obstackp>: Remove.
864 <resultp>: New member.
865 (aux_add_nonlocal_symbols): Update.
866 (ada_add_block_renamings, add_nonlocal_symbols)
867 (ada_add_all_symbols): Accept a vector.
868 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
869 vector.
870 (ada_lookup_symbol): Update.
871 (ada_add_block_symbols): Accept a vector.
872 (get_var_value, iterate_over_symbols): Update.
873 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
874 Update.
875
886d459f
TT
8762021-03-02 Tom Tromey <tromey@adacore.com>
877
878 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
879
bdcccc56
TT
8802021-03-02 Tom Tromey <tromey@adacore.com>
881
882 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
883 auto_obstack.
884 <root>: Initialize.
885 (ada_pspace_data): Remove destructor.
886 <sym_cache>: Now a unique_ptr.
887 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
888 (ada_get_symbol_cache): Use 'new'.
889 (ada_clear_symbol_cache): Rewrite.
890
1228719f
TT
8912021-03-02 Tom Tromey <tromey@adacore.com>
892
893 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
894 is null.
895
bb3a4efe
LS
8962021-02-27 Lancelot Six <lsix@lancelotsix.com>
897
898 PR gdb/27393
899 * source.c (add_path): Skip empty dirnames.
900
26b43ca6 9012021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
902
903 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
904 include order for <sys/ptrace.h> and <asm/ptrace.h>.
905
dffdd8b5
SM
9062021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
907
908 PR gdb/26861
909 * target.c (target_mourn_inferior): Only compare pids in
910 target_mourn_inferior.
911
64d38fdd
JM
9122021-02-25 Jan Matyas <jmatyas@codasip.com>
913
914 PR gdb/26819
915 * remote.c (remote_target::start_remote): Ensure the single
916 thread, automatically added for remote targets without the
917 concept of threading, is initially in set to the "resumed"
918 state.
919 * remote.c (remote_target::add_current_inferior_and_thread):
920 Add return value - return the main thread.
921
2450ad54
JV
9222021-02-25 Jan Vrany <jan.vrany@labware.com>
923
924 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
925 (mi_tsv_created): Likewise.
926 (mi_tsv_deleted): Likewise.
927
30c80d88
TV
9282021-02-25 Tom de Vries <tdevries@suse.de>
929
930 PR symtab/27354
931 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
932 section_kind for &dwo_file->sections.info.
933
68337b8b
AB
9342021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 PR fortran/26155
937 * f-lang.c (fortran_argument_convert): Delete declaration.
938 (fortran_prepare_argument): New function.
939 (evaluate_subexp_f): Move logic to new function
940 fortran_prepare_argument.
941
faeb9f13
AB
9422021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
943
944 * f-exp.y (f77_keywords): Add 'associated'.
945 * f-lang.c (fortran_associated): New function.
946 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
947 (operator_length_f): Likewise.
948 (print_unop_or_binop_subexp_f): New function.
949 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
950 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
951 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
952 (operator_check_f): Likewise.
953 * std-operator.def: Add FORTRAN_ASSOCIATED.
954
170f4b23
AB
9552021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
956
957 * f-exp.y (fortran_operators): Add ".xor.".
958
aa659cfa
TV
9592021-02-24 Tom de Vries <tdevries@suse.de>
960
961 PR symtab/27336
962 * dwarf2/attribute.c (attribute::form_is_signed): New function
963 factored out of ...
964 * dwarf2/attribute.h (attribute::as_signed): ... here.
965 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
966 (attribute::form_is_signed): Declare.
967 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
968 for DW_AT_decl_file.
969
268c77c1
KB
9702021-02-24 Kevin Buettner <kevinb@redhat.com>
971
972 * nat/aarch64-linux-hw-point.c: Add comment regarding include
973 order for <sys/ptrace.h> and <asm/ptrace.h>.
974
665af52e
KB
9752021-02-24 Kevin Buettner <kevinb@redhat.com>
976
977 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
978 <sys/ptrace.h>.
979
dd80d750
AB
9802021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * exec.c (set_section_command): Move variable declarations into
983 the function body, and use std::string instead of a fixed size
984 buffer.
985
336aa7b7
AB
9862021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * exec.c (exec_target::get_section_table): Delete member function.
989 (section_table_read_available_memory): Use current_top_target, not
990 just the exec_ops target.
991 * target-delegates.c: Regenerate.
992 * target.c (default_get_section_table): New function.
993 * target.h (target_ops::get_section_table): Change default
994 behaviour to call default_get_section_table.
995 (default_get_section_table): Declare.
996
02f7d26b
AB
9972021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
998
999 * exec.c (exec_target::close): Call new clear_target_sections
1000 function.
1001 (program_space::add_target_sections): Update name of member
1002 variable.
1003 (program_space::add_target_sections): Update name of member
1004 variable.
1005 (program_space::remove_target_sections): Likewise.
1006 (exec_one_fork): Use new target_sections member function.
1007 (exec_target::get_section_table): Likewise.
1008 (exec_target::files_info): Likewise.
1009 (set_section_command): Likewise.
1010 (exec_set_section_address): Likewise.
1011 (exec_target::has_memory): Use new target_sections member
1012 function.
1013 * progspace.h (program_space::clear_target_sections): New member
1014 function.
1015 (program_space::target_sections): Rename member variable to
1016 m_target_sections, replace with a new member function.
1017 (program_space::m_target_sections): New member variable.
1018 * solib-dsbt.c (scan_dyntag): Use new member function.
1019 * solib-svr4.c (scan_dyntag): Likewise.
1020
19cf757a
AB
10212021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1024 return type const.
1025 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1026 (section_table_read_available_memory): Make local const.
1027 (exec_target::xfer_partial): Make local const.
1028 (print_section_info): Make parameter const.
1029 * gdb/exec.h (print_section_info): Likewise.
1030 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1031 const.
1032 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1033 Likewise.
1034 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1035 Likewise.
1036 * gdb/s390-tdep.c (s390_load): Likewise.
1037 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1038 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1039 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1040 Rename to...
1041 (target_debug_print_const_target_section_table_p): ...this.
1042 * gdb/target-delegates.c: Regenerate.
1043 * gdb/target.c (target_get_section_table): Make return type const.
1044 (target_section_by_addr): Likewise. Also make some locals const.
1045 (memory_xfer_partial_1): Make some locals const.
1046 * gdb/target.h (struct target_ops) <get_section_table>: Make
1047 return type const.
1048 (target_section_by_addr): Likewise.
1049 (target_get_section_table): Likewise.
1050
02a79309
AB
10512021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1052
1053 * NEWS: Mention new 'maint info target-sections' command.
1054 * maint.c (maintenance_info_target_sections): New function.
1055 (_initialize_maint_cmds): Register new command.
1056
895b7b4e
AB
10572021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1060 (riscv_features_from_bfd): ...this. Change parameter type to
1061 'bfd*', and update as required.
1062 (riscv_find_default_target_description): Update call to
1063 riscv_features_from_bfd. Select a default xlen based on
1064 info.bfd_arch_info.
1065 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1066
bc3c0632
AB
10672021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1070 dynamic types in UNOP_IND.
1071
08ac5771
SM
10722021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1073
1074 PR gdb/26828
1075 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1076 Instantiate queue.
1077 (~dwarf2_queue_guard): Clear queue.
1078 (queue_comp_unit): Assert that queue is
1079 instantiated.
1080 (process_queue): Adjust.
1081 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1082
616c069a
SM
10832021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 PR gdb/26828
1086 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1087 to decide whether or not to enqueue it for expansion.
1088 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1089 after calling maybe_queue_comp_unit.
1090
897608ed
SM
10912021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * linux-nat.c (linux_nat_filter_event): Return void.
1094
15908a11
TT
10952021-02-22 Tom Tromey <tromey@adacore.com>
1096
1097 * solib-svr4.c (enable_break): Update.
1098 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1099 type.
1100 (target_bfd_reopen): Change parameter type.
1101 * bfd-target.h (target_bfd_reopen): Change parameter type.
1102
f53fc427
SM
11032021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * thread.c (add_thread_silent): Add assert.
1106 (find_thread_ptid): Add assert.
1107
de146e19
SM
11082021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1109
1110 PR gdb/27435
1111 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1112 (target_unpush_up): Likewise.
1113 * procfs.c (procfs_target::attach): Push target early. Use
1114 target_unpush_up to unpush target in case of error.
1115 * target.h (struct target_unpusher): Move here.
1116 (target_unpush_up): Likewise.
1117
8488c357
KB
11182021-02-19 Kevin Buettner <kevinb@redhat.com>
1119
1120 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1121 (which in turn includes <gnulib/config.h>) before include
1122 of <signal.h>.
1123
5a9f5403
NC
11242021-02-19 Nelson Chu <nelson.chu@sifive.com>
1125
1126 PR 27158
1127 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1128 (decode_j_type_insn): Likewise.
1129 (decode_cj_type_insn): Likewise.
1130 (decode_b_type_insn): Likewise.
1131 (decode): Likewise.
1132
26f53cd3
TT
11332021-02-18 Tom Tromey <tom@tromey.com>
1134
1135 * expression.h (struct expression) <evaluate>: Declare method.
1136 * eval.c (evaluate_subexp): Simplify.
1137 (expression::evaluate): New method.
1138 (evaluate_expression, evaluate_type): Use expression::evaluate.
1139
6a780b67
KB
11402021-02-17 Kevin Buettner <kevinb@redhat.com>
1141
1142 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1143 to accessing it.
1144 (ada_lookup_name_info): Likewise.
1145
adeab0c5
MF
11462021-02-13 Mike Frysinger <vapier@gentoo.org>
1147
1148 * aclocal.m4: Regenerate.
1149
089436f7
TV
11502021-02-12 Tom de Vries <tdevries@suse.de>
1151
1152 PR threads/26228
1153 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1154 (lin_thread_signals): New static var.
1155 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1156 New function.
1157 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1158 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1159 Declare.
1160 * linux-thread-db.c (check_thread_signals): Use
1161 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1162
96df3e28
AB
11632021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * f-exp.y (f77_keywords): Add allocated.
1166 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1167 (operator_length_f): Likewise.
1168 (print_subexp_f): Likewise.
1169 (dump_subexp_body_f): Likewise.
1170 (operator_check_f): Likewise.
1171 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1172
05f68f52
TV
11732021-02-11 Tom de Vries <tdevries@suse.de>
1174
1175 PR symtab/27353
1176 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1177 Return true for DW_FORM_strx.
1178
b260f8d6
TT
11792021-02-11 Tom Tromey <tromey@adacore.com>
1180
1181 PR gdb/27383:
1182 * parse.c (write_exp_symbol_reference): Write sym.block.
1183
bf3386f0
AB
11842021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * NEWS: Mention changes to 'maint info sections'.
1187 * maint.c (match_substring): Return a bool, fix whitespace issue.
1188 (struct single_bfd_flag_info): New struct.
1189 (bfd_flag_info): New static global.
1190 (match_bfd_flags): Return a bool, use bfd_flag_info.
1191 (print_bfd_flags): Use bfd_flag_info.
1192 (maint_print_section_info): Delete trailing whitespace.
1193 (struct maint_info_sections_opts): New struct.
1194 (maint_info_sections_option_defs): New static global.
1195 (maint_info_sections_completer): New function.
1196 (maintenance_info_sections): Use option parsing mechanism.
1197 (_initialize_maint_cmds): Update command help text for 'maint info
1198 sections' and register a command completer.
1199
4790db14
AB
12002021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1201
1202 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1203 functionality merged into...
1204 (maint_print_all_sections): ...this new function.
1205 (maintenance_info_sections): Make use of maint_print_all_sections,
1206 allow all objects to be printed even where there's no executable.
1207
1db66e34
AB
12082021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * breakpoint.c (resolve_sal_pc): Make use of
1211 bound_minimal_symbol::obj_section.
1212 * maint.c (maintenance_translate_address): Likewise.
1213 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1214 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1215 member function.
1216 * printcmd.c (info_address_command): Make use of
1217 bound_minimal_symbol::obj_section.
1218
18b8df43
AM
12192021-02-11 Alan Modra <amodra@gmail.com>
1220
1221 * arm-symbian-tdep.c: Delete.
1222 * NEWS: Mention arm-symbian removal.
1223 * Makefile.in: Remove arm-symbian-tdep entries.
1224 * configure.tgt: Remove arm*-*-symbianelf*.
1225 * doc/gdb.texinfo: Remove mention of SymbianOS.
1226 * osabi.c (gdb_osabi_names): Remove "Symbian".
1227 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1228 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1229 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1230 handling.
1231 * testsuite/gdb.base/dup-sect.exp: Likewise.
1232 * testsuite/gdb.base/long_long.exp: Likewise.
1233 * testsuite/gdb.base/solib-weak.exp: Likewise.
1234 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1235 * testsuite/gdb.python/py-section-script.exp: Likewise.
1236 * testsuite/lib/dwarf.exp: Likewise.
1237 * testsuite/lib/gdb.exp: Likewise.
1238
e92c8eb8
AB
12392021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1240
1241 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1242 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1243 (one_or_two_args): New pattern.
1244 (f77_keywords): Add lbound and ubound.
1245 * f-lang.c (fortran_bounds_all_dims): New function.
1246 (fortran_bounds_for_dimension): New function.
1247 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1248 (operator_length_f): Likewise.
1249 (print_subexp_f): Likewise.
1250 (dump_subexp_body_f): Likewise.
1251 (operator_check_f): Likewise.
1252 * std-operator.def (FORTRAN_LBOUND): Define.
1253 (FORTRAN_UBOUND): Define.
1254
a52d653e
AB
12552021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1256
1257 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1258 and set_section_index member functions where appropriate.
1259 * coffread.c (coff_symtab_read): Likewise.
1260 (process_coff_symbol): Likewise.
1261 * ctfread.c (set_symbol_address): Likewise.
1262 * dwarf2/read.c (add_partial_symbol): Likewise.
1263 (var_decode_location): Likewise.
1264 * language.c: Likewise.
1265 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1266 (compact_minimal_symbols): Likewise.
1267 (minimal_symbol_upper_bound): Likewise.
1268 * objfiles.c (relocate_one_symbol): Likewise.
1269 * psympriv.h (partial_symbol::obj_section): Likewise.
1270 (partial_symbol::address): Likewise.
1271 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1272 * stabsread.c (scan_file_globals): Likewise.
1273 * symmisc.c (dump_msymbols): Likewise.
1274 * symtab.c (general_symbol_info::obj_section): Likewise.
1275 (fixup_section): Likewise.
1276 (get_msymbol_address): Likewise.
1277 * symtab.h (general_symbol_info::section): Rename to...
1278 (general_symbol_info::m_section): ...this.
1279 (general_symbol_info::set_section_index): New member function.
1280 (general_symbol_info::section_index): Likewise.
1281 (SYMBOL_SECTION): Delete.
1282 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1283 set_section_index member functions where appropriate.
1284 (MSYMBOL_SECTION): Delete.
1285 (symbol::symbol): Update to initialize 'm_section'.
1286 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1287 (process_xcoff_symbol): Likewise.
1288
ebbc3a7d
AB
12892021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1292 MSYMBOL_OBJ_SECTION.
1293 * findvar.c (language_defn::read_var_value): Likewise.
1294 * infcmd.c (jump_command): Likewise.
1295 * linespec.c (minsym_found): Likewise.
1296 * maint.c (maintenance_translate_address): Likewise.
1297 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1298 (minimal_symbol_upper_bound): Likewise.
1299 * parse.c (find_minsym_type_and_address): Likewise.
1300 (operator_check_standard): Likewise.
1301 * printcmd.c (info_address_command): Likewise.
1302 * symmisc.c (dump_msymbols): Likewise.
1303 (print_symbol): Likewise.
1304 * symtab.c (general_symbol_info::obj_section): Define new
1305 function.
1306 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1307 (find_pc_sect_compunit_symtab): Likewise.
1308 (find_function_start_sal): Likewise.
1309 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1310 MSYMBOL_OBJ_SECTION.
1311 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1312 function.
1313 (SYMBOL_OBJ_SECTION): Delete.
1314 (MSYMBOL_OBJ_SECTION): Delete.
1315
9bb305b3
TT
13162021-02-09 Tom Tromey <tom@tromey.com>
1317
1318 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1319
cf2b2075
TV
13202021-02-09 Tom de Vries <tdevries@suse.de>
1321
1322 PR symtab/27341
1323 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1324 construct an array type. Add assert to ensure that element_type is
1325 not being modified.
1326
03642b71
AB
13272021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1330 (gcore_collect_regset_section_cb): Delete.
1331 (gcore_collect_thread_registers): Delete.
1332 (gcore_build_thread_register_notes): Delete.
1333 (gcore_find_signalled_thread): Delete.
1334 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1335 'gdbarch' and 'thread_info' declarations.
1336 (gcore_build_thread_register_notes): Delete declaration.
1337 (gcore_find_signalled_thread): Likewise.
1338 * fbsd-tdep.c: Remove 'gcore.h' include.
1339 (struct fbsd_collect_regset_section_cb_data): New struct.
1340 (fbsd_collect_regset_section_cb): New function.
1341 (fbsd_collect_thread_registers): New function.
1342 (struct fbsd_corefile_thread_data): New struct.
1343 (fbsd_corefile_thread): New function.
1344 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1345 * linux-tdep.c: Remove 'gcore.h' include.
1346 (struct linux_collect_regset_section_cb_data): New struct.
1347 (linux_collect_regset_section_cb): New function.
1348 (linux_collect_thread_registers): New function.
1349 (linux_corefile_thread): Call Linux specific code.
1350 (find_signalled_thread): New function.
1351 (linux_make_corefile_notes): Call find_signalled_thread.
1352
f73e424f
TT
13532021-02-09 Tom Tromey <tromey@adacore.com>
1354
1355 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1356 not_lval value.
1357 * value.c (value_contents_copy_raw): Now static.
1358 * value.h (value_contents_copy_raw): Don't declare.
1359
a4f0544b
TT
13602021-02-09 Tom Tromey <tromey@adacore.com>
1361
1362 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1363 fields.
1364
9b3e4b5d
SV
13652021-02-08 Shahab Vahedi <shahab@synopsys.com>
1366
1367 PR tdep/27369
1368 * arc-linux-tdep.c (handle_atomic_sequence): New.
1369 (arc_linux_software_single_step): Call handle_atomic_sequence().
1370
29db1eb3
AB
13712021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1374 function.
1375 (REQUIRE_WINDOW): Call is_valid member function.
1376 (REQUIRE_WINDOW_FOR_SETTER): New define.
1377 (gdbpy_tui_is_valid): Call is_valid member function.
1378 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1379 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1380 tui_active too.
1381 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1382 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1383 the function.
1384
e0c23e11
AB
13852021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1388 for the title is not nullptr.
1389
1cf23996
AB
13902021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * tui-layout.c (saved_tui_windows): Delete.
1393 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1394 call new get_windows member function instead.
1395 (tui_get_window_by_name): Check in tui_windows.
1396 (tui_layout_window::apply): Don't add to tui_windows.
1397 * tui-layout.h (tui_layout_base::get_windows): New member function.
1398 (tui_layout_window::get_windows): Likewise.
1399 (tui_layout_split::get_windows): Likewise.
1400
a53a2657
AB
14012021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1402
1403 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1404 of the window objects.
1405
2708dbbd
AB
14062021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * python/python.c (gdbpy_print_stack): Reformat an error message.
1409
cd074e04
AB
14102021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1411
1412 * tui/tui-interp.c (tui_command_line_handler): New function.
1413 (tui_interp::resume): Register tui_command_line_handler as the
1414 input_handler.
1415 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1416 function.
1417 (tui_getc_1): Delete handling of '\n' and '\r'.
1418 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1419
4cf28e91
HD
14202021-02-07 Hannes Domani <ssbssa@yahoo.de>
1421
1422 * tui/tui-regs.c (tui_data_window::display_registers_from):
1423 Mark invisible register sub windows.
1424 (tui_data_window::check_register_values): Ignore invisible
1425 register sub windows.
1426
3537bc23
HD
14272021-02-07 Hannes Domani <ssbssa@yahoo.de>
1428
1429 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1430 n_spaces with a negative value.
1431
5fc2d6aa
HD
14322021-02-07 Hannes Domani <ssbssa@yahoo.de>
1433
1434 * tui/tui-regs.c (tui_data_window::display_registers_from):
1435 Add refresh_window call.
1436
83962f83
HD
14372021-02-07 Hannes Domani <ssbssa@yahoo.de>
1438
1439 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1440
0110ec82
SM
14412021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1442
1443 * symmisc.c (std_in, std_out, std_err): Remove.
1444 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1445
7c6944ab
TV
14462021-02-05 Tom de Vries <tdevries@suse.de>
1447
1448 PR breakpoints/27330
1449 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1450 glibc object file has debug info.
1451
e77b0004
TV
14522021-02-05 Tom de Vries <tdevries@suse.de>
1453
1454 PR symtab/27333
1455 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1456
0e857c82
TV
14572021-02-05 Tom de Vries <tdevries@suse.de>
1458
1459 PR breakpoints/27313
1460 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1461 syscall numbers.
1462
bdfea17e
TT
14632021-02-05 Tom Tromey <tom@tromey.com>
1464
1465 * compile/compile-c-support.c (get_compile_context)
1466 (c_get_compile_context, cplus_get_compile_context): Change return
1467 type.
1468 * language.c (language_defn::get_compile_instance): New method.
1469 * language.h (language_defn::get_compile_instance): Change return
1470 type. No longer inline.
1471 * c-lang.c (c_language::get_compile_instance): Change return type.
1472 (cplus_language::get_compile_instance): Change return type.
1473 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1474 Change return type.
1475 * compile/compile.c (compile_to_object): Update.
1476
1b30f421
TT
14772021-02-05 Tom Tromey <tom@tromey.com>
1478
1479 * parser-defs.h (write_exp_symbol_reference): Declare.
1480 * parse.c (write_exp_symbol_reference): New function.
1481 * p-exp.y (variable): Use write_exp_symbol_reference.
1482 * m2-exp.y (variable): Use write_exp_symbol_reference.
1483 * f-exp.y (variable): Use write_exp_symbol_reference.
1484 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1485 * c-exp.y (variable): Use write_exp_symbol_reference.
1486
ae710496
TV
14872021-02-05 Tom de Vries <tdevries@suse.de>
1488
1489 PR exp/27265
1490 * valarith.c (complex_binop): Throw an error if complex type can't
1491 be created.
1492
d3b54e63
TV
14932021-02-05 Tom de Vries <tdevries@suse.de>
1494
1495 PR symtab/27307
1496 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1497 return.
1498
fc9a13fb
TV
14992021-02-05 Tom de Vries <tdevries@suse.de>
1500
1501 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1502
04b4939b
MF
15032021-02-04 Mike Frysinger <vapier@gentoo.org>
1504
1505 * configure.tgt (riscv*-*-*): Set gdb_sim.
1506
6ff267e1
SM
15072021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * target.c (target_is_non_stop_p): Return bool.
1510 * target.h (target_is_non_stop_p): Return bool.
1511
fdbc5215
SM
15122021-02-04 Simon Marchi <simon.marchi@efficios.com>
1513
1514 * record-full.c (record_full_async_inferior_event_handler):
1515 Don't clear async event handler.
1516 (record_full_base_target::wait): Clear async event handler at
1517 beginning.
1518
85d3ad8e
SM
15192021-02-04 Simon Marchi <simon.marchi@efficios.com>
1520
1521 * record-btrace.c (record_btrace_handle_async_inferior_event):
1522 Don't clear async event handler.
1523 (record_btrace_target::wait): Clear async event handler at
1524 beginning.
1525
baa8575b
SM
15262021-02-04 Simon Marchi <simon.marchi@efficios.com>
1527
1528 * remote.c (remote_target::wait): Clear async event handler at
1529 beginning, mark if needed at the end.
1530 (remote_async_inferior_event_handler): Don't set or clear async
1531 event handler.
1532
6b36ddeb
SM
15332021-02-04 Simon Marchi <simon.marchi@efficios.com>
1534
1535 * async-event.h (async_event_handler_func): Add documentation.
1536 * async-event.c (check_async_event_handlers): Don't clear
1537 async_event_handler ready flag.
1538 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1539 flag.
1540 * record-btrace.c (record_btrace_handle_async_inferior_event):
1541 Likewise.
1542 * record-full.c (record_full_async_inferior_event_handler):
1543 Likewise.
1544 * remote-notif.c (remote_async_get_pending_events_handler):
1545 Likewise.
1546 * remote.c (remote_async_inferior_event_handler): Likewise.
1547
72d383bb
SM
15482021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1549
1550 * infrun.c (handle_inferior_event): Move stop_soon variable to
1551 inner scope.
1552
408f6686
PA
15532021-02-03 Pedro Alves <pedro@palves.net>
1554
1555 * infcmd.c (detach_command): Hold strong reference to target, and
1556 if all-stop on entry, restart threads on exit.
1557 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1558 (restart_stepped_thread): ... this new function. Also handle
1559 trap_expected.
1560 (restart_after_all_stop_detach): New function.
1561 * infrun.h (restart_after_all_stop_detach): Declare.
1562
ac7d717c
PA
15632021-02-03 Pedro Alves <pedro@palves.net>
1564
1565 * infrun.c (struct step_over_info): Initialize fields.
1566 (prepare_for_detach): Handle ongoing in-line step over.
1567
e87f0fe8
PA
15682021-02-03 Pedro Alves <pedro@palves.net>
1569
1570 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1571 here...
1572 * remote.c (remote_target::remote_detach_1): ... and here ...
1573 * target.c (target_detach): ... instead of here.
1574 * target.h (target_ops::detach): Add comment.
1575
8ff53139
PA
15762021-02-03 Pedro Alves <pedro@palves.net>
1577
1578 * infrun.c (struct wait_one_event): Move higher up.
1579 (prepare_for_detach): Abort in-progress displaced steps instead of
1580 letting them complete.
1581 (handle_one): If the inferior is detaching, don't add the thread
1582 back to the global step-over chain.
1583 (restart_threads): Don't restart threads if detaching.
1584 (handle_signal_stop): Remove inferior::detaching reference.
1585
91475068
PA
15862021-02-03 Pedro Alves <pedro@palves.net>
1587
1588 * infrun.c (prepare_for_detach): Don't release scoped_restore
1589 before returning.
1590
d758e62c
PA
15912021-02-03 Pedro Alves <pedro@palves.net>
1592
1593 * infrun.c (handle_one): New function, factored out from ...
1594 (stop_all_threads): ... here.
1595
b0083dd7
PA
15962021-02-03 Pedro Alves <pedro@palves.net>
1597
1598 * remote.c (remote_notif_stop_ack): Don't error out on
1599 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1600 (remote_target::discard_pending_stop_replies): Don't delete
1601 in-flight notification; instead, clear its contents.
1602
621cc310
PA
16032021-02-03 Pedro Alves <pedro@palves.net>
1604
1605 * remote.c (extended_remote_target::attach): Set target async in
1606 the target-non-stop path too.
1607
2ab76a18
PA
16082021-02-03 Pedro Alves <pedro@palves.net>
1609
1610 PR gdb/27055
1611 * infrun.c (handle_signal_stop): Move main context_switch call
1612 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1613
2e3773ff
LS
16142021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1615
1616 * NEWS (Changed commands): Add entry for the behavior change of
1617 the inferior command.
1618 * inferior.c (inferior_command): When no argument is given to the
1619 inferior command, display info about the currently selected
1620 inferior.
1621
e57933dc
SM
16222021-02-02 Simon Marchi <simon.marchi@efficios.com>
1623
1624 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1625 a sect_offset.
1626 (read_attribute_reprocess): Adjust.
1627
2b0c7f41
SM
16282021-02-02 Simon Marchi <simon.marchi@efficios.com>
1629
1630 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1631 <gnu_ranges_base>: ... this...
1632 <rnglists_base>: ... and this.
1633 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1634 <gnu_ranges_base>: ... this...
1635 <rnglists_base>: ... and this.
1636 (read_cutu_die_from_dwo): Adjust
1637 (dwarf2_get_pc_bounds): Adjust
1638 (dwarf2_record_block_ranges): Adjust.
1639 (read_full_die_1): Adjust
1640 (partial_die_info::read): Adjust.
1641 (read_rnglist_index): Adjust.
1642
a1c40103
SM
16432021-02-02 Simon Marchi <simon.marchi@efficios.com>
1644
1645 PR gdb/26813
1646 * dwarf2/read.c (read_loclists_rnglists_header): Add
1647 header_offset parameter and use it.
1648 (read_loclist_index): Read header of the current contribution,
1649 not the one at the beginning of the section.
1650 (read_rnglist_index): Likewise.
1651
b1829e1b
SM
16522021-02-02 Simon Marchi <simon.marchi@efficios.com>
1653
1654 PR gdb/26813
1655 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1656 requires_reprocessing flag.
1657 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1658 DW_FORM_loclistx.
1659 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1660 and DW_FORM_loclistx.
1661 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1662 instead of set_address for DW_FORM_loclistx and
1663 DW_FORM_rnglistx.
1664
0c800c6e
SM
16652021-02-02 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * dwarf2/read.c (read_loclist_index): Remove bound check for
1668 start of offset.
1669 (read_rnglist_index): Likewise.
1670
05787bad
SM
16712021-02-02 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1674 of the offset.
1675
5e4d9bbc
SM
16762021-02-02 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1679
a0c1eeba
SM
16802021-02-02 Simon Marchi <simon.marchi@efficios.com>
1681
1682 * dwarf2/read.c (read_loclist_index): Change complaints into
1683 errors.
1684
2bd3e4b8
TV
16852021-02-02 Tom de Vries <tdevries@suse.de>
1686
1687 PR symtab/24620
1688 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1689 psymtab == nullptr.
1690
82a1fd3a
AB
16912021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1694 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1695 here from linux-tdep.c and given a new name. Minor cleanups.
1696 (gcore_collect_regset_section_cb): Likewise.
1697 (gcore_collect_thread_registers): Likewise.
1698 (gcore_build_thread_register_notes): Likewise.
1699 (gcore_find_signalled_thread): Likewise.
1700 * gcore.h (gcore_build_thread_register_notes): Declare.
1701 (gcore_find_signalled_thread): Declare.
1702 * fbsd-tdep.c: Add 'gcore.h' include.
1703 (struct fbsd_collect_regset_section_cb_data): Delete.
1704 (fbsd_collect_regset_section_cb): Delete.
1705 (fbsd_collect_thread_registers): Delete.
1706 (struct fbsd_corefile_thread_data): Delete.
1707 (fbsd_corefile_thread): Delete.
1708 (fbsd_make_corefile_notes): Call
1709 gcore_build_thread_register_notes instead of the now deleted
1710 FreeBSD code.
1711 * linux-tdep.c: Add 'gcore.h' include.
1712 (struct linux_collect_regset_section_cb_data): Delete.
1713 (linux_collect_regset_section_cb): Delete.
1714 (linux_collect_thread_registers): Delete.
1715 (linux_corefile_thread): Call
1716 gcore_build_thread_register_notes.
1717 (find_signalled_thread): Delete.
1718 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1719
ebde6f2d
TV
17202021-01-29 Tom de Vries <tdevries@suse.de>
1721
1722 PR breakpoints/26063
1723 * infrun.c (process_event_stop_test): Reset
1724 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1725 changed.
1726
0f93c3a2
AB
17272021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1728
1729 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1730 assert. Extend the header comment.
1731
f237f998
AB
17322021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1733
1734 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1735 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1736 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1737 (tui_locator_win_info_ptr): Delete declaration.
1738 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1739 (tui_disasm_window::set_contents): Fetch state from tui_location
1740 global.
1741 (tui_get_begin_asm_address): Likewise.
1742 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1743 for locator window.
1744 (get_locator_window): Delete.
1745 (initialize_known_windows): Treat locator window just like all the
1746 rest.
1747 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1748 (tui_source_window::set_contents): Fetch state from tui_location
1749 global.
1750 (tui_source_window::showing_source_p): Likewise.
1751 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1752 (_locator): Delete.
1753 (tui_locator_win_info_ptr): Delete.
1754 (tui_locator_window::make_status_line): Fetch state from
1755 tui_location global.
1756 (tui_locator_window::rerender): Remove check of 'handle',
1757 reindent function body.
1758 (tui_locator_window::set_locator_fullname): Delete.
1759 (tui_locator_window::set_locator_info): Delete.
1760 (tui_update_locator_fullname): Delete.
1761 (tui_show_frame_info): Likewise.
1762 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1763 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1764 tui/tui-location.h and renamed to
1765 tui_location_tracker::set_location.
1766 (tui_locator_window::set_locator_fullname): Moved to
1767 tui/tui-location.h and renamed to
1768 tui_location_tracker::set_fullname.
1769 (tui_locator_window::full_name): Delete.
1770 (tui_locator_window::proc_name): Delete.
1771 (tui_locator_window::line_no): Delete.
1772 (tui_locator_window::addr): Delete.
1773 (tui_locator_window::gdbarch): Delete.
1774 (tui_update_locator_fullname): Delete declaration.
1775 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1776 for locator window.
1777 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1778 (tui_display_main): Call function on tui_location directly.
1779 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1780 * tui/tui-location.c: New file.
1781 * tui/tui-location.h: New file.
1782
8ee511af
SM
17832021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1784
1785 * gdbtypes.h (get_type_arch): Rename to...
1786 (struct type) <arch>: ... this, update all users.
1787
6ac37371
SM
17882021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1789
1790 * gdbtypes.h (struct type) <arch>: Rename to...
1791 <arch_owner>: ... this, update all users.
1792 <objfile>: Rename to...
1793 <objfile_owner>: ... this, update all users.
1794
24cf6389
AB
17952021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1796
1797 * gdbcmd.h (execute_command_to_string): Update comment.
1798 * top.c (execute_command_to_string): Update header comment.
1799
2a7f6487
TV
18002021-01-28 Tom de Vries <tdevries@suse.de>
1801
1802 PR breakpoints/27205
1803 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1804 (create_longjmp_master_breakpoint_names): New function, factored out
1805 of ...
1806 (create_longjmp_master_breakpoint): ... here. Only try to install
1807 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1808 breakpoint in libc.so failed.
1809
59b59f08
LS
18102021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1811
1812 PR gdb/27133
1813 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1814 unique_ptr is released when the wrapped pointer is kept for later
1815 use.
1816
807f647c
MM
18172021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1818
1819 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1820 BLR and BR instructions.
1821 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1822 (enum aarch64_masks): New.
1823
4ef367bf
TT
18242021-01-26 Tom Tromey <tromey@adacore.com>
1825
1826 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1827 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1828 (windows_init_thread_list, windows_nat::handle_load_dll)
1829 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1830 (windows_nat_target::resume)
1831 (windows_nat_target::get_windows_debug_event)
1832 (windows_nat_target::interrupt, windows_xfer_memory)
1833 (windows_nat_target::close): Update.
1834 * nat/windows-nat.c (DEBUG_EVENTS): Use
1835 debug_prefixed_printf_cond.
1836 (matching_pending_stop, fetch_pending_stop)
1837 (continue_last_debug_event): Update.
1838
4cb1265b
MS
18392020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1840
1841 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1842 elfcore_write_file_note.
1843
d0cc52bd
SV
18442021-01-26 Shahab Vahedi <shahab@synopsys.com>
1845
1846 * arc-tdep.c (arc_add_reggroups): New function.
1847 (arc_gdbarch_init): Call arc_add_reggroups.
1848
ac3571d9 18492021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
1850
1851 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1852
9f6c202e
TV
18532021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1854 Simon Marchi <simon.marchi@polymtl.ca>
1855 Tom de Vries <tdevries@suse.de>
1856
1857 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1858 DW_AT_ranges.
1859
a625a8c9
TT
18602021-01-25 Tom Tromey <tromey@adacore.com>
1861
1862 * dwarf2/read.c (get_mpz): New function.
1863 (get_dwarf2_rational_constant): Use it.
1864
19184910
TT
18652021-01-25 Tom Tromey <tromey@adacore.com>
1866
1867 * ada-lang.c (resolve_subexp): Handle array context.
1868
b10bae18
TT
18692021-01-23 Tom Tromey <tom@tromey.com>
1870
1871 PR compile/25575
1872 * compile/compile-loc2c.c (note_register): New function.
1873 (pushf_register_address, pushf_register): Use it.
1874
3637a558
TT
18752021-01-23 Tom Tromey <tom@tromey.com>
1876
1877 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1878 Change type of "registers_used".
1879 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1880 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1881 (locexpr_generate_c_location, loclist_generate_c_location): Change
1882 type of "registers_used".
1883 * compile/compile.h (compile_dwarf_expr_to_c)
1884 (compile_dwarf_bounds_to_c): Update.
1885 * compile/compile-loc2c.c (pushf_register_address)
1886 (pushf_register, do_compile_dwarf_expr_to_c)
1887 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
1888 of "registers_used".
1889 * compile/compile-c.h (generate_c_for_variable_locations):
1890 Update.
1891 * compile/compile-c-symbols.c (generate_vla_size)
1892 (generate_c_for_for_one_variable): Change type of
1893 "registers_used".
1894 (generate_c_for_variable_locations): Return std::vector.
1895 * compile/compile-c-support.c (generate_register_struct): Change
1896 type of "registers_used".
1897 (compute): Update.
1898
9f7f6cb8
TT
18992021-01-23 Tom Tromey <tom@tromey.com>
1900
1901 * compile/compile-internal.h (class compile_instance)
1902 <set_arguments>: Change return type.
1903 * compile/compile.c (compile_to_object): Remove call to reset.
1904 (compile_instance::set_arguments): Change return type.
1905
dd5ca05f
SM
19062021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1909 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1910
d3ee35db
LS
19112021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1912
1913 * Makefile.in (SELFTESTS_SRCS): Add
1914 unittests/gdb_tilde_expand-selftests.c.
1915 * unittests/gdb_tilde_expand-selftests.c: New file.
1916
9d2d8a16
AB
19172021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1918
1919 PR cli/25956
1920 * NEWS: Mention new command.
1921 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1922 (version_style): Define.
1923 (cli_style_option::cli_style_option): Add intensity parameter, and
1924 use as appropriate.
1925 (_initialize_cli_style): Register version style set/show commands.
1926 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1927 (version_style): Declare.
1928 * top.c (print_gdb_version): Use version_stype, and styled_string
1929 to print the GDB version string.
1930
e7b43072
AB
19312021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * utils.c (emit_style_escape): Only emit an escape sequence if the
1934 requested style is different than the current applied style.
1935 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1936 current applied_style.
1937 (fputs_styled): Remove is_default check.
1938 (fputs_styled_unfiltered): Likewise.
1939 (vfprintf_styled_no_gdbfmt): Likewise.
1940
2189c312
SM
19412021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1942
1943 * remote.h (remote_debug_printf): New.
1944 (remote_debug_printf_nofunc): New.
1945 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1946 * remote.c: Use above macros throughout file.
1947
02349803
SM
19482021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1949
1950 * remote.h (remote_debug): Change to bool.
1951 * remote.c (remote_debug): Change to bool.
1952 (_initialize_remote): Adjust.
1953
cda09ec9
SM
19542021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1955
1956 * target.h (remote_debug): Move to...
1957 * remote.h (remote_debug): ... here.
1958 * top.c (remote_debug): Move to...
1959 * remote.c (remote_debug): ... here.
1960 * remote-sim.c: Include remote.h.
1961
baf2b57f
SM
19622021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1963
1964 * cli/cli-cmds.c (show_remote_debug): Remove.
1965 (show_remote_timeout): Remove.
1966 (_initialize_cli_cmds): Don't register commands.
1967 * remote.c (show_remote_debug): Move here.
1968 (show_remote_timeout): Move here.
1969 (_initialize_remote): Register commands.
1970
344e9841
SM
19712021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1972
1973 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
1974 type::objfile method instead.
1975
30625020
SM
19762021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1977
1978 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
1979 use the type::is_objfile_owned method.
1980
5b7d941b
SM
19812021-01-22 Simon Marchi <simon.marchi@efficios.com>
1982
1983 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
1984 (TYPE_OWNER): Remove.
1985 (TYPE_OBJFILE): Adjust.
1986 (struct main_type) <flag_objfile_owned>: Rename to...
1987 <m_flag_objfile_owned>: ... this.
1988 <owner>: Rename to...
1989 <m_owner>: ... this.
1990 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
1991 methods.
1992 (TYPE_ALLOC): Adjust.
1993 * gdbtypes.c (alloc_type): Adjust.
1994 (alloc_type_arch): Adjust.
1995 (alloc_type_copy): Adjust.
1996 (get_type_arch): Adjust.
1997 (smash_type): Adjust.
1998 (lookup_array_range_type): Adjust.
1999 (recursive_dump_type): Adjust.
2000 (copy_type_recursive): Adjust.
2001 * compile/compile-c-types.c (convert_func): Adjust.
2002 (convert_type_basic): Adjust.
2003 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2004 Adjust.
2005 * language.c
2006 (language_arch_info::type_and_symbol::alloc_type_symbol):
2007 Adjust.
2008
d5d24e12
LM
20092021-01-21 Luis Machado <luis.machado@linaro.org>
2010
2011 * coffread.c (enter_linenos): Passing string to complaint.
2012 * valops.c (value_assign): Make array view.
2013
a59902a7
SM
20142021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2015
2016 * auto-load.h (debug_auto_load): Move here.
2017 (auto_load_debug_printf): New.
2018 * auto-load.c: Use auto_load_debug_printf.
2019 (debug_auto_load): Move to header.
2020 * linux-thread-db.c (try_thread_db_load): Use
2021 auto_load_debug_printf.
2022 * main.c (captured_main_1): Likewise.
2023
d3abc0ce
SM
20242021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2025
2026 * f-valprint.c (f77_array_offset_tbl): Remove.
2027
1e15fcac
SM
20282021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2029
2030 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2031
439706e6
SM
20322021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2033
2034 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2035 of gdb_select.
2036
325d39e4
HD
20372021-01-21 Hannes Domani <ssbssa@yahoo.de>
2038
2039 PR python/19151
2040 * python/py-breakpoint.c (bppy_get_location): Handle
2041 bp_hardware_breakpoint.
2042 (bppy_init): Likewise.
2043 (gdbpy_breakpoint_created): Likewise.
2044
7cb6d92a
SM
20452021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2046
2047 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2048
d4dd4fca
SM
20492021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2050
2051 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2052 (_initialize_gdb_bfd): Adjust.
2053
de53369b
SM
20542021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2055
2056 PR gdb/26828
2057 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2058
17e593e9
SM
20592021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2060
2061 * dwarf2/read.c (follow_die_offset): Add logging.
2062 (dwarf2_per_objfile::age_comp_units): Add logging.
2063
6bd434d6
SM
20642021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2065
2066 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2067 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2068 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2069 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2070 * arm-tdep.c (struct frame_unwind): Make static.
2071 * auto-load.c (auto_load_safe_path_vec): Make static.
2072 * csky-tdep.c (csky_stub_unwind): Make static.
2073 * gdbarch.c (gdbarch_data_registry): Make static.
2074 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2075 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2076 * i386-tdep.c (i386_frame_setup_skip_insns,
2077 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2078 Make static.
2079 * infrun.c (observer_mode): Make static.
2080 * linux-nat.c (sigchld_action): Make static.
2081 * linux-thread-db.c (thread_db_list): Make static.
2082 * maint-test-options.c (maintenance_test_options_list):
2083 * mep-tdep.c (mep_csr_registers): Make static.
2084 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2085 (stats): Make static.
2086 * nat/linux-osdata.c (struct osdata_type): Make static.
2087 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2088 * progspace.c (last_program_space_num): Make static.
2089 * python/py-param.c (struct parm_constant): Remove struct type
2090 name.
2091 (parm_constants): Make static.
2092 * python/py-record-btrace.c (btpy_list_methods): Make static.
2093 * python/py-record.c (recpy_gap_type): Make static.
2094 * record.c (record_goto_cmdlist): Make static.
2095 * regcache.c (regcache_descr_handle): Make static.
2096 * registry.h (DEFINE_REGISTRY): Make definition static.
2097 * symmisc.c (std_in, std_out, std_err): Make static.
2098 * top.c (previous_saved_command_line): Make static.
2099 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2100 static.
2101 * unittests/command-def-selftests.c (nr_duplicates,
2102 nr_invalid_prefixcmd, lists): Make static.
2103 * unittests/observable-selftests.c (test_notification): Make
2104 static.
2105 * unittests/optional/assignment/1.cc (counter): Make static.
2106 * unittests/optional/assignment/2.cc (counter): Make static.
2107 * unittests/optional/assignment/3.cc (counter): Make static.
2108 * unittests/optional/assignment/4.cc (counter): Make static.
2109 * unittests/optional/assignment/5.cc (counter): Make static.
2110 * unittests/optional/assignment/6.cc (counter): Make static.
2111
a6c11cbb
JS
21122021-01-20 Joel Sherrill <joel@rtems.org>
2113
2114 PR gdb/27219
2115 * remote.c (struct remote_thread_info) <resume_state>: Rename
2116 to...
2117 <get_resume_state>: ... this.
2118 (remote_target::resume): Adjust.
2119 (remote_target::commit_resume): Adjust.
2120 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2121
6f52fdf4
SDJ
21222021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2123 Tom Tromey <tom@tromey.com>
2124
2125 * stap-probe.c (stap_parse_single_operand): Handle '!'
2126 operator.
2127 (stap_parse_argument_conditionally): Likewise.
2128 Skip spaces after processing open-parenthesis sub-expression.
2129 (stap_parse_argument_1): Skip spaces after call to
2130 stap_parse_argument_conditionally.
2131 Handle case when right-side expression is a parenthesized
2132 sub-expression.
2133 Skip spaces after call to stap_parse_argument_1.
2134
1c3b85ad
LS
21352021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2136
2137 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2138
a9a87d35
LM
21392021-01-19 Luis Machado <luis.machado@linaro.org>
2140
2141 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2142 memory and save data.
2143 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2144 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2145 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2146 (trad_frame_value_bytes_p): Remove.
2147 (trad_frame_reset_saved_regs): Adjust documentation.
2148 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2149 constructor and reset the state of the registers.
2150 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2151 (trad_frame_value_bytes_p, trad_frame_set_value)
2152 (trad_frame_set_realreg, trad_frame_set_addr)
2153 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2154 (trad_frame_set_reg_realreg): Update to call member function.
2155 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2156 (trad_frame_get_prev_register): Likewise.
2157
2158 * aarch64-tdep.c (aarch64_analyze_prologue)
2159 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2160 (aarch64_prologue_prev_register): Update to use member functions.
2161 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2162 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2163 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2164 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2165 (arm_make_epilogue_frame_cache): Likewise.
2166 * avr-tdep.c (avr_frame_unwind_cache)
2167 (avr_frame_prev_register): Likewise.
2168 * cris-tdep.c (cris_scan_prologue): Likewise.
2169 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2170 * frv-tdep.c (frv_analyze_prologue): Likewise.
2171 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2172 * lm32-tdep.c (lm32_frame_cache): Likewise.
2173 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2174 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2175 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2176 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2177 (reset_saved_regs): Adjust to set realreg.
2178 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2179 call member functions.
2180 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2181 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2182 (s390_backchain_frame_unwind_cache): Likewise.
2183 * score-tdep.c (score7_analyze_prologue)
2184 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2185 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2186 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2187 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2188 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2189 * tilegx-tdep.c (tilegx_analyze_prologue)
2190 (tilegx_frame_cache): Likewise.
2191 * v850-tdep.c (v850_frame_cache): Likewise.
2192 * vax-tdep.c (vax_frame_cache): Likewise.
2193
bdec2917
LM
21942021-01-19 Luis Machado <luis.machado@linaro.org>
2195
2196 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2197 of buffer + length.
2198 (put_frame_register_bytes): Likewise.
2199 Adjust documentation.
2200 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2201 (safe_frame_unwind_memory): Likewise.
2202 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2203 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2204 gdb::array_view.
2205 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2206 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2207 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2208 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2209 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2210 * dwarf2/loc.c (rw_pieced_value): Likewise.
2211 * hppa-tdep.c (hppa_frame_cache): Likewise.
2212 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2213 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2214 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2215 (i386_linux_rt_sigtramp_start): Likewise.
2216 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2217 * i386-tdep.c (i386_register_to_value): Likewise.
2218 * i387-tdep.c (i387_register_to_value): Likewise.
2219 * ia64-tdep.c (ia64_register_to_value): Likewise.
2220 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2221 (m32r_linux_rt_sigtramp_start): Likewise.
2222 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2223 * m68k-tdep.c (m68k_register_to_value): Likewise.
2224 * mips-tdep.c (mips_register_to_value)
2225 (mips_value_to_register): Likewise.
2226 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2227 (ppcfbsd_sigtramp_frame_cache): Likewise.
2228 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2229 (ppcobsd_sigtramp_frame_cache): Likewise.
2230 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2231 (rs6000_register_to_value): Likewise.
2232 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2233 * tramp-frame.c (tramp_frame_start): Likewise.
2234 * valops.c (value_assign): Likewise.
2235
ccbe4c82
LM
22362021-01-19 Luis Machado <luis.machado@linaro.org>
2237
2238 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2239 array_view.
2240 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2241 instead of buffer and size.
2242 (trad_frame_set_reg_value_bytes): Likewise.
2243 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2244 (trad_frame_set_value_bytes): Likewise.
2245
0e7620dc
MF
22462021-01-18 Mike Frysinger <vapier@gentoo.org>
2247
2248 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2249
6a9ad81c
AB
22502021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2251
2252 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2253 (riscv_fbsd_gregset): Use riscv_supply_regset.
2254 (riscv_fbsd_fpregset): Likewise.
2255 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2256 (riscv_linux_fregset): Likewise.
2257 * riscv-tdep.c (riscv_supply_regset): Define new function.
2258 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2259
d3d7d1ba
TV
22602021-01-18 Tom de Vries <tdevries@suse.de>
2261
2262 PR tdep/27172
2263 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2264 New macro.
2265 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2266 for SEGV_BNDERR.
2267
aa2838cc
SM
22682021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2269
2270 * remote.c (class remote_target) <remote_hostio_send_command,
2271 remote_hostio_parse_result>: Constify parameter.
2272 (remote_hostio_parse_result): Likewise.
2273 (remote_target::remote_hostio_send_command): Adjust.
2274 (remote_target::remote_hostio_pread_vFile): Adjust.
2275 (remote_target::fileio_readlink): Adjust.
2276 (remote_target::fileio_fstat): Adjust.
2277
b5c8f22d
SM
22782021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2279
2280 * remote.c (remote_target::start_remote): Move wait_status to
2281 narrower scope.
2282
e3b2741b
SM
22832021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * remote.c (class remote_target):
2286 <add_current_inferior_and_thread>: Constify parameter.
2287 (stop_reply_extract_thread): Likewise.
2288 (remote_target::get_current_thread): Likewise.
2289 (remote_target::add_current_inferior_and_thread): Likewise.
2290
cecb1912
SM
22912021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2292
2293 * remote.c (class remote_target)
2294 <remote_unpack_thread_info_response,
2295 parse_threadlist_response>: Constify parameter and/or return
2296 value and or local variable.
2297 (stub_unpack_int): Likewise.
2298 (unpack_nibble): Likewise.
2299 (unpack_byte): Likewise.
2300 (unpack_int): Likewise.
2301 (unpack_string): Likewise.
2302 (unpack_threadid): Likewise.
2303 (remote_target::remote_unpack_thread_info_response): Likewise.
2304 (remote_target::parse_threadlist_response): Likewise.
2305
5a11fff0
AB
23062021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2307
2308 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2309
17e89137
LS
23102021-01-14 Lancelot Six <lsix@lancelotsix.com>
2311
2312 * MAINTAINERS (Write After Approval): Add myself.
2313
58eadc4b
BE
23142021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2315
2316 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2317 because is_trivially_default_constructible was first implemented with
2318 gcc-5.
2319
5fae2a2c
TV
23202021-01-14 Tom de Vries <tdevries@suse.de>
2321
2322 PR breakpoints/27151
2323 * objfiles.h (in_plt_section): Handle .plt.sec.
2324
8f66807b
AB
23252021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 PR gdb/26819
2328 * remote.c
2329 (remote_target::select_thread_for_ambiguous_stop_reply): New
2330 member function.
2331 (remote_target::process_stop_reply): Call
2332 select_thread_for_ambiguous_stop_reply.
2333
bd497355
SM
23342021-01-13 Simon Marchi <simon.marchi@efficios.com>
2335
2336 * record-btrace.c (class record_btrace_target): Remove.
2337 (record_btrace_target::commit_resume): Remove.
2338 * record-full.c (class record_full_target): Remove.
2339 (record_full_target::commit_resume): Remove.
2340
c9d22089
SM
23412021-01-13 Simon Marchi <simon.marchi@efficios.com>
2342
2343 * remote.c (enum class resume_state): New.
2344 (struct resumed_pending_vcont_info): New.
2345 (struct remote_thread_info) <resume_state, set_not_resumed,
2346 set_resumed_pending_vcont, resumed_pending_vcont_info,
2347 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2348 New.
2349 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2350 (remote_target::remote_add_thread): Adjust.
2351 (remote_target::process_initial_stop_replies): Adjust.
2352 (remote_target::resume): Adjust.
2353 (remote_target::commit_resume): Rely on state in
2354 remote_thread_info and not on tp->executing.
2355 (remote_target::process_stop_reply): Adjust.
2356
d8d1feb4
SM
23572021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2358
2359 * arc-tdep.h (arc_debug_printf): New.
2360 * arc-tdep.c: Use arc_debug_printf.
2361 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2362 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2363 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2364
fb0f5031
SM
23652021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2366
2367 * arc-tdep.h (arc_debug): Change type to bool.
2368 * arc-tdep.c (arc_debug): Change type to bool.
2369 (arc_analyze_prologue): Adjust.
2370 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2371 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2372
5bf7e91b
SM
23732021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2374
2375 * auto-load.c (auto_load_objfile_script_1): Use bool.
2376 (execute_script_contents): Use bool.
2377
db972fce
SM
23782021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2379
2380 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2381 comment here.
2382 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2383 comment to header.
2384 * extension-priv.h (struct extension_language_script_ops)
2385 <auto_load_enabled>: Return bool.
2386 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2387 comment here.
2388 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2389 comment to header.
2390 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2391 move comment here.
2392 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2393 move comment to header.
2394 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2395 move comment here.
2396 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2397 move comment to header.
2398
5e12f48f
SM
23992021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2400
2401 * auto-load.h (file_is_auto_load_safe): Change return type to
2402 bool, move comment here.
2403 * auto-load.c (file_is_auto_load_safe): Change return type and
2404 advice_printed to bool. Move comment to header.
2405
54ca9002
SM
24062021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2407
2408 * jit.c (jit_debug_printf): New, use throughout file.
2409
24a7f1b5
SM
24102021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * infrun.c (normal_stop): Fix indentation.
2413
fe7a351a
SM
24142021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2415
2416 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2417 declarations to ...
2418 * symfile.h: ... here.
2419 * symfile.c: Update doc.
2420
16e9019e
SM
24212021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2422
2423 * target.h (baud_rate, serial_parity): Move declarations...
2424 * serial.h: ... here.
2425 * main.c: Include serial.h.
2426 * serial.c (baud_rate, serial_parity): Update doc.
2427
b2f2ae0d
SM
24282021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2429
2430 * top.c (pre_init_ui_hook): Remove.
2431
5291fe3c
SP
24322021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2433
2434 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2435 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2436 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2437 * features/aarch64-fpu.xml: Add bfloat16 type.
2438
ce38f5ed
AB
24392021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2442
7c654b71
AB
24432021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2444
2445 * f-exp.y (dot_ops): Rename to...
2446 (fortran_operators): ...this. Add a header comment. Add symbol
2447 based operators.
2448 (yylex): Update to use fortran_operators not dot_ops. Remove
2449 special handling for '**', this is now included in
2450 fortran_operators.
2451
c6185dce
SM
24522021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2453
2454 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2455 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2456 * aarch64-tdep.c: Use aarch64_debug_printf.
2457
eef401dc
SM
24582021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2459
2460 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2461 file.
2462
062eaacb
SM
24632021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2464
2465 * jit.c (jit_debug): Change type to bool.
2466 (_initialize_jit): Adjust.
2467
54585eee
TT
24682021-01-09 Tom Tromey <tom@tromey.com>
2469
2470 PR compile/23672
2471 * compile/compile.c (compile_to_object): Avoid crash when
2472 osabi_triplet_regexp returns NULL.
2473
bc167b6b
TT
24742021-01-09 Tom Tromey <tom@tromey.com>
2475
2476 * tracepoint.h (class collection_list) <append_exp>: Take a
2477 std::string.
2478 * tracepoint.c (collection_list::append_exp): Take a std::string.
2479 (encode_actions_1): Update.
2480
8fc48b79
TT
24812021-01-08 Tom Tromey <tromey@adacore.com>
2482
2483 * parse.c (parse_expression): Add void_context_p parameter. Use
2484 parse_exp_in_context.
2485 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2486 parse_expression.
2487 (print_command, call_command): Update.
2488 * expression.h (parse_expression): Add void_context_p parameter.
2489
3c8c6de2
AB
24902021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2491
2492 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2493 for internalvar components that have a dynamic location.
2494
1940319c
TV
24952021-01-08 Tom de Vries <tdevries@suse.de>
2496
2497 PR gdb/26881
2498 * breakpoint.c (create_exception_master_breakpoint_probe)
2499 (create_exception_master_breakpoint_hook): Factor out
2500 of ...
2501 (create_exception_master_breakpoint): ... here. Only try to install
2502 the master exception breakpoint in objfile.debug using the
2503 _Unwind_DebugHook method, if the install using probes in objfile
2504 failed.
2505
e3436813
AB
25062021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2507
2508 * f-lang.c (fortran_value_subarray): Call value_from_component.
2509
e904f56d
MF
25102021-01-07 Mike Frysinger <vapier@gentoo.org>
2511
2512 * remote-sim.c: Include memory-map.h.
2513 (gdbsim_target): Define memory_map override.
2514 (gdbsim_target::memory_map): Define.
2515
959d6a67
TT
25162021-01-07 Tom Tromey <tromey@adacore.com>
2517
2518 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2519
d4813f10
TT
25202021-01-07 Tom Tromey <tromey@adacore.com>
2521
2522 * ada-lang.c (add_component_interval): Start loop using vector's
2523 updated size.
2524
b49180ac
TT
25252021-01-06 Tom Tromey <tromey@adacore.com>
2526
2527 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2528 Do not cast result.
2529 * valarith.c (fixed_point_binop): Handle multiplication
2530 and division specially.
2531 * valops.c (value_to_gdb_mpq): New function.
2532 (value_cast_to_fixed_point): Use it.
2533
55195361
HD
25342021-01-05 Hannes Domani <ssbssa@yahoo.de>
2535
2536 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2537 Call wnoutrefresh instead of tui_win_info::refresh_window.
2538
1b6d4bb2
HD
25392021-01-05 Hannes Domani <ssbssa@yahoo.de>
2540
2541 * tui/tui-source.c (tui_source_window::show_line_number):
2542 Redraw second space after line number.
2543
b5ff370e
HD
25442021-01-05 Hannes Domani <ssbssa@yahoo.de>
2545
2546 PR tui/26927
2547 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2548 Fix source pad size in prefresh.
2549 (tui_source_window_base::show_source_content): Grow source pad
2550 if necessary.
2551
c68ea49f
MF
25522021-01-04 Mike Frysinger <vapier@gentoo.org>
2553
2554 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2555 (bfin_frame_align): Use align_down.
2556
e4ad960a
TV
25572021-01-04 Tom de Vries <tdevries@suse.de>
2558
2559 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2560 terminators that do not terminate anything.
2561
3ec3145c
SM
25622021-01-04 Simon Marchi <simon.marchi@efficios.com>
2563
2564 * debug.c (debug_print_depth): New.
2565 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2566 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2567 * infrun.c (start_step_over): Use
2568 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2569 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2570 INFRUN_SCOPED_DEBUG_START_END.
2571 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2572
e71daf80
SM
25732021-01-04 Simon Marchi <simon.marchi@efficios.com>
2574
2575 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2576
335709bc
SM
25772021-01-04 Simon Marchi <simon.marchi@efficios.com>
2578
2579 * utils.c (vfprintf_unfiltered): Print timestamp only when
2580 previous debug output ended with a newline.
2581
098caef4
LM
25822021-01-04 Luis Machado <luis.machado@linaro.org>
2583
2584 Update all users of trad_frame_saved_reg to use the new member
2585 functions.
2586
2587 Remote all struct keywords from declarations of trad_frame_saved_reg
2588 types, except on forward declarations.
2589
2590 * aarch64-tdep.c: Update.
2591 * alpha-mdebug-tdep.c: Update.
2592 * alpha-tdep.c: Update.
2593 * arc-tdep.c: Update.
2594 * arm-tdep.c: Update.
2595 * avr-tdep.c: Update.
2596 * cris-tdep.c: Update.
2597 * csky-tdep.c: Update.
2598 * frv-tdep.c: Update.
2599 * hppa-linux-tdep.c: Update.
2600 * hppa-tdep.c: Update.
2601 * hppa-tdep.h: Update.
2602 * lm32-tdep.c: Update.
2603 * m32r-linux-tdep.c: Update.
2604 * m32r-tdep.c: Update.
2605 * m68hc11-tdep.c: Update.
2606 * mips-tdep.c: Update.
2607 * moxie-tdep.c: Update.
2608 * riscv-tdep.c: Update.
2609 * rs6000-tdep.c: Update.
2610 * s390-linux-tdep.c: Update.
2611 * s390-tdep.c: Update.
2612 * score-tdep.c: Update.
2613 * sparc-netbsd-tdep.c: Update.
2614 * sparc-sol2-tdep.c: Update.
2615 * sparc64-fbsd-tdep.c: Update.
2616 * sparc64-netbsd-tdep.c: Update.
2617 * sparc64-obsd-tdep.c: Update.
2618 * sparc64-sol2-tdep.c: Update.
2619 * tilegx-tdep.c: Update.
2620 * v850-tdep.c: Update.
2621 * vax-tdep.c: Update.
2622
2623 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2624 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2625
2626 * trad-frame.c: Update.
2627 Remove TF_REG_* enum.
2628 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2629 a trivially-constructible struct.
2630 (trad_frame_reset_saved_regs): Adjust to use member function.
2631 (trad_frame_value_p): Likewise.
2632 (trad_frame_addr_p): Likewise.
2633 (trad_frame_realreg_p): Likewise.
2634 (trad_frame_value_bytes_p): Likewise.
2635 (trad_frame_set_value): Likewise.
2636 (trad_frame_set_realreg): Likewise.
2637 (trad_frame_set_addr): Likewise.
2638 (trad_frame_set_unknown): Likewise.
2639 (trad_frame_set_value_bytes): Likewise.
2640 (trad_frame_get_prev_register): Likewise.
2641 * trad-frame.h: Update.
2642 (trad_frame_saved_reg_kind): New enum.
2643 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2644 <m_kind, m_reg>: New member fields.
2645 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2646 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2647 <is_addr, is_unknown, is_value_bytes>: New member functions.
2648
9898e882
SM
26492021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2650
2651 * target-float.c: Fix typos.
2652
b66b4e65
HD
26532021-01-02 Hannes Domani <ssbssa@yahoo.de>
2654
2655 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2656
b5b5650a
JB
26572021-01-01 Joel Brobecker <brobecker@adacore.com>
2658
2659 * gdbarch.sh: Update copyright year range.
2660
3666a048
JB
26612021-01-01 Joel Brobecker <brobecker@adacore.com>
2662
2663 Update copyright year range in copyright header of all GDB files.
2664
ff7e39b6
JB
26652021-01-01 Joel Brobecker <brobecker@adacore.com>
2666
2667 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2668 to the list of directories to update.
2669
2b47c078
JB
26702021-01-01 Joel Brobecker <brobecker@adacore.com>
2671
2672 * top.c (print_gdb_version): Update copyright year.
2673
476923f1 26742021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2675
476923f1 2676 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2677
476923f1 2678For older changes see ChangeLog-2020.
c906108c
SS
2679\f
2680Local Variables:
2681mode: change-log
2682left-margin: 8
2683fill-column: 74
2684version-control: never
57da7796 2685coding: utf-8
c906108c 2686End: