]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Implement Ada equality operators
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6e8fb7b7
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * ada-lang.c (ada_equal_binop): No longer static.
4 * ada-exp.h (class ada_binop_equal_operation): New.
5
d9e7db06
TT
62021-03-08 Tom Tromey <tom@tromey.com>
7
8 * ada-lang.c (ada_mult_binop): No longer static.
9 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
10 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
11
73796c73
TT
122021-03-08 Tom Tromey <tom@tromey.com>
13
14 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
15 * ada-exp.h (class ada_binop_addsub_operation): New.
16
cd9a3148
TT
172021-03-08 Tom Tromey <tom@tromey.com>
18
19 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
20 (ada_resolve_variable): Declare.
21 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
22 (ada_resolve_variable): New functions.
23 (resolve_subexp): Update.
24
cf12b17f
TT
252021-03-08 Tom Tromey <tom@tromey.com>
26
27 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
28 method.
29 * c-exp.h (class opencl_ternop_cond_operation): New.
30
944fd3b8
TT
312021-03-08 Tom Tromey <tom@tromey.com>
32
33 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
34 method.
35 * c-exp.h (class opencl_logical_binop_operation): New.
36
33b79214
TT
372021-03-08 Tom Tromey <tom@tromey.com>
38
39 * opencl-lang.c (opencl_structop_operation::evaluate): New
40 method.
41 * c-exp.h (class opencl_structop_operation): New.
42
2492ba36
TT
432021-03-08 Tom Tromey <tom@tromey.com>
44
45 * opencl-lang.c (opencl_logical_not): No longer static. Change
46 parameters.
47 (evaluate_subexp_opencl): Update.
48 * c-exp.h (opencl_notequal_operation): New typedef.
49
a88c3c8d
TT
502021-03-08 Tom Tromey <tom@tromey.com>
51
52 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
53 static. Change parameters.
54 (eval_opencl_assign): No longer static. Add "op" parameter.
55 (evaluate_subexp_opencl): Update.
56 * c-exp.h (opencl_binop_operation): New template class.
57 (opencl_assign_operation, opencl_equal_operation)
58 (opencl_notequal_operation, opencl_less_operation)
59 (opencl_gtr_operation, opencl_geq_operation)
60 (opencl_leq_operation): New typedefs.
61
e9677704
TT
622021-03-08 Tom Tromey <tom@tromey.com>
63
64 * opencl-lang.c (opencl_value_cast): No longer static.
65 * c-exp.h (opencl_cast_type_operation): New typedef.
66
f403a4e4
TT
672021-03-08 Tom Tromey <tom@tromey.com>
68
69 * f-exp.h (eval_op_f_allocated): Declare.
70 (fortran_allocated_operation): New typedef.
71 * f-lang.c (eval_op_f_allocated): No longer static.
72
eb4c9271
TT
732021-03-08 Tom Tromey <tom@tromey.com>
74
75 * f-lang.c (eval_op_f_associated): New functions.
76 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
77 typedefs.
78
58a76c72
TT
792021-03-08 Tom Tromey <tom@tromey.com>
80
81 * f-lang.c (fortran_bound_1arg::evaluate)
82 (fortran_bound_2arg::evaluate): New methods.
83 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
84 New.
85
2f98abe1
TT
862021-03-08 Tom Tromey <tom@tromey.com>
87
88 * expop.h (class unop_addr_operation) <get_expression>: New
89 method.
90 * f-lang.c (fortran_undetermined::value_subarray)
91 (fortran_undetermined::evaluate): New methods.
92 (fortran_prepare_argument): New overload.
93 * f-exp.h (class fortran_range_operation)
94 (class fortran_undetermined): New classes.
95
638fd74a
TT
962021-03-08 Tom Tromey <tom@tromey.com>
97
98 * rust-lang.c (rust_structop::evaluate_funcall): New method.
99 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
100 method.
101
a00b7254
TT
1022021-03-08 Tom Tromey <tom@tromey.com>
103
104 * expression.h (class operation) <evaluate_funcall>: New methods.
105 * expop.h (class scope_operation) <evaluate_funcall>: New method.
106 (class var_value_operation) <evaluate_funcall>: New method.
107 (class structop_base_operation) <evaluate_funcall>: New method.
108 (class var_msym_value_operation) <evaluate_funcall>: New method.
109 (class structop_member_base): New class.
110 (class structop_member_operation): Derive from
111 structop_member_base.
112 (class structop_mptr_operation): Derive from
113 structop_member_base.
114 (class funcall_operation): New class.
115 * eval.c (operation::evaluate_funcall)
116 (var_value_operation::evaluate_funcall)
117 (scope_operation::evaluate_funcall)
118 (structop_member_base::evaluate_funcall)
119 (structop_base_operation::evaluate_funcall): New methods.
120
1c02eb30
TT
1212021-03-08 Tom Tromey <tom@tromey.com>
122
123 * expop.h (class array_operation): New.
124 * eval.c (array_operation::evaluate_struct_tuple)
125 (array_operation::evaluate): New methods.
126
e4479080
TT
1272021-03-08 Tom Tromey <tom@tromey.com>
128
129 * expop.h (class adl_func_operation): New.
130 * eval.c (adl_func_operation::evaluate): New method.
131
95d49dfb
TT
1322021-03-08 Tom Tromey <tom@tromey.com>
133
134 * ada-lang.c (ada_unop_in_range): No longer static.
135 * ada-exp.h (class ada_unop_range_operation): New.
136
7c15d377
TT
1372021-03-08 Tom Tromey <tom@tromey.com>
138
139 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
140 No longer static.
141 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
142 (ada_atr_size_operation, ada_abs_operation): New typedefs.
143
5019124b
TT
1442021-03-08 Tom Tromey <tom@tromey.com>
145
146 * expop.h (class logical_and_operation)
147 (class logical_or_operation): New.
148 * eval.c (logical_and_operation::evaluate)
149 (logical_or_operation::evaluate): New methods.
150 * ax-gdb.c (logical_and_operation::do_generate_ax)
151 (logical_or_operation::do_generate_ax): New methods.
152
2bc9b40c
TT
1532021-03-08 Tom Tromey <tom@tromey.com>
154
155 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
156 static.
157 * m2-exp.h: New file.
158
5947d337
TT
1592021-03-08 Tom Tromey <tom@tromey.com>
160
161 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
162 * rust-exp.h (class rust_aggregate_operation): New.
163
e4407a20
TT
1642021-03-08 Tom Tromey <tom@tromey.com>
165
166 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
167 No longer static.
168 * rust-exp.h (class rust_struct_anon): New.
169 (class rust_structop): New.
170
9db6b6dd
TT
1712021-03-08 Tom Tromey <tom@tromey.com>
172
173 * rust-lang.c (rust_range): No longer static.
174 * rust-exp.h (class rust_range_operation): New.
175
6ce1ad67
TT
1762021-03-08 Tom Tromey <tom@tromey.com>
177
178 * rust-lang.c (rust_subscript): No longer static.
179 * rust-exp.h (class rust_subscript_operation): New.
180
11dd3dce
TT
1812021-03-08 Tom Tromey <tom@tromey.com>
182
183 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
184 parameter.
185 (rust_evaluate_subexp): Update.
186 * rust-exp.h (class rust_unop_ind_operation): New.
187
6fab4359
TT
1882021-03-08 Tom Tromey <tom@tromey.com>
189
190 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
191 longer static. Add "opcode" parameter.
192 (rust_evaluate_subexp): Update.
193 * rust-exp.h: New file.
194
9dcd3e29
TT
1952021-03-08 Tom Tromey <tom@tromey.com>
196
197 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
198 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
199 (eval_op_f_kind): No longer static. Add "opcode" parameter.
200 (evaluate_subexp_f): Update.
201 * f-exp.h: New file.
202
fc715eb2
TT
2032021-03-08 Tom Tromey <tom@tromey.com>
204
205 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
206 * ada-exp.h (class ada_ternop_range_operation): New.
207
cc6bd32e
TT
2082021-03-08 Tom Tromey <tom@tromey.com>
209
210 * ada-lang.c (ada_qual_operation::evaluate): New method.
211 * ada-exp.h (class ada_qual_operation): New.
212
42fecb61
TT
2132021-03-08 Tom Tromey <tom@tromey.com>
214
215 * ada-lang.c (ada_string_operation::evaluate): New method.
216 * ada-exp.h (class ada_string_operation): New.
217
03070ee9
TT
2182021-03-08 Tom Tromey <tom@tromey.com>
219
220 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
221 * ada-exp.h: New file.
222
821e72d7
TT
2232021-03-08 Tom Tromey <tom@tromey.com>
224
225 * expop.h (class multi_subscript_operation): New.
226 * eval.c (multi_subscript_operation::evaluate): New method.
227
085734dd
TT
2282021-03-08 Tom Tromey <tom@tromey.com>
229
230 * eval.c (objc_msgcall_operation::evaluate): New method.
231 * c-exp.h (class objc_msgcall_operation): New.
232
e82a5afc
TT
2332021-03-08 Tom Tromey <tom@tromey.com>
234
235 * expop.h (class var_value_operation): New.
236 * eval.c (var_value_operation::evaluate)
237 (var_value_operation::evaluate_for_address)
238 (var_value_operation::evaluate_with_coercion)
239 (var_value_operation::evaluate_for_sizeof)
240 (var_value_operation::evaluate_for_cast): New methods.
241 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
242
d9ad79d8
TT
2432021-03-08 Tom Tromey <tom@tromey.com>
244
245 * expop.h (cxx_cast_ftype): New typedef.
246 (cxx_cast_operation): New template.
247 (dynamic_cast_operation, reinterpret_cast_operation): New
248 typedefs.
249
292382f4
TT
2502021-03-08 Tom Tromey <tom@tromey.com>
251
252 * expop.h (class unop_cast_type_operation): New.
253 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
254 method.
255
165a813a
TT
2562021-03-08 Tom Tromey <tom@tromey.com>
257
258 * expop.h (class unop_cast_operation): New.
259 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
260
e5946e16
TT
2612021-03-08 Tom Tromey <tom@tromey.com>
262
263 * expop.h (class assign_modify_operation): New.
264 * eval.c (eval_binop_assign_modify): No longer static.
265 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
266
40786782
TT
2672021-03-08 Tom Tromey <tom@tromey.com>
268
269 * expop.h (class assign_operation): New.
270 * ax-gdb.c (assign_operation::do_generate_ax): New method.
271
44b675c8
TT
2722021-03-08 Tom Tromey <tom@tromey.com>
273
274 * expop.h (class type_instance_operation): New.
275 * eval.c (type_instance_operation::evaluate): New method.
276
f6b42326
TT
2772021-03-08 Tom Tromey <tom@tromey.com>
278
279 * expop.h (class op_this_operation): New.
280 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
281
cbc18219
TT
2822021-03-08 Tom Tromey <tom@tromey.com>
283
284 * expop.h (class unop_memval_operation)
285 (class unop_memval_type_operation): New.
286 * eval.c (eval_op_memval): No longer static.
287 (unop_memval_operation::evaluate_for_address)
288 (unop_memval_type_operation::evaluate_for_address)
289 (unop_memval_operation::evaluate_for_sizeof)
290 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
291 * ax-gdb.c (unop_memval_operation::do_generate_ax)
292 (unop_memval_type_operation::do_generate_ax): New methods.
293
ae4bb61e
TT
2942021-03-08 Tom Tromey <tom@tromey.com>
295
296 * expop.h (class unop_alignof_operation): New.
297 * eval.c (eval_op_alignof): No longer static.
298
85d23bda
TT
2992021-03-08 Tom Tromey <tom@tromey.com>
300
301 * expop.h (class unop_sizeof_operation): New.
302 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
303
14aff815
TT
3042021-03-08 Tom Tromey <tom@tromey.com>
305
306 * expop.h (class unop_addr_operation): New.
307 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
308
929f3aa7
TT
3092021-03-08 Tom Tromey <tom@tromey.com>
310
311 * expop.h (class typeid_operation): New.
312
0af8829e
TT
3132021-03-08 Tom Tromey <tom@tromey.com>
314
315 * expop.h (class decltype_operation): New.
316
4efc574c
TT
3172021-03-08 Tom Tromey <tom@tromey.com>
318
319 * expop.h (class typeof_operation): New.
320
5b5f5140
TT
3212021-03-08 Tom Tromey <tom@tromey.com>
322
323 * expop.h (class type_operation): New.
324 * eval.c (eval_op_type): No longer static.
325
876469ff
TT
3262021-03-08 Tom Tromey <tom@tromey.com>
327
328 * expop.h (class unop_ind_base_operation)
329 (class unop_ind_operation): New.
330 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
331 (unop_ind_base_operation::evaluate_for_address)
332 (unop_ind_base_operation::evaluate_for_sizeof): New method.
333 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
334
6d89e296
TT
3352021-03-08 Tom Tromey <tom@tromey.com>
336
337 * expop.h (unop_incr_operation): New template.
338 (preinc_operation, predec_operation, postinc_operation)
339 (postdec_operation): New typedefs.
340 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
341 (eval_op_postdec): No longer static.
342
9307d17b
TT
3432021-03-08 Tom Tromey <tom@tromey.com>
344
345 * expop.h (unary_ftype): New typedef.
346 (unop_operation, usual_ax_binop_operation): New templates.
347 (unary_plus_operation, unary_neg_operation)
348 (unary_complement_operation, unary_logical_not_operation): New
349 typedefs.
350 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
351 (eval_op_lognot): No longer static.
352 * ax-gdb.c (gen_expr_unop): New function.
353
ae64ba58
TT
3542021-03-08 Tom Tromey <tom@tromey.com>
355
356 * ax-gdb.c (comma_operation::do_generate_ax): New method.
357
d4eff4c1
TT
3582021-03-08 Tom Tromey <tom@tromey.com>
359
360 * expop.h (class repeat_operation): New.
361 * eval.c (eval_op_repeat): No longer static. Remove "op"
362 parameter.
363 (evaluate_subexp_standard): Update.
364 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
365
46916f2b
TT
3662021-03-08 Tom Tromey <tom@tromey.com>
367
368 * expop.h (class comparison_operation): New.
369 (equal_operation, notequal_operation, less_operation)
370 (gtr_operation, geq_operation, leq_operation): New typedefs.
371 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
372 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
373
224d6424
TT
3742021-03-08 Tom Tromey <tom@tromey.com>
375
376 * expop.h (class subscript_operation): New.
377 * eval.c (eval_op_subscript): No longer static.
378
373907ff
TT
3792021-03-08 Tom Tromey <tom@tromey.com>
380
381 * expop.h (class binop_operation, class usual_ax_binop_operation):
382 New.
383 (exp_operation, intdiv_operation, mod_operation, mul_operation)
384 (div_operation, rem_operation, lsh_operation, rsh_operation)
385 (bitwise_and_operation, bitwise_ior_operation)
386 (bitwise_xor_operation): New typedefs.
387 * eval.c (eval_op_binary): No longer static.
388
5133d78b
TT
3892021-03-08 Tom Tromey <tom@tromey.com>
390
391 * expop.h (class sub_operation): New.
392 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
393 (evaluate_subexp_standard): Update.
394
a94323b6
TT
3952021-03-08 Tom Tromey <tom@tromey.com>
396
397 * expop.h (class add_operation): New.
398 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
399 (evaluate_subexp_standard): Update.
400
e51e26a0
TT
4012021-03-08 Tom Tromey <tom@tromey.com>
402
403 * expop.h (class concat_operation): New.
404 * eval.c (eval_op_concat): No longer static. Remove "op"
405 parameter.
406 (evaluate_subexp_standard): Update.
407
07f724a8
TT
4082021-03-08 Tom Tromey <tom@tromey.com>
409
410 * expop.h (class structop_member_operation)
411 (class structop_mptr_operation): New.
412 * eval.c (eval_op_member): No longer static.
413
ab0609be
TT
4142021-03-08 Tom Tromey <tom@tromey.com>
415
416 * expop.h (class structop_ptr_operation): New.
417 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
418 parameter.
419
808b22cf
TT
4202021-03-08 Tom Tromey <tom@tromey.com>
421
422 * expop.h (class structop_base_operation)
423 (class structop_operation): New.
424 * eval.c (eval_op_structop_struct): No longer static.
425
8cfd3e95
TT
4262021-03-08 Tom Tromey <tom@tromey.com>
427
428 * expop.h (class complex_operation): New.
429
09db3700
TT
4302021-03-08 Tom Tromey <tom@tromey.com>
431
432 * eval.c (eval_op_objc_selector): No longer static.
433 * c-exp.h (class objc_selector_operation): New.
434
06dc61b9
TT
4352021-03-08 Tom Tromey <tom@tromey.com>
436
437 * eval.c: Include c-exp.h.
438 * c-exp.h (class objc_nsstring_operation): New.
439
72d0a711
TT
4402021-03-08 Tom Tromey <tom@tromey.com>
441
442 * c-lang.c (c_string_operation::evaluate): New method.
443 * c-exp.h: New file.
444
9186293f
TT
4452021-03-08 Tom Tromey <tom@tromey.com>
446
447 * expop.h (class ternop_cond_operation): New.
448 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
449
1594e0bb
TT
4502021-03-08 Tom Tromey <tom@tromey.com>
451
452 * expop.h (class ternop_slice_operation): New.
453 * eval.c (eval_op_ternop): No longer static.
454
b50db09f
TT
4552021-03-08 Tom Tromey <tom@tromey.com>
456
457 * expop.h (class string_operation): New.
458 * eval.c (eval_op_string): No longer static.
459
e6e01e16
TT
4602021-03-08 Tom Tromey <tom@tromey.com>
461
462 * expop.h (class internalvar_operation): New.
463 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
464
e6985c5e
TT
4652021-03-08 Tom Tromey <tom@tromey.com>
466
467 * expop.h (class bool_operation): New.
468
55bdbff8
TT
4692021-03-08 Tom Tromey <tom@tromey.com>
470
471 * expop.h (class register_operation): New.
472 * eval.c (eval_op_register): No longer static.
473 * ax-gdb.c (register_operation::do_generate_ax): New method.
474
247d935b
TT
4752021-03-08 Tom Tromey <tom@tromey.com>
476
477 * expop.h (class last_operation): New.
478
17679395
TT
4792021-03-08 Tom Tromey <tom@tromey.com>
480
481 * expop.h (class func_static_var_operation): New.
482 * eval.c (eval_op_func_static_var): No longer static.
483
b5cc3923
TT
4842021-03-08 Tom Tromey <tom@tromey.com>
485
486 * expop.h (class var_entry_value_operation): New.
487 * eval.c (eval_op_var_entry_value): No longer static.
488
0c8effa3
TT
4892021-03-08 Tom Tromey <tom@tromey.com>
490
491 * expression.h (class operation) <set_outermost>: New method.
492 * expop.h (class var_msym_value_operation): New.
493 * eval.c (eval_op_var_msym_value): No longer static.
494 (var_msym_value_operation::evaluate_for_address)
495 (var_msym_value_operation::evaluate_for_sizeof)
496 (var_msym_value_operation::evaluate_for_cast): New methods.
497 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
498 method.
499
d336c29e
TT
5002021-03-08 Tom Tromey <tom@tromey.com>
501
502 * expop.h (class long_const_operation): New.
503 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
504
d5ab122c
TT
5052021-03-08 Tom Tromey <tom@tromey.com>
506
507 * expop.h (class scope_operation): New.
508 * eval.c (eval_op_scope): No longer static.
509 (scope_operation::evaluate_for_address): New method.
510 * ax-gdb.c (scope_operation::do_generate_ax): New method.
511
cae26a0c
TT
5122021-03-08 Tom Tromey <tom@tromey.com>
513
514 * expprint.c (float_const_operation::dump): New method.
515 * expop.h (float_data): New typedef.
516 (class float_const_operation): New.
517
75f9892d
TT
5182021-03-08 Tom Tromey <tom@tromey.com>
519
520 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
521 * ax-gdb.c (gen_expr_binop): New function.
522 (gen_expr_structop): Likewise.
523
de401988
TT
5242021-03-08 Tom Tromey <tom@tromey.com>
525
526 * expprint.c (expr::dump_for_expression): New functions.
527 * expop.h (dump_for_expression): New overloads.
528 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
529 Update.
530
e2803273
TT
5312021-03-08 Tom Tromey <tom@tromey.com>
532
533 * expression.h (expr::operation): New class.
534 (expr::make_operation): New function.
535 (expr::operation_up): New typedef.
536 * expop.h: New file.
537 * eval.c (operation::evaluate_for_cast)
538 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
539 New methods.
540 * ax-gdb.c (operation::generate_ax): New method.
541
e18c58f2
TT
5422021-03-08 Tom Tromey <tom@tromey.com>
543
544 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
545 (gen_expr_binop_rest): New overload.
546
c0d7ed8c
TT
5472021-03-08 Tom Tromey <tom@tromey.com>
548
549 * eval.c (eval_multi_subscript): New function.
550 (evaluate_subexp_standard): Use it.
551
dd5fd283
TT
5522021-03-08 Tom Tromey <tom@tromey.com>
553
554 * ada-lang.c (ada_binop_exp): New function.
555 (ada_evaluate_subexp): Use it.
556
3848abd6
TT
5572021-03-08 Tom Tromey <tom@tromey.com>
558
559 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
560 parameters.
561 (ada_evaluate_subexp): Use it.
562
38dc70cf
TT
5632021-03-08 Tom Tromey <tom@tromey.com>
564
565 * ada-lang.c (ada_binop_minmax): New function.
566 (ada_evaluate_subexp): Use it.
567
b84564fc
TT
5682021-03-08 Tom Tromey <tom@tromey.com>
569
570 * ada-lang.c (ada_unop_atr): New function.
571 (ada_evaluate_subexp): Use it.
572
b467efaa
TT
5732021-03-08 Tom Tromey <tom@tromey.com>
574
575 * ada-lang.c (ada_binop_in_bounds): New function.
576 (ada_evaluate_subexp): Use it.
577
5ce19db8
TT
5782021-03-08 Tom Tromey <tom@tromey.com>
579
580 * ada-lang.c (ada_ternop_slice): New function.
581 (ada_evaluate_subexp): Use it.
582
214b13ac
TT
5832021-03-08 Tom Tromey <tom@tromey.com>
584
585 * ada-lang.c (ada_equal_binop): New function.
586 (ada_evaluate_subexp): Use it.
587
faa1dfd7
TT
5882021-03-08 Tom Tromey <tom@tromey.com>
589
590 * ada-lang.c (ada_mult_binop): New function.
591 (ada_evaluate_subexp): Use it.
592
d05e24e6
TT
5932021-03-08 Tom Tromey <tom@tromey.com>
594
595 * ada-lang.c (ada_abs): New function.
596 (ada_evaluate_subexp): Use it.
597
68c75735
TT
5982021-03-08 Tom Tromey <tom@tromey.com>
599
600 * ada-lang.c (ada_atr_size): New function.
601 (ada_evaluate_subexp): Use it.
602
020dbabe
TT
6032021-03-08 Tom Tromey <tom@tromey.com>
604
605 * ada-lang.c (ada_atr_tag): New function.
606 (ada_evaluate_subexp): Use it.
607
7efc87ff
TT
6082021-03-08 Tom Tromey <tom@tromey.com>
609
610 * ada-lang.c (ada_unop_in_range): New function.
611 (ada_evaluate_subexp): Use it.
612
82390ab8
TT
6132021-03-08 Tom Tromey <tom@tromey.com>
614
615 * ada-lang.c (ada_unop_neg): New function.
616 (ada_evaluate_subexp): Use it.
617
62d4bd94
TT
6182021-03-08 Tom Tromey <tom@tromey.com>
619
620 * ada-lang.c (eval_ternop_in_range): New function.
621 (ada_evaluate_subexp): Use it.
622
3634f669
TT
6232021-03-08 Tom Tromey <tom@tromey.com>
624
625 * opencl-lang.c (eval_opencl_assign): New function.
626 (evaluate_subexp_opencl): Use it.
627
5e80600e
TT
6282021-03-08 Tom Tromey <tom@tromey.com>
629
630 * eval.c (eval_op_objc_msgcall): New function.
631 (evaluate_subexp_standard): Use it.
632
fb5ba2ab
TT
6332021-03-08 Tom Tromey <tom@tromey.com>
634
635 * eval.c (eval_binop_assign_modify): New function.
636 (evaluate_subexp_standard): Use it.
637
a49881f7
TT
6382021-03-08 Tom Tromey <tom@tromey.com>
639
640 * m2-lang.c (eval_op_m2_subscript): New function.
641 (evaluate_subexp_modula2): Use it.
642
41bdced5
TT
6432021-03-08 Tom Tromey <tom@tromey.com>
644
645 * m2-lang.c (eval_op_m2_high): New function.
646 (evaluate_subexp_modula2): Use it.
647
13ea014a
TT
6482021-03-08 Tom Tromey <tom@tromey.com>
649
650 * eval.c (evaluate_subexp_for_address_base): New function.
651 (evaluate_subexp_for_address): Use it.
652 (evaluate_subexp_for_sizeof_base): New function.
653 (evaluate_subexp_for_sizeof): Use it.
654
1fa41fc7
TT
6552021-03-08 Tom Tromey <tom@tromey.com>
656
657 * rust-lang.c (eval_op_rust_structop): New function.
658 (rust_evaluate_subexp): Use it.
659
575cae23
TT
6602021-03-08 Tom Tromey <tom@tromey.com>
661
662 * rust-lang.c (eval_op_rust_struct_anon): New function.
663 (rust_evaluate_subexp): Use it.
664
05104233
TT
6652021-03-08 Tom Tromey <tom@tromey.com>
666
667 * rust-lang.c (eval_op_rust_array): New function.
668 (rust_evaluate_subexp): Use it.
669
6fa9831f
TT
6702021-03-08 Tom Tromey <tom@tromey.com>
671
672 * rust-lang.c (eval_op_rust_complement): New function.
673 (rust_evaluate_subexp): Use it.
674
d123f9e4
TT
6752021-03-08 Tom Tromey <tom@tromey.com>
676
677 * rust-lang.c (eval_op_rust_ind): New function.
678 (rust_evaluate_subexp): Use it.
679
984af2cb
TT
6802021-03-08 Tom Tromey <tom@tromey.com>
681
682 * rust-lang.c (rust_subscript): Change parameters.
683 (rust_evaluate_subexp): Update.
684
d148f803
TT
6852021-03-08 Tom Tromey <tom@tromey.com>
686
687 * rust-lang.c (rust_range): Change parameters.
688 (rust_evaluate_subexp): Update.
689
9cbd1c20
TT
6902021-03-08 Tom Tromey <tom@tromey.com>
691
692 * f-lang.c (eval_op_f_allocated): New function.
693 (evaluate_subexp_f): Use it.
694
3c18c49c
TT
6952021-03-08 Tom Tromey <tom@tromey.com>
696
697 * f-lang.c (fortran_require_array): New function.
698 (evaluate_subexp_f): Use it.
699
216f6fcb
TT
7002021-03-08 Tom Tromey <tom@tromey.com>
701
702 * f-lang.c (eval_op_f_kind): New function.
703 (evaluate_subexp_f): Use it.
704
00f2db6f
TT
7052021-03-08 Tom Tromey <tom@tromey.com>
706
707 * f-lang.c (eval_op_f_cmplx): New function.
708 (evaluate_subexp_f): Use it.
709
93b2b5fa
TT
7102021-03-08 Tom Tromey <tom@tromey.com>
711
712 * f-lang.c (eval_op_f_modulo): New function.
713 (evaluate_subexp_f): Use it.
714
9f1a1f3c
TT
7152021-03-08 Tom Tromey <tom@tromey.com>
716
717 * f-lang.c (eval_op_f_floor): New function.
718 (evaluate_subexp_f): Use it.
719
3dc41f3c
TT
7202021-03-08 Tom Tromey <tom@tromey.com>
721
722 * f-lang.c (eval_op_f_ceil): New function.
723 (evaluate_subexp_f): Use it.
724
e08109f2
TT
7252021-03-08 Tom Tromey <tom@tromey.com>
726
727 * f-lang.c (eval_op_f_mod): New function.
728 (evaluate_subexp_f): Use it.
729
cc05c68e
TT
7302021-03-08 Tom Tromey <tom@tromey.com>
731
732 * f-lang.c (eval_op_f_abs): New function.
733 (evaluate_subexp_f): Use it.
734
aec95807
TT
7352021-03-08 Tom Tromey <tom@tromey.com>
736
737 * eval.c (eval_op_type): New function.
738 (evaluate_subexp_standard): Use it.
739
a220ead5
TT
7402021-03-08 Tom Tromey <tom@tromey.com>
741
742 * eval.c (eval_op_postdec): New function.
743 (evaluate_subexp_standard): Use it.
744
abffe116
TT
7452021-03-08 Tom Tromey <tom@tromey.com>
746
747 * eval.c (eval_op_postinc): New function.
748 (evaluate_subexp_standard): Use it.
749
9e1361b7
TT
7502021-03-08 Tom Tromey <tom@tromey.com>
751
752 * eval.c (eval_op_predec): New file.
753 (evaluate_subexp_standard): Use it.
754
00f50884
TT
7552021-03-08 Tom Tromey <tom@tromey.com>
756
757 * eval.c (eval_op_preinc): New function.
758 (evaluate_subexp_standard): Use it.
759
3aef2a07
TT
7602021-03-08 Tom Tromey <tom@tromey.com>
761
762 * eval.c (eval_op_memval): New function.
763 (evaluate_subexp_standard): Use it.
764
acee9468
TT
7652021-03-08 Tom Tromey <tom@tromey.com>
766
767 * eval.c (eval_op_alignof): New function.
768 (evaluate_subexp_standard): Use it.
769
786f70ee
TT
7702021-03-08 Tom Tromey <tom@tromey.com>
771
772 * eval.c (eval_op_ind): New function.
773 (evaluate_subexp_standard): Use it.
774
24338fb9
TT
7752021-03-08 Tom Tromey <tom@tromey.com>
776
777 * eval.c (eval_op_lognot): New function.
778 (evaluate_subexp_standard): Use it.
779
1f09ec81
TT
7802021-03-08 Tom Tromey <tom@tromey.com>
781
782 * eval.c (eval_op_complement): New function.
783 (evaluate_subexp_standard): Use it.
784
606d105f
TT
7852021-03-08 Tom Tromey <tom@tromey.com>
786
787 * eval.c (eval_op_neg): New function.
788 (evaluate_subexp_standard): Use it.
789
39f288be
TT
7902021-03-08 Tom Tromey <tom@tromey.com>
791
792 * eval.c (eval_op_plus): New function.
793 (evaluate_subexp_standard): Use it.
794
eed70b1c
TT
7952021-03-08 Tom Tromey <tom@tromey.com>
796
797 * eval.c (eval_op_repeat): New function.
798 (evaluate_subexp_standard): Use it.
799
60cdd487
TT
8002021-03-08 Tom Tromey <tom@tromey.com>
801
802 * eval.c (eval_op_leq): New function.
803 (evaluate_subexp_standard): Use it.
804
96e3efd9
TT
8052021-03-08 Tom Tromey <tom@tromey.com>
806
807 * eval.c (eval_op_geq): New function.
808 (evaluate_subexp_standard): Use it.
809
1f78d732
TT
8102021-03-08 Tom Tromey <tom@tromey.com>
811
812 * eval.c (eval_op_gtr): New function.
813 (evaluate_subexp_standard): Use it.
814
6cad1349
TT
8152021-03-08 Tom Tromey <tom@tromey.com>
816
817 * eval.c (eval_op_less): New function.
818 (evaluate_subexp_standard): Use it.
819
1fcb3559
TT
8202021-03-08 Tom Tromey <tom@tromey.com>
821
822 * eval.c (eval_op_notequal): New function.
823 (evaluate_subexp_standard): Use it.
824
0cc96de8
TT
8252021-03-08 Tom Tromey <tom@tromey.com>
826
827 * eval.c (eval_op_equal): New function.
828 (evaluate_subexp_standard): Use it.
829
288d26bc
TT
8302021-03-08 Tom Tromey <tom@tromey.com>
831
832 * eval.c (eval_op_subscript): New function.
833 (evaluate_subexp_standard): Use it.
834
7cdcdd02
TT
8352021-03-08 Tom Tromey <tom@tromey.com>
836
837 * eval.c (eval_op_binary): New function.
838 (evaluate_subexp_standard): Use it.
839
d9790e22
TT
8402021-03-08 Tom Tromey <tom@tromey.com>
841
842 * eval.c (eval_op_sub): New function.
843 (evaluate_subexp_standard): Use it.
844
aedaf9ac
TT
8452021-03-08 Tom Tromey <tom@tromey.com>
846
847 * eval.c (eval_op_add): New function.
848 (evaluate_subexp_standard): Use it.
849
b7a96ed2
TT
8502021-03-08 Tom Tromey <tom@tromey.com>
851
852 * eval.c (eval_op_member): New function.
853 (evaluate_subexp_standard): Use it.
854
fb461aa3
TT
8552021-03-08 Tom Tromey <tom@tromey.com>
856
857 * eval.c (eval_op_structop_ptr): New function.
858 (evaluate_subexp_standard): Use it.
859
3e96c4fc
TT
8602021-03-08 Tom Tromey <tom@tromey.com>
861
862 * eval.c (eval_op_structop_struct): New function.
863 (evaluate_subexp_standard): Use it.
864
f960a617
TT
8652021-03-08 Tom Tromey <tom@tromey.com>
866
867 * eval.c (eval_op_ternop): New function.
868 (evaluate_subexp_standard): Use it.
869
5c2f201e
TT
8702021-03-08 Tom Tromey <tom@tromey.com>
871
872 * eval.c (eval_op_concat): New function.
873 (evaluate_subexp_standard): Use it.
874
f871bae1
TT
8752021-03-08 Tom Tromey <tom@tromey.com>
876
877 * eval.c (eval_op_objc_selector): New function.
878 (evaluate_subexp_standard): Use it.
879
14a1c64a
TT
8802021-03-08 Tom Tromey <tom@tromey.com>
881
882 * eval.c (eval_op_string): New function.
883 (evaluate_subexp_standard): Use it.
884
ffff730b
TT
8852021-03-08 Tom Tromey <tom@tromey.com>
886
887 * eval.c (eval_op_register): New function.
888 (evaluate_subexp_standard): Use it.
889
9b1d8af6
TT
8902021-03-08 Tom Tromey <tom@tromey.com>
891
892 * eval.c (eval_op_func_static_var): New function.
893 (evaluate_subexp_standard): Use it.
894
c0df9289
TT
8952021-03-08 Tom Tromey <tom@tromey.com>
896
897 * eval.c (eval_op_var_msym_value): New function.
898 (evaluate_subexp_standard): Use it.
899
50b98adc
TT
9002021-03-08 Tom Tromey <tom@tromey.com>
901
902 * eval.c (eval_op_var_entry_value): New function.
903 (evaluate_subexp_standard): Use it.
904
ea2d29f7
TT
9052021-03-08 Tom Tromey <tom@tromey.com>
906
907 * eval.c (eval_op_scope): New function.
908 (evaluate_subexp_standard): Use it.
909
01573d73
TT
9102021-03-06 Chernov Sergey <klen_s@mail.ru>
911
912 PR gdb/27528:
913 * ada-lang.c (ada_fold_name): Use gdb::to_string.
914
9938d15a
TT
9152021-03-06 Tom Tromey <tom@tromey.com>
916
917 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
918 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
919 * dwarf2/read.c (dwarf2_elf_names): No longer static.
920 (locate_dwz_sections, dwz_search_other_debugdirs)
921 (dwarf2_get_dwz_file): Move to dwz.c.
922 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
923 read.h.
924 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
925 (dwarf2_get_dwz_file): Move from read.c.
926
18035655
TT
9272021-03-06 Tom Tromey <tom@tromey.com>
928
929 * debuginfod-support.h: Include scoped_fd.h.
930
a7308ce0
TT
9312021-03-06 Tom Tromey <tom@tromey.com>
932
933 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
934 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
935 (get_abbrev_section_for_cu, read_attribute_value)
936 (get_debug_line_section): Update.
937 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
938
fbedd546
TT
9392021-03-06 Tom Tromey <tom@tromey.com>
940
941 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
942 method.
943 * dwarf2/read.c (section_is_p): Remove.
944 (dwarf2_per_bfd::locate_sections)
945 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
946 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
947 (dwarf2_locate_common_dwp_sections)
948 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
949 Update.
950
c2a62a3d
TT
9512021-03-06 Tom Tromey <tom@tromey.com>
952
953 * xcoffread.c: Include sect-names.h.
954 * symfile.h (struct dwarf2_section_names, struct
955 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
956 * dwarf2/sect-names.h: New file, from symfile.h.
957 * dwarf2/read.c: Include sect-names.h.
958
4444f407
TT
9592021-03-06 Tom Tromey <tom@tromey.com>
960
961 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
962 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
963 (abbrev_table::read): Update.
964 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
965 (struct abbrev_info): Reformat.
966 <attrs>: Now an array.
967 (struct abbrev_table) <alloc_abbrev>: Remove.
968
dd99cf0c
WP
9692021-03-06 Weimin Pan <weimin.pan@oracle.com>
970
971 * ctfread.c (ctf_psymtab_add_enums): New function.
972 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
973
844be3f2
WP
9742021-03-06 Weimin Pan <weimin.pan@oracle.com>
975
976 * ctfread.c (read_func_kind_type): Set up function arguments.
977
b2668f28
AB
9782021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
979 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
982 includes.
983 (riscv_csrset): New static global.
984 (riscv_update_csrmap): New function.
985 (riscv_iterate_over_regset_sections): Process CSRs.
986
d782d24b
AB
9872021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
988
989 * riscv-tdep.c (riscv_feature_name_csr): Define.
990 (riscv_feature_name_cpu): Define.
991 (riscv_feature_name_fpu): Define.
992 (riscv_feature_name_virtual): Define.
993 (riscv_xreg_feature): Use riscv_feature_name_cpu.
994 (riscv_freg_feature): Use riscv_feature_name_fpu.
995 (riscv_virtual_feature): Use riscv_feature_name_virtual.
996 (riscv_csr_feature): Use riscv_feature_name_csr.
997 * riscv-tdep.h (riscv_feature_name_csr): Declare.
998
fb8f3fc0
AB
9992021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1000 Craig Blackmore <craig.blackmore@embecosm.com>
1001
1002 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1003 (ALLDEPFILES): Add riscv-none-tdep.c.
1004 * configure: Regenerate.
1005 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1006 support.
1007 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1008 * elf-none-tdep.c: New file.
1009 * elf-none-tdep.h: New file.
1010 * riscv-none-tdep.c: New file.
1011
95ce627a
AB
10122021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1013 Andrew Burgess <andrew.burgess@embecosm.com>
1014
1015 * corelow.c: Add 'xml-tdesc.h' include.
1016 (core_target::read_description): Load the target description from
1017 the core file when possible.
1018 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1019 note.
1020 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1021 (gcore_elf_make_tdesc_note): New function.
1022 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1023 * linux-tdep.c (linux_make_corefile_notes): Add target description
1024 note.
1025
f3a5df7b
AB
10262021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1027
1028 * Makefile.in (SFILES): Add gcore-elf.c.
1029 (HFILES_NO_SRCDIR): Add gcore-elf.h
1030 * configure: Regenerate.
1031 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1032 support.
1033 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1034 (struct fbsd_collect_regset_section_cb_data): Delete.
1035 (fbsd_collect_regset_section_cb): Delete.
1036 (fbsd_collect_thread_registers): Delete.
1037 (struct fbsd_corefile_thread_data): Delete.
1038 (fbsd_corefile_thread): Delete.
1039 (fbsd_make_corefile_notes): Call
1040 gcore_elf_build_thread_register_notes instead of the now deleted
1041 FreeBSD code.
1042 * gcore-elf.c: New file, the content was moved here from
1043 linux-tdep.c, functions were renamed and given minor cleanup.
1044 * gcore-elf.h: New file.
1045 * gcore.c (gcore_find_signalled_thread): Moved here from
1046 linux-tdep.c and given a new name. Minor cleanups.
1047 * gcore.h (gcore_find_signalled_thread): Declare.
1048 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1049 (struct linux_collect_regset_section_cb_data): Delete.
1050 (linux_collect_regset_section_cb): Delete.
1051 (linux_collect_thread_registers): Delete.
1052 (linux_corefile_thread): Call
1053 gcore_elf_build_thread_register_notes.
1054 (find_signalled_thread): Delete.
1055 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1056
d1e93af6
SM
10572021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1058
1059 PR gdb/27147
1060 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1061 process_stratum_target parameter,
1062 sparc_store_inferior_registers): update callers.
1063 * sparc-nat.c (sparc_fetch_inferior_registers,
1064 sparc_store_inferior_registers): Add process_stratum_target
1065 parameter. Switch current thread before calling
1066 sparc_supply_gregset / sparc_collect_rwindow.
1067 (sparc_store_inferior_registers): Likewise.
1068 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1069 (sparc32obsd_collect_uthread): Likewise.
1070 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1071 Add assertion.
1072 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1073 sparc64obsd_supply_uthread): Add assertion.
1074
1178743e
TT
10752021-03-04 Tom Tromey <tromey@adacore.com>
1076
1077 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1078 (aux_add_nonlocal_symbols): Update.
1079 (ada_add_block_symbols): Change "found_sym" to bool.
1080
1bfa81ac
TT
10812021-03-03 Tom Tromey <tromey@adacore.com>
1082
1083 * ada-lang.c (ada_resolve_function): Update comment.
1084 (is_nonfunction, add_symbols_from_enclosing_procs)
1085 (remove_extra_symbols): Likewise.
1086 (struct match_data): Add constructor, initializers.
1087 (add_nonlocal_symbols): Remove memset.
1088 (aux_add_nonlocal_symbols): Update comment.
1089 (ada_add_block_renamings, add_nonlocal_symbols)
1090 (ada_add_all_symbols): Likewise.
1091 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1092
bbcdf9ab
TT
10932021-03-02 Tom Tromey <tromey@adacore.com>
1094
1095 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1096 (cast_to_gnat_encoded_fixed_point_type): Remove.
1097 (ada_value_cast, ada_evaluate_subexp): Update.
1098 (gnat_encoded_fixed_point_type_info)
1099 (ada_is_gnat_encoded_fixed_point_type)
1100 (gnat_encoded_fixed_point_delta)
1101 (gnat_encoded_fixed_point_scaling_factor): Remove.
1102 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1103 (gnat_encoded_fixed_point_delta)
1104 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1105 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1106 (ada_print_type): Update.
1107 * ada-valprint.c (ada_value_print_num): Update.
1108 * dwarf2/read.c (ada_get_gnat_encoded_number)
1109 (ada_get_gnat_encoded_ratio): New functions.
1110 (finish_fixed_point_type): Use them. Add parameters.
1111 (GNAT_FIXED_POINT_SUFFIX): New define.
1112 (gnat_encoded_fixed_point_type_info): New function.
1113 (read_base_type): Handle gnat encodings.
1114
5f9febe0
TT
11152021-03-02 Tom Tromey <tromey@adacore.com>
1116
1117 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1118 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1119 std::string.
1120 (GROW_VECT): Remove.
1121 (grow_vect): Remove.
1122
d1183b06
TT
11232021-03-02 Tom Tromey <tromey@adacore.com>
1124
1125 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1126 * ada-lang.c (resolve_subexp): Update.
1127 (ada_resolve_function): Accept a vector.
1128 (is_nonfunction, add_defn_to_vec)
1129 (add_symbols_from_enclosing_procs): Likewise.
1130 (num_defns_collected, defns_collected): Remove.
1131 (remove_extra_symbols): Return a vector.
1132 (remove_irrelevant_renamings): Return void.
1133 (ada_add_local_symbols): Accept a vector.
1134 (struct match_data) <obstackp>: Remove.
1135 <resultp>: New member.
1136 (aux_add_nonlocal_symbols): Update.
1137 (ada_add_block_renamings, add_nonlocal_symbols)
1138 (ada_add_all_symbols): Accept a vector.
1139 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1140 vector.
1141 (ada_lookup_symbol): Update.
1142 (ada_add_block_symbols): Accept a vector.
1143 (get_var_value, iterate_over_symbols): Update.
1144 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1145 Update.
1146
886d459f
TT
11472021-03-02 Tom Tromey <tromey@adacore.com>
1148
1149 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1150
bdcccc56
TT
11512021-03-02 Tom Tromey <tromey@adacore.com>
1152
1153 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1154 auto_obstack.
1155 <root>: Initialize.
1156 (ada_pspace_data): Remove destructor.
1157 <sym_cache>: Now a unique_ptr.
1158 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1159 (ada_get_symbol_cache): Use 'new'.
1160 (ada_clear_symbol_cache): Rewrite.
1161
1228719f
TT
11622021-03-02 Tom Tromey <tromey@adacore.com>
1163
1164 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1165 is null.
1166
bb3a4efe
LS
11672021-02-27 Lancelot Six <lsix@lancelotsix.com>
1168
1169 PR gdb/27393
1170 * source.c (add_path): Skip empty dirnames.
1171
26b43ca6 11722021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1173
1174 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1175 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1176
dffdd8b5
SM
11772021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1178
1179 PR gdb/26861
1180 * target.c (target_mourn_inferior): Only compare pids in
1181 target_mourn_inferior.
1182
64d38fdd
JM
11832021-02-25 Jan Matyas <jmatyas@codasip.com>
1184
1185 PR gdb/26819
1186 * remote.c (remote_target::start_remote): Ensure the single
1187 thread, automatically added for remote targets without the
1188 concept of threading, is initially in set to the "resumed"
1189 state.
1190 * remote.c (remote_target::add_current_inferior_and_thread):
1191 Add return value - return the main thread.
1192
2450ad54
JV
11932021-02-25 Jan Vrany <jan.vrany@labware.com>
1194
1195 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1196 (mi_tsv_created): Likewise.
1197 (mi_tsv_deleted): Likewise.
1198
30c80d88
TV
11992021-02-25 Tom de Vries <tdevries@suse.de>
1200
1201 PR symtab/27354
1202 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1203 section_kind for &dwo_file->sections.info.
1204
68337b8b
AB
12052021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1206
1207 PR fortran/26155
1208 * f-lang.c (fortran_argument_convert): Delete declaration.
1209 (fortran_prepare_argument): New function.
1210 (evaluate_subexp_f): Move logic to new function
1211 fortran_prepare_argument.
1212
faeb9f13
AB
12132021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * f-exp.y (f77_keywords): Add 'associated'.
1216 * f-lang.c (fortran_associated): New function.
1217 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1218 (operator_length_f): Likewise.
1219 (print_unop_or_binop_subexp_f): New function.
1220 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1221 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1222 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1223 (operator_check_f): Likewise.
1224 * std-operator.def: Add FORTRAN_ASSOCIATED.
1225
170f4b23
AB
12262021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * f-exp.y (fortran_operators): Add ".xor.".
1229
aa659cfa
TV
12302021-02-24 Tom de Vries <tdevries@suse.de>
1231
1232 PR symtab/27336
1233 * dwarf2/attribute.c (attribute::form_is_signed): New function
1234 factored out of ...
1235 * dwarf2/attribute.h (attribute::as_signed): ... here.
1236 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1237 (attribute::form_is_signed): Declare.
1238 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1239 for DW_AT_decl_file.
1240
268c77c1
KB
12412021-02-24 Kevin Buettner <kevinb@redhat.com>
1242
1243 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1244 order for <sys/ptrace.h> and <asm/ptrace.h>.
1245
665af52e
KB
12462021-02-24 Kevin Buettner <kevinb@redhat.com>
1247
1248 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1249 <sys/ptrace.h>.
1250
dd80d750
AB
12512021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * exec.c (set_section_command): Move variable declarations into
1254 the function body, and use std::string instead of a fixed size
1255 buffer.
1256
336aa7b7
AB
12572021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1258
1259 * exec.c (exec_target::get_section_table): Delete member function.
1260 (section_table_read_available_memory): Use current_top_target, not
1261 just the exec_ops target.
1262 * target-delegates.c: Regenerate.
1263 * target.c (default_get_section_table): New function.
1264 * target.h (target_ops::get_section_table): Change default
1265 behaviour to call default_get_section_table.
1266 (default_get_section_table): Declare.
1267
02f7d26b
AB
12682021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * exec.c (exec_target::close): Call new clear_target_sections
1271 function.
1272 (program_space::add_target_sections): Update name of member
1273 variable.
1274 (program_space::add_target_sections): Update name of member
1275 variable.
1276 (program_space::remove_target_sections): Likewise.
1277 (exec_one_fork): Use new target_sections member function.
1278 (exec_target::get_section_table): Likewise.
1279 (exec_target::files_info): Likewise.
1280 (set_section_command): Likewise.
1281 (exec_set_section_address): Likewise.
1282 (exec_target::has_memory): Use new target_sections member
1283 function.
1284 * progspace.h (program_space::clear_target_sections): New member
1285 function.
1286 (program_space::target_sections): Rename member variable to
1287 m_target_sections, replace with a new member function.
1288 (program_space::m_target_sections): New member variable.
1289 * solib-dsbt.c (scan_dyntag): Use new member function.
1290 * solib-svr4.c (scan_dyntag): Likewise.
1291
19cf757a
AB
12922021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1295 return type const.
1296 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1297 (section_table_read_available_memory): Make local const.
1298 (exec_target::xfer_partial): Make local const.
1299 (print_section_info): Make parameter const.
1300 * gdb/exec.h (print_section_info): Likewise.
1301 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1302 const.
1303 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1304 Likewise.
1305 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1306 Likewise.
1307 * gdb/s390-tdep.c (s390_load): Likewise.
1308 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1309 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1310 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1311 Rename to...
1312 (target_debug_print_const_target_section_table_p): ...this.
1313 * gdb/target-delegates.c: Regenerate.
1314 * gdb/target.c (target_get_section_table): Make return type const.
1315 (target_section_by_addr): Likewise. Also make some locals const.
1316 (memory_xfer_partial_1): Make some locals const.
1317 * gdb/target.h (struct target_ops) <get_section_table>: Make
1318 return type const.
1319 (target_section_by_addr): Likewise.
1320 (target_get_section_table): Likewise.
1321
02a79309
AB
13222021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1323
1324 * NEWS: Mention new 'maint info target-sections' command.
1325 * maint.c (maintenance_info_target_sections): New function.
1326 (_initialize_maint_cmds): Register new command.
1327
895b7b4e
AB
13282021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1329
1330 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1331 (riscv_features_from_bfd): ...this. Change parameter type to
1332 'bfd*', and update as required.
1333 (riscv_find_default_target_description): Update call to
1334 riscv_features_from_bfd. Select a default xlen based on
1335 info.bfd_arch_info.
1336 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1337
bc3c0632
AB
13382021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1341 dynamic types in UNOP_IND.
1342
08ac5771
SM
13432021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1344
1345 PR gdb/26828
1346 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1347 Instantiate queue.
1348 (~dwarf2_queue_guard): Clear queue.
1349 (queue_comp_unit): Assert that queue is
1350 instantiated.
1351 (process_queue): Adjust.
1352 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1353
616c069a
SM
13542021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1355
1356 PR gdb/26828
1357 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1358 to decide whether or not to enqueue it for expansion.
1359 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1360 after calling maybe_queue_comp_unit.
1361
897608ed
SM
13622021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1363
1364 * linux-nat.c (linux_nat_filter_event): Return void.
1365
15908a11
TT
13662021-02-22 Tom Tromey <tromey@adacore.com>
1367
1368 * solib-svr4.c (enable_break): Update.
1369 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1370 type.
1371 (target_bfd_reopen): Change parameter type.
1372 * bfd-target.h (target_bfd_reopen): Change parameter type.
1373
f53fc427
SM
13742021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1375
1376 * thread.c (add_thread_silent): Add assert.
1377 (find_thread_ptid): Add assert.
1378
de146e19
SM
13792021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 PR gdb/27435
1382 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1383 (target_unpush_up): Likewise.
1384 * procfs.c (procfs_target::attach): Push target early. Use
1385 target_unpush_up to unpush target in case of error.
1386 * target.h (struct target_unpusher): Move here.
1387 (target_unpush_up): Likewise.
1388
8488c357
KB
13892021-02-19 Kevin Buettner <kevinb@redhat.com>
1390
1391 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1392 (which in turn includes <gnulib/config.h>) before include
1393 of <signal.h>.
1394
5a9f5403
NC
13952021-02-19 Nelson Chu <nelson.chu@sifive.com>
1396
1397 PR 27158
1398 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1399 (decode_j_type_insn): Likewise.
1400 (decode_cj_type_insn): Likewise.
1401 (decode_b_type_insn): Likewise.
1402 (decode): Likewise.
1403
26f53cd3
TT
14042021-02-18 Tom Tromey <tom@tromey.com>
1405
1406 * expression.h (struct expression) <evaluate>: Declare method.
1407 * eval.c (evaluate_subexp): Simplify.
1408 (expression::evaluate): New method.
1409 (evaluate_expression, evaluate_type): Use expression::evaluate.
1410
6a780b67
KB
14112021-02-17 Kevin Buettner <kevinb@redhat.com>
1412
1413 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1414 to accessing it.
1415 (ada_lookup_name_info): Likewise.
1416
adeab0c5
MF
14172021-02-13 Mike Frysinger <vapier@gentoo.org>
1418
1419 * aclocal.m4: Regenerate.
1420
089436f7
TV
14212021-02-12 Tom de Vries <tdevries@suse.de>
1422
1423 PR threads/26228
1424 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1425 (lin_thread_signals): New static var.
1426 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1427 New function.
1428 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1429 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1430 Declare.
1431 * linux-thread-db.c (check_thread_signals): Use
1432 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1433
96df3e28
AB
14342021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * f-exp.y (f77_keywords): Add allocated.
1437 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1438 (operator_length_f): Likewise.
1439 (print_subexp_f): Likewise.
1440 (dump_subexp_body_f): Likewise.
1441 (operator_check_f): Likewise.
1442 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1443
05f68f52
TV
14442021-02-11 Tom de Vries <tdevries@suse.de>
1445
1446 PR symtab/27353
1447 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1448 Return true for DW_FORM_strx.
1449
b260f8d6
TT
14502021-02-11 Tom Tromey <tromey@adacore.com>
1451
1452 PR gdb/27383:
1453 * parse.c (write_exp_symbol_reference): Write sym.block.
1454
bf3386f0
AB
14552021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1456
1457 * NEWS: Mention changes to 'maint info sections'.
1458 * maint.c (match_substring): Return a bool, fix whitespace issue.
1459 (struct single_bfd_flag_info): New struct.
1460 (bfd_flag_info): New static global.
1461 (match_bfd_flags): Return a bool, use bfd_flag_info.
1462 (print_bfd_flags): Use bfd_flag_info.
1463 (maint_print_section_info): Delete trailing whitespace.
1464 (struct maint_info_sections_opts): New struct.
1465 (maint_info_sections_option_defs): New static global.
1466 (maint_info_sections_completer): New function.
1467 (maintenance_info_sections): Use option parsing mechanism.
1468 (_initialize_maint_cmds): Update command help text for 'maint info
1469 sections' and register a command completer.
1470
4790db14
AB
14712021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1474 functionality merged into...
1475 (maint_print_all_sections): ...this new function.
1476 (maintenance_info_sections): Make use of maint_print_all_sections,
1477 allow all objects to be printed even where there's no executable.
1478
1db66e34
AB
14792021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * breakpoint.c (resolve_sal_pc): Make use of
1482 bound_minimal_symbol::obj_section.
1483 * maint.c (maintenance_translate_address): Likewise.
1484 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1485 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1486 member function.
1487 * printcmd.c (info_address_command): Make use of
1488 bound_minimal_symbol::obj_section.
1489
18b8df43
AM
14902021-02-11 Alan Modra <amodra@gmail.com>
1491
1492 * arm-symbian-tdep.c: Delete.
1493 * NEWS: Mention arm-symbian removal.
1494 * Makefile.in: Remove arm-symbian-tdep entries.
1495 * configure.tgt: Remove arm*-*-symbianelf*.
1496 * doc/gdb.texinfo: Remove mention of SymbianOS.
1497 * osabi.c (gdb_osabi_names): Remove "Symbian".
1498 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1499 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1500 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1501 handling.
1502 * testsuite/gdb.base/dup-sect.exp: Likewise.
1503 * testsuite/gdb.base/long_long.exp: Likewise.
1504 * testsuite/gdb.base/solib-weak.exp: Likewise.
1505 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1506 * testsuite/gdb.python/py-section-script.exp: Likewise.
1507 * testsuite/lib/dwarf.exp: Likewise.
1508 * testsuite/lib/gdb.exp: Likewise.
1509
e92c8eb8
AB
15102021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1511
1512 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1513 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1514 (one_or_two_args): New pattern.
1515 (f77_keywords): Add lbound and ubound.
1516 * f-lang.c (fortran_bounds_all_dims): New function.
1517 (fortran_bounds_for_dimension): New function.
1518 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1519 (operator_length_f): Likewise.
1520 (print_subexp_f): Likewise.
1521 (dump_subexp_body_f): Likewise.
1522 (operator_check_f): Likewise.
1523 * std-operator.def (FORTRAN_LBOUND): Define.
1524 (FORTRAN_UBOUND): Define.
1525
a52d653e
AB
15262021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1529 and set_section_index member functions where appropriate.
1530 * coffread.c (coff_symtab_read): Likewise.
1531 (process_coff_symbol): Likewise.
1532 * ctfread.c (set_symbol_address): Likewise.
1533 * dwarf2/read.c (add_partial_symbol): Likewise.
1534 (var_decode_location): Likewise.
1535 * language.c: Likewise.
1536 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1537 (compact_minimal_symbols): Likewise.
1538 (minimal_symbol_upper_bound): Likewise.
1539 * objfiles.c (relocate_one_symbol): Likewise.
1540 * psympriv.h (partial_symbol::obj_section): Likewise.
1541 (partial_symbol::address): Likewise.
1542 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1543 * stabsread.c (scan_file_globals): Likewise.
1544 * symmisc.c (dump_msymbols): Likewise.
1545 * symtab.c (general_symbol_info::obj_section): Likewise.
1546 (fixup_section): Likewise.
1547 (get_msymbol_address): Likewise.
1548 * symtab.h (general_symbol_info::section): Rename to...
1549 (general_symbol_info::m_section): ...this.
1550 (general_symbol_info::set_section_index): New member function.
1551 (general_symbol_info::section_index): Likewise.
1552 (SYMBOL_SECTION): Delete.
1553 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1554 set_section_index member functions where appropriate.
1555 (MSYMBOL_SECTION): Delete.
1556 (symbol::symbol): Update to initialize 'm_section'.
1557 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1558 (process_xcoff_symbol): Likewise.
1559
ebbc3a7d
AB
15602021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1561
1562 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1563 MSYMBOL_OBJ_SECTION.
1564 * findvar.c (language_defn::read_var_value): Likewise.
1565 * infcmd.c (jump_command): Likewise.
1566 * linespec.c (minsym_found): Likewise.
1567 * maint.c (maintenance_translate_address): Likewise.
1568 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1569 (minimal_symbol_upper_bound): Likewise.
1570 * parse.c (find_minsym_type_and_address): Likewise.
1571 (operator_check_standard): Likewise.
1572 * printcmd.c (info_address_command): Likewise.
1573 * symmisc.c (dump_msymbols): Likewise.
1574 (print_symbol): Likewise.
1575 * symtab.c (general_symbol_info::obj_section): Define new
1576 function.
1577 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1578 (find_pc_sect_compunit_symtab): Likewise.
1579 (find_function_start_sal): Likewise.
1580 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1581 MSYMBOL_OBJ_SECTION.
1582 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1583 function.
1584 (SYMBOL_OBJ_SECTION): Delete.
1585 (MSYMBOL_OBJ_SECTION): Delete.
1586
9bb305b3
TT
15872021-02-09 Tom Tromey <tom@tromey.com>
1588
1589 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1590
cf2b2075
TV
15912021-02-09 Tom de Vries <tdevries@suse.de>
1592
1593 PR symtab/27341
1594 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1595 construct an array type. Add assert to ensure that element_type is
1596 not being modified.
1597
03642b71
AB
15982021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1599
1600 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1601 (gcore_collect_regset_section_cb): Delete.
1602 (gcore_collect_thread_registers): Delete.
1603 (gcore_build_thread_register_notes): Delete.
1604 (gcore_find_signalled_thread): Delete.
1605 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1606 'gdbarch' and 'thread_info' declarations.
1607 (gcore_build_thread_register_notes): Delete declaration.
1608 (gcore_find_signalled_thread): Likewise.
1609 * fbsd-tdep.c: Remove 'gcore.h' include.
1610 (struct fbsd_collect_regset_section_cb_data): New struct.
1611 (fbsd_collect_regset_section_cb): New function.
1612 (fbsd_collect_thread_registers): New function.
1613 (struct fbsd_corefile_thread_data): New struct.
1614 (fbsd_corefile_thread): New function.
1615 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1616 * linux-tdep.c: Remove 'gcore.h' include.
1617 (struct linux_collect_regset_section_cb_data): New struct.
1618 (linux_collect_regset_section_cb): New function.
1619 (linux_collect_thread_registers): New function.
1620 (linux_corefile_thread): Call Linux specific code.
1621 (find_signalled_thread): New function.
1622 (linux_make_corefile_notes): Call find_signalled_thread.
1623
f73e424f
TT
16242021-02-09 Tom Tromey <tromey@adacore.com>
1625
1626 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1627 not_lval value.
1628 * value.c (value_contents_copy_raw): Now static.
1629 * value.h (value_contents_copy_raw): Don't declare.
1630
a4f0544b
TT
16312021-02-09 Tom Tromey <tromey@adacore.com>
1632
1633 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1634 fields.
1635
9b3e4b5d
SV
16362021-02-08 Shahab Vahedi <shahab@synopsys.com>
1637
1638 PR tdep/27369
1639 * arc-linux-tdep.c (handle_atomic_sequence): New.
1640 (arc_linux_software_single_step): Call handle_atomic_sequence().
1641
29db1eb3
AB
16422021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1643
1644 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1645 function.
1646 (REQUIRE_WINDOW): Call is_valid member function.
1647 (REQUIRE_WINDOW_FOR_SETTER): New define.
1648 (gdbpy_tui_is_valid): Call is_valid member function.
1649 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1650 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1651 tui_active too.
1652 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1653 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1654 the function.
1655
e0c23e11
AB
16562021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1659 for the title is not nullptr.
1660
1cf23996
AB
16612021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1662
1663 * tui-layout.c (saved_tui_windows): Delete.
1664 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1665 call new get_windows member function instead.
1666 (tui_get_window_by_name): Check in tui_windows.
1667 (tui_layout_window::apply): Don't add to tui_windows.
1668 * tui-layout.h (tui_layout_base::get_windows): New member function.
1669 (tui_layout_window::get_windows): Likewise.
1670 (tui_layout_split::get_windows): Likewise.
1671
a53a2657
AB
16722021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1675 of the window objects.
1676
2708dbbd
AB
16772021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * python/python.c (gdbpy_print_stack): Reformat an error message.
1680
cd074e04
AB
16812021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 * tui/tui-interp.c (tui_command_line_handler): New function.
1684 (tui_interp::resume): Register tui_command_line_handler as the
1685 input_handler.
1686 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1687 function.
1688 (tui_getc_1): Delete handling of '\n' and '\r'.
1689 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1690
4cf28e91
HD
16912021-02-07 Hannes Domani <ssbssa@yahoo.de>
1692
1693 * tui/tui-regs.c (tui_data_window::display_registers_from):
1694 Mark invisible register sub windows.
1695 (tui_data_window::check_register_values): Ignore invisible
1696 register sub windows.
1697
3537bc23
HD
16982021-02-07 Hannes Domani <ssbssa@yahoo.de>
1699
1700 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1701 n_spaces with a negative value.
1702
5fc2d6aa
HD
17032021-02-07 Hannes Domani <ssbssa@yahoo.de>
1704
1705 * tui/tui-regs.c (tui_data_window::display_registers_from):
1706 Add refresh_window call.
1707
83962f83
HD
17082021-02-07 Hannes Domani <ssbssa@yahoo.de>
1709
1710 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1711
0110ec82
SM
17122021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1713
1714 * symmisc.c (std_in, std_out, std_err): Remove.
1715 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1716
7c6944ab
TV
17172021-02-05 Tom de Vries <tdevries@suse.de>
1718
1719 PR breakpoints/27330
1720 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1721 glibc object file has debug info.
1722
e77b0004
TV
17232021-02-05 Tom de Vries <tdevries@suse.de>
1724
1725 PR symtab/27333
1726 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1727
0e857c82
TV
17282021-02-05 Tom de Vries <tdevries@suse.de>
1729
1730 PR breakpoints/27313
1731 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1732 syscall numbers.
1733
bdfea17e
TT
17342021-02-05 Tom Tromey <tom@tromey.com>
1735
1736 * compile/compile-c-support.c (get_compile_context)
1737 (c_get_compile_context, cplus_get_compile_context): Change return
1738 type.
1739 * language.c (language_defn::get_compile_instance): New method.
1740 * language.h (language_defn::get_compile_instance): Change return
1741 type. No longer inline.
1742 * c-lang.c (c_language::get_compile_instance): Change return type.
1743 (cplus_language::get_compile_instance): Change return type.
1744 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1745 Change return type.
1746 * compile/compile.c (compile_to_object): Update.
1747
1b30f421
TT
17482021-02-05 Tom Tromey <tom@tromey.com>
1749
1750 * parser-defs.h (write_exp_symbol_reference): Declare.
1751 * parse.c (write_exp_symbol_reference): New function.
1752 * p-exp.y (variable): Use write_exp_symbol_reference.
1753 * m2-exp.y (variable): Use write_exp_symbol_reference.
1754 * f-exp.y (variable): Use write_exp_symbol_reference.
1755 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1756 * c-exp.y (variable): Use write_exp_symbol_reference.
1757
ae710496
TV
17582021-02-05 Tom de Vries <tdevries@suse.de>
1759
1760 PR exp/27265
1761 * valarith.c (complex_binop): Throw an error if complex type can't
1762 be created.
1763
d3b54e63
TV
17642021-02-05 Tom de Vries <tdevries@suse.de>
1765
1766 PR symtab/27307
1767 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1768 return.
1769
fc9a13fb
TV
17702021-02-05 Tom de Vries <tdevries@suse.de>
1771
1772 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1773
04b4939b
MF
17742021-02-04 Mike Frysinger <vapier@gentoo.org>
1775
1776 * configure.tgt (riscv*-*-*): Set gdb_sim.
1777
6ff267e1
SM
17782021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1779
1780 * target.c (target_is_non_stop_p): Return bool.
1781 * target.h (target_is_non_stop_p): Return bool.
1782
fdbc5215
SM
17832021-02-04 Simon Marchi <simon.marchi@efficios.com>
1784
1785 * record-full.c (record_full_async_inferior_event_handler):
1786 Don't clear async event handler.
1787 (record_full_base_target::wait): Clear async event handler at
1788 beginning.
1789
85d3ad8e
SM
17902021-02-04 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * record-btrace.c (record_btrace_handle_async_inferior_event):
1793 Don't clear async event handler.
1794 (record_btrace_target::wait): Clear async event handler at
1795 beginning.
1796
baa8575b
SM
17972021-02-04 Simon Marchi <simon.marchi@efficios.com>
1798
1799 * remote.c (remote_target::wait): Clear async event handler at
1800 beginning, mark if needed at the end.
1801 (remote_async_inferior_event_handler): Don't set or clear async
1802 event handler.
1803
6b36ddeb
SM
18042021-02-04 Simon Marchi <simon.marchi@efficios.com>
1805
1806 * async-event.h (async_event_handler_func): Add documentation.
1807 * async-event.c (check_async_event_handlers): Don't clear
1808 async_event_handler ready flag.
1809 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1810 flag.
1811 * record-btrace.c (record_btrace_handle_async_inferior_event):
1812 Likewise.
1813 * record-full.c (record_full_async_inferior_event_handler):
1814 Likewise.
1815 * remote-notif.c (remote_async_get_pending_events_handler):
1816 Likewise.
1817 * remote.c (remote_async_inferior_event_handler): Likewise.
1818
72d383bb
SM
18192021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1820
1821 * infrun.c (handle_inferior_event): Move stop_soon variable to
1822 inner scope.
1823
408f6686
PA
18242021-02-03 Pedro Alves <pedro@palves.net>
1825
1826 * infcmd.c (detach_command): Hold strong reference to target, and
1827 if all-stop on entry, restart threads on exit.
1828 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1829 (restart_stepped_thread): ... this new function. Also handle
1830 trap_expected.
1831 (restart_after_all_stop_detach): New function.
1832 * infrun.h (restart_after_all_stop_detach): Declare.
1833
ac7d717c
PA
18342021-02-03 Pedro Alves <pedro@palves.net>
1835
1836 * infrun.c (struct step_over_info): Initialize fields.
1837 (prepare_for_detach): Handle ongoing in-line step over.
1838
e87f0fe8
PA
18392021-02-03 Pedro Alves <pedro@palves.net>
1840
1841 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1842 here...
1843 * remote.c (remote_target::remote_detach_1): ... and here ...
1844 * target.c (target_detach): ... instead of here.
1845 * target.h (target_ops::detach): Add comment.
1846
8ff53139
PA
18472021-02-03 Pedro Alves <pedro@palves.net>
1848
1849 * infrun.c (struct wait_one_event): Move higher up.
1850 (prepare_for_detach): Abort in-progress displaced steps instead of
1851 letting them complete.
1852 (handle_one): If the inferior is detaching, don't add the thread
1853 back to the global step-over chain.
1854 (restart_threads): Don't restart threads if detaching.
1855 (handle_signal_stop): Remove inferior::detaching reference.
1856
91475068
PA
18572021-02-03 Pedro Alves <pedro@palves.net>
1858
1859 * infrun.c (prepare_for_detach): Don't release scoped_restore
1860 before returning.
1861
d758e62c
PA
18622021-02-03 Pedro Alves <pedro@palves.net>
1863
1864 * infrun.c (handle_one): New function, factored out from ...
1865 (stop_all_threads): ... here.
1866
b0083dd7
PA
18672021-02-03 Pedro Alves <pedro@palves.net>
1868
1869 * remote.c (remote_notif_stop_ack): Don't error out on
1870 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1871 (remote_target::discard_pending_stop_replies): Don't delete
1872 in-flight notification; instead, clear its contents.
1873
621cc310
PA
18742021-02-03 Pedro Alves <pedro@palves.net>
1875
1876 * remote.c (extended_remote_target::attach): Set target async in
1877 the target-non-stop path too.
1878
2ab76a18
PA
18792021-02-03 Pedro Alves <pedro@palves.net>
1880
1881 PR gdb/27055
1882 * infrun.c (handle_signal_stop): Move main context_switch call
1883 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1884
2e3773ff
LS
18852021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1886
1887 * NEWS (Changed commands): Add entry for the behavior change of
1888 the inferior command.
1889 * inferior.c (inferior_command): When no argument is given to the
1890 inferior command, display info about the currently selected
1891 inferior.
1892
e57933dc
SM
18932021-02-02 Simon Marchi <simon.marchi@efficios.com>
1894
1895 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1896 a sect_offset.
1897 (read_attribute_reprocess): Adjust.
1898
2b0c7f41
SM
18992021-02-02 Simon Marchi <simon.marchi@efficios.com>
1900
1901 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1902 <gnu_ranges_base>: ... this...
1903 <rnglists_base>: ... and this.
1904 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1905 <gnu_ranges_base>: ... this...
1906 <rnglists_base>: ... and this.
1907 (read_cutu_die_from_dwo): Adjust
1908 (dwarf2_get_pc_bounds): Adjust
1909 (dwarf2_record_block_ranges): Adjust.
1910 (read_full_die_1): Adjust
1911 (partial_die_info::read): Adjust.
1912 (read_rnglist_index): Adjust.
1913
a1c40103
SM
19142021-02-02 Simon Marchi <simon.marchi@efficios.com>
1915
1916 PR gdb/26813
1917 * dwarf2/read.c (read_loclists_rnglists_header): Add
1918 header_offset parameter and use it.
1919 (read_loclist_index): Read header of the current contribution,
1920 not the one at the beginning of the section.
1921 (read_rnglist_index): Likewise.
1922
b1829e1b
SM
19232021-02-02 Simon Marchi <simon.marchi@efficios.com>
1924
1925 PR gdb/26813
1926 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1927 requires_reprocessing flag.
1928 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1929 DW_FORM_loclistx.
1930 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1931 and DW_FORM_loclistx.
1932 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1933 instead of set_address for DW_FORM_loclistx and
1934 DW_FORM_rnglistx.
1935
0c800c6e
SM
19362021-02-02 Simon Marchi <simon.marchi@efficios.com>
1937
1938 * dwarf2/read.c (read_loclist_index): Remove bound check for
1939 start of offset.
1940 (read_rnglist_index): Likewise.
1941
05787bad
SM
19422021-02-02 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1945 of the offset.
1946
5e4d9bbc
SM
19472021-02-02 Simon Marchi <simon.marchi@efficios.com>
1948
1949 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1950
a0c1eeba
SM
19512021-02-02 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * dwarf2/read.c (read_loclist_index): Change complaints into
1954 errors.
1955
2bd3e4b8
TV
19562021-02-02 Tom de Vries <tdevries@suse.de>
1957
1958 PR symtab/24620
1959 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1960 psymtab == nullptr.
1961
82a1fd3a
AB
19622021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1965 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1966 here from linux-tdep.c and given a new name. Minor cleanups.
1967 (gcore_collect_regset_section_cb): Likewise.
1968 (gcore_collect_thread_registers): Likewise.
1969 (gcore_build_thread_register_notes): Likewise.
1970 (gcore_find_signalled_thread): Likewise.
1971 * gcore.h (gcore_build_thread_register_notes): Declare.
1972 (gcore_find_signalled_thread): Declare.
1973 * fbsd-tdep.c: Add 'gcore.h' include.
1974 (struct fbsd_collect_regset_section_cb_data): Delete.
1975 (fbsd_collect_regset_section_cb): Delete.
1976 (fbsd_collect_thread_registers): Delete.
1977 (struct fbsd_corefile_thread_data): Delete.
1978 (fbsd_corefile_thread): Delete.
1979 (fbsd_make_corefile_notes): Call
1980 gcore_build_thread_register_notes instead of the now deleted
1981 FreeBSD code.
1982 * linux-tdep.c: Add 'gcore.h' include.
1983 (struct linux_collect_regset_section_cb_data): Delete.
1984 (linux_collect_regset_section_cb): Delete.
1985 (linux_collect_thread_registers): Delete.
1986 (linux_corefile_thread): Call
1987 gcore_build_thread_register_notes.
1988 (find_signalled_thread): Delete.
1989 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1990
ebde6f2d
TV
19912021-01-29 Tom de Vries <tdevries@suse.de>
1992
1993 PR breakpoints/26063
1994 * infrun.c (process_event_stop_test): Reset
1995 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1996 changed.
1997
0f93c3a2
AB
19982021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1999
2000 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2001 assert. Extend the header comment.
2002
f237f998
AB
20032021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2006 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2007 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2008 (tui_locator_win_info_ptr): Delete declaration.
2009 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2010 (tui_disasm_window::set_contents): Fetch state from tui_location
2011 global.
2012 (tui_get_begin_asm_address): Likewise.
2013 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2014 for locator window.
2015 (get_locator_window): Delete.
2016 (initialize_known_windows): Treat locator window just like all the
2017 rest.
2018 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2019 (tui_source_window::set_contents): Fetch state from tui_location
2020 global.
2021 (tui_source_window::showing_source_p): Likewise.
2022 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2023 (_locator): Delete.
2024 (tui_locator_win_info_ptr): Delete.
2025 (tui_locator_window::make_status_line): Fetch state from
2026 tui_location global.
2027 (tui_locator_window::rerender): Remove check of 'handle',
2028 reindent function body.
2029 (tui_locator_window::set_locator_fullname): Delete.
2030 (tui_locator_window::set_locator_info): Delete.
2031 (tui_update_locator_fullname): Delete.
2032 (tui_show_frame_info): Likewise.
2033 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2034 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2035 tui/tui-location.h and renamed to
2036 tui_location_tracker::set_location.
2037 (tui_locator_window::set_locator_fullname): Moved to
2038 tui/tui-location.h and renamed to
2039 tui_location_tracker::set_fullname.
2040 (tui_locator_window::full_name): Delete.
2041 (tui_locator_window::proc_name): Delete.
2042 (tui_locator_window::line_no): Delete.
2043 (tui_locator_window::addr): Delete.
2044 (tui_locator_window::gdbarch): Delete.
2045 (tui_update_locator_fullname): Delete declaration.
2046 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2047 for locator window.
2048 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2049 (tui_display_main): Call function on tui_location directly.
2050 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2051 * tui/tui-location.c: New file.
2052 * tui/tui-location.h: New file.
2053
8ee511af
SM
20542021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2055
2056 * gdbtypes.h (get_type_arch): Rename to...
2057 (struct type) <arch>: ... this, update all users.
2058
6ac37371
SM
20592021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2060
2061 * gdbtypes.h (struct type) <arch>: Rename to...
2062 <arch_owner>: ... this, update all users.
2063 <objfile>: Rename to...
2064 <objfile_owner>: ... this, update all users.
2065
24cf6389
AB
20662021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * gdbcmd.h (execute_command_to_string): Update comment.
2069 * top.c (execute_command_to_string): Update header comment.
2070
2a7f6487
TV
20712021-01-28 Tom de Vries <tdevries@suse.de>
2072
2073 PR breakpoints/27205
2074 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2075 (create_longjmp_master_breakpoint_names): New function, factored out
2076 of ...
2077 (create_longjmp_master_breakpoint): ... here. Only try to install
2078 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2079 breakpoint in libc.so failed.
2080
59b59f08
LS
20812021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2082
2083 PR gdb/27133
2084 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2085 unique_ptr is released when the wrapped pointer is kept for later
2086 use.
2087
807f647c
MM
20882021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2089
2090 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2091 BLR and BR instructions.
2092 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2093 (enum aarch64_masks): New.
2094
4ef367bf
TT
20952021-01-26 Tom Tromey <tromey@adacore.com>
2096
2097 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2098 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2099 (windows_init_thread_list, windows_nat::handle_load_dll)
2100 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2101 (windows_nat_target::resume)
2102 (windows_nat_target::get_windows_debug_event)
2103 (windows_nat_target::interrupt, windows_xfer_memory)
2104 (windows_nat_target::close): Update.
2105 * nat/windows-nat.c (DEBUG_EVENTS): Use
2106 debug_prefixed_printf_cond.
2107 (matching_pending_stop, fetch_pending_stop)
2108 (continue_last_debug_event): Update.
2109
4cb1265b
MS
21102020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2111
2112 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2113 elfcore_write_file_note.
2114
d0cc52bd
SV
21152021-01-26 Shahab Vahedi <shahab@synopsys.com>
2116
2117 * arc-tdep.c (arc_add_reggroups): New function.
2118 (arc_gdbarch_init): Call arc_add_reggroups.
2119
ac3571d9 21202021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2121
2122 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2123
9f6c202e
TV
21242021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2125 Simon Marchi <simon.marchi@polymtl.ca>
2126 Tom de Vries <tdevries@suse.de>
2127
2128 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2129 DW_AT_ranges.
2130
a625a8c9
TT
21312021-01-25 Tom Tromey <tromey@adacore.com>
2132
2133 * dwarf2/read.c (get_mpz): New function.
2134 (get_dwarf2_rational_constant): Use it.
2135
19184910
TT
21362021-01-25 Tom Tromey <tromey@adacore.com>
2137
2138 * ada-lang.c (resolve_subexp): Handle array context.
2139
b10bae18
TT
21402021-01-23 Tom Tromey <tom@tromey.com>
2141
2142 PR compile/25575
2143 * compile/compile-loc2c.c (note_register): New function.
2144 (pushf_register_address, pushf_register): Use it.
2145
3637a558
TT
21462021-01-23 Tom Tromey <tom@tromey.com>
2147
2148 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2149 Change type of "registers_used".
2150 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2151 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2152 (locexpr_generate_c_location, loclist_generate_c_location): Change
2153 type of "registers_used".
2154 * compile/compile.h (compile_dwarf_expr_to_c)
2155 (compile_dwarf_bounds_to_c): Update.
2156 * compile/compile-loc2c.c (pushf_register_address)
2157 (pushf_register, do_compile_dwarf_expr_to_c)
2158 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2159 of "registers_used".
2160 * compile/compile-c.h (generate_c_for_variable_locations):
2161 Update.
2162 * compile/compile-c-symbols.c (generate_vla_size)
2163 (generate_c_for_for_one_variable): Change type of
2164 "registers_used".
2165 (generate_c_for_variable_locations): Return std::vector.
2166 * compile/compile-c-support.c (generate_register_struct): Change
2167 type of "registers_used".
2168 (compute): Update.
2169
9f7f6cb8
TT
21702021-01-23 Tom Tromey <tom@tromey.com>
2171
2172 * compile/compile-internal.h (class compile_instance)
2173 <set_arguments>: Change return type.
2174 * compile/compile.c (compile_to_object): Remove call to reset.
2175 (compile_instance::set_arguments): Change return type.
2176
dd5ca05f
SM
21772021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2178
2179 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2180 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2181
d3ee35db
LS
21822021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2183
2184 * Makefile.in (SELFTESTS_SRCS): Add
2185 unittests/gdb_tilde_expand-selftests.c.
2186 * unittests/gdb_tilde_expand-selftests.c: New file.
2187
9d2d8a16
AB
21882021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 PR cli/25956
2191 * NEWS: Mention new command.
2192 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2193 (version_style): Define.
2194 (cli_style_option::cli_style_option): Add intensity parameter, and
2195 use as appropriate.
2196 (_initialize_cli_style): Register version style set/show commands.
2197 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2198 (version_style): Declare.
2199 * top.c (print_gdb_version): Use version_stype, and styled_string
2200 to print the GDB version string.
2201
e7b43072
AB
22022021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2203
2204 * utils.c (emit_style_escape): Only emit an escape sequence if the
2205 requested style is different than the current applied style.
2206 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2207 current applied_style.
2208 (fputs_styled): Remove is_default check.
2209 (fputs_styled_unfiltered): Likewise.
2210 (vfprintf_styled_no_gdbfmt): Likewise.
2211
2189c312
SM
22122021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2213
2214 * remote.h (remote_debug_printf): New.
2215 (remote_debug_printf_nofunc): New.
2216 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2217 * remote.c: Use above macros throughout file.
2218
02349803
SM
22192021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2220
2221 * remote.h (remote_debug): Change to bool.
2222 * remote.c (remote_debug): Change to bool.
2223 (_initialize_remote): Adjust.
2224
cda09ec9
SM
22252021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * target.h (remote_debug): Move to...
2228 * remote.h (remote_debug): ... here.
2229 * top.c (remote_debug): Move to...
2230 * remote.c (remote_debug): ... here.
2231 * remote-sim.c: Include remote.h.
2232
baf2b57f
SM
22332021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2234
2235 * cli/cli-cmds.c (show_remote_debug): Remove.
2236 (show_remote_timeout): Remove.
2237 (_initialize_cli_cmds): Don't register commands.
2238 * remote.c (show_remote_debug): Move here.
2239 (show_remote_timeout): Move here.
2240 (_initialize_remote): Register commands.
2241
344e9841
SM
22422021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2243
2244 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2245 type::objfile method instead.
2246
30625020
SM
22472021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2248
2249 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2250 use the type::is_objfile_owned method.
2251
5b7d941b
SM
22522021-01-22 Simon Marchi <simon.marchi@efficios.com>
2253
2254 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2255 (TYPE_OWNER): Remove.
2256 (TYPE_OBJFILE): Adjust.
2257 (struct main_type) <flag_objfile_owned>: Rename to...
2258 <m_flag_objfile_owned>: ... this.
2259 <owner>: Rename to...
2260 <m_owner>: ... this.
2261 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2262 methods.
2263 (TYPE_ALLOC): Adjust.
2264 * gdbtypes.c (alloc_type): Adjust.
2265 (alloc_type_arch): Adjust.
2266 (alloc_type_copy): Adjust.
2267 (get_type_arch): Adjust.
2268 (smash_type): Adjust.
2269 (lookup_array_range_type): Adjust.
2270 (recursive_dump_type): Adjust.
2271 (copy_type_recursive): Adjust.
2272 * compile/compile-c-types.c (convert_func): Adjust.
2273 (convert_type_basic): Adjust.
2274 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2275 Adjust.
2276 * language.c
2277 (language_arch_info::type_and_symbol::alloc_type_symbol):
2278 Adjust.
2279
d5d24e12
LM
22802021-01-21 Luis Machado <luis.machado@linaro.org>
2281
2282 * coffread.c (enter_linenos): Passing string to complaint.
2283 * valops.c (value_assign): Make array view.
2284
a59902a7
SM
22852021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2286
2287 * auto-load.h (debug_auto_load): Move here.
2288 (auto_load_debug_printf): New.
2289 * auto-load.c: Use auto_load_debug_printf.
2290 (debug_auto_load): Move to header.
2291 * linux-thread-db.c (try_thread_db_load): Use
2292 auto_load_debug_printf.
2293 * main.c (captured_main_1): Likewise.
2294
d3abc0ce
SM
22952021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2296
2297 * f-valprint.c (f77_array_offset_tbl): Remove.
2298
1e15fcac
SM
22992021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2300
2301 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2302
439706e6
SM
23032021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2304
2305 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2306 of gdb_select.
2307
325d39e4
HD
23082021-01-21 Hannes Domani <ssbssa@yahoo.de>
2309
2310 PR python/19151
2311 * python/py-breakpoint.c (bppy_get_location): Handle
2312 bp_hardware_breakpoint.
2313 (bppy_init): Likewise.
2314 (gdbpy_breakpoint_created): Likewise.
2315
7cb6d92a
SM
23162021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2317
2318 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2319
d4dd4fca
SM
23202021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2321
2322 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2323 (_initialize_gdb_bfd): Adjust.
2324
de53369b
SM
23252021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2326
2327 PR gdb/26828
2328 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2329
17e593e9
SM
23302021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2331
2332 * dwarf2/read.c (follow_die_offset): Add logging.
2333 (dwarf2_per_objfile::age_comp_units): Add logging.
2334
6bd434d6
SM
23352021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2336
2337 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2338 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2339 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2340 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2341 * arm-tdep.c (struct frame_unwind): Make static.
2342 * auto-load.c (auto_load_safe_path_vec): Make static.
2343 * csky-tdep.c (csky_stub_unwind): Make static.
2344 * gdbarch.c (gdbarch_data_registry): Make static.
2345 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2346 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2347 * i386-tdep.c (i386_frame_setup_skip_insns,
2348 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2349 Make static.
2350 * infrun.c (observer_mode): Make static.
2351 * linux-nat.c (sigchld_action): Make static.
2352 * linux-thread-db.c (thread_db_list): Make static.
2353 * maint-test-options.c (maintenance_test_options_list):
2354 * mep-tdep.c (mep_csr_registers): Make static.
2355 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2356 (stats): Make static.
2357 * nat/linux-osdata.c (struct osdata_type): Make static.
2358 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2359 * progspace.c (last_program_space_num): Make static.
2360 * python/py-param.c (struct parm_constant): Remove struct type
2361 name.
2362 (parm_constants): Make static.
2363 * python/py-record-btrace.c (btpy_list_methods): Make static.
2364 * python/py-record.c (recpy_gap_type): Make static.
2365 * record.c (record_goto_cmdlist): Make static.
2366 * regcache.c (regcache_descr_handle): Make static.
2367 * registry.h (DEFINE_REGISTRY): Make definition static.
2368 * symmisc.c (std_in, std_out, std_err): Make static.
2369 * top.c (previous_saved_command_line): Make static.
2370 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2371 static.
2372 * unittests/command-def-selftests.c (nr_duplicates,
2373 nr_invalid_prefixcmd, lists): Make static.
2374 * unittests/observable-selftests.c (test_notification): Make
2375 static.
2376 * unittests/optional/assignment/1.cc (counter): Make static.
2377 * unittests/optional/assignment/2.cc (counter): Make static.
2378 * unittests/optional/assignment/3.cc (counter): Make static.
2379 * unittests/optional/assignment/4.cc (counter): Make static.
2380 * unittests/optional/assignment/5.cc (counter): Make static.
2381 * unittests/optional/assignment/6.cc (counter): Make static.
2382
a6c11cbb
JS
23832021-01-20 Joel Sherrill <joel@rtems.org>
2384
2385 PR gdb/27219
2386 * remote.c (struct remote_thread_info) <resume_state>: Rename
2387 to...
2388 <get_resume_state>: ... this.
2389 (remote_target::resume): Adjust.
2390 (remote_target::commit_resume): Adjust.
2391 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2392
6f52fdf4
SDJ
23932021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2394 Tom Tromey <tom@tromey.com>
2395
2396 * stap-probe.c (stap_parse_single_operand): Handle '!'
2397 operator.
2398 (stap_parse_argument_conditionally): Likewise.
2399 Skip spaces after processing open-parenthesis sub-expression.
2400 (stap_parse_argument_1): Skip spaces after call to
2401 stap_parse_argument_conditionally.
2402 Handle case when right-side expression is a parenthesized
2403 sub-expression.
2404 Skip spaces after call to stap_parse_argument_1.
2405
1c3b85ad
LS
24062021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2407
2408 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2409
a9a87d35
LM
24102021-01-19 Luis Machado <luis.machado@linaro.org>
2411
2412 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2413 memory and save data.
2414 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2415 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2416 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2417 (trad_frame_value_bytes_p): Remove.
2418 (trad_frame_reset_saved_regs): Adjust documentation.
2419 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2420 constructor and reset the state of the registers.
2421 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2422 (trad_frame_value_bytes_p, trad_frame_set_value)
2423 (trad_frame_set_realreg, trad_frame_set_addr)
2424 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2425 (trad_frame_set_reg_realreg): Update to call member function.
2426 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2427 (trad_frame_get_prev_register): Likewise.
2428
2429 * aarch64-tdep.c (aarch64_analyze_prologue)
2430 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2431 (aarch64_prologue_prev_register): Update to use member functions.
2432 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2433 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2434 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2435 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2436 (arm_make_epilogue_frame_cache): Likewise.
2437 * avr-tdep.c (avr_frame_unwind_cache)
2438 (avr_frame_prev_register): Likewise.
2439 * cris-tdep.c (cris_scan_prologue): Likewise.
2440 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2441 * frv-tdep.c (frv_analyze_prologue): Likewise.
2442 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2443 * lm32-tdep.c (lm32_frame_cache): Likewise.
2444 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2445 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2446 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2447 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2448 (reset_saved_regs): Adjust to set realreg.
2449 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2450 call member functions.
2451 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2452 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2453 (s390_backchain_frame_unwind_cache): Likewise.
2454 * score-tdep.c (score7_analyze_prologue)
2455 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2456 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2457 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2458 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2459 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2460 * tilegx-tdep.c (tilegx_analyze_prologue)
2461 (tilegx_frame_cache): Likewise.
2462 * v850-tdep.c (v850_frame_cache): Likewise.
2463 * vax-tdep.c (vax_frame_cache): Likewise.
2464
bdec2917
LM
24652021-01-19 Luis Machado <luis.machado@linaro.org>
2466
2467 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2468 of buffer + length.
2469 (put_frame_register_bytes): Likewise.
2470 Adjust documentation.
2471 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2472 (safe_frame_unwind_memory): Likewise.
2473 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2474 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2475 gdb::array_view.
2476 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2477 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2478 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2479 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2480 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2481 * dwarf2/loc.c (rw_pieced_value): Likewise.
2482 * hppa-tdep.c (hppa_frame_cache): Likewise.
2483 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2484 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2485 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2486 (i386_linux_rt_sigtramp_start): Likewise.
2487 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2488 * i386-tdep.c (i386_register_to_value): Likewise.
2489 * i387-tdep.c (i387_register_to_value): Likewise.
2490 * ia64-tdep.c (ia64_register_to_value): Likewise.
2491 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2492 (m32r_linux_rt_sigtramp_start): Likewise.
2493 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2494 * m68k-tdep.c (m68k_register_to_value): Likewise.
2495 * mips-tdep.c (mips_register_to_value)
2496 (mips_value_to_register): Likewise.
2497 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2498 (ppcfbsd_sigtramp_frame_cache): Likewise.
2499 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2500 (ppcobsd_sigtramp_frame_cache): Likewise.
2501 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2502 (rs6000_register_to_value): Likewise.
2503 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2504 * tramp-frame.c (tramp_frame_start): Likewise.
2505 * valops.c (value_assign): Likewise.
2506
ccbe4c82
LM
25072021-01-19 Luis Machado <luis.machado@linaro.org>
2508
2509 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2510 array_view.
2511 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2512 instead of buffer and size.
2513 (trad_frame_set_reg_value_bytes): Likewise.
2514 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2515 (trad_frame_set_value_bytes): Likewise.
2516
0e7620dc
MF
25172021-01-18 Mike Frysinger <vapier@gentoo.org>
2518
2519 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2520
6a9ad81c
AB
25212021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2522
2523 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2524 (riscv_fbsd_gregset): Use riscv_supply_regset.
2525 (riscv_fbsd_fpregset): Likewise.
2526 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2527 (riscv_linux_fregset): Likewise.
2528 * riscv-tdep.c (riscv_supply_regset): Define new function.
2529 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2530
d3d7d1ba
TV
25312021-01-18 Tom de Vries <tdevries@suse.de>
2532
2533 PR tdep/27172
2534 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2535 New macro.
2536 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2537 for SEGV_BNDERR.
2538
aa2838cc
SM
25392021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * remote.c (class remote_target) <remote_hostio_send_command,
2542 remote_hostio_parse_result>: Constify parameter.
2543 (remote_hostio_parse_result): Likewise.
2544 (remote_target::remote_hostio_send_command): Adjust.
2545 (remote_target::remote_hostio_pread_vFile): Adjust.
2546 (remote_target::fileio_readlink): Adjust.
2547 (remote_target::fileio_fstat): Adjust.
2548
b5c8f22d
SM
25492021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * remote.c (remote_target::start_remote): Move wait_status to
2552 narrower scope.
2553
e3b2741b
SM
25542021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2555
2556 * remote.c (class remote_target):
2557 <add_current_inferior_and_thread>: Constify parameter.
2558 (stop_reply_extract_thread): Likewise.
2559 (remote_target::get_current_thread): Likewise.
2560 (remote_target::add_current_inferior_and_thread): Likewise.
2561
cecb1912
SM
25622021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * remote.c (class remote_target)
2565 <remote_unpack_thread_info_response,
2566 parse_threadlist_response>: Constify parameter and/or return
2567 value and or local variable.
2568 (stub_unpack_int): Likewise.
2569 (unpack_nibble): Likewise.
2570 (unpack_byte): Likewise.
2571 (unpack_int): Likewise.
2572 (unpack_string): Likewise.
2573 (unpack_threadid): Likewise.
2574 (remote_target::remote_unpack_thread_info_response): Likewise.
2575 (remote_target::parse_threadlist_response): Likewise.
2576
5a11fff0
AB
25772021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2578
2579 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2580
17e89137
LS
25812021-01-14 Lancelot Six <lsix@lancelotsix.com>
2582
2583 * MAINTAINERS (Write After Approval): Add myself.
2584
58eadc4b
BE
25852021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2586
2587 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2588 because is_trivially_default_constructible was first implemented with
2589 gcc-5.
2590
5fae2a2c
TV
25912021-01-14 Tom de Vries <tdevries@suse.de>
2592
2593 PR breakpoints/27151
2594 * objfiles.h (in_plt_section): Handle .plt.sec.
2595
8f66807b
AB
25962021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2597
2598 PR gdb/26819
2599 * remote.c
2600 (remote_target::select_thread_for_ambiguous_stop_reply): New
2601 member function.
2602 (remote_target::process_stop_reply): Call
2603 select_thread_for_ambiguous_stop_reply.
2604
bd497355
SM
26052021-01-13 Simon Marchi <simon.marchi@efficios.com>
2606
2607 * record-btrace.c (class record_btrace_target): Remove.
2608 (record_btrace_target::commit_resume): Remove.
2609 * record-full.c (class record_full_target): Remove.
2610 (record_full_target::commit_resume): Remove.
2611
c9d22089
SM
26122021-01-13 Simon Marchi <simon.marchi@efficios.com>
2613
2614 * remote.c (enum class resume_state): New.
2615 (struct resumed_pending_vcont_info): New.
2616 (struct remote_thread_info) <resume_state, set_not_resumed,
2617 set_resumed_pending_vcont, resumed_pending_vcont_info,
2618 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2619 New.
2620 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2621 (remote_target::remote_add_thread): Adjust.
2622 (remote_target::process_initial_stop_replies): Adjust.
2623 (remote_target::resume): Adjust.
2624 (remote_target::commit_resume): Rely on state in
2625 remote_thread_info and not on tp->executing.
2626 (remote_target::process_stop_reply): Adjust.
2627
d8d1feb4
SM
26282021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2629
2630 * arc-tdep.h (arc_debug_printf): New.
2631 * arc-tdep.c: Use arc_debug_printf.
2632 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2633 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2634 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2635
fb0f5031
SM
26362021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2637
2638 * arc-tdep.h (arc_debug): Change type to bool.
2639 * arc-tdep.c (arc_debug): Change type to bool.
2640 (arc_analyze_prologue): Adjust.
2641 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2642 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2643
5bf7e91b
SM
26442021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2645
2646 * auto-load.c (auto_load_objfile_script_1): Use bool.
2647 (execute_script_contents): Use bool.
2648
db972fce
SM
26492021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2650
2651 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2652 comment here.
2653 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2654 comment to header.
2655 * extension-priv.h (struct extension_language_script_ops)
2656 <auto_load_enabled>: Return bool.
2657 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2658 comment here.
2659 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2660 comment to header.
2661 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2662 move comment here.
2663 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2664 move comment to header.
2665 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2666 move comment here.
2667 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2668 move comment to header.
2669
5e12f48f
SM
26702021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2671
2672 * auto-load.h (file_is_auto_load_safe): Change return type to
2673 bool, move comment here.
2674 * auto-load.c (file_is_auto_load_safe): Change return type and
2675 advice_printed to bool. Move comment to header.
2676
54ca9002
SM
26772021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2678
2679 * jit.c (jit_debug_printf): New, use throughout file.
2680
24a7f1b5
SM
26812021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 * infrun.c (normal_stop): Fix indentation.
2684
fe7a351a
SM
26852021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2686
2687 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2688 declarations to ...
2689 * symfile.h: ... here.
2690 * symfile.c: Update doc.
2691
16e9019e
SM
26922021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2693
2694 * target.h (baud_rate, serial_parity): Move declarations...
2695 * serial.h: ... here.
2696 * main.c: Include serial.h.
2697 * serial.c (baud_rate, serial_parity): Update doc.
2698
b2f2ae0d
SM
26992021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2700
2701 * top.c (pre_init_ui_hook): Remove.
2702
5291fe3c
SP
27032021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2704
2705 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2706 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2707 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2708 * features/aarch64-fpu.xml: Add bfloat16 type.
2709
ce38f5ed
AB
27102021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2713
7c654b71
AB
27142021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2715
2716 * f-exp.y (dot_ops): Rename to...
2717 (fortran_operators): ...this. Add a header comment. Add symbol
2718 based operators.
2719 (yylex): Update to use fortran_operators not dot_ops. Remove
2720 special handling for '**', this is now included in
2721 fortran_operators.
2722
c6185dce
SM
27232021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2724
2725 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2726 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2727 * aarch64-tdep.c: Use aarch64_debug_printf.
2728
eef401dc
SM
27292021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2730
2731 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2732 file.
2733
062eaacb
SM
27342021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2735
2736 * jit.c (jit_debug): Change type to bool.
2737 (_initialize_jit): Adjust.
2738
54585eee
TT
27392021-01-09 Tom Tromey <tom@tromey.com>
2740
2741 PR compile/23672
2742 * compile/compile.c (compile_to_object): Avoid crash when
2743 osabi_triplet_regexp returns NULL.
2744
bc167b6b
TT
27452021-01-09 Tom Tromey <tom@tromey.com>
2746
2747 * tracepoint.h (class collection_list) <append_exp>: Take a
2748 std::string.
2749 * tracepoint.c (collection_list::append_exp): Take a std::string.
2750 (encode_actions_1): Update.
2751
8fc48b79
TT
27522021-01-08 Tom Tromey <tromey@adacore.com>
2753
2754 * parse.c (parse_expression): Add void_context_p parameter. Use
2755 parse_exp_in_context.
2756 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2757 parse_expression.
2758 (print_command, call_command): Update.
2759 * expression.h (parse_expression): Add void_context_p parameter.
2760
3c8c6de2
AB
27612021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2762
2763 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2764 for internalvar components that have a dynamic location.
2765
1940319c
TV
27662021-01-08 Tom de Vries <tdevries@suse.de>
2767
2768 PR gdb/26881
2769 * breakpoint.c (create_exception_master_breakpoint_probe)
2770 (create_exception_master_breakpoint_hook): Factor out
2771 of ...
2772 (create_exception_master_breakpoint): ... here. Only try to install
2773 the master exception breakpoint in objfile.debug using the
2774 _Unwind_DebugHook method, if the install using probes in objfile
2775 failed.
2776
e3436813
AB
27772021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * f-lang.c (fortran_value_subarray): Call value_from_component.
2780
e904f56d
MF
27812021-01-07 Mike Frysinger <vapier@gentoo.org>
2782
2783 * remote-sim.c: Include memory-map.h.
2784 (gdbsim_target): Define memory_map override.
2785 (gdbsim_target::memory_map): Define.
2786
959d6a67
TT
27872021-01-07 Tom Tromey <tromey@adacore.com>
2788
2789 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2790
d4813f10
TT
27912021-01-07 Tom Tromey <tromey@adacore.com>
2792
2793 * ada-lang.c (add_component_interval): Start loop using vector's
2794 updated size.
2795
b49180ac
TT
27962021-01-06 Tom Tromey <tromey@adacore.com>
2797
2798 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2799 Do not cast result.
2800 * valarith.c (fixed_point_binop): Handle multiplication
2801 and division specially.
2802 * valops.c (value_to_gdb_mpq): New function.
2803 (value_cast_to_fixed_point): Use it.
2804
55195361
HD
28052021-01-05 Hannes Domani <ssbssa@yahoo.de>
2806
2807 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2808 Call wnoutrefresh instead of tui_win_info::refresh_window.
2809
1b6d4bb2
HD
28102021-01-05 Hannes Domani <ssbssa@yahoo.de>
2811
2812 * tui/tui-source.c (tui_source_window::show_line_number):
2813 Redraw second space after line number.
2814
b5ff370e
HD
28152021-01-05 Hannes Domani <ssbssa@yahoo.de>
2816
2817 PR tui/26927
2818 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2819 Fix source pad size in prefresh.
2820 (tui_source_window_base::show_source_content): Grow source pad
2821 if necessary.
2822
c68ea49f
MF
28232021-01-04 Mike Frysinger <vapier@gentoo.org>
2824
2825 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2826 (bfin_frame_align): Use align_down.
2827
e4ad960a
TV
28282021-01-04 Tom de Vries <tdevries@suse.de>
2829
2830 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2831 terminators that do not terminate anything.
2832
3ec3145c
SM
28332021-01-04 Simon Marchi <simon.marchi@efficios.com>
2834
2835 * debug.c (debug_print_depth): New.
2836 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2837 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2838 * infrun.c (start_step_over): Use
2839 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2840 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2841 INFRUN_SCOPED_DEBUG_START_END.
2842 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2843
e71daf80
SM
28442021-01-04 Simon Marchi <simon.marchi@efficios.com>
2845
2846 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2847
335709bc
SM
28482021-01-04 Simon Marchi <simon.marchi@efficios.com>
2849
2850 * utils.c (vfprintf_unfiltered): Print timestamp only when
2851 previous debug output ended with a newline.
2852
098caef4
LM
28532021-01-04 Luis Machado <luis.machado@linaro.org>
2854
2855 Update all users of trad_frame_saved_reg to use the new member
2856 functions.
2857
2858 Remote all struct keywords from declarations of trad_frame_saved_reg
2859 types, except on forward declarations.
2860
2861 * aarch64-tdep.c: Update.
2862 * alpha-mdebug-tdep.c: Update.
2863 * alpha-tdep.c: Update.
2864 * arc-tdep.c: Update.
2865 * arm-tdep.c: Update.
2866 * avr-tdep.c: Update.
2867 * cris-tdep.c: Update.
2868 * csky-tdep.c: Update.
2869 * frv-tdep.c: Update.
2870 * hppa-linux-tdep.c: Update.
2871 * hppa-tdep.c: Update.
2872 * hppa-tdep.h: Update.
2873 * lm32-tdep.c: Update.
2874 * m32r-linux-tdep.c: Update.
2875 * m32r-tdep.c: Update.
2876 * m68hc11-tdep.c: Update.
2877 * mips-tdep.c: Update.
2878 * moxie-tdep.c: Update.
2879 * riscv-tdep.c: Update.
2880 * rs6000-tdep.c: Update.
2881 * s390-linux-tdep.c: Update.
2882 * s390-tdep.c: Update.
2883 * score-tdep.c: Update.
2884 * sparc-netbsd-tdep.c: Update.
2885 * sparc-sol2-tdep.c: Update.
2886 * sparc64-fbsd-tdep.c: Update.
2887 * sparc64-netbsd-tdep.c: Update.
2888 * sparc64-obsd-tdep.c: Update.
2889 * sparc64-sol2-tdep.c: Update.
2890 * tilegx-tdep.c: Update.
2891 * v850-tdep.c: Update.
2892 * vax-tdep.c: Update.
2893
2894 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2895 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2896
2897 * trad-frame.c: Update.
2898 Remove TF_REG_* enum.
2899 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2900 a trivially-constructible struct.
2901 (trad_frame_reset_saved_regs): Adjust to use member function.
2902 (trad_frame_value_p): Likewise.
2903 (trad_frame_addr_p): Likewise.
2904 (trad_frame_realreg_p): Likewise.
2905 (trad_frame_value_bytes_p): Likewise.
2906 (trad_frame_set_value): Likewise.
2907 (trad_frame_set_realreg): Likewise.
2908 (trad_frame_set_addr): Likewise.
2909 (trad_frame_set_unknown): Likewise.
2910 (trad_frame_set_value_bytes): Likewise.
2911 (trad_frame_get_prev_register): Likewise.
2912 * trad-frame.h: Update.
2913 (trad_frame_saved_reg_kind): New enum.
2914 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2915 <m_kind, m_reg>: New member fields.
2916 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2917 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2918 <is_addr, is_unknown, is_value_bytes>: New member functions.
2919
9898e882
SM
29202021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2921
2922 * target-float.c: Fix typos.
2923
b66b4e65
HD
29242021-01-02 Hannes Domani <ssbssa@yahoo.de>
2925
2926 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2927
b5b5650a
JB
29282021-01-01 Joel Brobecker <brobecker@adacore.com>
2929
2930 * gdbarch.sh: Update copyright year range.
2931
3666a048
JB
29322021-01-01 Joel Brobecker <brobecker@adacore.com>
2933
2934 Update copyright year range in copyright header of all GDB files.
2935
ff7e39b6
JB
29362021-01-01 Joel Brobecker <brobecker@adacore.com>
2937
2938 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2939 to the list of directories to update.
2940
2b47c078
JB
29412021-01-01 Joel Brobecker <brobecker@adacore.com>
2942
2943 * top.c (print_gdb_version): Update copyright year.
2944
476923f1 29452021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2946
476923f1 2947 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2948
476923f1 2949For older changes see ChangeLog-2020.
c906108c
SS
2950\f
2951Local Variables:
2952mode: change-log
2953left-margin: 8
2954fill-column: 74
2955version-control: never
57da7796 2956coding: utf-8
c906108c 2957End: