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