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